@specific.dev/cli 0.1.43 → 0.1.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admin/404/index.html +1 -1
- package/dist/admin/404.html +1 -1
- package/dist/admin/__next.__PAGE__.txt +4 -4
- package/dist/admin/__next._full.txt +11 -11
- package/dist/admin/__next._head.txt +4 -4
- package/dist/admin/__next._index.txt +4 -4
- package/dist/admin/__next._tree.txt +2 -2
- package/dist/admin/_next/static/chunks/{b71388016463cab2.js → 522cc1cbb935d4c6.js} +1 -1
- package/dist/admin/_next/static/chunks/62190944d690fc4e.js +4 -0
- package/dist/admin/_next/static/chunks/938d410f2031f3b1.css +3 -0
- package/dist/admin/_next/static/chunks/979e895ce202c4a3.js +1 -0
- package/dist/admin/_next/static/chunks/99f58b3b47071cc8.js +5 -0
- package/dist/admin/_next/static/chunks/9f53491ced2668ee.js +1 -0
- package/dist/admin/_next/static/chunks/a308451471d4cb39.js +1 -0
- package/dist/admin/_next/static/chunks/a4ff1b18f2f45e23.js +2 -0
- package/dist/admin/_next/static/chunks/a5c8191596f07db5.js +2 -0
- package/dist/admin/_next/static/chunks/a6dad97d9634a72d.js.map +1 -1
- package/dist/admin/_next/static/chunks/{ff1a16fafef87110.js → b2b4aada246f4749.js} +1 -1
- package/dist/admin/_next/static/chunks/bf65cbe8dc67cf90.js +5 -0
- package/dist/admin/_next/static/chunks/{turbopack-22b7312525502d51.js → turbopack-9e3df33047c5ecb2.js} +2 -2
- package/dist/admin/_not-found/__next._full.txt +9 -9
- package/dist/admin/_not-found/__next._head.txt +4 -4
- package/dist/admin/_not-found/__next._index.txt +4 -4
- package/dist/admin/_not-found/__next._not-found.__PAGE__.txt +2 -2
- package/dist/admin/_not-found/__next._not-found.txt +3 -3
- package/dist/admin/_not-found/__next._tree.txt +2 -2
- package/dist/admin/_not-found/index.html +1 -1
- package/dist/admin/_not-found/index.txt +9 -9
- package/dist/admin/databases/__next._full.txt +11 -11
- package/dist/admin/databases/__next._head.txt +4 -4
- package/dist/admin/databases/__next._index.txt +4 -4
- package/dist/admin/databases/__next._tree.txt +2 -2
- package/dist/admin/databases/__next.databases.__PAGE__.txt +4 -4
- package/dist/admin/databases/__next.databases.txt +3 -3
- package/dist/admin/databases/index.html +1 -1
- package/dist/admin/databases/index.txt +11 -11
- package/dist/admin/index.html +1 -1
- package/dist/admin/index.txt +11 -11
- package/dist/cli.js +305 -496
- package/dist/docs/integrations/nextjs.md +18 -0
- package/dist/docs/migrations/supabase.md +18 -0
- package/dist/docs/secrets-config.md +52 -8
- package/package.json +12 -4
- package/dist/admin/_next/static/chunks/1a608619ba3183f8.js +0 -5
- package/dist/admin/_next/static/chunks/1da818a0086b4acf.css +0 -3
- package/dist/admin/_next/static/chunks/42730c0491633b9d.js +0 -5
- package/dist/admin/_next/static/chunks/465f799faf41e6df.js +0 -1
- package/dist/admin/_next/static/chunks/806bdb8e4a6a9b95.js +0 -4
- package/dist/admin/_next/static/chunks/9054c84ba21a4c14.js +0 -2
- package/dist/admin/_next/static/chunks/cba5c081fc9dc612.js +0 -2
- package/dist/admin/_next/static/chunks/d2be314c3ece3fbe.js +0 -1
- package/dist/admin/_next/static/chunks/dde2c8e6322d1671.js +0 -1
- /package/dist/admin/_next/static/{3dGrdrrH7RVk5ixe6lgRQ → pbjYnqTudS-YVLwgwOgBz}/_buildManifest.js +0 -0
- /package/dist/admin/_next/static/{3dGrdrrH7RVk5ixe6lgRQ → pbjYnqTudS-YVLwgwOgBz}/_clientMiddlewareManifest.json +0 -0
- /package/dist/admin/_next/static/{3dGrdrrH7RVk5ixe6lgRQ → pbjYnqTudS-YVLwgwOgBz}/_ssgManifest.js +0 -0
|
@@ -32,6 +32,24 @@ service "web" {
|
|
|
32
32
|
|
|
33
33
|
Next.js reads `PORT` from the environment automatically, so no additional configuration is needed.
|
|
34
34
|
|
|
35
|
+
## Migrating existing secrets
|
|
36
|
+
|
|
37
|
+
If the project has existing secrets in `.env`, `.env.local`, or similar files, move them to `specific.local` so they don't need to be re-entered when running `specific dev`:
|
|
38
|
+
|
|
39
|
+
```hcl
|
|
40
|
+
# specific.local
|
|
41
|
+
secrets {
|
|
42
|
+
stripe_api_key = "sk_test_..."
|
|
43
|
+
database_password = "..."
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
configs {
|
|
47
|
+
api_url = "https://api.example.com"
|
|
48
|
+
}
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
If there are secrets that are not defined in `specific.hcl` but exist in `.env`, ask the user about it and perhaps add configs/secrets for them.
|
|
52
|
+
|
|
35
53
|
## Important note on pre-rendering during builds
|
|
36
54
|
|
|
37
55
|
During a build, Next.js will load a lot of code to perform pre-rendering. That code can not reference any environments variables from `specific.hcl`, like database URLs or API keys from secrets, as those are not available during the build and will cause it to fail. Ensure all code that relies on these env vars DOES NOT get executed during the build phase.
|
|
@@ -53,6 +53,24 @@ There is currently no equivalent to Supabase Cron available in Specific. It will
|
|
|
53
53
|
- Replace all Supabase client calls with standard `fetch` requests to your backend API service
|
|
54
54
|
- Pass auth tokens via request headers (e.g., `Authorization: Bearer <token>`) to the backend service for authenticated endpoints
|
|
55
55
|
|
|
56
|
+
## Migrating existing secrets
|
|
57
|
+
|
|
58
|
+
If the project has existing secrets in `.env`, `.env.local`, or Supabase configuration files, move them to `specific.local` so they don't need to be re-entered when running `specific dev`:
|
|
59
|
+
|
|
60
|
+
```hcl
|
|
61
|
+
# specific.local
|
|
62
|
+
secrets {
|
|
63
|
+
stripe_api_key = "sk_test_..."
|
|
64
|
+
jwt_secret = "..."
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
config {
|
|
68
|
+
api_url = "https://api.example.com"
|
|
69
|
+
}
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Note: Only secrets and configs that are declared in `specific.hcl` need to be added to `specific.local`. The Supabase-specific environment variables (like `SUPABASE_URL` and `SUPABASE_ANON_KEY`) are no longer needed after migration.
|
|
73
|
+
|
|
56
74
|
## Data migration
|
|
57
75
|
|
|
58
76
|
Data migration out of Supabase Postgres and Storage (S3) into Specific is currently a manual process. Help guide the user through this if they want it.
|
|
@@ -9,7 +9,7 @@ Secrets and config let you parameterize values that services need. Use them to a
|
|
|
9
9
|
|
|
10
10
|
## Secrets
|
|
11
11
|
|
|
12
|
-
Declare secrets that your application needs
|
|
12
|
+
Declare secrets that your application needs in `specific.hcl`:
|
|
13
13
|
|
|
14
14
|
```hcl
|
|
15
15
|
secret "stripe_api_key" {}
|
|
@@ -40,17 +40,18 @@ service "api" {
|
|
|
40
40
|
|
|
41
41
|
### Setting secret values
|
|
42
42
|
|
|
43
|
-
For local development
|
|
43
|
+
For local development, add secrets to the `secrets` block in `specific.local`:
|
|
44
44
|
|
|
45
|
-
```
|
|
46
|
-
specific
|
|
45
|
+
```hcl
|
|
46
|
+
# specific.local
|
|
47
|
+
secrets {
|
|
48
|
+
stripe_api_key = "sk_test_..."
|
|
49
|
+
}
|
|
47
50
|
```
|
|
48
51
|
|
|
49
|
-
This prompts for the value interactively and stores it in `specific.secrets`. Production secrets are configured separately during deployment.
|
|
50
|
-
|
|
51
52
|
### Generated vs manual secrets
|
|
52
53
|
|
|
53
|
-
- **Manual secrets** (no `generated` flag) - Must be set
|
|
54
|
+
- **Manual secrets** (no `generated` flag) - Must be set in `specific.local`. Error on startup if missing.
|
|
54
55
|
- **Generated secrets** (`generated = true`) - Auto-created on first run if not set. You can still override manually.
|
|
55
56
|
|
|
56
57
|
## Config
|
|
@@ -80,9 +81,20 @@ service "api" {
|
|
|
80
81
|
|
|
81
82
|
- `default` - Default value used if not overridden by an environment.
|
|
82
83
|
|
|
84
|
+
### Setting config values locally
|
|
85
|
+
|
|
86
|
+
For local development, you can override config defaults in the `config` block of `specific.local`:
|
|
87
|
+
|
|
88
|
+
```hcl
|
|
89
|
+
# specific.local
|
|
90
|
+
config {
|
|
91
|
+
log_level = "debug"
|
|
92
|
+
}
|
|
93
|
+
```
|
|
94
|
+
|
|
83
95
|
### Environment overrides
|
|
84
96
|
|
|
85
|
-
Override config values per environment
|
|
97
|
+
Override config values per environment in `specific.hcl`:
|
|
86
98
|
|
|
87
99
|
```hcl
|
|
88
100
|
config "log_level" {
|
|
@@ -102,9 +114,28 @@ environment "staging" {
|
|
|
102
114
|
}
|
|
103
115
|
```
|
|
104
116
|
|
|
117
|
+
## Local values file
|
|
118
|
+
|
|
119
|
+
For local development, secrets and config values are stored in `specific.local` (gitignored). The user does not have to fill this out manually. When running, `specific dev`, they will be asked for any missing secrets and config values. The file. This file uses HCL format with separate blocks for secrets and configs:
|
|
120
|
+
|
|
121
|
+
```hcl
|
|
122
|
+
# specific.local
|
|
123
|
+
secrets {
|
|
124
|
+
stripe_api_key = "sk_test_..."
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
config {
|
|
128
|
+
log_level = "debug"
|
|
129
|
+
}
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
This file is automatically gitignored and not included in deployments. Production secrets are configured separately during deployment.
|
|
133
|
+
|
|
105
134
|
## Example
|
|
106
135
|
|
|
107
136
|
```hcl
|
|
137
|
+
# specific.hcl
|
|
138
|
+
|
|
108
139
|
# External API key - must be set manually, sensitive
|
|
109
140
|
secret "stripe_api_key" {}
|
|
110
141
|
|
|
@@ -139,3 +170,16 @@ environment "production" {
|
|
|
139
170
|
}
|
|
140
171
|
}
|
|
141
172
|
```
|
|
173
|
+
|
|
174
|
+
And the corresponding local values file:
|
|
175
|
+
|
|
176
|
+
```hcl
|
|
177
|
+
# specific.local (gitignored)
|
|
178
|
+
secrets {
|
|
179
|
+
stripe_api_key = "sk_test_..."
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
config {
|
|
183
|
+
log_level = "debug"
|
|
184
|
+
}
|
|
185
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@specific.dev/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.44",
|
|
4
4
|
"description": "CLI for Specific infrastructure-as-code",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/cli.js",
|
|
@@ -34,7 +34,9 @@
|
|
|
34
34
|
"node": ">=18"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
+
"@specific/config": "file:../config",
|
|
37
38
|
"chokidar": "^5.0.0",
|
|
39
|
+
"hcl2-json-parser": "^1.0.1",
|
|
38
40
|
"commander": "^14.0.2",
|
|
39
41
|
"http-proxy": "^1.18.1",
|
|
40
42
|
"ink": "^6.5.1",
|
|
@@ -42,14 +44,20 @@
|
|
|
42
44
|
"node-forge": "^1.3.1",
|
|
43
45
|
"open": "^11.0.0",
|
|
44
46
|
"posthog-node": "^5.24.1",
|
|
45
|
-
"react": "^19.
|
|
47
|
+
"react": "^19.0.0",
|
|
46
48
|
"s3rver": "^3.7.1",
|
|
47
49
|
"tar-vern": "^1.3.0"
|
|
48
50
|
},
|
|
49
51
|
"devDependencies": {
|
|
50
52
|
"@types/http-proxy": "^1.17.17",
|
|
53
|
+
"@types/node": "^25.0.1",
|
|
51
54
|
"@types/node-forge": "^1.3.11",
|
|
52
55
|
"@types/react": "^19.2.7",
|
|
53
|
-
"esbuild": "^0.24.0"
|
|
56
|
+
"esbuild": "^0.24.0",
|
|
57
|
+
"tsx": "^4.21.0",
|
|
58
|
+
"typescript": "^5.9.3"
|
|
59
|
+
},
|
|
60
|
+
"pnpm": {
|
|
61
|
+
"onlyBuiltDependencies": ["esbuild"]
|
|
54
62
|
}
|
|
55
|
-
}
|
|
63
|
+
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,75254,e=>{"use strict";var t=e.i(71645);let r=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},n=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim();var o={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"};let i=(0,t.forwardRef)(({color:e="currentColor",size:r=24,strokeWidth:i=2,absoluteStrokeWidth:a,className:l="",children:s,iconNode:c,...u},d)=>(0,t.createElement)("svg",{ref:d,...o,width:r,height:r,stroke:e,strokeWidth:a?24*Number(i)/Number(r):i,className:n("lucide",l),...!s&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(u)&&{"aria-hidden":"true"},...u},[...c.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(s)?s:[s]])),a=(e,o)=>{let a=(0,t.forwardRef)(({className:a,...l},s)=>(0,t.createElement)(i,{ref:s,iconNode:o,className:n(`lucide-${r(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,a),...l}));return a.displayName=r(e),a};e.s(["default",()=>a],75254)},7670,e=>{"use strict";function t(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=function e(t){var r,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(r=0;r<i;r++)t[r]&&(n=e(t[r]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}(e))&&(n&&(n+=" "),n+=t);return n}e.s(["clsx",()=>t])},19056,e=>{"use strict";let t=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),r=[],n=(e,t,r)=>{if(0==e.length-t)return r.classGroupId;let o=e[t],i=r.nextPart.get(o);if(i){let r=n(e,t+1,i);if(r)return r}let a=r.validators;if(null===a)return;let l=0===t?e.join("-"):e.slice(t).join("-"),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(l))return t.classGroupId}},o=(e,r)=>{let n=t();for(let t in e)i(e[t],n,t,r);return n},i=(e,t,r,n)=>{let o=e.length;for(let i=0;i<o;i++)a(e[i],t,r,n)},a=(e,t,r,n)=>{"string"==typeof e?l(e,t,r):"function"==typeof e?s(e,t,r,n):c(e,t,r,n)},l=(e,t,r)=>{(""===e?t:u(t,e)).classGroupId=r},s=(e,t,r,n)=>{d(e)?i(e(n),t,r,n):(null===t.validators&&(t.validators=[]),t.validators.push({classGroupId:r,validator:e}))},c=(e,t,r,n)=>{let o=Object.entries(e),a=o.length;for(let e=0;e<a;e++){let[a,l]=o[e];i(l,u(t,a),r,n)}},u=(e,r)=>{let n=e,o=r.split("-"),i=o.length;for(let e=0;e<i;e++){let r=o[e],i=n.nextPart.get(r);i||(i=t(),n.nextPart.set(r,i)),n=i}return n},d=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,f=[],p=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),m=/\s+/,h=e=>{let t;if("string"==typeof e)return e;let r="";for(let n=0;n<e.length;n++)e[n]&&(t=h(e[n]))&&(r&&(r+=" "),r+=t);return r},g=[],b=e=>{let t=t=>t[e]||g;return t.isThemeGetter=!0,t},v=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,y=/^\((?:(\w[\w-]*):)?(.+)\)$/i,x=/^\d+\/\d+$/,w=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,E=/\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$/,k=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,C=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,j=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,R=e=>x.test(e),N=e=>!!e&&!Number.isNaN(Number(e)),S=e=>!!e&&Number.isInteger(Number(e)),O=e=>e.endsWith("%")&&N(e.slice(0,-1)),P=e=>w.test(e),_=()=>!0,T=e=>E.test(e)&&!k.test(e),A=()=>!1,L=e=>C.test(e),D=e=>j.test(e),M=e=>!$(e)&&!U(e),z=e=>q(e,et,A),$=e=>v.test(e),I=e=>q(e,er,T),W=e=>q(e,en,N),F=e=>q(e,J,A),V=e=>q(e,ee,D),B=e=>q(e,ei,L),U=e=>y.test(e),H=e=>Q(e,er),K=e=>Q(e,eo),Z=e=>Q(e,J),G=e=>Q(e,et),X=e=>Q(e,ee),Y=e=>Q(e,ei,!0),q=(e,t,r)=>{let n=v.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},Q=(e,t,r=!1)=>{let n=y.exec(e);return!!n&&(n[1]?t(n[1]):r)},J=e=>"position"===e||"percentage"===e,ee=e=>"image"===e||"url"===e,et=e=>"length"===e||"size"===e||"bg-size"===e,er=e=>"length"===e,en=e=>"number"===e,eo=e=>"family-name"===e,ei=e=>"shadow"===e,ea=((e,...t)=>{let i,a,l,s,c=e=>{let t=a(e);if(t)return t;let r=((e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i}=t,a=[],l=e.trim().split(m),s="";for(let e=l.length-1;e>=0;e-=1){let t=l[e],{isExternal:c,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=r(t);if(c){s=t+(s.length>0?" "+s:s);continue}let m=!!p,h=n(m?f.substring(0,p):f);if(!h){if(!m||!(h=n(f))){s=t+(s.length>0?" "+s:s);continue}m=!1}let g=0===u.length?"":1===u.length?u[0]:i(u).join(":"),b=d?g+"!":g,v=b+h;if(a.indexOf(v)>-1)continue;a.push(v);let y=o(h,m);for(let e=0;e<y.length;++e){let t=y[e];a.push(b+t)}s=t+(s.length>0?" "+s:s)}return s})(e,i);return l(e,r),r};return s=u=>{var d;let m;return a=(i={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null),o=(o,i)=>{r[o]=i,++t>e&&(t=0,n=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=n[e])?(o(e,t),t):void 0},set(e,t){e in r?r[e]=t:o(e,t)}}})((d=t.reduce((e,t)=>t(e),e())).cacheSize),parseClassName:(e=>{let{prefix:t,experimentalParseClassName:r}=e,n=e=>{let t,r=[],n=0,o=0,i=0,a=e.length;for(let l=0;l<a;l++){let a=e[l];if(0===n&&0===o){if(":"===a){r.push(e.slice(i,l)),i=l+1;continue}if("/"===a){t=l;continue}}"["===a?n++:"]"===a?n--:"("===a?o++:")"===a&&o--}let l=0===r.length?e:e.slice(i),s=l,c=!1;return l.endsWith("!")?(s=l.slice(0,-1),c=!0):l.startsWith("!")&&(s=l.slice(1),c=!0),p(r,c,s,t&&t>i?t-i:void 0)};if(t){let e=t+":",r=n;n=t=>t.startsWith(e)?r(t.slice(e.length)):p(f,!1,t,void 0,!0)}if(r){let e=n;n=t=>r({className:t,parseClassName:e})}return n})(d),sortModifiers:(m=new Map,d.orderSensitiveModifiers.forEach((e,t)=>{m.set(e,1e6+t)}),e=>{let t=[],r=[];for(let n=0;n<e.length;n++){let o=e[n],i="["===o[0],a=m.has(o);i||a?(r.length>0&&(r.sort(),t.push(...r),r=[]),t.push(o)):r.push(o)}return r.length>0&&(r.sort(),t.push(...r)),t}),...(e=>{let t=(e=>{let{theme:t,classGroups:r}=e;return o(r,t)})(e),{conflictingClassGroups:i,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]")){var r;let t,n,o;return -1===(r=e).slice(1,-1).indexOf(":")?void 0:(n=(t=r.slice(1,-1)).indexOf(":"),(o=t.slice(0,n))?"arbitrary.."+o:void 0)}let o=e.split("-"),i=+(""===o[0]&&o.length>1);return n(o,i,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=a[e],n=i[e];if(t){if(n){let e=Array(n.length+t.length);for(let t=0;t<n.length;t++)e[t]=n[t];for(let r=0;r<t.length;r++)e[n.length+r]=t[r];return e}return t}return n||r}return i[e]||r}}})(d)}).cache.get,l=i.cache.set,s=c,c(u)},(...e)=>s(((...e)=>{let t,r,n=0,o="";for(;n<e.length;)(t=e[n++])&&(r=h(t))&&(o&&(o+=" "),o+=r);return o})(...e))})(()=>{let e=b("color"),t=b("font"),r=b("text"),n=b("font-weight"),o=b("tracking"),i=b("leading"),a=b("breakpoint"),l=b("container"),s=b("spacing"),c=b("radius"),u=b("shadow"),d=b("inset-shadow"),f=b("text-shadow"),p=b("drop-shadow"),m=b("blur"),h=b("perspective"),g=b("aspect"),v=b("ease"),y=b("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...w(),U,$],k=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto","contain","none"],j=()=>[U,$,s],T=()=>[R,"full","auto",...j()],A=()=>[S,"none","subgrid",U,$],L=()=>["auto",{span:["full",S,U,$]},S,U,$],D=()=>[S,"auto",U,$],q=()=>["auto","min","max","fr",U,$],Q=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],ee=()=>["auto",...j()],et=()=>[R,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...j()],er=()=>[e,U,$],en=()=>[...w(),Z,F,{position:[U,$]}],eo=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ei=()=>["auto","cover","contain",G,z,{size:[U,$]}],ea=()=>[O,H,I],el=()=>["","none","full",c,U,$],es=()=>["",N,H,I],ec=()=>["solid","dashed","dotted","double"],eu=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ed=()=>[N,O,Z,F],ef=()=>["","none",m,U,$],ep=()=>["none",N,U,$],em=()=>["none",N,U,$],eh=()=>[N,U,$],eg=()=>[R,"full",...j()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[P],breakpoint:[P],color:[_],container:[P],"drop-shadow":[P],ease:["in","out","in-out"],font:[M],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[P],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[P],shadow:[P],spacing:["px",N],text:[P],"text-shadow":[P],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",R,$,U,g]}],container:["container"],columns:[{columns:[N,$,U,l]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"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:E()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{start:T()}],end:[{end:T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:["visible","invisible","collapse"],z:[{z:[S,"auto",U,$]}],basis:[{basis:[R,"full","auto",l,...j()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[N,R,"auto","initial","none",$]}],grow:[{grow:["",N,U,$]}],shrink:[{shrink:["",N,U,$]}],order:[{order:[S,"first","last","none",U,$]}],"grid-cols":[{"grid-cols":A()}],"col-start-end":[{col:L()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":A()}],"row-start-end":[{row:L()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":q()}],"auto-rows":[{"auto-rows":q()}],gap:[{gap:j()}],"gap-x":[{"gap-x":j()}],"gap-y":[{"gap-y":j()}],"justify-content":[{justify:[...Q(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...Q()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":Q()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:j()}],px:[{px:j()}],py:[{py:j()}],ps:[{ps:j()}],pe:[{pe:j()}],pt:[{pt:j()}],pr:[{pr:j()}],pb:[{pb:j()}],pl:[{pl:j()}],m:[{m:ee()}],mx:[{mx:ee()}],my:[{my:ee()}],ms:[{ms:ee()}],me:[{me:ee()}],mt:[{mt:ee()}],mr:[{mr:ee()}],mb:[{mb:ee()}],ml:[{ml:ee()}],"space-x":[{"space-x":j()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":j()}],"space-y-reverse":["space-y-reverse"],size:[{size:et()}],w:[{w:[l,"screen",...et()]}],"min-w":[{"min-w":[l,"screen","none",...et()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[a]},...et()]}],h:[{h:["screen","lh",...et()]}],"min-h":[{"min-h":["screen","lh","none",...et()]}],"max-h":[{"max-h":["screen","lh",...et()]}],"font-size":[{text:["base",r,H,I]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,U,W]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",O,$]}],"font-family":[{font:[K,$,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,U,$]}],"line-clamp":[{"line-clamp":[N,"none",U,W]}],leading:[{leading:[i,...j()]}],"list-image":[{"list-image":["none",U,$]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",U,$]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:er()}],"text-color":[{text:er()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ec(),"wavy"]}],"text-decoration-thickness":[{decoration:[N,"from-font","auto",U,I]}],"text-decoration-color":[{decoration:er()}],"underline-offset":[{"underline-offset":[N,"auto",U,$]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",U,$]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",U,$]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:en()}],"bg-repeat":[{bg:eo()}],"bg-size":[{bg:ei()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},S,U,$],radial:["",U,$],conic:[S,U,$]},X,V]}],"bg-color":[{bg:er()}],"gradient-from-pos":[{from:ea()}],"gradient-via-pos":[{via:ea()}],"gradient-to-pos":[{to:ea()}],"gradient-from":[{from:er()}],"gradient-via":[{via:er()}],"gradient-to":[{to:er()}],rounded:[{rounded:el()}],"rounded-s":[{"rounded-s":el()}],"rounded-e":[{"rounded-e":el()}],"rounded-t":[{"rounded-t":el()}],"rounded-r":[{"rounded-r":el()}],"rounded-b":[{"rounded-b":el()}],"rounded-l":[{"rounded-l":el()}],"rounded-ss":[{"rounded-ss":el()}],"rounded-se":[{"rounded-se":el()}],"rounded-ee":[{"rounded-ee":el()}],"rounded-es":[{"rounded-es":el()}],"rounded-tl":[{"rounded-tl":el()}],"rounded-tr":[{"rounded-tr":el()}],"rounded-br":[{"rounded-br":el()}],"rounded-bl":[{"rounded-bl":el()}],"border-w":[{border:es()}],"border-w-x":[{"border-x":es()}],"border-w-y":[{"border-y":es()}],"border-w-s":[{"border-s":es()}],"border-w-e":[{"border-e":es()}],"border-w-t":[{"border-t":es()}],"border-w-r":[{"border-r":es()}],"border-w-b":[{"border-b":es()}],"border-w-l":[{"border-l":es()}],"divide-x":[{"divide-x":es()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":es()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ec(),"hidden","none"]}],"divide-style":[{divide:[...ec(),"hidden","none"]}],"border-color":[{border:er()}],"border-color-x":[{"border-x":er()}],"border-color-y":[{"border-y":er()}],"border-color-s":[{"border-s":er()}],"border-color-e":[{"border-e":er()}],"border-color-t":[{"border-t":er()}],"border-color-r":[{"border-r":er()}],"border-color-b":[{"border-b":er()}],"border-color-l":[{"border-l":er()}],"divide-color":[{divide:er()}],"outline-style":[{outline:[...ec(),"none","hidden"]}],"outline-offset":[{"outline-offset":[N,U,$]}],"outline-w":[{outline:["",N,H,I]}],"outline-color":[{outline:er()}],shadow:[{shadow:["","none",u,Y,B]}],"shadow-color":[{shadow:er()}],"inset-shadow":[{"inset-shadow":["none",d,Y,B]}],"inset-shadow-color":[{"inset-shadow":er()}],"ring-w":[{ring:es()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:er()}],"ring-offset-w":[{"ring-offset":[N,I]}],"ring-offset-color":[{"ring-offset":er()}],"inset-ring-w":[{"inset-ring":es()}],"inset-ring-color":[{"inset-ring":er()}],"text-shadow":[{"text-shadow":["none",f,Y,B]}],"text-shadow-color":[{"text-shadow":er()}],opacity:[{opacity:[N,U,$]}],"mix-blend":[{"mix-blend":[...eu(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":eu()}],"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":[N]}],"mask-image-linear-from-pos":[{"mask-linear-from":ed()}],"mask-image-linear-to-pos":[{"mask-linear-to":ed()}],"mask-image-linear-from-color":[{"mask-linear-from":er()}],"mask-image-linear-to-color":[{"mask-linear-to":er()}],"mask-image-t-from-pos":[{"mask-t-from":ed()}],"mask-image-t-to-pos":[{"mask-t-to":ed()}],"mask-image-t-from-color":[{"mask-t-from":er()}],"mask-image-t-to-color":[{"mask-t-to":er()}],"mask-image-r-from-pos":[{"mask-r-from":ed()}],"mask-image-r-to-pos":[{"mask-r-to":ed()}],"mask-image-r-from-color":[{"mask-r-from":er()}],"mask-image-r-to-color":[{"mask-r-to":er()}],"mask-image-b-from-pos":[{"mask-b-from":ed()}],"mask-image-b-to-pos":[{"mask-b-to":ed()}],"mask-image-b-from-color":[{"mask-b-from":er()}],"mask-image-b-to-color":[{"mask-b-to":er()}],"mask-image-l-from-pos":[{"mask-l-from":ed()}],"mask-image-l-to-pos":[{"mask-l-to":ed()}],"mask-image-l-from-color":[{"mask-l-from":er()}],"mask-image-l-to-color":[{"mask-l-to":er()}],"mask-image-x-from-pos":[{"mask-x-from":ed()}],"mask-image-x-to-pos":[{"mask-x-to":ed()}],"mask-image-x-from-color":[{"mask-x-from":er()}],"mask-image-x-to-color":[{"mask-x-to":er()}],"mask-image-y-from-pos":[{"mask-y-from":ed()}],"mask-image-y-to-pos":[{"mask-y-to":ed()}],"mask-image-y-from-color":[{"mask-y-from":er()}],"mask-image-y-to-color":[{"mask-y-to":er()}],"mask-image-radial":[{"mask-radial":[U,$]}],"mask-image-radial-from-pos":[{"mask-radial-from":ed()}],"mask-image-radial-to-pos":[{"mask-radial-to":ed()}],"mask-image-radial-from-color":[{"mask-radial-from":er()}],"mask-image-radial-to-color":[{"mask-radial-to":er()}],"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":w()}],"mask-image-conic-pos":[{"mask-conic":[N]}],"mask-image-conic-from-pos":[{"mask-conic-from":ed()}],"mask-image-conic-to-pos":[{"mask-conic-to":ed()}],"mask-image-conic-from-color":[{"mask-conic-from":er()}],"mask-image-conic-to-color":[{"mask-conic-to":er()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:en()}],"mask-repeat":[{mask:eo()}],"mask-size":[{mask:ei()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",U,$]}],filter:[{filter:["","none",U,$]}],blur:[{blur:ef()}],brightness:[{brightness:[N,U,$]}],contrast:[{contrast:[N,U,$]}],"drop-shadow":[{"drop-shadow":["","none",p,Y,B]}],"drop-shadow-color":[{"drop-shadow":er()}],grayscale:[{grayscale:["",N,U,$]}],"hue-rotate":[{"hue-rotate":[N,U,$]}],invert:[{invert:["",N,U,$]}],saturate:[{saturate:[N,U,$]}],sepia:[{sepia:["",N,U,$]}],"backdrop-filter":[{"backdrop-filter":["","none",U,$]}],"backdrop-blur":[{"backdrop-blur":ef()}],"backdrop-brightness":[{"backdrop-brightness":[N,U,$]}],"backdrop-contrast":[{"backdrop-contrast":[N,U,$]}],"backdrop-grayscale":[{"backdrop-grayscale":["",N,U,$]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[N,U,$]}],"backdrop-invert":[{"backdrop-invert":["",N,U,$]}],"backdrop-opacity":[{"backdrop-opacity":[N,U,$]}],"backdrop-saturate":[{"backdrop-saturate":[N,U,$]}],"backdrop-sepia":[{"backdrop-sepia":["",N,U,$]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":j()}],"border-spacing-x":[{"border-spacing-x":j()}],"border-spacing-y":[{"border-spacing-y":j()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",U,$]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[N,"initial",U,$]}],ease:[{ease:["linear","initial",v,U,$]}],delay:[{delay:[N,U,$]}],animate:[{animate:["none",y,U,$]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,U,$]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:ep()}],"rotate-x":[{"rotate-x":ep()}],"rotate-y":[{"rotate-y":ep()}],"rotate-z":[{"rotate-z":ep()}],scale:[{scale:em()}],"scale-x":[{"scale-x":em()}],"scale-y":[{"scale-y":em()}],"scale-z":[{"scale-z":em()}],"scale-3d":["scale-3d"],skew:[{skew:eh()}],"skew-x":[{"skew-x":eh()}],"skew-y":[{"skew-y":eh()}],transform:[{transform:[U,$,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:eg()}],"translate-x":[{"translate-x":eg()}],"translate-y":[{"translate-y":eg()}],"translate-z":[{"translate-z":eg()}],"translate-none":["translate-none"],accent:[{accent:er()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:er()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",U,$]}],"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":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",U,$]}],fill:[{fill:["none",...er()]}],"stroke-w":[{stroke:[N,H,I,W]}],stroke:[{stroke:["none",...er()]}],"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"]}});e.s(["twMerge",()=>ea])},91918,20783,e=>{"use strict";var t=e.i(71645);function r(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function n(...e){return t=>{let n=!1,o=e.map(e=>{let o=r(e,t);return n||"function"!=typeof o||(n=!0),o});if(n)return()=>{for(let t=0;t<o.length;t++){let n=o[t];"function"==typeof n?n():r(e[t],null)}}}}function o(...e){return t.useCallback(n(...e),e)}e.s(["composeRefs",()=>n,"useComposedRefs",()=>o],20783);var i=e.i(43476),a=Symbol.for("react.lazy"),l=t[" use ".trim().toString()];function s(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===a&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}function c(e){var r;let o,a=(r=e,(o=t.forwardRef((e,r)=>{let{children:o,...i}=e;if(s(o)&&"function"==typeof l&&(o=l(o._payload)),t.isValidElement(o)){var a;let e,l,s=(a=o,(l=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(l=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),c=function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(i,o.props);return o.type!==t.Fragment&&(c.ref=r?n(r,s):s),t.cloneElement(o,c)}return t.Children.count(o)>1?t.Children.only(null):null})).displayName=`${r}.SlotClone`,o),c=t.forwardRef((e,r)=>{let{children:n,...o}=e;s(n)&&"function"==typeof l&&(n=l(n._payload));let c=t.Children.toArray(n),u=c.find(f);if(u){let e=u.props.children,n=c.map(r=>r!==u?r:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,i.jsx)(a,{...o,ref:r,children:t.isValidElement(e)?t.cloneElement(e,void 0,n):null})}return(0,i.jsx)(a,{...o,ref:r,children:n})});return c.displayName=`${e}.Slot`,c}var u=c("Slot"),d=Symbol("radix.slottable");function f(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===d}e.s(["Slot",()=>u,"createSlot",()=>c],91918)},25913,e=>{"use strict";var t=e.i(7670);let r=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,n=t.clsx;e.s(["cva",0,(e,t)=>o=>{var i;if((null==t?void 0:t.variants)==null)return n(e,null==o?void 0:o.class,null==o?void 0:o.className);let{variants:a,defaultVariants:l}=t,s=Object.keys(a).map(e=>{let t=null==o?void 0:o[e],n=null==l?void 0:l[e];if(null===t)return null;let i=r(t)||r(n);return a[e][i]}),c=o&&Object.entries(o).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return n(e,s,null==t||null==(i=t.compoundVariants)?void 0:i.reduce((e,t)=>{let{class:r,className:n,...o}=t;return Object.entries(o).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...l,...c}[t]):({...l,...c})[t]===r})?[...e,r,n]:e},[]),null==o?void 0:o.class,null==o?void 0:o.className)}])},98183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return s},searchParamsToUrlQuery:function(){return i},urlQueryToSearchParams:function(){return l}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});function i(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function a(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function l(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,a(e));else t.set(r,a(n));return t}function s(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},95057,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return l},formatWithValidation:function(){return c},urlObjectKeys:function(){return s}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let i=e.r(90809)._(e.r(98183)),a=/https?|ftp|gopher|file/;function l(e){let{auth:t,hostname:r}=e,n=e.protocol||"",o=e.pathname||"",l=e.hash||"",s=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),s&&"object"==typeof s&&(s=String(i.urlQueryToSearchParams(s)));let u=e.search||s&&`?${s}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||a.test(n))&&!1!==c?(c="//"+(c||""),o&&"/"!==o[0]&&(o="/"+o)):c||(c=""),l&&"#"!==l[0]&&(l="#"+l),u&&"?"!==u[0]&&(u="?"+u),o=o.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${o}${u}${l}`}let s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return l(e)}},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=e.r(71645);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=i(e,n)),t&&(o.current=i(t,n))},[e,t])}function i(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18967,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return b},MiddlewareNotFoundError:function(){return w},MissingStaticPage:function(){return x},NormalizeError:function(){return v},PageNotFoundError:function(){return y},SP:function(){return h},ST:function(){return g},WEB_VITALS:function(){return i},execOnce:function(){return a},getDisplayName:function(){return d},getLocationOrigin:function(){return c},getURL:function(){return u},isAbsoluteUrl:function(){return s},isResSent:function(){return f},loadGetInitialProps:function(){return m},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return E}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let i=["CLS","FCP","FID","INP","LCP","TTFB"];function a(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let l=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,s=e=>l.test(e);function c(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function u(){let{href:e}=window.location,t=c();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function m(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await m(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let h="u">typeof performance,g=h&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class b extends Error{}class v extends Error{}class y extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class x extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class w extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function E(e){return JSON.stringify({message:e.message,stack:e.stack})}},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return i}});let n=e.r(18967),o=e.r(52817);function i(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},84508,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},22016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return b},useLinkStatus:function(){return y}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let i=e.r(90809),a=e.r(43476),l=i._(e.r(71645)),s=e.r(95057),c=e.r(8372),u=e.r(18581),d=e.r(18967),f=e.r(5550);e.r(33525);let p=e.r(91949),m=e.r(73668),h=e.r(9396);function g(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}function b(t){var r;let n,o,i,[s,b]=(0,l.useOptimistic)(p.IDLE_LINK_STATUS),y=(0,l.useRef)(null),{href:x,as:w,children:E,prefetch:k=null,passHref:C,replace:j,shallow:R,scroll:N,onClick:S,onMouseEnter:O,onTouchStart:P,legacyBehavior:_=!1,onNavigate:T,ref:A,unstable_dynamicOnHover:L,...D}=t;n=E,_&&("string"==typeof n||"number"==typeof n)&&(n=(0,a.jsx)("a",{children:n}));let M=l.default.useContext(c.AppRouterContext),z=!1!==k,$=!1!==k?null===(r=k)||"auto"===r?h.FetchStrategy.PPR:h.FetchStrategy.Full:h.FetchStrategy.PPR,{href:I,as:W}=l.default.useMemo(()=>{let e=g(x);return{href:e,as:w?g(w):e}},[x,w]);if(_){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});o=l.default.Children.only(n)}let F=_?o&&"object"==typeof o&&o.ref:A,V=l.default.useCallback(e=>(null!==M&&(y.current=(0,p.mountLinkInstance)(e,I,M,$,z,b)),()=>{y.current&&((0,p.unmountLinkForCurrentNavigation)(y.current),y.current=null),(0,p.unmountPrefetchableInstance)(e)}),[z,I,M,$,b]),B={ref:(0,u.useMergedRef)(V,F),onClick(t){_||"function"!=typeof S||S(t),_&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(t),!M||t.defaultPrevented||function(t,r,n,o,i,a,s){if("u">typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){i&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),s){let e=!1;if(s({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(99781);l.default.startTransition(()=>{d(n||r,i?"replace":"push",a??!0,o.current)})}}(t,I,W,y,j,N,T)},onMouseEnter(e){_||"function"!=typeof O||O(e),_&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),M&&z&&(0,p.onNavigationIntent)(e.currentTarget,!0===L)},onTouchStart:function(e){_||"function"!=typeof P||P(e),_&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),M&&z&&(0,p.onNavigationIntent)(e.currentTarget,!0===L)}};return(0,d.isAbsoluteUrl)(W)?B.href=W:_&&!C&&("a"!==o.type||"href"in o.props)||(B.href=(0,f.addBasePath)(W)),i=_?l.default.cloneElement(o,B):(0,a.jsx)("a",{...D,...B,children:n}),(0,a.jsx)(v.Provider,{value:s,children:i})}e.r(84508);let v=(0,l.createContext)(p.IDLE_LINK_STATUS),y=()=>(0,l.useContext)(v);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},78094,58041,e=>{"use strict";var t=e.i(75254);let r=(0,t.default)("network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);e.s(["Network",()=>r],78094);let n=(0,t.default)("database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);e.s(["Database",()=>n],58041)},35044,96099,e=>{"use strict";let t=(0,e.i(75254).default)("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);e.s(["PanelLeftIcon",()=>t],35044);var r=e.i(71645);function n(){let[e,t]=r.useState(void 0);return r.useEffect(()=>{let e=window.matchMedia("(max-width: 767px)"),r=()=>{t(window.innerWidth<768)};return e.addEventListener("change",r),t(window.innerWidth<768),()=>e.removeEventListener("change",r)},[]),!!e}e.s(["useIsMobile",()=>n],96099)},94519,84220,35014,e=>{"use strict";let t,r,n,o;var i,a,l,s,c,u,d,f,p,m=e.i(43476),h=e.i(22016),g=e.i(78094),b=e.i(58041),v=e.i(71645),y=e.i(91918),x=e.i(25913);e.i(35044);var w=e.i(96099),E=e.i(7670),k=e.i(19056);function C(...e){return(0,k.twMerge)((0,E.clsx)(e))}(0,x.cva)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});var j=e.i(74080),R=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,y.createSlot)(`Primitive.${t}`),n=v.forwardRef((e,n)=>{let{asChild:o,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,m.jsx)(o?r:t,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),N="horizontal",S=["horizontal","vertical"];function O(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}v.forwardRef((e,t)=>{var r;let{decorative:n,orientation:o=N,...i}=e,a=(r=o,S.includes(r))?o:N;return(0,m.jsx)(R.div,{"data-orientation":a,...n?{role:"none"}:{"aria-orientation":"vertical"===a?a:void 0,role:"separator"},...i,ref:t})}).displayName="Separator","u">typeof window&&window.document&&window.document.createElement;var P=e.i(20783),_=globalThis?.document?v.useLayoutEffect:()=>{},T=v[" useId ".trim().toString()]||(()=>void 0),A=0;function L(e){let[t,r]=v.useState(T());return _(()=>{e||r(e=>e??String(A++))},[e]),e||(t?`radix-${t}`:"")}v[" useEffectEvent ".trim().toString()],v[" useInsertionEffect ".trim().toString()];var D=v[" useInsertionEffect ".trim().toString()]||_;function M({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){let[o,i,a]=function({defaultProp:e,onChange:t}){let[r,n]=v.useState(e),o=v.useRef(r),i=v.useRef(t);return D(()=>{i.current=t},[t]),v.useEffect(()=>{o.current!==r&&(i.current?.(r),o.current=r)},[r,o]),[r,n,i]}({defaultProp:t,onChange:r}),l=void 0!==e,s=l?e:o;{let t=v.useRef(void 0!==e);v.useEffect(()=>{let e=t.current;if(e!==l){let t=l?"controlled":"uncontrolled";console.warn(`${n} is changing from ${e?"controlled":"uncontrolled"} to ${t}. 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.`)}t.current=l},[l,n])}return[s,v.useCallback(t=>{if(l){let r="function"==typeof t?t(e):t;r!==e&&a.current?.(r)}else i(t)},[l,e,i,a])]}Symbol("RADIX:SYNC_STATE");var z=Symbol("radix.slottable");function $(e){return v.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===z}var I=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{var r,n;let o,i,a,l=(n=r=`Primitive.${t}`,(o=v.forwardRef((e,t)=>{let{children:r,...n}=e;if(v.isValidElement(r)){var o;let e,i,a=(o=r,(i=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(i=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),l=function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==v.Fragment&&(l.ref=t?(0,P.composeRefs)(t,a):a),v.cloneElement(r,l)}return v.Children.count(r)>1?v.Children.only(null):null})).displayName=`${n}.SlotClone`,i=o,(a=v.forwardRef((e,t)=>{let{children:r,...n}=e,o=v.Children.toArray(r),a=o.find($);if(a){let e=a.props.children,r=o.map(t=>t!==a?t:v.Children.count(e)>1?v.Children.only(null):v.isValidElement(e)?e.props.children:null);return(0,m.jsx)(i,{...n,ref:t,children:v.isValidElement(e)?v.cloneElement(e,void 0,r):null})}return(0,m.jsx)(i,{...n,ref:t,children:r})})).displayName=`${r}.Slot`,a),s=v.forwardRef((e,r)=>{let{asChild:n,...o}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,m.jsx)(n?l:t,{...o,ref:r})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function W(e){let t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...e)=>t.current?.(...e),[])}var F="dismissableLayer.update",V=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),B=v.forwardRef((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:l,...s}=e,c=v.useContext(V),[u,d]=v.useState(null),p=u?.ownerDocument??globalThis?.document,[,h]=v.useState({}),g=(0,P.useComposedRefs)(t,e=>d(e)),b=Array.from(c.layers),[y]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),x=b.indexOf(y),w=u?b.indexOf(u):-1,E=c.layersWithOutsidePointerEventsDisabled.size>0,k=w>=x,C=function(e,t=globalThis?.document){let r=W(e),n=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{let e=e=>{if(e.target&&!n.current){let n=function(){H("dismissableLayer.pointerDownOutside",r,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=n,t.addEventListener("click",o.current,{once:!0})):n()}else t.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}(e=>{let t=e.target,r=[...c.branches].some(e=>e.contains(t));k&&!r&&(o?.(e),a?.(e),e.defaultPrevented||l?.())},p),j=function(e,t=globalThis?.document){let r=W(e),n=v.useRef(!1);return v.useEffect(()=>{let e=e=>{e.target&&!n.current&&H("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{let t=e.target;![...c.branches].some(e=>e.contains(t))&&(i?.(e),a?.(e),e.defaultPrevented||l?.())},p);return!function(e,t=globalThis?.document){let r=W(e);v.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{w===c.layers.size-1&&(n?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))},p),v.useEffect(()=>{if(u)return r&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(f=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),U(),()=>{r&&1===c.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=f)}},[u,p,r,c]),v.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),U())},[u,c]),v.useEffect(()=>{let e=()=>h({});return document.addEventListener(F,e),()=>document.removeEventListener(F,e)},[]),(0,m.jsx)(I.div,{...s,ref:g,style:{pointerEvents:E?k?"auto":"none":void 0,...e.style},onFocusCapture:O(e.onFocusCapture,j.onFocusCapture),onBlurCapture:O(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:O(e.onPointerDownCapture,C.onPointerDownCapture)})});function U(){let e=new CustomEvent(F);document.dispatchEvent(e)}function H(e,t,r,{discrete:n}){let o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});if(t&&o.addEventListener(e,t,{once:!0}),n)o&&j.flushSync(()=>o.dispatchEvent(i));else o.dispatchEvent(i)}B.displayName="DismissableLayer",v.forwardRef((e,t)=>{let r=v.useContext(V),n=v.useRef(null),o=(0,P.useComposedRefs)(t,n);return v.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,m.jsx)(I.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var K=Symbol("radix.slottable");function Z(e){return v.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===K}var G=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{var r,n;let o,i,a,l=(n=r=`Primitive.${t}`,(o=v.forwardRef((e,t)=>{let{children:r,...n}=e;if(v.isValidElement(r)){var o;let e,i,a=(o=r,(i=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(i=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),l=function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==v.Fragment&&(l.ref=t?(0,P.composeRefs)(t,a):a),v.cloneElement(r,l)}return v.Children.count(r)>1?v.Children.only(null):null})).displayName=`${n}.SlotClone`,i=o,(a=v.forwardRef((e,t)=>{let{children:r,...n}=e,o=v.Children.toArray(r),a=o.find(Z);if(a){let e=a.props.children,r=o.map(t=>t!==a?t:v.Children.count(e)>1?v.Children.only(null):v.isValidElement(e)?e.props.children:null);return(0,m.jsx)(i,{...n,ref:t,children:v.isValidElement(e)?v.cloneElement(e,void 0,r):null})}return(0,m.jsx)(i,{...n,ref:t,children:r})})).displayName=`${r}.Slot`,a),s=v.forwardRef((e,r)=>{let{asChild:n,...o}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,m.jsx)(n?l:t,{...o,ref:r})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),X="focusScope.autoFocusOnMount",Y="focusScope.autoFocusOnUnmount",q={bubbles:!1,cancelable:!0},Q=v.forwardRef((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[l,s]=v.useState(null),c=W(o),u=W(i),d=v.useRef(null),f=(0,P.useComposedRefs)(t,e=>s(e)),p=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(n){let e=function(e){if(p.paused||!l)return;let t=e.target;l.contains(t)?d.current=t:et(d.current,{select:!0})},t=function(e){if(p.paused||!l)return;let t=e.relatedTarget;null!==t&&(l.contains(t)||et(d.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&et(l)});return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[n,l,p.paused]),v.useEffect(()=>{if(l){er.add(p);let e=document.activeElement;if(!l.contains(e)){let t=new CustomEvent(X,q);l.addEventListener(X,c),l.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(et(n,{select:t}),document.activeElement!==r)return}(J(l).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&et(l))}return()=>{l.removeEventListener(X,c),setTimeout(()=>{let t=new CustomEvent(Y,q);l.addEventListener(Y,u),l.dispatchEvent(t),t.defaultPrevented||et(e??document.body,{select:!0}),l.removeEventListener(Y,u),er.remove(p)},0)}}},[l,c,u,p]);let h=v.useCallback(e=>{if(!r&&!n||p.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){var i;let t,n=e.currentTarget,[a,l]=[ee(t=J(i=n),i),ee(t.reverse(),i)];a&&l?e.shiftKey||o!==l?e.shiftKey&&o===a&&(e.preventDefault(),r&&et(l,{select:!0})):(e.preventDefault(),r&&et(a,{select:!0})):o===n&&e.preventDefault()}},[r,n,p.paused]);return(0,m.jsx)(G.div,{tabIndex:-1,...a,ref:f,onKeyDown:h})});function J(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function ee(e,t){for(let r of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function et(e,{select:t=!1}={}){if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}Q.displayName="FocusScope";var er=(o=[],{add(e){let t=o[0];e!==t&&t?.pause(),(o=en(o,e)).unshift(e)},remove(e){o=en(o,e),o[0]?.resume()}});function en(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}var eo=Symbol("radix.slottable");function ei(e){return v.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===eo}var ea=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{var r,n;let o,i,a,l=(n=r=`Primitive.${t}`,(o=v.forwardRef((e,t)=>{let{children:r,...n}=e;if(v.isValidElement(r)){var o;let e,i,a=(o=r,(i=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(i=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),l=function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==v.Fragment&&(l.ref=t?(0,P.composeRefs)(t,a):a),v.cloneElement(r,l)}return v.Children.count(r)>1?v.Children.only(null):null})).displayName=`${n}.SlotClone`,i=o,(a=v.forwardRef((e,t)=>{let{children:r,...n}=e,o=v.Children.toArray(r),a=o.find(ei);if(a){let e=a.props.children,r=o.map(t=>t!==a?t:v.Children.count(e)>1?v.Children.only(null):v.isValidElement(e)?e.props.children:null);return(0,m.jsx)(i,{...n,ref:t,children:v.isValidElement(e)?v.cloneElement(e,void 0,r):null})}return(0,m.jsx)(i,{...n,ref:t,children:r})})).displayName=`${r}.Slot`,a),s=v.forwardRef((e,r)=>{let{asChild:n,...o}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,m.jsx)(n?l:t,{...o,ref:r})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),el=v.forwardRef((e,t)=>{let{container:r,...n}=e,[o,i]=v.useState(!1);_(()=>i(!0),[]);let a=r||o&&globalThis?.document?.body;return a?j.default.createPortal((0,m.jsx)(ea.div,{...n,ref:t}),a):null});el.displayName="Portal";var es=e=>{var t;let r,n,{present:o,children:i}=e,a=function(e){var t,r;let[n,o]=v.useState(),i=v.useRef(null),a=v.useRef(e),l=v.useRef("none"),[s,c]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},v.useReducer((e,t)=>r[e][t]??e,t));return v.useEffect(()=>{let e=ec(i.current);l.current="mounted"===s?e:"none"},[s]),_(()=>{let t=i.current,r=a.current;if(r!==e){let n=l.current,o=ec(t);e?c("MOUNT"):"none"===o||t?.display==="none"?c("UNMOUNT"):r&&n!==o?c("ANIMATION_OUT"):c("UNMOUNT"),a.current=e}},[e,c]),_(()=>{if(n){let e,t=n.ownerDocument.defaultView??window,r=r=>{let o=ec(i.current).includes(CSS.escape(r.animationName));if(r.target===n&&o&&(c("ANIMATION_END"),!a.current)){let r=n.style.animationFillMode;n.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=r)})}},o=e=>{e.target===n&&(l.current=ec(i.current))};return n.addEventListener("animationstart",o),n.addEventListener("animationcancel",r),n.addEventListener("animationend",r),()=>{t.clearTimeout(e),n.removeEventListener("animationstart",o),n.removeEventListener("animationcancel",r),n.removeEventListener("animationend",r)}}c("ANIMATION_END")},[n,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:v.useCallback(e=>{i.current=e?getComputedStyle(e):null,o(e)},[])}}(o),l="function"==typeof i?i({present:a.isPresent}):v.Children.only(i),s=(0,P.useComposedRefs)(a.ref,(t=l,(n=(r=Object.getOwnPropertyDescriptor(t.props,"ref")?.get)&&"isReactWarning"in r&&r.isReactWarning)?t.ref:(n=(r=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in r&&r.isReactWarning)?t.props.ref:t.props.ref||t.ref));return"function"==typeof i||a.isPresent?v.cloneElement(l,{ref:s}):null};function ec(e){return e?.animationName||"none"}function eu(e){var t;let r,n=(t=e,(r=v.forwardRef((e,t)=>{let{children:r,...n}=e;if(v.isValidElement(r)){var o;let e,i,a=(o=r,(i=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(i=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),l=function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==v.Fragment&&(l.ref=t?(0,P.composeRefs)(t,a):a),v.cloneElement(r,l)}return v.Children.count(r)>1?v.Children.only(null):null})).displayName=`${t}.SlotClone`,r),o=v.forwardRef((e,t)=>{let{children:r,...o}=e,i=v.Children.toArray(r),a=i.find(ef);if(a){let e=a.props.children,r=i.map(t=>t!==a?t:v.Children.count(e)>1?v.Children.only(null):v.isValidElement(e)?e.props.children:null);return(0,m.jsx)(n,{...o,ref:t,children:v.isValidElement(e)?v.cloneElement(e,void 0,r):null})}return(0,m.jsx)(n,{...o,ref:t,children:r})});return o.displayName=`${e}.Slot`,o}es.displayName="Presence";var ed=Symbol("radix.slottable");function ef(e){return v.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===ed}var ep=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=eu(`Primitive.${t}`),n=v.forwardRef((e,n)=>{let{asChild:o,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,m.jsx)(o?r:t,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),em=0;function eh(){let 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 eg=function(){return(eg=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function eb(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}var ev=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),ey="width-before-scroll-bar";function ex(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var ew="u">typeof window?v.useLayoutEffect:v.useEffect,eE=new WeakMap,ek=(void 0===i&&(i={}),(void 0===a&&(a=function(e){return e}),l=[],s=!1,c={read:function(){if(s)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return l.length?l[l.length-1]:null},useMedium:function(e){var t=a(e,s);return l.push(t),function(){l=l.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(s=!0;l.length;){var t=l;l=[],t.forEach(e)}l={push:function(t){return e(t)},filter:function(){return l}}},assignMedium:function(e){s=!0;var t=[];if(l.length){var r=l;l=[],r.forEach(e),t=l}var n=function(){var r=t;t=[],r.forEach(e)},o=function(){return Promise.resolve().then(n)};o(),l={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),l}}}}).options=eg({async:!0,ssr:!1},i),c),eC=function(){},ej=v.forwardRef(function(e,t){var r,n,o,i,a=v.useRef(null),l=v.useState({onScrollCapture:eC,onWheelCapture:eC,onTouchMoveCapture:eC}),s=l[0],c=l[1],u=e.forwardProps,d=e.children,f=e.className,p=e.removeScrollBar,m=e.enabled,h=e.shards,g=e.sideCar,b=e.noRelative,y=e.noIsolation,x=e.inert,w=e.allowPinchZoom,E=e.as,k=e.gapMode,C=eb(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=(r=[a,t],n=function(e){return r.forEach(function(t){return ex(t,e)})},(o=(0,v.useState)(function(){return{value:null,callback:n,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=n,i=o.facade,ew(function(){var e=eE.get(i);if(e){var t=new Set(e),n=new Set(r),o=i.current;t.forEach(function(e){n.has(e)||ex(e,null)}),n.forEach(function(e){t.has(e)||ex(e,o)})}eE.set(i,r)},[r]),i),R=eg(eg({},C),s);return v.createElement(v.Fragment,null,m&&v.createElement(g,{sideCar:ek,removeScrollBar:p,shards:h,noRelative:b,noIsolation:y,inert:x,setCallbacks:c,allowPinchZoom:!!w,lockRef:a,gapMode:k}),u?v.cloneElement(v.Children.only(d),eg(eg({},R),{ref:j})):v.createElement(void 0===E?"div":E,eg({},R,{className:f,ref:j}),d))});ej.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ej.classNames={fullWidth:ey,zeroRight:ev};var eR=function(e){var t=e.sideCar,r=eb(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return v.createElement(n,eg({},r))};eR.isSideCarExport=!0;var eN=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=p||("u">typeof __webpack_nonce__?__webpack_nonce__:void 0);return t&&e.setAttribute("nonce",t),e}())){var n,o;(n=t).styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},eS=function(){var e=eN();return function(t,r){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},eO=function(){var e=eS();return function(t){return e(t.styles,t.dynamic),null}},eP={left:0,top:0,right:0,gap:0},e_=function(e){return parseInt(e||"",10)||0},eT=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[e_(r),e_(n),e_(o)]},eA=function(e){if(void 0===e&&(e="margin"),"u"<typeof window)return eP;var t=eT(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},eL=eO(),eD="data-scroll-locked",eM=function(e,t,r,n){var o=e.left,i=e.top,a=e.right,l=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(l,"px ").concat(n,";\n }\n body[").concat(eD,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(l,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(ev," {\n right: ").concat(l,"px ").concat(n,";\n }\n \n .").concat(ey," {\n margin-right: ").concat(l,"px ").concat(n,";\n }\n \n .").concat(ev," .").concat(ev," {\n right: 0 ").concat(n,";\n }\n \n .").concat(ey," .").concat(ey," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(eD,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},ez=function(){var e=parseInt(document.body.getAttribute(eD)||"0",10);return isFinite(e)?e:0},e$=function(){v.useEffect(function(){return document.body.setAttribute(eD,(ez()+1).toString()),function(){var e=ez()-1;e<=0?document.body.removeAttribute(eD):document.body.setAttribute(eD,e.toString())}},[])},eI=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=void 0===n?"margin":n;e$();var i=v.useMemo(function(){return eA(o)},[o]);return v.createElement(eL,{styles:eM(i,!t,o,r?"":"!important")})},eW=!1;if("u">typeof window)try{var eF=Object.defineProperty({},"passive",{get:function(){return eW=!0,!0}});window.addEventListener("test",eF,eF),window.removeEventListener("test",eF,eF)}catch(e){eW=!1}var eV=!!eW&&{passive:!1},eB=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&(r.overflowY!==r.overflowX||"TEXTAREA"===e.tagName||"visible"!==r[t])},eU=function(e,t){var r=t.ownerDocument,n=t;do{if("u">typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),eH(e,n)){var o=eK(e,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==r.body)return!1},eH=function(e,t){return"v"===e?eB(t,"overflowY"):eB(t,"overflowX")},eK=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},eZ=function(e,t,r,n,o){var i,a=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),l=a*n,s=r.target,c=t.contains(s),u=!1,d=l>0,f=0,p=0;do{if(!s)break;var m=eK(e,s),h=m[0],g=m[1]-m[2]-a*h;(h||g)&&eH(e,s)&&(f+=g,p+=h);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!c&&s!==document.body||c&&(t.contains(s)||t===s))return d&&(o&&1>Math.abs(f)||!o&&l>f)?u=!0:!d&&(o&&1>Math.abs(p)||!o&&-l>p)&&(u=!0),u},eG=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eX=function(e){return[e.deltaX,e.deltaY]},eY=function(e){return e&&"current"in e?e.current:e},eq=0,eQ=[];let eJ=(u=function(e){var t=v.useRef([]),r=v.useRef([0,0]),n=v.useRef(),o=v.useState(eq++)[0],i=v.useState(eO)[0],a=v.useRef(e);v.useEffect(function(){a.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(eY),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=v.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=eG(e),l=r.current,s="deltaX"in e?e.deltaX:l[0]-i[0],c="deltaY"in e?e.deltaY:l[1]-i[1],u=e.target,d=Math.abs(s)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=eU(d,u);if(!m)return!0;if(m?o=d:(o="v"===d?"h":"v",m=eU(d,u)),!m)return!1;if(!n.current&&"changedTouches"in e&&(s||c)&&(n.current=o),!o)return!0;var h=n.current||o;return eZ(h,t,e,"h"===h?s:c,!0)},[]),s=v.useCallback(function(e){if(eQ.length&&eQ[eQ.length-1]===i){var r="deltaY"in e?eX(e):eG(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta,n[0]===r[0]&&n[1]===r[1])})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var o=(a.current.shards||[]).map(eY).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?l(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=v.useCallback(function(e,r,n,o){var i={name:e,delta:r,target:n,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),u=v.useCallback(function(e){r.current=eG(e),n.current=void 0},[]),d=v.useCallback(function(t){c(t.type,eX(t),t.target,l(t,e.lockRef.current))},[]),f=v.useCallback(function(t){c(t.type,eG(t),t.target,l(t,e.lockRef.current))},[]);v.useEffect(function(){return eQ.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",s,eV),document.addEventListener("touchmove",s,eV),document.addEventListener("touchstart",u,eV),function(){eQ=eQ.filter(function(e){return e!==i}),document.removeEventListener("wheel",s,eV),document.removeEventListener("touchmove",s,eV),document.removeEventListener("touchstart",u,eV)}},[]);var p=e.removeScrollBar,m=e.inert;return v.createElement(v.Fragment,null,m?v.createElement(i,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,p?v.createElement(eI,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},ek.useMedium(u),eR);var e0=v.forwardRef(function(e,t){return v.createElement(ej,eg({},e,{ref:t,sideCar:eJ}))});e0.classNames=ej.classNames;var e1=new WeakMap,e2=new WeakMap,e5={},e4=0,e3=function(e){return e&&(e.host||e3(e.parentNode))},e9=function(e,t,r,n){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=e3(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});e5[r]||(e5[r]=new WeakMap);var i=e5[r],a=[],l=new Set,s=new Set(o),c=function(e){!e||l.has(e)||(l.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){!e||s.has(e)||Array.prototype.forEach.call(e.children,function(e){if(l.has(e))u(e);else try{var t=e.getAttribute(n),o=null!==t&&"false"!==t,s=(e1.get(e)||0)+1,c=(i.get(e)||0)+1;e1.set(e,s),i.set(e,c),a.push(e),1===s&&o&&e2.set(e,!0),1===c&&e.setAttribute(r,"true"),o||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return u(t),l.clear(),e4++,function(){a.forEach(function(e){var t=e1.get(e)-1,o=i.get(e)-1;e1.set(e,t),i.set(e,o),t||(e2.has(e)||e.removeAttribute(n),e2.delete(e)),o||e.removeAttribute(r)}),--e4||(e1=new WeakMap,e1=new WeakMap,e2=new WeakMap,e5={})}},e8=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||("u"<typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),e9(n,o,r,"aria-hidden")):function(){return null}},e6="Dialog",[e7,te]=function(e,t=[]){let r=[],n=()=>{let t=r.map(e=>v.createContext(e));return function(r){let n=r?.[e]||t;return v.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return n.scopeName=e,[function(t,n){let o=v.createContext(n),i=r.length;r=[...r,n];let a=t=>{let{scope:r,children:n,...a}=t,l=r?.[e]?.[i]||o,s=v.useMemo(()=>a,Object.values(a));return(0,m.jsx)(l.Provider,{value:s,children:n})};return a.displayName=t+"Provider",[a,function(r,a){let l=a?.[e]?.[i]||o,s=v.useContext(l);if(s)return s;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(n,...t)]}(e6),[tt,tr]=e7(e6),tn=e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,l=v.useRef(null),s=v.useRef(null),[c,u]=M({prop:n,defaultProp:o??!1,onChange:i,caller:e6});return(0,m.jsx)(tt,{scope:t,triggerRef:l,contentRef:s,contentId:L(),titleId:L(),descriptionId:L(),open:c,onOpenChange:u,onOpenToggle:v.useCallback(()=>u(e=>!e),[u]),modal:a,children:r})};tn.displayName=e6;var to="DialogTrigger";v.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=tr(to,r),i=(0,P.useComposedRefs)(t,o.triggerRef);return(0,m.jsx)(ep.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":tC(o.open),...n,ref:i,onClick:O(e.onClick,o.onOpenToggle)})}).displayName=to;var ti="DialogPortal",[ta,tl]=e7(ti,{forceMount:void 0}),ts=e=>{let{__scopeDialog:t,forceMount:r,children:n,container:o}=e,i=tr(ti,t);return(0,m.jsx)(ta,{scope:t,forceMount:r,children:v.Children.map(n,e=>(0,m.jsx)(es,{present:r||i.open,children:(0,m.jsx)(el,{asChild:!0,container:o,children:e})}))})};ts.displayName=ti;var tc="DialogOverlay",tu=v.forwardRef((e,t)=>{let r=tl(tc,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=tr(tc,e.__scopeDialog);return i.modal?(0,m.jsx)(es,{present:n||i.open,children:(0,m.jsx)(tf,{...o,ref:t})}):null});tu.displayName=tc;var td=eu("DialogOverlay.RemoveScroll"),tf=v.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=tr(tc,r);return(0,m.jsx)(e0,{as:td,allowPinchZoom:!0,shards:[o.contentRef],children:(0,m.jsx)(ep.div,{"data-state":tC(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),tp="DialogContent",tm=v.forwardRef((e,t)=>{let r=tl(tp,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=tr(tp,e.__scopeDialog);return(0,m.jsx)(es,{present:n||i.open,children:i.modal?(0,m.jsx)(th,{...o,ref:t}):(0,m.jsx)(tg,{...o,ref:t})})});tm.displayName=tp;var th=v.forwardRef((e,t)=>{let r=tr(tp,e.__scopeDialog),n=v.useRef(null),o=(0,P.useComposedRefs)(t,r.contentRef,n);return v.useEffect(()=>{let e=n.current;if(e)return e8(e)},[]),(0,m.jsx)(tb,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:O(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:O(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:O(e.onFocusOutside,e=>e.preventDefault())})}),tg=v.forwardRef((e,t)=>{let r=tr(tp,e.__scopeDialog),n=v.useRef(!1),o=v.useRef(!1);return(0,m.jsx)(tb,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(n.current||r.triggerRef.current?.focus(),t.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let i=t.target;r.triggerRef.current?.contains(i)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),tb=v.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,l=tr(tp,r),s=v.useRef(null),c=(0,P.useComposedRefs)(t,s);return v.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??eh()),document.body.insertAdjacentElement("beforeend",e[1]??eh()),em++,()=>{1===em&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),em--}},[]),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(Q,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,m.jsx)(B,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":tC(l.open),...a,ref:c,onDismiss:()=>l.onOpenChange(!1)})}),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(tS,{titleId:l.titleId}),(0,m.jsx)(tO,{contentRef:s,descriptionId:l.descriptionId})]})]})}),tv="DialogTitle",ty=v.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=tr(tv,r);return(0,m.jsx)(ep.h2,{id:o.titleId,...n,ref:t})});ty.displayName=tv;var tx="DialogDescription",tw=v.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=tr(tx,r);return(0,m.jsx)(ep.p,{id:o.descriptionId,...n,ref:t})});tw.displayName=tx;var tE="DialogClose",tk=v.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=tr(tE,r);return(0,m.jsx)(ep.button,{type:"button",...n,ref:t,onClick:O(e.onClick,()=>o.onOpenChange(!1))})});function tC(e){return e?"open":"closed"}tk.displayName=tE;var tj="DialogTitleWarning",[tR,tN]=(d={contentName:tp,titleName:tv,docsSlug:"dialog"},t=v.createContext(d),(r=e=>{let{children:r,...n}=e,o=v.useMemo(()=>n,Object.values(n));return(0,m.jsx)(t.Provider,{value:o,children:r})}).displayName=tj+"Provider",[r,function(e){let r=v.useContext(t);if(r)return r;if(void 0!==d)return d;throw Error(`\`${e}\` must be used within \`${tj}\``)}]),tS=({titleId:e})=>{let t=tN(tj),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
2
|
-
|
|
3
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
4
|
-
|
|
5
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return v.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},tO=({contentRef:e,descriptionId:t})=>{let r=tN("DialogDescriptionWarning"),n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r.contentName}}.`;return v.useEffect(()=>{let r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null};let tP=(0,e.i(75254).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function t_({...e}){return(0,m.jsx)(tn,{"data-slot":"sheet",...e})}function tT({...e}){return(0,m.jsx)(ts,{"data-slot":"sheet-portal",...e})}function tA({className:e,...t}){return(0,m.jsx)(tu,{"data-slot":"sheet-overlay",className:C("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function tL({className:e,children:t,side:r="right",...n}){return(0,m.jsxs)(tT,{children:[(0,m.jsx)(tA,{}),(0,m.jsxs)(tm,{"data-slot":"sheet-content",className:C("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500","right"===r&&"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","left"===r&&"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","top"===r&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b","bottom"===r&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...n,children:[t,(0,m.jsxs)(tk,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[(0,m.jsx)(tP,{className:"size-4"}),(0,m.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function tD({className:e,...t}){return(0,m.jsx)("div",{"data-slot":"sheet-header",className:C("flex flex-col gap-1.5 p-4",e),...t})}function tM({className:e,...t}){return(0,m.jsx)(ty,{"data-slot":"sheet-title",className:C("text-foreground font-semibold",e),...t})}function tz({className:e,...t}){return(0,m.jsx)(tw,{"data-slot":"sheet-description",className:C("text-muted-foreground text-sm",e),...t})}let t$=["top","right","bottom","left"],tI=Math.min,tW=Math.max,tF=Math.round,tV=Math.floor,tB=e=>({x:e,y:e}),tU={left:"right",right:"left",bottom:"top",top:"bottom"},tH={start:"end",end:"start"};function tK(e,t){return"function"==typeof e?e(t):e}function tZ(e){return e.split("-")[0]}function tG(e){return e.split("-")[1]}function tX(e){return"x"===e?"y":"x"}function tY(e){return"y"===e?"height":"width"}let tq=new Set(["top","bottom"]);function tQ(e){return tq.has(tZ(e))?"y":"x"}function tJ(e){return e.replace(/start|end/g,e=>tH[e])}let t0=["left","right"],t1=["right","left"],t2=["top","bottom"],t5=["bottom","top"];function t4(e){return e.replace(/left|right|bottom|top/g,e=>tU[e])}function t3(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function t9(e){let{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function t8(e,t,r){let n,{reference:o,floating:i}=e,a=tQ(t),l=tX(tQ(t)),s=tY(l),c=tZ(t),u="y"===a,d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,p=o[s]/2-i[s]/2;switch(c){case"top":n={x:d,y:o.y-i.height};break;case"bottom":n={x:d,y:o.y+o.height};break;case"right":n={x:o.x+o.width,y:f};break;case"left":n={x:o.x-i.width,y:f};break;default:n={x:o.x,y:o.y}}switch(tG(t)){case"start":n[l]-=p*(r&&u?-1:1);break;case"end":n[l]+=p*(r&&u?-1:1)}return n}let t6=async(e,t,r)=>{let{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,l=i.filter(Boolean),s=await (null==a.isRTL?void 0:a.isRTL(t)),c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=t8(c,n,s),f=n,p={},m=0;for(let r=0;r<l.length;r++){let{name:i,fn:h}=l[r],{x:g,y:b,data:v,reset:y}=await h({x:u,y:d,initialPlacement:n,placement:f,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=b?b:d,p={...p,[i]:{...p[i],...v}},y&&m<=50&&(m++,"object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(c=!0===y.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):y.rects),{x:u,y:d}=t8(c,f,s)),r=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}};async function t7(e,t){var r;void 0===t&&(t={});let{x:n,y:o,platform:i,rects:a,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=tK(t,e),m=t3(p),h=l[f?"floating"===d?"reference":"floating":d],g=t9(await i.getClippingRect({element:null==(r=await (null==i.isElement?void 0:i.isElement(h)))||r?h:h.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:s})),b="floating"===d?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,v=await (null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),y=await (null==i.isElement?void 0:i.isElement(v))&&await (null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},x=t9(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:b,offsetParent:v,strategy:s}):b);return{top:(g.top-x.top+m.top)/y.y,bottom:(x.bottom-g.bottom+m.bottom)/y.y,left:(g.left-x.left+m.left)/y.x,right:(x.right-g.right+m.right)/y.x}}function re(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function rt(e){return t$.some(t=>e[t]>=0)}let rr=new Set(["left","top"]);async function rn(e,t){let{placement:r,platform:n,elements:o}=e,i=await (null==n.isRTL?void 0:n.isRTL(o.floating)),a=tZ(r),l=tG(r),s="y"===tQ(r),c=rr.has(a)?-1:1,u=i&&s?-1:1,d=tK(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&"number"==typeof m&&(p="end"===l?-1*m:m),s?{x:p*u,y:f*c}:{x:f*c,y:p*u}}function ro(){return"u">typeof window}function ri(e){return rs(e)?(e.nodeName||"").toLowerCase():"#document"}function ra(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function rl(e){var t;return null==(t=(rs(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function rs(e){return!!ro()&&(e instanceof Node||e instanceof ra(e).Node)}function rc(e){return!!ro()&&(e instanceof Element||e instanceof ra(e).Element)}function ru(e){return!!ro()&&(e instanceof HTMLElement||e instanceof ra(e).HTMLElement)}function rd(e){return!(!ro()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof ra(e).ShadowRoot)}let rf=new Set(["inline","contents"]);function rp(e){let{overflow:t,overflowX:r,overflowY:n,display:o}=rC(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!rf.has(o)}let rm=new Set(["table","td","th"]),rh=[":popover-open",":modal"];function rg(e){return rh.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let rb=["transform","translate","scale","rotate","perspective"],rv=["transform","translate","scale","rotate","perspective","filter"],ry=["paint","layout","strict","content"];function rx(e){let t=rw(),r=rc(e)?rC(e):e;return rb.some(e=>!!r[e]&&"none"!==r[e])||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||rv.some(e=>(r.willChange||"").includes(e))||ry.some(e=>(r.contain||"").includes(e))}function rw(){return!("u"<typeof CSS)&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let rE=new Set(["html","body","#document"]);function rk(e){return rE.has(ri(e))}function rC(e){return ra(e).getComputedStyle(e)}function rj(e){return rc(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function rR(e){if("html"===ri(e))return e;let t=e.assignedSlot||e.parentNode||rd(e)&&e.host||rl(e);return rd(t)?t.host:t}function rN(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let o=function e(t){let r=rR(t);return rk(r)?t.ownerDocument?t.ownerDocument.body:t.body:ru(r)&&rp(r)?r:e(r)}(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),a=ra(o);if(i){let e=rS(a);return t.concat(a,a.visualViewport||[],rp(o)?o:[],e&&r?rN(e):[])}return t.concat(o,rN(o,[],r))}function rS(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function rO(e){let t=rC(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,o=ru(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,l=tF(r)!==i||tF(n)!==a;return l&&(r=i,n=a),{width:r,height:n,$:l}}function rP(e){return rc(e)?e:e.contextElement}function r_(e){let t=rP(e);if(!ru(t))return tB(1);let r=t.getBoundingClientRect(),{width:n,height:o,$:i}=rO(t),a=(i?tF(r.width):r.width)/n,l=(i?tF(r.height):r.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}let rT=tB(0);function rA(e){let t=ra(e);return rw()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:rT}function rL(e,t,r,n){var o;void 0===t&&(t=!1),void 0===r&&(r=!1);let i=e.getBoundingClientRect(),a=rP(e),l=tB(1);t&&(n?rc(n)&&(l=r_(n)):l=r_(e));let s=(void 0===(o=r)&&(o=!1),n&&(!o||n===ra(a))&&o)?rA(a):tB(0),c=(i.left+s.x)/l.x,u=(i.top+s.y)/l.y,d=i.width/l.x,f=i.height/l.y;if(a){let e=ra(a),t=n&&rc(n)?ra(n):n,r=e,o=rS(r);for(;o&&n&&t!==r;){let e=r_(o),t=o.getBoundingClientRect(),n=rC(o),i=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;c*=e.x,u*=e.y,d*=e.x,f*=e.y,c+=i,u+=a,o=rS(r=ra(o))}}return t9({width:d,height:f,x:c,y:u})}function rD(e,t){let r=rj(e).scrollLeft;return t?t.left+r:rL(rl(e)).left+r}function rM(e,t){let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-rD(e,r),y:r.top+t.scrollTop}}let rz=new Set(["absolute","fixed"]);function r$(e,t,r){var n;let o;if("viewport"===t)o=function(e,t){let r=ra(e),n=rl(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;let e=rw();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}let c=rD(n);if(c<=0){let e=n.ownerDocument,t=e.body,r=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,a=Math.abs(n.clientWidth-t.clientWidth-o);a<=25&&(i-=a)}else c<=25&&(i+=c);return{width:i,height:a,x:l,y:s}}(e,r);else if("document"===t){let t,r,i,a,l,s,c;n=rl(e),t=rl(n),r=rj(n),i=n.ownerDocument.body,a=tW(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),l=tW(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),s=-r.scrollLeft+rD(n),c=-r.scrollTop,"rtl"===rC(i).direction&&(s+=tW(t.clientWidth,i.clientWidth)-a),o={width:a,height:l,x:s,y:c}}else if(rc(t)){let e,n,i,a,l,s;n=(e=rL(t,!0,"fixed"===r)).top+t.clientTop,i=e.left+t.clientLeft,a=ru(t)?r_(t):tB(1),l=t.clientWidth*a.x,s=t.clientHeight*a.y,o={width:l,height:s,x:i*a.x,y:n*a.y}}else{let r=rA(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return t9(o)}function rI(e){return"static"===rC(e).position}function rW(e,t){if(!ru(e)||"fixed"===rC(e).position)return null;if(t)return t(e);let r=e.offsetParent;return rl(e)===r&&(r=r.ownerDocument.body),r}function rF(e,t){var r;let n=ra(e);if(rg(e))return n;if(!ru(e)){let t=rR(e);for(;t&&!rk(t);){if(rc(t)&&!rI(t))return t;t=rR(t)}return n}let o=rW(e,t);for(;o&&(r=o,rm.has(ri(r)))&&rI(o);)o=rW(o,t);return o&&rk(o)&&rI(o)&&!rx(o)?n:o||function(e){let t=rR(e);for(;ru(t)&&!rk(t);){if(rx(t))return t;if(rg(t))break;t=rR(t)}return null}(e)||n}let rV=async function(e){let t=this.getOffsetParent||rF,r=this.getDimensions,n=await r(e.floating);return{reference:function(e,t,r){let n=ru(t),o=rl(t),i="fixed"===r,a=rL(e,!0,i,t),l={scrollLeft:0,scrollTop:0},s=tB(0);if(n||!n&&!i)if(("body"!==ri(t)||rp(o))&&(l=rj(t)),n){let e=rL(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=rD(o));i&&!n&&o&&(s.x=rD(o));let c=!o||n||i?tB(0):rM(o,l);return{x:a.left+l.scrollLeft-s.x-c.x,y:a.top+l.scrollTop-s.y-c.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},rB={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e,i="fixed"===o,a=rl(n),l=!!t&&rg(t.floating);if(n===a||l&&i)return r;let s={scrollLeft:0,scrollTop:0},c=tB(1),u=tB(0),d=ru(n);if((d||!d&&!i)&&(("body"!==ri(n)||rp(a))&&(s=rj(n)),ru(n))){let e=rL(n);c=r_(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}let f=!a||d||i?tB(0):rM(a,s);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-s.scrollLeft*c.x+u.x+f.x,y:r.y*c.y-s.scrollTop*c.y+u.y+f.y}},getDocumentElement:rl,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e,i=[..."clippingAncestors"===r?rg(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=rN(e,[],!1).filter(e=>rc(e)&&"body"!==ri(e)),o=null,i="fixed"===rC(e).position,a=i?rR(e):e;for(;rc(a)&&!rk(a);){let t=rC(a),r=rx(a);r||"fixed"!==t.position||(o=null),(i?!r&&!o:!r&&"static"===t.position&&!!o&&rz.has(o.position)||rp(a)&&!r&&function e(t,r){let n=rR(t);return!(n===r||!rc(n)||rk(n))&&("fixed"===rC(n).position||e(n,r))}(e,a))?n=n.filter(e=>e!==a):o=t,a=rR(a)}return t.set(e,n),n}(t,this._c):[].concat(r),n],a=i[0],l=i.reduce((e,r)=>{let n=r$(t,r,o);return e.top=tW(n.top,e.top),e.right=tI(n.right,e.right),e.bottom=tI(n.bottom,e.bottom),e.left=tW(n.left,e.left),e},r$(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:rF,getElementRects:rV,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=rO(e);return{width:t,height:r}},getScale:r_,isElement:rc,isRTL:function(e){return"rtl"===rC(e).direction}};function rU(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let rH=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:o,rects:i,platform:a,elements:l,middlewareData:s}=t,{element:c,padding:u=0}=tK(e,t)||{};if(null==c)return{};let d=t3(u),f={x:r,y:n},p=tX(tQ(o)),m=tY(p),h=await a.getDimensions(c),g="y"===p,b=g?"clientHeight":"clientWidth",v=i.reference[m]+i.reference[p]-f[p]-i.floating[m],y=f[p]-i.reference[p],x=await (null==a.getOffsetParent?void 0:a.getOffsetParent(c)),w=x?x[b]:0;w&&await (null==a.isElement?void 0:a.isElement(x))||(w=l.floating[b]||i.floating[m]);let E=w/2-h[m]/2-1,k=tI(d[g?"top":"left"],E),C=tI(d[g?"bottom":"right"],E),j=w-h[m]-C,R=w/2-h[m]/2+(v/2-y/2),N=tW(k,tI(R,j)),S=!s.arrow&&null!=tG(o)&&R!==N&&i.reference[m]/2-(R<k?k:C)-h[m]/2<0,O=S?R<k?R-k:R-j:0;return{[p]:f[p]+O,data:{[p]:N,centerOffset:R-N-O,...S&&{alignmentOffset:O}},reset:S}}});var rK="u">typeof document?v.useLayoutEffect:function(){};function rZ(e,t){let r,n,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!rZ(e[n],t[n]))return!1;return!0}if((r=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,o[n]))return!1;for(n=r;0!=n--;){let r=o[n];if(("_owner"!==r||!e.$$typeof)&&!rZ(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function rG(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function rX(e,t){let r=rG(e);return Math.round(t*r)/r}function rY(e){let t=v.useRef(e);return rK(()=>{t.current=e}),t}var rq=Symbol("radix.slottable");function rQ(e){return v.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===rq}var rJ=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{var r,n;let o,i,a,l=(n=r=`Primitive.${t}`,(o=v.forwardRef((e,t)=>{let{children:r,...n}=e;if(v.isValidElement(r)){var o;let e,i,a=(o=r,(i=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(i=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),l=function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==v.Fragment&&(l.ref=t?(0,P.composeRefs)(t,a):a),v.cloneElement(r,l)}return v.Children.count(r)>1?v.Children.only(null):null})).displayName=`${n}.SlotClone`,i=o,(a=v.forwardRef((e,t)=>{let{children:r,...n}=e,o=v.Children.toArray(r),a=o.find(rQ);if(a){let e=a.props.children,r=o.map(t=>t!==a?t:v.Children.count(e)>1?v.Children.only(null):v.isValidElement(e)?e.props.children:null);return(0,m.jsx)(i,{...n,ref:t,children:v.isValidElement(e)?v.cloneElement(e,void 0,r):null})}return(0,m.jsx)(i,{...n,ref:t,children:r})})).displayName=`${r}.Slot`,a),s=v.forwardRef((e,r)=>{let{asChild:n,...o}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,m.jsx)(n?l:t,{...o,ref:r})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),r0=v.forwardRef((e,t)=>{let{children:r,width:n=10,height:o=5,...i}=e;return(0,m.jsx)(rJ.svg,{...i,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,m.jsx)("polygon",{points:"0,0 30,0 15,10"})})});r0.displayName="Arrow";var r1=Symbol("radix.slottable");function r2(e){return v.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===r1}var r5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{var r,n;let o,i,a,l=(n=r=`Primitive.${t}`,(o=v.forwardRef((e,t)=>{let{children:r,...n}=e;if(v.isValidElement(r)){var o;let e,i,a=(o=r,(i=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(i=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),l=function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==v.Fragment&&(l.ref=t?(0,P.composeRefs)(t,a):a),v.cloneElement(r,l)}return v.Children.count(r)>1?v.Children.only(null):null})).displayName=`${n}.SlotClone`,i=o,(a=v.forwardRef((e,t)=>{let{children:r,...n}=e,o=v.Children.toArray(r),a=o.find(r2);if(a){let e=a.props.children,r=o.map(t=>t!==a?t:v.Children.count(e)>1?v.Children.only(null):v.isValidElement(e)?e.props.children:null);return(0,m.jsx)(i,{...n,ref:t,children:v.isValidElement(e)?v.cloneElement(e,void 0,r):null})}return(0,m.jsx)(i,{...n,ref:t,children:r})})).displayName=`${r}.Slot`,a),s=v.forwardRef((e,r)=>{let{asChild:n,...o}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,m.jsx)(n?l:t,{...o,ref:r})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),r4="Popper",[r3,r9]=function(e,t=[]){let r=[],n=()=>{let t=r.map(e=>v.createContext(e));return function(r){let n=r?.[e]||t;return v.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return n.scopeName=e,[function(t,n){let o=v.createContext(n),i=r.length;r=[...r,n];let a=t=>{let{scope:r,children:n,...a}=t,l=r?.[e]?.[i]||o,s=v.useMemo(()=>a,Object.values(a));return(0,m.jsx)(l.Provider,{value:s,children:n})};return a.displayName=t+"Provider",[a,function(r,a){let l=a?.[e]?.[i]||o,s=v.useContext(l);if(s)return s;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(n,...t)]}(r4),[r8,r6]=r3(r4),r7=e=>{let{__scopePopper:t,children:r}=e,[n,o]=v.useState(null);return(0,m.jsx)(r8,{scope:t,anchor:n,onAnchorChange:o,children:r})};r7.displayName=r4;var ne="PopperAnchor",nt=v.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:n,...o}=e,i=r6(ne,r),a=v.useRef(null),l=(0,P.useComposedRefs)(t,a),s=v.useRef(null);return v.useEffect(()=>{let e=s.current;s.current=n?.current||a.current,e!==s.current&&i.onAnchorChange(s.current)}),n?null:(0,m.jsx)(r5.div,{...o,ref:l})});nt.displayName=ne;var nr="PopperContent",[nn,no]=r3(nr),ni=v.forwardRef((e,t)=>{var r,n,o,i,a,l,s,c,u,d,f,p,h,g,b,y,x,w,E,k,C;let{__scopePopper:R,side:N="bottom",sideOffset:S=0,align:O="center",alignOffset:T=0,arrowPadding:A=0,avoidCollisions:L=!0,collisionBoundary:D=[],collisionPadding:M=0,sticky:z="partial",hideWhenDetached:$=!1,updatePositionStrategy:I="optimized",onPlaced:F,...V}=e,B=r6(nr,R),[U,H]=v.useState(null),K=(0,P.useComposedRefs)(t,e=>H(e)),[Z,G]=v.useState(null),X=function(e){let[t,r]=v.useState(void 0);return _(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,o=t.blockSize}else n=e.offsetWidth,o=e.offsetHeight;r({width:n,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}(Z),Y=X?.width??0,q=X?.height??0,Q="number"==typeof M?M:{top:0,right:0,bottom:0,left:0,...M},J=Array.isArray(D)?D:[D],ee=J.length>0,et={padding:Q,boundary:J.filter(nc),altBoundary:ee},{refs:er,floatingStyles:en,placement:eo,isPositioned:ei,middlewareData:ea}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:a}={},transform:l=!0,whileElementsMounted:s,open:c}=e,[u,d]=v.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=v.useState(n);rZ(f,n)||p(n);let[m,h]=v.useState(null),[g,b]=v.useState(null),y=v.useCallback(e=>{e!==k.current&&(k.current=e,h(e))},[]),x=v.useCallback(e=>{e!==C.current&&(C.current=e,b(e))},[]),w=i||m,E=a||g,k=v.useRef(null),C=v.useRef(null),R=v.useRef(u),N=null!=s,S=rY(s),O=rY(o),P=rY(c),_=v.useCallback(()=>{var e,n;let o,i,a;if(!k.current||!C.current)return;let l={placement:t,strategy:r,middleware:f};O.current&&(l.platform=O.current),(e=k.current,n=C.current,o=new Map,a={...(i={platform:rB,...l}).platform,_c:o},t6(e,n,{...i,platform:a})).then(e=>{let t={...e,isPositioned:!1!==P.current};T.current&&!rZ(R.current,t)&&(R.current=t,j.flushSync(()=>{d(t)}))})},[f,t,r,O,P]);rK(()=>{!1===c&&R.current.isPositioned&&(R.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);let T=v.useRef(!1);rK(()=>(T.current=!0,()=>{T.current=!1}),[]),rK(()=>{if(w&&(k.current=w),E&&(C.current=E),w&&E){if(S.current)return S.current(w,E,_);_()}},[w,E,_,S,N]);let A=v.useMemo(()=>({reference:k,floating:C,setReference:y,setFloating:x}),[y,x]),L=v.useMemo(()=>({reference:w,floating:E}),[w,E]),D=v.useMemo(()=>{let e={position:r,left:0,top:0};if(!L.floating)return e;let t=rX(L.floating,u.x),n=rX(L.floating,u.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...rG(L.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,l,L.floating,u.x,u.y]);return v.useMemo(()=>({...u,update:_,refs:A,elements:L,floatingStyles:D}),[u,_,A,L,D])}({strategy:"fixed",placement:N+("center"!==O?"-"+O:""),whileElementsMounted:(...e)=>(function(e,t,r,n){let o;void 0===n&&(n={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=n,u=rP(e),d=i||a?[...u?rN(u):[],...rN(t)]:[];d.forEach(e=>{i&&e.addEventListener("scroll",r,{passive:!0}),a&&e.addEventListener("resize",r)});let f=u&&s?function(e,t){let r,n=null,o=rl(e);function i(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return!function a(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),i();let c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(l||t(),!f||!p)return;let m={rootMargin:-tV(d)+"px "+-tV(o.clientWidth-(u+f))+"px "+-tV(o.clientHeight-(d+p))+"px "+-tV(u)+"px",threshold:tW(0,tI(1,s))||1},h=!0;function g(t){let n=t[0].intersectionRatio;if(n!==s){if(!h)return a();n?a(!1,n):r=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==n||rU(c,e.getBoundingClientRect())||a(),h=!1}try{n=new IntersectionObserver(g,{...m,root:o.ownerDocument})}catch(e){n=new IntersectionObserver(g,m)}n.observe(e)}(!0),i}(u,r):null,p=-1,m=null;l&&(m=new ResizeObserver(e=>{let[n]=e;n&&n.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),r()}),u&&!c&&m.observe(u),m.observe(t));let h=c?rL(e):null;return c&&function t(){let n=rL(e);h&&!rU(h,n)&&r(),h=n,o=requestAnimationFrame(t)}(),r(),()=>{var e;d.forEach(e=>{i&&e.removeEventListener("scroll",r),a&&e.removeEventListener("resize",r)}),null==f||f(),null==(e=m)||e.disconnect(),m=null,c&&cancelAnimationFrame(o)}})(...e,{animationFrame:"always"===I}),elements:{reference:B.anchor},middleware:[{...{name:"offset",options:o=r={mainAxis:S+q,alignmentAxis:T},async fn(e){var t,r;let{x:n,y:i,placement:a,middlewareData:l}=e,s=await rn(e,o);return a===(null==(t=l.offset)?void 0:t.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:n+s.x,y:i+s.y,data:{...s,placement:a}}}},options:[r,n]},L&&{...{name:"shift",options:u=s={mainAxis:!0,crossAxis:!1,limiter:"partial"===z?{...(void 0===(l=i)&&(l={}),{options:l,fn(e){let{x:t,y:r,placement:n,rects:o,middlewareData:i}=e,{offset:a=0,mainAxis:s=!0,crossAxis:c=!0}=tK(l,e),u={x:t,y:r},d=tQ(n),f=tX(d),p=u[f],m=u[d],h=tK(a,e),g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(s){let e="y"===f?"height":"width",t=o.reference[f]-o.floating[e]+g.mainAxis,r=o.reference[f]+o.reference[e]-g.mainAxis;p<t?p=t:p>r&&(p=r)}if(c){var b,v;let e="y"===f?"width":"height",t=rr.has(tZ(n)),r=o.reference[d]-o.floating[e]+(t&&(null==(b=i.offset)?void 0:b[d])||0)+(t?0:g.crossAxis),a=o.reference[d]+o.reference[e]+(t?0:(null==(v=i.offset)?void 0:v[d])||0)-(t?g.crossAxis:0);m<r?m=r:m>a&&(m=a)}return{[f]:p,[d]:m}}}),options:[i,a]}:void 0,...et},async fn(e){let{x:t,y:r,placement:n}=e,{mainAxis:o=!0,crossAxis:i=!1,limiter:a={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=tK(u,e),s={x:t,y:r},c=await t7(e,l),d=tQ(tZ(n)),f=tX(d),p=s[f],m=s[d];if(o){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",r=p+c[e],n=p-c[t];p=tW(r,tI(p,n))}if(i){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",r=m+c[e],n=m-c[t];m=tW(r,tI(m,n))}let h=a.fn({...e,[f]:p,[d]:m});return{...h,data:{x:h.x-t,y:h.y-r,enabled:{[f]:o,[d]:i}}}}},options:[s,c]},L&&{...{name:"flip",options:p=d={...et},async fn(e){var t,r,n,o,i,a,l,s;let c,u,d,{placement:f,middlewareData:m,rects:h,initialPlacement:g,platform:b,elements:v}=e,{mainAxis:y=!0,crossAxis:x=!0,fallbackPlacements:w,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:k="none",flipAlignment:C=!0,...j}=tK(p,e);if(null!=(t=m.arrow)&&t.alignmentOffset)return{};let R=tZ(f),N=tQ(g),S=tZ(g)===g,O=await (null==b.isRTL?void 0:b.isRTL(v.floating)),P=w||(S||!C?[t4(g)]:(c=t4(g),[tJ(g),c,tJ(c)])),_="none"!==k;!w&&_&&P.push(...(u=tG(g),d=function(e,t,r){switch(e){case"top":case"bottom":if(r)return t?t1:t0;return t?t0:t1;case"left":case"right":return t?t2:t5;default:return[]}}(tZ(g),"start"===k,O),u&&(d=d.map(e=>e+"-"+u),C&&(d=d.concat(d.map(tJ)))),d));let T=[g,...P],A=await t7(e,j),L=[],D=(null==(r=m.flip)?void 0:r.overflows)||[];if(y&&L.push(A[R]),x){let e,t,r,n,o=(a=f,l=h,void 0===(s=O)&&(s=!1),e=tG(a),r=tY(t=tX(tQ(a))),n="x"===t?e===(s?"end":"start")?"right":"left":"start"===e?"bottom":"top",l.reference[r]>l.floating[r]&&(n=t4(n)),[n,t4(n)]);L.push(A[o[0]],A[o[1]])}if(D=[...D,{placement:f,overflows:L}],!L.every(e=>e<=0)){let e=((null==(n=m.flip)?void 0:n.index)||0)+1,t=T[e];if(t&&("alignment"!==x||N===tQ(t)||D.every(e=>tQ(e.placement)!==N||e.overflows[0]>0)))return{data:{index:e,overflows:D},reset:{placement:t}};let r=null==(o=D.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!r)switch(E){case"bestFit":{let e=null==(i=D.filter(e=>{if(_){let t=tQ(e.placement);return t===N||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:i[0];e&&(r=e);break}case"initialPlacement":r=g}if(f!==r)return{reset:{placement:r}}}return{}}},options:[d,f]},{...{name:"size",options:b=h={...et,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{let{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${r}px`),a.setProperty("--radix-popper-available-height",`${n}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}},async fn(e){var t,r;let n,o,{placement:i,rects:a,platform:l,elements:s}=e,{apply:c=()=>{},...u}=tK(b,e),d=await t7(e,u),f=tZ(i),p=tG(i),m="y"===tQ(i),{width:h,height:g}=a.floating;"top"===f||"bottom"===f?(n=f,o=p===(await (null==l.isRTL?void 0:l.isRTL(s.floating))?"start":"end")?"left":"right"):(o=f,n="end"===p?"top":"bottom");let v=g-d.top-d.bottom,y=h-d.left-d.right,x=tI(g-d[n],v),w=tI(h-d[o],y),E=!e.middlewareData.shift,k=x,C=w;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(C=y),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(k=v),E&&!p){let e=tW(d.left,0),t=tW(d.right,0),r=tW(d.top,0),n=tW(d.bottom,0);m?C=h-2*(0!==e||0!==t?e+t:tW(d.left,d.right)):k=g-2*(0!==r||0!==n?r+n:tW(d.top,d.bottom))}await c({...e,availableWidth:C,availableHeight:k});let j=await l.getDimensions(s.floating);return h!==j.width||g!==j.height?{reset:{rects:!0}}:{}}},options:[h,g]},Z&&{...{name:"arrow",options:w=y={element:Z,padding:A},fn(e){let{element:t,padding:r}="function"==typeof w?w(e):w;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?rH({element:t.current,padding:r}).fn(e):{}:t?rH({element:t,padding:r}).fn(e):{}}},options:[y,x]},nu({arrowWidth:Y,arrowHeight:q}),$&&{...{name:"hide",options:C=E={strategy:"referenceHidden",...et},async fn(e){let{rects:t}=e,{strategy:r="referenceHidden",...n}=tK(C,e);switch(r){case"referenceHidden":{let r=re(await t7(e,{...n,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:rt(r)}}}case"escaped":{let r=re(await t7(e,{...n,altBoundary:!0}),t.floating);return{data:{escapedOffsets:r,escaped:rt(r)}}}default:return{}}}},options:[E,k]}]}),[el,es]=nd(eo),ec=W(F);_(()=>{ei&&ec?.()},[ei,ec]);let eu=ea.arrow?.x,ed=ea.arrow?.y,ef=ea.arrow?.centerOffset!==0,[ep,em]=v.useState();return _(()=>{U&&em(window.getComputedStyle(U).zIndex)},[U]),(0,m.jsx)("div",{ref:er.setFloating,"data-radix-popper-content-wrapper":"",style:{...en,transform:ei?en.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ep,"--radix-popper-transform-origin":[ea.transformOrigin?.x,ea.transformOrigin?.y].join(" "),...ea.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,m.jsx)(nn,{scope:R,placedSide:el,onArrowChange:G,arrowX:eu,arrowY:ed,shouldHideArrow:ef,children:(0,m.jsx)(r5.div,{"data-side":el,"data-align":es,...V,ref:K,style:{...V.style,animation:ei?void 0:"none"}})})})});ni.displayName=nr;var na="PopperArrow",nl={top:"bottom",right:"left",bottom:"top",left:"right"},ns=v.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,o=no(na,r),i=nl[o.placedSide];return(0,m.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,m.jsx)(r0,{...n,ref:t,style:{...n.style,display:"block"}})})});function nc(e){return null!==e}ns.displayName=na;var nu=e=>({name:"transformOrigin",options:e,fn(t){let{placement:r,rects:n,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[s,c]=nd(r),u={start:"0%",center:"50%",end:"100%"}[c],d=(o.arrow?.x??0)+a/2,f=(o.arrow?.y??0)+l/2,p="",m="";return"bottom"===s?(p=i?u:`${d}px`,m=`${-l}px`):"top"===s?(p=i?u:`${d}px`,m=`${n.floating.height+l}px`):"right"===s?(p=`${-l}px`,m=i?u:`${f}px`):"left"===s&&(p=`${n.floating.width+l}px`,m=i?u:`${f}px`),{data:{x:p,y:m}}}});function nd(e){let[t,r="center"]=e.split("-");return[t,r]}var nf=Symbol("radix.slottable");function np(e){return v.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===nf}var nm=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{var r,n;let o,i,a,l=(n=r=`Primitive.${t}`,(o=v.forwardRef((e,t)=>{let{children:r,...n}=e;if(v.isValidElement(r)){var o;let e,i,a=(o=r,(i=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(i=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),l=function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==v.Fragment&&(l.ref=t?(0,P.composeRefs)(t,a):a),v.cloneElement(r,l)}return v.Children.count(r)>1?v.Children.only(null):null})).displayName=`${n}.SlotClone`,i=o,(a=v.forwardRef((e,t)=>{let{children:r,...n}=e,o=v.Children.toArray(r),a=o.find(np);if(a){let e=a.props.children,r=o.map(t=>t!==a?t:v.Children.count(e)>1?v.Children.only(null):v.isValidElement(e)?e.props.children:null);return(0,m.jsx)(i,{...n,ref:t,children:v.isValidElement(e)?v.cloneElement(e,void 0,r):null})}return(0,m.jsx)(i,{...n,ref:t,children:r})})).displayName=`${r}.Slot`,a),s=v.forwardRef((e,r)=>{let{asChild:n,...o}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,m.jsx)(n?l:t,{...o,ref:r})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),nh=Symbol("radix.slottable");function ng(e){return v.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===nh}var nb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{var r,n;let o,i,a,l=(n=r=`Primitive.${t}`,(o=v.forwardRef((e,t)=>{let{children:r,...n}=e;if(v.isValidElement(r)){var o;let e,i,a=(o=r,(i=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(i=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),l=function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==v.Fragment&&(l.ref=t?(0,P.composeRefs)(t,a):a),v.cloneElement(r,l)}return v.Children.count(r)>1?v.Children.only(null):null})).displayName=`${n}.SlotClone`,i=o,(a=v.forwardRef((e,t)=>{let{children:r,...n}=e,o=v.Children.toArray(r),a=o.find(ng);if(a){let e=a.props.children,r=o.map(t=>t!==a?t:v.Children.count(e)>1?v.Children.only(null):v.isValidElement(e)?e.props.children:null);return(0,m.jsx)(i,{...n,ref:t,children:v.isValidElement(e)?v.cloneElement(e,void 0,r):null})}return(0,m.jsx)(i,{...n,ref:t,children:r})})).displayName=`${r}.Slot`,a),s=v.forwardRef((e,r)=>{let{asChild:n,...o}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,m.jsx)(n?l:t,{...o,ref:r})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),nv=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"}),ny=v.forwardRef((e,t)=>(0,m.jsx)(nb.span,{...e,ref:t,style:{...nv,...e.style}}));ny.displayName="VisuallyHidden";var[nx,nw]=function(e,t=[]){let r=[],n=()=>{let t=r.map(e=>v.createContext(e));return function(r){let n=r?.[e]||t;return v.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return n.scopeName=e,[function(t,n){let o=v.createContext(n),i=r.length;r=[...r,n];let a=t=>{let{scope:r,children:n,...a}=t,l=r?.[e]?.[i]||o,s=v.useMemo(()=>a,Object.values(a));return(0,m.jsx)(l.Provider,{value:s,children:n})};return a.displayName=t+"Provider",[a,function(r,a){let l=a?.[e]?.[i]||o,s=v.useContext(l);if(s)return s;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(n,...t)]}("Tooltip",[r9]),nE=r9(),nk="TooltipProvider",nC="tooltip.open",[nj,nR]=nx(nk),nN=e=>{let{__scopeTooltip:t,delayDuration:r=700,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:i}=e,a=v.useRef(!0),l=v.useRef(!1),s=v.useRef(0);return v.useEffect(()=>{let e=s.current;return()=>window.clearTimeout(e)},[]),(0,m.jsx)(nj,{scope:t,isOpenDelayedRef:a,delayDuration:r,onOpen:v.useCallback(()=>{window.clearTimeout(s.current),a.current=!1},[]),onClose:v.useCallback(()=>{window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.current=!0,n)},[n]),isPointerInTransitRef:l,onPointerInTransitChange:v.useCallback(e=>{l.current=e},[]),disableHoverableContent:o,children:i})};nN.displayName=nk;var nS="Tooltip",[nO,nP]=nx(nS),n_=e=>{let{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:i,disableHoverableContent:a,delayDuration:l}=e,s=nR(nS,e.__scopeTooltip),c=nE(t),[u,d]=v.useState(null),f=L(),p=v.useRef(0),h=a??s.disableHoverableContent,g=l??s.delayDuration,b=v.useRef(!1),[y,x]=M({prop:n,defaultProp:o??!1,onChange:e=>{e?(s.onOpen(),document.dispatchEvent(new CustomEvent(nC))):s.onClose(),i?.(e)},caller:nS}),w=v.useMemo(()=>y?b.current?"delayed-open":"instant-open":"closed",[y]),E=v.useCallback(()=>{window.clearTimeout(p.current),p.current=0,b.current=!1,x(!0)},[x]),k=v.useCallback(()=>{window.clearTimeout(p.current),p.current=0,x(!1)},[x]),C=v.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{b.current=!0,x(!0),p.current=0},g)},[g,x]);return v.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),(0,m.jsx)(r7,{...c,children:(0,m.jsx)(nO,{scope:t,contentId:f,open:y,stateAttribute:w,trigger:u,onTriggerChange:d,onTriggerEnter:v.useCallback(()=>{s.isOpenDelayedRef.current?C():E()},[s.isOpenDelayedRef,C,E]),onTriggerLeave:v.useCallback(()=>{h?k():(window.clearTimeout(p.current),p.current=0)},[k,h]),onOpen:E,onClose:k,disableHoverableContent:h,children:r})})};n_.displayName=nS;var nT="TooltipTrigger",nA=v.forwardRef((e,t)=>{let{__scopeTooltip:r,...n}=e,o=nP(nT,r),i=nR(nT,r),a=nE(r),l=v.useRef(null),s=(0,P.useComposedRefs)(t,l,o.onTriggerChange),c=v.useRef(!1),u=v.useRef(!1),d=v.useCallback(()=>c.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),(0,m.jsx)(nt,{asChild:!0,...a,children:(0,m.jsx)(nm.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:s,onPointerMove:O(e.onPointerMove,e=>{"touch"!==e.pointerType&&(u.current||i.isPointerInTransitRef.current||(o.onTriggerEnter(),u.current=!0))}),onPointerLeave:O(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:O(e.onPointerDown,()=>{o.open&&o.onClose(),c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:O(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:O(e.onBlur,o.onClose),onClick:O(e.onClick,o.onClose)})})});nA.displayName=nT;var nL="TooltipPortal",[nD,nM]=nx(nL,{forceMount:void 0}),nz=e=>{let{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,i=nP(nL,t);return(0,m.jsx)(nD,{scope:t,forceMount:r,children:(0,m.jsx)(es,{present:r||i.open,children:(0,m.jsx)(el,{asChild:!0,container:o,children:n})})})};nz.displayName=nL;var n$="TooltipContent",nI=v.forwardRef((e,t)=>{let r=nM(n$,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...i}=e,a=nP(n$,e.__scopeTooltip);return(0,m.jsx)(es,{present:n||a.open,children:a.disableHoverableContent?(0,m.jsx)(nU,{side:o,...i,ref:t}):(0,m.jsx)(nW,{side:o,...i,ref:t})})}),nW=v.forwardRef((e,t)=>{let r=nP(n$,e.__scopeTooltip),n=nR(n$,e.__scopeTooltip),o=v.useRef(null),i=(0,P.useComposedRefs)(t,o),[a,l]=v.useState(null),{trigger:s,onClose:c}=r,u=o.current,{onPointerInTransitChange:d}=n,f=v.useCallback(()=>{l(null),d(!1)},[d]),p=v.useCallback((e,t)=>{let r,n=e.currentTarget,o={x:e.clientX,y:e.clientY},i=function(e,t){let r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,n,o,i)){case i:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw Error("unreachable")}}(o,n.getBoundingClientRect());l(((r=[...function(e,t,r=5){let n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r})}return n}(o,i),...function(e){let{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}(t.getBoundingClientRect())].slice()).sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:1*!!(e.y>t.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let r=0;r<e.length;r++){let n=e[r];for(;t.length>=2;){let e=t[t.length-1],r=t[t.length-2];if((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x))t.pop();else break}t.push(n)}t.pop();let r=[];for(let t=e.length-1;t>=0;t--){let n=e[t];for(;r.length>=2;){let e=r[r.length-1],t=r[r.length-2];if((e.x-t.x)*(n.y-t.y)>=(e.y-t.y)*(n.x-t.x))r.pop();else break}r.push(n)}return(r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y)?t:t.concat(r)}(r))),d(!0)},[d]);return v.useEffect(()=>()=>f(),[f]),v.useEffect(()=>{if(s&&u){let e=e=>p(e,u),t=e=>p(e,s);return s.addEventListener("pointerleave",e),u.addEventListener("pointerleave",t),()=>{s.removeEventListener("pointerleave",e),u.removeEventListener("pointerleave",t)}}},[s,u,p,f]),v.useEffect(()=>{if(a){let e=e=>{let t=e.target,r={x:e.clientX,y:e.clientY},n=s?.contains(t)||u?.contains(t),o=!function(e,t){let{x:r,y:n}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let a=t[e],l=t[i],s=a.x,c=a.y,u=l.x,d=l.y;c>n!=d>n&&r<(u-s)*(n-c)/(d-c)+s&&(o=!o)}return o}(r,a);n?f():o&&(f(),c())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[s,u,a,c,f]),(0,m.jsx)(nU,{...e,ref:i})}),[nF,nV]=nx(nS,{isInside:!1}),nB=((n=({children:e})=>(0,m.jsx)(m.Fragment,{children:e})).displayName="TooltipContent.Slottable",n.__radixId=nf,n),nU=v.forwardRef((e,t)=>{let{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:a,...l}=e,s=nP(n$,r),c=nE(r),{onClose:u}=s;return v.useEffect(()=>(document.addEventListener(nC,u),()=>document.removeEventListener(nC,u)),[u]),v.useEffect(()=>{if(s.trigger){let e=e=>{let t=e.target;t?.contains(s.trigger)&&u()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[s.trigger,u]),(0,m.jsx)(B,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:(0,m.jsxs)(ni,{"data-state":s.stateAttribute,...c,...l,ref:t,style:{...l.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:[(0,m.jsx)(nB,{children:n}),(0,m.jsx)(nF,{scope:r,isInside:!0,children:(0,m.jsx)(ny,{id:s.contentId,role:"tooltip",children:o||n})})]})})});nI.displayName=n$;var nH="TooltipArrow",nK=v.forwardRef((e,t)=>{let{__scopeTooltip:r,...n}=e,o=nE(r);return nV(nH,r).isInside?null:(0,m.jsx)(ns,{...o,...n,ref:t})});function nZ({delayDuration:e=0,...t}){return(0,m.jsx)(nN,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function nG({...e}){return(0,m.jsx)(nZ,{children:(0,m.jsx)(n_,{"data-slot":"tooltip",...e})})}function nX({...e}){return(0,m.jsx)(nA,{"data-slot":"tooltip-trigger",...e})}function nY({className:e,sideOffset:t=0,children:r,...n}){return(0,m.jsx)(nz,{children:(0,m.jsxs)(nI,{"data-slot":"tooltip-content",sideOffset:t,className:C("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out 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) rounded-md px-3 py-1.5 text-xs text-balance",e),...n,children:[r,(0,m.jsx)(nK,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}nK.displayName=nH;let nq=v.createContext(null);function nQ(){let e=v.useContext(nq);if(!e)throw Error("useSidebar must be used within a SidebarProvider.");return e}function nJ({defaultOpen:e=!0,open:t,onOpenChange:r,className:n,style:o,children:i,...a}){let l=(0,w.useIsMobile)(),[s,c]=v.useState(!1),[u,d]=v.useState(e),f=t??u,p=v.useCallback(e=>{let t="function"==typeof e?e(f):e;r?r(t):d(t),document.cookie=`sidebar_state=${t}; path=/; max-age=604800`},[r,f]),h=v.useCallback(()=>l?c(e=>!e):p(e=>!e),[l,p,c]);v.useEffect(()=>{let e=e=>{"b"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),h())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[h]);let g=f?"expanded":"collapsed",b=v.useMemo(()=>({state:g,open:f,setOpen:p,isMobile:l,openMobile:s,setOpenMobile:c,toggleSidebar:h}),[g,f,p,l,s,c,h]);return(0,m.jsx)(nq.Provider,{value:b,children:(0,m.jsx)(nZ,{delayDuration:0,children:(0,m.jsx)("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":"16rem","--sidebar-width-icon":"3rem",...o},className:C("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",n),...a,children:i})})})}function n0({side:e="left",variant:t="sidebar",collapsible:r="offcanvas",className:n,children:o,...i}){let{isMobile:a,state:l,openMobile:s,setOpenMobile:c}=nQ();return"none"===r?(0,m.jsx)("div",{"data-slot":"sidebar",className:C("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",n),...i,children:o}):a?(0,m.jsx)(t_,{open:s,onOpenChange:c,...i,children:(0,m.jsxs)(tL,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":"18rem"},side:e,children:[(0,m.jsxs)(tD,{className:"sr-only",children:[(0,m.jsx)(tM,{children:"Sidebar"}),(0,m.jsx)(tz,{children:"Displays the mobile sidebar."})]}),(0,m.jsx)("div",{className:"flex h-full w-full flex-col",children:o})]})}):(0,m.jsxs)("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":l,"data-collapsible":"collapsed"===l?r:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:[(0,m.jsx)("div",{"data-slot":"sidebar-gap",className:C("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180","floating"===t||"inset"===t?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),(0,m.jsx)("div",{"data-slot":"sidebar-container",className:C("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex","left"===e?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]","floating"===t||"inset"===t?"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",n),...i,children:(0,m.jsx)("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:o})})]})}function n1({className:e,...t}){return(0,m.jsx)("main",{"data-slot":"sidebar-inset",className:C("bg-background relative flex w-full flex-1 flex-col","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 md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",e),...t})}function n2({className:e,...t}){return(0,m.jsx)("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:C("flex flex-col gap-2 p-2",e),...t})}function n5({className:e,...t}){return(0,m.jsx)("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:C("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})}function n4({className:e,...t}){return(0,m.jsx)("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:C("relative flex w-full min-w-0 flex-col p-2",e),...t})}function n3({className:e,...t}){return(0,m.jsx)("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:C("w-full text-sm",e),...t})}function n9({className:e,...t}){return(0,m.jsx)("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:C("flex w-full min-w-0 flex-col gap-1",e),...t})}function n8({className:e,...t}){return(0,m.jsx)("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:C("group/menu-item relative",e),...t})}let n6=(0,x.cva)("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 n7({asChild:e=!1,isActive:t=!1,variant:r="default",size:n="default",tooltip:o,className:i,...a}){let l=e?y.Slot:"button",{isMobile:s,state:c}=nQ(),u=(0,m.jsx)(l,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":n,"data-active":t,className:C(n6({variant:r,size:n}),i),...a});return o?("string"==typeof o&&(o={children:o}),(0,m.jsxs)(nG,{children:[(0,m.jsx)(nX,{asChild:!0,children:u}),(0,m.jsx)(nY,{side:"right",align:"center",hidden:"collapsed"!==c||s,...o})]})):u}function oe({connected:e,currentPage:t="architecture",hasDatabases:r=!0,instanceKey:n,...o}){return(0,m.jsxs)(n0,{collapsible:"none",...o,children:[(0,m.jsx)(n2,{className:"border-b border-sidebar-border px-4 py-3",children:(0,m.jsxs)("div",{className:"flex items-center gap-2",children:[(0,m.jsx)("span",{className:"font-semibold text-foreground",children:"Specific Dev"}),n&&"default"!==n&&(0,m.jsx)("span",{className:"text-xs font-medium px-1.5 py-0.5 rounded bg-amber-100 text-amber-800",children:n}),(0,m.jsx)("span",{className:`w-2 h-2 rounded-full ${e?"bg-green-500":"bg-muted-foreground"}`})]})}),(0,m.jsx)(n5,{children:(0,m.jsx)(n4,{children:(0,m.jsx)(n3,{children:(0,m.jsxs)(n9,{children:[(0,m.jsx)(n8,{children:(0,m.jsx)(n7,{asChild:!0,isActive:"architecture"===t,children:(0,m.jsxs)(h.default,{href:"/",children:[(0,m.jsx)(g.Network,{className:"h-4 w-4"}),(0,m.jsx)("span",{children:"Architecture"})]})})}),(0,m.jsx)(n8,{children:r?(0,m.jsx)(n7,{asChild:!0,isActive:"databases"===t,children:(0,m.jsxs)(h.default,{href:"/databases",children:[(0,m.jsx)(b.Database,{className:"h-4 w-4"}),(0,m.jsx)("span",{children:"Databases"})]})}):(0,m.jsxs)(n7,{disabled:!0,className:"cursor-not-allowed opacity-50",children:[(0,m.jsx)(b.Database,{className:"h-4 w-4"}),(0,m.jsx)("span",{children:"Databases"})]})})]})})})})]})}function ot(){let e=window.location.hostname,t=".local.spcf.app";if("local.spcf.app"===e)return"default";if(e.endsWith(t)){let r=e.slice(0,-t.length);if(r&&!r.includes("."))return r}return null}function or(e){return"default"===e?"https://__drizzle_gateway.local.spcf.app":`https://__drizzle_gateway.${e}.local.spcf.app`}e.s(["Sidebar",()=>n0,"SidebarContent",()=>n5,"SidebarGroup",()=>n4,"SidebarGroupContent",()=>n3,"SidebarHeader",()=>n2,"SidebarInset",()=>n1,"SidebarMenu",()=>n9,"SidebarMenuButton",()=>n7,"SidebarMenuItem",()=>n8,"SidebarProvider",()=>nJ],84220),e.s(["AppSidebar",()=>oe],94519),e.s(["getDrizzleGatewayUrl",()=>or,"getInstanceKey",()=>ot],35014)}]);
|