activeadmin 4.0.0.beta1 → 4.0.0.beta3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7854f33fa96f9ceb3ef104d2ce30dc2a347ab345037e1864fcbf25b7139f9da6
4
- data.tar.gz: 8553d9a6fcfd189d3b60dd03526f68c8527115e7af1a4dfdca4b2ed9da78f8c2
3
+ metadata.gz: 8a88812de83608d40122d0287fed77af0d4656bbee68fadfd79c677454199f4a
4
+ data.tar.gz: 34f685397087cba22f5e6cafd177408ed59a6f017d8a6547f12c0ee0729e99d4
5
5
  SHA512:
6
- metadata.gz: 25117be07ec53152259ab5b7308897d8e6288978ac8eb4bf113cbb9d38a41a2c10701604056cbebeb8d087257b5acc2bc6066e4dc2fc2d4eae42183e15463793
7
- data.tar.gz: 0b62aafe018b86b4493a01c636dd6831c73fa54a6269977497a904fb7afe8a0ee06acb26da23f134cd4a41a699be29252b324b64c73365e324f0cdb431216c45
6
+ metadata.gz: 244c91983c690cfd851ef194b738034276a5d8f1b1d78006dcb9ae03b5c920c15a981e1b363b292282db4fa8952a463b6b9081ec1bcb2b38a6fa0376792e9982
7
+ data.tar.gz: 4530d4d1123d312caf97bdee815beca6d2aa030de6c1e0a13f40258cefb5c6e04eec467ba304edfd4c917c41c3f93e564c8362889ceb842b83e8df5a180a4295
data/CONTRIBUTING.md CHANGED
@@ -96,7 +96,9 @@ Maintainers need to do the following to push out a release:
96
96
  * Make sure you have [chandler] properly configured. Chandler is used to
97
97
  automatically submit github release notes from the changelog right after
98
98
  pushing the gem to rubygems.
