@interactive-inc/docs-client 0.0.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 (91) hide show
  1. package/.tanstack/tmp/router-generator-Eq20Yx/50b11a0f488e61cf92364a7e585c1448 +123 -0
  2. package/.tanstack/tmp/router-generator-KQIYSa/aecb094e4891f9475b91de590abc8809 +117 -0
  3. package/.tanstack/tmp/router-generator-ekW2pI/aecb094e4891f9475b91de590abc8809 +117 -0
  4. package/app/components/archived-file-list-view.tsx +99 -0
  5. package/app/components/directory-file-list-view.tsx +32 -0
  6. package/app/components/directory-file-tree-node.tsx +96 -0
  7. package/app/components/directory-layout-sidebar.tsx +181 -0
  8. package/app/components/directory-page-view.tsx +208 -0
  9. package/app/components/directory-table-view.tsx +383 -0
  10. package/app/components/editable-table-cell/boolean-editable-cell.tsx +44 -0
  11. package/app/components/editable-table-cell/multi-boolean-editable-cell.tsx +59 -0
  12. package/app/components/editable-table-cell/multi-number-editable-cell.tsx +62 -0
  13. package/app/components/editable-table-cell/multi-relation-editable-cell.tsx +19 -0
  14. package/app/components/editable-table-cell/multi-select-number-editable-cell.tsx +82 -0
  15. package/app/components/editable-table-cell/multi-select-text-editable-cell.tsx +82 -0
  16. package/app/components/editable-table-cell/multi-text-editable-cell.tsx +62 -0
  17. package/app/components/editable-table-cell/number-editable-cell.tsx +54 -0
  18. package/app/components/editable-table-cell/relation-editable-cell.tsx +20 -0
  19. package/app/components/editable-table-cell/select-number-editable-cell.tsx +43 -0
  20. package/app/components/editable-table-cell/select-text-editable-cell.tsx +33 -0
  21. package/app/components/editable-table-cell/string-editable-cell.tsx +42 -0
  22. package/app/components/editable-table-cell.tsx +129 -0
  23. package/app/components/file-card.tsx +120 -0
  24. package/app/components/file-tree-icon.tsx +26 -0
  25. package/app/components/file-view/archive-restore-banner.tsx +86 -0
  26. package/app/components/file-view/csv-file-view.tsx +50 -0
  27. package/app/components/file-view/default-file-view.tsx +11 -0
  28. package/app/components/file-view/editable-csv-cell.tsx +37 -0
  29. package/app/components/file-view/editable-front-matter-view.tsx +105 -0
  30. package/app/components/file-view/file-csv-columns-view.tsx +181 -0
  31. package/app/components/file-view/file-csv-table.tsx +142 -0
  32. package/app/components/file-view/file-header.tsx +115 -0
  33. package/app/components/file-view/file-page-view.tsx +165 -0
  34. package/app/components/file-view/front-matter-input-field.tsx +157 -0
  35. package/app/components/file-view/front-matter-view.tsx +30 -0
  36. package/app/components/file-view/json-file-editor.tsx +38 -0
  37. package/app/components/file-view/markdown-file-view.tsx +71 -0
  38. package/app/components/file-view/multi-relation-select.tsx +129 -0
  39. package/app/components/file-view/render-front-matter-value.tsx +57 -0
  40. package/app/components/file-view/single-relation-select.tsx +41 -0
  41. package/app/components/file-view/sortable-csv-row.tsx +57 -0
  42. package/app/components/file-view/sortable-header.tsx +30 -0
  43. package/app/components/file-view/utils.ts +8 -0
  44. package/app/components/milestones-editor.tsx +95 -0
  45. package/app/components/page-header.tsx +20 -0
  46. package/app/components/project-view/feature-item.tsx +139 -0
  47. package/app/components/project-view/project-page-group.tsx +125 -0
  48. package/app/components/project-view/project-view.tsx +230 -0
  49. package/app/components/project-view/unlinked-features-section.tsx +73 -0
  50. package/app/components/providers.tsx +21 -0
  51. package/app/components/reload-button.tsx +25 -0
  52. package/app/components/sidebar-button.tsx +13 -0
  53. package/app/components/ui/alert.tsx +66 -0
  54. package/app/components/ui/badge.tsx +46 -0
  55. package/app/components/ui/button.tsx +59 -0
  56. package/app/components/ui/card.tsx +92 -0
  57. package/app/components/ui/dialog.tsx +133 -0
  58. package/app/components/ui/emoji-picker.tsx +133 -0
  59. package/app/components/ui/icons.tsx +3 -0
  60. package/app/components/ui/input.tsx +21 -0
  61. package/app/components/ui/select.tsx +183 -0
  62. package/app/components/ui/separator.tsx +26 -0
  63. package/app/components/ui/sheet.tsx +137 -0
  64. package/app/components/ui/sidebar.tsx +724 -0
  65. package/app/components/ui/simple-sidebar.tsx +50 -0
  66. package/app/components/ui/skeleton.tsx +13 -0
  67. package/app/components/ui/sonner.tsx +23 -0
  68. package/app/components/ui/table.tsx +114 -0
  69. package/app/components/ui/tabs.tsx +53 -0
  70. package/app/components/ui/textarea.tsx +18 -0
  71. package/app/components/ui/tooltip.tsx +59 -0
  72. package/app/components/vscode-button.tsx +23 -0
  73. package/app/hooks/use-directory-query.ts +22 -0
  74. package/app/hooks/use-file-properties-mutation.ts +38 -0
  75. package/app/hooks/use-file-query.ts +21 -0
  76. package/app/hooks/use-mobile.ts +19 -0
  77. package/app/main.css +122 -0
  78. package/app/main.tsx +38 -0
  79. package/app/routes/$.index.tsx +25 -0
  80. package/app/routes/$.tsx +20 -0
  81. package/app/routes/__root.tsx +20 -0
  82. package/app/routes/_index.tsx +17 -0
  83. package/app/routes/apps.client.$.tsx +21 -0
  84. package/build/assets/index.css +1 -0
  85. package/build/assets/index.js +298 -0
  86. package/build/index.d.ts +2 -0
  87. package/build/index.d.ts.map +1 -0
  88. package/build/index.js +23 -0
  89. package/components.json +21 -0
  90. package/package.json +54 -0
  91. package/tsconfig.index.json +17 -0
@@ -0,0 +1,298 @@
1
+ var RR=Object.defineProperty;var Fb=e=>{throw TypeError(e)};var TR=(e,n,r)=>n in e?RR(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r;var Ve=(e,n,r)=>TR(e,typeof n!="symbol"?n+"":n,r),Oh=(e,n,r)=>n.has(e)||Fb("Cannot "+r);var U=(e,n,r)=>(Oh(e,n,"read from private field"),r?r.call(e):n.get(e)),Ce=(e,n,r)=>n.has(e)?Fb("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(e):n.set(e,r),ge=(e,n,r,i)=>(Oh(e,n,"write to private field"),i?i.call(e,r):n.set(e,r),r),Me=(e,n,r)=>(Oh(e,n,"access private method"),r);var au=(e,n,r,i)=>({set _(l){ge(e,n,l,r)},get _(){return U(e,n,i)}});function _R(e,n){for(var r=0;r<n.length;r++){const i=n[r];if(typeof i!="string"&&!Array.isArray(i)){for(const l in i)if(l!=="default"&&!(l in e)){const c=Object.getOwnPropertyDescriptor(i,l);c&&Object.defineProperty(e,l,c.get?c:{enumerable:!0,get:()=>i[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))i(l);new MutationObserver(l=>{for(const c of l)if(c.type==="childList")for(const u of c.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function r(l){const c={};return l.integrity&&(c.integrity=l.integrity),l.referrerPolicy&&(c.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?c.credentials="include":l.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(l){if(l.ep)return;l.ep=!0;const c=r(l);fetch(l.href,c)}})();function Bx(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Nh={exports:{}},dl={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Ib;function AR(){if(Ib)return dl;Ib=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(i,l,c){var u=null;if(c!==void 0&&(u=""+c),l.key!==void 0&&(u=""+l.key),"key"in l){c={};for(var f in l)f!=="key"&&(c[f]=l[f])}else c=l;return l=c.ref,{$$typeof:e,type:i,key:u,ref:l!==void 0?l:null,props:c}}return dl.Fragment=n,dl.jsx=r,dl.jsxs=r,dl}var Gb;function MR(){return Gb||(Gb=1,Nh.exports=AR()),Nh.exports}var y=MR(),so=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(){}},Ni=typeof window>"u"||"Deno"in globalThis;function sn(){}function DR(e,n){return typeof e=="function"?e(n):e}function mp(e){return typeof e=="number"&&e>=0&&e!==1/0}function Ux(e,n){return Math.max(e+(n||0)-Date.now(),0)}function js(e,n){return typeof e=="function"?e(n):e}function ra(e,n){return typeof e=="function"?e(n):e}function Yb(e,n){const{type:r="all",exact:i,fetchStatus:l,predicate:c,queryKey:u,stale:f}=e;if(u){if(i){if(n.queryHash!==om(u,n.options))return!1}else if(!Rl(n.queryKey,u))return!1}if(r!=="all"){const p=n.isActive();if(r==="active"&&!p||r==="inactive"&&p)return!1}return!(typeof f=="boolean"&&n.isStale()!==f||l&&l!==n.state.fetchStatus||c&&!c(n))}function Qb(e,n){const{exact:r,status:i,predicate:l,mutationKey:c}=e;if(c){if(!n.options.mutationKey)return!1;if(r){if(ki(n.options.mutationKey)!==ki(c))return!1}else if(!Rl(n.options.mutationKey,c))return!1}return!(i&&n.state.status!==i||l&&!l(n))}function om(e,n){return((n==null?void 0:n.queryKeyHashFn)||ki)(e)}function ki(e){return JSON.stringify(e,(n,r)=>gp(r)?Object.keys(r).sort().reduce((i,l)=>(i[l]=r[l],i),{}):r)}function Rl(e,n){return e===n?!0:typeof e!=typeof n?!1:e&&n&&typeof e=="object"&&typeof n=="object"?Object.keys(n).every(r=>Rl(e[r],n[r])):!1}function Hx(e,n){if(e===n)return e;const r=Kb(e)&&Kb(n);if(r||gp(e)&&gp(n)){const i=r?e:Object.keys(e),l=i.length,c=r?n:Object.keys(n),u=c.length,f=r?[]:{};let p=0;for(let h=0;h<u;h++){const v=r?h:c[h];(!r&&i.includes(v)||r)&&e[v]===void 0&&n[v]===void 0?(f[v]=void 0,p++):(f[v]=Hx(e[v],n[v]),f[v]===e[v]&&e[v]!==void 0&&p++)}return l===u&&p===l?e:f}return n}function Au(e,n){if(!n||Object.keys(e).length!==Object.keys(n).length)return!1;for(const r in e)if(e[r]!==n[r])return!1;return!0}function Kb(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function gp(e){if(!Xb(e))return!1;const n=e.constructor;if(n===void 0)return!0;const r=n.prototype;return!(!Xb(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Xb(e){return Object.prototype.toString.call(e)==="[object Object]"}function OR(e){return new Promise(n=>{setTimeout(n,e)})}function vp(e,n,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,n):r.structuralSharing!==!1?Hx(e,n):n}function NR(e,n,r=0){const i=[...e,n];return r&&i.length>r?i.slice(1):i}function kR(e,n,r=0){const i=[n,...e];return r&&i.length>r?i.slice(0,-1):i}var lm=Symbol();function Vx(e,n){return!e.queryFn&&(n!=null&&n.initialPromise)?()=>n.initialPromise:!e.queryFn||e.queryFn===lm?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function qx(e,n){return typeof e=="function"?e(...n):!!e}var wi,Lr,Vs,Ax,jR=(Ax=class extends so{constructor(){super();Ce(this,wi);Ce(this,Lr);Ce(this,Vs);ge(this,Vs,n=>{if(!Ni&&window.addEventListener){const r=()=>n();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){U(this,Lr)||this.setEventListener(U(this,Vs))}onUnsubscribe(){var n;this.hasListeners()||((n=U(this,Lr))==null||n.call(this),ge(this,Lr,void 0))}setEventListener(n){var r;ge(this,Vs,n),(r=U(this,Lr))==null||r.call(this),ge(this,Lr,n(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(n){U(this,wi)!==n&&(ge(this,wi,n),this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(r=>{r(n)})}isFocused(){var n;return typeof U(this,wi)=="boolean"?U(this,wi):((n=globalThis.document)==null?void 0:n.visibilityState)!=="hidden"}},wi=new WeakMap,Lr=new WeakMap,Vs=new WeakMap,Ax),cm=new jR,qs,Pr,$s,Mx,zR=(Mx=class extends so{constructor(){super();Ce(this,qs,!0);Ce(this,Pr);Ce(this,$s);ge(this,$s,n=>{if(!Ni&&window.addEventListener){const r=()=>n(!0),i=()=>n(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",i)}}})}onSubscribe(){U(this,Pr)||this.setEventListener(U(this,$s))}onUnsubscribe(){var n;this.hasListeners()||((n=U(this,Pr))==null||n.call(this),ge(this,Pr,void 0))}setEventListener(n){var r;ge(this,$s,n),(r=U(this,Pr))==null||r.call(this),ge(this,Pr,n(this.setOnline.bind(this)))}setOnline(n){U(this,qs)!==n&&(ge(this,qs,n),this.listeners.forEach(i=>{i(n)}))}isOnline(){return U(this,qs)}},qs=new WeakMap,Pr=new WeakMap,$s=new WeakMap,Mx),Mu=new zR;function yp(){let e,n;const r=new Promise((l,c)=>{e=l,n=c});r.status="pending",r.catch(()=>{});function i(l){Object.assign(r,l),delete r.resolve,delete r.reject}return r.resolve=l=>{i({status:"fulfilled",value:l}),e(l)},r.reject=l=>{i({status:"rejected",reason:l}),n(l)},r}function LR(e){return Math.min(1e3*2**e,3e4)}function $x(e){return(e??"online")==="online"?Mu.isOnline():!0}var Fx=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function kh(e){return e instanceof Fx}function Ix(e){let n=!1,r=0,i=!1,l;const c=yp(),u=S=>{var R;i||(b(new Fx(S)),(R=e.abort)==null||R.call(e))},f=()=>{n=!0},p=()=>{n=!1},h=()=>cm.isFocused()&&(e.networkMode==="always"||Mu.isOnline())&&e.canRun(),v=()=>$x(e.networkMode)&&e.canRun(),g=S=>{var R;i||(i=!0,(R=e.onSuccess)==null||R.call(e,S),l==null||l(),c.resolve(S))},b=S=>{var R;i||(i=!0,(R=e.onError)==null||R.call(e,S),l==null||l(),c.reject(S))},x=()=>new Promise(S=>{var R;l=_=>{(i||h())&&S(_)},(R=e.onPause)==null||R.call(e)}).then(()=>{var S;l=void 0,i||(S=e.onContinue)==null||S.call(e)}),C=()=>{if(i)return;let S;const R=r===0?e.initialPromise:void 0;try{S=R??e.fn()}catch(_){S=Promise.reject(_)}Promise.resolve(S).then(g).catch(_=>{var z;if(i)return;const A=e.retry??(Ni?0:3),M=e.retryDelay??LR,k=typeof M=="function"?M(r,_):M,N=A===!0||typeof A=="number"&&r<A||typeof A=="function"&&A(r,_);if(n||!N){b(_);return}r++,(z=e.onFail)==null||z.call(e,r,_),OR(k).then(()=>h()?void 0:x()).then(()=>{n?b(_):C()})})};return{promise:c,cancel:u,continue:()=>(l==null||l(),c),cancelRetry:f,continueRetry:p,canStart:v,start:()=>(v()?C():x().then(C),c)}}var PR=e=>setTimeout(e,0);function BR(){let e=[],n=0,r=f=>{f()},i=f=>{f()},l=PR;const c=f=>{n?e.push(f):l(()=>{r(f)})},u=()=>{const f=e;e=[],f.length&&l(()=>{i(()=>{f.forEach(p=>{r(p)})})})};return{batch:f=>{let p;n++;try{p=f()}finally{n--,n||u()}return p},batchCalls:f=>(...p)=>{c(()=>{f(...p)})},schedule:c,setNotifyFunction:f=>{r=f},setBatchNotifyFunction:f=>{i=f},setScheduler:f=>{l=f}}}var jt=BR(),Si,Dx,Gx=(Dx=class{constructor(){Ce(this,Si)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),mp(this.gcTime)&&ge(this,Si,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ni?1/0:5*60*1e3))}clearGcTimeout(){U(this,Si)&&(clearTimeout(U(this,Si)),ge(this,Si,void 0))}},Si=new WeakMap,Dx),Fs,Is,qn,Ci,Wt,jl,Ei,ta,Xa,Ox,UR=(Ox=class extends Gx{constructor(n){super();Ce(this,ta);Ce(this,Fs);Ce(this,Is);Ce(this,qn);Ce(this,Ci);Ce(this,Wt);Ce(this,jl);Ce(this,Ei);ge(this,Ei,!1),ge(this,jl,n.defaultOptions),this.setOptions(n.options),this.observers=[],ge(this,Ci,n.client),ge(this,qn,U(this,Ci).getQueryCache()),this.queryKey=n.queryKey,this.queryHash=n.queryHash,ge(this,Fs,HR(this.options)),this.state=n.state??U(this,Fs),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var n;return(n=U(this,Wt))==null?void 0:n.promise}setOptions(n){this.options={...U(this,jl),...n},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&U(this,qn).remove(this)}setData(n,r){const i=vp(this.state.data,n,this.options);return Me(this,ta,Xa).call(this,{data:i,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),i}setState(n,r){Me(this,ta,Xa).call(this,{type:"setState",state:n,setStateOptions:r})}cancel(n){var i,l;const r=(i=U(this,Wt))==null?void 0:i.promise;return(l=U(this,Wt))==null||l.cancel(n),r?r.then(sn).catch(sn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(U(this,Fs))}isActive(){return this.observers.some(n=>ra(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===lm||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(n=0){return this.state.isInvalidated||this.state.data===void 0||!Ux(this.state.dataUpdatedAt,n)}onFocus(){var r;const n=this.observers.find(i=>i.shouldFetchOnWindowFocus());n==null||n.refetch({cancelRefetch:!1}),(r=U(this,Wt))==null||r.continue()}onOnline(){var r;const n=this.observers.find(i=>i.shouldFetchOnReconnect());n==null||n.refetch({cancelRefetch:!1}),(r=U(this,Wt))==null||r.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),U(this,qn).notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(r=>r!==n),this.observers.length||(U(this,Wt)&&(U(this,Ei)?U(this,Wt).cancel({revert:!0}):U(this,Wt).cancelRetry()),this.scheduleGc()),U(this,qn).notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Me(this,ta,Xa).call(this,{type:"invalidate"})}fetch(n,r){var p,h,v;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(U(this,Wt))return U(this,Wt).continueRetry(),U(this,Wt).promise}if(n&&this.setOptions(n),!this.options.queryFn){const g=this.observers.find(b=>b.options.queryFn);g&&this.setOptions(g.options)}const i=new AbortController,l=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(ge(this,Ei,!0),i.signal)})},c=()=>{const g=Vx(this.options,r),b={client:U(this,Ci),queryKey:this.queryKey,meta:this.meta};return l(b),ge(this,Ei,!1),this.options.persister?this.options.persister(g,b,this):g(b)},u={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:U(this,Ci),state:this.state,fetchFn:c};l(u),(p=this.options.behavior)==null||p.onFetch(u,this),ge(this,Is,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((h=u.fetchOptions)==null?void 0:h.meta))&&Me(this,ta,Xa).call(this,{type:"fetch",meta:(v=u.fetchOptions)==null?void 0:v.meta});const f=g=>{var b,x,C,S;kh(g)&&g.silent||Me(this,ta,Xa).call(this,{type:"error",error:g}),kh(g)||((x=(b=U(this,qn).config).onError)==null||x.call(b,g,this),(S=(C=U(this,qn).config).onSettled)==null||S.call(C,this.state.data,g,this)),this.scheduleGc()};return ge(this,Wt,Ix({initialPromise:r==null?void 0:r.initialPromise,fn:u.fetchFn,abort:i.abort.bind(i),onSuccess:g=>{var b,x,C,S;if(g===void 0){f(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(g)}catch(R){f(R);return}(x=(b=U(this,qn).config).onSuccess)==null||x.call(b,g,this),(S=(C=U(this,qn).config).onSettled)==null||S.call(C,g,this.state.error,this),this.scheduleGc()},onError:f,onFail:(g,b)=>{Me(this,ta,Xa).call(this,{type:"failed",failureCount:g,error:b})},onPause:()=>{Me(this,ta,Xa).call(this,{type:"pause"})},onContinue:()=>{Me(this,ta,Xa).call(this,{type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0})),U(this,Wt).start()}},Fs=new WeakMap,Is=new WeakMap,qn=new WeakMap,Ci=new WeakMap,Wt=new WeakMap,jl=new WeakMap,Ei=new WeakMap,ta=new WeakSet,Xa=function(n){const r=i=>{switch(n.type){case"failed":return{...i,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...Yx(i.data,this.options),fetchMeta:n.meta??null};case"success":return{...i,data:n.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const l=n.error;return kh(l)&&l.revert&&U(this,Is)?{...U(this,Is),fetchStatus:"idle"}:{...i,error:l,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...n.state}}};this.state=r(this.state),jt.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),U(this,qn).notify({query:this,type:"updated",action:n})})},Ox);function Yx(e,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:$x(n.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function HR(e){const n=typeof e.initialData=="function"?e.initialData():e.initialData,r=n!==void 0,i=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:n,dataUpdateCount:0,dataUpdatedAt:r?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var wa,Nx,VR=(Nx=class extends so{constructor(n={}){super();Ce(this,wa);this.config=n,ge(this,wa,new Map)}build(n,r,i){const l=r.queryKey,c=r.queryHash??om(l,r);let u=this.get(c);return u||(u=new UR({client:n,queryKey:l,queryHash:c,options:n.defaultQueryOptions(r),state:i,defaultOptions:n.getQueryDefaults(l)}),this.add(u)),u}add(n){U(this,wa).has(n.queryHash)||(U(this,wa).set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const r=U(this,wa).get(n.queryHash);r&&(n.destroy(),r===n&&U(this,wa).delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){jt.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return U(this,wa).get(n)}getAll(){return[...U(this,wa).values()]}find(n){const r={exact:!0,...n};return this.getAll().find(i=>Yb(r,i))}findAll(n={}){const r=this.getAll();return Object.keys(n).length>0?r.filter(i=>Yb(n,i)):r}notify(n){jt.batch(()=>{this.listeners.forEach(r=>{r(n)})})}onFocus(){jt.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){jt.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},wa=new WeakMap,Nx),Sa,an,Ri,Ca,kr,kx,qR=(kx=class extends Gx{constructor(n){super();Ce(this,Ca);Ce(this,Sa);Ce(this,an);Ce(this,Ri);this.mutationId=n.mutationId,ge(this,an,n.mutationCache),ge(this,Sa,[]),this.state=n.state||Qx(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){U(this,Sa).includes(n)||(U(this,Sa).push(n),this.clearGcTimeout(),U(this,an).notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){ge(this,Sa,U(this,Sa).filter(r=>r!==n)),this.scheduleGc(),U(this,an).notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){U(this,Sa).length||(this.state.status==="pending"?this.scheduleGc():U(this,an).remove(this))}continue(){var n;return((n=U(this,Ri))==null?void 0:n.continue())??this.execute(this.state.variables)}async execute(n){var c,u,f,p,h,v,g,b,x,C,S,R,_,A,M,k,N,z,P,D;const r=()=>{Me(this,Ca,kr).call(this,{type:"continue"})};ge(this,Ri,Ix({fn:()=>this.options.mutationFn?this.options.mutationFn(n):Promise.reject(new Error("No mutationFn found")),onFail:(B,Y)=>{Me(this,Ca,kr).call(this,{type:"failed",failureCount:B,error:Y})},onPause:()=>{Me(this,Ca,kr).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>U(this,an).canRun(this)}));const i=this.state.status==="pending",l=!U(this,Ri).canStart();try{if(i)r();else{Me(this,Ca,kr).call(this,{type:"pending",variables:n,isPaused:l}),await((u=(c=U(this,an).config).onMutate)==null?void 0:u.call(c,n,this));const Y=await((p=(f=this.options).onMutate)==null?void 0:p.call(f,n));Y!==this.state.context&&Me(this,Ca,kr).call(this,{type:"pending",context:Y,variables:n,isPaused:l})}const B=await U(this,Ri).start();return await((v=(h=U(this,an).config).onSuccess)==null?void 0:v.call(h,B,n,this.state.context,this)),await((b=(g=this.options).onSuccess)==null?void 0:b.call(g,B,n,this.state.context)),await((C=(x=U(this,an).config).onSettled)==null?void 0:C.call(x,B,null,this.state.variables,this.state.context,this)),await((R=(S=this.options).onSettled)==null?void 0:R.call(S,B,null,n,this.state.context)),Me(this,Ca,kr).call(this,{type:"success",data:B}),B}catch(B){try{throw await((A=(_=U(this,an).config).onError)==null?void 0:A.call(_,B,n,this.state.context,this)),await((k=(M=this.options).onError)==null?void 0:k.call(M,B,n,this.state.context)),await((z=(N=U(this,an).config).onSettled)==null?void 0:z.call(N,void 0,B,this.state.variables,this.state.context,this)),await((D=(P=this.options).onSettled)==null?void 0:D.call(P,void 0,B,n,this.state.context)),B}finally{Me(this,Ca,kr).call(this,{type:"error",error:B})}}finally{U(this,an).runNext(this)}}},Sa=new WeakMap,an=new WeakMap,Ri=new WeakMap,Ca=new WeakSet,kr=function(n){const r=i=>{switch(n.type){case"failed":return{...i,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...i,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:n.error,failureCount:i.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=r(this.state),jt.batch(()=>{U(this,Sa).forEach(i=>{i.onMutationUpdate(n)}),U(this,an).notify({mutation:this,type:"updated",action:n})})},kx);function Qx(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Za,na,zl,jx,$R=(jx=class extends so{constructor(n={}){super();Ce(this,Za);Ce(this,na);Ce(this,zl);this.config=n,ge(this,Za,new Set),ge(this,na,new Map),ge(this,zl,0)}build(n,r,i){const l=new qR({mutationCache:this,mutationId:++au(this,zl)._,options:n.defaultMutationOptions(r),state:i});return this.add(l),l}add(n){U(this,Za).add(n);const r=ru(n);if(typeof r=="string"){const i=U(this,na).get(r);i?i.push(n):U(this,na).set(r,[n])}this.notify({type:"added",mutation:n})}remove(n){if(U(this,Za).delete(n)){const r=ru(n);if(typeof r=="string"){const i=U(this,na).get(r);if(i)if(i.length>1){const l=i.indexOf(n);l!==-1&&i.splice(l,1)}else i[0]===n&&U(this,na).delete(r)}}this.notify({type:"removed",mutation:n})}canRun(n){const r=ru(n);if(typeof r=="string"){const i=U(this,na).get(r),l=i==null?void 0:i.find(c=>c.state.status==="pending");return!l||l===n}else return!0}runNext(n){var i;const r=ru(n);if(typeof r=="string"){const l=(i=U(this,na).get(r))==null?void 0:i.find(c=>c!==n&&c.state.isPaused);return(l==null?void 0:l.continue())??Promise.resolve()}else return Promise.resolve()}clear(){jt.batch(()=>{U(this,Za).forEach(n=>{this.notify({type:"removed",mutation:n})}),U(this,Za).clear(),U(this,na).clear()})}getAll(){return Array.from(U(this,Za))}find(n){const r={exact:!0,...n};return this.getAll().find(i=>Qb(r,i))}findAll(n={}){return this.getAll().filter(r=>Qb(n,r))}notify(n){jt.batch(()=>{this.listeners.forEach(r=>{r(n)})})}resumePausedMutations(){const n=this.getAll().filter(r=>r.state.isPaused);return jt.batch(()=>Promise.all(n.map(r=>r.continue().catch(sn))))}},Za=new WeakMap,na=new WeakMap,zl=new WeakMap,jx);function ru(e){var n;return(n=e.options.scope)==null?void 0:n.id}function Zb(e){return{onFetch:(n,r)=>{var v,g,b,x,C;const i=n.options,l=(b=(g=(v=n.fetchOptions)==null?void 0:v.meta)==null?void 0:g.fetchMore)==null?void 0:b.direction,c=((x=n.state.data)==null?void 0:x.pages)||[],u=((C=n.state.data)==null?void 0:C.pageParams)||[];let f={pages:[],pageParams:[]},p=0;const h=async()=>{let S=!1;const R=M=>{Object.defineProperty(M,"signal",{enumerable:!0,get:()=>(n.signal.aborted?S=!0:n.signal.addEventListener("abort",()=>{S=!0}),n.signal)})},_=Vx(n.options,n.fetchOptions),A=async(M,k,N)=>{if(S)return Promise.reject();if(k==null&&M.pages.length)return Promise.resolve(M);const z={client:n.client,queryKey:n.queryKey,pageParam:k,direction:N?"backward":"forward",meta:n.options.meta};R(z);const P=await _(z),{maxPages:D}=n.options,B=N?kR:NR;return{pages:B(M.pages,P,D),pageParams:B(M.pageParams,k,D)}};if(l&&c.length){const M=l==="backward",k=M?FR:Wb,N={pages:c,pageParams:u},z=k(i,N);f=await A(N,z,M)}else{const M=e??c.length;do{const k=p===0?u[0]??i.initialPageParam:Wb(i,f);if(p>0&&k==null)break;f=await A(f,k),p++}while(p<M)}return f};n.options.persister?n.fetchFn=()=>{var S,R;return(R=(S=n.options).persister)==null?void 0:R.call(S,h,{client:n.client,queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},r)}:n.fetchFn=h}}}function Wb(e,{pages:n,pageParams:r}){const i=n.length-1;return n.length>0?e.getNextPageParam(n[i],n,r[i],r):void 0}function FR(e,{pages:n,pageParams:r}){var i;return n.length>0?(i=e.getPreviousPageParam)==null?void 0:i.call(e,n[0],n,r[0],r):void 0}var Et,Br,Ur,Gs,Ys,Hr,Qs,Ks,zx,IR=(zx=class{constructor(e={}){Ce(this,Et);Ce(this,Br);Ce(this,Ur);Ce(this,Gs);Ce(this,Ys);Ce(this,Hr);Ce(this,Qs);Ce(this,Ks);ge(this,Et,e.queryCache||new VR),ge(this,Br,e.mutationCache||new $R),ge(this,Ur,e.defaultOptions||{}),ge(this,Gs,new Map),ge(this,Ys,new Map),ge(this,Hr,0)}mount(){au(this,Hr)._++,U(this,Hr)===1&&(ge(this,Qs,cm.subscribe(async e=>{e&&(await this.resumePausedMutations(),U(this,Et).onFocus())})),ge(this,Ks,Mu.subscribe(async e=>{e&&(await this.resumePausedMutations(),U(this,Et).onOnline())})))}unmount(){var e,n;au(this,Hr)._--,U(this,Hr)===0&&((e=U(this,Qs))==null||e.call(this),ge(this,Qs,void 0),(n=U(this,Ks))==null||n.call(this),ge(this,Ks,void 0))}isFetching(e){return U(this,Et).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return U(this,Br).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const n=this.defaultQueryOptions({queryKey:e});return(r=U(this,Et).get(n.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const n=this.defaultQueryOptions(e),r=U(this,Et).build(this,n),i=r.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(js(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(i))}getQueriesData(e){return U(this,Et).findAll(e).map(({queryKey:n,state:r})=>{const i=r.data;return[n,i]})}setQueryData(e,n,r){const i=this.defaultQueryOptions({queryKey:e}),l=U(this,Et).get(i.queryHash),c=l==null?void 0:l.state.data,u=DR(n,c);if(u!==void 0)return U(this,Et).build(this,i).setData(u,{...r,manual:!0})}setQueriesData(e,n,r){return jt.batch(()=>U(this,Et).findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,n,r)]))}getQueryState(e){var r;const n=this.defaultQueryOptions({queryKey:e});return(r=U(this,Et).get(n.queryHash))==null?void 0:r.state}removeQueries(e){const n=U(this,Et);jt.batch(()=>{n.findAll(e).forEach(r=>{n.remove(r)})})}resetQueries(e,n){const r=U(this,Et);return jt.batch(()=>(r.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},n)))}cancelQueries(e,n={}){const r={revert:!0,...n},i=jt.batch(()=>U(this,Et).findAll(e).map(l=>l.cancel(r)));return Promise.all(i).then(sn).catch(sn)}invalidateQueries(e,n={}){return jt.batch(()=>(U(this,Et).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},n)))}refetchQueries(e,n={}){const r={...n,cancelRefetch:n.cancelRefetch??!0},i=jt.batch(()=>U(this,Et).findAll(e).filter(l=>!l.isDisabled()).map(l=>{let c=l.fetch(void 0,r);return r.throwOnError||(c=c.catch(sn)),l.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(i).then(sn)}fetchQuery(e){const n=this.defaultQueryOptions(e);n.retry===void 0&&(n.retry=!1);const r=U(this,Et).build(this,n);return r.isStaleByTime(js(n.staleTime,r))?r.fetch(n):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(sn).catch(sn)}fetchInfiniteQuery(e){return e.behavior=Zb(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(sn).catch(sn)}ensureInfiniteQueryData(e){return e.behavior=Zb(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Mu.isOnline()?U(this,Br).resumePausedMutations():Promise.resolve()}getQueryCache(){return U(this,Et)}getMutationCache(){return U(this,Br)}getDefaultOptions(){return U(this,Ur)}setDefaultOptions(e){ge(this,Ur,e)}setQueryDefaults(e,n){U(this,Gs).set(ki(e),{queryKey:e,defaultOptions:n})}getQueryDefaults(e){const n=[...U(this,Gs).values()],r={};return n.forEach(i=>{Rl(e,i.queryKey)&&Object.assign(r,i.defaultOptions)}),r}setMutationDefaults(e,n){U(this,Ys).set(ki(e),{mutationKey:e,defaultOptions:n})}getMutationDefaults(e){const n=[...U(this,Ys).values()],r={};return n.forEach(i=>{Rl(e,i.mutationKey)&&Object.assign(r,i.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const n={...U(this,Ur).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return n.queryHash||(n.queryHash=om(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===lm&&(n.enabled=!1),n}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...U(this,Ur).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){U(this,Et).clear(),U(this,Br).clear()}},Et=new WeakMap,Br=new WeakMap,Ur=new WeakMap,Gs=new WeakMap,Ys=new WeakMap,Hr=new WeakMap,Qs=new WeakMap,Ks=new WeakMap,zx),mn,qe,Ll,rn,Ti,Xs,Vr,qr,Pl,Zs,Ws,_i,Ai,$r,Js,et,gl,bp,xp,wp,Sp,Cp,Ep,Rp,Kx,Lx,GR=(Lx=class extends so{constructor(n,r){super();Ce(this,et);Ce(this,mn);Ce(this,qe);Ce(this,Ll);Ce(this,rn);Ce(this,Ti);Ce(this,Xs);Ce(this,Vr);Ce(this,qr);Ce(this,Pl);Ce(this,Zs);Ce(this,Ws);Ce(this,_i);Ce(this,Ai);Ce(this,$r);Ce(this,Js,new Set);this.options=r,ge(this,mn,n),ge(this,qr,null),ge(this,Vr,yp()),this.options.experimental_prefetchInRender||U(this,Vr).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(U(this,qe).addObserver(this),Jb(U(this,qe),this.options)?Me(this,et,gl).call(this):this.updateResult(),Me(this,et,Sp).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Tp(U(this,qe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Tp(U(this,qe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Me(this,et,Cp).call(this),Me(this,et,Ep).call(this),U(this,qe).removeObserver(this)}setOptions(n){const r=this.options,i=U(this,qe);if(this.options=U(this,mn).defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ra(this.options.enabled,U(this,qe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Me(this,et,Rp).call(this),U(this,qe).setOptions(this.options),r._defaulted&&!Au(this.options,r)&&U(this,mn).getQueryCache().notify({type:"observerOptionsUpdated",query:U(this,qe),observer:this});const l=this.hasListeners();l&&e0(U(this,qe),i,this.options,r)&&Me(this,et,gl).call(this),this.updateResult(),l&&(U(this,qe)!==i||ra(this.options.enabled,U(this,qe))!==ra(r.enabled,U(this,qe))||js(this.options.staleTime,U(this,qe))!==js(r.staleTime,U(this,qe)))&&Me(this,et,bp).call(this);const c=Me(this,et,xp).call(this);l&&(U(this,qe)!==i||ra(this.options.enabled,U(this,qe))!==ra(r.enabled,U(this,qe))||c!==U(this,$r))&&Me(this,et,wp).call(this,c)}getOptimisticResult(n){const r=U(this,mn).getQueryCache().build(U(this,mn),n),i=this.createResult(r,n);return QR(this,i)&&(ge(this,rn,i),ge(this,Xs,this.options),ge(this,Ti,U(this,qe).state)),i}getCurrentResult(){return U(this,rn)}trackResult(n,r){return new Proxy(n,{get:(i,l)=>(this.trackProp(l),r==null||r(l),Reflect.get(i,l))})}trackProp(n){U(this,Js).add(n)}getCurrentQuery(){return U(this,qe)}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const r=U(this,mn).defaultQueryOptions(n),i=U(this,mn).getQueryCache().build(U(this,mn),r);return i.fetch().then(()=>this.createResult(i,r))}fetch(n){return Me(this,et,gl).call(this,{...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),U(this,rn)))}createResult(n,r){var B;const i=U(this,qe),l=this.options,c=U(this,rn),u=U(this,Ti),f=U(this,Xs),h=n!==i?n.state:U(this,Ll),{state:v}=n;let g={...v},b=!1,x;if(r._optimisticResults){const Y=this.hasListeners(),Z=!Y&&Jb(n,r),ee=Y&&e0(n,i,r,l);(Z||ee)&&(g={...g,...Yx(v.data,n.options)}),r._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:C,errorUpdatedAt:S,status:R}=g;x=g.data;let _=!1;if(r.placeholderData!==void 0&&x===void 0&&R==="pending"){let Y;c!=null&&c.isPlaceholderData&&r.placeholderData===(f==null?void 0:f.placeholderData)?(Y=c.data,_=!0):Y=typeof r.placeholderData=="function"?r.placeholderData((B=U(this,Ws))==null?void 0:B.state.data,U(this,Ws)):r.placeholderData,Y!==void 0&&(R="success",x=vp(c==null?void 0:c.data,Y,r),b=!0)}if(r.select&&x!==void 0&&!_)if(c&&x===(u==null?void 0:u.data)&&r.select===U(this,Pl))x=U(this,Zs);else try{ge(this,Pl,r.select),x=r.select(x),x=vp(c==null?void 0:c.data,x,r),ge(this,Zs,x),ge(this,qr,null)}catch(Y){ge(this,qr,Y)}U(this,qr)&&(C=U(this,qr),x=U(this,Zs),S=Date.now(),R="error");const A=g.fetchStatus==="fetching",M=R==="pending",k=R==="error",N=M&&A,z=x!==void 0,D={status:R,fetchStatus:g.fetchStatus,isPending:M,isSuccess:R==="success",isError:k,isInitialLoading:N,isLoading:N,data:x,dataUpdatedAt:g.dataUpdatedAt,error:C,errorUpdatedAt:S,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>h.dataUpdateCount||g.errorUpdateCount>h.errorUpdateCount,isFetching:A,isRefetching:A&&!M,isLoadingError:k&&!z,isPaused:g.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:k&&z,isStale:um(n,r),refetch:this.refetch,promise:U(this,Vr)};if(this.options.experimental_prefetchInRender){const Y=le=>{D.status==="error"?le.reject(D.error):D.data!==void 0&&le.resolve(D.data)},Z=()=>{const le=ge(this,Vr,D.promise=yp());Y(le)},ee=U(this,Vr);switch(ee.status){case"pending":n.queryHash===i.queryHash&&Y(ee);break;case"fulfilled":(D.status==="error"||D.data!==ee.value)&&Z();break;case"rejected":(D.status!=="error"||D.error!==ee.reason)&&Z();break}}return D}updateResult(){const n=U(this,rn),r=this.createResult(U(this,qe),this.options);if(ge(this,Ti,U(this,qe).state),ge(this,Xs,this.options),U(this,Ti).data!==void 0&&ge(this,Ws,U(this,qe)),Au(r,n))return;ge(this,rn,r);const i=()=>{if(!n)return!0;const{notifyOnChangeProps:l}=this.options,c=typeof l=="function"?l():l;if(c==="all"||!c&&!U(this,Js).size)return!0;const u=new Set(c??U(this,Js));return this.options.throwOnError&&u.add("error"),Object.keys(U(this,rn)).some(f=>{const p=f;return U(this,rn)[p]!==n[p]&&u.has(p)})};Me(this,et,Kx).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Me(this,et,Sp).call(this)}},mn=new WeakMap,qe=new WeakMap,Ll=new WeakMap,rn=new WeakMap,Ti=new WeakMap,Xs=new WeakMap,Vr=new WeakMap,qr=new WeakMap,Pl=new WeakMap,Zs=new WeakMap,Ws=new WeakMap,_i=new WeakMap,Ai=new WeakMap,$r=new WeakMap,Js=new WeakMap,et=new WeakSet,gl=function(n){Me(this,et,Rp).call(this);let r=U(this,qe).fetch(this.options,n);return n!=null&&n.throwOnError||(r=r.catch(sn)),r},bp=function(){Me(this,et,Cp).call(this);const n=js(this.options.staleTime,U(this,qe));if(Ni||U(this,rn).isStale||!mp(n))return;const i=Ux(U(this,rn).dataUpdatedAt,n)+1;ge(this,_i,setTimeout(()=>{U(this,rn).isStale||this.updateResult()},i))},xp=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(U(this,qe)):this.options.refetchInterval)??!1},wp=function(n){Me(this,et,Ep).call(this),ge(this,$r,n),!(Ni||ra(this.options.enabled,U(this,qe))===!1||!mp(U(this,$r))||U(this,$r)===0)&&ge(this,Ai,setInterval(()=>{(this.options.refetchIntervalInBackground||cm.isFocused())&&Me(this,et,gl).call(this)},U(this,$r)))},Sp=function(){Me(this,et,bp).call(this),Me(this,et,wp).call(this,Me(this,et,xp).call(this))},Cp=function(){U(this,_i)&&(clearTimeout(U(this,_i)),ge(this,_i,void 0))},Ep=function(){U(this,Ai)&&(clearInterval(U(this,Ai)),ge(this,Ai,void 0))},Rp=function(){const n=U(this,mn).getQueryCache().build(U(this,mn),this.options);if(n===U(this,qe))return;const r=U(this,qe);ge(this,qe,n),ge(this,Ll,n.state),this.hasListeners()&&(r==null||r.removeObserver(this),n.addObserver(this))},Kx=function(n){jt.batch(()=>{n.listeners&&this.listeners.forEach(r=>{r(U(this,rn))}),U(this,mn).getQueryCache().notify({query:U(this,qe),type:"observerResultsUpdated"})})},Lx);function YR(e,n){return ra(n.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&n.retryOnMount===!1)}function Jb(e,n){return YR(e,n)||e.state.data!==void 0&&Tp(e,n,n.refetchOnMount)}function Tp(e,n,r){if(ra(n.enabled,e)!==!1){const i=typeof r=="function"?r(e):r;return i==="always"||i!==!1&&um(e,n)}return!1}function e0(e,n,r,i){return(e!==n||ra(i.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&um(e,r)}function um(e,n){return ra(n.enabled,e)!==!1&&e.isStaleByTime(js(n.staleTime,e))}function QR(e,n){return!Au(e.getCurrentResult(),n)}var Fr,Ir,gn,Wa,nr,xu,_p,Px,KR=(Px=class extends so{constructor(r,i){super();Ce(this,nr);Ce(this,Fr);Ce(this,Ir);Ce(this,gn);Ce(this,Wa);ge(this,Fr,r),this.setOptions(i),this.bindMethods(),Me(this,nr,xu).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var l;const i=this.options;this.options=U(this,Fr).defaultMutationOptions(r),Au(this.options,i)||U(this,Fr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:U(this,gn),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&ki(i.mutationKey)!==ki(this.options.mutationKey)?this.reset():((l=U(this,gn))==null?void 0:l.state.status)==="pending"&&U(this,gn).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=U(this,gn))==null||r.removeObserver(this)}onMutationUpdate(r){Me(this,nr,xu).call(this),Me(this,nr,_p).call(this,r)}getCurrentResult(){return U(this,Ir)}reset(){var r;(r=U(this,gn))==null||r.removeObserver(this),ge(this,gn,void 0),Me(this,nr,xu).call(this),Me(this,nr,_p).call(this)}mutate(r,i){var l;return ge(this,Wa,i),(l=U(this,gn))==null||l.removeObserver(this),ge(this,gn,U(this,Fr).getMutationCache().build(U(this,Fr),this.options)),U(this,gn).addObserver(this),U(this,gn).execute(r)}},Fr=new WeakMap,Ir=new WeakMap,gn=new WeakMap,Wa=new WeakMap,nr=new WeakSet,xu=function(){var i;const r=((i=U(this,gn))==null?void 0:i.state)??Qx();ge(this,Ir,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},_p=function(r){jt.batch(()=>{var i,l,c,u,f,p,h,v;if(U(this,Wa)&&this.hasListeners()){const g=U(this,Ir).variables,b=U(this,Ir).context;(r==null?void 0:r.type)==="success"?((l=(i=U(this,Wa)).onSuccess)==null||l.call(i,r.data,g,b),(u=(c=U(this,Wa)).onSettled)==null||u.call(c,r.data,null,g,b)):(r==null?void 0:r.type)==="error"&&((p=(f=U(this,Wa)).onError)==null||p.call(f,r.error,g,b),(v=(h=U(this,Wa)).onSettled)==null||v.call(h,void 0,r.error,g,b))}this.listeners.forEach(g=>{g(U(this,Ir))})})},Px),jh={exports:{}},Ae={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var t0;function XR(){if(t0)return Ae;t0=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.iterator;function b(O){return O===null||typeof O!="object"?null:(O=g&&O[g]||O["@@iterator"],typeof O=="function"?O:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,S={};function R(O,q,W){this.props=O,this.context=q,this.refs=S,this.updater=W||x}R.prototype.isReactComponent={},R.prototype.setState=function(O,q){if(typeof O!="object"&&typeof O!="function"&&O!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,O,q,"setState")},R.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function _(){}_.prototype=R.prototype;function A(O,q,W){this.props=O,this.context=q,this.refs=S,this.updater=W||x}var M=A.prototype=new _;M.constructor=A,C(M,R.prototype),M.isPureReactComponent=!0;var k=Array.isArray,N={H:null,A:null,T:null,S:null,V:null},z=Object.prototype.hasOwnProperty;function P(O,q,W,X,te,fe){return W=fe.ref,{$$typeof:e,type:O,key:q,ref:W!==void 0?W:null,props:fe}}function D(O,q){return P(O.type,q,void 0,void 0,void 0,O.props)}function B(O){return typeof O=="object"&&O!==null&&O.$$typeof===e}function Y(O){var q={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(W){return q[W]})}var Z=/\/+/g;function ee(O,q){return typeof O=="object"&&O!==null&&O.key!=null?Y(""+O.key):q.toString(36)}function le(){}function he(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(le,le):(O.status="pending",O.then(function(q){O.status==="pending"&&(O.status="fulfilled",O.value=q)},function(q){O.status==="pending"&&(O.status="rejected",O.reason=q)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function ce(O,q,W,X,te){var fe=typeof O;(fe==="undefined"||fe==="boolean")&&(O=null);var ae=!1;if(O===null)ae=!0;else switch(fe){case"bigint":case"string":case"number":ae=!0;break;case"object":switch(O.$$typeof){case e:case n:ae=!0;break;case v:return ae=O._init,ce(ae(O._payload),q,W,X,te)}}if(ae)return te=te(O),ae=X===""?"."+ee(O,0):X,k(te)?(W="",ae!=null&&(W=ae.replace(Z,"$&/")+"/"),ce(te,q,W,"",function(pe){return pe})):te!=null&&(B(te)&&(te=D(te,W+(te.key==null||O&&O.key===te.key?"":(""+te.key).replace(Z,"$&/")+"/")+ae)),q.push(te)),1;ae=0;var re=X===""?".":X+":";if(k(O))for(var oe=0;oe<O.length;oe++)X=O[oe],fe=re+ee(X,oe),ae+=ce(X,q,W,fe,te);else if(oe=b(O),typeof oe=="function")for(O=oe.call(O),oe=0;!(X=O.next()).done;)X=X.value,fe=re+ee(X,oe++),ae+=ce(X,q,W,fe,te);else if(fe==="object"){if(typeof O.then=="function")return ce(he(O),q,W,X,te);throw q=String(O),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return ae}function L(O,q,W){if(O==null)return O;var X=[],te=0;return ce(O,X,"","",function(fe){return q.call(W,fe,te++)}),X}function Q(O){if(O._status===-1){var q=O._result;q=q(),q.then(function(W){(O._status===0||O._status===-1)&&(O._status=1,O._result=W)},function(W){(O._status===0||O._status===-1)&&(O._status=2,O._result=W)}),O._status===-1&&(O._status=0,O._result=q)}if(O._status===1)return O._result.default;throw O._result}var $=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)};function de(){}return Ae.Children={map:L,forEach:function(O,q,W){L(O,function(){q.apply(this,arguments)},W)},count:function(O){var q=0;return L(O,function(){q++}),q},toArray:function(O){return L(O,function(q){return q})||[]},only:function(O){if(!B(O))throw Error("React.Children.only expected to receive a single React element child.");return O}},Ae.Component=R,Ae.Fragment=r,Ae.Profiler=l,Ae.PureComponent=A,Ae.StrictMode=i,Ae.Suspense=p,Ae.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N,Ae.__COMPILER_RUNTIME={__proto__:null,c:function(O){return N.H.useMemoCache(O)}},Ae.cache=function(O){return function(){return O.apply(null,arguments)}},Ae.cloneElement=function(O,q,W){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var X=C({},O.props),te=O.key,fe=void 0;if(q!=null)for(ae in q.ref!==void 0&&(fe=void 0),q.key!==void 0&&(te=""+q.key),q)!z.call(q,ae)||ae==="key"||ae==="__self"||ae==="__source"||ae==="ref"&&q.ref===void 0||(X[ae]=q[ae]);var ae=arguments.length-2;if(ae===1)X.children=W;else if(1<ae){for(var re=Array(ae),oe=0;oe<ae;oe++)re[oe]=arguments[oe+2];X.children=re}return P(O.type,te,void 0,void 0,fe,X)},Ae.createContext=function(O){return O={$$typeof:u,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:c,_context:O},O},Ae.createElement=function(O,q,W){var X,te={},fe=null;if(q!=null)for(X in q.key!==void 0&&(fe=""+q.key),q)z.call(q,X)&&X!=="key"&&X!=="__self"&&X!=="__source"&&(te[X]=q[X]);var ae=arguments.length-2;if(ae===1)te.children=W;else if(1<ae){for(var re=Array(ae),oe=0;oe<ae;oe++)re[oe]=arguments[oe+2];te.children=re}if(O&&O.defaultProps)for(X in ae=O.defaultProps,ae)te[X]===void 0&&(te[X]=ae[X]);return P(O,fe,void 0,void 0,null,te)},Ae.createRef=function(){return{current:null}},Ae.forwardRef=function(O){return{$$typeof:f,render:O}},Ae.isValidElement=B,Ae.lazy=function(O){return{$$typeof:v,_payload:{_status:-1,_result:O},_init:Q}},Ae.memo=function(O,q){return{$$typeof:h,type:O,compare:q===void 0?null:q}},Ae.startTransition=function(O){var q=N.T,W={};N.T=W;try{var X=O(),te=N.S;te!==null&&te(W,X),typeof X=="object"&&X!==null&&typeof X.then=="function"&&X.then(de,$)}catch(fe){$(fe)}finally{N.T=q}},Ae.unstable_useCacheRefresh=function(){return N.H.useCacheRefresh()},Ae.use=function(O){return N.H.use(O)},Ae.useActionState=function(O,q,W){return N.H.useActionState(O,q,W)},Ae.useCallback=function(O,q){return N.H.useCallback(O,q)},Ae.useContext=function(O){return N.H.useContext(O)},Ae.useDebugValue=function(){},Ae.useDeferredValue=function(O,q){return N.H.useDeferredValue(O,q)},Ae.useEffect=function(O,q,W){var X=N.H;if(typeof W=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return X.useEffect(O,q)},Ae.useId=function(){return N.H.useId()},Ae.useImperativeHandle=function(O,q,W){return N.H.useImperativeHandle(O,q,W)},Ae.useInsertionEffect=function(O,q){return N.H.useInsertionEffect(O,q)},Ae.useLayoutEffect=function(O,q){return N.H.useLayoutEffect(O,q)},Ae.useMemo=function(O,q){return N.H.useMemo(O,q)},Ae.useOptimistic=function(O,q){return N.H.useOptimistic(O,q)},Ae.useReducer=function(O,q,W){return N.H.useReducer(O,q,W)},Ae.useRef=function(O){return N.H.useRef(O)},Ae.useState=function(O){return N.H.useState(O)},Ae.useSyncExternalStore=function(O,q,W){return N.H.useSyncExternalStore(O,q,W)},Ae.useTransition=function(){return N.H.useTransition()},Ae.version="19.1.0",Ae}var n0;function Bl(){return n0||(n0=1,jh.exports=XR()),jh.exports}var w=Bl();const se=Bx(w),Xx=_R({__proto__:null,default:se},[w]);var Zx=w.createContext(void 0),dm=e=>{const n=w.useContext(Zx);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},ZR=({client:e,children:n})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),y.jsx(Zx.Provider,{value:e,children:n})),Wx=w.createContext(!1),WR=()=>w.useContext(Wx);Wx.Provider;function JR(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var eT=w.createContext(JR()),tT=()=>w.useContext(eT),nT=(e,n)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(n.isReset()||(e.retryOnMount=!1))},aT=e=>{w.useEffect(()=>{e.clearReset()},[e])},rT=({result:e,errorResetBoundary:n,throwOnError:r,query:i,suspense:l})=>e.isError&&!n.isReset()&&!e.isFetching&&i&&(l&&e.data===void 0||qx(r,[e.error,i])),iT=(e,n)=>n.state.data===void 0,sT=e=>{const n=e.staleTime;e.suspense&&(e.staleTime=typeof n=="function"?(...r)=>Math.max(n(...r),1e3):Math.max(n??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},oT=(e,n)=>e.isLoading&&e.isFetching&&!n,lT=(e,n)=>(e==null?void 0:e.suspense)&&n.isPending,a0=(e,n,r)=>n.fetchOptimistic(e).catch(()=>{r.clearReset()});function cT(e,n,r){var g,b,x,C,S;const i=dm(),l=WR(),c=tT(),u=i.defaultQueryOptions(e);(b=(g=i.getDefaultOptions().queries)==null?void 0:g._experimental_beforeQuery)==null||b.call(g,u),u._optimisticResults=l?"isRestoring":"optimistic",sT(u),nT(u,c),aT(c);const f=!i.getQueryCache().get(u.queryHash),[p]=w.useState(()=>new n(i,u)),h=p.getOptimisticResult(u),v=!l&&e.subscribed!==!1;if(w.useSyncExternalStore(w.useCallback(R=>{const _=v?p.subscribe(jt.batchCalls(R)):sn;return p.updateResult(),_},[p,v]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),w.useEffect(()=>{p.setOptions(u)},[u,p]),lT(u,h))throw a0(u,p,c);if(rT({result:h,errorResetBoundary:c,throwOnError:u.throwOnError,query:i.getQueryCache().get(u.queryHash),suspense:u.suspense}))throw h.error;if((C=(x=i.getDefaultOptions().queries)==null?void 0:x._experimental_afterQuery)==null||C.call(x,u,h),u.experimental_prefetchInRender&&!Ni&&oT(h,l)){const R=f?a0(u,p,c):(S=i.getQueryCache().get(u.queryHash))==null?void 0:S.promise;R==null||R.catch(sn).finally(()=>{p.updateResult()})}return u.notifyOnChangeProps?h:p.trackResult(h)}function Tl(e,n){return cT({...e,enabled:!0,suspense:!0,throwOnError:iT,placeholderData:void 0},GR)}function ia(e,n){const r=dm(),[i]=w.useState(()=>new KR(r,e));w.useEffect(()=>{i.setOptions(e)},[i,e]);const l=w.useSyncExternalStore(w.useCallback(u=>i.subscribe(jt.batchCalls(u)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),c=w.useCallback((u,f)=>{i.mutate(u,f).catch(sn)},[i]);if(l.error&&qx(i.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:c,mutateAsync:l.mutate}}var uT="Invariant failed";function ar(e,n){if(!e)throw new Error(uT)}const zs=new WeakMap,wu=new WeakMap,Du={current:[]};let zh=!1,xl=0;const vl=new Set,iu=new Map;function Jx(e){const n=Array.from(e).sort((r,i)=>r instanceof Ls&&r.options.deps.includes(i)?1:i instanceof Ls&&i.options.deps.includes(r)?-1:0);for(const r of n){if(Du.current.includes(r))continue;Du.current.push(r),r.recompute();const i=wu.get(r);if(i)for(const l of i){const c=zs.get(l);c&&Jx(c)}}}function dT(e){e.listeners.forEach(n=>n({prevVal:e.prevState,currentVal:e.state}))}function fT(e){e.listeners.forEach(n=>n({prevVal:e.prevState,currentVal:e.state}))}function ew(e){if(xl>0&&!iu.has(e)&&iu.set(e,e.prevState),vl.add(e),!(xl>0)&&!zh)try{for(zh=!0;vl.size>0;){const n=Array.from(vl);vl.clear();for(const r of n){const i=iu.get(r)??r.prevState;r.prevState=i,dT(r)}for(const r of n){const i=zs.get(r);i&&(Du.current.push(r),Jx(i))}for(const r of n){const i=zs.get(r);if(i)for(const l of i)fT(l)}}}finally{zh=!1,Du.current=[],iu.clear()}}function r0(e){xl++;try{e()}finally{if(xl--,xl===0){const n=Array.from(vl)[0];n&&ew(n)}}}function hT(e){return typeof e=="function"}class Ap{constructor(n,r){this.listeners=new Set,this.subscribe=i=>{var l,c;this.listeners.add(i);const u=(c=(l=this.options)==null?void 0:l.onSubscribe)==null?void 0:c.call(l,i,this);return()=>{this.listeners.delete(i),u==null||u()}},this.prevState=n,this.state=n,this.options=r}setState(n){var r,i,l;this.prevState=this.state,(r=this.options)!=null&&r.updateFn?this.state=this.options.updateFn(this.prevState)(n):hT(n)?this.state=n(this.prevState):this.state=n,(l=(i=this.options)==null?void 0:i.onUpdate)==null||l.call(i),ew(this)}}class Ls{constructor(n){this.listeners=new Set,this._subscriptions=[],this.lastSeenDepValues=[],this.getDepVals=()=>{const r=[],i=[];for(const l of this.options.deps)r.push(l.prevState),i.push(l.state);return this.lastSeenDepValues=i,{prevDepVals:r,currDepVals:i,prevVal:this.prevState??void 0}},this.recompute=()=>{var r,i;this.prevState=this.state;const{prevDepVals:l,currDepVals:c,prevVal:u}=this.getDepVals();this.state=this.options.fn({prevDepVals:l,currDepVals:c,prevVal:u}),(i=(r=this.options).onUpdate)==null||i.call(r)},this.checkIfRecalculationNeededDeeply=()=>{for(const c of this.options.deps)c instanceof Ls&&c.checkIfRecalculationNeededDeeply();let r=!1;const i=this.lastSeenDepValues,{currDepVals:l}=this.getDepVals();for(let c=0;c<l.length;c++)if(l[c]!==i[c]){r=!0;break}r&&this.recompute()},this.mount=()=>(this.registerOnGraph(),this.checkIfRecalculationNeededDeeply(),()=>{this.unregisterFromGraph();for(const r of this._subscriptions)r()}),this.subscribe=r=>{var i,l;this.listeners.add(r);const c=(l=(i=this.options).onSubscribe)==null?void 0:l.call(i,r,this);return()=>{this.listeners.delete(r),c==null||c()}},this.options=n,this.state=n.fn({prevDepVals:void 0,prevVal:void 0,currDepVals:this.getDepVals().currDepVals})}registerOnGraph(n=this.options.deps){for(const r of n)if(r instanceof Ls)r.registerOnGraph(),this.registerOnGraph(r.options.deps);else if(r instanceof Ap){let i=zs.get(r);i||(i=new Set,zs.set(r,i)),i.add(this);let l=wu.get(this);l||(l=new Set,wu.set(this,l)),l.add(r)}}unregisterFromGraph(n=this.options.deps){for(const r of n)if(r instanceof Ls)this.unregisterFromGraph(r.options.deps);else if(r instanceof Ap){const i=zs.get(r);i&&i.delete(this);const l=wu.get(this);l&&l.delete(r)}}}const Gr="__TSR_index",i0="popstate",s0="beforeunload";function tw(e){let n=e.getLocation();const r=new Set,i=u=>{n=e.getLocation(),r.forEach(f=>f({location:n,action:u}))},l=u=>{e.notifyOnIndexChange??!0?i(u):n=e.getLocation()},c=async({task:u,navigateOpts:f,...p})=>{var h,v;if((f==null?void 0:f.ignoreBlocker)??!1){u();return}const b=((h=e.getBlockers)==null?void 0:h.call(e))??[],x=p.type==="PUSH"||p.type==="REPLACE";if(typeof document<"u"&&b.length&&x)for(const C of b){const S=_l(p.path,p.state);if(await C.blockerFn({currentLocation:n,nextLocation:S,action:p.type})){(v=e.onBlocked)==null||v.call(e);return}}u()};return{get location(){return n},get length(){return e.getLength()},subscribers:r,subscribe:u=>(r.add(u),()=>{r.delete(u)}),push:(u,f,p)=>{const h=n.state[Gr];f=Mp(h+1,f),c({task:()=>{e.pushState(u,f),i({type:"PUSH"})},navigateOpts:p,type:"PUSH",path:u,state:f})},replace:(u,f,p)=>{const h=n.state[Gr];f=Mp(h,f),c({task:()=>{e.replaceState(u,f),i({type:"REPLACE"})},navigateOpts:p,type:"REPLACE",path:u,state:f})},go:(u,f)=>{c({task:()=>{e.go(u),l({type:"GO",index:u})},navigateOpts:f,type:"GO"})},back:u=>{c({task:()=>{e.back((u==null?void 0:u.ignoreBlocker)??!1),l({type:"BACK"})},navigateOpts:u,type:"BACK"})},forward:u=>{c({task:()=>{e.forward((u==null?void 0:u.ignoreBlocker)??!1),l({type:"FORWARD"})},navigateOpts:u,type:"FORWARD"})},canGoBack:()=>n.state[Gr]!==0,createHref:u=>e.createHref(u),block:u=>{var f;if(!e.setBlockers)return()=>{};const p=((f=e.getBlockers)==null?void 0:f.call(e))??[];return e.setBlockers([...p,u]),()=>{var h,v;const g=((h=e.getBlockers)==null?void 0:h.call(e))??[];(v=e.setBlockers)==null||v.call(e,g.filter(b=>b!==u))}},flush:()=>{var u;return(u=e.flush)==null?void 0:u.call(e)},destroy:()=>{var u;return(u=e.destroy)==null?void 0:u.call(e)},notify:i}}function Mp(e,n){return n||(n={}),{...n,key:fm(),[Gr]:e}}function pT(e){var n;const r=typeof document<"u"?window:void 0,i=r.history.pushState,l=r.history.replaceState;let c=[];const u=()=>c,f=B=>c=B,p=B=>B,h=()=>_l(`${r.location.pathname}${r.location.search}${r.location.hash}`,r.history.state);(n=r.history.state)!=null&&n.key||r.history.replaceState({[Gr]:0,key:fm()},"");let v=h(),g,b=!1,x=!1,C=!1,S=!1;const R=()=>v;let _,A;const M=()=>{_&&(D._ignoreSubscribers=!0,(_.isPush?r.history.pushState:r.history.replaceState)(_.state,"",_.href),D._ignoreSubscribers=!1,_=void 0,A=void 0,g=void 0)},k=(B,Y,Z)=>{const ee=p(Y);A||(g=v),v=_l(Y,Z),_={href:ee,state:Z,isPush:(_==null?void 0:_.isPush)||B==="push"},A||(A=Promise.resolve().then(()=>M()))},N=B=>{v=h(),D.notify({type:B})},z=async()=>{if(x){x=!1;return}const B=h(),Y=B.state[Gr]-v.state[Gr],Z=Y===1,ee=Y===-1,le=!Z&&!ee||b;b=!1;const he=le?"GO":ee?"BACK":"FORWARD",ce=le?{type:"GO",index:Y}:{type:ee?"BACK":"FORWARD"};if(C)C=!1;else{const L=u();if(typeof document<"u"&&L.length){for(const Q of L)if(await Q.blockerFn({currentLocation:v,nextLocation:B,action:he})){x=!0,r.history.go(1),D.notify(ce);return}}}v=h(),D.notify(ce)},P=B=>{if(S){S=!1;return}let Y=!1;const Z=u();if(typeof document<"u"&&Z.length)for(const ee of Z){const le=ee.enableBeforeUnload??!0;if(le===!0){Y=!0;break}if(typeof le=="function"&&le()===!0){Y=!0;break}}if(Y)return B.preventDefault(),B.returnValue=""},D=tw({getLocation:R,getLength:()=>r.history.length,pushState:(B,Y)=>k("push",B,Y),replaceState:(B,Y)=>k("replace",B,Y),back:B=>(B&&(C=!0),S=!0,r.history.back()),forward:B=>{B&&(C=!0),S=!0,r.history.forward()},go:B=>{b=!0,r.history.go(B)},createHref:B=>p(B),flush:M,destroy:()=>{r.history.pushState=i,r.history.replaceState=l,r.removeEventListener(s0,P,{capture:!0}),r.removeEventListener(i0,z)},onBlocked:()=>{g&&v!==g&&(v=g)},getBlockers:u,setBlockers:f,notifyOnIndexChange:!1});return r.addEventListener(s0,P,{capture:!0}),r.addEventListener(i0,z),r.history.pushState=function(...B){const Y=i.apply(r.history,B);return D._ignoreSubscribers||N("PUSH"),Y},r.history.replaceState=function(...B){const Y=l.apply(r.history,B);return D._ignoreSubscribers||N("REPLACE"),Y},D}function mT(e={initialEntries:["/"]}){const n=e.initialEntries;let r=e.initialIndex?Math.min(Math.max(e.initialIndex,0),n.length-1):n.length-1;const i=n.map((c,u)=>Mp(u,void 0));return tw({getLocation:()=>_l(n[r],i[r]),getLength:()=>n.length,pushState:(c,u)=>{r<n.length-1&&(n.splice(r+1),i.splice(r+1)),i.push(u),n.push(c),r=Math.max(n.length-1,0)},replaceState:(c,u)=>{i[r]=u,n[r]=c},back:()=>{r=Math.max(r-1,0)},forward:()=>{r=Math.min(r+1,n.length-1)},go:c=>{r=Math.min(Math.max(r+c,0),n.length-1)},createHref:c=>c})}function _l(e,n){const r=e.indexOf("#"),i=e.indexOf("?");return{href:e,pathname:e.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:e.length),hash:r>-1?e.substring(r):"",search:i>-1?e.slice(i,r===-1?void 0:r):"",state:n||{[Gr]:0,key:fm()}}}function fm(){return(Math.random()+1).toString(36).substring(7)}function Dp(e){return e[e.length-1]}function gT(e){return typeof e=="function"}function Mi(e,n){return gT(e)?e(n):e}function Op(e,n){return n.reduce((r,i)=>(r[i]=e[i],r),{})}function Vn(e,n){if(e===n)return e;const r=n,i=c0(e)&&c0(r);if(i||o0(e)&&o0(r)){const l=i?e:Object.keys(e).concat(Object.getOwnPropertySymbols(e)),c=l.length,u=i?r:Object.keys(r).concat(Object.getOwnPropertySymbols(r)),f=u.length,p=i?[]:{};let h=0;for(let v=0;v<f;v++){const g=i?v:u[v];(!i&&l.includes(g)||i)&&e[g]===void 0&&r[g]===void 0?(p[g]=void 0,h++):(p[g]=Vn(e[g],r[g]),p[g]===e[g]&&e[g]!==void 0&&h++)}return c===f&&h===c?e:p}return r}function o0(e){return Np(e)&&Object.getOwnPropertyNames(e).length===Object.keys(e).length}function Np(e){if(!l0(e))return!1;const n=e.constructor;if(typeof n>"u")return!0;const r=n.prototype;return!(!l0(r)||!r.hasOwnProperty("isPrototypeOf"))}function l0(e){return Object.prototype.toString.call(e)==="[object Object]"}function c0(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function u0(e,n){let r=Object.keys(e);return n&&(r=r.filter(i=>e[i]!==void 0)),r}function Ps(e,n,r){if(e===n)return!0;if(typeof e!=typeof n)return!1;if(Np(e)&&Np(n)){const i=(r==null?void 0:r.ignoreUndefined)??!0,l=u0(e,i),c=u0(n,i);return!(r!=null&&r.partial)&&l.length!==c.length?!1:c.every(u=>Ps(e[u],n[u],r))}return Array.isArray(e)&&Array.isArray(n)?e.length!==n.length?!1:!e.some((i,l)=>!Ps(i,n[l],r)):!1}function Os(e){let n,r;const i=new Promise((l,c)=>{n=l,r=c});return i.status="pending",i.resolve=l=>{i.status="resolved",i.value=l,n(l),e==null||e(l)},i.reject=l=>{i.status="rejected",r(l)},i}function Ra(e){return Zu(e.filter(n=>n!==void 0).join("/"))}function Zu(e){return e.replace(/\/{2,}/g,"/")}function hm(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function eo(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function Lh(e){return eo(hm(e))}function Ou(e,n){return e!=null&&e.endsWith("/")&&e!=="/"&&e!==`${n}/`?e.slice(0,-1):e}function vT(e,n,r){return Ou(e,r)===Ou(n,r)}function yT({basepath:e,base:n,to:r,trailingSlash:i="never",caseSensitive:l}){var c,u;n=Nu(e,n,l),r=Nu(e,r,l);let f=to(n);const p=to(r);f.length>1&&((c=Dp(f))==null?void 0:c.value)==="/"&&f.pop(),p.forEach((g,b)=>{g.value==="/"?b?b===p.length-1&&f.push(g):f=[g]:g.value===".."?f.pop():g.value==="."||f.push(g)}),f.length>1&&(((u=Dp(f))==null?void 0:u.value)==="/"?i==="never"&&f.pop():i==="always"&&f.push({type:"pathname",value:"/"}));const h=f.map(g=>{if(g.type==="param"){const b=g.value.substring(1);if(g.prefixSegment&&g.suffixSegment)return`${g.prefixSegment}{$${b}}${g.suffixSegment}`;if(g.prefixSegment)return`${g.prefixSegment}{$${b}}`;if(g.suffixSegment)return`{$${b}}${g.suffixSegment}`}if(g.type==="wildcard"){if(g.prefixSegment&&g.suffixSegment)return`${g.prefixSegment}{$}${g.suffixSegment}`;if(g.prefixSegment)return`${g.prefixSegment}{$}`;if(g.suffixSegment)return`{$}${g.suffixSegment}`}return g.value}),v=Ra([e,...h]);return Zu(v)}const bT=/^\$.{1,}$/,xT=/^(.*?)\{(\$[a-zA-Z_$][a-zA-Z0-9_$]*)\}(.*)$/,wT=/^\$$/,ST=/^(.*?)\{\$\}(.*)$/;function to(e){if(!e)return[];e=Zu(e);const n=[];if(e.slice(0,1)==="/"&&(e=e.substring(1),n.push({type:"pathname",value:"/"})),!e)return n;const r=e.split("/").filter(Boolean);return n.push(...r.map(i=>{const l=i.match(ST);if(l){const u=l[1],f=l[2];return{type:"wildcard",value:"$",prefixSegment:u||void 0,suffixSegment:f||void 0}}const c=i.match(xT);if(c){const u=c[1],f=c[2],p=c[3];return{type:"param",value:""+f,prefixSegment:u||void 0,suffixSegment:p||void 0}}return bT.test(i)?{type:"param",value:"$"+i.substring(1),prefixSegment:void 0,suffixSegment:void 0}:wT.test(i)?{type:"wildcard",value:"$",prefixSegment:void 0,suffixSegment:void 0}:{type:"pathname",value:i.includes("%25")?i.split("%25").map(u=>decodeURI(u)).join("%25"):decodeURI(i)}})),e.slice(-1)==="/"&&(e=e.substring(1),n.push({type:"pathname",value:"/"})),n}function Ph({path:e,params:n,leaveWildcards:r,leaveParams:i,decodeCharMap:l}){const c=to(e);function u(v){const g=n[v],b=typeof g=="string";return["*","_splat"].includes(v)?b?encodeURI(g):g:b?CT(g,l):g}let f=!1;const p={},h=Ra(c.map(v=>{if(v.type==="wildcard"){p._splat=n._splat;const g=v.prefixSegment||"",b=v.suffixSegment||"",x=u("_splat");return r?`${g}${v.value}${x??""}${b}`:`${g}${x}${b}`}if(v.type==="param"){const g=v.value.substring(1);!f&&!(g in n)&&(f=!0),p[g]=n[g];const b=v.prefixSegment||"",x=v.suffixSegment||"";if(i){const C=u(v.value);return`${b}${v.value}${C??""}${x}`}return`${b}${u(g)??"undefined"}${x}`}return v.value}));return{usedParams:p,interpolatedPath:h,isMissingParams:f}}function CT(e,n){let r=encodeURIComponent(e);if(n)for(const[i,l]of n)r=r.replaceAll(i,l);return r}function kp(e,n,r){const i=ET(e,n,r);if(!(r.to&&!i))return i??{}}function Nu(e,n,r=!1){const i=r?e:e.toLowerCase(),l=r?n:n.toLowerCase();switch(!0){case i==="/":return n;case l===i:return"";case n.length<e.length:return n;case l[i.length]!=="/":return n;case l.startsWith(i):return n.slice(e.length);default:return n}}function ET(e,n,r){if(e!=="/"&&!n.startsWith(e))return;n=Nu(e,n,r.caseSensitive);const i=Nu(e,`${r.to??"$"}`,r.caseSensitive),l=to(n),c=to(i);n.startsWith("/")||l.unshift({type:"pathname",value:"/"}),i.startsWith("/")||c.unshift({type:"pathname",value:"/"});const u={};return(()=>{var p;for(let h=0;h<Math.max(l.length,c.length);h++){const v=l[h],g=c[h],b=h>=l.length-1,x=h>=c.length-1;if(g){if(g.type==="wildcard"){const C=l.slice(h);let S;if(g.prefixSegment||g.suffixSegment){if(!v)return!1;const R=g.prefixSegment||"",_=g.suffixSegment||"",A=v.value;if("prefixSegment"in g&&!A.startsWith(R)||"suffixSegment"in g&&!((p=l[l.length-1])!=null&&p.value.endsWith(_)))return!1;let M=decodeURI(Ra(C.map(k=>k.value)));R&&M.startsWith(R)&&(M=M.slice(R.length)),_&&M.endsWith(_)&&(M=M.slice(0,M.length-_.length)),S=M}else S=decodeURI(Ra(C.map(R=>R.value)));return u["*"]=S,u._splat=S,!0}if(g.type==="pathname"){if(g.value==="/"&&!(v!=null&&v.value))return!0;if(v){if(r.caseSensitive){if(g.value!==v.value)return!1}else if(g.value.toLowerCase()!==v.value.toLowerCase())return!1}}if(!v)return!1;if(g.type==="param"){if(v.value==="/")return!1;let C;if(g.prefixSegment||g.suffixSegment){const S=g.prefixSegment||"",R=g.suffixSegment||"",_=v.value;if(S&&!_.startsWith(S)||R&&!_.endsWith(R))return!1;let A=_;S&&A.startsWith(S)&&(A=A.slice(S.length)),R&&A.endsWith(R)&&(A=A.slice(0,A.length-R.length)),C=decodeURIComponent(A)}else C=decodeURIComponent(v.value);u[g.value.substring(1)]=C}}if(!b&&x)return u["**"]=Ra(l.slice(h+1).map(C=>C.value)),!!r.fuzzy&&(g==null?void 0:g.value)!=="/"}return!0})()?u:void 0}function $n(e){return!!(e!=null&&e.isNotFound)}function RT(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{return}}const ku="tsr-scroll-restoration-v1_3",TT=(e,n)=>{let r;return(...i)=>{r||(r=setTimeout(()=>{e(...i),r=null},n))}};function _T(){const e=RT();if(!e)return;const n=e.getItem(ku);let r=n?JSON.parse(n):{};return{state:r,set:i=>(r=Mi(i,r)||r,e.setItem(ku,JSON.stringify(r)))}}const Bh=_T(),jp=e=>e.state.key||e.href;function AT(e){const n=[];let r;for(;r=e.parentNode;)n.unshift(`${e.tagName}:nth-child(${[].indexOf.call(r.children,e)+1})`),e=r;return`${n.join(" > ")}`.toLowerCase()}let ju=!1;function nw(e,n,r,i,l){var c;let u;try{u=JSON.parse(sessionStorage.getItem(e)||"{}")}catch(h){console.error(h);return}const f=n||((c=window.history.state)==null?void 0:c.key),p=u[f];ju=!0,(()=>{if(i&&p){for(const v in p){const g=p[v];if(v==="window")window.scrollTo({top:g.scrollY,left:g.scrollX,behavior:r});else if(v){const b=document.querySelector(v);b&&(b.scrollLeft=g.scrollX,b.scrollTop=g.scrollY)}}return}const h=window.location.hash.split("#")[1];if(h){const v=(window.history.state||{}).__hashScrollIntoViewOptions??!0;if(v){const g=document.getElementById(h);g&&g.scrollIntoView(v)}return}["window",...(l==null?void 0:l.filter(v=>v!=="window"))??[]].forEach(v=>{const g=v==="window"?window:typeof v=="function"?v():document.querySelector(v);g&&g.scrollTo({top:0,left:0,behavior:r})})})(),ju=!1}function MT(e,n){if(Bh===void 0||((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),typeof document>"u"||e.isScrollRestorationSetup))return;e.isScrollRestorationSetup=!0,ju=!1;const i=e.options.getScrollRestorationKey||jp;window.history.scrollRestoration="manual";const l=c=>{if(ju||!e.isScrollRestoring)return;let u="";if(c.target===document||c.target===window)u="window";else{const p=c.target.getAttribute("data-scroll-restoration-id");p?u=`[data-scroll-restoration-id="${p}"]`:u=AT(c.target)}const f=i(e.state.location);Bh.set(p=>{const h=p[f]=p[f]||{},v=h[u]=h[u]||{};if(u==="window")v.scrollX=window.scrollX||0,v.scrollY=window.scrollY||0;else if(u){const g=document.querySelector(u);g&&(v.scrollX=g.scrollLeft||0,v.scrollY=g.scrollTop||0)}return p})};typeof document<"u"&&document.addEventListener("scroll",TT(l,100),!0),e.subscribe("onRendered",c=>{const u=i(c.toLocation);if(!e.resetNextScroll){e.resetNextScroll=!0;return}nw(ku,u,e.options.scrollRestorationBehavior||void 0,e.isScrollRestoring||void 0,e.options.scrollToTopSelectors||void 0),e.isScrollRestoring&&Bh.set(f=>(f[u]=f[u]||{},f))})}function DT(e){if(typeof document<"u"&&document.querySelector){const n=e.state.location.state.__hashScrollIntoViewOptions??!0;if(n&&e.state.location.hash!==""){const r=document.getElementById(e.state.location.hash);r&&r.scrollIntoView(n)}}}function OT(e,n){const r=Object.entries(e).flatMap(([l,c])=>Array.isArray(c)?c.map(u=>[l,String(u)]):[[l,String(c)]]);return""+new URLSearchParams(r).toString()}function Uh(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function NT(e,n){const r=e;return[...new URLSearchParams(r).entries()].reduce((c,[u,f])=>{const p=c[u];return p==null?c[u]=Uh(f):c[u]=Array.isArray(p)?[...p,Uh(f)]:[p,Uh(f)],c},{})}const kT=zT(JSON.parse),jT=LT(JSON.stringify,JSON.parse);function zT(e){return n=>{n.substring(0,1)==="?"&&(n=n.substring(1));const r=NT(n);for(const i in r){const l=r[i];if(typeof l=="string")try{r[i]=e(l)}catch{}}return r}}function LT(e,n){function r(i){if(typeof i=="object"&&i!==null)try{return e(i)}catch{}else if(typeof i=="string"&&typeof n=="function")try{return n(i),e(i)}catch{}return i}return i=>{i={...i},Object.keys(i).forEach(c=>{const u=i[c];typeof u>"u"||u===void 0?delete i[c]:i[c]=r(u)});const l=OT(i).toString();return l?`?${l}`:""}}const aa="__root__";function PT(e){if(e.statusCode=e.statusCode||e.code||307,!e.reloadDocument)try{new URL(`${e.href}`),e.reloadDocument=!0}catch{}const n=new Headers(e.headers||{});e.href&&n.get("Location")===null&&n.set("Location",e.href);const r=new Response(null,{status:e.statusCode,headers:n});if(r.options=e,e.throw)throw r;return r}function ba(e){return e instanceof Response&&!!e.options}function Di(e){const n=e.resolvedLocation,r=e.location,i=(n==null?void 0:n.pathname)!==r.pathname,l=(n==null?void 0:n.href)!==r.href,c=(n==null?void 0:n.hash)!==r.hash;return{fromLocation:n,toLocation:r,pathChanged:i,hrefChanged:l,hashChanged:c}}class BT{constructor(n){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=r=>r(),this.isShell=!1,this.update=r=>{var i;r.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const l=this.options;this.options={...this.options,...r},this.isServer=this.options.isServer??typeof document>"u",this.pathParamsDecodeCharMap=this.options.pathParamsAllowedCharacters?new Map(this.options.pathParamsAllowedCharacters.map(c=>[encodeURIComponent(c),c])):void 0,(!this.basepath||r.basepath&&r.basepath!==l.basepath)&&(r.basepath===void 0||r.basepath===""||r.basepath==="/"?this.basepath="/":this.basepath=`/${Lh(r.basepath)}`),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history??(this.isServer?mT({initialEntries:[this.basepath||"/"]}):pT()),this.latestLocation=this.parseLocation()),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),this.__store||(this.__store=new Ap(HT(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(c=>!["redirected"].includes(c.status))}}}),MT(this)),typeof window<"u"&&"CSS"in window&&typeof((i=window.CSS)==null?void 0:i.supports)=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)")),this.latestLocation.search.__TSS_SHELL&&(this.isShell=!0)},this.buildRouteTree=()=>{const{routesById:r,routesByPath:i,flatRoutes:l}=VT({routeTree:this.routeTree,initRoute:(u,f)=>{u.init({originalIndex:f,defaultSsr:this.options.defaultSsr})}});this.routesById=r,this.routesByPath=i,this.flatRoutes=l;const c=this.options.notFoundRoute;c&&(c.init({originalIndex:99999999999,defaultSsr:this.options.defaultSsr}),this.routesById[c.id]=c)},this.subscribe=(r,i)=>{const l={eventType:r,fn:i};return this.subscribers.add(l),()=>{this.subscribers.delete(l)}},this.emit=r=>{this.subscribers.forEach(i=>{i.eventType===r.type&&i.fn(r)})},this.parseLocation=(r,i)=>{const l=({pathname:p,search:h,hash:v,state:g})=>{const b=this.options.parseSearch(h),x=this.options.stringifySearch(b);return{pathname:p,searchStr:x,search:Vn(r==null?void 0:r.search,b),hash:v.split("#").reverse()[0]??"",href:`${p}${x}${v}`,state:Vn(r==null?void 0:r.state,g)}},c=l(i??this.history.location),{__tempLocation:u,__tempKey:f}=c.state;if(u&&(!f||f===this.tempLocationKey)){const p=l(u);return p.state.key=c.state.key,delete p.state.__tempLocation,{...p,maskedLocation:c}}return c},this.resolvePathWithBase=(r,i)=>yT({basepath:this.basepath,base:r,to:Zu(i),trailingSlash:this.options.trailingSlash,caseSensitive:this.options.caseSensitive}),this.matchRoutes=(r,i,l)=>typeof r=="string"?this.matchRoutesInternal({pathname:r,search:i},l):this.matchRoutesInternal(r,i),this.getMatchedRoutes=(r,i)=>qT({pathname:r,routePathname:i,basepath:this.basepath,caseSensitive:this.options.caseSensitive,routesByPath:this.routesByPath,routesById:this.routesById,flatRoutes:this.flatRoutes}),this.cancelMatch=r=>{const i=this.getMatch(r);i&&(i.abortController.abort(),clearTimeout(i.pendingTimeout))},this.cancelMatches=()=>{var r;(r=this.state.pendingMatches)==null||r.forEach(i=>{this.cancelMatch(i.id)})},this.buildLocation=r=>{const i=(c={})=>{var u;const f=c._fromLocation||this.latestLocation,p=this.matchRoutes(f,{_buildLocation:!0}),h=Dp(p);let v=h.fullPath;c.unsafeRelative==="path"?v=f.pathname:c.to&&c.from&&(v=c.from,[...p].reverse().find(P=>P.fullPath===v||P.fullPath===Ra([v,"/"]))||console.warn(`Could not find match for from: ${c.from}`));const g=h.search,b={...h.params},x=c.to?this.resolvePathWithBase(v,`${c.to}`):v;let C=(c.params??!0)===!0?b:{...b,...Mi(c.params,b)};const S=this.matchRoutes(x,{},{_buildLocation:!0}).map(z=>this.looseRoutesById[z.routeId]);Object.keys(C).length>0&&S.map(z=>{var P;return((P=z.options.params)==null?void 0:P.stringify)??z.options.stringifyParams}).filter(Boolean).forEach(z=>{C={...C,...z(C)}});const R=Ph({path:x,params:C??{},leaveWildcards:!1,leaveParams:r.leaveParams,decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath;let _=g;if(r._includeValidateSearch&&((u=this.options.search)!=null&&u.strict)){let z={};S.forEach(P=>{try{P.options.validateSearch&&(z={...z,...zp(P.options.validateSearch,{...z,..._})??{}})}catch{}}),_=z}_=$T({search:_,dest:c,destRoutes:S,_includeValidateSearch:r._includeValidateSearch}),_=Vn(g,_);const A=this.options.stringifySearch(_),M=c.hash===!0?f.hash:c.hash?Mi(c.hash,f.hash):void 0,k=M?`#${M}`:"";let N=c.state===!0?f.state:c.state?Mi(c.state,f.state):{};return N=Vn(f.state,N),{pathname:R,search:_,searchStr:A,state:N,hash:M??"",href:`${R}${A}${k}`,unmaskOnReload:c.unmaskOnReload}},l=(c={},u)=>{var f;const p=i(c);let h=u?i(u):void 0;if(!h){let v={};const g=(f=this.options.routeMasks)==null?void 0:f.find(b=>{const x=kp(this.basepath,p.pathname,{to:b.from,caseSensitive:!1,fuzzy:!1});return x?(v=x,!0):!1});if(g){const{from:b,...x}=g;u={...Op(r,["from"]),...x,params:v},h=i(u)}}if(h){const v=i(u);p.maskedLocation=v}return p};return r.mask?l(r,{...Op(r,["from"]),...r.mask}):l(r)},this.commitLocation=({viewTransition:r,ignoreBlocker:i,...l})=>{const c=()=>{const p=["key","__TSR_index","__hashScrollIntoViewOptions"];p.forEach(v=>{l.state[v]=this.latestLocation.state[v]});const h=Ps(l.state,this.latestLocation.state);return p.forEach(v=>{delete l.state[v]}),h},u=this.latestLocation.href===l.href,f=this.commitLocationPromise;if(this.commitLocationPromise=Os(()=>{f==null||f.resolve()}),u&&c())this.load();else{let{maskedLocation:p,hashScrollIntoView:h,...v}=l;p&&(v={...p,state:{...p.state,__tempKey:void 0,__tempLocation:{...v,search:v.searchStr,state:{...v.state,__tempKey:void 0,__tempLocation:void 0,key:void 0}}}},(v.unmaskOnReload??this.options.unmaskOnReload??!1)&&(v.state.__tempKey=this.tempLocationKey)),v.state.__hashScrollIntoViewOptions=h??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=r,this.history[l.replace?"replace":"push"](v.href,v.state,{ignoreBlocker:i})}return this.resetNextScroll=l.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:r,resetScroll:i,hashScrollIntoView:l,viewTransition:c,ignoreBlocker:u,href:f,...p}={})=>{if(f){const v=this.history.location.state.__TSR_index,g=_l(f,{__TSR_index:r?v:v+1});p.to=g.pathname,p.search=this.options.parseSearch(g.search),p.hash=g.hash.slice(1)}const h=this.buildLocation({...p,_includeValidateSearch:!0});return this.commitLocation({...h,viewTransition:c,replace:r,resetScroll:i,hashScrollIntoView:l,ignoreBlocker:u})},this.navigate=({to:r,reloadDocument:i,href:l,...c})=>{if(!i&&l)try{new URL(`${l}`),i=!0}catch{}if(i){if(!l){const u=this.buildLocation({to:r,...c});l=this.history.createHref(u.href)}c.replace?window.location.replace(l):window.location.href=l;return}return this.buildAndCommitLocation({...c,href:l,to:r})},this.beforeLoad=()=>{if(this.cancelMatches(),this.latestLocation=this.parseLocation(this.latestLocation),this.isServer){const i=this.buildLocation({to:this.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(Lh(this.latestLocation.href)!==Lh(i.href))throw PT({href:i.href})}const r=this.matchRoutes(this.latestLocation);this.__store.setState(i=>({...i,status:"pending",isLoading:!0,location:this.latestLocation,pendingMatches:r,cachedMatches:i.cachedMatches.filter(l=>!r.find(c=>c.id===l.id))}))},this.load=async r=>{let i,l,c;for(c=new Promise(u=>{this.startTransition(async()=>{var f;try{this.beforeLoad();const p=this.latestLocation,h=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...Di({resolvedLocation:h,location:p})}),this.emit({type:"onBeforeLoad",...Di({resolvedLocation:h,location:p})}),await this.loadMatches({sync:r==null?void 0:r.sync,matches:this.state.pendingMatches,location:p,onReady:async()=>{this.startViewTransition(async()=>{let v,g,b;r0(()=>{this.__store.setState(x=>{const C=x.matches,S=x.pendingMatches||x.matches;return v=C.filter(R=>!S.find(_=>_.id===R.id)),g=S.filter(R=>!C.find(_=>_.id===R.id)),b=C.filter(R=>S.find(_=>_.id===R.id)),{...x,isLoading:!1,loadedAt:Date.now(),matches:S,pendingMatches:void 0,cachedMatches:[...x.cachedMatches,...v.filter(R=>R.status!=="error")]}}),this.clearExpiredCache()}),[[v,"onLeave"],[g,"onEnter"],[b,"onStay"]].forEach(([x,C])=>{x.forEach(S=>{var R,_;(_=(R=this.looseRoutesById[S.routeId].options)[C])==null||_.call(R,S)})})})}})}catch(p){ba(p)?(i=p,this.isServer||this.navigate({...i.options,replace:!0,ignoreBlocker:!0})):$n(p)&&(l=p),this.__store.setState(h=>({...h,statusCode:i?i.status:l?404:h.matches.some(v=>v.status==="error")?500:200,redirect:i}))}this.latestLoadPromise===c&&((f=this.commitLocationPromise)==null||f.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),u()})}),this.latestLoadPromise=c,await c;this.latestLoadPromise&&c!==this.latestLoadPromise;)await this.latestLoadPromise;this.hasNotFoundMatch()&&this.__store.setState(u=>({...u,statusCode:404}))},this.startViewTransition=r=>{const i=this.shouldViewTransition??this.options.defaultViewTransition;if(delete this.shouldViewTransition,i&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let l;if(typeof i=="object"&&this.isViewTransitionTypesSupported){const c=this.latestLocation,u=this.state.resolvedLocation,f=typeof i.types=="function"?i.types(Di({resolvedLocation:u,location:c})):i.types;l={update:r,types:f}}else l=r;document.startViewTransition(l)}else r()},this.updateMatch=(r,i)=>{var l;let c;const u=(l=this.state.pendingMatches)==null?void 0:l.find(v=>v.id===r),f=this.state.matches.find(v=>v.id===r),p=this.state.cachedMatches.find(v=>v.id===r),h=u?"pendingMatches":f?"matches":p?"cachedMatches":"";return h&&this.__store.setState(v=>{var g;return{...v,[h]:(g=v[h])==null?void 0:g.map(b=>b.id===r?c=i(b):b)}}),c},this.getMatch=r=>[...this.state.cachedMatches,...this.state.pendingMatches??[],...this.state.matches].find(i=>i.id===r),this.loadMatches=async({location:r,matches:i,preload:l,onReady:c,updateMatch:u=this.updateMatch,sync:f})=>{let p,h=!1;const v=async()=>{h||(h=!0,await(c==null?void 0:c()))},g=x=>!!(l&&!this.state.matches.find(C=>C.id===x)),b=(x,C)=>{var S,R,_,A;if(ba(C)||$n(C)){if(ba(C)&&C.redirectHandled&&!C.options.reloadDocument)throw C;if((S=x.beforeLoadPromise)==null||S.resolve(),(R=x.loaderPromise)==null||R.resolve(),u(x.id,M=>({...M,status:ba(C)?"redirected":$n(C)?"notFound":"error",isFetching:!1,error:C,beforeLoadPromise:void 0,loaderPromise:void 0})),C.routeId||(C.routeId=x.routeId),(_=x.loadPromise)==null||_.resolve(),ba(C))throw h=!0,C.options._fromLocation=r,C.redirectHandled=!0,C=this.resolveRedirect(C),C;if($n(C))throw this._handleNotFound(i,C,{updateMatch:u}),(A=this.serverSsr)==null||A.onMatchSettled({router:this,match:this.getMatch(x.id)}),C}};try{await new Promise((x,C)=>{(async()=>{var S,R,_,A;try{const M=(z,P,D)=>{var B,Y;const{id:Z,routeId:ee}=i[z],le=this.looseRoutesById[ee];if(P instanceof Promise)throw P;P.routerCode=D,p=p??z,b(this.getMatch(Z),P);try{(Y=(B=le.options).onError)==null||Y.call(B,P)}catch(he){P=he,b(this.getMatch(Z),P)}u(Z,he=>{var ce,L;return(ce=he.beforeLoadPromise)==null||ce.resolve(),(L=he.loadPromise)==null||L.resolve(),{...he,error:P,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController,beforeLoadPromise:void 0}})};for(const[z,{id:P,routeId:D}]of i.entries()){const B=this.getMatch(P),Y=(S=i[z-1])==null?void 0:S.id,Z=this.looseRoutesById[D],ee=Z.options.pendingMs??this.options.defaultPendingMs,le=!!(c&&!this.isServer&&!g(P)&&(Z.options.loader||Z.options.beforeLoad||d0(Z))&&typeof ee=="number"&&ee!==1/0&&(Z.options.pendingComponent??((R=this.options)==null?void 0:R.defaultPendingComponent)));let he=!0;if((B.beforeLoadPromise||B.loaderPromise)&&(le&&setTimeout(()=>{try{v()}catch{}},ee),await B.beforeLoadPromise,he=this.getMatch(P).status==="error"),he){try{u(P,re=>{const oe=re.loadPromise;return{...re,loadPromise:Os(()=>{oe==null||oe.resolve()}),beforeLoadPromise:Os()}});const ce=new AbortController;let L;le&&(L=setTimeout(()=>{try{v()}catch{}},ee));const{paramsError:Q,searchError:$}=this.getMatch(P);Q&&M(z,Q,"PARSE_PARAMS"),$&&M(z,$,"VALIDATE_SEARCH");const de=()=>Y?this.getMatch(Y).context:this.options.context??{};u(P,re=>({...re,isFetching:"beforeLoad",fetchCount:re.fetchCount+1,abortController:ce,pendingTimeout:L,context:{...de(),...re.__routeContext}}));const{search:O,params:q,context:W,cause:X}=this.getMatch(P),te=g(P),fe={search:O,abortController:ce,params:q,preload:te,context:W,location:r,navigate:re=>this.navigate({...re,_fromLocation:r}),buildLocation:this.buildLocation,cause:te?"preload":X,matches:i},ae=await((A=(_=Z.options).beforeLoad)==null?void 0:A.call(_,fe))??{};(ba(ae)||$n(ae))&&M(z,ae,"BEFORE_LOAD"),u(P,re=>({...re,__beforeLoadContext:ae,context:{...de(),...re.__routeContext,...ae},abortController:ce}))}catch(ce){M(z,ce,"BEFORE_LOAD")}u(P,ce=>{var L;return(L=ce.beforeLoadPromise)==null||L.resolve(),{...ce,beforeLoadPromise:void 0,isFetching:!1}})}}const k=i.slice(0,p),N=[];k.forEach(({id:z,routeId:P},D)=>{N.push((async()=>{const{loaderPromise:B}=this.getMatch(z);let Y=!1,Z=!1;if(B){await B;const ee=this.getMatch(z);ee.error&&b(ee,ee.error)}else{const ee=N[D-1],le=this.looseRoutesById[P],he=()=>{const{params:te,loaderDeps:fe,abortController:ae,context:re,cause:oe}=this.getMatch(z),pe=g(z);return{params:te,deps:fe,preload:!!pe,parentMatchPromise:ee,abortController:ae,context:re,location:r,navigate:ue=>this.navigate({...ue,_fromLocation:r}),cause:pe?"preload":oe,route:le}},ce=Date.now()-this.getMatch(z).updatedAt,L=g(z),Q=L?le.options.preloadStaleTime??this.options.defaultPreloadStaleTime??3e4:le.options.staleTime??this.options.defaultStaleTime??0,$=le.options.shouldReload,de=typeof $=="function"?$(he()):$;u(z,te=>({...te,loaderPromise:Os(),preload:!!L&&!this.state.matches.find(fe=>fe.id===z)}));const O=async()=>{var te,fe,ae,re,oe,pe;const ue=this.getMatch(z);if(!ue)return;const xe={matches:i,match:ue,params:ue.params,loaderData:ue.loaderData},me=await((fe=(te=le.options).head)==null?void 0:fe.call(te,xe)),ze=me==null?void 0:me.meta,He=me==null?void 0:me.links,vt=me==null?void 0:me.scripts,it=await((re=(ae=le.options).scripts)==null?void 0:re.call(ae,xe)),Fe=await((pe=(oe=le.options).headers)==null?void 0:pe.call(oe,xe));return{meta:ze,links:He,headScripts:vt,headers:Fe,scripts:it}},q=async()=>{var te,fe,ae,re,oe;try{const pe=async()=>{const ue=this.getMatch(z);ue.minPendingPromise&&await ue.minPendingPromise};try{this.loadRouteChunk(le),u(z,me=>({...me,isFetching:"loader"}));const ue=await((fe=(te=le.options).loader)==null?void 0:fe.call(te,he()));b(this.getMatch(z),ue),await le._lazyPromise,await pe(),await le._componentsPromise,u(z,me=>({...me,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),loaderData:ue}));const xe=await O();u(z,me=>({...me,...xe}))}catch(ue){let xe=ue;await pe(),b(this.getMatch(z),ue);try{(re=(ae=le.options).onError)==null||re.call(ae,ue)}catch(ze){xe=ze,b(this.getMatch(z),ze)}const me=await O();u(z,ze=>({...ze,error:xe,status:"error",isFetching:!1,...me}))}(oe=this.serverSsr)==null||oe.onMatchSettled({router:this,match:this.getMatch(z)})}catch(pe){const ue=await O();u(z,xe=>({...xe,loaderPromise:void 0,...ue})),b(this.getMatch(z),pe)}},{status:W,invalid:X}=this.getMatch(z);if(Y=W==="success"&&(X||(de??ce>Q)),!(L&&le.options.preload===!1))if(Y&&!f)Z=!0,(async()=>{try{await q();const{loaderPromise:te,loadPromise:fe}=this.getMatch(z);te==null||te.resolve(),fe==null||fe.resolve(),u(z,ae=>({...ae,loaderPromise:void 0}))}catch(te){ba(te)&&await this.navigate(te.options)}})();else if(W!=="success"||Y&&f)await q();else{const te=await O();u(z,fe=>({...fe,...te}))}}if(!Z){const{loaderPromise:ee,loadPromise:le}=this.getMatch(z);ee==null||ee.resolve(),le==null||le.resolve()}return u(z,ee=>({...ee,isFetching:Z?ee.isFetching:!1,loaderPromise:Z?ee.loaderPromise:void 0,invalid:!1})),this.getMatch(z)})())}),await Promise.all(N),x()}catch(M){C(M)}})()}),await v()}catch(x){if(ba(x)||$n(x))throw $n(x)&&!l&&await v(),x}return i},this.invalidate=r=>{const i=l=>{var c;return((c=r==null?void 0:r.filter)==null?void 0:c.call(r,l))??!0?{...l,invalid:!0,...l.status==="error"?{status:"pending",error:void 0}:{}}:l};return this.__store.setState(l=>{var c;return{...l,matches:l.matches.map(i),cachedMatches:l.cachedMatches.map(i),pendingMatches:(c=l.pendingMatches)==null?void 0:c.map(i)}}),this.shouldViewTransition=!1,this.load({sync:r==null?void 0:r.sync})},this.resolveRedirect=r=>(r.options.href||(r.options.href=this.buildLocation(r.options).href,r.headers.set("Location",r.options.href)),r.headers.get("Location")||r.headers.set("Location",r.options.href),r),this.clearCache=r=>{const i=r==null?void 0:r.filter;i!==void 0?this.__store.setState(l=>({...l,cachedMatches:l.cachedMatches.filter(c=>!i(c))})):this.__store.setState(l=>({...l,cachedMatches:[]}))},this.clearExpiredCache=()=>{const r=i=>{const l=this.looseRoutesById[i.routeId];if(!l.options.loader)return!0;const c=(i.preload?l.options.preloadGcTime??this.options.defaultPreloadGcTime:l.options.gcTime??this.options.defaultGcTime)??5*60*1e3;return!(i.status!=="error"&&Date.now()-i.updatedAt<c)};this.clearCache({filter:r})},this.loadRouteChunk=r=>(r._lazyPromise===void 0&&(r.lazyFn?r._lazyPromise=r.lazyFn().then(i=>{const{id:l,...c}=i.options;Object.assign(r.options,c)}):r._lazyPromise=Promise.resolve()),r._componentsPromise===void 0&&(r._componentsPromise=r._lazyPromise.then(()=>Promise.all(aw.map(async i=>{const l=r.options[i];l!=null&&l.preload&&await l.preload()})))),r._componentsPromise),this.preloadRoute=async r=>{const i=this.buildLocation(r);let l=this.matchRoutes(i,{throwOnError:!0,preload:!0,dest:r});const c=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(f=>f.id)),u=new Set([...c,...this.state.cachedMatches.map(f=>f.id)]);r0(()=>{l.forEach(f=>{u.has(f.id)||this.__store.setState(p=>({...p,cachedMatches:[...p.cachedMatches,f]}))})});try{return l=await this.loadMatches({matches:l,location:i,preload:!0,updateMatch:(f,p)=>{c.has(f)?l=l.map(h=>h.id===f?p(h):h):this.updateMatch(f,p)}}),l}catch(f){if(ba(f))return f.options.reloadDocument?void 0:await this.preloadRoute({...f.options,_fromLocation:i});$n(f)||console.error(f);return}},this.matchRoute=(r,i)=>{const l={...r,to:r.to?this.resolvePathWithBase(r.from||"",r.to):void 0,params:r.params||{},leaveParams:!0},c=this.buildLocation(l);if(i!=null&&i.pending&&this.state.status!=="pending")return!1;const f=((i==null?void 0:i.pending)===void 0?!this.state.isLoading:i.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,p=kp(this.basepath,f.pathname,{...i,to:c.pathname});return!p||r.params&&!Ps(p,r.params,{partial:!0})?!1:p&&((i==null?void 0:i.includeSearch)??!0)?Ps(f.search,c.search,{partial:!0})?p:!1:p},this._handleNotFound=(r,i,{updateMatch:l=this.updateMatch}={})=>{var c;const u=this.routesById[i.routeId??""]??this.routeTree,f={};for(const h of r)f[h.routeId]=h;!u.options.notFoundComponent&&((c=this.options)!=null&&c.defaultNotFoundComponent)&&(u.options.notFoundComponent=this.options.defaultNotFoundComponent),ar(u.options.notFoundComponent);const p=f[u.id];ar(p,"Could not find match for route: "+u.id),l(p.id,h=>({...h,status:"notFound",error:i,isFetching:!1})),i.routerCode==="BEFORE_LOAD"&&u.parentRoute&&(i.routeId=u.parentRoute.id,this._handleNotFound(r,i,{updateMatch:l}))},this.hasNotFoundMatch=()=>this.__store.state.matches.some(r=>r.status==="notFound"||r.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...n,caseSensitive:n.caseSensitive??!1,notFoundMode:n.notFoundMode??"fuzzy",stringifySearch:n.stringifySearch??jT,parseSearch:n.parseSearch??kT}),typeof document<"u"&&(window.__TSR_ROUTER__=this)}get state(){return this.__store.state}get looseRoutesById(){return this.routesById}matchRoutesInternal(n,r){var i;const{foundRoute:l,matchedRoutes:c,routeParams:u}=this.getMatchedRoutes(n.pathname,(i=r==null?void 0:r.dest)==null?void 0:i.to);let f=!1;(l?l.path!=="/"&&u["**"]:eo(n.pathname))&&(this.options.notFoundRoute?c.push(this.options.notFoundRoute):f=!0);const p=(()=>{if(f){if(this.options.notFoundMode!=="root")for(let b=c.length-1;b>=0;b--){const x=c[b];if(x.children)return x.id}return aa}})(),h=c.map(b=>{var x;let C;const S=((x=b.options.params)==null?void 0:x.parse)??b.options.parseParams;if(S)try{const R=S(u);Object.assign(u,R)}catch(R){if(C=new UT(R.message,{cause:R}),r!=null&&r.throwOnError)throw C;return C}}),v=[],g=b=>(b==null?void 0:b.id)?b.context??this.options.context??{}:this.options.context??{};return c.forEach((b,x)=>{var C,S;const R=v[x-1],[_,A,M]=(()=>{const he=(R==null?void 0:R.search)??n.search,ce=(R==null?void 0:R._strictSearch)??{};try{const L=zp(b.options.validateSearch,{...he})??{};return[{...he,...L},{...ce,...L},void 0]}catch(L){let Q=L;if(L instanceof zu||(Q=new zu(L.message,{cause:L})),r!=null&&r.throwOnError)throw Q;return[he,{},Q]}})(),k=((S=(C=b.options).loaderDeps)==null?void 0:S.call(C,{search:_}))??"",N=k?JSON.stringify(k):"",{usedParams:z,interpolatedPath:P}=Ph({path:b.fullPath,params:u,decodeCharMap:this.pathParamsDecodeCharMap}),D=Ph({path:b.id,params:u,leaveWildcards:!0,decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath+N,B=this.getMatch(D),Y=this.state.matches.find(he=>he.routeId===b.id),Z=Y?"stay":"enter";let ee;if(B)ee={...B,cause:Z,params:Y?Vn(Y.params,u):u,_strictParams:z,search:Vn(Y?Y.search:B.search,_),_strictSearch:A};else{const he=b.options.loader||b.options.beforeLoad||b.lazyFn||d0(b)?"pending":"success";ee={id:D,index:x,routeId:b.id,params:Y?Vn(Y.params,u):u,_strictParams:z,pathname:Ra([this.basepath,P]),updatedAt:Date.now(),search:Y?Vn(Y.search,_):_,_strictSearch:A,searchError:void 0,status:he,isFetching:!1,error:void 0,paramsError:h[x],__routeContext:{},__beforeLoadContext:{},context:{},abortController:new AbortController,fetchCount:0,cause:Z,loaderDeps:Y?Vn(Y.loaderDeps,k):k,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:b.options.staticData||{},loadPromise:Os(),fullPath:b.fullPath}}r!=null&&r.preload||(ee.globalNotFound=p===b.id),ee.searchError=M;const le=g(R);ee.context={...le,...ee.__routeContext,...ee.__beforeLoadContext},v.push(ee)}),v.forEach((b,x)=>{var C,S;const R=this.looseRoutesById[b.routeId];if(!this.getMatch(b.id)&&(r==null?void 0:r._buildLocation)!==!0){const A=v[x-1],M=g(A),k={deps:b.loaderDeps,params:b.params,context:M,location:n,navigate:N=>this.navigate({...N,_fromLocation:n}),buildLocation:this.buildLocation,cause:b.cause,abortController:b.abortController,preload:!!b.preload,matches:v};b.__routeContext=((S=(C=R.options).context)==null?void 0:S.call(C,k))??{},b.context={...M,...b.__routeContext,...b.__beforeLoadContext}}}),v}}class zu extends Error{}class UT extends Error{}function HT(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function zp(e,n){if(e==null)return{};if("~standard"in e){const r=e["~standard"].validate(n);if(r instanceof Promise)throw new zu("Async validation not supported");if(r.issues)throw new zu(JSON.stringify(r.issues,void 0,2),{cause:r});return r.value}return"parse"in e?e.parse(n):typeof e=="function"?e(n):{}}const aw=["component","errorComponent","pendingComponent","notFoundComponent"];function d0(e){var n;for(const r of aw)if((n=e.options[r])!=null&&n.preload)return!0;return!1}function VT({routeTree:e,initRoute:n}){const r={},i={},l=p=>{p.forEach((h,v)=>{n==null||n(h,v);const g=r[h.id];if(ar(!g,`Duplicate routes found with id: ${String(h.id)}`),r[h.id]=h,!h.isRoot&&h.path){const x=eo(h.fullPath);(!i[x]||h.fullPath.endsWith("/"))&&(i[x]=h)}const b=h.children;b!=null&&b.length&&l(b)})};l([e]);const c=[];Object.values(r).forEach((p,h)=>{var v;if(p.isRoot||!p.path)return;const g=hm(p.fullPath),b=to(g);for(;b.length>1&&((v=b[0])==null?void 0:v.value)==="/";)b.shift();const x=b.map(C=>C.value==="/"?.75:C.type==="param"&&C.prefixSegment&&C.suffixSegment?.55:C.type==="param"&&C.prefixSegment?.52:C.type==="param"&&C.suffixSegment?.51:C.type==="param"?.5:C.type==="wildcard"&&C.prefixSegment&&C.suffixSegment?.3:C.type==="wildcard"&&C.prefixSegment?.27:C.type==="wildcard"&&C.suffixSegment?.26:C.type==="wildcard"?.25:1);c.push({child:p,trimmed:g,parsed:b,index:h,scores:x})});const f=c.sort((p,h)=>{const v=Math.min(p.scores.length,h.scores.length);for(let g=0;g<v;g++)if(p.scores[g]!==h.scores[g])return h.scores[g]-p.scores[g];if(p.scores.length!==h.scores.length)return h.scores.length-p.scores.length;for(let g=0;g<v;g++)if(p.parsed[g].value!==h.parsed[g].value)return p.parsed[g].value>h.parsed[g].value?1:-1;return p.index-h.index}).map((p,h)=>(p.child.rank=h,p.child));return{routesById:r,routesByPath:i,flatRoutes:f}}function qT({pathname:e,routePathname:n,basepath:r,caseSensitive:i,routesByPath:l,routesById:c,flatRoutes:u}){let f={};const p=eo(e),h=x=>{var C;return kp(r,p,{to:x.fullPath,caseSensitive:((C=x.options)==null?void 0:C.caseSensitive)??i,fuzzy:!0})};let v=n!==void 0?l[n]:void 0;v?f=h(v):v=u.find(x=>{const C=h(x);return C?(f=C,!0):!1});let g=v||c[aa];const b=[g];for(;g.parentRoute;)g=g.parentRoute,b.unshift(g);return{matchedRoutes:b,routeParams:f,foundRoute:v}}function $T({search:e,dest:n,destRoutes:r,_includeValidateSearch:i}){const l=r.reduce((f,p)=>{var h;const v=[];if("search"in p.options)(h=p.options.search)!=null&&h.middlewares&&v.push(...p.options.search.middlewares);else if(p.options.preSearchFilters||p.options.postSearchFilters){const g=({search:b,next:x})=>{let C=b;"preSearchFilters"in p.options&&p.options.preSearchFilters&&(C=p.options.preSearchFilters.reduce((R,_)=>_(R),b));const S=x(C);return"postSearchFilters"in p.options&&p.options.postSearchFilters?p.options.postSearchFilters.reduce((R,_)=>_(R),S):S};v.push(g)}if(i&&p.options.validateSearch){const g=({search:b,next:x})=>{const C=x(b);try{return{...C,...zp(p.options.validateSearch,C)??{}}}catch{return C}};v.push(g)}return f.concat(v)},[])??[],c=({search:f})=>n.search?n.search===!0?f:Mi(n.search,f):{};l.push(c);const u=(f,p)=>{if(f>=l.length)return p;const h=l[f];return h({search:p,next:g=>u(f+1,g)})};return u(0,e)}const FT="Error preloading route! ☝️";class rw{constructor(n){if(this.init=r=>{var i,l;this.originalIndex=r.originalIndex;const c=this.options,u=!(c!=null&&c.path)&&!(c!=null&&c.id);this.parentRoute=(l=(i=this.options).getParentRoute)==null?void 0:l.call(i),u?this._path=aa:this.parentRoute||ar(!1);let f=u?aa:c==null?void 0:c.path;f&&f!=="/"&&(f=hm(f));const p=(c==null?void 0:c.id)||f;let h=u?aa:Ra([this.parentRoute.id===aa?"":this.parentRoute.id,p]);f===aa&&(f="/"),h!==aa&&(h=Ra(["/",h]));const v=h===aa?"/":Ra([this.parentRoute.fullPath,f]);this._path=f,this._id=h,this._fullPath=v,this._to=v,this._ssr=(c==null?void 0:c.ssr)??r.defaultSsr??!0},this.clone=r=>{this._path=r._path,this._id=r._id,this._fullPath=r._fullPath,this._to=r._to,this._ssr=r._ssr,this.options.getParentRoute=r.options.getParentRoute,this.children=r.children},this.addChildren=r=>this._addFileChildren(r),this._addFileChildren=r=>(Array.isArray(r)&&(this.children=r),typeof r=="object"&&r!==null&&(this.children=Object.values(r)),this),this._addFileTypes=()=>this,this.updateLoader=r=>(Object.assign(this.options,r),this),this.update=r=>(Object.assign(this.options,r),this),this.lazy=r=>(this.lazyFn=r,this),this.options=n||{},this.isRoot=!(n!=null&&n.getParentRoute),n!=null&&n.id&&(n!=null&&n.path))throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}get ssr(){return this._ssr}}class IT extends rw{constructor(n){super(n)}}function pm(e){const n=e.errorComponent??Wu;return y.jsx(GT,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:r,reset:i})=>r?w.createElement(n,{error:r,reset:i}):e.children})}class GT extends w.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(n){return{resetKey:n.getResetKey()}}static getDerivedStateFromError(n){return{error:n}}reset(){this.setState({error:null})}componentDidUpdate(n,r){r.error&&r.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(n,r){this.props.onCatch&&this.props.onCatch(n,r)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function Wu({error:e}){const[n,r]=w.useState(!1);return y.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[y.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),y.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>r(i=>!i),children:n?"Hide Error":"Show Error"})]}),y.jsx("div",{style:{height:".25rem"}}),n?y.jsx("div",{children:y.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?y.jsx("code",{children:e.message}):null})}):null]})}function YT({children:e,fallback:n=null}){return QT()?y.jsx(se.Fragment,{children:e}):y.jsx(se.Fragment,{children:n})}function QT(){return se.useSyncExternalStore(KT,()=>!0,()=>!1)}function KT(){return()=>{}}var Hh={exports:{}},Vh={},qh={exports:{}},$h={};/**
18
+ * @license React
19
+ * use-sync-external-store-shim.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var f0;function XT(){if(f0)return $h;f0=1;var e=Bl();function n(g,b){return g===b&&(g!==0||1/g===1/b)||g!==g&&b!==b}var r=typeof Object.is=="function"?Object.is:n,i=e.useState,l=e.useEffect,c=e.useLayoutEffect,u=e.useDebugValue;function f(g,b){var x=b(),C=i({inst:{value:x,getSnapshot:b}}),S=C[0].inst,R=C[1];return c(function(){S.value=x,S.getSnapshot=b,p(S)&&R({inst:S})},[g,x,b]),l(function(){return p(S)&&R({inst:S}),g(function(){p(S)&&R({inst:S})})},[g]),u(x),x}function p(g){var b=g.getSnapshot;g=g.value;try{var x=b();return!r(g,x)}catch{return!0}}function h(g,b){return b()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:f;return $h.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:v,$h}var h0;function ZT(){return h0||(h0=1,qh.exports=XT()),qh.exports}/**
26
+ * @license React
27
+ * use-sync-external-store-shim/with-selector.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var p0;function WT(){if(p0)return Vh;p0=1;var e=Bl(),n=ZT();function r(h,v){return h===v&&(h!==0||1/h===1/v)||h!==h&&v!==v}var i=typeof Object.is=="function"?Object.is:r,l=n.useSyncExternalStore,c=e.useRef,u=e.useEffect,f=e.useMemo,p=e.useDebugValue;return Vh.useSyncExternalStoreWithSelector=function(h,v,g,b,x){var C=c(null);if(C.current===null){var S={hasValue:!1,value:null};C.current=S}else S=C.current;C=f(function(){function _(z){if(!A){if(A=!0,M=z,z=b(z),x!==void 0&&S.hasValue){var P=S.value;if(x(P,z))return k=P}return k=z}if(P=k,i(M,z))return P;var D=b(z);return x!==void 0&&x(P,D)?(M=z,P):(M=z,k=D)}var A=!1,M,k,N=g===void 0?null:g;return[function(){return _(v())},N===null?void 0:function(){return _(N())}]},[v,g,b,x]);var R=l(h,C[0],C[1]);return u(function(){S.hasValue=!0,S.value=R},[R]),p(R),R},Vh}var m0;function JT(){return m0||(m0=1,Hh.exports=WT()),Hh.exports}var e_=JT();function t_(e,n=r=>r){return e_.useSyncExternalStoreWithSelector(e.subscribe,()=>e.state,()=>e.state,n,n_)}function n_(e,n){if(Object.is(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;if(e instanceof Map&&n instanceof Map){if(e.size!==n.size)return!1;for(const[i,l]of e)if(!n.has(i)||!Object.is(l,n.get(i)))return!1;return!0}if(e instanceof Set&&n instanceof Set){if(e.size!==n.size)return!1;for(const i of e)if(!n.has(i))return!1;return!0}const r=Object.keys(e);if(r.length!==Object.keys(n).length)return!1;for(let i=0;i<r.length;i++)if(!Object.prototype.hasOwnProperty.call(n,r[i])||!Object.is(e[r[i]],n[r[i]]))return!1;return!0}const Fh=w.createContext(null);function iw(){return typeof document>"u"?Fh:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=Fh,Fh)}function Yn(e){const n=w.useContext(iw());return e==null||e.warn,n}function Jt(e){const n=Yn({warn:(e==null?void 0:e.router)===void 0}),r=(e==null?void 0:e.router)||n,i=w.useRef(void 0);return t_(r.__store,l=>{if(e!=null&&e.select){if(e.structuralSharing??r.options.defaultStructuralSharing){const c=Vn(i.current,e.select(l));return i.current=c,c}return e.select(l)}return l})}const Ju=w.createContext(void 0),a_=w.createContext(void 0);function Gn(e){const n=w.useContext(e.from?a_:Ju);return Jt({select:i=>{const l=i.matches.find(c=>e.from?e.from===c.routeId:c.id===n);if(ar(!((e.shouldThrow??!0)&&!l),`Could not find ${e.from?`an active match from "${e.from}"`:"a nearest match!"}`),l!==void 0)return e.select?e.select(l):l},structuralSharing:e.structuralSharing})}function mm(e){return Gn({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:n=>e.select?e.select(n.loaderData):n.loaderData})}function gm(e){const{select:n,...r}=e;return Gn({...r,select:i=>n?n(i.loaderDeps):i.loaderDeps})}function vm(e){return Gn({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:n=>e.select?e.select(n.params):n.params})}function ym(e){return Gn({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:n=>e.select?e.select(n.search):n.search})}function oo(e){const{navigate:n,state:r}=Yn(),i=Gn({strict:!1,select:l=>l.index});return w.useCallback(l=>{const c=l.from??(e==null?void 0:e.from)??r.matches[i].fullPath;return n({...l,from:c})},[e==null?void 0:e.from,n])}var Ih={exports:{}},Zt={};/**
34
+ * @license React
35
+ * react-dom.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var g0;function r_(){if(g0)return Zt;g0=1;var e=Bl();function n(p){var h="https://react.dev/errors/"+p;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)h+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+p+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},l=Symbol.for("react.portal");function c(p,h,v){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:g==null?null:""+g,children:p,containerInfo:h,implementation:v}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(p,h){if(p==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Zt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Zt.createPortal=function(p,h){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(n(299));return c(p,h,null,v)},Zt.flushSync=function(p){var h=u.T,v=i.p;try{if(u.T=null,i.p=2,p)return p()}finally{u.T=h,i.p=v,i.d.f()}},Zt.preconnect=function(p,h){typeof p=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(p,h))},Zt.prefetchDNS=function(p){typeof p=="string"&&i.d.D(p)},Zt.preinit=function(p,h){if(typeof p=="string"&&h&&typeof h.as=="string"){var v=h.as,g=f(v,h.crossOrigin),b=typeof h.integrity=="string"?h.integrity:void 0,x=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;v==="style"?i.d.S(p,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:g,integrity:b,fetchPriority:x}):v==="script"&&i.d.X(p,{crossOrigin:g,integrity:b,fetchPriority:x,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Zt.preinitModule=function(p,h){if(typeof p=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var v=f(h.as,h.crossOrigin);i.d.M(p,{crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&i.d.M(p)},Zt.preload=function(p,h){if(typeof p=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var v=h.as,g=f(v,h.crossOrigin);i.d.L(p,v,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Zt.preloadModule=function(p,h){if(typeof p=="string")if(h){var v=f(h.as,h.crossOrigin);i.d.m(p,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else i.d.m(p)},Zt.requestFormReset=function(p){i.d.r(p)},Zt.unstable_batchedUpdates=function(p,h){return p(h)},Zt.useFormState=function(p,h,v){return u.H.useFormState(p,h,v)},Zt.useFormStatus=function(){return u.H.useHostTransitionStatus()},Zt.version="19.1.0",Zt}var v0;function sw(){if(v0)return Ih.exports;v0=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Ih.exports=r_(),Ih.exports}var sa=sw();const ow=Bx(sa),yl=typeof window<"u"?w.useLayoutEffect:w.useEffect;function Gh(e){const n=w.useRef({value:e,prev:null}),r=n.current.value;return e!==r&&(n.current={value:e,prev:r}),n.current.prev}function i_(e,n,r={},i={}){const l=w.useRef(typeof IntersectionObserver=="function"),c=w.useRef(null);return w.useEffect(()=>{if(!(!e.current||!l.current||i.disabled))return c.current=new IntersectionObserver(([u])=>{n(u)},r),c.current.observe(e.current),()=>{var u;(u=c.current)==null||u.disconnect()}},[n,r,i.disabled,e]),c.current}function s_(e){const n=w.useRef(null);return w.useImperativeHandle(e,()=>n.current,[]),n}function o_(e,n){const r=Yn(),[i,l]=w.useState(!1),c=w.useRef(!1),u=s_(n),{activeProps:f=()=>({className:"active"}),inactiveProps:p=()=>({}),activeOptions:h,to:v,preload:g,preloadDelay:b,hashScrollIntoView:x,replace:C,startTransition:S,resetScroll:R,viewTransition:_,children:A,target:M,disabled:k,style:N,className:z,onClick:P,onFocus:D,onMouseEnter:B,onMouseLeave:Y,onTouchStart:Z,ignoreBlocker:ee,...le}=e,{params:he,search:ce,hash:L,state:Q,mask:$,reloadDocument:de,...O}=le,q=w.useMemo(()=>{try{return new URL(`${v}`),"external"}catch{}return"internal"},[v]),W=Jt({select:Le=>Le.location.search,structuralSharing:!0}),X=Gn({strict:!1,select:Le=>Le.fullPath}),te=e.from??X;e={...e,from:te};const fe=w.useMemo(()=>r.buildLocation(e),[r,e,W]),ae=w.useMemo(()=>e.reloadDocument?!1:g??r.options.defaultPreload,[r.options.defaultPreload,g,e.reloadDocument]),re=b??r.options.defaultPreloadDelay??0,oe=Jt({select:Le=>{if(h!=null&&h.exact){if(!vT(Le.location.pathname,fe.pathname,r.basepath))return!1}else{const De=Ou(Le.location.pathname,r.basepath).split("/");if(!Ou(fe.pathname,r.basepath).split("/").every((ti,cn)=>ti===De[cn]))return!1}return((h==null?void 0:h.includeSearch)??!0)&&!Ps(Le.location.search,fe.search,{partial:!(h!=null&&h.exact),ignoreUndefined:!(h!=null&&h.explicitUndefined)})?!1:h!=null&&h.includeHash?Le.location.hash===fe.hash:!0}}),pe=w.useCallback(()=>{r.preloadRoute(e).catch(Le=>{console.warn(Le),console.warn(FT)})},[e,r]),ue=w.useCallback(Le=>{Le!=null&&Le.isIntersecting&&pe()},[pe]);if(i_(u,ue,{rootMargin:"100px"},{disabled:!!k||ae!=="viewport"}),yl(()=>{c.current||!k&&ae==="render"&&(pe(),c.current=!0)},[k,pe,ae]),q==="external")return{...O,ref:u,type:q,href:v,...A&&{children:A},...M&&{target:M},...k&&{disabled:k},...N&&{style:N},...z&&{className:z},...P&&{onClick:P},...D&&{onFocus:D},...B&&{onMouseEnter:B},...Y&&{onMouseLeave:Y},...Z&&{onTouchStart:Z}};const xe=Le=>{if(!k&&!l_(Le)&&!Le.defaultPrevented&&(!M||M==="_self")&&Le.button===0){Le.preventDefault(),sa.flushSync(()=>{l(!0)});const De=r.subscribe("onResolved",()=>{De(),l(!1)});return r.navigate({...e,replace:C,resetScroll:R,hashScrollIntoView:x,startTransition:S,viewTransition:_,ignoreBlocker:ee})}},me=Le=>{k||ae&&pe()},ze=me,He=Le=>{if(k)return;const De=Le.target||{};if(ae){if(De.preloadTimeout)return;re?De.preloadTimeout=setTimeout(()=>{De.preloadTimeout=null,pe()},re):pe()}},vt=Le=>{if(k)return;const De=Le.target||{};De.preloadTimeout&&(clearTimeout(De.preloadTimeout),De.preloadTimeout=null)},it=Le=>De=>{var Kt;(Kt=De.persist)==null||Kt.call(De),Le.filter(Boolean).forEach(Oa=>{De.defaultPrevented||Oa(De)})},Fe=oe?Mi(f,{})??{}:{},ln=oe?{}:Mi(p,{}),mt=[z,Fe.className,ln.className].filter(Boolean).join(" "),Qt={...N,...Fe.style,...ln.style};return{...O,...Fe,...ln,href:k?void 0:fe.maskedLocation?r.history.createHref(fe.maskedLocation.href):r.history.createHref(fe.href),ref:u,onClick:it([P,xe]),onFocus:it([D,me]),onMouseEnter:it([B,He]),onMouseLeave:it([Y,vt]),onTouchStart:it([Z,ze]),disabled:!!k,target:M,...Object.keys(Qt).length&&{style:Qt},...mt&&{className:mt},...k&&{role:"link","aria-disabled":!0},...oe&&{"data-status":"active","aria-current":"page"},...i&&{"data-transitioning":"transitioning"}}}const Ul=w.forwardRef((e,n)=>{const{_asChild:r,...i}=e,{type:l,ref:c,...u}=o_(i,n),f=typeof i.children=="function"?i.children({isActive:u["data-status"]==="active"}):i.children;return typeof r>"u"&&delete u.disabled,w.createElement(r||"a",{...u,ref:c},f)});function l_(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}let c_=class extends rw{constructor(n){super(n),this.useMatch=r=>Gn({select:r==null?void 0:r.select,from:this.id,structuralSharing:r==null?void 0:r.structuralSharing}),this.useRouteContext=r=>Gn({...r,from:this.id,select:i=>r!=null&&r.select?r.select(i.context):i.context}),this.useSearch=r=>ym({select:r==null?void 0:r.select,structuralSharing:r==null?void 0:r.structuralSharing,from:this.id}),this.useParams=r=>vm({select:r==null?void 0:r.select,structuralSharing:r==null?void 0:r.structuralSharing,from:this.id}),this.useLoaderDeps=r=>gm({...r,from:this.id}),this.useLoaderData=r=>mm({...r,from:this.id}),this.useNavigate=()=>oo({from:this.fullPath}),this.Link=se.forwardRef((r,i)=>y.jsx(Ul,{ref:i,from:this.fullPath,...r})),this.$$typeof=Symbol.for("react.memo")}};function u_(e){return new c_(e)}class d_ extends IT{constructor(n){super(n),this.useMatch=r=>Gn({select:r==null?void 0:r.select,from:this.id,structuralSharing:r==null?void 0:r.structuralSharing}),this.useRouteContext=r=>Gn({...r,from:this.id,select:i=>r!=null&&r.select?r.select(i.context):i.context}),this.useSearch=r=>ym({select:r==null?void 0:r.select,structuralSharing:r==null?void 0:r.structuralSharing,from:this.id}),this.useParams=r=>vm({select:r==null?void 0:r.select,structuralSharing:r==null?void 0:r.structuralSharing,from:this.id}),this.useLoaderDeps=r=>gm({...r,from:this.id}),this.useLoaderData=r=>mm({...r,from:this.id}),this.useNavigate=()=>oo({from:this.fullPath}),this.Link=se.forwardRef((r,i)=>y.jsx(Ul,{ref:i,from:this.fullPath,...r})),this.$$typeof=Symbol.for("react.memo")}}function f_(e){return new d_(e)}function no(e){return typeof e=="object"?new y0(e,{silent:!0}).createRoute(e):new y0(e,{silent:!0}).createRoute}class y0{constructor(n,r){this.path=n,this.createRoute=i=>{this.silent;const l=u_(i);return l.isRoot=!1,l},this.silent=r==null?void 0:r.silent}}class b0{constructor(n){this.useMatch=r=>Gn({select:r==null?void 0:r.select,from:this.options.id,structuralSharing:r==null?void 0:r.structuralSharing}),this.useRouteContext=r=>Gn({from:this.options.id,select:i=>r!=null&&r.select?r.select(i.context):i.context}),this.useSearch=r=>ym({select:r==null?void 0:r.select,structuralSharing:r==null?void 0:r.structuralSharing,from:this.options.id}),this.useParams=r=>vm({select:r==null?void 0:r.select,structuralSharing:r==null?void 0:r.structuralSharing,from:this.options.id}),this.useLoaderDeps=r=>gm({...r,from:this.options.id}),this.useLoaderData=r=>mm({...r,from:this.options.id}),this.useNavigate=()=>{const r=Yn();return oo({from:r.routesById[this.options.id].fullPath})},this.options=n,this.$$typeof=Symbol.for("react.memo")}}function x0(e){return typeof e=="object"?new b0(e):n=>new b0({id:e,...n})}function h_(e){const n=Jt({select:r=>`not-found-${r.location.pathname}-${r.status}`});return y.jsx(pm,{getResetKey:()=>n,onCatch:(r,i)=>{var l;if($n(r))(l=e.onCatch)==null||l.call(e,r,i);else throw r},errorComponent:({error:r})=>{var i;if($n(r))return(i=e.fallback)==null?void 0:i.call(e,r);throw r},children:e.children})}function p_(){return y.jsx("p",{children:"Not Found"})}function Su(e){return y.jsx(y.Fragment,{children:e.children})}function lw(e,n,r){return n.options.notFoundComponent?y.jsx(n.options.notFoundComponent,{data:r}):e.options.defaultNotFoundComponent?y.jsx(e.options.defaultNotFoundComponent,{data:r}):y.jsx(p_,{})}var Yh,w0;function m_(){if(w0)return Yh;w0=1;const e={},n=e.hasOwnProperty,r=(D,B)=>{for(const Y in D)n.call(D,Y)&&B(Y,D[Y])},i=(D,B)=>(B&&r(B,(Y,Z)=>{D[Y]=Z}),D),l=(D,B)=>{const Y=D.length;let Z=-1;for(;++Z<Y;)B(D[Z])},c=D=>"\\u"+("0000"+D).slice(-4),u=(D,B)=>{let Y=D.toString(16);return B?Y:Y.toUpperCase()},f=e.toString,p=Array.isArray,h=D=>typeof Buffer=="function"&&Buffer.isBuffer(D),v=D=>f.call(D)=="[object Object]",g=D=>typeof D=="string"||f.call(D)=="[object String]",b=D=>typeof D=="number"||f.call(D)=="[object Number]",x=D=>typeof D=="bigint",C=D=>typeof D=="function",S=D=>f.call(D)=="[object Map]",R=D=>f.call(D)=="[object Set]",_={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},A=/[\\\b\f\n\r\t]/,M=/[0-9]/,k=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,N=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,z=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,P=(D,B)=>{const Y=()=>{Q=L,++B.indentLevel,L=B.indent.repeat(B.indentLevel)},Z={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},ee=B&&B.json;ee&&(Z.quotes="double",Z.wrap=!0),B=i(Z,B),B.quotes!="single"&&B.quotes!="double"&&B.quotes!="backtick"&&(B.quotes="single");const le=B.quotes=="double"?'"':B.quotes=="backtick"?"`":"'",he=B.compact,ce=B.lowercaseHex;let L=B.indent.repeat(B.indentLevel),Q="";const $=B.__inline1__,de=B.__inline2__,O=he?"":`
42
+ `;let q,W=!0;const X=B.numbers=="binary",te=B.numbers=="octal",fe=B.numbers=="decimal",ae=B.numbers=="hexadecimal";if(ee&&D&&C(D.toJSON)&&(D=D.toJSON()),!g(D)){if(S(D))return D.size==0?"new Map()":(he||(B.__inline1__=!0,B.__inline2__=!1),"new Map("+P(Array.from(D),B)+")");if(R(D))return D.size==0?"new Set()":"new Set("+P(Array.from(D),B)+")";if(h(D))return D.length==0?"Buffer.from([])":"Buffer.from("+P(Array.from(D),B)+")";if(p(D))return q=[],B.wrap=!0,$&&(B.__inline1__=!1,B.__inline2__=!0),de||Y(),l(D,oe=>{W=!1,de&&(B.__inline2__=!1),q.push((he||de?"":L)+P(oe,B))}),W?"[]":de?"["+q.join(", ")+"]":"["+O+q.join(","+O)+O+(he?"":Q)+"]";if(b(D)||x(D)){if(ee)return JSON.stringify(Number(D));let oe;if(fe)oe=String(D);else if(ae){let pe=D.toString(16);ce||(pe=pe.toUpperCase()),oe="0x"+pe}else X?oe="0b"+D.toString(2):te&&(oe="0o"+D.toString(8));return x(D)?oe+"n":oe}else return x(D)?ee?JSON.stringify(Number(D)):D+"n":v(D)?(q=[],B.wrap=!0,Y(),r(D,(oe,pe)=>{W=!1,q.push((he?"":L)+P(oe,B)+":"+(he?"":" ")+P(pe,B))}),W?"{}":"{"+O+q.join(","+O)+O+(he?"":Q)+"}"):ee?JSON.stringify(D)||"null":String(D)}const re=B.escapeEverything?N:z;return q=D.replace(re,(oe,pe,ue,xe,me,ze)=>{if(pe){if(B.minimal)return pe;const vt=pe.charCodeAt(0),it=pe.charCodeAt(1);if(B.es6){const Fe=(vt-55296)*1024+it-56320+65536;return"\\u{"+u(Fe,ce)+"}"}return c(u(vt,ce))+c(u(it,ce))}if(ue)return c(u(ue.charCodeAt(0),ce));if(oe=="\0"&&!ee&&!M.test(ze.charAt(me+1)))return"\\0";if(xe)return xe==le||B.escapeEverything?"\\"+xe:xe;if(A.test(oe))return _[oe];if(B.minimal&&!k.test(oe))return oe;const He=u(oe.charCodeAt(0),ce);return ee||He.length>2?c(He):"\\x"+("00"+He).slice(-2)}),le=="`"&&(q=q.replace(/\$\{/g,"\\${")),B.isScriptContext&&(q=q.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,ee?"\\u003C!--":"\\x3C!--")),B.wrap&&(q=le+q+le),q};return P.version="3.0.2",Yh=P,Yh}m_();function g_({children:e,log:n}){return typeof document<"u"?null:y.jsx("script",{className:"tsr-once",dangerouslySetInnerHTML:{__html:[e,"",'if (typeof __TSR_SSR__ !== "undefined") __TSR_SSR__.cleanScripts()'].filter(Boolean).join(`
43
+ `)}})}function v_(){const e=Yn(),r=(e.options.getScrollRestorationKey||jp)(e.latestLocation),i=r!==jp(e.latestLocation)?r:null;return!e.isScrollRestoring||!e.isServer?null:y.jsx(g_,{children:`(${nw.toString()})(${JSON.stringify(ku)},${JSON.stringify(i)}, undefined, true)`,log:!1})}const cw=w.memo(function({matchId:n}){var r,i;const l=Yn(),c=Jt({select:_=>{var A;return(A=_.matches.find(M=>M.id===n))==null?void 0:A.routeId}});ar(c);const u=l.routesById[c],f=u.options.pendingComponent??l.options.defaultPendingComponent,p=f?y.jsx(f,{}):null,h=u.options.errorComponent??l.options.defaultErrorComponent,v=u.options.onCatch??l.options.defaultOnCatch,g=u.isRoot?u.options.notFoundComponent??((r=l.options.notFoundRoute)==null?void 0:r.options.component):u.options.notFoundComponent,b=(!u.isRoot||u.options.wrapInSuspense)&&(u.options.wrapInSuspense??f??((i=u.options.errorComponent)==null?void 0:i.preload))?w.Suspense:Su,x=h?pm:Su,C=g?h_:Su,S=Jt({select:_=>_.loadedAt}),R=Jt({select:_=>{var A;const M=_.matches.findIndex(k=>k.id===n);return(A=_.matches[M-1])==null?void 0:A.routeId}});return y.jsxs(y.Fragment,{children:[y.jsx(Ju.Provider,{value:n,children:y.jsx(b,{fallback:p,children:y.jsx(x,{getResetKey:()=>S,errorComponent:h||Wu,onCatch:(_,A)=>{if($n(_))throw _;v==null||v(_,A)},children:y.jsx(C,{fallback:_=>{if(!g||_.routeId&&_.routeId!==c||!_.routeId&&!u.isRoot)throw _;return w.createElement(g,_)},children:y.jsx(b_,{matchId:n})})})})}),R===aa&&l.options.scrollRestoration?y.jsxs(y.Fragment,{children:[y.jsx(y_,{}),y.jsx(v_,{})]}):null]})});function y_(){const e=Yn(),n=w.useRef(void 0);return y.jsx("script",{suppressHydrationWarning:!0,ref:r=>{r&&(n.current===void 0||n.current.href!==e.latestLocation.href)&&(e.emit({type:"onRendered",...Di(e.state)}),n.current=e.latestLocation)}},e.latestLocation.state.key)}const b_=w.memo(function({matchId:n}){var r,i,l;const c=Yn(),{match:u,key:f,routeId:p}=Jt({select:b=>{const x=b.matches.findIndex(M=>M.id===n),C=b.matches[x],S=C.routeId,R=c.routesById[S].options.remountDeps??c.options.defaultRemountDeps,_=R==null?void 0:R({routeId:S,loaderDeps:C.loaderDeps,params:C._strictParams,search:C._strictSearch});return{key:_?JSON.stringify(_):void 0,routeId:S,match:Op(C,["id","status","error"])}},structuralSharing:!0}),h=c.routesById[p],v=w.useMemo(()=>{const b=h.options.component??c.options.defaultComponent;return b?y.jsx(b,{},f):y.jsx(ed,{})},[f,h.options.component,c.options.defaultComponent]),g=(h.options.errorComponent??c.options.defaultErrorComponent)||Wu;if(u.status==="notFound")return ar($n(u.error)),lw(c,h,u.error);if(u.status==="redirected")throw ar(ba(u.error)),(r=c.getMatch(u.id))==null?void 0:r.loadPromise;if(u.status==="error"){if(c.isServer)return y.jsx(g,{error:u.error,reset:void 0,info:{componentStack:""}});throw u.error}if(u.status==="pending"){const b=h.options.pendingMinMs??c.options.defaultPendingMinMs;if(b&&!((i=c.getMatch(u.id))!=null&&i.minPendingPromise)&&!c.isServer){const x=Os();Promise.resolve().then(()=>{c.updateMatch(u.id,C=>({...C,minPendingPromise:x}))}),setTimeout(()=>{x.resolve(),c.updateMatch(u.id,C=>({...C,minPendingPromise:void 0}))},b)}throw(l=c.getMatch(u.id))==null?void 0:l.loadPromise}return v}),ed=w.memo(function(){const n=Yn(),r=w.useContext(Ju),i=Jt({select:h=>{var v;return(v=h.matches.find(g=>g.id===r))==null?void 0:v.routeId}}),l=n.routesById[i],c=Jt({select:h=>{const g=h.matches.find(b=>b.id===r);return ar(g),g.globalNotFound}}),u=Jt({select:h=>{var v;const g=h.matches,b=g.findIndex(x=>x.id===r);return(v=g[b+1])==null?void 0:v.id}}),f=n.options.defaultPendingComponent?y.jsx(n.options.defaultPendingComponent,{}):null;if(n.isShell)return y.jsx(w.Suspense,{fallback:f,children:y.jsx(x_,{})});if(c)return lw(n,l,void 0);if(!u)return null;const p=y.jsx(cw,{matchId:u});return r===aa?y.jsx(w.Suspense,{fallback:f,children:p}):p});function x_(){throw new Error("ShellBoundaryError")}function w_(e){return typeof(e==null?void 0:e.message)!="string"?!1:e.message.startsWith("Failed to fetch dynamically imported module")||e.message.startsWith("error loading dynamically imported module")||e.message.startsWith("Importing a module script failed")}function td(e,n,r){let i,l,c,u;const f=()=>typeof document>"u"&&(r==null?void 0:r())===!1?(l=()=>null,Promise.resolve()):(i||(i=e().then(h=>{i=void 0,l=h[n]}).catch(h=>{if(c=h,w_(c)&&c instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const v=`tanstack_router_reload:${c.message}`;sessionStorage.getItem(v)||(sessionStorage.setItem(v,"1"),u=!0)}})),i),p=function(v){if(u)throw window.location.reload(),new Promise(()=>{});if(c)throw c;if(!l)throw f();return(r==null?void 0:r())===!1?y.jsx(YT,{fallback:y.jsx(ed,{}),children:w.createElement(l,v)}):w.createElement(l,v)};return p.preload=f,p}function S_(){const e=Yn(),n=w.useRef({router:e,mounted:!1}),r=Jt({select:({isLoading:g})=>g}),[i,l]=w.useState(!1),c=Jt({select:g=>g.matches.some(b=>b.status==="pending"),structuralSharing:!0}),u=Gh(r),f=r||i||c,p=Gh(f),h=r||c,v=Gh(h);return e.isServer||(e.startTransition=g=>{l(!0),w.startTransition(()=>{g(),l(!1)})}),w.useEffect(()=>{const g=e.history.subscribe(e.load),b=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return eo(e.latestLocation.href)!==eo(b.href)&&e.commitLocation({...b,replace:!0}),()=>{g()}},[e,e.history]),yl(()=>{if(typeof window<"u"&&e.clientSsr||n.current.router===e&&n.current.mounted)return;n.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(b){console.error(b)}})()},[e]),yl(()=>{u&&!r&&e.emit({type:"onLoad",...Di(e.state)})},[u,e,r]),yl(()=>{v&&!h&&e.emit({type:"onBeforeRouteMount",...Di(e.state)})},[h,v,e]),yl(()=>{p&&!f&&(e.emit({type:"onResolved",...Di(e.state)}),e.__store.setState(g=>({...g,status:"idle",resolvedLocation:g.location})),DT(e))},[f,p,e]),null}function C_(){const e=Yn(),n=e.options.defaultPendingComponent?y.jsx(e.options.defaultPendingComponent,{}):null,r=e.isServer||typeof document<"u"&&e.clientSsr?Su:w.Suspense,i=y.jsxs(r,{fallback:n,children:[y.jsx(S_,{}),y.jsx(E_,{})]});return e.options.InnerWrap?y.jsx(e.options.InnerWrap,{children:i}):i}function E_(){const e=Jt({select:r=>{var i;return(i=r.matches[0])==null?void 0:i.id}}),n=Jt({select:r=>r.loadedAt});return y.jsx(Ju.Provider,{value:e,children:y.jsx(pm,{getResetKey:()=>n,errorComponent:Wu,onCatch:r=>{r.message||r.toString()},children:e?y.jsx(cw,{matchId:e}):null})})}const R_=e=>new T_(e);class T_ extends BT{constructor(n){super(n)}}typeof globalThis<"u"?(globalThis.createFileRoute=no,globalThis.createLazyFileRoute=x0):typeof window<"u"&&(window.createFileRoute=no,window.createFileRoute=x0);function __({router:e,children:n,...r}){Object.keys(r).length>0&&e.update({...e.options,...r,context:{...e.options.context,...r.context}});const i=iw(),l=y.jsx(i.Provider,{value:e,children:n});return e.options.Wrap?y.jsx(e.options.Wrap,{children:l}):l}function A_({router:e,...n}){return y.jsx(__,{router:e,...n,children:y.jsx(C_,{})})}function uw(e){return Jt({select:n=>e!=null&&e.select?e.select(n.location):n.location})}var Qh={exports:{}},fl={},Kh={exports:{}},Xh={};/**
44
+ * @license React
45
+ * scheduler.production.js
46
+ *
47
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
48
+ *
49
+ * This source code is licensed under the MIT license found in the
50
+ * LICENSE file in the root directory of this source tree.
51
+ */var S0;function M_(){return S0||(S0=1,function(e){function n(L,Q){var $=L.length;L.push(Q);e:for(;0<$;){var de=$-1>>>1,O=L[de];if(0<l(O,Q))L[de]=Q,L[$]=O,$=de;else break e}}function r(L){return L.length===0?null:L[0]}function i(L){if(L.length===0)return null;var Q=L[0],$=L.pop();if($!==Q){L[0]=$;e:for(var de=0,O=L.length,q=O>>>1;de<q;){var W=2*(de+1)-1,X=L[W],te=W+1,fe=L[te];if(0>l(X,$))te<O&&0>l(fe,X)?(L[de]=fe,L[te]=$,de=te):(L[de]=X,L[W]=$,de=W);else if(te<O&&0>l(fe,$))L[de]=fe,L[te]=$,de=te;else break e}}return Q}function l(L,Q){var $=L.sortIndex-Q.sortIndex;return $!==0?$:L.id-Q.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var p=[],h=[],v=1,g=null,b=3,x=!1,C=!1,S=!1,R=!1,_=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function k(L){for(var Q=r(h);Q!==null;){if(Q.callback===null)i(h);else if(Q.startTime<=L)i(h),Q.sortIndex=Q.expirationTime,n(p,Q);else break;Q=r(h)}}function N(L){if(S=!1,k(L),!C)if(r(p)!==null)C=!0,z||(z=!0,ee());else{var Q=r(h);Q!==null&&ce(N,Q.startTime-L)}}var z=!1,P=-1,D=5,B=-1;function Y(){return R?!0:!(e.unstable_now()-B<D)}function Z(){if(R=!1,z){var L=e.unstable_now();B=L;var Q=!0;try{e:{C=!1,S&&(S=!1,A(P),P=-1),x=!0;var $=b;try{t:{for(k(L),g=r(p);g!==null&&!(g.expirationTime>L&&Y());){var de=g.callback;if(typeof de=="function"){g.callback=null,b=g.priorityLevel;var O=de(g.expirationTime<=L);if(L=e.unstable_now(),typeof O=="function"){g.callback=O,k(L),Q=!0;break t}g===r(p)&&i(p),k(L)}else i(p);g=r(p)}if(g!==null)Q=!0;else{var q=r(h);q!==null&&ce(N,q.startTime-L),Q=!1}}break e}finally{g=null,b=$,x=!1}Q=void 0}}finally{Q?ee():z=!1}}}var ee;if(typeof M=="function")ee=function(){M(Z)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,he=le.port2;le.port1.onmessage=Z,ee=function(){he.postMessage(null)}}else ee=function(){_(Z,0)};function ce(L,Q){P=_(function(){L(e.unstable_now())},Q)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(L){switch(b){case 1:case 2:case 3:var Q=3;break;default:Q=b}var $=b;b=Q;try{return L()}finally{b=$}},e.unstable_requestPaint=function(){R=!0},e.unstable_runWithPriority=function(L,Q){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var $=b;b=L;try{return Q()}finally{b=$}},e.unstable_scheduleCallback=function(L,Q,$){var de=e.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?de+$:de):$=de,L){case 1:var O=-1;break;case 2:O=250;break;case 5:O=1073741823;break;case 4:O=1e4;break;default:O=5e3}return O=$+O,L={id:v++,callback:Q,priorityLevel:L,startTime:$,expirationTime:O,sortIndex:-1},$>de?(L.sortIndex=$,n(h,L),r(p)===null&&L===r(h)&&(S?(A(P),P=-1):S=!0,ce(N,$-de))):(L.sortIndex=O,n(p,L),C||x||(C=!0,z||(z=!0,ee()))),L},e.unstable_shouldYield=Y,e.unstable_wrapCallback=function(L){var Q=b;return function(){var $=b;b=Q;try{return L.apply(this,arguments)}finally{b=$}}}}(Xh)),Xh}var C0;function D_(){return C0||(C0=1,Kh.exports=M_()),Kh.exports}/**
52
+ * @license React
53
+ * react-dom-client.production.js
54
+ *
55
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
56
+ *
57
+ * This source code is licensed under the MIT license found in the
58
+ * LICENSE file in the root directory of this source tree.
59
+ */var E0;function O_(){if(E0)return fl;E0=1;var e=D_(),n=Bl(),r=sw();function i(t){var a="https://react.dev/errors/"+t;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)a+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+t+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function c(t){var a=t,s=t;if(t.alternate)for(;a.return;)a=a.return;else{t=a;do a=t,(a.flags&4098)!==0&&(s=a.return),t=a.return;while(t)}return a.tag===3?s:null}function u(t){if(t.tag===13){var a=t.memoizedState;if(a===null&&(t=t.alternate,t!==null&&(a=t.memoizedState)),a!==null)return a.dehydrated}return null}function f(t){if(c(t)!==t)throw Error(i(188))}function p(t){var a=t.alternate;if(!a){if(a=c(t),a===null)throw Error(i(188));return a!==t?null:t}for(var s=t,o=a;;){var d=s.return;if(d===null)break;var m=d.alternate;if(m===null){if(o=d.return,o!==null){s=o;continue}break}if(d.child===m.child){for(m=d.child;m;){if(m===s)return f(d),t;if(m===o)return f(d),a;m=m.sibling}throw Error(i(188))}if(s.return!==o.return)s=d,o=m;else{for(var E=!1,T=d.child;T;){if(T===s){E=!0,s=d,o=m;break}if(T===o){E=!0,o=d,s=m;break}T=T.sibling}if(!E){for(T=m.child;T;){if(T===s){E=!0,s=m,o=d;break}if(T===o){E=!0,o=m,s=d;break}T=T.sibling}if(!E)throw Error(i(189))}}if(s.alternate!==o)throw Error(i(190))}if(s.tag!==3)throw Error(i(188));return s.stateNode.current===s?t:a}function h(t){var a=t.tag;if(a===5||a===26||a===27||a===6)return t;for(t=t.child;t!==null;){if(a=h(t),a!==null)return a;t=t.sibling}return null}var v=Object.assign,g=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),A=Symbol.for("react.consumer"),M=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),Y=Symbol.for("react.memo_cache_sentinel"),Z=Symbol.iterator;function ee(t){return t===null||typeof t!="object"?null:(t=Z&&t[Z]||t["@@iterator"],typeof t=="function"?t:null)}var le=Symbol.for("react.client.reference");function he(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===le?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case C:return"Fragment";case R:return"Profiler";case S:return"StrictMode";case N:return"Suspense";case z:return"SuspenseList";case B:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case x:return"Portal";case M:return(t.displayName||"Context")+".Provider";case A:return(t._context.displayName||"Context")+".Consumer";case k:var a=t.render;return t=t.displayName,t||(t=a.displayName||a.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case P:return a=t.displayName||null,a!==null?a:he(t.type)||"Memo";case D:a=t._payload,t=t._init;try{return he(t(a))}catch{}}return null}var ce=Array.isArray,L=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$={pending:!1,data:null,method:null,action:null},de=[],O=-1;function q(t){return{current:t}}function W(t){0>O||(t.current=de[O],de[O]=null,O--)}function X(t,a){O++,de[O]=t.current,t.current=a}var te=q(null),fe=q(null),ae=q(null),re=q(null);function oe(t,a){switch(X(ae,a),X(fe,t),X(te,null),a.nodeType){case 9:case 11:t=(t=a.documentElement)&&(t=t.namespaceURI)?yb(t):0;break;default:if(t=a.tagName,a=a.namespaceURI)a=yb(a),t=bb(a,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}W(te),X(te,t)}function pe(){W(te),W(fe),W(ae)}function ue(t){t.memoizedState!==null&&X(re,t);var a=te.current,s=bb(a,t.type);a!==s&&(X(fe,t),X(te,s))}function xe(t){fe.current===t&&(W(te),W(fe)),re.current===t&&(W(re),sl._currentValue=$)}var me=Object.prototype.hasOwnProperty,ze=e.unstable_scheduleCallback,He=e.unstable_cancelCallback,vt=e.unstable_shouldYield,it=e.unstable_requestPaint,Fe=e.unstable_now,ln=e.unstable_getCurrentPriorityLevel,mt=e.unstable_ImmediatePriority,Qt=e.unstable_UserBlockingPriority,Le=e.unstable_NormalPriority,De=e.unstable_LowPriority,Kt=e.unstable_IdlePriority,Oa=e.log,ti=e.unstable_setDisableYieldValue,cn=null,wt=null;function Lt(t){if(typeof Oa=="function"&&ti(t),wt&&typeof wt.setStrictMode=="function")try{wt.setStrictMode(cn,t)}catch{}}var yt=Math.clz32?Math.clz32:Kn,Qn=Math.log,xn=Math.LN2;function Kn(t){return t>>>=0,t===0?32:31-(Qn(t)/xn|0)|0}var sr=256,or=4194304;function un(t){var a=t&42;if(a!==0)return a;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function fa(t,a,s){var o=t.pendingLanes;if(o===0)return 0;var d=0,m=t.suspendedLanes,E=t.pingedLanes;t=t.warmLanes;var T=o&134217727;return T!==0?(o=T&~m,o!==0?d=un(o):(E&=T,E!==0?d=un(E):s||(s=T&~t,s!==0&&(d=un(s))))):(T=o&~m,T!==0?d=un(T):E!==0?d=un(E):s||(s=o&~t,s!==0&&(d=un(s)))),d===0?0:a!==0&&a!==d&&(a&m)===0&&(m=d&-d,s=a&-a,m>=s||m===32&&(s&4194048)!==0)?a:d}function Na(t,a){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&a)===0}function lr(t,a){switch(t){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function wn(){var t=sr;return sr<<=1,(sr&4194048)===0&&(sr=256),t}function qi(){var t=or;return or<<=1,(or&62914560)===0&&(or=4194304),t}function ni(t){for(var a=[],s=0;31>s;s++)a.push(t);return a}function pt(t,a){t.pendingLanes|=a,a!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Pt(t,a,s,o,d,m){var E=t.pendingLanes;t.pendingLanes=s,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=s,t.entangledLanes&=s,t.errorRecoveryDisabledLanes&=s,t.shellSuspendCounter=0;var T=t.entanglements,j=t.expirationTimes,I=t.hiddenUpdates;for(s=E&~s;0<s;){var J=31-yt(s),ie=1<<J;T[J]=0,j[J]=-1;var G=I[J];if(G!==null)for(I[J]=null,J=0;J<G.length;J++){var K=G[J];K!==null&&(K.lane&=-536870913)}s&=~ie}o!==0&&we(t,o,0),m!==0&&d===0&&t.tag!==0&&(t.suspendedLanes|=m&~(E&~a))}function we(t,a,s){t.pendingLanes|=a,t.suspendedLanes&=~a;var o=31-yt(a);t.entangledLanes|=a,t.entanglements[o]=t.entanglements[o]|1073741824|s&4194090}function We(t,a){var s=t.entangledLanes|=a;for(t=t.entanglements;s;){var o=31-yt(s),d=1<<o;d&a|t[o]&a&&(t[o]|=a),s&=~d}}function Ie(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Ye(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Bt(){var t=Q.p;return t!==0?t:(t=window.event,t===void 0?32:Bb(t.type))}function ft(t,a){var s=Q.p;try{return Q.p=t,a()}finally{Q.p=s}}var Oe=Math.random().toString(36).slice(2),Je="__reactFiber$"+Oe,Pe="__reactProps$"+Oe,st="__reactContainer$"+Oe,On="__reactEvents$"+Oe,tn="__reactListeners$"+Oe,Xn="__reactHandles$"+Oe,cr="__reactResources$"+Oe,ka="__reactMarker$"+Oe;function Cd(t){delete t[Je],delete t[Pe],delete t[On],delete t[tn],delete t[Xn]}function $i(t){var a=t[Je];if(a)return a;for(var s=t.parentNode;s;){if(a=s[st]||s[Je]){if(s=a.alternate,a.child!==null||s!==null&&s.child!==null)for(t=Cb(t);t!==null;){if(s=t[Je])return s;t=Cb(t)}return a}t=s,s=t.parentNode}return null}function Fi(t){if(t=t[Je]||t[st]){var a=t.tag;if(a===5||a===6||a===13||a===26||a===27||a===3)return t}return null}function yo(t){var a=t.tag;if(a===5||a===26||a===27||a===6)return t.stateNode;throw Error(i(33))}function Ii(t){var a=t[cr];return a||(a=t[cr]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Ut(t){t[ka]=!0}var og=new Set,lg={};function ai(t,a){Gi(t,a),Gi(t+"Capture",a)}function Gi(t,a){for(lg[t]=a,t=0;t<a.length;t++)og.add(a[t])}var vC=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),cg={},ug={};function yC(t){return me.call(ug,t)?!0:me.call(cg,t)?!1:vC.test(t)?ug[t]=!0:(cg[t]=!0,!1)}function Yl(t,a,s){if(yC(a))if(s===null)t.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":t.removeAttribute(a);return;case"boolean":var o=a.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){t.removeAttribute(a);return}}t.setAttribute(a,""+s)}}function Ql(t,a,s){if(s===null)t.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttribute(a,""+s)}}function ja(t,a,s,o){if(o===null)t.removeAttribute(s);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(s);return}t.setAttributeNS(a,s,""+o)}}var Ed,dg;function Yi(t){if(Ed===void 0)try{throw Error()}catch(s){var a=s.stack.trim().match(/\n( *(at )?)/);Ed=a&&a[1]||"",dg=-1<s.stack.indexOf(`
60
+ at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
61
+ `+Ed+t+dg}var Rd=!1;function Td(t,a){if(!t||Rd)return"";Rd=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(a){var ie=function(){throw Error()};if(Object.defineProperty(ie.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ie,[])}catch(K){var G=K}Reflect.construct(t,[],ie)}else{try{ie.call()}catch(K){G=K}t.call(ie.prototype)}}else{try{throw Error()}catch(K){G=K}(ie=t())&&typeof ie.catch=="function"&&ie.catch(function(){})}}catch(K){if(K&&G&&typeof K.stack=="string")return[K.stack,G.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=o.DetermineComponentFrameRoot(),E=m[0],T=m[1];if(E&&T){var j=E.split(`
62
+ `),I=T.split(`
63
+ `);for(d=o=0;o<j.length&&!j[o].includes("DetermineComponentFrameRoot");)o++;for(;d<I.length&&!I[d].includes("DetermineComponentFrameRoot");)d++;if(o===j.length||d===I.length)for(o=j.length-1,d=I.length-1;1<=o&&0<=d&&j[o]!==I[d];)d--;for(;1<=o&&0<=d;o--,d--)if(j[o]!==I[d]){if(o!==1||d!==1)do if(o--,d--,0>d||j[o]!==I[d]){var J=`
64
+ `+j[o].replace(" at new "," at ");return t.displayName&&J.includes("<anonymous>")&&(J=J.replace("<anonymous>",t.displayName)),J}while(1<=o&&0<=d);break}}}finally{Rd=!1,Error.prepareStackTrace=s}return(s=t?t.displayName||t.name:"")?Yi(s):""}function bC(t){switch(t.tag){case 26:case 27:case 5:return Yi(t.type);case 16:return Yi("Lazy");case 13:return Yi("Suspense");case 19:return Yi("SuspenseList");case 0:case 15:return Td(t.type,!1);case 11:return Td(t.type.render,!1);case 1:return Td(t.type,!0);case 31:return Yi("Activity");default:return""}}function fg(t){try{var a="";do a+=bC(t),t=t.return;while(t);return a}catch(s){return`
65
+ Error generating stack: `+s.message+`
66
+ `+s.stack}}function Nn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function hg(t){var a=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function xC(t){var a=hg(t)?"checked":"value",s=Object.getOwnPropertyDescriptor(t.constructor.prototype,a),o=""+t[a];if(!t.hasOwnProperty(a)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var d=s.get,m=s.set;return Object.defineProperty(t,a,{configurable:!0,get:function(){return d.call(this)},set:function(E){o=""+E,m.call(this,E)}}),Object.defineProperty(t,a,{enumerable:s.enumerable}),{getValue:function(){return o},setValue:function(E){o=""+E},stopTracking:function(){t._valueTracker=null,delete t[a]}}}}function Kl(t){t._valueTracker||(t._valueTracker=xC(t))}function pg(t){if(!t)return!1;var a=t._valueTracker;if(!a)return!0;var s=a.getValue(),o="";return t&&(o=hg(t)?t.checked?"true":"false":t.value),t=o,t!==s?(a.setValue(t),!0):!1}function Xl(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var wC=/[\n"\\]/g;function kn(t){return t.replace(wC,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function _d(t,a,s,o,d,m,E,T){t.name="",E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?t.type=E:t.removeAttribute("type"),a!=null?E==="number"?(a===0&&t.value===""||t.value!=a)&&(t.value=""+Nn(a)):t.value!==""+Nn(a)&&(t.value=""+Nn(a)):E!=="submit"&&E!=="reset"||t.removeAttribute("value"),a!=null?Ad(t,E,Nn(a)):s!=null?Ad(t,E,Nn(s)):o!=null&&t.removeAttribute("value"),d==null&&m!=null&&(t.defaultChecked=!!m),d!=null&&(t.checked=d&&typeof d!="function"&&typeof d!="symbol"),T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?t.name=""+Nn(T):t.removeAttribute("name")}function mg(t,a,s,o,d,m,E,T){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(t.type=m),a!=null||s!=null){if(!(m!=="submit"&&m!=="reset"||a!=null))return;s=s!=null?""+Nn(s):"",a=a!=null?""+Nn(a):s,T||a===t.value||(t.value=a),t.defaultValue=a}o=o??d,o=typeof o!="function"&&typeof o!="symbol"&&!!o,t.checked=T?t.checked:!!o,t.defaultChecked=!!o,E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(t.name=E)}function Ad(t,a,s){a==="number"&&Xl(t.ownerDocument)===t||t.defaultValue===""+s||(t.defaultValue=""+s)}function Qi(t,a,s,o){if(t=t.options,a){a={};for(var d=0;d<s.length;d++)a["$"+s[d]]=!0;for(s=0;s<t.length;s++)d=a.hasOwnProperty("$"+t[s].value),t[s].selected!==d&&(t[s].selected=d),d&&o&&(t[s].defaultSelected=!0)}else{for(s=""+Nn(s),a=null,d=0;d<t.length;d++){if(t[d].value===s){t[d].selected=!0,o&&(t[d].defaultSelected=!0);return}a!==null||t[d].disabled||(a=t[d])}a!==null&&(a.selected=!0)}}function gg(t,a,s){if(a!=null&&(a=""+Nn(a),a!==t.value&&(t.value=a),s==null)){t.defaultValue!==a&&(t.defaultValue=a);return}t.defaultValue=s!=null?""+Nn(s):""}function vg(t,a,s,o){if(a==null){if(o!=null){if(s!=null)throw Error(i(92));if(ce(o)){if(1<o.length)throw Error(i(93));o=o[0]}s=o}s==null&&(s=""),a=s}s=Nn(a),t.defaultValue=s,o=t.textContent,o===s&&o!==""&&o!==null&&(t.value=o)}function Ki(t,a){if(a){var s=t.firstChild;if(s&&s===t.lastChild&&s.nodeType===3){s.nodeValue=a;return}}t.textContent=a}var SC=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function yg(t,a,s){var o=a.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?o?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="":o?t.setProperty(a,s):typeof s!="number"||s===0||SC.has(a)?a==="float"?t.cssFloat=s:t[a]=(""+s).trim():t[a]=s+"px"}function bg(t,a,s){if(a!=null&&typeof a!="object")throw Error(i(62));if(t=t.style,s!=null){for(var o in s)!s.hasOwnProperty(o)||a!=null&&a.hasOwnProperty(o)||(o.indexOf("--")===0?t.setProperty(o,""):o==="float"?t.cssFloat="":t[o]="");for(var d in a)o=a[d],a.hasOwnProperty(d)&&s[d]!==o&&yg(t,d,o)}else for(var m in a)a.hasOwnProperty(m)&&yg(t,m,a[m])}function Md(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var CC=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),EC=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Zl(t){return EC.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var Dd=null;function Od(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Xi=null,Zi=null;function xg(t){var a=Fi(t);if(a&&(t=a.stateNode)){var s=t[Pe]||null;e:switch(t=a.stateNode,a.type){case"input":if(_d(t,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),a=s.name,s.type==="radio"&&a!=null){for(s=t;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+kn(""+a)+'"][type="radio"]'),a=0;a<s.length;a++){var o=s[a];if(o!==t&&o.form===t.form){var d=o[Pe]||null;if(!d)throw Error(i(90));_d(o,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(a=0;a<s.length;a++)o=s[a],o.form===t.form&&pg(o)}break e;case"textarea":gg(t,s.value,s.defaultValue);break e;case"select":a=s.value,a!=null&&Qi(t,!!s.multiple,a,!1)}}}var Nd=!1;function wg(t,a,s){if(Nd)return t(a,s);Nd=!0;try{var o=t(a);return o}finally{if(Nd=!1,(Xi!==null||Zi!==null)&&(Lc(),Xi&&(a=Xi,t=Zi,Zi=Xi=null,xg(a),t)))for(a=0;a<t.length;a++)xg(t[a])}}function bo(t,a){var s=t.stateNode;if(s===null)return null;var o=s[Pe]||null;if(o===null)return null;s=o[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(t=t.type,o=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!o;break e;default:t=!1}if(t)return null;if(s&&typeof s!="function")throw Error(i(231,a,typeof s));return s}var za=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),kd=!1;if(za)try{var xo={};Object.defineProperty(xo,"passive",{get:function(){kd=!0}}),window.addEventListener("test",xo,xo),window.removeEventListener("test",xo,xo)}catch{kd=!1}var ur=null,jd=null,Wl=null;function Sg(){if(Wl)return Wl;var t,a=jd,s=a.length,o,d="value"in ur?ur.value:ur.textContent,m=d.length;for(t=0;t<s&&a[t]===d[t];t++);var E=s-t;for(o=1;o<=E&&a[s-o]===d[m-o];o++);return Wl=d.slice(t,1<o?1-o:void 0)}function Jl(t){var a=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&a===13&&(t=13)):t=a,t===10&&(t=13),32<=t||t===13?t:0}function ec(){return!0}function Cg(){return!1}function dn(t){function a(s,o,d,m,E){this._reactName=s,this._targetInst=d,this.type=o,this.nativeEvent=m,this.target=E,this.currentTarget=null;for(var T in t)t.hasOwnProperty(T)&&(s=t[T],this[T]=s?s(m):m[T]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?ec:Cg,this.isPropagationStopped=Cg,this}return v(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=ec)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=ec)},persist:function(){},isPersistent:ec}),a}var ri={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tc=dn(ri),wo=v({},ri,{view:0,detail:0}),RC=dn(wo),zd,Ld,So,nc=v({},wo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bd,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==So&&(So&&t.type==="mousemove"?(zd=t.screenX-So.screenX,Ld=t.screenY-So.screenY):Ld=zd=0,So=t),zd)},movementY:function(t){return"movementY"in t?t.movementY:Ld}}),Eg=dn(nc),TC=v({},nc,{dataTransfer:0}),_C=dn(TC),AC=v({},wo,{relatedTarget:0}),Pd=dn(AC),MC=v({},ri,{animationName:0,elapsedTime:0,pseudoElement:0}),DC=dn(MC),OC=v({},ri,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),NC=dn(OC),kC=v({},ri,{data:0}),Rg=dn(kC),jC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zC={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},LC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function PC(t){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(t):(t=LC[t])?!!a[t]:!1}function Bd(){return PC}var BC=v({},wo,{key:function(t){if(t.key){var a=jC[t.key]||t.key;if(a!=="Unidentified")return a}return t.type==="keypress"?(t=Jl(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?zC[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bd,charCode:function(t){return t.type==="keypress"?Jl(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Jl(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),UC=dn(BC),HC=v({},nc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Tg=dn(HC),VC=v({},wo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bd}),qC=dn(VC),$C=v({},ri,{propertyName:0,elapsedTime:0,pseudoElement:0}),FC=dn($C),IC=v({},nc,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),GC=dn(IC),YC=v({},ri,{newState:0,oldState:0}),QC=dn(YC),KC=[9,13,27,32],Ud=za&&"CompositionEvent"in window,Co=null;za&&"documentMode"in document&&(Co=document.documentMode);var XC=za&&"TextEvent"in window&&!Co,_g=za&&(!Ud||Co&&8<Co&&11>=Co),Ag=" ",Mg=!1;function Dg(t,a){switch(t){case"keyup":return KC.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Og(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Wi=!1;function ZC(t,a){switch(t){case"compositionend":return Og(a);case"keypress":return a.which!==32?null:(Mg=!0,Ag);case"textInput":return t=a.data,t===Ag&&Mg?null:t;default:return null}}function WC(t,a){if(Wi)return t==="compositionend"||!Ud&&Dg(t,a)?(t=Sg(),Wl=jd=ur=null,Wi=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return _g&&a.locale!=="ko"?null:a.data;default:return null}}var JC={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ng(t){var a=t&&t.nodeName&&t.nodeName.toLowerCase();return a==="input"?!!JC[t.type]:a==="textarea"}function kg(t,a,s,o){Xi?Zi?Zi.push(o):Zi=[o]:Xi=o,a=qc(a,"onChange"),0<a.length&&(s=new tc("onChange","change",null,s,o),t.push({event:s,listeners:a}))}var Eo=null,Ro=null;function eE(t){hb(t,0)}function ac(t){var a=yo(t);if(pg(a))return t}function jg(t,a){if(t==="change")return a}var zg=!1;if(za){var Hd;if(za){var Vd="oninput"in document;if(!Vd){var Lg=document.createElement("div");Lg.setAttribute("oninput","return;"),Vd=typeof Lg.oninput=="function"}Hd=Vd}else Hd=!1;zg=Hd&&(!document.documentMode||9<document.documentMode)}function Pg(){Eo&&(Eo.detachEvent("onpropertychange",Bg),Ro=Eo=null)}function Bg(t){if(t.propertyName==="value"&&ac(Ro)){var a=[];kg(a,Ro,t,Od(t)),wg(eE,a)}}function tE(t,a,s){t==="focusin"?(Pg(),Eo=a,Ro=s,Eo.attachEvent("onpropertychange",Bg)):t==="focusout"&&Pg()}function nE(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ac(Ro)}function aE(t,a){if(t==="click")return ac(a)}function rE(t,a){if(t==="input"||t==="change")return ac(a)}function iE(t,a){return t===a&&(t!==0||1/t===1/a)||t!==t&&a!==a}var Sn=typeof Object.is=="function"?Object.is:iE;function To(t,a){if(Sn(t,a))return!0;if(typeof t!="object"||t===null||typeof a!="object"||a===null)return!1;var s=Object.keys(t),o=Object.keys(a);if(s.length!==o.length)return!1;for(o=0;o<s.length;o++){var d=s[o];if(!me.call(a,d)||!Sn(t[d],a[d]))return!1}return!0}function Ug(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Hg(t,a){var s=Ug(t);t=0;for(var o;s;){if(s.nodeType===3){if(o=t+s.textContent.length,t<=a&&o>=a)return{node:s,offset:a-t};t=o}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Ug(s)}}function Vg(t,a){return t&&a?t===a?!0:t&&t.nodeType===3?!1:a&&a.nodeType===3?Vg(t,a.parentNode):"contains"in t?t.contains(a):t.compareDocumentPosition?!!(t.compareDocumentPosition(a)&16):!1:!1}function qg(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var a=Xl(t.document);a instanceof t.HTMLIFrameElement;){try{var s=typeof a.contentWindow.location.href=="string"}catch{s=!1}if(s)t=a.contentWindow;else break;a=Xl(t.document)}return a}function qd(t){var a=t&&t.nodeName&&t.nodeName.toLowerCase();return a&&(a==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||a==="textarea"||t.contentEditable==="true")}var sE=za&&"documentMode"in document&&11>=document.documentMode,Ji=null,$d=null,_o=null,Fd=!1;function $g(t,a,s){var o=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Fd||Ji==null||Ji!==Xl(o)||(o=Ji,"selectionStart"in o&&qd(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),_o&&To(_o,o)||(_o=o,o=qc($d,"onSelect"),0<o.length&&(a=new tc("onSelect","select",null,a,s),t.push({event:a,listeners:o}),a.target=Ji)))}function ii(t,a){var s={};return s[t.toLowerCase()]=a.toLowerCase(),s["Webkit"+t]="webkit"+a,s["Moz"+t]="moz"+a,s}var es={animationend:ii("Animation","AnimationEnd"),animationiteration:ii("Animation","AnimationIteration"),animationstart:ii("Animation","AnimationStart"),transitionrun:ii("Transition","TransitionRun"),transitionstart:ii("Transition","TransitionStart"),transitioncancel:ii("Transition","TransitionCancel"),transitionend:ii("Transition","TransitionEnd")},Id={},Fg={};za&&(Fg=document.createElement("div").style,"AnimationEvent"in window||(delete es.animationend.animation,delete es.animationiteration.animation,delete es.animationstart.animation),"TransitionEvent"in window||delete es.transitionend.transition);function si(t){if(Id[t])return Id[t];if(!es[t])return t;var a=es[t],s;for(s in a)if(a.hasOwnProperty(s)&&s in Fg)return Id[t]=a[s];return t}var Ig=si("animationend"),Gg=si("animationiteration"),Yg=si("animationstart"),oE=si("transitionrun"),lE=si("transitionstart"),cE=si("transitioncancel"),Qg=si("transitionend"),Kg=new Map,Gd="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Gd.push("scrollEnd");function Zn(t,a){Kg.set(t,a),ai(a,[t])}var Xg=new WeakMap;function jn(t,a){if(typeof t=="object"&&t!==null){var s=Xg.get(t);return s!==void 0?s:(a={value:t,source:a,stack:fg(a)},Xg.set(t,a),a)}return{value:t,source:a,stack:fg(a)}}var zn=[],ts=0,Yd=0;function rc(){for(var t=ts,a=Yd=ts=0;a<t;){var s=zn[a];zn[a++]=null;var o=zn[a];zn[a++]=null;var d=zn[a];zn[a++]=null;var m=zn[a];if(zn[a++]=null,o!==null&&d!==null){var E=o.pending;E===null?d.next=d:(d.next=E.next,E.next=d),o.pending=d}m!==0&&Zg(s,d,m)}}function ic(t,a,s,o){zn[ts++]=t,zn[ts++]=a,zn[ts++]=s,zn[ts++]=o,Yd|=o,t.lanes|=o,t=t.alternate,t!==null&&(t.lanes|=o)}function Qd(t,a,s,o){return ic(t,a,s,o),sc(t)}function ns(t,a){return ic(t,null,null,a),sc(t)}function Zg(t,a,s){t.lanes|=s;var o=t.alternate;o!==null&&(o.lanes|=s);for(var d=!1,m=t.return;m!==null;)m.childLanes|=s,o=m.alternate,o!==null&&(o.childLanes|=s),m.tag===22&&(t=m.stateNode,t===null||t._visibility&1||(d=!0)),t=m,m=m.return;return t.tag===3?(m=t.stateNode,d&&a!==null&&(d=31-yt(s),t=m.hiddenUpdates,o=t[d],o===null?t[d]=[a]:o.push(a),a.lane=s|536870912),m):null}function sc(t){if(50<Wo)throw Wo=0,th=null,Error(i(185));for(var a=t.return;a!==null;)t=a,a=t.return;return t.tag===3?t.stateNode:null}var as={};function uE(t,a,s,o){this.tag=t,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Cn(t,a,s,o){return new uE(t,a,s,o)}function Kd(t){return t=t.prototype,!(!t||!t.isReactComponent)}function La(t,a){var s=t.alternate;return s===null?(s=Cn(t.tag,a,t.key,t.mode),s.elementType=t.elementType,s.type=t.type,s.stateNode=t.stateNode,s.alternate=t,t.alternate=s):(s.pendingProps=a,s.type=t.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=t.flags&65011712,s.childLanes=t.childLanes,s.lanes=t.lanes,s.child=t.child,s.memoizedProps=t.memoizedProps,s.memoizedState=t.memoizedState,s.updateQueue=t.updateQueue,a=t.dependencies,s.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},s.sibling=t.sibling,s.index=t.index,s.ref=t.ref,s.refCleanup=t.refCleanup,s}function Wg(t,a){t.flags&=65011714;var s=t.alternate;return s===null?(t.childLanes=0,t.lanes=a,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=s.childLanes,t.lanes=s.lanes,t.child=s.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=s.memoizedProps,t.memoizedState=s.memoizedState,t.updateQueue=s.updateQueue,t.type=s.type,a=s.dependencies,t.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),t}function oc(t,a,s,o,d,m){var E=0;if(o=t,typeof t=="function")Kd(t)&&(E=1);else if(typeof t=="string")E=fR(t,s,te.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case B:return t=Cn(31,s,a,d),t.elementType=B,t.lanes=m,t;case C:return oi(s.children,d,m,a);case S:E=8,d|=24;break;case R:return t=Cn(12,s,a,d|2),t.elementType=R,t.lanes=m,t;case N:return t=Cn(13,s,a,d),t.elementType=N,t.lanes=m,t;case z:return t=Cn(19,s,a,d),t.elementType=z,t.lanes=m,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case _:case M:E=10;break e;case A:E=9;break e;case k:E=11;break e;case P:E=14;break e;case D:E=16,o=null;break e}E=29,s=Error(i(130,t===null?"null":typeof t,"")),o=null}return a=Cn(E,s,a,d),a.elementType=t,a.type=o,a.lanes=m,a}function oi(t,a,s,o){return t=Cn(7,t,o,a),t.lanes=s,t}function Xd(t,a,s){return t=Cn(6,t,null,a),t.lanes=s,t}function Zd(t,a,s){return a=Cn(4,t.children!==null?t.children:[],t.key,a),a.lanes=s,a.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},a}var rs=[],is=0,lc=null,cc=0,Ln=[],Pn=0,li=null,Pa=1,Ba="";function ci(t,a){rs[is++]=cc,rs[is++]=lc,lc=t,cc=a}function Jg(t,a,s){Ln[Pn++]=Pa,Ln[Pn++]=Ba,Ln[Pn++]=li,li=t;var o=Pa;t=Ba;var d=32-yt(o)-1;o&=~(1<<d),s+=1;var m=32-yt(a)+d;if(30<m){var E=d-d%5;m=(o&(1<<E)-1).toString(32),o>>=E,d-=E,Pa=1<<32-yt(a)+d|s<<d|o,Ba=m+t}else Pa=1<<m|s<<d|o,Ba=t}function Wd(t){t.return!==null&&(ci(t,1),Jg(t,1,0))}function Jd(t){for(;t===lc;)lc=rs[--is],rs[is]=null,cc=rs[--is],rs[is]=null;for(;t===li;)li=Ln[--Pn],Ln[Pn]=null,Ba=Ln[--Pn],Ln[Pn]=null,Pa=Ln[--Pn],Ln[Pn]=null}var nn=null,St=null,Qe=!1,ui=null,ha=!1,ef=Error(i(519));function di(t){var a=Error(i(418,""));throw Do(jn(a,t)),ef}function ev(t){var a=t.stateNode,s=t.type,o=t.memoizedProps;switch(a[Je]=t,a[Pe]=o,s){case"dialog":Ue("cancel",a),Ue("close",a);break;case"iframe":case"object":case"embed":Ue("load",a);break;case"video":case"audio":for(s=0;s<el.length;s++)Ue(el[s],a);break;case"source":Ue("error",a);break;case"img":case"image":case"link":Ue("error",a),Ue("load",a);break;case"details":Ue("toggle",a);break;case"input":Ue("invalid",a),mg(a,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0),Kl(a);break;case"select":Ue("invalid",a);break;case"textarea":Ue("invalid",a),vg(a,o.value,o.defaultValue,o.children),Kl(a)}s=o.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||a.textContent===""+s||o.suppressHydrationWarning===!0||vb(a.textContent,s)?(o.popover!=null&&(Ue("beforetoggle",a),Ue("toggle",a)),o.onScroll!=null&&Ue("scroll",a),o.onScrollEnd!=null&&Ue("scrollend",a),o.onClick!=null&&(a.onclick=$c),a=!0):a=!1,a||di(t)}function tv(t){for(nn=t.return;nn;)switch(nn.tag){case 5:case 13:ha=!1;return;case 27:case 3:ha=!0;return;default:nn=nn.return}}function Ao(t){if(t!==nn)return!1;if(!Qe)return tv(t),Qe=!0,!1;var a=t.tag,s;if((s=a!==3&&a!==27)&&((s=a===5)&&(s=t.type,s=!(s!=="form"&&s!=="button")||vh(t.type,t.memoizedProps)),s=!s),s&&St&&di(t),tv(t),a===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));e:{for(t=t.nextSibling,a=0;t;){if(t.nodeType===8)if(s=t.data,s==="/$"){if(a===0){St=Jn(t.nextSibling);break e}a--}else s!=="$"&&s!=="$!"&&s!=="$?"||a++;t=t.nextSibling}St=null}}else a===27?(a=St,Tr(t.type)?(t=wh,wh=null,St=t):St=a):St=nn?Jn(t.stateNode.nextSibling):null;return!0}function Mo(){St=nn=null,Qe=!1}function nv(){var t=ui;return t!==null&&(pn===null?pn=t:pn.push.apply(pn,t),ui=null),t}function Do(t){ui===null?ui=[t]:ui.push(t)}var tf=q(null),fi=null,Ua=null;function dr(t,a,s){X(tf,a._currentValue),a._currentValue=s}function Ha(t){t._currentValue=tf.current,W(tf)}function nf(t,a,s){for(;t!==null;){var o=t.alternate;if((t.childLanes&a)!==a?(t.childLanes|=a,o!==null&&(o.childLanes|=a)):o!==null&&(o.childLanes&a)!==a&&(o.childLanes|=a),t===s)break;t=t.return}}function af(t,a,s,o){var d=t.child;for(d!==null&&(d.return=t);d!==null;){var m=d.dependencies;if(m!==null){var E=d.child;m=m.firstContext;e:for(;m!==null;){var T=m;m=d;for(var j=0;j<a.length;j++)if(T.context===a[j]){m.lanes|=s,T=m.alternate,T!==null&&(T.lanes|=s),nf(m.return,s,t),o||(E=null);break e}m=T.next}}else if(d.tag===18){if(E=d.return,E===null)throw Error(i(341));E.lanes|=s,m=E.alternate,m!==null&&(m.lanes|=s),nf(E,s,t),E=null}else E=d.child;if(E!==null)E.return=d;else for(E=d;E!==null;){if(E===t){E=null;break}if(d=E.sibling,d!==null){d.return=E.return,E=d;break}E=E.return}d=E}}function Oo(t,a,s,o){t=null;for(var d=a,m=!1;d!==null;){if(!m){if((d.flags&524288)!==0)m=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var E=d.alternate;if(E===null)throw Error(i(387));if(E=E.memoizedProps,E!==null){var T=d.type;Sn(d.pendingProps.value,E.value)||(t!==null?t.push(T):t=[T])}}else if(d===re.current){if(E=d.alternate,E===null)throw Error(i(387));E.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(t!==null?t.push(sl):t=[sl])}d=d.return}t!==null&&af(a,t,s,o),a.flags|=262144}function uc(t){for(t=t.firstContext;t!==null;){if(!Sn(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function hi(t){fi=t,Ua=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Xt(t){return av(fi,t)}function dc(t,a){return fi===null&&hi(t),av(t,a)}function av(t,a){var s=a._currentValue;if(a={context:a,memoizedValue:s,next:null},Ua===null){if(t===null)throw Error(i(308));Ua=a,t.dependencies={lanes:0,firstContext:a},t.flags|=524288}else Ua=Ua.next=a;return s}var dE=typeof AbortController<"u"?AbortController:function(){var t=[],a=this.signal={aborted:!1,addEventListener:function(s,o){t.push(o)}};this.abort=function(){a.aborted=!0,t.forEach(function(s){return s()})}},fE=e.unstable_scheduleCallback,hE=e.unstable_NormalPriority,Dt={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function rf(){return{controller:new dE,data:new Map,refCount:0}}function No(t){t.refCount--,t.refCount===0&&fE(hE,function(){t.controller.abort()})}var ko=null,sf=0,ss=0,os=null;function pE(t,a){if(ko===null){var s=ko=[];sf=0,ss=lh(),os={status:"pending",value:void 0,then:function(o){s.push(o)}}}return sf++,a.then(rv,rv),a}function rv(){if(--sf===0&&ko!==null){os!==null&&(os.status="fulfilled");var t=ko;ko=null,ss=0,os=null;for(var a=0;a<t.length;a++)(0,t[a])()}}function mE(t,a){var s=[],o={status:"pending",value:null,reason:null,then:function(d){s.push(d)}};return t.then(function(){o.status="fulfilled",o.value=a;for(var d=0;d<s.length;d++)(0,s[d])(a)},function(d){for(o.status="rejected",o.reason=d,d=0;d<s.length;d++)(0,s[d])(void 0)}),o}var iv=L.S;L.S=function(t,a){typeof a=="object"&&a!==null&&typeof a.then=="function"&&pE(t,a),iv!==null&&iv(t,a)};var pi=q(null);function of(){var t=pi.current;return t!==null?t:ht.pooledCache}function fc(t,a){a===null?X(pi,pi.current):X(pi,a.pool)}function sv(){var t=of();return t===null?null:{parent:Dt._currentValue,pool:t}}var jo=Error(i(460)),ov=Error(i(474)),hc=Error(i(542)),lf={then:function(){}};function lv(t){return t=t.status,t==="fulfilled"||t==="rejected"}function pc(){}function cv(t,a,s){switch(s=t[s],s===void 0?t.push(a):s!==a&&(a.then(pc,pc),a=s),a.status){case"fulfilled":return a.value;case"rejected":throw t=a.reason,dv(t),t;default:if(typeof a.status=="string")a.then(pc,pc);else{if(t=ht,t!==null&&100<t.shellSuspendCounter)throw Error(i(482));t=a,t.status="pending",t.then(function(o){if(a.status==="pending"){var d=a;d.status="fulfilled",d.value=o}},function(o){if(a.status==="pending"){var d=a;d.status="rejected",d.reason=o}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw t=a.reason,dv(t),t}throw zo=a,jo}}var zo=null;function uv(){if(zo===null)throw Error(i(459));var t=zo;return zo=null,t}function dv(t){if(t===jo||t===hc)throw Error(i(483))}var fr=!1;function cf(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function uf(t,a){t=t.updateQueue,a.updateQueue===t&&(a.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function hr(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function pr(t,a,s){var o=t.updateQueue;if(o===null)return null;if(o=o.shared,(nt&2)!==0){var d=o.pending;return d===null?a.next=a:(a.next=d.next,d.next=a),o.pending=a,a=sc(t),Zg(t,null,s),a}return ic(t,o,a,s),sc(t)}function Lo(t,a,s){if(a=a.updateQueue,a!==null&&(a=a.shared,(s&4194048)!==0)){var o=a.lanes;o&=t.pendingLanes,s|=o,a.lanes=s,We(t,s)}}function df(t,a){var s=t.updateQueue,o=t.alternate;if(o!==null&&(o=o.updateQueue,s===o)){var d=null,m=null;if(s=s.firstBaseUpdate,s!==null){do{var E={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};m===null?d=m=E:m=m.next=E,s=s.next}while(s!==null);m===null?d=m=a:m=m.next=a}else d=m=a;s={baseState:o.baseState,firstBaseUpdate:d,lastBaseUpdate:m,shared:o.shared,callbacks:o.callbacks},t.updateQueue=s;return}t=s.lastBaseUpdate,t===null?s.firstBaseUpdate=a:t.next=a,s.lastBaseUpdate=a}var ff=!1;function Po(){if(ff){var t=os;if(t!==null)throw t}}function Bo(t,a,s,o){ff=!1;var d=t.updateQueue;fr=!1;var m=d.firstBaseUpdate,E=d.lastBaseUpdate,T=d.shared.pending;if(T!==null){d.shared.pending=null;var j=T,I=j.next;j.next=null,E===null?m=I:E.next=I,E=j;var J=t.alternate;J!==null&&(J=J.updateQueue,T=J.lastBaseUpdate,T!==E&&(T===null?J.firstBaseUpdate=I:T.next=I,J.lastBaseUpdate=j))}if(m!==null){var ie=d.baseState;E=0,J=I=j=null,T=m;do{var G=T.lane&-536870913,K=G!==T.lane;if(K?($e&G)===G:(o&G)===G){G!==0&&G===ss&&(ff=!0),J!==null&&(J=J.next={lane:0,tag:T.tag,payload:T.payload,callback:null,next:null});e:{var Te=t,Ee=T;G=a;var ct=s;switch(Ee.tag){case 1:if(Te=Ee.payload,typeof Te=="function"){ie=Te.call(ct,ie,G);break e}ie=Te;break e;case 3:Te.flags=Te.flags&-65537|128;case 0:if(Te=Ee.payload,G=typeof Te=="function"?Te.call(ct,ie,G):Te,G==null)break e;ie=v({},ie,G);break e;case 2:fr=!0}}G=T.callback,G!==null&&(t.flags|=64,K&&(t.flags|=8192),K=d.callbacks,K===null?d.callbacks=[G]:K.push(G))}else K={lane:G,tag:T.tag,payload:T.payload,callback:T.callback,next:null},J===null?(I=J=K,j=ie):J=J.next=K,E|=G;if(T=T.next,T===null){if(T=d.shared.pending,T===null)break;K=T,T=K.next,K.next=null,d.lastBaseUpdate=K,d.shared.pending=null}}while(!0);J===null&&(j=ie),d.baseState=j,d.firstBaseUpdate=I,d.lastBaseUpdate=J,m===null&&(d.shared.lanes=0),Sr|=E,t.lanes=E,t.memoizedState=ie}}function fv(t,a){if(typeof t!="function")throw Error(i(191,t));t.call(a)}function hv(t,a){var s=t.callbacks;if(s!==null)for(t.callbacks=null,t=0;t<s.length;t++)fv(s[t],a)}var ls=q(null),mc=q(0);function pv(t,a){t=Ya,X(mc,t),X(ls,a),Ya=t|a.baseLanes}function hf(){X(mc,Ya),X(ls,ls.current)}function pf(){Ya=mc.current,W(ls),W(mc)}var mr=0,Ne=null,ot=null,At=null,gc=!1,cs=!1,mi=!1,vc=0,Uo=0,us=null,gE=0;function Rt(){throw Error(i(321))}function mf(t,a){if(a===null)return!1;for(var s=0;s<a.length&&s<t.length;s++)if(!Sn(t[s],a[s]))return!1;return!0}function gf(t,a,s,o,d,m){return mr=m,Ne=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,L.H=t===null||t.memoizedState===null?Zv:Wv,mi=!1,m=s(o,d),mi=!1,cs&&(m=gv(a,s,o,d)),mv(t),m}function mv(t){L.H=Cc;var a=ot!==null&&ot.next!==null;if(mr=0,At=ot=Ne=null,gc=!1,Uo=0,us=null,a)throw Error(i(300));t===null||Ht||(t=t.dependencies,t!==null&&uc(t)&&(Ht=!0))}function gv(t,a,s,o){Ne=t;var d=0;do{if(cs&&(us=null),Uo=0,cs=!1,25<=d)throw Error(i(301));if(d+=1,At=ot=null,t.updateQueue!=null){var m=t.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}L.H=CE,m=a(s,o)}while(cs);return m}function vE(){var t=L.H,a=t.useState()[0];return a=typeof a.then=="function"?Ho(a):a,t=t.useState()[0],(ot!==null?ot.memoizedState:null)!==t&&(Ne.flags|=1024),a}function vf(){var t=vc!==0;return vc=0,t}function yf(t,a,s){a.updateQueue=t.updateQueue,a.flags&=-2053,t.lanes&=~s}function bf(t){if(gc){for(t=t.memoizedState;t!==null;){var a=t.queue;a!==null&&(a.pending=null),t=t.next}gc=!1}mr=0,At=ot=Ne=null,cs=!1,Uo=vc=0,us=null}function fn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return At===null?Ne.memoizedState=At=t:At=At.next=t,At}function Mt(){if(ot===null){var t=Ne.alternate;t=t!==null?t.memoizedState:null}else t=ot.next;var a=At===null?Ne.memoizedState:At.next;if(a!==null)At=a,ot=t;else{if(t===null)throw Ne.alternate===null?Error(i(467)):Error(i(310));ot=t,t={memoizedState:ot.memoizedState,baseState:ot.baseState,baseQueue:ot.baseQueue,queue:ot.queue,next:null},At===null?Ne.memoizedState=At=t:At=At.next=t}return At}function xf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ho(t){var a=Uo;return Uo+=1,us===null&&(us=[]),t=cv(us,t,a),a=Ne,(At===null?a.memoizedState:At.next)===null&&(a=a.alternate,L.H=a===null||a.memoizedState===null?Zv:Wv),t}function yc(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Ho(t);if(t.$$typeof===M)return Xt(t)}throw Error(i(438,String(t)))}function wf(t){var a=null,s=Ne.updateQueue;if(s!==null&&(a=s.memoCache),a==null){var o=Ne.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(a={data:o.data.map(function(d){return d.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),s===null&&(s=xf(),Ne.updateQueue=s),s.memoCache=a,s=a.data[a.index],s===void 0)for(s=a.data[a.index]=Array(t),o=0;o<t;o++)s[o]=Y;return a.index++,s}function Va(t,a){return typeof a=="function"?a(t):a}function bc(t){var a=Mt();return Sf(a,ot,t)}function Sf(t,a,s){var o=t.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=s;var d=t.baseQueue,m=o.pending;if(m!==null){if(d!==null){var E=d.next;d.next=m.next,m.next=E}a.baseQueue=d=m,o.pending=null}if(m=t.baseState,d===null)t.memoizedState=m;else{a=d.next;var T=E=null,j=null,I=a,J=!1;do{var ie=I.lane&-536870913;if(ie!==I.lane?($e&ie)===ie:(mr&ie)===ie){var G=I.revertLane;if(G===0)j!==null&&(j=j.next={lane:0,revertLane:0,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null}),ie===ss&&(J=!0);else if((mr&G)===G){I=I.next,G===ss&&(J=!0);continue}else ie={lane:0,revertLane:I.revertLane,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},j===null?(T=j=ie,E=m):j=j.next=ie,Ne.lanes|=G,Sr|=G;ie=I.action,mi&&s(m,ie),m=I.hasEagerState?I.eagerState:s(m,ie)}else G={lane:ie,revertLane:I.revertLane,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},j===null?(T=j=G,E=m):j=j.next=G,Ne.lanes|=ie,Sr|=ie;I=I.next}while(I!==null&&I!==a);if(j===null?E=m:j.next=T,!Sn(m,t.memoizedState)&&(Ht=!0,J&&(s=os,s!==null)))throw s;t.memoizedState=m,t.baseState=E,t.baseQueue=j,o.lastRenderedState=m}return d===null&&(o.lanes=0),[t.memoizedState,o.dispatch]}function Cf(t){var a=Mt(),s=a.queue;if(s===null)throw Error(i(311));s.lastRenderedReducer=t;var o=s.dispatch,d=s.pending,m=a.memoizedState;if(d!==null){s.pending=null;var E=d=d.next;do m=t(m,E.action),E=E.next;while(E!==d);Sn(m,a.memoizedState)||(Ht=!0),a.memoizedState=m,a.baseQueue===null&&(a.baseState=m),s.lastRenderedState=m}return[m,o]}function vv(t,a,s){var o=Ne,d=Mt(),m=Qe;if(m){if(s===void 0)throw Error(i(407));s=s()}else s=a();var E=!Sn((ot||d).memoizedState,s);E&&(d.memoizedState=s,Ht=!0),d=d.queue;var T=xv.bind(null,o,d,t);if(Vo(2048,8,T,[t]),d.getSnapshot!==a||E||At!==null&&At.memoizedState.tag&1){if(o.flags|=2048,ds(9,xc(),bv.bind(null,o,d,s,a),null),ht===null)throw Error(i(349));m||(mr&124)!==0||yv(o,a,s)}return s}function yv(t,a,s){t.flags|=16384,t={getSnapshot:a,value:s},a=Ne.updateQueue,a===null?(a=xf(),Ne.updateQueue=a,a.stores=[t]):(s=a.stores,s===null?a.stores=[t]:s.push(t))}function bv(t,a,s,o){a.value=s,a.getSnapshot=o,wv(a)&&Sv(t)}function xv(t,a,s){return s(function(){wv(a)&&Sv(t)})}function wv(t){var a=t.getSnapshot;t=t.value;try{var s=a();return!Sn(t,s)}catch{return!0}}function Sv(t){var a=ns(t,2);a!==null&&An(a,t,2)}function Ef(t){var a=fn();if(typeof t=="function"){var s=t;if(t=s(),mi){Lt(!0);try{s()}finally{Lt(!1)}}}return a.memoizedState=a.baseState=t,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Va,lastRenderedState:t},a}function Cv(t,a,s,o){return t.baseState=s,Sf(t,ot,typeof o=="function"?o:Va)}function yE(t,a,s,o,d){if(Sc(t))throw Error(i(485));if(t=a.action,t!==null){var m={payload:d,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(E){m.listeners.push(E)}};L.T!==null?s(!0):m.isTransition=!1,o(m),s=a.pending,s===null?(m.next=a.pending=m,Ev(a,m)):(m.next=s.next,a.pending=s.next=m)}}function Ev(t,a){var s=a.action,o=a.payload,d=t.state;if(a.isTransition){var m=L.T,E={};L.T=E;try{var T=s(d,o),j=L.S;j!==null&&j(E,T),Rv(t,a,T)}catch(I){Rf(t,a,I)}finally{L.T=m}}else try{m=s(d,o),Rv(t,a,m)}catch(I){Rf(t,a,I)}}function Rv(t,a,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(o){Tv(t,a,o)},function(o){return Rf(t,a,o)}):Tv(t,a,s)}function Tv(t,a,s){a.status="fulfilled",a.value=s,_v(a),t.state=s,a=t.pending,a!==null&&(s=a.next,s===a?t.pending=null:(s=s.next,a.next=s,Ev(t,s)))}function Rf(t,a,s){var o=t.pending;if(t.pending=null,o!==null){o=o.next;do a.status="rejected",a.reason=s,_v(a),a=a.next;while(a!==o)}t.action=null}function _v(t){t=t.listeners;for(var a=0;a<t.length;a++)(0,t[a])()}function Av(t,a){return a}function Mv(t,a){if(Qe){var s=ht.formState;if(s!==null){e:{var o=Ne;if(Qe){if(St){t:{for(var d=St,m=ha;d.nodeType!==8;){if(!m){d=null;break t}if(d=Jn(d.nextSibling),d===null){d=null;break t}}m=d.data,d=m==="F!"||m==="F"?d:null}if(d){St=Jn(d.nextSibling),o=d.data==="F!";break e}}di(o)}o=!1}o&&(a=s[0])}}return s=fn(),s.memoizedState=s.baseState=a,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Av,lastRenderedState:a},s.queue=o,s=Qv.bind(null,Ne,o),o.dispatch=s,o=Ef(!1),m=Df.bind(null,Ne,!1,o.queue),o=fn(),d={state:a,dispatch:null,action:t,pending:null},o.queue=d,s=yE.bind(null,Ne,d,m,s),d.dispatch=s,o.memoizedState=t,[a,s,!1]}function Dv(t){var a=Mt();return Ov(a,ot,t)}function Ov(t,a,s){if(a=Sf(t,a,Av)[0],t=bc(Va)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var o=Ho(a)}catch(E){throw E===jo?hc:E}else o=a;a=Mt();var d=a.queue,m=d.dispatch;return s!==a.memoizedState&&(Ne.flags|=2048,ds(9,xc(),bE.bind(null,d,s),null)),[o,m,t]}function bE(t,a){t.action=a}function Nv(t){var a=Mt(),s=ot;if(s!==null)return Ov(a,s,t);Mt(),a=a.memoizedState,s=Mt();var o=s.queue.dispatch;return s.memoizedState=t,[a,o,!1]}function ds(t,a,s,o){return t={tag:t,create:s,deps:o,inst:a,next:null},a=Ne.updateQueue,a===null&&(a=xf(),Ne.updateQueue=a),s=a.lastEffect,s===null?a.lastEffect=t.next=t:(o=s.next,s.next=t,t.next=o,a.lastEffect=t),t}function xc(){return{destroy:void 0,resource:void 0}}function kv(){return Mt().memoizedState}function wc(t,a,s,o){var d=fn();o=o===void 0?null:o,Ne.flags|=t,d.memoizedState=ds(1|a,xc(),s,o)}function Vo(t,a,s,o){var d=Mt();o=o===void 0?null:o;var m=d.memoizedState.inst;ot!==null&&o!==null&&mf(o,ot.memoizedState.deps)?d.memoizedState=ds(a,m,s,o):(Ne.flags|=t,d.memoizedState=ds(1|a,m,s,o))}function jv(t,a){wc(8390656,8,t,a)}function zv(t,a){Vo(2048,8,t,a)}function Lv(t,a){return Vo(4,2,t,a)}function Pv(t,a){return Vo(4,4,t,a)}function Bv(t,a){if(typeof a=="function"){t=t();var s=a(t);return function(){typeof s=="function"?s():a(null)}}if(a!=null)return t=t(),a.current=t,function(){a.current=null}}function Uv(t,a,s){s=s!=null?s.concat([t]):null,Vo(4,4,Bv.bind(null,a,t),s)}function Tf(){}function Hv(t,a){var s=Mt();a=a===void 0?null:a;var o=s.memoizedState;return a!==null&&mf(a,o[1])?o[0]:(s.memoizedState=[t,a],t)}function Vv(t,a){var s=Mt();a=a===void 0?null:a;var o=s.memoizedState;if(a!==null&&mf(a,o[1]))return o[0];if(o=t(),mi){Lt(!0);try{t()}finally{Lt(!1)}}return s.memoizedState=[o,a],o}function _f(t,a,s){return s===void 0||(mr&1073741824)!==0?t.memoizedState=a:(t.memoizedState=s,t=Fy(),Ne.lanes|=t,Sr|=t,s)}function qv(t,a,s,o){return Sn(s,a)?s:ls.current!==null?(t=_f(t,s,o),Sn(t,a)||(Ht=!0),t):(mr&42)===0?(Ht=!0,t.memoizedState=s):(t=Fy(),Ne.lanes|=t,Sr|=t,a)}function $v(t,a,s,o,d){var m=Q.p;Q.p=m!==0&&8>m?m:8;var E=L.T,T={};L.T=T,Df(t,!1,a,s);try{var j=d(),I=L.S;if(I!==null&&I(T,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var J=mE(j,o);qo(t,a,J,_n(t))}else qo(t,a,o,_n(t))}catch(ie){qo(t,a,{then:function(){},status:"rejected",reason:ie},_n())}finally{Q.p=m,L.T=E}}function xE(){}function Af(t,a,s,o){if(t.tag!==5)throw Error(i(476));var d=Fv(t).queue;$v(t,d,a,$,s===null?xE:function(){return Iv(t),s(o)})}function Fv(t){var a=t.memoizedState;if(a!==null)return a;a={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Va,lastRenderedState:$},next:null};var s={};return a.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Va,lastRenderedState:s},next:null},t.memoizedState=a,t=t.alternate,t!==null&&(t.memoizedState=a),a}function Iv(t){var a=Fv(t).next.queue;qo(t,a,{},_n())}function Mf(){return Xt(sl)}function Gv(){return Mt().memoizedState}function Yv(){return Mt().memoizedState}function wE(t){for(var a=t.return;a!==null;){switch(a.tag){case 24:case 3:var s=_n();t=hr(s);var o=pr(a,t,s);o!==null&&(An(o,a,s),Lo(o,a,s)),a={cache:rf()},t.payload=a;return}a=a.return}}function SE(t,a,s){var o=_n();s={lane:o,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null},Sc(t)?Kv(a,s):(s=Qd(t,a,s,o),s!==null&&(An(s,t,o),Xv(s,a,o)))}function Qv(t,a,s){var o=_n();qo(t,a,s,o)}function qo(t,a,s,o){var d={lane:o,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null};if(Sc(t))Kv(a,d);else{var m=t.alternate;if(t.lanes===0&&(m===null||m.lanes===0)&&(m=a.lastRenderedReducer,m!==null))try{var E=a.lastRenderedState,T=m(E,s);if(d.hasEagerState=!0,d.eagerState=T,Sn(T,E))return ic(t,a,d,0),ht===null&&rc(),!1}catch{}finally{}if(s=Qd(t,a,d,o),s!==null)return An(s,t,o),Xv(s,a,o),!0}return!1}function Df(t,a,s,o){if(o={lane:2,revertLane:lh(),action:o,hasEagerState:!1,eagerState:null,next:null},Sc(t)){if(a)throw Error(i(479))}else a=Qd(t,s,o,2),a!==null&&An(a,t,2)}function Sc(t){var a=t.alternate;return t===Ne||a!==null&&a===Ne}function Kv(t,a){cs=gc=!0;var s=t.pending;s===null?a.next=a:(a.next=s.next,s.next=a),t.pending=a}function Xv(t,a,s){if((s&4194048)!==0){var o=a.lanes;o&=t.pendingLanes,s|=o,a.lanes=s,We(t,s)}}var Cc={readContext:Xt,use:yc,useCallback:Rt,useContext:Rt,useEffect:Rt,useImperativeHandle:Rt,useLayoutEffect:Rt,useInsertionEffect:Rt,useMemo:Rt,useReducer:Rt,useRef:Rt,useState:Rt,useDebugValue:Rt,useDeferredValue:Rt,useTransition:Rt,useSyncExternalStore:Rt,useId:Rt,useHostTransitionStatus:Rt,useFormState:Rt,useActionState:Rt,useOptimistic:Rt,useMemoCache:Rt,useCacheRefresh:Rt},Zv={readContext:Xt,use:yc,useCallback:function(t,a){return fn().memoizedState=[t,a===void 0?null:a],t},useContext:Xt,useEffect:jv,useImperativeHandle:function(t,a,s){s=s!=null?s.concat([t]):null,wc(4194308,4,Bv.bind(null,a,t),s)},useLayoutEffect:function(t,a){return wc(4194308,4,t,a)},useInsertionEffect:function(t,a){wc(4,2,t,a)},useMemo:function(t,a){var s=fn();a=a===void 0?null:a;var o=t();if(mi){Lt(!0);try{t()}finally{Lt(!1)}}return s.memoizedState=[o,a],o},useReducer:function(t,a,s){var o=fn();if(s!==void 0){var d=s(a);if(mi){Lt(!0);try{s(a)}finally{Lt(!1)}}}else d=a;return o.memoizedState=o.baseState=d,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:d},o.queue=t,t=t.dispatch=SE.bind(null,Ne,t),[o.memoizedState,t]},useRef:function(t){var a=fn();return t={current:t},a.memoizedState=t},useState:function(t){t=Ef(t);var a=t.queue,s=Qv.bind(null,Ne,a);return a.dispatch=s,[t.memoizedState,s]},useDebugValue:Tf,useDeferredValue:function(t,a){var s=fn();return _f(s,t,a)},useTransition:function(){var t=Ef(!1);return t=$v.bind(null,Ne,t.queue,!0,!1),fn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,a,s){var o=Ne,d=fn();if(Qe){if(s===void 0)throw Error(i(407));s=s()}else{if(s=a(),ht===null)throw Error(i(349));($e&124)!==0||yv(o,a,s)}d.memoizedState=s;var m={value:s,getSnapshot:a};return d.queue=m,jv(xv.bind(null,o,m,t),[t]),o.flags|=2048,ds(9,xc(),bv.bind(null,o,m,s,a),null),s},useId:function(){var t=fn(),a=ht.identifierPrefix;if(Qe){var s=Ba,o=Pa;s=(o&~(1<<32-yt(o)-1)).toString(32)+s,a="«"+a+"R"+s,s=vc++,0<s&&(a+="H"+s.toString(32)),a+="»"}else s=gE++,a="«"+a+"r"+s.toString(32)+"»";return t.memoizedState=a},useHostTransitionStatus:Mf,useFormState:Mv,useActionState:Mv,useOptimistic:function(t){var a=fn();a.memoizedState=a.baseState=t;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=s,a=Df.bind(null,Ne,!0,s),s.dispatch=a,[t,a]},useMemoCache:wf,useCacheRefresh:function(){return fn().memoizedState=wE.bind(null,Ne)}},Wv={readContext:Xt,use:yc,useCallback:Hv,useContext:Xt,useEffect:zv,useImperativeHandle:Uv,useInsertionEffect:Lv,useLayoutEffect:Pv,useMemo:Vv,useReducer:bc,useRef:kv,useState:function(){return bc(Va)},useDebugValue:Tf,useDeferredValue:function(t,a){var s=Mt();return qv(s,ot.memoizedState,t,a)},useTransition:function(){var t=bc(Va)[0],a=Mt().memoizedState;return[typeof t=="boolean"?t:Ho(t),a]},useSyncExternalStore:vv,useId:Gv,useHostTransitionStatus:Mf,useFormState:Dv,useActionState:Dv,useOptimistic:function(t,a){var s=Mt();return Cv(s,ot,t,a)},useMemoCache:wf,useCacheRefresh:Yv},CE={readContext:Xt,use:yc,useCallback:Hv,useContext:Xt,useEffect:zv,useImperativeHandle:Uv,useInsertionEffect:Lv,useLayoutEffect:Pv,useMemo:Vv,useReducer:Cf,useRef:kv,useState:function(){return Cf(Va)},useDebugValue:Tf,useDeferredValue:function(t,a){var s=Mt();return ot===null?_f(s,t,a):qv(s,ot.memoizedState,t,a)},useTransition:function(){var t=Cf(Va)[0],a=Mt().memoizedState;return[typeof t=="boolean"?t:Ho(t),a]},useSyncExternalStore:vv,useId:Gv,useHostTransitionStatus:Mf,useFormState:Nv,useActionState:Nv,useOptimistic:function(t,a){var s=Mt();return ot!==null?Cv(s,ot,t,a):(s.baseState=t,[t,s.queue.dispatch])},useMemoCache:wf,useCacheRefresh:Yv},fs=null,$o=0;function Ec(t){var a=$o;return $o+=1,fs===null&&(fs=[]),cv(fs,t,a)}function Fo(t,a){a=a.props.ref,t.ref=a!==void 0?a:null}function Rc(t,a){throw a.$$typeof===g?Error(i(525)):(t=Object.prototype.toString.call(a),Error(i(31,t==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":t)))}function Jv(t){var a=t._init;return a(t._payload)}function ey(t){function a(V,H){if(t){var F=V.deletions;F===null?(V.deletions=[H],V.flags|=16):F.push(H)}}function s(V,H){if(!t)return null;for(;H!==null;)a(V,H),H=H.sibling;return null}function o(V){for(var H=new Map;V!==null;)V.key!==null?H.set(V.key,V):H.set(V.index,V),V=V.sibling;return H}function d(V,H){return V=La(V,H),V.index=0,V.sibling=null,V}function m(V,H,F){return V.index=F,t?(F=V.alternate,F!==null?(F=F.index,F<H?(V.flags|=67108866,H):F):(V.flags|=67108866,H)):(V.flags|=1048576,H)}function E(V){return t&&V.alternate===null&&(V.flags|=67108866),V}function T(V,H,F,ne){return H===null||H.tag!==6?(H=Xd(F,V.mode,ne),H.return=V,H):(H=d(H,F),H.return=V,H)}function j(V,H,F,ne){var ve=F.type;return ve===C?J(V,H,F.props.children,ne,F.key):H!==null&&(H.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===D&&Jv(ve)===H.type)?(H=d(H,F.props),Fo(H,F),H.return=V,H):(H=oc(F.type,F.key,F.props,null,V.mode,ne),Fo(H,F),H.return=V,H)}function I(V,H,F,ne){return H===null||H.tag!==4||H.stateNode.containerInfo!==F.containerInfo||H.stateNode.implementation!==F.implementation?(H=Zd(F,V.mode,ne),H.return=V,H):(H=d(H,F.children||[]),H.return=V,H)}function J(V,H,F,ne,ve){return H===null||H.tag!==7?(H=oi(F,V.mode,ne,ve),H.return=V,H):(H=d(H,F),H.return=V,H)}function ie(V,H,F){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return H=Xd(""+H,V.mode,F),H.return=V,H;if(typeof H=="object"&&H!==null){switch(H.$$typeof){case b:return F=oc(H.type,H.key,H.props,null,V.mode,F),Fo(F,H),F.return=V,F;case x:return H=Zd(H,V.mode,F),H.return=V,H;case D:var ne=H._init;return H=ne(H._payload),ie(V,H,F)}if(ce(H)||ee(H))return H=oi(H,V.mode,F,null),H.return=V,H;if(typeof H.then=="function")return ie(V,Ec(H),F);if(H.$$typeof===M)return ie(V,dc(V,H),F);Rc(V,H)}return null}function G(V,H,F,ne){var ve=H!==null?H.key:null;if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return ve!==null?null:T(V,H,""+F,ne);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case b:return F.key===ve?j(V,H,F,ne):null;case x:return F.key===ve?I(V,H,F,ne):null;case D:return ve=F._init,F=ve(F._payload),G(V,H,F,ne)}if(ce(F)||ee(F))return ve!==null?null:J(V,H,F,ne,null);if(typeof F.then=="function")return G(V,H,Ec(F),ne);if(F.$$typeof===M)return G(V,H,dc(V,F),ne);Rc(V,F)}return null}function K(V,H,F,ne,ve){if(typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint")return V=V.get(F)||null,T(H,V,""+ne,ve);if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case b:return V=V.get(ne.key===null?F:ne.key)||null,j(H,V,ne,ve);case x:return V=V.get(ne.key===null?F:ne.key)||null,I(H,V,ne,ve);case D:var je=ne._init;return ne=je(ne._payload),K(V,H,F,ne,ve)}if(ce(ne)||ee(ne))return V=V.get(F)||null,J(H,V,ne,ve,null);if(typeof ne.then=="function")return K(V,H,F,Ec(ne),ve);if(ne.$$typeof===M)return K(V,H,F,dc(H,ne),ve);Rc(H,ne)}return null}function Te(V,H,F,ne){for(var ve=null,je=null,Se=H,Re=H=0,qt=null;Se!==null&&Re<F.length;Re++){Se.index>Re?(qt=Se,Se=null):qt=Se.sibling;var Ge=G(V,Se,F[Re],ne);if(Ge===null){Se===null&&(Se=qt);break}t&&Se&&Ge.alternate===null&&a(V,Se),H=m(Ge,H,Re),je===null?ve=Ge:je.sibling=Ge,je=Ge,Se=qt}if(Re===F.length)return s(V,Se),Qe&&ci(V,Re),ve;if(Se===null){for(;Re<F.length;Re++)Se=ie(V,F[Re],ne),Se!==null&&(H=m(Se,H,Re),je===null?ve=Se:je.sibling=Se,je=Se);return Qe&&ci(V,Re),ve}for(Se=o(Se);Re<F.length;Re++)qt=K(Se,V,Re,F[Re],ne),qt!==null&&(t&&qt.alternate!==null&&Se.delete(qt.key===null?Re:qt.key),H=m(qt,H,Re),je===null?ve=qt:je.sibling=qt,je=qt);return t&&Se.forEach(function(Or){return a(V,Or)}),Qe&&ci(V,Re),ve}function Ee(V,H,F,ne){if(F==null)throw Error(i(151));for(var ve=null,je=null,Se=H,Re=H=0,qt=null,Ge=F.next();Se!==null&&!Ge.done;Re++,Ge=F.next()){Se.index>Re?(qt=Se,Se=null):qt=Se.sibling;var Or=G(V,Se,Ge.value,ne);if(Or===null){Se===null&&(Se=qt);break}t&&Se&&Or.alternate===null&&a(V,Se),H=m(Or,H,Re),je===null?ve=Or:je.sibling=Or,je=Or,Se=qt}if(Ge.done)return s(V,Se),Qe&&ci(V,Re),ve;if(Se===null){for(;!Ge.done;Re++,Ge=F.next())Ge=ie(V,Ge.value,ne),Ge!==null&&(H=m(Ge,H,Re),je===null?ve=Ge:je.sibling=Ge,je=Ge);return Qe&&ci(V,Re),ve}for(Se=o(Se);!Ge.done;Re++,Ge=F.next())Ge=K(Se,V,Re,Ge.value,ne),Ge!==null&&(t&&Ge.alternate!==null&&Se.delete(Ge.key===null?Re:Ge.key),H=m(Ge,H,Re),je===null?ve=Ge:je.sibling=Ge,je=Ge);return t&&Se.forEach(function(ER){return a(V,ER)}),Qe&&ci(V,Re),ve}function ct(V,H,F,ne){if(typeof F=="object"&&F!==null&&F.type===C&&F.key===null&&(F=F.props.children),typeof F=="object"&&F!==null){switch(F.$$typeof){case b:e:{for(var ve=F.key;H!==null;){if(H.key===ve){if(ve=F.type,ve===C){if(H.tag===7){s(V,H.sibling),ne=d(H,F.props.children),ne.return=V,V=ne;break e}}else if(H.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===D&&Jv(ve)===H.type){s(V,H.sibling),ne=d(H,F.props),Fo(ne,F),ne.return=V,V=ne;break e}s(V,H);break}else a(V,H);H=H.sibling}F.type===C?(ne=oi(F.props.children,V.mode,ne,F.key),ne.return=V,V=ne):(ne=oc(F.type,F.key,F.props,null,V.mode,ne),Fo(ne,F),ne.return=V,V=ne)}return E(V);case x:e:{for(ve=F.key;H!==null;){if(H.key===ve)if(H.tag===4&&H.stateNode.containerInfo===F.containerInfo&&H.stateNode.implementation===F.implementation){s(V,H.sibling),ne=d(H,F.children||[]),ne.return=V,V=ne;break e}else{s(V,H);break}else a(V,H);H=H.sibling}ne=Zd(F,V.mode,ne),ne.return=V,V=ne}return E(V);case D:return ve=F._init,F=ve(F._payload),ct(V,H,F,ne)}if(ce(F))return Te(V,H,F,ne);if(ee(F)){if(ve=ee(F),typeof ve!="function")throw Error(i(150));return F=ve.call(F),Ee(V,H,F,ne)}if(typeof F.then=="function")return ct(V,H,Ec(F),ne);if(F.$$typeof===M)return ct(V,H,dc(V,F),ne);Rc(V,F)}return typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint"?(F=""+F,H!==null&&H.tag===6?(s(V,H.sibling),ne=d(H,F),ne.return=V,V=ne):(s(V,H),ne=Xd(F,V.mode,ne),ne.return=V,V=ne),E(V)):s(V,H)}return function(V,H,F,ne){try{$o=0;var ve=ct(V,H,F,ne);return fs=null,ve}catch(Se){if(Se===jo||Se===hc)throw Se;var je=Cn(29,Se,null,V.mode);return je.lanes=ne,je.return=V,je}finally{}}}var hs=ey(!0),ty=ey(!1),Bn=q(null),pa=null;function gr(t){var a=t.alternate;X(Ot,Ot.current&1),X(Bn,t),pa===null&&(a===null||ls.current!==null||a.memoizedState!==null)&&(pa=t)}function ny(t){if(t.tag===22){if(X(Ot,Ot.current),X(Bn,t),pa===null){var a=t.alternate;a!==null&&a.memoizedState!==null&&(pa=t)}}else vr()}function vr(){X(Ot,Ot.current),X(Bn,Bn.current)}function qa(t){W(Bn),pa===t&&(pa=null),W(Ot)}var Ot=q(0);function Tc(t){for(var a=t;a!==null;){if(a.tag===13){var s=a.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||xh(s)))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}function Of(t,a,s,o){a=t.memoizedState,s=s(o,a),s=s==null?a:v({},a,s),t.memoizedState=s,t.lanes===0&&(t.updateQueue.baseState=s)}var Nf={enqueueSetState:function(t,a,s){t=t._reactInternals;var o=_n(),d=hr(o);d.payload=a,s!=null&&(d.callback=s),a=pr(t,d,o),a!==null&&(An(a,t,o),Lo(a,t,o))},enqueueReplaceState:function(t,a,s){t=t._reactInternals;var o=_n(),d=hr(o);d.tag=1,d.payload=a,s!=null&&(d.callback=s),a=pr(t,d,o),a!==null&&(An(a,t,o),Lo(a,t,o))},enqueueForceUpdate:function(t,a){t=t._reactInternals;var s=_n(),o=hr(s);o.tag=2,a!=null&&(o.callback=a),a=pr(t,o,s),a!==null&&(An(a,t,s),Lo(a,t,s))}};function ay(t,a,s,o,d,m,E){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(o,m,E):a.prototype&&a.prototype.isPureReactComponent?!To(s,o)||!To(d,m):!0}function ry(t,a,s,o){t=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(s,o),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(s,o),a.state!==t&&Nf.enqueueReplaceState(a,a.state,null)}function gi(t,a){var s=a;if("ref"in a){s={};for(var o in a)o!=="ref"&&(s[o]=a[o])}if(t=t.defaultProps){s===a&&(s=v({},s));for(var d in t)s[d]===void 0&&(s[d]=t[d])}return s}var _c=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function iy(t){_c(t)}function sy(t){console.error(t)}function oy(t){_c(t)}function Ac(t,a){try{var s=t.onUncaughtError;s(a.value,{componentStack:a.stack})}catch(o){setTimeout(function(){throw o})}}function ly(t,a,s){try{var o=t.onCaughtError;o(s.value,{componentStack:s.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function kf(t,a,s){return s=hr(s),s.tag=3,s.payload={element:null},s.callback=function(){Ac(t,a)},s}function cy(t){return t=hr(t),t.tag=3,t}function uy(t,a,s,o){var d=s.type.getDerivedStateFromError;if(typeof d=="function"){var m=o.value;t.payload=function(){return d(m)},t.callback=function(){ly(a,s,o)}}var E=s.stateNode;E!==null&&typeof E.componentDidCatch=="function"&&(t.callback=function(){ly(a,s,o),typeof d!="function"&&(Cr===null?Cr=new Set([this]):Cr.add(this));var T=o.stack;this.componentDidCatch(o.value,{componentStack:T!==null?T:""})})}function EE(t,a,s,o,d){if(s.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(a=s.alternate,a!==null&&Oo(a,s,d,!0),s=Bn.current,s!==null){switch(s.tag){case 13:return pa===null?ah():s.alternate===null&&Ct===0&&(Ct=3),s.flags&=-257,s.flags|=65536,s.lanes=d,o===lf?s.flags|=16384:(a=s.updateQueue,a===null?s.updateQueue=new Set([o]):a.add(o),ih(t,o,d)),!1;case 22:return s.flags|=65536,o===lf?s.flags|=16384:(a=s.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([o])},s.updateQueue=a):(s=a.retryQueue,s===null?a.retryQueue=new Set([o]):s.add(o)),ih(t,o,d)),!1}throw Error(i(435,s.tag))}return ih(t,o,d),ah(),!1}if(Qe)return a=Bn.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=d,o!==ef&&(t=Error(i(422),{cause:o}),Do(jn(t,s)))):(o!==ef&&(a=Error(i(423),{cause:o}),Do(jn(a,s))),t=t.current.alternate,t.flags|=65536,d&=-d,t.lanes|=d,o=jn(o,s),d=kf(t.stateNode,o,d),df(t,d),Ct!==4&&(Ct=2)),!1;var m=Error(i(520),{cause:o});if(m=jn(m,s),Zo===null?Zo=[m]:Zo.push(m),Ct!==4&&(Ct=2),a===null)return!0;o=jn(o,s),s=a;do{switch(s.tag){case 3:return s.flags|=65536,t=d&-d,s.lanes|=t,t=kf(s.stateNode,o,t),df(s,t),!1;case 1:if(a=s.type,m=s.stateNode,(s.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Cr===null||!Cr.has(m))))return s.flags|=65536,d&=-d,s.lanes|=d,d=cy(d),uy(d,t,s,o),df(s,d),!1}s=s.return}while(s!==null);return!1}var dy=Error(i(461)),Ht=!1;function Ft(t,a,s,o){a.child=t===null?ty(a,null,s,o):hs(a,t.child,s,o)}function fy(t,a,s,o,d){s=s.render;var m=a.ref;if("ref"in o){var E={};for(var T in o)T!=="ref"&&(E[T]=o[T])}else E=o;return hi(a),o=gf(t,a,s,E,m,d),T=vf(),t!==null&&!Ht?(yf(t,a,d),$a(t,a,d)):(Qe&&T&&Wd(a),a.flags|=1,Ft(t,a,o,d),a.child)}function hy(t,a,s,o,d){if(t===null){var m=s.type;return typeof m=="function"&&!Kd(m)&&m.defaultProps===void 0&&s.compare===null?(a.tag=15,a.type=m,py(t,a,m,o,d)):(t=oc(s.type,null,o,a,a.mode,d),t.ref=a.ref,t.return=a,a.child=t)}if(m=t.child,!Vf(t,d)){var E=m.memoizedProps;if(s=s.compare,s=s!==null?s:To,s(E,o)&&t.ref===a.ref)return $a(t,a,d)}return a.flags|=1,t=La(m,o),t.ref=a.ref,t.return=a,a.child=t}function py(t,a,s,o,d){if(t!==null){var m=t.memoizedProps;if(To(m,o)&&t.ref===a.ref)if(Ht=!1,a.pendingProps=o=m,Vf(t,d))(t.flags&131072)!==0&&(Ht=!0);else return a.lanes=t.lanes,$a(t,a,d)}return jf(t,a,s,o,d)}function my(t,a,s){var o=a.pendingProps,d=o.children,m=t!==null?t.memoizedState:null;if(o.mode==="hidden"){if((a.flags&128)!==0){if(o=m!==null?m.baseLanes|s:s,t!==null){for(d=a.child=t.child,m=0;d!==null;)m=m|d.lanes|d.childLanes,d=d.sibling;a.childLanes=m&~o}else a.childLanes=0,a.child=null;return gy(t,a,o,s)}if((s&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},t!==null&&fc(a,m!==null?m.cachePool:null),m!==null?pv(a,m):hf(),ny(a);else return a.lanes=a.childLanes=536870912,gy(t,a,m!==null?m.baseLanes|s:s,s)}else m!==null?(fc(a,m.cachePool),pv(a,m),vr(),a.memoizedState=null):(t!==null&&fc(a,null),hf(),vr());return Ft(t,a,d,s),a.child}function gy(t,a,s,o){var d=of();return d=d===null?null:{parent:Dt._currentValue,pool:d},a.memoizedState={baseLanes:s,cachePool:d},t!==null&&fc(a,null),hf(),ny(a),t!==null&&Oo(t,a,o,!0),null}function Mc(t,a){var s=a.ref;if(s===null)t!==null&&t.ref!==null&&(a.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(i(284));(t===null||t.ref!==s)&&(a.flags|=4194816)}}function jf(t,a,s,o,d){return hi(a),s=gf(t,a,s,o,void 0,d),o=vf(),t!==null&&!Ht?(yf(t,a,d),$a(t,a,d)):(Qe&&o&&Wd(a),a.flags|=1,Ft(t,a,s,d),a.child)}function vy(t,a,s,o,d,m){return hi(a),a.updateQueue=null,s=gv(a,o,s,d),mv(t),o=vf(),t!==null&&!Ht?(yf(t,a,m),$a(t,a,m)):(Qe&&o&&Wd(a),a.flags|=1,Ft(t,a,s,m),a.child)}function yy(t,a,s,o,d){if(hi(a),a.stateNode===null){var m=as,E=s.contextType;typeof E=="object"&&E!==null&&(m=Xt(E)),m=new s(o,m),a.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=Nf,a.stateNode=m,m._reactInternals=a,m=a.stateNode,m.props=o,m.state=a.memoizedState,m.refs={},cf(a),E=s.contextType,m.context=typeof E=="object"&&E!==null?Xt(E):as,m.state=a.memoizedState,E=s.getDerivedStateFromProps,typeof E=="function"&&(Of(a,s,E,o),m.state=a.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(E=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),E!==m.state&&Nf.enqueueReplaceState(m,m.state,null),Bo(a,o,m,d),Po(),m.state=a.memoizedState),typeof m.componentDidMount=="function"&&(a.flags|=4194308),o=!0}else if(t===null){m=a.stateNode;var T=a.memoizedProps,j=gi(s,T);m.props=j;var I=m.context,J=s.contextType;E=as,typeof J=="object"&&J!==null&&(E=Xt(J));var ie=s.getDerivedStateFromProps;J=typeof ie=="function"||typeof m.getSnapshotBeforeUpdate=="function",T=a.pendingProps!==T,J||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(T||I!==E)&&ry(a,m,o,E),fr=!1;var G=a.memoizedState;m.state=G,Bo(a,o,m,d),Po(),I=a.memoizedState,T||G!==I||fr?(typeof ie=="function"&&(Of(a,s,ie,o),I=a.memoizedState),(j=fr||ay(a,s,j,o,G,I,E))?(J||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(a.flags|=4194308)):(typeof m.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=o,a.memoizedState=I),m.props=o,m.state=I,m.context=E,o=j):(typeof m.componentDidMount=="function"&&(a.flags|=4194308),o=!1)}else{m=a.stateNode,uf(t,a),E=a.memoizedProps,J=gi(s,E),m.props=J,ie=a.pendingProps,G=m.context,I=s.contextType,j=as,typeof I=="object"&&I!==null&&(j=Xt(I)),T=s.getDerivedStateFromProps,(I=typeof T=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(E!==ie||G!==j)&&ry(a,m,o,j),fr=!1,G=a.memoizedState,m.state=G,Bo(a,o,m,d),Po();var K=a.memoizedState;E!==ie||G!==K||fr||t!==null&&t.dependencies!==null&&uc(t.dependencies)?(typeof T=="function"&&(Of(a,s,T,o),K=a.memoizedState),(J=fr||ay(a,s,J,o,G,K,j)||t!==null&&t.dependencies!==null&&uc(t.dependencies))?(I||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(o,K,j),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(o,K,j)),typeof m.componentDidUpdate=="function"&&(a.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof m.componentDidUpdate!="function"||E===t.memoizedProps&&G===t.memoizedState||(a.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||E===t.memoizedProps&&G===t.memoizedState||(a.flags|=1024),a.memoizedProps=o,a.memoizedState=K),m.props=o,m.state=K,m.context=j,o=J):(typeof m.componentDidUpdate!="function"||E===t.memoizedProps&&G===t.memoizedState||(a.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||E===t.memoizedProps&&G===t.memoizedState||(a.flags|=1024),o=!1)}return m=o,Mc(t,a),o=(a.flags&128)!==0,m||o?(m=a.stateNode,s=o&&typeof s.getDerivedStateFromError!="function"?null:m.render(),a.flags|=1,t!==null&&o?(a.child=hs(a,t.child,null,d),a.child=hs(a,null,s,d)):Ft(t,a,s,d),a.memoizedState=m.state,t=a.child):t=$a(t,a,d),t}function by(t,a,s,o){return Mo(),a.flags|=256,Ft(t,a,s,o),a.child}var zf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Lf(t){return{baseLanes:t,cachePool:sv()}}function Pf(t,a,s){return t=t!==null?t.childLanes&~s:0,a&&(t|=Un),t}function xy(t,a,s){var o=a.pendingProps,d=!1,m=(a.flags&128)!==0,E;if((E=m)||(E=t!==null&&t.memoizedState===null?!1:(Ot.current&2)!==0),E&&(d=!0,a.flags&=-129),E=(a.flags&32)!==0,a.flags&=-33,t===null){if(Qe){if(d?gr(a):vr(),Qe){var T=St,j;if(j=T){e:{for(j=T,T=ha;j.nodeType!==8;){if(!T){T=null;break e}if(j=Jn(j.nextSibling),j===null){T=null;break e}}T=j}T!==null?(a.memoizedState={dehydrated:T,treeContext:li!==null?{id:Pa,overflow:Ba}:null,retryLane:536870912,hydrationErrors:null},j=Cn(18,null,null,0),j.stateNode=T,j.return=a,a.child=j,nn=a,St=null,j=!0):j=!1}j||di(a)}if(T=a.memoizedState,T!==null&&(T=T.dehydrated,T!==null))return xh(T)?a.lanes=32:a.lanes=536870912,null;qa(a)}return T=o.children,o=o.fallback,d?(vr(),d=a.mode,T=Dc({mode:"hidden",children:T},d),o=oi(o,d,s,null),T.return=a,o.return=a,T.sibling=o,a.child=T,d=a.child,d.memoizedState=Lf(s),d.childLanes=Pf(t,E,s),a.memoizedState=zf,o):(gr(a),Bf(a,T))}if(j=t.memoizedState,j!==null&&(T=j.dehydrated,T!==null)){if(m)a.flags&256?(gr(a),a.flags&=-257,a=Uf(t,a,s)):a.memoizedState!==null?(vr(),a.child=t.child,a.flags|=128,a=null):(vr(),d=o.fallback,T=a.mode,o=Dc({mode:"visible",children:o.children},T),d=oi(d,T,s,null),d.flags|=2,o.return=a,d.return=a,o.sibling=d,a.child=o,hs(a,t.child,null,s),o=a.child,o.memoizedState=Lf(s),o.childLanes=Pf(t,E,s),a.memoizedState=zf,a=d);else if(gr(a),xh(T)){if(E=T.nextSibling&&T.nextSibling.dataset,E)var I=E.dgst;E=I,o=Error(i(419)),o.stack="",o.digest=E,Do({value:o,source:null,stack:null}),a=Uf(t,a,s)}else if(Ht||Oo(t,a,s,!1),E=(s&t.childLanes)!==0,Ht||E){if(E=ht,E!==null&&(o=s&-s,o=(o&42)!==0?1:Ie(o),o=(o&(E.suspendedLanes|s))!==0?0:o,o!==0&&o!==j.retryLane))throw j.retryLane=o,ns(t,o),An(E,t,o),dy;T.data==="$?"||ah(),a=Uf(t,a,s)}else T.data==="$?"?(a.flags|=192,a.child=t.child,a=null):(t=j.treeContext,St=Jn(T.nextSibling),nn=a,Qe=!0,ui=null,ha=!1,t!==null&&(Ln[Pn++]=Pa,Ln[Pn++]=Ba,Ln[Pn++]=li,Pa=t.id,Ba=t.overflow,li=a),a=Bf(a,o.children),a.flags|=4096);return a}return d?(vr(),d=o.fallback,T=a.mode,j=t.child,I=j.sibling,o=La(j,{mode:"hidden",children:o.children}),o.subtreeFlags=j.subtreeFlags&65011712,I!==null?d=La(I,d):(d=oi(d,T,s,null),d.flags|=2),d.return=a,o.return=a,o.sibling=d,a.child=o,o=d,d=a.child,T=t.child.memoizedState,T===null?T=Lf(s):(j=T.cachePool,j!==null?(I=Dt._currentValue,j=j.parent!==I?{parent:I,pool:I}:j):j=sv(),T={baseLanes:T.baseLanes|s,cachePool:j}),d.memoizedState=T,d.childLanes=Pf(t,E,s),a.memoizedState=zf,o):(gr(a),s=t.child,t=s.sibling,s=La(s,{mode:"visible",children:o.children}),s.return=a,s.sibling=null,t!==null&&(E=a.deletions,E===null?(a.deletions=[t],a.flags|=16):E.push(t)),a.child=s,a.memoizedState=null,s)}function Bf(t,a){return a=Dc({mode:"visible",children:a},t.mode),a.return=t,t.child=a}function Dc(t,a){return t=Cn(22,t,null,a),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function Uf(t,a,s){return hs(a,t.child,null,s),t=Bf(a,a.pendingProps.children),t.flags|=2,a.memoizedState=null,t}function wy(t,a,s){t.lanes|=a;var o=t.alternate;o!==null&&(o.lanes|=a),nf(t.return,a,s)}function Hf(t,a,s,o,d){var m=t.memoizedState;m===null?t.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:o,tail:s,tailMode:d}:(m.isBackwards=a,m.rendering=null,m.renderingStartTime=0,m.last=o,m.tail=s,m.tailMode=d)}function Sy(t,a,s){var o=a.pendingProps,d=o.revealOrder,m=o.tail;if(Ft(t,a,o.children,s),o=Ot.current,(o&2)!==0)o=o&1|2,a.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=a.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&wy(t,s,a);else if(t.tag===19)wy(t,s,a);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===a)break e;for(;t.sibling===null;){if(t.return===null||t.return===a)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}o&=1}switch(X(Ot,o),d){case"forwards":for(s=a.child,d=null;s!==null;)t=s.alternate,t!==null&&Tc(t)===null&&(d=s),s=s.sibling;s=d,s===null?(d=a.child,a.child=null):(d=s.sibling,s.sibling=null),Hf(a,!1,d,s,m);break;case"backwards":for(s=null,d=a.child,a.child=null;d!==null;){if(t=d.alternate,t!==null&&Tc(t)===null){a.child=d;break}t=d.sibling,d.sibling=s,s=d,d=t}Hf(a,!0,s,null,m);break;case"together":Hf(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function $a(t,a,s){if(t!==null&&(a.dependencies=t.dependencies),Sr|=a.lanes,(s&a.childLanes)===0)if(t!==null){if(Oo(t,a,s,!1),(s&a.childLanes)===0)return null}else return null;if(t!==null&&a.child!==t.child)throw Error(i(153));if(a.child!==null){for(t=a.child,s=La(t,t.pendingProps),a.child=s,s.return=a;t.sibling!==null;)t=t.sibling,s=s.sibling=La(t,t.pendingProps),s.return=a;s.sibling=null}return a.child}function Vf(t,a){return(t.lanes&a)!==0?!0:(t=t.dependencies,!!(t!==null&&uc(t)))}function RE(t,a,s){switch(a.tag){case 3:oe(a,a.stateNode.containerInfo),dr(a,Dt,t.memoizedState.cache),Mo();break;case 27:case 5:ue(a);break;case 4:oe(a,a.stateNode.containerInfo);break;case 10:dr(a,a.type,a.memoizedProps.value);break;case 13:var o=a.memoizedState;if(o!==null)return o.dehydrated!==null?(gr(a),a.flags|=128,null):(s&a.child.childLanes)!==0?xy(t,a,s):(gr(a),t=$a(t,a,s),t!==null?t.sibling:null);gr(a);break;case 19:var d=(t.flags&128)!==0;if(o=(s&a.childLanes)!==0,o||(Oo(t,a,s,!1),o=(s&a.childLanes)!==0),d){if(o)return Sy(t,a,s);a.flags|=128}if(d=a.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),X(Ot,Ot.current),o)break;return null;case 22:case 23:return a.lanes=0,my(t,a,s);case 24:dr(a,Dt,t.memoizedState.cache)}return $a(t,a,s)}function Cy(t,a,s){if(t!==null)if(t.memoizedProps!==a.pendingProps)Ht=!0;else{if(!Vf(t,s)&&(a.flags&128)===0)return Ht=!1,RE(t,a,s);Ht=(t.flags&131072)!==0}else Ht=!1,Qe&&(a.flags&1048576)!==0&&Jg(a,cc,a.index);switch(a.lanes=0,a.tag){case 16:e:{t=a.pendingProps;var o=a.elementType,d=o._init;if(o=d(o._payload),a.type=o,typeof o=="function")Kd(o)?(t=gi(o,t),a.tag=1,a=yy(null,a,o,t,s)):(a.tag=0,a=jf(null,a,o,t,s));else{if(o!=null){if(d=o.$$typeof,d===k){a.tag=11,a=fy(null,a,o,t,s);break e}else if(d===P){a.tag=14,a=hy(null,a,o,t,s);break e}}throw a=he(o)||o,Error(i(306,a,""))}}return a;case 0:return jf(t,a,a.type,a.pendingProps,s);case 1:return o=a.type,d=gi(o,a.pendingProps),yy(t,a,o,d,s);case 3:e:{if(oe(a,a.stateNode.containerInfo),t===null)throw Error(i(387));o=a.pendingProps;var m=a.memoizedState;d=m.element,uf(t,a),Bo(a,o,null,s);var E=a.memoizedState;if(o=E.cache,dr(a,Dt,o),o!==m.cache&&af(a,[Dt],s,!0),Po(),o=E.element,m.isDehydrated)if(m={element:o,isDehydrated:!1,cache:E.cache},a.updateQueue.baseState=m,a.memoizedState=m,a.flags&256){a=by(t,a,o,s);break e}else if(o!==d){d=jn(Error(i(424)),a),Do(d),a=by(t,a,o,s);break e}else{switch(t=a.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(St=Jn(t.firstChild),nn=a,Qe=!0,ui=null,ha=!0,s=ty(a,null,o,s),a.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(Mo(),o===d){a=$a(t,a,s);break e}Ft(t,a,o,s)}a=a.child}return a;case 26:return Mc(t,a),t===null?(s=_b(a.type,null,a.pendingProps,null))?a.memoizedState=s:Qe||(s=a.type,t=a.pendingProps,o=Fc(ae.current).createElement(s),o[Je]=a,o[Pe]=t,Gt(o,s,t),Ut(o),a.stateNode=o):a.memoizedState=_b(a.type,t.memoizedProps,a.pendingProps,t.memoizedState),null;case 27:return ue(a),t===null&&Qe&&(o=a.stateNode=Eb(a.type,a.pendingProps,ae.current),nn=a,ha=!0,d=St,Tr(a.type)?(wh=d,St=Jn(o.firstChild)):St=d),Ft(t,a,a.pendingProps.children,s),Mc(t,a),t===null&&(a.flags|=4194304),a.child;case 5:return t===null&&Qe&&((d=o=St)&&(o=JE(o,a.type,a.pendingProps,ha),o!==null?(a.stateNode=o,nn=a,St=Jn(o.firstChild),ha=!1,d=!0):d=!1),d||di(a)),ue(a),d=a.type,m=a.pendingProps,E=t!==null?t.memoizedProps:null,o=m.children,vh(d,m)?o=null:E!==null&&vh(d,E)&&(a.flags|=32),a.memoizedState!==null&&(d=gf(t,a,vE,null,null,s),sl._currentValue=d),Mc(t,a),Ft(t,a,o,s),a.child;case 6:return t===null&&Qe&&((t=s=St)&&(s=eR(s,a.pendingProps,ha),s!==null?(a.stateNode=s,nn=a,St=null,t=!0):t=!1),t||di(a)),null;case 13:return xy(t,a,s);case 4:return oe(a,a.stateNode.containerInfo),o=a.pendingProps,t===null?a.child=hs(a,null,o,s):Ft(t,a,o,s),a.child;case 11:return fy(t,a,a.type,a.pendingProps,s);case 7:return Ft(t,a,a.pendingProps,s),a.child;case 8:return Ft(t,a,a.pendingProps.children,s),a.child;case 12:return Ft(t,a,a.pendingProps.children,s),a.child;case 10:return o=a.pendingProps,dr(a,a.type,o.value),Ft(t,a,o.children,s),a.child;case 9:return d=a.type._context,o=a.pendingProps.children,hi(a),d=Xt(d),o=o(d),a.flags|=1,Ft(t,a,o,s),a.child;case 14:return hy(t,a,a.type,a.pendingProps,s);case 15:return py(t,a,a.type,a.pendingProps,s);case 19:return Sy(t,a,s);case 31:return o=a.pendingProps,s=a.mode,o={mode:o.mode,children:o.children},t===null?(s=Dc(o,s),s.ref=a.ref,a.child=s,s.return=a,a=s):(s=La(t.child,o),s.ref=a.ref,a.child=s,s.return=a,a=s),a;case 22:return my(t,a,s);case 24:return hi(a),o=Xt(Dt),t===null?(d=of(),d===null&&(d=ht,m=rf(),d.pooledCache=m,m.refCount++,m!==null&&(d.pooledCacheLanes|=s),d=m),a.memoizedState={parent:o,cache:d},cf(a),dr(a,Dt,d)):((t.lanes&s)!==0&&(uf(t,a),Bo(a,null,null,s),Po()),d=t.memoizedState,m=a.memoizedState,d.parent!==o?(d={parent:o,cache:o},a.memoizedState=d,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=d),dr(a,Dt,o)):(o=m.cache,dr(a,Dt,o),o!==d.cache&&af(a,[Dt],s,!0))),Ft(t,a,a.pendingProps.children,s),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}function Fa(t){t.flags|=4}function Ey(t,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Nb(a)){if(a=Bn.current,a!==null&&(($e&4194048)===$e?pa!==null:($e&62914560)!==$e&&($e&536870912)===0||a!==pa))throw zo=lf,ov;t.flags|=8192}}function Oc(t,a){a!==null&&(t.flags|=4),t.flags&16384&&(a=t.tag!==22?qi():536870912,t.lanes|=a,vs|=a)}function Io(t,a){if(!Qe)switch(t.tailMode){case"hidden":a=t.tail;for(var s=null;a!==null;)a.alternate!==null&&(s=a),a=a.sibling;s===null?t.tail=null:s.sibling=null;break;case"collapsed":s=t.tail;for(var o=null;s!==null;)s.alternate!==null&&(o=s),s=s.sibling;o===null?a||t.tail===null?t.tail=null:t.tail.sibling=null:o.sibling=null}}function bt(t){var a=t.alternate!==null&&t.alternate.child===t.child,s=0,o=0;if(a)for(var d=t.child;d!==null;)s|=d.lanes|d.childLanes,o|=d.subtreeFlags&65011712,o|=d.flags&65011712,d.return=t,d=d.sibling;else for(d=t.child;d!==null;)s|=d.lanes|d.childLanes,o|=d.subtreeFlags,o|=d.flags,d.return=t,d=d.sibling;return t.subtreeFlags|=o,t.childLanes=s,a}function TE(t,a,s){var o=a.pendingProps;switch(Jd(a),a.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return bt(a),null;case 1:return bt(a),null;case 3:return s=a.stateNode,o=null,t!==null&&(o=t.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),Ha(Dt),pe(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(t===null||t.child===null)&&(Ao(a)?Fa(a):t===null||t.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,nv())),bt(a),null;case 26:return s=a.memoizedState,t===null?(Fa(a),s!==null?(bt(a),Ey(a,s)):(bt(a),a.flags&=-16777217)):s?s!==t.memoizedState?(Fa(a),bt(a),Ey(a,s)):(bt(a),a.flags&=-16777217):(t.memoizedProps!==o&&Fa(a),bt(a),a.flags&=-16777217),null;case 27:xe(a),s=ae.current;var d=a.type;if(t!==null&&a.stateNode!=null)t.memoizedProps!==o&&Fa(a);else{if(!o){if(a.stateNode===null)throw Error(i(166));return bt(a),null}t=te.current,Ao(a)?ev(a):(t=Eb(d,o,s),a.stateNode=t,Fa(a))}return bt(a),null;case 5:if(xe(a),s=a.type,t!==null&&a.stateNode!=null)t.memoizedProps!==o&&Fa(a);else{if(!o){if(a.stateNode===null)throw Error(i(166));return bt(a),null}if(t=te.current,Ao(a))ev(a);else{switch(d=Fc(ae.current),t){case 1:t=d.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:t=d.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":t=d.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":t=d.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":t=d.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof o.is=="string"?d.createElement("select",{is:o.is}):d.createElement("select"),o.multiple?t.multiple=!0:o.size&&(t.size=o.size);break;default:t=typeof o.is=="string"?d.createElement(s,{is:o.is}):d.createElement(s)}}t[Je]=a,t[Pe]=o;e:for(d=a.child;d!==null;){if(d.tag===5||d.tag===6)t.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===a)break e;for(;d.sibling===null;){if(d.return===null||d.return===a)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}a.stateNode=t;e:switch(Gt(t,s,o),s){case"button":case"input":case"select":case"textarea":t=!!o.autoFocus;break e;case"img":t=!0;break e;default:t=!1}t&&Fa(a)}}return bt(a),a.flags&=-16777217,null;case 6:if(t&&a.stateNode!=null)t.memoizedProps!==o&&Fa(a);else{if(typeof o!="string"&&a.stateNode===null)throw Error(i(166));if(t=ae.current,Ao(a)){if(t=a.stateNode,s=a.memoizedProps,o=null,d=nn,d!==null)switch(d.tag){case 27:case 5:o=d.memoizedProps}t[Je]=a,t=!!(t.nodeValue===s||o!==null&&o.suppressHydrationWarning===!0||vb(t.nodeValue,s)),t||di(a)}else t=Fc(t).createTextNode(o),t[Je]=a,a.stateNode=t}return bt(a),null;case 13:if(o=a.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(d=Ao(a),o!==null&&o.dehydrated!==null){if(t===null){if(!d)throw Error(i(318));if(d=a.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(i(317));d[Je]=a}else Mo(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;bt(a),d=!1}else d=nv(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=d),d=!0;if(!d)return a.flags&256?(qa(a),a):(qa(a),null)}if(qa(a),(a.flags&128)!==0)return a.lanes=s,a;if(s=o!==null,t=t!==null&&t.memoizedState!==null,s){o=a.child,d=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(d=o.alternate.memoizedState.cachePool.pool);var m=null;o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(m=o.memoizedState.cachePool.pool),m!==d&&(o.flags|=2048)}return s!==t&&s&&(a.child.flags|=8192),Oc(a,a.updateQueue),bt(a),null;case 4:return pe(),t===null&&fh(a.stateNode.containerInfo),bt(a),null;case 10:return Ha(a.type),bt(a),null;case 19:if(W(Ot),d=a.memoizedState,d===null)return bt(a),null;if(o=(a.flags&128)!==0,m=d.rendering,m===null)if(o)Io(d,!1);else{if(Ct!==0||t!==null&&(t.flags&128)!==0)for(t=a.child;t!==null;){if(m=Tc(t),m!==null){for(a.flags|=128,Io(d,!1),t=m.updateQueue,a.updateQueue=t,Oc(a,t),a.subtreeFlags=0,t=s,s=a.child;s!==null;)Wg(s,t),s=s.sibling;return X(Ot,Ot.current&1|2),a.child}t=t.sibling}d.tail!==null&&Fe()>jc&&(a.flags|=128,o=!0,Io(d,!1),a.lanes=4194304)}else{if(!o)if(t=Tc(m),t!==null){if(a.flags|=128,o=!0,t=t.updateQueue,a.updateQueue=t,Oc(a,t),Io(d,!0),d.tail===null&&d.tailMode==="hidden"&&!m.alternate&&!Qe)return bt(a),null}else 2*Fe()-d.renderingStartTime>jc&&s!==536870912&&(a.flags|=128,o=!0,Io(d,!1),a.lanes=4194304);d.isBackwards?(m.sibling=a.child,a.child=m):(t=d.last,t!==null?t.sibling=m:a.child=m,d.last=m)}return d.tail!==null?(a=d.tail,d.rendering=a,d.tail=a.sibling,d.renderingStartTime=Fe(),a.sibling=null,t=Ot.current,X(Ot,o?t&1|2:t&1),a):(bt(a),null);case 22:case 23:return qa(a),pf(),o=a.memoizedState!==null,t!==null?t.memoizedState!==null!==o&&(a.flags|=8192):o&&(a.flags|=8192),o?(s&536870912)!==0&&(a.flags&128)===0&&(bt(a),a.subtreeFlags&6&&(a.flags|=8192)):bt(a),s=a.updateQueue,s!==null&&Oc(a,s.retryQueue),s=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==s&&(a.flags|=2048),t!==null&&W(pi),null;case 24:return s=null,t!==null&&(s=t.memoizedState.cache),a.memoizedState.cache!==s&&(a.flags|=2048),Ha(Dt),bt(a),null;case 25:return null;case 30:return null}throw Error(i(156,a.tag))}function _E(t,a){switch(Jd(a),a.tag){case 1:return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 3:return Ha(Dt),pe(),t=a.flags,(t&65536)!==0&&(t&128)===0?(a.flags=t&-65537|128,a):null;case 26:case 27:case 5:return xe(a),null;case 13:if(qa(a),t=a.memoizedState,t!==null&&t.dehydrated!==null){if(a.alternate===null)throw Error(i(340));Mo()}return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 19:return W(Ot),null;case 4:return pe(),null;case 10:return Ha(a.type),null;case 22:case 23:return qa(a),pf(),t!==null&&W(pi),t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 24:return Ha(Dt),null;case 25:return null;default:return null}}function Ry(t,a){switch(Jd(a),a.tag){case 3:Ha(Dt),pe();break;case 26:case 27:case 5:xe(a);break;case 4:pe();break;case 13:qa(a);break;case 19:W(Ot);break;case 10:Ha(a.type);break;case 22:case 23:qa(a),pf(),t!==null&&W(pi);break;case 24:Ha(Dt)}}function Go(t,a){try{var s=a.updateQueue,o=s!==null?s.lastEffect:null;if(o!==null){var d=o.next;s=d;do{if((s.tag&t)===t){o=void 0;var m=s.create,E=s.inst;o=m(),E.destroy=o}s=s.next}while(s!==d)}}catch(T){ut(a,a.return,T)}}function yr(t,a,s){try{var o=a.updateQueue,d=o!==null?o.lastEffect:null;if(d!==null){var m=d.next;o=m;do{if((o.tag&t)===t){var E=o.inst,T=E.destroy;if(T!==void 0){E.destroy=void 0,d=a;var j=s,I=T;try{I()}catch(J){ut(d,j,J)}}}o=o.next}while(o!==m)}}catch(J){ut(a,a.return,J)}}function Ty(t){var a=t.updateQueue;if(a!==null){var s=t.stateNode;try{hv(a,s)}catch(o){ut(t,t.return,o)}}}function _y(t,a,s){s.props=gi(t.type,t.memoizedProps),s.state=t.memoizedState;try{s.componentWillUnmount()}catch(o){ut(t,a,o)}}function Yo(t,a){try{var s=t.ref;if(s!==null){switch(t.tag){case 26:case 27:case 5:var o=t.stateNode;break;case 30:o=t.stateNode;break;default:o=t.stateNode}typeof s=="function"?t.refCleanup=s(o):s.current=o}}catch(d){ut(t,a,d)}}function ma(t,a){var s=t.ref,o=t.refCleanup;if(s!==null)if(typeof o=="function")try{o()}catch(d){ut(t,a,d)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(d){ut(t,a,d)}else s.current=null}function Ay(t){var a=t.type,s=t.memoizedProps,o=t.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":s.autoFocus&&o.focus();break e;case"img":s.src?o.src=s.src:s.srcSet&&(o.srcset=s.srcSet)}}catch(d){ut(t,t.return,d)}}function qf(t,a,s){try{var o=t.stateNode;QE(o,t.type,s,a),o[Pe]=a}catch(d){ut(t,t.return,d)}}function My(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Tr(t.type)||t.tag===4}function $f(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||My(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Tr(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Ff(t,a,s){var o=t.tag;if(o===5||o===6)t=t.stateNode,a?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(t,a):(a=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,a.appendChild(t),s=s._reactRootContainer,s!=null||a.onclick!==null||(a.onclick=$c));else if(o!==4&&(o===27&&Tr(t.type)&&(s=t.stateNode,a=null),t=t.child,t!==null))for(Ff(t,a,s),t=t.sibling;t!==null;)Ff(t,a,s),t=t.sibling}function Nc(t,a,s){var o=t.tag;if(o===5||o===6)t=t.stateNode,a?s.insertBefore(t,a):s.appendChild(t);else if(o!==4&&(o===27&&Tr(t.type)&&(s=t.stateNode),t=t.child,t!==null))for(Nc(t,a,s),t=t.sibling;t!==null;)Nc(t,a,s),t=t.sibling}function Dy(t){var a=t.stateNode,s=t.memoizedProps;try{for(var o=t.type,d=a.attributes;d.length;)a.removeAttributeNode(d[0]);Gt(a,o,s),a[Je]=t,a[Pe]=s}catch(m){ut(t,t.return,m)}}var Ia=!1,Tt=!1,If=!1,Oy=typeof WeakSet=="function"?WeakSet:Set,Vt=null;function AE(t,a){if(t=t.containerInfo,mh=Xc,t=qg(t),qd(t)){if("selectionStart"in t)var s={start:t.selectionStart,end:t.selectionEnd};else e:{s=(s=t.ownerDocument)&&s.defaultView||window;var o=s.getSelection&&s.getSelection();if(o&&o.rangeCount!==0){s=o.anchorNode;var d=o.anchorOffset,m=o.focusNode;o=o.focusOffset;try{s.nodeType,m.nodeType}catch{s=null;break e}var E=0,T=-1,j=-1,I=0,J=0,ie=t,G=null;t:for(;;){for(var K;ie!==s||d!==0&&ie.nodeType!==3||(T=E+d),ie!==m||o!==0&&ie.nodeType!==3||(j=E+o),ie.nodeType===3&&(E+=ie.nodeValue.length),(K=ie.firstChild)!==null;)G=ie,ie=K;for(;;){if(ie===t)break t;if(G===s&&++I===d&&(T=E),G===m&&++J===o&&(j=E),(K=ie.nextSibling)!==null)break;ie=G,G=ie.parentNode}ie=K}s=T===-1||j===-1?null:{start:T,end:j}}else s=null}s=s||{start:0,end:0}}else s=null;for(gh={focusedElem:t,selectionRange:s},Xc=!1,Vt=a;Vt!==null;)if(a=Vt,t=a.child,(a.subtreeFlags&1024)!==0&&t!==null)t.return=a,Vt=t;else for(;Vt!==null;){switch(a=Vt,m=a.alternate,t=a.flags,a.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&m!==null){t=void 0,s=a,d=m.memoizedProps,m=m.memoizedState,o=s.stateNode;try{var Te=gi(s.type,d,s.elementType===s.type);t=o.getSnapshotBeforeUpdate(Te,m),o.__reactInternalSnapshotBeforeUpdate=t}catch(Ee){ut(s,s.return,Ee)}}break;case 3:if((t&1024)!==0){if(t=a.stateNode.containerInfo,s=t.nodeType,s===9)bh(t);else if(s===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":bh(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(i(163))}if(t=a.sibling,t!==null){t.return=a.return,Vt=t;break}Vt=a.return}}function Ny(t,a,s){var o=s.flags;switch(s.tag){case 0:case 11:case 15:br(t,s),o&4&&Go(5,s);break;case 1:if(br(t,s),o&4)if(t=s.stateNode,a===null)try{t.componentDidMount()}catch(E){ut(s,s.return,E)}else{var d=gi(s.type,a.memoizedProps);a=a.memoizedState;try{t.componentDidUpdate(d,a,t.__reactInternalSnapshotBeforeUpdate)}catch(E){ut(s,s.return,E)}}o&64&&Ty(s),o&512&&Yo(s,s.return);break;case 3:if(br(t,s),o&64&&(t=s.updateQueue,t!==null)){if(a=null,s.child!==null)switch(s.child.tag){case 27:case 5:a=s.child.stateNode;break;case 1:a=s.child.stateNode}try{hv(t,a)}catch(E){ut(s,s.return,E)}}break;case 27:a===null&&o&4&&Dy(s);case 26:case 5:br(t,s),a===null&&o&4&&Ay(s),o&512&&Yo(s,s.return);break;case 12:br(t,s);break;case 13:br(t,s),o&4&&zy(t,s),o&64&&(t=s.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(s=PE.bind(null,s),tR(t,s))));break;case 22:if(o=s.memoizedState!==null||Ia,!o){a=a!==null&&a.memoizedState!==null||Tt,d=Ia;var m=Tt;Ia=o,(Tt=a)&&!m?xr(t,s,(s.subtreeFlags&8772)!==0):br(t,s),Ia=d,Tt=m}break;case 30:break;default:br(t,s)}}function ky(t){var a=t.alternate;a!==null&&(t.alternate=null,ky(a)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(a=t.stateNode,a!==null&&Cd(a)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var gt=null,hn=!1;function Ga(t,a,s){for(s=s.child;s!==null;)jy(t,a,s),s=s.sibling}function jy(t,a,s){if(wt&&typeof wt.onCommitFiberUnmount=="function")try{wt.onCommitFiberUnmount(cn,s)}catch{}switch(s.tag){case 26:Tt||ma(s,a),Ga(t,a,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:Tt||ma(s,a);var o=gt,d=hn;Tr(s.type)&&(gt=s.stateNode,hn=!1),Ga(t,a,s),nl(s.stateNode),gt=o,hn=d;break;case 5:Tt||ma(s,a);case 6:if(o=gt,d=hn,gt=null,Ga(t,a,s),gt=o,hn=d,gt!==null)if(hn)try{(gt.nodeType===9?gt.body:gt.nodeName==="HTML"?gt.ownerDocument.body:gt).removeChild(s.stateNode)}catch(m){ut(s,a,m)}else try{gt.removeChild(s.stateNode)}catch(m){ut(s,a,m)}break;case 18:gt!==null&&(hn?(t=gt,Sb(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,s.stateNode),ul(t)):Sb(gt,s.stateNode));break;case 4:o=gt,d=hn,gt=s.stateNode.containerInfo,hn=!0,Ga(t,a,s),gt=o,hn=d;break;case 0:case 11:case 14:case 15:Tt||yr(2,s,a),Tt||yr(4,s,a),Ga(t,a,s);break;case 1:Tt||(ma(s,a),o=s.stateNode,typeof o.componentWillUnmount=="function"&&_y(s,a,o)),Ga(t,a,s);break;case 21:Ga(t,a,s);break;case 22:Tt=(o=Tt)||s.memoizedState!==null,Ga(t,a,s),Tt=o;break;default:Ga(t,a,s)}}function zy(t,a){if(a.memoizedState===null&&(t=a.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ul(t)}catch(s){ut(a,a.return,s)}}function ME(t){switch(t.tag){case 13:case 19:var a=t.stateNode;return a===null&&(a=t.stateNode=new Oy),a;case 22:return t=t.stateNode,a=t._retryCache,a===null&&(a=t._retryCache=new Oy),a;default:throw Error(i(435,t.tag))}}function Gf(t,a){var s=ME(t);a.forEach(function(o){var d=BE.bind(null,t,o);s.has(o)||(s.add(o),o.then(d,d))})}function En(t,a){var s=a.deletions;if(s!==null)for(var o=0;o<s.length;o++){var d=s[o],m=t,E=a,T=E;e:for(;T!==null;){switch(T.tag){case 27:if(Tr(T.type)){gt=T.stateNode,hn=!1;break e}break;case 5:gt=T.stateNode,hn=!1;break e;case 3:case 4:gt=T.stateNode.containerInfo,hn=!0;break e}T=T.return}if(gt===null)throw Error(i(160));jy(m,E,d),gt=null,hn=!1,m=d.alternate,m!==null&&(m.return=null),d.return=null}if(a.subtreeFlags&13878)for(a=a.child;a!==null;)Ly(a,t),a=a.sibling}var Wn=null;function Ly(t,a){var s=t.alternate,o=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:En(a,t),Rn(t),o&4&&(yr(3,t,t.return),Go(3,t),yr(5,t,t.return));break;case 1:En(a,t),Rn(t),o&512&&(Tt||s===null||ma(s,s.return)),o&64&&Ia&&(t=t.updateQueue,t!==null&&(o=t.callbacks,o!==null&&(s=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=s===null?o:s.concat(o))));break;case 26:var d=Wn;if(En(a,t),Rn(t),o&512&&(Tt||s===null||ma(s,s.return)),o&4){var m=s!==null?s.memoizedState:null;if(o=t.memoizedState,s===null)if(o===null)if(t.stateNode===null){e:{o=t.type,s=t.memoizedProps,d=d.ownerDocument||d;t:switch(o){case"title":m=d.getElementsByTagName("title")[0],(!m||m[ka]||m[Je]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=d.createElement(o),d.head.insertBefore(m,d.querySelector("head > title"))),Gt(m,o,s),m[Je]=t,Ut(m),o=m;break e;case"link":var E=Db("link","href",d).get(o+(s.href||""));if(E){for(var T=0;T<E.length;T++)if(m=E[T],m.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&m.getAttribute("rel")===(s.rel==null?null:s.rel)&&m.getAttribute("title")===(s.title==null?null:s.title)&&m.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){E.splice(T,1);break t}}m=d.createElement(o),Gt(m,o,s),d.head.appendChild(m);break;case"meta":if(E=Db("meta","content",d).get(o+(s.content||""))){for(T=0;T<E.length;T++)if(m=E[T],m.getAttribute("content")===(s.content==null?null:""+s.content)&&m.getAttribute("name")===(s.name==null?null:s.name)&&m.getAttribute("property")===(s.property==null?null:s.property)&&m.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&m.getAttribute("charset")===(s.charSet==null?null:s.charSet)){E.splice(T,1);break t}}m=d.createElement(o),Gt(m,o,s),d.head.appendChild(m);break;default:throw Error(i(468,o))}m[Je]=t,Ut(m),o=m}t.stateNode=o}else Ob(d,t.type,t.stateNode);else t.stateNode=Mb(d,o,t.memoizedProps);else m!==o?(m===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):m.count--,o===null?Ob(d,t.type,t.stateNode):Mb(d,o,t.memoizedProps)):o===null&&t.stateNode!==null&&qf(t,t.memoizedProps,s.memoizedProps)}break;case 27:En(a,t),Rn(t),o&512&&(Tt||s===null||ma(s,s.return)),s!==null&&o&4&&qf(t,t.memoizedProps,s.memoizedProps);break;case 5:if(En(a,t),Rn(t),o&512&&(Tt||s===null||ma(s,s.return)),t.flags&32){d=t.stateNode;try{Ki(d,"")}catch(K){ut(t,t.return,K)}}o&4&&t.stateNode!=null&&(d=t.memoizedProps,qf(t,d,s!==null?s.memoizedProps:d)),o&1024&&(If=!0);break;case 6:if(En(a,t),Rn(t),o&4){if(t.stateNode===null)throw Error(i(162));o=t.memoizedProps,s=t.stateNode;try{s.nodeValue=o}catch(K){ut(t,t.return,K)}}break;case 3:if(Yc=null,d=Wn,Wn=Ic(a.containerInfo),En(a,t),Wn=d,Rn(t),o&4&&s!==null&&s.memoizedState.isDehydrated)try{ul(a.containerInfo)}catch(K){ut(t,t.return,K)}If&&(If=!1,Py(t));break;case 4:o=Wn,Wn=Ic(t.stateNode.containerInfo),En(a,t),Rn(t),Wn=o;break;case 12:En(a,t),Rn(t);break;case 13:En(a,t),Rn(t),t.child.flags&8192&&t.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(Wf=Fe()),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,Gf(t,o)));break;case 22:d=t.memoizedState!==null;var j=s!==null&&s.memoizedState!==null,I=Ia,J=Tt;if(Ia=I||d,Tt=J||j,En(a,t),Tt=J,Ia=I,Rn(t),o&8192)e:for(a=t.stateNode,a._visibility=d?a._visibility&-2:a._visibility|1,d&&(s===null||j||Ia||Tt||vi(t)),s=null,a=t;;){if(a.tag===5||a.tag===26){if(s===null){j=s=a;try{if(m=j.stateNode,d)E=m.style,typeof E.setProperty=="function"?E.setProperty("display","none","important"):E.display="none";else{T=j.stateNode;var ie=j.memoizedProps.style,G=ie!=null&&ie.hasOwnProperty("display")?ie.display:null;T.style.display=G==null||typeof G=="boolean"?"":(""+G).trim()}}catch(K){ut(j,j.return,K)}}}else if(a.tag===6){if(s===null){j=a;try{j.stateNode.nodeValue=d?"":j.memoizedProps}catch(K){ut(j,j.return,K)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===t)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;a.sibling===null;){if(a.return===null||a.return===t)break e;s===a&&(s=null),a=a.return}s===a&&(s=null),a.sibling.return=a.return,a=a.sibling}o&4&&(o=t.updateQueue,o!==null&&(s=o.retryQueue,s!==null&&(o.retryQueue=null,Gf(t,s))));break;case 19:En(a,t),Rn(t),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,Gf(t,o)));break;case 30:break;case 21:break;default:En(a,t),Rn(t)}}function Rn(t){var a=t.flags;if(a&2){try{for(var s,o=t.return;o!==null;){if(My(o)){s=o;break}o=o.return}if(s==null)throw Error(i(160));switch(s.tag){case 27:var d=s.stateNode,m=$f(t);Nc(t,m,d);break;case 5:var E=s.stateNode;s.flags&32&&(Ki(E,""),s.flags&=-33);var T=$f(t);Nc(t,T,E);break;case 3:case 4:var j=s.stateNode.containerInfo,I=$f(t);Ff(t,I,j);break;default:throw Error(i(161))}}catch(J){ut(t,t.return,J)}t.flags&=-3}a&4096&&(t.flags&=-4097)}function Py(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var a=t;Py(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),t=t.sibling}}function br(t,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)Ny(t,a.alternate,a),a=a.sibling}function vi(t){for(t=t.child;t!==null;){var a=t;switch(a.tag){case 0:case 11:case 14:case 15:yr(4,a,a.return),vi(a);break;case 1:ma(a,a.return);var s=a.stateNode;typeof s.componentWillUnmount=="function"&&_y(a,a.return,s),vi(a);break;case 27:nl(a.stateNode);case 26:case 5:ma(a,a.return),vi(a);break;case 22:a.memoizedState===null&&vi(a);break;case 30:vi(a);break;default:vi(a)}t=t.sibling}}function xr(t,a,s){for(s=s&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var o=a.alternate,d=t,m=a,E=m.flags;switch(m.tag){case 0:case 11:case 15:xr(d,m,s),Go(4,m);break;case 1:if(xr(d,m,s),o=m,d=o.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(I){ut(o,o.return,I)}if(o=m,d=o.updateQueue,d!==null){var T=o.stateNode;try{var j=d.shared.hiddenCallbacks;if(j!==null)for(d.shared.hiddenCallbacks=null,d=0;d<j.length;d++)fv(j[d],T)}catch(I){ut(o,o.return,I)}}s&&E&64&&Ty(m),Yo(m,m.return);break;case 27:Dy(m);case 26:case 5:xr(d,m,s),s&&o===null&&E&4&&Ay(m),Yo(m,m.return);break;case 12:xr(d,m,s);break;case 13:xr(d,m,s),s&&E&4&&zy(d,m);break;case 22:m.memoizedState===null&&xr(d,m,s),Yo(m,m.return);break;case 30:break;default:xr(d,m,s)}a=a.sibling}}function Yf(t,a){var s=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),t=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(t=a.memoizedState.cachePool.pool),t!==s&&(t!=null&&t.refCount++,s!=null&&No(s))}function Qf(t,a){t=null,a.alternate!==null&&(t=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==t&&(a.refCount++,t!=null&&No(t))}function ga(t,a,s,o){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)By(t,a,s,o),a=a.sibling}function By(t,a,s,o){var d=a.flags;switch(a.tag){case 0:case 11:case 15:ga(t,a,s,o),d&2048&&Go(9,a);break;case 1:ga(t,a,s,o);break;case 3:ga(t,a,s,o),d&2048&&(t=null,a.alternate!==null&&(t=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==t&&(a.refCount++,t!=null&&No(t)));break;case 12:if(d&2048){ga(t,a,s,o),t=a.stateNode;try{var m=a.memoizedProps,E=m.id,T=m.onPostCommit;typeof T=="function"&&T(E,a.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(j){ut(a,a.return,j)}}else ga(t,a,s,o);break;case 13:ga(t,a,s,o);break;case 23:break;case 22:m=a.stateNode,E=a.alternate,a.memoizedState!==null?m._visibility&2?ga(t,a,s,o):Qo(t,a):m._visibility&2?ga(t,a,s,o):(m._visibility|=2,ps(t,a,s,o,(a.subtreeFlags&10256)!==0)),d&2048&&Yf(E,a);break;case 24:ga(t,a,s,o),d&2048&&Qf(a.alternate,a);break;default:ga(t,a,s,o)}}function ps(t,a,s,o,d){for(d=d&&(a.subtreeFlags&10256)!==0,a=a.child;a!==null;){var m=t,E=a,T=s,j=o,I=E.flags;switch(E.tag){case 0:case 11:case 15:ps(m,E,T,j,d),Go(8,E);break;case 23:break;case 22:var J=E.stateNode;E.memoizedState!==null?J._visibility&2?ps(m,E,T,j,d):Qo(m,E):(J._visibility|=2,ps(m,E,T,j,d)),d&&I&2048&&Yf(E.alternate,E);break;case 24:ps(m,E,T,j,d),d&&I&2048&&Qf(E.alternate,E);break;default:ps(m,E,T,j,d)}a=a.sibling}}function Qo(t,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var s=t,o=a,d=o.flags;switch(o.tag){case 22:Qo(s,o),d&2048&&Yf(o.alternate,o);break;case 24:Qo(s,o),d&2048&&Qf(o.alternate,o);break;default:Qo(s,o)}a=a.sibling}}var Ko=8192;function ms(t){if(t.subtreeFlags&Ko)for(t=t.child;t!==null;)Uy(t),t=t.sibling}function Uy(t){switch(t.tag){case 26:ms(t),t.flags&Ko&&t.memoizedState!==null&&pR(Wn,t.memoizedState,t.memoizedProps);break;case 5:ms(t);break;case 3:case 4:var a=Wn;Wn=Ic(t.stateNode.containerInfo),ms(t),Wn=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=Ko,Ko=16777216,ms(t),Ko=a):ms(t));break;default:ms(t)}}function Hy(t){var a=t.alternate;if(a!==null&&(t=a.child,t!==null)){a.child=null;do a=t.sibling,t.sibling=null,t=a;while(t!==null)}}function Xo(t){var a=t.deletions;if((t.flags&16)!==0){if(a!==null)for(var s=0;s<a.length;s++){var o=a[s];Vt=o,qy(o,t)}Hy(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Vy(t),t=t.sibling}function Vy(t){switch(t.tag){case 0:case 11:case 15:Xo(t),t.flags&2048&&yr(9,t,t.return);break;case 3:Xo(t);break;case 12:Xo(t);break;case 22:var a=t.stateNode;t.memoizedState!==null&&a._visibility&2&&(t.return===null||t.return.tag!==13)?(a._visibility&=-3,kc(t)):Xo(t);break;default:Xo(t)}}function kc(t){var a=t.deletions;if((t.flags&16)!==0){if(a!==null)for(var s=0;s<a.length;s++){var o=a[s];Vt=o,qy(o,t)}Hy(t)}for(t=t.child;t!==null;){switch(a=t,a.tag){case 0:case 11:case 15:yr(8,a,a.return),kc(a);break;case 22:s=a.stateNode,s._visibility&2&&(s._visibility&=-3,kc(a));break;default:kc(a)}t=t.sibling}}function qy(t,a){for(;Vt!==null;){var s=Vt;switch(s.tag){case 0:case 11:case 15:yr(8,s,a);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var o=s.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:No(s.memoizedState.cache)}if(o=s.child,o!==null)o.return=s,Vt=o;else e:for(s=t;Vt!==null;){o=Vt;var d=o.sibling,m=o.return;if(ky(o),o===s){Vt=null;break e}if(d!==null){d.return=m,Vt=d;break e}Vt=m}}}var DE={getCacheForType:function(t){var a=Xt(Dt),s=a.data.get(t);return s===void 0&&(s=t(),a.data.set(t,s)),s}},OE=typeof WeakMap=="function"?WeakMap:Map,nt=0,ht=null,Be=null,$e=0,at=0,Tn=null,wr=!1,gs=!1,Kf=!1,Ya=0,Ct=0,Sr=0,yi=0,Xf=0,Un=0,vs=0,Zo=null,pn=null,Zf=!1,Wf=0,jc=1/0,zc=null,Cr=null,It=0,Er=null,ys=null,bs=0,Jf=0,eh=null,$y=null,Wo=0,th=null;function _n(){if((nt&2)!==0&&$e!==0)return $e&-$e;if(L.T!==null){var t=ss;return t!==0?t:lh()}return Bt()}function Fy(){Un===0&&(Un=($e&536870912)===0||Qe?wn():536870912);var t=Bn.current;return t!==null&&(t.flags|=32),Un}function An(t,a,s){(t===ht&&(at===2||at===9)||t.cancelPendingCommit!==null)&&(xs(t,0),Rr(t,$e,Un,!1)),pt(t,s),((nt&2)===0||t!==ht)&&(t===ht&&((nt&2)===0&&(yi|=s),Ct===4&&Rr(t,$e,Un,!1)),va(t))}function Iy(t,a,s){if((nt&6)!==0)throw Error(i(327));var o=!s&&(a&124)===0&&(a&t.expiredLanes)===0||Na(t,a),d=o?jE(t,a):rh(t,a,!0),m=o;do{if(d===0){gs&&!o&&Rr(t,a,0,!1);break}else{if(s=t.current.alternate,m&&!NE(s)){d=rh(t,a,!1),m=!1;continue}if(d===2){if(m=a,t.errorRecoveryDisabledLanes&m)var E=0;else E=t.pendingLanes&-536870913,E=E!==0?E:E&536870912?536870912:0;if(E!==0){a=E;e:{var T=t;d=Zo;var j=T.current.memoizedState.isDehydrated;if(j&&(xs(T,E).flags|=256),E=rh(T,E,!1),E!==2){if(Kf&&!j){T.errorRecoveryDisabledLanes|=m,yi|=m,d=4;break e}m=pn,pn=d,m!==null&&(pn===null?pn=m:pn.push.apply(pn,m))}d=E}if(m=!1,d!==2)continue}}if(d===1){xs(t,0),Rr(t,a,0,!0);break}e:{switch(o=t,m=d,m){case 0:case 1:throw Error(i(345));case 4:if((a&4194048)!==a)break;case 6:Rr(o,a,Un,!wr);break e;case 2:pn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((a&62914560)===a&&(d=Wf+300-Fe(),10<d)){if(Rr(o,a,Un,!wr),fa(o,0,!0)!==0)break e;o.timeoutHandle=xb(Gy.bind(null,o,s,pn,zc,Zf,a,Un,yi,vs,wr,m,2,-0,0),d);break e}Gy(o,s,pn,zc,Zf,a,Un,yi,vs,wr,m,0,-0,0)}}break}while(!0);va(t)}function Gy(t,a,s,o,d,m,E,T,j,I,J,ie,G,K){if(t.timeoutHandle=-1,ie=a.subtreeFlags,(ie&8192||(ie&16785408)===16785408)&&(il={stylesheets:null,count:0,unsuspend:hR},Uy(a),ie=mR(),ie!==null)){t.cancelPendingCommit=ie(Jy.bind(null,t,a,m,s,o,d,E,T,j,J,1,G,K)),Rr(t,m,E,!I);return}Jy(t,a,m,s,o,d,E,T,j)}function NE(t){for(var a=t;;){var s=a.tag;if((s===0||s===11||s===15)&&a.flags&16384&&(s=a.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var o=0;o<s.length;o++){var d=s[o],m=d.getSnapshot;d=d.value;try{if(!Sn(m(),d))return!1}catch{return!1}}if(s=a.child,a.subtreeFlags&16384&&s!==null)s.return=a,a=s;else{if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Rr(t,a,s,o){a&=~Xf,a&=~yi,t.suspendedLanes|=a,t.pingedLanes&=~a,o&&(t.warmLanes|=a),o=t.expirationTimes;for(var d=a;0<d;){var m=31-yt(d),E=1<<m;o[m]=-1,d&=~E}s!==0&&we(t,s,a)}function Lc(){return(nt&6)===0?(Jo(0),!1):!0}function nh(){if(Be!==null){if(at===0)var t=Be.return;else t=Be,Ua=fi=null,bf(t),fs=null,$o=0,t=Be;for(;t!==null;)Ry(t.alternate,t),t=t.return;Be=null}}function xs(t,a){var s=t.timeoutHandle;s!==-1&&(t.timeoutHandle=-1,XE(s)),s=t.cancelPendingCommit,s!==null&&(t.cancelPendingCommit=null,s()),nh(),ht=t,Be=s=La(t.current,null),$e=a,at=0,Tn=null,wr=!1,gs=Na(t,a),Kf=!1,vs=Un=Xf=yi=Sr=Ct=0,pn=Zo=null,Zf=!1,(a&8)!==0&&(a|=a&32);var o=t.entangledLanes;if(o!==0)for(t=t.entanglements,o&=a;0<o;){var d=31-yt(o),m=1<<d;a|=t[d],o&=~m}return Ya=a,rc(),s}function Yy(t,a){Ne=null,L.H=Cc,a===jo||a===hc?(a=uv(),at=3):a===ov?(a=uv(),at=4):at=a===dy?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Tn=a,Be===null&&(Ct=1,Ac(t,jn(a,t.current)))}function Qy(){var t=L.H;return L.H=Cc,t===null?Cc:t}function Ky(){var t=L.A;return L.A=DE,t}function ah(){Ct=4,wr||($e&4194048)!==$e&&Bn.current!==null||(gs=!0),(Sr&134217727)===0&&(yi&134217727)===0||ht===null||Rr(ht,$e,Un,!1)}function rh(t,a,s){var o=nt;nt|=2;var d=Qy(),m=Ky();(ht!==t||$e!==a)&&(zc=null,xs(t,a)),a=!1;var E=Ct;e:do try{if(at!==0&&Be!==null){var T=Be,j=Tn;switch(at){case 8:nh(),E=6;break e;case 3:case 2:case 9:case 6:Bn.current===null&&(a=!0);var I=at;if(at=0,Tn=null,ws(t,T,j,I),s&&gs){E=0;break e}break;default:I=at,at=0,Tn=null,ws(t,T,j,I)}}kE(),E=Ct;break}catch(J){Yy(t,J)}while(!0);return a&&t.shellSuspendCounter++,Ua=fi=null,nt=o,L.H=d,L.A=m,Be===null&&(ht=null,$e=0,rc()),E}function kE(){for(;Be!==null;)Xy(Be)}function jE(t,a){var s=nt;nt|=2;var o=Qy(),d=Ky();ht!==t||$e!==a?(zc=null,jc=Fe()+500,xs(t,a)):gs=Na(t,a);e:do try{if(at!==0&&Be!==null){a=Be;var m=Tn;t:switch(at){case 1:at=0,Tn=null,ws(t,a,m,1);break;case 2:case 9:if(lv(m)){at=0,Tn=null,Zy(a);break}a=function(){at!==2&&at!==9||ht!==t||(at=7),va(t)},m.then(a,a);break e;case 3:at=7;break e;case 4:at=5;break e;case 7:lv(m)?(at=0,Tn=null,Zy(a)):(at=0,Tn=null,ws(t,a,m,7));break;case 5:var E=null;switch(Be.tag){case 26:E=Be.memoizedState;case 5:case 27:var T=Be;if(!E||Nb(E)){at=0,Tn=null;var j=T.sibling;if(j!==null)Be=j;else{var I=T.return;I!==null?(Be=I,Pc(I)):Be=null}break t}}at=0,Tn=null,ws(t,a,m,5);break;case 6:at=0,Tn=null,ws(t,a,m,6);break;case 8:nh(),Ct=6;break e;default:throw Error(i(462))}}zE();break}catch(J){Yy(t,J)}while(!0);return Ua=fi=null,L.H=o,L.A=d,nt=s,Be!==null?0:(ht=null,$e=0,rc(),Ct)}function zE(){for(;Be!==null&&!vt();)Xy(Be)}function Xy(t){var a=Cy(t.alternate,t,Ya);t.memoizedProps=t.pendingProps,a===null?Pc(t):Be=a}function Zy(t){var a=t,s=a.alternate;switch(a.tag){case 15:case 0:a=vy(s,a,a.pendingProps,a.type,void 0,$e);break;case 11:a=vy(s,a,a.pendingProps,a.type.render,a.ref,$e);break;case 5:bf(a);default:Ry(s,a),a=Be=Wg(a,Ya),a=Cy(s,a,Ya)}t.memoizedProps=t.pendingProps,a===null?Pc(t):Be=a}function ws(t,a,s,o){Ua=fi=null,bf(a),fs=null,$o=0;var d=a.return;try{if(EE(t,d,a,s,$e)){Ct=1,Ac(t,jn(s,t.current)),Be=null;return}}catch(m){if(d!==null)throw Be=d,m;Ct=1,Ac(t,jn(s,t.current)),Be=null;return}a.flags&32768?(Qe||o===1?t=!0:gs||($e&536870912)!==0?t=!1:(wr=t=!0,(o===2||o===9||o===3||o===6)&&(o=Bn.current,o!==null&&o.tag===13&&(o.flags|=16384))),Wy(a,t)):Pc(a)}function Pc(t){var a=t;do{if((a.flags&32768)!==0){Wy(a,wr);return}t=a.return;var s=TE(a.alternate,a,Ya);if(s!==null){Be=s;return}if(a=a.sibling,a!==null){Be=a;return}Be=a=t}while(a!==null);Ct===0&&(Ct=5)}function Wy(t,a){do{var s=_E(t.alternate,t);if(s!==null){s.flags&=32767,Be=s;return}if(s=t.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!a&&(t=t.sibling,t!==null)){Be=t;return}Be=t=s}while(t!==null);Ct=6,Be=null}function Jy(t,a,s,o,d,m,E,T,j){t.cancelPendingCommit=null;do Bc();while(It!==0);if((nt&6)!==0)throw Error(i(327));if(a!==null){if(a===t.current)throw Error(i(177));if(m=a.lanes|a.childLanes,m|=Yd,Pt(t,s,m,E,T,j),t===ht&&(Be=ht=null,$e=0),ys=a,Er=t,bs=s,Jf=m,eh=d,$y=o,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,UE(Le,function(){return rb(),null})):(t.callbackNode=null,t.callbackPriority=0),o=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||o){o=L.T,L.T=null,d=Q.p,Q.p=2,E=nt,nt|=4;try{AE(t,a,s)}finally{nt=E,Q.p=d,L.T=o}}It=1,eb(),tb(),nb()}}function eb(){if(It===1){It=0;var t=Er,a=ys,s=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||s){s=L.T,L.T=null;var o=Q.p;Q.p=2;var d=nt;nt|=4;try{Ly(a,t);var m=gh,E=qg(t.containerInfo),T=m.focusedElem,j=m.selectionRange;if(E!==T&&T&&T.ownerDocument&&Vg(T.ownerDocument.documentElement,T)){if(j!==null&&qd(T)){var I=j.start,J=j.end;if(J===void 0&&(J=I),"selectionStart"in T)T.selectionStart=I,T.selectionEnd=Math.min(J,T.value.length);else{var ie=T.ownerDocument||document,G=ie&&ie.defaultView||window;if(G.getSelection){var K=G.getSelection(),Te=T.textContent.length,Ee=Math.min(j.start,Te),ct=j.end===void 0?Ee:Math.min(j.end,Te);!K.extend&&Ee>ct&&(E=ct,ct=Ee,Ee=E);var V=Hg(T,Ee),H=Hg(T,ct);if(V&&H&&(K.rangeCount!==1||K.anchorNode!==V.node||K.anchorOffset!==V.offset||K.focusNode!==H.node||K.focusOffset!==H.offset)){var F=ie.createRange();F.setStart(V.node,V.offset),K.removeAllRanges(),Ee>ct?(K.addRange(F),K.extend(H.node,H.offset)):(F.setEnd(H.node,H.offset),K.addRange(F))}}}}for(ie=[],K=T;K=K.parentNode;)K.nodeType===1&&ie.push({element:K,left:K.scrollLeft,top:K.scrollTop});for(typeof T.focus=="function"&&T.focus(),T=0;T<ie.length;T++){var ne=ie[T];ne.element.scrollLeft=ne.left,ne.element.scrollTop=ne.top}}Xc=!!mh,gh=mh=null}finally{nt=d,Q.p=o,L.T=s}}t.current=a,It=2}}function tb(){if(It===2){It=0;var t=Er,a=ys,s=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||s){s=L.T,L.T=null;var o=Q.p;Q.p=2;var d=nt;nt|=4;try{Ny(t,a.alternate,a)}finally{nt=d,Q.p=o,L.T=s}}It=3}}function nb(){if(It===4||It===3){It=0,it();var t=Er,a=ys,s=bs,o=$y;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?It=5:(It=0,ys=Er=null,ab(t,t.pendingLanes));var d=t.pendingLanes;if(d===0&&(Cr=null),Ye(s),a=a.stateNode,wt&&typeof wt.onCommitFiberRoot=="function")try{wt.onCommitFiberRoot(cn,a,void 0,(a.current.flags&128)===128)}catch{}if(o!==null){a=L.T,d=Q.p,Q.p=2,L.T=null;try{for(var m=t.onRecoverableError,E=0;E<o.length;E++){var T=o[E];m(T.value,{componentStack:T.stack})}}finally{L.T=a,Q.p=d}}(bs&3)!==0&&Bc(),va(t),d=t.pendingLanes,(s&4194090)!==0&&(d&42)!==0?t===th?Wo++:(Wo=0,th=t):Wo=0,Jo(0)}}function ab(t,a){(t.pooledCacheLanes&=a)===0&&(a=t.pooledCache,a!=null&&(t.pooledCache=null,No(a)))}function Bc(t){return eb(),tb(),nb(),rb()}function rb(){if(It!==5)return!1;var t=Er,a=Jf;Jf=0;var s=Ye(bs),o=L.T,d=Q.p;try{Q.p=32>s?32:s,L.T=null,s=eh,eh=null;var m=Er,E=bs;if(It=0,ys=Er=null,bs=0,(nt&6)!==0)throw Error(i(331));var T=nt;if(nt|=4,Vy(m.current),By(m,m.current,E,s),nt=T,Jo(0,!1),wt&&typeof wt.onPostCommitFiberRoot=="function")try{wt.onPostCommitFiberRoot(cn,m)}catch{}return!0}finally{Q.p=d,L.T=o,ab(t,a)}}function ib(t,a,s){a=jn(s,a),a=kf(t.stateNode,a,2),t=pr(t,a,2),t!==null&&(pt(t,2),va(t))}function ut(t,a,s){if(t.tag===3)ib(t,t,s);else for(;a!==null;){if(a.tag===3){ib(a,t,s);break}else if(a.tag===1){var o=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Cr===null||!Cr.has(o))){t=jn(s,t),s=cy(2),o=pr(a,s,2),o!==null&&(uy(s,o,a,t),pt(o,2),va(o));break}}a=a.return}}function ih(t,a,s){var o=t.pingCache;if(o===null){o=t.pingCache=new OE;var d=new Set;o.set(a,d)}else d=o.get(a),d===void 0&&(d=new Set,o.set(a,d));d.has(s)||(Kf=!0,d.add(s),t=LE.bind(null,t,a,s),a.then(t,t))}function LE(t,a,s){var o=t.pingCache;o!==null&&o.delete(a),t.pingedLanes|=t.suspendedLanes&s,t.warmLanes&=~s,ht===t&&($e&s)===s&&(Ct===4||Ct===3&&($e&62914560)===$e&&300>Fe()-Wf?(nt&2)===0&&xs(t,0):Xf|=s,vs===$e&&(vs=0)),va(t)}function sb(t,a){a===0&&(a=qi()),t=ns(t,a),t!==null&&(pt(t,a),va(t))}function PE(t){var a=t.memoizedState,s=0;a!==null&&(s=a.retryLane),sb(t,s)}function BE(t,a){var s=0;switch(t.tag){case 13:var o=t.stateNode,d=t.memoizedState;d!==null&&(s=d.retryLane);break;case 19:o=t.stateNode;break;case 22:o=t.stateNode._retryCache;break;default:throw Error(i(314))}o!==null&&o.delete(a),sb(t,s)}function UE(t,a){return ze(t,a)}var Uc=null,Ss=null,sh=!1,Hc=!1,oh=!1,bi=0;function va(t){t!==Ss&&t.next===null&&(Ss===null?Uc=Ss=t:Ss=Ss.next=t),Hc=!0,sh||(sh=!0,VE())}function Jo(t,a){if(!oh&&Hc){oh=!0;do for(var s=!1,o=Uc;o!==null;){if(t!==0){var d=o.pendingLanes;if(d===0)var m=0;else{var E=o.suspendedLanes,T=o.pingedLanes;m=(1<<31-yt(42|t)+1)-1,m&=d&~(E&~T),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(s=!0,ub(o,m))}else m=$e,m=fa(o,o===ht?m:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(m&3)===0||Na(o,m)||(s=!0,ub(o,m));o=o.next}while(s);oh=!1}}function HE(){ob()}function ob(){Hc=sh=!1;var t=0;bi!==0&&(KE()&&(t=bi),bi=0);for(var a=Fe(),s=null,o=Uc;o!==null;){var d=o.next,m=lb(o,a);m===0?(o.next=null,s===null?Uc=d:s.next=d,d===null&&(Ss=s)):(s=o,(t!==0||(m&3)!==0)&&(Hc=!0)),o=d}Jo(t)}function lb(t,a){for(var s=t.suspendedLanes,o=t.pingedLanes,d=t.expirationTimes,m=t.pendingLanes&-62914561;0<m;){var E=31-yt(m),T=1<<E,j=d[E];j===-1?((T&s)===0||(T&o)!==0)&&(d[E]=lr(T,a)):j<=a&&(t.expiredLanes|=T),m&=~T}if(a=ht,s=$e,s=fa(t,t===a?s:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),o=t.callbackNode,s===0||t===a&&(at===2||at===9)||t.cancelPendingCommit!==null)return o!==null&&o!==null&&He(o),t.callbackNode=null,t.callbackPriority=0;if((s&3)===0||Na(t,s)){if(a=s&-s,a===t.callbackPriority)return a;switch(o!==null&&He(o),Ye(s)){case 2:case 8:s=Qt;break;case 32:s=Le;break;case 268435456:s=Kt;break;default:s=Le}return o=cb.bind(null,t),s=ze(s,o),t.callbackPriority=a,t.callbackNode=s,a}return o!==null&&o!==null&&He(o),t.callbackPriority=2,t.callbackNode=null,2}function cb(t,a){if(It!==0&&It!==5)return t.callbackNode=null,t.callbackPriority=0,null;var s=t.callbackNode;if(Bc()&&t.callbackNode!==s)return null;var o=$e;return o=fa(t,t===ht?o:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),o===0?null:(Iy(t,o,a),lb(t,Fe()),t.callbackNode!=null&&t.callbackNode===s?cb.bind(null,t):null)}function ub(t,a){if(Bc())return null;Iy(t,a,!0)}function VE(){ZE(function(){(nt&6)!==0?ze(mt,HE):ob()})}function lh(){return bi===0&&(bi=wn()),bi}function db(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Zl(""+t)}function fb(t,a){var s=a.ownerDocument.createElement("input");return s.name=a.name,s.value=a.value,t.id&&s.setAttribute("form",t.id),a.parentNode.insertBefore(s,a),t=new FormData(t),s.parentNode.removeChild(s),t}function qE(t,a,s,o,d){if(a==="submit"&&s&&s.stateNode===d){var m=db((d[Pe]||null).action),E=o.submitter;E&&(a=(a=E[Pe]||null)?db(a.formAction):E.getAttribute("formAction"),a!==null&&(m=a,E=null));var T=new tc("action","action",null,o,d);t.push({event:T,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(bi!==0){var j=E?fb(d,E):new FormData(d);Af(s,{pending:!0,data:j,method:d.method,action:m},null,j)}}else typeof m=="function"&&(T.preventDefault(),j=E?fb(d,E):new FormData(d),Af(s,{pending:!0,data:j,method:d.method,action:m},m,j))},currentTarget:d}]})}}for(var ch=0;ch<Gd.length;ch++){var uh=Gd[ch],$E=uh.toLowerCase(),FE=uh[0].toUpperCase()+uh.slice(1);Zn($E,"on"+FE)}Zn(Ig,"onAnimationEnd"),Zn(Gg,"onAnimationIteration"),Zn(Yg,"onAnimationStart"),Zn("dblclick","onDoubleClick"),Zn("focusin","onFocus"),Zn("focusout","onBlur"),Zn(oE,"onTransitionRun"),Zn(lE,"onTransitionStart"),Zn(cE,"onTransitionCancel"),Zn(Qg,"onTransitionEnd"),Gi("onMouseEnter",["mouseout","mouseover"]),Gi("onMouseLeave",["mouseout","mouseover"]),Gi("onPointerEnter",["pointerout","pointerover"]),Gi("onPointerLeave",["pointerout","pointerover"]),ai("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ai("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ai("onBeforeInput",["compositionend","keypress","textInput","paste"]),ai("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ai("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ai("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var el="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),IE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(el));function hb(t,a){a=(a&4)!==0;for(var s=0;s<t.length;s++){var o=t[s],d=o.event;o=o.listeners;e:{var m=void 0;if(a)for(var E=o.length-1;0<=E;E--){var T=o[E],j=T.instance,I=T.currentTarget;if(T=T.listener,j!==m&&d.isPropagationStopped())break e;m=T,d.currentTarget=I;try{m(d)}catch(J){_c(J)}d.currentTarget=null,m=j}else for(E=0;E<o.length;E++){if(T=o[E],j=T.instance,I=T.currentTarget,T=T.listener,j!==m&&d.isPropagationStopped())break e;m=T,d.currentTarget=I;try{m(d)}catch(J){_c(J)}d.currentTarget=null,m=j}}}}function Ue(t,a){var s=a[On];s===void 0&&(s=a[On]=new Set);var o=t+"__bubble";s.has(o)||(pb(a,t,2,!1),s.add(o))}function dh(t,a,s){var o=0;a&&(o|=4),pb(s,t,o,a)}var Vc="_reactListening"+Math.random().toString(36).slice(2);function fh(t){if(!t[Vc]){t[Vc]=!0,og.forEach(function(s){s!=="selectionchange"&&(IE.has(s)||dh(s,!1,t),dh(s,!0,t))});var a=t.nodeType===9?t:t.ownerDocument;a===null||a[Vc]||(a[Vc]=!0,dh("selectionchange",!1,a))}}function pb(t,a,s,o){switch(Bb(a)){case 2:var d=yR;break;case 8:d=bR;break;default:d=Th}s=d.bind(null,a,s,t),d=void 0,!kd||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(d=!0),o?d!==void 0?t.addEventListener(a,s,{capture:!0,passive:d}):t.addEventListener(a,s,!0):d!==void 0?t.addEventListener(a,s,{passive:d}):t.addEventListener(a,s,!1)}function hh(t,a,s,o,d){var m=o;if((a&1)===0&&(a&2)===0&&o!==null)e:for(;;){if(o===null)return;var E=o.tag;if(E===3||E===4){var T=o.stateNode.containerInfo;if(T===d)break;if(E===4)for(E=o.return;E!==null;){var j=E.tag;if((j===3||j===4)&&E.stateNode.containerInfo===d)return;E=E.return}for(;T!==null;){if(E=$i(T),E===null)return;if(j=E.tag,j===5||j===6||j===26||j===27){o=m=E;continue e}T=T.parentNode}}o=o.return}wg(function(){var I=m,J=Od(s),ie=[];e:{var G=Kg.get(t);if(G!==void 0){var K=tc,Te=t;switch(t){case"keypress":if(Jl(s)===0)break e;case"keydown":case"keyup":K=UC;break;case"focusin":Te="focus",K=Pd;break;case"focusout":Te="blur",K=Pd;break;case"beforeblur":case"afterblur":K=Pd;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":K=Eg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":K=_C;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":K=qC;break;case Ig:case Gg:case Yg:K=DC;break;case Qg:K=FC;break;case"scroll":case"scrollend":K=RC;break;case"wheel":K=GC;break;case"copy":case"cut":case"paste":K=NC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":K=Tg;break;case"toggle":case"beforetoggle":K=QC}var Ee=(a&4)!==0,ct=!Ee&&(t==="scroll"||t==="scrollend"),V=Ee?G!==null?G+"Capture":null:G;Ee=[];for(var H=I,F;H!==null;){var ne=H;if(F=ne.stateNode,ne=ne.tag,ne!==5&&ne!==26&&ne!==27||F===null||V===null||(ne=bo(H,V),ne!=null&&Ee.push(tl(H,ne,F))),ct)break;H=H.return}0<Ee.length&&(G=new K(G,Te,null,s,J),ie.push({event:G,listeners:Ee}))}}if((a&7)===0){e:{if(G=t==="mouseover"||t==="pointerover",K=t==="mouseout"||t==="pointerout",G&&s!==Dd&&(Te=s.relatedTarget||s.fromElement)&&($i(Te)||Te[st]))break e;if((K||G)&&(G=J.window===J?J:(G=J.ownerDocument)?G.defaultView||G.parentWindow:window,K?(Te=s.relatedTarget||s.toElement,K=I,Te=Te?$i(Te):null,Te!==null&&(ct=c(Te),Ee=Te.tag,Te!==ct||Ee!==5&&Ee!==27&&Ee!==6)&&(Te=null)):(K=null,Te=I),K!==Te)){if(Ee=Eg,ne="onMouseLeave",V="onMouseEnter",H="mouse",(t==="pointerout"||t==="pointerover")&&(Ee=Tg,ne="onPointerLeave",V="onPointerEnter",H="pointer"),ct=K==null?G:yo(K),F=Te==null?G:yo(Te),G=new Ee(ne,H+"leave",K,s,J),G.target=ct,G.relatedTarget=F,ne=null,$i(J)===I&&(Ee=new Ee(V,H+"enter",Te,s,J),Ee.target=F,Ee.relatedTarget=ct,ne=Ee),ct=ne,K&&Te)t:{for(Ee=K,V=Te,H=0,F=Ee;F;F=Cs(F))H++;for(F=0,ne=V;ne;ne=Cs(ne))F++;for(;0<H-F;)Ee=Cs(Ee),H--;for(;0<F-H;)V=Cs(V),F--;for(;H--;){if(Ee===V||V!==null&&Ee===V.alternate)break t;Ee=Cs(Ee),V=Cs(V)}Ee=null}else Ee=null;K!==null&&mb(ie,G,K,Ee,!1),Te!==null&&ct!==null&&mb(ie,ct,Te,Ee,!0)}}e:{if(G=I?yo(I):window,K=G.nodeName&&G.nodeName.toLowerCase(),K==="select"||K==="input"&&G.type==="file")var ve=jg;else if(Ng(G))if(zg)ve=rE;else{ve=nE;var je=tE}else K=G.nodeName,!K||K.toLowerCase()!=="input"||G.type!=="checkbox"&&G.type!=="radio"?I&&Md(I.elementType)&&(ve=jg):ve=aE;if(ve&&(ve=ve(t,I))){kg(ie,ve,s,J);break e}je&&je(t,G,I),t==="focusout"&&I&&G.type==="number"&&I.memoizedProps.value!=null&&Ad(G,"number",G.value)}switch(je=I?yo(I):window,t){case"focusin":(Ng(je)||je.contentEditable==="true")&&(Ji=je,$d=I,_o=null);break;case"focusout":_o=$d=Ji=null;break;case"mousedown":Fd=!0;break;case"contextmenu":case"mouseup":case"dragend":Fd=!1,$g(ie,s,J);break;case"selectionchange":if(sE)break;case"keydown":case"keyup":$g(ie,s,J)}var Se;if(Ud)e:{switch(t){case"compositionstart":var Re="onCompositionStart";break e;case"compositionend":Re="onCompositionEnd";break e;case"compositionupdate":Re="onCompositionUpdate";break e}Re=void 0}else Wi?Dg(t,s)&&(Re="onCompositionEnd"):t==="keydown"&&s.keyCode===229&&(Re="onCompositionStart");Re&&(_g&&s.locale!=="ko"&&(Wi||Re!=="onCompositionStart"?Re==="onCompositionEnd"&&Wi&&(Se=Sg()):(ur=J,jd="value"in ur?ur.value:ur.textContent,Wi=!0)),je=qc(I,Re),0<je.length&&(Re=new Rg(Re,t,null,s,J),ie.push({event:Re,listeners:je}),Se?Re.data=Se:(Se=Og(s),Se!==null&&(Re.data=Se)))),(Se=XC?ZC(t,s):WC(t,s))&&(Re=qc(I,"onBeforeInput"),0<Re.length&&(je=new Rg("onBeforeInput","beforeinput",null,s,J),ie.push({event:je,listeners:Re}),je.data=Se)),qE(ie,t,I,s,J)}hb(ie,a)})}function tl(t,a,s){return{instance:t,listener:a,currentTarget:s}}function qc(t,a){for(var s=a+"Capture",o=[];t!==null;){var d=t,m=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||m===null||(d=bo(t,s),d!=null&&o.unshift(tl(t,d,m)),d=bo(t,a),d!=null&&o.push(tl(t,d,m))),t.tag===3)return o;t=t.return}return[]}function Cs(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function mb(t,a,s,o,d){for(var m=a._reactName,E=[];s!==null&&s!==o;){var T=s,j=T.alternate,I=T.stateNode;if(T=T.tag,j!==null&&j===o)break;T!==5&&T!==26&&T!==27||I===null||(j=I,d?(I=bo(s,m),I!=null&&E.unshift(tl(s,I,j))):d||(I=bo(s,m),I!=null&&E.push(tl(s,I,j)))),s=s.return}E.length!==0&&t.push({event:a,listeners:E})}var GE=/\r\n?/g,YE=/\u0000|\uFFFD/g;function gb(t){return(typeof t=="string"?t:""+t).replace(GE,`
67
+ `).replace(YE,"")}function vb(t,a){return a=gb(a),gb(t)===a}function $c(){}function lt(t,a,s,o,d,m){switch(s){case"children":typeof o=="string"?a==="body"||a==="textarea"&&o===""||Ki(t,o):(typeof o=="number"||typeof o=="bigint")&&a!=="body"&&Ki(t,""+o);break;case"className":Ql(t,"class",o);break;case"tabIndex":Ql(t,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Ql(t,s,o);break;case"style":bg(t,o,m);break;case"data":if(a!=="object"){Ql(t,"data",o);break}case"src":case"href":if(o===""&&(a!=="a"||s!=="href")){t.removeAttribute(s);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){t.removeAttribute(s);break}o=Zl(""+o),t.setAttribute(s,o);break;case"action":case"formAction":if(typeof o=="function"){t.setAttribute(s,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof m=="function"&&(s==="formAction"?(a!=="input"&&lt(t,a,"name",d.name,d,null),lt(t,a,"formEncType",d.formEncType,d,null),lt(t,a,"formMethod",d.formMethod,d,null),lt(t,a,"formTarget",d.formTarget,d,null)):(lt(t,a,"encType",d.encType,d,null),lt(t,a,"method",d.method,d,null),lt(t,a,"target",d.target,d,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){t.removeAttribute(s);break}o=Zl(""+o),t.setAttribute(s,o);break;case"onClick":o!=null&&(t.onclick=$c);break;case"onScroll":o!=null&&Ue("scroll",t);break;case"onScrollEnd":o!=null&&Ue("scrollend",t);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(s=o.__html,s!=null){if(d.children!=null)throw Error(i(60));t.innerHTML=s}}break;case"multiple":t.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":t.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){t.removeAttribute("xlink:href");break}s=Zl(""+o),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(s,""+o):t.removeAttribute(s);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(s,""):t.removeAttribute(s);break;case"capture":case"download":o===!0?t.setAttribute(s,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(s,o):t.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?t.setAttribute(s,o):t.removeAttribute(s);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?t.removeAttribute(s):t.setAttribute(s,o);break;case"popover":Ue("beforetoggle",t),Ue("toggle",t),Yl(t,"popover",o);break;case"xlinkActuate":ja(t,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":ja(t,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":ja(t,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":ja(t,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":ja(t,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":ja(t,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":ja(t,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":ja(t,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":ja(t,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":Yl(t,"is",o);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=CC.get(s)||s,Yl(t,s,o))}}function ph(t,a,s,o,d,m){switch(s){case"style":bg(t,o,m);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(s=o.__html,s!=null){if(d.children!=null)throw Error(i(60));t.innerHTML=s}}break;case"children":typeof o=="string"?Ki(t,o):(typeof o=="number"||typeof o=="bigint")&&Ki(t,""+o);break;case"onScroll":o!=null&&Ue("scroll",t);break;case"onScrollEnd":o!=null&&Ue("scrollend",t);break;case"onClick":o!=null&&(t.onclick=$c);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!lg.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(d=s.endsWith("Capture"),a=s.slice(2,d?s.length-7:void 0),m=t[Pe]||null,m=m!=null?m[s]:null,typeof m=="function"&&t.removeEventListener(a,m,d),typeof o=="function")){typeof m!="function"&&m!==null&&(s in t?t[s]=null:t.hasAttribute(s)&&t.removeAttribute(s)),t.addEventListener(a,o,d);break e}s in t?t[s]=o:o===!0?t.setAttribute(s,""):Yl(t,s,o)}}}function Gt(t,a,s){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ue("error",t),Ue("load",t);var o=!1,d=!1,m;for(m in s)if(s.hasOwnProperty(m)){var E=s[m];if(E!=null)switch(m){case"src":o=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:lt(t,a,m,E,s,null)}}d&&lt(t,a,"srcSet",s.srcSet,s,null),o&&lt(t,a,"src",s.src,s,null);return;case"input":Ue("invalid",t);var T=m=E=d=null,j=null,I=null;for(o in s)if(s.hasOwnProperty(o)){var J=s[o];if(J!=null)switch(o){case"name":d=J;break;case"type":E=J;break;case"checked":j=J;break;case"defaultChecked":I=J;break;case"value":m=J;break;case"defaultValue":T=J;break;case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(i(137,a));break;default:lt(t,a,o,J,s,null)}}mg(t,m,T,j,I,E,d,!1),Kl(t);return;case"select":Ue("invalid",t),o=E=m=null;for(d in s)if(s.hasOwnProperty(d)&&(T=s[d],T!=null))switch(d){case"value":m=T;break;case"defaultValue":E=T;break;case"multiple":o=T;default:lt(t,a,d,T,s,null)}a=m,s=E,t.multiple=!!o,a!=null?Qi(t,!!o,a,!1):s!=null&&Qi(t,!!o,s,!0);return;case"textarea":Ue("invalid",t),m=d=o=null;for(E in s)if(s.hasOwnProperty(E)&&(T=s[E],T!=null))switch(E){case"value":o=T;break;case"defaultValue":d=T;break;case"children":m=T;break;case"dangerouslySetInnerHTML":if(T!=null)throw Error(i(91));break;default:lt(t,a,E,T,s,null)}vg(t,o,d,m),Kl(t);return;case"option":for(j in s)if(s.hasOwnProperty(j)&&(o=s[j],o!=null))switch(j){case"selected":t.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:lt(t,a,j,o,s,null)}return;case"dialog":Ue("beforetoggle",t),Ue("toggle",t),Ue("cancel",t),Ue("close",t);break;case"iframe":case"object":Ue("load",t);break;case"video":case"audio":for(o=0;o<el.length;o++)Ue(el[o],t);break;case"image":Ue("error",t),Ue("load",t);break;case"details":Ue("toggle",t);break;case"embed":case"source":case"link":Ue("error",t),Ue("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(I in s)if(s.hasOwnProperty(I)&&(o=s[I],o!=null))switch(I){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:lt(t,a,I,o,s,null)}return;default:if(Md(a)){for(J in s)s.hasOwnProperty(J)&&(o=s[J],o!==void 0&&ph(t,a,J,o,s,void 0));return}}for(T in s)s.hasOwnProperty(T)&&(o=s[T],o!=null&&lt(t,a,T,o,s,null))}function QE(t,a,s,o){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,m=null,E=null,T=null,j=null,I=null,J=null;for(K in s){var ie=s[K];if(s.hasOwnProperty(K)&&ie!=null)switch(K){case"checked":break;case"value":break;case"defaultValue":j=ie;default:o.hasOwnProperty(K)||lt(t,a,K,null,o,ie)}}for(var G in o){var K=o[G];if(ie=s[G],o.hasOwnProperty(G)&&(K!=null||ie!=null))switch(G){case"type":m=K;break;case"name":d=K;break;case"checked":I=K;break;case"defaultChecked":J=K;break;case"value":E=K;break;case"defaultValue":T=K;break;case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(i(137,a));break;default:K!==ie&&lt(t,a,G,K,o,ie)}}_d(t,E,T,j,I,J,m,d);return;case"select":K=E=T=G=null;for(m in s)if(j=s[m],s.hasOwnProperty(m)&&j!=null)switch(m){case"value":break;case"multiple":K=j;default:o.hasOwnProperty(m)||lt(t,a,m,null,o,j)}for(d in o)if(m=o[d],j=s[d],o.hasOwnProperty(d)&&(m!=null||j!=null))switch(d){case"value":G=m;break;case"defaultValue":T=m;break;case"multiple":E=m;default:m!==j&&lt(t,a,d,m,o,j)}a=T,s=E,o=K,G!=null?Qi(t,!!s,G,!1):!!o!=!!s&&(a!=null?Qi(t,!!s,a,!0):Qi(t,!!s,s?[]:"",!1));return;case"textarea":K=G=null;for(T in s)if(d=s[T],s.hasOwnProperty(T)&&d!=null&&!o.hasOwnProperty(T))switch(T){case"value":break;case"children":break;default:lt(t,a,T,null,o,d)}for(E in o)if(d=o[E],m=s[E],o.hasOwnProperty(E)&&(d!=null||m!=null))switch(E){case"value":G=d;break;case"defaultValue":K=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(i(91));break;default:d!==m&&lt(t,a,E,d,o,m)}gg(t,G,K);return;case"option":for(var Te in s)if(G=s[Te],s.hasOwnProperty(Te)&&G!=null&&!o.hasOwnProperty(Te))switch(Te){case"selected":t.selected=!1;break;default:lt(t,a,Te,null,o,G)}for(j in o)if(G=o[j],K=s[j],o.hasOwnProperty(j)&&G!==K&&(G!=null||K!=null))switch(j){case"selected":t.selected=G&&typeof G!="function"&&typeof G!="symbol";break;default:lt(t,a,j,G,o,K)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ee in s)G=s[Ee],s.hasOwnProperty(Ee)&&G!=null&&!o.hasOwnProperty(Ee)&&lt(t,a,Ee,null,o,G);for(I in o)if(G=o[I],K=s[I],o.hasOwnProperty(I)&&G!==K&&(G!=null||K!=null))switch(I){case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(i(137,a));break;default:lt(t,a,I,G,o,K)}return;default:if(Md(a)){for(var ct in s)G=s[ct],s.hasOwnProperty(ct)&&G!==void 0&&!o.hasOwnProperty(ct)&&ph(t,a,ct,void 0,o,G);for(J in o)G=o[J],K=s[J],!o.hasOwnProperty(J)||G===K||G===void 0&&K===void 0||ph(t,a,J,G,o,K);return}}for(var V in s)G=s[V],s.hasOwnProperty(V)&&G!=null&&!o.hasOwnProperty(V)&&lt(t,a,V,null,o,G);for(ie in o)G=o[ie],K=s[ie],!o.hasOwnProperty(ie)||G===K||G==null&&K==null||lt(t,a,ie,G,o,K)}var mh=null,gh=null;function Fc(t){return t.nodeType===9?t:t.ownerDocument}function yb(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function bb(t,a){if(t===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&a==="foreignObject"?0:t}function vh(t,a){return t==="textarea"||t==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var yh=null;function KE(){var t=window.event;return t&&t.type==="popstate"?t===yh?!1:(yh=t,!0):(yh=null,!1)}var xb=typeof setTimeout=="function"?setTimeout:void 0,XE=typeof clearTimeout=="function"?clearTimeout:void 0,wb=typeof Promise=="function"?Promise:void 0,ZE=typeof queueMicrotask=="function"?queueMicrotask:typeof wb<"u"?function(t){return wb.resolve(null).then(t).catch(WE)}:xb;function WE(t){setTimeout(function(){throw t})}function Tr(t){return t==="head"}function Sb(t,a){var s=a,o=0,d=0;do{var m=s.nextSibling;if(t.removeChild(s),m&&m.nodeType===8)if(s=m.data,s==="/$"){if(0<o&&8>o){s=o;var E=t.ownerDocument;if(s&1&&nl(E.documentElement),s&2&&nl(E.body),s&4)for(s=E.head,nl(s),E=s.firstChild;E;){var T=E.nextSibling,j=E.nodeName;E[ka]||j==="SCRIPT"||j==="STYLE"||j==="LINK"&&E.rel.toLowerCase()==="stylesheet"||s.removeChild(E),E=T}}if(d===0){t.removeChild(m),ul(a);return}d--}else s==="$"||s==="$?"||s==="$!"?d++:o=s.charCodeAt(0)-48;else o=0;s=m}while(s);ul(a)}function bh(t){var a=t.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var s=a;switch(a=a.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":bh(s),Cd(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}t.removeChild(s)}}function JE(t,a,s,o){for(;t.nodeType===1;){var d=s;if(t.nodeName.toLowerCase()!==a.toLowerCase()){if(!o&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(o){if(!t[ka])switch(a){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(m=t.getAttribute("rel"),m==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(m!==d.rel||t.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||t.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||t.getAttribute("title")!==(d.title==null?null:d.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(m=t.getAttribute("src"),(m!==(d.src==null?null:d.src)||t.getAttribute("type")!==(d.type==null?null:d.type)||t.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&m&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(a==="input"&&t.type==="hidden"){var m=d.name==null?null:""+d.name;if(d.type==="hidden"&&t.getAttribute("name")===m)return t}else return t;if(t=Jn(t.nextSibling),t===null)break}return null}function eR(t,a,s){if(a==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!s||(t=Jn(t.nextSibling),t===null))return null;return t}function xh(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function tR(t,a){var s=t.ownerDocument;if(t.data!=="$?"||s.readyState==="complete")a();else{var o=function(){a(),s.removeEventListener("DOMContentLoaded",o)};s.addEventListener("DOMContentLoaded",o),t._reactRetry=o}}function Jn(t){for(;t!=null;t=t.nextSibling){var a=t.nodeType;if(a===1||a===3)break;if(a===8){if(a=t.data,a==="$"||a==="$!"||a==="$?"||a==="F!"||a==="F")break;if(a==="/$")return null}}return t}var wh=null;function Cb(t){t=t.previousSibling;for(var a=0;t;){if(t.nodeType===8){var s=t.data;if(s==="$"||s==="$!"||s==="$?"){if(a===0)return t;a--}else s==="/$"&&a++}t=t.previousSibling}return null}function Eb(t,a,s){switch(a=Fc(s),t){case"html":if(t=a.documentElement,!t)throw Error(i(452));return t;case"head":if(t=a.head,!t)throw Error(i(453));return t;case"body":if(t=a.body,!t)throw Error(i(454));return t;default:throw Error(i(451))}}function nl(t){for(var a=t.attributes;a.length;)t.removeAttributeNode(a[0]);Cd(t)}var Hn=new Map,Rb=new Set;function Ic(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Qa=Q.d;Q.d={f:nR,r:aR,D:rR,C:iR,L:sR,m:oR,X:cR,S:lR,M:uR};function nR(){var t=Qa.f(),a=Lc();return t||a}function aR(t){var a=Fi(t);a!==null&&a.tag===5&&a.type==="form"?Iv(a):Qa.r(t)}var Es=typeof document>"u"?null:document;function Tb(t,a,s){var o=Es;if(o&&typeof a=="string"&&a){var d=kn(a);d='link[rel="'+t+'"][href="'+d+'"]',typeof s=="string"&&(d+='[crossorigin="'+s+'"]'),Rb.has(d)||(Rb.add(d),t={rel:t,crossOrigin:s,href:a},o.querySelector(d)===null&&(a=o.createElement("link"),Gt(a,"link",t),Ut(a),o.head.appendChild(a)))}}function rR(t){Qa.D(t),Tb("dns-prefetch",t,null)}function iR(t,a){Qa.C(t,a),Tb("preconnect",t,a)}function sR(t,a,s){Qa.L(t,a,s);var o=Es;if(o&&t&&a){var d='link[rel="preload"][as="'+kn(a)+'"]';a==="image"&&s&&s.imageSrcSet?(d+='[imagesrcset="'+kn(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(d+='[imagesizes="'+kn(s.imageSizes)+'"]')):d+='[href="'+kn(t)+'"]';var m=d;switch(a){case"style":m=Rs(t);break;case"script":m=Ts(t)}Hn.has(m)||(t=v({rel:"preload",href:a==="image"&&s&&s.imageSrcSet?void 0:t,as:a},s),Hn.set(m,t),o.querySelector(d)!==null||a==="style"&&o.querySelector(al(m))||a==="script"&&o.querySelector(rl(m))||(a=o.createElement("link"),Gt(a,"link",t),Ut(a),o.head.appendChild(a)))}}function oR(t,a){Qa.m(t,a);var s=Es;if(s&&t){var o=a&&typeof a.as=="string"?a.as:"script",d='link[rel="modulepreload"][as="'+kn(o)+'"][href="'+kn(t)+'"]',m=d;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=Ts(t)}if(!Hn.has(m)&&(t=v({rel:"modulepreload",href:t},a),Hn.set(m,t),s.querySelector(d)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(rl(m)))return}o=s.createElement("link"),Gt(o,"link",t),Ut(o),s.head.appendChild(o)}}}function lR(t,a,s){Qa.S(t,a,s);var o=Es;if(o&&t){var d=Ii(o).hoistableStyles,m=Rs(t);a=a||"default";var E=d.get(m);if(!E){var T={loading:0,preload:null};if(E=o.querySelector(al(m)))T.loading=5;else{t=v({rel:"stylesheet",href:t,"data-precedence":a},s),(s=Hn.get(m))&&Sh(t,s);var j=E=o.createElement("link");Ut(j),Gt(j,"link",t),j._p=new Promise(function(I,J){j.onload=I,j.onerror=J}),j.addEventListener("load",function(){T.loading|=1}),j.addEventListener("error",function(){T.loading|=2}),T.loading|=4,Gc(E,a,o)}E={type:"stylesheet",instance:E,count:1,state:T},d.set(m,E)}}}function cR(t,a){Qa.X(t,a);var s=Es;if(s&&t){var o=Ii(s).hoistableScripts,d=Ts(t),m=o.get(d);m||(m=s.querySelector(rl(d)),m||(t=v({src:t,async:!0},a),(a=Hn.get(d))&&Ch(t,a),m=s.createElement("script"),Ut(m),Gt(m,"link",t),s.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},o.set(d,m))}}function uR(t,a){Qa.M(t,a);var s=Es;if(s&&t){var o=Ii(s).hoistableScripts,d=Ts(t),m=o.get(d);m||(m=s.querySelector(rl(d)),m||(t=v({src:t,async:!0,type:"module"},a),(a=Hn.get(d))&&Ch(t,a),m=s.createElement("script"),Ut(m),Gt(m,"link",t),s.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},o.set(d,m))}}function _b(t,a,s,o){var d=(d=ae.current)?Ic(d):null;if(!d)throw Error(i(446));switch(t){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(a=Rs(s.href),s=Ii(d).hoistableStyles,o=s.get(a),o||(o={type:"style",instance:null,count:0,state:null},s.set(a,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){t=Rs(s.href);var m=Ii(d).hoistableStyles,E=m.get(t);if(E||(d=d.ownerDocument||d,E={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(t,E),(m=d.querySelector(al(t)))&&!m._p&&(E.instance=m,E.state.loading=5),Hn.has(t)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},Hn.set(t,s),m||dR(d,t,s,E.state))),a&&o===null)throw Error(i(528,""));return E}if(a&&o!==null)throw Error(i(529,""));return null;case"script":return a=s.async,s=s.src,typeof s=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Ts(s),s=Ii(d).hoistableScripts,o=s.get(a),o||(o={type:"script",instance:null,count:0,state:null},s.set(a,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,t))}}function Rs(t){return'href="'+kn(t)+'"'}function al(t){return'link[rel="stylesheet"]['+t+"]"}function Ab(t){return v({},t,{"data-precedence":t.precedence,precedence:null})}function dR(t,a,s,o){t.querySelector('link[rel="preload"][as="style"]['+a+"]")?o.loading=1:(a=t.createElement("link"),o.preload=a,a.addEventListener("load",function(){return o.loading|=1}),a.addEventListener("error",function(){return o.loading|=2}),Gt(a,"link",s),Ut(a),t.head.appendChild(a))}function Ts(t){return'[src="'+kn(t)+'"]'}function rl(t){return"script[async]"+t}function Mb(t,a,s){if(a.count++,a.instance===null)switch(a.type){case"style":var o=t.querySelector('style[data-href~="'+kn(s.href)+'"]');if(o)return a.instance=o,Ut(o),o;var d=v({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return o=(t.ownerDocument||t).createElement("style"),Ut(o),Gt(o,"style",d),Gc(o,s.precedence,t),a.instance=o;case"stylesheet":d=Rs(s.href);var m=t.querySelector(al(d));if(m)return a.state.loading|=4,a.instance=m,Ut(m),m;o=Ab(s),(d=Hn.get(d))&&Sh(o,d),m=(t.ownerDocument||t).createElement("link"),Ut(m);var E=m;return E._p=new Promise(function(T,j){E.onload=T,E.onerror=j}),Gt(m,"link",o),a.state.loading|=4,Gc(m,s.precedence,t),a.instance=m;case"script":return m=Ts(s.src),(d=t.querySelector(rl(m)))?(a.instance=d,Ut(d),d):(o=s,(d=Hn.get(m))&&(o=v({},s),Ch(o,d)),t=t.ownerDocument||t,d=t.createElement("script"),Ut(d),Gt(d,"link",o),t.head.appendChild(d),a.instance=d);case"void":return null;default:throw Error(i(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(o=a.instance,a.state.loading|=4,Gc(o,s.precedence,t));return a.instance}function Gc(t,a,s){for(var o=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=o.length?o[o.length-1]:null,m=d,E=0;E<o.length;E++){var T=o[E];if(T.dataset.precedence===a)m=T;else if(m!==d)break}m?m.parentNode.insertBefore(t,m.nextSibling):(a=s.nodeType===9?s.head:s,a.insertBefore(t,a.firstChild))}function Sh(t,a){t.crossOrigin==null&&(t.crossOrigin=a.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=a.referrerPolicy),t.title==null&&(t.title=a.title)}function Ch(t,a){t.crossOrigin==null&&(t.crossOrigin=a.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=a.referrerPolicy),t.integrity==null&&(t.integrity=a.integrity)}var Yc=null;function Db(t,a,s){if(Yc===null){var o=new Map,d=Yc=new Map;d.set(s,o)}else d=Yc,o=d.get(s),o||(o=new Map,d.set(s,o));if(o.has(t))return o;for(o.set(t,null),s=s.getElementsByTagName(t),d=0;d<s.length;d++){var m=s[d];if(!(m[ka]||m[Je]||t==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var E=m.getAttribute(a)||"";E=t+E;var T=o.get(E);T?T.push(m):o.set(E,[m])}}return o}function Ob(t,a,s){t=t.ownerDocument||t,t.head.insertBefore(s,a==="title"?t.querySelector("head > title"):null)}function fR(t,a,s){if(s===1||a.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return t=a.disabled,typeof a.precedence=="string"&&t==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function Nb(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var il=null;function hR(){}function pR(t,a,s){if(il===null)throw Error(i(475));var o=il;if(a.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var d=Rs(s.href),m=t.querySelector(al(d));if(m){t=m._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(o.count++,o=Qc.bind(o),t.then(o,o)),a.state.loading|=4,a.instance=m,Ut(m);return}m=t.ownerDocument||t,s=Ab(s),(d=Hn.get(d))&&Sh(s,d),m=m.createElement("link"),Ut(m);var E=m;E._p=new Promise(function(T,j){E.onload=T,E.onerror=j}),Gt(m,"link",s),a.instance=m}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(o.count++,a=Qc.bind(o),t.addEventListener("load",a),t.addEventListener("error",a))}}function mR(){if(il===null)throw Error(i(475));var t=il;return t.stylesheets&&t.count===0&&Eh(t,t.stylesheets),0<t.count?function(a){var s=setTimeout(function(){if(t.stylesheets&&Eh(t,t.stylesheets),t.unsuspend){var o=t.unsuspend;t.unsuspend=null,o()}},6e4);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(s)}}:null}function Qc(){if(this.count--,this.count===0){if(this.stylesheets)Eh(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Kc=null;function Eh(t,a){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Kc=new Map,a.forEach(gR,t),Kc=null,Qc.call(t))}function gR(t,a){if(!(a.state.loading&4)){var s=Kc.get(t);if(s)var o=s.get(null);else{s=new Map,Kc.set(t,s);for(var d=t.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<d.length;m++){var E=d[m];(E.nodeName==="LINK"||E.getAttribute("media")!=="not all")&&(s.set(E.dataset.precedence,E),o=E)}o&&s.set(null,o)}d=a.instance,E=d.getAttribute("data-precedence"),m=s.get(E)||o,m===o&&s.set(null,d),s.set(E,d),this.count++,o=Qc.bind(this),d.addEventListener("load",o),d.addEventListener("error",o),m?m.parentNode.insertBefore(d,m.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(d,t.firstChild)),a.state.loading|=4}}var sl={$$typeof:M,Provider:null,Consumer:null,_currentValue:$,_currentValue2:$,_threadCount:0};function vR(t,a,s,o,d,m,E,T){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ni(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ni(0),this.hiddenUpdates=ni(null),this.identifierPrefix=o,this.onUncaughtError=d,this.onCaughtError=m,this.onRecoverableError=E,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function kb(t,a,s,o,d,m,E,T,j,I,J,ie){return t=new vR(t,a,s,E,T,j,I,ie),a=1,m===!0&&(a|=24),m=Cn(3,null,null,a),t.current=m,m.stateNode=t,a=rf(),a.refCount++,t.pooledCache=a,a.refCount++,m.memoizedState={element:o,isDehydrated:s,cache:a},cf(m),t}function jb(t){return t?(t=as,t):as}function zb(t,a,s,o,d,m){d=jb(d),o.context===null?o.context=d:o.pendingContext=d,o=hr(a),o.payload={element:s},m=m===void 0?null:m,m!==null&&(o.callback=m),s=pr(t,o,a),s!==null&&(An(s,t,a),Lo(s,t,a))}function Lb(t,a){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var s=t.retryLane;t.retryLane=s!==0&&s<a?s:a}}function Rh(t,a){Lb(t,a),(t=t.alternate)&&Lb(t,a)}function Pb(t){if(t.tag===13){var a=ns(t,67108864);a!==null&&An(a,t,67108864),Rh(t,67108864)}}var Xc=!0;function yR(t,a,s,o){var d=L.T;L.T=null;var m=Q.p;try{Q.p=2,Th(t,a,s,o)}finally{Q.p=m,L.T=d}}function bR(t,a,s,o){var d=L.T;L.T=null;var m=Q.p;try{Q.p=8,Th(t,a,s,o)}finally{Q.p=m,L.T=d}}function Th(t,a,s,o){if(Xc){var d=_h(o);if(d===null)hh(t,a,o,Zc,s),Ub(t,o);else if(wR(d,t,a,s,o))o.stopPropagation();else if(Ub(t,o),a&4&&-1<xR.indexOf(t)){for(;d!==null;){var m=Fi(d);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var E=un(m.pendingLanes);if(E!==0){var T=m;for(T.pendingLanes|=2,T.entangledLanes|=2;E;){var j=1<<31-yt(E);T.entanglements[1]|=j,E&=~j}va(m),(nt&6)===0&&(jc=Fe()+500,Jo(0))}}break;case 13:T=ns(m,2),T!==null&&An(T,m,2),Lc(),Rh(m,2)}if(m=_h(o),m===null&&hh(t,a,o,Zc,s),m===d)break;d=m}d!==null&&o.stopPropagation()}else hh(t,a,o,null,s)}}function _h(t){return t=Od(t),Ah(t)}var Zc=null;function Ah(t){if(Zc=null,t=$i(t),t!==null){var a=c(t);if(a===null)t=null;else{var s=a.tag;if(s===13){if(t=u(a),t!==null)return t;t=null}else if(s===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;t=null}else a!==t&&(t=null)}}return Zc=t,null}function Bb(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ln()){case mt:return 2;case Qt:return 8;case Le:case De:return 32;case Kt:return 268435456;default:return 32}default:return 32}}var Mh=!1,_r=null,Ar=null,Mr=null,ol=new Map,ll=new Map,Dr=[],xR="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Ub(t,a){switch(t){case"focusin":case"focusout":_r=null;break;case"dragenter":case"dragleave":Ar=null;break;case"mouseover":case"mouseout":Mr=null;break;case"pointerover":case"pointerout":ol.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":ll.delete(a.pointerId)}}function cl(t,a,s,o,d,m){return t===null||t.nativeEvent!==m?(t={blockedOn:a,domEventName:s,eventSystemFlags:o,nativeEvent:m,targetContainers:[d]},a!==null&&(a=Fi(a),a!==null&&Pb(a)),t):(t.eventSystemFlags|=o,a=t.targetContainers,d!==null&&a.indexOf(d)===-1&&a.push(d),t)}function wR(t,a,s,o,d){switch(a){case"focusin":return _r=cl(_r,t,a,s,o,d),!0;case"dragenter":return Ar=cl(Ar,t,a,s,o,d),!0;case"mouseover":return Mr=cl(Mr,t,a,s,o,d),!0;case"pointerover":var m=d.pointerId;return ol.set(m,cl(ol.get(m)||null,t,a,s,o,d)),!0;case"gotpointercapture":return m=d.pointerId,ll.set(m,cl(ll.get(m)||null,t,a,s,o,d)),!0}return!1}function Hb(t){var a=$i(t.target);if(a!==null){var s=c(a);if(s!==null){if(a=s.tag,a===13){if(a=u(s),a!==null){t.blockedOn=a,ft(t.priority,function(){if(s.tag===13){var o=_n();o=Ie(o);var d=ns(s,o);d!==null&&An(d,s,o),Rh(s,o)}});return}}else if(a===3&&s.stateNode.current.memoizedState.isDehydrated){t.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Wc(t){if(t.blockedOn!==null)return!1;for(var a=t.targetContainers;0<a.length;){var s=_h(t.nativeEvent);if(s===null){s=t.nativeEvent;var o=new s.constructor(s.type,s);Dd=o,s.target.dispatchEvent(o),Dd=null}else return a=Fi(s),a!==null&&Pb(a),t.blockedOn=s,!1;a.shift()}return!0}function Vb(t,a,s){Wc(t)&&s.delete(a)}function SR(){Mh=!1,_r!==null&&Wc(_r)&&(_r=null),Ar!==null&&Wc(Ar)&&(Ar=null),Mr!==null&&Wc(Mr)&&(Mr=null),ol.forEach(Vb),ll.forEach(Vb)}function Jc(t,a){t.blockedOn===a&&(t.blockedOn=null,Mh||(Mh=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,SR)))}var eu=null;function qb(t){eu!==t&&(eu=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){eu===t&&(eu=null);for(var a=0;a<t.length;a+=3){var s=t[a],o=t[a+1],d=t[a+2];if(typeof o!="function"){if(Ah(o||s)===null)continue;break}var m=Fi(s);m!==null&&(t.splice(a,3),a-=3,Af(m,{pending:!0,data:d,method:s.method,action:o},o,d))}}))}function ul(t){function a(j){return Jc(j,t)}_r!==null&&Jc(_r,t),Ar!==null&&Jc(Ar,t),Mr!==null&&Jc(Mr,t),ol.forEach(a),ll.forEach(a);for(var s=0;s<Dr.length;s++){var o=Dr[s];o.blockedOn===t&&(o.blockedOn=null)}for(;0<Dr.length&&(s=Dr[0],s.blockedOn===null);)Hb(s),s.blockedOn===null&&Dr.shift();if(s=(t.ownerDocument||t).$$reactFormReplay,s!=null)for(o=0;o<s.length;o+=3){var d=s[o],m=s[o+1],E=d[Pe]||null;if(typeof m=="function")E||qb(s);else if(E){var T=null;if(m&&m.hasAttribute("formAction")){if(d=m,E=m[Pe]||null)T=E.formAction;else if(Ah(d)!==null)continue}else T=E.action;typeof T=="function"?s[o+1]=T:(s.splice(o,3),o-=3),qb(s)}}}function Dh(t){this._internalRoot=t}tu.prototype.render=Dh.prototype.render=function(t){var a=this._internalRoot;if(a===null)throw Error(i(409));var s=a.current,o=_n();zb(s,o,t,a,null,null)},tu.prototype.unmount=Dh.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var a=t.containerInfo;zb(t.current,2,null,t,null,null),Lc(),a[st]=null}};function tu(t){this._internalRoot=t}tu.prototype.unstable_scheduleHydration=function(t){if(t){var a=Bt();t={blockedOn:null,target:t,priority:a};for(var s=0;s<Dr.length&&a!==0&&a<Dr[s].priority;s++);Dr.splice(s,0,t),s===0&&Hb(t)}};var $b=n.version;if($b!=="19.1.0")throw Error(i(527,$b,"19.1.0"));Q.findDOMNode=function(t){var a=t._reactInternals;if(a===void 0)throw typeof t.render=="function"?Error(i(188)):(t=Object.keys(t).join(","),Error(i(268,t)));return t=p(a),t=t!==null?h(t):null,t=t===null?null:t.stateNode,t};var CR={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var nu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nu.isDisabled&&nu.supportsFiber)try{cn=nu.inject(CR),wt=nu}catch{}}return fl.createRoot=function(t,a){if(!l(t))throw Error(i(299));var s=!1,o="",d=iy,m=sy,E=oy,T=null;return a!=null&&(a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(d=a.onUncaughtError),a.onCaughtError!==void 0&&(m=a.onCaughtError),a.onRecoverableError!==void 0&&(E=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(T=a.unstable_transitionCallbacks)),a=kb(t,1,!1,null,null,s,o,d,m,E,T,null),t[st]=a.current,fh(t),new Dh(a)},fl.hydrateRoot=function(t,a,s){if(!l(t))throw Error(i(299));var o=!1,d="",m=iy,E=sy,T=oy,j=null,I=null;return s!=null&&(s.unstable_strictMode===!0&&(o=!0),s.identifierPrefix!==void 0&&(d=s.identifierPrefix),s.onUncaughtError!==void 0&&(m=s.onUncaughtError),s.onCaughtError!==void 0&&(E=s.onCaughtError),s.onRecoverableError!==void 0&&(T=s.onRecoverableError),s.unstable_transitionCallbacks!==void 0&&(j=s.unstable_transitionCallbacks),s.formState!==void 0&&(I=s.formState)),a=kb(t,1,!0,a,s??null,o,d,m,E,T,j,I),a.context=jb(null),s=a.current,o=_n(),o=Ie(o),d=hr(o),d.callback=null,pr(s,d,o),s=o,a.current.lanes=s,pt(a,s),va(a),t[st]=a.current,fh(t),new tu(a)},fl.version="19.1.0",fl}var R0;function N_(){if(R0)return Qh.exports;R0=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Qh.exports=O_(),Qh.exports}var k_=N_(),j_=(e,n,r,i,l,c,u,f)=>{let p=document.documentElement,h=["light","dark"];function v(x){(Array.isArray(e)?e:[e]).forEach(C=>{let S=C==="class",R=S&&c?l.map(_=>c[_]||_):l;S?(p.classList.remove(...R),p.classList.add(c&&c[x]?c[x]:x)):p.setAttribute(C,x)}),g(x)}function g(x){f&&h.includes(x)&&(p.style.colorScheme=x)}function b(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(i)v(i);else try{let x=localStorage.getItem(n)||r,C=u&&x==="system"?b():x;v(C)}catch{}},z_=w.createContext(void 0),L_={setTheme:e=>{},themes:[]},P_=()=>{var e;return(e=w.useContext(z_))!=null?e:L_};w.memo(({forcedTheme:e,storageKey:n,attribute:r,enableSystem:i,enableColorScheme:l,defaultTheme:c,value:u,themes:f,nonce:p,scriptProps:h})=>{let v=JSON.stringify([r,n,c,e,f,u,i,l]).slice(1,-1);return w.createElement("script",{...h,suppressHydrationWarning:!0,nonce:typeof window>"u"?p:"",dangerouslySetInnerHTML:{__html:`(${j_.toString()})(${v})`}})});function B_(e){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}const U_=e=>{switch(e){case"success":return q_;case"info":return F_;case"warning":return $_;case"error":return I_;default:return null}},H_=Array(12).fill(0),V_=({visible:e,className:n})=>se.createElement("div",{className:["sonner-loading-wrapper",n].filter(Boolean).join(" "),"data-visible":e},se.createElement("div",{className:"sonner-spinner"},H_.map((r,i)=>se.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${i}`})))),q_=se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},se.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"})),$_=se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},se.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"})),F_=se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},se.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"})),I_=se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},se.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"})),G_=se.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"},se.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),se.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Y_=()=>{const[e,n]=se.useState(document.hidden);return se.useEffect(()=>{const r=()=>{n(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e};let Lp=1;class Q_{constructor(){this.subscribe=n=>(this.subscribers.push(n),()=>{const r=this.subscribers.indexOf(n);this.subscribers.splice(r,1)}),this.publish=n=>{this.subscribers.forEach(r=>r(n))},this.addToast=n=>{this.publish(n),this.toasts=[...this.toasts,n]},this.create=n=>{var r;const{message:i,...l}=n,c=typeof(n==null?void 0:n.id)=="number"||((r=n.id)==null?void 0:r.length)>0?n.id:Lp++,u=this.toasts.find(p=>p.id===c),f=n.dismissible===void 0?!0:n.dismissible;return this.dismissedToasts.has(c)&&this.dismissedToasts.delete(c),u?this.toasts=this.toasts.map(p=>p.id===c?(this.publish({...p,...n,id:c,title:i}),{...p,...n,id:c,dismissible:f,title:i}):p):this.addToast({title:i,...l,dismissible:f,id:c}),c},this.dismiss=n=>(n?(this.dismissedToasts.add(n),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:n,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(i=>i({id:r.id,dismiss:!0}))}),n),this.message=(n,r)=>this.create({...r,message:n}),this.error=(n,r)=>this.create({...r,message:n,type:"error"}),this.success=(n,r)=>this.create({...r,type:"success",message:n}),this.info=(n,r)=>this.create({...r,type:"info",message:n}),this.warning=(n,r)=>this.create({...r,type:"warning",message:n}),this.loading=(n,r)=>this.create({...r,type:"loading",message:n}),this.promise=(n,r)=>{if(!r)return;let i;r.loading!==void 0&&(i=this.create({...r,promise:n,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const l=Promise.resolve(n instanceof Function?n():n);let c=i!==void 0,u;const f=l.then(async h=>{if(u=["resolve",h],se.isValidElement(h))c=!1,this.create({id:i,type:"default",message:h});else if(X_(h)&&!h.ok){c=!1;const g=typeof r.error=="function"?await r.error(`HTTP error! status: ${h.status}`):r.error,b=typeof r.description=="function"?await r.description(`HTTP error! status: ${h.status}`):r.description,C=typeof g=="object"&&!se.isValidElement(g)?g:{message:g};this.create({id:i,type:"error",description:b,...C})}else if(h instanceof Error){c=!1;const g=typeof r.error=="function"?await r.error(h):r.error,b=typeof r.description=="function"?await r.description(h):r.description,C=typeof g=="object"&&!se.isValidElement(g)?g:{message:g};this.create({id:i,type:"error",description:b,...C})}else if(r.success!==void 0){c=!1;const g=typeof r.success=="function"?await r.success(h):r.success,b=typeof r.description=="function"?await r.description(h):r.description,C=typeof g=="object"&&!se.isValidElement(g)?g:{message:g};this.create({id:i,type:"success",description:b,...C})}}).catch(async h=>{if(u=["reject",h],r.error!==void 0){c=!1;const v=typeof r.error=="function"?await r.error(h):r.error,g=typeof r.description=="function"?await r.description(h):r.description,x=typeof v=="object"&&!se.isValidElement(v)?v:{message:v};this.create({id:i,type:"error",description:g,...x})}}).finally(()=>{c&&(this.dismiss(i),i=void 0),r.finally==null||r.finally.call(r)}),p=()=>new Promise((h,v)=>f.then(()=>u[0]==="reject"?v(u[1]):h(u[1])).catch(v));return typeof i!="string"&&typeof i!="number"?{unwrap:p}:Object.assign(i,{unwrap:p})},this.custom=(n,r)=>{const i=(r==null?void 0:r.id)||Lp++;return this.create({jsx:n(i),id:i,...r}),i},this.getActiveToasts=()=>this.toasts.filter(n=>!this.dismissedToasts.has(n.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const vn=new Q_,K_=(e,n)=>{const r=(n==null?void 0:n.id)||Lp++;return vn.addToast({title:e,...n,id:r}),r},X_=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Z_=K_,W_=()=>vn.toasts,J_=()=>vn.getActiveToasts();Object.assign(Z_,{success:vn.success,info:vn.info,warning:vn.warning,error:vn.error,custom:vn.custom,message:vn.message,promise:vn.promise,dismiss:vn.dismiss,loading:vn.loading},{getHistory:W_,getToasts:J_});B_("[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 su(e){return e.label!==void 0}const e2=3,t2="24px",n2="16px",T0=4e3,a2=356,r2=14,i2=45,s2=200;function ya(...e){return e.filter(Boolean).join(" ")}function o2(e){const[n,r]=e.split("-"),i=[];return n&&i.push(n),r&&i.push(r),i}const l2=e=>{var n,r,i,l,c,u,f,p,h;const{invert:v,toast:g,unstyled:b,interacting:x,setHeights:C,visibleToasts:S,heights:R,index:_,toasts:A,expanded:M,removeToast:k,defaultRichColors:N,closeButton:z,style:P,cancelButtonStyle:D,actionButtonStyle:B,className:Y="",descriptionClassName:Z="",duration:ee,position:le,gap:he,expandByDefault:ce,classNames:L,icons:Q,closeButtonAriaLabel:$="Close toast"}=e,[de,O]=se.useState(null),[q,W]=se.useState(null),[X,te]=se.useState(!1),[fe,ae]=se.useState(!1),[re,oe]=se.useState(!1),[pe,ue]=se.useState(!1),[xe,me]=se.useState(!1),[ze,He]=se.useState(0),[vt,it]=se.useState(0),Fe=se.useRef(g.duration||ee||T0),ln=se.useRef(null),mt=se.useRef(null),Qt=_===0,Le=_+1<=S,De=g.type,Kt=g.dismissible!==!1,Oa=g.className||"",ti=g.descriptionClassName||"",cn=se.useMemo(()=>R.findIndex(we=>we.toastId===g.id)||0,[R,g.id]),wt=se.useMemo(()=>{var we;return(we=g.closeButton)!=null?we:z},[g.closeButton,z]),Lt=se.useMemo(()=>g.duration||ee||T0,[g.duration,ee]),yt=se.useRef(0),Qn=se.useRef(0),xn=se.useRef(0),Kn=se.useRef(null),[sr,or]=le.split("-"),un=se.useMemo(()=>R.reduce((we,We,Ie)=>Ie>=cn?we:we+We.height,0),[R,cn]),fa=Y_(),Na=g.invert||v,lr=De==="loading";Qn.current=se.useMemo(()=>cn*he+un,[cn,un]),se.useEffect(()=>{Fe.current=Lt},[Lt]),se.useEffect(()=>{te(!0)},[]),se.useEffect(()=>{const we=mt.current;if(we){const We=we.getBoundingClientRect().height;return it(We),C(Ie=>[{toastId:g.id,height:We,position:g.position},...Ie]),()=>C(Ie=>Ie.filter(Ye=>Ye.toastId!==g.id))}},[C,g.id]),se.useLayoutEffect(()=>{if(!X)return;const we=mt.current,We=we.style.height;we.style.height="auto";const Ie=we.getBoundingClientRect().height;we.style.height=We,it(Ie),C(Ye=>Ye.find(ft=>ft.toastId===g.id)?Ye.map(ft=>ft.toastId===g.id?{...ft,height:Ie}:ft):[{toastId:g.id,height:Ie,position:g.position},...Ye])},[X,g.title,g.description,C,g.id,g.jsx,g.action,g.cancel]);const wn=se.useCallback(()=>{ae(!0),He(Qn.current),C(we=>we.filter(We=>We.toastId!==g.id)),setTimeout(()=>{k(g)},s2)},[g,k,C,Qn]);se.useEffect(()=>{if(g.promise&&De==="loading"||g.duration===1/0||g.type==="loading")return;let we;return M||x||fa?(()=>{if(xn.current<yt.current){const Ye=new Date().getTime()-yt.current;Fe.current=Fe.current-Ye}xn.current=new Date().getTime()})():(()=>{Fe.current!==1/0&&(yt.current=new Date().getTime(),we=setTimeout(()=>{g.onAutoClose==null||g.onAutoClose.call(g,g),wn()},Fe.current))})(),()=>clearTimeout(we)},[M,x,g,De,fa,wn]),se.useEffect(()=>{g.delete&&(wn(),g.onDismiss==null||g.onDismiss.call(g,g))},[wn,g.delete]);function qi(){var we;if(Q!=null&&Q.loading){var We;return se.createElement("div",{className:ya(L==null?void 0:L.loader,g==null||(We=g.classNames)==null?void 0:We.loader,"sonner-loader"),"data-visible":De==="loading"},Q.loading)}return se.createElement(V_,{className:ya(L==null?void 0:L.loader,g==null||(we=g.classNames)==null?void 0:we.loader),visible:De==="loading"})}const ni=g.icon||(Q==null?void 0:Q[De])||U_(De);var pt,Pt;return se.createElement("li",{tabIndex:0,ref:mt,className:ya(Y,Oa,L==null?void 0:L.toast,g==null||(n=g.classNames)==null?void 0:n.toast,L==null?void 0:L.default,L==null?void 0:L[De],g==null||(r=g.classNames)==null?void 0:r[De]),"data-sonner-toast":"","data-rich-colors":(pt=g.richColors)!=null?pt:N,"data-styled":!(g.jsx||g.unstyled||b),"data-mounted":X,"data-promise":!!g.promise,"data-swiped":xe,"data-removed":fe,"data-visible":Le,"data-y-position":sr,"data-x-position":or,"data-index":_,"data-front":Qt,"data-swiping":re,"data-dismissible":Kt,"data-type":De,"data-invert":Na,"data-swipe-out":pe,"data-swipe-direction":q,"data-expanded":!!(M||ce&&X),style:{"--index":_,"--toasts-before":_,"--z-index":A.length-_,"--offset":`${fe?ze:Qn.current}px`,"--initial-height":ce?"auto":`${vt}px`,...P,...g.style},onDragEnd:()=>{oe(!1),O(null),Kn.current=null},onPointerDown:we=>{lr||!Kt||(ln.current=new Date,He(Qn.current),we.target.setPointerCapture(we.pointerId),we.target.tagName!=="BUTTON"&&(oe(!0),Kn.current={x:we.clientX,y:we.clientY}))},onPointerUp:()=>{var we,We,Ie;if(pe||!Kt)return;Kn.current=null;const Ye=Number(((we=mt.current)==null?void 0:we.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Bt=Number(((We=mt.current)==null?void 0:We.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ft=new Date().getTime()-((Ie=ln.current)==null?void 0:Ie.getTime()),Oe=de==="x"?Ye:Bt,Je=Math.abs(Oe)/ft;if(Math.abs(Oe)>=i2||Je>.11){He(Qn.current),g.onDismiss==null||g.onDismiss.call(g,g),W(de==="x"?Ye>0?"right":"left":Bt>0?"down":"up"),wn(),ue(!0);return}else{var Pe,st;(Pe=mt.current)==null||Pe.style.setProperty("--swipe-amount-x","0px"),(st=mt.current)==null||st.style.setProperty("--swipe-amount-y","0px")}me(!1),oe(!1),O(null)},onPointerMove:we=>{var We,Ie,Ye;if(!Kn.current||!Kt||((We=window.getSelection())==null?void 0:We.toString().length)>0)return;const ft=we.clientY-Kn.current.y,Oe=we.clientX-Kn.current.x;var Je;const Pe=(Je=e.swipeDirections)!=null?Je:o2(le);!de&&(Math.abs(Oe)>1||Math.abs(ft)>1)&&O(Math.abs(Oe)>Math.abs(ft)?"x":"y");let st={x:0,y:0};const On=tn=>1/(1.5+Math.abs(tn)/20);if(de==="y"){if(Pe.includes("top")||Pe.includes("bottom"))if(Pe.includes("top")&&ft<0||Pe.includes("bottom")&&ft>0)st.y=ft;else{const tn=ft*On(ft);st.y=Math.abs(tn)<Math.abs(ft)?tn:ft}}else if(de==="x"&&(Pe.includes("left")||Pe.includes("right")))if(Pe.includes("left")&&Oe<0||Pe.includes("right")&&Oe>0)st.x=Oe;else{const tn=Oe*On(Oe);st.x=Math.abs(tn)<Math.abs(Oe)?tn:Oe}(Math.abs(st.x)>0||Math.abs(st.y)>0)&&me(!0),(Ie=mt.current)==null||Ie.style.setProperty("--swipe-amount-x",`${st.x}px`),(Ye=mt.current)==null||Ye.style.setProperty("--swipe-amount-y",`${st.y}px`)}},wt&&!g.jsx&&De!=="loading"?se.createElement("button",{"aria-label":$,"data-disabled":lr,"data-close-button":!0,onClick:lr||!Kt?()=>{}:()=>{wn(),g.onDismiss==null||g.onDismiss.call(g,g)},className:ya(L==null?void 0:L.closeButton,g==null||(i=g.classNames)==null?void 0:i.closeButton)},(Pt=Q==null?void 0:Q.close)!=null?Pt:G_):null,(De||g.icon||g.promise)&&g.icon!==null&&((Q==null?void 0:Q[De])!==null||g.icon)?se.createElement("div",{"data-icon":"",className:ya(L==null?void 0:L.icon,g==null||(l=g.classNames)==null?void 0:l.icon)},g.promise||g.type==="loading"&&!g.icon?g.icon||qi():null,g.type!=="loading"?ni:null):null,se.createElement("div",{"data-content":"",className:ya(L==null?void 0:L.content,g==null||(c=g.classNames)==null?void 0:c.content)},se.createElement("div",{"data-title":"",className:ya(L==null?void 0:L.title,g==null||(u=g.classNames)==null?void 0:u.title)},g.jsx?g.jsx:typeof g.title=="function"?g.title():g.title),g.description?se.createElement("div",{"data-description":"",className:ya(Z,ti,L==null?void 0:L.description,g==null||(f=g.classNames)==null?void 0:f.description)},typeof g.description=="function"?g.description():g.description):null),se.isValidElement(g.cancel)?g.cancel:g.cancel&&su(g.cancel)?se.createElement("button",{"data-button":!0,"data-cancel":!0,style:g.cancelButtonStyle||D,onClick:we=>{su(g.cancel)&&Kt&&(g.cancel.onClick==null||g.cancel.onClick.call(g.cancel,we),wn())},className:ya(L==null?void 0:L.cancelButton,g==null||(p=g.classNames)==null?void 0:p.cancelButton)},g.cancel.label):null,se.isValidElement(g.action)?g.action:g.action&&su(g.action)?se.createElement("button",{"data-button":!0,"data-action":!0,style:g.actionButtonStyle||B,onClick:we=>{su(g.action)&&(g.action.onClick==null||g.action.onClick.call(g.action,we),!we.defaultPrevented&&wn())},className:ya(L==null?void 0:L.actionButton,g==null||(h=g.classNames)==null?void 0:h.actionButton)},g.action.label):null)};function _0(){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 c2(e,n){const r={};return[e,n].forEach((i,l)=>{const c=l===1,u=c?"--mobile-offset":"--offset",f=c?n2:t2;function p(h){["top","right","bottom","left"].forEach(v=>{r[`${u}-${v}`]=typeof h=="number"?`${h}px`:h})}typeof i=="number"||typeof i=="string"?p(i):typeof i=="object"?["top","right","bottom","left"].forEach(h=>{i[h]===void 0?r[`${u}-${h}`]=f:r[`${u}-${h}`]=typeof i[h]=="number"?`${i[h]}px`:i[h]}):p(f)}),r}const u2=se.forwardRef(function(n,r){const{invert:i,position:l="bottom-right",hotkey:c=["altKey","KeyT"],expand:u,closeButton:f,className:p,offset:h,mobileOffset:v,theme:g="light",richColors:b,duration:x,style:C,visibleToasts:S=e2,toastOptions:R,dir:_=_0(),gap:A=r2,icons:M,containerAriaLabel:k="Notifications"}=n,[N,z]=se.useState([]),P=se.useMemo(()=>Array.from(new Set([l].concat(N.filter(q=>q.position).map(q=>q.position)))),[N,l]),[D,B]=se.useState([]),[Y,Z]=se.useState(!1),[ee,le]=se.useState(!1),[he,ce]=se.useState(g!=="system"?g:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),L=se.useRef(null),Q=c.join("+").replace(/Key/g,"").replace(/Digit/g,""),$=se.useRef(null),de=se.useRef(!1),O=se.useCallback(q=>{z(W=>{var X;return(X=W.find(te=>te.id===q.id))!=null&&X.delete||vn.dismiss(q.id),W.filter(({id:te})=>te!==q.id)})},[]);return se.useEffect(()=>vn.subscribe(q=>{if(q.dismiss){requestAnimationFrame(()=>{z(W=>W.map(X=>X.id===q.id?{...X,delete:!0}:X))});return}setTimeout(()=>{ow.flushSync(()=>{z(W=>{const X=W.findIndex(te=>te.id===q.id);return X!==-1?[...W.slice(0,X),{...W[X],...q},...W.slice(X+1)]:[q,...W]})})})}),[N]),se.useEffect(()=>{if(g!=="system"){ce(g);return}if(g==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?ce("dark"):ce("light")),typeof window>"u")return;const q=window.matchMedia("(prefers-color-scheme: dark)");try{q.addEventListener("change",({matches:W})=>{ce(W?"dark":"light")})}catch{q.addListener(({matches:X})=>{try{ce(X?"dark":"light")}catch(te){console.error(te)}})}},[g]),se.useEffect(()=>{N.length<=1&&Z(!1)},[N]),se.useEffect(()=>{const q=W=>{var X;if(c.every(ae=>W[ae]||W.code===ae)){var fe;Z(!0),(fe=L.current)==null||fe.focus()}W.code==="Escape"&&(document.activeElement===L.current||(X=L.current)!=null&&X.contains(document.activeElement))&&Z(!1)};return document.addEventListener("keydown",q),()=>document.removeEventListener("keydown",q)},[c]),se.useEffect(()=>{if(L.current)return()=>{$.current&&($.current.focus({preventScroll:!0}),$.current=null,de.current=!1)}},[L.current]),se.createElement("section",{ref:r,"aria-label":`${k} ${Q}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},P.map((q,W)=>{var X;const[te,fe]=q.split("-");return N.length?se.createElement("ol",{key:q,dir:_==="auto"?_0():_,tabIndex:-1,ref:L,className:p,"data-sonner-toaster":!0,"data-sonner-theme":he,"data-y-position":te,"data-x-position":fe,style:{"--front-toast-height":`${((X=D[0])==null?void 0:X.height)||0}px`,"--width":`${a2}px`,"--gap":`${A}px`,...C,...c2(h,v)},onBlur:ae=>{de.current&&!ae.currentTarget.contains(ae.relatedTarget)&&(de.current=!1,$.current&&($.current.focus({preventScroll:!0}),$.current=null))},onFocus:ae=>{ae.target instanceof HTMLElement&&ae.target.dataset.dismissible==="false"||de.current||(de.current=!0,$.current=ae.relatedTarget)},onMouseEnter:()=>Z(!0),onMouseMove:()=>Z(!0),onMouseLeave:()=>{ee||Z(!1)},onDragEnd:()=>Z(!1),onPointerDown:ae=>{ae.target instanceof HTMLElement&&ae.target.dataset.dismissible==="false"||le(!0)},onPointerUp:()=>le(!1)},N.filter(ae=>!ae.position&&W===0||ae.position===q).map((ae,re)=>{var oe,pe;return se.createElement(l2,{key:ae.id,icons:M,index:re,toast:ae,defaultRichColors:b,duration:(oe=R==null?void 0:R.duration)!=null?oe:x,className:R==null?void 0:R.className,descriptionClassName:R==null?void 0:R.descriptionClassName,invert:i,visibleToasts:S,closeButton:(pe=R==null?void 0:R.closeButton)!=null?pe:f,interacting:ee,position:q,style:R==null?void 0:R.style,unstyled:R==null?void 0:R.unstyled,classNames:R==null?void 0:R.classNames,cancelButtonStyle:R==null?void 0:R.cancelButtonStyle,actionButtonStyle:R==null?void 0:R.actionButtonStyle,closeButtonAriaLabel:R==null?void 0:R.closeButtonAriaLabel,removeToast:O,toasts:N.filter(ue=>ue.position==ae.position),heights:D.filter(ue=>ue.position==ae.position),setHeights:B,expandByDefault:u,gap:A,expanded:Y,swipeDirections:n.swipeDirections})})):null}))}),d2=({...e})=>{const{theme:n="system"}=P_();return y.jsx(u2,{theme:n,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...e})};function dw(e){var n,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(n=0;n<l;n++)e[n]&&(r=dw(e[n]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function fw(){for(var e,n,r=0,i="",l=arguments.length;r<l;r++)(e=arguments[r])&&(n=dw(e))&&(i&&(i+=" "),i+=n);return i}const A0=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,M0=fw,bm=(e,n)=>r=>{var i;if((n==null?void 0:n.variants)==null)return M0(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:l,defaultVariants:c}=n,u=Object.keys(l).map(h=>{const v=r==null?void 0:r[h],g=c==null?void 0:c[h];if(v===null)return null;const b=A0(v)||A0(g);return l[h][b]}),f=r&&Object.entries(r).reduce((h,v)=>{let[g,b]=v;return b===void 0||(h[g]=b),h},{}),p=n==null||(i=n.compoundVariants)===null||i===void 0?void 0:i.reduce((h,v)=>{let{class:g,className:b,...x}=v;return Object.entries(x).every(C=>{let[S,R]=C;return Array.isArray(R)?R.includes({...c,...f}[S]):{...c,...f}[S]===R})?[...h,g,b]:h},[]);return M0(e,u,p,r==null?void 0:r.class,r==null?void 0:r.className)};/**
68
+ * @license lucide-react v0.511.0 - ISC
69
+ *
70
+ * This source code is licensed under the ISC license.
71
+ * See the LICENSE file in the root directory of this source tree.
72
+ */const f2=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),h2=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,r,i)=>i?i.toUpperCase():r.toLowerCase()),D0=e=>{const n=h2(e);return n.charAt(0).toUpperCase()+n.slice(1)},hw=(...e)=>e.filter((n,r,i)=>!!n&&n.trim()!==""&&i.indexOf(n)===r).join(" ").trim(),p2=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0};/**
73
+ * @license lucide-react v0.511.0 - ISC
74
+ *
75
+ * This source code is licensed under the ISC license.
76
+ * See the LICENSE file in the root directory of this source tree.
77
+ */var m2={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"};/**
78
+ * @license lucide-react v0.511.0 - ISC
79
+ *
80
+ * This source code is licensed under the ISC license.
81
+ * See the LICENSE file in the root directory of this source tree.
82
+ */const g2=w.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:l="",children:c,iconNode:u,...f},p)=>w.createElement("svg",{ref:p,...m2,width:n,height:n,stroke:e,strokeWidth:i?Number(r)*24/Number(n):r,className:hw("lucide",l),...!c&&!p2(f)&&{"aria-hidden":"true"},...f},[...u.map(([h,v])=>w.createElement(h,v)),...Array.isArray(c)?c:[c]]));/**
83
+ * @license lucide-react v0.511.0 - ISC
84
+ *
85
+ * This source code is licensed under the ISC license.
86
+ * See the LICENSE file in the root directory of this source tree.
87
+ */const _t=(e,n)=>{const r=w.forwardRef(({className:i,...l},c)=>w.createElement(g2,{ref:c,iconNode:n,className:hw(`lucide-${f2(D0(e))}`,`lucide-${e}`,i),...l}));return r.displayName=D0(e),r};/**
88
+ * @license lucide-react v0.511.0 - ISC
89
+ *
90
+ * This source code is licensed under the ISC license.
91
+ * See the LICENSE file in the root directory of this source tree.
92
+ */const v2=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h2",key:"tvwodi"}],["path",{d:"M20 8v11a2 2 0 0 1-2 2h-2",key:"1gkqxj"}],["path",{d:"m9 15 3-3 3 3",key:"1pd0qc"}],["path",{d:"M12 12v9",key:"192myk"}]],y2=_t("archive-restore",v2);/**
93
+ * @license lucide-react v0.511.0 - ISC
94
+ *
95
+ * This source code is licensed under the ISC license.
96
+ * See the LICENSE file in the root directory of this source tree.
97
+ */const b2=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],pw=_t("archive",b2);/**
98
+ * @license lucide-react v0.511.0 - ISC
99
+ *
100
+ * This source code is licensed under the ISC license.
101
+ * See the LICENSE file in the root directory of this source tree.
102
+ */const x2=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],w2=_t("arrow-down",x2);/**
103
+ * @license lucide-react v0.511.0 - ISC
104
+ *
105
+ * This source code is licensed under the ISC license.
106
+ * See the LICENSE file in the root directory of this source tree.
107
+ */const S2=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],C2=_t("arrow-left",S2);/**
108
+ * @license lucide-react v0.511.0 - ISC
109
+ *
110
+ * This source code is licensed under the ISC license.
111
+ * See the LICENSE file in the root directory of this source tree.
112
+ */const E2=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],R2=_t("arrow-up",E2);/**
113
+ * @license lucide-react v0.511.0 - ISC
114
+ *
115
+ * This source code is licensed under the ISC license.
116
+ * See the LICENSE file in the root directory of this source tree.
117
+ */const T2=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],mw=_t("check",T2);/**
118
+ * @license lucide-react v0.511.0 - ISC
119
+ *
120
+ * This source code is licensed under the ISC license.
121
+ * See the LICENSE file in the root directory of this source tree.
122
+ */const _2=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],gw=_t("chevron-down",_2);/**
123
+ * @license lucide-react v0.511.0 - ISC
124
+ *
125
+ * This source code is licensed under the ISC license.
126
+ * See the LICENSE file in the root directory of this source tree.
127
+ */const A2=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],M2=_t("chevron-up",A2);/**
128
+ * @license lucide-react v0.511.0 - ISC
129
+ *
130
+ * This source code is licensed under the ISC license.
131
+ * See the LICENSE file in the root directory of this source tree.
132
+ */const D2=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],O2=_t("circle-check-big",D2);/**
133
+ * @license lucide-react v0.511.0 - ISC
134
+ *
135
+ * This source code is licensed under the ISC license.
136
+ * See the LICENSE file in the root directory of this source tree.
137
+ */const N2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],k2=_t("circle-x",N2);/**
138
+ * @license lucide-react v0.511.0 - ISC
139
+ *
140
+ * This source code is licensed under the ISC license.
141
+ * See the LICENSE file in the root directory of this source tree.
142
+ */const j2=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],z2=_t("external-link",j2);/**
143
+ * @license lucide-react v0.511.0 - ISC
144
+ *
145
+ * This source code is licensed under the ISC license.
146
+ * See the LICENSE file in the root directory of this source tree.
147
+ */const L2=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]],P2=_t("file-json",L2);/**
148
+ * @license lucide-react v0.511.0 - ISC
149
+ *
150
+ * This source code is licensed under the ISC license.
151
+ * See the LICENSE file in the root directory of this source tree.
152
+ */const B2=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]],U2=_t("file-spreadsheet",B2);/**
153
+ * @license lucide-react v0.511.0 - ISC
154
+ *
155
+ * This source code is licensed under the ISC license.
156
+ * See the LICENSE file in the root directory of this source tree.
157
+ */const H2=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],V2=_t("file-text",H2);/**
158
+ * @license lucide-react v0.511.0 - ISC
159
+ *
160
+ * This source code is licensed under the ISC license.
161
+ * See the LICENSE file in the root directory of this source tree.
162
+ */const q2=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]],$2=_t("file",q2);/**
163
+ * @license lucide-react v0.511.0 - ISC
164
+ *
165
+ * This source code is licensed under the ISC license.
166
+ * See the LICENSE file in the root directory of this source tree.
167
+ */const F2=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],I2=_t("grip-vertical",F2);/**
168
+ * @license lucide-react v0.511.0 - ISC
169
+ *
170
+ * This source code is licensed under the ISC license.
171
+ * See the LICENSE file in the root directory of this source tree.
172
+ */const G2=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],Y2=_t("panel-left",G2);/**
173
+ * @license lucide-react v0.511.0 - ISC
174
+ *
175
+ * This source code is licensed under the ISC license.
176
+ * See the LICENSE file in the root directory of this source tree.
177
+ */const Q2=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],vw=_t("plus",Q2);/**
178
+ * @license lucide-react v0.511.0 - ISC
179
+ *
180
+ * This source code is licensed under the ISC license.
181
+ * See the LICENSE file in the root directory of this source tree.
182
+ */const K2=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],X2=_t("refresh-cw",K2);/**
183
+ * @license lucide-react v0.511.0 - ISC
184
+ *
185
+ * This source code is licensed under the ISC license.
186
+ * See the LICENSE file in the root directory of this source tree.
187
+ */const Z2=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],yw=_t("trash-2",Z2);/**
188
+ * @license lucide-react v0.511.0 - ISC
189
+ *
190
+ * This source code is licensed under the ISC license.
191
+ * See the LICENSE file in the root directory of this source tree.
192
+ */const W2=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ji=_t("x",W2);function O0(e,n){if(typeof e=="function")return e(n);e!=null&&(e.current=n)}function bw(...e){return n=>{let r=!1;const i=e.map(l=>{const c=O0(l,n);return!r&&typeof c=="function"&&(r=!0),c});if(r)return()=>{for(let l=0;l<i.length;l++){const c=i[l];typeof c=="function"?c():O0(e[l],null)}}}}function xt(...e){return w.useCallback(bw(...e),e)}function ao(e){const n=J2(e),r=w.forwardRef((i,l)=>{const{children:c,...u}=i,f=w.Children.toArray(c),p=f.find(tA);if(p){const h=p.props.children,v=f.map(g=>g===p?w.Children.count(h)>1?w.Children.only(null):w.isValidElement(h)?h.props.children:null:g);return y.jsx(n,{...u,ref:l,children:w.isValidElement(h)?w.cloneElement(h,void 0,v):null})}return y.jsx(n,{...u,ref:l,children:c})});return r.displayName=`${e}.Slot`,r}var nd=ao("Slot");function J2(e){const n=w.forwardRef((r,i)=>{const{children:l,...c}=r;if(w.isValidElement(l)){const u=aA(l),f=nA(c,l.props);return l.type!==w.Fragment&&(f.ref=i?bw(i,u):u),w.cloneElement(l,f)}return w.Children.count(l)>1?w.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var xw=Symbol("radix.slottable");function eA(e){const n=({children:r})=>y.jsx(y.Fragment,{children:r});return n.displayName=`${e}.Slottable`,n.__radixId=xw,n}function tA(e){return w.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===xw}function nA(e,n){const r={...n};for(const i in n){const l=e[i],c=n[i];/^on[A-Z]/.test(i)?l&&c?r[i]=(...f)=>{const p=c(...f);return l(...f),p}:l&&(r[i]=l):i==="style"?r[i]={...l,...c}:i==="className"&&(r[i]=[l,c].filter(Boolean).join(" "))}return{...e,...r}}function aA(e){var i,l;let n=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,r=n&&"isReactWarning"in n&&n.isReactWarning;return r?e.ref:(n=(l=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:l.get,r=n&&"isReactWarning"in n&&n.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var rA=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],dt=rA.reduce((e,n)=>{const r=ao(`Primitive.${n}`),i=w.forwardRef((l,c)=>{const{asChild:u,...f}=l,p=u?r:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(p,{...f,ref:c})});return i.displayName=`Primitive.${n}`,{...e,[n]:i}},{});function iA(e,n){e&&sa.flushSync(()=>e.dispatchEvent(n))}var ww=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),sA="VisuallyHidden",Sw=w.forwardRef((e,n)=>y.jsx(dt.span,{...e,ref:n,style:{...ww,...e.style}}));Sw.displayName=sA;var oA=Sw;function lA(e,n){const r=w.createContext(n),i=c=>{const{children:u,...f}=c,p=w.useMemo(()=>f,Object.values(f));return y.jsx(r.Provider,{value:p,children:u})};i.displayName=e+"Provider";function l(c){const u=w.useContext(r);if(u)return u;if(n!==void 0)return n;throw new Error(`\`${c}\` must be used within \`${e}\``)}return[i,l]}function Hl(e,n=[]){let r=[];function i(c,u){const f=w.createContext(u),p=r.length;r=[...r,u];const h=g=>{var _;const{scope:b,children:x,...C}=g,S=((_=b==null?void 0:b[e])==null?void 0:_[p])||f,R=w.useMemo(()=>C,Object.values(C));return y.jsx(S.Provider,{value:R,children:x})};h.displayName=c+"Provider";function v(g,b){var S;const x=((S=b==null?void 0:b[e])==null?void 0:S[p])||f,C=w.useContext(x);if(C)return C;if(u!==void 0)return u;throw new Error(`\`${g}\` must be used within \`${c}\``)}return[h,v]}const l=()=>{const c=r.map(u=>w.createContext(u));return function(f){const p=(f==null?void 0:f[e])||c;return w.useMemo(()=>({[`__scope${e}`]:{...f,[e]:p}}),[f,p])}};return l.scopeName=e,[i,cA(l,...n)]}function cA(...e){const n=e[0];if(e.length===1)return n;const r=()=>{const i=e.map(l=>({useScope:l(),scopeName:l.scopeName}));return function(c){const u=i.reduce((f,{useScope:p,scopeName:h})=>{const g=p(c)[`__scope${h}`];return{...f,...g}},{});return w.useMemo(()=>({[`__scope${n.scopeName}`]:u}),[u])}};return r.scopeName=n.scopeName,r}function uA(e){const n=e+"CollectionProvider",[r,i]=Hl(n),[l,c]=r(n,{collectionRef:{current:null},itemMap:new Map}),u=S=>{const{scope:R,children:_}=S,A=se.useRef(null),M=se.useRef(new Map).current;return y.jsx(l,{scope:R,itemMap:M,collectionRef:A,children:_})};u.displayName=n;const f=e+"CollectionSlot",p=ao(f),h=se.forwardRef((S,R)=>{const{scope:_,children:A}=S,M=c(f,_),k=xt(R,M.collectionRef);return y.jsx(p,{ref:k,children:A})});h.displayName=f;const v=e+"CollectionItemSlot",g="data-radix-collection-item",b=ao(v),x=se.forwardRef((S,R)=>{const{scope:_,children:A,...M}=S,k=se.useRef(null),N=xt(R,k),z=c(v,_);return se.useEffect(()=>(z.itemMap.set(k,{ref:k,...M}),()=>void z.itemMap.delete(k))),y.jsx(b,{[g]:"",ref:N,children:A})});x.displayName=v;function C(S){const R=c(e+"CollectionConsumer",S);return se.useCallback(()=>{const A=R.collectionRef.current;if(!A)return[];const M=Array.from(A.querySelectorAll(`[${g}]`));return Array.from(R.itemMap.values()).sort((z,P)=>M.indexOf(z.ref.current)-M.indexOf(P.ref.current))},[R.collectionRef,R.itemMap])}return[{Provider:u,Slot:h,ItemSlot:x},C,i]}function Xe(e,n,{checkForDefaultPrevented:r=!0}={}){return function(l){if(e==null||e(l),r===!1||!l.defaultPrevented)return n==null?void 0:n(l)}}var en=globalThis!=null&&globalThis.document?w.useLayoutEffect:()=>{},dA=Xx[" useInsertionEffect ".trim().toString()]||en;function Lu({prop:e,defaultProp:n,onChange:r=()=>{},caller:i}){const[l,c,u]=fA({defaultProp:n,onChange:r}),f=e!==void 0,p=f?e:l;{const v=w.useRef(e!==void 0);w.useEffect(()=>{const g=v.current;g!==f&&console.warn(`${i} is changing from ${g?"controlled":"uncontrolled"} to ${f?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),v.current=f},[f,i])}const h=w.useCallback(v=>{var g;if(f){const b=hA(v)?v(e):v;b!==e&&((g=u.current)==null||g.call(u,b))}else c(v)},[f,e,c,u]);return[p,h]}function fA({defaultProp:e,onChange:n}){const[r,i]=w.useState(e),l=w.useRef(r),c=w.useRef(n);return dA(()=>{c.current=n},[n]),w.useEffect(()=>{var u;l.current!==r&&((u=c.current)==null||u.call(c,r),l.current=r)},[r,l]),[r,i,c]}function hA(e){return typeof e=="function"}function pA(e,n){return w.useReducer((r,i)=>n[r][i]??r,e)}var lo=e=>{const{present:n,children:r}=e,i=mA(n),l=typeof r=="function"?r({present:i.isPresent}):w.Children.only(r),c=xt(i.ref,gA(l));return typeof r=="function"||i.isPresent?w.cloneElement(l,{ref:c}):null};lo.displayName="Presence";function mA(e){const[n,r]=w.useState(),i=w.useRef(null),l=w.useRef(e),c=w.useRef("none"),u=e?"mounted":"unmounted",[f,p]=pA(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const h=ou(i.current);c.current=f==="mounted"?h:"none"},[f]),en(()=>{const h=i.current,v=l.current;if(v!==e){const b=c.current,x=ou(h);e?p("MOUNT"):x==="none"||(h==null?void 0:h.display)==="none"?p("UNMOUNT"):p(v&&b!==x?"ANIMATION_OUT":"UNMOUNT"),l.current=e}},[e,p]),en(()=>{if(n){let h;const v=n.ownerDocument.defaultView??window,g=x=>{const S=ou(i.current).includes(x.animationName);if(x.target===n&&S&&(p("ANIMATION_END"),!l.current)){const R=n.style.animationFillMode;n.style.animationFillMode="forwards",h=v.setTimeout(()=>{n.style.animationFillMode==="forwards"&&(n.style.animationFillMode=R)})}},b=x=>{x.target===n&&(c.current=ou(i.current))};return n.addEventListener("animationstart",b),n.addEventListener("animationcancel",g),n.addEventListener("animationend",g),()=>{v.clearTimeout(h),n.removeEventListener("animationstart",b),n.removeEventListener("animationcancel",g),n.removeEventListener("animationend",g)}}else p("ANIMATION_END")},[n,p]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:w.useCallback(h=>{i.current=h?getComputedStyle(h):null,r(h)},[])}}function ou(e){return(e==null?void 0:e.animationName)||"none"}function gA(e){var i,l;let n=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,r=n&&"isReactWarning"in n&&n.isReactWarning;return r?e.ref:(n=(l=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:l.get,r=n&&"isReactWarning"in n&&n.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var vA=Xx[" useId ".trim().toString()]||(()=>{}),yA=0;function Oi(e){const[n,r]=w.useState(vA());return en(()=>{r(i=>i??String(yA++))},[e]),e||(n?`radix-${n}`:"")}var bA=w.createContext(void 0);function xA(e){const n=w.useContext(bA);return e||n||"ltr"}function zi(e){const n=w.useRef(e);return w.useEffect(()=>{n.current=e}),w.useMemo(()=>(...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},[])}function wA(e,n=globalThis==null?void 0:globalThis.document){const r=zi(e);w.useEffect(()=>{const i=l=>{l.key==="Escape"&&r(l)};return n.addEventListener("keydown",i,{capture:!0}),()=>n.removeEventListener("keydown",i,{capture:!0})},[r,n])}var SA="DismissableLayer",Pp="dismissableLayer.update",CA="dismissableLayer.pointerDownOutside",EA="dismissableLayer.focusOutside",N0,Cw=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ad=w.forwardRef((e,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,onDismiss:f,...p}=e,h=w.useContext(Cw),[v,g]=w.useState(null),b=(v==null?void 0:v.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,x]=w.useState({}),C=xt(n,P=>g(P)),S=Array.from(h.layers),[R]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),_=S.indexOf(R),A=v?S.indexOf(v):-1,M=h.layersWithOutsidePointerEventsDisabled.size>0,k=A>=_,N=_A(P=>{const D=P.target,B=[...h.branches].some(Y=>Y.contains(D));!k||B||(l==null||l(P),u==null||u(P),P.defaultPrevented||f==null||f())},b),z=AA(P=>{const D=P.target;[...h.branches].some(Y=>Y.contains(D))||(c==null||c(P),u==null||u(P),P.defaultPrevented||f==null||f())},b);return wA(P=>{A===h.layers.size-1&&(i==null||i(P),!P.defaultPrevented&&f&&(P.preventDefault(),f()))},b),w.useEffect(()=>{if(v)return r&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(N0=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(v)),h.layers.add(v),k0(),()=>{r&&h.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=N0)}},[v,b,r,h]),w.useEffect(()=>()=>{v&&(h.layers.delete(v),h.layersWithOutsidePointerEventsDisabled.delete(v),k0())},[v,h]),w.useEffect(()=>{const P=()=>x({});return document.addEventListener(Pp,P),()=>document.removeEventListener(Pp,P)},[]),y.jsx(dt.div,{...p,ref:C,style:{pointerEvents:M?k?"auto":"none":void 0,...e.style},onFocusCapture:Xe(e.onFocusCapture,z.onFocusCapture),onBlurCapture:Xe(e.onBlurCapture,z.onBlurCapture),onPointerDownCapture:Xe(e.onPointerDownCapture,N.onPointerDownCapture)})});ad.displayName=SA;var RA="DismissableLayerBranch",TA=w.forwardRef((e,n)=>{const r=w.useContext(Cw),i=w.useRef(null),l=xt(n,i);return w.useEffect(()=>{const c=i.current;if(c)return r.branches.add(c),()=>{r.branches.delete(c)}},[r.branches]),y.jsx(dt.div,{...e,ref:l})});TA.displayName=RA;function _A(e,n=globalThis==null?void 0:globalThis.document){const r=zi(e),i=w.useRef(!1),l=w.useRef(()=>{});return w.useEffect(()=>{const c=f=>{if(f.target&&!i.current){let p=function(){Ew(CA,r,h,{discrete:!0})};const h={originalEvent:f};f.pointerType==="touch"?(n.removeEventListener("click",l.current),l.current=p,n.addEventListener("click",l.current,{once:!0})):p()}else n.removeEventListener("click",l.current);i.current=!1},u=window.setTimeout(()=>{n.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(u),n.removeEventListener("pointerdown",c),n.removeEventListener("click",l.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}function AA(e,n=globalThis==null?void 0:globalThis.document){const r=zi(e),i=w.useRef(!1);return w.useEffect(()=>{const l=c=>{c.target&&!i.current&&Ew(EA,r,{originalEvent:c},{discrete:!1})};return n.addEventListener("focusin",l),()=>n.removeEventListener("focusin",l)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function k0(){const e=new CustomEvent(Pp);document.dispatchEvent(e)}function Ew(e,n,r,{discrete:i}){const l=r.originalEvent.target,c=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});n&&l.addEventListener(e,n,{once:!0}),i?iA(l,c):l.dispatchEvent(c)}var Zh="focusScope.autoFocusOnMount",Wh="focusScope.autoFocusOnUnmount",j0={bubbles:!1,cancelable:!0},MA="FocusScope",xm=w.forwardRef((e,n)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:l,onUnmountAutoFocus:c,...u}=e,[f,p]=w.useState(null),h=zi(l),v=zi(c),g=w.useRef(null),b=xt(n,S=>p(S)),x=w.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;w.useEffect(()=>{if(i){let S=function(M){if(x.paused||!f)return;const k=M.target;f.contains(k)?g.current=k:jr(g.current,{select:!0})},R=function(M){if(x.paused||!f)return;const k=M.relatedTarget;k!==null&&(f.contains(k)||jr(g.current,{select:!0}))},_=function(M){if(document.activeElement===document.body)for(const N of M)N.removedNodes.length>0&&jr(f)};document.addEventListener("focusin",S),document.addEventListener("focusout",R);const A=new MutationObserver(_);return f&&A.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",R),A.disconnect()}}},[i,f,x.paused]),w.useEffect(()=>{if(f){L0.add(x);const S=document.activeElement;if(!f.contains(S)){const _=new CustomEvent(Zh,j0);f.addEventListener(Zh,h),f.dispatchEvent(_),_.defaultPrevented||(DA(zA(Rw(f)),{select:!0}),document.activeElement===S&&jr(f))}return()=>{f.removeEventListener(Zh,h),setTimeout(()=>{const _=new CustomEvent(Wh,j0);f.addEventListener(Wh,v),f.dispatchEvent(_),_.defaultPrevented||jr(S??document.body,{select:!0}),f.removeEventListener(Wh,v),L0.remove(x)},0)}}},[f,h,v,x]);const C=w.useCallback(S=>{if(!r&&!i||x.paused)return;const R=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,_=document.activeElement;if(R&&_){const A=S.currentTarget,[M,k]=OA(A);M&&k?!S.shiftKey&&_===k?(S.preventDefault(),r&&jr(M,{select:!0})):S.shiftKey&&_===M&&(S.preventDefault(),r&&jr(k,{select:!0})):_===A&&S.preventDefault()}},[r,i,x.paused]);return y.jsx(dt.div,{tabIndex:-1,...u,ref:b,onKeyDown:C})});xm.displayName=MA;function DA(e,{select:n=!1}={}){const r=document.activeElement;for(const i of e)if(jr(i,{select:n}),document.activeElement!==r)return}function OA(e){const n=Rw(e),r=z0(n,e),i=z0(n.reverse(),e);return[r,i]}function Rw(e){const n=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const l=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||l?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)n.push(r.currentNode);return n}function z0(e,n){for(const r of e)if(!NA(r,{upTo:n}))return r}function NA(e,{upTo:n}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function kA(e){return e instanceof HTMLInputElement&&"select"in e}function jr(e,{select:n=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&kA(e)&&n&&e.select()}}var L0=jA();function jA(){let e=[];return{add(n){const r=e[0];n!==r&&(r==null||r.pause()),e=P0(e,n),e.unshift(n)},remove(n){var r;e=P0(e,n),(r=e[0])==null||r.resume()}}}function P0(e,n){const r=[...e],i=r.indexOf(n);return i!==-1&&r.splice(i,1),r}function zA(e){return e.filter(n=>n.tagName!=="A")}var LA="Portal",rd=w.forwardRef((e,n)=>{var f;const{container:r,...i}=e,[l,c]=w.useState(!1);en(()=>c(!0),[]);const u=r||l&&((f=globalThis==null?void 0:globalThis.document)==null?void 0:f.body);return u?ow.createPortal(y.jsx(dt.div,{...i,ref:n}),u):null});rd.displayName=LA;var Jh=0;function Tw(){w.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??B0()),document.body.insertAdjacentElement("beforeend",e[1]??B0()),Jh++,()=>{Jh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),Jh--}},[])}function B0(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Ea=function(){return Ea=Object.assign||function(n){for(var r,i=1,l=arguments.length;i<l;i++){r=arguments[i];for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&(n[c]=r[c])}return n},Ea.apply(this,arguments)};function _w(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,i=Object.getOwnPropertySymbols(e);l<i.length;l++)n.indexOf(i[l])<0&&Object.prototype.propertyIsEnumerable.call(e,i[l])&&(r[i[l]]=e[i[l]]);return r}function PA(e,n,r){if(r||arguments.length===2)for(var i=0,l=n.length,c;i<l;i++)(c||!(i in n))&&(c||(c=Array.prototype.slice.call(n,0,i)),c[i]=n[i]);return e.concat(c||Array.prototype.slice.call(n))}var Cu="right-scroll-bar-position",Eu="width-before-scroll-bar",BA="with-scroll-bars-hidden",UA="--removed-body-scroll-bar-size";function ep(e,n){return typeof e=="function"?e(n):e&&(e.current=n),e}function HA(e,n){var r=w.useState(function(){return{value:e,callback:n,facade:{get current(){return r.value},set current(i){var l=r.value;l!==i&&(r.value=i,r.callback(i,l))}}}})[0];return r.callback=n,r.facade}var VA=typeof window<"u"?w.useLayoutEffect:w.useEffect,U0=new WeakMap;function qA(e,n){var r=HA(null,function(i){return e.forEach(function(l){return ep(l,i)})});return VA(function(){var i=U0.get(r);if(i){var l=new Set(i),c=new Set(e),u=r.current;l.forEach(function(f){c.has(f)||ep(f,null)}),c.forEach(function(f){l.has(f)||ep(f,u)})}U0.set(r,e)},[e]),r}function $A(e){return e}function FA(e,n){n===void 0&&(n=$A);var r=[],i=!1,l={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(c){var u=n(c,i);return r.push(u),function(){r=r.filter(function(f){return f!==u})}},assignSyncMedium:function(c){for(i=!0;r.length;){var u=r;r=[],u.forEach(c)}r={push:function(f){return c(f)},filter:function(){return r}}},assignMedium:function(c){i=!0;var u=[];if(r.length){var f=r;r=[],f.forEach(c),u=r}var p=function(){var v=u;u=[],v.forEach(c)},h=function(){return Promise.resolve().then(p)};h(),r={push:function(v){u.push(v),h()},filter:function(v){return u=u.filter(v),r}}}};return l}function IA(e){e===void 0&&(e={});var n=FA(null);return n.options=Ea({async:!0,ssr:!1},e),n}var Aw=function(e){var n=e.sideCar,r=_w(e,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=n.read();if(!i)throw new Error("Sidecar medium not found");return w.createElement(i,Ea({},r))};Aw.isSideCarExport=!0;function GA(e,n){return e.useMedium(n),Aw}var Mw=IA(),tp=function(){},id=w.forwardRef(function(e,n){var r=w.useRef(null),i=w.useState({onScrollCapture:tp,onWheelCapture:tp,onTouchMoveCapture:tp}),l=i[0],c=i[1],u=e.forwardProps,f=e.children,p=e.className,h=e.removeScrollBar,v=e.enabled,g=e.shards,b=e.sideCar,x=e.noRelative,C=e.noIsolation,S=e.inert,R=e.allowPinchZoom,_=e.as,A=_===void 0?"div":_,M=e.gapMode,k=_w(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),N=b,z=qA([r,n]),P=Ea(Ea({},k),l);return w.createElement(w.Fragment,null,v&&w.createElement(N,{sideCar:Mw,removeScrollBar:h,shards:g,noRelative:x,noIsolation:C,inert:S,setCallbacks:c,allowPinchZoom:!!R,lockRef:r,gapMode:M}),u?w.cloneElement(w.Children.only(f),Ea(Ea({},P),{ref:z})):w.createElement(A,Ea({},P,{className:p,ref:z}),f))});id.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};id.classNames={fullWidth:Eu,zeroRight:Cu};var YA=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function QA(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var n=YA();return n&&e.setAttribute("nonce",n),e}function KA(e,n){e.styleSheet?e.styleSheet.cssText=n:e.appendChild(document.createTextNode(n))}function XA(e){var n=document.head||document.getElementsByTagName("head")[0];n.appendChild(e)}var ZA=function(){var e=0,n=null;return{add:function(r){e==0&&(n=QA())&&(KA(n,r),XA(n)),e++},remove:function(){e--,!e&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},WA=function(){var e=ZA();return function(n,r){w.useEffect(function(){return e.add(n),function(){e.remove()}},[n&&r])}},Dw=function(){var e=WA(),n=function(r){var i=r.styles,l=r.dynamic;return e(i,l),null};return n},JA={left:0,top:0,right:0,gap:0},np=function(e){return parseInt(e||"",10)||0},eM=function(e){var n=window.getComputedStyle(document.body),r=n[e==="padding"?"paddingLeft":"marginLeft"],i=n[e==="padding"?"paddingTop":"marginTop"],l=n[e==="padding"?"paddingRight":"marginRight"];return[np(r),np(i),np(l)]},tM=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return JA;var n=eM(e),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,i-r+n[2]-n[0])}},nM=Dw(),Bs="data-scroll-locked",aM=function(e,n,r,i){var l=e.left,c=e.top,u=e.right,f=e.gap;return r===void 0&&(r="margin"),`
193
+ .`.concat(BA,` {
194
+ overflow: hidden `).concat(i,`;
195
+ padding-right: `).concat(f,"px ").concat(i,`;
196
+ }
197
+ body[`).concat(Bs,`] {
198
+ overflow: hidden `).concat(i,`;
199
+ overscroll-behavior: contain;
200
+ `).concat([n&&"position: relative ".concat(i,";"),r==="margin"&&`
201
+ padding-left: `.concat(l,`px;
202
+ padding-top: `).concat(c,`px;
203
+ padding-right: `).concat(u,`px;
204
+ margin-left:0;
205
+ margin-top:0;
206
+ margin-right: `).concat(f,"px ").concat(i,`;
207
+ `),r==="padding"&&"padding-right: ".concat(f,"px ").concat(i,";")].filter(Boolean).join(""),`
208
+ }
209
+
210
+ .`).concat(Cu,` {
211
+ right: `).concat(f,"px ").concat(i,`;
212
+ }
213
+
214
+ .`).concat(Eu,` {
215
+ margin-right: `).concat(f,"px ").concat(i,`;
216
+ }
217
+
218
+ .`).concat(Cu," .").concat(Cu,` {
219
+ right: 0 `).concat(i,`;
220
+ }
221
+
222
+ .`).concat(Eu," .").concat(Eu,` {
223
+ margin-right: 0 `).concat(i,`;
224
+ }
225
+
226
+ body[`).concat(Bs,`] {
227
+ `).concat(UA,": ").concat(f,`px;
228
+ }
229
+ `)},H0=function(){var e=parseInt(document.body.getAttribute(Bs)||"0",10);return isFinite(e)?e:0},rM=function(){w.useEffect(function(){return document.body.setAttribute(Bs,(H0()+1).toString()),function(){var e=H0()-1;e<=0?document.body.removeAttribute(Bs):document.body.setAttribute(Bs,e.toString())}},[])},iM=function(e){var n=e.noRelative,r=e.noImportant,i=e.gapMode,l=i===void 0?"margin":i;rM();var c=w.useMemo(function(){return tM(l)},[l]);return w.createElement(nM,{styles:aM(c,!n,l,r?"":"!important")})},Bp=!1;if(typeof window<"u")try{var lu=Object.defineProperty({},"passive",{get:function(){return Bp=!0,!0}});window.addEventListener("test",lu,lu),window.removeEventListener("test",lu,lu)}catch{Bp=!1}var _s=Bp?{passive:!1}:!1,sM=function(e){return e.tagName==="TEXTAREA"},Ow=function(e,n){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[n]!=="hidden"&&!(r.overflowY===r.overflowX&&!sM(e)&&r[n]==="visible")},oM=function(e){return Ow(e,"overflowY")},lM=function(e){return Ow(e,"overflowX")},V0=function(e,n){var r=n.ownerDocument,i=n;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var l=Nw(e,i);if(l){var c=kw(e,i),u=c[1],f=c[2];if(u>f)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},cM=function(e){var n=e.scrollTop,r=e.scrollHeight,i=e.clientHeight;return[n,r,i]},uM=function(e){var n=e.scrollLeft,r=e.scrollWidth,i=e.clientWidth;return[n,r,i]},Nw=function(e,n){return e==="v"?oM(n):lM(n)},kw=function(e,n){return e==="v"?cM(n):uM(n)},dM=function(e,n){return e==="h"&&n==="rtl"?-1:1},fM=function(e,n,r,i,l){var c=dM(e,window.getComputedStyle(n).direction),u=c*i,f=r.target,p=n.contains(f),h=!1,v=u>0,g=0,b=0;do{var x=kw(e,f),C=x[0],S=x[1],R=x[2],_=S-R-c*C;(C||_)&&Nw(e,f)&&(g+=_,b+=C),f=f.parentNode.host||f.parentNode}while(!p&&f!==document.body||p&&(n.contains(f)||n===f));return(v&&Math.abs(g)<1||!v&&Math.abs(b)<1)&&(h=!0),h},cu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},q0=function(e){return[e.deltaX,e.deltaY]},$0=function(e){return e&&"current"in e?e.current:e},hM=function(e,n){return e[0]===n[0]&&e[1]===n[1]},pM=function(e){return`
230
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
231
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
232
+ `)},mM=0,As=[];function gM(e){var n=w.useRef([]),r=w.useRef([0,0]),i=w.useRef(),l=w.useState(mM++)[0],c=w.useState(Dw)[0],u=w.useRef(e);w.useEffect(function(){u.current=e},[e]),w.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(l));var S=PA([e.lockRef.current],(e.shards||[]).map($0),!0).filter(Boolean);return S.forEach(function(R){return R.classList.add("allow-interactivity-".concat(l))}),function(){document.body.classList.remove("block-interactivity-".concat(l)),S.forEach(function(R){return R.classList.remove("allow-interactivity-".concat(l))})}}},[e.inert,e.lockRef.current,e.shards]);var f=w.useCallback(function(S,R){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!u.current.allowPinchZoom;var _=cu(S),A=r.current,M="deltaX"in S?S.deltaX:A[0]-_[0],k="deltaY"in S?S.deltaY:A[1]-_[1],N,z=S.target,P=Math.abs(M)>Math.abs(k)?"h":"v";if("touches"in S&&P==="h"&&z.type==="range")return!1;var D=V0(P,z);if(!D)return!0;if(D?N=P:(N=P==="v"?"h":"v",D=V0(P,z)),!D)return!1;if(!i.current&&"changedTouches"in S&&(M||k)&&(i.current=N),!N)return!0;var B=i.current||N;return fM(B,R,S,B==="h"?M:k)},[]),p=w.useCallback(function(S){var R=S;if(!(!As.length||As[As.length-1]!==c)){var _="deltaY"in R?q0(R):cu(R),A=n.current.filter(function(N){return N.name===R.type&&(N.target===R.target||R.target===N.shadowParent)&&hM(N.delta,_)})[0];if(A&&A.should){R.cancelable&&R.preventDefault();return}if(!A){var M=(u.current.shards||[]).map($0).filter(Boolean).filter(function(N){return N.contains(R.target)}),k=M.length>0?f(R,M[0]):!u.current.noIsolation;k&&R.cancelable&&R.preventDefault()}}},[]),h=w.useCallback(function(S,R,_,A){var M={name:S,delta:R,target:_,should:A,shadowParent:vM(_)};n.current.push(M),setTimeout(function(){n.current=n.current.filter(function(k){return k!==M})},1)},[]),v=w.useCallback(function(S){r.current=cu(S),i.current=void 0},[]),g=w.useCallback(function(S){h(S.type,q0(S),S.target,f(S,e.lockRef.current))},[]),b=w.useCallback(function(S){h(S.type,cu(S),S.target,f(S,e.lockRef.current))},[]);w.useEffect(function(){return As.push(c),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:b}),document.addEventListener("wheel",p,_s),document.addEventListener("touchmove",p,_s),document.addEventListener("touchstart",v,_s),function(){As=As.filter(function(S){return S!==c}),document.removeEventListener("wheel",p,_s),document.removeEventListener("touchmove",p,_s),document.removeEventListener("touchstart",v,_s)}},[]);var x=e.removeScrollBar,C=e.inert;return w.createElement(w.Fragment,null,C?w.createElement(c,{styles:pM(l)}):null,x?w.createElement(iM,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function vM(e){for(var n=null;e!==null;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}const yM=GA(Mw,gM);var wm=w.forwardRef(function(e,n){return w.createElement(id,Ea({},e,{ref:n,sideCar:yM}))});wm.classNames=id.classNames;var bM=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},Ms=new WeakMap,uu=new WeakMap,du={},ap=0,jw=function(e){return e&&(e.host||jw(e.parentNode))},xM=function(e,n){return n.map(function(r){if(e.contains(r))return r;var i=jw(r);return i&&e.contains(i)?i:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},wM=function(e,n,r,i){var l=xM(n,Array.isArray(e)?e:[e]);du[r]||(du[r]=new WeakMap);var c=du[r],u=[],f=new Set,p=new Set(l),h=function(g){!g||f.has(g)||(f.add(g),h(g.parentNode))};l.forEach(h);var v=function(g){!g||p.has(g)||Array.prototype.forEach.call(g.children,function(b){if(f.has(b))v(b);else try{var x=b.getAttribute(i),C=x!==null&&x!=="false",S=(Ms.get(b)||0)+1,R=(c.get(b)||0)+1;Ms.set(b,S),c.set(b,R),u.push(b),S===1&&C&&uu.set(b,!0),R===1&&b.setAttribute(r,"true"),C||b.setAttribute(i,"true")}catch(_){console.error("aria-hidden: cannot operate on ",b,_)}})};return v(n),f.clear(),ap++,function(){u.forEach(function(g){var b=Ms.get(g)-1,x=c.get(g)-1;Ms.set(g,b),c.set(g,x),b||(uu.has(g)||g.removeAttribute(i),uu.delete(g)),x||g.removeAttribute(r)}),ap--,ap||(Ms=new WeakMap,Ms=new WeakMap,uu=new WeakMap,du={})}},zw=function(e,n,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),l=bM(e);return l?(i.push.apply(i,Array.from(l.querySelectorAll("[aria-live], script"))),wM(i,l,r,"aria-hidden")):function(){return null}},sd="Dialog",[Lw,aL]=Hl(sd),[SM,da]=Lw(sd),Pw=e=>{const{__scopeDialog:n,children:r,open:i,defaultOpen:l,onOpenChange:c,modal:u=!0}=e,f=w.useRef(null),p=w.useRef(null),[h,v]=Lu({prop:i,defaultProp:l??!1,onChange:c,caller:sd});return y.jsx(SM,{scope:n,triggerRef:f,contentRef:p,contentId:Oi(),titleId:Oi(),descriptionId:Oi(),open:h,onOpenChange:v,onOpenToggle:w.useCallback(()=>v(g=>!g),[v]),modal:u,children:r})};Pw.displayName=sd;var Bw="DialogTrigger",Uw=w.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,l=da(Bw,r),c=xt(n,l.triggerRef);return y.jsx(dt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":Em(l.open),...i,ref:c,onClick:Xe(e.onClick,l.onOpenToggle)})});Uw.displayName=Bw;var Sm="DialogPortal",[CM,Hw]=Lw(Sm,{forceMount:void 0}),Vw=e=>{const{__scopeDialog:n,forceMount:r,children:i,container:l}=e,c=da(Sm,n);return y.jsx(CM,{scope:n,forceMount:r,children:w.Children.map(i,u=>y.jsx(lo,{present:r||c.open,children:y.jsx(rd,{asChild:!0,container:l,children:u})}))})};Vw.displayName=Sm;var Pu="DialogOverlay",qw=w.forwardRef((e,n)=>{const r=Hw(Pu,e.__scopeDialog),{forceMount:i=r.forceMount,...l}=e,c=da(Pu,e.__scopeDialog);return c.modal?y.jsx(lo,{present:i||c.open,children:y.jsx(RM,{...l,ref:n})}):null});qw.displayName=Pu;var EM=ao("DialogOverlay.RemoveScroll"),RM=w.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,l=da(Pu,r);return y.jsx(wm,{as:EM,allowPinchZoom:!0,shards:[l.contentRef],children:y.jsx(dt.div,{"data-state":Em(l.open),...i,ref:n,style:{pointerEvents:"auto",...i.style}})})}),Li="DialogContent",$w=w.forwardRef((e,n)=>{const r=Hw(Li,e.__scopeDialog),{forceMount:i=r.forceMount,...l}=e,c=da(Li,e.__scopeDialog);return y.jsx(lo,{present:i||c.open,children:c.modal?y.jsx(TM,{...l,ref:n}):y.jsx(_M,{...l,ref:n})})});$w.displayName=Li;var TM=w.forwardRef((e,n)=>{const r=da(Li,e.__scopeDialog),i=w.useRef(null),l=xt(n,r.contentRef,i);return w.useEffect(()=>{const c=i.current;if(c)return zw(c)},[]),y.jsx(Fw,{...e,ref:l,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Xe(e.onCloseAutoFocus,c=>{var u;c.preventDefault(),(u=r.triggerRef.current)==null||u.focus()}),onPointerDownOutside:Xe(e.onPointerDownOutside,c=>{const u=c.detail.originalEvent,f=u.button===0&&u.ctrlKey===!0;(u.button===2||f)&&c.preventDefault()}),onFocusOutside:Xe(e.onFocusOutside,c=>c.preventDefault())})}),_M=w.forwardRef((e,n)=>{const r=da(Li,e.__scopeDialog),i=w.useRef(!1),l=w.useRef(!1);return y.jsx(Fw,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var u,f;(u=e.onCloseAutoFocus)==null||u.call(e,c),c.defaultPrevented||(i.current||(f=r.triggerRef.current)==null||f.focus(),c.preventDefault()),i.current=!1,l.current=!1},onInteractOutside:c=>{var p,h;(p=e.onInteractOutside)==null||p.call(e,c),c.defaultPrevented||(i.current=!0,c.detail.originalEvent.type==="pointerdown"&&(l.current=!0));const u=c.target;((h=r.triggerRef.current)==null?void 0:h.contains(u))&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&l.current&&c.preventDefault()}})}),Fw=w.forwardRef((e,n)=>{const{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:l,onCloseAutoFocus:c,...u}=e,f=da(Li,r),p=w.useRef(null),h=xt(n,p);return Tw(),y.jsxs(y.Fragment,{children:[y.jsx(xm,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:l,onUnmountAutoFocus:c,children:y.jsx(ad,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":Em(f.open),...u,ref:h,onDismiss:()=>f.onOpenChange(!1)})}),y.jsxs(y.Fragment,{children:[y.jsx(AM,{titleId:f.titleId}),y.jsx(DM,{contentRef:p,descriptionId:f.descriptionId})]})]})}),Cm="DialogTitle",Iw=w.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,l=da(Cm,r);return y.jsx(dt.h2,{id:l.titleId,...i,ref:n})});Iw.displayName=Cm;var Gw="DialogDescription",Yw=w.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,l=da(Gw,r);return y.jsx(dt.p,{id:l.descriptionId,...i,ref:n})});Yw.displayName=Gw;var Qw="DialogClose",Kw=w.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,l=da(Qw,r);return y.jsx(dt.button,{type:"button",...i,ref:n,onClick:Xe(e.onClick,()=>l.onOpenChange(!1))})});Kw.displayName=Qw;function Em(e){return e?"open":"closed"}var Xw="DialogTitleWarning",[rL,Zw]=lA(Xw,{contentName:Li,titleName:Cm,docsSlug:"dialog"}),AM=({titleId:e})=>{const n=Zw(Xw),r=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.
233
+
234
+ If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.
235
+
236
+ For more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return w.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},MM="DialogDescriptionWarning",DM=({contentRef:e,descriptionId:n})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Zw(MM).contentName}}.`;return w.useEffect(()=>{var c;const l=(c=e.current)==null?void 0:c.getAttribute("aria-describedby");n&&l&&(document.getElementById(n)||console.warn(i))},[i,e,n]),null},Ww=Pw,OM=Uw,Jw=Vw,eS=qw,tS=$w,nS=Iw,NM=Yw,aS=Kw;function kM(e){const n=w.useRef({value:e,previous:e});return w.useMemo(()=>(n.current.value!==e&&(n.current.previous=n.current.value,n.current.value=e),n.current.previous),[e])}function jM(e){const[n,r]=w.useState(void 0);return en(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(l=>{if(!Array.isArray(l)||!l.length)return;const c=l[0];let u,f;if("borderBoxSize"in c){const p=c.borderBoxSize,h=Array.isArray(p)?p[0]:p;u=h.inlineSize,f=h.blockSize}else u=e.offsetWidth,f=e.offsetHeight;r({width:u,height:f})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else r(void 0)},[e]),n}const zM=["top","right","bottom","left"],Yr=Math.min,Mn=Math.max,Bu=Math.round,fu=Math.floor,Ta=e=>({x:e,y:e}),LM={left:"right",right:"left",bottom:"top",top:"bottom"},PM={start:"end",end:"start"};function Up(e,n,r){return Mn(e,Yr(n,r))}function rr(e,n){return typeof e=="function"?e(n):e}function ir(e){return e.split("-")[0]}function co(e){return e.split("-")[1]}function Rm(e){return e==="x"?"y":"x"}function Tm(e){return e==="y"?"height":"width"}function tr(e){return["top","bottom"].includes(ir(e))?"y":"x"}function _m(e){return Rm(tr(e))}function BM(e,n,r){r===void 0&&(r=!1);const i=co(e),l=_m(e),c=Tm(l);let u=l==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return n.reference[c]>n.floating[c]&&(u=Uu(u)),[u,Uu(u)]}function UM(e){const n=Uu(e);return[Hp(e),n,Hp(n)]}function Hp(e){return e.replace(/start|end/g,n=>PM[n])}function HM(e,n,r){const i=["left","right"],l=["right","left"],c=["top","bottom"],u=["bottom","top"];switch(e){case"top":case"bottom":return r?n?l:i:n?i:l;case"left":case"right":return n?c:u;default:return[]}}function VM(e,n,r,i){const l=co(e);let c=HM(ir(e),r==="start",i);return l&&(c=c.map(u=>u+"-"+l),n&&(c=c.concat(c.map(Hp)))),c}function Uu(e){return e.replace(/left|right|bottom|top/g,n=>LM[n])}function qM(e){return{top:0,right:0,bottom:0,left:0,...e}}function rS(e){return typeof e!="number"?qM(e):{top:e,right:e,bottom:e,left:e}}function Hu(e){const{x:n,y:r,width:i,height:l}=e;return{width:i,height:l,top:r,left:n,right:n+i,bottom:r+l,x:n,y:r}}function F0(e,n,r){let{reference:i,floating:l}=e;const c=tr(n),u=_m(n),f=Tm(u),p=ir(n),h=c==="y",v=i.x+i.width/2-l.width/2,g=i.y+i.height/2-l.height/2,b=i[f]/2-l[f]/2;let x;switch(p){case"top":x={x:v,y:i.y-l.height};break;case"bottom":x={x:v,y:i.y+i.height};break;case"right":x={x:i.x+i.width,y:g};break;case"left":x={x:i.x-l.width,y:g};break;default:x={x:i.x,y:i.y}}switch(co(n)){case"start":x[u]-=b*(r&&h?-1:1);break;case"end":x[u]+=b*(r&&h?-1:1);break}return x}const $M=async(e,n,r)=>{const{placement:i="bottom",strategy:l="absolute",middleware:c=[],platform:u}=r,f=c.filter(Boolean),p=await(u.isRTL==null?void 0:u.isRTL(n));let h=await u.getElementRects({reference:e,floating:n,strategy:l}),{x:v,y:g}=F0(h,i,p),b=i,x={},C=0;for(let S=0;S<f.length;S++){const{name:R,fn:_}=f[S],{x:A,y:M,data:k,reset:N}=await _({x:v,y:g,initialPlacement:i,placement:b,strategy:l,middlewareData:x,rects:h,platform:u,elements:{reference:e,floating:n}});v=A??v,g=M??g,x={...x,[R]:{...x[R],...k}},N&&C<=50&&(C++,typeof N=="object"&&(N.placement&&(b=N.placement),N.rects&&(h=N.rects===!0?await u.getElementRects({reference:e,floating:n,strategy:l}):N.rects),{x:v,y:g}=F0(h,b,p)),S=-1)}return{x:v,y:g,placement:b,strategy:l,middlewareData:x}};async function Al(e,n){var r;n===void 0&&(n={});const{x:i,y:l,platform:c,rects:u,elements:f,strategy:p}=e,{boundary:h="clippingAncestors",rootBoundary:v="viewport",elementContext:g="floating",altBoundary:b=!1,padding:x=0}=rr(n,e),C=rS(x),R=f[b?g==="floating"?"reference":"floating":g],_=Hu(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(R)))==null||r?R:R.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(f.floating)),boundary:h,rootBoundary:v,strategy:p})),A=g==="floating"?{x:i,y:l,width:u.floating.width,height:u.floating.height}:u.reference,M=await(c.getOffsetParent==null?void 0:c.getOffsetParent(f.floating)),k=await(c.isElement==null?void 0:c.isElement(M))?await(c.getScale==null?void 0:c.getScale(M))||{x:1,y:1}:{x:1,y:1},N=Hu(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:A,offsetParent:M,strategy:p}):A);return{top:(_.top-N.top+C.top)/k.y,bottom:(N.bottom-_.bottom+C.bottom)/k.y,left:(_.left-N.left+C.left)/k.x,right:(N.right-_.right+C.right)/k.x}}const FM=e=>({name:"arrow",options:e,async fn(n){const{x:r,y:i,placement:l,rects:c,platform:u,elements:f,middlewareData:p}=n,{element:h,padding:v=0}=rr(e,n)||{};if(h==null)return{};const g=rS(v),b={x:r,y:i},x=_m(l),C=Tm(x),S=await u.getDimensions(h),R=x==="y",_=R?"top":"left",A=R?"bottom":"right",M=R?"clientHeight":"clientWidth",k=c.reference[C]+c.reference[x]-b[x]-c.floating[C],N=b[x]-c.reference[x],z=await(u.getOffsetParent==null?void 0:u.getOffsetParent(h));let P=z?z[M]:0;(!P||!await(u.isElement==null?void 0:u.isElement(z)))&&(P=f.floating[M]||c.floating[C]);const D=k/2-N/2,B=P/2-S[C]/2-1,Y=Yr(g[_],B),Z=Yr(g[A],B),ee=Y,le=P-S[C]-Z,he=P/2-S[C]/2+D,ce=Up(ee,he,le),L=!p.arrow&&co(l)!=null&&he!==ce&&c.reference[C]/2-(he<ee?Y:Z)-S[C]/2<0,Q=L?he<ee?he-ee:he-le:0;return{[x]:b[x]+Q,data:{[x]:ce,centerOffset:he-ce-Q,...L&&{alignmentOffset:Q}},reset:L}}}),IM=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var r,i;const{placement:l,middlewareData:c,rects:u,initialPlacement:f,platform:p,elements:h}=n,{mainAxis:v=!0,crossAxis:g=!0,fallbackPlacements:b,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:S=!0,...R}=rr(e,n);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const _=ir(l),A=tr(f),M=ir(f)===f,k=await(p.isRTL==null?void 0:p.isRTL(h.floating)),N=b||(M||!S?[Uu(f)]:UM(f)),z=C!=="none";!b&&z&&N.push(...VM(f,S,C,k));const P=[f,...N],D=await Al(n,R),B=[];let Y=((i=c.flip)==null?void 0:i.overflows)||[];if(v&&B.push(D[_]),g){const ce=BM(l,u,k);B.push(D[ce[0]],D[ce[1]])}if(Y=[...Y,{placement:l,overflows:B}],!B.every(ce=>ce<=0)){var Z,ee;const ce=(((Z=c.flip)==null?void 0:Z.index)||0)+1,L=P[ce];if(L){var le;const $=g==="alignment"?A!==tr(L):!1,de=((le=Y[0])==null?void 0:le.overflows[0])>0;if(!$||de)return{data:{index:ce,overflows:Y},reset:{placement:L}}}let Q=(ee=Y.filter($=>$.overflows[0]<=0).sort(($,de)=>$.overflows[1]-de.overflows[1])[0])==null?void 0:ee.placement;if(!Q)switch(x){case"bestFit":{var he;const $=(he=Y.filter(de=>{if(z){const O=tr(de.placement);return O===A||O==="y"}return!0}).map(de=>[de.placement,de.overflows.filter(O=>O>0).reduce((O,q)=>O+q,0)]).sort((de,O)=>de[1]-O[1])[0])==null?void 0:he[0];$&&(Q=$);break}case"initialPlacement":Q=f;break}if(l!==Q)return{reset:{placement:Q}}}return{}}}};function I0(e,n){return{top:e.top-n.height,right:e.right-n.width,bottom:e.bottom-n.height,left:e.left-n.width}}function G0(e){return zM.some(n=>e[n]>=0)}const GM=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(n){const{rects:r}=n,{strategy:i="referenceHidden",...l}=rr(e,n);switch(i){case"referenceHidden":{const c=await Al(n,{...l,elementContext:"reference"}),u=I0(c,r.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:G0(u)}}}case"escaped":{const c=await Al(n,{...l,altBoundary:!0}),u=I0(c,r.floating);return{data:{escapedOffsets:u,escaped:G0(u)}}}default:return{}}}}};async function YM(e,n){const{placement:r,platform:i,elements:l}=e,c=await(i.isRTL==null?void 0:i.isRTL(l.floating)),u=ir(r),f=co(r),p=tr(r)==="y",h=["left","top"].includes(u)?-1:1,v=c&&p?-1:1,g=rr(n,e);let{mainAxis:b,crossAxis:x,alignmentAxis:C}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return f&&typeof C=="number"&&(x=f==="end"?C*-1:C),p?{x:x*v,y:b*h}:{x:b*h,y:x*v}}const QM=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(n){var r,i;const{x:l,y:c,placement:u,middlewareData:f}=n,p=await YM(n,e);return u===((r=f.offset)==null?void 0:r.placement)&&(i=f.arrow)!=null&&i.alignmentOffset?{}:{x:l+p.x,y:c+p.y,data:{...p,placement:u}}}}},KM=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(n){const{x:r,y:i,placement:l}=n,{mainAxis:c=!0,crossAxis:u=!1,limiter:f={fn:R=>{let{x:_,y:A}=R;return{x:_,y:A}}},...p}=rr(e,n),h={x:r,y:i},v=await Al(n,p),g=tr(ir(l)),b=Rm(g);let x=h[b],C=h[g];if(c){const R=b==="y"?"top":"left",_=b==="y"?"bottom":"right",A=x+v[R],M=x-v[_];x=Up(A,x,M)}if(u){const R=g==="y"?"top":"left",_=g==="y"?"bottom":"right",A=C+v[R],M=C-v[_];C=Up(A,C,M)}const S=f.fn({...n,[b]:x,[g]:C});return{...S,data:{x:S.x-r,y:S.y-i,enabled:{[b]:c,[g]:u}}}}}},XM=function(e){return e===void 0&&(e={}),{options:e,fn(n){const{x:r,y:i,placement:l,rects:c,middlewareData:u}=n,{offset:f=0,mainAxis:p=!0,crossAxis:h=!0}=rr(e,n),v={x:r,y:i},g=tr(l),b=Rm(g);let x=v[b],C=v[g];const S=rr(f,n),R=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(p){const M=b==="y"?"height":"width",k=c.reference[b]-c.floating[M]+R.mainAxis,N=c.reference[b]+c.reference[M]-R.mainAxis;x<k?x=k:x>N&&(x=N)}if(h){var _,A;const M=b==="y"?"width":"height",k=["top","left"].includes(ir(l)),N=c.reference[g]-c.floating[M]+(k&&((_=u.offset)==null?void 0:_[g])||0)+(k?0:R.crossAxis),z=c.reference[g]+c.reference[M]+(k?0:((A=u.offset)==null?void 0:A[g])||0)-(k?R.crossAxis:0);C<N?C=N:C>z&&(C=z)}return{[b]:x,[g]:C}}}},ZM=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(n){var r,i;const{placement:l,rects:c,platform:u,elements:f}=n,{apply:p=()=>{},...h}=rr(e,n),v=await Al(n,h),g=ir(l),b=co(l),x=tr(l)==="y",{width:C,height:S}=c.floating;let R,_;g==="top"||g==="bottom"?(R=g,_=b===(await(u.isRTL==null?void 0:u.isRTL(f.floating))?"start":"end")?"left":"right"):(_=g,R=b==="end"?"top":"bottom");const A=S-v.top-v.bottom,M=C-v.left-v.right,k=Yr(S-v[R],A),N=Yr(C-v[_],M),z=!n.middlewareData.shift;let P=k,D=N;if((r=n.middlewareData.shift)!=null&&r.enabled.x&&(D=M),(i=n.middlewareData.shift)!=null&&i.enabled.y&&(P=A),z&&!b){const Y=Mn(v.left,0),Z=Mn(v.right,0),ee=Mn(v.top,0),le=Mn(v.bottom,0);x?D=C-2*(Y!==0||Z!==0?Y+Z:Mn(v.left,v.right)):P=S-2*(ee!==0||le!==0?ee+le:Mn(v.top,v.bottom))}await p({...n,availableWidth:D,availableHeight:P});const B=await u.getDimensions(f.floating);return C!==B.width||S!==B.height?{reset:{rects:!0}}:{}}}};function od(){return typeof window<"u"}function uo(e){return iS(e)?(e.nodeName||"").toLowerCase():"#document"}function Dn(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function Da(e){var n;return(n=(iS(e)?e.ownerDocument:e.document)||window.document)==null?void 0:n.documentElement}function iS(e){return od()?e instanceof Node||e instanceof Dn(e).Node:!1}function la(e){return od()?e instanceof Element||e instanceof Dn(e).Element:!1}function _a(e){return od()?e instanceof HTMLElement||e instanceof Dn(e).HTMLElement:!1}function Y0(e){return!od()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Dn(e).ShadowRoot}function Vl(e){const{overflow:n,overflowX:r,overflowY:i,display:l}=ca(e);return/auto|scroll|overlay|hidden|clip/.test(n+i+r)&&!["inline","contents"].includes(l)}function WM(e){return["table","td","th"].includes(uo(e))}function ld(e){return[":popover-open",":modal"].some(n=>{try{return e.matches(n)}catch{return!1}})}function Am(e){const n=Mm(),r=la(e)?ca(e):e;return["transform","translate","scale","rotate","perspective"].some(i=>r[i]?r[i]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!n&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!n&&(r.filter?r.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(i=>(r.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(r.contain||"").includes(i))}function JM(e){let n=Qr(e);for(;_a(n)&&!ro(n);){if(Am(n))return n;if(ld(n))return null;n=Qr(n)}return null}function Mm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ro(e){return["html","body","#document"].includes(uo(e))}function ca(e){return Dn(e).getComputedStyle(e)}function cd(e){return la(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Qr(e){if(uo(e)==="html")return e;const n=e.assignedSlot||e.parentNode||Y0(e)&&e.host||Da(e);return Y0(n)?n.host:n}function sS(e){const n=Qr(e);return ro(n)?e.ownerDocument?e.ownerDocument.body:e.body:_a(n)&&Vl(n)?n:sS(n)}function Ml(e,n,r){var i;n===void 0&&(n=[]),r===void 0&&(r=!0);const l=sS(e),c=l===((i=e.ownerDocument)==null?void 0:i.body),u=Dn(l);if(c){const f=Vp(u);return n.concat(u,u.visualViewport||[],Vl(l)?l:[],f&&r?Ml(f):[])}return n.concat(l,Ml(l,[],r))}function Vp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function oS(e){const n=ca(e);let r=parseFloat(n.width)||0,i=parseFloat(n.height)||0;const l=_a(e),c=l?e.offsetWidth:r,u=l?e.offsetHeight:i,f=Bu(r)!==c||Bu(i)!==u;return f&&(r=c,i=u),{width:r,height:i,$:f}}function Dm(e){return la(e)?e:e.contextElement}function Us(e){const n=Dm(e);if(!_a(n))return Ta(1);const r=n.getBoundingClientRect(),{width:i,height:l,$:c}=oS(n);let u=(c?Bu(r.width):r.width)/i,f=(c?Bu(r.height):r.height)/l;return(!u||!Number.isFinite(u))&&(u=1),(!f||!Number.isFinite(f))&&(f=1),{x:u,y:f}}const eD=Ta(0);function lS(e){const n=Dn(e);return!Mm()||!n.visualViewport?eD:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function tD(e,n,r){return n===void 0&&(n=!1),!r||n&&r!==Dn(e)?!1:n}function Pi(e,n,r,i){n===void 0&&(n=!1),r===void 0&&(r=!1);const l=e.getBoundingClientRect(),c=Dm(e);let u=Ta(1);n&&(i?la(i)&&(u=Us(i)):u=Us(e));const f=tD(c,r,i)?lS(c):Ta(0);let p=(l.left+f.x)/u.x,h=(l.top+f.y)/u.y,v=l.width/u.x,g=l.height/u.y;if(c){const b=Dn(c),x=i&&la(i)?Dn(i):i;let C=b,S=Vp(C);for(;S&&i&&x!==C;){const R=Us(S),_=S.getBoundingClientRect(),A=ca(S),M=_.left+(S.clientLeft+parseFloat(A.paddingLeft))*R.x,k=_.top+(S.clientTop+parseFloat(A.paddingTop))*R.y;p*=R.x,h*=R.y,v*=R.x,g*=R.y,p+=M,h+=k,C=Dn(S),S=Vp(C)}}return Hu({width:v,height:g,x:p,y:h})}function Om(e,n){const r=cd(e).scrollLeft;return n?n.left+r:Pi(Da(e)).left+r}function cS(e,n,r){r===void 0&&(r=!1);const i=e.getBoundingClientRect(),l=i.left+n.scrollLeft-(r?0:Om(e,i)),c=i.top+n.scrollTop;return{x:l,y:c}}function nD(e){let{elements:n,rect:r,offsetParent:i,strategy:l}=e;const c=l==="fixed",u=Da(i),f=n?ld(n.floating):!1;if(i===u||f&&c)return r;let p={scrollLeft:0,scrollTop:0},h=Ta(1);const v=Ta(0),g=_a(i);if((g||!g&&!c)&&((uo(i)!=="body"||Vl(u))&&(p=cd(i)),_a(i))){const x=Pi(i);h=Us(i),v.x=x.x+i.clientLeft,v.y=x.y+i.clientTop}const b=u&&!g&&!c?cS(u,p,!0):Ta(0);return{width:r.width*h.x,height:r.height*h.y,x:r.x*h.x-p.scrollLeft*h.x+v.x+b.x,y:r.y*h.y-p.scrollTop*h.y+v.y+b.y}}function aD(e){return Array.from(e.getClientRects())}function rD(e){const n=Da(e),r=cd(e),i=e.ownerDocument.body,l=Mn(n.scrollWidth,n.clientWidth,i.scrollWidth,i.clientWidth),c=Mn(n.scrollHeight,n.clientHeight,i.scrollHeight,i.clientHeight);let u=-r.scrollLeft+Om(e);const f=-r.scrollTop;return ca(i).direction==="rtl"&&(u+=Mn(n.clientWidth,i.clientWidth)-l),{width:l,height:c,x:u,y:f}}function iD(e,n){const r=Dn(e),i=Da(e),l=r.visualViewport;let c=i.clientWidth,u=i.clientHeight,f=0,p=0;if(l){c=l.width,u=l.height;const h=Mm();(!h||h&&n==="fixed")&&(f=l.offsetLeft,p=l.offsetTop)}return{width:c,height:u,x:f,y:p}}function sD(e,n){const r=Pi(e,!0,n==="fixed"),i=r.top+e.clientTop,l=r.left+e.clientLeft,c=_a(e)?Us(e):Ta(1),u=e.clientWidth*c.x,f=e.clientHeight*c.y,p=l*c.x,h=i*c.y;return{width:u,height:f,x:p,y:h}}function Q0(e,n,r){let i;if(n==="viewport")i=iD(e,r);else if(n==="document")i=rD(Da(e));else if(la(n))i=sD(n,r);else{const l=lS(e);i={x:n.x-l.x,y:n.y-l.y,width:n.width,height:n.height}}return Hu(i)}function uS(e,n){const r=Qr(e);return r===n||!la(r)||ro(r)?!1:ca(r).position==="fixed"||uS(r,n)}function oD(e,n){const r=n.get(e);if(r)return r;let i=Ml(e,[],!1).filter(f=>la(f)&&uo(f)!=="body"),l=null;const c=ca(e).position==="fixed";let u=c?Qr(e):e;for(;la(u)&&!ro(u);){const f=ca(u),p=Am(u);!p&&f.position==="fixed"&&(l=null),(c?!p&&!l:!p&&f.position==="static"&&!!l&&["absolute","fixed"].includes(l.position)||Vl(u)&&!p&&uS(e,u))?i=i.filter(v=>v!==u):l=f,u=Qr(u)}return n.set(e,i),i}function lD(e){let{element:n,boundary:r,rootBoundary:i,strategy:l}=e;const u=[...r==="clippingAncestors"?ld(n)?[]:oD(n,this._c):[].concat(r),i],f=u[0],p=u.reduce((h,v)=>{const g=Q0(n,v,l);return h.top=Mn(g.top,h.top),h.right=Yr(g.right,h.right),h.bottom=Yr(g.bottom,h.bottom),h.left=Mn(g.left,h.left),h},Q0(n,f,l));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function cD(e){const{width:n,height:r}=oS(e);return{width:n,height:r}}function uD(e,n,r){const i=_a(n),l=Da(n),c=r==="fixed",u=Pi(e,!0,c,n);let f={scrollLeft:0,scrollTop:0};const p=Ta(0);function h(){p.x=Om(l)}if(i||!i&&!c)if((uo(n)!=="body"||Vl(l))&&(f=cd(n)),i){const x=Pi(n,!0,c,n);p.x=x.x+n.clientLeft,p.y=x.y+n.clientTop}else l&&h();c&&!i&&l&&h();const v=l&&!i&&!c?cS(l,f):Ta(0),g=u.left+f.scrollLeft-p.x-v.x,b=u.top+f.scrollTop-p.y-v.y;return{x:g,y:b,width:u.width,height:u.height}}function rp(e){return ca(e).position==="static"}function K0(e,n){if(!_a(e)||ca(e).position==="fixed")return null;if(n)return n(e);let r=e.offsetParent;return Da(e)===r&&(r=r.ownerDocument.body),r}function dS(e,n){const r=Dn(e);if(ld(e))return r;if(!_a(e)){let l=Qr(e);for(;l&&!ro(l);){if(la(l)&&!rp(l))return l;l=Qr(l)}return r}let i=K0(e,n);for(;i&&WM(i)&&rp(i);)i=K0(i,n);return i&&ro(i)&&rp(i)&&!Am(i)?r:i||JM(e)||r}const dD=async function(e){const n=this.getOffsetParent||dS,r=this.getDimensions,i=await r(e.floating);return{reference:uD(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function fD(e){return ca(e).direction==="rtl"}const hD={convertOffsetParentRelativeRectToViewportRelativeRect:nD,getDocumentElement:Da,getClippingRect:lD,getOffsetParent:dS,getElementRects:dD,getClientRects:aD,getDimensions:cD,getScale:Us,isElement:la,isRTL:fD};function fS(e,n){return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height}function pD(e,n){let r=null,i;const l=Da(e);function c(){var f;clearTimeout(i),(f=r)==null||f.disconnect(),r=null}function u(f,p){f===void 0&&(f=!1),p===void 0&&(p=1),c();const h=e.getBoundingClientRect(),{left:v,top:g,width:b,height:x}=h;if(f||n(),!b||!x)return;const C=fu(g),S=fu(l.clientWidth-(v+b)),R=fu(l.clientHeight-(g+x)),_=fu(v),M={rootMargin:-C+"px "+-S+"px "+-R+"px "+-_+"px",threshold:Mn(0,Yr(1,p))||1};let k=!0;function N(z){const P=z[0].intersectionRatio;if(P!==p){if(!k)return u();P?u(!1,P):i=setTimeout(()=>{u(!1,1e-7)},1e3)}P===1&&!fS(h,e.getBoundingClientRect())&&u(),k=!1}try{r=new IntersectionObserver(N,{...M,root:l.ownerDocument})}catch{r=new IntersectionObserver(N,M)}r.observe(e)}return u(!0),c}function mD(e,n,r,i){i===void 0&&(i={});const{ancestorScroll:l=!0,ancestorResize:c=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:p=!1}=i,h=Dm(e),v=l||c?[...h?Ml(h):[],...Ml(n)]:[];v.forEach(_=>{l&&_.addEventListener("scroll",r,{passive:!0}),c&&_.addEventListener("resize",r)});const g=h&&f?pD(h,r):null;let b=-1,x=null;u&&(x=new ResizeObserver(_=>{let[A]=_;A&&A.target===h&&x&&(x.unobserve(n),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var M;(M=x)==null||M.observe(n)})),r()}),h&&!p&&x.observe(h),x.observe(n));let C,S=p?Pi(e):null;p&&R();function R(){const _=Pi(e);S&&!fS(S,_)&&r(),S=_,C=requestAnimationFrame(R)}return r(),()=>{var _;v.forEach(A=>{l&&A.removeEventListener("scroll",r),c&&A.removeEventListener("resize",r)}),g==null||g(),(_=x)==null||_.disconnect(),x=null,p&&cancelAnimationFrame(C)}}const gD=QM,vD=KM,yD=IM,bD=ZM,xD=GM,X0=FM,wD=XM,SD=(e,n,r)=>{const i=new Map,l={platform:hD,...r},c={...l.platform,_c:i};return $M(e,n,{...l,platform:c})};var Ru=typeof document<"u"?w.useLayoutEffect:w.useEffect;function Vu(e,n){if(e===n)return!0;if(typeof e!=typeof n)return!1;if(typeof e=="function"&&e.toString()===n.toString())return!0;let r,i,l;if(e&&n&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==n.length)return!1;for(i=r;i--!==0;)if(!Vu(e[i],n[i]))return!1;return!0}if(l=Object.keys(e),r=l.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!{}.hasOwnProperty.call(n,l[i]))return!1;for(i=r;i--!==0;){const c=l[i];if(!(c==="_owner"&&e.$$typeof)&&!Vu(e[c],n[c]))return!1}return!0}return e!==e&&n!==n}function hS(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Z0(e,n){const r=hS(e);return Math.round(n*r)/r}function ip(e){const n=w.useRef(e);return Ru(()=>{n.current=e}),n}function CD(e){e===void 0&&(e={});const{placement:n="bottom",strategy:r="absolute",middleware:i=[],platform:l,elements:{reference:c,floating:u}={},transform:f=!0,whileElementsMounted:p,open:h}=e,[v,g]=w.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[b,x]=w.useState(i);Vu(b,i)||x(i);const[C,S]=w.useState(null),[R,_]=w.useState(null),A=w.useCallback($=>{$!==z.current&&(z.current=$,S($))},[]),M=w.useCallback($=>{$!==P.current&&(P.current=$,_($))},[]),k=c||C,N=u||R,z=w.useRef(null),P=w.useRef(null),D=w.useRef(v),B=p!=null,Y=ip(p),Z=ip(l),ee=ip(h),le=w.useCallback(()=>{if(!z.current||!P.current)return;const $={placement:n,strategy:r,middleware:b};Z.current&&($.platform=Z.current),SD(z.current,P.current,$).then(de=>{const O={...de,isPositioned:ee.current!==!1};he.current&&!Vu(D.current,O)&&(D.current=O,sa.flushSync(()=>{g(O)}))})},[b,n,r,Z,ee]);Ru(()=>{h===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,g($=>({...$,isPositioned:!1})))},[h]);const he=w.useRef(!1);Ru(()=>(he.current=!0,()=>{he.current=!1}),[]),Ru(()=>{if(k&&(z.current=k),N&&(P.current=N),k&&N){if(Y.current)return Y.current(k,N,le);le()}},[k,N,le,Y,B]);const ce=w.useMemo(()=>({reference:z,floating:P,setReference:A,setFloating:M}),[A,M]),L=w.useMemo(()=>({reference:k,floating:N}),[k,N]),Q=w.useMemo(()=>{const $={position:r,left:0,top:0};if(!L.floating)return $;const de=Z0(L.floating,v.x),O=Z0(L.floating,v.y);return f?{...$,transform:"translate("+de+"px, "+O+"px)",...hS(L.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:de,top:O}},[r,f,L.floating,v.x,v.y]);return w.useMemo(()=>({...v,update:le,refs:ce,elements:L,floatingStyles:Q}),[v,le,ce,L,Q])}const ED=e=>{function n(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:i,padding:l}=typeof e=="function"?e(r):e;return i&&n(i)?i.current!=null?X0({element:i.current,padding:l}).fn(r):{}:i?X0({element:i,padding:l}).fn(r):{}}}},RD=(e,n)=>({...gD(e),options:[e,n]}),TD=(e,n)=>({...vD(e),options:[e,n]}),_D=(e,n)=>({...wD(e),options:[e,n]}),AD=(e,n)=>({...yD(e),options:[e,n]}),MD=(e,n)=>({...bD(e),options:[e,n]}),DD=(e,n)=>({...xD(e),options:[e,n]}),OD=(e,n)=>({...ED(e),options:[e,n]});var ND="Arrow",pS=w.forwardRef((e,n)=>{const{children:r,width:i=10,height:l=5,...c}=e;return y.jsx(dt.svg,{...c,ref:n,width:i,height:l,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});pS.displayName=ND;var kD=pS,Nm="Popper",[mS,ud]=Hl(Nm),[jD,gS]=mS(Nm),vS=e=>{const{__scopePopper:n,children:r}=e,[i,l]=w.useState(null);return y.jsx(jD,{scope:n,anchor:i,onAnchorChange:l,children:r})};vS.displayName=Nm;var yS="PopperAnchor",bS=w.forwardRef((e,n)=>{const{__scopePopper:r,virtualRef:i,...l}=e,c=gS(yS,r),u=w.useRef(null),f=xt(n,u);return w.useEffect(()=>{c.onAnchorChange((i==null?void 0:i.current)||u.current)}),i?null:y.jsx(dt.div,{...l,ref:f})});bS.displayName=yS;var km="PopperContent",[zD,LD]=mS(km),xS=w.forwardRef((e,n)=>{var re,oe,pe,ue,xe,me;const{__scopePopper:r,side:i="bottom",sideOffset:l=0,align:c="center",alignOffset:u=0,arrowPadding:f=0,avoidCollisions:p=!0,collisionBoundary:h=[],collisionPadding:v=0,sticky:g="partial",hideWhenDetached:b=!1,updatePositionStrategy:x="optimized",onPlaced:C,...S}=e,R=gS(km,r),[_,A]=w.useState(null),M=xt(n,ze=>A(ze)),[k,N]=w.useState(null),z=jM(k),P=(z==null?void 0:z.width)??0,D=(z==null?void 0:z.height)??0,B=i+(c!=="center"?"-"+c:""),Y=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},Z=Array.isArray(h)?h:[h],ee=Z.length>0,le={padding:Y,boundary:Z.filter(BD),altBoundary:ee},{refs:he,floatingStyles:ce,placement:L,isPositioned:Q,middlewareData:$}=CD({strategy:"fixed",placement:B,whileElementsMounted:(...ze)=>mD(...ze,{animationFrame:x==="always"}),elements:{reference:R.anchor},middleware:[RD({mainAxis:l+D,alignmentAxis:u}),p&&TD({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?_D():void 0,...le}),p&&AD({...le}),MD({...le,apply:({elements:ze,rects:He,availableWidth:vt,availableHeight:it})=>{const{width:Fe,height:ln}=He.reference,mt=ze.floating.style;mt.setProperty("--radix-popper-available-width",`${vt}px`),mt.setProperty("--radix-popper-available-height",`${it}px`),mt.setProperty("--radix-popper-anchor-width",`${Fe}px`),mt.setProperty("--radix-popper-anchor-height",`${ln}px`)}}),k&&OD({element:k,padding:f}),UD({arrowWidth:P,arrowHeight:D}),b&&DD({strategy:"referenceHidden",...le})]}),[de,O]=CS(L),q=zi(C);en(()=>{Q&&(q==null||q())},[Q,q]);const W=(re=$.arrow)==null?void 0:re.x,X=(oe=$.arrow)==null?void 0:oe.y,te=((pe=$.arrow)==null?void 0:pe.centerOffset)!==0,[fe,ae]=w.useState();return en(()=>{_&&ae(window.getComputedStyle(_).zIndex)},[_]),y.jsx("div",{ref:he.setFloating,"data-radix-popper-content-wrapper":"",style:{...ce,transform:Q?ce.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:fe,"--radix-popper-transform-origin":[(ue=$.transformOrigin)==null?void 0:ue.x,(xe=$.transformOrigin)==null?void 0:xe.y].join(" "),...((me=$.hide)==null?void 0:me.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:y.jsx(zD,{scope:r,placedSide:de,onArrowChange:N,arrowX:W,arrowY:X,shouldHideArrow:te,children:y.jsx(dt.div,{"data-side":de,"data-align":O,...S,ref:M,style:{...S.style,animation:Q?void 0:"none"}})})})});xS.displayName=km;var wS="PopperArrow",PD={top:"bottom",right:"left",bottom:"top",left:"right"},SS=w.forwardRef(function(n,r){const{__scopePopper:i,...l}=n,c=LD(wS,i),u=PD[c.placedSide];return y.jsx("span",{ref:c.onArrowChange,style:{position:"absolute",left:c.arrowX,top:c.arrowY,[u]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[c.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[c.placedSide],visibility:c.shouldHideArrow?"hidden":void 0},children:y.jsx(kD,{...l,ref:r,style:{...l.style,display:"block"}})})});SS.displayName=wS;function BD(e){return e!==null}var UD=e=>({name:"transformOrigin",options:e,fn(n){var R,_,A;const{placement:r,rects:i,middlewareData:l}=n,u=((R=l.arrow)==null?void 0:R.centerOffset)!==0,f=u?0:e.arrowWidth,p=u?0:e.arrowHeight,[h,v]=CS(r),g={start:"0%",center:"50%",end:"100%"}[v],b=(((_=l.arrow)==null?void 0:_.x)??0)+f/2,x=(((A=l.arrow)==null?void 0:A.y)??0)+p/2;let C="",S="";return h==="bottom"?(C=u?g:`${b}px`,S=`${-p}px`):h==="top"?(C=u?g:`${b}px`,S=`${i.floating.height+p}px`):h==="right"?(C=`${-p}px`,S=u?g:`${x}px`):h==="left"&&(C=`${i.floating.width+p}px`,S=u?g:`${x}px`),{data:{x:C,y:S}}}});function CS(e){const[n,r="center"]=e.split("-");return[n,r]}var ES=vS,RS=bS,TS=xS,_S=SS;function W0(e,[n,r]){return Math.min(r,Math.max(n,e))}var HD=[" ","Enter","ArrowUp","ArrowDown"],VD=[" ","Enter"],Bi="Select",[dd,fd,qD]=uA(Bi),[fo,iL]=Hl(Bi,[qD,ud]),hd=ud(),[$D,Jr]=fo(Bi),[FD,ID]=fo(Bi),AS=e=>{const{__scopeSelect:n,children:r,open:i,defaultOpen:l,onOpenChange:c,value:u,defaultValue:f,onValueChange:p,dir:h,name:v,autoComplete:g,disabled:b,required:x,form:C}=e,S=hd(n),[R,_]=w.useState(null),[A,M]=w.useState(null),[k,N]=w.useState(!1),z=xA(h),[P,D]=Lu({prop:i,defaultProp:l??!1,onChange:c,caller:Bi}),[B,Y]=Lu({prop:u,defaultProp:f,onChange:p,caller:Bi}),Z=w.useRef(null),ee=R?C||!!R.closest("form"):!0,[le,he]=w.useState(new Set),ce=Array.from(le).map(L=>L.props.value).join(";");return y.jsx(ES,{...S,children:y.jsxs($D,{required:x,scope:n,trigger:R,onTriggerChange:_,valueNode:A,onValueNodeChange:M,valueNodeHasChildren:k,onValueNodeHasChildrenChange:N,contentId:Oi(),value:B,onValueChange:Y,open:P,onOpenChange:D,dir:z,triggerPointerDownPosRef:Z,disabled:b,children:[y.jsx(dd.Provider,{scope:n,children:y.jsx(FD,{scope:e.__scopeSelect,onNativeOptionAdd:w.useCallback(L=>{he(Q=>new Set(Q).add(L))},[]),onNativeOptionRemove:w.useCallback(L=>{he(Q=>{const $=new Set(Q);return $.delete(L),$})},[]),children:r})}),ee?y.jsxs(XS,{"aria-hidden":!0,required:x,tabIndex:-1,name:v,autoComplete:g,value:B,onChange:L=>Y(L.target.value),disabled:b,form:C,children:[B===void 0?y.jsx("option",{value:""}):null,Array.from(le)]},ce):null]})})};AS.displayName=Bi;var MS="SelectTrigger",DS=w.forwardRef((e,n)=>{const{__scopeSelect:r,disabled:i=!1,...l}=e,c=hd(r),u=Jr(MS,r),f=u.disabled||i,p=xt(n,u.onTriggerChange),h=fd(r),v=w.useRef("touch"),[g,b,x]=WS(S=>{const R=h().filter(M=>!M.disabled),_=R.find(M=>M.value===u.value),A=JS(R,S,_);A!==void 0&&u.onValueChange(A.value)}),C=S=>{f||(u.onOpenChange(!0),x()),S&&(u.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})};return y.jsx(RS,{asChild:!0,...c,children:y.jsx(dt.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:f,"data-disabled":f?"":void 0,"data-placeholder":ZS(u.value)?"":void 0,...l,ref:p,onClick:Xe(l.onClick,S=>{S.currentTarget.focus(),v.current!=="mouse"&&C(S)}),onPointerDown:Xe(l.onPointerDown,S=>{v.current=S.pointerType;const R=S.target;R.hasPointerCapture(S.pointerId)&&R.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(C(S),S.preventDefault())}),onKeyDown:Xe(l.onKeyDown,S=>{const R=g.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&b(S.key),!(R&&S.key===" ")&&HD.includes(S.key)&&(C(),S.preventDefault())})})})});DS.displayName=MS;var OS="SelectValue",NS=w.forwardRef((e,n)=>{const{__scopeSelect:r,className:i,style:l,children:c,placeholder:u="",...f}=e,p=Jr(OS,r),{onValueNodeHasChildrenChange:h}=p,v=c!==void 0,g=xt(n,p.onValueNodeChange);return en(()=>{h(v)},[h,v]),y.jsx(dt.span,{...f,ref:g,style:{pointerEvents:"none"},children:ZS(p.value)?y.jsx(y.Fragment,{children:u}):c})});NS.displayName=OS;var GD="SelectIcon",kS=w.forwardRef((e,n)=>{const{__scopeSelect:r,children:i,...l}=e;return y.jsx(dt.span,{"aria-hidden":!0,...l,ref:n,children:i||"▼"})});kS.displayName=GD;var YD="SelectPortal",jS=e=>y.jsx(rd,{asChild:!0,...e});jS.displayName=YD;var Ui="SelectContent",zS=w.forwardRef((e,n)=>{const r=Jr(Ui,e.__scopeSelect),[i,l]=w.useState();if(en(()=>{l(new DocumentFragment)},[]),!r.open){const c=i;return c?sa.createPortal(y.jsx(LS,{scope:e.__scopeSelect,children:y.jsx(dd.Slot,{scope:e.__scopeSelect,children:y.jsx("div",{children:e.children})})}),c):null}return y.jsx(PS,{...e,ref:n})});zS.displayName=Ui;var ea=10,[LS,ei]=fo(Ui),QD="SelectContentImpl",KD=ao("SelectContent.RemoveScroll"),PS=w.forwardRef((e,n)=>{const{__scopeSelect:r,position:i="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:c,onPointerDownOutside:u,side:f,sideOffset:p,align:h,alignOffset:v,arrowPadding:g,collisionBoundary:b,collisionPadding:x,sticky:C,hideWhenDetached:S,avoidCollisions:R,..._}=e,A=Jr(Ui,r),[M,k]=w.useState(null),[N,z]=w.useState(null),P=xt(n,re=>k(re)),[D,B]=w.useState(null),[Y,Z]=w.useState(null),ee=fd(r),[le,he]=w.useState(!1),ce=w.useRef(!1);w.useEffect(()=>{if(M)return zw(M)},[M]),Tw();const L=w.useCallback(re=>{const[oe,...pe]=ee().map(me=>me.ref.current),[ue]=pe.slice(-1),xe=document.activeElement;for(const me of re)if(me===xe||(me==null||me.scrollIntoView({block:"nearest"}),me===oe&&N&&(N.scrollTop=0),me===ue&&N&&(N.scrollTop=N.scrollHeight),me==null||me.focus(),document.activeElement!==xe))return},[ee,N]),Q=w.useCallback(()=>L([D,M]),[L,D,M]);w.useEffect(()=>{le&&Q()},[le,Q]);const{onOpenChange:$,triggerPointerDownPosRef:de}=A;w.useEffect(()=>{if(M){let re={x:0,y:0};const oe=ue=>{var xe,me;re={x:Math.abs(Math.round(ue.pageX)-(((xe=de.current)==null?void 0:xe.x)??0)),y:Math.abs(Math.round(ue.pageY)-(((me=de.current)==null?void 0:me.y)??0))}},pe=ue=>{re.x<=10&&re.y<=10?ue.preventDefault():M.contains(ue.target)||$(!1),document.removeEventListener("pointermove",oe),de.current=null};return de.current!==null&&(document.addEventListener("pointermove",oe),document.addEventListener("pointerup",pe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",oe),document.removeEventListener("pointerup",pe,{capture:!0})}}},[M,$,de]),w.useEffect(()=>{const re=()=>$(!1);return window.addEventListener("blur",re),window.addEventListener("resize",re),()=>{window.removeEventListener("blur",re),window.removeEventListener("resize",re)}},[$]);const[O,q]=WS(re=>{const oe=ee().filter(xe=>!xe.disabled),pe=oe.find(xe=>xe.ref.current===document.activeElement),ue=JS(oe,re,pe);ue&&setTimeout(()=>ue.ref.current.focus())}),W=w.useCallback((re,oe,pe)=>{const ue=!ce.current&&!pe;(A.value!==void 0&&A.value===oe||ue)&&(B(re),ue&&(ce.current=!0))},[A.value]),X=w.useCallback(()=>M==null?void 0:M.focus(),[M]),te=w.useCallback((re,oe,pe)=>{const ue=!ce.current&&!pe;(A.value!==void 0&&A.value===oe||ue)&&Z(re)},[A.value]),fe=i==="popper"?qp:BS,ae=fe===qp?{side:f,sideOffset:p,align:h,alignOffset:v,arrowPadding:g,collisionBoundary:b,collisionPadding:x,sticky:C,hideWhenDetached:S,avoidCollisions:R}:{};return y.jsx(LS,{scope:r,content:M,viewport:N,onViewportChange:z,itemRefCallback:W,selectedItem:D,onItemLeave:X,itemTextRefCallback:te,focusSelectedItem:Q,selectedItemText:Y,position:i,isPositioned:le,searchRef:O,children:y.jsx(wm,{as:KD,allowPinchZoom:!0,children:y.jsx(xm,{asChild:!0,trapped:A.open,onMountAutoFocus:re=>{re.preventDefault()},onUnmountAutoFocus:Xe(l,re=>{var oe;(oe=A.trigger)==null||oe.focus({preventScroll:!0}),re.preventDefault()}),children:y.jsx(ad,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:re=>re.preventDefault(),onDismiss:()=>A.onOpenChange(!1),children:y.jsx(fe,{role:"listbox",id:A.contentId,"data-state":A.open?"open":"closed",dir:A.dir,onContextMenu:re=>re.preventDefault(),..._,...ae,onPlaced:()=>he(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",..._.style},onKeyDown:Xe(_.onKeyDown,re=>{const oe=re.ctrlKey||re.altKey||re.metaKey;if(re.key==="Tab"&&re.preventDefault(),!oe&&re.key.length===1&&q(re.key),["ArrowUp","ArrowDown","Home","End"].includes(re.key)){let ue=ee().filter(xe=>!xe.disabled).map(xe=>xe.ref.current);if(["ArrowUp","End"].includes(re.key)&&(ue=ue.slice().reverse()),["ArrowUp","ArrowDown"].includes(re.key)){const xe=re.target,me=ue.indexOf(xe);ue=ue.slice(me+1)}setTimeout(()=>L(ue)),re.preventDefault()}})})})})})})});PS.displayName=QD;var XD="SelectItemAlignedPosition",BS=w.forwardRef((e,n)=>{const{__scopeSelect:r,onPlaced:i,...l}=e,c=Jr(Ui,r),u=ei(Ui,r),[f,p]=w.useState(null),[h,v]=w.useState(null),g=xt(n,P=>v(P)),b=fd(r),x=w.useRef(!1),C=w.useRef(!0),{viewport:S,selectedItem:R,selectedItemText:_,focusSelectedItem:A}=u,M=w.useCallback(()=>{if(c.trigger&&c.valueNode&&f&&h&&S&&R&&_){const P=c.trigger.getBoundingClientRect(),D=h.getBoundingClientRect(),B=c.valueNode.getBoundingClientRect(),Y=_.getBoundingClientRect();if(c.dir!=="rtl"){const xe=Y.left-D.left,me=B.left-xe,ze=P.left-me,He=P.width+ze,vt=Math.max(He,D.width),it=window.innerWidth-ea,Fe=W0(me,[ea,Math.max(ea,it-vt)]);f.style.minWidth=He+"px",f.style.left=Fe+"px"}else{const xe=D.right-Y.right,me=window.innerWidth-B.right-xe,ze=window.innerWidth-P.right-me,He=P.width+ze,vt=Math.max(He,D.width),it=window.innerWidth-ea,Fe=W0(me,[ea,Math.max(ea,it-vt)]);f.style.minWidth=He+"px",f.style.right=Fe+"px"}const Z=b(),ee=window.innerHeight-ea*2,le=S.scrollHeight,he=window.getComputedStyle(h),ce=parseInt(he.borderTopWidth,10),L=parseInt(he.paddingTop,10),Q=parseInt(he.borderBottomWidth,10),$=parseInt(he.paddingBottom,10),de=ce+L+le+$+Q,O=Math.min(R.offsetHeight*5,de),q=window.getComputedStyle(S),W=parseInt(q.paddingTop,10),X=parseInt(q.paddingBottom,10),te=P.top+P.height/2-ea,fe=ee-te,ae=R.offsetHeight/2,re=R.offsetTop+ae,oe=ce+L+re,pe=de-oe;if(oe<=te){const xe=Z.length>0&&R===Z[Z.length-1].ref.current;f.style.bottom="0px";const me=h.clientHeight-S.offsetTop-S.offsetHeight,ze=Math.max(fe,ae+(xe?X:0)+me+Q),He=oe+ze;f.style.height=He+"px"}else{const xe=Z.length>0&&R===Z[0].ref.current;f.style.top="0px";const ze=Math.max(te,ce+S.offsetTop+(xe?W:0)+ae)+pe;f.style.height=ze+"px",S.scrollTop=oe-te+S.offsetTop}f.style.margin=`${ea}px 0`,f.style.minHeight=O+"px",f.style.maxHeight=ee+"px",i==null||i(),requestAnimationFrame(()=>x.current=!0)}},[b,c.trigger,c.valueNode,f,h,S,R,_,c.dir,i]);en(()=>M(),[M]);const[k,N]=w.useState();en(()=>{h&&N(window.getComputedStyle(h).zIndex)},[h]);const z=w.useCallback(P=>{P&&C.current===!0&&(M(),A==null||A(),C.current=!1)},[M,A]);return y.jsx(WD,{scope:r,contentWrapper:f,shouldExpandOnScrollRef:x,onScrollButtonChange:z,children:y.jsx("div",{ref:p,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:y.jsx(dt.div,{...l,ref:g,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})});BS.displayName=XD;var ZD="SelectPopperPosition",qp=w.forwardRef((e,n)=>{const{__scopeSelect:r,align:i="start",collisionPadding:l=ea,...c}=e,u=hd(r);return y.jsx(TS,{...u,...c,ref:n,align:i,collisionPadding:l,style:{boxSizing:"border-box",...c.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});qp.displayName=ZD;var[WD,jm]=fo(Ui,{}),$p="SelectViewport",US=w.forwardRef((e,n)=>{const{__scopeSelect:r,nonce:i,...l}=e,c=ei($p,r),u=jm($p,r),f=xt(n,c.onViewportChange),p=w.useRef(0);return y.jsxs(y.Fragment,{children:[y.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),y.jsx(dd.Slot,{scope:r,children:y.jsx(dt.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:f,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:Xe(l.onScroll,h=>{const v=h.currentTarget,{contentWrapper:g,shouldExpandOnScrollRef:b}=u;if(b!=null&&b.current&&g){const x=Math.abs(p.current-v.scrollTop);if(x>0){const C=window.innerHeight-ea*2,S=parseFloat(g.style.minHeight),R=parseFloat(g.style.height),_=Math.max(S,R);if(_<C){const A=_+x,M=Math.min(C,A),k=A-M;g.style.height=M+"px",g.style.bottom==="0px"&&(v.scrollTop=k>0?k:0,g.style.justifyContent="flex-end")}}}p.current=v.scrollTop})})})]})});US.displayName=$p;var HS="SelectGroup",[JD,eO]=fo(HS),tO=w.forwardRef((e,n)=>{const{__scopeSelect:r,...i}=e,l=Oi();return y.jsx(JD,{scope:r,id:l,children:y.jsx(dt.div,{role:"group","aria-labelledby":l,...i,ref:n})})});tO.displayName=HS;var VS="SelectLabel",nO=w.forwardRef((e,n)=>{const{__scopeSelect:r,...i}=e,l=eO(VS,r);return y.jsx(dt.div,{id:l.id,...i,ref:n})});nO.displayName=VS;var qu="SelectItem",[aO,qS]=fo(qu),$S=w.forwardRef((e,n)=>{const{__scopeSelect:r,value:i,disabled:l=!1,textValue:c,...u}=e,f=Jr(qu,r),p=ei(qu,r),h=f.value===i,[v,g]=w.useState(c??""),[b,x]=w.useState(!1),C=xt(n,A=>{var M;return(M=p.itemRefCallback)==null?void 0:M.call(p,A,i,l)}),S=Oi(),R=w.useRef("touch"),_=()=>{l||(f.onValueChange(i),f.onOpenChange(!1))};if(i==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return y.jsx(aO,{scope:r,value:i,disabled:l,textId:S,isSelected:h,onItemTextChange:w.useCallback(A=>{g(M=>M||((A==null?void 0:A.textContent)??"").trim())},[]),children:y.jsx(dd.ItemSlot,{scope:r,value:i,disabled:l,textValue:v,children:y.jsx(dt.div,{role:"option","aria-labelledby":S,"data-highlighted":b?"":void 0,"aria-selected":h&&b,"data-state":h?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1,...u,ref:C,onFocus:Xe(u.onFocus,()=>x(!0)),onBlur:Xe(u.onBlur,()=>x(!1)),onClick:Xe(u.onClick,()=>{R.current!=="mouse"&&_()}),onPointerUp:Xe(u.onPointerUp,()=>{R.current==="mouse"&&_()}),onPointerDown:Xe(u.onPointerDown,A=>{R.current=A.pointerType}),onPointerMove:Xe(u.onPointerMove,A=>{var M;R.current=A.pointerType,l?(M=p.onItemLeave)==null||M.call(p):R.current==="mouse"&&A.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Xe(u.onPointerLeave,A=>{var M;A.currentTarget===document.activeElement&&((M=p.onItemLeave)==null||M.call(p))}),onKeyDown:Xe(u.onKeyDown,A=>{var k;((k=p.searchRef)==null?void 0:k.current)!==""&&A.key===" "||(VD.includes(A.key)&&_(),A.key===" "&&A.preventDefault())})})})})});$S.displayName=qu;var bl="SelectItemText",FS=w.forwardRef((e,n)=>{const{__scopeSelect:r,className:i,style:l,...c}=e,u=Jr(bl,r),f=ei(bl,r),p=qS(bl,r),h=ID(bl,r),[v,g]=w.useState(null),b=xt(n,_=>g(_),p.onItemTextChange,_=>{var A;return(A=f.itemTextRefCallback)==null?void 0:A.call(f,_,p.value,p.disabled)}),x=v==null?void 0:v.textContent,C=w.useMemo(()=>y.jsx("option",{value:p.value,disabled:p.disabled,children:x},p.value),[p.disabled,p.value,x]),{onNativeOptionAdd:S,onNativeOptionRemove:R}=h;return en(()=>(S(C),()=>R(C)),[S,R,C]),y.jsxs(y.Fragment,{children:[y.jsx(dt.span,{id:p.textId,...c,ref:b}),p.isSelected&&u.valueNode&&!u.valueNodeHasChildren?sa.createPortal(c.children,u.valueNode):null]})});FS.displayName=bl;var IS="SelectItemIndicator",GS=w.forwardRef((e,n)=>{const{__scopeSelect:r,...i}=e;return qS(IS,r).isSelected?y.jsx(dt.span,{"aria-hidden":!0,...i,ref:n}):null});GS.displayName=IS;var Fp="SelectScrollUpButton",YS=w.forwardRef((e,n)=>{const r=ei(Fp,e.__scopeSelect),i=jm(Fp,e.__scopeSelect),[l,c]=w.useState(!1),u=xt(n,i.onScrollButtonChange);return en(()=>{if(r.viewport&&r.isPositioned){let f=function(){const h=p.scrollTop>0;c(h)};const p=r.viewport;return f(),p.addEventListener("scroll",f),()=>p.removeEventListener("scroll",f)}},[r.viewport,r.isPositioned]),l?y.jsx(KS,{...e,ref:u,onAutoScroll:()=>{const{viewport:f,selectedItem:p}=r;f&&p&&(f.scrollTop=f.scrollTop-p.offsetHeight)}}):null});YS.displayName=Fp;var Ip="SelectScrollDownButton",QS=w.forwardRef((e,n)=>{const r=ei(Ip,e.__scopeSelect),i=jm(Ip,e.__scopeSelect),[l,c]=w.useState(!1),u=xt(n,i.onScrollButtonChange);return en(()=>{if(r.viewport&&r.isPositioned){let f=function(){const h=p.scrollHeight-p.clientHeight,v=Math.ceil(p.scrollTop)<h;c(v)};const p=r.viewport;return f(),p.addEventListener("scroll",f),()=>p.removeEventListener("scroll",f)}},[r.viewport,r.isPositioned]),l?y.jsx(KS,{...e,ref:u,onAutoScroll:()=>{const{viewport:f,selectedItem:p}=r;f&&p&&(f.scrollTop=f.scrollTop+p.offsetHeight)}}):null});QS.displayName=Ip;var KS=w.forwardRef((e,n)=>{const{__scopeSelect:r,onAutoScroll:i,...l}=e,c=ei("SelectScrollButton",r),u=w.useRef(null),f=fd(r),p=w.useCallback(()=>{u.current!==null&&(window.clearInterval(u.current),u.current=null)},[]);return w.useEffect(()=>()=>p(),[p]),en(()=>{var v;const h=f().find(g=>g.ref.current===document.activeElement);(v=h==null?void 0:h.ref.current)==null||v.scrollIntoView({block:"nearest"})},[f]),y.jsx(dt.div,{"aria-hidden":!0,...l,ref:n,style:{flexShrink:0,...l.style},onPointerDown:Xe(l.onPointerDown,()=>{u.current===null&&(u.current=window.setInterval(i,50))}),onPointerMove:Xe(l.onPointerMove,()=>{var h;(h=c.onItemLeave)==null||h.call(c),u.current===null&&(u.current=window.setInterval(i,50))}),onPointerLeave:Xe(l.onPointerLeave,()=>{p()})})}),rO="SelectSeparator",iO=w.forwardRef((e,n)=>{const{__scopeSelect:r,...i}=e;return y.jsx(dt.div,{"aria-hidden":!0,...i,ref:n})});iO.displayName=rO;var Gp="SelectArrow",sO=w.forwardRef((e,n)=>{const{__scopeSelect:r,...i}=e,l=hd(r),c=Jr(Gp,r),u=ei(Gp,r);return c.open&&u.position==="popper"?y.jsx(_S,{...l,...i,ref:n}):null});sO.displayName=Gp;var oO="SelectBubbleInput",XS=w.forwardRef(({__scopeSelect:e,value:n,...r},i)=>{const l=w.useRef(null),c=xt(i,l),u=kM(n);return w.useEffect(()=>{const f=l.current;if(!f)return;const p=window.HTMLSelectElement.prototype,v=Object.getOwnPropertyDescriptor(p,"value").set;if(u!==n&&v){const g=new Event("change",{bubbles:!0});v.call(f,n),f.dispatchEvent(g)}},[u,n]),y.jsx(dt.select,{...r,style:{...ww,...r.style},ref:c,defaultValue:n})});XS.displayName=oO;function ZS(e){return e===""||e===void 0}function WS(e){const n=zi(e),r=w.useRef(""),i=w.useRef(0),l=w.useCallback(u=>{const f=r.current+u;n(f),function p(h){r.current=h,window.clearTimeout(i.current),h!==""&&(i.current=window.setTimeout(()=>p(""),1e3))}(f)},[n]),c=w.useCallback(()=>{r.current="",window.clearTimeout(i.current)},[]);return w.useEffect(()=>()=>window.clearTimeout(i.current),[]),[r,l,c]}function JS(e,n,r){const l=n.length>1&&Array.from(n).every(h=>h===n[0])?n[0]:n,c=r?e.indexOf(r):-1;let u=lO(e,Math.max(c,0));l.length===1&&(u=u.filter(h=>h!==r));const p=u.find(h=>h.textValue.toLowerCase().startsWith(l.toLowerCase()));return p!==r?p:void 0}function lO(e,n){return e.map((r,i)=>e[(n+i)%e.length])}var cO=AS,uO=DS,dO=NS,fO=kS,hO=jS,pO=zS,mO=US,gO=$S,vO=FS,yO=GS,bO=YS,xO=QS,[pd,sL]=Hl("Tooltip",[ud]),md=ud(),e1="TooltipProvider",wO=700,Yp="tooltip.open",[SO,zm]=pd(e1),t1=e=>{const{__scopeTooltip:n,delayDuration:r=wO,skipDelayDuration:i=300,disableHoverableContent:l=!1,children:c}=e,u=w.useRef(!0),f=w.useRef(!1),p=w.useRef(0);return w.useEffect(()=>{const h=p.current;return()=>window.clearTimeout(h)},[]),y.jsx(SO,{scope:n,isOpenDelayedRef:u,delayDuration:r,onOpen:w.useCallback(()=>{window.clearTimeout(p.current),u.current=!1},[]),onClose:w.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>u.current=!0,i)},[i]),isPointerInTransitRef:f,onPointerInTransitChange:w.useCallback(h=>{f.current=h},[]),disableHoverableContent:l,children:c})};t1.displayName=e1;var Dl="Tooltip",[CO,ql]=pd(Dl),n1=e=>{const{__scopeTooltip:n,children:r,open:i,defaultOpen:l,onOpenChange:c,disableHoverableContent:u,delayDuration:f}=e,p=zm(Dl,e.__scopeTooltip),h=md(n),[v,g]=w.useState(null),b=Oi(),x=w.useRef(0),C=u??p.disableHoverableContent,S=f??p.delayDuration,R=w.useRef(!1),[_,A]=Lu({prop:i,defaultProp:l??!1,onChange:P=>{P?(p.onOpen(),document.dispatchEvent(new CustomEvent(Yp))):p.onClose(),c==null||c(P)},caller:Dl}),M=w.useMemo(()=>_?R.current?"delayed-open":"instant-open":"closed",[_]),k=w.useCallback(()=>{window.clearTimeout(x.current),x.current=0,R.current=!1,A(!0)},[A]),N=w.useCallback(()=>{window.clearTimeout(x.current),x.current=0,A(!1)},[A]),z=w.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>{R.current=!0,A(!0),x.current=0},S)},[S,A]);return w.useEffect(()=>()=>{x.current&&(window.clearTimeout(x.current),x.current=0)},[]),y.jsx(ES,{...h,children:y.jsx(CO,{scope:n,contentId:b,open:_,stateAttribute:M,trigger:v,onTriggerChange:g,onTriggerEnter:w.useCallback(()=>{p.isOpenDelayedRef.current?z():k()},[p.isOpenDelayedRef,z,k]),onTriggerLeave:w.useCallback(()=>{C?N():(window.clearTimeout(x.current),x.current=0)},[N,C]),onOpen:k,onClose:N,disableHoverableContent:C,children:r})})};n1.displayName=Dl;var Qp="TooltipTrigger",a1=w.forwardRef((e,n)=>{const{__scopeTooltip:r,...i}=e,l=ql(Qp,r),c=zm(Qp,r),u=md(r),f=w.useRef(null),p=xt(n,f,l.onTriggerChange),h=w.useRef(!1),v=w.useRef(!1),g=w.useCallback(()=>h.current=!1,[]);return w.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),y.jsx(RS,{asChild:!0,...u,children:y.jsx(dt.button,{"aria-describedby":l.open?l.contentId:void 0,"data-state":l.stateAttribute,...i,ref:p,onPointerMove:Xe(e.onPointerMove,b=>{b.pointerType!=="touch"&&!v.current&&!c.isPointerInTransitRef.current&&(l.onTriggerEnter(),v.current=!0)}),onPointerLeave:Xe(e.onPointerLeave,()=>{l.onTriggerLeave(),v.current=!1}),onPointerDown:Xe(e.onPointerDown,()=>{l.open&&l.onClose(),h.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:Xe(e.onFocus,()=>{h.current||l.onOpen()}),onBlur:Xe(e.onBlur,l.onClose),onClick:Xe(e.onClick,l.onClose)})})});a1.displayName=Qp;var Lm="TooltipPortal",[EO,RO]=pd(Lm,{forceMount:void 0}),r1=e=>{const{__scopeTooltip:n,forceMount:r,children:i,container:l}=e,c=ql(Lm,n);return y.jsx(EO,{scope:n,forceMount:r,children:y.jsx(lo,{present:r||c.open,children:y.jsx(rd,{asChild:!0,container:l,children:i})})})};r1.displayName=Lm;var io="TooltipContent",i1=w.forwardRef((e,n)=>{const r=RO(io,e.__scopeTooltip),{forceMount:i=r.forceMount,side:l="top",...c}=e,u=ql(io,e.__scopeTooltip);return y.jsx(lo,{present:i||u.open,children:u.disableHoverableContent?y.jsx(s1,{side:l,...c,ref:n}):y.jsx(TO,{side:l,...c,ref:n})})}),TO=w.forwardRef((e,n)=>{const r=ql(io,e.__scopeTooltip),i=zm(io,e.__scopeTooltip),l=w.useRef(null),c=xt(n,l),[u,f]=w.useState(null),{trigger:p,onClose:h}=r,v=l.current,{onPointerInTransitChange:g}=i,b=w.useCallback(()=>{f(null),g(!1)},[g]),x=w.useCallback((C,S)=>{const R=C.currentTarget,_={x:C.clientX,y:C.clientY},A=DO(_,R.getBoundingClientRect()),M=OO(_,A),k=NO(S.getBoundingClientRect()),N=jO([...M,...k]);f(N),g(!0)},[g]);return w.useEffect(()=>()=>b(),[b]),w.useEffect(()=>{if(p&&v){const C=R=>x(R,v),S=R=>x(R,p);return p.addEventListener("pointerleave",C),v.addEventListener("pointerleave",S),()=>{p.removeEventListener("pointerleave",C),v.removeEventListener("pointerleave",S)}}},[p,v,x,b]),w.useEffect(()=>{if(u){const C=S=>{const R=S.target,_={x:S.clientX,y:S.clientY},A=(p==null?void 0:p.contains(R))||(v==null?void 0:v.contains(R)),M=!kO(_,u);A?b():M&&(b(),h())};return document.addEventListener("pointermove",C),()=>document.removeEventListener("pointermove",C)}},[p,v,u,h,b]),y.jsx(s1,{...e,ref:c})}),[_O,AO]=pd(Dl,{isInside:!1}),MO=eA("TooltipContent"),s1=w.forwardRef((e,n)=>{const{__scopeTooltip:r,children:i,"aria-label":l,onEscapeKeyDown:c,onPointerDownOutside:u,...f}=e,p=ql(io,r),h=md(r),{onClose:v}=p;return w.useEffect(()=>(document.addEventListener(Yp,v),()=>document.removeEventListener(Yp,v)),[v]),w.useEffect(()=>{if(p.trigger){const g=b=>{const x=b.target;x!=null&&x.contains(p.trigger)&&v()};return window.addEventListener("scroll",g,{capture:!0}),()=>window.removeEventListener("scroll",g,{capture:!0})}},[p.trigger,v]),y.jsx(ad,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:g=>g.preventDefault(),onDismiss:v,children:y.jsxs(TS,{"data-state":p.stateAttribute,...h,...f,ref:n,style:{...f.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[y.jsx(MO,{children:i}),y.jsx(_O,{scope:r,isInside:!0,children:y.jsx(oA,{id:p.contentId,role:"tooltip",children:l||i})})]})})});i1.displayName=io;var o1="TooltipArrow",l1=w.forwardRef((e,n)=>{const{__scopeTooltip:r,...i}=e,l=md(r);return AO(o1,r).isInside?null:y.jsx(_S,{...l,...i,ref:n})});l1.displayName=o1;function DO(e,n){const r=Math.abs(n.top-e.y),i=Math.abs(n.bottom-e.y),l=Math.abs(n.right-e.x),c=Math.abs(n.left-e.x);switch(Math.min(r,i,l,c)){case c:return"left";case l:return"right";case r:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function OO(e,n,r=5){const i=[];switch(n){case"top":i.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":i.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":i.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":i.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return i}function NO(e){const{top:n,right:r,bottom:i,left:l}=e;return[{x:l,y:n},{x:r,y:n},{x:r,y:i},{x:l,y:i}]}function kO(e,n){const{x:r,y:i}=e;let l=!1;for(let c=0,u=n.length-1;c<n.length;u=c++){const f=n[c],p=n[u],h=f.x,v=f.y,g=p.x,b=p.y;v>i!=b>i&&r<(g-h)*(i-v)/(b-v)+h&&(l=!l)}return l}function jO(e){const n=e.slice();return n.sort((r,i)=>r.x<i.x?-1:r.x>i.x?1:r.y<i.y?-1:r.y>i.y?1:0),zO(n)}function zO(e){if(e.length<=1)return e.slice();const n=[];for(let i=0;i<e.length;i++){const l=e[i];for(;n.length>=2;){const c=n[n.length-1],u=n[n.length-2];if((c.x-u.x)*(l.y-u.y)>=(c.y-u.y)*(l.x-u.x))n.pop();else break}n.push(l)}n.pop();const r=[];for(let i=e.length-1;i>=0;i--){const l=e[i];for(;r.length>=2;){const c=r[r.length-1],u=r[r.length-2];if((c.x-u.x)*(l.y-u.y)>=(c.y-u.y)*(l.x-u.x))r.pop();else break}r.push(l)}return r.pop(),n.length===1&&r.length===1&&n[0].x===r[0].x&&n[0].y===r[0].y?n:n.concat(r)}var LO=t1,PO=n1,BO=a1,UO=r1,HO=i1,VO=l1;const Pm="-",qO=e=>{const n=FO(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:u=>{const f=u.split(Pm);return f[0]===""&&f.length!==1&&f.shift(),c1(f,n)||$O(u)},getConflictingClassGroupIds:(u,f)=>{const p=r[u]||[];return f&&i[u]?[...p,...i[u]]:p}}},c1=(e,n)=>{var u;if(e.length===0)return n.classGroupId;const r=e[0],i=n.nextPart.get(r),l=i?c1(e.slice(1),i):void 0;if(l)return l;if(n.validators.length===0)return;const c=e.join(Pm);return(u=n.validators.find(({validator:f})=>f(c)))==null?void 0:u.classGroupId},J0=/^\[(.+)\]$/,$O=e=>{if(J0.test(e)){const n=J0.exec(e)[1],r=n==null?void 0:n.substring(0,n.indexOf(":"));if(r)return"arbitrary.."+r}},FO=e=>{const{theme:n,classGroups:r}=e,i={nextPart:new Map,validators:[]};for(const l in r)Kp(r[l],i,l,n);return i},Kp=(e,n,r,i)=>{e.forEach(l=>{if(typeof l=="string"){const c=l===""?n:ex(n,l);c.classGroupId=r;return}if(typeof l=="function"){if(IO(l)){Kp(l(i),n,r,i);return}n.validators.push({validator:l,classGroupId:r});return}Object.entries(l).forEach(([c,u])=>{Kp(u,ex(n,c),r,i)})})},ex=(e,n)=>{let r=e;return n.split(Pm).forEach(i=>{r.nextPart.has(i)||r.nextPart.set(i,{nextPart:new Map,validators:[]}),r=r.nextPart.get(i)}),r},IO=e=>e.isThemeGetter,GO=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,r=new Map,i=new Map;const l=(c,u)=>{r.set(c,u),n++,n>e&&(n=0,i=r,r=new Map)};return{get(c){let u=r.get(c);if(u!==void 0)return u;if((u=i.get(c))!==void 0)return l(c,u),u},set(c,u){r.has(c)?r.set(c,u):l(c,u)}}},Xp="!",Zp=":",YO=Zp.length,QO=e=>{const{prefix:n,experimentalParseClassName:r}=e;let i=l=>{const c=[];let u=0,f=0,p=0,h;for(let C=0;C<l.length;C++){let S=l[C];if(u===0&&f===0){if(S===Zp){c.push(l.slice(p,C)),p=C+YO;continue}if(S==="/"){h=C;continue}}S==="["?u++:S==="]"?u--:S==="("?f++:S===")"&&f--}const v=c.length===0?l:l.substring(p),g=KO(v),b=g!==v,x=h&&h>p?h-p:void 0;return{modifiers:c,hasImportantModifier:b,baseClassName:g,maybePostfixModifierPosition:x}};if(n){const l=n+Zp,c=i;i=u=>u.startsWith(l)?c(u.substring(l.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:u,maybePostfixModifierPosition:void 0}}if(r){const l=i;i=c=>r({className:c,parseClassName:l})}return i},KO=e=>e.endsWith(Xp)?e.substring(0,e.length-1):e.startsWith(Xp)?e.substring(1):e,XO=e=>{const n=Object.fromEntries(e.orderSensitiveModifiers.map(i=>[i,!0]));return i=>{if(i.length<=1)return i;const l=[];let c=[];return i.forEach(u=>{u[0]==="["||n[u]?(l.push(...c.sort(),u),c=[]):c.push(u)}),l.push(...c.sort()),l}},ZO=e=>({cache:GO(e.cacheSize),parseClassName:QO(e),sortModifiers:XO(e),...qO(e)}),WO=/\s+/,JO=(e,n)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:l,sortModifiers:c}=n,u=[],f=e.trim().split(WO);let p="";for(let h=f.length-1;h>=0;h-=1){const v=f[h],{isExternal:g,modifiers:b,hasImportantModifier:x,baseClassName:C,maybePostfixModifierPosition:S}=r(v);if(g){p=v+(p.length>0?" "+p:p);continue}let R=!!S,_=i(R?C.substring(0,S):C);if(!_){if(!R){p=v+(p.length>0?" "+p:p);continue}if(_=i(C),!_){p=v+(p.length>0?" "+p:p);continue}R=!1}const A=c(b).join(":"),M=x?A+Xp:A,k=M+_;if(u.includes(k))continue;u.push(k);const N=l(_,R);for(let z=0;z<N.length;++z){const P=N[z];u.push(M+P)}p=v+(p.length>0?" "+p:p)}return p};function eN(){let e=0,n,r,i="";for(;e<arguments.length;)(n=arguments[e++])&&(r=u1(n))&&(i&&(i+=" "),i+=r);return i}const u1=e=>{if(typeof e=="string")return e;let n,r="";for(let i=0;i<e.length;i++)e[i]&&(n=u1(e[i]))&&(r&&(r+=" "),r+=n);return r};function tN(e,...n){let r,i,l,c=u;function u(p){const h=n.reduce((v,g)=>g(v),e());return r=ZO(h),i=r.cache.get,l=r.cache.set,c=f,f(p)}function f(p){const h=i(p);if(h)return h;const v=JO(p,r);return l(p,v),v}return function(){return c(eN.apply(null,arguments))}}const Nt=e=>{const n=r=>r[e]||[];return n.isThemeGetter=!0,n},d1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,f1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,nN=/^\d+\/\d+$/,aN=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,rN=/\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$/,iN=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,sN=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,oN=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ds=e=>nN.test(e),ke=e=>!!e&&!Number.isNaN(Number(e)),Nr=e=>!!e&&Number.isInteger(Number(e)),sp=e=>e.endsWith("%")&&ke(e.slice(0,-1)),Ka=e=>aN.test(e),lN=()=>!0,cN=e=>rN.test(e)&&!iN.test(e),h1=()=>!1,uN=e=>sN.test(e),dN=e=>oN.test(e),fN=e=>!ye(e)&&!be(e),hN=e=>ho(e,g1,h1),ye=e=>d1.test(e),xi=e=>ho(e,v1,cN),op=e=>ho(e,yN,ke),tx=e=>ho(e,p1,h1),pN=e=>ho(e,m1,dN),hu=e=>ho(e,y1,uN),be=e=>f1.test(e),hl=e=>po(e,v1),mN=e=>po(e,bN),nx=e=>po(e,p1),gN=e=>po(e,g1),vN=e=>po(e,m1),pu=e=>po(e,y1,!0),ho=(e,n,r)=>{const i=d1.exec(e);return i?i[1]?n(i[1]):r(i[2]):!1},po=(e,n,r=!1)=>{const i=f1.exec(e);return i?i[1]?n(i[1]):r:!1},p1=e=>e==="position"||e==="percentage",m1=e=>e==="image"||e==="url",g1=e=>e==="length"||e==="size"||e==="bg-size",v1=e=>e==="length",yN=e=>e==="number",bN=e=>e==="family-name",y1=e=>e==="shadow",xN=()=>{const e=Nt("color"),n=Nt("font"),r=Nt("text"),i=Nt("font-weight"),l=Nt("tracking"),c=Nt("leading"),u=Nt("breakpoint"),f=Nt("container"),p=Nt("spacing"),h=Nt("radius"),v=Nt("shadow"),g=Nt("inset-shadow"),b=Nt("text-shadow"),x=Nt("drop-shadow"),C=Nt("blur"),S=Nt("perspective"),R=Nt("aspect"),_=Nt("ease"),A=Nt("animate"),M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],N=()=>[...k(),be,ye],z=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],D=()=>[be,ye,p],B=()=>[Ds,"full","auto",...D()],Y=()=>[Nr,"none","subgrid",be,ye],Z=()=>["auto",{span:["full",Nr,be,ye]},Nr,be,ye],ee=()=>[Nr,"auto",be,ye],le=()=>["auto","min","max","fr",be,ye],he=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ce=()=>["start","end","center","stretch","center-safe","end-safe"],L=()=>["auto",...D()],Q=()=>[Ds,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...D()],$=()=>[e,be,ye],de=()=>[...k(),nx,tx,{position:[be,ye]}],O=()=>["no-repeat",{repeat:["","x","y","space","round"]}],q=()=>["auto","cover","contain",gN,hN,{size:[be,ye]}],W=()=>[sp,hl,xi],X=()=>["","none","full",h,be,ye],te=()=>["",ke,hl,xi],fe=()=>["solid","dashed","dotted","double"],ae=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],re=()=>[ke,sp,nx,tx],oe=()=>["","none",C,be,ye],pe=()=>["none",ke,be,ye],ue=()=>["none",ke,be,ye],xe=()=>[ke,be,ye],me=()=>[Ds,"full",...D()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ka],breakpoint:[Ka],color:[lN],container:[Ka],"drop-shadow":[Ka],ease:["in","out","in-out"],font:[fN],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ka],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ka],shadow:[Ka],spacing:["px",ke],text:[Ka],"text-shadow":[Ka],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ds,ye,be,R]}],container:["container"],columns:[{columns:[ke,ye,be,f]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"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:N()}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{start:B()}],end:[{end:B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[Nr,"auto",be,ye]}],basis:[{basis:[Ds,"full","auto",f,...D()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ke,Ds,"auto","initial","none",ye]}],grow:[{grow:["",ke,be,ye]}],shrink:[{shrink:["",ke,be,ye]}],order:[{order:[Nr,"first","last","none",be,ye]}],"grid-cols":[{"grid-cols":Y()}],"col-start-end":[{col:Z()}],"col-start":[{"col-start":ee()}],"col-end":[{"col-end":ee()}],"grid-rows":[{"grid-rows":Y()}],"row-start-end":[{row:Z()}],"row-start":[{"row-start":ee()}],"row-end":[{"row-end":ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":le()}],"auto-rows":[{"auto-rows":le()}],gap:[{gap:D()}],"gap-x":[{"gap-x":D()}],"gap-y":[{"gap-y":D()}],"justify-content":[{justify:[...he(),"normal"]}],"justify-items":[{"justify-items":[...ce(),"normal"]}],"justify-self":[{"justify-self":["auto",...ce()]}],"align-content":[{content:["normal",...he()]}],"align-items":[{items:[...ce(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ce(),{baseline:["","last"]}]}],"place-content":[{"place-content":he()}],"place-items":[{"place-items":[...ce(),"baseline"]}],"place-self":[{"place-self":["auto",...ce()]}],p:[{p:D()}],px:[{px:D()}],py:[{py:D()}],ps:[{ps:D()}],pe:[{pe:D()}],pt:[{pt:D()}],pr:[{pr:D()}],pb:[{pb:D()}],pl:[{pl:D()}],m:[{m:L()}],mx:[{mx:L()}],my:[{my:L()}],ms:[{ms:L()}],me:[{me:L()}],mt:[{mt:L()}],mr:[{mr:L()}],mb:[{mb:L()}],ml:[{ml:L()}],"space-x":[{"space-x":D()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":D()}],"space-y-reverse":["space-y-reverse"],size:[{size:Q()}],w:[{w:[f,"screen",...Q()]}],"min-w":[{"min-w":[f,"screen","none",...Q()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[u]},...Q()]}],h:[{h:["screen","lh",...Q()]}],"min-h":[{"min-h":["screen","lh","none",...Q()]}],"max-h":[{"max-h":["screen","lh",...Q()]}],"font-size":[{text:["base",r,hl,xi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,be,op]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",sp,ye]}],"font-family":[{font:[mN,ye,n]}],"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:[l,be,ye]}],"line-clamp":[{"line-clamp":[ke,"none",be,op]}],leading:[{leading:[c,...D()]}],"list-image":[{"list-image":["none",be,ye]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",be,ye]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:$()}],"text-color":[{text:$()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...fe(),"wavy"]}],"text-decoration-thickness":[{decoration:[ke,"from-font","auto",be,xi]}],"text-decoration-color":[{decoration:$()}],"underline-offset":[{"underline-offset":[ke,"auto",be,ye]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",be,ye]}],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",be,ye]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:de()}],"bg-repeat":[{bg:O()}],"bg-size":[{bg:q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Nr,be,ye],radial:["",be,ye],conic:[Nr,be,ye]},vN,pN]}],"bg-color":[{bg:$()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:$()}],"gradient-via":[{via:$()}],"gradient-to":[{to:$()}],rounded:[{rounded:X()}],"rounded-s":[{"rounded-s":X()}],"rounded-e":[{"rounded-e":X()}],"rounded-t":[{"rounded-t":X()}],"rounded-r":[{"rounded-r":X()}],"rounded-b":[{"rounded-b":X()}],"rounded-l":[{"rounded-l":X()}],"rounded-ss":[{"rounded-ss":X()}],"rounded-se":[{"rounded-se":X()}],"rounded-ee":[{"rounded-ee":X()}],"rounded-es":[{"rounded-es":X()}],"rounded-tl":[{"rounded-tl":X()}],"rounded-tr":[{"rounded-tr":X()}],"rounded-br":[{"rounded-br":X()}],"rounded-bl":[{"rounded-bl":X()}],"border-w":[{border:te()}],"border-w-x":[{"border-x":te()}],"border-w-y":[{"border-y":te()}],"border-w-s":[{"border-s":te()}],"border-w-e":[{"border-e":te()}],"border-w-t":[{"border-t":te()}],"border-w-r":[{"border-r":te()}],"border-w-b":[{"border-b":te()}],"border-w-l":[{"border-l":te()}],"divide-x":[{"divide-x":te()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":te()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...fe(),"hidden","none"]}],"divide-style":[{divide:[...fe(),"hidden","none"]}],"border-color":[{border:$()}],"border-color-x":[{"border-x":$()}],"border-color-y":[{"border-y":$()}],"border-color-s":[{"border-s":$()}],"border-color-e":[{"border-e":$()}],"border-color-t":[{"border-t":$()}],"border-color-r":[{"border-r":$()}],"border-color-b":[{"border-b":$()}],"border-color-l":[{"border-l":$()}],"divide-color":[{divide:$()}],"outline-style":[{outline:[...fe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ke,be,ye]}],"outline-w":[{outline:["",ke,hl,xi]}],"outline-color":[{outline:$()}],shadow:[{shadow:["","none",v,pu,hu]}],"shadow-color":[{shadow:$()}],"inset-shadow":[{"inset-shadow":["none",g,pu,hu]}],"inset-shadow-color":[{"inset-shadow":$()}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:$()}],"ring-offset-w":[{"ring-offset":[ke,xi]}],"ring-offset-color":[{"ring-offset":$()}],"inset-ring-w":[{"inset-ring":te()}],"inset-ring-color":[{"inset-ring":$()}],"text-shadow":[{"text-shadow":["none",b,pu,hu]}],"text-shadow-color":[{"text-shadow":$()}],opacity:[{opacity:[ke,be,ye]}],"mix-blend":[{"mix-blend":[...ae(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ae()}],"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":[ke]}],"mask-image-linear-from-pos":[{"mask-linear-from":re()}],"mask-image-linear-to-pos":[{"mask-linear-to":re()}],"mask-image-linear-from-color":[{"mask-linear-from":$()}],"mask-image-linear-to-color":[{"mask-linear-to":$()}],"mask-image-t-from-pos":[{"mask-t-from":re()}],"mask-image-t-to-pos":[{"mask-t-to":re()}],"mask-image-t-from-color":[{"mask-t-from":$()}],"mask-image-t-to-color":[{"mask-t-to":$()}],"mask-image-r-from-pos":[{"mask-r-from":re()}],"mask-image-r-to-pos":[{"mask-r-to":re()}],"mask-image-r-from-color":[{"mask-r-from":$()}],"mask-image-r-to-color":[{"mask-r-to":$()}],"mask-image-b-from-pos":[{"mask-b-from":re()}],"mask-image-b-to-pos":[{"mask-b-to":re()}],"mask-image-b-from-color":[{"mask-b-from":$()}],"mask-image-b-to-color":[{"mask-b-to":$()}],"mask-image-l-from-pos":[{"mask-l-from":re()}],"mask-image-l-to-pos":[{"mask-l-to":re()}],"mask-image-l-from-color":[{"mask-l-from":$()}],"mask-image-l-to-color":[{"mask-l-to":$()}],"mask-image-x-from-pos":[{"mask-x-from":re()}],"mask-image-x-to-pos":[{"mask-x-to":re()}],"mask-image-x-from-color":[{"mask-x-from":$()}],"mask-image-x-to-color":[{"mask-x-to":$()}],"mask-image-y-from-pos":[{"mask-y-from":re()}],"mask-image-y-to-pos":[{"mask-y-to":re()}],"mask-image-y-from-color":[{"mask-y-from":$()}],"mask-image-y-to-color":[{"mask-y-to":$()}],"mask-image-radial":[{"mask-radial":[be,ye]}],"mask-image-radial-from-pos":[{"mask-radial-from":re()}],"mask-image-radial-to-pos":[{"mask-radial-to":re()}],"mask-image-radial-from-color":[{"mask-radial-from":$()}],"mask-image-radial-to-color":[{"mask-radial-to":$()}],"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":k()}],"mask-image-conic-pos":[{"mask-conic":[ke]}],"mask-image-conic-from-pos":[{"mask-conic-from":re()}],"mask-image-conic-to-pos":[{"mask-conic-to":re()}],"mask-image-conic-from-color":[{"mask-conic-from":$()}],"mask-image-conic-to-color":[{"mask-conic-to":$()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:de()}],"mask-repeat":[{mask:O()}],"mask-size":[{mask:q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",be,ye]}],filter:[{filter:["","none",be,ye]}],blur:[{blur:oe()}],brightness:[{brightness:[ke,be,ye]}],contrast:[{contrast:[ke,be,ye]}],"drop-shadow":[{"drop-shadow":["","none",x,pu,hu]}],"drop-shadow-color":[{"drop-shadow":$()}],grayscale:[{grayscale:["",ke,be,ye]}],"hue-rotate":[{"hue-rotate":[ke,be,ye]}],invert:[{invert:["",ke,be,ye]}],saturate:[{saturate:[ke,be,ye]}],sepia:[{sepia:["",ke,be,ye]}],"backdrop-filter":[{"backdrop-filter":["","none",be,ye]}],"backdrop-blur":[{"backdrop-blur":oe()}],"backdrop-brightness":[{"backdrop-brightness":[ke,be,ye]}],"backdrop-contrast":[{"backdrop-contrast":[ke,be,ye]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ke,be,ye]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ke,be,ye]}],"backdrop-invert":[{"backdrop-invert":["",ke,be,ye]}],"backdrop-opacity":[{"backdrop-opacity":[ke,be,ye]}],"backdrop-saturate":[{"backdrop-saturate":[ke,be,ye]}],"backdrop-sepia":[{"backdrop-sepia":["",ke,be,ye]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":D()}],"border-spacing-x":[{"border-spacing-x":D()}],"border-spacing-y":[{"border-spacing-y":D()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",be,ye]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ke,"initial",be,ye]}],ease:[{ease:["linear","initial",_,be,ye]}],delay:[{delay:[ke,be,ye]}],animate:[{animate:["none",A,be,ye]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,be,ye]}],"perspective-origin":[{"perspective-origin":N()}],rotate:[{rotate:pe()}],"rotate-x":[{"rotate-x":pe()}],"rotate-y":[{"rotate-y":pe()}],"rotate-z":[{"rotate-z":pe()}],scale:[{scale:ue()}],"scale-x":[{"scale-x":ue()}],"scale-y":[{"scale-y":ue()}],"scale-z":[{"scale-z":ue()}],"scale-3d":["scale-3d"],skew:[{skew:xe()}],"skew-x":[{"skew-x":xe()}],"skew-y":[{"skew-y":xe()}],transform:[{transform:[be,ye,"","none","gpu","cpu"]}],"transform-origin":[{origin:N()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:me()}],"translate-x":[{"translate-x":me()}],"translate-y":[{"translate-y":me()}],"translate-z":[{"translate-z":me()}],"translate-none":["translate-none"],accent:[{accent:$()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:$()}],"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",be,ye]}],"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":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"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",be,ye]}],fill:[{fill:["none",...$()]}],"stroke-w":[{stroke:[ke,hl,xi,op]}],stroke:[{stroke:["none",...$()]}],"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"]}},wN=tN(xN);function _e(...e){return wN(fw(e))}const SN=bm("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 shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs 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 shadow-xs 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"}},defaultVariants:{variant:"default",size:"default"}});function Ze({className:e,variant:n,size:r,asChild:i=!1,...l}){const c=i?nd:"button";return y.jsx(c,{"data-slot":"button",className:_e(SN({variant:n,size:r,className:e})),...l})}function In({className:e,type:n,...r}){return y.jsx("input",{type:n,"data-slot":"input",className:_e("flex h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs outline-none transition-[color,box-shadow] selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:font-medium file:text-foreground file:text-sm placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",e),...r})}function CN({...e}){return y.jsx(Ww,{"data-slot":"sheet",...e})}function EN({...e}){return y.jsx(Jw,{"data-slot":"sheet-portal",...e})}function RN({className:e,...n}){return y.jsx(eS,{"data-slot":"sheet-overlay",className:_e("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in",e),...n})}function TN({className:e,children:n,side:r="right",...i}){return y.jsxs(EN,{children:[y.jsx(RN,{}),y.jsxs(tS,{"data-slot":"sheet-content",className:_e("fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=open]:animate-in data-[state=closed]:duration-300 data-[state=open]:duration-500",r==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",r==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",r==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",r==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...i,children:[n,y.jsxs(aS,{className:"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[y.jsx(ji,{className:"size-4"}),y.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function _N({className:e,...n}){return y.jsx("div",{"data-slot":"sheet-header",className:_e("flex flex-col gap-1.5 p-4",e),...n})}function AN({className:e,...n}){return y.jsx(nS,{"data-slot":"sheet-title",className:_e("font-semibold text-foreground",e),...n})}function MN({className:e,...n}){return y.jsx(NM,{"data-slot":"sheet-description",className:_e("text-muted-foreground text-sm",e),...n})}function b1({delayDuration:e=0,...n}){return y.jsx(LO,{"data-slot":"tooltip-provider",delayDuration:e,...n})}function DN({...e}){return y.jsx(b1,{children:y.jsx(PO,{"data-slot":"tooltip",...e})})}function ON({...e}){return y.jsx(BO,{"data-slot":"tooltip-trigger",...e})}function NN({className:e,sideOffset:n=0,children:r,...i}){return y.jsx(UO,{children:y.jsxs(HO,{"data-slot":"tooltip-content",sideOffset:n,className:_e("fade-in-0 zoom-in-95 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in text-balance rounded-md bg-primary px-3 py-1.5 text-primary-foreground text-xs data-[state=closed]:animate-out",e),...i,children:[r,y.jsx(VO,{className:"z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-primary fill-primary"})]})})}const lp=768;function kN(){const[e,n]=w.useState(void 0);return w.useEffect(()=>{const r=window.matchMedia(`(max-width: ${lp-1}px)`),i=()=>{n(window.innerWidth<lp)};return r.addEventListener("change",i),n(window.innerWidth<lp),()=>r.removeEventListener("change",i)},[]),!!e}const jN="sidebar_state",zN=60*60*24*7,LN="16rem",PN="18rem",BN="3rem",UN="b",x1=w.createContext(null);function Bm(){const e=w.useContext(x1);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function w1({defaultOpen:e=!0,open:n,onOpenChange:r,className:i,style:l,children:c,...u}){const f=kN(),[p,h]=w.useState(!1),[v,g]=w.useState(e),b=n??v,x=w.useCallback(_=>{const A=typeof _=="function"?_(b):_;r?r(A):g(A),document.cookie=`${jN}=${A}; path=/; max-age=${zN}`},[r,b]),C=w.useCallback(()=>f?h(_=>!_):x(_=>!_),[f,x]);w.useEffect(()=>{const _=A=>{A.key===UN&&(A.metaKey||A.ctrlKey)&&(A.preventDefault(),C())};return window.addEventListener("keydown",_),()=>window.removeEventListener("keydown",_)},[C]);const S=b?"expanded":"collapsed",R=w.useMemo(()=>({state:S,open:b,setOpen:x,isMobile:f,openMobile:p,setOpenMobile:h,toggleSidebar:C}),[S,b,x,f,p,C]);return y.jsx(x1.Provider,{value:R,children:y.jsx(b1,{delayDuration:0,children:y.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":LN,"--sidebar-width-icon":BN,...l},className:_e("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",i),...u,children:c})})})}function HN({side:e="left",variant:n="sidebar",collapsible:r="offcanvas",className:i,children:l,...c}){const{isMobile:u,state:f,openMobile:p,setOpenMobile:h}=Bm();return r==="none"?y.jsx("div",{"data-slot":"sidebar",className:_e("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",i),...c,children:l}):u?y.jsx(CN,{open:p,onOpenChange:h,...c,children:y.jsxs(TN,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":PN},side:e,children:[y.jsxs(_N,{className:"sr-only",children:[y.jsx(AN,{children:"Sidebar"}),y.jsx(MN,{children:"Displays the mobile sidebar."})]}),y.jsx("div",{className:"flex h-full w-full flex-col",children:l})]})}):y.jsxs("div",{className:"group peer hidden text-sidebar-foreground md:block","data-state":f,"data-collapsible":f==="collapsed"?r:"","data-variant":n,"data-side":e,"data-slot":"sidebar",children:[y.jsx("div",{"data-slot":"sidebar-gap",className:_e("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",n==="floating"||n==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),y.jsx("div",{"data-slot":"sidebar-container",className:_e("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",n==="floating"||n==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",i),...c,children:y.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm",children:l})})]})}function VN({className:e,...n}){return y.jsx("main",{"data-slot":"sidebar-inset",className:_e("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",e),...n})}function qN({className:e,...n}){return y.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:_e("flex flex-col gap-2 p-2",e),...n})}function $N({className:e,...n}){return y.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:_e("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...n})}function FN({className:e,...n}){return y.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:_e("relative flex w-full min-w-0 flex-col p-2",e),...n})}function IN({className:e,asChild:n=!1,...r}){const i=n?nd:"div";return y.jsx(i,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:_e("flex h-8 shrink-0 items-center rounded-md px-2 font-medium text-sidebar-foreground/70 text-xs outline-hidden ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...r})}function GN({className:e,...n}){return y.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:_e("w-full text-sm",e),...n})}function YN({className:e,...n}){return y.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:_e("flex w-full min-w-0 flex-col gap-1",e),...n})}function ax({className:e,...n}){return y.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:_e("group/menu-item relative",e),...n})}const QN=bm("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function rx({asChild:e=!1,isActive:n=!1,variant:r="default",size:i="default",tooltip:l,className:c,...u}){const f=e?nd:"button",{isMobile:p,state:h}=Bm(),v=y.jsx(f,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":i,"data-active":n,className:_e(QN({variant:r,size:i}),c),...u});return l?(typeof l=="string"&&(l={children:l}),y.jsxs(DN,{children:[y.jsx(ON,{asChild:!0,children:v}),y.jsx(NN,{side:"right",align:"center",hidden:h!=="collapsed"||p,...l})]})):v}function Yt(e){return e.startsWith("/")?e.substring(1):e}function KN(e){const n=e.lastIndexOf("/");return n>0?e.substring(0,n):""}function XN(e){return e.fileName.endsWith(".md")?y.jsx(V2,{size:16,className:"mr-2 text-green-400"}):e.fileName.endsWith(".csv")?y.jsx(U2,{size:16,className:"mr-2 text-purple-400"}):e.fileName.endsWith(".json")?y.jsx(P2,{size:16,className:"mr-2 text-yellow-400"}):y.jsx($2,{size:16,className:"mr-2 text-blue-400"})}function S1(e){var u;const n=e.node,r=n.type==="directory",i=e.depth||0,l=((u=e.openPaths)==null?void 0:u.has(Yt(n.path)))??!1;if(r){const f=e.selectedDirectory===Yt(n.path),p=h=>{e.onSelectDirectory&&(h.preventDefault(),e.onSelectDirectory(Yt(n.path)))};return y.jsxs(y.Fragment,{children:[y.jsx(ax,{children:y.jsxs(rx,{style:{paddingLeft:8+i*8},className:f?"bg-sidebar-accent font-medium":"",onClick:p,children:[n.icon&&y.jsx("span",{className:"text-base",children:n.icon}),y.jsx("span",{children:n.title})]})}),l&&n.children&&n.children.filter(h=>typeof h=="object"&&h!==null&&"type"in h&&h.type==="directory").map(h=>y.jsx(S1,{node:h,depth:i+1,currentPath:e.currentPath,onSelectDirectory:e.onSelectDirectory,openPaths:e.openPaths,onToggleOpen:e.onToggleOpen,selectedDirectory:e.selectedDirectory},h.path))]})}const c=KN(n.path);return e.selectedDirectory!==c?null:y.jsx(Ul,{to:"/$",params:{_splat:Yt(n.path)},children:y.jsx(ax,{children:y.jsxs(rx,{style:{paddingLeft:8+i*8},children:[y.jsx(XN,{fileName:n.name}),n.title!==n.name?`${n.title} | ${n.name}`:n.name]})})})}var ZN=(e,n,r={})=>{let i=`${e}=${n}`;if(e.startsWith("__Secure-")&&!r.secure)throw new Error("__Secure- Cookie must have Secure attributes");if(e.startsWith("__Host-")){if(!r.secure)throw new Error("__Host- Cookie must have Secure attributes");if(r.path!=="/")throw new Error('__Host- Cookie must have Path attributes with "/"');if(r.domain)throw new Error("__Host- Cookie must not have Domain attributes")}if(r&&typeof r.maxAge=="number"&&r.maxAge>=0){if(r.maxAge>3456e4)throw new Error("Cookies Max-Age SHOULD NOT be greater than 400 days (34560000 seconds) in duration.");i+=`; Max-Age=${r.maxAge|0}`}if(r.domain&&r.prefix!=="host"&&(i+=`; Domain=${r.domain}`),r.path&&(i+=`; Path=${r.path}`),r.expires){if(r.expires.getTime()-Date.now()>3456e7)throw new Error("Cookies Expires SHOULD NOT be greater than 400 days (34560000 seconds) in the future.");i+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(i+="; HttpOnly"),r.secure&&(i+="; Secure"),r.sameSite&&(i+=`; SameSite=${r.sameSite.charAt(0).toUpperCase()+r.sameSite.slice(1)}`),r.priority&&(i+=`; Priority=${r.priority}`),r.partitioned){if(!r.secure)throw new Error("Partitioned Cookie must have Secure attributes");i+="; Partitioned"}return i},WN=(e,n,r)=>(n=encodeURIComponent(n),ZN(e,n,r)),JN=(e,n)=>(e=e.replace(/\/+$/,""),e=e+"/",n=n.replace(/^\/+/,""),e+n),Wp=(e,n)=>{for(const[r,i]of Object.entries(n)){const l=new RegExp("/:"+r+"(?:{[^/]+})?\\??");e=e.replace(l,i?`/${i}`:"")}return e},C1=e=>{const n=new URLSearchParams;for(const[r,i]of Object.entries(e))if(i!==void 0)if(Array.isArray(i))for(const l of i)n.append(r,l);else n.set(r,i);return n},ek=(e,n)=>{switch(n){case"ws":return e.replace(/^http/,"ws");case"http":return e.replace(/^ws/,"http")}},tk=e=>/^https?:\/\/[^\/]+?\/index$/.test(e)?e.replace(/\/index$/,"/"):e.replace(/\/index$/,"");function mu(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function E1(e,n){if(!mu(e)&&!mu(n))return n;const r={...e};for(const i in n){const l=n[i];mu(r[i])&&mu(l)?r[i]=E1(r[i],l):r[i]=l}return r}var R1=(e,n)=>new Proxy(()=>{},{get(i,l){if(!(typeof l!="string"||l==="then"))return R1(e,[...n,l])},apply(i,l,c){return e({path:n,args:c})}}),nk=class{constructor(e,n){Ve(this,"url");Ve(this,"method");Ve(this,"queryParams");Ve(this,"pathParams",{});Ve(this,"rBody");Ve(this,"cType");Ve(this,"fetch",async(e,n)=>{if(e){if(e.query&&(this.queryParams=C1(e.query)),e.form){const f=new FormData;for(const[p,h]of Object.entries(e.form))if(Array.isArray(h))for(const v of h)f.append(p,v);else f.append(p,h);this.rBody=f}e.json&&(this.rBody=JSON.stringify(e.json),this.cType="application/json"),e.param&&(this.pathParams=e.param)}let r=this.method.toUpperCase();const i={...e==null?void 0:e.header,...typeof(n==null?void 0:n.headers)=="function"?await n.headers():n==null?void 0:n.headers};if(e!=null&&e.cookie){const f=[];for(const[p,h]of Object.entries(e.cookie))f.push(WN(p,h,{path:"/"}));i.Cookie=f.join(",")}this.cType&&(i["Content-Type"]=this.cType);const l=new Headers(i??void 0);let c=this.url;c=tk(c),c=Wp(c,this.pathParams),this.queryParams&&(c=c+"?"+this.queryParams.toString()),r=this.method.toUpperCase();const u=!(r==="GET"||r==="HEAD");return((n==null?void 0:n.fetch)||fetch)(c,{body:u?this.rBody:void 0,method:r,headers:l,...n==null?void 0:n.init})});this.url=e,this.method=n}},ak=(e,n)=>R1(function r(i){var v;const l=[...i.path],c=l.slice(-3).reverse();if(c[0]==="toString")return c[1]==="name"?c[2]||"":r.toString();if(c[0]==="valueOf")return c[1]==="name"?c[2]||"":r;let u="";if(/^\$/.test(c[0])){const g=l.pop();g&&(u=g.replace(/^\$/,""))}const f=l.join("/"),p=JN(e,f);if(u==="url"){let g=p;return i.args[0]&&(i.args[0].param&&(g=Wp(p,i.args[0].param)),i.args[0].query&&(g=g+"?"+C1(i.args[0].query).toString())),new URL(g)}if(u==="ws"){const g=ek(i.args[0]&&i.args[0].param?Wp(p,i.args[0].param):p,"ws"),b=new URL(g),x=(v=i.args[0])==null?void 0:v.query;return x&&Object.entries(x).forEach(([S,R])=>{Array.isArray(R)?R.forEach(_=>b.searchParams.append(S,_)):b.searchParams.set(S,R)}),((...S)=>(n==null?void 0:n.webSocket)!==void 0&&typeof n.webSocket=="function"?n.webSocket(...S):new WebSocket(...S))(b.toString())}const h=new nk(p,u);if(u){n??(n={});const g=E1(n,{...i.args[1]});return h.fetch(i.args[0],g)}return h},[]);const rk="http://localhost:4244",zt=ak(rk,{async fetch(e,n){const r=await fetch(e,{...n,mode:"cors"});if(r.ok)return r;const i=await r.json();throw typeof i=="object"&&i!==null&&"message"in i?new Error(i.message):new Error(r.statusText)}});function ix(e){return typeof e=="object"&&e!==null&&"type"in e&&"name"in e&&"path"in e}function ik(e){const[n,r]=w.useState(new Set),[i,l]=w.useState("");Yn();const c=oo(),u=uw({select:x=>x.pathname}),p=Tl({queryKey:["file-tree"],queryFn:async()=>(await zt.api.directories.tree.$get()).json()}).data;function h(x){const C=x,S=C.split("/").filter(Boolean);if(S.length>0){const R=S[S.length-1];if(R===void 0)throw new Error("Last segment is undefined");if(R.includes("."))return S.pop(),`/${S.join("/")}`}return C}h(u),w.useEffect(()=>{const x=S=>{const R=[];for(const _ of S)if(ix(_)&&_.type==="directory"){const A=Yt(_.path);R.push(A),_.children&&R.push(...x(_.children))}return R},C=x(p);r(new Set(C))},[p]),w.useEffect(()=>{const C=(R=>{const _=R,A=_.split("/").filter(Boolean);if(A.length>0){const M=A[A.length-1];if(M!=null&&M.includes("."))return A.pop(),`/${A.join("/")}`}return _})(u),S=C.startsWith("/")?C.substring(1):C;l(S)},[u]);const v=x=>{l(x),c({to:`/${x}`})},g=x=>{const C=new Set(n);C.has(x)?C.delete(x):C.add(x),r(C)},b=(x,C=0)=>x.filter(ix).map(S=>{var R;return y.jsx(S1,{node:S,depth:C,currentPath:((R=window.location.pathname.match(/\/(.*)$/))==null?void 0:R[1])||"",onSelectDirectory:v,openPaths:n,onToggleOpen:g,selectedDirectory:i},S.path||`file-${S.name}`)});return y.jsxs(w1,{children:[y.jsxs(HN,{collapsible:"offcanvas",variant:"inset",children:[y.jsx($N,{children:y.jsxs(FN,{children:[y.jsx(IN,{children:"ファイル"}),y.jsx(GN,{children:y.jsx(YN,{children:b(p)})})]})}),y.jsx(qN,{})]}),y.jsx(VN,{className:"overflow-hidden",children:e.children})]})}const gd=f_({component:sk});function sk(){return y.jsx(w1,{children:y.jsx(w.Suspense,{fallback:y.jsx("div",{children:"ファイルツリーを読み込み中..."}),children:y.jsx(ik,{children:y.jsx(ed,{})})})})}const ok="modulepreload",lk=function(e){return"/"+e},sx={},vd=function(n,r,i){let l=Promise.resolve();if(r&&r.length>0){let u=function(h){return Promise.all(h.map(v=>Promise.resolve(v).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const f=document.querySelector("meta[property=csp-nonce]"),p=(f==null?void 0:f.nonce)||(f==null?void 0:f.getAttribute("nonce"));l=u(r.map(h=>{if(h=lk(h),h in sx)return;sx[h]=!0;const v=h.endsWith(".css"),g=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${g}`))return;const b=document.createElement("link");if(b.rel=v?"stylesheet":ok,v||(b.as="script"),b.crossOrigin="",b.href=h,p&&b.setAttribute("nonce",p),document.head.appendChild(b),v)return new Promise((x,C)=>{b.addEventListener("load",x),b.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${h}`)))})}))}function c(u){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=u,window.dispatchEvent(f),!f.defaultPrevented)throw u}return l.then(u=>{for(const f of u||[])f.status==="rejected"&&c(f.reason);return n().catch(c)})},ck=()=>vd(()=>Promise.resolve().then(()=>Ek),void 0),T1=no("/_index")({component:td(ck,"component",()=>T1.ssr)}),uk=()=>vd(()=>Promise.resolve().then(()=>Tk),void 0),_1=no("/$")({component:td(uk,"component",()=>_1.ssr)}),dk=()=>vd(()=>Promise.resolve().then(()=>G3),void 0),A1=no("/$/")({component:td(dk,"component",()=>A1.ssr)}),fk=()=>vd(()=>Promise.resolve().then(()=>J3),void 0),Um=no("/apps/client/$")({component:td(fk,"component",()=>Um.ssr)}),hk=T1.update({id:"/_index",getParentRoute:()=>gd}),M1=_1.update({id:"/$",path:"/$",getParentRoute:()=>gd}),pk=A1.update({id:"/",path:"/",getParentRoute:()=>M1}),mk=Um.update({id:"/apps/client/$",path:"/apps/client/$",getParentRoute:()=>gd}),gk={SplatIndexRoute:pk},vk=M1._addFileChildren(gk),yk={SplatRoute:vk,IndexRoute:hk,AppsClientSplatRoute:mk},bk=gd._addFileChildren(yk)._addFileTypes(),xk=R_({routeTree:bk,defaultPreload:"intent"}),D1=document.getElementById("app");if(D1===null)throw new Error("No container found");const wk=k_.createRoot(D1),Sk=new IR;wk.render(y.jsx(ZR,{client:Sk,children:y.jsxs(w.Suspense,{fallback:null,children:[y.jsx(A_,{router:xk}),y.jsx(d2,{})]})}));const Ck=function(){return y.jsx("div",{className:"flex flex-col items-center justify-center pt-40",children:y.jsxs("p",{className:"max-w-md text-center",children:["左側のサイドバーからファイルを選択してください。",y.jsx("br",{}),"ファイルの内容がここに表示されます。"]})})},Ek=Object.freeze(Object.defineProperty({__proto__:null,component:Ck},Symbol.toStringTag,{value:"Module"})),Rk=function(){return y.jsx(w.Suspense,{fallback:y.jsx("div",{className:"flex h-[50vh] items-center justify-center",children:y.jsx("div",{className:"text-muted-foreground",children:"読み込み中..."})}),children:y.jsx(ed,{})})},Tk=Object.freeze(Object.defineProperty({__proto__:null,component:Rk},Symbol.toStringTag,{value:"Module"}));function Aa({className:e,...n}){return y.jsx("div",{"data-slot":"card",className:_e("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm",e),...n})}function _k(e){const[n,r]=w.useState(new Set),i=ia({async mutationFn(f){const v=Yt(f).split("/").map(b=>encodeURIComponent(b)).join("/"),g=await fetch(`/api/files/${v}`,{method:"DELETE"});if(!g.ok){const b=await g.text();throw new Error(`Failed to delete file: ${b}`)}return g.json()},onSuccess(){e.onDataChanged&&e.onDataChanged()}}),l=ia({async mutationFn(f){return(await zt.api.files[":path{.+}"].$put({param:{path:Yt(f)},json:{properties:null,content:null,title:null,description:null,isArchived:!0}})).json()},onSuccess(){e.onDataChanged&&e.onDataChanged()}}),c=f=>{n.has(f)?(i.mutate(f),r(new Set)):r(new Set([f]))},u=f=>{l.mutate(f)};return y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx(Ul,{to:"/$",params:{_splat:Yt(e.file.path.path)},className:"text-blue-600 hover:underline",children:e.file.path.name}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("span",{className:"text-sm uppercase opacity-50",children:e.file.extension}),y.jsxs("div",{className:"flex gap-1",children:[y.jsx(Ze,{size:"sm",variant:"ghost",onClick:()=>u(e.file.path.path),disabled:l.isPending,className:"h-8 w-8 p-0",title:"アーカイブする",children:y.jsx(pw,{className:"h-4 w-4"})}),y.jsx(Ze,{size:"sm",variant:n.has(e.file.path.path)?"destructive":"ghost",onClick:()=>c(e.file.path.path),disabled:i.isPending,className:"h-8 w-8 p-0",title:"削除する",children:y.jsx(yw,{className:"h-4 w-4"})})]})]})]})}function Ak(e){return"extension"in e}function Mk(e){return!e.files||e.files.length===0?null:y.jsx(Aa,{className:"rounded-md p-2",children:y.jsx("div",{className:"space-y-2",children:e.files.filter(Ak).map(n=>y.jsx(_k,{file:n,onDataChanged:e.onDataChanged},n.path.path))})})}function Kr({...e}){return y.jsx(cO,{"data-slot":"select",...e})}function Xr({...e}){return y.jsx(dO,{"data-slot":"select-value",...e})}function Zr({className:e,size:n="default",children:r,...i}){return y.jsxs(uO,{"data-slot":"select-trigger","data-size":n,className:_e("flex w-fit items-center justify-between gap-2 whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-xs outline-none transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[size=default]:h-9 data-[size=sm]:h-8 data-[placeholder]:text-muted-foreground *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:hover:bg-input/50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0",e),...i,children:[r,y.jsx(fO,{asChild:!0,children:y.jsx(gw,{className:"size-4 opacity-50"})})]})}function Wr({className:e,children:n,position:r="popper",...i}){return y.jsx(hO,{children:y.jsxs(pO,{"data-slot":"select-content",className:_e("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=closed]:animate-out data-[state=open]:animate-in",r==="popper"&&"data-[side=left]:-translate-x-1 data-[side=top]:-translate-y-1 data-[side=right]:translate-x-1 data-[side=bottom]:translate-y-1",e),position:r,...i,children:[y.jsx(Dk,{}),y.jsx(mO,{className:_e("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:n}),y.jsx(Ok,{})]})})}function oa({className:e,children:n,...r}){return y.jsxs(gO,{"data-slot":"select-item",className:_e("relative flex w-full cursor-default select-none items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...r,children:[y.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:y.jsx(yO,{children:y.jsx(mw,{className:"size-4"})})}),y.jsx(vO,{children:n})]})}function Dk({className:e,...n}){return y.jsx(bO,{"data-slot":"select-scroll-up-button",className:_e("flex cursor-default items-center justify-center py-1",e),...n,children:y.jsx(M2,{className:"size-4"})})}function Ok({className:e,...n}){return y.jsx(xO,{"data-slot":"select-scroll-down-button",className:_e("flex cursor-default items-center justify-center py-1",e),...n,children:y.jsx(gw,{className:"size-4"})})}function Nk(e){return y.jsxs(Kr,{value:e.value===!0?"true":e.value===!1?"false":"undefined",onValueChange:n=>{n==="true"?e.onUpdate(!0):n==="false"?e.onUpdate(!1):e.onUpdate(void 0)},children:[y.jsx(Zr,{className:"w-full",children:y.jsx(Xr,{placeholder:"選択してください"})}),y.jsxs(Wr,{children:[y.jsx(oa,{value:"undefined",children:"-"}),y.jsx(oa,{value:"true",children:"true"}),y.jsx(oa,{value:"false",children:"false"})]})]})}function kk(e){const n=p=>p==null?"":Array.isArray(p)?p.join(", "):"",[r,i]=w.useState(n(e.value));w.useEffect(()=>{i(n(e.value))},[e.value]);const l=p=>{if(p!=="")return p.split(",").map(h=>h.trim().toLowerCase()==="true")},c=n(e.value),u=()=>{const p=l(r);p!==e.value&&e.onUpdate(p)},f=p=>{p.key==="Enter"&&u(),p.key==="Escape"&&i(c)};return y.jsx(In,{type:"text",value:r,onChange:p=>i(p.target.value),onBlur:u,onKeyDown:f,placeholder:c||"-"})}function jk(e){const n=p=>p==null?"":Array.isArray(p)?p.join(", "):"",[r,i]=w.useState(n(e.value));w.useEffect(()=>{i(n(e.value))},[e.value]);const l=p=>{if(p!=="")return p.split(",").map(h=>{const v=Number(h.trim());return Number.isNaN(v)?0:v})},c=n(e.value),u=()=>{const p=l(r);p!==e.value&&e.onUpdate(p)},f=p=>{p.key==="Enter"&&u(),p.key==="Escape"&&i(c)};return y.jsx(In,{type:"text",value:r,onChange:p=>i(p.target.value),onBlur:u,onKeyDown:f,placeholder:c||"-"})}function O1(e){const n=e.relationOptions||[],r=Array.isArray(e.value)?e.value:[],i=n.filter(u=>!r.includes(u.name)),l=u=>{if(u&&!r.includes(u)){const f=[...r,u];e.onValueChange(f)}},c=u=>{const f=r.filter(p=>p!==u);e.onValueChange(f)};return e.wrap?y.jsxs("div",{className:"space-y-2",children:[i.length>0&&y.jsxs(Kr,{onValueChange:l,children:[y.jsx(Zr,{className:"w-full",children:y.jsx(Xr,{placeholder:"項目を追加"})}),y.jsx(Wr,{children:i.map(u=>y.jsx(oa,{value:u.name,children:u.label},u.name))})]}),y.jsx("div",{className:"flex flex-wrap gap-2",children:r.toReversed().map(u=>{const f=n.find(h=>h.name===u),p=(f==null?void 0:f.label)||u;return y.jsxs(Ze,{variant:"outline",onClick:()=>c(u),className:"h-auto break-words text-left",children:[y.jsx("span",{className:"flex-1",children:p}),y.jsx(ji,{className:"ml-2 w-4 flex-shrink-0 text-muted-foreground"})]},u)})}),r.length===0&&i.length===0&&y.jsx("div",{className:"text-muted-foreground text-sm",children:"利用可能なオプションがありません"})]}):y.jsxs("div",{className:"flex gap-2",children:[i.length>0&&y.jsxs(Kr,{onValueChange:l,children:[y.jsx(Zr,{className:"min-w-24",children:y.jsx(Xr,{placeholder:"項目を追加"})}),y.jsx(Wr,{children:i.map(u=>y.jsx(oa,{value:u.name,children:u.label},u.name))})]}),r.toReversed().map(u=>{const f=n.find(h=>h.name===u),p=(f==null?void 0:f.label)||u;return y.jsxs(Ze,{variant:"outline",onClick:()=>c(u),children:[y.jsx("span",{children:p}),y.jsx(ji,{className:"w-4 text-muted-foreground"})]},u)}),r.length===0&&i.length===0&&y.jsx("div",{className:"text-muted-foreground text-sm",children:"利用可能なオプションがありません"})]})}function zk(e){return y.jsx(O1,{value:Array.isArray(e.value)?e.value:[],relationOptions:e.relationOptions,onValueChange:n=>e.onUpdate(n)})}const Lk=bm("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-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 transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Hm({className:e,variant:n,asChild:r=!1,...i}){const l=r?nd:"span";return y.jsx(l,{"data-slot":"badge",className:_e(Lk({variant:n}),e),...i})}function Pk(e){const[n,r]=w.useState(!1),i=e.value||[],l=u=>{const p=i.includes(u)?i.filter(h=>h!==u):[...i,u];e.onUpdate(p)},c=u=>{const f=i.filter(p=>p!==u);e.onUpdate(f)};return y.jsxs("div",{className:"relative",children:[y.jsxs("div",{className:"flex min-h-8 flex-wrap gap-1 rounded-md border p-2",children:[i.map(u=>y.jsxs(Hm,{variant:"secondary",className:"flex items-center gap-1",children:[u,y.jsx(Ze,{size:"sm",variant:"ghost",className:"h-4 w-4 p-0",onClick:()=>c(u),children:y.jsx(ji,{className:"h-3 w-3"})})]},u)),y.jsx(Ze,{variant:"ghost",size:"sm",onClick:()=>r(!n),className:"text-muted-foreground",children:"追加"})]}),n&&y.jsx("div",{className:"absolute z-10 mt-1 w-full rounded-md border bg-white shadow-lg",children:e.options.filter(u=>!i.includes(u)).map(u=>y.jsx("button",{type:"button",className:"w-full px-3 py-2 text-left hover:bg-gray-100",onClick:()=>{l(u),r(!1)},children:u},u))})]})}function Bk(e){const[n,r]=w.useState(!1),i=e.value||[],l=u=>{const p=i.includes(u)?i.filter(h=>h!==u):[...i,u];e.onUpdate(p)},c=u=>{const f=i.filter(p=>p!==u);e.onUpdate(f)};return y.jsxs("div",{className:"relative",children:[y.jsxs("div",{className:"flex min-h-8 flex-wrap gap-1 rounded-md border p-2",children:[i.map(u=>y.jsxs(Hm,{variant:"secondary",className:"flex items-center gap-1",children:[u,y.jsx(Ze,{size:"sm",variant:"ghost",className:"h-4 w-4 p-0",onClick:()=>c(u),children:y.jsx(ji,{className:"h-3 w-3"})})]},u)),y.jsx(Ze,{variant:"ghost",size:"sm",onClick:()=>r(!n),className:"text-muted-foreground",children:"追加"})]}),n&&y.jsx("div",{className:"absolute z-10 mt-1 w-full rounded-md border bg-white shadow-lg",children:e.options.filter(u=>!i.includes(u)).map(u=>y.jsx("button",{type:"button",className:"w-full px-3 py-2 text-left hover:bg-gray-100",onClick:()=>{l(u),r(!1)},children:u},u))})]})}function Uk(e){const n=p=>p==null?"":Array.isArray(p)?p.join(", "):"",[r,i]=w.useState(n(e.value));w.useEffect(()=>{i(n(e.value))},[e.value]);const l=p=>{if(p!=="")return p.split(",").map(h=>h.trim()).filter(Boolean)},c=n(e.value),u=()=>{const p=l(r);p!==e.value&&e.onUpdate(p)},f=p=>{p.key==="Enter"&&u(),p.key==="Escape"&&i(c)};return y.jsx(In,{type:"text",value:r,onChange:p=>i(p.target.value),onBlur:u,onKeyDown:f,placeholder:c||"-"})}function Hk(e){const[n,r]=w.useState(!1),i=e.value!==void 0&&e.value!==null?String(e.value):"",[l,c]=w.useState(i);w.useEffect(()=>{c(i)},[i]);const u=()=>{r(!1);const p=Number(l),h=l===""||Number.isNaN(p)?void 0:p;h!==e.value&&e.onUpdate(h??null)},f=p=>{p.key==="Enter"&&u(),p.key==="Escape"&&(r(!1),c(e.value?String(e.value):""))};return y.jsx(In,{type:"number",value:l,onChange:p=>c(p.target.value),onBlur:u,onKeyDown:f})}function Vm(e){const n=e.relationOptions||[],r=i=>{e.onValueChange(i)};return y.jsxs(Kr,{value:e.value||"",onValueChange:r,children:[y.jsx(Zr,{className:"w-full bg-background",children:y.jsx(Xr,{placeholder:"リレーションを選択"})}),y.jsx(Wr,{children:n.map(i=>y.jsx(oa,{value:i.name,children:i.label},i.name))})]})}function Vk(e){return y.jsx(Vm,{value:e.value||"",relationOptions:e.relationOptions,onValueChange:n=>{e.onUpdate(n)}})}function qk(e){var r;const n=i=>{const l=Number.parseInt(i,10);Number.isNaN(l)||e.onValueChange(l)};return y.jsxs(Kr,{value:((r=e.value)==null?void 0:r.toString())||"",onValueChange:n,children:[y.jsx(Zr,{className:"w-full bg-background",children:y.jsx(Xr,{placeholder:"選択してください"})}),y.jsx(Wr,{children:e.options.map(i=>y.jsx(oa,{value:i.toString(),children:i},i))})]})}function $k(e){return y.jsxs(Kr,{value:e.value||"",onValueChange:e.onValueChange,children:[y.jsx(Zr,{className:"w-full bg-background",children:y.jsx(Xr,{placeholder:"選択してください"})}),y.jsx(Wr,{children:e.options.map(n=>y.jsx(oa,{value:n,children:n},n))})]})}function Fk(e){const n=e.value?String(e.value):"",[r,i]=w.useState(n);w.useEffect(()=>{i(n)},[n]);const l=()=>{r!==e.value&&e.onUpdate(r||void 0)},c=u=>{u.key==="Enter"&&l(),u.key==="Escape"&&i(n)};return y.jsx(In,{type:"text",value:r,onChange:u=>i(u.target.value),onBlur:l,onKeyDown:c,placeholder:n||"-"})}function ox(e){return e.type==="boolean"?y.jsx(Nk,{value:e.value,onUpdate:e.onUpdate}):e.type==="number"?y.jsx(Hk,{value:e.value,onUpdate:e.onUpdate}):e.type==="relation"?y.jsx(Vk,{value:e.value,onUpdate:e.onUpdate,relationOptions:e.relationOptions}):e.type==="multi-relation"?y.jsx(zk,{value:e.value,onUpdate:e.onUpdate,relationOptions:e.relationOptions}):e.type==="multi-text"?y.jsx(Uk,{value:e.value,onUpdate:e.onUpdate}):e.type==="multi-number"?y.jsx(jk,{value:e.value,onUpdate:e.onUpdate}):e.type==="multi-boolean"?y.jsx(kk,{value:e.value,onUpdate:e.onUpdate}):e.type==="select-text"&&e.selectOptions?y.jsx($k,{value:e.value,options:e.selectOptions,onValueChange:e.onUpdate}):e.type==="select-number"&&e.selectOptions?y.jsx(qk,{value:e.value,options:e.selectOptions,onValueChange:e.onUpdate}):e.type==="multi-select-text"&&e.selectOptions?y.jsx(Bk,{value:e.value,options:e.selectOptions,onUpdate:e.onUpdate}):e.type==="multi-select-number"&&e.selectOptions?y.jsx(Pk,{value:e.value,options:e.selectOptions,onUpdate:e.onUpdate}):y.jsx(Fk,{value:e.value,onUpdate:e.onUpdate})}function N1({className:e,...n}){return y.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:y.jsx("table",{"data-slot":"table",className:_e("w-full caption-bottom text-sm",e),...n})})}function k1({className:e,...n}){return y.jsx("thead",{"data-slot":"table-header",className:_e("[&_tr]:border-b",e),...n})}function j1({className:e,...n}){return y.jsx("tbody",{"data-slot":"table-body",className:_e("[&_tr:last-child]:border-0",e),...n})}function $u({className:e,...n}){return y.jsx("tr",{"data-slot":"table-row",className:_e("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...n})}function Ns({className:e,...n}){return y.jsx("th",{"data-slot":"table-head",className:_e("h-10 whitespace-nowrap px-2 text-left align-middle font-medium text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...n})}function ks({className:e,...n}){return y.jsx("td",{"data-slot":"table-cell",className:_e("whitespace-nowrap p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...n})}function Ik(e){return e.type==="markdown"}function Gk(e){const n=dm(),[r,i]=w.useState(new Set),l=ia({async mutationFn(){return(await zt.api.files.$post({json:{directoryPath:Yt(e.directoryPath)}})).json()},onSuccess(){n.invalidateQueries({queryKey:["file-tree"]}),e.onDataChanged&&e.onDataChanged()}}),c=ia({async mutationFn(x){console.log("Updating cell:",x);try{const S=await zt.api.files[":path{.+}"].$put({param:{path:x.path},json:{properties:{[x.field]:x.value},content:null,title:null,description:null,isArchived:null}});if(console.log("Response status:",S.status),!S.ok){const _=await S.text();throw console.error("Response error:",_),new Error(`API Error: ${S.status} - ${_}`)}const R=await S.json();return console.log("Update response:",R),R}catch(C){throw console.error("Update request failed:",C),C}},onSuccess(){n.invalidateQueries({queryKey:["file-tree"]}),n.invalidateQueries({queryKey:["directory"]}),e.onDataChanged&&e.onDataChanged()},onError(x){console.error("Update mutation failed:",x)}}),u=ia({async mutationFn(x){return(await zt.api.files[":path{.+}"].$put({param:{path:x.path},json:{title:x.title,properties:null,content:null,description:null,isArchived:null}})).json()},onSuccess(){e.onDataChanged&&e.onDataChanged()}}),f=ia({async mutationFn(x){const C=Yt(x),R=await zt.api.files[":path{.+}"].$delete({param:{path:C}});if(!R.ok){const _=await R.text();throw new Error(`Failed to delete file: ${_}`)}return R.json()},onSuccess(){n.invalidateQueries({queryKey:["file-tree"]}),e.onDataChanged&&e.onDataChanged()}}),p=ia({async mutationFn(x){const C=Yt(x);return(await zt.api.files[":path{.+}"].$put({param:{path:C},json:{properties:null,content:null,title:null,description:null,isArchived:!0}})).json()},onSuccess(){n.invalidateQueries({queryKey:["file-tree"]}),e.onDataChanged&&e.onDataChanged()}}),h=ia({async mutationFn(x){const C=Yt(x);return(await zt.api.files[":path{.+}"].$put({param:{path:C},json:{properties:null,content:null,title:null,description:null,isArchived:!1}})).json()},onSuccess(){n.invalidateQueries({queryKey:["file-tree"]}),e.onDataChanged&&e.onDataChanged()}}),v=x=>{r.has(x)?(f.mutate(x),i(new Set)):i(new Set([x]))},g=x=>{p.mutate(x)},b=x=>{h.mutate(x)};return y.jsxs(Aa,{className:"gap-0 overflow-x-scroll rounded-md p-0",children:[y.jsxs(N1,{children:[y.jsx(k1,{children:y.jsxs($u,{children:[y.jsx(Ns,{className:"w-40",children:"ファイル名"}),y.jsx(Ns,{className:"min-w-64",children:"タイトル"}),e.columns.map(x=>y.jsx(Ns,{children:x.label},x.key)),y.jsx(Ns,{className:"w-16"})]})}),y.jsx(j1,{children:e.files.filter(Ik).map(x=>{const C="isArchived"in x&&x.isArchived;return y.jsxs($u,{className:C?"opacity-60":"",children:[y.jsx(ks,{className:"font-medium",children:y.jsx(Ul,{to:"/$",params:{_splat:Yt(x.path.path)},className:"text-blue-600 hover:underline",children:x.path.name})}),y.jsx(ks,{className:"p-0",children:y.jsx(ox,{value:x.content.title||"",type:"string",onUpdate:S=>u.mutate({path:x.path.path,title:String(S)})})}),e.columns.map(S=>{var A,M;const R=(A=e.relations)==null?void 0:A.find(k=>k.path===S.path),_=(M=x.content.frontMatter)==null?void 0:M[S.key];return y.jsx(ks,{className:"p-1",children:y.jsx(ox,{value:_,type:S.type,path:S.path,relationOptions:R==null?void 0:R.files,selectOptions:S.options,onUpdate:k=>c.mutate({path:x.path.path,field:S.key,value:k})})},S.key)}),y.jsx(ks,{className:"p-2",children:y.jsxs("div",{className:"flex justify-end gap-1",children:[!C&&y.jsx(Ze,{size:"sm",variant:"ghost",onClick:()=>g(x.path.path),disabled:p.isPending,className:"h-8 w-8 p-0",title:"アーカイブする",children:y.jsx(pw,{className:"h-4 w-4"})}),C&&y.jsx(Ze,{size:"sm",variant:"ghost",onClick:()=>b(x.path.path),disabled:h.isPending,className:"h-8 w-8 p-0",title:"復元する",children:y.jsx(y2,{className:"h-4 w-4"})}),y.jsx(Ze,{size:"sm",variant:r.has(x.path.path)?"destructive":"ghost",onClick:()=>v(x.path.path),disabled:f.isPending,className:"h-8 w-8 p-0",title:"削除する",children:y.jsx(yw,{className:"h-4 w-4"})})]})})]},x.path.path)})})]}),y.jsxs("div",{className:"border-t p-2 flex gap-2",children:[y.jsxs(Ze,{size:"sm",variant:"secondary",onClick:()=>l.mutate(),disabled:l.isPending,children:[y.jsx(vw,{className:"h-4 w-4"}),"新しいファイル"]}),(e.archivedCount??0)>0&&y.jsx(Ze,{size:"sm",variant:e.showArchived?"default":"outline",onClick:e.onToggleArchived,children:e.showArchived?`表示中(${e.archivedCount}件)`:`非表示(${e.archivedCount}件)`})]})]})}function z1(){const e=Bm();return y.jsx(Ze,{variant:"outline",onClick:e.toggleSidebar,size:"icon",children:y.jsx(Y2,{})})}function Yk({...e}){return y.jsx(Ww,{"data-slot":"dialog",...e})}function Qk({...e}){return y.jsx(OM,{"data-slot":"dialog-trigger",...e})}function Kk({...e}){return y.jsx(Jw,{"data-slot":"dialog-portal",...e})}function Xk({className:e,...n}){return y.jsx(eS,{"data-slot":"dialog-overlay",className:_e("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in",e),...n})}function Zk({className:e,children:n,...r}){return y.jsxs(Kk,{"data-slot":"dialog-portal",children:[y.jsx(Xk,{}),y.jsxs(tS,{"data-slot":"dialog-content",className:_e("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:max-w-lg",e),...r,children:[n,y.jsxs(aS,{className:"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",children:[y.jsx(ji,{}),y.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Wk({className:e,...n}){return y.jsx(nS,{"data-slot":"dialog-title",className:_e("font-semibold text-lg leading-none",e),...n})}const Jk=["📁","📂","📄","📝","📊","📈","📉","📋","📌","📍","🏠","🏢","🏪","🏬","🏭","🏯","🏰","🏳️","🏴","🏁","⚡","🔥","💧","🌱","🌟","⭐","🎯","🎪","🎭","🎨","🔧","🔨","⚙️","🔩","⚖️","🔬","💻","📱","🖥️","⌨️","💡","🔑","🗝️","🔒","🔓","🔐","🛡️","⚔️","🏹","🎣","📚","📖","📗","📘","📙","📓","📔","📒","📰","📜","🎵","🎶","🎤","🎧","🎸","🎹","🥁","🎺","🎷","🎻","🎮","🕹️","🎲","♠️","♥️","♦️","♣️","🃏","🀄","📦"];function ej(e){const[n,r]=w.useState(!1),i=l=>{e.onIconSelect(l),r(!1)};return y.jsxs(Yk,{open:n,onOpenChange:r,children:[y.jsx(Qk,{asChild:!0,children:y.jsx(Ze,{variant:"outline",size:"icon",children:e.currentIcon||"📁"})}),y.jsxs(Zk,{className:"max-w-md",children:[y.jsx(Wk,{children:"アイコンを選択"}),y.jsx("div",{className:"space-y-4",children:y.jsx("div",{className:"grid max-h-64 grid-cols-10 gap-2 overflow-y-auto",children:Jk.map(l=>y.jsx(Ze,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:()=>i(l),children:l},l))})})]})]})}function tj({className:e,...n}){return y.jsx("textarea",{"data-slot":"textarea",className:_e("field-sizing-content flex min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs outline-none transition-[color,box-shadow] placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40",e),...n})}function nj(e){return`vscode://file${e}`}function L1(e){const n=nj(e.filePath);return y.jsx("a",{href:n,className:"block",children:y.jsx(Ze,{size:e.size||"sm",variant:e.variant||"secondary",children:y.jsx(z2,{})})})}function aj(e){var i;const n=e.split("/");return(i=n[n.length-1])!=null&&i.includes(".")&&n.pop(),n.join("/")}const lx=zt.api.directories[":path{.+}"];function P1(e){const n=aj(e),r=n.startsWith("/")?n.substring(1):n;return Tl({queryKey:[lx.$url({param:{path:r}})],async queryFn(){return(await lx.$get({param:{path:r}})).json()}})}function rj(e){return e.type==="markdown"}function ij(e){return e.type==="unknown"}function cp(e){return e.type==="markdown"||e.type==="unknown"}function sj(e){const n=P1(e.currentPath),r=n.data,[i,l]=w.useState(!1),c=r.files.filter(N=>rj(N)),u=c.filter(N=>!cp(N)||!N.isArchived),f=c.filter(N=>cp(N)&&N.isArchived),p=i?c:u,h=r.files.filter(N=>ij(N)&&(cp(N)?!N.isArchived:!0)),[v,g]=w.useState(""),[b,x]=w.useState(""),[C,S]=w.useState("📁");w.useEffect(()=>{var N;r!=null&&r.indexFile&&(g(r.indexFile.content.title||""),x(r.indexFile.content.description||""),S(((N=r.indexFile.content.frontMatter)==null?void 0:N.icon)||"📁"))},[r]);const R=N=>{g(N.target.value)},_=async()=>{await zt.api.directories[":path{.+}"].$put({param:{path:e.currentPath.startsWith("/")?e.currentPath.substring(1):e.currentPath},json:{title:v,description:null,icon:null,schema:null}})},A=N=>{x(N.target.value)},M=async()=>{await zt.api.directories[":path{.+}"].$put({param:{path:e.currentPath.startsWith("/")?e.currentPath.substring(1):e.currentPath},json:{title:null,description:b,icon:null,schema:null}})},k=async N=>{console.log("Selected icon:",N),console.log("Current path:",e.currentPath),S(N);try{const P=await(await zt.api.directories[":path{.+}"].$put({param:{path:e.currentPath.startsWith("/")?e.currentPath.substring(1):e.currentPath},json:{title:null,description:null,icon:N,schema:null}})).json();console.log("API response:",P),await n.refetch()}catch(z){console.error("Error updating icon:",z)}};return y.jsx("div",{className:"h-full overflow-x-hidden",children:y.jsxs("div",{className:"space-y-2 p-2",children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx(z1,{}),r.indexFile&&y.jsx(L1,{cwd:r.cwd,filePath:r.indexFile.path.fullPath,size:"icon",variant:"outline"}),y.jsx(ej,{currentIcon:C,onIconSelect:k}),y.jsx(In,{value:v,onChange:R,onBlur:_,placeholder:"タイトルを入力",className:"flex-1"})]}),y.jsx(tj,{value:b,onChange:A,onBlur:M,placeholder:"説明を入力",rows:2}),y.jsx(Gk,{files:p,columns:(()=>{var P,D;const N=(D=(P=r.indexFile)==null?void 0:P.content.frontMatter)==null?void 0:D.schema;return N?Object.entries(N).map(([B,Y])=>{if(!Y||typeof Y!="object"||!("type"in Y))return null;const Z=Y;return{key:B,label:typeof Z.title=="string"?Z.title:B,type:String(Z.type),path:(Z.type==="relation"||Z.type==="multi-relation")&&typeof Z.path=="string"?Z.path:"",options:Array.isArray(Z.options)?Z.options:[]}}).filter(B=>B!==null):[]})(),directoryPath:e.currentPath,relations:r.relations,onDataChanged:()=>n.refetch(),archivedCount:f.length,showArchived:i,onToggleArchived:()=>l(!i)}),y.jsx(Mk,{files:h,onDataChanged:()=>n.refetch()})]})})}class yn{constructor(n){Ve(this,"data");Ve(this,"errors",[]);typeof n=="string"?this.data=this.parse(n):this.data=n.map(r=>[...r]),this.validate()}get rawData(){return[...this.data]}get headers(){return this.data[0]?[...this.data[0]]:[]}get records(){return this.data.slice(1).map(n=>[...n])}get isInvalid(){return this.errors.length>0}get validationErrors(){return[...this.errors]}toString(){return this.data.map(n=>n.join(",")).join(`
237
+ `)}addColumn(n,r=""){const i=this.data.map((c,u)=>u===0?[...c,n]:[...c,r]),l=new yn("");return this.createNewInstance(l,i)}removeColumn(n){if(n<0||!this.headers[n])return this;const r=this.data.map(l=>l.filter((c,u)=>u!==n)),i=new yn("");return this.createNewInstance(i,r)}moveColumn(n,r){if(n<0||r<0||n>=this.headers.length||r>=this.headers.length||n===r)return this;const i=this.data.map(c=>{const u=[...c],[f]=u.splice(n,1);return f!==void 0&&u.splice(r,0,f),u}),l=new yn("");return this.createNewInstance(l,i)}sortByColumn(n,r=!0){if(n<0||n>=this.headers.length)return this;const i=this.data[0]||[],c=[...this.data.slice(1)].sort((p,h)=>{const v=p[n]||"",g=h[n]||"";return r?v.localeCompare(g):g.localeCompare(v)}),u=[i,...c],f=new yn("");return this.createNewInstance(f,u)}addRecord(n){if(n.length!==this.headers.length){const l=[...n];for(;l.length<this.headers.length;)l.push("");l.length>this.headers.length&&(l.length=this.headers.length);const c=[...this.data,l],u=new yn("");return this.createNewInstance(u,c)}const r=[...this.data,[...n]],i=new yn("");return this.createNewInstance(i,r)}removeRecord(n){if(n<=0||n>=this.data.length)return this;const r=[...this.data.slice(0,n),...this.data.slice(n+1)],i=new yn("");return this.createNewInstance(i,r)}updateCell(n,r,i){if(n<0||r<0||n>=this.data.length||r>=this.headers.length)return this;const l=this.data.map((u,f)=>{if(f===n){const p=[...u];return p[r]=i,p}return[...u]}),c=new yn("");return this.createNewInstance(c,l)}renameColumn(n,r){return this.updateCell(0,n,r)}parse(n){return n.trim()?n.split(`
238
+ `).filter(r=>r.trim()!=="").map(r=>r.split(",")):[]}validate(){if(this.errors.length=0,this.data.length===0){this.errors.push("CSVデータが空です");return}const n=this.data[0];if(!n||n.length===0){this.errors.push("CSVヘッダーが空です");return}const r=n.length;for(let i=1;i<this.data.length;i++){const l=this.data[i];l&&l.length!==r&&this.errors.push(`行${i+1}の列数がヘッダーと一致しません(ヘッダー: ${r}, 行: ${l.length})`)}}createNewInstance(n,r){return new yn(r)}}function oj(e){const[n,r]=w.useState(new yn(e.content)),[i,l]=w.useState(null),[c,u]=w.useState("");w.useEffect(()=>{r(new yn(e.content))},[e.content]);const f=(C,S)=>{l({index:C,value:S})},p=()=>{if(i&&i.value.trim()!==""){const C=n.renameColumn(i.index,i.value);x(C),l(null)}},h=C=>{const S=n.removeColumn(C);x(S)},v=C=>{if(C>0){const S=n.moveColumn(C,C-1);x(S)}},g=C=>{if(C<n.headers.length-1){const S=n.moveColumn(C,C+1);x(S)}},b=C=>{if(C&&C.preventDefault(),c.trim()!==""){const S=n.addColumn(c);x(S),u("")}},x=C=>{r(C),e.onChange&&e.onChange(C.toString())};return y.jsxs(Aa,{className:"h-full max-h-fit max-w-none gap-0 rounded-md p-0",children:[y.jsx("div",{className:"flex items-center justify-end border-b p-2",children:y.jsxs("form",{className:"flex items-center space-x-2",onSubmit:b,children:[y.jsx(In,{className:"h-9 w-40",onChange:C=>u(C.target.value),placeholder:"新しいカラム名",value:c}),y.jsxs(Ze,{disabled:c.trim()==="",size:"sm",type:"submit",children:[y.jsx(vw,{className:"mr-1 h-4 w-4"}),"追加"]})]})}),y.jsx("div",{className:"flex flex-col gap-2 p-2",children:n.headers.map((C,S)=>y.jsx(Aa,{className:"relative gap-0 p-2",children:y.jsxs("div",{className:"flex items-center space-x-2",children:[y.jsx(In,{autoFocus:(i==null?void 0:i.index)===S,className:"h-8",onChange:R=>(i==null?void 0:i.index)===S?l({...i,value:R.target.value}):f(S,R.target.value),value:(i==null?void 0:i.index)===S?i.value:C}),(i==null?void 0:i.index)===S&&y.jsx(Ze,{className:"h-8 w-8",onClick:p,size:"icon",variant:"ghost",children:y.jsx(mw,{className:"h-4 w-4"})}),y.jsx(Ze,{className:"h-7 w-7",disabled:S===0,onClick:()=>v(S),size:"icon",variant:"outline",children:y.jsx(R2,{className:"h-3 w-3"})}),y.jsx(Ze,{className:"h-7 w-7",disabled:S===n.headers.length-1,onClick:()=>g(S),size:"icon",variant:"outline",children:y.jsx(w2,{className:"h-3 w-3"})}),y.jsx(Ze,{className:_e("h-7 w-7",n.headers.length<=1&&"opacity-50"),disabled:n.headers.length<=1,onClick:()=>h(S),size:"icon",variant:"outline",children:y.jsx(k2,{className:"h-3 w-3"})})]})},`column-${C}-${S.toFixed()}`))})]})}function lj(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return w.useMemo(()=>i=>{n.forEach(l=>l(i))},n)}const yd=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function mo(e){const n=Object.prototype.toString.call(e);return n==="[object Window]"||n==="[object global]"}function qm(e){return"nodeType"in e}function bn(e){var n,r;return e?mo(e)?e:qm(e)&&(n=(r=e.ownerDocument)==null?void 0:r.defaultView)!=null?n:window:window}function $m(e){const{Document:n}=bn(e);return e instanceof n}function $l(e){return mo(e)?!1:e instanceof bn(e).HTMLElement}function B1(e){return e instanceof bn(e).SVGElement}function go(e){return e?mo(e)?e.document:qm(e)?$m(e)?e:$l(e)||B1(e)?e.ownerDocument:document:document:document}const Ma=yd?w.useLayoutEffect:w.useEffect;function Fm(e){const n=w.useRef(e);return Ma(()=>{n.current=e}),w.useCallback(function(){for(var r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return n.current==null?void 0:n.current(...i)},[])}function cj(){const e=w.useRef(null),n=w.useCallback((i,l)=>{e.current=setInterval(i,l)},[]),r=w.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[n,r]}function Ol(e,n){n===void 0&&(n=[e]);const r=w.useRef(e);return Ma(()=>{r.current!==e&&(r.current=e)},n),r}function Fl(e,n){const r=w.useRef();return w.useMemo(()=>{const i=e(r.current);return r.current=i,i},[...n])}function Fu(e){const n=Fm(e),r=w.useRef(null),i=w.useCallback(l=>{l!==r.current&&(n==null||n(l,r.current)),r.current=l},[]);return[r,i]}function Jp(e){const n=w.useRef();return w.useEffect(()=>{n.current=e},[e]),n.current}let up={};function Il(e,n){return w.useMemo(()=>{if(n)return n;const r=up[e]==null?0:up[e]+1;return up[e]=r,e+"-"+r},[e,n])}function U1(e){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),l=1;l<r;l++)i[l-1]=arguments[l];return i.reduce((c,u)=>{const f=Object.entries(u);for(const[p,h]of f){const v=c[p];v!=null&&(c[p]=v+e*h)}return c},{...n})}}const Hs=U1(1),Iu=U1(-1);function uj(e){return"clientX"in e&&"clientY"in e}function Im(e){if(!e)return!1;const{KeyboardEvent:n}=bn(e.target);return n&&e instanceof n}function dj(e){if(!e)return!1;const{TouchEvent:n}=bn(e.target);return n&&e instanceof n}function em(e){if(dj(e)){if(e.touches&&e.touches.length){const{clientX:n,clientY:r}=e.touches[0];return{x:n,y:r}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:n,clientY:r}=e.changedTouches[0];return{x:n,y:r}}}return uj(e)?{x:e.clientX,y:e.clientY}:null}const Nl=Object.freeze({Translate:{toString(e){if(!e)return;const{x:n,y:r}=e;return"translate3d("+(n?Math.round(n):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:n,scaleY:r}=e;return"scaleX("+n+") scaleY("+r+")"}},Transform:{toString(e){if(e)return[Nl.Translate.toString(e),Nl.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:n,duration:r,easing:i}=e;return n+" "+r+"ms "+i}}}),cx="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function fj(e){return e.matches(cx)?e:e.querySelector(cx)}const hj={display:"none"};function pj(e){let{id:n,value:r}=e;return se.createElement("div",{id:n,style:hj},r)}function mj(e){let{id:n,announcement:r,ariaLiveType:i="assertive"}=e;const l={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return se.createElement("div",{id:n,style:l,role:"status","aria-live":i,"aria-atomic":!0},r)}function gj(){const[e,n]=w.useState("");return{announce:w.useCallback(i=>{i!=null&&n(i)},[]),announcement:e}}const H1=w.createContext(null);function vj(e){const n=w.useContext(H1);w.useEffect(()=>{if(!n)throw new Error("useDndMonitor must be used within a children of <DndContext>");return n(e)},[e,n])}function yj(){const[e]=w.useState(()=>new Set),n=w.useCallback(i=>(e.add(i),()=>e.delete(i)),[e]);return[w.useCallback(i=>{let{type:l,event:c}=i;e.forEach(u=>{var f;return(f=u[l])==null?void 0:f.call(u,c)})},[e]),n]}const bj={draggable:`
239
+ To pick up a draggable item, press the space bar.
240
+ While dragging, use the arrow keys to move the item.
241
+ Press space again to drop the item in its new position, or press escape to cancel.
242
+ `},xj={onDragStart(e){let{active:n}=e;return"Picked up draggable item "+n.id+"."},onDragOver(e){let{active:n,over:r}=e;return r?"Draggable item "+n.id+" was moved over droppable area "+r.id+".":"Draggable item "+n.id+" is no longer over a droppable area."},onDragEnd(e){let{active:n,over:r}=e;return r?"Draggable item "+n.id+" was dropped over droppable area "+r.id:"Draggable item "+n.id+" was dropped."},onDragCancel(e){let{active:n}=e;return"Dragging was cancelled. Draggable item "+n.id+" was dropped."}};function wj(e){let{announcements:n=xj,container:r,hiddenTextDescribedById:i,screenReaderInstructions:l=bj}=e;const{announce:c,announcement:u}=gj(),f=Il("DndLiveRegion"),[p,h]=w.useState(!1);if(w.useEffect(()=>{h(!0)},[]),vj(w.useMemo(()=>({onDragStart(g){let{active:b}=g;c(n.onDragStart({active:b}))},onDragMove(g){let{active:b,over:x}=g;n.onDragMove&&c(n.onDragMove({active:b,over:x}))},onDragOver(g){let{active:b,over:x}=g;c(n.onDragOver({active:b,over:x}))},onDragEnd(g){let{active:b,over:x}=g;c(n.onDragEnd({active:b,over:x}))},onDragCancel(g){let{active:b,over:x}=g;c(n.onDragCancel({active:b,over:x}))}}),[c,n])),!p)return null;const v=se.createElement(se.Fragment,null,se.createElement(pj,{id:i,value:l.draggable}),se.createElement(mj,{id:f,announcement:u}));return r?sa.createPortal(v,r):v}var kt;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(kt||(kt={}));function Gu(){}function ux(e,n){return w.useMemo(()=>({sensor:e,options:n??{}}),[e,n])}function Sj(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return w.useMemo(()=>[...n].filter(i=>i!=null),[...n])}const ua=Object.freeze({x:0,y:0});function Cj(e,n){return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function Ej(e,n){let{data:{value:r}}=e,{data:{value:i}}=n;return r-i}function Rj(e,n){let{data:{value:r}}=e,{data:{value:i}}=n;return i-r}function Tj(e,n){if(!e||e.length===0)return null;const[r]=e;return r[n]}function dx(e,n,r){return n===void 0&&(n=e.left),r===void 0&&(r=e.top),{x:n+e.width*.5,y:r+e.height*.5}}const _j=e=>{let{collisionRect:n,droppableRects:r,droppableContainers:i}=e;const l=dx(n,n.left,n.top),c=[];for(const u of i){const{id:f}=u,p=r.get(f);if(p){const h=Cj(dx(p),l);c.push({id:f,data:{droppableContainer:u,value:h}})}}return c.sort(Ej)};function Aj(e,n){const r=Math.max(n.top,e.top),i=Math.max(n.left,e.left),l=Math.min(n.left+n.width,e.left+e.width),c=Math.min(n.top+n.height,e.top+e.height),u=l-i,f=c-r;if(i<l&&r<c){const p=n.width*n.height,h=e.width*e.height,v=u*f,g=v/(p+h-v);return Number(g.toFixed(4))}return 0}const Mj=e=>{let{collisionRect:n,droppableRects:r,droppableContainers:i}=e;const l=[];for(const c of i){const{id:u}=c,f=r.get(u);if(f){const p=Aj(f,n);p>0&&l.push({id:u,data:{droppableContainer:c,value:p}})}}return l.sort(Rj)};function Dj(e,n,r){return{...e,scaleX:n&&r?n.width/r.width:1,scaleY:n&&r?n.height/r.height:1}}function V1(e,n){return e&&n?{x:e.left-n.left,y:e.top-n.top}:ua}function Oj(e){return function(r){for(var i=arguments.length,l=new Array(i>1?i-1:0),c=1;c<i;c++)l[c-1]=arguments[c];return l.reduce((u,f)=>({...u,top:u.top+e*f.y,bottom:u.bottom+e*f.y,left:u.left+e*f.x,right:u.right+e*f.x}),{...r})}}const Nj=Oj(1);function kj(e){if(e.startsWith("matrix3d(")){const n=e.slice(9,-1).split(/, /);return{x:+n[12],y:+n[13],scaleX:+n[0],scaleY:+n[5]}}else if(e.startsWith("matrix(")){const n=e.slice(7,-1).split(/, /);return{x:+n[4],y:+n[5],scaleX:+n[0],scaleY:+n[3]}}return null}function jj(e,n,r){const i=kj(n);if(!i)return e;const{scaleX:l,scaleY:c,x:u,y:f}=i,p=e.left-u-(1-l)*parseFloat(r),h=e.top-f-(1-c)*parseFloat(r.slice(r.indexOf(" ")+1)),v=l?e.width/l:e.width,g=c?e.height/c:e.height;return{width:v,height:g,top:h,right:p+v,bottom:h+g,left:p}}const zj={ignoreTransform:!1};function vo(e,n){n===void 0&&(n=zj);let r=e.getBoundingClientRect();if(n.ignoreTransform){const{transform:h,transformOrigin:v}=bn(e).getComputedStyle(e);h&&(r=jj(r,h,v))}const{top:i,left:l,width:c,height:u,bottom:f,right:p}=r;return{top:i,left:l,width:c,height:u,bottom:f,right:p}}function fx(e){return vo(e,{ignoreTransform:!0})}function Lj(e){const n=e.innerWidth,r=e.innerHeight;return{top:0,left:0,right:n,bottom:r,width:n,height:r}}function Pj(e,n){return n===void 0&&(n=bn(e).getComputedStyle(e)),n.position==="fixed"}function Bj(e,n){n===void 0&&(n=bn(e).getComputedStyle(e));const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(l=>{const c=n[l];return typeof c=="string"?r.test(c):!1})}function Gm(e,n){const r=[];function i(l){if(n!=null&&r.length>=n||!l)return r;if($m(l)&&l.scrollingElement!=null&&!r.includes(l.scrollingElement))return r.push(l.scrollingElement),r;if(!$l(l)||B1(l)||r.includes(l))return r;const c=bn(e).getComputedStyle(l);return l!==e&&Bj(l,c)&&r.push(l),Pj(l,c)?r:i(l.parentNode)}return e?i(e):r}function q1(e){const[n]=Gm(e,1);return n??null}function dp(e){return!yd||!e?null:mo(e)?e:qm(e)?$m(e)||e===go(e).scrollingElement?window:$l(e)?e:null:null}function $1(e){return mo(e)?e.scrollX:e.scrollLeft}function F1(e){return mo(e)?e.scrollY:e.scrollTop}function tm(e){return{x:$1(e),y:F1(e)}}var $t;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})($t||($t={}));function I1(e){return!yd||!e?!1:e===document.scrollingElement}function G1(e){const n={x:0,y:0},r=I1(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},i={x:e.scrollWidth-r.width,y:e.scrollHeight-r.height},l=e.scrollTop<=n.y,c=e.scrollLeft<=n.x,u=e.scrollTop>=i.y,f=e.scrollLeft>=i.x;return{isTop:l,isLeft:c,isBottom:u,isRight:f,maxScroll:i,minScroll:n}}const Uj={x:.2,y:.2};function Hj(e,n,r,i,l){let{top:c,left:u,right:f,bottom:p}=r;i===void 0&&(i=10),l===void 0&&(l=Uj);const{isTop:h,isBottom:v,isLeft:g,isRight:b}=G1(e),x={x:0,y:0},C={x:0,y:0},S={height:n.height*l.y,width:n.width*l.x};return!h&&c<=n.top+S.height?(x.y=$t.Backward,C.y=i*Math.abs((n.top+S.height-c)/S.height)):!v&&p>=n.bottom-S.height&&(x.y=$t.Forward,C.y=i*Math.abs((n.bottom-S.height-p)/S.height)),!b&&f>=n.right-S.width?(x.x=$t.Forward,C.x=i*Math.abs((n.right-S.width-f)/S.width)):!g&&u<=n.left+S.width&&(x.x=$t.Backward,C.x=i*Math.abs((n.left+S.width-u)/S.width)),{direction:x,speed:C}}function Vj(e){if(e===document.scrollingElement){const{innerWidth:c,innerHeight:u}=window;return{top:0,left:0,right:c,bottom:u,width:c,height:u}}const{top:n,left:r,right:i,bottom:l}=e.getBoundingClientRect();return{top:n,left:r,right:i,bottom:l,width:e.clientWidth,height:e.clientHeight}}function Y1(e){return e.reduce((n,r)=>Hs(n,tm(r)),ua)}function qj(e){return e.reduce((n,r)=>n+$1(r),0)}function $j(e){return e.reduce((n,r)=>n+F1(r),0)}function Fj(e,n){if(n===void 0&&(n=vo),!e)return;const{top:r,left:i,bottom:l,right:c}=n(e);q1(e)&&(l<=0||c<=0||r>=window.innerHeight||i>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Ij=[["x",["left","right"],qj],["y",["top","bottom"],$j]];class Ym{constructor(n,r){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const i=Gm(r),l=Y1(i);this.rect={...n},this.width=n.width,this.height=n.height;for(const[c,u,f]of Ij)for(const p of u)Object.defineProperty(this,p,{get:()=>{const h=f(i),v=l[c]-h;return this.rect[p]+v},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class wl{constructor(n){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(r=>{var i;return(i=this.target)==null?void 0:i.removeEventListener(...r)})},this.target=n}add(n,r,i){var l;(l=this.target)==null||l.addEventListener(n,r,i),this.listeners.push([n,r,i])}}function Gj(e){const{EventTarget:n}=bn(e);return e instanceof n?e:go(e)}function fp(e,n){const r=Math.abs(e.x),i=Math.abs(e.y);return typeof n=="number"?Math.sqrt(r**2+i**2)>n:"x"in n&&"y"in n?r>n.x&&i>n.y:"x"in n?r>n.x:"y"in n?i>n.y:!1}var Fn;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Fn||(Fn={}));function hx(e){e.preventDefault()}function Yj(e){e.stopPropagation()}var Ke;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Ke||(Ke={}));const Q1={start:[Ke.Space,Ke.Enter],cancel:[Ke.Esc],end:[Ke.Space,Ke.Enter,Ke.Tab]},Qj=(e,n)=>{let{currentCoordinates:r}=n;switch(e.code){case Ke.Right:return{...r,x:r.x+25};case Ke.Left:return{...r,x:r.x-25};case Ke.Down:return{...r,y:r.y+25};case Ke.Up:return{...r,y:r.y-25}}};class Qm{constructor(n){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=n;const{event:{target:r}}=n;this.props=n,this.listeners=new wl(go(r)),this.windowListeners=new wl(bn(r)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Fn.Resize,this.handleCancel),this.windowListeners.add(Fn.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Fn.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:n,onStart:r}=this.props,i=n.node.current;i&&Fj(i),r(ua)}handleKeyDown(n){if(Im(n)){const{active:r,context:i,options:l}=this.props,{keyboardCodes:c=Q1,coordinateGetter:u=Qj,scrollBehavior:f="smooth"}=l,{code:p}=n;if(c.end.includes(p)){this.handleEnd(n);return}if(c.cancel.includes(p)){this.handleCancel(n);return}const{collisionRect:h}=i.current,v=h?{x:h.left,y:h.top}:ua;this.referenceCoordinates||(this.referenceCoordinates=v);const g=u(n,{active:r,context:i.current,currentCoordinates:v});if(g){const b=Iu(g,v),x={x:0,y:0},{scrollableAncestors:C}=i.current;for(const S of C){const R=n.code,{isTop:_,isRight:A,isLeft:M,isBottom:k,maxScroll:N,minScroll:z}=G1(S),P=Vj(S),D={x:Math.min(R===Ke.Right?P.right-P.width/2:P.right,Math.max(R===Ke.Right?P.left:P.left+P.width/2,g.x)),y:Math.min(R===Ke.Down?P.bottom-P.height/2:P.bottom,Math.max(R===Ke.Down?P.top:P.top+P.height/2,g.y))},B=R===Ke.Right&&!A||R===Ke.Left&&!M,Y=R===Ke.Down&&!k||R===Ke.Up&&!_;if(B&&D.x!==g.x){const Z=S.scrollLeft+b.x,ee=R===Ke.Right&&Z<=N.x||R===Ke.Left&&Z>=z.x;if(ee&&!b.y){S.scrollTo({left:Z,behavior:f});return}ee?x.x=S.scrollLeft-Z:x.x=R===Ke.Right?S.scrollLeft-N.x:S.scrollLeft-z.x,x.x&&S.scrollBy({left:-x.x,behavior:f});break}else if(Y&&D.y!==g.y){const Z=S.scrollTop+b.y,ee=R===Ke.Down&&Z<=N.y||R===Ke.Up&&Z>=z.y;if(ee&&!b.x){S.scrollTo({top:Z,behavior:f});return}ee?x.y=S.scrollTop-Z:x.y=R===Ke.Down?S.scrollTop-N.y:S.scrollTop-z.y,x.y&&S.scrollBy({top:-x.y,behavior:f});break}}this.handleMove(n,Hs(Iu(g,this.referenceCoordinates),x))}}}handleMove(n,r){const{onMove:i}=this.props;n.preventDefault(),i(r)}handleEnd(n){const{onEnd:r}=this.props;n.preventDefault(),this.detach(),r()}handleCancel(n){const{onCancel:r}=this.props;n.preventDefault(),this.detach(),r()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}Qm.activators=[{eventName:"onKeyDown",handler:(e,n,r)=>{let{keyboardCodes:i=Q1,onActivation:l}=n,{active:c}=r;const{code:u}=e.nativeEvent;if(i.start.includes(u)){const f=c.activatorNode.current;return f&&e.target!==f?!1:(e.preventDefault(),l==null||l({event:e.nativeEvent}),!0)}return!1}}];function px(e){return!!(e&&"distance"in e)}function mx(e){return!!(e&&"delay"in e)}class Km{constructor(n,r,i){var l;i===void 0&&(i=Gj(n.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=n,this.events=r;const{event:c}=n,{target:u}=c;this.props=n,this.events=r,this.document=go(u),this.documentListeners=new wl(this.document),this.listeners=new wl(i),this.windowListeners=new wl(bn(u)),this.initialCoordinates=(l=em(c))!=null?l:ua,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:n,props:{options:{activationConstraint:r,bypassActivationConstraint:i}}}=this;if(this.listeners.add(n.move.name,this.handleMove,{passive:!1}),this.listeners.add(n.end.name,this.handleEnd),n.cancel&&this.listeners.add(n.cancel.name,this.handleCancel),this.windowListeners.add(Fn.Resize,this.handleCancel),this.windowListeners.add(Fn.DragStart,hx),this.windowListeners.add(Fn.VisibilityChange,this.handleCancel),this.windowListeners.add(Fn.ContextMenu,hx),this.documentListeners.add(Fn.Keydown,this.handleKeydown),r){if(i!=null&&i({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(mx(r)){this.timeoutId=setTimeout(this.handleStart,r.delay),this.handlePending(r);return}if(px(r)){this.handlePending(r);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(n,r){const{active:i,onPending:l}=this.props;l(i,n,this.initialCoordinates,r)}handleStart(){const{initialCoordinates:n}=this,{onStart:r}=this.props;n&&(this.activated=!0,this.documentListeners.add(Fn.Click,Yj,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Fn.SelectionChange,this.removeTextSelection),r(n))}handleMove(n){var r;const{activated:i,initialCoordinates:l,props:c}=this,{onMove:u,options:{activationConstraint:f}}=c;if(!l)return;const p=(r=em(n))!=null?r:ua,h=Iu(l,p);if(!i&&f){if(px(f)){if(f.tolerance!=null&&fp(h,f.tolerance))return this.handleCancel();if(fp(h,f.distance))return this.handleStart()}if(mx(f)&&fp(h,f.tolerance))return this.handleCancel();this.handlePending(f,h);return}n.cancelable&&n.preventDefault(),u(p)}handleEnd(){const{onAbort:n,onEnd:r}=this.props;this.detach(),this.activated||n(this.props.active),r()}handleCancel(){const{onAbort:n,onCancel:r}=this.props;this.detach(),this.activated||n(this.props.active),r()}handleKeydown(n){n.code===Ke.Esc&&this.handleCancel()}removeTextSelection(){var n;(n=this.document.getSelection())==null||n.removeAllRanges()}}const Kj={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Xm extends Km{constructor(n){const{event:r}=n,i=go(r.target);super(n,Kj,i)}}Xm.activators=[{eventName:"onPointerDown",handler:(e,n)=>{let{nativeEvent:r}=e,{onActivation:i}=n;return!r.isPrimary||r.button!==0?!1:(i==null||i({event:r}),!0)}}];const Xj={move:{name:"mousemove"},end:{name:"mouseup"}};var nm;(function(e){e[e.RightClick=2]="RightClick"})(nm||(nm={}));class Zj extends Km{constructor(n){super(n,Xj,go(n.event.target))}}Zj.activators=[{eventName:"onMouseDown",handler:(e,n)=>{let{nativeEvent:r}=e,{onActivation:i}=n;return r.button===nm.RightClick?!1:(i==null||i({event:r}),!0)}}];const hp={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Wj extends Km{constructor(n){super(n,hp)}static setup(){return window.addEventListener(hp.move.name,n,{capture:!1,passive:!1}),function(){window.removeEventListener(hp.move.name,n)};function n(){}}}Wj.activators=[{eventName:"onTouchStart",handler:(e,n)=>{let{nativeEvent:r}=e,{onActivation:i}=n;const{touches:l}=r;return l.length>1?!1:(i==null||i({event:r}),!0)}}];var Sl;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Sl||(Sl={}));var Yu;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Yu||(Yu={}));function Jj(e){let{acceleration:n,activator:r=Sl.Pointer,canScroll:i,draggingRect:l,enabled:c,interval:u=5,order:f=Yu.TreeOrder,pointerCoordinates:p,scrollableAncestors:h,scrollableAncestorRects:v,delta:g,threshold:b}=e;const x=tz({delta:g,disabled:!c}),[C,S]=cj(),R=w.useRef({x:0,y:0}),_=w.useRef({x:0,y:0}),A=w.useMemo(()=>{switch(r){case Sl.Pointer:return p?{top:p.y,bottom:p.y,left:p.x,right:p.x}:null;case Sl.DraggableRect:return l}},[r,l,p]),M=w.useRef(null),k=w.useCallback(()=>{const z=M.current;if(!z)return;const P=R.current.x*_.current.x,D=R.current.y*_.current.y;z.scrollBy(P,D)},[]),N=w.useMemo(()=>f===Yu.TreeOrder?[...h].reverse():h,[f,h]);w.useEffect(()=>{if(!c||!h.length||!A){S();return}for(const z of N){if((i==null?void 0:i(z))===!1)continue;const P=h.indexOf(z),D=v[P];if(!D)continue;const{direction:B,speed:Y}=Hj(z,D,A,n,b);for(const Z of["x","y"])x[Z][B[Z]]||(Y[Z]=0,B[Z]=0);if(Y.x>0||Y.y>0){S(),M.current=z,C(k,u),R.current=Y,_.current=B;return}}R.current={x:0,y:0},_.current={x:0,y:0},S()},[n,k,i,S,c,u,JSON.stringify(A),JSON.stringify(x),C,h,N,v,JSON.stringify(b)])}const ez={x:{[$t.Backward]:!1,[$t.Forward]:!1},y:{[$t.Backward]:!1,[$t.Forward]:!1}};function tz(e){let{delta:n,disabled:r}=e;const i=Jp(n);return Fl(l=>{if(r||!i||!l)return ez;const c={x:Math.sign(n.x-i.x),y:Math.sign(n.y-i.y)};return{x:{[$t.Backward]:l.x[$t.Backward]||c.x===-1,[$t.Forward]:l.x[$t.Forward]||c.x===1},y:{[$t.Backward]:l.y[$t.Backward]||c.y===-1,[$t.Forward]:l.y[$t.Forward]||c.y===1}}},[r,n,i])}function nz(e,n){const r=n!=null?e.get(n):void 0,i=r?r.node.current:null;return Fl(l=>{var c;return n==null?null:(c=i??l)!=null?c:null},[i,n])}function az(e,n){return w.useMemo(()=>e.reduce((r,i)=>{const{sensor:l}=i,c=l.activators.map(u=>({eventName:u.eventName,handler:n(u.handler,i)}));return[...r,...c]},[]),[e,n])}var kl;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(kl||(kl={}));var am;(function(e){e.Optimized="optimized"})(am||(am={}));const gx=new Map;function rz(e,n){let{dragging:r,dependencies:i,config:l}=n;const[c,u]=w.useState(null),{frequency:f,measure:p,strategy:h}=l,v=w.useRef(e),g=R(),b=Ol(g),x=w.useCallback(function(_){_===void 0&&(_=[]),!b.current&&u(A=>A===null?_:A.concat(_.filter(M=>!A.includes(M))))},[b]),C=w.useRef(null),S=Fl(_=>{if(g&&!r)return gx;if(!_||_===gx||v.current!==e||c!=null){const A=new Map;for(let M of e){if(!M)continue;if(c&&c.length>0&&!c.includes(M.id)&&M.rect.current){A.set(M.id,M.rect.current);continue}const k=M.node.current,N=k?new Ym(p(k),k):null;M.rect.current=N,N&&A.set(M.id,N)}return A}return _},[e,c,r,g,p]);return w.useEffect(()=>{v.current=e},[e]),w.useEffect(()=>{g||x()},[r,g]),w.useEffect(()=>{c&&c.length>0&&u(null)},[JSON.stringify(c)]),w.useEffect(()=>{g||typeof f!="number"||C.current!==null||(C.current=setTimeout(()=>{x(),C.current=null},f))},[f,g,x,...i]),{droppableRects:S,measureDroppableContainers:x,measuringScheduled:c!=null};function R(){switch(h){case kl.Always:return!1;case kl.BeforeDragging:return r;default:return!r}}}function K1(e,n){return Fl(r=>e?r||(typeof n=="function"?n(e):e):null,[n,e])}function iz(e,n){return K1(e,n)}function sz(e){let{callback:n,disabled:r}=e;const i=Fm(n),l=w.useMemo(()=>{if(r||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:c}=window;return new c(i)},[i,r]);return w.useEffect(()=>()=>l==null?void 0:l.disconnect(),[l]),l}function bd(e){let{callback:n,disabled:r}=e;const i=Fm(n),l=w.useMemo(()=>{if(r||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:c}=window;return new c(i)},[r]);return w.useEffect(()=>()=>l==null?void 0:l.disconnect(),[l]),l}function oz(e){return new Ym(vo(e),e)}function vx(e,n,r){n===void 0&&(n=oz);const[i,l]=w.useState(null);function c(){l(p=>{if(!e)return null;if(e.isConnected===!1){var h;return(h=p??r)!=null?h:null}const v=n(e);return JSON.stringify(p)===JSON.stringify(v)?p:v})}const u=sz({callback(p){if(e)for(const h of p){const{type:v,target:g}=h;if(v==="childList"&&g instanceof HTMLElement&&g.contains(e)){c();break}}}}),f=bd({callback:c});return Ma(()=>{c(),e?(f==null||f.observe(e),u==null||u.observe(document.body,{childList:!0,subtree:!0})):(f==null||f.disconnect(),u==null||u.disconnect())},[e]),i}function lz(e){const n=K1(e);return V1(e,n)}const yx=[];function cz(e){const n=w.useRef(e),r=Fl(i=>e?i&&i!==yx&&e&&n.current&&e.parentNode===n.current.parentNode?i:Gm(e):yx,[e]);return w.useEffect(()=>{n.current=e},[e]),r}function uz(e){const[n,r]=w.useState(null),i=w.useRef(e),l=w.useCallback(c=>{const u=dp(c.target);u&&r(f=>f?(f.set(u,tm(u)),new Map(f)):null)},[]);return w.useEffect(()=>{const c=i.current;if(e!==c){u(c);const f=e.map(p=>{const h=dp(p);return h?(h.addEventListener("scroll",l,{passive:!0}),[h,tm(h)]):null}).filter(p=>p!=null);r(f.length?new Map(f):null),i.current=e}return()=>{u(e),u(c)};function u(f){f.forEach(p=>{const h=dp(p);h==null||h.removeEventListener("scroll",l)})}},[l,e]),w.useMemo(()=>e.length?n?Array.from(n.values()).reduce((c,u)=>Hs(c,u),ua):Y1(e):ua,[e,n])}function bx(e,n){n===void 0&&(n=[]);const r=w.useRef(null);return w.useEffect(()=>{r.current=null},n),w.useEffect(()=>{const i=e!==ua;i&&!r.current&&(r.current=e),!i&&r.current&&(r.current=null)},[e]),r.current?Iu(e,r.current):ua}function dz(e){w.useEffect(()=>{if(!yd)return;const n=e.map(r=>{let{sensor:i}=r;return i.setup==null?void 0:i.setup()});return()=>{for(const r of n)r==null||r()}},e.map(n=>{let{sensor:r}=n;return r}))}function fz(e,n){return w.useMemo(()=>e.reduce((r,i)=>{let{eventName:l,handler:c}=i;return r[l]=u=>{c(u,n)},r},{}),[e,n])}function X1(e){return w.useMemo(()=>e?Lj(e):null,[e])}const xx=[];function hz(e,n){n===void 0&&(n=vo);const[r]=e,i=X1(r?bn(r):null),[l,c]=w.useState(xx);function u(){c(()=>e.length?e.map(p=>I1(p)?i:new Ym(n(p),p)):xx)}const f=bd({callback:u});return Ma(()=>{f==null||f.disconnect(),u(),e.forEach(p=>f==null?void 0:f.observe(p))},[e]),l}function pz(e){if(!e)return null;if(e.children.length>1)return e;const n=e.children[0];return $l(n)?n:e}function mz(e){let{measure:n}=e;const[r,i]=w.useState(null),l=w.useCallback(h=>{for(const{target:v}of h)if($l(v)){i(g=>{const b=n(v);return g?{...g,width:b.width,height:b.height}:b});break}},[n]),c=bd({callback:l}),u=w.useCallback(h=>{const v=pz(h);c==null||c.disconnect(),v&&(c==null||c.observe(v)),i(v?n(v):null)},[n,c]),[f,p]=Fu(u);return w.useMemo(()=>({nodeRef:f,rect:r,setRef:p}),[r,f,p])}const gz=[{sensor:Xm,options:{}},{sensor:Qm,options:{}}],vz={current:{}},Tu={draggable:{measure:fx},droppable:{measure:fx,strategy:kl.WhileDragging,frequency:am.Optimized},dragOverlay:{measure:vo}};class Cl extends Map{get(n){var r;return n!=null&&(r=super.get(n))!=null?r:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(n=>{let{disabled:r}=n;return!r})}getNodeFor(n){var r,i;return(r=(i=this.get(n))==null?void 0:i.node.current)!=null?r:void 0}}const yz={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Cl,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Gu},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Tu,measureDroppableContainers:Gu,windowRect:null,measuringScheduled:!1},bz={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Gu,draggableNodes:new Map,over:null,measureDroppableContainers:Gu},xd=w.createContext(bz),Z1=w.createContext(yz);function xz(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Cl}}}function wz(e,n){switch(n.type){case kt.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:n.initialCoordinates,active:n.active}};case kt.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:n.coordinates.x-e.draggable.initialCoordinates.x,y:n.coordinates.y-e.draggable.initialCoordinates.y}}};case kt.DragEnd:case kt.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case kt.RegisterDroppable:{const{element:r}=n,{id:i}=r,l=new Cl(e.droppable.containers);return l.set(i,r),{...e,droppable:{...e.droppable,containers:l}}}case kt.SetDroppableDisabled:{const{id:r,key:i,disabled:l}=n,c=e.droppable.containers.get(r);if(!c||i!==c.key)return e;const u=new Cl(e.droppable.containers);return u.set(r,{...c,disabled:l}),{...e,droppable:{...e.droppable,containers:u}}}case kt.UnregisterDroppable:{const{id:r,key:i}=n,l=e.droppable.containers.get(r);if(!l||i!==l.key)return e;const c=new Cl(e.droppable.containers);return c.delete(r),{...e,droppable:{...e.droppable,containers:c}}}default:return e}}function Sz(e){let{disabled:n}=e;const{active:r,activatorEvent:i,draggableNodes:l}=w.useContext(xd),c=Jp(i),u=Jp(r==null?void 0:r.id);return w.useEffect(()=>{if(!n&&!i&&c&&u!=null){if(!Im(c)||document.activeElement===c.target)return;const f=l.get(u);if(!f)return;const{activatorNode:p,node:h}=f;if(!p.current&&!h.current)return;requestAnimationFrame(()=>{for(const v of[p.current,h.current]){if(!v)continue;const g=fj(v);if(g){g.focus();break}}})}},[i,n,l,u,c]),null}function Cz(e,n){let{transform:r,...i}=n;return e!=null&&e.length?e.reduce((l,c)=>c({transform:l,...i}),r):r}function Ez(e){return w.useMemo(()=>({draggable:{...Tu.draggable,...e==null?void 0:e.draggable},droppable:{...Tu.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Tu.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function Rz(e){let{activeNode:n,measure:r,initialRect:i,config:l=!0}=e;const c=w.useRef(!1),{x:u,y:f}=typeof l=="boolean"?{x:l,y:l}:l;Ma(()=>{if(!u&&!f||!n){c.current=!1;return}if(c.current||!i)return;const h=n==null?void 0:n.node.current;if(!h||h.isConnected===!1)return;const v=r(h),g=V1(v,i);if(u||(g.x=0),f||(g.y=0),c.current=!0,Math.abs(g.x)>0||Math.abs(g.y)>0){const b=q1(h);b&&b.scrollBy({top:g.y,left:g.x})}},[n,u,f,i,r])}const W1=w.createContext({...ua,scaleX:1,scaleY:1});var zr;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(zr||(zr={}));const Tz=w.memo(function(n){var r,i,l,c;let{id:u,accessibility:f,autoScroll:p=!0,children:h,sensors:v=gz,collisionDetection:g=Mj,measuring:b,modifiers:x,...C}=n;const S=w.useReducer(wz,void 0,xz),[R,_]=S,[A,M]=yj(),[k,N]=w.useState(zr.Uninitialized),z=k===zr.Initialized,{draggable:{active:P,nodes:D,translate:B},droppable:{containers:Y}}=R,Z=P!=null?D.get(P):null,ee=w.useRef({initial:null,translated:null}),le=w.useMemo(()=>{var pt;return P!=null?{id:P,data:(pt=Z==null?void 0:Z.data)!=null?pt:vz,rect:ee}:null},[P,Z]),he=w.useRef(null),[ce,L]=w.useState(null),[Q,$]=w.useState(null),de=Ol(C,Object.values(C)),O=Il("DndDescribedBy",u),q=w.useMemo(()=>Y.getEnabled(),[Y]),W=Ez(b),{droppableRects:X,measureDroppableContainers:te,measuringScheduled:fe}=rz(q,{dragging:z,dependencies:[B.x,B.y],config:W.droppable}),ae=nz(D,P),re=w.useMemo(()=>Q?em(Q):null,[Q]),oe=ni(),pe=iz(ae,W.draggable.measure);Rz({activeNode:P!=null?D.get(P):null,config:oe.layoutShiftCompensation,initialRect:pe,measure:W.draggable.measure});const ue=vx(ae,W.draggable.measure,pe),xe=vx(ae?ae.parentElement:null),me=w.useRef({activatorEvent:null,active:null,activeNode:ae,collisionRect:null,collisions:null,droppableRects:X,draggableNodes:D,draggingNode:null,draggingNodeRect:null,droppableContainers:Y,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ze=Y.getNodeFor((r=me.current.over)==null?void 0:r.id),He=mz({measure:W.dragOverlay.measure}),vt=(i=He.nodeRef.current)!=null?i:ae,it=z?(l=He.rect)!=null?l:ue:null,Fe=!!(He.nodeRef.current&&He.rect),ln=lz(Fe?null:ue),mt=X1(vt?bn(vt):null),Qt=cz(z?ze??ae:null),Le=hz(Qt),De=Cz(x,{transform:{x:B.x-ln.x,y:B.y-ln.y,scaleX:1,scaleY:1},activatorEvent:Q,active:le,activeNodeRect:ue,containerNodeRect:xe,draggingNodeRect:it,over:me.current.over,overlayNodeRect:He.rect,scrollableAncestors:Qt,scrollableAncestorRects:Le,windowRect:mt}),Kt=re?Hs(re,B):null,Oa=uz(Qt),ti=bx(Oa),cn=bx(Oa,[ue]),wt=Hs(De,ti),Lt=it?Nj(it,De):null,yt=le&&Lt?g({active:le,collisionRect:Lt,droppableRects:X,droppableContainers:q,pointerCoordinates:Kt}):null,Qn=Tj(yt,"id"),[xn,Kn]=w.useState(null),sr=Fe?De:Hs(De,cn),or=Dj(sr,(c=xn==null?void 0:xn.rect)!=null?c:null,ue),un=w.useRef(null),fa=w.useCallback((pt,Pt)=>{let{sensor:we,options:We}=Pt;if(he.current==null)return;const Ie=D.get(he.current);if(!Ie)return;const Ye=pt.nativeEvent,Bt=new we({active:he.current,activeNode:Ie,event:Ye,options:We,context:me,onAbort(Oe){if(!D.get(Oe))return;const{onDragAbort:Pe}=de.current,st={id:Oe};Pe==null||Pe(st),A({type:"onDragAbort",event:st})},onPending(Oe,Je,Pe,st){if(!D.get(Oe))return;const{onDragPending:tn}=de.current,Xn={id:Oe,constraint:Je,initialCoordinates:Pe,offset:st};tn==null||tn(Xn),A({type:"onDragPending",event:Xn})},onStart(Oe){const Je=he.current;if(Je==null)return;const Pe=D.get(Je);if(!Pe)return;const{onDragStart:st}=de.current,On={activatorEvent:Ye,active:{id:Je,data:Pe.data,rect:ee}};sa.unstable_batchedUpdates(()=>{st==null||st(On),N(zr.Initializing),_({type:kt.DragStart,initialCoordinates:Oe,active:Je}),A({type:"onDragStart",event:On}),L(un.current),$(Ye)})},onMove(Oe){_({type:kt.DragMove,coordinates:Oe})},onEnd:ft(kt.DragEnd),onCancel:ft(kt.DragCancel)});un.current=Bt;function ft(Oe){return async function(){const{active:Pe,collisions:st,over:On,scrollAdjustedTranslate:tn}=me.current;let Xn=null;if(Pe&&tn){const{cancelDrop:cr}=de.current;Xn={activatorEvent:Ye,active:Pe,collisions:st,delta:tn,over:On},Oe===kt.DragEnd&&typeof cr=="function"&&await Promise.resolve(cr(Xn))&&(Oe=kt.DragCancel)}he.current=null,sa.unstable_batchedUpdates(()=>{_({type:Oe}),N(zr.Uninitialized),Kn(null),L(null),$(null),un.current=null;const cr=Oe===kt.DragEnd?"onDragEnd":"onDragCancel";if(Xn){const ka=de.current[cr];ka==null||ka(Xn),A({type:cr,event:Xn})}})}}},[D]),Na=w.useCallback((pt,Pt)=>(we,We)=>{const Ie=we.nativeEvent,Ye=D.get(We);if(he.current!==null||!Ye||Ie.dndKit||Ie.defaultPrevented)return;const Bt={active:Ye};pt(we,Pt.options,Bt)===!0&&(Ie.dndKit={capturedBy:Pt.sensor},he.current=We,fa(we,Pt))},[D,fa]),lr=az(v,Na);dz(v),Ma(()=>{ue&&k===zr.Initializing&&N(zr.Initialized)},[ue,k]),w.useEffect(()=>{const{onDragMove:pt}=de.current,{active:Pt,activatorEvent:we,collisions:We,over:Ie}=me.current;if(!Pt||!we)return;const Ye={active:Pt,activatorEvent:we,collisions:We,delta:{x:wt.x,y:wt.y},over:Ie};sa.unstable_batchedUpdates(()=>{pt==null||pt(Ye),A({type:"onDragMove",event:Ye})})},[wt.x,wt.y]),w.useEffect(()=>{const{active:pt,activatorEvent:Pt,collisions:we,droppableContainers:We,scrollAdjustedTranslate:Ie}=me.current;if(!pt||he.current==null||!Pt||!Ie)return;const{onDragOver:Ye}=de.current,Bt=We.get(Qn),ft=Bt&&Bt.rect.current?{id:Bt.id,rect:Bt.rect.current,data:Bt.data,disabled:Bt.disabled}:null,Oe={active:pt,activatorEvent:Pt,collisions:we,delta:{x:Ie.x,y:Ie.y},over:ft};sa.unstable_batchedUpdates(()=>{Kn(ft),Ye==null||Ye(Oe),A({type:"onDragOver",event:Oe})})},[Qn]),Ma(()=>{me.current={activatorEvent:Q,active:le,activeNode:ae,collisionRect:Lt,collisions:yt,droppableRects:X,draggableNodes:D,draggingNode:vt,draggingNodeRect:it,droppableContainers:Y,over:xn,scrollableAncestors:Qt,scrollAdjustedTranslate:wt},ee.current={initial:it,translated:Lt}},[le,ae,yt,Lt,D,vt,it,X,Y,xn,Qt,wt]),Jj({...oe,delta:B,draggingRect:Lt,pointerCoordinates:Kt,scrollableAncestors:Qt,scrollableAncestorRects:Le});const wn=w.useMemo(()=>({active:le,activeNode:ae,activeNodeRect:ue,activatorEvent:Q,collisions:yt,containerNodeRect:xe,dragOverlay:He,draggableNodes:D,droppableContainers:Y,droppableRects:X,over:xn,measureDroppableContainers:te,scrollableAncestors:Qt,scrollableAncestorRects:Le,measuringConfiguration:W,measuringScheduled:fe,windowRect:mt}),[le,ae,ue,Q,yt,xe,He,D,Y,X,xn,te,Qt,Le,W,fe,mt]),qi=w.useMemo(()=>({activatorEvent:Q,activators:lr,active:le,activeNodeRect:ue,ariaDescribedById:{draggable:O},dispatch:_,draggableNodes:D,over:xn,measureDroppableContainers:te}),[Q,lr,le,ue,_,O,D,xn,te]);return se.createElement(H1.Provider,{value:M},se.createElement(xd.Provider,{value:qi},se.createElement(Z1.Provider,{value:wn},se.createElement(W1.Provider,{value:or},h)),se.createElement(Sz,{disabled:(f==null?void 0:f.restoreFocus)===!1})),se.createElement(wj,{...f,hiddenTextDescribedById:O}));function ni(){const pt=(ce==null?void 0:ce.autoScrollEnabled)===!1,Pt=typeof p=="object"?p.enabled===!1:p===!1,we=z&&!pt&&!Pt;return typeof p=="object"?{...p,enabled:we}:{enabled:we}}}),_z=w.createContext(null),wx="button",Az="Draggable";function Mz(e){let{id:n,data:r,disabled:i=!1,attributes:l}=e;const c=Il(Az),{activators:u,activatorEvent:f,active:p,activeNodeRect:h,ariaDescribedById:v,draggableNodes:g,over:b}=w.useContext(xd),{role:x=wx,roleDescription:C="draggable",tabIndex:S=0}=l??{},R=(p==null?void 0:p.id)===n,_=w.useContext(R?W1:_z),[A,M]=Fu(),[k,N]=Fu(),z=fz(u,n),P=Ol(r);Ma(()=>(g.set(n,{id:n,key:c,node:A,activatorNode:k,data:P}),()=>{const B=g.get(n);B&&B.key===c&&g.delete(n)}),[g,n]);const D=w.useMemo(()=>({role:x,tabIndex:S,"aria-disabled":i,"aria-pressed":R&&x===wx?!0:void 0,"aria-roledescription":C,"aria-describedby":v.draggable}),[i,x,S,R,C,v.draggable]);return{active:p,activatorEvent:f,activeNodeRect:h,attributes:D,isDragging:R,listeners:i?void 0:z,node:A,over:b,setNodeRef:M,setActivatorNodeRef:N,transform:_}}function Dz(){return w.useContext(Z1)}const Oz="Droppable",Nz={timeout:25};function kz(e){let{data:n,disabled:r=!1,id:i,resizeObserverConfig:l}=e;const c=Il(Oz),{active:u,dispatch:f,over:p,measureDroppableContainers:h}=w.useContext(xd),v=w.useRef({disabled:r}),g=w.useRef(!1),b=w.useRef(null),x=w.useRef(null),{disabled:C,updateMeasurementsFor:S,timeout:R}={...Nz,...l},_=Ol(S??i),A=w.useCallback(()=>{if(!g.current){g.current=!0;return}x.current!=null&&clearTimeout(x.current),x.current=setTimeout(()=>{h(Array.isArray(_.current)?_.current:[_.current]),x.current=null},R)},[R]),M=bd({callback:A,disabled:C||!u}),k=w.useCallback((D,B)=>{M&&(B&&(M.unobserve(B),g.current=!1),D&&M.observe(D))},[M]),[N,z]=Fu(k),P=Ol(n);return w.useEffect(()=>{!M||!N.current||(M.disconnect(),g.current=!1,M.observe(N.current))},[N,M]),w.useEffect(()=>(f({type:kt.RegisterDroppable,element:{id:i,key:c,disabled:r,node:N,rect:b,data:P}}),()=>f({type:kt.UnregisterDroppable,key:c,id:i})),[i]),w.useEffect(()=>{r!==v.current.disabled&&(f({type:kt.SetDroppableDisabled,id:i,key:c,disabled:r}),v.current.disabled=r)},[i,c,r,f]),{active:u,rect:b,isOver:(p==null?void 0:p.id)===i,node:N,over:p,setNodeRef:z}}const jz=e=>{let{transform:n}=e;return{...n,x:0}};function Zm(e,n,r){const i=e.slice();return i.splice(r<0?i.length+r:r,0,i.splice(n,1)[0]),i}function zz(e,n){return e.reduce((r,i,l)=>{const c=n.get(i);return c&&(r[l]=c),r},Array(e.length))}function gu(e){return e!==null&&e>=0}function Lz(e,n){if(e===n)return!0;if(e.length!==n.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==n[r])return!1;return!0}function Pz(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const J1=e=>{let{rects:n,activeIndex:r,overIndex:i,index:l}=e;const c=Zm(n,i,r),u=n[l],f=c[l];return!f||!u?null:{x:f.left-u.left,y:f.top-u.top,scaleX:f.width/u.width,scaleY:f.height/u.height}},vu={scaleX:1,scaleY:1},Bz=e=>{var n;let{activeIndex:r,activeNodeRect:i,index:l,rects:c,overIndex:u}=e;const f=(n=c[r])!=null?n:i;if(!f)return null;if(l===r){const h=c[u];return h?{x:0,y:r<u?h.top+h.height-(f.top+f.height):h.top-f.top,...vu}:null}const p=Uz(c,l,r);return l>r&&l<=u?{x:0,y:-f.height-p,...vu}:l<r&&l>=u?{x:0,y:f.height+p,...vu}:{x:0,y:0,...vu}};function Uz(e,n,r){const i=e[n],l=e[n-1],c=e[n+1];return i?r<n?l?i.top-(l.top+l.height):c?c.top-(i.top+i.height):0:c?c.top-(i.top+i.height):l?i.top-(l.top+l.height):0:0}const eC="Sortable",tC=se.createContext({activeIndex:-1,containerId:eC,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:J1,disabled:{draggable:!1,droppable:!1}});function Hz(e){let{children:n,id:r,items:i,strategy:l=J1,disabled:c=!1}=e;const{active:u,dragOverlay:f,droppableRects:p,over:h,measureDroppableContainers:v}=Dz(),g=Il(eC,r),b=f.rect!==null,x=w.useMemo(()=>i.map(z=>typeof z=="object"&&"id"in z?z.id:z),[i]),C=u!=null,S=u?x.indexOf(u.id):-1,R=h?x.indexOf(h.id):-1,_=w.useRef(x),A=!Lz(x,_.current),M=R!==-1&&S===-1||A,k=Pz(c);Ma(()=>{A&&C&&v(x)},[A,x,C,v]),w.useEffect(()=>{_.current=x},[x]);const N=w.useMemo(()=>({activeIndex:S,containerId:g,disabled:k,disableTransforms:M,items:x,overIndex:R,useDragOverlay:b,sortedRects:zz(x,p),strategy:l}),[S,g,k.draggable,k.droppable,M,x,R,p,b,l]);return se.createElement(tC.Provider,{value:N},n)}const Vz=e=>{let{id:n,items:r,activeIndex:i,overIndex:l}=e;return Zm(r,i,l).indexOf(n)},qz=e=>{let{containerId:n,isSorting:r,wasDragging:i,index:l,items:c,newIndex:u,previousItems:f,previousContainerId:p,transition:h}=e;return!h||!i||f!==c&&l===u?!1:r?!0:u!==l&&n===p},$z={duration:200,easing:"ease"},nC="transform",Fz=Nl.Transition.toString({property:nC,duration:0,easing:"linear"}),Iz={roleDescription:"sortable"};function Gz(e){let{disabled:n,index:r,node:i,rect:l}=e;const[c,u]=w.useState(null),f=w.useRef(r);return Ma(()=>{if(!n&&r!==f.current&&i.current){const p=l.current;if(p){const h=vo(i.current,{ignoreTransform:!0}),v={x:p.left-h.left,y:p.top-h.top,scaleX:p.width/h.width,scaleY:p.height/h.height};(v.x||v.y)&&u(v)}}r!==f.current&&(f.current=r)},[n,r,i,l]),w.useEffect(()=>{c&&u(null)},[c]),c}function Yz(e){let{animateLayoutChanges:n=qz,attributes:r,disabled:i,data:l,getNewIndex:c=Vz,id:u,strategy:f,resizeObserverConfig:p,transition:h=$z}=e;const{items:v,containerId:g,activeIndex:b,disabled:x,disableTransforms:C,sortedRects:S,overIndex:R,useDragOverlay:_,strategy:A}=w.useContext(tC),M=Qz(i,x),k=v.indexOf(u),N=w.useMemo(()=>({sortable:{containerId:g,index:k,items:v},...l}),[g,l,k,v]),z=w.useMemo(()=>v.slice(v.indexOf(u)),[v,u]),{rect:P,node:D,isOver:B,setNodeRef:Y}=kz({id:u,data:N,disabled:M.droppable,resizeObserverConfig:{updateMeasurementsFor:z,...p}}),{active:Z,activatorEvent:ee,activeNodeRect:le,attributes:he,setNodeRef:ce,listeners:L,isDragging:Q,over:$,setActivatorNodeRef:de,transform:O}=Mz({id:u,data:N,attributes:{...Iz,...r},disabled:M.draggable}),q=lj(Y,ce),W=!!Z,X=W&&!C&&gu(b)&&gu(R),te=!_&&Q,fe=te&&X?O:null,re=X?fe??(f??A)({rects:S,activeNodeRect:le,activeIndex:b,overIndex:R,index:k}):null,oe=gu(b)&&gu(R)?c({id:u,items:v,activeIndex:b,overIndex:R}):k,pe=Z==null?void 0:Z.id,ue=w.useRef({activeId:pe,items:v,newIndex:oe,containerId:g}),xe=v!==ue.current.items,me=n({active:Z,containerId:g,isDragging:Q,isSorting:W,id:u,index:k,items:v,newIndex:ue.current.newIndex,previousItems:ue.current.items,previousContainerId:ue.current.containerId,transition:h,wasDragging:ue.current.activeId!=null}),ze=Gz({disabled:!me,index:k,node:D,rect:P});return w.useEffect(()=>{W&&ue.current.newIndex!==oe&&(ue.current.newIndex=oe),g!==ue.current.containerId&&(ue.current.containerId=g),v!==ue.current.items&&(ue.current.items=v)},[W,oe,g,v]),w.useEffect(()=>{if(pe===ue.current.activeId)return;if(pe!=null&&ue.current.activeId==null){ue.current.activeId=pe;return}const vt=setTimeout(()=>{ue.current.activeId=pe},50);return()=>clearTimeout(vt)},[pe]),{active:Z,activeIndex:b,attributes:he,data:N,rect:P,index:k,newIndex:oe,items:v,isOver:B,isSorting:W,isDragging:Q,listeners:L,node:D,overIndex:R,over:$,setNodeRef:q,setActivatorNodeRef:de,setDroppableNodeRef:Y,setDraggableNodeRef:ce,transform:ze??re,transition:He()};function He(){if(ze||xe&&ue.current.newIndex===k)return Fz;if(!(te&&!Im(ee)||!h)&&(W||me))return Nl.Transition.toString({...h,property:nC})}}function Qz(e,n){var r,i;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(r=e==null?void 0:e.draggable)!=null?r:n.draggable,droppable:(i=e==null?void 0:e.droppable)!=null?i:n.droppable}}Ke.Down,Ke.Right,Ke.Up,Ke.Left;function Kz(e){const[n,r]=w.useState(e.content),i=w.useRef(null);function l(){n!==e.content&&e.onCellChange(e.rowIndex,e.columnIndex,n)}function c(u){const f=u.currentTarget.textContent||"";r(f)}return y.jsx(ks,{ref:i,contentEditable:!0,suppressContentEditableWarning:!0,onBlur:l,onInput:c,children:e.content})}function Xz(e){const n=Yz({id:e.id,attributes:{role:"button",tabIndex:0}}),r={transform:Nl.Transform.toString(n.transform),opacity:n.isDragging?.5:1,touchAction:"none"};function i(l,c,u){e.onCellUpdate(l,c,u)}return y.jsxs($u,{ref:n.setNodeRef,style:r,className:"hover:opacity-60",children:[y.jsx(ks,{...n.attributes,...n.listeners,children:y.jsx(I2,{className:"size-4"})}),e.row.map((l,c)=>y.jsx(Kz,{content:l,rowIndex:e.rowIndex,columnIndex:c,onCellChange:i},`cell-${e.rowIndex}-${c}-${l}`))]})}function Zz(e){const[n,r]=w.useState(new yn(e.content)),i=Sj(ux(Xm,{activationConstraint:{distance:5}}),ux(Qm));function l(f){const p=f.active,h=f.over;if(h&&p.id!==h.id){const v=String(p.id),g=String(h.id),b=v.split("-"),x=g.split("-");if(b.length<2||x.length<2)return;const C=b[1],S=x[1];if(C===void 0||S===void 0)return;const R=Number.parseInt(C,10)+1,_=Number.parseInt(S,10)+1,A=Zm(n.records,R-1,_-1),M=n.headers;if(M.length>0){const N=[M,...A.map(z=>[...z])].map(z=>z.join(",")).join(`
243
+ `);r(new yn(N)),e.onChange(N)}}}const c=n.records.map((f,p)=>`row-${p}`);function u(f,p,h){const v=n.updateCell(f+1,p,h),g=v.toString();r(v),e.onChange(g)}return y.jsx(Aa,{className:"h-full max-h-fit max-w-none overflow-hidden rounded-md p-0",children:y.jsxs(N1,{className:"w-full border-collapse",children:[y.jsx(k1,{children:y.jsxs($u,{children:[y.jsx(Ns,{}),n.headers.map((f,p)=>{const h=`header-${p}-${f}`;return y.jsx(Ns,{children:f},h)})]})}),y.jsx(Tz,{sensors:i,collisionDetection:_j,onDragEnd:l,modifiers:[jz],children:y.jsx(j1,{children:y.jsx(Hz,{items:c,strategy:Bz,children:n.records.map((f,p)=>{const h=`row-${p}`;return y.jsx(Xz,{id:h,row:f,rowIndex:p,onCellUpdate:u},h)})})})})]})})}function Wz(e){return y.jsx(Ze,{size:e.size||"sm",variant:e.variant||"secondary",onClick:e.onReload,disabled:e.disabled,children:y.jsx(X2,{})})}function aC(e){const n=oo(),r=()=>{var h;return e.fileData.title?e.fileData.title:((h=e.filePath.split("/").pop())==null?void 0:h.replace(/\.md$/,""))||""},[i,l]=w.useState(r());w.useEffect(()=>{l(r())},[e.fileData.title,e.filePath]);const c=ia({async mutationFn(h){const v=Yt(e.filePath);await zt.api.files[":path{.+}"].$put({param:{path:v},json:{title:h,properties:null,content:null,description:null,isArchived:null}})},onSuccess(){e.onReload()}}),u=h=>{const v=h.target.value;l(v)},f=async()=>{e.fileData.path.endsWith(".md")&&c.mutate(i)},p=()=>{const h=e.filePath.split("/");h.pop();const g=h.filter(b=>b!=="_").join("/");n({to:`/${g}`})};return y.jsx(y.Fragment,{children:y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx(z1,{}),y.jsx(L1,{cwd:e.cwd,filePath:e.fileData.path,size:"icon",variant:"outline"}),y.jsx(Ze,{onClick:p,size:"icon",variant:"outline",children:y.jsx(C2,{className:"h-4 w-4"})}),y.jsx(In,{value:i,onChange:u,onBlur:f,placeholder:"タイトルを入力",className:"flex-1"}),y.jsx(Wz,{onReload:e.onReload,size:"icon",variant:"outline",disabled:e.isLoading}),e.children]})})}function Jz(e){const[n,r]=w.useState(!1),i=()=>{r(!n)};return y.jsxs("div",{className:"space-y-2",children:[y.jsx(aC,{filePath:e.filePath,fileData:e.fileData,cwd:e.cwd,onReload:e.onReload,isLoading:e.isLoading,children:y.jsx(Ze,{onClick:i,variant:n?"default":"secondary",children:"カラム"})}),n?y.jsx(oj,{content:e.content,onChange:e.onChange}):y.jsx(Zz,{content:e.content,onChange:e.onChange})]})}function e3(e){return y.jsx("div",{className:"rounded bg-gray-800 p-4 text-white",children:y.jsx("pre",{className:"whitespace-pre-wrap",children:e.content})})}function t3(e){const[n,r]=w.useState(""),[i,l]=w.useState(null);return w.useEffect(()=>{try{const c=JSON.parse(e.content);r(JSON.stringify(c,null,2)),l(null)}catch{l("JSONのパースに失敗しました。有効なJSONではない可能性があります。"),r(e.content)}},[e.content]),y.jsxs("div",{children:[i&&y.jsx("div",{className:"mb-4 rounded border border-red-700 bg-red-900/30 p-2 text-red-300 text-sm",children:i}),y.jsx("div",{className:"overflow-x-auto rounded bg-gray-800 p-4 text-white",children:y.jsx("pre",{className:"whitespace-pre-wrap font-mono text-green-300",children:n})})]})}function Wm(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Vi=Wm();function rC(e){Vi=e}var El={exec:()=>null};function tt(e,n=""){let r=typeof e=="string"?e:e.source;const i={replace:(l,c)=>{let u=typeof c=="string"?c:c.source;return u=u.replace(on.caret,"$1"),r=r.replace(l,u),i},getRegex:()=>new RegExp(r,n)};return i}var on={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},n3=/^(?:[ \t]*(?:\n|$))+/,a3=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,r3=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Gl=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,i3=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Jm=/(?:[*+-]|\d{1,9}[.)])/,iC=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,sC=tt(iC).replace(/bull/g,Jm).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),s3=tt(iC).replace(/bull/g,Jm).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),eg=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,o3=/^[^\n]+/,tg=/(?!\s*\])(?:\\.|[^\[\]\\])+/,l3=tt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",tg).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),c3=tt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Jm).getRegex(),wd="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ng=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,u3=tt("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",ng).replace("tag",wd).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),oC=tt(eg).replace("hr",Gl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",wd).getRegex(),d3=tt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",oC).getRegex(),ag={blockquote:d3,code:a3,def:l3,fences:r3,heading:i3,hr:Gl,html:u3,lheading:sC,list:c3,newline:n3,paragraph:oC,table:El,text:o3},Sx=tt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Gl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",wd).getRegex(),f3={...ag,lheading:s3,table:Sx,paragraph:tt(eg).replace("hr",Gl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Sx).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",wd).getRegex()},h3={...ag,html:tt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ng).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:El,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:tt(eg).replace("hr",Gl).replace("heading",` *#{1,6} *[^
244
+ ]`).replace("lheading",sC).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},p3=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,m3=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,lC=/^( {2,}|\\)\n(?!\s*$)/,g3=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Sd=/[\p{P}\p{S}]/u,rg=/[\s\p{P}\p{S}]/u,cC=/[^\s\p{P}\p{S}]/u,v3=tt(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,rg).getRegex(),uC=/(?!~)[\p{P}\p{S}]/u,y3=/(?!~)[\s\p{P}\p{S}]/u,b3=/(?:[^\s\p{P}\p{S}]|~)/u,x3=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,dC=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,w3=tt(dC,"u").replace(/punct/g,Sd).getRegex(),S3=tt(dC,"u").replace(/punct/g,uC).getRegex(),fC="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",C3=tt(fC,"gu").replace(/notPunctSpace/g,cC).replace(/punctSpace/g,rg).replace(/punct/g,Sd).getRegex(),E3=tt(fC,"gu").replace(/notPunctSpace/g,b3).replace(/punctSpace/g,y3).replace(/punct/g,uC).getRegex(),R3=tt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,cC).replace(/punctSpace/g,rg).replace(/punct/g,Sd).getRegex(),T3=tt(/\\(punct)/,"gu").replace(/punct/g,Sd).getRegex(),_3=tt(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),A3=tt(ng).replace("(?:-->|$)","-->").getRegex(),M3=tt("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",A3).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Qu=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,D3=tt(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Qu).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),hC=tt(/^!?\[(label)\]\[(ref)\]/).replace("label",Qu).replace("ref",tg).getRegex(),pC=tt(/^!?\[(ref)\](?:\[\])?/).replace("ref",tg).getRegex(),O3=tt("reflink|nolink(?!\\()","g").replace("reflink",hC).replace("nolink",pC).getRegex(),ig={_backpedal:El,anyPunctuation:T3,autolink:_3,blockSkip:x3,br:lC,code:m3,del:El,emStrongLDelim:w3,emStrongRDelimAst:C3,emStrongRDelimUnd:R3,escape:p3,link:D3,nolink:pC,punctuation:v3,reflink:hC,reflinkSearch:O3,tag:M3,text:g3,url:El},N3={...ig,link:tt(/^!?\[(label)\]\((.*?)\)/).replace("label",Qu).getRegex(),reflink:tt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Qu).getRegex()},rm={...ig,emStrongRDelimAst:E3,emStrongLDelim:S3,url:tt(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},k3={...rm,br:tt(lC).replace("{2,}","*").getRegex(),text:tt(rm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},yu={normal:ag,gfm:f3,pedantic:h3},pl={normal:ig,gfm:rm,breaks:k3,pedantic:N3},j3={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Cx=e=>j3[e];function xa(e,n){if(n){if(on.escapeTest.test(e))return e.replace(on.escapeReplace,Cx)}else if(on.escapeTestNoEncode.test(e))return e.replace(on.escapeReplaceNoEncode,Cx);return e}function Ex(e){try{e=encodeURI(e).replace(on.percentDecode,"%")}catch{return null}return e}function Rx(e,n){var c;const r=e.replace(on.findPipe,(u,f,p)=>{let h=!1,v=f;for(;--v>=0&&p[v]==="\\";)h=!h;return h?"|":" |"}),i=r.split(on.splitPipe);let l=0;if(i[0].trim()||i.shift(),i.length>0&&!((c=i.at(-1))!=null&&c.trim())&&i.pop(),n)if(i.length>n)i.splice(n);else for(;i.length<n;)i.push("");for(;l<i.length;l++)i[l]=i[l].trim().replace(on.slashPipe,"|");return i}function ml(e,n,r){const i=e.length;if(i===0)return"";let l=0;for(;l<i&&e.charAt(i-l-1)===n;)l++;return e.slice(0,i-l)}function z3(e,n){if(e.indexOf(n[1])===-1)return-1;let r=0;for(let i=0;i<e.length;i++)if(e[i]==="\\")i++;else if(e[i]===n[0])r++;else if(e[i]===n[1]&&(r--,r<0))return i;return r>0?-2:-1}function Tx(e,n,r,i,l){const c=n.href,u=n.title||null,f=e[1].replace(l.other.outputLinkReplace,"$1");i.state.inLink=!0;const p={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:c,title:u,text:f,tokens:i.inlineTokens(f)};return i.state.inLink=!1,p}function L3(e,n,r){const i=e.match(r.other.indentCodeCompensation);if(i===null)return n;const l=i[1];return n.split(`
245
+ `).map(c=>{const u=c.match(r.other.beginningSpace);if(u===null)return c;const[f]=u;return f.length>=l.length?c.slice(l.length):c}).join(`
246
+ `)}var Ku=class{constructor(e){Ve(this,"options");Ve(this,"rules");Ve(this,"lexer");this.options=e||Vi}space(e){const n=this.rules.block.newline.exec(e);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(e){const n=this.rules.block.code.exec(e);if(n){const r=n[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:ml(r,`
247
+ `)}}}fences(e){const n=this.rules.block.fences.exec(e);if(n){const r=n[0],i=L3(r,n[3]||"",this.rules);return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:i}}}heading(e){const n=this.rules.block.heading.exec(e);if(n){let r=n[2].trim();if(this.rules.other.endingHash.test(r)){const i=ml(r,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(r=i.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){const n=this.rules.block.hr.exec(e);if(n)return{type:"hr",raw:ml(n[0],`
248
+ `)}}blockquote(e){const n=this.rules.block.blockquote.exec(e);if(n){let r=ml(n[0],`
249
+ `).split(`
250
+ `),i="",l="";const c=[];for(;r.length>0;){let u=!1;const f=[];let p;for(p=0;p<r.length;p++)if(this.rules.other.blockquoteStart.test(r[p]))f.push(r[p]),u=!0;else if(!u)f.push(r[p]);else break;r=r.slice(p);const h=f.join(`
251
+ `),v=h.replace(this.rules.other.blockquoteSetextReplace,`
252
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");i=i?`${i}
253
+ ${h}`:h,l=l?`${l}
254
+ ${v}`:v;const g=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(v,c,!0),this.lexer.state.top=g,r.length===0)break;const b=c.at(-1);if((b==null?void 0:b.type)==="code")break;if((b==null?void 0:b.type)==="blockquote"){const x=b,C=x.raw+`
255
+ `+r.join(`
256
+ `),S=this.blockquote(C);c[c.length-1]=S,i=i.substring(0,i.length-x.raw.length)+S.raw,l=l.substring(0,l.length-x.text.length)+S.text;break}else if((b==null?void 0:b.type)==="list"){const x=b,C=x.raw+`
257
+ `+r.join(`
258
+ `),S=this.list(C);c[c.length-1]=S,i=i.substring(0,i.length-b.raw.length)+S.raw,l=l.substring(0,l.length-x.raw.length)+S.raw,r=C.substring(c.at(-1).raw.length).split(`
259
+ `);continue}}return{type:"blockquote",raw:i,tokens:c,text:l}}}list(e){let n=this.rules.block.list.exec(e);if(n){let r=n[1].trim();const i=r.length>1,l={type:"list",raw:"",ordered:i,start:i?+r.slice(0,-1):"",loose:!1,items:[]};r=i?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=i?r:"[*+-]");const c=this.rules.other.listItemRegex(r);let u=!1;for(;e;){let p=!1,h="",v="";if(!(n=c.exec(e))||this.rules.block.hr.test(e))break;h=n[0],e=e.substring(h.length);let g=n[2].split(`
260
+ `,1)[0].replace(this.rules.other.listReplaceTabs,_=>" ".repeat(3*_.length)),b=e.split(`
261
+ `,1)[0],x=!g.trim(),C=0;if(this.options.pedantic?(C=2,v=g.trimStart()):x?C=n[1].length+1:(C=n[2].search(this.rules.other.nonSpaceChar),C=C>4?1:C,v=g.slice(C),C+=n[1].length),x&&this.rules.other.blankLine.test(b)&&(h+=b+`
262
+ `,e=e.substring(b.length+1),p=!0),!p){const _=this.rules.other.nextBulletRegex(C),A=this.rules.other.hrRegex(C),M=this.rules.other.fencesBeginRegex(C),k=this.rules.other.headingBeginRegex(C),N=this.rules.other.htmlBeginRegex(C);for(;e;){const z=e.split(`
263
+ `,1)[0];let P;if(b=z,this.options.pedantic?(b=b.replace(this.rules.other.listReplaceNesting," "),P=b):P=b.replace(this.rules.other.tabCharGlobal," "),M.test(b)||k.test(b)||N.test(b)||_.test(b)||A.test(b))break;if(P.search(this.rules.other.nonSpaceChar)>=C||!b.trim())v+=`
264
+ `+P.slice(C);else{if(x||g.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||M.test(g)||k.test(g)||A.test(g))break;v+=`
265
+ `+b}!x&&!b.trim()&&(x=!0),h+=z+`
266
+ `,e=e.substring(z.length+1),g=P.slice(C)}}l.loose||(u?l.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(u=!0));let S=null,R;this.options.gfm&&(S=this.rules.other.listIsTask.exec(v),S&&(R=S[0]!=="[ ] ",v=v.replace(this.rules.other.listReplaceTask,""))),l.items.push({type:"list_item",raw:h,task:!!S,checked:R,loose:!1,text:v,tokens:[]}),l.raw+=h}const f=l.items.at(-1);if(f)f.raw=f.raw.trimEnd(),f.text=f.text.trimEnd();else return;l.raw=l.raw.trimEnd();for(let p=0;p<l.items.length;p++)if(this.lexer.state.top=!1,l.items[p].tokens=this.lexer.blockTokens(l.items[p].text,[]),!l.loose){const h=l.items[p].tokens.filter(g=>g.type==="space"),v=h.length>0&&h.some(g=>this.rules.other.anyLine.test(g.raw));l.loose=v}if(l.loose)for(let p=0;p<l.items.length;p++)l.items[p].loose=!0;return l}}html(e){const n=this.rules.block.html.exec(e);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(e){const n=this.rules.block.def.exec(e);if(n){const r=n[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),i=n[2]?n[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",l=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:i,title:l}}}table(e){var u;const n=this.rules.block.table.exec(e);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;const r=Rx(n[1]),i=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),l=(u=n[3])!=null&&u.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split(`
267
+ `):[],c={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===i.length){for(const f of i)this.rules.other.tableAlignRight.test(f)?c.align.push("right"):this.rules.other.tableAlignCenter.test(f)?c.align.push("center"):this.rules.other.tableAlignLeft.test(f)?c.align.push("left"):c.align.push(null);for(let f=0;f<r.length;f++)c.header.push({text:r[f],tokens:this.lexer.inline(r[f]),header:!0,align:c.align[f]});for(const f of l)c.rows.push(Rx(f,c.header.length).map((p,h)=>({text:p,tokens:this.lexer.inline(p),header:!1,align:c.align[h]})));return c}}lheading(e){const n=this.rules.block.lheading.exec(e);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(e){const n=this.rules.block.paragraph.exec(e);if(n){const r=n[1].charAt(n[1].length-1)===`
268
+ `?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(e){const n=this.rules.block.text.exec(e);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(e){const n=this.rules.inline.escape.exec(e);if(n)return{type:"escape",raw:n[0],text:n[1]}}tag(e){const n=this.rules.inline.tag.exec(e);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(e){const n=this.rules.inline.link.exec(e);if(n){const r=n[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;const c=ml(r.slice(0,-1),"\\");if((r.length-c.length)%2===0)return}else{const c=z3(n[2],"()");if(c===-2)return;if(c>-1){const f=(n[0].indexOf("!")===0?5:4)+n[1].length+c;n[2]=n[2].substring(0,c),n[0]=n[0].substring(0,f).trim(),n[3]=""}}let i=n[2],l="";if(this.options.pedantic){const c=this.rules.other.pedanticHrefTitle.exec(i);c&&(i=c[1],l=c[3])}else l=n[3]?n[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?i=i.slice(1):i=i.slice(1,-1)),Tx(n,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:l&&l.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer,this.rules)}}reflink(e,n){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){const i=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),l=n[i.toLowerCase()];if(!l){const c=r[0].charAt(0);return{type:"text",raw:c,text:c}}return Tx(r,l,r[0],this.lexer,this.rules)}}emStrong(e,n,r=""){let i=this.rules.inline.emStrongLDelim.exec(e);if(!i||i[3]&&r.match(this.rules.other.unicodeAlphaNumeric))return;if(!(i[1]||i[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const c=[...i[0]].length-1;let u,f,p=c,h=0;const v=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(v.lastIndex=0,n=n.slice(-1*e.length+c);(i=v.exec(n))!=null;){if(u=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!u)continue;if(f=[...u].length,i[3]||i[4]){p+=f;continue}else if((i[5]||i[6])&&c%3&&!((c+f)%3)){h+=f;continue}if(p-=f,p>0)continue;f=Math.min(f,f+p+h);const g=[...i[0]][0].length,b=e.slice(0,c+i.index+g+f);if(Math.min(c,f)%2){const C=b.slice(1,-1);return{type:"em",raw:b,text:C,tokens:this.lexer.inlineTokens(C)}}const x=b.slice(2,-2);return{type:"strong",raw:b,text:x,tokens:this.lexer.inlineTokens(x)}}}}codespan(e){const n=this.rules.inline.code.exec(e);if(n){let r=n[2].replace(this.rules.other.newLineCharGlobal," ");const i=this.rules.other.nonSpaceChar.test(r),l=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return i&&l&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:n[0],text:r}}}br(e){const n=this.rules.inline.br.exec(e);if(n)return{type:"br",raw:n[0]}}del(e){const n=this.rules.inline.del.exec(e);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(e){const n=this.rules.inline.autolink.exec(e);if(n){let r,i;return n[2]==="@"?(r=n[1],i="mailto:"+r):(r=n[1],i=r),{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}url(e){var r;let n;if(n=this.rules.inline.url.exec(e)){let i,l;if(n[2]==="@")i=n[0],l="mailto:"+i;else{let c;do c=n[0],n[0]=((r=this.rules.inline._backpedal.exec(n[0]))==null?void 0:r[0])??"";while(c!==n[0]);i=n[0],n[1]==="www."?l="http://"+n[0]:l=n[0]}return{type:"link",raw:n[0],text:i,href:l,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(e){const n=this.rules.inline.text.exec(e);if(n){const r=this.lexer.state.inRawBlock;return{type:"text",raw:n[0],text:n[0],escaped:r}}}},Ja=class im{constructor(n){Ve(this,"tokens");Ve(this,"options");Ve(this,"state");Ve(this,"tokenizer");Ve(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=n||Vi,this.options.tokenizer=this.options.tokenizer||new Ku,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const r={other:on,block:yu.normal,inline:pl.normal};this.options.pedantic?(r.block=yu.pedantic,r.inline=pl.pedantic):this.options.gfm&&(r.block=yu.gfm,this.options.breaks?r.inline=pl.breaks:r.inline=pl.gfm),this.tokenizer.rules=r}static get rules(){return{block:yu,inline:pl}}static lex(n,r){return new im(r).lex(n)}static lexInline(n,r){return new im(r).inlineTokens(n)}lex(n){n=n.replace(on.carriageReturn,`
269
+ `),this.blockTokens(n,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){const i=this.inlineQueue[r];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(n,r=[],i=!1){var l,c,u;for(this.options.pedantic&&(n=n.replace(on.tabCharGlobal," ").replace(on.spaceLine,""));n;){let f;if((c=(l=this.options.extensions)==null?void 0:l.block)!=null&&c.some(h=>(f=h.call({lexer:this},n,r))?(n=n.substring(f.raw.length),r.push(f),!0):!1))continue;if(f=this.tokenizer.space(n)){n=n.substring(f.raw.length);const h=r.at(-1);f.raw.length===1&&h!==void 0?h.raw+=`
270
+ `:r.push(f);continue}if(f=this.tokenizer.code(n)){n=n.substring(f.raw.length);const h=r.at(-1);(h==null?void 0:h.type)==="paragraph"||(h==null?void 0:h.type)==="text"?(h.raw+=`
271
+ `+f.raw,h.text+=`
272
+ `+f.text,this.inlineQueue.at(-1).src=h.text):r.push(f);continue}if(f=this.tokenizer.fences(n)){n=n.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.heading(n)){n=n.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.hr(n)){n=n.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.blockquote(n)){n=n.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.list(n)){n=n.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.html(n)){n=n.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.def(n)){n=n.substring(f.raw.length);const h=r.at(-1);(h==null?void 0:h.type)==="paragraph"||(h==null?void 0:h.type)==="text"?(h.raw+=`
273
+ `+f.raw,h.text+=`
274
+ `+f.raw,this.inlineQueue.at(-1).src=h.text):this.tokens.links[f.tag]||(this.tokens.links[f.tag]={href:f.href,title:f.title});continue}if(f=this.tokenizer.table(n)){n=n.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.lheading(n)){n=n.substring(f.raw.length),r.push(f);continue}let p=n;if((u=this.options.extensions)!=null&&u.startBlock){let h=1/0;const v=n.slice(1);let g;this.options.extensions.startBlock.forEach(b=>{g=b.call({lexer:this},v),typeof g=="number"&&g>=0&&(h=Math.min(h,g))}),h<1/0&&h>=0&&(p=n.substring(0,h+1))}if(this.state.top&&(f=this.tokenizer.paragraph(p))){const h=r.at(-1);i&&(h==null?void 0:h.type)==="paragraph"?(h.raw+=`
275
+ `+f.raw,h.text+=`
276
+ `+f.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):r.push(f),i=p.length!==n.length,n=n.substring(f.raw.length);continue}if(f=this.tokenizer.text(n)){n=n.substring(f.raw.length);const h=r.at(-1);(h==null?void 0:h.type)==="text"?(h.raw+=`
277
+ `+f.raw,h.text+=`
278
+ `+f.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):r.push(f);continue}if(n){const h="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return this.state.top=!0,r}inline(n,r=[]){return this.inlineQueue.push({src:n,tokens:r}),r}inlineTokens(n,r=[]){var f,p,h;let i=n,l=null;if(this.tokens.links){const v=Object.keys(this.tokens.links);if(v.length>0)for(;(l=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)v.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(l=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,l.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(l=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)i=i.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let c=!1,u="";for(;n;){c||(u=""),c=!1;let v;if((p=(f=this.options.extensions)==null?void 0:f.inline)!=null&&p.some(b=>(v=b.call({lexer:this},n,r))?(n=n.substring(v.raw.length),r.push(v),!0):!1))continue;if(v=this.tokenizer.escape(n)){n=n.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.tag(n)){n=n.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.link(n)){n=n.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.reflink(n,this.tokens.links)){n=n.substring(v.raw.length);const b=r.at(-1);v.type==="text"&&(b==null?void 0:b.type)==="text"?(b.raw+=v.raw,b.text+=v.text):r.push(v);continue}if(v=this.tokenizer.emStrong(n,i,u)){n=n.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.codespan(n)){n=n.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.br(n)){n=n.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.del(n)){n=n.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.autolink(n)){n=n.substring(v.raw.length),r.push(v);continue}if(!this.state.inLink&&(v=this.tokenizer.url(n))){n=n.substring(v.raw.length),r.push(v);continue}let g=n;if((h=this.options.extensions)!=null&&h.startInline){let b=1/0;const x=n.slice(1);let C;this.options.extensions.startInline.forEach(S=>{C=S.call({lexer:this},x),typeof C=="number"&&C>=0&&(b=Math.min(b,C))}),b<1/0&&b>=0&&(g=n.substring(0,b+1))}if(v=this.tokenizer.inlineText(g)){n=n.substring(v.raw.length),v.raw.slice(-1)!=="_"&&(u=v.raw.slice(-1)),c=!0;const b=r.at(-1);(b==null?void 0:b.type)==="text"?(b.raw+=v.raw,b.text+=v.text):r.push(v);continue}if(n){const b="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(b);break}else throw new Error(b)}}return r}},Xu=class{constructor(e){Ve(this,"options");Ve(this,"parser");this.options=e||Vi}space(e){return""}code({text:e,lang:n,escaped:r}){var c;const i=(c=(n||"").match(on.notSpaceStart))==null?void 0:c[0],l=e.replace(on.endingNewline,"")+`
279
+ `;return i?'<pre><code class="language-'+xa(i)+'">'+(r?l:xa(l,!0))+`</code></pre>
280
+ `:"<pre><code>"+(r?l:xa(l,!0))+`</code></pre>
281
+ `}blockquote({tokens:e}){return`<blockquote>
282
+ ${this.parser.parse(e)}</blockquote>
283
+ `}html({text:e}){return e}heading({tokens:e,depth:n}){return`<h${n}>${this.parser.parseInline(e)}</h${n}>
284
+ `}hr(e){return`<hr>
285
+ `}list(e){const n=e.ordered,r=e.start;let i="";for(let u=0;u<e.items.length;u++){const f=e.items[u];i+=this.listitem(f)}const l=n?"ol":"ul",c=n&&r!==1?' start="'+r+'"':"";return"<"+l+c+`>
286
+ `+i+"</"+l+`>
287
+ `}listitem(e){var r;let n="";if(e.task){const i=this.checkbox({checked:!!e.checked});e.loose?((r=e.tokens[0])==null?void 0:r.type)==="paragraph"?(e.tokens[0].text=i+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=i+" "+xa(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):n+=i+" "}return n+=this.parser.parse(e.tokens,!!e.loose),`<li>${n}</li>
288
+ `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
289
+ `}table(e){let n="",r="";for(let l=0;l<e.header.length;l++)r+=this.tablecell(e.header[l]);n+=this.tablerow({text:r});let i="";for(let l=0;l<e.rows.length;l++){const c=e.rows[l];r="";for(let u=0;u<c.length;u++)r+=this.tablecell(c[u]);i+=this.tablerow({text:r})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
290
+ <thead>
291
+ `+n+`</thead>
292
+ `+i+`</table>
293
+ `}tablerow({text:e}){return`<tr>
294
+ ${e}</tr>
295
+ `}tablecell(e){const n=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+n+`</${r}>
296
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${xa(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:n,tokens:r}){const i=this.parser.parseInline(r),l=Ex(e);if(l===null)return i;e=l;let c='<a href="'+e+'"';return n&&(c+=' title="'+xa(n)+'"'),c+=">"+i+"</a>",c}image({href:e,title:n,text:r,tokens:i}){i&&(r=this.parser.parseInline(i,this.parser.textRenderer));const l=Ex(e);if(l===null)return xa(r);e=l;let c=`<img src="${e}" alt="${r}"`;return n&&(c+=` title="${xa(n)}"`),c+=">",c}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:xa(e.text)}},sg=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},er=class sm{constructor(n){Ve(this,"options");Ve(this,"renderer");Ve(this,"textRenderer");this.options=n||Vi,this.options.renderer=this.options.renderer||new Xu,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new sg}static parse(n,r){return new sm(r).parse(n)}static parseInline(n,r){return new sm(r).parseInline(n)}parse(n,r=!0){var l,c;let i="";for(let u=0;u<n.length;u++){const f=n[u];if((c=(l=this.options.extensions)==null?void 0:l.renderers)!=null&&c[f.type]){const h=f,v=this.options.extensions.renderers[h.type].call({parser:this},h);if(v!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(h.type)){i+=v||"";continue}}const p=f;switch(p.type){case"space":{i+=this.renderer.space(p);continue}case"hr":{i+=this.renderer.hr(p);continue}case"heading":{i+=this.renderer.heading(p);continue}case"code":{i+=this.renderer.code(p);continue}case"table":{i+=this.renderer.table(p);continue}case"blockquote":{i+=this.renderer.blockquote(p);continue}case"list":{i+=this.renderer.list(p);continue}case"html":{i+=this.renderer.html(p);continue}case"paragraph":{i+=this.renderer.paragraph(p);continue}case"text":{let h=p,v=this.renderer.text(h);for(;u+1<n.length&&n[u+1].type==="text";)h=n[++u],v+=`
297
+ `+this.renderer.text(h);r?i+=this.renderer.paragraph({type:"paragraph",raw:v,text:v,tokens:[{type:"text",raw:v,text:v,escaped:!0}]}):i+=v;continue}default:{const h='Token with "'+p.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw new Error(h)}}}return i}parseInline(n,r=this.renderer){var l,c;let i="";for(let u=0;u<n.length;u++){const f=n[u];if((c=(l=this.options.extensions)==null?void 0:l.renderers)!=null&&c[f.type]){const h=this.options.extensions.renderers[f.type].call({parser:this},f);if(h!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(f.type)){i+=h||"";continue}}const p=f;switch(p.type){case"escape":{i+=r.text(p);break}case"html":{i+=r.html(p);break}case"link":{i+=r.link(p);break}case"image":{i+=r.image(p);break}case"strong":{i+=r.strong(p);break}case"em":{i+=r.em(p);break}case"codespan":{i+=r.codespan(p);break}case"br":{i+=r.br(p);break}case"del":{i+=r.del(p);break}case"text":{i+=r.text(p);break}default:{const h='Token with "'+p.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw new Error(h)}}}return i}},pp,_u=(pp=class{constructor(e){Ve(this,"options");Ve(this,"block");this.options=e||Vi}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?Ja.lex:Ja.lexInline}provideParser(){return this.block?er.parse:er.parseInline}},Ve(pp,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),pp),P3=class{constructor(...e){Ve(this,"defaults",Wm());Ve(this,"options",this.setOptions);Ve(this,"parse",this.parseMarkdown(!0));Ve(this,"parseInline",this.parseMarkdown(!1));Ve(this,"Parser",er);Ve(this,"Renderer",Xu);Ve(this,"TextRenderer",sg);Ve(this,"Lexer",Ja);Ve(this,"Tokenizer",Ku);Ve(this,"Hooks",_u);this.use(...e)}walkTokens(e,n){var i,l;let r=[];for(const c of e)switch(r=r.concat(n.call(this,c)),c.type){case"table":{const u=c;for(const f of u.header)r=r.concat(this.walkTokens(f.tokens,n));for(const f of u.rows)for(const p of f)r=r.concat(this.walkTokens(p.tokens,n));break}case"list":{const u=c;r=r.concat(this.walkTokens(u.items,n));break}default:{const u=c;(l=(i=this.defaults.extensions)==null?void 0:i.childTokens)!=null&&l[u.type]?this.defaults.extensions.childTokens[u.type].forEach(f=>{const p=u[f].flat(1/0);r=r.concat(this.walkTokens(p,n))}):u.tokens&&(r=r.concat(this.walkTokens(u.tokens,n)))}}return r}use(...e){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(r=>{const i={...r};if(i.async=this.defaults.async||i.async||!1,r.extensions&&(r.extensions.forEach(l=>{if(!l.name)throw new Error("extension name required");if("renderer"in l){const c=n.renderers[l.name];c?n.renderers[l.name]=function(...u){let f=l.renderer.apply(this,u);return f===!1&&(f=c.apply(this,u)),f}:n.renderers[l.name]=l.renderer}if("tokenizer"in l){if(!l.level||l.level!=="block"&&l.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const c=n[l.level];c?c.unshift(l.tokenizer):n[l.level]=[l.tokenizer],l.start&&(l.level==="block"?n.startBlock?n.startBlock.push(l.start):n.startBlock=[l.start]:l.level==="inline"&&(n.startInline?n.startInline.push(l.start):n.startInline=[l.start]))}"childTokens"in l&&l.childTokens&&(n.childTokens[l.name]=l.childTokens)}),i.extensions=n),r.renderer){const l=this.defaults.renderer||new Xu(this.defaults);for(const c in r.renderer){if(!(c in l))throw new Error(`renderer '${c}' does not exist`);if(["options","parser"].includes(c))continue;const u=c,f=r.renderer[u],p=l[u];l[u]=(...h)=>{let v=f.apply(l,h);return v===!1&&(v=p.apply(l,h)),v||""}}i.renderer=l}if(r.tokenizer){const l=this.defaults.tokenizer||new Ku(this.defaults);for(const c in r.tokenizer){if(!(c in l))throw new Error(`tokenizer '${c}' does not exist`);if(["options","rules","lexer"].includes(c))continue;const u=c,f=r.tokenizer[u],p=l[u];l[u]=(...h)=>{let v=f.apply(l,h);return v===!1&&(v=p.apply(l,h)),v}}i.tokenizer=l}if(r.hooks){const l=this.defaults.hooks||new _u;for(const c in r.hooks){if(!(c in l))throw new Error(`hook '${c}' does not exist`);if(["options","block"].includes(c))continue;const u=c,f=r.hooks[u],p=l[u];_u.passThroughHooks.has(c)?l[u]=h=>{if(this.defaults.async)return Promise.resolve(f.call(l,h)).then(g=>p.call(l,g));const v=f.call(l,h);return p.call(l,v)}:l[u]=(...h)=>{let v=f.apply(l,h);return v===!1&&(v=p.apply(l,h)),v}}i.hooks=l}if(r.walkTokens){const l=this.defaults.walkTokens,c=r.walkTokens;i.walkTokens=function(u){let f=[];return f.push(c.call(this,u)),l&&(f=f.concat(l.call(this,u))),f}}this.defaults={...this.defaults,...i}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,n){return Ja.lex(e,n??this.defaults)}parser(e,n){return er.parse(e,n??this.defaults)}parseMarkdown(e){return(r,i)=>{const l={...i},c={...this.defaults,...l},u=this.onError(!!c.silent,!!c.async);if(this.defaults.async===!0&&l.async===!1)return u(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return u(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return u(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));c.hooks&&(c.hooks.options=c,c.hooks.block=e);const f=c.hooks?c.hooks.provideLexer():e?Ja.lex:Ja.lexInline,p=c.hooks?c.hooks.provideParser():e?er.parse:er.parseInline;if(c.async)return Promise.resolve(c.hooks?c.hooks.preprocess(r):r).then(h=>f(h,c)).then(h=>c.hooks?c.hooks.processAllTokens(h):h).then(h=>c.walkTokens?Promise.all(this.walkTokens(h,c.walkTokens)).then(()=>h):h).then(h=>p(h,c)).then(h=>c.hooks?c.hooks.postprocess(h):h).catch(u);try{c.hooks&&(r=c.hooks.preprocess(r));let h=f(r,c);c.hooks&&(h=c.hooks.processAllTokens(h)),c.walkTokens&&this.walkTokens(h,c.walkTokens);let v=p(h,c);return c.hooks&&(v=c.hooks.postprocess(v)),v}catch(h){return u(h)}}}onError(e,n){return r=>{if(r.message+=`
298
+ Please report this to https://github.com/markedjs/marked.`,e){const i="<p>An error occurred:</p><pre>"+xa(r.message+"",!0)+"</pre>";return n?Promise.resolve(i):i}if(n)return Promise.reject(r);throw r}}},Hi=new P3;function rt(e,n){return Hi.parse(e,n)}rt.options=rt.setOptions=function(e){return Hi.setOptions(e),rt.defaults=Hi.defaults,rC(rt.defaults),rt};rt.getDefaults=Wm;rt.defaults=Vi;rt.use=function(...e){return Hi.use(...e),rt.defaults=Hi.defaults,rC(rt.defaults),rt};rt.walkTokens=function(e,n){return Hi.walkTokens(e,n)};rt.parseInline=Hi.parseInline;rt.Parser=er;rt.parser=er.parse;rt.Renderer=Xu;rt.TextRenderer=sg;rt.Lexer=Ja;rt.lexer=Ja.lex;rt.Tokenizer=Ku;rt.Hooks=_u;rt.parse=rt;rt.options;rt.setOptions;rt.use;rt.walkTokens;rt.parseInline;er.parse;Ja.lex;function B3(e){const n=oo(),[r,i]=w.useState(!1),l=ia({async mutationFn(){i(!0);const c=Yt(e.filePath);return(await zt.api.files[":path{.+}"].$put({param:{path:c},json:{title:null,properties:null,content:null,description:null,isArchived:!1}})).json()},onSuccess:async c=>{const u=e.filePath.split("/"),f=u.pop(),p=u.filter(h=>h!=="_").concat(f||"").join("/");e.onRestore&&e.onRestore(),n({to:`/${p}`})},onError:c=>{console.error("復元エラー:",c),alert("ファイルの復元に失敗しました")},onSettled:()=>{i(!1)}});return y.jsx(Aa,{className:"p-2",children:y.jsxs("div",{className:"flex items-center justify-between gap-2",children:[y.jsx("div",{className:"flex items-center gap-x-2",children:y.jsx("span",{className:"text-muted-foreground text-sm",children:"このファイルはアーカイブされています"})}),y.jsx(Ze,{size:"sm",onClick:()=>l.mutate(),disabled:r||l.isPending,children:r?"復元中...":"復元する"})]})})}function U3(e){const[n,r]=w.useState(()=>Array.isArray(e.value)?e.value.join(", "):String(e.value));if(w.useEffect(()=>{Array.isArray(e.value)?r(e.value.join(", ")):r(String(e.value))},[e.value]),e.schemaField&&e.schemaField.type==="relation"&&e.schemaField.path)return y.jsx(Vm,{value:e.value||"",relationOptions:e.relationOptions,onValueChange:i=>e.onValueChange(e.fieldKey,i)});if(e.schemaField&&e.schemaField.type==="multi-relation"&&e.schemaField.path){let i=[];return Array.isArray(e.value)?i=e.value.filter(l=>typeof l=="string"&&l.trim()!==""):typeof e.value=="string"&&e.value.trim()!==""&&(i=e.value.split(",").map(l=>l.trim()).filter(l=>l!=="")),y.jsx(O1,{value:i,relationOptions:e.relationOptions,onValueChange:l=>e.onValueChange(e.fieldKey,l.join(", ")),wrap:!0})}if(typeof e.originalValue=="boolean")return y.jsxs(Kr,{value:String(e.value),onValueChange:i=>e.onValueChange(e.fieldKey,i),children:[y.jsx(Zr,{className:"w-full",children:y.jsx(Xr,{})}),y.jsxs(Wr,{children:[y.jsx(oa,{value:"true",children:"true"}),y.jsx(oa,{value:"false",children:"false"})]})]});if(typeof e.originalValue=="number")return y.jsx(In,{type:"number",value:n,onChange:i=>r(i.target.value),onBlur:i=>e.onBlur(e.fieldKey,i.target.value),className:"flex-1",placeholder:`${e.fieldKey}の値を入力`});if(Array.isArray(e.originalValue)){const i=e.originalValue.length>0&&typeof e.originalValue[0]=="number"?"カンマ区切りで数値を入力 (例: 1, 2, 3)":e.originalValue.length>0&&typeof e.originalValue[0]=="boolean"?"カンマ区切りでtrue/falseを入力 (例: true, false, true)":"カンマ区切りで入力 (例: item1, item2, item3)";return y.jsx(In,{value:n,onChange:l=>r(l.target.value),onBlur:l=>e.onBlur(e.fieldKey,l.target.value),className:"flex-1",placeholder:i})}return y.jsx(In,{value:n,onChange:i=>r(i.target.value),onBlur:i=>e.onBlur(e.fieldKey,i.target.value),className:"flex-1",placeholder:`${e.fieldKey}の値を入力`})}function H3(e){const n=e.frontMatter;if(!n||Object.keys(n).length===0)return null;const r=(l,c)=>{if(!e.onUpdate){console.warn("onUpdate is not provided to EditableFrontMatterView");return}const u=n[l];let f=c;if(typeof u=="boolean")f=c==="true";else if(typeof u=="number"){const p=Number(c);f=Number.isNaN(p)?u:p}else if(Array.isArray(u)){const p=c.split(",").map(h=>h.trim()).filter(h=>h!=="");u.length>0&&typeof u[0]=="number"?f=p.map(h=>Number(h)).filter(h=>!Number.isNaN(h)):u.length>0&&typeof u[0]=="boolean"?f=p.map(h=>h==="true"):f=p}else u===null&&Array.isArray(c)&&(f=c);e.onUpdate(l,f)},i=(l,c)=>{r(l,c)};return y.jsx(Aa,{className:"gap-4 rounded-md p-2",children:y.jsx("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-2",children:Object.entries(n).map(([l,c])=>{var v,g,b;const u=(v=e.schema)==null?void 0:v[l],f=(g=e.relations)==null?void 0:g.find(x=>x.path===(u&&"path"in u?u.path:null)),h=((b=u==null?void 0:u.type)==null?void 0:b.startsWith("multi-"))?"md:col-span-2":"";return y.jsxs("div",{className:_e("flex flex-col gap-1",h),children:[y.jsx("span",{className:"font-medium text-sm",children:l}),y.jsx("div",{className:"flex-1",children:y.jsx(U3,{fieldKey:l,value:c,originalValue:n[l],onValueChange:r,onBlur:i,schemaField:u,relationOptions:f==null?void 0:f.files})})]},l)})})})}function V3(e){const n=e.frontMatter,r=n!==null&&Object.keys(n||{}).length>0,i=rt.parse(e.content),l=e.filePath.includes("/_/");return y.jsxs("div",{className:"h-full space-y-2",children:[l&&y.jsx(B3,{filePath:e.filePath,onRestore:e.onReload}),y.jsx(aC,{filePath:e.filePath,fileData:e.fileData,cwd:e.cwd,onReload:e.onReload,isLoading:e.isLoading}),r&&y.jsx(H3,{frontMatter:n,onUpdate:e.onFrontMatterUpdate,schema:e.schema,relations:e.relations}),y.jsx(Aa,{className:"overflow-hidden rounded-md p-0",children:y.jsx("div",{className:"markdown-body p-4",dangerouslySetInnerHTML:{__html:i}})})]})}const q3=zt.api.files[":path{.+}"];function mC(){return ia({async mutationFn(e){const n=Yt(e.path),r=n.startsWith("/")?n.substring(1):n,i=e.field?{[e.field]:e.value}:{};return(await q3.$put({param:{path:r},json:{properties:i,content:null,title:null,description:null,isArchived:null}})).json()}})}const _x=zt.api.files[":path{.+}"];function $3(e){const n=e.replace(/^docs\//,""),r=n.startsWith("/")?n.substring(1):n;return Tl({queryKey:[_x.$url({param:{path:r}})],async queryFn(){return(await _x.$get({param:{path:r}})).json()}})}function F3(e){var C,S,R,_,A,M,k;const n=$3(e.filePath),r=P1(e.filePath),i=n.data,l=((_=(R=(S=(C=r.data)==null?void 0:C.indexFile)==null?void 0:S.content)==null?void 0:R.frontMatter)==null?void 0:_.schema)||{},c=((A=r.data)==null?void 0:A.relations)||[],u=typeof(i==null?void 0:i.content)=="string"?i.content:((M=i==null?void 0:i.content)==null?void 0:M.body)||"",[f,p]=w.useState(u),h=mC(),v=async N=>{const z=Yt(e.filePath),D=await(await zt.api.files[":path{.+}"].$put({param:{path:z},json:{title:null,properties:null,content:N,description:null,isArchived:null}})).json();"content"in D&&typeof D.content=="string"&&p(D.content)},g=async()=>{var P;const N=await n.refetch();if(N.data===void 0)return;const z=typeof N.data.content=="string"?N.data.content:((P=N.data.content)==null?void 0:P.body)||"";p(z)},b=async(N,z)=>{await h.mutateAsync({path:e.filePath,field:N,value:z}),g()};if(!i)return y.jsx("div",{children:"ファイルが見つかりません"});const x=typeof i.path=="string"?i.path:(k=i.path)==null?void 0:k.path;return x!=null&&x.endsWith(".md")?y.jsx("main",{className:"p-2",children:y.jsx(V3,{filePath:e.filePath,fileData:{path:x,title:i.content.title||null},cwd:r.data.cwd,content:f,onChange:v,frontMatter:(()=>{const N=i.content.frontMatter||{},z={};for(const[P,D]of Object.entries(N))P==="schema"||P==="icon"||(typeof D=="string"||typeof D=="number"||typeof D=="boolean"||D===null||Array.isArray(D)&&D.every(B=>typeof B=="string"||typeof B=="number"||typeof B=="boolean"))&&(z[P]=D);return z})(),onFrontMatterUpdate:b,onReload:g,isLoading:n.isLoading,schema:l,relations:c})}):x!=null&&x.endsWith(".csv")?y.jsx("main",{className:"p-2",children:y.jsx(Jz,{filePath:e.filePath,fileData:{path:x,title:i.content.title||null},cwd:r.data.cwd,content:f,onChange:v,onReload:g,isLoading:n.isLoading})}):x!=null&&x.endsWith(".json")?y.jsx("main",{className:"p-2",children:y.jsx(t3,{content:f})}):y.jsx("main",{className:"p-2",children:y.jsx(e3,{content:f})})}const I3=function(){const n=uw({select:l=>l.pathname}),i=[".md",".csv",".json",".mermaid"].some(l=>n.endsWith(l));return n.startsWith("/apps")?null:i?y.jsx(F3,{filePath:n}):y.jsx(sj,{currentPath:n},n)},G3=Object.freeze(Object.defineProperty({__proto__:null,component:I3},Symbol.toStringTag,{value:"Module"}));function Y3(e){return e.type==="markdown"}function gC(e){if(!Y3(e.feature))return null;const n=e.feature.content.frontMatter,r=(n==null?void 0:n["is-done"])===!0,i=(n==null?void 0:n.priority)||0,l=i===2?"high":i===1?"medium":"low",c=n==null?void 0:n.milestone,u=()=>{var x;const b=(x=e.milestoneOptions)==null?void 0:x.find(C=>C.label===c);return(b==null?void 0:b.name)||""},f=b=>{var S,R,_;if(!b){(S=e.onMilestoneUpdate)==null||S.call(e,e.feature.path.path,"");return}const x=(R=e.milestoneOptions)==null?void 0:R.find(A=>A.name===b),C=(x==null?void 0:x.label)||b;(_=e.onMilestoneUpdate)==null||_.call(e,e.feature.path.path,C)},p=()=>{var b;(b=e.onPropertyUpdate)==null||b.call(e,e.feature.path.path,"is-done",!r)},h=()=>{var C;const x=(((n==null?void 0:n.priority)||0)+1)%3;(C=e.onPropertyUpdate)==null||C.call(e,e.feature.path.path,"priority",x)},v=b=>{switch(b){case"high":return"border-red-500";case"medium":return"border-yellow-500";case"low":return"border-green-500";default:return"border-gray-500"}},g=b=>b==="high"?"高":b==="medium"?"中":"低";return y.jsxs("div",{className:_e("space-y-2 rounded-md border p-2",r&&"opacity-75"),children:[y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx(Ze,{variant:r?"default":"secondary",size:"sm",onClick:p,children:y.jsx(O2,{className:"size-4"})}),y.jsx("h3",{className:`font-bold ${r?"line-through opacity-80":""}`,children:e.feature.content.title||e.feature.path.name})]}),e.feature.content.description&&y.jsx("p",{className:"text-sm opacity-80",children:e.feature.content.description}),y.jsxs("div",{className:"flex flex-col items-end justify-between gap-2 lg:flex-row",children:[y.jsx("div",{className:"text-xs opacity-50",children:e.feature.path.name}),y.jsxs("div",{className:"flex gap-2",children:[y.jsx(Vm,{value:u(),relationOptions:e.milestoneOptions,onValueChange:f}),y.jsx(Ze,{variant:"outline",className:_e("w-8",v(l)),onClick:h,children:g(l)}),e.onFeatureRemove&&y.jsx(Ze,{variant:"outline",className:"w-8",onClick:()=>{var b;(b=e.onFeatureRemove)==null||b.call(e,e.feature.path.path)},children:y.jsx(ji,{className:"size-3"})})]})]})]})}function bu(e){return e.type==="markdown"}function Q3(e){const n=e.group.features.filter(bu).sort((c,u)=>{var v,g;const f={high:0,medium:1,low:2},p=((v=c.content.frontMatter)==null?void 0:v.priority)||"low",h=((g=u.content.frontMatter)==null?void 0:g.priority)||"low";return(f[p]||2)-(f[h]||2)}),r=e.group.features.map(c=>c.path.path),i=(e.allFeatures||[]).filter(bu).filter(c=>!r.includes(c.path.path)),l=c=>{c&&e.onFeatureAdd&&e.onFeatureAdd(e.group.page.path.path,c)};return y.jsx(Aa,{className:"w-full rounded-md p-2",children:y.jsxs("div",{className:"flex flex-col gap-2 lg:flex-row",children:[y.jsxs("div",{className:"space-y-2 lg:w-1/3",children:[y.jsx("h2",{className:"font-semibold text-lg",children:bu(e.group.page)&&e.group.page.content.title||e.group.page.path.name}),y.jsx("div",{className:"text-xs opacity-50",children:e.group.page.path.name}),bu(e.group.page)&&e.group.page.content.description&&y.jsx("p",{className:"text-sm opacity-50",children:e.group.page.content.description})]}),y.jsx("div",{className:"flex-1",children:y.jsxs("div",{className:"space-y-2",children:[n.length>0?n.map(c=>y.jsx(gC,{feature:c,milestoneOptions:e.milestoneOptions,onMilestoneUpdate:e.onMilestoneUpdate,onPropertyUpdate:e.onPropertyUpdate,onFeatureRemove:u=>{var f;return(f=e.onFeatureRemove)==null?void 0:f.call(e,e.group.page.path.path,u)}},c.path.name)):y.jsx("p",{className:"text-sm italic opacity-50",children:"このページに関連する機能はありません"}),i.length>0&&y.jsxs(Kr,{value:"",onValueChange:l,children:[y.jsx(Zr,{className:"w-full",children:y.jsx(Xr,{placeholder:"機能を追加..."})}),y.jsx(Wr,{children:i.map(c=>y.jsx(oa,{value:c.path.path||"",children:c.content.title||c.path.name},c.path.path))})]})]})})]})})}function K3(e){return e.type==="markdown"}function X3(e){if(e.unlinkedFeatures.length===0)return null;const n=e.unlinkedFeatures.filter(K3).sort((r,i)=>{var f,p;const l={high:0,medium:1,low:2},c=((f=r.content.frontMatter)==null?void 0:f.priority)||"low",u=((p=i.content.frontMatter)==null?void 0:p.priority)||"low";return(l[c]||2)-(l[u]||2)});return y.jsx(Aa,{className:"w-full p-2",children:y.jsxs("div",{className:"flex gap-2",children:[y.jsxs("div",{className:"w-1/3 border-r pr-4",children:[y.jsx("h2",{className:"font-semibold text-lg",children:"未関連付け機能"}),y.jsx("p",{className:"text-gray-600 text-sm",children:"ページに関連付けられていない機能"}),y.jsxs(Hm,{variant:"outline",className:"mt-2",children:[e.unlinkedFeatures.length,"機能"]})]}),y.jsx("div",{className:"flex-1",children:y.jsx("div",{className:"space-y-3",children:n.map(r=>y.jsx(gC,{feature:r,milestoneOptions:e.milestoneOptions,onMilestoneUpdate:e.onMilestoneUpdate,onPropertyUpdate:e.onPropertyUpdate},r.path.name))})})]})})}function Z3(e){var M;const n=Tl({queryKey:["apps/client",e.project],queryFn:async()=>(await zt.api.directories[":path{.+}"].$get({param:{path:`${e.project}/pages`}})).json()}),r=Tl({queryKey:["apps/client",`products/${e.project}/features`],queryFn:async()=>(await zt.api.directories[":path{.+}"].$get({param:{path:`${e.project}/features`}})).json()}),i=n.data.files||[],l=r.data.files||[],c=(M=r.data.relations)==null?void 0:M.find(k=>k.path===`${e.project}/milestones`),u=(c==null?void 0:c.files)||[],[f,p]=w.useState(null),h=mC(),v=async(k,N)=>{try{await h.mutateAsync({path:k,field:"milestone",value:N}),await r.refetch()}catch(z){console.error("Failed to update milestone:",z)}},g=async(k,N,z)=>{try{await h.mutateAsync({path:k,field:N,value:z}),await r.refetch()}catch(P){console.error("Failed to update property:",P)}},b=async(k,N)=>{var B;const z=i.find(Y=>Y.path.path===k);if(!z)return;const D=[...(z.type==="markdown"?(B=z.content.frontMatter)==null?void 0:B.features:[])||[],N];await h.mutateAsync({path:k,field:"features",value:D}),await Promise.all([n.refetch(),r.refetch()])},x=async(k,N)=>{var z;try{const P=i.find(Y=>Y.path.path===k);if(!P)return;const B=((P.type==="markdown"?(z=P.content.frontMatter)==null?void 0:z.features:[])||[]).filter(Y=>Y!==N);await h.mutateAsync({path:k,field:"features",value:B}),await Promise.all([n.refetch(),r.refetch()])}catch(P){console.error("Failed to remove feature from page:",P)}},C=k=>f?k.filter(N=>{var P;return N.type!=="markdown"?!1:((P=N.content.frontMatter)==null?void 0:P.milestone)===f}):k;function S(k){return k.type==="markdown"}const R=i.filter(S).map(k=>{var D;const N=S(k)?((D=k.content.frontMatter)==null?void 0:D.features)||[]:[],z=l.filter(B=>N.includes(B.path.path)),P=C(z).filter(B=>B.type==="markdown");return{page:k,features:P}}),_=R.flatMap(k=>k.features.map(N=>N.path.path)),A=C(l.filter(k=>!_.includes(k.path.path)));return y.jsxs("main",{className:"w-full space-y-2 p-2",children:[y.jsxs("div",{className:"flex flex-wrap gap-2",children:[y.jsx(Ze,{variant:f===null?"default":"secondary",onClick:()=>p(null),size:"sm",children:"すべて"}),u.map(k=>y.jsx(Ze,{variant:f===k.name?"default":"secondary",onClick:()=>p(k.name),size:"sm",children:k.name},k.name))]}),y.jsxs("div",{className:"space-y-2",children:[R.map(k=>y.jsx(Q3,{group:k,milestoneOptions:u,onMilestoneUpdate:v,onPropertyUpdate:g,allFeatures:l,onFeatureAdd:b,onFeatureRemove:x},k.page.path.name)),y.jsx(X3,{unlinkedFeatures:A.filter(k=>"frontMatter"in k&&"title"in k),milestoneOptions:u,onMilestoneUpdate:v,onPropertyUpdate:g})]})]})}const W3=function(){const n=Um.useParams();return n._splat===void 0?null:y.jsx(w.Suspense,{fallback:y.jsx("div",{className:"p-4",children:"読み込み中..."}),children:y.jsx(Z3,{project:n._splat})})},J3=Object.freeze(Object.defineProperty({__proto__:null,component:W3},Symbol.toStringTag,{value:"Module"}));