@awaitio/theme-default 0.1.0 → 1.1.0

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/LICENSE CHANGED
@@ -2,13 +2,17 @@
2
2
 
3
3
  Copyright © 2026 Orukami s.r.o., Rybná 716/24, 110 00 Praha 1, Czech Republic, company ID 64049159, registered in the Commercial Register kept by the Municipal Court in Prague, section C, file 74046 (the "Licensor")
4
4
 
5
- The source code of AwaitIO is public. Whether you can use it for free depends on how many people use it: small teams use AwaitIO for free, including commercially, while for-profit organizations with more users need a Company License. This keeps AwaitIO free for most people and funds its development.
5
+ The source code of AwaitIO is public. Whether you can use it for free depends on how many people use it: small teams use AwaitIO for free, including commercially, while other organizations with more users need a Company License, unless they are non-profits or educational institutions. This keeps AwaitIO free for most people and funds its development.
6
6
 
7
7
  This license covers everything in this repository, the package `awaitio` and every package published by the Licensor under the `@awaitio` scope on npm, now or in the future, such as `@awaitio/input-text`, `@awaitio/input-textarea` and `@awaitio/input-datetime` (together, "AwaitIO").
8
8
 
9
9
  ## Users
10
10
 
11
- A "user" is a person who uses an application built with AwaitIO, whether it runs locally or is deployed: an employee, a contractor or anyone else who opens it, runs its actions or answers them. What counts is the number of real people, not the number of logins: several people sharing one login are several users. Count each person once across all of your organization's AwaitIO applications and environments.
11
+ A "user" is a real person who has access to an application built with AwaitIO, whether it runs locally or is deployed: an employee, a contractor or anyone else who can open it, run its actions or answer them. What counts is the number of real people with access, not how many of them use it and not the number of accounts: several people sharing one account are several users, and one person with several accounts, for example a different email in each environment, is one user. Users are counted per calendar month: what counts is the highest number of real people who had access at the same time during that month. People who left and people who replaced them are not added up. Count each person once across all of your organization's AwaitIO applications and environments. Your own employees who build or test an application are users too. Only people count: scheduled jobs, webhooks, AI agents and other systems that call an application are not users; the people who run them or check their work in the application are.
12
+
13
+ ## Organization
14
+
15
+ Your "organization" is you, if you are an individual, or the legal entity that uses AwaitIO, together with every entity that controls it, is controlled by it or is under common control with it. "Control" means owning more than 50% of the voting shares or other ownership interest, or having the power to direct the entity's management. Users are counted across the whole organization: entities in one group count their users together and cannot each use the Free License separately. A non-profit or not-for-profit organization or an educational institution is eligible for the Free License on its own, even when it belongs to a group with for-profit entities.
12
16
 
13
17
  ## Free License
14
18
 
@@ -16,9 +20,10 @@ A "user" is a person who uses an application built with AwaitIO, whether it runs
16
20
 
17
21
  You may use AwaitIO for free if you are:
18
22
 
19
- - an individual or a for-profit organization with up to 3 users;
20
- - a non-profit or not-for-profit organization, or an educational institution; or
21
- - evaluating whether AwaitIO fits your needs, and not yet using it commercially.
23
+ - an individual, including a sole trader or a freelancer, or any other organization, in each case with up to 3 users;
24
+ - a non-profit or not-for-profit organization, or an educational institution;
25
+ - teaching or learning AwaitIO in a course, including a paid course of a for-profit school, for the teachers and students of that course; or
26
+ - evaluating whether AwaitIO fits your needs, with any number of users, for 30 days from your organization's first use of AwaitIO. The evaluation period is counted once per organization and does not start again with a new application, environment or version. After it ends, an organization that is not eligible for the Free License otherwise needs a Company License or an Enterprise agreement to keep using AwaitIO.
22
27
 
23
28
  ### What you may do
24
29
 
@@ -30,24 +35,156 @@ If you are eligible, you are granted permission, free of charge, to:
30
35
 
31
36
  ## Company License
32
37
 
