spree_admin 5.0.0.rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.md +13 -0
- data/README.md +4 -0
- data/Rakefile +15 -0
- data/app/assets/config/spree_admin_manifest.js +10 -0
- data/app/assets/images/favicon_256x256.png +0 -0
- data/app/assets/stylesheets/spree/admin/actiontext.css +36 -0
- data/app/assets/stylesheets/spree/admin/application.scss +43 -0
- data/app/assets/stylesheets/spree/admin/components/_alerts.scss +48 -0
- data/app/assets/stylesheets/spree/admin/components/_badges.scss +117 -0
- data/app/assets/stylesheets/spree/admin/components/_bulk_panel.scss +31 -0
- data/app/assets/stylesheets/spree/admin/components/_buttons.scss +198 -0
- data/app/assets/stylesheets/spree/admin/components/_cards.scss +126 -0
- data/app/assets/stylesheets/spree/admin/components/_dropdowns.scss +148 -0
- data/app/assets/stylesheets/spree/admin/components/_filters.scss +41 -0
- data/app/assets/stylesheets/spree/admin/components/_line_items_form.scss +32 -0
- data/app/assets/stylesheets/spree/admin/components/_main.scss +148 -0
- data/app/assets/stylesheets/spree/admin/components/_media_form.scss +91 -0
- data/app/assets/stylesheets/spree/admin/components/_modals.scss +42 -0
- data/app/assets/stylesheets/spree/admin/components/_navbar.scss +10 -0
- data/app/assets/stylesheets/spree/admin/components/_navigation.scss +53 -0
- data/app/assets/stylesheets/spree/admin/components/_offcanvas.scss +26 -0
- data/app/assets/stylesheets/spree/admin/components/_search_picker.scss +55 -0
- data/app/assets/stylesheets/spree/admin/components/_seo_form.scss +16 -0
- data/app/assets/stylesheets/spree/admin/components/_sortable_tree.scss +58 -0
- data/app/assets/stylesheets/spree/admin/components/_tables.scss +187 -0
- data/app/assets/stylesheets/spree/admin/components/_variants_form.scss +203 -0
- data/app/assets/stylesheets/spree/admin/global/_variables.scss +190 -0
- data/app/assets/stylesheets/spree/admin/plugins/_dropdown.scss +102 -0
- data/app/assets/stylesheets/spree/admin/plugins/_items.scss +115 -0
- data/app/assets/stylesheets/spree/admin/plugins/_tinymce_custom.scss +74 -0
- data/app/assets/stylesheets/spree/admin/plugins/_trix_custom.scss +110 -0
- data/app/assets/stylesheets/spree/admin/plugins/flatfile.scss +4 -0
- data/app/assets/stylesheets/spree/admin/plugins/plugins/checkbox_options.scss +5 -0
- data/app/assets/stylesheets/spree/admin/plugins/plugins/clear_button.scss +30 -0
- data/app/assets/stylesheets/spree/admin/plugins/plugins/drag_drop.scss +16 -0
- data/app/assets/stylesheets/spree/admin/plugins/plugins/dropdown_header.scss +23 -0
- data/app/assets/stylesheets/spree/admin/plugins/plugins/dropdown_input.scss +47 -0
- data/app/assets/stylesheets/spree/admin/plugins/plugins/input_autogrow.scss +18 -0
- data/app/assets/stylesheets/spree/admin/plugins/plugins/optgroup_columns.scss +23 -0
- data/app/assets/stylesheets/spree/admin/plugins/plugins/remove_button.scss +44 -0
- data/app/assets/stylesheets/spree/admin/plugins/tom-select.bootstrap4.scss +219 -0
- data/app/assets/stylesheets/spree/admin/plugins/tom-select.bootstrap5.scss +274 -0
- data/app/assets/stylesheets/spree/admin/plugins/tom-select.default.scss +87 -0
- data/app/assets/stylesheets/spree/admin/plugins/tom-select.scss +175 -0
- data/app/assets/stylesheets/spree/admin/plugins/uppy_fixes.scss +25 -0
- data/app/assets/stylesheets/spree/admin/shared/_base.scss +674 -0
- data/app/assets/stylesheets/spree/admin/shared/_forms.scss +184 -0
- data/app/assets/stylesheets/spree/admin/views/_dashboard.scss +34 -0
- data/app/assets/stylesheets/spree/admin/views/_page_builder.scss +237 -0
- data/app/controllers/concerns/spree/admin/analytics_concern.rb +51 -0
- data/app/controllers/concerns/spree/admin/bulk_operations_concern.rb +38 -0
- data/app/controllers/concerns/spree/admin/order_concern.rb +24 -0
- data/app/controllers/concerns/spree/admin/page_builder_concern.rb +44 -0
- data/app/controllers/spree/admin/action_text/video_embeds_controller.rb +44 -0
- data/app/controllers/spree/admin/addresses_controller.rb +86 -0
- data/app/controllers/spree/admin/assets_controller.rb +70 -0
- data/app/controllers/spree/admin/base_controller.rb +131 -0
- data/app/controllers/spree/admin/checkouts_controller.rb +23 -0
- data/app/controllers/spree/admin/classifications_controller.rb +74 -0
- data/app/controllers/spree/admin/coupon_codes_controller.rb +21 -0
- data/app/controllers/spree/admin/custom_domains_controller.rb +19 -0
- data/app/controllers/spree/admin/customer_returns_controller.rb +20 -0
- data/app/controllers/spree/admin/dashboard_controller.rb +145 -0
- data/app/controllers/spree/admin/digital_assets_controller.rb +45 -0
- data/app/controllers/spree/admin/errors_controller.rb +11 -0
- data/app/controllers/spree/admin/exports_controller.rb +48 -0
- data/app/controllers/spree/admin/line_items_controller.rb +121 -0
- data/app/controllers/spree/admin/oauth_applications_controller.rb +27 -0
- data/app/controllers/spree/admin/option_types_controller.rb +23 -0
- data/app/controllers/spree/admin/option_values_controller.rb +21 -0
- data/app/controllers/spree/admin/orders/billing_address_controller.rb +103 -0
- data/app/controllers/spree/admin/orders/contact_information_controller.rb +45 -0
- data/app/controllers/spree/admin/orders/customer_returns_controller.rb +81 -0
- data/app/controllers/spree/admin/orders/payment_links_controller.rb +33 -0
- data/app/controllers/spree/admin/orders/return_authorizations_controller.rb +90 -0
- data/app/controllers/spree/admin/orders/shipping_address_controller.rb +85 -0
- data/app/controllers/spree/admin/orders/user_controller.rb +94 -0
- data/app/controllers/spree/admin/orders_controller.rb +87 -0
- data/app/controllers/spree/admin/page_blocks_controller.rb +40 -0
- data/app/controllers/spree/admin/page_links_controller.rb +43 -0
- data/app/controllers/spree/admin/page_sections_controller.rb +57 -0
- data/app/controllers/spree/admin/pages_controller.rb +40 -0
- data/app/controllers/spree/admin/payment_methods_controller.rb +45 -0
- data/app/controllers/spree/admin/payments_controller.rb +122 -0
- data/app/controllers/spree/admin/post_categories_controller.rb +6 -0
- data/app/controllers/spree/admin/posts_controller.rb +23 -0
- data/app/controllers/spree/admin/products_controller.rb +366 -0
- data/app/controllers/spree/admin/profile_controller.rb +31 -0
- data/app/controllers/spree/admin/promotion_actions_controller.rb +47 -0
- data/app/controllers/spree/admin/promotion_rules_controller.rb +39 -0
- data/app/controllers/spree/admin/promotions_controller.rb +61 -0
- data/app/controllers/spree/admin/properties_controller.rb +23 -0
- data/app/controllers/spree/admin/refund_reasons_controller.rb +6 -0
- data/app/controllers/spree/admin/refunds_controller.rb +43 -0
- data/app/controllers/spree/admin/reimbursement_types_controller.rb +6 -0
- data/app/controllers/spree/admin/reimbursements_controller.rb +47 -0
- data/app/controllers/spree/admin/reports_controller.rb +52 -0
- data/app/controllers/spree/admin/resource_controller.rb +325 -0
- data/app/controllers/spree/admin/return_authorization_reasons_controller.rb +6 -0
- data/app/controllers/spree/admin/return_authorizations_controller.rb +29 -0
- data/app/controllers/spree/admin/return_items_controller.rb +9 -0
- data/app/controllers/spree/admin/roles_controller.rb +6 -0
- data/app/controllers/spree/admin/shipments_controller.rb +102 -0
- data/app/controllers/spree/admin/shipping_categories_controller.rb +6 -0
- data/app/controllers/spree/admin/shipping_methods_controller.rb +29 -0
- data/app/controllers/spree/admin/stock_items_controller.rb +25 -0
- data/app/controllers/spree/admin/stock_locations_controller.rb +24 -0
- data/app/controllers/spree/admin/stock_transfers_controller.rb +48 -0
- data/app/controllers/spree/admin/store_credit_categories_controller.rb +6 -0
- data/app/controllers/spree/admin/store_credits_controller.rb +93 -0
- data/app/controllers/spree/admin/storefront_controller.rb +38 -0
- data/app/controllers/spree/admin/stores_controller.rb +87 -0
- data/app/controllers/spree/admin/tax_categories_controller.rb +6 -0
- data/app/controllers/spree/admin/tax_rates_controller.rb +20 -0
- data/app/controllers/spree/admin/taxonomies_controller.rb +21 -0
- data/app/controllers/spree/admin/taxons_controller.rb +98 -0
- data/app/controllers/spree/admin/themes_controller.rb +75 -0
- data/app/controllers/spree/admin/translations_controller.rb +74 -0
- data/app/controllers/spree/admin/users_controller.rb +91 -0
- data/app/controllers/spree/admin/variants_controller.rb +90 -0
- data/app/controllers/spree/admin/webhooks_subscribers_controller.rb +48 -0
- data/app/controllers/spree/admin/zones_controller.rb +37 -0
- data/app/helpers/spree/admin/base_helper.rb +246 -0
- data/app/helpers/spree/admin/custom_domains_helper.rb +9 -0
- data/app/helpers/spree/admin/customer_returns_helper.rb +18 -0
- data/app/helpers/spree/admin/flash_helper.rb +15 -0
- data/app/helpers/spree/admin/navigation_helper.rb +195 -0
- data/app/helpers/spree/admin/onboarding_helper.rb +18 -0
- data/app/helpers/spree/admin/orders_filters_helper.rb +68 -0
- data/app/helpers/spree/admin/orders_helper.rb +179 -0
- data/app/helpers/spree/admin/page_builder_helper.rb +130 -0
- data/app/helpers/spree/admin/payments_helper.rb +24 -0
- data/app/helpers/spree/admin/posts_helper.rb +9 -0
- data/app/helpers/spree/admin/products_helper.rb +127 -0
- data/app/helpers/spree/admin/promotion_actions_helper.rb +10 -0
- data/app/helpers/spree/admin/promotion_rules_helper.rb +17 -0
- data/app/helpers/spree/admin/promotions_helper.rb +25 -0
- data/app/helpers/spree/admin/reimbursement_type_helper.rb +9 -0
- data/app/helpers/spree/admin/session_assets_helper.rb +24 -0
- data/app/helpers/spree/admin/shipment_helper.rb +27 -0
- data/app/helpers/spree/admin/sortable_tree_helper.rb +31 -0
- data/app/helpers/spree/admin/stock_locations_helper.rb +22 -0
- data/app/helpers/spree/admin/store_helper.rb +46 -0
- data/app/helpers/spree/admin/stores_helper.rb +86 -0
- data/app/helpers/spree/admin/tags_helper.rb +35 -0
- data/app/helpers/spree/admin/taxons_helper.rb +27 -0
- data/app/helpers/spree/admin/themes_helper.rb +9 -0
- data/app/helpers/spree/admin/translations_helper.rb +14 -0
- data/app/helpers/spree/admin/turbo_helper.rb +41 -0
- data/app/helpers/spree/admin/users_helper.rb +37 -0
- data/app/helpers/spree/admin/webhooks_subscribers_helper.rb +31 -0
- data/app/helpers/tom_select_helper.rb +42 -0
- data/app/javascript/spree/admin/application.js +157 -0
- data/app/javascript/spree/admin/controllers/active_storage_upload_controller.js +168 -0
- data/app/javascript/spree/admin/controllers/address_form_controller.js +98 -0
- data/app/javascript/spree/admin/controllers/asset_uploader_controller.js +58 -0
- data/app/javascript/spree/admin/controllers/autocomplete_select_controller.js +36 -0
- data/app/javascript/spree/admin/controllers/better_slider_controller.js +23 -0
- data/app/javascript/spree/admin/controllers/block_form_controller.js +11 -0
- data/app/javascript/spree/admin/controllers/bootstrap_tabs_controller.js +9 -0
- data/app/javascript/spree/admin/controllers/bulk_operation_controller.js +78 -0
- data/app/javascript/spree/admin/controllers/calculator_fields_controller.js +24 -0
- data/app/javascript/spree/admin/controllers/calendar_range_controller.js +52 -0
- data/app/javascript/spree/admin/controllers/clipboard_controller.js +17 -0
- data/app/javascript/spree/admin/controllers/color_palette_controller.js +22 -0
- data/app/javascript/spree/admin/controllers/color_picker_controller.js +52 -0
- data/app/javascript/spree/admin/controllers/enable_button_controller.js +29 -0
- data/app/javascript/spree/admin/controllers/filters_controller.js +66 -0
- data/app/javascript/spree/admin/controllers/font_picker_controller.js +55 -0
- data/app/javascript/spree/admin/controllers/media_form_controller.js +38 -0
- data/app/javascript/spree/admin/controllers/multi_input_controller.js +75 -0
- data/app/javascript/spree/admin/controllers/multi_tom_select_controller.js +80 -0
- data/app/javascript/spree/admin/controllers/order_billing_address_controller.js +39 -0
- data/app/javascript/spree/admin/controllers/page_builder_controller.js +316 -0
- data/app/javascript/spree/admin/controllers/password_toggle_controller.js +14 -0
- data/app/javascript/spree/admin/controllers/product_form_controller.js +70 -0
- data/app/javascript/spree/admin/controllers/range_input_controller.js +9 -0
- data/app/javascript/spree/admin/controllers/replace_controller.js +15 -0
- data/app/javascript/spree/admin/controllers/return_items_controller.js +47 -0
- data/app/javascript/spree/admin/controllers/row_link_controller.js +18 -0
- data/app/javascript/spree/admin/controllers/rule_form_controller.js +17 -0
- data/app/javascript/spree/admin/controllers/search_picker_controller.js +38 -0
- data/app/javascript/spree/admin/controllers/section_form_controller.js +14 -0
- data/app/javascript/spree/admin/controllers/select_controller.js +117 -0
- data/app/javascript/spree/admin/controllers/seo_form_controller.js +116 -0
- data/app/javascript/spree/admin/controllers/slug_form_controller.js +17 -0
- data/app/javascript/spree/admin/controllers/sortable_tree_controller.js +55 -0
- data/app/javascript/spree/admin/controllers/stock_transfer_controller.js +87 -0
- data/app/javascript/spree/admin/controllers/store_form_controller.js +17 -0
- data/app/javascript/spree/admin/controllers/unit_system_controller.js +27 -0
- data/app/javascript/spree/admin/controllers/variants_form_controller.js +1048 -0
- data/app/javascript/spree/admin/controllers/webhook_subscriber_events_controller.js +19 -0
- data/app/javascript/spree/admin/helpers/bootstrap.js +49 -0
- data/app/javascript/spree/admin/helpers/canvas.js +29 -0
- data/app/javascript/spree/admin/helpers/index.js +0 -0
- data/app/javascript/spree/admin/helpers/tinymce.js +65 -0
- data/app/javascript/spree/admin/helpers/trix/video_embed.js +182 -0
- data/app/javascript/spree/admin/helpers/uppy_active_storage.js +210 -0
- data/app/models/spree/admin/resource.rb +36 -0
- data/app/models/spree/admin/updater.rb +42 -0
- data/app/views/active_storage/_upload_form.html.erb +65 -0
- data/app/views/kaminari/admin-twitter-bootstrap-4/_first_page.html.erb +13 -0
- data/app/views/kaminari/admin-twitter-bootstrap-4/_gap.html.erb +12 -0
- data/app/views/kaminari/admin-twitter-bootstrap-4/_last_page.html.erb +13 -0
- data/app/views/kaminari/admin-twitter-bootstrap-4/_next_page.html.erb +13 -0
- data/app/views/kaminari/admin-twitter-bootstrap-4/_page.html.erb +18 -0
- data/app/views/kaminari/admin-twitter-bootstrap-4/_paginator.html.erb +17 -0
- data/app/views/kaminari/admin-twitter-bootstrap-4/_prev_page.html.erb +13 -0
- data/app/views/layouts/spree/admin.html.erb +21 -0
- data/app/views/layouts/spree/page_builder.html.erb +45 -0
- data/app/views/spree/admin/addresses/edit.html.erb +12 -0
- data/app/views/spree/admin/addresses/new.html.erb +16 -0
- data/app/views/spree/admin/assets/bulk_destroy.turbo_stream.erb +3 -0
- data/app/views/spree/admin/assets/create.turbo_stream.erb +5 -0
- data/app/views/spree/admin/assets/destroy.turbo_stream.erb +4 -0
- data/app/views/spree/admin/assets/edit.html.erb +27 -0
- data/app/views/spree/admin/assets/update.turbo_stream.erb +7 -0
- data/app/views/spree/admin/classifications/_classification.html.erb +38 -0
- data/app/views/spree/admin/classifications/create.turbo_stream.erb +7 -0
- data/app/views/spree/admin/classifications/destroy.turbo_stream.erb +2 -0
- data/app/views/spree/admin/classifications/index.html.erb +20 -0
- data/app/views/spree/admin/classifications/new.html.erb +1 -0
- data/app/views/spree/admin/coupon_codes/_coupon_code.html.erb +12 -0
- data/app/views/spree/admin/coupon_codes/index.csv.erb +14 -0
- data/app/views/spree/admin/coupon_codes/index.html.erb +70 -0
- data/app/views/spree/admin/custom_domains/_custom_domain.html.erb +13 -0
- data/app/views/spree/admin/custom_domains/_custom_domains.html.erb +24 -0
- data/app/views/spree/admin/custom_domains/_form.html.erb +19 -0
- data/app/views/spree/admin/custom_domains/create.turbo_stream.erb +3 -0
- data/app/views/spree/admin/custom_domains/edit.html.erb +15 -0
- data/app/views/spree/admin/custom_domains/index.html.erb +50 -0
- data/app/views/spree/admin/custom_domains/new.html.erb +15 -0
- data/app/views/spree/admin/customer_returns/_customer_return.html.erb +31 -0
- data/app/views/spree/admin/customer_returns/index.html.erb +57 -0
- data/app/views/spree/admin/dashboard/_analytics.html.erb +3 -0
- data/app/views/spree/admin/dashboard/_setup_progress.html.erb +17 -0
- data/app/views/spree/admin/dashboard/_setup_tasks.html.erb +24 -0
- data/app/views/spree/admin/dashboard/_store_preview.html.erb +45 -0
- data/app/views/spree/admin/dashboard/_top_products.html.erb +71 -0
- data/app/views/spree/admin/dashboard/_updater.html.erb +9 -0
- data/app/views/spree/admin/dashboard/_visits.html.erb +112 -0
- data/app/views/spree/admin/dashboard/analytics.html.erb +118 -0
- data/app/views/spree/admin/dashboard/getting_started.html.erb +22 -0
- data/app/views/spree/admin/dashboard/setup_tasks/_add_products.html.erb +22 -0
- data/app/views/spree/admin/dashboard/setup_tasks/_set_customer_support_email.html.erb +23 -0
- data/app/views/spree/admin/dashboard/setup_tasks/_setup_payment_method.html.erb +6 -0
- data/app/views/spree/admin/dashboard/setup_tasks/_setup_taxes_collection.html.erb +6 -0
- data/app/views/spree/admin/dashboard/show.html.erb +33 -0
- data/app/views/spree/admin/digital_assets/_digital_asset.html.erb +30 -0
- data/app/views/spree/admin/digital_assets/_form.html.erb +18 -0
- data/app/views/spree/admin/digital_assets/_table.html.erb +40 -0
- data/app/views/spree/admin/digital_assets/create.turbo_stream.erb +2 -0
- data/app/views/spree/admin/digital_assets/edit.html.erb +22 -0
- data/app/views/spree/admin/digital_assets/index.html.erb +27 -0
- data/app/views/spree/admin/digital_assets/new.html.erb +22 -0
- data/app/views/spree/admin/digital_assets/update.turbo_stream.erb +2 -0
- data/app/views/spree/admin/exports/_export.html.erb +42 -0
- data/app/views/spree/admin/exports/create.turbo_stream.erb +2 -0
- data/app/views/spree/admin/exports/index.html.erb +30 -0
- data/app/views/spree/admin/exports/new.html.erb +42 -0
- data/app/views/spree/admin/line_items/edit.html.erb +20 -0
- data/app/views/spree/admin/line_items/new.html.erb +32 -0
- data/app/views/spree/admin/oauth_applications/_form.html.erb +11 -0
- data/app/views/spree/admin/oauth_applications/create.turbo_stream.erb +41 -0
- data/app/views/spree/admin/oauth_applications/edit.html.erb +19 -0
- data/app/views/spree/admin/oauth_applications/index.html.erb +75 -0
- data/app/views/spree/admin/oauth_applications/new.html.erb +25 -0
- data/app/views/spree/admin/option_types/_filter.html.erb +7 -0
- data/app/views/spree/admin/option_types/_form.html.erb +87 -0
- data/app/views/spree/admin/option_types/_option_type.html.erb +19 -0
- data/app/views/spree/admin/option_types/_option_value_fields.html.erb +29 -0
- data/app/views/spree/admin/option_types/edit.html.erb +11 -0
- data/app/views/spree/admin/option_types/index.html.erb +63 -0
- data/app/views/spree/admin/option_types/new.html.erb +11 -0
- data/app/views/spree/admin/option_types/update.turbo_stream.erb +1 -0
- data/app/views/spree/admin/option_values/destroy.turbo_stream.erb +1 -0
- data/app/views/spree/admin/orders/_body_custom.html.erb +0 -0
- data/app/views/spree/admin/orders/_customer.html.erb +79 -0
- data/app/views/spree/admin/orders/_customer_returns.html.erb +26 -0
- data/app/views/spree/admin/orders/_customer_summary.html.erb +22 -0
- data/app/views/spree/admin/orders/_extra_filters.html.erb +0 -0
- data/app/views/spree/admin/orders/_filters.html.erb +106 -0
- data/app/views/spree/admin/orders/_header.html.erb +76 -0
- data/app/views/spree/admin/orders/_header_custom.html.erb +0 -0
- data/app/views/spree/admin/orders/_line_item.html.erb +61 -0
- data/app/views/spree/admin/orders/_line_items.html.erb +68 -0
- data/app/views/spree/admin/orders/_list.html.erb +30 -0
- data/app/views/spree/admin/orders/_order.html.erb +28 -0
- data/app/views/spree/admin/orders/_payments.html.erb +35 -0
- data/app/views/spree/admin/orders/_refunds.html.erb +49 -0
- data/app/views/spree/admin/orders/_return_authorizations.html.erb +26 -0
- data/app/views/spree/admin/orders/_risk_analysis.html.erb +26 -0
- data/app/views/spree/admin/orders/_shipment.html.erb +104 -0
- data/app/views/spree/admin/orders/_shipment_manifest_item.html.erb +17 -0
- data/app/views/spree/admin/orders/_shipments.html.erb +22 -0
- data/app/views/spree/admin/orders/_summary.html.erb +100 -0
- data/app/views/spree/admin/orders/_summary_custom.html.erb +0 -0
- data/app/views/spree/admin/orders/_table_filter_dropdown.html.erb +34 -0
- data/app/views/spree/admin/orders/_tax_lines.html.erb +11 -0
- data/app/views/spree/admin/orders/_user_overview.html.erb +13 -0
- data/app/views/spree/admin/orders/billing_address/_form.html.erb +14 -0
- data/app/views/spree/admin/orders/billing_address/create.turbo_stream.erb +35 -0
- data/app/views/spree/admin/orders/billing_address/edit.html.erb +42 -0
- data/app/views/spree/admin/orders/billing_address/new.html.erb +35 -0
- data/app/views/spree/admin/orders/billing_address/update.turbo_stream.erb +35 -0
- data/app/views/spree/admin/orders/contact_information/edit.html.erb +20 -0
- data/app/views/spree/admin/orders/customer_returns/_customer_return.html.erb +70 -0
- data/app/views/spree/admin/orders/customer_returns/_reimbursements_table.html.erb +40 -0
- data/app/views/spree/admin/orders/customer_returns/_return_item_decision.html.erb +54 -0
- data/app/views/spree/admin/orders/customer_returns/_return_item_selection.html.erb +72 -0
- data/app/views/spree/admin/orders/customer_returns/edit.html.erb +144 -0
- data/app/views/spree/admin/orders/customer_returns/new.html.erb +67 -0
- data/app/views/spree/admin/orders/edit.html.erb +23 -0
- data/app/views/spree/admin/orders/index.html.erb +23 -0
- data/app/views/spree/admin/orders/return_authorizations/_form.html.erb +176 -0
- data/app/views/spree/admin/orders/return_authorizations/_return_authorization.html.erb +36 -0
- data/app/views/spree/admin/orders/return_authorizations/edit.html.erb +44 -0
- data/app/views/spree/admin/orders/return_authorizations/new.html.erb +13 -0
- data/app/views/spree/admin/orders/return_authorizations/show.html.erb +128 -0
- data/app/views/spree/admin/orders/shipping_address/_form.html.erb +13 -0
- data/app/views/spree/admin/orders/shipping_address/create.turbo_stream.erb +17 -0
- data/app/views/spree/admin/orders/shipping_address/edit.html.erb +17 -0
- data/app/views/spree/admin/orders/shipping_address/new.html.erb +17 -0
- data/app/views/spree/admin/orders/shipping_address/update.turbo_stream.erb +17 -0
- data/app/views/spree/admin/orders/user/create.turbo_stream.erb +12 -0
- data/app/views/spree/admin/orders/user/edit.html.erb +3 -0
- data/app/views/spree/admin/orders/user/new.html.erb +30 -0
- data/app/views/spree/admin/orders/user/update.turbo_stream.erb +5 -0
- data/app/views/spree/admin/page_blocks/_form_tab_buttons.html.erb +7 -0
- data/app/views/spree/admin/page_blocks/create.turbo_stream.erb +4 -0
- data/app/views/spree/admin/page_blocks/destroy.turbo_stream.erb +9 -0
- data/app/views/spree/admin/page_blocks/edit.html.erb +48 -0
- data/app/views/spree/admin/page_blocks/forms/_brand.html.erb +15 -0
- data/app/views/spree/admin/page_blocks/forms/_brand_logo.html.erb +4 -0
- data/app/views/spree/admin/page_blocks/forms/_buttons.html.erb +13 -0
- data/app/views/spree/admin/page_blocks/forms/_buy_buttons.html.erb +10 -0
- data/app/views/spree/admin/page_blocks/forms/_heading.html.erb +28 -0
- data/app/views/spree/admin/page_blocks/forms/_image.html.erb +1 -0
- data/app/views/spree/admin/page_blocks/forms/_link.html.erb +19 -0
- data/app/views/spree/admin/page_blocks/forms/_mega_nav.html.erb +14 -0
- data/app/views/spree/admin/page_blocks/forms/_mega_nav_with_subcategories.html.erb +9 -0
- data/app/views/spree/admin/page_blocks/forms/_nav.html.erb +6 -0
- data/app/views/spree/admin/page_blocks/forms/_newsletter_form.html.erb +20 -0
- data/app/views/spree/admin/page_blocks/forms/_price.html.erb +15 -0
- data/app/views/spree/admin/page_blocks/forms/_quantity_selector.html.erb +10 -0
- data/app/views/spree/admin/page_blocks/forms/_share.html.erb +5 -0
- data/app/views/spree/admin/page_blocks/forms/_subheading.html.erb +26 -0
- data/app/views/spree/admin/page_blocks/forms/_text.html.erb +21 -0
- data/app/views/spree/admin/page_blocks/forms/_title.html.erb +20 -0
- data/app/views/spree/admin/page_blocks/forms/_variant_picker.html.erb +10 -0
- data/app/views/spree/admin/page_blocks/move_higher.turbo_stream.erb +4 -0
- data/app/views/spree/admin/page_blocks/move_lower.turbo_stream.erb +4 -0
- data/app/views/spree/admin/page_blocks/show.html.erb +1 -0
- data/app/views/spree/admin/page_blocks/update.turbo_stream.erb +6 -0
- data/app/views/spree/admin/page_builder/_add_block.html.erb +20 -0
- data/app/views/spree/admin/page_builder/_color_palette.html.erb +17 -0
- data/app/views/spree/admin/page_builder/_color_picker.html.erb +26 -0
- data/app/views/spree/admin/page_builder/_header.html.erb +99 -0
- data/app/views/spree/admin/page_builder/_labeled_range_input.html.erb +10 -0
- data/app/views/spree/admin/page_builder/_pages_dropdown.html.erb +23 -0
- data/app/views/spree/admin/page_builder/_range_input.html.erb +12 -0
- data/app/views/spree/admin/page_builder/_sidebar.html.erb +14 -0
- data/app/views/spree/admin/page_builder/_sidebar_block.html.erb +29 -0
- data/app/views/spree/admin/page_builder/_sidebar_colors.html.erb +84 -0
- data/app/views/spree/admin/page_builder/_sidebar_fonts.html.erb +85 -0
- data/app/views/spree/admin/page_builder/_sidebar_section.html.erb +46 -0
- data/app/views/spree/admin/page_builder/_sidebar_sections.html.erb +33 -0
- data/app/views/spree/admin/page_builder/_sidebar_sections_toolbar.html.erb +65 -0
- data/app/views/spree/admin/page_links/_form.html.erb +19 -0
- data/app/views/spree/admin/page_links/_linkable_type_dropdown.html.erb +15 -0
- data/app/views/spree/admin/page_links/_list.html.erb +36 -0
- data/app/views/spree/admin/page_links/_refresh_theme_preview.turbo_stream.erb +5 -0
- data/app/views/spree/admin/page_links/create.turbo_stream.erb +4 -0
- data/app/views/spree/admin/page_links/destroy.turbo_stream.erb +11 -0
- data/app/views/spree/admin/page_links/edit.html.erb +18 -0
- data/app/views/spree/admin/page_links/update.turbo_stream.erb +6 -0
- data/app/views/spree/admin/page_sections/_form_tab_buttons.html.erb +12 -0
- data/app/views/spree/admin/page_sections/create.turbo_stream.erb +11 -0
- data/app/views/spree/admin/page_sections/destroy.turbo_stream.erb +16 -0
- data/app/views/spree/admin/page_sections/edit.html.erb +42 -0
- data/app/views/spree/admin/page_sections/fields/_background_color.html.erb +6 -0
- data/app/views/spree/admin/page_sections/fields/_border_bottom_width.html.erb +5 -0
- data/app/views/spree/admin/page_sections/fields/_border_color.html.erb +7 -0
- data/app/views/spree/admin/page_sections/fields/_border_top_width.html.erb +6 -0
- data/app/views/spree/admin/page_sections/fields/_bottom_padding.html.erb +5 -0
- data/app/views/spree/admin/page_sections/fields/_button.html.erb +15 -0
- data/app/views/spree/admin/page_sections/fields/_header_layout.html.erb +26 -0
- data/app/views/spree/admin/page_sections/fields/_height.html.erb +6 -0
- data/app/views/spree/admin/page_sections/fields/_text_color.html.erb +7 -0
- data/app/views/spree/admin/page_sections/fields/_top_padding.html.erb +6 -0
- data/app/views/spree/admin/page_sections/forms/_announcement_bar.html.erb +5 -0
- data/app/views/spree/admin/page_sections/forms/_brand_story.html.erb +0 -0
- data/app/views/spree/admin/page_sections/forms/_collection_banner.html.erb +0 -0
- data/app/views/spree/admin/page_sections/forms/_custom_code.html.erb +4 -0
- data/app/views/spree/admin/page_sections/forms/_featured_posts.html.erb +38 -0
- data/app/views/spree/admin/page_sections/forms/_featured_product.html.erb +4 -0
- data/app/views/spree/admin/page_sections/forms/_featured_taxon.html.erb +59 -0
- data/app/views/spree/admin/page_sections/forms/_featured_taxons.html.erb +13 -0
- data/app/views/spree/admin/page_sections/forms/_footer.html.erb +20 -0
- data/app/views/spree/admin/page_sections/forms/_header.html.erb +14 -0
- data/app/views/spree/admin/page_sections/forms/_image_banner.html.erb +13 -0
- data/app/views/spree/admin/page_sections/forms/_image_with_text.html.erb +31 -0
- data/app/views/spree/admin/page_sections/forms/_main_password_footer.html.erb +9 -0
- data/app/views/spree/admin/page_sections/forms/_main_password_header.erb +13 -0
- data/app/views/spree/admin/page_sections/forms/_newsletter.html.erb +15 -0
- data/app/views/spree/admin/page_sections/forms/_page_title.html.erb +4 -0
- data/app/views/spree/admin/page_sections/forms/_post_details.html.erb +0 -0
- data/app/views/spree/admin/page_sections/forms/_post_grid.html.erb +0 -0
- data/app/views/spree/admin/page_sections/forms/_product_details.html.erb +1 -0
- data/app/views/spree/admin/page_sections/forms/_product_grid.html.erb +1 -0
- data/app/views/spree/admin/page_sections/forms/_related_products.html.erb +32 -0
- data/app/views/spree/admin/page_sections/forms/_rich_text.html.erb +0 -0
- data/app/views/spree/admin/page_sections/forms/_taxon_banner.html.erb +0 -0
- data/app/views/spree/admin/page_sections/forms/_taxon_grid.html.erb +5 -0
- data/app/views/spree/admin/page_sections/forms/_video.html.erb +15 -0
- data/app/views/spree/admin/page_sections/move_higher.turbo_stream.erb +7 -0
- data/app/views/spree/admin/page_sections/move_lower.turbo_stream.erb +7 -0
- data/app/views/spree/admin/page_sections/new.html.erb +28 -0
- data/app/views/spree/admin/page_sections/remove_attachment.turbo_stream.erb +4 -0
- data/app/views/spree/admin/page_sections/restore_design_settings_to_defaults.turbo_stream.erb +4 -0
- data/app/views/spree/admin/page_sections/show.html.erb +1 -0
- data/app/views/spree/admin/page_sections/update.turbo_stream.erb +10 -0
- data/app/views/spree/admin/pages/_filters.html.erb +7 -0
- data/app/views/spree/admin/pages/_form.html.erb +29 -0
- data/app/views/spree/admin/pages/_page.erb +8 -0
- data/app/views/spree/admin/pages/edit.html.erb +18 -0
- data/app/views/spree/admin/pages/index.html.erb +28 -0
- data/app/views/spree/admin/pages/new.html.erb +11 -0
- data/app/views/spree/admin/payment_methods/_available_payment_method.html.erb +21 -0
- data/app/views/spree/admin/payment_methods/_check.html.erb +0 -0
- data/app/views/spree/admin/payment_methods/_form.html.erb +71 -0
- data/app/views/spree/admin/payment_methods/_payment_method.html.erb +38 -0
- data/app/views/spree/admin/payment_methods/descriptions/_check.html.erb +0 -0
- data/app/views/spree/admin/payment_methods/descriptions/_gateway.html.erb +1 -0
- data/app/views/spree/admin/payment_methods/descriptions/_store_credit.html.erb +1 -0
- data/app/views/spree/admin/payment_methods/edit.html.erb +10 -0
- data/app/views/spree/admin/payment_methods/index.html.erb +38 -0
- data/app/views/spree/admin/payment_methods/new.html.erb +12 -0
- data/app/views/spree/admin/payment_methods/update.turbo_stream.erb +1 -0
- data/app/views/spree/admin/payments/_payment.html.erb +89 -0
- data/app/views/spree/admin/payments/new.html.erb +64 -0
- data/app/views/spree/admin/payments/source_forms/_gateway.html.erb +54 -0
- data/app/views/spree/admin/payments/source_forms/_previous_cards.html.erb +21 -0
- data/app/views/spree/admin/payments/source_forms/_spree_stripe.html.erb +7 -0
- data/app/views/spree/admin/payments/source_forms/_store_credit.html.erb +22 -0
- data/app/views/spree/admin/payments/source_views/_check.html.erb +0 -0
- data/app/views/spree/admin/payments/source_views/_gateway.html.erb +22 -0
- data/app/views/spree/admin/payments/source_views/_storecredit.html.erb +31 -0
- data/app/views/spree/admin/post_categories/_form.html.erb +15 -0
- data/app/views/spree/admin/post_categories/_post_category.html.erb +6 -0
- data/app/views/spree/admin/post_categories/edit.html.erb +15 -0
- data/app/views/spree/admin/post_categories/index.html.erb +27 -0
- data/app/views/spree/admin/post_categories/new.html.erb +15 -0
- data/app/views/spree/admin/posts/_extra_actions.html.erb +0 -0
- data/app/views/spree/admin/posts/_filters.html.erb +40 -0
- data/app/views/spree/admin/posts/_form.html.erb +81 -0
- data/app/views/spree/admin/posts/_post.html.erb +32 -0
- data/app/views/spree/admin/posts/edit.html.erb +15 -0
- data/app/views/spree/admin/posts/index.html.erb +36 -0
- data/app/views/spree/admin/posts/new.html.erb +11 -0
- data/app/views/spree/admin/preferences/_password_field.html.erb +26 -0
- data/app/views/spree/admin/products/_bulk_operations.html.erb +122 -0
- data/app/views/spree/admin/products/_edit_page_title.html.erb +3 -0
- data/app/views/spree/admin/products/_empty_list.html.erb +1 -0
- data/app/views/spree/admin/products/_filters.html.erb +60 -0
- data/app/views/spree/admin/products/_form.html.erb +29 -0
- data/app/views/spree/admin/products/_import_button.html.erb +0 -0
- data/app/views/spree/admin/products/_index_header.html.erb +7 -0
- data/app/views/spree/admin/products/_list.html.erb +50 -0
- data/app/views/spree/admin/products/_product.html.erb +30 -0
- data/app/views/spree/admin/products/_product_status.html.erb +3 -0
- data/app/views/spree/admin/products/_search_result.html.erb +9 -0
- data/app/views/spree/admin/products/_search_results.html.erb +9 -0
- data/app/views/spree/admin/products/_table_filter_dropdown.html.erb +42 -0
- data/app/views/spree/admin/products/bulk_modal.html.erb +23 -0
- data/app/views/spree/admin/products/bulk_status_update.turbo_stream.erb +7 -0
- data/app/views/spree/admin/products/edit.html.erb +38 -0
- data/app/views/spree/admin/products/form/_base.html.erb +16 -0
- data/app/views/spree/admin/products/form/_categorization.html.erb +35 -0
- data/app/views/spree/admin/products/form/_extra_filters.html.erb +0 -0
- data/app/views/spree/admin/products/form/_extra_form.html.erb +0 -0
- data/app/views/spree/admin/products/form/_extra_form_sidebar.erb +0 -0
- data/app/views/spree/admin/products/form/_inventory.html.erb +63 -0
- data/app/views/spree/admin/products/form/_properties.html.erb +46 -0
- data/app/views/spree/admin/products/form/_shipping.html.erb +16 -0
- data/app/views/spree/admin/products/form/_status.html.erb +52 -0
- data/app/views/spree/admin/products/form/_stores.html.erb +27 -0
- data/app/views/spree/admin/products/form/_variants.html.erb +171 -0
- data/app/views/spree/admin/products/form/variants/_option_template.html.erb +59 -0
- data/app/views/spree/admin/products/form/variants/_variant_template.html.erb +44 -0
- data/app/views/spree/admin/products/index.html.erb +18 -0
- data/app/views/spree/admin/products/new.html.erb +9 -0
- data/app/views/spree/admin/profile/edit.html.erb +79 -0
- data/app/views/spree/admin/promotion_actions/_promotion_action.html.erb +45 -0
- data/app/views/spree/admin/promotion_actions/edit.html.erb +17 -0
- data/app/views/spree/admin/promotion_actions/forms/_create_adjustment.html.erb +1 -0
- data/app/views/spree/admin/promotion_actions/forms/_create_item_adjustments.html.erb +1 -0
- data/app/views/spree/admin/promotion_actions/forms/_create_line_items.html.erb +35 -0
- data/app/views/spree/admin/promotion_actions/forms/_create_line_items_row.html.erb +28 -0
- data/app/views/spree/admin/promotion_actions/forms/_free_shipping.html.erb +0 -0
- data/app/views/spree/admin/promotion_actions/new.html.erb +48 -0
- data/app/views/spree/admin/promotion_rules/_promotion_rule.html.erb +53 -0
- data/app/views/spree/admin/promotion_rules/edit.html.erb +17 -0
- data/app/views/spree/admin/promotion_rules/forms/_country.html.erb +7 -0
- data/app/views/spree/admin/promotion_rules/forms/_currency.html.erb +10 -0
- data/app/views/spree/admin/promotion_rules/forms/_first_order.html.erb +0 -0
- data/app/views/spree/admin/promotion_rules/forms/_item_total.html.erb +26 -0
- data/app/views/spree/admin/promotion_rules/forms/_one_use_per_user.html.erb +0 -0
- data/app/views/spree/admin/promotion_rules/forms/_option_value.html.erb +9 -0
- data/app/views/spree/admin/promotion_rules/forms/_product.html.erb +9 -0
- data/app/views/spree/admin/promotion_rules/forms/_taxon.html.erb +9 -0
- data/app/views/spree/admin/promotion_rules/forms/_user.html.erb +7 -0
- data/app/views/spree/admin/promotion_rules/forms/_user_logged_in.html.erb +0 -0
- data/app/views/spree/admin/promotion_rules/new.html.erb +48 -0
- data/app/views/spree/admin/promotions/_actions.html.erb +30 -0
- data/app/views/spree/admin/promotions/_form.html.erb +47 -0
- data/app/views/spree/admin/promotions/_header.html.erb +16 -0
- data/app/views/spree/admin/promotions/_promotion.html.erb +34 -0
- data/app/views/spree/admin/promotions/_rules.html.erb +44 -0
- data/app/views/spree/admin/promotions/_sidebar.html.erb +117 -0
- data/app/views/spree/admin/promotions/_status.html.erb +16 -0
- data/app/views/spree/admin/promotions/_table_filter_dropdown.html.erb +17 -0
- data/app/views/spree/admin/promotions/_usage_limit.html.erb +13 -0
- data/app/views/spree/admin/promotions/edit.html.erb +59 -0
- data/app/views/spree/admin/promotions/form/_kind.html.erb +57 -0
- data/app/views/spree/admin/promotions/form/_settings.html.erb +24 -0
- data/app/views/spree/admin/promotions/index.html.erb +62 -0
- data/app/views/spree/admin/promotions/new.html.erb +11 -0
- data/app/views/spree/admin/promotions/show.html.erb +12 -0
- data/app/views/spree/admin/properties/_form.html.erb +22 -0
- data/app/views/spree/admin/properties/_property.html.erb +25 -0
- data/app/views/spree/admin/properties/edit.html.erb +15 -0
- data/app/views/spree/admin/properties/index.html.erb +53 -0
- data/app/views/spree/admin/properties/new.html.erb +14 -0
- data/app/views/spree/admin/properties/update.turbo_stream.erb +1 -0
- data/app/views/spree/admin/refund_reasons/edit.html.erb +3 -0
- data/app/views/spree/admin/refund_reasons/index.html.erb +40 -0
- data/app/views/spree/admin/refund_reasons/new.html.erb +4 -0
- data/app/views/spree/admin/refunds/_form.html.erb +17 -0
- data/app/views/spree/admin/refunds/edit.html.erb +20 -0
- data/app/views/spree/admin/refunds/new.html.erb +29 -0
- data/app/views/spree/admin/reimbursement_types/_form.html.erb +30 -0
- data/app/views/spree/admin/reimbursement_types/edit.html.erb +15 -0
- data/app/views/spree/admin/reimbursement_types/index.html.erb +44 -0
- data/app/views/spree/admin/reimbursement_types/new.html.erb +16 -0
- data/app/views/spree/admin/reimbursements/edit.html.erb +130 -0
- data/app/views/spree/admin/reimbursements/show.html.erb +113 -0
- data/app/views/spree/admin/reports/_report.html.erb +22 -0
- data/app/views/spree/admin/reports/create.turbo_stream.erb +1 -0
- data/app/views/spree/admin/reports/index.html.erb +28 -0
- data/app/views/spree/admin/reports/new.html.erb +39 -0
- data/app/views/spree/admin/return_authorization_reasons/edit.html.erb +3 -0
- data/app/views/spree/admin/return_authorization_reasons/index.html.erb +45 -0
- data/app/views/spree/admin/return_authorization_reasons/new.html.erb +4 -0
- data/app/views/spree/admin/return_authorizations/_filters.html.erb +39 -0
- data/app/views/spree/admin/return_authorizations/_list.html.erb +30 -0
- data/app/views/spree/admin/return_authorizations/_return_authorization.html.erb +40 -0
- data/app/views/spree/admin/return_authorizations/index.html.erb +14 -0
- data/app/views/spree/admin/roles/_form.html.erb +6 -0
- data/app/views/spree/admin/roles/edit.html.erb +13 -0
- data/app/views/spree/admin/roles/index.html.erb +32 -0
- data/app/views/spree/admin/roles/new.html.erb +15 -0
- data/app/views/spree/admin/shared/_address.html.erb +42 -0
- data/app/views/spree/admin/shared/_alerts.html.erb +22 -0
- data/app/views/spree/admin/shared/_analytics_loader_skeleton.html.erb +76 -0
- data/app/views/spree/admin/shared/_audit_nav.html.erb +3 -0
- data/app/views/spree/admin/shared/_bulk_modal.html.erb +21 -0
- data/app/views/spree/admin/shared/_calculator_fields.html.erb +34 -0
- data/app/views/spree/admin/shared/_calendar_range_picker.html.erb +28 -0
- data/app/views/spree/admin/shared/_close_bulk_modal.turbo_stream.erb +2 -0
- data/app/views/spree/admin/shared/_content_header.html.erb +81 -0
- data/app/views/spree/admin/shared/_custom_head.html.erb +0 -0
- data/app/views/spree/admin/shared/_developers_nav.html.erb +7 -0
- data/app/views/spree/admin/shared/_edit_resource_links.html.erb +6 -0
- data/app/views/spree/admin/shared/_error_messages.html.erb +22 -0
- data/app/views/spree/admin/shared/_filter_badge_template.erb +3 -0
- data/app/views/spree/admin/shared/_filters_button.html.erb +8 -0
- data/app/views/spree/admin/shared/_filters_search_bar.html.erb +15 -0
- data/app/views/spree/admin/shared/_footer.html.erb +2 -0
- data/app/views/spree/admin/shared/_growth_rate_badge.html.erb +17 -0
- data/app/views/spree/admin/shared/_head.html.erb +52 -0
- data/app/views/spree/admin/shared/_header.html.erb +28 -0
- data/app/views/spree/admin/shared/_index_table_options.html.erb +22 -0
- data/app/views/spree/admin/shared/_map.html.erb +9 -0
- data/app/views/spree/admin/shared/_modal.html.erb +37 -0
- data/app/views/spree/admin/shared/_multi_product_picker.html.erb +26 -0
- data/app/views/spree/admin/shared/_new_resource_links.html.erb +3 -0
- data/app/views/spree/admin/shared/_no_image.html.erb +6 -0
- data/app/views/spree/admin/shared/_no_resource_found.html.erb +6 -0
- data/app/views/spree/admin/shared/_offcanvas_nav.html.erb +25 -0
- data/app/views/spree/admin/shared/_page_section_image.html.erb +1 -0
- data/app/views/spree/admin/shared/_page_section_logo.html.erb +1 -0
- data/app/views/spree/admin/shared/_posts_tabs.html.erb +8 -0
- data/app/views/spree/admin/shared/_preferences.html.erb +9 -0
- data/app/views/spree/admin/shared/_product_image.html.erb +21 -0
- data/app/views/spree/admin/shared/_refunds.html.erb +30 -0
- data/app/views/spree/admin/shared/_returns_and_refunds_nav.html.erb +9 -0
- data/app/views/spree/admin/shared/_seo.html.erb +39 -0
- data/app/views/spree/admin/shared/_shipping_nav.html.erb +4 -0
- data/app/views/spree/admin/shared/_sidebar.html.erb +15 -0
- data/app/views/spree/admin/shared/_spinner.html.erb +7 -0
- data/app/views/spree/admin/shared/_stock_nav.html.erb +4 -0
- data/app/views/spree/admin/shared/_tax_nav.html.erb +4 -0
- data/app/views/spree/admin/shared/_user.html.erb +24 -0
- data/app/views/spree/admin/shared/_user_dropdown.html.erb +41 -0
- data/app/views/spree/admin/shared/named_types/_edit.html.erb +15 -0
- data/app/views/spree/admin/shared/named_types/_form.html.erb +15 -0
- data/app/views/spree/admin/shared/named_types/_new.html.erb +15 -0
- data/app/views/spree/admin/shared/sidebar/_custom_nav.html.erb +0 -0
- data/app/views/spree/admin/shared/sidebar/_enterprise_edition_notice.html.erb +10 -0
- data/app/views/spree/admin/shared/sidebar/_integrations_nav.html.erb +7 -0
- data/app/views/spree/admin/shared/sidebar/_orders_nav.html.erb +35 -0
- data/app/views/spree/admin/shared/sidebar/_products_nav.html.erb +41 -0
- data/app/views/spree/admin/shared/sidebar/_returns_nav.html.erb +20 -0
- data/app/views/spree/admin/shared/sidebar/_store_dropdown.html.erb +67 -0
- data/app/views/spree/admin/shared/sidebar/_store_nav.html.erb +176 -0
- data/app/views/spree/admin/shared/sidebar/_storefront_nav.html.erb +29 -0
- data/app/views/spree/admin/shared/sidebar/_vendors_nav.html.erb +8 -0
- data/app/views/spree/admin/shared/sortable_tree/_taxonomy.html.erb +66 -0
- data/app/views/spree/admin/shipments/edit.html.erb +28 -0
- data/app/views/spree/admin/shipments/split.html.erb +16 -0
- data/app/views/spree/admin/shipping_categories/_form.html.erb +9 -0
- data/app/views/spree/admin/shipping_categories/edit.html.erb +11 -0
- data/app/views/spree/admin/shipping_categories/index.html.erb +36 -0
- data/app/views/spree/admin/shipping_categories/new.html.erb +13 -0
- data/app/views/spree/admin/shipping_methods/_actions.html.erb +5 -0
- data/app/views/spree/admin/shipping_methods/_form.html.erb +141 -0
- data/app/views/spree/admin/shipping_methods/_shipping_method.html.erb +33 -0
- data/app/views/spree/admin/shipping_methods/edit.html.erb +12 -0
- data/app/views/spree/admin/shipping_methods/index.html.erb +34 -0
- data/app/views/spree/admin/shipping_methods/new.html.erb +13 -0
- data/app/views/spree/admin/shipping_methods/update.turbo_stream.erb +1 -0
- data/app/views/spree/admin/stock_items/_filters.html.erb +39 -0
- data/app/views/spree/admin/stock_items/_stock_item.html.erb +43 -0
- data/app/views/spree/admin/stock_items/index.html.erb +38 -0
- data/app/views/spree/admin/stock_items/update.turbo_stream.erb +1 -0
- data/app/views/spree/admin/stock_locations/_form.html.erb +56 -0
- data/app/views/spree/admin/stock_locations/_stock_location.html.erb +30 -0
- data/app/views/spree/admin/stock_locations/edit.html.erb +9 -0
- data/app/views/spree/admin/stock_locations/index.html.erb +26 -0
- data/app/views/spree/admin/stock_locations/new.html.erb +11 -0
- data/app/views/spree/admin/stock_transfers/_destination_movement_form.html.erb +36 -0
- data/app/views/spree/admin/stock_transfers/_filters.html.erb +46 -0
- data/app/views/spree/admin/stock_transfers/_new_variant_modal.html.erb +30 -0
- data/app/views/spree/admin/stock_transfers/_new_variant_template.html.erb +8 -0
- data/app/views/spree/admin/stock_transfers/_source_movement_form.html.erb +8 -0
- data/app/views/spree/admin/stock_transfers/_stock_movement.html.erb +5 -0
- data/app/views/spree/admin/stock_transfers/_stock_transfer.html.erb +11 -0
- data/app/views/spree/admin/stock_transfers/index.html.erb +38 -0
- data/app/views/spree/admin/stock_transfers/new.html.erb +85 -0
- data/app/views/spree/admin/stock_transfers/show.html.erb +58 -0
- data/app/views/spree/admin/store_credit_categories/_form.html.erb +5 -0
- data/app/views/spree/admin/store_credit_categories/edit.html.erb +13 -0
- data/app/views/spree/admin/store_credit_categories/index.html.erb +32 -0
- data/app/views/spree/admin/store_credit_categories/new.html.erb +15 -0
- data/app/views/spree/admin/store_credits/_form.html.erb +24 -0
- data/app/views/spree/admin/store_credits/_list.html.erb +41 -0
- data/app/views/spree/admin/store_credits/edit.html.erb +36 -0
- data/app/views/spree/admin/store_credits/index.html.erb +20 -0
- data/app/views/spree/admin/store_credits/new.html.erb +26 -0
- data/app/views/spree/admin/storefront/edit.html.erb +146 -0
- data/app/views/spree/admin/stores/create.turbo_stream.erb +5 -0
- data/app/views/spree/admin/stores/edit.html.erb +13 -0
- data/app/views/spree/admin/stores/edit_emails.html.erb +11 -0
- data/app/views/spree/admin/stores/form/_basic.html.erb +160 -0
- data/app/views/spree/admin/stores/form/_buttons.html.erb +3 -0
- data/app/views/spree/admin/stores/form/_checkout.html.erb +50 -0
- data/app/views/spree/admin/stores/form/_custom.html.erb +0 -0
- data/app/views/spree/admin/stores/form/_emails.html.erb +59 -0
- data/app/views/spree/admin/stores/form/_policies.html.erb +85 -0
- data/app/views/spree/admin/stores/new.html.erb +135 -0
- data/app/views/spree/admin/stores/new.turbo_stream.erb +1 -0
- data/app/views/spree/admin/stores/update.turbo_stream.erb +11 -0
- data/app/views/spree/admin/tax_categories/_form.html.erb +25 -0
- data/app/views/spree/admin/tax_categories/_tax_category.html.erb +13 -0
- data/app/views/spree/admin/tax_categories/edit.html.erb +11 -0
- data/app/views/spree/admin/tax_categories/index.html.erb +30 -0
- data/app/views/spree/admin/tax_categories/new.html.erb +11 -0
- data/app/views/spree/admin/tax_rates/_form.html.erb +48 -0
- data/app/views/spree/admin/tax_rates/_tax_rate.html.erb +15 -0
- data/app/views/spree/admin/tax_rates/edit.html.erb +11 -0
- data/app/views/spree/admin/tax_rates/index.html.erb +32 -0
- data/app/views/spree/admin/tax_rates/new.html.erb +14 -0
- data/app/views/spree/admin/taxonomies/_taxonomy.html.erb +16 -0
- data/app/views/spree/admin/taxonomies/edit.html.erb +28 -0
- data/app/views/spree/admin/taxonomies/index.html.erb +40 -0
- data/app/views/spree/admin/taxonomies/new.html.erb +23 -0
- data/app/views/spree/admin/taxonomies/show.html.erb +28 -0
- data/app/views/spree/admin/taxons/_form.html.erb +148 -0
- data/app/views/spree/admin/taxons/_rule_form.html.erb +24 -0
- data/app/views/spree/admin/taxons/_rules_form.html.erb +34 -0
- data/app/views/spree/admin/taxons/destroy.turbo_stream.erb +1 -0
- data/app/views/spree/admin/taxons/edit.html.erb +19 -0
- data/app/views/spree/admin/taxons/new.html.erb +12 -0
- data/app/views/spree/admin/taxons/rule_forms/_available_on.html.erb +4 -0
- data/app/views/spree/admin/taxons/rule_forms/_sale.html.erb +4 -0
- data/app/views/spree/admin/taxons/rule_forms/_tag.html.erb +1 -0
- data/app/views/spree/admin/themes/_theme.html.erb +53 -0
- data/app/views/spree/admin/themes/_theme_preview_image.html.erb +24 -0
- data/app/views/spree/admin/themes/edit.html.erb +14 -0
- data/app/views/spree/admin/themes/index.html.erb +79 -0
- data/app/views/spree/admin/themes/update.turbo_stream.erb +1 -0
- data/app/views/spree/admin/translations/_translations_unavailable.html.erb +10 -0
- data/app/views/spree/admin/translations/edit.html.erb +47 -0
- data/app/views/spree/admin/translations/products/_form.html.erb +23 -0
- data/app/views/spree/admin/translations/stores/_form.html.erb +23 -0
- data/app/views/spree/admin/translations/taxonomies/_form.html.erb +20 -0
- data/app/views/spree/admin/translations/taxons/_form.html.erb +37 -0
- data/app/views/spree/admin/users/_billing.html.erb +78 -0
- data/app/views/spree/admin/users/_details.html.erb +52 -0
- data/app/views/spree/admin/users/_extra_actions.html.erb +0 -0
- data/app/views/spree/admin/users/_filters.html.erb +85 -0
- data/app/views/spree/admin/users/_form.html.erb +36 -0
- data/app/views/spree/admin/users/_last_order.html.erb +33 -0
- data/app/views/spree/admin/users/_last_order_line_item.html.erb +19 -0
- data/app/views/spree/admin/users/_lifetime_stats.html.erb +65 -0
- data/app/views/spree/admin/users/_shipping.html.erb +33 -0
- data/app/views/spree/admin/users/_tabs.html.erb +74 -0
- data/app/views/spree/admin/users/_user.html.erb +20 -0
- data/app/views/spree/admin/users/bulk_modal.html.erb +21 -0
- data/app/views/spree/admin/users/edit.html.erb +17 -0
- data/app/views/spree/admin/users/index.csv.erb +43 -0
- data/app/views/spree/admin/users/index.html.erb +102 -0
- data/app/views/spree/admin/users/new.html.erb +14 -0
- data/app/views/spree/admin/users/show.html.erb +38 -0
- data/app/views/spree/admin/variants/_search_result.html.erb +28 -0
- data/app/views/spree/admin/variants/_search_results.html.erb +9 -0
- data/app/views/spree/admin/variants/_variant.html.erb +13 -0
- data/app/views/spree/admin/variants/edit.html.erb +20 -0
- data/app/views/spree/admin/variants/form/_basic.html.erb +31 -0
- data/app/views/spree/admin/variants/form/_dimensions.html.erb +33 -0
- data/app/views/spree/admin/variants/form/_inventory.html.erb +45 -0
- data/app/views/spree/admin/variants/form/_media.html.erb +32 -0
- data/app/views/spree/admin/variants/form/_media_asset.html.erb +21 -0
- data/app/views/spree/admin/variants/form/_pricing.html.erb +48 -0
- data/app/views/spree/admin/webhook_events/_webhook_event.html.erb +17 -0
- data/app/views/spree/admin/webhooks_subscribers/_form.html.erb +66 -0
- data/app/views/spree/admin/webhooks_subscribers/_webhooks_subscriber.html.erb +16 -0
- data/app/views/spree/admin/webhooks_subscribers/edit.html.erb +9 -0
- data/app/views/spree/admin/webhooks_subscribers/index.html.erb +26 -0
- data/app/views/spree/admin/webhooks_subscribers/new.html.erb +11 -0
- data/app/views/spree/admin/webhooks_subscribers/show.html.erb +54 -0
- data/app/views/spree/admin/zones/_country_members.html.erb +16 -0
- data/app/views/spree/admin/zones/_form.html.erb +52 -0
- data/app/views/spree/admin/zones/_state_members.html.erb +21 -0
- data/app/views/spree/admin/zones/edit.html.erb +12 -0
- data/app/views/spree/admin/zones/index.html.erb +45 -0
- data/app/views/spree/admin/zones/new.html.erb +11 -0
- data/config/i18n-tasks.yml +190 -0
- data/config/importmap.rb +149 -0
- data/config/initializers/action_text.rb +8 -0
- data/config/initializers/assets.rb +1 -0
- data/config/initializers/chartkick.rb +5 -0
- data/config/initializers/dartsass.rb +3 -0
- data/config/initializers/form_builder.rb +10 -0
- data/config/initializers/ransack.rb +19 -0
- data/config/locales/en.yml +304 -0
- data/config/routes.rb +240 -0
- data/lib/generators/spree/admin/install/install_generator.rb +42 -0
- data/lib/generators/spree/admin/install/templates/dev +16 -0
- data/lib/spree/admin/action_callbacks.rb +27 -0
- data/lib/spree/admin/callbacks.rb +51 -0
- data/lib/spree/admin/engine.rb +51 -0
- data/lib/spree/admin/runtime_configuration.rb +12 -0
- data/lib/spree/admin/testing_support/capybara_utils.rb +45 -0
- data/lib/spree/admin.rb +23 -0
- data/lib/spree_admin.rb +18 -0
- data/vendor/javascript/@easepick--base-plugin.js +4 -0
- data/vendor/javascript/@easepick--core.js +4 -0
- data/vendor/javascript/@easepick--datetime.js +4 -0
- data/vendor/javascript/@easepick--preset-plugin.js +4 -0
- data/vendor/javascript/@easepick--range-plugin.js +4 -0
- data/vendor/javascript/@orchidjs--sifter.js +17 -0
- data/vendor/javascript/@orchidjs--unicode-variants.js +11 -0
- data/vendor/javascript/@rails--actiontext@7.2.201.js +4 -0
- data/vendor/javascript/@simonwep--pickr.js +4 -0
- data/vendor/javascript/@stimulus-components--rails-nested-form.js +4 -0
- data/vendor/javascript/bootstrap--dist--js--bootstrap.bundle.min.js.js +8 -0
- data/vendor/javascript/dompurify.js +139 -0
- data/vendor/javascript/hotkeys-js.js +4 -0
- data/vendor/javascript/jquery.min.js +2 -0
- data/vendor/javascript/local-time.js +4 -0
- data/vendor/javascript/sortablejs.js +136 -0
- data/vendor/javascript/stimulus-checkbox-select-all.js +4 -0
- data/vendor/javascript/stimulus-clipboard.js +4 -0
- data/vendor/javascript/stimulus-notification.js +4 -0
- data/vendor/javascript/stimulus-password-visibility.js +4 -0
- data/vendor/javascript/stimulus-reveal-controller.js +4 -0
- data/vendor/javascript/stimulus-sortable.js +4 -0
- data/vendor/javascript/stimulus-textarea-autogrow.js +4 -0
- data/vendor/javascript/stimulus-use.js +4 -0
- data/vendor/javascript/tom-select--dist--esm--tom-select.complete.js.js +32 -0
- data/vendor/javascript/trix@2.1.12.js +5 -0
- metadata +1084 -0
@@ -0,0 +1,8 @@
|
|
1
|
+
// bootstrap/dist/js/bootstrap.bundle.min.js@4.6.1 downloaded from https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.bundle.min.js
|
2
|
+
|
3
|
+
/*!
|
4
|
+
* Bootstrap v4.6.1 (https://getbootstrap.com/)
|
5
|
+
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
6
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
7
|
+
*/
|
8
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap={},t.jQuery)}(this,(function(t,e){"use strict";function n(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var i=n(e);function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function r(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function a(){return a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},a.apply(this,arguments)}function s(t,e){return s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},s(t,e)}var l="transitionend";var u={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");if(!e||"#"===e){var n=t.getAttribute("href");e=n&&"#"!==n?n.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var e=i.default(t).css("transition-duration"),n=i.default(t).css("transition-delay"),o=parseFloat(e),r=parseFloat(n);return o||r?(e=e.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(e)+parseFloat(n))):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){i.default(t).trigger(l)},supportsTransitionEnd:function(){return Boolean(l)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var o=n[i],r=e[i],a=r&&u.isElement(r)?"element":null===(s=r)||"undefined"==typeof s?""+s:{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(o).test(a))throw new Error(t.toUpperCase()+': Option "'+i+'" provided type "'+a+'" but expected type "'+o+'".')}var s},findShadowRoot:function(t){if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){var e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?u.findShadowRoot(t.parentNode):null},jQueryDetection:function(){if("undefined"==typeof i.default)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=i.default.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||t[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};u.jQueryDetection(),i.default.fn.emulateTransitionEnd=function(t){var e=this,n=!1;return i.default(this).one(u.TRANSITION_END,(function(){n=!0})),setTimeout((function(){n||u.triggerTransitionEnd(e)}),t),this},i.default.event.special[u.TRANSITION_END]={bindType:l,delegateType:l,handle:function(t){if(i.default(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};var f="bs.alert",d=i.default.fn.alert,c=function(){function t(t){this._element=t}var e=t.prototype;return e.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},e.dispose=function(){i.default.removeData(this._element,f),this._element=null},e._getRootElement=function(t){var e=u.getSelectorFromElement(t),n=!1;return e&&(n=document.querySelector(e)),n||(n=i.default(t).closest(".alert")[0]),n},e._triggerCloseEvent=function(t){var e=i.default.Event("close.bs.alert");return i.default(t).trigger(e),e},e._removeElement=function(t){var e=this;if(i.default(t).removeClass("show"),i.default(t).hasClass("fade")){var n=u.getTransitionDurationFromElement(t);i.default(t).one(u.TRANSITION_END,(function(n){return e._destroyElement(t,n)})).emulateTransitionEnd(n)}else this._destroyElement(t)},e._destroyElement=function(t){i.default(t).detach().trigger("closed.bs.alert").remove()},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this),o=n.data(f);o||(o=new t(this),n.data(f,o)),"close"===e&&o[e](this)}))},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},r(t,null,[{key:"VERSION",get:function(){return"4.6.1"}}]),t}();i.default(document).on("click.bs.alert.data-api",'[data-dismiss="alert"]',c._handleDismiss(new c)),i.default.fn.alert=c._jQueryInterface,i.default.fn.alert.Constructor=c,i.default.fn.alert.noConflict=function(){return i.default.fn.alert=d,c._jQueryInterface};var h="bs.button",p=i.default.fn.button,m="active",g='[data-toggle^="button"]',_='input:not([type="hidden"])',v=".btn",b=function(){function t(t){this._element=t,this.shouldAvoidTriggerChange=!1}var e=t.prototype;return e.toggle=function(){var t=!0,e=!0,n=i.default(this._element).closest('[data-toggle="buttons"]')[0];if(n){var o=this._element.querySelector(_);if(o){if("radio"===o.type)if(o.checked&&this._element.classList.contains(m))t=!1;else{var r=n.querySelector(".active");r&&i.default(r).removeClass(m)}t&&("checkbox"!==o.type&&"radio"!==o.type||(o.checked=!this._element.classList.contains(m)),this.shouldAvoidTriggerChange||i.default(o).trigger("change")),o.focus(),e=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(m)),t&&i.default(this._element).toggleClass(m))},e.dispose=function(){i.default.removeData(this._element,h),this._element=null},t._jQueryInterface=function(e,n){return this.each((function(){var o=i.default(this),r=o.data(h);r||(r=new t(this),o.data(h,r)),r.shouldAvoidTriggerChange=n,"toggle"===e&&r[e]()}))},r(t,null,[{key:"VERSION",get:function(){return"4.6.1"}}]),t}();i.default(document).on("click.bs.button.data-api",g,(function(t){var e=t.target,n=e;if(i.default(e).hasClass("btn")||(e=i.default(e).closest(v)[0]),!e||e.hasAttribute("disabled")||e.classList.contains("disabled"))t.preventDefault();else{var o=e.querySelector(_);if(o&&(o.hasAttribute("disabled")||o.classList.contains("disabled")))return void t.preventDefault();"INPUT"!==n.tagName&&"LABEL"===e.tagName||b._jQueryInterface.call(i.default(e),"toggle","INPUT"===n.tagName)}})).on("focus.bs.button.data-api blur.bs.button.data-api",g,(function(t){var e=i.default(t.target).closest(v)[0];i.default(e).toggleClass("focus",/^focus(in)?$/.test(t.type))})),i.default(window).on("load.bs.button.data-api",(function(){for(var t=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn')),e=0,n=t.length;e<n;e++){var i=t[e],o=i.querySelector(_);o.checked||o.hasAttribute("checked")?i.classList.add(m):i.classList.remove(m)}for(var r=0,a=(t=[].slice.call(document.querySelectorAll('[data-toggle="button"]'))).length;r<a;r++){var s=t[r];"true"===s.getAttribute("aria-pressed")?s.classList.add(m):s.classList.remove(m)}})),i.default.fn.button=b._jQueryInterface,i.default.fn.button.Constructor=b,i.default.fn.button.noConflict=function(){return i.default.fn.button=p,b._jQueryInterface};var y="carousel",E="bs.carousel",w=i.default.fn[y],T="active",C="next",S="prev",N="slid.bs.carousel",D=".active.carousel-item",A={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},k={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},I={TOUCH:"touch",PEN:"pen"},O=function(){function t(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._element=t,this._indicatorsElement=this._element.querySelector(".carousel-indicators"),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var e=t.prototype;return e.next=function(){this._isSliding||this._slide(C)},e.nextWhenVisible=function(){var t=i.default(this._element);!document.hidden&&t.is(":visible")&&"hidden"!==t.css("visibility")&&this.next()},e.prev=function(){this._isSliding||this._slide(S)},e.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(u.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},e.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},e.to=function(t){var e=this;this._activeElement=this._element.querySelector(D);var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)i.default(this._element).one(N,(function(){return e.to(t)}));else{if(n===t)return this.pause(),void this.cycle();var o=t>n?C:S;this._slide(o,this._items[t])}},e.dispose=function(){i.default(this._element).off(".bs.carousel"),i.default.removeData(this._element,E),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},e._getConfig=function(t){return t=a({},A,t),u.typeCheckConfig(y,t,k),t},e._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=40)){var e=t/this.touchDeltaX;this.touchDeltaX=0,e>0&&this.prev(),e<0&&this.next()}},e._addEventListeners=function(){var t=this;this._config.keyboard&&i.default(this._element).on("keydown.bs.carousel",(function(e){return t._keydown(e)})),"hover"===this._config.pause&&i.default(this._element).on("mouseenter.bs.carousel",(function(e){return t.pause(e)})).on("mouseleave.bs.carousel",(function(e){return t.cycle(e)})),this._config.touch&&this._addTouchEventListeners()},e._addTouchEventListeners=function(){var t=this;if(this._touchSupported){var e=function(e){t._pointerEvent&&I[e.originalEvent.pointerType.toUpperCase()]?t.touchStartX=e.originalEvent.clientX:t._pointerEvent||(t.touchStartX=e.originalEvent.touches[0].clientX)},n=function(e){t._pointerEvent&&I[e.originalEvent.pointerType.toUpperCase()]&&(t.touchDeltaX=e.originalEvent.clientX-t.touchStartX),t._handleSwipe(),"hover"===t._config.pause&&(t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout((function(e){return t.cycle(e)}),500+t._config.interval))};i.default(this._element.querySelectorAll(".carousel-item img")).on("dragstart.bs.carousel",(function(t){return t.preventDefault()})),this._pointerEvent?(i.default(this._element).on("pointerdown.bs.carousel",(function(t){return e(t)})),i.default(this._element).on("pointerup.bs.carousel",(function(t){return n(t)})),this._element.classList.add("pointer-event")):(i.default(this._element).on("touchstart.bs.carousel",(function(t){return e(t)})),i.default(this._element).on("touchmove.bs.carousel",(function(e){return function(e){t.touchDeltaX=e.originalEvent.touches&&e.originalEvent.touches.length>1?0:e.originalEvent.touches[0].clientX-t.touchStartX}(e)})),i.default(this._element).on("touchend.bs.carousel",(function(t){return n(t)})))}},e._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},e._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(t)},e._getItemByDirection=function(t,e){var n=t===C,i=t===S,o=this._getItemIndex(e),r=this._items.length-1;if((i&&0===o||n&&o===r)&&!this._config.wrap)return e;var a=(o+(t===S?-1:1))%this._items.length;return-1===a?this._items[this._items.length-1]:this._items[a]},e._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),o=this._getItemIndex(this._element.querySelector(D)),r=i.default.Event("slide.bs.carousel",{relatedTarget:t,direction:e,from:o,to:n});return i.default(this._element).trigger(r),r},e._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var e=[].slice.call(this._indicatorsElement.querySelectorAll(".active"));i.default(e).removeClass(T);var n=this._indicatorsElement.children[this._getItemIndex(t)];n&&i.default(n).addClass(T)}},e._updateInterval=function(){var t=this._activeElement||this._element.querySelector(D);if(t){var e=parseInt(t.getAttribute("data-interval"),10);e?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval}},e._slide=function(t,e){var n,o,r,a=this,s=this._element.querySelector(D),l=this._getItemIndex(s),f=e||s&&this._getItemByDirection(t,s),d=this._getItemIndex(f),c=Boolean(this._interval);if(t===C?(n="carousel-item-left",o="carousel-item-next",r="left"):(n="carousel-item-right",o="carousel-item-prev",r="right"),f&&i.default(f).hasClass(T))this._isSliding=!1;else if(!this._triggerSlideEvent(f,r).isDefaultPrevented()&&s&&f){this._isSliding=!0,c&&this.pause(),this._setActiveIndicatorElement(f),this._activeElement=f;var h=i.default.Event(N,{relatedTarget:f,direction:r,from:l,to:d});if(i.default(this._element).hasClass("slide")){i.default(f).addClass(o),u.reflow(f),i.default(s).addClass(n),i.default(f).addClass(n);var p=u.getTransitionDurationFromElement(s);i.default(s).one(u.TRANSITION_END,(function(){i.default(f).removeClass(n+" "+o).addClass(T),i.default(s).removeClass("active "+o+" "+n),a._isSliding=!1,setTimeout((function(){return i.default(a._element).trigger(h)}),0)})).emulateTransitionEnd(p)}else i.default(s).removeClass(T),i.default(f).addClass(T),this._isSliding=!1,i.default(this._element).trigger(h);c&&this.cycle()}},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this).data(E),o=a({},A,i.default(this).data());"object"==typeof e&&(o=a({},o,e));var r="string"==typeof e?e:o.slide;if(n||(n=new t(this,o),i.default(this).data(E,n)),"number"==typeof e)n.to(e);else if("string"==typeof r){if("undefined"==typeof n[r])throw new TypeError('No method named "'+r+'"');n[r]()}else o.interval&&o.ride&&(n.pause(),n.cycle())}))},t._dataApiClickHandler=function(e){var n=u.getSelectorFromElement(this);if(n){var o=i.default(n)[0];if(o&&i.default(o).hasClass("carousel")){var r=a({},i.default(o).data(),i.default(this).data()),s=this.getAttribute("data-slide-to");s&&(r.interval=!1),t._jQueryInterface.call(i.default(o),r),s&&i.default(o).data(E).to(s),e.preventDefault()}}},r(t,null,[{key:"VERSION",get:function(){return"4.6.1"}},{key:"Default",get:function(){return A}}]),t}();i.default(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",O._dataApiClickHandler),i.default(window).on("load.bs.carousel.data-api",(function(){for(var t=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),e=0,n=t.length;e<n;e++){var o=i.default(t[e]);O._jQueryInterface.call(o,o.data())}})),i.default.fn[y]=O._jQueryInterface,i.default.fn[y].Constructor=O,i.default.fn[y].noConflict=function(){return i.default.fn[y]=w,O._jQueryInterface};var x="collapse",j="bs.collapse",L=i.default.fn[x],P="show",F="collapse",R="collapsing",H="collapsed",M="width",q='[data-toggle="collapse"]',B={toggle:!0,parent:""},Q={toggle:"boolean",parent:"(string|element)"},W=function(){function t(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(q)),i=0,o=n.length;i<o;i++){var r=n[i],a=u.getSelectorFromElement(r),s=[].slice.call(document.querySelectorAll(a)).filter((function(e){return e===t}));null!==a&&s.length>0&&(this._selector=a,this._triggerArray.push(r))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var e=t.prototype;return e.toggle=function(){i.default(this._element).hasClass(P)?this.hide():this.show()},e.show=function(){var e,n,o=this;if(!(this._isTransitioning||i.default(this._element).hasClass(P)||(this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter((function(t){return"string"==typeof o._config.parent?t.getAttribute("data-parent")===o._config.parent:t.classList.contains(F)}))).length&&(e=null),e&&(n=i.default(e).not(this._selector).data(j))&&n._isTransitioning))){var r=i.default.Event("show.bs.collapse");if(i.default(this._element).trigger(r),!r.isDefaultPrevented()){e&&(t._jQueryInterface.call(i.default(e).not(this._selector),"hide"),n||i.default(e).data(j,null));var a=this._getDimension();i.default(this._element).removeClass(F).addClass(R),this._element.style[a]=0,this._triggerArray.length&&i.default(this._triggerArray).removeClass(H).attr("aria-expanded",!0),this.setTransitioning(!0);var s="scroll"+(a[0].toUpperCase()+a.slice(1)),l=u.getTransitionDurationFromElement(this._element);i.default(this._element).one(u.TRANSITION_END,(function(){i.default(o._element).removeClass(R).addClass("collapse show"),o._element.style[a]="",o.setTransitioning(!1),i.default(o._element).trigger("shown.bs.collapse")})).emulateTransitionEnd(l),this._element.style[a]=this._element[s]+"px"}}},e.hide=function(){var t=this;if(!this._isTransitioning&&i.default(this._element).hasClass(P)){var e=i.default.Event("hide.bs.collapse");if(i.default(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",u.reflow(this._element),i.default(this._element).addClass(R).removeClass("collapse show");var o=this._triggerArray.length;if(o>0)for(var r=0;r<o;r++){var a=this._triggerArray[r],s=u.getSelectorFromElement(a);null!==s&&(i.default([].slice.call(document.querySelectorAll(s))).hasClass(P)||i.default(a).addClass(H).attr("aria-expanded",!1))}this.setTransitioning(!0),this._element.style[n]="";var l=u.getTransitionDurationFromElement(this._element);i.default(this._element).one(u.TRANSITION_END,(function(){t.setTransitioning(!1),i.default(t._element).removeClass(R).addClass(F).trigger("hidden.bs.collapse")})).emulateTransitionEnd(l)}}},e.setTransitioning=function(t){this._isTransitioning=t},e.dispose=function(){i.default.removeData(this._element,j),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},e._getConfig=function(t){return(t=a({},B,t)).toggle=Boolean(t.toggle),u.typeCheckConfig(x,t,Q),t},e._getDimension=function(){return i.default(this._element).hasClass(M)?M:"height"},e._getParent=function(){var e,n=this;u.isElement(this._config.parent)?(e=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(e=this._config.parent[0])):e=document.querySelector(this._config.parent);var o='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',r=[].slice.call(e.querySelectorAll(o));return i.default(r).each((function(e,i){n._addAriaAndCollapsedClass(t._getTargetFromElement(i),[i])})),e},e._addAriaAndCollapsedClass=function(t,e){var n=i.default(t).hasClass(P);e.length&&i.default(e).toggleClass(H,!n).attr("aria-expanded",n)},t._getTargetFromElement=function(t){var e=u.getSelectorFromElement(t);return e?document.querySelector(e):null},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this),o=n.data(j),r=a({},B,n.data(),"object"==typeof e&&e?e:{});if(!o&&r.toggle&&"string"==typeof e&&/show|hide/.test(e)&&(r.toggle=!1),o||(o=new t(this,r),n.data(j,o)),"string"==typeof e){if("undefined"==typeof o[e])throw new TypeError('No method named "'+e+'"');o[e]()}}))},r(t,null,[{key:"VERSION",get:function(){return"4.6.1"}},{key:"Default",get:function(){return B}}]),t}();i.default(document).on("click.bs.collapse.data-api",q,(function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var e=i.default(this),n=u.getSelectorFromElement(this),o=[].slice.call(document.querySelectorAll(n));i.default(o).each((function(){var t=i.default(this),n=t.data(j)?"toggle":e.data();W._jQueryInterface.call(t,n)}))})),i.default.fn[x]=W._jQueryInterface,i.default.fn[x].Constructor=W,i.default.fn[x].noConflict=function(){return i.default.fn[x]=L,W._jQueryInterface};var U="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,V=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(U&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}(),Y=U&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),V))}};function z(t){return t&&"[object Function]"==={}.toString.call(t)}function K(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function X(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function G(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=K(t),n=e.overflow,i=e.overflowX,o=e.overflowY;return/(auto|scroll|overlay)/.test(n+o+i)?t:G(X(t))}function $(t){return t&&t.referenceNode?t.referenceNode:t}var J=U&&!(!window.MSInputMethodContext||!document.documentMode),Z=U&&/MSIE 10/.test(navigator.userAgent);function tt(t){return 11===t?J:10===t?Z:J||Z}function et(t){if(!t)return document.documentElement;for(var e=tt(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===K(n,"position")?et(n):n:t?t.ownerDocument.documentElement:document.documentElement}function nt(t){return null!==t.parentNode?nt(t.parentNode):t}function it(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,o=n?e:t,r=document.createRange();r.setStart(i,0),r.setEnd(o,0);var a,s,l=r.commonAncestorContainer;if(t!==l&&e!==l||i.contains(o))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&et(a.firstElementChild)!==a?et(l):l;var u=nt(t);return u.host?it(u.host,e):it(t,nt(e).host)}function ot(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",i=t.nodeName;if("BODY"===i||"HTML"===i){var o=t.ownerDocument.documentElement,r=t.ownerDocument.scrollingElement||o;return r[n]}return t[n]}function rt(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=ot(e,"top"),o=ot(e,"left"),r=n?-1:1;return t.top+=i*r,t.bottom+=i*r,t.left+=o*r,t.right+=o*r,t}function at(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+i+"Width"])}function st(t,e,n,i){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],tt(10)?parseInt(n["offset"+t])+parseInt(i["margin"+("Height"===t?"Top":"Left")])+parseInt(i["margin"+("Height"===t?"Bottom":"Right")]):0)}function lt(t){var e=t.body,n=t.documentElement,i=tt(10)&&getComputedStyle(n);return{height:st("Height",e,n,i),width:st("Width",e,n,i)}}var ut=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},ft=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),dt=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},ct=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function ht(t){return ct({},t,{right:t.left+t.width,bottom:t.top+t.height})}function pt(t){var e={};try{if(tt(10)){e=t.getBoundingClientRect();var n=ot(t,"top"),i=ot(t,"left");e.top+=n,e.left+=i,e.bottom+=n,e.right+=i}else e=t.getBoundingClientRect()}catch(t){}var o={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},r="HTML"===t.nodeName?lt(t.ownerDocument):{},a=r.width||t.clientWidth||o.width,s=r.height||t.clientHeight||o.height,l=t.offsetWidth-a,u=t.offsetHeight-s;if(l||u){var f=K(t);l-=at(f,"x"),u-=at(f,"y"),o.width-=l,o.height-=u}return ht(o)}function mt(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=tt(10),o="HTML"===e.nodeName,r=pt(t),a=pt(e),s=G(t),l=K(e),u=parseFloat(l.borderTopWidth),f=parseFloat(l.borderLeftWidth);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var d=ht({top:r.top-a.top-u,left:r.left-a.left-f,width:r.width,height:r.height});if(d.marginTop=0,d.marginLeft=0,!i&&o){var c=parseFloat(l.marginTop),h=parseFloat(l.marginLeft);d.top-=u-c,d.bottom-=u-c,d.left-=f-h,d.right-=f-h,d.marginTop=c,d.marginLeft=h}return(i&&!n?e.contains(s):e===s&&"BODY"!==s.nodeName)&&(d=rt(d,e)),d}function gt(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,i=mt(t,n),o=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),a=e?0:ot(n),s=e?0:ot(n,"left"),l={top:a-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:o,height:r};return ht(l)}function _t(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===K(t,"position"))return!0;var n=X(t);return!!n&&_t(n)}function vt(t){if(!t||!t.parentElement||tt())return document.documentElement;for(var e=t.parentElement;e&&"none"===K(e,"transform");)e=e.parentElement;return e||document.documentElement}function bt(t,e,n,i){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},a=o?vt(t):it(t,$(e));if("viewport"===i)r=gt(a,o);else{var s=void 0;"scrollParent"===i?"BODY"===(s=G(X(e))).nodeName&&(s=t.ownerDocument.documentElement):s="window"===i?t.ownerDocument.documentElement:i;var l=mt(s,a,o);if("HTML"!==s.nodeName||_t(a))r=l;else{var u=lt(t.ownerDocument),f=u.height,d=u.width;r.top+=l.top-l.marginTop,r.bottom=f+l.top,r.left+=l.left-l.marginLeft,r.right=d+l.left}}var c="number"==typeof(n=n||0);return r.left+=c?n:n.left||0,r.top+=c?n:n.top||0,r.right-=c?n:n.right||0,r.bottom-=c?n:n.bottom||0,r}function yt(t){return t.width*t.height}function Et(t,e,n,i,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=bt(n,i,r,o),s={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},l=Object.keys(s).map((function(t){return ct({key:t},s[t],{area:yt(s[t])})})).sort((function(t,e){return e.area-t.area})),u=l.filter((function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight})),f=u.length>0?u[0].key:l[0].key,d=t.split("-")[1];return f+(d?"-"+d:"")}function wt(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=i?vt(e):it(e,$(n));return mt(n,o,i)}function Tt(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),i=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+i,height:t.offsetHeight+n}}function Ct(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function St(t,e,n){n=n.split("-")[0];var i=Tt(t),o={width:i.width,height:i.height},r=-1!==["right","left"].indexOf(n),a=r?"top":"left",s=r?"left":"top",l=r?"height":"width",u=r?"width":"height";return o[a]=e[a]+e[l]/2-i[l]/2,o[s]=n===s?e[s]-i[u]:e[Ct(s)],o}function Nt(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function Dt(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex((function(t){return t.name===n}));var i=Nt(t,(function(t){return t.name===n}));return t.indexOf(i)}(t,0,n))).forEach((function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&z(n)&&(e.offsets.popper=ht(e.offsets.popper),e.offsets.reference=ht(e.offsets.reference),e=n(e,t))})),e}function At(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=wt(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=Et(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=St(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=Dt(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function kt(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e}))}function It(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length;i++){var o=e[i],r=o?""+o+n:t;if("undefined"!=typeof document.body.style[r])return r}return null}function Ot(){return this.state.isDestroyed=!0,kt(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[It("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function xt(t){var e=t.ownerDocument;return e?e.defaultView:window}function jt(t,e,n,i){var o="BODY"===t.nodeName,r=o?t.ownerDocument.defaultView:t;r.addEventListener(e,n,{passive:!0}),o||jt(G(r.parentNode),e,n,i),i.push(r)}function Lt(t,e,n,i){n.updateBound=i,xt(t).addEventListener("resize",n.updateBound,{passive:!0});var o=G(t);return jt(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function Pt(){this.state.eventsEnabled||(this.state=Lt(this.reference,this.options,this.state,this.scheduleUpdate))}function Ft(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,xt(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.updateBound)})),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function Rt(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function Ht(t,e){Object.keys(e).forEach((function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&Rt(e[n])&&(i="px"),t.style[n]=e[n]+i}))}var Mt=U&&/Firefox/i.test(navigator.userAgent);function qt(t,e,n){var i=Nt(t,(function(t){return t.name===e})),o=!!i&&t.some((function(t){return t.name===n&&t.enabled&&t.order<i.order}));if(!o){var r="`"+e+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")}return o}var Bt=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Qt=Bt.slice(3);function Wt(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Qt.indexOf(t),i=Qt.slice(n+1).concat(Qt.slice(0,n));return e?i.reverse():i}var Ut={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){var o=t.offsets,r=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",u=s?"width":"height",f={start:dt({},l,r[l]),end:dt({},l,r[l]+r[u]-a[u])};t.offsets.popper=ct({},a,f[i])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n,i=e.offset,o=t.placement,r=t.offsets,a=r.popper,s=r.reference,l=o.split("-")[0];return n=Rt(+i)?[+i,0]:function(t,e,n,i){var o=[0,0],r=-1!==["right","left"].indexOf(i),a=t.split(/(\+|\-)/).map((function(t){return t.trim()})),s=a.indexOf(Nt(a,(function(t){return-1!==t.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return u=u.map((function(t,i){var o=(1===i?!r:r)?"height":"width",a=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,a=!0,t):a?(t[t.length-1]+=e,a=!1,t):t.concat(e)}),[]).map((function(t){return function(t,e,n,i){var o=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+o[1],a=o[2];return r?0===a.indexOf("%")?ht("%p"===a?n:i)[e]/100*r:"vh"===a||"vw"===a?("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r:r:t}(t,o,e,n)}))})),u.forEach((function(t,e){t.forEach((function(n,i){Rt(n)&&(o[e]+=n*("-"===t[i-1]?-1:1))}))})),o}(i,a,s,l),"left"===l?(a.top+=n[0],a.left-=n[1]):"right"===l?(a.top+=n[0],a.left+=n[1]):"top"===l?(a.left+=n[0],a.top-=n[1]):"bottom"===l&&(a.left+=n[0],a.top+=n[1]),t.popper=a,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||et(t.instance.popper);t.instance.reference===n&&(n=et(n));var i=It("transform"),o=t.instance.popper.style,r=o.top,a=o.left,s=o[i];o.top="",o.left="",o[i]="";var l=bt(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);o.top=r,o.left=a,o[i]=s,e.boundaries=l;var u=e.priority,f=t.offsets.popper,d={primary:function(t){var n=f[t];return f[t]<l[t]&&!e.escapeWithReference&&(n=Math.max(f[t],l[t])),dt({},t,n)},secondary:function(t){var n="right"===t?"left":"top",i=f[n];return f[t]>l[t]&&!e.escapeWithReference&&(i=Math.min(f[n],l[t]-("right"===t?f.width:f.height))),dt({},n,i)}};return u.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";f=ct({},f,d[e](t))})),t.offsets.popper=f,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,i=e.reference,o=t.placement.split("-")[0],r=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",l=a?"left":"top",u=a?"width":"height";return n[s]<r(i[l])&&(t.offsets.popper[l]=r(i[l])-n[u]),n[l]>r(i[s])&&(t.offsets.popper[l]=r(i[s])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!qt(t.instance.modifiers,"arrow","keepTogether"))return t;var i=e.element;if("string"==typeof i){if(!(i=t.instance.popper.querySelector(i)))return t}else if(!t.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var o=t.placement.split("-")[0],r=t.offsets,a=r.popper,s=r.reference,l=-1!==["left","right"].indexOf(o),u=l?"height":"width",f=l?"Top":"Left",d=f.toLowerCase(),c=l?"left":"top",h=l?"bottom":"right",p=Tt(i)[u];s[h]-p<a[d]&&(t.offsets.popper[d]-=a[d]-(s[h]-p)),s[d]+p>a[h]&&(t.offsets.popper[d]+=s[d]+p-a[h]),t.offsets.popper=ht(t.offsets.popper);var m=s[d]+s[u]/2-p/2,g=K(t.instance.popper),_=parseFloat(g["margin"+f]),v=parseFloat(g["border"+f+"Width"]),b=m-t.offsets.popper[d]-_-v;return b=Math.max(Math.min(a[u]-p,b),0),t.arrowElement=i,t.offsets.arrow=(dt(n={},d,Math.round(b)),dt(n,c,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(kt(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=bt(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),i=t.placement.split("-")[0],o=Ct(i),r=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case"flip":a=[i,o];break;case"clockwise":a=Wt(i);break;case"counterclockwise":a=Wt(i,!0);break;default:a=e.behavior}return a.forEach((function(s,l){if(i!==s||a.length===l+1)return t;i=t.placement.split("-")[0],o=Ct(i);var u=t.offsets.popper,f=t.offsets.reference,d=Math.floor,c="left"===i&&d(u.right)>d(f.left)||"right"===i&&d(u.left)<d(f.right)||"top"===i&&d(u.bottom)>d(f.top)||"bottom"===i&&d(u.top)<d(f.bottom),h=d(u.left)<d(n.left),p=d(u.right)>d(n.right),m=d(u.top)<d(n.top),g=d(u.bottom)>d(n.bottom),_="left"===i&&h||"right"===i&&p||"top"===i&&m||"bottom"===i&&g,v=-1!==["top","bottom"].indexOf(i),b=!!e.flipVariations&&(v&&"start"===r&&h||v&&"end"===r&&p||!v&&"start"===r&&m||!v&&"end"===r&&g),y=!!e.flipVariationsByContent&&(v&&"start"===r&&p||v&&"end"===r&&h||!v&&"start"===r&&g||!v&&"end"===r&&m),E=b||y;(c||_||E)&&(t.flipped=!0,(c||_)&&(i=a[l+1]),E&&(r=function(t){return"end"===t?"start":"start"===t?"end":t}(r)),t.placement=i+(r?"-"+r:""),t.offsets.popper=ct({},t.offsets.popper,St(t.instance.popper,t.offsets.reference,t.placement)),t=Dt(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],i=t.offsets,o=i.popper,r=i.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=r[n]-(s?o[a?"width":"height"]:0),t.placement=Ct(e),t.offsets.popper=ht(o),t}},hide:{order:800,enabled:!0,fn:function(t){if(!qt(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=Nt(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n=e.x,i=e.y,o=t.offsets.popper,r=Nt(t.instance.modifiers,(function(t){return"applyStyle"===t.name})).gpuAcceleration;void 0!==r&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a,s,l=void 0!==r?r:e.gpuAcceleration,u=et(t.instance.popper),f=pt(u),d={position:o.position},c=function(t,e){var n=t.offsets,i=n.popper,o=n.reference,r=Math.round,a=Math.floor,s=function(t){return t},l=r(o.width),u=r(i.width),f=-1!==["left","right"].indexOf(t.placement),d=-1!==t.placement.indexOf("-"),c=e?f||d||l%2==u%2?r:a:s,h=e?r:s;return{left:c(l%2==1&&u%2==1&&!d&&e?i.left-1:i.left),top:h(i.top),bottom:h(i.bottom),right:c(i.right)}}(t,window.devicePixelRatio<2||!Mt),h="bottom"===n?"top":"bottom",p="right"===i?"left":"right",m=It("transform");if(s="bottom"===h?"HTML"===u.nodeName?-u.clientHeight+c.bottom:-f.height+c.bottom:c.top,a="right"===p?"HTML"===u.nodeName?-u.clientWidth+c.right:-f.width+c.right:c.left,l&&m)d[m]="translate3d("+a+"px, "+s+"px, 0)",d[h]=0,d[p]=0,d.willChange="transform";else{var g="bottom"===h?-1:1,_="right"===p?-1:1;d[h]=s*g,d[p]=a*_,d.willChange=h+", "+p}var v={"x-placement":t.placement};return t.attributes=ct({},v,t.attributes),t.styles=ct({},d,t.styles),t.arrowStyles=ct({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return Ht(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach((function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)})),t.arrowElement&&Object.keys(t.arrowStyles).length&&Ht(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,i,o){var r=wt(o,e,t,n.positionFixed),a=Et(n.placement,r,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",a),Ht(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},Vt=function(){function t(e,n){var i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ut(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=Y(this.update.bind(this)),this.options=ct({},t.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(ct({},t.Defaults.modifiers,o.modifiers)).forEach((function(e){i.options.modifiers[e]=ct({},t.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return ct({name:t},i.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&z(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)})),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}return ft(t,[{key:"update",value:function(){return At.call(this)}},{key:"destroy",value:function(){return Ot.call(this)}},{key:"enableEventListeners",value:function(){return Pt.call(this)}},{key:"disableEventListeners",value:function(){return Ft.call(this)}}]),t}();Vt.Utils=("undefined"!=typeof window?window:global).PopperUtils,Vt.placements=Bt,Vt.Defaults=Ut;var Yt=Vt,zt="dropdown",Kt="bs.dropdown",Xt=i.default.fn[zt],Gt=new RegExp("38|40|27"),$t="disabled",Jt="show",Zt="dropdown-menu-right",te="hide.bs.dropdown",ee="hidden.bs.dropdown",ne="click.bs.dropdown.data-api",ie="keydown.bs.dropdown.data-api",oe='[data-toggle="dropdown"]',re=".dropdown-menu",ae={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},se={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},le=function(){function t(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var e=t.prototype;return e.toggle=function(){if(!this._element.disabled&&!i.default(this._element).hasClass($t)){var e=i.default(this._menu).hasClass(Jt);t._clearMenus(),e||this.show(!0)}},e.show=function(e){if(void 0===e&&(e=!1),!(this._element.disabled||i.default(this._element).hasClass($t)||i.default(this._menu).hasClass(Jt))){var n={relatedTarget:this._element},o=i.default.Event("show.bs.dropdown",n),r=t._getParentFromElement(this._element);if(i.default(r).trigger(o),!o.isDefaultPrevented()){if(!this._inNavbar&&e){if("undefined"==typeof Yt)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");var a=this._element;"parent"===this._config.reference?a=r:u.isElement(this._config.reference)&&(a=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(a=this._config.reference[0])),"scrollParent"!==this._config.boundary&&i.default(r).addClass("position-static"),this._popper=new Yt(a,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===i.default(r).closest(".navbar-nav").length&&i.default(document.body).children().on("mouseover",null,i.default.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),i.default(this._menu).toggleClass(Jt),i.default(r).toggleClass(Jt).trigger(i.default.Event("shown.bs.dropdown",n))}}},e.hide=function(){if(!this._element.disabled&&!i.default(this._element).hasClass($t)&&i.default(this._menu).hasClass(Jt)){var e={relatedTarget:this._element},n=i.default.Event(te,e),o=t._getParentFromElement(this._element);i.default(o).trigger(n),n.isDefaultPrevented()||(this._popper&&this._popper.destroy(),i.default(this._menu).toggleClass(Jt),i.default(o).toggleClass(Jt).trigger(i.default.Event(ee,e)))}},e.dispose=function(){i.default.removeData(this._element,Kt),i.default(this._element).off(".bs.dropdown"),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},e.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},e._addEventListeners=function(){var t=this;i.default(this._element).on("click.bs.dropdown",(function(e){e.preventDefault(),e.stopPropagation(),t.toggle()}))},e._getConfig=function(t){return t=a({},this.constructor.Default,i.default(this._element).data(),t),u.typeCheckConfig(zt,t,this.constructor.DefaultType),t},e._getMenuElement=function(){if(!this._menu){var e=t._getParentFromElement(this._element);e&&(this._menu=e.querySelector(re))}return this._menu},e._getPlacement=function(){var t=i.default(this._element.parentNode),e="bottom-start";return t.hasClass("dropup")?e=i.default(this._menu).hasClass(Zt)?"top-end":"top-start":t.hasClass("dropright")?e="right-start":t.hasClass("dropleft")?e="left-start":i.default(this._menu).hasClass(Zt)&&(e="bottom-end"),e},e._detectNavbar=function(){return i.default(this._element).closest(".navbar").length>0},e._getOffset=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=a({},e.offsets,t._config.offset(e.offsets,t._element)),e}:e.offset=this._config.offset,e},e._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),a({},t,this._config.popperConfig)},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this).data(Kt);if(n||(n=new t(this,"object"==typeof e?e:null),i.default(this).data(Kt,n)),"string"==typeof e){if("undefined"==typeof n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},t._clearMenus=function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var n=[].slice.call(document.querySelectorAll(oe)),o=0,r=n.length;o<r;o++){var a=t._getParentFromElement(n[o]),s=i.default(n[o]).data(Kt),l={relatedTarget:n[o]};if(e&&"click"===e.type&&(l.clickEvent=e),s){var u=s._menu;if(i.default(a).hasClass(Jt)&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&9===e.which)&&i.default.contains(a,e.target))){var f=i.default.Event(te,l);i.default(a).trigger(f),f.isDefaultPrevented()||("ontouchstart"in document.documentElement&&i.default(document.body).children().off("mouseover",null,i.default.noop),n[o].setAttribute("aria-expanded","false"),s._popper&&s._popper.destroy(),i.default(u).removeClass(Jt),i.default(a).removeClass(Jt).trigger(i.default.Event(ee,l)))}}}},t._getParentFromElement=function(t){var e,n=u.getSelectorFromElement(t);return n&&(e=document.querySelector(n)),e||t.parentNode},t._dataApiKeydownHandler=function(e){if(!(/input|textarea/i.test(e.target.tagName)?32===e.which||27!==e.which&&(40!==e.which&&38!==e.which||i.default(e.target).closest(re).length):!Gt.test(e.which))&&!this.disabled&&!i.default(this).hasClass($t)){var n=t._getParentFromElement(this),o=i.default(n).hasClass(Jt);if(o||27!==e.which){if(e.preventDefault(),e.stopPropagation(),!o||27===e.which||32===e.which)return 27===e.which&&i.default(n.querySelector(oe)).trigger("focus"),void i.default(this).trigger("click");var r=[].slice.call(n.querySelectorAll(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)")).filter((function(t){return i.default(t).is(":visible")}));if(0!==r.length){var a=r.indexOf(e.target);38===e.which&&a>0&&a--,40===e.which&&a<r.length-1&&a++,a<0&&(a=0),r[a].focus()}}}},r(t,null,[{key:"VERSION",get:function(){return"4.6.1"}},{key:"Default",get:function(){return ae}},{key:"DefaultType",get:function(){return se}}]),t}();i.default(document).on(ie,oe,le._dataApiKeydownHandler).on(ie,re,le._dataApiKeydownHandler).on(ne+" keyup.bs.dropdown.data-api",le._clearMenus).on(ne,oe,(function(t){t.preventDefault(),t.stopPropagation(),le._jQueryInterface.call(i.default(this),"toggle")})).on(ne,".dropdown form",(function(t){t.stopPropagation()})),i.default.fn[zt]=le._jQueryInterface,i.default.fn[zt].Constructor=le,i.default.fn[zt].noConflict=function(){return i.default.fn[zt]=Xt,le._jQueryInterface};var ue="bs.modal",fe=i.default.fn.modal,de="modal-open",ce="fade",he="show",pe="modal-static",me="hidden.bs.modal",ge="show.bs.modal",_e="focusin.bs.modal",ve="resize.bs.modal",be="click.dismiss.bs.modal",ye="keydown.dismiss.bs.modal",Ee="mousedown.dismiss.bs.modal",we=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Te={backdrop:!0,keyboard:!0,focus:!0,show:!0},Ce={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},Se=function(){function t(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(".modal-dialog"),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var e=t.prototype;return e.toggle=function(t){return this._isShown?this.hide():this.show(t)},e.show=function(t){var e=this;if(!this._isShown&&!this._isTransitioning){var n=i.default.Event(ge,{relatedTarget:t});i.default(this._element).trigger(n),n.isDefaultPrevented()||(this._isShown=!0,i.default(this._element).hasClass(ce)&&(this._isTransitioning=!0),this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),i.default(this._element).on(be,'[data-dismiss="modal"]',(function(t){return e.hide(t)})),i.default(this._dialog).on(Ee,(function(){i.default(e._element).one("mouseup.dismiss.bs.modal",(function(t){i.default(t.target).is(e._element)&&(e._ignoreBackdropClick=!0)}))})),this._showBackdrop((function(){return e._showElement(t)})))}},e.hide=function(t){var e=this;if(t&&t.preventDefault(),this._isShown&&!this._isTransitioning){var n=i.default.Event("hide.bs.modal");if(i.default(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var o=i.default(this._element).hasClass(ce);if(o&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),i.default(document).off(_e),i.default(this._element).removeClass(he),i.default(this._element).off(be),i.default(this._dialog).off(Ee),o){var r=u.getTransitionDurationFromElement(this._element);i.default(this._element).one(u.TRANSITION_END,(function(t){return e._hideModal(t)})).emulateTransitionEnd(r)}else this._hideModal()}}},e.dispose=function(){[window,this._element,this._dialog].forEach((function(t){return i.default(t).off(".bs.modal")})),i.default(document).off(_e),i.default.removeData(this._element,ue),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},e.handleUpdate=function(){this._adjustDialog()},e._getConfig=function(t){return t=a({},Te,t),u.typeCheckConfig("modal",t,Ce),t},e._triggerBackdropTransition=function(){var t=this,e=i.default.Event("hidePrevented.bs.modal");if(i.default(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._element.scrollHeight>document.documentElement.clientHeight;n||(this._element.style.overflowY="hidden"),this._element.classList.add(pe);var o=u.getTransitionDurationFromElement(this._dialog);i.default(this._element).off(u.TRANSITION_END),i.default(this._element).one(u.TRANSITION_END,(function(){t._element.classList.remove(pe),n||i.default(t._element).one(u.TRANSITION_END,(function(){t._element.style.overflowY=""})).emulateTransitionEnd(t._element,o)})).emulateTransitionEnd(o),this._element.focus()}},e._showElement=function(t){var e=this,n=i.default(this._element).hasClass(ce),o=this._dialog?this._dialog.querySelector(".modal-body"):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),i.default(this._dialog).hasClass("modal-dialog-scrollable")&&o?o.scrollTop=0:this._element.scrollTop=0,n&&u.reflow(this._element),i.default(this._element).addClass(he),this._config.focus&&this._enforceFocus();var r=i.default.Event("shown.bs.modal",{relatedTarget:t}),a=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,i.default(e._element).trigger(r)};if(n){var s=u.getTransitionDurationFromElement(this._dialog);i.default(this._dialog).one(u.TRANSITION_END,a).emulateTransitionEnd(s)}else a()},e._enforceFocus=function(){var t=this;i.default(document).off(_e).on(_e,(function(e){document!==e.target&&t._element!==e.target&&0===i.default(t._element).has(e.target).length&&t._element.focus()}))},e._setEscapeEvent=function(){var t=this;this._isShown?i.default(this._element).on(ye,(function(e){t._config.keyboard&&27===e.which?(e.preventDefault(),t.hide()):t._config.keyboard||27!==e.which||t._triggerBackdropTransition()})):this._isShown||i.default(this._element).off(ye)},e._setResizeEvent=function(){var t=this;this._isShown?i.default(window).on(ve,(function(e){return t.handleUpdate(e)})):i.default(window).off(ve)},e._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop((function(){i.default(document.body).removeClass(de),t._resetAdjustments(),t._resetScrollbar(),i.default(t._element).trigger(me)}))},e._removeBackdrop=function(){this._backdrop&&(i.default(this._backdrop).remove(),this._backdrop=null)},e._showBackdrop=function(t){var e=this,n=i.default(this._element).hasClass(ce)?ce:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",n&&this._backdrop.classList.add(n),i.default(this._backdrop).appendTo(document.body),i.default(this._element).on(be,(function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===e._config.backdrop?e._triggerBackdropTransition():e.hide())})),n&&u.reflow(this._backdrop),i.default(this._backdrop).addClass(he),!t)return;if(!n)return void t();var o=u.getTransitionDurationFromElement(this._backdrop);i.default(this._backdrop).one(u.TRANSITION_END,t).emulateTransitionEnd(o)}else if(!this._isShown&&this._backdrop){i.default(this._backdrop).removeClass(he);var r=function(){e._removeBackdrop(),t&&t()};if(i.default(this._element).hasClass(ce)){var a=u.getTransitionDurationFromElement(this._backdrop);i.default(this._backdrop).one(u.TRANSITION_END,r).emulateTransitionEnd(a)}else r()}else t&&t()},e._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},e._setScrollbar=function(){var t=this;if(this._isBodyOverflowing){var e=[].slice.call(document.querySelectorAll(we)),n=[].slice.call(document.querySelectorAll(".sticky-top"));i.default(e).each((function(e,n){var o=n.style.paddingRight,r=i.default(n).css("padding-right");i.default(n).data("padding-right",o).css("padding-right",parseFloat(r)+t._scrollbarWidth+"px")})),i.default(n).each((function(e,n){var o=n.style.marginRight,r=i.default(n).css("margin-right");i.default(n).data("margin-right",o).css("margin-right",parseFloat(r)-t._scrollbarWidth+"px")}));var o=document.body.style.paddingRight,r=i.default(document.body).css("padding-right");i.default(document.body).data("padding-right",o).css("padding-right",parseFloat(r)+this._scrollbarWidth+"px")}i.default(document.body).addClass(de)},e._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(we));i.default(t).each((function(t,e){var n=i.default(e).data("padding-right");i.default(e).removeData("padding-right"),e.style.paddingRight=n||""}));var e=[].slice.call(document.querySelectorAll(".sticky-top"));i.default(e).each((function(t,e){var n=i.default(e).data("margin-right");"undefined"!=typeof n&&i.default(e).css("margin-right",n).removeData("margin-right")}));var n=i.default(document.body).data("padding-right");i.default(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},e._getScrollbarWidth=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},t._jQueryInterface=function(e,n){return this.each((function(){var o=i.default(this).data(ue),r=a({},Te,i.default(this).data(),"object"==typeof e&&e?e:{});if(o||(o=new t(this,r),i.default(this).data(ue,o)),"string"==typeof e){if("undefined"==typeof o[e])throw new TypeError('No method named "'+e+'"');o[e](n)}else r.show&&o.show(n)}))},r(t,null,[{key:"VERSION",get:function(){return"4.6.1"}},{key:"Default",get:function(){return Te}}]),t}();i.default(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',(function(t){var e,n=this,o=u.getSelectorFromElement(this);o&&(e=document.querySelector(o));var r=i.default(e).data(ue)?"toggle":a({},i.default(e).data(),i.default(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var s=i.default(e).one(ge,(function(t){t.isDefaultPrevented()||s.one(me,(function(){i.default(n).is(":visible")&&n.focus()}))}));Se._jQueryInterface.call(i.default(e),r,this)})),i.default.fn.modal=Se._jQueryInterface,i.default.fn.modal.Constructor=Se,i.default.fn.modal.noConflict=function(){return i.default.fn.modal=fe,Se._jQueryInterface};var Ne=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],De=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,Ae=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function ke(t,e,n){if(0===t.length)return t;if(n&&"function"==typeof n)return n(t);for(var i=(new window.DOMParser).parseFromString(t,"text/html"),o=Object.keys(e),r=[].slice.call(i.body.querySelectorAll("*")),a=function(t,n){var i=r[t],a=i.nodeName.toLowerCase();if(-1===o.indexOf(i.nodeName.toLowerCase()))return i.parentNode.removeChild(i),"continue";var s=[].slice.call(i.attributes),l=[].concat(e["*"]||[],e[a]||[]);s.forEach((function(t){(function(t,e){var n=t.nodeName.toLowerCase();if(-1!==e.indexOf(n))return-1===Ne.indexOf(n)||Boolean(De.test(t.nodeValue)||Ae.test(t.nodeValue));for(var i=e.filter((function(t){return t instanceof RegExp})),o=0,r=i.length;o<r;o++)if(i[o].test(n))return!0;return!1})(t,l)||i.removeAttribute(t.nodeName)}))},s=0,l=r.length;s<l;s++)a(s);return i.body.innerHTML}var Ie="tooltip",Oe="bs.tooltip",xe=i.default.fn.tooltip,je=new RegExp("(^|\\s)bs-tooltip\\S+","g"),Le=["sanitize","whiteList","sanitizeFn"],Pe="fade",Fe="show",Re="show",He="out",Me="hover",qe="focus",Be={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},Qe={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",customClass:"",sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},popperConfig:null},We={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},Ue={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},Ve=function(){function t(t,e){if("undefined"==typeof Yt)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var e=t.prototype;return e.enable=function(){this._isEnabled=!0},e.disable=function(){this._isEnabled=!1},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled},e.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=i.default(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),i.default(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(i.default(this.getTipElement()).hasClass(Fe))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function(){clearTimeout(this._timeout),i.default.removeData(this.element,this.constructor.DATA_KEY),i.default(this.element).off(this.constructor.EVENT_KEY),i.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&i.default(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},e.show=function(){var t=this;if("none"===i.default(this.element).css("display"))throw new Error("Please use show on visible elements");var e=i.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){i.default(this.element).trigger(e);var n=u.findShadowRoot(this.element),o=i.default.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!o)return;var r=this.getTipElement(),a=u.getUID(this.constructor.NAME);r.setAttribute("id",a),this.element.setAttribute("aria-describedby",a),this.setContent(),this.config.animation&&i.default(r).addClass(Pe);var s="function"==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement,l=this._getAttachment(s);this.addAttachmentClass(l);var f=this._getContainer();i.default(r).data(this.constructor.DATA_KEY,this),i.default.contains(this.element.ownerDocument.documentElement,this.tip)||i.default(r).appendTo(f),i.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new Yt(this.element,r,this._getPopperConfig(l)),i.default(r).addClass(Fe),i.default(r).addClass(this.config.customClass),"ontouchstart"in document.documentElement&&i.default(document.body).children().on("mouseover",null,i.default.noop);var d=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,i.default(t.element).trigger(t.constructor.Event.SHOWN),e===He&&t._leave(null,t)};if(i.default(this.tip).hasClass(Pe)){var c=u.getTransitionDurationFromElement(this.tip);i.default(this.tip).one(u.TRANSITION_END,d).emulateTransitionEnd(c)}else d()}},e.hide=function(t){var e=this,n=this.getTipElement(),o=i.default.Event(this.constructor.Event.HIDE),r=function(){e._hoverState!==Re&&n.parentNode&&n.parentNode.removeChild(n),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),i.default(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(i.default(this.element).trigger(o),!o.isDefaultPrevented()){if(i.default(n).removeClass(Fe),"ontouchstart"in document.documentElement&&i.default(document.body).children().off("mouseover",null,i.default.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,i.default(this.tip).hasClass(Pe)){var a=u.getTransitionDurationFromElement(n);i.default(n).one(u.TRANSITION_END,r).emulateTransitionEnd(a)}else r();this._hoverState=""}},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return Boolean(this.getTitle())},e.addAttachmentClass=function(t){i.default(this.getTipElement()).addClass("bs-tooltip-"+t)},e.getTipElement=function(){return this.tip=this.tip||i.default(this.config.template)[0],this.tip},e.setContent=function(){var t=this.getTipElement();this.setElementContent(i.default(t.querySelectorAll(".tooltip-inner")),this.getTitle()),i.default(t).removeClass("fade show")},e.setElementContent=function(t,e){"object"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=ke(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?i.default(e).parent().is(t)||t.empty().append(e):t.text(i.default(e).text())},e.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},e._getPopperConfig=function(t){var e=this;return a({},{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}},this.config.popperConfig)},e._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=a({},e.offsets,t.config.offset(e.offsets,t.element)),e}:e.offset=this.config.offset,e},e._getContainer=function(){return!1===this.config.container?document.body:u.isElement(this.config.container)?i.default(this.config.container):i.default(document).find(this.config.container)},e._getAttachment=function(t){return Be[t.toUpperCase()]},e._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach((function(e){if("click"===e)i.default(t.element).on(t.constructor.Event.CLICK,t.config.selector,(function(e){return t.toggle(e)}));else if("manual"!==e){var n=e===Me?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,o=e===Me?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;i.default(t.element).on(n,t.config.selector,(function(e){return t._enter(e)})).on(o,t.config.selector,(function(e){return t._leave(e)}))}})),this._hideModalHandler=function(){t.element&&t.hide()},i.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=a({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},e._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||i.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),i.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?qe:Me]=!0),i.default(e.getTipElement()).hasClass(Fe)||e._hoverState===Re?e._hoverState=Re:(clearTimeout(e._timeout),e._hoverState=Re,e.config.delay&&e.config.delay.show?e._timeout=setTimeout((function(){e._hoverState===Re&&e.show()}),e.config.delay.show):e.show())},e._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||i.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),i.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?qe:Me]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=He,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout((function(){e._hoverState===He&&e.hide()}),e.config.delay.hide):e.hide())},e._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},e._getConfig=function(t){var e=i.default(this.element).data();return Object.keys(e).forEach((function(t){-1!==Le.indexOf(t)&&delete e[t]})),"number"==typeof(t=a({},this.constructor.Default,e,"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),u.typeCheckConfig(Ie,t,this.constructor.DefaultType),t.sanitize&&(t.template=ke(t.template,t.whiteList,t.sanitizeFn)),t},e._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},e._cleanTipClass=function(){var t=i.default(this.getTipElement()),e=t.attr("class").match(je);null!==e&&e.length&&t.removeClass(e.join(""))},e._handlePopperPlacementChange=function(t){this.tip=t.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},e._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(i.default(t).removeClass(Pe),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this),o=n.data(Oe),r="object"==typeof e&&e;if((o||!/dispose|hide/.test(e))&&(o||(o=new t(this,r),n.data(Oe,o)),"string"==typeof e)){if("undefined"==typeof o[e])throw new TypeError('No method named "'+e+'"');o[e]()}}))},r(t,null,[{key:"VERSION",get:function(){return"4.6.1"}},{key:"Default",get:function(){return Qe}},{key:"NAME",get:function(){return Ie}},{key:"DATA_KEY",get:function(){return Oe}},{key:"Event",get:function(){return Ue}},{key:"EVENT_KEY",get:function(){return".bs.tooltip"}},{key:"DefaultType",get:function(){return We}}]),t}();i.default.fn.tooltip=Ve._jQueryInterface,i.default.fn.tooltip.Constructor=Ve,i.default.fn.tooltip.noConflict=function(){return i.default.fn.tooltip=xe,Ve._jQueryInterface};var Ye="bs.popover",ze=i.default.fn.popover,Ke=new RegExp("(^|\\s)bs-popover\\S+","g"),Xe=a({},Ve.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),Ge=a({},Ve.DefaultType,{content:"(string|element|function)"}),$e={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},Je=function(t){var e,n;function o(){return t.apply(this,arguments)||this}n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,s(e,n);var a=o.prototype;return a.isWithContent=function(){return this.getTitle()||this._getContent()},a.addAttachmentClass=function(t){i.default(this.getTipElement()).addClass("bs-popover-"+t)},a.getTipElement=function(){return this.tip=this.tip||i.default(this.config.template)[0],this.tip},a.setContent=function(){var t=i.default(this.getTipElement());this.setElementContent(t.find(".popover-header"),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(".popover-body"),e),t.removeClass("fade show")},a._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},a._cleanTipClass=function(){var t=i.default(this.getTipElement()),e=t.attr("class").match(Ke);null!==e&&e.length>0&&t.removeClass(e.join(""))},o._jQueryInterface=function(t){return this.each((function(){var e=i.default(this).data(Ye),n="object"==typeof t?t:null;if((e||!/dispose|hide/.test(t))&&(e||(e=new o(this,n),i.default(this).data(Ye,e)),"string"==typeof t)){if("undefined"==typeof e[t])throw new TypeError('No method named "'+t+'"');e[t]()}}))},r(o,null,[{key:"VERSION",get:function(){return"4.6.1"}},{key:"Default",get:function(){return Xe}},{key:"NAME",get:function(){return"popover"}},{key:"DATA_KEY",get:function(){return Ye}},{key:"Event",get:function(){return $e}},{key:"EVENT_KEY",get:function(){return".bs.popover"}},{key:"DefaultType",get:function(){return Ge}}]),o}(Ve);i.default.fn.popover=Je._jQueryInterface,i.default.fn.popover.Constructor=Je,i.default.fn.popover.noConflict=function(){return i.default.fn.popover=ze,Je._jQueryInterface};var Ze="scrollspy",tn="bs.scrollspy",en=i.default.fn[Ze],nn="active",on="position",rn=".nav, .list-group",an={offset:10,method:"auto",target:""},sn={offset:"number",method:"string",target:"(string|element)"},ln=function(){function t(t,e){var n=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" .nav-link,"+this._config.target+" .list-group-item,"+this._config.target+" .dropdown-item",this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,i.default(this._scrollElement).on("scroll.bs.scrollspy",(function(t){return n._process(t)})),this.refresh(),this._process()}var e=t.prototype;return e.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?"offset":on,n="auto"===this._config.method?e:this._config.method,o=n===on?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(t){var e,r=u.getSelectorFromElement(t);if(r&&(e=document.querySelector(r)),e){var a=e.getBoundingClientRect();if(a.width||a.height)return[i.default(e)[n]().top+o,r]}return null})).filter((function(t){return t})).sort((function(t,e){return t[0]-e[0]})).forEach((function(e){t._offsets.push(e[0]),t._targets.push(e[1])}))},e.dispose=function(){i.default.removeData(this._element,tn),i.default(this._scrollElement).off(".bs.scrollspy"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},e._getConfig=function(t){if("string"!=typeof(t=a({},an,"object"==typeof t&&t?t:{})).target&&u.isElement(t.target)){var e=i.default(t.target).attr("id");e||(e=u.getUID(Ze),i.default(t.target).attr("id",e)),t.target="#"+e}return u.typeCheckConfig(Ze,t,sn),t},e._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},e._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},e._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},e._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;)this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&("undefined"==typeof this._offsets[o+1]||t<this._offsets[o+1])&&this._activate(this._targets[o])}},e._activate=function(t){this._activeTarget=t,this._clear();var e=this._selector.split(",").map((function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'})),n=i.default([].slice.call(document.querySelectorAll(e.join(","))));n.hasClass("dropdown-item")?(n.closest(".dropdown").find(".dropdown-toggle").addClass(nn),n.addClass(nn)):(n.addClass(nn),n.parents(rn).prev(".nav-link, .list-group-item").addClass(nn),n.parents(rn).prev(".nav-item").children(".nav-link").addClass(nn)),i.default(this._scrollElement).trigger("activate.bs.scrollspy",{relatedTarget:t})},e._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter((function(t){return t.classList.contains(nn)})).forEach((function(t){return t.classList.remove(nn)}))},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this).data(tn);if(n||(n=new t(this,"object"==typeof e&&e),i.default(this).data(tn,n)),"string"==typeof e){if("undefined"==typeof n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},r(t,null,[{key:"VERSION",get:function(){return"4.6.1"}},{key:"Default",get:function(){return an}}]),t}();i.default(window).on("load.bs.scrollspy.data-api",(function(){for(var t=[].slice.call(document.querySelectorAll('[data-spy="scroll"]')),e=t.length;e--;){var n=i.default(t[e]);ln._jQueryInterface.call(n,n.data())}})),i.default.fn[Ze]=ln._jQueryInterface,i.default.fn[Ze].Constructor=ln,i.default.fn[Ze].noConflict=function(){return i.default.fn[Ze]=en,ln._jQueryInterface};var un="bs.tab",fn=i.default.fn.tab,dn="active",cn="fade",hn="show",pn=".active",mn="> li > .active",gn=function(){function t(t){this._element=t}var e=t.prototype;return e.show=function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&i.default(this._element).hasClass(dn)||i.default(this._element).hasClass("disabled"))){var e,n,o=i.default(this._element).closest(".nav, .list-group")[0],r=u.getSelectorFromElement(this._element);if(o){var a="UL"===o.nodeName||"OL"===o.nodeName?mn:pn;n=(n=i.default.makeArray(i.default(o).find(a)))[n.length-1]}var s=i.default.Event("hide.bs.tab",{relatedTarget:this._element}),l=i.default.Event("show.bs.tab",{relatedTarget:n});if(n&&i.default(n).trigger(s),i.default(this._element).trigger(l),!l.isDefaultPrevented()&&!s.isDefaultPrevented()){r&&(e=document.querySelector(r)),this._activate(this._element,o);var f=function(){var e=i.default.Event("hidden.bs.tab",{relatedTarget:t._element}),o=i.default.Event("shown.bs.tab",{relatedTarget:n});i.default(n).trigger(e),i.default(t._element).trigger(o)};e?this._activate(e,e.parentNode,f):f()}}},e.dispose=function(){i.default.removeData(this._element,un),this._element=null},e._activate=function(t,e,n){var o=this,r=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?i.default(e).children(pn):i.default(e).find(mn))[0],a=n&&r&&i.default(r).hasClass(cn),s=function(){return o._transitionComplete(t,r,n)};if(r&&a){var l=u.getTransitionDurationFromElement(r);i.default(r).removeClass(hn).one(u.TRANSITION_END,s).emulateTransitionEnd(l)}else s()},e._transitionComplete=function(t,e,n){if(e){i.default(e).removeClass(dn);var o=i.default(e.parentNode).find("> .dropdown-menu .active")[0];o&&i.default(o).removeClass(dn),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}i.default(t).addClass(dn),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),u.reflow(t),t.classList.contains(cn)&&t.classList.add(hn);var r=t.parentNode;if(r&&"LI"===r.nodeName&&(r=r.parentNode),r&&i.default(r).hasClass("dropdown-menu")){var a=i.default(t).closest(".dropdown")[0];if(a){var s=[].slice.call(a.querySelectorAll(".dropdown-toggle"));i.default(s).addClass(dn)}t.setAttribute("aria-expanded",!0)}n&&n()},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this),o=n.data(un);if(o||(o=new t(this),n.data(un,o)),"string"==typeof e){if("undefined"==typeof o[e])throw new TypeError('No method named "'+e+'"');o[e]()}}))},r(t,null,[{key:"VERSION",get:function(){return"4.6.1"}}]),t}();i.default(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',(function(t){t.preventDefault(),gn._jQueryInterface.call(i.default(this),"show")})),i.default.fn.tab=gn._jQueryInterface,i.default.fn.tab.Constructor=gn,i.default.fn.tab.noConflict=function(){return i.default.fn.tab=fn,gn._jQueryInterface};var _n="bs.toast",vn=i.default.fn.toast,bn="hide",yn="show",En="showing",wn="click.dismiss.bs.toast",Tn={animation:!0,autohide:!0,delay:500},Cn={animation:"boolean",autohide:"boolean",delay:"number"},Sn=function(){function t(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var e=t.prototype;return e.show=function(){var t=this,e=i.default.Event("show.bs.toast");if(i.default(this._element).trigger(e),!e.isDefaultPrevented()){this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");var n=function(){t._element.classList.remove(En),t._element.classList.add(yn),i.default(t._element).trigger("shown.bs.toast"),t._config.autohide&&(t._timeout=setTimeout((function(){t.hide()}),t._config.delay))};if(this._element.classList.remove(bn),u.reflow(this._element),this._element.classList.add(En),this._config.animation){var o=u.getTransitionDurationFromElement(this._element);i.default(this._element).one(u.TRANSITION_END,n).emulateTransitionEnd(o)}else n()}},e.hide=function(){if(this._element.classList.contains(yn)){var t=i.default.Event("hide.bs.toast");i.default(this._element).trigger(t),t.isDefaultPrevented()||this._close()}},e.dispose=function(){this._clearTimeout(),this._element.classList.contains(yn)&&this._element.classList.remove(yn),i.default(this._element).off(wn),i.default.removeData(this._element,_n),this._element=null,this._config=null},e._getConfig=function(t){return t=a({},Tn,i.default(this._element).data(),"object"==typeof t&&t?t:{}),u.typeCheckConfig("toast",t,this.constructor.DefaultType),t},e._setListeners=function(){var t=this;i.default(this._element).on(wn,'[data-dismiss="toast"]',(function(){return t.hide()}))},e._close=function(){var t=this,e=function(){t._element.classList.add(bn),i.default(t._element).trigger("hidden.bs.toast")};if(this._element.classList.remove(yn),this._config.animation){var n=u.getTransitionDurationFromElement(this._element);i.default(this._element).one(u.TRANSITION_END,e).emulateTransitionEnd(n)}else e()},e._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this),o=n.data(_n);if(o||(o=new t(this,"object"==typeof e&&e),n.data(_n,o)),"string"==typeof e){if("undefined"==typeof o[e])throw new TypeError('No method named "'+e+'"');o[e](this)}}))},r(t,null,[{key:"VERSION",get:function(){return"4.6.1"}},{key:"DefaultType",get:function(){return Cn}},{key:"Default",get:function(){return Tn}}]),t}();i.default.fn.toast=Sn._jQueryInterface,i.default.fn.toast.Constructor=Sn,i.default.fn.toast.noConflict=function(){return i.default.fn.toast=vn,Sn._jQueryInterface},t.Alert=c,t.Button=b,t.Carousel=O,t.Collapse=W,t.Dropdown=le,t.Modal=Se,t.Popover=Je,t.Scrollspy=ln,t.Tab=gn,t.Toast=Sn,t.Tooltip=Ve,t.Util=u,Object.defineProperty(t,"__esModule",{value:!0})}));
|
@@ -0,0 +1,139 @@
|
|
1
|
+
// dompurify@3.2.3 downloaded from https://ga.jspm.io/npm:dompurify@3.2.3/dist/purify.es.mjs
|
2
|
+
|
3
|
+
/*! @license DOMPurify 3.2.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.3/LICENSE */
|
4
|
+
const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:o,getOwnPropertyDescriptor:a}=Object;let{freeze:r,seal:i,create:l}=Object;let{apply:c,construct:s}=typeof Reflect!=="undefined"&&Reflect;r||(r=function freeze(e){return e});i||(i=function seal(e){return e});c||(c=function apply(e,t,n){return e.apply(t,n)});s||(s=function construct(e,t){return new e(...t)});const u=unapply(Array.prototype.forEach);const d=unapply(Array.prototype.pop);const f=unapply(Array.prototype.push);const m=unapply(String.prototype.toLowerCase);const p=unapply(String.prototype.toString);const h=unapply(String.prototype.match);const T=unapply(String.prototype.replace);const g=unapply(String.prototype.indexOf);const y=unapply(String.prototype.trim);const _=unapply(Object.prototype.hasOwnProperty);const S=unapply(RegExp.prototype.test);const E=unconstruct(TypeError);
|
5
|
+
/**
|
6
|
+
* Creates a new function that calls the given function with a specified thisArg and arguments.
|
7
|
+
*
|
8
|
+
* @param func - The function to be wrapped and called.
|
9
|
+
* @returns A new function that calls the given function with a specified thisArg and arguments.
|
10
|
+
*/function unapply(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];return c(e,t,o)}}
|
11
|
+
/**
|
12
|
+
* Creates a new function that constructs an instance of the given constructor function with the provided arguments.
|
13
|
+
*
|
14
|
+
* @param func - The constructor function to be wrapped and called.
|
15
|
+
* @returns A new function that constructs an instance of the given constructor function with the provided arguments.
|
16
|
+
*/function unconstruct(e){return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return s(e,n)}}
|
17
|
+
/**
|
18
|
+
* Add properties to a lookup table
|
19
|
+
*
|
20
|
+
* @param set - The set to which elements will be added.
|
21
|
+
* @param array - The array containing elements to be added to the set.
|
22
|
+
* @param transformCaseFunc - An optional function to transform the case of each element before adding to the set.
|
23
|
+
* @returns The modified set with added elements.
|
24
|
+
*/function addToSet(e,o){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:m;t&&t(e,null);let r=o.length;while(r--){let t=o[r];if(typeof t==="string"){const e=a(t);if(e!==t){n(o)||(o[r]=e);t=e}}e[t]=true}return e}
|
25
|
+
/**
|
26
|
+
* Clean up an array to harden against CSPP
|
27
|
+
*
|
28
|
+
* @param array - The array to be cleaned.
|
29
|
+
* @returns The cleaned version of the array
|
30
|
+
*/function cleanArray(e){for(let t=0;t<e.length;t++){const n=_(e,t);n||(e[t]=null)}return e}
|
31
|
+
/**
|
32
|
+
* Shallow clone an object
|
33
|
+
*
|
34
|
+
* @param object - The object to be cloned.
|
35
|
+
* @returns A new object that copies the original.
|
36
|
+
*/function clone(t){const n=l(null);for(const[o,a]of e(t)){const e=_(t,o);e&&(Array.isArray(a)?n[o]=cleanArray(a):a&&typeof a==="object"&&a.constructor===Object?n[o]=clone(a):n[o]=a)}return n}
|
37
|
+
/**
|
38
|
+
* This method automatically checks if the prop is function or getter and behaves accordingly.
|
39
|
+
*
|
40
|
+
* @param object - The object to look up the getter function in its prototype chain.
|
41
|
+
* @param prop - The property name for which to find the getter function.
|
42
|
+
* @returns The getter function found in the prototype chain or a fallback function.
|
43
|
+
*/function lookupGetter(e,t){while(e!==null){const n=a(e,t);if(n){if(n.get)return unapply(n.get);if(typeof n.value==="function")return unapply(n.value)}e=o(e)}function fallbackValue(){return null}return fallbackValue}const A=r(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]);const N=r(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]);const b=r(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]);const w=r(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]);const R=r(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]);const k=r(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]);const x=r(["#text"]);const O=r(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]);const D=r(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]);const C=r(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]);const L=r(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]);const v=i(/\{\{[\w\W]*|[\w\W]*\}\}/gm);const M=i(/<%[\w\W]*|[\w\W]*%>/gm);const I=i(/\$\{[\w\W]*}/gm);const P=i(/^data-[\-\w.\u00B7-\uFFFF]+$/);const U=i(/^aria-[\-\w]+$/);const H=i(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i);const z=i(/^(?:\w+script|data):/i);const F=i(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g);const G=i(/^html$/i);const B=i(/^[a-z][.\w]*(-[.\w]+)+$/i);var W=Object.freeze({__proto__:null,ARIA_ATTR:U,ATTR_WHITESPACE:F,CUSTOM_ELEMENT:B,DATA_ATTR:P,DOCTYPE_NAME:G,ERB_EXPR:M,IS_ALLOWED_URI:H,IS_SCRIPT_OR_DATA:z,MUSTACHE_EXPR:v,TMPLIT_EXPR:I});
|
44
|
+
/* eslint-disable @typescript-eslint/indent */const Y={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12};const j=function getGlobal(){return typeof window==="undefined"?null:window};
|
45
|
+
/**
|
46
|
+
* Creates a no-op policy for internal use only.
|
47
|
+
* Don't export this function outside this module!
|
48
|
+
* @param trustedTypes The policy factory.
|
49
|
+
* @param purifyHostElement The Script element used to load DOMPurify (to determine policy name suffix).
|
50
|
+
* @return The policy created (or null, if Trusted Types
|
51
|
+
* are not supported or creating the policy failed).
|
52
|
+
*/const X=function _createTrustedTypesPolicy(e,t){if(typeof e!=="object"||typeof e.createPolicy!=="function")return null;let n=null;const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));const a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML(e){return e},createScriptURL(e){return e}})}catch(e){console.warn("TrustedTypes policy "+a+" could not be created.");return null}};const q=function _createHooksMap(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function createDOMPurify(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:j();const DOMPurify=e=>createDOMPurify(e);DOMPurify.version="3.2.3";DOMPurify.removed=[];if(!t||!t.document||t.document.nodeType!==Y.document){DOMPurify.isSupported=false;return DOMPurify}let{document:n}=t;const o=n;const a=o.currentScript;const{DocumentFragment:i,HTMLTemplateElement:c,Node:s,Element:v,NodeFilter:M,NamedNodeMap:I=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:P,DOMParser:U,trustedTypes:z}=t;const F=v.prototype;const B=lookupGetter(F,"cloneNode");const V=lookupGetter(F,"remove");const $=lookupGetter(F,"nextSibling");const K=lookupGetter(F,"childNodes");const Z=lookupGetter(F,"parentNode");if(typeof c==="function"){const e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let J;let Q="";const{implementation:ee,createNodeIterator:te,createDocumentFragment:ne,getElementsByTagName:oe}=n;const{importNode:ae}=o;let re=q();DOMPurify.isSupported=typeof e==="function"&&typeof Z==="function"&&ee&&ee.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:ie,ERB_EXPR:le,TMPLIT_EXPR:ce,DATA_ATTR:se,ARIA_ATTR:ue,IS_SCRIPT_OR_DATA:de,ATTR_WHITESPACE:fe,CUSTOM_ELEMENT:me}=W;let{IS_ALLOWED_URI:pe}=W;let he=null;const Te=addToSet({},[...A,...N,...b,...R,...x]);let ge=null;const ye=addToSet({},[...O,...D,...C,...L]);let _e=Object.seal(l(null,{tagNameCheck:{writable:true,configurable:false,enumerable:true,value:null},attributeNameCheck:{writable:true,configurable:false,enumerable:true,value:null},allowCustomizedBuiltInElements:{writable:true,configurable:false,enumerable:true,value:false}}));let Se=null;let Ee=null;let Ae=true;let Ne=true;let be=false;let we=true;let Re=false;let ke=true;let xe=false;let Oe=false;let De=false;let Ce=false;let Le=false;let ve=false;let Me=true;let Ie=false;const Pe="user-content-";let Ue=true;let He=false;let ze={};let Fe=null;const Ge=addToSet({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Be=null;const We=addToSet({},["audio","video","img","source","image","track"]);let Ye=null;const je=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]);const Xe="http://www.w3.org/1998/Math/MathML";const qe="http://www.w3.org/2000/svg";const Ve="http://www.w3.org/1999/xhtml";let $e=Ve;let Ke=false;let Ze=null;const Je=addToSet({},[Xe,qe,Ve],p);let Qe=addToSet({},["mi","mo","mn","ms","mtext"]);let et=addToSet({},["annotation-xml"]);const tt=addToSet({},["title","style","font","a","script"]);let nt=null;const ot=["application/xhtml+xml","text/html"];const at="text/html";let rt=null;let it=null;const lt=n.createElement("form");const ct=function isRegexOrFunction(e){return e instanceof RegExp||e instanceof Function};
|
53
|
+
/**
|
54
|
+
* _parseConfig
|
55
|
+
*
|
56
|
+
* @param cfg optional config literal
|
57
|
+
*/const st=function _parseConfig(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!it||it!==e){e&&typeof e==="object"||(e={});e=clone(e);nt=ot.indexOf(e.PARSER_MEDIA_TYPE)===-1?at:e.PARSER_MEDIA_TYPE;rt=nt==="application/xhtml+xml"?p:m;he=_(e,"ALLOWED_TAGS")?addToSet({},e.ALLOWED_TAGS,rt):Te;ge=_(e,"ALLOWED_ATTR")?addToSet({},e.ALLOWED_ATTR,rt):ye;Ze=_(e,"ALLOWED_NAMESPACES")?addToSet({},e.ALLOWED_NAMESPACES,p):Je;Ye=_(e,"ADD_URI_SAFE_ATTR")?addToSet(clone(je),e.ADD_URI_SAFE_ATTR,rt):je;Be=_(e,"ADD_DATA_URI_TAGS")?addToSet(clone(We),e.ADD_DATA_URI_TAGS,rt):We;Fe=_(e,"FORBID_CONTENTS")?addToSet({},e.FORBID_CONTENTS,rt):Ge;Se=_(e,"FORBID_TAGS")?addToSet({},e.FORBID_TAGS,rt):{};Ee=_(e,"FORBID_ATTR")?addToSet({},e.FORBID_ATTR,rt):{};ze=!!_(e,"USE_PROFILES")&&e.USE_PROFILES;Ae=e.ALLOW_ARIA_ATTR!==false;Ne=e.ALLOW_DATA_ATTR!==false;be=e.ALLOW_UNKNOWN_PROTOCOLS||false;we=e.ALLOW_SELF_CLOSE_IN_ATTR!==false;Re=e.SAFE_FOR_TEMPLATES||false;ke=e.SAFE_FOR_XML!==false;xe=e.WHOLE_DOCUMENT||false;Ce=e.RETURN_DOM||false;Le=e.RETURN_DOM_FRAGMENT||false;ve=e.RETURN_TRUSTED_TYPE||false;De=e.FORCE_BODY||false;Me=e.SANITIZE_DOM!==false;Ie=e.SANITIZE_NAMED_PROPS||false;Ue=e.KEEP_CONTENT!==false;He=e.IN_PLACE||false;pe=e.ALLOWED_URI_REGEXP||H;$e=e.NAMESPACE||Ve;Qe=e.MATHML_TEXT_INTEGRATION_POINTS||Qe;et=e.HTML_INTEGRATION_POINTS||et;_e=e.CUSTOM_ELEMENT_HANDLING||{};e.CUSTOM_ELEMENT_HANDLING&&ct(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(_e.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck);e.CUSTOM_ELEMENT_HANDLING&&ct(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(_e.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck);e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==="boolean"&&(_e.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements);Re&&(Ne=false);Le&&(Ce=true);if(ze){he=addToSet({},x);ge=[];if(ze.html===true){addToSet(he,A);addToSet(ge,O)}if(ze.svg===true){addToSet(he,N);addToSet(ge,D);addToSet(ge,L)}if(ze.svgFilters===true){addToSet(he,b);addToSet(ge,D);addToSet(ge,L)}if(ze.mathMl===true){addToSet(he,R);addToSet(ge,C);addToSet(ge,L)}}if(e.ADD_TAGS){he===Te&&(he=clone(he));addToSet(he,e.ADD_TAGS,rt)}if(e.ADD_ATTR){ge===ye&&(ge=clone(ge));addToSet(ge,e.ADD_ATTR,rt)}e.ADD_URI_SAFE_ATTR&&addToSet(Ye,e.ADD_URI_SAFE_ATTR,rt);if(e.FORBID_CONTENTS){Fe===Ge&&(Fe=clone(Fe));addToSet(Fe,e.FORBID_CONTENTS,rt)}Ue&&(he["#text"]=true);xe&&addToSet(he,["html","head","body"]);if(he.table){addToSet(he,["tbody"]);delete Se.tbody}if(e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=="function")throw E('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=="function")throw E('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');J=e.TRUSTED_TYPES_POLICY;Q=J.createHTML("")}else{J===void 0&&(J=X(z,a));J!==null&&typeof Q==="string"&&(Q=J.createHTML(""))}r&&r(e);it=e}};const ut=addToSet({},[...N,...b,...w]);const dt=addToSet({},[...R,...k]);
|
58
|
+
/**
|
59
|
+
* @param element a DOM element whose namespace is being checked
|
60
|
+
* @returns Return false if the element has a
|
61
|
+
* namespace that a spec-compliant parser would never
|
62
|
+
* return. Return true otherwise.
|
63
|
+
*/const ft=function _checkValidNamespace(e){let t=Z(e);t&&t.tagName||(t={namespaceURI:$e,tagName:"template"});const n=m(e.tagName);const o=m(t.tagName);return!!Ze[e.namespaceURI]&&(e.namespaceURI===qe?t.namespaceURI===Ve?n==="svg":t.namespaceURI===Xe?n==="svg"&&(o==="annotation-xml"||Qe[o]):Boolean(ut[n]):e.namespaceURI===Xe?t.namespaceURI===Ve?n==="math":t.namespaceURI===qe?n==="math"&&et[o]:Boolean(dt[n]):e.namespaceURI===Ve?!(t.namespaceURI===qe&&!et[o])&&(!(t.namespaceURI===Xe&&!Qe[o])&&(!dt[n]&&(tt[n]||!ut[n]))):!(nt!=="application/xhtml+xml"||!Ze[e.namespaceURI]))};
|
64
|
+
/**
|
65
|
+
* _forceRemove
|
66
|
+
*
|
67
|
+
* @param node a DOM node
|
68
|
+
*/const mt=function _forceRemove(e){f(DOMPurify.removed,{element:e});try{Z(e).removeChild(e)}catch(t){V(e)}};
|
69
|
+
/**
|
70
|
+
* _removeAttribute
|
71
|
+
*
|
72
|
+
* @param name an Attribute name
|
73
|
+
* @param element a DOM node
|
74
|
+
*/const pt=function _removeAttribute(e,t){try{f(DOMPurify.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){f(DOMPurify.removed,{attribute:null,from:t})}t.removeAttribute(e);if(e==="is")if(Ce||Le)try{mt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}};
|
75
|
+
/**
|
76
|
+
* _initDocument
|
77
|
+
*
|
78
|
+
* @param dirty - a string of dirty markup
|
79
|
+
* @return a DOM, filled with the dirty markup
|
80
|
+
*/const ht=function _initDocument(e){let t=null;let o=null;if(De)e="<remove></remove>"+e;else{const t=h(e,/^[\r\n\t ]+/);o=t&&t[0]}nt==="application/xhtml+xml"&&$e===Ve&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const a=J?J.createHTML(e):e;if($e===Ve)try{t=(new U).parseFromString(a,nt)}catch(e){}if(!t||!t.documentElement){t=ee.createDocument($e,"template",null);try{t.documentElement.innerHTML=Ke?Q:a}catch(e){}}const r=t.body||t.documentElement;e&&o&&r.insertBefore(n.createTextNode(o),r.childNodes[0]||null);return $e===Ve?oe.call(t,xe?"html":"body")[0]:xe?t.documentElement:r};
|
81
|
+
/**
|
82
|
+
* Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
|
83
|
+
*
|
84
|
+
* @param root The root element or node to start traversing on.
|
85
|
+
* @return The created NodeIterator
|
86
|
+
*/const Tt=function _createNodeIterator(e){return te.call(e.ownerDocument||e,e,M.SHOW_ELEMENT|M.SHOW_COMMENT|M.SHOW_TEXT|M.SHOW_PROCESSING_INSTRUCTION|M.SHOW_CDATA_SECTION,null)};
|
87
|
+
/**
|
88
|
+
* _isClobbered
|
89
|
+
*
|
90
|
+
* @param element element to check for clobbering attacks
|
91
|
+
* @return true if clobbered, false if safe
|
92
|
+
*/const gt=function _isClobbered(e){return e instanceof P&&(typeof e.nodeName!=="string"||typeof e.textContent!=="string"||typeof e.removeChild!=="function"||!(e.attributes instanceof I)||typeof e.removeAttribute!=="function"||typeof e.setAttribute!=="function"||typeof e.namespaceURI!=="string"||typeof e.insertBefore!=="function"||typeof e.hasChildNodes!=="function")};
|
93
|
+
/**
|
94
|
+
* Checks whether the given object is a DOM node.
|
95
|
+
*
|
96
|
+
* @param value object to check whether it's a DOM node
|
97
|
+
* @return true is object is a DOM node
|
98
|
+
*/const yt=function _isNode(e){return typeof s==="function"&&e instanceof s};function _executeHooks(e,t,n){u(e,(e=>{e.call(DOMPurify,t,n,it)}))}
|
99
|
+
/**
|
100
|
+
* _sanitizeElements
|
101
|
+
*
|
102
|
+
* @protect nodeName
|
103
|
+
* @protect textContent
|
104
|
+
* @protect removeChild
|
105
|
+
* @param currentNode to check for permission to exist
|
106
|
+
* @return true if node was killed, false if left alive
|
107
|
+
*/const _t=function _sanitizeElements(e){let t=null;_executeHooks(re.beforeSanitizeElements,e,null);if(gt(e)){mt(e);return true}const n=rt(e.nodeName);_executeHooks(re.uponSanitizeElement,e,{tagName:n,allowedTags:he});if(e.hasChildNodes()&&!yt(e.firstElementChild)&&S(/<[/\w]/g,e.innerHTML)&&S(/<[/\w]/g,e.textContent)){mt(e);return true}if(e.nodeType===Y.progressingInstruction){mt(e);return true}if(ke&&e.nodeType===Y.comment&&S(/<[/\w]/g,e.data)){mt(e);return true}if(!he[n]||Se[n]){if(!Se[n]&&Et(n)){if(_e.tagNameCheck instanceof RegExp&&S(_e.tagNameCheck,n))return false;if(_e.tagNameCheck instanceof Function&&_e.tagNameCheck(n))return false}if(Ue&&!Fe[n]){const t=Z(e)||e.parentNode;const n=K(e)||e.childNodes;if(n&&t){const o=n.length;for(let a=o-1;a>=0;--a){const o=B(n[a],true);o.__removalCount=(e.__removalCount||0)+1;t.insertBefore(o,$(e))}}}mt(e);return true}if(e instanceof v&&!ft(e)){mt(e);return true}if((n==="noscript"||n==="noembed"||n==="noframes")&&S(/<\/no(script|embed|frames)/i,e.innerHTML)){mt(e);return true}if(Re&&e.nodeType===Y.text){t=e.textContent;u([ie,le,ce],(e=>{t=T(t,e," ")}));if(e.textContent!==t){f(DOMPurify.removed,{element:e.cloneNode()});e.textContent=t}}_executeHooks(re.afterSanitizeElements,e,null);return false};
|
108
|
+
/**
|
109
|
+
* _isValidAttribute
|
110
|
+
*
|
111
|
+
* @param lcTag Lowercase tag name of containing element.
|
112
|
+
* @param lcName Lowercase attribute name.
|
113
|
+
* @param value Attribute value.
|
114
|
+
* @return Returns true if `value` is valid, otherwise false.
|
115
|
+
*/const St=function _isValidAttribute(e,t,o){if(Me&&(t==="id"||t==="name")&&(o in n||o in lt))return false;if(Ne&&!Ee[t]&&S(se,t));else if(Ae&&S(ue,t));else if(!ge[t]||Ee[t]){if(!(Et(e)&&(_e.tagNameCheck instanceof RegExp&&S(_e.tagNameCheck,e)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(e))&&(_e.attributeNameCheck instanceof RegExp&&S(_e.attributeNameCheck,t)||_e.attributeNameCheck instanceof Function&&_e.attributeNameCheck(t))||t==="is"&&_e.allowCustomizedBuiltInElements&&(_e.tagNameCheck instanceof RegExp&&S(_e.tagNameCheck,o)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(o))))return false}else if(Ye[t]);else if(S(pe,T(o,fe,"")));else if(t!=="src"&&t!=="xlink:href"&&t!=="href"||e==="script"||g(o,"data:")!==0||!Be[e]){if(be&&!S(de,T(o,fe,"")));else if(o)return false}else;return true};
|
116
|
+
/**
|
117
|
+
* _isBasicCustomElement
|
118
|
+
* checks if at least one dash is included in tagName, and it's not the first char
|
119
|
+
* for more sophisticated checking see https://github.com/sindresorhus/validate-element-name
|
120
|
+
*
|
121
|
+
* @param tagName name of the tag of the node to sanitize
|
122
|
+
* @returns Returns true if the tag name meets the basic criteria for a custom element, otherwise false.
|
123
|
+
*/const Et=function _isBasicCustomElement(e){return e!=="annotation-xml"&&h(e,me)};
|
124
|
+
/**
|
125
|
+
* _sanitizeAttributes
|
126
|
+
*
|
127
|
+
* @protect attributes
|
128
|
+
* @protect nodeName
|
129
|
+
* @protect removeAttribute
|
130
|
+
* @protect setAttribute
|
131
|
+
*
|
132
|
+
* @param currentNode to sanitize
|
133
|
+
*/const At=function _sanitizeAttributes(e){_executeHooks(re.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||gt(e))return;const n={attrName:"",attrValue:"",keepAttr:true,allowedAttributes:ge,forceKeepAttr:void 0};let o=t.length;while(o--){const a=t[o];const{name:r,namespaceURI:i,value:l}=a;const c=rt(r);let s=r==="value"?l:y(l);n.attrName=c;n.attrValue=s;n.keepAttr=true;n.forceKeepAttr=void 0;_executeHooks(re.uponSanitizeAttribute,e,n);s=n.attrValue;if(Ie&&(c==="id"||c==="name")){pt(r,e);s=Pe+s}if(ke&&S(/((--!?|])>)|<\/(style|title)/i,s)){pt(r,e);continue}if(n.forceKeepAttr)continue;pt(r,e);if(!n.keepAttr)continue;if(!we&&S(/\/>/i,s)){pt(r,e);continue}Re&&u([ie,le,ce],(e=>{s=T(s,e," ")}));const f=rt(e.nodeName);if(St(f,c,s)){if(J&&typeof z==="object"&&typeof z.getAttributeType==="function")if(i);else switch(z.getAttributeType(f,c)){case"TrustedHTML":s=J.createHTML(s);break;case"TrustedScriptURL":s=J.createScriptURL(s);break}try{i?e.setAttributeNS(i,r,s):e.setAttribute(r,s);gt(e)?mt(e):d(DOMPurify.removed)}catch(e){}}}_executeHooks(re.afterSanitizeAttributes,e,null)};
|
134
|
+
/**
|
135
|
+
* _sanitizeShadowDOM
|
136
|
+
*
|
137
|
+
* @param fragment to iterate over recursively
|
138
|
+
*/const Nt=function _sanitizeShadowDOM(e){let t=null;const n=Tt(e);_executeHooks(re.beforeSanitizeShadowDOM,e,null);while(t=n.nextNode()){_executeHooks(re.uponSanitizeShadowNode,t,null);_t(t);At(t);t.content instanceof i&&_sanitizeShadowDOM(t.content)}_executeHooks(re.afterSanitizeShadowDOM,e,null)};DOMPurify.sanitize=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};let n=null;let a=null;let r=null;let l=null;Ke=!e;Ke&&(e="\x3c!--\x3e");if(typeof e!=="string"&&!yt(e)){if(typeof e.toString!=="function")throw E("toString is not a function");e=e.toString();if(typeof e!=="string")throw E("dirty is not a string, aborting")}if(!DOMPurify.isSupported)return e;Oe||st(t);DOMPurify.removed=[];typeof e==="string"&&(He=false);if(He){if(e.nodeName){const t=rt(e.nodeName);if(!he[t]||Se[t])throw E("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof s){n=ht("\x3c!----\x3e");a=n.ownerDocument.importNode(e,true);a.nodeType===Y.element&&a.nodeName==="BODY"||a.nodeName==="HTML"?n=a:n.appendChild(a)}else{if(!Ce&&!Re&&!xe&&e.indexOf("<")===-1)return J&&ve?J.createHTML(e):e;n=ht(e);if(!n)return Ce?null:ve?Q:""}n&&De&&mt(n.firstChild);const c=Tt(He?e:n);while(r=c.nextNode()){_t(r);At(r);r.content instanceof i&&Nt(r.content)}if(He)return e;if(Ce){if(Le){l=ne.call(n.ownerDocument);while(n.firstChild)l.appendChild(n.firstChild)}else l=n;(ge.shadowroot||ge.shadowrootmode)&&(l=ae.call(o,l,true));return l}let d=xe?n.outerHTML:n.innerHTML;xe&&he["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&S(G,n.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+d);Re&&u([ie,le,ce],(e=>{d=T(d,e," ")}));return J&&ve?J.createHTML(d):d};DOMPurify.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};st(e);Oe=true};DOMPurify.clearConfig=function(){it=null;Oe=false};DOMPurify.isValidAttribute=function(e,t,n){it||st({});const o=rt(e);const a=rt(t);return St(o,a,n)};DOMPurify.addHook=function(e,t){typeof t==="function"&&f(re[e],t)};DOMPurify.removeHook=function(e){return d(re[e])};DOMPurify.removeHooks=function(e){re[e]=[]};DOMPurify.removeAllHooks=function(){re=q()};return DOMPurify}var V=createDOMPurify();export{V as default};
|
139
|
+
|
@@ -0,0 +1,4 @@
|
|
1
|
+
// hotkeys-js@3.13.9 downloaded from https://ga.jspm.io/npm:hotkeys-js@3.13.9/dist/hotkeys.esm.js
|
2
|
+
|
3
|
+
const e=typeof navigator!=="undefined"&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function addEvent(e,t,n,o){e.addEventListener?e.addEventListener(t,n,o):e.attachEvent&&e.attachEvent("on".concat(t),n)}function removeEvent(e,t,n,o){e.removeEventListener?e.removeEventListener(t,n,o):e.detachEvent&&e.detachEvent("on".concat(t),n)}function getMods(e,t){const n=t.slice(0,t.length-1);for(let t=0;t<n.length;t++)n[t]=e[n[t].toLowerCase()];return n}function getKeys(e){typeof e!=="string"&&(e="");e=e.replace(/\s/g,"");const t=e.split(",");let n=t.lastIndexOf("");for(;n>=0;){t[n-1]+=",";t.splice(n,1);n=t.lastIndexOf("")}return t}function compareArray(e,t){const n=e.length>=t.length?e:t;const o=e.length>=t.length?t:e;let s=true;for(let e=0;e<n.length;e++)o.indexOf(n[e])===-1&&(s=false);return s}const t={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":e?173:189,"=":e?61:187,";":e?59:186,"'":222,"[":219,"]":221,"\\":220};const n={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91};const o={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91};const s={16:false,18:false,17:false,91:false};const r={};for(let e=1;e<20;e++)t["f".concat(e)]=111+e;let c=[];let i=null;let l="all";const f=new Map;const code=e=>t[e.toLowerCase()]||n[e.toLowerCase()]||e.toUpperCase().charCodeAt(0);const getKey=e=>Object.keys(t).find((n=>t[n]===e));const getModifier=e=>Object.keys(n).find((t=>n[t]===e));function setScope(e){l=e||"all"}function getScope(){return l||"all"}function getPressedKeyCodes(){return c.slice(0)}function getPressedKeyString(){return c.map((e=>getKey(e)||getModifier(e)||String.fromCharCode(e)))}function getAllKeyCodes(){const e=[];Object.keys(r).forEach((t=>{r[t].forEach((t=>{let{key:n,scope:o,mods:s,shortcut:r}=t;e.push({scope:o,shortcut:r,mods:s,keys:n.split("+").map((e=>code(e)))})}))}));return e}function filter(e){const t=e.target||e.srcElement;const{tagName:n}=t;let o=true;const s=n==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(t.type);(t.isContentEditable||(s||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(o=false);return o}function isPressed(e){typeof e==="string"&&(e=code(e));return c.indexOf(e)!==-1}function deleteScope(e,t){let n;let o;e||(e=getScope());for(const t in r)if(Object.prototype.hasOwnProperty.call(r,t)){n=r[t];for(o=0;o<n.length;)if(n[o].scope===e){const e=n.splice(o,1);e.forEach((e=>{let{element:t}=e;return removeKeyEvent(t)}))}else o++}getScope()===e&&setScope(t||"all")}function clearModifier(e){let t=e.keyCode||e.which||e.charCode;const o=c.indexOf(t);o>=0&&c.splice(o,1);e.key&&e.key.toLowerCase()==="meta"&&c.splice(0,c.length);t!==93&&t!==224||(t=91);if(t in s){s[t]=false;for(const e in n)n[e]===t&&(hotkeys[e]=false)}}function unbind(e){if(typeof e==="undefined"){Object.keys(r).forEach((e=>{Array.isArray(r[e])&&r[e].forEach((e=>eachUnbind(e)));delete r[e]}));removeKeyEvent(null)}else if(Array.isArray(e))e.forEach((e=>{e.key&&eachUnbind(e)}));else if(typeof e==="object")e.key&&eachUnbind(e);else if(typeof e==="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];let[s,r]=n;if(typeof s==="function"){r=s;s=""}eachUnbind({key:e,scope:s,method:r,splitKey:"+"})}}const eachUnbind=e=>{let{key:t,scope:o,method:s,splitKey:c="+"}=e;const i=getKeys(t);i.forEach((e=>{const t=e.split(c);const i=t.length;const l=t[i-1];const f=l==="*"?"*":code(l);if(!r[f])return;o||(o=getScope());const a=i>1?getMods(n,t):[];const d=[];r[f]=r[f].filter((e=>{const t=!s||e.method===s;const n=t&&e.scope===o&&compareArray(e.mods,a);n&&d.push(e.element);return!n}));d.forEach((e=>removeKeyEvent(e)))}))};function eventHandler(e,t,n,o){if(t.element!==o)return;let r;if(t.scope===n||t.scope==="all"){r=t.mods.length>0;for(const e in s)Object.prototype.hasOwnProperty.call(s,e)&&(!s[e]&&t.mods.indexOf(+e)>-1||s[e]&&t.mods.indexOf(+e)===-1)&&(r=false);if(t.mods.length===0&&!s[16]&&!s[18]&&!s[17]&&!s[91]||r||t.shortcut==="*"){t.keys=[];t.keys=t.keys.concat(c);if(t.method(e,t)===false){e.preventDefault?e.preventDefault():e.returnValue=false;e.stopPropagation&&e.stopPropagation();e.cancelBubble&&(e.cancelBubble=true)}}}}function dispatch(e,t){const i=r["*"];let l=e.keyCode||e.which||e.charCode;if(!hotkeys.filter.call(this,e))return;l!==93&&l!==224||(l=91);c.indexOf(l)===-1&&l!==229&&c.push(l);["metaKey","ctrlKey","altKey","shiftKey"].forEach((t=>{const n=o[t];e[t]&&c.indexOf(n)===-1?c.push(n):!e[t]&&c.indexOf(n)>-1?c.splice(c.indexOf(n),1):t==="metaKey"&&e[t]&&(c=c.filter((e=>e in o||e===l)))}));if(l in s){s[l]=true;for(const e in n)n[e]===l&&(hotkeys[e]=true);if(!i)return}for(const t in s)Object.prototype.hasOwnProperty.call(s,t)&&(s[t]=e[o[t]]);if(e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")){c.indexOf(17)===-1&&c.push(17);c.indexOf(18)===-1&&c.push(18);s[17]=true;s[18]=true}const f=getScope();if(i)for(let n=0;n<i.length;n++)i[n].scope===f&&(e.type==="keydown"&&i[n].keydown||e.type==="keyup"&&i[n].keyup)&&eventHandler(e,i[n],f,t);if(!(l in r))return;const a=r[l];const d=a.length;for(let n=0;n<d;n++)if((e.type==="keydown"&&a[n].keydown||e.type==="keyup"&&a[n].keyup)&&a[n].key){const o=a[n];const{splitKey:s}=o;const r=o.key.split(s);const i=[];for(let e=0;e<r.length;e++)i.push(code(r[e]));i.sort().join("")===c.sort().join("")&&eventHandler(e,o,f,t)}}function hotkeys(e,t,o){c=[];const s=getKeys(e);let l=[];let a="all";let d=document;let y=0;let p=false;let u=true;let h="+";let g=false;let m=false;o===void 0&&typeof t==="function"&&(o=t);if(Object.prototype.toString.call(t)==="[object Object]"){t.scope&&(a=t.scope);t.element&&(d=t.element);t.keyup&&(p=t.keyup);t.keydown!==void 0&&(u=t.keydown);t.capture!==void 0&&(g=t.capture);typeof t.splitKey==="string"&&(h=t.splitKey);t.single===true&&(m=true)}typeof t==="string"&&(a=t);m&&unbind(e,a);for(;y<s.length;y++){e=s[y].split(h);l=[];e.length>1&&(l=getMods(n,e));e=e[e.length-1];e=e==="*"?"*":code(e);e in r||(r[e]=[]);r[e].push({keyup:p,keydown:u,scope:a,mods:l,shortcut:s[y],method:o,key:s[y],splitKey:h,element:d})}if(typeof d!=="undefined"&&window){if(!f.has(d)){const keydownListener=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return dispatch(e,d)};const keyupListenr=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;dispatch(e,d);clearModifier(e)};f.set(d,{keydownListener:keydownListener,keyupListenr:keyupListenr,capture:g});addEvent(d,"keydown",keydownListener,g);addEvent(d,"keyup",keyupListenr,g)}if(!i){const listener=()=>{c=[]};i={listener:listener,capture:g};addEvent(window,"focus",listener,g)}}}function trigger(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(r).forEach((n=>{const o=r[n].filter((n=>n.scope===t&&n.shortcut===e));o.forEach((e=>{e&&e.method&&e.method()}))}))}function removeKeyEvent(e){const t=Object.values(r).flat();const n=t.findIndex((t=>{let{element:n}=t;return n===e}));if(n<0){const{keydownListener:t,keyupListenr:n,capture:o}=f.get(e)||{};if(t&&n){removeEvent(e,"keyup",n,o);removeEvent(e,"keydown",t,o);f.delete(e)}}if(t.length<=0||f.size<=0){const e=Object.keys(f);e.forEach((e=>{const{keydownListener:t,keyupListenr:n,capture:o}=f.get(e)||{};if(t&&n){removeEvent(e,"keyup",n,o);removeEvent(e,"keydown",t,o);f.delete(e)}}));f.clear();Object.keys(r).forEach((e=>delete r[e]));if(i){const{listener:e,capture:t}=i;removeEvent(window,"focus",e,t);i=null}}}const a={getPressedKeyString:getPressedKeyString,setScope:setScope,getScope:getScope,deleteScope:deleteScope,getPressedKeyCodes:getPressedKeyCodes,getAllKeyCodes:getAllKeyCodes,isPressed:isPressed,filter:filter,trigger:trigger,unbind:unbind,keyMap:t,modifier:n,modifierMap:o};for(const e in a)Object.prototype.hasOwnProperty.call(a,e)&&(hotkeys[e]=a[e]);if(typeof window!=="undefined"){const e=window.hotkeys;hotkeys.noConflict=t=>{t&&window.hotkeys===hotkeys&&(window.hotkeys=e);return hotkeys};window.hotkeys=hotkeys}export{hotkeys as default};
|
4
|
+
|