99
- * Run one of `bin/rake release:prepare_{prerelease,prepatch,patch,preminor,minor,premajor,major}`, push the result and create a PR.
99
+ * Update the version in the `lib/active_admin/version.rb` file.
100
+ * Run `bin/bundle` to update all gemfiles.
101
+ * Update the `package.json` version. [Prerelease format is 1.0.0-beta1](https://github.com/rails/rails/blob/0d0c30e534af7f80ec8b18eb946aaa613ca30444/tasks/release.rb#L26).
100
102
  * Review and merge the PR. The generated changelog in the PR should include all user visible changes you intend to ship.
101
103
  * Run `bin/rake release` from the target branch once the PR is merged.
102
104
 
data/UPGRADING.md ADDED
@@ -0,0 +1,225 @@
1
+ # Upgrading Guide
2
+
3
+ ## From v3 to v4 (beta)
4
+
5
+ ActiveAdmin v4 uses TailwindCSS. It has **mobile web, dark mode and RTL support** with a default theme that can be customized through partials and CSS. This release assumes `cssbundling-rails` and `importmap-rails` is installed and configured in the host app. Partials can be modified to include a different asset library, e.g. shakapacker.
6
+
7
+ **IMPORTANT**: there is **no sortable functionality for has-many forms** in this release so if needed, **do not upgrade**. We are [open to community proposals](https://github.com/activeadmin/activeadmin/discussions/new?category=ideas). The add/remove functionality for has-many forms remains supported.
8
+
9
+ These instructions assume the `cssbundling-rails` and `importmap-rails` gems are already installed and you have run their install commands in your app. If you haven't done so, please do before continuing.
10
+
11
+ Update your `Gemfile` with `gem "activeadmin", "4.0.0.beta2"` and then run `gem install activeadmin --pre`.
12
+
13
+ Now, run `rails generate active_admin:assets` to replace the old assets with the new files.
14
+
15
+ Then add the npm package and update the `build:css` script.
16
+
17
+ ```
18
+ yarn add @activeadmin/activeadmin@4.0.0-beta2
19
+ npm pkg set scripts.build:css="tailwindcss -i ./app/assets/stylesheets/active_admin.css -o ./app/assets/builds/active_admin.css --minify -c tailwind-active_admin.config.js"
20
+ ```
21
+
22
+ If you are already using Tailwind in your app, then update the `build:css` script to chain the above command to your existing one, e.g. `"tailwindcss ... && tailwindcss ..."`, so both stylesheets are generated.
23
+
24
+ Many configs have been removed (meta tags, asset registration, utility nav, etc.) that can now be modified more naturally through partials.
25
+
26
+ Open the `config/initializers/active_admin.rb` file and remove these deleted configs.
27
+
28
+ ```
29
+ site_title_link
30
+ site_title_image
31
+ logout_link_method
32
+ favicon
33
+ meta_tags
34
+ meta_tags_for_logged_out_pages
35
+ register_stylesheet
36
+ register_javascript
37
+ head
38
+ footer
39
+ use_webpacker
40
+ ```
41
+
42
+ Now, run `rails g active_admin:views` which will copy the partials to your app so you can customize if needed.
43
+
44
+ Note that the templates can and will change across releases. There are additional partials that can be copied but they are considered private so you do so at your own risk. You will have to keep those up to date per release.
45
+
46
+ **IMPORTANT**: if your project has copied any ActiveAdmin, Devise, or Kaminari templates from earlier releases, those templates must be updated from this release to avoid potential errors. Path helpers in Devise templates may require using the `main_app` proxy. The Kaminari templates have moved to `app/views/active_admin/kaminari`.
47
+
48
+ With the setup complete, please review the Breaking Changes section and resolve any that may or may not impact your integration.
49
+
50
+ ### Breaking Changes
51
+ - jQuery and jQuery UI have been removed.
52
+ - The `columns` component has been removed. Use `div`'s with Tailwind classes for modern, responsive layout.
53
+
54
+ <details>
55
+ <summary>Columns Component Migration Alternative</summary>
56
+
57
+ If you did not specify any parameters for `column` and if all you need is equal width columns, then this single component will restore that functionality for any number of columns.
58
+
59
+ ```ruby
60
+ # app/admin/components/columns.rb
61
+ class Columns < ActiveAdmin::Component
62
+ builder_method :columns
63
+
64
+ def build(*args)
65
+ super
66
+ add_class "grid auto-cols-fr grid-flow-col gap-4 mb-4"
67
+ end
68
+
69
+ def column(*args, &block)
70
+ insert_tag Arbre::HTML::Div, *args, &block
71
+ end
72
+ end
73
+ ```
74
+
75
+ Using Tailwind modifiers you can further customize the number of columns for responsive/mobile support.
76
+ </details>
77
+
78
+ - Replace `default_main_content` with `render "show_default"`.
79
+
80
+ <details>
81
+ <summary>Show Default Alternative</summary>
82
+
83
+ If block form `default_main_content do ... end` was used or looking for a partial file
84
+ alternative, then replace with existing, public methods.
85
+
86
+ ```ruby
87
+ attributes_table_for(resource) do
88
+ rows *active_admin_config.resource_columns
89
+ row :a
90
+ row :b
91
+ # ...
92
+ end
93
+ active_admin_comments_for(resource) if active_admin_config.comments?
94
+ ```
95
+ </details>
96
+
97
+ - Replace `as: :datepicker` with Formtastic's `as: :date_picker` for native HTML date input.
98
+ - Replace `active_admin_comments` with `active_admin_comments_for(resource)`.
99
+ - In a sidebar section, replace `attributes_table` with `attributes_table_for(resource)`.
100
+ - The `IndexAsBlog`, `IndexAsBlock` and `IndexAsGrid` components have been removed. Please create your own custom index-as components which remain supported.
101
+ - Batch Actions Form DSL has been replaced with Rails partial support so you can supply your own custom form and modal.
102
+
103
+ <details>
104
+ <summary>Batch Action Partial Example</summary>
105
+
106
+ Assuming a Post resource (in the default namespace) with a `mark_published` batch action, we set the partial name and a set of HTML data attributes to trigger a modal using Flowbite which is included by default.
107
+
108
+ Note that you can use any modal JS library you want as long as it can be triggered to open using data attributes. Flowbite usage is not a requirement.
109
+
110
+ ```ruby
111
+ batch_action(
112
+ :mark_published,
113
+ partial: "mark_published_batch_action",
114
+ link_html_options: {
115
+ "data-modal-target": "mark-published-modal",
116
+ "data-modal-show": "mark-published-modal"
117
+ }
118
+ ) do |ids, inputs|
119
+ # ...
120
+ end
121
+ ```
122
+
123
+ In the `app/views/admin/posts` directory, create a `_mark_published_batch_action.html.erb` partial file which will be rendered and included automatically in the posts index admin page.
124
+
125
+ Now add the modal HTML where the `id` attribute must match the data attributes supplied in the `batch_action` example. The form must have an empty `data-batch-action-form` attribute.
126
+
127
+ ```
128
+ <div id="mark-published-modal" class="hidden fixed top-0 ..." aria-hidden="true" ...>
129
+ <!-- ... other modal content --->
130
+ <%= form_tag false, "data-batch-action-form": "" do %>
131
+ <!-- Declare your form inputs. You can use a different form builder too. -->
132
+ <% end %>
133
+ </div>
134
+ ```
135
+
136
+ The `data-batch-action-form` attribute is a hook for a delegated JS event so when you submit the form, it will post and run your batch action block with the supplied form data, functioning as it did before.
137
+ </details>
138
+
139
+ - Deeply nested submenus has been reverted. Only one level nested menu, e.g. `menu parent: "Administrative"`, is supported.
140
+ - Removed `Panel#header_action` method.
141
+ - Removed `index_column` method from index table.
142
+
143
+ <details>
144
+ <summary>Implementation Example</summary>
145
+
146
+ You can re-implement this column with the following:
147
+
148
+ ```ruby
149
+ column "Number", sortable: false do |item|
150
+ @collection.offset_value + @collection.index(item) + 1
151
+ end
152
+ ```
153
+ </details>
154
+
155
+ #### Resource named methods
156
+
157
+ With the extraction to partials, resource named methods, e.g. `post` or `posts`, used in blocks for `action_item` and `sidebar` will raise an error. You must use the `resource` or `collection` public helper method instead. For example:
158
+
159
+ ```ruby
160
+ action_item :view, if: ->{ post.published? } do link_to(resource) end
161
+ sidebar :author, if: ->{ post.published? }
162
+ # The above must now change to the following:
163
+ action_item :view, if: ->{ resource.published? } do link_to(resource) end
164
+ sidebar :author, if: ->{ resource.published? }
165
+ ```
166
+
167
+ Note that `@post` can also be used here but make sure to call `authorize!` on it if using the authorization feature. The `post` usage would continue to work for `sidebar :name do ... end` content blocks because they can include Arbre but we advise using `resource` or `collection` instead where possible. This may impact other DSL's.
168
+
169
+ ### Visual Related Changes
170
+ - The `sidebar do ... end` contents and the show resource `attributes_table`, are no longer wrapped in a panel so they can be customized.
171
+ - Links in custom `action_item`'s have no default styles. Apply your own or use the library's default `action-item-button` class.
172
+ - The index table `actions dropdown: true` option will be ignored, reverting to original output.
173
+ - An `Arbre::Component` will no longer add a CSS class using the component class name by default.
174
+ - Typographic elements (other than links in main content) [are not styled by default](https://tailwindcss.com/docs/preflight). Use the `@tailwindcss/typography` plugin or apply your own CSS alternative.
175
+
176
+ ### Enhancements
177
+ - Dark mode support.
178
+ - Mobile web support. For responsive `table_for`'s, wrap them in a div with overflow for horizontal scrolling.
179
+ - Customizable admin theme, including main menu and user menu, all through partials.
180
+ - RTL support improved. Now using CSS Logical Properties.
181
+ - Kaminari templates now consolidated into a single set you can customize.
182
+ - Datepicker's now use the native HTML date input. Apply a custom datepicker of your choosing.
183
+ - Batch Actions Form DSL has been replaced with partials and form builder for more customization. Please refer to earlier example.
184
+ - The `status_tag` component now uses unique labels for `false` and `nil` values.
185
+ - Several components: `table_for`, `status_tag`, etc. now use data attributes instead of classes for metadata: status, sort direction, column, etc.
186
+ - Arbre builder methods have been reduced to the minimum so you can use elements or DSLs without clashing e.g. `header`, `footer`, `columns`, etc.
187
+ - The [app-helpers-not-reloading bug has been fixed](https://github.com/activeadmin/activeadmin/pull/8180) and the engine namespace is now isolated.
188
+
189
+ ### Localization Updates
190
+
191
+ This release includes several locale changes. Please [reivew the en.yml locale](https://github.com/activeadmin/activeadmin/blob/master/config/locales/en.yml) for the latest translations.
192
+
193
+ - The `dashboard_welcome`, `dropdown_actions`, `main_content` and `unsupported_browser` keys have been removed.
194
+ - Overriding Kaminari's `previous` and `next` pagination keys to only use words and remove HTML entities.
195
+ - The `active_admin.pagination` keys have been rewritten to be less verbose.
196
+
197
+ ```diff
198
+ - one: "Displaying <b>1</b> %{model}"
199
+ + one: "Showing <b>1</b> of <b>1</b>"
200
+ - one_page: "Displaying <b>all %{n}</b> %{model}"
201
+ + one_page: "Showing <b>all %{n}</b>"
202
+ - multiple: "Displaying %{model} <b>%{from}&nbsp;-&nbsp;%{to}</b> of <b>%{total}</b> in total"
203
+ + multiple: "Showing <b>%{from}-%{to}</b> of <b>%{total}</b>"
204
+ - multiple_without_total: "Displaying %{model} <b>%{from}&nbsp;-&nbsp;%{to}</b>"
205
+ + multiple_without_total: "Showing <b>%{from}-%{to}</b>"
206
+ - per_page: "Per page: "
207
+ + per_page: "Per page "
208
+ ```
209
+
210
+ - The `search_status` key contents has multiple, breaking changes:
211
+
212
+ ```diff
213
+ - headline: "Search status:"
214
+ - current_scope: "Scope:"
215
+ - current_filters: "Current filters:"
216
+ + title: "Active Search"
217
+ + title_with_scope: "Active Search for %{name}"
218
+ - no_current_filters: "None"
219
+ + no_current_filters: "No filters applied"
220
+ ```
221
+
222
+ - The value for the `status_tag.unset` key has changed from "No" to "Unknown".
223
+ - The `comments.title_content` text has been updated with an "All " prefix.
224
+ - The `comments.delete_confirmation` text has been fixed to use singular form.
225
+ - Inconsistent use of login/sign-in related terms so text now uses "Sign in", Sign out", and "Sign up" throughout.
@@ -0,0 +1,37 @@
1
+ # The "main" locale
2
+ base_locale: en
3
+
4
+ # Read and write translations
5
+ data:
6
+ yaml:
7
+ write:
8
+ # Do not wrap lines at 80 characters
9
+ line_width: -1
10
+
11
+ # Find translate calls
12
+ search:
13
+ # Paths or `File.find` patterns to search in
14
+ paths:
15
+ - app
16
+ - lib
17
+
18
+ # Files or `File.fnmatch` patterns to exclude from search
19
+ exclude:
20
+ - app/assets/images
21
+ - tasks/tmp
22
+
23
+ # Guess usages such as t("categories.#{category}.title")
24
+ strict: false
25
+
26
+ ignore_inconsistent_interpolations:
27
+ - active_admin.new_model
28
+ - active_admin.edit_model
29
+ - active_admin.delete_model
30
+ - active_admin.details
31
+ - active_admin.has_many_new
32
+ - active_admin.pagination.empty
33
+ - active_admin.pagination.one
34
+ - active_admin.pagination.one_page
35
+ - active_admin.pagination.multiple
36
+ - active_admin.pagination.multiple_without_total
37
+ - active_admin.blank_slate.content
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+ pin "flowbite", preload: true # downloaded from https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.2.1/flowbite.min.js
3
+ pin "@rails/ujs", to: "https://ga.jspm.io/npm:@rails/ujs@7.1.2/app/assets/javascripts/rails-ujs.esm.js", preload: true
4
+ pin "active_admin", to: "active_admin.js", preload: true
5
+ pin_all_from File.expand_path("../app/javascript/active_admin", __dir__), under: "active_admin", preload: true
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ActiveAdmin
3
- VERSION = "4.0.0.beta1"
3
+ VERSION = "4.0.0.beta3"
4
4
  end
data/plugin.js ADDED
@@ -0,0 +1,550 @@
1
+ const plugin = require('tailwindcss/plugin')
2
+ const defaultTheme = require('tailwindcss/defaultTheme');
3
+ const colors = require('tailwindcss/colors');
4
+ const { spacing, borderWidth, borderRadius } = defaultTheme;
5
+
6
+ // https://github.com/tailwindlabs/tailwindcss/discussions/9336
7
+ // https://github.com/tailwindlabs/tailwindcss/discussions/2049
8
+ // https://github.com/tailwindlabs/tailwindcss/discussions/2049#discussioncomment-45546
9
+
10
+ const svgToTinyDataUri = (() => {
11
+ // Source: https://github.com/tigt/mini-svg-data-uri
12
+ const reWhitespace = /\s+/g,
13
+ reUrlHexPairs = /%[\dA-F]{2}/g,
14
+ hexDecode = { '%20': ' ', '%3D': '=', '%3A': ':', '%2F': '/' },
15
+ specialHexDecode = match => hexDecode[match] || match.toLowerCase(),
16
+ svgToTinyDataUri = svg => {
17
+ svg = String(svg);
18
+ if (svg.charCodeAt(0) === 0xfeff) svg = svg.slice(1);
19
+ svg = svg
20
+ .trim()
21
+ .replace(reWhitespace, ' ')
22
+ .replaceAll('"', '\'');
23
+ svg = encodeURIComponent(svg);
24
+ svg = svg.replace(reUrlHexPairs, specialHexDecode);
25
+ return 'data:image/svg+xml,' + svg;
26
+ };
27
+ svgToTinyDataUri.toSrcset = svg => svgToTinyDataUri(svg).replace(/ /g, '%20');
28
+ return svgToTinyDataUri;
29
+ })();
30
+
31
+ module.exports = plugin(
32
+ function({ addBase, addComponents, theme }) {
33
+ addBase({
34
+ [[
35
+ "[type='text']",
36
+ "[type='email']",
37
+ "[type='url']",
38
+ "[type='password']",
39
+ "[type='number']",
40
+ "[type='date']",
41
+ "[type='datetime-local']",
42
+ "[type='month']",
43
+ "[type='search']",
44
+ "[type='tel']",
45
+ "[type='time']",
46
+ "[type='week']",
47
+ '[multiple]',
48
+ 'textarea',
49
+ 'select',
50
+ ]]: {
51
+ appearance: 'none',
52
+ 'background-color': '#fff',
53
+ 'border-color': theme('colors.gray.500', colors.gray[500]),
54
+ 'border-width': borderWidth['DEFAULT'],
55
+ 'border-radius': borderRadius.none,
56
+ 'padding-top': spacing[2],
57
+ 'padding-right': spacing[3],
58
+ 'padding-bottom': spacing[2],
59
+ 'padding-left': spacing[3],
60
+ '--tw-shadow': '0 0 #0000',
61
+ '&:focus': {
62
+ outline: '2px solid transparent',
63
+ 'outline-offset': '2px',
64
+ '--tw-ring-inset': 'var(--tw-empty,/*!*/ /*!*/)',
65
+ '--tw-ring-offset-width': '0px',
66
+ '--tw-ring-offset-color': '#fff',
67
+ '--tw-ring-color': theme(
68
+ 'colors.blue.600',
69
+ colors.blue[600]
70
+ ),
71
+ '--tw-ring-offset-shadow': `var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)`,
72
+ '--tw-ring-shadow': `var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)`,
73
+ 'box-shadow': `var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)`,
74
+ 'border-color': theme('colors.blue.600', colors.blue[600]),
75
+ },
76
+ },
77
+ [['input::placeholder', 'textarea::placeholder']]: {
78
+ color: theme('colors.gray.500', colors.gray[500]),
79
+ opacity: '1',
80
+ },
81
+ ['::-webkit-datetime-edit']: {
82
+ display: 'inline-flex',
83
+ },
84
+ [[
85
+ '::-webkit-datetime-edit',
86
+ '::-webkit-datetime-edit-year-field',
87
+ '::-webkit-datetime-edit-month-field',
88
+ '::-webkit-datetime-edit-day-field',
89
+ '::-webkit-datetime-edit-hour-field',
90
+ '::-webkit-datetime-edit-minute-field',
91
+ '::-webkit-datetime-edit-second-field',
92
+ '::-webkit-datetime-edit-millisecond-field',
93
+ '::-webkit-datetime-edit-meridiem-field',
94
+ ]]: {
95
+ 'padding-bottom': '0',
96
+ 'padding-top': '0',
97
+ },
98
+ ['::-webkit-date-and-time-value']: {
99
+ 'min-height': '1.5em',
100
+ 'text-align': 'inherit',
101
+ },
102
+ ['select']: {
103
+ 'background-image': `url("${svgToTinyDataUri(
104
+ `<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 10 6">
105
+ <path stroke="${theme('colors.gray.500', colors.gray[500])}" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 1 4 4 4-4"/>
106
+ </svg>`
107
+ )}")`,
108
+ 'background-position': `right ${spacing[3]} center`,
109
+ 'background-repeat': `no-repeat`,
110
+ 'background-size': `0.75em 0.75em`,
111
+ 'padding-inline-end': spacing[8],
112
+ 'print-color-adjust': `exact`,
113
+ },
114
+ [':is(:where([dir=rtl]) select)']: {
115
+ 'background-position': `left ${spacing[3]} center`,
116
+ },
117
+ ['[multiple]']: {
118
+ 'background-image': 'initial',
119
+ 'background-position': 'initial',
120
+ 'background-repeat': 'unset',
121
+ 'background-size': 'initial',
122
+ 'padding-inline-end': spacing[3],
123
+ 'print-color-adjust': 'unset',
124
+ },
125
+ [[`[type='checkbox']`, `[type='radio']`]]: {
126
+ appearance: 'none',
127
+ padding: '0',
128
+ 'print-color-adjust': 'exact',
129
+ display: 'inline-block',
130
+ 'vertical-align': 'middle',
131
+ 'background-origin': 'border-box',
132
+ 'user-select': 'none',
133
+ 'flex-shrink': '0',
134
+ height: spacing[4],
135
+ width: spacing[4],
136
+ color: theme('colors.blue.600', colors.blue[600]),
137
+ 'background-color': '#fff',
138
+ 'border-color': theme('colors.gray.500', colors.gray[500]),
139
+ 'border-width': borderWidth['DEFAULT'],
140
+ '--tw-shadow': '0 0 #0000',
141
+ },
142
+ [`[type='checkbox']`]: {
143
+ 'border-radius': borderRadius['none'],
144
+ },
145
+ [`[type='radio']`]: {
146
+ 'border-radius': '100%',
147
+ },
148
+ [[`[type='checkbox']:focus`, `[type='radio']:focus`]]: {
149
+ outline: '2px solid transparent',
150
+ 'outline-offset': '2px',
151
+ '--tw-ring-inset': 'var(--tw-empty,/*!*/ /*!*/)',
152
+ '--tw-ring-offset-width': '2px',
153
+ '--tw-ring-offset-color': '#fff',
154
+ '--tw-ring-color': theme('colors.blue.600', colors.blue[600]),
155
+ '--tw-ring-offset-shadow': `var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)`,
156
+ '--tw-ring-shadow': `var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)`,
157
+ 'box-shadow': `var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)`,
158
+ },
159
+ [[
160
+ `[type='checkbox']:checked`,
161
+ `[type='radio']:checked`,
162
+ `.dark [type='checkbox']:checked`,
163
+ `.dark [type='checkbox']:indeterminate`,
164
+ `.dark [type='radio']:checked`,
165
+ ]]: {
166
+ 'border-color': `transparent`,
167
+ 'background-color': `currentColor`,
168
+ 'background-size': `0.65rem 0.65rem`,
169
+ 'background-position': `center`,
170
+ 'background-repeat': `no-repeat`,
171
+ },
172
+ [`[type='checkbox']:checked`]: {
173
+ 'background-image': `url("${svgToTinyDataUri(
174
+ `<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 12">
175
+ <path stroke="white" stroke-linecap="round" stroke-linejoin="round" stroke-width="3" d="M1 5.917 5.724 10.5 15 1.5"/>
176
+ </svg>`
177
+ )}")`,
178
+ 'background-repeat': `no-repeat`,
179
+ 'background-size': `0.65rem 0.65rem`,
180
+ 'print-color-adjust': `exact`,
181
+ },
182
+ [`[type='radio']:checked`]: {
183
+ 'background-image': `url("${svgToTinyDataUri(
184
+ `<svg viewBox="0 0 16 16" fill="white" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="8" r="3"/></svg>`
185
+ )}")`,
186
+ 'background-size': `1rem 1rem`,
187
+ },
188
+ [`.dark [type='radio']:checked`]: {
189
+ 'background-image': `url("${svgToTinyDataUri(
190
+ `<svg viewBox="0 0 16 16" fill="white" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="8" r="3"/></svg>`
191
+ )}")`,
192
+ 'background-size': `1rem 1rem`,
193
+ },
194
+ [`[type='checkbox']:indeterminate`]: {
195
+ 'background-image': `url("${svgToTinyDataUri(
196
+ `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path stroke="white" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M2 8h12"/></svg>`
197
+ )}")`,
198
+ 'background-color': `currentColor`,
199
+ 'border-color': `transparent`,
200
+ 'background-position': `center`,
201
+ 'background-repeat': `no-repeat`,
202
+ 'background-size': `.65rem .65rem`,
203
+ 'print-color-adjust': `exact`,
204
+ },
205
+ [[
206
+ `[type='checkbox']:indeterminate:hover`,
207
+ `[type='checkbox']:indeterminate:focus`,
208
+ ]]: {
209
+ 'border-color': 'transparent',
210
+ 'background-color': 'currentColor',
211
+ },
212
+ [`[type='file']`]: {
213
+ background: 'unset',
214
+ 'border-color': 'inherit',
215
+ 'border-width': '0',
216
+ 'border-radius': '0',
217
+ padding: '0',
218
+ 'font-size': 'unset',
219
+ 'line-height': 'inherit',
220
+ },
221
+ [`[type='file']:focus`]: {
222
+ outline: `1px auto inherit`,
223
+ },
224
+ [[`input[type=file]::file-selector-button`]]: {
225
+ color: 'white',
226
+ background: theme('colors.gray.800', colors.gray[800]),
227
+ border: 0,
228
+ 'font-weight': theme('fontWeight.medium'),
229
+ 'font-size': theme('fontSize.sm'),
230
+ cursor: 'pointer',
231
+ 'padding-top': spacing[2.5],
232
+ 'padding-bottom': spacing[2.5],
233
+ 'padding-inline-start': spacing[8],
234
+ 'padding-inline-end': spacing[4],
235
+ 'margin-inline-start': '-1rem',
236
+ 'margin-inline-end': '1rem',
237
+ '&:hover': {
238
+ background: theme('colors.gray.700', colors.gray[700]),
239
+ },
240
+ },
241
+ [[`.dark input[type=file]::file-selector-button`]]: {
242
+ color: 'white',
243
+ background: theme('colors.gray.600', colors.gray[600]),
244
+ '&:hover': {
245
+ background: theme('colors.gray.500', colors.gray[500]),
246
+ },
247
+ },
248
+ [['.tooltip-arrow', '.tooltip-arrow:before']]: {
249
+ position: 'absolute',
250
+ width: '8px',
251
+ height: '8px',
252
+ background: 'inherit',
253
+ },
254
+ ['.tooltip-arrow']: {
255
+ visibility: 'hidden',
256
+ },
257
+ ['.tooltip-arrow:before']: {
258
+ content: '""',
259
+ visibility: 'visible',
260
+ transform: 'rotate(45deg)',
261
+ },
262
+ [`.tooltip[data-popper-placement^='top'] > .tooltip-arrow`]: {
263
+ bottom: '-4px',
264
+ },
265
+ [`.tooltip[data-popper-placement^='bottom'] > .tooltip-arrow`]: {
266
+ top: '-4px',
267
+ },
268
+ [`.tooltip[data-popper-placement^='left'] > .tooltip-arrow`]: {
269
+ right: '-4px',
270
+ },
271
+ [`.tooltip[data-popper-placement^='right'] > .tooltip-arrow`]: {
272
+ left: '-4px',
273
+ },
274
+ ['.tooltip.invisible > .tooltip-arrow:before']: {
275
+ visibility: 'hidden',
276
+ },
277
+ [['[data-popper-arrow]', '[data-popper-arrow]:before']]: {
278
+ position: 'absolute',
279
+ width: '8px',
280
+ height: '8px',
281
+ background: 'inherit',
282
+ },
283
+ ['[data-popper-arrow]']: {
284
+ visibility: 'hidden',
285
+ },
286
+ ['[data-popper-arrow]:before']: {
287
+ content: '""',
288
+ visibility: 'visible',
289
+ transform: 'rotate(45deg)',
290
+ },
291
+ [`[data-popover][role="tooltip"][data-popper-placement^='top'] > [data-popper-arrow]`]:
292
+ {
293
+ bottom: '-5px',
294
+ },
295
+ [`[data-popover][role="tooltip"][data-popper-placement^='bottom'] > [data-popper-arrow]`]:
296
+ {
297
+ top: '-5px',
298
+ },
299
+ [`[data-popover][role="tooltip"][data-popper-placement^='left'] > [data-popper-arrow]`]:
300
+ {
301
+ right: '-5px',
302
+ },
303
+ [`[data-popover][role="tooltip"][data-popper-placement^='right'] > [data-popper-arrow]`]:
304
+ {
305
+ left: '-5px',
306
+ },
307
+ ['[role="tooltip"].invisible > [data-popper-arrow]:before']: {
308
+ visibility: 'hidden',
309
+ },
310
+ '[type=checkbox]': {
311
+ '@apply w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600': {}
312
+ },
313
+ '[type=radio]': {
314
+ '@apply w-4 h-4 border-gray-300 focus:ring-2 focus:ring-blue-300 dark:focus:ring-blue-600 dark:focus:bg-blue-600 dark:bg-gray-700 dark:border-gray-600': {}
315
+ },
316
+ [['[type=date]', '[type=email]', '[type=number]', '[type=password]', '[type=tel]', '[type=text]', '[type=time]', '[type=url]', 'select', 'textarea']]: {
317
+ '@apply bg-gray-50 border border-gray-300 text-gray-900 rounded-md focus:ring-blue-500 focus:border-blue-500 w-full dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500': {}
318
+ },
319
+ 'a': {
320
+ '@apply text-blue-600 underline underline-offset-[.2rem]': {}
321
+ },
322
+ });
323
+ addComponents({
324
+ '.action-item-button': {
325
+ '@apply py-2 px-3 text-sm font-medium no-underline text-gray-900 focus:outline-none bg-white rounded-md border border-gray-200 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700': {}
326
+ },
327
+ '.index-data-table-toolbar': {
328
+ '@apply flex flex-col lg:flex-row gap-4 mb-4': {}
329
+ },
330
+ '.scopes': {
331
+ '@apply flex flex-wrap gap-1.5': {}
332
+ },
333
+ '.index-button-group': {
334
+ '@apply inline-flex flex-wrap items-stretch rounded-md': {}
335
+ },
336
+ // Prevent double borders when buttons are next to each other
337
+ '.index-button-group > :where(*:not(:first-child))': {
338
+ '@apply -ms-px my-0': {}
339
+ },
340
+ '.index-button': {
341
+ '@apply inline-flex items-center justify-center px-3 py-2 text-sm font-medium no-underline text-gray-900 bg-white border border-gray-200 hover:bg-gray-100 focus:z-10 focus:ring-2 focus:ring-blue-700 focus:text-blue-700 first:rounded-s-md last:rounded-e-md dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:hover:text-gray-200 dark:hover:bg-gray-800 dark:focus:ring-blue-500 dark:focus:text-white': {}
342
+ },
343
+ '.index-button-selected': {
344
+ '@apply bg-gray-100 hover:bg-gray-100 dark:bg-gray-800 dark:hover:bg-gray-800': {}
345
+ },
346
+ '.scopes-count': {
347
+ '@apply inline-flex items-center justify-center rounded-full bg-indigo-200/80 text-indigo-800 dark:bg-indigo-800 dark:text-indigo-200 px-1.5 py-1 text-xs font-normal ms-2 leading-none': {}
348
+ },
349
+ '.paginated-collection': {
350
+ '@apply border border-gray-200 dark:border-gray-800 rounded-md shadow-sm overflow-hidden': {}
351
+ },
352
+ '.paginated-collection-contents': {
353
+ '@apply overflow-x-auto': {}
354
+ },
355
+ '.paginated-collection-pagination': {
356
+ '@apply p-2 lg:p-3 flex flex-col-reverse lg:flex-row gap-4 items-center justify-between': {}
357
+ },
358
+ '.paginated-collection-footer': {
359
+ '@apply p-3 flex gap-2 items-center justify-between text-sm border-t border-gray-200 dark:border-gray-800': {}
360
+ },
361
+ '.pagination-per-page': {
362
+ '@apply text-sm py-1 pe-7 w-auto w-min': {}
363
+ },
364
+ '.index-as-table': {
365
+ '@apply relative overflow-x-auto': {}
366
+ },
367
+ '.data-table': {
368
+ '@apply w-full text-sm text-gray-800 dark:text-gray-300': {}
369
+ },
370
+ '.data-table :where(thead > tr > th)': {
371
+ '@apply px-3 py-3.5 whitespace-nowrap font-semibold text-start text-xs uppercase border-b text-gray-700 bg-gray-50 dark:bg-gray-950/50 dark:border-gray-800 dark:text-white': {}
372
+ },
373
+ '.data-table :where(thead > tr > th > a)': {
374
+ '@apply text-inherit no-underline inline-flex items-center gap-2': {}
375
+ },
376
+ '.data-table-sorted-icon': {
377
+ '@apply invisible w-[8px] h-[5px]': {}
378
+ },
379
+ ':where(th[data-sort-direction]) .data-table-sorted-icon': {
380
+ '@apply visible': {}
381
+ },
382
+ ':where(th[data-sort-direction="asc"]) .data-table-sorted-icon': {
383
+ '@apply rotate-180': {}
384
+ },
385
+ '.data-table :where(tbody > tr)': {
386
+ '@apply border-b dark:border-gray-800': {}
387
+ },
388
+ '.data-table :where(td)': {
389
+ '@apply px-3 py-4': {}
390
+ },
391
+ '.data-table-resource-actions': {
392
+ '@apply flex gap-2': {}
393
+ },
394
+ '.filters-form': {
395
+ '@apply text-sm mb-6': {}
396
+ },
397
+ '.filters-form-title': {
398
+ '@apply text-gray-700 dark:text-gray-200 font-bold text-lg mb-4': {}
399
+ },
400
+ '.filters-form :where(.label)': {
401
+ '@apply block mb-1.5 text-sm': {}
402
+ },
403
+ '.filters-form-input-group': {
404
+ '@apply grid grid-cols-2 gap-2': {}
405
+ },
406
+ '.filters-form-field': {
407
+ '@apply mb-4': {}
408
+ },
409
+ '.filters-form-field :where(.choices > label)': {
410
+ '@apply flex gap-2 items-center mb-1': {}
411
+ },
412
+ '.filters-form-buttons': {
413
+ '@apply flex gap-2 items-center': {}
414
+ },
415
+ '.filters-form-submit': {
416
+ '@apply min-w-[6rem] font-bold text-white bg-blue-600 hover:bg-blue-700 focus:ring-4 focus:outline-none focus:ring-blue-300 rounded-md px-3 py-2 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800 cursor-pointer': {}
417
+ },
418
+ '.filters-form-clear': {
419
+ '@apply rounded-md px-3 py-2 font-semibold text-gray-700 hover:bg-gray-100 no-underline dark:text-gray-400 dark:hover:bg-inherit dark:hover:text-gray-100 dark:focus:ring-blue-800': {}
420
+ },
421
+ '.active-filters-title': {
422
+ '@apply text-gray-700 dark:text-gray-200 font-bold text-lg mb-4': {}
423
+ },
424
+ '.active-filters-list': {
425
+ '@apply ps-5 list-disc space-y-1 text-gray-700 dark:text-gray-200': {}
426
+ },
427
+ '.batch-actions-dropdown': {
428
+ '@apply relative': {}
429
+ },
430
+ '.batch-actions-dropdown-toggle': {
431
+ '@apply transition-opacity rounded-md inline-flex items-center justify-center gap-2 px-3 py-2 text-sm font-medium text-gray-900 bg-white border border-gray-200 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-2 focus:ring-blue-700 focus:text-blue-700 dark:bg-gray-700 dark:border-gray-600 dark:text-white dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-blue-500 dark:focus:text-white disabled:text-gray-400 disabled:border-gray-200/70 dark:disabled:bg-gray-900 dark:disabled:text-gray-700 dark:disabled:border-gray-800 disabled:pointer-events-none': {}
432
+ },
433
+ '.batch-actions-dropdown-arrow': {
434
+ '@apply w-2.5 h-2.5': {}
435
+ },
436
+ '.batch-actions-dropdown-menu': {
437
+ '@apply z-10 hidden min-w-[7rem] bg-white rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none dark:bg-gray-700 py-1 text-sm text-gray-700 dark:text-gray-200': {}
438
+ },
439
+ '.batch-actions-dropdown-menu :where(li > a)': {
440
+ '@apply block px-2.5 py-2 no-underline text-gray-700 hover:bg-gray-100 hover:text-gray-900 dark:text-white dark:hover:bg-gray-600 dark:hover:text-white': {}
441
+ },
442
+ '.panel': {
443
+ '@apply mb-6 border border-gray-200 rounded-md shadow-sm dark:border-gray-800': {}
444
+ },
445
+ '.panel-title': {
446
+ '@apply font-bold bg-gray-100 dark:bg-gray-900 rounded-t-md p-3': {}
447
+ },
448
+ '.panel-body': {
449
+ '@apply py-5 px-3': {}
450
+ },
451
+ '.attributes-table': {
452
+ '@apply overflow-hidden mb-6 border border-gray-200 rounded-md shadow-sm dark:border-gray-800': {}
453
+ },
454
+ '.attributes-table > :where(table)': {
455
+ '@apply w-full text-sm text-gray-800 dark:text-gray-300': {}
456
+ },
457
+ '.attributes-table :where(tbody > tr)': {
458
+ '@apply border-b dark:border-gray-800': {}
459
+ },
460
+ '.attributes-table :where(tbody > tr > th)': {
461
+ '@apply w-32 sm:w-40 text-start text-xs text-gray-700 uppercase bg-gray-50 dark:bg-gray-800/60 dark:text-gray-300': {}
462
+ },
463
+ '.attributes-table :where(tbody > tr > th, tbody > tr > td)': {
464
+ '@apply p-3': {}
465
+ },
466
+ '.attributes-table-empty-value': {
467
+ '@apply text-gray-400/50 dark:text-gray-700/60 text-xs uppercase font-semibold': {}
468
+ },
469
+ '.status-tag': {
470
+ '@apply bg-gray-200 text-gray-600 dark:bg-gray-700 dark:text-gray-400 inline-flex items-center rounded-full text-sm font-medium px-2.5 py-0.5 whitespace-nowrap': {}
471
+ },
472
+ '.status-tag:where([data-status=yes])': {
473
+ '@apply bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-300': {}
474
+ },
475
+ '.tabs-nav': {
476
+ '@apply flex flex-wrap mb-2 text-sm font-medium text-center border-b border-gray-200 dark:border-gray-700': {}
477
+ },
478
+ '.tabs-nav > :where(button)': {
479
+ '@apply inline-block p-4 border-b-2 border-transparent rounded-t-lg hover:text-gray-600 hover:border-gray-300 dark:hover:text-gray-300': {}
480
+ },
481
+ '.tabs-content': {
482
+ '@apply p-4 mb-6': {}
483
+ },
484
+ // Forms
485
+ '.formtastic': {
486
+ '@apply text-sm': {}
487
+ },
488
+ '.formtastic :where(.fieldset-title, .has-many-fields-title)': {
489
+ '@apply block w-full mb-3 border-b font-bold text-lg': {}
490
+ },
491
+ '.formtastic :where(.label)': {
492
+ '@apply block mb-1.5': {}
493
+ },
494
+ '.formtastic :where(.label abbr)': {
495
+ '@apply ms-1 no-underline': {}
496
+ },
497
+ '.formtastic :where(.input)': {
498
+ '@apply py-3': {}
499
+ },
500
+ '.formtastic :where(.choice)': {
501
+ '@apply mb-1': {}
502
+ },
503
+ '.formtastic :where(.boolean label, .choice label)': {
504
+ '@apply flex gap-2 items-center': {}
505
+ },
506
+ '.formtastic :where(.fragments-group)': {
507
+ '@apply inline-flex flex-wrap gap-1': {}
508
+ },
509
+ '.formtastic :where(.fragment label)': {
510
+ '@apply sr-only': {}
511
+ },
512
+ '.formtastic :where(.inline-hints)': {
513
+ '@apply text-gray-500 mt-2': {}
514
+ },
515
+ '.formtastic :where(.errors)': {
516
+ '@apply p-4 mb-2 rounded-lg bg-red-50 text-red-800 dark:bg-red-800 dark:text-red-300': {}
517
+ },
518
+ '.formtastic :where(.errors > li)': {
519
+ '@apply list-disc ms-4 mb-1': {}
520
+ },
521
+ '.formtastic :where(.inline-errors)': {
522
+ '@apply font-bold mt-2 text-red-600 dark:text-red-300': {}
523
+ },
524
+ '.formtastic :where(.error [type=email], .error [type=number], .error [type=password], .error [type=tel], .error [type=text], .error [type=url], .error textarea)': {
525
+ '@apply border-red-500': {}
526
+ },
527
+ '.formtastic :where(.buttons, .actions)': {
528
+ '@apply mt-3': {}
529
+ },
530
+ '.formtastic :where(.actions > ol)': {
531
+ '@apply flex items-center gap-6': {}
532
+ },
533
+ '.formtastic :where([type=submit], [type=button], button)': {
534
+ '@apply font-bold text-white bg-blue-600 hover:bg-blue-700 focus:ring-4 focus:outline-none focus:ring-blue-300 rounded-lg px-4 py-2 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800 cursor-pointer': {}
535
+ },
536
+ '.formtastic :where(.actions .cancel-link)': {
537
+ '@apply font-semibold leading-6 text-gray-900 dark:text-white no-underline': {}
538
+ },
539
+ '.formtastic :where(.has-many-add)': {
540
+ '@apply inline-block py-3': {}
541
+ },
542
+ '.formtastic :where(.has-many-container)': {
543
+ '@apply space-y-8': {}
544
+ },
545
+ '.formtastic :where(.has-many-fields)': {
546
+ '@apply ps-3 border-s-4 border-s-gray-200 dark:border-s-gray-700': {}
547
+ }
548
+ });
549
+ }
550
+ )
@@ -0,0 +1,2 @@
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("Flowbite",[],e):"object"==typeof exports?exports.Flowbite=e():t.Flowbite=e()}(self,(function(){return function(){"use strict";var t={647:function(t,e,i){i.r(e)},853:function(t,e,i){i.r(e),i.d(e,{afterMain:function(){return w},afterRead:function(){return y},afterWrite:function(){return k},applyStyles:function(){return H},arrow:function(){return Q},auto:function(){return a},basePlacements:function(){return c},beforeMain:function(){return b},beforeRead:function(){return _},beforeWrite:function(){return L},bottom:function(){return o},clippingParents:function(){return u},computeStyles:function(){return it},createPopper:function(){return Ht},createPopperBase:function(){return Pt},createPopperLite:function(){return jt},detectOverflow:function(){return mt},end:function(){return d},eventListeners:function(){return ot},flip:function(){return yt},hide:function(){return wt},left:function(){return s},main:function(){return E},modifierPhases:function(){return A},offset:function(){return Lt},placements:function(){return g},popper:function(){return h},popperGenerator:function(){return Tt},popperOffsets:function(){return It},preventOverflow:function(){return kt},read:function(){return m},reference:function(){return f},right:function(){return r},start:function(){return l},top:function(){return n},variationPlacements:function(){return v},viewport:function(){return p},write:function(){return I}});var n="top",o="bottom",r="right",s="left",a="auto",c=[n,o,r,s],l="start",d="end",u="clippingParents",p="viewport",h="popper",f="reference",v=c.reduce((function(t,e){return t.concat([e+"-"+l,e+"-"+d])}),[]),g=[].concat(c,[a]).reduce((function(t,e){return t.concat([e,e+"-"+l,e+"-"+d])}),[]),_="beforeRead",m="read",y="afterRead",b="beforeMain",E="main",w="afterMain",L="beforeWrite",I="write",k="afterWrite",A=[_,m,y,b,E,w,L,I,k];function O(t){return t?(t.nodeName||"").toLowerCase():null}function x(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function C(t){return t instanceof x(t).Element||t instanceof Element}function T(t){return t instanceof x(t).HTMLElement||t instanceof HTMLElement}function P(t){return"undefined"!=typeof ShadowRoot&&(t instanceof x(t).ShadowRoot||t instanceof ShadowRoot)}var H={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},o=e.elements[t];T(o)&&O(o)&&(Object.assign(o.style,i),Object.keys(n).forEach((function(t){var e=n[t];!1===e?o.removeAttribute(t):o.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t],o=e.attributes[t]||{},r=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t}),{});T(n)&&O(n)&&(Object.assign(n.style,r),Object.keys(o).forEach((function(t){n.removeAttribute(t)})))}))}},requires:["computeStyles"]};function j(t){return t.split("-")[0]}var D=Math.max,S=Math.min,z=Math.round;function M(){var t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function q(){return!/^((?!chrome|android).)*safari/i.test(M())}function V(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var n=t.getBoundingClientRect(),o=1,r=1;e&&T(t)&&(o=t.offsetWidth>0&&z(n.width)/t.offsetWidth||1,r=t.offsetHeight>0&&z(n.height)/t.offsetHeight||1);var s=(C(t)?x(t):window).visualViewport,a=!q()&&i,c=(n.left+(a&&s?s.offsetLeft:0))/o,l=(n.top+(a&&s?s.offsetTop:0))/r,d=n.width/o,u=n.height/r;return{width:d,height:u,top:l,right:c+d,bottom:l+u,left:c,x:c,y:l}}function B(t){var e=V(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function R(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&P(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function W(t){return x(t).getComputedStyle(t)}function F(t){return["table","td","th"].indexOf(O(t))>=0}function K(t){return((C(t)?t.ownerDocument:t.document)||window.document).documentElement}function N(t){return"html"===O(t)?t:t.assignedSlot||t.parentNode||(P(t)?t.host:null)||K(t)}function U(t){return T(t)&&"fixed"!==W(t).position?t.offsetParent:null}function X(t){for(var e=x(t),i=U(t);i&&F(i)&&"static"===W(i).position;)i=U(i);return i&&("html"===O(i)||"body"===O(i)&&"static"===W(i).position)?e:i||function(t){var e=/firefox/i.test(M());if(/Trident/i.test(M())&&T(t)&&"fixed"===W(t).position)return null;var i=N(t);for(P(i)&&(i=i.host);T(i)&&["html","body"].indexOf(O(i))<0;){var n=W(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(t)||e}function Y(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function G(t,e,i){return D(t,S(e,i))}function $(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function J(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}var Q={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,a=t.name,l=t.options,d=i.elements.arrow,u=i.modifiersData.popperOffsets,p=j(i.placement),h=Y(p),f=[s,r].indexOf(p)>=0?"height":"width";if(d&&u){var v=function(t,e){return $("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:J(t,c))}(l.padding,i),g=B(d),_="y"===h?n:s,m="y"===h?o:r,y=i.rects.reference[f]+i.rects.reference[h]-u[h]-i.rects.popper[f],b=u[h]-i.rects.reference[h],E=X(d),w=E?"y"===h?E.clientHeight||0:E.clientWidth||0:0,L=y/2-b/2,I=v[_],k=w-g[f]-v[m],A=w/2-g[f]/2+L,O=G(I,A,k),x=h;i.modifiersData[a]=((e={})[x]=O,e.centerOffset=O-A,e)}},effect:function(t){var e=t.state,i=t.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&R(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Z(t){return t.split("-")[1]}var tt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function et(t){var e,i=t.popper,a=t.popperRect,c=t.placement,l=t.variation,u=t.offsets,p=t.position,h=t.gpuAcceleration,f=t.adaptive,v=t.roundOffsets,g=t.isFixed,_=u.x,m=void 0===_?0:_,y=u.y,b=void 0===y?0:y,E="function"==typeof v?v({x:m,y:b}):{x:m,y:b};m=E.x,b=E.y;var w=u.hasOwnProperty("x"),L=u.hasOwnProperty("y"),I=s,k=n,A=window;if(f){var O=X(i),C="clientHeight",T="clientWidth";if(O===x(i)&&"static"!==W(O=K(i)).position&&"absolute"===p&&(C="scrollHeight",T="scrollWidth"),c===n||(c===s||c===r)&&l===d)k=o,b-=(g&&O===A&&A.visualViewport?A.visualViewport.height:O[C])-a.height,b*=h?1:-1;if(c===s||(c===n||c===o)&&l===d)I=r,m-=(g&&O===A&&A.visualViewport?A.visualViewport.width:O[T])-a.width,m*=h?1:-1}var P,H=Object.assign({position:p},f&&tt),j=!0===v?function(t){var e=t.x,i=t.y,n=window.devicePixelRatio||1;return{x:z(e*n)/n||0,y:z(i*n)/n||0}}({x:m,y:b}):{x:m,y:b};return m=j.x,b=j.y,h?Object.assign({},H,((P={})[k]=L?"0":"",P[I]=w?"0":"",P.transform=(A.devicePixelRatio||1)<=1?"translate("+m+"px, "+b+"px)":"translate3d("+m+"px, "+b+"px, 0)",P)):Object.assign({},H,((e={})[k]=L?b+"px":"",e[I]=w?m+"px":"",e.transform="",e))}var it={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,o=void 0===n||n,r=i.adaptive,s=void 0===r||r,a=i.roundOffsets,c=void 0===a||a,l={placement:j(e.placement),variation:Z(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,et(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:c})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,et(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},nt={passive:!0};var ot={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,o=n.scroll,r=void 0===o||o,s=n.resize,a=void 0===s||s,c=x(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&l.forEach((function(t){t.addEventListener("scroll",i.update,nt)})),a&&c.addEventListener("resize",i.update,nt),function(){r&&l.forEach((function(t){t.removeEventListener("scroll",i.update,nt)})),a&&c.removeEventListener("resize",i.update,nt)}},data:{}},rt={left:"right",right:"left",bottom:"top",top:"bottom"};function st(t){return t.replace(/left|right|bottom|top/g,(function(t){return rt[t]}))}var at={start:"end",end:"start"};function ct(t){return t.replace(/start|end/g,(function(t){return at[t]}))}function lt(t){var e=x(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function dt(t){return V(K(t)).left+lt(t).scrollLeft}function ut(t){var e=W(t),i=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+o+n)}function pt(t){return["html","body","#document"].indexOf(O(t))>=0?t.ownerDocument.body:T(t)&&ut(t)?t:pt(N(t))}function ht(t,e){var i;void 0===e&&(e=[]);var n=pt(t),o=n===(null==(i=t.ownerDocument)?void 0:i.body),r=x(n),s=o?[r].concat(r.visualViewport||[],ut(n)?n:[]):n,a=e.concat(s);return o?a:a.concat(ht(N(s)))}function ft(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function vt(t,e,i){return e===p?ft(function(t,e){var i=x(t),n=K(t),o=i.visualViewport,r=n.clientWidth,s=n.clientHeight,a=0,c=0;if(o){r=o.width,s=o.height;var l=q();(l||!l&&"fixed"===e)&&(a=o.offsetLeft,c=o.offsetTop)}return{width:r,height:s,x:a+dt(t),y:c}}(t,i)):C(e)?function(t,e){var i=V(t,!1,"fixed"===e);return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}(e,i):ft(function(t){var e,i=K(t),n=lt(t),o=null==(e=t.ownerDocument)?void 0:e.body,r=D(i.scrollWidth,i.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=D(i.scrollHeight,i.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-n.scrollLeft+dt(t),c=-n.scrollTop;return"rtl"===W(o||i).direction&&(a+=D(i.clientWidth,o?o.clientWidth:0)-r),{width:r,height:s,x:a,y:c}}(K(t)))}function gt(t,e,i,n){var o="clippingParents"===e?function(t){var e=ht(N(t)),i=["absolute","fixed"].indexOf(W(t).position)>=0&&T(t)?X(t):t;return C(i)?e.filter((function(t){return C(t)&&R(t,i)&&"body"!==O(t)})):[]}(t):[].concat(e),r=[].concat(o,[i]),s=r[0],a=r.reduce((function(e,i){var o=vt(t,i,n);return e.top=D(o.top,e.top),e.right=S(o.right,e.right),e.bottom=S(o.bottom,e.bottom),e.left=D(o.left,e.left),e}),vt(t,s,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function _t(t){var e,i=t.reference,a=t.element,c=t.placement,u=c?j(c):null,p=c?Z(c):null,h=i.x+i.width/2-a.width/2,f=i.y+i.height/2-a.height/2;switch(u){case n:e={x:h,y:i.y-a.height};break;case o:e={x:h,y:i.y+i.height};break;case r:e={x:i.x+i.width,y:f};break;case s:e={x:i.x-a.width,y:f};break;default:e={x:i.x,y:i.y}}var v=u?Y(u):null;if(null!=v){var g="y"===v?"height":"width";switch(p){case l:e[v]=e[v]-(i[g]/2-a[g]/2);break;case d:e[v]=e[v]+(i[g]/2-a[g]/2)}}return e}function mt(t,e){void 0===e&&(e={});var i=e,s=i.placement,a=void 0===s?t.placement:s,l=i.strategy,d=void 0===l?t.strategy:l,v=i.boundary,g=void 0===v?u:v,_=i.rootBoundary,m=void 0===_?p:_,y=i.elementContext,b=void 0===y?h:y,E=i.altBoundary,w=void 0!==E&&E,L=i.padding,I=void 0===L?0:L,k=$("number"!=typeof I?I:J(I,c)),A=b===h?f:h,O=t.rects.popper,x=t.elements[w?A:b],T=gt(C(x)?x:x.contextElement||K(t.elements.popper),g,m,d),P=V(t.elements.reference),H=_t({reference:P,element:O,strategy:"absolute",placement:a}),j=ft(Object.assign({},O,H)),D=b===h?j:P,S={top:T.top-D.top+k.top,bottom:D.bottom-T.bottom+k.bottom,left:T.left-D.left+k.left,right:D.right-T.right+k.right},z=t.modifiersData.offset;if(b===h&&z){var M=z[a];Object.keys(S).forEach((function(t){var e=[r,o].indexOf(t)>=0?1:-1,i=[n,o].indexOf(t)>=0?"y":"x";S[t]+=M[i]*e}))}return S}var yt={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,d=t.name;if(!e.modifiersData[d]._skip){for(var u=i.mainAxis,p=void 0===u||u,h=i.altAxis,f=void 0===h||h,_=i.fallbackPlacements,m=i.padding,y=i.boundary,b=i.rootBoundary,E=i.altBoundary,w=i.flipVariations,L=void 0===w||w,I=i.allowedAutoPlacements,k=e.options.placement,A=j(k),O=_||(A===k||!L?[st(k)]:function(t){if(j(t)===a)return[];var e=st(t);return[ct(t),e,ct(e)]}(k)),x=[k].concat(O).reduce((function(t,i){return t.concat(j(i)===a?function(t,e){void 0===e&&(e={});var i=e,n=i.placement,o=i.boundary,r=i.rootBoundary,s=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,d=void 0===l?g:l,u=Z(n),p=u?a?v:v.filter((function(t){return Z(t)===u})):c,h=p.filter((function(t){return d.indexOf(t)>=0}));0===h.length&&(h=p);var f=h.reduce((function(e,i){return e[i]=mt(t,{placement:i,boundary:o,rootBoundary:r,padding:s})[j(i)],e}),{});return Object.keys(f).sort((function(t,e){return f[t]-f[e]}))}(e,{placement:i,boundary:y,rootBoundary:b,padding:m,flipVariations:L,allowedAutoPlacements:I}):i)}),[]),C=e.rects.reference,T=e.rects.popper,P=new Map,H=!0,D=x[0],S=0;S<x.length;S++){var z=x[S],M=j(z),q=Z(z)===l,V=[n,o].indexOf(M)>=0,B=V?"width":"height",R=mt(e,{placement:z,boundary:y,rootBoundary:b,altBoundary:E,padding:m}),W=V?q?r:s:q?o:n;C[B]>T[B]&&(W=st(W));var F=st(W),K=[];if(p&&K.push(R[M]<=0),f&&K.push(R[W]<=0,R[F]<=0),K.every((function(t){return t}))){D=z,H=!1;break}P.set(z,K)}if(H)for(var N=function(t){var e=x.find((function(e){var i=P.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return D=e,"break"},U=L?3:1;U>0;U--){if("break"===N(U))break}e.placement!==D&&(e.modifiersData[d]._skip=!0,e.placement=D,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function bt(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function Et(t){return[n,r,o,s].some((function(e){return t[e]>=0}))}var wt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,o=e.rects.popper,r=e.modifiersData.preventOverflow,s=mt(e,{elementContext:"reference"}),a=mt(e,{altBoundary:!0}),c=bt(s,n),l=bt(a,o,r),d=Et(c),u=Et(l);e.modifiersData[i]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:d,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}};var Lt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,o=t.name,a=i.offset,c=void 0===a?[0,0]:a,l=g.reduce((function(t,i){return t[i]=function(t,e,i){var o=j(t),a=[s,n].indexOf(o)>=0?-1:1,c="function"==typeof i?i(Object.assign({},e,{placement:t})):i,l=c[0],d=c[1];return l=l||0,d=(d||0)*a,[s,r].indexOf(o)>=0?{x:d,y:l}:{x:l,y:d}}(i,e.rects,c),t}),{}),d=l[e.placement],u=d.x,p=d.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=p),e.modifiersData[o]=l}};var It={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=_t({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}};var kt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,a=t.name,c=i.mainAxis,d=void 0===c||c,u=i.altAxis,p=void 0!==u&&u,h=i.boundary,f=i.rootBoundary,v=i.altBoundary,g=i.padding,_=i.tether,m=void 0===_||_,y=i.tetherOffset,b=void 0===y?0:y,E=mt(e,{boundary:h,rootBoundary:f,padding:g,altBoundary:v}),w=j(e.placement),L=Z(e.placement),I=!L,k=Y(w),A="x"===k?"y":"x",O=e.modifiersData.popperOffsets,x=e.rects.reference,C=e.rects.popper,T="function"==typeof b?b(Object.assign({},e.rects,{placement:e.placement})):b,P="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),H=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,z={x:0,y:0};if(O){if(d){var M,q="y"===k?n:s,V="y"===k?o:r,R="y"===k?"height":"width",W=O[k],F=W+E[q],K=W-E[V],N=m?-C[R]/2:0,U=L===l?x[R]:C[R],$=L===l?-C[R]:-x[R],J=e.elements.arrow,Q=m&&J?B(J):{width:0,height:0},tt=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},et=tt[q],it=tt[V],nt=G(0,x[R],Q[R]),ot=I?x[R]/2-N-nt-et-P.mainAxis:U-nt-et-P.mainAxis,rt=I?-x[R]/2+N+nt+it+P.mainAxis:$+nt+it+P.mainAxis,st=e.elements.arrow&&X(e.elements.arrow),at=st?"y"===k?st.clientTop||0:st.clientLeft||0:0,ct=null!=(M=null==H?void 0:H[k])?M:0,lt=W+rt-ct,dt=G(m?S(F,W+ot-ct-at):F,W,m?D(K,lt):K);O[k]=dt,z[k]=dt-W}if(p){var ut,pt="x"===k?n:s,ht="x"===k?o:r,ft=O[A],vt="y"===A?"height":"width",gt=ft+E[pt],_t=ft-E[ht],yt=-1!==[n,s].indexOf(w),bt=null!=(ut=null==H?void 0:H[A])?ut:0,Et=yt?gt:ft-x[vt]-C[vt]-bt+P.altAxis,wt=yt?ft+x[vt]+C[vt]-bt-P.altAxis:_t,Lt=m&&yt?function(t,e,i){var n=G(t,e,i);return n>i?i:n}(Et,ft,wt):G(m?Et:gt,ft,m?wt:_t);O[A]=Lt,z[A]=Lt-ft}e.modifiersData[a]=z}},requiresIfExists:["offset"]};function At(t,e,i){void 0===i&&(i=!1);var n,o,r=T(e),s=T(e)&&function(t){var e=t.getBoundingClientRect(),i=z(e.width)/t.offsetWidth||1,n=z(e.height)/t.offsetHeight||1;return 1!==i||1!==n}(e),a=K(e),c=V(t,s,i),l={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!i)&&(("body"!==O(e)||ut(a))&&(l=(n=e)!==x(n)&&T(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:lt(n)),T(e)?((d=V(e,!0)).x+=e.clientLeft,d.y+=e.clientTop):a&&(d.x=dt(a))),{x:c.left+l.scrollLeft-d.x,y:c.top+l.scrollTop-d.y,width:c.width,height:c.height}}function Ot(t){var e=new Map,i=new Set,n=[];function o(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!i.has(t)){var n=e.get(t);n&&o(n)}})),n.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||o(t)})),n}var xt={placement:"bottom",modifiers:[],strategy:"absolute"};function Ct(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function Tt(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,n=void 0===i?[]:i,o=e.defaultOptions,r=void 0===o?xt:o;return function(t,e,i){void 0===i&&(i=r);var o,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},xt,r),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},c=[],l=!1,d={state:a,setOptions:function(i){var o="function"==typeof i?i(a.options):i;u(),a.options=Object.assign({},r,a.options,o),a.scrollParents={reference:C(t)?ht(t):t.contextElement?ht(t.contextElement):[],popper:ht(e)};var s=function(t){var e=Ot(t);return A.reduce((function(t,i){return t.concat(e.filter((function(t){return t.phase===i})))}),[])}(function(t){var e=t.reduce((function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e,t}),{});return Object.keys(e).map((function(t){return e[t]}))}([].concat(n,a.options.modifiers)));return a.orderedModifiers=s.filter((function(t){return t.enabled})),a.orderedModifiers.forEach((function(t){var e=t.name,i=t.options,n=void 0===i?{}:i,o=t.effect;if("function"==typeof o){var r=o({state:a,name:e,instance:d,options:n}),s=function(){};c.push(r||s)}})),d.update()},forceUpdate:function(){if(!l){var t=a.elements,e=t.reference,i=t.popper;if(Ct(e,i)){a.rects={reference:At(e,X(i),"fixed"===a.options.strategy),popper:B(i)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(t){return a.modifiersData[t.name]=Object.assign({},t.data)}));for(var n=0;n<a.orderedModifiers.length;n++)if(!0!==a.reset){var o=a.orderedModifiers[n],r=o.fn,s=o.options,c=void 0===s?{}:s,u=o.name;"function"==typeof r&&(a=r({state:a,options:c,name:u,instance:d})||a)}else a.reset=!1,n=-1}}},update:(o=function(){return new Promise((function(t){d.forceUpdate(),t(a)}))},function(){return s||(s=new Promise((function(t){Promise.resolve().then((function(){s=void 0,t(o())}))}))),s}),destroy:function(){u(),l=!0}};if(!Ct(t,e))return d;function u(){c.forEach((function(t){return t()})),c=[]}return d.setOptions(i).then((function(t){!l&&i.onFirstUpdate&&i.onFirstUpdate(t)})),d}}var Pt=Tt(),Ht=Tt({defaultModifiers:[ot,It,it,H,Lt,yt,kt,Q,wt]}),jt=Tt({defaultModifiers:[ot,It,it,H]})},902:function(t,e,i){var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.initAccordions=void 0;var o=i(423),r={alwaysOpen:!1,activeClasses:"bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white",inactiveClasses:"text-gray-500 dark:text-gray-400",onOpen:function(){},onClose:function(){},onToggle:function(){}},s={id:null,override:!0},a=function(){function t(t,e,i,a){void 0===t&&(t=null),void 0===e&&(e=[]),void 0===i&&(i=r),void 0===a&&(a=s),this._instanceId=a.id?a.id:t.id,this._accordionEl=t,this._items=e,this._options=n(n({},r),i),this._initialized=!1,this.init(),o.default.addInstance("Accordion",this,this._instanceId,a.override)}return t.prototype.init=function(){var t=this;this._items.length&&!this._initialized&&(this._items.forEach((function(e){e.active&&t.open(e.id);var i=function(){t.toggle(e.id)};e.triggerEl.addEventListener("click",i),e.clickHandler=i})),this._initialized=!0)},t.prototype.destroy=function(){this._items.length&&this._initialized&&(this._items.forEach((function(t){t.triggerEl.removeEventListener("click",t.clickHandler),delete t.clickHandler})),this._initialized=!1)},t.prototype.removeInstance=function(){o.default.removeInstance("Accordion",this._instanceId)},t.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},t.prototype.getItem=function(t){return this._items.filter((function(e){return e.id===t}))[0]},t.prototype.open=function(t){var e,i,n=this,o=this.getItem(t);this._options.alwaysOpen||this._items.map((function(t){var e,i;t!==o&&((e=t.triggerEl.classList).remove.apply(e,n._options.activeClasses.split(" ")),(i=t.triggerEl.classList).add.apply(i,n._options.inactiveClasses.split(" ")),t.targetEl.classList.add("hidden"),t.triggerEl.setAttribute("aria-expanded","false"),t.active=!1,t.iconEl&&t.iconEl.classList.remove("rotate-180"))})),(e=o.triggerEl.classList).add.apply(e,this._options.activeClasses.split(" ")),(i=o.triggerEl.classList).remove.apply(i,this._options.inactiveClasses.split(" ")),o.triggerEl.setAttribute("aria-expanded","true"),o.targetEl.classList.remove("hidden"),o.active=!0,o.iconEl&&o.iconEl.classList.add("rotate-180"),this._options.onOpen(this,o)},t.prototype.toggle=function(t){var e=this.getItem(t);e.active?this.close(t):this.open(t),this._options.onToggle(this,e)},t.prototype.close=function(t){var e,i,n=this.getItem(t);(e=n.triggerEl.classList).remove.apply(e,this._options.activeClasses.split(" ")),(i=n.triggerEl.classList).add.apply(i,this._options.inactiveClasses.split(" ")),n.targetEl.classList.add("hidden"),n.triggerEl.setAttribute("aria-expanded","false"),n.active=!1,n.iconEl&&n.iconEl.classList.remove("rotate-180"),this._options.onClose(this,n)},t}();function c(){document.querySelectorAll("[data-accordion]").forEach((function(t){var e=t.getAttribute("data-accordion"),i=t.getAttribute("data-active-classes"),n=t.getAttribute("data-inactive-classes"),o=[];t.querySelectorAll("[data-accordion-target]").forEach((function(e){if(e.closest("[data-accordion]")===t){var i={id:e.getAttribute("data-accordion-target"),triggerEl:e,targetEl:document.querySelector(e.getAttribute("data-accordion-target")),iconEl:e.querySelector("[data-accordion-icon]"),active:"true"===e.getAttribute("aria-expanded")};o.push(i)}})),new a(t,o,{alwaysOpen:"open"===e,activeClasses:i||r.activeClasses,inactiveClasses:n||r.inactiveClasses})}))}e.initAccordions=c,"undefined"!=typeof window&&(window.Accordion=a,window.initAccordions=c),e.default=a},33:function(t,e,i){var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.initCarousels=void 0;var o=i(423),r={defaultPosition:0,indicators:{items:[],activeClasses:"bg-white dark:bg-gray-800",inactiveClasses:"bg-white/50 dark:bg-gray-800/50 hover:bg-white dark:hover:bg-gray-800"},interval:3e3,onNext:function(){},onPrev:function(){},onChange:function(){}},s={id:null,override:!0},a=function(){function t(t,e,i,a){void 0===t&&(t=null),void 0===e&&(e=[]),void 0===i&&(i=r),void 0===a&&(a=s),this._instanceId=a.id?a.id:t.id,this._carouselEl=t,this._items=e,this._options=n(n(n({},r),i),{indicators:n(n({},r.indicators),i.indicators)}),this._activeItem=this.getItem(this._options.defaultPosition),this._indicators=this._options.indicators.items,this._intervalDuration=this._options.interval,this._intervalInstance=null,this._initialized=!1,this.init(),o.default.addInstance("Carousel",this,this._instanceId,a.override)}return t.prototype.init=function(){var t=this;this._items.length&&!this._initialized&&(this._items.map((function(t){t.el.classList.add("absolute","inset-0","transition-transform","transform")})),this._getActiveItem()?this.slideTo(this._getActiveItem().position):this.slideTo(0),this._indicators.map((function(e,i){e.el.addEventListener("click",(function(){t.slideTo(i)}))})),this._initialized=!0)},t.prototype.destroy=function(){this._initialized&&(this._initialized=!1)},t.prototype.removeInstance=function(){o.default.removeInstance("Carousel",this._instanceId)},t.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},t.prototype.getItem=function(t){return this._items[t]},t.prototype.slideTo=function(t){var e=this._items[t],i={left:0===e.position?this._items[this._items.length-1]:this._items[e.position-1],middle:e,right:e.position===this._items.length-1?this._items[0]:this._items[e.position+1]};this._rotate(i),this._setActiveItem(e),this._intervalInstance&&(this.pause(),this.cycle()),this._options.onChange(this)},t.prototype.next=function(){var t=this._getActiveItem(),e=null;e=t.position===this._items.length-1?this._items[0]:this._items[t.position+1],this.slideTo(e.position),this._options.onNext(this)},t.prototype.prev=function(){var t=this._getActiveItem(),e=null;e=0===t.position?this._items[this._items.length-1]:this._items[t.position-1],this.slideTo(e.position),this._options.onPrev(this)},t.prototype._rotate=function(t){this._items.map((function(t){t.el.classList.add("hidden")})),t.left.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-20"),t.left.el.classList.add("-translate-x-full","z-10"),t.middle.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-10"),t.middle.el.classList.add("translate-x-0","z-20"),t.right.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-20"),t.right.el.classList.add("translate-x-full","z-10")},t.prototype.cycle=function(){var t=this;"undefined"!=typeof window&&(this._intervalInstance=window.setInterval((function(){t.next()}),this._intervalDuration))},t.prototype.pause=function(){clearInterval(this._intervalInstance)},t.prototype._getActiveItem=function(){return this._activeItem},t.prototype._setActiveItem=function(t){var e,i,n=this;this._activeItem=t;var o=t.position;this._indicators.length&&(this._indicators.map((function(t){var e,i;t.el.setAttribute("aria-current","false"),(e=t.el.classList).remove.apply(e,n._options.indicators.activeClasses.split(" ")),(i=t.el.classList).add.apply(i,n._options.indicators.inactiveClasses.split(" "))})),(e=this._indicators[o].el.classList).add.apply(e,this._options.indicators.activeClasses.split(" ")),(i=this._indicators[o].el.classList).remove.apply(i,this._options.indicators.inactiveClasses.split(" ")),this._indicators[o].el.setAttribute("aria-current","true"))},t}();function c(){document.querySelectorAll("[data-carousel]").forEach((function(t){var e=t.getAttribute("data-carousel-interval"),i="slide"===t.getAttribute("data-carousel"),n=[],o=0;t.querySelectorAll("[data-carousel-item]").length&&Array.from(t.querySelectorAll("[data-carousel-item]")).map((function(t,e){n.push({position:e,el:t}),"active"===t.getAttribute("data-carousel-item")&&(o=e)}));var s=[];t.querySelectorAll("[data-carousel-slide-to]").length&&Array.from(t.querySelectorAll("[data-carousel-slide-to]")).map((function(t){s.push({position:parseInt(t.getAttribute("data-carousel-slide-to")),el:t})}));var c=new a(t,n,{defaultPosition:o,indicators:{items:s},interval:e||r.interval});i&&c.cycle();var l=t.querySelector("[data-carousel-next]"),d=t.querySelector("[data-carousel-prev]");l&&l.addEventListener("click",(function(){c.next()})),d&&d.addEventListener("click",(function(){c.prev()}))}))}e.initCarousels=c,"undefined"!=typeof window&&(window.Carousel=a,window.initCarousels=c),e.default=a},922:function(t,e,i){var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.initCollapses=void 0;var o=i(423),r={onCollapse:function(){},onExpand:function(){},onToggle:function(){}},s={id:null,override:!0},a=function(){function t(t,e,i,a){void 0===t&&(t=null),void 0===e&&(e=null),void 0===i&&(i=r),void 0===a&&(a=s),this._instanceId=a.id?a.id:t.id,this._targetEl=t,this._triggerEl=e,this._options=n(n({},r),i),this._visible=!1,this._initialized=!1,this.init(),o.default.addInstance("Collapse",this,this._instanceId,a.override)}return t.prototype.init=function(){var t=this;this._triggerEl&&this._targetEl&&!this._initialized&&(this._triggerEl.hasAttribute("aria-expanded")?this._visible="true"===this._triggerEl.getAttribute("aria-expanded"):this._visible=!this._targetEl.classList.contains("hidden"),this._clickHandler=function(){t.toggle()},this._triggerEl.addEventListener("click",this._clickHandler),this._initialized=!0)},t.prototype.destroy=function(){this._triggerEl&&this._initialized&&(this._triggerEl.removeEventListener("click",this._clickHandler),this._initialized=!1)},t.prototype.removeInstance=function(){o.default.removeInstance("Collapse",this._instanceId)},t.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},t.prototype.collapse=function(){this._targetEl.classList.add("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","false"),this._visible=!1,this._options.onCollapse(this)},t.prototype.expand=function(){this._targetEl.classList.remove("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","true"),this._visible=!0,this._options.onExpand(this)},t.prototype.toggle=function(){this._visible?this.collapse():this.expand(),this._options.onToggle(this)},t}();function c(){document.querySelectorAll("[data-collapse-toggle]").forEach((function(t){var e=t.getAttribute("data-collapse-toggle"),i=document.getElementById(e);i?o.default.instanceExists("Collapse",i.getAttribute("id"))?new a(i,t,{},{id:i.getAttribute("id")+"_"+o.default._generateRandomId()}):new a(i,t):console.error('The target element with id "'.concat(e,'" does not exist. Please check the data-collapse-toggle attribute.'))}))}e.initCollapses=c,"undefined"!=typeof window&&(window.Collapse=a,window.initCollapses=c),e.default=a},556:function(t,e,i){var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.initDials=void 0;var o=i(423),r={triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},s={id:null,override:!0},a=function(){function t(t,e,i,a,c){void 0===t&&(t=null),void 0===e&&(e=null),void 0===i&&(i=null),void 0===a&&(a=r),void 0===c&&(c=s),this._instanceId=c.id?c.id:i.id,this._parentEl=t,this._triggerEl=e,this._targetEl=i,this._options=n(n({},r),a),this._visible=!1,this._initialized=!1,this.init(),o.default.addInstance("Dial",this,this._instanceId,c.override)}return t.prototype.init=function(){var t=this;if(this._triggerEl&&this._targetEl&&!this._initialized){var e=this._getTriggerEventTypes(this._options.triggerType);this._showEventHandler=function(){t.show()},e.showEvents.forEach((function(e){t._triggerEl.addEventListener(e,t._showEventHandler),t._targetEl.addEventListener(e,t._showEventHandler)})),this._hideEventHandler=function(){t._parentEl.matches(":hover")||t.hide()},e.hideEvents.forEach((function(e){t._parentEl.addEventListener(e,t._hideEventHandler)})),this._initialized=!0}},t.prototype.destroy=function(){var t=this;if(this._initialized){var e=this._getTriggerEventTypes(this._options.triggerType);e.showEvents.forEach((function(e){t._triggerEl.removeEventListener(e,t._showEventHandler),t._targetEl.removeEventListener(e,t._showEventHandler)})),e.hideEvents.forEach((function(e){t._parentEl.removeEventListener(e,t._hideEventHandler)})),this._initialized=!1}},t.prototype.removeInstance=function(){o.default.removeInstance("Dial",this._instanceId)},t.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},t.prototype.hide=function(){this._targetEl.classList.add("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","false"),this._visible=!1,this._options.onHide(this)},t.prototype.show=function(){this._targetEl.classList.remove("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","true"),this._visible=!0,this._options.onShow(this)},t.prototype.toggle=function(){this._visible?this.hide():this.show()},t.prototype.isHidden=function(){return!this._visible},t.prototype.isVisible=function(){return this._visible},t.prototype._getTriggerEventTypes=function(t){switch(t){case"hover":default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]}}},t}();function c(){document.querySelectorAll("[data-dial-init]").forEach((function(t){var e=t.querySelector("[data-dial-toggle]");if(e){var i=e.getAttribute("data-dial-toggle"),n=document.getElementById(i);if(n){var o=e.getAttribute("data-dial-trigger");new a(t,e,n,{triggerType:o||r.triggerType})}else console.error("Dial with id ".concat(i," does not exist. Are you sure that the data-dial-toggle attribute points to the correct modal id?"))}else console.error("Dial with id ".concat(t.id," does not have a trigger element. Are you sure that the data-dial-toggle attribute exists?"))}))}e.initDials=c,"undefined"!=typeof window&&(window.Dial=a,window.initDials=c),e.default=a},791:function(t,e,i){var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.initDismisses=void 0;var o=i(423),r={transition:"transition-opacity",duration:300,timing:"ease-out",onHide:function(){}},s={id:null,override:!0},a=function(){function t(t,e,i,a){void 0===t&&(t=null),void 0===e&&(e=null),void 0===i&&(i=r),void 0===a&&(a=s),this._instanceId=a.id?a.id:t.id,this._targetEl=t,this._triggerEl=e,this._options=n(n({},r),i),this._initialized=!1,this.init(),o.default.addInstance("Dismiss",this,this._instanceId,a.override)}return t.prototype.init=function(){var t=this;this._triggerEl&&this._targetEl&&!this._initialized&&(this._clickHandler=function(){t.hide()},this._triggerEl.addEventListener("click",this._clickHandler),this._initialized=!0)},t.prototype.destroy=function(){this._triggerEl&&this._initialized&&(this._triggerEl.removeEventListener("click",this._clickHandler),this._initialized=!1)},t.prototype.removeInstance=function(){o.default.removeInstance("Dismiss",this._instanceId)},t.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},t.prototype.hide=function(){var t=this;this._targetEl.classList.add(this._options.transition,"duration-".concat(this._options.duration),this._options.timing,"opacity-0"),setTimeout((function(){t._targetEl.classList.add("hidden")}),this._options.duration),this._options.onHide(this,this._targetEl)},t}();function c(){document.querySelectorAll("[data-dismiss-target]").forEach((function(t){var e=t.getAttribute("data-dismiss-target"),i=document.querySelector(e);i?new a(i,t):console.error('The dismiss element with id "'.concat(e,'" does not exist. Please check the data-dismiss-target attribute.'))}))}e.initDismisses=c,"undefined"!=typeof window&&(window.Dismiss=a,window.initDismisses=c),e.default=a},340:function(t,e,i){var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.initDrawers=void 0;var o=i(423),r={placement:"left",bodyScrolling:!1,backdrop:!0,edge:!1,edgeOffset:"bottom-[60px]",backdropClasses:"bg-gray-900/50 dark:bg-gray-900/80 fixed inset-0 z-30",onShow:function(){},onHide:function(){},onToggle:function(){}},s={id:null,override:!0},a=function(){function t(t,e,i){void 0===t&&(t=null),void 0===e&&(e=r),void 0===i&&(i=s),this._eventListenerInstances=[],this._instanceId=i.id?i.id:t.id,this._targetEl=t,this._options=n(n({},r),e),this._visible=!1,this._initialized=!1,this.init(),o.default.addInstance("Drawer",this,this._instanceId,i.override)}return t.prototype.init=function(){var t=this;this._targetEl&&!this._initialized&&(this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.classList.add("transition-transform"),this._getPlacementClasses(this._options.placement).base.map((function(e){t._targetEl.classList.add(e)})),this._handleEscapeKey=function(e){"Escape"===e.key&&t.isVisible()&&t.hide()},document.addEventListener("keydown",this._handleEscapeKey),this._initialized=!0)},t.prototype.destroy=function(){this._initialized&&(this.removeAllEventListenerInstances(),this._destroyBackdropEl(),document.removeEventListener("keydown",this._handleEscapeKey),this._initialized=!1)},t.prototype.removeInstance=function(){o.default.removeInstance("Drawer",this._instanceId)},t.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},t.prototype.hide=function(){var t=this;this._options.edge?(this._getPlacementClasses(this._options.placement+"-edge").active.map((function(e){t._targetEl.classList.remove(e)})),this._getPlacementClasses(this._options.placement+"-edge").inactive.map((function(e){t._targetEl.classList.add(e)}))):(this._getPlacementClasses(this._options.placement).active.map((function(e){t._targetEl.classList.remove(e)})),this._getPlacementClasses(this._options.placement).inactive.map((function(e){t._targetEl.classList.add(e)}))),this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.removeAttribute("aria-modal"),this._targetEl.removeAttribute("role"),this._options.bodyScrolling||document.body.classList.remove("overflow-hidden"),this._options.backdrop&&this._destroyBackdropEl(),this._visible=!1,this._options.onHide(this)},t.prototype.show=function(){var t=this;this._options.edge?(this._getPlacementClasses(this._options.placement+"-edge").active.map((function(e){t._targetEl.classList.add(e)})),this._getPlacementClasses(this._options.placement+"-edge").inactive.map((function(e){t._targetEl.classList.remove(e)}))):(this._getPlacementClasses(this._options.placement).active.map((function(e){t._targetEl.classList.add(e)})),this._getPlacementClasses(this._options.placement).inactive.map((function(e){t._targetEl.classList.remove(e)}))),this._targetEl.setAttribute("aria-modal","true"),this._targetEl.setAttribute("role","dialog"),this._targetEl.removeAttribute("aria-hidden"),this._options.bodyScrolling||document.body.classList.add("overflow-hidden"),this._options.backdrop&&this._createBackdrop(),this._visible=!0,this._options.onShow(this)},t.prototype.toggle=function(){this.isVisible()?this.hide():this.show()},t.prototype._createBackdrop=function(){var t,e=this;if(!this._visible){var i=document.createElement("div");i.setAttribute("drawer-backdrop",""),(t=i.classList).add.apply(t,this._options.backdropClasses.split(" ")),document.querySelector("body").append(i),i.addEventListener("click",(function(){e.hide()}))}},t.prototype._destroyBackdropEl=function(){this._visible&&document.querySelector("[drawer-backdrop]").remove()},t.prototype._getPlacementClasses=function(t){switch(t){case"top":return{base:["top-0","left-0","right-0"],active:["transform-none"],inactive:["-translate-y-full"]};case"right":return{base:["right-0","top-0"],active:["transform-none"],inactive:["translate-x-full"]};case"bottom":return{base:["bottom-0","left-0","right-0"],active:["transform-none"],inactive:["translate-y-full"]};case"left":default:return{base:["left-0","top-0"],active:["transform-none"],inactive:["-translate-x-full"]};case"bottom-edge":return{base:["left-0","top-0"],active:["transform-none"],inactive:["translate-y-full",this._options.edgeOffset]}}},t.prototype.isHidden=function(){return!this._visible},t.prototype.isVisible=function(){return this._visible},t.prototype.addEventListenerInstance=function(t,e,i){this._eventListenerInstances.push({element:t,type:e,handler:i})},t.prototype.removeAllEventListenerInstances=function(){this._eventListenerInstances.map((function(t){t.element.removeEventListener(t.type,t.handler)})),this._eventListenerInstances=[]},t.prototype.getAllEventListenerInstances=function(){return this._eventListenerInstances},t}();function c(){document.querySelectorAll("[data-drawer-target]").forEach((function(t){var e=t.getAttribute("data-drawer-target"),i=document.getElementById(e);if(i){var n=t.getAttribute("data-drawer-placement"),o=t.getAttribute("data-drawer-body-scrolling"),s=t.getAttribute("data-drawer-backdrop"),c=t.getAttribute("data-drawer-edge"),l=t.getAttribute("data-drawer-edge-offset");new a(i,{placement:n||r.placement,bodyScrolling:o?"true"===o:r.bodyScrolling,backdrop:s?"true"===s:r.backdrop,edge:c?"true"===c:r.edge,edgeOffset:l||r.edgeOffset})}else console.error("Drawer with id ".concat(e," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))})),document.querySelectorAll("[data-drawer-toggle]").forEach((function(t){var e=t.getAttribute("data-drawer-toggle");if(document.getElementById(e)){var i=o.default.getInstance("Drawer",e);if(i){var n=function(){i.toggle()};t.addEventListener("click",n),i.addEventListenerInstance(t,"click",n)}else console.error("Drawer with id ".concat(e," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(e," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))})),document.querySelectorAll("[data-drawer-dismiss], [data-drawer-hide]").forEach((function(t){var e=t.getAttribute("data-drawer-dismiss")?t.getAttribute("data-drawer-dismiss"):t.getAttribute("data-drawer-hide");if(document.getElementById(e)){var i=o.default.getInstance("Drawer",e);if(i){var n=function(){i.hide()};t.addEventListener("click",n),i.addEventListenerInstance(t,"click",n)}else console.error("Drawer with id ".concat(e," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(e," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id"))})),document.querySelectorAll("[data-drawer-show]").forEach((function(t){var e=t.getAttribute("data-drawer-show");if(document.getElementById(e)){var i=o.default.getInstance("Drawer",e);if(i){var n=function(){i.show()};t.addEventListener("click",n),i.addEventListenerInstance(t,"click",n)}else console.error("Drawer with id ".concat(e," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(e," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))}))}e.initDrawers=c,"undefined"!=typeof window&&(window.Drawer=a,window.initDrawers=c),e.default=a},316:function(t,e,i){var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)},o=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.initDropdowns=void 0;var r=i(853),s=i(423),a={placement:"bottom",triggerType:"click",offsetSkidding:0,offsetDistance:10,delay:300,ignoreClickOutsideClass:!1,onShow:function(){},onHide:function(){},onToggle:function(){}},c={id:null,override:!0},l=function(){function t(t,e,i,o){void 0===t&&(t=null),void 0===e&&(e=null),void 0===i&&(i=a),void 0===o&&(o=c),this._instanceId=o.id?o.id:t.id,this._targetEl=t,this._triggerEl=e,this._options=n(n({},a),i),this._popperInstance=null,this._visible=!1,this._initialized=!1,this.init(),s.default.addInstance("Dropdown",this,this._instanceId,o.override)}return t.prototype.init=function(){this._triggerEl&&this._targetEl&&!this._initialized&&(this._popperInstance=this._createPopperInstance(),this._setupEventListeners(),this._initialized=!0)},t.prototype.destroy=function(){var t=this,e=this._getTriggerEvents();"click"===this._options.triggerType&&e.showEvents.forEach((function(e){t._triggerEl.removeEventListener(e,t._clickHandler)})),"hover"===this._options.triggerType&&(e.showEvents.forEach((function(e){t._triggerEl.removeEventListener(e,t._hoverShowTriggerElHandler),t._targetEl.removeEventListener(e,t._hoverShowTargetElHandler)})),e.hideEvents.forEach((function(e){t._triggerEl.removeEventListener(e,t._hoverHideHandler),t._targetEl.removeEventListener(e,t._hoverHideHandler)}))),this._popperInstance.destroy(),this._initialized=!1},t.prototype.removeInstance=function(){s.default.removeInstance("Dropdown",this._instanceId)},t.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},t.prototype._setupEventListeners=function(){var t=this,e=this._getTriggerEvents();this._clickHandler=function(){t.toggle()},"click"===this._options.triggerType&&e.showEvents.forEach((function(e){t._triggerEl.addEventListener(e,t._clickHandler)})),this._hoverShowTriggerElHandler=function(e){"click"===e.type?t.toggle():setTimeout((function(){t.show()}),t._options.delay)},this._hoverShowTargetElHandler=function(){t.show()},this._hoverHideHandler=function(){setTimeout((function(){t._targetEl.matches(":hover")||t.hide()}),t._options.delay)},"hover"===this._options.triggerType&&(e.showEvents.forEach((function(e){t._triggerEl.addEventListener(e,t._hoverShowTriggerElHandler),t._targetEl.addEventListener(e,t._hoverShowTargetElHandler)})),e.hideEvents.forEach((function(e){t._triggerEl.addEventListener(e,t._hoverHideHandler),t._targetEl.addEventListener(e,t._hoverHideHandler)})))},t.prototype._createPopperInstance=function(){return(0,r.createPopper)(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[this._options.offsetSkidding,this._options.offsetDistance]}}]})},t.prototype._setupClickOutsideListener=function(){var t=this;this._clickOutsideEventListener=function(e){t._handleClickOutside(e,t._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._handleClickOutside=function(t,e){var i=t.target,n=this._options.ignoreClickOutsideClass,o=!1;n&&document.querySelectorAll(".".concat(n)).forEach((function(t){t.contains(i)&&(o=!0)}));i===e||e.contains(i)||this._triggerEl.contains(i)||o||!this.isVisible()||this.hide()},t.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","click"],hideEvents:["mouseleave"]};case"click":default:return{showEvents:["click"],hideEvents:[]};case"none":return{showEvents:[],hideEvents:[]}}},t.prototype.toggle=function(){this.isVisible()?this.hide():this.show(),this._options.onToggle(this)},t.prototype.isVisible=function(){return this._visible},t.prototype.show=function(){this._targetEl.classList.remove("hidden"),this._targetEl.classList.add("block"),this._popperInstance.setOptions((function(t){return n(n({},t),{modifiers:o(o([],t.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})})),this._setupClickOutsideListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},t.prototype.hide=function(){this._targetEl.classList.remove("block"),this._targetEl.classList.add("hidden"),this._popperInstance.setOptions((function(t){return n(n({},t),{modifiers:o(o([],t.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})})),this._visible=!1,this._removeClickOutsideListener(),this._options.onHide(this)},t}();function d(){document.querySelectorAll("[data-dropdown-toggle]").forEach((function(t){var e=t.getAttribute("data-dropdown-toggle"),i=document.getElementById(e);if(i){var n=t.getAttribute("data-dropdown-placement"),o=t.getAttribute("data-dropdown-offset-skidding"),r=t.getAttribute("data-dropdown-offset-distance"),s=t.getAttribute("data-dropdown-trigger"),c=t.getAttribute("data-dropdown-delay"),d=t.getAttribute("data-dropdown-ignore-click-outside-class");new l(i,t,{placement:n||a.placement,triggerType:s||a.triggerType,offsetSkidding:o?parseInt(o):a.offsetSkidding,offsetDistance:r?parseInt(r):a.offsetDistance,delay:c?parseInt(c):a.delay,ignoreClickOutsideClass:d||a.ignoreClickOutsideClass})}else console.error('The dropdown element with id "'.concat(e,'" does not exist. Please check the data-dropdown-toggle attribute.'))}))}e.initDropdowns=d,"undefined"!=typeof window&&(window.Dropdown=l,window.initDropdowns=d),e.default=l},311:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),e.initFlowbite=void 0;var n=i(902),o=i(33),r=i(922),s=i(556),a=i(791),c=i(340),l=i(316),d=i(656),u=i(16),p=i(903),h=i(247),f=i(671);function v(){(0,n.initAccordions)(),(0,r.initCollapses)(),(0,o.initCarousels)(),(0,a.initDismisses)(),(0,l.initDropdowns)(),(0,u.initModals)(),(0,c.initDrawers)(),(0,h.initTabs)(),(0,f.initTooltips)(),(0,p.initPopovers)(),(0,s.initDials)(),(0,d.initInputCounters)()}e.initFlowbite=v,"undefined"!=typeof window&&(window.initFlowbite=v)},656:function(t,e,i){var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.initInputCounters=void 0;var o=i(423),r={minValue:null,maxValue:null,onIncrement:function(){},onDecrement:function(){}},s={id:null,override:!0},a=function(){function t(t,e,i,a,c){void 0===t&&(t=null),void 0===e&&(e=null),void 0===i&&(i=null),void 0===a&&(a=r),void 0===c&&(c=s),this._instanceId=c.id?c.id:t.id,this._targetEl=t,this._incrementEl=e,this._decrementEl=i,this._options=n(n({},r),a),this._initialized=!1,this.init(),o.default.addInstance("InputCounter",this,this._instanceId,c.override)}return t.prototype.init=function(){var t=this;this._targetEl&&!this._initialized&&(this._inputHandler=function(e){var i=e.target;/^\d*$/.test(i.value)||(i.value=i.value.replace(/[^\d]/g,"")),null!==t._options.maxValue&&parseInt(i.value)>t._options.maxValue&&(i.value=t._options.maxValue.toString()),null!==t._options.minValue&&parseInt(i.value)<t._options.minValue&&(i.value=t._options.minValue.toString())},this._incrementClickHandler=function(){t.increment()},this._decrementClickHandler=function(){t.decrement()},this._targetEl.addEventListener("input",this._inputHandler),this._incrementEl&&this._incrementEl.addEventListener("click",this._incrementClickHandler),this._decrementEl&&this._decrementEl.addEventListener("click",this._decrementClickHandler),this._initialized=!0)},t.prototype.destroy=function(){this._targetEl&&this._initialized&&(this._targetEl.removeEventListener("input",this._inputHandler),this._incrementEl&&this._incrementEl.removeEventListener("click",this._incrementClickHandler),this._decrementEl&&this._decrementEl.removeEventListener("click",this._decrementClickHandler),this._initialized=!1)},t.prototype.removeInstance=function(){o.default.removeInstance("InputCounter",this._instanceId)},t.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},t.prototype.getCurrentValue=function(){return parseInt(this._targetEl.value)||0},t.prototype.increment=function(){null!==this._options.maxValue&&this.getCurrentValue()>=this._options.maxValue||(this._targetEl.value=(this.getCurrentValue()+1).toString(),this._options.onIncrement(this))},t.prototype.decrement=function(){null!==this._options.minValue&&this.getCurrentValue()<=this._options.minValue||(this._targetEl.value=(this.getCurrentValue()-1).toString(),this._options.onDecrement(this))},t}();function c(){document.querySelectorAll("[data-input-counter]").forEach((function(t){var e=t.id,i=document.querySelector('[data-input-counter-increment="'+e+'"]'),n=document.querySelector('[data-input-counter-decrement="'+e+'"]'),r=t.getAttribute("data-input-counter-min"),s=t.getAttribute("data-input-counter-max");t?o.default.instanceExists("InputCounter",t.getAttribute("id"))||new a(t,i||null,n||null,{minValue:r?parseInt(r):null,maxValue:s?parseInt(s):null}):console.error('The target element with id "'.concat(e,'" does not exist. Please check the data-input-counter attribute.'))}))}e.initInputCounters=c,"undefined"!=typeof window&&(window.InputCounter=a,window.initInputCounters=c),e.default=a},16:function(t,e,i){var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.initModals=void 0;var o=i(423),r={placement:"center",backdropClasses:"bg-gray-900/50 dark:bg-gray-900/80 fixed inset-0 z-40",backdrop:"dynamic",closable:!0,onHide:function(){},onShow:function(){},onToggle:function(){}},s={id:null,override:!0},a=function(){function t(t,e,i){void 0===t&&(t=null),void 0===e&&(e=r),void 0===i&&(i=s),this._eventListenerInstances=[],this._instanceId=i.id?i.id:t.id,this._targetEl=t,this._options=n(n({},r),e),this._isHidden=!0,this._backdropEl=null,this._initialized=!1,this.init(),o.default.addInstance("Modal",this,this._instanceId,i.override)}return t.prototype.init=function(){var t=this;this._targetEl&&!this._initialized&&(this._getPlacementClasses().map((function(e){t._targetEl.classList.add(e)})),this._initialized=!0)},t.prototype.destroy=function(){this._initialized&&(this.removeAllEventListenerInstances(),this._destroyBackdropEl(),this._initialized=!1)},t.prototype.removeInstance=function(){o.default.removeInstance("Modal",this._instanceId)},t.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},t.prototype._createBackdrop=function(){var t;if(this._isHidden){var e=document.createElement("div");e.setAttribute("modal-backdrop",""),(t=e.classList).add.apply(t,this._options.backdropClasses.split(" ")),document.querySelector("body").append(e),this._backdropEl=e}},t.prototype._destroyBackdropEl=function(){this._isHidden||document.querySelector("[modal-backdrop]").remove()},t.prototype._setupModalCloseEventListeners=function(){var t=this;"dynamic"===this._options.backdrop&&(this._clickOutsideEventListener=function(e){t._handleOutsideClick(e.target)},this._targetEl.addEventListener("click",this._clickOutsideEventListener,!0)),this._keydownEventListener=function(e){"Escape"===e.key&&t.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},t.prototype._removeModalCloseEventListeners=function(){"dynamic"===this._options.backdrop&&this._targetEl.removeEventListener("click",this._clickOutsideEventListener,!0),document.body.removeEventListener("keydown",this._keydownEventListener,!0)},t.prototype._handleOutsideClick=function(t){(t===this._targetEl||t===this._backdropEl&&this.isVisible())&&this.hide()},t.prototype._getPlacementClasses=function(){switch(this._options.placement){case"top-left":return["justify-start","items-start"];case"top-center":return["justify-center","items-start"];case"top-right":return["justify-end","items-start"];case"center-left":return["justify-start","items-center"];case"center":default:return["justify-center","items-center"];case"center-right":return["justify-end","items-center"];case"bottom-left":return["justify-start","items-end"];case"bottom-center":return["justify-center","items-end"];case"bottom-right":return["justify-end","items-end"]}},t.prototype.toggle=function(){this._isHidden?this.show():this.hide(),this._options.onToggle(this)},t.prototype.show=function(){this.isHidden&&(this._targetEl.classList.add("flex"),this._targetEl.classList.remove("hidden"),this._targetEl.setAttribute("aria-modal","true"),this._targetEl.setAttribute("role","dialog"),this._targetEl.removeAttribute("aria-hidden"),this._createBackdrop(),this._isHidden=!1,this._options.closable&&this._setupModalCloseEventListeners(),document.body.classList.add("overflow-hidden"),this._options.onShow(this))},t.prototype.hide=function(){this.isVisible&&(this._targetEl.classList.add("hidden"),this._targetEl.classList.remove("flex"),this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.removeAttribute("aria-modal"),this._targetEl.removeAttribute("role"),this._destroyBackdropEl(),this._isHidden=!0,document.body.classList.remove("overflow-hidden"),this._options.closable&&this._removeModalCloseEventListeners(),this._options.onHide(this))},t.prototype.isVisible=function(){return!this._isHidden},t.prototype.isHidden=function(){return this._isHidden},t.prototype.addEventListenerInstance=function(t,e,i){this._eventListenerInstances.push({element:t,type:e,handler:i})},t.prototype.removeAllEventListenerInstances=function(){this._eventListenerInstances.map((function(t){t.element.removeEventListener(t.type,t.handler)})),this._eventListenerInstances=[]},t.prototype.getAllEventListenerInstances=function(){return this._eventListenerInstances},t}();function c(){document.querySelectorAll("[data-modal-target]").forEach((function(t){var e=t.getAttribute("data-modal-target"),i=document.getElementById(e);if(i){var n=i.getAttribute("data-modal-placement"),o=i.getAttribute("data-modal-backdrop");new a(i,{placement:n||r.placement,backdrop:o||r.backdrop})}else console.error("Modal with id ".concat(e," does not exist. Are you sure that the data-modal-target attribute points to the correct modal id?."))})),document.querySelectorAll("[data-modal-toggle]").forEach((function(t){var e=t.getAttribute("data-modal-toggle");if(document.getElementById(e)){var i=o.default.getInstance("Modal",e);if(i){var n=function(){i.toggle()};t.addEventListener("click",n),i.addEventListenerInstance(t,"click",n)}else console.error("Modal with id ".concat(e," has not been initialized. Please initialize it using the data-modal-target attribute."))}else console.error("Modal with id ".concat(e," does not exist. Are you sure that the data-modal-toggle attribute points to the correct modal id?"))})),document.querySelectorAll("[data-modal-show]").forEach((function(t){var e=t.getAttribute("data-modal-show");if(document.getElementById(e)){var i=o.default.getInstance("Modal",e);if(i){var n=function(){i.show()};t.addEventListener("click",n),i.addEventListenerInstance(t,"click",n)}else console.error("Modal with id ".concat(e," has not been initialized. Please initialize it using the data-modal-target attribute."))}else console.error("Modal with id ".concat(e," does not exist. Are you sure that the data-modal-show attribute points to the correct modal id?"))})),document.querySelectorAll("[data-modal-hide]").forEach((function(t){var e=t.getAttribute("data-modal-hide");if(document.getElementById(e)){var i=o.default.getInstance("Modal",e);if(i){var n=function(){i.hide()};t.addEventListener("click",n),i.addEventListenerInstance(t,"click",n)}else console.error("Modal with id ".concat(e," has not been initialized. Please initialize it using the data-modal-target attribute."))}else console.error("Modal with id ".concat(e," does not exist. Are you sure that the data-modal-hide attribute points to the correct modal id?"))}))}e.initModals=c,"undefined"!=typeof window&&(window.Modal=a,window.initModals=c),e.default=a},903:function(t,e,i){var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)},o=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.initPopovers=void 0;var r=i(853),s=i(423),a={placement:"top",offset:10,triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},c={id:null,override:!0},l=function(){function t(t,e,i,o){void 0===t&&(t=null),void 0===e&&(e=null),void 0===i&&(i=a),void 0===o&&(o=c),this._instanceId=o.id?o.id:t.id,this._targetEl=t,this._triggerEl=e,this._options=n(n({},a),i),this._popperInstance=null,this._visible=!1,this._initialized=!1,this.init(),s.default.addInstance("Popover",this,o.id?o.id:this._targetEl.id,o.override)}return t.prototype.init=function(){this._triggerEl&&this._targetEl&&!this._initialized&&(this._setupEventListeners(),this._popperInstance=this._createPopperInstance(),this._initialized=!0)},t.prototype.destroy=function(){var t=this;if(this._initialized){var e=this._getTriggerEvents();e.showEvents.forEach((function(e){t._triggerEl.removeEventListener(e,t._showHandler),t._targetEl.removeEventListener(e,t._showHandler)})),e.hideEvents.forEach((function(e){t._triggerEl.removeEventListener(e,t._hideHandler),t._targetEl.removeEventListener(e,t._hideHandler)})),this._removeKeydownListener(),this._removeClickOutsideListener(),this._popperInstance&&this._popperInstance.destroy(),this._initialized=!1}},t.prototype.removeInstance=function(){s.default.removeInstance("Popover",this._instanceId)},t.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},t.prototype._setupEventListeners=function(){var t=this,e=this._getTriggerEvents();this._showHandler=function(){t.show()},this._hideHandler=function(){setTimeout((function(){t._targetEl.matches(":hover")||t.hide()}),100)},e.showEvents.forEach((function(e){t._triggerEl.addEventListener(e,t._showHandler),t._targetEl.addEventListener(e,t._showHandler)})),e.hideEvents.forEach((function(e){t._triggerEl.addEventListener(e,t._hideHandler),t._targetEl.addEventListener(e,t._hideHandler)}))},t.prototype._createPopperInstance=function(){return(0,r.createPopper)(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[0,this._options.offset]}}]})},t.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]}}},t.prototype._setupKeydownListener=function(){var t=this;this._keydownEventListener=function(e){"Escape"===e.key&&t.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},t.prototype._removeKeydownListener=function(){document.body.removeEventListener("keydown",this._keydownEventListener,!0)},t.prototype._setupClickOutsideListener=function(){var t=this;this._clickOutsideEventListener=function(e){t._handleClickOutside(e,t._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._handleClickOutside=function(t,e){var i=t.target;i===e||e.contains(i)||this._triggerEl.contains(i)||!this.isVisible()||this.hide()},t.prototype.isVisible=function(){return this._visible},t.prototype.toggle=function(){this.isVisible()?this.hide():this.show(),this._options.onToggle(this)},t.prototype.show=function(){this._targetEl.classList.remove("opacity-0","invisible"),this._targetEl.classList.add("opacity-100","visible"),this._popperInstance.setOptions((function(t){return n(n({},t),{modifiers:o(o([],t.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})})),this._setupClickOutsideListener(),this._setupKeydownListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},t.prototype.hide=function(){this._targetEl.classList.remove("opacity-100","visible"),this._targetEl.classList.add("opacity-0","invisible"),this._popperInstance.setOptions((function(t){return n(n({},t),{modifiers:o(o([],t.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})})),this._removeClickOutsideListener(),this._removeKeydownListener(),this._visible=!1,this._options.onHide(this)},t}();function d(){document.querySelectorAll("[data-popover-target]").forEach((function(t){var e=t.getAttribute("data-popover-target"),i=document.getElementById(e);if(i){var n=t.getAttribute("data-popover-trigger"),o=t.getAttribute("data-popover-placement"),r=t.getAttribute("data-popover-offset");new l(i,t,{placement:o||a.placement,offset:r?parseInt(r):a.offset,triggerType:n||a.triggerType})}else console.error('The popover element with id "'.concat(e,'" does not exist. Please check the data-popover-target attribute.'))}))}e.initPopovers=d,"undefined"!=typeof window&&(window.Popover=l,window.initPopovers=d),e.default=l},247:function(t,e,i){var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.initTabs=void 0;var o=i(423),r={defaultTabId:null,activeClasses:"text-blue-600 hover:text-blue-600 dark:text-blue-500 dark:hover:text-blue-500 border-blue-600 dark:border-blue-500",inactiveClasses:"dark:border-transparent text-gray-500 hover:text-gray-600 dark:text-gray-400 border-gray-100 hover:border-gray-300 dark:border-gray-700 dark:hover:text-gray-300",onShow:function(){}},s={id:null,override:!0},a=function(){function t(t,e,i,a){void 0===t&&(t=null),void 0===e&&(e=[]),void 0===i&&(i=r),void 0===a&&(a=s),this._instanceId=a.id?a.id:t.id,this._tabsEl=t,this._items=e,this._activeTab=i?this.getTab(i.defaultTabId):null,this._options=n(n({},r),i),this._initialized=!1,this.init(),o.default.addInstance("Tabs",this,this._tabsEl.id,!0),o.default.addInstance("Tabs",this,this._instanceId,a.override)}return t.prototype.init=function(){var t=this;this._items.length&&!this._initialized&&(this._activeTab||this.setActiveTab(this._items[0]),this.show(this._activeTab.id,!0),this._items.map((function(e){e.triggerEl.addEventListener("click",(function(){t.show(e.id)}))})))},t.prototype.destroy=function(){this._initialized&&(this._initialized=!1)},t.prototype.removeInstance=function(){this.destroy(),o.default.removeInstance("Tabs",this._instanceId)},t.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},t.prototype.getActiveTab=function(){return this._activeTab},t.prototype.setActiveTab=function(t){this._activeTab=t},t.prototype.getTab=function(t){return this._items.filter((function(e){return e.id===t}))[0]},t.prototype.show=function(t,e){var i,n,o=this;void 0===e&&(e=!1);var r=this.getTab(t);(r!==this._activeTab||e)&&(this._items.map((function(t){var e,i;t!==r&&((e=t.triggerEl.classList).remove.apply(e,o._options.activeClasses.split(" ")),(i=t.triggerEl.classList).add.apply(i,o._options.inactiveClasses.split(" ")),t.targetEl.classList.add("hidden"),t.triggerEl.setAttribute("aria-selected","false"))})),(i=r.triggerEl.classList).add.apply(i,this._options.activeClasses.split(" ")),(n=r.triggerEl.classList).remove.apply(n,this._options.inactiveClasses.split(" ")),r.triggerEl.setAttribute("aria-selected","true"),r.targetEl.classList.remove("hidden"),this.setActiveTab(r),this._options.onShow(this,r))},t}();function c(){document.querySelectorAll("[data-tabs-toggle]").forEach((function(t){var e=[],i=null;t.querySelectorAll('[role="tab"]').forEach((function(t){var n="true"===t.getAttribute("aria-selected"),o={id:t.getAttribute("data-tabs-target"),triggerEl:t,targetEl:document.querySelector(t.getAttribute("data-tabs-target"))};e.push(o),n&&(i=o.id)})),new a(t,e,{defaultTabId:i})}))}e.initTabs=c,"undefined"!=typeof window&&(window.Tabs=a,window.initTabs=c),e.default=a},671:function(t,e,i){var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)},o=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.initTooltips=void 0;var r=i(853),s=i(423),a={placement:"top",triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},c={id:null,override:!0},l=function(){function t(t,e,i,o){void 0===t&&(t=null),void 0===e&&(e=null),void 0===i&&(i=a),void 0===o&&(o=c),this._instanceId=o.id?o.id:t.id,this._targetEl=t,this._triggerEl=e,this._options=n(n({},a),i),this._popperInstance=null,this._visible=!1,this._initialized=!1,this.init(),s.default.addInstance("Tooltip",this,this._instanceId,o.override)}return t.prototype.init=function(){this._triggerEl&&this._targetEl&&!this._initialized&&(this._setupEventListeners(),this._popperInstance=this._createPopperInstance(),this._initialized=!0)},t.prototype.destroy=function(){var t=this;if(this._initialized){var e=this._getTriggerEvents();e.showEvents.forEach((function(e){t._triggerEl.removeEventListener(e,t._showHandler)})),e.hideEvents.forEach((function(e){t._triggerEl.removeEventListener(e,t._hideHandler)})),this._removeKeydownListener(),this._removeClickOutsideListener(),this._popperInstance&&this._popperInstance.destroy(),this._initialized=!1}},t.prototype.removeInstance=function(){s.default.removeInstance("Tooltip",this._instanceId)},t.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},t.prototype._setupEventListeners=function(){var t=this,e=this._getTriggerEvents();this._showHandler=function(){t.show()},this._hideHandler=function(){t.hide()},e.showEvents.forEach((function(e){t._triggerEl.addEventListener(e,t._showHandler)})),e.hideEvents.forEach((function(e){t._triggerEl.addEventListener(e,t._hideHandler)}))},t.prototype._createPopperInstance=function(){return(0,r.createPopper)(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[0,8]}}]})},t.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]}}},t.prototype._setupKeydownListener=function(){var t=this;this._keydownEventListener=function(e){"Escape"===e.key&&t.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},t.prototype._removeKeydownListener=function(){document.body.removeEventListener("keydown",this._keydownEventListener,!0)},t.prototype._setupClickOutsideListener=function(){var t=this;this._clickOutsideEventListener=function(e){t._handleClickOutside(e,t._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._handleClickOutside=function(t,e){var i=t.target;i===e||e.contains(i)||this._triggerEl.contains(i)||!this.isVisible()||this.hide()},t.prototype.isVisible=function(){return this._visible},t.prototype.toggle=function(){this.isVisible()?this.hide():this.show()},t.prototype.show=function(){this._targetEl.classList.remove("opacity-0","invisible"),this._targetEl.classList.add("opacity-100","visible"),this._popperInstance.setOptions((function(t){return n(n({},t),{modifiers:o(o([],t.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})})),this._setupClickOutsideListener(),this._setupKeydownListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},t.prototype.hide=function(){this._targetEl.classList.remove("opacity-100","visible"),this._targetEl.classList.add("opacity-0","invisible"),this._popperInstance.setOptions((function(t){return n(n({},t),{modifiers:o(o([],t.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})})),this._removeClickOutsideListener(),this._removeKeydownListener(),this._visible=!1,this._options.onHide(this)},t}();function d(){document.querySelectorAll("[data-tooltip-target]").forEach((function(t){var e=t.getAttribute("data-tooltip-target"),i=document.getElementById(e);if(i){var n=t.getAttribute("data-tooltip-trigger"),o=t.getAttribute("data-tooltip-placement");new l(i,t,{placement:o||a.placement,triggerType:n||a.triggerType})}else console.error('The tooltip element with id "'.concat(e,'" does not exist. Please check the data-tooltip-target attribute.'))}))}e.initTooltips=d,"undefined"!=typeof window&&(window.Tooltip=l,window.initTooltips=d),e.default=l},947:function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){void 0===e&&(e=[]),this._eventType=t,this._eventFunctions=e}return t.prototype.init=function(){var t=this;this._eventFunctions.forEach((function(e){"undefined"!=typeof window&&window.addEventListener(t._eventType,e)}))},t}();e.default=i},423:function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=new(function(){function t(){this._instances={Accordion:{},Carousel:{},Collapse:{},Dial:{},Dismiss:{},Drawer:{},Dropdown:{},Modal:{},Popover:{},Tabs:{},Tooltip:{},InputCounter:{}}}return t.prototype.addInstance=function(t,e,i,n){if(void 0===n&&(n=!1),!this._instances[t])return console.warn("Flowbite: Component ".concat(t," does not exist.")),!1;!this._instances[t][i]||n?(n&&this._instances[t][i]&&this._instances[t][i].destroyAndRemoveInstance(),this._instances[t][i||this._generateRandomId()]=e):console.warn("Flowbite: Instance with ID ".concat(i," already exists."))},t.prototype.getAllInstances=function(){return this._instances},t.prototype.getInstances=function(t){return this._instances[t]?this._instances[t]:(console.warn("Flowbite: Component ".concat(t," does not exist.")),!1)},t.prototype.getInstance=function(t,e){if(this._componentAndInstanceCheck(t,e)){if(this._instances[t][e])return this._instances[t][e];console.warn("Flowbite: Instance with ID ".concat(e," does not exist."))}},t.prototype.destroyAndRemoveInstance=function(t,e){this._componentAndInstanceCheck(t,e)&&(this.destroyInstanceObject(t,e),this.removeInstance(t,e))},t.prototype.removeInstance=function(t,e){this._componentAndInstanceCheck(t,e)&&delete this._instances[t][e]},t.prototype.destroyInstanceObject=function(t,e){this._componentAndInstanceCheck(t,e)&&this._instances[t][e].destroy()},t.prototype.instanceExists=function(t,e){return!!this._instances[t]&&!!this._instances[t][e]},t.prototype._generateRandomId=function(){return Math.random().toString(36).substr(2,9)},t.prototype._componentAndInstanceCheck=function(t,e){return this._instances[t]?!!this._instances[t][e]||(console.warn("Flowbite: Instance with ID ".concat(e," does not exist.")),!1):(console.warn("Flowbite: Component ".concat(t," does not exist.")),!1)},t}());e.default=i,"undefined"!=typeof window&&(window.FlowbiteInstances=i)}},e={};function i(n){var o=e[n];if(void 0!==o)return o.exports;var r=e[n]={exports:{}};return t[n].call(r.exports,r,r.exports,i),r.exports}i.d=function(t,e){for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return function(){var t=n;Object.defineProperty(t,"__esModule",{value:!0}),i(647);var e=i(902),o=i(33),r=i(922),s=i(556),a=i(791),c=i(340),l=i(316),d=i(16),u=i(903),p=i(247),h=i(671),f=i(656);i(311);var v=i(947);new v.default("load",[e.initAccordions,r.initCollapses,o.initCarousels,a.initDismisses,l.initDropdowns,d.initModals,c.initDrawers,p.initTabs,h.initTooltips,u.initPopovers,s.initDials,f.initInputCounters]).init(),t.default={Accordion:e.default,Carousel:o.default,Collapse:r.default,Dial:s.default,Drawer:c.default,Dismiss:a.default,Dropdown:l.default,Modal:d.default,Popover:u.default,Tabs:p.default,Tooltip:h.default,InputCounter:f.default,Events:v.default}}(),n}()}));
2
+ //# sourceMappingURL=flowbite.min.js.map
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.beta1
4
+ version: 4.0.0.beta3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Maresh
@@ -125,12 +125,14 @@ extra_rdoc_files:
125
125
  - CODE_OF_CONDUCT.md
126
126
  - CONTRIBUTING.md
127
127
  - README.md
128
+ - UPGRADING.md
128
129
  files:
129
130
  - CHANGELOG.md
130
131
  - CODE_OF_CONDUCT.md
131
132
  - CONTRIBUTING.md
132
133
  - LICENSE
133
134
  - README.md
135
+ - UPGRADING.md
134
136
  - app/assets/config/active_admin_manifest.js
135
137
  - app/controllers/active_admin/base_controller.rb
136
138
  - app/controllers/active_admin/base_controller/authorization.rb
@@ -201,6 +203,8 @@ files:
201
203
  - app/views/active_admin/shared/_sidebar_sections.html.erb
202
204
  - app/views/layouts/active_admin.html.erb
203
205
  - app/views/layouts/active_admin_logged_out.html.erb
206
+ - config/i18n-tasks.yml
207
+ - config/importmap.rb
204
208
  - config/locales/ar.yml
205
209
  - config/locales/az.yml
206
210
  - config/locales/bg.yml
@@ -359,6 +363,8 @@ files:
359
363
  - lib/generators/active_admin/resource/resource_generator.rb
360
364
  - lib/generators/active_admin/resource/templates/resource.rb.erb
361
365
  - lib/generators/active_admin/views_generator.rb
366
+ - plugin.js
367
+ - vendor/javascript/flowbite.js
362
368
  homepage: https://activeadmin.info
363
369
  licenses:
364
370
  - MIT