33
- A for-profit organization with more than 3 users needs a Company License to use AwaitIO, priced by the number of users (see the pricing in the README). It allows the same use as the Free License. To get one, write to p.homoky@gmail.com.
38
+ An individual or an organization with more than 3 users that is not eligible for the Free License otherwise needs a Company License to use AwaitIO. It allows the same use as the Free License, in any number of applications and environments. Its price depends on the number of users:
39
+
40
+ - 4 to 10 users: 50 USD per month per organization;
41
+ - 11 to 50 users: 250 USD per month per organization.
42
+
43
+ An individual or an organization with more than 50 users that is not eligible for the Free License otherwise needs an Enterprise agreement instead of a Company License (see below).
44
+
45
+ To get one, sponsor AwaitIO on GitHub Sponsors (https://github.com/sponsors/awaitio) with the monthly Company License tier for your number of users, from your organization's GitHub account or on its behalf. The Company License is valid for as long as the monthly sponsorship is active; when it ends, so does the Company License. The Company License belongs to the organization, not to the GitHub account that pays for it. The month your organization first has more users than its license allows, it needs the higher license for that month: a Company License past 3 users, the higher tier past 10 users and an Enterprise agreement past 50 users.
34
46
 
35
- Eligibility is decided by the organization that uses AwaitIO. If you build tools with AwaitIO for a client and the client runs them, the client's users count and the client needs a Company License unless it is eligible for the Free License itself.
47
+ The Licensor issues an invoice for every payment on request: write to license@awaitio.com with your organization's billing details. For more than 50 users, a written contract, a service-level agreement, priority support or other custom terms, write to the same address to agree on an Enterprise agreement.
48
+
49
+ If you build tools with AwaitIO for a client, the client's users count, and they are counted for each client on its own. This holds whether the client runs the application or you run it for the client, for example as a hosted back office. A client with more than 3 users needs its own Company License unless it is eligible for the Free License itself; one Company License never covers several clients. People who only develop, test or demonstrate an application for a client, such as the developers of an agency or a freelancer, are not users of it and do not count towards their own organization either. People of an agency who use a client's application in production, for example to run its actions for the client, are users of that client. An agency or a freelancer may get the client's Company License on the client's behalf, for example as part of its own price: the license then covers the client, in the tier for the client's number of users, for as long as the sponsorship for it is active.
50
+
51
+ An application that many customers use and pay you to use, for example by subscription as software as a service, is your product, even when each customer has its own copy of it: the users of all its customers are counted together as your users. Users are counted for each client on its own only when you build or adapt the application for that particular client and the client pays for your work.
52
+
53
+ If you distribute an application that includes AwaitIO, for example as open source, each organization that runs it counts its own users and needs its own license. State this in the application's README or documentation.
36
54
 
37
55
  ## Same software, honor system
38
56
 
39
57
  The Free License and the Company License cover exactly the same software. AwaitIO has no paid features, no license keys, no usage limits and no telemetry, and it never checks which license you have. The licensing works on trust: if your organization needs a Company License, get one.
40
58
 
59
+ ## Sponsoring
60
+
61
+ Anyone may sponsor AwaitIO on GitHub Sponsors, once or monthly, with any amount, to support its development. A sponsorship other than a monthly Company License tier is a gift and does not grant a Company License.
62
+
41
63
  ## What nobody may do
42
64
 
43
65
  Whatever your license, without a separate written agreement with the Licensor you may not:
44
66
 
45
67
  1. copy or modify AwaitIO in order to sell, rent, license, relicense or sublicense AwaitIO itself or your own derivative or fork of it;
46
- 2. offer AwaitIO, or a derivative or fork of it, to third parties as a product or service that competes with AwaitIO;
47
- 3. offer to third parties a commercial hosted or managed service built on AwaitIO, such as a dashboard, cloud, monitoring or management service for applications that use AwaitIO; or
48
- 4. sell or license to third parties components, plugins or extensions made for AwaitIO.
68
+ 2. offer AwaitIO, or a derivative or fork of it, to third parties as a framework, builder or platform for making internal tools, admin panels or back offices, that is, a product whose main purpose is to let others build their own applications;
69
+ 3. offer to third parties a commercial service whose main purpose is to host, deploy, monitor or manage their applications built with AwaitIO, such as an AwaitIO cloud or dashboard.
70
+
71
+ Building applications with AwaitIO, running them, also for your clients as a hosted service, and handing them over to your clients is none of the above. An application with its own purpose, such as the back office of a particular business, or the same application delivered to many clients, is not a framework, builder or platform under point 2, even when it is built with AwaitIO. Neither is making your own components, plugins or extensions for AwaitIO and sharing, selling or licensing them, as long as they do not include AwaitIO itself or a modified copy of it.
72
+
73
+ ## Examples
74
+
75
+ These examples are part of this license. They show how its rules apply to common cases.
76
+
77
+ ### General questions
78
+
79
+ #### Why is AwaitIO licensed this way?
80
+
81
+ The model is inspired by [Remotion](https://www.remotion.dev/license). The source code is public, but AwaitIO is not open source.
82
+
83
+ The Licensor values people who build side projects and small teams on a tight budget. It does not want to take their money, so for them AwaitIO is free.
84
+
85
+ If you use AwaitIO for free and want to say thanks, a one-time sponsorship on [GitHub Sponsors](https://github.com/sponsors/awaitio) helps the most. Paying for a license anyway is welcome too.
86
+
87
+ Companies that have clients, sell services and earn money pay for the services that help them make a profit. AwaitIO is one of them. The Licensor helps them build their business, and in return it wants to be part of that journey. That is fair.
88
+
89
+ #### Is AwaitIO free for non-profits and schools?
90
+
91
+ Yes, with any number of users, also when the non-profit belongs to a group of for-profit companies. A paid course that teaches AwaitIO is free for its teachers and students; the school's own internal tools count as usual. Please tell the Licensor who you are at license@awaitio.com.
92
+
93
+ #### What if the person who pays the sponsorship leaves?
94
+
95
+ The license belongs to the organization, not to that person's GitHub account. If the sponsorship ends, for example because the owner who set it up from a personal account leaves, the organization needs to renew it from another account.
96
+
97
+ #### What if we are a larger team but cannot afford the license right now?
98
+
99
+ Write to license@awaitio.com. The Licensor has been in that situation too and understands it. It would not want you to stop using AwaitIO only because you have no budget for the license right now. An exception or individual terms are agreed case by case.
100
+
101
+ #### What if I am not sure whether or which license I need?
102
+
103
+ Write to license@awaitio.com and the Licensor will answer in writing.
104
+
105
+ ### Agencies and clients
106
+
107
+ #### Can I build tools with AwaitIO for my clients and charge for them?
108
+
109
+ Yes. The client's users count, for each client on its own. A client with more than 3 users needs its own Company License, in the tier for its own number of users. This is the preferred way: the client pays for the software it runs.
110
+
111
+ You may also get the client's Company License on the client's behalf, for example as part of your own price. That license covers that one client only.
112
+
113
+ One Company License never covers several clients.
114
+
115
+ #### What if I host the applications for my clients myself?
116
+
117
+ Nothing changes: users are still counted for each client on its own. A client with 2 users is free; a client with 5 users needs its own Company License, which you may get on its behalf. Hosting the applications you built for your clients is allowed and is not a hosted service under "What nobody may do".
118
+
119
+ #### May I deliver the same application to many clients?
120
+
121
+ Yes. An application with its own purpose, such as a booking back office delivered to many clients, is not a framework, builder or platform, even when it is built with AwaitIO.
122
+
123
+ When the clients pay you to use it, it is your product and their users count together as yours. An agency that hosts one booking back office for 20 hair salons for a monthly fee counts the users of all 20 salons.
49
124
 
50
- Building applications with AwaitIO, running them and handing them over to your clients is none of the above.
125
+ #### Do the people of an agency who run a client's application count?
126
+
127
+ Yes. A project manager of an agency who runs the actions of five clients' applications in production is a user of each of the five clients. Developers who only build or test the applications do not count.
128
+
129
+ ### Products and services
130
+
131
+ #### What if I sell my application to many customers as a service?
132
+
133
+ Then it is your product and the users of all your customers count together as yours. A service with 100 customers of 2 users each has 200 users and needs an Enterprise agreement.
134
+
135
+ #### May I offer a cloud for running other people's AwaitIO applications?
136
+
137
+ Not without a separate written agreement with the Licensor. A service whose main purpose is to host, deploy, monitor or manage other people's applications built with AwaitIO, such as an AwaitIO cloud or dashboard, is not allowed.
138
+
139
+ #### May I include AwaitIO in an open-source application?
140
+
141
+ Yes. Each organization that runs your application counts its own users and needs its own license past 3 users; you pay nothing for distributing it. Say so in your README or documentation, so the people who run it know.
142
+
143
+ ### Counting users
144
+
145
+ #### How are users counted when people join or leave?
146
+
147
+ By the highest number of people with access at the same time in the month. If 3 people have access, one of them leaves and a new person takes their place in the same month, no more than 3 people had access at once, so that month has 3 users.
148
+
149
+ #### What if we have more users only for one month?
150
+
151
+ You need the license for that month. If you normally have 3 users and an auditor gets access next to them in one month, 4 people had access at once, so that month has 4 users and needs a Company License.
152
+
153
+ #### Does someone who has access but does not use the application count?
154
+
155
+ Yes. What counts is how many real people have access, not how many of them used the application.
156
+
157
+ #### Does someone who only approves a step count?
158
+
159
+ Yes. A manager who only answers an approval step, or an external accountant who opens an application once a month, has access and is a user in that month.
160
+
161
+ #### What if one person has several accounts?
162
+
163
+ That person is one user. A developer with a different email locally, in staging and in production, or with extra accounts for testing, counts once.
164
+
165
+ ### Teams and environments
166
+
167
+ #### Do our own developers count?
168
+
169
+ Yes. If two of your employees develop an application and two others use it, you have 4 users. The developers of an agency or a freelancer who only build, test or demonstrate an application for a client do not count.
170
+
171
+ #### Do testers in a staging environment count?
172
+
173
+ Yes. Users are counted across all environments. If 3 people have access in production and 2 testers have access only in staging, you have 5 users. The same person with an account in each environment counts once.
174
+
175
+ #### Do companies in one group count together?
176
+
177
+ Yes. If a parent company and its subsidiary each have 2 users, they have 4 users together and need one Company License.
178
+
179
+ ### Automation and AI agents
180
+
181
+ #### Does an application that only runs on its own count?
182
+
183
+ No. An application that only runs scheduled jobs or answers webhooks, with nobody opening it or answering its steps, has no users.
184
+
185
+ #### Does an AI agent that answers steps count?
186
+
187
+ No. An AI agent is a system, like a scheduled job. The people who run the agent or check its work in the application count.
51
188
 
52
189
  ## Changes to this license
53
190
 
@@ -59,6 +196,20 @@ If you do not agree with the license of a newer version, you may keep using the
59
196
 
60
197
  AwaitIO is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and non-infringement. In no event shall the Licensor or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with AwaitIO or the use of or other dealings in AwaitIO.
61
198
 
199
+ ## Questions and license confirmation
200
+
201
+ If you are not sure whether or which license you need, for example how to count your users or whether your use is allowed, write to license@awaitio.com before you decide; the Licensor will answer in writing. If you need a confirmation that your organization holds a valid license, for example for an audit, a client or a procurement process, write to the same address and the Licensor will confirm in writing which license your organization holds and for how long it is valid.
202
+
203
+ ## Governing law
204
+
205
+ This license and every dispute arising from it or in connection with AwaitIO are governed by the laws of the Czech Republic, excluding its conflict-of-laws rules and the United Nations Convention on Contracts for the International Sale of Goods. The courts of the Czech Republic with jurisdiction for Prague have exclusive jurisdiction, unless mandatory law gives a consumer the right to sue in the courts of their own country.
206
+
62
207
  ## Support
63
208
 
64
- Support is provided on a best-effort basis through GitHub issues. Company License holders get priority.
209
+ Support is provided through GitHub issues:
210
+
211
+ - under the Free License, on a best-effort basis;
212
+ - under a Company License, standard support with a first response within 3 working days;
213
+ - under an Enterprise agreement, priority support with a first response within 12 hours on working days, unless the agreement says otherwise.
214
+
215
+ Working days are business days in the Czech Republic. The response times are targets, not a service-level agreement; an Enterprise agreement may add one.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @awaitio/theme-default
2
2
 
3
- The default look of [AwaitIO](https://awaitio.com): every building block of `awaitio/ui` (`Field`, `Label`, `Input`, `Button`, `Table` and the rest), with its styles. Components never style themselves, so the theme restyles every form, table and page at once.
3
+ The default look of [AwaitIO](https://awaitio.com) – every building block of `awaitio/ui` (`Field`, `Label`, `Input`, `Button`, `Table` and the rest), with its styles. Components never style themselves, so the theme restyles every form, table and page at once.
4
4
 
5
5
  ![An AwaitIO action asking for a company name and an owner email](https://docs.awaitio.com/images/intro-form.png)
6
6
 
@@ -0,0 +1,4 @@
1
+ import { type NativeSelectProps } from 'awaitio/ui';
2
+ import type { FC } from 'react';
3
+ export declare const NativeSelect: FC<NativeSelectProps>;
4
+ //# sourceMappingURL=NativeSelect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeSelect.d.ts","sourceRoot":"","sources":["../../src/blocks/NativeSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAGhE,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CA2B9C,CAAC"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NativeSelect = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const ui_1 = require("awaitio/ui");
6
+ const SelectArrow_1 = require("../components/SelectArrow");
7
+ const constants_1 = require("../constants");
8
+ // The browser's own drop-down for one of many options.
9
+ const NativeSelect = ({ choices, value, onChange, placeholder = 'Choose…', disabled, autoFocus }) => {
10
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "relative", children: [(0, jsx_runtime_1.jsxs)("select", { id: (0, ui_1.useFieldId)(), value: value, disabled: disabled, autoFocus: autoFocus, onChange: (event) => {
11
+ onChange(event.target.value);
12
+ }, className: constants_1.constants.SELECT_CLASS_NAME, children: [(0, jsx_runtime_1.jsx)("option", { value: "", disabled: true, children: placeholder }), choices.map((choice) => {
13
+ return ((0, jsx_runtime_1.jsx)("option", { value: choice.value, children: choice.label }, choice.value));
14
+ })] }), (0, jsx_runtime_1.jsx)(SelectArrow_1.SelectArrow, {})] }));
15
+ };
16
+ exports.NativeSelect = NativeSelect;
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../src/blocks/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AAG1D,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CA2BlC,CAAC"}
1
+ {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../src/blocks/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AAEvE,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIhC,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CAkElC,CAAC"}
@@ -1,16 +1,63 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.Select = void 0;
4
7
  const jsx_runtime_1 = require("react/jsx-runtime");
5
8
  const ui_1 = require("awaitio/ui");
6
- const SelectArrow_1 = require("../components/SelectArrow");
7
- const constants_1 = require("../constants");
8
- // A native drop-down for one of many options.
9
- const Select = ({ choices, value, onChange, placeholder = 'Choose…', disabled, autoFocus }) => {
10
- return ((0, jsx_runtime_1.jsxs)("div", { className: "relative", children: [(0, jsx_runtime_1.jsxs)("select", { id: (0, ui_1.useFieldId)(), value: value, disabled: disabled, autoFocus: autoFocus, onChange: (event) => {
11
- onChange(event.target.value);
12
- }, className: constants_1.constants.SELECT_CLASS_NAME, children: [(0, jsx_runtime_1.jsx)("option", { value: "", disabled: true, children: placeholder }), choices.map((choice) => {
13
- return ((0, jsx_runtime_1.jsx)("option", { value: choice.value, children: choice.label }, choice.value));
14
- })] }), (0, jsx_runtime_1.jsx)(SelectArrow_1.SelectArrow, {})] }));
9
+ const react_select_1 = __importDefault(require("react-select"));
10
+ // A searchable drop-down for one of many options (react-select), drawn with the theme's classes instead of its own
11
+ // styles, so it matches the other controls.
12
+ const Select = ({ choices, value, onChange, placeholder = 'Choose…', clearable = false, disabled, autoFocus }) => {
13
+ const selected = choices.find((choice) => {
14
+ return choice.value === value;
15
+ }) ?? null;
16
+ return ((0, jsx_runtime_1.jsx)(react_select_1.default, { inputId: (0, ui_1.useFieldId)(), options: choices, value: selected, onChange: (choice) => {
17
+ onChange(choice?.value ?? '');
18
+ }, placeholder: placeholder, isClearable: clearable, isDisabled: disabled, autoFocus: autoFocus, noOptionsMessage: () => {
19
+ return 'Nothing found';
20
+ }, unstyled: true, classNames: {
21
+ control: ({ isFocused, isDisabled }) => {
22
+ return [
23
+ 'min-h-[38px] rounded-md border px-3 text-sm shadow-sm',
24
+ isDisabled ? 'bg-gray-100 text-gray-500' : 'bg-white',
25
+ isFocused ? 'border-gray-900' : 'border-gray-300',
26
+ ].join(' ');
27
+ },
28
+ valueContainer: () => {
29
+ return 'gap-1 py-2';
30
+ },
31
+ placeholder: () => {
32
+ return 'text-gray-400';
33
+ },
34
+ input: () => {
35
+ return 'text-gray-900';
36
+ },
37
+ indicatorsContainer: () => {
38
+ return 'gap-1';
39
+ },
40
+ clearIndicator: () => {
41
+ return 'cursor-pointer rounded p-1 text-gray-400 hover:bg-gray-100 hover:text-gray-900';
42
+ },
43
+ dropdownIndicator: () => {
44
+ return 'p-1 text-gray-500';
45
+ },
46
+ menu: () => {
47
+ return 'mt-1 overflow-hidden rounded-md border border-gray-200 bg-white text-sm shadow-lg';
48
+ },
49
+ menuList: () => {
50
+ return 'py-1';
51
+ },
52
+ option: ({ isFocused, isSelected }) => {
53
+ return [
54
+ 'cursor-pointer px-3 py-2',
55
+ isSelected ? 'bg-gray-900 text-white' : isFocused ? 'bg-gray-100 text-gray-900' : 'text-gray-900',
56
+ ].join(' ');
57
+ },
58
+ noOptionsMessage: () => {
59
+ return 'px-3 py-2 text-gray-500';
60
+ },
61
+ } }));
15
62
  };
16
63
  exports.Select = Select;
@@ -14,6 +14,7 @@ export declare const defaultTheme: import("awaitio").ThemeBlockRefs<{
14
14
  Link: import("react").FC<import("awaitio/ui").LinkProps>;
15
15
  Metadata: import("react").FC<import("awaitio/ui").MetadataProps>;
16
16
  MultiSelect: import("react").FC<import("awaitio/ui").MultiSelectProps>;
17
+ NativeSelect: import("react").FC<import("awaitio/ui").NativeSelectProps>;
17
18
  Prose: import("react").FC<import("awaitio/ui").ProseProps>;
18
19
  RowMenu: import("react").FC<import("awaitio/ui").RowMenuProps>;
19
20
  Select: import("react").FC<import("awaitio/ui").SelectProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"defaultTheme.d.ts","sourceRoot":"","sources":["../src/defaultTheme.tsx"],"names":[],"mappings":"AAsBA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;EAqBvB,CAAC"}
1
+ {"version":3,"file":"defaultTheme.d.ts","sourceRoot":"","sources":["../src/defaultTheme.tsx"],"names":[],"mappings":"AAuBA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;EAsBvB,CAAC"}
@@ -17,6 +17,7 @@ const Label_1 = require("./blocks/Label");
17
17
  const Link_1 = require("./blocks/Link");
18
18
  const Metadata_1 = require("./blocks/Metadata");
19
19
  const MultiSelect_1 = require("./blocks/MultiSelect");
20
+ const NativeSelect_1 = require("./blocks/NativeSelect");
20
21
  const Prose_1 = require("./blocks/Prose");
21
22
  const RowMenu_1 = require("./blocks/RowMenu");
22
23
  const Select_1 = require("./blocks/Select");
@@ -38,6 +39,7 @@ exports.defaultTheme = (0, awaitio_1.defineTheme)({
38
39
  Link: Link_1.Link,
39
40
  Metadata: Metadata_1.Metadata,
40
41
  MultiSelect: MultiSelect_1.MultiSelect,
42
+ NativeSelect: NativeSelect_1.NativeSelect,
41
43
  Prose: Prose_1.Prose,
42
44
  RowMenu: RowMenu_1.RowMenu,
43
45
  Select: Select_1.Select,
package/dist/ui/ui.css CHANGED
@@ -1 +1 @@
1
- @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer theme{:root,:host{--color-red-100:oklch(93.6% .032 17.717);--color-red-600:oklch(57.7% .245 27.325);--color-red-800:oklch(44.4% .177 26.899);--color-orange-100:oklch(95.4% .038 75.164);--color-orange-800:oklch(47% .157 37.304);--color-yellow-100:oklch(97.3% .071 103.193);--color-yellow-800:oklch(47.6% .114 61.907);--color-green-100:oklch(96.2% .044 156.743);--color-green-800:oklch(44.8% .119 151.328);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-800:oklch(42.4% .199 265.638);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-800:oklch(43.8% .218 303.724);--color-pink-100:oklch(94.8% .028 342.258);--color-pink-800:oklch(45.9% .187 3.815);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-900:oklch(21% .034 264.665);--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--radius-md:.375rem;--radius-lg:.5rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1)}}@layer components{.pointer-events-none{pointer-events:none}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.top-1\/2{top:50%}.right-3{right:calc(var(--spacing) * 3)}.z-20{z-index:20}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.ml-1\.5{margin-left:calc(var(--spacing) * 1.5)}.block{display:block}.flex{display:flex}.grid{display:grid}.inline-flex{display:inline-flex}.table{display:table}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.h-5{height:calc(var(--spacing) * 5)}.max-h-16{max-height:calc(var(--spacing) * 16)}.max-h-32{max-height:calc(var(--spacing) * 32)}.max-h-64{max-height:calc(var(--spacing) * 64)}.max-h-96{max-height:calc(var(--spacing) * 96)}.min-h-9{min-height:calc(var(--spacing) * 9)}.w-5{width:calc(var(--spacing) * 5)}.w-10{width:calc(var(--spacing) * 10)}.w-full{width:100%}.max-w-56{max-width:calc(var(--spacing) * 56)}.max-w-full{max-width:100%}.min-w-0{min-width:0}.min-w-40{min-width:calc(var(--spacing) * 40)}.shrink-0{flex-shrink:0}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.cursor-pointer{cursor:pointer}.resize{resize:both}.appearance-none{appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-gray-200>:not(:last-child)){border-color:var(--color-gray-200)}.self-start{align-self:flex-start}.overflow-x-auto{overflow-x:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-900{border-color:var(--color-gray-900)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-900{background-color:var(--color-gray-900)}.bg-green-100{background-color:var(--color-green-100)}.bg-orange-100{background-color:var(--color-orange-100)}.bg-pink-100{background-color:var(--color-pink-100)}.bg-purple-100{background-color:var(--color-purple-100)}.bg-red-100{background-color:var(--color-red-100)}.bg-white{background-color:var(--color-white)}.bg-yellow-100{background-color:var(--color-yellow-100)}.fill-current{fill:currentColor}.object-contain{object-fit:contain}.p-1{padding:var(--spacing)}.p-2{padding:calc(var(--spacing) * 2)}.p-6{padding:calc(var(--spacing) * 6)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-6{padding-block:calc(var(--spacing) * 6)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pr-3\.5{padding-right:calc(var(--spacing) * 3.5)}.pr-9{padding-right:calc(var(--spacing) * 9)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-5{padding-left:calc(var(--spacing) * 5)}.text-left{text-align:left}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-6{--tw-leading:calc(var(--spacing) * 6);line-height:calc(var(--spacing) * 6)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.wrap-break-word{overflow-wrap:break-word}.whitespace-nowrap{white-space:nowrap}.text-blue-600{color:var(--color-blue-600)}.text-blue-800{color:var(--color-blue-800)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-900{color:var(--color-gray-900)}.text-green-800{color:var(--color-green-800)}.text-orange-800{color:var(--color-orange-800)}.text-pink-800{color:var(--color-pink-800)}.text-purple-800{color:var(--color-purple-800)}.text-red-600{color:var(--color-red-600)}.text-red-800{color:var(--color-red-800)}.text-white{color:var(--color-white)}.text-yellow-800{color:var(--color-yellow-800)}.underline-offset-2{text-underline-offset:2px}.accent-gray-900{accent-color:var(--color-gray-900)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.last\:rounded-b-md:last-child{border-bottom-right-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.last\:border-0:last-child{border-style:var(--tw-border-style);border-width:0}@media(hover:hover){.hover\:border-gray-400:hover{border-color:var(--color-gray-400)}.hover\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\:bg-gray-700:hover{background-color:var(--color-gray-700)}.hover\:text-blue-800:hover{color:var(--color-blue-800)}.hover\:text-gray-900:hover{color:var(--color-gray-900)}.hover\:underline:hover{text-decoration-line:underline}}.focus\:border-gray-900:focus{border-color:var(--color-gray-900)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.enabled\:bg-white:enabled{background-color:var(--color-white)}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:bg-gray-100:disabled{background-color:var(--color-gray-100)}.disabled\:text-gray-500:disabled{color:var(--color-gray-500)}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}@media(min-width:40rem){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(min-width:64rem){.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}.\[\&_a\]\:text-blue-600 a{color:var(--color-blue-600)}.\[\&_a\:hover\]\:underline a:hover{text-decoration-line:underline}.\[\&_code\]\:rounded code{border-radius:.25rem}.\[\&_code\]\:bg-gray-100 code{background-color:var(--color-gray-100)}.\[\&_code\]\:px-1 code{padding-inline:var(--spacing)}.\[\&_code\]\:py-0\.5 code{padding-block:calc(var(--spacing) * .5)}.\[\&_code\]\:text-\[13px\] code{font-size:13px}.\[\&_h1\]\:text-lg h1{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.\[\&_h1\]\:font-semibold h1{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.\[\&_h1\]\:text-gray-900 h1{color:var(--color-gray-900)}.\[\&_h2\]\:text-base h2{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.\[\&_h2\]\:font-semibold h2{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.\[\&_h2\]\:text-gray-900 h2{color:var(--color-gray-900)}.\[\&_h3\]\:font-semibold h3{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.\[\&_h3\]\:text-gray-900 h3{color:var(--color-gray-900)}.\[\&_li\]\:my-0\.5 li{margin-block:calc(var(--spacing) * .5)}.\[\&_ol\]\:list-decimal ol{list-style-type:decimal}.\[\&_ol\]\:pl-5 ol{padding-left:calc(var(--spacing) * 5)}.\[\&_pre\]\:overflow-x-auto pre{overflow-x:auto}.\[\&_pre\]\:rounded-md pre{border-radius:var(--radius-md)}.\[\&_pre\]\:bg-gray-100 pre{background-color:var(--color-gray-100)}.\[\&_pre\]\:p-3 pre{padding:calc(var(--spacing) * 3)}.\[\&_pre_code\]\:bg-transparent pre code{background-color:#0000}.\[\&_pre_code\]\:p-0 pre code{padding:0}.\[\&_strong\]\:font-semibold strong{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.\[\&_strong\]\:text-gray-900 strong{color:var(--color-gray-900)}.\[\&_th\:first-child\]\:rounded-tl-lg th:first-child{border-top-left-radius:var(--radius-lg)}.\[\&_th\:last-child\]\:rounded-tr-lg th:last-child{border-top-right-radius:var(--radius-lg)}.\[\&_ul\]\:list-disc ul{list-style-type:disc}.\[\&_ul\]\:pl-5 ul{padding-left:calc(var(--spacing) * 5)}.\[\&\>div\]\:flex>div{display:flex}.\[\&\>div\]\:flex-col>div{flex-direction:column}.\[\&\>div\]\:gap-3>div{gap:calc(var(--spacing) * 3)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}
1
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer theme{:root,:host{--color-red-100:oklch(93.6% .032 17.717);--color-red-600:oklch(57.7% .245 27.325);--color-red-800:oklch(44.4% .177 26.899);--color-orange-100:oklch(95.4% .038 75.164);--color-orange-800:oklch(47% .157 37.304);--color-yellow-100:oklch(97.3% .071 103.193);--color-yellow-800:oklch(47.6% .114 61.907);--color-green-100:oklch(96.2% .044 156.743);--color-green-800:oklch(44.8% .119 151.328);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-800:oklch(42.4% .199 265.638);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-800:oklch(43.8% .218 303.724);--color-pink-100:oklch(94.8% .028 342.258);--color-pink-800:oklch(45.9% .187 3.815);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-900:oklch(21% .034 264.665);--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--radius-md:.375rem;--radius-lg:.5rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1)}}@layer components{.pointer-events-none{pointer-events:none}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.top-1\/2{top:50%}.right-3{right:calc(var(--spacing) * 3)}.z-20{z-index:20}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.ml-1\.5{margin-left:calc(var(--spacing) * 1.5)}.block{display:block}.flex{display:flex}.grid{display:grid}.inline-flex{display:inline-flex}.table{display:table}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.h-5{height:calc(var(--spacing) * 5)}.max-h-16{max-height:calc(var(--spacing) * 16)}.max-h-32{max-height:calc(var(--spacing) * 32)}.max-h-64{max-height:calc(var(--spacing) * 64)}.max-h-96{max-height:calc(var(--spacing) * 96)}.min-h-9{min-height:calc(var(--spacing) * 9)}.min-h-\[38px\]{min-height:38px}.w-5{width:calc(var(--spacing) * 5)}.w-10{width:calc(var(--spacing) * 10)}.w-full{width:100%}.max-w-56{max-width:calc(var(--spacing) * 56)}.max-w-full{max-width:100%}.min-w-0{min-width:0}.min-w-40{min-width:calc(var(--spacing) * 40)}.shrink-0{flex-shrink:0}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.cursor-pointer{cursor:pointer}.resize{resize:both}.appearance-none{appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-gray-200>:not(:last-child)){border-color:var(--color-gray-200)}.self-start{align-self:flex-start}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-900{border-color:var(--color-gray-900)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-900{background-color:var(--color-gray-900)}.bg-green-100{background-color:var(--color-green-100)}.bg-orange-100{background-color:var(--color-orange-100)}.bg-pink-100{background-color:var(--color-pink-100)}.bg-purple-100{background-color:var(--color-purple-100)}.bg-red-100{background-color:var(--color-red-100)}.bg-white{background-color:var(--color-white)}.bg-yellow-100{background-color:var(--color-yellow-100)}.fill-current{fill:currentColor}.object-contain{object-fit:contain}.p-1{padding:var(--spacing)}.p-2{padding:calc(var(--spacing) * 2)}.p-6{padding:calc(var(--spacing) * 6)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-6{padding-block:calc(var(--spacing) * 6)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pr-3\.5{padding-right:calc(var(--spacing) * 3.5)}.pr-9{padding-right:calc(var(--spacing) * 9)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-5{padding-left:calc(var(--spacing) * 5)}.text-left{text-align:left}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-6{--tw-leading:calc(var(--spacing) * 6);line-height:calc(var(--spacing) * 6)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.wrap-break-word{overflow-wrap:break-word}.whitespace-nowrap{white-space:nowrap}.text-blue-600{color:var(--color-blue-600)}.text-blue-800{color:var(--color-blue-800)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-900{color:var(--color-gray-900)}.text-green-800{color:var(--color-green-800)}.text-orange-800{color:var(--color-orange-800)}.text-pink-800{color:var(--color-pink-800)}.text-purple-800{color:var(--color-purple-800)}.text-red-600{color:var(--color-red-600)}.text-red-800{color:var(--color-red-800)}.text-white{color:var(--color-white)}.text-yellow-800{color:var(--color-yellow-800)}.underline-offset-2{text-underline-offset:2px}.accent-gray-900{accent-color:var(--color-gray-900)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.last\:rounded-b-md:last-child{border-bottom-right-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.last\:border-0:last-child{border-style:var(--tw-border-style);border-width:0}@media(hover:hover){.hover\:border-gray-400:hover{border-color:var(--color-gray-400)}.hover\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\:bg-gray-700:hover{background-color:var(--color-gray-700)}.hover\:text-blue-800:hover{color:var(--color-blue-800)}.hover\:text-gray-900:hover{color:var(--color-gray-900)}.hover\:underline:hover{text-decoration-line:underline}}.focus\:border-gray-900:focus{border-color:var(--color-gray-900)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.enabled\:bg-white:enabled{background-color:var(--color-white)}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:bg-gray-100:disabled{background-color:var(--color-gray-100)}.disabled\:text-gray-500:disabled{color:var(--color-gray-500)}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}@media(min-width:40rem){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(min-width:64rem){.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}.\[\&_a\]\:text-blue-600 a{color:var(--color-blue-600)}.\[\&_a\:hover\]\:underline a:hover{text-decoration-line:underline}.\[\&_code\]\:rounded code{border-radius:.25rem}.\[\&_code\]\:bg-gray-100 code{background-color:var(--color-gray-100)}.\[\&_code\]\:px-1 code{padding-inline:var(--spacing)}.\[\&_code\]\:py-0\.5 code{padding-block:calc(var(--spacing) * .5)}.\[\&_code\]\:text-\[13px\] code{font-size:13px}.\[\&_h1\]\:text-lg h1{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.\[\&_h1\]\:font-semibold h1{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.\[\&_h1\]\:text-gray-900 h1{color:var(--color-gray-900)}.\[\&_h2\]\:text-base h2{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.\[\&_h2\]\:font-semibold h2{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.\[\&_h2\]\:text-gray-900 h2{color:var(--color-gray-900)}.\[\&_h3\]\:font-semibold h3{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.\[\&_h3\]\:text-gray-900 h3{color:var(--color-gray-900)}.\[\&_li\]\:my-0\.5 li{margin-block:calc(var(--spacing) * .5)}.\[\&_ol\]\:list-decimal ol{list-style-type:decimal}.\[\&_ol\]\:pl-5 ol{padding-left:calc(var(--spacing) * 5)}.\[\&_pre\]\:overflow-x-auto pre{overflow-x:auto}.\[\&_pre\]\:rounded-md pre{border-radius:var(--radius-md)}.\[\&_pre\]\:bg-gray-100 pre{background-color:var(--color-gray-100)}.\[\&_pre\]\:p-3 pre{padding:calc(var(--spacing) * 3)}.\[\&_pre_code\]\:bg-transparent pre code{background-color:#0000}.\[\&_pre_code\]\:p-0 pre code{padding:0}.\[\&_strong\]\:font-semibold strong{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.\[\&_strong\]\:text-gray-900 strong{color:var(--color-gray-900)}.\[\&_th\:first-child\]\:rounded-tl-lg th:first-child{border-top-left-radius:var(--radius-lg)}.\[\&_th\:last-child\]\:rounded-tr-lg th:last-child{border-top-right-radius:var(--radius-lg)}.\[\&_ul\]\:list-disc ul{list-style-type:disc}.\[\&_ul\]\:pl-5 ul{padding-left:calc(var(--spacing) * 5)}.\[\&\>div\]\:flex>div{display:flex}.\[\&\>div\]\:flex-col>div{flex-direction:column}.\[\&\>div\]\:gap-3>div{gap:calc(var(--spacing) * 3)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}
package/dist/ui/ui.js CHANGED
@@ -1 +1,6 @@
1
- var awaitioComponent=(function(v,e,i,u){"use strict";const I=r=>Object.fromEntries(Object.entries(r).map(([t,a])=>[t,{kind:"awaitio-theme-block",name:t,component:a,uiDirectory:null}])),S={red:"bg-red-100 text-red-800",orange:"bg-orange-100 text-orange-800",yellow:"bg-yellow-100 text-yellow-800",green:"bg-green-100 text-green-800",blue:"bg-blue-100 text-blue-800",purple:"bg-purple-100 text-purple-800",pink:"bg-pink-100 text-pink-800",gray:"bg-gray-100 text-gray-700"},T=({color:r,children:t})=>e.jsx("span",{className:`inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium ${S[r]}`,children:t}),M=({variant:r="primary",className:t,type:a="button",...s})=>{const l=r==="primary"?"bg-gray-900 text-white hover:bg-gray-700":"border border-gray-300 bg-white text-gray-900 hover:bg-gray-100";return e.jsx("button",{type:a,className:["rounded-md px-4 py-2 text-sm font-medium transition-colors disabled:cursor-not-allowed disabled:opacity-50",l,t].filter(Boolean).join(" "),...s})},O=({children:r})=>e.jsx("div",{className:"flex flex-wrap gap-2",children:r}),j=({children:r})=>e.jsx("div",{className:"rounded-lg border border-gray-200 bg-white p-6 shadow-sm",children:r}),F=({checked:r,onChange:t,text:a,disabled:s,autoFocus:l})=>e.jsxs("label",{className:"flex cursor-pointer items-center gap-2 self-start text-sm text-gray-600",children:[e.jsx("input",{id:i.useFieldId(),type:"checkbox",checked:r,disabled:s,autoFocus:l,onChange:o=>{t(o.target.checked)},className:"size-4 accent-gray-900"}),a]}),B=({choices:r,mode:t,value:a,onChange:s,disabled:l})=>{const o=i.useFieldId();return e.jsx("div",{role:t==="single"?"radiogroup":"group",id:o,className:"flex flex-col gap-2",children:r.map(n=>{const p=a.includes(n.value);return e.jsxs("label",{className:["flex cursor-pointer items-start gap-3 rounded-md border bg-white px-3 py-2.5 text-sm",p&&"border-gray-900",!p&&"border-gray-300 hover:border-gray-400"].filter(Boolean).join(" "),children:[e.jsx("input",{type:t==="single"?"radio":"checkbox",name:o,checked:p,disabled:l,onChange:()=>{if(t==="single"){s([n.value]);return}s(p?a.filter(x=>x!==n.value):[...a,n.value])},className:"mt-0.5 accent-gray-900"}),e.jsxs("span",{className:"flex flex-col gap-0.5",children:[e.jsx("span",{className:"font-medium",children:n.label}),n.description&&e.jsx("span",{className:"text-gray-500",children:n.description})]})]},n.value)})})},U=({label:r,helpText:t,optional:a,error:s,children:l})=>{const o=u.useId();return e.jsx(i.FieldContext.Provider,{value:o,children:e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsxs(i.Label,{htmlFor:o,children:[r,a&&e.jsx("span",{className:"ml-1.5 text-xs font-normal text-gray-500",children:"optional"})]}),l,t&&e.jsx(i.Hint,{children:t}),s&&e.jsx("p",{role:"alert",className:"text-xs text-red-600",children:s})]})})},H=({children:r,description:t,level:a=3})=>a===2?e.jsxs("div",{className:"flex flex-col gap-1 pt-2",children:[e.jsx("h2",{className:"text-lg font-semibold text-gray-900",children:r}),t&&e.jsx("p",{className:"text-sm text-gray-500",children:t})]}):e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx("h3",{className:"text-base font-semibold text-gray-900",children:r}),t&&e.jsx("p",{className:"text-sm text-gray-500",children:t})]}),W=({children:r})=>e.jsx("p",{className:"text-xs text-gray-500",children:r}),P=({src:r,alt:t,size:a})=>{const s={thumbnail:"max-h-16",small:"max-h-32",medium:"max-h-64",large:"max-h-96"}[a??"large"];return e.jsx("img",{src:r,alt:t,loading:"lazy",className:["max-w-full self-start rounded-md border border-gray-200 object-contain",a?s:""].join(" ")})},f={CONTROL_CLASS_NAME:"w-full rounded-md border border-gray-300 px-3 py-2 text-sm shadow-sm focus:border-gray-900 focus:outline-none enabled:bg-white disabled:bg-gray-100 disabled:text-gray-500",SELECT_CLASS_NAME:"w-full appearance-none rounded-md border border-gray-300 py-2 pr-9 pl-3 text-sm shadow-sm focus:border-gray-900 focus:outline-none enabled:bg-white disabled:bg-gray-100 disabled:text-gray-500"},D=({value:r,onChange:t,type:a="text",...s})=>e.jsx("input",{...s,id:i.useFieldId(),type:a,value:r,onChange:l=>{t(l.target.value)},className:f.CONTROL_CLASS_NAME}),K=({htmlFor:r,children:t})=>e.jsx("label",{htmlFor:r,className:"text-sm font-medium",children:t}),V=({href:r,children:t,external:a=!1,className:s="text-blue-600 underline-offset-2 hover:text-blue-800 hover:underline"})=>a?e.jsx("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:s,children:t}):e.jsx("a",{href:r,className:s,onClick:l=>{l.metaKey||l.ctrlKey||l.shiftKey||l.button!==0||(l.preventDefault(),i.navigateTo(r))},children:t}),$=({items:r})=>e.jsx("dl",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-4",children:r.map((t,a)=>e.jsxs("div",{className:"flex min-w-0 flex-col gap-1 rounded-lg border border-gray-200 bg-white px-4 py-3",children:[t.label&&e.jsx("dt",{className:"text-sm text-gray-500",children:t.label}),e.jsx("dd",{className:"text-2xl font-semibold wrap-break-word text-gray-900",children:t.value}),t.description&&e.jsx("dd",{className:"text-xs text-gray-500",children:t.description})]},a))}),_=()=>e.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:"pointer-events-none absolute top-1/2 right-3 size-4 -translate-y-1/2 text-gray-500",children:e.jsx("path",{d:"M6 8l4 4 4-4"})}),q=({choices:r,value:t,onChange:a,placeholder:s="Add…",isFull:l=!1,disabled:o,autoFocus:n})=>{const p=r.filter(c=>!t.includes(c.value)),x=r.filter(c=>t.includes(c.value));return e.jsxs("div",{className:"divide-y divide-gray-200 rounded-md border border-gray-300 bg-gray-50 text-sm",children:[e.jsx("div",{className:"p-2",children:e.jsxs("div",{className:"relative",children:[e.jsxs("select",{id:i.useFieldId(),value:"",disabled:o||l||p.length===0,autoFocus:n,onChange:c=>{a([...t,c.target.value])},className:f.SELECT_CLASS_NAME,children:[e.jsx("option",{value:"",disabled:!0,children:s}),p.map(c=>e.jsx("option",{value:c.value,children:c.label},c.value))]}),e.jsx(_,{})]})}),x.map(c=>e.jsxs("div",{className:["flex items-center justify-between gap-3 py-1.5 pr-3.5 pl-5 last:rounded-b-md",o?"min-h-9 bg-gray-100 text-gray-500":"bg-white text-gray-900"].join(" "),children:[c.label,!o&&e.jsx("button",{type:"button","aria-label":`Remove ${c.label}`,disabled:o,onClick:()=>{a(t.filter(m=>m!==c.value))},className:"flex size-6 shrink-0 items-center justify-center rounded text-gray-400 hover:bg-gray-100 hover:text-gray-900 disabled:cursor-not-allowed disabled:opacity-50",children:e.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",className:"size-3.5",children:e.jsx("path",{d:"M6 6l8 8m0-8-8 8"})})})]},c.value))]})},z=({children:r})=>e.jsx("div",{className:"flex flex-col gap-3 text-sm [&>div]:flex [&>div]:flex-col [&>div]:gap-3 leading-6 text-gray-700 [&_a]:text-blue-600 [&_a:hover]:underline [&_code]:rounded [&_code]:bg-gray-100 [&_code]:px-1 [&_code]:py-0.5 [&_code]:text-[13px] [&_h1]:text-lg [&_h1]:font-semibold [&_h1]:text-gray-900 [&_h2]:text-base [&_h2]:font-semibold [&_h2]:text-gray-900 [&_h3]:font-semibold [&_h3]:text-gray-900 [&_li]:my-0.5 [&_ol]:list-decimal [&_ol]:pl-5 [&_pre]:overflow-x-auto [&_pre]:rounded-md [&_pre]:bg-gray-100 [&_pre]:p-3 [&_pre_code]:bg-transparent [&_pre_code]:p-0 [&_strong]:font-semibold [&_strong]:text-gray-900 [&_ul]:list-disc [&_ul]:pl-5",children:r}),G=({items:r})=>{const[t,a]=u.useState(null),s=u.useRef(null);return u.useEffect(()=>{if(!t)return;const l=o=>{const n=o.type==="mousedown"&&s.current?.contains(o.target),p=o instanceof KeyboardEvent&&o.key!=="Escape";!n&&!p&&a(null)};return document.addEventListener("mousedown",l),document.addEventListener("keydown",l),window.addEventListener("scroll",l,!0),window.addEventListener("resize",l),()=>{document.removeEventListener("mousedown",l),document.removeEventListener("keydown",l),window.removeEventListener("scroll",l,!0),window.removeEventListener("resize",l)}},[t]),e.jsxs("div",{ref:s,className:"flex justify-end",children:[e.jsx("button",{type:"button","aria-label":"Row actions","aria-expanded":t!==null,onClick:l=>{const o=l.currentTarget.getBoundingClientRect();a(t?null:{top:o.bottom+4,right:window.innerWidth-o.right})},className:"rounded-md p-1 text-gray-500 hover:bg-gray-100 hover:text-gray-900",children:e.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 20 20",className:"h-5 w-5 fill-current",children:[e.jsx("circle",{cx:"4.5",cy:"10",r:"1.5"}),e.jsx("circle",{cx:"10",cy:"10",r:"1.5"}),e.jsx("circle",{cx:"15.5",cy:"10",r:"1.5"})]})}),t&&e.jsx("div",{style:{top:t.top,right:t.right},className:"fixed z-20 flex min-w-40 flex-col rounded-lg border border-gray-200 bg-white py-1 shadow-lg",children:r.map(l=>e.jsx(i.Link,{href:l.href,className:"px-3 py-2 text-sm whitespace-nowrap text-gray-700 hover:bg-gray-50 hover:text-gray-900",children:l.label},l.label))})]})},J=({choices:r,value:t,onChange:a,placeholder:s="Choose…",disabled:l,autoFocus:o})=>e.jsxs("div",{className:"relative",children:[e.jsxs("select",{id:i.useFieldId(),value:t,disabled:l,autoFocus:o,onChange:n=>{a(n.target.value)},className:f.SELECT_CLASS_NAME,children:[e.jsx("option",{value:"",disabled:!0,children:s}),r.map(n=>e.jsx("option",{value:n.value,children:n.label},n.value))]}),e.jsx(_,{})]}),Q=({columns:r,rows:t,pageSize:a=20,filterable:s=!0,emptyText:l="Nothing to show.",selection:o})=>{const[n,p]=u.useState(""),x=o?.disabled===!0,[c,m]=u.useState(0),N=n.trim().toLowerCase(),h=N?t.filter(d=>d.searchText.toLowerCase().includes(N)):t,C=Math.max(1,Math.ceil(h.length/a)),b=Math.min(c,C-1),k=h.slice(b*a,(b+1)*a),L=t.some(d=>(d.menu??[]).length>0),E=s||h.length>a,A="rounded-md border border-gray-200 px-2.5 py-1 text-xs font-medium text-gray-700 hover:bg-gray-50 disabled:cursor-not-allowed disabled:opacity-40";return e.jsxs("div",{className:["rounded-lg border border-gray-200",x?"bg-gray-100 text-gray-500":"bg-white"].join(" "),children:[E&&e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 border-b border-gray-200 px-3 py-2",children:[s?e.jsx("input",{type:"search",value:n,placeholder:"Filter","aria-label":"Filter rows",disabled:x,onChange:d=>{p(d.target.value),m(0)},className:"w-full max-w-56 rounded-md border border-gray-300 px-3 py-1 text-sm shadow-sm focus:border-gray-900 focus:outline-none enabled:bg-white disabled:bg-gray-100"}):e.jsx("span",{}),h.length>0&&e.jsxs("div",{className:"flex items-center gap-2 text-xs text-gray-500",children:[e.jsxs("span",{children:[b*a+1,"–",Math.min((b+1)*a,h.length)," of ",h.length]}),h.length>a&&e.jsxs(e.Fragment,{children:[e.jsx("button",{type:"button",disabled:b===0,onClick:()=>{m(b-1)},className:A,children:"Prev"}),e.jsx("button",{type:"button",disabled:b>=C-1,onClick:()=>{m(b+1)},className:A,children:"Next"})]})]})]}),k.length===0?e.jsx("p",{className:"px-4 py-6 text-sm text-gray-500",children:N?"No rows match the filter.":l}):e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:E?"bg-gray-50":"bg-gray-50 [&_th:first-child]:rounded-tl-lg [&_th:last-child]:rounded-tr-lg",children:e.jsxs("tr",{className:"border-b border-gray-200",children:[o&&e.jsx("th",{className:"w-10","aria-label":"Selected"}),r.map(d=>e.jsx("th",{className:"px-4 py-2.5 font-medium whitespace-nowrap text-gray-500",children:d.label},d.key)),L&&e.jsx("th",{className:"w-10","aria-label":"Row actions"})]})}),e.jsx("tbody",{children:k.map((d,te)=>e.jsxs("tr",{className:"border-b border-gray-100 last:border-0",children:[o&&d.id!==void 0&&e.jsx("td",{className:"py-2.5 pl-4",children:e.jsx("input",{type:o.mode==="single"?"radio":"checkbox","aria-label":"Select row",checked:o.selected.includes(d.id),disabled:o.disabled,onChange:()=>{const y=d.id??-1,re=o.selected.includes(y);o.onChange(o.mode==="single"?[y]:re?o.selected.filter(ae=>ae!==y):[...o.selected,y])},className:"accent-gray-900"})}),r.map(y=>e.jsx("td",{className:"px-4 py-2.5",children:d.cells[y.key]},y.key)),L&&e.jsx("td",{className:"px-2 py-1.5",children:d.menu&&d.menu.length>0&&e.jsx(i.RowMenu,{items:d.menu})})]},d.id??b*a+te))})]})})]})},X=({value:r,onChange:t,...a})=>e.jsx("textarea",{...a,id:i.useFieldId(),value:r,onChange:s=>{t(s.target.value)},className:f.CONTROL_CLASS_NAME}),w="__AWAITIO__",Y=r=>{const t=window[w],a=document.currentScript,s=a instanceof HTMLScriptElement?a.dataset.type:void 0;if(!t||!s)throw new Error("A component UI script must be loaded by the AwaitIO UI.");t.registerComponent(s,r)},Z=r=>{const t=window[w],a=document.currentScript,s=a instanceof HTMLScriptElement?a.dataset.type:void 0;if(!t||!s)throw new Error("A display component UI script must be loaded by the AwaitIO UI.");t.registerDisplay(s,r)},R=r=>{const t=window[w],a=document.currentScript,s=a instanceof HTMLScriptElement?a.dataset.type:void 0;if(!t||!s)throw new Error("A layout UI script must be loaded by the AwaitIO UI.");t.registerLayout(s,r)},ee=r=>{const t=window[w],a=document.currentScript,s=a instanceof HTMLScriptElement?a.dataset.type:void 0;if(!t||!s)throw new Error("A theme UI script must be loaded by the AwaitIO UI.");t.registerTheme(s,r)},g=I({Badge:T,Button:M,ButtonRow:O,Card:j,Checkbox:F,ChoiceList:B,Field:U,Heading:H,Hint:W,Image:P,Input:D,Label:K,Link:V,Metadata:$,MultiSelect:q,Prose:z,RowMenu:G,Select:J,Table:Q,Textarea:X});return Object.values(g).every(r=>r&&r.kind==="awaitio-theme-block")?ee({blocks:Object.fromEntries(Object.entries(g).map(([r,t])=>[r,t.component]))}):g.kind==="awaitio-layout"?R({component:g.component}):g.kind==="awaitio-display"?Z({component:g.component,wrap:g.wrap??!0}):Y({component:g.component,initialValue:g.initialValue,wrap:g.wrap??!0,submitButton:g.submitButton??!0}),v.defaultTheme=g,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}),v})({},__AWAITIO__.jsxRuntime,__AWAITIO__.ui,__AWAITIO__.React);
1
+ var awaitioComponent=(function(Xe,y,G,C,Yn){"use strict";function Kn(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,o.get?o:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const L=Kn(C),Xn=t=>Object.fromEntries(Object.entries(t).map(([e,r])=>[e,{kind:"awaitio-theme-block",name:e,component:r,uiDirectory:null}])),Jn={red:"bg-red-100 text-red-800",orange:"bg-orange-100 text-orange-800",yellow:"bg-yellow-100 text-yellow-800",green:"bg-green-100 text-green-800",blue:"bg-blue-100 text-blue-800",purple:"bg-purple-100 text-purple-800",pink:"bg-pink-100 text-pink-800",gray:"bg-gray-100 text-gray-700"},Zn=({color:t,children:e})=>y.jsx("span",{className:`inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium ${Jn[t]}`,children:e}),Qn=({variant:t="primary",className:e,type:r="button",...o})=>{const n=t==="primary"?"bg-gray-900 text-white hover:bg-gray-700":"border border-gray-300 bg-white text-gray-900 hover:bg-gray-100";return y.jsx("button",{type:r,className:["rounded-md px-4 py-2 text-sm font-medium transition-colors disabled:cursor-not-allowed disabled:opacity-50",n,e].filter(Boolean).join(" "),...o})},er=({children:t})=>y.jsx("div",{className:"flex flex-wrap gap-2",children:t}),tr=({children:t})=>y.jsx("div",{className:"rounded-lg border border-gray-200 bg-white p-6 shadow-sm",children:t}),nr=({checked:t,onChange:e,text:r,disabled:o,autoFocus:n})=>y.jsxs("label",{className:"flex cursor-pointer items-center gap-2 self-start text-sm text-gray-600",children:[y.jsx("input",{id:G.useFieldId(),type:"checkbox",checked:t,disabled:o,autoFocus:n,onChange:a=>{e(a.target.checked)},className:"size-4 accent-gray-900"}),r]}),rr=({choices:t,mode:e,value:r,onChange:o,disabled:n})=>{const a=G.useFieldId();return y.jsx("div",{role:e==="single"?"radiogroup":"group",id:a,className:"flex flex-col gap-2",children:t.map(s=>{const u=r.includes(s.value);return y.jsxs("label",{className:["flex cursor-pointer items-start gap-3 rounded-md border bg-white px-3 py-2.5 text-sm",u&&"border-gray-900",!u&&"border-gray-300 hover:border-gray-400"].filter(Boolean).join(" "),children:[y.jsx("input",{type:e==="single"?"radio":"checkbox",name:a,checked:u,disabled:n,onChange:()=>{if(e==="single"){o([s.value]);return}o(u?r.filter(i=>i!==s.value):[...r,s.value])},className:"mt-0.5 accent-gray-900"}),y.jsxs("span",{className:"flex flex-col gap-0.5",children:[y.jsx("span",{className:"font-medium",children:s.label}),s.description&&y.jsx("span",{className:"text-gray-500",children:s.description})]})]},s.value)})})},or=({label:t,helpText:e,optional:r,error:o,children:n})=>{const a=C.useId();return y.jsx(G.FieldContext.Provider,{value:a,children:y.jsxs("div",{className:"flex flex-col gap-1",children:[y.jsxs(G.Label,{htmlFor:a,children:[t,r&&y.jsx("span",{className:"ml-1.5 text-xs font-normal text-gray-500",children:"optional"})]}),n,e&&y.jsx(G.Hint,{children:e}),o&&y.jsx("p",{role:"alert",className:"text-xs text-red-600",children:o})]})})},ar=({children:t,description:e,level:r=3})=>r===2?y.jsxs("div",{className:"flex flex-col gap-1 pt-2",children:[y.jsx("h2",{className:"text-lg font-semibold text-gray-900",children:t}),e&&y.jsx("p",{className:"text-sm text-gray-500",children:e})]}):y.jsxs("div",{className:"flex flex-col gap-1",children:[y.jsx("h3",{className:"text-base font-semibold text-gray-900",children:t}),e&&y.jsx("p",{className:"text-sm text-gray-500",children:e})]}),ir=({children:t})=>y.jsx("p",{className:"text-xs text-gray-500",children:t}),sr=({src:t,alt:e,size:r})=>{const o={thumbnail:"max-h-16",small:"max-h-32",medium:"max-h-64",large:"max-h-96"}[r??"large"];return y.jsx("img",{src:t,alt:e,loading:"lazy",className:["max-w-full self-start rounded-md border border-gray-200 object-contain",r?o:""].join(" ")})},Ie={CONTROL_CLASS_NAME:"w-full rounded-md border border-gray-300 px-3 py-2 text-sm shadow-sm focus:border-gray-900 focus:outline-none enabled:bg-white disabled:bg-gray-100 disabled:text-gray-500",SELECT_CLASS_NAME:"w-full appearance-none rounded-md border border-gray-300 py-2 pr-9 pl-3 text-sm shadow-sm focus:border-gray-900 focus:outline-none enabled:bg-white disabled:bg-gray-100 disabled:text-gray-500"},lr=({value:t,onChange:e,type:r="text",...o})=>y.jsx("input",{...o,id:G.useFieldId(),type:r,value:t,onChange:n=>{e(n.target.value)},className:Ie.CONTROL_CLASS_NAME}),ur=({htmlFor:t,children:e})=>y.jsx("label",{htmlFor:t,className:"text-sm font-medium",children:e}),cr=({href:t,children:e,external:r=!1,className:o="text-blue-600 underline-offset-2 hover:text-blue-800 hover:underline"})=>r?y.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:o,children:e}):y.jsx("a",{href:t,className:o,onClick:n=>{n.metaKey||n.ctrlKey||n.shiftKey||n.button!==0||(n.preventDefault(),G.navigateTo(t))},children:e}),dr=({items:t})=>y.jsx("dl",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-4",children:t.map((e,r)=>y.jsxs("div",{className:"flex min-w-0 flex-col gap-1 rounded-lg border border-gray-200 bg-white px-4 py-3",children:[e.label&&y.jsx("dt",{className:"text-sm text-gray-500",children:e.label}),y.jsx("dd",{className:"text-2xl font-semibold wrap-break-word text-gray-900",children:e.value}),e.description&&y.jsx("dd",{className:"text-xs text-gray-500",children:e.description})]},r))}),Ct=()=>y.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:"pointer-events-none absolute top-1/2 right-3 size-4 -translate-y-1/2 text-gray-500",children:y.jsx("path",{d:"M6 8l4 4 4-4"})}),fr=({choices:t,value:e,onChange:r,placeholder:o="Add…",isFull:n=!1,disabled:a,autoFocus:s})=>{const u=t.filter(l=>!e.includes(l.value)),i=t.filter(l=>e.includes(l.value));return y.jsxs("div",{className:"divide-y divide-gray-200 rounded-md border border-gray-300 bg-gray-50 text-sm",children:[y.jsx("div",{className:"p-2",children:y.jsxs("div",{className:"relative",children:[y.jsxs("select",{id:G.useFieldId(),value:"",disabled:a||n||u.length===0,autoFocus:s,onChange:l=>{r([...e,l.target.value])},className:Ie.SELECT_CLASS_NAME,children:[y.jsx("option",{value:"",disabled:!0,children:o}),u.map(l=>y.jsx("option",{value:l.value,children:l.label},l.value))]}),y.jsx(Ct,{})]})}),i.map(l=>y.jsxs("div",{className:["flex items-center justify-between gap-3 py-1.5 pr-3.5 pl-5 last:rounded-b-md",a?"min-h-9 bg-gray-100 text-gray-500":"bg-white text-gray-900"].join(" "),children:[l.label,!a&&y.jsx("button",{type:"button","aria-label":`Remove ${l.label}`,disabled:a,onClick:()=>{r(e.filter(c=>c!==l.value))},className:"flex size-6 shrink-0 items-center justify-center rounded text-gray-400 hover:bg-gray-100 hover:text-gray-900 disabled:cursor-not-allowed disabled:opacity-50",children:y.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",className:"size-3.5",children:y.jsx("path",{d:"M6 6l8 8m0-8-8 8"})})})]},l.value))]})},pr=({choices:t,value:e,onChange:r,placeholder:o="Choose…",disabled:n,autoFocus:a})=>y.jsxs("div",{className:"relative",children:[y.jsxs("select",{id:G.useFieldId(),value:e,disabled:n,autoFocus:a,onChange:s=>{r(s.target.value)},className:Ie.SELECT_CLASS_NAME,children:[y.jsx("option",{value:"",disabled:!0,children:o}),t.map(s=>y.jsx("option",{value:s.value,children:s.label},s.value))]}),y.jsx(Ct,{})]}),hr=({children:t})=>y.jsx("div",{className:"flex flex-col gap-3 text-sm [&>div]:flex [&>div]:flex-col [&>div]:gap-3 leading-6 text-gray-700 [&_a]:text-blue-600 [&_a:hover]:underline [&_code]:rounded [&_code]:bg-gray-100 [&_code]:px-1 [&_code]:py-0.5 [&_code]:text-[13px] [&_h1]:text-lg [&_h1]:font-semibold [&_h1]:text-gray-900 [&_h2]:text-base [&_h2]:font-semibold [&_h2]:text-gray-900 [&_h3]:font-semibold [&_h3]:text-gray-900 [&_li]:my-0.5 [&_ol]:list-decimal [&_ol]:pl-5 [&_pre]:overflow-x-auto [&_pre]:rounded-md [&_pre]:bg-gray-100 [&_pre]:p-3 [&_pre_code]:bg-transparent [&_pre_code]:p-0 [&_strong]:font-semibold [&_strong]:text-gray-900 [&_ul]:list-disc [&_ul]:pl-5",children:t}),vr=({items:t})=>{const[e,r]=C.useState(null),o=C.useRef(null);return C.useEffect(()=>{if(!e)return;const n=a=>{const s=a.type==="mousedown"&&o.current?.contains(a.target),u=a instanceof KeyboardEvent&&a.key!=="Escape";!s&&!u&&r(null)};return document.addEventListener("mousedown",n),document.addEventListener("keydown",n),window.addEventListener("scroll",n,!0),window.addEventListener("resize",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("keydown",n),window.removeEventListener("scroll",n,!0),window.removeEventListener("resize",n)}},[e]),y.jsxs("div",{ref:o,className:"flex justify-end",children:[y.jsx("button",{type:"button","aria-label":"Row actions","aria-expanded":e!==null,onClick:n=>{const a=n.currentTarget.getBoundingClientRect();r(e?null:{top:a.bottom+4,right:window.innerWidth-a.right})},className:"rounded-md p-1 text-gray-500 hover:bg-gray-100 hover:text-gray-900",children:y.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 20 20",className:"h-5 w-5 fill-current",children:[y.jsx("circle",{cx:"4.5",cy:"10",r:"1.5"}),y.jsx("circle",{cx:"10",cy:"10",r:"1.5"}),y.jsx("circle",{cx:"15.5",cy:"10",r:"1.5"})]})}),e&&y.jsx("div",{style:{top:e.top,right:e.right},className:"fixed z-20 flex min-w-40 flex-col rounded-lg border border-gray-200 bg-white py-1 shadow-lg",children:t.map(n=>y.jsx(G.Link,{href:n.href,className:"px-3 py-2 text-sm whitespace-nowrap text-gray-700 hover:bg-gray-50 hover:text-gray-900",children:n.label},n.label))})]})};function fe(t){"@babel/helpers - typeof";return fe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fe(t)}function mr(t,e){if(fe(t)!="object"||!t)return t;var r;if(typeof Symbol<"u"&&(r=t[Symbol.toPrimitive])!==void 0){var o=r.call(t,e);if(fe(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function It(t){var e=mr(t,"string");return fe(e)=="symbol"?e:e+""}function be(t,e,r){return(e=It(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Mt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,o)}return r}function M(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Mt(Object(r),!0).forEach(function(o){be(t,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Mt(Object(r)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))})}return t}function gr(t){if(Array.isArray(t))return t}function br(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var o,n,a,s,u=[],i=!0,l=!1;try{if(a=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;i=!1}else for(;!(i=(o=a.call(r)).done)&&(u.push(o.value),u.length!==e);i=!0);}catch(c){l=!0,n=c}finally{try{if(!i&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(l)throw n}}return u}}function Je(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,o=Array(e);r<e;r++)o[r]=t[r];return o}function Pt(t,e){if(t){if(typeof t=="string")return Je(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Je(t,e):void 0}}function yr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ne(t,e){return gr(t)||br(t,e)||Pt(t,e)||yr()}function Sr(t,e){if(t==null)return{};var r={};for(var o in t)if({}.hasOwnProperty.call(t,o)){if(e.indexOf(o)!==-1)continue;r[o]=t[o]}return r}function re(t,e){if(t==null)return{};var r,o,n=Sr(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(o=0;o<a.length;o++)r=a[o],e.indexOf(r)===-1&&{}.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}var xr=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function wr(t){var e=t.defaultInputValue,r=e===void 0?"":e,o=t.defaultMenuIsOpen,n=o===void 0?!1:o,a=t.defaultValue,s=a===void 0?null:a,u=t.inputValue,i=t.menuIsOpen,l=t.onChange,c=t.onInputChange,d=t.onMenuClose,g=t.onMenuOpen,b=t.value,v=re(t,xr),m=C.useState(u!==void 0?u:r),p=ne(m,2),h=p[0],x=p[1],S=C.useState(i!==void 0?i:n),E=ne(S,2),f=E[0],O=E[1],w=C.useState(b!==void 0?b:s),V=ne(w,2),A=V[0],_=V[1],W=C.useCallback(function(X,le){typeof l=="function"&&l(X,le),_(X)},[l]),B=C.useCallback(function(X,le){var ue;typeof c=="function"&&(ue=c(X,le)),x(ue!==void 0?ue:X)},[c]),oe=C.useCallback(function(){typeof g=="function"&&g(),O(!0)},[g]),ae=C.useCallback(function(){typeof d=="function"&&d(),O(!1)},[d]),R=u!==void 0?u:h,$=i!==void 0?i:f,te=b!==void 0?b:A;return M(M({},v),{},{inputValue:R,menuIsOpen:$,onChange:W,onInputChange:B,onMenuClose:ae,onMenuOpen:oe,value:te})}function P(){return P=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var o in r)({}).hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},P.apply(null,arguments)}function Or(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Et(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,It(o.key),o)}}function Cr(t,e,r){return e&&Et(t.prototype,e),r&&Et(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ze(t,e){return Ze=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Ze(t,e)}function Ir(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ze(t,e)}function Me(t){return Me=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Me(t)}function Vt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Vt=function(){return!!t})()}function Mr(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Pr(t,e){if(e&&(fe(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mr(t)}function Er(t){var e=Vt();return function(){var r,o=Me(t);if(e){var n=Me(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return Pr(this,r)}}function Vr(t){if(Array.isArray(t))return Je(t)}function Lr(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Tr(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
3
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qe(t){return Vr(t)||Lr(t)||Pt(t)||Tr()}function Dr(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function Fr(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var Ar=(function(){function t(r){var o=this;this._insertTag=function(n){var a;o.tags.length===0?o.insertionPoint?a=o.insertionPoint.nextSibling:o.prepend?a=o.container.firstChild:a=o.before:a=o.tags[o.tags.length-1].nextSibling,o.container.insertBefore(n,a),o.tags.push(n)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(o){o.forEach(this._insertTag)},e.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Fr(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var a=Dr(n);try{a.insertRule(o,a.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(o));this.ctr++},e.flush=function(){this.tags.forEach(function(o){var n;return(n=o.parentNode)==null?void 0:n.removeChild(o)}),this.tags=[],this.ctr=0},t})(),U="-ms-",Pe="-moz-",T="-webkit-",Lt="comm",et="rule",tt="decl",kr="@import",Tt="@keyframes",Nr="@layer",_r=Math.abs,Ee=String.fromCharCode,$r=Object.assign;function Hr(t,e){return j(t,0)^45?(((e<<2^j(t,0))<<2^j(t,1))<<2^j(t,2))<<2^j(t,3):0}function Dt(t){return t.trim()}function Rr(t,e){return(t=e.exec(t))?t[0]:t}function D(t,e,r){return t.replace(e,r)}function nt(t,e){return t.indexOf(e)}function j(t,e){return t.charCodeAt(e)|0}function ye(t,e,r){return t.slice(e,r)}function Z(t){return t.length}function rt(t){return t.length}function Ve(t,e){return e.push(t),t}function jr(t,e){return t.map(e).join("")}var Le=1,he=1,Ft=0,z=0,N=0,ve="";function Te(t,e,r,o,n,a,s){return{value:t,root:e,parent:r,type:o,props:n,children:a,line:Le,column:he,length:s,return:""}}function Se(t,e){return $r(Te("",null,null,"",null,null,0),t,{length:-t.length},e)}function Ur(){return N}function Br(){return N=z>0?j(ve,--z):0,he--,N===10&&(he=1,Le--),N}function q(){return N=z<Ft?j(ve,z++):0,he++,N===10&&(he=1,Le++),N}function Q(){return j(ve,z)}function De(){return z}function xe(t,e){return ye(ve,t,e)}function we(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function At(t){return Le=he=1,Ft=Z(ve=t),z=0,[]}function kt(t){return ve="",t}function Fe(t){return Dt(xe(z-1,ot(t===91?t+2:t===40?t+1:t)))}function zr(t){for(;(N=Q())&&N<33;)q();return we(t)>2||we(N)>3?"":" "}function Wr(t,e){for(;--e&&q()&&!(N<48||N>102||N>57&&N<65||N>70&&N<97););return xe(t,De()+(e<6&&Q()==32&&q()==32))}function ot(t){for(;q();)switch(N){case t:return z;case 34:case 39:t!==34&&t!==39&&ot(N);break;case 40:t===41&&ot(t);break;case 92:q();break}return z}function Gr(t,e){for(;q()&&t+N!==57;)if(t+N===84&&Q()===47)break;return"/*"+xe(e,z-1)+"*"+Ee(t===47?t:q())}function qr(t){for(;!we(Q());)q();return xe(t,z)}function Yr(t){return kt(Ae("",null,null,null,[""],t=At(t),0,[0],t))}function Ae(t,e,r,o,n,a,s,u,i){for(var l=0,c=0,d=s,g=0,b=0,v=0,m=1,p=1,h=1,x=0,S="",E=n,f=a,O=o,w=S;p;)switch(v=x,x=q()){case 40:if(v!=108&&j(w,d-1)==58){nt(w+=D(Fe(x),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:w+=Fe(x);break;case 9:case 10:case 13:case 32:w+=zr(v);break;case 92:w+=Wr(De()-1,7);continue;case 47:switch(Q()){case 42:case 47:Ve(Kr(Gr(q(),De()),e,r),i);break;default:w+="/"}break;case 123*m:u[l++]=Z(w)*h;case 125*m:case 59:case 0:switch(x){case 0:case 125:p=0;case 59+c:h==-1&&(w=D(w,/\f/g,"")),b>0&&Z(w)-d&&Ve(b>32?_t(w+";",o,r,d-1):_t(D(w," ","")+";",o,r,d-2),i);break;case 59:w+=";";default:if(Ve(O=Nt(w,e,r,l,c,n,u,S,E=[],f=[],d),a),x===123)if(c===0)Ae(w,e,O,O,E,a,d,u,f);else switch(g===99&&j(w,3)===110?100:g){case 100:case 108:case 109:case 115:Ae(t,O,O,o&&Ve(Nt(t,O,O,0,0,n,u,S,n,E=[],d),f),n,f,d,u,o?E:f);break;default:Ae(w,O,O,O,[""],f,0,u,f)}}l=c=b=0,m=h=1,S=w="",d=s;break;case 58:d=1+Z(w),b=v;default:if(m<1){if(x==123)--m;else if(x==125&&m++==0&&Br()==125)continue}switch(w+=Ee(x),x*m){case 38:h=c>0?1:(w+="\f",-1);break;case 44:u[l++]=(Z(w)-1)*h,h=1;break;case 64:Q()===45&&(w+=Fe(q())),g=Q(),c=d=Z(S=w+=qr(De())),x++;break;case 45:v===45&&Z(w)==2&&(m=0)}}return a}function Nt(t,e,r,o,n,a,s,u,i,l,c){for(var d=n-1,g=n===0?a:[""],b=rt(g),v=0,m=0,p=0;v<o;++v)for(var h=0,x=ye(t,d+1,d=_r(m=s[v])),S=t;h<b;++h)(S=Dt(m>0?g[h]+" "+x:D(x,/&\f/g,g[h])))&&(i[p++]=S);return Te(t,e,r,n===0?et:u,i,l,c)}function Kr(t,e,r){return Te(t,e,r,Lt,Ee(Ur()),ye(t,2,-2),0)}function _t(t,e,r,o){return Te(t,e,r,tt,ye(t,0,o),ye(t,o+1,-1),o)}function me(t,e){for(var r="",o=rt(t),n=0;n<o;n++)r+=e(t[n],n,t,e)||"";return r}function Xr(t,e,r,o){switch(t.type){case Nr:if(t.children.length)break;case kr:case tt:return t.return=t.return||t.value;case Lt:return"";case Tt:return t.return=t.value+"{"+me(t.children,o)+"}";case et:t.value=t.props.join(",")}return Z(r=me(t.children,o))?t.return=t.value+"{"+r+"}":""}function Jr(t){var e=rt(t);return function(r,o,n,a){for(var s="",u=0;u<e;u++)s+=t[u](r,o,n,a)||"";return s}}function Zr(t){return function(e){e.root||(e=e.return)&&t(e)}}function Qr(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var eo=function(e,r,o){for(var n=0,a=0;n=a,a=Q(),n===38&&a===12&&(r[o]=1),!we(a);)q();return xe(e,z)},to=function(e,r){var o=-1,n=44;do switch(we(n)){case 0:n===38&&Q()===12&&(r[o]=1),e[o]+=eo(z-1,r,o);break;case 2:e[o]+=Fe(n);break;case 4:if(n===44){e[++o]=Q()===58?"&\f":"",r[o]=e[o].length;break}default:e[o]+=Ee(n)}while(n=q());return e},no=function(e,r){return kt(to(At(e),r))},$t=new WeakMap,ro=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var r=e.value,o=e.parent,n=e.column===o.column&&e.line===o.line;o.type!=="rule";)if(o=o.parent,!o)return;if(!(e.props.length===1&&r.charCodeAt(0)!==58&&!$t.get(o))&&!n){$t.set(e,!0);for(var a=[],s=no(r,a),u=o.props,i=0,l=0;i<s.length;i++)for(var c=0;c<u.length;c++,l++)e.props[l]=a[i]?s[i].replace(/&\f/g,u[c]):u[c]+" "+s[i]}}},oo=function(e){if(e.type==="decl"){var r=e.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(e.return="",e.value="")}};function Ht(t,e){switch(Hr(t,e)){case 5103:return T+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return T+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return T+t+Pe+t+U+t+t;case 6828:case 4268:return T+t+U+t+t;case 6165:return T+t+U+"flex-"+t+t;case 5187:return T+t+D(t,/(\w+).+(:[^]+)/,T+"box-$1$2"+U+"flex-$1$2")+t;case 5443:return T+t+U+"flex-item-"+D(t,/flex-|-self/,"")+t;case 4675:return T+t+U+"flex-line-pack"+D(t,/align-content|flex-|-self/,"")+t;case 5548:return T+t+U+D(t,"shrink","negative")+t;case 5292:return T+t+U+D(t,"basis","preferred-size")+t;case 6060:return T+"box-"+D(t,"-grow","")+T+t+U+D(t,"grow","positive")+t;case 4554:return T+D(t,/([^-])(transform)/g,"$1"+T+"$2")+t;case 6187:return D(D(D(t,/(zoom-|grab)/,T+"$1"),/(image-set)/,T+"$1"),t,"")+t;case 5495:case 3959:return D(t,/(image-set\([^]*)/,T+"$1$`$1");case 4968:return D(D(t,/(.+:)(flex-)?(.*)/,T+"box-pack:$3"+U+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+T+t+t;case 4095:case 3583:case 4068:case 2532:return D(t,/(.+)-inline(.+)/,T+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Z(t)-1-e>6)switch(j(t,e+1)){case 109:if(j(t,e+4)!==45)break;case 102:return D(t,/(.+:)(.+)-([^]+)/,"$1"+T+"$2-$3$1"+Pe+(j(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~nt(t,"stretch")?Ht(D(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(j(t,e+1)!==115)break;case 6444:switch(j(t,Z(t)-3-(~nt(t,"!important")&&10))){case 107:return D(t,":",":"+T)+t;case 101:return D(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+T+(j(t,14)===45?"inline-":"")+"box$3$1"+T+"$2$3$1"+U+"$2box$3")+t}break;case 5936:switch(j(t,e+11)){case 114:return T+t+U+D(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return T+t+U+D(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return T+t+U+D(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return T+t+U+t+t}return t}var ao=function(e,r,o,n){if(e.length>-1&&!e.return)switch(e.type){case tt:e.return=Ht(e.value,e.length);break;case Tt:return me([Se(e,{value:D(e.value,"@","@"+T)})],n);case et:if(e.length)return jr(e.props,function(a){switch(Rr(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return me([Se(e,{props:[D(a,/:(read-\w+)/,":"+Pe+"$1")]})],n);case"::placeholder":return me([Se(e,{props:[D(a,/:(plac\w+)/,":"+T+"input-$1")]}),Se(e,{props:[D(a,/:(plac\w+)/,":"+Pe+"$1")]}),Se(e,{props:[D(a,/:(plac\w+)/,U+"input-$1")]})],n)}return""})}},io=[ao],so=function(e){var r=e.key;if(r==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(m){var p=m.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||io,a={},s,u=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(m){for(var p=m.getAttribute("data-emotion").split(" "),h=1;h<p.length;h++)a[p[h]]=!0;u.push(m)});var i,l=[ro,oo];{var c,d=[Xr,Zr(function(m){c.insert(m)})],g=Jr(l.concat(n,d)),b=function(p){return me(Yr(p),g)};i=function(p,h,x,S){c=x,b(p?p+"{"+h.styles+"}":h.styles),S&&(v.inserted[h.name]=!0)}}var v={key:r,sheet:new Ar({key:r,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return v.sheet.hydrate(u),v},at={exports:{}},F={};var Rt;function lo(){if(Rt)return F;Rt=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,o=t?Symbol.for("react.fragment"):60107,n=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,u=t?Symbol.for("react.context"):60110,i=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,c=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,g=t?Symbol.for("react.suspense_list"):60120,b=t?Symbol.for("react.memo"):60115,v=t?Symbol.for("react.lazy"):60116,m=t?Symbol.for("react.block"):60121,p=t?Symbol.for("react.fundamental"):60117,h=t?Symbol.for("react.responder"):60118,x=t?Symbol.for("react.scope"):60119;function S(f){if(typeof f=="object"&&f!==null){var O=f.$$typeof;switch(O){case e:switch(f=f.type,f){case i:case l:case o:case a:case n:case d:return f;default:switch(f=f&&f.$$typeof,f){case u:case c:case v:case b:case s:return f;default:return O}}case r:return O}}}function E(f){return S(f)===l}return F.AsyncMode=i,F.ConcurrentMode=l,F.ContextConsumer=u,F.ContextProvider=s,F.Element=e,F.ForwardRef=c,F.Fragment=o,F.Lazy=v,F.Memo=b,F.Portal=r,F.Profiler=a,F.StrictMode=n,F.Suspense=d,F.isAsyncMode=function(f){return E(f)||S(f)===i},F.isConcurrentMode=E,F.isContextConsumer=function(f){return S(f)===u},F.isContextProvider=function(f){return S(f)===s},F.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},F.isForwardRef=function(f){return S(f)===c},F.isFragment=function(f){return S(f)===o},F.isLazy=function(f){return S(f)===v},F.isMemo=function(f){return S(f)===b},F.isPortal=function(f){return S(f)===r},F.isProfiler=function(f){return S(f)===a},F.isStrictMode=function(f){return S(f)===n},F.isSuspense=function(f){return S(f)===d},F.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===o||f===l||f===a||f===n||f===d||f===g||typeof f=="object"&&f!==null&&(f.$$typeof===v||f.$$typeof===b||f.$$typeof===s||f.$$typeof===u||f.$$typeof===c||f.$$typeof===p||f.$$typeof===h||f.$$typeof===x||f.$$typeof===m)},F.typeOf=S,F}var jt;function uo(){return jt||(jt=1,at.exports=lo()),at.exports}var it,Ut;function co(){if(Ut)return it;Ut=1;var t=uo(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},n={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[t.ForwardRef]=o,a[t.Memo]=n;function s(v){return t.isMemo(v)?n:a[v.$$typeof]||e}var u=Object.defineProperty,i=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,g=Object.prototype;function b(v,m,p){if(typeof m!="string"){if(g){var h=d(m);h&&h!==g&&b(v,h,p)}var x=i(m);l&&(x=x.concat(l(m)));for(var S=s(v),E=s(m),f=0;f<x.length;++f){var O=x[f];if(!r[O]&&!(p&&p[O])&&!(E&&E[O])&&!(S&&S[O])){var w=c(m,O);try{u(v,O,w)}catch{}}}}return v}return it=b,it}co();var fo=!0;function po(t,e,r){var o="";return r.split(" ").forEach(function(n){t[n]!==void 0?e.push(t[n]+";"):n&&(o+=n+" ")}),o}var Bt=function(e,r,o){var n=e.key+"-"+r.name;(o===!1||fo===!1)&&e.registered[n]===void 0&&(e.registered[n]=r.styles)},ho=function(e,r,o){Bt(e,r,o);var n=e.key+"-"+r.name;if(e.inserted[r.name]===void 0){var a=r;do e.insert(r===a?"."+n:"",a,e.sheet,!0),a=a.next;while(a!==void 0)}};function vo(t){for(var e=0,r,o=0,n=t.length;n>=4;++o,n-=4)r=t.charCodeAt(o)&255|(t.charCodeAt(++o)&255)<<8|(t.charCodeAt(++o)&255)<<16|(t.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(n){case 3:e^=(t.charCodeAt(o+2)&255)<<16;case 2:e^=(t.charCodeAt(o+1)&255)<<8;case 1:e^=t.charCodeAt(o)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var mo={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},go=/[A-Z]|^ms/g,bo=/_EMO_([^_]+?)_([^]*?)_EMO_/g,zt=function(e){return e.charCodeAt(1)===45},Wt=function(e){return e!=null&&typeof e!="boolean"},st=Qr(function(t){return zt(t)?t:t.replace(go,"-$&").toLowerCase()}),Gt=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(bo,function(o,n,a){return ee={name:n,styles:a,next:ee},n})}return mo[e]!==1&&!zt(e)&&typeof r=="number"&&r!==0?r+"px":r};function Oe(t,e,r){if(r==null)return"";var o=r;if(o.__emotion_styles!==void 0)return o;switch(typeof r){case"boolean":return"";case"object":{var n=r;if(n.anim===1)return ee={name:n.name,styles:n.styles,next:ee},n.name;var a=r;if(a.styles!==void 0){var s=a.next;if(s!==void 0)for(;s!==void 0;)ee={name:s.name,styles:s.styles,next:ee},s=s.next;var u=a.styles+";";return u}return yo(t,e,r)}case"function":{if(t!==void 0){var i=ee,l=r(t);return ee=i,Oe(t,e,l)}break}}var c=r;return c}function yo(t,e,r){var o="";if(Array.isArray(r))for(var n=0;n<r.length;n++)o+=Oe(t,e,r[n])+";";else for(var a in r){var s=r[a];if(typeof s!="object"){var u=s;Wt(u)&&(o+=st(a)+":"+Gt(a,u)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&e==null)for(var i=0;i<s.length;i++)Wt(s[i])&&(o+=st(a)+":"+Gt(a,s[i])+";");else{var l=Oe(t,e,s);switch(a){case"animation":case"animationName":{o+=st(a)+":"+l+";";break}default:o+=a+"{"+l+"}"}}}return o}var qt=/label:\s*([^\s;{]+)\s*(;|$)/g,ee;function Yt(t,e,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,n="";ee=void 0;var a=t[0];if(a==null||a.raw===void 0)o=!1,n+=Oe(r,e,a);else{var s=a;n+=s[0]}for(var u=1;u<t.length;u++)if(n+=Oe(r,e,t[u]),o){var i=a;n+=i[u]}qt.lastIndex=0;for(var l="",c;(c=qt.exec(n))!==null;)l+="-"+c[1];var d=vo(n)+l;return{name:d,styles:n,next:ee}}var So=function(e){return e()},xo=L.useInsertionEffect?L.useInsertionEffect:!1,wo=xo||So,Kt=L.createContext(typeof HTMLElement<"u"?so({key:"css"}):null);Kt.Provider;var Oo=function(e){return C.forwardRef(function(r,o){var n=C.useContext(Kt);return e(r,n,o)})},Co=L.createContext({}),lt={}.hasOwnProperty,ut="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Io=function(e,r){var o={};for(var n in r)lt.call(r,n)&&(o[n]=r[n]);return o[ut]=e,o},Mo=function(e){var r=e.cache,o=e.serialized,n=e.isStringTag;return Bt(r,o,n),wo(function(){return ho(r,o,n)}),null},Po=Oo(function(t,e,r){var o=t.css;typeof o=="string"&&e.registered[o]!==void 0&&(o=e.registered[o]);var n=t[ut],a=[o],s="";typeof t.className=="string"?s=po(e.registered,a,t.className):t.className!=null&&(s=t.className+" ");var u=Yt(a,void 0,L.useContext(Co));s+=e.key+"-"+u.name;var i={};for(var l in t)lt.call(t,l)&&l!=="css"&&l!==ut&&(i[l]=t[l]);return i.className=s,r&&(i.ref=r),L.createElement(L.Fragment,null,L.createElement(Mo,{cache:e,serialized:u,isStringTag:typeof n=="string"}),L.createElement(n,i))}),Eo=Po,I=function(e,r){var o=arguments;if(r==null||!lt.call(r,"css"))return L.createElement.apply(void 0,o);var n=o.length,a=new Array(n);a[0]=Eo,a[1]=Io(e,r);for(var s=2;s<n;s++)a[s]=o[s];return L.createElement.apply(null,a)};(function(t){var e;e||(e=t.JSX||(t.JSX={}))})(I||(I={}));function ct(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return Yt(e)}function Vo(){var t=ct.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function Lo(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}const To=Math.min,Do=Math.max,ke=Math.round,Ne=Math.floor,dt=t=>({x:t,y:t});function Fo(t){const{x:e,y:r,width:o,height:n}=t;return{width:o,height:n,top:r,left:e,right:e+o,bottom:r+n,x:e,y:r}}function _e(){return typeof window<"u"}function Xt(t){return Zt(t)?(t.nodeName||"").toLowerCase():"#document"}function pe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Jt(t){var e;return(e=(Zt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Zt(t){return _e()?t instanceof Node||t instanceof pe(t).Node:!1}function Ao(t){return _e()?t instanceof Element||t instanceof pe(t).Element:!1}function ft(t){return _e()?t instanceof HTMLElement||t instanceof pe(t).HTMLElement:!1}function Qt(t){return!_e()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof pe(t).ShadowRoot}function en(t){const{overflow:e,overflowX:r,overflowY:o,display:n}=tn(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+r)&&n!=="inline"&&n!=="contents"}function ko(t){return/^(html|body|#document)$/.test(Xt(t))}function tn(t){return pe(t).getComputedStyle(t)}function No(t){if(Xt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Qt(t)&&t.host||Jt(t);return Qt(e)?e.host:e}function nn(t){const e=No(t);return ko(e)?(t.ownerDocument||t).body:ft(e)&&en(e)?e:nn(e)}function $e(t,e,r){var o;e===void 0&&(e=[]),r===void 0&&(r=!0);const n=nn(t),a=n===((o=t.ownerDocument)==null?void 0:o.body),s=pe(n);if(a){const u=_o(s);return e.concat(s,s.visualViewport||[],en(n)?n:[],u&&r?$e(u):[])}else return e.concat(n,$e(n,[],r))}function _o(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function $o(t){const e=tn(t);let r=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const n=ft(t),a=n?t.offsetWidth:r,s=n?t.offsetHeight:o,u=ke(r)!==a||ke(o)!==s;return u&&(r=a,o=s),{width:r,height:o,$:u}}function pt(t){return Ao(t)?t:t.contextElement}function Ho(t){const e=pt(t);if(!ft(e))return dt(1);const r=e.getBoundingClientRect(),{width:o,height:n,$:a}=$o(e);let s=(a?ke(r.width):r.width)/o,u=(a?ke(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!u||!Number.isFinite(u))&&(u=1),{x:s,y:u}}function rn(t,e,r,o){e===void 0&&(e=!1);const n=t.getBoundingClientRect();pt(t);let a=dt(1);e&&(a=Ho(t));const s=dt(0);let u=(n.left+s.x)/a.x,i=(n.top+s.y)/a.y,l=n.width/a.x,c=n.height/a.y;return Fo({width:l,height:c,x:u,y:i})}function on(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Ro(t,e,r){let o=null,n;const a=Jt(t);function s(){var c;clearTimeout(n),(c=o)==null||c.disconnect(),o=null}function u(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),s();const g=t.getBoundingClientRect(),{left:b,top:v,width:m,height:p}=g;if(c||e(),!m||!p)return;const h=Ne(v),x=Ne(a.clientWidth-(b+m)),S=Ne(a.clientHeight-(v+p)),E=Ne(b),O={rootMargin:-h+"px "+-x+"px "+-S+"px "+-E+"px",threshold:Do(0,To(1,d))||1};let w=!0;function V(A){const _=A[0].intersectionRatio;if(!on(g,t.getBoundingClientRect()))return u();if(_!==d){if(!w)return u();_?u(!1,_):n=setTimeout(()=>{u(!1,1e-7)},1e3)}w=!1}try{o=new IntersectionObserver(V,{...O,root:a.ownerDocument})}catch{o=new IntersectionObserver(V,O)}o.observe(t)}const i=pe(t),l=()=>u(r);return i.addEventListener("resize",l),u(!0),()=>{i.removeEventListener("resize",l),s()}}function jo(t,e,r,o){o===void 0&&(o={});const{ancestorScroll:n=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:i=!1}=o,l=pt(t),c=n||a?[...l?$e(l):[],...e?$e(e):[]]:[];c.forEach(h=>{n&&h.addEventListener("scroll",r),a&&h.addEventListener("resize",r)});const d=l&&u?Ro(l,r,a):null;let g=-1,b=null;s&&(b=new ResizeObserver(h=>{let[x]=h;x&&x.target===l&&b&&e&&(b.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var S;(S=b)==null||S.observe(e)})),r()}),l&&!i&&b.observe(l),e&&b.observe(e));let v,m=i?rn(t):null;i&&p();function p(){const h=rn(t);m&&!on(m,h)&&r(),m=h,v=requestAnimationFrame(p)}return r(),()=>{var h;c.forEach(x=>{n&&x.removeEventListener("scroll",r),a&&x.removeEventListener("resize",r)}),d?.(),(h=b)==null||h.disconnect(),b=null,i&&cancelAnimationFrame(v)}}var ht=C.useLayoutEffect,Uo=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],He=function(){};function Bo(t,e){return e?e[0]==="-"?t+e:t+"__"+e:t}function zo(t,e){for(var r=arguments.length,o=new Array(r>2?r-2:0),n=2;n<r;n++)o[n-2]=arguments[n];var a=[].concat(o);if(e&&t)for(var s in e)e.hasOwnProperty(s)&&e[s]&&a.push("".concat(Bo(t,s)));return a.filter(function(u){return u}).map(function(u){return String(u).trim()}).join(" ")}var an=function(e){return Qo(e)?e.filter(Boolean):fe(e)==="object"&&e!==null?[e]:[]},sn=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var r=re(e,Uo);return M({},r)},k=function(e,r,o){var n=e.cx,a=e.getStyles,s=e.getClassNames,u=e.className;return{css:a(r,e),className:n(o??{},s(r,e),u)}};function Re(t){return[document.documentElement,document.body,window].indexOf(t)>-1}function Wo(t){return Re(t)?window.innerHeight:t.clientHeight}function ln(t){return Re(t)?window.pageYOffset:t.scrollTop}function je(t,e){if(Re(t)){window.scrollTo(0,e);return}t.scrollTop=e}function Go(t){var e=getComputedStyle(t),r=e.position==="absolute",o=/(auto|scroll)/;if(e.position==="fixed")return document.documentElement;for(var n=t;n=n.parentElement;)if(e=getComputedStyle(n),!(r&&e.position==="static")&&o.test(e.overflow+e.overflowY+e.overflowX))return n;return document.documentElement}function qo(t,e,r,o){return r*((t=t/o-1)*t*t+1)+e}function Ue(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:He,n=ln(t),a=e-n,s=10,u=0;function i(){u+=s;var l=qo(u,n,a,r);je(t,l),u<r?window.requestAnimationFrame(i):o(t)}i()}function un(t,e){var r=t.getBoundingClientRect(),o=e.getBoundingClientRect(),n=e.offsetHeight/3;o.bottom+n>r.bottom?je(t,Math.min(e.offsetTop+e.clientHeight-t.offsetHeight+n,t.scrollHeight)):o.top-n<r.top&&je(t,Math.max(e.offsetTop-n,0))}function Yo(t){var e=t.getBoundingClientRect();return{bottom:e.bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width}}function cn(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function Ko(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var dn=!1,Xo={get passive(){return dn=!0}},Be=typeof window<"u"?window:{};Be.addEventListener&&Be.removeEventListener&&(Be.addEventListener("p",He,Xo),Be.removeEventListener("p",He,!1));var Jo=dn;function Zo(t){return t!=null}function Qo(t){return Array.isArray(t)}function ze(t,e,r){return t?e:r}function vs(t){return t}function ms(t){return t}var ea=function(e){for(var r=arguments.length,o=new Array(r>1?r-1:0),n=1;n<r;n++)o[n-1]=arguments[n];var a=Object.entries(e).filter(function(s){var u=ne(s,1),i=u[0];return!o.includes(i)});return a.reduce(function(s,u){var i=ne(u,2),l=i[0],c=i[1];return s[l]=c,s},{})},ta=["children","innerProps"],na=["children","innerProps"];function ra(t){var e=t.maxHeight,r=t.menuEl,o=t.minHeight,n=t.placement,a=t.shouldScroll,s=t.isFixedPosition,u=t.controlHeight,i=Go(r),l={placement:"bottom",maxHeight:e};if(!r||!r.offsetParent)return l;var c=i.getBoundingClientRect(),d=c.height,g=r.getBoundingClientRect(),b=g.bottom,v=g.height,m=g.top,p=r.offsetParent.getBoundingClientRect(),h=p.top,x=s?window.innerHeight:Wo(i),S=ln(i),E=parseInt(getComputedStyle(r).marginBottom,10),f=parseInt(getComputedStyle(r).marginTop,10),O=h-f,w=x-m,V=O+S,A=d-S-m,_=b-x+S+E,W=S+m-f,B=160;switch(n){case"auto":case"bottom":if(w>=v)return{placement:"bottom",maxHeight:e};if(A>=v&&!s)return a&&Ue(i,_,B),{placement:"bottom",maxHeight:e};if(!s&&A>=o||s&&w>=o){a&&Ue(i,_,B);var oe=s?w-E:A-E;return{placement:"bottom",maxHeight:oe}}if(n==="auto"||s){var ae=e,R=s?O:V;return R>=o&&(ae=Math.min(R-E-u,e)),{placement:"top",maxHeight:ae}}if(n==="bottom")return a&&je(i,_),{placement:"bottom",maxHeight:e};break;case"top":if(O>=v)return{placement:"top",maxHeight:e};if(V>=v&&!s)return a&&Ue(i,W,B),{placement:"top",maxHeight:e};if(!s&&V>=o||s&&O>=o){var $=e;return(!s&&V>=o||s&&O>=o)&&($=s?O-f:V-f),a&&Ue(i,W,B),{placement:"top",maxHeight:$}}return{placement:"bottom",maxHeight:e};default:throw new Error('Invalid placement provided "'.concat(n,'".'))}return l}function oa(t){var e={bottom:"top",top:"bottom"};return t?e[t]:"bottom"}var fn=function(e){return e==="auto"?"bottom":e},aa=function(e,r){var o,n=e.placement,a=e.theme,s=a.borderRadius,u=a.spacing,i=a.colors;return M((o={label:"menu"},be(o,oa(n),"100%"),be(o,"position","absolute"),be(o,"width","100%"),be(o,"zIndex",1),o),r?{}:{backgroundColor:i.neutral0,borderRadius:s,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:u.menuGutter,marginTop:u.menuGutter})},pn=C.createContext(null),ia=function(e){var r=e.children,o=e.minMenuHeight,n=e.maxMenuHeight,a=e.menuPlacement,s=e.menuPosition,u=e.menuShouldScrollIntoView,i=e.theme,l=C.useContext(pn)||{},c=l.setPortalPlacement,d=C.useRef(null),g=C.useState(n),b=ne(g,2),v=b[0],m=b[1],p=C.useState(null),h=ne(p,2),x=h[0],S=h[1],E=i.spacing.controlHeight;return ht(function(){var f=d.current;if(f){var O=s==="fixed",w=u&&!O,V=ra({maxHeight:n,menuEl:f,minHeight:o,placement:a,shouldScroll:w,isFixedPosition:O,controlHeight:E});m(V.maxHeight),S(V.placement),c?.(V.placement)}},[n,a,s,u,o,c,E]),r({ref:d,placerProps:M(M({},e),{},{placement:x||fn(a),maxHeight:v})})},sa=function(e){var r=e.children,o=e.innerRef,n=e.innerProps;return I("div",P({},k(e,"menu",{menu:!0}),{ref:o},n),r)},la=sa,ua=function(e,r){var o=e.maxHeight,n=e.theme.spacing.baseUnit;return M({maxHeight:o,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},r?{}:{paddingBottom:n,paddingTop:n})},ca=function(e){var r=e.children,o=e.innerProps,n=e.innerRef,a=e.isMulti;return I("div",P({},k(e,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:n},o),r)},hn=function(e,r){var o=e.theme,n=o.spacing.baseUnit,a=o.colors;return M({textAlign:"center"},r?{}:{color:a.neutral40,padding:"".concat(n*2,"px ").concat(n*3,"px")})},da=hn,fa=hn,pa=function(e){var r=e.children,o=r===void 0?"No options":r,n=e.innerProps,a=re(e,ta);return I("div",P({},k(M(M({},a),{},{children:o,innerProps:n}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),n),o)},ha=function(e){var r=e.children,o=r===void 0?"Loading...":r,n=e.innerProps,a=re(e,na);return I("div",P({},k(M(M({},a),{},{children:o,innerProps:n}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),n),o)},va=function(e){var r=e.rect,o=e.offset,n=e.position;return{left:r.left,position:n,top:o,width:r.width,zIndex:1}},ma=function(e){var r=e.appendTo,o=e.children,n=e.controlElement,a=e.innerProps,s=e.menuPlacement,u=e.menuPosition,i=C.useRef(null),l=C.useRef(null),c=C.useState(fn(s)),d=ne(c,2),g=d[0],b=d[1],v=C.useMemo(function(){return{setPortalPlacement:b}},[]),m=C.useState(null),p=ne(m,2),h=p[0],x=p[1],S=C.useCallback(function(){if(n){var w=Yo(n),V=u==="fixed"?0:window.pageYOffset,A=w[g]+V;(A!==h?.offset||w.left!==h?.rect.left||w.width!==h?.rect.width)&&x({offset:A,rect:w})}},[n,u,g,h?.offset,h?.rect.left,h?.rect.width]);ht(function(){S()},[S]);var E=C.useCallback(function(){typeof l.current=="function"&&(l.current(),l.current=null),n&&i.current&&(l.current=jo(n,i.current,S,{elementResize:"ResizeObserver"in window}))},[n,S]);ht(function(){E()},[E]);var f=C.useCallback(function(w){i.current=w,E()},[E]);if(!r&&u!=="fixed"||!h)return null;var O=I("div",P({ref:f},k(M(M({},e),{},{offset:h.offset,position:u,rect:h.rect}),"menuPortal",{"menu-portal":!0}),a),o);return I(pn.Provider,{value:v},r?Yn.createPortal(O,r):O)},ga=function(e){var r=e.isDisabled,o=e.isRtl;return{label:"container",direction:o?"rtl":void 0,pointerEvents:r?"none":void 0,position:"relative"}},ba=function(e){var r=e.children,o=e.innerProps,n=e.isDisabled,a=e.isRtl;return I("div",P({},k(e,"container",{"--is-disabled":n,"--is-rtl":a}),o),r)},ya=function(e,r){var o=e.theme.spacing,n=e.isMulti,a=e.hasValue,s=e.selectProps.controlShouldRenderValue;return M({alignItems:"center",display:n&&a&&s?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},r?{}:{padding:"".concat(o.baseUnit/2,"px ").concat(o.baseUnit*2,"px")})},Sa=function(e){var r=e.children,o=e.innerProps,n=e.isMulti,a=e.hasValue;return I("div",P({},k(e,"valueContainer",{"value-container":!0,"value-container--is-multi":n,"value-container--has-value":a}),o),r)},xa=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},wa=function(e){var r=e.children,o=e.innerProps;return I("div",P({},k(e,"indicatorsContainer",{indicators:!0}),o),r)},vn,Oa=["size"],Ca=["innerProps","isRtl","size"],Ia={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},mn=function(e){var r=e.size,o=re(e,Oa);return I("svg",P({height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Ia},o))},vt=function(e){return I(mn,P({size:20},e),I("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},gn=function(e){return I(mn,P({size:20},e),I("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},bn=function(e,r){var o=e.isFocused,n=e.theme,a=n.spacing.baseUnit,s=n.colors;return M({label:"indicatorContainer",display:"flex",transition:"color 150ms"},r?{}:{color:o?s.neutral60:s.neutral20,padding:a*2,":hover":{color:o?s.neutral80:s.neutral40}})},Ma=bn,Pa=function(e){var r=e.children,o=e.innerProps;return I("div",P({},k(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),o),r||I(gn,null))},Ea=bn,Va=function(e){var r=e.children,o=e.innerProps;return I("div",P({},k(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),o),r||I(vt,null))},La=function(e,r){var o=e.isDisabled,n=e.theme,a=n.spacing.baseUnit,s=n.colors;return M({label:"indicatorSeparator",alignSelf:"stretch",width:1},r?{}:{backgroundColor:o?s.neutral10:s.neutral20,marginBottom:a*2,marginTop:a*2})},Ta=function(e){var r=e.innerProps;return I("span",P({},r,k(e,"indicatorSeparator",{"indicator-separator":!0})))},Da=Vo(vn||(vn=Lo([`
4
+ 0%, 80%, 100% { opacity: 0; }
5
+ 40% { opacity: 1; }
6
+ `]))),Fa=function(e,r){var o=e.isFocused,n=e.size,a=e.theme,s=a.colors,u=a.spacing.baseUnit;return M({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"},r?{}:{color:o?s.neutral60:s.neutral20,padding:u*2})},mt=function(e){var r=e.delay,o=e.offset;return I("span",{css:ct({animation:"".concat(Da," 1s ease-in-out ").concat(r,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:o?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Aa=function(e){var r=e.innerProps,o=e.isRtl,n=e.size,a=n===void 0?4:n,s=re(e,Ca);return I("div",P({},k(M(M({},s),{},{innerProps:r,isRtl:o,size:a}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),r),I(mt,{delay:0,offset:o}),I(mt,{delay:160,offset:!0}),I(mt,{delay:320,offset:!o}))},ka=function(e,r){var o=e.isDisabled,n=e.isFocused,a=e.theme,s=a.colors,u=a.borderRadius,i=a.spacing;return M({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},r?{}:{backgroundColor:o?s.neutral5:s.neutral0,borderColor:o?s.neutral10:n?s.primary:s.neutral20,borderRadius:u,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(s.primary):void 0,"&:hover":{borderColor:n?s.primary:s.neutral30}})},Na=function(e){var r=e.children,o=e.isDisabled,n=e.isFocused,a=e.innerRef,s=e.innerProps,u=e.menuIsOpen;return I("div",P({ref:a},k(e,"control",{control:!0,"control--is-disabled":o,"control--is-focused":n,"control--menu-is-open":u}),s,{"aria-disabled":o||void 0}),r)},_a=Na,$a=["data"],Ha=function(e,r){var o=e.theme.spacing;return r?{}:{paddingBottom:o.baseUnit*2,paddingTop:o.baseUnit*2}},Ra=function(e){var r=e.children,o=e.cx,n=e.getStyles,a=e.getClassNames,s=e.Heading,u=e.headingProps,i=e.innerProps,l=e.label,c=e.theme,d=e.selectProps;return I("div",P({},k(e,"group",{group:!0}),i),I(s,P({},u,{selectProps:d,theme:c,getStyles:n,getClassNames:a,cx:o}),l),I("div",null,r))},ja=function(e,r){var o=e.theme,n=o.colors,a=o.spacing;return M({label:"group",cursor:"default",display:"block"},r?{}:{color:n.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:a.baseUnit*3,paddingRight:a.baseUnit*3,textTransform:"uppercase"})},Ua=function(e){var r=sn(e);r.data;var o=re(r,$a);return I("div",P({},k(e,"groupHeading",{"group-heading":!0}),o))},Ba=Ra,za=["innerRef","isDisabled","isHidden","inputClassName"],Wa=function(e,r){var o=e.isDisabled,n=e.value,a=e.theme,s=a.spacing,u=a.colors;return M(M({visibility:o?"hidden":"visible",transform:n?"translateZ(0)":""},Ga),r?{}:{margin:s.baseUnit/2,paddingBottom:s.baseUnit/2,paddingTop:s.baseUnit/2,color:u.neutral80})},yn={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Ga={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":M({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},yn)},qa=function(e){return M({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},yn)},Ya=function(e){var r=e.cx,o=e.value,n=sn(e),a=n.innerRef,s=n.isDisabled,u=n.isHidden,i=n.inputClassName,l=re(n,za);return I("div",P({},k(e,"input",{"input-container":!0}),{"data-value":o||""}),I("input",P({className:r({input:!0},i),ref:a,style:qa(u),disabled:s},l)))},Ka=Ya,Xa=function(e,r){var o=e.theme,n=o.spacing,a=o.borderRadius,s=o.colors;return M({label:"multiValue",display:"flex",minWidth:0},r?{}:{backgroundColor:s.neutral10,borderRadius:a/2,margin:n.baseUnit/2})},Ja=function(e,r){var o=e.theme,n=o.borderRadius,a=o.colors,s=e.cropWithEllipsis;return M({overflow:"hidden",textOverflow:s||s===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},r?{}:{borderRadius:n/2,color:a.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Za=function(e,r){var o=e.theme,n=o.spacing,a=o.borderRadius,s=o.colors,u=e.isFocused;return M({alignItems:"center",display:"flex"},r?{}:{borderRadius:a/2,backgroundColor:u?s.dangerLight:void 0,paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:s.dangerLight,color:s.danger}})},Sn=function(e){var r=e.children,o=e.innerProps;return I("div",o,r)},Qa=Sn,ei=Sn;function ti(t){var e=t.children,r=t.innerProps;return I("div",P({role:"button"},r),e||I(vt,{size:14}))}var ni=function(e){var r=e.children,o=e.components,n=e.data,a=e.innerProps,s=e.isDisabled,u=e.removeProps,i=e.selectProps,l=o.Container,c=o.Label,d=o.Remove;return I(l,{data:n,innerProps:M(M({},k(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),a),selectProps:i},I(c,{data:n,innerProps:M({},k(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:i},r),I(d,{data:n,innerProps:M(M({},k(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(r||"option")},u),selectProps:i}))},ri=ni,oi=function(e,r){var o=e.isDisabled,n=e.isFocused,a=e.isSelected,s=e.theme,u=s.spacing,i=s.colors;return M({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},r?{}:{backgroundColor:a?i.primary:n?i.primary25:"transparent",color:o?i.neutral20:a?i.neutral0:"inherit",padding:"".concat(u.baseUnit*2,"px ").concat(u.baseUnit*3,"px"),":active":{backgroundColor:o?void 0:a?i.primary:i.primary50}})},ai=function(e){var r=e.children,o=e.isDisabled,n=e.isFocused,a=e.isSelected,s=e.innerRef,u=e.innerProps;return I("div",P({},k(e,"option",{option:!0,"option--is-disabled":o,"option--is-focused":n,"option--is-selected":a}),{ref:s,"aria-disabled":o},u),r)},ii=ai,si=function(e,r){var o=e.theme,n=o.spacing,a=o.colors;return M({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},r?{}:{color:a.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2})},li=function(e){var r=e.children,o=e.innerProps;return I("div",P({},k(e,"placeholder",{placeholder:!0}),o),r)},ui=li,ci=function(e,r){var o=e.isDisabled,n=e.theme,a=n.spacing,s=n.colors;return M({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r?{}:{color:o?s.neutral40:s.neutral80,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},di=function(e){var r=e.children,o=e.isDisabled,n=e.innerProps;return I("div",P({},k(e,"singleValue",{"single-value":!0,"single-value--is-disabled":o}),n),r)},fi=di,pi={ClearIndicator:Va,Control:_a,DropdownIndicator:Pa,DownChevron:gn,CrossIcon:vt,Group:Ba,GroupHeading:Ua,IndicatorsContainer:wa,IndicatorSeparator:Ta,Input:Ka,LoadingIndicator:Aa,Menu:la,MenuList:ca,MenuPortal:ma,LoadingMessage:ha,NoOptionsMessage:pa,MultiValue:ri,MultiValueContainer:Qa,MultiValueLabel:ei,MultiValueRemove:ti,Option:ii,Placeholder:ui,SelectContainer:ba,SingleValue:fi,ValueContainer:Sa},hi=function(e){return M(M({},pi),e.components)},xn=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function vi(t,e){return!!(t===e||xn(t)&&xn(e))}function mi(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(!vi(t[r],e[r]))return!1;return!0}function gi(t,e){e===void 0&&(e=mi);var r=null;function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(r&&r.lastThis===this&&e(n,r.lastArgs))return r.lastResult;var s=t.apply(this,n);return r={lastResult:s,lastArgs:n,lastThis:this},s}return o.clear=function(){r=null},o}for(var bi={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},yi=function(e){return I("span",P({css:bi},e))},wn=yi,Si={guidance:function(e){var r=e.isSearchable,o=e.isMulti,n=e.tabSelectsValue,a=e.context,s=e.isInitialFocus;switch(a){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(n?", press Tab to select the option and exit the menu":"",".");case"input":return s?"".concat(e["aria-label"]||"Select"," is focused ").concat(r?",type to refine list":"",", press Down to open the menu, ").concat(o?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var r=e.action,o=e.label,n=o===void 0?"":o,a=e.labels,s=e.isDisabled;switch(r){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(a.length>1?"s":""," ").concat(a.join(","),", selected.");case"select-option":return s?"option ".concat(n," is disabled. Select another option."):"option ".concat(n,", selected.");default:return""}},onFocus:function(e){var r=e.context,o=e.focused,n=e.options,a=e.label,s=a===void 0?"":a,u=e.selectValue,i=e.isDisabled,l=e.isSelected,c=e.isAppleDevice,d=function(m,p){return m&&m.length?"".concat(m.indexOf(p)+1," of ").concat(m.length):""};if(r==="value"&&u)return"value ".concat(s," focused, ").concat(d(u,o),".");if(r==="menu"&&c){var g=i?" disabled":"",b="".concat(l?" selected":"").concat(g);return"".concat(s).concat(b,", ").concat(d(n,o),".")}return""},onFilter:function(e){var r=e.inputValue,o=e.resultsMessage;return"".concat(o).concat(r?" for search term "+r:"",".")}},xi=function(e){var r=e.ariaSelection,o=e.focusedOption,n=e.focusedValue,a=e.focusableOptions,s=e.isFocused,u=e.selectValue,i=e.selectProps,l=e.id,c=e.isAppleDevice,d=i.ariaLiveMessages,g=i.getOptionLabel,b=i.inputValue,v=i.isMulti,m=i.isOptionDisabled,p=i.isSearchable,h=i.menuIsOpen,x=i.options,S=i.screenReaderStatus,E=i.tabSelectsValue,f=i.isLoading,O=i["aria-label"],w=i["aria-live"],V=C.useMemo(function(){return M(M({},Si),d||{})},[d]),A=C.useMemo(function(){var R="";if(r&&V.onChange){var $=r.option,te=r.options,X=r.removedValue,le=r.removedValues,ue=r.value,Ye=function(se){return Array.isArray(se)?null:se},H=X||$||Ye(ue),Y=H?g(H):"",ie=te||le||void 0,ce=ie?ie.map(g):[],J=M({isDisabled:H&&m(H,u),label:Y,labels:ce},r);R=V.onChange(J)}return R},[r,V,m,u,g]),_=C.useMemo(function(){var R="",$=o||n,te=!!(o&&u&&u.includes(o));if($&&V.onFocus){var X={focused:$,label:g($),isDisabled:m($,u),isSelected:te,options:a,context:$===o?"menu":"value",selectValue:u,isAppleDevice:c};R=V.onFocus(X)}return R},[o,n,g,m,V,a,u,c]),W=C.useMemo(function(){var R="";if(h&&x.length&&!f&&V.onFilter){var $=S({count:a.length});R=V.onFilter({inputValue:b,resultsMessage:$})}return R},[a,b,h,V,x,S,f]),B=r?.action==="initial-input-focus",oe=C.useMemo(function(){var R="";if(V.guidance){var $=n?"value":h?"menu":"input";R=V.guidance({"aria-label":O,context:$,isDisabled:o&&m(o,u),isMulti:v,isSearchable:p,tabSelectsValue:E,isInitialFocus:B})}return R},[O,o,n,v,m,p,h,V,u,E,B]),ae=I(C.Fragment,null,I("span",{id:"aria-selection"},A),I("span",{id:"aria-focused"},_),I("span",{id:"aria-results"},W),I("span",{id:"aria-guidance"},oe));return I(C.Fragment,null,I(wn,{id:l},B&&ae),I(wn,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!B&&ae))},wi=xi,gt=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Oi=new RegExp("["+gt.map(function(t){return t.letters}).join("")+"]","g"),On={},bt=0;bt<gt.length;bt++)for(var yt=gt[bt],St=0;St<yt.letters.length;St++)On[yt.letters[St]]=yt.base;var Cn=function(e){return e.replace(Oi,function(r){return On[r]})},Ci=gi(Cn),In=function(e){return e.replace(/^\s+|\s+$/g,"")},Ii=function(e){return"".concat(e.label," ").concat(e.value)},Mi=function(e){return function(r,o){if(r.data.__isNew__)return!0;var n=M({ignoreCase:!0,ignoreAccents:!0,stringify:Ii,trim:!0,matchFrom:"any"},e),a=n.ignoreCase,s=n.ignoreAccents,u=n.stringify,i=n.trim,l=n.matchFrom,c=i?In(o):o,d=i?In(u(r)):u(r);return a&&(c=c.toLowerCase(),d=d.toLowerCase()),s&&(c=Ci(c),d=Cn(d)),l==="start"?d.substr(0,c.length)===c:d.indexOf(c)>-1}},Pi=["innerRef"];function Ei(t){var e=t.innerRef,r=re(t,Pi),o=ea(r,"onExited","in","enter","exit","appear");return I("input",P({ref:e},o,{css:ct({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Vi=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};function Li(t){var e=t.isEnabled,r=t.onBottomArrive,o=t.onBottomLeave,n=t.onTopArrive,a=t.onTopLeave,s=C.useRef(!1),u=C.useRef(!1),i=C.useRef(0),l=C.useRef(null),c=C.useCallback(function(p,h){if(l.current!==null){var x=l.current,S=x.scrollTop,E=x.scrollHeight,f=x.clientHeight,O=l.current,w=h>0,V=E-f-S,A=!1;V>h&&s.current&&(o&&o(p),s.current=!1),w&&u.current&&(a&&a(p),u.current=!1),w&&h>V?(r&&!s.current&&r(p),O.scrollTop=E,A=!0,s.current=!0):!w&&-h>S&&(n&&!u.current&&n(p),O.scrollTop=0,A=!0,u.current=!0),A&&Vi(p)}},[r,o,n,a]),d=C.useCallback(function(p){c(p,p.deltaY)},[c]),g=C.useCallback(function(p){i.current=p.changedTouches[0].clientY},[]),b=C.useCallback(function(p){var h=i.current-p.changedTouches[0].clientY;c(p,h)},[c]),v=C.useCallback(function(p){if(p){var h=Jo?{passive:!1}:!1;p.addEventListener("wheel",d,h),p.addEventListener("touchstart",g,h),p.addEventListener("touchmove",b,h)}},[b,g,d]),m=C.useCallback(function(p){p&&(p.removeEventListener("wheel",d,!1),p.removeEventListener("touchstart",g,!1),p.removeEventListener("touchmove",b,!1))},[b,g,d]);return C.useEffect(function(){if(e){var p=l.current;return v(p),function(){m(p)}}},[e,v,m]),function(p){l.current=p}}var Mn=["boxSizing","height","overflow","paddingRight","position"],Pn={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function En(t){t.cancelable&&t.preventDefault()}function Vn(t){t.stopPropagation()}function Ln(){var t=this.scrollTop,e=this.scrollHeight,r=t+this.offsetHeight;t===0?this.scrollTop=1:r===e&&(this.scrollTop=t-1)}function Tn(){return"ontouchstart"in window||navigator.maxTouchPoints}var Dn=!!(typeof window<"u"&&window.document&&window.document.createElement),Ce=0,ge={capture:!1,passive:!1};function Ti(t){var e=t.isEnabled,r=t.accountForScrollbars,o=r===void 0?!0:r,n=C.useRef({}),a=C.useRef(null),s=C.useCallback(function(i){if(Dn){var l=document.body,c=l&&l.style;if(o&&Mn.forEach(function(v){var m=c&&c[v];n.current[v]=m}),o&&Ce<1){var d=parseInt(n.current.paddingRight,10)||0,g=document.body?document.body.clientWidth:0,b=window.innerWidth-g+d||0;Object.keys(Pn).forEach(function(v){var m=Pn[v];c&&(c[v]=m)}),c&&(c.paddingRight="".concat(b,"px"))}l&&Tn()&&(l.addEventListener("touchmove",En,ge),i&&(i.addEventListener("touchstart",Ln,ge),i.addEventListener("touchmove",Vn,ge))),Ce+=1}},[o]),u=C.useCallback(function(i){if(Dn){var l=document.body,c=l&&l.style;Ce=Math.max(Ce-1,0),o&&Ce<1&&Mn.forEach(function(d){var g=n.current[d];c&&(c[d]=g)}),l&&Tn()&&(l.removeEventListener("touchmove",En,ge),i&&(i.removeEventListener("touchstart",Ln,ge),i.removeEventListener("touchmove",Vn,ge)))}},[o]);return C.useEffect(function(){if(e){var i=a.current;return s(i),function(){u(i)}}},[e,s,u]),function(i){a.current=i}}var Di=function(e){var r=e.target;return r.ownerDocument.activeElement&&r.ownerDocument.activeElement.blur()},Fi={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Ai(t){var e=t.children,r=t.lockEnabled,o=t.captureEnabled,n=o===void 0?!0:o,a=t.onBottomArrive,s=t.onBottomLeave,u=t.onTopArrive,i=t.onTopLeave,l=Li({isEnabled:n,onBottomArrive:a,onBottomLeave:s,onTopArrive:u,onTopLeave:i}),c=Ti({isEnabled:r}),d=function(b){l(b),c(b)};return I(C.Fragment,null,r&&I("div",{onClick:Di,css:Fi}),e(d))}var ki={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Ni=function(e){var r=e.name,o=e.onFocus;return I("input",{required:!0,name:r,tabIndex:-1,"aria-hidden":"true",onFocus:o,css:ki,value:"",onChange:function(){}})},_i=Ni;function xt(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function $i(){return xt(/^iPhone/i)}function Fn(){return xt(/^Mac/i)}function Hi(){return xt(/^iPad/i)||Fn()&&navigator.maxTouchPoints>1}function Ri(){return $i()||Hi()}function ji(){return Fn()||Ri()}var Ui=function(e){return e.label},Bi=function(e){return e.label},zi=function(e){return e.value},Wi=function(e){return!!e.isDisabled},Gi={clearIndicator:Ea,container:ga,control:ka,dropdownIndicator:Ma,group:Ha,groupHeading:ja,indicatorsContainer:xa,indicatorSeparator:La,input:Wa,loadingIndicator:Fa,loadingMessage:fa,menu:aa,menuList:ua,menuPortal:va,multiValue:Xa,multiValueLabel:Ja,multiValueRemove:Za,noOptionsMessage:da,option:oi,placeholder:si,singleValue:ci,valueContainer:ya},qi={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},Yi=4,An=4,Ki=38,Xi=An*2,Ji={baseUnit:An,controlHeight:Ki,menuGutter:Xi},wt={borderRadius:Yi,colors:qi,spacing:Ji},Zi={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:cn(),captureMenuScroll:!cn(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:Mi(),formatGroupLabel:Ui,getOptionLabel:Bi,getOptionValue:zi,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Wi,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Ko(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var r=e.count;return"".concat(r," result").concat(r!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function kn(t,e,r,o){var n=Rn(t,e,r),a=jn(t,e,r),s=Hn(t,e),u=Ge(t,e);return{type:"option",data:e,isDisabled:n,isSelected:a,label:s,value:u,index:o}}function We(t,e){return t.options.map(function(r,o){if("options"in r){var n=r.options.map(function(s,u){return kn(t,s,e,u)}).filter(function(s){return $n(t,s)});return n.length>0?{type:"group",data:r,options:n,index:o}:void 0}var a=kn(t,r,e,o);return $n(t,a)?a:void 0}).filter(Zo)}function Nn(t){return t.reduce(function(e,r){return r.type==="group"?e.push.apply(e,Qe(r.options.map(function(o){return o.data}))):e.push(r.data),e},[])}function _n(t,e){return t.reduce(function(r,o){return o.type==="group"?r.push.apply(r,Qe(o.options.map(function(n){return{data:n.data,id:"".concat(e,"-").concat(o.index,"-").concat(n.index)}}))):r.push({data:o.data,id:"".concat(e,"-").concat(o.index)}),r},[])}function Qi(t,e){return Nn(We(t,e))}function $n(t,e){var r=t.inputValue,o=r===void 0?"":r,n=e.data,a=e.isSelected,s=e.label,u=e.value;return(!Bn(t)||!a)&&Un(t,{label:s,value:u,data:n},o)}function es(t,e){var r=t.focusedValue,o=t.selectValue,n=o.indexOf(r);if(n>-1){var a=e.indexOf(r);if(a>-1)return r;if(n<e.length)return e[n]}return null}function ts(t,e){var r=t.focusedOption;return r&&e.indexOf(r)>-1?r:e[0]}var Ot=function(e,r){var o,n=(o=e.find(function(a){return a.data===r}))===null||o===void 0?void 0:o.id;return n||null},Hn=function(e,r){return e.getOptionLabel(r)},Ge=function(e,r){return e.getOptionValue(r)};function Rn(t,e,r){return typeof t.isOptionDisabled=="function"?t.isOptionDisabled(e,r):!1}function jn(t,e,r){if(r.indexOf(e)>-1)return!0;if(typeof t.isOptionSelected=="function")return t.isOptionSelected(e,r);var o=Ge(t,e);return r.some(function(n){return Ge(t,n)===o})}function Un(t,e,r){return t.filterOption?t.filterOption(e,r):!0}var Bn=function(e){var r=e.hideSelectedOptions,o=e.isMulti;return r===void 0?o:r},ns=1,zn=(function(t){Ir(r,t);var e=Er(r);function r(o){var n;if(Or(this,r),n=e.call(this,o),n.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},n.blockOptionHover=!1,n.isComposing=!1,n.commonProps=void 0,n.initialTouchX=0,n.initialTouchY=0,n.openAfterFocus=!1,n.scrollToFocusedOptionOnUpdate=!1,n.userIsDragging=void 0,n.controlRef=null,n.getControlRef=function(i){n.controlRef=i},n.focusedOptionRef=null,n.getFocusedOptionRef=function(i){n.focusedOptionRef=i},n.menuListRef=null,n.getMenuListRef=function(i){n.menuListRef=i},n.inputRef=null,n.getInputRef=function(i){n.inputRef=i},n.focus=n.focusInput,n.blur=n.blurInput,n.onChange=function(i,l){var c=n.props,d=c.onChange,g=c.name;l.name=g,n.ariaOnChange(i,l),d(i,l)},n.setValue=function(i,l,c){var d=n.props,g=d.closeMenuOnSelect,b=d.isMulti,v=d.inputValue;n.onInputChange("",{action:"set-value",prevInputValue:v}),g&&(n.setState({inputIsHiddenAfterUpdate:!b}),n.onMenuClose()),n.setState({clearFocusValueOnUpdate:!0}),n.onChange(i,{action:l,option:c})},n.selectOption=function(i){var l=n.props,c=l.blurInputOnSelect,d=l.isMulti,g=l.name,b=n.state.selectValue,v=d&&n.isOptionSelected(i,b),m=n.isOptionDisabled(i,b);if(v){var p=n.getOptionValue(i);n.setValue(b.filter(function(h){return n.getOptionValue(h)!==p}),"deselect-option",i)}else if(!m)d?n.setValue([].concat(Qe(b),[i]),"select-option",i):n.setValue(i,"select-option");else{n.ariaOnChange(i,{action:"select-option",option:i,name:g});return}c&&n.blurInput()},n.removeValue=function(i){var l=n.props.isMulti,c=n.state.selectValue,d=n.getOptionValue(i),g=c.filter(function(v){return n.getOptionValue(v)!==d}),b=ze(l,g,g[0]||null);n.onChange(b,{action:"remove-value",removedValue:i}),n.focusInput()},n.clearValue=function(){var i=n.state.selectValue;n.onChange(ze(n.props.isMulti,[],null),{action:"clear",removedValues:i})},n.popValue=function(){var i=n.props.isMulti,l=n.state.selectValue,c=l[l.length-1],d=l.slice(0,l.length-1),g=ze(i,d,d[0]||null);c&&n.onChange(g,{action:"pop-value",removedValue:c})},n.getFocusedOptionId=function(i){return Ot(n.state.focusableOptionsWithIds,i)},n.getFocusableOptionsWithIds=function(){return _n(We(n.props,n.state.selectValue),n.getElementId("option"))},n.getValue=function(){return n.state.selectValue},n.cx=function(){for(var i=arguments.length,l=new Array(i),c=0;c<i;c++)l[c]=arguments[c];return zo.apply(void 0,[n.props.classNamePrefix].concat(l))},n.getOptionLabel=function(i){return Hn(n.props,i)},n.getOptionValue=function(i){return Ge(n.props,i)},n.getStyles=function(i,l){var c=n.props.unstyled,d=Gi[i](l,c);d.boxSizing="border-box";var g=n.props.styles[i];return g?g(d,l):d},n.getClassNames=function(i,l){var c,d;return(c=(d=n.props.classNames)[i])===null||c===void 0?void 0:c.call(d,l)},n.getElementId=function(i){return"".concat(n.state.instancePrefix,"-").concat(i)},n.getComponents=function(){return hi(n.props)},n.buildCategorizedOptions=function(){return We(n.props,n.state.selectValue)},n.getCategorizedOptions=function(){return n.props.menuIsOpen?n.buildCategorizedOptions():[]},n.buildFocusableOptions=function(){return Nn(n.buildCategorizedOptions())},n.getFocusableOptions=function(){return n.props.menuIsOpen?n.buildFocusableOptions():[]},n.ariaOnChange=function(i,l){n.setState({ariaSelection:M({value:i},l)})},n.onMenuMouseDown=function(i){i.button===0&&(i.stopPropagation(),i.preventDefault(),n.focusInput())},n.onMenuMouseMove=function(i){n.blockOptionHover=!1},n.onControlMouseDown=function(i){if(!i.defaultPrevented){var l=n.props.openMenuOnClick;n.state.isFocused?n.props.menuIsOpen?i.target.tagName!=="INPUT"&&i.target.tagName!=="TEXTAREA"&&n.onMenuClose():l&&n.openMenu("first"):(l&&(n.openAfterFocus=!0),n.focusInput()),i.target.tagName!=="INPUT"&&i.target.tagName!=="TEXTAREA"&&i.preventDefault()}},n.onDropdownIndicatorMouseDown=function(i){if(!(i&&i.type==="mousedown"&&i.button!==0)&&!n.props.isDisabled){var l=n.props,c=l.isMulti,d=l.menuIsOpen;n.focusInput(),d?(n.setState({inputIsHiddenAfterUpdate:!c}),n.onMenuClose()):n.openMenu("first"),i.preventDefault()}},n.onClearIndicatorMouseDown=function(i){i&&i.type==="mousedown"&&i.button!==0||(n.clearValue(),i.preventDefault(),n.openAfterFocus=!1,i.type==="touchend"?n.focusInput():setTimeout(function(){return n.focusInput()}))},n.onScroll=function(i){typeof n.props.closeMenuOnScroll=="boolean"?i.target instanceof HTMLElement&&Re(i.target)&&n.props.onMenuClose():typeof n.props.closeMenuOnScroll=="function"&&n.props.closeMenuOnScroll(i)&&n.props.onMenuClose()},n.onCompositionStart=function(){n.isComposing=!0},n.onCompositionEnd=function(){n.isComposing=!1},n.onTouchStart=function(i){var l=i.touches,c=l&&l.item(0);c&&(n.initialTouchX=c.clientX,n.initialTouchY=c.clientY,n.userIsDragging=!1)},n.onTouchMove=function(i){var l=i.touches,c=l&&l.item(0);if(c){var d=Math.abs(c.clientX-n.initialTouchX),g=Math.abs(c.clientY-n.initialTouchY),b=5;n.userIsDragging=d>b||g>b}},n.onTouchEnd=function(i){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(i.target)&&n.menuListRef&&!n.menuListRef.contains(i.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)},n.onControlTouchEnd=function(i){n.userIsDragging||n.onControlMouseDown(i)},n.onClearIndicatorTouchEnd=function(i){n.userIsDragging||n.onClearIndicatorMouseDown(i)},n.onDropdownIndicatorTouchEnd=function(i){n.userIsDragging||n.onDropdownIndicatorMouseDown(i)},n.handleInputChange=function(i){var l=n.props.inputValue,c=i.currentTarget.value;n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange(c,{action:"input-change",prevInputValue:l}),n.props.menuIsOpen||n.onMenuOpen()},n.onInputFocus=function(i){n.props.onFocus&&n.props.onFocus(i),n.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1},n.onInputBlur=function(i){var l=n.props.inputValue;if(n.menuListRef&&n.menuListRef.contains(document.activeElement)){n.inputRef.focus();return}n.props.onBlur&&n.props.onBlur(i),n.onInputChange("",{action:"input-blur",prevInputValue:l}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1})},n.onOptionHover=function(i){if(!(n.blockOptionHover||n.state.focusedOption===i)){var l=n.getFocusableOptions(),c=l.indexOf(i);n.setState({focusedOption:i,focusedOptionId:c>-1?n.getFocusedOptionId(i):null})}},n.shouldHideSelectedOptions=function(){return Bn(n.props)},n.onValueInputFocus=function(i){i.preventDefault(),i.stopPropagation(),n.focus()},n.onKeyDown=function(i){var l=n.props,c=l.isMulti,d=l.backspaceRemovesValue,g=l.escapeClearsValue,b=l.inputValue,v=l.isClearable,m=l.isDisabled,p=l.menuIsOpen,h=l.onKeyDown,x=l.tabSelectsValue,S=l.openMenuOnFocus,E=n.state,f=E.focusedOption,O=E.focusedValue,w=E.selectValue;if(!m&&!(typeof h=="function"&&(h(i),i.defaultPrevented))){switch(n.blockOptionHover=!0,i.key){case"ArrowLeft":if(!c||b)return;n.focusValue("previous");break;case"ArrowRight":if(!c||b)return;n.focusValue("next");break;case"Delete":case"Backspace":if(b)return;if(O)n.removeValue(O);else{if(!d)return;c?n.popValue():v&&n.clearValue()}break;case"Tab":if(n.isComposing||i.shiftKey||!p||!x||!f||S&&n.isOptionSelected(f,w))return;n.selectOption(f);break;case"Enter":if(i.keyCode===229)break;if(p){if(!f||n.isComposing)return;n.selectOption(f);break}return;case"Escape":p?(n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange("",{action:"menu-close",prevInputValue:b}),n.onMenuClose()):v&&g&&n.clearValue();break;case" ":if(b)return;if(!p){n.openMenu("first");break}if(!f)return;n.selectOption(f);break;case"ArrowUp":p?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":p?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!p)return;n.focusOption("pageup");break;case"PageDown":if(!p)return;n.focusOption("pagedown");break;case"Home":if(!p)return;n.focusOption("first");break;case"End":if(!p)return;n.focusOption("last");break;default:return}i.preventDefault()}},n.state.instancePrefix="react-select-"+(n.props.instanceId||++ns),n.state.selectValue=an(o.value),o.menuIsOpen&&n.state.selectValue.length){var a=n.getFocusableOptionsWithIds(),s=n.buildFocusableOptions(),u=s.indexOf(n.state.selectValue[0]);n.state.focusableOptionsWithIds=a,n.state.focusedOption=s[u],n.state.focusedOptionId=Ot(a,s[u])}return n}return Cr(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&un(this.menuListRef,this.focusedOptionRef),ji()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(n){var a=this.props,s=a.isDisabled,u=a.menuIsOpen,i=this.state.isFocused;(i&&!s&&n.isDisabled||i&&u&&!n.menuIsOpen)&&this.focusInput(),i&&s&&!n.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!i&&!s&&n.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(un(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(n,a){this.props.onInputChange(n,a)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(n){var a=this,s=this.state,u=s.selectValue,i=s.isFocused,l=this.buildFocusableOptions(),c=n==="first"?0:l.length-1;if(!this.props.isMulti){var d=l.indexOf(u[0]);d>-1&&(c=d)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:l[c],focusedOptionId:this.getFocusedOptionId(l[c])},function(){return a.onMenuOpen()})}},{key:"focusValue",value:function(n){var a=this.state,s=a.selectValue,u=a.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=s.indexOf(u);u||(i=-1);var l=s.length-1,c=-1;if(s.length){switch(n){case"previous":i===0?c=0:i===-1?c=l:c=i-1;break;case"next":i>-1&&i<l&&(c=i+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:s[c]})}}}},{key:"focusOption",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",a=this.props.pageSize,s=this.state.focusedOption,u=this.getFocusableOptions();if(u.length){var i=0,l=u.indexOf(s);s||(l=-1),n==="up"?i=l>0?l-1:u.length-1:n==="down"?i=(l+1)%u.length:n==="pageup"?(i=l-a,i<0&&(i=0)):n==="pagedown"?(i=l+a,i>u.length-1&&(i=u.length-1)):n==="last"&&(i=u.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:u[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(u[i])})}}},{key:"getTheme",value:(function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(wt):M(M({},wt),this.props.theme):wt})},{key:"getCommonProps",value:function(){var n=this.clearValue,a=this.cx,s=this.getStyles,u=this.getClassNames,i=this.getValue,l=this.selectOption,c=this.setValue,d=this.props,g=d.isMulti,b=d.isRtl,v=d.options,m=this.hasValue();return{clearValue:n,cx:a,getStyles:s,getClassNames:u,getValue:i,hasValue:m,isMulti:g,isRtl:b,options:v,selectOption:l,selectProps:d,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var n=this.state.selectValue;return n.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var n=this.props,a=n.isClearable,s=n.isMulti;return a===void 0?s:a}},{key:"isOptionDisabled",value:function(n,a){return Rn(this.props,n,a)}},{key:"isOptionSelected",value:function(n,a){return jn(this.props,n,a)}},{key:"filterOption",value:function(n,a){return Un(this.props,n,a)}},{key:"formatOptionLabel",value:function(n,a){if(typeof this.props.formatOptionLabel=="function"){var s=this.props.inputValue,u=this.state.selectValue;return this.props.formatOptionLabel(n,{context:a,inputValue:s,selectValue:u})}else return this.getOptionLabel(n)}},{key:"formatGroupLabel",value:function(n){return this.props.formatGroupLabel(n)}},{key:"startListeningComposition",value:(function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))})},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:(function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))})},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:(function(){var n=this.props,a=n.isDisabled,s=n.isSearchable,u=n.inputId,i=n.inputValue,l=n.tabIndex,c=n.form,d=n.menuIsOpen,g=n.required,b=this.getComponents(),v=b.Input,m=this.state,p=m.inputIsHidden,h=m.ariaSelection,x=this.commonProps,S=u||this.getElementId("input"),E=M(M(M({"aria-autocomplete":"list","aria-expanded":d,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":g,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!s&&{"aria-readonly":!0}),this.hasValue()?h?.action==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return s?L.createElement(v,P({},x,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:S,innerRef:this.getInputRef,isDisabled:a,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:l,form:c,type:"text",value:i},E)):L.createElement(Ei,P({id:S,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:He,onFocus:this.onInputFocus,disabled:a,tabIndex:l,inputMode:"none",form:c,value:""},E))})},{key:"renderPlaceholderOrValue",value:function(){var n=this,a=this.getComponents(),s=a.MultiValue,u=a.MultiValueContainer,i=a.MultiValueLabel,l=a.MultiValueRemove,c=a.SingleValue,d=a.Placeholder,g=this.commonProps,b=this.props,v=b.controlShouldRenderValue,m=b.isDisabled,p=b.isMulti,h=b.inputValue,x=b.placeholder,S=this.state,E=S.selectValue,f=S.focusedValue,O=S.isFocused;if(!this.hasValue()||!v)return h?null:L.createElement(d,P({},g,{key:"placeholder",isDisabled:m,isFocused:O,innerProps:{id:this.getElementId("placeholder")}}),x);if(p)return E.map(function(V,A){var _=V===f,W="".concat(n.getOptionLabel(V),"-").concat(n.getOptionValue(V));return L.createElement(s,P({},g,{components:{Container:u,Label:i,Remove:l},isFocused:_,isDisabled:m,key:W,index:A,removeProps:{onClick:function(){return n.removeValue(V)},onTouchEnd:function(){return n.removeValue(V)},onMouseDown:function(oe){oe.preventDefault()}},data:V}),n.formatOptionLabel(V,"value"))});if(h)return null;var w=E[0];return L.createElement(c,P({},g,{data:w,isDisabled:m}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var n=this.getComponents(),a=n.ClearIndicator,s=this.commonProps,u=this.props,i=u.isDisabled,l=u.isLoading,c=this.state.isFocused;if(!this.isClearable()||!a||i||!this.hasValue()||l)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return L.createElement(a,P({},s,{innerProps:d,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var n=this.getComponents(),a=n.LoadingIndicator,s=this.commonProps,u=this.props,i=u.isDisabled,l=u.isLoading,c=this.state.isFocused;if(!a||!l)return null;var d={"aria-hidden":"true"};return L.createElement(a,P({},s,{innerProps:d,isDisabled:i,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var n=this.getComponents(),a=n.DropdownIndicator,s=n.IndicatorSeparator;if(!a||!s)return null;var u=this.commonProps,i=this.props.isDisabled,l=this.state.isFocused;return L.createElement(s,P({},u,{isDisabled:i,isFocused:l}))}},{key:"renderDropdownIndicator",value:function(){var n=this.getComponents(),a=n.DropdownIndicator;if(!a)return null;var s=this.commonProps,u=this.props.isDisabled,i=this.state.isFocused,l={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return L.createElement(a,P({},s,{innerProps:l,isDisabled:u,isFocused:i}))}},{key:"renderMenu",value:function(){var n=this,a=this.getComponents(),s=a.Group,u=a.GroupHeading,i=a.Menu,l=a.MenuList,c=a.MenuPortal,d=a.LoadingMessage,g=a.NoOptionsMessage,b=a.Option,v=this.commonProps,m=this.state.focusedOption,p=this.props,h=p.captureMenuScroll,x=p.inputValue,S=p.isLoading,E=p.loadingMessage,f=p.minMenuHeight,O=p.maxMenuHeight,w=p.menuIsOpen,V=p.menuPlacement,A=p.menuPosition,_=p.menuPortalTarget,W=p.menuShouldBlockScroll,B=p.menuShouldScrollIntoView,oe=p.noOptionsMessage,ae=p.onMenuScrollToTop,R=p.onMenuScrollToBottom;if(!w)return null;var $=function(Y,ie){var ce=Y.type,J=Y.data,de=Y.isDisabled,se=Y.isSelected,Ke=Y.label,fs=Y.value,Wn=m===J,Gn=de?void 0:function(){return n.onOptionHover(J)},ps=de?void 0:function(){return n.selectOption(J)},qn="".concat(n.getElementId("option"),"-").concat(ie),hs={id:qn,onClick:ps,onMouseMove:Gn,onMouseOver:Gn,tabIndex:-1,role:"option","aria-selected":n.state.isAppleDevice?void 0:se};return L.createElement(b,P({},v,{innerProps:hs,data:J,isDisabled:de,isSelected:se,key:qn,label:Ke,type:ce,value:fs,isFocused:Wn,innerRef:Wn?n.getFocusedOptionRef:void 0}),n.formatOptionLabel(Y.data,"menu"))},te;if(this.hasOptions())te=this.getCategorizedOptions().map(function(H){if(H.type==="group"){var Y=H.data,ie=H.options,ce=H.index,J="".concat(n.getElementId("group"),"-").concat(ce),de="".concat(J,"-heading");return L.createElement(s,P({},v,{key:J,data:Y,options:ie,Heading:u,headingProps:{id:de,data:H.data},label:n.formatGroupLabel(H.data)}),H.options.map(function(se){return $(se,"".concat(ce,"-").concat(se.index))}))}else if(H.type==="option")return $(H,"".concat(H.index))});else if(S){var X=E({inputValue:x});if(X===null)return null;te=L.createElement(d,v,X)}else{var le=oe({inputValue:x});if(le===null)return null;te=L.createElement(g,v,le)}var ue={minMenuHeight:f,maxMenuHeight:O,menuPlacement:V,menuPosition:A,menuShouldScrollIntoView:B},Ye=L.createElement(ia,P({},v,ue),function(H){var Y=H.ref,ie=H.placerProps,ce=ie.placement,J=ie.maxHeight;return L.createElement(i,P({},v,ue,{innerRef:Y,innerProps:{onMouseDown:n.onMenuMouseDown,onMouseMove:n.onMenuMouseMove},isLoading:S,placement:ce}),L.createElement(Ai,{captureEnabled:h,onTopArrive:ae,onBottomArrive:R,lockEnabled:W},function(de){return L.createElement(l,P({},v,{innerRef:function(Ke){n.getMenuListRef(Ke),de(Ke)},innerProps:{role:"listbox","aria-multiselectable":v.isMulti,id:n.getElementId("listbox")},isLoading:S,maxHeight:J,focusedOption:m}),te)}))});return _||A==="fixed"?L.createElement(c,P({},v,{appendTo:_,controlElement:this.controlRef,menuPlacement:V,menuPosition:A}),Ye):Ye}},{key:"renderFormField",value:function(){var n=this,a=this.props,s=a.delimiter,u=a.isDisabled,i=a.isMulti,l=a.name,c=a.required,d=this.state.selectValue;if(c&&!this.hasValue()&&!u)return L.createElement(_i,{name:l,onFocus:this.onValueInputFocus});if(!(!l||u))if(i)if(s){var g=d.map(function(m){return n.getOptionValue(m)}).join(s);return L.createElement("input",{name:l,type:"hidden",value:g})}else{var b=d.length>0?d.map(function(m,p){return L.createElement("input",{key:"i-".concat(p),name:l,type:"hidden",value:n.getOptionValue(m)})}):L.createElement("input",{name:l,type:"hidden",value:""});return L.createElement("div",null,b)}else{var v=d[0]?this.getOptionValue(d[0]):"";return L.createElement("input",{name:l,type:"hidden",value:v})}}},{key:"renderLiveRegion",value:function(){var n=this.commonProps,a=this.state,s=a.ariaSelection,u=a.focusedOption,i=a.focusedValue,l=a.isFocused,c=a.selectValue,d=this.getFocusableOptions();return L.createElement(wi,P({},n,{id:this.getElementId("live-region"),ariaSelection:s,focusedOption:u,focusedValue:i,isFocused:l,selectValue:c,focusableOptions:d,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var n=this.getComponents(),a=n.Control,s=n.IndicatorsContainer,u=n.SelectContainer,i=n.ValueContainer,l=this.props,c=l.className,d=l.id,g=l.isDisabled,b=l.menuIsOpen,v=this.state.isFocused,m=this.commonProps=this.getCommonProps();return L.createElement(u,P({},m,{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:g,isFocused:v}),this.renderLiveRegion(),L.createElement(a,P({},m,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:g,isFocused:v,menuIsOpen:b}),L.createElement(i,P({},m,{isDisabled:g}),this.renderPlaceholderOrValue(),this.renderInput()),L.createElement(s,P({},m,{isDisabled:g}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(n,a){var s=a.prevProps,u=a.clearFocusValueOnUpdate,i=a.inputIsHiddenAfterUpdate,l=a.ariaSelection,c=a.isFocused,d=a.prevWasFocused,g=a.instancePrefix,b=n.options,v=n.value,m=n.menuIsOpen,p=n.inputValue,h=n.isMulti,x=an(v),S={};if(s&&(v!==s.value||b!==s.options||m!==s.menuIsOpen||p!==s.inputValue)){var E=m?Qi(n,x):[],f=m?_n(We(n,x),"".concat(g,"-option")):[],O=u?es(a,x):null,w=ts(a,E),V=Ot(f,w);S={selectValue:x,focusedOption:w,focusedOptionId:V,focusableOptionsWithIds:f,focusedValue:O,clearFocusValueOnUpdate:!1}}var A=i!=null&&n!==s?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},_=l,W=c&&d;return c&&!W&&(_={value:ze(h,x,x[0]||null),options:x,action:"initial-input-focus"},W=!d),l?.action==="initial-input-focus"&&(_=null),M(M(M({},S),A),{},{prevProps:n,ariaSelection:_,prevWasFocused:W})}}]),r})(C.Component);zn.defaultProps=Zi;var rs=C.forwardRef(function(t,e){var r=wr(t);return L.createElement(zn,P({ref:e},r))}),os=rs;const as=({choices:t,value:e,onChange:r,placeholder:o="Choose…",clearable:n=!1,disabled:a,autoFocus:s})=>{const u=t.find(i=>i.value===e)??null;return y.jsx(os,{inputId:G.useFieldId(),options:t,value:u,onChange:i=>{r(i?.value??"")},placeholder:o,isClearable:n,isDisabled:a,autoFocus:s,noOptionsMessage:()=>"Nothing found",unstyled:!0,classNames:{control:({isFocused:i,isDisabled:l})=>["min-h-[38px] rounded-md border px-3 text-sm shadow-sm",l?"bg-gray-100 text-gray-500":"bg-white",i?"border-gray-900":"border-gray-300"].join(" "),valueContainer:()=>"gap-1 py-2",placeholder:()=>"text-gray-400",input:()=>"text-gray-900",indicatorsContainer:()=>"gap-1",clearIndicator:()=>"cursor-pointer rounded p-1 text-gray-400 hover:bg-gray-100 hover:text-gray-900",dropdownIndicator:()=>"p-1 text-gray-500",menu:()=>"mt-1 overflow-hidden rounded-md border border-gray-200 bg-white text-sm shadow-lg",menuList:()=>"py-1",option:({isFocused:i,isSelected:l})=>["cursor-pointer px-3 py-2",l?"bg-gray-900 text-white":i?"bg-gray-100 text-gray-900":"text-gray-900"].join(" "),noOptionsMessage:()=>"px-3 py-2 text-gray-500"}})},is=({columns:t,rows:e,pageSize:r=20,filterable:o=!0,emptyText:n="Nothing to show.",selection:a})=>{const[s,u]=C.useState(""),i=a?.disabled===!0,[l,c]=C.useState(0),d=s.trim().toLowerCase(),g=d?e.filter(S=>S.searchText.toLowerCase().includes(d)):e,b=Math.max(1,Math.ceil(g.length/r)),v=Math.min(l,b-1),m=g.slice(v*r,(v+1)*r),p=e.some(S=>(S.menu??[]).length>0),h=o||g.length>r,x="rounded-md border border-gray-200 px-2.5 py-1 text-xs font-medium text-gray-700 hover:bg-gray-50 disabled:cursor-not-allowed disabled:opacity-40";return y.jsxs("div",{className:["rounded-lg border border-gray-200",i?"bg-gray-100 text-gray-500":"bg-white"].join(" "),children:[h&&y.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 border-b border-gray-200 px-3 py-2",children:[o?y.jsx("input",{type:"search",value:s,placeholder:"Filter","aria-label":"Filter rows",disabled:i,onChange:S=>{u(S.target.value),c(0)},className:"w-full max-w-56 rounded-md border border-gray-300 px-3 py-1 text-sm shadow-sm focus:border-gray-900 focus:outline-none enabled:bg-white disabled:bg-gray-100"}):y.jsx("span",{}),g.length>0&&y.jsxs("div",{className:"flex items-center gap-2 text-xs text-gray-500",children:[y.jsxs("span",{children:[v*r+1,"–",Math.min((v+1)*r,g.length)," of ",g.length]}),g.length>r&&y.jsxs(y.Fragment,{children:[y.jsx("button",{type:"button",disabled:v===0,onClick:()=>{c(v-1)},className:x,children:"Prev"}),y.jsx("button",{type:"button",disabled:v>=b-1,onClick:()=>{c(v+1)},className:x,children:"Next"})]})]})]}),m.length===0?y.jsx("p",{className:"px-4 py-6 text-sm text-gray-500",children:d?"No rows match the filter.":n}):y.jsx("div",{className:"overflow-x-auto",children:y.jsxs("table",{className:"w-full text-left text-sm",children:[y.jsx("thead",{className:h?"bg-gray-50":"bg-gray-50 [&_th:first-child]:rounded-tl-lg [&_th:last-child]:rounded-tr-lg",children:y.jsxs("tr",{className:"border-b border-gray-200",children:[a&&y.jsx("th",{className:"w-10","aria-label":"Selected"}),t.map(S=>y.jsx("th",{className:"px-4 py-2.5 font-medium whitespace-nowrap text-gray-500",children:S.label},S.key)),p&&y.jsx("th",{className:"w-10","aria-label":"Row actions"})]})}),y.jsx("tbody",{children:m.map((S,E)=>y.jsxs("tr",{className:"border-b border-gray-100 last:border-0",children:[a&&S.id!==void 0&&y.jsx("td",{className:"py-2.5 pl-4",children:y.jsx("input",{type:a.mode==="single"?"radio":"checkbox","aria-label":"Select row",checked:a.selected.includes(S.id),disabled:a.disabled,onChange:()=>{const f=S.id??-1,O=a.selected.includes(f);a.onChange(a.mode==="single"?[f]:O?a.selected.filter(w=>w!==f):[...a.selected,f])},className:"accent-gray-900"})}),t.map(f=>y.jsx("td",{className:"px-4 py-2.5",children:S.cells[f.key]},f.key)),p&&y.jsx("td",{className:"px-2 py-1.5",children:S.menu&&S.menu.length>0&&y.jsx(G.RowMenu,{items:S.menu})})]},S.id??v*r+E))})]})})]})},ss=({value:t,onChange:e,...r})=>y.jsx("textarea",{...r,id:G.useFieldId(),value:t,onChange:o=>{e(o.target.value)},className:Ie.CONTROL_CLASS_NAME}),qe="__AWAITIO__",ls=t=>{const e=window[qe],r=document.currentScript,o=r instanceof HTMLScriptElement?r.dataset.type:void 0;if(!e||!o)throw new Error("A component UI script must be loaded by the AwaitIO UI.");e.registerComponent(o,t)},us=t=>{const e=window[qe],r=document.currentScript,o=r instanceof HTMLScriptElement?r.dataset.type:void 0;if(!e||!o)throw new Error("A display component UI script must be loaded by the AwaitIO UI.");e.registerDisplay(o,t)},cs=t=>{const e=window[qe],r=document.currentScript,o=r instanceof HTMLScriptElement?r.dataset.type:void 0;if(!e||!o)throw new Error("A layout UI script must be loaded by the AwaitIO UI.");e.registerLayout(o,t)},ds=t=>{const e=window[qe],r=document.currentScript,o=r instanceof HTMLScriptElement?r.dataset.type:void 0;if(!e||!o)throw new Error("A theme UI script must be loaded by the AwaitIO UI.");e.registerTheme(o,t)},K=Xn({Badge:Zn,Button:Qn,ButtonRow:er,Card:tr,Checkbox:nr,ChoiceList:rr,Field:or,Heading:ar,Hint:ir,Image:sr,Input:lr,Label:ur,Link:cr,Metadata:dr,MultiSelect:fr,NativeSelect:pr,Prose:hr,RowMenu:vr,Select:as,Table:is,Textarea:ss});return Object.values(K).every(t=>t&&t.kind==="awaitio-theme-block")?ds({blocks:Object.fromEntries(Object.entries(K).map(([t,e])=>[t,e.component]))}):K.kind==="awaitio-layout"?cs({component:K.component}):K.kind==="awaitio-display"?us({component:K.component,wrap:K.wrap??!0}):ls({component:K.component,initialValue:K.initialValue,wrap:K.wrap??!0,submitButton:K.submitButton??!0}),Xe.defaultTheme=K,Object.defineProperty(Xe,Symbol.toStringTag,{value:"Module"}),Xe})({},__AWAITIO__.jsxRuntime,__AWAITIO__.ui,__AWAITIO__.React,__AWAITIO__.ReactDOM);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awaitio/theme-default",
3
- "version": "0.1.0",
3
+ "version": "1.1.0",
4
4
  "description": "The default look of AwaitIO: every block of awaitio/ui, with its styles.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "main": "dist/index.js",
@@ -11,7 +11,7 @@
11
11
  "peerDependencies": {
12
12
  "@types/react": "^19.0.0",
13
13
  "zod": "^3.25.0 || ^4.0.0",
14
- "awaitio": "^0.1.0"
14
+ "awaitio": "^1.1.0"
15
15
  },
16
16
  "peerDependenciesMeta": {
17
17
  "@types/react": {
@@ -19,7 +19,8 @@
19
19
  }
20
20
  },
21
21
  "dependencies": {
22
- "react": "^19.1.0"
22
+ "react": "^19.1.0",
23
+ "react-select": "^5.10.0"
23
24
  },
24
25
  "devDependencies": {
25
26
  "@tailwindcss/vite": "^4.1.0",
@@ -32,7 +33,7 @@
32
33
  "vite": "^7.1.0",
33
34
  "vitest": "^3.2.0",
34
35
  "zod": "^4.3.6",
35
- "awaitio": "0.1.0"
36
+ "awaitio": "1.1.0"
36
37
  },
37
38
  "scripts": {
38
39
  "build": "rm -rf dist && tsc -p tsconfig.build.json && vite build",