@teamprodevs/appsmith-custom-table 0.0.5 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/2AITGKQY-CigiPWgQ.js +42 -0
  2. package/dist/NCMVHL6D-BFlChazO.js +33 -0
  3. package/dist/ZDWCUMSJ-CSBcp9t8.js +8979 -0
  4. package/dist/app.css +1 -0
  5. package/dist/app.js +4 -0
  6. package/dist/app.umd.cjs +1221 -0
  7. package/dist/index-C6zPOE1_.js +9555 -0
  8. package/dist/index.d.ts +7 -2
  9. package/package.json +16 -17
  10. package/dist/App.d.ts +0 -8
  11. package/dist/app.es.js +0 -19
  12. package/dist/app.es.js.map +0 -1
  13. package/dist/app.umd.js +0 -3
  14. package/dist/app.umd.js.map +0 -1
  15. package/dist/components/ui/button.d.ts +0 -10
  16. package/dist/components/ui/calendar.d.ts +0 -8
  17. package/dist/components/ui/dialog.d.ts +0 -15
  18. package/dist/components/ui/dropdown-menu.d.ts +0 -25
  19. package/dist/components/ui/hover-card.d.ts +0 -6
  20. package/dist/components/ui/input.d.ts +0 -3
  21. package/dist/components/ui/label.d.ts +0 -4
  22. package/dist/components/ui/pagination.d.ts +0 -13
  23. package/dist/components/ui/popover.d.ts +0 -7
  24. package/dist/components/ui/progress.d.ts +0 -4
  25. package/dist/components/ui/select.d.ts +0 -15
  26. package/dist/components/ui/skeleton.d.ts +0 -2
  27. package/dist/components/ui/sonner.d.ts +0 -3
  28. package/dist/components/ui/switch.d.ts +0 -4
  29. package/dist/components/ui/table.d.ts +0 -10
  30. package/dist/components/ui/tabs.d.ts +0 -7
  31. package/dist/components/ui/tooltip.d.ts +0 -7
  32. package/dist/index.css +0 -1
  33. package/dist/lib/utils.d.ts +0 -2
  34. package/dist/main.css +0 -1
  35. package/dist/main.d.ts +0 -2
  36. package/dist/tsconfig.app.tsbuildinfo +0 -1
  37. package/dist/types/fetcher.d.ts +0 -9
  38. package/dist/types/schema.d.ts +0 -10
  39. package/dist/types/table.d.ts +0 -1
@@ -0,0 +1,1221 @@
1
+ (function(Xt,Q){typeof exports=="object"&&typeof module<"u"?Q(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],Q):(Xt=typeof globalThis<"u"?globalThis:Xt||self,Q(Xt["appsmith-custom-table"]={},Xt["react/jsx-runtime"],Xt.React,Xt.ReactDOM))})(this,(function(Xt,Q,T,Uc){"use strict";function jc(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const we=jc(T);var ur=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(){}},Qc={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Wc=class{#e=Qc;#t=!1;setTimeoutProvider(e){process.env.NODE_ENV!=="production"&&this.#t&&e!==this.#e&&console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:this.#e,provider:e}),this.#e=e,process.env.NODE_ENV!=="production"&&(this.#t=!1)}setTimeout(e,t){return process.env.NODE_ENV!=="production"&&(this.#t=!0),this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return process.env.NODE_ENV!=="production"&&(this.#t=!0),this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},Mn=new Wc;function Yc(e){setTimeout(e,0)}var Pn=typeof window>"u"||"Deno"in globalThis;function at(){}function Xc(e,t){return typeof e=="function"?e(t):e}function To(e){return typeof e=="number"&&e>=0&&e!==1/0}function Ss(e,t){return Math.max(e+(t||0)-Date.now(),0)}function gn(e,t){return typeof e=="function"?e(t):e}function xt(e,t){return typeof e=="function"?e(t):e}function Cs(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:l}=e;if(s){if(r){if(t.queryHash!==Ro(s,t.options))return!1}else if(!dr(t.queryKey,s))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||o&&o!==t.state.fetchStatus||i&&!i(t))}function $s(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(cr(t.options.mutationKey)!==cr(i))return!1}else if(!dr(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Ro(e,t){return(t?.queryKeyHashFn||cr)(e)}function cr(e){return JSON.stringify(e,(t,n)=>zo(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function dr(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>dr(e[n],t[n])):!1}var Zc=Object.prototype.hasOwnProperty;function Lo(e,t){if(e===t)return e;const n=ks(e)&&ks(t);if(!n&&!(zo(e)&&zo(t)))return t;const o=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),s=i.length,l=n?new Array(s):{};let a=0;for(let c=0;c<s;c++){const d=n?c:i[c],u=e[d],f=t[d];if(u===f){l[d]=u,(n?c<o:Zc.call(e,d))&&a++;continue}if(u===null||f===null||typeof u!="object"||typeof f!="object"){l[d]=f;continue}const g=Lo(u,f);l[d]=g,g===u&&a++}return o===s&&a===o?e:l}function qo(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function ks(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function zo(e){if(!Es(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Es(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Es(e){return Object.prototype.toString.call(e)==="[object Object]"}function Jc(e){return new Promise(t=>{Mn.setTimeout(t,e)})}function No(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return Lo(e,t)}catch(r){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`),r}return Lo(e,t)}return t}function ed(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function td(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Br=Symbol();function Ms(e,t){return process.env.NODE_ENV!=="production"&&e.queryFn===Br&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Br?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function nd(e,t){return typeof e=="function"?e(...t):!!e}var rd=class extends ur{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!Pn&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=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"}},Vo=new rd;function Bo(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var od=Yc;function id(){let e=[],t=0,n=l=>{l()},r=l=>{l()},o=od;const i=l=>{t?e.push(l):o(()=>{n(l)})},s=()=>{const l=e;e=[],l.length&&o(()=>{r(()=>{l.forEach(a=>{n(a)})})})};return{batch:l=>{let a;t++;try{a=l()}finally{t--,t||s()}return a},batchCalls:l=>(...a)=>{i(()=>{l(...a)})},schedule:i,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{o=l}}}var Ke=id(),sd=class extends ur{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!Pn&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},Bn=new sd;function ad(e){return Math.min(1e3*2**e,3e4)}function Ps(e){return(e??"online")==="online"?Bn.isOnline():!0}var Ho=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function As(e){let t=!1,n=0,r;const o=Bo(),i=()=>o.status!=="pending",s=p=>{if(!i()){const y=new Ho(p);f(y),e.onCancel?.(y)}},l=()=>{t=!0},a=()=>{t=!1},c=()=>Vo.isFocused()&&(e.networkMode==="always"||Bn.isOnline())&&e.canRun(),d=()=>Ps(e.networkMode)&&e.canRun(),u=p=>{i()||(r?.(),o.resolve(p))},f=p=>{i()||(r?.(),o.reject(p))},g=()=>new Promise(p=>{r=y=>{(i()||c())&&p(y)},e.onPause?.()}).then(()=>{r=void 0,i()||e.onContinue?.()}),h=()=>{if(i())return;let p;const y=n===0?e.initialPromise:void 0;try{p=y??e.fn()}catch(m){p=Promise.reject(m)}Promise.resolve(p).then(u).catch(m=>{if(i())return;const b=e.retry??(Pn?0:3),w=e.retryDelay??ad,x=typeof w=="function"?w(n,m):w,S=b===!0||typeof b=="number"&&n<b||typeof b=="function"&&b(n,m);if(t||!S){f(m);return}n++,e.onFail?.(n,m),Jc(x).then(()=>c()?void 0:g()).then(()=>{t?f(m):h()})})};return{promise:o,status:()=>o.status,cancel:s,continue:()=>(r?.(),o),cancelRetry:l,continueRetry:a,canStart:d,start:()=>(d()?h():g().then(h),o)}}var Is=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),To(this.gcTime)&&(this.#e=Mn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Pn?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Mn.clearTimeout(this.#e),this.#e=void 0)}},ld=class extends Is{#e;#t;#n;#o;#r;#a;#s;constructor(e){super(),this.#s=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#o=e.client,this.#n=this.#o.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=Os(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=Os(this.options);t.data!==void 0&&(this.setState(_s(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=No(this.state.data,e,this.options);return this.#i({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(at).catch(at):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>xt(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Br||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>gn(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:!Ss(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.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.#r&&(this.#s?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.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.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const l=this.observers.find(a=>a.options.queryFn);l&&this.setOptions(l.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const n=new AbortController,r=l=>{Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},o=()=>{const l=Ms(this.options,t),c=(()=>{const d={client:this.#o,queryKey:this.queryKey,meta:this.meta};return r(d),d})();return this.#s=!1,this.options.persister?this.options.persister(l,c,this):l(c)},s=(()=>{const l={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#o,state:this.state,fetchFn:o};return r(l),l})();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.#r=As({initialPromise:t?.initialPromise,fn:s.fetchFn,onCancel:l=>{l instanceof Ho&&l.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(l,a)=>{this.#i({type:"failed",failureCount:l,error:a})},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 l=await this.#r.start();if(l===void 0)throw process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),new Error(`${this.queryHash} data is undefined`);return this.setData(l),this.#n.config.onSuccess?.(l,this),this.#n.config.onSettled?.(l,this.state.error,this),l}catch(l){if(l instanceof Ho){if(l.silent)return this.#r.promise;if(l.revert){if(this.state.data===void 0)throw l;return this.state.data}}throw this.#i({type:"error",error:l}),this.#n.config.onError?.(l,this),this.#n.config.onSettled?.(this.state.data,l,this),l}finally{this.scheduleGc()}}#i(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...Fs(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,..._s(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?r:void 0,r;case"error":const o=e.error;return{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Ke.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function Fs(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ps(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function _s(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Os(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var ud=class extends ur{constructor(e,t){super(),this.options=t,this.#e=e,this.#i=null,this.#s=Bo(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#o=void 0;#r;#a;#s;#i;#f;#c;#d;#g;#l;#u;#h=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Ds(this.#t,this.options)?this.#p():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Go(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Go(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#w(),this.#x(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=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 xt(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),t._defaulted&&!qo(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&Ts(this.#t,n,this.options,t)&&this.#p(),this.updateResult(),r&&(this.#t!==n||xt(this.options.enabled,this.#t)!==xt(t.enabled,this.#t)||gn(this.options.staleTime,this.#t)!==gn(t.staleTime,this.#t))&&this.#m();const o=this.#y();r&&(this.#t!==n||xt(this.options.enabled,this.#t)!==xt(t.enabled,this.#t)||o!==this.#u)&&this.#v(o)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return dd(this,n)&&(this.#o=n,this.#a=this.options,this.#r=this.#t.state),n}getCurrentResult(){return this.#o}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,r))})}trackProp(e){this.#h.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#p({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#o))}#p(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(at)),t}#m(){this.#w();const e=gn(this.options.staleTime,this.#t);if(Pn||this.#o.isStale||!To(e))return;const n=Ss(this.#o.dataUpdatedAt,e)+1;this.#g=Mn.setTimeout(()=>{this.#o.isStale||this.updateResult()},n)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#u=e,!(Pn||xt(this.options.enabled,this.#t)===!1||!To(this.#u)||this.#u===0)&&(this.#l=Mn.setInterval(()=>{(this.options.refetchIntervalInBackground||Vo.isFocused())&&this.#p()},this.#u))}#b(){this.#m(),this.#v(this.#y())}#w(){this.#g&&(Mn.clearTimeout(this.#g),this.#g=void 0)}#x(){this.#l&&(Mn.clearInterval(this.#l),this.#l=void 0)}createResult(e,t){const n=this.#t,r=this.options,o=this.#o,i=this.#r,s=this.#a,a=e!==n?e.state:this.#n,{state:c}=e;let d={...c},u=!1,f;if(t._optimisticResults){const C=this.hasListeners(),$=!C&&Ds(e,t),E=C&&Ts(e,n,t,r);($||E)&&(d={...d,...Fs(c.data,e.options)}),t._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:g,errorUpdatedAt:h,status:p}=d;f=d.data;let y=!1;if(t.placeholderData!==void 0&&f===void 0&&p==="pending"){let C;o?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(C=o.data,y=!0):C=typeof t.placeholderData=="function"?t.placeholderData(this.#d?.state.data,this.#d):t.placeholderData,C!==void 0&&(p="success",f=No(o?.data,C,t),u=!0)}if(t.select&&f!==void 0&&!y)if(o&&f===i?.data&&t.select===this.#f)f=this.#c;else try{this.#f=t.select,f=t.select(f),f=No(o?.data,f,t),this.#c=f,this.#i=null}catch(C){this.#i=C}this.#i&&(g=this.#i,f=this.#c,h=Date.now(),p="error");const m=d.fetchStatus==="fetching",b=p==="pending",w=p==="error",x=b&&m,S=f!==void 0,M={status:p,fetchStatus:d.fetchStatus,isPending:b,isSuccess:p==="success",isError:w,isInitialLoading:x,isLoading:x,data:f,dataUpdatedAt:d.dataUpdatedAt,error:g,errorUpdatedAt:h,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>a.dataUpdateCount||d.errorUpdateCount>a.errorUpdateCount,isFetching:m,isRefetching:m&&!b,isLoadingError:w&&!S,isPaused:d.fetchStatus==="paused",isPlaceholderData:u,isRefetchError:w&&S,isStale:Ko(e,t),refetch:this.refetch,promise:this.#s,isEnabled:xt(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const C=N=>{M.status==="error"?N.reject(M.error):M.data!==void 0&&N.resolve(M.data)},$=()=>{const N=this.#s=M.promise=Bo();C(N)},E=this.#s;switch(E.status){case"pending":e.queryHash===n.queryHash&&C(E);break;case"fulfilled":(M.status==="error"||M.data!==E.value)&&$();break;case"rejected":(M.status!=="error"||M.error!==E.reason)&&$();break}}return M}updateResult(){const e=this.#o,t=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#a=this.options,this.#r.data!==void 0&&(this.#d=this.#t),qo(t,e))return;this.#o=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,o=typeof r=="function"?r():r;if(o==="all"||!o&&!this.#h.size)return!0;const i=new Set(o??this.#h);return this.options.throwOnError&&i.add("error"),Object.keys(this.#o).some(s=>{const l=s;return this.#o[l]!==e[l]&&i.has(l)})};this.#C({listeners:n()})}#S(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#C(e){Ke.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#o)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function cd(e,t){return xt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Ds(e,t){return cd(e,t)||e.state.data!==void 0&&Go(e,t,t.refetchOnMount)}function Go(e,t,n){if(xt(t.enabled,e)!==!1&&gn(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Ko(e,t)}return!1}function Ts(e,t,n,r){return(e!==t||xt(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Ko(e,n)}function Ko(e,t){return xt(t.enabled,e)!==!1&&e.isStaleByTime(gn(t.staleTime,e))}function dd(e,t){return!qo(e.getCurrentResult(),t)}function Rs(e){return{onFetch:(t,n)=>{const r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],s=t.state.data?.pageParams||[];let l={pages:[],pageParams:[]},a=0;const c=async()=>{let d=!1;const u=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(t.signal.aborted?d=!0:t.signal.addEventListener("abort",()=>{d=!0}),t.signal)})},f=Ms(t.options,t.fetchOptions),g=async(h,p,y)=>{if(d)return Promise.reject();if(p==null&&h.pages.length)return Promise.resolve(h);const b=(()=>{const I={client:t.client,queryKey:t.queryKey,pageParam:p,direction:y?"backward":"forward",meta:t.options.meta};return u(I),I})(),w=await f(b),{maxPages:x}=t.options,S=y?td:ed;return{pages:S(h.pages,w,x),pageParams:S(h.pageParams,p,x)}};if(o&&i.length){const h=o==="backward",p=h?fd:Ls,y={pages:i,pageParams:s},m=p(r,y);l=await g(y,m,h)}else{const h=e??i.length;do{const p=a===0?s[0]??r.initialPageParam:Ls(r,l);if(a>0&&p==null)break;l=await g(l,p),a++}while(a<h)}return l};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=c}}}function Ls(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function fd(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var gd=class extends Is{#e;#t;#n;#o;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||hd(),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.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#o=As({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(i,s)=>{this.#r({type:"failed",failureCount:i,error:s})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",o=!this.#o.canStart();try{if(r)t();else{this.#r({type:"pending",variables:e,isPaused:o}),await this.#n.config.onMutate?.(e,this,n);const s=await this.options.onMutate?.(e,n);s!==this.state.context&&this.#r({type:"pending",context:s,variables:e,isPaused:o})}const i=await this.#o.start();return await this.#n.config.onSuccess?.(i,e,this.state.context,this,n),await this.options.onSuccess?.(i,e,this.state.context,n),await this.#n.config.onSettled?.(i,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(i,null,e,this.state.context,n),this.#r({type:"success",data:i}),i}catch(i){try{throw await this.#n.config.onError?.(i,e,this.state.context,this,n),await this.options.onError?.(i,e,this.state.context,n),await this.#n.config.onSettled?.(void 0,i,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,i,e,this.state.context,n),i}finally{this.#r({type:"error",error:i})}}finally{this.#n.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,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{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Ke.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function hd(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var pd=class extends ur{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const r=new gd({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);const t=Hr(e);if(typeof t=="string"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Hr(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Hr(e);if(typeof t=="string"){const r=this.#t.get(t)?.find(o=>o.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=Hr(e);return typeof t=="string"?this.#t.get(t)?.find(r=>r!==e&&r.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(n=>$s(t,n))}findAll(e={}){return this.getAll().filter(t=>$s(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(at))))}};function Hr(e){return e.options.scope?.id}var md=class extends ur{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,o=t.queryHash??Ro(r,t);let i=this.get(o);return i||(i=new ld({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),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(n=>Cs(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>Cs(e,n)):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()})})}},yd=class{#e;#t;#n;#o;#r;#a;#s;#i;constructor(e={}){this.#e=e.queryCache||new md,this.#t=e.mutationCache||new pd,this.#n=e.defaultOptions||{},this.#o=new Map,this.#r=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#s=Vo.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=Bn.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#s?.(),this.#s=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),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(gn(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,s=Xc(t,i);if(s!==void 0)return this.#e.build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Ke.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}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(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return Ke.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Ke.batch(()=>this.#e.findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(at).catch(at)}invalidateQueries(e,t={}){return Ke.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Ke.batch(()=>this.#e.findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(at)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(at)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(gn(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(at).catch(at)}fetchInfiniteQuery(e){return e.behavior=Rs(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(at).catch(at)}ensureInfiniteQueryData(e){return e.behavior=Rs(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Bn.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#o.set(cr(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#o.values()],n={};return t.forEach(r=>{dr(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(cr(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{dr(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ro(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===Br&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},qs=we.createContext(void 0),Uo=e=>{const t=we.useContext(qs);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},vd=({client:e,children:t})=>(we.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),Q.jsx(qs.Provider,{value:e,children:t})),zs=we.createContext(!1),bd=()=>we.useContext(zs);zs.Provider;function wd(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var xd=we.createContext(wd()),Sd=()=>we.useContext(xd),Cd=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},$d=e=>{we.useEffect(()=>{e.clearReset()},[e])},kd=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||nd(n,[e.error,r])),Ed=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Md=(e,t)=>e.isLoading&&e.isFetching&&!t,Pd=(e,t)=>e?.suspense&&t.isPending,Ns=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Ad(e,t,n){if(process.env.NODE_ENV!=="production"&&(typeof e!="object"||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=bd(),o=Sd(),i=Uo(n),s=i.defaultQueryOptions(e);i.getDefaultOptions().queries?._experimental_beforeQuery?.(s),process.env.NODE_ENV!=="production"&&(s.queryFn||console.error(`[${s.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`)),s._optimisticResults=r?"isRestoring":"optimistic",Ed(s),Cd(s,o),$d(o);const l=!i.getQueryCache().get(s.queryHash),[a]=we.useState(()=>new t(i,s)),c=a.getOptimisticResult(s),d=!r&&e.subscribed!==!1;if(we.useSyncExternalStore(we.useCallback(u=>{const f=d?a.subscribe(Ke.batchCalls(u)):at;return a.updateResult(),f},[a,d]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),we.useEffect(()=>{a.setOptions(s)},[s,a]),Pd(s,c))throw Ns(s,a,o);if(kd({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&&!Pn&&Md(c,r)&&(l?Ns(s,a,o):i.getQueryCache().get(s.queryHash)?.promise)?.catch(at).finally(()=>{a.updateResult()}),s.notifyOnChangeProps?c:a.trackResult(c)}function Id(e,t){return Ad(e,ud,t)}function hn(e,t){return typeof e=="function"?e(t):e}function pt(e,t){return n=>{t.setState(r=>({...r,[e]:hn(n,r[e])}))}}function Gr(e){return e instanceof Function}function Fd(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function _d(e,t){const n=[],r=o=>{o.forEach(i=>{n.push(i);const s=t(i);s!=null&&s.length&&r(s)})};return r(e),n}function re(e,t,n){let r=[],o;return i=>{let s;n.key&&n.debug&&(s=Date.now());const l=e(i);if(!(l.length!==r.length||l.some((d,u)=>r[u]!==d)))return o;r=l;let c;if(n.key&&n.debug&&(c=Date.now()),o=t(...l),n==null||n.onChange==null||n.onChange(o),n.key&&n.debug&&n!=null&&n.debug()){const d=Math.round((Date.now()-s)*100)/100,u=Math.round((Date.now()-c)*100)/100,f=u/16,g=(h,p)=>{for(h=String(h);h.length<p;)h=" "+h;return h};console.info(`%c⏱ ${g(u,5)} /${g(d,5)} ms`,`
2
+ font-size: .6rem;
3
+ font-weight: bold;
4
+ color: hsl(${Math.max(0,Math.min(120-120*f,120))}deg 100% 31%);`,n?.key)}return o}}function oe(e,t,n,r){return{debug:()=>{var o;return(o=e?.debugAll)!=null?o:e[t]},key:process.env.NODE_ENV==="development"&&n,onChange:r}}function Od(e,t,n,r){const o=()=>{var s;return(s=i.getValue())!=null?s:e.options.renderFallbackValue},i={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:o,getContext:re(()=>[e,n,t,i],(s,l,a,c)=>({table:s,column:l,row:a,cell:c,getValue:c.getValue,renderValue:c.renderValue}),oe(e.options,"debugCells","cell.getContext"))};return e._features.forEach(s=>{s.createCell==null||s.createCell(i,n,t,e)},{}),i}function Dd(e,t,n,r){var o,i;const l={...e._getDefaultColumnDef(),...t},a=l.accessorKey;let c=(o=(i=l.id)!=null?i:a?typeof String.prototype.replaceAll=="function"?a.replaceAll(".","_"):a.replace(/\./g,"_"):void 0)!=null?o:typeof l.header=="string"?l.header:void 0,d;if(l.accessorFn?d=l.accessorFn:a&&(a.includes(".")?d=f=>{let g=f;for(const p of a.split(".")){var h;g=(h=g)==null?void 0:h[p],process.env.NODE_ENV!=="production"&&g===void 0&&console.warn(`"${p}" in deeply nested key "${a}" returned undefined.`)}return g}:d=f=>f[l.accessorKey]),!c)throw process.env.NODE_ENV!=="production"?new Error(l.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header"):new Error;let u={id:`${String(c)}`,accessorFn:d,parent:r,depth:n,columnDef:l,columns:[],getFlatColumns:re(()=>[!0],()=>{var f;return[u,...(f=u.columns)==null?void 0:f.flatMap(g=>g.getFlatColumns())]},oe(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:re(()=>[e._getOrderColumnsFn()],f=>{var g;if((g=u.columns)!=null&&g.length){let h=u.columns.flatMap(p=>p.getLeafColumns());return f(h)}return[u]},oe(e.options,"debugColumns","column.getLeafColumns"))};for(const f of e._features)f.createColumn==null||f.createColumn(u,e);return u}const We="debugHeaders";function Vs(e,t,n){var r;let i={id:(r=n.id)!=null?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const s=[],l=a=>{a.subHeaders&&a.subHeaders.length&&a.subHeaders.map(l),s.push(a)};return l(i),s},getContext:()=>({table:e,header:i,column:t})};return e._features.forEach(s=>{s.createHeader==null||s.createHeader(i,e)}),i}const Td={createTable:e=>{e.getHeaderGroups=re(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>{var i,s;const l=(i=r?.map(u=>n.find(f=>f.id===u)).filter(Boolean))!=null?i:[],a=(s=o?.map(u=>n.find(f=>f.id===u)).filter(Boolean))!=null?s:[],c=n.filter(u=>!(r!=null&&r.includes(u.id))&&!(o!=null&&o.includes(u.id)));return Kr(t,[...l,...c,...a],e)},oe(e.options,We,"getHeaderGroups")),e.getCenterHeaderGroups=re(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>(n=n.filter(i=>!(r!=null&&r.includes(i.id))&&!(o!=null&&o.includes(i.id))),Kr(t,n,e,"center")),oe(e.options,We,"getCenterHeaderGroups")),e.getLeftHeaderGroups=re(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var o;const i=(o=r?.map(s=>n.find(l=>l.id===s)).filter(Boolean))!=null?o:[];return Kr(t,i,e,"left")},oe(e.options,We,"getLeftHeaderGroups")),e.getRightHeaderGroups=re(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var o;const i=(o=r?.map(s=>n.find(l=>l.id===s)).filter(Boolean))!=null?o:[];return Kr(t,i,e,"right")},oe(e.options,We,"getRightHeaderGroups")),e.getFooterGroups=re(()=>[e.getHeaderGroups()],t=>[...t].reverse(),oe(e.options,We,"getFooterGroups")),e.getLeftFooterGroups=re(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),oe(e.options,We,"getLeftFooterGroups")),e.getCenterFooterGroups=re(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),oe(e.options,We,"getCenterFooterGroups")),e.getRightFooterGroups=re(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),oe(e.options,We,"getRightFooterGroups")),e.getFlatHeaders=re(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),oe(e.options,We,"getFlatHeaders")),e.getLeftFlatHeaders=re(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),oe(e.options,We,"getLeftFlatHeaders")),e.getCenterFlatHeaders=re(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),oe(e.options,We,"getCenterFlatHeaders")),e.getRightFlatHeaders=re(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),oe(e.options,We,"getRightFlatHeaders")),e.getCenterLeafHeaders=re(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),oe(e.options,We,"getCenterLeafHeaders")),e.getLeftLeafHeaders=re(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),oe(e.options,We,"getLeftLeafHeaders")),e.getRightLeafHeaders=re(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),oe(e.options,We,"getRightLeafHeaders")),e.getLeafHeaders=re(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var o,i,s,l,a,c;return[...(o=(i=t[0])==null?void 0:i.headers)!=null?o:[],...(s=(l=n[0])==null?void 0:l.headers)!=null?s:[],...(a=(c=r[0])==null?void 0:c.headers)!=null?a:[]].map(d=>d.getLeafHeaders()).flat()},oe(e.options,We,"getLeafHeaders"))}};function Kr(e,t,n,r){var o,i;let s=0;const l=function(f,g){g===void 0&&(g=1),s=Math.max(s,g),f.filter(h=>h.getIsVisible()).forEach(h=>{var p;(p=h.columns)!=null&&p.length&&l(h.columns,g+1)},0)};l(e);let a=[];const c=(f,g)=>{const h={depth:g,id:[r,`${g}`].filter(Boolean).join("_"),headers:[]},p=[];f.forEach(y=>{const m=[...p].reverse()[0],b=y.column.depth===h.depth;let w,x=!1;if(b&&y.column.parent?w=y.column.parent:(w=y.column,x=!0),m&&m?.column===w)m.subHeaders.push(y);else{const S=Vs(n,w,{id:[r,g,w.id,y?.id].filter(Boolean).join("_"),isPlaceholder:x,placeholderId:x?`${p.filter(I=>I.column===w).length}`:void 0,depth:g,index:p.length});S.subHeaders.push(y),p.push(S)}h.headers.push(y),y.headerGroup=h}),a.push(h),g>0&&c(p,g-1)},d=t.map((f,g)=>Vs(n,f,{depth:s,index:g}));c(d,s-1),a.reverse();const u=f=>f.filter(h=>h.column.getIsVisible()).map(h=>{let p=0,y=0,m=[0];h.subHeaders&&h.subHeaders.length?(m=[],u(h.subHeaders).forEach(w=>{let{colSpan:x,rowSpan:S}=w;p+=x,m.push(S)})):p=1;const b=Math.min(...m);return y=y+b,h.colSpan=p,h.rowSpan=y,{colSpan:p,rowSpan:y}});return u((o=(i=a[0])==null?void 0:i.headers)!=null?o:[]),a}const Rd=(e,t,n,r,o,i,s)=>{let l={id:t,index:r,original:n,depth:o,parentId:s,_valuesCache:{},_uniqueValuesCache:{},getValue:a=>{if(l._valuesCache.hasOwnProperty(a))return l._valuesCache[a];const c=e.getColumn(a);if(c!=null&&c.accessorFn)return l._valuesCache[a]=c.accessorFn(l.original,r),l._valuesCache[a]},getUniqueValues:a=>{if(l._uniqueValuesCache.hasOwnProperty(a))return l._uniqueValuesCache[a];const c=e.getColumn(a);if(c!=null&&c.accessorFn)return c.columnDef.getUniqueValues?(l._uniqueValuesCache[a]=c.columnDef.getUniqueValues(l.original,r),l._uniqueValuesCache[a]):(l._uniqueValuesCache[a]=[l.getValue(a)],l._uniqueValuesCache[a])},renderValue:a=>{var c;return(c=l.getValue(a))!=null?c:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>_d(l.subRows,a=>a.subRows),getParentRow:()=>l.parentId?e.getRow(l.parentId,!0):void 0,getParentRows:()=>{let a=[],c=l;for(;;){const d=c.getParentRow();if(!d)break;a.push(d),c=d}return a.reverse()},getAllCells:re(()=>[e.getAllLeafColumns()],a=>a.map(c=>Od(e,l,c,c.id)),oe(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:re(()=>[l.getAllCells()],a=>a.reduce((c,d)=>(c[d.column.id]=d,c),{}),oe(e.options,"debugRows","getAllCellsByColumnId"))};for(let a=0;a<e._features.length;a++){const c=e._features[a];c==null||c.createRow==null||c.createRow(l,e)}return l},Ld={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},Bs=(e,t,n)=>{var r,o;const i=n==null||(r=n.toString())==null?void 0:r.toLowerCase();return!!(!((o=e.getValue(t))==null||(o=o.toString())==null||(o=o.toLowerCase())==null)&&o.includes(i))};Bs.autoRemove=e=>It(e);const Hs=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};Hs.autoRemove=e=>It(e);const Gs=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===n?.toLowerCase()};Gs.autoRemove=e=>It(e);const Ks=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};Ks.autoRemove=e=>It(e);const Us=(e,t,n)=>!n.some(r=>{var o;return!((o=e.getValue(t))!=null&&o.includes(r))});Us.autoRemove=e=>It(e)||!(e!=null&&e.length);const js=(e,t,n)=>n.some(r=>{var o;return(o=e.getValue(t))==null?void 0:o.includes(r)});js.autoRemove=e=>It(e)||!(e!=null&&e.length);const Qs=(e,t,n)=>e.getValue(t)===n;Qs.autoRemove=e=>It(e);const Ws=(e,t,n)=>e.getValue(t)==n;Ws.autoRemove=e=>It(e);const jo=(e,t,n)=>{let[r,o]=n;const i=e.getValue(t);return i>=r&&i<=o};jo.resolveFilterValue=e=>{let[t,n]=e,r=typeof t!="number"?parseFloat(t):t,o=typeof n!="number"?parseFloat(n):n,i=t===null||Number.isNaN(r)?-1/0:r,s=n===null||Number.isNaN(o)?1/0:o;if(i>s){const l=i;i=s,s=l}return[i,s]},jo.autoRemove=e=>It(e)||It(e[0])&&It(e[1]);const Zt={includesString:Bs,includesStringSensitive:Hs,equalsString:Gs,arrIncludes:Ks,arrIncludesAll:Us,arrIncludesSome:js,equals:Qs,weakEquals:Ws,inNumberRange:jo};function It(e){return e==null||e===""}const qd={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:pt("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n?.getValue(e.id);return typeof r=="string"?Zt.includesString:typeof r=="number"?Zt.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?Zt.equals:Array.isArray(r)?Zt.arrIncludes:Zt.weakEquals},e.getFilterFn=()=>{var n,r;return Gr(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(r=t.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?n:Zt[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,o;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((r=t.options.enableColumnFilters)!=null?r:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(r=>r.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,r;return(n=(r=t.getState().columnFilters)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(r=>{const o=e.getFilterFn(),i=r?.find(d=>d.id===e.id),s=hn(n,i?i.value:void 0);if(Ys(o,s,e)){var l;return(l=r?.filter(d=>d.id!==e.id))!=null?l:[]}const a={id:e.id,value:s};if(i){var c;return(c=r?.map(d=>d.id===e.id?a:d))!=null?c:[]}return r!=null&&r.length?[...r,a]:[a]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),r=o=>{var i;return(i=hn(t,o))==null?void 0:i.filter(s=>{const l=n.find(a=>a.id===s.id);if(l){const a=l.getFilterFn();if(Ys(a,s.value,l))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:(n=(r=e.initialState)==null?void 0:r.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function Ys(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const Qo={sum:(e,t,n)=>n.reduce((r,o)=>{const i=o.getValue(e);return r+(typeof i=="number"?i:0)},0),min:(e,t,n)=>{let r;return n.forEach(o=>{const i=o.getValue(e);i!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}),r},max:(e,t,n)=>{let r;return n.forEach(o=>{const i=o.getValue(e);i!=null&&(r<i||r===void 0&&i>=i)&&(r=i)}),r},extent:(e,t,n)=>{let r,o;return n.forEach(i=>{const s=i.getValue(e);s!=null&&(r===void 0?s>=s&&(r=o=s):(r>s&&(r=s),o<s&&(o=s)))}),[r,o]},mean:(e,t)=>{let n=0,r=0;if(t.forEach(o=>{let i=o.getValue(e);i!=null&&(i=+i)>=i&&(++n,r+=i)}),n)return r/n},median:(e,t)=>{if(!t.length)return;const n=t.map(i=>i.getValue(e));if(!Fd(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),o=n.sort((i,s)=>i-s);return n.length%2!==0?o[r]:(o[r-1]+o[r])/2},unique:(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(n=>n.getValue(e))).size,count:(e,t)=>t.length},zd={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:pt("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(r=>r!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,r;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((r=t.options.enableGrouping)!=null?r:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n?.getValue(e.id);if(typeof r=="number")return Qo.sum;if(Object.prototype.toString.call(r)==="[object Date]")return Qo.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Gr(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(r=t.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?n:Qo[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:(n=(r=e.initialState)==null?void 0:r.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var o;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((o=n.subRows)!=null&&o.length)}}};function Nd(e,t,n){if(!(t!=null&&t.length)||!n)return e;const r=e.filter(i=>!t.includes(i.id));return n==="remove"?r:[...t.map(i=>e.find(s=>s.id===i)).filter(Boolean),...r]}const Vd={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:pt("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=re(n=>[fr(t,n)],n=>n.findIndex(r=>r.id===e.id),oe(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var r;return((r=fr(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const o=fr(t,n);return((r=o[o.length-1])==null?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=re(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,r)=>o=>{let i=[];if(!(t!=null&&t.length))i=o;else{const s=[...t],l=[...o];for(;l.length&&s.length;){const a=s.shift(),c=l.findIndex(d=>d.id===a);c>-1&&i.push(l.splice(c,1)[0])}i=[...i,...l]}return Nd(i,n,r)},oe(e.options,"debugTable","_getOrderColumnsFn"))}},Wo=()=>({left:[],right:[]}),Bd={getInitialState:e=>({columnPinning:Wo(),...e}),getDefaultOptions:e=>({onColumnPinningChange:pt("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(o=>o.id).filter(Boolean);t.setColumnPinning(o=>{var i,s;if(n==="right"){var l,a;return{left:((l=o?.left)!=null?l:[]).filter(u=>!(r!=null&&r.includes(u))),right:[...((a=o?.right)!=null?a:[]).filter(u=>!(r!=null&&r.includes(u))),...r]}}if(n==="left"){var c,d;return{left:[...((c=o?.left)!=null?c:[]).filter(u=>!(r!=null&&r.includes(u))),...r],right:((d=o?.right)!=null?d:[]).filter(u=>!(r!=null&&r.includes(u)))}}return{left:((i=o?.left)!=null?i:[]).filter(u=>!(r!=null&&r.includes(u))),right:((s=o?.right)!=null?s:[]).filter(u=>!(r!=null&&r.includes(u)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var o,i,s;return((o=r.columnDef.enablePinning)!=null?o:!0)&&((i=(s=t.options.enableColumnPinning)!=null?s:t.options.enablePinning)!=null?i:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(l=>l.id),{left:r,right:o}=t.getState().columnPinning,i=n.some(l=>r?.includes(l)),s=n.some(l=>o?.includes(l));return i?"left":s?"right":!1},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();return o?(n=(r=t.getState().columnPinning)==null||(r=r[o])==null?void 0:r.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=re(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,r,o)=>{const i=[...r??[],...o??[]];return n.filter(s=>!i.includes(s.column.id))},oe(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=re(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,r)=>(r??[]).map(i=>n.find(s=>s.column.id===i)).filter(Boolean).map(i=>({...i,position:"left"})),oe(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=re(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(i=>n.find(s=>s.column.id===i)).filter(Boolean).map(i=>({...i,position:"right"})),oe(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?Wo():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:Wo())},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;if(!t){var o,i;return!!((o=r.left)!=null&&o.length||(i=r.right)!=null&&i.length)}return!!((n=r[t])!=null&&n.length)},e.getLeftLeafColumns=re(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),oe(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=re(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),oe(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=re(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r)=>{const o=[...n??[],...r??[]];return t.filter(i=>!o.includes(i.id))},oe(e.options,"debugColumns","getCenterLeafColumns"))}};function Hd(e){return e||(typeof document<"u"?document:null)}const Ur={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Yo=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),Gd={getDefaultColumnDef:()=>Ur,getInitialState:e=>({columnSizing:{},columnSizingInfo:Yo(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:pt("columnSizing",e),onColumnSizingInfoChange:pt("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,o;const i=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:Ur.minSize,(r=i??e.columnDef.size)!=null?r:Ur.size),(o=e.columnDef.maxSize)!=null?o:Ur.maxSize)},e.getStart=re(n=>[n,fr(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((o,i)=>o+i.getSize(),0),oe(t.options,"debugColumns","getStart")),e.getAfter=re(n=>[n,fr(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((o,i)=>o+i.getSize(),0),oe(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:r,...o}=n;return o})},e.getCanResize=()=>{var n,r;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((r=t.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const r=o=>{if(o.subHeaders.length)o.subHeaders.forEach(r);else{var i;n+=(i=o.column.getSize())!=null?i:0}};return r(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),o=r?.getCanResize();return i=>{if(!r||!o||(i.persist==null||i.persist(),Xo(i)&&i.touches&&i.touches.length>1))return;const s=e.getSize(),l=e?e.getLeafHeaders().map(m=>[m.column.id,m.column.getSize()]):[[r.id,r.getSize()]],a=Xo(i)?Math.round(i.touches[0].clientX):i.clientX,c={},d=(m,b)=>{typeof b=="number"&&(t.setColumnSizingInfo(w=>{var x,S;const I=t.options.columnResizeDirection==="rtl"?-1:1,M=(b-((x=w?.startOffset)!=null?x:0))*I,C=Math.max(M/((S=w?.startSize)!=null?S:0),-.999999);return w.columnSizingStart.forEach($=>{let[E,N]=$;c[E]=Math.round(Math.max(N+N*C,0)*100)/100}),{...w,deltaOffset:M,deltaPercentage:C}}),(t.options.columnResizeMode==="onChange"||m==="end")&&t.setColumnSizing(w=>({...w,...c})))},u=m=>d("move",m),f=m=>{d("end",m),t.setColumnSizingInfo(b=>({...b,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},g=Hd(n),h={moveHandler:m=>u(m.clientX),upHandler:m=>{g?.removeEventListener("mousemove",h.moveHandler),g?.removeEventListener("mouseup",h.upHandler),f(m.clientX)}},p={moveHandler:m=>(m.cancelable&&(m.preventDefault(),m.stopPropagation()),u(m.touches[0].clientX),!1),upHandler:m=>{var b;g?.removeEventListener("touchmove",p.moveHandler),g?.removeEventListener("touchend",p.upHandler),m.cancelable&&(m.preventDefault(),m.stopPropagation()),f((b=m.touches[0])==null?void 0:b.clientX)}},y=Kd()?{passive:!1}:!1;Xo(i)?(g?.addEventListener("touchmove",p.moveHandler,y),g?.addEventListener("touchend",p.upHandler,y)):(g?.addEventListener("mousemove",h.moveHandler,y),g?.addEventListener("mouseup",h.upHandler,y)),t.setColumnSizingInfo(m=>({...m,startOffset:a,startSize:s,deltaOffset:0,deltaPercentage:0,columnSizingStart:l,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?Yo():(n=e.initialState.columnSizingInfo)!=null?n:Yo())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0}}};let jr=null;function Kd(){if(typeof jr=="boolean")return jr;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return jr=e,jr}function Xo(e){return e.type==="touchstart"}const Ud={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:pt("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;const o=e.columns;return(n=o.length?o.some(i=>i.getIsVisible()):(r=t.getState().columnVisibility)==null?void 0:r[e.id])!=null?n:!0},e.getCanHide=()=>{var n,r;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((r=t.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=re(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),oe(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=re(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,o)=>[...n,...r,...o],oe(t.options,"debugRows","getVisibleCells"))},createTable:e=>{const t=(n,r)=>re(()=>[r(),r().filter(o=>o.getIsVisible()).map(o=>o.id).join("_")],o=>o.filter(i=>i.getIsVisible==null?void 0:i.getIsVisible()),oe(e.options,"debugColumns",n));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var r;e.setColumnVisibility(n?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=n=>{var r;n=(r=n)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((o,i)=>({...o,[i.id]:n||!(i.getCanHide!=null&&i.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var r;e.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}};function fr(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const jd={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},Qd={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:pt("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,o,i;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&((i=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?i:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Zt.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Gr(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:Zt[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},Wd={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:pt("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,o;if(!t){e._queue(()=>{t=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var o,i;e.setExpanded(r?{}:(o=(i=e.initialState)==null?void 0:i.expanded)!=null?o:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(o=>!o.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(i=>{const s=i.split(".");r=Math.max(r,s.length)}),r},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var o;const i=r===!0?!0:!!(r!=null&&r[e.id]);let s={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(l=>{s[l]=!0}):s=r,n=(o=n)!=null?o:!i,!i&&n)return{...s,[e.id]:!0};if(i&&!n){const{[e.id]:l,...a}=s;return a}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:r===!0||r?.[e.id])},e.getCanExpand=()=>{var n,r,o;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((r=t.options.enableExpanding)!=null?r:!0)&&!!((o=e.subRows)!=null&&o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},Zo=0,Jo=10,ei=()=>({pageIndex:Zo,pageSize:Jo}),Yd={getInitialState:e=>({...e,pagination:{...ei(),...e?.pagination}}),getDefaultOptions:e=>({onPaginationChange:pt("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,o;if(!t){e._queue(()=>{t=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=r=>{const o=i=>hn(r,i);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(o)},e.resetPagination=r=>{var o;e.setPagination(r?ei():(o=e.initialState.pagination)!=null?o:ei())},e.setPageIndex=r=>{e.setPagination(o=>{let i=hn(r,o.pageIndex);const s=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return i=Math.max(0,Math.min(i,s)),{...o,pageIndex:i}})},e.resetPageIndex=r=>{var o,i;e.setPageIndex(r?Zo:(o=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageIndex)!=null?o:Zo)},e.resetPageSize=r=>{var o,i;e.setPageSize(r?Jo:(o=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageSize)!=null?o:Jo)},e.setPageSize=r=>{e.setPagination(o=>{const i=Math.max(1,hn(r,o.pageSize)),s=o.pageSize*o.pageIndex,l=Math.floor(s/i);return{...o,pageIndex:l,pageSize:i}})},e.setPageCount=r=>e.setPagination(o=>{var i;let s=hn(r,(i=e.options.pageCount)!=null?i:-1);return typeof s=="number"&&(s=Math.max(-1,s)),{...o,pageCount:s}}),e.getPageOptions=re(()=>[e.getPageCount()],r=>{let o=[];return r&&r>0&&(o=[...new Array(r)].fill(null).map((i,s)=>s)),o},oe(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,o=e.getPageCount();return o===-1?!0:o===0?!1:r<o-1},e.previousPage=()=>e.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var r;return(r=e.options.rowCount)!=null?r:e.getPrePaginationRowModel().rows.length}}},ti=()=>({top:[],bottom:[]}),Xd={getInitialState:e=>({rowPinning:ti(),...e}),getDefaultOptions:e=>({onRowPinningChange:pt("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,o)=>{const i=r?e.getLeafRows().map(a=>{let{id:c}=a;return c}):[],s=o?e.getParentRows().map(a=>{let{id:c}=a;return c}):[],l=new Set([...s,e.id,...i]);t.setRowPinning(a=>{var c,d;if(n==="bottom"){var u,f;return{top:((u=a?.top)!=null?u:[]).filter(p=>!(l!=null&&l.has(p))),bottom:[...((f=a?.bottom)!=null?f:[]).filter(p=>!(l!=null&&l.has(p))),...Array.from(l)]}}if(n==="top"){var g,h;return{top:[...((g=a?.top)!=null?g:[]).filter(p=>!(l!=null&&l.has(p))),...Array.from(l)],bottom:((h=a?.bottom)!=null?h:[]).filter(p=>!(l!=null&&l.has(p)))}}return{top:((c=a?.top)!=null?c:[]).filter(p=>!(l!=null&&l.has(p))),bottom:((d=a?.bottom)!=null?d:[]).filter(p=>!(l!=null&&l.has(p)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:o}=t.options;return typeof r=="function"?r(e):(n=r??o)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:o}=t.getState().rowPinning,i=n.some(l=>r?.includes(l)),s=n.some(l=>o?.includes(l));return i?"top":s?"bottom":!1},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();if(!o)return-1;const i=(n=o==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(s=>{let{id:l}=s;return l});return(r=i?.indexOf(e.id))!=null?r:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?ti():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:ti())},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;if(!t){var o,i;return!!((o=r.top)!=null&&o.length||(i=r.bottom)!=null&&i.length)}return!!((n=r[t])!=null&&n.length)},e._getPinnedRows=(t,n,r)=>{var o;return((o=e.options.keepPinnedRows)==null||o?(n??[]).map(s=>{const l=e.getRow(s,!0);return l.getIsAllParentsExpanded()?l:null}):(n??[]).map(s=>t.find(l=>l.id===s))).filter(Boolean).map(s=>({...s,position:r}))},e.getTopRows=re(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),oe(e.options,"debugRows","getTopRows")),e.getBottomRows=re(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),oe(e.options,"debugRows","getBottomRows")),e.getCenterRows=re(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,r)=>{const o=new Set([...n??[],...r??[]]);return t.filter(i=>!o.has(i.id))},oe(e.options,"debugRows","getCenterRows"))}},Zd={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:pt("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(i=>{i.getCanSelect()&&(r[i.id]=!0)}):o.forEach(i=>{delete r[i.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach(i=>{ni(o,i.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=re(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?ri(e,n):{rows:[],flatRows:[],rowsById:{}},oe(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=re(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?ri(e,n):{rows:[],flatRows:[],rowsById:{}},oe(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=re(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?ri(e,n):{rows:[],flatRows:[],rowsById:{}},oe(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!(t.length&&Object.keys(n).length);return r&&t.some(o=>o.getCanSelect()&&!n[o.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(o=>o.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(o=>!n[o.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const o=e.getIsSelected();t.setRowSelection(i=>{var s;if(n=typeof n<"u"?n:!o,e.getCanSelect()&&o===n)return i;const l={...i};return ni(l,e.id,n,(s=r?.selectChildren)!=null?s:!0,t),l})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return oi(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return ii(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return ii(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return r=>{var o;n&&e.toggleSelected((o=r.target)==null?void 0:o.checked)}}}},ni=(e,t,n,r,o)=>{var i;const s=o.getRow(t,!0);n?(s.getCanMultiSelect()||Object.keys(e).forEach(l=>delete e[l]),s.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(i=s.subRows)!=null&&i.length&&s.getCanSelectSubRows()&&s.subRows.forEach(l=>ni(e,l.id,n,r,o))};function ri(e,t){const n=e.getState().rowSelection,r=[],o={},i=function(s,l){return s.map(a=>{var c;const d=oi(a,n);if(d&&(r.push(a),o[a.id]=a),(c=a.subRows)!=null&&c.length&&(a={...a,subRows:i(a.subRows)}),d)return a}).filter(Boolean)};return{rows:i(t.rows),flatRows:r,rowsById:o}}function oi(e,t){var n;return(n=t[e.id])!=null?n:!1}function ii(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let o=!0,i=!1;return e.subRows.forEach(s=>{if(!(i&&!o)&&(s.getCanSelect()&&(oi(s,t)?i=!0:o=!1),s.subRows&&s.subRows.length)){const l=ii(s,t);l==="all"?i=!0:(l==="some"&&(i=!0),o=!1)}}),o?"all":i?"some":!1}const si=/([0-9]+)/gm,Jd=(e,t,n)=>Xs(pn(e.getValue(n)).toLowerCase(),pn(t.getValue(n)).toLowerCase()),ef=(e,t,n)=>Xs(pn(e.getValue(n)),pn(t.getValue(n))),tf=(e,t,n)=>ai(pn(e.getValue(n)).toLowerCase(),pn(t.getValue(n)).toLowerCase()),nf=(e,t,n)=>ai(pn(e.getValue(n)),pn(t.getValue(n))),rf=(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:r<o?-1:0},of=(e,t,n)=>ai(e.getValue(n),t.getValue(n));function ai(e,t){return e===t?0:e>t?1:-1}function pn(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function Xs(e,t){const n=e.split(si).filter(Boolean),r=t.split(si).filter(Boolean);for(;n.length&&r.length;){const o=n.shift(),i=r.shift(),s=parseInt(o,10),l=parseInt(i,10),a=[s,l].sort();if(isNaN(a[0])){if(o>i)return 1;if(i>o)return-1;continue}if(isNaN(a[1]))return isNaN(s)?-1:1;if(s>l)return 1;if(l>s)return-1}return n.length-r.length}const gr={alphanumeric:Jd,alphanumericCaseSensitive:ef,text:tf,textCaseSensitive:nf,datetime:rf,basic:of},sf=[Td,Ud,Vd,Bd,Ld,qd,jd,Qd,{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:pt("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const o of n){const i=o?.getValue(e.id);if(Object.prototype.toString.call(i)==="[object Date]")return gr.datetime;if(typeof i=="string"&&(r=!0,i.split(si).length>1))return gr.alphanumeric}return r?gr.text:gr.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof n?.getValue(e.id)=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return Gr(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(r=t.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?n:gr[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const o=e.getNextSortingOrder(),i=typeof n<"u"&&n!==null;t.setSorting(s=>{const l=s?.find(g=>g.id===e.id),a=s?.findIndex(g=>g.id===e.id);let c=[],d,u=i?n:o==="desc";if(s!=null&&s.length&&e.getCanMultiSort()&&r?l?d="toggle":d="add":s!=null&&s.length&&a!==s.length-1?d="replace":l?d="toggle":d="replace",d==="toggle"&&(i||o||(d="remove")),d==="add"){var f;c=[...s,{id:e.id,desc:u}],c.splice(0,c.length-((f=t.options.maxMultiSortColCount)!=null?f:Number.MAX_SAFE_INTEGER))}else d==="toggle"?c=s.map(g=>g.id===e.id?{...g,desc:u}:g):d==="remove"?c=s.filter(g=>g.id!==e.id):c=[{id:e.id,desc:u}];return c})},e.getFirstSortDir=()=>{var n,r;return((n=(r=e.columnDef.sortDescFirst)!=null?r:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var r,o;const i=e.getFirstSortDir(),s=e.getIsSorted();return s?s!==i&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(o=t.options.enableMultiRemove)!=null)||o)?!1:s==="desc"?"asc":"desc":i},e.getCanSort=()=>{var n,r;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((r=t.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return(n=(r=e.columnDef.enableMultiSort)!=null?r:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=(n=t.getState().sorting)==null?void 0:n.find(o=>o.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,r;return(n=(r=t.getState().sorting)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:(n=(r=e.initialState)==null?void 0:r.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},zd,Wd,Yd,Xd,Zd,Gd];function af(e){var t,n;process.env.NODE_ENV!=="production"&&(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");const r=[...sf,...(t=e._features)!=null?t:[]];let o={_features:r};const i=o._features.reduce((f,g)=>Object.assign(f,g.getDefaultOptions==null?void 0:g.getDefaultOptions(o)),{}),s=f=>o.options.mergeOptions?o.options.mergeOptions(i,f):{...i,...f};let a={...{},...(n=e.initialState)!=null?n:{}};o._features.forEach(f=>{var g;a=(g=f.getInitialState==null?void 0:f.getInitialState(a))!=null?g:a});const c=[];let d=!1;const u={_features:r,options:{...i,...e},initialState:a,_queue:f=>{c.push(f),d||(d=!0,Promise.resolve().then(()=>{for(;c.length;)c.shift()();d=!1}).catch(g=>setTimeout(()=>{throw g})))},reset:()=>{o.setState(o.initialState)},setOptions:f=>{const g=hn(f,o.options);o.options=s(g)},getState:()=>o.options.state,setState:f=>{o.options.onStateChange==null||o.options.onStateChange(f)},_getRowId:(f,g,h)=>{var p;return(p=o.options.getRowId==null?void 0:o.options.getRowId(f,g,h))!=null?p:`${h?[h.id,g].join("."):g}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(f,g)=>{let h=(g?o.getPrePaginationRowModel():o.getRowModel()).rowsById[f];if(!h&&(h=o.getCoreRowModel().rowsById[f],!h))throw process.env.NODE_ENV!=="production"?new Error(`getRow could not find row with ID: ${f}`):new Error;return h},_getDefaultColumnDef:re(()=>[o.options.defaultColumn],f=>{var g;return f=(g=f)!=null?g:{},{header:h=>{const p=h.header.column.columnDef;return p.accessorKey?p.accessorKey:p.accessorFn?p.id:null},cell:h=>{var p,y;return(p=(y=h.renderValue())==null||y.toString==null?void 0:y.toString())!=null?p:null},...o._features.reduce((h,p)=>Object.assign(h,p.getDefaultColumnDef==null?void 0:p.getDefaultColumnDef()),{}),...f}},oe(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>o.options.columns,getAllColumns:re(()=>[o._getColumnDefs()],f=>{const g=function(h,p,y){return y===void 0&&(y=0),h.map(m=>{const b=Dd(o,m,y,p),w=m;return b.columns=w.columns?g(w.columns,b,y+1):[],b})};return g(f)},oe(e,"debugColumns","getAllColumns")),getAllFlatColumns:re(()=>[o.getAllColumns()],f=>f.flatMap(g=>g.getFlatColumns()),oe(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:re(()=>[o.getAllFlatColumns()],f=>f.reduce((g,h)=>(g[h.id]=h,g),{}),oe(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:re(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(f,g)=>{let h=f.flatMap(p=>p.getLeafColumns());return g(h)},oe(e,"debugColumns","getAllLeafColumns")),getColumn:f=>{const g=o._getAllFlatColumnsById()[f];return process.env.NODE_ENV!=="production"&&!g&&console.error(`[Table] Column with id '${f}' does not exist.`),g}};Object.assign(o,u);for(let f=0;f<o._features.length;f++){const g=o._features[f];g==null||g.createTable==null||g.createTable(o)}return o}function lf(){return e=>re(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(o,i,s){i===void 0&&(i=0);const l=[];for(let c=0;c<o.length;c++){const d=Rd(e,e._getRowId(o[c],c,s),o[c],c,i,void 0,s?.id);if(n.flatRows.push(d),n.rowsById[d.id]=d,l.push(d),e.options.getSubRows){var a;d.originalSubRows=e.options.getSubRows(o[c],c),(a=d.originalSubRows)!=null&&a.length&&(d.subRows=r(d.originalSubRows,i+1,d))}}return l};return n.rows=r(t),n},oe(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function uf(e){const t=[],n=r=>{var o;t.push(r),(o=r.subRows)!=null&&o.length&&r.getIsExpanded()&&r.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function cf(e){return t=>re(()=>[t.getState().pagination,t.getPrePaginationRowModel(),t.options.paginateExpandedRows?void 0:t.getState().expanded],(n,r)=>{if(!r.rows.length)return r;const{pageSize:o,pageIndex:i}=n;let{rows:s,flatRows:l,rowsById:a}=r;const c=o*i,d=c+o;s=s.slice(c,d);let u;t.options.paginateExpandedRows?u={rows:s,flatRows:l,rowsById:a}:u=uf({rows:s,flatRows:l,rowsById:a}),u.flatRows=[];const f=g=>{u.flatRows.push(g),g.subRows.length&&g.subRows.forEach(f)};return u.rows.forEach(f),u},oe(t.options,"debugTable","getPaginationRowModel"))}function Zs(e,t){return e?df(e)?we.createElement(e,t):e:null}function df(e){return ff(e)||typeof e=="function"||gf(e)}function ff(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function gf(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function hf(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=we.useState(()=>({current:af(t)})),[r,o]=we.useState(()=>n.current.initialState);return n.current.setOptions(i=>({...i,...e,state:{...r,...e.state},onStateChange:s=>{o(s),e.onStateChange==null||e.onStateChange(s)}})),n.current}var ae={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return Js(this.context.count)},getNextContextId(){return Js(this.context.count++)}};function Js(e){const t=String(e),n=t.length-1;return ae.context.id+(n?String.fromCharCode(96+n):"")+t}function hr(e){ae.context=e}var ea=!1,pf=(e,t)=>e===t,Qr=Symbol("solid-proxy"),ta=typeof Proxy=="function",Wr=Symbol("solid-track"),Yr={equals:pf},na=ca,Jt=1,Xr=2,ra={owned:null,cleanups:null,context:null,owner:null},li={},ve=null,ui=null,mf=null,ke=null,Ye=null,en=null,Zr=0;function tn(e,t){const n=ke,r=ve,o=e.length===0,i=t===void 0?r:t,s=o?ra:{owned:null,cleanups:null,context:i?i.context:null,owner:i},l=o?e:()=>e(()=>De(()=>pr(s)));ve=s,ke=null;try{return zt(l,!0)}finally{ke=n,ve=r}}function q(e,t){t=t?Object.assign({},Yr,t):Yr;const n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},r=o=>(typeof o=="function"&&(o=o(n.value)),ua(n,o));return[la.bind(n),r]}function oa(e,t,n){const r=Jr(e,t,!0,Jt);Hn(r)}function X(e,t,n){const r=Jr(e,t,!1,Jt);Hn(r)}function Z(e,t,n){na=Ef;const r=Jr(e,t,!1,Jt);(!n||!n.render)&&(r.user=!0),en?en.push(r):Hn(r)}function _(e,t,n){n=n?Object.assign({},Yr,n):Yr;const r=Jr(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,Hn(r),la.bind(r)}function yf(e){return e&&typeof e=="object"&&"then"in e}function vf(e,t,n){let r,o,i;r=!0,o=e,i={};let s=null,l=li,a=null,c=!1,d="initialValue"in i,u=typeof r=="function"&&_(r);const f=new Set,[g,h]=(i.storage||q)(i.initialValue),[p,y]=q(void 0),[m,b]=q(void 0,{equals:!1}),[w,x]=q(d?"ready":"unresolved");ae.context&&(a=ae.getNextContextId(),i.ssrLoadFrom==="initial"?l=i.initialValue:ae.load&&ae.has(a)&&(l=ae.load(a)));function S(E,N,H,J){return s===E&&(s=null,J!==void 0&&(d=!0),(E===l||N===l)&&i.onHydrated&&queueMicrotask(()=>i.onHydrated(J,{value:N})),l=li,I(N,H)),N}function I(E,N){zt(()=>{N===void 0&&h(()=>E),x(N!==void 0?"errored":d?"ready":"unresolved"),y(N);for(const H of f.keys())H.decrement();f.clear()},!1)}function M(){const E=Cf,N=g(),H=p();if(H!==void 0&&!s)throw H;return ke&&ke.user,N}function C(E=!0){if(E!==!1&&c)return;c=!1;const N=u?u():r;if(N==null||N===!1){S(s,De(g));return}let H;const J=l!==li?l:De(()=>{try{return o(N,{value:g(),refetching:E})}catch(ue){H=ue}});if(H!==void 0){S(s,void 0,no(H),N);return}else if(!yf(J))return S(s,J,void 0,N),J;return s=J,"v"in J?(J.s===1?S(s,J.v,void 0,N):S(s,void 0,no(J.v),N),J):(c=!0,queueMicrotask(()=>c=!1),zt(()=>{x(d?"refreshing":"pending"),b()},!1),J.then(ue=>S(J,ue,void 0,N),ue=>S(J,void 0,no(ue),N)))}Object.defineProperties(M,{state:{get:()=>w()},error:{get:()=>p()},loading:{get(){const E=w();return E==="pending"||E==="refreshing"}},latest:{get(){if(!d)return M();const E=p();if(E&&!s)throw E;return g()}}});let $=ve;return u?oa(()=>($=ve,C(!1))):C(!1),[M,{refetch:E=>sa($,()=>C(E)),mutate:h}]}function bf(e){return zt(e,!1)}function De(e){if(ke===null)return e();const t=ke;ke=null;try{return e()}finally{ke=t}}function nn(e,t,n){const r=Array.isArray(e);let o,i=n&&n.defer;return s=>{let l;if(r){l=Array(e.length);for(let c=0;c<e.length;c++)l[c]=e[c]()}else l=e();if(i)return i=!1,s;const a=De(()=>t(l,o,s));return o=l,a}}function rn(e){Z(()=>De(e))}function ee(e){return ve===null||(ve.cleanups===null?ve.cleanups=[e]:ve.cleanups.push(e)),e}function ia(){return ve}function sa(e,t){const n=ve,r=ke;ve=e,ke=null;try{return zt(t,!0)}catch(o){ci(o)}finally{ve=n,ke=r}}function wf(e){const t=ke,n=ve;return Promise.resolve().then(()=>{ke=t,ve=n;let r;return zt(e,!1),ke=ve=null,r?r.done:void 0})}var[xf,ob]=q(!1);function Sf(){return[xf,wf]}function Ue(e,t){const n=Symbol("context");return{id:n,Provider:Mf(n),defaultValue:e}}function je(e){let t;return ve&&ve.context&&(t=ve.context[e.id])!==void 0?t:e.defaultValue}function aa(e){const t=_(e),n=_(()=>di(t()));return n.toArray=()=>{const r=n();return Array.isArray(r)?r:r!=null?[r]:[]},n}var Cf;function la(){if(this.sources&&this.state)if(this.state===Jt)Hn(this);else{const e=Ye;Ye=null,zt(()=>to(this),!1),Ye=e}if(ke){const e=this.observers?this.observers.length:0;ke.sources?(ke.sources.push(this),ke.sourceSlots.push(e)):(ke.sources=[this],ke.sourceSlots=[e]),this.observers?(this.observers.push(ke),this.observerSlots.push(ke.sources.length-1)):(this.observers=[ke],this.observerSlots=[ke.sources.length-1])}return this.value}function ua(e,t,n){let r=e.value;return(!e.comparator||!e.comparator(r,t))&&(e.value=t,e.observers&&e.observers.length&&zt(()=>{for(let o=0;o<e.observers.length;o+=1){const i=e.observers[o],s=ui&&ui.running;s&&ui.disposed.has(i),(s?!i.tState:!i.state)&&(i.pure?Ye.push(i):en.push(i),i.observers&&da(i)),s||(i.state=Jt)}if(Ye.length>1e6)throw Ye=[],new Error},!1)),t}function Hn(e){if(!e.fn)return;pr(e);const t=Zr;$f(e,e.value,t)}function $f(e,t,n){let r;const o=ve,i=ke;ke=ve=e;try{r=e.fn(t)}catch(s){return e.pure&&(e.state=Jt,e.owned&&e.owned.forEach(pr),e.owned=null),e.updatedAt=n+1,ci(s)}finally{ke=i,ve=o}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?ua(e,r):e.value=r,e.updatedAt=n)}function Jr(e,t,n,r=Jt,o){const i={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:ve,context:ve?ve.context:null,pure:n};return ve===null||ve!==ra&&(ve.owned?ve.owned.push(i):ve.owned=[i]),i}function eo(e){if(e.state===0)return;if(e.state===Xr)return to(e);if(e.suspense&&De(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<Zr);)e.state&&t.push(e);for(let n=t.length-1;n>=0;n--)if(e=t[n],e.state===Jt)Hn(e);else if(e.state===Xr){const r=Ye;Ye=null,zt(()=>to(e,t[0]),!1),Ye=r}}function zt(e,t){if(Ye)return e();let n=!1;t||(Ye=[]),en?n=!0:en=[],Zr++;try{const r=e();return kf(n),r}catch(r){n||(en=null),Ye=null,ci(r)}}function kf(e){if(Ye&&(ca(Ye),Ye=null),e)return;const t=en;en=null,t.length&&zt(()=>na(t),!1)}function ca(e){for(let t=0;t<e.length;t++)eo(e[t])}function Ef(e){let t,n=0;for(t=0;t<e.length;t++){const r=e[t];r.user?e[n++]=r:eo(r)}if(ae.context){if(ae.count){ae.effects||(ae.effects=[]),ae.effects.push(...e.slice(0,n));return}hr()}for(ae.effects&&(ae.done||!ae.count)&&(e=[...ae.effects,...e],n+=ae.effects.length,delete ae.effects),t=0;t<n;t++)eo(e[t])}function to(e,t){e.state=0;for(let n=0;n<e.sources.length;n+=1){const r=e.sources[n];if(r.sources){const o=r.state;o===Jt?r!==t&&(!r.updatedAt||r.updatedAt<Zr)&&eo(r):o===Xr&&to(r,t)}}}function da(e){for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t];n.state||(n.state=Xr,n.pure?Ye.push(n):en.push(n),n.observers&&da(n))}}function pr(e){let t;if(e.sources)for(;e.sources.length;){const n=e.sources.pop(),r=e.sourceSlots.pop(),o=n.observers;if(o&&o.length){const i=o.pop(),s=n.observerSlots.pop();r<o.length&&(i.sourceSlots[s]=r,o[r]=i,n.observerSlots[r]=s)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)pr(e.tOwned[t]);delete e.tOwned}if(e.owned){for(t=e.owned.length-1;t>=0;t--)pr(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function no(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function ci(e,t=ve){throw no(e)}function di(e){if(typeof e=="function"&&!e.length)return di(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const r=di(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function Mf(e,t){return function(r){let o;return X(()=>o=De(()=>(ve.context={...ve.context,[e]:r.value},aa(()=>r.children))),void 0),o}}var fi=Symbol("fallback");function ro(e){for(let t=0;t<e.length;t++)e[t]()}function Pf(e,t,n={}){let r=[],o=[],i=[],s=0,l=t.length>1?[]:null;return ee(()=>ro(i)),()=>{let a=e()||[],c=a.length,d,u;return a[Wr],De(()=>{let g,h,p,y,m,b,w,x,S;if(c===0)s!==0&&(ro(i),i=[],r=[],o=[],s=0,l&&(l=[])),n.fallback&&(r=[fi],o[0]=tn(I=>(i[0]=I,n.fallback())),s=1);else if(s===0){for(o=new Array(c),u=0;u<c;u++)r[u]=a[u],o[u]=tn(f);s=c}else{for(p=new Array(c),y=new Array(c),l&&(m=new Array(c)),b=0,w=Math.min(s,c);b<w&&r[b]===a[b];b++);for(w=s-1,x=c-1;w>=b&&x>=b&&r[w]===a[x];w--,x--)p[x]=o[w],y[x]=i[w],l&&(m[x]=l[w]);for(g=new Map,h=new Array(x+1),u=x;u>=b;u--)S=a[u],d=g.get(S),h[u]=d===void 0?-1:d,g.set(S,u);for(d=b;d<=w;d++)S=r[d],u=g.get(S),u!==void 0&&u!==-1?(p[u]=o[d],y[u]=i[d],l&&(m[u]=l[d]),u=h[u],g.set(S,u)):i[d]();for(u=b;u<c;u++)u in p?(o[u]=p[u],i[u]=y[u],l&&(l[u]=m[u],l[u](u))):o[u]=tn(f);o=o.slice(0,s=c),r=a.slice(0)}return o});function f(g){if(i[u]=g,l){const[h,p]=q(u);return l[u]=p,t(a[u],h)}return t(a[u])}}}function Af(e,t,n={}){let r=[],o=[],i=[],s=[],l=0,a;return ee(()=>ro(i)),()=>{const c=e()||[],d=c.length;return c[Wr],De(()=>{if(d===0)return l!==0&&(ro(i),i=[],r=[],o=[],l=0,s=[]),n.fallback&&(r=[fi],o[0]=tn(f=>(i[0]=f,n.fallback())),l=1),o;for(r[0]===fi&&(i[0](),i=[],r=[],o=[],l=0),a=0;a<d;a++)a<r.length&&r[a]!==c[a]?s[a](()=>c[a]):a>=r.length&&(o[a]=tn(u));for(;a<r.length;a++)i[a]();return l=s.length=i.length=d,r=c.slice(0),o=o.slice(0,l)});function u(f){i[a]=f;const[g,h]=q(c[a]);return s[a]=h,t(g,a)}}}function v(e,t){return De(()=>e(t||{}))}function oo(){return!0}var gi={get(e,t,n){return t===Qr?n:e.get(t)},has(e,t){return t===Qr?!0:e.has(t)},set:oo,deleteProperty:oo,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:oo,deleteProperty:oo}},ownKeys(e){return e.keys()}};function hi(e){return(e=typeof e=="function"?e():e)?e:{}}function If(){for(let e=0,t=this.length;e<t;++e){const n=this[e]();if(n!==void 0)return n}}function le(...e){let t=!1;for(let s=0;s<e.length;s++){const l=e[s];t=t||!!l&&Qr in l,e[s]=typeof l=="function"?(t=!0,_(l)):l}if(ta&&t)return new Proxy({get(s){for(let l=e.length-1;l>=0;l--){const a=hi(e[l])[s];if(a!==void 0)return a}},has(s){for(let l=e.length-1;l>=0;l--)if(s in hi(e[l]))return!0;return!1},keys(){const s=[];for(let l=0;l<e.length;l++)s.push(...Object.keys(hi(e[l])));return[...new Set(s)]}},gi);const n={},r=Object.create(null);for(let s=e.length-1;s>=0;s--){const l=e[s];if(!l)continue;const a=Object.getOwnPropertyNames(l);for(let c=a.length-1;c>=0;c--){const d=a[c];if(d==="__proto__"||d==="constructor")continue;const u=Object.getOwnPropertyDescriptor(l,d);if(!r[d])r[d]=u.get?{enumerable:!0,configurable:!0,get:If.bind(n[d]=[u.get.bind(l)])}:u.value!==void 0?u:void 0;else{const f=n[d];f&&(u.get?f.push(u.get.bind(l)):u.value!==void 0&&f.push(()=>u.value))}}}const o={},i=Object.keys(r);for(let s=i.length-1;s>=0;s--){const l=i[s],a=r[l];a&&a.get?Object.defineProperty(o,l,a):o[l]=a?a.value:void 0}return o}function Ce(e,...t){if(ta&&Qr in e){const o=new Set(t.length>1?t.flat():t[0]),i=t.map(s=>new Proxy({get(l){return s.includes(l)?e[l]:void 0},has(l){return s.includes(l)&&l in e},keys(){return s.filter(l=>l in e)}},gi));return i.push(new Proxy({get(s){return o.has(s)?void 0:e[s]},has(s){return o.has(s)?!1:s in e},keys(){return Object.keys(e).filter(s=>!o.has(s))}},gi)),i}const n={},r=t.map(()=>({}));for(const o of Object.getOwnPropertyNames(e)){const i=Object.getOwnPropertyDescriptor(e,o),s=!i.get&&!i.set&&i.enumerable&&i.writable&&i.configurable;let l=!1,a=0;for(const c of t)c.includes(o)&&(l=!0,s?r[a][o]=i.value:Object.defineProperty(r[a],o,i)),++a;l||(s?n[o]=i.value:Object.defineProperty(n,o,i))}return[...r,n]}function fa(e){let t,n;const r=o=>{const i=ae.context;if(i){const[l,a]=q();ae.count||(ae.count=0),ae.count++,(n||(n=e())).then(c=>{!ae.done&&hr(i),ae.count--,a(()=>c.default),hr()}),t=l}else if(!t){const[l]=vf(()=>(n||(n=e())).then(a=>a.default));t=l}let s;return _(()=>(s=t())?De(()=>{if(!i||ae.done)return s(o);const l=ae.context;hr(i);const a=s(o);return hr(l),a}):"")};return r.preload=()=>n||((n=e()).then(o=>t=()=>o.default),n),r}var Ff=0;function St(){return ae.context?ae.getNextContextId():`cl-${Ff++}`}var ga=e=>`Stale read from <${e}>.`;function _f(e){const t="fallback"in e&&{fallback:()=>e.fallback};return _(Pf(()=>e.each,e.children,t||void 0))}function Of(e){const t="fallback"in e&&{fallback:()=>e.fallback};return _(Af(()=>e.each,e.children,t||void 0))}function W(e){const t=e.keyed,n=_(()=>e.when,void 0,void 0),r=t?n:_(n,void 0,{equals:(o,i)=>!o==!i});return _(()=>{const o=r();if(o){const i=e.children;return typeof i=="function"&&i.length>0?De(()=>i(t?o:()=>{if(!De(r))throw ga("Show");return n()})):i}return e.fallback},void 0,void 0)}function Df(e){const t=aa(()=>e.children),n=_(()=>{const r=t(),o=Array.isArray(r)?r:[r];let i=()=>{};for(let s=0;s<o.length;s++){const l=s,a=o[s],c=i,d=_(()=>c()?void 0:a.when,void 0,void 0),u=a.keyed?d:_(d,void 0,{equals:(f,g)=>!f==!g});i=()=>c()||(u()?[l,d,a]:void 0)}return i});return _(()=>{const r=n()();if(!r)return e.fallback;const[o,i,s]=r,l=s.children;return typeof l=="function"&&l.length>0?De(()=>l(s.keyed?i():()=>{if(De(n)()?.[0]!==o)throw ga("Match");return i()})):l},void 0,void 0)}function pi(e){return e}var Tf=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"],Rf=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline",...Tf]),Lf=new Set(["innerHTML","textContent","innerText","children"]),qf=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),zf=Object.assign(Object.create(null),{class:"className",novalidate:{$:"noValidate",FORM:1},formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}});function Nf(e,t){const n=zf[e];return typeof n=="object"?n[t]?n.$:void 0:n}var Vf=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),Bf=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),Hf={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},Le=e=>_(()=>e());function Gf(e,t,n){let r=n.length,o=t.length,i=r,s=0,l=0,a=t[o-1].nextSibling,c=null;for(;s<o||l<i;){if(t[s]===n[l]){s++,l++;continue}for(;t[o-1]===n[i-1];)o--,i--;if(o===s){const d=i<r?l?n[l-1].nextSibling:n[i-l]:a;for(;l<i;)e.insertBefore(n[l++],d)}else if(i===l)for(;s<o;)(!c||!c.has(t[s]))&&t[s].remove(),s++;else if(t[s]===n[i-1]&&n[l]===t[o-1]){const d=t[--o].nextSibling;e.insertBefore(n[l++],t[s++].nextSibling),e.insertBefore(n[--i],d),t[o]=n[i]}else{if(!c){c=new Map;let u=l;for(;u<i;)c.set(n[u],u++)}const d=c.get(t[s]);if(d!=null)if(l<d&&d<i){let u=s,f=1,g;for(;++u<o&&u<i&&!((g=c.get(t[u]))==null||g!==d+f);)f++;if(f>d-l){const h=t[s];for(;l<d;)e.insertBefore(n[l++],h)}else e.replaceChild(n[l++],t[s++])}else s++;else t[s++].remove()}}}var mr="_$DX_DELEGATE";function ha(e,t,n,r={}){let o;return tn(i=>{o=i,t===document?e():A(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{o(),t.textContent=""}}function V(e,t,n,r){let o;const i=()=>{const l=document.createElement("template");return l.innerHTML=e,l.content.firstChild},s=()=>(o||(o=i())).cloneNode(!0);return s.cloneNode=s,s}function io(e,t=window.document){const n=t[mr]||(t[mr]=new Set);for(let r=0,o=e.length;r<o;r++){const i=e[r];n.has(i)||(n.add(i),t.addEventListener(i,ba))}}function Kf(e=window.document){if(e[mr]){for(let t of e[mr].keys())e.removeEventListener(t,ba);delete e[mr]}}function O(e,t,n){An(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function Uf(e,t,n,r){An(e)||(r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}function jf(e,t,n){An(e)||(n?e.setAttribute(t,""):e.removeAttribute(t))}function D(e,t){An(e)||(t==null?e.removeAttribute("class"):e.className=t)}function pa(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const o=n[0];e.addEventListener(t,n[0]=i=>o.call(e,n[1],i))}else e.addEventListener(t,n,typeof n!="function"&&n)}function Qf(e,t,n={}){const r=Object.keys(t||{}),o=Object.keys(n);let i,s;for(i=0,s=o.length;i<s;i++){const l=o[i];!l||l==="undefined"||t[l]||(ya(e,l,!1),delete n[l])}for(i=0,s=r.length;i<s;i++){const l=r[i],a=!!t[l];!l||l==="undefined"||n[l]===a||!a||(ya(e,l,!0),n[l]=a)}return n}function Wf(e,t,n){if(!t)return n?O(e,"style"):t;const r=e.style;if(typeof t=="string")return r.cssText=t;typeof n=="string"&&(r.cssText=n=void 0),n||(n={}),t||(t={});let o,i;for(i in n)t[i]==null&&r.removeProperty(i),delete n[i];for(i in t)o=t[i],o!==n[i]&&(r.setProperty(i,o),n[i]=o);return n}function ma(e,t={},n,r){const o={};return r||X(()=>o.children=yr(e,t.children,o.children)),X(()=>typeof t.ref=="function"&&Gn(t.ref,e)),X(()=>Yf(e,t,n,!0,o,!0)),o}function Gn(e,t,n){return De(()=>e(t,n))}function A(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return yr(e,t,r,n);X(o=>yr(e,t(),o,n),r)}function Yf(e,t,n,r,o={},i=!1){t||(t={});for(const s in o)if(!(s in t)){if(s==="children")continue;o[s]=va(e,s,null,o[s],n,i,t)}for(const s in t){if(s==="children")continue;const l=t[s];o[s]=va(e,s,l,o[s],n,i,t)}}function Xf(e){let t,n;return!An()||!(t=ae.registry.get(n=Jf()))?e():(ae.completed&&ae.completed.add(t),ae.registry.delete(n),t)}function An(e){return!!ae.context&&!ae.done&&(!e||e.isConnected)}function Zf(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function ya(e,t,n){const r=t.trim().split(/\s+/);for(let o=0,i=r.length;o<i;o++)e.classList.toggle(r[o],n)}function va(e,t,n,r,o,i,s){let l,a,c,d,u;if(t==="style")return Wf(e,n,r);if(t==="classList")return Qf(e,n,r);if(n===r)return r;if(t==="ref")i||n(e);else if(t.slice(0,3)==="on:"){const f=t.slice(3);r&&e.removeEventListener(f,r,typeof r!="function"&&r),n&&e.addEventListener(f,n,typeof n!="function"&&n)}else if(t.slice(0,10)==="oncapture:"){const f=t.slice(10);r&&e.removeEventListener(f,r,!0),n&&e.addEventListener(f,n,!0)}else if(t.slice(0,2)==="on"){const f=t.slice(2).toLowerCase(),g=Vf.has(f);if(!g&&r){const h=Array.isArray(r)?r[0]:r;e.removeEventListener(f,h)}(g||n)&&(pa(e,f,n,g),g&&io([f]))}else if(t.slice(0,5)==="attr:")O(e,t.slice(5),n);else if(t.slice(0,5)==="bool:")jf(e,t.slice(5),n);else if((u=t.slice(0,5)==="prop:")||(c=Lf.has(t))||!o&&((d=Nf(t,e.tagName))||(a=Rf.has(t)))||(l=e.nodeName.includes("-")||"is"in s)){if(u)t=t.slice(5),a=!0;else if(An(e))return n;t==="class"||t==="className"?D(e,n):l&&!a&&!c?e[Zf(t)]=n:e[d||t]=n}else{const f=o&&t.indexOf(":")>-1&&Hf[t.split(":")[0]];f?Uf(e,f,t,n):O(e,qf[t]||t,n)}return n}function ba(e){if(ae.registry&&ae.events&&ae.events.find(([a,c])=>c===e))return;let t=e.target;const n=`$$${e.type}`,r=e.target,o=e.currentTarget,i=a=>Object.defineProperty(e,"target",{configurable:!0,value:a}),s=()=>{const a=t[n];if(a&&!t.disabled){const c=t[`${n}Data`];if(c!==void 0?a.call(t,c,e):a.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&i(t.host),!0},l=()=>{for(;s()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),ae.registry&&!ae.done&&(ae.done=_$HY.done=!0),e.composedPath){const a=e.composedPath();i(a[0]);for(let c=0;c<a.length-2&&(t=a[c],!!s());c++){if(t._$host){t=t._$host,l();break}if(t.parentNode===o)break}}else l();i(r)}function yr(e,t,n,r,o){const i=An(e);if(i){!n&&(n=[...e.childNodes]);let a=[];for(let c=0;c<n.length;c++){const d=n[c];d.nodeType===8&&d.data.slice(0,2)==="!$"?d.remove():a.push(d)}n=a}for(;typeof n=="function";)n=n();if(t===n)return n;const s=typeof t,l=r!==void 0;if(e=l&&n[0]&&n[0].parentNode||e,s==="string"||s==="number"){if(i||s==="number"&&(t=t.toString(),t===n))return n;if(l){let a=n[0];a&&a.nodeType===3?a.data!==t&&(a.data=t):a=document.createTextNode(t),n=Kn(e,n,r,a)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t}else if(t==null||s==="boolean"){if(i)return n;n=Kn(e,n,r)}else{if(s==="function")return X(()=>{let a=t();for(;typeof a=="function";)a=a();n=yr(e,a,n,r)}),()=>n;if(Array.isArray(t)){const a=[],c=n&&Array.isArray(n);if(mi(a,t,n,o))return X(()=>n=yr(e,a,n,r,!0)),()=>n;if(i){if(!a.length)return n;if(r===void 0)return n=[...e.childNodes];let d=a[0];if(d.parentNode!==e)return n;const u=[d];for(;(d=d.nextSibling)!==r;)u.push(d);return n=u}if(a.length===0){if(n=Kn(e,n,r),l)return n}else c?n.length===0?wa(e,a,r):Gf(e,n,a):(n&&Kn(e),wa(e,a));n=a}else if(t.nodeType){if(i&&t.parentNode)return n=l?[t]:t;if(Array.isArray(n)){if(l)return n=Kn(e,n,r,t);Kn(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}}return n}function mi(e,t,n,r){let o=!1;for(let i=0,s=t.length;i<s;i++){let l=t[i],a=n&&n[e.length],c;if(!(l==null||l===!0||l===!1))if((c=typeof l)=="object"&&l.nodeType)e.push(l);else if(Array.isArray(l))o=mi(e,l,a)||o;else if(c==="function")if(r){for(;typeof l=="function";)l=l();o=mi(e,Array.isArray(l)?l:[l],Array.isArray(a)?a:[a])||o}else e.push(l),o=!0;else{const d=String(l);a&&a.nodeType===3&&a.data===d?e.push(a):e.push(document.createTextNode(d))}}return o}function wa(e,t,n=null){for(let r=0,o=t.length;r<o;r++)e.insertBefore(t[r],n)}function Kn(e,t,n,r){if(n===void 0)return e.textContent="";const o=r||document.createTextNode("");if(t.length){let i=!1;for(let s=t.length-1;s>=0;s--){const l=t[s];if(o!==l){const a=l.parentNode===e;!i&&!s?a?e.replaceChild(o,l):e.insertBefore(o,n):a&&l.remove()}else i=!0}}else e.insertBefore(o,n);return[o]}function Jf(){return ae.getNextContextId()}var eg="http://www.w3.org/2000/svg";function xa(e,t=!1){return t?document.createElementNS(eg,e):document.createElement(e)}function Sa(e){const{useShadow:t}=e,n=document.createTextNode(""),r=()=>e.mount||document.body,o=ia();let i,s=!!ae.context;return Z(()=>{s&&(ia().user=s=!1),i||(i=sa(o,()=>_(()=>e.children)));const l=r();if(l instanceof HTMLHeadElement){const[a,c]=q(!1),d=()=>c(!0);tn(u=>A(l,()=>a()?u():i(),null)),ee(d)}else{const a=xa(e.isSVG?"g":"div",e.isSVG),c=t&&a.attachShadow?a.attachShadow({mode:"open"}):a;Object.defineProperty(a,"_$host",{get(){return n.parentNode},configurable:!0}),A(c,i),l.appendChild(a),e.ref&&e.ref(a),ee(()=>l.removeChild(a))}},void 0,{render:!s}),n}function tg(e,t){const n=_(e);return _(()=>{const r=n();switch(typeof r){case"function":return De(()=>r(t));case"string":const o=Bf.has(r),i=ae.context?Xf():xa(r,o);return ma(i,t,o),i}})}function ng(e){const[,t]=Ce(e,["component"]);return tg(()=>e.component,t)}var rg=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},Ca=class{constructor(e){this.generateIdentifier=e,this.kv=new rg}register(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}},og=class extends Ca{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){typeof t=="object"?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}};function ig(e){if("values"in Object)return Object.values(e);const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function sg(e,t){const n=ig(e);if("find"in n)return n.find(t);const r=n;for(let o=0;o<r.length;o++){const i=r[o];if(t(i))return i}}function Un(e,t){Object.entries(e).forEach(([n,r])=>t(r,n))}function so(e,t){return e.indexOf(t)!==-1}function $a(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(t(r))return r}}var ag=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return sg(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}},lg=e=>Object.prototype.toString.call(e).slice(8,-1),ka=e=>typeof e>"u",ug=e=>e===null,vr=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,yi=e=>vr(e)&&Object.keys(e).length===0,mn=e=>Array.isArray(e),cg=e=>typeof e=="string",dg=e=>typeof e=="number"&&!isNaN(e),fg=e=>typeof e=="boolean",gg=e=>e instanceof RegExp,br=e=>e instanceof Map,wr=e=>e instanceof Set,Ea=e=>lg(e)==="Symbol",hg=e=>e instanceof Date&&!isNaN(e.valueOf()),pg=e=>e instanceof Error,Ma=e=>typeof e=="number"&&isNaN(e),mg=e=>fg(e)||ug(e)||ka(e)||dg(e)||cg(e)||Ea(e),yg=e=>typeof e=="bigint",vg=e=>e===1/0||e===-1/0,bg=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),wg=e=>e instanceof URL,Pa=e=>e.replace(/\./g,"\\."),vi=e=>e.map(String).map(Pa).join("."),xr=e=>{const t=[];let n="";for(let o=0;o<e.length;o++){let i=e.charAt(o);if(i==="\\"&&e.charAt(o+1)==="."){n+=".",o++;continue}if(i==="."){t.push(n),n="";continue}n+=i}const r=n;return t.push(r),t};function Nt(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var Aa=[Nt(ka,"undefined",()=>null,()=>{}),Nt(yg,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):e),Nt(hg,"Date",e=>e.toISOString(),e=>new Date(e)),Nt(pg,"Error",(e,t)=>{const n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n},(e,t)=>{const n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n}),Nt(gg,"regexp",e=>""+e,e=>{const t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),Nt(wr,"set",e=>[...e.values()],e=>new Set(e)),Nt(br,"map",e=>[...e.entries()],e=>new Map(e)),Nt(e=>Ma(e)||vg(e),"number",e=>Ma(e)?"NaN":e>0?"Infinity":"-Infinity",Number),Nt(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),Nt(wg,"URL",e=>e.toString(),e=>new URL(e))];function ao(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var Ia=ao((e,t)=>Ea(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{const r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),xg=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),Fa=ao(bg,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{const n=xg[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function _a(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}var Oa=ao(_a,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{const n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return{...e};const r={};return n.forEach(o=>{r[o]=e[o]}),r},(e,t,n)=>{const r=n.classRegistry.getValue(t[1]);if(!r)throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(r.prototype),e)}),Da=ao((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,n)=>{const r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),Sg=[Oa,Ia,Da,Fa],Ta=(e,t)=>{const n=$a(Sg,o=>o.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};const r=$a(Aa,o=>o.isApplicable(e,t));if(r)return{value:r.transform(e,t),type:r.annotation}},Ra={};Aa.forEach(e=>{Ra[e.annotation]=e});var Cg=(e,t,n)=>{if(mn(t))switch(t[0]){case"symbol":return Ia.untransform(e,t,n);case"class":return Oa.untransform(e,t,n);case"custom":return Da.untransform(e,t,n);case"typed-array":return Fa.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{const r=Ra[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}},jn=(e,t)=>{if(t>e.size)throw new Error("index out of bounds");const n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};function La(e){if(so(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(so(e,"prototype"))throw new Error("prototype is not allowed as a property");if(so(e,"constructor"))throw new Error("constructor is not allowed as a property")}var $g=(e,t)=>{La(t);for(let n=0;n<t.length;n++){const r=t[n];if(wr(e))e=jn(e,+r);else if(br(e)){const o=+r,i=+t[++n]==0?"key":"value",s=jn(e,o);switch(i){case"key":e=s;break;case"value":e=e.get(s);break}}else e=e[r]}return e},bi=(e,t,n)=>{if(La(t),t.length===0)return n(e);let r=e;for(let i=0;i<t.length-1;i++){const s=t[i];if(mn(r)){const l=+s;r=r[l]}else if(vr(r))r=r[s];else if(wr(r)){const l=+s;r=jn(r,l)}else if(br(r)){if(i===t.length-2)break;const a=+s,c=+t[++i]==0?"key":"value",d=jn(r,a);switch(c){case"key":r=d;break;case"value":r=r.get(d);break}}}const o=t[t.length-1];if(mn(r)?r[+o]=n(r[+o]):vr(r)&&(r[o]=n(r[o])),wr(r)){const i=jn(r,+o),s=n(i);i!==s&&(r.delete(i),r.add(s))}if(br(r)){const i=+t[t.length-2],s=jn(r,i);switch(+o==0?"key":"value"){case"key":{const a=n(s);r.set(a,r.get(s)),a!==s&&r.delete(s);break}case"value":{r.set(s,n(r.get(s)));break}}}return e};function wi(e,t,n=[]){if(!e)return;if(!mn(e)){Un(e,(i,s)=>wi(i,t,[...n,...xr(s)]));return}const[r,o]=e;o&&Un(o,(i,s)=>{wi(i,t,[...n,...xr(s)])}),t(r,n)}function kg(e,t,n){return wi(t,(r,o)=>{e=bi(e,o,i=>Cg(i,r,n))}),e}function Eg(e,t){function n(r,o){const i=$g(e,xr(o));r.map(xr).forEach(s=>{e=bi(e,s,()=>i)})}if(mn(t)){const[r,o]=t;r.forEach(i=>{e=bi(e,xr(i),()=>e)}),o&&Un(o,n)}else Un(t,n);return e}var Mg=(e,t)=>vr(e)||mn(e)||br(e)||wr(e)||_a(e,t);function Pg(e,t,n){const r=n.get(e);r?r.push(t):n.set(e,[t])}function Ag(e,t){const n={};let r;return e.forEach(o=>{if(o.length<=1)return;t||(o=o.map(l=>l.map(String)).sort((l,a)=>l.length-a.length));const[i,...s]=o;i.length===0?r=s.map(vi):n[vi(i)]=s.map(vi)}),r?yi(n)?[r]:[r,n]:yi(n)?void 0:n}var qa=(e,t,n,r,o=[],i=[],s=new Map)=>{const l=mg(e);if(!l){Pg(e,o,t);const g=s.get(e);if(g)return r?{transformedValue:null}:g}if(!Mg(e,n)){const g=Ta(e,n),h=g?{transformedValue:g.value,annotations:[g.type]}:{transformedValue:e};return l||s.set(e,h),h}if(so(i,e))return{transformedValue:null};const a=Ta(e,n),c=a?.value??e,d=mn(c)?[]:{},u={};Un(c,(g,h)=>{if(h==="__proto__"||h==="constructor"||h==="prototype")throw new Error(`Detected property ${h}. This is a prototype pollution risk, please remove it from your object.`);const p=qa(g,t,n,r,[...o,h],[...i,e],s);d[h]=p.transformedValue,mn(p.annotations)?u[h]=p.annotations:vr(p.annotations)&&Un(p.annotations,(y,m)=>{u[Pa(h)+"."+m]=y})});const f=yi(u)?{transformedValue:d,annotations:a?[a.type]:void 0}:{transformedValue:d,annotations:a?[a.type,u]:u};return l||s.set(e,f),f};function za(e){return Object.prototype.toString.call(e).slice(8,-1)}function Na(e){return za(e)==="Array"}function Ig(e){if(za(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function Fg(e,t,n,r,o){const i={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";i==="enumerable"&&(e[t]=n),o&&i==="nonenumerable"&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function xi(e,t={}){if(Na(e))return e.map(o=>xi(o,t));if(!Ig(e))return e;const n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((o,i)=>{if(Na(t.props)&&!t.props.includes(i))return o;const s=e[i],l=xi(s,t);return Fg(o,i,l,e,t.nonenumerable),o},{})}var Ee=class{constructor({dedupe:e=!1}={}){this.classRegistry=new og,this.symbolRegistry=new Ca(t=>t.description??""),this.customTransformerRegistry=new ag,this.allowedErrorProps=[],this.dedupe=e}serialize(e){const t=new Map,n=qa(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta={...r.meta,values:n.annotations});const o=Ag(t,this.dedupe);return o&&(r.meta={...r.meta,referentialEqualities:o}),r}deserialize(e){const{json:t,meta:n}=e;let r=xi(t);return n?.values&&(r=kg(r,n.values,this)),n?.referentialEqualities&&(r=Eg(r,n.referentialEqualities)),r}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}};Ee.defaultInstance=new Ee,Ee.serialize=Ee.defaultInstance.serialize.bind(Ee.defaultInstance),Ee.deserialize=Ee.defaultInstance.deserialize.bind(Ee.defaultInstance),Ee.stringify=Ee.defaultInstance.stringify.bind(Ee.defaultInstance),Ee.parse=Ee.defaultInstance.parse.bind(Ee.defaultInstance),Ee.registerClass=Ee.defaultInstance.registerClass.bind(Ee.defaultInstance),Ee.registerSymbol=Ee.defaultInstance.registerSymbol.bind(Ee.defaultInstance),Ee.registerCustom=Ee.defaultInstance.registerCustom.bind(Ee.defaultInstance),Ee.allowErrorProps=Ee.defaultInstance.allowErrorProps.bind(Ee.defaultInstance);var Va=Ee.serialize,_g=Ee.stringify;function Qn(e){return e.state.fetchStatus==="fetching"?"fetching":e.getObserversCount()?e.state.fetchStatus==="paused"?"paused":e.isStale()?"stale":"fresh":"inactive"}function Og(e,t){return`${e}${t.charAt(0).toUpperCase()+t.slice(1)}`}function Dg({queryState:e,observerCount:t,isStale:n}){return e.fetchStatus==="fetching"?"blue":t?e.fetchStatus==="paused"?"purple":n?"yellow":"green":"gray"}function Wn({status:e,isPaused:t}){return t?"purple":e==="error"?"red":e==="pending"?"yellow":e==="success"?"green":"gray"}function Tg(e){return e==="fresh"?"green":e==="stale"?"yellow":e==="paused"?"purple":e==="inactive"?"gray":"blue"}var lo=(e,t=!1)=>{const{json:n}=Va(e);return JSON.stringify(n,null,t?2:void 0)},uo=e=>e.state.fetchStatus!=="idle"?0:e.getObserversCount()?e.isStale()?2:1:3,Rg=(e,t)=>e.queryHash.localeCompare(t.queryHash),Ba=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,Lg=(e,t)=>uo(e)===uo(t)?Ba(e,t):uo(e)>uo(t)?1:-1,Si={status:Lg,"query hash":Rg,"last updated":Ba},co=e=>e.state.isPaused?0:e.state.status==="error"?2:e.state.status==="pending"?1:3,Ha=(e,t)=>e.state.submittedAt<t.state.submittedAt?1:-1,qg=(e,t)=>co(e)===co(t)?Ha(e,t):co(e)>co(t)?1:-1,Ci={status:qg,"last updated":Ha},Ga=e=>e*parseFloat(getComputedStyle(document.documentElement).fontSize),Ka=()=>{const[e,t]=q("dark");return rn(()=>{const n=window.matchMedia("(prefers-color-scheme: dark)");t(n.matches?"dark":"light");const r=o=>{t(o.matches?"dark":"light")};n.addEventListener("change",r),ee(()=>n.removeEventListener("change",r))}),e},In=(e,t,n)=>{if(t.length===0)return n;if(e instanceof Map){const r=new Map(e);if(t.length===1)return r.set(t[0],n),r;const[o,...i]=t;return r.set(o,In(r.get(o),i,n)),r}if(e instanceof Set){const r=In(Array.from(e),t,n);return new Set(r)}if(Array.isArray(e)){const r=[...e];if(t.length===1)return r[t[0]]=n,r;const[o,...i]=t;return r[o]=In(r[o],i,n),r}if(e instanceof Object){const r={...e};if(t.length===1)return r[t[0]]=n,r;const[o,...i]=t;return r[o]=In(r[o],i,n),r}return e},Sr=(e,t)=>{if(e instanceof Map){const n=new Map(e);if(t.length===1)return n.delete(t[0]),n;const[r,...o]=t;return n.set(r,Sr(n.get(r),o)),n}if(e instanceof Set){const n=Sr(Array.from(e),t);return new Set(n)}if(Array.isArray(e)){const n=[...e];if(t.length===1)return n.filter((i,s)=>s.toString()!==t[0]);const[r,...o]=t;return n[r]=Sr(n[r],o),n}if(e instanceof Object){const n={...e};if(t.length===1)return delete n[t[0]],n;const[r,...o]=t;return n[r]=Sr(n[r],o),n}return e},Ua=(e,t)=>{if(!e||document.querySelector("#_goober")||t?.querySelector("#_goober"))return;const r=document.createElement("style"),o=document.createTextNode("");r.appendChild(o),r.id="_goober",r.setAttribute("nonce",e),t?t.appendChild(r):document.head.appendChild(r)},zg=class{#e;#t;#n;#o;#r=!1;#a;#s;#i;#f;#c;#d;#g;#l;#u;constructor(e){const{client:t,queryFlavor:n,version:r,onlineManager:o,buttonPosition:i,position:s,initialIsOpen:l,errorTypes:a,styleNonce:c,shadowDOMTarget:d,hideDisabledQueries:u}=e;this.#e=q(t),this.#n=n,this.#o=r,this.#t=o,this.#a=c,this.#s=d,this.#i=q(i),this.#f=q(s),this.#c=q(l),this.#d=q(a),this.#g=q(u)}setButtonPosition(e){this.#i[1](e)}setPosition(e){this.#f[1](e)}setInitialIsOpen(e){this.#c[1](e)}setErrorTypes(e){this.#d[1](e)}setClient(e){this.#e[1](e)}mount(e){if(this.#r)throw new Error("Devtools is already mounted");const t=ha(()=>{const n=this,[r]=this.#i,[o]=this.#f,[i]=this.#c,[s]=this.#d,[l]=this.#g,[a]=this.#e;let c;return this.#l?c=this.#l:(c=fa(()=>Promise.resolve().then(()=>H1)),this.#l=c),Ua(this.#a,this.#s),v(c,le({get queryFlavor(){return n.#n},get version(){return n.#o},get onlineManager(){return n.#t},get shadowDOMTarget(){return n.#s}},{get client(){return a()},get buttonPosition(){return r()},get position(){return o()},get initialIsOpen(){return i()},get errorTypes(){return s()},get hideDisabledQueries(){return l()}}))},e);this.#r=!0,this.#u=t}unmount(){if(!this.#r)throw new Error("Devtools is not mounted");this.#u?.(),this.#r=!1}},Ng=class{#e;#t;#n;#o;#r=!1;#a;#s;#i;#f;#c;#d;#g;#l;#u;#h;constructor(e){const{client:t,queryFlavor:n,version:r,onlineManager:o,buttonPosition:i,position:s,initialIsOpen:l,errorTypes:a,styleNonce:c,shadowDOMTarget:d,onClose:u,hideDisabledQueries:f}=e;this.#e=q(t),this.#n=n,this.#o=r,this.#t=o,this.#a=c,this.#s=d,this.#i=q(i),this.#f=q(s),this.#c=q(l),this.#d=q(a),this.#g=q(f),this.#l=q(u)}setButtonPosition(e){this.#i[1](e)}setPosition(e){this.#f[1](e)}setInitialIsOpen(e){this.#c[1](e)}setErrorTypes(e){this.#d[1](e)}setClient(e){this.#e[1](e)}setOnClose(e){this.#l[1](()=>e)}mount(e){if(this.#r)throw new Error("Devtools is already mounted");const t=ha(()=>{const n=this,[r]=this.#i,[o]=this.#f,[i]=this.#c,[s]=this.#d,[l]=this.#g,[a]=this.#e,[c]=this.#l;let d;return this.#u?d=this.#u:(d=fa(()=>Promise.resolve().then(()=>U1)),this.#u=d),Ua(this.#a,this.#s),v(d,le({get queryFlavor(){return n.#n},get version(){return n.#o},get onlineManager(){return n.#t},get shadowDOMTarget(){return n.#s}},{get client(){return a()},get buttonPosition(){return r()},get position(){return o()},get initialIsOpen(){return i()},get errorTypes(){return s()},get hideDisabledQueries(){return l()},get onClose(){return c()}}))},e);this.#r=!0,this.#h=t}unmount(){if(!this.#r)throw new Error("Devtools is not mounted");this.#h?.(),this.#r=!1}};function Vg(e){const t=Uo(e.client),n=we.useRef(null),{buttonPosition:r,position:o,initialIsOpen:i,errorTypes:s,styleNonce:l,shadowDOMTarget:a,hideDisabledQueries:c}=e,[d]=we.useState(new zg({client:t,queryFlavor:"React Query",version:"5",onlineManager:Bn,buttonPosition:r,position:o,initialIsOpen:i,errorTypes:s,styleNonce:l,shadowDOMTarget:a,hideDisabledQueries:c}));return we.useEffect(()=>{d.setClient(t)},[t,d]),we.useEffect(()=>{r&&d.setButtonPosition(r)},[r,d]),we.useEffect(()=>{o&&d.setPosition(o)},[o,d]),we.useEffect(()=>{d.setInitialIsOpen(i||!1)},[i,d]),we.useEffect(()=>{d.setErrorTypes(s||[])},[s,d]),we.useEffect(()=>(n.current&&d.mount(n.current),()=>{d.unmount()}),[d]),Q.jsx("div",{dir:"ltr",className:"tsqd-parent-container",ref:n})}function Bg(e){const t=Uo(e.client),n=we.useRef(null),{errorTypes:r,styleNonce:o,shadowDOMTarget:i,hideDisabledQueries:s}=e,[l]=we.useState(new Ng({client:t,queryFlavor:"React Query",version:"5",onlineManager:Bn,buttonPosition:"bottom-left",position:"bottom",initialIsOpen:!0,errorTypes:r,styleNonce:o,shadowDOMTarget:i,onClose:e.onClose,hideDisabledQueries:s}));return we.useEffect(()=>{l.setClient(t)},[t,l]),we.useEffect(()=>{l.setOnClose(e.onClose??(()=>{}))},[e.onClose,l]),we.useEffect(()=>{l.setErrorTypes(r||[])},[r,l]),we.useEffect(()=>(n.current&&l.mount(n.current),()=>{l.unmount()}),[l]),Q.jsx("div",{style:{height:"500px",...e.style},className:"tsqd-parent-container",ref:n})}var Hg=process.env.NODE_ENV!=="development"?function(){return null}:Vg;process.env.NODE_ENV;function ja(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ja(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Qa(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ja(e))&&(r&&(r+=" "),r+=t);return r}const $i="-",Gg=e=>{const t=Ug(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const l=s.split($i);return l[0]===""&&l.length!==1&&l.shift(),Wa(l,t)||Kg(s)},getConflictingClassGroupIds:(s,l)=>{const a=n[s]||[];return l&&r[s]?[...a,...r[s]]:a}}},Wa=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Wa(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join($i);return t.validators.find(({validator:s})=>s(i))?.classGroupId},Ya=/^\[(.+)\]$/,Kg=e=>{if(Ya.test(e)){const t=Ya.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Ug=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)ki(n[o],r,o,t);return r},ki=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Xa(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(jg(o)){ki(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{ki(s,Xa(t,i),n,r)})})},Xa=(e,t)=>{let n=e;return t.split($i).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},jg=e=>e.isThemeGetter,Qg=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}},Ei="!",Mi=":",Wg=Mi.length,Yg=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const i=[];let s=0,l=0,a=0,c;for(let h=0;h<o.length;h++){let p=o[h];if(s===0&&l===0){if(p===Mi){i.push(o.slice(a,h)),a=h+Wg;continue}if(p==="/"){c=h;continue}}p==="["?s++:p==="]"?s--:p==="("?l++:p===")"&&l--}const d=i.length===0?o:o.substring(a),u=Xg(d),f=u!==d,g=c&&c>a?c-a:void 0;return{modifiers:i,hasImportantModifier:f,baseClassName:u,maybePostfixModifierPosition:g}};if(t){const o=t+Mi,i=r;r=s=>s.startsWith(o)?i(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=i=>n({className:i,parseClassName:o})}return r},Xg=e=>e.endsWith(Ei)?e.substring(0,e.length-1):e.startsWith(Ei)?e.substring(1):e,Zg=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let i=[];return r.forEach(s=>{s[0]==="["||t[s]?(o.push(...i.sort(),s),i=[]):i.push(s)}),o.push(...i.sort()),o}},Jg=e=>({cache:Qg(e.cacheSize),parseClassName:Yg(e),sortModifiers:Zg(e),...Gg(e)}),eh=/\s+/,th=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],l=e.trim().split(eh);let a="";for(let c=l.length-1;c>=0;c-=1){const d=l[c],{isExternal:u,modifiers:f,hasImportantModifier:g,baseClassName:h,maybePostfixModifierPosition:p}=n(d);if(u){a=d+(a.length>0?" "+a:a);continue}let y=!!p,m=r(y?h.substring(0,p):h);if(!m){if(!y){a=d+(a.length>0?" "+a:a);continue}if(m=r(h),!m){a=d+(a.length>0?" "+a:a);continue}y=!1}const b=i(f).join(":"),w=g?b+Ei:b,x=w+m;if(s.includes(x))continue;s.push(x);const S=o(m,y);for(let I=0;I<S.length;++I){const M=S[I];s.push(w+M)}a=d+(a.length>0?" "+a:a)}return a};function nh(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Za(t))&&(r&&(r+=" "),r+=n);return r}const Za=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Za(e[r]))&&(n&&(n+=" "),n+=t);return n};function rh(e,...t){let n,r,o,i=s;function s(a){const c=t.reduce((d,u)=>u(d),e());return n=Jg(c),r=n.cache.get,o=n.cache.set,i=l,l(a)}function l(a){const c=r(a);if(c)return c;const d=th(a,n);return o(a,d),d}return function(){return i(nh.apply(null,arguments))}}const Ne=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Ja=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,el=/^\((?:(\w[\w-]*):)?(.+)\)$/i,oh=/^\d+\/\d+$/,ih=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,sh=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ah=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,lh=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,uh=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Yn=e=>oh.test(e),de=e=>!!e&&!Number.isNaN(Number(e)),yn=e=>!!e&&Number.isInteger(Number(e)),Pi=e=>e.endsWith("%")&&de(e.slice(0,-1)),on=e=>ih.test(e),ch=()=>!0,dh=e=>sh.test(e)&&!ah.test(e),tl=()=>!1,fh=e=>lh.test(e),gh=e=>uh.test(e),hh=e=>!K(e)&&!U(e),ph=e=>Xn(e,sl,tl),K=e=>Ja.test(e),Fn=e=>Xn(e,al,dh),Ai=e=>Xn(e,wh,de),nl=e=>Xn(e,ol,tl),mh=e=>Xn(e,il,gh),fo=e=>Xn(e,ll,fh),U=e=>el.test(e),Cr=e=>Zn(e,al),yh=e=>Zn(e,xh),rl=e=>Zn(e,ol),vh=e=>Zn(e,sl),bh=e=>Zn(e,il),go=e=>Zn(e,ll,!0),Xn=(e,t,n)=>{const r=Ja.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Zn=(e,t,n=!1)=>{const r=el.exec(e);return r?r[1]?t(r[1]):n:!1},ol=e=>e==="position"||e==="percentage",il=e=>e==="image"||e==="url",sl=e=>e==="length"||e==="size"||e==="bg-size",al=e=>e==="length",wh=e=>e==="number",xh=e=>e==="family-name",ll=e=>e==="shadow",Sh=rh(()=>{const e=Ne("color"),t=Ne("font"),n=Ne("text"),r=Ne("font-weight"),o=Ne("tracking"),i=Ne("leading"),s=Ne("breakpoint"),l=Ne("container"),a=Ne("spacing"),c=Ne("radius"),d=Ne("shadow"),u=Ne("inset-shadow"),f=Ne("text-shadow"),g=Ne("drop-shadow"),h=Ne("blur"),p=Ne("perspective"),y=Ne("aspect"),m=Ne("ease"),b=Ne("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...x(),U,K],I=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],C=()=>[U,K,a],$=()=>[Yn,"full","auto",...C()],E=()=>[yn,"none","subgrid",U,K],N=()=>["auto",{span:["full",yn,U,K]},yn,U,K],H=()=>[yn,"auto",U,K],J=()=>["auto","min","max","fr",U,K],ue=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ge=()=>["start","end","center","stretch","center-safe","end-safe"],j=()=>["auto",...C()],te=()=>[Yn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],z=()=>[e,U,K],pe=()=>[...x(),rl,nl,{position:[U,K]}],me=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Ie=()=>["auto","cover","contain",vh,ph,{size:[U,K]}],$e=()=>[Pi,Cr,Fn],G=()=>["","none","full",c,U,K],k=()=>["",de,Cr,Fn],ne=()=>["solid","dashed","dotted","double"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ye=()=>[de,Pi,rl,nl],B=()=>["","none",h,U,K],Te=()=>["none",de,U,K],Ae=()=>["none",de,U,K],ot=()=>[de,U,K],Oe=()=>[Yn,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[on],breakpoint:[on],color:[ch],container:[on],"drop-shadow":[on],ease:["in","out","in-out"],font:[hh],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[on],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[on],shadow:[on],spacing:["px",de],text:[on],"text-shadow":[on],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Yn,K,U,y]}],container:["container"],columns:[{columns:[de,K,U,l]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:S()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$()}],"inset-x":[{"inset-x":$()}],"inset-y":[{"inset-y":$()}],start:[{start:$()}],end:[{end:$()}],top:[{top:$()}],right:[{right:$()}],bottom:[{bottom:$()}],left:[{left:$()}],visibility:["visible","invisible","collapse"],z:[{z:[yn,"auto",U,K]}],basis:[{basis:[Yn,"full","auto",l,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[de,Yn,"auto","initial","none",K]}],grow:[{grow:["",de,U,K]}],shrink:[{shrink:["",de,U,K]}],order:[{order:[yn,"first","last","none",U,K]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":J()}],"auto-rows":[{"auto-rows":J()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...ue(),"normal"]}],"justify-items":[{"justify-items":[...ge(),"normal"]}],"justify-self":[{"justify-self":["auto",...ge()]}],"align-content":[{content:["normal",...ue()]}],"align-items":[{items:[...ge(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ge(),{baseline:["","last"]}]}],"place-content":[{"place-content":ue()}],"place-items":[{"place-items":[...ge(),"baseline"]}],"place-self":[{"place-self":["auto",...ge()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:te()}],w:[{w:[l,"screen",...te()]}],"min-w":[{"min-w":[l,"screen","none",...te()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[s]},...te()]}],h:[{h:["screen","lh",...te()]}],"min-h":[{"min-h":["screen","lh","none",...te()]}],"max-h":[{"max-h":["screen","lh",...te()]}],"font-size":[{text:["base",n,Cr,Fn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,U,Ai]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Pi,K]}],"font-family":[{font:[yh,K,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,U,K]}],"line-clamp":[{"line-clamp":[de,"none",U,Ai]}],leading:[{leading:[i,...C()]}],"list-image":[{"list-image":["none",U,K]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",U,K]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:z()}],"text-color":[{text:z()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ne(),"wavy"]}],"text-decoration-thickness":[{decoration:[de,"from-font","auto",U,Fn]}],"text-decoration-color":[{decoration:z()}],"underline-offset":[{"underline-offset":[de,"auto",U,K]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",U,K]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",U,K]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:pe()}],"bg-repeat":[{bg:me()}],"bg-size":[{bg:Ie()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},yn,U,K],radial:["",U,K],conic:[yn,U,K]},bh,mh]}],"bg-color":[{bg:z()}],"gradient-from-pos":[{from:$e()}],"gradient-via-pos":[{via:$e()}],"gradient-to-pos":[{to:$e()}],"gradient-from":[{from:z()}],"gradient-via":[{via:z()}],"gradient-to":[{to:z()}],rounded:[{rounded:G()}],"rounded-s":[{"rounded-s":G()}],"rounded-e":[{"rounded-e":G()}],"rounded-t":[{"rounded-t":G()}],"rounded-r":[{"rounded-r":G()}],"rounded-b":[{"rounded-b":G()}],"rounded-l":[{"rounded-l":G()}],"rounded-ss":[{"rounded-ss":G()}],"rounded-se":[{"rounded-se":G()}],"rounded-ee":[{"rounded-ee":G()}],"rounded-es":[{"rounded-es":G()}],"rounded-tl":[{"rounded-tl":G()}],"rounded-tr":[{"rounded-tr":G()}],"rounded-br":[{"rounded-br":G()}],"rounded-bl":[{"rounded-bl":G()}],"border-w":[{border:k()}],"border-w-x":[{"border-x":k()}],"border-w-y":[{"border-y":k()}],"border-w-s":[{"border-s":k()}],"border-w-e":[{"border-e":k()}],"border-w-t":[{"border-t":k()}],"border-w-r":[{"border-r":k()}],"border-w-b":[{"border-b":k()}],"border-w-l":[{"border-l":k()}],"divide-x":[{"divide-x":k()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":k()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ne(),"hidden","none"]}],"divide-style":[{divide:[...ne(),"hidden","none"]}],"border-color":[{border:z()}],"border-color-x":[{"border-x":z()}],"border-color-y":[{"border-y":z()}],"border-color-s":[{"border-s":z()}],"border-color-e":[{"border-e":z()}],"border-color-t":[{"border-t":z()}],"border-color-r":[{"border-r":z()}],"border-color-b":[{"border-b":z()}],"border-color-l":[{"border-l":z()}],"divide-color":[{divide:z()}],"outline-style":[{outline:[...ne(),"none","hidden"]}],"outline-offset":[{"outline-offset":[de,U,K]}],"outline-w":[{outline:["",de,Cr,Fn]}],"outline-color":[{outline:z()}],shadow:[{shadow:["","none",d,go,fo]}],"shadow-color":[{shadow:z()}],"inset-shadow":[{"inset-shadow":["none",u,go,fo]}],"inset-shadow-color":[{"inset-shadow":z()}],"ring-w":[{ring:k()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:z()}],"ring-offset-w":[{"ring-offset":[de,Fn]}],"ring-offset-color":[{"ring-offset":z()}],"inset-ring-w":[{"inset-ring":k()}],"inset-ring-color":[{"inset-ring":z()}],"text-shadow":[{"text-shadow":["none",f,go,fo]}],"text-shadow-color":[{"text-shadow":z()}],opacity:[{opacity:[de,U,K]}],"mix-blend":[{"mix-blend":[...ie(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ie()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[de]}],"mask-image-linear-from-pos":[{"mask-linear-from":ye()}],"mask-image-linear-to-pos":[{"mask-linear-to":ye()}],"mask-image-linear-from-color":[{"mask-linear-from":z()}],"mask-image-linear-to-color":[{"mask-linear-to":z()}],"mask-image-t-from-pos":[{"mask-t-from":ye()}],"mask-image-t-to-pos":[{"mask-t-to":ye()}],"mask-image-t-from-color":[{"mask-t-from":z()}],"mask-image-t-to-color":[{"mask-t-to":z()}],"mask-image-r-from-pos":[{"mask-r-from":ye()}],"mask-image-r-to-pos":[{"mask-r-to":ye()}],"mask-image-r-from-color":[{"mask-r-from":z()}],"mask-image-r-to-color":[{"mask-r-to":z()}],"mask-image-b-from-pos":[{"mask-b-from":ye()}],"mask-image-b-to-pos":[{"mask-b-to":ye()}],"mask-image-b-from-color":[{"mask-b-from":z()}],"mask-image-b-to-color":[{"mask-b-to":z()}],"mask-image-l-from-pos":[{"mask-l-from":ye()}],"mask-image-l-to-pos":[{"mask-l-to":ye()}],"mask-image-l-from-color":[{"mask-l-from":z()}],"mask-image-l-to-color":[{"mask-l-to":z()}],"mask-image-x-from-pos":[{"mask-x-from":ye()}],"mask-image-x-to-pos":[{"mask-x-to":ye()}],"mask-image-x-from-color":[{"mask-x-from":z()}],"mask-image-x-to-color":[{"mask-x-to":z()}],"mask-image-y-from-pos":[{"mask-y-from":ye()}],"mask-image-y-to-pos":[{"mask-y-to":ye()}],"mask-image-y-from-color":[{"mask-y-from":z()}],"mask-image-y-to-color":[{"mask-y-to":z()}],"mask-image-radial":[{"mask-radial":[U,K]}],"mask-image-radial-from-pos":[{"mask-radial-from":ye()}],"mask-image-radial-to-pos":[{"mask-radial-to":ye()}],"mask-image-radial-from-color":[{"mask-radial-from":z()}],"mask-image-radial-to-color":[{"mask-radial-to":z()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":x()}],"mask-image-conic-pos":[{"mask-conic":[de]}],"mask-image-conic-from-pos":[{"mask-conic-from":ye()}],"mask-image-conic-to-pos":[{"mask-conic-to":ye()}],"mask-image-conic-from-color":[{"mask-conic-from":z()}],"mask-image-conic-to-color":[{"mask-conic-to":z()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:pe()}],"mask-repeat":[{mask:me()}],"mask-size":[{mask:Ie()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",U,K]}],filter:[{filter:["","none",U,K]}],blur:[{blur:B()}],brightness:[{brightness:[de,U,K]}],contrast:[{contrast:[de,U,K]}],"drop-shadow":[{"drop-shadow":["","none",g,go,fo]}],"drop-shadow-color":[{"drop-shadow":z()}],grayscale:[{grayscale:["",de,U,K]}],"hue-rotate":[{"hue-rotate":[de,U,K]}],invert:[{invert:["",de,U,K]}],saturate:[{saturate:[de,U,K]}],sepia:[{sepia:["",de,U,K]}],"backdrop-filter":[{"backdrop-filter":["","none",U,K]}],"backdrop-blur":[{"backdrop-blur":B()}],"backdrop-brightness":[{"backdrop-brightness":[de,U,K]}],"backdrop-contrast":[{"backdrop-contrast":[de,U,K]}],"backdrop-grayscale":[{"backdrop-grayscale":["",de,U,K]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[de,U,K]}],"backdrop-invert":[{"backdrop-invert":["",de,U,K]}],"backdrop-opacity":[{"backdrop-opacity":[de,U,K]}],"backdrop-saturate":[{"backdrop-saturate":[de,U,K]}],"backdrop-sepia":[{"backdrop-sepia":["",de,U,K]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",U,K]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[de,"initial",U,K]}],ease:[{ease:["linear","initial",m,U,K]}],delay:[{delay:[de,U,K]}],animate:[{animate:["none",b,U,K]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[p,U,K]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:Te()}],"rotate-x":[{"rotate-x":Te()}],"rotate-y":[{"rotate-y":Te()}],"rotate-z":[{"rotate-z":Te()}],scale:[{scale:Ae()}],"scale-x":[{"scale-x":Ae()}],"scale-y":[{"scale-y":Ae()}],"scale-z":[{"scale-z":Ae()}],"scale-3d":["scale-3d"],skew:[{skew:ot()}],"skew-x":[{"skew-x":ot()}],"skew-y":[{"skew-y":ot()}],transform:[{transform:[U,K,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Oe()}],"translate-x":[{"translate-x":Oe()}],"translate-y":[{"translate-y":Oe()}],"translate-z":[{"translate-z":Oe()}],"translate-none":["translate-none"],accent:[{accent:z()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:z()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",U,K]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",U,K]}],fill:[{fill:["none",...z()]}],"stroke-w":[{stroke:[de,Cr,Fn,Ai]}],stroke:[{stroke:["none",...z()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function nt(...e){return Sh(Qa(e))}function Ch({className:e,...t}){return Q.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:Q.jsx("table",{"data-slot":"table",className:nt("w-full caption-bottom text-sm",e),...t})})}function $h({className:e,...t}){return Q.jsx("thead",{"data-slot":"table-header",className:nt("[&_tr]:border-b",e),...t})}function kh({className:e,...t}){return Q.jsx("tbody",{"data-slot":"table-body",className:nt("[&_tr:last-child]:border-0",e),...t})}function ho({className:e,...t}){return Q.jsx("tr",{"data-slot":"table-row",className:nt("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",e),...t})}function Eh({className:e,...t}){return Q.jsx("th",{"data-slot":"table-head",className:nt("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 *:[[role=checkbox]]:translate-y-[2px]",e),...t})}function Ii({className:e,...t}){return Q.jsx("td",{"data-slot":"table-cell",className:nt("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 *:[[role=checkbox]]:translate-y-[2px]",e),...t})}function ul({className:e,...t}){return Q.jsx("div",{"data-slot":"card",className:nt("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function cl({className:e,...t}){return Q.jsx("div",{"data-slot":"card-header",className:nt("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function dl({className:e,...t}){return Q.jsx("div",{"data-slot":"card-content",className:nt("px-6",e),...t})}const Mh=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ph=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),fl=e=>{const t=Ph(e);return t.charAt(0).toUpperCase()+t.slice(1)},gl=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Ah=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var Ih={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Fh=T.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...l},a)=>T.createElement("svg",{ref:a,...Ih,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:gl("lucide",o),...!i&&!Ah(l)&&{"aria-hidden":"true"},...l},[...s.map(([c,d])=>T.createElement(c,d)),...Array.isArray(i)?i:[i]]));const hl=(e,t)=>{const n=T.forwardRef(({className:r,...o},i)=>T.createElement(Fh,{ref:i,iconNode:t,className:gl(`lucide-${Mh(fl(e))}`,`lucide-${e}`,r),...o}));return n.displayName=fl(e),n};const _h=hl("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);const Oh=hl("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),pl=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ml=Qa,Dh=((e,t)=>n=>{var r;if(t?.variants==null)return ml(e,n?.class,n?.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(c=>{const d=n?.[c],u=i?.[c];if(d===null)return null;const f=pl(d)||pl(u);return o[c][f]}),l=n&&Object.entries(n).reduce((c,d)=>{let[u,f]=d;return f===void 0||(c[u]=f),c},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,d)=>{let{class:u,className:f,...g}=d;return Object.entries(g).every(h=>{let[p,y]=h;return Array.isArray(y)?y.includes({...i,...l}[p]):{...i,...l}[p]===y})?[...c,u,f]:c},[]);return ml(e,s,a,n?.class,n?.className)})("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Th({className:e,...t}){return Q.jsx("nav",{role:"navigation","aria-label":"pagination","data-slot":"pagination",className:nt("mx-auto flex w-full justify-center",e),...t})}function Rh({className:e,...t}){return Q.jsx("ul",{"data-slot":"pagination-content",className:nt("flex flex-row items-center gap-1",e),...t})}function Fi({...e}){return Q.jsx("li",{"data-slot":"pagination-item",...e})}function _i({className:e,isActive:t,size:n="icon",...r}){return Q.jsx("a",{"aria-current":t?"page":void 0,"data-slot":"pagination-link","data-active":t,className:nt(Dh({variant:t?"outline":"ghost",size:n}),e),...r})}function Lh({className:e,...t}){return Q.jsxs(_i,{"aria-label":"Go to previous page",size:"default",className:nt("gap-1 px-2.5 sm:pl-2.5",e),...t,children:[Q.jsx(_h,{}),Q.jsx("span",{className:"hidden sm:block",children:"Previous"})]})}function qh({className:e,...t}){return Q.jsxs(_i,{"aria-label":"Go to next page",size:"default",className:nt("gap-1 px-2.5 sm:pr-2.5",e),...t,children:[Q.jsx("span",{className:"hidden sm:block",children:"Next"}),Q.jsx(Oh,{})]})}function zh({className:e,...t}){return Q.jsx("div",{"data-slot":"skeleton",className:nt("bg-accent animate-pulse rounded-md",e),...t})}function Nh(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const Vh=e=>{switch(e){case"success":return Gh;case"info":return Uh;case"warning":return Kh;case"error":return jh;default:return null}},Bh=Array(12).fill(0),Hh=({visible:e,className:t})=>T.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},T.createElement("div",{className:"sonner-spinner"},Bh.map((n,r)=>T.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),Gh=T.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},T.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Kh=T.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},T.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Uh=T.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},T.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),jh=T.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},T.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Qh=T.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},T.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),T.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Wh=()=>{const[e,t]=T.useState(document.hidden);return T.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Oi=1;class Yh{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...o}=t,i=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Oi++,s=this.toasts.find(a=>a.id===i),l=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),s?this.toasts=this.toasts.map(a=>a.id===i?(this.publish({...a,...t,id:i,title:r}),{...a,...t,id:i,dismissible:l,title:r}):a):this.addToast({title:r,...o,dismissible:l,id:i}),i},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let i=r!==void 0,s;const l=o.then(async c=>{if(s=["resolve",c],T.isValidElement(c))i=!1,this.create({id:r,type:"default",message:c});else if(Zh(c)&&!c.ok){i=!1;const u=typeof n.error=="function"?await n.error(`HTTP error! status: ${c.status}`):n.error,f=typeof n.description=="function"?await n.description(`HTTP error! status: ${c.status}`):n.description,h=typeof u=="object"&&!T.isValidElement(u)?u:{message:u};this.create({id:r,type:"error",description:f,...h})}else if(c instanceof Error){i=!1;const u=typeof n.error=="function"?await n.error(c):n.error,f=typeof n.description=="function"?await n.description(c):n.description,h=typeof u=="object"&&!T.isValidElement(u)?u:{message:u};this.create({id:r,type:"error",description:f,...h})}else if(n.success!==void 0){i=!1;const u=typeof n.success=="function"?await n.success(c):n.success,f=typeof n.description=="function"?await n.description(c):n.description,h=typeof u=="object"&&!T.isValidElement(u)?u:{message:u};this.create({id:r,type:"success",description:f,...h})}}).catch(async c=>{if(s=["reject",c],n.error!==void 0){i=!1;const d=typeof n.error=="function"?await n.error(c):n.error,u=typeof n.description=="function"?await n.description(c):n.description,g=typeof d=="object"&&!T.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:u,...g})}}).finally(()=>{i&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),a=()=>new Promise((c,d)=>l.then(()=>s[0]==="reject"?d(s[1]):c(s[1])).catch(d));return typeof r!="string"&&typeof r!="number"?{unwrap:a}:Object.assign(r,{unwrap:a})},this.custom=(t,n)=>{const r=n?.id||Oi++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const lt=new Yh,Xh=(e,t)=>{const n=t?.id||Oi++;return lt.addToast({title:e,...t,id:n}),n},Zh=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Jh=Xh,e0=()=>lt.toasts,t0=()=>lt.getActiveToasts(),n0=Object.assign(Jh,{success:lt.success,info:lt.info,warning:lt.warning,error:lt.error,custom:lt.custom,message:lt.message,promise:lt.promise,dismiss:lt.dismiss,loading:lt.loading},{getHistory:e0,getToasts:t0});Nh("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family: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;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function po(e){return e.label!==void 0}const r0=3,o0="24px",i0="16px",yl=4e3,s0=356,a0=14,l0=45,u0=200;function Vt(...e){return e.filter(Boolean).join(" ")}function c0(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const d0=e=>{var t,n,r,o,i,s,l,a,c;const{invert:d,toast:u,unstyled:f,interacting:g,setHeights:h,visibleToasts:p,heights:y,index:m,toasts:b,expanded:w,removeToast:x,defaultRichColors:S,closeButton:I,style:M,cancelButtonStyle:C,actionButtonStyle:$,className:E="",descriptionClassName:N="",duration:H,position:J,gap:ue,expandByDefault:ge,classNames:j,icons:te,closeButtonAriaLabel:z="Close toast"}=e,[pe,me]=T.useState(null),[Ie,$e]=T.useState(null),[G,k]=T.useState(!1),[ne,ie]=T.useState(!1),[ye,B]=T.useState(!1),[Te,Ae]=T.useState(!1),[ot,Oe]=T.useState(!1),[jt,Tt]=T.useState(0),[Rt,wt]=T.useState(0),it=T.useRef(u.duration||H||yl),R=T.useRef(null),he=T.useRef(null),Qe=m===0,Me=m+1<=p,ce=u.type,xe=u.dismissible!==!1,qe=u.className||"",Se=u.descriptionClassName||"",ct=T.useMemo(()=>y.findIndex(se=>se.toastId===u.id)||0,[y,u.id]),Lt=T.useMemo(()=>{var se;return(se=u.closeButton)!=null?se:I},[u.closeButton,I]),dt=T.useMemo(()=>u.duration||H||yl,[u.duration,H]),qt=T.useRef(0),Je=T.useRef(0),Qt=T.useRef(0),et=T.useRef(null),[Wt,lr]=J.split("-"),$n=T.useMemo(()=>y.reduce((se,Re,Ve)=>Ve>=ct?se:se+Re.height,0),[y,ct]),Ln=Wh(),kn=u.invert||d,En=ce==="loading";Je.current=T.useMemo(()=>ct*ue+$n,[ct,$n]),T.useEffect(()=>{it.current=dt},[dt]),T.useEffect(()=>{k(!0)},[]),T.useEffect(()=>{const se=he.current;if(se){const Re=se.getBoundingClientRect().height;return wt(Re),h(Ve=>[{toastId:u.id,height:Re,position:u.position},...Ve]),()=>h(Ve=>Ve.filter(tt=>tt.toastId!==u.id))}},[h,u.id]),T.useLayoutEffect(()=>{if(!G)return;const se=he.current,Re=se.style.height;se.style.height="auto";const Ve=se.getBoundingClientRect().height;se.style.height=Re,wt(Ve),h(tt=>tt.find(ze=>ze.toastId===u.id)?tt.map(ze=>ze.toastId===u.id?{...ze,height:Ve}:ze):[{toastId:u.id,height:Ve,position:u.position},...tt])},[G,u.title,u.description,h,u.id,u.jsx,u.action,u.cancel]);const ft=T.useCallback(()=>{ie(!0),Tt(Je.current),h(se=>se.filter(Re=>Re.toastId!==u.id)),setTimeout(()=>{x(u)},u0)},[u,x,h,Je]);T.useEffect(()=>{if(u.promise&&ce==="loading"||u.duration===1/0||u.type==="loading")return;let se;return w||g||Ln?(()=>{if(Qt.current<qt.current){const tt=new Date().getTime()-qt.current;it.current=it.current-tt}Qt.current=new Date().getTime()})():(()=>{it.current!==1/0&&(qt.current=new Date().getTime(),se=setTimeout(()=>{u.onAutoClose==null||u.onAutoClose.call(u,u),ft()},it.current))})(),()=>clearTimeout(se)},[w,g,u,ce,Ln,ft]),T.useEffect(()=>{u.delete&&(ft(),u.onDismiss==null||u.onDismiss.call(u,u))},[ft,u.delete]);function qn(){var se;if(te?.loading){var Re;return T.createElement("div",{className:Vt(j?.loader,u==null||(Re=u.classNames)==null?void 0:Re.loader,"sonner-loader"),"data-visible":ce==="loading"},te.loading)}return T.createElement(Hh,{className:Vt(j?.loader,u==null||(se=u.classNames)==null?void 0:se.loader),visible:ce==="loading"})}const zn=u.icon||te?.[ce]||Vh(ce);var fn,Nr;return T.createElement("li",{tabIndex:0,ref:he,className:Vt(E,qe,j?.toast,u==null||(t=u.classNames)==null?void 0:t.toast,j?.default,j?.[ce],u==null||(n=u.classNames)==null?void 0:n[ce]),"data-sonner-toast":"","data-rich-colors":(fn=u.richColors)!=null?fn:S,"data-styled":!(u.jsx||u.unstyled||f),"data-mounted":G,"data-promise":!!u.promise,"data-swiped":ot,"data-removed":ne,"data-visible":Me,"data-y-position":Wt,"data-x-position":lr,"data-index":m,"data-front":Qe,"data-swiping":ye,"data-dismissible":xe,"data-type":ce,"data-invert":kn,"data-swipe-out":Te,"data-swipe-direction":Ie,"data-expanded":!!(w||ge&&G),"data-testid":u.testId,style:{"--index":m,"--toasts-before":m,"--z-index":b.length-m,"--offset":`${ne?jt:Je.current}px`,"--initial-height":ge?"auto":`${Rt}px`,...M,...u.style},onDragEnd:()=>{B(!1),me(null),et.current=null},onPointerDown:se=>{se.button!==2&&(En||!xe||(R.current=new Date,Tt(Je.current),se.target.setPointerCapture(se.pointerId),se.target.tagName!=="BUTTON"&&(B(!0),et.current={x:se.clientX,y:se.clientY})))},onPointerUp:()=>{var se,Re,Ve;if(Te||!xe)return;et.current=null;const tt=Number(((se=he.current)==null?void 0:se.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Nn=Number(((Re=he.current)==null?void 0:Re.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ze=new Date().getTime()-((Ve=R.current)==null?void 0:Ve.getTime()),st=pe==="x"?tt:Nn,Vn=Math.abs(st)/ze;if(Math.abs(st)>=l0||Vn>.11){Tt(Je.current),u.onDismiss==null||u.onDismiss.call(u,u),$e(pe==="x"?tt>0?"right":"left":Nn>0?"down":"up"),ft(),Ae(!0);return}else{var gt,ht;(gt=he.current)==null||gt.style.setProperty("--swipe-amount-x","0px"),(ht=he.current)==null||ht.style.setProperty("--swipe-amount-y","0px")}Oe(!1),B(!1),me(null)},onPointerMove:se=>{var Re,Ve,tt;if(!et.current||!xe||((Re=window.getSelection())==null?void 0:Re.toString().length)>0)return;const ze=se.clientY-et.current.y,st=se.clientX-et.current.x;var Vn;const gt=(Vn=e.swipeDirections)!=null?Vn:c0(J);!pe&&(Math.abs(st)>1||Math.abs(ze)>1)&&me(Math.abs(st)>Math.abs(ze)?"x":"y");let ht={x:0,y:0};const Vr=Yt=>1/(1.5+Math.abs(Yt)/20);if(pe==="y"){if(gt.includes("top")||gt.includes("bottom"))if(gt.includes("top")&&ze<0||gt.includes("bottom")&&ze>0)ht.y=ze;else{const Yt=ze*Vr(ze);ht.y=Math.abs(Yt)<Math.abs(ze)?Yt:ze}}else if(pe==="x"&&(gt.includes("left")||gt.includes("right")))if(gt.includes("left")&&st<0||gt.includes("right")&&st>0)ht.x=st;else{const Yt=st*Vr(st);ht.x=Math.abs(Yt)<Math.abs(st)?Yt:st}(Math.abs(ht.x)>0||Math.abs(ht.y)>0)&&Oe(!0),(Ve=he.current)==null||Ve.style.setProperty("--swipe-amount-x",`${ht.x}px`),(tt=he.current)==null||tt.style.setProperty("--swipe-amount-y",`${ht.y}px`)}},Lt&&!u.jsx&&ce!=="loading"?T.createElement("button",{"aria-label":z,"data-disabled":En,"data-close-button":!0,onClick:En||!xe?()=>{}:()=>{ft(),u.onDismiss==null||u.onDismiss.call(u,u)},className:Vt(j?.closeButton,u==null||(r=u.classNames)==null?void 0:r.closeButton)},(Nr=te?.close)!=null?Nr:Qh):null,(ce||u.icon||u.promise)&&u.icon!==null&&(te?.[ce]!==null||u.icon)?T.createElement("div",{"data-icon":"",className:Vt(j?.icon,u==null||(o=u.classNames)==null?void 0:o.icon)},u.promise||u.type==="loading"&&!u.icon?u.icon||qn():null,u.type!=="loading"?zn:null):null,T.createElement("div",{"data-content":"",className:Vt(j?.content,u==null||(i=u.classNames)==null?void 0:i.content)},T.createElement("div",{"data-title":"",className:Vt(j?.title,u==null||(s=u.classNames)==null?void 0:s.title)},u.jsx?u.jsx:typeof u.title=="function"?u.title():u.title),u.description?T.createElement("div",{"data-description":"",className:Vt(N,Se,j?.description,u==null||(l=u.classNames)==null?void 0:l.description)},typeof u.description=="function"?u.description():u.description):null),T.isValidElement(u.cancel)?u.cancel:u.cancel&&po(u.cancel)?T.createElement("button",{"data-button":!0,"data-cancel":!0,style:u.cancelButtonStyle||C,onClick:se=>{po(u.cancel)&&xe&&(u.cancel.onClick==null||u.cancel.onClick.call(u.cancel,se),ft())},className:Vt(j?.cancelButton,u==null||(a=u.classNames)==null?void 0:a.cancelButton)},u.cancel.label):null,T.isValidElement(u.action)?u.action:u.action&&po(u.action)?T.createElement("button",{"data-button":!0,"data-action":!0,style:u.actionButtonStyle||$,onClick:se=>{po(u.action)&&(u.action.onClick==null||u.action.onClick.call(u.action,se),!se.defaultPrevented&&ft())},className:Vt(j?.actionButton,u==null||(c=u.classNames)==null?void 0:c.actionButton)},u.action.label):null)};function vl(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function f0(e,t){const n={};return[e,t].forEach((r,o)=>{const i=o===1,s=i?"--mobile-offset":"--offset",l=i?i0:o0;function a(c){["top","right","bottom","left"].forEach(d=>{n[`${s}-${d}`]=typeof c=="number"?`${c}px`:c})}typeof r=="number"||typeof r=="string"?a(r):typeof r=="object"?["top","right","bottom","left"].forEach(c=>{r[c]===void 0?n[`${s}-${c}`]=l:n[`${s}-${c}`]=typeof r[c]=="number"?`${r[c]}px`:r[c]}):a(l)}),n}const g0=T.forwardRef(function(t,n){const{id:r,invert:o,position:i="bottom-right",hotkey:s=["altKey","KeyT"],expand:l,closeButton:a,className:c,offset:d,mobileOffset:u,theme:f="light",richColors:g,duration:h,style:p,visibleToasts:y=r0,toastOptions:m,dir:b=vl(),gap:w=a0,icons:x,containerAriaLabel:S="Notifications"}=t,[I,M]=T.useState([]),C=T.useMemo(()=>r?I.filter(G=>G.toasterId===r):I.filter(G=>!G.toasterId),[I,r]),$=T.useMemo(()=>Array.from(new Set([i].concat(C.filter(G=>G.position).map(G=>G.position)))),[C,i]),[E,N]=T.useState([]),[H,J]=T.useState(!1),[ue,ge]=T.useState(!1),[j,te]=T.useState(f!=="system"?f:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),z=T.useRef(null),pe=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),me=T.useRef(null),Ie=T.useRef(!1),$e=T.useCallback(G=>{M(k=>{var ne;return(ne=k.find(ie=>ie.id===G.id))!=null&&ne.delete||lt.dismiss(G.id),k.filter(({id:ie})=>ie!==G.id)})},[]);return T.useEffect(()=>lt.subscribe(G=>{if(G.dismiss){requestAnimationFrame(()=>{M(k=>k.map(ne=>ne.id===G.id?{...ne,delete:!0}:ne))});return}setTimeout(()=>{Uc.flushSync(()=>{M(k=>{const ne=k.findIndex(ie=>ie.id===G.id);return ne!==-1?[...k.slice(0,ne),{...k[ne],...G},...k.slice(ne+1)]:[G,...k]})})})}),[I]),T.useEffect(()=>{if(f!=="system"){te(f);return}if(f==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?te("dark"):te("light")),typeof window>"u")return;const G=window.matchMedia("(prefers-color-scheme: dark)");try{G.addEventListener("change",({matches:k})=>{te(k?"dark":"light")})}catch{G.addListener(({matches:ne})=>{try{te(ne?"dark":"light")}catch(ie){console.error(ie)}})}},[f]),T.useEffect(()=>{I.length<=1&&J(!1)},[I]),T.useEffect(()=>{const G=k=>{var ne;if(s.every(B=>k[B]||k.code===B)){var ye;J(!0),(ye=z.current)==null||ye.focus()}k.code==="Escape"&&(document.activeElement===z.current||(ne=z.current)!=null&&ne.contains(document.activeElement))&&J(!1)};return document.addEventListener("keydown",G),()=>document.removeEventListener("keydown",G)},[s]),T.useEffect(()=>{if(z.current)return()=>{me.current&&(me.current.focus({preventScroll:!0}),me.current=null,Ie.current=!1)}},[z.current]),T.createElement("section",{ref:n,"aria-label":`${S} ${pe}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},$.map((G,k)=>{var ne;const[ie,ye]=G.split("-");return C.length?T.createElement("ol",{key:G,dir:b==="auto"?vl():b,tabIndex:-1,ref:z,className:c,"data-sonner-toaster":!0,"data-sonner-theme":j,"data-y-position":ie,"data-x-position":ye,style:{"--front-toast-height":`${((ne=E[0])==null?void 0:ne.height)||0}px`,"--width":`${s0}px`,"--gap":`${w}px`,...p,...f0(d,u)},onBlur:B=>{Ie.current&&!B.currentTarget.contains(B.relatedTarget)&&(Ie.current=!1,me.current&&(me.current.focus({preventScroll:!0}),me.current=null))},onFocus:B=>{B.target instanceof HTMLElement&&B.target.dataset.dismissible==="false"||Ie.current||(Ie.current=!0,me.current=B.relatedTarget)},onMouseEnter:()=>J(!0),onMouseMove:()=>J(!0),onMouseLeave:()=>{ue||J(!1)},onDragEnd:()=>J(!1),onPointerDown:B=>{B.target instanceof HTMLElement&&B.target.dataset.dismissible==="false"||ge(!0)},onPointerUp:()=>ge(!1)},C.filter(B=>!B.position&&k===0||B.position===G).map((B,Te)=>{var Ae,ot;return T.createElement(d0,{key:B.id,icons:x,index:Te,toast:B,defaultRichColors:g,duration:(Ae=m?.duration)!=null?Ae:h,className:m?.className,descriptionClassName:m?.descriptionClassName,invert:o,visibleToasts:y,closeButton:(ot=m?.closeButton)!=null?ot:a,interacting:ue,position:G,style:m?.style,unstyled:m?.unstyled,classNames:m?.classNames,cancelButtonStyle:m?.cancelButtonStyle,actionButtonStyle:m?.actionButtonStyle,closeButtonAriaLabel:m?.closeButtonAriaLabel,removeToast:$e,toasts:C.filter(Oe=>Oe.position==B.position),heights:E.filter(Oe=>Oe.position==B.position),setHeights:N,expandByDefault:l,gap:w,expanded:H,swipeDirections:t.swipeDirections})})):null}))}),h0=new yd({defaultOptions:{queries:{staleTime:1e3*60,retry:3,refetchInterval:1e3*60}}}),p0=async()=>{const e=await fetch("https://jsonplaceholder.typicode.com/users");if(!e.ok)throw new Error("Network error");return e.json()};function m0({triggerEvent:e=()=>null}){const{data:t,isLoading:n,isError:r}=Id({queryKey:["users"],queryFn:p0}),o=we.useMemo(()=>[{accessorKey:"id",header:"ID"},{accessorKey:"name",header:"Name"},{accessorKey:"username",header:"Username"},{accessorKey:"email",header:"Email"},{accessorFn:d=>`${d.address.street}, ${d.address.suite}, ${d.address.city}`,id:"address",header:"Address"},{accessorKey:"phone",header:"Phone"},{accessorKey:"website",header:"Website"},{accessorFn:d=>d.company.name,id:"company",header:"Company"}],[]),[i,s]=we.useState({}),l=hf({data:t??[],columns:o,state:{rowSelection:i},enableRowSelection:!0,onRowSelectionChange:d=>{const u=typeof d=="function"?d(i):d,f=Object.keys(u),g=f[f.length-1],h=g?{[g]:!0}:{};if(s(h),g){const p=l.getRow(g);p&&(n0(`Selected user ID: ${p.original.id}`),e("onClick",{id:p.original.id}))}},getCoreRowModel:lf(),getPaginationRowModel:cf(),initialState:{pagination:{pageSize:5}}}),a=l.getState().pagination.pageIndex+1,c=l.getPageCount();return r?Q.jsxs(ul,{className:"p-4",children:[Q.jsx(cl,{children:Q.jsx("h2",{className:"text-xl font-semibold",children:"Users Table"})}),Q.jsx(dl,{children:"Error loading users."})]}):Q.jsxs(ul,{className:"p-4",children:[Q.jsx(cl,{children:Q.jsx("h2",{className:"text-xl font-semibold",children:"Users Table (Full Schema + Selection)"})}),Q.jsxs(dl,{className:"space-y-4",children:[Q.jsx("div",{className:"rounded-md border overflow-x-auto",children:Q.jsxs(Ch,{children:[Q.jsx($h,{children:l.getHeaderGroups().map(d=>Q.jsx(ho,{children:d.headers.map(u=>Q.jsx(Eh,{children:Zs(u.column.columnDef.header,u.getContext())},u.id))},d.id))}),Q.jsx(kh,{children:n?Array.from({length:5}).map((d,u)=>Q.jsx(ho,{children:o.map(f=>Q.jsx(Ii,{children:Q.jsx(zh,{className:"h-4 w-[150px]"})},f.id||f.accessorKey))},u)):l.getRowModel().rows.length>0?l.getRowModel().rows.map(d=>Q.jsx(ho,{"data-state":d.getIsSelected()?"selected":void 0,onClick:()=>d.toggleSelected(),className:`cursor-pointer transition ${d.getIsSelected()?"bg-muted":"hover:bg-muted/50"}`,children:d.getVisibleCells().map(u=>Q.jsx(Ii,{children:Zs(u.column.columnDef.cell,u.getContext())},u.id))},d.id)):Q.jsx(ho,{children:Q.jsx(Ii,{colSpan:o.length,className:"text-center",children:"No users found."})})})]})}),Q.jsx(Th,{className:"flex justify-center",children:Q.jsxs(Rh,{children:[Q.jsx(Fi,{children:Q.jsx(Lh,{href:"#",onClick:d=>{d.preventDefault(),l.previousPage()},"aria-disabled":!l.getCanPreviousPage()})}),Array.from({length:c},(d,u)=>u+1).map(d=>Q.jsx(Fi,{children:Q.jsx(_i,{href:"#",isActive:d===a,onClick:u=>{u.preventDefault(),l.setPageIndex(d-1)},children:d})},d)),Q.jsx(Fi,{children:Q.jsx(qh,{href:"#",onClick:d=>{d.preventDefault(),l.nextPage()},"aria-disabled":!l.getCanNextPage()})})]})})]})]})}function y0({triggerEvent:e=()=>null}){return Q.jsxs(vd,{client:h0,children:[Q.jsx(g0,{}),Q.jsx(Hg,{initialIsOpen:!1}),Q.jsx(m0,{triggerEvent:e})]})}var v0=e=>e!=null,b0=e=>e.filter(v0);function w0(e){return(...t)=>{for(const n of e)n&&n(...t)}}var F=e=>typeof e=="function"&&!e.length?e():e,Di=e=>Array.isArray(e)?e:e?[e]:[];function x0(e,...t){return typeof e=="function"?e(...t):e}var S0=ee;function C0(e,t,n,r){const o=e.length,i=t.length;let s=0;if(!i){for(;s<o;s++)n(e[s]);return}if(!o){for(;s<i;s++)r(t[s]);return}for(;s<i&&t[s]===e[s];s++);let l,a;t=t.slice(s),e=e.slice(s);for(l of t)e.includes(l)||r(l);for(a of e)t.includes(a)||n(a)}function $0(e){const[t,n]=q(),r=e?.throw?(f,g)=>{throw n(f instanceof Error?f:new Error(g)),f}:(f,g)=>{n(f instanceof Error?f:new Error(g))},o=e?.api?Array.isArray(e.api)?e.api:[e.api]:[globalThis.localStorage].filter(Boolean),i=e?.prefix?`${e.prefix}.`:"",s=new Map,l=new Proxy({},{get(f,g){let h=s.get(g);h||(h=q(void 0,{equals:!1}),s.set(g,h)),h[0]();const p=o.reduce((y,m)=>{if(y!==null||!m)return y;try{return m.getItem(`${i}${g}`)}catch(b){return r(b,`Error reading ${i}${g} from ${m.name}`),null}},null);return p!==null&&e?.deserializer?e.deserializer(p,g,e.options):p}}),a=(f,g,h)=>{const p=e?.serializer?e.serializer(g,f,h??e.options):g,y=`${i}${f}`;o.forEach(b=>{try{b.getItem(y)!==p&&b.setItem(y,p)}catch(w){r(w,`Error setting ${i}${f} to ${p} in ${b.name}`)}});const m=s.get(f);m&&m[1]()},c=f=>o.forEach(g=>{try{g.removeItem(`${i}${f}`)}catch(h){r(h,`Error removing ${i}${f} from ${g.name}`)}}),d=()=>o.forEach(f=>{try{f.clear()}catch(g){r(g,`Error clearing ${f.name}`)}}),u=()=>{const f={},g=(h,p)=>{if(!f.hasOwnProperty(h)){const y=p&&e?.deserializer?e.deserializer(p,h,e.options):p;y&&(f[h]=y)}};return o.forEach(h=>{if(typeof h.getAll=="function"){let p;try{p=h.getAll()}catch(y){r(y,`Error getting all values from in ${h.name}`)}for(const y of p)g(y,p[y])}else{let p=0,y;try{for(;y=h.key(p++);)f.hasOwnProperty(y)||g(y,h.getItem(y))}catch(m){r(m,`Error getting all values from ${h.name}`)}}}),f};return e?.sync!==!1&&rn(()=>{const f=g=>{let h=!1;o.forEach(p=>{try{p!==g.storageArea&&g.key&&g.newValue!==p.getItem(g.key)&&(g.newValue?p.setItem(g.key,g.newValue):p.removeItem(g.key),h=!0)}catch(y){r(y,`Error synching api ${p.name} from storage event (${g.key}=${g.newValue})`)}}),h&&g.key&&s.get(g.key)?.[1]()};"addEventListener"in globalThis?(globalThis.addEventListener("storage",f),ee(()=>globalThis.removeEventListener("storage",f))):(o.forEach(g=>g.addEventListener?.("storage",f)),ee(()=>o.forEach(g=>g.removeEventListener?.("storage",f))))}),[l,a,{clear:d,error:t,remove:c,toJSON:u}]}var bl=$0,k0=e=>(typeof e.clear=="function"||(e.clear=()=>{let t;for(;t=e.key(0);)e.removeItem(t)}),e),wl=e=>{if(!e)return"";let t="";for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n];t+=r instanceof Date?`; ${n}=${r.toUTCString()}`:typeof r=="boolean"?`; ${n}`:`; ${n}=${r}`}return t},Ct=k0({_cookies:[globalThis.document,"cookie"],getItem:e=>Ct._cookies[0][Ct._cookies[1]].match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)")?.pop()??null,setItem:(e,t,n)=>{const r=Ct.getItem(e);Ct._cookies[0][Ct._cookies[1]]=`${e}=${t}${wl(n)}`;const o=Object.assign(new Event("storage"),{key:e,oldValue:r,newValue:t,url:globalThis.document.URL,storageArea:Ct});window.dispatchEvent(o)},removeItem:e=>{Ct._cookies[0][Ct._cookies[1]]=`${e}=deleted${wl({expires:new Date(0)})}`},key:e=>{let t=null,n=0;return Ct._cookies[0][Ct._cookies[1]].replace(/(?:^|;)\s*(.+?)\s*=\s*[^;]+/g,(r,o)=>(!t&&o&&n++===e&&(t=o),"")),t},get length(){let e=0;return Ct._cookies[0][Ct._cookies[1]].replace(/(?:^|;)\s*.+?\s*=\s*[^;]+/g,t=>(e+=t?1:0,"")),e}}),E0=1024,_n=796,Ti=700,M0="bottom-right",Ri="bottom",xl="system",P0=!1,Sl=500,A0=500,Cl=500,I0=Object.keys(Si)[0],$l=1,F0=Object.keys(Ci)[0],Li=Ue({client:void 0,onlineManager:void 0,queryFlavor:"",version:"",shadowDOMTarget:void 0});function Y(){return je(Li)}var kl=Ue(void 0),El=e=>{const[t,n]=q(null),r=()=>{const s=t();s!=null&&(s.close(),n(null))},o=(s,l)=>{if(t()!=null)return;const a=window.open("","TSQD-Devtools-Panel",`width=${s},height=${l},popup`);if(!a)throw new Error("Failed to open popup. Please allow popups for this site to view the devtools in picture-in-picture mode.");a.document.head.innerHTML="",a.document.body.innerHTML="",Kf(a.document),a.document.title="TanStack Query Devtools",a.document.body.style.margin="0",a.addEventListener("pagehide",()=>{e.setLocalStore("pip_open","false"),n(null)}),[...(Y().shadowDOMTarget||document).styleSheets].forEach(c=>{try{const d=[...c.cssRules].map(h=>h.cssText).join(""),u=document.createElement("style"),f=c.ownerNode;let g="";f&&"id"in f&&(g=f.id),g&&u.setAttribute("id",g),u.textContent=d,a.document.head.appendChild(u)}catch{const u=document.createElement("link");if(c.href==null)return;u.rel="stylesheet",u.type=c.type,u.media=c.media.toString(),u.href=c.href,a.document.head.appendChild(u)}}),io(["focusin","focusout","pointermove","keydown","pointerdown","pointerup","click","mousedown","input"],a.document),e.setLocalStore("pip_open","true"),n(a)};Z(()=>{(e.localStore.pip_open??"false")==="true"&&!e.disabled&&o(Number(window.innerWidth),Number(e.localStore.height||A0))}),Z(()=>{const s=(Y().shadowDOMTarget||document).querySelector("#_goober"),l=t();if(s&&l){const a=new MutationObserver(()=>{const c=(Y().shadowDOMTarget||l.document).querySelector("#_goober");c&&(c.textContent=s.textContent)});a.observe(s,{childList:!0,subtree:!0,characterDataOldValue:!0}),ee(()=>{a.disconnect()})}});const i=_(()=>({pipWindow:t(),requestPipWindow:o,closePipWindow:r,disabled:e.disabled??!1}));return v(kl.Provider,{value:i,get children(){return e.children}})},qi=()=>_(()=>{const t=je(kl);if(!t)throw new Error("usePiPWindow must be used within a PiPProvider");return t()}),zi=Ue(()=>"dark");function Be(){return je(zi)}var Ml={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ù:"u",ú:"u",û:"u",ü:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z"},_0=Object.keys(Ml).join("|"),O0=new RegExp(_0,"g");function D0(e){return e.replace(O0,t=>Ml[t])}var ut={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};function Pl(e,t,n){var r;if(n=n||{},n.threshold=(r=n.threshold)!=null?r:ut.MATCHES,!n.accessors){const s=Al(e,t,n);return{rankedValue:e,rank:s,accessorIndex:-1,accessorThreshold:n.threshold,passed:s>=n.threshold}}const o=q0(e,n.accessors),i={rankedValue:e,rank:ut.NO_MATCH,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let s=0;s<o.length;s++){const l=o[s];let a=Al(l.itemValue,t,n);const{minRanking:c,maxRanking:d,threshold:u=n.threshold}=l.attributes;a<c&&a>=ut.MATCHES?a=c:a>d&&(a=d),a=Math.min(a,d),a>=u&&a>i.rank&&(i.rank=a,i.passed=!0,i.accessorIndex=s,i.accessorThreshold=u,i.rankedValue=l.itemValue)}return i}function Al(e,t,n){return e=Il(e,n),t=Il(t,n),t.length>e.length?ut.NO_MATCH:e===t?ut.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?ut.EQUAL:e.startsWith(t)?ut.STARTS_WITH:e.includes(` ${t}`)?ut.WORD_STARTS_WITH:e.includes(t)?ut.CONTAINS:t.length===1?ut.NO_MATCH:T0(e).includes(t)?ut.ACRONYM:R0(e,t))}function T0(e){let t="";return e.split(" ").forEach(r=>{r.split("-").forEach(i=>{t+=i.substr(0,1)})}),t}function R0(e,t){let n=0,r=0;function o(a,c,d){for(let u=d,f=c.length;u<f;u++)if(c[u]===a)return n+=1,u+1;return-1}function i(a){const c=1/a,d=n/t.length;return ut.MATCHES+d*c}const s=o(t[0],e,0);if(s<0)return ut.NO_MATCH;r=s;for(let a=1,c=t.length;a<c;a++){const d=t[a];if(r=o(d,e,r),!(r>-1))return ut.NO_MATCH}const l=r-s;return i(l)}function Il(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=D0(e)),e}function L0(e,t){let n=t;typeof t=="object"&&(n=t.accessor);const r=n(e);return r==null?[]:Array.isArray(r)?r:[String(r)]}function q0(e,t){const n=[];for(let r=0,o=t.length;r<o;r++){const i=t[r],s=z0(i),l=L0(e,i);for(let a=0,c=l.length;a<c;a++)n.push({itemValue:l[a],attributes:s})}return n}var Fl={maxRanking:1/0,minRanking:-1/0};function z0(e){return typeof e=="function"?Fl:{...Fl,...e}}var N0={data:""},V0=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||N0,B0=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,H0=/\/\*[^]*?\*\/| +/g,_l=/\n+/g,On=(e,t)=>{let n="",r="",o="";for(let i in e){let s=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+s+";":r+=i[1]=="f"?On(s,i):i+"{"+On(s,i[1]=="k"?"":t)+"}":typeof s=="object"?r+=On(s,t?t.replace(/([^,])+/g,l=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,a=>/&/.test(a)?a.replace(/&/g,l):l?l+" "+a:a)):i):s!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=On.p?On.p(i,s):i+":"+s+";")}return n+(t&&o?t+"{"+o+"}":o)+r},sn={},Ol=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Ol(e[n]);return t}return e},G0=(e,t,n,r,o)=>{let i=Ol(e),s=sn[i]||(sn[i]=(a=>{let c=0,d=11;for(;c<a.length;)d=101*d+a.charCodeAt(c++)>>>0;return"go"+d})(i));if(!sn[s]){let a=i!==e?e:(c=>{let d,u,f=[{}];for(;d=B0.exec(c.replace(H0,""));)d[4]?f.shift():d[3]?(u=d[3].replace(_l," ").trim(),f.unshift(f[0][u]=f[0][u]||{})):f[0][d[1]]=d[2].replace(_l," ").trim();return f[0]})(e);sn[s]=On(o?{["@keyframes "+s]:a}:a,n?"":"."+s)}let l=n&&sn.g?sn.g:null;return n&&(sn.g=sn[s]),((a,c,d,u)=>{u?c.data=c.data.replace(u,a):c.data.indexOf(a)===-1&&(c.data=d?a+c.data:c.data+a)})(sn[s],t,r,l),s},K0=(e,t,n)=>e.reduce((r,o,i)=>{let s=t[i];if(s&&s.call){let l=s(n),a=l&&l.props&&l.props.className||/^go/.test(l)&&l;s=a?"."+a:l&&typeof l=="object"?l.props?"":On(l,""):l===!1?"":l}return r+o+(s??"")},"");function fe(e){let t=this||{},n=e.call?e(t.p):e;return G0(n.unshift?n.raw?K0(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,V0(t.target),t.g,t.o,t.k)}fe.bind({g:1}),fe.bind({k:1});function Dl(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Dl(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function L(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Dl(e))&&(r&&(r+=" "),r+=t);return r}function U0(e,t){const n=De(e),{onChange:r}=t;let o=new Set(t.appear?void 0:n);const i=new WeakSet,[s,l]=q([],{equals:!1}),[a]=Sf(),c=u=>{l(f=>(f.push.apply(f,u),f));for(const f of u)i.delete(f)},d=(u,f,g)=>u.splice(g,0,f);return _(u=>{const f=s(),g=e();if(g[Wr],De(a))return a(),u;if(f.length){const h=u.filter(p=>!f.includes(p));return f.length=0,r({list:h,added:[],removed:[],unchanged:h,finishRemoved:c}),h}return De(()=>{const h=new Set(g),p=g.slice(),y=[],m=[],b=[];for(const x of g)(o.has(x)?b:y).push(x);let w=!y.length;for(let x=0;x<u.length;x++){const S=u[x];h.has(S)||(i.has(S)||(m.push(S),i.add(S)),d(p,S,x)),w&&S!==p[x]&&(w=!1)}return!m.length&&w?u:(r({list:p,added:y,removed:m,unchanged:b,finishRemoved:c}),o=h,p)})},t.appear?[]:n.slice())}function rt(...e){return w0(e)}var Tl=e=>e instanceof Element;function Ni(e,t){if(t(e))return e;if(typeof e=="function"&&!e.length)return Ni(e(),t);if(Array.isArray(e)){const n=[];for(const r of e){const o=Ni(r,t);o&&(Array.isArray(o)?n.push.apply(n,o):n.push(o))}return n.length?n:null}return null}function j0(e,t=Tl,n=Tl){const r=_(e),o=_(()=>Ni(r(),t));return o.toArray=()=>{const i=o();return Array.isArray(i)?i:i?[i]:[]},o}function Q0(e){return _(()=>{const t=e.name||"s";return{enterActive:(e.enterActiveClass||t+"-enter-active").split(" "),enter:(e.enterClass||t+"-enter").split(" "),enterTo:(e.enterToClass||t+"-enter-to").split(" "),exitActive:(e.exitActiveClass||t+"-exit-active").split(" "),exit:(e.exitClass||t+"-exit").split(" "),exitTo:(e.exitToClass||t+"-exit-to").split(" "),move:(e.moveClass||t+"-move").split(" ")}})}function Rl(e){requestAnimationFrame(()=>requestAnimationFrame(e))}function W0(e,t,n,r){const{onBeforeEnter:o,onEnter:i,onAfterEnter:s}=t;o?.(n),n.classList.add(...e.enter),n.classList.add(...e.enterActive),queueMicrotask(()=>{if(!n.parentNode)return r?.();i?.(n,()=>l())}),Rl(()=>{n.classList.remove(...e.enter),n.classList.add(...e.enterTo),(!i||i.length<2)&&(n.addEventListener("transitionend",l),n.addEventListener("animationend",l))});function l(a){(!a||a.target===n)&&(n.removeEventListener("transitionend",l),n.removeEventListener("animationend",l),n.classList.remove(...e.enterActive),n.classList.remove(...e.enterTo),s?.(n))}}function Y0(e,t,n,r){const{onBeforeExit:o,onExit:i,onAfterExit:s}=t;if(!n.parentNode)return r?.();o?.(n),n.classList.add(...e.exit),n.classList.add(...e.exitActive),i?.(n,()=>l()),Rl(()=>{n.classList.remove(...e.exit),n.classList.add(...e.exitTo),(!i||i.length<2)&&(n.addEventListener("transitionend",l),n.addEventListener("animationend",l))});function l(a){(!a||a.target===n)&&(r?.(),n.removeEventListener("transitionend",l),n.removeEventListener("animationend",l),n.classList.remove(...e.exitActive),n.classList.remove(...e.exitTo),s?.(n))}}var Ll=e=>{const t=Q0(e);return U0(j0(()=>e.children).toArray,{appear:e.appear,onChange({added:n,removed:r,finishRemoved:o,list:i}){const s=t();for(const a of n)W0(s,e,a);const l=[];for(const a of i)a.isConnected&&(a instanceof HTMLElement||a instanceof SVGElement)&&l.push({el:a,rect:a.getBoundingClientRect()});queueMicrotask(()=>{const a=[];for(const{el:c,rect:d}of l)if(c.isConnected){const u=c.getBoundingClientRect(),f=d.left-u.left,g=d.top-u.top;(f||g)&&(c.style.transform=`translate(${f}px, ${g}px)`,c.style.transitionDuration="0s",a.push(c))}document.body.offsetHeight;for(const c of a){let d=function(u){(u.target===c||/transform$/.test(u.propertyName))&&(c.removeEventListener("transitionend",d),c.classList.remove(...s.move))};c.classList.add(...s.move),c.style.transform=c.style.transitionDuration="",c.addEventListener("transitionend",d)}});for(const a of r)Y0(s,e,a,()=>o([a]))}})},Vi=Symbol("fallback");function ql(e){for(const t of e)t.dispose()}function X0(e,t,n,r={}){const o=new Map;return ee(()=>ql(o.values())),()=>{const s=e()||[];return s[Wr],De(()=>{if(!s.length)return ql(o.values()),o.clear(),r.fallback?[tn(u=>(o.set(Vi,{dispose:u}),r.fallback()))]:[];const l=new Array(s.length),a=o.get(Vi);if(!o.size||a){a?.dispose(),o.delete(Vi);for(let d=0;d<s.length;d++){const u=s[d],f=t(u,d);i(l,u,d,f)}return l}const c=new Set(o.keys());for(let d=0;d<s.length;d++){const u=s[d],f=t(u,d);c.delete(f);const g=o.get(f);g?(l[d]=g.mapped,g.setIndex?.(d),g.setItem(()=>u)):i(l,u,d,f)}for(const d of c)o.get(d)?.dispose(),o.delete(d);return l})};function i(s,l,a,c){tn(d=>{const[u,f]=q(l),g={setItem:f,dispose:d};if(n.length>1){const[h,p]=q(a);g.setIndex=p,g.mapped=n(u,h)}else g.mapped=n(u);o.set(c,g),s[a]=g.mapped})}}function mo(e){const{by:t}=e;return _(X0(()=>e.each,typeof t=="function"?t:n=>n[t],e.children,"fallback"in e?{fallback:()=>e.fallback}:void 0))}function Z0(e,t,n,r){return e.addEventListener(t,n,r),S0(e.removeEventListener.bind(e,t,n,r))}function J0(e,t,n,r){const o=()=>{Di(F(e)).forEach(i=>{i&&Di(F(t)).forEach(s=>Z0(i,s,n,r))})};typeof e=="function"?Z(o):X(o)}function ep(e,t){const n=new ResizeObserver(e);return ee(n.disconnect.bind(n)),{observe:r=>n.observe(r,t),unobserve:n.unobserve.bind(n)}}function zl(e,t,n){const r=new WeakMap,{observe:o,unobserve:i}=ep(s=>{for(const l of s){const{contentRect:a,target:c}=l,d=Math.round(a.width),u=Math.round(a.height),f=r.get(c);(!f||f.width!==d||f.height!==u)&&(t(a,c,l),r.set(c,{width:d,height:u}))}},n);Z(s=>{const l=b0(Di(F(e)));return C0(l,s,o,i),l},[])}var tp=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;function Nl(e){const t={};let n;for(;n=tp.exec(e);)t[n[1]]=n[2];return t}function yo(e,t){if(typeof e=="string"){if(typeof t=="string")return`${e};${t}`;e=Nl(e)}else typeof t=="string"&&(t=Nl(t));return{...e,...t}}function np(e,t,n=-1){return n in e?[...e.slice(0,n),t,...e.slice(n)]:[...e,t]}function Bi(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function rp(e){return typeof e=="number"}function Jn(e){return Object.prototype.toString.call(e)==="[object String]"}function op(e){return typeof e=="function"}function $r(e){return t=>`${e()}-${t}`}function $t(e,t){return e?e===t||e.contains(t):!1}function kr(e,t=!1){const{activeElement:n}=Bt(e);if(!n?.nodeName)return null;if(Vl(n)&&n.contentDocument)return kr(n.contentDocument.body,t);if(t){const r=n.getAttribute("aria-activedescendant");if(r){const o=Bt(n).getElementById(r);if(o)return o}}return n}function ip(e){return Bt(e).defaultView||window}function Bt(e){return e?e.ownerDocument||e:document}function Vl(e){return e.tagName==="IFRAME"}var Hi=(e=>(e.Escape="Escape",e.Enter="Enter",e.Tab="Tab",e.Space=" ",e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.ArrowUp="ArrowUp",e.End="End",e.Home="Home",e.PageDown="PageDown",e.PageUp="PageUp",e))(Hi||{});function Gi(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function vo(){return Gi(/^Mac/i)}function sp(){return Gi(/^iPhone/i)}function ap(){return Gi(/^iPad/i)||vo()&&navigator.maxTouchPoints>1}function lp(){return sp()||ap()}function up(){return vo()||lp()}function Fe(e,t){return t&&(op(t)?t(e):t[0](t[1],e)),e?.defaultPrevented}function He(e){return t=>{for(const n of e)Fe(t,n)}}function cp(e){return vo()?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey}function Xe(e){if(e)if(dp())e.focus({preventScroll:!0});else{const t=fp(e);e.focus(),gp(t)}}var bo=null;function dp(){if(bo==null){bo=!1;try{document.createElement("div").focus({get preventScroll(){return bo=!0,!0}})}catch{}}return bo}function fp(e){let t=e.parentNode;const n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function gp(e){for(const{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}var Bl=["input:not([type='hidden']):not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","[tabindex]","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]:not([contenteditable='false'])"],hp=[...Bl,'[tabindex]:not([tabindex="-1"]):not([disabled])'],Ki=Bl.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])",pp=hp.join(':not([hidden]):not([tabindex="-1"]),');function Hl(e,t){const r=Array.from(e.querySelectorAll(Ki)).filter(Gl);return t&&Gl(e)&&r.unshift(e),r.forEach((o,i)=>{if(Vl(o)&&o.contentDocument){const s=o.contentDocument.body,l=Hl(s,!1);r.splice(i,1,...l)}}),r}function Gl(e){return Kl(e)&&!mp(e)}function Kl(e){return e.matches(Ki)&&Ui(e)}function mp(e){return parseInt(e.getAttribute("tabindex")||"0",10)<0}function Ui(e,t){return e.nodeName!=="#comment"&&yp(e)&&vp(e,t)&&(!e.parentElement||Ui(e.parentElement,e))}function yp(e){if(!(e instanceof HTMLElement)&&!(e instanceof SVGElement))return!1;const{display:t,visibility:n}=e.style;let r=t!=="none"&&n!=="hidden"&&n!=="collapse";if(r){if(!e.ownerDocument.defaultView)return r;const{getComputedStyle:o}=e.ownerDocument.defaultView,{display:i,visibility:s}=o(e);r=i!=="none"&&s!=="hidden"&&s!=="collapse"}return r}function vp(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function bp(e,t,n){const r=t?.tabbable?pp:Ki,o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(i){return t?.from?.contains(i)?NodeFilter.FILTER_REJECT:i.matches(r)&&Ui(i)&&(!t?.accept||t.accept(i))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(o.currentNode=t.from),o}function Ul(e){for(;e&&!wp(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function wp(e){const t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function xp(){}function Sp(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let s=i,l=0,a=s-1;l<s;a=l++){const[c,d]=t[l],[u,f]=t[a],[,g]=t[a===0?s-1:a-1]||[0,0],h=(d-f)*(n-c)-(c-u)*(r-d);if(f<d){if(r>=f&&r<d){if(h===0)return!0;h>0&&(r===f?r>g&&(o=!o):o=!o)}}else if(d<f){if(r>d&&r<=f){if(h===0)return!0;h<0&&(r===f?r<g&&(o=!o):o=!o)}}else if(r==d&&(n>=u&&n<=c||n>=c&&n<=u))return!0}return o}function be(e,t){return le(e,t)}var Er=new Map,jl=new Set;function Ql(){if(typeof window>"u")return;const e=n=>{if(!n.target)return;let r=Er.get(n.target);r||(r=new Set,Er.set(n.target,r),n.target.addEventListener("transitioncancel",t)),r.add(n.propertyName)},t=n=>{if(!n.target)return;const r=Er.get(n.target);if(r&&(r.delete(n.propertyName),r.size===0&&(n.target.removeEventListener("transitioncancel",t),Er.delete(n.target)),Er.size===0)){for(const o of jl)o();jl.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?Ql():document.addEventListener("DOMContentLoaded",Ql));function ji(e,t){const n=Wl(e,t,"left"),r=Wl(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight;let s=e.scrollLeft,l=e.scrollTop;const a=s+e.offsetWidth,c=l+e.offsetHeight;n<=s?s=n:n+o>a&&(s+=n+o-a),r<=l?l=r:r+i>c&&(l+=r+i-c),e.scrollLeft=s,e.scrollTop=l}function Wl(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent}return o}function Cp(e,t){if(document.contains(e)){const n=document.scrollingElement||document.documentElement;if(window.getComputedStyle(n).overflow==="hidden"){let o=Ul(e);for(;e&&o&&e!==n&&o!==n;)ji(o,e),e=o,o=Ul(e)}else{const{left:o,top:i}=e.getBoundingClientRect();e?.scrollIntoView?.({block:"nearest"});const{left:s,top:l}=e.getBoundingClientRect();(Math.abs(o-s)>1||Math.abs(i-l)>1)&&e.scrollIntoView?.({block:"nearest"})}}}var Yl={border:"0",clip:"rect(0 0 0 0)","clip-path":"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:"0",position:"absolute",width:"1px","white-space":"nowrap"};function kt(e){return t=>(e(t),()=>e(void 0))}function wo(e,t){const[n,r]=q(Xl(t?.()));return Z(()=>{r(e()?.tagName.toLowerCase()||Xl(t?.()))}),n}function Xl(e){return Jn(e)?e:void 0}function _e(e){const[t,n]=Ce(e,["as"]);if(!t.as)throw new Error("[kobalte]: Polymorphic is missing the required `as` prop.");return v(ng,le(n,{get component(){return t.as}}))}var $p=["id","name","validationState","required","disabled","readOnly"];function kp(e){const t=`form-control-${St()}`,n=be({id:t},e),[r,o]=q(),[i,s]=q(),[l,a]=q(),[c,d]=q(),u=(p,y,m)=>{const b=m!=null||r()!=null;return[m,r(),b&&y!=null?p:void 0].filter(Boolean).join(" ")||void 0},f=p=>[l(),c(),p].filter(Boolean).join(" ")||void 0,g=_(()=>({"data-valid":F(n.validationState)==="valid"?"":void 0,"data-invalid":F(n.validationState)==="invalid"?"":void 0,"data-required":F(n.required)?"":void 0,"data-disabled":F(n.disabled)?"":void 0,"data-readonly":F(n.readOnly)?"":void 0}));return{formControlContext:{name:()=>F(n.name)??F(n.id),dataset:g,validationState:()=>F(n.validationState),isRequired:()=>F(n.required),isDisabled:()=>F(n.disabled),isReadOnly:()=>F(n.readOnly),labelId:r,fieldId:i,descriptionId:l,errorMessageId:c,getAriaLabelledBy:u,getAriaDescribedBy:f,generateId:$r(()=>F(n.id)),registerLabel:kt(o),registerField:kt(s),registerDescription:kt(a),registerErrorMessage:kt(d)}}}var Zl=Ue();function Mr(){const e=je(Zl);if(e===void 0)throw new Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");return e}function Jl(e){const t=Mr(),n=be({id:t.generateId("description")},e);return Z(()=>ee(t.registerDescription(n.id))),v(_e,le({as:"div"},()=>t.dataset(),n))}function eu(e){const t=Mr(),n=be({id:t.generateId("error-message")},e),[r,o]=Ce(n,["forceMount"]),i=()=>t.validationState()==="invalid";return Z(()=>{i()&&ee(t.registerErrorMessage(o.id))}),v(W,{get when(){return r.forceMount||i()},get children(){return v(_e,le({as:"div"},()=>t.dataset(),o))}})}function Ep(e){let t;const n=Mr(),r=be({id:n.generateId("label")},e),[o,i]=Ce(r,["ref"]),s=wo(()=>t,()=>"label");return Z(()=>ee(n.registerLabel(i.id))),v(_e,le({as:"label",ref(l){const a=rt(c=>t=c,o.ref);typeof a=="function"&&a(l)},get for(){return Le(()=>s()==="label")()?n.fieldId():void 0}},()=>n.dataset(),i))}function Mp(e,t){Z(nn(e,n=>{if(n==null)return;const r=Pp(n);r!=null&&(r.addEventListener("reset",t,{passive:!0}),ee(()=>{r.removeEventListener("reset",t)}))}))}function Pp(e){return Ap(e)?e.form:e.closest("form")}function Ap(e){return e.matches("textarea, input, select, button")}function Pr(e){const[t,n]=q(e.defaultValue?.()),r=_(()=>e.value?.()!==void 0),o=_(()=>r()?e.value?.():t());return[o,s=>{De(()=>{const l=x0(s,o());return Object.is(l,o())||(r()||n(l),e.onChange?.(l)),l})}]}function tu(e){const[t,n]=Pr(e);return[()=>t()??!1,n]}function Ip(e){const[t,n]=Pr(e);return[()=>t()??[],n]}function Fp(e={}){const[t,n]=tu({value:()=>F(e.isSelected),defaultValue:()=>!!F(e.defaultIsSelected),onChange:i=>e.onSelectedChange?.(i)});return{isSelected:t,setIsSelected:i=>{!F(e.isReadOnly)&&!F(e.isDisabled)&&n(i)},toggle:()=>{!F(e.isReadOnly)&&!F(e.isDisabled)&&n(!t())}}}var _p=Object.defineProperty,xo=(e,t)=>{for(var n in t)_p(e,n,{get:t[n],enumerable:!0})},nu=Ue();function ru(){return je(nu)}function Op(){const e=ru();if(e===void 0)throw new Error("[kobalte]: `useDomCollectionContext` must be used within a `DomCollectionProvider` component");return e}function ou(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function Dp(e,t){const n=t.ref();if(!n)return-1;let r=e.length;if(!r)return-1;for(;r--;){const o=e[r]?.ref();if(o&&ou(o,n))return r+1}return 0}function Tp(e){const t=e.map((r,o)=>[o,r]);let n=!1;return t.sort(([r,o],[i,s])=>{const l=o.ref(),a=s.ref();return l===a||!l||!a?0:ou(l,a)?(r>i&&(n=!0),-1):(r<i&&(n=!0),1)}),n?t.map(([r,o])=>o):e}function iu(e,t){const n=Tp(e);e!==n&&t(n)}function Rp(e){const t=e[0],n=e[e.length-1]?.ref();let r=t?.ref()?.parentElement;for(;r;){if(n&&r.contains(n))return r;r=r.parentElement}return Bt(r).body}function Lp(e,t){Z(()=>{const n=setTimeout(()=>{iu(e(),t)});ee(()=>clearTimeout(n))})}function qp(e,t){if(typeof IntersectionObserver!="function"){Lp(e,t);return}let n=[];Z(()=>{const r=()=>{const s=!!n.length;n=e(),s&&iu(e(),t)},o=Rp(e()),i=new IntersectionObserver(r,{root:o});for(const s of e()){const l=s.ref();l&&i.observe(l)}ee(()=>i.disconnect())})}function zp(e={}){const[t,n]=Ip({value:()=>F(e.items),onChange:i=>e.onItemsChange?.(i)});qp(t,n);const r=i=>(n(s=>{const l=Dp(s,i);return np(s,i,l)}),()=>{n(s=>{const l=s.filter(a=>a.ref()!==i.ref());return s.length===l.length?s:l})});return{DomCollectionProvider:i=>v(nu.Provider,{value:{registerItem:r},get children(){return i.children}})}}function Np(e){const t=Op(),n=be({shouldRegisterItem:!0},e);Z(()=>{if(!n.shouldRegisterItem)return;const r=t.registerItem(n.getItem());ee(r)})}function su(e){let t=e.startIndex??0;const n=e.startLevel??0,r=[],o=a=>{if(a==null)return"";const c=e.getKey??"key",d=Jn(c)?a[c]:c(a);return d!=null?String(d):""},i=a=>{if(a==null)return"";const c=e.getTextValue??"textValue",d=Jn(c)?a[c]:c(a);return d!=null?String(d):""},s=a=>{if(a==null)return!1;const c=e.getDisabled??"disabled";return(Jn(c)?a[c]:c(a))??!1},l=a=>{if(a!=null)return Jn(e.getSectionChildren)?a[e.getSectionChildren]:e.getSectionChildren?.(a)};for(const a of e.dataSource){if(Jn(a)||rp(a)){r.push({type:"item",rawValue:a,key:String(a),textValue:String(a),disabled:s(a),level:n,index:t}),t++;continue}if(l(a)!=null){r.push({type:"section",rawValue:a,key:"",textValue:"",disabled:!1,level:n,index:t}),t++;const c=l(a)??[];if(c.length>0){const d=su({dataSource:c,getKey:e.getKey,getTextValue:e.getTextValue,getDisabled:e.getDisabled,getSectionChildren:e.getSectionChildren,startIndex:t,startLevel:n+1});r.push(...d),t+=d.length}}else r.push({type:"item",rawValue:a,key:o(a),textValue:i(a),disabled:s(a),level:n,index:t}),t++}return r}function Vp(e,t=[]){return _(()=>{const n=su({dataSource:F(e.dataSource),getKey:F(e.getKey),getTextValue:F(e.getTextValue),getDisabled:F(e.getDisabled),getSectionChildren:F(e.getSectionChildren)});for(let r=0;r<t.length;r++)t[r]();return e.factory(n)})}var Bp=new Set(["Avst","Arab","Armi","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Hp=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Gp(e){if(Intl.Locale){const n=new Intl.Locale(e).maximize().script??"";return Bp.has(n)}const t=e.split("-")[0];return Hp.has(t)}function Kp(e){return Gp(e)?"rtl":"ltr"}function au(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";return{locale:e,direction:Kp(e)}}var Qi=au(),Ar=new Set;function lu(){Qi=au();for(const e of Ar)e(Qi)}function Up(){const[e,t]=q(Qi),n=_(()=>e());return rn(()=>{Ar.size===0&&window.addEventListener("languagechange",lu),Ar.add(t),ee(()=>{Ar.delete(t),Ar.size===0&&window.removeEventListener("languagechange",lu)})}),{locale:()=>n().locale,direction:()=>n().direction}}var jp=Ue();function vn(){const e=Up();return je(jp)||e}var Wi=new Map;function Qp(e){const{locale:t}=vn(),n=_(()=>t()+(e?Object.entries(e).sort((r,o)=>r[0]<o[0]?-1:1).join():""));return _(()=>{const r=n();let o;return Wi.has(r)&&(o=Wi.get(r)),o||(o=new Intl.Collator(t(),e),Wi.set(r,o)),o})}var an=class Kc extends Set{anchorKey;currentKey;constructor(t,n,r){super(t),t instanceof Kc?(this.anchorKey=n||t.anchorKey,this.currentKey=r||t.currentKey):(this.anchorKey=n,this.currentKey=r)}};function Wp(e){const[t,n]=Pr(e);return[()=>t()??new an,n]}function uu(e){return up()?e.altKey:e.ctrlKey}function er(e){return vo()?e.metaKey:e.ctrlKey}function cu(e){return new an(e)}function Yp(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function Xp(e){const t=be({selectionMode:"none",selectionBehavior:"toggle"},e),[n,r]=q(!1),[o,i]=q(),s=_(()=>{const p=F(t.selectedKeys);return p!=null?cu(p):p}),l=_(()=>{const p=F(t.defaultSelectedKeys);return p!=null?cu(p):new an}),[a,c]=Wp({value:s,defaultValue:l,onChange:p=>t.onSelectionChange?.(p)}),[d,u]=q(F(t.selectionBehavior)),f=()=>F(t.selectionMode),g=()=>F(t.disallowEmptySelection)??!1,h=p=>{(F(t.allowDuplicateSelectionEvents)||!Yp(p,a()))&&c(p)};return Z(()=>{const p=a();F(t.selectionBehavior)==="replace"&&d()==="toggle"&&typeof p=="object"&&p.size===0&&u("replace")}),Z(()=>{u(F(t.selectionBehavior)??"toggle")}),{selectionMode:f,disallowEmptySelection:g,selectionBehavior:d,setSelectionBehavior:u,isFocused:n,setFocused:r,focusedKey:o,setFocusedKey:i,selectedKeys:a,setSelectedKeys:h}}function Zp(e){const[t,n]=q(""),[r,o]=q(-1);return{typeSelectHandlers:{onKeyDown:s=>{if(F(e.isDisabled))return;const l=F(e.keyboardDelegate),a=F(e.selectionManager);if(!l.getKeyForSearch)return;const c=Jp(s.key);if(!c||s.ctrlKey||s.metaKey)return;c===" "&&t().trim().length>0&&(s.preventDefault(),s.stopPropagation());let d=n(f=>f+c),u=l.getKeyForSearch(d,a.focusedKey())??l.getKeyForSearch(d);u==null&&em(d)&&(d=d[0],u=l.getKeyForSearch(d,a.focusedKey())??l.getKeyForSearch(d)),u!=null&&(a.setFocusedKey(u),e.onTypeSelect?.(u)),clearTimeout(r()),o(window.setTimeout(()=>n(""),500))}}}}function Jp(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function em(e){return e.split("").every(t=>t===e[0])}function tm(e,t,n){const o=le({selectOnFocus:()=>F(e.selectionManager).selectionBehavior()==="replace"},e),i=()=>t(),{direction:s}=vn();let l={top:0,left:0};J0(()=>F(o.isVirtualized)?void 0:i(),"scroll",()=>{const y=i();y&&(l={top:y.scrollTop,left:y.scrollLeft})});const{typeSelectHandlers:a}=Zp({isDisabled:()=>F(o.disallowTypeAhead),keyboardDelegate:()=>F(o.keyboardDelegate),selectionManager:()=>F(o.selectionManager)}),c=()=>F(o.orientation)??"vertical",d=y=>{Fe(y,a.onKeyDown),y.altKey&&y.key==="Tab"&&y.preventDefault();const m=t();if(!m?.contains(y.target))return;const b=F(o.selectionManager),w=F(o.selectOnFocus),x=C=>{C!=null&&(b.setFocusedKey(C),y.shiftKey&&b.selectionMode()==="multiple"?b.extendSelection(C):w&&!uu(y)&&b.replaceSelection(C))},S=F(o.keyboardDelegate),I=F(o.shouldFocusWrap),M=b.focusedKey();switch(y.key){case(c()==="vertical"?"ArrowDown":"ArrowRight"):{if(S.getKeyBelow){y.preventDefault();let C;M!=null?C=S.getKeyBelow(M):C=S.getFirstKey?.(),C==null&&I&&(C=S.getFirstKey?.(M)),x(C)}break}case(c()==="vertical"?"ArrowUp":"ArrowLeft"):{if(S.getKeyAbove){y.preventDefault();let C;M!=null?C=S.getKeyAbove(M):C=S.getLastKey?.(),C==null&&I&&(C=S.getLastKey?.(M)),x(C)}break}case(c()==="vertical"?"ArrowLeft":"ArrowUp"):{if(S.getKeyLeftOf){y.preventDefault();const C=s()==="rtl";let $;M!=null?$=S.getKeyLeftOf(M):$=C?S.getFirstKey?.():S.getLastKey?.(),x($)}break}case(c()==="vertical"?"ArrowRight":"ArrowDown"):{if(S.getKeyRightOf){y.preventDefault();const C=s()==="rtl";let $;M!=null?$=S.getKeyRightOf(M):$=C?S.getLastKey?.():S.getFirstKey?.(),x($)}break}case"Home":if(S.getFirstKey){y.preventDefault();const C=S.getFirstKey(M,er(y));C!=null&&(b.setFocusedKey(C),er(y)&&y.shiftKey&&b.selectionMode()==="multiple"?b.extendSelection(C):w&&b.replaceSelection(C))}break;case"End":if(S.getLastKey){y.preventDefault();const C=S.getLastKey(M,er(y));C!=null&&(b.setFocusedKey(C),er(y)&&y.shiftKey&&b.selectionMode()==="multiple"?b.extendSelection(C):w&&b.replaceSelection(C))}break;case"PageDown":if(S.getKeyPageBelow&&M!=null){y.preventDefault();const C=S.getKeyPageBelow(M);x(C)}break;case"PageUp":if(S.getKeyPageAbove&&M!=null){y.preventDefault();const C=S.getKeyPageAbove(M);x(C)}break;case"a":er(y)&&b.selectionMode()==="multiple"&&F(o.disallowSelectAll)!==!0&&(y.preventDefault(),b.selectAll());break;case"Escape":y.defaultPrevented||(y.preventDefault(),F(o.disallowEmptySelection)||b.clearSelection());break;case"Tab":if(!F(o.allowsTabNavigation)){if(y.shiftKey)m.focus();else{const C=bp(m,{tabbable:!0});let $,E;do E=C.lastChild(),E&&($=E);while(E);$&&!$.contains(document.activeElement)&&Xe($)}break}}},u=y=>{const m=F(o.selectionManager),b=F(o.keyboardDelegate),w=F(o.selectOnFocus);if(m.isFocused()){y.currentTarget.contains(y.target)||m.setFocused(!1);return}if(y.currentTarget.contains(y.target)){if(m.setFocused(!0),m.focusedKey()==null){const x=I=>{I!=null&&(m.setFocusedKey(I),w&&m.replaceSelection(I))},S=y.relatedTarget;S&&y.currentTarget.compareDocumentPosition(S)&Node.DOCUMENT_POSITION_FOLLOWING?x(m.lastSelectedKey()??b.getLastKey?.()):x(m.firstSelectedKey()??b.getFirstKey?.())}else if(!F(o.isVirtualized)){const x=i();if(x){x.scrollTop=l.top,x.scrollLeft=l.left;const S=x.querySelector(`[data-key="${m.focusedKey()}"]`);S&&(Xe(S),ji(x,S))}}}},f=y=>{const m=F(o.selectionManager);y.currentTarget.contains(y.relatedTarget)||m.setFocused(!1)},g=y=>{i()===y.target&&y.preventDefault()},h=()=>{const y=F(o.autoFocus);if(!y)return;const m=F(o.selectionManager),b=F(o.keyboardDelegate);let w;y==="first"&&(w=b.getFirstKey?.()),y==="last"&&(w=b.getLastKey?.());const x=m.selectedKeys();x.size&&(w=x.values().next().value),m.setFocused(!0),m.setFocusedKey(w);const S=t();S&&w==null&&!F(o.shouldUseVirtualFocus)&&Xe(S)};return rn(()=>{o.deferAutoFocus?setTimeout(h,0):h()}),Z(nn([i,()=>F(o.isVirtualized),()=>F(o.selectionManager).focusedKey()],y=>{const[m,b,w]=y;if(b)w&&o.scrollToKey?.(w);else if(w&&m){const x=m.querySelector(`[data-key="${w}"]`);x&&ji(m,x)}})),{tabIndex:_(()=>{if(!F(o.shouldUseVirtualFocus))return F(o.selectionManager).focusedKey()==null?0:-1}),onKeyDown:d,onMouseDown:g,onFocusIn:u,onFocusOut:f}}function du(e,t){const n=()=>F(e.selectionManager),r=()=>F(e.key),o=()=>F(e.shouldUseVirtualFocus),i=b=>{n().selectionMode()!=="none"&&(n().selectionMode()==="single"?n().isSelected(r())&&!n().disallowEmptySelection()?n().toggleSelection(r()):n().replaceSelection(r()):b?.shiftKey?n().extendSelection(r()):n().selectionBehavior()==="toggle"||er(b)||"pointerType"in b&&b.pointerType==="touch"?n().toggleSelection(r()):n().replaceSelection(r()))},s=()=>n().isSelected(r()),l=()=>F(e.disabled)||n().isDisabled(r()),a=()=>!l()&&n().canSelectItem(r());let c=null;const d=b=>{a()&&(c=b.pointerType,b.pointerType==="mouse"&&b.button===0&&!F(e.shouldSelectOnPressUp)&&i(b))},u=b=>{a()&&b.pointerType==="mouse"&&b.button===0&&F(e.shouldSelectOnPressUp)&&F(e.allowsDifferentPressOrigin)&&i(b)},f=b=>{a()&&(F(e.shouldSelectOnPressUp)&&!F(e.allowsDifferentPressOrigin)||c!=="mouse")&&i(b)},g=b=>{!a()||!["Enter"," "].includes(b.key)||(uu(b)?n().toggleSelection(r()):i(b))},h=b=>{l()&&b.preventDefault()},p=b=>{const w=t();o()||l()||!w||b.target===w&&n().setFocusedKey(r())},y=_(()=>{if(!(o()||l()))return r()===n().focusedKey()?0:-1}),m=_(()=>F(e.virtualized)?void 0:r());return Z(nn([t,r,o,()=>n().focusedKey(),()=>n().isFocused()],([b,w,x,S,I])=>{b&&w===S&&I&&!x&&document.activeElement!==b&&(e.focus?e.focus():Xe(b))})),{isSelected:s,isDisabled:l,allowsSelection:a,tabIndex:y,dataKey:m,onPointerDown:d,onPointerUp:u,onClick:f,onKeyDown:g,onMouseDown:h,onFocus:p}}var nm=class{collection;state;constructor(e,t){this.collection=e,this.state=t}selectionMode(){return this.state.selectionMode()}disallowEmptySelection(){return this.state.disallowEmptySelection()}selectionBehavior(){return this.state.selectionBehavior()}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}isFocused(){return this.state.isFocused()}setFocused(e){this.state.setFocused(e)}focusedKey(){return this.state.focusedKey()}setFocusedKey(e){(e==null||this.collection().getItem(e))&&this.state.setFocusedKey(e)}selectedKeys(){return this.state.selectedKeys()}isSelected(e){if(this.state.selectionMode()==="none")return!1;const t=this.getKey(e);return t==null?!1:this.state.selectedKeys().has(t)}isEmpty(){return this.state.selectedKeys().size===0}isSelectAll(){if(this.isEmpty())return!1;const e=this.state.selectedKeys();return this.getAllSelectableKeys().every(t=>e.has(t))}firstSelectedKey(){let e;for(const t of this.state.selectedKeys()){const n=this.collection().getItem(t),r=n?.index!=null&&e?.index!=null&&n.index<e.index;(!e||r)&&(e=n)}return e?.key}lastSelectedKey(){let e;for(const t of this.state.selectedKeys()){const n=this.collection().getItem(t),r=n?.index!=null&&e?.index!=null&&n.index>e.index;(!e||r)&&(e=n)}return e?.key}extendSelection(e){if(this.selectionMode()==="none")return;if(this.selectionMode()==="single"){this.replaceSelection(e);return}const t=this.getKey(e);if(t==null)return;const n=this.state.selectedKeys(),r=n.anchorKey||t,o=new an(n,r,t);for(const i of this.getKeyRange(r,n.currentKey||t))o.delete(i);for(const i of this.getKeyRange(t,r))this.canSelectItem(i)&&o.add(i);this.state.setSelectedKeys(o)}getKeyRange(e,t){const n=this.collection().getItem(e),r=this.collection().getItem(t);return n&&r?n.index!=null&&r.index!=null&&n.index<=r.index?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){const n=[];let r=e;for(;r!=null;){const o=this.collection().getItem(r);if(o&&o.type==="item"&&n.push(r),r===t)return n;r=this.collection().getKeyAfter(r)}return[]}getKey(e){const t=this.collection().getItem(e);return t?!t||t.type!=="item"?null:t.key:e}toggleSelection(e){if(this.selectionMode()==="none")return;if(this.selectionMode()==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}const t=this.getKey(e);if(t==null)return;const n=new an(this.state.selectedKeys());n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection()&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(e){if(this.selectionMode()==="none")return;const t=this.getKey(e);if(t==null)return;const n=this.canSelectItem(t)?new an([t],t,t):new an;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode()==="none")return;const t=new an;for(const n of e){const r=this.getKey(n);if(r!=null&&(t.add(r),this.selectionMode()==="single"))break}this.state.setSelectedKeys(t)}selectAll(){this.selectionMode()==="multiple"&&this.state.setSelectedKeys(new Set(this.getAllSelectableKeys()))}clearSelection(){const e=this.state.selectedKeys();!this.disallowEmptySelection()&&e.size>0&&this.state.setSelectedKeys(new an)}toggleSelectAll(){this.isSelectAll()?this.clearSelection():this.selectAll()}select(e,t){this.selectionMode()!=="none"&&(this.selectionMode()==="single"?this.isSelected(e)&&!this.disallowEmptySelection()?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior()==="toggle"||t&&t.pointerType==="touch"?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys())return!0;const t=this.selectedKeys();if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;for(const n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){if(this.state.selectionMode()==="none")return!1;const t=this.collection().getItem(e);return t!=null&&!t.disabled}isDisabled(e){const t=this.collection().getItem(e);return!t||t.disabled}getAllSelectableKeys(){const e=[];return(n=>{for(;n!=null;){if(this.canSelectItem(n)){const r=this.collection().getItem(n);if(!r)continue;r.type==="item"&&e.push(n)}n=this.collection().getKeyAfter(n)}})(this.collection().getFirstKey()),e}},fu=class{keyMap=new Map;iterable;firstKey;lastKey;constructor(e){this.iterable=e;for(const r of e)this.keyMap.set(r.key,r);if(this.keyMap.size===0)return;let t,n=0;for(const[r,o]of this.keyMap)t?(t.nextKey=r,o.prevKey=t.key):(this.firstKey=r,o.prevKey=void 0),o.type==="item"&&(o.index=n++),t=o,t.nextKey=void 0;this.lastKey=t.key}*[Symbol.iterator](){yield*this.iterable}getSize(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){return this.keyMap.get(e)?.prevKey}getKeyAfter(e){return this.keyMap.get(e)?.nextKey}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}};function rm(e){const t=Xp(e),r=Vp({dataSource:()=>F(e.dataSource),getKey:()=>F(e.getKey),getTextValue:()=>F(e.getTextValue),getDisabled:()=>F(e.getDisabled),getSectionChildren:()=>F(e.getSectionChildren),factory:i=>e.filter?new fu(e.filter(i)):new fu(i)},[()=>e.filter]),o=new nm(r,t);return oa(()=>{const i=t.focusedKey();i!=null&&!r().getItem(i)&&t.setFocusedKey(void 0)}),{collection:r,selectionManager:()=>o}}var Ze=e=>typeof e=="function"?e():e,om=e=>{const t=_(()=>{const s=Ze(e.element);if(s)return getComputedStyle(s)}),n=()=>t()?.animationName??"none",[r,o]=q(Ze(e.show)?"present":"hidden");let i="none";return Z(s=>{const l=Ze(e.show);return De(()=>{if(s===l)return l;const a=i,c=n();l?o("present"):c==="none"||t()?.display==="none"?o("hidden"):o(s===!0&&a!==c?"hiding":"hidden")}),l}),Z(()=>{const s=Ze(e.element);if(!s)return;const l=c=>{c.target===s&&(i=n())},a=c=>{const u=n().includes(c.animationName);c.target===s&&u&&r()==="hiding"&&o("hidden")};s.addEventListener("animationstart",l),s.addEventListener("animationcancel",a),s.addEventListener("animationend",a),ee(()=>{s.removeEventListener("animationstart",l),s.removeEventListener("animationcancel",a),s.removeEventListener("animationend",a)})}),{present:()=>r()==="present"||r()==="hiding",state:r}},im=om,gu=im,So="data-kb-top-layer",hu,Yi=!1,ln=[];function Ir(e){return ln.findIndex(t=>t.node===e)}function sm(e){return ln[Ir(e)]}function am(e){return ln[ln.length-1].node===e}function pu(){return ln.filter(e=>e.isPointerBlocking)}function lm(){return[...pu()].slice(-1)[0]}function Xi(){return pu().length>0}function mu(e){const t=Ir(lm()?.node);return Ir(e)<t}function um(e){ln.push(e)}function cm(e){const t=Ir(e);t<0||ln.splice(t,1)}function dm(){for(const{node:e}of ln)e.style.pointerEvents=mu(e)?"none":"auto"}function fm(e){if(Xi()&&!Yi){const t=Bt(e);hu=document.body.style.pointerEvents,t.body.style.pointerEvents="none",Yi=!0}}function gm(e){if(Xi())return;const t=Bt(e);t.body.style.pointerEvents=hu,t.body.style.length===0&&t.body.removeAttribute("style"),Yi=!1}var mt={layers:ln,isTopMostLayer:am,hasPointerBlockingLayer:Xi,isBelowPointerBlockingLayer:mu,addLayer:um,removeLayer:cm,indexOf:Ir,find:sm,assignPointerEventToLayers:dm,disableBodyPointerEvents:fm,restoreBodyPointerEvents:gm},hm={};xo(hm,{Button:()=>ym,Root:()=>Zi});var pm=["button","color","file","image","reset","submit"];function mm(e){const t=e.tagName.toLowerCase();return t==="button"?!0:t==="input"&&e.type?pm.indexOf(e.type)!==-1:!1}function Zi(e){let t;const n=be({type:"button"},e),[r,o]=Ce(n,["ref","type","disabled"]),i=wo(()=>t,()=>"button"),s=_(()=>{const c=i();return c==null?!1:mm({tagName:c,type:r.type})}),l=_(()=>i()==="input"),a=_(()=>i()==="a"&&t?.getAttribute("href")!=null);return v(_e,le({as:"button",ref(c){const d=rt(u=>t=u,r.ref);typeof d=="function"&&d(c)},get type(){return s()||l()?r.type:void 0},get role(){return!s()&&!a()?"button":void 0},get tabIndex(){return!s()&&!a()&&!r.disabled?0:void 0},get disabled(){return s()||l()?r.disabled:void 0},get"aria-disabled"(){return!s()&&!l()&&r.disabled?!0:void 0},get"data-disabled"(){return r.disabled?"":void 0}},o))}var ym=Zi,vm=["top","right","bottom","left"],Ht=Math.min,yt=Math.max,Co=Math.round,$o=Math.floor,bn=e=>({x:e,y:e}),bm={left:"right",right:"left",bottom:"top",top:"bottom"},wm={start:"end",end:"start"};function Ji(e,t,n){return yt(e,Ht(t,n))}function Dn(e,t){return typeof e=="function"?e(t):e}function wn(e){return e.split("-")[0]}function tr(e){return e.split("-")[1]}function yu(e){return e==="x"?"y":"x"}function es(e){return e==="y"?"height":"width"}function Tn(e){return["top","bottom"].includes(wn(e))?"y":"x"}function ts(e){return yu(Tn(e))}function xm(e,t,n){n===void 0&&(n=!1);const r=tr(e),o=ts(e),i=es(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=ko(s)),[s,ko(s)]}function Sm(e){const t=ko(e);return[ns(e),t,ns(t)]}function ns(e){return e.replace(/start|end/g,t=>wm[t])}function Cm(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function $m(e,t,n,r){const o=tr(e);let i=Cm(wn(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(ns)))),i}function ko(e){return e.replace(/left|right|bottom|top/g,t=>bm[t])}function km(e){return{top:0,right:0,bottom:0,left:0,...e}}function vu(e){return typeof e!="number"?km(e):{top:e,right:e,bottom:e,left:e}}function Eo(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function bu(e,t,n){let{reference:r,floating:o}=e;const i=Tn(t),s=ts(t),l=es(s),a=wn(t),c=i==="y",d=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,f=r[l]/2-o[l]/2;let g;switch(a){case"top":g={x:d,y:r.y-o.height};break;case"bottom":g={x:d,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:u};break;case"left":g={x:r.x-o.width,y:u};break;default:g={x:r.x,y:r.y}}switch(tr(t)){case"start":g[s]-=f*(n&&c?-1:1);break;case"end":g[s]+=f*(n&&c?-1:1);break}return g}var Em=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=bu(c,r,a),f=r,g={},h=0;for(let p=0;p<l.length;p++){const{name:y,fn:m}=l[p],{x:b,y:w,data:x,reset:S}=await m({x:d,y:u,initialPlacement:r,placement:f,strategy:o,middlewareData:g,rects:c,platform:s,elements:{reference:e,floating:t}});d=b??d,u=w??u,g={...g,[y]:{...g[y],...x}},S&&h<=50&&(h++,typeof S=="object"&&(S.placement&&(f=S.placement),S.rects&&(c=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:d,y:u}=bu(c,f,a)),p=-1)}return{x:d,y:u,placement:f,strategy:o,middlewareData:g}};async function Fr(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:l,strategy:a}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:f=!1,padding:g=0}=Dn(t,e),h=vu(g),y=l[f?u==="floating"?"reference":"floating":u],m=Eo(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(y)))==null||n?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:a})),b=u==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),x=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},S=Eo(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:b,offsetParent:w,strategy:a}):b);return{top:(m.top-S.top+h.top)/x.y,bottom:(S.bottom-m.bottom+h.bottom)/x.y,left:(m.left-S.left+h.left)/x.x,right:(S.right-m.right+h.right)/x.x}}var Mm=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:l,middlewareData:a}=t,{element:c,padding:d=0}=Dn(e,t)||{};if(c==null)return{};const u=vu(d),f={x:n,y:r},g=ts(o),h=es(g),p=await s.getDimensions(c),y=g==="y",m=y?"top":"left",b=y?"bottom":"right",w=y?"clientHeight":"clientWidth",x=i.reference[h]+i.reference[g]-f[g]-i.floating[h],S=f[g]-i.reference[g],I=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let M=I?I[w]:0;(!M||!await(s.isElement==null?void 0:s.isElement(I)))&&(M=l.floating[w]||i.floating[h]);const C=x/2-S/2,$=M/2-p[h]/2-1,E=Ht(u[m],$),N=Ht(u[b],$),H=E,J=M-p[h]-N,ue=M/2-p[h]/2+C,ge=Ji(H,ue,J),j=!a.arrow&&tr(o)!=null&&ue!==ge&&i.reference[h]/2-(ue<H?E:N)-p[h]/2<0,te=j?ue<H?ue-H:ue-J:0;return{[g]:f[g]+te,data:{[g]:ge,centerOffset:ue-ge-te,...j&&{alignmentOffset:te}},reset:j}}}),Pm=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:l,platform:a,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:p=!0,...y}=Dn(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const m=wn(o),b=Tn(l),w=wn(l)===l,x=await(a.isRTL==null?void 0:a.isRTL(c.floating)),S=f||(w||!p?[ko(l)]:Sm(l)),I=h!=="none";!f&&I&&S.push(...$m(l,p,h,x));const M=[l,...S],C=await Fr(t,y),$=[];let E=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&$.push(C[m]),u){const ue=xm(o,s,x);$.push(C[ue[0]],C[ue[1]])}if(E=[...E,{placement:o,overflows:$}],!$.every(ue=>ue<=0)){var N,H;const ue=(((N=i.flip)==null?void 0:N.index)||0)+1,ge=M[ue];if(ge)return{data:{index:ue,overflows:E},reset:{placement:ge}};let j=(H=E.filter(te=>te.overflows[0]<=0).sort((te,z)=>te.overflows[1]-z.overflows[1])[0])==null?void 0:H.placement;if(!j)switch(g){case"bestFit":{var J;const te=(J=E.filter(z=>{if(I){const pe=Tn(z.placement);return pe===b||pe==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(pe=>pe>0).reduce((pe,me)=>pe+me,0)]).sort((z,pe)=>z[1]-pe[1])[0])==null?void 0:J[0];te&&(j=te);break}case"initialPlacement":j=l;break}if(o!==j)return{reset:{placement:j}}}return{}}}};function wu(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function xu(e){return vm.some(t=>e[t]>=0)}var Am=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Dn(e,t);switch(r){case"referenceHidden":{const i=await Fr(t,{...o,elementContext:"reference"}),s=wu(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:xu(s)}}}case"escaped":{const i=await Fr(t,{...o,altBoundary:!0}),s=wu(i,n.floating);return{data:{escapedOffsets:s,escaped:xu(s)}}}default:return{}}}}};async function Im(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=wn(n),l=tr(n),a=Tn(n)==="y",c=["left","top"].includes(s)?-1:1,d=i&&a?-1:1,u=Dn(t,e);let{mainAxis:f,crossAxis:g,alignmentAxis:h}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return l&&typeof h=="number"&&(g=l==="end"?h*-1:h),a?{x:g*d,y:f*c}:{x:f*c,y:g*d}}var Fm=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:l}=t,a=await Im(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:s}}}}},_m=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:y=>{let{x:m,y:b}=y;return{x:m,y:b}}},...a}=Dn(e,t),c={x:n,y:r},d=await Fr(t,a),u=Tn(wn(o)),f=yu(u);let g=c[f],h=c[u];if(i){const y=f==="y"?"top":"left",m=f==="y"?"bottom":"right",b=g+d[y],w=g-d[m];g=Ji(b,g,w)}if(s){const y=u==="y"?"top":"left",m=u==="y"?"bottom":"right",b=h+d[y],w=h-d[m];h=Ji(b,h,w)}const p=l.fn({...t,[f]:g,[u]:h});return{...p,data:{x:p.x-n,y:p.y-r}}}}},Om=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:s=()=>{},...l}=Dn(e,t),a=await Fr(t,l),c=wn(n),d=tr(n),u=Tn(n)==="y",{width:f,height:g}=r.floating;let h,p;c==="top"||c==="bottom"?(h=c,p=d===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(p=c,h=d==="end"?"top":"bottom");const y=g-a.top-a.bottom,m=f-a.left-a.right,b=Ht(g-a[h],y),w=Ht(f-a[p],m),x=!t.middlewareData.shift;let S=b,I=w;if(u?I=d||x?Ht(w,m):m:S=d||x?Ht(b,y):y,x&&!d){const C=yt(a.left,0),$=yt(a.right,0),E=yt(a.top,0),N=yt(a.bottom,0);u?I=f-2*(C!==0||$!==0?C+$:yt(a.left,a.right)):S=g-2*(E!==0||N!==0?E+N:yt(a.top,a.bottom))}await s({...t,availableWidth:I,availableHeight:S});const M=await o.getDimensions(i.floating);return f!==M.width||g!==M.height?{reset:{rects:!0}}:{}}}};function nr(e){return Su(e)?(e.nodeName||"").toLowerCase():"#document"}function vt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function un(e){var t;return(t=(Su(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Su(e){return e instanceof Node||e instanceof vt(e).Node}function Ft(e){return e instanceof Element||e instanceof vt(e).Element}function Gt(e){return e instanceof HTMLElement||e instanceof vt(e).HTMLElement}function Cu(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof vt(e).ShadowRoot}function _r(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=_t(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Dm(e){return["table","td","th"].includes(nr(e))}function Mo(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function rs(e){const t=os(),n=Ft(e)?_t(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Tm(e){let t=xn(e);for(;Gt(t)&&!rr(t);){if(rs(t))return t;if(Mo(t))return null;t=xn(t)}return null}function os(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function rr(e){return["html","body","#document"].includes(nr(e))}function _t(e){return vt(e).getComputedStyle(e)}function Po(e){return Ft(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function xn(e){if(nr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Cu(e)&&e.host||un(e);return Cu(t)?t.host:t}function $u(e){const t=xn(e);return rr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Gt(t)&&_r(t)?t:$u(t)}function Or(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=$u(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=vt(o);return i?t.concat(s,s.visualViewport||[],_r(o)?o:[],s.frameElement&&n?Or(s.frameElement):[]):t.concat(o,Or(o,[],n))}function ku(e){const t=_t(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Gt(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,l=Co(n)!==i||Co(r)!==s;return l&&(n=i,r=s),{width:n,height:r,$:l}}function is(e){return Ft(e)?e:e.contextElement}function or(e){const t=is(e);if(!Gt(t))return bn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ku(t);let s=(i?Co(n.width):n.width)/r,l=(i?Co(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var Rm=bn(0);function Eu(e){const t=vt(e);return!os()||!t.visualViewport?Rm:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Lm(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==vt(e)?!1:t}function Rn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=is(e);let s=bn(1);t&&(r?Ft(r)&&(s=or(r)):s=or(e));const l=Lm(i,n,r)?Eu(i):bn(0);let a=(o.left+l.x)/s.x,c=(o.top+l.y)/s.y,d=o.width/s.x,u=o.height/s.y;if(i){const f=vt(i),g=r&&Ft(r)?vt(r):r;let h=f,p=h.frameElement;for(;p&&r&&g!==h;){const y=or(p),m=p.getBoundingClientRect(),b=_t(p),w=m.left+(p.clientLeft+parseFloat(b.paddingLeft))*y.x,x=m.top+(p.clientTop+parseFloat(b.paddingTop))*y.y;a*=y.x,c*=y.y,d*=y.x,u*=y.y,a+=w,c+=x,h=vt(p),p=h.frameElement}}return Eo({width:d,height:u,x:a,y:c})}function qm(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=un(r),l=t?Mo(t.floating):!1;if(r===s||l&&i)return n;let a={scrollLeft:0,scrollTop:0},c=bn(1);const d=bn(0),u=Gt(r);if((u||!u&&!i)&&((nr(r)!=="body"||_r(s))&&(a=Po(r)),Gt(r))){const f=Rn(r);c=or(r),d.x=f.x+r.clientLeft,d.y=f.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+d.x,y:n.y*c.y-a.scrollTop*c.y+d.y}}function zm(e){return Array.from(e.getClientRects())}function Mu(e){return Rn(un(e)).left+Po(e).scrollLeft}function Nm(e){const t=un(e),n=Po(e),r=e.ownerDocument.body,o=yt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=yt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Mu(e);const l=-n.scrollTop;return _t(r).direction==="rtl"&&(s+=yt(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:l}}function Vm(e,t){const n=vt(e),r=un(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,l=0,a=0;if(o){i=o.width,s=o.height;const c=os();(!c||c&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:i,height:s,x:l,y:a}}function Bm(e,t){const n=Rn(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Gt(e)?or(e):bn(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,a=o*i.x,c=r*i.y;return{width:s,height:l,x:a,y:c}}function Pu(e,t,n){let r;if(t==="viewport")r=Vm(e,n);else if(t==="document")r=Nm(un(e));else if(Ft(t))r=Bm(t,n);else{const o=Eu(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Eo(r)}function Au(e,t){const n=xn(e);return n===t||!Ft(n)||rr(n)?!1:_t(n).position==="fixed"||Au(n,t)}function Hm(e,t){const n=t.get(e);if(n)return n;let r=Or(e,[],!1).filter(l=>Ft(l)&&nr(l)!=="body"),o=null;const i=_t(e).position==="fixed";let s=i?xn(e):e;for(;Ft(s)&&!rr(s);){const l=_t(s),a=rs(s);!a&&l.position==="fixed"&&(o=null),(i?!a&&!o:!a&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||_r(s)&&!a&&Au(e,s))?r=r.filter(d=>d!==s):o=l,s=xn(s)}return t.set(e,r),r}function Gm(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Mo(t)?[]:Hm(t,this._c):[].concat(n),r],l=s[0],a=s.reduce((c,d)=>{const u=Pu(t,d,o);return c.top=yt(u.top,c.top),c.right=Ht(u.right,c.right),c.bottom=Ht(u.bottom,c.bottom),c.left=yt(u.left,c.left),c},Pu(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Km(e){const{width:t,height:n}=ku(e);return{width:t,height:n}}function Um(e,t,n){const r=Gt(t),o=un(t),i=n==="fixed",s=Rn(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const a=bn(0);if(r||!r&&!i)if((nr(t)!=="body"||_r(o))&&(l=Po(t)),r){const u=Rn(t,!0,i,t);a.x=u.x+t.clientLeft,a.y=u.y+t.clientTop}else o&&(a.x=Mu(o));const c=s.left+l.scrollLeft-a.x,d=s.top+l.scrollTop-a.y;return{x:c,y:d,width:s.width,height:s.height}}function ss(e){return _t(e).position==="static"}function Iu(e,t){return!Gt(e)||_t(e).position==="fixed"?null:t?t(e):e.offsetParent}function Fu(e,t){const n=vt(e);if(Mo(e))return n;if(!Gt(e)){let o=xn(e);for(;o&&!rr(o);){if(Ft(o)&&!ss(o))return o;o=xn(o)}return n}let r=Iu(e,t);for(;r&&Dm(r)&&ss(r);)r=Iu(r,t);return r&&rr(r)&&ss(r)&&!rs(r)?n:r||Tm(e)||n}var jm=async function(e){const t=this.getOffsetParent||Fu,n=this.getDimensions,r=await n(e.floating);return{reference:Um(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Qm(e){return _t(e).direction==="rtl"}var _u={convertOffsetParentRelativeRectToViewportRelativeRect:qm,getDocumentElement:un,getClippingRect:Gm,getOffsetParent:Fu,getElementRects:jm,getClientRects:zm,getDimensions:Km,getScale:or,isElement:Ft,isRTL:Qm};function Wm(e,t){let n=null,r;const o=un(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),i();const{left:c,top:d,width:u,height:f}=e.getBoundingClientRect();if(l||t(),!u||!f)return;const g=$o(d),h=$o(o.clientWidth-(c+u)),p=$o(o.clientHeight-(d+f)),y=$o(c),b={rootMargin:-g+"px "+-h+"px "+-p+"px "+-y+"px",threshold:yt(0,Ht(1,a))||1};let w=!0;function x(S){const I=S[0].intersectionRatio;if(I!==a){if(!w)return s();I?s(!1,I):r=setTimeout(()=>{s(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(x,{...b,root:o.ownerDocument})}catch{n=new IntersectionObserver(x,b)}n.observe(e)}return s(!0),i}function Ym(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,c=is(e),d=o||i?[...c?Or(c):[],...Or(t)]:[];d.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const u=c&&l?Wm(c,n):null;let f=-1,g=null;s&&(g=new ResizeObserver(m=>{let[b]=m;b&&b.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),n()}),c&&!a&&g.observe(c),g.observe(t));let h,p=a?Rn(e):null;a&&y();function y(){const m=Rn(e);p&&(m.x!==p.x||m.y!==p.y||m.width!==p.width||m.height!==p.height)&&n(),p=m,h=requestAnimationFrame(y)}return n(),()=>{var m;d.forEach(b=>{o&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n)}),u?.(),(m=g)==null||m.disconnect(),g=null,a&&cancelAnimationFrame(h)}}var Xm=Fm,Zm=_m,Jm=Pm,ey=Om,ty=Am,ny=Mm,ry=(e,t,n)=>{const r=new Map,o={platform:_u,...n},i={...o.platform,_c:r};return Em(e,t,{...o,platform:i})},as=Ue();function ls(){const e=je(as);if(e===void 0)throw new Error("[kobalte]: `usePopperContext` must be used within a `Popper` component");return e}var oy=V('<svg display="block" viewBox="0 0 30 30" style="transform:scale(1.02)"><g><path fill="none" d="M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z"></path><path stroke="none" d="M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z">'),us=30,Ou=us/2,iy={top:180,right:-90,bottom:0,left:90};function cs(e){const t=ls(),n=be({size:us},e),[r,o]=Ce(n,["ref","style","size"]),i=()=>t.currentPlacement().split("-")[0],s=sy(t.contentRef),l=()=>s()?.getPropertyValue("background-color")||"none",a=()=>s()?.getPropertyValue(`border-${i()}-color`)||"none",c=()=>s()?.getPropertyValue(`border-${i()}-width`)||"0px",d=()=>Number.parseInt(c())*2*(us/r.size),u=()=>`rotate(${iy[i()]} ${Ou} ${Ou}) translate(0 2)`;return v(_e,le({as:"div",ref(f){const g=rt(t.setArrowRef,r.ref);typeof g=="function"&&g(f)},"aria-hidden":"true",get style(){return yo({position:"absolute","font-size":`${r.size}px`,width:"1em",height:"1em","pointer-events":"none",fill:l(),stroke:a(),"stroke-width":d()},r.style)}},o,{get children(){const f=oy(),g=f.firstChild;return X(()=>O(g,"transform",u())),f}}))}function sy(e){const[t,n]=q();return Z(()=>{const r=e();r&&n(ip(r).getComputedStyle(r))}),t}function ay(e){const t=ls(),[n,r]=Ce(e,["ref","style"]);return v(_e,le({as:"div",ref(o){const i=rt(t.setPositionerRef,n.ref);typeof i=="function"&&i(o)},"data-popper-positioner":"",get style(){return yo({position:"absolute",top:0,left:0,"min-width":"max-content"},n.style)}},r))}function Du(e){const{x:t=0,y:n=0,width:r=0,height:o=0}=e??{};if(typeof DOMRect=="function")return new DOMRect(t,n,r,o);const i={x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:n+o,left:t};return{...i,toJSON:()=>i}}function ly(e,t){return{contextElement:e,getBoundingClientRect:()=>{const r=t(e);return r?Du(r):e?e.getBoundingClientRect():Du()}}}function uy(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}var cy={top:"bottom",right:"left",bottom:"top",left:"right"};function dy(e,t){const[n,r]=e.split("-"),o=cy[n];return r?n==="left"||n==="right"?`${o} ${r==="start"?"top":"bottom"}`:r==="start"?`${o} ${t==="rtl"?"right":"left"}`:`${o} ${t==="rtl"?"left":"right"}`:`${o} center`}function fy(e){const t=be({getAnchorRect:f=>f?.getBoundingClientRect(),placement:"bottom",gutter:0,shift:0,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,hideWhenDetached:!1,detachedPadding:0,arrowPadding:4,overflowPadding:8},e),[n,r]=q(),[o,i]=q(),[s,l]=q(t.placement),a=()=>ly(t.anchorRef?.(),t.getAnchorRect),{direction:c}=vn();async function d(){const f=a(),g=n(),h=o();if(!f||!g)return;const p=(h?.clientHeight||0)/2,y=typeof t.gutter=="number"?t.gutter+p:t.gutter??p;g.style.setProperty("--kb-popper-content-overflow-padding",`${t.overflowPadding}px`),f.getBoundingClientRect();const m=[Xm(({placement:I})=>{const M=!!I.split("-")[1];return{mainAxis:y,crossAxis:M?void 0:t.shift,alignmentAxis:t.shift}})];if(t.flip!==!1){const I=typeof t.flip=="string"?t.flip.split(" "):void 0;if(I!==void 0&&!I.every(uy))throw new Error("`flip` expects a spaced-delimited list of placements");m.push(Jm({padding:t.overflowPadding,fallbackPlacements:I}))}(t.slide||t.overlap)&&m.push(Zm({mainAxis:t.slide,crossAxis:t.overlap,padding:t.overflowPadding})),m.push(ey({padding:t.overflowPadding,apply({availableWidth:I,availableHeight:M,rects:C}){const $=Math.round(C.reference.width);I=Math.floor(I),M=Math.floor(M),g.style.setProperty("--kb-popper-anchor-width",`${$}px`),g.style.setProperty("--kb-popper-content-available-width",`${I}px`),g.style.setProperty("--kb-popper-content-available-height",`${M}px`),t.sameWidth&&(g.style.width=`${$}px`),t.fitViewport&&(g.style.maxWidth=`${I}px`,g.style.maxHeight=`${M}px`)}})),t.hideWhenDetached&&m.push(ty({padding:t.detachedPadding})),h&&m.push(ny({element:h,padding:t.arrowPadding}));const b=await ry(f,g,{placement:t.placement,strategy:"absolute",middleware:m,platform:{..._u,isRTL:()=>c()==="rtl"}});if(l(b.placement),t.onCurrentPlacementChange?.(b.placement),!g)return;g.style.setProperty("--kb-popper-content-transform-origin",dy(b.placement,c()));const w=Math.round(b.x),x=Math.round(b.y);let S;if(t.hideWhenDetached&&(S=b.middlewareData.hide?.referenceHidden?"hidden":"visible"),Object.assign(g.style,{top:"0",left:"0",transform:`translate3d(${w}px, ${x}px, 0)`,visibility:S}),h&&b.middlewareData.arrow){const{x:I,y:M}=b.middlewareData.arrow,C=b.placement.split("-")[0];Object.assign(h.style,{left:I!=null?`${I}px`:"",top:M!=null?`${M}px`:"",[C]:"100%"})}}Z(()=>{const f=a(),g=n();if(!f||!g)return;const h=Ym(f,g,d,{elementResize:typeof ResizeObserver=="function"});ee(h)}),Z(()=>{const f=n(),g=t.contentRef?.();!f||!g||queueMicrotask(()=>{f.style.zIndex=getComputedStyle(g).zIndex})});const u={currentPlacement:s,contentRef:()=>t.contentRef?.(),setPositionerRef:r,setArrowRef:i};return v(as.Provider,{value:u,get children(){return t.children}})}var Tu=Object.assign(fy,{Arrow:cs,Context:as,usePopperContext:ls,Positioner:ay});function gy(e){const t=n=>{n.key===Hi.Escape&&e.onEscapeKeyDown?.(n)};Z(()=>{if(F(e.isDisabled))return;const n=e.ownerDocument?.()??Bt();n.addEventListener("keydown",t),ee(()=>{n.removeEventListener("keydown",t)})})}var Ru="interactOutside.pointerDownOutside",Lu="interactOutside.focusOutside";function hy(e,t){let n,r=xp;const o=()=>Bt(t()),i=u=>e.onPointerDownOutside?.(u),s=u=>e.onFocusOutside?.(u),l=u=>e.onInteractOutside?.(u),a=u=>{const f=u.target;return!(f instanceof HTMLElement)||f.closest(`[${So}]`)||!$t(o(),f)||$t(t(),f)?!1:!e.shouldExcludeElement?.(f)},c=u=>{function f(){const g=t(),h=u.target;if(!g||!h||!a(u))return;const p=He([i,l]);h.addEventListener(Ru,p,{once:!0});const y=new CustomEvent(Ru,{bubbles:!1,cancelable:!0,detail:{originalEvent:u,isContextMenu:u.button===2||cp(u)&&u.button===0}});h.dispatchEvent(y)}u.pointerType==="touch"?(o().removeEventListener("click",f),r=f,o().addEventListener("click",f,{once:!0})):f()},d=u=>{const f=t(),g=u.target;if(!f||!g||!a(u))return;const h=He([s,l]);g.addEventListener(Lu,h,{once:!0});const p=new CustomEvent(Lu,{bubbles:!1,cancelable:!0,detail:{originalEvent:u,isContextMenu:!1}});g.dispatchEvent(p)};Z(()=>{F(e.isDisabled)||(n=window.setTimeout(()=>{o().addEventListener("pointerdown",c,!0)},0),o().addEventListener("focusin",d,!0),ee(()=>{window.clearTimeout(n),o().removeEventListener("click",r),o().removeEventListener("pointerdown",c,!0),o().removeEventListener("focusin",d,!0)}))})}var qu=Ue();function py(){return je(qu)}function my(e){let t;const n=py(),[r,o]=Ce(e,["ref","disableOutsidePointerEvents","excludedElements","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","bypassTopMostLayerCheck"]),i=new Set([]),s=u=>{i.add(u);const f=n?.registerNestedLayer(u);return()=>{i.delete(u),f?.()}};hy({shouldExcludeElement:u=>t?r.excludedElements?.some(f=>$t(f(),u))||[...i].some(f=>$t(f,u)):!1,onPointerDownOutside:u=>{!t||mt.isBelowPointerBlockingLayer(t)||!r.bypassTopMostLayerCheck&&!mt.isTopMostLayer(t)||(r.onPointerDownOutside?.(u),r.onInteractOutside?.(u),u.defaultPrevented||r.onDismiss?.())},onFocusOutside:u=>{r.onFocusOutside?.(u),r.onInteractOutside?.(u),u.defaultPrevented||r.onDismiss?.()}},()=>t),gy({ownerDocument:()=>Bt(t),onEscapeKeyDown:u=>{!t||!mt.isTopMostLayer(t)||(r.onEscapeKeyDown?.(u),!u.defaultPrevented&&r.onDismiss&&(u.preventDefault(),r.onDismiss()))}}),rn(()=>{if(!t)return;mt.addLayer({node:t,isPointerBlocking:r.disableOutsidePointerEvents,dismiss:r.onDismiss});const u=n?.registerNestedLayer(t);mt.assignPointerEventToLayers(),mt.disableBodyPointerEvents(t),ee(()=>{t&&(mt.removeLayer(t),u?.(),mt.assignPointerEventToLayers(),mt.restoreBodyPointerEvents(t))})}),Z(nn([()=>t,()=>r.disableOutsidePointerEvents],([u,f])=>{if(!u)return;const g=mt.find(u);g&&g.isPointerBlocking!==f&&(g.isPointerBlocking=f,mt.assignPointerEventToLayers()),f&&mt.disableBodyPointerEvents(u),ee(()=>{mt.restoreBodyPointerEvents(u)})},{defer:!0}));const d={registerNestedLayer:s};return v(qu.Provider,{value:d,get children(){return v(_e,le({as:"div",ref(u){const f=rt(g=>t=g,r.ref);typeof f=="function"&&f(u)}},o))}})}function zu(e={}){const[t,n]=tu({value:()=>F(e.open),defaultValue:()=>!!F(e.defaultOpen),onChange:s=>e.onOpenChange?.(s)}),r=()=>{n(!0)},o=()=>{n(!1)};return{isOpen:t,setIsOpen:n,open:r,close:o,toggle:()=>{t()?o():r()}}}var Et={};xo(Et,{Description:()=>Jl,ErrorMessage:()=>eu,Item:()=>Hu,ItemControl:()=>Gu,ItemDescription:()=>Ku,ItemIndicator:()=>Uu,ItemInput:()=>ju,ItemLabel:()=>Qu,Label:()=>Wu,RadioGroup:()=>yy,Root:()=>Yu});var Nu=Ue();function Vu(){const e=je(Nu);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupContext` must be used within a `RadioGroup` component");return e}var Bu=Ue();function Dr(){const e=je(Bu);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupItemContext` must be used within a `RadioGroup.Item` component");return e}function Hu(e){const t=Mr(),n=Vu(),r=`${t.generateId("item")}-${St()}`,o=be({id:r},e),[i,s]=Ce(o,["value","disabled","onPointerDown"]),[l,a]=q(),[c,d]=q(),[u,f]=q(),[g,h]=q(),[p,y]=q(!1),m=_(()=>n.isSelectedValue(i.value)),b=_(()=>i.disabled||t.isDisabled()||!1),w=I=>{Fe(I,i.onPointerDown),p()&&I.preventDefault()},x=_(()=>({...t.dataset(),"data-disabled":b()?"":void 0,"data-checked":m()?"":void 0})),S={value:()=>i.value,dataset:x,isSelected:m,isDisabled:b,inputId:l,labelId:c,descriptionId:u,inputRef:g,select:()=>n.setSelectedValue(i.value),generateId:$r(()=>s.id),registerInput:kt(a),registerLabel:kt(d),registerDescription:kt(f),setIsFocused:y,setInputRef:h};return v(Bu.Provider,{value:S,get children(){return v(_e,le({as:"div",role:"group",onPointerDown:w},x,s))}})}function Gu(e){const t=Dr(),n=be({id:t.generateId("control")},e),[r,o]=Ce(n,["onClick","onKeyDown"]);return v(_e,le({as:"div",onClick:l=>{Fe(l,r.onClick),t.select(),t.inputRef()?.focus()},onKeyDown:l=>{Fe(l,r.onKeyDown),l.key===Hi.Space&&(t.select(),t.inputRef()?.focus())}},()=>t.dataset(),o))}function Ku(e){const t=Dr(),n=be({id:t.generateId("description")},e);return Z(()=>ee(t.registerDescription(n.id))),v(_e,le({as:"div"},()=>t.dataset(),n))}function Uu(e){const t=Dr(),n=be({id:t.generateId("indicator")},e),[r,o]=Ce(n,["ref","forceMount"]),[i,s]=q(),{present:l}=gu({show:()=>r.forceMount||t.isSelected(),element:()=>i()??null});return v(W,{get when(){return l()},get children(){return v(_e,le({as:"div",ref(a){const c=rt(s,r.ref);typeof c=="function"&&c(a)}},()=>t.dataset(),o))}})}function ju(e){const t=Mr(),n=Vu(),r=Dr(),o=be({id:r.generateId("input")},e),[i,s]=Ce(o,["ref","style","aria-labelledby","aria-describedby","onChange","onFocus","onBlur"]),l=()=>[i["aria-labelledby"],r.labelId(),i["aria-labelledby"]!=null&&s["aria-label"]!=null?s.id:void 0].filter(Boolean).join(" ")||void 0,a=()=>[i["aria-describedby"],r.descriptionId(),n.ariaDescribedBy()].filter(Boolean).join(" ")||void 0,[c,d]=q(!1),u=h=>{if(Fe(h,i.onChange),h.stopPropagation(),!c()){n.setSelectedValue(r.value());const p=h.target;p.checked=r.isSelected()}d(!1)},f=h=>{Fe(h,i.onFocus),r.setIsFocused(!0)},g=h=>{Fe(h,i.onBlur),r.setIsFocused(!1)};return Z(nn([()=>r.isSelected(),()=>r.value()],h=>{if(!h[0]&&h[1]===r.value())return;d(!0);const p=r.inputRef();p?.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!0})),p?.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}))},{defer:!0})),Z(()=>ee(r.registerInput(s.id))),v(_e,le({as:"input",ref(h){const p=rt(r.setInputRef,i.ref);typeof p=="function"&&p(h)},type:"radio",get name(){return t.name()},get value(){return r.value()},get checked(){return r.isSelected()},get required(){return t.isRequired()},get disabled(){return r.isDisabled()},get readonly(){return t.isReadOnly()},get style(){return yo({...Yl},i.style)},get"aria-labelledby"(){return l()},get"aria-describedby"(){return a()},onChange:u,onFocus:f,onBlur:g},()=>r.dataset(),s))}function Qu(e){const t=Dr(),n=be({id:t.generateId("label")},e);return Z(()=>ee(t.registerLabel(n.id))),v(_e,le({as:"label",get for(){return t.inputId()}},()=>t.dataset(),n))}function Wu(e){return v(Ep,le({as:"span"},e))}function Yu(e){let t;const n=`radiogroup-${St()}`,r=be({id:n,orientation:"vertical"},e),[o,i,s]=Ce(r,["ref","value","defaultValue","onChange","orientation","aria-labelledby","aria-describedby"],$p),[l,a]=Pr({value:()=>o.value,defaultValue:()=>o.defaultValue,onChange:h=>o.onChange?.(h)}),{formControlContext:c}=kp(i);Mp(()=>t,()=>a(o.defaultValue??""));const d=()=>c.getAriaLabelledBy(F(i.id),s["aria-label"],o["aria-labelledby"]),u=()=>c.getAriaDescribedBy(o["aria-describedby"]),f=h=>h===l(),g={ariaDescribedBy:u,isSelectedValue:f,setSelectedValue:h=>{if(!(c.isReadOnly()||c.isDisabled())&&(a(h),t))for(const p of t.querySelectorAll("[type='radio']")){const y=p;y.checked=f(y.value)}}};return v(Zl.Provider,{value:c,get children(){return v(Nu.Provider,{value:g,get children(){return v(_e,le({as:"div",ref(h){const p=rt(y=>t=y,o.ref);typeof p=="function"&&p(h)},role:"radiogroup",get id(){return F(i.id)},get"aria-invalid"(){return c.validationState()==="invalid"||void 0},get"aria-required"(){return c.isRequired()||void 0},get"aria-disabled"(){return c.isDisabled()||void 0},get"aria-readonly"(){return c.isReadOnly()||void 0},get"aria-orientation"(){return o.orientation},get"aria-labelledby"(){return d()},get"aria-describedby"(){return u()}},()=>c.dataset(),s))}})}})}var yy=Object.assign(Yu,{Description:Jl,ErrorMessage:eu,Item:Hu,ItemControl:Gu,ItemDescription:Ku,ItemIndicator:Uu,ItemInput:ju,ItemLabel:Qu,Label:Wu}),vy=class{collection;ref;collator;constructor(e,t,n){this.collection=e,this.ref=t,this.collator=n}getKeyBelow(e){let t=this.collection().getKeyAfter(e);for(;t!=null;){const n=this.collection().getItem(t);if(n&&n.type==="item"&&!n.disabled)return t;t=this.collection().getKeyAfter(t)}}getKeyAbove(e){let t=this.collection().getKeyBefore(e);for(;t!=null;){const n=this.collection().getItem(t);if(n&&n.type==="item"&&!n.disabled)return t;t=this.collection().getKeyBefore(t)}}getFirstKey(){let e=this.collection().getFirstKey();for(;e!=null;){const t=this.collection().getItem(e);if(t&&t.type==="item"&&!t.disabled)return e;e=this.collection().getKeyAfter(e)}}getLastKey(){let e=this.collection().getLastKey();for(;e!=null;){const t=this.collection().getItem(e);if(t&&t.type==="item"&&!t.disabled)return e;e=this.collection().getKeyBefore(e)}}getItem(e){return this.ref?.()?.querySelector(`[data-key="${e}"]`)??null}getKeyPageAbove(e){const t=this.ref?.();let n=this.getItem(e);if(!t||!n)return;const r=Math.max(0,n.offsetTop+n.offsetHeight-t.offsetHeight);let o=e;for(;o&&n&&n.offsetTop>r;)o=this.getKeyAbove(o),n=o!=null?this.getItem(o):null;return o}getKeyPageBelow(e){const t=this.ref?.();let n=this.getItem(e);if(!t||!n)return;const r=Math.min(t.scrollHeight,n.offsetTop-n.offsetHeight+t.offsetHeight);let o=e;for(;o&&n&&n.offsetTop<r;)o=this.getKeyBelow(o),n=o!=null?this.getItem(o):null;return o}getKeyForSearch(e,t){const n=this.collator?.();if(!n)return;let r=t!=null?this.getKeyBelow(t):this.getFirstKey();for(;r!=null;){const o=this.collection().getItem(r);if(o){const i=o.textValue.slice(0,e.length);if(o.textValue&&n.compare(i,e)===0)return r}r=this.getKeyBelow(r)}}};function by(e,t,n){const r=Qp({usage:"search",sensitivity:"base"}),o=_(()=>{const i=F(e.keyboardDelegate);return i||new vy(e.collection,t,r)});return tm({selectionManager:()=>F(e.selectionManager),keyboardDelegate:o,autoFocus:()=>F(e.autoFocus),deferAutoFocus:()=>F(e.deferAutoFocus),shouldFocusWrap:()=>F(e.shouldFocusWrap),disallowEmptySelection:()=>F(e.disallowEmptySelection),selectOnFocus:()=>F(e.selectOnFocus),disallowTypeAhead:()=>F(e.disallowTypeAhead),shouldUseVirtualFocus:()=>F(e.shouldUseVirtualFocus),allowsTabNavigation:()=>F(e.allowsTabNavigation),isVirtualized:()=>F(e.isVirtualized),scrollToKey:i=>F(e.scrollToKey)?.(i),orientation:()=>F(e.orientation)},t)}var ds="focusScope.autoFocusOnMount",fs="focusScope.autoFocusOnUnmount",Xu={bubbles:!1,cancelable:!0},Zu={stack:[],active(){return this.stack[0]},add(e){e!==this.active()&&this.active()?.pause(),this.stack=Bi(this.stack,e),this.stack.unshift(e)},remove(e){this.stack=Bi(this.stack,e),this.active()?.resume()}};function wy(e,t){const[n,r]=q(!1),o={pause(){r(!0)},resume(){r(!1)}};let i=null;const s=h=>e.onMountAutoFocus?.(h),l=h=>e.onUnmountAutoFocus?.(h),a=()=>Bt(t()),c=()=>{const h=a().createElement("span");return h.setAttribute("data-focus-trap",""),h.tabIndex=0,Object.assign(h.style,Yl),h},d=()=>{const h=t();return h?Hl(h,!0).filter(p=>!p.hasAttribute("data-focus-trap")):[]},u=()=>{const h=d();return h.length>0?h[0]:null},f=()=>{const h=d();return h.length>0?h[h.length-1]:null},g=()=>{const h=t();if(!h)return!1;const p=kr(h);return!p||$t(h,p)?!1:Kl(p)};Z(()=>{const h=t();if(!h)return;Zu.add(o);const p=kr(h);if(!$t(h,p)){const m=new CustomEvent(ds,Xu);h.addEventListener(ds,s),h.dispatchEvent(m),m.defaultPrevented||setTimeout(()=>{Xe(u()),kr(h)===p&&Xe(h)},0)}ee(()=>{h.removeEventListener(ds,s),setTimeout(()=>{const m=new CustomEvent(fs,Xu);g()&&m.preventDefault(),h.addEventListener(fs,l),h.dispatchEvent(m),m.defaultPrevented||Xe(p??a().body),h.removeEventListener(fs,l),Zu.remove(o)},0)})}),Z(()=>{const h=t();if(!h||!F(e.trapFocus)||n())return;const p=m=>{const b=m.target;b?.closest(`[${So}]`)||($t(h,b)?i=b:Xe(i))},y=m=>{const w=m.relatedTarget??kr(h);w?.closest(`[${So}]`)||$t(h,w)||Xe(i)};a().addEventListener("focusin",p),a().addEventListener("focusout",y),ee(()=>{a().removeEventListener("focusin",p),a().removeEventListener("focusout",y)})}),Z(()=>{const h=t();if(!h||!F(e.trapFocus)||n())return;const p=c();h.insertAdjacentElement("afterbegin",p);const y=c();h.insertAdjacentElement("beforeend",y);function m(w){const x=u(),S=f();w.relatedTarget===x?Xe(S):Xe(x)}p.addEventListener("focusin",m),y.addEventListener("focusin",m);const b=new MutationObserver(w=>{for(const x of w)x.previousSibling===y&&(y.remove(),h.insertAdjacentElement("beforeend",y)),x.nextSibling===p&&(p.remove(),h.insertAdjacentElement("afterbegin",p))});b.observe(h,{childList:!0,subtree:!1}),ee(()=>{p.removeEventListener("focusin",m),y.removeEventListener("focusin",m),p.remove(),y.remove(),b.disconnect()})})}var xy="data-live-announcer";function Sy(e){Z(()=>{F(e.isDisabled)||ee(Cy(F(e.targets),F(e.root)))})}var Tr=new WeakMap,Mt=[];function Cy(e,t=document.body){const n=new Set(e),r=new Set,o=a=>{for(const f of a.querySelectorAll(`[${xy}], [${So}]`))n.add(f);const c=f=>{if(n.has(f)||f.parentElement&&r.has(f.parentElement)&&f.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(const g of n)if(f.contains(g))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},d=document.createTreeWalker(a,NodeFilter.SHOW_ELEMENT,{acceptNode:c}),u=c(a);if(u===NodeFilter.FILTER_ACCEPT&&i(a),u!==NodeFilter.FILTER_REJECT){let f=d.nextNode();for(;f!=null;)i(f),f=d.nextNode()}},i=a=>{const c=Tr.get(a)??0;a.getAttribute("aria-hidden")==="true"&&c===0||(c===0&&a.setAttribute("aria-hidden","true"),r.add(a),Tr.set(a,c+1))};Mt.length&&Mt[Mt.length-1].disconnect(),o(t);const s=new MutationObserver(a=>{for(const c of a)if(!(c.type!=="childList"||c.addedNodes.length===0)&&![...n,...r].some(d=>d.contains(c.target))){for(const d of c.removedNodes)d instanceof Element&&(n.delete(d),r.delete(d));for(const d of c.addedNodes)(d instanceof HTMLElement||d instanceof SVGElement)&&(d.dataset.liveAnnouncer==="true"||d.dataset.reactAriaTopLayer==="true")?n.add(d):d instanceof Element&&o(d)}});s.observe(t,{childList:!0,subtree:!0});const l={observe(){s.observe(t,{childList:!0,subtree:!0})},disconnect(){s.disconnect()}};return Mt.push(l),()=>{s.disconnect();for(const a of r){const c=Tr.get(a);if(c==null)return;c===1?(a.removeAttribute("aria-hidden"),Tr.delete(a)):Tr.set(a,c-1)}l===Mt[Mt.length-1]?(Mt.pop(),Mt.length&&Mt[Mt.length-1].observe()):Mt.splice(Mt.indexOf(l),1)}}var Ao=new Map,$y=e=>{Z(()=>{const t=Ze(e.style)??{},n=Ze(e.properties)??[],r={};for(const i in t)r[i]=e.element.style[i];const o=Ao.get(e.key);o?o.activeCount++:Ao.set(e.key,{activeCount:1,originalStyles:r,properties:n.map(i=>i.key)}),Object.assign(e.element.style,e.style);for(const i of n)e.element.style.setProperty(i.key,i.value);ee(()=>{const i=Ao.get(e.key);if(i){if(i.activeCount!==1){i.activeCount--;return}Ao.delete(e.key);for(const[s,l]of Object.entries(i.originalStyles))e.element.style[s]=l;for(const s of i.properties)e.element.style.removeProperty(s);e.element.style.length===0&&e.element.removeAttribute("style"),e.cleanup?.()}})})},Ju=$y,ky=(e,t)=>{switch(t){case"x":return[e.clientWidth,e.scrollLeft,e.scrollWidth];case"y":return[e.clientHeight,e.scrollTop,e.scrollHeight]}},Ey=(e,t)=>{const n=getComputedStyle(e),r=t==="x"?n.overflowX:n.overflowY;return r==="auto"||r==="scroll"||e.tagName==="HTML"&&r==="visible"},My=(e,t,n)=>{const r=t==="x"&&window.getComputedStyle(e).direction==="rtl"?-1:1;let o=e,i=0,s=0,l=!1;do{const[a,c,d]=ky(o,t),u=d-a-r*c;(c!==0||u!==0)&&Ey(o,t)&&(i+=u,s+=c),o===(n??document.documentElement)?l=!0:o=o._$host??o.parentElement}while(o&&!l);return[i,s]},[ec,tc]=q([]),Py=e=>ec().indexOf(e)===ec().length-1,Ay=e=>{const t=le({element:null,enabled:!0,hideScrollbar:!0,preventScrollbarShift:!0,preventScrollbarShiftMode:"padding",restoreScrollPosition:!0,allowPinchZoom:!1},e),n=St();let r=[0,0],o=null,i=null;Z(()=>{Ze(t.enabled)&&(tc(c=>[...c,n]),ee(()=>{tc(c=>c.filter(d=>d!==n))}))}),Z(()=>{if(!Ze(t.enabled)||!Ze(t.hideScrollbar))return;const{body:c}=document,d=window.innerWidth-c.offsetWidth;if(Ze(t.preventScrollbarShift)){const u={overflow:"hidden"},f=[];d>0&&(Ze(t.preventScrollbarShiftMode)==="padding"?u.paddingRight=`calc(${window.getComputedStyle(c).paddingRight} + ${d}px)`:u.marginRight=`calc(${window.getComputedStyle(c).marginRight} + ${d}px)`,f.push({key:"--scrollbar-width",value:`${d}px`}));const g=window.scrollY,h=window.scrollX;Ju({key:"prevent-scroll",element:c,style:u,properties:f,cleanup:()=>{Ze(t.restoreScrollPosition)&&d>0&&window.scrollTo(h,g)}})}else Ju({key:"prevent-scroll",element:c,style:{overflow:"hidden"}})}),Z(()=>{!Py(n)||!Ze(t.enabled)||(document.addEventListener("wheel",l,{passive:!1}),document.addEventListener("touchstart",s,{passive:!1}),document.addEventListener("touchmove",a,{passive:!1}),ee(()=>{document.removeEventListener("wheel",l),document.removeEventListener("touchstart",s),document.removeEventListener("touchmove",a)}))});const s=c=>{r=nc(c),o=null,i=null},l=c=>{const d=c.target,u=Ze(t.element),f=Iy(c),g=Math.abs(f[0])>Math.abs(f[1])?"x":"y",h=g==="x"?f[0]:f[1],p=rc(d,g,h,u);let y;u&&gs(u,d)?y=!p:y=!0,y&&c.cancelable&&c.preventDefault()},a=c=>{const d=Ze(t.element),u=c.target;let f;if(c.touches.length===2)f=!Ze(t.allowPinchZoom);else{if(o==null||i===null){const g=nc(c).map((p,y)=>r[y]-p),h=Math.abs(g[0])>Math.abs(g[1])?"x":"y";o=h,i=h==="x"?g[0]:g[1]}if(u.type==="range")f=!1;else{const g=rc(u,o,i,d);d&&gs(d,u)?f=!g:f=!0}}f&&c.cancelable&&c.preventDefault()}},Iy=e=>[e.deltaX,e.deltaY],nc=e=>e.changedTouches[0]?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0],rc=(e,t,n,r)=>{const o=r!==null&&gs(r,e),[i,s]=My(e,t,o?r:void 0);return!(n>0&&Math.abs(i)<=1||n<0&&Math.abs(s)<1)},gs=(e,t)=>{if(e.contains(t))return!0;let n=t;for(;n;){if(n===e)return!0;n=n._$host??n.parentElement}return!1},Fy=Ay,_y=Fy,oc=Ue();function ic(){return je(oc)}function cn(){const e=ic();if(e===void 0)throw new Error("[kobalte]: `useMenuContext` must be used within a `Menu` component");return e}var sc=Ue();function hs(){const e=je(sc);if(e===void 0)throw new Error("[kobalte]: `useMenuItemContext` must be used within a `Menu.Item` component");return e}var ac=Ue();function Kt(){const e=je(ac);if(e===void 0)throw new Error("[kobalte]: `useMenuRootContext` must be used within a `MenuRoot` component");return e}function ps(e){let t;const n=Kt(),r=cn(),o=be({id:n.generateId(`item-${St()}`)},e),[i,s]=Ce(o,["ref","textValue","disabled","closeOnSelect","checked","indeterminate","onSelect","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),[l,a]=q(),[c,d]=q(),[u,f]=q(),g=()=>r.listState().selectionManager(),h=()=>s.id,p=()=>g().focusedKey()===h(),y=()=>{i.onSelect?.(),i.closeOnSelect&&setTimeout(()=>{r.close(!0)})};Np({getItem:()=>({ref:()=>t,type:"item",key:h(),textValue:i.textValue??u()?.textContent??t?.textContent??"",disabled:i.disabled??!1})});const m=du({key:h,selectionManager:g,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>i.disabled},()=>t),b=$=>{Fe($,i.onPointerMove),$.pointerType==="mouse"&&(i.disabled?r.onItemLeave($):(r.onItemEnter($),$.defaultPrevented||(Xe($.currentTarget),r.listState().selectionManager().setFocused(!0),r.listState().selectionManager().setFocusedKey(h()))))},w=$=>{Fe($,i.onPointerLeave),$.pointerType==="mouse"&&r.onItemLeave($)},x=$=>{Fe($,i.onPointerUp),!i.disabled&&$.button===0&&y()},S=$=>{if(Fe($,i.onKeyDown),!$.repeat&&!i.disabled)switch($.key){case"Enter":case" ":y();break}},I=_(()=>{if(i.indeterminate)return"mixed";if(i.checked!=null)return i.checked}),M=_(()=>({"data-indeterminate":i.indeterminate?"":void 0,"data-checked":i.checked&&!i.indeterminate?"":void 0,"data-disabled":i.disabled?"":void 0,"data-highlighted":p()?"":void 0})),C={isChecked:()=>i.checked,dataset:M,setLabelRef:f,generateId:$r(()=>s.id),registerLabel:kt(a),registerDescription:kt(d)};return v(sc.Provider,{value:C,get children(){return v(_e,le({as:"div",ref($){const E=rt(N=>t=N,i.ref);typeof E=="function"&&E($)},get tabIndex(){return m.tabIndex()},get"aria-checked"(){return I()},get"aria-disabled"(){return i.disabled},get"aria-labelledby"(){return l()},get"aria-describedby"(){return c()},get"data-key"(){return m.dataKey()},get onPointerDown(){return He([i.onPointerDown,m.onPointerDown])},get onPointerUp(){return He([x,m.onPointerUp])},get onClick(){return He([i.onClick,m.onClick])},get onKeyDown(){return He([S,m.onKeyDown])},get onMouseDown(){return He([i.onMouseDown,m.onMouseDown])},get onFocus(){return He([i.onFocus,m.onFocus])},onPointerMove:b,onPointerLeave:w},M,s))}})}function lc(e){const t=be({closeOnSelect:!1},e),[n,r]=Ce(t,["checked","defaultChecked","onChange","onSelect"]),o=Fp({isSelected:()=>n.checked,defaultIsSelected:()=>n.defaultChecked,onSelectedChange:s=>n.onChange?.(s),isDisabled:()=>r.disabled});return v(ps,le({role:"menuitemcheckbox",get checked(){return o.isSelected()},onSelect:()=>{n.onSelect?.(),o.toggle()}},r))}var Oy=Ue();function Io(){return je(Oy)}var Rr={next:(e,t)=>e==="ltr"?t==="horizontal"?"ArrowRight":"ArrowDown":t==="horizontal"?"ArrowLeft":"ArrowUp",previous:(e,t)=>Rr.next(e==="ltr"?"rtl":"ltr",t)},uc={first:e=>e==="horizontal"?"ArrowDown":"ArrowRight",last:e=>e==="horizontal"?"ArrowUp":"ArrowLeft"};function cc(e){const t=Kt(),n=cn(),r=Io(),{direction:o}=vn(),i=be({id:t.generateId("trigger")},e),[s,l]=Ce(i,["ref","id","disabled","onPointerDown","onClick","onKeyDown","onMouseOver","onFocus"]);let a=()=>t.value();r!==void 0&&(a=()=>t.value()??s.id,r.lastValue()===void 0&&r.setLastValue(a));const c=wo(()=>n.triggerRef(),()=>"button"),d=_(()=>c()==="a"&&n.triggerRef()?.getAttribute("href")!=null);Z(nn(()=>r?.value(),m=>{d()&&m===a()&&n.triggerRef()?.focus()}));const u=()=>{r!==void 0?n.isOpen()?r.value()===a()&&r.closeMenu():(r.autoFocusMenu()||r.setAutoFocusMenu(!0),n.open(!1)):n.toggle(!0)},f=m=>{Fe(m,s.onPointerDown),m.currentTarget.dataset.pointerType=m.pointerType,!s.disabled&&m.pointerType!=="touch"&&m.button===0&&u()},g=m=>{Fe(m,s.onClick),s.disabled||m.currentTarget.dataset.pointerType==="touch"&&u()},h=m=>{if(Fe(m,s.onKeyDown),!s.disabled){if(d())switch(m.key){case"Enter":case" ":return}switch(m.key){case"Enter":case" ":case uc.first(t.orientation()):m.stopPropagation(),m.preventDefault(),Cp(m.currentTarget),n.open("first"),r?.setAutoFocusMenu(!0),r?.setValue(a);break;case uc.last(t.orientation()):m.stopPropagation(),m.preventDefault(),n.open("last");break;case Rr.next(o(),t.orientation()):if(r===void 0)break;m.stopPropagation(),m.preventDefault(),r.nextMenu();break;case Rr.previous(o(),t.orientation()):if(r===void 0)break;m.stopPropagation(),m.preventDefault(),r.previousMenu();break}}},p=m=>{Fe(m,s.onMouseOver),n.triggerRef()?.dataset.pointerType!=="touch"&&!s.disabled&&r!==void 0&&r.value()!==void 0&&r.setValue(a)},y=m=>{Fe(m,s.onFocus),r!==void 0&&m.currentTarget.dataset.pointerType!=="touch"&&r.setValue(a)};return Z(()=>ee(n.registerTriggerId(s.id))),v(Zi,le({ref(m){const b=rt(n.setTriggerRef,s.ref);typeof b=="function"&&b(m)},get"data-kb-menu-value-trigger"(){return t.value()},get id(){return s.id},get disabled(){return s.disabled},"aria-haspopup":"true",get"aria-expanded"(){return n.isOpen()},get"aria-controls"(){return Le(()=>!!n.isOpen())()?n.contentId():void 0},get"data-highlighted"(){return a()!==void 0&&r?.value()===a()?!0:void 0},get tabIndex(){return r!==void 0?r.value()===a()||r.lastValue()===a()?0:-1:void 0},onPointerDown:f,onMouseOver:p,onClick:g,onKeyDown:h,onFocus:y,role:r!==void 0?"menuitem":void 0},()=>n.dataset(),l))}var Dy=Ue();function dc(){return je(Dy)}function fc(e){let t;const n=Kt(),r=cn(),o=Io(),i=dc(),{direction:s}=vn(),l=be({id:n.generateId(`content-${St()}`)},e),[a,c]=Ce(l,["ref","id","style","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeyDown","onFocusOutside","onPointerEnter","onPointerMove","onKeyDown","onMouseDown","onFocusIn","onFocusOut"]);let d=0;const u=()=>r.parentMenuContext()==null&&o===void 0&&n.isModal(),f=by({selectionManager:r.listState().selectionManager,collection:r.listState().collection,autoFocus:r.autoFocus,deferAutoFocus:!0,shouldFocusWrap:!0,disallowTypeAhead:()=>!r.listState().selectionManager().isFocused(),orientation:()=>n.orientation()==="horizontal"?"vertical":"horizontal"},()=>t);wy({trapFocus:()=>u()&&r.isOpen(),onMountAutoFocus:w=>{o===void 0&&a.onOpenAutoFocus?.(w)},onUnmountAutoFocus:a.onCloseAutoFocus},()=>t);const g=w=>{if($t(w.currentTarget,w.target)&&(w.key==="Tab"&&r.isOpen()&&w.preventDefault(),o!==void 0&&w.currentTarget.getAttribute("aria-haspopup")!=="true"))switch(w.key){case Rr.next(s(),n.orientation()):w.stopPropagation(),w.preventDefault(),r.close(!0),o.setAutoFocusMenu(!0),o.nextMenu();break;case Rr.previous(s(),n.orientation()):if(w.currentTarget.hasAttribute("data-closed"))break;w.stopPropagation(),w.preventDefault(),r.close(!0),o.setAutoFocusMenu(!0),o.previousMenu();break}},h=w=>{a.onEscapeKeyDown?.(w),o?.setAutoFocusMenu(!1),r.close(!0)},p=w=>{a.onFocusOutside?.(w),n.isModal()&&w.preventDefault()},y=w=>{Fe(w,a.onPointerEnter),r.isOpen()&&(r.parentMenuContext()?.listState().selectionManager().setFocused(!1),r.parentMenuContext()?.listState().selectionManager().setFocusedKey(void 0))},m=w=>{if(Fe(w,a.onPointerMove),w.pointerType!=="mouse")return;const x=w.target,S=d!==w.clientX;$t(w.currentTarget,x)&&S&&(r.setPointerDir(w.clientX>d?"right":"left"),d=w.clientX)};Z(()=>ee(r.registerContentId(a.id)));const b={ref:rt(w=>{r.setContentRef(w),t=w},a.ref),role:"menu",get id(){return a.id},get tabIndex(){return f.tabIndex()},get"aria-labelledby"(){return r.triggerId()},onKeyDown:He([a.onKeyDown,f.onKeyDown,g]),onMouseDown:He([a.onMouseDown,f.onMouseDown]),onFocusIn:He([a.onFocusIn,f.onFocusIn]),onFocusOut:He([a.onFocusOut,f.onFocusOut]),onPointerEnter:y,onPointerMove:m,get"data-orientation"(){return n.orientation()}};return v(W,{get when(){return r.contentPresent()},get children(){return v(W,{get when(){return i===void 0||r.parentMenuContext()!=null},get fallback(){return v(_e,le({as:"div"},()=>r.dataset(),b,c))},get children(){return v(Tu.Positioner,{get children(){return v(my,le({get disableOutsidePointerEvents(){return Le(()=>!!u())()&&r.isOpen()},get excludedElements(){return[r.triggerRef]},bypassTopMostLayerCheck:!0,get style(){return yo({"--kb-menu-content-transform-origin":"var(--kb-popper-content-transform-origin)",position:"relative"},a.style)},onEscapeKeyDown:h,onFocusOutside:p,get onDismiss(){return r.close}},()=>r.dataset(),b,c))}})}})}})}function Ty(e){let t;const n=Kt(),r=cn(),[o,i]=Ce(e,["ref"]);return _y({element:()=>t??null,enabled:()=>r.contentPresent()&&n.preventScroll()}),v(fc,le({ref(s){const l=rt(a=>{t=a},o.ref);typeof l=="function"&&l(s)}},i))}var gc=Ue();function Ry(){const e=je(gc);if(e===void 0)throw new Error("[kobalte]: `useMenuGroupContext` must be used within a `Menu.Group` component");return e}function ms(e){const t=Kt(),n=be({id:t.generateId(`group-${St()}`)},e),[r,o]=q(),i={generateId:$r(()=>n.id),registerLabelId:kt(o)};return v(gc.Provider,{value:i,get children(){return v(_e,le({as:"div",role:"group",get"aria-labelledby"(){return r()}},n))}})}function hc(e){const t=Ry(),n=be({id:t.generateId("label")},e),[r,o]=Ce(n,["id"]);return Z(()=>ee(t.registerLabelId(r.id))),v(_e,le({as:"span",get id(){return r.id},"aria-hidden":"true"},o))}function pc(e){const t=cn(),n=be({children:"▼"},e);return v(_e,le({as:"span","aria-hidden":"true"},()=>t.dataset(),n))}function mc(e){return v(ps,le({role:"menuitem",closeOnSelect:!0},e))}function yc(e){const t=hs(),n=be({id:t.generateId("description")},e),[r,o]=Ce(n,["id"]);return Z(()=>ee(t.registerDescription(r.id))),v(_e,le({as:"div",get id(){return r.id}},()=>t.dataset(),o))}function vc(e){const t=hs(),n=be({id:t.generateId("indicator")},e),[r,o]=Ce(n,["forceMount"]);return v(W,{get when(){return r.forceMount||t.isChecked()},get children(){return v(_e,le({as:"div"},()=>t.dataset(),o))}})}function bc(e){const t=hs(),n=be({id:t.generateId("label")},e),[r,o]=Ce(n,["ref","id"]);return Z(()=>ee(t.registerLabel(r.id))),v(_e,le({as:"div",ref(i){const s=rt(t.setLabelRef,r.ref);typeof s=="function"&&s(i)},get id(){return r.id}},()=>t.dataset(),o))}function wc(e){const t=cn();return v(W,{get when(){return t.contentPresent()},get children(){return v(Sa,e)}})}var xc=Ue();function Ly(){const e=je(xc);if(e===void 0)throw new Error("[kobalte]: `useMenuRadioGroupContext` must be used within a `Menu.RadioGroup` component");return e}function Sc(e){const n=Kt().generateId(`radiogroup-${St()}`),r=be({id:n},e),[o,i]=Ce(r,["value","defaultValue","onChange","disabled"]),[s,l]=Pr({value:()=>o.value,defaultValue:()=>o.defaultValue,onChange:c=>o.onChange?.(c)}),a={isDisabled:()=>o.disabled,isSelectedValue:c=>c===s(),setSelectedValue:l};return v(xc.Provider,{value:a,get children(){return v(ms,i)}})}function Cc(e){const t=Ly(),n=be({closeOnSelect:!1},e),[r,o]=Ce(n,["value","onSelect"]);return v(ps,le({role:"menuitemradio",get checked(){return t.isSelectedValue(r.value)},onSelect:()=>{r.onSelect?.(),t.setSelectedValue(r.value)}},o))}function qy(e,t,n){const r=e.split("-")[0],o=n.getBoundingClientRect(),i=[],s=t.clientX,l=t.clientY;switch(r){case"top":i.push([s,l+5]),i.push([o.left,o.bottom]),i.push([o.left,o.top]),i.push([o.right,o.top]),i.push([o.right,o.bottom]);break;case"right":i.push([s-5,l]),i.push([o.left,o.top]),i.push([o.right,o.top]),i.push([o.right,o.bottom]),i.push([o.left,o.bottom]);break;case"bottom":i.push([s,l-5]),i.push([o.right,o.top]),i.push([o.right,o.bottom]),i.push([o.left,o.bottom]),i.push([o.left,o.top]);break;case"left":i.push([s+5,l]),i.push([o.right,o.bottom]),i.push([o.left,o.bottom]),i.push([o.left,o.top]),i.push([o.right,o.top]);break}return i}function zy(e,t){return t?Sp([e.clientX,e.clientY],t):!1}function $c(e){const t=Kt(),n=ru(),r=ic(),o=Io(),i=dc(),s=be({placement:t.orientation()==="horizontal"?"bottom-start":"right-start"},e),[l,a]=Ce(s,["open","defaultOpen","onOpenChange"]);let c=0,d=null,u="right";const[f,g]=q(),[h,p]=q(),[y,m]=q(),[b,w]=q(),[x,S]=q(!0),[I,M]=q(a.placement),[C,$]=q([]),[E,N]=q([]),{DomCollectionProvider:H}=zp({items:E,onItemsChange:N}),J=zu({open:()=>l.open,defaultOpen:()=>l.defaultOpen,onOpenChange:B=>l.onOpenChange?.(B)}),{present:ue}=gu({show:()=>t.forceMount()||J.isOpen(),element:()=>b()??null}),ge=rm({selectionMode:"none",dataSource:E}),j=B=>{S(B),J.open()},te=(B=!1)=>{J.close(),B&&r&&r.close(!0)},z=B=>{S(B),J.toggle()},pe=()=>{const B=b();B&&(Xe(B),ge.selectionManager().setFocused(!0),ge.selectionManager().setFocusedKey(void 0))},me=()=>{i!=null?setTimeout(()=>pe()):pe()},Ie=B=>{$(Ae=>[...Ae,B]);const Te=r?.registerNestedMenu(B);return()=>{$(Ae=>Bi(Ae,B)),Te?.()}},$e=B=>u===d?.side&&zy(B,d?.area),G=B=>{$e(B)&&B.preventDefault()},k=B=>{$e(B)||me()},ne=B=>{$e(B)&&B.preventDefault()};Sy({isDisabled:()=>!(r==null&&J.isOpen()&&t.isModal()),targets:()=>[b(),...C()].filter(Boolean)}),Z(()=>{const B=b();if(!B||!r)return;const Te=r.registerNestedMenu(B);ee(()=>{Te()})}),Z(()=>{r===void 0&&o?.registerMenu(t.value(),[b(),...C()])}),Z(()=>{r!==void 0||o===void 0||(o.value()===t.value()?(y()?.focus(),o.autoFocusMenu()&&j(!0)):te())}),Z(()=>{r!==void 0||o===void 0||J.isOpen()&&o.setValue(t.value())}),ee(()=>{r===void 0&&o?.unregisterMenu(t.value())});const ye={dataset:_(()=>({"data-expanded":J.isOpen()?"":void 0,"data-closed":J.isOpen()?void 0:""})),isOpen:J.isOpen,contentPresent:ue,nestedMenus:C,currentPlacement:I,pointerGraceTimeoutId:()=>c,autoFocus:x,listState:()=>ge,parentMenuContext:()=>r,triggerRef:y,contentRef:b,triggerId:f,contentId:h,setTriggerRef:m,setContentRef:w,open:j,close:te,toggle:z,focusContent:me,onItemEnter:G,onItemLeave:k,onTriggerLeave:ne,setPointerDir:B=>u=B,setPointerGraceTimeoutId:B=>c=B,setPointerGraceIntent:B=>d=B,registerNestedMenu:Ie,registerItemToParentDomCollection:n?.registerItem,registerTriggerId:kt(g),registerContentId:kt(p)};return v(H,{get children(){return v(oc.Provider,{value:ye,get children(){return v(W,{when:i===void 0,get fallback(){return a.children},get children(){return v(Tu,le({anchorRef:y,contentRef:b,onCurrentPlacementChange:M},a))}})}})}})}function kc(e){const{direction:t}=vn();return v($c,le({get placement(){return t()==="rtl"?"left-start":"right-start"},flip:!0},e))}var Ny={close:(e,t)=>e==="ltr"?[t==="horizontal"?"ArrowLeft":"ArrowUp"]:[t==="horizontal"?"ArrowRight":"ArrowDown"]};function Ec(e){const t=cn(),n=Kt(),[r,o]=Ce(e,["onFocusOutside","onKeyDown"]),{direction:i}=vn();return v(fc,le({onOpenAutoFocus:d=>{d.preventDefault()},onCloseAutoFocus:d=>{d.preventDefault()},onFocusOutside:d=>{r.onFocusOutside?.(d);const u=d.target;$t(t.triggerRef(),u)||t.close()},onKeyDown:d=>{Fe(d,r.onKeyDown);const u=$t(d.currentTarget,d.target),f=Ny.close(i(),n.orientation()).includes(d.key),g=t.parentMenuContext()!=null;u&&f&&g&&(t.close(),Xe(t.triggerRef()))}},o))}var Mc=["Enter"," "],Vy={open:(e,t)=>e==="ltr"?[...Mc,t==="horizontal"?"ArrowRight":"ArrowDown"]:[...Mc,t==="horizontal"?"ArrowLeft":"ArrowUp"]};function Pc(e){let t;const n=Kt(),r=cn(),o=be({id:n.generateId(`sub-trigger-${St()}`)},e),[i,s]=Ce(o,["ref","id","textValue","disabled","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]);let l=null;const a=()=>{l&&window.clearTimeout(l),l=null},{direction:c}=vn(),d=()=>i.id,u=()=>{const w=r.parentMenuContext();if(w==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");return w.listState().selectionManager()},f=()=>r.listState().collection(),g=()=>u().focusedKey()===d(),h=du({key:d,selectionManager:u,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>i.disabled},()=>t),p=w=>{Fe(w,i.onClick),!r.isOpen()&&!i.disabled&&r.open(!0)},y=w=>{if(Fe(w,i.onPointerMove),w.pointerType!=="mouse")return;const x=r.parentMenuContext();if(x?.onItemEnter(w),!w.defaultPrevented){if(i.disabled){x?.onItemLeave(w);return}!r.isOpen()&&!l&&(r.parentMenuContext()?.setPointerGraceIntent(null),l=window.setTimeout(()=>{r.open(!1),a()},100)),x?.onItemEnter(w),w.defaultPrevented||(r.listState().selectionManager().isFocused()&&(r.listState().selectionManager().setFocused(!1),r.listState().selectionManager().setFocusedKey(void 0)),Xe(w.currentTarget),x?.listState().selectionManager().setFocused(!0),x?.listState().selectionManager().setFocusedKey(d()))}},m=w=>{if(Fe(w,i.onPointerLeave),w.pointerType!=="mouse")return;a();const x=r.parentMenuContext(),S=r.contentRef();if(S){x?.setPointerGraceIntent({area:qy(r.currentPlacement(),w,S),side:r.currentPlacement().split("-")[0]}),window.clearTimeout(x?.pointerGraceTimeoutId());const I=window.setTimeout(()=>{x?.setPointerGraceIntent(null)},300);x?.setPointerGraceTimeoutId(I)}else{if(x?.onTriggerLeave(w),w.defaultPrevented)return;x?.setPointerGraceIntent(null)}x?.onItemLeave(w)},b=w=>{Fe(w,i.onKeyDown),!w.repeat&&(i.disabled||Vy.open(c(),n.orientation()).includes(w.key)&&(w.stopPropagation(),w.preventDefault(),u().setFocused(!1),u().setFocusedKey(void 0),r.isOpen()||r.open("first"),r.focusContent(),r.listState().selectionManager().setFocused(!0),r.listState().selectionManager().setFocusedKey(f().getFirstKey())))};return Z(()=>{if(r.registerItemToParentDomCollection==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");const w=r.registerItemToParentDomCollection({ref:()=>t,type:"item",key:d(),textValue:i.textValue??t?.textContent??"",disabled:i.disabled??!1});ee(w)}),Z(nn(()=>r.parentMenuContext()?.pointerGraceTimeoutId(),w=>{ee(()=>{window.clearTimeout(w),r.parentMenuContext()?.setPointerGraceIntent(null)})})),Z(()=>ee(r.registerTriggerId(i.id))),ee(()=>{a()}),v(_e,le({as:"div",ref(w){const x=rt(S=>{r.setTriggerRef(S),t=S},i.ref);typeof x=="function"&&x(w)},get id(){return i.id},role:"menuitem",get tabIndex(){return h.tabIndex()},"aria-haspopup":"true",get"aria-expanded"(){return r.isOpen()},get"aria-controls"(){return Le(()=>!!r.isOpen())()?r.contentId():void 0},get"aria-disabled"(){return i.disabled},get"data-key"(){return h.dataKey()},get"data-highlighted"(){return g()?"":void 0},get"data-disabled"(){return i.disabled?"":void 0},get onPointerDown(){return He([i.onPointerDown,h.onPointerDown])},get onPointerUp(){return He([i.onPointerUp,h.onPointerUp])},get onClick(){return He([p,h.onClick])},get onKeyDown(){return He([b,h.onKeyDown])},get onMouseDown(){return He([i.onMouseDown,h.onMouseDown])},get onFocus(){return He([i.onFocus,h.onFocus])},onPointerMove:y,onPointerLeave:m},()=>r.dataset(),s))}function By(e){const t=Io(),n=`menu-${St()}`,r=be({id:n,modal:!0},e),[o,i]=Ce(r,["id","modal","preventScroll","forceMount","open","defaultOpen","onOpenChange","value","orientation"]),s=zu({open:()=>o.open,defaultOpen:()=>o.defaultOpen,onOpenChange:a=>o.onOpenChange?.(a)}),l={isModal:()=>o.modal??!0,preventScroll:()=>o.preventScroll??l.isModal(),forceMount:()=>o.forceMount??!1,generateId:$r(()=>o.id),value:()=>o.value,orientation:()=>o.orientation??t?.orientation()??"horizontal"};return v(ac.Provider,{value:l,get children(){return v($c,le({get open(){return s.isOpen()},get onOpenChange(){return s.setIsOpen}},i))}})}var Hy={};xo(Hy,{Root:()=>Fo,Separator:()=>Gy});function Fo(e){let t;const n=be({orientation:"horizontal"},e),[r,o]=Ce(n,["ref","orientation"]),i=wo(()=>t,()=>"hr");return v(_e,le({as:"hr",ref(s){const l=rt(a=>t=a,r.ref);typeof l=="function"&&l(s)},get role(){return i()!=="hr"?"separator":void 0},get"aria-orientation"(){return r.orientation==="vertical"?"vertical":void 0},get"data-orientation"(){return r.orientation}},o))}var Gy=Fo,Pe={};xo(Pe,{Arrow:()=>cs,CheckboxItem:()=>lc,Content:()=>Ac,DropdownMenu:()=>Ky,Group:()=>ms,GroupLabel:()=>hc,Icon:()=>pc,Item:()=>mc,ItemDescription:()=>yc,ItemIndicator:()=>vc,ItemLabel:()=>bc,Portal:()=>wc,RadioGroup:()=>Sc,RadioItem:()=>Cc,Root:()=>Ic,Separator:()=>Fo,Sub:()=>kc,SubContent:()=>Ec,SubTrigger:()=>Pc,Trigger:()=>cc});function Ac(e){const t=Kt(),n=cn(),[r,o]=Ce(e,["onCloseAutoFocus","onInteractOutside"]);let i=!1;return v(Ty,le({onCloseAutoFocus:a=>{r.onCloseAutoFocus?.(a),i||Xe(n.triggerRef()),i=!1,a.preventDefault()},onInteractOutside:a=>{r.onInteractOutside?.(a),(!t.isModal()||a.detail.isContextMenu)&&(i=!0)}},o))}function Ic(e){const t=`dropdownmenu-${St()}`,n=be({id:t},e);return v(By,n)}var Ky=Object.assign(Ic,{Arrow:cs,CheckboxItem:lc,Content:Ac,Group:ms,GroupLabel:hc,Icon:pc,Item:mc,ItemDescription:yc,ItemIndicator:vc,ItemLabel:bc,Portal:wc,RadioGroup:Sc,RadioItem:Cc,Separator:Fo,Sub:kc,SubContent:Ec,SubTrigger:Pc,Trigger:cc}),P={colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000000",white:"#ffffff",neutral:{50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#344054",800:"#1d2939",900:"#101828"},darkGray:{50:"#525c7a",100:"#49536e",200:"#414962",300:"#394056",400:"#313749",500:"#292e3d",600:"#212530",700:"#191c24",800:"#111318",900:"#0b0d10"},gray:{50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#344054",800:"#1d2939",900:"#101828"},blue:{25:"#F5FAFF",50:"#EFF8FF",100:"#D1E9FF",200:"#B2DDFF",300:"#84CAFF",400:"#53B1FD",500:"#2E90FA",600:"#1570EF",700:"#175CD3",800:"#1849A9",900:"#194185"},green:{25:"#F6FEF9",50:"#ECFDF3",100:"#D1FADF",200:"#A6F4C5",300:"#6CE9A6",400:"#32D583",500:"#12B76A",600:"#039855",700:"#027A48",800:"#05603A",900:"#054F31"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},yellow:{25:"#FFFCF5",50:"#FFFAEB",100:"#FEF0C7",200:"#FEDF89",300:"#FEC84B",400:"#FDB022",500:"#F79009",600:"#DC6803",700:"#B54708",800:"#93370D",900:"#7A2E0E"},purple:{25:"#FAFAFF",50:"#F4F3FF",100:"#EBE9FE",200:"#D9D6FE",300:"#BDB4FE",400:"#9B8AFB",500:"#7A5AF8",600:"#6938EF",700:"#5925DC",800:"#4A1FB8",900:"#3E1C96"},teal:{25:"#F6FEFC",50:"#F0FDF9",100:"#CCFBEF",200:"#99F6E0",300:"#5FE9D0",400:"#2ED3B7",500:"#15B79E",600:"#0E9384",700:"#107569",800:"#125D56",900:"#134E48"},pink:{25:"#fdf2f8",50:"#fce7f3",100:"#fbcfe8",200:"#f9a8d4",300:"#f472b6",400:"#ec4899",500:"#db2777",600:"#be185d",700:"#9d174d",800:"#831843",900:"#500724"},cyan:{25:"#ecfeff",50:"#cffafe",100:"#a5f3fc",200:"#67e8f9",300:"#22d3ee",400:"#06b6d4",500:"#0891b2",600:"#0e7490",700:"#155e75",800:"#164e63",900:"#083344"}},alpha:{90:"e5",80:"cc"},font:{size:{xs:"calc(var(--tsqd-font-size) * 0.75)",sm:"calc(var(--tsqd-font-size) * 0.875)",md:"var(--tsqd-font-size)"},lineHeight:{xs:"calc(var(--tsqd-font-size) * 1)",sm:"calc(var(--tsqd-font-size) * 1.25)",md:"calc(var(--tsqd-font-size) * 1.5)"},weight:{medium:"500",semibold:"600",bold:"700"}},border:{radius:{xs:"calc(var(--tsqd-font-size) * 0.125)",sm:"calc(var(--tsqd-font-size) * 0.25)",full:"9999px"}},size:{.25:"calc(var(--tsqd-font-size) * 0.0625)",.5:"calc(var(--tsqd-font-size) * 0.125)",1:"calc(var(--tsqd-font-size) * 0.25)",1.5:"calc(var(--tsqd-font-size) * 0.375)",2:"calc(var(--tsqd-font-size) * 0.5)",2.5:"calc(var(--tsqd-font-size) * 0.625)",3:"calc(var(--tsqd-font-size) * 0.75)",3.5:"calc(var(--tsqd-font-size) * 0.875)",4:"calc(var(--tsqd-font-size) * 1)",4.5:"calc(var(--tsqd-font-size) * 1.125)",5:"calc(var(--tsqd-font-size) * 1.25)",6:"calc(var(--tsqd-font-size) * 1.5)",6.5:"calc(var(--tsqd-font-size) * 1.625)",14:"calc(var(--tsqd-font-size) * 3.5)"},shadow:{xs:(e="rgb(0 0 0 / 0.1)")=>"0 1px 2px 0 rgb(0 0 0 / 0.05)",sm:(e="rgb(0 0 0 / 0.1)")=>`0 1px 3px 0 ${e}, 0 1px 2px -1px ${e}`,md:(e="rgb(0 0 0 / 0.1)")=>`0 4px 6px -1px ${e}, 0 2px 4px -2px ${e}`,lg:(e="rgb(0 0 0 / 0.1)")=>`0 10px 15px -3px ${e}, 0 4px 6px -4px ${e}`,xl:(e="rgb(0 0 0 / 0.1)")=>`0 20px 25px -5px ${e}, 0 8px 10px -6px ${e}`,"2xl":(e="rgb(0 0 0 / 0.25)")=>`0 25px 50px -12px ${e}`,inner:(e="rgb(0 0 0 / 0.05)")=>`inset 0 2px 4px 0 ${e}`,none:()=>"none"}},Uy=V('<svg width=14 height=14 viewBox="0 0 14 14"fill=none xmlns=http://www.w3.org/2000/svg><path d="M13 13L9.00007 9M10.3333 5.66667C10.3333 8.244 8.244 10.3333 5.66667 10.3333C3.08934 10.3333 1 8.244 1 5.66667C1 3.08934 3.08934 1 5.66667 1C8.244 1 10.3333 3.08934 10.3333 5.66667Z"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>'),jy=V('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9 3H15M3 6H21M19 6L18.2987 16.5193C18.1935 18.0975 18.1409 18.8867 17.8 19.485C17.4999 20.0118 17.0472 20.4353 16.5017 20.6997C15.882 21 15.0911 21 13.5093 21H10.4907C8.90891 21 8.11803 21 7.49834 20.6997C6.95276 20.4353 6.50009 20.0118 6.19998 19.485C5.85911 18.8867 5.8065 18.0975 5.70129 16.5193L5 6M10 10.5V15.5M14 10.5V15.5"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),Qy=V('<svg width=10 height=6 viewBox="0 0 10 6"fill=none xmlns=http://www.w3.org/2000/svg><path d="M1 1L5 5L9 1"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>'),Wy=V('<svg width=12 height=12 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 13.3333V2.66667M8 2.66667L4 6.66667M8 2.66667L12 6.66667"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>'),ys=V('<svg width=12 height=12 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 2.66667V13.3333M8 13.3333L4 9.33333M8 13.3333L12 9.33333"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>'),Yy=V('<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M12 2v2m0 16v2M4 12H2m4.314-5.686L4.9 4.9m12.786 1.414L19.1 4.9M6.314 17.69 4.9 19.104m12.786-1.414 1.414 1.414M22 12h-2m-3 0a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),Xy=V('<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M22 15.844a10.424 10.424 0 0 1-4.306.925c-5.779 0-10.463-4.684-10.463-10.462 0-1.536.33-2.994.925-4.307A10.464 10.464 0 0 0 2 11.538C2 17.316 6.684 22 12.462 22c4.243 0 7.896-2.526 9.538-6.156Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),Zy=V('<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 21h8m-4-4v4m-5.2-4h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 14.72 22 13.88 22 12.2V7.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 3 18.88 3 17.2 3H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 5.28 2 6.12 2 7.8v4.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 17 5.12 17 6.8 17Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),Jy=V('<svg stroke=currentColor fill=currentColor stroke-width=0 viewBox="0 0 24 24"height=1em width=1em xmlns=http://www.w3.org/2000/svg><path fill=none d="M0 0h24v24H0z"></path><path d="M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3a4.237 4.237 0 00-6 0zm-4-4l2 2a7.074 7.074 0 0110 0l2-2C15.14 9.14 8.87 9.14 5 13z">'),ev=V('<svg stroke-width=0 viewBox="0 0 24 24"height=1em width=1em xmlns=http://www.w3.org/2000/svg><path fill=none d="M24 .01c0-.01 0-.01 0 0L0 0v24h24V.01zM0 0h24v24H0V0zm0 0h24v24H0V0z"></path><path d="M22.99 9C19.15 5.16 13.8 3.76 8.84 4.78l2.52 2.52c3.47-.17 6.99 1.05 9.63 3.7l2-2zm-4 4a9.793 9.793 0 00-4.49-2.56l3.53 3.53.96-.97zM2 3.05L5.07 6.1C3.6 6.82 2.22 7.78 1 9l1.99 2c1.24-1.24 2.67-2.16 4.2-2.77l2.24 2.24A9.684 9.684 0 005 13v.01L6.99 15a7.042 7.042 0 014.92-2.06L18.98 20l1.27-1.26L3.29 1.79 2 3.05zM9 17l3 3 3-3a4.237 4.237 0 00-6 0z">'),tv=V('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9.3951 19.3711L9.97955 20.6856C10.1533 21.0768 10.4368 21.4093 10.7958 21.6426C11.1547 21.8759 11.5737 22.0001 12.0018 22C12.4299 22.0001 12.8488 21.8759 13.2078 21.6426C13.5667 21.4093 13.8503 21.0768 14.024 20.6856L14.6084 19.3711C14.8165 18.9047 15.1664 18.5159 15.6084 18.26C16.0532 18.0034 16.5678 17.8941 17.0784 17.9478L18.5084 18.1C18.9341 18.145 19.3637 18.0656 19.7451 17.8713C20.1265 17.6771 20.4434 17.3763 20.6573 17.0056C20.8715 16.635 20.9735 16.2103 20.9511 15.7829C20.9286 15.3555 20.7825 14.9438 20.5307 14.5978L19.684 13.4344C19.3825 13.0171 19.2214 12.5148 19.224 12C19.2239 11.4866 19.3865 10.9864 19.6884 10.5711L20.5351 9.40778C20.787 9.06175 20.933 8.65007 20.9555 8.22267C20.978 7.79528 20.8759 7.37054 20.6618 7C20.4479 6.62923 20.131 6.32849 19.7496 6.13423C19.3681 5.93997 18.9386 5.86053 18.5129 5.90556L17.0829 6.05778C16.5722 6.11141 16.0577 6.00212 15.6129 5.74556C15.17 5.48825 14.82 5.09736 14.6129 4.62889L14.024 3.31444C13.8503 2.92317 13.5667 2.59072 13.2078 2.3574C12.8488 2.12408 12.4299 1.99993 12.0018 2C11.5737 1.99993 11.1547 2.12408 10.7958 2.3574C10.4368 2.59072 10.1533 2.92317 9.97955 3.31444L9.3951 4.62889C9.18803 5.09736 8.83798 5.48825 8.3951 5.74556C7.95032 6.00212 7.43577 6.11141 6.9251 6.05778L5.49066 5.90556C5.06499 5.86053 4.6354 5.93997 4.25397 6.13423C3.87255 6.32849 3.55567 6.62923 3.34177 7C3.12759 7.37054 3.02555 7.79528 3.04804 8.22267C3.07052 8.65007 3.21656 9.06175 3.46844 9.40778L4.3151 10.5711C4.61704 10.9864 4.77964 11.4866 4.77955 12C4.77964 12.5134 4.61704 13.0137 4.3151 13.4289L3.46844 14.5922C3.21656 14.9382 3.07052 15.3499 3.04804 15.7773C3.02555 16.2047 3.12759 16.6295 3.34177 17C3.55589 17.3706 3.8728 17.6712 4.25417 17.8654C4.63554 18.0596 5.06502 18.1392 5.49066 18.0944L6.92066 17.9422C7.43133 17.8886 7.94587 17.9979 8.39066 18.2544C8.83519 18.511 9.18687 18.902 9.3951 19.3711Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round></path><path d="M12 15C13.6568 15 15 13.6569 15 12C15 10.3431 13.6568 9 12 9C10.3431 9 8.99998 10.3431 8.99998 12C8.99998 13.6569 10.3431 15 12 15Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),nv=V('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M16 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V8M11.5 12.5L17 7M17 7H12M17 7V12M6.2 21H8.8C9.9201 21 10.4802 21 10.908 20.782C11.2843 20.5903 11.5903 20.2843 11.782 19.908C12 19.4802 12 18.9201 12 17.8V15.2C12 14.0799 12 13.5198 11.782 13.092C11.5903 12.7157 11.2843 12.4097 10.908 12.218C10.4802 12 9.92011 12 8.8 12H6.2C5.0799 12 4.51984 12 4.09202 12.218C3.71569 12.4097 3.40973 12.7157 3.21799 13.092C3 13.5198 3 14.0799 3 15.2V17.8C3 18.9201 3 19.4802 3.21799 19.908C3.40973 20.2843 3.71569 20.5903 4.09202 20.782C4.51984 21 5.07989 21 6.2 21Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),rv=V('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path class=copier d="M8 8V5.2C8 4.0799 8 3.51984 8.21799 3.09202C8.40973 2.71569 8.71569 2.40973 9.09202 2.21799C9.51984 2 10.0799 2 11.2 2H18.8C19.9201 2 20.4802 2 20.908 2.21799C21.2843 2.40973 21.5903 2.71569 21.782 3.09202C22 3.51984 22 4.0799 22 5.2V12.8C22 13.9201 22 14.4802 21.782 14.908C21.5903 15.2843 21.2843 15.5903 20.908 15.782C20.4802 16 19.9201 16 18.8 16H16M5.2 22H12.8C13.9201 22 14.4802 22 14.908 21.782C15.2843 21.5903 15.5903 21.2843 15.782 20.908C16 20.4802 16 19.9201 16 18.8V11.2C16 10.0799 16 9.51984 15.782 9.09202C15.5903 8.71569 15.2843 8.40973 14.908 8.21799C14.4802 8 13.9201 8 12.8 8H5.2C4.0799 8 3.51984 8 3.09202 8.21799C2.71569 8.40973 2.40973 8.71569 2.21799 9.09202C2 9.51984 2 10.0799 2 11.2V18.8C2 19.9201 2 20.4802 2.21799 20.908C2.40973 21.2843 2.71569 21.5903 3.09202 21.782C3.51984 22 4.07989 22 5.2 22Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round stroke=currentColor>'),ov=V('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M2.5 21.4998L8.04927 19.3655C8.40421 19.229 8.58168 19.1607 8.74772 19.0716C8.8952 18.9924 9.0358 18.901 9.16804 18.7984C9.31692 18.6829 9.45137 18.5484 9.72028 18.2795L21 6.99982C22.1046 5.89525 22.1046 4.10438 21 2.99981C19.8955 1.89525 18.1046 1.89524 17 2.99981L5.72028 14.2795C5.45138 14.5484 5.31692 14.6829 5.20139 14.8318C5.09877 14.964 5.0074 15.1046 4.92823 15.2521C4.83911 15.4181 4.77085 15.5956 4.63433 15.9506L2.5 21.4998ZM2.5 21.4998L4.55812 16.1488C4.7054 15.7659 4.77903 15.5744 4.90534 15.4867C5.01572 15.4101 5.1523 15.3811 5.2843 15.4063C5.43533 15.4351 5.58038 15.5802 5.87048 15.8703L8.12957 18.1294C8.41967 18.4195 8.56472 18.5645 8.59356 18.7155C8.61877 18.8475 8.58979 18.9841 8.51314 19.0945C8.42545 19.2208 8.23399 19.2944 7.85107 19.4417L2.5 21.4998Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),Fc=V('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M7.5 12L10.5 15L16.5 9M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),iv=V('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9 9L15 15M15 9L9 15M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z"stroke=#F04438 stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),sv=V('<svg width=24 height=24 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 xmlns=http://www.w3.org/2000/svg><rect class=list width=20 height=20 y=2 x=2 rx=2></rect><line class=list-item y1=7 y2=7 x1=6 x2=18></line><line class=list-item y2=12 y1=12 x1=6 x2=18></line><line class=list-item y1=17 y2=17 x1=6 x2=18>'),av=V('<svg viewBox="0 0 24 24"height=20 width=20 fill=none xmlns=http://www.w3.org/2000/svg><path d="M3 7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),lv=V('<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M7.5 12L10.5 15L16.5 9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),uv=V('<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M12 2V6M12 18V22M6 12H2M22 12H18M19.0784 19.0784L16.25 16.25M19.0784 4.99994L16.25 7.82837M4.92157 19.0784L7.75 16.25M4.92157 4.99994L7.75 7.82837"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round></path><animateTransform attributeName=transform attributeType=XML type=rotate from=0 to=360 dur=2s repeatCount=indefinite>'),cv=V('<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M15 9L9 15M9 9L15 15M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),dv=V('<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9.5 15V9M14.5 15V9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),fv=V('<svg version=1.0 viewBox="0 0 633 633"><linearGradient x1=-666.45 x2=-666.45 y1=163.28 y2=163.99 gradientTransform="matrix(633 0 0 633 422177 -103358)"gradientUnits=userSpaceOnUse><stop stop-color=#6BDAFF offset=0></stop><stop stop-color=#F9FFB5 offset=.32></stop><stop stop-color=#FFA770 offset=.71></stop><stop stop-color=#FF7373 offset=1></stop></linearGradient><circle cx=316.5 cy=316.5 r=316.5></circle><defs><filter x=-137.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=316.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=316.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=316.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=272.2 y=308 width=176.9 height=129.3 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=272.2 y=308 width=176.9 height=129.3 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><line x1=436 x2=431 y1=403.2 y2=431.8 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=291 x2=280 y1=341.5 y2=403.5 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=332.9 x2=328.6 y1=384.1 y2=411.2 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><linearGradient x1=-670.75 x2=-671.59 y1=164.4 y2=164.49 gradientTransform="matrix(-184.16 -32.472 -11.461 64.997 -121359 -32126)"gradientUnits=userSpaceOnUse><stop stop-color=#EE2700 offset=0></stop><stop stop-color=#FF008E offset=1></stop></linearGradient><path d="m344.1 363 97.7 17.2c5.8 2.1 8.2 6.1 7.1 12.1s-4.7 9.2-11 9.9l-106-18.7-57.5-59.2c-3.2-4.8-2.9-9.1 0.8-12.8s8.3-4.4 13.7-2.1l55.2 53.6z"clip-rule=evenodd fill-rule=evenodd></path><line x1=428.2 x2=429.1 y1=384.5 y2=378 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=395.2 x2=396.1 y1=379.5 y2=373 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=362.2 x2=363.1 y1=373.5 y2=367.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=324.2 x2=328.4 y1=351.3 y2=347.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=303.2 x2=307.4 y1=331.3 y2=327.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line></g><defs><filter x=73.2 y=113.8 width=280.6 height=317.4 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=73.2 y=113.8 width=280.6 height=317.4 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-672.16 x2=-672.16 y1=165.03 y2=166.03 gradientTransform="matrix(-100.18 48.861 97.976 200.88 -83342 -93.059)"gradientUnits=userSpaceOnUse><stop stop-color=#A17500 offset=0></stop><stop stop-color=#5D2100 offset=1></stop></linearGradient><path d="m192.3 203c8.1 37.3 14 73.6 17.8 109.1 3.8 35.4 2.8 75.1-3 119.2l61.2-16.7c-15.6-59-25.2-97.9-28.6-116.6s-10.8-51.9-22.1-99.6l-25.3 4.6"clip-rule=evenodd fill-rule=evenodd></path><g stroke=#2F8A00><linearGradient x1=-660.23 x2=-660.23 y1=166.72 y2=167.72 gradientTransform="matrix(92.683 4.8573 -2.0259 38.657 61680 -3088.6)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9s-12.6-22.1-36.5-29.9c-15.9-5.2-34.4-1.5-55.5 11.1 15.9 14.3 29.5 22.6 40.7 24.9 16.8 3.6 51.3-6.1 51.3-6.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-661.36 x2=-661.36 y1=164.18 y2=165.18 gradientTransform="matrix(110 5.7648 -6.3599 121.35 73933 -15933)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5s-47.5-8.5-83.2 15.7c-23.8 16.2-34.3 49.3-31.6 99.4 30.3-27.8 52.1-48.5 65.2-61.9 19.8-20.2 49.6-53.2 49.6-53.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.79 x2=-656.79 y1=165.15 y2=166.15 gradientTransform="matrix(62.954 3.2993 -3.5023 66.828 42156 -8754.1)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9c-0.8-21.9 6-38 20.6-48.2s29.8-15.4 45.5-15.3c-6.1 21.4-14.5 35.8-25.2 43.4s-24.4 14.2-40.9 20.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-663.07 x2=-663.07 y1=165.44 y2=166.44 gradientTransform="matrix(152.47 7.9907 -3.0936 59.029 101884 -4318.7)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c31.9-30 64.1-39.7 96.7-29s50.8 30.4 54.6 59.1c-35.2-5.5-60.4-9.6-75.8-12.1-15.3-2.6-40.5-8.6-75.5-18z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-662.57 x2=-662.57 y1=164.44 y2=165.44 gradientTransform="matrix(136.46 7.1517 -5.2163 99.533 91536 -11442)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c35.8-7.6 65.6-0.2 89.2 22s37.7 49 42.3 80.3c-39.8-9.7-68.3-23.8-85.5-42.4s-32.5-38.5-46-59.9z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.43 x2=-656.43 y1=163.86 y2=164.86 gradientTransform="matrix(60.866 3.1899 -8.7773 167.48 41560 -25168)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c-33.6 13.8-53.6 35.7-60.1 65.6s-3.6 63.1 8.7 99.6c27.4-40.3 43.2-69.6 47.4-88s5.6-44.1 4-77.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><path d="m196.5 182.3c-14.8 21.6-25.1 41.4-30.8 59.4s-9.5 33-11.1 45.1"fill=none stroke-linecap=round stroke-width=8></path><path d="m194.9 185.7c-24.4 1.7-43.8 9-58.1 21.8s-24.7 25.4-31.3 37.8"fill=none stroke-linecap=round stroke-width=8></path><path d="m204.5 176.4c29.7-6.7 52-8.4 67-5.1s26.9 8.6 35.8 15.9"fill=none stroke-linecap=round stroke-width=8></path><path d="m196.5 181.4c20.3 9.9 38.2 20.5 53.9 31.9s27.4 22.1 35.1 32"fill=none stroke-linecap=round stroke-width=8></path></g></g><defs><filter x=50.5 y=399 width=532 height=633 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=50.5 y=399 width=532 height=633 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-666.06 x2=-666.23 y1=163.36 y2=163.75 gradientTransform="matrix(532 0 0 633 354760 -102959)"gradientUnits=userSpaceOnUse><stop stop-color=#FFF400 offset=0></stop><stop stop-color=#3C8700 offset=1></stop></linearGradient><ellipse cx=316.5 cy=715.5 rx=266 ry=316.5></ellipse></g><defs><filter x=391 y=-24 width=288 height=283 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=391 y=-24 width=288 height=283 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-664.56 x2=-664.56 y1=163.79 y2=164.79 gradientTransform="matrix(227 0 0 227 151421 -37204)"gradientUnits=userSpaceOnUse><stop stop-color=#FFDF00 offset=0></stop><stop stop-color=#FF9D00 offset=1></stop></linearGradient><circle cx=565.5 cy=89.5 r=113.5></circle><linearGradient x1=-644.5 x2=-645.77 y1=342 y2=342 gradientTransform="matrix(30 0 0 1 19770 -253)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=427 x2=397 y1=89 y2=89 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-641.56 x2=-642.83 y1=196.02 y2=196.07 gradientTransform="matrix(26.5 0 0 5.5 17439 -1025.5)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=430.5 x2=404 y1=55.5 y2=50 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-643.73 x2=-645 y1=185.83 y2=185.9 gradientTransform="matrix(29 0 0 8 19107 -1361)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=431 x2=402 y1=122 y2=130 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-638.94 x2=-640.22 y1=177.09 y2=177.39 gradientTransform="matrix(24 0 0 13 15783 -2145)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=442 x2=418 y1=153 y2=166 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-633.42 x2=-634.7 y1=172.41 y2=173.31 gradientTransform="matrix(20 0 0 19 13137 -3096)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=464 x2=444 y1=180 y2=199 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-619.05 x2=-619.52 y1=170.82 y2=171.82 gradientTransform="matrix(13.83 0 0 22.85 9050 -3703.4)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=491.4 x2=477.5 y1=203 y2=225.9 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-578.5 x2=-578.63 y1=170.31 y2=171.31 gradientTransform="matrix(7.5 0 0 24.5 4860 -3953)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=524.5 x2=517 y1=219.5 y2=244 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=666.5 x2=666.5 y1=170.31 y2=171.31 gradientTransform="matrix(.5 0 0 24.5 231.5 -3944)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=564.5 x2=565 y1=228.5 y2=253 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12>');function gv(){return Uy()}function _c(){return jy()}function ir(){return Qy()}function Oc(){return Wy()}function Dc(){return ys()}function hv(){return(()=>{var e=ys();return e.style.setProperty("transform","rotate(90deg)"),e})()}function pv(){return(()=>{var e=ys();return e.style.setProperty("transform","rotate(-90deg)"),e})()}function mv(){return Yy()}function yv(){return Xy()}function vv(){return Zy()}function bv(){return Jy()}function wv(){return ev()}function xv(){return tv()}function Sv(){return nv()}function Cv(){return rv()}function $v(){return ov()}function kv(e){return(()=>{var t=Fc(),n=t.firstChild;return X(()=>O(n,"stroke",e.theme==="dark"?"#12B76A":"#027A48")),t})()}function Ev(){return iv()}function Mv(){return sv()}function Pv(e){return[v(W,{get when(){return e.checked},get children(){var t=Fc(),n=t.firstChild;return X(()=>O(n,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}}),v(W,{get when(){return!e.checked},get children(){var t=av(),n=t.firstChild;return X(()=>O(n,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}})]}function vs(){return lv()}function Av(){return uv()}function Iv(){return cv()}function Fv(){return dv()}function Tc(){const e=St();return(()=>{var t=fv(),n=t.firstChild,r=n.nextSibling,o=r.nextSibling,i=o.firstChild,s=o.nextSibling,l=s.firstChild,a=s.nextSibling,c=a.nextSibling,d=c.firstChild,u=c.nextSibling,f=u.firstChild,g=u.nextSibling,h=g.nextSibling,p=h.firstChild,y=h.nextSibling,m=y.firstChild,b=y.nextSibling,w=b.nextSibling,x=w.firstChild,S=w.nextSibling,I=S.firstChild,M=S.nextSibling,C=M.nextSibling,$=C.firstChild,E=C.nextSibling,N=E.firstChild,H=E.nextSibling,J=H.nextSibling,ue=J.firstChild,ge=J.nextSibling,j=ge.firstChild,te=ge.nextSibling,z=te.nextSibling,pe=z.firstChild,me=z.nextSibling,Ie=me.firstChild,$e=me.nextSibling,G=$e.firstChild,k=G.nextSibling,ne=k.nextSibling,ie=ne.nextSibling,ye=ie.nextSibling,B=$e.nextSibling,Te=B.firstChild,Ae=B.nextSibling,ot=Ae.firstChild,Oe=Ae.nextSibling,jt=Oe.firstChild,Tt=jt.nextSibling,Rt=Tt.nextSibling,wt=Rt.firstChild,it=wt.nextSibling,R=it.nextSibling,he=R.nextSibling,Qe=he.nextSibling,Me=Qe.nextSibling,ce=Me.nextSibling,xe=ce.nextSibling,qe=xe.nextSibling,Se=qe.nextSibling,ct=Se.nextSibling,Lt=ct.nextSibling,dt=Oe.nextSibling,qt=dt.firstChild,Je=dt.nextSibling,Qt=Je.firstChild,et=Je.nextSibling,Wt=et.firstChild,lr=Wt.nextSibling,$n=et.nextSibling,Ln=$n.firstChild,kn=$n.nextSibling,En=kn.firstChild,ft=kn.nextSibling,qn=ft.firstChild,zn=qn.nextSibling,fn=zn.nextSibling,Nr=fn.nextSibling,se=Nr.nextSibling,Re=se.nextSibling,Ve=Re.nextSibling,tt=Ve.nextSibling,Nn=tt.nextSibling,ze=Nn.nextSibling,st=ze.nextSibling,Vn=st.nextSibling,gt=Vn.nextSibling,ht=gt.nextSibling,Vr=ht.nextSibling,Yt=Vr.nextSibling,xs=Yt.nextSibling,j1=xs.nextSibling;return O(n,"id",`a-${e}`),O(r,"fill",`url(#a-${e})`),O(i,"id",`am-${e}`),O(s,"id",`b-${e}`),O(l,"filter",`url(#am-${e})`),O(a,"mask",`url(#b-${e})`),O(d,"id",`ah-${e}`),O(u,"id",`k-${e}`),O(f,"filter",`url(#ah-${e})`),O(g,"mask",`url(#k-${e})`),O(p,"id",`ae-${e}`),O(y,"id",`j-${e}`),O(m,"filter",`url(#ae-${e})`),O(b,"mask",`url(#j-${e})`),O(x,"id",`ai-${e}`),O(S,"id",`i-${e}`),O(I,"filter",`url(#ai-${e})`),O(M,"mask",`url(#i-${e})`),O($,"id",`aj-${e}`),O(E,"id",`h-${e}`),O(N,"filter",`url(#aj-${e})`),O(H,"mask",`url(#h-${e})`),O(ue,"id",`ag-${e}`),O(ge,"id",`g-${e}`),O(j,"filter",`url(#ag-${e})`),O(te,"mask",`url(#g-${e})`),O(pe,"id",`af-${e}`),O(me,"id",`f-${e}`),O(Ie,"filter",`url(#af-${e})`),O($e,"mask",`url(#f-${e})`),O(ie,"id",`m-${e}`),O(ye,"fill",`url(#m-${e})`),O(Te,"id",`ak-${e}`),O(Ae,"id",`e-${e}`),O(ot,"filter",`url(#ak-${e})`),O(Oe,"mask",`url(#e-${e})`),O(jt,"id",`n-${e}`),O(Tt,"fill",`url(#n-${e})`),O(wt,"id",`r-${e}`),O(it,"fill",`url(#r-${e})`),O(R,"id",`s-${e}`),O(he,"fill",`url(#s-${e})`),O(Qe,"id",`q-${e}`),O(Me,"fill",`url(#q-${e})`),O(ce,"id",`p-${e}`),O(xe,"fill",`url(#p-${e})`),O(qe,"id",`o-${e}`),O(Se,"fill",`url(#o-${e})`),O(ct,"id",`l-${e}`),O(Lt,"fill",`url(#l-${e})`),O(qt,"id",`al-${e}`),O(Je,"id",`d-${e}`),O(Qt,"filter",`url(#al-${e})`),O(et,"mask",`url(#d-${e})`),O(Wt,"id",`u-${e}`),O(lr,"fill",`url(#u-${e})`),O(Ln,"id",`ad-${e}`),O(kn,"id",`c-${e}`),O(En,"filter",`url(#ad-${e})`),O(ft,"mask",`url(#c-${e})`),O(qn,"id",`t-${e}`),O(zn,"fill",`url(#t-${e})`),O(fn,"id",`v-${e}`),O(Nr,"stroke",`url(#v-${e})`),O(se,"id",`aa-${e}`),O(Re,"stroke",`url(#aa-${e})`),O(Ve,"id",`w-${e}`),O(tt,"stroke",`url(#w-${e})`),O(Nn,"id",`ac-${e}`),O(ze,"stroke",`url(#ac-${e})`),O(st,"id",`ab-${e}`),O(Vn,"stroke",`url(#ab-${e})`),O(gt,"id",`y-${e}`),O(ht,"stroke",`url(#y-${e})`),O(Vr,"id",`x-${e}`),O(Yt,"stroke",`url(#x-${e})`),O(xs,"id",`z-${e}`),O(j1,"stroke",`url(#z-${e})`),t})()}var _v=V('<span><svg width=16 height=16 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M6 12L10 8L6 4"stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),Ov=V('<button title="Copy object to clipboard">'),Dv=V('<button title="Remove all items"aria-label="Remove all items">'),Tv=V('<button title="Delete item"aria-label="Delete item">'),Rv=V('<button title="Toggle value"aria-label="Toggle value">'),Lv=V('<button title="Bulk Edit Data"aria-label="Bulk Edit Data">'),Lr=V("<div>"),qv=V("<div><button> <span></span> <span> "),zv=V("<input>"),Rc=V("<span>"),Nv=V("<div><span>:"),Vv=V("<div><div><button> [<!>...<!>]");function Bv(e,t){let n=0;const r=[];for(;n<e.length;)r.push(e.slice(n,n+t)),n=n+t;return r}var Lc=e=>{const t=Be(),n=Y().shadowDOMTarget?fe.bind({target:Y().shadowDOMTarget}):fe,r=_(()=>t()==="dark"?ar(n):sr(n));return(()=>{var o=_v();return X(()=>D(o,L(r().expander,n`
5
+ transform: rotate(${e.expanded?90:0}deg);
6
+ `,e.expanded&&n`
7
+ & svg {
8
+ top: -1px;
9
+ }
10
+ `))),o})()},Hv=e=>{const t=Be(),n=Y().shadowDOMTarget?fe.bind({target:Y().shadowDOMTarget}):fe,r=_(()=>t()==="dark"?ar(n):sr(n)),[o,i]=q("NoCopy");return(()=>{var s=Ov();return pa(s,"click",o()==="NoCopy"?()=>{navigator.clipboard.writeText(_g(e.value)).then(()=>{i("SuccessCopy"),setTimeout(()=>{i("NoCopy")},1500)},l=>{i("ErrorCopy"),setTimeout(()=>{i("NoCopy")},1500)})}:void 0,!0),A(s,v(Df,{get children(){return[v(pi,{get when(){return o()==="NoCopy"},get children(){return v(Cv,{})}}),v(pi,{get when(){return o()==="SuccessCopy"},get children(){return v(kv,{get theme(){return t()}})}}),v(pi,{get when(){return o()==="ErrorCopy"},get children(){return v(Ev,{})}})]}})),X(l=>{var a=r().actionButton,c=`${o()==="NoCopy"?"Copy object to clipboard":o()==="SuccessCopy"?"Object copied to clipboard":"Error copying object to clipboard"}`;return a!==l.e&&D(s,l.e=a),c!==l.t&&O(s,"aria-label",l.t=c),l},{e:void 0,t:void 0}),s})()},Gv=e=>{const t=Be(),n=Y().shadowDOMTarget?fe.bind({target:Y().shadowDOMTarget}):fe,r=_(()=>t()==="dark"?ar(n):sr(n)),o=Y().client;return(()=>{var i=Dv();return i.$$click=()=>{const s=e.activeQuery.state.data,l=In(s,e.dataPath,[]);o.setQueryData(e.activeQuery.queryKey,l)},A(i,v(Mv,{})),X(()=>D(i,r().actionButton)),i})()},qc=e=>{const t=Be(),n=Y().shadowDOMTarget?fe.bind({target:Y().shadowDOMTarget}):fe,r=_(()=>t()==="dark"?ar(n):sr(n)),o=Y().client;return(()=>{var i=Tv();return i.$$click=()=>{const s=e.activeQuery.state.data,l=Sr(s,e.dataPath);o.setQueryData(e.activeQuery.queryKey,l)},A(i,v(_c,{})),X(()=>D(i,L(r().actionButton))),i})()},Kv=e=>{const t=Be(),n=Y().shadowDOMTarget?fe.bind({target:Y().shadowDOMTarget}):fe,r=_(()=>t()==="dark"?ar(n):sr(n)),o=Y().client;return(()=>{var i=Rv();return i.$$click=()=>{const s=e.activeQuery.state.data,l=In(s,e.dataPath,!e.value);o.setQueryData(e.activeQuery.queryKey,l)},A(i,v(Pv,{get theme(){return t()},get checked(){return e.value}})),X(()=>D(i,L(r().actionButton,n`
11
+ width: ${P.size[3.5]};
12
+ height: ${P.size[3.5]};
13
+ `))),i})()};function zc(e){return Symbol.iterator in e}function Sn(e){const t=Be(),n=Y().shadowDOMTarget?fe.bind({target:Y().shadowDOMTarget}):fe,r=_(()=>t()==="dark"?ar(n):sr(n)),o=Y().client,[i,s]=q((e.defaultExpanded||[]).includes(e.label)),l=()=>s(h=>!h),[a,c]=q([]),d=_(()=>Array.isArray(e.value)?e.value.map((h,p)=>({label:p.toString(),value:h})):e.value!==null&&typeof e.value=="object"&&zc(e.value)&&typeof e.value[Symbol.iterator]=="function"?e.value instanceof Map?Array.from(e.value,([h,p])=>({label:h,value:p})):Array.from(e.value,(h,p)=>({label:p.toString(),value:h})):typeof e.value=="object"&&e.value!==null?Object.entries(e.value).map(([h,p])=>({label:h,value:p})):[]),u=_(()=>Array.isArray(e.value)?"array":e.value!==null&&typeof e.value=="object"&&zc(e.value)&&typeof e.value[Symbol.iterator]=="function"?"Iterable":typeof e.value=="object"&&e.value!==null?"object":typeof e.value),f=_(()=>Bv(d(),100)),g=e.dataPath??[];return(()=>{var h=Lr();return A(h,v(W,{get when(){return f().length},get children(){return[(()=>{var p=qv(),y=p.firstChild,m=y.firstChild,b=m.nextSibling,w=b.nextSibling,x=w.nextSibling,S=x.firstChild;return y.$$click=()=>l(),A(y,v(Lc,{get expanded(){return i()}}),m),A(b,()=>e.label),A(x,()=>String(u()).toLowerCase()==="iterable"?"(Iterable) ":"",S),A(x,()=>d().length,S),A(x,()=>d().length>1?"items":"item",null),A(p,v(W,{get when(){return e.editable},get children(){var I=Lr();return A(I,v(Hv,{get value(){return e.value}}),null),A(I,v(W,{get when(){return e.itemsDeletable&&e.activeQuery!==void 0},get children(){return v(qc,{get activeQuery(){return e.activeQuery},dataPath:g})}}),null),A(I,v(W,{get when(){return u()==="array"&&e.activeQuery!==void 0},get children(){return v(Gv,{get activeQuery(){return e.activeQuery},dataPath:g})}}),null),A(I,v(W,{get when(){return Le(()=>!!e.onEdit)()&&!Va(e.value).meta},get children(){var M=Lv();return M.$$click=()=>{e.onEdit?.()},A(M,v($v,{})),X(()=>D(M,r().actionButton)),M}}),null),X(()=>D(I,r().actions)),I}}),null),X(I=>{var M=r().expanderButtonContainer,C=r().expanderButton,$=r().info;return M!==I.e&&D(p,I.e=M),C!==I.t&&D(y,I.t=C),$!==I.a&&D(x,I.a=$),I},{e:void 0,t:void 0,a:void 0}),p})(),v(W,{get when(){return i()},get children(){return[v(W,{get when(){return f().length===1},get children(){var p=Lr();return A(p,v(mo,{get each(){return d()},by:y=>y.label,children:y=>v(Sn,{get defaultExpanded(){return e.defaultExpanded},get label(){return y().label},get value(){return y().value},get editable(){return e.editable},get dataPath(){return[...g,y().label]},get activeQuery(){return e.activeQuery},get itemsDeletable(){return u()==="array"||u()==="Iterable"||u()==="object"}})})),X(()=>D(p,r().subEntry)),p}}),v(W,{get when(){return f().length>1},get children(){var p=Lr();return A(p,v(Of,{get each(){return f()},children:(y,m)=>(()=>{var b=Vv(),w=b.firstChild,x=w.firstChild,S=x.firstChild,I=S.nextSibling,M=I.nextSibling,C=M.nextSibling;return C.nextSibling,x.$$click=()=>c($=>$.includes(m)?$.filter(E=>E!==m):[...$,m]),A(x,v(Lc,{get expanded(){return a().includes(m)}}),S),A(x,m*100,I),A(x,m*100+100-1,C),A(w,v(W,{get when(){return a().includes(m)},get children(){var $=Lr();return A($,v(mo,{get each(){return y()},by:E=>E.label,children:E=>v(Sn,{get defaultExpanded(){return e.defaultExpanded},get label(){return E().label},get value(){return E().value},get editable(){return e.editable},get dataPath(){return[...g,E().label]},get activeQuery(){return e.activeQuery}})})),X(()=>D($,r().subEntry)),$}}),null),X($=>{var E=r().entry,N=r().expanderButton;return E!==$.e&&D(w,$.e=E),N!==$.t&&D(x,$.t=N),$},{e:void 0,t:void 0}),b})()})),X(()=>D(p,r().subEntry)),p}})]}})]}}),null),A(h,v(W,{get when(){return f().length===0},get children(){var p=Nv(),y=p.firstChild,m=y.firstChild;return A(y,()=>e.label,m),A(p,v(W,{get when(){return Le(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(u()==="string"||u()==="number"||u()==="boolean")},get fallback(){return(()=>{var b=Rc();return A(b,()=>lo(e.value)),X(()=>D(b,r().value)),b})()},get children(){return[v(W,{get when(){return Le(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(u()==="string"||u()==="number")},get children(){var b=zv();return b.addEventListener("change",w=>{const x=e.activeQuery.state.data,S=In(x,g,u()==="number"?w.target.valueAsNumber:w.target.value);o.setQueryData(e.activeQuery.queryKey,S)}),X(w=>{var x=u()==="number"?"number":"text",S=L(r().value,r().editableInput);return x!==w.e&&O(b,"type",w.e=x),S!==w.t&&D(b,w.t=S),w},{e:void 0,t:void 0}),X(()=>b.value=e.value),b}}),v(W,{get when(){return u()==="boolean"},get children(){var b=Rc();return A(b,v(Kv,{get activeQuery(){return e.activeQuery},dataPath:g,get value(){return e.value}}),null),A(b,()=>lo(e.value),null),X(()=>D(b,L(r().value,r().actions,r().editableInput))),b}})]}}),null),A(p,v(W,{get when(){return e.editable&&e.itemsDeletable&&e.activeQuery!==void 0},get children(){return v(qc,{get activeQuery(){return e.activeQuery},dataPath:g})}}),null),X(b=>{var w=r().row,x=r().label;return w!==b.e&&D(p,b.e=w),x!==b.t&&D(y,b.t=x),b},{e:void 0,t:void 0}),p}}),null),X(()=>D(h,r().entry)),h})()}var Nc=(e,t)=>{const{colors:n,font:r,size:o,border:i}=P,s=(l,a)=>e==="light"?l:a;return{entry:t`
14
+ & * {
15
+ font-size: ${r.size.xs};
16
+ font-family:
17
+ ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
18
+ 'Liberation Mono', 'Courier New', monospace;
19
+ }
20
+ position: relative;
21
+ outline: none;
22
+ word-break: break-word;
23
+ `,subEntry:t`
24
+ margin: 0 0 0 0.5em;
25
+ padding-left: 0.75em;
26
+ border-left: 2px solid ${s(n.gray[300],n.darkGray[400])};
27
+ /* outline: 1px solid ${n.teal[400]}; */
28
+ `,expander:t`
29
+ & path {
30
+ stroke: ${n.gray[400]};
31
+ }
32
+ & svg {
33
+ width: ${o[3]};
34
+ height: ${o[3]};
35
+ }
36
+ display: inline-flex;
37
+ align-items: center;
38
+ transition: all 0.1s ease;
39
+ /* outline: 1px solid ${n.blue[400]}; */
40
+ `,expanderButtonContainer:t`
41
+ display: flex;
42
+ align-items: center;
43
+ line-height: ${o[4]};
44
+ min-height: ${o[4]};
45
+ gap: ${o[2]};
46
+ `,expanderButton:t`
47
+ cursor: pointer;
48
+ color: inherit;
49
+ font: inherit;
50
+ outline: inherit;
51
+ height: ${o[5]};
52
+ background: transparent;
53
+ border: none;
54
+ padding: 0;
55
+ display: inline-flex;
56
+ align-items: center;
57
+ gap: ${o[1]};
58
+ position: relative;
59
+ /* outline: 1px solid ${n.green[400]}; */
60
+
61
+ &:focus-visible {
62
+ border-radius: ${i.radius.xs};
63
+ outline: 2px solid ${n.blue[800]};
64
+ }
65
+
66
+ & svg {
67
+ position: relative;
68
+ left: 1px;
69
+ }
70
+ `,info:t`
71
+ color: ${s(n.gray[500],n.gray[500])};
72
+ font-size: ${r.size.xs};
73
+ margin-left: ${o[1]};
74
+ /* outline: 1px solid ${n.yellow[400]}; */
75
+ `,label:t`
76
+ color: ${s(n.gray[700],n.gray[300])};
77
+ white-space: nowrap;
78
+ `,value:t`
79
+ color: ${s(n.purple[600],n.purple[400])};
80
+ flex-grow: 1;
81
+ `,actions:t`
82
+ display: inline-flex;
83
+ gap: ${o[2]};
84
+ align-items: center;
85
+ `,row:t`
86
+ display: inline-flex;
87
+ gap: ${o[2]};
88
+ width: 100%;
89
+ margin: ${o[.25]} 0px;
90
+ line-height: ${o[4.5]};
91
+ align-items: center;
92
+ `,editableInput:t`
93
+ border: none;
94
+ padding: ${o[.5]} ${o[1]} ${o[.5]} ${o[1.5]};
95
+ flex-grow: 1;
96
+ border-radius: ${i.radius.xs};
97
+ background-color: ${s(n.gray[200],n.darkGray[500])};
98
+
99
+ &:hover {
100
+ background-color: ${s(n.gray[300],n.darkGray[600])};
101
+ }
102
+ `,actionButton:t`
103
+ background-color: transparent;
104
+ color: ${s(n.gray[500],n.gray[500])};
105
+ border: none;
106
+ display: inline-flex;
107
+ padding: 0px;
108
+ align-items: center;
109
+ justify-content: center;
110
+ cursor: pointer;
111
+ width: ${o[3]};
112
+ height: ${o[3]};
113
+ position: relative;
114
+ z-index: 1;
115
+
116
+ &:hover svg {
117
+ color: ${s(n.gray[600],n.gray[400])};
118
+ }
119
+
120
+ &:focus-visible {
121
+ border-radius: ${i.radius.xs};
122
+ outline: 2px solid ${n.blue[800]};
123
+ outline-offset: 2px;
124
+ }
125
+ `}},sr=e=>Nc("light",e),ar=e=>Nc("dark",e);io(["click"]);var Uv=V('<div><div aria-hidden=true></div><button type=button aria-label="Open Tanstack query devtools"class=tsqd-open-btn>'),qr=V("<div>"),jv=V('<aside aria-label="Tanstack query devtools"><div></div><button aria-label="Close tanstack query devtools">'),Qv=V("<select name=tsqd-queries-filter-sort>"),Wv=V("<select name=tsqd-mutations-filter-sort>"),Yv=V("<span>Asc"),Xv=V("<span>Desc"),Zv=V('<button aria-label="Open in picture-in-picture mode"title="Open in picture-in-picture mode">'),Jv=V("<div>Settings"),e1=V("<span>Position"),t1=V("<span>Top"),n1=V("<span>Bottom"),r1=V("<span>Left"),o1=V("<span>Right"),i1=V("<span>Theme"),s1=V("<span>Light"),a1=V("<span>Dark"),l1=V("<span>System"),u1=V("<span>Disabled Queries"),c1=V("<span>Show"),d1=V("<span>Hide"),f1=V("<div><div class=tsqd-queries-container>"),g1=V("<div><div class=tsqd-mutations-container>"),h1=V('<div><div><div><button aria-label="Close Tanstack query devtools"><span>TANSTACK</span><span> v</span></button></div></div><div><div><div><input aria-label="Filter queries by query key"type=text placeholder=Filter name=tsqd-query-filter-input></div><div></div><button class=tsqd-query-filter-sort-order-btn></button></div><div><button aria-label="Clear query cache"></button><button>'),Vc=V("<option>Sort by "),p1=V("<div class=tsqd-query-disabled-indicator>disabled"),m1=V("<div class=tsqd-query-static-indicator>static"),Bc=V("<button><div></div><code class=tsqd-query-hash>"),y1=V("<div role=tooltip id=tsqd-status-tooltip>"),v1=V("<span>"),b1=V("<button><span></span><span>"),w1=V("<button><span></span> Error"),x1=V('<div><span></span>Trigger Error<select><option value=""disabled selected>'),S1=V('<div class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer">'),C1=V("<form><textarea name=data></textarea><div><span></span><div><button type=button>Cancel</button><button>Save"),$1=V('<div><div>Query Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span></span></div><div class=tsqd-query-details-observers-count><span>Observers:</span><span></span></div><div class=tsqd-query-details-last-updated><span>Last Updated:</span><span></span></div></div><div>Actions</div><div><button><span></span>Refetch</button><button><span></span>Invalidate</button><button><span></span>Reset</button><button><span></span>Remove</button><button><span></span> Loading</button></div><div>Data </div><div>Query Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">'),k1=V("<option>"),E1=V('<div><div>Mutation Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span></span></div><div class=tsqd-query-details-last-updated><span>Submitted At:</span><span></span></div></div><div>Variables Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Context Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Data Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Mutations Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">'),[bt,_o]=q(null),[Cn,Hc]=q(null),[Ot,bs]=q(0),[zr,M1]=q(!1),P1=e=>{const t=Be(),n=Y().shadowDOMTarget?fe.bind({target:Y().shadowDOMTarget}):fe,r=_(()=>t()==="dark"?At(n):Pt(n)),o=_(()=>Y().onlineManager);rn(()=>{const u=o().subscribe(f=>{M1(!f)});ee(()=>{u()})});const i=qi(),s=_(()=>Y().buttonPosition||M0),l=_(()=>e.localStore.open==="true"?!0:e.localStore.open==="false"?!1:Y().initialIsOpen||P0),a=_(()=>e.localStore.position||Y().position||Ri);let c;Z(()=>{const u=c.parentElement,f=e.localStore.height||Sl,g=e.localStore.width||Cl,h=a();u.style.setProperty("--tsqd-panel-height",`${h==="top"?"-":""}${f}px`),u.style.setProperty("--tsqd-panel-width",`${h==="left"?"-":""}${g}px`)}),rn(()=>{const u=()=>{const f=c.parentElement,g=getComputedStyle(f).fontSize;f.style.setProperty("--tsqd-font-size",g)};u(),window.addEventListener("focus",u),ee(()=>{window.removeEventListener("focus",u)})});const d=_(()=>e.localStore.pip_open??"false");return[v(W,{get when(){return Le(()=>!!i().pipWindow)()&&d()=="true"},get children(){return v(Sa,{get mount(){return i().pipWindow?.document.body},get children(){return v(A1,{get children(){return v(ws,e)}})}})}}),(()=>{var u=qr(),f=c;return typeof f=="function"?Gn(f,u):c=u,A(u,v(Ll,{name:"tsqd-panel-transition",get children(){return v(W,{get when(){return Le(()=>!!(l()&&!i().pipWindow))()&&d()=="false"},get children(){return v(F1,{get localStore(){return e.localStore},get setLocalStore(){return e.setLocalStore}})}})}}),null),A(u,v(Ll,{name:"tsqd-button-transition",get children(){return v(W,{get when(){return!l()},get children(){var g=Uv(),h=g.firstChild,p=h.nextSibling;return A(h,v(Tc,{})),p.$$click=()=>e.setLocalStore("open","true"),A(p,v(Tc,{})),X(()=>D(g,L(r().devtoolsBtn,r()[`devtoolsBtn-position-${s()}`],"tsqd-open-btn-container"))),g}})}}),null),X(()=>D(u,L(n`
126
+ & .tsqd-panel-transition-exit-active,
127
+ & .tsqd-panel-transition-enter-active {
128
+ transition:
129
+ opacity 0.3s,
130
+ transform 0.3s;
131
+ }
132
+
133
+ & .tsqd-panel-transition-exit-to,
134
+ & .tsqd-panel-transition-enter {
135
+ ${a()==="top"||a()==="bottom"?"transform: translateY(var(--tsqd-panel-height));":"transform: translateX(var(--tsqd-panel-width));"}
136
+ }
137
+
138
+ & .tsqd-button-transition-exit-active,
139
+ & .tsqd-button-transition-enter-active {
140
+ transition:
141
+ opacity 0.3s,
142
+ transform 0.3s;
143
+ opacity: 1;
144
+ }
145
+
146
+ & .tsqd-button-transition-exit-to,
147
+ & .tsqd-button-transition-enter {
148
+ transform: ${s()==="relative"?"none;":s()==="top-left"?"translateX(-72px);":s()==="top-right"?"translateX(72px);":"translateY(72px);"};
149
+ opacity: 0;
150
+ }
151
+ `,"tsqd-transitions-container"))),u})()]},A1=e=>{const t=qi(),n=Be(),r=Y().shadowDOMTarget?fe.bind({target:Y().shadowDOMTarget}):fe,o=_(()=>n()==="dark"?At(r):Pt(r)),i=()=>{const{colors:s}=P,l=(a,c)=>n()==="dark"?c:a;return Ot()<_n?r`
152
+ flex-direction: column;
153
+ background-color: ${l(s.gray[300],s.gray[600])};
154
+ `:r`
155
+ flex-direction: row;
156
+ background-color: ${l(s.gray[200],s.darkGray[900])};
157
+ `};return Z(()=>{const s=t().pipWindow,l=()=>{s&&bs(s.innerWidth)};s&&(s.addEventListener("resize",l),l()),ee(()=>{s&&s.removeEventListener("resize",l)})}),(()=>{var s=qr();return s.style.setProperty("--tsqd-font-size","16px"),s.style.setProperty("max-height","100vh"),s.style.setProperty("height","100vh"),s.style.setProperty("width","100vw"),A(s,()=>e.children),X(()=>D(s,L(o().panel,i(),{[r`
158
+ min-width: min-content;
159
+ `]:Ot()<Ti},"tsqd-main-panel"))),s})()},I1=e=>{const t=Be(),n=Y().shadowDOMTarget?fe.bind({target:Y().shadowDOMTarget}):fe,r=_(()=>t()==="dark"?At(n):Pt(n));let o;rn(()=>{zl(o,({width:s},l)=>{l===o&&bs(s)})});const i=()=>{const{colors:s}=P,l=(a,c)=>t()==="dark"?c:a;return Ot()<_n?n`
160
+ flex-direction: column;
161
+ background-color: ${l(s.gray[300],s.gray[600])};
162
+ `:n`
163
+ flex-direction: row;
164
+ background-color: ${l(s.gray[200],s.darkGray[900])};
165
+ `};return(()=>{var s=qr(),l=o;return typeof l=="function"?Gn(l,s):o=s,s.style.setProperty("--tsqd-font-size","16px"),A(s,()=>e.children),X(()=>D(s,L(r().parentPanel,i(),{[n`
166
+ min-width: min-content;
167
+ `]:Ot()<Ti},"tsqd-main-panel"))),s})()},F1=e=>{const t=Be(),n=Y().shadowDOMTarget?fe.bind({target:Y().shadowDOMTarget}):fe,r=_(()=>t()==="dark"?At(n):Pt(n)),[o,i]=q(!1),s=_(()=>e.localStore.position||Y().position||Ri),l=d=>{const u=d.currentTarget.parentElement;if(!u)return;i(!0);const{height:f,width:g}=u.getBoundingClientRect(),h=d.clientX,p=d.clientY;let y=0;const m=Ga(3.5),b=Ga(12),w=S=>{if(S.preventDefault(),s()==="left"||s()==="right"){const I=s()==="right"?h-S.clientX:S.clientX-h;y=Math.round(g+I),y<b&&(y=b),e.setLocalStore("width",String(Math.round(y)));const M=u.getBoundingClientRect().width;Number(e.localStore.width)<M&&e.setLocalStore("width",String(M))}else{const I=s()==="bottom"?p-S.clientY:S.clientY-p;y=Math.round(f+I),y<m&&(y=m,_o(null)),e.setLocalStore("height",String(Math.round(y)))}},x=()=>{o()&&i(!1),document.removeEventListener("mousemove",w,!1),document.removeEventListener("mouseUp",x,!1)};document.addEventListener("mousemove",w,!1),document.addEventListener("mouseup",x,!1)};let a;rn(()=>{zl(a,({width:d},u)=>{u===a&&bs(d)})}),Z(()=>{const d=a.parentElement?.parentElement?.parentElement;if(!d)return;const u=e.localStore.position||Ri,f=Og("padding",u),g=e.localStore.position==="left"||e.localStore.position==="right",h=(({padding:p,paddingTop:y,paddingBottom:m,paddingLeft:b,paddingRight:w})=>({padding:p,paddingTop:y,paddingBottom:m,paddingLeft:b,paddingRight:w}))(d.style);d.style[f]=`${g?e.localStore.width:e.localStore.height}px`,ee(()=>{Object.entries(h).forEach(([p,y])=>{d.style[p]=y})})});const c=()=>{const{colors:d}=P,u=(f,g)=>t()==="dark"?g:f;return Ot()<_n?n`
168
+ flex-direction: column;
169
+ background-color: ${u(d.gray[300],d.gray[600])};
170
+ `:n`
171
+ flex-direction: row;
172
+ background-color: ${u(d.gray[200],d.darkGray[900])};
173
+ `};return(()=>{var d=jv(),u=d.firstChild,f=u.nextSibling,g=a;return typeof g=="function"?Gn(g,d):a=d,u.$$mousedown=l,f.$$click=()=>e.setLocalStore("open","false"),A(f,v(ir,{})),A(d,v(ws,e),null),X(h=>{var p=L(r().panel,r()[`panel-position-${s()}`],c(),{[n`
174
+ min-width: min-content;
175
+ `]:Ot()<Ti&&(s()==="right"||s()==="left")},"tsqd-main-panel"),y=s()==="bottom"||s()==="top"?`${e.localStore.height||Sl}px`:"auto",m=s()==="right"||s()==="left"?`${e.localStore.width||Cl}px`:"auto",b=L(r().dragHandle,r()[`dragHandle-position-${s()}`],"tsqd-drag-handle"),w=L(r().closeBtn,r()[`closeBtn-position-${s()}`],"tsqd-minimize-btn");return p!==h.e&&D(d,h.e=p),y!==h.t&&((h.t=y)!=null?d.style.setProperty("height",y):d.style.removeProperty("height")),m!==h.a&&((h.a=m)!=null?d.style.setProperty("width",m):d.style.removeProperty("width")),b!==h.o&&D(u,h.o=b),w!==h.i&&D(f,h.i=w),h},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),d})()},ws=e=>{q1(),z1();let t;const n=Be(),r=Y().shadowDOMTarget?fe.bind({target:Y().shadowDOMTarget}):fe,o=_(()=>n()==="dark"?At(r):Pt(r)),i=qi(),[s,l]=q("queries"),a=_(()=>e.localStore.sort||I0),c=_(()=>Number(e.localStore.sortOrder)||$l),d=_(()=>e.localStore.mutationSort||F0),u=_(()=>Number(e.localStore.mutationSortOrder)||$l),f=_(()=>Si[a()]),g=_(()=>Ci[d()]),h=_(()=>Y().onlineManager),p=_(()=>Y().client.getQueryCache()),y=_(()=>Y().client.getMutationCache()),m=Ge(M=>M().getAll().length,!1),b=_(nn(()=>[m(),e.localStore.filter,a(),c(),e.localStore.hideDisabledQueries],()=>{const M=p().getAll();let C=e.localStore.filter?M.filter(E=>Pl(E.queryHash,e.localStore.filter||"").passed):[...M];return e.localStore.hideDisabledQueries==="true"&&(C=C.filter(E=>!E.isDisabled())),f()?C.sort((E,N)=>f()(E,N)*c()):C})),w=Dt(M=>M().getAll().length,!1),x=_(nn(()=>[w(),e.localStore.mutationFilter,d(),u()],()=>{const M=y().getAll(),C=e.localStore.mutationFilter?M.filter(E=>{const N=`${E.options.mutationKey?JSON.stringify(E.options.mutationKey)+" - ":""}${new Date(E.state.submittedAt).toLocaleString()}`;return Pl(N,e.localStore.mutationFilter||"").passed}):[...M];return g()?C.sort((E,N)=>g()(E,N)*u()):C})),S=M=>{e.setLocalStore("position",M)},I=M=>{const $=getComputedStyle(t).getPropertyValue("--tsqd-font-size");M.style.setProperty("--tsqd-font-size",$)};return[(()=>{var M=h1(),C=M.firstChild,$=C.firstChild,E=$.firstChild,N=E.firstChild,H=N.nextSibling,J=H.firstChild,ue=C.nextSibling,ge=ue.firstChild,j=ge.firstChild,te=j.firstChild,z=j.nextSibling,pe=z.nextSibling,me=ge.nextSibling,Ie=me.firstChild,$e=Ie.nextSibling,G=t;return typeof G=="function"?Gn(G,M):t=M,E.$$click=()=>{if(!i().pipWindow&&!e.showPanelViewOnly){e.setLocalStore("open","false");return}e.onClose&&e.onClose()},A(H,()=>Y().queryFlavor,J),A(H,()=>Y().version,null),A($,v(Et.Root,{get class(){return L(o().viewToggle)},get value(){return s()},onChange:k=>{l(k),_o(null),Hc(null)},get children(){return[v(Et.Item,{value:"queries",class:"tsqd-radio-toggle",get children(){return[v(Et.ItemInput,{}),v(Et.ItemControl,{get children(){return v(Et.ItemIndicator,{})}}),v(Et.ItemLabel,{title:"Toggle Queries View",children:"Queries"})]}}),v(Et.Item,{value:"mutations",class:"tsqd-radio-toggle",get children(){return[v(Et.ItemInput,{}),v(Et.ItemControl,{get children(){return v(Et.ItemIndicator,{})}}),v(Et.ItemLabel,{title:"Toggle Mutations View",children:"Mutations"})]}})]}}),null),A(C,v(W,{get when(){return s()==="queries"},get children(){return v(D1,{})}}),null),A(C,v(W,{get when(){return s()==="mutations"},get children(){return v(T1,{})}}),null),A(j,v(gv,{}),te),te.$$input=k=>{s()==="queries"?e.setLocalStore("filter",k.currentTarget.value):e.setLocalStore("mutationFilter",k.currentTarget.value)},A(z,v(W,{get when(){return s()==="queries"},get children(){var k=Qv();return k.addEventListener("change",ne=>{e.setLocalStore("sort",ne.currentTarget.value)}),A(k,()=>Object.keys(Si).map(ne=>(()=>{var ie=Vc();return ie.firstChild,ie.value=ne,A(ie,ne,null),ie})())),X(()=>k.value=a()),k}}),null),A(z,v(W,{get when(){return s()==="mutations"},get children(){var k=Wv();return k.addEventListener("change",ne=>{e.setLocalStore("mutationSort",ne.currentTarget.value)}),A(k,()=>Object.keys(Ci).map(ne=>(()=>{var ie=Vc();return ie.firstChild,ie.value=ne,A(ie,ne,null),ie})())),X(()=>k.value=d()),k}}),null),A(z,v(ir,{}),null),pe.$$click=()=>{s()==="queries"?e.setLocalStore("sortOrder",String(c()*-1)):e.setLocalStore("mutationSortOrder",String(u()*-1))},A(pe,v(W,{get when(){return(s()==="queries"?c():u())===1},get children(){return[Yv(),v(Oc,{})]}}),null),A(pe,v(W,{get when(){return(s()==="queries"?c():u())===-1},get children(){return[Xv(),v(Dc,{})]}}),null),Ie.$$click=()=>{s()==="queries"?(Ut({type:"CLEAR_QUERY_CACHE"}),p().clear()):(Ut({type:"CLEAR_MUTATION_CACHE"}),y().clear())},A(Ie,v(_c,{})),$e.$$click=()=>{h().setOnline(!h().isOnline())},A($e,(()=>{var k=Le(()=>!!zr());return()=>k()?v(wv,{}):v(bv,{})})()),A(me,v(W,{get when(){return Le(()=>!i().pipWindow)()&&!i().disabled},get children(){var k=Zv();return k.$$click=()=>{i().requestPipWindow(Number(window.innerWidth),Number(e.localStore.height??500))},A(k,v(Sv,{})),X(()=>D(k,L(o().actionsBtn,"tsqd-actions-btn","tsqd-action-open-pip"))),k}}),null),A(me,v(Pe.Root,{gutter:4,get children(){return[v(Pe.Trigger,{get class(){return L(o().actionsBtn,"tsqd-actions-btn","tsqd-action-settings")},get children(){return v(xv,{})}}),v(Pe.Portal,{ref:k=>I(k),get mount(){return Le(()=>!!i().pipWindow)()?i().pipWindow.document.body:document.body},get children(){return v(Pe.Content,{get class(){return L(o().settingsMenu,"tsqd-settings-menu")},get children(){return[(()=>{var k=Jv();return X(()=>D(k,L(o().settingsMenuHeader,"tsqd-settings-menu-header"))),k})(),v(W,{get when(){return!e.showPanelViewOnly},get children(){return v(Pe.Sub,{overlap:!0,gutter:8,shift:-4,get children(){return[v(Pe.SubTrigger,{get class(){return L(o().settingsSubTrigger,"tsqd-settings-menu-sub-trigger","tsqd-settings-menu-sub-trigger-position")},get children(){return[e1(),v(ir,{})]}}),v(Pe.Portal,{ref:k=>I(k),get mount(){return Le(()=>!!i().pipWindow)()?i().pipWindow.document.body:document.body},get children(){return v(Pe.SubContent,{get class(){return L(o().settingsMenu,"tsqd-settings-submenu")},get children(){return[v(Pe.Item,{onSelect:()=>{S("top")},as:"button",get class(){return L(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-top")},get children(){return[t1(),v(Oc,{})]}}),v(Pe.Item,{onSelect:()=>{S("bottom")},as:"button",get class(){return L(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-bottom")},get children(){return[n1(),v(Dc,{})]}}),v(Pe.Item,{onSelect:()=>{S("left")},as:"button",get class(){return L(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-left")},get children(){return[r1(),v(hv,{})]}}),v(Pe.Item,{onSelect:()=>{S("right")},as:"button",get class(){return L(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-right")},get children(){return[o1(),v(pv,{})]}})]}})}})]}})}}),v(Pe.Sub,{overlap:!0,gutter:8,shift:-4,get children(){return[v(Pe.SubTrigger,{get class(){return L(o().settingsSubTrigger,"tsqd-settings-menu-sub-trigger","tsqd-settings-menu-sub-trigger-position")},get children(){return[i1(),v(ir,{})]}}),v(Pe.Portal,{ref:k=>I(k),get mount(){return Le(()=>!!i().pipWindow)()?i().pipWindow.document.body:document.body},get children(){return v(Pe.SubContent,{get class(){return L(o().settingsMenu,"tsqd-settings-submenu")},get children(){return[v(Pe.Item,{onSelect:()=>{e.setLocalStore("theme_preference","light")},as:"button",get class(){return L(o().settingsSubButton,e.localStore.theme_preference==="light"&&o().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-top")},get children(){return[s1(),v(mv,{})]}}),v(Pe.Item,{onSelect:()=>{e.setLocalStore("theme_preference","dark")},as:"button",get class(){return L(o().settingsSubButton,e.localStore.theme_preference==="dark"&&o().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-bottom")},get children(){return[a1(),v(yv,{})]}}),v(Pe.Item,{onSelect:()=>{e.setLocalStore("theme_preference","system")},as:"button",get class(){return L(o().settingsSubButton,e.localStore.theme_preference==="system"&&o().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-left")},get children(){return[l1(),v(vv,{})]}})]}})}})]}}),v(Pe.Sub,{overlap:!0,gutter:8,shift:-4,get children(){return[v(Pe.SubTrigger,{get class(){return L(o().settingsSubTrigger,"tsqd-settings-menu-sub-trigger","tsqd-settings-menu-sub-trigger-disabled-queries")},get children(){return[u1(),v(ir,{})]}}),v(Pe.Portal,{ref:k=>I(k),get mount(){return Le(()=>!!i().pipWindow)()?i().pipWindow.document.body:document.body},get children(){return v(Pe.SubContent,{get class(){return L(o().settingsMenu,"tsqd-settings-submenu")},get children(){return[v(Pe.Item,{onSelect:()=>{e.setLocalStore("hideDisabledQueries","false")},as:"button",get class(){return L(o().settingsSubButton,e.localStore.hideDisabledQueries!=="true"&&o().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-show")},get children(){return[c1(),v(W,{get when(){return e.localStore.hideDisabledQueries!=="true"},get children(){return v(vs,{})}})]}}),v(Pe.Item,{onSelect:()=>{e.setLocalStore("hideDisabledQueries","true")},as:"button",get class(){return L(o().settingsSubButton,e.localStore.hideDisabledQueries==="true"&&o().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-hide")},get children(){return[d1(),v(W,{get when(){return e.localStore.hideDisabledQueries==="true"},get children(){return v(vs,{})}})]}})]}})}})]}})]}})}})]}}),null),A(M,v(W,{get when(){return s()==="queries"},get children(){var k=f1(),ne=k.firstChild;return A(ne,v(mo,{by:ie=>ie.queryHash,get each(){return b()},children:ie=>v(_1,{get query(){return ie()}})})),X(()=>D(k,L(o().overflowQueryContainer,"tsqd-queries-overflow-container"))),k}}),null),A(M,v(W,{get when(){return s()==="mutations"},get children(){var k=g1(),ne=k.firstChild;return A(ne,v(mo,{by:ie=>ie.mutationId,get each(){return x()},children:ie=>v(O1,{get mutation(){return ie()}})})),X(()=>D(k,L(o().overflowQueryContainer,"tsqd-mutations-overflow-container"))),k}}),null),X(k=>{var ne=L(o().queriesContainer,Ot()<_n&&(bt()||Cn())&&r`
176
+ height: 50%;
177
+ max-height: 50%;
178
+ `,Ot()<_n&&!(bt()||Cn())&&r`
179
+ height: 100%;
180
+ max-height: 100%;
181
+ `,"tsqd-queries-container"),ie=L(o().row,"tsqd-header"),ye=o().logoAndToggleContainer,B=L(o().logo,"tsqd-text-logo-container"),Te=L(o().tanstackLogo,"tsqd-text-logo-tanstack"),Ae=L(o().queryFlavorLogo,"tsqd-text-logo-query-flavor"),ot=L(o().row,"tsqd-filters-actions-container"),Oe=L(o().filtersContainer,"tsqd-filters-container"),jt=L(o().filterInput,"tsqd-query-filter-textfield-container"),Tt=L("tsqd-query-filter-textfield"),Rt=L(o().filterSelect,"tsqd-query-filter-sort-container"),wt=`Sort order ${(s()==="queries"?c():u())===-1?"descending":"ascending"}`,it=(s()==="queries"?c():u())===-1,R=L(o().actionsContainer,"tsqd-actions-container"),he=L(o().actionsBtn,"tsqd-actions-btn","tsqd-action-clear-cache"),Qe=`Clear ${s()} cache`,Me=L(o().actionsBtn,zr()&&o().actionsBtnOffline,"tsqd-actions-btn","tsqd-action-mock-offline-behavior"),ce=`${zr()?"Unset offline mocking behavior":"Mock offline behavior"}`,xe=zr(),qe=`${zr()?"Unset offline mocking behavior":"Mock offline behavior"}`;return ne!==k.e&&D(M,k.e=ne),ie!==k.t&&D(C,k.t=ie),ye!==k.a&&D($,k.a=ye),B!==k.o&&D(E,k.o=B),Te!==k.i&&D(N,k.i=Te),Ae!==k.n&&D(H,k.n=Ae),ot!==k.s&&D(ue,k.s=ot),Oe!==k.h&&D(ge,k.h=Oe),jt!==k.r&&D(j,k.r=jt),Tt!==k.d&&D(te,k.d=Tt),Rt!==k.l&&D(z,k.l=Rt),wt!==k.u&&O(pe,"aria-label",k.u=wt),it!==k.c&&O(pe,"aria-pressed",k.c=it),R!==k.w&&D(me,k.w=R),he!==k.m&&D(Ie,k.m=he),Qe!==k.f&&O(Ie,"title",k.f=Qe),Me!==k.y&&D($e,k.y=Me),ce!==k.g&&O($e,"aria-label",k.g=ce),xe!==k.p&&O($e,"aria-pressed",k.p=xe),qe!==k.b&&O($e,"title",k.b=qe),k},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0,f:void 0,y:void 0,g:void 0,p:void 0,b:void 0}),X(()=>te.value=s()==="queries"?e.localStore.filter||"":e.localStore.mutationFilter||""),M})(),v(W,{get when(){return Le(()=>s()==="queries")()&&bt()},get children(){return v(R1,{})}}),v(W,{get when(){return Le(()=>s()==="mutations")()&&Cn()},get children(){return v(L1,{})}})]},_1=e=>{const t=Be(),n=Y().shadowDOMTarget?fe.bind({target:Y().shadowDOMTarget}):fe,r=_(()=>t()==="dark"?At(n):Pt(n)),{colors:o,alpha:i}=P,s=(h,p)=>t()==="dark"?p:h,l=Ge(h=>h().find({queryKey:e.query.queryKey})?.state,!0,h=>h.query.queryHash===e.query.queryHash),a=Ge(h=>h().find({queryKey:e.query.queryKey})?.isDisabled()??!1,!0,h=>h.query.queryHash===e.query.queryHash),c=Ge(h=>h().find({queryKey:e.query.queryKey})?.isStatic()??!1,!0,h=>h.query.queryHash===e.query.queryHash),d=Ge(h=>h().find({queryKey:e.query.queryKey})?.isStale()??!1,!0,h=>h.query.queryHash===e.query.queryHash),u=Ge(h=>h().find({queryKey:e.query.queryKey})?.getObserversCount()??0,!0,h=>h.query.queryHash===e.query.queryHash),f=_(()=>Dg({queryState:l(),observerCount:u(),isStale:d()})),g=()=>f()==="gray"?n`
182
+ background-color: ${s(o[f()][200],o[f()][700])};
183
+ color: ${s(o[f()][700],o[f()][300])};
184
+ `:n`
185
+ background-color: ${s(o[f()][200]+i[80],o[f()][900])};
186
+ color: ${s(o[f()][800],o[f()][300])};
187
+ `;return v(W,{get when(){return l()},get children(){var h=Bc(),p=h.firstChild,y=p.nextSibling;return h.$$click=()=>_o(e.query.queryHash===bt()?null:e.query.queryHash),A(p,u),A(y,()=>e.query.queryHash),A(h,v(W,{get when(){return a()},get children(){return p1()}}),null),A(h,v(W,{get when(){return c()},get children(){return m1()}}),null),X(m=>{var b=L(r().queryRow,bt()===e.query.queryHash&&r().selectedQueryRow,"tsqd-query-row"),w=`Query key ${e.query.queryHash}`,x=L(g(),"tsqd-query-observer-count");return b!==m.e&&D(h,m.e=b),w!==m.t&&O(h,"aria-label",m.t=w),x!==m.a&&D(p,m.a=x),m},{e:void 0,t:void 0,a:void 0}),h}})},O1=e=>{const t=Be(),n=Y().shadowDOMTarget?fe.bind({target:Y().shadowDOMTarget}):fe,r=_(()=>t()==="dark"?At(n):Pt(n)),{colors:o,alpha:i}=P,s=(f,g)=>t()==="dark"?g:f,l=Dt(f=>f().getAll().find(p=>p.mutationId===e.mutation.mutationId)?.state),a=Dt(f=>{const h=f().getAll().find(p=>p.mutationId===e.mutation.mutationId);return h?h.state.isPaused:!1}),c=Dt(f=>{const h=f().getAll().find(p=>p.mutationId===e.mutation.mutationId);return h?h.state.status:"idle"}),d=_(()=>Wn({isPaused:a(),status:c()})),u=()=>d()==="gray"?n`
188
+ background-color: ${s(o[d()][200],o[d()][700])};
189
+ color: ${s(o[d()][700],o[d()][300])};
190
+ `:n`
191
+ background-color: ${s(o[d()][200]+i[80],o[d()][900])};
192
+ color: ${s(o[d()][800],o[d()][300])};
193
+ `;return v(W,{get when(){return l()},get children(){var f=Bc(),g=f.firstChild,h=g.nextSibling;return f.$$click=()=>{Hc(e.mutation.mutationId===Cn()?null:e.mutation.mutationId)},A(g,v(W,{get when(){return d()==="purple"},get children(){return v(Fv,{})}}),null),A(g,v(W,{get when(){return d()==="green"},get children(){return v(vs,{})}}),null),A(g,v(W,{get when(){return d()==="red"},get children(){return v(Iv,{})}}),null),A(g,v(W,{get when(){return d()==="yellow"},get children(){return v(Av,{})}}),null),A(h,v(W,{get when(){return e.mutation.options.mutationKey},get children(){return[Le(()=>JSON.stringify(e.mutation.options.mutationKey))," -"," "]}}),null),A(h,()=>new Date(e.mutation.state.submittedAt).toLocaleString(),null),X(p=>{var y=L(r().queryRow,Cn()===e.mutation.mutationId&&r().selectedQueryRow,"tsqd-query-row"),m=`Mutation submitted at ${new Date(e.mutation.state.submittedAt).toLocaleString()}`,b=L(u(),"tsqd-query-observer-count");return y!==p.e&&D(f,p.e=y),m!==p.t&&O(f,"aria-label",p.t=m),b!==p.a&&D(g,p.a=b),p},{e:void 0,t:void 0,a:void 0}),f}})},D1=()=>{const e=Ge(a=>a().getAll().filter(c=>Qn(c)==="stale").length),t=Ge(a=>a().getAll().filter(c=>Qn(c)==="fresh").length),n=Ge(a=>a().getAll().filter(c=>Qn(c)==="fetching").length),r=Ge(a=>a().getAll().filter(c=>Qn(c)==="paused").length),o=Ge(a=>a().getAll().filter(c=>Qn(c)==="inactive").length),i=Be(),s=Y().shadowDOMTarget?fe.bind({target:Y().shadowDOMTarget}):fe,l=_(()=>i()==="dark"?At(s):Pt(s));return(()=>{var a=qr();return A(a,v(dn,{label:"Fresh",color:"green",get count(){return t()}}),null),A(a,v(dn,{label:"Fetching",color:"blue",get count(){return n()}}),null),A(a,v(dn,{label:"Paused",color:"purple",get count(){return r()}}),null),A(a,v(dn,{label:"Stale",color:"yellow",get count(){return e()}}),null),A(a,v(dn,{label:"Inactive",color:"gray",get count(){return o()}}),null),X(()=>D(a,L(l().queryStatusContainer,"tsqd-query-status-container"))),a})()},T1=()=>{const e=Dt(l=>l().getAll().filter(a=>Wn({isPaused:a.state.isPaused,status:a.state.status})==="green").length),t=Dt(l=>l().getAll().filter(a=>Wn({isPaused:a.state.isPaused,status:a.state.status})==="yellow").length),n=Dt(l=>l().getAll().filter(a=>Wn({isPaused:a.state.isPaused,status:a.state.status})==="purple").length),r=Dt(l=>l().getAll().filter(a=>Wn({isPaused:a.state.isPaused,status:a.state.status})==="red").length),o=Be(),i=Y().shadowDOMTarget?fe.bind({target:Y().shadowDOMTarget}):fe,s=_(()=>o()==="dark"?At(i):Pt(i));return(()=>{var l=qr();return A(l,v(dn,{label:"Paused",color:"purple",get count(){return n()}}),null),A(l,v(dn,{label:"Pending",color:"yellow",get count(){return t()}}),null),A(l,v(dn,{label:"Success",color:"green",get count(){return e()}}),null),A(l,v(dn,{label:"Error",color:"red",get count(){return r()}}),null),X(()=>D(l,L(s().queryStatusContainer,"tsqd-query-status-container"))),l})()},dn=e=>{const t=Be(),n=Y().shadowDOMTarget?fe.bind({target:Y().shadowDOMTarget}):fe,r=_(()=>t()==="dark"?At(n):Pt(n)),{colors:o,alpha:i}=P,s=(g,h)=>t()==="dark"?h:g;let l;const[a,c]=q(!1),[d,u]=q(!1),f=_(()=>!(bt()&&Ot()<E0&&Ot()>_n||Ot()<_n));return(()=>{var g=b1(),h=g.firstChild,p=h.nextSibling,y=l;return typeof y=="function"?Gn(y,g):l=g,g.addEventListener("mouseleave",()=>{c(!1),u(!1)}),g.addEventListener("mouseenter",()=>c(!0)),g.addEventListener("blur",()=>u(!1)),g.addEventListener("focus",()=>u(!0)),ma(g,le({get disabled(){return f()},get class(){return L(r().queryStatusTag,!f()&&n`
194
+ cursor: pointer;
195
+ &:hover {
196
+ background: ${s(o.gray[200],o.darkGray[400])}${i[80]};
197
+ }
198
+ `,"tsqd-query-status-tag",`tsqd-query-status-tag-${e.label.toLowerCase()}`)}},()=>a()||d()?{"aria-describedby":"tsqd-status-tooltip"}:{}),!1,!0),A(g,v(W,{get when(){return Le(()=>!f())()&&(a()||d())},get children(){var m=y1();return A(m,()=>e.label),X(()=>D(m,L(r().statusTooltip,"tsqd-query-status-tooltip"))),m}}),h),A(g,v(W,{get when(){return f()},get children(){var m=v1();return A(m,()=>e.label),X(()=>D(m,L(r().queryStatusTagLabel,"tsqd-query-status-tag-label"))),m}}),p),A(p,()=>e.count),X(m=>{var b=L(n`
199
+ width: ${P.size[1.5]};
200
+ height: ${P.size[1.5]};
201
+ border-radius: ${P.border.radius.full};
202
+ background-color: ${P.colors[e.color][500]};
203
+ `,"tsqd-query-status-tag-dot"),w=L(r().queryStatusCount,e.count>0&&e.color!=="gray"&&n`
204
+ background-color: ${s(o[e.color][100],o[e.color][900])};
205
+ color: ${s(o[e.color][700],o[e.color][300])};
206
+ `,"tsqd-query-status-tag-count");return b!==m.e&&D(h,m.e=b),w!==m.t&&D(p,m.t=w),m},{e:void 0,t:void 0}),g})()},R1=()=>{const e=Be(),t=Y().shadowDOMTarget?fe.bind({target:Y().shadowDOMTarget}):fe,n=_(()=>e()==="dark"?At(t):Pt(t)),{colors:r}=P,o=($,E)=>e()==="dark"?E:$,i=Y().client,[s,l]=q(!1),[a,c]=q("view"),[d,u]=q(!1),f=_(()=>Y().errorTypes||[]),g=Ge($=>$().getAll().find(E=>E.queryHash===bt()),!1),h=Ge($=>$().getAll().find(E=>E.queryHash===bt()),!1),p=Ge($=>$().getAll().find(E=>E.queryHash===bt())?.state,!1),y=Ge($=>$().getAll().find(E=>E.queryHash===bt())?.state.data,!1),m=Ge($=>{const E=$().getAll().find(N=>N.queryHash===bt());return E?Qn(E):"inactive"}),b=Ge($=>{const E=$().getAll().find(N=>N.queryHash===bt());return E?E.state.status:"pending"}),w=Ge($=>$().getAll().find(E=>E.queryHash===bt())?.getObserversCount()??0),x=_(()=>Tg(m())),S=()=>{Ut({type:"REFETCH",queryHash:g()?.queryHash}),g()?.fetch()?.catch(()=>{})},I=$=>{const E=g();if(!E)return;Ut({type:"TRIGGER_ERROR",queryHash:E.queryHash,metadata:{error:$?.name}});const N=$?.initializer(E)??new Error("Unknown error from devtools"),H=E.options;E.setState({status:"error",error:N,fetchMeta:{...E.state.fetchMeta,__previousQueryOptions:H}})},M=()=>{const $=g();if(!$)return;Ut({type:"RESTORE_LOADING",queryHash:$.queryHash});const E=$.state,N=$.state.fetchMeta?$.state.fetchMeta.__previousQueryOptions:null;$.cancel({silent:!0}),$.setState({...E,fetchStatus:"idle",fetchMeta:null}),N&&$.fetch(N)};Z(()=>{m()!=="fetching"&&l(!1)});const C=()=>x()==="gray"?t`
207
+ background-color: ${o(r[x()][200],r[x()][700])};
208
+ color: ${o(r[x()][700],r[x()][300])};
209
+ border-color: ${o(r[x()][400],r[x()][600])};
210
+ `:t`
211
+ background-color: ${o(r[x()][100],r[x()][900])};
212
+ color: ${o(r[x()][700],r[x()][300])};
213
+ border-color: ${o(r[x()][400],r[x()][600])};
214
+ `;return v(W,{get when(){return Le(()=>!!g())()&&p()},get children(){var $=$1(),E=$.firstChild,N=E.nextSibling,H=N.firstChild,J=H.firstChild,ue=J.firstChild,ge=J.nextSibling,j=H.nextSibling,te=j.firstChild,z=te.nextSibling,pe=j.nextSibling,me=pe.firstChild,Ie=me.nextSibling,$e=N.nextSibling,G=$e.nextSibling,k=G.firstChild,ne=k.firstChild,ie=k.nextSibling,ye=ie.firstChild,B=ie.nextSibling,Te=B.firstChild,Ae=B.nextSibling,ot=Ae.firstChild,Oe=Ae.nextSibling,jt=Oe.firstChild,Tt=jt.nextSibling,Rt=G.nextSibling;Rt.firstChild;var wt=Rt.nextSibling,it=wt.nextSibling;return A(ue,()=>lo(g().queryKey,!0)),A(ge,m),A(z,w),A(Ie,()=>new Date(p().dataUpdatedAt).toLocaleTimeString()),k.$$click=S,ie.$$click=()=>{Ut({type:"INVALIDATE",queryHash:g()?.queryHash}),i.invalidateQueries(g())},B.$$click=()=>{Ut({type:"RESET",queryHash:g()?.queryHash}),i.resetQueries(g())},Ae.$$click=()=>{Ut({type:"REMOVE",queryHash:g()?.queryHash}),i.removeQueries(g()),_o(null)},Oe.$$click=()=>{if(g()?.state.data===void 0)l(!0),M();else{const R=g();if(!R)return;Ut({type:"TRIGGER_LOADING",queryHash:R.queryHash});const he=R.options;R.fetch({...he,queryFn:()=>new Promise(()=>{}),gcTime:-1}),R.setState({data:void 0,status:"pending",fetchMeta:{...R.state.fetchMeta,__previousQueryOptions:he}})}},A(Oe,()=>b()==="pending"?"Restore":"Trigger",Tt),A(G,v(W,{get when(){return f().length===0||b()==="error"},get children(){var R=w1(),he=R.firstChild,Qe=he.nextSibling;return R.$$click=()=>{g().state.error?(Ut({type:"RESTORE_ERROR",queryHash:g()?.queryHash}),i.resetQueries(g())):I()},A(R,()=>b()==="error"?"Restore":"Trigger",Qe),X(Me=>{var ce=L(t`
215
+ color: ${o(r.red[500],r.red[400])};
216
+ `,"tsqd-query-details-actions-btn","tsqd-query-details-action-error"),xe=b()==="pending",qe=t`
217
+ background-color: ${o(r.red[500],r.red[400])};
218
+ `;return ce!==Me.e&&D(R,Me.e=ce),xe!==Me.t&&(R.disabled=Me.t=xe),qe!==Me.a&&D(he,Me.a=qe),Me},{e:void 0,t:void 0,a:void 0}),R}}),null),A(G,v(W,{get when(){return!(f().length===0||b()==="error")},get children(){var R=x1(),he=R.firstChild,Qe=he.nextSibling,Me=Qe.nextSibling;return Me.firstChild,Me.addEventListener("change",ce=>{const xe=f().find(qe=>qe.name===ce.currentTarget.value);I(xe)}),A(Me,v(_f,{get each(){return f()},children:ce=>(()=>{var xe=k1();return A(xe,()=>ce.name),X(()=>xe.value=ce.name),xe})()}),null),A(R,v(ir,{}),null),X(ce=>{var xe=L(n().actionsSelect,"tsqd-query-details-actions-btn","tsqd-query-details-action-error-multiple"),qe=t`
219
+ background-color: ${P.colors.red[400]};
220
+ `,Se=b()==="pending";return xe!==ce.e&&D(R,ce.e=xe),qe!==ce.t&&D(he,ce.t=qe),Se!==ce.a&&(Me.disabled=ce.a=Se),ce},{e:void 0,t:void 0,a:void 0}),R}}),null),A(Rt,()=>a()==="view"?"Explorer":"Editor",null),A($,v(W,{get when(){return a()==="view"},get children(){var R=S1();return A(R,v(Sn,{label:"Data",defaultExpanded:["Data"],get value(){return y()},editable:!0,onEdit:()=>c("edit"),get activeQuery(){return g()}})),X(he=>(he=P.size[2])!=null?R.style.setProperty("padding",he):R.style.removeProperty("padding")),R}}),wt),A($,v(W,{get when(){return a()==="edit"},get children(){var R=C1(),he=R.firstChild,Qe=he.nextSibling,Me=Qe.firstChild,ce=Me.nextSibling,xe=ce.firstChild,qe=xe.nextSibling;return R.addEventListener("submit",Se=>{Se.preventDefault();const Lt=new FormData(Se.currentTarget).get("data");try{const dt=JSON.parse(Lt);g().setState({...g().state,data:dt}),c("view")}catch{u(!0)}}),he.addEventListener("focus",()=>u(!1)),A(Me,()=>d()?"Invalid Value":""),xe.$$click=()=>c("view"),X(Se=>{var ct=L(n().devtoolsEditForm,"tsqd-query-details-data-editor"),Lt=n().devtoolsEditTextarea,dt=d(),qt=n().devtoolsEditFormActions,Je=n().devtoolsEditFormError,Qt=n().devtoolsEditFormActionContainer,et=L(n().devtoolsEditFormAction,t`
221
+ color: ${o(r.gray[600],r.gray[300])};
222
+ `),Wt=L(n().devtoolsEditFormAction,t`
223
+ color: ${o(r.blue[600],r.blue[400])};
224
+ `);return ct!==Se.e&&D(R,Se.e=ct),Lt!==Se.t&&D(he,Se.t=Lt),dt!==Se.a&&O(he,"data-error",Se.a=dt),qt!==Se.o&&D(Qe,Se.o=qt),Je!==Se.i&&D(Me,Se.i=Je),Qt!==Se.n&&D(ce,Se.n=Qt),et!==Se.s&&D(xe,Se.s=et),Wt!==Se.h&&D(qe,Se.h=Wt),Se},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0}),X(()=>he.value=JSON.stringify(y(),null,2)),R}}),wt),A(it,v(Sn,{label:"Query",defaultExpanded:["Query","queryKey"],get value(){return h()}})),X(R=>{var he=L(n().detailsContainer,"tsqd-query-details-container"),Qe=L(n().detailsHeader,"tsqd-query-details-header"),Me=L(n().detailsBody,"tsqd-query-details-summary-container"),ce=L(n().queryDetailsStatus,C()),xe=L(n().detailsHeader,"tsqd-query-details-header"),qe=L(n().actionsBody,"tsqd-query-details-actions-container"),Se=L(t`
225
+ color: ${o(r.blue[600],r.blue[400])};
226
+ `,"tsqd-query-details-actions-btn","tsqd-query-details-action-refetch"),ct=m()==="fetching",Lt=t`
227
+ background-color: ${o(r.blue[600],r.blue[400])};
228
+ `,dt=L(t`
229
+ color: ${o(r.yellow[600],r.yellow[400])};
230
+ `,"tsqd-query-details-actions-btn","tsqd-query-details-action-invalidate"),qt=b()==="pending",Je=t`
231
+ background-color: ${o(r.yellow[600],r.yellow[400])};
232
+ `,Qt=L(t`
233
+ color: ${o(r.gray[600],r.gray[300])};
234
+ `,"tsqd-query-details-actions-btn","tsqd-query-details-action-reset"),et=b()==="pending",Wt=t`
235
+ background-color: ${o(r.gray[600],r.gray[400])};
236
+ `,lr=L(t`
237
+ color: ${o(r.pink[500],r.pink[400])};
238
+ `,"tsqd-query-details-actions-btn","tsqd-query-details-action-remove"),$n=m()==="fetching",Ln=t`
239
+ background-color: ${o(r.pink[500],r.pink[400])};
240
+ `,kn=L(t`
241
+ color: ${o(r.cyan[500],r.cyan[400])};
242
+ `,"tsqd-query-details-actions-btn","tsqd-query-details-action-loading"),En=s(),ft=t`
243
+ background-color: ${o(r.cyan[500],r.cyan[400])};
244
+ `,qn=L(n().detailsHeader,"tsqd-query-details-header"),zn=L(n().detailsHeader,"tsqd-query-details-header"),fn=P.size[2];return he!==R.e&&D($,R.e=he),Qe!==R.t&&D(E,R.t=Qe),Me!==R.a&&D(N,R.a=Me),ce!==R.o&&D(ge,R.o=ce),xe!==R.i&&D($e,R.i=xe),qe!==R.n&&D(G,R.n=qe),Se!==R.s&&D(k,R.s=Se),ct!==R.h&&(k.disabled=R.h=ct),Lt!==R.r&&D(ne,R.r=Lt),dt!==R.d&&D(ie,R.d=dt),qt!==R.l&&(ie.disabled=R.l=qt),Je!==R.u&&D(ye,R.u=Je),Qt!==R.c&&D(B,R.c=Qt),et!==R.w&&(B.disabled=R.w=et),Wt!==R.m&&D(Te,R.m=Wt),lr!==R.f&&D(Ae,R.f=lr),$n!==R.y&&(Ae.disabled=R.y=$n),Ln!==R.g&&D(ot,R.g=Ln),kn!==R.p&&D(Oe,R.p=kn),En!==R.b&&(Oe.disabled=R.b=En),ft!==R.T&&D(jt,R.T=ft),qn!==R.A&&D(Rt,R.A=qn),zn!==R.O&&D(wt,R.O=zn),fn!==R.I&&((R.I=fn)!=null?it.style.setProperty("padding",fn):it.style.removeProperty("padding")),R},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0,f:void 0,y:void 0,g:void 0,p:void 0,b:void 0,T:void 0,A:void 0,O:void 0,I:void 0}),$}})},L1=()=>{const e=Be(),t=Y().shadowDOMTarget?fe.bind({target:Y().shadowDOMTarget}):fe,n=_(()=>e()==="dark"?At(t):Pt(t)),{colors:r}=P,o=(d,u)=>e()==="dark"?u:d,i=Dt(d=>{const f=d().getAll().find(g=>g.mutationId===Cn());return f?f.state.isPaused:!1}),s=Dt(d=>{const f=d().getAll().find(g=>g.mutationId===Cn());return f?f.state.status:"idle"}),l=_(()=>Wn({isPaused:i(),status:s()})),a=Dt(d=>d().getAll().find(u=>u.mutationId===Cn()),!1),c=()=>l()==="gray"?t`
245
+ background-color: ${o(r[l()][200],r[l()][700])};
246
+ color: ${o(r[l()][700],r[l()][300])};
247
+ border-color: ${o(r[l()][400],r[l()][600])};
248
+ `:t`
249
+ background-color: ${o(r[l()][100],r[l()][900])};
250
+ color: ${o(r[l()][700],r[l()][300])};
251
+ border-color: ${o(r[l()][400],r[l()][600])};
252
+ `;return v(W,{get when(){return a()},get children(){var d=E1(),u=d.firstChild,f=u.nextSibling,g=f.firstChild,h=g.firstChild,p=h.firstChild,y=h.nextSibling,m=g.nextSibling,b=m.firstChild,w=b.nextSibling,x=f.nextSibling,S=x.nextSibling,I=S.nextSibling,M=I.nextSibling,C=M.nextSibling,$=C.nextSibling,E=$.nextSibling,N=E.nextSibling;return A(p,v(W,{get when(){return a().options.mutationKey},fallback:"No mutationKey found",get children(){return lo(a().options.mutationKey,!0)}})),A(y,v(W,{get when(){return l()==="purple"},children:"pending"}),null),A(y,v(W,{get when(){return l()!=="purple"},get children(){return s()}}),null),A(w,()=>new Date(a().state.submittedAt).toLocaleTimeString()),A(S,v(Sn,{label:"Variables",defaultExpanded:["Variables"],get value(){return a().state.variables}})),A(M,v(Sn,{label:"Context",defaultExpanded:["Context"],get value(){return a().state.context}})),A($,v(Sn,{label:"Data",defaultExpanded:["Data"],get value(){return a().state.data}})),A(N,v(Sn,{label:"Mutation",defaultExpanded:["Mutation"],get value(){return a()}})),X(H=>{var J=L(n().detailsContainer,"tsqd-query-details-container"),ue=L(n().detailsHeader,"tsqd-query-details-header"),ge=L(n().detailsBody,"tsqd-query-details-summary-container"),j=L(n().queryDetailsStatus,c()),te=L(n().detailsHeader,"tsqd-query-details-header"),z=P.size[2],pe=L(n().detailsHeader,"tsqd-query-details-header"),me=P.size[2],Ie=L(n().detailsHeader,"tsqd-query-details-header"),$e=P.size[2],G=L(n().detailsHeader,"tsqd-query-details-header"),k=P.size[2];return J!==H.e&&D(d,H.e=J),ue!==H.t&&D(u,H.t=ue),ge!==H.a&&D(f,H.a=ge),j!==H.o&&D(y,H.o=j),te!==H.i&&D(x,H.i=te),z!==H.n&&((H.n=z)!=null?S.style.setProperty("padding",z):S.style.removeProperty("padding")),pe!==H.s&&D(I,H.s=pe),me!==H.h&&((H.h=me)!=null?M.style.setProperty("padding",me):M.style.removeProperty("padding")),Ie!==H.r&&D(C,H.r=Ie),$e!==H.d&&((H.d=$e)!=null?$.style.setProperty("padding",$e):$.style.removeProperty("padding")),G!==H.l&&D(E,H.l=G),k!==H.u&&((H.u=k)!=null?N.style.setProperty("padding",k):N.style.removeProperty("padding")),H},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0}),d}})},Oo=new Map,q1=()=>{const e=_(()=>Y().client.getQueryCache()),t=e().subscribe(n=>{bf(()=>{for(const[r,o]of Oo.entries())o.shouldUpdate(n)&&o.setter(r(e))})});return ee(()=>{Oo.clear(),t()}),t},Ge=(e,t=!0,n=()=>!0)=>{const r=_(()=>Y().client.getQueryCache()),[o,i]=q(e(r),t?void 0:{equals:!1});return Z(()=>{i(e(r))}),Oo.set(e,{setter:i,shouldUpdate:n}),ee(()=>{Oo.delete(e)}),o},Do=new Map,z1=()=>{const e=_(()=>Y().client.getMutationCache()),t=e().subscribe(()=>{for(const[n,r]of Do.entries())queueMicrotask(()=>{r(n(e))})});return ee(()=>{Do.clear(),t()}),t},Dt=(e,t=!0)=>{const n=_(()=>Y().client.getMutationCache()),[r,o]=q(e(n),t?void 0:{equals:!1});return Z(()=>{o(e(n))}),Do.set(e,o),ee(()=>{Do.delete(e)}),r},N1="@tanstack/query-devtools-event",Ut=({type:e,queryHash:t,metadata:n})=>{const r=new CustomEvent(N1,{detail:{type:e,queryHash:t,metadata:n},bubbles:!0,cancelable:!0});window.dispatchEvent(r)},Gc=(e,t)=>{const{colors:n,font:r,size:o,alpha:i,shadow:s,border:l}=P,a=(c,d)=>e==="light"?c:d;return{devtoolsBtn:t`
253
+ z-index: 100000;
254
+ position: fixed;
255
+ padding: 4px;
256
+ text-align: left;
257
+
258
+ display: flex;
259
+ align-items: center;
260
+ justify-content: center;
261
+ border-radius: 9999px;
262
+ box-shadow: ${s.md()};
263
+ overflow: hidden;
264
+
265
+ & div {
266
+ position: absolute;
267
+ top: -8px;
268
+ left: -8px;
269
+ right: -8px;
270
+ bottom: -8px;
271
+ border-radius: 9999px;
272
+
273
+ & svg {
274
+ position: absolute;
275
+ width: 100%;
276
+ height: 100%;
277
+ }
278
+ filter: blur(6px) saturate(1.2) contrast(1.1);
279
+ }
280
+
281
+ &:focus-within {
282
+ outline-offset: 2px;
283
+ outline: 3px solid ${n.green[600]};
284
+ }
285
+
286
+ & button {
287
+ position: relative;
288
+ z-index: 1;
289
+ padding: 0;
290
+ border-radius: 9999px;
291
+ background-color: transparent;
292
+ border: none;
293
+ height: 40px;
294
+ display: flex;
295
+ width: 40px;
296
+ overflow: hidden;
297
+ cursor: pointer;
298
+ outline: none;
299
+ & svg {
300
+ position: absolute;
301
+ width: 100%;
302
+ height: 100%;
303
+ }
304
+ }
305
+ `,panel:t`
306
+ position: fixed;
307
+ z-index: 9999;
308
+ display: flex;
309
+ gap: ${P.size[.5]};
310
+ & * {
311
+ box-sizing: border-box;
312
+ text-transform: none;
313
+ }
314
+
315
+ & *::-webkit-scrollbar {
316
+ width: 7px;
317
+ }
318
+
319
+ & *::-webkit-scrollbar-track {
320
+ background: transparent;
321
+ }
322
+
323
+ & *::-webkit-scrollbar-thumb {
324
+ background: ${a(n.gray[300],n.darkGray[200])};
325
+ }
326
+
327
+ & *::-webkit-scrollbar-thumb:hover {
328
+ background: ${a(n.gray[400],n.darkGray[300])};
329
+ }
330
+ `,parentPanel:t`
331
+ z-index: 9999;
332
+ display: flex;
333
+ height: 100%;
334
+ gap: ${P.size[.5]};
335
+ & * {
336
+ box-sizing: border-box;
337
+ text-transform: none;
338
+ }
339
+
340
+ & *::-webkit-scrollbar {
341
+ width: 7px;
342
+ }
343
+
344
+ & *::-webkit-scrollbar-track {
345
+ background: transparent;
346
+ }
347
+
348
+ & *::-webkit-scrollbar-thumb {
349
+ background: ${a(n.gray[300],n.darkGray[200])};
350
+ }
351
+
352
+ & *::-webkit-scrollbar-thumb:hover {
353
+ background: ${a(n.gray[400],n.darkGray[300])};
354
+ }
355
+ `,"devtoolsBtn-position-bottom-right":t`
356
+ bottom: 12px;
357
+ right: 12px;
358
+ `,"devtoolsBtn-position-bottom-left":t`
359
+ bottom: 12px;
360
+ left: 12px;
361
+ `,"devtoolsBtn-position-top-left":t`
362
+ top: 12px;
363
+ left: 12px;
364
+ `,"devtoolsBtn-position-top-right":t`
365
+ top: 12px;
366
+ right: 12px;
367
+ `,"devtoolsBtn-position-relative":t`
368
+ position: relative;
369
+ `,"panel-position-top":t`
370
+ top: 0;
371
+ right: 0;
372
+ left: 0;
373
+ max-height: 90%;
374
+ min-height: ${o[14]};
375
+ border-bottom: ${a(n.gray[400],n.darkGray[300])} 1px solid;
376
+ `,"panel-position-bottom":t`
377
+ bottom: 0;
378
+ right: 0;
379
+ left: 0;
380
+ max-height: 90%;
381
+ min-height: ${o[14]};
382
+ border-top: ${a(n.gray[400],n.darkGray[300])} 1px solid;
383
+ `,"panel-position-right":t`
384
+ bottom: 0;
385
+ right: 0;
386
+ top: 0;
387
+ border-left: ${a(n.gray[400],n.darkGray[300])} 1px solid;
388
+ max-width: 90%;
389
+ `,"panel-position-left":t`
390
+ bottom: 0;
391
+ left: 0;
392
+ top: 0;
393
+ border-right: ${a(n.gray[400],n.darkGray[300])} 1px solid;
394
+ max-width: 90%;
395
+ `,closeBtn:t`
396
+ position: absolute;
397
+ cursor: pointer;
398
+ z-index: 5;
399
+ display: flex;
400
+ align-items: center;
401
+ justify-content: center;
402
+ outline: none;
403
+ background-color: ${a(n.gray[50],n.darkGray[700])};
404
+ &:hover {
405
+ background-color: ${a(n.gray[200],n.darkGray[500])};
406
+ }
407
+ &:focus-visible {
408
+ outline: 2px solid ${n.blue[600]};
409
+ }
410
+ & svg {
411
+ color: ${a(n.gray[600],n.gray[400])};
412
+ width: ${o[2]};
413
+ height: ${o[2]};
414
+ }
415
+ `,"closeBtn-position-top":t`
416
+ bottom: 0;
417
+ right: ${o[2]};
418
+ transform: translate(0, 100%);
419
+ border-right: ${a(n.gray[400],n.darkGray[300])} 1px solid;
420
+ border-left: ${a(n.gray[400],n.darkGray[300])} 1px solid;
421
+ border-top: none;
422
+ border-bottom: ${a(n.gray[400],n.darkGray[300])} 1px solid;
423
+ border-radius: 0px 0px ${l.radius.sm} ${l.radius.sm};
424
+ padding: ${o[.5]} ${o[1.5]} ${o[1]} ${o[1.5]};
425
+
426
+ &::after {
427
+ content: ' ';
428
+ position: absolute;
429
+ bottom: 100%;
430
+ left: -${o[2.5]};
431
+ height: ${o[1.5]};
432
+ width: calc(100% + ${o[5]});
433
+ }
434
+
435
+ & svg {
436
+ transform: rotate(180deg);
437
+ }
438
+ `,"closeBtn-position-bottom":t`
439
+ top: 0;
440
+ right: ${o[2]};
441
+ transform: translate(0, -100%);
442
+ border-right: ${a(n.gray[400],n.darkGray[300])} 1px solid;
443
+ border-left: ${a(n.gray[400],n.darkGray[300])} 1px solid;
444
+ border-top: ${a(n.gray[400],n.darkGray[300])} 1px solid;
445
+ border-bottom: none;
446
+ border-radius: ${l.radius.sm} ${l.radius.sm} 0px 0px;
447
+ padding: ${o[1]} ${o[1.5]} ${o[.5]} ${o[1.5]};
448
+
449
+ &::after {
450
+ content: ' ';
451
+ position: absolute;
452
+ top: 100%;
453
+ left: -${o[2.5]};
454
+ height: ${o[1.5]};
455
+ width: calc(100% + ${o[5]});
456
+ }
457
+ `,"closeBtn-position-right":t`
458
+ bottom: ${o[2]};
459
+ left: 0;
460
+ transform: translate(-100%, 0);
461
+ border-right: none;
462
+ border-left: ${a(n.gray[400],n.darkGray[300])} 1px solid;
463
+ border-top: ${a(n.gray[400],n.darkGray[300])} 1px solid;
464
+ border-bottom: ${a(n.gray[400],n.darkGray[300])} 1px solid;
465
+ border-radius: ${l.radius.sm} 0px 0px ${l.radius.sm};
466
+ padding: ${o[1.5]} ${o[.5]} ${o[1.5]} ${o[1]};
467
+
468
+ &::after {
469
+ content: ' ';
470
+ position: absolute;
471
+ left: 100%;
472
+ height: calc(100% + ${o[5]});
473
+ width: ${o[1.5]};
474
+ }
475
+
476
+ & svg {
477
+ transform: rotate(-90deg);
478
+ }
479
+ `,"closeBtn-position-left":t`
480
+ bottom: ${o[2]};
481
+ right: 0;
482
+ transform: translate(100%, 0);
483
+ border-left: none;
484
+ border-right: ${a(n.gray[400],n.darkGray[300])} 1px solid;
485
+ border-top: ${a(n.gray[400],n.darkGray[300])} 1px solid;
486
+ border-bottom: ${a(n.gray[400],n.darkGray[300])} 1px solid;
487
+ border-radius: 0px ${l.radius.sm} ${l.radius.sm} 0px;
488
+ padding: ${o[1.5]} ${o[1]} ${o[1.5]} ${o[.5]};
489
+
490
+ &::after {
491
+ content: ' ';
492
+ position: absolute;
493
+ right: 100%;
494
+ height: calc(100% + ${o[5]});
495
+ width: ${o[1.5]};
496
+ }
497
+
498
+ & svg {
499
+ transform: rotate(90deg);
500
+ }
501
+ `,queriesContainer:t`
502
+ flex: 1 1 700px;
503
+ background-color: ${a(n.gray[50],n.darkGray[700])};
504
+ display: flex;
505
+ flex-direction: column;
506
+ & * {
507
+ font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
508
+ }
509
+ `,dragHandle:t`
510
+ position: absolute;
511
+ transition: background-color 0.125s ease;
512
+ &:hover {
513
+ background-color: ${n.purple[400]}${a("",i[90])};
514
+ }
515
+ z-index: 4;
516
+ `,"dragHandle-position-top":t`
517
+ bottom: 0;
518
+ width: 100%;
519
+ height: 3px;
520
+ cursor: ns-resize;
521
+ `,"dragHandle-position-bottom":t`
522
+ top: 0;
523
+ width: 100%;
524
+ height: 3px;
525
+ cursor: ns-resize;
526
+ `,"dragHandle-position-right":t`
527
+ left: 0;
528
+ width: 3px;
529
+ height: 100%;
530
+ cursor: ew-resize;
531
+ `,"dragHandle-position-left":t`
532
+ right: 0;
533
+ width: 3px;
534
+ height: 100%;
535
+ cursor: ew-resize;
536
+ `,row:t`
537
+ display: flex;
538
+ justify-content: space-between;
539
+ align-items: center;
540
+ padding: ${P.size[2]} ${P.size[2.5]};
541
+ gap: ${P.size[2.5]};
542
+ border-bottom: ${a(n.gray[300],n.darkGray[500])} 1px solid;
543
+ align-items: center;
544
+ & > button {
545
+ padding: 0;
546
+ background: transparent;
547
+ border: none;
548
+ display: flex;
549
+ gap: ${o[.5]};
550
+ flex-direction: column;
551
+ }
552
+ `,logoAndToggleContainer:t`
553
+ display: flex;
554
+ gap: ${P.size[3]};
555
+ align-items: center;
556
+ `,logo:t`
557
+ cursor: pointer;
558
+ display: flex;
559
+ flex-direction: column;
560
+ background-color: transparent;
561
+ border: none;
562
+ gap: ${P.size[.5]};
563
+ padding: 0px;
564
+ &:hover {
565
+ opacity: 0.7;
566
+ }
567
+ &:focus-visible {
568
+ outline-offset: 4px;
569
+ border-radius: ${l.radius.xs};
570
+ outline: 2px solid ${n.blue[800]};
571
+ }
572
+ `,tanstackLogo:t`
573
+ font-size: ${r.size.md};
574
+ font-weight: ${r.weight.bold};
575
+ line-height: ${r.lineHeight.xs};
576
+ white-space: nowrap;
577
+ color: ${a(n.gray[600],n.gray[300])};
578
+ `,queryFlavorLogo:t`
579
+ font-weight: ${r.weight.semibold};
580
+ font-size: ${r.size.xs};
581
+ background: linear-gradient(
582
+ to right,
583
+ ${a("#ea4037, #ff9b11","#dd524b, #e9a03b")}
584
+ );
585
+ background-clip: text;
586
+ -webkit-background-clip: text;
587
+ line-height: 1;
588
+ -webkit-text-fill-color: transparent;
589
+ white-space: nowrap;
590
+ `,queryStatusContainer:t`
591
+ display: flex;
592
+ gap: ${P.size[2]};
593
+ height: min-content;
594
+ `,queryStatusTag:t`
595
+ display: flex;
596
+ gap: ${P.size[1.5]};
597
+ box-sizing: border-box;
598
+ height: ${P.size[6.5]};
599
+ background: ${a(n.gray[50],n.darkGray[500])};
600
+ color: ${a(n.gray[700],n.gray[300])};
601
+ border-radius: ${P.border.radius.sm};
602
+ font-size: ${r.size.sm};
603
+ padding: ${P.size[1]};
604
+ padding-left: ${P.size[1.5]};
605
+ align-items: center;
606
+ font-weight: ${r.weight.medium};
607
+ border: ${a("1px solid "+n.gray[300],"1px solid transparent")};
608
+ user-select: none;
609
+ position: relative;
610
+ &:focus-visible {
611
+ outline-offset: 2px;
612
+ outline: 2px solid ${n.blue[800]};
613
+ }
614
+ `,queryStatusTagLabel:t`
615
+ font-size: ${r.size.xs};
616
+ `,queryStatusCount:t`
617
+ font-size: ${r.size.xs};
618
+ padding: 0 5px;
619
+ display: flex;
620
+ align-items: center;
621
+ justify-content: center;
622
+ color: ${a(n.gray[500],n.gray[400])};
623
+ background-color: ${a(n.gray[200],n.darkGray[300])};
624
+ border-radius: 2px;
625
+ font-variant-numeric: tabular-nums;
626
+ height: ${P.size[4.5]};
627
+ `,statusTooltip:t`
628
+ position: absolute;
629
+ z-index: 1;
630
+ background-color: ${a(n.gray[50],n.darkGray[500])};
631
+ top: 100%;
632
+ left: 50%;
633
+ transform: translate(-50%, calc(${P.size[2]}));
634
+ padding: ${P.size[.5]} ${P.size[2]};
635
+ border-radius: ${P.border.radius.sm};
636
+ font-size: ${r.size.xs};
637
+ border: 1px solid ${a(n.gray[400],n.gray[600])};
638
+ color: ${a(n.gray[600],n.gray[300])};
639
+
640
+ &::before {
641
+ top: 0px;
642
+ content: ' ';
643
+ display: block;
644
+ left: 50%;
645
+ transform: translate(-50%, -100%);
646
+ position: absolute;
647
+ border-color: transparent transparent
648
+ ${a(n.gray[400],n.gray[600])} transparent;
649
+ border-style: solid;
650
+ border-width: 7px;
651
+ /* transform: rotate(180deg); */
652
+ }
653
+
654
+ &::after {
655
+ top: 0px;
656
+ content: ' ';
657
+ display: block;
658
+ left: 50%;
659
+ transform: translate(-50%, calc(-100% + 2px));
660
+ position: absolute;
661
+ border-color: transparent transparent
662
+ ${a(n.gray[100],n.darkGray[500])} transparent;
663
+ border-style: solid;
664
+ border-width: 7px;
665
+ }
666
+ `,filtersContainer:t`
667
+ display: flex;
668
+ gap: ${P.size[2]};
669
+ & > button {
670
+ cursor: pointer;
671
+ padding: ${P.size[.5]} ${P.size[1.5]} ${P.size[.5]}
672
+ ${P.size[2]};
673
+ border-radius: ${P.border.radius.sm};
674
+ background-color: ${a(n.gray[100],n.darkGray[400])};
675
+ border: 1px solid ${a(n.gray[300],n.darkGray[200])};
676
+ color: ${a(n.gray[700],n.gray[300])};
677
+ font-size: ${r.size.xs};
678
+ display: flex;
679
+ align-items: center;
680
+ line-height: ${r.lineHeight.sm};
681
+ gap: ${P.size[1.5]};
682
+ max-width: 160px;
683
+ &:focus-visible {
684
+ outline-offset: 2px;
685
+ border-radius: ${l.radius.xs};
686
+ outline: 2px solid ${n.blue[800]};
687
+ }
688
+ & svg {
689
+ width: ${P.size[3]};
690
+ height: ${P.size[3]};
691
+ color: ${a(n.gray[500],n.gray[400])};
692
+ }
693
+ }
694
+ `,filterInput:t`
695
+ padding: ${o[.5]} ${o[2]};
696
+ border-radius: ${P.border.radius.sm};
697
+ background-color: ${a(n.gray[100],n.darkGray[400])};
698
+ display: flex;
699
+ box-sizing: content-box;
700
+ align-items: center;
701
+ gap: ${P.size[1.5]};
702
+ max-width: 160px;
703
+ min-width: 100px;
704
+ border: 1px solid ${a(n.gray[300],n.darkGray[200])};
705
+ height: min-content;
706
+ color: ${a(n.gray[600],n.gray[400])};
707
+ & > svg {
708
+ width: ${o[3]};
709
+ height: ${o[3]};
710
+ }
711
+ & input {
712
+ font-size: ${r.size.xs};
713
+ width: 100%;
714
+ background-color: ${a(n.gray[100],n.darkGray[400])};
715
+ border: none;
716
+ padding: 0;
717
+ line-height: ${r.lineHeight.sm};
718
+ color: ${a(n.gray[700],n.gray[300])};
719
+ &::placeholder {
720
+ color: ${a(n.gray[700],n.gray[300])};
721
+ }
722
+ &:focus {
723
+ outline: none;
724
+ }
725
+ }
726
+
727
+ &:focus-within {
728
+ outline-offset: 2px;
729
+ border-radius: ${l.radius.xs};
730
+ outline: 2px solid ${n.blue[800]};
731
+ }
732
+ `,filterSelect:t`
733
+ padding: ${P.size[.5]} ${P.size[2]};
734
+ border-radius: ${P.border.radius.sm};
735
+ background-color: ${a(n.gray[100],n.darkGray[400])};
736
+ display: flex;
737
+ align-items: center;
738
+ gap: ${P.size[1.5]};
739
+ box-sizing: content-box;
740
+ max-width: 160px;
741
+ border: 1px solid ${a(n.gray[300],n.darkGray[200])};
742
+ height: min-content;
743
+ & > svg {
744
+ color: ${a(n.gray[600],n.gray[400])};
745
+ width: ${P.size[2]};
746
+ height: ${P.size[2]};
747
+ }
748
+ & > select {
749
+ appearance: none;
750
+ color: ${a(n.gray[700],n.gray[300])};
751
+ min-width: 100px;
752
+ line-height: ${r.lineHeight.sm};
753
+ font-size: ${r.size.xs};
754
+ background-color: ${a(n.gray[100],n.darkGray[400])};
755
+ border: none;
756
+ &:focus {
757
+ outline: none;
758
+ }
759
+ }
760
+ &:focus-within {
761
+ outline-offset: 2px;
762
+ border-radius: ${l.radius.xs};
763
+ outline: 2px solid ${n.blue[800]};
764
+ }
765
+ `,actionsContainer:t`
766
+ display: flex;
767
+ gap: ${P.size[2]};
768
+ `,actionsBtn:t`
769
+ border-radius: ${P.border.radius.sm};
770
+ background-color: ${a(n.gray[100],n.darkGray[400])};
771
+ border: 1px solid ${a(n.gray[300],n.darkGray[200])};
772
+ width: ${P.size[6.5]};
773
+ height: ${P.size[6.5]};
774
+ justify-content: center;
775
+ display: flex;
776
+ align-items: center;
777
+ gap: ${P.size[1.5]};
778
+ max-width: 160px;
779
+ cursor: pointer;
780
+ padding: 0;
781
+ &:hover {
782
+ background-color: ${a(n.gray[200],n.darkGray[500])};
783
+ }
784
+ & svg {
785
+ color: ${a(n.gray[700],n.gray[300])};
786
+ width: ${P.size[3]};
787
+ height: ${P.size[3]};
788
+ }
789
+ &:focus-visible {
790
+ outline-offset: 2px;
791
+ border-radius: ${l.radius.xs};
792
+ outline: 2px solid ${n.blue[800]};
793
+ }
794
+ `,actionsBtnOffline:t`
795
+ & svg {
796
+ stroke: ${a(n.yellow[700],n.yellow[500])};
797
+ fill: ${a(n.yellow[700],n.yellow[500])};
798
+ }
799
+ `,overflowQueryContainer:t`
800
+ flex: 1;
801
+ overflow-y: auto;
802
+ & > div {
803
+ display: flex;
804
+ flex-direction: column;
805
+ }
806
+ `,queryRow:t`
807
+ display: flex;
808
+ align-items: center;
809
+ padding: 0;
810
+ border: none;
811
+ cursor: pointer;
812
+ color: ${a(n.gray[700],n.gray[300])};
813
+ background-color: ${a(n.gray[50],n.darkGray[700])};
814
+ line-height: 1;
815
+ &:focus {
816
+ outline: none;
817
+ }
818
+ &:focus-visible {
819
+ outline-offset: -2px;
820
+ border-radius: ${l.radius.xs};
821
+ outline: 2px solid ${n.blue[800]};
822
+ }
823
+ &:hover .tsqd-query-hash {
824
+ background-color: ${a(n.gray[200],n.darkGray[600])};
825
+ }
826
+
827
+ & .tsqd-query-observer-count {
828
+ padding: 0 ${P.size[1]};
829
+ user-select: none;
830
+ min-width: ${P.size[6.5]};
831
+ align-self: stretch;
832
+ display: flex;
833
+ align-items: center;
834
+ justify-content: center;
835
+ font-size: ${r.size.xs};
836
+ font-weight: ${r.weight.medium};
837
+ border-bottom-width: 1px;
838
+ border-bottom-style: solid;
839
+ border-bottom: 1px solid ${a(n.gray[300],n.darkGray[700])};
840
+ }
841
+ & .tsqd-query-hash {
842
+ user-select: text;
843
+ font-size: ${r.size.xs};
844
+ display: flex;
845
+ align-items: center;
846
+ min-height: ${P.size[6]};
847
+ flex: 1;
848
+ padding: ${P.size[1]} ${P.size[2]};
849
+ font-family:
850
+ ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
851
+ 'Liberation Mono', 'Courier New', monospace;
852
+ border-bottom: 1px solid ${a(n.gray[300],n.darkGray[400])};
853
+ text-align: left;
854
+ text-overflow: clip;
855
+ word-break: break-word;
856
+ }
857
+
858
+ & .tsqd-query-disabled-indicator {
859
+ align-self: stretch;
860
+ display: flex;
861
+ align-items: center;
862
+ padding: 0 ${P.size[2]};
863
+ color: ${a(n.gray[800],n.gray[300])};
864
+ background-color: ${a(n.gray[300],n.darkGray[600])};
865
+ border-bottom: 1px solid ${a(n.gray[300],n.darkGray[400])};
866
+ font-size: ${r.size.xs};
867
+ }
868
+
869
+ & .tsqd-query-static-indicator {
870
+ align-self: stretch;
871
+ display: flex;
872
+ align-items: center;
873
+ padding: 0 ${P.size[2]};
874
+ color: ${a(n.teal[800],n.teal[300])};
875
+ background-color: ${a(n.teal[100],n.teal[900])};
876
+ border-bottom: 1px solid ${a(n.teal[300],n.teal[700])};
877
+ font-size: ${r.size.xs};
878
+ }
879
+ `,selectedQueryRow:t`
880
+ background-color: ${a(n.gray[200],n.darkGray[500])};
881
+ `,detailsContainer:t`
882
+ flex: 1 1 700px;
883
+ background-color: ${a(n.gray[50],n.darkGray[700])};
884
+ color: ${a(n.gray[700],n.gray[300])};
885
+ font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
886
+ display: flex;
887
+ flex-direction: column;
888
+ overflow-y: auto;
889
+ display: flex;
890
+ text-align: left;
891
+ `,detailsHeader:t`
892
+ font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
893
+ position: sticky;
894
+ top: 0;
895
+ z-index: 2;
896
+ background-color: ${a(n.gray[200],n.darkGray[600])};
897
+ padding: ${P.size[1.5]} ${P.size[2]};
898
+ font-weight: ${r.weight.medium};
899
+ font-size: ${r.size.xs};
900
+ line-height: ${r.lineHeight.xs};
901
+ text-align: left;
902
+ `,detailsBody:t`
903
+ margin: ${P.size[1.5]} 0px ${P.size[2]} 0px;
904
+ & > div {
905
+ display: flex;
906
+ align-items: stretch;
907
+ padding: 0 ${P.size[2]};
908
+ line-height: ${r.lineHeight.sm};
909
+ justify-content: space-between;
910
+ & > span {
911
+ font-size: ${r.size.xs};
912
+ }
913
+ & > span:nth-child(2) {
914
+ font-variant-numeric: tabular-nums;
915
+ }
916
+ }
917
+
918
+ & > div:first-child {
919
+ margin-bottom: ${P.size[1.5]};
920
+ }
921
+
922
+ & code {
923
+ font-family:
924
+ ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
925
+ 'Liberation Mono', 'Courier New', monospace;
926
+ margin: 0;
927
+ font-size: ${r.size.xs};
928
+ line-height: ${r.lineHeight.xs};
929
+ max-width: 100%;
930
+ white-space: pre-wrap;
931
+ overflow-wrap: anywhere;
932
+ word-break: break-word;
933
+ }
934
+
935
+ & pre {
936
+ margin: 0;
937
+ display: flex;
938
+ align-items: center;
939
+ }
940
+ `,queryDetailsStatus:t`
941
+ border: 1px solid ${n.darkGray[200]};
942
+ border-radius: ${P.border.radius.sm};
943
+ font-weight: ${r.weight.medium};
944
+ padding: ${P.size[1]} ${P.size[2.5]};
945
+ `,actionsBody:t`
946
+ flex-wrap: wrap;
947
+ margin: ${P.size[2]} 0px ${P.size[2]} 0px;
948
+ display: flex;
949
+ gap: ${P.size[2]};
950
+ padding: 0px ${P.size[2]};
951
+ & > button {
952
+ font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
953
+ font-size: ${r.size.xs};
954
+ padding: ${P.size[1]} ${P.size[2]};
955
+ display: flex;
956
+ border-radius: ${P.border.radius.sm};
957
+ background-color: ${a(n.gray[100],n.darkGray[600])};
958
+ border: 1px solid ${a(n.gray[300],n.darkGray[400])};
959
+ align-items: center;
960
+ gap: ${P.size[2]};
961
+ font-weight: ${r.weight.medium};
962
+ line-height: ${r.lineHeight.xs};
963
+ cursor: pointer;
964
+ &:focus-visible {
965
+ outline-offset: 2px;
966
+ border-radius: ${l.radius.xs};
967
+ outline: 2px solid ${n.blue[800]};
968
+ }
969
+ &:hover {
970
+ background-color: ${a(n.gray[200],n.darkGray[500])};
971
+ }
972
+
973
+ &:disabled {
974
+ opacity: 0.6;
975
+ cursor: not-allowed;
976
+ }
977
+
978
+ & > span {
979
+ width: ${o[1.5]};
980
+ height: ${o[1.5]};
981
+ border-radius: ${P.border.radius.full};
982
+ }
983
+ }
984
+ `,actionsSelect:t`
985
+ font-size: ${r.size.xs};
986
+ padding: ${P.size[.5]} ${P.size[2]};
987
+ display: flex;
988
+ border-radius: ${P.border.radius.sm};
989
+ overflow: hidden;
990
+ background-color: ${a(n.gray[100],n.darkGray[600])};
991
+ border: 1px solid ${a(n.gray[300],n.darkGray[400])};
992
+ align-items: center;
993
+ gap: ${P.size[2]};
994
+ font-weight: ${r.weight.medium};
995
+ line-height: ${r.lineHeight.sm};
996
+ color: ${a(n.red[500],n.red[400])};
997
+ cursor: pointer;
998
+ position: relative;
999
+ &:hover {
1000
+ background-color: ${a(n.gray[200],n.darkGray[500])};
1001
+ }
1002
+ & > span {
1003
+ width: ${o[1.5]};
1004
+ height: ${o[1.5]};
1005
+ border-radius: ${P.border.radius.full};
1006
+ }
1007
+ &:focus-within {
1008
+ outline-offset: 2px;
1009
+ border-radius: ${l.radius.xs};
1010
+ outline: 2px solid ${n.blue[800]};
1011
+ }
1012
+ & select {
1013
+ position: absolute;
1014
+ top: 0;
1015
+ left: 0;
1016
+ width: 100%;
1017
+ height: 100%;
1018
+ appearance: none;
1019
+ background-color: transparent;
1020
+ border: none;
1021
+ color: transparent;
1022
+ outline: none;
1023
+ }
1024
+
1025
+ & svg path {
1026
+ stroke: ${P.colors.red[400]};
1027
+ }
1028
+ & svg {
1029
+ width: ${P.size[2]};
1030
+ height: ${P.size[2]};
1031
+ }
1032
+ `,settingsMenu:t`
1033
+ display: flex;
1034
+ & * {
1035
+ font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
1036
+ }
1037
+ flex-direction: column;
1038
+ gap: ${o[.5]};
1039
+ border-radius: ${P.border.radius.sm};
1040
+ border: 1px solid ${a(n.gray[300],n.gray[700])};
1041
+ background-color: ${a(n.gray[50],n.darkGray[600])};
1042
+ font-size: ${r.size.xs};
1043
+ color: ${a(n.gray[700],n.gray[300])};
1044
+ z-index: 99999;
1045
+ min-width: 120px;
1046
+ padding: ${o[.5]};
1047
+ `,settingsSubTrigger:t`
1048
+ display: flex;
1049
+ align-items: center;
1050
+ justify-content: space-between;
1051
+ border-radius: ${P.border.radius.xs};
1052
+ padding: ${P.size[1]} ${P.size[1]};
1053
+ cursor: pointer;
1054
+ background-color: transparent;
1055
+ border: none;
1056
+ color: ${a(n.gray[700],n.gray[300])};
1057
+ & svg {
1058
+ color: ${a(n.gray[600],n.gray[400])};
1059
+ transform: rotate(-90deg);
1060
+ width: ${P.size[2]};
1061
+ height: ${P.size[2]};
1062
+ }
1063
+ &:hover {
1064
+ background-color: ${a(n.gray[200],n.darkGray[500])};
1065
+ }
1066
+ &:focus-visible {
1067
+ outline-offset: 2px;
1068
+ outline: 2px solid ${n.blue[800]};
1069
+ }
1070
+ &.data-disabled {
1071
+ opacity: 0.6;
1072
+ cursor: not-allowed;
1073
+ }
1074
+ `,settingsMenuHeader:t`
1075
+ padding: ${P.size[1]} ${P.size[1]};
1076
+ font-weight: ${r.weight.medium};
1077
+ border-bottom: 1px solid ${a(n.gray[300],n.darkGray[400])};
1078
+ color: ${a(n.gray[500],n.gray[400])};
1079
+ font-size: ${r.size.xs};
1080
+ `,settingsSubButton:t`
1081
+ display: flex;
1082
+ align-items: center;
1083
+ justify-content: space-between;
1084
+ color: ${a(n.gray[700],n.gray[300])};
1085
+ font-size: ${r.size.xs};
1086
+ border-radius: ${P.border.radius.xs};
1087
+ padding: ${P.size[1]} ${P.size[1]};
1088
+ cursor: pointer;
1089
+ background-color: transparent;
1090
+ border: none;
1091
+ & svg {
1092
+ color: ${a(n.gray[600],n.gray[400])};
1093
+ }
1094
+ &:hover {
1095
+ background-color: ${a(n.gray[200],n.darkGray[500])};
1096
+ }
1097
+ &:focus-visible {
1098
+ outline-offset: 2px;
1099
+ outline: 2px solid ${n.blue[800]};
1100
+ }
1101
+ `,themeSelectedButton:t`
1102
+ background-color: ${a(n.purple[100],n.purple[900])};
1103
+ color: ${a(n.purple[700],n.purple[300])};
1104
+ & svg {
1105
+ color: ${a(n.purple[700],n.purple[300])};
1106
+ }
1107
+ &:hover {
1108
+ background-color: ${a(n.purple[100],n.purple[900])};
1109
+ }
1110
+ `,viewToggle:t`
1111
+ border-radius: ${P.border.radius.sm};
1112
+ background-color: ${a(n.gray[200],n.darkGray[600])};
1113
+ border: 1px solid ${a(n.gray[300],n.darkGray[200])};
1114
+ display: flex;
1115
+ padding: 0;
1116
+ font-size: ${r.size.xs};
1117
+ color: ${a(n.gray[700],n.gray[300])};
1118
+ overflow: hidden;
1119
+
1120
+ &:has(:focus-visible) {
1121
+ outline: 2px solid ${n.blue[800]};
1122
+ }
1123
+
1124
+ & .tsqd-radio-toggle {
1125
+ opacity: 0.5;
1126
+ display: flex;
1127
+ & label {
1128
+ display: flex;
1129
+ align-items: center;
1130
+ cursor: pointer;
1131
+ line-height: ${r.lineHeight.md};
1132
+ }
1133
+
1134
+ & label:hover {
1135
+ background-color: ${a(n.gray[100],n.darkGray[500])};
1136
+ }
1137
+ }
1138
+
1139
+ & > [data-checked] {
1140
+ opacity: 1;
1141
+ background-color: ${a(n.gray[100],n.darkGray[400])};
1142
+ & label:hover {
1143
+ background-color: ${a(n.gray[100],n.darkGray[400])};
1144
+ }
1145
+ }
1146
+
1147
+ & .tsqd-radio-toggle:first-child {
1148
+ & label {
1149
+ padding: 0 ${P.size[1.5]} 0 ${P.size[2]};
1150
+ }
1151
+ border-right: 1px solid ${a(n.gray[300],n.darkGray[200])};
1152
+ }
1153
+
1154
+ & .tsqd-radio-toggle:nth-child(2) {
1155
+ & label {
1156
+ padding: 0 ${P.size[2]} 0 ${P.size[1.5]};
1157
+ }
1158
+ }
1159
+ `,devtoolsEditForm:t`
1160
+ padding: ${o[2]};
1161
+ & > [data-error='true'] {
1162
+ outline: 2px solid ${a(n.red[200],n.red[800])};
1163
+ outline-offset: 2px;
1164
+ border-radius: ${l.radius.xs};
1165
+ }
1166
+ `,devtoolsEditTextarea:t`
1167
+ width: 100%;
1168
+ max-height: 500px;
1169
+ font-family: 'Fira Code', monospace;
1170
+ font-size: ${r.size.xs};
1171
+ border-radius: ${l.radius.sm};
1172
+ field-sizing: content;
1173
+ padding: ${o[2]};
1174
+ background-color: ${a(n.gray[100],n.darkGray[800])};
1175
+ color: ${a(n.gray[900],n.gray[100])};
1176
+ border: 1px solid ${a(n.gray[200],n.gray[700])};
1177
+ resize: none;
1178
+ &:focus {
1179
+ outline-offset: 2px;
1180
+ border-radius: ${l.radius.xs};
1181
+ outline: 2px solid ${a(n.blue[200],n.blue[800])};
1182
+ }
1183
+ `,devtoolsEditFormActions:t`
1184
+ display: flex;
1185
+ justify-content: space-between;
1186
+ gap: ${o[2]};
1187
+ align-items: center;
1188
+ padding-top: ${o[1]};
1189
+ font-size: ${r.size.xs};
1190
+ `,devtoolsEditFormError:t`
1191
+ color: ${a(n.red[700],n.red[500])};
1192
+ `,devtoolsEditFormActionContainer:t`
1193
+ display: flex;
1194
+ gap: ${o[2]};
1195
+ `,devtoolsEditFormAction:t`
1196
+ font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
1197
+ font-size: ${r.size.xs};
1198
+ padding: ${o[1]} ${P.size[2]};
1199
+ display: flex;
1200
+ border-radius: ${l.radius.sm};
1201
+ background-color: ${a(n.gray[100],n.darkGray[600])};
1202
+ border: 1px solid ${a(n.gray[300],n.darkGray[400])};
1203
+ align-items: center;
1204
+ gap: ${o[2]};
1205
+ font-weight: ${r.weight.medium};
1206
+ line-height: ${r.lineHeight.xs};
1207
+ cursor: pointer;
1208
+ &:focus-visible {
1209
+ outline-offset: 2px;
1210
+ border-radius: ${l.radius.xs};
1211
+ outline: 2px solid ${n.blue[800]};
1212
+ }
1213
+ &:hover {
1214
+ background-color: ${a(n.gray[200],n.darkGray[500])};
1215
+ }
1216
+
1217
+ &:disabled {
1218
+ opacity: 0.6;
1219
+ cursor: not-allowed;
1220
+ }
1221
+ `}},Pt=e=>Gc("light",e),At=e=>Gc("dark",e);io(["click","mousedown","input"]);var V1=e=>{const[t,n]=bl({prefix:"TanstackQueryDevtools"}),r=Ka(),o=_(()=>{const i=t.theme_preference||xl;return i!=="system"?i:r()});return v(Li.Provider,{value:e,get children(){return v(El,{localStore:t,setLocalStore:n,get children(){return v(zi.Provider,{value:o,get children(){return v(P1,{localStore:t,setLocalStore:n})}})}})}})},B1=V1;const H1=Object.freeze(Object.defineProperty({__proto__:null,default:B1},Symbol.toStringTag,{value:"Module"}));var G1=e=>{const[t,n]=bl({prefix:"TanstackQueryDevtools"}),r=Ka(),o=_(()=>{const i=t.theme_preference||xl;return i!=="system"?i:r()});return v(Li.Provider,{value:e,get children(){return v(El,{disabled:!0,localStore:t,setLocalStore:n,get children(){return v(zi.Provider,{value:o,get children(){return v(I1,{get children(){return v(ws,{localStore:t,setLocalStore:n,get onClose(){return e.onClose},showPanelViewOnly:!0})}})}})}})}})},K1=G1;const U1=Object.freeze(Object.defineProperty({__proto__:null,default:K1},Symbol.toStringTag,{value:"Module"}));Xt.Table=y0,Object.defineProperty(Xt,Symbol.toStringTag,{value:"Module"})}));