Version Description
September 21st, 2022 =
Feature: New block alert! "Pods Single Item - List Fields" opens the doors towards listing a list of fields in variety of format styles automatically for you. You don't have to write any HTML, just specify the field(s) you'd like to show and let the block do the rest for you. The block will display the Field Labels and the Field Values in a nice readable format. Display formats available include: ul, ol, dl, p, div, and table. Want to show all but a few fields? Just specify which fields to exclude if that's what you're after :) (@sc0ttkclark)
Feature: New
{@_all_fields}
magic tag (or$pod->field('_all_fields')
call) will automatically output all field values for the current Pod item in the specified format which includes showing the Field labels. Specify the format using this syntax:{@_all_fields.ul}
(default is ul, but ol, dl, p, div, and table are also supported). (@sc0ttkclark)Feature: New
{@_display_fields....}
magic tag (or$pod->field('_display_fields....')
call) will automatically output all field values for the current Pod item in the specified format which includes showing the Field labels. Specify the format using this syntax:{@_display_fields.ul.field_name|another_field|related_post:post_title}
(default is ul, but ol, dl, p, div, and table are also supported) -- Separate your fields with a pipe "|" character and then if you need to traverse into any relationship field then just traverse each level with a colon ":" character between those fields. (@sc0ttkclark)Feature: New
pods_data_field()
function allows you to get special data fields directly instead of requiring you to use a full Pods object. (@sc0ttkclark)Feature: New Repair tool on the Pods Admin > Settings > Tools page helps to repair Pod, Group, and Field configuration issues that can be annoying to deal with or would normally require Database access to resolve. (@sc0ttkclark)
Feature: You may not have known about it before but we've expanded our existing Pods DFV JS API, you can access it through the
window.PodsDFV
object. Methods include: `getFields( pod
Release Info
Developer | sc0ttkclark |
Plugin | Pods – Custom Content Types and Fields |
Version | 2.9.4 |
Comparing to | |
See all releases |
Code changes from version 2.9.3 to 2.9.4
- babel.config.js +32 -0
- changelog.txt +52 -0
- classes/Pods.php +49 -17
- classes/PodsAPI.php +27 -12
- classes/PodsAdmin.php +17 -59
- classes/PodsField.php +15 -4
- classes/PodsForm.php +40 -3
- classes/PodsInit.php +2 -2
- classes/PodsMeta.php +22 -15
- classes/PodsRESTHandlers.php +97 -82
- classes/cli/PodsAPI_CLI_Command.php +27 -27
- classes/cli/Pods_CLI_Command.php +15 -15
- classes/fields/pick.php +57 -41
- classes/fields/wysiwyg.php +11 -2
- includes/data.php +96 -19
- includes/general.php +74 -22
- init.php +2 -2
- jest.config.js +9 -0
- readme.txt +69 -27
- src/Pods/Admin/Config/Field.php +55 -15
- src/Pods/Blocks/API.php +1 -0
- src/Pods/Blocks/Service_Provider.php +2 -0
- src/Pods/Blocks/Types/Item_Single_List_Fields.php +178 -0
- src/Pods/Data/Map_Field_Values.php +186 -19
- src/Pods/Integrations/WPGraphQL/Field.php +1 -1
- src/Pods/Integrations/WPGraphQL/Service_Provider.php +2 -2
- src/Pods/Service_Provider.php +4 -6
- src/Pods/Tools/Repair.php +659 -0
- src/Pods/Whatsit/Field.php +24 -0
- src/Pods/Whatsit/Storage/Collection.php +7 -1
- src/Pods/Whatsit/Storage/Post_Type.php +7 -1
- ui/admin/callouts/friends_2022_30.php +1 -1
- ui/admin/help-addons-row.php +58 -0
- ui/admin/help-addons.php +20 -0
- ui/admin/help.php +348 -201
- ui/admin/settings-reset.php +121 -34
- ui/admin/settings-settings.php +1 -1
- ui/admin/settings-tools.php +159 -0
- ui/admin/settings.php +1 -0
- ui/forms/div-rows.php +5 -1
- ui/forms/form.php +20 -6
- ui/forms/list-rows.php +5 -1
- ui/forms/p-rows.php +5 -1
- ui/forms/table-rows.php +5 -1
- ui/front/display/dl.php +22 -0
- ui/front/display/list.php +23 -0
- ui/front/display/table.php +25 -0
- ui/front/form.php +19 -4
- ui/js/blocks/block-types/pods-block-single-list-fields/block.json +76 -0
- ui/js/blocks/pods-blocks-api.min.asset.json +1 -1
- ui/js/blocks/pods-blocks-api.min.js +1 -1
- ui/js/dfv/pods-dfv.min.asset.json +1 -1
- ui/js/dfv/pods-dfv.min.js +0 -1
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
module.exports = {
|
2 |
+
"presets": [
|
3 |
+
[ "@babel/preset-env" ],
|
4 |
+
[ "@babel/preset-react" ]
|
5 |
+
],
|
6 |
+
"plugins": [
|
7 |
+
[
|
8 |
+
"babel-plugin-module-resolver",
|
9 |
+
{
|
10 |
+
"alias": {
|
11 |
+
"dfv": "./ui/js/dfv"
|
12 |
+
}
|
13 |
+
}
|
14 |
+
],
|
15 |
+
"@babel/transform-runtime",
|
16 |
+
"babel-plugin-transform-html-import-to-string",
|
17 |
+
"@babel/plugin-transform-strict-mode",
|
18 |
+
"@babel/plugin-proposal-optional-chaining"
|
19 |
+
],
|
20 |
+
"env": {
|
21 |
+
"development": {
|
22 |
+
"presets": [
|
23 |
+
[ "@babel/preset-react", { "development": true } ]
|
24 |
+
]
|
25 |
+
},
|
26 |
+
"production": {
|
27 |
+
"plugins": [
|
28 |
+
"transform-react-remove-prop-types"
|
29 |
+
]
|
30 |
+
}
|
31 |
+
}
|
32 |
+
}
|
@@ -2,6 +2,58 @@ Found a bug? Have a great feature idea? Get on GitHub and tell us about it and w
|
|
2 |
|
3 |
Our GitHub has the full list of all prior releases of Pods: https://github.com/pods-framework/pods/releases
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
= 2.9.1 - August 10th, 2022 =
|
6 |
|
7 |
* Fixed: CodeMirror compatibility updated after some packages in the build caused Code fields to not show in the Pods forms. #6580 #6584 (@zrothauser, @sc0ttkclark)
|
2 |
|
3 |
Our GitHub has the full list of all prior releases of Pods: https://github.com/pods-framework/pods/releases
|
4 |
|
5 |
+
= 2.9.4 - September 21st, 2022 =
|
6 |
+
|
7 |
+
* Feature: New block alert! "Pods Single Item - List Fields" opens the doors towards listing a list of fields in variety of format styles automatically for you. You don't have to write any HTML, just specify the field(s) you'd like to show and let the block do the rest for you. The block will display the Field Labels and the Field Values in a nice readable format. Display formats available include: ul, ol, dl, p, div, and table. Want to show all but a few fields? Just specify which fields to exclude if that's what you're after :) (@sc0ttkclark)
|
8 |
+
* Feature: New `{@_all_fields}` magic tag (or `$pod->field('_all_fields')` call) will automatically output all field values for the current Pod item in the specified format which includes showing the Field labels. Specify the format using this syntax: `{@_all_fields.ul}` (default is ul, but ol, dl, p, div, and table are also supported). (@sc0ttkclark)
|
9 |
+
* Feature: New `{@_display_fields....}` magic tag (or `$pod->field('_display_fields....')` call) will automatically output all field values for the current Pod item in the specified format which includes showing the Field labels. Specify the format using this syntax: `{@_display_fields.ul.field_name|another_field|related_post:post_title}` (default is ul, but ol, dl, p, div, and table are also supported) -- Separate your fields with a pipe "|" character and then if you need to traverse into any relationship field then just traverse each level with a colon ":" character between those fields. (@sc0ttkclark)
|
10 |
+
* Feature: New `pods_data_field()` function allows you to get special data fields directly instead of requiring you to use a full Pods object. (@sc0ttkclark)
|
11 |
+
* Feature: New Repair tool on the Pods Admin > Settings > Tools page helps to repair Pod, Group, and Field configuration issues that can be annoying to deal with or would normally require Database access to resolve. (@sc0ttkclark)
|
12 |
+
* Feature: You may not have known about it before but we've expanded our existing Pods DFV JS API, you can access it through the `window.PodsDFV` object. Methods include: `getFields( pod = '', itemId = 0, formCounter = 1 )`, `getField( pod, itemId, fieldName, formCounter = 1 )`, `getFieldValues( pod = '', itemId = 0, formCounter = 1 )`, `getFieldValuesWithConfigs( pod = '', itemId = 0, formCounter = 1 )`, `getFieldValue( pod, itemId, fieldName, formCounter = 1 )`, `setFieldValue( pod, itemId, fieldName, value, formCounter = 1 )`
|
13 |
+
* Enhancement: You can now choose what field mode you would like to use for REST API fields. The default mode is raw values, but you can choose to return rendered values or both raw+rendered values as an object to work with. #5198 (@sc0ttkclark)
|
14 |
+
* Enhancement: You can now specify a custom display separator for repeateable fields to use when rendering. #6892 #6890 (@JoryHogeveen)
|
15 |
+
* Changed: Resetting a Pod has been removed from the Pods Admin > Edit Pods page, instead of clicking "Delete All Items" there, you can now access this directly from Pods Admin > Settings > Cleanup & Reset as the new "Delete all content for a Pod" option. You can specify the Pod you want to delete content for and it explains exactly what you can expect from running it. (@sc0ttkclark)
|
16 |
+
* Tweak: Updated Pods Admin > Help page now lists more add-ons and where to get them / get support for them. (@sc0ttkclark)
|
17 |
+
* Fixed: Properly convert accents when creating a new pod and using the label to generate the pod name. #6874 (@sc0ttkclark)
|
18 |
+
* Fixed: Relationship/file fields that are hidden on the screen will now have all field values referenced instead of only the first value when multiple is enabled for that field. #6913 (@sc0ttkclark)
|
19 |
+
* Fixed: `pods_query_arg()` now correctly excludes all `$_GET` parameters when passing a manual URL into the function. (@sc0ttkclark)
|
20 |
+
* Fixed: Legacy WP-CLI commands for Pods are now showing up again, however they will be replaced in a future release with a more comprehensive solution. In the meantime, you can use those commands by calling `wp pods-legacy` and `wp pods-legacy-api`.
|
21 |
+
* Fixed: Prevent conflicting filter calls when filtering things other than post_title in the Display Field in Selection List option. #6909 #6907 (@therealgilles, @sc0ttkclark)
|
22 |
+
* Fixed: The autocomplete field now lets you click the "X" delete icon properly instead of starting drag-and-drop event. #6905 #6878 (@JoryHogeveen)
|
23 |
+
* Fixed: Resolved saving multiple files to a Media pod which would result in only the first file being saved. #6450 (@sc0ttkclark)
|
24 |
+
* Fixed: Resolved TinyMCE media button handling in some cases so that it checks the correct place in the field configuration. #6569 (@sc0ttkclark)
|
25 |
+
* Fixed: Resolved overflow issues in small screens for relationship field List View. #6542 (@sc0ttkclark)
|
26 |
+
* Fixed: Resolved issue with some TinyMCE scripts not being included on certain screens that use the TinyMCE WYSIWYG field. #6525 (@sc0ttkclark)
|
27 |
+
* Fixed: Pod/Group/Field configurations being saved now get their null-ish values (from empty select fields) sent as empty strings so they are not reverted to the previously saved value on next load. #6558 (@sc0ttkclark)
|
28 |
+
* Fixed: Pod/Group/Field configurations being saved now get their checkbox boolean options properly enforced as 0/1 and sent so they are not reverted to the default value on next load. #6485 (@sc0ttkclark)
|
29 |
+
* Fixed: Fields added manually through the older `pods_group_add()` function now get their field types properly recognized. #6381 (@sc0ttkclark)
|
30 |
+
* Fixed: Field config overrides for requiring a field when outputting via PHP are now properly recognized by DFV JS logic for validation and form submission prevention. #6352 (@sc0ttkclark)
|
31 |
+
* Fixed: Autocomplete field AJAX calls are now able to correctly reference the field object for code-based registered fields. #6896 (@naveen17797, @sc0ttkclark)
|
32 |
+
* Fixed: Display of the buttons in the list fields now properly aligns to the right side. #6894 #6893 (@JoryHogeveen, @sc0ttkclark)
|
33 |
+
* Fixed: Date range validation now validate sbased on the internal format instead of only on the display format. #6882 #6881 (@JoryHogeveen)
|
34 |
+
* Fixed: Number field type with slider inputs now use the correct number references. #6885 #6884 (@JoryHogeveen)
|
35 |
+
* Fixed: Currency field type now appears correctly on non-HTML5 fields. #6887 #6886 (@JoryHogeveen)
|
36 |
+
* Fixed: Resolved read-only fields functionality which was initially missing from the Pods 2.8+ DFV functionality. #6875 #6583 (@zrothauser, @sc0ttkclark)
|
37 |
+
* Fixed: Resolved issue where fields can disappear while being dragged from one group to another. #6873 #6867 (@zrothauser)
|
38 |
+
|
39 |
+
= 2.9.3 - August 18th, 2022 =
|
40 |
+
|
41 |
+
* Fixed: Resolve additional issue with WPGraphQL on some PHP configurations. #6868 (@sc0ttkclark)
|
42 |
+
* Fixed: Code field and others that do not support repeatable inputs are now forced to show non-repeatable inputs even if the setting was saved as on. #6855 (@sc0ttkclark)
|
43 |
+
* Fixed: TinyMCE WYSIWYG fields are now no longer showing as repeatable since they are not fully supported. Quill Editor remains supported for repeatable input. #6855 (@sc0ttkclark)
|
44 |
+
* Fixed: A development build has been resolved which broke the Code editor field. #6870 (@JoryHogeveen, @sc0ttkclark)
|
45 |
+
|
46 |
+
= 2.9.2 - August 16th, 2022 =
|
47 |
+
|
48 |
+
* Tweak: Improve the repeatable field UI elements so they blend in more. #6853 #6854 (@JoryHogeveen, @sc0ttkclark)
|
49 |
+
* Tweak: Use a popover UI for color fields. #6858 #6859 (@JoryHogeveen)
|
50 |
+
* Tweak: Use a popover UI for date, date/time, and time fields. #6857 #6389 #6860 (@JoryHogeveen)
|
51 |
+
* Fixed: Resolve conflicts with Restrict Content Pro to deal with how it uses the shared Common library. (@sc0ttkclark)
|
52 |
+
* Fixed: Resolve issues with taggable relationships not saving string values. #6862 #6863 (@JoryHogeveen, @sc0ttkclark)
|
53 |
+
* Fixed: Resolve formatting issues with saved date/time field variations on save. #6389 #6860 (@JoryHogeveen)
|
54 |
+
* Fixed: Resolve error with WPGraphQL on some PHP configurations. #6865 (@sc0ttkclark)
|
55 |
+
* Fixed: Resolve error in the field settings for Files with Gallery enabled. #6864 (@sc0ttkclark)
|
56 |
+
|
57 |
= 2.9.1 - August 10th, 2022 =
|
58 |
|
59 |
* Fixed: CodeMirror compatibility updated after some packages in the build caused Code fields to not show in the Pods forms. #6580 #6584 (@zrothauser, @sc0ttkclark)
|
@@ -594,6 +594,7 @@ class Pods implements Iterator {
|
|
594 |
'pods_callback' => 'pods',
|
595 |
'deprecated' => false,
|
596 |
'keyed' => false,
|
|
|
597 |
// extra data to send to field handlers.
|
598 |
'args' => [],
|
599 |
];
|
@@ -889,7 +890,7 @@ class Pods implements Iterator {
|
|
889 |
} else {
|
890 |
return null;
|
891 |
}
|
892 |
-
}
|
893 |
// Handle custom/supported value mappings.
|
894 |
$map_field_values = pods_container( Map_Field_Values::class );
|
895 |
|
@@ -1147,13 +1148,9 @@ class Pods implements Iterator {
|
|
1147 |
|
1148 |
// No items found.
|
1149 |
if ( empty( $ids ) ) {
|
1150 |
-
// pods_debug( 'No related IDs found! ' . var_export( array( 'id' => $current_field['id'], 'pod_id' => $current_field->get_parent_id(), 'ids' => $ids, 'current_field' => empty( $current_field['id'] ) ? $current_field : 'has field id tho' ), true ) );
|
1151 |
-
|
1152 |
return false;
|
1153 |
}
|
1154 |
|
1155 |
-
// pods_debug( 'Related IDs found! ' . var_export( array( 'id' => $current_field['id'], 'pod_id' => $current_field->get_parent_id(), 'ids' => $ids ), true ) );
|
1156 |
-
|
1157 |
if ( 0 < $last_limit ) {
|
1158 |
// @todo This should return array() if not $params->single.
|
1159 |
$ids = array_slice( $ids, 0, $last_limit );
|
@@ -1215,8 +1212,6 @@ class Pods implements Iterator {
|
|
1215 |
$join = (array) $table['join'];
|
1216 |
}
|
1217 |
|
1218 |
-
// pods_debug( 'IDs found: ' . var_export( $ids, true ) );
|
1219 |
-
|
1220 |
if ( $table && ( ! empty( $ids ) || ! empty( $table['where'] ) ) ) {
|
1221 |
foreach ( $ids as $id ) {
|
1222 |
$where[ $id ] = '`t`.`' . $table['field_id'] . '` = ' . (int) $id;
|
@@ -1609,9 +1604,6 @@ class Pods implements Iterator {
|
|
1609 |
}
|
1610 |
}//end if
|
1611 |
|
1612 |
-
// pods_debug( 'value' );
|
1613 |
-
// pods_debug( compact( 'value', 'data' ) );
|
1614 |
-
|
1615 |
if ( $last_options ) {
|
1616 |
$last_field_data = $last_options;
|
1617 |
} elseif ( isset( $related_obj, $related_obj->fields, $related_obj->fields[ $field ] ) ) {
|
@@ -3524,25 +3516,65 @@ class Pods implements Iterator {
|
|
3524 |
}
|
3525 |
}
|
3526 |
|
3527 |
-
$disallowed =
|
3528 |
-
|
3529 |
-
'exec',
|
3530 |
-
'popen',
|
3531 |
-
'eval',
|
3532 |
'preg_replace',
|
3533 |
'preg_replace_array',
|
3534 |
'preg_replace_callback',
|
3535 |
'preg_replace_callback_array',
|
3536 |
'preg_match',
|
3537 |
'preg_match_all',
|
|
|
|
|
|
|
|
|
3538 |
'create_function',
|
|
|
|
|
3539 |
'include',
|
3540 |
'include_once',
|
3541 |
'require',
|
3542 |
'require_once',
|
3543 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3544 |
|
3545 |
-
$allowed =
|
3546 |
|
3547 |
/**
|
3548 |
* Allows adjusting the disallowed callbacks as needed.
|
594 |
'pods_callback' => 'pods',
|
595 |
'deprecated' => false,
|
596 |
'keyed' => false,
|
597 |
+
'bypass_map_field_values' => false,
|
598 |
// extra data to send to field handlers.
|
599 |
'args' => [],
|
600 |
];
|
890 |
} else {
|
891 |
return null;
|
892 |
}
|
893 |
+
} elseif ( ! $params->bypass_map_field_values ) {
|
894 |
// Handle custom/supported value mappings.
|
895 |
$map_field_values = pods_container( Map_Field_Values::class );
|
896 |
|
1148 |
|
1149 |
// No items found.
|
1150 |
if ( empty( $ids ) ) {
|
|
|
|
|
1151 |
return false;
|
1152 |
}
|
1153 |
|
|
|
|
|
1154 |
if ( 0 < $last_limit ) {
|
1155 |
// @todo This should return array() if not $params->single.
|
1156 |
$ids = array_slice( $ids, 0, $last_limit );
|
1212 |
$join = (array) $table['join'];
|
1213 |
}
|
1214 |
|
|
|
|
|
1215 |
if ( $table && ( ! empty( $ids ) || ! empty( $table['where'] ) ) ) {
|
1216 |
foreach ( $ids as $id ) {
|
1217 |
$where[ $id ] = '`t`.`' . $table['field_id'] . '` = ' . (int) $id;
|
1604 |
}
|
1605 |
}//end if
|
1606 |
|
|
|
|
|
|
|
1607 |
if ( $last_options ) {
|
1608 |
$last_field_data = $last_options;
|
1609 |
} elseif ( isset( $related_obj, $related_obj->fields, $related_obj->fields[ $field ] ) ) {
|
3516 |
}
|
3517 |
}
|
3518 |
|
3519 |
+
$disallowed = [
|
3520 |
+
// Regex related.
|
|
|
|
|
|
|
3521 |
'preg_replace',
|
3522 |
'preg_replace_array',
|
3523 |
'preg_replace_callback',
|
3524 |
'preg_replace_callback_array',
|
3525 |
'preg_match',
|
3526 |
'preg_match_all',
|
3527 |
+
// Eval related.
|
3528 |
+
'system',
|
3529 |
+
'exec',
|
3530 |
+
'eval',
|
3531 |
'create_function',
|
3532 |
+
// File related.
|
3533 |
+
'popen',
|
3534 |
'include',
|
3535 |
'include_once',
|
3536 |
'require',
|
3537 |
'require_once',
|
3538 |
+
'file_get_contents',
|
3539 |
+
'file_put_contents',
|
3540 |
+
'get_template_part',
|
3541 |
+
// Nonce related.
|
3542 |
+
'wp_nonce_url',
|
3543 |
+
'wp_nonce_field',
|
3544 |
+
'wp_create_nonce',
|
3545 |
+
'check_admin_referer',
|
3546 |
+
'check_ajax_referer',
|
3547 |
+
'wp_verify_nonce',
|
3548 |
+
// PHP related.
|
3549 |
+
'constant',
|
3550 |
+
'defined',
|
3551 |
+
'get_current_user',
|
3552 |
+
'get_defined_constants',
|
3553 |
+
'get_defined_functions',
|
3554 |
+
'get_defined_vars',
|
3555 |
+
'get_extension_funcs',
|
3556 |
+
'get_include_path',
|
3557 |
+
'get_included_files',
|
3558 |
+
'get_loaded_extensions',
|
3559 |
+
'get_required_files',
|
3560 |
+
'get_resources',
|
3561 |
+
'getenv',
|
3562 |
+
'getopt',
|
3563 |
+
'ini_alter',
|
3564 |
+
'ini_get',
|
3565 |
+
'ini_get_all',
|
3566 |
+
'ini_restore',
|
3567 |
+
'ini_set',
|
3568 |
+
'php_ini_loaded_file',
|
3569 |
+
'php_ini_scanned_files',
|
3570 |
+
'php_sapi_name',
|
3571 |
+
'php_uname',
|
3572 |
+
'phpinfo',
|
3573 |
+
'phpversion',
|
3574 |
+
'putenv',
|
3575 |
+
];
|
3576 |
|
3577 |
+
$allowed = [];
|
3578 |
|
3579 |
/**
|
3580 |
* Allows adjusting the disallowed callbacks as needed.
|
@@ -3206,10 +3206,13 @@ class PodsAPI {
|
|
3206 |
if ( ! empty( $field ) ) {
|
3207 |
$old_id = pods_v( 'id', $field );
|
3208 |
$old_name = pods_clean_name( $field['name'], true, 'meta' !== $pod['storage'] );
|
3209 |
-
$old_type =
|
3210 |
$old_options = $field;
|
3211 |
$old_sister_id = pods_v( 'sister_id', $old_options, 0 );
|
3212 |
|
|
|
|
|
|
|
3213 |
// Maybe clone the field object if we need to.
|
3214 |
if ( $old_options instanceof Field ) {
|
3215 |
$old_options = clone $old_options;
|
@@ -3229,14 +3232,16 @@ class PodsAPI {
|
|
3229 |
$old_simple = ( 'pick' === $old_type && in_array( pods_v( 'pick_object', $field ), $simple_tableless_objects, true ) );
|
3230 |
|
3231 |
if ( isset( $params->new_name ) && ! empty( $params->new_name ) ) {
|
3232 |
-
$
|
3233 |
|
3234 |
unset( $params->new_name );
|
3235 |
-
}
|
|
|
|
|
3236 |
$field['name'] = $params->name;
|
3237 |
}
|
3238 |
|
3239 |
-
if ( $new_group
|
3240 |
$field['group'] = $new_group->get_id();
|
3241 |
}
|
3242 |
|
@@ -3799,7 +3804,7 @@ class PodsAPI {
|
|
3799 |
$test = pods_query( "ALTER TABLE `@wp_pods_{$params->pod}` ADD COLUMN {$definition}", false );
|
3800 |
|
3801 |
if ( false === $test ) {
|
3802 |
-
pods_query( "ALTER TABLE `@wp_pods_{$params->pod}` MODIFY {$definition}", __( 'Cannot create or update new field', 'pods' ) );
|
3803 |
}
|
3804 |
}
|
3805 |
|
@@ -4158,10 +4163,12 @@ class PodsAPI {
|
|
4158 |
}
|
4159 |
|
4160 |
if ( isset( $params->new_name ) && ! empty( $params->new_name ) ) {
|
4161 |
-
$
|
4162 |
|
4163 |
unset( $params->new_name );
|
4164 |
-
}
|
|
|
|
|
4165 |
$group['name'] = $params->name;
|
4166 |
}
|
4167 |
|
@@ -8284,7 +8291,9 @@ class PodsAPI {
|
|
8284 |
}
|
8285 |
|
8286 |
if ( isset( $params['pod'] ) ) {
|
8287 |
-
if (
|
|
|
|
|
8288 |
$pod = $this->load_pod( $params['pod'] );
|
8289 |
|
8290 |
if ( ! $pod ) {
|
@@ -8304,10 +8313,14 @@ class PodsAPI {
|
|
8304 |
}
|
8305 |
|
8306 |
if ( isset( $params['group'] ) ) {
|
8307 |
-
|
|
|
|
|
|
|
8308 |
|
8309 |
-
|
8310 |
-
|
|
|
8311 |
}
|
8312 |
}
|
8313 |
|
@@ -8595,7 +8608,9 @@ class PodsAPI {
|
|
8595 |
}
|
8596 |
|
8597 |
if ( isset( $params['pod'] ) ) {
|
8598 |
-
if (
|
|
|
|
|
8599 |
$pod = $this->load_pod( $params['pod'] );
|
8600 |
|
8601 |
if ( ! $pod ) {
|
3206 |
if ( ! empty( $field ) ) {
|
3207 |
$old_id = pods_v( 'id', $field );
|
3208 |
$old_name = pods_clean_name( $field['name'], true, 'meta' !== $pod['storage'] );
|
3209 |
+
$old_type = pods_v( 'type', $field );
|
3210 |
$old_options = $field;
|
3211 |
$old_sister_id = pods_v( 'sister_id', $old_options, 0 );
|
3212 |
|
3213 |
+
// Set a default just in case it was not set.
|
3214 |
+
$field['type'] = $old_type;
|
3215 |
+
|
3216 |
// Maybe clone the field object if we need to.
|
3217 |
if ( $old_options instanceof Field ) {
|
3218 |
$old_options = clone $old_options;
|
3232 |
$old_simple = ( 'pick' === $old_type && in_array( pods_v( 'pick_object', $field ), $simple_tableless_objects, true ) );
|
3233 |
|
3234 |
if ( isset( $params->new_name ) && ! empty( $params->new_name ) ) {
|
3235 |
+
$params->name = $params->new_name;
|
3236 |
|
3237 |
unset( $params->new_name );
|
3238 |
+
}
|
3239 |
+
|
3240 |
+
if ( isset( $params->name ) ) {
|
3241 |
$field['name'] = $params->name;
|
3242 |
}
|
3243 |
|
3244 |
+
if ( $new_group ) {
|
3245 |
$field['group'] = $new_group->get_id();
|
3246 |
}
|
3247 |
|
3804 |
$test = pods_query( "ALTER TABLE `@wp_pods_{$params->pod}` ADD COLUMN {$definition}", false );
|
3805 |
|
3806 |
if ( false === $test ) {
|
3807 |
+
pods_query( "ALTER TABLE `@wp_pods_{$params->pod}` MODIFY {$definition}", __( 'Cannot create or update new field, you may have reached the maximum limit of your table row size. Try reducing your fields or use higher than 255 maximum character limits (VARCHAR) to store in TEXT format.', 'pods' ) );
|
3808 |
}
|
3809 |
}
|
3810 |
|
4163 |
}
|
4164 |
|
4165 |
if ( isset( $params->new_name ) && ! empty( $params->new_name ) ) {
|
4166 |
+
$params->name = $params->new_name;
|
4167 |
|
4168 |
unset( $params->new_name );
|
4169 |
+
}
|
4170 |
+
|
4171 |
+
if ( isset( $params->name ) ) {
|
4172 |
$group['name'] = $params->name;
|
4173 |
}
|
4174 |
|
8291 |
}
|
8292 |
|
8293 |
if ( isset( $params['pod'] ) ) {
|
8294 |
+
if ( $params['pod'] instanceof Pod ) {
|
8295 |
+
$params['parent'] = $params['pod']->get_id();
|
8296 |
+
} elseif ( empty( $params['parent'] ) ) {
|
8297 |
$pod = $this->load_pod( $params['pod'] );
|
8298 |
|
8299 |
if ( ! $pod ) {
|
8313 |
}
|
8314 |
|
8315 |
if ( isset( $params['group'] ) ) {
|
8316 |
+
if ( $params['group'] instanceof Group ) {
|
8317 |
+
$params['group'] = $params['group']->get_id();
|
8318 |
+
} else {
|
8319 |
+
$group = $this->load_group( $params['group'], false );
|
8320 |
|
8321 |
+
if ( $group ) {
|
8322 |
+
$params['group'] = $group->get_id();
|
8323 |
+
}
|
8324 |
}
|
8325 |
}
|
8326 |
|
8608 |
}
|
8609 |
|
8610 |
if ( isset( $params['pod'] ) ) {
|
8611 |
+
if ( $params['pod'] instanceof Pod ) {
|
8612 |
+
$params['parent'] = $params['pod']->get_id();
|
8613 |
+
} elseif ( empty( $params['parent'] ) ) {
|
8614 |
$pod = $this->load_pod( $params['pod'] );
|
8615 |
|
8616 |
if ( ! $pod ) {
|
@@ -1316,17 +1316,13 @@ class PodsAdmin {
|
|
1316 |
'restrict_callback' => [ $this, 'admin_setup_duplicate_restrict' ],
|
1317 |
'nonce' => true,
|
1318 |
],
|
1319 |
-
'reset_pod' => [
|
1320 |
-
'label' => __( 'Delete All Items', 'pods' ),
|
1321 |
-
'confirm' => __( 'Are you sure you want to delete all items from this Pod? If this is an extended Pod, it will remove the original items extended too.', 'pods' ),
|
1322 |
-
'callback' => [ $this, 'admin_setup_reset' ],
|
1323 |
-
'restrict_callback' => [ $this, 'admin_setup_reset_restrict' ],
|
1324 |
-
'nonce' => true,
|
1325 |
-
'span_class' => 'delete',
|
1326 |
-
],
|
1327 |
'delete_pod' => [
|
1328 |
'label' => __( 'Delete', 'pods' ),
|
1329 |
-
'confirm' => __( 'Are you sure you want to delete this Pod?
|
|
|
|
|
|
|
|
|
1330 |
'callback' => [ $this, 'admin_setup_delete' ],
|
1331 |
'restrict_callback' => [ $this, 'admin_setup_delete_restrict' ],
|
1332 |
'nonce' => true,
|
@@ -1346,11 +1342,6 @@ class PodsAdmin {
|
|
1346 |
'id' => '{@id}',
|
1347 |
'name' => '{@name}',
|
1348 |
] ),
|
1349 |
-
'reset_pod' => pods_query_arg( [
|
1350 |
-
'action' => 'reset_pod',
|
1351 |
-
'id' => '{@id}',
|
1352 |
-
'name' => '{@name}',
|
1353 |
-
] ),
|
1354 |
],
|
1355 |
'search' => false,
|
1356 |
'searchable' => false,
|
@@ -2153,51 +2144,6 @@ class PodsAdmin {
|
|
2153 |
return $restricted;
|
2154 |
}
|
2155 |
|
2156 |
-
/**
|
2157 |
-
* Reset a pod
|
2158 |
-
*
|
2159 |
-
* @param PodsUI $obj PodsUI object.
|
2160 |
-
*
|
2161 |
-
* @return mixed
|
2162 |
-
*/
|
2163 |
-
public function admin_setup_reset( $obj ) {
|
2164 |
-
$pod = pods_api()->load_pod( array( 'name' => $obj->row['name'] ), false );
|
2165 |
-
|
2166 |
-
if ( empty( $pod ) ) {
|
2167 |
-
return $obj->error( __( 'Pod not found.', 'pods' ) );
|
2168 |
-
}
|
2169 |
-
|
2170 |
-
pods_api()->reset_pod( array( 'name' => $obj->row['name'] ) );
|
2171 |
-
|
2172 |
-
$obj->message( __( 'Pod reset successfully.', 'pods' ) );
|
2173 |
-
|
2174 |
-
$obj->manage();
|
2175 |
-
}
|
2176 |
-
|
2177 |
-
/**
|
2178 |
-
* Restrict Reset action from users and media
|
2179 |
-
*
|
2180 |
-
* @param bool $restricted Whether action is restricted.
|
2181 |
-
* @param array $restrict Restriction array.
|
2182 |
-
* @param string $action Current action.
|
2183 |
-
* @param array $row Item data row.
|
2184 |
-
* @param PodsUI $obj PodsUI object.
|
2185 |
-
*
|
2186 |
-
* @since 2.3.10
|
2187 |
-
*/
|
2188 |
-
public function admin_setup_reset_restrict( $restricted, $restrict, $action, $row, $obj ) {
|
2189 |
-
if ( in_array(
|
2190 |
-
$row['real_type'], array(
|
2191 |
-
'user',
|
2192 |
-
'media',
|
2193 |
-
), true
|
2194 |
-
) ) {
|
2195 |
-
$restricted = true;
|
2196 |
-
}
|
2197 |
-
|
2198 |
-
return $restricted;
|
2199 |
-
}
|
2200 |
-
|
2201 |
/**
|
2202 |
* Delete a pod
|
2203 |
*
|
@@ -3099,6 +3045,18 @@ class PodsAdmin {
|
|
3099 |
'default' => pods_v( 'name', $pod ),
|
3100 |
'depends-on' => [ 'rest_enable' => true, 'read_all' => true ],
|
3101 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3102 |
];
|
3103 |
|
3104 |
return $options;
|
1316 |
'restrict_callback' => [ $this, 'admin_setup_duplicate_restrict' ],
|
1317 |
'nonce' => true,
|
1318 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1319 |
'delete_pod' => [
|
1320 |
'label' => __( 'Delete', 'pods' ),
|
1321 |
+
'confirm' => __( 'Are you sure you want to delete this Pod?', 'pods' )
|
1322 |
+
. "\n\n"
|
1323 |
+
. __( 'All of the content and items will remain in the database.', 'pods' )
|
1324 |
+
. "\n\n"
|
1325 |
+
. __( 'You may want to go to Pods Admin > Settings > Cleanup & Reset > "Delete all content for a Pod" first.', 'pods' ),
|
1326 |
'callback' => [ $this, 'admin_setup_delete' ],
|
1327 |
'restrict_callback' => [ $this, 'admin_setup_delete_restrict' ],
|
1328 |
'nonce' => true,
|
1342 |
'id' => '{@id}',
|
1343 |
'name' => '{@name}',
|
1344 |
] ),
|
|
|
|
|
|
|
|
|
|
|
1345 |
],
|
1346 |
'search' => false,
|
1347 |
'searchable' => false,
|
2144 |
return $restricted;
|
2145 |
}
|
2146 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2147 |
/**
|
2148 |
* Delete a pod
|
2149 |
*
|
3045 |
'default' => pods_v( 'name', $pod ),
|
3046 |
'depends-on' => [ 'rest_enable' => true, 'read_all' => true ],
|
3047 |
],
|
3048 |
+
'rest_api_field_mode' => [
|
3049 |
+
'label' => __( 'Field Mode', 'pods' ),
|
3050 |
+
'help' => __( 'Specify how you would like your values returned in the REST API responses. If you choose to show Both raw and rendered values then an object will be returned for each field that contains the value and rendered properties.', 'pods' ),
|
3051 |
+
'type' => 'pick',
|
3052 |
+
'default' => 'value',
|
3053 |
+
'depends-on' => [ 'rest_enable' => true ],
|
3054 |
+
'data' => [
|
3055 |
+
'value' => __( 'Raw values', 'pods' ),
|
3056 |
+
'render' => __( 'Rendered values', 'pods' ),
|
3057 |
+
'value_and_render' => __( 'Both raw and rendered values {value: raw_value, rendered: rendered_value}', 'pods' ),
|
3058 |
+
],
|
3059 |
+
],
|
3060 |
];
|
3061 |
|
3062 |
return $options;
|
@@ -576,14 +576,25 @@ class PodsField {
|
|
576 |
if ( $args->options instanceof Field ) {
|
577 |
$config = $args->options->export();
|
578 |
|
579 |
-
$config['repeatable']
|
580 |
-
$config['repeatable_add_new_label']
|
581 |
-
$config['repeatable_reorder']
|
582 |
-
$config['repeatable_limit']
|
|
|
|
|
583 |
} else {
|
584 |
$config = (array) $args->options;
|
585 |
}
|
586 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
587 |
unset( $config['data'] );
|
588 |
|
589 |
$config['item_id'] = (int) $args->id;
|
576 |
if ( $args->options instanceof Field ) {
|
577 |
$config = $args->options->export();
|
578 |
|
579 |
+
$config['repeatable'] = $args->options->is_repeatable();
|
580 |
+
$config['repeatable_add_new_label'] = $args->options->get_arg( 'repeatable_add_new_label', __( 'Add New', 'pods' ), true );
|
581 |
+
$config['repeatable_reorder'] = filter_var( $args->options->get_arg( 'repeatable_reorder', true ), FILTER_VALIDATE_BOOLEAN );
|
582 |
+
$config['repeatable_limit'] = $args->options->get_limit();
|
583 |
+
$config['repeatable_format'] = $args->options->get_arg( 'repeatable_format', 'default', true );
|
584 |
+
$config['repeatable_format_separator'] = $args->options->get_arg( 'repeatable_format_separator', ', ', true );
|
585 |
} else {
|
586 |
$config = (array) $args->options;
|
587 |
}
|
588 |
|
589 |
+
// Backcompat readonly argument handling.
|
590 |
+
if ( isset( $config['readonly'] ) ) {
|
591 |
+
if ( ! isset( $config['read_only'] ) ) {
|
592 |
+
$config['read_only'] = (int) $config['readonly'];
|
593 |
+
}
|
594 |
+
|
595 |
+
unset( $config['readonly'] );
|
596 |
+
}
|
597 |
+
|
598 |
unset( $config['data'] );
|
599 |
|
600 |
$config['item_id'] = (int) $args->id;
|
@@ -188,7 +188,6 @@ class PodsForm {
|
|
188 |
* @since 2.0.0
|
189 |
*/
|
190 |
public static function field( $name, $value, $type = 'text', $options = null, $pod = null, $id = null ) {
|
191 |
-
|
192 |
// Take a field array
|
193 |
if ( is_array( $name ) || is_object( $name ) ) {
|
194 |
$options = $name;
|
@@ -205,6 +204,10 @@ class PodsForm {
|
|
205 |
$options = self::options( $type, $options );
|
206 |
$options = apply_filters( "pods_form_ui_field_{$type}_options", $options, $value, $name, $pod, $id );
|
207 |
|
|
|
|
|
|
|
|
|
208 |
if ( null === $value || ( '' === $value && 'boolean' === $type ) || ( ! empty( $pod ) && empty( $id ) ) ) {
|
209 |
$value = self::default_value( $value, $type, $name, $options, $pod, $id );
|
210 |
}
|
@@ -235,7 +238,7 @@ class PodsForm {
|
|
235 |
}
|
236 |
|
237 |
if ( empty( $type ) ) {
|
238 |
-
return
|
239 |
}
|
240 |
|
241 |
// @todo Move into DFV field method or Pods\Whatsit later
|
@@ -1372,7 +1375,7 @@ class PodsForm {
|
|
1372 |
$value = $default;
|
1373 |
}
|
1374 |
|
1375 |
-
if ( is_array( $value ) && 'multi' !== pods_v( $
|
1376 |
$value = pods_serial_comma( $value, $name, [ $name => $options ] );
|
1377 |
}
|
1378 |
|
@@ -1927,6 +1930,40 @@ class PodsForm {
|
|
1927 |
return $field_types;
|
1928 |
}
|
1929 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1930 |
/**
|
1931 |
* Get the list of simple tableless objects.
|
1932 |
*
|
188 |
* @since 2.0.0
|
189 |
*/
|
190 |
public static function field( $name, $value, $type = 'text', $options = null, $pod = null, $id = null ) {
|
|
|
191 |
// Take a field array
|
192 |
if ( is_array( $name ) || is_object( $name ) ) {
|
193 |
$options = $name;
|
204 |
$options = self::options( $type, $options );
|
205 |
$options = apply_filters( "pods_form_ui_field_{$type}_options", $options, $value, $name, $pod, $id );
|
206 |
|
207 |
+
if ( empty( $options['type'] ) ) {
|
208 |
+
$options['type'] = $type;
|
209 |
+
}
|
210 |
+
|
211 |
if ( null === $value || ( '' === $value && 'boolean' === $type ) || ( ! empty( $pod ) && empty( $id ) ) ) {
|
212 |
$value = self::default_value( $value, $type, $name, $options, $pod, $id );
|
213 |
}
|
238 |
}
|
239 |
|
240 |
if ( empty( $type ) ) {
|
241 |
+
return;
|
242 |
}
|
243 |
|
244 |
// @todo Move into DFV field method or Pods\Whatsit later
|
1375 |
$value = $default;
|
1376 |
}
|
1377 |
|
1378 |
+
if ( is_array( $value ) && 'multi' !== pods_v( $type . '_format_type' ) ) {
|
1379 |
$value = pods_serial_comma( $value, $name, [ $name => $options ] );
|
1380 |
}
|
1381 |
|
1930 |
return $field_types;
|
1931 |
}
|
1932 |
|
1933 |
+
/**
|
1934 |
+
* Get the list of field types that do not use serial comma separators.
|
1935 |
+
*
|
1936 |
+
* @since 2.9.4
|
1937 |
+
*
|
1938 |
+
* @return array The list of field types that do not use serial comma separators.
|
1939 |
+
*/
|
1940 |
+
public static function separator_excluded_field_types() {
|
1941 |
+
static $field_types = null;
|
1942 |
+
|
1943 |
+
if ( null === $field_types ) {
|
1944 |
+
$field_types = [
|
1945 |
+
'avatar',
|
1946 |
+
'code',
|
1947 |
+
'link',
|
1948 |
+
'oembed',
|
1949 |
+
'paragraph',
|
1950 |
+
'website',
|
1951 |
+
'wysiwyg',
|
1952 |
+
];
|
1953 |
+
|
1954 |
+
/**
|
1955 |
+
* Allow filtering of the list of field types that do not use serial comma separators.
|
1956 |
+
*
|
1957 |
+
* @since 2.8.0
|
1958 |
+
*
|
1959 |
+
* @param array $field_types The list of field types that do not use serial comma separators.
|
1960 |
+
*/
|
1961 |
+
$field_types = apply_filters( 'pods_separator_excluded_field_types', $field_types );
|
1962 |
+
}
|
1963 |
+
|
1964 |
+
return $field_types;
|
1965 |
+
}
|
1966 |
+
|
1967 |
/**
|
1968 |
* Get the list of simple tableless objects.
|
1969 |
*
|
@@ -2567,8 +2567,8 @@ class PodsInit {
|
|
2567 |
|
2568 |
// Add WP-CLI commands.
|
2569 |
if ( defined( 'WP_CLI' ) && WP_CLI ) {
|
2570 |
-
|
2571 |
-
|
2572 |
|
2573 |
tribe_register_provider( \Pods\CLI\Service_Provider::class );
|
2574 |
}
|
2567 |
|
2568 |
// Add WP-CLI commands.
|
2569 |
if ( defined( 'WP_CLI' ) && WP_CLI ) {
|
2570 |
+
require_once PODS_DIR . 'classes/cli/Pods_CLI_Command.php';
|
2571 |
+
require_once PODS_DIR . 'classes/cli/PodsAPI_CLI_Command.php';
|
2572 |
|
2573 |
tribe_register_provider( \Pods\CLI\Service_Provider::class );
|
2574 |
}
|
@@ -705,7 +705,6 @@ class PodsMeta {
|
|
705 |
|
706 |
$defaults = array(
|
707 |
'name' => $name,
|
708 |
-
'type' => 'text'
|
709 |
);
|
710 |
|
711 |
$is_field_object = $field instanceof Field;
|
@@ -723,7 +722,7 @@ class PodsMeta {
|
|
723 |
$field['name'] = trim( $field['name'] );
|
724 |
|
725 |
if ( isset( $pod['fields'] ) && isset( $pod['fields'][ $field['name'] ] ) ) {
|
726 |
-
$is_field_hidden = (
|
727 |
|
728 |
$field = pods_config_merge_data( $pod['fields'][ $field['name'] ], $field );
|
729 |
|
@@ -737,6 +736,11 @@ class PodsMeta {
|
|
737 |
}
|
738 |
}
|
739 |
|
|
|
|
|
|
|
|
|
|
|
740 |
if ( empty( $field['label'] ) ) {
|
741 |
$field['label'] = $field['name'];
|
742 |
}
|
@@ -1170,10 +1174,12 @@ class PodsMeta {
|
|
1170 |
pods_form_enqueue_style( 'pods-form' );
|
1171 |
pods_form_enqueue_script( 'pods' );
|
1172 |
|
1173 |
-
$pod_type
|
|
|
1174 |
|
1175 |
if ( 'attachment' == $post->post_type ) {
|
1176 |
-
$pod_type
|
|
|
1177 |
}
|
1178 |
|
1179 |
do_action( 'pods_meta_meta_post', $post );
|
@@ -1184,7 +1190,7 @@ class PodsMeta {
|
|
1184 |
$id = $post->ID;
|
1185 |
}
|
1186 |
|
1187 |
-
$pod = $this->maybe_set_up_pod( $metabox['args']['group']['pod']['name'], $id,
|
1188 |
|
1189 |
$fields = $metabox['args']['group']['fields'];
|
1190 |
|
@@ -1207,7 +1213,7 @@ class PodsMeta {
|
|
1207 |
return;
|
1208 |
}
|
1209 |
|
1210 |
-
echo PodsForm::field( 'pods_meta', wp_create_nonce( 'pods_meta_' . $
|
1211 |
?>
|
1212 |
<table class="form-table pods-metabox pods-admin pods-dependency">
|
1213 |
<?php
|
@@ -1215,13 +1221,14 @@ class PodsMeta {
|
|
1215 |
$field_row_classes = 'form-field pods-field-input';
|
1216 |
$th_scope = 'row';
|
1217 |
|
1218 |
-
$value_callback = static function( $field_name, $id, $field, $pod ) {
|
1219 |
-
pods_no_conflict_on(
|
1220 |
|
1221 |
$value = null;
|
1222 |
|
1223 |
if ( ! empty( $pod ) ) {
|
1224 |
-
|
|
|
1225 |
} elseif ( ! empty( $id ) ) {
|
1226 |
$value = get_post_meta( $id, $field['name'], true );
|
1227 |
}
|
@@ -1235,7 +1242,7 @@ class PodsMeta {
|
|
1235 |
}
|
1236 |
}
|
1237 |
|
1238 |
-
pods_no_conflict_off(
|
1239 |
|
1240 |
return $value;
|
1241 |
};
|
@@ -1391,7 +1398,7 @@ class PodsMeta {
|
|
1391 |
}
|
1392 |
|
1393 |
if ( ! pods_permission( $field ) ) {
|
1394 |
-
if (
|
1395 |
continue;
|
1396 |
}
|
1397 |
}
|
@@ -1512,7 +1519,7 @@ class PodsMeta {
|
|
1512 |
|
1513 |
foreach ( $group['fields'] as $field ) {
|
1514 |
if ( ! pods_permission( $field ) ) {
|
1515 |
-
if (
|
1516 |
continue;
|
1517 |
}
|
1518 |
}
|
@@ -2114,7 +2121,7 @@ class PodsMeta {
|
|
2114 |
}
|
2115 |
|
2116 |
if ( ! pods_permission( $field ) ) {
|
2117 |
-
if (
|
2118 |
continue;
|
2119 |
}
|
2120 |
}
|
@@ -2264,7 +2271,7 @@ class PodsMeta {
|
|
2264 |
};
|
2265 |
|
2266 |
foreach ( $fields as $field ) {
|
2267 |
-
$hidden_field = (
|
2268 |
|
2269 |
if (
|
2270 |
! pods_permission( $field )
|
@@ -2340,7 +2347,7 @@ class PodsMeta {
|
|
2340 |
|
2341 |
foreach ( $group['fields'] as $field ) {
|
2342 |
if ( ! PodsForm::permission( $field ) ) {
|
2343 |
-
if ( pods_v( 'hidden', $field,
|
2344 |
$field_found = true;
|
2345 |
break;
|
2346 |
} else {
|
705 |
|
706 |
$defaults = array(
|
707 |
'name' => $name,
|
|
|
708 |
);
|
709 |
|
710 |
$is_field_object = $field instanceof Field;
|
722 |
$field['name'] = trim( $field['name'] );
|
723 |
|
724 |
if ( isset( $pod['fields'] ) && isset( $pod['fields'][ $field['name'] ] ) ) {
|
725 |
+
$is_field_hidden = 1 === (int) pods_v( 'hidden', $field, 0 );
|
726 |
|
727 |
$field = pods_config_merge_data( $pod['fields'][ $field['name'] ], $field );
|
728 |
|
736 |
}
|
737 |
}
|
738 |
|
739 |
+
// Set the default type.
|
740 |
+
if ( empty( $field['type'] ) ) {
|
741 |
+
$field['type'] = 'text';
|
742 |
+
}
|
743 |
+
|
744 |
if ( empty( $field['label'] ) ) {
|
745 |
$field['label'] = $field['name'];
|
746 |
}
|
1174 |
pods_form_enqueue_style( 'pods-form' );
|
1175 |
pods_form_enqueue_script( 'pods' );
|
1176 |
|
1177 |
+
$pod_type = 'post_type';
|
1178 |
+
$pod_meta_type = 'post';
|
1179 |
|
1180 |
if ( 'attachment' == $post->post_type ) {
|
1181 |
+
$pod_type = 'media';
|
1182 |
+
$pod_meta_type = 'media';
|
1183 |
}
|
1184 |
|
1185 |
do_action( 'pods_meta_meta_post', $post );
|
1190 |
$id = $post->ID;
|
1191 |
}
|
1192 |
|
1193 |
+
$pod = $this->maybe_set_up_pod( $metabox['args']['group']['pod']['name'], $id, $pod_type );
|
1194 |
|
1195 |
$fields = $metabox['args']['group']['fields'];
|
1196 |
|
1213 |
return;
|
1214 |
}
|
1215 |
|
1216 |
+
echo PodsForm::field( 'pods_meta', wp_create_nonce( 'pods_meta_' . $pod_meta_type ), 'hidden' );
|
1217 |
?>
|
1218 |
<table class="form-table pods-metabox pods-admin pods-dependency">
|
1219 |
<?php
|
1221 |
$field_row_classes = 'form-field pods-field-input';
|
1222 |
$th_scope = 'row';
|
1223 |
|
1224 |
+
$value_callback = static function( $field_name, $id, $field, $pod ) use ( $pod_meta_type ) {
|
1225 |
+
pods_no_conflict_on( $pod_meta_type );
|
1226 |
|
1227 |
$value = null;
|
1228 |
|
1229 |
if ( ! empty( $pod ) ) {
|
1230 |
+
/** @var Pods $pod */
|
1231 |
+
$value = $pod->field( [ 'name' => $field['name'], 'in_form' => true ] );
|
1232 |
} elseif ( ! empty( $id ) ) {
|
1233 |
$value = get_post_meta( $id, $field['name'], true );
|
1234 |
}
|
1242 |
}
|
1243 |
}
|
1244 |
|
1245 |
+
pods_no_conflict_off( $pod_meta_type );
|
1246 |
|
1247 |
return $value;
|
1248 |
};
|
1398 |
}
|
1399 |
|
1400 |
if ( ! pods_permission( $field ) ) {
|
1401 |
+
if ( 1 !== (int) pods_v( 'hidden', $field, 0 ) ) {
|
1402 |
continue;
|
1403 |
}
|
1404 |
}
|
1519 |
|
1520 |
foreach ( $group['fields'] as $field ) {
|
1521 |
if ( ! pods_permission( $field ) ) {
|
1522 |
+
if ( 1 !== (int) pods_v( 'hidden', $field, 0 ) ) {
|
1523 |
continue;
|
1524 |
}
|
1525 |
}
|
2121 |
}
|
2122 |
|
2123 |
if ( ! pods_permission( $field ) ) {
|
2124 |
+
if ( 1 !== (int) pods_v( 'hidden', $field, 0 ) ) {
|
2125 |
continue;
|
2126 |
}
|
2127 |
}
|
2271 |
};
|
2272 |
|
2273 |
foreach ( $fields as $field ) {
|
2274 |
+
$hidden_field = 1 === (int) pods_v( 'hidden', $field, 0 );
|
2275 |
|
2276 |
if (
|
2277 |
! pods_permission( $field )
|
2347 |
|
2348 |
foreach ( $group['fields'] as $field ) {
|
2349 |
if ( ! PodsForm::permission( $field ) ) {
|
2350 |
+
if ( 1 === (int) pods_v( 'hidden', $field, 0 ) ) {
|
2351 |
$field_found = true;
|
2352 |
break;
|
2353 |
} else {
|
@@ -104,111 +104,126 @@ class PodsRESTHandlers {
|
|
104 |
$value = false;
|
105 |
|
106 |
if ( $pod && PodsRESTFields::field_allowed_to_extend( $field_name, $pod, 'read' ) ) {
|
107 |
-
$
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
$
|
131 |
-
|
132 |
-
if (
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
if ( $related_pod_items ) {
|
140 |
-
$fields = false;
|
141 |
-
$items = array();
|
142 |
-
$depth = (int) pods_v( 'rest_pick_depth', $field_data, 2 );
|
143 |
-
|
144 |
-
if ( ! is_array( $related_pod_items ) ) {
|
145 |
-
$related_pod_items = array( $related_pod_items );
|
146 |
}
|
|
|
|
|
|
|
147 |
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
if ( ! is_object( $related_pod ) || ! $related_pod instanceof Pods ) {
|
153 |
-
$items = $related_pod_items;
|
154 |
|
155 |
-
|
|
|
156 |
}
|
157 |
|
158 |
-
|
159 |
-
|
160 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
161 |
|
162 |
/**
|
163 |
-
* What
|
164 |
*
|
165 |
* @since 0.0.1
|
166 |
*
|
167 |
-
* @param
|
168 |
* @param string $field_name The name of the field
|
169 |
* @param object|Pods $pod The Pods object for Pod relationship is from.
|
170 |
* @param object|Pods $related_pod The Pods object for Pod relationship is to.
|
171 |
* @param int $id Current item ID
|
172 |
* @param object|WP_REST_Request $request Current request object.
|
173 |
*/
|
174 |
-
$
|
175 |
-
}//end if
|
176 |
-
|
177 |
-
/**
|
178 |
-
* What depth to use for a related field REST response.
|
179 |
-
*
|
180 |
-
* @since 0.0.1
|
181 |
-
*
|
182 |
-
* @param int $depth The depth number to limit to.
|
183 |
-
* @param string $field_name The name of the field
|
184 |
-
* @param object|Pods $pod The Pods object for Pod relationship is from.
|
185 |
-
* @param object|Pods $related_pod The Pods object for Pod relationship is to.
|
186 |
-
* @param int $id Current item ID
|
187 |
-
* @param object|WP_REST_Request $request Current request object.
|
188 |
-
*/
|
189 |
-
$related_depth = (int) apply_filters( 'pods_rest_api_depth_for_relationship_response', $depth, $field_name, $pod, $related_pod, $id, $request );
|
190 |
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
|
197 |
-
|
198 |
-
|
199 |
|
200 |
-
|
|
|
201 |
}//end if
|
|
|
|
|
|
|
|
|
202 |
}//end if
|
203 |
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
|
|
208 |
|
209 |
-
//
|
210 |
-
if (
|
211 |
-
$value =
|
|
|
|
|
|
|
|
|
|
|
212 |
}
|
213 |
}//end if
|
214 |
|
104 |
$value = false;
|
105 |
|
106 |
if ( $pod && PodsRESTFields::field_allowed_to_extend( $field_name, $pod, 'read' ) ) {
|
107 |
+
$field_mode = pods_v( 'rest_api_field_mode', $pod->pod_data, 'value', true );
|
108 |
+
|
109 |
+
// Only deal with raw values if not in rendered field mode.
|
110 |
+
if ( 'rendered' !== $field_mode ) {
|
111 |
+
$params = null;
|
112 |
+
|
113 |
+
$field_data = $pod->fields( $field_name );
|
114 |
+
|
115 |
+
if ( 'pick' === pods_v( 'type', $field_data ) ) {
|
116 |
+
$output_type = pods_v( 'rest_pick_response', $field_data, 'array' );
|
117 |
+
|
118 |
+
/**
|
119 |
+
* What output type to use for a related field REST response.
|
120 |
+
*
|
121 |
+
* @since 2.7.0
|
122 |
+
*
|
123 |
+
* @param string $output_type The pick response output type.
|
124 |
+
* @param string $field_name The name of the field
|
125 |
+
* @param array $field_data The field data
|
126 |
+
* @param object|Pods $pod The Pods object for Pod relationship is from.
|
127 |
+
* @param int $id Current item ID
|
128 |
+
* @param object|WP_REST_Request Current request object.
|
129 |
+
*/
|
130 |
+
$output_type = apply_filters( 'pods_rest_api_output_type_for_relationship_response', $output_type, $field_name, $field_data, $pod, $id, $request );
|
131 |
+
|
132 |
+
if ( 'custom' === $output_type ) {
|
133 |
+
// Support custom selectors for the response.
|
134 |
+
$custom_selector = pods_v( 'rest_pick_custom', $field_data, $field_name );
|
135 |
+
|
136 |
+
if ( ! empty( $custom_selector ) ) {
|
137 |
+
$field_name = $custom_selector;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
138 |
}
|
139 |
+
} elseif ( 'array' === $output_type ) {
|
140 |
+
// Support fully fleshed out data for the response.
|
141 |
+
$related_pod_items = $pod->field( $field_name, array( 'output' => 'pod' ) );
|
142 |
|
143 |
+
if ( $related_pod_items ) {
|
144 |
+
$fields = false;
|
145 |
+
$items = array();
|
146 |
+
$depth = (int) pods_v( 'rest_pick_depth', $field_data, 2 );
|
|
|
|
|
147 |
|
148 |
+
if ( ! is_array( $related_pod_items ) ) {
|
149 |
+
$related_pod_items = array( $related_pod_items );
|
150 |
}
|
151 |
|
152 |
+
/**
|
153 |
+
* @var $related_pod Pods
|
154 |
+
*/
|
155 |
+
foreach ( $related_pod_items as $related_pod ) {
|
156 |
+
if ( ! is_object( $related_pod ) || ! $related_pod instanceof Pods ) {
|
157 |
+
$items = $related_pod_items;
|
158 |
+
|
159 |
+
break;
|
160 |
+
}
|
161 |
+
|
162 |
+
if ( false === $fields ) {
|
163 |
+
$fields = pods_config_get_all_fields( $related_pod );
|
164 |
+
$fields = array_keys( $fields );
|
165 |
+
|
166 |
+
/**
|
167 |
+
* What fields to show in a related field REST response.
|
168 |
+
*
|
169 |
+
* @since 0.0.1
|
170 |
+
*
|
171 |
+
* @param array $fields The fields to show
|
172 |
+
* @param string $field_name The name of the field
|
173 |
+
* @param object|Pods $pod The Pods object for Pod relationship is from.
|
174 |
+
* @param object|Pods $related_pod The Pods object for Pod relationship is to.
|
175 |
+
* @param int $id Current item ID
|
176 |
+
* @param object|WP_REST_Request $request Current request object.
|
177 |
+
*/
|
178 |
+
$fields = apply_filters( 'pods_rest_api_fields_for_relationship_response', $fields, $field_name, $pod, $related_pod, $id, $request );
|
179 |
+
}//end if
|
180 |
|
181 |
/**
|
182 |
+
* What depth to use for a related field REST response.
|
183 |
*
|
184 |
* @since 0.0.1
|
185 |
*
|
186 |
+
* @param int $depth The depth number to limit to.
|
187 |
* @param string $field_name The name of the field
|
188 |
* @param object|Pods $pod The Pods object for Pod relationship is from.
|
189 |
* @param object|Pods $related_pod The Pods object for Pod relationship is to.
|
190 |
* @param int $id Current item ID
|
191 |
* @param object|WP_REST_Request $request Current request object.
|
192 |
*/
|
193 |
+
$related_depth = (int) apply_filters( 'pods_rest_api_depth_for_relationship_response', $depth, $field_name, $pod, $related_pod, $id, $request );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
194 |
|
195 |
+
$params = array(
|
196 |
+
'fields' => $fields,
|
197 |
+
'depth' => $related_depth,
|
198 |
+
'context' => 'rest',
|
199 |
+
);
|
200 |
|
201 |
+
$items[] = $related_pod->export( $params );
|
202 |
+
}//end foreach
|
203 |
|
204 |
+
$value = $items;
|
205 |
+
}//end if
|
206 |
}//end if
|
207 |
+
|
208 |
+
$params = array(
|
209 |
+
'output' => $output_type,
|
210 |
+
);
|
211 |
}//end if
|
212 |
|
213 |
+
// If no value set yet, get normal field value
|
214 |
+
if ( ! $value && ! is_array( $value ) ) {
|
215 |
+
$value = $pod->field( $field_name, $params );
|
216 |
+
}
|
217 |
+
}
|
218 |
|
219 |
+
// Handle other field modes.
|
220 |
+
if ( 'value_and_render' === $field_mode ) {
|
221 |
+
$value = [
|
222 |
+
'value' => $value,
|
223 |
+
'rendered' => $pod->display( $field_name ),
|
224 |
+
];
|
225 |
+
} elseif ( 'render' === $field_mode ) {
|
226 |
+
$value = $pod->display( $field_name );
|
227 |
}
|
228 |
}//end if
|
229 |
|
@@ -18,10 +18,10 @@ class PodsAPI_CLI_Command extends WP_CLI_Command {
|
|
18 |
*
|
19 |
* ## EXAMPLES
|
20 |
*
|
21 |
-
* wp pods-api add-pod --name=book
|
22 |
-
* wp pods-api add-pod --name=book --type=post_type
|
23 |
-
* wp pods-api add-pod --name=book --type=post_type --label=Books --singular_label=Book
|
24 |
-
* wp pods-api add-pod --name=genre --type=taxonomy --label=Genres --singular_label=Genre
|
25 |
*
|
26 |
* @subcommand add-pod
|
27 |
*
|
@@ -67,9 +67,9 @@ class PodsAPI_CLI_Command extends WP_CLI_Command {
|
|
67 |
*
|
68 |
* ## EXAMPLES
|
69 |
*
|
70 |
-
* wp pods-api save-pod --name=book --type=post_type
|
71 |
-
* wp pods-api save-pod --name=book --type=post_type --label=Books --singular_label=Book
|
72 |
-
* wp pods-api save-pod --name=genre --type=taxonomy --label=Genres --singular_label=Genre
|
73 |
*
|
74 |
* @subcommand save-pod
|
75 |
*
|
@@ -124,9 +124,9 @@ class PodsAPI_CLI_Command extends WP_CLI_Command {
|
|
124 |
*
|
125 |
* ## EXAMPLES
|
126 |
*
|
127 |
-
* wp pods-api duplicate-pod --name=book
|
128 |
-
* wp pods-api duplicate-pod --name=book --new_name=book2
|
129 |
-
* wp pods-api duplicate-pod --name=book --new_name=book2 --label="Books Two" --singular_label="Book Two"
|
130 |
*
|
131 |
* @subcommand duplicate-pod
|
132 |
*
|
@@ -175,7 +175,7 @@ class PodsAPI_CLI_Command extends WP_CLI_Command {
|
|
175 |
*
|
176 |
* ## EXAMPLES
|
177 |
*
|
178 |
-
* wp pods-api reset-pod --name=book
|
179 |
*
|
180 |
* @subcommand reset-pod
|
181 |
*
|
@@ -221,8 +221,8 @@ class PodsAPI_CLI_Command extends WP_CLI_Command {
|
|
221 |
*
|
222 |
* ## EXAMPLES
|
223 |
*
|
224 |
-
* wp pods-api delete-pod --name=book
|
225 |
-
* wp pods-api delete-pod --name=book --delete_all
|
226 |
*
|
227 |
* @subcommand delete-pod
|
228 |
*
|
@@ -272,7 +272,7 @@ class PodsAPI_CLI_Command extends WP_CLI_Command {
|
|
272 |
*
|
273 |
* ## EXAMPLES
|
274 |
*
|
275 |
-
* wp pods-api activate-component --component=templates
|
276 |
*
|
277 |
* @subcommand activate-component
|
278 |
*
|
@@ -311,7 +311,7 @@ class PodsAPI_CLI_Command extends WP_CLI_Command {
|
|
311 |
*
|
312 |
* ## EXAMPLES
|
313 |
*
|
314 |
-
* wp pods-api deactivate-component --component=templates
|
315 |
*
|
316 |
* @subcommand deactivate-component
|
317 |
*
|
@@ -345,7 +345,7 @@ class PodsAPI_CLI_Command extends WP_CLI_Command {
|
|
345 |
*
|
346 |
* ## EXAMPLES
|
347 |
*
|
348 |
-
* wp pods-api clear-cache
|
349 |
*
|
350 |
* @subcommand clear-cache
|
351 |
*/
|
@@ -376,19 +376,19 @@ class PodsAPI_CLI_Command extends WP_CLI_Command {
|
|
376 |
*
|
377 |
* ## EXAMPLES
|
378 |
*
|
379 |
-
* wp pods-api export-pod --file="pods-package.json"
|
380 |
-
* wp pods-api export-pod --file="pods-package.json" --pods="book,genre"
|
381 |
-
* wp pods-api export-pod --file="/path/to/pods-package.json" --pods="book,genre"
|
382 |
-
* wp pods-api export-pod --templates="book-single,book-list" --file="pods-package.json"
|
383 |
-
* wp pods-api export-pod --pod-pages="books,books/*" --file="pods-package.json"
|
384 |
-
* wp pods-api export-pod --pods="book,genre" --templates="book-single,book-list" --pod-pages="books,books/*" --file="pods-package.json"
|
385 |
*
|
386 |
* @subcommand export-pod
|
387 |
*/
|
388 |
public function export_pod( $args, $assoc_args ) {
|
389 |
|
390 |
if ( ! PodsInit::$components->is_component_active( 'migrate-packages' ) ) {
|
391 |
-
WP_CLI::error( sprintf( __( 'Migrate Package is not activated. Try activating it: %s', 'pods' ), 'wp pods-api activate-component --component=migrate-packages' ) );
|
392 |
}
|
393 |
|
394 |
$params = array(
|
@@ -452,16 +452,16 @@ class PodsAPI_CLI_Command extends WP_CLI_Command {
|
|
452 |
*
|
453 |
* ## EXAMPLES
|
454 |
*
|
455 |
-
* wp pods-api import-pod --file="pods-package.json"
|
456 |
-
* wp pods-api import-pod --file="/path/to/pods-package.json"
|
457 |
-
* wp pods-api import-pod --file="pods-package.json" --replace
|
458 |
*
|
459 |
* @subcommand import-pod
|
460 |
*/
|
461 |
public function import_pod( $args, $assoc_args ) {
|
462 |
|
463 |
if ( ! PodsInit::$components->is_component_active( 'migrate-packages' ) ) {
|
464 |
-
WP_CLI::error( sprintf( __( 'Migrate Package is not activated. Try activating it: %s', 'pods' ), 'wp pods-api activate-component --component=migrate-packages' ) );
|
465 |
}
|
466 |
|
467 |
$replace = false;
|
18 |
*
|
19 |
* ## EXAMPLES
|
20 |
*
|
21 |
+
* wp pods-legacy-api add-pod --name=book
|
22 |
+
* wp pods-legacy-api add-pod --name=book --type=post_type
|
23 |
+
* wp pods-legacy-api add-pod --name=book --type=post_type --label=Books --singular_label=Book
|
24 |
+
* wp pods-legacy-api add-pod --name=genre --type=taxonomy --label=Genres --singular_label=Genre
|
25 |
*
|
26 |
* @subcommand add-pod
|
27 |
*
|
67 |
*
|
68 |
* ## EXAMPLES
|
69 |
*
|
70 |
+
* wp pods-legacy-api save-pod --name=book --type=post_type
|
71 |
+
* wp pods-legacy-api save-pod --name=book --type=post_type --label=Books --singular_label=Book
|
72 |
+
* wp pods-legacy-api save-pod --name=genre --type=taxonomy --label=Genres --singular_label=Genre
|
73 |
*
|
74 |
* @subcommand save-pod
|
75 |
*
|
124 |
*
|
125 |
* ## EXAMPLES
|
126 |
*
|
127 |
+
* wp pods-legacy-api duplicate-pod --name=book
|
128 |
+
* wp pods-legacy-api duplicate-pod --name=book --new_name=book2
|
129 |
+
* wp pods-legacy-api duplicate-pod --name=book --new_name=book2 --label="Books Two" --singular_label="Book Two"
|
130 |
*
|
131 |
* @subcommand duplicate-pod
|
132 |
*
|
175 |
*
|
176 |
* ## EXAMPLES
|
177 |
*
|
178 |
+
* wp pods-legacy-api reset-pod --name=book
|
179 |
*
|
180 |
* @subcommand reset-pod
|
181 |
*
|
221 |
*
|
222 |
* ## EXAMPLES
|
223 |
*
|
224 |
+
* wp pods-legacy-api delete-pod --name=book
|
225 |
+
* wp pods-legacy-api delete-pod --name=book --delete_all
|
226 |
*
|
227 |
* @subcommand delete-pod
|
228 |
*
|
272 |
*
|
273 |
* ## EXAMPLES
|
274 |
*
|
275 |
+
* wp pods-legacy-api activate-component --component=templates
|
276 |
*
|
277 |
* @subcommand activate-component
|
278 |
*
|
311 |
*
|
312 |
* ## EXAMPLES
|
313 |
*
|
314 |
+
* wp pods-legacy-api deactivate-component --component=templates
|
315 |
*
|
316 |
* @subcommand deactivate-component
|
317 |
*
|
345 |
*
|
346 |
* ## EXAMPLES
|
347 |
*
|
348 |
+
* wp pods-legacy-api clear-cache
|
349 |
*
|
350 |
* @subcommand clear-cache
|
351 |
*/
|
376 |
*
|
377 |
* ## EXAMPLES
|
378 |
*
|
379 |
+
* wp pods-legacy-api export-pod --file="pods-package.json"
|
380 |
+
* wp pods-legacy-api export-pod --file="pods-package.json" --pods="book,genre"
|
381 |
+
* wp pods-legacy-api export-pod --file="/path/to/pods-package.json" --pods="book,genre"
|
382 |
+
* wp pods-legacy-api export-pod --templates="book-single,book-list" --file="pods-package.json"
|
383 |
+
* wp pods-legacy-api export-pod --pod-pages="books,books/*" --file="pods-package.json"
|
384 |
+
* wp pods-legacy-api export-pod --pods="book,genre" --templates="book-single,book-list" --pod-pages="books,books/*" --file="pods-package.json"
|
385 |
*
|
386 |
* @subcommand export-pod
|
387 |
*/
|
388 |
public function export_pod( $args, $assoc_args ) {
|
389 |
|
390 |
if ( ! PodsInit::$components->is_component_active( 'migrate-packages' ) ) {
|
391 |
+
WP_CLI::error( sprintf( __( 'Migrate Package is not activated. Try activating it: %s', 'pods' ), 'wp pods-legacy-api activate-component --component=migrate-packages' ) );
|
392 |
}
|
393 |
|
394 |
$params = array(
|
452 |
*
|
453 |
* ## EXAMPLES
|
454 |
*
|
455 |
+
* wp pods-legacy-api import-pod --file="pods-package.json"
|
456 |
+
* wp pods-legacy-api import-pod --file="/path/to/pods-package.json"
|
457 |
+
* wp pods-legacy-api import-pod --file="pods-package.json" --replace
|
458 |
*
|
459 |
* @subcommand import-pod
|
460 |
*/
|
461 |
public function import_pod( $args, $assoc_args ) {
|
462 |
|
463 |
if ( ! PodsInit::$components->is_component_active( 'migrate-packages' ) ) {
|
464 |
+
WP_CLI::error( sprintf( __( 'Migrate Package is not activated. Try activating it: %s', 'pods' ), 'wp pods-legacy-api activate-component --component=migrate-packages' ) );
|
465 |
}
|
466 |
|
467 |
$replace = false;
|
@@ -18,7 +18,7 @@ class Pods_CLI_Command extends WP_CLI_Command {
|
|
18 |
*
|
19 |
* ## EXAMPLES
|
20 |
*
|
21 |
-
* wp pods add --pod=my_pod --my_field_name1=Value --my_field_name2="Another Value"
|
22 |
*
|
23 |
* @param $args
|
24 |
* @param $assoc_args
|
@@ -72,8 +72,8 @@ class Pods_CLI_Command extends WP_CLI_Command {
|
|
72 |
*
|
73 |
* ## EXAMPLES
|
74 |
*
|
75 |
-
* wp pods save --pod=my_pod --item=123 --my_field_name1=Value2 --my_field_name2="Another Value2"
|
76 |
-
* wp pods save --pod=my_settings_pod --my_option_field_name1=Value --my_option_field_name2="Another Value2"
|
77 |
*
|
78 |
* @param $args
|
79 |
* @param $assoc_args
|
@@ -133,7 +133,7 @@ class Pods_CLI_Command extends WP_CLI_Command {
|
|
133 |
*
|
134 |
* ## EXAMPLES
|
135 |
*
|
136 |
-
* wp pods duplicate --pod=my_pod --item=123
|
137 |
*
|
138 |
* @param $args
|
139 |
* @param $assoc_args
|
@@ -180,7 +180,7 @@ class Pods_CLI_Command extends WP_CLI_Command {
|
|
180 |
*
|
181 |
* ## EXAMPLES
|
182 |
*
|
183 |
-
* wp pods delete --pod=my_pod --item=123
|
184 |
*
|
185 |
* @param $args
|
186 |
* @param $assoc_args
|
@@ -235,10 +235,10 @@ class Pods_CLI_Command extends WP_CLI_Command {
|
|
235 |
*
|
236 |
* ## EXAMPLES
|
237 |
*
|
238 |
-
* wp pods export-item --pod=my_pod --item=123 --file="item-data.json"
|
239 |
-
* wp pods export-item --pod=my_pod --item=123 --file="/path/to/item-data.json"
|
240 |
-
* wp pods export-item --pod=my_pod --item=123 --file="item-data.json" --fields="ID,post_title,post_content,my_field_name1,my_field_name2"
|
241 |
-
* wp pods export-item --pod=my_pod --item=123 --file="item-data.json" --depth=2
|
242 |
*
|
243 |
* @subcommand export-item
|
244 |
*/
|
@@ -317,12 +317,12 @@ class Pods_CLI_Command extends WP_CLI_Command {
|
|
317 |
*
|
318 |
* ## EXAMPLES
|
319 |
*
|
320 |
-
* wp pods export --pod=my_pod --file="items.json"
|
321 |
-
* wp pods export --pod=my_pod --file="/path/to/items.json"
|
322 |
-
* wp pods export --pod=my_pod --file="items.json" --fields="ID,post_title,post_content,my_field_name1,my_field_name2"
|
323 |
-
* wp pods export --pod=my_pod --file="items.json" --depth=2
|
324 |
-
* wp pods export --pod=my_pod --file="items.json" --params="{\"limit\":10,\"orderby\":\"t.ID DESC\"}"
|
325 |
-
* wp pods export --pod=my_pod --file="items.json" --params="limit=10&orderby=t.ID DESC"
|
326 |
*/
|
327 |
public function export( $args, $assoc_args ) {
|
328 |
|
18 |
*
|
19 |
* ## EXAMPLES
|
20 |
*
|
21 |
+
* wp pods-legacy add --pod=my_pod --my_field_name1=Value --my_field_name2="Another Value"
|
22 |
*
|
23 |
* @param $args
|
24 |
* @param $assoc_args
|
72 |
*
|
73 |
* ## EXAMPLES
|
74 |
*
|
75 |
+
* wp pods-legacy save --pod=my_pod --item=123 --my_field_name1=Value2 --my_field_name2="Another Value2"
|
76 |
+
* wp pods-legacy save --pod=my_settings_pod --my_option_field_name1=Value --my_option_field_name2="Another Value2"
|
77 |
*
|
78 |
* @param $args
|
79 |
* @param $assoc_args
|
133 |
*
|
134 |
* ## EXAMPLES
|
135 |
*
|
136 |
+
* wp pods-legacy duplicate --pod=my_pod --item=123
|
137 |
*
|
138 |
* @param $args
|
139 |
* @param $assoc_args
|
180 |
*
|
181 |
* ## EXAMPLES
|
182 |
*
|
183 |
+
* wp pods-legacy delete --pod=my_pod --item=123
|
184 |
*
|
185 |
* @param $args
|
186 |
* @param $assoc_args
|
235 |
*
|
236 |
* ## EXAMPLES
|
237 |
*
|
238 |
+
* wp pods-legacy export-item --pod=my_pod --item=123 --file="item-data.json"
|
239 |
+
* wp pods-legacy export-item --pod=my_pod --item=123 --file="/path/to/item-data.json"
|
240 |
+
* wp pods-legacy export-item --pod=my_pod --item=123 --file="item-data.json" --fields="ID,post_title,post_content,my_field_name1,my_field_name2"
|
241 |
+
* wp pods-legacy export-item --pod=my_pod --item=123 --file="item-data.json" --depth=2
|
242 |
*
|
243 |
* @subcommand export-item
|
244 |
*/
|
317 |
*
|
318 |
* ## EXAMPLES
|
319 |
*
|
320 |
+
* wp pods-legacy export --pod=my_pod --file="items.json"
|
321 |
+
* wp pods-legacy export --pod=my_pod --file="/path/to/items.json"
|
322 |
+
* wp pods-legacy export --pod=my_pod --file="items.json" --fields="ID,post_title,post_content,my_field_name1,my_field_name2"
|
323 |
+
* wp pods-legacy export --pod=my_pod --file="items.json" --depth=2
|
324 |
+
* wp pods-legacy export --pod=my_pod --file="items.json" --params="{\"limit\":10,\"orderby\":\"t.ID DESC\"}"
|
325 |
+
* wp pods-legacy export --pod=my_pod --file="items.json" --params="limit=10&orderby=t.ID DESC"
|
326 |
*/
|
327 |
public function export( $args, $assoc_args ) {
|
328 |
|
@@ -5,6 +5,7 @@ use Pods\Whatsit\Pod;
|
|
5 |
use Pods\Whatsit\Field;
|
6 |
use Pods\Whatsit\Object_Field;
|
7 |
use Pods\API\Whatsit\Value_Field;
|
|
|
8 |
|
9 |
/**
|
10 |
* @package Pods\Fields
|
@@ -1055,7 +1056,7 @@ class PodsField_Pick extends PodsField {
|
|
1055 |
/**
|
1056 |
* Build DFV autocomplete AJAX data.
|
1057 |
*
|
1058 |
-
* @param array $options DFV options.
|
1059 |
* @param object $args {
|
1060 |
* Field information arguments.
|
1061 |
*
|
@@ -1072,13 +1073,23 @@ class PodsField_Pick extends PodsField {
|
|
1072 |
*/
|
1073 |
public function build_dfv_autocomplete_ajax_data( $options, $args, $ajax = false ) {
|
1074 |
|
1075 |
-
if (
|
1076 |
-
$
|
|
|
|
|
|
|
|
|
1077 |
} else {
|
1078 |
-
$
|
1079 |
}
|
1080 |
|
1081 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1082 |
|
1083 |
$id = (int) $args->id;
|
1084 |
|
@@ -1090,20 +1101,20 @@ class PodsField_Pick extends PodsField {
|
|
1090 |
|
1091 |
$uri_hash = wp_create_nonce( 'pods_uri_' . $_SERVER['REQUEST_URI'] );
|
1092 |
|
1093 |
-
$
|
|
|
1094 |
|
1095 |
// Values can be overridden via the `pods_field_dfv_data` filter in $data['fieldConfig']['ajax_data'].
|
1096 |
-
return
|
1097 |
'ajax' => $ajax,
|
1098 |
'delay' => 300,
|
1099 |
'minimum_input_length' => 1,
|
1100 |
-
'
|
1101 |
-
'
|
1102 |
'id' => $id,
|
1103 |
-
'
|
1104 |
'_wpnonce' => $field_nonce,
|
1105 |
-
|
1106 |
-
|
1107 |
}
|
1108 |
|
1109 |
/**
|
@@ -2743,8 +2754,6 @@ class PodsField_Pick extends PodsField {
|
|
2743 |
$ids = array();
|
2744 |
|
2745 |
if ( ! empty( $results ) ) {
|
2746 |
-
$display_filter = pods_v( 'display_filter', pods_v( $search_data->field_index, $search_data->object_fields ) );
|
2747 |
-
|
2748 |
foreach ( $results as $result ) {
|
2749 |
$result = get_object_vars( $result );
|
2750 |
$field_id = $search_data->field_id;
|
@@ -2771,8 +2780,12 @@ class PodsField_Pick extends PodsField {
|
|
2771 |
$object_type = 'taxonomy';
|
2772 |
}
|
2773 |
|
|
|
|
|
|
|
|
|
2774 |
if ( 0 < strlen( $display_filter ) ) {
|
2775 |
-
$display_filter_args = pods_v( 'display_filter_args',
|
2776 |
|
2777 |
$filter_args = array(
|
2778 |
$display_filter,
|
@@ -2922,15 +2935,33 @@ class PodsField_Pick extends PodsField {
|
|
2922 |
|
2923 |
$params = (object) $params;
|
2924 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2925 |
$uid = pods_session_id();
|
2926 |
|
2927 |
if ( is_user_logged_in() ) {
|
2928 |
$uid = 'user_' . get_current_user_id();
|
2929 |
}
|
2930 |
|
2931 |
-
$
|
2932 |
|
2933 |
-
if (
|
2934 |
pods_error( __( 'Unauthorized request', 'pods' ), PodsInit::$admin );
|
2935 |
}
|
2936 |
|
@@ -2938,25 +2969,18 @@ class PodsField_Pick extends PodsField {
|
|
2938 |
self::$api = pods_api();
|
2939 |
}
|
2940 |
|
2941 |
-
$pod
|
2942 |
-
|
2943 |
-
|
2944 |
-
'id' => (int) $params->field,
|
2945 |
-
'table_info' => true,
|
2946 |
-
)
|
2947 |
-
);
|
2948 |
-
$id = (int) $params->id;
|
2949 |
|
2950 |
-
$
|
2951 |
-
|
2952 |
-
if ( isset( $params->limit ) ) {
|
2953 |
-
$limit = (int) $params->limit;
|
2954 |
}
|
2955 |
|
2956 |
-
$
|
2957 |
|
2958 |
-
if (
|
2959 |
-
|
2960 |
}
|
2961 |
|
2962 |
$autocomplete_formats = [
|
@@ -2964,15 +2988,7 @@ class PodsField_Pick extends PodsField {
|
|
2964 |
'list',
|
2965 |
];
|
2966 |
|
2967 |
-
if ( !
|
2968 |
-
pods_error( __( 'Invalid field request', 'pods' ), PodsInit::$admin );
|
2969 |
-
} elseif ( empty( $pod ) || empty( $field ) || (int) $pod['id'] !== (int) $field['pod_id'] || ! isset( $pod['fields'][ $field['name'] ] ) ) {
|
2970 |
-
pods_error( __( 'Invalid field request', 'pods' ), PodsInit::$admin );
|
2971 |
-
} elseif ( 'pick' !== $field['type'] || empty( $field['table_info'] ) ) {
|
2972 |
-
pods_error( __( 'Invalid field', 'pods' ), PodsInit::$admin );
|
2973 |
-
} elseif ( 'single' === pods_v( static::$type . '_format_type', $field ) && ! in_array( pods_v( static::$type . '_format_single', $field ), $autocomplete_formats, true ) ) {
|
2974 |
-
pods_error( __( 'Invalid field', 'pods' ), PodsInit::$admin );
|
2975 |
-
} elseif ( 'multi' === pods_v( static::$type . '_format_type', $field ) && ! in_array( pods_v( static::$type . '_format_multi', $field ), $autocomplete_formats, true ) ) {
|
2976 |
pods_error( __( 'Invalid field', 'pods' ), PodsInit::$admin );
|
2977 |
}
|
2978 |
|
5 |
use Pods\Whatsit\Field;
|
6 |
use Pods\Whatsit\Object_Field;
|
7 |
use Pods\API\Whatsit\Value_Field;
|
8 |
+
use Pods\Whatsit\Store;
|
9 |
|
10 |
/**
|
11 |
* @package Pods\Fields
|
1056 |
/**
|
1057 |
* Build DFV autocomplete AJAX data.
|
1058 |
*
|
1059 |
+
* @param array|Field $options DFV options.
|
1060 |
* @param object $args {
|
1061 |
* Field information arguments.
|
1062 |
*
|
1073 |
*/
|
1074 |
public function build_dfv_autocomplete_ajax_data( $options, $args, $ajax = false ) {
|
1075 |
|
1076 |
+
if ( is_array( $args->pod ) ) {
|
1077 |
+
$pod_name = $args->pod['name'];
|
1078 |
+
} elseif ( $args->pod instanceof Pods ) {
|
1079 |
+
$pod_name = $args->pod->pod;
|
1080 |
+
} elseif ( $args->pod instanceof Pod ) {
|
1081 |
+
$pod_name = $args->pod->get_name();
|
1082 |
} else {
|
1083 |
+
$pod_name = '';
|
1084 |
}
|
1085 |
|
1086 |
+
if ( is_array( $options ) ) {
|
1087 |
+
$field_name = pods_v( 'name', $options );
|
1088 |
+
} elseif ( $options instanceof Field ) {
|
1089 |
+
$field_name = $options->get_name();
|
1090 |
+
} else {
|
1091 |
+
$field_name = '';
|
1092 |
+
}
|
1093 |
|
1094 |
$id = (int) $args->id;
|
1095 |
|
1101 |
|
1102 |
$uri_hash = wp_create_nonce( 'pods_uri_' . $_SERVER['REQUEST_URI'] );
|
1103 |
|
1104 |
+
$nonce_name = 'pods_relationship:' . json_encode( compact( 'pod_name', 'field_name', 'uid', 'uri_hash', 'id' ) );
|
1105 |
+
$field_nonce = wp_create_nonce( $nonce_name );
|
1106 |
|
1107 |
// Values can be overridden via the `pods_field_dfv_data` filter in $data['fieldConfig']['ajax_data'].
|
1108 |
+
return [
|
1109 |
'ajax' => $ajax,
|
1110 |
'delay' => 300,
|
1111 |
'minimum_input_length' => 1,
|
1112 |
+
'pod_name' => $pod_name,
|
1113 |
+
'field_name' => $field_name,
|
1114 |
'id' => $id,
|
1115 |
+
'uri_hash' => $uri_hash,
|
1116 |
'_wpnonce' => $field_nonce,
|
1117 |
+
];
|
|
|
1118 |
}
|
1119 |
|
1120 |
/**
|
2754 |
$ids = array();
|
2755 |
|
2756 |
if ( ! empty( $results ) ) {
|
|
|
|
|
2757 |
foreach ( $results as $result ) {
|
2758 |
$result = get_object_vars( $result );
|
2759 |
$field_id = $search_data->field_id;
|
2780 |
$object_type = 'taxonomy';
|
2781 |
}
|
2782 |
|
2783 |
+
$field_index_data_to_use = pods_v( $field_index, $search_data->object_fields );
|
2784 |
+
|
2785 |
+
$display_filter = pods_v( 'display_filter', $field_index_data_to_use );
|
2786 |
+
|
2787 |
if ( 0 < strlen( $display_filter ) ) {
|
2788 |
+
$display_filter_args = pods_v( 'display_filter_args', $field_index_data_to_use );
|
2789 |
|
2790 |
$filter_args = array(
|
2791 |
$display_filter,
|
2935 |
|
2936 |
$params = (object) $params;
|
2937 |
|
2938 |
+
if ( ! isset( $params->_wpnonce, $params->pod_name, $params->field_name, $params->uri_hash, $params->id ) || false === wp_verify_nonce( $params->_wpnonce, $nonce_check ) ) {
|
2939 |
+
pods_error( __( 'Unauthorized request', 'pods' ), PodsInit::$admin );
|
2940 |
+
}
|
2941 |
+
|
2942 |
+
if ( ! isset( $params->query ) || '' === trim( $params->query ) ) {
|
2943 |
+
pods_error( __( 'Invalid field request', 'pods' ), PodsInit::$admin );
|
2944 |
+
}
|
2945 |
+
|
2946 |
+
$_wpnonce = $params->_wpnonce;
|
2947 |
+
$pod_name = $params->pod_name;
|
2948 |
+
$field_name = $params->field_name;
|
2949 |
+
$uri_hash = $params->uri_hash;
|
2950 |
+
$id = (int) $params->id;
|
2951 |
+
|
2952 |
+
$query = $params->query;
|
2953 |
+
$limit = pods_v( 'limit', $params, 15, true );
|
2954 |
+
$page = pods_v( 'page', $params, 1, true );
|
2955 |
+
|
2956 |
$uid = pods_session_id();
|
2957 |
|
2958 |
if ( is_user_logged_in() ) {
|
2959 |
$uid = 'user_' . get_current_user_id();
|
2960 |
}
|
2961 |
|
2962 |
+
$nonce_name = 'pods_relationship:' . json_encode( compact( 'pod_name', 'field_name', 'uid', 'uri_hash', 'id' ) );
|
2963 |
|
2964 |
+
if ( false === wp_verify_nonce( $_wpnonce, $nonce_name ) ) {
|
2965 |
pods_error( __( 'Unauthorized request', 'pods' ), PodsInit::$admin );
|
2966 |
}
|
2967 |
|
2969 |
self::$api = pods_api();
|
2970 |
}
|
2971 |
|
2972 |
+
$pod = self::$api->load_pod( [
|
2973 |
+
'name' => $pod_name,
|
2974 |
+
] );
|
|
|
|
|
|
|
|
|
|
|
2975 |
|
2976 |
+
if ( ! $pod ) {
|
2977 |
+
pods_error( __( 'Invalid Pod configuration', 'pods' ), PodsInit::$admin );
|
|
|
|
|
2978 |
}
|
2979 |
|
2980 |
+
$field = $pod->get_field( $field_name );
|
2981 |
|
2982 |
+
if ( ! $field ) {
|
2983 |
+
pods_error( __( 'Invalid Field configuration', 'pods' ), PodsInit::$admin );
|
2984 |
}
|
2985 |
|
2986 |
$autocomplete_formats = [
|
2988 |
'list',
|
2989 |
];
|
2990 |
|
2991 |
+
if ( ! $field->is_autocomplete_relationship() ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2992 |
pods_error( __( 'Invalid field', 'pods' ), PodsInit::$admin );
|
2993 |
}
|
2994 |
|
@@ -261,7 +261,7 @@ class PodsField_WYSIWYG extends PodsField {
|
|
261 |
$field_type = 'tinymce';
|
262 |
|
263 |
// Enforce boolean.
|
264 |
-
$options[ static::$type . '_media_buttons' ] = filter_var( pods_v( static::$type . '
|
265 |
|
266 |
// Set up default editor.
|
267 |
// @todo Support this properly in React, which will be a challenge.
|
@@ -279,7 +279,9 @@ class PodsField_WYSIWYG extends PodsField {
|
|
279 |
$settings['media_buttons'] = false;
|
280 |
|
281 |
if ( ! ( defined( 'PODS_DISABLE_FILE_UPLOAD' ) && true === PODS_DISABLE_FILE_UPLOAD ) && ! ( defined( 'PODS_UPLOAD_REQUIRE_LOGIN' ) && is_bool( PODS_UPLOAD_REQUIRE_LOGIN ) && true === PODS_UPLOAD_REQUIRE_LOGIN && ! is_user_logged_in() ) && ! ( defined( 'PODS_UPLOAD_REQUIRE_LOGIN' ) && ! is_bool( PODS_UPLOAD_REQUIRE_LOGIN ) && ( ! is_user_logged_in() || ! current_user_can( PODS_UPLOAD_REQUIRE_LOGIN ) ) ) ) {
|
282 |
-
$settings['media_buttons'] =
|
|
|
|
|
283 |
}
|
284 |
|
285 |
$editor_height = (int) pods_v( static::$type . '_editor_height', $options, false );
|
@@ -306,7 +308,14 @@ class PodsField_WYSIWYG extends PodsField {
|
|
306 |
unset( $styles->done[ $found_editor_buttons ] );
|
307 |
}
|
308 |
|
|
|
|
|
|
|
|
|
|
|
|
|
309 |
wp_print_styles( 'editor-buttons' );
|
|
|
310 |
} elseif ( 'quill' === pods_v( static::$type . '_editor', $options ) ) {
|
311 |
$field_type = 'quill';
|
312 |
} elseif ( 'cleditor' === pods_v( static::$type . '_editor', $options ) ) {
|
261 |
$field_type = 'tinymce';
|
262 |
|
263 |
// Enforce boolean.
|
264 |
+
$options[ static::$type . '_media_buttons' ] = filter_var( pods_v( static::$type . '_media_buttons', $options, true ), FILTER_VALIDATE_BOOLEAN );
|
265 |
|
266 |
// Set up default editor.
|
267 |
// @todo Support this properly in React, which will be a challenge.
|
279 |
$settings['media_buttons'] = false;
|
280 |
|
281 |
if ( ! ( defined( 'PODS_DISABLE_FILE_UPLOAD' ) && true === PODS_DISABLE_FILE_UPLOAD ) && ! ( defined( 'PODS_UPLOAD_REQUIRE_LOGIN' ) && is_bool( PODS_UPLOAD_REQUIRE_LOGIN ) && true === PODS_UPLOAD_REQUIRE_LOGIN && ! is_user_logged_in() ) && ! ( defined( 'PODS_UPLOAD_REQUIRE_LOGIN' ) && ! is_bool( PODS_UPLOAD_REQUIRE_LOGIN ) && ( ! is_user_logged_in() || ! current_user_can( PODS_UPLOAD_REQUIRE_LOGIN ) ) ) ) {
|
282 |
+
$settings['media_buttons'] = $options[ static::$type . '_media_buttons' ];
|
283 |
+
} else {
|
284 |
+
$options[ static::$type . '_media_buttons' ] = false;
|
285 |
}
|
286 |
|
287 |
$editor_height = (int) pods_v( static::$type . '_editor_height', $options, false );
|
308 |
unset( $styles->done[ $found_editor_buttons ] );
|
309 |
}
|
310 |
|
311 |
+
$found_dashicons = array_search( 'dashicons', $styles->done, true );
|
312 |
+
|
313 |
+
if ( false !== $found_dashicons ) {
|
314 |
+
unset( $styles->done[ $found_dashicons ] );
|
315 |
+
}
|
316 |
+
|
317 |
wp_print_styles( 'editor-buttons' );
|
318 |
+
wp_print_styles( 'dashicons' );
|
319 |
} elseif ( 'quill' === pods_v( static::$type . '_editor', $options ) ) {
|
320 |
$field_type = 'quill';
|
321 |
} elseif ( 'cleditor' === pods_v( static::$type . '_editor', $options ) ) {
|
@@ -361,6 +361,7 @@ function pods_v( $var = null, $type = 'get', $default = null, $strict = false, $
|
|
361 |
$defaults = array(
|
362 |
'casting' => false,
|
363 |
'allowed' => null,
|
|
|
364 |
);
|
365 |
|
366 |
$params = (object) array_merge( $defaults, (array) $params );
|
@@ -379,6 +380,46 @@ function pods_v( $var = null, $type = 'get', $default = null, $strict = false, $
|
|
379 |
}
|
380 |
} else {
|
381 |
$type = strtolower( (string) $type );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
382 |
switch ( $type ) {
|
383 |
case 'get':
|
384 |
if ( isset( $_GET[ $var ] ) ) {
|
@@ -640,7 +681,9 @@ function pods_v( $var = null, $type = 'get', $default = null, $strict = false, $
|
|
640 |
$var = 'ID';
|
641 |
}
|
642 |
|
643 |
-
if (
|
|
|
|
|
644 |
$value = $user->{$var};
|
645 |
} elseif ( 'role' === $var ) {
|
646 |
$value = '';
|
@@ -1134,7 +1177,7 @@ function pods_query_arg( $array = null, $allowed = null, $excluded = null, $url
|
|
1134 |
$allowed = array_unique( array_merge( $pods_query_args['allowed'], $allowed ) );
|
1135 |
$excluded = array_unique( array_merge( $pods_query_args['excluded'], $excluded ) );
|
1136 |
|
1137 |
-
if ( ! isset( $_GET ) ) {
|
1138 |
$query_args = array();
|
1139 |
} else {
|
1140 |
$query_args = pods_unsanitize( $_GET );
|
@@ -1255,6 +1298,7 @@ function pods_cast( $value, $cast_from = null ) {
|
|
1255 |
* @since 1.8.9
|
1256 |
*/
|
1257 |
function pods_create_slug( $orig, $strict = true ) {
|
|
|
1258 |
$str = preg_replace( '/([_ \\/])/', '-', trim( $orig ) );
|
1259 |
|
1260 |
if ( $strict ) {
|
@@ -1355,6 +1399,7 @@ function pods_unique_slug( $slug, $column_name, $pod, $pod_id = 0, $id = 0, $obj
|
|
1355 |
*/
|
1356 |
function pods_clean_name( $orig, $lower = true, $trim_underscores = false ) {
|
1357 |
$str = trim( $orig );
|
|
|
1358 |
$str = preg_replace( '/([^0-9a-zA-Z\-_\s])/', '', $str );
|
1359 |
$str = preg_replace( '/(\s_)/', '_', $str );
|
1360 |
$str = preg_replace( '/(\s+)/', '_', $str );
|
@@ -1780,24 +1825,43 @@ function pods_evaluate_tag( $tag, $args = array() ) {
|
|
1780 |
'prefix',
|
1781 |
);
|
1782 |
|
|
|
|
|
|
|
1783 |
if ( in_array( $tag[0], $single_supported, true ) ) {
|
1784 |
-
$
|
1785 |
} elseif ( 1 === count( $tag ) ) {
|
1786 |
-
$
|
1787 |
} elseif ( 2 === count( $tag ) ) {
|
1788 |
-
$
|
|
|
1789 |
} else {
|
1790 |
// Some magic tags support traversal.
|
1791 |
-
$
|
|
|
1792 |
}
|
1793 |
|
|
|
|
|
|
|
|
|
1794 |
if ( $helper ) {
|
1795 |
if ( ! $pod instanceof Pods ) {
|
1796 |
$pod = pods();
|
1797 |
}
|
|
|
1798 |
$value = $pod->helper( $helper, $value );
|
1799 |
}
|
1800 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1801 |
$value = apply_filters( 'pods_evaluate_tag', $value, $tag, $fallback );
|
1802 |
|
1803 |
if ( is_array( $value ) && 1 === count( $value ) ) {
|
@@ -1865,19 +1929,40 @@ function pods_serial_comma( $value, $field = null, $fields = null, $and = null,
|
|
1865 |
if ( ! empty( $params->fields ) && is_array( $params->fields ) && isset( $params->fields[ $params->field ] ) ) {
|
1866 |
$params->field = $params->fields[ $params->field ];
|
1867 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1868 |
$simple_tableless_objects = PodsForm::simple_tableless_objects();
|
1869 |
|
1870 |
if ( ! empty( $params->field ) && ! is_string( $params->field ) && in_array( $params->field['type'], PodsForm::tableless_field_types(), true ) ) {
|
|
|
|
|
1871 |
if ( in_array( $params->field['type'], PodsForm::file_field_types(), true ) ) {
|
1872 |
if ( null === $params->field_index ) {
|
1873 |
$params->field_index = 'guid';
|
1874 |
}
|
1875 |
-
} elseif ( in_array( $
|
1876 |
$simple = true;
|
1877 |
} else {
|
1878 |
-
$
|
1879 |
-
$
|
1880 |
-
$table = null;
|
1881 |
|
1882 |
if ( ! empty( $pick_object ) && ( ! empty( $pick_val ) || in_array( $pick_object, array( 'user', 'media', 'comment' ), true ) ) ) {
|
1883 |
$table = pods_api()->get_table_info(
|
@@ -1920,15 +2005,7 @@ function pods_serial_comma( $value, $field = null, $fields = null, $and = null,
|
|
1920 |
|
1921 |
$original_value = $value;
|
1922 |
|
1923 |
-
$separator_excluded =
|
1924 |
-
'avatar',
|
1925 |
-
'code',
|
1926 |
-
'link',
|
1927 |
-
'oembed',
|
1928 |
-
'paragraph',
|
1929 |
-
'website',
|
1930 |
-
'wysiwyg',
|
1931 |
-
];
|
1932 |
|
1933 |
$basic_separator = $params->field && in_array( $params->field['type'], $separator_excluded, true );
|
1934 |
|
361 |
$defaults = array(
|
362 |
'casting' => false,
|
363 |
'allowed' => null,
|
364 |
+
'source' => null,
|
365 |
);
|
366 |
|
367 |
$params = (object) array_merge( $defaults, (array) $params );
|
380 |
}
|
381 |
} else {
|
382 |
$type = strtolower( (string) $type );
|
383 |
+
|
384 |
+
if ( $params->source ) {
|
385 |
+
// Using keys for faster isset() checks instead of in_array().
|
386 |
+
$disallowed_types = [];
|
387 |
+
|
388 |
+
if ( 'magic-tag' === $params->source ) {
|
389 |
+
$disallowed_types = [
|
390 |
+
'server' => false,
|
391 |
+
'session' => false,
|
392 |
+
'global' => false,
|
393 |
+
'globals' => false,
|
394 |
+
'cookie' => false,
|
395 |
+
'constant' => false,
|
396 |
+
'option' => false,
|
397 |
+
'site-option' => false,
|
398 |
+
'transient' => false,
|
399 |
+
'site-transient' => false,
|
400 |
+
'cache' => false,
|
401 |
+
'pods-transient' => false,
|
402 |
+
'pods-site-transient' => false,
|
403 |
+
'pods-cache' => false,
|
404 |
+
'pods-option-cache' => false,
|
405 |
+
];
|
406 |
+
}
|
407 |
+
|
408 |
+
/**
|
409 |
+
* Allow filtering the list of disallowed variable types for the source.
|
410 |
+
*
|
411 |
+
* @since 2.9.4
|
412 |
+
*
|
413 |
+
* @param array $disallowed_types The list of disallowed variable types for the source.
|
414 |
+
* @param string $source The source calling pods_v().
|
415 |
+
*/
|
416 |
+
$disallowed_types = apply_filters( "pods_v_disallowed_types_for_source_{$params->source}", $disallowed_types, $params->source );
|
417 |
+
|
418 |
+
if ( isset( $disallowed_types[ $type ] ) ) {
|
419 |
+
return $default;
|
420 |
+
}
|
421 |
+
}
|
422 |
+
|
423 |
switch ( $type ) {
|
424 |
case 'get':
|
425 |
if ( isset( $_GET[ $var ] ) ) {
|
681 |
$var = 'ID';
|
682 |
}
|
683 |
|
684 |
+
if ( 'user_pass' === $var || 'user_activation_key' === $var ) {
|
685 |
+
$value = '';
|
686 |
+
} elseif ( isset( $user->{$var} ) ) {
|
687 |
$value = $user->{$var};
|
688 |
} elseif ( 'role' === $var ) {
|
689 |
$value = '';
|
1177 |
$allowed = array_unique( array_merge( $pods_query_args['allowed'], $allowed ) );
|
1178 |
$excluded = array_unique( array_merge( $pods_query_args['excluded'], $excluded ) );
|
1179 |
|
1180 |
+
if ( ! isset( $_GET ) || $url ) {
|
1181 |
$query_args = array();
|
1182 |
} else {
|
1183 |
$query_args = pods_unsanitize( $_GET );
|
1298 |
* @since 1.8.9
|
1299 |
*/
|
1300 |
function pods_create_slug( $orig, $strict = true ) {
|
1301 |
+
$str = remove_accents( $orig );
|
1302 |
$str = preg_replace( '/([_ \\/])/', '-', trim( $orig ) );
|
1303 |
|
1304 |
if ( $strict ) {
|
1399 |
*/
|
1400 |
function pods_clean_name( $orig, $lower = true, $trim_underscores = false ) {
|
1401 |
$str = trim( $orig );
|
1402 |
+
$str = remove_accents( $str );
|
1403 |
$str = preg_replace( '/([^0-9a-zA-Z\-_\s])/', '', $str );
|
1404 |
$str = preg_replace( '/(\s_)/', '_', $str );
|
1405 |
$str = preg_replace( '/(\s+)/', '_', $str );
|
1825 |
'prefix',
|
1826 |
);
|
1827 |
|
1828 |
+
$pods_v_var = '';
|
1829 |
+
$pods_v_type = 'get';
|
1830 |
+
|
1831 |
if ( in_array( $tag[0], $single_supported, true ) ) {
|
1832 |
+
$pods_v_type = $tag[0];
|
1833 |
} elseif ( 1 === count( $tag ) ) {
|
1834 |
+
$pods_v_var = $tag[0];
|
1835 |
} elseif ( 2 === count( $tag ) ) {
|
1836 |
+
$pods_v_var = $tag[1];
|
1837 |
+
$pods_v_type = $tag[0];
|
1838 |
} else {
|
1839 |
// Some magic tags support traversal.
|
1840 |
+
$pods_v_var = array_slice( $tag, 1 );
|
1841 |
+
$pods_v_type = $tag[0];
|
1842 |
}
|
1843 |
|
1844 |
+
$value = pods_v( $pods_v_var, $pods_v_type, null, false, [
|
1845 |
+
'source' => 'magic-tag',
|
1846 |
+
] );
|
1847 |
+
|
1848 |
if ( $helper ) {
|
1849 |
if ( ! $pod instanceof Pods ) {
|
1850 |
$pod = pods();
|
1851 |
}
|
1852 |
+
|
1853 |
$value = $pod->helper( $helper, $value );
|
1854 |
}
|
1855 |
|
1856 |
+
/**
|
1857 |
+
* Allow filtering the evaluated tag value.
|
1858 |
+
*
|
1859 |
+
* @since unknown
|
1860 |
+
*
|
1861 |
+
* @param mixed $value The evaluated tag value.
|
1862 |
+
* @param string $tag The evaluated tag name.
|
1863 |
+
* @param null|mixed $fallback The fallback value to use if not set, should already be sanitized.
|
1864 |
+
*/
|
1865 |
$value = apply_filters( 'pods_evaluate_tag', $value, $tag, $fallback );
|
1866 |
|
1867 |
if ( is_array( $value ) && 1 === count( $value ) ) {
|
1929 |
if ( ! empty( $params->fields ) && is_array( $params->fields ) && isset( $params->fields[ $params->field ] ) ) {
|
1930 |
$params->field = $params->fields[ $params->field ];
|
1931 |
|
1932 |
+
if ( 1 === (int) pods_v( 'repeatable', $params->field, 0 ) ) {
|
1933 |
+
$format = pods_v( 'repeatable_format', $params->field, 'default', true );
|
1934 |
+
|
1935 |
+
if ( 'default' !== $format ) {
|
1936 |
+
$params->serial = false;
|
1937 |
+
|
1938 |
+
if ( 'custom' === $format ) {
|
1939 |
+
$separator = pods_v( 'repeatable_format_separator', $params->field );
|
1940 |
+
|
1941 |
+
// Default to comma separator.
|
1942 |
+
if ( '' === $separator ) {
|
1943 |
+
$separator = ', ';
|
1944 |
+
}
|
1945 |
+
|
1946 |
+
$params->and = $separator;
|
1947 |
+
$params->separator = $separator;
|
1948 |
+
}
|
1949 |
+
}
|
1950 |
+
}
|
1951 |
+
|
1952 |
$simple_tableless_objects = PodsForm::simple_tableless_objects();
|
1953 |
|
1954 |
if ( ! empty( $params->field ) && ! is_string( $params->field ) && in_array( $params->field['type'], PodsForm::tableless_field_types(), true ) ) {
|
1955 |
+
$pick_object = pods_v( 'pick_object', $params->field );
|
1956 |
+
|
1957 |
if ( in_array( $params->field['type'], PodsForm::file_field_types(), true ) ) {
|
1958 |
if ( null === $params->field_index ) {
|
1959 |
$params->field_index = 'guid';
|
1960 |
}
|
1961 |
+
} elseif ( in_array( $pick_object, $simple_tableless_objects, true ) ) {
|
1962 |
$simple = true;
|
1963 |
} else {
|
1964 |
+
$pick_val = pods_v( 'pick_val', $params->field );
|
1965 |
+
$table = null;
|
|
|
1966 |
|
1967 |
if ( ! empty( $pick_object ) && ( ! empty( $pick_val ) || in_array( $pick_object, array( 'user', 'media', 'comment' ), true ) ) ) {
|
1968 |
$table = pods_api()->get_table_info(
|
2005 |
|
2006 |
$original_value = $value;
|
2007 |
|
2008 |
+
$separator_excluded = PodsForm::separator_excluded_field_types();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009 |
|
2010 |
$basic_separator = $params->field && in_array( $params->field['type'], $separator_excluded, true );
|
2011 |
|
@@ -7,6 +7,7 @@ use Pods\Admin\Settings;
|
|
7 |
use Pods\API\Whatsit\Value_Field;
|
8 |
use Pods\Config_Handler;
|
9 |
use Pods\Permissions;
|
|
|
10 |
use Pods\Whatsit;
|
11 |
use Pods\Whatsit\Field;
|
12 |
use Pods\Whatsit\Pod;
|
@@ -145,6 +146,17 @@ function pods_message( $message, $type = null, $return = false ) {
|
|
145 |
|
146 |
$GLOBALS['pods_errors'] = array();
|
147 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
148 |
/**
|
149 |
* Error Handling which throws / displays errors
|
150 |
*
|
@@ -177,10 +189,14 @@ function pods_error( $error, $obj = null ) {
|
|
177 |
}
|
178 |
|
179 |
if ( is_object( $error ) && 'Exception' === get_class( $error ) ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
180 |
/** @var Exception $error */
|
181 |
$error = $error->getMessage();
|
182 |
-
|
183 |
-
$error_mode = 'exception';
|
184 |
}
|
185 |
|
186 |
/**
|
@@ -208,15 +224,6 @@ function pods_error( $error, $obj = null ) {
|
|
208 |
*/
|
209 |
$error_mode = apply_filters( 'pods_error_mode', $error_mode, $error, $obj );
|
210 |
|
211 |
-
/**
|
212 |
-
* Allow filtering whether to force the error mode in cases where multiple exceptions have been used.
|
213 |
-
*
|
214 |
-
* @since 2.8.11
|
215 |
-
*
|
216 |
-
* @param bool $error_mode_force Whether to force the error mode in cases where multiple exceptions have been used.
|
217 |
-
*/
|
218 |
-
$error_mode_force = apply_filters( 'pods_error_mode_force', false );
|
219 |
-
|
220 |
if ( is_array( $error ) ) {
|
221 |
$error = array_map( 'wp_kses_post', $error );
|
222 |
|
@@ -250,17 +257,12 @@ function pods_error( $error, $obj = null ) {
|
|
250 |
$wp_error = new WP_Error( 'pods-error-' . md5( $error ), $error );
|
251 |
}//end if
|
252 |
|
253 |
-
$last_error = $pods_errors;
|
254 |
-
|
255 |
$pods_errors = array();
|
256 |
|
257 |
-
if ( $last_error === $error && 'exception' === $error_mode && ! $error_mode_force ) {
|
258 |
-
$error_mode = 'exit';
|
259 |
-
}
|
260 |
-
|
261 |
// Support testing debug messages.
|
262 |
if ( function_exists( 'codecept_debug' ) ) {
|
263 |
codecept_debug( 'Pods Debug Error: ' . $error );
|
|
|
264 |
}
|
265 |
|
266 |
if ( ! empty( $error ) ) {
|
@@ -284,7 +286,7 @@ function pods_error( $error, $obj = null ) {
|
|
284 |
$exception_fallback_enabled = apply_filters( 'pods_error_exception_fallback_enabled', true, $error );
|
285 |
|
286 |
if ( $exception_fallback_enabled ) {
|
287 |
-
set_exception_handler( '
|
288 |
}
|
289 |
|
290 |
throw new Exception( $error );
|
@@ -2126,6 +2128,56 @@ function pods_field( $pod, $id = null, $name = null, $single = false ) {
|
|
2126 |
return null;
|
2127 |
}
|
2128 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2129 |
/**
|
2130 |
* Get a field display value from a Pod.
|
2131 |
*
|
@@ -2865,7 +2917,7 @@ function pods_register_block_collection( array $collection ) {
|
|
2865 |
/**
|
2866 |
* Register a custom config file to use with Pods configs.
|
2867 |
*
|
2868 |
-
* @since
|
2869 |
*
|
2870 |
* @param string $file The config file to use.
|
2871 |
* @param string $config_type The config file type to use (defaults to json).
|
@@ -2883,7 +2935,7 @@ function pods_register_config_file( $file, $config_type = 'json' ) {
|
|
2883 |
/**
|
2884 |
* Register a custom config path to use with Pods configs.
|
2885 |
*
|
2886 |
-
* @since
|
2887 |
*
|
2888 |
* @param string $path The config path to use.
|
2889 |
*/
|
@@ -2904,7 +2956,7 @@ function pods_register_config_path( $path ) {
|
|
2904 |
*
|
2905 |
* Default support for json and yml can be filtered with the pods_config_parse filter to override them.
|
2906 |
*
|
2907 |
-
* @since
|
2908 |
*
|
2909 |
* @param string $type The config type to use.
|
2910 |
*/
|
@@ -2921,7 +2973,7 @@ function pods_register_config_type( $type ) {
|
|
2921 |
/**
|
2922 |
* Register a custom config item type to use with Pods configs.
|
2923 |
*
|
2924 |
-
* @since
|
2925 |
*
|
2926 |
* @param string $item_type The config path to use.
|
2927 |
*/
|
7 |
use Pods\API\Whatsit\Value_Field;
|
8 |
use Pods\Config_Handler;
|
9 |
use Pods\Permissions;
|
10 |
+
use Pods\Data\Map_Field_Values;
|
11 |
use Pods\Whatsit;
|
12 |
use Pods\Whatsit\Field;
|
13 |
use Pods\Whatsit\Pod;
|
146 |
|
147 |
$GLOBALS['pods_errors'] = array();
|
148 |
|
149 |
+
/**
|
150 |
+
* The default exception handler for Pods errors.
|
151 |
+
*
|
152 |
+
* @since 2.9.4
|
153 |
+
*
|
154 |
+
* @param string|array $error The error message(s) to be thrown / displayed.
|
155 |
+
*/
|
156 |
+
function pods_error_exception( $error ) {
|
157 |
+
pods_error( $error, 'final_exception' );
|
158 |
+
}
|
159 |
+
|
160 |
/**
|
161 |
* Error Handling which throws / displays errors
|
162 |
*
|
189 |
}
|
190 |
|
191 |
if ( is_object( $error ) && 'Exception' === get_class( $error ) ) {
|
192 |
+
$error_mode = 'exception';
|
193 |
+
|
194 |
+
if ( 'final_exception' === $display_errors ) {
|
195 |
+
$error_mode = 'exit';
|
196 |
+
}
|
197 |
+
|
198 |
/** @var Exception $error */
|
199 |
$error = $error->getMessage();
|
|
|
|
|
200 |
}
|
201 |
|
202 |
/**
|
224 |
*/
|
225 |
$error_mode = apply_filters( 'pods_error_mode', $error_mode, $error, $obj );
|
226 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
227 |
if ( is_array( $error ) ) {
|
228 |
$error = array_map( 'wp_kses_post', $error );
|
229 |
|
257 |
$wp_error = new WP_Error( 'pods-error-' . md5( $error ), $error );
|
258 |
}//end if
|
259 |
|
|
|
|
|
260 |
$pods_errors = array();
|
261 |
|
|
|
|
|
|
|
|
|
262 |
// Support testing debug messages.
|
263 |
if ( function_exists( 'codecept_debug' ) ) {
|
264 |
codecept_debug( 'Pods Debug Error: ' . $error );
|
265 |
+
pods_debug( debug_backtrace( DEBUG_BACKTRACE_IGNORE_ARGS ) );
|
266 |
}
|
267 |
|
268 |
if ( ! empty( $error ) ) {
|
286 |
$exception_fallback_enabled = apply_filters( 'pods_error_exception_fallback_enabled', true, $error );
|
287 |
|
288 |
if ( $exception_fallback_enabled ) {
|
289 |
+
set_exception_handler( 'pods_error_exception' );
|
290 |
}
|
291 |
|
292 |
throw new Exception( $error );
|
2128 |
return null;
|
2129 |
}
|
2130 |
|
2131 |
+
/**
|
2132 |
+
* Get the data field value.
|
2133 |
+
*
|
2134 |
+
* @since 2.9.4
|
2135 |
+
*
|
2136 |
+
* @param Pods|string|null $obj The pod name or Pods object.
|
2137 |
+
* @param string $field_name The field name.
|
2138 |
+
*
|
2139 |
+
* @return mixed The data field value.
|
2140 |
+
*/
|
2141 |
+
function pods_data_field( $obj, $field_name ) {
|
2142 |
+
if ( is_string( $obj ) ) {
|
2143 |
+
$obj = pods( $obj );
|
2144 |
+
}
|
2145 |
+
|
2146 |
+
$traverse_fields = explode( '.', $field_name );
|
2147 |
+
$is_traversal = 1 < count( $traverse_fields );
|
2148 |
+
$first_field = $traverse_fields[0];
|
2149 |
+
|
2150 |
+
// Get the first field name data.
|
2151 |
+
$field_data = $obj ? $obj->fields( $first_field ) : null;
|
2152 |
+
|
2153 |
+
// Ensure the field name is using the correct name and not the alias.
|
2154 |
+
if ( $field_data ) {
|
2155 |
+
$first_field = $field_data['name'];
|
2156 |
+
|
2157 |
+
if ( ! $is_traversal ) {
|
2158 |
+
$field_name = $first_field;
|
2159 |
+
}
|
2160 |
+
}
|
2161 |
+
|
2162 |
+
if ( $obj && ! $field_data && ! $is_traversal ) {
|
2163 |
+
// Get the full field name data.
|
2164 |
+
$field_data = $obj->fields( $field_name );
|
2165 |
+
}
|
2166 |
+
|
2167 |
+
$is_field_set = false;
|
2168 |
+
|
2169 |
+
if ( $field_data instanceof Object_Field ) {
|
2170 |
+
$is_field_set = true;
|
2171 |
+
} elseif ( $field_data instanceof Field ) {
|
2172 |
+
$is_field_set = true;
|
2173 |
+
}
|
2174 |
+
|
2175 |
+
// Handle custom/supported value mappings.
|
2176 |
+
$map_field_values = pods_container( Map_Field_Values::class );
|
2177 |
+
|
2178 |
+
return $map_field_values->map_value( $first_field, $traverse_fields, $is_field_set ? $field_data : null, $obj );
|
2179 |
+
}
|
2180 |
+
|
2181 |
/**
|
2182 |
* Get a field display value from a Pod.
|
2183 |
*
|
2917 |
/**
|
2918 |
* Register a custom config file to use with Pods configs.
|
2919 |
*
|
2920 |
+
* @since 2.9.0
|
2921 |
*
|
2922 |
* @param string $file The config file to use.
|
2923 |
* @param string $config_type The config file type to use (defaults to json).
|
2935 |
/**
|
2936 |
* Register a custom config path to use with Pods configs.
|
2937 |
*
|
2938 |
+
* @since 2.9.0
|
2939 |
*
|
2940 |
* @param string $path The config path to use.
|
2941 |
*/
|
2956 |
*
|
2957 |
* Default support for json and yml can be filtered with the pods_config_parse filter to override them.
|
2958 |
*
|
2959 |
+
* @since 2.9.0
|
2960 |
*
|
2961 |
* @param string $type The config type to use.
|
2962 |
*/
|
2973 |
/**
|
2974 |
* Register a custom config item type to use with Pods configs.
|
2975 |
*
|
2976 |
+
* @since 2.9.0
|
2977 |
*
|
2978 |
* @param string $item_type The config path to use.
|
2979 |
*/
|
@@ -10,7 +10,7 @@
|
|
10 |
* Plugin Name: Pods - Custom Content Types and Fields
|
11 |
* Plugin URI: https://pods.io/
|
12 |
* Description: Pods is a framework for creating, managing, and deploying customized content types and fields
|
13 |
-
* Version: 2.9.
|
14 |
* Author: Pods Framework Team
|
15 |
* Author URI: https://pods.io/about/
|
16 |
* Text Domain: pods
|
@@ -43,7 +43,7 @@ if ( defined( 'PODS_VERSION' ) || defined( 'PODS_DIR' ) ) {
|
|
43 |
add_action( 'init', 'pods_deactivate_pods_ui' );
|
44 |
} else {
|
45 |
// Current version.
|
46 |
-
define( 'PODS_VERSION', '2.9.
|
47 |
|
48 |
// Current database version, this is the last version the database changed.
|
49 |
define( 'PODS_DB_VERSION', '2.3.5' );
|
10 |
* Plugin Name: Pods - Custom Content Types and Fields
|
11 |
* Plugin URI: https://pods.io/
|
12 |
* Description: Pods is a framework for creating, managing, and deploying customized content types and fields
|
13 |
+
* Version: 2.9.4
|
14 |
* Author: Pods Framework Team
|
15 |
* Author URI: https://pods.io/about/
|
16 |
* Text Domain: pods
|
43 |
add_action( 'init', 'pods_deactivate_pods_ui' );
|
44 |
} else {
|
45 |
// Current version.
|
46 |
+
define( 'PODS_VERSION', '2.9.4' );
|
47 |
|
48 |
// Current database version, this is the last version the database changed.
|
49 |
define( 'PODS_DB_VERSION', '2.3.5' );
|
@@ -1,15 +1,24 @@
|
|
1 |
module.exports = {
|
2 |
preset: '@wordpress/jest-preset-default',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
roots: [
|
4 |
'<rootDir>/ui/js/dfv/src/',
|
5 |
'<rootDir>/ui/js/blocks/src/',
|
6 |
],
|
|
|
7 |
setupFilesAfterEnv: [
|
8 |
require.resolve(
|
9 |
'@wordpress/jest-preset-default/scripts/setup-test-framework.js'
|
10 |
),
|
11 |
'<rootDir>/jest-setup-wordpress-globals.js',
|
12 |
],
|
|
|
13 |
testMatch: [
|
14 |
'**/test/*.js',
|
15 |
],
|
1 |
module.exports = {
|
2 |
preset: '@wordpress/jest-preset-default',
|
3 |
+
|
4 |
+
// This can be be removed with a future version of @wordpress/jest-preset-default,
|
5 |
+
// at the time of adding this (Aug 2027) it hadn't made it to a released version of
|
6 |
+
// the preset yet:
|
7 |
+
// (see https://github.com/WordPress/gutenberg/pull/43271)
|
8 |
+
transformIgnorePatterns: [ 'node_modules/(?!(is-plain-obj))' ],
|
9 |
+
|
10 |
roots: [
|
11 |
'<rootDir>/ui/js/dfv/src/',
|
12 |
'<rootDir>/ui/js/blocks/src/',
|
13 |
],
|
14 |
+
|
15 |
setupFilesAfterEnv: [
|
16 |
require.resolve(
|
17 |
'@wordpress/jest-preset-default/scripts/setup-test-framework.js'
|
18 |
),
|
19 |
'<rootDir>/jest-setup-wordpress-globals.js',
|
20 |
],
|
21 |
+
|
22 |
testMatch: [
|
23 |
'**/test/*.js',
|
24 |
],
|
@@ -5,7 +5,7 @@ Tags: pods, custom post types, custom taxonomies, content types, custom fields,
|
|
5 |
Requires at least: 5.7
|
6 |
Tested up to: 6.1
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 2.9.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -90,30 +90,38 @@ You can enable some of our included components to extend your WordPress site eve
|
|
90 |
* **Advanced Content Types** - Create entirely custom content types that have their own database table, and they will exist outside the normal WordPress context avoiding meta database tables
|
91 |
* **Pods Pages** - Create custom pages that function off of your site's URL path with wildcard support and choose the Page Template in the theme to use -- most useful paired with Advanced Content Types
|
92 |
|
93 |
-
=
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
*
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
*
|
115 |
-
|
116 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
|
118 |
== Installation ==
|
119 |
|
@@ -165,6 +173,40 @@ Pods really wouldn't be where it is without all the contributions from our [dono
|
|
165 |
|
166 |
== Changelog ==
|
167 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
168 |
= 2.9.3 - August 18th, 2022 =
|
169 |
|
170 |
* Fixed: Resolve additional issue with WPGraphQL on some PHP configurations. #6868 (@sc0ttkclark)
|
@@ -192,7 +234,7 @@ Pods really wouldn't be where it is without all the contributions from our [dono
|
|
192 |
|
193 |
* Feature: Simple Repeatable Fields offers the ability to turn almost any field into a repeatable field. With repeatable fields, you can add multiple values for a field. You can use repeatable fields with the Pods template tag `[each your_repeatable_field]` to easily loop and display information with `{@_value}` Supported field types include: Plain Text, Website, Phone, Email, Password, Date / Time, Date, Time, oEmbed, Plain Paragraph text, WYSIWYG, Plain Number, Currency, and Color Picker. Supported Pod Types include: Post Types (meta-based), Taxonomies (meta-based), Users (meta-based), and Comments (meta-based). #1095 #6304 (@sc0ttkclark, @zrothauser)
|
194 |
* Feature: Register Pods configurations with JSON/YML files in your theme when stored in `pods.json`, `pods/pods.json`, `pods/templates.json`, etc. Custom paths can be registered to support third party plugins as well. Register new paths using `pods_register_config_path( $full_directory_path )` that contain a `/pods/` directory to automatically pull from or use `pods_register_config_file( $full_file_path, 'json' )` to register a specific file. #4856 (@sc0ttkclark)
|
195 |
-
* Feature: The initial integration for WPGraphQL has been merged from the WPGraphQL Integration Add-On for Pods Pro by SKCDEV. The Add-On itself will continue to be developed with new features that are focused on Advanced Content Types and other enhancements in the future that will still remain outside of Pods core. (@sc0ttkclark)
|
196 |
* Feature: Drag and drop fields from one group to another. #5937 #6114 #6123 #6456 (@sc0ttkclark)
|
197 |
* Feature: Support importing and exporting Pods Settings in Pods Packages. #6455 (@sc0ttkclark)
|
198 |
* Feature: Website fields can now be set to output links with `rel="nofollow"` on them. (@sc0ttkclark)
|
@@ -203,7 +245,7 @@ Pods really wouldn't be where it is without all the contributions from our [dono
|
|
203 |
* Enhancement: Migrate Packages component is now enabled by default on new Pods installs. (@sc0ttkclark)
|
204 |
* Tweak: Removed special logic intended for PHP 5.3 and earlier. (@sc0ttkclark)
|
205 |
* Tweak: Improved performance when getting Pods configs from post type storage. #6561 #6562 (@JoryHogeveen)
|
206 |
-
* Fixed: Set the default sort to Pod Label now that more sources are supported on Pods Admin > Edit Pods. (@sc0ttkclark)
|
207 |
* Fixed: Prevent potential issues with `$wpdb->prepare()` when a related object does not have an index field set. (@sc0ttkclark)
|
208 |
* Fixed: Resolve issue with not reading cache when no ID is passed into Pods objects for Settings pods. #3582 #3583 (@pcfreak30, @sc0ttkclark, @JoryHogeveen)
|
209 |
* Fixed: Don't show the edit link in PodsUI if access is restricted, previously going to edit would show the access message but now the link won't show at all in those restricted cases. (@sc0ttkclark)
|
5 |
Requires at least: 5.7
|
6 |
Tested up to: 6.1
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 2.9.4
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
90 |
* **Advanced Content Types** - Create entirely custom content types that have their own database table, and they will exist outside the normal WordPress context avoiding meta database tables
|
91 |
* **Pods Pages** - Create custom pages that function off of your site's URL path with wildcard support and choose the Page Template in the theme to use -- most useful paired with Advanced Content Types
|
92 |
|
93 |
+
= Plugins that integrate with Pods =
|
94 |
+
|
95 |
+
* [Codepress Admin Columns](https://wordpress.org/plugins/codepress-admin-columns/) using premium [Admin Columns Pro](https://www.admincolumns.com/pods/) Pods integration
|
96 |
+
* [Conductor](https://conductorplugin.com/)
|
97 |
+
* [Elementor Pro](https://elementor.com/pro/)
|
98 |
+
* [Polylang](https://wordpress.org/plugins/polylang/) has direct integration in Pods itself
|
99 |
+
* [Timber](https://wordpress.org/plugins/timber-library/)
|
100 |
+
* [WPGraphQL](https://wordpress.org/plugins/wp-graphql/) has direct integration in Pods itself
|
101 |
+
* [WPML](http://wpml.org/) has direct integration in Pods itself
|
102 |
+
* [YARPP](http://wordpress.org/plugins/yet-another-related-posts-plugin/) has direct integration in Pods itself
|
103 |
+
|
104 |
+
= Themes that integrate with Pods =
|
105 |
+
|
106 |
+
* [Genesis](https://www.studiopress.com/themes/genesis/) (StudioPress) has direct integration in Pods itself
|
107 |
+
|
108 |
+
= Extend Pods with Free Add-Ons =
|
109 |
+
|
110 |
+
* [Pods Beaver Themer Add-On](https://wordpress.org/plugins/pods-beaver-builder-themer-add-on/) - Integrates Pods with [Beaver Themer](https://www.wpbeaverbuilder.com/beaver-themer/)
|
111 |
+
* [Pods Gravity Forms Add-On](https://wordpress.org/plugins/pods-gravity-forms/) - Integrates Pods with [Gravity Forms](https://www.gravityforms.com/)
|
112 |
+
* [Pods Alternative Cache Add-On](https://wordpress.org/plugins/pods-alternative-cache/) - Speed up Pods on servers with limited object caching capabilities
|
113 |
+
* [Pods SEO Add-On](https://wordpress.org/plugins/pods-seo/) - Integrates Pods Advanced Content Types with Yoast SEO
|
114 |
+
* [Pods AJAX Views Add-On](https://wordpress.org/plugins/pods-ajax-views/) - Adds new functions you can use to output template parts that load via AJAX after other page elements
|
115 |
+
* [Paid Memberships Pro - Pods Add On](https://wordpress.org/plugins/pmpro-pods/) - Integrates Pods with [Paid Memberships Pro](https://wordpress.org/plugins/paid-memberships-pro/)
|
116 |
+
* [Panda Pods Repeater Field Add-On](https://wordpress.org/plugins/panda-pods-repeater-field/) - (Advanced setup required) Add groups of fields that repeat and are stored in their own custom database table
|
117 |
+
|
118 |
+
= Pods Pro by SKCDEV Premium Add-Ons =
|
119 |
+
|
120 |
+
* [List Tables Add-On](https://pods-pro.skc.dev/downloads/list-tables/) - A new block and shortcode to list/filter content from Pods in a table format
|
121 |
+
* [Page Builder Toolkit Add-On](https://pods-pro.skc.dev/downloads/page-builder-toolkit/) - Integrates Pods with [Beaver Builder](https://wordpress.org/plugins/beaver-builder-lite-version/), [Beaver Themer](https://www.wpbeaverbuilder.com/beaver-themer/), [Divi Theme](https://www.elegantthemes.com/gallery/divi/), [Elementor](https://wordpress.org/plugins/elementor/), [GenerateBlocks](https://wordpress.org/plugins/generateblocks/), and [Oxygen Builder](https://oxygenbuilder.com/)
|
122 |
+
* [Advanced Relationships Storage Add-On](https://pods-pro.skc.dev/downloads/advanced-relationship-storage/) - Advanced options for relationship storage
|
123 |
+
* [TablePress Integration Add-On](https://pods-pro.skc.dev/downloads/tablepress-integration/) - Integrates Pods with [TablePress](https://wordpress.org/plugins/tablepress/)
|
124 |
+
* [Advanced Permalinks Add-On](https://pods-pro.skc.dev/downloads/advanced-permalinks/) - Advanced permalink structures and taxonomy landing pages
|
125 |
|
126 |
== Installation ==
|
127 |
|
173 |
|
174 |
== Changelog ==
|
175 |
|
176 |
+
= 2.9.4 - September 21st, 2022 =
|
177 |
+
|
178 |
+
* Feature: New block alert! "Pods Single Item - List Fields" opens the doors towards listing a list of fields in variety of format styles automatically for you. You don't have to write any HTML, just specify the field(s) you'd like to show and let the block do the rest for you. The block will display the Field Labels and the Field Values in a nice readable format. Display formats available include: ul, ol, dl, p, div, and table. Want to show all but a few fields? Just specify which fields to exclude if that's what you're after :) (@sc0ttkclark)
|
179 |
+
* Feature: New `{@_all_fields}` magic tag (or `$pod->field('_all_fields')` call) will automatically output all field values for the current Pod item in the specified format which includes showing the Field labels. Specify the format using this syntax: `{@_all_fields.ul}` (default is ul, but ol, dl, p, div, and table are also supported). (@sc0ttkclark)
|
180 |
+
* Feature: New `{@_display_fields....}` magic tag (or `$pod->field('_display_fields....')` call) will automatically output all field values for the current Pod item in the specified format which includes showing the Field labels. Specify the format using this syntax: `{@_display_fields.ul.field_name|another_field|related_post:post_title}` (default is ul, but ol, dl, p, div, and table are also supported) -- Separate your fields with a pipe "|" character and then if you need to traverse into any relationship field then just traverse each level with a colon ":" character between those fields. (@sc0ttkclark)
|
181 |
+
* Feature: New `pods_data_field()` function allows you to get special data fields directly instead of requiring you to use a full Pods object. (@sc0ttkclark)
|
182 |
+
* Feature: New Repair tool on the Pods Admin > Settings > Tools page helps to repair Pod, Group, and Field configuration issues that can be annoying to deal with or would normally require Database access to resolve. (@sc0ttkclark)
|
183 |
+
* Feature: You may not have known about it before but we've expanded our existing Pods DFV JS API, you can access it through the `window.PodsDFV` object. Methods include: `getFields( pod = '', itemId = 0, formCounter = 1 )`, `getField( pod, itemId, fieldName, formCounter = 1 )`, `getFieldValues( pod = '', itemId = 0, formCounter = 1 )`, `getFieldValuesWithConfigs( pod = '', itemId = 0, formCounter = 1 )`, `getFieldValue( pod, itemId, fieldName, formCounter = 1 )`, `setFieldValue( pod, itemId, fieldName, value, formCounter = 1 )`
|
184 |
+
* Enhancement: You can now choose what field mode you would like to use for REST API fields. The default mode is raw values, but you can choose to return rendered values or both raw+rendered values as an object to work with. #5198 (@sc0ttkclark)
|
185 |
+
* Enhancement: You can now specify a custom display separator for repeateable fields to use when rendering. #6892 #6890 (@JoryHogeveen)
|
186 |
+
* Changed: Resetting a Pod has been removed from the Pods Admin > Edit Pods page, instead of clicking "Delete All Items" there, you can now access this directly from Pods Admin > Settings > Cleanup & Reset as the new "Delete all content for a Pod" option. You can specify the Pod you want to delete content for and it explains exactly what you can expect from running it. (@sc0ttkclark)
|
187 |
+
* Tweak: Updated Pods Admin > Help page now lists more add-ons and where to get them / get support for them. (@sc0ttkclark)
|
188 |
+
* Fixed: Properly convert accents when creating a new pod and using the label to generate the pod name. #6874 (@sc0ttkclark)
|
189 |
+
* Fixed: Relationship/file fields that are hidden on the screen will now have all field values referenced instead of only the first value when multiple is enabled for that field. #6913 (@sc0ttkclark)
|
190 |
+
* Fixed: `pods_query_arg()` now correctly excludes all `$_GET` parameters when passing a manual URL into the function. (@sc0ttkclark)
|
191 |
+
* Fixed: Legacy WP-CLI commands for Pods are now showing up again, however they will be replaced in a future release with a more comprehensive solution. In the meantime, you can use those commands by calling `wp pods-legacy` and `wp pods-legacy-api`.
|
192 |
+
* Fixed: Prevent conflicting filter calls when filtering things other than post_title in the Display Field in Selection List option. #6909 #6907 (@therealgilles, @sc0ttkclark)
|
193 |
+
* Fixed: The autocomplete field now lets you click the "X" delete icon properly instead of starting drag-and-drop event. #6905 #6878 (@JoryHogeveen)
|
194 |
+
* Fixed: Resolved saving multiple files to a Media pod which would result in only the first file being saved. #6450 (@sc0ttkclark)
|
195 |
+
* Fixed: Resolved TinyMCE media button handling in some cases so that it checks the correct place in the field configuration. #6569 (@sc0ttkclark)
|
196 |
+
* Fixed: Resolved overflow issues in small screens for relationship field List View. #6542 (@sc0ttkclark)
|
197 |
+
* Fixed: Resolved issue with some TinyMCE scripts not being included on certain screens that use the TinyMCE WYSIWYG field. #6525 (@sc0ttkclark)
|
198 |
+
* Fixed: Pod/Group/Field configurations being saved now get their null-ish values (from empty select fields) sent as empty strings so they are not reverted to the previously saved value on next load. #6558 (@sc0ttkclark)
|
199 |
+
* Fixed: Pod/Group/Field configurations being saved now get their checkbox boolean options properly enforced as 0/1 and sent so they are not reverted to the default value on next load. #6485 (@sc0ttkclark)
|
200 |
+
* Fixed: Fields added manually through the older `pods_group_add()` function now get their field types properly recognized. #6381 (@sc0ttkclark)
|
201 |
+
* Fixed: Field config overrides for requiring a field when outputting via PHP are now properly recognized by DFV JS logic for validation and form submission prevention. #6352 (@sc0ttkclark)
|
202 |
+
* Fixed: Autocomplete field AJAX calls are now able to correctly reference the field object for code-based registered fields. #6896 (@naveen17797, @sc0ttkclark)
|
203 |
+
* Fixed: Display of the buttons in the list fields now properly aligns to the right side. #6894 #6893 (@JoryHogeveen, @sc0ttkclark)
|
204 |
+
* Fixed: Date range validation now validate sbased on the internal format instead of only on the display format. #6882 #6881 (@JoryHogeveen)
|
205 |
+
* Fixed: Number field type with slider inputs now use the correct number references. #6885 #6884 (@JoryHogeveen)
|
206 |
+
* Fixed: Currency field type now appears correctly on non-HTML5 fields. #6887 #6886 (@JoryHogeveen)
|
207 |
+
* Fixed: Resolved read-only fields functionality which was initially missing from the Pods 2.8+ DFV functionality. #6875 #6583 (@zrothauser, @sc0ttkclark)
|
208 |
+
* Fixed: Resolved issue where fields can disappear while being dragged from one group to another. #6873 #6867 (@zrothauser)
|
209 |
+
|
210 |
= 2.9.3 - August 18th, 2022 =
|
211 |
|
212 |
* Fixed: Resolve additional issue with WPGraphQL on some PHP configurations. #6868 (@sc0ttkclark)
|
234 |
|
235 |
* Feature: Simple Repeatable Fields offers the ability to turn almost any field into a repeatable field. With repeatable fields, you can add multiple values for a field. You can use repeatable fields with the Pods template tag `[each your_repeatable_field]` to easily loop and display information with `{@_value}` Supported field types include: Plain Text, Website, Phone, Email, Password, Date / Time, Date, Time, oEmbed, Plain Paragraph text, WYSIWYG, Plain Number, Currency, and Color Picker. Supported Pod Types include: Post Types (meta-based), Taxonomies (meta-based), Users (meta-based), and Comments (meta-based). #1095 #6304 (@sc0ttkclark, @zrothauser)
|
236 |
* Feature: Register Pods configurations with JSON/YML files in your theme when stored in `pods.json`, `pods/pods.json`, `pods/templates.json`, etc. Custom paths can be registered to support third party plugins as well. Register new paths using `pods_register_config_path( $full_directory_path )` that contain a `/pods/` directory to automatically pull from or use `pods_register_config_file( $full_file_path, 'json' )` to register a specific file. #4856 (@sc0ttkclark)
|
237 |
+
* Feature: The initial integration for WPGraphQL has been merged from the WPGraphQL Integration Add-On for Pods Pro by SKCDEV. The Add-On itself will continue to be developed with new features that are focused on Advanced Content Types and other enhancements in the future that will still remain outside of Pods core. (@sc0ttkclark)
|
238 |
* Feature: Drag and drop fields from one group to another. #5937 #6114 #6123 #6456 (@sc0ttkclark)
|
239 |
* Feature: Support importing and exporting Pods Settings in Pods Packages. #6455 (@sc0ttkclark)
|
240 |
* Feature: Website fields can now be set to output links with `rel="nofollow"` on them. (@sc0ttkclark)
|
245 |
* Enhancement: Migrate Packages component is now enabled by default on new Pods installs. (@sc0ttkclark)
|
246 |
* Tweak: Removed special logic intended for PHP 5.3 and earlier. (@sc0ttkclark)
|
247 |
* Tweak: Improved performance when getting Pods configs from post type storage. #6561 #6562 (@JoryHogeveen)
|
248 |
+
* Fixed: Set the default sort to Pod Label now that more sources are supported on Pods Admin > Edit Pods. (@sc0ttkclark)
|
249 |
* Fixed: Prevent potential issues with `$wpdb->prepare()` when a related object does not have an index field set. (@sc0ttkclark)
|
250 |
* Fixed: Resolve issue with not reading cache when no ID is passed into Pods objects for Settings pods. #3582 #3583 (@pcfreak30, @sc0ttkclark, @JoryHogeveen)
|
251 |
* Fixed: Don't show the edit link in PodsUI if access is restricted, previously going to edit would show the access message but now the link won't show at all in those restricted cases. (@sc0ttkclark)
|
@@ -22,8 +22,10 @@ class Field extends Base {
|
|
22 |
* @return array List of tabs for the Field object.
|
23 |
*/
|
24 |
public function get_tabs( \Pods\Whatsit\Pod $pod ) {
|
|
|
|
|
25 |
$core_tabs = [
|
26 |
-
'basic'
|
27 |
];
|
28 |
|
29 |
$field_types = PodsForm::field_types();
|
@@ -39,6 +41,14 @@ class Field extends Base {
|
|
39 |
];
|
40 |
}
|
41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
$core_tabs['advanced'] = __( 'Advanced', 'pods' );
|
43 |
|
44 |
// Only include kitchen sink if dev mode on and not running Codecept tests.
|
@@ -100,8 +110,13 @@ class Field extends Base {
|
|
100 |
* @return array List of fields for the Field object.
|
101 |
*/
|
102 |
public function get_fields( \Pods\Whatsit\Pod $pod, array $tabs ) {
|
103 |
-
$field_types
|
104 |
-
$tableless_field_types
|
|
|
|
|
|
|
|
|
|
|
105 |
|
106 |
$options = [];
|
107 |
|
@@ -201,15 +216,10 @@ class Field extends Base {
|
|
201 |
'boolean_yes_label' => '',
|
202 |
'help' => __( 'This will require a non-empty value to be entered.', 'pods' ),
|
203 |
],
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
'depends-on' => [
|
209 |
-
'type' => PodsForm::repeatable_field_types(),
|
210 |
-
],
|
211 |
-
],
|
212 |
-
'repeatable' => [
|
213 |
'name' => 'repeatable',
|
214 |
'label' => __( 'Repeatable', 'pods' ),
|
215 |
'default' => 0,
|
@@ -218,19 +228,49 @@ class Field extends Base {
|
|
218 |
'boolean_yes_label' => __( 'Allow multiple values', 'pods' ),
|
219 |
'dependency' => true,
|
220 |
'depends-on' => [
|
221 |
-
'type' =>
|
222 |
],
|
223 |
],
|
224 |
-
'repeatable_add_new_label'
|
225 |
'name' => 'repeatable_add_new_label',
|
226 |
'label' => __( 'Repeatable - Add New Label', 'pods' ),
|
227 |
'placeholder' => __( 'Add New', 'pods' ),
|
228 |
'default' => '',
|
229 |
'type' => 'text',
|
230 |
'depends-on' => [
|
231 |
-
'type' =>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
232 |
'repeatable' => true,
|
233 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
234 |
],
|
235 |
];
|
236 |
|
22 |
* @return array List of tabs for the Field object.
|
23 |
*/
|
24 |
public function get_tabs( \Pods\Whatsit\Pod $pod ) {
|
25 |
+
$repeatable_field_types = PodsForm::repeatable_field_types();
|
26 |
+
|
27 |
$core_tabs = [
|
28 |
+
'basic' => __( 'Field Details', 'pods' ),
|
29 |
];
|
30 |
|
31 |
$field_types = PodsForm::field_types();
|
41 |
];
|
42 |
}
|
43 |
|
44 |
+
$core_tabs['repeatable'] = [
|
45 |
+
'name' => 'repeatable',
|
46 |
+
'label' => __( 'Repeatable', 'pods' ),
|
47 |
+
'depends-on' => [
|
48 |
+
'type' => $repeatable_field_types,
|
49 |
+
],
|
50 |
+
];
|
51 |
+
|
52 |
$core_tabs['advanced'] = __( 'Advanced', 'pods' );
|
53 |
|
54 |
// Only include kitchen sink if dev mode on and not running Codecept tests.
|
110 |
* @return array List of fields for the Field object.
|
111 |
*/
|
112 |
public function get_fields( \Pods\Whatsit\Pod $pod, array $tabs ) {
|
113 |
+
$field_types = PodsForm::field_types();
|
114 |
+
$tableless_field_types = PodsForm::tableless_field_types();
|
115 |
+
$repeatable_field_types = PodsForm::repeatable_field_types();
|
116 |
+
$separator_excluded_field_types = PodsForm::separator_excluded_field_types();
|
117 |
+
|
118 |
+
// Remove repeatable fields custom separator options.
|
119 |
+
$serial_repeatable_field_types = array_values( array_diff( $repeatable_field_types, $separator_excluded_field_types ) );
|
120 |
|
121 |
$options = [];
|
122 |
|
216 |
'boolean_yes_label' => '',
|
217 |
'help' => __( 'This will require a non-empty value to be entered.', 'pods' ),
|
218 |
],
|
219 |
+
];
|
220 |
+
|
221 |
+
$options['repeatable'] = [
|
222 |
+
'repeatable' => [
|
|
|
|
|
|
|
|
|
|
|
223 |
'name' => 'repeatable',
|
224 |
'label' => __( 'Repeatable', 'pods' ),
|
225 |
'default' => 0,
|
228 |
'boolean_yes_label' => __( 'Allow multiple values', 'pods' ),
|
229 |
'dependency' => true,
|
230 |
'depends-on' => [
|
231 |
+
'type' => $repeatable_field_types,
|
232 |
],
|
233 |
],
|
234 |
+
'repeatable_add_new_label' => [
|
235 |
'name' => 'repeatable_add_new_label',
|
236 |
'label' => __( 'Repeatable - Add New Label', 'pods' ),
|
237 |
'placeholder' => __( 'Add New', 'pods' ),
|
238 |
'default' => '',
|
239 |
'type' => 'text',
|
240 |
'depends-on' => [
|
241 |
+
'type' => $repeatable_field_types,
|
242 |
+
'repeatable' => true,
|
243 |
+
],
|
244 |
+
],
|
245 |
+
'repeatable_format' => [
|
246 |
+
'label' => __( 'Repeatable - Display Format', 'pods' ),
|
247 |
+
'help' => __( 'Used as format for front-end display', 'pods' ),
|
248 |
+
'depends-on' => [
|
249 |
+
'type' => $serial_repeatable_field_types,
|
250 |
'repeatable' => true,
|
251 |
],
|
252 |
+
'default' => 'default',
|
253 |
+
'required' => true,
|
254 |
+
'type' => 'pick',
|
255 |
+
'data' => [
|
256 |
+
'default' => __( 'Item 1, Item 2, and Item 3', 'pods' ),
|
257 |
+
'non_serial' => __( 'Item 1, Item 2 and Item 3', 'pods' ),
|
258 |
+
'custom' => __( 'Custom separator (without "and")', 'pods' ),
|
259 |
+
],
|
260 |
+
'pick_show_select_text' => 0,
|
261 |
+
'dependency' => true,
|
262 |
+
],
|
263 |
+
'repeatable_format_separator' => [
|
264 |
+
'label' => __( 'Repeatable - Display Format Separator', 'pods' ),
|
265 |
+
'help' => __( 'Used as separator for front-end display. Be sure to include exactly the spaces that you need since the separator is used literally between values. For example, you would use ", " to have values like "One, Two, Three". You would also use " | " to have values like "One | Two | Three".', 'pods' ),
|
266 |
+
'description' => __( 'This option will default to ", "', 'pods' ),
|
267 |
+
'depends-on' => [
|
268 |
+
'type' => $serial_repeatable_field_types,
|
269 |
+
'repeatable' => true,
|
270 |
+
'repeatable_format' => 'custom',
|
271 |
+
],
|
272 |
+
'placeholder' => '',
|
273 |
+
'type' => 'text',
|
274 |
],
|
275 |
];
|
276 |
|
@@ -94,6 +94,7 @@ class API {
|
|
94 |
pods_container( 'pods.blocks.form' );
|
95 |
pods_container( 'pods.blocks.list' );
|
96 |
pods_container( 'pods.blocks.single' );
|
|
|
97 |
pods_container( 'pods.blocks.view' );
|
98 |
|
99 |
/**
|
94 |
pods_container( 'pods.blocks.form' );
|
95 |
pods_container( 'pods.blocks.list' );
|
96 |
pods_container( 'pods.blocks.single' );
|
97 |
+
pods_container( 'pods.blocks.single-list-fields' );
|
98 |
pods_container( 'pods.blocks.view' );
|
99 |
|
100 |
/**
|
@@ -7,6 +7,7 @@ use Pods\Blocks\Types\Field;
|
|
7 |
use Pods\Blocks\Types\Form;
|
8 |
use Pods\Blocks\Types\Item_List;
|
9 |
use Pods\Blocks\Types\Item_Single;
|
|
|
10 |
use Pods\Blocks\Types\View;
|
11 |
use tad_DI52_ServiceProvider;
|
12 |
|
@@ -31,6 +32,7 @@ class Service_Provider extends tad_DI52_ServiceProvider {
|
|
31 |
$this->container->singleton( 'pods.blocks.form', Form::class, [ 'register_with_pods' ] );
|
32 |
$this->container->singleton( 'pods.blocks.list', Item_List::class, [ 'register_with_pods' ] );
|
33 |
$this->container->singleton( 'pods.blocks.single', Item_Single::class, [ 'register_with_pods' ] );
|
|
|
34 |
$this->container->singleton( 'pods.blocks.view', View::class, [ 'register_with_pods' ] );
|
35 |
|
36 |
$this->hooks();
|
7 |
use Pods\Blocks\Types\Form;
|
8 |
use Pods\Blocks\Types\Item_List;
|
9 |
use Pods\Blocks\Types\Item_Single;
|
10 |
+
use Pods\Blocks\Types\Item_Single_List_Fields;
|
11 |
use Pods\Blocks\Types\View;
|
12 |
use tad_DI52_ServiceProvider;
|
13 |
|
32 |
$this->container->singleton( 'pods.blocks.form', Form::class, [ 'register_with_pods' ] );
|
33 |
$this->container->singleton( 'pods.blocks.list', Item_List::class, [ 'register_with_pods' ] );
|
34 |
$this->container->singleton( 'pods.blocks.single', Item_Single::class, [ 'register_with_pods' ] );
|
35 |
+
$this->container->singleton( 'pods.blocks.single-list-fields', Item_Single_List_Fields::class, [ 'register_with_pods' ] );
|
36 |
$this->container->singleton( 'pods.blocks.view', View::class, [ 'register_with_pods' ] );
|
37 |
|
38 |
$this->hooks();
|
@@ -0,0 +1,178 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace Pods\Blocks\Types;
|
4 |
+
|
5 |
+
use WP_Block;
|
6 |
+
|
7 |
+
/**
|
8 |
+
* Item Single List Fields block functionality class.
|
9 |
+
*
|
10 |
+
* @since 2.9.4
|
11 |
+
*/
|
12 |
+
class Item_Single_List_Fields extends Item_Single {
|
13 |
+
|
14 |
+
/**
|
15 |
+
* Which is the name/slug of this block
|
16 |
+
*
|
17 |
+
* @since 2.9.4
|
18 |
+
*
|
19 |
+
* @return string
|
20 |
+
*/
|
21 |
+
public function slug() {
|
22 |
+
return 'pods-block-single-list-fields';
|
23 |
+
}
|
24 |
+
|
25 |
+
/**
|
26 |
+
* Get block configuration to register with Pods.
|
27 |
+
*
|
28 |
+
* @since 2.9.4
|
29 |
+
*
|
30 |
+
* @return array Block configuration.
|
31 |
+
*/
|
32 |
+
public function block() {
|
33 |
+
return [
|
34 |
+
'internal' => true,
|
35 |
+
'label' => __( 'Pods Single Item - List Fields', 'pods' ),
|
36 |
+
'description' => __( 'Display fields for a single Pod item.', 'pods' ),
|
37 |
+
'namespace' => 'pods',
|
38 |
+
'category' => 'pods',
|
39 |
+
'icon' => 'pods',
|
40 |
+
'renderType' => 'php',
|
41 |
+
'render_callback' => [ $this, 'render' ],
|
42 |
+
'keywords' => [
|
43 |
+
'pods',
|
44 |
+
'single',
|
45 |
+
'item',
|
46 |
+
'list',
|
47 |
+
'fields',
|
48 |
+
],
|
49 |
+
'uses_context' => [
|
50 |
+
'postType',
|
51 |
+
'postId',
|
52 |
+
],
|
53 |
+
];
|
54 |
+
}
|
55 |
+
|
56 |
+
/**
|
57 |
+
* Get list of Field configurations to register with Pods for the block.
|
58 |
+
*
|
59 |
+
* @since 2.9.4
|
60 |
+
*
|
61 |
+
* @return array List of Field configurations.
|
62 |
+
*/
|
63 |
+
public function fields() {
|
64 |
+
$api = pods_api();
|
65 |
+
|
66 |
+
$all_pods = $api->load_pods( [ 'names' => true ] );
|
67 |
+
$all_pods = array_merge( [
|
68 |
+
'' => '- ' . __( 'Use Current Pod', 'pods' ) . ' -',
|
69 |
+
], $all_pods );
|
70 |
+
|
71 |
+
return [
|
72 |
+
[
|
73 |
+
'name' => 'name',
|
74 |
+
'label' => __( 'Pod Name', 'pods' ),
|
75 |
+
'type' => 'pick',
|
76 |
+
'data' => $all_pods,
|
77 |
+
'default' => '',
|
78 |
+
'description' => __( 'Choose the pod to reference, or reference the Pod in the current context of this block.', 'pods' ),
|
79 |
+
],
|
80 |
+
[
|
81 |
+
'name' => 'slug',
|
82 |
+
'label' => __( 'Slug or ID', 'pods' ),
|
83 |
+
'type' => 'text',
|
84 |
+
'description' => __( 'Defaults to using the current pod item.', 'pods' ),
|
85 |
+
],
|
86 |
+
[
|
87 |
+
'name' => 'display_output_type',
|
88 |
+
'label' => __( 'Output Type', 'pods' ),
|
89 |
+
'type' => 'pick',
|
90 |
+
'data' => [
|
91 |
+
'ul' => 'Unordered list (<ul>)',
|
92 |
+
'dl' => 'Description list (<dl>)',
|
93 |
+
'p' => 'Paragraph elements (<p>)',
|
94 |
+
'div' => 'Div containers (<div>)',
|
95 |
+
'table' => 'Table rows (<table>)',
|
96 |
+
],
|
97 |
+
'default' => 'ul',
|
98 |
+
'description' => __( 'Choose how you want your output HTML to be set up. This allows you flexibility to build and style your output with any CSS customizations you would like. Some output types are naturally laid out better in certain themes.', 'pods' ),
|
99 |
+
],
|
100 |
+
[
|
101 |
+
'name' => 'display_fields',
|
102 |
+
'label' => __( 'Display Fields', 'pods' ),
|
103 |
+
'type' => 'paragraph',
|
104 |
+
'description' => __( 'Comma-separated list of the Pod Fields you want to display. Default is to show all. Use this OR the Exclude Fields option.', 'pods' ),
|
105 |
+
],
|
106 |
+
[
|
107 |
+
'name' => 'exclude_fields',
|
108 |
+
'label' => __( 'Exclude Fields', 'pods' ),
|
109 |
+
'type' => 'paragraph',
|
110 |
+
'description' => __( 'Comma-separated list of the Pod Fields you want to exclude from display. Default is to show all. Use this OR the Display Fields option.', 'pods' ),
|
111 |
+
],
|
112 |
+
];
|
113 |
+
}
|
114 |
+
|
115 |
+
/**
|
116 |
+
* Since we are dealing with a Dynamic type of Block we need a PHP method to render it.
|
117 |
+
*
|
118 |
+
* @since 2.9.4
|
119 |
+
*
|
120 |
+
* @param array $attributes The block attributes.
|
121 |
+
* @param string $content The block default content.
|
122 |
+
* @param WP_Block|null $block The block instance.
|
123 |
+
*
|
124 |
+
* @return string The block content to render.
|
125 |
+
*/
|
126 |
+
public function render( $attributes = [], $content = '', $block = null ) {
|
127 |
+
$attributes = $this->attributes( $attributes );
|
128 |
+
$attributes = array_map( 'pods_trim', $attributes );
|
129 |
+
|
130 |
+
if ( empty( $attributes['display_output_type'] ) ) {
|
131 |
+
$attributes['display_output_type'] = 'ul';
|
132 |
+
}
|
133 |
+
|
134 |
+
$magic_tag_data = [
|
135 |
+
'_all_fields',
|
136 |
+
$attributes['display_output_type'],
|
137 |
+
];
|
138 |
+
|
139 |
+
if ( ! empty( $attributes['display_fields'] ) ) {
|
140 |
+
$magic_tag_data[0] = '_display_fields';
|
141 |
+
|
142 |
+
$display_fields = $this->prepare_formatted_fields_by_pipe( $attributes['display_fields'] );
|
143 |
+
|
144 |
+
if ( '' !== $display_fields ) {
|
145 |
+
$magic_tag_data[] = $display_fields;
|
146 |
+
}
|
147 |
+
} elseif ( ! empty( $attributes['exclude_fields'] ) ) {
|
148 |
+
$magic_tag_data[0] = '_display_fields';
|
149 |
+
|
150 |
+
$exclude_fields = $this->prepare_formatted_fields_by_pipe( $attributes['exclude_fields'] );
|
151 |
+
|
152 |
+
if ( '' !== $exclude_fields ) {
|
153 |
+
$magic_tag_data[] = 'exclude=' . $exclude_fields;
|
154 |
+
}
|
155 |
+
}
|
156 |
+
|
157 |
+
$attributes['template_custom'] = '{@' . implode( '.', $magic_tag_data ) . '}';
|
158 |
+
|
159 |
+
return parent::render( $attributes, $content, $block );
|
160 |
+
}
|
161 |
+
|
162 |
+
/**
|
163 |
+
* Prepare the list of formatted fields separated by pipe.
|
164 |
+
*
|
165 |
+
* @param string $fields The list of fields.
|
166 |
+
*
|
167 |
+
* @return string The list of formatted fields separated by pipe.
|
168 |
+
*/
|
169 |
+
private function prepare_formatted_fields_by_pipe( $fields ) {
|
170 |
+
$fields = str_replace( '.', ':', $fields );
|
171 |
+
$fields = preg_replace( '/[^a-zA-Z0-9\:\_\-]/', '|', $fields );
|
172 |
+
$fields = preg_replace( '/[\s\,\|]+/', '|', $fields );
|
173 |
+
$fields = explode( '|', $fields );
|
174 |
+
$fields = array_unique( array_filter( $fields ) );
|
175 |
+
|
176 |
+
return implode( '|', $fields );
|
177 |
+
}
|
178 |
+
}
|
@@ -21,11 +21,11 @@ class Map_Field_Values {
|
|
21 |
* @param string $field The first field name in the path.
|
22 |
* @param string[] $traverse The list of all fields in the path.
|
23 |
* @param null|Field|Object_Field $field_data The field data or null if not a field.
|
24 |
-
* @param Pods
|
25 |
*
|
26 |
* @return null|mixed The matching image field value or null if there was no match.
|
27 |
*/
|
28 |
-
public function map_value( $field, $traverse, $field_data, $obj ) {
|
29 |
// Remove the first field from $traverse.
|
30 |
if ( $field === reset( $traverse ) ) {
|
31 |
array_shift( $traverse );
|
@@ -40,7 +40,7 @@ class Map_Field_Values {
|
|
40 |
* @param string $field The first field name in the path.
|
41 |
* @param string[] $traverse The list of fields in the path excluding the first field name.
|
42 |
* @param null|Field|Object_Field $field_data The field data or null if not a field.
|
43 |
-
* @param Pods
|
44 |
*/
|
45 |
$value = apply_filters( 'pods_data_map_field_values_map_value_pre_check', null, $field, $traverse, $field_data, $obj );
|
46 |
|
@@ -52,6 +52,7 @@ class Map_Field_Values {
|
|
52 |
'custom',
|
53 |
'pod_info',
|
54 |
'field_info',
|
|
|
55 |
'context_info',
|
56 |
'calculation',
|
57 |
'image_fields',
|
@@ -79,7 +80,7 @@ class Map_Field_Values {
|
|
79 |
* @param string $field The first field name in the path.
|
80 |
* @param string[] $traverse The list of fields in the path excluding the first field name.
|
81 |
* @param null|Field|Object_Field $field_data The field data or null if not a field.
|
82 |
-
* @param Pods
|
83 |
* @param string|false $method The matching mapping method or false if there was no match.
|
84 |
*/
|
85 |
return apply_filters( 'pods_data_map_field_values_map_value', $value, $field, $traverse, $field_data, $obj, $method );
|
@@ -93,7 +94,7 @@ class Map_Field_Values {
|
|
93 |
* @param string $field The first field name in the path.
|
94 |
* @param string[] $traverse The list of fields in the path excluding the first field name.
|
95 |
* @param null|Field|Object_Field $field_data The field data or null if not a field.
|
96 |
-
* @param Pods
|
97 |
*
|
98 |
* @return null|mixed The matching field value or null if there was no match.
|
99 |
*/
|
@@ -107,7 +108,7 @@ class Map_Field_Values {
|
|
107 |
* @param string $field The first field name in the path.
|
108 |
* @param string[] $traverse The list of fields in the path excluding the first field name.
|
109 |
* @param null|Field|Object_Field $field_data The field data or null if not a field.
|
110 |
-
* @param Pods
|
111 |
*/
|
112 |
return apply_filters( 'pods_data_map_field_values_custom', null, $field, $traverse, $field_data, $obj );
|
113 |
}
|
@@ -120,7 +121,7 @@ class Map_Field_Values {
|
|
120 |
* @param string $field The first field name in the path.
|
121 |
* @param string[] $traverse The list of fields in the path excluding the first field name.
|
122 |
* @param null|Field|Object_Field $field_data The field data or null if not a field.
|
123 |
-
* @param Pods
|
124 |
*
|
125 |
* @return null|mixed The matching pod info value or null if there was no match.
|
126 |
*/
|
@@ -135,6 +136,11 @@ class Map_Field_Values {
|
|
135 |
return null;
|
136 |
}
|
137 |
|
|
|
|
|
|
|
|
|
|
|
138 |
$pod_option = ! empty( $traverse[0] ) ? $traverse[0] : 'name';
|
139 |
|
140 |
return $obj->pod_data->get_arg( $pod_option );
|
@@ -148,7 +154,7 @@ class Map_Field_Values {
|
|
148 |
* @param string $field The first field name in the path.
|
149 |
* @param string[] $traverse The list of fields in the path excluding the first field name.
|
150 |
* @param null|Field|Object_Field $field_data The field data or null if not a field.
|
151 |
-
* @param Pods
|
152 |
*
|
153 |
* @return null|mixed The matching field info value or null if there was no match.
|
154 |
*/
|
@@ -163,6 +169,11 @@ class Map_Field_Values {
|
|
163 |
return null;
|
164 |
}
|
165 |
|
|
|
|
|
|
|
|
|
|
|
166 |
// Skip if no field was set.
|
167 |
if ( empty( $traverse[0] ) ) {
|
168 |
return null;
|
@@ -174,6 +185,144 @@ class Map_Field_Values {
|
|
174 |
return $obj->fields( $field_match, $field_option );
|
175 |
}
|
176 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
177 |
/**
|
178 |
* Map the matching context info value.
|
179 |
*
|
@@ -182,7 +331,7 @@ class Map_Field_Values {
|
|
182 |
* @param string $field The first field name in the path.
|
183 |
* @param string[] $traverse The list of fields in the path excluding the first field name.
|
184 |
* @param null|Field|Object_Field $field_data The field data or null if not a field.
|
185 |
-
* @param Pods
|
186 |
*
|
187 |
* @return null|mixed The matching context info value or null if there was no match.
|
188 |
*/
|
@@ -225,8 +374,6 @@ class Map_Field_Values {
|
|
225 |
'network-admin-url',
|
226 |
'user-admin-url',
|
227 |
'prefix',
|
228 |
-
'session',
|
229 |
-
'cookie',
|
230 |
'user',
|
231 |
'option',
|
232 |
'site-option',
|
@@ -267,7 +414,7 @@ class Map_Field_Values {
|
|
267 |
* @param string $field The first field name in the path.
|
268 |
* @param string[] $traverse The list of fields in the path excluding the first field name.
|
269 |
* @param null|Field|Object_Field $field_data The field data or null if not a field.
|
270 |
-
* @param Pods
|
271 |
*
|
272 |
* @return null|mixed The matching calculation value or null if there was no match.
|
273 |
*/
|
@@ -277,6 +424,11 @@ class Map_Field_Values {
|
|
277 |
return null;
|
278 |
}
|
279 |
|
|
|
|
|
|
|
|
|
|
|
280 |
$supported_calculations = [
|
281 |
'_zebra',
|
282 |
'_position',
|
@@ -336,7 +488,7 @@ class Map_Field_Values {
|
|
336 |
* @param string $field The first field name in the path.
|
337 |
* @param string[] $traverse The list of fields in the path excluding the first field name.
|
338 |
* @param null|Field|Object_Field $field_data The field data or null if not a field.
|
339 |
-
* @param Pods
|
340 |
*
|
341 |
* @return null|mixed The matching image field value or null if there was no match.
|
342 |
*/
|
@@ -353,13 +505,13 @@ class Map_Field_Values {
|
|
353 |
'image_attachment_src',
|
354 |
];
|
355 |
|
356 |
-
$object_type = $obj->pod_data->get_type();
|
357 |
|
358 |
if ( 'post_type' === $object_type ) {
|
359 |
$image_fields[] = 'post_thumbnail';
|
360 |
$image_fields[] = 'post_thumbnail_url';
|
361 |
$image_fields[] = 'post_thumbnail_src';
|
362 |
-
} elseif ( 'media' === $
|
363 |
$image_fields[] = '_img';
|
364 |
$image_fields[] = '_url';
|
365 |
$image_fields[] = '_src';
|
@@ -370,7 +522,7 @@ class Map_Field_Values {
|
|
370 |
return null;
|
371 |
}
|
372 |
|
373 |
-
$item_id = $obj->id();
|
374 |
|
375 |
// Copy for further modification.
|
376 |
$image_field = $field;
|
@@ -402,7 +554,9 @@ class Map_Field_Values {
|
|
402 |
|
403 |
// All other pods.
|
404 |
case 'post_thumbnail':
|
405 |
-
|
|
|
|
|
406 |
|
407 |
break;
|
408 |
case 'image_attachment':
|
@@ -454,7 +608,10 @@ class Map_Field_Values {
|
|
454 |
$media = pods( 'media', $attachment_id, false );
|
455 |
|
456 |
if ( $media && $media->valid() && $media->exists() ) {
|
457 |
-
return $media->field(
|
|
|
|
|
|
|
458 |
}
|
459 |
|
460 |
// Fallback to default attachment object.
|
@@ -490,7 +647,7 @@ class Map_Field_Values {
|
|
490 |
* @param string $field The first field name in the path.
|
491 |
* @param string[] $traverse The list of fields in the path excluding the first field name.
|
492 |
* @param null|Field|Object_Field $field_data The field data or null if not a field.
|
493 |
-
* @param Pods
|
494 |
*
|
495 |
* @return null|mixed The matching avatar field value or null if there was no match.
|
496 |
*/
|
@@ -500,6 +657,11 @@ class Map_Field_Values {
|
|
500 |
return null;
|
501 |
}
|
502 |
|
|
|
|
|
|
|
|
|
|
|
503 |
global $wpdb;
|
504 |
|
505 |
// Skip if not on the supported pod type.
|
@@ -510,6 +672,11 @@ class Map_Field_Values {
|
|
510 |
$size = 0;
|
511 |
$item_id = $obj->id();
|
512 |
|
|
|
|
|
|
|
|
|
|
|
513 |
// Copy for further modification.
|
514 |
$image_field = $field;
|
515 |
$traverse_params = $traverse;
|
21 |
* @param string $field The first field name in the path.
|
22 |
* @param string[] $traverse The list of all fields in the path.
|
23 |
* @param null|Field|Object_Field $field_data The field data or null if not a field.
|
24 |
+
* @param Pods|null $obj The Pods object or null if not set.
|
25 |
*
|
26 |
* @return null|mixed The matching image field value or null if there was no match.
|
27 |
*/
|
28 |
+
public function map_value( $field, $traverse, $field_data, $obj = null ) {
|
29 |
// Remove the first field from $traverse.
|
30 |
if ( $field === reset( $traverse ) ) {
|
31 |
array_shift( $traverse );
|
40 |
* @param string $field The first field name in the path.
|
41 |
* @param string[] $traverse The list of fields in the path excluding the first field name.
|
42 |
* @param null|Field|Object_Field $field_data The field data or null if not a field.
|
43 |
+
* @param Pods|null $obj The Pods object or null if not set.
|
44 |
*/
|
45 |
$value = apply_filters( 'pods_data_map_field_values_map_value_pre_check', null, $field, $traverse, $field_data, $obj );
|
46 |
|
52 |
'custom',
|
53 |
'pod_info',
|
54 |
'field_info',
|
55 |
+
'display_fields',
|
56 |
'context_info',
|
57 |
'calculation',
|
58 |
'image_fields',
|
80 |
* @param string $field The first field name in the path.
|
81 |
* @param string[] $traverse The list of fields in the path excluding the first field name.
|
82 |
* @param null|Field|Object_Field $field_data The field data or null if not a field.
|
83 |
+
* @param Pods|null $obj The Pods object or null if not set.
|
84 |
* @param string|false $method The matching mapping method or false if there was no match.
|
85 |
*/
|
86 |
return apply_filters( 'pods_data_map_field_values_map_value', $value, $field, $traverse, $field_data, $obj, $method );
|
94 |
* @param string $field The first field name in the path.
|
95 |
* @param string[] $traverse The list of fields in the path excluding the first field name.
|
96 |
* @param null|Field|Object_Field $field_data The field data or null if not a field.
|
97 |
+
* @param Pods|null $obj The Pods object or null if not set.
|
98 |
*
|
99 |
* @return null|mixed The matching field value or null if there was no match.
|
100 |
*/
|
108 |
* @param string $field The first field name in the path.
|
109 |
* @param string[] $traverse The list of fields in the path excluding the first field name.
|
110 |
* @param null|Field|Object_Field $field_data The field data or null if not a field.
|
111 |
+
* @param Pods|null $obj The Pods object or null if not set.
|
112 |
*/
|
113 |
return apply_filters( 'pods_data_map_field_values_custom', null, $field, $traverse, $field_data, $obj );
|
114 |
}
|
121 |
* @param string $field The first field name in the path.
|
122 |
* @param string[] $traverse The list of fields in the path excluding the first field name.
|
123 |
* @param null|Field|Object_Field $field_data The field data or null if not a field.
|
124 |
+
* @param Pods|null $obj The Pods object or null if not set.
|
125 |
*
|
126 |
* @return null|mixed The matching pod info value or null if there was no match.
|
127 |
*/
|
136 |
return null;
|
137 |
}
|
138 |
|
139 |
+
// Skip if there is no Pods object.
|
140 |
+
if ( ! $obj ) {
|
141 |
+
return null;
|
142 |
+
}
|
143 |
+
|
144 |
$pod_option = ! empty( $traverse[0] ) ? $traverse[0] : 'name';
|
145 |
|
146 |
return $obj->pod_data->get_arg( $pod_option );
|
154 |
* @param string $field The first field name in the path.
|
155 |
* @param string[] $traverse The list of fields in the path excluding the first field name.
|
156 |
* @param null|Field|Object_Field $field_data The field data or null if not a field.
|
157 |
+
* @param Pods|null $obj The Pods object or null if not set.
|
158 |
*
|
159 |
* @return null|mixed The matching field info value or null if there was no match.
|
160 |
*/
|
169 |
return null;
|
170 |
}
|
171 |
|
172 |
+
// Skip if there is no Pods object.
|
173 |
+
if ( ! $obj ) {
|
174 |
+
return null;
|
175 |
+
}
|
176 |
+
|
177 |
// Skip if no field was set.
|
178 |
if ( empty( $traverse[0] ) ) {
|
179 |
return null;
|
185 |
return $obj->fields( $field_match, $field_option );
|
186 |
}
|
187 |
|
188 |
+
/**
|
189 |
+
* Map the matching _display_fields value.
|
190 |
+
*
|
191 |
+
* @since 2.9.4
|
192 |
+
*
|
193 |
+
* @param string $field The first field name in the path.
|
194 |
+
* @param string[] $traverse The list of fields in the path excluding the first field name.
|
195 |
+
* @param null|Field|Object_Field $field_data The field data or null if not a field.
|
196 |
+
* @param Pods|null $obj The Pods object or null if not set.
|
197 |
+
*
|
198 |
+
* @return null|mixed The matching _display_fields value or null if there was no match.
|
199 |
+
*/
|
200 |
+
public function display_fields( $field, $traverse, $field_data, $obj ) {
|
201 |
+
// Skip if the field exists.
|
202 |
+
if ( $field_data ) {
|
203 |
+
return null;
|
204 |
+
}
|
205 |
+
|
206 |
+
$is_all_fields = '_all_fields' === $field;
|
207 |
+
|
208 |
+
// Skip if not the field we are looking for.
|
209 |
+
if ( '_display_fields' !== $field && ! $is_all_fields ) {
|
210 |
+
return null;
|
211 |
+
}
|
212 |
+
|
213 |
+
// Skip if there is no Pods object.
|
214 |
+
if ( ! $obj ) {
|
215 |
+
return null;
|
216 |
+
}
|
217 |
+
|
218 |
+
$item_id = $obj->id();
|
219 |
+
|
220 |
+
// Skip if there is no item data.
|
221 |
+
if ( empty( $item_id ) ) {
|
222 |
+
return null;
|
223 |
+
}
|
224 |
+
|
225 |
+
$output_type = ! empty( $traverse[0] ) ? $traverse[0] : 'ul';
|
226 |
+
$fields_to_display = '_all';
|
227 |
+
|
228 |
+
if ( ! $is_all_fields ) {
|
229 |
+
$fields_to_display = ( ! empty( $traverse[1] ) ? $traverse[1] : '_all' );
|
230 |
+
}
|
231 |
+
|
232 |
+
$pod = $obj->pod_data;
|
233 |
+
|
234 |
+
$are_fields_excluded = 0 === strpos( $fields_to_display, 'exclude=' );
|
235 |
+
|
236 |
+
if ( '_all' === $fields_to_display || $are_fields_excluded ) {
|
237 |
+
$display_fields = $pod->get_fields();
|
238 |
+
|
239 |
+
// @todo For post types -- handle checking if the post type supported title / editor, include them only if they are enabled.
|
240 |
+
if ( ! empty( $obj->data->field_index ) ) {
|
241 |
+
$display_field = $pod->get_field( $obj->data->field_index );
|
242 |
+
|
243 |
+
if ( $display_field ) {
|
244 |
+
$display_fields = array_merge( [
|
245 |
+
$display_field->get_name() => $display_field,
|
246 |
+
], $display_fields );
|
247 |
+
}
|
248 |
+
}
|
249 |
+
|
250 |
+
if ( $are_fields_excluded ) {
|
251 |
+
// Handle excluded fields.
|
252 |
+
$fields_to_exclude = substr( $fields_to_display, strlen( 'exclude=' ) );
|
253 |
+
$fields_to_exclude = explode( '|', $fields_to_exclude );
|
254 |
+
$fields_to_exclude = array_filter( array_unique( $fields_to_exclude ) );
|
255 |
+
|
256 |
+
foreach ( $fields_to_exclude as $field_to_exclude ) {
|
257 |
+
$field_to_exclude = str_replace( ':', '.', $field_to_exclude );
|
258 |
+
|
259 |
+
$field_name = explode( '.', $field_to_exclude );
|
260 |
+
$field_name = $field_name[0];
|
261 |
+
|
262 |
+
if ( isset( $display_fields[ $field_name ] ) ) {
|
263 |
+
unset( $display_fields[ $field_name ] );
|
264 |
+
}
|
265 |
+
}
|
266 |
+
}
|
267 |
+
} else {
|
268 |
+
$display_fields = [];
|
269 |
+
|
270 |
+
// Handle included fields.
|
271 |
+
$fields_to_display = explode( '|', $fields_to_display );
|
272 |
+
$fields_to_display = array_filter( array_unique( $fields_to_display ) );
|
273 |
+
|
274 |
+
foreach ( $fields_to_display as $field_to_display ) {
|
275 |
+
$field_to_display = str_replace( ':', '.', $field_to_display );
|
276 |
+
|
277 |
+
$field_name = explode( '.', $field_to_display );
|
278 |
+
$field_name = $field_name[0];
|
279 |
+
|
280 |
+
$display_field = $pod->get_field( $field_name );
|
281 |
+
|
282 |
+
if ( $display_field ) {
|
283 |
+
$display_fields[ $field_to_display ] = $display_field;
|
284 |
+
}
|
285 |
+
}
|
286 |
+
}
|
287 |
+
|
288 |
+
if ( 'div' === $output_type ) {
|
289 |
+
$display_file = 'list.php';
|
290 |
+
$list_type = 'div';
|
291 |
+
$tag_name = 'div';
|
292 |
+
$sub_tag_name = 'div';
|
293 |
+
} elseif ( 'p' === $output_type ) {
|
294 |
+
$display_file = 'list.php';
|
295 |
+
$list_type = 'p';
|
296 |
+
$tag_name = 'div';
|
297 |
+
$sub_tag_name = 'p';
|
298 |
+
} elseif ( 'table' === $output_type ) {
|
299 |
+
$display_file = 'table.php';
|
300 |
+
$list_type = 'table';
|
301 |
+
$tag_name = 'table';
|
302 |
+
$sub_tag_name = 'td';
|
303 |
+
} elseif ( 'ol' === $output_type ) {
|
304 |
+
$display_file = 'list.php';
|
305 |
+
$list_type = 'ol';
|
306 |
+
$tag_name = 'ol';
|
307 |
+
$sub_tag_name = 'li';
|
308 |
+
} elseif ( 'dl' === $output_type ) {
|
309 |
+
$display_file = 'dl.php';
|
310 |
+
$list_type = 'dl';
|
311 |
+
$tag_name = 'dl';
|
312 |
+
$sub_tag_name = 'dd';
|
313 |
+
} else {
|
314 |
+
// Default to ul / li list.
|
315 |
+
$display_file = 'list.php';
|
316 |
+
$list_type = 'ul';
|
317 |
+
$tag_name = 'ul';
|
318 |
+
$sub_tag_name = 'li';
|
319 |
+
}
|
320 |
+
|
321 |
+
$bypass_map_field_values = true;
|
322 |
+
|
323 |
+
return pods_view( PODS_DIR . 'ui/front/display/' . $display_file, compact( array_keys( get_defined_vars() ) ), false, 'cache', true );
|
324 |
+
}
|
325 |
+
|
326 |
/**
|
327 |
* Map the matching context info value.
|
328 |
*
|
331 |
* @param string $field The first field name in the path.
|
332 |
* @param string[] $traverse The list of fields in the path excluding the first field name.
|
333 |
* @param null|Field|Object_Field $field_data The field data or null if not a field.
|
334 |
+
* @param Pods|null $obj The Pods object or null if not set.
|
335 |
*
|
336 |
* @return null|mixed The matching context info value or null if there was no match.
|
337 |
*/
|
374 |
'network-admin-url',
|
375 |
'user-admin-url',
|
376 |
'prefix',
|
|
|
|
|
377 |
'user',
|
378 |
'option',
|
379 |
'site-option',
|
414 |
* @param string $field The first field name in the path.
|
415 |
* @param string[] $traverse The list of fields in the path excluding the first field name.
|
416 |
* @param null|Field|Object_Field $field_data The field data or null if not a field.
|
417 |
+
* @param Pods|null $obj The Pods object or null if not set.
|
418 |
*
|
419 |
* @return null|mixed The matching calculation value or null if there was no match.
|
420 |
*/
|
424 |
return null;
|
425 |
}
|
426 |
|
427 |
+
// Skip if there is no Pods object.
|
428 |
+
if ( ! $obj ) {
|
429 |
+
return null;
|
430 |
+
}
|
431 |
+
|
432 |
$supported_calculations = [
|
433 |
'_zebra',
|
434 |
'_position',
|
488 |
* @param string $field The first field name in the path.
|
489 |
* @param string[] $traverse The list of fields in the path excluding the first field name.
|
490 |
* @param null|Field|Object_Field $field_data The field data or null if not a field.
|
491 |
+
* @param Pods|null $obj The Pods object or null if not set.
|
492 |
*
|
493 |
* @return null|mixed The matching image field value or null if there was no match.
|
494 |
*/
|
505 |
'image_attachment_src',
|
506 |
];
|
507 |
|
508 |
+
$object_type = $obj ? $obj->pod_data->get_type() : null;
|
509 |
|
510 |
if ( 'post_type' === $object_type ) {
|
511 |
$image_fields[] = 'post_thumbnail';
|
512 |
$image_fields[] = 'post_thumbnail_url';
|
513 |
$image_fields[] = 'post_thumbnail_src';
|
514 |
+
} elseif ( 'media' === $object_type ) {
|
515 |
$image_fields[] = '_img';
|
516 |
$image_fields[] = '_url';
|
517 |
$image_fields[] = '_src';
|
522 |
return null;
|
523 |
}
|
524 |
|
525 |
+
$item_id = $obj ? $obj->id() : 0;
|
526 |
|
527 |
// Copy for further modification.
|
528 |
$image_field = $field;
|
554 |
|
555 |
// All other pods.
|
556 |
case 'post_thumbnail':
|
557 |
+
if ( $item_id ) {
|
558 |
+
$attachment_id = get_post_thumbnail_id( $item_id );
|
559 |
+
}
|
560 |
|
561 |
break;
|
562 |
case 'image_attachment':
|
608 |
$media = pods( 'media', $attachment_id, false );
|
609 |
|
610 |
if ( $media && $media->valid() && $media->exists() ) {
|
611 |
+
return $media->field( [
|
612 |
+
'name' => implode( '.', $traverse_params ),
|
613 |
+
'bypass_map_field_values' => true,
|
614 |
+
] );
|
615 |
}
|
616 |
|
617 |
// Fallback to default attachment object.
|
647 |
* @param string $field The first field name in the path.
|
648 |
* @param string[] $traverse The list of fields in the path excluding the first field name.
|
649 |
* @param null|Field|Object_Field $field_data The field data or null if not a field.
|
650 |
+
* @param Pods|null $obj The Pods object or null if not set.
|
651 |
*
|
652 |
* @return null|mixed The matching avatar field value or null if there was no match.
|
653 |
*/
|
657 |
return null;
|
658 |
}
|
659 |
|
660 |
+
// Skip if there is no Pods object.
|
661 |
+
if ( ! $obj ) {
|
662 |
+
return null;
|
663 |
+
}
|
664 |
+
|
665 |
global $wpdb;
|
666 |
|
667 |
// Skip if not on the supported pod type.
|
672 |
$size = 0;
|
673 |
$item_id = $obj->id();
|
674 |
|
675 |
+
// Skip if the item ID is not set.
|
676 |
+
if ( empty( $item_id ) ) {
|
677 |
+
return null;
|
678 |
+
}
|
679 |
+
|
680 |
// Copy for further modification.
|
681 |
$image_field = $field;
|
682 |
$traverse_params = $traverse;
|
@@ -212,7 +212,7 @@ class Field {
|
|
212 |
return '';
|
213 |
}
|
214 |
|
215 |
-
$pod =
|
216 |
|
217 |
$field_name = $this->field->get_name();
|
218 |
|
212 |
return '';
|
213 |
}
|
214 |
|
215 |
+
$pod = pods_container( Pod_Manager::class )->get_pod( $this->pod->get_name(), $id );
|
216 |
|
217 |
$field_name = $this->field->get_name();
|
218 |
|
@@ -33,7 +33,7 @@ class Service_Provider extends tad_DI52_ServiceProvider {
|
|
33 |
}
|
34 |
|
35 |
public function hook_init() {
|
36 |
-
$integration =
|
37 |
|
38 |
$requirements = $integration->get_requirements();
|
39 |
|
@@ -47,7 +47,7 @@ class Service_Provider extends tad_DI52_ServiceProvider {
|
|
47 |
$integration->hook();
|
48 |
|
49 |
// Get the Settings instance and register the settings.
|
50 |
-
$settings =
|
51 |
|
52 |
$settings->hook();
|
53 |
}
|
33 |
}
|
34 |
|
35 |
public function hook_init() {
|
36 |
+
$integration = pods_container( Integration::class );
|
37 |
|
38 |
$requirements = $integration->get_requirements();
|
39 |
|
47 |
$integration->hook();
|
48 |
|
49 |
// Get the Settings instance and register the settings.
|
50 |
+
$settings = pods_container( Settings::class );
|
51 |
|
52 |
$settings->hook();
|
53 |
}
|
@@ -2,9 +2,6 @@
|
|
2 |
|
3 |
namespace Pods;
|
4 |
|
5 |
-
use Pods\Data\Map_Field_Values;
|
6 |
-
use Pods\Theme\WP_Query_Integration;
|
7 |
-
|
8 |
use tad_DI52_ServiceProvider;
|
9 |
|
10 |
/**
|
@@ -21,11 +18,12 @@ class Service_Provider extends tad_DI52_ServiceProvider {
|
|
21 |
*/
|
22 |
public function register() {
|
23 |
$this->container->singleton( Config_Handler::class, Config_Handler::class );
|
24 |
-
$this->container->singleton( Map_Field_Values::class, Map_Field_Values::class );
|
25 |
$this->container->singleton( Permissions::class, Permissions::class );
|
26 |
$this->container->singleton( Pod_Manager::class, Pod_Manager::class );
|
27 |
$this->container->singleton( Static_Cache::class, Static_Cache::class );
|
28 |
-
$this->container->singleton(
|
|
|
|
|
29 |
|
30 |
$this->hooks();
|
31 |
}
|
@@ -36,6 +34,6 @@ class Service_Provider extends tad_DI52_ServiceProvider {
|
|
36 |
* @since 2.8.0
|
37 |
*/
|
38 |
protected function hooks() {
|
39 |
-
add_action( 'init', $this->container->callback( WP_Query_Integration::class, 'hook' ), 20 );
|
40 |
}
|
41 |
}
|
2 |
|
3 |
namespace Pods;
|
4 |
|
|
|
|
|
|
|
5 |
use tad_DI52_ServiceProvider;
|
6 |
|
7 |
/**
|
18 |
*/
|
19 |
public function register() {
|
20 |
$this->container->singleton( Config_Handler::class, Config_Handler::class );
|
|
|
21 |
$this->container->singleton( Permissions::class, Permissions::class );
|
22 |
$this->container->singleton( Pod_Manager::class, Pod_Manager::class );
|
23 |
$this->container->singleton( Static_Cache::class, Static_Cache::class );
|
24 |
+
$this->container->singleton( Data\Map_Field_Values::class, Data\Map_Field_Values::class );
|
25 |
+
$this->container->singleton( Theme\WP_Query_Integration::class, Theme\WP_Query_Integration::class );
|
26 |
+
$this->container->singleton( Tools\Repair::class, Tools\Repair::class );
|
27 |
|
28 |
$this->hooks();
|
29 |
}
|
34 |
* @since 2.8.0
|
35 |
*/
|
36 |
protected function hooks() {
|
37 |
+
add_action( 'init', $this->container->callback( Theme\WP_Query_Integration::class, 'hook' ), 20 );
|
38 |
}
|
39 |
}
|
@@ -0,0 +1,659 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace Pods\Tools;
|
4 |
+
|
5 |
+
use Exception;
|
6 |
+
use Throwable;
|
7 |
+
use PodsAPI;
|
8 |
+
use PodsForm;
|
9 |
+
use Pods\Whatsit\Field;
|
10 |
+
use Pods\Whatsit\Group;
|
11 |
+
use Pods\Whatsit\Pod;
|
12 |
+
|
13 |
+
/**
|
14 |
+
* Repair tool functionality.
|
15 |
+
*
|
16 |
+
* @since 2.9.4
|
17 |
+
*/
|
18 |
+
class Repair {
|
19 |
+
|
20 |
+
/**
|
21 |
+
* @var PodsAPI
|
22 |
+
*/
|
23 |
+
private $api;
|
24 |
+
|
25 |
+
/**
|
26 |
+
* @var array
|
27 |
+
*/
|
28 |
+
private $errors = [];
|
29 |
+
|
30 |
+
/**
|
31 |
+
* Repair Groups and Fields for a Pod.
|
32 |
+
*
|
33 |
+
* @since 2.9.4
|
34 |
+
*
|
35 |
+
* @param Pod $pod The Pod object.
|
36 |
+
* @param string $mode The repair mode (upgrade or full).
|
37 |
+
*
|
38 |
+
* @return array The results with information about the repair done.
|
39 |
+
*/
|
40 |
+
public function repair_groups_and_fields_for_pod( Pod $pod, $mode ) {
|
41 |
+
$this->api = pods_api();
|
42 |
+
$this->errors = [];
|
43 |
+
|
44 |
+
$is_upgrade_mode = 'upgrade' === $mode;
|
45 |
+
$is_migrated = 1 === (int) $pod->get_arg( '_migrated_28' );
|
46 |
+
|
47 |
+
// Maybe set up a new group if no groups are found for the Pod.
|
48 |
+
$group_id = $this->maybe_setup_group_if_no_groups( $pod, $mode );
|
49 |
+
|
50 |
+
$results = [];
|
51 |
+
|
52 |
+
// If no group needed to be created, attempt to find the first group ID.
|
53 |
+
if ( null === $group_id ) {
|
54 |
+
$groups = $pod->get_groups( [
|
55 |
+
'fallback_mode' => false,
|
56 |
+
'limit' => 1,
|
57 |
+
] );
|
58 |
+
|
59 |
+
$groups = wp_list_pluck( $groups, 'id' );
|
60 |
+
$groups = array_filter( $groups );
|
61 |
+
|
62 |
+
// Get the first group ID.
|
63 |
+
if ( ! empty( $groups ) ) {
|
64 |
+
$group_id = reset( $groups );
|
65 |
+
}
|
66 |
+
} else {
|
67 |
+
$results['maybe_setup_group_if_no_groups'] = __( 'First group created.', 'pods' );
|
68 |
+
}
|
69 |
+
|
70 |
+
if ( ! $is_upgrade_mode || $is_migrated ) {
|
71 |
+
// Maybe resolve group conflicts.
|
72 |
+
$results['maybe_resolve_group_conflicts'] = $this->maybe_resolve_group_conflicts( $pod );
|
73 |
+
|
74 |
+
// Maybe resolve field conflicts.
|
75 |
+
$results['maybe_resolve_field_conflicts'] = $this->maybe_resolve_field_conflicts( $pod );
|
76 |
+
}
|
77 |
+
|
78 |
+
// If we have a group to work with, use that.
|
79 |
+
if ( null !== $group_id ) {
|
80 |
+
if ( ! $is_upgrade_mode || $is_migrated ) {
|
81 |
+
// Maybe reassign fields with invalid groups.
|
82 |
+
$results['maybe_reassign_fields_with_invalid_groups'] = $this->maybe_reassign_fields_with_invalid_groups( $pod, $group_id );
|
83 |
+
}
|
84 |
+
|
85 |
+
// Maybe reassign orphan fields to the first group.
|
86 |
+
$results['maybe_reassign_orphan_fields'] = $this->maybe_reassign_orphan_fields( $pod, $group_id );
|
87 |
+
}
|
88 |
+
|
89 |
+
// Maybe fix fields with invalid field type.
|
90 |
+
$results['maybe_fix_fields_with_invalid_field_type'] = $this->maybe_fix_fields_with_invalid_field_type( $pod );
|
91 |
+
|
92 |
+
// Mark the pod as migrated if upgrading.
|
93 |
+
if ( $is_upgrade_mode ) {
|
94 |
+
$pod->set_arg( '_migrated_28', 1 );
|
95 |
+
|
96 |
+
try {
|
97 |
+
$this->api->save_pod( $pod );
|
98 |
+
} catch ( Throwable $exception ) {
|
99 |
+
// Do nothing.
|
100 |
+
}
|
101 |
+
}
|
102 |
+
|
103 |
+
$this->api->cache_flush_pods( $pod );
|
104 |
+
|
105 |
+
$pod->flush();
|
106 |
+
|
107 |
+
$results['message_html'] = $this->get_message_html( $pod, $results );
|
108 |
+
|
109 |
+
return $results;
|
110 |
+
}
|
111 |
+
|
112 |
+
/**
|
113 |
+
* Get the message HTML from the repair results.
|
114 |
+
*
|
115 |
+
* @since 2.9.4
|
116 |
+
*
|
117 |
+
* @param Pod $pod The Pod object.
|
118 |
+
* @param array $results The repair results.
|
119 |
+
*
|
120 |
+
* @return string The message HTML.
|
121 |
+
*/
|
122 |
+
protected function get_message_html( Pod $pod, array $results ) {
|
123 |
+
$messages = [
|
124 |
+
sprintf(
|
125 |
+
'<h3>%s</h3>',
|
126 |
+
// translators: The Pod label.
|
127 |
+
sprintf(
|
128 |
+
esc_html__( 'Repair results for %s', 'pods' ),
|
129 |
+
$pod->get_label() . ' (' . $pod->get_name() . ')'
|
130 |
+
)
|
131 |
+
),
|
132 |
+
];
|
133 |
+
|
134 |
+
if ( ! empty( $results['maybe_setup_group_if_no_groups'] ) ) {
|
135 |
+
$repair_result = $results['maybe_setup_group_if_no_groups'];
|
136 |
+
|
137 |
+
$messages[] = sprintf(
|
138 |
+
'<h4>%1$s</h4><ul class="ul-disc"><li>%2$s</li></ul>',
|
139 |
+
esc_html__( 'Setup group if there were no groups', 'pods' ),
|
140 |
+
esc_html( $repair_result )
|
141 |
+
);
|
142 |
+
}
|
143 |
+
|
144 |
+
if ( ! empty( $results['maybe_resolve_group_conflicts'] ) ) {
|
145 |
+
$repair_result = $results['maybe_resolve_group_conflicts'];
|
146 |
+
$repair_result = array_map( 'esc_html', $repair_result );
|
147 |
+
|
148 |
+
$messages[] = sprintf(
|
149 |
+
'<h4>%1$s</h4><ul class="ul-disc"><li>%2$s</li></ul>',
|
150 |
+
esc_html__( 'Resolved group conflicts', 'pods' ),
|
151 |
+
implode( '</li><li>', $repair_result )
|
152 |
+
);
|
153 |
+
}
|
154 |
+
|
155 |
+
if ( ! empty( $results['maybe_resolve_field_conflicts'] ) ) {
|
156 |
+
$repair_result = $results['maybe_resolve_field_conflicts'];
|
157 |
+
$repair_result = array_map( 'esc_html', $repair_result );
|
158 |
+
|
159 |
+
$messages[] = sprintf(
|
160 |
+
'<h4>%1$s</h4><ul class="ul-disc"><li>%2$s</li></ul>',
|
161 |
+
esc_html__( 'Resolved field conflicts', 'pods' ),
|
162 |
+
implode( '</li><li>', $repair_result )
|
163 |
+
);
|
164 |
+
}
|
165 |
+
|
166 |
+
if ( ! empty( $results['maybe_reassign_fields_with_invalid_groups'] ) ) {
|
167 |
+
$repair_result = $results['maybe_reassign_fields_with_invalid_groups'];
|
168 |
+
$repair_result = array_map( 'esc_html', $repair_result );
|
169 |
+
|
170 |
+
$messages[] = sprintf(
|
171 |
+
'<h4>%1$s</h4><ul class="ul-disc"><li>%2$s</li></ul>',
|
172 |
+
esc_html__( 'Reassigned fields with invalid groups', 'pods' ),
|
173 |
+
implode( '</li><li>', $repair_result )
|
174 |
+
);
|
175 |
+
}
|
176 |
+
|
177 |
+
if ( ! empty( $results['maybe_reassign_orphan_fields'] ) ) {
|
178 |
+
$repair_result = $results['maybe_reassign_orphan_fields'];
|
179 |
+
$repair_result = array_map( 'esc_html', $repair_result );
|
180 |
+
|
181 |
+
$messages[] = sprintf(
|
182 |
+
'<h4>%1$s</h4><ul class="ul-disc"><li>%2$s</li></ul>',
|
183 |
+
esc_html__( 'Reassigned orphan fields', 'pods' ),
|
184 |
+
implode( '</li><li>', $repair_result )
|
185 |
+
);
|
186 |
+
}
|
187 |
+
|
188 |
+
if ( ! empty( $results['maybe_fix_fields_with_invalid_field_type'] ) ) {
|
189 |
+
$repair_result = $results['maybe_fix_fields_with_invalid_field_type'];
|
190 |
+
$repair_result = array_map( 'esc_html', $repair_result );
|
191 |
+
|
192 |
+
$messages[] = sprintf(
|
193 |
+
'<h4>%1$s</h4><ul class="ul-disc"><li>%2$s</li></ul>',
|
194 |
+
esc_html__( 'Fixed fields with invalid field type', 'pods' ),
|
195 |
+
implode( '</li><li>', $repair_result )
|
196 |
+
);
|
197 |
+
}
|
198 |
+
|
199 |
+
if ( ! empty( $this->errors ) ) {
|
200 |
+
$repair_result = $this->errors;
|
201 |
+
$repair_result = array_map( 'esc_html', $repair_result );
|
202 |
+
|
203 |
+
$messages[] = sprintf(
|
204 |
+
'<h4>%1$s</h4><ul class="ul-disc"><li>%2$s</li></ul>',
|
205 |
+
esc_html__( 'Repair errors', 'pods' ),
|
206 |
+
implode( '</li><li>', $repair_result )
|
207 |
+
);
|
208 |
+
}
|
209 |
+
|
210 |
+
if ( 1 === count( $messages ) ) {
|
211 |
+
$messages[] = esc_html__( 'No repair actions were needed.', 'pods' );
|
212 |
+
}
|
213 |
+
|
214 |
+
return wpautop( implode( "\n\n", $messages ) );
|
215 |
+
}
|
216 |
+
|
217 |
+
/**
|
218 |
+
* Maybe setup group if there are no groups.
|
219 |
+
*
|
220 |
+
* @since 2.9.4
|
221 |
+
*
|
222 |
+
* @param Pod $pod The Pod object.
|
223 |
+
* @param string $mode The repair mode (upgrade or full).
|
224 |
+
*
|
225 |
+
* @return int|null The group ID if created, otherwise null if repair not needed.
|
226 |
+
*/
|
227 |
+
protected function maybe_setup_group_if_no_groups( Pod $pod, $mode ) {
|
228 |
+
$groups = $pod->get_groups( [
|
229 |
+
'fallback_mode' => false,
|
230 |
+
] );
|
231 |
+
|
232 |
+
// Groups exist, no need to create a group.
|
233 |
+
if ( ! empty( $groups ) ) {
|
234 |
+
return null;
|
235 |
+
}
|
236 |
+
|
237 |
+
// For upgrade mode, we create the first group even if there are no fields.
|
238 |
+
if ( 'upgrade' !== $mode ) {
|
239 |
+
$fields = $pod->get_fields( [
|
240 |
+
'fallback_mode' => false,
|
241 |
+
] );
|
242 |
+
|
243 |
+
// No fields, no need to create a group.
|
244 |
+
if ( empty( $fields ) ) {
|
245 |
+
return null;
|
246 |
+
}
|
247 |
+
}
|
248 |
+
|
249 |
+
$group_label = __( 'Details', 'pods' );
|
250 |
+
|
251 |
+
if ( in_array( $pod->get_type(), [ 'post_type', 'taxonomy', 'user', 'comment', 'media' ], true ) ) {
|
252 |
+
$group_label = __( 'More Fields', 'pods' );
|
253 |
+
}
|
254 |
+
|
255 |
+
/**
|
256 |
+
* Filter the title of the Pods Metabox used in the post editor.
|
257 |
+
*
|
258 |
+
* @since unknown
|
259 |
+
*
|
260 |
+
* @param string $title The title to use, default is 'More Fields'.
|
261 |
+
* @param obj|Pod $pod Current Pods Object.
|
262 |
+
* @param array $fields Array of fields that will go in the metabox.
|
263 |
+
* @param string $type The type of Pod.
|
264 |
+
* @param string $name Name of the Pod.
|
265 |
+
*/
|
266 |
+
$group_label = apply_filters( 'pods_meta_default_box_title', $group_label, $pod, $pod->get_fields(), $pod->get_type(), $pod->get_name() );
|
267 |
+
|
268 |
+
$group_name = sanitize_key( pods_js_name( sanitize_title( $group_label ) ) );
|
269 |
+
|
270 |
+
try {
|
271 |
+
$new_group_name = $group_name;
|
272 |
+
|
273 |
+
$counter = 2;
|
274 |
+
|
275 |
+
do {
|
276 |
+
$conflicting_group_found = $this->api->load_group( [
|
277 |
+
'pod' => $pod,
|
278 |
+
'name' => $group_name,
|
279 |
+
] );
|
280 |
+
|
281 |
+
if ( $conflicting_group_found ) {
|
282 |
+
$group_name = $new_group_name . '-' . $counter;
|
283 |
+
}
|
284 |
+
|
285 |
+
$counter ++;
|
286 |
+
} while ( $this->api->load_group( [
|
287 |
+
'pod' => $pod,
|
288 |
+
'name' => $group_name,
|
289 |
+
] ) );
|
290 |
+
|
291 |
+
// Setup first group.
|
292 |
+
$group_id = $this->api->save_group( [
|
293 |
+
'pod' => $pod,
|
294 |
+
'name' => $group_name,
|
295 |
+
'label' => $group_label,
|
296 |
+
] );
|
297 |
+
|
298 |
+
if ( $group_id && is_numeric( $group_id ) ) {
|
299 |
+
return $group_id;
|
300 |
+
}
|
301 |
+
|
302 |
+
throw new Exception( __( 'Failed to create new default group.', 'pods' ) );
|
303 |
+
} catch ( Throwable $exception ) {
|
304 |
+
$this->errors[] = ucwords( str_replace( '_', ' ', __FUNCTION__ ) ) . ' > ' . $exception->getMessage() . ' (' . $group_name . ')';
|
305 |
+
}
|
306 |
+
|
307 |
+
return null;
|
308 |
+
}
|
309 |
+
|
310 |
+
/**
|
311 |
+
* Maybe resolve group conflicts.
|
312 |
+
*
|
313 |
+
* @since 2.9.4
|
314 |
+
*
|
315 |
+
* @param Pod $pod The Pod object.
|
316 |
+
*
|
317 |
+
* @return string[] The label, name, and ID for each group resolved.
|
318 |
+
*/
|
319 |
+
protected function maybe_resolve_group_conflicts( Pod $pod ) {
|
320 |
+
// Find any group on the pod that has the same name as another group.
|
321 |
+
global $wpdb;
|
322 |
+
|
323 |
+
$sql = "
|
324 |
+
SELECT DISTINCT
|
325 |
+
`primary`.`ID`,
|
326 |
+
`primary`.`post_name`
|
327 |
+
FROM `{$wpdb->posts}` AS `primary`
|
328 |
+
LEFT JOIN `{$wpdb->posts}` AS `duplicate`
|
329 |
+
ON `duplicate`.`post_name` = `primary`.`post_name`
|
330 |
+
WHERE
|
331 |
+
`primary`.`post_type` = %s
|
332 |
+
AND `primary`.`post_parent` = %d
|
333 |
+
AND `duplicate`.`ID` != `primary`.`ID`
|
334 |
+
AND `duplicate`.`post_type` = `primary`.`post_type`
|
335 |
+
AND `duplicate`.`post_parent` = `primary`.`post_parent`
|
336 |
+
ORDER BY `primary`.`ID`
|
337 |
+
";
|
338 |
+
|
339 |
+
$duplicate_groups = $wpdb->get_results(
|
340 |
+
$wpdb->prepare(
|
341 |
+
$sql,
|
342 |
+
[
|
343 |
+
'_pods_group',
|
344 |
+
$pod->get_id(),
|
345 |
+
]
|
346 |
+
)
|
347 |
+
);
|
348 |
+
|
349 |
+
$groups_to_resolve = [];
|
350 |
+
|
351 |
+
foreach ( $duplicate_groups as $duplicate_group ) {
|
352 |
+
if ( ! isset( $groups_to_resolve[ $duplicate_group->post_name ] ) ) {
|
353 |
+
$groups_to_resolve[ $duplicate_group->post_name ] = [];
|
354 |
+
}
|
355 |
+
|
356 |
+
try {
|
357 |
+
$group = $this->api->load_group( [ 'id' => $duplicate_group->ID ] );
|
358 |
+
|
359 |
+
if ( $group ) {
|
360 |
+
$groups_to_resolve[ $duplicate_group->post_name ][] = $group;
|
361 |
+
} else {
|
362 |
+
throw new Exception( __( 'Failed to load duplicate group to resolve.', 'pods' ) );
|
363 |
+
}
|
364 |
+
} catch ( Throwable $exception ) {
|
365 |
+
$this->errors[] = ucwords( str_replace( '_', ' ', __FUNCTION__ ) ) . ' > ' . $exception->getMessage() . ' (' . $duplicate_group->post_name . ' - #' . $duplicate_group->ID . ')';
|
366 |
+
}
|
367 |
+
}
|
368 |
+
|
369 |
+
$resolved_groups = [];
|
370 |
+
|
371 |
+
foreach ( $groups_to_resolve as $group_name => $groups ) {
|
372 |
+
if ( 1 < count( $groups ) ) {
|
373 |
+
// Remove the first group.
|
374 |
+
array_shift( $groups );
|
375 |
+
}
|
376 |
+
|
377 |
+
foreach ( $groups as $group ) {
|
378 |
+
/** @var Group $group */
|
379 |
+
try {
|
380 |
+
$this->api->save_group( [
|
381 |
+
'id' => $group->get_id(),
|
382 |
+
'pod_data' => $pod,
|
383 |
+
'group' => $group,
|
384 |
+
'new_name' => $group_name . '_' . $group->get_id(),
|
385 |
+
] );
|
386 |
+
|
387 |
+
$resolved_groups[] = sprintf(
|
388 |
+
'%1$s (%2$s: %3$s | %4$s: %5$s | %6$s: %7$d)',
|
389 |
+
$group->get_label(),
|
390 |
+
__( 'Old Name', 'pods' ),
|
391 |
+
$group_name,
|
392 |
+
__( 'New Name', 'pods' ),
|
393 |
+
$group_name . '_' . $group->get_id(),
|
394 |
+
__( 'ID', 'pods' ),
|
395 |
+
$group->get_id()
|
396 |
+
);
|
397 |
+
} catch ( Throwable $exception ) {
|
398 |
+
$this->errors[] = ucwords( str_replace( '_', ' ', __FUNCTION__ ) ) . ' > ' . $exception->getMessage() . ' (' . $group->get_name() . ' - #' . $group->get_id() . ')';
|
399 |
+
}
|
400 |
+
}
|
401 |
+
}
|
402 |
+
|
403 |
+
return $resolved_groups;
|
404 |
+
}
|
405 |
+
|
406 |
+
/**
|
407 |
+
* Maybe resolve field conflicts.
|
408 |
+
*
|
409 |
+
* @since 2.9.4
|
410 |
+
*
|
411 |
+
* @param Pod $pod The Pod object.
|
412 |
+
*
|
413 |
+
* @return string[] The label, name, and ID for each field resolved.
|
414 |
+
*/
|
415 |
+
protected function maybe_resolve_field_conflicts( Pod $pod ) {
|
416 |
+
// Find any field on the pod that has the same name as another field.
|
417 |
+
global $wpdb;
|
418 |
+
|
419 |
+
$sql = "
|
420 |
+
SELECT DISTINCT
|
421 |
+
`primary`.`ID`,
|
422 |
+
`primary`.`post_name`
|
423 |
+
FROM `{$wpdb->posts}` AS `primary`
|
424 |
+
LEFT JOIN `{$wpdb->posts}` AS `duplicate`
|
425 |
+
ON `duplicate`.`post_name` = `primary`.`post_name`
|
426 |
+
WHERE
|
427 |
+
`primary`.`post_type` = %s
|
428 |
+
AND `primary`.`post_parent` = %d
|
429 |
+
AND `duplicate`.`ID` != `primary`.`ID`
|
430 |
+
AND `duplicate`.`post_type` = `primary`.`post_type`
|
431 |
+
AND `duplicate`.`post_parent` = `primary`.`post_parent`
|
432 |
+
ORDER BY `primary`.`ID`
|
433 |
+
";
|
434 |
+
|
435 |
+
$duplicate_fields = $wpdb->get_results(
|
436 |
+
$wpdb->prepare(
|
437 |
+
$sql,
|
438 |
+
[
|
439 |
+
'_pods_field',
|
440 |
+
$pod->get_id(),
|
441 |
+
]
|
442 |
+
)
|
443 |
+
);
|
444 |
+
|
445 |
+
$fields_to_resolve = [];
|
446 |
+
|
447 |
+
foreach ( $duplicate_fields as $duplicate_field ) {
|
448 |
+
if ( ! isset( $fields_to_resolve[ $duplicate_field->post_name ] ) ) {
|
449 |
+
$fields_to_resolve[ $duplicate_field->post_name ] = [];
|
450 |
+
}
|
451 |
+
|
452 |
+
try {
|
453 |
+
$field = $this->api->load_field( [ 'id' => $duplicate_field->ID ] );
|
454 |
+
|
455 |
+
if ( $field ) {
|
456 |
+
$fields_to_resolve[ $duplicate_field->post_name ][] = $field;
|
457 |
+
} else {
|
458 |
+
throw new Exception( __( 'Failed to load duplicate field to resolve.', 'pods' ) );
|
459 |
+
}
|
460 |
+
} catch ( Throwable $exception ) {
|
461 |
+
$this->errors[] = ucwords( str_replace( '_', ' ', __FUNCTION__ ) ) . ' > ' . $exception->getMessage() . ' (' . $duplicate_field->post_name . ' - #' . $duplicate_field->ID . ')';
|
462 |
+
}
|
463 |
+
}
|
464 |
+
|
465 |
+
$resolved_fields = [];
|
466 |
+
|
467 |
+
foreach ( $fields_to_resolve as $field_name => $fields ) {
|
468 |
+
if ( 1 < count( $fields ) ) {
|
469 |
+
// Remove the first field.
|
470 |
+
array_shift( $fields );
|
471 |
+
}
|
472 |
+
|
473 |
+
foreach ( $fields as $field ) {
|
474 |
+
/** @var Field $field */
|
475 |
+
try {
|
476 |
+
$this->api->save_field( [
|
477 |
+
'id' => $field->get_id(),
|
478 |
+
'pod_data' => $pod,
|
479 |
+
'field' => $field,
|
480 |
+
'new_name' => $field_name . '_' . $field->get_id(),
|
481 |
+
], false );
|
482 |
+
|
483 |
+
$resolved_fields[] = sprintf(
|
484 |
+
'%1$s (%2$s: %3$s | %4$s: %5$s | %6$s: %7$d)',
|
485 |
+
$field->get_label(),
|
486 |
+
__( 'Old Name', 'pods' ),
|
487 |
+
$field_name,
|
488 |
+
__( 'New Name', 'pods' ),
|
489 |
+
$field_name . '_' . $field->get_id(),
|
490 |
+
__( 'ID', 'pods' ),
|
491 |
+
$field->get_id()
|
492 |
+
);
|
493 |
+
} catch ( Throwable $exception ) {
|
494 |
+
$this->errors[] = ucwords( str_replace( '_', ' ', __FUNCTION__ ) ) . ' > ' . $exception->getMessage() . ' (' . $field->get_name() . ' - #' . $field->get_id() . ')';
|
495 |
+
}
|
496 |
+
}
|
497 |
+
}
|
498 |
+
|
499 |
+
return $resolved_fields;
|
500 |
+
}
|
501 |
+
|
502 |
+
/**
|
503 |
+
* Maybe reassign fields with invalid groups.
|
504 |
+
*
|
505 |
+
* @since 2.9.4
|
506 |
+
*
|
507 |
+
* @param Pod $pod The Pod object.
|
508 |
+
* @param int $group_id The group ID.
|
509 |
+
*
|
510 |
+
* @return string[] The label, name, and ID for each field reassigned.
|
511 |
+
*/
|
512 |
+
protected function maybe_reassign_fields_with_invalid_groups( Pod $pod, $group_id ) {
|
513 |
+
// Get all known group IDs.
|
514 |
+
$groups = $pod->get_groups( [
|
515 |
+
'fallback_mode' => false,
|
516 |
+
] );
|
517 |
+
|
518 |
+
$groups = wp_list_pluck( $groups, 'id' );
|
519 |
+
$groups = array_filter( $groups );
|
520 |
+
|
521 |
+
$fields = $pod->get_fields( [
|
522 |
+
'fallback_mode' => false,
|
523 |
+
'meta_query' => [
|
524 |
+
[
|
525 |
+
'key' => 'group',
|
526 |
+
'value' => $groups,
|
527 |
+
'compare' => 'NOT IN',
|
528 |
+
],
|
529 |
+
],
|
530 |
+
] );
|
531 |
+
|
532 |
+
return $this->reassign_fields_to_group( $fields, $group_id, $pod );
|
533 |
+
}
|
534 |
+
|
535 |
+
/**
|
536 |
+
* Maybe reassign orphan fields.
|
537 |
+
*
|
538 |
+
* @since 2.9.4
|
539 |
+
*
|
540 |
+
* @param Pod $pod The Pod object.
|
541 |
+
* @param int $group_id The group ID.
|
542 |
+
*
|
543 |
+
* @return string[] The label, name, and ID for each field reassigned.
|
544 |
+
*/
|
545 |
+
protected function maybe_reassign_orphan_fields( Pod $pod, $group_id ) {
|
546 |
+
$fields = $pod->get_fields( [
|
547 |
+
'fallback_mode' => false,
|
548 |
+
'group' => null,
|
549 |
+
] );
|
550 |
+
|
551 |
+
return $this->reassign_fields_to_group( $fields, $group_id, $pod );
|
552 |
+
}
|
553 |
+
|
554 |
+
/**
|
555 |
+
* Reassign fields to a specific group.
|
556 |
+
*
|
557 |
+
* @since 2.9.4
|
558 |
+
*
|
559 |
+
* @param Pod $pod The Pod object.
|
560 |
+
* @param int $group_id The group ID.
|
561 |
+
*
|
562 |
+
* @return string[] The label, name, and ID for each field reassigned.
|
563 |
+
*/
|
564 |
+
protected function reassign_fields_to_group( $fields, $group_id, $pod ) {
|
565 |
+
$reassigned_fields = [];
|
566 |
+
|
567 |
+
foreach ( $fields as $field ) {
|
568 |
+
try {
|
569 |
+
$this->api->save_field( [
|
570 |
+
'id' => $field->get_id(),
|
571 |
+
'pod_data' => $pod,
|
572 |
+
'field' => $field,
|
573 |
+
'new_group_id' => $group_id,
|
574 |
+
] );
|
575 |
+
|
576 |
+
$field->set_arg( 'group', $group_id );
|
577 |
+
|
578 |
+
$reassigned_fields[] = sprintf(
|
579 |
+
'%1$s (%2$s: %3$s | %4$s: %5$d)',
|
580 |
+
$field->get_label(),
|
581 |
+
__( 'Name', 'pods' ),
|
582 |
+
$field->get_name(),
|
583 |
+
__( 'ID', 'pods' ),
|
584 |
+
$field->get_id()
|
585 |
+
);
|
586 |
+
} catch ( Throwable $exception ) {
|
587 |
+
$this->errors[] = ucwords( str_replace( '_', ' ', __FUNCTION__ ) ) . ' > ' . $exception->getMessage() . ' (' . $field->get_name() . ' - #' . $field->get_id() . ')';
|
588 |
+
}
|
589 |
+
}
|
590 |
+
|
591 |
+
return $reassigned_fields;
|
592 |
+
}
|
593 |
+
|
594 |
+
/**
|
595 |
+
* Maybe fix fields with invalid field type.
|
596 |
+
*
|
597 |
+
* @since 2.9.4
|
598 |
+
*
|
599 |
+
* @param Pod $pod The Pod object.
|
600 |
+
*
|
601 |
+
* @return string[] The label, name, and ID for each field fixed.
|
602 |
+
*/
|
603 |
+
protected function maybe_fix_fields_with_invalid_field_type( Pod $pod ) {
|
604 |
+
$supported_field_types = PodsForm::field_types_list();
|
605 |
+
|
606 |
+
$fields = $pod->get_fields( [
|
607 |
+
'fallback_mode' => false,
|
608 |
+
'meta_query' => [
|
609 |
+
'relation' => 'OR',
|
610 |
+
[
|
611 |
+
'key' => 'type',
|
612 |
+
'value' => $supported_field_types,
|
613 |
+
'compare' => 'NOT IN',
|
614 |
+
],
|
615 |
+
[
|
616 |
+
'key' => 'type',
|
617 |
+
'compare' => 'NOT EXISTS',
|
618 |
+
],
|
619 |
+
],
|
620 |
+
] );
|
621 |
+
|
622 |
+
$fixed_fields = [];
|
623 |
+
|
624 |
+
foreach ( $fields as $field ) {
|
625 |
+
try {
|
626 |
+
$old_type = $field->get_type();
|
627 |
+
|
628 |
+
if ( empty( $old_type ) ) {
|
629 |
+
$old_type = __( 'N/A', 'pods' );
|
630 |
+
}
|
631 |
+
|
632 |
+
$this->api->save_field( [
|
633 |
+
'id' => $field->get_id(),
|
634 |
+
'pod_data' => $pod,
|
635 |
+
'field' => $field,
|
636 |
+
'type' => 'text',
|
637 |
+
] );
|
638 |
+
|
639 |
+
$field->set_arg( 'type', 'text' );
|
640 |
+
|
641 |
+
$fixed_fields[] = sprintf(
|
642 |
+
'%1$s (%2$s: %3$s | %4$s: %5$s | %6$s: %7$d)',
|
643 |
+
$field->get_label(),
|
644 |
+
__( 'Old Type', 'pods' ),
|
645 |
+
$old_type,
|
646 |
+
__( 'Name', 'pods' ),
|
647 |
+
$field->get_name(),
|
648 |
+
__( 'ID', 'pods' ),
|
649 |
+
$field->get_id()
|
650 |
+
);
|
651 |
+
} catch ( Throwable $exception ) {
|
652 |
+
$this->errors[] = ucwords( str_replace( '_', ' ', __FUNCTION__ ) ) . ' > ' . $exception->getMessage() . ' (' . $field->get_name() . ' - #' . $field->get_id() . ')';
|
653 |
+
}
|
654 |
+
}
|
655 |
+
|
656 |
+
return $fixed_fields;
|
657 |
+
}
|
658 |
+
|
659 |
+
}
|
@@ -342,6 +342,30 @@ class Field extends Whatsit {
|
|
342 |
return in_array( $type, $tableless_field_types, true );
|
343 |
}
|
344 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
345 |
/**
|
346 |
* Determine whether the relationship field is a simple relationship.
|
347 |
*
|
342 |
return in_array( $type, $tableless_field_types, true );
|
343 |
}
|
344 |
|
345 |
+
/**
|
346 |
+
* Determine whether this is an autocomplete relationship field.
|
347 |
+
*
|
348 |
+
* @since 2.9.4
|
349 |
+
*
|
350 |
+
* @return bool Whether this is an autocomplete relationship field.
|
351 |
+
*/
|
352 |
+
public function is_autocomplete_relationship() {
|
353 |
+
if ( ! $this->is_relationship() ) {
|
354 |
+
return false;
|
355 |
+
}
|
356 |
+
|
357 |
+
$autocomplete_formats = [
|
358 |
+
'autocomplete',
|
359 |
+
'list',
|
360 |
+
];
|
361 |
+
|
362 |
+
$single_multi = $this->get_single_multi();
|
363 |
+
|
364 |
+
$format = $this->get_type_arg( '_format_' . $single_multi );
|
365 |
+
|
366 |
+
return in_array( $format, $autocomplete_formats, true );
|
367 |
+
}
|
368 |
+
|
369 |
/**
|
370 |
* Determine whether the relationship field is a simple relationship.
|
371 |
*
|
@@ -193,7 +193,13 @@ class Collection extends Storage {
|
|
193 |
|
194 |
if ( $value ) {
|
195 |
foreach ( $objects as $k => $object ) {
|
196 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
197 |
continue;
|
198 |
}
|
199 |
|
193 |
|
194 |
if ( $value ) {
|
195 |
foreach ( $objects as $k => $object ) {
|
196 |
+
$arg_value = $object->get_arg( $arg );
|
197 |
+
|
198 |
+
if ( null !== $arg_value && ! is_scalar( $arg_value ) ) {
|
199 |
+
$arg_value = serialize( $arg_value );
|
200 |
+
}
|
201 |
+
|
202 |
+
if ( in_array( (string) $arg_value, $value, true ) ) {
|
203 |
continue;
|
204 |
}
|
205 |
|
@@ -106,6 +106,12 @@ class Post_Type extends Collection {
|
|
106 |
$fallback_mode = (boolean) $args['fallback_mode'];
|
107 |
}
|
108 |
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
/**
|
110 |
* Filter the maximum number of posts to get for post type storage.
|
111 |
*
|
@@ -120,7 +126,7 @@ class Post_Type extends Collection {
|
|
120 |
'order' => 'ASC',
|
121 |
'orderby' => 'title',
|
122 |
'posts_per_page' => $limit,
|
123 |
-
'meta_query' =>
|
124 |
'post_type' => 'any',
|
125 |
'post_status' => [
|
126 |
'publish',
|
106 |
$fallback_mode = (boolean) $args['fallback_mode'];
|
107 |
}
|
108 |
|
109 |
+
$meta_query = [];
|
110 |
+
|
111 |
+
if ( ! empty( $args['meta_query'] ) ) {
|
112 |
+
$meta_query = (array) $args['meta_query'];
|
113 |
+
}
|
114 |
+
|
115 |
/**
|
116 |
* Filter the maximum number of posts to get for post type storage.
|
117 |
*
|
126 |
'order' => 'ASC',
|
127 |
'orderby' => 'title',
|
128 |
'posts_per_page' => $limit,
|
129 |
+
'meta_query' => $meta_query,
|
130 |
'post_type' => 'any',
|
131 |
'post_status' => [
|
132 |
'publish',
|
@@ -5,7 +5,7 @@
|
|
5 |
|
6 |
$callout = 'friends_2022_30';
|
7 |
|
8 |
-
$donor_count =
|
9 |
$donor_goal = 6500;
|
10 |
$progress_width = ( $donor_count / $donor_goal ) * 100;
|
11 |
|
5 |
|
6 |
$callout = 'friends_2022_30';
|
7 |
|
8 |
+
$donor_count = 3691;
|
9 |
$donor_goal = 6500;
|
10 |
$progress_width = ( $donor_count / $donor_goal ) * 100;
|
11 |
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @var array $addon
|
4 |
+
*/
|
5 |
+
|
6 |
+
$first_link = null;
|
7 |
+
|
8 |
+
foreach ( $addon['links'] as $link ) {
|
9 |
+
if ( __( 'Download', 'pods' ) === $link['label'] ) {
|
10 |
+
continue;
|
11 |
+
}
|
12 |
+
|
13 |
+
$first_link = $link['url'];
|
14 |
+
break;
|
15 |
+
}
|
16 |
+
|
17 |
+
$first_host = pods_host_from_url( $first_link );
|
18 |
+
?>
|
19 |
+
|
20 |
+
<tr>
|
21 |
+
<td>
|
22 |
+
<a href="<?php echo esc_url( $first_link ); ?>" target="_blank" rel="noopener noreferrer"
|
23 |
+
title="<?php echo esc_attr( sprintf( __( 'View Plugin on %s', 'pods' ), $first_host ) ); /* translators: %s is the domain host. */ ?>">
|
24 |
+
<img width="50" height="50" src="<?php echo esc_url( $addon['icon'] ); ?>"
|
25 |
+
class="attachment-thumbnail size-thumbnail" alt="<?php echo esc_attr( $addon['label'] ); ?>" loading="lazy" />
|
26 |
+
</a>
|
27 |
+
</td>
|
28 |
+
<td>
|
29 |
+
<a href="<?php echo esc_url( $first_link ); ?>" target="_blank" rel="noopener noreferrer"
|
30 |
+
title="<?php echo esc_attr( sprintf( __( 'View Plugin on %s', 'pods' ), $first_host ) ); /* translators: %s is the domain host. */ ?>">
|
31 |
+
<?php echo esc_html( $addon['label'] ); ?>
|
32 |
+
</a>
|
33 |
+
|
34 |
+
<?php if ( ! empty( $addon['description'] ) ) : ?>
|
35 |
+
<p><?php echo esc_html( $addon['description'] ); ?></p>
|
36 |
+
<?php endif; ?>
|
37 |
+
</td>
|
38 |
+
<td>
|
39 |
+
<?php
|
40 |
+
$addon_links = [];
|
41 |
+
|
42 |
+
foreach ( $addon['links'] as $link ) {
|
43 |
+
if ( empty( $link['title'] ) ) {
|
44 |
+
$link['title'] = $link['label'];
|
45 |
+
}
|
46 |
+
|
47 |
+
$addon_links[] = sprintf(
|
48 |
+
'<a href="%1$s" title="%2$s" target="_blank" rel="noopener noreferrer">%3$s</a>',
|
49 |
+
esc_url( $link['url'] ),
|
50 |
+
esc_attr( $link['title'] ),
|
51 |
+
esc_html( $link['label'] )
|
52 |
+
);
|
53 |
+
}
|
54 |
+
|
55 |
+
echo implode( ' | ', $addon_links );
|
56 |
+
?>
|
57 |
+
</td>
|
58 |
+
</tr>
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @var array $addons
|
4 |
+
*/
|
5 |
+
?>
|
6 |
+
|
7 |
+
<table class="pods-admin-help-info widefat striped fixed">
|
8 |
+
<thead>
|
9 |
+
<tr>
|
10 |
+
<th></th>
|
11 |
+
<th><?php esc_html_e( 'Plugin', 'pods' ); ?></th>
|
12 |
+
<th><?php esc_html_e( 'Links', 'pods' ); ?></th>
|
13 |
+
</tr>
|
14 |
+
</thead>
|
15 |
+
<tbody>
|
16 |
+
<?php foreach ( $addons as $addon ) : ?>
|
17 |
+
<?php pods_view( PODS_DIR . 'ui/admin/help-addons-row.php', compact( array_keys( get_defined_vars() ) ) ); ?>
|
18 |
+
<?php endforeach; ?>
|
19 |
+
</tbody>
|
20 |
+
</table>
|
@@ -13,6 +13,15 @@
|
|
13 |
<li><?php _e('To report <strong>bugs or request features</strong>, go to our <a href="https://github.com/pods-framework/pods/issues?sort=updated&direction=desc&state=open" target="_blank" rel="noopener noreferrer">GitHub</a>.', 'pods' ); ?></li>
|
14 |
|
15 |
<li><?php _e( 'Pods is open source, so you can get into the code and submit your own fixes or features. We would love to help you contribute on our project over on our <a href="https://github.com/pods-framework/pods/blob/main/docs/CONTRIBUTING.md" target="_blank" rel="noopener noreferrer">GitHub</a>', 'pods'); ?>.</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
</ul>
|
17 |
|
18 |
<hr />
|
@@ -35,214 +44,352 @@
|
|
35 |
}
|
36 |
</style>
|
37 |
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
<a href="https://github.com/pods-framework/pods" target="_blank" rel="noopener noreferrer">
|
73 |
-
<?php esc_html_e( 'GitHub', 'pods' ); ?>
|
74 |
-
</a>
|
75 |
-
</td>
|
76 |
-
</tr>
|
77 |
-
</tbody>
|
78 |
-
</table>
|
79 |
|
80 |
<h2><?php esc_html_e( 'Official Free Add-Ons', 'pods' ); ?></h2>
|
81 |
-
<table class="pods-admin-help-info widefat">
|
82 |
-
<thead>
|
83 |
-
<tr>
|
84 |
-
<th></th>
|
85 |
-
<th><?php esc_html_e( 'Plugin', 'pods' ); ?></th>
|
86 |
-
<th><?php esc_html_e( 'Links', 'pods' ); ?></th>
|
87 |
-
</tr>
|
88 |
-
</thead>
|
89 |
-
<tbody>
|
90 |
-
<tr>
|
91 |
-
<td>
|
92 |
-
<a href="https://wordpress.org/plugins/pods-beaver-builder-themer-add-on/" target="_blank" rel="noopener noreferrer"
|
93 |
-
title="<?php esc_attr_e( 'View plugin on WordPress.org', 'pods' ); ?>">
|
94 |
-
<img width="50" height="50" src="https://ps.w.org/pods-beaver-builder-themer-add-on/assets/icon-256x256.png" class="attachment-thumbnail size-thumbnail" alt="Pods Beaver Themer Add-On" loading="lazy" >
|
95 |
-
</a>
|
96 |
-
</td>
|
97 |
-
<td>
|
98 |
-
<a href="https://wordpress.org/plugins/pods-beaver-builder-themer-add-on/" target="_blank" rel="noopener noreferrer"
|
99 |
-
title="<?php esc_attr_e( 'View plugin on WordPress.org', 'pods' ); ?>">
|
100 |
-
Pods Beaver Themer Add-On
|
101 |
-
</a>
|
102 |
-
</td>
|
103 |
-
<td>
|
104 |
-
<a href="https://downloads.wordpress.org/plugin/pods-beaver-builder-themer-add-on.zip" target="_blank" rel="noopener noreferrer">
|
105 |
-
<?php esc_html_e( 'Download' ); ?>
|
106 |
-
</a> |
|
107 |
-
<a href="https://wordpress.org/support/plugin/pods-beaver-builder-themer-add-on/" target="_blank" rel="noopener noreferrer"
|
108 |
-
title="<?php esc_attr_e( 'Support Forums', 'pods' ); ?>">
|
109 |
-
<?php esc_html_e( 'Support', 'pods' ); ?>
|
110 |
-
</a> |
|
111 |
-
<a href="https://docs.pods.io/plugins/pods-beaver-themer-add-on/" target="_blank" rel="noopener noreferrer"
|
112 |
-
title="<?php esc_attr_e( 'Documentation', 'pods' ); ?>">
|
113 |
-
<?php esc_html_e( 'Docs', 'pods' ); ?>
|
114 |
-
</a> |
|
115 |
-
<a href="https://github.com/pods-framework/pods-beaver-builder-themer-add-on" target="_blank" rel="noopener noreferrer">
|
116 |
-
<?php esc_html_e( 'GitHub', 'pods' ); ?>
|
117 |
-
</a>
|
118 |
-
</td>
|
119 |
-
</tr>
|
120 |
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
151 |
|
152 |
-
|
153 |
-
<td>
|
154 |
-
<a href="https://wordpress.org/plugins/pods-alternative-cache/" target="_blank" rel="noopener noreferrer"
|
155 |
-
title="<?php esc_attr_e( 'View plugin on WordPress.org', 'pods' ); ?>">
|
156 |
-
<img width="50" height="50" src="https://ps.w.org/pods-alternative-cache/assets/icon-256x256.png" class="attachment-thumbnail size-thumbnail" alt="Pods Alternative Cache" loading="lazy" >
|
157 |
-
</a>
|
158 |
-
</td>
|
159 |
-
<td>
|
160 |
-
<a href="https://wordpress.org/plugins/pods-alternative-cache/" target="_blank" rel="noopener noreferrer"
|
161 |
-
title="<?php esc_attr_e( 'View plugin on WordPress.org', 'pods' ); ?>">
|
162 |
-
Pods Alternative Cache
|
163 |
-
</a>
|
164 |
-
</td>
|
165 |
-
<td>
|
166 |
-
<a href="https://downloads.wordpress.org/plugin/pods-alternative-cache.zip" target="_blank" rel="noopener noreferrer">
|
167 |
-
<?php esc_html_e( 'Download' ); ?>
|
168 |
-
</a> |
|
169 |
-
<a href="https://wordpress.org/support/plugin/pods-alternative-cache/" target="_blank" rel="noopener noreferrer"
|
170 |
-
title="<?php esc_attr_e( 'Support Forums', 'pods' ); ?>">
|
171 |
-
<?php esc_html_e( 'Support', 'pods' ); ?>
|
172 |
-
</a> |
|
173 |
-
<a href="https://docs.pods.io/plugins/pods-alternative-cache/" target="_blank" rel="noopener noreferrer"
|
174 |
-
title="<?php esc_attr_e( 'Documentation', 'pods' ); ?>">
|
175 |
-
<?php esc_html_e( 'Docs', 'pods' ); ?>
|
176 |
-
</a> |
|
177 |
-
<a href="https://github.com/pods-framework/pods-alternative-cache" target="_blank" rel="noopener noreferrer">
|
178 |
-
<?php esc_html_e( 'GitHub', 'pods' ); ?>
|
179 |
-
</a>
|
180 |
-
</td>
|
181 |
-
</tr>
|
182 |
|
183 |
-
|
184 |
-
<td>
|
185 |
-
<a href="https://wordpress.org/plugins/pods-seo/" target="_blank" rel="noopener noreferrer"
|
186 |
-
title="<?php esc_attr_e( 'View plugin on WordPress.org', 'pods' ); ?>">
|
187 |
-
<img width="50" height="50" src="https://ps.w.org/pods-seo/assets/icon-256x256.png" class="attachment-thumbnail size-thumbnail" alt="Pods SEO" loading="lazy" >
|
188 |
-
</a>
|
189 |
-
</td>
|
190 |
-
<td>
|
191 |
-
<a href="https://wordpress.org/plugins/pods-seo/" target="_blank" rel="noopener noreferrer"
|
192 |
-
title="<?php esc_attr_e( 'View plugin on WordPress.org', 'pods' ); ?>">
|
193 |
-
Pods SEO
|
194 |
-
</a>
|
195 |
-
</td>
|
196 |
-
<td>
|
197 |
-
<a href="https://downloads.wordpress.org/plugin/pods-seo.zip" target="_blank" rel="noopener noreferrer">
|
198 |
-
<?php esc_html_e( 'Download' ); ?>
|
199 |
-
</a> |
|
200 |
-
<a href="https://wordpress.org/support/plugin/pods-seo/" target="_blank" rel="noopener noreferrer"
|
201 |
-
title="<?php esc_attr_e( 'Support Forums', 'pods' ); ?>">
|
202 |
-
<?php esc_html_e( 'Support', 'pods' ); ?>
|
203 |
-
</a> |
|
204 |
-
<a href="https://github.com/pods-framework/pods-seo" target="_blank" rel="noopener noreferrer">
|
205 |
-
<?php esc_html_e( 'GitHub', 'pods' ); ?>
|
206 |
-
</a>
|
207 |
-
</td>
|
208 |
-
</tr>
|
209 |
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
238 |
|
239 |
-
|
240 |
-
|
241 |
-
<p>Pods Pro by SKCDEV is separate from Pods. You can get support by logging into the
|
242 |
-
<a href="https://pods-pro.skc.dev/" target="_blank" rel="noopener noreferrer">Pods Pro by SKCDEV site</a>
|
243 |
-
and going to your Dashboard area.
|
244 |
-
</p>
|
245 |
-
</div>
|
246 |
</div>
|
247 |
|
248 |
<?php
|
13 |
<li><?php _e('To report <strong>bugs or request features</strong>, go to our <a href="https://github.com/pods-framework/pods/issues?sort=updated&direction=desc&state=open" target="_blank" rel="noopener noreferrer">GitHub</a>.', 'pods' ); ?></li>
|
14 |
|
15 |
<li><?php _e( 'Pods is open source, so you can get into the code and submit your own fixes or features. We would love to help you contribute on our project over on our <a href="https://github.com/pods-framework/pods/blob/main/docs/CONTRIBUTING.md" target="_blank" rel="noopener noreferrer">GitHub</a>', 'pods'); ?>.</li>
|
16 |
+
|
17 |
+
<li><?php
|
18 |
+
echo sprintf(
|
19 |
+
// translators: %1$s: The opening tag for the link; %2$s: The ending tag for the link.
|
20 |
+
esc_html__( 'Check out the complete list of %1$sFree and Premium add-ons%2$s to explore great features and integrations.', 'pods'),
|
21 |
+
'<a href="https://pods.io/plugins/" target="_blank" rel="noopener noreferrer">',
|
22 |
+
'</a>'
|
23 |
+
);
|
24 |
+
?></li>
|
25 |
</ul>
|
26 |
|
27 |
<hr />
|
44 |
}
|
45 |
</style>
|
46 |
|
47 |
+
<?php
|
48 |
+
$addons = [
|
49 |
+
[
|
50 |
+
'label' => 'Pods Framework',
|
51 |
+
'icon' => 'https://ps.w.org/pods/assets/icon-256x256.png',
|
52 |
+
'links' => [
|
53 |
+
[
|
54 |
+
'label' => __( 'Download', 'pods' ),
|
55 |
+
'url' => 'https://downloads.wordpress.org/plugin/pods.zip',
|
56 |
+
],
|
57 |
+
[
|
58 |
+
'label' => __( 'Learn More', 'pods' ),
|
59 |
+
'url' => 'https://wordpress.org/plugins/pods/',
|
60 |
+
],
|
61 |
+
[
|
62 |
+
'label' => __( 'Support', 'pods' ),
|
63 |
+
'title' => __( 'Support Forums', 'pods' ),
|
64 |
+
'url' => 'https://wordpress.org/support/plugin/pods/',
|
65 |
+
],
|
66 |
+
[
|
67 |
+
'label' => __( 'Docs', 'pods' ),
|
68 |
+
'title' => __( 'Documentation', 'pods' ),
|
69 |
+
'url' => 'https://docs.pods.io/',
|
70 |
+
],
|
71 |
+
[
|
72 |
+
'label' => __( 'GitHub', 'pods' ),
|
73 |
+
'url' => 'https://github.com/pods-framework/pods',
|
74 |
+
],
|
75 |
+
],
|
76 |
+
],
|
77 |
+
];
|
78 |
+
|
79 |
+
pods_view( PODS_DIR . 'ui/admin/help-addons.php', compact( array_keys( get_defined_vars() ) ) );
|
80 |
+
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
|
82 |
<h2><?php esc_html_e( 'Official Free Add-Ons', 'pods' ); ?></h2>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
|
84 |
+
<?php
|
85 |
+
$addons = [
|
86 |
+
[
|
87 |
+
'label' => 'Pods Beaver Themer Add-On',
|
88 |
+
'description' => __( 'Integrates Pods with Beaver Themer', 'pods' ),
|
89 |
+
'icon' => 'https://ps.w.org/pods-beaver-builder-themer-add-on/assets/icon-256x256.png',
|
90 |
+
'links' => [
|
91 |
+
[
|
92 |
+
'label' => __( 'Download', 'pods' ),
|
93 |
+
'url' => 'https://downloads.wordpress.org/plugin/pods-beaver-builder-themer-add-on.zip',
|
94 |
+
],
|
95 |
+
[
|
96 |
+
'label' => __( 'Learn More', 'pods' ),
|
97 |
+
'url' => 'https://wordpress.org/plugins/pods-beaver-builder-themer-add-on/',
|
98 |
+
],
|
99 |
+
[
|
100 |
+
'label' => __( 'Support', 'pods' ),
|
101 |
+
'title' => __( 'Support Forums', 'pods' ),
|
102 |
+
'url' => 'https://wordpress.org/support/plugin/pods-beaver-builder-themer-add-on/',
|
103 |
+
],
|
104 |
+
[
|
105 |
+
'label' => __( 'Docs', 'pods' ),
|
106 |
+
'title' => __( 'Documentation', 'pods' ),
|
107 |
+
'url' => 'https://docs.pods.io/plugins/pods-beaver-themer-add-on/',
|
108 |
+
],
|
109 |
+
[
|
110 |
+
'label' => __( 'GitHub', 'pods' ),
|
111 |
+
'url' => 'https://github.com/pods-framework/pods-beaver-builder-themer-add-on',
|
112 |
+
],
|
113 |
+
],
|
114 |
+
],
|
115 |
+
[
|
116 |
+
'label' => 'Pods Gravity Forms Add-On',
|
117 |
+
'description' => __( 'Integrates Pods with Gravity Forms', 'pods' ),
|
118 |
+
'icon' => 'https://ps.w.org/pods-gravity-forms/assets/icon-256x256.png',
|
119 |
+
'links' => [
|
120 |
+
[
|
121 |
+
'label' => __( 'Download', 'pods' ),
|
122 |
+
'url' => 'https://downloads.wordpress.org/plugin/pods-gravity-forms.zip',
|
123 |
+
],
|
124 |
+
[
|
125 |
+
'label' => __( 'Learn More', 'pods' ),
|
126 |
+
'url' => 'https://wordpress.org/plugins/pods-gravity-forms/',
|
127 |
+
],
|
128 |
+
[
|
129 |
+
'label' => __( 'Support', 'pods' ),
|
130 |
+
'title' => __( 'Support Forums', 'pods' ),
|
131 |
+
'url' => 'https://wordpress.org/support/plugin/pods-gravity-forms/',
|
132 |
+
],
|
133 |
+
[
|
134 |
+
'label' => __( 'Docs', 'pods' ),
|
135 |
+
'title' => __( 'Documentation', 'pods' ),
|
136 |
+
'url' => 'https://docs.pods.io/plugins/pods-gravity-forms-add-on/',
|
137 |
+
],
|
138 |
+
[
|
139 |
+
'label' => __( 'GitHub', 'pods' ),
|
140 |
+
'url' => 'https://github.com/pods-framework/pods-gravity-forms',
|
141 |
+
],
|
142 |
+
],
|
143 |
+
],
|
144 |
+
[
|
145 |
+
'label' => 'Pods Alternative Cache Add-On',
|
146 |
+
'description' => __( 'Speed up Pods on servers with limited object caching capabilities', 'pods' ),
|
147 |
+
'icon' => 'https://ps.w.org/pods-alternative-cache/assets/icon-256x256.png',
|
148 |
+
'links' => [
|
149 |
+
[
|
150 |
+
'label' => __( 'Download', 'pods' ),
|
151 |
+
'url' => 'https://downloads.wordpress.org/plugin/pods-alternative-cache.zip',
|
152 |
+
],
|
153 |
+
[
|
154 |
+
'label' => __( 'Learn More', 'pods' ),
|
155 |
+
'url' => 'https://wordpress.org/plugins/pods-alternative-cache/',
|
156 |
+
],
|
157 |
+
[
|
158 |
+
'label' => __( 'Support', 'pods' ),
|
159 |
+
'title' => __( 'Support Forums', 'pods' ),
|
160 |
+
'url' => 'https://wordpress.org/support/plugin/pods-alternative-cache/',
|
161 |
+
],
|
162 |
+
[
|
163 |
+
'label' => __( 'Docs', 'pods' ),
|
164 |
+
'title' => __( 'Documentation', 'pods' ),
|
165 |
+
'url' => 'https://docs.pods.io/plugins/pods-alternative-cache/',
|
166 |
+
],
|
167 |
+
[
|
168 |
+
'label' => __( 'GitHub', 'pods' ),
|
169 |
+
'url' => 'https://github.com/pods-framework/pods-alternative-cache',
|
170 |
+
],
|
171 |
+
],
|
172 |
+
],
|
173 |
+
[
|
174 |
+
'label' => 'Pods SEO Add-On',
|
175 |
+
'description' => __( 'Integrates Pods Advanced Content Types with Yoast SEO', 'pods' ),
|
176 |
+
'icon' => 'https://ps.w.org/pods-seo/assets/icon-256x256.png',
|
177 |
+
'links' => [
|
178 |
+
[
|
179 |
+
'label' => __( 'Download', 'pods' ),
|
180 |
+
'url' => 'https://downloads.wordpress.org/plugin/pods-seo.zip',
|
181 |
+
],
|
182 |
+
[
|
183 |
+
'label' => __( 'Learn More', 'pods' ),
|
184 |
+
'url' => 'https://wordpress.org/plugins/pods-seo/',
|
185 |
+
],
|
186 |
+
[
|
187 |
+
'label' => __( 'Support', 'pods' ),
|
188 |
+
'title' => __( 'Support Forums', 'pods' ),
|
189 |
+
'url' => 'https://wordpress.org/support/plugin/pods-seo/',
|
190 |
+
],
|
191 |
+
[
|
192 |
+
'label' => __( 'GitHub', 'pods' ),
|
193 |
+
'url' => 'https://github.com/pods-framework/pods-seo',
|
194 |
+
],
|
195 |
+
],
|
196 |
+
],
|
197 |
+
[
|
198 |
+
'label' => 'Pods AJAX Views Add-On',
|
199 |
+
'description' => __( 'Adds new functions you can use to output template parts that load via AJAX after other page elements', 'pods' ),
|
200 |
+
'icon' => 'https://ps.w.org/pods-ajax-views/assets/icon-256x256.png',
|
201 |
+
'links' => [
|
202 |
+
[
|
203 |
+
'label' => __( 'Download', 'pods' ),
|
204 |
+
'url' => 'https://downloads.wordpress.org/plugin/pods-ajax-views.zip',
|
205 |
+
],
|
206 |
+
[
|
207 |
+
'label' => __( 'Learn More', 'pods' ),
|
208 |
+
'url' => 'https://wordpress.org/plugins/pods-ajax-views/',
|
209 |
+
],
|
210 |
+
[
|
211 |
+
'label' => __( 'Support', 'pods' ),
|
212 |
+
'title' => __( 'Support Forums', 'pods' ),
|
213 |
+
'url' => 'https://wordpress.org/support/plugin/pods-ajax-views/',
|
214 |
+
],
|
215 |
+
[
|
216 |
+
'label' => __( 'GitHub', 'pods' ),
|
217 |
+
'url' => 'https://github.com/pods-framework/pods-ajax-views',
|
218 |
+
],
|
219 |
+
],
|
220 |
+
],
|
221 |
+
];
|
222 |
+
|
223 |
+
pods_view( PODS_DIR . 'ui/admin/help-addons.php', compact( array_keys( get_defined_vars() ) ) );
|
224 |
+
?>
|
225 |
+
|
226 |
+
<h2><?php esc_html_e( 'Third-party Free Add-Ons', 'pods' ); ?></h2>
|
227 |
+
|
228 |
+
<?php
|
229 |
+
$addons = [
|
230 |
+
[
|
231 |
+
'label' => 'Paid Memberships Pro - Pods Add-On',
|
232 |
+
'description' => __( 'Integrates Pods with Paid Memberships Pro', 'pods' ),
|
233 |
+
'icon' => 'https://ps.w.org/pmpro-pods/assets/icon-256x256.png',
|
234 |
+
'links' => [
|
235 |
+
[
|
236 |
+
'label' => __( 'Download', 'pods' ),
|
237 |
+
'url' => 'https://downloads.wordpress.org/plugin/pmpro-pods.zip',
|
238 |
+
],
|
239 |
+
[
|
240 |
+
'label' => __( 'Learn More', 'pods' ),
|
241 |
+
'url' => 'https://wordpress.org/plugins/pmpro-pods/',
|
242 |
+
],
|
243 |
+
[
|
244 |
+
'label' => __( 'Support', 'pods' ),
|
245 |
+
'title' => __( 'Support Forums', 'pods' ),
|
246 |
+
'url' => 'https://wordpress.org/support/plugin/pmpro-pods/',
|
247 |
+
],
|
248 |
+
[
|
249 |
+
'label' => __( 'Docs', 'pods' ),
|
250 |
+
'title' => __( 'Documentation', 'pods' ),
|
251 |
+
'url' => 'https://www.paidmembershipspro.com/add-ons/pods-integration/',
|
252 |
+
],
|
253 |
+
[
|
254 |
+
'label' => __( 'GitHub', 'pods' ),
|
255 |
+
'url' => 'https://github.com/strangerstudios/pmpro-pods',
|
256 |
+
],
|
257 |
+
],
|
258 |
+
],
|
259 |
+
[
|
260 |
+
'label' => 'Panda Pods Repeater Field Add-On',
|
261 |
+
'description' => __( '(Advanced setup required) Add groups of fields that repeat and are stored in their own custom database table', 'pods' ),
|
262 |
+
'icon' => 'https://ps.w.org/panda-pods-repeater-field/assets/icon-128x128.png',
|
263 |
+
'links' => [
|
264 |
+
[
|
265 |
+
'label' => __( 'Download', 'pods' ),
|
266 |
+
'url' => 'https://downloads.wordpress.org/plugin/panda-pods-repeater-field.zip',
|
267 |
+
],
|
268 |
+
[
|
269 |
+
'label' => __( 'Learn More', 'pods' ),
|
270 |
+
'url' => 'https://wordpress.org/plugins/panda-pods-repeater-field/',
|
271 |
+
],
|
272 |
+
[
|
273 |
+
'label' => __( 'Support', 'pods' ),
|
274 |
+
'title' => __( 'Support Forums', 'pods' ),
|
275 |
+
'url' => 'https://wordpress.org/support/plugin/panda-pods-repeater-field/',
|
276 |
+
],
|
277 |
+
[
|
278 |
+
'label' => __( 'GitHub', 'pods' ),
|
279 |
+
'url' => 'https://github.com/coding-panda/panda-pods-repeater-field',
|
280 |
+
],
|
281 |
+
],
|
282 |
+
],
|
283 |
+
];
|
284 |
+
|
285 |
+
pods_view( PODS_DIR . 'ui/admin/help-addons.php', compact( array_keys( get_defined_vars() ) ) );
|
286 |
+
?>
|
287 |
|
288 |
+
<h2><?php esc_html_e( 'Pods Pro by SKCDEV Premium Add-Ons', 'pods' ); ?></h2>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
289 |
|
290 |
+
<p><?php esc_html_e( 'These add-ons were developed by the Lead Developer of the Pods Framework project as a way to fund development of unique features and integrations that take Pods further.', 'pods' ); ?></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
291 |
|
292 |
+
<?php
|
293 |
+
$addons = [
|
294 |
+
[
|
295 |
+
'label' => 'List Tables Add-On',
|
296 |
+
'description' => __( 'A new block and shortcode to list/filter content from Pods in a table format', 'pods' ),
|
297 |
+
'icon' => 'https://pods-pro.skc.dev/wp-content/uploads/edd/2021/05/List-Tables-150x150.png',
|
298 |
+
'links' => [
|
299 |
+
[
|
300 |
+
'label' => __( 'Download', 'pods' ),
|
301 |
+
'url' => 'https://pods-pro.skc.dev/dashboard/downloads/',
|
302 |
+
],
|
303 |
+
[
|
304 |
+
'label' => __( 'Learn More', 'pods' ),
|
305 |
+
'url' => 'https://pods-pro.skc.dev/downloads/list-tables/',
|
306 |
+
],
|
307 |
+
[
|
308 |
+
'label' => __( 'Support', 'pods' ),
|
309 |
+
'url' => 'https://pods-pro.skc.dev/dashboard/get-support/',
|
310 |
+
],
|
311 |
+
],
|
312 |
+
],
|
313 |
+
[
|
314 |
+
'label' => 'Page Builder Toolkit Add-On',
|
315 |
+
'description' => __( 'Integrates Pods with Beaver Builder, Beaver Themer, Divi Theme, Elementor, GenerateBlocks, and Oxygen Builder', 'pods' ),
|
316 |
+
'icon' => 'https://pods-pro.skc.dev/wp-content/uploads/edd/2020/10/page-builder-toolkit@4x-150x150.png',
|
317 |
+
'links' => [
|
318 |
+
[
|
319 |
+
'label' => __( 'Download', 'pods' ),
|
320 |
+
'url' => 'https://pods-pro.skc.dev/dashboard/downloads/',
|
321 |
+
],
|
322 |
+
[
|
323 |
+
'label' => __( 'Learn More', 'pods' ),
|
324 |
+
'url' => 'https://pods-pro.skc.dev/downloads/page-builder-toolkit/',
|
325 |
+
],
|
326 |
+
[
|
327 |
+
'label' => __( 'Support', 'pods' ),
|
328 |
+
'url' => 'https://pods-pro.skc.dev/dashboard/get-support/',
|
329 |
+
],
|
330 |
+
],
|
331 |
+
],
|
332 |
+
[
|
333 |
+
'label' => 'Advanced Relationships Storage Add-On',
|
334 |
+
'description' => __( 'Advanced options for relationship storage', 'pods' ),
|
335 |
+
'icon' => 'https://pods-pro.skc.dev/wp-content/uploads/edd/2020/10/advanced-relationship-storage@4x-150x150.png',
|
336 |
+
'links' => [
|
337 |
+
[
|
338 |
+
'label' => __( 'Download', 'pods' ),
|
339 |
+
'url' => 'https://pods-pro.skc.dev/dashboard/downloads/',
|
340 |
+
],
|
341 |
+
[
|
342 |
+
'label' => __( 'Learn More', 'pods' ),
|
343 |
+
'url' => 'https://pods-pro.skc.dev/downloads/advanced-relationship-storage/',
|
344 |
+
],
|
345 |
+
[
|
346 |
+
'label' => __( 'Support', 'pods' ),
|
347 |
+
'url' => 'https://pods-pro.skc.dev/dashboard/get-support/',
|
348 |
+
],
|
349 |
+
],
|
350 |
+
],
|
351 |
+
[
|
352 |
+
'label' => 'TablePress Integration Add-On',
|
353 |
+
'description' => __( 'Integrates Pods with TablePress', 'pods' ),
|
354 |
+
'icon' => 'https://pods-pro.skc.dev/wp-content/uploads/edd/2020/10/tablepress-integration@4x-150x150.png',
|
355 |
+
'links' => [
|
356 |
+
[
|
357 |
+
'label' => __( 'Download', 'pods' ),
|
358 |
+
'url' => 'https://pods-pro.skc.dev/dashboard/downloads/',
|
359 |
+
],
|
360 |
+
[
|
361 |
+
'label' => __( 'Learn More', 'pods' ),
|
362 |
+
'url' => 'https://pods-pro.skc.dev/downloads/tablepress-integration/',
|
363 |
+
],
|
364 |
+
[
|
365 |
+
'label' => __( 'Support', 'pods' ),
|
366 |
+
'url' => 'https://pods-pro.skc.dev/dashboard/get-support/',
|
367 |
+
],
|
368 |
+
],
|
369 |
+
],
|
370 |
+
[
|
371 |
+
'label' => 'Advanced Permalinks Add-On',
|
372 |
+
'description' => __( 'Advanced permalink structures and taxonomy landing pages', 'pods' ),
|
373 |
+
'icon' => 'https://pods-pro.skc.dev/wp-content/uploads/edd/2020/10/advanced-permalinks@4x-150x150.png',
|
374 |
+
'links' => [
|
375 |
+
[
|
376 |
+
'label' => __( 'Download', 'pods' ),
|
377 |
+
'url' => 'https://pods-pro.skc.dev/dashboard/downloads/',
|
378 |
+
],
|
379 |
+
[
|
380 |
+
'label' => __( 'Learn More', 'pods' ),
|
381 |
+
'url' => 'https://pods-pro.skc.dev/downloads/advanced-permalinks/',
|
382 |
+
],
|
383 |
+
[
|
384 |
+
'label' => __( 'Support', 'pods' ),
|
385 |
+
'url' => 'https://pods-pro.skc.dev/dashboard/get-support/',
|
386 |
+
],
|
387 |
+
],
|
388 |
+
],
|
389 |
+
];
|
390 |
|
391 |
+
pods_view( PODS_DIR . 'ui/admin/help-addons.php', compact( array_keys( get_defined_vars() ) ) );
|
392 |
+
?>
|
|
|
|
|
|
|
|
|
|
|
393 |
</div>
|
394 |
|
395 |
<?php
|
@@ -4,11 +4,40 @@ global $pods_init, $wpdb;
|
|
4 |
|
5 |
$relationship_table = $wpdb->prefix . 'podsrel';
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
if ( isset( $_POST['_wpnonce'] ) && false !== wp_verify_nonce( $_POST['_wpnonce'], 'pods-settings' ) ) {
|
8 |
if ( isset( $_POST['pods_cleanup_1x'] ) ) {
|
9 |
pods_upgrade( '2.0.0' )->cleanup();
|
10 |
|
11 |
pods_redirect( pods_query_arg( array( 'pods_cleanup_1x_success' => 1 ), array( 'page', 'tab' ) ) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
} elseif ( isset( $_POST['pods_reset'] ) ) {
|
13 |
$pods_init->reset();
|
14 |
$pods_init->setup();
|
@@ -20,17 +49,13 @@ if ( isset( $_POST['_wpnonce'] ) && false !== wp_verify_nonce( $_POST['_wpnonce'
|
|
20 |
deactivate_plugins( PODS_DIR . 'init.php' );
|
21 |
|
22 |
pods_redirect( 'index.php' );
|
23 |
-
} elseif ( isset( $_POST['pods_recreate_tables'] ) ) {
|
24 |
-
pods_upgrade()->delta_tables();
|
25 |
-
|
26 |
-
pods_redirect( pods_query_arg( array( 'pods_recreate_tables_success' => 1 ), array( 'page', 'tab' ) ) );
|
27 |
}
|
|
|
|
|
28 |
} elseif ( 1 === (int) pods_v( 'pods_reset_success' ) ) {
|
29 |
-
pods_message( 'Pods
|
30 |
} elseif ( 1 === (int) pods_v( 'pods_cleanup_1x_success' ) ) {
|
31 |
pods_message( 'Pods 1.x data has been deleted.' );
|
32 |
-
} elseif ( 1 === (int) pods_v( 'pods_recreate_tables_success' ) ) {
|
33 |
-
pods_message( 'Pods tables have been recreated.' );
|
34 |
}
|
35 |
|
36 |
// Monday Mode
|
@@ -49,6 +74,90 @@ if ( pods_v_sanitized( 'pods_reset_weekend', 'post', pods_v_sanitized( 'pods_res
|
|
49 |
// Please Note:
|
50 |
$please_note = __( 'Please Note:' );
|
51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
$old_version = get_option( 'pods_version' );
|
53 |
|
54 |
if ( ! empty( $old_version ) ) {
|
@@ -58,7 +167,7 @@ if ( ! empty( $old_version ) ) {
|
|
58 |
<p><?php esc_html_e( 'This will delete all of your Pods 1.x data, it\'s only recommended if you\'ve verified your data has been properly migrated into Pods 2.x.', 'pods' ); ?></p>
|
59 |
|
60 |
<p class="submit">
|
61 |
-
<?php $confirm = __( "Are you sure you want to do this?\n\nThis is a good time to make sure you have a backup
|
62 |
<input type="submit" class="button button-primary" name="pods_cleanup_1x" value=" <?php esc_attr_e( 'Delete Pods 1.x settings and data', 'pods' ); ?> " onclick="return confirm( '<?php echo esc_js( $confirm ); ?>' );" />
|
63 |
</p>
|
64 |
|
@@ -82,13 +191,13 @@ if ( ! empty( $old_version ) ) {
|
|
82 |
<p><?php _e( '<strong>Please Note:</strong> This does not remove any items from any Post Types, Taxonomies, Media, Users, or Comments data you have added/modified.', 'pods' ); ?></p>
|
83 |
|
84 |
<p class="submit">
|
85 |
-
<?php $confirm = __( "Are you sure you want to do this?\n\nThis is a good time to make sure you have a backup
|
86 |
<input type="submit" class="button button-primary" name="pods_reset_deactivate" value=" <?php esc_attr_e( 'Deactivate and Delete Pods 2.x data', 'pods' ); ?> " onclick="return confirm( '<?php echo esc_js( $confirm ); ?>' );" />
|
87 |
</p>
|
88 |
<?php
|
89 |
} else {
|
90 |
?>
|
91 |
-
<h3><?php esc_html_e( 'Reset Pods', 'pods' ); ?></h3>
|
92 |
|
93 |
<p><?php esc_html_e( 'This will reset Pods settings, remove all of your Pod configurations, and perform a fresh install.', 'pods' ); ?></p>
|
94 |
<h4><?php esc_html_e( 'What you can expect', 'pods' ); ?></h4>
|
@@ -109,7 +218,7 @@ if ( ! empty( $old_version ) ) {
|
|
109 |
</ul>
|
110 |
|
111 |
<p class="submit">
|
112 |
-
<?php $confirm = __( "Are you sure you want to do this?\n\nThis is a good time to make sure you have a backup
|
113 |
<input type="submit" class="button button-primary" name="pods_reset" value="<?php esc_attr_e( 'Reset Pods settings and data', 'pods' ); ?> " onclick="return confirm( '<?php echo esc_js( $confirm ); ?>' );" />
|
114 |
</p>
|
115 |
|
@@ -136,31 +245,9 @@ if ( ! empty( $old_version ) ) {
|
|
136 |
</ul>
|
137 |
|
138 |
<p class="submit">
|
139 |
-
<?php $confirm = __( "Are you sure you want to do this?\n\nThis is a good time to make sure you have a backup
|
140 |
<input type="submit" class="button button-primary" name="pods_reset_deactivate" value=" <?php esc_attr_e( 'Deactivate and Delete Pods data', 'pods' ); ?> " onclick="return confirm( '<?php echo esc_js( $confirm ); ?>' );" />
|
141 |
</p>
|
142 |
-
|
143 |
-
<hr />
|
144 |
-
|
145 |
-
<h3><?php esc_html_e( 'Recreate missing tables', 'pods' ); ?></h3>
|
146 |
-
|
147 |
-
<p><?php esc_html_e( 'This will recreate missing tables if there are any that do not exist.', 'pods' ); ?></p>
|
148 |
-
<h4><?php esc_html_e( 'What you can expect', 'pods' ); ?></h4>
|
149 |
-
<ul>
|
150 |
-
<li>🆗 <strong><?php esc_html_e( 'KEEP', 'pods' ); ?>:</strong> <?php
|
151 |
-
// translators: %s is the name of the wp_podsrel table in the database.
|
152 |
-
printf( esc_html__( '%s will remain untouched if it already exists', 'pods' ), esc_html( $relationship_table ) );
|
153 |
-
?></li>
|
154 |
-
<li>🆗 <strong><?php esc_html_e( 'CREATE', 'pods' ); ?>:</strong> <?php
|
155 |
-
// translators: %s is the name of the wp_podsrel table in the database.
|
156 |
-
printf( esc_html__( '%s will be created if it does not exist', 'pods' ), esc_html( $relationship_table ) );
|
157 |
-
?></li>
|
158 |
-
</ul>
|
159 |
-
|
160 |
-
<p class="submit">
|
161 |
-
<?php $confirm = __( "Are you sure you want to do this?", 'pods' ); ?>
|
162 |
-
<input type="submit" class="button button-primary" name="pods_recreate_tables" value=" <?php esc_attr_e( 'Recreate missing tables', 'pods' ); ?> " onclick="return confirm( '<?php echo esc_js( $confirm ); ?>' );" />
|
163 |
-
</p>
|
164 |
<?php
|
165 |
}//end if
|
166 |
|
4 |
|
5 |
$relationship_table = $wpdb->prefix . 'podsrel';
|
6 |
|
7 |
+
$excluded_pod_types_from_reset = [
|
8 |
+
'user',
|
9 |
+
'media',
|
10 |
+
];
|
11 |
+
|
12 |
+
$pods_api = pods_api();
|
13 |
+
|
14 |
if ( isset( $_POST['_wpnonce'] ) && false !== wp_verify_nonce( $_POST['_wpnonce'], 'pods-settings' ) ) {
|
15 |
if ( isset( $_POST['pods_cleanup_1x'] ) ) {
|
16 |
pods_upgrade( '2.0.0' )->cleanup();
|
17 |
|
18 |
pods_redirect( pods_query_arg( array( 'pods_cleanup_1x_success' => 1 ), array( 'page', 'tab' ) ) );
|
19 |
+
} elseif ( isset( $_POST['pods_reset_pod'] ) ) {
|
20 |
+
$pod_name = pods_v( 'pods_field_reset_pod', 'post' );
|
21 |
+
|
22 |
+
if ( is_array( $pod_name ) ) {
|
23 |
+
$pod_name = $pod_name[0];
|
24 |
+
}
|
25 |
+
|
26 |
+
$pod_name = sanitize_text_field( $pod_name );
|
27 |
+
|
28 |
+
if ( empty( $pod_name ) ) {
|
29 |
+
pods_message( __( 'No Pod selected.', 'pods' ), 'error' );
|
30 |
+
} else {
|
31 |
+
$pod = $pods_api->load_pod( [ 'name' => $pod_name ], false );
|
32 |
+
|
33 |
+
if ( empty( $pod ) ) {
|
34 |
+
pods_message( __( 'Pod not found.', 'pods' ), 'error' );
|
35 |
+
} else {
|
36 |
+
$pods_api->reset_pod( [], $pod );
|
37 |
+
|
38 |
+
pods_redirect( pods_query_arg( [ 'pods_reset_pod_success' => 1 ], [ 'page', 'tab' ] ) );
|
39 |
+
}
|
40 |
+
}
|
41 |
} elseif ( isset( $_POST['pods_reset'] ) ) {
|
42 |
$pods_init->reset();
|
43 |
$pods_init->setup();
|
49 |
deactivate_plugins( PODS_DIR . 'init.php' );
|
50 |
|
51 |
pods_redirect( 'index.php' );
|
|
|
|
|
|
|
|
|
52 |
}
|
53 |
+
} elseif ( 1 === (int) pods_v( 'pods_reset_pod_success' ) ) {
|
54 |
+
pods_message( 'Pod content has been deleted.' );
|
55 |
} elseif ( 1 === (int) pods_v( 'pods_reset_success' ) ) {
|
56 |
+
pods_message( 'Pods settings and data have been reset.' );
|
57 |
} elseif ( 1 === (int) pods_v( 'pods_cleanup_1x_success' ) ) {
|
58 |
pods_message( 'Pods 1.x data has been deleted.' );
|
|
|
|
|
59 |
}
|
60 |
|
61 |
// Monday Mode
|
74 |
// Please Note:
|
75 |
$please_note = __( 'Please Note:' );
|
76 |
|
77 |
+
$all_pods = $pods_api->load_pods();
|
78 |
+
?>
|
79 |
+
<h3><?php esc_html_e( 'Delete all content for a Pod', 'pods' ); ?></h3>
|
80 |
+
|
81 |
+
<p><?php esc_html_e( 'This will delete ALL stored content in the database for your Pod.', 'pods' ); ?></p>
|
82 |
+
|
83 |
+
<h4><?php esc_html_e( 'What you can expect', 'pods' ); ?></h4>
|
84 |
+
|
85 |
+
<ul>
|
86 |
+
<li>🆗 <strong><?php esc_html_e( 'KEEP', 'pods' ); ?>:</strong> <?php esc_html_e( 'Your Pod configuration will remain', 'pods' ); ?></li>
|
87 |
+
<li>🆗 <strong><?php esc_html_e( 'KEEP', 'pods' ); ?>:</strong> <?php esc_html_e( 'Your Group configurations will remain', 'pods' ); ?></li>
|
88 |
+
<li>🆗 <strong><?php esc_html_e( 'KEEP', 'pods' ); ?>:</strong> <?php esc_html_e( 'Your Field configurations will remain', 'pods' ); ?></li>
|
89 |
+
<li>🆗 <strong><?php esc_html_e( 'KEEP', 'pods' ); ?>:</strong> <?php esc_html_e( 'Previously uploaded media will remain in the Media Library but will no longer be attached to their corresponding posts', 'pods' ); ?></li>
|
90 |
+
<li>❌ <strong><?php esc_html_e( 'DELETE', 'pods' ); ?>:</strong> <?php esc_html_e( 'All items for this Pod stored will be deleted from the database', 'pods' ); ?></li>
|
91 |
+
<li>❌ <strong><?php esc_html_e( 'DELETE', 'pods' ); ?>:</strong> <?php esc_html_e( 'All custom fields for the items stored will be deleted from the database', 'pods' ); ?></li>
|
92 |
+
<li>❌ <strong><?php esc_html_e( 'DELETE', 'pods' ); ?>:</strong> <?php esc_html_e( 'All files and relationships for the items stored will be deleted from the database', 'pods' ); ?></li>
|
93 |
+
</ul>
|
94 |
+
|
95 |
+
<?php
|
96 |
+
$reset_pods = [];
|
97 |
+
|
98 |
+
foreach ( $all_pods as $pod ) {
|
99 |
+
if ( in_array( $pod->get_type(), $excluded_pod_types_from_reset, true ) ) {
|
100 |
+
continue;
|
101 |
+
}
|
102 |
+
|
103 |
+
$redirect_url = pods_query_arg(
|
104 |
+
[
|
105 |
+
'page' => 'pods',
|
106 |
+
'action' => 'edit',
|
107 |
+
'name' => $pod->get_name(),
|
108 |
+
'pods_debug_find_orphan_fields' => 1,
|
109 |
+
],
|
110 |
+
null,
|
111 |
+
null,
|
112 |
+
admin_url( 'admin.php' )
|
113 |
+
);
|
114 |
+
|
115 |
+
$reset_pods[ $redirect_url ] = sprintf(
|
116 |
+
'%1$s (%2$s)',
|
117 |
+
$pod->get_label(),
|
118 |
+
$pod->get_name()
|
119 |
+
);
|
120 |
+
}
|
121 |
+
|
122 |
+
asort( $reset_pods );
|
123 |
+
?>
|
124 |
+
|
125 |
+
<?php if ( ! empty( $reset_pods ) ) : ?>
|
126 |
+
<table class="form-table pods-manage-field">
|
127 |
+
<?php
|
128 |
+
$fields = [
|
129 |
+
'reset_pod' => [
|
130 |
+
'name' => 'reset_pod',
|
131 |
+
'label' => __( 'Pod', 'pods' ),
|
132 |
+
'type' => 'pick',
|
133 |
+
'pick_format_type' => 'single',
|
134 |
+
'pick_format_single' => 'autocomplete',
|
135 |
+
'data' => $reset_pods,
|
136 |
+
],
|
137 |
+
];
|
138 |
+
|
139 |
+
$field_prefix = 'pods_field_';
|
140 |
+
$field_row_classes = '';
|
141 |
+
$id = '';
|
142 |
+
$value_callback = static function( $field_name, $id, $field, $pod ) use ( $field_prefix ) {
|
143 |
+
return pods_v( $field_prefix . $field_name, 'post', '' );
|
144 |
+
};
|
145 |
+
|
146 |
+
pods_view( PODS_DIR . 'ui/forms/table-rows.php', compact( array_keys( get_defined_vars() ) ) );
|
147 |
+
?>
|
148 |
+
</table>
|
149 |
+
|
150 |
+
<p class="submit">
|
151 |
+
<?php $confirm = __( "Are you sure you want to do this?\n\nThis is a good time to make sure you have a backup.\n\nWe will delete ALL of the content for the Pod you selected.", 'pods' ); ?>
|
152 |
+
<input type="submit" class="button button-primary" name="pods_reset_pod" value=" <?php esc_attr_e( 'Reset Pod', 'pods' ); ?> " onclick="return confirm( '<?php echo esc_js( $confirm ); ?>' );" />
|
153 |
+
</p>
|
154 |
+
<?php else : ?>
|
155 |
+
<p><em><?php esc_html_e( 'No Pods available to reset.', 'pods' ); ?></em></p>
|
156 |
+
<?php endif; ?>
|
157 |
+
|
158 |
+
<hr />
|
159 |
+
|
160 |
+
<?php
|
161 |
$old_version = get_option( 'pods_version' );
|
162 |
|
163 |
if ( ! empty( $old_version ) ) {
|
167 |
<p><?php esc_html_e( 'This will delete all of your Pods 1.x data, it\'s only recommended if you\'ve verified your data has been properly migrated into Pods 2.x.', 'pods' ); ?></p>
|
168 |
|
169 |
<p class="submit">
|
170 |
+
<?php $confirm = __( "Are you sure you want to do this?\n\nThis is a good time to make sure you have a backup.\n\nWe are deleting ALL of the data that surrounds 1.x, resetting it to a clean first install.", 'pods' ); ?>
|
171 |
<input type="submit" class="button button-primary" name="pods_cleanup_1x" value=" <?php esc_attr_e( 'Delete Pods 1.x settings and data', 'pods' ); ?> " onclick="return confirm( '<?php echo esc_js( $confirm ); ?>' );" />
|
172 |
</p>
|
173 |
|
191 |
<p><?php _e( '<strong>Please Note:</strong> This does not remove any items from any Post Types, Taxonomies, Media, Users, or Comments data you have added/modified.', 'pods' ); ?></p>
|
192 |
|
193 |
<p class="submit">
|
194 |
+
<?php $confirm = __( "Are you sure you want to do this?\n\nThis is a good time to make sure you have a backup.\n\nWe are deleting ALL of the data that surrounds 2.x with no turning back.", 'pods' ); ?>
|
195 |
<input type="submit" class="button button-primary" name="pods_reset_deactivate" value=" <?php esc_attr_e( 'Deactivate and Delete Pods 2.x data', 'pods' ); ?> " onclick="return confirm( '<?php echo esc_js( $confirm ); ?>' );" />
|
196 |
</p>
|
197 |
<?php
|
198 |
} else {
|
199 |
?>
|
200 |
+
<h3><?php esc_html_e( 'Reset Pods entirely', 'pods' ); ?></h3>
|
201 |
|
202 |
<p><?php esc_html_e( 'This will reset Pods settings, remove all of your Pod configurations, and perform a fresh install.', 'pods' ); ?></p>
|
203 |
<h4><?php esc_html_e( 'What you can expect', 'pods' ); ?></h4>
|
218 |
</ul>
|
219 |
|
220 |
<p class="submit">
|
221 |
+
<?php $confirm = __( "Are you sure you want to do this?\n\nThis is a good time to make sure you have a backup.\n\nWe are deleting ALL of the data that surrounds Pods, resetting it to a clean, first install.", 'pods' ); ?>
|
222 |
<input type="submit" class="button button-primary" name="pods_reset" value="<?php esc_attr_e( 'Reset Pods settings and data', 'pods' ); ?> " onclick="return confirm( '<?php echo esc_js( $confirm ); ?>' );" />
|
223 |
</p>
|
224 |
|
245 |
</ul>
|
246 |
|
247 |
<p class="submit">
|
248 |
+
<?php $confirm = __( "Are you sure you want to do this?\n\nThis is a good time to make sure you have a backup.\n\nWe are deleting ALL of the data that surrounds with no turning back.", 'pods' ); ?>
|
249 |
<input type="submit" class="button button-primary" name="pods_reset_deactivate" value=" <?php esc_attr_e( 'Deactivate and Delete Pods data', 'pods' ); ?> " onclick="return confirm( '<?php echo esc_js( $confirm ); ?>' );" />
|
250 |
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
251 |
<?php
|
252 |
}//end if
|
253 |
|
@@ -83,7 +83,7 @@ $do = 'save';
|
|
83 |
|
84 |
<h3><?php _e( 'Clear Pods Cache', 'pods' ); ?></h3>
|
85 |
|
86 |
-
<p><?php esc_html_e( 'This
|
87 |
|
88 |
<p class="submit">
|
89 |
<input type="submit" class="button button-primary" name="pods_cache_flush" value="<?php esc_attr_e( 'Clear Pods Cache', 'pods' ); ?>" />
|
83 |
|
84 |
<h3><?php _e( 'Clear Pods Cache', 'pods' ); ?></h3>
|
85 |
|
86 |
+
<p><?php esc_html_e( 'This will clear all of the transients and object cache that are used by Pods and your site.', 'pods' ); ?></p>
|
87 |
|
88 |
<p class="submit">
|
89 |
<input type="submit" class="button button-primary" name="pods_cache_flush" value="<?php esc_attr_e( 'Clear Pods Cache', 'pods' ); ?>" />
|
@@ -0,0 +1,159 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
use Pods\Tools\Repair;
|
4 |
+
|
5 |
+
global $wpdb;
|
6 |
+
|
7 |
+
$pods_api = pods_api();
|
8 |
+
|
9 |
+
$all_pods = $pods_api->load_pods();
|
10 |
+
|
11 |
+
if ( isset( $_POST['_wpnonce'] ) && false !== wp_verify_nonce( $_POST['_wpnonce'], 'pods-settings' ) ) {
|
12 |
+
if ( isset( $_POST['pods_repair_pod'] ) ) {
|
13 |
+
$pod_name = pods_v( 'pods_field_repair_pod', 'post' );
|
14 |
+
|
15 |
+
if ( is_array( $pod_name ) ) {
|
16 |
+
$pod_name = $pod_name[0];
|
17 |
+
}
|
18 |
+
|
19 |
+
$pod_name = sanitize_text_field( $pod_name );
|
20 |
+
|
21 |
+
if ( empty( $pod_name ) ) {
|
22 |
+
pods_message( __( 'No Pod selected.', 'pods' ), 'error' );
|
23 |
+
} else {
|
24 |
+
if ( '__all_pods' === $pod_name ) {
|
25 |
+
$pods_to_repair = [];
|
26 |
+
|
27 |
+
foreach ( $all_pods as $pod ) {
|
28 |
+
if ( 'post_type' !== $pod->get_object_storage_type() ) {
|
29 |
+
continue;
|
30 |
+
}
|
31 |
+
|
32 |
+
$pods_to_repair[] = $pod->get_name();
|
33 |
+
}
|
34 |
+
} else {
|
35 |
+
$pods_to_repair = [ $pod_name ];
|
36 |
+
}
|
37 |
+
|
38 |
+
foreach ( $pods_to_repair as $pod_to_repair ) {
|
39 |
+
$pod = $pods_api->load_pod( [ 'name' => $pod_to_repair ], false );
|
40 |
+
|
41 |
+
if ( empty( $pod ) ) {
|
42 |
+
pods_message( __( 'Pod not found.', 'pods' ) . ' (' . $pod_to_repair . ')', 'error' );
|
43 |
+
} else {
|
44 |
+
$repair = pods_container( Repair::class );
|
45 |
+
|
46 |
+
$results = $repair->repair_groups_and_fields_for_pod( $pod, 'full' );
|
47 |
+
|
48 |
+
pods_message( $results['message_html'] );
|
49 |
+
}
|
50 |
+
}
|
51 |
+
}
|
52 |
+
} elseif ( isset( $_POST['pods_recreate_tables'] ) ) {
|
53 |
+
pods_upgrade()->delta_tables();
|
54 |
+
|
55 |
+
pods_redirect( pods_query_arg( array( 'pods_recreate_tables_success' => 1 ), array( 'page', 'tab' ) ) );
|
56 |
+
}
|
57 |
+
} elseif ( 1 === (int) pods_v( 'pods_recreate_tables_success' ) ) {
|
58 |
+
pods_message( 'Pods tables have been recreated.' );
|
59 |
+
}
|
60 |
+
?>
|
61 |
+
|
62 |
+
<h3><?php esc_html_e( 'Repair Pod, Groups, and Fields', 'pods' ); ?></h3>
|
63 |
+
|
64 |
+
<p><?php esc_html_e( 'This tool will attempt to repair a Pod, Groups, and Fields. When the tool runs you will be provided with a complete list of repairs made.', 'pods' ); ?></p>
|
65 |
+
|
66 |
+
<h4><?php esc_html_e( 'What you can expect', 'pods' ); ?></h4>
|
67 |
+
|
68 |
+
<ul class="ul-disc">
|
69 |
+
<li><?php esc_html_e( 'If the Pod has Fields but no Groups yet, the first Group will be automatically created', 'pods' ); ?></li>
|
70 |
+
<li><?php esc_html_e( 'All Groups with conflicting names will be renamed to prevent conflicts with other registered Groups', 'pods' ); ?></li>
|
71 |
+
<li><?php esc_html_e( 'All Fields with conflicting names will be renamed to prevent conflicts with other registered Fields', 'pods' ); ?></li>
|
72 |
+
<li><?php esc_html_e( 'All orphaned Fields that belong to a Group that no longer exists will be auto-assigned to the first available Group', 'pods' ); ?></li>
|
73 |
+
<li><?php esc_html_e( 'All orphaned Fields that do not belong to a Group will be auto-assigned to the first available Group', 'pods' ); ?></li>
|
74 |
+
<li><?php esc_html_e( 'All Fields that have an invalid Field type set will be changed to Plain Text', 'pods' ); ?></li>
|
75 |
+
</ul>
|
76 |
+
|
77 |
+
<?php
|
78 |
+
$repair_pods = [];
|
79 |
+
|
80 |
+
foreach ( $all_pods as $pod ) {
|
81 |
+
if ( 'post_type' !== $pod->get_object_storage_type() ) {
|
82 |
+
continue;
|
83 |
+
}
|
84 |
+
|
85 |
+
$repair_pods[ $pod->get_name() ] = sprintf(
|
86 |
+
'%1$s (%2$s)',
|
87 |
+
$pod->get_label(),
|
88 |
+
$pod->get_name()
|
89 |
+
);
|
90 |
+
}
|
91 |
+
|
92 |
+
asort( $repair_pods );
|
93 |
+
|
94 |
+
$repair_pods['__all_pods'] = '-- ' . __( 'Run Repair for All Pods', 'pods' ) . ' (' . __( 'Warning: This may be slow on large configurations', 'pods' ) . ') --';
|
95 |
+
?>
|
96 |
+
|
97 |
+
<?php if ( 1 < count( $repair_pods ) ) : ?>
|
98 |
+
<table class="form-table pods-manage-field">
|
99 |
+
<?php
|
100 |
+
$fields = [
|
101 |
+
'repair_pod' => [
|
102 |
+
'name' => 'repair_pod',
|
103 |
+
'label' => __( 'Pod', 'pods' ),
|
104 |
+
'type' => 'pick',
|
105 |
+
'pick_format_type' => 'single',
|
106 |
+
'pick_format_single' => 'autocomplete',
|
107 |
+
'data' => $repair_pods,
|
108 |
+
],
|
109 |
+
];
|
110 |
+
|
111 |
+
$field_prefix = 'pods_field_';
|
112 |
+
$field_row_classes = '';
|
113 |
+
$id = '';
|
114 |
+
$value_callback = static function( $field_name, $id, $field, $pod ) use ( $field_prefix ) {
|
115 |
+
return pods_v( $field_prefix . $field_name, 'post', '' );
|
116 |
+
};
|
117 |
+
|
118 |
+
pods_view( PODS_DIR . 'ui/forms/table-rows.php', compact( array_keys( get_defined_vars() ) ) );
|
119 |
+
?>
|
120 |
+
</table>
|
121 |
+
|
122 |
+
<p class="submit">
|
123 |
+
<?php
|
124 |
+
$confirm = esc_html__( 'Are you sure you want to do this?', 'pods' )
|
125 |
+
. "\n\n" . esc_html__( 'This is a good time to make sure you have a backup.', 'pods' )
|
126 |
+
. "\n\n" . esc_html__( 'We will be making a few repairs to your configuration that should not be destructive to your data but you should be always have a backup just in case.', 'pods' );
|
127 |
+
?>
|
128 |
+
<input type="submit" class="button button-primary" name="pods_repair_pod"
|
129 |
+
value=" <?php esc_attr_e( 'Repair Pod, Groups, and Fields', 'pods' ); ?> " onclick="return confirm( '<?php echo esc_js( $confirm ); ?>' );" />
|
130 |
+
</p>
|
131 |
+
<?php else : ?>
|
132 |
+
<p><em><?php esc_html_e( 'No Pods available to repair.', 'pods' ); ?></em></p>
|
133 |
+
<?php endif; ?>
|
134 |
+
|
135 |
+
<hr />
|
136 |
+
|
137 |
+
<?php
|
138 |
+
$relationship_table = $wpdb->prefix . 'podsrel';
|
139 |
+
?>
|
140 |
+
|
141 |
+
<h3><?php esc_html_e( 'Recreate missing tables', 'pods' ); ?></h3>
|
142 |
+
|
143 |
+
<p><?php esc_html_e( 'This will recreate missing tables if there are any that do not exist.', 'pods' ); ?></p>
|
144 |
+
<h4><?php esc_html_e( 'What you can expect', 'pods' ); ?></h4>
|
145 |
+
<ul>
|
146 |
+
<li>🆗 <strong><?php esc_html_e( 'KEEP', 'pods' ); ?>:</strong> <?php
|
147 |
+
// translators: %s is the name of the wp_podsrel table in the database.
|
148 |
+
printf( esc_html__( '%s will remain untouched if it already exists', 'pods' ), esc_html( $relationship_table ) );
|
149 |
+
?></li>
|
150 |
+
<li>🆗 <strong><?php esc_html_e( 'CREATE', 'pods' ); ?>:</strong> <?php
|
151 |
+
// translators: %s is the name of the wp_podsrel table in the database.
|
152 |
+
printf( esc_html__( '%s will be created if it does not exist', 'pods' ), esc_html( $relationship_table ) );
|
153 |
+
?></li>
|
154 |
+
</ul>
|
155 |
+
|
156 |
+
<p class="submit">
|
157 |
+
<?php $confirm = __( 'Are you sure you want to do this?', 'pods' ); ?>
|
158 |
+
<input type="submit" class="button button-primary" name="pods_recreate_tables" value=" <?php esc_attr_e( 'Recreate missing tables', 'pods' ); ?> " onclick="return confirm( '<?php echo esc_js( $confirm ); ?>' );" />
|
159 |
+
</p>
|
@@ -9,6 +9,7 @@
|
|
9 |
|
10 |
$tabs = [
|
11 |
'settings' => __( 'Settings', 'pods' ),
|
|
|
12 |
'reset' => __( 'Cleanup & Reset', 'pods' ),
|
13 |
];
|
14 |
|
9 |
|
10 |
$tabs = [
|
11 |
'settings' => __( 'Settings', 'pods' ),
|
12 |
+
'tools' => __( 'Tools', 'pods' ),
|
13 |
'reset' => __( 'Cleanup & Reset', 'pods' ),
|
14 |
];
|
15 |
|
@@ -19,7 +19,7 @@ $pre_callback = isset( $pre_callback ) ? $pre_callback : null;
|
|
19 |
$post_callback = isset( $post_callback ) ? $post_callback : null;
|
20 |
|
21 |
foreach ( $fields as $field ) {
|
22 |
-
$hidden_field = (
|
23 |
|
24 |
if (
|
25 |
! pods_permission( $field )
|
@@ -29,6 +29,10 @@ foreach ( $fields as $field ) {
|
|
29 |
continue;
|
30 |
}
|
31 |
|
|
|
|
|
|
|
|
|
32 |
$field['type'] = 'hidden';
|
33 |
}
|
34 |
|
19 |
$post_callback = isset( $post_callback ) ? $post_callback : null;
|
20 |
|
21 |
foreach ( $fields as $field ) {
|
22 |
+
$hidden_field = 'hidden' === $field['type'] || filter_var( pods_v( 'hidden', $field, false ), FILTER_VALIDATE_BOOLEAN );
|
23 |
|
24 |
if (
|
25 |
! pods_permission( $field )
|
29 |
continue;
|
30 |
}
|
31 |
|
32 |
+
if ( $field instanceof \Pods\Whatsit\Field ) {
|
33 |
+
$field = clone $field;
|
34 |
+
}
|
35 |
+
|
36 |
$field['type'] = 'hidden';
|
37 |
}
|
38 |
|
@@ -52,6 +52,10 @@ foreach ( $groups as $g => $group ) {
|
|
52 |
continue;
|
53 |
} elseif ( ! pods_permission( $field ) ) {
|
54 |
if ( (boolean) pods_v( 'hidden', $field['options'], false ) ) {
|
|
|
|
|
|
|
|
|
55 |
$group['fields'][ $k ]['type'] = 'hidden';
|
56 |
} elseif ( (boolean) pods_v( 'read_only', $field['options'], false ) ) {
|
57 |
$group['fields'][ $k ]['readonly'] = true;
|
@@ -62,6 +66,10 @@ foreach ( $groups as $g => $group ) {
|
|
62 |
}
|
63 |
} elseif ( ! pods_has_permissions( $field ) ) {
|
64 |
if ( (boolean) pods_v( 'hidden', $field['options'], false ) ) {
|
|
|
|
|
|
|
|
|
65 |
$group['fields'][ $k ]['type'] = 'hidden';
|
66 |
} elseif ( (boolean) pods_v( 'read_only', $field['options'], false ) ) {
|
67 |
$group['fields'][ $k ]['readonly'] = true;
|
@@ -90,16 +98,18 @@ if ( is_user_logged_in() ) {
|
|
90 |
$uid = pods_session_id();
|
91 |
}
|
92 |
|
93 |
-
$
|
|
|
|
|
94 |
|
95 |
$submit_result = null;
|
96 |
|
97 |
if ( isset( $_POST['_pods_nonce'] ) ) {
|
98 |
try {
|
99 |
$params = pods_unslash( (array) $_POST );
|
100 |
-
$
|
101 |
|
102 |
-
$submit_result = 0 < $
|
103 |
} catch ( Exception $e ) {
|
104 |
echo $obj->error( $e->getMessage() );
|
105 |
}
|
@@ -181,9 +191,14 @@ $counter ++;
|
|
181 |
pods_static_cache_set( $pod->pod . '-counter', $counter, 'pods-forms' );
|
182 |
?>
|
183 |
|
184 |
-
<form
|
|
|
|
|
185 |
class="pods-submittable pods-form pods-form-pod-<?php echo esc_attr( $pod->pod ); ?> pods-submittable-ajax"
|
186 |
id="pods-form-<?php echo esc_attr( $pod->pod . '-' . $counter ); ?>"
|
|
|
|
|
|
|
187 |
>
|
188 |
<div class="pods-submittable-fields">
|
189 |
<?php
|
@@ -192,7 +207,7 @@ pods_static_cache_set( $pod->pod . '-counter', $counter, 'pods-forms' );
|
|
192 |
echo PodsForm::field( 'do', $do, 'hidden' );
|
193 |
echo PodsForm::field( '_pods_nonce', $nonce, 'hidden' );
|
194 |
echo PodsForm::field( '_pods_pod', $pod->pod, 'hidden' );
|
195 |
-
echo PodsForm::field( '_pods_id',
|
196 |
echo PodsForm::field( '_pods_uri', $uri_hash, 'hidden' );
|
197 |
echo PodsForm::field( '_pods_form', implode( ',', array_keys( $submittable_fields ) ), 'hidden' );
|
198 |
echo PodsForm::field( '_pods_location', $_SERVER['REQUEST_URI'], 'hidden' );
|
@@ -217,7 +232,6 @@ pods_static_cache_set( $pod->pod . '-counter', $counter, 'pods-forms' );
|
|
217 |
}
|
218 |
<?php else : ?>
|
219 |
var pods_admin_submit_callback = function ( id ) {
|
220 |
-
|
221 |
id = parseInt( id, 10 );
|
222 |
var thank_you = '<?php echo esc_url_raw( $thank_you ); ?>';
|
223 |
var thank_you_alt = '<?php echo esc_url_raw( $thank_you_alt ); ?>';
|
52 |
continue;
|
53 |
} elseif ( ! pods_permission( $field ) ) {
|
54 |
if ( (boolean) pods_v( 'hidden', $field['options'], false ) ) {
|
55 |
+
if ( $group['fields'][ $k ] instanceof \Pods\Whatsit\Field ) {
|
56 |
+
$group['fields'][ $k ] = clone $group['fields'][ $k ];
|
57 |
+
}
|
58 |
+
|
59 |
$group['fields'][ $k ]['type'] = 'hidden';
|
60 |
} elseif ( (boolean) pods_v( 'read_only', $field['options'], false ) ) {
|
61 |
$group['fields'][ $k ]['readonly'] = true;
|
66 |
}
|
67 |
} elseif ( ! pods_has_permissions( $field ) ) {
|
68 |
if ( (boolean) pods_v( 'hidden', $field['options'], false ) ) {
|
69 |
+
if ( $group['fields'][ $k ] instanceof \Pods\Whatsit\Field ) {
|
70 |
+
$group['fields'][ $k ] = clone $group['fields'][ $k ];
|
71 |
+
}
|
72 |
+
|
73 |
$group['fields'][ $k ]['type'] = 'hidden';
|
74 |
} elseif ( (boolean) pods_v( 'read_only', $field['options'], false ) ) {
|
75 |
$group['fields'][ $k ]['readonly'] = true;
|
98 |
$uid = pods_session_id();
|
99 |
}
|
100 |
|
101 |
+
$item_id = $duplicate ? 0 : $pod->id();
|
102 |
+
|
103 |
+
$nonce = wp_create_nonce( 'pods_form_' . $pod->pod . '_' . $uid . '_' . $item_id . '_' . $uri_hash . '_' . $field_hash );
|
104 |
|
105 |
$submit_result = null;
|
106 |
|
107 |
if ( isset( $_POST['_pods_nonce'] ) ) {
|
108 |
try {
|
109 |
$params = pods_unslash( (array) $_POST );
|
110 |
+
$new_id = $pod->api->process_form( $params, $pod, $submittable_fields, $thank_you );
|
111 |
|
112 |
+
$submit_result = 0 < $new_id;
|
113 |
} catch ( Exception $e ) {
|
114 |
echo $obj->error( $e->getMessage() );
|
115 |
}
|
191 |
pods_static_cache_set( $pod->pod . '-counter', $counter, 'pods-forms' );
|
192 |
?>
|
193 |
|
194 |
+
<form
|
195 |
+
action=""
|
196 |
+
method="post"
|
197 |
class="pods-submittable pods-form pods-form-pod-<?php echo esc_attr( $pod->pod ); ?> pods-submittable-ajax"
|
198 |
id="pods-form-<?php echo esc_attr( $pod->pod . '-' . $counter ); ?>"
|
199 |
+
data-pods-pod-name="<?php echo esc_attr( $pod->pod ); ?>"
|
200 |
+
data-pods-item-id="<?php echo esc_attr( $item_id ); ?>"
|
201 |
+
data-pods-form-counter="<?php echo esc_attr( $counter ); ?>"
|
202 |
>
|
203 |
<div class="pods-submittable-fields">
|
204 |
<?php
|
207 |
echo PodsForm::field( 'do', $do, 'hidden' );
|
208 |
echo PodsForm::field( '_pods_nonce', $nonce, 'hidden' );
|
209 |
echo PodsForm::field( '_pods_pod', $pod->pod, 'hidden' );
|
210 |
+
echo PodsForm::field( '_pods_id', $item_id, 'hidden' );
|
211 |
echo PodsForm::field( '_pods_uri', $uri_hash, 'hidden' );
|
212 |
echo PodsForm::field( '_pods_form', implode( ',', array_keys( $submittable_fields ) ), 'hidden' );
|
213 |
echo PodsForm::field( '_pods_location', $_SERVER['REQUEST_URI'], 'hidden' );
|
232 |
}
|
233 |
<?php else : ?>
|
234 |
var pods_admin_submit_callback = function ( id ) {
|
|
|
235 |
id = parseInt( id, 10 );
|
236 |
var thank_you = '<?php echo esc_url_raw( $thank_you ); ?>';
|
237 |
var thank_you_alt = '<?php echo esc_url_raw( $thank_you_alt ); ?>';
|
@@ -19,7 +19,7 @@ $pre_callback = isset( $pre_callback ) ? $pre_callback : null;
|
|
19 |
$post_callback = isset( $post_callback ) ? $post_callback : null;
|
20 |
|
21 |
foreach ( $fields as $field ) {
|
22 |
-
$hidden_field = (
|
23 |
|
24 |
if (
|
25 |
! pods_permission( $field )
|
@@ -29,6 +29,10 @@ foreach ( $fields as $field ) {
|
|
29 |
continue;
|
30 |
}
|
31 |
|
|
|
|
|
|
|
|
|
32 |
$field['type'] = 'hidden';
|
33 |
}
|
34 |
|
19 |
$post_callback = isset( $post_callback ) ? $post_callback : null;
|
20 |
|
21 |
foreach ( $fields as $field ) {
|
22 |
+
$hidden_field = 'hidden' === $field['type'] || filter_var( pods_v( 'hidden', $field, false ), FILTER_VALIDATE_BOOLEAN );
|
23 |
|
24 |
if (
|
25 |
! pods_permission( $field )
|
29 |
continue;
|
30 |
}
|
31 |
|
32 |
+
if ( $field instanceof \Pods\Whatsit\Field ) {
|
33 |
+
$field = clone $field;
|
34 |
+
}
|
35 |
+
|
36 |
$field['type'] = 'hidden';
|
37 |
}
|
38 |
|
@@ -19,7 +19,7 @@ $pre_callback = isset( $pre_callback ) ? $pre_callback : null;
|
|
19 |
$post_callback = isset( $post_callback ) ? $post_callback : null;
|
20 |
|
21 |
foreach ( $fields as $field ) {
|
22 |
-
$hidden_field = (
|
23 |
|
24 |
if (
|
25 |
! pods_permission( $field )
|
@@ -29,6 +29,10 @@ foreach ( $fields as $field ) {
|
|
29 |
continue;
|
30 |
}
|
31 |
|
|
|
|
|
|
|
|
|
32 |
$field['type'] = 'hidden';
|
33 |
}
|
34 |
|
19 |
$post_callback = isset( $post_callback ) ? $post_callback : null;
|
20 |
|
21 |
foreach ( $fields as $field ) {
|
22 |
+
$hidden_field = 'hidden' === $field['type'] || filter_var( pods_v( 'hidden', $field, false ), FILTER_VALIDATE_BOOLEAN );
|
23 |
|
24 |
if (
|
25 |
! pods_permission( $field )
|
29 |
continue;
|
30 |
}
|
31 |
|
32 |
+
if ( $field instanceof \Pods\Whatsit\Field ) {
|
33 |
+
$field = clone $field;
|
34 |
+
}
|
35 |
+
|
36 |
$field['type'] = 'hidden';
|
37 |
}
|
38 |
|
@@ -21,7 +21,7 @@ $post_callback = isset( $post_callback ) ? $post_callback : null;
|
|
21 |
$th_scope = isset( $th_scope ) ? $th_scope : '';
|
22 |
|
23 |
foreach ( $fields as $field ) {
|
24 |
-
$hidden_field = (
|
25 |
|
26 |
if (
|
27 |
! pods_permission( $field )
|
@@ -31,6 +31,10 @@ foreach ( $fields as $field ) {
|
|
31 |
continue;
|
32 |
}
|
33 |
|
|
|
|
|
|
|
|
|
34 |
$field['type'] = 'hidden';
|
35 |
}
|
36 |
|
21 |
$th_scope = isset( $th_scope ) ? $th_scope : '';
|
22 |
|
23 |
foreach ( $fields as $field ) {
|
24 |
+
$hidden_field = 'hidden' === $field['type'] || filter_var( pods_v( 'hidden', $field, false ), FILTER_VALIDATE_BOOLEAN );
|
25 |
|
26 |
if (
|
27 |
! pods_permission( $field )
|
31 |
continue;
|
32 |
}
|
33 |
|
34 |
+
if ( $field instanceof \Pods\Whatsit\Field ) {
|
35 |
+
$field = clone $field;
|
36 |
+
}
|
37 |
+
|
38 |
$field['type'] = 'hidden';
|
39 |
}
|
40 |
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @var string $list_type
|
4 |
+
* @var \Pods\Whatsit\Field[] $display_fields
|
5 |
+
* @var Pods $obj
|
6 |
+
* @var boolean $bypass_map_field_values
|
7 |
+
*/
|
8 |
+
?>
|
9 |
+
|
10 |
+
<dl class="pods-all-fields pods-all-fields-<?php echo esc_attr( $list_type ); ?>">
|
11 |
+
<?php foreach ( $display_fields as $field_path => $field ) : ?>
|
12 |
+
<?php $field_label = $field->get_label(); ?>
|
13 |
+
<dt class="pods-all-fields-row-label pods-all-fields-row-label-<?php echo esc_attr( PodsForm::clean( $field_path, true ) ); ?>">
|
14 |
+
<strong>
|
15 |
+
<?php echo $field_label; // @codingStandardsIgnoreLine ?>
|
16 |
+
</strong>
|
17 |
+
</dt>
|
18 |
+
<dd class="pods-all-fields-row-value pods-all-fields-row-value-<?php echo esc_attr( PodsForm::clean( $field_path, true ) ); ?>">
|
19 |
+
<?php echo $obj->display( [ 'name' => $field_path, 'bypass_map_field_values' => $bypass_map_field_values ] ); // @codingStandardsIgnoreLine ?>
|
20 |
+
</dd>
|
21 |
+
<?php endforeach; ?>
|
22 |
+
</dl>
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @var string $list_type
|
4 |
+
* @var string $tag_name
|
5 |
+
* @var string $sub_tag_name
|
6 |
+
* @var \Pods\Whatsit\Field[] $display_fields
|
7 |
+
* @var Pods $obj
|
8 |
+
* @var boolean $bypass_map_field_values
|
9 |
+
*/
|
10 |
+
?>
|
11 |
+
|
12 |
+
<<?php echo $tag_name; ?> class="pods-all-fields pods-all-fields-<?php echo esc_attr( $list_type ); ?>">
|
13 |
+
<?php foreach ( $display_fields as $field_path => $field ) : ?>
|
14 |
+
<?php $field_label = $field->get_label(); ?>
|
15 |
+
<<?php echo $sub_tag_name; ?> class="pods-all-fields-row pods-all-fields-row-name-<?php echo esc_attr( PodsForm::clean( $field_path, true ) ); ?>">
|
16 |
+
<strong>
|
17 |
+
<?php echo $field_label; // @codingStandardsIgnoreLine ?>:
|
18 |
+
</strong>
|
19 |
+
|
20 |
+
<?php echo $obj->display( [ 'name' => $field_path, 'bypass_map_field_values' => $bypass_map_field_values ] ); // @codingStandardsIgnoreLine ?>
|
21 |
+
</<?php echo sanitize_key( $sub_tag_name ); ?>>
|
22 |
+
<?php endforeach; ?>
|
23 |
+
</<?php echo $tag_name; ?>>
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @var \Pods\Whatsit\Field[] $display_fields
|
4 |
+
* @var Pods $obj
|
5 |
+
* @var boolean $bypass_map_field_values
|
6 |
+
*/
|
7 |
+
?>
|
8 |
+
|
9 |
+
<table class="form-table pods-all-fields pods-all-fields-table">
|
10 |
+
<tbody>
|
11 |
+
<?php foreach ( $display_fields as $field_path => $field ) : ?>
|
12 |
+
<?php $field_label = $field->get_label(); ?>
|
13 |
+
<tr class="pods-all-fields-row pods-all-fields-row-name-<?php echo esc_attr( PodsForm::clean( $field_path, true ) ); ?>">
|
14 |
+
<th scope="row">
|
15 |
+
<strong>
|
16 |
+
<?php echo $field_label; // @codingStandardsIgnoreLine ?>
|
17 |
+
</strong>
|
18 |
+
</th>
|
19 |
+
<td>
|
20 |
+
<?php echo $obj->display( [ 'name' => $field_path, 'bypass_map_field_values' => $bypass_map_field_values ] ); // @codingStandardsIgnoreLine ?>
|
21 |
+
</td>
|
22 |
+
</tr>
|
23 |
+
<?php endforeach; ?>
|
24 |
+
</tbody>
|
25 |
+
</table>
|
@@ -57,13 +57,13 @@ foreach ( $submittable_fields as $k => $field ) {
|
|
57 |
unset( $submittable_fields[ $k ] );
|
58 |
}
|
59 |
|
60 |
-
$uri_hash = wp_create_nonce( 'pods_uri_' .
|
61 |
$field_hash = wp_create_nonce( 'pods_fields_' . implode( ',', array_keys( $submittable_fields ) ) );
|
62 |
|
63 |
-
$uid = pods_session_id();
|
64 |
-
|
65 |
if ( is_user_logged_in() ) {
|
66 |
$uid = 'user_' . get_current_user_id();
|
|
|
|
|
67 |
}
|
68 |
|
69 |
$nonce = wp_create_nonce( 'pods_form_' . $pod_name . '_' . $uid . '_' . $id . '_' . $uri_hash . '_' . $field_hash );
|
@@ -77,11 +77,26 @@ if ( isset( $_POST['_pods_nonce'] ) ) {
|
|
77 |
}
|
78 |
|
79 |
$field_prefix = '';
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
?>
|
81 |
|
82 |
<?php if ( ! $fields_only ) : ?>
|
83 |
<?php $field_prefix = 'pods_field_'; ?>
|
84 |
-
<form
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
<div class="pods-submittable-fields">
|
86 |
<?php echo PodsForm::field( 'action', 'pods_admin', 'hidden' ); ?>
|
87 |
<?php echo PodsForm::field( 'method', 'process_form', 'hidden' ); ?>
|
57 |
unset( $submittable_fields[ $k ] );
|
58 |
}
|
59 |
|
60 |
+
$uri_hash = wp_create_nonce( 'pods_uri_' . pods_current_path() );
|
61 |
$field_hash = wp_create_nonce( 'pods_fields_' . implode( ',', array_keys( $submittable_fields ) ) );
|
62 |
|
|
|
|
|
63 |
if ( is_user_logged_in() ) {
|
64 |
$uid = 'user_' . get_current_user_id();
|
65 |
+
} else {
|
66 |
+
$uid = pods_session_id();
|
67 |
}
|
68 |
|
69 |
$nonce = wp_create_nonce( 'pods_form_' . $pod_name . '_' . $uid . '_' . $id . '_' . $uri_hash . '_' . $field_hash );
|
77 |
}
|
78 |
|
79 |
$field_prefix = '';
|
80 |
+
|
81 |
+
$counter = (int) pods_static_cache_get( $pod->pod . '-counter', 'pods-forms' );
|
82 |
+
|
83 |
+
$counter ++;
|
84 |
+
|
85 |
+
pods_static_cache_set( $pod->pod . '-counter', $counter, 'pods-forms' );
|
86 |
?>
|
87 |
|
88 |
<?php if ( ! $fields_only ) : ?>
|
89 |
<?php $field_prefix = 'pods_field_'; ?>
|
90 |
+
<form
|
91 |
+
action=""
|
92 |
+
method="post"
|
93 |
+
class="pods-submittable pods-form pods-form-front pods-form-pod-<?php echo esc_attr( $pod_name ); ?> pods-submittable-ajax"
|
94 |
+
data-location="<?php echo esc_attr( $thank_you ); ?>"
|
95 |
+
id="pods-form-<?php echo esc_attr( $pod_name . '-' . $counter ); ?>"
|
96 |
+
data-pods-pod-name="<?php echo esc_attr( $pod_name ); ?>"
|
97 |
+
data-pods-item-id="<?php echo esc_attr( $id ); ?>"
|
98 |
+
data-pods-form-counter="<?php echo esc_attr( $counter ); ?>"
|
99 |
+
>
|
100 |
<div class="pods-submittable-fields">
|
101 |
<?php echo PodsForm::field( 'action', 'pods_admin', 'hidden' ); ?>
|
102 |
<?php echo PodsForm::field( 'method', 'process_form', 'hidden' ); ?>
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"$schema": "https://schemas.wp.org/trunk/block.json",
|
3 |
+
"apiVersion": "1",
|
4 |
+
"name": "pods/pods-block-single-list-fields",
|
5 |
+
"title": "Pods Single Item - List Fields",
|
6 |
+
"description": "Display fields for a single Pod item.",
|
7 |
+
"category": "pods",
|
8 |
+
"icon": "admin-page",
|
9 |
+
"keywords": [
|
10 |
+
"pods",
|
11 |
+
"single",
|
12 |
+
"item",
|
13 |
+
"list",
|
14 |
+
"fields"
|
15 |
+
],
|
16 |
+
"editorScript": "file:../../pods-blocks-api.min.js",
|
17 |
+
"editorStyle": "file:../../../../styles/dist/pods.css",
|
18 |
+
"supports": {
|
19 |
+
"html": false,
|
20 |
+
"align": true,
|
21 |
+
"alignWide": true,
|
22 |
+
"anchor": true,
|
23 |
+
"customClassName": true,
|
24 |
+
"inserter": true,
|
25 |
+
"multiple": true,
|
26 |
+
"reusable": true,
|
27 |
+
"__experimentalColor": true,
|
28 |
+
"__experimentalFontSize": true,
|
29 |
+
"__experimentalPadding": true,
|
30 |
+
"__experimentalLineHeight": true,
|
31 |
+
"jsx": false
|
32 |
+
},
|
33 |
+
"attributes": {
|
34 |
+
"align": {
|
35 |
+
"type": "string"
|
36 |
+
},
|
37 |
+
"anchor": {
|
38 |
+
"type": "string"
|
39 |
+
},
|
40 |
+
"textColor": {
|
41 |
+
"type": "string"
|
42 |
+
},
|
43 |
+
"backgroundColor": {
|
44 |
+
"type": "string"
|
45 |
+
},
|
46 |
+
"fontSize": {
|
47 |
+
"type": "string"
|
48 |
+
},
|
49 |
+
"style": {
|
50 |
+
"type": "string"
|
51 |
+
},
|
52 |
+
"name": {
|
53 |
+
"type": "object",
|
54 |
+
"default": {
|
55 |
+
"label": "- Use Current Pod -",
|
56 |
+
"value": ""
|
57 |
+
}
|
58 |
+
},
|
59 |
+
"slug": {
|
60 |
+
"type": "string"
|
61 |
+
},
|
62 |
+
"display_output_type": {
|
63 |
+
"type": "object",
|
64 |
+
"default": {
|
65 |
+
"label": "Unordered list (<ul>)",
|
66 |
+
"value": "ul"
|
67 |
+
}
|
68 |
+
},
|
69 |
+
"display_fields": {
|
70 |
+
"type": "string"
|
71 |
+
},
|
72 |
+
"exclude_fields": {
|
73 |
+
"type": "string"
|
74 |
+
}
|
75 |
+
}
|
76 |
+
}
|
@@ -1 +1 @@
|
|
1 |
-
{"dependencies":["lodash","react","react-dom","wp-api-fetch","wp-autop","wp-block-editor","wp-blocks","wp-components","wp-compose","wp-date","wp-element","wp-i18n","wp-keycodes","wp-server-side-render","wp-url"],"version":"
|
1 |
+
{"dependencies":["lodash","react","react-dom","wp-api-fetch","wp-autop","wp-block-editor","wp-blocks","wp-components","wp-compose","wp-date","wp-element","wp-i18n","wp-keycodes","wp-server-side-render","wp-url"],"version":"4bdc7924982cd32512a3"}
|
@@ -1 +1 @@
|
|
1 |
-
(()=>{var e={4184:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var s=i.apply(null,n);s&&e.push(s)}}else if("object"===o)if(n.toString===Object.prototype.toString)for(var a in n)r.call(n,a)&&n[a]&&e.push(a);else e.push(n.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},9996:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)};var n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function s(e,t){try{return t in e}catch(e){return!1}}function a(e,t,n){var i={};return n.isMergeableObject(e)&&o(e).forEach((function(t){i[t]=r(e[t],n)})),o(t).forEach((function(o){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(s(e,o)&&n.isMergeableObject(t[o])?i[o]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(o,n)(e[o],t[o],n):i[o]=r(t[o],n))})),i}function l(e,n,o){(o=o||{}).arrayMerge=o.arrayMerge||i,o.isMergeableObject=o.isMergeableObject||t,o.cloneUnlessOtherwiseSpecified=r;var s=Array.isArray(n);return s===Array.isArray(e)?s?o.arrayMerge(e,n,o):a(e,n,o):r(n,o)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return l(e,n,t)}),{})};var c=l;e.exports=c},9960:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},3150:e=>{"use strict";e.exports=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},8679:(e,t,n)=>{"use strict";var r=n(1296),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return r.isMemo(e)?s:a[e.$$typeof]||i}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=s;var c=Object.defineProperty,u=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var i=d(n);i&&i!==h&&e(t,i,r)}var s=u(n);p&&(s=s.concat(p(n)));for(var a=l(t),m=l(n),g=0;g<s.length;++g){var b=s[g];if(!(o[b]||r&&r[b]||m&&m[b]||a&&a[b])){var v=f(n,b);try{c(t,b,v)}catch(e){}}}}return t}},6103:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case p:case o:case a:case s:case d:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case m:case l:return e;default:return t}}case i:return t}}}function O(e){return x(e)===p}t.AsyncMode=u,t.ConcurrentMode=p,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=a,t.StrictMode=s,t.Suspense=d,t.isAsyncMode=function(e){return O(e)||x(e)===u},t.isConcurrentMode=O,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===f},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===a},t.isStrictMode=function(e){return x(e)===s},t.isSuspense=function(e){return x(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===p||e===a||e===s||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===v||e.$$typeof===y||e.$$typeof===w||e.$$typeof===b)},t.typeOf=x},1296:(e,t,n)=>{"use strict";e.exports=n(6103)},885:e=>{e.exports={CASE_SENSITIVE_TAG_NAMES:["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussainBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]}},8276:(e,t,n)=>{var r="html",i="head",o="body",s=/<([a-zA-Z]+[0-9]?)/,a=/<head.*>/i,l=/<body.*>/i,c=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},u=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")};if("function"==typeof window.DOMParser){var p=new window.DOMParser;c=u=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),p.parseFromString(e,"text/html")}}if(document.implementation){var f=n(1507).isIE,d=document.implementation.createHTMLDocument(f()?"html-dom-parser":void 0);c=function(e,t){return t?(d.documentElement.getElementsByTagName(t)[0].innerHTML=e,d):(d.documentElement.innerHTML=e,d)}}var h,m=document.createElement("template");m.content&&(h=function(e){return m.innerHTML=e,m.content.childNodes}),e.exports=function(e){var t,n,p,f,d=e.match(s);switch(d&&d[1]&&(t=d[1].toLowerCase()),t){case r:return n=u(e),a.test(e)||(p=n.getElementsByTagName(i)[0])&&p.parentNode.removeChild(p),l.test(e)||(p=n.getElementsByTagName(o)[0])&&p.parentNode.removeChild(p),n.getElementsByTagName(r);case i:case o:return f=c(e).getElementsByTagName(t),l.test(e)&&a.test(e)?f[0].parentNode.childNodes:f;default:return h?h(e):c(e,o).getElementsByTagName(o)[0].childNodes}}},4152:(e,t,n)=>{var r=n(8276),i=n(1507).formatDOM,o=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(""===e)return[];var t,n=e.match(o);return n&&n[1]&&(t=n[1]),i(r(e),null,t)}},1507:(e,t,n)=>{for(var r,i=n(885),o=n(1642),s=i.CASE_SENSITIVE_TAG_NAMES,a=o.Comment,l=o.Element,c=o.ProcessingInstruction,u=o.Text,p={},f=0,d=s.length;f<d;f++)r=s[f],p[r.toLowerCase()]=r;function h(e){for(var t,n={},r=0,i=e.length;r<i;r++)n[(t=e[r]).name]=t.value;return n}function m(e){var t=function(e){return p[e]}(e=e.toLowerCase());return t||e}e.exports={formatAttributes:h,formatDOM:function e(t,n,r){n=n||null;for(var i=[],o=0,s=t.length;o<s;o++){var p,f=t[o];switch(f.nodeType){case 1:(p=new l(m(f.nodeName),h(f.attributes))).children=e(f.childNodes,p);break;case 3:p=new u(f.nodeValue);break;case 8:p=new a(f.nodeValue);break;default:continue}var d=i[o-1]||null;d&&(d.next=p),p.parent=n,p.prev=d,p.next=null,i.push(p)}return r&&((p=new c(r.substring(0,r.indexOf(" ")).toLowerCase(),r)).next=i[0]||null,p.parent=n,i.unshift(p),i[1]&&(i[1].prev=i[0])),i},isIE:function(){return/(MSIE |Trident\/|Edge\/)/.test(navigator.userAgent)}}},1642:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var s=n(9960),a=new Map([[s.ElementType.Tag,1],[s.ElementType.Script,1],[s.ElementType.Style,1],[s.ElementType.Directive,1],[s.ElementType.Text,3],[s.ElementType.CDATA,4],[s.ElementType.Comment,8],[s.ElementType.Root,9]]),l=function(){function e(e){this.type=e,this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"nodeType",{get:function(){var e;return null!==(e=a.get(this.type))&&void 0!==e?e:1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),O(this,e)},e}();t.Node=l;var c=function(e){function t(t,n){var r=e.call(this,t)||this;return r.data=n,r}return i(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(l);t.DataNode=c;var u=function(e){function t(t){return e.call(this,s.ElementType.Text,t)||this}return i(t,e),t}(c);t.Text=u;var p=function(e){function t(t){return e.call(this,s.ElementType.Comment,t)||this}return i(t,e),t}(c);t.Comment=p;var f=function(e){function t(t,n){var r=e.call(this,s.ElementType.Directive,n)||this;return r.name=t,r}return i(t,e),t}(c);t.ProcessingInstruction=f;var d=function(e){function t(t,n){var r=e.call(this,t)||this;return r.children=n,r}return i(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(l);t.NodeWithChildren=d;var h=function(e){function t(t){return e.call(this,s.ElementType.Root,t)||this}return i(t,e),t}(d);t.Document=h;var m=function(e){function t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?s.ElementType.Script:"style"===t?s.ElementType.Style:s.ElementType.Tag);var o=e.call(this,i,r)||this;return o.name=t,o.attribs=n,o}return i(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(d);function g(e){return(0,s.isTag)(e)}function b(e){return e.type===s.ElementType.CDATA}function v(e){return e.type===s.ElementType.Text}function y(e){return e.type===s.ElementType.Comment}function w(e){return e.type===s.ElementType.Directive}function x(e){return e.type===s.ElementType.Root}function O(e,t){var n;if(void 0===t&&(t=!1),v(e))n=new u(e.data);else if(y(e))n=new p(e.data);else if(g(e)){var r=t?S(e.children):[],i=new m(e.name,o({},e.attribs),r);r.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),n=i}else if(b(e)){r=t?S(e.children):[];var a=new d(s.ElementType.CDATA,r);r.forEach((function(e){return e.parent=a})),n=a}else if(x(e)){r=t?S(e.children):[];var l=new h(r);r.forEach((function(e){return e.parent=l})),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),n=l}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new f(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),n=c}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function S(e){for(var t=e.map((function(e){return O(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=m,t.isTag=g,t.isCDATA=b,t.isText=v,t.isComment=y,t.isDirective=w,t.isDocument=x,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=O},488:(e,t,n)=>{var r=n(3670),i=n(484),o=n(4152);o="function"==typeof o.default?o.default:o;var s={lowerCaseAttributeNames:!1};function a(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:r(o(e,(t=t||{}).htmlparser2||s),t)}a.domToReact=r,a.htmlToDOM=o,a.attributesToProps=i,a.Element=n(7384).Element,e.exports=a,e.exports.default=a},484:(e,t,n)=>{var r=n(83),i=n(4606);function o(e){return r.possibleStandardNames[e]}e.exports=function(e){var t,n,s,a,l,c={},u=(e=e||{}).type&&{reset:!0,submit:!0}[e.type];for(t in e)if(s=e[t],r.isCustomAttribute(t))c[t]=s;else if(a=o(n=t.toLowerCase()))switch(l=r.getPropertyInfo(a),"checked"!==a&&"value"!==a||u||(a=o("default"+n)),c[a]=s,l&&l.type){case r.BOOLEAN:c[a]=!0;break;case r.OVERLOADED_BOOLEAN:""===s&&(c[a]=!0)}else i.PRESERVE_CUSTOM_ATTRIBUTES&&(c[t]=s);return i.setStyleProp(e.style,c),c}},3670:(e,t,n)=>{var r=n(9196),i=n(484),o=n(4606),s=o.setStyleProp,a=o.canTextBeChildOfNode;function l(e){return o.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&o.isCustomComponent(e.name,e.attribs)}e.exports=function e(t,n){for(var o,c,u,p,f,d=(n=n||{}).library||r,h=d.cloneElement,m=d.createElement,g=d.isValidElement,b=[],v="function"==typeof n.replace,y=n.trim,w=0,x=t.length;w<x;w++)if(o=t[w],v&&g(u=n.replace(o)))x>1&&(u=h(u,{key:u.key||w})),b.push(u);else if("text"!==o.type){switch(p=o.attribs,l(o)?s(p.style,p):p&&(p=i(p)),f=null,o.type){case"script":case"style":o.children[0]&&(p.dangerouslySetInnerHTML={__html:o.children[0].data});break;case"tag":"textarea"===o.name&&o.children[0]?p.defaultValue=o.children[0].data:o.children&&o.children.length&&(f=e(o.children,n));break;default:continue}x>1&&(p.key=w),b.push(m(o.name,p,f))}else{if((c=!o.data.trim().length)&&o.parent&&!a(o.parent))continue;if(y&&c)continue;b.push(o.data)}return 1===b.length?b[0]:b}},4606:(e,t,n)=>{var r=n(9196),i=n(1476).default;var o={reactCompat:!0};var s=r.version.split(".")[0]>=16,a=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:s,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var n,r,i="function"==typeof t,o={},s={};for(n in e)r=e[n],i&&(o=t(n,r))&&2===o.length?s[o[0]]=o[1]:"string"==typeof r&&(s[r]=n);return s},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!=e)try{t.style=i(e,o)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!a.has(e.name)},elementsWithNoTextChildren:a}},7384:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var o=n(9960),s=n(5079);i(n(5079),t);var a=/\s+/g,l={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},c=function(){function e(e,t,n){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=l),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:l,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?o.ElementType.Tag:void 0,r=new s.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.options.normalizeWhitespace,n=this.lastNode;if(n&&n.type===o.ElementType.Text)t?n.data=(n.data+e).replace(a," "):n.data+=e,this.options.withEndIndices&&(n.endIndex=this.parser.endIndex);else{t&&(e=e.replace(a," "));var r=new s.Text(e);this.addNode(r),this.lastNode=r}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===o.ElementType.Comment)this.lastNode.data+=e;else{var t=new s.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new s.Text(""),t=new s.NodeWithChildren(o.ElementType.CDATA,[e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new s.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=c,t.default=c},5079:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var s=n(9960),a=new Map([[s.ElementType.Tag,1],[s.ElementType.Script,1],[s.ElementType.Style,1],[s.ElementType.Directive,1],[s.ElementType.Text,3],[s.ElementType.CDATA,4],[s.ElementType.Comment,8],[s.ElementType.Root,9]]),l=function(){function e(e){this.type=e,this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"nodeType",{get:function(){var e;return null!==(e=a.get(this.type))&&void 0!==e?e:1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),O(this,e)},e}();t.Node=l;var c=function(e){function t(t,n){var r=e.call(this,t)||this;return r.data=n,r}return i(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(l);t.DataNode=c;var u=function(e){function t(t){return e.call(this,s.ElementType.Text,t)||this}return i(t,e),t}(c);t.Text=u;var p=function(e){function t(t){return e.call(this,s.ElementType.Comment,t)||this}return i(t,e),t}(c);t.Comment=p;var f=function(e){function t(t,n){var r=e.call(this,s.ElementType.Directive,n)||this;return r.name=t,r}return i(t,e),t}(c);t.ProcessingInstruction=f;var d=function(e){function t(t,n){var r=e.call(this,t)||this;return r.children=n,r}return i(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(l);t.NodeWithChildren=d;var h=function(e){function t(t){return e.call(this,s.ElementType.Root,t)||this}return i(t,e),t}(d);t.Document=h;var m=function(e){function t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?s.ElementType.Script:"style"===t?s.ElementType.Style:s.ElementType.Tag);var o=e.call(this,i,r)||this;return o.name=t,o.attribs=n,o}return i(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(d);function g(e){return(0,s.isTag)(e)}function b(e){return e.type===s.ElementType.CDATA}function v(e){return e.type===s.ElementType.Text}function y(e){return e.type===s.ElementType.Comment}function w(e){return e.type===s.ElementType.Directive}function x(e){return e.type===s.ElementType.Root}function O(e,t){var n;if(void 0===t&&(t=!1),v(e))n=new u(e.data);else if(y(e))n=new p(e.data);else if(g(e)){var r=t?S(e.children):[],i=new m(e.name,o({},e.attribs),r);r.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),n=i}else if(b(e)){r=t?S(e.children):[];var a=new d(s.ElementType.CDATA,r);r.forEach((function(e){return e.parent=a})),n=a}else if(x(e)){r=t?S(e.children):[];var l=new h(r);r.forEach((function(e){return e.parent=l})),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),n=l}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new f(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),n=c}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function S(e){for(var t=e.map((function(e){return O(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=m,t.isTag=g,t.isCDATA=b,t.isText=v,t.isComment=y,t.isDirective=w,t.isDocument=x,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=O},8139:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var p=1,f=1;function d(e){var t=e.match(n);t&&(p+=t.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function h(){var e={line:p,column:f};return function(t){return t.position=new m(e),y(),t}}function m(e){this.start=e,this.end={line:p,column:f},this.source=l.source}m.prototype.content=e;var g=[];function b(t){var n=new Error(l.source+":"+p+":"+f+": "+t);if(n.reason=t,n.filename=l.source,n.line=p,n.column=f,n.source=e,!l.silent)throw n;g.push(n)}function v(t){var n=t.exec(e);if(n){var r=n[0];return d(r),e=e.slice(r.length),n}}function y(){v(r)}function w(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return b("End of comment missing");var r=e.slice(2,n-2);return f+=2,d(r),e=e.slice(n),f+=2,t({type:"comment",comment:r})}}function O(){var e=h(),n=v(i);if(n){if(x(),!v(o))return b("property missing ':'");var r=v(s),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return v(a),l}}return y(),function(){var e,t=[];for(w(t);e=O();)!1!==e&&(t.push(e),w(t));return t}()}},9430:function(e,t){var n,r,i;r=[],void 0===(i="function"==typeof(n=function(){return function(e){function t(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function n(t){var n,r=t.exec(e.substring(m));if(r)return n=r[0],m+=n.length,n}for(var r,i,o,s,a,l=e.length,c=/^[ \t\n\r\u000c]+/,u=/^[, \t\n\r\u000c]+/,p=/^[^ \t\n\r\u000c]+/,f=/[,]+$/,d=/^\d+$/,h=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,m=0,g=[];;){if(n(u),m>=l)return g;r=n(p),i=[],","===r.slice(-1)?(r=r.replace(f,""),v()):b()}function b(){for(n(c),o="",s="in descriptor";;){if(a=e.charAt(m),"in descriptor"===s)if(t(a))o&&(i.push(o),o="",s="after descriptor");else{if(","===a)return m+=1,o&&i.push(o),void v();if("("===a)o+=a,s="in parens";else{if(""===a)return o&&i.push(o),void v();o+=a}}else if("in parens"===s)if(")"===a)o+=a,s="in descriptor";else{if(""===a)return i.push(o),void v();o+=a}else if("after descriptor"===s)if(t(a));else{if(""===a)return void v();s="in descriptor",m-=1}m+=1}}function v(){var t,n,o,s,a,l,c,u,p,f=!1,m={};for(s=0;s<i.length;s++)l=(a=i[s])[a.length-1],c=a.substring(0,a.length-1),u=parseInt(c,10),p=parseFloat(c),d.test(c)&&"w"===l?((t||n)&&(f=!0),0===u?f=!0:t=u):h.test(c)&&"x"===l?((t||n||o)&&(f=!0),p<0?f=!0:n=p):d.test(c)&&"h"===l?((o||n)&&(f=!0),0===u?f=!0:o=u):f=!0;f?console&&console.log&&console.log("Invalid srcset descriptor found in '"+e+"' at '"+a+"'."):(m.url=r,t&&(m.w=t),n&&(m.d=n),o&&(m.h=o),g.push(m))}}})?n.apply(t,r):n)||(e.exports=i)},4241:e=>{var t=String,n=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t}};e.exports=n(),e.exports.createColors=n},1353:(e,t,n)=>{"use strict";let r=n(1019);class i extends r{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}e.exports=i,i.default=i,r.registerAtRule(i)},9932:(e,t,n)=>{"use strict";let r=n(5631);class i extends r{constructor(e){super(e),this.type="comment"}}e.exports=i,i.default=i},1019:(e,t,n)=>{"use strict";let r,i,o,s,{isClean:a,my:l}=n(5513),c=n(4258),u=n(9932),p=n(5631);function f(e){return e.map((e=>(e.nodes&&(e.nodes=f(e.nodes)),delete e.source,e)))}function d(e){if(e[a]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)d(t)}class h extends p{push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}each(e){if(!this.proxyOf.nodes)return;let t,n,r=this.getIterator();for(;this.indexes[r]<this.proxyOf.nodes.length&&(t=this.indexes[r],n=e(this.proxyOf.nodes[t],t),!1!==n);)this.indexes[r]+=1;return delete this.indexes[r],n}walk(e){return this.each(((t,n)=>{let r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return!1!==r&&t.walk&&(r=t.walk(e)),r}))}walkDecls(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("decl"===n.type&&e.test(n.prop))return t(n,r)})):this.walk(((n,r)=>{if("decl"===n.type&&n.prop===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("decl"===e.type)return t(e,n)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("rule"===n.type&&e.test(n.selector))return t(n,r)})):this.walk(((n,r)=>{if("rule"===n.type&&n.selector===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("rule"===e.type)return t(e,n)})))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("atrule"===n.type&&e.test(n.name))return t(n,r)})):this.walk(((n,r)=>{if("atrule"===n.type&&n.name===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("atrule"===e.type)return t(e,n)})))}walkComments(e){return this.walk(((t,n)=>{if("comment"===t.type)return e(t,n)}))}append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}insertBefore(e,t){let n,r=0===(e=this.index(e))&&"prepend",i=this.normalize(t,this.proxyOf.nodes[e],r).reverse();for(let t of i)this.proxyOf.nodes.splice(e,0,t);for(let t in this.indexes)n=this.indexes[t],e<=n&&(this.indexes[t]=n+i.length);return this.markDirty(),this}insertAfter(e,t){e=this.index(e);let n,r=this.normalize(t,this.proxyOf.nodes[e]).reverse();for(let t of r)this.proxyOf.nodes.splice(e+1,0,t);for(let t in this.indexes)n=this.indexes[t],e<n&&(this.indexes[t]=n+r.length);return this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls((r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))})),this.markDirty(),this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}normalize(e,t){if("string"==typeof e)e=f(r(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new c(e)]}else if(e.selector)e=[new i(e)];else if(e.name)e=[new o(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new u(e)]}return e.map((e=>(e[l]||h.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[a]&&d(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e)))}getProxyProcessor(){return{set:(e,t,n)=>(e[t]===n||(e[t]=n,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0),get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...n)=>e[t](...n.map((e=>"function"==typeof e?(t,n)=>e(t.toProxy(),n):e))):"every"===t||"some"===t?n=>e[t](((e,...t)=>n(e.toProxy(),...t))):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map((e=>e.toProxy())):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]}}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}}h.registerParse=e=>{r=e},h.registerRule=e=>{i=e},h.registerAtRule=e=>{o=e},h.registerRoot=e=>{s=e},e.exports=h,h.default=h,h.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,o.prototype):"rule"===e.type?Object.setPrototypeOf(e,i.prototype):"decl"===e.type?Object.setPrototypeOf(e,c.prototype):"comment"===e.type?Object.setPrototypeOf(e,u.prototype):"root"===e.type&&Object.setPrototypeOf(e,s.prototype),e[l]=!0,e.nodes&&e.nodes.forEach((e=>{h.rebuild(e)}))}},2671:(e,t,n)=>{"use strict";let r=n(4241),i=n(2868);class o extends Error{constructor(e,t,n,r,i,s){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),r&&(this.source=r),s&&(this.plugin=s),void 0!==t&&void 0!==n&&("number"==typeof t?(this.line=t,this.column=n):(this.line=t.line,this.column=t.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,o)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=r.isColorSupported),i&&e&&(t=i(t));let n,o,s=t.split(/\r?\n/),a=Math.max(this.line-3,0),l=Math.min(this.line+2,s.length),c=String(l).length;if(e){let{bold:e,red:t,gray:i}=r.createColors(!0);n=n=>e(t(n)),o=e=>i(e)}else n=o=e=>e;return s.slice(a,l).map(((e,t)=>{let r=a+1+t,i=" "+(" "+r).slice(-c)+" | ";if(r===this.line){let t=o(i.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+o(i)+e+"\n "+t+n("^")}return" "+o(i)+e})).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}e.exports=o,o.default=o},4258:(e,t,n)=>{"use strict";let r=n(5631);class i extends r{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}e.exports=i,i.default=i},6461:(e,t,n)=>{"use strict";let r,i,o=n(1019);class s extends o{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new r(new i,this,e).stringify()}}s.registerLazyResult=e=>{r=e},s.registerProcessor=e=>{i=e},e.exports=s,s.default=s},250:(e,t,n)=>{"use strict";let r=n(4258),i=n(7981),o=n(9932),s=n(1353),a=n(5995),l=n(1025),c=n(1675);function u(e,t){if(Array.isArray(e))return e.map((e=>u(e)));let{inputs:n,...p}=e;if(n){t=[];for(let e of n){let n={...e,__proto__:a.prototype};n.map&&(n.map={...n.map,__proto__:i.prototype}),t.push(n)}}if(p.nodes&&(p.nodes=e.nodes.map((e=>u(e,t)))),p.source){let{inputId:e,...n}=p.source;p.source=n,null!=e&&(p.source.input=t[e])}if("root"===p.type)return new l(p);if("decl"===p.type)return new r(p);if("rule"===p.type)return new c(p);if("comment"===p.type)return new o(p);if("atrule"===p.type)return new s(p);throw new Error("Unknown node type: "+e.type)}e.exports=u,u.default=u},5995:(e,t,n)=>{"use strict";let{SourceMapConsumer:r,SourceMapGenerator:i}=n(209),{fileURLToPath:o,pathToFileURL:s}=n(7414),{resolve:a,isAbsolute:l}=n(9830),{nanoid:c}=n(2618),u=n(2868),p=n(2671),f=n(7981),d=Symbol("fromOffsetCache"),h=Boolean(r&&i),m=Boolean(a&&l);class g{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!m||/^\w+:\/\//.test(t.from)||l(t.from)?this.file=t.from:this.file=a(t.from)),m&&h){let e=new f(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+c(6)+">"),this.map&&(this.map.file=this.from)}fromOffset(e){let t,n;if(this[d])n=this[d];else{let e=this.css.split("\n");n=new Array(e.length);let t=0;for(let r=0,i=e.length;r<i;r++)n[r]=t,t+=e[r].length+1;this[d]=n}t=n[n.length-1];let r=0;if(e>=t)r=n.length-1;else{let t,i=n.length-2;for(;r<i;)if(t=r+(i-r>>1),e<n[t])i=t-1;else{if(!(e>=n[t+1])){r=t;break}r=t+1}}return{line:r+1,col:e-n[r]+1}}error(e,t,n,r={}){let i,o,a;if(t&&"object"==typeof t){let e=t,r=n;if("number"==typeof t.offset){let r=this.fromOffset(e.offset);t=r.line,n=r.col}else t=e.line,n=e.column;if("number"==typeof r.offset){let e=this.fromOffset(r.offset);o=e.line,a=e.col}else o=r.line,a=r.column}else if(!n){let e=this.fromOffset(t);t=e.line,n=e.col}let l=this.origin(t,n,o,a);return i=l?new p(e,void 0===l.endLine?l.line:{line:l.line,column:l.column},void 0===l.endLine?l.column:{line:l.endLine,column:l.endColumn},l.source,l.file,r.plugin):new p(e,void 0===o?t:{line:t,column:n},void 0===o?n:{line:o,column:a},this.css,this.file,r.plugin),i.input={line:t,column:n,endLine:o,endColumn:a,source:this.css},this.file&&(s&&(i.input.url=s(this.file).toString()),i.input.file=this.file),i}origin(e,t,n,r){if(!this.map)return!1;let i,a,c=this.map.consumer(),u=c.originalPositionFor({line:e,column:t});if(!u.source)return!1;"number"==typeof n&&(i=c.originalPositionFor({line:n,column:r})),a=l(u.source)?s(u.source):new URL(u.source,this.map.consumer().sourceRoot||s(this.map.mapFile));let p={url:a.toString(),line:u.line,column:u.column,endLine:i&&i.line,endColumn:i&&i.column};if("file:"===a.protocol){if(!o)throw new Error("file: protocol is not available in this PostCSS build");p.file=o(a)}let f=c.sourceContentFor(u.source);return f&&(p.source=f),p}mapResolve(e){return/^\w+:\/\//.test(e)?e:a(this.map.consumer().sourceRoot||this.map.root||".",e)}get from(){return this.file||this.id}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}}e.exports=g,g.default=g,u&&u.registerInput&&u.registerInput(g)},1939:(e,t,n)=>{"use strict";let{isClean:r,my:i}=n(5513),o=n(8505),s=n(7088),a=n(1019),l=n(6461),c=(n(2448),n(3632)),u=n(6939),p=n(1025);const f={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},d={postcssPlugin:!0,prepare:!0,Once:!0,Document:!0,Root:!0,Declaration:!0,Rule:!0,AtRule:!0,Comment:!0,DeclarationExit:!0,RuleExit:!0,AtRuleExit:!0,CommentExit:!0,RootExit:!0,DocumentExit:!0,OnceExit:!0},h={postcssPlugin:!0,prepare:!0,Once:!0};function m(e){return"object"==typeof e&&"function"==typeof e.then}function g(e){let t=!1,n=f[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,0,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,0,n+"Exit"]:[n,n+"Exit"]}function b(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:g(e),{node:e,events:t,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function v(e){return e[r]=!1,e.nodes&&e.nodes.forEach((e=>v(e))),e}let y={};class w{constructor(e,t,n){let r;if(this.stringified=!1,this.processed=!1,"object"!=typeof t||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof w||t instanceof c)r=v(t.root),t.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{let e=u;n.syntax&&(e=n.syntax.parse),n.parser&&(e=n.parser),e.parse&&(e=e.parse);try{r=e(t,n)}catch(e){this.processed=!0,this.error=e}r&&!r[i]&&a.rebuild(r)}else r=v(t);this.result=new c(e,r,n),this.helpers={...y,result:this.result,postcss:y},this.plugins=this.processor.plugins.map((e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e))}get[Symbol.toStringTag](){return"LazyResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.stringify().css}get content(){return this.stringify().content}get map(){return this.stringify().map}get root(){return this.sync().root}get messages(){return this.sync().messages}warnings(){return this.sync().warnings()}toString(){return this.css}then(e,t){return this.async().then(e,t)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){if(m(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[r];)e[r]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=s;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=new o(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}walkSync(e){e[r]=!0;let t=g(e);for(let n of t)if(0===n)e.nodes&&e.each((e=>{e[r]||this.walkSync(e)}));else{let t=this.listeners[n];if(t&&this.visitSync(t,e.toProxy()))return}}visitSync(e,t){for(let[n,r]of e){let e;this.result.lastPlugin=n;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(m(e))throw this.getAsyncError()}}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map((t=>e.Once(t,this.helpers)));return m(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?n.postcssVersion:(e.plugin=n.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(m(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[r];){e[r]=!0;let t=[b(e)];for(;t.length>0;){let e=this.visitTick(t);if(m(e))try{await e}catch(e){let n=t[t.length-1].node;throw this.handleError(e,n)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map((e=>n(e,this.helpers)));await Promise.all(t)}else await n(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if("object"==typeof t)for(let n in t){if(!d[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!h[n])if("object"==typeof t[n])for(let r in t[n])e(t,"*"===r?n:n+"-"+r.toLowerCase(),t[n][r]);else"function"==typeof t[n]&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}visitTick(e){let t=e[e.length-1],{node:n,visitors:i}=t;if("root"!==n.type&&"document"!==n.type&&!n.parent)return void e.pop();if(i.length>0&&t.visitorIndex<i.length){let[e,r]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return r(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(0!==t.iterator){let i,o=t.iterator;for(;i=n.nodes[n.indexes[o]];)if(n.indexes[o]+=1,!i[r])return i[r]=!0,void e.push(b(i));t.iterator=0,delete n.indexes[o]}let o=t.events;for(;t.eventIndex<o.length;){let e=o[t.eventIndex];if(t.eventIndex+=1,0===e)return void(n.nodes&&n.nodes.length&&(n[r]=!0,t.iterator=n.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}}w.registerPostcss=e=>{y=e},e.exports=w,w.default=w,p.registerLazyResult(w),l.registerLazyResult(w)},4715:e=>{"use strict";let t={split(e,t,n){let r=[],i="",o=!1,s=0,a=!1,l="",c=!1;for(let n of e)c?c=!1:"\\"===n?c=!0:a?n===l&&(a=!1):'"'===n||"'"===n?(a=!0,l=n):"("===n?s+=1:")"===n?s>0&&(s-=1):0===s&&t.includes(n)&&(o=!0),o?(""!==i&&r.push(i.trim()),i="",o=!1):i+=n;return(n||""!==i)&&r.push(i.trim()),r},space:e=>t.split(e,[" ","\n","\t"]),comma:e=>t.split(e,[","],!0)};e.exports=t,t.default=t},8505:(e,t,n)=>{"use strict";let{SourceMapConsumer:r,SourceMapGenerator:i}=n(209),{dirname:o,resolve:s,relative:a,sep:l}=n(9830),{pathToFileURL:c}=n(7414),u=n(5995),p=Boolean(r&&i),f=Boolean(o&&s&&a&&l);e.exports=class{constructor(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}}));else{let e=new u(this.css,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((e=>e.inline)))}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((e=>e.withContent()))}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""))}setSourcesContent(){let e={};if(this.root)this.root.walk((t=>{if(t.source){let n=t.source.input.from;n&&!e[n]&&(e[n]=!0,this.map.setSourceContent(this.toUrl(this.path(n)),t.source.input.css))}}));else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}applyPrevMaps(){for(let e of this.previous()){let t,n=this.toUrl(this.path(e.file)),i=e.root||o(e.file);!1===this.mapOpts.sourcesContent?(t=new r(e.text),t.sourcesContent&&(t.sourcesContent=t.sourcesContent.map((()=>null)))):t=e.consumer(),this.map.applySourceMap(t,n,this.toUrl(this.path(i)))}}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((e=>e.annotation)))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=i.fromSourceMap(e)}else this.map=new i({file:this.outputFile()}),this.map.addMapping({source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>",generated:{line:1,column:0},original:{line:1,column:0}});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}path(e){if(0===e.indexOf("<"))return e;if(/^\w+:\/\//.test(e))return e;if(this.mapOpts.absolute)return e;let t=this.opts.to?o(this.opts.to):".";return"string"==typeof this.mapOpts.annotation&&(t=o(s(t,this.mapOpts.annotation))),e=a(t,e)}toUrl(e){return"\\"===l&&(e=e.replace(/\\/g,"/")),encodeURI(e).replace(/[#?]/g,encodeURIComponent)}sourcePath(e){if(this.mapOpts.from)return this.toUrl(this.mapOpts.from);if(this.mapOpts.absolute){if(c)return c(e.source.input.from).toString();throw new Error("`map.absolute` option is not available in this PostCSS build")}return this.toUrl(this.path(e.source.input.from))}generateString(){this.css="",this.map=new i({file:this.outputFile()});let e,t,n=1,r=1,o="<no source>",s={source:"",generated:{line:0,column:0},original:{line:0,column:0}};this.stringify(this.root,((i,a,l)=>{if(this.css+=i,a&&"end"!==l&&(s.generated.line=n,s.generated.column=r-1,a.source&&a.source.start?(s.source=this.sourcePath(a),s.original.line=a.source.start.line,s.original.column=a.source.start.column-1,this.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,this.map.addMapping(s))),e=i.match(/\n/g),e?(n+=e.length,t=i.lastIndexOf("\n"),r=i.length-t):r+=i.length,a&&"start"!==l){let e=a.parent||{raws:{}};("decl"!==a.type||a!==e.last||e.raws.semicolon)&&(a.source&&a.source.end?(s.source=this.sourcePath(a),s.original.line=a.source.end.line,s.original.column=a.source.end.column-1,s.generated.line=n,s.generated.column=r-2,this.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=r-1,this.map.addMapping(s)))}}))}generate(){if(this.clearAnnotation(),f&&p&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,(t=>{e+=t})),[e]}}}},7647:(e,t,n)=>{"use strict";let r=n(8505),i=n(7088),o=(n(2448),n(6939));const s=n(3632);class a{constructor(e,t,n){let o;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let a=i;this.result=new s(this._processor,o,this._opts),this.result.css=t;let l=this;Object.defineProperty(this.result,"root",{get:()=>l.root});let c=new r(a,o,this._opts,t);if(c.isMap()){let[e,t]=c.generate();e&&(this.result.css=e),t&&(this.result.map=t)}}get[Symbol.toStringTag](){return"NoWorkResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.result.css}get content(){return this.result.css}get map(){return this.result.map}get root(){if(this._root)return this._root;let e,t=o;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get messages(){return[]}warnings(){return[]}toString(){return this._css}then(e,t){return this.async().then(e,t)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}sync(){if(this.error)throw this.error;return this.result}}e.exports=a,a.default=a},5631:(e,t,n)=>{"use strict";let{isClean:r,my:i}=n(5513),o=n(2671),s=n(1062),a=n(7088);function l(e,t){let n=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;if("proxyCache"===r)continue;let i=e[r],o=typeof i;"parent"===r&&"object"===o?t&&(n[r]=t):"source"===r?n[r]=i:Array.isArray(i)?n[r]=i.map((e=>l(e,n))):("object"===o&&null!==i&&(i=l(i)),n[r]=i)}return n}class c{constructor(e={}){this.raws={},this[r]=!1,this[i]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let n of e[t])"function"==typeof n.clone?this.append(n.clone()):this.append(n)}else this[t]=e[t]}error(e,t={}){if(this.source){let{start:n,end:r}=this.rangeBy(t);return this.source.input.error(e,{line:n.line,column:n.column},{line:r.line,column:r.column},t)}return new o(e)}warn(e,t,n){let r={node:this};for(let e in n)r[e]=n[e];return e.warn(t,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(e=a){e.stringify&&(e=e.stringify);let t="";return e(this,(e=>{t+=e})),t}assign(e={}){for(let t in e)this[t]=e[t];return this}clone(e={}){let t=l(this);for(let n in e)t[n]=e[n];return t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let r of e)r===this?n=!0:n?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);n||this.remove()}return this}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}before(e){return this.parent.insertBefore(this,e),this}after(e){return this.parent.insertAfter(this,e),this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}raw(e,t){return(new s).raw(this,e,t)}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}toJSON(e,t){let n={},r=null==t;t=t||new Map;let i=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let r=this[e];if(Array.isArray(r))n[e]=r.map((e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof r&&r.toJSON)n[e]=r.toJSON(null,t);else if("source"===e){let o=t.get(r.input);null==o&&(o=i,t.set(r.input,i),i++),n[e]={inputId:o,start:r.start,end:r.end}}else n[e]=r}return r&&(n.inputs=[...t.keys()].map((e=>e.toJSON()))),n}positionInside(e){let t=this.toString(),n=this.source.start.column,r=this.source.start.line;for(let i=0;i<e;i++)"\n"===t[i]?(n=1,r+=1):n+=1;return{line:r,column:n}}positionBy(e){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let n=this.toString().indexOf(e.word);-1!==n&&(t=this.positionInside(n))}return t}rangeBy(e){let t={line:this.source.start.line,column:this.source.start.column},n=this.source.end?{line:this.source.end.line,column:this.source.end.column+1}:{line:t.line,column:t.column+1};if(e.word){let r=this.toString().indexOf(e.word);-1!==r&&(t=this.positionInside(r),n=this.positionInside(r+e.word.length))}else e.start?t={line:e.start.line,column:e.start.column}:e.index&&(t=this.positionInside(e.index)),e.end?n={line:e.end.line,column:e.end.column}:e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={line:t.line,column:t.column+1}),{start:t,end:n}}getProxyProcessor(){return{set:(e,t,n)=>(e[t]===n||(e[t]=n,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0),get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t]}}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}markDirty(){if(this[r]){this[r]=!1;let e=this;for(;e=e.parent;)e[r]=!1}}get proxyOf(){return this}}e.exports=c,c.default=c},6939:(e,t,n)=>{"use strict";let r=n(1019),i=n(8867),o=n(5995);function s(e,t){let n=new o(e,t),r=new i(n);try{r.parse()}catch(e){throw e}return r.root}e.exports=s,s.default=s,r.registerParse(s)},8867:(e,t,n)=>{"use strict";let r=n(4258),i=n(3852),o=n(9932),s=n(1353),a=n(1025),l=n(1675);const c={empty:!0,space:!0};e.exports=class{constructor(e){this.input=e,this.root=new a,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{offset:0,line:1,column:1}}}createTokenizer(){this.tokenizer=i(this.input)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}comment(e){let t=new o;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]);let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{let e=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}emptyRule(e){let t=new l;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}other(e){let t=!1,n=null,r=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],l=e;for(;l;){if(n=l[0],a.push(l),"("===n||"["===n)i||(i=l),o.push("("===n?")":"]");else if(s&&r&&"{"===n)i||(i=l),o.push("}");else if(0===o.length){if(";"===n){if(r)return void this.decl(a,s);break}if("{"===n)return void this.rule(a);if("}"===n){this.tokenizer.back(a.pop()),t=!0;break}":"===n&&(r=!0)}else n===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&r){if(!s)for(;a.length&&(l=a[a.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)}rule(e){e.pop();let t=new l;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}decl(e,t){let n=new r;this.init(n,e[0][2]);let i,o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(o[3]||o[2]||function(e){for(let t=e.length-1;t>=0;t--){let n=e[t],r=n[3]||n[2];if(r)return r}}(e));"word"!==e[0][0];)1===e.length&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;n.prop+=e.shift()[1]}for(n.raws.between="";e.length;){if(i=e.shift(),":"===i[0]){n.raws.between+=i[1];break}"word"===i[0]&&/\w/.test(i[1])&&this.unknownWord([i]),n.raws.between+=i[1]}"_"!==n.prop[0]&&"*"!==n.prop[0]||(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let s,a=[];for(;e.length&&(s=e[0][0],"space"===s||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(i=e[t],"!important"===i[1].toLowerCase()){n.important=!0;let r=this.stringFrom(e,t);r=this.spacesFromEnd(e)+r," !important"!==r&&(n.raws.important=r);break}if("important"===i[1].toLowerCase()){let r=e.slice(0),i="";for(let e=t;e>0;e--){let t=r[e][0];if(0===i.trim().indexOf("!")&&"space"!==t)break;i=r.pop()[1]+i}0===i.trim().indexOf("!")&&(n.important=!0,n.raws.important=i,e=r)}if("space"!==i[0]&&"comment"!==i[0])break}e.some((e=>"space"!==e[0]&&"comment"!==e[0]))&&(n.raws.between+=a.map((e=>e[1])).join(""),a=[]),this.raw(n,"value",a.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}atrule(e){let t,n,r,i=new s;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);let o=!1,a=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),this.semicolon=!0;break}if("{"===t){a=!0;break}if("}"===t){if(l.length>0){for(r=l.length-1,n=l[r];n&&"space"===n[0];)n=l[--r];n&&(i.source.end=this.getPosition(n[3]||n[2]))}this.end(e);break}l.push(e)}else l.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(i.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(i,"params",l),o&&(e=l[l.length-1],i.source.end=this.getPosition(e[3]||e[2]),this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),a&&(i.nodes=[],this.current=i)}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{offset:e,line:t.line,column:t.col}}init(e,t){this.current.push(e),e.source={start:this.getPosition(t),input:this.input},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}raw(e,t,n,r){let i,o,s,a,l=n.length,u="",p=!0;for(let e=0;e<l;e+=1)i=n[e],o=i[0],"space"!==o||e!==l-1||r?"comment"===o?(a=n[e-1]?n[e-1][0]:"empty",s=n[e+1]?n[e+1][0]:"empty",c[a]||c[s]||","===u.slice(-1)?p=!1:u+=i[1]):u+=i[1]:p=!1;if(!p){let r=n.reduce(((e,t)=>e+t[1]),"");e.raws[t]={value:u,raw:r}}e[t]=u}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}colon(e){let t,n,r,i=0;for(let[o,s]of e.entries()){if(t=s,n=t[0],"("===n&&(i+=1),")"===n&&(i-=1),0===i&&":"===n){if(r){if("word"===r[0]&&"progid"===r[1])continue;return o}this.doubleColon(t)}r=t}return!1}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}precheckMissedSemicolon(){}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let n,r=0;for(let i=t-1;i>=0&&(n=e[i],"space"===n[0]||(r+=1,2!==r));i--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}}},20:(e,t,n)=>{"use strict";let r=n(2671),i=n(4258),o=n(1939),s=n(1019),a=n(1723),l=n(7088),c=n(250),u=n(6461),p=n(1728),f=n(9932),d=n(1353),h=n(3632),m=n(5995),g=n(6939),b=n(4715),v=n(1675),y=n(1025),w=n(5631);function x(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new a(e)}x.plugin=function(e,t){let n,r=!1;function i(...n){console&&console.warn&&!r&&(r=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let i=t(...n);return i.postcssPlugin=e,i.postcssVersion=(new a).version,i}return Object.defineProperty(i,"postcss",{get:()=>(n||(n=i()),n)}),i.process=function(e,t,n){return x([i(n)]).process(e,t)},i},x.stringify=l,x.parse=g,x.fromJSON=c,x.list=b,x.comment=e=>new f(e),x.atRule=e=>new d(e),x.decl=e=>new i(e),x.rule=e=>new v(e),x.root=e=>new y(e),x.document=e=>new u(e),x.CssSyntaxError=r,x.Declaration=i,x.Container=s,x.Processor=a,x.Document=u,x.Comment=f,x.Warning=p,x.AtRule=d,x.Result=h,x.Input=m,x.Rule=v,x.Root=y,x.Node=w,o.registerPostcss(x),e.exports=x,x.default=x},7981:(e,t,n)=>{"use strict";let{SourceMapConsumer:r,SourceMapGenerator:i}=n(209),{existsSync:o,readFileSync:s}=n(4777),{dirname:a,join:l}=n(9830);class c{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=a(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new r(this.text)),this.consumerCache}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(e,t){return!!e&&e.substr(0,t.length)===t}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let n=e.lastIndexOf(t.pop()),r=e.indexOf("*/",n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t;let n=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+n)}loadFile(e){if(this.root=a(e),o(e))return this.mapFile=e,s(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof r)return i.fromSourceMap(t).toString();if(t instanceof i)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let n=t(e);if(n){let e=this.loadFile(n);if(!e)throw new Error("Unable to load previous source map: "+n.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=l(a(e),t)),this.loadFile(t)}}}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}}e.exports=c,c.default=c},1723:(e,t,n)=>{"use strict";let r=n(7647),i=n(1939),o=n(6461),s=n(1025);class a{constructor(e=[]){this.version="8.4.16",this.plugins=this.normalize(e)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}process(e,t={}){return 0===this.plugins.length&&void 0===t.parser&&void 0===t.stringifier&&void 0===t.syntax?new r(this,e,t):new i(this,e,t)}normalize(e){let t=[];for(let n of e)if(!0===n.postcss?n=n():n.postcss&&(n=n.postcss),"object"==typeof n&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if("object"==typeof n&&n.postcssPlugin)t.push(n);else if("function"==typeof n)t.push(n);else{if("object"!=typeof n||!n.parse&&!n.stringify)throw new Error(n+" is not a PostCSS plugin")}return t}}e.exports=a,a.default=a,s.registerProcessor(a),o.registerProcessor(a)},3632:(e,t,n)=>{"use strict";let r=n(1728);class i{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let n=new r(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter((e=>"warning"===e.type))}get content(){return this.css}}e.exports=i,i.default=i},1025:(e,t,n)=>{"use strict";let r,i,o=n(1019);class s extends o{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}removeChild(e,t){let n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}normalize(e,t,n){let r=super.normalize(e);if(t)if("prepend"===n)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of r)e.raws.before=t.raws.before;return r}toResult(e={}){return new r(new i,this,e).stringify()}}s.registerLazyResult=e=>{r=e},s.registerProcessor=e=>{i=e},e.exports=s,s.default=s,o.registerRoot(s)},1675:(e,t,n)=>{"use strict";let r=n(1019),i=n(4715);class o extends r{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return i.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}e.exports=o,o.default=o,r.registerRule(o)},1062:e=>{"use strict";const t={colon:": ",indent:" ",beforeDecl:"\n",beforeRule:"\n",beforeOpen:" ",beforeClose:"\n",beforeComment:"\n",after:"\n",emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};class n{constructor(e){this.builder=e}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}document(e){this.body(e)}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}comment(e){let t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)}decl(e,t){let n=this.raw(e,"between","colon"),r=e.prop+n+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}atrule(e,t){let n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),e.nodes)this.block(e,n+r);else{let i=(e.raws.between||"")+(t?";":"");this.builder(n+r+i,e)}}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let n=this.raw(e,"semicolon");for(let r=0;r<e.nodes.length;r++){let i=e.nodes[r],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==r||n)}}block(e,t){let n,r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")}raw(e,n,r){let i;if(r||(r=n),n&&(i=e.raws[n],void 0!==i))return i;let o=e.parent;if("before"===r){if(!o||"root"===o.type&&o.first===e)return"";if(o&&"document"===o.type)return""}if(!o)return t[r];let s=e.root();if(s.rawCache||(s.rawCache={}),void 0!==s.rawCache[r])return s.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);{let t="raw"+((a=r)[0].toUpperCase()+a.slice(1));this[t]?i=this[t](s,e):s.walk((e=>{if(i=e.raws[n],void 0!==i)return!1}))}var a;return void 0===i&&(i=t[r]),s.rawCache[r]=i,i}rawSemicolon(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1})),t}rawEmptyBody(e){let t;return e.walk((e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1})),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk((n=>{let r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==n.raws.before){let e=n.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}})),t}rawBeforeComment(e,t){let n;return e.walkComments((e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,t){let n;return e.walkDecls((e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeRule(e){let t;return e.walk((n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return t=n.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeClose(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeOpen(e){let t;return e.walk((e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1})),t}rawColon(e){let t;return e.walkDecls((e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t}beforeAfter(e,t){let n;n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let r=e.parent,i=0;for(;r&&"root"!==r.type;)i+=1,r=r.parent;if(n.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<i;e++)n+=t}return n}rawValue(e,t){let n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n}}e.exports=n,n.default=n},7088:(e,t,n)=>{"use strict";let r=n(1062);function i(e,t){new r(t).stringify(e)}e.exports=i,i.default=i},5513:e=>{"use strict";e.exports.isClean=Symbol("isClean"),e.exports.my=Symbol("my")},3852:e=>{"use strict";const t="'".charCodeAt(0),n='"'.charCodeAt(0),r="\\".charCodeAt(0),i="/".charCodeAt(0),o="\n".charCodeAt(0),s=" ".charCodeAt(0),a="\f".charCodeAt(0),l="\t".charCodeAt(0),c="\r".charCodeAt(0),u="[".charCodeAt(0),p="]".charCodeAt(0),f="(".charCodeAt(0),d=")".charCodeAt(0),h="{".charCodeAt(0),m="}".charCodeAt(0),g=";".charCodeAt(0),b="*".charCodeAt(0),v=":".charCodeAt(0),y="@".charCodeAt(0),w=/[\t\n\f\r "#'()/;[\\\]{}]/g,x=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,O=/.[\n"'(/\\]/,S=/[\da-f]/i;e.exports=function(e,C={}){let k,_,E,T,N,P,A,M,D,I,R=e.css.valueOf(),L=C.ignoreErrors,j=R.length,V=0,F=[],q=[];function B(t){throw e.error("Unclosed "+t,V)}return{back:function(e){q.push(e)},nextToken:function(e){if(q.length)return q.pop();if(V>=j)return;let C=!!e&&e.ignoreUnclosed;switch(k=R.charCodeAt(V),k){case o:case s:case l:case c:case a:_=V;do{_+=1,k=R.charCodeAt(_)}while(k===s||k===o||k===l||k===c||k===a);I=["space",R.slice(V,_)],V=_-1;break;case u:case p:case h:case m:case v:case g:case d:{let e=String.fromCharCode(k);I=[e,e,V];break}case f:if(M=F.length?F.pop()[1]:"",D=R.charCodeAt(V+1),"url"===M&&D!==t&&D!==n&&D!==s&&D!==o&&D!==l&&D!==a&&D!==c){_=V;do{if(P=!1,_=R.indexOf(")",_+1),-1===_){if(L||C){_=V;break}B("bracket")}for(A=_;R.charCodeAt(A-1)===r;)A-=1,P=!P}while(P);I=["brackets",R.slice(V,_+1),V,_],V=_}else _=R.indexOf(")",V+1),T=R.slice(V,_+1),-1===_||O.test(T)?I=["(","(",V]:(I=["brackets",T,V,_],V=_);break;case t:case n:E=k===t?"'":'"',_=V;do{if(P=!1,_=R.indexOf(E,_+1),-1===_){if(L||C){_=V+1;break}B("string")}for(A=_;R.charCodeAt(A-1)===r;)A-=1,P=!P}while(P);I=["string",R.slice(V,_+1),V,_],V=_;break;case y:w.lastIndex=V+1,w.test(R),_=0===w.lastIndex?R.length-1:w.lastIndex-2,I=["at-word",R.slice(V,_+1),V,_],V=_;break;case r:for(_=V,N=!0;R.charCodeAt(_+1)===r;)_+=1,N=!N;if(k=R.charCodeAt(_+1),N&&k!==i&&k!==s&&k!==o&&k!==l&&k!==c&&k!==a&&(_+=1,S.test(R.charAt(_)))){for(;S.test(R.charAt(_+1));)_+=1;R.charCodeAt(_+1)===s&&(_+=1)}I=["word",R.slice(V,_+1),V,_],V=_;break;default:k===i&&R.charCodeAt(V+1)===b?(_=R.indexOf("*/",V+2)+1,0===_&&(L||C?_=R.length:B("comment")),I=["comment",R.slice(V,_+1),V,_],V=_):(x.lastIndex=V+1,x.test(R),_=0===x.lastIndex?R.length-1:x.lastIndex-2,I=["word",R.slice(V,_+1),V,_],F.push(I),V=_)}return V++,I},endOfFile:function(){return 0===q.length&&V>=j},position:function(){return V}}}},2448:e=>{"use strict";let t={};e.exports=function(e){t[e]||(t[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))}},1728:e=>{"use strict";class t{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}e.exports=t,t.default=t},2703:(e,t,n)=>{"use strict";var r=n(414);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,s){if(s!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},5697:(e,t,n)=>{e.exports=n(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5639:(e,t,n)=>{"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(9196),s=l(o),a=l(n(5697));function l(e){return e&&e.__esModule?e:{default:e}}var c={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},u=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],p=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},f=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),d=function(){return f?"_"+Math.random().toString(36).substr(2,12):void 0},h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=function(e){n.input=e,"function"==typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||d(),prevId:e.id},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.id;return n!==t.prevId?{inputId:n||d(),prevId:n}:null}}]),i(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(p(e,this.sizer),this.placeHolderSizer&&p(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return f&&e?s.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce((function(e,t){return null!=e?e:t})),t=r({},this.props.style);t.display||(t.display="inline-block");var n=r({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){u.forEach((function(t){return delete e[t]}))}(i),i.className=this.props.inputClassName,i.id=this.state.inputId,i.style=n,s.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),s.default.createElement("input",r({},i,{ref:this.inputRef})),s.default.createElement("div",{ref:this.sizerRef,style:c},e),this.props.placeholder?s.default.createElement("div",{ref:this.placeHolderSizerRef,style:c},this.props.placeholder):null)}}]),t}(o.Component);h.propTypes={className:a.default.string,defaultValue:a.default.any,extraWidth:a.default.oneOfType([a.default.number,a.default.string]),id:a.default.string,injectStyles:a.default.bool,inputClassName:a.default.string,inputRef:a.default.func,inputStyle:a.default.object,minWidth:a.default.oneOfType([a.default.number,a.default.string]),onAutosize:a.default.func,onChange:a.default.func,placeholder:a.default.string,placeholderIsMinWidth:a.default.bool,style:a.default.object,value:a.default.any},h.defaultProps={minWidth:1,injectStyles:!0},t.Z=h},83:(e,t,n)=>{"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0});function o(e,t,n,r,i,o,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var s={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((function(e){s[e]=new o(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=r(e,2),n=t[0],i=t[1];s[n]=new o(n,1,!1,i,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){s[e]=new o(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){s[e]=new o(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((function(e){s[e]=new o(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){s[e]=new o(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){s[e]=new o(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){s[e]=new o(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){s[e]=new o(e,5,!1,e.toLowerCase(),null,!1,!1)}));var a=/[\-\:]([a-z])/g,l=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((function(e){var t=e.replace(a,l);s[t]=new o(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((function(e){var t=e.replace(a,l);s[t]=new o(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(a,l);s[t]=new o(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){s[e]=new o(e,1,!1,e.toLowerCase(),null,!1,!1)}));s.xlinkHref=new o("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){s[e]=new o(e,1,!1,e.toLowerCase(),null,!0,!0)}));var c=n(8229),u=c.CAMELCASE,p=c.SAME,f=c.possibleStandardNames,d=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),h=Object.keys(f).reduce((function(e,t){var n=f[t];return n===p?e[t]=t:n===u?e[t.toLowerCase()]=t:e[t]=n,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return s.hasOwnProperty(e)?s[e]:null},t.isCustomAttribute=d,t.possibleStandardNames=h},8229:(e,t)=>{t.SAME=0;t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},1036:(e,t,n)=>{const r=n(5106),i=n(3150),{isPlainObject:o}=n(977),s=n(9996),a=n(9430),{parse:l}=n(20),c=["img","audio","video","picture","svg","object","map","iframe","embed"],u=["script","style"];function p(e,t){e&&Object.keys(e).forEach((function(n){t(e[n],n)}))}function f(e,t){return{}.hasOwnProperty.call(e,t)}function d(e,t){const n=[];return p(e,(function(e){t(e)&&n.push(e)})),n}e.exports=m;const h=/^[^\0\t\n\f\r /<=>]+$/;function m(e,t,n){if(null==e)return"";let b="",v="";function y(e,t){const n=this;this.tag=e,this.attribs=t||{},this.tagPosition=b.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(N.length){N[N.length-1].text+=n.text}},this.updateParentNodeMediaChildren=function(){if(N.length&&c.includes(this.tag)){N[N.length-1].mediaChildren.push(this.tag)}}}(t=Object.assign({},m.defaults,t)).parser=Object.assign({},g,t.parser),u.forEach((function(e){t.allowedTags&&t.allowedTags.indexOf(e)>-1&&!t.allowVulnerableTags&&console.warn(`\n\n⚠️ Your \`allowedTags\` option includes, \`${e}\`, which is inherently\nvulnerable to XSS attacks. Please remove it from \`allowedTags\`.\nOr, to disable this warning, add the \`allowVulnerableTags\` option\nand ensure you are accounting for this risk.\n\n`)}));const w=t.nonTextTags||["script","style","textarea","option"];let x,O;t.allowedAttributes&&(x={},O={},p(t.allowedAttributes,(function(e,t){x[t]=[];const n=[];e.forEach((function(e){"string"==typeof e&&e.indexOf("*")>=0?n.push(i(e).replace(/\\\*/g,".*")):x[t].push(e)})),n.length&&(O[t]=new RegExp("^("+n.join("|")+")$"))})));const S={},C={},k={};p(t.allowedClasses,(function(e,t){x&&(f(x,t)||(x[t]=[]),x[t].push("class")),S[t]=[],k[t]=[];const n=[];e.forEach((function(e){"string"==typeof e&&e.indexOf("*")>=0?n.push(i(e).replace(/\\\*/g,".*")):e instanceof RegExp?k[t].push(e):S[t].push(e)})),n.length&&(C[t]=new RegExp("^("+n.join("|")+")$"))}));const _={};let E,T,N,P,A,M,D;p(t.transformTags,(function(e,t){let n;"function"==typeof e?n=e:"string"==typeof e&&(n=m.simpleTransform(e)),"*"===t?E=n:_[t]=n}));let I=!1;L();const R=new r.Parser({onopentag:function(e,n){if(t.enforceHtmlBoundary&&"html"===e&&L(),M)return void D++;const r=new y(e,n);N.push(r);let i=!1;const c=!!r.text;let u;if(f(_,e)&&(u=_[e](e,n),r.attribs=n=u.attribs,void 0!==u.text&&(r.innerText=u.text),e!==u.tagName&&(r.name=e=u.tagName,A[T]=u.tagName)),E&&(u=E(e,n),r.attribs=n=u.attribs,e!==u.tagName&&(r.name=e=u.tagName,A[T]=u.tagName)),(t.allowedTags&&-1===t.allowedTags.indexOf(e)||"recursiveEscape"===t.disallowedTagsMode&&!function(e){for(const t in e)if(f(e,t))return!1;return!0}(P)||null!=t.nestingLimit&&T>=t.nestingLimit)&&(i=!0,P[T]=!0,"discard"===t.disallowedTagsMode&&-1!==w.indexOf(e)&&(M=!0,D=1),P[T]=!0),T++,i){if("discard"===t.disallowedTagsMode)return;v=b,b=""}b+="<"+e,"script"===e&&(t.allowedScriptHostnames||t.allowedScriptDomains)&&(r.innerText=""),(!x||f(x,e)||x["*"])&&p(n,(function(n,i){if(!h.test(i))return void delete r.attribs[i];let c=!1;if(!x||f(x,e)&&-1!==x[e].indexOf(i)||x["*"]&&-1!==x["*"].indexOf(i)||f(O,e)&&O[e].test(i)||O["*"]&&O["*"].test(i))c=!0;else if(x&&x[e])for(const t of x[e])if(o(t)&&t.name&&t.name===i){c=!0;let e="";if(!0===t.multiple){const r=n.split(" ");for(const n of r)-1!==t.values.indexOf(n)&&(""===e?e=n:e+=" "+n)}else t.values.indexOf(n)>=0&&(e=n);n=e}if(c){if(-1!==t.allowedSchemesAppliedToAttributes.indexOf(i)&&V(e,n))return void delete r.attribs[i];if("script"===e&&"src"===i){let e=!0;try{const r=F(n);if(t.allowedScriptHostnames||t.allowedScriptDomains){const n=(t.allowedScriptHostnames||[]).find((function(e){return e===r.url.hostname})),i=(t.allowedScriptDomains||[]).find((function(e){return r.url.hostname===e||r.url.hostname.endsWith(`.${e}`)}));e=n||i}}catch(t){e=!1}if(!e)return void delete r.attribs[i]}if("iframe"===e&&"src"===i){let e=!0;try{const r=F(n);if(r.isRelativeUrl)e=f(t,"allowIframeRelativeUrls")?t.allowIframeRelativeUrls:!t.allowedIframeHostnames&&!t.allowedIframeDomains;else if(t.allowedIframeHostnames||t.allowedIframeDomains){const n=(t.allowedIframeHostnames||[]).find((function(e){return e===r.url.hostname})),i=(t.allowedIframeDomains||[]).find((function(e){return r.url.hostname===e||r.url.hostname.endsWith(`.${e}`)}));e=n||i}}catch(t){e=!1}if(!e)return void delete r.attribs[i]}if("srcset"===i)try{let e=a(n);if(e.forEach((function(e){V("srcset",e.url)&&(e.evil=!0)})),e=d(e,(function(e){return!e.evil})),!e.length)return void delete r.attribs[i];n=d(e,(function(e){return!e.evil})).map((function(e){if(!e.url)throw new Error("URL missing");return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")})).join(", "),r.attribs[i]=n}catch(e){return void delete r.attribs[i]}if("class"===i){const t=S[e],o=S["*"],a=C[e],l=k[e],c=[a,C["*"]].concat(l).filter((function(e){return e}));if(!(n=q(n,t&&o?s(t,o):t||o,c)).length)return void delete r.attribs[i]}if("style"===i)try{const o=function(e,t){if(!t)return e;const n=e.nodes[0];let r;r=t[n.selector]&&t["*"]?s(t[n.selector],t["*"]):t[n.selector]||t["*"];r&&(e.nodes[0].nodes=n.nodes.reduce(function(e){return function(t,n){if(f(e,n.prop)){e[n.prop].some((function(e){return e.test(n.value)}))&&t.push(n)}return t}}(r),[]));return e}(l(e+" {"+n+"}"),t.allowedStyles);if(0===(n=function(e){return e.nodes[0].nodes.reduce((function(e,t){return e.push(`${t.prop}:${t.value}${t.important?" !important":""}`),e}),[]).join(";")}(o)).length)return void delete r.attribs[i]}catch(e){return void delete r.attribs[i]}b+=" "+i,n&&n.length&&(b+='="'+j(n,!0)+'"')}else delete r.attribs[i]})),-1!==t.selfClosing.indexOf(e)?b+=" />":(b+=">",!r.innerText||c||t.textFilter||(b+=j(r.innerText),I=!0)),i&&(b=v+j(b),v="")},ontext:function(e){if(M)return;const n=N[N.length-1];let r;if(n&&(r=n.tag,e=void 0!==n.innerText?n.innerText:e),"discard"!==t.disallowedTagsMode||"script"!==r&&"style"!==r){const n=j(e,!1);t.textFilter&&!I?b+=t.textFilter(n,r):I||(b+=n)}else b+=e;if(N.length){N[N.length-1].text+=e}},onclosetag:function(e){if(M){if(D--,D)return;M=!1}const n=N.pop();if(!n)return;M=!!t.enforceHtmlBoundary&&"html"===e,T--;const r=P[T];if(r){if(delete P[T],"discard"===t.disallowedTagsMode)return void n.updateParentNodeText();v=b,b=""}A[T]&&(e=A[T],delete A[T]),t.exclusiveFilter&&t.exclusiveFilter(n)?b=b.substr(0,n.tagPosition):(n.updateParentNodeMediaChildren(),n.updateParentNodeText(),-1===t.selfClosing.indexOf(e)?(b+="</"+e+">",r&&(b=v+j(b),v=""),I=!1):r&&(b=v,v=""))}},t.parser);return R.write(e),R.end(),b;function L(){b="",T=0,N=[],P={},A={},M=!1,D=0}function j(e,n){return"string"!=typeof e&&(e+=""),t.parser.decodeEntities&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),n&&(e=e.replace(/"/g,"""))),e=e.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(/</g,"<").replace(/>/g,">"),n&&(e=e.replace(/"/g,""")),e}function V(e,n){for(n=n.replace(/[\x00-\x20]+/g,"");;){const e=n.indexOf("\x3c!--");if(-1===e)break;const t=n.indexOf("--\x3e",e+4);if(-1===t)break;n=n.substring(0,e)+n.substring(t+3)}const r=n.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!r)return!!n.match(/^[/\\]{2}/)&&!t.allowProtocolRelative;const i=r[1].toLowerCase();return f(t.allowedSchemesByTag,e)?-1===t.allowedSchemesByTag[e].indexOf(i):!t.allowedSchemes||-1===t.allowedSchemes.indexOf(i)}function F(e){if((e=e.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//")).startsWith("relative:"))throw new Error("relative: exploit attempt");let t="relative://relative-site";for(let e=0;e<100;e++)t+=`/${e}`;const n=new URL(e,t);return{isRelativeUrl:n&&"relative-site"===n.hostname&&"relative:"===n.protocol,url:n}}function q(e,t,n){return t?(e=e.split(/\s+/)).filter((function(e){return-1!==t.indexOf(e)||n.some((function(t){return t.test(e)}))})).join(" "):e}}const g={decodeEntities:!0};m.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1},m.simpleTransform=function(e,t,n){return n=void 0===n||n,t=t||{},function(r,i){let o;if(n)for(o in t)i[o]=t[o];else i=t;return{tagName:e,attribs:i}}}},2734:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attributeNames=t.elementNames=void 0,t.elementNames=new Map([["altglyph","altGlyph"],["altglyphdef","altGlyphDef"],["altglyphitem","altGlyphItem"],["animatecolor","animateColor"],["animatemotion","animateMotion"],["animatetransform","animateTransform"],["clippath","clipPath"],["feblend","feBlend"],["fecolormatrix","feColorMatrix"],["fecomponenttransfer","feComponentTransfer"],["fecomposite","feComposite"],["feconvolvematrix","feConvolveMatrix"],["fediffuselighting","feDiffuseLighting"],["fedisplacementmap","feDisplacementMap"],["fedistantlight","feDistantLight"],["fedropshadow","feDropShadow"],["feflood","feFlood"],["fefunca","feFuncA"],["fefuncb","feFuncB"],["fefuncg","feFuncG"],["fefuncr","feFuncR"],["fegaussianblur","feGaussianBlur"],["feimage","feImage"],["femerge","feMerge"],["femergenode","feMergeNode"],["femorphology","feMorphology"],["feoffset","feOffset"],["fepointlight","fePointLight"],["fespecularlighting","feSpecularLighting"],["fespotlight","feSpotLight"],["fetile","feTile"],["feturbulence","feTurbulence"],["foreignobject","foreignObject"],["glyphref","glyphRef"],["lineargradient","linearGradient"],["radialgradient","radialGradient"],["textpath","textPath"]]),t.attributeNames=new Map([["definitionurl","definitionURL"],["attributename","attributeName"],["attributetype","attributeType"],["basefrequency","baseFrequency"],["baseprofile","baseProfile"],["calcmode","calcMode"],["clippathunits","clipPathUnits"],["diffuseconstant","diffuseConstant"],["edgemode","edgeMode"],["filterunits","filterUnits"],["glyphref","glyphRef"],["gradienttransform","gradientTransform"],["gradientunits","gradientUnits"],["kernelmatrix","kernelMatrix"],["kernelunitlength","kernelUnitLength"],["keypoints","keyPoints"],["keysplines","keySplines"],["keytimes","keyTimes"],["lengthadjust","lengthAdjust"],["limitingconeangle","limitingConeAngle"],["markerheight","markerHeight"],["markerunits","markerUnits"],["markerwidth","markerWidth"],["maskcontentunits","maskContentUnits"],["maskunits","maskUnits"],["numoctaves","numOctaves"],["pathlength","pathLength"],["patterncontentunits","patternContentUnits"],["patterntransform","patternTransform"],["patternunits","patternUnits"],["pointsatx","pointsAtX"],["pointsaty","pointsAtY"],["pointsatz","pointsAtZ"],["preservealpha","preserveAlpha"],["preserveaspectratio","preserveAspectRatio"],["primitiveunits","primitiveUnits"],["refx","refX"],["refy","refY"],["repeatcount","repeatCount"],["repeatdur","repeatDur"],["requiredextensions","requiredExtensions"],["requiredfeatures","requiredFeatures"],["specularconstant","specularConstant"],["specularexponent","specularExponent"],["spreadmethod","spreadMethod"],["startoffset","startOffset"],["stddeviation","stdDeviation"],["stitchtiles","stitchTiles"],["surfacescale","surfaceScale"],["systemlanguage","systemLanguage"],["tablevalues","tableValues"],["targetx","targetX"],["targety","targetY"],["textlength","textLength"],["viewbox","viewBox"],["viewtarget","viewTarget"],["xchannelselector","xChannelSelector"],["ychannelselector","yChannelSelector"],["zoomandpan","zoomAndPan"]])},8427:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var a=s(n(9960)),l=n(7772),c=n(2734),u=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);var p=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function f(e,t){void 0===t&&(t={});for(var n=("length"in e?e:[e]),r="",i=0;i<n.length;i++)r+=d(n[i],t);return r}function d(e,t){switch(e.type){case a.Root:return f(e.children,t);case a.Directive:case a.Doctype:return"<"+e.data+">";case a.Comment:return function(e){return"\x3c!--"+e.data+"--\x3e"}(e);case a.CDATA:return function(e){return"<![CDATA["+e.children[0].data+"]]>"}(e);case a.Script:case a.Style:case a.Tag:return function(e,t){var n;"foreign"===t.xmlMode&&(e.name=null!==(n=c.elementNames.get(e.name))&&void 0!==n?n:e.name,e.parent&&h.has(e.parent.name)&&(t=r(r({},t),{xmlMode:!1})));!t.xmlMode&&m.has(e.name)&&(t=r(r({},t),{xmlMode:"foreign"}));var i="<"+e.name,o=function(e,t){if(e)return Object.keys(e).map((function(n){var r,i,o=null!==(r=e[n])&&void 0!==r?r:"";return"foreign"===t.xmlMode&&(n=null!==(i=c.attributeNames.get(n))&&void 0!==i?i:n),t.emptyAttrs||t.xmlMode||""!==o?n+'="'+(!1!==t.decodeEntities?l.encodeXML(o):o.replace(/"/g,"""))+'"':n})).join(" ")}(e.attribs,t);o&&(i+=" "+o);0===e.children.length&&(t.xmlMode?!1!==t.selfClosingTags:t.selfClosingTags&&p.has(e.name))?(t.xmlMode||(i+=" "),i+="/>"):(i+=">",e.children.length>0&&(i+=f(e.children,t)),!t.xmlMode&&p.has(e.name)||(i+="</"+e.name+">"));return i}(e,t);case a.Text:return function(e,t){var n=e.data||"";!1===t.decodeEntities||!t.xmlMode&&e.parent&&u.has(e.parent.name)||(n=l.encodeXML(n));return n}(e,t)}}t.default=f;var h=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),m=new Set(["svg","math"])},1142:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var o=n(9960),s=n(6218);i(n(6218),t);var a=/\s+/g,l={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},c=function(){function e(e,t,n){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=l),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:l,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?o.ElementType.Tag:void 0,r=new s.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.options.normalizeWhitespace,n=this.lastNode;if(n&&n.type===o.ElementType.Text)t?n.data=(n.data+e).replace(a," "):n.data+=e,this.options.withEndIndices&&(n.endIndex=this.parser.endIndex);else{t&&(e=e.replace(a," "));var r=new s.Text(e);this.addNode(r),this.lastNode=r}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===o.ElementType.Comment)this.lastNode.data+=e;else{var t=new s.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new s.Text(""),t=new s.NodeWithChildren(o.ElementType.CDATA,[e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new s.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=c,t.default=c},6218:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var s=n(9960),a=new Map([[s.ElementType.Tag,1],[s.ElementType.Script,1],[s.ElementType.Style,1],[s.ElementType.Directive,1],[s.ElementType.Text,3],[s.ElementType.CDATA,4],[s.ElementType.Comment,8],[s.ElementType.Root,9]]),l=function(){function e(e){this.type=e,this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"nodeType",{get:function(){var e;return null!==(e=a.get(this.type))&&void 0!==e?e:1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),O(this,e)},e}();t.Node=l;var c=function(e){function t(t,n){var r=e.call(this,t)||this;return r.data=n,r}return i(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(l);t.DataNode=c;var u=function(e){function t(t){return e.call(this,s.ElementType.Text,t)||this}return i(t,e),t}(c);t.Text=u;var p=function(e){function t(t){return e.call(this,s.ElementType.Comment,t)||this}return i(t,e),t}(c);t.Comment=p;var f=function(e){function t(t,n){var r=e.call(this,s.ElementType.Directive,n)||this;return r.name=t,r}return i(t,e),t}(c);t.ProcessingInstruction=f;var d=function(e){function t(t,n){var r=e.call(this,t)||this;return r.children=n,r}return i(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(l);t.NodeWithChildren=d;var h=function(e){function t(t){return e.call(this,s.ElementType.Root,t)||this}return i(t,e),t}(d);t.Document=h;var m=function(e){function t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?s.ElementType.Script:"style"===t?s.ElementType.Style:s.ElementType.Tag);var o=e.call(this,i,r)||this;return o.name=t,o.attribs=n,o}return i(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(d);function g(e){return(0,s.isTag)(e)}function b(e){return e.type===s.ElementType.CDATA}function v(e){return e.type===s.ElementType.Text}function y(e){return e.type===s.ElementType.Comment}function w(e){return e.type===s.ElementType.Directive}function x(e){return e.type===s.ElementType.Root}function O(e,t){var n;if(void 0===t&&(t=!1),v(e))n=new u(e.data);else if(y(e))n=new p(e.data);else if(g(e)){var r=t?S(e.children):[],i=new m(e.name,o({},e.attribs),r);r.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),n=i}else if(b(e)){r=t?S(e.children):[];var a=new d(s.ElementType.CDATA,r);r.forEach((function(e){return e.parent=a})),n=a}else if(x(e)){r=t?S(e.children):[];var l=new h(r);r.forEach((function(e){return e.parent=l})),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),n=l}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new f(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),n=c}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function S(e){for(var t=e.map((function(e){return O(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=m,t.isTag=g,t.isCDATA=b,t.isText=v,t.isComment=y,t.isDirective=w,t.isDocument=x,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=O},2903:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeed=void 0;var r=n(5283),i=n(9473);t.getFeed=function(e){var t=l(p,e);return t?"feed"===t.name?function(e){var t,n=e.children,r={type:"atom",items:(0,i.getElementsByTagName)("entry",n).map((function(e){var t,n=e.children,r={media:a(n)};u(r,"id","id",n),u(r,"title","title",n);var i=null===(t=l("link",n))||void 0===t?void 0:t.attribs.href;i&&(r.link=i);var o=c("summary",n)||c("content",n);o&&(r.description=o);var s=c("updated",n);return s&&(r.pubDate=new Date(s)),r}))};u(r,"id","id",n),u(r,"title","title",n);var o=null===(t=l("link",n))||void 0===t?void 0:t.attribs.href;o&&(r.link=o);u(r,"description","subtitle",n);var s=c("updated",n);s&&(r.updated=new Date(s));return u(r,"author","email",n,!0),r}(t):function(e){var t,n,r=null!==(n=null===(t=l("channel",e.children))||void 0===t?void 0:t.children)&&void 0!==n?n:[],o={type:e.name.substr(0,3),id:"",items:(0,i.getElementsByTagName)("item",e.children).map((function(e){var t=e.children,n={media:a(t)};u(n,"id","guid",t),u(n,"title","title",t),u(n,"link","link",t),u(n,"description","description",t);var r=c("pubDate",t);return r&&(n.pubDate=new Date(r)),n}))};u(o,"title","title",r),u(o,"link","link",r),u(o,"description","description",r);var s=c("lastBuildDate",r);s&&(o.updated=new Date(s));return u(o,"author","managingEditor",r,!0),o}(t):null};var o=["url","type","lang"],s=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function a(e){return(0,i.getElementsByTagName)("media:content",e).map((function(e){for(var t=e.attribs,n={medium:t.medium,isDefault:!!t.isDefault},r=0,i=o;r<i.length;r++){t[c=i[r]]&&(n[c]=t[c])}for(var a=0,l=s;a<l.length;a++){var c;t[c=l[a]]&&(n[c]=parseInt(t[c],10))}return t.expression&&(n.expression=t.expression),n}))}function l(e,t){return(0,i.getElementsByTagName)(e,t,!0,1)[0]}function c(e,t,n){return void 0===n&&(n=!1),(0,r.textContent)((0,i.getElementsByTagName)(e,t,n,1)).trim()}function u(e,t,n,r,i){void 0===i&&(i=!1);var o=c(n,r,i);o&&(e[t]=o)}function p(e){return"rss"===e||"feed"===e||"rdf:RDF"===e}},7701:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uniqueSort=t.compareDocumentPosition=t.removeSubsets=void 0;var r=n(1142);function i(e,t){var n=[],i=[];if(e===t)return 0;for(var o=(0,r.hasChildren)(e)?e:e.parent;o;)n.unshift(o),o=o.parent;for(o=(0,r.hasChildren)(t)?t:t.parent;o;)i.unshift(o),o=o.parent;for(var s=Math.min(n.length,i.length),a=0;a<s&&n[a]===i[a];)a++;if(0===a)return 1;var l=n[a-1],c=l.children,u=n[a],p=i[a];return c.indexOf(u)>c.indexOf(p)?l===t?20:4:l===e?10:2}t.removeSubsets=function(e){for(var t=e.length;--t>=0;){var n=e[t];if(t>0&&e.lastIndexOf(n,t-1)>=0)e.splice(t,1);else for(var r=n.parent;r;r=r.parent)if(e.includes(r)){e.splice(t,1);break}}return e},t.compareDocumentPosition=i,t.uniqueSort=function(e){return(e=e.filter((function(e,t,n){return!n.includes(e,t+1)}))).sort((function(e,t){var n=i(e,t);return 2&n?-1:4&n?1:0})),e}},7241:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,i(n(5283),t),i(n(7972),t),i(n(4541),t),i(n(2764),t),i(n(9473),t),i(n(7701),t),i(n(2903),t);var o=n(1142);Object.defineProperty(t,"isTag",{enumerable:!0,get:function(){return o.isTag}}),Object.defineProperty(t,"isCDATA",{enumerable:!0,get:function(){return o.isCDATA}}),Object.defineProperty(t,"isText",{enumerable:!0,get:function(){return o.isText}}),Object.defineProperty(t,"isComment",{enumerable:!0,get:function(){return o.isComment}}),Object.defineProperty(t,"isDocument",{enumerable:!0,get:function(){return o.isDocument}}),Object.defineProperty(t,"hasChildren",{enumerable:!0,get:function(){return o.hasChildren}})},9473:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getElementsByTagType=t.getElementsByTagName=t.getElementById=t.getElements=t.testElement=void 0;var r=n(1142),i=n(2764),o={tag_name:function(e){return"function"==typeof e?function(t){return(0,r.isTag)(t)&&e(t.name)}:"*"===e?r.isTag:function(t){return(0,r.isTag)(t)&&t.name===e}},tag_type:function(e){return"function"==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return"function"==typeof e?function(t){return(0,r.isText)(t)&&e(t.data)}:function(t){return(0,r.isText)(t)&&t.data===e}}};function s(e,t){return"function"==typeof t?function(n){return(0,r.isTag)(n)&&t(n.attribs[e])}:function(n){return(0,r.isTag)(n)&&n.attribs[e]===t}}function a(e,t){return function(n){return e(n)||t(n)}}function l(e){var t=Object.keys(e).map((function(t){var n=e[t];return Object.prototype.hasOwnProperty.call(o,t)?o[t](n):s(t,n)}));return 0===t.length?null:t.reduce(a)}t.testElement=function(e,t){var n=l(e);return!n||n(t)},t.getElements=function(e,t,n,r){void 0===r&&(r=1/0);var o=l(e);return o?(0,i.filter)(o,t,n,r):[]},t.getElementById=function(e,t,n){return void 0===n&&(n=!0),Array.isArray(t)||(t=[t]),(0,i.findOne)(s("id",e),t,n)},t.getElementsByTagName=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),(0,i.filter)(o.tag_name(e),t,n,r)},t.getElementsByTagType=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),(0,i.filter)(o.tag_type(e),t,n,r)}},4541:(e,t)=>{"use strict";function n(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children;t.splice(t.lastIndexOf(e),1)}}Object.defineProperty(t,"__esModule",{value:!0}),t.prepend=t.prependChild=t.append=t.appendChild=t.replaceElement=t.removeElement=void 0,t.removeElement=n,t.replaceElement=function(e,t){var n=t.prev=e.prev;n&&(n.next=t);var r=t.next=e.next;r&&(r.prev=t);var i=t.parent=e.parent;if(i){var o=i.children;o[o.lastIndexOf(e)]=t}},t.appendChild=function(e,t){if(n(t),t.next=null,t.parent=e,e.children.push(t)>1){var r=e.children[e.children.length-2];r.next=t,t.prev=r}else t.prev=null},t.append=function(e,t){n(t);var r=e.parent,i=e.next;if(t.next=i,t.prev=e,e.next=t,t.parent=r,i){if(i.prev=t,r){var o=r.children;o.splice(o.lastIndexOf(i),0,t)}}else r&&r.children.push(t)},t.prependChild=function(e,t){if(n(t),t.parent=e,t.prev=null,1!==e.children.unshift(t)){var r=e.children[1];r.prev=t,t.next=r}else t.next=null},t.prepend=function(e,t){n(t);var r=e.parent;if(r){var i=r.children;i.splice(i.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=r,t.prev=e.prev,t.next=e,e.prev=t}},2764:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findAll=t.existsOne=t.findOne=t.findOneChild=t.find=t.filter=void 0;var r=n(1142);function i(e,t,n,o){for(var s=[],a=0,l=t;a<l.length;a++){var c=l[a];if(e(c)&&(s.push(c),--o<=0))break;if(n&&(0,r.hasChildren)(c)&&c.children.length>0){var u=i(e,c.children,n,o);if(s.push.apply(s,u),(o-=u.length)<=0)break}}return s}t.filter=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),Array.isArray(t)||(t=[t]),i(e,t,n,r)},t.find=i,t.findOneChild=function(e,t){return t.find(e)},t.findOne=function e(t,n,i){void 0===i&&(i=!0);for(var o=null,s=0;s<n.length&&!o;s++){var a=n[s];(0,r.isTag)(a)&&(t(a)?o=a:i&&a.children.length>0&&(o=e(t,a.children)))}return o},t.existsOne=function e(t,n){return n.some((function(n){return(0,r.isTag)(n)&&(t(n)||n.children.length>0&&e(t,n.children))}))},t.findAll=function(e,t){for(var n,i,o=[],s=t.filter(r.isTag);i=s.shift();){var a=null===(n=i.children)||void 0===n?void 0:n.filter(r.isTag);a&&a.length>0&&s.unshift.apply(s,a),e(i)&&o.push(i)}return o}},5283:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.innerText=t.textContent=t.getText=t.getInnerHTML=t.getOuterHTML=void 0;var i=n(1142),o=r(n(8427)),s=n(9960);function a(e,t){return(0,o.default)(e,t)}t.getOuterHTML=a,t.getInnerHTML=function(e,t){return(0,i.hasChildren)(e)?e.children.map((function(e){return a(e,t)})).join(""):""},t.getText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.isTag)(t)?"br"===t.name?"\n":e(t.children):(0,i.isCDATA)(t)?e(t.children):(0,i.isText)(t)?t.data:""},t.textContent=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.hasChildren)(t)&&!(0,i.isComment)(t)?e(t.children):(0,i.isText)(t)?t.data:""},t.innerText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.hasChildren)(t)&&(t.type===s.ElementType.Tag||(0,i.isCDATA)(t))?e(t.children):(0,i.isText)(t)?t.data:""}},7972:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prevElementSibling=t.nextElementSibling=t.getName=t.hasAttrib=t.getAttributeValue=t.getSiblings=t.getParent=t.getChildren=void 0;var r=n(1142),i=[];function o(e){var t;return null!==(t=e.children)&&void 0!==t?t:i}function s(e){return e.parent||null}t.getChildren=o,t.getParent=s,t.getSiblings=function(e){var t=s(e);if(null!=t)return o(t);for(var n=[e],r=e.prev,i=e.next;null!=r;)n.unshift(r),r=r.prev;for(;null!=i;)n.push(i),i=i.next;return n},t.getAttributeValue=function(e,t){var n;return null===(n=e.attribs)||void 0===n?void 0:n[t]},t.hasAttrib=function(e,t){return null!=e.attribs&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&null!=e.attribs[t]},t.getName=function(e){return e.name},t.nextElementSibling=function(e){for(var t=e.next;null!==t&&!(0,r.isTag)(t);)t=t.next;return t},t.prevElementSibling=function(e){for(var t=e.prev;null!==t&&!(0,r.isTag)(t);)t=t.prev;return t}},722:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeHTML=t.decodeHTMLStrict=t.decodeXML=void 0;var i=r(n(4168)),o=r(n(7272)),s=r(n(729)),a=r(n(2913)),l=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;function c(e){var t=p(e);return function(e){return String(e).replace(l,t)}}t.decodeXML=c(s.default),t.decodeHTMLStrict=c(i.default);var u=function(e,t){return e<t?1:-1};function p(e){return function(t){if("#"===t.charAt(1)){var n=t.charAt(2);return"X"===n||"x"===n?a.default(parseInt(t.substr(3),16)):a.default(parseInt(t.substr(2),10))}return e[t.slice(1,-1)]||t}}t.decodeHTML=function(){for(var e=Object.keys(o.default).sort(u),t=Object.keys(i.default).sort(u),n=0,r=0;n<t.length;n++)e[r]===t[n]?(t[n]+=";?",r++):t[n]+=";";var s=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),a=p(i.default);function l(e){return";"!==e.substr(-1)&&(e+=";"),a(e)}return function(e){return String(e).replace(s,l)}}()},2913:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(7607)),o=String.fromCodePoint||function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)};t.default=function(e){return e>=55296&&e<=57343||e>1114111?"�":(e in i.default&&(e=i.default[e]),o(e))}},571:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=void 0;var i=u(r(n(729)).default),o=p(i);t.encodeXML=g(i);var s,a,l=u(r(n(4168)).default),c=p(l);function u(e){return Object.keys(e).sort().reduce((function(t,n){return t[e[n]]="&"+n+";",t}),{})}function p(e){for(var t=[],n=[],r=0,i=Object.keys(e);r<i.length;r++){var o=i[r];1===o.length?t.push("\\"+o):n.push(o)}t.sort();for(var s=0;s<t.length-1;s++){for(var a=s;a<t.length-1&&t[a].charCodeAt(1)+1===t[a+1].charCodeAt(1);)a+=1;var l=1+a-s;l<3||t.splice(s,l,t[s]+"-"+t[a])}return n.unshift("["+t.join("")+"]"),new RegExp(n.join("|"),"g")}t.encodeHTML=(s=l,a=c,function(e){return e.replace(a,(function(e){return s[e]})).replace(f,h)}),t.encodeNonAsciiHTML=g(l);var f=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,d=null!=String.prototype.codePointAt?function(e){return e.codePointAt(0)}:function(e){return 1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536};function h(e){return"&#x"+(e.length>1?d(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}var m=new RegExp(o.source+"|"+f.source,"g");function g(e){return function(t){return t.replace(m,(function(t){return e[t]||h(t)}))}}t.escape=function(e){return e.replace(m,h)},t.escapeUTF8=function(e){return e.replace(o,h)}},7772:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.encodeHTML5=t.encodeHTML4=t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=t.encode=t.decodeStrict=t.decode=void 0;var r=n(722),i=n(571);t.decode=function(e,t){return(!t||t<=0?r.decodeXML:r.decodeHTML)(e)},t.decodeStrict=function(e,t){return(!t||t<=0?r.decodeXML:r.decodeHTMLStrict)(e)},t.encode=function(e,t){return(!t||t<=0?i.encodeXML:i.encodeHTML)(e)};var o=n(571);Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return o.encodeXML}}),Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return o.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return o.encodeNonAsciiHTML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return o.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return o.escapeUTF8}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return o.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return o.encodeHTML}});var s=n(722);Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return s.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return s.decodeXML}})},7613:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.parseFeed=t.FeedHandler=void 0;var c,u,p=l(n(1142)),f=a(n(7241)),d=n(6666);!function(e){e[e.image=0]="image",e[e.audio=1]="audio",e[e.video=2]="video",e[e.document=3]="document",e[e.executable=4]="executable"}(c||(c={})),function(e){e[e.sample=0]="sample",e[e.full=1]="full",e[e.nonstop=2]="nonstop"}(u||(u={}));var h=function(e){function t(t,n){return"object"==typeof t&&(n=t=void 0),e.call(this,t,n)||this}return i(t,e),t.prototype.onend=function(){var e,t,n=b(x,this.dom);if(n){var r={};if("feed"===n.name){var i=n.children;r.type="atom",w(r,"id","id",i),w(r,"title","title",i);var o=y("href",b("link",i));o&&(r.link=o),w(r,"description","subtitle",i),(s=v("updated",i))&&(r.updated=new Date(s)),w(r,"author","email",i,!0),r.items=g("entry",i).map((function(e){var t={},n=e.children;w(t,"id","id",n),w(t,"title","title",n);var r=y("href",b("link",n));r&&(t.link=r);var i=v("summary",n)||v("content",n);i&&(t.description=i);var o=v("updated",n);return o&&(t.pubDate=new Date(o)),t.media=m(n),t}))}else{var s;i=null!==(t=null===(e=b("channel",n.children))||void 0===e?void 0:e.children)&&void 0!==t?t:[];r.type=n.name.substr(0,3),r.id="",w(r,"title","title",i),w(r,"link","link",i),w(r,"description","description",i),(s=v("lastBuildDate",i))&&(r.updated=new Date(s)),w(r,"author","managingEditor",i,!0),r.items=g("item",n.children).map((function(e){var t={},n=e.children;w(t,"id","guid",n),w(t,"title","title",n),w(t,"link","link",n),w(t,"description","description",n);var r=v("pubDate",n);return r&&(t.pubDate=new Date(r)),t.media=m(n),t}))}this.feed=r,this.handleCallback(null)}else this.handleCallback(new Error("couldn't find root of feed"))},t}(p.default);function m(e){return g("media:content",e).map((function(e){var t={medium:e.attribs.medium,isDefault:!!e.attribs.isDefault};return e.attribs.url&&(t.url=e.attribs.url),e.attribs.fileSize&&(t.fileSize=parseInt(e.attribs.fileSize,10)),e.attribs.type&&(t.type=e.attribs.type),e.attribs.expression&&(t.expression=e.attribs.expression),e.attribs.bitrate&&(t.bitrate=parseInt(e.attribs.bitrate,10)),e.attribs.framerate&&(t.framerate=parseInt(e.attribs.framerate,10)),e.attribs.samplingrate&&(t.samplingrate=parseInt(e.attribs.samplingrate,10)),e.attribs.channels&&(t.channels=parseInt(e.attribs.channels,10)),e.attribs.duration&&(t.duration=parseInt(e.attribs.duration,10)),e.attribs.height&&(t.height=parseInt(e.attribs.height,10)),e.attribs.width&&(t.width=parseInt(e.attribs.width,10)),e.attribs.lang&&(t.lang=e.attribs.lang),t}))}function g(e,t){return f.getElementsByTagName(e,t,!0)}function b(e,t){return f.getElementsByTagName(e,t,!0,1)[0]}function v(e,t,n){return void 0===n&&(n=!1),f.getText(f.getElementsByTagName(e,t,n,1)).trim()}function y(e,t){return t?t.attribs[e]:null}function w(e,t,n,r,i){void 0===i&&(i=!1);var o=v(n,r,i);o&&(e[t]=o)}function x(e){return"rss"===e||"feed"===e||"rdf:RDF"===e}t.FeedHandler=h,t.parseFeed=function(e,t){void 0===t&&(t={xmlMode:!0});var n=new h(t);return new d.Parser(n,t).end(e),n.feed}},6666:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0;var i=r(n(34)),o=new Set(["input","option","optgroup","select","button","datalist","textarea"]),s=new Set(["p"]),a={tr:new Set(["tr","th","td"]),th:new Set(["th"]),td:new Set(["thead","th","td"]),body:new Set(["head","link","script"]),li:new Set(["li"]),p:s,h1:s,h2:s,h3:s,h4:s,h5:s,h6:s,select:o,input:o,output:o,button:o,datalist:o,textarea:o,option:new Set(["option"]),optgroup:new Set(["optgroup","option"]),dd:new Set(["dt","dd"]),dt:new Set(["dt","dd"]),address:s,article:s,aside:s,blockquote:s,details:s,div:s,dl:s,fieldset:s,figcaption:s,figure:s,footer:s,form:s,header:s,hr:s,main:s,nav:s,ol:s,pre:s,section:s,table:s,ul:s,rt:new Set(["rt","rp"]),rp:new Set(["rt","rp"]),tbody:new Set(["thead","tbody"]),tfoot:new Set(["thead","tbody"])},l=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),c=new Set(["math","svg"]),u=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),p=/\s|\//,f=function(){function e(e,t){var n,r,o,s,a;void 0===t&&(t={}),this.startIndex=0,this.endIndex=null,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.options=t,this.cbs=null!=e?e:{},this.lowerCaseTagNames=null!==(n=t.lowerCaseTags)&&void 0!==n?n:!t.xmlMode,this.lowerCaseAttributeNames=null!==(r=t.lowerCaseAttributeNames)&&void 0!==r?r:!t.xmlMode,this.tokenizer=new(null!==(o=t.Tokenizer)&&void 0!==o?o:i.default)(this.options,this),null===(a=(s=this.cbs).onparserinit)||void 0===a||a.call(s,this)}return e.prototype.updatePosition=function(e){null===this.endIndex?this.tokenizer.sectionStart<=e?this.startIndex=0:this.startIndex=this.tokenizer.sectionStart-e:this.startIndex=this.endIndex+1,this.endIndex=this.tokenizer.getAbsoluteIndex()},e.prototype.ontext=function(e){var t,n;this.updatePosition(1),this.endIndex--,null===(n=(t=this.cbs).ontext)||void 0===n||n.call(t,e)},e.prototype.onopentagname=function(e){var t,n;if(this.lowerCaseTagNames&&(e=e.toLowerCase()),this.tagname=e,!this.options.xmlMode&&Object.prototype.hasOwnProperty.call(a,e))for(var r=void 0;this.stack.length>0&&a[e].has(r=this.stack[this.stack.length-1]);)this.onclosetag(r);!this.options.xmlMode&&l.has(e)||(this.stack.push(e),c.has(e)?this.foreignContext.push(!0):u.has(e)&&this.foreignContext.push(!1)),null===(n=(t=this.cbs).onopentagname)||void 0===n||n.call(t,e),this.cbs.onopentag&&(this.attribs={})},e.prototype.onopentagend=function(){var e,t;this.updatePosition(1),this.attribs&&(null===(t=(e=this.cbs).onopentag)||void 0===t||t.call(e,this.tagname,this.attribs),this.attribs=null),!this.options.xmlMode&&this.cbs.onclosetag&&l.has(this.tagname)&&this.cbs.onclosetag(this.tagname),this.tagname=""},e.prototype.onclosetag=function(e){if(this.updatePosition(1),this.lowerCaseTagNames&&(e=e.toLowerCase()),(c.has(e)||u.has(e))&&this.foreignContext.pop(),!this.stack.length||!this.options.xmlMode&&l.has(e))this.options.xmlMode||"br"!==e&&"p"!==e||(this.onopentagname(e),this.closeCurrentTag());else{var t=this.stack.lastIndexOf(e);if(-1!==t)if(this.cbs.onclosetag)for(t=this.stack.length-t;t--;)this.cbs.onclosetag(this.stack.pop());else this.stack.length=t;else"p"!==e||this.options.xmlMode||(this.onopentagname(e),this.closeCurrentTag())}},e.prototype.onselfclosingtag=function(){this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?this.closeCurrentTag():this.onopentagend()},e.prototype.closeCurrentTag=function(){var e,t,n=this.tagname;this.onopentagend(),this.stack[this.stack.length-1]===n&&(null===(t=(e=this.cbs).onclosetag)||void 0===t||t.call(e,n),this.stack.pop())},e.prototype.onattribname=function(e){this.lowerCaseAttributeNames&&(e=e.toLowerCase()),this.attribname=e},e.prototype.onattribdata=function(e){this.attribvalue+=e},e.prototype.onattribend=function(e){var t,n;null===(n=(t=this.cbs).onattribute)||void 0===n||n.call(t,this.attribname,this.attribvalue,e),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribname="",this.attribvalue=""},e.prototype.getInstructionName=function(e){var t=e.search(p),n=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},e.prototype.ondeclaration=function(e){if(this.cbs.onprocessinginstruction){var t=this.getInstructionName(e);this.cbs.onprocessinginstruction("!"+t,"!"+e)}},e.prototype.onprocessinginstruction=function(e){if(this.cbs.onprocessinginstruction){var t=this.getInstructionName(e);this.cbs.onprocessinginstruction("?"+t,"?"+e)}},e.prototype.oncomment=function(e){var t,n,r,i;this.updatePosition(4),null===(n=(t=this.cbs).oncomment)||void 0===n||n.call(t,e),null===(i=(r=this.cbs).oncommentend)||void 0===i||i.call(r)},e.prototype.oncdata=function(e){var t,n,r,i,o,s;this.updatePosition(1),this.options.xmlMode||this.options.recognizeCDATA?(null===(n=(t=this.cbs).oncdatastart)||void 0===n||n.call(t),null===(i=(r=this.cbs).ontext)||void 0===i||i.call(r,e),null===(s=(o=this.cbs).oncdataend)||void 0===s||s.call(o)):this.oncomment("[CDATA["+e+"]]")},e.prototype.onerror=function(e){var t,n;null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,e)},e.prototype.onend=function(){var e,t;if(this.cbs.onclosetag)for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n]));null===(t=(e=this.cbs).onend)||void 0===t||t.call(e)},e.prototype.reset=function(){var e,t,n,r;null===(t=(e=this.cbs).onreset)||void 0===t||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack=[],null===(r=(n=this.cbs).onparserinit)||void 0===r||r.call(n,this)},e.prototype.parseComplete=function(e){this.reset(),this.end(e)},e.prototype.write=function(e){this.tokenizer.write(e)},e.prototype.end=function(e){this.tokenizer.end(e)},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){this.tokenizer.resume()},e.prototype.parseChunk=function(e){this.write(e)},e.prototype.done=function(e){this.end(e)},e}();t.Parser=f},34:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(2913)),o=r(n(4168)),s=r(n(7272)),a=r(n(729));function l(e){return" "===e||"\n"===e||"\t"===e||"\f"===e||"\r"===e}function c(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"}function u(e,t,n){var r=e.toLowerCase();return e===r?function(e,i){i===r?e._state=t:(e._state=n,e._index--)}:function(i,o){o===r||o===e?i._state=t:(i._state=n,i._index--)}}function p(e,t){var n=e.toLowerCase();return function(r,i){i===n||i===e?r._state=t:(r._state=3,r._index--)}}var f=u("C",24,16),d=u("D",25,16),h=u("A",26,16),m=u("T",27,16),g=u("A",28,16),b=p("R",35),v=p("I",36),y=p("P",37),w=p("T",38),x=u("R",40,1),O=u("I",41,1),S=u("P",42,1),C=u("T",43,1),k=p("Y",45),_=p("L",46),E=p("E",47),T=u("Y",49,1),N=u("L",50,1),P=u("E",51,1),A=p("I",54),M=p("T",55),D=p("L",56),I=p("E",57),R=u("I",58,1),L=u("T",59,1),j=u("L",60,1),V=u("E",61,1),F=u("#",63,64),q=u("X",66,65),B=function(){function e(e,t){var n;this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1,this.cbs=t,this.xmlMode=!!(null==e?void 0:e.xmlMode),this.decodeEntities=null===(n=null==e?void 0:e.decodeEntities)||void 0===n||n}return e.prototype.reset=function(){this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1},e.prototype.write=function(e){this.ended&&this.cbs.onerror(Error(".write() after done!")),this.buffer+=e,this.parse()},e.prototype.end=function(e){this.ended&&this.cbs.onerror(Error(".end() after done!")),e&&this.write(e),this.ended=!0,this.running&&this.finish()},e.prototype.pause=function(){this.running=!1},e.prototype.resume=function(){this.running=!0,this._index<this.buffer.length&&this.parse(),this.ended&&this.finish()},e.prototype.getAbsoluteIndex=function(){return this.bufferOffset+this._index},e.prototype.stateText=function(e){"<"===e?(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this._state=2,this.sectionStart=this._index):!this.decodeEntities||"&"!==e||1!==this.special&&4!==this.special||(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this.baseState=1,this._state=62,this.sectionStart=this._index)},e.prototype.isTagStartChar=function(e){return c(e)||this.xmlMode&&!l(e)&&"/"!==e&&">"!==e},e.prototype.stateBeforeTagName=function(e){"/"===e?this._state=5:"<"===e?(this.cbs.ontext(this.getSection()),this.sectionStart=this._index):">"===e||1!==this.special||l(e)?this._state=1:"!"===e?(this._state=15,this.sectionStart=this._index+1):"?"===e?(this._state=17,this.sectionStart=this._index+1):this.isTagStartChar(e)?(this._state=this.xmlMode||"s"!==e&&"S"!==e?this.xmlMode||"t"!==e&&"T"!==e?3:52:32,this.sectionStart=this._index):this._state=1},e.prototype.stateInTagName=function(e){("/"===e||">"===e||l(e))&&(this.emitToken("onopentagname"),this._state=8,this._index--)},e.prototype.stateBeforeClosingTagName=function(e){l(e)||(">"===e?this._state=1:1!==this.special?4===this.special||"s"!==e&&"S"!==e?4!==this.special||"t"!==e&&"T"!==e?(this._state=1,this._index--):this._state=53:this._state=33:this.isTagStartChar(e)?(this._state=6,this.sectionStart=this._index):(this._state=20,this.sectionStart=this._index))},e.prototype.stateInClosingTagName=function(e){(">"===e||l(e))&&(this.emitToken("onclosetag"),this._state=7,this._index--)},e.prototype.stateAfterClosingTagName=function(e){">"===e&&(this._state=1,this.sectionStart=this._index+1)},e.prototype.stateBeforeAttributeName=function(e){">"===e?(this.cbs.onopentagend(),this._state=1,this.sectionStart=this._index+1):"/"===e?this._state=4:l(e)||(this._state=9,this.sectionStart=this._index)},e.prototype.stateInSelfClosingTag=function(e){">"===e?(this.cbs.onselfclosingtag(),this._state=1,this.sectionStart=this._index+1,this.special=1):l(e)||(this._state=8,this._index--)},e.prototype.stateInAttributeName=function(e){("="===e||"/"===e||">"===e||l(e))&&(this.cbs.onattribname(this.getSection()),this.sectionStart=-1,this._state=10,this._index--)},e.prototype.stateAfterAttributeName=function(e){"="===e?this._state=11:"/"===e||">"===e?(this.cbs.onattribend(void 0),this._state=8,this._index--):l(e)||(this.cbs.onattribend(void 0),this._state=9,this.sectionStart=this._index)},e.prototype.stateBeforeAttributeValue=function(e){'"'===e?(this._state=12,this.sectionStart=this._index+1):"'"===e?(this._state=13,this.sectionStart=this._index+1):l(e)||(this._state=14,this.sectionStart=this._index,this._index--)},e.prototype.handleInAttributeValue=function(e,t){e===t?(this.emitToken("onattribdata"),this.cbs.onattribend(t),this._state=8):this.decodeEntities&&"&"===e&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},e.prototype.stateInAttributeValueDoubleQuotes=function(e){this.handleInAttributeValue(e,'"')},e.prototype.stateInAttributeValueSingleQuotes=function(e){this.handleInAttributeValue(e,"'")},e.prototype.stateInAttributeValueNoQuotes=function(e){l(e)||">"===e?(this.emitToken("onattribdata"),this.cbs.onattribend(null),this._state=8,this._index--):this.decodeEntities&&"&"===e&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},e.prototype.stateBeforeDeclaration=function(e){this._state="["===e?23:"-"===e?18:16},e.prototype.stateInDeclaration=function(e){">"===e&&(this.cbs.ondeclaration(this.getSection()),this._state=1,this.sectionStart=this._index+1)},e.prototype.stateInProcessingInstruction=function(e){">"===e&&(this.cbs.onprocessinginstruction(this.getSection()),this._state=1,this.sectionStart=this._index+1)},e.prototype.stateBeforeComment=function(e){"-"===e?(this._state=19,this.sectionStart=this._index+1):this._state=16},e.prototype.stateInComment=function(e){"-"===e&&(this._state=21)},e.prototype.stateInSpecialComment=function(e){">"===e&&(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index)),this._state=1,this.sectionStart=this._index+1)},e.prototype.stateAfterComment1=function(e){this._state="-"===e?22:19},e.prototype.stateAfterComment2=function(e){">"===e?(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):"-"!==e&&(this._state=19)},e.prototype.stateBeforeCdata6=function(e){"["===e?(this._state=29,this.sectionStart=this._index+1):(this._state=16,this._index--)},e.prototype.stateInCdata=function(e){"]"===e&&(this._state=30)},e.prototype.stateAfterCdata1=function(e){this._state="]"===e?31:29},e.prototype.stateAfterCdata2=function(e){">"===e?(this.cbs.oncdata(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):"]"!==e&&(this._state=29)},e.prototype.stateBeforeSpecialS=function(e){"c"===e||"C"===e?this._state=34:"t"===e||"T"===e?this._state=44:(this._state=3,this._index--)},e.prototype.stateBeforeSpecialSEnd=function(e){2!==this.special||"c"!==e&&"C"!==e?3!==this.special||"t"!==e&&"T"!==e?this._state=1:this._state=48:this._state=39},e.prototype.stateBeforeSpecialLast=function(e,t){("/"===e||">"===e||l(e))&&(this.special=t),this._state=3,this._index--},e.prototype.stateAfterSpecialLast=function(e,t){">"===e||l(e)?(this.special=1,this._state=6,this.sectionStart=this._index-t,this._index--):this._state=1},e.prototype.parseFixedEntity=function(e){if(void 0===e&&(e=this.xmlMode?a.default:o.default),this.sectionStart+1<this._index){var t=this.buffer.substring(this.sectionStart+1,this._index);Object.prototype.hasOwnProperty.call(e,t)&&(this.emitPartial(e[t]),this.sectionStart=this._index+1)}},e.prototype.parseLegacyEntity=function(){for(var e=this.sectionStart+1,t=Math.min(this._index-e,6);t>=2;){var n=this.buffer.substr(e,t);if(Object.prototype.hasOwnProperty.call(s.default,n))return this.emitPartial(s.default[n]),void(this.sectionStart+=t+1);t--}},e.prototype.stateInNamedEntity=function(e){";"===e?(this.parseFixedEntity(),1===this.baseState&&this.sectionStart+1<this._index&&!this.xmlMode&&this.parseLegacyEntity(),this._state=this.baseState):(e<"0"||e>"9")&&!c(e)&&(this.xmlMode||this.sectionStart+1===this._index||(1!==this.baseState?"="!==e&&this.parseFixedEntity(s.default):this.parseLegacyEntity()),this._state=this.baseState,this._index--)},e.prototype.decodeNumericEntity=function(e,t,n){var r=this.sectionStart+e;if(r!==this._index){var o=this.buffer.substring(r,this._index),s=parseInt(o,t);this.emitPartial(i.default(s)),this.sectionStart=n?this._index+1:this._index}this._state=this.baseState},e.prototype.stateInNumericEntity=function(e){";"===e?this.decodeNumericEntity(2,10,!0):(e<"0"||e>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(2,10,!1),this._index--)},e.prototype.stateInHexEntity=function(e){";"===e?this.decodeNumericEntity(3,16,!0):(e<"a"||e>"f")&&(e<"A"||e>"F")&&(e<"0"||e>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(3,16,!1),this._index--)},e.prototype.cleanup=function(){this.sectionStart<0?(this.buffer="",this.bufferOffset+=this._index,this._index=0):this.running&&(1===this._state?(this.sectionStart!==this._index&&this.cbs.ontext(this.buffer.substr(this.sectionStart)),this.buffer="",this.bufferOffset+=this._index,this._index=0):this.sectionStart===this._index?(this.buffer="",this.bufferOffset+=this._index,this._index=0):(this.buffer=this.buffer.substr(this.sectionStart),this._index-=this.sectionStart,this.bufferOffset+=this.sectionStart),this.sectionStart=0)},e.prototype.parse=function(){for(;this._index<this.buffer.length&&this.running;){var e=this.buffer.charAt(this._index);1===this._state?this.stateText(e):12===this._state?this.stateInAttributeValueDoubleQuotes(e):9===this._state?this.stateInAttributeName(e):19===this._state?this.stateInComment(e):20===this._state?this.stateInSpecialComment(e):8===this._state?this.stateBeforeAttributeName(e):3===this._state?this.stateInTagName(e):6===this._state?this.stateInClosingTagName(e):2===this._state?this.stateBeforeTagName(e):10===this._state?this.stateAfterAttributeName(e):13===this._state?this.stateInAttributeValueSingleQuotes(e):11===this._state?this.stateBeforeAttributeValue(e):5===this._state?this.stateBeforeClosingTagName(e):7===this._state?this.stateAfterClosingTagName(e):32===this._state?this.stateBeforeSpecialS(e):21===this._state?this.stateAfterComment1(e):14===this._state?this.stateInAttributeValueNoQuotes(e):4===this._state?this.stateInSelfClosingTag(e):16===this._state?this.stateInDeclaration(e):15===this._state?this.stateBeforeDeclaration(e):22===this._state?this.stateAfterComment2(e):18===this._state?this.stateBeforeComment(e):33===this._state?this.stateBeforeSpecialSEnd(e):53===this._state?R(this,e):39===this._state?x(this,e):40===this._state?O(this,e):41===this._state?S(this,e):34===this._state?b(this,e):35===this._state?v(this,e):36===this._state?y(this,e):37===this._state?w(this,e):38===this._state?this.stateBeforeSpecialLast(e,2):42===this._state?C(this,e):43===this._state?this.stateAfterSpecialLast(e,6):44===this._state?k(this,e):29===this._state?this.stateInCdata(e):45===this._state?_(this,e):46===this._state?E(this,e):47===this._state?this.stateBeforeSpecialLast(e,3):48===this._state?T(this,e):49===this._state?N(this,e):50===this._state?P(this,e):51===this._state?this.stateAfterSpecialLast(e,5):52===this._state?A(this,e):54===this._state?M(this,e):55===this._state?D(this,e):56===this._state?I(this,e):57===this._state?this.stateBeforeSpecialLast(e,4):58===this._state?L(this,e):59===this._state?j(this,e):60===this._state?V(this,e):61===this._state?this.stateAfterSpecialLast(e,5):17===this._state?this.stateInProcessingInstruction(e):64===this._state?this.stateInNamedEntity(e):23===this._state?f(this,e):62===this._state?F(this,e):24===this._state?d(this,e):25===this._state?h(this,e):30===this._state?this.stateAfterCdata1(e):31===this._state?this.stateAfterCdata2(e):26===this._state?m(this,e):27===this._state?g(this,e):28===this._state?this.stateBeforeCdata6(e):66===this._state?this.stateInHexEntity(e):65===this._state?this.stateInNumericEntity(e):63===this._state?q(this,e):this.cbs.onerror(Error("unknown _state"),this._state),this._index++}this.cleanup()},e.prototype.finish=function(){this.sectionStart<this._index&&this.handleTrailingData(),this.cbs.onend()},e.prototype.handleTrailingData=function(){var e=this.buffer.substr(this.sectionStart);29===this._state||30===this._state||31===this._state?this.cbs.oncdata(e):19===this._state||21===this._state||22===this._state?this.cbs.oncomment(e):64!==this._state||this.xmlMode?65!==this._state||this.xmlMode?66!==this._state||this.xmlMode?3!==this._state&&8!==this._state&&11!==this._state&&10!==this._state&&9!==this._state&&13!==this._state&&12!==this._state&&14!==this._state&&6!==this._state&&this.cbs.ontext(e):(this.decodeNumericEntity(3,16,!1),this.sectionStart<this._index&&(this._state=this.baseState,this.handleTrailingData())):(this.decodeNumericEntity(2,10,!1),this.sectionStart<this._index&&(this._state=this.baseState,this.handleTrailingData())):(this.parseLegacyEntity(),this.sectionStart<this._index&&(this._state=this.baseState,this.handleTrailingData()))},e.prototype.getSection=function(){return this.buffer.substring(this.sectionStart,this._index)},e.prototype.emitToken=function(e){this.cbs[e](this.getSection()),this.sectionStart=-1},e.prototype.emitPartial=function(e){1!==this.baseState?this.cbs.onattribdata(e):this.cbs.ontext(e)},e}();t.default=B},5106:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RssHandler=t.DefaultHandler=t.DomUtils=t.ElementType=t.Tokenizer=t.createDomStream=t.parseDOM=t.parseDocument=t.DomHandler=t.Parser=void 0;var l=n(6666);Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return l.Parser}});var c=n(1142);function u(e,t){var n=new c.DomHandler(void 0,t);return new l.Parser(n,t).end(e),n.root}Object.defineProperty(t,"DomHandler",{enumerable:!0,get:function(){return c.DomHandler}}),Object.defineProperty(t,"DefaultHandler",{enumerable:!0,get:function(){return c.DomHandler}}),t.parseDocument=u,t.parseDOM=function(e,t){return u(e,t).children},t.createDomStream=function(e,t,n){var r=new c.DomHandler(e,t,n);return new l.Parser(r,t)};var p=n(34);Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return a(p).default}});var f=o(n(9960));t.ElementType=f,s(n(7613),t),t.DomUtils=o(n(7241));var d=n(7613);Object.defineProperty(t,"RssHandler",{enumerable:!0,get:function(){return d.FeedHandler}})},977:(e,t)=>{"use strict";function n(e){return"[object Object]"===Object.prototype.toString.call(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.isPlainObject=function(e){var t,r;return!1!==n(e)&&(void 0===(t=e.constructor)||!1!==n(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}},1476:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var i=r(n(7848)),o=n(6678);t.default=function(e,t){var n={};return e&&"string"==typeof e?((0,i.default)(e,(function(e,r){e&&r&&(n[(0,o.camelCase)(e,t)]=r)})),n):n}},6678:(e,t)=>{"use strict";t.__esModule=!0,t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,a=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||i.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(s,l):e.replace(o,l)).replace(r,a))}},7848:(e,t,n)=>{var r=n(8139);e.exports=function(e,t){var n,i=null;if(!e||"string"!=typeof e)return i;for(var o,s,a=r(e),l="function"==typeof t,c=0,u=a.length;c<u;c++)o=(n=a[c]).property,s=n.value,l?t(o,s,n):s&&(i||(i={}),i[o]=s);return i}},9196:e=>{"use strict";e.exports=window.React},2868:()=>{},4777:()=>{},9830:()=>{},209:()=>{},7414:()=>{},2618:e=>{e.exports={nanoid:(e=21)=>{let t="",n=e;for(;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let r="",i=n;for(;i--;)r+=e[Math.random()*e.length|0];return r}}},7607:e=>{"use strict";e.exports=JSON.parse('{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}')},4168:e=>{"use strict";e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"","InvisibleTimes":"","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"","NegativeThickSpace":"","NegativeThinSpace":"","NegativeVeryThinSpace":"","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":" ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"","zwnj":""}')},7272:e=>{"use strict";e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}')},729:e=>{"use strict";e.exports=JSON.parse('{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}')}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.blocks;const t=function(t){var n=t.namespace,r=t.title,i=t.icon;(0,e.registerBlockCollection)(n,{title:r,icon:i})};function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(488);o.domToReact,o.htmlToDOM,o.attributesToProps,o.Element;const s=o,a=window.wp.blockEditor,l=window.wp.components;function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}var u=n(9196),p=n.n(u);var f=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),d=Math.abs,h=String.fromCharCode,m=Object.assign;function g(e){return e.trim()}function b(e,t,n){return e.replace(t,n)}function v(e,t){return e.indexOf(t)}function y(e,t){return 0|e.charCodeAt(t)}function w(e,t,n){return e.slice(t,n)}function x(e){return e.length}function O(e){return e.length}function S(e,t){return t.push(e),e}var C=1,k=1,_=0,E=0,T=0,N="";function P(e,t,n,r,i,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:C,column:k,length:s,return:""}}function A(e,t){return m(P("",null,null,"",null,null,0),e,{length:-e.length},t)}function M(){return T=E>0?y(N,--E):0,k--,10===T&&(k=1,C--),T}function D(){return T=E<_?y(N,E++):0,k++,10===T&&(k=1,C++),T}function I(){return y(N,E)}function R(){return E}function L(e,t){return w(N,e,t)}function j(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function V(e){return C=k=1,_=x(N=e),E=0,[]}function F(e){return N="",e}function q(e){return g(L(E-1,U(91===e?e+2:40===e?e+1:e)))}function B(e){for(;(T=I())&&T<33;)D();return j(e)>2||j(T)>3?"":" "}function H(e,t){for(;--t&&D()&&!(T<48||T>102||T>57&&T<65||T>70&&T<97););return L(e,R()+(t<6&&32==I()&&32==D()))}function U(e){for(;D();)switch(T){case e:return E;case 34:case 39:34!==e&&39!==e&&U(T);break;case 40:41===e&&U(e);break;case 92:D()}return E}function z(e,t){for(;D()&&e+T!==57&&(e+T!==84||47!==I()););return"/*"+L(t,E-1)+"*"+h(47===e?e:D())}function $(e){for(;!j(I());)D();return L(e,E)}var W="-ms-",G="-moz-",Z="-webkit-",X="comm",Y="rule",J="decl",K="@keyframes";function Q(e,t){for(var n="",r=O(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function ee(e,t,n,r){switch(e.type){case"@import":case J:return e.return=e.return||e.value;case X:return"";case K:return e.return=e.value+"{"+Q(e.children,r)+"}";case Y:e.value=e.props.join(",")}return x(n=Q(e.children,r))?e.return=e.value+"{"+n+"}":""}function te(e,t){switch(function(e,t){return(((t<<2^y(e,0))<<2^y(e,1))<<2^y(e,2))<<2^y(e,3)}(e,t)){case 5103:return Z+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Z+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Z+e+G+e+W+e+e;case 6828:case 4268:return Z+e+W+e+e;case 6165:return Z+e+W+"flex-"+e+e;case 5187:return Z+e+b(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return Z+e+W+"flex-item-"+b(e,/flex-|-self/,"")+e;case 4675:return Z+e+W+"flex-line-pack"+b(e,/align-content|flex-|-self/,"")+e;case 5548:return Z+e+W+b(e,"shrink","negative")+e;case 5292:return Z+e+W+b(e,"basis","preferred-size")+e;case 6060:return Z+"box-"+b(e,"-grow","")+Z+e+W+b(e,"grow","positive")+e;case 4554:return Z+b(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return b(b(b(e,/(zoom-|grab)/,Z+"$1"),/(image-set)/,Z+"$1"),e,"")+e;case 5495:case 3959:return b(e,/(image-set\([^]*)/,Z+"$1$`$1");case 4968:return b(b(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+Z+e+e;case 4095:case 3583:case 4068:case 2532:return b(e,/(.+)-inline(.+)/,Z+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(x(e)-1-t>6)switch(y(e,t+1)){case 109:if(45!==y(e,t+4))break;case 102:return b(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+G+(108==y(e,t+3)?"$3":"$2-$3"))+e;case 115:return~v(e,"stretch")?te(b(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==y(e,t+1))break;case 6444:switch(y(e,x(e)-3-(~v(e,"!important")&&10))){case 107:return b(e,":",":"+Z)+e;case 101:return b(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Z+(45===y(e,14)?"inline-":"")+"box$3$1"+Z+"$2$3$1"+W+"$2box$3")+e}break;case 5936:switch(y(e,t+11)){case 114:return Z+e+W+b(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Z+e+W+b(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Z+e+W+b(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Z+e+W+e+e}return e}function ne(e){return F(re("",null,null,null,[""],e=V(e),0,[0],e))}function re(e,t,n,r,i,o,s,a,l){for(var c=0,u=0,p=s,f=0,d=0,m=0,g=1,y=1,w=1,O=0,C="",k=i,_=o,E=r,T=C;y;)switch(m=O,O=D()){case 40:if(108!=m&&58==T.charCodeAt(p-1)){-1!=v(T+=b(q(O),"&","&\f"),"&\f")&&(w=-1);break}case 34:case 39:case 91:T+=q(O);break;case 9:case 10:case 13:case 32:T+=B(m);break;case 92:T+=H(R()-1,7);continue;case 47:switch(I()){case 42:case 47:S(oe(z(D(),R()),t,n),l);break;default:T+="/"}break;case 123*g:a[c++]=x(T)*w;case 125*g:case 59:case 0:switch(O){case 0:case 125:y=0;case 59+u:d>0&&x(T)-p&&S(d>32?se(T+";",r,n,p-1):se(b(T," ","")+";",r,n,p-2),l);break;case 59:T+=";";default:if(S(E=ie(T,t,n,c,u,i,a,C,k=[],_=[],p),o),123===O)if(0===u)re(T,t,E,E,k,o,p,a,_);else switch(f){case 100:case 109:case 115:re(e,E,E,r&&S(ie(e,E,E,0,0,i,a,C,i,k=[],p),_),i,_,p,a,r?k:_);break;default:re(T,E,E,E,[""],_,0,a,_)}}c=u=d=0,g=w=1,C=T="",p=s;break;case 58:p=1+x(T),d=m;default:if(g<1)if(123==O)--g;else if(125==O&&0==g++&&125==M())continue;switch(T+=h(O),O*g){case 38:w=u>0?1:(T+="\f",-1);break;case 44:a[c++]=(x(T)-1)*w,w=1;break;case 64:45===I()&&(T+=q(D())),f=I(),u=p=x(C=T+=$(R())),O++;break;case 45:45===m&&2==x(T)&&(g=0)}}return o}function ie(e,t,n,r,i,o,s,a,l,c,u){for(var p=i-1,f=0===i?o:[""],h=O(f),m=0,v=0,y=0;m<r;++m)for(var x=0,S=w(e,p+1,p=d(v=s[m])),C=e;x<h;++x)(C=g(v>0?f[x]+" "+S:b(S,/&\f/g,f[x])))&&(l[y++]=C);return P(e,t,n,0===i?Y:a,l,c,u)}function oe(e,t,n){return P(e,t,n,X,h(T),w(e,2,-2),0)}function se(e,t,n,r){return P(e,t,n,J,w(e,0,r),w(e,r+1,-1),r)}var ae=function(e,t,n){for(var r=0,i=0;r=i,i=I(),38===r&&12===i&&(t[n]=1),!j(i);)D();return L(e,E)},le=function(e,t){return F(function(e,t){var n=-1,r=44;do{switch(j(r)){case 0:38===r&&12===I()&&(t[n]=1),e[n]+=ae(E-1,t,n);break;case 2:e[n]+=q(r);break;case 4:if(44===r){e[++n]=58===I()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=h(r)}}while(r=D());return e}(V(e),t))},ce=new WeakMap,ue=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ce.get(n))&&!r){ce.set(e,!0);for(var i=[],o=le(t,i),s=n.props,a=0,l=0;a<o.length;a++)for(var c=0;c<s.length;c++,l++)e.props[l]=i[a]?o[a].replace(/&\f/g,s[c]):s[c]+" "+o[a]}}},pe=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},fe=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case J:e.return=te(e.value,e.length);break;case K:return Q([A(e,{value:b(e.value,"@","@"+Z)})],r);case Y:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Q([A(e,{props:[b(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Q([A(e,{props:[b(t,/:(plac\w+)/,":-webkit-input-$1")]}),A(e,{props:[b(t,/:(plac\w+)/,":-moz-$1")]}),A(e,{props:[b(t,/:(plac\w+)/,W+"input-$1")]})],r)}return""}))}}];const de=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||fe;var i,o,s={},a=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;a.push(e)}));var l,c,u,p,d=[ee,(p=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&p(e)})],h=(c=[ue,pe].concat(r,d),u=O(c),function(e,t,n,r){for(var i="",o=0;o<u;o++)i+=c[o](e,t,n,r)||"";return i});o=function(e,t,n,r){l=n,Q(ne(e?e+"{"+t.styles+"}":t.styles),h),r&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new f({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:o};return m.sheet.hydrate(a),m};function he(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var me=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},ge=function(e,t,n){me(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0);i=i.next}while(void 0!==i)}};const be=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};const ve={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var ye=/[A-Z]|^ms/g,we=/_EMO_([^_]+?)_([^]*?)_EMO_/g,xe=function(e){return 45===e.charCodeAt(1)},Oe=function(e){return null!=e&&"boolean"!=typeof e},Se=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return xe(e)?e:e.replace(ye,"-$&").toLowerCase()})),Ce=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(we,(function(e,t,n){return _e={name:t,styles:n,next:_e},t}))}return 1===ve[e]||xe(e)||"number"!=typeof t||0===t?t:t+"px"};function ke(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return _e={name:n.name,styles:n.styles,next:_e},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)_e={name:r.name,styles:r.styles,next:_e},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=ke(e,t,n[i])+";";else for(var o in n){var s=n[o];if("object"!=typeof s)null!=t&&void 0!==t[s]?r+=o+"{"+t[s]+"}":Oe(s)&&(r+=Se(o)+":"+Ce(o,s)+";");else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var a=ke(e,t,s);switch(o){case"animation":case"animationName":r+=Se(o)+":"+a+";";break;default:r+=o+"{"+a+"}"}}else for(var l=0;l<s.length;l++)Oe(s[l])&&(r+=Se(o)+":"+Ce(o,s[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=_e,o=n(e);return _e=i,ke(e,t,o)}}if(null==t)return n;var s=t[n];return void 0!==s?s:n}var _e,Ee=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var Te=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";_e=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=ke(n,t,o)):i+=o[0];for(var s=1;s<e.length;s++)i+=ke(n,t,e[s]),r&&(i+=o[s]);Ee.lastIndex=0;for(var a,l="";null!==(a=Ee.exec(i));)l+="-"+a[1];return{name:be(i)+l,styles:i,next:_e}},Ne={}.hasOwnProperty,Pe=(0,u.createContext)("undefined"!=typeof HTMLElement?de({key:"css"}):null);var Ae=Pe.Provider,Me=function(e){return(0,u.forwardRef)((function(t,n){var r=(0,u.useContext)(Pe);return e(t,r,n)}))},De=(0,u.createContext)({});var Ie=u.useInsertionEffect?u.useInsertionEffect:function(e){e()};function Re(e){Ie(e)}var Le="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",je=function(e,t){var n={};for(var r in t)Ne.call(t,r)&&(n[r]=t[r]);return n[Le]=e,n},Ve=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;me(t,n,r);Re((function(){return ge(t,n,r)}));return null},Fe=Me((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[Le],o=[r],s="";"string"==typeof e.className?s=he(t.registered,o,e.className):null!=e.className&&(s=e.className+" ");var a=Te(o,void 0,(0,u.useContext)(De));s+=t.key+"-"+a.name;var l={};for(var c in e)Ne.call(e,c)&&"css"!==c&&c!==Le&&(l[c]=e[c]);return l.ref=n,l.className=s,(0,u.createElement)(u.Fragment,null,(0,u.createElement)(Ve,{cache:t,serialized:a,isStringTag:"string"==typeof i}),(0,u.createElement)(i,l))}));n(8679);var qe=function(e,t){var n=arguments;if(null==t||!Ne.call(t,"css"))return u.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=Fe,i[1]=je(e,t);for(var o=2;o<r;o++)i[o]=n[o];return u.createElement.apply(null,i)};u.useInsertionEffect?u.useInsertionEffect:u.useLayoutEffect;function Be(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Te(t)}var He=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var o=t[r];if(null!=o){var s=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))s=e(o);else for(var a in s="",o)o[a]&&a&&(s&&(s+=" "),s+=a);break;default:s=o}s&&(i&&(i+=" "),i+=s)}}return i};function Ue(e,t,n){var r=[],i=he(e,r,n);return r.length<2?n:i+t(r)}var ze=function(e){var t=e.cache,n=e.serializedArr;Re((function(){for(var e=0;e<n.length;e++)ge(t,n[e],!1)}));return null},$e=Me((function(e,t){var n=[],r=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var o=Te(r,t.registered);return n.push(o),me(t,o,!1),t.key+"-"+o.name},i={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return Ue(t.registered,r,He(n))},theme:(0,u.useContext)(De)},o=e.children(i);return!0,(0,u.createElement)(u.Fragment,null,(0,u.createElement)(ze,{cache:t,serializedArr:n}),o)}));function We(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Ge=n(5639);function Ze(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ye(e,t,n){return t&&Xe(e.prototype,t),n&&Xe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Je(e,t){return Je=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Je(e,t)}function Ke(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Je(e,t)}const Qe=window.ReactDOM;function et(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tt(Object(n),!0).forEach((function(t){et(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rt(e){return rt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},rt(e)}function it(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ot(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=rt(e);if(t){var i=rt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return it(this,n)}}var st=function(){};function at(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function lt(e,t,n){var r=[n];if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&r.push("".concat(at(e,i)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var ct=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===r(e)&&null!==e?[e]:[]},ut=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,nt({},We(e,["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"]))};function pt(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function ft(e){return pt(e)?window.pageYOffset:e.scrollTop}function dt(e,t){pt(e)?window.scrollTo(0,t):e.scrollTop=t}function ht(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function mt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:st,i=ft(e),o=t-i,s=10,a=0;function l(){var t=ht(a+=s,i,o,n);dt(e,t),a<n?window.requestAnimationFrame(l):r(e)}l()}function gt(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var bt=!1,vt={get passive(){return bt=!0}},yt="undefined"!=typeof window?window:{};yt.addEventListener&&yt.removeEventListener&&(yt.addEventListener("p",st,vt),yt.removeEventListener("p",st,!1));var wt=bt;function xt(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,s=e.isFixedPosition,a=e.theme.spacing,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,i=document.documentElement;if("fixed"===t.position)return i;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return i}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u=l.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,d=p.height,h=p.top,m=n.offsetParent.getBoundingClientRect().top,g=window.innerHeight,b=ft(l),v=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),w=m-y,x=g-h,O=w+b,S=u-b-h,C=f-g+b+v,k=b+h-y,_=160;switch(i){case"auto":case"bottom":if(x>=d)return{placement:"bottom",maxHeight:t};if(S>=d&&!s)return o&&mt(l,C,_),{placement:"bottom",maxHeight:t};if(!s&&S>=r||s&&x>=r)return o&&mt(l,C,_),{placement:"bottom",maxHeight:s?x-v:S-v};if("auto"===i||s){var E=t,T=s?w:O;return T>=r&&(E=Math.min(T-v-a.controlHeight,t)),{placement:"top",maxHeight:E}}if("bottom"===i)return o&&dt(l,C),{placement:"bottom",maxHeight:t};break;case"top":if(w>=d)return{placement:"top",maxHeight:t};if(O>=d&&!s)return o&&mt(l,k,_),{placement:"top",maxHeight:t};if(!s&&O>=r||s&&w>=r){var N=t;return(!s&&O>=r||s&&w>=r)&&(N=s?w-y:O-y),o&&mt(l,k,_),{placement:"top",maxHeight:N}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}var Ot=function(e){return"auto"===e?"bottom":e},St=(0,u.createContext)({getPortalPlacement:null}),Ct=function(e){Ke(n,e);var t=ot(n);function n(){var e;Ze(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.getPlacement=function(t){var n=e.props,r=n.minMenuHeight,i=n.maxMenuHeight,o=n.menuPlacement,s=n.menuPosition,a=n.menuShouldScrollIntoView,l=n.theme;if(t){var c="fixed"===s,u=xt({maxHeight:i,menuEl:t,minHeight:r,placement:o,shouldScroll:a&&!c,isFixedPosition:c,theme:l}),p=e.context.getPortalPlacement;p&&p(u),e.setState(u)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||Ot(t);return nt(nt({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return Ye(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(u.Component);Ct.contextType=St;var kt=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},_t=kt,Et=kt,Tt=function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.innerProps;return qe("div",c({css:i("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},o),t)};Tt.defaultProps={children:"No options"};var Nt=function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.innerProps;return qe("div",c({css:i("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},o),t)};Nt.defaultProps={children:"Loading..."};var Pt,At=function(e){Ke(n,e);var t=ot(n);function n(){var e;Ze(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==Ot(e.props.menuPlacement)&&e.setState({placement:n})},e}return Ye(n,[{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,r=e.className,i=e.controlElement,o=e.cx,s=e.innerProps,a=e.menuPlacement,l=e.menuPosition,u=e.getStyles,p="fixed"===l;if(!t&&!p||!i)return null;var f=this.state.placement||Ot(a),d=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(i),h=p?0:window.pageYOffset,m=d[f]+h,g=qe("div",c({css:u("menuPortal",{offset:m,position:l,rect:d}),className:o({"menu-portal":!0},r)},s),n);return qe(St.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?(0,Qe.createPortal)(g,t):g)}}]),n}(u.Component);var Mt,Dt,It={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Rt=function(e){var t=e.size,n=We(e,["size"]);return qe("svg",c({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:It},n))},Lt=function(e){return qe(Rt,c({size:20},e),qe("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},jt=function(e){return qe(Rt,c({size:20},e),qe("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Vt=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,i=n.colors;return{label:"indicatorContainer",color:t?i.neutral60:i.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?i.neutral80:i.neutral40}}},Ft=Vt,qt=Vt,Bt=function(){var e=Be.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Pt||(Mt=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Dt||(Dt=Mt.slice(0)),Pt=Object.freeze(Object.defineProperties(Mt,{raw:{value:Object.freeze(Dt)}})))),Ht=function(e){var t=e.delay,n=e.offset;return qe("span",{css:Be({animation:"".concat(Bt," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Ut=function(e){var t=e.className,n=e.cx,r=e.getStyles,i=e.innerProps,o=e.isRtl;return qe("div",c({css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)},i),qe(Ht,{delay:0,offset:o}),qe(Ht,{delay:160,offset:!0}),qe(Ht,{delay:320,offset:!o}))};Ut.defaultProps={size:4};var zt=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}},$t=function(e){var t=e.children,n=e.innerProps;return qe("div",n,t)},Wt=$t,Gt=$t;var Zt=function(e){var t=e.children,n=e.className,r=e.components,i=e.cx,o=e.data,s=e.getStyles,a=e.innerProps,l=e.isDisabled,c=e.removeProps,u=e.selectProps,p=r.Container,f=r.Label,d=r.Remove;return qe($e,null,(function(r){var h=r.css,m=r.cx;return qe(p,{data:o,innerProps:nt({className:m(h(s("multiValue",e)),i({"multi-value":!0,"multi-value--is-disabled":l},n))},a),selectProps:u},qe(f,{data:o,innerProps:{className:m(h(s("multiValueLabel",e)),i({"multi-value__label":!0},n))},selectProps:u},t),qe(d,{data:o,innerProps:nt({className:m(h(s("multiValueRemove",e)),i({"multi-value__remove":!0},n))},c),selectProps:u}))}))};Zt.defaultProps={cropWithEllipsis:!0};var Xt={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.innerProps;return qe("div",c({css:i("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)},o),t||qe(Lt,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,i=e.className,o=e.isDisabled,s=e.isFocused,a=e.innerRef,l=e.innerProps,u=e.menuIsOpen;return qe("div",c({ref:a,css:r("control",e),className:n({control:!0,"control--is-disabled":o,"control--is-focused":s,"control--menu-is-open":u},i)},l),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.innerProps;return qe("div",c({css:i("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)},o),t||qe(jt,null))},DownChevron:jt,CrossIcon:Lt,Group:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.Heading,s=e.headingProps,a=e.innerProps,l=e.label,u=e.theme,p=e.selectProps;return qe("div",c({css:i("group",e),className:r({group:!0},n)},a),qe(o,c({},s,{selectProps:p,theme:u,getStyles:i,cx:r}),l),qe("div",null,t))},GroupHeading:function(e){var t=e.getStyles,n=e.cx,r=e.className,i=ut(e);i.data;var o=We(i,["data"]);return qe("div",c({css:t("groupHeading",e),className:n({"group-heading":!0},r)},o))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,i=e.innerProps,o=e.getStyles;return qe("div",c({css:o("indicatorsContainer",e),className:r({indicators:!0},n)},i),t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,i=e.innerProps;return qe("span",c({},i,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,i=ut(e),o=i.innerRef,s=i.isDisabled,a=i.isHidden,l=We(i,["innerRef","isDisabled","isHidden"]);return qe("div",{css:r("input",e)},qe(Ge.Z,c({className:n({input:!0},t),inputRef:o,inputStyle:zt(a),disabled:s},l)))},LoadingIndicator:Ut,Menu:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.innerRef,s=e.innerProps;return qe("div",c({css:i("menu",e),className:r({menu:!0},n),ref:o},s),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.innerProps,s=e.innerRef,a=e.isMulti;return qe("div",c({css:i("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":a},n),ref:s},o),t)},MenuPortal:At,LoadingMessage:Nt,NoOptionsMessage:Tt,MultiValue:Zt,MultiValueContainer:Wt,MultiValueLabel:Gt,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return qe("div",n,t||qe(Lt,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.isDisabled,s=e.isFocused,a=e.isSelected,l=e.innerRef,u=e.innerProps;return qe("div",c({css:i("option",e),className:r({option:!0,"option--is-disabled":o,"option--is-focused":s,"option--is-selected":a},n),ref:l},u),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.innerProps;return qe("div",c({css:i("placeholder",e),className:r({placeholder:!0},n)},o),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.innerProps,s=e.isDisabled,a=e.isRtl;return qe("div",c({css:i("container",e),className:r({"--is-disabled":s,"--is-rtl":a},n)},o),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.isDisabled,s=e.innerProps;return qe("div",c({css:i("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":o},n)},s),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,i=e.innerProps,o=e.isMulti,s=e.getStyles,a=e.hasValue;return qe("div",c({css:s("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":o,"value-container--has-value":a},n)},i),t)}};function Yt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Jt(e){return function(e){if(Array.isArray(e))return Yt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Yt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yt(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Kt=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Qt(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],i=t[n],!(r===i||Kt(r)&&Kt(i)))return!1;var r,i;return!0}const en=function(e,t){var n;void 0===t&&(t=Qt);var r,i=[],o=!1;return function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return o&&n===this&&t(s,i)||(r=e.apply(this,s),o=!0,n=this,i=s),r}};for(var tn={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},nn=function(e){return qe("span",c({css:tn},e))},rn={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,i=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=void 0===n?{}:n,i=e.options,o=e.label,s=void 0===o?"":o,a=e.selectValue,l=e.isDisabled,c=e.isSelected,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(s," focused, ").concat(u(a,r),".");if("menu"===t){var p=l?" disabled":"",f="".concat(c?"selected":"focused").concat(p);return"option ".concat(s," ").concat(f,", ").concat(u(i,r),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},on=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,o=e.isFocused,s=e.selectValue,a=e.selectProps,l=a.ariaLiveMessages,c=a.getOptionLabel,f=a.inputValue,d=a.isMulti,h=a.isOptionDisabled,m=a.isSearchable,g=a.menuIsOpen,b=a.options,v=a.screenReaderStatus,y=a.tabSelectsValue,w=a["aria-label"],x=a["aria-live"],O=(0,u.useMemo)((function(){return nt(nt({},rn),l||{})}),[l]),S=(0,u.useMemo)((function(){var e,n="";if(t&&O.onChange){var r=t.option,i=t.removedValue,o=t.value,s=i||r||(e=o,Array.isArray(e)?null:e),a=nt({isDisabled:s&&h(s),label:s?c(s):""},t);n=O.onChange(a)}return n}),[t,h,c,O]),C=(0,u.useMemo)((function(){var e="",t=n||r,i=!!(n&&s&&s.includes(n));if(t&&O.onFocus){var o={focused:t,label:c(t),isDisabled:h(t),isSelected:i,options:b,context:t===n?"menu":"value",selectValue:s};e=O.onFocus(o)}return e}),[n,r,c,h,O,b,s]),k=(0,u.useMemo)((function(){var e="";if(g&&b.length&&O.onFilter){var t=v({count:i.length});e=O.onFilter({inputValue:f,resultsMessage:t})}return e}),[i,f,g,O,b,v]),_=(0,u.useMemo)((function(){var e="";if(O.guidance){var t=r?"value":g?"menu":"input";e=O.guidance({"aria-label":w,context:t,isDisabled:n&&h(n),isMulti:d,isSearchable:m,tabSelectsValue:y})}return e}),[w,n,r,d,h,m,g,O,y]),E="".concat(C," ").concat(k," ").concat(_);return qe(nn,{"aria-live":x,"aria-atomic":"false","aria-relevant":"additions text"},o&&qe(p().Fragment,null,qe("span",{id:"aria-selection"},S),qe("span",{id:"aria-context"},E)))},sn=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],an=new RegExp("["+sn.map((function(e){return e.letters})).join("")+"]","g"),ln={},cn=0;cn<sn.length;cn++)for(var un=sn[cn],pn=0;pn<un.letters.length;pn++)ln[un.letters[pn]]=un.base;var fn=function(e){return e.replace(an,(function(e){return ln[e]}))},dn=en(fn),hn=function(e){return e.replace(/^\s+|\s+$/g,"")},mn=function(e){return"".concat(e.label," ").concat(e.value)};function gn(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef;e.emotion;var n=We(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]);return qe("input",c({ref:t},n,{css:Be({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"","")}))}var bn=["boxSizing","height","overflow","paddingRight","position"],vn={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function yn(e){e.preventDefault()}function wn(e){e.stopPropagation()}function xn(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function On(){return"ontouchstart"in window||navigator.maxTouchPoints}var Sn=!("undefined"==typeof window||!window.document||!window.document.createElement),Cn=0,kn={capture:!1,passive:!1};var _n=function(){return document.activeElement&&document.activeElement.blur()},En={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Tn(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,o=e.onTopLeave,s=(0,u.useRef)(!1),a=(0,u.useRef)(!1),l=(0,u.useRef)(0),c=(0,u.useRef)(null),p=(0,u.useCallback)((function(e,t){if(null!==c.current){var l=c.current,u=l.scrollTop,p=l.scrollHeight,f=l.clientHeight,d=c.current,h=t>0,m=p-f-u,g=!1;m>t&&s.current&&(r&&r(e),s.current=!1),h&&a.current&&(o&&o(e),a.current=!1),h&&t>m?(n&&!s.current&&n(e),d.scrollTop=p,g=!0,s.current=!0):!h&&-t>u&&(i&&!a.current&&i(e),d.scrollTop=0,g=!0,a.current=!0),g&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[]),f=(0,u.useCallback)((function(e){p(e,e.deltaY)}),[p]),d=(0,u.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),h=(0,u.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;p(e,t)}),[p]),m=(0,u.useCallback)((function(e){if(e){var t=!!wt&&{passive:!1};"function"==typeof e.addEventListener&&e.addEventListener("wheel",f,t),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",d,t),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",h,t)}}),[h,d,f]),g=(0,u.useCallback)((function(e){e&&("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",f,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",d,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",h,!1))}),[h,d,f]);return(0,u.useEffect)((function(){if(t){var e=c.current;return m(e),function(){g(e)}}}),[t,m,g]),function(e){c.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),o=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,i=(0,u.useRef)({}),o=(0,u.useRef)(null),s=(0,u.useCallback)((function(e){if(Sn){var t=document.body,n=t&&t.style;if(r&&bn.forEach((function(e){var t=n&&n[e];i.current[e]=t})),r&&Cn<1){var o=parseInt(i.current.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,a=window.innerWidth-s+o||0;Object.keys(vn).forEach((function(e){var t=vn[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(a,"px"))}t&&On()&&(t.addEventListener("touchmove",yn,kn),e&&(e.addEventListener("touchstart",xn,kn),e.addEventListener("touchmove",wn,kn))),Cn+=1}}),[]),a=(0,u.useCallback)((function(e){if(Sn){var t=document.body,n=t&&t.style;Cn=Math.max(Cn-1,0),r&&Cn<1&&bn.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&On()&&(t.removeEventListener("touchmove",yn,kn),e&&(e.removeEventListener("touchstart",xn,kn),e.removeEventListener("touchmove",wn,kn)))}}),[]);return(0,u.useEffect)((function(){if(t){var e=o.current;return s(e),function(){a(e)}}}),[t,s,a]),function(e){o.current=e}}({isEnabled:n});return qe(p().Fragment,null,n&&qe("div",{onClick:_n,css:En}),t((function(e){i(e),o(e)})))}var Nn={clearIndicator:qt,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,i=r.colors,o=r.borderRadius,s=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?i.neutral5:i.neutral0,borderColor:t?i.neutral10:n?i.primary:i.neutral20,borderRadius:o,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(i.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?i.primary:i.neutral30}}},dropdownIndicator:Ft,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,i=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?i.neutral10:i.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,i=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:i.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,i=r.colors,o=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?i.neutral60:i.neutral20,display:"flex",padding:2*o,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:Et,menu:function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,s=r.spacing,a=r.colors;return i(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),i(t,"backgroundColor",a.neutral0),i(t,"borderRadius",o),i(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),i(t,"marginBottom",s.menuGutter),i(t,"marginTop",s.menuGutter),i(t,"position","absolute"),i(t,"width","100%"),i(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,i=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:i?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,i=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&i.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}}},noOptionsMessage:_t,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,i=e.theme,o=i.spacing,s=i.colors;return{label:"option",backgroundColor:r?s.primary:n?s.primary25:"transparent",color:t?s.neutral20:r?s.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*o.baseUnit,"px ").concat(3*o.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?s.primary:s.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,i=n.colors;return{label:"singleValue",color:t?i.neutral40:i.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - ".concat(2*r.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};var Pn,An={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Mn={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:gt(),captureMenuScroll:!gt(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=nt({ignoreCase:!0,ignoreAccents:!0,stringify:mn,trim:!0,matchFrom:"any"},Pn),r=n.ignoreCase,i=n.ignoreAccents,o=n.stringify,s=n.trim,a=n.matchFrom,l=s?hn(t):t,c=s?hn(o(e)):o(e);return r&&(l=l.toLowerCase(),c=c.toLowerCase()),i&&(l=dn(l),c=fn(c)),"start"===a?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0};function Dn(e,t,n,r){return{type:"option",data:t,isDisabled:Fn(e,t,n),isSelected:qn(e,t,n),label:jn(e,t),value:Vn(e,t),index:r}}function In(e,t){return e.options.map((function(n,r){if(n.options){var i=n.options.map((function(n,r){return Dn(e,n,t,r)})).filter((function(t){return Ln(e,t)}));return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=Dn(e,n,t,r);return Ln(e,o)?o:void 0})).filter((function(e){return!!e}))}function Rn(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Jt(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Ln(e,t){var n=e.inputValue,r=void 0===n?"":n,i=t.data,o=t.isSelected,s=t.label,a=t.value;return(!Hn(e)||!o)&&Bn(e,{label:s,value:a,data:i},r)}var jn=function(e,t){return e.getOptionLabel(t)},Vn=function(e,t){return e.getOptionValue(t)};function Fn(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function qn(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Vn(e,t);return n.some((function(t){return Vn(e,t)===r}))}function Bn(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Hn=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Un=1,zn=function(e){Ke(n,e);var t=ot(n);function n(e){var r;return Ze(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,i=n.onChange,o=n.name;t.name=o,r.ariaOnChange(e,t),i(e,t)},r.setValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",n=arguments.length>2?arguments[2]:void 0,i=r.props,o=i.closeMenuOnSelect,s=i.isMulti;r.onInputChange("",{action:"set-value"}),o&&(r.setState({inputIsHiddenAfterUpdate:!s}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,i=t.isMulti,o=t.name,s=r.state.selectValue,a=i&&r.isOptionSelected(e,s),l=r.isOptionDisabled(e,s);if(a){var c=r.getOptionValue(e);r.setValue(s.filter((function(e){return r.getOptionValue(e)!==c})),"deselect-option",e)}else{if(l)return void r.ariaOnChange(e,{action:"select-option",name:o});i?r.setValue([].concat(Jt(s),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,i=r.getOptionValue(e),o=n.filter((function(e){return r.getOptionValue(e)!==i})),s=t?o:o[0]||null;r.onChange(s,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(r.props.isMulti?[]:null,{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],i=t.slice(0,t.length-1),o=e?i:i[0]||null;r.onChange(o,{action:"pop-value",removedValue:n})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return lt.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return jn(r.props,e)},r.getOptionValue=function(e){return Vn(r.props,e)},r.getStyles=function(e,t){var n=Nn[e](t);n.boxSizing="border-box";var i=r.props.styles[e];return i?i(n,t):n},r.getElementId=function(e){return"".concat(r.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,nt(nt({},Xt),e.components);var e},r.buildCategorizedOptions=function(){return In(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return Rn(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:nt({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,i=t.menuIsOpen;r.focusInput(),i?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault(),e.stopPropagation()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.stopPropagation(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&pt(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var i=Math.abs(n.clientX-r.initialTouchX),o=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=i>5||o>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(t,{action:"input-change"}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur"}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){r.blockOptionHover||r.state.focusedOption===e||r.setState({focusedOption:e})},r.shouldHideSelectedOptions=function(){return Hn(r.props)},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,i=t.backspaceRemovesValue,o=t.escapeClearsValue,s=t.inputValue,a=t.isClearable,l=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,p=t.tabSelectsValue,f=t.openMenuOnFocus,d=r.state,h=d.focusedOption,m=d.focusedValue,g=d.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||s)return;r.focusValue("previous");break;case"ArrowRight":if(!n||s)return;r.focusValue("next");break;case"Delete":case"Backspace":if(s)return;if(m)r.removeValue(m);else{if(!i)return;n?r.popValue():a&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!c||!p||!h||f&&r.isOptionSelected(h,g))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(c){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":c?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close"}),r.onMenuClose()):a&&o&&r.clearValue();break;case" ":if(s)return;if(!c){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":c?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":c?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!c)return;r.focusOption("pageup");break;case"PageDown":if(!c)return;r.focusOption("pagedown");break;case"Home":if(!c)return;r.focusOption("first");break;case"End":if(!c)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.instancePrefix="react-select-"+(r.props.instanceId||++Un),r.state.selectValue=ct(e.value),r}return Ye(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(e){var t,n,r,i,o,s=this.props,a=s.isDisabled,l=s.menuIsOpen,c=this.state.isFocused;(c&&!a&&e.isDisabled||c&&l&&!e.menuIsOpen)&&this.focusInput(),c&&a&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),i=n.getBoundingClientRect(),o=n.offsetHeight/3,i.bottom+o>r.bottom?dt(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+o,t.scrollHeight)):i.top-o<r.top&&dt(t,Math.max(n.offsetTop-o,0)),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,i=n.isFocused,o=this.buildFocusableOptions(),s="first"===e?0:o.length-1;if(!this.props.isMulti){var a=o.indexOf(r[0]);a>-1&&(s=a)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[s]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(r);r||(i=-1);var o=n.length-1,s=-1;if(n.length){switch(e){case"previous":s=0===i?0:-1===i?o:i-1;break;case"next":i>-1&&i<o&&(s=i+1)}this.setState({inputIsHidden:-1!==s,focusedValue:n[s]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var i=0,o=r.indexOf(n);n||(o=-1),"up"===e?i=o>0?o-1:r.length-1:"down"===e?i=(o+1)%r.length:"pageup"===e?(i=o-t)<0&&(i=0):"pagedown"===e?(i=o+t)>r.length-1&&(i=r.length-1):"last"===e&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(An):nt(nt({},An),this.props.theme):An}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,i=this.selectOption,o=this.setValue,s=this.props,a=s.isMulti,l=s.isRtl,c=s.options;return{clearValue:e,cx:t,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:a,isRtl:l,options:c,selectOption:i,selectProps:s,setValue:o,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Fn(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return qn(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Bn(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,i=e.inputValue,o=e.tabIndex,s=e.form,a=this.getComponents().Input,l=this.state.inputIsHidden,u=this.commonProps,f=r||this.getElementId("input"),d={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};return n?p().createElement(a,c({},u,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:f,innerRef:this.getInputRef,isDisabled:t,isHidden:l,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:o,form:s,type:"text",value:i},d)):p().createElement(gn,c({id:f,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:st,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:o,form:s,value:""},d))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,i=t.MultiValueLabel,o=t.MultiValueRemove,s=t.SingleValue,a=t.Placeholder,l=this.commonProps,u=this.props,f=u.controlShouldRenderValue,d=u.isDisabled,h=u.isMulti,m=u.inputValue,g=u.placeholder,b=this.state,v=b.selectValue,y=b.focusedValue,w=b.isFocused;if(!this.hasValue()||!f)return m?null:p().createElement(a,c({},l,{key:"placeholder",isDisabled:d,isFocused:w}),g);if(h){var x=v.map((function(t,s){var a=t===y;return p().createElement(n,c({},l,{components:{Container:r,Label:i,Remove:o},isFocused:a,isDisabled:d,key:"".concat(e.getOptionValue(t)).concat(s),index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));return x}if(m)return null;var O=v[0];return p().createElement(s,c({},l,{data:O,isDisabled:d}),this.formatOptionLabel(O,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,o=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return p().createElement(e,c({},t,{innerProps:s,isFocused:o}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,o=this.state.isFocused;if(!e||!i)return null;return p().createElement(e,c({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:o}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,i=this.props.isDisabled,o=this.state.isFocused;return p().createElement(n,c({},r,{isDisabled:i,isFocused:o}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return p().createElement(e,c({},t,{innerProps:i,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,i=t.Menu,o=t.MenuList,s=t.MenuPortal,a=t.LoadingMessage,l=t.NoOptionsMessage,u=t.Option,f=this.commonProps,d=this.state.focusedOption,h=this.props,m=h.captureMenuScroll,g=h.inputValue,b=h.isLoading,v=h.loadingMessage,y=h.minMenuHeight,w=h.maxMenuHeight,x=h.menuIsOpen,O=h.menuPlacement,S=h.menuPosition,C=h.menuPortalTarget,k=h.menuShouldBlockScroll,_=h.menuShouldScrollIntoView,E=h.noOptionsMessage,T=h.onMenuScrollToTop,N=h.onMenuScrollToBottom;if(!x)return null;var P,A=function(t,n){var r=t.type,i=t.data,o=t.isDisabled,s=t.isSelected,a=t.label,l=t.value,h=d===i,m=o?void 0:function(){return e.onOptionHover(i)},g=o?void 0:function(){return e.selectOption(i)},b="".concat(e.getElementId("option"),"-").concat(n),v={id:b,onClick:g,onMouseMove:m,onMouseOver:m,tabIndex:-1};return p().createElement(u,c({},f,{innerProps:v,data:i,isDisabled:o,isSelected:s,key:b,label:a,type:r,value:l,isFocused:h,innerRef:h?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())P=this.getCategorizedOptions().map((function(t){if("group"===t.type){var i=t.data,o=t.options,s=t.index,a="".concat(e.getElementId("group"),"-").concat(s),l="".concat(a,"-heading");return p().createElement(n,c({},f,{key:a,data:i,options:o,Heading:r,headingProps:{id:l,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return A(e,"".concat(s,"-").concat(e.index))})))}if("option"===t.type)return A(t,"".concat(t.index))}));else if(b){var M=v({inputValue:g});if(null===M)return null;P=p().createElement(a,f,M)}else{var D=E({inputValue:g});if(null===D)return null;P=p().createElement(l,f,D)}var I={minMenuHeight:y,maxMenuHeight:w,menuPlacement:O,menuPosition:S,menuShouldScrollIntoView:_},R=p().createElement(Ct,c({},f,I),(function(t){var n=t.ref,r=t.placerProps,s=r.placement,a=r.maxHeight;return p().createElement(i,c({},f,I,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:b,placement:s}),p().createElement(Tn,{captureEnabled:m,onTopArrive:T,onBottomArrive:N,lockEnabled:k},(function(t){return p().createElement(o,c({},f,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:b,maxHeight:a,focusedOption:d}),P)})))}));return C||"fixed"===S?p().createElement(s,c({},f,{appendTo:C,controlElement:this.controlRef,menuPlacement:O,menuPosition:S}),R):R}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,o=t.name,s=this.state.selectValue;if(o&&!r){if(i){if(n){var a=s.map((function(t){return e.getOptionValue(t)})).join(n);return p().createElement("input",{name:o,type:"hidden",value:a})}var l=s.length>0?s.map((function(t,n){return p().createElement("input",{key:"i-".concat(n),name:o,type:"hidden",value:e.getOptionValue(t)})})):p().createElement("input",{name:o,type:"hidden"});return p().createElement("div",null,l)}var c=s[0]?this.getOptionValue(s[0]):"";return p().createElement("input",{name:o,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.isFocused,s=t.selectValue,a=this.getFocusableOptions();return p().createElement(on,c({},e,{ariaSelection:n,focusedOption:r,focusedValue:i,isFocused:o,selectValue:s,focusableOptions:a}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,o=this.props,s=o.className,a=o.id,l=o.isDisabled,u=o.menuIsOpen,f=this.state.isFocused,d=this.commonProps=this.getCommonProps();return p().createElement(r,c({},d,{className:s,innerProps:{id:a,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:f}),this.renderLiveRegion(),p().createElement(t,c({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:f,menuIsOpen:u}),p().createElement(i,c({},d,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),p().createElement(n,c({},d,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,o=e.options,s=e.value,a=e.menuIsOpen,l=e.inputValue,c={};if(n&&(s!==n.value||o!==n.options||a!==n.menuIsOpen||l!==n.inputValue)){var u=ct(s),p=a?function(e,t){return Rn(In(e,t))}(e,u):[],f=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,u):null,d=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,p);c={selectValue:u,focusedOption:d,focusedValue:f,clearFocusValueOnUpdate:!1}}var h=null!=i&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{};return nt(nt(nt({},c),h),{},{prevProps:e})}}]),n}(u.Component);zn.defaultProps=Mn;var $n,Wn,Gn,Zn={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},Xn=(u.Component,$n=zn,Gn=Wn=function(e){Ke(n,e);var t=ot(n);function n(){var e;Ze(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i))).select=void 0,e.state={inputValue:void 0!==e.props.inputValue?e.props.inputValue:e.props.defaultInputValue,menuIsOpen:void 0!==e.props.menuIsOpen?e.props.menuIsOpen:e.props.defaultMenuIsOpen,value:void 0!==e.props.value?e.props.value:e.props.defaultValue},e.onChange=function(t,n){e.callProp("onChange",t,n),e.setState({value:t})},e.onInputChange=function(t,n){var r=e.callProp("onInputChange",t,n);e.setState({inputValue:void 0!==r?r:t})},e.onMenuOpen=function(){e.callProp("onMenuOpen"),e.setState({menuIsOpen:!0})},e.onMenuClose=function(){e.callProp("onMenuClose"),e.setState({menuIsOpen:!1})},e}return Ye(n,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]}},{key:"callProp",value:function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return(t=this.props)[e].apply(t,r)}}},{key:"render",value:function(){var e=this,t=this.props;t.defaultInputValue,t.defaultMenuIsOpen,t.defaultValue;var n=We(t,["defaultInputValue","defaultMenuIsOpen","defaultValue"]);return p().createElement($n,c({},n,{ref:function(t){e.select=t},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),n}(u.Component),Wn.defaultProps=Zn,Gn);const Yn=Xn,Jn=window.wp.i18n,Kn=window.wp.compose;var Qn=n(5697),er=n.n(Qn),tr=n(4184),nr=n.n(tr),rr="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/blocks/src/components/CheckboxGroup/index.js",ir=void 0,or=function(e){var t=e.id,n=e.className,r=e.heading,i=e.help,o=e.options,s=e.values,a=e.onChange,c=function(e,t){var n=Jt(s),r=n.findIndex((function(t){return t.value===e}));-1!==r?n[r].checked=t:n.push({value:e,checked:t}),a(n)};return React.createElement("fieldset",{className:nr()("components-block-fields-checkbox-group",n),__self:ir,__source:{fileName:rr,lineNumber:43,columnNumber:3}},r&&React.createElement("legend",{__self:ir,__source:{fileName:rr,lineNumber:44,columnNumber:17}},r),o.map((function(e){var t=s.find((function(t){return t.value===e.value}))||!1;return React.createElement(l.CheckboxControl,{key:e.value,label:e.label,checked:t.checked||!1,onChange:function(t){return c(e.value,t)},__self:ir,__source:{fileName:rr,lineNumber:50,columnNumber:6}})})),!!i&&React.createElement("p",{id:t+"__help",className:"components-block-fields-checkbox-group__help",__self:ir,__source:{fileName:rr,lineNumber:60,columnNumber:5}},i))};or.propTypes={id:er().string,className:er().string,heading:er().string,help:er().string,options:er().arrayOf(er().shape({label:er().string.isRequired,value:er().string.isRequired})),values:er().arrayOf(er().shape({value:er().string.isRequired,checked:er().bool})),onChange:er().func.isRequired},or.defaultProps={id:"",className:null,heading:null,help:null,options:[],values:[]};const sr=or;var ar="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/blocks/src/components/CheckboxControlExtended/index.js",lr=void 0,cr=function(e){var t=e.className,n=e.heading,r=e.label,i=e.help,o=e.checked,s=e.onChange;return React.createElement("fieldset",{className:nr()("components-block-fields-checkbox-control",t),__self:lr,__source:{fileName:ar,lineNumber:23,columnNumber:3}},n&&React.createElement("legend",{__self:lr,__source:{fileName:ar,lineNumber:24,columnNumber:17}},n),React.createElement(l.CheckboxControl,{label:r,help:i,checked:o,onChange:s,__self:lr,__source:{fileName:ar,lineNumber:25,columnNumber:4}}))};cr.propTypes={className:er().string,heading:er().string,label:er().string,help:er().string,checked:er().bool,onChange:er().func.isRequired},cr.defaultProps={className:null,heading:null,label:null,help:null,checked:!1};const ur=cr,pr=window.lodash,fr=window.wp.keycodes;var dr=["className","isShiftStepEnabled","max","min","onChange","onKeyDown","shiftStep","step"];function hr(e){var t=e.className,n=e.isShiftStepEnabled,r=void 0===n||n,i=e.max,o=void 0===i?1/0:i,s=e.min,a=void 0===s?-1/0:s,l=e.onChange,u=void 0===l?pr.noop:l,p=e.onKeyDown,f=void 0===p?pr.noop:p,d=e.shiftStep,h=void 0===d?10:d,m=e.step,g=void 0===m?1:m,b=We(e,dr),v=(0,pr.clamp)(0,a,o),y=nr()("component-number-control",t);return React.createElement("input",c({inputMode:"numeric"},b,{className:y,type:"number",onChange:function(e){u(e.target.value,{event:e})},onKeyDown:function(e){f(e);var t=e.target.value,n=""===t,i=e.shiftKey&&r?parseFloat(h):parseFloat(g),s=n?v:t;switch(s=parseFloat(s),e.keyCode){case fr.UP:e.preventDefault(),s+=i,s=(0,pr.clamp)(s,a,o),u(s.toString(),{event:e});break;case fr.DOWN:e.preventDefault(),s-=i,s=(0,pr.clamp)(s,a,o),u(s.toString(),{event:e})}},__self:this,__source:{fileName:"/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/blocks/src/components/NumberControl/index.js",lineNumber:70,columnNumber:3}}))}var mr="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/blocks/src/blocks/components/RenderedField.js",gr=void 0;function br(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?br(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):br(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const yr=function(e){var t=e.field,n=e.attributes,r=e.setAttributes,o=t.name,s=t.type,c=t.fieldOptions,u=void 0===c?{}:c,p=n[o],f=function(e,t,n){return function(r){t(i({},e,"NumberControl"===n?parseInt(r,10):r))}}(o,r,s);switch(s){case"TextControl":var d=u.fieldType,h=void 0===d?"text":d,m=u.help,g=u.label;return React.createElement(l.TextControl,{key:o,label:g,value:p,type:h,help:m,onChange:f,__self:gr,__source:{fileName:mr,lineNumber:83,columnNumber:5}});case"TextareaControl":var b=u.help,v=u.label;return React.createElement(l.TextareaControl,{key:o,label:v,value:p,help:b,rows:"4",onChange:f,__self:gr,__source:{fileName:mr,lineNumber:100,columnNumber:5}});case"RichText":var y=u.tagName,w=void 0===y?"p":y;return React.createElement(a.RichText,{key:o,tagName:w,value:p,onChange:f,__self:gr,__source:{fileName:mr,lineNumber:114,columnNumber:5}});case"CheckboxControl":var x=u.label,O=u.help,S=u.heading,C=void 0===S?"":S;return React.createElement(ur,{key:o,heading:C,label:x,help:O,checked:p,onChange:f,__self:gr,__source:{fileName:mr,lineNumber:130,columnNumber:5}});case"CheckboxGroup":var k=u.help,_=u.options,E=u.heading,T=void 0===E?"":E;return React.createElement(sr,{key:o,heading:T,help:k,options:_,values:p,onChange:f,__self:gr,__source:{fileName:mr,lineNumber:148,columnNumber:5}});case"RadioControl":var N=u.help,P=u.options;return React.createElement(l.RadioControl,{key:o,help:N,options:P,selected:p,onChange:f,__self:gr,__source:{fileName:mr,lineNumber:165,columnNumber:5}});case"SelectControl":var A=u.options,M=u.multiple,D=u.label,I=(0,Kn.useInstanceId)(Yn),R="inspector-select-control-".concat(I);return React.createElement(l.BaseControl,{label:D,id:R,key:o,className:"full-width-base-control",__self:gr,__source:{fileName:mr,lineNumber:185,columnNumber:5}},React.createElement(Yn,{id:R,name:o,options:A,value:p,isMulti:M,onChange:f,styles:{container:function(e){return vr(vr({},e),{},{width:"100%"})}},__self:gr,__source:{fileName:mr,lineNumber:191,columnNumber:6}}));case"DateTimePicker":var L=u.is12Hour,j=u.label;return React.createElement(l.BaseControl,{label:j,key:o,__self:gr,__source:{fileName:mr,lineNumber:215,columnNumber:5}},React.createElement(l.DateTimePicker,{currentDate:p,onChange:f,is12Hour:L,__self:gr,__source:{fileName:mr,lineNumber:219,columnNumber:6}}));case"NumberControl":var V=u.isShiftStepEnabled,F=u.shiftStep,q=u.label,B=u.max,H=void 0===B?1/0:B,U=u.min,z=void 0===U?-1/0:U,$=u.step,W=void 0===$?1:$,G=(0,Kn.useInstanceId)(hr),Z="inspector-number-control-".concat(G);return React.createElement(l.BaseControl,{label:q,id:Z,key:o,__self:gr,__source:{fileName:mr,lineNumber:241,columnNumber:5}},React.createElement(hr,{id:Z,onChange:f,isShiftStepEnabled:V,shiftStep:F,max:H,min:z,step:W,value:p||"",__self:gr,__source:{fileName:mr,lineNumber:246,columnNumber:6}}));case"MediaUpload":return React.createElement("div",{__self:gr,__source:{fileName:mr,lineNumber:263,columnNumber:5}},React.createElement(a.MediaUploadCheck,{__self:gr,__source:{fileName:mr,lineNumber:264,columnNumber:6}},React.createElement(a.MediaUpload,{onSelect:function(e){f({id:e.id,url:e.url,title:e.title})},allowedTypes:["image"],value:p,render:function(e){var t=e.open;return React.createElement(l.Button,{onClick:t,isPrimary:!0,__self:gr,__source:{fileName:mr,lineNumber:272,columnNumber:9}},(0,Jn.__)("Upload"))},__self:gr,__source:{fileName:mr,lineNumber:265,columnNumber:7}})),!!p&&React.createElement(l.Button,{onClick:function(){return f(null)},isSecondary:!0,__self:gr,__source:{fileName:mr,lineNumber:279,columnNumber:7}},(0,Jn.__)("Remove Upload")),p&&!!p.title&&React.createElement("div",{__self:gr,__source:{fileName:mr,lineNumber:287,columnNumber:7}},p.title));case"ColorPicker":return React.createElement(l.ColorPicker,{color:p,onChangeComplete:function(e){return f(e.hex)},disableAlpha:!0,__self:gr,__source:{fileName:mr,lineNumber:296,columnNumber:5}});default:return null}};var wr="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/blocks/src/blocks/components/FieldInspectorControls.js",xr=void 0;const Or=function(e){var t=e.fields,n=void 0===t?[]:t,r=e.attributes,i=e.setAttributes;return n.length?React.createElement("div",{className:"pods-inspector-rows",__self:xr,__source:{fileName:wr,lineNumber:29,columnNumber:3}},n.map((function(e){var t=e.name;return React.createElement(l.PanelRow,{key:t,className:"pods-inspector-row",__self:xr,__source:{fileName:wr,lineNumber:36,columnNumber:6}},React.createElement(yr,{field:e,attributes:r,setAttributes:i,__self:xr,__source:{fileName:wr,lineNumber:37,columnNumber:7}}))}))):null};var Sr=n(1036),Cr=n.n(Sr);const kr=window.wp.autop,_r=window.wp.date,Er=window.wp.serverSideRender;var Tr=n.n(Er);function Nr(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Pr(e){return Pr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Pr(e)}const Ar=window.wp.element,Mr=window.wp.apiFetch;var Dr=n.n(Mr);const Ir=window.wp.url;var Rr="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/blocks/src/blocks/components/PodsServerSideRender.js",Lr=void 0;function jr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pr(e);if(t){var i=Pr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Nr(this,n)}}function Vr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vr(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qr=function(e){Ke(n,e);var t=jr(n);function n(e){var r;return Ze(this,n),(r=t.call(this,e)).state={response:null},r}return Ye(n,[{key:"componentDidMount",value:function(){this.isStillMounted=!0,this.fetch(this.props),this.fetch=(0,pr.debounce)(this.fetch,500)}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1}},{key:"componentDidUpdate",value:function(e){(0,pr.isEqual)(e,this.props)||this.fetch(this.props)}},{key:"fetch",value:function(e){var t=this;if(this.isStillMounted){null!==this.state.response&&this.setState({response:null});var n=e.block,r=e.attributes,i=void 0===r?null:r,o=e.httpMethod,s=void 0===o?"GET":o,a=e.urlQueryArgs,l="POST"===s,c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,Ir.addQueryArgs)("/wp/v2/block-renderer/".concat(e),Fr(Fr({context:"edit"},null!==t?{attributes:t}:{}),n))}(n,l?null:i,void 0===a?{}:a),u=l?{attributes:i}:null,p=this.currentFetchRequest=Dr()({path:c,data:u,method:l?"POST":"GET"}).then((function(e){t.isStillMounted&&p===t.currentFetchRequest&&e&&t.setState({response:e.rendered})})).catch((function(e){t.isStillMounted&&p===t.currentFetchRequest&&t.setState({response:{error:!0,errorMsg:e.message}})}));return p}}},{key:"render",value:function(){var e=this,t=this.state.response,n=this.props,r=n.className,i=n.EmptyResponsePlaceholder,o=n.ErrorResponsePlaceholder,l=n.LoadingResponsePlaceholder;return""===t?React.createElement(i,c({response:t},this.props,{__self:this,__source:{fileName:Rr,lineNumber:117,columnNumber:11}})):t?t.error?React.createElement(o,c({response:t},this.props,{__self:this,__source:{fileName:Rr,lineNumber:126,columnNumber:5}})):s(t,{replace:function(t){if("innerblocks"===t.name)return void 0!==t.attribs.template&&(t.attribs.template=JSON.parse(t.attribs.template)),void 0!==t.attribs.allowedBlocks&&(t.attribs.allowedBlocks=JSON.parse(t.attribs.allowedBlocks)),void 0!==t.attribs.templateLock&&"false"===t.attribs.templateLock&&(t.attribs.templateLock=!1),React.createElement(a.InnerBlocks,c({className:r},t.attribs,{__self:e,__source:{fileName:Rr,lineNumber:144,columnNumber:13}}))}}):React.createElement(l,c({response:t},this.props,{__self:this,__source:{fileName:Rr,lineNumber:121,columnNumber:5}}))}}]),n}(Ar.Component);qr.defaultProps={EmptyResponsePlaceholder:function(e){var t=e.className;return React.createElement(l.Placeholder,{className:t,__self:Lr,__source:{fileName:Rr,lineNumber:153,columnNumber:3}},(0,Jn.__)("Block rendered as empty."))},ErrorResponsePlaceholder:function(e){var t=e.response,n=e.className,r=(0,Jn.sprintf)((0,Jn.__)("Error loading block: %s"),t.errorMsg);return React.createElement(l.Placeholder,{className:n,__self:Lr,__source:{fileName:Rr,lineNumber:163,columnNumber:10}},r)},LoadingResponsePlaceholder:function(e){var t=e.className;return React.createElement(l.Placeholder,{className:t,__self:Lr,__source:{fileName:Rr,lineNumber:167,columnNumber:4}},React.createElement(l.Spinner,{__self:Lr,__source:{fileName:Rr,lineNumber:168,columnNumber:5}}))}};const Br=qr;var Hr={allowedTags:["blockquote","caption","div","figcaption","figure","h1","h2","h3","h4","h5","h6","hr","li","ol","p","pre","section","table","tbody","td","th","thead","tr","ul","a","abbr","acronym","audio","b","bdi","bdo","big","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","label","map","mark","meter","noscript","object","output","picture","progress","q","ruby","s","samp","select","slot","small","span","strong","sub","sup","svg","template","textarea","time","u","tt","var","video","wbr"],allowedAttributes:{"*":["class","id","data-*","style"],iframe:["*"],a:["href","name","target"],img:["src","srcset","sizes","alt","width","height"]},selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto"],allowedSchemesByTag:{},allowProtocolRelative:!0},Ur={allowedTags:[],allowedAttributes:{}};function zr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zr(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Wr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o=Cr()(e,Hr),a=[];return t.forEach((function(e){var t="function"==typeof i?r(e,n,i):r(e,n);t&&(a[e.name]=$r({},t.props));var s=t?(0,Ar.renderToString)(t):"";o=o.replace(new RegExp("{@".concat(e.name,"}"),"g"),s)})),s(o)};var Gr="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/blocks/src/blocks/components/BlockPreview.js",Zr=void 0,Xr=function(e,t){var n=e.name,r=e.fieldOptions,i=e.type,o=t[n];if(void 0===o)return null;switch(i){case"TextControl":return React.createElement("div",{key:n,className:"field--textcontrol",__self:Zr,__source:{fileName:Gr,lineNumber:51,columnNumber:5}},Cr()(o,Ur));case"TextareaControl":var s=r.auto_p,l=Cr()(o,Ur);return React.createElement("div",{key:n,className:"field--textareacontrol",dangerouslySetInnerHTML:{__html:s?(0,kr.autop)(l):l},__self:Zr,__source:{fileName:Gr,lineNumber:64,columnNumber:5}});case"RichText":return React.createElement(a.RichText.Content,{key:n,tagName:"p",value:o,className:"field--richtext",__self:Zr,__source:{fileName:Gr,lineNumber:75,columnNumber:5}});case"CheckboxControl":return React.createElement("div",{key:n,className:"field--checkbox",__self:Zr,__source:{fileName:Gr,lineNumber:85,columnNumber:5}},o?(0,Jn.__)("Yes"):(0,Jn.__)("No"));case"CheckboxGroup":var c=r.options,u=Array.isArray(o)?o.filter((function(e){return!!e.checked})):[];return React.createElement("div",{key:n,className:"field--checkbox-group",__self:Zr,__source:{fileName:Gr,lineNumber:100,columnNumber:5}},u.length?u.map((function(e,t){var n=c.find((function(t){return e.value===t.value}));return React.createElement("span",{className:"field--checkbox-group__item",key:e.value,__self:Zr,__source:{fileName:Gr,lineNumber:106,columnNumber:9}},n.label,t<u.length-1?", ":"")})):"N/A");case"RadioControl":var p=r.options.find((function(e){return o===e.value}));return React.createElement("div",{key:n,className:"field--radio-control",__self:Zr,__source:{fileName:Gr,lineNumber:125,columnNumber:5}},p?p.label:"N/A");case"SelectControl":if(!Array.isArray(o))return React.createElement("div",{key:n,className:"field--select-control",__self:Zr,__source:{fileName:Gr,lineNumber:134,columnNumber:6}},o.label||"N/A");var f=o;return React.createElement("div",{key:n,className:"field--select-control field--multiple-select-control",__self:Zr,__source:{fileName:Gr,lineNumber:142,columnNumber:5}},f.length?f.map((function(e,t){return React.createElement("span",{className:"field--select-group__item",key:e,__self:Zr,__source:{fileName:Gr,lineNumber:146,columnNumber:9}},e.label,t<f.length-1?", ":"")})):"N/A");case"DateTimePicker":var d=(0,_r.__experimentalGetSettings)().formats.datetime;return React.createElement("div",{key:n,className:"field--date-time",__self:Zr,__source:{fileName:Gr,lineNumber:163,columnNumber:5}},React.createElement("time",{dateTime:(0,_r.format)("c",o),__self:Zr,__source:{fileName:Gr,lineNumber:164,columnNumber:6}},(0,_r.dateI18n)(d,o)));case"NumberControl":var h=(0,_r.__experimentalGetSettings)().l10n.locale;return h=h.replace("_","-"),React.createElement("div",{key:n,className:"field--number",__self:Zr,__source:{fileName:Gr,lineNumber:178,columnNumber:5}},!!o&&o.toLocaleString(h));case"MediaUpload":return React.createElement("div",{key:n,className:"field--media-upload",__self:Zr,__source:{fileName:Gr,lineNumber:185,columnNumber:5}},o&&o.url||"N/A");case"ColorPicker":return React.createElement("div",{key:n,className:"field--color",style:{color:o},__self:Zr,__source:{fileName:Gr,lineNumber:192,columnNumber:5}},o);default:return null}};const Yr=function(e){var t=e.block,n=e.attributes,r=void 0===n?{}:n,i=e.context,o=void 0===i?{}:i,s=t.blockName,a=t.fields,l=void 0===a?[]:a,c=t.renderTemplate,u=t.renderType,p=t.supports,f=void 0===p?{jsx:!1}:p,d=t.usesContext;if("php"===u){var h={podsContext:{}};return(void 0===d?[]:d).forEach((function(e){var t;h.podsContext[e]=null!==(t=o[e])&&void 0!==t?t:null})),!0===f.jsx?React.createElement(Br,{block:s,attributes:r,urlQueryArgs:h,__self:Zr,__source:{fileName:Gr,lineNumber:234,columnNumber:5}}):React.createElement(Tr(),{block:s,attributes:r,urlQueryArgs:h,__self:Zr,__source:{fileName:Gr,lineNumber:243,columnNumber:4}})}return React.createElement(React.Fragment,null,Wr(c,l,r,Xr,o))};var Jr="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/blocks/src/blocks/createBlockEditComponent.js",Kr=void 0;const Qr=function(e){return function(t){var n=e.fields,r=void 0===n?[]:n,i=e.blockName,o=e.blockGroupLabel,s=t.className,c=t.attributes,u=void 0===c?{}:c,p=t.setAttributes,f=t.context,d=void 0===f?{}:f;return React.createElement("div",{className:s,__self:Kr,__source:{fileName:Jr,lineNumber:35,columnNumber:3}},React.createElement(a.InspectorControls,{__self:Kr,__source:{fileName:Jr,lineNumber:36,columnNumber:4}},React.createElement(l.PanelBody,{title:o,key:i,__self:Kr,__source:{fileName:Jr,lineNumber:37,columnNumber:5}},React.createElement(Or,{fields:r,attributes:u,setAttributes:p,__self:Kr,__source:{fileName:Jr,lineNumber:41,columnNumber:6}}))),React.createElement(Yr,{block:e,attributes:u,context:d,__self:Kr,__source:{fileName:Jr,lineNumber:48,columnNumber:4}}))}};function ei(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ti(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ei(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ei(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ni=function(e){return e.reduce((function(e,t){if(!t.name)return e;var n=t.name,r=t.attributeOptions;return ti(ti({},e),{},i({},n,ti(ti({},r),{},{type:r.type||"string"})))}),{})};var ri="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/blocks/src/blocks/index.js",ii=void 0;function oi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function si(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oi(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ai=function(t){var n=t.blockName,i=t.fields,o=t.icon;o="pods"===o?React.createElement("svg",{width:"366",height:"364",viewBox:"0 0 366 364",fill:"none",xmlns:"http://www.w3.org/2000/svg",__self:ii,__source:{fileName:ri,lineNumber:29,columnNumber:4}},React.createElement("mask",{id:"mask0","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"20",y:"20",width:"323",height:"323",__self:ii,__source:{fileName:ri,lineNumber:29,columnNumber:103}},React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.9831 181.536C20.9831 270.512 93.6969 342.643 183.391 342.643V342.643C249.369 342.643 306.158 303.616 331.578 247.565V247.565C324.498 226.102 318.371 188.341 342.809 150.596V150.596C341.764 145.264 340.453 140.028 338.892 134.9V134.9C263.955 208.73 203.453 215.645 157.9 214.441V214.441C157.479 214.428 155.947 214.182 155.54 213.271V213.271C155.54 213.271 154.876 210.318 156.817 210.318V210.318C244.089 210.318 293.793 159.374 334.401 122.125V122.125C332.186 116.587 329.669 111.202 326.872 105.984V105.984C283.096 94.0368 266.274 58.4662 260.302 39.603V39.603C237.409 27.369 211.218 20.4269 183.391 20.4269V20.4269C93.6969 20.4269 20.9831 92.5574 20.9831 181.536V181.536ZM227.603 68.9767C227.603 68.9767 289.605 62.283 307.865 138.292V138.292C240.112 133.656 227.603 68.9767 227.603 68.9767V68.9767ZM202.795 100.959C202.795 100.959 257.765 99.1382 270.278 167.335V167.335C210.771 158.793 202.795 100.959 202.795 100.959V100.959ZM172.601 128.062C172.601 128.062 222.07 124.859 234.729 185.925V185.925C180.956 179.926 172.601 128.062 172.601 128.062V128.062ZM307.865 138.292C307.936 138.296 308 138.3 308.07 138.306V138.306L307.921 138.528C307.903 138.449 307.884 138.37 307.865 138.292V138.292ZM146.277 149.601C146.277 149.601 189.744 146.781 200.869 200.439V200.439C153.619 195.171 146.277 149.601 146.277 149.601V149.601ZM111.451 154.862C111.451 154.862 153.207 152.159 163.891 203.7V203.7C118.507 198.639 111.451 154.862 111.451 154.862V154.862ZM76.9799 157.234C76.9799 157.234 114.875 154.782 124.574 201.557V201.557C83.3817 196.962 76.9799 157.234 76.9799 157.234V157.234ZM39.5 164.081C39.5 164.081 71.2916 155.788 84.9886 193.798V193.798C83.4985 193.918 82.0535 193.976 80.6516 193.976V193.976C48.7552 193.975 39.5 164.081 39.5 164.081V164.081ZM310.084 167.245C310.06 167.175 310.035 167.102 310.013 167.033V167.033L310.233 167.093C310.184 167.143 310.134 167.194 310.084 167.245V167.245C333.75 238.013 291.599 276.531 291.599 276.531V276.531C291.599 276.531 261.982 216.144 310.084 167.245V167.245ZM270.278 167.335C270.337 167.343 270.396 167.351 270.455 167.36V167.36L270.317 167.544C270.305 167.473 270.293 167.406 270.278 167.335V167.335ZM234.729 185.925C234.782 185.931 234.838 185.937 234.89 185.943V185.943L234.769 186.111C234.756 186.046 234.744 185.988 234.729 185.925V185.925ZM275.24 192.061C275.232 191.992 275.224 191.919 275.218 191.849V191.849L275.405 191.966C275.35 191.999 275.296 192.03 275.24 192.061V192.061C282.645 263.228 236.486 286.583 236.486 286.583V286.583C236.486 286.583 221.57 223.215 275.24 192.061V192.061ZM85.0914 193.789L85.0296 193.912C85.0164 193.873 85.0009 193.834 84.9888 193.798V193.798C85.023 193.795 85.0572 193.792 85.0914 193.789V193.789ZM200.869 200.439C200.916 200.443 200.96 200.449 201.007 200.453V200.453L200.903 200.605C200.891 200.549 200.88 200.494 200.869 200.439V200.439ZM124.574 201.557C124.615 201.563 124.658 201.567 124.699 201.572V201.572L124.604 201.7C124.594 201.651 124.585 201.605 124.574 201.557V201.557ZM68.5101 213.185C68.5101 213.185 95.2467 187.93 129.068 216.089V216.089C118.738 224.846 108.962 227.859 100.399 227.859V227.859C81.5012 227.859 68.5101 213.185 68.5101 213.185V213.185ZM163.892 203.7C163.937 203.704 163.982 203.71 164.027 203.714V203.714L163.926 203.862C163.915 203.809 163.903 203.753 163.892 203.7V203.7ZM234.165 211.88C234.166 211.817 234.166 211.751 234.168 211.688V211.688L234.322 211.818C234.269 211.839 234.218 211.859 234.165 211.88V211.88C233.531 275.684 190.467 289.79 190.467 289.79V289.79C190.467 289.79 183.695 231.809 234.165 211.88V211.88ZM129.165 216.006V216.17C129.132 216.143 129.1 216.117 129.068 216.089V216.089C129.099 216.061 129.132 216.034 129.165 216.006V216.006ZM107.192 250.617C107.192 250.617 121.444 213.844 162.374 221.007V221.007C150.672 247.473 132.265 252.505 119.969 252.505V252.505C112.432 252.505 107.192 250.617 107.192 250.617V250.617ZM162.431 220.877L162.492 221.028C162.452 221.021 162.414 221.014 162.374 221.007V221.007C162.394 220.963 162.412 220.921 162.431 220.877V220.877ZM196.004 223.125C196.014 223.072 196.024 223.016 196.034 222.962V222.962L196.15 223.104C196.101 223.111 196.053 223.119 196.004 223.125V223.125C186.212 277.983 147.054 281.435 147.054 281.435V281.435C147.054 281.435 149.621 230.095 196.004 223.125V223.125Z",fill:"white",__self:ii,__source:{fileName:ri,lineNumber:29,columnNumber:204}})),React.createElement("g",{mask:"url(#mask0)",__self:ii,__source:{fileName:ri,lineNumber:29,columnNumber:4543}},React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.95319 9.48413H353.838V353.586H9.95319V9.48413Z",fill:"#95BF3B",__self:ii,__source:{fileName:ri,lineNumber:29,columnNumber:4565}})),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M182.999 11.2219C88.3278 11.2219 11.3101 87.6245 11.3101 181.535C11.3101 275.448 88.3278 351.85 182.999 351.85C277.67 351.85 354.69 275.448 354.69 181.535C354.69 87.6245 277.67 11.2219 182.999 11.2219M182.999 363.071C82.0925 363.071 0 281.633 0 181.535C0 81.4362 82.0925 0 182.999 0C283.905 0 366 81.4362 366 181.535C366 281.633 283.905 363.071 182.999 363.071",fill:"#95BF3B",__self:ii,__source:{fileName:ri,lineNumber:29,columnNumber:4684}})):s(o);var a=si({},t);delete a.blockName,delete a.fields,delete a.renderType;if(a.attributes=ni(i),a.transforms&&a.transforms.from&&[]!==a.transforms.from){var l=[];a.transforms.from.forEach((function(e){if("shortcode"===e.type){var t=a.attributes;if(e.attributes=function(e,t){var n,i=null!==(n=e.attributes)&&void 0!==n?n:null;if(!i)return{};var o=Object.keys(i),s={};return o.forEach((function(e){var n,o=i[e];if("shortcode"===(null!==(n=o.source)&&void 0!==n?n:"")){var a,l,c,u;delete o.source;var p=null!==(a=null!==(l=o.selector)&&void 0!==l?l:o.attribute)&&void 0!==a?a:null,f=null!==(c=o.type)&&void 0!==c?c:"string",d=null!==(u=o.attribute)&&void 0!==u?u:e;if(!p)return;null!=o&&o.selector&&delete o.selector,o.shortcode=function(e,n){var i,s,a,l,c=e.named,u=n.shortcode,h=null!==(i=c[p])&&void 0!==i?i:null,m=null!==(s=t[d])&&void 0!==s?s:null,g=null!==(a=null==m?void 0:m.default)&&void 0!==a?a:null,b=null!==(l=u.content)&&void 0!==l?l:"";return null===h&&(h=g),"boolean"===f?null!==h&&("true"===h||!0===h||"1"===h||1===h||"yes"===h||"on"===h):"object"===f?null===h?{label:"",value:""}:"object"===r(h)?h:{label:h=h.toString(),value:h}:"array"===f?null===h?[]:Array.isArray(h)?h:h.split(","):"string"===f?null===h?"":h.toString():"integer"===f||"number"===f?null===h?0:parseInt(h):"string_integer"===f?(o.type="string",null===h?"0":parseInt(h).toString()):"content"===f?(o.type="string",""!==b?b.toString():null===h?"":h.toString()):h}}s[e]=o})),s}(e,t),(null==e||!e.isMatch)&&null!=e&&e.isMatchConfig){var n=e.isMatchConfig;delete e.isMatchConfig,e.isMatch=function(e){var t=e.named;return function(e,t){if(!e||!Array.isArray(e))return!0;var n=!0;return e.forEach((function(e){var r,i=null!==(r=t[e.name])&&void 0!==r?r:null;(null!=e&&e.required&&!i||null!=e&&e.excluded&&null!=i)&&(n=!1)})),n}(n,t)}}l.push(e)}else l.push(e)})),a.transforms.from=l}else delete a.transforms;(0,e.registerBlockType)(n,si(si({},a),{},{apiVersion:1,edit:Qr(t),icon:o,save:function(){return null}}))};window.podsBlocksConfig.collections.forEach(t),window.podsBlocksConfig.blocks.forEach(ai)})()})();
|
1 |
+
(()=>{var e={4184:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)){if(r.length){var s=i.apply(null,r);s&&e.push(s)}}else if("object"===o)if(r.toString===Object.prototype.toString)for(var a in r)n.call(r,a)&&r[a]&&e.push(a);else e.push(r.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},9996:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function i(e,t,r){return e.concat(t).map((function(e){return n(e,r)}))}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function s(e,t){try{return t in e}catch(e){return!1}}function a(e,t,r){var i={};return r.isMergeableObject(e)&&o(e).forEach((function(t){i[t]=n(e[t],r)})),o(t).forEach((function(o){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(s(e,o)&&r.isMergeableObject(t[o])?i[o]=function(e,t){if(!t.customMerge)return l;var r=t.customMerge(e);return"function"==typeof r?r:l}(o,r)(e[o],t[o],r):i[o]=n(t[o],r))})),i}function l(e,r,o){(o=o||{}).arrayMerge=o.arrayMerge||i,o.isMergeableObject=o.isMergeableObject||t,o.cloneUnlessOtherwiseSpecified=n;var s=Array.isArray(r);return s===Array.isArray(e)?s?o.arrayMerge(e,r,o):a(e,r,o):n(r,o)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return l(e,r,t)}),{})};var c=l;e.exports=c},9960:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(r=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===r.Tag||e.type===r.Script||e.type===r.Style},t.Root=r.Root,t.Text=r.Text,t.Directive=r.Directive,t.Comment=r.Comment,t.Script=r.Script,t.Style=r.Style,t.Tag=r.Tag,t.CDATA=r.CDATA,t.Doctype=r.Doctype},3150:e=>{"use strict";e.exports=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},8679:(e,t,r)=>{"use strict";var n=r(1296),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return n.isMemo(e)?s:a[e.$$typeof]||i}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=s;var c=Object.defineProperty,u=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var i=f(r);i&&i!==h&&e(t,i,n)}var s=u(r);p&&(s=s.concat(p(r)));for(var a=l(t),m=l(r),g=0;g<s.length;++g){var b=s[g];if(!(o[b]||n&&n[b]||m&&m[b]||a&&a[b])){var v=d(r,b);try{c(t,b,v)}catch(e){}}}}return t}},6103:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,y=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case p:case o:case a:case s:case f:return e;default:switch(e=e&&e.$$typeof){case c:case d:case g:case m:case l:return e;default:return t}}case i:return t}}}function O(e){return x(e)===p}t.AsyncMode=u,t.ConcurrentMode=p,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=d,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=a,t.StrictMode=s,t.Suspense=f,t.isAsyncMode=function(e){return O(e)||x(e)===u},t.isConcurrentMode=O,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===a},t.isStrictMode=function(e){return x(e)===s},t.isSuspense=function(e){return x(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===p||e===a||e===s||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===d||e.$$typeof===v||e.$$typeof===y||e.$$typeof===w||e.$$typeof===b)},t.typeOf=x},1296:(e,t,r)=>{"use strict";e.exports=r(6103)},885:e=>{e.exports={CASE_SENSITIVE_TAG_NAMES:["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussainBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]}},8276:(e,t,r)=>{var n="html",i="head",o="body",s=/<([a-zA-Z]+[0-9]?)/,a=/<head.*>/i,l=/<body.*>/i,c=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},u=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")};if("function"==typeof window.DOMParser){var p=new window.DOMParser;c=u=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),p.parseFromString(e,"text/html")}}if(document.implementation){var d=r(1507).isIE,f=document.implementation.createHTMLDocument(d()?"html-dom-parser":void 0);c=function(e,t){return t?(f.documentElement.getElementsByTagName(t)[0].innerHTML=e,f):(f.documentElement.innerHTML=e,f)}}var h,m=document.createElement("template");m.content&&(h=function(e){return m.innerHTML=e,m.content.childNodes}),e.exports=function(e){var t,r,p,d,f=e.match(s);switch(f&&f[1]&&(t=f[1].toLowerCase()),t){case n:return r=u(e),a.test(e)||(p=r.getElementsByTagName(i)[0])&&p.parentNode.removeChild(p),l.test(e)||(p=r.getElementsByTagName(o)[0])&&p.parentNode.removeChild(p),r.getElementsByTagName(n);case i:case o:return d=c(e).getElementsByTagName(t),l.test(e)&&a.test(e)?d[0].parentNode.childNodes:d;default:return h?h(e):c(e,o).getElementsByTagName(o)[0].childNodes}}},4152:(e,t,r)=>{var n=r(8276),i=r(1507).formatDOM,o=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(""===e)return[];var t,r=e.match(o);return r&&r[1]&&(t=r[1]),i(n(e),null,t)}},1507:(e,t,r)=>{for(var n,i=r(885),o=r(1642),s=i.CASE_SENSITIVE_TAG_NAMES,a=o.Comment,l=o.Element,c=o.ProcessingInstruction,u=o.Text,p={},d=0,f=s.length;d<f;d++)n=s[d],p[n.toLowerCase()]=n;function h(e){for(var t,r={},n=0,i=e.length;n<i;n++)r[(t=e[n]).name]=t.value;return r}function m(e){var t=function(e){return p[e]}(e=e.toLowerCase());return t||e}e.exports={formatAttributes:h,formatDOM:function e(t,r,n){r=r||null;for(var i=[],o=0,s=t.length;o<s;o++){var p,d=t[o];switch(d.nodeType){case 1:(p=new l(m(d.nodeName),h(d.attributes))).children=e(d.childNodes,p);break;case 3:p=new u(d.nodeValue);break;case 8:p=new a(d.nodeValue);break;default:continue}var f=i[o-1]||null;f&&(f.next=p),p.parent=r,p.prev=f,p.next=null,i.push(p)}return n&&((p=new c(n.substring(0,n.indexOf(" ")).toLowerCase(),n)).next=i[0]||null,p.parent=r,i.unshift(p),i[1]&&(i[1].prev=i[0])),i},isIE:function(){return/(MSIE |Trident\/|Edge\/)/.test(navigator.userAgent)}}},1642:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var s=r(9960),a=new Map([[s.ElementType.Tag,1],[s.ElementType.Script,1],[s.ElementType.Style,1],[s.ElementType.Directive,1],[s.ElementType.Text,3],[s.ElementType.CDATA,4],[s.ElementType.Comment,8],[s.ElementType.Root,9]]),l=function(){function e(e){this.type=e,this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"nodeType",{get:function(){var e;return null!==(e=a.get(this.type))&&void 0!==e?e:1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),O(this,e)},e}();t.Node=l;var c=function(e){function t(t,r){var n=e.call(this,t)||this;return n.data=r,n}return i(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(l);t.DataNode=c;var u=function(e){function t(t){return e.call(this,s.ElementType.Text,t)||this}return i(t,e),t}(c);t.Text=u;var p=function(e){function t(t){return e.call(this,s.ElementType.Comment,t)||this}return i(t,e),t}(c);t.Comment=p;var d=function(e){function t(t,r){var n=e.call(this,s.ElementType.Directive,r)||this;return n.name=t,n}return i(t,e),t}(c);t.ProcessingInstruction=d;var f=function(e){function t(t,r){var n=e.call(this,t)||this;return n.children=r,n}return i(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(l);t.NodeWithChildren=f;var h=function(e){function t(t){return e.call(this,s.ElementType.Root,t)||this}return i(t,e),t}(f);t.Document=h;var m=function(e){function t(t,r,n,i){void 0===n&&(n=[]),void 0===i&&(i="script"===t?s.ElementType.Script:"style"===t?s.ElementType.Style:s.ElementType.Tag);var o=e.call(this,i,n)||this;return o.name=t,o.attribs=r,o}return i(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var r,n;return{name:t,value:e.attribs[t],namespace:null===(r=e["x-attribsNamespace"])||void 0===r?void 0:r[t],prefix:null===(n=e["x-attribsPrefix"])||void 0===n?void 0:n[t]}}))},enumerable:!1,configurable:!0}),t}(f);function g(e){return(0,s.isTag)(e)}function b(e){return e.type===s.ElementType.CDATA}function v(e){return e.type===s.ElementType.Text}function y(e){return e.type===s.ElementType.Comment}function w(e){return e.type===s.ElementType.Directive}function x(e){return e.type===s.ElementType.Root}function O(e,t){var r;if(void 0===t&&(t=!1),v(e))r=new u(e.data);else if(y(e))r=new p(e.data);else if(g(e)){var n=t?S(e.children):[],i=new m(e.name,o({},e.attribs),n);n.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),r=i}else if(b(e)){n=t?S(e.children):[];var a=new f(s.ElementType.CDATA,n);n.forEach((function(e){return e.parent=a})),r=a}else if(x(e)){n=t?S(e.children):[];var l=new h(n);n.forEach((function(e){return e.parent=l})),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),r=l}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new d(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),r=c}return r.startIndex=e.startIndex,r.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function S(e){for(var t=e.map((function(e){return O(e,!0)})),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}t.Element=m,t.isTag=g,t.isCDATA=b,t.isText=v,t.isComment=y,t.isDirective=w,t.isDocument=x,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=O},488:(e,t,r)=>{var n=r(3670),i=r(484),o=r(4152);o="function"==typeof o.default?o.default:o;var s={lowerCaseAttributeNames:!1};function a(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:n(o(e,(t=t||{}).htmlparser2||s),t)}a.domToReact=n,a.htmlToDOM=o,a.attributesToProps=i,a.Element=r(7384).Element,e.exports=a,e.exports.default=a},484:(e,t,r)=>{var n=r(83),i=r(4606);function o(e){return n.possibleStandardNames[e]}e.exports=function(e){var t,r,s,a,l,c={},u=(e=e||{}).type&&{reset:!0,submit:!0}[e.type];for(t in e)if(s=e[t],n.isCustomAttribute(t))c[t]=s;else if(a=o(r=t.toLowerCase()))switch(l=n.getPropertyInfo(a),"checked"!==a&&"value"!==a||u||(a=o("default"+r)),c[a]=s,l&&l.type){case n.BOOLEAN:c[a]=!0;break;case n.OVERLOADED_BOOLEAN:""===s&&(c[a]=!0)}else i.PRESERVE_CUSTOM_ATTRIBUTES&&(c[t]=s);return i.setStyleProp(e.style,c),c}},3670:(e,t,r)=>{var n=r(9196),i=r(484),o=r(4606),s=o.setStyleProp,a=o.canTextBeChildOfNode;function l(e){return o.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&o.isCustomComponent(e.name,e.attribs)}e.exports=function e(t,r){for(var o,c,u,p,d,f=(r=r||{}).library||n,h=f.cloneElement,m=f.createElement,g=f.isValidElement,b=[],v="function"==typeof r.replace,y=r.trim,w=0,x=t.length;w<x;w++)if(o=t[w],v&&g(u=r.replace(o)))x>1&&(u=h(u,{key:u.key||w})),b.push(u);else if("text"!==o.type){switch(p=o.attribs,l(o)?s(p.style,p):p&&(p=i(p)),d=null,o.type){case"script":case"style":o.children[0]&&(p.dangerouslySetInnerHTML={__html:o.children[0].data});break;case"tag":"textarea"===o.name&&o.children[0]?p.defaultValue=o.children[0].data:o.children&&o.children.length&&(d=e(o.children,r));break;default:continue}x>1&&(p.key=w),b.push(m(o.name,p,d))}else{if((c=!o.data.trim().length)&&o.parent&&!a(o.parent))continue;if(y&&c)continue;b.push(o.data)}return 1===b.length?b[0]:b}},4606:(e,t,r)=>{var n=r(9196),i=r(1476).default;var o={reactCompat:!0};var s=n.version.split(".")[0]>=16,a=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:s,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var r,n,i="function"==typeof t,o={},s={};for(r in e)n=e[r],i&&(o=t(r,n))&&2===o.length?s[o[0]]=o[1]:"string"==typeof n&&(s[n]=r);return s},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!=e)try{t.style=i(e,o)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!a.has(e.name)},elementsWithNoTextChildren:a}},7384:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var o=r(9960),s=r(5079);i(r(5079),t);var a=/\s+/g,l={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},c=function(){function e(e,t,r){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(r=t,t=l),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:l,this.elementCB=null!=r?r:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var r=this.options.xmlMode?o.ElementType.Tag:void 0,n=new s.Element(e,t,void 0,r);this.addNode(n),this.tagStack.push(n)},e.prototype.ontext=function(e){var t=this.options.normalizeWhitespace,r=this.lastNode;if(r&&r.type===o.ElementType.Text)t?r.data=(r.data+e).replace(a," "):r.data+=e,this.options.withEndIndices&&(r.endIndex=this.parser.endIndex);else{t&&(e=e.replace(a," "));var n=new s.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===o.ElementType.Comment)this.lastNode.data+=e;else{var t=new s.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new s.Text(""),t=new s.NodeWithChildren(o.ElementType.CDATA,[e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var r=new s.ProcessingInstruction(e,t);this.addNode(r)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],r=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),r&&(e.prev=r,r.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=c,t.default=c},5079:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var s=r(9960),a=new Map([[s.ElementType.Tag,1],[s.ElementType.Script,1],[s.ElementType.Style,1],[s.ElementType.Directive,1],[s.ElementType.Text,3],[s.ElementType.CDATA,4],[s.ElementType.Comment,8],[s.ElementType.Root,9]]),l=function(){function e(e){this.type=e,this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"nodeType",{get:function(){var e;return null!==(e=a.get(this.type))&&void 0!==e?e:1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),O(this,e)},e}();t.Node=l;var c=function(e){function t(t,r){var n=e.call(this,t)||this;return n.data=r,n}return i(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(l);t.DataNode=c;var u=function(e){function t(t){return e.call(this,s.ElementType.Text,t)||this}return i(t,e),t}(c);t.Text=u;var p=function(e){function t(t){return e.call(this,s.ElementType.Comment,t)||this}return i(t,e),t}(c);t.Comment=p;var d=function(e){function t(t,r){var n=e.call(this,s.ElementType.Directive,r)||this;return n.name=t,n}return i(t,e),t}(c);t.ProcessingInstruction=d;var f=function(e){function t(t,r){var n=e.call(this,t)||this;return n.children=r,n}return i(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(l);t.NodeWithChildren=f;var h=function(e){function t(t){return e.call(this,s.ElementType.Root,t)||this}return i(t,e),t}(f);t.Document=h;var m=function(e){function t(t,r,n,i){void 0===n&&(n=[]),void 0===i&&(i="script"===t?s.ElementType.Script:"style"===t?s.ElementType.Style:s.ElementType.Tag);var o=e.call(this,i,n)||this;return o.name=t,o.attribs=r,o}return i(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var r,n;return{name:t,value:e.attribs[t],namespace:null===(r=e["x-attribsNamespace"])||void 0===r?void 0:r[t],prefix:null===(n=e["x-attribsPrefix"])||void 0===n?void 0:n[t]}}))},enumerable:!1,configurable:!0}),t}(f);function g(e){return(0,s.isTag)(e)}function b(e){return e.type===s.ElementType.CDATA}function v(e){return e.type===s.ElementType.Text}function y(e){return e.type===s.ElementType.Comment}function w(e){return e.type===s.ElementType.Directive}function x(e){return e.type===s.ElementType.Root}function O(e,t){var r;if(void 0===t&&(t=!1),v(e))r=new u(e.data);else if(y(e))r=new p(e.data);else if(g(e)){var n=t?S(e.children):[],i=new m(e.name,o({},e.attribs),n);n.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),r=i}else if(b(e)){n=t?S(e.children):[];var a=new f(s.ElementType.CDATA,n);n.forEach((function(e){return e.parent=a})),r=a}else if(x(e)){n=t?S(e.children):[];var l=new h(n);n.forEach((function(e){return e.parent=l})),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),r=l}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new d(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),r=c}return r.startIndex=e.startIndex,r.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function S(e){for(var t=e.map((function(e){return O(e,!0)})),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}t.Element=m,t.isTag=g,t.isCDATA=b,t.isText=v,t.isComment=y,t.isDirective=w,t.isDocument=x,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=O},8139:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var p=1,d=1;function f(e){var t=e.match(r);t&&(p+=t.length);var n=e.lastIndexOf("\n");d=~n?e.length-n:d+e.length}function h(){var e={line:p,column:d};return function(t){return t.position=new m(e),y(),t}}function m(e){this.start=e,this.end={line:p,column:d},this.source=l.source}m.prototype.content=e;var g=[];function b(t){var r=new Error(l.source+":"+p+":"+d+": "+t);if(r.reason=t,r.filename=l.source,r.line=p,r.column=d,r.source=e,!l.silent)throw r;g.push(r)}function v(t){var r=t.exec(e);if(r){var n=r[0];return f(n),e=e.slice(n.length),r}}function y(){v(n)}function w(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var r=2;c!=e.charAt(r)&&("*"!=e.charAt(r)||"/"!=e.charAt(r+1));)++r;if(r+=2,c===e.charAt(r-1))return b("End of comment missing");var n=e.slice(2,r-2);return d+=2,f(n),e=e.slice(r),d+=2,t({type:"comment",comment:n})}}function O(){var e=h(),r=v(i);if(r){if(x(),!v(o))return b("property missing ':'");var n=v(s),l=e({type:"declaration",property:u(r[0].replace(t,c)),value:n?u(n[0].replace(t,c)):c});return v(a),l}}return y(),function(){var e,t=[];for(w(t);e=O();)!1!==e&&(t.push(e),w(t));return t}()}},9430:function(e,t){var r,n,i;n=[],void 0===(i="function"==typeof(r=function(){return function(e){function t(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function r(t){var r,n=t.exec(e.substring(m));if(n)return r=n[0],m+=r.length,r}for(var n,i,o,s,a,l=e.length,c=/^[ \t\n\r\u000c]+/,u=/^[, \t\n\r\u000c]+/,p=/^[^ \t\n\r\u000c]+/,d=/[,]+$/,f=/^\d+$/,h=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,m=0,g=[];;){if(r(u),m>=l)return g;n=r(p),i=[],","===n.slice(-1)?(n=n.replace(d,""),v()):b()}function b(){for(r(c),o="",s="in descriptor";;){if(a=e.charAt(m),"in descriptor"===s)if(t(a))o&&(i.push(o),o="",s="after descriptor");else{if(","===a)return m+=1,o&&i.push(o),void v();if("("===a)o+=a,s="in parens";else{if(""===a)return o&&i.push(o),void v();o+=a}}else if("in parens"===s)if(")"===a)o+=a,s="in descriptor";else{if(""===a)return i.push(o),void v();o+=a}else if("after descriptor"===s)if(t(a));else{if(""===a)return void v();s="in descriptor",m-=1}m+=1}}function v(){var t,r,o,s,a,l,c,u,p,d=!1,m={};for(s=0;s<i.length;s++)l=(a=i[s])[a.length-1],c=a.substring(0,a.length-1),u=parseInt(c,10),p=parseFloat(c),f.test(c)&&"w"===l?((t||r)&&(d=!0),0===u?d=!0:t=u):h.test(c)&&"x"===l?((t||r||o)&&(d=!0),p<0?d=!0:r=p):f.test(c)&&"h"===l?((o||r)&&(d=!0),0===u?d=!0:o=u):d=!0;d?console&&console.log&&console.log("Invalid srcset descriptor found in '"+e+"' at '"+a+"'."):(m.url=n,t&&(m.w=t),r&&(m.d=r),o&&(m.h=o),g.push(m))}}})?r.apply(t,n):r)||(e.exports=i)},4241:e=>{var t=String,r=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t}};e.exports=r(),e.exports.createColors=r},1353:(e,t,r)=>{"use strict";let n=r(1019);class i extends n{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}e.exports=i,i.default=i,n.registerAtRule(i)},9932:(e,t,r)=>{"use strict";let n=r(5631);class i extends n{constructor(e){super(e),this.type="comment"}}e.exports=i,i.default=i},1019:(e,t,r)=>{"use strict";let n,i,o,s,{isClean:a,my:l}=r(5513),c=r(4258),u=r(9932),p=r(5631);function d(e){return e.map((e=>(e.nodes&&(e.nodes=d(e.nodes)),delete e.source,e)))}function f(e){if(e[a]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)f(t)}class h extends p{push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}each(e){if(!this.proxyOf.nodes)return;let t,r,n=this.getIterator();for(;this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],r=e(this.proxyOf.nodes[t],t),!1!==r);)this.indexes[n]+=1;return delete this.indexes[n],r}walk(e){return this.each(((t,r)=>{let n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n}))}walkDecls(e,t){return t?e instanceof RegExp?this.walk(((r,n)=>{if("decl"===r.type&&e.test(r.prop))return t(r,n)})):this.walk(((r,n)=>{if("decl"===r.type&&r.prop===e)return t(r,n)})):(t=e,this.walk(((e,r)=>{if("decl"===e.type)return t(e,r)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((r,n)=>{if("rule"===r.type&&e.test(r.selector))return t(r,n)})):this.walk(((r,n)=>{if("rule"===r.type&&r.selector===e)return t(r,n)})):(t=e,this.walk(((e,r)=>{if("rule"===e.type)return t(e,r)})))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((r,n)=>{if("atrule"===r.type&&e.test(r.name))return t(r,n)})):this.walk(((r,n)=>{if("atrule"===r.type&&r.name===e)return t(r,n)})):(t=e,this.walk(((e,r)=>{if("atrule"===e.type)return t(e,r)})))}walkComments(e){return this.walk(((t,r)=>{if("comment"===t.type)return e(t,r)}))}append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}insertBefore(e,t){let r,n=0===(e=this.index(e))&&"prepend",i=this.normalize(t,this.proxyOf.nodes[e],n).reverse();for(let t of i)this.proxyOf.nodes.splice(e,0,t);for(let t in this.indexes)r=this.indexes[t],e<=r&&(this.indexes[t]=r+i.length);return this.markDirty(),this}insertAfter(e,t){e=this.index(e);let r,n=this.normalize(t,this.proxyOf.nodes[e]).reverse();for(let t of n)this.proxyOf.nodes.splice(e+1,0,t);for(let t in this.indexes)r=this.indexes[t],e<r&&(this.indexes[t]=r+n.length);return this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls((n=>{t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))})),this.markDirty(),this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}normalize(e,t){if("string"==typeof e)e=d(n(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new c(e)]}else if(e.selector)e=[new i(e)];else if(e.name)e=[new o(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new u(e)]}return e.map((e=>(e[l]||h.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[a]&&f(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e)))}getProxyProcessor(){return{set:(e,t,r)=>(e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0),get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...r)=>e[t](...r.map((e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e))):"every"===t||"some"===t?r=>e[t](((e,...t)=>r(e.toProxy(),...t))):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map((e=>e.toProxy())):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]}}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}}h.registerParse=e=>{n=e},h.registerRule=e=>{i=e},h.registerAtRule=e=>{o=e},h.registerRoot=e=>{s=e},e.exports=h,h.default=h,h.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,o.prototype):"rule"===e.type?Object.setPrototypeOf(e,i.prototype):"decl"===e.type?Object.setPrototypeOf(e,c.prototype):"comment"===e.type?Object.setPrototypeOf(e,u.prototype):"root"===e.type&&Object.setPrototypeOf(e,s.prototype),e[l]=!0,e.nodes&&e.nodes.forEach((e=>{h.rebuild(e)}))}},2671:(e,t,r)=>{"use strict";let n=r(4241),i=r(2868);class o extends Error{constructor(e,t,r,n,i,s){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),n&&(this.source=n),s&&(this.plugin=s),void 0!==t&&void 0!==r&&("number"==typeof t?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,o)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=n.isColorSupported),i&&e&&(t=i(t));let r,o,s=t.split(/\r?\n/),a=Math.max(this.line-3,0),l=Math.min(this.line+2,s.length),c=String(l).length;if(e){let{bold:e,red:t,gray:i}=n.createColors(!0);r=r=>e(t(r)),o=e=>i(e)}else r=o=e=>e;return s.slice(a,l).map(((e,t)=>{let n=a+1+t,i=" "+(" "+n).slice(-c)+" | ";if(n===this.line){let t=o(i.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+o(i)+e+"\n "+t+r("^")}return" "+o(i)+e})).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}e.exports=o,o.default=o},4258:(e,t,r)=>{"use strict";let n=r(5631);class i extends n{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}e.exports=i,i.default=i},6461:(e,t,r)=>{"use strict";let n,i,o=r(1019);class s extends o{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new n(new i,this,e).stringify()}}s.registerLazyResult=e=>{n=e},s.registerProcessor=e=>{i=e},e.exports=s,s.default=s},250:(e,t,r)=>{"use strict";let n=r(4258),i=r(7981),o=r(9932),s=r(1353),a=r(5995),l=r(1025),c=r(1675);function u(e,t){if(Array.isArray(e))return e.map((e=>u(e)));let{inputs:r,...p}=e;if(r){t=[];for(let e of r){let r={...e,__proto__:a.prototype};r.map&&(r.map={...r.map,__proto__:i.prototype}),t.push(r)}}if(p.nodes&&(p.nodes=e.nodes.map((e=>u(e,t)))),p.source){let{inputId:e,...r}=p.source;p.source=r,null!=e&&(p.source.input=t[e])}if("root"===p.type)return new l(p);if("decl"===p.type)return new n(p);if("rule"===p.type)return new c(p);if("comment"===p.type)return new o(p);if("atrule"===p.type)return new s(p);throw new Error("Unknown node type: "+e.type)}e.exports=u,u.default=u},5995:(e,t,r)=>{"use strict";let{SourceMapConsumer:n,SourceMapGenerator:i}=r(209),{fileURLToPath:o,pathToFileURL:s}=r(7414),{resolve:a,isAbsolute:l}=r(9830),{nanoid:c}=r(2618),u=r(2868),p=r(2671),d=r(7981),f=Symbol("fromOffsetCache"),h=Boolean(n&&i),m=Boolean(a&&l);class g{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!m||/^\w+:\/\//.test(t.from)||l(t.from)?this.file=t.from:this.file=a(t.from)),m&&h){let e=new d(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+c(6)+">"),this.map&&(this.map.file=this.from)}fromOffset(e){let t,r;if(this[f])r=this[f];else{let e=this.css.split("\n");r=new Array(e.length);let t=0;for(let n=0,i=e.length;n<i;n++)r[n]=t,t+=e[n].length+1;this[f]=r}t=r[r.length-1];let n=0;if(e>=t)n=r.length-1;else{let t,i=r.length-2;for(;n<i;)if(t=n+(i-n>>1),e<r[t])i=t-1;else{if(!(e>=r[t+1])){n=t;break}n=t+1}}return{line:n+1,col:e-r[n]+1}}error(e,t,r,n={}){let i,o,a;if(t&&"object"==typeof t){let e=t,n=r;if("number"==typeof t.offset){let n=this.fromOffset(e.offset);t=n.line,r=n.col}else t=e.line,r=e.column;if("number"==typeof n.offset){let e=this.fromOffset(n.offset);o=e.line,a=e.col}else o=n.line,a=n.column}else if(!r){let e=this.fromOffset(t);t=e.line,r=e.col}let l=this.origin(t,r,o,a);return i=l?new p(e,void 0===l.endLine?l.line:{line:l.line,column:l.column},void 0===l.endLine?l.column:{line:l.endLine,column:l.endColumn},l.source,l.file,n.plugin):new p(e,void 0===o?t:{line:t,column:r},void 0===o?r:{line:o,column:a},this.css,this.file,n.plugin),i.input={line:t,column:r,endLine:o,endColumn:a,source:this.css},this.file&&(s&&(i.input.url=s(this.file).toString()),i.input.file=this.file),i}origin(e,t,r,n){if(!this.map)return!1;let i,a,c=this.map.consumer(),u=c.originalPositionFor({line:e,column:t});if(!u.source)return!1;"number"==typeof r&&(i=c.originalPositionFor({line:r,column:n})),a=l(u.source)?s(u.source):new URL(u.source,this.map.consumer().sourceRoot||s(this.map.mapFile));let p={url:a.toString(),line:u.line,column:u.column,endLine:i&&i.line,endColumn:i&&i.column};if("file:"===a.protocol){if(!o)throw new Error("file: protocol is not available in this PostCSS build");p.file=o(a)}let d=c.sourceContentFor(u.source);return d&&(p.source=d),p}mapResolve(e){return/^\w+:\/\//.test(e)?e:a(this.map.consumer().sourceRoot||this.map.root||".",e)}get from(){return this.file||this.id}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}}e.exports=g,g.default=g,u&&u.registerInput&&u.registerInput(g)},1939:(e,t,r)=>{"use strict";let{isClean:n,my:i}=r(5513),o=r(8505),s=r(7088),a=r(1019),l=r(6461),c=(r(2448),r(3632)),u=r(6939),p=r(1025);const d={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},f={postcssPlugin:!0,prepare:!0,Once:!0,Document:!0,Root:!0,Declaration:!0,Rule:!0,AtRule:!0,Comment:!0,DeclarationExit:!0,RuleExit:!0,AtRuleExit:!0,CommentExit:!0,RootExit:!0,DocumentExit:!0,OnceExit:!0},h={postcssPlugin:!0,prepare:!0,Once:!0};function m(e){return"object"==typeof e&&"function"==typeof e.then}function g(e){let t=!1,r=d[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function b(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:g(e),{node:e,events:t,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function v(e){return e[n]=!1,e.nodes&&e.nodes.forEach((e=>v(e))),e}let y={};class w{constructor(e,t,r){let n;if(this.stringified=!1,this.processed=!1,"object"!=typeof t||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof w||t instanceof c)n=v(t.root),t.map&&(void 0===r.map&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let e=u;r.syntax&&(e=r.syntax.parse),r.parser&&(e=r.parser),e.parse&&(e=e.parse);try{n=e(t,r)}catch(e){this.processed=!0,this.error=e}n&&!n[i]&&a.rebuild(n)}else n=v(t);this.result=new c(e,n,r),this.helpers={...y,result:this.result,postcss:y},this.plugins=this.processor.plugins.map((e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e))}get[Symbol.toStringTag](){return"LazyResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.stringify().css}get content(){return this.stringify().content}get map(){return this.stringify().map}get root(){return this.sync().root}get messages(){return this.sync().messages}warnings(){return this.sync().warnings()}toString(){return this.css}then(e,t){return this.async().then(e,t)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){if(m(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[n];)e[n]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=s;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new o(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}walkSync(e){e[n]=!0;let t=g(e);for(let r of t)if(0===r)e.nodes&&e.each((e=>{e[n]||this.walkSync(e)}));else{let t=this.listeners[r];if(t&&this.visitSync(t,e.toProxy()))return}}visitSync(e,t){for(let[r,n]of e){let e;this.result.lastPlugin=r;try{e=n(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(m(e))throw this.getAsyncError()}}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map((t=>e.Once(t,this.helpers)));return m(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(m(r))try{await r}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[n];){e[n]=!0;let t=[b(e)];for(;t.length>0;){let e=this.visitTick(t);if(m(e))try{await e}catch(e){let r=t[t.length-1].node;throw this.handleError(e,r)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map((e=>r(e,this.helpers)));await Promise.all(t)}else await r(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let e=(e,t,r)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,r])};for(let t of this.plugins)if("object"==typeof t)for(let r in t){if(!f[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!h[r])if("object"==typeof t[r])for(let n in t[r])e(t,"*"===n?r:r+"-"+n.toLowerCase(),t[r][n]);else"function"==typeof t[r]&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}visitTick(e){let t=e[e.length-1],{node:r,visitors:i}=t;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(i.length>0&&t.visitorIndex<i.length){let[e,n]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return n(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){let i,o=t.iterator;for(;i=r.nodes[r.indexes[o]];)if(r.indexes[o]+=1,!i[n])return i[n]=!0,void e.push(b(i));t.iterator=0,delete r.indexes[o]}let o=t.events;for(;t.eventIndex<o.length;){let e=o[t.eventIndex];if(t.eventIndex+=1,0===e)return void(r.nodes&&r.nodes.length&&(r[n]=!0,t.iterator=r.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}}w.registerPostcss=e=>{y=e},e.exports=w,w.default=w,p.registerLazyResult(w),l.registerLazyResult(w)},4715:e=>{"use strict";let t={split(e,t,r){let n=[],i="",o=!1,s=0,a=!1,l="",c=!1;for(let r of e)c?c=!1:"\\"===r?c=!0:a?r===l&&(a=!1):'"'===r||"'"===r?(a=!0,l=r):"("===r?s+=1:")"===r?s>0&&(s-=1):0===s&&t.includes(r)&&(o=!0),o?(""!==i&&n.push(i.trim()),i="",o=!1):i+=r;return(r||""!==i)&&n.push(i.trim()),n},space:e=>t.split(e,[" ","\n","\t"]),comma:e=>t.split(e,[","],!0)};e.exports=t,t.default=t},8505:(e,t,r)=>{"use strict";let{SourceMapConsumer:n,SourceMapGenerator:i}=r(209),{dirname:o,resolve:s,relative:a,sep:l}=r(9830),{pathToFileURL:c}=r(7414),u=r(5995),p=Boolean(n&&i),d=Boolean(o&&s&&a&&l);e.exports=class{constructor(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}}));else{let e=new u(this.css,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((e=>e.inline)))}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((e=>e.withContent()))}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""))}setSourcesContent(){let e={};if(this.root)this.root.walk((t=>{if(t.source){let r=t.source.input.from;r&&!e[r]&&(e[r]=!0,this.map.setSourceContent(this.toUrl(this.path(r)),t.source.input.css))}}));else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}applyPrevMaps(){for(let e of this.previous()){let t,r=this.toUrl(this.path(e.file)),i=e.root||o(e.file);!1===this.mapOpts.sourcesContent?(t=new n(e.text),t.sourcesContent&&(t.sourcesContent=t.sourcesContent.map((()=>null)))):t=e.consumer(),this.map.applySourceMap(t,r,this.toUrl(this.path(i)))}}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((e=>e.annotation)))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=i.fromSourceMap(e)}else this.map=new i({file:this.outputFile()}),this.map.addMapping({source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>",generated:{line:1,column:0},original:{line:1,column:0}});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}path(e){if(0===e.indexOf("<"))return e;if(/^\w+:\/\//.test(e))return e;if(this.mapOpts.absolute)return e;let t=this.opts.to?o(this.opts.to):".";return"string"==typeof this.mapOpts.annotation&&(t=o(s(t,this.mapOpts.annotation))),e=a(t,e)}toUrl(e){return"\\"===l&&(e=e.replace(/\\/g,"/")),encodeURI(e).replace(/[#?]/g,encodeURIComponent)}sourcePath(e){if(this.mapOpts.from)return this.toUrl(this.mapOpts.from);if(this.mapOpts.absolute){if(c)return c(e.source.input.from).toString();throw new Error("`map.absolute` option is not available in this PostCSS build")}return this.toUrl(this.path(e.source.input.from))}generateString(){this.css="",this.map=new i({file:this.outputFile()});let e,t,r=1,n=1,o="<no source>",s={source:"",generated:{line:0,column:0},original:{line:0,column:0}};this.stringify(this.root,((i,a,l)=>{if(this.css+=i,a&&"end"!==l&&(s.generated.line=r,s.generated.column=n-1,a.source&&a.source.start?(s.source=this.sourcePath(a),s.original.line=a.source.start.line,s.original.column=a.source.start.column-1,this.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,this.map.addMapping(s))),e=i.match(/\n/g),e?(r+=e.length,t=i.lastIndexOf("\n"),n=i.length-t):n+=i.length,a&&"start"!==l){let e=a.parent||{raws:{}};("decl"!==a.type||a!==e.last||e.raws.semicolon)&&(a.source&&a.source.end?(s.source=this.sourcePath(a),s.original.line=a.source.end.line,s.original.column=a.source.end.column-1,s.generated.line=r,s.generated.column=n-2,this.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=r,s.generated.column=n-1,this.map.addMapping(s)))}}))}generate(){if(this.clearAnnotation(),d&&p&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,(t=>{e+=t})),[e]}}}},7647:(e,t,r)=>{"use strict";let n=r(8505),i=r(7088),o=(r(2448),r(6939));const s=r(3632);class a{constructor(e,t,r){let o;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let a=i;this.result=new s(this._processor,o,this._opts),this.result.css=t;let l=this;Object.defineProperty(this.result,"root",{get:()=>l.root});let c=new n(a,o,this._opts,t);if(c.isMap()){let[e,t]=c.generate();e&&(this.result.css=e),t&&(this.result.map=t)}}get[Symbol.toStringTag](){return"NoWorkResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.result.css}get content(){return this.result.css}get map(){return this.result.map}get root(){if(this._root)return this._root;let e,t=o;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get messages(){return[]}warnings(){return[]}toString(){return this._css}then(e,t){return this.async().then(e,t)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}sync(){if(this.error)throw this.error;return this.result}}e.exports=a,a.default=a},5631:(e,t,r)=>{"use strict";let{isClean:n,my:i}=r(5513),o=r(2671),s=r(1062),a=r(7088);function l(e,t){let r=new e.constructor;for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;if("proxyCache"===n)continue;let i=e[n],o=typeof i;"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map((e=>l(e,r))):("object"===o&&null!==i&&(i=l(i)),r[n]=i)}return r}class c{constructor(e={}){this.raws={},this[n]=!1,this[i]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let r of e[t])"function"==typeof r.clone?this.append(r.clone()):this.append(r)}else this[t]=e[t]}error(e,t={}){if(this.source){let{start:r,end:n}=this.rangeBy(t);return this.source.input.error(e,{line:r.line,column:r.column},{line:n.line,column:n.column},t)}return new o(e)}warn(e,t,r){let n={node:this};for(let e in r)n[e]=r[e];return e.warn(t,n)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(e=a){e.stringify&&(e=e.stringify);let t="";return e(this,(e=>{t+=e})),t}assign(e={}){for(let t in e)this[t]=e[t];return this}clone(e={}){let t=l(this);for(let r in e)t[r]=e[r];return t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let n of e)n===this?r=!0:r?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);r||this.remove()}return this}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}before(e){return this.parent.insertBefore(this,e),this}after(e){return this.parent.insertAfter(this,e),this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}raw(e,t){return(new s).raw(this,e,t)}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}toJSON(e,t){let r={},n=null==t;t=t||new Map;let i=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let n=this[e];if(Array.isArray(n))r[e]=n.map((e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof n&&n.toJSON)r[e]=n.toJSON(null,t);else if("source"===e){let o=t.get(n.input);null==o&&(o=i,t.set(n.input,i),i++),r[e]={inputId:o,start:n.start,end:n.end}}else r[e]=n}return n&&(r.inputs=[...t.keys()].map((e=>e.toJSON()))),r}positionInside(e){let t=this.toString(),r=this.source.start.column,n=this.source.start.line;for(let i=0;i<e;i++)"\n"===t[i]?(r=1,n+=1):r+=1;return{line:n,column:r}}positionBy(e){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let r=this.toString().indexOf(e.word);-1!==r&&(t=this.positionInside(r))}return t}rangeBy(e){let t={line:this.source.start.line,column:this.source.start.column},r=this.source.end?{line:this.source.end.line,column:this.source.end.column+1}:{line:t.line,column:t.column+1};if(e.word){let n=this.toString().indexOf(e.word);-1!==n&&(t=this.positionInside(n),r=this.positionInside(n+e.word.length))}else e.start?t={line:e.start.line,column:e.start.column}:e.index&&(t=this.positionInside(e.index)),e.end?r={line:e.end.line,column:e.end.column}:e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={line:t.line,column:t.column+1}),{start:t,end:r}}getProxyProcessor(){return{set:(e,t,r)=>(e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0),get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t]}}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}markDirty(){if(this[n]){this[n]=!1;let e=this;for(;e=e.parent;)e[n]=!1}}get proxyOf(){return this}}e.exports=c,c.default=c},6939:(e,t,r)=>{"use strict";let n=r(1019),i=r(8867),o=r(5995);function s(e,t){let r=new o(e,t),n=new i(r);try{n.parse()}catch(e){throw e}return n.root}e.exports=s,s.default=s,n.registerParse(s)},8867:(e,t,r)=>{"use strict";let n=r(4258),i=r(3852),o=r(9932),s=r(1353),a=r(1025),l=r(1675);const c={empty:!0,space:!0};e.exports=class{constructor(e){this.input=e,this.root=new a,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{offset:0,line:1,column:1}}}createTokenizer(){this.tokenizer=i(this.input)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}comment(e){let t=new o;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]);let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}emptyRule(e){let t=new l;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}other(e){let t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],l=e;for(;l;){if(r=l[0],a.push(l),"("===r||"["===r)i||(i=l),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=l),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&(l=a[a.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)}rule(e){e.pop();let t=new l;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}decl(e,t){let r=new n;this.init(r,e[0][2]);let i,o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(o[3]||o[2]||function(e){for(let t=e.length-1;t>=0;t--){let r=e[t],n=r[3]||r[2];if(n)return n}}(e));"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(i=e.shift(),":"===i[0]){r.raws.between+=i[1];break}"word"===i[0]&&/\w/.test(i[1])&&this.unknownWord([i]),r.raws.between+=i[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let s,a=[];for(;e.length&&(s=e[0][0],"space"===s||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(i=e[t],"!important"===i[1].toLowerCase()){r.important=!0;let n=this.stringFrom(e,t);n=this.spacesFromEnd(e)+n," !important"!==n&&(r.raws.important=n);break}if("important"===i[1].toLowerCase()){let n=e.slice(0),i="";for(let e=t;e>0;e--){let t=n[e][0];if(0===i.trim().indexOf("!")&&"space"!==t)break;i=n.pop()[1]+i}0===i.trim().indexOf("!")&&(r.important=!0,r.raws.important=i,e=n)}if("space"!==i[0]&&"comment"!==i[0])break}e.some((e=>"space"!==e[0]&&"comment"!==e[0]))&&(r.raws.between+=a.map((e=>e[1])).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}atrule(e){let t,r,n,i=new s;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);let o=!1,a=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),this.semicolon=!0;break}if("{"===t){a=!0;break}if("}"===t){if(l.length>0){for(n=l.length-1,r=l[n];r&&"space"===r[0];)r=l[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]))}this.end(e);break}l.push(e)}else l.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(i.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(i,"params",l),o&&(e=l[l.length-1],i.source.end=this.getPosition(e[3]||e[2]),this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),a&&(i.nodes=[],this.current=i)}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{offset:e,line:t.line,column:t.col}}init(e,t){this.current.push(e),e.source={start:this.getPosition(t),input:this.input},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}raw(e,t,r,n){let i,o,s,a,l=r.length,u="",p=!0;for(let e=0;e<l;e+=1)i=r[e],o=i[0],"space"!==o||e!==l-1||n?"comment"===o?(a=r[e-1]?r[e-1][0]:"empty",s=r[e+1]?r[e+1][0]:"empty",c[a]||c[s]||","===u.slice(-1)?p=!1:u+=i[1]):u+=i[1]:p=!1;if(!p){let n=r.reduce(((e,t)=>e+t[1]),"");e.raws[t]={value:u,raw:n}}e[t]=u}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r}colon(e){let t,r,n,i=0;for(let[o,s]of e.entries()){if(t=s,r=t[0],"("===r&&(i+=1),")"===r&&(i-=1),0===i&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return o}this.doubleColon(t)}n=t}return!1}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}precheckMissedSemicolon(){}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let r,n=0;for(let i=t-1;i>=0&&(r=e[i],"space"===r[0]||(n+=1,2!==n));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}}},20:(e,t,r)=>{"use strict";let n=r(2671),i=r(4258),o=r(1939),s=r(1019),a=r(1723),l=r(7088),c=r(250),u=r(6461),p=r(1728),d=r(9932),f=r(1353),h=r(3632),m=r(5995),g=r(6939),b=r(4715),v=r(1675),y=r(1025),w=r(5631);function x(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new a(e)}x.plugin=function(e,t){let r,n=!1;function i(...r){console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let i=t(...r);return i.postcssPlugin=e,i.postcssVersion=(new a).version,i}return Object.defineProperty(i,"postcss",{get:()=>(r||(r=i()),r)}),i.process=function(e,t,r){return x([i(r)]).process(e,t)},i},x.stringify=l,x.parse=g,x.fromJSON=c,x.list=b,x.comment=e=>new d(e),x.atRule=e=>new f(e),x.decl=e=>new i(e),x.rule=e=>new v(e),x.root=e=>new y(e),x.document=e=>new u(e),x.CssSyntaxError=n,x.Declaration=i,x.Container=s,x.Processor=a,x.Document=u,x.Comment=d,x.Warning=p,x.AtRule=f,x.Result=h,x.Input=m,x.Rule=v,x.Root=y,x.Node=w,o.registerPostcss(x),e.exports=x,x.default=x},7981:(e,t,r)=>{"use strict";let{SourceMapConsumer:n,SourceMapGenerator:i}=r(209),{existsSync:o,readFileSync:s}=r(4777),{dirname:a,join:l}=r(9830);class c{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=a(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new n(this.text)),this.consumerCache}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(e,t){return!!e&&e.substr(0,t.length)===t}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t;let r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}loadFile(e){if(this.root=a(e),o(e))return this.mapFile=e,s(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof n)return i.fromSourceMap(t).toString();if(t instanceof i)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let r=t(e);if(r){let e=this.loadFile(r);if(!e)throw new Error("Unable to load previous source map: "+r.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=l(a(e),t)),this.loadFile(t)}}}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}}e.exports=c,c.default=c},1723:(e,t,r)=>{"use strict";let n=r(7647),i=r(1939),o=r(6461),s=r(1025);class a{constructor(e=[]){this.version="8.4.16",this.plugins=this.normalize(e)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}process(e,t={}){return 0===this.plugins.length&&void 0===t.parser&&void 0===t.stringifier&&void 0===t.syntax?new n(this,e,t):new i(this,e,t)}normalize(e){let t=[];for(let r of e)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)t.push(r);else if("function"==typeof r)t.push(r);else{if("object"!=typeof r||!r.parse&&!r.stringify)throw new Error(r+" is not a PostCSS plugin")}return t}}e.exports=a,a.default=a,s.registerProcessor(a),o.registerProcessor(a)},3632:(e,t,r)=>{"use strict";let n=r(1728);class i{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new n(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter((e=>"warning"===e.type))}get content(){return this.css}}e.exports=i,i.default=i},1025:(e,t,r)=>{"use strict";let n,i,o=r(1019);class s extends o{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}removeChild(e,t){let r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}normalize(e,t,r){let n=super.normalize(e);if(t)if("prepend"===r)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of n)e.raws.before=t.raws.before;return n}toResult(e={}){return new n(new i,this,e).stringify()}}s.registerLazyResult=e=>{n=e},s.registerProcessor=e=>{i=e},e.exports=s,s.default=s,o.registerRoot(s)},1675:(e,t,r)=>{"use strict";let n=r(1019),i=r(4715);class o extends n{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return i.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}e.exports=o,o.default=o,n.registerRule(o)},1062:e=>{"use strict";const t={colon:": ",indent:" ",beforeDecl:"\n",beforeRule:"\n",beforeOpen:" ",beforeClose:"\n",beforeComment:"\n",after:"\n",emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};class r{constructor(e){this.builder=e}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}document(e){this.body(e)}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}atrule(e,t){let r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{let i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let r=this.raw(e,"semicolon");for(let n=0;n<e.nodes.length;n++){let i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}}block(e,t){let r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}raw(e,r,n){let i;if(n||(n=r),r&&(i=e.raws[r],void 0!==i))return i;let o=e.parent;if("before"===n){if(!o||"root"===o.type&&o.first===e)return"";if(o&&"document"===o.type)return""}if(!o)return t[n];let s=e.root();if(s.rawCache||(s.rawCache={}),void 0!==s.rawCache[n])return s.rawCache[n];if("before"===n||"after"===n)return this.beforeAfter(e,n);{let t="raw"+((a=n)[0].toUpperCase()+a.slice(1));this[t]?i=this[t](s,e):s.walk((e=>{if(i=e.raws[r],void 0!==i)return!1}))}var a;return void 0===i&&(i=t[n]),s.rawCache[n]=i,i}rawSemicolon(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1})),t}rawEmptyBody(e){let t;return e.walk((e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1})),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk((r=>{let n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){let e=r.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}})),t}rawBeforeComment(e,t){let r;return e.walkComments((e=>{if(void 0!==e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls((e=>{if(void 0!==e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeRule(e){let t;return e.walk((r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return t=r.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeClose(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeOpen(e){let t;return e.walk((e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1})),t}rawColon(e){let t;return e.walkDecls((e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t}beforeAfter(e,t){let r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let n=e.parent,i=0;for(;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<i;e++)r+=t}return r}rawValue(e,t){let r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r}}e.exports=r,r.default=r},7088:(e,t,r)=>{"use strict";let n=r(1062);function i(e,t){new n(t).stringify(e)}e.exports=i,i.default=i},5513:e=>{"use strict";e.exports.isClean=Symbol("isClean"),e.exports.my=Symbol("my")},3852:e=>{"use strict";const t="'".charCodeAt(0),r='"'.charCodeAt(0),n="\\".charCodeAt(0),i="/".charCodeAt(0),o="\n".charCodeAt(0),s=" ".charCodeAt(0),a="\f".charCodeAt(0),l="\t".charCodeAt(0),c="\r".charCodeAt(0),u="[".charCodeAt(0),p="]".charCodeAt(0),d="(".charCodeAt(0),f=")".charCodeAt(0),h="{".charCodeAt(0),m="}".charCodeAt(0),g=";".charCodeAt(0),b="*".charCodeAt(0),v=":".charCodeAt(0),y="@".charCodeAt(0),w=/[\t\n\f\r "#'()/;[\\\]{}]/g,x=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,O=/.[\n"'(/\\]/,S=/[\da-f]/i;e.exports=function(e,C={}){let k,_,E,T,N,P,A,M,D,R,I=e.css.valueOf(),L=C.ignoreErrors,j=I.length,V=0,F=[],q=[];function B(t){throw e.error("Unclosed "+t,V)}return{back:function(e){q.push(e)},nextToken:function(e){if(q.length)return q.pop();if(V>=j)return;let C=!!e&&e.ignoreUnclosed;switch(k=I.charCodeAt(V),k){case o:case s:case l:case c:case a:_=V;do{_+=1,k=I.charCodeAt(_)}while(k===s||k===o||k===l||k===c||k===a);R=["space",I.slice(V,_)],V=_-1;break;case u:case p:case h:case m:case v:case g:case f:{let e=String.fromCharCode(k);R=[e,e,V];break}case d:if(M=F.length?F.pop()[1]:"",D=I.charCodeAt(V+1),"url"===M&&D!==t&&D!==r&&D!==s&&D!==o&&D!==l&&D!==a&&D!==c){_=V;do{if(P=!1,_=I.indexOf(")",_+1),-1===_){if(L||C){_=V;break}B("bracket")}for(A=_;I.charCodeAt(A-1)===n;)A-=1,P=!P}while(P);R=["brackets",I.slice(V,_+1),V,_],V=_}else _=I.indexOf(")",V+1),T=I.slice(V,_+1),-1===_||O.test(T)?R=["(","(",V]:(R=["brackets",T,V,_],V=_);break;case t:case r:E=k===t?"'":'"',_=V;do{if(P=!1,_=I.indexOf(E,_+1),-1===_){if(L||C){_=V+1;break}B("string")}for(A=_;I.charCodeAt(A-1)===n;)A-=1,P=!P}while(P);R=["string",I.slice(V,_+1),V,_],V=_;break;case y:w.lastIndex=V+1,w.test(I),_=0===w.lastIndex?I.length-1:w.lastIndex-2,R=["at-word",I.slice(V,_+1),V,_],V=_;break;case n:for(_=V,N=!0;I.charCodeAt(_+1)===n;)_+=1,N=!N;if(k=I.charCodeAt(_+1),N&&k!==i&&k!==s&&k!==o&&k!==l&&k!==c&&k!==a&&(_+=1,S.test(I.charAt(_)))){for(;S.test(I.charAt(_+1));)_+=1;I.charCodeAt(_+1)===s&&(_+=1)}R=["word",I.slice(V,_+1),V,_],V=_;break;default:k===i&&I.charCodeAt(V+1)===b?(_=I.indexOf("*/",V+2)+1,0===_&&(L||C?_=I.length:B("comment")),R=["comment",I.slice(V,_+1),V,_],V=_):(x.lastIndex=V+1,x.test(I),_=0===x.lastIndex?I.length-1:x.lastIndex-2,R=["word",I.slice(V,_+1),V,_],F.push(R),V=_)}return V++,R},endOfFile:function(){return 0===q.length&&V>=j},position:function(){return V}}}},2448:e=>{"use strict";let t={};e.exports=function(e){t[e]||(t[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))}},1728:e=>{"use strict";class t{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}e.exports=t,t.default=t},2703:(e,t,r)=>{"use strict";var n=r(414);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,s){if(s!==n){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return r.PropTypes=r,r}},5697:(e,t,r)=>{e.exports=r(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},83:(e,t,r)=>{"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,i,o=[],s=!0,a=!1;try{for(r=r.call(e);!(s=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==r.return||r.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}Object.defineProperty(t,"__esModule",{value:!0});function o(e,t,r,n,i,o,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var s={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((function(e){s[e]=new o(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=n(e,2),r=t[0],i=t[1];s[r]=new o(r,1,!1,i,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){s[e]=new o(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){s[e]=new o(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((function(e){s[e]=new o(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){s[e]=new o(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){s[e]=new o(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){s[e]=new o(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){s[e]=new o(e,5,!1,e.toLowerCase(),null,!1,!1)}));var a=/[\-\:]([a-z])/g,l=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((function(e){var t=e.replace(a,l);s[t]=new o(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((function(e){var t=e.replace(a,l);s[t]=new o(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(a,l);s[t]=new o(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){s[e]=new o(e,1,!1,e.toLowerCase(),null,!1,!1)}));s.xlinkHref=new o("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){s[e]=new o(e,1,!1,e.toLowerCase(),null,!0,!0)}));var c=r(8229),u=c.CAMELCASE,p=c.SAME,d=c.possibleStandardNames,f=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),h=Object.keys(d).reduce((function(e,t){var r=d[t];return r===p?e[t]=t:r===u?e[t.toLowerCase()]=t:e[t]=r,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return s.hasOwnProperty(e)?s[e]:null},t.isCustomAttribute=f,t.possibleStandardNames=h},8229:(e,t)=>{t.SAME=0;t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},1036:(e,t,r)=>{const n=r(5106),i=r(3150),{isPlainObject:o}=r(977),s=r(9996),a=r(9430),{parse:l}=r(20),c=["img","audio","video","picture","svg","object","map","iframe","embed"],u=["script","style"];function p(e,t){e&&Object.keys(e).forEach((function(r){t(e[r],r)}))}function d(e,t){return{}.hasOwnProperty.call(e,t)}function f(e,t){const r=[];return p(e,(function(e){t(e)&&r.push(e)})),r}e.exports=m;const h=/^[^\0\t\n\f\r /<=>]+$/;function m(e,t,r){if(null==e)return"";let b="",v="";function y(e,t){const r=this;this.tag=e,this.attribs=t||{},this.tagPosition=b.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(N.length){N[N.length-1].text+=r.text}},this.updateParentNodeMediaChildren=function(){if(N.length&&c.includes(this.tag)){N[N.length-1].mediaChildren.push(this.tag)}}}(t=Object.assign({},m.defaults,t)).parser=Object.assign({},g,t.parser),u.forEach((function(e){t.allowedTags&&t.allowedTags.indexOf(e)>-1&&!t.allowVulnerableTags&&console.warn(`\n\n⚠️ Your \`allowedTags\` option includes, \`${e}\`, which is inherently\nvulnerable to XSS attacks. Please remove it from \`allowedTags\`.\nOr, to disable this warning, add the \`allowVulnerableTags\` option\nand ensure you are accounting for this risk.\n\n`)}));const w=t.nonTextTags||["script","style","textarea","option"];let x,O;t.allowedAttributes&&(x={},O={},p(t.allowedAttributes,(function(e,t){x[t]=[];const r=[];e.forEach((function(e){"string"==typeof e&&e.indexOf("*")>=0?r.push(i(e).replace(/\\\*/g,".*")):x[t].push(e)})),r.length&&(O[t]=new RegExp("^("+r.join("|")+")$"))})));const S={},C={},k={};p(t.allowedClasses,(function(e,t){x&&(d(x,t)||(x[t]=[]),x[t].push("class")),S[t]=[],k[t]=[];const r=[];e.forEach((function(e){"string"==typeof e&&e.indexOf("*")>=0?r.push(i(e).replace(/\\\*/g,".*")):e instanceof RegExp?k[t].push(e):S[t].push(e)})),r.length&&(C[t]=new RegExp("^("+r.join("|")+")$"))}));const _={};let E,T,N,P,A,M,D;p(t.transformTags,(function(e,t){let r;"function"==typeof e?r=e:"string"==typeof e&&(r=m.simpleTransform(e)),"*"===t?E=r:_[t]=r}));let R=!1;L();const I=new n.Parser({onopentag:function(e,r){if(t.enforceHtmlBoundary&&"html"===e&&L(),M)return void D++;const n=new y(e,r);N.push(n);let i=!1;const c=!!n.text;let u;if(d(_,e)&&(u=_[e](e,r),n.attribs=r=u.attribs,void 0!==u.text&&(n.innerText=u.text),e!==u.tagName&&(n.name=e=u.tagName,A[T]=u.tagName)),E&&(u=E(e,r),n.attribs=r=u.attribs,e!==u.tagName&&(n.name=e=u.tagName,A[T]=u.tagName)),(t.allowedTags&&-1===t.allowedTags.indexOf(e)||"recursiveEscape"===t.disallowedTagsMode&&!function(e){for(const t in e)if(d(e,t))return!1;return!0}(P)||null!=t.nestingLimit&&T>=t.nestingLimit)&&(i=!0,P[T]=!0,"discard"===t.disallowedTagsMode&&-1!==w.indexOf(e)&&(M=!0,D=1),P[T]=!0),T++,i){if("discard"===t.disallowedTagsMode)return;v=b,b=""}b+="<"+e,"script"===e&&(t.allowedScriptHostnames||t.allowedScriptDomains)&&(n.innerText=""),(!x||d(x,e)||x["*"])&&p(r,(function(r,i){if(!h.test(i))return void delete n.attribs[i];let c=!1;if(!x||d(x,e)&&-1!==x[e].indexOf(i)||x["*"]&&-1!==x["*"].indexOf(i)||d(O,e)&&O[e].test(i)||O["*"]&&O["*"].test(i))c=!0;else if(x&&x[e])for(const t of x[e])if(o(t)&&t.name&&t.name===i){c=!0;let e="";if(!0===t.multiple){const n=r.split(" ");for(const r of n)-1!==t.values.indexOf(r)&&(""===e?e=r:e+=" "+r)}else t.values.indexOf(r)>=0&&(e=r);r=e}if(c){if(-1!==t.allowedSchemesAppliedToAttributes.indexOf(i)&&V(e,r))return void delete n.attribs[i];if("script"===e&&"src"===i){let e=!0;try{const n=F(r);if(t.allowedScriptHostnames||t.allowedScriptDomains){const r=(t.allowedScriptHostnames||[]).find((function(e){return e===n.url.hostname})),i=(t.allowedScriptDomains||[]).find((function(e){return n.url.hostname===e||n.url.hostname.endsWith(`.${e}`)}));e=r||i}}catch(t){e=!1}if(!e)return void delete n.attribs[i]}if("iframe"===e&&"src"===i){let e=!0;try{const n=F(r);if(n.isRelativeUrl)e=d(t,"allowIframeRelativeUrls")?t.allowIframeRelativeUrls:!t.allowedIframeHostnames&&!t.allowedIframeDomains;else if(t.allowedIframeHostnames||t.allowedIframeDomains){const r=(t.allowedIframeHostnames||[]).find((function(e){return e===n.url.hostname})),i=(t.allowedIframeDomains||[]).find((function(e){return n.url.hostname===e||n.url.hostname.endsWith(`.${e}`)}));e=r||i}}catch(t){e=!1}if(!e)return void delete n.attribs[i]}if("srcset"===i)try{let e=a(r);if(e.forEach((function(e){V("srcset",e.url)&&(e.evil=!0)})),e=f(e,(function(e){return!e.evil})),!e.length)return void delete n.attribs[i];r=f(e,(function(e){return!e.evil})).map((function(e){if(!e.url)throw new Error("URL missing");return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")})).join(", "),n.attribs[i]=r}catch(e){return void delete n.attribs[i]}if("class"===i){const t=S[e],o=S["*"],a=C[e],l=k[e],c=[a,C["*"]].concat(l).filter((function(e){return e}));if(!(r=q(r,t&&o?s(t,o):t||o,c)).length)return void delete n.attribs[i]}if("style"===i)try{const o=function(e,t){if(!t)return e;const r=e.nodes[0];let n;n=t[r.selector]&&t["*"]?s(t[r.selector],t["*"]):t[r.selector]||t["*"];n&&(e.nodes[0].nodes=r.nodes.reduce(function(e){return function(t,r){if(d(e,r.prop)){e[r.prop].some((function(e){return e.test(r.value)}))&&t.push(r)}return t}}(n),[]));return e}(l(e+" {"+r+"}"),t.allowedStyles);if(0===(r=function(e){return e.nodes[0].nodes.reduce((function(e,t){return e.push(`${t.prop}:${t.value}${t.important?" !important":""}`),e}),[]).join(";")}(o)).length)return void delete n.attribs[i]}catch(e){return void delete n.attribs[i]}b+=" "+i,r&&r.length&&(b+='="'+j(r,!0)+'"')}else delete n.attribs[i]})),-1!==t.selfClosing.indexOf(e)?b+=" />":(b+=">",!n.innerText||c||t.textFilter||(b+=j(n.innerText),R=!0)),i&&(b=v+j(b),v="")},ontext:function(e){if(M)return;const r=N[N.length-1];let n;if(r&&(n=r.tag,e=void 0!==r.innerText?r.innerText:e),"discard"!==t.disallowedTagsMode||"script"!==n&&"style"!==n){const r=j(e,!1);t.textFilter&&!R?b+=t.textFilter(r,n):R||(b+=r)}else b+=e;if(N.length){N[N.length-1].text+=e}},onclosetag:function(e){if(M){if(D--,D)return;M=!1}const r=N.pop();if(!r)return;M=!!t.enforceHtmlBoundary&&"html"===e,T--;const n=P[T];if(n){if(delete P[T],"discard"===t.disallowedTagsMode)return void r.updateParentNodeText();v=b,b=""}A[T]&&(e=A[T],delete A[T]),t.exclusiveFilter&&t.exclusiveFilter(r)?b=b.substr(0,r.tagPosition):(r.updateParentNodeMediaChildren(),r.updateParentNodeText(),-1===t.selfClosing.indexOf(e)?(b+="</"+e+">",n&&(b=v+j(b),v=""),R=!1):n&&(b=v,v=""))}},t.parser);return I.write(e),I.end(),b;function L(){b="",T=0,N=[],P={},A={},M=!1,D=0}function j(e,r){return"string"!=typeof e&&(e+=""),t.parser.decodeEntities&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),r&&(e=e.replace(/"/g,"""))),e=e.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(/</g,"<").replace(/>/g,">"),r&&(e=e.replace(/"/g,""")),e}function V(e,r){for(r=r.replace(/[\x00-\x20]+/g,"");;){const e=r.indexOf("\x3c!--");if(-1===e)break;const t=r.indexOf("--\x3e",e+4);if(-1===t)break;r=r.substring(0,e)+r.substring(t+3)}const n=r.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!n)return!!r.match(/^[/\\]{2}/)&&!t.allowProtocolRelative;const i=n[1].toLowerCase();return d(t.allowedSchemesByTag,e)?-1===t.allowedSchemesByTag[e].indexOf(i):!t.allowedSchemes||-1===t.allowedSchemes.indexOf(i)}function F(e){if((e=e.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//")).startsWith("relative:"))throw new Error("relative: exploit attempt");let t="relative://relative-site";for(let e=0;e<100;e++)t+=`/${e}`;const r=new URL(e,t);return{isRelativeUrl:r&&"relative-site"===r.hostname&&"relative:"===r.protocol,url:r}}function q(e,t,r){return t?(e=e.split(/\s+/)).filter((function(e){return-1!==t.indexOf(e)||r.some((function(t){return t.test(e)}))})).join(" "):e}}const g={decodeEntities:!0};m.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1},m.simpleTransform=function(e,t,r){return r=void 0===r||r,t=t||{},function(n,i){let o;if(r)for(o in t)i[o]=t[o];else i=t;return{tagName:e,attribs:i}}}},2734:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attributeNames=t.elementNames=void 0,t.elementNames=new Map([["altglyph","altGlyph"],["altglyphdef","altGlyphDef"],["altglyphitem","altGlyphItem"],["animatecolor","animateColor"],["animatemotion","animateMotion"],["animatetransform","animateTransform"],["clippath","clipPath"],["feblend","feBlend"],["fecolormatrix","feColorMatrix"],["fecomponenttransfer","feComponentTransfer"],["fecomposite","feComposite"],["feconvolvematrix","feConvolveMatrix"],["fediffuselighting","feDiffuseLighting"],["fedisplacementmap","feDisplacementMap"],["fedistantlight","feDistantLight"],["fedropshadow","feDropShadow"],["feflood","feFlood"],["fefunca","feFuncA"],["fefuncb","feFuncB"],["fefuncg","feFuncG"],["fefuncr","feFuncR"],["fegaussianblur","feGaussianBlur"],["feimage","feImage"],["femerge","feMerge"],["femergenode","feMergeNode"],["femorphology","feMorphology"],["feoffset","feOffset"],["fepointlight","fePointLight"],["fespecularlighting","feSpecularLighting"],["fespotlight","feSpotLight"],["fetile","feTile"],["feturbulence","feTurbulence"],["foreignobject","foreignObject"],["glyphref","glyphRef"],["lineargradient","linearGradient"],["radialgradient","radialGradient"],["textpath","textPath"]]),t.attributeNames=new Map([["definitionurl","definitionURL"],["attributename","attributeName"],["attributetype","attributeType"],["basefrequency","baseFrequency"],["baseprofile","baseProfile"],["calcmode","calcMode"],["clippathunits","clipPathUnits"],["diffuseconstant","diffuseConstant"],["edgemode","edgeMode"],["filterunits","filterUnits"],["glyphref","glyphRef"],["gradienttransform","gradientTransform"],["gradientunits","gradientUnits"],["kernelmatrix","kernelMatrix"],["kernelunitlength","kernelUnitLength"],["keypoints","keyPoints"],["keysplines","keySplines"],["keytimes","keyTimes"],["lengthadjust","lengthAdjust"],["limitingconeangle","limitingConeAngle"],["markerheight","markerHeight"],["markerunits","markerUnits"],["markerwidth","markerWidth"],["maskcontentunits","maskContentUnits"],["maskunits","maskUnits"],["numoctaves","numOctaves"],["pathlength","pathLength"],["patterncontentunits","patternContentUnits"],["patterntransform","patternTransform"],["patternunits","patternUnits"],["pointsatx","pointsAtX"],["pointsaty","pointsAtY"],["pointsatz","pointsAtZ"],["preservealpha","preserveAlpha"],["preserveaspectratio","preserveAspectRatio"],["primitiveunits","primitiveUnits"],["refx","refX"],["refy","refY"],["repeatcount","repeatCount"],["repeatdur","repeatDur"],["requiredextensions","requiredExtensions"],["requiredfeatures","requiredFeatures"],["specularconstant","specularConstant"],["specularexponent","specularExponent"],["spreadmethod","spreadMethod"],["startoffset","startOffset"],["stddeviation","stdDeviation"],["stitchtiles","stitchTiles"],["surfacescale","surfaceScale"],["systemlanguage","systemLanguage"],["tablevalues","tableValues"],["targetx","targetX"],["targety","targetY"],["textlength","textLength"],["viewbox","viewBox"],["viewtarget","viewTarget"],["xchannelselector","xChannelSelector"],["ychannelselector","yChannelSelector"],["zoomandpan","zoomAndPan"]])},8427:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var a=s(r(9960)),l=r(7772),c=r(2734),u=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);var p=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function d(e,t){void 0===t&&(t={});for(var r=("length"in e?e:[e]),n="",i=0;i<r.length;i++)n+=f(r[i],t);return n}function f(e,t){switch(e.type){case a.Root:return d(e.children,t);case a.Directive:case a.Doctype:return"<"+e.data+">";case a.Comment:return function(e){return"\x3c!--"+e.data+"--\x3e"}(e);case a.CDATA:return function(e){return"<![CDATA["+e.children[0].data+"]]>"}(e);case a.Script:case a.Style:case a.Tag:return function(e,t){var r;"foreign"===t.xmlMode&&(e.name=null!==(r=c.elementNames.get(e.name))&&void 0!==r?r:e.name,e.parent&&h.has(e.parent.name)&&(t=n(n({},t),{xmlMode:!1})));!t.xmlMode&&m.has(e.name)&&(t=n(n({},t),{xmlMode:"foreign"}));var i="<"+e.name,o=function(e,t){if(e)return Object.keys(e).map((function(r){var n,i,o=null!==(n=e[r])&&void 0!==n?n:"";return"foreign"===t.xmlMode&&(r=null!==(i=c.attributeNames.get(r))&&void 0!==i?i:r),t.emptyAttrs||t.xmlMode||""!==o?r+'="'+(!1!==t.decodeEntities?l.encodeXML(o):o.replace(/"/g,"""))+'"':r})).join(" ")}(e.attribs,t);o&&(i+=" "+o);0===e.children.length&&(t.xmlMode?!1!==t.selfClosingTags:t.selfClosingTags&&p.has(e.name))?(t.xmlMode||(i+=" "),i+="/>"):(i+=">",e.children.length>0&&(i+=d(e.children,t)),!t.xmlMode&&p.has(e.name)||(i+="</"+e.name+">"));return i}(e,t);case a.Text:return function(e,t){var r=e.data||"";!1===t.decodeEntities||!t.xmlMode&&e.parent&&u.has(e.parent.name)||(r=l.encodeXML(r));return r}(e,t)}}t.default=d;var h=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),m=new Set(["svg","math"])},1142:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var o=r(9960),s=r(6218);i(r(6218),t);var a=/\s+/g,l={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},c=function(){function e(e,t,r){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(r=t,t=l),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:l,this.elementCB=null!=r?r:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var r=this.options.xmlMode?o.ElementType.Tag:void 0,n=new s.Element(e,t,void 0,r);this.addNode(n),this.tagStack.push(n)},e.prototype.ontext=function(e){var t=this.options.normalizeWhitespace,r=this.lastNode;if(r&&r.type===o.ElementType.Text)t?r.data=(r.data+e).replace(a," "):r.data+=e,this.options.withEndIndices&&(r.endIndex=this.parser.endIndex);else{t&&(e=e.replace(a," "));var n=new s.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===o.ElementType.Comment)this.lastNode.data+=e;else{var t=new s.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new s.Text(""),t=new s.NodeWithChildren(o.ElementType.CDATA,[e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var r=new s.ProcessingInstruction(e,t);this.addNode(r)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],r=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),r&&(e.prev=r,r.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=c,t.default=c},6218:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var s=r(9960),a=new Map([[s.ElementType.Tag,1],[s.ElementType.Script,1],[s.ElementType.Style,1],[s.ElementType.Directive,1],[s.ElementType.Text,3],[s.ElementType.CDATA,4],[s.ElementType.Comment,8],[s.ElementType.Root,9]]),l=function(){function e(e){this.type=e,this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"nodeType",{get:function(){var e;return null!==(e=a.get(this.type))&&void 0!==e?e:1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),O(this,e)},e}();t.Node=l;var c=function(e){function t(t,r){var n=e.call(this,t)||this;return n.data=r,n}return i(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(l);t.DataNode=c;var u=function(e){function t(t){return e.call(this,s.ElementType.Text,t)||this}return i(t,e),t}(c);t.Text=u;var p=function(e){function t(t){return e.call(this,s.ElementType.Comment,t)||this}return i(t,e),t}(c);t.Comment=p;var d=function(e){function t(t,r){var n=e.call(this,s.ElementType.Directive,r)||this;return n.name=t,n}return i(t,e),t}(c);t.ProcessingInstruction=d;var f=function(e){function t(t,r){var n=e.call(this,t)||this;return n.children=r,n}return i(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(l);t.NodeWithChildren=f;var h=function(e){function t(t){return e.call(this,s.ElementType.Root,t)||this}return i(t,e),t}(f);t.Document=h;var m=function(e){function t(t,r,n,i){void 0===n&&(n=[]),void 0===i&&(i="script"===t?s.ElementType.Script:"style"===t?s.ElementType.Style:s.ElementType.Tag);var o=e.call(this,i,n)||this;return o.name=t,o.attribs=r,o}return i(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var r,n;return{name:t,value:e.attribs[t],namespace:null===(r=e["x-attribsNamespace"])||void 0===r?void 0:r[t],prefix:null===(n=e["x-attribsPrefix"])||void 0===n?void 0:n[t]}}))},enumerable:!1,configurable:!0}),t}(f);function g(e){return(0,s.isTag)(e)}function b(e){return e.type===s.ElementType.CDATA}function v(e){return e.type===s.ElementType.Text}function y(e){return e.type===s.ElementType.Comment}function w(e){return e.type===s.ElementType.Directive}function x(e){return e.type===s.ElementType.Root}function O(e,t){var r;if(void 0===t&&(t=!1),v(e))r=new u(e.data);else if(y(e))r=new p(e.data);else if(g(e)){var n=t?S(e.children):[],i=new m(e.name,o({},e.attribs),n);n.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),r=i}else if(b(e)){n=t?S(e.children):[];var a=new f(s.ElementType.CDATA,n);n.forEach((function(e){return e.parent=a})),r=a}else if(x(e)){n=t?S(e.children):[];var l=new h(n);n.forEach((function(e){return e.parent=l})),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),r=l}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new d(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),r=c}return r.startIndex=e.startIndex,r.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function S(e){for(var t=e.map((function(e){return O(e,!0)})),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}t.Element=m,t.isTag=g,t.isCDATA=b,t.isText=v,t.isComment=y,t.isDirective=w,t.isDocument=x,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=O},2903:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeed=void 0;var n=r(5283),i=r(9473);t.getFeed=function(e){var t=l(p,e);return t?"feed"===t.name?function(e){var t,r=e.children,n={type:"atom",items:(0,i.getElementsByTagName)("entry",r).map((function(e){var t,r=e.children,n={media:a(r)};u(n,"id","id",r),u(n,"title","title",r);var i=null===(t=l("link",r))||void 0===t?void 0:t.attribs.href;i&&(n.link=i);var o=c("summary",r)||c("content",r);o&&(n.description=o);var s=c("updated",r);return s&&(n.pubDate=new Date(s)),n}))};u(n,"id","id",r),u(n,"title","title",r);var o=null===(t=l("link",r))||void 0===t?void 0:t.attribs.href;o&&(n.link=o);u(n,"description","subtitle",r);var s=c("updated",r);s&&(n.updated=new Date(s));return u(n,"author","email",r,!0),n}(t):function(e){var t,r,n=null!==(r=null===(t=l("channel",e.children))||void 0===t?void 0:t.children)&&void 0!==r?r:[],o={type:e.name.substr(0,3),id:"",items:(0,i.getElementsByTagName)("item",e.children).map((function(e){var t=e.children,r={media:a(t)};u(r,"id","guid",t),u(r,"title","title",t),u(r,"link","link",t),u(r,"description","description",t);var n=c("pubDate",t);return n&&(r.pubDate=new Date(n)),r}))};u(o,"title","title",n),u(o,"link","link",n),u(o,"description","description",n);var s=c("lastBuildDate",n);s&&(o.updated=new Date(s));return u(o,"author","managingEditor",n,!0),o}(t):null};var o=["url","type","lang"],s=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function a(e){return(0,i.getElementsByTagName)("media:content",e).map((function(e){for(var t=e.attribs,r={medium:t.medium,isDefault:!!t.isDefault},n=0,i=o;n<i.length;n++){t[c=i[n]]&&(r[c]=t[c])}for(var a=0,l=s;a<l.length;a++){var c;t[c=l[a]]&&(r[c]=parseInt(t[c],10))}return t.expression&&(r.expression=t.expression),r}))}function l(e,t){return(0,i.getElementsByTagName)(e,t,!0,1)[0]}function c(e,t,r){return void 0===r&&(r=!1),(0,n.textContent)((0,i.getElementsByTagName)(e,t,r,1)).trim()}function u(e,t,r,n,i){void 0===i&&(i=!1);var o=c(r,n,i);o&&(e[t]=o)}function p(e){return"rss"===e||"feed"===e||"rdf:RDF"===e}},7701:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uniqueSort=t.compareDocumentPosition=t.removeSubsets=void 0;var n=r(1142);function i(e,t){var r=[],i=[];if(e===t)return 0;for(var o=(0,n.hasChildren)(e)?e:e.parent;o;)r.unshift(o),o=o.parent;for(o=(0,n.hasChildren)(t)?t:t.parent;o;)i.unshift(o),o=o.parent;for(var s=Math.min(r.length,i.length),a=0;a<s&&r[a]===i[a];)a++;if(0===a)return 1;var l=r[a-1],c=l.children,u=r[a],p=i[a];return c.indexOf(u)>c.indexOf(p)?l===t?20:4:l===e?10:2}t.removeSubsets=function(e){for(var t=e.length;--t>=0;){var r=e[t];if(t>0&&e.lastIndexOf(r,t-1)>=0)e.splice(t,1);else for(var n=r.parent;n;n=n.parent)if(e.includes(n)){e.splice(t,1);break}}return e},t.compareDocumentPosition=i,t.uniqueSort=function(e){return(e=e.filter((function(e,t,r){return!r.includes(e,t+1)}))).sort((function(e,t){var r=i(e,t);return 2&r?-1:4&r?1:0})),e}},7241:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,i(r(5283),t),i(r(7972),t),i(r(4541),t),i(r(2764),t),i(r(9473),t),i(r(7701),t),i(r(2903),t);var o=r(1142);Object.defineProperty(t,"isTag",{enumerable:!0,get:function(){return o.isTag}}),Object.defineProperty(t,"isCDATA",{enumerable:!0,get:function(){return o.isCDATA}}),Object.defineProperty(t,"isText",{enumerable:!0,get:function(){return o.isText}}),Object.defineProperty(t,"isComment",{enumerable:!0,get:function(){return o.isComment}}),Object.defineProperty(t,"isDocument",{enumerable:!0,get:function(){return o.isDocument}}),Object.defineProperty(t,"hasChildren",{enumerable:!0,get:function(){return o.hasChildren}})},9473:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getElementsByTagType=t.getElementsByTagName=t.getElementById=t.getElements=t.testElement=void 0;var n=r(1142),i=r(2764),o={tag_name:function(e){return"function"==typeof e?function(t){return(0,n.isTag)(t)&&e(t.name)}:"*"===e?n.isTag:function(t){return(0,n.isTag)(t)&&t.name===e}},tag_type:function(e){return"function"==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return"function"==typeof e?function(t){return(0,n.isText)(t)&&e(t.data)}:function(t){return(0,n.isText)(t)&&t.data===e}}};function s(e,t){return"function"==typeof t?function(r){return(0,n.isTag)(r)&&t(r.attribs[e])}:function(r){return(0,n.isTag)(r)&&r.attribs[e]===t}}function a(e,t){return function(r){return e(r)||t(r)}}function l(e){var t=Object.keys(e).map((function(t){var r=e[t];return Object.prototype.hasOwnProperty.call(o,t)?o[t](r):s(t,r)}));return 0===t.length?null:t.reduce(a)}t.testElement=function(e,t){var r=l(e);return!r||r(t)},t.getElements=function(e,t,r,n){void 0===n&&(n=1/0);var o=l(e);return o?(0,i.filter)(o,t,r,n):[]},t.getElementById=function(e,t,r){return void 0===r&&(r=!0),Array.isArray(t)||(t=[t]),(0,i.findOne)(s("id",e),t,r)},t.getElementsByTagName=function(e,t,r,n){return void 0===r&&(r=!0),void 0===n&&(n=1/0),(0,i.filter)(o.tag_name(e),t,r,n)},t.getElementsByTagType=function(e,t,r,n){return void 0===r&&(r=!0),void 0===n&&(n=1/0),(0,i.filter)(o.tag_type(e),t,r,n)}},4541:(e,t)=>{"use strict";function r(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children;t.splice(t.lastIndexOf(e),1)}}Object.defineProperty(t,"__esModule",{value:!0}),t.prepend=t.prependChild=t.append=t.appendChild=t.replaceElement=t.removeElement=void 0,t.removeElement=r,t.replaceElement=function(e,t){var r=t.prev=e.prev;r&&(r.next=t);var n=t.next=e.next;n&&(n.prev=t);var i=t.parent=e.parent;if(i){var o=i.children;o[o.lastIndexOf(e)]=t}},t.appendChild=function(e,t){if(r(t),t.next=null,t.parent=e,e.children.push(t)>1){var n=e.children[e.children.length-2];n.next=t,t.prev=n}else t.prev=null},t.append=function(e,t){r(t);var n=e.parent,i=e.next;if(t.next=i,t.prev=e,e.next=t,t.parent=n,i){if(i.prev=t,n){var o=n.children;o.splice(o.lastIndexOf(i),0,t)}}else n&&n.children.push(t)},t.prependChild=function(e,t){if(r(t),t.parent=e,t.prev=null,1!==e.children.unshift(t)){var n=e.children[1];n.prev=t,t.next=n}else t.next=null},t.prepend=function(e,t){r(t);var n=e.parent;if(n){var i=n.children;i.splice(i.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=n,t.prev=e.prev,t.next=e,e.prev=t}},2764:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findAll=t.existsOne=t.findOne=t.findOneChild=t.find=t.filter=void 0;var n=r(1142);function i(e,t,r,o){for(var s=[],a=0,l=t;a<l.length;a++){var c=l[a];if(e(c)&&(s.push(c),--o<=0))break;if(r&&(0,n.hasChildren)(c)&&c.children.length>0){var u=i(e,c.children,r,o);if(s.push.apply(s,u),(o-=u.length)<=0)break}}return s}t.filter=function(e,t,r,n){return void 0===r&&(r=!0),void 0===n&&(n=1/0),Array.isArray(t)||(t=[t]),i(e,t,r,n)},t.find=i,t.findOneChild=function(e,t){return t.find(e)},t.findOne=function e(t,r,i){void 0===i&&(i=!0);for(var o=null,s=0;s<r.length&&!o;s++){var a=r[s];(0,n.isTag)(a)&&(t(a)?o=a:i&&a.children.length>0&&(o=e(t,a.children)))}return o},t.existsOne=function e(t,r){return r.some((function(r){return(0,n.isTag)(r)&&(t(r)||r.children.length>0&&e(t,r.children))}))},t.findAll=function(e,t){for(var r,i,o=[],s=t.filter(n.isTag);i=s.shift();){var a=null===(r=i.children)||void 0===r?void 0:r.filter(n.isTag);a&&a.length>0&&s.unshift.apply(s,a),e(i)&&o.push(i)}return o}},5283:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.innerText=t.textContent=t.getText=t.getInnerHTML=t.getOuterHTML=void 0;var i=r(1142),o=n(r(8427)),s=r(9960);function a(e,t){return(0,o.default)(e,t)}t.getOuterHTML=a,t.getInnerHTML=function(e,t){return(0,i.hasChildren)(e)?e.children.map((function(e){return a(e,t)})).join(""):""},t.getText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.isTag)(t)?"br"===t.name?"\n":e(t.children):(0,i.isCDATA)(t)?e(t.children):(0,i.isText)(t)?t.data:""},t.textContent=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.hasChildren)(t)&&!(0,i.isComment)(t)?e(t.children):(0,i.isText)(t)?t.data:""},t.innerText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.hasChildren)(t)&&(t.type===s.ElementType.Tag||(0,i.isCDATA)(t))?e(t.children):(0,i.isText)(t)?t.data:""}},7972:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prevElementSibling=t.nextElementSibling=t.getName=t.hasAttrib=t.getAttributeValue=t.getSiblings=t.getParent=t.getChildren=void 0;var n=r(1142),i=[];function o(e){var t;return null!==(t=e.children)&&void 0!==t?t:i}function s(e){return e.parent||null}t.getChildren=o,t.getParent=s,t.getSiblings=function(e){var t=s(e);if(null!=t)return o(t);for(var r=[e],n=e.prev,i=e.next;null!=n;)r.unshift(n),n=n.prev;for(;null!=i;)r.push(i),i=i.next;return r},t.getAttributeValue=function(e,t){var r;return null===(r=e.attribs)||void 0===r?void 0:r[t]},t.hasAttrib=function(e,t){return null!=e.attribs&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&null!=e.attribs[t]},t.getName=function(e){return e.name},t.nextElementSibling=function(e){for(var t=e.next;null!==t&&!(0,n.isTag)(t);)t=t.next;return t},t.prevElementSibling=function(e){for(var t=e.prev;null!==t&&!(0,n.isTag)(t);)t=t.prev;return t}},722:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeHTML=t.decodeHTMLStrict=t.decodeXML=void 0;var i=n(r(4168)),o=n(r(7272)),s=n(r(729)),a=n(r(2913)),l=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;function c(e){var t=p(e);return function(e){return String(e).replace(l,t)}}t.decodeXML=c(s.default),t.decodeHTMLStrict=c(i.default);var u=function(e,t){return e<t?1:-1};function p(e){return function(t){if("#"===t.charAt(1)){var r=t.charAt(2);return"X"===r||"x"===r?a.default(parseInt(t.substr(3),16)):a.default(parseInt(t.substr(2),10))}return e[t.slice(1,-1)]||t}}t.decodeHTML=function(){for(var e=Object.keys(o.default).sort(u),t=Object.keys(i.default).sort(u),r=0,n=0;r<t.length;r++)e[n]===t[r]?(t[r]+=";?",n++):t[r]+=";";var s=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),a=p(i.default);function l(e){return";"!==e.substr(-1)&&(e+=";"),a(e)}return function(e){return String(e).replace(s,l)}}()},2913:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(7607)),o=String.fromCodePoint||function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)};t.default=function(e){return e>=55296&&e<=57343||e>1114111?"�":(e in i.default&&(e=i.default[e]),o(e))}},571:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=void 0;var i=u(n(r(729)).default),o=p(i);t.encodeXML=g(i);var s,a,l=u(n(r(4168)).default),c=p(l);function u(e){return Object.keys(e).sort().reduce((function(t,r){return t[e[r]]="&"+r+";",t}),{})}function p(e){for(var t=[],r=[],n=0,i=Object.keys(e);n<i.length;n++){var o=i[n];1===o.length?t.push("\\"+o):r.push(o)}t.sort();for(var s=0;s<t.length-1;s++){for(var a=s;a<t.length-1&&t[a].charCodeAt(1)+1===t[a+1].charCodeAt(1);)a+=1;var l=1+a-s;l<3||t.splice(s,l,t[s]+"-"+t[a])}return r.unshift("["+t.join("")+"]"),new RegExp(r.join("|"),"g")}t.encodeHTML=(s=l,a=c,function(e){return e.replace(a,(function(e){return s[e]})).replace(d,h)}),t.encodeNonAsciiHTML=g(l);var d=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,f=null!=String.prototype.codePointAt?function(e){return e.codePointAt(0)}:function(e){return 1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536};function h(e){return"&#x"+(e.length>1?f(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}var m=new RegExp(o.source+"|"+d.source,"g");function g(e){return function(t){return t.replace(m,(function(t){return e[t]||h(t)}))}}t.escape=function(e){return e.replace(m,h)},t.escapeUTF8=function(e){return e.replace(o,h)}},7772:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.encodeHTML5=t.encodeHTML4=t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=t.encode=t.decodeStrict=t.decode=void 0;var n=r(722),i=r(571);t.decode=function(e,t){return(!t||t<=0?n.decodeXML:n.decodeHTML)(e)},t.decodeStrict=function(e,t){return(!t||t<=0?n.decodeXML:n.decodeHTMLStrict)(e)},t.encode=function(e,t){return(!t||t<=0?i.encodeXML:i.encodeHTML)(e)};var o=r(571);Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return o.encodeXML}}),Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return o.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return o.encodeNonAsciiHTML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return o.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return o.escapeUTF8}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return o.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return o.encodeHTML}});var s=r(722);Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return s.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return s.decodeXML}})},7613:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&o(t,e,r);return s(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.parseFeed=t.FeedHandler=void 0;var c,u,p=l(r(1142)),d=a(r(7241)),f=r(6666);!function(e){e[e.image=0]="image",e[e.audio=1]="audio",e[e.video=2]="video",e[e.document=3]="document",e[e.executable=4]="executable"}(c||(c={})),function(e){e[e.sample=0]="sample",e[e.full=1]="full",e[e.nonstop=2]="nonstop"}(u||(u={}));var h=function(e){function t(t,r){return"object"==typeof t&&(r=t=void 0),e.call(this,t,r)||this}return i(t,e),t.prototype.onend=function(){var e,t,r=b(x,this.dom);if(r){var n={};if("feed"===r.name){var i=r.children;n.type="atom",w(n,"id","id",i),w(n,"title","title",i);var o=y("href",b("link",i));o&&(n.link=o),w(n,"description","subtitle",i),(s=v("updated",i))&&(n.updated=new Date(s)),w(n,"author","email",i,!0),n.items=g("entry",i).map((function(e){var t={},r=e.children;w(t,"id","id",r),w(t,"title","title",r);var n=y("href",b("link",r));n&&(t.link=n);var i=v("summary",r)||v("content",r);i&&(t.description=i);var o=v("updated",r);return o&&(t.pubDate=new Date(o)),t.media=m(r),t}))}else{var s;i=null!==(t=null===(e=b("channel",r.children))||void 0===e?void 0:e.children)&&void 0!==t?t:[];n.type=r.name.substr(0,3),n.id="",w(n,"title","title",i),w(n,"link","link",i),w(n,"description","description",i),(s=v("lastBuildDate",i))&&(n.updated=new Date(s)),w(n,"author","managingEditor",i,!0),n.items=g("item",r.children).map((function(e){var t={},r=e.children;w(t,"id","guid",r),w(t,"title","title",r),w(t,"link","link",r),w(t,"description","description",r);var n=v("pubDate",r);return n&&(t.pubDate=new Date(n)),t.media=m(r),t}))}this.feed=n,this.handleCallback(null)}else this.handleCallback(new Error("couldn't find root of feed"))},t}(p.default);function m(e){return g("media:content",e).map((function(e){var t={medium:e.attribs.medium,isDefault:!!e.attribs.isDefault};return e.attribs.url&&(t.url=e.attribs.url),e.attribs.fileSize&&(t.fileSize=parseInt(e.attribs.fileSize,10)),e.attribs.type&&(t.type=e.attribs.type),e.attribs.expression&&(t.expression=e.attribs.expression),e.attribs.bitrate&&(t.bitrate=parseInt(e.attribs.bitrate,10)),e.attribs.framerate&&(t.framerate=parseInt(e.attribs.framerate,10)),e.attribs.samplingrate&&(t.samplingrate=parseInt(e.attribs.samplingrate,10)),e.attribs.channels&&(t.channels=parseInt(e.attribs.channels,10)),e.attribs.duration&&(t.duration=parseInt(e.attribs.duration,10)),e.attribs.height&&(t.height=parseInt(e.attribs.height,10)),e.attribs.width&&(t.width=parseInt(e.attribs.width,10)),e.attribs.lang&&(t.lang=e.attribs.lang),t}))}function g(e,t){return d.getElementsByTagName(e,t,!0)}function b(e,t){return d.getElementsByTagName(e,t,!0,1)[0]}function v(e,t,r){return void 0===r&&(r=!1),d.getText(d.getElementsByTagName(e,t,r,1)).trim()}function y(e,t){return t?t.attribs[e]:null}function w(e,t,r,n,i){void 0===i&&(i=!1);var o=v(r,n,i);o&&(e[t]=o)}function x(e){return"rss"===e||"feed"===e||"rdf:RDF"===e}t.FeedHandler=h,t.parseFeed=function(e,t){void 0===t&&(t={xmlMode:!0});var r=new h(t);return new f.Parser(r,t).end(e),r.feed}},6666:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0;var i=n(r(34)),o=new Set(["input","option","optgroup","select","button","datalist","textarea"]),s=new Set(["p"]),a={tr:new Set(["tr","th","td"]),th:new Set(["th"]),td:new Set(["thead","th","td"]),body:new Set(["head","link","script"]),li:new Set(["li"]),p:s,h1:s,h2:s,h3:s,h4:s,h5:s,h6:s,select:o,input:o,output:o,button:o,datalist:o,textarea:o,option:new Set(["option"]),optgroup:new Set(["optgroup","option"]),dd:new Set(["dt","dd"]),dt:new Set(["dt","dd"]),address:s,article:s,aside:s,blockquote:s,details:s,div:s,dl:s,fieldset:s,figcaption:s,figure:s,footer:s,form:s,header:s,hr:s,main:s,nav:s,ol:s,pre:s,section:s,table:s,ul:s,rt:new Set(["rt","rp"]),rp:new Set(["rt","rp"]),tbody:new Set(["thead","tbody"]),tfoot:new Set(["thead","tbody"])},l=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),c=new Set(["math","svg"]),u=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),p=/\s|\//,d=function(){function e(e,t){var r,n,o,s,a;void 0===t&&(t={}),this.startIndex=0,this.endIndex=null,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.options=t,this.cbs=null!=e?e:{},this.lowerCaseTagNames=null!==(r=t.lowerCaseTags)&&void 0!==r?r:!t.xmlMode,this.lowerCaseAttributeNames=null!==(n=t.lowerCaseAttributeNames)&&void 0!==n?n:!t.xmlMode,this.tokenizer=new(null!==(o=t.Tokenizer)&&void 0!==o?o:i.default)(this.options,this),null===(a=(s=this.cbs).onparserinit)||void 0===a||a.call(s,this)}return e.prototype.updatePosition=function(e){null===this.endIndex?this.tokenizer.sectionStart<=e?this.startIndex=0:this.startIndex=this.tokenizer.sectionStart-e:this.startIndex=this.endIndex+1,this.endIndex=this.tokenizer.getAbsoluteIndex()},e.prototype.ontext=function(e){var t,r;this.updatePosition(1),this.endIndex--,null===(r=(t=this.cbs).ontext)||void 0===r||r.call(t,e)},e.prototype.onopentagname=function(e){var t,r;if(this.lowerCaseTagNames&&(e=e.toLowerCase()),this.tagname=e,!this.options.xmlMode&&Object.prototype.hasOwnProperty.call(a,e))for(var n=void 0;this.stack.length>0&&a[e].has(n=this.stack[this.stack.length-1]);)this.onclosetag(n);!this.options.xmlMode&&l.has(e)||(this.stack.push(e),c.has(e)?this.foreignContext.push(!0):u.has(e)&&this.foreignContext.push(!1)),null===(r=(t=this.cbs).onopentagname)||void 0===r||r.call(t,e),this.cbs.onopentag&&(this.attribs={})},e.prototype.onopentagend=function(){var e,t;this.updatePosition(1),this.attribs&&(null===(t=(e=this.cbs).onopentag)||void 0===t||t.call(e,this.tagname,this.attribs),this.attribs=null),!this.options.xmlMode&&this.cbs.onclosetag&&l.has(this.tagname)&&this.cbs.onclosetag(this.tagname),this.tagname=""},e.prototype.onclosetag=function(e){if(this.updatePosition(1),this.lowerCaseTagNames&&(e=e.toLowerCase()),(c.has(e)||u.has(e))&&this.foreignContext.pop(),!this.stack.length||!this.options.xmlMode&&l.has(e))this.options.xmlMode||"br"!==e&&"p"!==e||(this.onopentagname(e),this.closeCurrentTag());else{var t=this.stack.lastIndexOf(e);if(-1!==t)if(this.cbs.onclosetag)for(t=this.stack.length-t;t--;)this.cbs.onclosetag(this.stack.pop());else this.stack.length=t;else"p"!==e||this.options.xmlMode||(this.onopentagname(e),this.closeCurrentTag())}},e.prototype.onselfclosingtag=function(){this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?this.closeCurrentTag():this.onopentagend()},e.prototype.closeCurrentTag=function(){var e,t,r=this.tagname;this.onopentagend(),this.stack[this.stack.length-1]===r&&(null===(t=(e=this.cbs).onclosetag)||void 0===t||t.call(e,r),this.stack.pop())},e.prototype.onattribname=function(e){this.lowerCaseAttributeNames&&(e=e.toLowerCase()),this.attribname=e},e.prototype.onattribdata=function(e){this.attribvalue+=e},e.prototype.onattribend=function(e){var t,r;null===(r=(t=this.cbs).onattribute)||void 0===r||r.call(t,this.attribname,this.attribvalue,e),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribname="",this.attribvalue=""},e.prototype.getInstructionName=function(e){var t=e.search(p),r=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(r=r.toLowerCase()),r},e.prototype.ondeclaration=function(e){if(this.cbs.onprocessinginstruction){var t=this.getInstructionName(e);this.cbs.onprocessinginstruction("!"+t,"!"+e)}},e.prototype.onprocessinginstruction=function(e){if(this.cbs.onprocessinginstruction){var t=this.getInstructionName(e);this.cbs.onprocessinginstruction("?"+t,"?"+e)}},e.prototype.oncomment=function(e){var t,r,n,i;this.updatePosition(4),null===(r=(t=this.cbs).oncomment)||void 0===r||r.call(t,e),null===(i=(n=this.cbs).oncommentend)||void 0===i||i.call(n)},e.prototype.oncdata=function(e){var t,r,n,i,o,s;this.updatePosition(1),this.options.xmlMode||this.options.recognizeCDATA?(null===(r=(t=this.cbs).oncdatastart)||void 0===r||r.call(t),null===(i=(n=this.cbs).ontext)||void 0===i||i.call(n,e),null===(s=(o=this.cbs).oncdataend)||void 0===s||s.call(o)):this.oncomment("[CDATA["+e+"]]")},e.prototype.onerror=function(e){var t,r;null===(r=(t=this.cbs).onerror)||void 0===r||r.call(t,e)},e.prototype.onend=function(){var e,t;if(this.cbs.onclosetag)for(var r=this.stack.length;r>0;this.cbs.onclosetag(this.stack[--r]));null===(t=(e=this.cbs).onend)||void 0===t||t.call(e)},e.prototype.reset=function(){var e,t,r,n;null===(t=(e=this.cbs).onreset)||void 0===t||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack=[],null===(n=(r=this.cbs).onparserinit)||void 0===n||n.call(r,this)},e.prototype.parseComplete=function(e){this.reset(),this.end(e)},e.prototype.write=function(e){this.tokenizer.write(e)},e.prototype.end=function(e){this.tokenizer.end(e)},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){this.tokenizer.resume()},e.prototype.parseChunk=function(e){this.write(e)},e.prototype.done=function(e){this.end(e)},e}();t.Parser=d},34:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(2913)),o=n(r(4168)),s=n(r(7272)),a=n(r(729));function l(e){return" "===e||"\n"===e||"\t"===e||"\f"===e||"\r"===e}function c(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"}function u(e,t,r){var n=e.toLowerCase();return e===n?function(e,i){i===n?e._state=t:(e._state=r,e._index--)}:function(i,o){o===n||o===e?i._state=t:(i._state=r,i._index--)}}function p(e,t){var r=e.toLowerCase();return function(n,i){i===r||i===e?n._state=t:(n._state=3,n._index--)}}var d=u("C",24,16),f=u("D",25,16),h=u("A",26,16),m=u("T",27,16),g=u("A",28,16),b=p("R",35),v=p("I",36),y=p("P",37),w=p("T",38),x=u("R",40,1),O=u("I",41,1),S=u("P",42,1),C=u("T",43,1),k=p("Y",45),_=p("L",46),E=p("E",47),T=u("Y",49,1),N=u("L",50,1),P=u("E",51,1),A=p("I",54),M=p("T",55),D=p("L",56),R=p("E",57),I=u("I",58,1),L=u("T",59,1),j=u("L",60,1),V=u("E",61,1),F=u("#",63,64),q=u("X",66,65),B=function(){function e(e,t){var r;this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1,this.cbs=t,this.xmlMode=!!(null==e?void 0:e.xmlMode),this.decodeEntities=null===(r=null==e?void 0:e.decodeEntities)||void 0===r||r}return e.prototype.reset=function(){this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1},e.prototype.write=function(e){this.ended&&this.cbs.onerror(Error(".write() after done!")),this.buffer+=e,this.parse()},e.prototype.end=function(e){this.ended&&this.cbs.onerror(Error(".end() after done!")),e&&this.write(e),this.ended=!0,this.running&&this.finish()},e.prototype.pause=function(){this.running=!1},e.prototype.resume=function(){this.running=!0,this._index<this.buffer.length&&this.parse(),this.ended&&this.finish()},e.prototype.getAbsoluteIndex=function(){return this.bufferOffset+this._index},e.prototype.stateText=function(e){"<"===e?(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this._state=2,this.sectionStart=this._index):!this.decodeEntities||"&"!==e||1!==this.special&&4!==this.special||(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this.baseState=1,this._state=62,this.sectionStart=this._index)},e.prototype.isTagStartChar=function(e){return c(e)||this.xmlMode&&!l(e)&&"/"!==e&&">"!==e},e.prototype.stateBeforeTagName=function(e){"/"===e?this._state=5:"<"===e?(this.cbs.ontext(this.getSection()),this.sectionStart=this._index):">"===e||1!==this.special||l(e)?this._state=1:"!"===e?(this._state=15,this.sectionStart=this._index+1):"?"===e?(this._state=17,this.sectionStart=this._index+1):this.isTagStartChar(e)?(this._state=this.xmlMode||"s"!==e&&"S"!==e?this.xmlMode||"t"!==e&&"T"!==e?3:52:32,this.sectionStart=this._index):this._state=1},e.prototype.stateInTagName=function(e){("/"===e||">"===e||l(e))&&(this.emitToken("onopentagname"),this._state=8,this._index--)},e.prototype.stateBeforeClosingTagName=function(e){l(e)||(">"===e?this._state=1:1!==this.special?4===this.special||"s"!==e&&"S"!==e?4!==this.special||"t"!==e&&"T"!==e?(this._state=1,this._index--):this._state=53:this._state=33:this.isTagStartChar(e)?(this._state=6,this.sectionStart=this._index):(this._state=20,this.sectionStart=this._index))},e.prototype.stateInClosingTagName=function(e){(">"===e||l(e))&&(this.emitToken("onclosetag"),this._state=7,this._index--)},e.prototype.stateAfterClosingTagName=function(e){">"===e&&(this._state=1,this.sectionStart=this._index+1)},e.prototype.stateBeforeAttributeName=function(e){">"===e?(this.cbs.onopentagend(),this._state=1,this.sectionStart=this._index+1):"/"===e?this._state=4:l(e)||(this._state=9,this.sectionStart=this._index)},e.prototype.stateInSelfClosingTag=function(e){">"===e?(this.cbs.onselfclosingtag(),this._state=1,this.sectionStart=this._index+1,this.special=1):l(e)||(this._state=8,this._index--)},e.prototype.stateInAttributeName=function(e){("="===e||"/"===e||">"===e||l(e))&&(this.cbs.onattribname(this.getSection()),this.sectionStart=-1,this._state=10,this._index--)},e.prototype.stateAfterAttributeName=function(e){"="===e?this._state=11:"/"===e||">"===e?(this.cbs.onattribend(void 0),this._state=8,this._index--):l(e)||(this.cbs.onattribend(void 0),this._state=9,this.sectionStart=this._index)},e.prototype.stateBeforeAttributeValue=function(e){'"'===e?(this._state=12,this.sectionStart=this._index+1):"'"===e?(this._state=13,this.sectionStart=this._index+1):l(e)||(this._state=14,this.sectionStart=this._index,this._index--)},e.prototype.handleInAttributeValue=function(e,t){e===t?(this.emitToken("onattribdata"),this.cbs.onattribend(t),this._state=8):this.decodeEntities&&"&"===e&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},e.prototype.stateInAttributeValueDoubleQuotes=function(e){this.handleInAttributeValue(e,'"')},e.prototype.stateInAttributeValueSingleQuotes=function(e){this.handleInAttributeValue(e,"'")},e.prototype.stateInAttributeValueNoQuotes=function(e){l(e)||">"===e?(this.emitToken("onattribdata"),this.cbs.onattribend(null),this._state=8,this._index--):this.decodeEntities&&"&"===e&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},e.prototype.stateBeforeDeclaration=function(e){this._state="["===e?23:"-"===e?18:16},e.prototype.stateInDeclaration=function(e){">"===e&&(this.cbs.ondeclaration(this.getSection()),this._state=1,this.sectionStart=this._index+1)},e.prototype.stateInProcessingInstruction=function(e){">"===e&&(this.cbs.onprocessinginstruction(this.getSection()),this._state=1,this.sectionStart=this._index+1)},e.prototype.stateBeforeComment=function(e){"-"===e?(this._state=19,this.sectionStart=this._index+1):this._state=16},e.prototype.stateInComment=function(e){"-"===e&&(this._state=21)},e.prototype.stateInSpecialComment=function(e){">"===e&&(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index)),this._state=1,this.sectionStart=this._index+1)},e.prototype.stateAfterComment1=function(e){this._state="-"===e?22:19},e.prototype.stateAfterComment2=function(e){">"===e?(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):"-"!==e&&(this._state=19)},e.prototype.stateBeforeCdata6=function(e){"["===e?(this._state=29,this.sectionStart=this._index+1):(this._state=16,this._index--)},e.prototype.stateInCdata=function(e){"]"===e&&(this._state=30)},e.prototype.stateAfterCdata1=function(e){this._state="]"===e?31:29},e.prototype.stateAfterCdata2=function(e){">"===e?(this.cbs.oncdata(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):"]"!==e&&(this._state=29)},e.prototype.stateBeforeSpecialS=function(e){"c"===e||"C"===e?this._state=34:"t"===e||"T"===e?this._state=44:(this._state=3,this._index--)},e.prototype.stateBeforeSpecialSEnd=function(e){2!==this.special||"c"!==e&&"C"!==e?3!==this.special||"t"!==e&&"T"!==e?this._state=1:this._state=48:this._state=39},e.prototype.stateBeforeSpecialLast=function(e,t){("/"===e||">"===e||l(e))&&(this.special=t),this._state=3,this._index--},e.prototype.stateAfterSpecialLast=function(e,t){">"===e||l(e)?(this.special=1,this._state=6,this.sectionStart=this._index-t,this._index--):this._state=1},e.prototype.parseFixedEntity=function(e){if(void 0===e&&(e=this.xmlMode?a.default:o.default),this.sectionStart+1<this._index){var t=this.buffer.substring(this.sectionStart+1,this._index);Object.prototype.hasOwnProperty.call(e,t)&&(this.emitPartial(e[t]),this.sectionStart=this._index+1)}},e.prototype.parseLegacyEntity=function(){for(var e=this.sectionStart+1,t=Math.min(this._index-e,6);t>=2;){var r=this.buffer.substr(e,t);if(Object.prototype.hasOwnProperty.call(s.default,r))return this.emitPartial(s.default[r]),void(this.sectionStart+=t+1);t--}},e.prototype.stateInNamedEntity=function(e){";"===e?(this.parseFixedEntity(),1===this.baseState&&this.sectionStart+1<this._index&&!this.xmlMode&&this.parseLegacyEntity(),this._state=this.baseState):(e<"0"||e>"9")&&!c(e)&&(this.xmlMode||this.sectionStart+1===this._index||(1!==this.baseState?"="!==e&&this.parseFixedEntity(s.default):this.parseLegacyEntity()),this._state=this.baseState,this._index--)},e.prototype.decodeNumericEntity=function(e,t,r){var n=this.sectionStart+e;if(n!==this._index){var o=this.buffer.substring(n,this._index),s=parseInt(o,t);this.emitPartial(i.default(s)),this.sectionStart=r?this._index+1:this._index}this._state=this.baseState},e.prototype.stateInNumericEntity=function(e){";"===e?this.decodeNumericEntity(2,10,!0):(e<"0"||e>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(2,10,!1),this._index--)},e.prototype.stateInHexEntity=function(e){";"===e?this.decodeNumericEntity(3,16,!0):(e<"a"||e>"f")&&(e<"A"||e>"F")&&(e<"0"||e>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(3,16,!1),this._index--)},e.prototype.cleanup=function(){this.sectionStart<0?(this.buffer="",this.bufferOffset+=this._index,this._index=0):this.running&&(1===this._state?(this.sectionStart!==this._index&&this.cbs.ontext(this.buffer.substr(this.sectionStart)),this.buffer="",this.bufferOffset+=this._index,this._index=0):this.sectionStart===this._index?(this.buffer="",this.bufferOffset+=this._index,this._index=0):(this.buffer=this.buffer.substr(this.sectionStart),this._index-=this.sectionStart,this.bufferOffset+=this.sectionStart),this.sectionStart=0)},e.prototype.parse=function(){for(;this._index<this.buffer.length&&this.running;){var e=this.buffer.charAt(this._index);1===this._state?this.stateText(e):12===this._state?this.stateInAttributeValueDoubleQuotes(e):9===this._state?this.stateInAttributeName(e):19===this._state?this.stateInComment(e):20===this._state?this.stateInSpecialComment(e):8===this._state?this.stateBeforeAttributeName(e):3===this._state?this.stateInTagName(e):6===this._state?this.stateInClosingTagName(e):2===this._state?this.stateBeforeTagName(e):10===this._state?this.stateAfterAttributeName(e):13===this._state?this.stateInAttributeValueSingleQuotes(e):11===this._state?this.stateBeforeAttributeValue(e):5===this._state?this.stateBeforeClosingTagName(e):7===this._state?this.stateAfterClosingTagName(e):32===this._state?this.stateBeforeSpecialS(e):21===this._state?this.stateAfterComment1(e):14===this._state?this.stateInAttributeValueNoQuotes(e):4===this._state?this.stateInSelfClosingTag(e):16===this._state?this.stateInDeclaration(e):15===this._state?this.stateBeforeDeclaration(e):22===this._state?this.stateAfterComment2(e):18===this._state?this.stateBeforeComment(e):33===this._state?this.stateBeforeSpecialSEnd(e):53===this._state?I(this,e):39===this._state?x(this,e):40===this._state?O(this,e):41===this._state?S(this,e):34===this._state?b(this,e):35===this._state?v(this,e):36===this._state?y(this,e):37===this._state?w(this,e):38===this._state?this.stateBeforeSpecialLast(e,2):42===this._state?C(this,e):43===this._state?this.stateAfterSpecialLast(e,6):44===this._state?k(this,e):29===this._state?this.stateInCdata(e):45===this._state?_(this,e):46===this._state?E(this,e):47===this._state?this.stateBeforeSpecialLast(e,3):48===this._state?T(this,e):49===this._state?N(this,e):50===this._state?P(this,e):51===this._state?this.stateAfterSpecialLast(e,5):52===this._state?A(this,e):54===this._state?M(this,e):55===this._state?D(this,e):56===this._state?R(this,e):57===this._state?this.stateBeforeSpecialLast(e,4):58===this._state?L(this,e):59===this._state?j(this,e):60===this._state?V(this,e):61===this._state?this.stateAfterSpecialLast(e,5):17===this._state?this.stateInProcessingInstruction(e):64===this._state?this.stateInNamedEntity(e):23===this._state?d(this,e):62===this._state?F(this,e):24===this._state?f(this,e):25===this._state?h(this,e):30===this._state?this.stateAfterCdata1(e):31===this._state?this.stateAfterCdata2(e):26===this._state?m(this,e):27===this._state?g(this,e):28===this._state?this.stateBeforeCdata6(e):66===this._state?this.stateInHexEntity(e):65===this._state?this.stateInNumericEntity(e):63===this._state?q(this,e):this.cbs.onerror(Error("unknown _state"),this._state),this._index++}this.cleanup()},e.prototype.finish=function(){this.sectionStart<this._index&&this.handleTrailingData(),this.cbs.onend()},e.prototype.handleTrailingData=function(){var e=this.buffer.substr(this.sectionStart);29===this._state||30===this._state||31===this._state?this.cbs.oncdata(e):19===this._state||21===this._state||22===this._state?this.cbs.oncomment(e):64!==this._state||this.xmlMode?65!==this._state||this.xmlMode?66!==this._state||this.xmlMode?3!==this._state&&8!==this._state&&11!==this._state&&10!==this._state&&9!==this._state&&13!==this._state&&12!==this._state&&14!==this._state&&6!==this._state&&this.cbs.ontext(e):(this.decodeNumericEntity(3,16,!1),this.sectionStart<this._index&&(this._state=this.baseState,this.handleTrailingData())):(this.decodeNumericEntity(2,10,!1),this.sectionStart<this._index&&(this._state=this.baseState,this.handleTrailingData())):(this.parseLegacyEntity(),this.sectionStart<this._index&&(this._state=this.baseState,this.handleTrailingData()))},e.prototype.getSection=function(){return this.buffer.substring(this.sectionStart,this._index)},e.prototype.emitToken=function(e){this.cbs[e](this.getSection()),this.sectionStart=-1},e.prototype.emitPartial=function(e){1!==this.baseState?this.cbs.onattribdata(e):this.cbs.ontext(e)},e}();t.default=B},5106:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RssHandler=t.DefaultHandler=t.DomUtils=t.ElementType=t.Tokenizer=t.createDomStream=t.parseDOM=t.parseDocument=t.DomHandler=t.Parser=void 0;var l=r(6666);Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return l.Parser}});var c=r(1142);function u(e,t){var r=new c.DomHandler(void 0,t);return new l.Parser(r,t).end(e),r.root}Object.defineProperty(t,"DomHandler",{enumerable:!0,get:function(){return c.DomHandler}}),Object.defineProperty(t,"DefaultHandler",{enumerable:!0,get:function(){return c.DomHandler}}),t.parseDocument=u,t.parseDOM=function(e,t){return u(e,t).children},t.createDomStream=function(e,t,r){var n=new c.DomHandler(e,t,r);return new l.Parser(n,t)};var p=r(34);Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return a(p).default}});var d=o(r(9960));t.ElementType=d,s(r(7613),t),t.DomUtils=o(r(7241));var f=r(7613);Object.defineProperty(t,"RssHandler",{enumerable:!0,get:function(){return f.FeedHandler}})},977:(e,t)=>{"use strict";function r(e){return"[object Object]"===Object.prototype.toString.call(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.isPlainObject=function(e){var t,n;return!1!==r(e)&&(void 0===(t=e.constructor)||!1!==r(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}},1476:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var i=n(r(7848)),o=r(6678);t.default=function(e,t){var r={};return e&&"string"==typeof e?((0,i.default)(e,(function(e,n){e&&n&&(r[(0,o.camelCase)(e,t)]=n)})),r):r}},6678:(e,t)=>{"use strict";t.__esModule=!0,t.camelCase=void 0;var r=/^--[a-zA-Z0-9-]+$/,n=/-([a-z])/g,i=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,a=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||i.test(e)||r.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(s,l):e.replace(o,l)).replace(n,a))}},7848:(e,t,r)=>{var n=r(8139);e.exports=function(e,t){var r,i=null;if(!e||"string"!=typeof e)return i;for(var o,s,a=n(e),l="function"==typeof t,c=0,u=a.length;c<u;c++)o=(r=a[c]).property,s=r.value,l?t(o,s,r):s&&(i||(i={}),i[o]=s);return i}},9196:e=>{"use strict";e.exports=window.React},2868:()=>{},4777:()=>{},9830:()=>{},209:()=>{},7414:()=>{},2618:e=>{e.exports={nanoid:(e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(r=t)=>{let n="",i=r;for(;i--;)n+=e[Math.random()*e.length|0];return n}}},7607:e=>{"use strict";e.exports=JSON.parse('{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}')},4168:e=>{"use strict";e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"","InvisibleTimes":"","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"","NegativeThickSpace":"","NegativeThinSpace":"","NegativeVeryThinSpace":"","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":" ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"","zwnj":""}')},7272:e=>{"use strict";e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}')},729:e=>{"use strict";e.exports=JSON.parse('{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}')}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.blocks;const t=function(t){var r=t.namespace,n=t.title,i=t.icon;(0,e.registerBlockCollection)(r,{title:n,icon:i})};function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(488);o.domToReact,o.htmlToDOM,o.attributesToProps,o.Element;const s=o,a=window.wp.blockEditor,l=window.wp.components;function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}var u=r(9196);var p=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),d=Math.abs,f=String.fromCharCode,h=Object.assign;function m(e){return e.trim()}function g(e,t,r){return e.replace(t,r)}function b(e,t){return e.indexOf(t)}function v(e,t){return 0|e.charCodeAt(t)}function y(e,t,r){return e.slice(t,r)}function w(e){return e.length}function x(e){return e.length}function O(e,t){return t.push(e),e}var S=1,C=1,k=0,_=0,E=0,T="";function N(e,t,r,n,i,o,s){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:S,column:C,length:s,return:""}}function P(e,t){return h(N("",null,null,"",null,null,0),e,{length:-e.length},t)}function A(){return E=_>0?v(T,--_):0,C--,10===E&&(C=1,S--),E}function M(){return E=_<k?v(T,_++):0,C++,10===E&&(C=1,S++),E}function D(){return v(T,_)}function R(){return _}function I(e,t){return y(T,e,t)}function L(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function j(e){return S=C=1,k=w(T=e),_=0,[]}function V(e){return T="",e}function F(e){return m(I(_-1,H(91===e?e+2:40===e?e+1:e)))}function q(e){for(;(E=D())&&E<33;)M();return L(e)>2||L(E)>3?"":" "}function B(e,t){for(;--t&&M()&&!(E<48||E>102||E>57&&E<65||E>70&&E<97););return I(e,R()+(t<6&&32==D()&&32==M()))}function H(e){for(;M();)switch(E){case e:return _;case 34:case 39:34!==e&&39!==e&&H(E);break;case 40:41===e&&H(e);break;case 92:M()}return _}function U(e,t){for(;M()&&e+E!==57&&(e+E!==84||47!==D()););return"/*"+I(t,_-1)+"*"+f(47===e?e:M())}function z(e){for(;!L(D());)M();return I(e,_)}var $="-ms-",G="-moz-",W="-webkit-",X="comm",Z="rule",Y="decl",J="@keyframes";function K(e,t){for(var r="",n=x(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function Q(e,t,r,n){switch(e.type){case"@import":case Y:return e.return=e.return||e.value;case X:return"";case J:return e.return=e.value+"{"+K(e.children,n)+"}";case Z:e.value=e.props.join(",")}return w(r=K(e.children,n))?e.return=e.value+"{"+r+"}":""}function ee(e,t){switch(function(e,t){return(((t<<2^v(e,0))<<2^v(e,1))<<2^v(e,2))<<2^v(e,3)}(e,t)){case 5103:return W+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return W+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return W+e+G+e+$+e+e;case 6828:case 4268:return W+e+$+e+e;case 6165:return W+e+$+"flex-"+e+e;case 5187:return W+e+g(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return W+e+$+"flex-item-"+g(e,/flex-|-self/,"")+e;case 4675:return W+e+$+"flex-line-pack"+g(e,/align-content|flex-|-self/,"")+e;case 5548:return W+e+$+g(e,"shrink","negative")+e;case 5292:return W+e+$+g(e,"basis","preferred-size")+e;case 6060:return W+"box-"+g(e,"-grow","")+W+e+$+g(e,"grow","positive")+e;case 4554:return W+g(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return g(g(g(e,/(zoom-|grab)/,W+"$1"),/(image-set)/,W+"$1"),e,"")+e;case 5495:case 3959:return g(e,/(image-set\([^]*)/,W+"$1$`$1");case 4968:return g(g(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+W+e+e;case 4095:case 3583:case 4068:case 2532:return g(e,/(.+)-inline(.+)/,W+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(w(e)-1-t>6)switch(v(e,t+1)){case 109:if(45!==v(e,t+4))break;case 102:return g(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+G+(108==v(e,t+3)?"$3":"$2-$3"))+e;case 115:return~b(e,"stretch")?ee(g(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==v(e,t+1))break;case 6444:switch(v(e,w(e)-3-(~b(e,"!important")&&10))){case 107:return g(e,":",":"+W)+e;case 101:return g(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+W+(45===v(e,14)?"inline-":"")+"box$3$1"+W+"$2$3$1"+$+"$2box$3")+e}break;case 5936:switch(v(e,t+11)){case 114:return W+e+$+g(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return W+e+$+g(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return W+e+$+g(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return W+e+$+e+e}return e}function te(e){return V(re("",null,null,null,[""],e=j(e),0,[0],e))}function re(e,t,r,n,i,o,s,a,l){for(var c=0,u=0,p=s,d=0,h=0,m=0,v=1,y=1,x=1,S=0,C="",k=i,_=o,E=n,T=C;y;)switch(m=S,S=M()){case 40:if(108!=m&&58==T.charCodeAt(p-1)){-1!=b(T+=g(F(S),"&","&\f"),"&\f")&&(x=-1);break}case 34:case 39:case 91:T+=F(S);break;case 9:case 10:case 13:case 32:T+=q(m);break;case 92:T+=B(R()-1,7);continue;case 47:switch(D()){case 42:case 47:O(ie(U(M(),R()),t,r),l);break;default:T+="/"}break;case 123*v:a[c++]=w(T)*x;case 125*v:case 59:case 0:switch(S){case 0:case 125:y=0;case 59+u:h>0&&w(T)-p&&O(h>32?oe(T+";",n,r,p-1):oe(g(T," ","")+";",n,r,p-2),l);break;case 59:T+=";";default:if(O(E=ne(T,t,r,c,u,i,a,C,k=[],_=[],p),o),123===S)if(0===u)re(T,t,E,E,k,o,p,a,_);else switch(d){case 100:case 109:case 115:re(e,E,E,n&&O(ne(e,E,E,0,0,i,a,C,i,k=[],p),_),i,_,p,a,n?k:_);break;default:re(T,E,E,E,[""],_,0,a,_)}}c=u=h=0,v=x=1,C=T="",p=s;break;case 58:p=1+w(T),h=m;default:if(v<1)if(123==S)--v;else if(125==S&&0==v++&&125==A())continue;switch(T+=f(S),S*v){case 38:x=u>0?1:(T+="\f",-1);break;case 44:a[c++]=(w(T)-1)*x,x=1;break;case 64:45===D()&&(T+=F(M())),d=D(),u=p=w(C=T+=z(R())),S++;break;case 45:45===m&&2==w(T)&&(v=0)}}return o}function ne(e,t,r,n,i,o,s,a,l,c,u){for(var p=i-1,f=0===i?o:[""],h=x(f),b=0,v=0,w=0;b<n;++b)for(var O=0,S=y(e,p+1,p=d(v=s[b])),C=e;O<h;++O)(C=m(v>0?f[O]+" "+S:g(S,/&\f/g,f[O])))&&(l[w++]=C);return N(e,t,r,0===i?Z:a,l,c,u)}function ie(e,t,r){return N(e,t,r,X,f(E),y(e,2,-2),0)}function oe(e,t,r,n){return N(e,t,r,Y,y(e,0,n),y(e,n+1,-1),n)}var se=function(e,t,r){for(var n=0,i=0;n=i,i=D(),38===n&&12===i&&(t[r]=1),!L(i);)M();return I(e,_)},ae=function(e,t){return V(function(e,t){var r=-1,n=44;do{switch(L(n)){case 0:38===n&&12===D()&&(t[r]=1),e[r]+=se(_-1,t,r);break;case 2:e[r]+=F(n);break;case 4:if(44===n){e[++r]=58===D()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=f(n)}}while(n=M());return e}(j(e),t))},le=new WeakMap,ce=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||le.get(r))&&!n){le.set(e,!0);for(var i=[],o=ae(t,i),s=r.props,a=0,l=0;a<o.length;a++)for(var c=0;c<s.length;c++,l++)e.props[l]=i[a]?o[a].replace(/&\f/g,s[c]):s[c]+" "+o[a]}}},ue=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},pe=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Y:e.return=ee(e.value,e.length);break;case J:return K([P(e,{value:g(e.value,"@","@"+W)})],n);case Z:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return K([P(e,{props:[g(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return K([P(e,{props:[g(t,/:(plac\w+)/,":-webkit-input-$1")]}),P(e,{props:[g(t,/:(plac\w+)/,":-moz-$1")]}),P(e,{props:[g(t,/:(plac\w+)/,$+"input-$1")]})],n)}return""}))}}];const de=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n=e.stylisPlugins||pe;var i,o,s={},a=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)s[t[r]]=!0;a.push(e)}));var l,c,u,d,f=[Q,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],h=(c=[ce,ue].concat(n,f),u=x(c),function(e,t,r,n){for(var i="",o=0;o<u;o++)i+=c[o](e,t,r,n)||"";return i});o=function(e,t,r,n){l=r,K(te(e?e+"{"+t.styles+"}":t.styles),h),n&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new p({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:o};return m.sheet.hydrate(a),m};function fe(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "})),n}var he=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},me=function(e,t,r){he(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+n:"",i,e.sheet,!0);i=i.next}while(void 0!==i)}};const ge=function(e){for(var t,r=0,n=0,i=e.length;i>=4;++n,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)};const be={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var ve=/[A-Z]|^ms/g,ye=/_EMO_([^_]+?)_([^]*?)_EMO_/g,we=function(e){return 45===e.charCodeAt(1)},xe=function(e){return null!=e&&"boolean"!=typeof e},Oe=function(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}((function(e){return we(e)?e:e.replace(ve,"-$&").toLowerCase()})),Se=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ye,(function(e,t,r){return ke={name:t,styles:r,next:ke},t}))}return 1===be[e]||we(e)||"number"!=typeof t||0===t?t:t+"px"};function Ce(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return ke={name:r.name,styles:r.styles,next:ke},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)ke={name:n.name,styles:n.styles,next:ke},n=n.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Ce(e,t,r[i])+";";else for(var o in r){var s=r[o];if("object"!=typeof s)null!=t&&void 0!==t[s]?n+=o+"{"+t[s]+"}":xe(s)&&(n+=Oe(o)+":"+Se(o,s)+";");else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var a=Ce(e,t,s);switch(o){case"animation":case"animationName":n+=Oe(o)+":"+a+";";break;default:n+=o+"{"+a+"}"}}else for(var l=0;l<s.length;l++)xe(s[l])&&(n+=Oe(o)+":"+Se(o,s[l])+";")}return n}(e,t,r);case"function":if(void 0!==e){var i=ke,o=r(e);return ke=i,Ce(e,t,o)}}if(null==t)return r;var s=t[r];return void 0!==s?s:r}var ke,_e=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var Ee=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,i="";ke=void 0;var o=e[0];null==o||void 0===o.raw?(n=!1,i+=Ce(r,t,o)):i+=o[0];for(var s=1;s<e.length;s++)i+=Ce(r,t,e[s]),n&&(i+=o[s]);_e.lastIndex=0;for(var a,l="";null!==(a=_e.exec(i));)l+="-"+a[1];return{name:ge(i)+l,styles:i,next:ke}},Te={}.hasOwnProperty,Ne=(0,u.createContext)("undefined"!=typeof HTMLElement?de({key:"css"}):null);var Pe=Ne.Provider,Ae=function(e){return(0,u.forwardRef)((function(t,r){var n=(0,u.useContext)(Ne);return e(t,n,r)}))},Me=(0,u.createContext)({});var De=u.useInsertionEffect?u.useInsertionEffect:function(e){e()};function Re(e){De(e)}var Ie="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Le=function(e,t){var r={};for(var n in t)Te.call(t,n)&&(r[n]=t[n]);return r[Ie]=e,r},je=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;he(t,r,n);Re((function(){return me(t,r,n)}));return null},Ve=Ae((function(e,t,r){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var i=e[Ie],o=[n],s="";"string"==typeof e.className?s=fe(t.registered,o,e.className):null!=e.className&&(s=e.className+" ");var a=Ee(o,void 0,(0,u.useContext)(Me));s+=t.key+"-"+a.name;var l={};for(var c in e)Te.call(e,c)&&"css"!==c&&c!==Ie&&(l[c]=e[c]);return l.ref=r,l.className=s,(0,u.createElement)(u.Fragment,null,(0,u.createElement)(je,{cache:t,serialized:a,isStringTag:"string"==typeof i}),(0,u.createElement)(i,l))}));r(8679);var Fe=function(e,t){var r=arguments;if(null==t||!Te.call(t,"css"))return u.createElement.apply(void 0,r);var n=r.length,i=new Array(n);i[0]=Ve,i[1]=Le(e,t);for(var o=2;o<n;o++)i[o]=r[o];return u.createElement.apply(null,i)};u.useInsertionEffect?u.useInsertionEffect:u.useLayoutEffect;function qe(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Ee(t)}var Be=function e(t){for(var r=t.length,n=0,i="";n<r;n++){var o=t[n];if(null!=o){var s=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))s=e(o);else for(var a in s="",o)o[a]&&a&&(s&&(s+=" "),s+=a);break;default:s=o}s&&(i&&(i+=" "),i+=s)}}return i};function He(e,t,r){var n=[],i=fe(e,n,r);return n.length<2?r:i+t(n)}var Ue=function(e){var t=e.cache,r=e.serializedArr;Re((function(){for(var e=0;e<r.length;e++)me(t,r[e],!1)}));return null},ze=Ae((function(e,t){var r=[],n=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var o=Ee(n,t.registered);return r.push(o),he(t,o,!1),t.key+"-"+o.name},i={css:n,cx:function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return He(t.registered,n,Be(r))},theme:(0,u.useContext)(Me)},o=e.children(i);return!0,(0,u.createElement)(u.Fragment,null,(0,u.createElement)(Ue,{cache:t,serializedArr:r}),o)}));function $e(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function We(e,t){if(e){if("string"==typeof e)return Ge(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ge(e,t):void 0}}function Xe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],s=!0,a=!1;try{for(r=r.call(e);!(s=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==r.return||r.return()}finally{if(a)throw i}}return o}}(e,t)||We(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ze(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ye(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Je(e,t,r){return t&&Ye(e.prototype,t),r&&Ye(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ke(e,t){return Ke=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ke(e,t)}function Qe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ke(e,t)}const et=window.ReactDOM;function tt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function nt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rt(Object(r),!0).forEach((function(t){tt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function it(e){return it=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},it(e)}function ot(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function st(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=it(e);if(t){var i=it(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return ot(this,r)}}var at=["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],lt=function(){};function ct(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function ut(e,t,r){var n=[r];if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&n.push("".concat(ct(e,i)));return n.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var pt=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===n(e)&&null!==e?[e]:[];var t},dt=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,nt({},$e(e,at))};function ft(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function ht(e){return ft(e)?window.pageYOffset:e.scrollTop}function mt(e,t){ft(e)?window.scrollTo(0,t):e.scrollTop=t}function gt(e,t,r,n){return r*((e=e/n-1)*e*e+1)+t}function bt(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:lt,i=ht(e),o=t-i,s=10,a=0;function l(){var t=gt(a+=s,i,o,r);mt(e,t),a<r?window.requestAnimationFrame(l):n(e)}l()}function vt(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var yt=!1,wt={get passive(){return yt=!0}},xt="undefined"!=typeof window?window:{};xt.addEventListener&&xt.removeEventListener&&(xt.addEventListener("p",lt,wt),xt.removeEventListener("p",lt,!1));var Ot=yt;function St(e){return null!=e}function Ct(e,t,r){return e?t:r}function kt(e){var t=e.maxHeight,r=e.menuEl,n=e.minHeight,i=e.placement,o=e.shouldScroll,s=e.isFixedPosition,a=e.theme.spacing,l=function(e){var t=getComputedStyle(e),r="absolute"===t.position,n=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!r||"static"!==t.position)&&n.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}(r),c={placement:"bottom",maxHeight:t};if(!r||!r.offsetParent)return c;var u,p=l.getBoundingClientRect().height,d=r.getBoundingClientRect(),f=d.bottom,h=d.height,m=d.top,g=r.offsetParent.getBoundingClientRect().top,b=s?window.innerHeight:ft(u=l)?window.innerHeight:u.clientHeight,v=ht(l),y=parseInt(getComputedStyle(r).marginBottom,10),w=parseInt(getComputedStyle(r).marginTop,10),x=g-w,O=b-m,S=x+v,C=p-v-m,k=f-b+v+y,_=v+m-w,E=160;switch(i){case"auto":case"bottom":if(O>=h)return{placement:"bottom",maxHeight:t};if(C>=h&&!s)return o&&bt(l,k,E),{placement:"bottom",maxHeight:t};if(!s&&C>=n||s&&O>=n)return o&&bt(l,k,E),{placement:"bottom",maxHeight:s?O-y:C-y};if("auto"===i||s){var T=t,N=s?x:S;return N>=n&&(T=Math.min(N-y-a.controlHeight,t)),{placement:"top",maxHeight:T}}if("bottom"===i)return o&&mt(l,k),{placement:"bottom",maxHeight:t};break;case"top":if(x>=h)return{placement:"top",maxHeight:t};if(S>=h&&!s)return o&&bt(l,_,E),{placement:"top",maxHeight:t};if(!s&&S>=n||s&&x>=n){var P=t;return(!s&&S>=n||s&&x>=n)&&(P=s?x-w:S-w),o&&bt(l,_,E),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}var _t=function(e){return"auto"===e?"bottom":e},Et=(0,u.createContext)({getPortalPlacement:null}),Tt=function(e){Qe(r,e);var t=st(r);function r(){var e;Ze(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.context=void 0,e.getPlacement=function(t){var r=e.props,n=r.minMenuHeight,i=r.maxMenuHeight,o=r.menuPlacement,s=r.menuPosition,a=r.menuShouldScrollIntoView,l=r.theme;if(t){var c="fixed"===s,u=kt({maxHeight:i,menuEl:t,minHeight:n,placement:o,shouldScroll:a&&!c,isFixedPosition:c,theme:l}),p=e.context.getPortalPlacement;p&&p(u),e.setState(u)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,r=e.state.placement||_t(t);return nt(nt({},e.props),{},{placement:r,maxHeight:e.state.maxHeight})},e}return Je(r,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),r}(u.Component);Tt.contextType=Et;var Nt=function(e){var t=e.theme,r=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px"),textAlign:"center"}},Pt=Nt,At=Nt,Mt=function(e){var t=e.children,r=e.className,n=e.cx,i=e.getStyles,o=e.innerProps;return Fe("div",c({css:i("noOptionsMessage",e),className:n({"menu-notice":!0,"menu-notice--no-options":!0},r)},o),t)};Mt.defaultProps={children:"No options"};var Dt=function(e){var t=e.children,r=e.className,n=e.cx,i=e.getStyles,o=e.innerProps;return Fe("div",c({css:i("loadingMessage",e),className:n({"menu-notice":!0,"menu-notice--loading":!0},r)},o),t)};Dt.defaultProps={children:"Loading..."};var Rt,It=function(e){Qe(r,e);var t=st(r);function r(){var e;Ze(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i))).state={placement:null},e.getPortalPlacement=function(t){var r=t.placement;r!==_t(e.props.menuPlacement)&&e.setState({placement:r})},e}return Je(r,[{key:"render",value:function(){var e=this.props,t=e.appendTo,r=e.children,n=e.className,i=e.controlElement,o=e.cx,s=e.innerProps,a=e.menuPlacement,l=e.menuPosition,u=e.getStyles,p="fixed"===l;if(!t&&!p||!i)return null;var d=this.state.placement||_t(a),f=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(i),h=p?0:window.pageYOffset,m=f[d]+h,g=Fe("div",c({css:u("menuPortal",{offset:m,position:l,rect:f}),className:o({"menu-portal":!0},n)},s),r);return Fe(Et.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?(0,et.createPortal)(g,t):g)}}]),r}(u.Component),Lt=["size"];var jt,Vt,Ft={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},qt=function(e){var t=e.size,r=$e(e,Lt);return Fe("svg",c({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Ft},r))},Bt=function(e){return Fe(qt,c({size:20},e),Fe("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Ht=function(e){return Fe(qt,c({size:20},e),Fe("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Ut=function(e){var t=e.isFocused,r=e.theme,n=r.spacing.baseUnit,i=r.colors;return{label:"indicatorContainer",color:t?i.neutral60:i.neutral20,display:"flex",padding:2*n,transition:"color 150ms",":hover":{color:t?i.neutral80:i.neutral40}}},zt=Ut,$t=Ut,Gt=function(){var e=qe.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Rt||(jt=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Vt||(Vt=jt.slice(0)),Rt=Object.freeze(Object.defineProperties(jt,{raw:{value:Object.freeze(Vt)}})))),Wt=function(e){var t=e.delay,r=e.offset;return Fe("span",{css:qe({animation:"".concat(Gt," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Xt=function(e){var t=e.className,r=e.cx,n=e.getStyles,i=e.innerProps,o=e.isRtl;return Fe("div",c({css:n("loadingIndicator",e),className:r({indicator:!0,"loading-indicator":!0},t)},i),Fe(Wt,{delay:0,offset:o}),Fe(Wt,{delay:160,offset:!0}),Fe(Wt,{delay:320,offset:!o}))};Xt.defaultProps={size:4};var Zt=["data"],Yt=["innerRef","isDisabled","isHidden","inputClassName"],Jt={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Kt={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":nt({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Jt)},Qt=function(e){return nt({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Jt)},er=function(e){var t=e.children,r=e.innerProps;return Fe("div",r,t)};var tr={ClearIndicator:function(e){var t=e.children,r=e.className,n=e.cx,i=e.getStyles,o=e.innerProps;return Fe("div",c({css:i("clearIndicator",e),className:n({indicator:!0,"clear-indicator":!0},r)},o),t||Fe(Bt,null))},Control:function(e){var t=e.children,r=e.cx,n=e.getStyles,i=e.className,o=e.isDisabled,s=e.isFocused,a=e.innerRef,l=e.innerProps,u=e.menuIsOpen;return Fe("div",c({ref:a,css:n("control",e),className:r({control:!0,"control--is-disabled":o,"control--is-focused":s,"control--menu-is-open":u},i)},l),t)},DropdownIndicator:function(e){var t=e.children,r=e.className,n=e.cx,i=e.getStyles,o=e.innerProps;return Fe("div",c({css:i("dropdownIndicator",e),className:n({indicator:!0,"dropdown-indicator":!0},r)},o),t||Fe(Ht,null))},DownChevron:Ht,CrossIcon:Bt,Group:function(e){var t=e.children,r=e.className,n=e.cx,i=e.getStyles,o=e.Heading,s=e.headingProps,a=e.innerProps,l=e.label,u=e.theme,p=e.selectProps;return Fe("div",c({css:i("group",e),className:n({group:!0},r)},a),Fe(o,c({},s,{selectProps:p,theme:u,getStyles:i,cx:n}),l),Fe("div",null,t))},GroupHeading:function(e){var t=e.getStyles,r=e.cx,n=e.className,i=dt(e);i.data;var o=$e(i,Zt);return Fe("div",c({css:t("groupHeading",e),className:r({"group-heading":!0},n)},o))},IndicatorsContainer:function(e){var t=e.children,r=e.className,n=e.cx,i=e.innerProps,o=e.getStyles;return Fe("div",c({css:o("indicatorsContainer",e),className:n({indicators:!0},r)},i),t)},IndicatorSeparator:function(e){var t=e.className,r=e.cx,n=e.getStyles,i=e.innerProps;return Fe("span",c({},i,{css:n("indicatorSeparator",e),className:r({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,r=e.cx,n=e.getStyles,i=e.value,o=dt(e),s=o.innerRef,a=o.isDisabled,l=o.isHidden,u=o.inputClassName,p=$e(o,Yt);return Fe("div",{className:r({"input-container":!0},t),css:n("input",e),"data-value":i||""},Fe("input",c({className:r({input:!0},u),ref:s,style:Qt(l),disabled:a},p)))},LoadingIndicator:Xt,Menu:function(e){var t=e.children,r=e.className,n=e.cx,i=e.getStyles,o=e.innerRef,s=e.innerProps;return Fe("div",c({css:i("menu",e),className:n({menu:!0},r),ref:o},s),t)},MenuList:function(e){var t=e.children,r=e.className,n=e.cx,i=e.getStyles,o=e.innerProps,s=e.innerRef,a=e.isMulti;return Fe("div",c({css:i("menuList",e),className:n({"menu-list":!0,"menu-list--is-multi":a},r),ref:s},o),t)},MenuPortal:It,LoadingMessage:Dt,NoOptionsMessage:Mt,MultiValue:function(e){var t=e.children,r=e.className,n=e.components,i=e.cx,o=e.data,s=e.getStyles,a=e.innerProps,l=e.isDisabled,c=e.removeProps,u=e.selectProps,p=n.Container,d=n.Label,f=n.Remove;return Fe(ze,null,(function(n){var h=n.css,m=n.cx;return Fe(p,{data:o,innerProps:nt({className:m(h(s("multiValue",e)),i({"multi-value":!0,"multi-value--is-disabled":l},r))},a),selectProps:u},Fe(d,{data:o,innerProps:{className:m(h(s("multiValueLabel",e)),i({"multi-value__label":!0},r))},selectProps:u},t),Fe(f,{data:o,innerProps:nt({className:m(h(s("multiValueRemove",e)),i({"multi-value__remove":!0},r)),"aria-label":"Remove ".concat(t||"option")},c),selectProps:u}))}))},MultiValueContainer:er,MultiValueLabel:er,MultiValueRemove:function(e){var t=e.children,r=e.innerProps;return Fe("div",c({role:"button"},r),t||Fe(Bt,{size:14}))},Option:function(e){var t=e.children,r=e.className,n=e.cx,i=e.getStyles,o=e.isDisabled,s=e.isFocused,a=e.isSelected,l=e.innerRef,u=e.innerProps;return Fe("div",c({css:i("option",e),className:n({option:!0,"option--is-disabled":o,"option--is-focused":s,"option--is-selected":a},r),ref:l,"aria-disabled":o},u),t)},Placeholder:function(e){var t=e.children,r=e.className,n=e.cx,i=e.getStyles,o=e.innerProps;return Fe("div",c({css:i("placeholder",e),className:n({placeholder:!0},r)},o),t)},SelectContainer:function(e){var t=e.children,r=e.className,n=e.cx,i=e.getStyles,o=e.innerProps,s=e.isDisabled,a=e.isRtl;return Fe("div",c({css:i("container",e),className:n({"--is-disabled":s,"--is-rtl":a},r)},o),t)},SingleValue:function(e){var t=e.children,r=e.className,n=e.cx,i=e.getStyles,o=e.isDisabled,s=e.innerProps;return Fe("div",c({css:i("singleValue",e),className:n({"single-value":!0,"single-value--is-disabled":o},r)},s),t)},ValueContainer:function(e){var t=e.children,r=e.className,n=e.cx,i=e.innerProps,o=e.isMulti,s=e.getStyles,a=e.hasValue;return Fe("div",c({css:s("valueContainer",e),className:n({"value-container":!0,"value-container--is-multi":o,"value-container--has-value":a},r)},i),t)}},rr=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function nr(e){return function(e){if(Array.isArray(e))return Ge(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||We(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ir=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function or(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(n=e[r],i=t[r],!(n===i||ir(n)&&ir(i)))return!1;var n,i;return!0}const sr=function(e,t){var r;void 0===t&&(t=or);var n,i=[],o=!1;return function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return o&&r===this&&t(s,i)||(n=e.apply(this,s),o=!0,r=this,i=s),n}};for(var ar={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},lr=function(e){return Fe("span",c({css:ar},e))},cr={guidance:function(e){var t=e.isSearchable,r=e.isMulti,n=e.isDisabled,i=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(n?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,r=e.label,n=void 0===r?"":r,i=e.labels,o=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return"option ".concat(n,o?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,r=e.focused,n=e.options,i=e.label,o=void 0===i?"":i,s=e.selectValue,a=e.isDisabled,l=e.isSelected,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&s)return"value ".concat(o," focused, ").concat(c(s,r),".");if("menu"===t){var u=a?" disabled":"",p="".concat(l?"selected":"focused").concat(u);return"option ".concat(o," ").concat(p,", ").concat(c(n,r),".")}return""},onFilter:function(e){var t=e.inputValue,r=e.resultsMessage;return"".concat(r).concat(t?" for search term "+t:"",".")}},ur=function(e){var t=e.ariaSelection,r=e.focusedOption,n=e.focusedValue,i=e.focusableOptions,o=e.isFocused,s=e.selectValue,a=e.selectProps,l=e.id,c=a.ariaLiveMessages,p=a.getOptionLabel,d=a.inputValue,f=a.isMulti,h=a.isOptionDisabled,m=a.isSearchable,g=a.menuIsOpen,b=a.options,v=a.screenReaderStatus,y=a.tabSelectsValue,w=a["aria-label"],x=a["aria-live"],O=(0,u.useMemo)((function(){return nt(nt({},cr),c||{})}),[c]),S=(0,u.useMemo)((function(){var e,r="";if(t&&O.onChange){var n=t.option,i=t.options,o=t.removedValue,a=t.removedValues,l=t.value,c=o||n||(e=l,Array.isArray(e)?null:e),u=c?p(c):"",d=i||a||void 0,f=d?d.map(p):[],m=nt({isDisabled:c&&h(c,s),label:u,labels:f},t);r=O.onChange(m)}return r}),[t,O,h,s,p]),C=(0,u.useMemo)((function(){var e="",t=r||n,i=!!(r&&s&&s.includes(r));if(t&&O.onFocus){var o={focused:t,label:p(t),isDisabled:h(t,s),isSelected:i,options:b,context:t===r?"menu":"value",selectValue:s};e=O.onFocus(o)}return e}),[r,n,p,h,O,b,s]),k=(0,u.useMemo)((function(){var e="";if(g&&b.length&&O.onFilter){var t=v({count:i.length});e=O.onFilter({inputValue:d,resultsMessage:t})}return e}),[i,d,g,O,b,v]),_=(0,u.useMemo)((function(){var e="";if(O.guidance){var t=n?"value":g?"menu":"input";e=O.guidance({"aria-label":w,context:t,isDisabled:r&&h(r,s),isMulti:f,isSearchable:m,tabSelectsValue:y})}return e}),[w,r,n,f,h,m,g,O,s,y]),E="".concat(C," ").concat(k," ").concat(_),T=Fe(u.Fragment,null,Fe("span",{id:"aria-selection"},S),Fe("span",{id:"aria-context"},E)),N="initial-input-focus"===(null==t?void 0:t.action);return Fe(u.Fragment,null,Fe(lr,{id:l},N&&T),Fe(lr,{"aria-live":x,"aria-atomic":"false","aria-relevant":"additions text"},o&&!N&&T))},pr=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],dr=new RegExp("["+pr.map((function(e){return e.letters})).join("")+"]","g"),fr={},hr=0;hr<pr.length;hr++)for(var mr=pr[hr],gr=0;gr<mr.letters.length;gr++)fr[mr.letters[gr]]=mr.base;var br=function(e){return e.replace(dr,(function(e){return fr[e]}))},vr=sr(br),yr=function(e){return e.replace(/^\s+|\s+$/g,"")},wr=function(e){return"".concat(e.label," ").concat(e.value)},xr=["innerRef"];function Or(e){var t=e.innerRef,r=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=Object.entries(e).filter((function(e){var t=Xe(e,1)[0];return!r.includes(t)}));return i.reduce((function(e,t){var r=Xe(t,2),n=r[0],i=r[1];return e[n]=i,e}),{})}($e(e,xr),"onExited","in","enter","exit","appear");return Fe("input",c({ref:t},r,{css:qe({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Sr=["boxSizing","height","overflow","paddingRight","position"],Cr={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function kr(e){e.preventDefault()}function _r(e){e.stopPropagation()}function Er(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;0===e?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function Tr(){return"ontouchstart"in window||navigator.maxTouchPoints}var Nr=!("undefined"==typeof window||!window.document||!window.document.createElement),Pr=0,Ar={capture:!1,passive:!1};var Mr=function(){return document.activeElement&&document.activeElement.blur()},Dr={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Rr(e){var t=e.children,r=e.lockEnabled,n=e.captureEnabled,i=function(e){var t=e.isEnabled,r=e.onBottomArrive,n=e.onBottomLeave,i=e.onTopArrive,o=e.onTopLeave,s=(0,u.useRef)(!1),a=(0,u.useRef)(!1),l=(0,u.useRef)(0),c=(0,u.useRef)(null),p=(0,u.useCallback)((function(e,t){if(null!==c.current){var l=c.current,u=l.scrollTop,p=l.scrollHeight,d=l.clientHeight,f=c.current,h=t>0,m=p-d-u,g=!1;m>t&&s.current&&(n&&n(e),s.current=!1),h&&a.current&&(o&&o(e),a.current=!1),h&&t>m?(r&&!s.current&&r(e),f.scrollTop=p,g=!0,s.current=!0):!h&&-t>u&&(i&&!a.current&&i(e),f.scrollTop=0,g=!0,a.current=!0),g&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[r,n,i,o]),d=(0,u.useCallback)((function(e){p(e,e.deltaY)}),[p]),f=(0,u.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),h=(0,u.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;p(e,t)}),[p]),m=(0,u.useCallback)((function(e){if(e){var t=!!Ot&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",h,t)}}),[h,f,d]),g=(0,u.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",h,!1))}),[h,f,d]);return(0,u.useEffect)((function(){if(t){var e=c.current;return m(e),function(){g(e)}}}),[t,m,g]),function(e){c.current=e}}({isEnabled:void 0===n||n,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),o=function(e){var t=e.isEnabled,r=e.accountForScrollbars,n=void 0===r||r,i=(0,u.useRef)({}),o=(0,u.useRef)(null),s=(0,u.useCallback)((function(e){if(Nr){var t=document.body,r=t&&t.style;if(n&&Sr.forEach((function(e){var t=r&&r[e];i.current[e]=t})),n&&Pr<1){var o=parseInt(i.current.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,a=window.innerWidth-s+o||0;Object.keys(Cr).forEach((function(e){var t=Cr[e];r&&(r[e]=t)})),r&&(r.paddingRight="".concat(a,"px"))}t&&Tr()&&(t.addEventListener("touchmove",kr,Ar),e&&(e.addEventListener("touchstart",Er,Ar),e.addEventListener("touchmove",_r,Ar))),Pr+=1}}),[n]),a=(0,u.useCallback)((function(e){if(Nr){var t=document.body,r=t&&t.style;Pr=Math.max(Pr-1,0),n&&Pr<1&&Sr.forEach((function(e){var t=i.current[e];r&&(r[e]=t)})),t&&Tr()&&(t.removeEventListener("touchmove",kr,Ar),e&&(e.removeEventListener("touchstart",Er,Ar),e.removeEventListener("touchmove",_r,Ar)))}}),[n]);return(0,u.useEffect)((function(){if(t){var e=o.current;return s(e),function(){a(e)}}}),[t,s,a]),function(e){o.current=e}}({isEnabled:r});return Fe(u.Fragment,null,r&&Fe("div",{onClick:Mr,css:Dr}),t((function(e){i(e),o(e)})))}var Ir={clearIndicator:$t,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e){var t=e.isDisabled,r=e.isFocused,n=e.theme,i=n.colors,o=n.borderRadius,s=n.spacing;return{label:"control",alignItems:"center",backgroundColor:t?i.neutral5:i.neutral0,borderColor:t?i.neutral10:r?i.primary:i.neutral20,borderRadius:o,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:r?i.primary:i.neutral30}}},dropdownIndicator:zt,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,r=e.theme,n=r.spacing.baseUnit,i=r.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?i.neutral10:i.neutral20,marginBottom:2*n,marginTop:2*n,width:1}},input:function(e){var t=e.isDisabled,r=e.value,n=e.theme,i=n.spacing,o=n.colors;return nt({margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80,transform:r?"translateZ(0)":""},Kt)},loadingIndicator:function(e){var t=e.isFocused,r=e.size,n=e.theme,i=n.colors,o=n.spacing.baseUnit;return{label:"loadingIndicator",color:t?i.neutral60:i.neutral20,display:"flex",padding:2*o,transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"}},loadingMessage:At,menu:function(e){var t,r=e.placement,n=e.theme,o=n.borderRadius,s=n.spacing,a=n.colors;return i(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),i(t,"backgroundColor",a.neutral0),i(t,"borderRadius",o),i(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),i(t,"marginBottom",s.menuGutter),i(t,"marginTop",s.menuGutter),i(t,"position","absolute"),i(t,"width","100%"),i(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,r=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:r,paddingTop:r,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,r=e.offset,n=e.position;return{left:t.left,position:n,top:r,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,r=t.spacing,n=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:n/2,display:"flex",margin:r.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,r=t.borderRadius,n=t.colors,i=e.cropWithEllipsis;return{borderRadius:r/2,color:n.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,r=t.spacing,n=t.borderRadius,i=t.colors;return{alignItems:"center",borderRadius:n/2,backgroundColor:e.isFocused?i.dangerLight:void 0,display:"flex",paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}}},noOptionsMessage:Pt,option:function(e){var t=e.isDisabled,r=e.isFocused,n=e.isSelected,i=e.theme,o=i.spacing,s=i.colors;return{label:"option",backgroundColor:n?s.primary:r?s.primary25:"transparent",color:t?s.neutral20:n?s.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*o.baseUnit,"px ").concat(3*o.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:t?void 0:n?s.primary:s.primary50}}},placeholder:function(e){var t=e.theme,r=t.spacing;return{label:"placeholder",color:t.colors.neutral50,gridArea:"1 / 1 / 2 / 3",marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2}},singleValue:function(e){var t=e.isDisabled,r=e.theme,n=r.spacing,i=r.colors;return{label:"singleValue",color:t?i.neutral40:i.neutral80,gridArea:"1 / 1 / 2 / 3",marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},valueContainer:function(e){var t=e.theme.spacing,r=e.isMulti,n=e.hasValue,i=e.selectProps.controlShouldRenderValue;return{alignItems:"center",display:r&&n&&i?"flex":"grid",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};var Lr,jr={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Vr={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:vt(),captureMenuScroll:!vt(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var r=nt({ignoreCase:!0,ignoreAccents:!0,stringify:wr,trim:!0,matchFrom:"any"},Lr),n=r.ignoreCase,i=r.ignoreAccents,o=r.stringify,s=r.trim,a=r.matchFrom,l=s?yr(t):t,c=s?yr(o(e)):o(e);return n&&(l=l.toLowerCase(),c=c.toLowerCase()),i&&(l=vr(l),c=br(c)),"start"===a?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0};function Fr(e,t,r,n){return{type:"option",data:t,isDisabled:$r(e,t,r),isSelected:Gr(e,t,r),label:Ur(e,t),value:zr(e,t),index:n}}function qr(e,t){return e.options.map((function(r,n){if("options"in r){var i=r.options.map((function(r,n){return Fr(e,r,t,n)})).filter((function(t){return Hr(e,t)}));return i.length>0?{type:"group",data:r,options:i,index:n}:void 0}var o=Fr(e,r,t,n);return Hr(e,o)?o:void 0})).filter(St)}function Br(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,nr(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Hr(e,t){var r=e.inputValue,n=void 0===r?"":r,i=t.data,o=t.isSelected,s=t.label,a=t.value;return(!Xr(e)||!o)&&Wr(e,{label:s,value:a,data:i},n)}var Ur=function(e,t){return e.getOptionLabel(t)},zr=function(e,t){return e.getOptionValue(t)};function $r(e,t,r){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,r)}function Gr(e,t,r){if(r.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,r);var n=zr(e,t);return r.some((function(t){return zr(e,t)===n}))}function Wr(e,t,r){return!e.filterOption||e.filterOption(t,r)}var Xr=function(e){var t=e.hideSelectedOptions,r=e.isMulti;return void 0===t?r:t},Zr=1,Yr=function(e){Qe(r,e);var t=st(r);function r(e){var n;return Ze(this,r),(n=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},n.blockOptionHover=!1,n.isComposing=!1,n.commonProps=void 0,n.initialTouchX=0,n.initialTouchY=0,n.instancePrefix="",n.openAfterFocus=!1,n.scrollToFocusedOptionOnUpdate=!1,n.userIsDragging=void 0,n.controlRef=null,n.getControlRef=function(e){n.controlRef=e},n.focusedOptionRef=null,n.getFocusedOptionRef=function(e){n.focusedOptionRef=e},n.menuListRef=null,n.getMenuListRef=function(e){n.menuListRef=e},n.inputRef=null,n.getInputRef=function(e){n.inputRef=e},n.focus=n.focusInput,n.blur=n.blurInput,n.onChange=function(e,t){var r=n.props,i=r.onChange,o=r.name;t.name=o,n.ariaOnChange(e,t),i(e,t)},n.setValue=function(e,t,r){var i=n.props,o=i.closeMenuOnSelect,s=i.isMulti,a=i.inputValue;n.onInputChange("",{action:"set-value",prevInputValue:a}),o&&(n.setState({inputIsHiddenAfterUpdate:!s}),n.onMenuClose()),n.setState({clearFocusValueOnUpdate:!0}),n.onChange(e,{action:t,option:r})},n.selectOption=function(e){var t=n.props,r=t.blurInputOnSelect,i=t.isMulti,o=t.name,s=n.state.selectValue,a=i&&n.isOptionSelected(e,s),l=n.isOptionDisabled(e,s);if(a){var c=n.getOptionValue(e);n.setValue(s.filter((function(e){return n.getOptionValue(e)!==c})),"deselect-option",e)}else{if(l)return void n.ariaOnChange(e,{action:"select-option",option:e,name:o});i?n.setValue([].concat(nr(s),[e]),"select-option",e):n.setValue(e,"select-option")}r&&n.blurInput()},n.removeValue=function(e){var t=n.props.isMulti,r=n.state.selectValue,i=n.getOptionValue(e),o=r.filter((function(e){return n.getOptionValue(e)!==i})),s=Ct(t,o,o[0]||null);n.onChange(s,{action:"remove-value",removedValue:e}),n.focusInput()},n.clearValue=function(){var e=n.state.selectValue;n.onChange(Ct(n.props.isMulti,[],null),{action:"clear",removedValues:e})},n.popValue=function(){var e=n.props.isMulti,t=n.state.selectValue,r=t[t.length-1],i=t.slice(0,t.length-1),o=Ct(e,i,i[0]||null);n.onChange(o,{action:"pop-value",removedValue:r})},n.getValue=function(){return n.state.selectValue},n.cx=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ut.apply(void 0,[n.props.classNamePrefix].concat(t))},n.getOptionLabel=function(e){return Ur(n.props,e)},n.getOptionValue=function(e){return zr(n.props,e)},n.getStyles=function(e,t){var r=Ir[e](t);r.boxSizing="border-box";var i=n.props.styles[e];return i?i(r,t):r},n.getElementId=function(e){return"".concat(n.instancePrefix,"-").concat(e)},n.getComponents=function(){return e=n.props,nt(nt({},tr),e.components);var e},n.buildCategorizedOptions=function(){return qr(n.props,n.state.selectValue)},n.getCategorizedOptions=function(){return n.props.menuIsOpen?n.buildCategorizedOptions():[]},n.buildFocusableOptions=function(){return Br(n.buildCategorizedOptions())},n.getFocusableOptions=function(){return n.props.menuIsOpen?n.buildFocusableOptions():[]},n.ariaOnChange=function(e,t){n.setState({ariaSelection:nt({value:e},t)})},n.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),n.focusInput())},n.onMenuMouseMove=function(e){n.blockOptionHover=!1},n.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=n.props.openMenuOnClick;n.state.isFocused?n.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&n.onMenuClose():t&&n.openMenu("first"):(t&&(n.openAfterFocus=!0),n.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},n.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||n.props.isDisabled)){var t=n.props,r=t.isMulti,i=t.menuIsOpen;n.focusInput(),i?(n.setState({inputIsHiddenAfterUpdate:!r}),n.onMenuClose()):n.openMenu("first"),e.preventDefault()}},n.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(n.clearValue(),e.preventDefault(),n.openAfterFocus=!1,"touchend"===e.type?n.focusInput():setTimeout((function(){return n.focusInput()})))},n.onScroll=function(e){"boolean"==typeof n.props.closeMenuOnScroll?e.target instanceof HTMLElement&&ft(e.target)&&n.props.onMenuClose():"function"==typeof n.props.closeMenuOnScroll&&n.props.closeMenuOnScroll(e)&&n.props.onMenuClose()},n.onCompositionStart=function(){n.isComposing=!0},n.onCompositionEnd=function(){n.isComposing=!1},n.onTouchStart=function(e){var t=e.touches,r=t&&t.item(0);r&&(n.initialTouchX=r.clientX,n.initialTouchY=r.clientY,n.userIsDragging=!1)},n.onTouchMove=function(e){var t=e.touches,r=t&&t.item(0);if(r){var i=Math.abs(r.clientX-n.initialTouchX),o=Math.abs(r.clientY-n.initialTouchY);n.userIsDragging=i>5||o>5}},n.onTouchEnd=function(e){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(e.target)&&n.menuListRef&&!n.menuListRef.contains(e.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)},n.onControlTouchEnd=function(e){n.userIsDragging||n.onControlMouseDown(e)},n.onClearIndicatorTouchEnd=function(e){n.userIsDragging||n.onClearIndicatorMouseDown(e)},n.onDropdownIndicatorTouchEnd=function(e){n.userIsDragging||n.onDropdownIndicatorMouseDown(e)},n.handleInputChange=function(e){var t=n.props.inputValue,r=e.currentTarget.value;n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange(r,{action:"input-change",prevInputValue:t}),n.props.menuIsOpen||n.onMenuOpen()},n.onInputFocus=function(e){n.props.onFocus&&n.props.onFocus(e),n.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1},n.onInputBlur=function(e){var t=n.props.inputValue;n.menuListRef&&n.menuListRef.contains(document.activeElement)?n.inputRef.focus():(n.props.onBlur&&n.props.onBlur(e),n.onInputChange("",{action:"input-blur",prevInputValue:t}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1}))},n.onOptionHover=function(e){n.blockOptionHover||n.state.focusedOption===e||n.setState({focusedOption:e})},n.shouldHideSelectedOptions=function(){return Xr(n.props)},n.onKeyDown=function(e){var t=n.props,r=t.isMulti,i=t.backspaceRemovesValue,o=t.escapeClearsValue,s=t.inputValue,a=t.isClearable,l=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,p=t.tabSelectsValue,d=t.openMenuOnFocus,f=n.state,h=f.focusedOption,m=f.focusedValue,g=f.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(n.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||s)return;n.focusValue("previous");break;case"ArrowRight":if(!r||s)return;n.focusValue("next");break;case"Delete":case"Backspace":if(s)return;if(m)n.removeValue(m);else{if(!i)return;r?n.popValue():a&&n.clearValue()}break;case"Tab":if(n.isComposing)return;if(e.shiftKey||!c||!p||!h||d&&n.isOptionSelected(h,g))return;n.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(c){if(!h)return;if(n.isComposing)return;n.selectOption(h);break}return;case"Escape":c?(n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange("",{action:"menu-close",prevInputValue:s}),n.onMenuClose()):a&&o&&n.clearValue();break;case" ":if(s)return;if(!c){n.openMenu("first");break}if(!h)return;n.selectOption(h);break;case"ArrowUp":c?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":c?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!c)return;n.focusOption("pageup");break;case"PageDown":if(!c)return;n.focusOption("pagedown");break;case"Home":if(!c)return;n.focusOption("first");break;case"End":if(!c)return;n.focusOption("last");break;default:return}e.preventDefault()}},n.instancePrefix="react-select-"+(n.props.instanceId||++Zr),n.state.selectValue=pt(e.value),n}return Je(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(e){var t,r,n,i,o,s=this.props,a=s.isDisabled,l=s.menuIsOpen,c=this.state.isFocused;(c&&!a&&e.isDisabled||c&&l&&!e.menuIsOpen)&&this.focusInput(),c&&a&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,r=this.focusedOptionRef,n=t.getBoundingClientRect(),i=r.getBoundingClientRect(),o=r.offsetHeight/3,i.bottom+o>n.bottom?mt(t,Math.min(r.offsetTop+r.clientHeight-t.offsetHeight+o,t.scrollHeight)):i.top-o<n.top&&mt(t,Math.max(r.offsetTop-o,0)),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,r=this.state,n=r.selectValue,i=r.isFocused,o=this.buildFocusableOptions(),s="first"===e?0:o.length-1;if(!this.props.isMulti){var a=o.indexOf(n[0]);a>-1&&(s=a)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[s]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,r=t.selectValue,n=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=r.indexOf(n);n||(i=-1);var o=r.length-1,s=-1;if(r.length){switch(e){case"previous":s=0===i?0:-1===i?o:i-1;break;case"next":i>-1&&i<o&&(s=i+1)}this.setState({inputIsHidden:-1!==s,focusedValue:r[s]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,r=this.state.focusedOption,n=this.getFocusableOptions();if(n.length){var i=0,o=n.indexOf(r);r||(o=-1),"up"===e?i=o>0?o-1:n.length-1:"down"===e?i=(o+1)%n.length:"pageup"===e?(i=o-t)<0&&(i=0):"pagedown"===e?(i=o+t)>n.length-1&&(i=n.length-1):"last"===e&&(i=n.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:n[i],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(jr):nt(nt({},jr),this.props.theme):jr}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,r=this.getStyles,n=this.getValue,i=this.selectOption,o=this.setValue,s=this.props,a=s.isMulti,l=s.isRtl,c=s.options;return{clearValue:e,cx:t,getStyles:r,getValue:n,hasValue:this.hasValue(),isMulti:a,isRtl:l,options:c,selectOption:i,selectProps:s,setValue:o,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,r=e.isMulti;return void 0===t?r:t}},{key:"isOptionDisabled",value:function(e,t){return $r(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Gr(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Wr(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var r=this.props.inputValue,n=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:r,selectValue:n})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,r=e.isSearchable,n=e.inputId,i=e.inputValue,o=e.tabIndex,s=e.form,a=e.menuIsOpen,l=this.getComponents().Input,p=this.state,d=p.inputIsHidden,f=p.ariaSelection,h=this.commonProps,m=n||this.getElementId("input"),g=nt(nt(nt({"aria-autocomplete":"list","aria-expanded":a,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],role:"combobox"},a&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!r&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return r?u.createElement(l,c({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:o,form:s,type:"text",value:i},g)):u.createElement(Or,c({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:lt,onFocus:this.onInputFocus,disabled:t,tabIndex:o,inputMode:"none",form:s,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),r=t.MultiValue,n=t.MultiValueContainer,i=t.MultiValueLabel,o=t.MultiValueRemove,s=t.SingleValue,a=t.Placeholder,l=this.commonProps,p=this.props,d=p.controlShouldRenderValue,f=p.isDisabled,h=p.isMulti,m=p.inputValue,g=p.placeholder,b=this.state,v=b.selectValue,y=b.focusedValue,w=b.isFocused;if(!this.hasValue()||!d)return m?null:u.createElement(a,c({},l,{key:"placeholder",isDisabled:f,isFocused:w,innerProps:{id:this.getElementId("placeholder")}}),g);if(h)return v.map((function(t,s){var a=t===y,p="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return u.createElement(r,c({},l,{components:{Container:n,Label:i,Remove:o},isFocused:a,isDisabled:f,key:p,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(m)return null;var x=v[0];return u.createElement(s,c({},l,{data:x,isDisabled:f}),this.formatOptionLabel(x,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,r=this.props,n=r.isDisabled,i=r.isLoading,o=this.state.isFocused;if(!this.isClearable()||!e||n||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return u.createElement(e,c({},t,{innerProps:s,isFocused:o}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,r=this.props,n=r.isDisabled,i=r.isLoading,o=this.state.isFocused;if(!e||!i)return null;return u.createElement(e,c({},t,{innerProps:{"aria-hidden":"true"},isDisabled:n,isFocused:o}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,r=e.IndicatorSeparator;if(!t||!r)return null;var n=this.commonProps,i=this.props.isDisabled,o=this.state.isFocused;return u.createElement(r,c({},n,{isDisabled:i,isFocused:o}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,r=this.props.isDisabled,n=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return u.createElement(e,c({},t,{innerProps:i,isDisabled:r,isFocused:n}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),r=t.Group,n=t.GroupHeading,i=t.Menu,o=t.MenuList,s=t.MenuPortal,a=t.LoadingMessage,l=t.NoOptionsMessage,p=t.Option,d=this.commonProps,f=this.state.focusedOption,h=this.props,m=h.captureMenuScroll,g=h.inputValue,b=h.isLoading,v=h.loadingMessage,y=h.minMenuHeight,w=h.maxMenuHeight,x=h.menuIsOpen,O=h.menuPlacement,S=h.menuPosition,C=h.menuPortalTarget,k=h.menuShouldBlockScroll,_=h.menuShouldScrollIntoView,E=h.noOptionsMessage,T=h.onMenuScrollToTop,N=h.onMenuScrollToBottom;if(!x)return null;var P,A=function(t,r){var n=t.type,i=t.data,o=t.isDisabled,s=t.isSelected,a=t.label,l=t.value,h=f===i,m=o?void 0:function(){return e.onOptionHover(i)},g=o?void 0:function(){return e.selectOption(i)},b="".concat(e.getElementId("option"),"-").concat(r),v={id:b,onClick:g,onMouseMove:m,onMouseOver:m,tabIndex:-1};return u.createElement(p,c({},d,{innerProps:v,data:i,isDisabled:o,isSelected:s,key:b,label:a,type:n,value:l,isFocused:h,innerRef:h?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())P=this.getCategorizedOptions().map((function(t){if("group"===t.type){var i=t.data,o=t.options,s=t.index,a="".concat(e.getElementId("group"),"-").concat(s),l="".concat(a,"-heading");return u.createElement(r,c({},d,{key:a,data:i,options:o,Heading:n,headingProps:{id:l,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return A(e,"".concat(s,"-").concat(e.index))})))}if("option"===t.type)return A(t,"".concat(t.index))}));else if(b){var M=v({inputValue:g});if(null===M)return null;P=u.createElement(a,d,M)}else{var D=E({inputValue:g});if(null===D)return null;P=u.createElement(l,d,D)}var R={minMenuHeight:y,maxMenuHeight:w,menuPlacement:O,menuPosition:S,menuShouldScrollIntoView:_},I=u.createElement(Tt,c({},d,R),(function(t){var r=t.ref,n=t.placerProps,s=n.placement,a=n.maxHeight;return u.createElement(i,c({},d,R,{innerRef:r,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:b,placement:s}),u.createElement(Rr,{captureEnabled:m,onTopArrive:T,onBottomArrive:N,lockEnabled:k},(function(t){return u.createElement(o,c({},d,{innerRef:function(r){e.getMenuListRef(r),t(r)},isLoading:b,maxHeight:a,focusedOption:f}),P)})))}));return C||"fixed"===S?u.createElement(s,c({},d,{appendTo:C,controlElement:this.controlRef,menuPlacement:O,menuPosition:S}),I):I}},{key:"renderFormField",value:function(){var e=this,t=this.props,r=t.delimiter,n=t.isDisabled,i=t.isMulti,o=t.name,s=this.state.selectValue;if(o&&!n){if(i){if(r){var a=s.map((function(t){return e.getOptionValue(t)})).join(r);return u.createElement("input",{name:o,type:"hidden",value:a})}var l=s.length>0?s.map((function(t,r){return u.createElement("input",{key:"i-".concat(r),name:o,type:"hidden",value:e.getOptionValue(t)})})):u.createElement("input",{name:o,type:"hidden"});return u.createElement("div",null,l)}var c=s[0]?this.getOptionValue(s[0]):"";return u.createElement("input",{name:o,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,r=t.ariaSelection,n=t.focusedOption,i=t.focusedValue,o=t.isFocused,s=t.selectValue,a=this.getFocusableOptions();return u.createElement(ur,c({},e,{id:this.getElementId("live-region"),ariaSelection:r,focusedOption:n,focusedValue:i,isFocused:o,selectValue:s,focusableOptions:a}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,r=e.IndicatorsContainer,n=e.SelectContainer,i=e.ValueContainer,o=this.props,s=o.className,a=o.id,l=o.isDisabled,p=o.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return u.createElement(n,c({},f,{className:s,innerProps:{id:a,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:d}),this.renderLiveRegion(),u.createElement(t,c({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:d,menuIsOpen:p}),u.createElement(i,c({},f,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),u.createElement(r,c({},f,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=t.prevProps,n=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,o=t.ariaSelection,s=t.isFocused,a=t.prevWasFocused,l=e.options,c=e.value,u=e.menuIsOpen,p=e.inputValue,d=e.isMulti,f=pt(c),h={};if(r&&(c!==r.value||l!==r.options||u!==r.menuIsOpen||p!==r.inputValue)){var m=u?function(e,t){return Br(qr(e,t))}(e,f):[],g=n?function(e,t){var r=e.focusedValue,n=e.selectValue.indexOf(r);if(n>-1){if(t.indexOf(r)>-1)return r;if(n<t.length)return t[n]}return null}(t,f):null,b=function(e,t){var r=e.focusedOption;return r&&t.indexOf(r)>-1?r:t[0]}(t,m);h={selectValue:f,focusedOption:b,focusedValue:g,clearFocusValueOnUpdate:!1}}var v=null!=i&&e!==r?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},y=o,w=s&&a;return s&&!w&&(y={value:Ct(d,f,f[0]||null),options:f,action:"initial-input-focus"},w=!a),"initial-input-focus"===(null==o?void 0:o.action)&&(y=null),nt(nt(nt({},h),v),{},{prevProps:e,ariaSelection:y,prevWasFocused:w})}}]),r}(u.Component);Yr.defaultProps=Vr;var Jr=(0,u.forwardRef)((function(e,t){var r=function(e){var t=e.defaultInputValue,r=void 0===t?"":t,n=e.defaultMenuIsOpen,i=void 0!==n&&n,o=e.defaultValue,s=void 0===o?null:o,a=e.inputValue,l=e.menuIsOpen,c=e.onChange,p=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,h=e.value,m=$e(e,rr),g=Xe((0,u.useState)(void 0!==a?a:r),2),b=g[0],v=g[1],y=Xe((0,u.useState)(void 0!==l?l:i),2),w=y[0],x=y[1],O=Xe((0,u.useState)(void 0!==h?h:s),2),S=O[0],C=O[1],k=(0,u.useCallback)((function(e,t){"function"==typeof c&&c(e,t),C(e)}),[c]),_=(0,u.useCallback)((function(e,t){var r;"function"==typeof p&&(r=p(e,t)),v(void 0!==r?r:e)}),[p]),E=(0,u.useCallback)((function(){"function"==typeof f&&f(),x(!0)}),[f]),T=(0,u.useCallback)((function(){"function"==typeof d&&d(),x(!1)}),[d]),N=void 0!==a?a:b,P=void 0!==l?l:w,A=void 0!==h?h:S;return nt(nt({},m),{},{inputValue:N,menuIsOpen:P,onChange:k,onInputChange:_,onMenuClose:T,onMenuOpen:E,value:A})}(e);return u.createElement(Yr,c({ref:t},r))}));u.Component;const Kr=Jr,Qr=window.wp.i18n,en=window.wp.compose;var tn=r(5697),rn=r.n(tn),nn=r(4184),on=r.n(nn),sn="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/blocks/src/components/CheckboxGroup/index.js",an=void 0,ln=function(e){var t=e.id,r=e.className,n=e.heading,i=e.help,o=e.options,s=e.values,a=e.onChange,c=function(e,t){var r=nr(s),n=r.findIndex((function(t){return t.value===e}));-1!==n?r[n].checked=t:r.push({value:e,checked:t}),a(r)};return React.createElement("fieldset",{className:on()("components-block-fields-checkbox-group",r),__self:an,__source:{fileName:sn,lineNumber:43,columnNumber:3}},n&&React.createElement("legend",{__self:an,__source:{fileName:sn,lineNumber:44,columnNumber:17}},n),o.map((function(e){var t=s.find((function(t){return t.value===e.value}))||!1;return React.createElement(l.CheckboxControl,{key:e.value,label:e.label,checked:t.checked||!1,onChange:function(t){return c(e.value,t)},__self:an,__source:{fileName:sn,lineNumber:50,columnNumber:6}})})),!!i&&React.createElement("p",{id:t+"__help",className:"components-block-fields-checkbox-group__help",__self:an,__source:{fileName:sn,lineNumber:60,columnNumber:5}},i))};ln.propTypes={id:rn().string,className:rn().string,heading:rn().string,help:rn().string,options:rn().arrayOf(rn().shape({label:rn().string.isRequired,value:rn().string.isRequired})),values:rn().arrayOf(rn().shape({value:rn().string.isRequired,checked:rn().bool})),onChange:rn().func.isRequired},ln.defaultProps={id:"",className:null,heading:null,help:null,options:[],values:[]};const cn=ln;var un="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/blocks/src/components/CheckboxControlExtended/index.js",pn=void 0,dn=function(e){var t=e.className,r=e.heading,n=e.label,i=e.help,o=e.checked,s=e.onChange;return React.createElement("fieldset",{className:on()("components-block-fields-checkbox-control",t),__self:pn,__source:{fileName:un,lineNumber:23,columnNumber:3}},r&&React.createElement("legend",{__self:pn,__source:{fileName:un,lineNumber:24,columnNumber:17}},r),React.createElement(l.CheckboxControl,{label:n,help:i,checked:o,onChange:s,__self:pn,__source:{fileName:un,lineNumber:25,columnNumber:4}}))};dn.propTypes={className:rn().string,heading:rn().string,label:rn().string,help:rn().string,checked:rn().bool,onChange:rn().func.isRequired},dn.defaultProps={className:null,heading:null,label:null,help:null,checked:!1};const fn=dn,hn=window.lodash,mn=window.wp.keycodes;var gn=["className","isShiftStepEnabled","max","min","onChange","onKeyDown","shiftStep","step"];function bn(e){var t=e.className,r=e.isShiftStepEnabled,n=void 0===r||r,i=e.max,o=void 0===i?1/0:i,s=e.min,a=void 0===s?-1/0:s,l=e.onChange,u=void 0===l?hn.noop:l,p=e.onKeyDown,d=void 0===p?hn.noop:p,f=e.shiftStep,h=void 0===f?10:f,m=e.step,g=void 0===m?1:m,b=$e(e,gn),v=(0,hn.clamp)(0,a,o),y=on()("component-number-control",t);return React.createElement("input",c({inputMode:"numeric"},b,{className:y,type:"number",onChange:function(e){u(e.target.value,{event:e})},onKeyDown:function(e){d(e);var t=e.target.value,r=""===t,i=e.shiftKey&&n?parseFloat(h):parseFloat(g),s=r?v:t;switch(s=parseFloat(s),e.keyCode){case mn.UP:e.preventDefault(),s+=i,s=(0,hn.clamp)(s,a,o),u(s.toString(),{event:e});break;case mn.DOWN:e.preventDefault(),s-=i,s=(0,hn.clamp)(s,a,o),u(s.toString(),{event:e})}},__self:this,__source:{fileName:"/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/blocks/src/components/NumberControl/index.js",lineNumber:70,columnNumber:3}}))}var vn="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/blocks/src/blocks/components/RenderedField.js",yn=void 0;function wn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function xn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?wn(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const On=function(e){var t=e.field,r=e.attributes,n=e.setAttributes,o=t.name,s=t.type,c=t.fieldOptions,u=void 0===c?{}:c,p=r[o],d=function(e,t,r){return function(n){t(i({},e,"NumberControl"===r?parseInt(n,10):n))}}(o,n,s);switch(s){case"TextControl":var f=u.fieldType,h=void 0===f?"text":f,m=u.help,g=u.label;return React.createElement(l.TextControl,{key:o,label:g,value:p,type:h,help:m,onChange:d,__self:yn,__source:{fileName:vn,lineNumber:83,columnNumber:5}});case"TextareaControl":var b=u.help,v=u.label;return React.createElement(l.TextareaControl,{key:o,label:v,value:p,help:b,rows:"4",onChange:d,__self:yn,__source:{fileName:vn,lineNumber:100,columnNumber:5}});case"RichText":var y=u.tagName,w=void 0===y?"p":y;return React.createElement(a.RichText,{key:o,tagName:w,value:p,onChange:d,__self:yn,__source:{fileName:vn,lineNumber:114,columnNumber:5}});case"CheckboxControl":var x=u.label,O=u.help,S=u.heading,C=void 0===S?"":S;return React.createElement(fn,{key:o,heading:C,label:x,help:O,checked:p,onChange:d,__self:yn,__source:{fileName:vn,lineNumber:130,columnNumber:5}});case"CheckboxGroup":var k=u.help,_=u.options,E=u.heading,T=void 0===E?"":E;return React.createElement(cn,{key:o,heading:T,help:k,options:_,values:p,onChange:d,__self:yn,__source:{fileName:vn,lineNumber:148,columnNumber:5}});case"RadioControl":var N=u.help,P=u.options;return React.createElement(l.RadioControl,{key:o,help:N,options:P,selected:p,onChange:d,__self:yn,__source:{fileName:vn,lineNumber:165,columnNumber:5}});case"SelectControl":var A=u.options,M=u.multiple,D=u.label,R=(0,en.useInstanceId)(Kr),I="inspector-select-control-".concat(R);return React.createElement(l.BaseControl,{label:D,id:I,key:o,className:"full-width-base-control",__self:yn,__source:{fileName:vn,lineNumber:185,columnNumber:5}},React.createElement(Kr,{id:I,name:o,options:A,value:p,isMulti:M,onChange:d,styles:{container:function(e){return xn(xn({},e),{},{width:"100%"})}},__self:yn,__source:{fileName:vn,lineNumber:191,columnNumber:6}}));case"DateTimePicker":var L=u.is12Hour,j=u.label;return React.createElement(l.BaseControl,{label:j,key:o,__self:yn,__source:{fileName:vn,lineNumber:215,columnNumber:5}},React.createElement(l.DateTimePicker,{currentDate:p,onChange:d,is12Hour:L,__self:yn,__source:{fileName:vn,lineNumber:219,columnNumber:6}}));case"NumberControl":var V=u.isShiftStepEnabled,F=u.shiftStep,q=u.label,B=u.max,H=void 0===B?1/0:B,U=u.min,z=void 0===U?-1/0:U,$=u.step,G=void 0===$?1:$,W=(0,en.useInstanceId)(bn),X="inspector-number-control-".concat(W);return React.createElement(l.BaseControl,{label:q,id:X,key:o,__self:yn,__source:{fileName:vn,lineNumber:241,columnNumber:5}},React.createElement(bn,{id:X,onChange:d,isShiftStepEnabled:V,shiftStep:F,max:H,min:z,step:G,value:p||"",__self:yn,__source:{fileName:vn,lineNumber:246,columnNumber:6}}));case"MediaUpload":return React.createElement("div",{__self:yn,__source:{fileName:vn,lineNumber:263,columnNumber:5}},React.createElement(a.MediaUploadCheck,{__self:yn,__source:{fileName:vn,lineNumber:264,columnNumber:6}},React.createElement(a.MediaUpload,{onSelect:function(e){d({id:e.id,url:e.url,title:e.title})},allowedTypes:["image"],value:p,render:function(e){var t=e.open;return React.createElement(l.Button,{onClick:t,isPrimary:!0,__self:yn,__source:{fileName:vn,lineNumber:272,columnNumber:9}},(0,Qr.__)("Upload"))},__self:yn,__source:{fileName:vn,lineNumber:265,columnNumber:7}})),!!p&&React.createElement(l.Button,{onClick:function(){return d(null)},isSecondary:!0,__self:yn,__source:{fileName:vn,lineNumber:279,columnNumber:7}},(0,Qr.__)("Remove Upload")),p&&!!p.title&&React.createElement("div",{__self:yn,__source:{fileName:vn,lineNumber:287,columnNumber:7}},p.title));case"ColorPicker":return React.createElement(l.ColorPicker,{color:p,onChangeComplete:function(e){return d(e.hex)},disableAlpha:!0,__self:yn,__source:{fileName:vn,lineNumber:296,columnNumber:5}});default:return null}};var Sn="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/blocks/src/blocks/components/FieldInspectorControls.js",Cn=void 0;const kn=function(e){var t=e.fields,r=void 0===t?[]:t,n=e.attributes,i=e.setAttributes;return r.length?React.createElement("div",{className:"pods-inspector-rows",__self:Cn,__source:{fileName:Sn,lineNumber:29,columnNumber:3}},r.map((function(e){var t=e.name;return React.createElement(l.PanelRow,{key:t,className:"pods-inspector-row",__self:Cn,__source:{fileName:Sn,lineNumber:36,columnNumber:6}},React.createElement(On,{field:e,attributes:n,setAttributes:i,__self:Cn,__source:{fileName:Sn,lineNumber:37,columnNumber:7}}))}))):null};var _n=r(1036),En=r.n(_n);const Tn=window.wp.autop,Nn=window.wp.date,Pn=window.wp.serverSideRender;var An=r.n(Pn);function Mn(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Dn(e){return Dn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Dn(e)}const Rn=window.wp.element,In=window.wp.apiFetch;var Ln=r.n(In);const jn=window.wp.url;var Vn="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/blocks/src/blocks/components/PodsServerSideRender.js",Fn=void 0;function qn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Dn(e);if(t){var i=Dn(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Mn(this,r)}}function Bn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Hn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Bn(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Un=function(e){Qe(r,e);var t=qn(r);function r(e){var n;return Ze(this,r),(n=t.call(this,e)).state={response:null},n}return Je(r,[{key:"componentDidMount",value:function(){this.isStillMounted=!0,this.fetch(this.props),this.fetch=(0,hn.debounce)(this.fetch,500)}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1}},{key:"componentDidUpdate",value:function(e){(0,hn.isEqual)(e,this.props)||this.fetch(this.props)}},{key:"fetch",value:function(e){var t=this;if(this.isStillMounted){null!==this.state.response&&this.setState({response:null});var r=e.block,n=e.attributes,i=void 0===n?null:n,o=e.httpMethod,s=void 0===o?"GET":o,a=e.urlQueryArgs,l="POST"===s,c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,jn.addQueryArgs)("/wp/v2/block-renderer/".concat(e),Hn(Hn({context:"edit"},null!==t?{attributes:t}:{}),r))}(r,l?null:i,void 0===a?{}:a),u=l?{attributes:i}:null,p=this.currentFetchRequest=Ln()({path:c,data:u,method:l?"POST":"GET"}).then((function(e){t.isStillMounted&&p===t.currentFetchRequest&&e&&t.setState({response:e.rendered})})).catch((function(e){t.isStillMounted&&p===t.currentFetchRequest&&t.setState({response:{error:!0,errorMsg:e.message}})}));return p}}},{key:"render",value:function(){var e=this,t=this.state.response,r=this.props,n=r.className,i=r.EmptyResponsePlaceholder,o=r.ErrorResponsePlaceholder,l=r.LoadingResponsePlaceholder;return""===t?React.createElement(i,c({response:t},this.props,{__self:this,__source:{fileName:Vn,lineNumber:117,columnNumber:11}})):t?t.error?React.createElement(o,c({response:t},this.props,{__self:this,__source:{fileName:Vn,lineNumber:126,columnNumber:5}})):s(t,{replace:function(t){if("innerblocks"===t.name)return void 0!==t.attribs.template&&(t.attribs.template=JSON.parse(t.attribs.template)),void 0!==t.attribs.allowedBlocks&&(t.attribs.allowedBlocks=JSON.parse(t.attribs.allowedBlocks)),void 0!==t.attribs.templateLock&&"false"===t.attribs.templateLock&&(t.attribs.templateLock=!1),React.createElement(a.InnerBlocks,c({className:n},t.attribs,{__self:e,__source:{fileName:Vn,lineNumber:144,columnNumber:13}}))}}):React.createElement(l,c({response:t},this.props,{__self:this,__source:{fileName:Vn,lineNumber:121,columnNumber:5}}))}}]),r}(Rn.Component);Un.defaultProps={EmptyResponsePlaceholder:function(e){var t=e.className;return React.createElement(l.Placeholder,{className:t,__self:Fn,__source:{fileName:Vn,lineNumber:153,columnNumber:3}},(0,Qr.__)("Block rendered as empty."))},ErrorResponsePlaceholder:function(e){var t=e.response,r=e.className,n=(0,Qr.sprintf)((0,Qr.__)("Error loading block: %s"),t.errorMsg);return React.createElement(l.Placeholder,{className:r,__self:Fn,__source:{fileName:Vn,lineNumber:163,columnNumber:10}},n)},LoadingResponsePlaceholder:function(e){var t=e.className;return React.createElement(l.Placeholder,{className:t,__self:Fn,__source:{fileName:Vn,lineNumber:167,columnNumber:4}},React.createElement(l.Spinner,{__self:Fn,__source:{fileName:Vn,lineNumber:168,columnNumber:5}}))}};const zn=Un;var $n={allowedTags:["blockquote","caption","div","figcaption","figure","h1","h2","h3","h4","h5","h6","hr","li","ol","p","pre","section","table","tbody","td","th","thead","tr","ul","a","abbr","acronym","audio","b","bdi","bdo","big","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","label","map","mark","meter","noscript","object","output","picture","progress","q","ruby","s","samp","select","slot","small","span","strong","sub","sup","svg","template","textarea","time","u","tt","var","video","wbr"],allowedAttributes:{"*":["class","id","data-*","style"],iframe:["*"],a:["href","name","target"],img:["src","srcset","sizes","alt","width","height"]},selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto"],allowedSchemesByTag:{},allowProtocolRelative:!0},Gn={allowedTags:[],allowedAttributes:{}};function Wn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Xn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Wn(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Zn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o=En()(e,$n),a=[];return t.forEach((function(e){var t="function"==typeof i?n(e,r,i):n(e,r);t&&(a[e.name]=Xn({},t.props));var s=t?(0,Rn.renderToString)(t):"";o=o.replace(new RegExp("{@".concat(e.name,"}"),"g"),s)})),s(o)};var Yn="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/blocks/src/blocks/components/BlockPreview.js",Jn=void 0,Kn=function(e,t){var r=e.name,n=e.fieldOptions,i=e.type,o=t[r];if(void 0===o)return null;switch(i){case"TextControl":return React.createElement("div",{key:r,className:"field--textcontrol",__self:Jn,__source:{fileName:Yn,lineNumber:51,columnNumber:5}},En()(o,Gn));case"TextareaControl":var s=n.auto_p,l=En()(o,Gn);return React.createElement("div",{key:r,className:"field--textareacontrol",dangerouslySetInnerHTML:{__html:s?(0,Tn.autop)(l):l},__self:Jn,__source:{fileName:Yn,lineNumber:64,columnNumber:5}});case"RichText":return React.createElement(a.RichText.Content,{key:r,tagName:"p",value:o,className:"field--richtext",__self:Jn,__source:{fileName:Yn,lineNumber:75,columnNumber:5}});case"CheckboxControl":return React.createElement("div",{key:r,className:"field--checkbox",__self:Jn,__source:{fileName:Yn,lineNumber:85,columnNumber:5}},o?(0,Qr.__)("Yes"):(0,Qr.__)("No"));case"CheckboxGroup":var c=n.options,u=Array.isArray(o)?o.filter((function(e){return!!e.checked})):[];return React.createElement("div",{key:r,className:"field--checkbox-group",__self:Jn,__source:{fileName:Yn,lineNumber:100,columnNumber:5}},u.length?u.map((function(e,t){var r=c.find((function(t){return e.value===t.value}));return React.createElement("span",{className:"field--checkbox-group__item",key:e.value,__self:Jn,__source:{fileName:Yn,lineNumber:106,columnNumber:9}},r.label,t<u.length-1?", ":"")})):"N/A");case"RadioControl":var p=n.options.find((function(e){return o===e.value}));return React.createElement("div",{key:r,className:"field--radio-control",__self:Jn,__source:{fileName:Yn,lineNumber:125,columnNumber:5}},p?p.label:"N/A");case"SelectControl":if(!Array.isArray(o))return React.createElement("div",{key:r,className:"field--select-control",__self:Jn,__source:{fileName:Yn,lineNumber:134,columnNumber:6}},o.label||"N/A");var d=o;return React.createElement("div",{key:r,className:"field--select-control field--multiple-select-control",__self:Jn,__source:{fileName:Yn,lineNumber:142,columnNumber:5}},d.length?d.map((function(e,t){return React.createElement("span",{className:"field--select-group__item",key:e,__self:Jn,__source:{fileName:Yn,lineNumber:146,columnNumber:9}},e.label,t<d.length-1?", ":"")})):"N/A");case"DateTimePicker":var f=(0,Nn.__experimentalGetSettings)().formats.datetime;return React.createElement("div",{key:r,className:"field--date-time",__self:Jn,__source:{fileName:Yn,lineNumber:163,columnNumber:5}},React.createElement("time",{dateTime:(0,Nn.format)("c",o),__self:Jn,__source:{fileName:Yn,lineNumber:164,columnNumber:6}},(0,Nn.dateI18n)(f,o)));case"NumberControl":var h=(0,Nn.__experimentalGetSettings)().l10n.locale;return h=h.replace("_","-"),React.createElement("div",{key:r,className:"field--number",__self:Jn,__source:{fileName:Yn,lineNumber:178,columnNumber:5}},!!o&&o.toLocaleString(h));case"MediaUpload":return React.createElement("div",{key:r,className:"field--media-upload",__self:Jn,__source:{fileName:Yn,lineNumber:185,columnNumber:5}},o&&o.url||"N/A");case"ColorPicker":return React.createElement("div",{key:r,className:"field--color",style:{color:o},__self:Jn,__source:{fileName:Yn,lineNumber:192,columnNumber:5}},o);default:return null}};const Qn=function(e){var t=e.block,r=e.attributes,n=void 0===r?{}:r,i=e.context,o=void 0===i?{}:i,s=t.blockName,a=t.fields,l=void 0===a?[]:a,c=t.renderTemplate,u=t.renderType,p=t.supports,d=void 0===p?{jsx:!1}:p,f=t.usesContext;if("php"===u){var h={podsContext:{}};return(void 0===f?[]:f).forEach((function(e){var t;h.podsContext[e]=null!==(t=o[e])&&void 0!==t?t:null})),!0===d.jsx?React.createElement(zn,{block:s,attributes:n,urlQueryArgs:h,__self:Jn,__source:{fileName:Yn,lineNumber:234,columnNumber:5}}):React.createElement(An(),{block:s,attributes:n,urlQueryArgs:h,__self:Jn,__source:{fileName:Yn,lineNumber:243,columnNumber:4}})}return React.createElement(React.Fragment,null,Zn(c,l,n,Kn,o))};var ei="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/blocks/src/blocks/createBlockEditComponent.js",ti=void 0;const ri=function(e){return function(t){var r=e.fields,n=void 0===r?[]:r,i=e.blockName,o=e.blockGroupLabel,s=t.className,c=t.attributes,u=void 0===c?{}:c,p=t.setAttributes,d=t.context,f=void 0===d?{}:d;return React.createElement("div",{className:s,__self:ti,__source:{fileName:ei,lineNumber:35,columnNumber:3}},React.createElement(a.InspectorControls,{__self:ti,__source:{fileName:ei,lineNumber:36,columnNumber:4}},React.createElement(l.PanelBody,{title:o,key:i,__self:ti,__source:{fileName:ei,lineNumber:37,columnNumber:5}},React.createElement(kn,{fields:n,attributes:u,setAttributes:p,__self:ti,__source:{fileName:ei,lineNumber:41,columnNumber:6}}))),React.createElement(Qn,{block:e,attributes:u,context:f,__self:ti,__source:{fileName:ei,lineNumber:48,columnNumber:4}}))}};function ni(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ii(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ni(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ni(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const oi=function(e){return e.reduce((function(e,t){if(!t.name)return e;var r=t.name,n=t.attributeOptions;return ii(ii({},e),{},i({},r,ii(ii({},n),{},{type:n.type||"string"})))}),{})};var si="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/blocks/src/blocks/index.js",ai=void 0;function li(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ci(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?li(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):li(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const ui=function(t){var r=t.blockName,i=t.fields,o=t.icon;o="pods"===o?React.createElement("svg",{width:"366",height:"364",viewBox:"0 0 366 364",fill:"none",xmlns:"http://www.w3.org/2000/svg",__self:ai,__source:{fileName:si,lineNumber:29,columnNumber:4}},React.createElement("mask",{id:"mask0","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"20",y:"20",width:"323",height:"323",__self:ai,__source:{fileName:si,lineNumber:29,columnNumber:103}},React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.9831 181.536C20.9831 270.512 93.6969 342.643 183.391 342.643V342.643C249.369 342.643 306.158 303.616 331.578 247.565V247.565C324.498 226.102 318.371 188.341 342.809 150.596V150.596C341.764 145.264 340.453 140.028 338.892 134.9V134.9C263.955 208.73 203.453 215.645 157.9 214.441V214.441C157.479 214.428 155.947 214.182 155.54 213.271V213.271C155.54 213.271 154.876 210.318 156.817 210.318V210.318C244.089 210.318 293.793 159.374 334.401 122.125V122.125C332.186 116.587 329.669 111.202 326.872 105.984V105.984C283.096 94.0368 266.274 58.4662 260.302 39.603V39.603C237.409 27.369 211.218 20.4269 183.391 20.4269V20.4269C93.6969 20.4269 20.9831 92.5574 20.9831 181.536V181.536ZM227.603 68.9767C227.603 68.9767 289.605 62.283 307.865 138.292V138.292C240.112 133.656 227.603 68.9767 227.603 68.9767V68.9767ZM202.795 100.959C202.795 100.959 257.765 99.1382 270.278 167.335V167.335C210.771 158.793 202.795 100.959 202.795 100.959V100.959ZM172.601 128.062C172.601 128.062 222.07 124.859 234.729 185.925V185.925C180.956 179.926 172.601 128.062 172.601 128.062V128.062ZM307.865 138.292C307.936 138.296 308 138.3 308.07 138.306V138.306L307.921 138.528C307.903 138.449 307.884 138.37 307.865 138.292V138.292ZM146.277 149.601C146.277 149.601 189.744 146.781 200.869 200.439V200.439C153.619 195.171 146.277 149.601 146.277 149.601V149.601ZM111.451 154.862C111.451 154.862 153.207 152.159 163.891 203.7V203.7C118.507 198.639 111.451 154.862 111.451 154.862V154.862ZM76.9799 157.234C76.9799 157.234 114.875 154.782 124.574 201.557V201.557C83.3817 196.962 76.9799 157.234 76.9799 157.234V157.234ZM39.5 164.081C39.5 164.081 71.2916 155.788 84.9886 193.798V193.798C83.4985 193.918 82.0535 193.976 80.6516 193.976V193.976C48.7552 193.975 39.5 164.081 39.5 164.081V164.081ZM310.084 167.245C310.06 167.175 310.035 167.102 310.013 167.033V167.033L310.233 167.093C310.184 167.143 310.134 167.194 310.084 167.245V167.245C333.75 238.013 291.599 276.531 291.599 276.531V276.531C291.599 276.531 261.982 216.144 310.084 167.245V167.245ZM270.278 167.335C270.337 167.343 270.396 167.351 270.455 167.36V167.36L270.317 167.544C270.305 167.473 270.293 167.406 270.278 167.335V167.335ZM234.729 185.925C234.782 185.931 234.838 185.937 234.89 185.943V185.943L234.769 186.111C234.756 186.046 234.744 185.988 234.729 185.925V185.925ZM275.24 192.061C275.232 191.992 275.224 191.919 275.218 191.849V191.849L275.405 191.966C275.35 191.999 275.296 192.03 275.24 192.061V192.061C282.645 263.228 236.486 286.583 236.486 286.583V286.583C236.486 286.583 221.57 223.215 275.24 192.061V192.061ZM85.0914 193.789L85.0296 193.912C85.0164 193.873 85.0009 193.834 84.9888 193.798V193.798C85.023 193.795 85.0572 193.792 85.0914 193.789V193.789ZM200.869 200.439C200.916 200.443 200.96 200.449 201.007 200.453V200.453L200.903 200.605C200.891 200.549 200.88 200.494 200.869 200.439V200.439ZM124.574 201.557C124.615 201.563 124.658 201.567 124.699 201.572V201.572L124.604 201.7C124.594 201.651 124.585 201.605 124.574 201.557V201.557ZM68.5101 213.185C68.5101 213.185 95.2467 187.93 129.068 216.089V216.089C118.738 224.846 108.962 227.859 100.399 227.859V227.859C81.5012 227.859 68.5101 213.185 68.5101 213.185V213.185ZM163.892 203.7C163.937 203.704 163.982 203.71 164.027 203.714V203.714L163.926 203.862C163.915 203.809 163.903 203.753 163.892 203.7V203.7ZM234.165 211.88C234.166 211.817 234.166 211.751 234.168 211.688V211.688L234.322 211.818C234.269 211.839 234.218 211.859 234.165 211.88V211.88C233.531 275.684 190.467 289.79 190.467 289.79V289.79C190.467 289.79 183.695 231.809 234.165 211.88V211.88ZM129.165 216.006V216.17C129.132 216.143 129.1 216.117 129.068 216.089V216.089C129.099 216.061 129.132 216.034 129.165 216.006V216.006ZM107.192 250.617C107.192 250.617 121.444 213.844 162.374 221.007V221.007C150.672 247.473 132.265 252.505 119.969 252.505V252.505C112.432 252.505 107.192 250.617 107.192 250.617V250.617ZM162.431 220.877L162.492 221.028C162.452 221.021 162.414 221.014 162.374 221.007V221.007C162.394 220.963 162.412 220.921 162.431 220.877V220.877ZM196.004 223.125C196.014 223.072 196.024 223.016 196.034 222.962V222.962L196.15 223.104C196.101 223.111 196.053 223.119 196.004 223.125V223.125C186.212 277.983 147.054 281.435 147.054 281.435V281.435C147.054 281.435 149.621 230.095 196.004 223.125V223.125Z",fill:"white",__self:ai,__source:{fileName:si,lineNumber:29,columnNumber:204}})),React.createElement("g",{mask:"url(#mask0)",__self:ai,__source:{fileName:si,lineNumber:29,columnNumber:4543}},React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.95319 9.48413H353.838V353.586H9.95319V9.48413Z",fill:"#95BF3B",__self:ai,__source:{fileName:si,lineNumber:29,columnNumber:4565}})),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M182.999 11.2219C88.3278 11.2219 11.3101 87.6245 11.3101 181.535C11.3101 275.448 88.3278 351.85 182.999 351.85C277.67 351.85 354.69 275.448 354.69 181.535C354.69 87.6245 277.67 11.2219 182.999 11.2219M182.999 363.071C82.0925 363.071 0 281.633 0 181.535C0 81.4362 82.0925 0 182.999 0C283.905 0 366 81.4362 366 181.535C366 281.633 283.905 363.071 182.999 363.071",fill:"#95BF3B",__self:ai,__source:{fileName:si,lineNumber:29,columnNumber:4684}})):s(o);var a=ci({},t);delete a.blockName,delete a.fields,delete a.renderType;if(a.attributes=oi(i),a.transforms&&a.transforms.from&&[]!==a.transforms.from){var l=[];a.transforms.from.forEach((function(e){if("shortcode"===e.type){var t=a.attributes;if(e.attributes=function(e,t){var r,i=null!==(r=e.attributes)&&void 0!==r?r:null;if(!i)return{};var o=Object.keys(i),s={};return o.forEach((function(e){var r,o=i[e];if("shortcode"===(null!==(r=o.source)&&void 0!==r?r:"")){var a,l,c,u;delete o.source;var p=null!==(a=null!==(l=o.selector)&&void 0!==l?l:o.attribute)&&void 0!==a?a:null,d=null!==(c=o.type)&&void 0!==c?c:"string",f=null!==(u=o.attribute)&&void 0!==u?u:e;if(!p)return;null!=o&&o.selector&&delete o.selector,o.shortcode=function(e,r){var i,s,a,l,c=e.named,u=r.shortcode,h=null!==(i=c[p])&&void 0!==i?i:null,m=null!==(s=t[f])&&void 0!==s?s:null,g=null!==(a=null==m?void 0:m.default)&&void 0!==a?a:null,b=null!==(l=u.content)&&void 0!==l?l:"";return null===h&&(h=g),"boolean"===d?null!==h&&("true"===h||!0===h||"1"===h||1===h||"yes"===h||"on"===h):"object"===d?null===h?{label:"",value:""}:"object"===n(h)?h:{label:h=h.toString(),value:h}:"array"===d?null===h?[]:Array.isArray(h)?h:h.split(","):"string"===d?null===h?"":h.toString():"integer"===d||"number"===d?null===h?0:parseInt(h):"string_integer"===d?(o.type="string",null===h?"0":parseInt(h).toString()):"content"===d?(o.type="string",""!==b?b.toString():null===h?"":h.toString()):h}}s[e]=o})),s}(e,t),(null==e||!e.isMatch)&&null!=e&&e.isMatchConfig){var r=e.isMatchConfig;delete e.isMatchConfig,e.isMatch=function(e){var t=e.named;return function(e,t){if(!e||!Array.isArray(e))return!0;var r=!0;return e.forEach((function(e){var n,i=null!==(n=t[e.name])&&void 0!==n?n:null;(null!=e&&e.required&&!i||null!=e&&e.excluded&&null!=i)&&(r=!1)})),r}(r,t)}}l.push(e)}else l.push(e)})),a.transforms.from=l}else delete a.transforms;(0,e.registerBlockType)(r,ci(ci({},a),{},{apiVersion:1,edit:ri(t),icon:o,save:function(){return null}}))};window.podsBlocksConfig.collections.forEach(t),window.podsBlocksConfig.blocks.forEach(ui)})()})();
|
@@ -1 +1 @@
|
|
1 |
-
{"dependencies":["lodash","moment","react","react-dom","wp-api-fetch","wp-autop","wp-components","wp-compose","wp-data","wp-element","wp-hooks","wp-i18n","wp-keycodes","wp-plugins","wp-polyfill","wp-primitives","wp-url"],"version":"
|
1 |
+
{"dependencies":["lodash","moment","react","react-dom","wp-api-fetch","wp-autop","wp-components","wp-compose","wp-data","wp-element","wp-hooks","wp-i18n","wp-keycodes","wp-plugins","wp-polyfill","wp-primitives","wp-url"],"version":"c010c5f276c2a27d5a51"}
|
@@ -1 +1 @@
|
|
1 |
-
(()=>{var e={4184:(e,t)=>{var n;!function(){"use strict";var i={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var s=r.apply(null,n);s&&e.push(s)}}else if("object"===o)if(n.toString===Object.prototype.toString)for(var a in n)i.call(n,a)&&n[a]&&e.push(a);else e.push(n.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},1689:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,"/*!\n * https://github.com/arqex/react-datetime\n */\n\n.rdt {\n position: relative;\n}\n.rdtPicker {\n display: none;\n position: absolute;\n min-width: 250px;\n padding: 4px;\n margin-top: 1px;\n z-index: 99999 !important;\n background: #fff;\n box-shadow: 0 1px 3px rgba(0,0,0,.1);\n border: 1px solid #f9f9f9;\n}\n.rdtOpen .rdtPicker {\n display: block;\n}\n.rdtStatic .rdtPicker {\n box-shadow: none;\n position: static;\n}\n\n.rdtPicker .rdtTimeToggle {\n text-align: center;\n}\n\n.rdtPicker table {\n width: 100%;\n margin: 0;\n}\n.rdtPicker td,\n.rdtPicker th {\n text-align: center;\n height: 28px;\n}\n.rdtPicker td {\n cursor: pointer;\n}\n.rdtPicker td.rdtDay:hover,\n.rdtPicker td.rdtHour:hover,\n.rdtPicker td.rdtMinute:hover,\n.rdtPicker td.rdtSecond:hover,\n.rdtPicker .rdtTimeToggle:hover {\n background: #eeeeee;\n cursor: pointer;\n}\n.rdtPicker td.rdtOld,\n.rdtPicker td.rdtNew {\n color: #999999;\n}\n.rdtPicker td.rdtToday {\n position: relative;\n}\n.rdtPicker td.rdtToday:before {\n content: '';\n display: inline-block;\n border-left: 7px solid transparent;\n border-bottom: 7px solid #428bca;\n border-top-color: rgba(0, 0, 0, 0.2);\n position: absolute;\n bottom: 4px;\n right: 4px;\n}\n.rdtPicker td.rdtActive,\n.rdtPicker td.rdtActive:hover {\n background-color: #428bca;\n color: #fff;\n text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);\n}\n.rdtPicker td.rdtActive.rdtToday:before {\n border-bottom-color: #fff;\n}\n.rdtPicker td.rdtDisabled,\n.rdtPicker td.rdtDisabled:hover {\n background: none;\n color: #999999;\n cursor: not-allowed;\n}\n\n.rdtPicker td span.rdtOld {\n color: #999999;\n}\n.rdtPicker td span.rdtDisabled,\n.rdtPicker td span.rdtDisabled:hover {\n background: none;\n color: #999999;\n cursor: not-allowed;\n}\n.rdtPicker th {\n border-bottom: 1px solid #f9f9f9;\n}\n.rdtPicker .dow {\n width: 14.2857%;\n border-bottom: none;\n cursor: default;\n}\n.rdtPicker th.rdtSwitch {\n width: 100px;\n}\n.rdtPicker th.rdtNext,\n.rdtPicker th.rdtPrev {\n font-size: 21px;\n vertical-align: top;\n}\n\n.rdtPrev span,\n.rdtNext span {\n display: block;\n -webkit-touch-callout: none; /* iOS Safari */\n -webkit-user-select: none; /* Chrome/Safari/Opera */\n -khtml-user-select: none; /* Konqueror */\n -moz-user-select: none; /* Firefox */\n -ms-user-select: none; /* Internet Explorer/Edge */\n user-select: none;\n}\n\n.rdtPicker th.rdtDisabled,\n.rdtPicker th.rdtDisabled:hover {\n background: none;\n color: #999999;\n cursor: not-allowed;\n}\n.rdtPicker thead tr:first-of-type th {\n cursor: pointer;\n}\n.rdtPicker thead tr:first-of-type th:hover {\n background: #eeeeee;\n}\n\n.rdtPicker tfoot {\n border-top: 1px solid #f9f9f9;\n}\n\n.rdtPicker button {\n border: none;\n background: none;\n cursor: pointer;\n}\n.rdtPicker button:hover {\n background-color: #eee;\n}\n\n.rdtPicker thead button {\n width: 100%;\n height: 100%;\n}\n\ntd.rdtMonth,\ntd.rdtYear {\n height: 50px;\n width: 25%;\n cursor: pointer;\n}\ntd.rdtMonth:hover,\ntd.rdtYear:hover {\n background: #eee;\n}\n\n.rdtCounters {\n display: inline-block;\n}\n\n.rdtCounters > div {\n float: left;\n}\n\n.rdtCounter {\n height: 100px;\n}\n\n.rdtCounter {\n width: 40px;\n}\n\n.rdtCounterSeparator {\n line-height: 100px;\n}\n\n.rdtCounter .rdtBtn {\n height: 40%;\n line-height: 40px;\n cursor: pointer;\n display: block;\n\n -webkit-touch-callout: none; /* iOS Safari */\n -webkit-user-select: none; /* Chrome/Safari/Opera */\n -khtml-user-select: none; /* Konqueror */\n -moz-user-select: none; /* Firefox */\n -ms-user-select: none; /* Internet Explorer/Edge */\n user-select: none;\n}\n.rdtCounter .rdtBtn:hover {\n background: #eee;\n}\n.rdtCounter .rdtCount {\n height: 20%;\n font-size: 1.2em;\n}\n\n.rdtMilli {\n vertical-align: middle;\n padding-left: 8px;\n width: 48px;\n}\n\n.rdtMilli input {\n width: 100%;\n font-size: 1.2em;\n margin-top: 37px;\n}\n\n.rdtTime td {\n cursor: default;\n}\n",""]);const a=s},7006:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,"/*!\n * Quill Editor v1.3.7\n * https://quilljs.com/\n * Copyright (c) 2014, Jason Chen\n * Copyright (c) 2013, salesforce.com\n */\n.ql-container {\n box-sizing: border-box;\n font-family: Helvetica, Arial, sans-serif;\n font-size: 13px;\n height: 100%;\n margin: 0px;\n position: relative;\n}\n.ql-container.ql-disabled .ql-tooltip {\n visibility: hidden;\n}\n.ql-container.ql-disabled .ql-editor ul[data-checked] > li::before {\n pointer-events: none;\n}\n.ql-clipboard {\n left: -100000px;\n height: 1px;\n overflow-y: hidden;\n position: absolute;\n top: 50%;\n}\n.ql-clipboard p {\n margin: 0;\n padding: 0;\n}\n.ql-editor {\n box-sizing: border-box;\n line-height: 1.42;\n height: 100%;\n outline: none;\n overflow-y: auto;\n padding: 12px 15px;\n tab-size: 4;\n -moz-tab-size: 4;\n text-align: left;\n white-space: pre-wrap;\n word-wrap: break-word;\n}\n.ql-editor > * {\n cursor: text;\n}\n.ql-editor p,\n.ql-editor ol,\n.ql-editor ul,\n.ql-editor pre,\n.ql-editor blockquote,\n.ql-editor h1,\n.ql-editor h2,\n.ql-editor h3,\n.ql-editor h4,\n.ql-editor h5,\n.ql-editor h6 {\n margin: 0;\n padding: 0;\n counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol,\n.ql-editor ul {\n padding-left: 1.5em;\n}\n.ql-editor ol > li,\n.ql-editor ul > li {\n list-style-type: none;\n}\n.ql-editor ul > li::before {\n content: '\\2022';\n}\n.ql-editor ul[data-checked=true],\n.ql-editor ul[data-checked=false] {\n pointer-events: none;\n}\n.ql-editor ul[data-checked=true] > li *,\n.ql-editor ul[data-checked=false] > li * {\n pointer-events: all;\n}\n.ql-editor ul[data-checked=true] > li::before,\n.ql-editor ul[data-checked=false] > li::before {\n color: #777;\n cursor: pointer;\n pointer-events: all;\n}\n.ql-editor ul[data-checked=true] > li::before {\n content: '\\2611';\n}\n.ql-editor ul[data-checked=false] > li::before {\n content: '\\2610';\n}\n.ql-editor li::before {\n display: inline-block;\n white-space: nowrap;\n width: 1.2em;\n}\n.ql-editor li:not(.ql-direction-rtl)::before {\n margin-left: -1.5em;\n margin-right: 0.3em;\n text-align: right;\n}\n.ql-editor li.ql-direction-rtl::before {\n margin-left: 0.3em;\n margin-right: -1.5em;\n}\n.ql-editor ol li:not(.ql-direction-rtl),\n.ql-editor ul li:not(.ql-direction-rtl) {\n padding-left: 1.5em;\n}\n.ql-editor ol li.ql-direction-rtl,\n.ql-editor ul li.ql-direction-rtl {\n padding-right: 1.5em;\n}\n.ql-editor ol li {\n counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n counter-increment: list-0;\n}\n.ql-editor ol li:before {\n content: counter(list-0, decimal) '. ';\n}\n.ql-editor ol li.ql-indent-1 {\n counter-increment: list-1;\n}\n.ql-editor ol li.ql-indent-1:before {\n content: counter(list-1, lower-alpha) '. ';\n}\n.ql-editor ol li.ql-indent-1 {\n counter-reset: list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-2 {\n counter-increment: list-2;\n}\n.ql-editor ol li.ql-indent-2:before {\n content: counter(list-2, lower-roman) '. ';\n}\n.ql-editor ol li.ql-indent-2 {\n counter-reset: list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-3 {\n counter-increment: list-3;\n}\n.ql-editor ol li.ql-indent-3:before {\n content: counter(list-3, decimal) '. ';\n}\n.ql-editor ol li.ql-indent-3 {\n counter-reset: list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-4 {\n counter-increment: list-4;\n}\n.ql-editor ol li.ql-indent-4:before {\n content: counter(list-4, lower-alpha) '. ';\n}\n.ql-editor ol li.ql-indent-4 {\n counter-reset: list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-5 {\n counter-increment: list-5;\n}\n.ql-editor ol li.ql-indent-5:before {\n content: counter(list-5, lower-roman) '. ';\n}\n.ql-editor ol li.ql-indent-5 {\n counter-reset: list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-6 {\n counter-increment: list-6;\n}\n.ql-editor ol li.ql-indent-6:before {\n content: counter(list-6, decimal) '. ';\n}\n.ql-editor ol li.ql-indent-6 {\n counter-reset: list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-7 {\n counter-increment: list-7;\n}\n.ql-editor ol li.ql-indent-7:before {\n content: counter(list-7, lower-alpha) '. ';\n}\n.ql-editor ol li.ql-indent-7 {\n counter-reset: list-8 list-9;\n}\n.ql-editor ol li.ql-indent-8 {\n counter-increment: list-8;\n}\n.ql-editor ol li.ql-indent-8:before {\n content: counter(list-8, lower-roman) '. ';\n}\n.ql-editor ol li.ql-indent-8 {\n counter-reset: list-9;\n}\n.ql-editor ol li.ql-indent-9 {\n counter-increment: list-9;\n}\n.ql-editor ol li.ql-indent-9:before {\n content: counter(list-9, decimal) '. ';\n}\n.ql-editor .ql-indent-1:not(.ql-direction-rtl) {\n padding-left: 3em;\n}\n.ql-editor li.ql-indent-1:not(.ql-direction-rtl) {\n padding-left: 4.5em;\n}\n.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right {\n padding-right: 3em;\n}\n.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right {\n padding-right: 4.5em;\n}\n.ql-editor .ql-indent-2:not(.ql-direction-rtl) {\n padding-left: 6em;\n}\n.ql-editor li.ql-indent-2:not(.ql-direction-rtl) {\n padding-left: 7.5em;\n}\n.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right {\n padding-right: 6em;\n}\n.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right {\n padding-right: 7.5em;\n}\n.ql-editor .ql-indent-3:not(.ql-direction-rtl) {\n padding-left: 9em;\n}\n.ql-editor li.ql-indent-3:not(.ql-direction-rtl) {\n padding-left: 10.5em;\n}\n.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right {\n padding-right: 9em;\n}\n.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right {\n padding-right: 10.5em;\n}\n.ql-editor .ql-indent-4:not(.ql-direction-rtl) {\n padding-left: 12em;\n}\n.ql-editor li.ql-indent-4:not(.ql-direction-rtl) {\n padding-left: 13.5em;\n}\n.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right {\n padding-right: 12em;\n}\n.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right {\n padding-right: 13.5em;\n}\n.ql-editor .ql-indent-5:not(.ql-direction-rtl) {\n padding-left: 15em;\n}\n.ql-editor li.ql-indent-5:not(.ql-direction-rtl) {\n padding-left: 16.5em;\n}\n.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right {\n padding-right: 15em;\n}\n.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right {\n padding-right: 16.5em;\n}\n.ql-editor .ql-indent-6:not(.ql-direction-rtl) {\n padding-left: 18em;\n}\n.ql-editor li.ql-indent-6:not(.ql-direction-rtl) {\n padding-left: 19.5em;\n}\n.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right {\n padding-right: 18em;\n}\n.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right {\n padding-right: 19.5em;\n}\n.ql-editor .ql-indent-7:not(.ql-direction-rtl) {\n padding-left: 21em;\n}\n.ql-editor li.ql-indent-7:not(.ql-direction-rtl) {\n padding-left: 22.5em;\n}\n.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right {\n padding-right: 21em;\n}\n.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right {\n padding-right: 22.5em;\n}\n.ql-editor .ql-indent-8:not(.ql-direction-rtl) {\n padding-left: 24em;\n}\n.ql-editor li.ql-indent-8:not(.ql-direction-rtl) {\n padding-left: 25.5em;\n}\n.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right {\n padding-right: 24em;\n}\n.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right {\n padding-right: 25.5em;\n}\n.ql-editor .ql-indent-9:not(.ql-direction-rtl) {\n padding-left: 27em;\n}\n.ql-editor li.ql-indent-9:not(.ql-direction-rtl) {\n padding-left: 28.5em;\n}\n.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right {\n padding-right: 27em;\n}\n.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right {\n padding-right: 28.5em;\n}\n.ql-editor .ql-video {\n display: block;\n max-width: 100%;\n}\n.ql-editor .ql-video.ql-align-center {\n margin: 0 auto;\n}\n.ql-editor .ql-video.ql-align-right {\n margin: 0 0 0 auto;\n}\n.ql-editor .ql-bg-black {\n background-color: #000;\n}\n.ql-editor .ql-bg-red {\n background-color: #e60000;\n}\n.ql-editor .ql-bg-orange {\n background-color: #f90;\n}\n.ql-editor .ql-bg-yellow {\n background-color: #ff0;\n}\n.ql-editor .ql-bg-green {\n background-color: #008a00;\n}\n.ql-editor .ql-bg-blue {\n background-color: #06c;\n}\n.ql-editor .ql-bg-purple {\n background-color: #93f;\n}\n.ql-editor .ql-color-white {\n color: #fff;\n}\n.ql-editor .ql-color-red {\n color: #e60000;\n}\n.ql-editor .ql-color-orange {\n color: #f90;\n}\n.ql-editor .ql-color-yellow {\n color: #ff0;\n}\n.ql-editor .ql-color-green {\n color: #008a00;\n}\n.ql-editor .ql-color-blue {\n color: #06c;\n}\n.ql-editor .ql-color-purple {\n color: #93f;\n}\n.ql-editor .ql-font-serif {\n font-family: Georgia, Times New Roman, serif;\n}\n.ql-editor .ql-font-monospace {\n font-family: Monaco, Courier New, monospace;\n}\n.ql-editor .ql-size-small {\n font-size: 0.75em;\n}\n.ql-editor .ql-size-large {\n font-size: 1.5em;\n}\n.ql-editor .ql-size-huge {\n font-size: 2.5em;\n}\n.ql-editor .ql-direction-rtl {\n direction: rtl;\n text-align: inherit;\n}\n.ql-editor .ql-align-center {\n text-align: center;\n}\n.ql-editor .ql-align-justify {\n text-align: justify;\n}\n.ql-editor .ql-align-right {\n text-align: right;\n}\n.ql-editor.ql-blank::before {\n color: rgba(0,0,0,0.6);\n content: attr(data-placeholder);\n font-style: italic;\n left: 15px;\n pointer-events: none;\n position: absolute;\n right: 15px;\n}\n.ql-snow.ql-toolbar:after,\n.ql-snow .ql-toolbar:after {\n clear: both;\n content: '';\n display: table;\n}\n.ql-snow.ql-toolbar button,\n.ql-snow .ql-toolbar button {\n background: none;\n border: none;\n cursor: pointer;\n display: inline-block;\n float: left;\n height: 24px;\n padding: 3px 5px;\n width: 28px;\n}\n.ql-snow.ql-toolbar button svg,\n.ql-snow .ql-toolbar button svg {\n float: left;\n height: 100%;\n}\n.ql-snow.ql-toolbar button:active:hover,\n.ql-snow .ql-toolbar button:active:hover {\n outline: none;\n}\n.ql-snow.ql-toolbar input.ql-image[type=file],\n.ql-snow .ql-toolbar input.ql-image[type=file] {\n display: none;\n}\n.ql-snow.ql-toolbar button:hover,\n.ql-snow .ql-toolbar button:hover,\n.ql-snow.ql-toolbar button:focus,\n.ql-snow .ql-toolbar button:focus,\n.ql-snow.ql-toolbar button.ql-active,\n.ql-snow .ql-toolbar button.ql-active,\n.ql-snow.ql-toolbar .ql-picker-label:hover,\n.ql-snow .ql-toolbar .ql-picker-label:hover,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active,\n.ql-snow.ql-toolbar .ql-picker-item:hover,\n.ql-snow .ql-toolbar .ql-picker-item:hover,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected {\n color: #06c;\n}\n.ql-snow.ql-toolbar button:hover .ql-fill,\n.ql-snow .ql-toolbar button:hover .ql-fill,\n.ql-snow.ql-toolbar button:focus .ql-fill,\n.ql-snow .ql-toolbar button:focus .ql-fill,\n.ql-snow.ql-toolbar button.ql-active .ql-fill,\n.ql-snow .ql-toolbar button.ql-active .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,\n.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill {\n fill: #06c;\n}\n.ql-snow.ql-toolbar button:hover .ql-stroke,\n.ql-snow .ql-toolbar button:hover .ql-stroke,\n.ql-snow.ql-toolbar button:focus .ql-stroke,\n.ql-snow .ql-toolbar button:focus .ql-stroke,\n.ql-snow.ql-toolbar button.ql-active .ql-stroke,\n.ql-snow .ql-toolbar button.ql-active .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,\n.ql-snow.ql-toolbar button:hover .ql-stroke-miter,\n.ql-snow .ql-toolbar button:hover .ql-stroke-miter,\n.ql-snow.ql-toolbar button:focus .ql-stroke-miter,\n.ql-snow .ql-toolbar button:focus .ql-stroke-miter,\n.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,\n.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter {\n stroke: #06c;\n}\n@media (pointer: coarse) {\n .ql-snow.ql-toolbar button:hover:not(.ql-active),\n .ql-snow .ql-toolbar button:hover:not(.ql-active) {\n color: #444;\n }\n .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,\n .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,\n .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,\n .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill {\n fill: #444;\n }\n .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,\n .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,\n .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,\n .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter {\n stroke: #444;\n }\n}\n.ql-snow {\n box-sizing: border-box;\n}\n.ql-snow * {\n box-sizing: border-box;\n}\n.ql-snow .ql-hidden {\n display: none;\n}\n.ql-snow .ql-out-bottom,\n.ql-snow .ql-out-top {\n visibility: hidden;\n}\n.ql-snow .ql-tooltip {\n position: absolute;\n transform: translateY(10px);\n}\n.ql-snow .ql-tooltip a {\n cursor: pointer;\n text-decoration: none;\n}\n.ql-snow .ql-tooltip.ql-flip {\n transform: translateY(-10px);\n}\n.ql-snow .ql-formats {\n display: inline-block;\n vertical-align: middle;\n}\n.ql-snow .ql-formats:after {\n clear: both;\n content: '';\n display: table;\n}\n.ql-snow .ql-stroke {\n fill: none;\n stroke: #444;\n stroke-linecap: round;\n stroke-linejoin: round;\n stroke-width: 2;\n}\n.ql-snow .ql-stroke-miter {\n fill: none;\n stroke: #444;\n stroke-miterlimit: 10;\n stroke-width: 2;\n}\n.ql-snow .ql-fill,\n.ql-snow .ql-stroke.ql-fill {\n fill: #444;\n}\n.ql-snow .ql-empty {\n fill: none;\n}\n.ql-snow .ql-even {\n fill-rule: evenodd;\n}\n.ql-snow .ql-thin,\n.ql-snow .ql-stroke.ql-thin {\n stroke-width: 1;\n}\n.ql-snow .ql-transparent {\n opacity: 0.4;\n}\n.ql-snow .ql-direction svg:last-child {\n display: none;\n}\n.ql-snow .ql-direction.ql-active svg:last-child {\n display: inline;\n}\n.ql-snow .ql-direction.ql-active svg:first-child {\n display: none;\n}\n.ql-snow .ql-editor h1 {\n font-size: 2em;\n}\n.ql-snow .ql-editor h2 {\n font-size: 1.5em;\n}\n.ql-snow .ql-editor h3 {\n font-size: 1.17em;\n}\n.ql-snow .ql-editor h4 {\n font-size: 1em;\n}\n.ql-snow .ql-editor h5 {\n font-size: 0.83em;\n}\n.ql-snow .ql-editor h6 {\n font-size: 0.67em;\n}\n.ql-snow .ql-editor a {\n text-decoration: underline;\n}\n.ql-snow .ql-editor blockquote {\n border-left: 4px solid #ccc;\n margin-bottom: 5px;\n margin-top: 5px;\n padding-left: 16px;\n}\n.ql-snow .ql-editor code,\n.ql-snow .ql-editor pre {\n background-color: #f0f0f0;\n border-radius: 3px;\n}\n.ql-snow .ql-editor pre {\n white-space: pre-wrap;\n margin-bottom: 5px;\n margin-top: 5px;\n padding: 5px 10px;\n}\n.ql-snow .ql-editor code {\n font-size: 85%;\n padding: 2px 4px;\n}\n.ql-snow .ql-editor pre.ql-syntax {\n background-color: #23241f;\n color: #f8f8f2;\n overflow: visible;\n}\n.ql-snow .ql-editor img {\n max-width: 100%;\n}\n.ql-snow .ql-picker {\n color: #444;\n display: inline-block;\n float: left;\n font-size: 14px;\n font-weight: 500;\n height: 24px;\n position: relative;\n vertical-align: middle;\n}\n.ql-snow .ql-picker-label {\n cursor: pointer;\n display: inline-block;\n height: 100%;\n padding-left: 8px;\n padding-right: 2px;\n position: relative;\n width: 100%;\n}\n.ql-snow .ql-picker-label::before {\n display: inline-block;\n line-height: 22px;\n}\n.ql-snow .ql-picker-options {\n background-color: #fff;\n display: none;\n min-width: 100%;\n padding: 4px 8px;\n position: absolute;\n white-space: nowrap;\n}\n.ql-snow .ql-picker-options .ql-picker-item {\n cursor: pointer;\n display: block;\n padding-bottom: 5px;\n padding-top: 5px;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-label {\n color: #ccc;\n z-index: 2;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill {\n fill: #ccc;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke {\n stroke: #ccc;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-options {\n display: block;\n margin-top: -1px;\n top: 100%;\n z-index: 1;\n}\n.ql-snow .ql-color-picker,\n.ql-snow .ql-icon-picker {\n width: 28px;\n}\n.ql-snow .ql-color-picker .ql-picker-label,\n.ql-snow .ql-icon-picker .ql-picker-label {\n padding: 2px 4px;\n}\n.ql-snow .ql-color-picker .ql-picker-label svg,\n.ql-snow .ql-icon-picker .ql-picker-label svg {\n right: 4px;\n}\n.ql-snow .ql-icon-picker .ql-picker-options {\n padding: 4px 0px;\n}\n.ql-snow .ql-icon-picker .ql-picker-item {\n height: 24px;\n width: 24px;\n padding: 2px 4px;\n}\n.ql-snow .ql-color-picker .ql-picker-options {\n padding: 3px 5px;\n width: 152px;\n}\n.ql-snow .ql-color-picker .ql-picker-item {\n border: 1px solid transparent;\n float: left;\n height: 16px;\n margin: 2px;\n padding: 0px;\n width: 16px;\n}\n.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg {\n position: absolute;\n margin-top: -9px;\n right: 0;\n top: 50%;\n width: 18px;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=''])::before {\n content: attr(data-label);\n}\n.ql-snow .ql-picker.ql-header {\n width: 98px;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item::before {\n content: 'Normal';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"1\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before {\n content: 'Heading 1';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"2\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before {\n content: 'Heading 2';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"3\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before {\n content: 'Heading 3';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"4\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before {\n content: 'Heading 4';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"5\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before {\n content: 'Heading 5';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"6\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before {\n content: 'Heading 6';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before {\n font-size: 2em;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before {\n font-size: 1.5em;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before {\n font-size: 1.17em;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before {\n font-size: 1em;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before {\n font-size: 0.83em;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before {\n font-size: 0.67em;\n}\n.ql-snow .ql-picker.ql-font {\n width: 108px;\n}\n.ql-snow .ql-picker.ql-font .ql-picker-label::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item::before {\n content: 'Sans Serif';\n}\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before {\n content: 'Serif';\n}\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before {\n content: 'Monospace';\n}\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before {\n font-family: Georgia, Times New Roman, serif;\n}\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before {\n font-family: Monaco, Courier New, monospace;\n}\n.ql-snow .ql-picker.ql-size {\n width: 98px;\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item::before {\n content: 'Normal';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before {\n content: 'Small';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before {\n content: 'Large';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before {\n content: 'Huge';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before {\n font-size: 10px;\n}\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before {\n font-size: 18px;\n}\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before {\n font-size: 32px;\n}\n.ql-snow .ql-color-picker.ql-background .ql-picker-item {\n background-color: #fff;\n}\n.ql-snow .ql-color-picker.ql-color .ql-picker-item {\n background-color: #000;\n}\n.ql-toolbar.ql-snow {\n border: 1px solid #ccc;\n box-sizing: border-box;\n font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;\n padding: 8px;\n}\n.ql-toolbar.ql-snow .ql-formats {\n margin-right: 15px;\n}\n.ql-toolbar.ql-snow .ql-picker-label {\n border: 1px solid transparent;\n}\n.ql-toolbar.ql-snow .ql-picker-options {\n border: 1px solid transparent;\n box-shadow: rgba(0,0,0,0.2) 0 2px 8px;\n}\n.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label {\n border-color: #ccc;\n}\n.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options {\n border-color: #ccc;\n}\n.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,\n.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover {\n border-color: #000;\n}\n.ql-toolbar.ql-snow + .ql-container.ql-snow {\n border-top: 0px;\n}\n.ql-snow .ql-tooltip {\n background-color: #fff;\n border: 1px solid #ccc;\n box-shadow: 0px 0px 5px #ddd;\n color: #444;\n padding: 5px 12px;\n white-space: nowrap;\n}\n.ql-snow .ql-tooltip::before {\n content: \"Visit URL:\";\n line-height: 26px;\n margin-right: 8px;\n}\n.ql-snow .ql-tooltip input[type=text] {\n display: none;\n border: 1px solid #ccc;\n font-size: 13px;\n height: 26px;\n margin: 0px;\n padding: 3px 5px;\n width: 170px;\n}\n.ql-snow .ql-tooltip a.ql-preview {\n display: inline-block;\n max-width: 200px;\n overflow-x: hidden;\n text-overflow: ellipsis;\n vertical-align: top;\n}\n.ql-snow .ql-tooltip a.ql-action::after {\n border-right: 1px solid #ccc;\n content: 'Edit';\n margin-left: 16px;\n padding-right: 8px;\n}\n.ql-snow .ql-tooltip a.ql-remove::before {\n content: 'Remove';\n margin-left: 8px;\n}\n.ql-snow .ql-tooltip a {\n line-height: 26px;\n}\n.ql-snow .ql-tooltip.ql-editing a.ql-preview,\n.ql-snow .ql-tooltip.ql-editing a.ql-remove {\n display: none;\n}\n.ql-snow .ql-tooltip.ql-editing input[type=text] {\n display: inline-block;\n}\n.ql-snow .ql-tooltip.ql-editing a.ql-action::after {\n border-right: 0px;\n content: 'Save';\n padding-right: 0px;\n}\n.ql-snow .ql-tooltip[data-mode=link]::before {\n content: \"Enter link:\";\n}\n.ql-snow .ql-tooltip[data-mode=formula]::before {\n content: \"Enter formula:\";\n}\n.ql-snow .ql-tooltip[data-mode=video]::before {\n content: \"Enter video:\";\n}\n.ql-snow a {\n color: #06c;\n}\n.ql-container.ql-snow {\n border: 1px solid #ccc;\n}\n",""]);const a=s},7430:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,"#misc-publishing-actions svg.dashicon{color:#82878c;vertical-align:middle;margin-right:.25em}#major-publishing-actions .editor-post-trash{margin-left:0;color:#a00}.pods-edit-pod-manage-field .pods-dfv-container{display:block;max-width:45em;width:65%}.pods-edit-pod-manage-field .pods-dfv-container-wysiwyg,.pods-edit-pod-manage-field .pods-dfv-container-code{width:100%}",""]);const a=s},2732:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".pods-edit-pod-manage-field{zoom:1}.pods-edit-pod-manage-field .pods-field-option,.pods-edit-pod-manage-field .pods-field-option-group{background:#fcfcfc;border-bottom:1px solid #ccd0d4;box-sizing:border-box;display:flex;flex-flow:row nowrap;padding:10px}.pods-edit-pod-manage-field .pods-field-option>*,.pods-edit-pod-manage-field .pods-field-option-group>*{box-sizing:border-box}.pods-edit-pod-manage-field .pods-pick-values li{position:relative}.pods-edit-pod-manage-field .pods-pick-values li{margin:0}.pods-edit-pod-manage-field .pods-field-option:nth-child(odd),.pods-edit-pod-manage-field .pods-field-option-group:nth-child(odd){background:#fff}.pods-edit-pod-manage-field .pods-field-option .pods-field-label,.pods-edit-pod-manage-field .pods-field-option-group .pods-field-option-group-label{width:30%;flex:0 0 30%;padding-right:2%;padding-top:4px}.pods-edit-pod-manage-field .pods-field-option .pods-field-option__field,.pods-edit-pod-manage-field .pods-field-option-group .pods-field-option__field{width:70%;flex:0 0 70%}.pods-edit-pod-manage-field .pods-field-option .pods-pick-values .pods-field.pods-boolean{float:none;margin-left:0;width:auto;max-width:100%}.pods-edit-pod-manage-field label+div .pods-pick-values{width:96%}.pods-edit-pod-manage-field .pods-field-option .pods-form-ui-field-type-wysiwyg textarea{max-width:100%}.pods-edit-pod-manage-field .pods-field-option .pods-form-ui-field-type-file{padding-bottom:8px}.pods-edit-pod-manage-field .pods-field-option .pods-form-ui-field-type-file table.form-table tr.form-field td{padding:0;border-bottom:none}.pods-edit-pod-manage-field .pods-field-option .pods-form-ui-field-type-file table.form-table,.pods-edit-pod-manage-field .pods-field-option-group p.pods-field-option-group-label{margin-top:0}.pods-edit-pod-manage-field .pods-pick-values input[type=checkbox],.pods-edit-pod-manage-field .pods-pick-values input[type=radio]{margin:6px}.pods-edit-pod-manage-field .pods-pick-values ul{overflow:visible;margin:5px 0}.pods-edit-pod-manage-field .pods-pick-values ul .pods-field.pods-boolean,.pods-edit-pod-manage-field .pods-pick-values ul ul{margin:0}.pods-edit-pod-manage-field .pods-pick-values.pods-zebra{width:100%;max-width:100%}.pods-edit-pod-manage-field .pods-pick-values.pods-zebra li{margin-bottom:4px}.pods-edit-pod-manage-field .pods-pick-values.pods-zebra div.pods-boolean input{margin:4px}.pods-edit-pod-manage-field .pods-pick-values.pods-zebra div.pods-boolean label{padding:5px 0}.pods-edit-pod-manage-field .pods-pick-values li.pods-zebra-odd{display:block;width:50%;float:left;clear:both}.pods-edit-pod-manage-field .pods-pick-values li.pods-zebra-even{display:block;width:50%;float:left;clear:none}.pods-edit-pod-manage-field .pods-pick-values .regular-text{max-width:95%}.pods-edit-pod-manage-field li>.pods-field.pods-boolean:hover{background:#f5f5f5}.pods-edit-pod-manage-field input.pods-form-ui-no-label{position:relative}@media screen and (max-width: 782px){.pods-edit-pod-manage-field .pods-field-option label,.pods-edit-pod-manage-field .pods-field-option-group .pods-field-option-group-label{float:none;display:block;width:100%;max-width:none;padding-bottom:4px;margin-bottom:0;line-height:22px}.pods-edit-pod-manage-field .pods-field-option input[type=text],.pods-edit-pod-manage-field .pods-field-option textarea,.pods-edit-pod-manage-field .pods-field-option .pods-field.pods-boolean,.pods-edit-pod-manage-field .pods-pick-values,.pods-edit-pod-manage-field .pods-field-option .pods-form-ui-field-type-file,.pods-edit-pod-manage-field .pods-slider-field{display:block;margin:0;width:100%;max-width:none}.pods-edit-pod-manage-field .pods-field.pods-boolean label,.pods-edit-pod-manage-field .pods-field-option .pods-pick-values label{line-height:22px;font-size:14px;margin-left:34px}.pods-edit-pod-manage-field .pods-pick-values li.pods-zebra-odd,.pods-edit-pod-manage-field .pods-pick-values li.pods-zebra-even{display:block;width:100%;float:none;clear:both}}",""]);const a=s},989:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".pods-field-group-wrapper{margin-bottom:10px;border:1px solid #ccd0d4;background-color:#fff;transition:border .2s ease-in-out,opacity .5s ease-in-out}.pods-field-group-wrapper--unsaved{border-left:5px #95bf3b}.pods-field-group-wrapper--deleting{opacity:.5;user-select:none}.pods-field-group-wrapper--errored{border-left:5px #a00 solid}.pods-field-group_name__error{color:#a00;display:inline-block;padding-left:.5em}.pods-field-group_name__id{font-size:13px;color:#999;display:inline;opacity:0;transition:200ms ease opacity}.pods-field-group-wrapper:hover .pods-field-group_name__id{opacity:1}.pods-field-group_buttons{color:#ccd0d4;opacity:0}.pods-field-group-wrapper:hover .pods-field-group_buttons{opacity:1}.pods-field-group_button{background:rgba(0,0,0,0);border:none;color:#007cba;cursor:pointer;height:auto;margin:.25em 0;overflow:visible;padding:0 .5em;position:relative}.pods-field-group_button:hover,.pods-field-group_button:focus{color:#00a0d2}.pods-field-group_manage,.pods-field-group_delete{border-right:none;margin-right:0}.pods-field-group_manage{color:#e1e1e1}.pods-field-group_delete{color:#a00}.pods-field-group_delete:hover,.pods-field-group_delete:hover:not(:disabled){color:#a02222}",""]);const a=s},2037:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".opacity-ghost{transition:all .8s ease;opacity:.4;box-shadow:3px 3px 10px 3px rgba(0,0,0,.3);cursor:ns-resize}.pods-field-group_title{cursor:pointer;display:flex;padding:.5em;justify-content:space-between;color:#333;align-items:center}.pods-field-group_title>button{flex-shrink:0}.pods-field-group_name{cursor:pointer;margin-right:auto;padding:.5em;user-select:none}.pods-field-group_handle{cursor:move;display:inline-block;padding-right:13px;vertical-align:middle}.pods-button-group_container{display:flex;width:100%;justify-content:flex-end;margin-top:10px;margin-bottom:10px}.pods-button-group_add-new{text-align:center;border:2px dashed #ccd0d4;background:none;width:100%;padding:.7em 1em;transition:300ms ease background-color}.pods-button-group_add-new:focus,.pods-button-group_add-new:hover{background-color:#ccd0d4;cursor:pointer}.pods-field-group_toggle{cursor:pointer}.pods-button-group_item{padding:10px 20px;color:#333;text-decoration:none;transition:300ms ease background-color}.pods-button-group_item:hover{background-color:#e0e0e0}.pods-button-group_item:last-child{background-color:#94bf3a;color:#fff}.pods-button-group_item:last-child:hover{background-color:#7c9e33}.pods-field-group_settings{width:100%;height:100%}.pods-field-group_settings--visible{display:block}.pods-field-group_settings .components-modal__content{padding:0}.pods-field-group_settings .components-modal__header{padding:0 36px;margin-bottom:0}.pods-field-group_settings-container{width:100%;margin:0 auto;background-color:#eee;position:absolute;height:calc(100% - 56px)}.pods-field-group_settings-options{display:flex;width:100%;height:100%;overflow:hidden}.pods-field-group_heading{border-bottom:1px solid #e5e5e5;padding:10px;font-weight:bolder;font-size:16px}.pods-field-group_settings-sidebar{width:35%;background-color:#f3f3f3;position:absolute;left:0;height:100%}.pods-field-group_settings-sidebar-item{padding:10px;border-bottom:1px solid #c6cbd0;cursor:pointer;transition:300ms ease background-color}.pods-field-group_settings-sidebar-item:last-child{border-bottom:none}.pods-field-group_settings-sidebar-item--active{background-color:#eee;font-weight:bolder;margin-right:-2px}.pods-field-group_settings-sidebar-item:hover{background-color:#eee}.pods-field-group_settings-main,.pods-field-group_settings-advanced,.pods-field-group_settings-other{width:65%;padding:20px;position:absolute;left:35%}.pods-input-container{display:flex;align-items:center;padding-bottom:20px}.pods-input-container:last-child{padding-bottom:0}.pods-label_text{width:30%;padding-right:20px;font-weight:bold}.pods-input{width:70%}",""]);const a=s},843:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".pods-field_outer-wrapper{background:#fff}.pods-field_outer-wrapper:nth-child(odd){background-color:#f9f9f9;transition:200ms ease background-color}.pods-field_wrapper--dragging{background:#e2e4e7}.pods-field_wrapper--dragging .pods-field_wrapper .pods-field_controls-container{opacity:0}.pods-field_wrapper--overlay{background:#fff;box-shadow:0 0 0 3px rgba(63,63,68,.05),-1px 0 4px 0 rgba(34,33,81,.01),0px 4px 4px 0 rgba(34,33,81,.25);z-index:999}.pods-field_wrapper--overlay .pods-field_wrapper .pods-field_controls-container{opacity:0}.pods-field_wrapper{display:flex;width:auto;align-items:center;padding:.7em 0;transition:border .2s ease-in-out,opacity .5s ease-in-out}.pods-field_wrapper:hover .pods-field_controls-container{opacity:1}.pods-field_wrapper--unsaved{border-left:5px #95bf3b solid}.pods-field_wrapper--deleting{opacity:.5;user-select:none}.pods-field_wrapper--errored{border-left:5px #a00 solid}.pods-field_handle{width:30px;flex:0 0 30px;opacity:.2;padding-left:10px;padding-right:10px;cursor:move;margin-bottom:1em}.pods-field_required{color:red}.pods-field_actions{display:flex}.pods-field_actions i{padding:10px;color:#0073aa}.pods-field_actions i:hover{cursor:pointer;color:#00a0d2}.pods-field_label{padding-left:0;user-select:none}.pods-field_id{font-size:13px;color:#999;display:inline;opacity:0;transition:200ms ease opacity}.pods-field_controls-container__error{color:#000}.pods-field_type,.pods-field_wrapper-label_type{width:60px;user-select:none}.pods-field_label,.pods-field_type{user-select:none}.pods-field_label:hover .pods-field_id,.pods-field_type:hover .pods-field_id{opacity:1;height:auto}.pods-field_label,.pods-field_name{color:#0073aa}.pods-field_label__link{cursor:pointer}.pods-field_label__link:hover{color:#00a0d2}.pods-field_name{cursor:pointer;user-select:none}.pods-field-group_name:hover>.pods-field-group_name__id{opacity:1}.pods-field_wrapper-labels{display:flex;width:100%;margin-top:.3em}.pods-field_wrapper-labels+.pods-field_wrapper-items{margin-top:.7em;width:100%}.pods-field_wrapper-label,.pods-field_label{width:calc(50% - 50px);flex:0 0 calc(50% - 50px)}.pods-field_wrapper-label:first-child{margin-left:50px}.pods-field_name,.pods-field_type,.pods-field_wrapper-label_name,.pods-field_wrapper-label_type{flex:0 0 calc(25% - 1em);padding-bottom:1em;padding-right:1em;overflow-wrap:break-word;width:calc(25% - 1em)}.pods-field_wrapper-label-items{width:172px;padding:1em 1em 1em 0;justify-content:flex-start;width:25%}.pods-field_wrapper-label-items:first-child{margin-left:40px;width:50%}.pods-field_wrapper-items{border:1px solid #ccd0d4;margin:1em 0}.pods-field_wrapper:nth-child(even){background-color:#e2e4e7}.pods-field_controls-container{color:#ccd0d4;margin-left:-0.5em;padding-top:.25em}.pods-field_button{background:rgba(0,0,0,0);border:none;color:#007cba;cursor:pointer;font-size:.95em;height:auto;overflow:visible;padding:0 .5em}.pods-field_button:hover,.pods-field_button:focus{color:#00a0d2}.pods-field_button.pods-field_delete{color:#a00}.pods-field_button.pods-field_delete:hover{color:#a02222}.pods-field_button.pods-field_delete::after{content:none}",""]);const a=s},7862:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".pods-field_controls-container{opacity:0}.pods-field-list{margin:0 2em 2em;overflow:visible !important;display:flex;flex-flow:column nowrap}.pods-field-list__empty{padding:2em 0}.pods-field-list__empty--dropping{background:#ccd0d4}.pods-field-list__empty-message{margin:0;text-align:right}.pods-field-group_add_field_link{align-self:flex-end}",""]);const a=s},2607:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".components-modal__frame.pods-settings-modal{height:90vh;width:90vw;max-width:950px}@media screen and (min-width: 851px){.components-modal__frame.pods-settings-modal{height:80vh;width:80vw}}.pods-settings-modal .components-modal__header{flex:0 0 auto;height:auto;padding:1em 2em}.pods-settings-modal .components-modal__content{display:flex;flex-flow:column nowrap}.pods-settings-modal__container{display:flex;flex:1 1 auto;flex-flow:column nowrap;overflow:hidden}@media screen and (min-width: 851px){.pods-settings-modal__container{flex-flow:row nowrap}}.pods-setting-modal__button-group{display:flex;flex:0 0 auto;justify-content:flex-end;padding:0 1em;width:100%}@media screen and (min-width: 851px){.pods-setting-modal__button-group{border-top:1px solid #e2e4e7;padding-top:12px;margin-left:-24px;margin-right:-24px;width:calc(100% + 48px);padding-right:24px;padding-left:24px;margin-bottom:-12px}}.pods-setting-modal__button-group button{margin-right:5px}.pods-settings-modal__tabs{display:flex;margin-bottom:1em;padding-bottom:.5em;overflow-x:scroll;min-width:200px}@media screen and (min-width: 851px){.pods-settings-modal__tabs{border-right:1px solid #e2e4e7;flex-flow:column nowrap;margin-bottom:0;margin-right:2em;margin-top:-24px;overflow-x:hidden;padding-top:24px;padding-bottom:0}}.pods-settings-modal__tab-item{font-size:14px;font-weight:700;padding:1em 1em 1em 1.1em;margin:0;text-align:center}@media screen and (min-width: 851px){.pods-settings-modal__tab-item{text-align:left;width:200px}}.pods-settings-modal__tab-item:hover{cursor:pointer}.pods-settings-modal__tab-item:focus{outline:1px solid #007cba;outline-offset:-1px}.pods-settings-modal__tab-item.pods-settings-modal__tab-item--active{color:#007cba;border-bottom:5px solid #007cba}@media screen and (min-width: 851px){.pods-settings-modal__tab-item.pods-settings-modal__tab-item--active{border-bottom:none;border-right:5px solid #007cba}}.pods-settings-modal__panel{margin:0;overflow-y:auto;padding-right:1em}@media screen and (min-width: 851px){.pods-settings-modal__panel{flex:1 1 auto}}.pods-settings-modal__panel .pods-field-option{margin-bottom:1em}.pod-field-group_settings-error-message{border:1px solid #ccd0d4;border-left:4px solid #a00;margin:-12px 0 12px;padding:12px;position:relative}@media screen and (min-width: 851px){.pod-field-group_settings-error-message{margin-bottom:36px}}.pods-field-option label{margin-bottom:.2em}.pods-field-option input[type=text],.pods-field-option textarea{width:100%}.components-modal__frame .pods-field-option input[type=checkbox]:checked{background:#fff}.rtl .pods-settings-modal__panel{padding-right:0;padding-left:1em}@media screen and (min-width: 851px){.rtl .pods-settings-modal__tabs{border-right:0;border-left:1px solid #e2e4e7;margin-right:0;margin-left:2em}}",""]);const a=s},3828:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".pods-field-description{clear:both}",""]);const a=s},7007:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".pods-field-label{margin-bottom:.2em;display:block}.pods-field-label__required{color:red}",""]);const a=s},3418:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".pods-dfv-container .components-notice{margin-left:0;margin-right:0}.pods-dfv-container-text input,.pods-dfv-container-website input,.pods-dfv-container-phone input,.pods-dfv-container-email input,.pods-dfv-container-password input,.pods-dfv-container-paragraph input{width:100%}",""]);const a=s},4477:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".pods-field-wrapper__repeatable-field-table{margin-bottom:10px}.pods-field-wrapper__item{display:flex;flex-flow:row nowrap;margin-bottom:1em}.pods-field-wrapper__repeatable{align-items:center;background:#f9f9f9;border:1px solid #82878c;margin-bottom:0;padding:0;position:relative;margin-top:-1px;transition:.1s background ease-in-out}.pods-field-wrapper__repeatable:first-child{margin-top:0}.pods-field-wrapper__repeatable:hover{background:#f0f0f0}.pods-field-wrapper__repeatable .pods-field-wrapper__field{padding:8px}.pods-field-wrapper__repeatable .components-accessible-toolbar{border:0}.pods-field-wrapper__repeatable .components-toolbar-group{background:rgba(0,0,0,0)}.pods-field-wrapper__controls{flex:0 1 auto}.pods-field-wrapper__field{flex:1 1 auto}.pods-field-wrapper__controls--start{padding-right:1em}.pods-field-wrapper__controls--end{padding-left:1em}.pods-field-wrapper__drag-handle{cursor:grab}.pods-field-wrapper__movers{display:flex;flex-flow:column nowrap;justify-content:center}.components-accessible-toolbar .components-button.pods-field-wrapper__mover{height:20px}",""]);const a=s},6478:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".pods-help-tooltip__icon{cursor:pointer}.pods-help-tooltip__icon:focus{outline:1px solid #007cba;outline-offset:1px}.pods-help-tooltip__icon>svg{color:#ccc;vertical-align:middle}.pods-help-tooltip a{color:#fff}.pods-help-tooltip a:hover,.pods-help-tooltip a:focus{color:#ccd0d4}.pods-help-tooltip .dashicon{text-decoration:none}",""]);const a=s},1753:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".pods-iframe-modal{height:100%;width:100%;max-height:calc(100% - 60px);max-width:calc(100% - 60px)}.pods-iframe-modal__iframe{height:100%;width:100%}",""]);const a=s},9160:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".pods-boolean-group{background:#fff;margin:0 0 5px 0;padding:0;border-radius:0;border:1px solid #dfdfdf}.pods-boolean-group__option{background-color:#fff;border-bottom:1px solid #f4f4f4;margin:0;padding:.5em}.pods-boolean-group__option:nth-child(even){background:#fcfcfc}",""]);const a=s},515:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".pods-code-field{border:1px solid #e5e5e5}.pods-code-field .cm-content{white-space:pre-wrap}",""]);const a=s},7310:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".pods-color-buttons{align-items:center;display:flex;flex-flow:row nowrap}.pods-color-buttons .button{margin-right:.5em}.button.pods-color-select-button{align-items:center;display:flex;flex-flow:row nowrap}.button.pods-color-select-button>.component-color-indicator{display:block;margin-right:.5em}.pods-color-picker{padding:.5em;border:1px solid #ccd0d4;max-width:550px}",""]);const a=s},4622:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".pods-currency-container{position:relative}.pods-currency-sign{position:absolute;transform:translate(0, -50%);top:50%;pointer-events:none;min-width:10px;text-align:center;padding:1px 5px;line-height:28px}input.pods-form-ui-field-type-currency[type=text]{padding-left:30px}.pods-field-option .pods-form-ui-field.pods-form-ui-field-type-currency,.pods-field-option .pods-form-ui-field.pods-form-ui-field-type-currency-slider{max-width:500px}.pods-field-option .pods-form-ui-field.pods-form-ui-field-type-currency-slider{width:100%}",""]);const a=s},556:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".pods-react-datetime-fix .rdtPicker{position:sticky !important;max-width:500px}.pods-react-datetime-fix .rdtPicker td,.pods-react-datetime-fix .rdtPicker th{padding:10px;vertical-align:middle}.pods-react-datetime-fix .rdtPicker th.rdtNext,.pods-react-datetime-fix .rdtPicker th.rdtPrev{vertical-align:top;line-height:1}.pods-react-datetime-fix .rdtPicker th.rdtNext span,.pods-react-datetime-fix .rdtPicker th.rdtPrev span{line-height:.6}.pods-field-option .pods-form-ui-field.pods-form-ui-field-type-datetime,.pods-field-option .pods-form-ui-field.pods-form-ui-field-type-date,.pods-field-option .pods-form-ui-field.pods-form-ui-field-type-time{max-width:300px}#side-sortables .pods-field-option .pods-form-ui-field.pods-form-ui-field-type-datetime,#side-sortables .pods-field-option .pods-form-ui-field.pods-form-ui-field-type-date,#side-sortables .pods-field-option .pods-form-ui-field.pods-form-ui-field-type-time{max-width:100%}",""]);const a=s},7442:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,"h3.pods-form-ui-heading.pods-form-ui-heading-label_heading{padding:8px 0 !important}",""]);const a=s},339:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".pods-field-option .pods-form-ui-field.pods-form-ui-field-type-number,.pods-field-option .pods-form-ui-field.pods-form-ui-field-type-number-slider{max-width:500px}.pods-field-option .pods-form-ui-field.pods-form-ui-field-type-number-slider{width:100%}",""]);const a=s},3117:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,"#profile-page .form-table .pods-field-option .pods-form-ui-field.pods-form-ui-field-type-paragraph,.pods-field-option .pods-form-ui-field.pods-form-ui-field-type-paragraph{min-height:200px;width:100%}",""]);const a=s},2810:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,"ul.pods-checkbox-pick,ul.pods-checkbox-pick li{list-style:none}",""]);const a=s},4039:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".pods-list-select-values{background:#fff;margin:0 0 5px 0;padding:0;border-radius:0;border:1px solid #dfdfdf}.pods-list-select-values:empty{display:none}.pods-list-select-item{display:block;padding:6px 5px 6px 10px;margin:0;border-bottom:1px solid #efefef}.pods-list-select-item:nth-child(even){background:#fcfcfc}.pods-list-select-item:hover{background:#f5f5f5}.pods-list-select-item:last-of-type{border-bottom:0}.pods-list-select-item--is-dragging{background:#efefef}.pods-list-select-item--overlay{box-shadow:0 0 0 3px rgba(63,63,68,.05),-1px 0 4px 0 rgba(34,33,81,.01),0px 4px 4px 0 rgba(34,33,81,.25)}.pods-list-select-item__inner{align-items:center;display:flex;flex-flow:row nowrap;margin:0}.pods-list-select-item__col{display:block;margin:0;padding:0}.pods-list-select-item__drag-handle{width:30px;flex:0 0 30px;opacity:.2;padding:4px 0}.pods-list-select-item__move-buttons{display:flex;flex-flow:column nowrap;padding-left:1px}.pods-list-select-item__move-buttons .pods-list-select-item__move-button{background:rgba(0,0,0,0);border:none;height:16px;padding:0}.pods-list-select-item__move-buttons .pods-list-select-item__move-button--disabled{opacity:.3}.pods-list-select-item__icon{width:40px;margin:0 5px;font-size:0;line-height:32px;text-align:center}.pods-list-select-item__icon>img{display:inline-block;vertical-align:middle;float:none;border-radius:2px;margin:0;max-height:100%;max-width:100%;width:auto}.pods-list-select-item__icon>span.pinkynail{font-size:32px;width:32px;height:32px}.pods-list-select-item__name{border-bottom:none;line-height:24px;margin:0;overflow:visible;padding:3px 0;user-select:none;white-space:nowrap}.pods-list-select-item__edit{margin:0 0 0 auto;width:25px}.pods-list-select-item__view{margin:0;width:25px}.pods-list-select-item__remove{margin:0;width:25px}.pods-list-select-item__link{display:block;opacity:.4;text-decoration:none;color:#616161}",""]);const a=s},2235:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".pods-form-ui-field-select{width:100%;margin:0;max-width:100%}.pods-form-ui-field-select[readonly]{font-style:italic;color:gray}.pods-radio-pick,.pods-checkbox-pick{background:#fff;margin:0 0 5px 0;padding:0;border-radius:0;border:1px solid #dfdfdf;overflow:hidden;max-height:220px;overflow-y:auto}.pods-radio-pick__option,.pods-checkbox-pick__option{background-color:#fff;border-bottom:1px solid #f4f4f4;margin:0;padding:.5em}.pods-radio-pick__option:nth-child(even),.pods-checkbox-pick__option:nth-child(even){background:#fcfcfc}.pods-radio-pick__option .pods-field,.pods-checkbox-pick__option .pods-field{padding:0}.pods-checkbox-pick__option__label,.pods-radio-pick__option__label{display:inline-block;float:none !important;margin:0 !important;padding:0 !important}.pods-checkbox-pick--single{border:none}.pods-checkbox-pick__option--single{border-bottom:none}.pods-checkbox-pick__option--single .pods-checkbox-pick__option__label{margin-left:0}",""]);const a=s},8598:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".pods-dfv-container .pods-tinymce-editor-container{border:none;background:rgba(0,0,0,0)}.pods-tinymce-editor-container .mce-tinymce{border:1px solid #e5e5e5}.pods-alternate-editor{width:100%}#profile-page .form-table .pods-field-option .wp-editor-container textarea.wp-editor-area,#profile-page .form-table .pods-field-option .wp-editor-container textarea.components-textarea-control__input,.pods-field-option .wp-editor-container textarea.wp-editor-area,.pods-field-option .wp-editor-container textarea.components-textarea-control__input{width:100%;border:none;margin-bottom:0}.pods-field-wrapper__repeatable-field-table div.quill{background-color:#fff}",""]);const a=s},110:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,'.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}',""]);const a=s},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",i=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),i&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),i&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,i,r,o){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(i)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(s[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);i&&s[u[0]]||(void 0!==o&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),t.push(u))}},t}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},9996:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)};var n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,n){return e.concat(t).map((function(e){return i(e,n)}))}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function s(e,t){try{return t in e}catch(e){return!1}}function a(e,t,n){var r={};return n.isMergeableObject(e)&&o(e).forEach((function(t){r[t]=i(e[t],n)})),o(t).forEach((function(o){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(s(e,o)&&n.isMergeableObject(t[o])?r[o]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(o,n)(e[o],t[o],n):r[o]=i(t[o],n))})),r}function l(e,n,o){(o=o||{}).arrayMerge=o.arrayMerge||r,o.isMergeableObject=o.isMergeableObject||t,o.cloneUnlessOtherwiseSpecified=i;var s=Array.isArray(n);return s===Array.isArray(e)?s?o.arrayMerge(e,n,o):a(e,n,o):i(n,o)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return l(e,n,t)}),{})};var c=l;e.exports=c},9960:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},3150:e=>{"use strict";e.exports=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},8679:(e,t,n)=>{"use strict";var i=n(1296),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return i.isMemo(e)?s:a[e.$$typeof]||r}a[i.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[i.Memo]=s;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,i){if("string"!=typeof n){if(h){var r=f(n);r&&r!==h&&e(t,r,i)}var s=u(n);d&&(s=s.concat(d(n)));for(var a=l(t),O=l(n),m=0;m<s.length;++m){var g=s[m];if(!(o[g]||i&&i[g]||O&&O[g]||a&&a[g])){var y=p(n,g);try{c(t,g,y)}catch(e){}}}}return t}},6103:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,i=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,O=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,v=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case u:case d:case o:case a:case s:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case m:case O:case l:return e;default:return t}}case r:return t}}}function $(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=i,t.ForwardRef=p,t.Fragment=o,t.Lazy=m,t.Memo=O,t.Portal=r,t.Profiler=a,t.StrictMode=s,t.Suspense=f,t.isAsyncMode=function(e){return $(e)||w(e)===u},t.isConcurrentMode=$,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===m},t.isMemo=function(e){return w(e)===O},t.isPortal=function(e){return w(e)===r},t.isProfiler=function(e){return w(e)===a},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===a||e===s||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===O||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===v||e.$$typeof===g)},t.typeOf=w},1296:(e,t,n)=>{"use strict";e.exports=n(6103)},8552:(e,t,n)=>{var i=n(852)(n(8638),"DataView");e.exports=i},1989:(e,t,n)=>{var i=n(1789),r=n(401),o=n(7667),s=n(1327),a=n(1866);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,e.exports=l},8407:(e,t,n)=>{var i=n(7040),r=n(4125),o=n(2117),s=n(7518),a=n(4705);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,e.exports=l},7071:(e,t,n)=>{var i=n(852)(n(8638),"Map");e.exports=i},3369:(e,t,n)=>{var i=n(4785),r=n(1285),o=n(6e3),s=n(9916),a=n(5265);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,e.exports=l},3818:(e,t,n)=>{var i=n(852)(n(8638),"Promise");e.exports=i},8525:(e,t,n)=>{var i=n(852)(n(8638),"Set");e.exports=i},8668:(e,t,n)=>{var i=n(3369),r=n(619),o=n(2385);function s(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new i;++t<n;)this.add(e[t])}s.prototype.add=s.prototype.push=r,s.prototype.has=o,e.exports=s},6384:(e,t,n)=>{var i=n(8407),r=n(7465),o=n(3779),s=n(7599),a=n(4758),l=n(4309);function c(e){var t=this.__data__=new i(e);this.size=t.size}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=s,c.prototype.has=a,c.prototype.set=l,e.exports=c},2705:(e,t,n)=>{var i=n(8638).Symbol;e.exports=i},1149:(e,t,n)=>{var i=n(8638).Uint8Array;e.exports=i},577:(e,t,n)=>{var i=n(852)(n(8638),"WeakMap");e.exports=i},4963:e=>{e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length,r=0,o=[];++n<i;){var s=e[n];t(s,n,e)&&(o[r++]=s)}return o}},4636:(e,t,n)=>{var i=n(2545),r=n(5694),o=n(1469),s=n(4144),a=n(5776),l=n(6719),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),u=!n&&r(e),d=!n&&!u&&s(e),p=!n&&!u&&!d&&l(e),f=n||u||d||p,h=f?i(e.length,String):[],O=h.length;for(var m in e)!t&&!c.call(e,m)||f&&("length"==m||d&&("offset"==m||"parent"==m)||p&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||a(m,O))||h.push(m);return h}},2488:e=>{e.exports=function(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}},2908:e=>{e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}},8470:(e,t,n)=>{var i=n(7813);e.exports=function(e,t){for(var n=e.length;n--;)if(i(e[n][0],t))return n;return-1}},8866:(e,t,n)=>{var i=n(2488),r=n(1469);e.exports=function(e,t,n){var o=t(e);return r(e)?o:i(o,n(e))}},4239:(e,t,n)=>{var i=n(2705),r=n(9607),o=n(2333),s=i?i.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?r(e):o(e)}},9454:(e,t,n)=>{var i=n(4239),r=n(7005);e.exports=function(e){return r(e)&&"[object Arguments]"==i(e)}},939:(e,t,n)=>{var i=n(2492),r=n(7005);e.exports=function e(t,n,o,s,a){return t===n||(null==t||null==n||!r(t)&&!r(n)?t!=t&&n!=n:i(t,n,o,s,e,a))}},2492:(e,t,n)=>{var i=n(6384),r=n(7114),o=n(8351),s=n(6096),a=n(4160),l=n(1469),c=n(4144),u=n(6719),d="[object Arguments]",p="[object Array]",f="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,O,m,g){var y=l(e),b=l(t),v=y?p:a(e),w=b?p:a(t),$=(v=v==d?f:v)==f,_=(w=w==d?f:w)==f,x=v==w;if(x&&c(e)){if(!c(t))return!1;y=!0,$=!1}if(x&&!$)return g||(g=new i),y||u(e)?r(e,t,n,O,m,g):o(e,t,v,n,O,m,g);if(!(1&n)){var S=$&&h.call(e,"__wrapped__"),Q=_&&h.call(t,"__wrapped__");if(S||Q){var k=S?e.value():e,P=Q?t.value():t;return g||(g=new i),m(k,P,n,O,g)}}return!!x&&(g||(g=new i),s(e,t,n,O,m,g))}},8458:(e,t,n)=>{var i=n(3560),r=n(5346),o=n(3218),s=n(346),a=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||r(e))&&(i(e)?p:a).test(s(e))}},8749:(e,t,n)=>{var i=n(4239),r=n(1780),o=n(7005),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&r(e.length)&&!!s[i(e)]}},280:(e,t,n)=>{var i=n(5726),r=n(6916),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return r(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},2545:e=>{e.exports=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}},1717:e=>{e.exports=function(e){return function(t){return e(t)}}},4757:e=>{e.exports=function(e,t){return e.has(t)}},4429:(e,t,n)=>{var i=n(8638)["__core-js_shared__"];e.exports=i},7114:(e,t,n)=>{var i=n(8668),r=n(2908),o=n(4757);e.exports=function(e,t,n,s,a,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var p=l.get(e),f=l.get(t);if(p&&f)return p==t&&f==e;var h=-1,O=!0,m=2&n?new i:void 0;for(l.set(e,t),l.set(t,e);++h<u;){var g=e[h],y=t[h];if(s)var b=c?s(y,g,h,t,e,l):s(g,y,h,e,t,l);if(void 0!==b){if(b)continue;O=!1;break}if(m){if(!r(t,(function(e,t){if(!o(m,t)&&(g===e||a(g,e,n,s,l)))return m.push(t)}))){O=!1;break}}else if(g!==y&&!a(g,y,n,s,l)){O=!1;break}}return l.delete(e),l.delete(t),O}},8351:(e,t,n)=>{var i=n(2705),r=n(1149),o=n(7813),s=n(7114),a=n(8776),l=n(1814),c=i?i.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,i,c,d,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new r(e),new r(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=a;case"[object Set]":var h=1&i;if(f||(f=l),e.size!=t.size&&!h)return!1;var O=p.get(e);if(O)return O==t;i|=2,p.set(e,t);var m=s(f(e),f(t),i,c,d,p);return p.delete(e),m;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},6096:(e,t,n)=>{var i=n(8234),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,s,a){var l=1&n,c=i(e),u=c.length;if(u!=i(t).length&&!l)return!1;for(var d=u;d--;){var p=c[d];if(!(l?p in t:r.call(t,p)))return!1}var f=a.get(e),h=a.get(t);if(f&&h)return f==t&&h==e;var O=!0;a.set(e,t),a.set(t,e);for(var m=l;++d<u;){var g=e[p=c[d]],y=t[p];if(o)var b=l?o(y,g,p,t,e,a):o(g,y,p,e,t,a);if(!(void 0===b?g===y||s(g,y,n,o,a):b)){O=!1;break}m||(m="constructor"==p)}if(O&&!m){var v=e.constructor,w=t.constructor;v==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof w&&w instanceof w||(O=!1)}return a.delete(e),a.delete(t),O}},1957:(e,t,n)=>{var i="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=i},8234:(e,t,n)=>{var i=n(8866),r=n(9551),o=n(3674);e.exports=function(e){return i(e,o,r)}},5050:(e,t,n)=>{var i=n(7019);e.exports=function(e,t){var n=e.__data__;return i(t)?n["string"==typeof t?"string":"hash"]:n.map}},852:(e,t,n)=>{var i=n(8458),r=n(7801);e.exports=function(e,t){var n=r(e,t);return i(n)?n:void 0}},9607:(e,t,n)=>{var i=n(2705),r=Object.prototype,o=r.hasOwnProperty,s=r.toString,a=i?i.toStringTag:void 0;e.exports=function(e){var t=o.call(e,a),n=e[a];try{e[a]=void 0;var i=!0}catch(e){}var r=s.call(e);return i&&(t?e[a]=n:delete e[a]),r}},9551:(e,t,n)=>{var i=n(4963),r=n(479),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(e){return null==e?[]:(e=Object(e),i(s(e),(function(t){return o.call(e,t)})))}:r;e.exports=a},4160:(e,t,n)=>{var i=n(8552),r=n(7071),o=n(3818),s=n(8525),a=n(577),l=n(4239),c=n(346),u="[object Map]",d="[object Promise]",p="[object Set]",f="[object WeakMap]",h="[object DataView]",O=c(i),m=c(r),g=c(o),y=c(s),b=c(a),v=l;(i&&v(new i(new ArrayBuffer(1)))!=h||r&&v(new r)!=u||o&&v(o.resolve())!=d||s&&v(new s)!=p||a&&v(new a)!=f)&&(v=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,i=n?c(n):"";if(i)switch(i){case O:return h;case m:return u;case g:return d;case y:return p;case b:return f}return t}),e.exports=v},7801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},1789:(e,t,n)=>{var i=n(4536);e.exports=function(){this.__data__=i?i(null):{},this.size=0}},401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:(e,t,n)=>{var i=n(4536),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(i){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return r.call(t,e)?t[e]:void 0}},1327:(e,t,n)=>{var i=n(4536),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return i?void 0!==t[e]:r.call(t,e)}},1866:(e,t,n)=>{var i=n(4536);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=i&&void 0===t?"__lodash_hash_undefined__":t,this}},5776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var i=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==i||"symbol"!=i&&t.test(e))&&e>-1&&e%1==0&&e<n}},7019:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:(e,t,n)=>{var i,r=n(4429),o=(i=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";e.exports=function(e){return!!o&&o in e}},5726:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},7040:e=>{e.exports=function(){this.__data__=[],this.size=0}},4125:(e,t,n)=>{var i=n(8470),r=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=i(t,e);return!(n<0)&&(n==t.length-1?t.pop():r.call(t,n,1),--this.size,!0)}},2117:(e,t,n)=>{var i=n(8470);e.exports=function(e){var t=this.__data__,n=i(t,e);return n<0?void 0:t[n][1]}},7518:(e,t,n)=>{var i=n(8470);e.exports=function(e){return i(this.__data__,e)>-1}},4705:(e,t,n)=>{var i=n(8470);e.exports=function(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}},4785:(e,t,n)=>{var i=n(1989),r=n(8407),o=n(7071);e.exports=function(){this.size=0,this.__data__={hash:new i,map:new(o||r),string:new i}}},1285:(e,t,n)=>{var i=n(5050);e.exports=function(e){var t=i(this,e).delete(e);return this.size-=t?1:0,t}},6e3:(e,t,n)=>{var i=n(5050);e.exports=function(e){return i(this,e).get(e)}},9916:(e,t,n)=>{var i=n(5050);e.exports=function(e){return i(this,e).has(e)}},5265:(e,t,n)=>{var i=n(5050);e.exports=function(e,t){var n=i(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}},8776:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}},4536:(e,t,n)=>{var i=n(852)(Object,"create");e.exports=i},6916:(e,t,n)=>{var i=n(5569)(Object.keys,Object);e.exports=i},4e3:(e,t,n)=>{e=n.nmd(e);var i=n(1957),r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,s=o&&o.exports===r&&i.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=a},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},8638:(e,t,n)=>{var i=n(1957),r="object"==typeof self&&self&&self.Object===Object&&self,o=i||r||Function("return this")();e.exports=o},619:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2385:e=>{e.exports=function(e){return this.__data__.has(e)}},1814:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},7465:(e,t,n)=>{var i=n(8407);e.exports=function(){this.__data__=new i,this.size=0}},3779:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},7599:e=>{e.exports=function(e){return this.__data__.get(e)}},4758:e=>{e.exports=function(e){return this.__data__.has(e)}},4309:(e,t,n)=>{var i=n(8407),r=n(7071),o=n(3369);e.exports=function(e,t){var n=this.__data__;if(n instanceof i){var s=n.__data__;if(!r||s.length<199)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(e,t),this.size=n.size,this}},346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},7813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},5694:(e,t,n)=>{var i=n(9454),r=n(7005),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,l=i(function(){return arguments}())?i:function(e){return r(e)&&s.call(e,"callee")&&!a.call(e,"callee")};e.exports=l},1469:e=>{var t=Array.isArray;e.exports=t},8612:(e,t,n)=>{var i=n(3560),r=n(1780);e.exports=function(e){return null!=e&&r(e.length)&&!i(e)}},4144:(e,t,n)=>{e=n.nmd(e);var i=n(8638),r=n(5062),o=t&&!t.nodeType&&t,s=o&&e&&!e.nodeType&&e,a=s&&s.exports===o?i.Buffer:void 0,l=(a?a.isBuffer:void 0)||r;e.exports=l},8446:(e,t,n)=>{var i=n(939);e.exports=function(e,t){return i(e,t)}},3560:(e,t,n)=>{var i=n(4239),r=n(3218);e.exports=function(e){if(!r(e))return!1;var t=i(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},6719:(e,t,n)=>{var i=n(8749),r=n(1717),o=n(4e3),s=o&&o.isTypedArray,a=s?r(s):i;e.exports=a},3674:(e,t,n)=>{var i=n(4636),r=n(280),o=n(8612);e.exports=function(e){return o(e)?i(e):r(e)}},479:e=>{e.exports=function(){return[]}},5062:e=>{e.exports=function(){return!1}},9430:function(e,t){var n,i,r;i=[],void 0===(r="function"==typeof(n=function(){return function(e){function t(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function n(t){var n,i=t.exec(e.substring(O));if(i)return n=i[0],O+=n.length,n}for(var i,r,o,s,a,l=e.length,c=/^[ \t\n\r\u000c]+/,u=/^[, \t\n\r\u000c]+/,d=/^[^ \t\n\r\u000c]+/,p=/[,]+$/,f=/^\d+$/,h=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,O=0,m=[];;){if(n(u),O>=l)return m;i=n(d),r=[],","===i.slice(-1)?(i=i.replace(p,""),y()):g()}function g(){for(n(c),o="",s="in descriptor";;){if(a=e.charAt(O),"in descriptor"===s)if(t(a))o&&(r.push(o),o="",s="after descriptor");else{if(","===a)return O+=1,o&&r.push(o),void y();if("("===a)o+=a,s="in parens";else{if(""===a)return o&&r.push(o),void y();o+=a}}else if("in parens"===s)if(")"===a)o+=a,s="in descriptor";else{if(""===a)return r.push(o),void y();o+=a}else if("after descriptor"===s)if(t(a));else{if(""===a)return void y();s="in descriptor",O-=1}O+=1}}function y(){var t,n,o,s,a,l,c,u,d,p=!1,O={};for(s=0;s<r.length;s++)l=(a=r[s])[a.length-1],c=a.substring(0,a.length-1),u=parseInt(c,10),d=parseFloat(c),f.test(c)&&"w"===l?((t||n)&&(p=!0),0===u?p=!0:t=u):h.test(c)&&"x"===l?((t||n||o)&&(p=!0),d<0?p=!0:n=d):f.test(c)&&"h"===l?((o||n)&&(p=!0),0===u?p=!0:o=u):p=!0;p?console&&console.log&&console.log("Invalid srcset descriptor found in '"+e+"' at '"+a+"'."):(O.url=i,t&&(O.w=t),n&&(O.d=n),o&&(O.h=o),m.push(O))}}})?n.apply(t,i):n)||(e.exports=r)},4241:e=>{var t=String,n=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t}};e.exports=n(),e.exports.createColors=n},1353:(e,t,n)=>{"use strict";let i=n(1019);class r extends i{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}e.exports=r,r.default=r,i.registerAtRule(r)},9932:(e,t,n)=>{"use strict";let i=n(5631);class r extends i{constructor(e){super(e),this.type="comment"}}e.exports=r,r.default=r},1019:(e,t,n)=>{"use strict";let i,r,o,s,{isClean:a,my:l}=n(5513),c=n(4258),u=n(9932),d=n(5631);function p(e){return e.map((e=>(e.nodes&&(e.nodes=p(e.nodes)),delete e.source,e)))}function f(e){if(e[a]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)f(t)}class h extends d{push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}each(e){if(!this.proxyOf.nodes)return;let t,n,i=this.getIterator();for(;this.indexes[i]<this.proxyOf.nodes.length&&(t=this.indexes[i],n=e(this.proxyOf.nodes[t],t),!1!==n);)this.indexes[i]+=1;return delete this.indexes[i],n}walk(e){return this.each(((t,n)=>{let i;try{i=e(t,n)}catch(e){throw t.addToError(e)}return!1!==i&&t.walk&&(i=t.walk(e)),i}))}walkDecls(e,t){return t?e instanceof RegExp?this.walk(((n,i)=>{if("decl"===n.type&&e.test(n.prop))return t(n,i)})):this.walk(((n,i)=>{if("decl"===n.type&&n.prop===e)return t(n,i)})):(t=e,this.walk(((e,n)=>{if("decl"===e.type)return t(e,n)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((n,i)=>{if("rule"===n.type&&e.test(n.selector))return t(n,i)})):this.walk(((n,i)=>{if("rule"===n.type&&n.selector===e)return t(n,i)})):(t=e,this.walk(((e,n)=>{if("rule"===e.type)return t(e,n)})))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((n,i)=>{if("atrule"===n.type&&e.test(n.name))return t(n,i)})):this.walk(((n,i)=>{if("atrule"===n.type&&n.name===e)return t(n,i)})):(t=e,this.walk(((e,n)=>{if("atrule"===e.type)return t(e,n)})))}walkComments(e){return this.walk(((t,n)=>{if("comment"===t.type)return e(t,n)}))}append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}insertBefore(e,t){let n,i=0===(e=this.index(e))&&"prepend",r=this.normalize(t,this.proxyOf.nodes[e],i).reverse();for(let t of r)this.proxyOf.nodes.splice(e,0,t);for(let t in this.indexes)n=this.indexes[t],e<=n&&(this.indexes[t]=n+r.length);return this.markDirty(),this}insertAfter(e,t){e=this.index(e);let n,i=this.normalize(t,this.proxyOf.nodes[e]).reverse();for(let t of i)this.proxyOf.nodes.splice(e+1,0,t);for(let t in this.indexes)n=this.indexes[t],e<n&&(this.indexes[t]=n+i.length);return this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls((i=>{t.props&&!t.props.includes(i.prop)||t.fast&&!i.value.includes(t.fast)||(i.value=i.value.replace(e,n))})),this.markDirty(),this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}normalize(e,t){if("string"==typeof e)e=p(i(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new c(e)]}else if(e.selector)e=[new r(e)];else if(e.name)e=[new o(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new u(e)]}return e.map((e=>(e[l]||h.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[a]&&f(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e)))}getProxyProcessor(){return{set:(e,t,n)=>(e[t]===n||(e[t]=n,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0),get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...n)=>e[t](...n.map((e=>"function"==typeof e?(t,n)=>e(t.toProxy(),n):e))):"every"===t||"some"===t?n=>e[t](((e,...t)=>n(e.toProxy(),...t))):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map((e=>e.toProxy())):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]}}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}}h.registerParse=e=>{i=e},h.registerRule=e=>{r=e},h.registerAtRule=e=>{o=e},h.registerRoot=e=>{s=e},e.exports=h,h.default=h,h.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,o.prototype):"rule"===e.type?Object.setPrototypeOf(e,r.prototype):"decl"===e.type?Object.setPrototypeOf(e,c.prototype):"comment"===e.type?Object.setPrototypeOf(e,u.prototype):"root"===e.type&&Object.setPrototypeOf(e,s.prototype),e[l]=!0,e.nodes&&e.nodes.forEach((e=>{h.rebuild(e)}))}},2671:(e,t,n)=>{"use strict";let i=n(4241),r=n(2868);class o extends Error{constructor(e,t,n,i,r,s){super(e),this.name="CssSyntaxError",this.reason=e,r&&(this.file=r),i&&(this.source=i),s&&(this.plugin=s),void 0!==t&&void 0!==n&&("number"==typeof t?(this.line=t,this.column=n):(this.line=t.line,this.column=t.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,o)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=i.isColorSupported),r&&e&&(t=r(t));let n,o,s=t.split(/\r?\n/),a=Math.max(this.line-3,0),l=Math.min(this.line+2,s.length),c=String(l).length;if(e){let{bold:e,red:t,gray:r}=i.createColors(!0);n=n=>e(t(n)),o=e=>r(e)}else n=o=e=>e;return s.slice(a,l).map(((e,t)=>{let i=a+1+t,r=" "+(" "+i).slice(-c)+" | ";if(i===this.line){let t=o(r.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+o(r)+e+"\n "+t+n("^")}return" "+o(r)+e})).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}e.exports=o,o.default=o},4258:(e,t,n)=>{"use strict";let i=n(5631);class r extends i{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}e.exports=r,r.default=r},6461:(e,t,n)=>{"use strict";let i,r,o=n(1019);class s extends o{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new i(new r,this,e).stringify()}}s.registerLazyResult=e=>{i=e},s.registerProcessor=e=>{r=e},e.exports=s,s.default=s},250:(e,t,n)=>{"use strict";let i=n(4258),r=n(7981),o=n(9932),s=n(1353),a=n(5995),l=n(1025),c=n(1675);function u(e,t){if(Array.isArray(e))return e.map((e=>u(e)));let{inputs:n,...d}=e;if(n){t=[];for(let e of n){let n={...e,__proto__:a.prototype};n.map&&(n.map={...n.map,__proto__:r.prototype}),t.push(n)}}if(d.nodes&&(d.nodes=e.nodes.map((e=>u(e,t)))),d.source){let{inputId:e,...n}=d.source;d.source=n,null!=e&&(d.source.input=t[e])}if("root"===d.type)return new l(d);if("decl"===d.type)return new i(d);if("rule"===d.type)return new c(d);if("comment"===d.type)return new o(d);if("atrule"===d.type)return new s(d);throw new Error("Unknown node type: "+e.type)}e.exports=u,u.default=u},5995:(e,t,n)=>{"use strict";let{SourceMapConsumer:i,SourceMapGenerator:r}=n(209),{fileURLToPath:o,pathToFileURL:s}=n(7414),{resolve:a,isAbsolute:l}=n(9830),{nanoid:c}=n(2618),u=n(2868),d=n(2671),p=n(7981),f=Symbol("fromOffsetCache"),h=Boolean(i&&r),O=Boolean(a&&l);class m{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!O||/^\w+:\/\//.test(t.from)||l(t.from)?this.file=t.from:this.file=a(t.from)),O&&h){let e=new p(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+c(6)+">"),this.map&&(this.map.file=this.from)}fromOffset(e){let t,n;if(this[f])n=this[f];else{let e=this.css.split("\n");n=new Array(e.length);let t=0;for(let i=0,r=e.length;i<r;i++)n[i]=t,t+=e[i].length+1;this[f]=n}t=n[n.length-1];let i=0;if(e>=t)i=n.length-1;else{let t,r=n.length-2;for(;i<r;)if(t=i+(r-i>>1),e<n[t])r=t-1;else{if(!(e>=n[t+1])){i=t;break}i=t+1}}return{line:i+1,col:e-n[i]+1}}error(e,t,n,i={}){let r,o,a;if(t&&"object"==typeof t){let e=t,i=n;if("number"==typeof t.offset){let i=this.fromOffset(e.offset);t=i.line,n=i.col}else t=e.line,n=e.column;if("number"==typeof i.offset){let e=this.fromOffset(i.offset);o=e.line,a=e.col}else o=i.line,a=i.column}else if(!n){let e=this.fromOffset(t);t=e.line,n=e.col}let l=this.origin(t,n,o,a);return r=l?new d(e,void 0===l.endLine?l.line:{line:l.line,column:l.column},void 0===l.endLine?l.column:{line:l.endLine,column:l.endColumn},l.source,l.file,i.plugin):new d(e,void 0===o?t:{line:t,column:n},void 0===o?n:{line:o,column:a},this.css,this.file,i.plugin),r.input={line:t,column:n,endLine:o,endColumn:a,source:this.css},this.file&&(s&&(r.input.url=s(this.file).toString()),r.input.file=this.file),r}origin(e,t,n,i){if(!this.map)return!1;let r,a,c=this.map.consumer(),u=c.originalPositionFor({line:e,column:t});if(!u.source)return!1;"number"==typeof n&&(r=c.originalPositionFor({line:n,column:i})),a=l(u.source)?s(u.source):new URL(u.source,this.map.consumer().sourceRoot||s(this.map.mapFile));let d={url:a.toString(),line:u.line,column:u.column,endLine:r&&r.line,endColumn:r&&r.column};if("file:"===a.protocol){if(!o)throw new Error("file: protocol is not available in this PostCSS build");d.file=o(a)}let p=c.sourceContentFor(u.source);return p&&(d.source=p),d}mapResolve(e){return/^\w+:\/\//.test(e)?e:a(this.map.consumer().sourceRoot||this.map.root||".",e)}get from(){return this.file||this.id}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}}e.exports=m,m.default=m,u&&u.registerInput&&u.registerInput(m)},1939:(e,t,n)=>{"use strict";let{isClean:i,my:r}=n(5513),o=n(8505),s=n(7088),a=n(1019),l=n(6461),c=(n(2448),n(3632)),u=n(6939),d=n(1025);const p={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},f={postcssPlugin:!0,prepare:!0,Once:!0,Document:!0,Root:!0,Declaration:!0,Rule:!0,AtRule:!0,Comment:!0,DeclarationExit:!0,RuleExit:!0,AtRuleExit:!0,CommentExit:!0,RootExit:!0,DocumentExit:!0,OnceExit:!0},h={postcssPlugin:!0,prepare:!0,Once:!0};function O(e){return"object"==typeof e&&"function"==typeof e.then}function m(e){let t=!1,n=p[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,0,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,0,n+"Exit"]:[n,n+"Exit"]}function g(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:m(e),{node:e,events:t,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function y(e){return e[i]=!1,e.nodes&&e.nodes.forEach((e=>y(e))),e}let b={};class v{constructor(e,t,n){let i;if(this.stringified=!1,this.processed=!1,"object"!=typeof t||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof v||t instanceof c)i=y(t.root),t.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{let e=u;n.syntax&&(e=n.syntax.parse),n.parser&&(e=n.parser),e.parse&&(e=e.parse);try{i=e(t,n)}catch(e){this.processed=!0,this.error=e}i&&!i[r]&&a.rebuild(i)}else i=y(t);this.result=new c(e,i,n),this.helpers={...b,result:this.result,postcss:b},this.plugins=this.processor.plugins.map((e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e))}get[Symbol.toStringTag](){return"LazyResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.stringify().css}get content(){return this.stringify().content}get map(){return this.stringify().map}get root(){return this.sync().root}get messages(){return this.sync().messages}warnings(){return this.sync().warnings()}toString(){return this.css}then(e,t){return this.async().then(e,t)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){if(O(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[i];)e[i]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=s;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=new o(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}walkSync(e){e[i]=!0;let t=m(e);for(let n of t)if(0===n)e.nodes&&e.each((e=>{e[i]||this.walkSync(e)}));else{let t=this.listeners[n];if(t&&this.visitSync(t,e.toProxy()))return}}visitSync(e,t){for(let[n,i]of e){let e;this.result.lastPlugin=n;try{e=i(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(O(e))throw this.getAsyncError()}}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map((t=>e.Once(t,this.helpers)));return O(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?n.postcssVersion:(e.plugin=n.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(O(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[i];){e[i]=!0;let t=[g(e)];for(;t.length>0;){let e=this.visitTick(t);if(O(e))try{await e}catch(e){let n=t[t.length-1].node;throw this.handleError(e,n)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map((e=>n(e,this.helpers)));await Promise.all(t)}else await n(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if("object"==typeof t)for(let n in t){if(!f[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!h[n])if("object"==typeof t[n])for(let i in t[n])e(t,"*"===i?n:n+"-"+i.toLowerCase(),t[n][i]);else"function"==typeof t[n]&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}visitTick(e){let t=e[e.length-1],{node:n,visitors:r}=t;if("root"!==n.type&&"document"!==n.type&&!n.parent)return void e.pop();if(r.length>0&&t.visitorIndex<r.length){let[e,i]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return i(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(0!==t.iterator){let r,o=t.iterator;for(;r=n.nodes[n.indexes[o]];)if(n.indexes[o]+=1,!r[i])return r[i]=!0,void e.push(g(r));t.iterator=0,delete n.indexes[o]}let o=t.events;for(;t.eventIndex<o.length;){let e=o[t.eventIndex];if(t.eventIndex+=1,0===e)return void(n.nodes&&n.nodes.length&&(n[i]=!0,t.iterator=n.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}}v.registerPostcss=e=>{b=e},e.exports=v,v.default=v,d.registerLazyResult(v),l.registerLazyResult(v)},4715:e=>{"use strict";let t={split(e,t,n){let i=[],r="",o=!1,s=0,a=!1,l="",c=!1;for(let n of e)c?c=!1:"\\"===n?c=!0:a?n===l&&(a=!1):'"'===n||"'"===n?(a=!0,l=n):"("===n?s+=1:")"===n?s>0&&(s-=1):0===s&&t.includes(n)&&(o=!0),o?(""!==r&&i.push(r.trim()),r="",o=!1):r+=n;return(n||""!==r)&&i.push(r.trim()),i},space:e=>t.split(e,[" ","\n","\t"]),comma:e=>t.split(e,[","],!0)};e.exports=t,t.default=t},8505:(e,t,n)=>{"use strict";let{SourceMapConsumer:i,SourceMapGenerator:r}=n(209),{dirname:o,resolve:s,relative:a,sep:l}=n(9830),{pathToFileURL:c}=n(7414),u=n(5995),d=Boolean(i&&r),p=Boolean(o&&s&&a&&l);e.exports=class{constructor(e,t,n,i){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=i}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}}));else{let e=new u(this.css,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((e=>e.inline)))}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((e=>e.withContent()))}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""))}setSourcesContent(){let e={};if(this.root)this.root.walk((t=>{if(t.source){let n=t.source.input.from;n&&!e[n]&&(e[n]=!0,this.map.setSourceContent(this.toUrl(this.path(n)),t.source.input.css))}}));else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}applyPrevMaps(){for(let e of this.previous()){let t,n=this.toUrl(this.path(e.file)),r=e.root||o(e.file);!1===this.mapOpts.sourcesContent?(t=new i(e.text),t.sourcesContent&&(t.sourcesContent=t.sourcesContent.map((()=>null)))):t=e.consumer(),this.map.applySourceMap(t,n,this.toUrl(this.path(r)))}}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((e=>e.annotation)))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=r.fromSourceMap(e)}else this.map=new r({file:this.outputFile()}),this.map.addMapping({source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>",generated:{line:1,column:0},original:{line:1,column:0}});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}path(e){if(0===e.indexOf("<"))return e;if(/^\w+:\/\//.test(e))return e;if(this.mapOpts.absolute)return e;let t=this.opts.to?o(this.opts.to):".";return"string"==typeof this.mapOpts.annotation&&(t=o(s(t,this.mapOpts.annotation))),e=a(t,e)}toUrl(e){return"\\"===l&&(e=e.replace(/\\/g,"/")),encodeURI(e).replace(/[#?]/g,encodeURIComponent)}sourcePath(e){if(this.mapOpts.from)return this.toUrl(this.mapOpts.from);if(this.mapOpts.absolute){if(c)return c(e.source.input.from).toString();throw new Error("`map.absolute` option is not available in this PostCSS build")}return this.toUrl(this.path(e.source.input.from))}generateString(){this.css="",this.map=new r({file:this.outputFile()});let e,t,n=1,i=1,o="<no source>",s={source:"",generated:{line:0,column:0},original:{line:0,column:0}};this.stringify(this.root,((r,a,l)=>{if(this.css+=r,a&&"end"!==l&&(s.generated.line=n,s.generated.column=i-1,a.source&&a.source.start?(s.source=this.sourcePath(a),s.original.line=a.source.start.line,s.original.column=a.source.start.column-1,this.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,this.map.addMapping(s))),e=r.match(/\n/g),e?(n+=e.length,t=r.lastIndexOf("\n"),i=r.length-t):i+=r.length,a&&"start"!==l){let e=a.parent||{raws:{}};("decl"!==a.type||a!==e.last||e.raws.semicolon)&&(a.source&&a.source.end?(s.source=this.sourcePath(a),s.original.line=a.source.end.line,s.original.column=a.source.end.column-1,s.generated.line=n,s.generated.column=i-2,this.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,this.map.addMapping(s)))}}))}generate(){if(this.clearAnnotation(),p&&d&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,(t=>{e+=t})),[e]}}}},7647:(e,t,n)=>{"use strict";let i=n(8505),r=n(7088),o=(n(2448),n(6939));const s=n(3632);class a{constructor(e,t,n){let o;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let a=r;this.result=new s(this._processor,o,this._opts),this.result.css=t;let l=this;Object.defineProperty(this.result,"root",{get:()=>l.root});let c=new i(a,o,this._opts,t);if(c.isMap()){let[e,t]=c.generate();e&&(this.result.css=e),t&&(this.result.map=t)}}get[Symbol.toStringTag](){return"NoWorkResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.result.css}get content(){return this.result.css}get map(){return this.result.map}get root(){if(this._root)return this._root;let e,t=o;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get messages(){return[]}warnings(){return[]}toString(){return this._css}then(e,t){return this.async().then(e,t)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}sync(){if(this.error)throw this.error;return this.result}}e.exports=a,a.default=a},5631:(e,t,n)=>{"use strict";let{isClean:i,my:r}=n(5513),o=n(2671),s=n(1062),a=n(7088);function l(e,t){let n=new e.constructor;for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;if("proxyCache"===i)continue;let r=e[i],o=typeof r;"parent"===i&&"object"===o?t&&(n[i]=t):"source"===i?n[i]=r:Array.isArray(r)?n[i]=r.map((e=>l(e,n))):("object"===o&&null!==r&&(r=l(r)),n[i]=r)}return n}class c{constructor(e={}){this.raws={},this[i]=!1,this[r]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let n of e[t])"function"==typeof n.clone?this.append(n.clone()):this.append(n)}else this[t]=e[t]}error(e,t={}){if(this.source){let{start:n,end:i}=this.rangeBy(t);return this.source.input.error(e,{line:n.line,column:n.column},{line:i.line,column:i.column},t)}return new o(e)}warn(e,t,n){let i={node:this};for(let e in n)i[e]=n[e];return e.warn(t,i)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(e=a){e.stringify&&(e=e.stringify);let t="";return e(this,(e=>{t+=e})),t}assign(e={}){for(let t in e)this[t]=e[t];return this}clone(e={}){let t=l(this);for(let n in e)t[n]=e[n];return t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let i of e)i===this?n=!0:n?(this.parent.insertAfter(t,i),t=i):this.parent.insertBefore(t,i);n||this.remove()}return this}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}before(e){return this.parent.insertBefore(this,e),this}after(e){return this.parent.insertAfter(this,e),this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}raw(e,t){return(new s).raw(this,e,t)}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}toJSON(e,t){let n={},i=null==t;t=t||new Map;let r=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let i=this[e];if(Array.isArray(i))n[e]=i.map((e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof i&&i.toJSON)n[e]=i.toJSON(null,t);else if("source"===e){let o=t.get(i.input);null==o&&(o=r,t.set(i.input,r),r++),n[e]={inputId:o,start:i.start,end:i.end}}else n[e]=i}return i&&(n.inputs=[...t.keys()].map((e=>e.toJSON()))),n}positionInside(e){let t=this.toString(),n=this.source.start.column,i=this.source.start.line;for(let r=0;r<e;r++)"\n"===t[r]?(n=1,i+=1):n+=1;return{line:i,column:n}}positionBy(e){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let n=this.toString().indexOf(e.word);-1!==n&&(t=this.positionInside(n))}return t}rangeBy(e){let t={line:this.source.start.line,column:this.source.start.column},n=this.source.end?{line:this.source.end.line,column:this.source.end.column+1}:{line:t.line,column:t.column+1};if(e.word){let i=this.toString().indexOf(e.word);-1!==i&&(t=this.positionInside(i),n=this.positionInside(i+e.word.length))}else e.start?t={line:e.start.line,column:e.start.column}:e.index&&(t=this.positionInside(e.index)),e.end?n={line:e.end.line,column:e.end.column}:e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={line:t.line,column:t.column+1}),{start:t,end:n}}getProxyProcessor(){return{set:(e,t,n)=>(e[t]===n||(e[t]=n,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0),get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t]}}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}markDirty(){if(this[i]){this[i]=!1;let e=this;for(;e=e.parent;)e[i]=!1}}get proxyOf(){return this}}e.exports=c,c.default=c},6939:(e,t,n)=>{"use strict";let i=n(1019),r=n(8867),o=n(5995);function s(e,t){let n=new o(e,t),i=new r(n);try{i.parse()}catch(e){throw e}return i.root}e.exports=s,s.default=s,i.registerParse(s)},8867:(e,t,n)=>{"use strict";let i=n(4258),r=n(3852),o=n(9932),s=n(1353),a=n(1025),l=n(1675);const c={empty:!0,space:!0};e.exports=class{constructor(e){this.input=e,this.root=new a,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{offset:0,line:1,column:1}}}createTokenizer(){this.tokenizer=r(this.input)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}comment(e){let t=new o;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]);let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{let e=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}emptyRule(e){let t=new l;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}other(e){let t=!1,n=null,i=!1,r=null,o=[],s=e[1].startsWith("--"),a=[],l=e;for(;l;){if(n=l[0],a.push(l),"("===n||"["===n)r||(r=l),o.push("("===n?")":"]");else if(s&&i&&"{"===n)r||(r=l),o.push("}");else if(0===o.length){if(";"===n){if(i)return void this.decl(a,s);break}if("{"===n)return void this.rule(a);if("}"===n){this.tokenizer.back(a.pop()),t=!0;break}":"===n&&(i=!0)}else n===o[o.length-1]&&(o.pop(),0===o.length&&(r=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(r),t&&i){if(!s)for(;a.length&&(l=a[a.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)}rule(e){e.pop();let t=new l;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}decl(e,t){let n=new i;this.init(n,e[0][2]);let r,o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(o[3]||o[2]||function(e){for(let t=e.length-1;t>=0;t--){let n=e[t],i=n[3]||n[2];if(i)return i}}(e));"word"!==e[0][0];)1===e.length&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;n.prop+=e.shift()[1]}for(n.raws.between="";e.length;){if(r=e.shift(),":"===r[0]){n.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),n.raws.between+=r[1]}"_"!==n.prop[0]&&"*"!==n.prop[0]||(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let s,a=[];for(;e.length&&(s=e[0][0],"space"===s||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(r=e[t],"!important"===r[1].toLowerCase()){n.important=!0;let i=this.stringFrom(e,t);i=this.spacesFromEnd(e)+i," !important"!==i&&(n.raws.important=i);break}if("important"===r[1].toLowerCase()){let i=e.slice(0),r="";for(let e=t;e>0;e--){let t=i[e][0];if(0===r.trim().indexOf("!")&&"space"!==t)break;r=i.pop()[1]+r}0===r.trim().indexOf("!")&&(n.important=!0,n.raws.important=r,e=i)}if("space"!==r[0]&&"comment"!==r[0])break}e.some((e=>"space"!==e[0]&&"comment"!==e[0]))&&(n.raws.between+=a.map((e=>e[1])).join(""),a=[]),this.raw(n,"value",a.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}atrule(e){let t,n,i,r=new s;r.name=e[1].slice(1),""===r.name&&this.unnamedAtrule(r,e),this.init(r,e[2]);let o=!1,a=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){r.source.end=this.getPosition(e[2]),this.semicolon=!0;break}if("{"===t){a=!0;break}if("}"===t){if(l.length>0){for(i=l.length-1,n=l[i];n&&"space"===n[0];)n=l[--i];n&&(r.source.end=this.getPosition(n[3]||n[2]))}this.end(e);break}l.push(e)}else l.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(r.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(r,"params",l),o&&(e=l[l.length-1],r.source.end=this.getPosition(e[3]||e[2]),this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),a&&(r.nodes=[],this.current=r)}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{offset:e,line:t.line,column:t.col}}init(e,t){this.current.push(e),e.source={start:this.getPosition(t),input:this.input},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}raw(e,t,n,i){let r,o,s,a,l=n.length,u="",d=!0;for(let e=0;e<l;e+=1)r=n[e],o=r[0],"space"!==o||e!==l-1||i?"comment"===o?(a=n[e-1]?n[e-1][0]:"empty",s=n[e+1]?n[e+1][0]:"empty",c[a]||c[s]||","===u.slice(-1)?d=!1:u+=r[1]):u+=r[1]:d=!1;if(!d){let i=n.reduce(((e,t)=>e+t[1]),"");e.raws[t]={value:u,raw:i}}e[t]=u}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let i=t;i<e.length;i++)n+=e[i][1];return e.splice(t,e.length-t),n}colon(e){let t,n,i,r=0;for(let[o,s]of e.entries()){if(t=s,n=t[0],"("===n&&(r+=1),")"===n&&(r-=1),0===r&&":"===n){if(i){if("word"===i[0]&&"progid"===i[1])continue;return o}this.doubleColon(t)}i=t}return!1}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}precheckMissedSemicolon(){}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let n,i=0;for(let r=t-1;r>=0&&(n=e[r],"space"===n[0]||(i+=1,2!==i));r--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}}},20:(e,t,n)=>{"use strict";let i=n(2671),r=n(4258),o=n(1939),s=n(1019),a=n(1723),l=n(7088),c=n(250),u=n(6461),d=n(1728),p=n(9932),f=n(1353),h=n(3632),O=n(5995),m=n(6939),g=n(4715),y=n(1675),b=n(1025),v=n(5631);function w(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new a(e)}w.plugin=function(e,t){let n,i=!1;function r(...n){console&&console.warn&&!i&&(i=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let r=t(...n);return r.postcssPlugin=e,r.postcssVersion=(new a).version,r}return Object.defineProperty(r,"postcss",{get:()=>(n||(n=r()),n)}),r.process=function(e,t,n){return w([r(n)]).process(e,t)},r},w.stringify=l,w.parse=m,w.fromJSON=c,w.list=g,w.comment=e=>new p(e),w.atRule=e=>new f(e),w.decl=e=>new r(e),w.rule=e=>new y(e),w.root=e=>new b(e),w.document=e=>new u(e),w.CssSyntaxError=i,w.Declaration=r,w.Container=s,w.Processor=a,w.Document=u,w.Comment=p,w.Warning=d,w.AtRule=f,w.Result=h,w.Input=O,w.Rule=y,w.Root=b,w.Node=v,o.registerPostcss(w),e.exports=w,w.default=w},7981:(e,t,n)=>{"use strict";let{SourceMapConsumer:i,SourceMapGenerator:r}=n(209),{existsSync:o,readFileSync:s}=n(4777),{dirname:a,join:l}=n(9830);class c{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,i=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=a(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new i(this.text)),this.consumerCache}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(e,t){return!!e&&e.substr(0,t.length)===t}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let n=e.lastIndexOf(t.pop()),i=e.indexOf("*/",n);n>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,i)))}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t;let n=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+n)}loadFile(e){if(this.root=a(e),o(e))return this.mapFile=e,s(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof i)return r.fromSourceMap(t).toString();if(t instanceof r)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let n=t(e);if(n){let e=this.loadFile(n);if(!e)throw new Error("Unable to load previous source map: "+n.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=l(a(e),t)),this.loadFile(t)}}}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}}e.exports=c,c.default=c},1723:(e,t,n)=>{"use strict";let i=n(7647),r=n(1939),o=n(6461),s=n(1025);class a{constructor(e=[]){this.version="8.4.16",this.plugins=this.normalize(e)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}process(e,t={}){return 0===this.plugins.length&&void 0===t.parser&&void 0===t.stringifier&&void 0===t.syntax?new i(this,e,t):new r(this,e,t)}normalize(e){let t=[];for(let n of e)if(!0===n.postcss?n=n():n.postcss&&(n=n.postcss),"object"==typeof n&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if("object"==typeof n&&n.postcssPlugin)t.push(n);else if("function"==typeof n)t.push(n);else{if("object"!=typeof n||!n.parse&&!n.stringify)throw new Error(n+" is not a PostCSS plugin")}return t}}e.exports=a,a.default=a,s.registerProcessor(a),o.registerProcessor(a)},3632:(e,t,n)=>{"use strict";let i=n(1728);class r{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let n=new i(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter((e=>"warning"===e.type))}get content(){return this.css}}e.exports=r,r.default=r},1025:(e,t,n)=>{"use strict";let i,r,o=n(1019);class s extends o{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}removeChild(e,t){let n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}normalize(e,t,n){let i=super.normalize(e);if(t)if("prepend"===n)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of i)e.raws.before=t.raws.before;return i}toResult(e={}){return new i(new r,this,e).stringify()}}s.registerLazyResult=e=>{i=e},s.registerProcessor=e=>{r=e},e.exports=s,s.default=s,o.registerRoot(s)},1675:(e,t,n)=>{"use strict";let i=n(1019),r=n(4715);class o extends i{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return r.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}e.exports=o,o.default=o,i.registerRule(o)},1062:e=>{"use strict";const t={colon:": ",indent:" ",beforeDecl:"\n",beforeRule:"\n",beforeOpen:" ",beforeClose:"\n",beforeComment:"\n",after:"\n",emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};class n{constructor(e){this.builder=e}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}document(e){this.body(e)}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}comment(e){let t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)}decl(e,t){let n=this.raw(e,"between","colon"),i=e.prop+n+this.rawValue(e,"value");e.important&&(i+=e.raws.important||" !important"),t&&(i+=";"),this.builder(i,e)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}atrule(e,t){let n="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?n+=e.raws.afterName:i&&(n+=" "),e.nodes)this.block(e,n+i);else{let r=(e.raws.between||"")+(t?";":"");this.builder(n+i+r,e)}}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let n=this.raw(e,"semicolon");for(let i=0;i<e.nodes.length;i++){let r=e.nodes[i],o=this.raw(r,"before");o&&this.builder(o),this.stringify(r,t!==i||n)}}block(e,t){let n,i=this.raw(e,"between","beforeOpen");this.builder(t+i+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")}raw(e,n,i){let r;if(i||(i=n),n&&(r=e.raws[n],void 0!==r))return r;let o=e.parent;if("before"===i){if(!o||"root"===o.type&&o.first===e)return"";if(o&&"document"===o.type)return""}if(!o)return t[i];let s=e.root();if(s.rawCache||(s.rawCache={}),void 0!==s.rawCache[i])return s.rawCache[i];if("before"===i||"after"===i)return this.beforeAfter(e,i);{let t="raw"+((a=i)[0].toUpperCase()+a.slice(1));this[t]?r=this[t](s,e):s.walk((e=>{if(r=e.raws[n],void 0!==r)return!1}))}var a;return void 0===r&&(r=t[i]),s.rawCache[i]=r,r}rawSemicolon(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1})),t}rawEmptyBody(e){let t;return e.walk((e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1})),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk((n=>{let i=n.parent;if(i&&i!==e&&i.parent&&i.parent===e&&void 0!==n.raws.before){let e=n.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}})),t}rawBeforeComment(e,t){let n;return e.walkComments((e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,t){let n;return e.walkDecls((e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeRule(e){let t;return e.walk((n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return t=n.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeClose(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeOpen(e){let t;return e.walk((e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1})),t}rawColon(e){let t;return e.walkDecls((e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t}beforeAfter(e,t){let n;n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let i=e.parent,r=0;for(;i&&"root"!==i.type;)r+=1,i=i.parent;if(n.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<r;e++)n+=t}return n}rawValue(e,t){let n=e[t],i=e.raws[t];return i&&i.value===n?i.raw:n}}e.exports=n,n.default=n},7088:(e,t,n)=>{"use strict";let i=n(1062);function r(e,t){new i(t).stringify(e)}e.exports=r,r.default=r},5513:e=>{"use strict";e.exports.isClean=Symbol("isClean"),e.exports.my=Symbol("my")},3852:e=>{"use strict";const t="'".charCodeAt(0),n='"'.charCodeAt(0),i="\\".charCodeAt(0),r="/".charCodeAt(0),o="\n".charCodeAt(0),s=" ".charCodeAt(0),a="\f".charCodeAt(0),l="\t".charCodeAt(0),c="\r".charCodeAt(0),u="[".charCodeAt(0),d="]".charCodeAt(0),p="(".charCodeAt(0),f=")".charCodeAt(0),h="{".charCodeAt(0),O="}".charCodeAt(0),m=";".charCodeAt(0),g="*".charCodeAt(0),y=":".charCodeAt(0),b="@".charCodeAt(0),v=/[\t\n\f\r "#'()/;[\\\]{}]/g,w=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,$=/.[\n"'(/\\]/,_=/[\da-f]/i;e.exports=function(e,x={}){let S,Q,k,P,T,q,R,E,j,N,C=e.css.valueOf(),A=x.ignoreErrors,z=C.length,D=0,W=[],V=[];function M(t){throw e.error("Unclosed "+t,D)}return{back:function(e){V.push(e)},nextToken:function(e){if(V.length)return V.pop();if(D>=z)return;let x=!!e&&e.ignoreUnclosed;switch(S=C.charCodeAt(D),S){case o:case s:case l:case c:case a:Q=D;do{Q+=1,S=C.charCodeAt(Q)}while(S===s||S===o||S===l||S===c||S===a);N=["space",C.slice(D,Q)],D=Q-1;break;case u:case d:case h:case O:case y:case m:case f:{let e=String.fromCharCode(S);N=[e,e,D];break}case p:if(E=W.length?W.pop()[1]:"",j=C.charCodeAt(D+1),"url"===E&&j!==t&&j!==n&&j!==s&&j!==o&&j!==l&&j!==a&&j!==c){Q=D;do{if(q=!1,Q=C.indexOf(")",Q+1),-1===Q){if(A||x){Q=D;break}M("bracket")}for(R=Q;C.charCodeAt(R-1)===i;)R-=1,q=!q}while(q);N=["brackets",C.slice(D,Q+1),D,Q],D=Q}else Q=C.indexOf(")",D+1),P=C.slice(D,Q+1),-1===Q||$.test(P)?N=["(","(",D]:(N=["brackets",P,D,Q],D=Q);break;case t:case n:k=S===t?"'":'"',Q=D;do{if(q=!1,Q=C.indexOf(k,Q+1),-1===Q){if(A||x){Q=D+1;break}M("string")}for(R=Q;C.charCodeAt(R-1)===i;)R-=1,q=!q}while(q);N=["string",C.slice(D,Q+1),D,Q],D=Q;break;case b:v.lastIndex=D+1,v.test(C),Q=0===v.lastIndex?C.length-1:v.lastIndex-2,N=["at-word",C.slice(D,Q+1),D,Q],D=Q;break;case i:for(Q=D,T=!0;C.charCodeAt(Q+1)===i;)Q+=1,T=!T;if(S=C.charCodeAt(Q+1),T&&S!==r&&S!==s&&S!==o&&S!==l&&S!==c&&S!==a&&(Q+=1,_.test(C.charAt(Q)))){for(;_.test(C.charAt(Q+1));)Q+=1;C.charCodeAt(Q+1)===s&&(Q+=1)}N=["word",C.slice(D,Q+1),D,Q],D=Q;break;default:S===r&&C.charCodeAt(D+1)===g?(Q=C.indexOf("*/",D+2)+1,0===Q&&(A||x?Q=C.length:M("comment")),N=["comment",C.slice(D,Q+1),D,Q],D=Q):(w.lastIndex=D+1,w.test(C),Q=0===w.lastIndex?C.length-1:w.lastIndex-2,N=["word",C.slice(D,Q+1),D,Q],W.push(N),D=Q)}return D++,N},endOfFile:function(){return 0===V.length&&D>=z},position:function(){return D}}}},2448:e=>{"use strict";let t={};e.exports=function(e){t[e]||(t[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))}},1728:e=>{"use strict";class t{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}e.exports=t,t.default=t},2703:(e,t,n)=>{"use strict";var i=n(414);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,s){if(s!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},5697:(e,t,n)=>{e.exports=n(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6095:function(e){var t;"undefined"!=typeof self&&self,t=function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=109)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),r=n(18),o=n(19),s=n(45),a=n(46),l=n(47),c=n(48),u=n(49),d=n(12),p=n(32),f=n(33),h=n(31),O=n(1),m={Scope:O.Scope,create:O.create,find:O.find,query:O.query,register:O.register,Container:i.default,Format:r.default,Leaf:o.default,Embed:c.default,Scroll:s.default,Block:l.default,Inline:a.default,Text:u.default,Attributor:{Attribute:d.default,Class:p.default,Style:f.default,Store:h.default}};t.default=m},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t){var n=this;return t="[Parchment] "+t,(n=e.call(this,t)||this).message=t,n.name=n.constructor.name,n}return r(t,e),t}(Error);t.ParchmentError=o;var s,a={},l={},c={},u={};function d(e,t){var n;if(void 0===t&&(t=s.ANY),"string"==typeof e)n=u[e]||a[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)n=u.text;else if("number"==typeof e)e&s.LEVEL&s.BLOCK?n=u.block:e&s.LEVEL&s.INLINE&&(n=u.inline);else if(e instanceof HTMLElement){var i=(e.getAttribute("class")||"").split(/\s+/);for(var r in i)if(n=l[i[r]])break;n=n||c[e.tagName]}return null==n?null:t&s.LEVEL&n.scope&&t&s.TYPE&n.scope?n:null}t.DATA_KEY="__blot",function(e){e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY"}(s=t.Scope||(t.Scope={})),t.create=function(e,t){var n=d(e);if(null==n)throw new o("Unable to create "+e+" blot");var i=n,r=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:i.create(t);return new i(r,t)},t.find=function e(n,i){return void 0===i&&(i=!1),null==n?null:null!=n[t.DATA_KEY]?n[t.DATA_KEY].blot:i?e(n.parentNode,i):null},t.query=d,t.register=function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(t.length>1)return t.map((function(t){return e(t)}));var i=t[0];if("string"!=typeof i.blotName&&"string"!=typeof i.attrName)throw new o("Invalid definition");if("abstract"===i.blotName)throw new o("Cannot register abstract class");if(u[i.blotName||i.attrName]=i,"string"==typeof i.keyName)a[i.keyName]=i;else if(null!=i.className&&(l[i.className]=i),null!=i.tagName){Array.isArray(i.tagName)?i.tagName=i.tagName.map((function(e){return e.toUpperCase()})):i.tagName=i.tagName.toUpperCase();var r=Array.isArray(i.tagName)?i.tagName:[i.tagName];r.forEach((function(e){null!=c[e]&&null!=i.className||(c[e]=i)}))}return i}},function(e,t,n){var i=n(51),r=n(11),o=n(3),s=n(20),a=String.fromCharCode(0),l=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};l.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},l.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},l.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},l.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=o(!0,{},e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(t-=1,"object"!=typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(r(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},l.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},l.prototype.filter=function(e){return this.ops.filter(e)},l.prototype.forEach=function(e){this.ops.forEach(e)},l.prototype.map=function(e){return this.ops.map(e)},l.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(i){(e(i)?t:n).push(i)})),[t,n]},l.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},l.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+s.length(t):t.delete?e-t.delete:e}),0)},l.prototype.length=function(){return this.reduce((function(e,t){return e+s.length(t)}),0)},l.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var n=[],i=s.iterator(this.ops),r=0;r<t&&i.hasNext();){var o;r<e?o=i.next(e-r):(o=i.next(t-r),n.push(o)),r+=s.length(o)}return new l(n)},l.prototype.compose=function(e){var t=s.iterator(this.ops),n=s.iterator(e.ops),i=[],o=n.peek();if(null!=o&&"number"==typeof o.retain&&null==o.attributes){for(var a=o.retain;"insert"===t.peekType()&&t.peekLength()<=a;)a-=t.peekLength(),i.push(t.next());o.retain-a>0&&n.next(o.retain-a)}for(var c=new l(i);t.hasNext()||n.hasNext();)if("insert"===n.peekType())c.push(n.next());else if("delete"===t.peekType())c.push(t.next());else{var u=Math.min(t.peekLength(),n.peekLength()),d=t.next(u),p=n.next(u);if("number"==typeof p.retain){var f={};"number"==typeof d.retain?f.retain=u:f.insert=d.insert;var h=s.attributes.compose(d.attributes,p.attributes,"number"==typeof d.retain);if(h&&(f.attributes=h),c.push(f),!n.hasNext()&&r(c.ops[c.ops.length-1],f)){var O=new l(t.rest());return c.concat(O).chop()}}else"number"==typeof p.delete&&"number"==typeof d.retain&&c.push(p)}return c.chop()},l.prototype.concat=function(e){var t=new l(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},l.prototype.diff=function(e,t){if(this.ops===e.ops)return new l;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:a;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),o=new l,c=i(n[0],n[1],t),u=s.iterator(this.ops),d=s.iterator(e.ops);return c.forEach((function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case i.INSERT:n=Math.min(d.peekLength(),t),o.push(d.next(n));break;case i.DELETE:n=Math.min(t,u.peekLength()),u.next(n),o.delete(n);break;case i.EQUAL:n=Math.min(u.peekLength(),d.peekLength(),t);var a=u.next(n),l=d.next(n);r(a.insert,l.insert)?o.retain(n,s.attributes.diff(a.attributes,l.attributes)):o.push(l).delete(n)}t-=n}})),o.chop()},l.prototype.eachLine=function(e,t){t=t||"\n";for(var n=s.iterator(this.ops),i=new l,r=0;n.hasNext();){if("insert"!==n.peekType())return;var o=n.peek(),a=s.length(o)-n.peekLength(),c="string"==typeof o.insert?o.insert.indexOf(t,a)-a:-1;if(c<0)i.push(n.next());else if(c>0)i.push(n.next(c));else{if(!1===e(i,n.next(1).attributes||{},r))return;r+=1,i=new l}}i.length()>0&&e(i,{},r)},l.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var n=s.iterator(this.ops),i=s.iterator(e.ops),r=new l;n.hasNext()||i.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===i.peekType())if("insert"===i.peekType())r.push(i.next());else{var o=Math.min(n.peekLength(),i.peekLength()),a=n.next(o),c=i.next(o);if(a.delete)continue;c.delete?r.push(c):r.retain(o,s.attributes.transform(a.attributes,c.attributes,t))}else r.retain(s.length(n.next()));return r.chop()},l.prototype.transformPosition=function(e,t){t=!!t;for(var n=s.iterator(this.ops),i=0;n.hasNext()&&i<=e;){var r=n.peekLength(),o=n.peekType();n.next(),"delete"!==o?("insert"===o&&(i<e||!t)&&(e+=r),i+=r):e-=Math.min(r,e-i)}return e},e.exports=l},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,i=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===i.call(e)},a=function(e){if(!e||"[object Object]"!==i.call(e))return!1;var t,r=n.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!o)return!1;for(t in e);return void 0===t||n.call(e,t)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(o)return o(e,t).value}return e[t]};e.exports=function e(){var t,n,i,r,o,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)i=c(d,n),d!==(r=c(t,n))&&(h&&r&&(a(r)||(o=s(r)))?(o?(o=!1,u=i&&s(i)?i:[]):u=i&&a(i)?i:{},l(d,{name:n,newValue:e(h,u,r)})):void 0!==r&&l(d,{name:n,newValue:r}));return d}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},o=d(n(3)),s=d(n(2)),a=d(n(0)),l=d(n(16)),c=d(n(6)),u=d(n(7));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var O=function(e){function t(){return p(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),i(t,[{key:"attach",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new a.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new s.default).insert(this.value(),(0,o.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var n=a.default.query(e,a.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,i){this.format(n,i)}},{key:"insertAt",value:function(e,n,i){if("string"==typeof n&&n.endsWith("\n")){var o=a.default.create(m.blotName);this.parent.insertBefore(o,0===e?this:this.next),o.insertAt(0,n.slice(0,-1))}else r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,i)}}]),t}(a.default.Embed);O.scope=a.default.Scope.BLOCK_BLOT;var m=function(e){function t(e){p(this,t);var n=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.cache={},n}return h(t,e),i(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(a.default.Leaf).reduce((function(e,t){return 0===t.length()?e:e.insert(t.value(),g(t))}),new s.default).insert("\n",g(this))),this.cache.delta}},{key:"deleteAt",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),this.cache={}}},{key:"formatAt",value:function(e,n,i,o){n<=0||(a.default.query(i,a.default.Scope.BLOCK)?e+n===this.length()&&this.format(i,o):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(n,this.length()-e-1),i,o),this.cache={})}},{key:"insertAt",value:function(e,n,i){if(null!=i)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,i);if(0!==n.length){var o=n.split("\n"),s=o.shift();s.length>0&&(e<this.length()-1||null==this.children.tail?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),s):this.children.tail.insertAt(this.children.tail.length(),s),this.cache={});var a=this;o.reduce((function(e,t){return(a=a.split(e,!0)).insertAt(0,t),t.length}),e+s.length)}}},{key:"insertBefore",value:function(e,n){var i=this.children.head;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n),i instanceof l.default&&i.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,n),this.cache={}}},{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-1)){var i=this.clone();return 0===e?(this.parent.insertBefore(i,this),this):(this.parent.insertBefore(i,this.next),i)}var o=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},o}}]),t}(a.default.Block);function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"==typeof e.formats&&(t=(0,o.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:g(e.parent,t))}m.blotName="block",m.tagName="P",m.defaultChild="break",m.allowedChildren=[c.default,a.default.Embed,u.default],t.bubbleFormats=g,t.BlockEmbed=O,t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();n(50);var s=m(n(2)),a=m(n(14)),l=m(n(8)),c=m(n(9)),u=m(n(0)),d=n(15),p=m(d),f=m(n(3)),h=m(n(10)),O=m(n(34));function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var b=(0,h.default)("quill"),v=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(y(this,e),this.options=w(t,i),this.container=this.options.container,null==this.container)return b.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var r=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new l.default,this.scroll=u.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new a.default(this.scroll),this.selection=new p.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(l.default.events.EDITOR_CHANGE,(function(e){e===l.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(l.default.events.SCROLL_UPDATE,(function(e,t){var i=n.selection.lastRange,r=i&&0===i.length?i.index:void 0;$.call(n,(function(){return n.editor.update(null,t,r)}),e)}));var o=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+r+"<p><br></p></div>");this.setContents(o),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return o(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),h.default.level(e)}},{key:"find",value:function(e){return e.__quill||u.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&b.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof e){var r=e.attrName||e.blotName;"string"==typeof r?this.register("formats/"+r,e,t):Object.keys(e).forEach((function(i){n.register(i,e[i],t)}))}else null==this.imports[e]||i||b.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?u.default.register(t):e.startsWith("modules")&&"function"==typeof t.register&&t.register()}}]),o(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){var n=e;(e=document.createElement("div")).classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var i=this,o=_(e,t,n),s=r(o,4);return e=s[0],t=s[1],n=s[3],$.call(this,(function(){return i.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;return $.call(this,(function(){var i=n.getSelection(!0),r=new s.default;if(null==i)return r;if(u.default.query(e,u.default.Scope.BLOCK))r=n.editor.formatLine(i.index,i.length,g({},e,t));else{if(0===i.length)return n.selection.format(e,t),r;r=n.editor.formatText(i.index,i.length,g({},e,t))}return n.setSelection(i,l.default.sources.SILENT),r}),i)}},{key:"formatLine",value:function(e,t,n,i,o){var s,a=this,l=_(e,t,n,i,o),c=r(l,4);return e=c[0],t=c[1],s=c[2],o=c[3],$.call(this,(function(){return a.editor.formatLine(e,t,s)}),o,e,0)}},{key:"formatText",value:function(e,t,n,i,o){var s,a=this,l=_(e,t,n,i,o),c=r(l,4);return e=c[0],t=c[1],s=c[2],o=c[3],$.call(this,(function(){return a.editor.formatText(e,t,s)}),o,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var i=this.container.getBoundingClientRect();return{bottom:n.bottom-i.top,height:n.height,left:n.left-i.left,right:n.right-i.left,top:n.top-i.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=_(e,t),i=r(n,2);return e=i[0],t=i[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=_(e,t),i=r(n,2);return e=i[0],t=i[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,i){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return $.call(this,(function(){return r.editor.insertEmbed(t,n,i)}),o,t)}},{key:"insertText",value:function(e,t,n,i,o){var s,a=this,l=_(e,0,n,i,o),c=r(l,4);return e=c[0],s=c[2],o=c[3],$.call(this,(function(){return a.editor.insertText(e,t,s)}),o,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var i=this,o=_(e,t,n),s=r(o,4);return e=s[0],t=s[1],n=s[3],$.call(this,(function(){return i.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API;return $.call(this,(function(){e=new s.default(e);var n=t.getLength(),i=t.editor.deleteText(0,n),r=t.editor.applyDelta(e),o=r.ops[r.ops.length-1];return null!=o&&"string"==typeof o.insert&&"\n"===o.insert[o.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),r.delete(1)),i.compose(r)}),n)}},{key:"setSelection",value:function(t,n,i){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var o=_(t,n,i),s=r(o,4);t=s[0],n=s[1],i=s[3],this.selection.setRange(new d.Range(t,n),i),i!==l.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API,n=(new s.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API;return $.call(this,(function(){return e=new s.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function w(e,t){if((t=(0,f.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==v.DEFAULTS.theme){if(t.theme=v.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=O.default;var n=(0,f.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var i=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var n=v.import("modules/"+t);return null==n?b.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,f.default)(!0,{},v.DEFAULTS,{modules:i},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function $(e,t,n,i){if(this.options.strict&&!this.isEnabled()&&t===l.default.sources.USER)return new s.default;var r=null==n?null:this.getSelection(),o=this.editor.delta,a=e();if(null!=r&&(!0===n&&(n=r.index),null==i?r=x(r,a,t):0!==i&&(r=x(r,n,i,t)),this.setSelection(r,l.default.sources.SILENT)),a.length()>0){var c,u,d=[l.default.events.TEXT_CHANGE,a,o,t];(c=this.emitter).emit.apply(c,[l.default.events.EDITOR_CHANGE].concat(d)),t!==l.default.sources.SILENT&&(u=this.emitter).emit.apply(u,d)}return a}function _(e,t,n,r,o){var s={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(o=r,r=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(o=r,r=n,n=t,t=0),"object"===(void 0===n?"undefined":i(n))?(s=n,o=r):"string"==typeof n&&(null!=r?s[n]=r:o=n),[e,t,s,o=o||l.default.sources.API]}function x(e,t,n,i){if(null==e)return null;var o=void 0,a=void 0;if(t instanceof s.default){var c=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,i!==l.default.sources.USER)})),u=r(c,2);o=u[0],a=u[1]}else{var p=[e.index,e.index+e.length].map((function(e){return e<t||e===t&&i===l.default.sources.USER?e:n>=0?e+n:Math.max(t,e+n)})),f=r(p,2);o=f[0],a=f[1]}return new d.Range(o,a-o)}v.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},v.events=l.default.events,v.sources=l.default.sources,v.version="1.3.7",v.imports={delta:s.default,parchment:u.default,"core/module":c.default,"core/theme":O.default},t.expandConfig=w,t.overload=_,t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},o=a(n(7)),s=a(n(0));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"formatAt",value:function(e,n,i,o){if(t.compare(this.statics.blotName,i)<0&&s.default.query(i,s.default.Scope.BLOT)){var a=this.isolate(e,n);o&&a.wrap(i,o)}else r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,i,o)}},{key:"optimize",value:function(e){if(r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var i=t.order.indexOf(e),r=t.order.indexOf(n);return i>=0||r>=0?i-r:e===n?0:e<n?-1:1}}]),t}(s.default.Inline);u.allowedChildren=[u,s.default.Embed,o.default],u.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var a=function(e){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((i=r)&&i.__esModule?i:{default:i}).default.Text);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},o=s(n(54));function s(e){return e&&e.__esModule?e:{default:e}}var a=(0,s(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(e){document.addEventListener(e,(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(e){var n;e.__quill&&e.__quill.emitter&&(n=e.__quill.emitter).handleDOM.apply(n,t)}))}))}));var l=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.listeners={},e.on("error",a.error),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"emit",value:function(){a.log.apply(a,arguments),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];(this.listeners[e.type]||[]).forEach((function(t){var i=t.node,r=t.handler;(e.target===i||i.contains(e.target))&&r.apply(void 0,[e].concat(n))}))}},{key:"listenDOM",value:function(e,t,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:n})}}]),t}(o.default);l.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},l.sources={API:"api",SILENT:"silent",USER:"user"},t.default=l},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.quill=t,this.options=n};r.DEFAULTS={},t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=["error","warn","log","info"],r="warn";function o(e){if(i.indexOf(e)<=i.indexOf(r)){for(var t,n=arguments.length,o=Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];(t=console)[e].apply(t,o)}}function s(e){return i.reduce((function(t,n){return t[n]=o.bind(console,n,e),t}),{})}o.level=s.level=function(e){r=e},t.default=s},function(e,t,n){var i=Array.prototype.slice,r=n(52),o=n(53),s=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:function(e,t,n){var c,u;if(a(e)||a(t))return!1;if(e.prototype!==t.prototype)return!1;if(o(e))return!!o(t)&&(e=i.call(e),t=i.call(t),s(e,t,n));if(l(e)){if(!l(t))return!1;if(e.length!==t.length)return!1;for(c=0;c<e.length;c++)if(e[c]!==t[c])return!1;return!0}try{var d=r(e),p=r(t)}catch(e){return!1}if(d.length!=p.length)return!1;for(d.sort(),p.sort(),c=d.length-1;c>=0;c--)if(d[c]!=p[c])return!1;for(c=d.length-1;c>=0;c--)if(u=d[c],!s(e[u],t[u],n))return!1;return typeof e==typeof t}(e,t,n))};function a(e){return null==e}function l(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var r=i.Scope.TYPE&i.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&i.Scope.LEVEL|r:this.scope=i.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=i.query(e,i.Scope.BLOT&(this.scope|i.Scope.TYPE))&&(null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},s=d(n(2)),a=d(n(0)),l=d(n(4)),c=d(n(6)),u=d(n(7));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var O=function(e){function t(){return p(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),t}(c.default);O.blotName="code",O.tagName="CODE";var m=function(e){function t(){return p(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),r(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce((function(t,n){return t.insert(n).insert("\n",e.formats())}),new s.default)}},{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n){var r=this.descendant(u.default,this.length()-1),s=i(r,1)[0];null!=s&&s.deleteAt(s.length()-1,1),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}},{key:"formatAt",value:function(e,n,i,r){if(0!==n&&null!=a.default.query(i,a.default.Scope.BLOCK)&&(i!==this.statics.blotName||r!==this.statics.formats(this.domNode))){var o=this.newlineIndex(e);if(!(o<0||o>=e+n)){var s=this.newlineIndex(e,!0)+1,l=o-s+1,c=this.isolate(s,l),u=c.next;c.format(i,r),u instanceof t&&u.formatAt(0,e-s+n-l,i,r)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var r=this.descendant(u.default,e),o=i(r,2),s=o[0],a=o[1];s.insertAt(a,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var n=this.domNode.textContent.slice(e).indexOf("\n");return n>-1?e+n:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(a.default.create("text","\n")),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=a.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof a.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(l.default);m.blotName="code-block",m.tagName="PRE",m.TAB=" ",t.Code=O,t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=g(n(2)),a=g(n(20)),l=g(n(0)),c=g(n(13)),u=g(n(24)),d=n(4),p=g(d),f=g(n(16)),h=g(n(21)),O=g(n(11)),m=g(n(3));function g(e){return e&&e.__esModule?e:{default:e}}var y=/^[ -~]*$/,b=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scroll=t,this.delta=this.getDelta()}return o(e,[{key:"applyDelta",value:function(e){var t=this,n=!1;this.scroll.update();var o=this.scroll.length();return this.scroll.batchStart(),(e=function(e){return e.reduce((function(e,t){if(1===t.insert){var n=(0,h.default)(t.attributes);return delete n.image,e.insert({image:t.attributes.image},n)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||((t=(0,h.default)(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"==typeof t.insert){var i=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(i,t.attributes)}return e.push(t)}),new s.default)}(e)).reduce((function(e,s){var c=s.retain||s.delete||s.insert.length||1,u=s.attributes||{};if(null!=s.insert){if("string"==typeof s.insert){var f=s.insert;f.endsWith("\n")&&n&&(n=!1,f=f.slice(0,-1)),e>=o&&!f.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,f);var h=t.scroll.line(e),O=r(h,2),g=O[0],y=O[1],b=(0,m.default)({},(0,d.bubbleFormats)(g));if(g instanceof p.default){var v=g.descendant(l.default.Leaf,y),w=r(v,1)[0];b=(0,m.default)(b,(0,d.bubbleFormats)(w))}u=a.default.attributes.diff(b,u)||{}}else if("object"===i(s.insert)){var $=Object.keys(s.insert)[0];if(null==$)return e;t.scroll.insertAt(e,$,s.insert[$])}o+=c}return Object.keys(u).forEach((function(n){t.scroll.formatAt(e,c,n,u[n])})),e+c}),0),e.reduce((function(e,n){return"number"==typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new s.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(i).forEach((function(r){if(null==n.scroll.whitelist||n.scroll.whitelist[r]){var o=n.scroll.lines(e,Math.max(t,1)),s=t;o.forEach((function(t){var o=t.length();if(t instanceof c.default){var a=e-t.offset(n.scroll),l=t.newlineIndex(a+s)-a+1;t.formatAt(a,l,r,i[r])}else t.format(r,i[r]);s-=o}))}})),this.scroll.optimize(),this.update((new s.default).retain(e).retain(t,(0,h.default)(i)))}},{key:"formatText",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(i).forEach((function(r){n.scroll.formatAt(e,t,r,i[r])})),this.update((new s.default).retain(e).retain(t,(0,h.default)(i)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new s.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],i=[];0===t?this.scroll.path(e).forEach((function(e){var t=r(e,1)[0];t instanceof p.default?n.push(t):t instanceof l.default.Leaf&&i.push(t)})):(n=this.scroll.lines(e,t),i=this.scroll.descendants(l.default.Leaf,e,t));var o=[n,i].map((function(e){if(0===e.length)return{};for(var t=(0,d.bubbleFormats)(e.shift());Object.keys(t).length>0;){var n=e.shift();if(null==n)return t;t=v((0,d.bubbleFormats)(n),t)}return t}));return m.default.apply(m.default,o)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"==typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new s.default).retain(e).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(i).forEach((function(r){n.scroll.formatAt(e,t.length,r,i[r])})),this.update((new s.default).retain(e).insert(t,(0,h.default)(i)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===p.default.blotName&&!(e.children.length>1)&&e.children.head instanceof f.default}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),i=this.scroll.line(e+t),o=r(i,2),a=o[0],l=o[1],u=0,d=new s.default;null!=a&&(u=a instanceof c.default?a.newlineIndex(l)-l+1:a.length()-l,d=a.delta().slice(l,l+u-1).insert("\n"));var p=this.getContents(e,t+u).diff((new s.default).insert(n).concat(d)),f=(new s.default).retain(e).concat(p);return this.applyDelta(f)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(y)&&l.default.find(t[0].target)){var r=l.default.find(t[0].target),o=(0,d.bubbleFormats)(r),a=r.offset(this.scroll),c=t[0].oldValue.replace(u.default.CONTENTS,""),p=(new s.default).insert(c),f=(new s.default).insert(r.value()),h=(new s.default).retain(a).concat(p.diff(f,n));e=h.reduce((function(e,t){return t.insert?e.insert(t.insert,o):e.push(t)}),new s.default),this.delta=i.compose(e)}else this.delta=this.getDelta(),e&&(0,O.default)(i.compose(e),this.delta)||(e=i.diff(this.delta,n));return e}}]),e}();function v(e,t){return Object.keys(t).reduce((function(n,i){return null==e[i]||(t[i]===e[i]?n[i]=t[i]:Array.isArray(t[i])?t[i].indexOf(e[i])<0&&(n[i]=t[i].concat([e[i]])):n[i]=[t[i],e[i]]),n}),{})}t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=c(n(0)),s=c(n(21)),a=c(n(11)),l=c(n(8));function c(e){return e&&e.__esModule?e:{default:e}}function u(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var p=(0,c(n(10)).default)("quill:selection"),f=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d(this,e),this.index=t,this.length=n},h=function(){function e(t,n){var i=this;d(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=o.default.create("cursor",this),this.lastRange=this.savedRange=new f(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){i.mouseDown||setTimeout(i.update.bind(i,l.default.sources.USER),1)})),this.emitter.on(l.default.events.EDITOR_CHANGE,(function(e,t){e===l.default.events.TEXT_CHANGE&&t.length()>0&&i.update(l.default.sources.SILENT)})),this.emitter.on(l.default.events.SCROLL_BEFORE_UPDATE,(function(){if(i.hasFocus()){var e=i.getNativeRange();null!=e&&e.start.node!==i.cursor.textNode&&i.emitter.once(l.default.events.SCROLL_UPDATE,(function(){try{i.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(e){}}))}})),this.emitter.on(l.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,r=n.startNode,o=n.startOffset,s=n.endNode,a=n.endOffset;i.setNativeRange(r,o,s,a)}})),this.update(l.default.sources.SILENT)}return r(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(l.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!o.default.query(e,o.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var i=o.default.find(n.start.node,!1);if(null==i)return;if(i instanceof o.default.Leaf){var r=i.split(n.start.offset);i.parent.insertBefore(this.cursor,r)}else i.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var r=void 0,o=this.scroll.leaf(e),s=i(o,2),a=s[0],l=s[1];if(null==a)return null;var c=a.position(l,!0),u=i(c,2);r=u[0],l=u[1];var d=document.createRange();if(t>0){d.setStart(r,l);var p=this.scroll.leaf(e+t),f=i(p,2);if(a=f[0],l=f[1],null==a)return null;var h=a.position(l,!0),O=i(h,2);return r=O[0],l=O[1],d.setEnd(r,l),d.getBoundingClientRect()}var m="left",g=void 0;return r instanceof Text?(l<r.data.length?(d.setStart(r,l),d.setEnd(r,l+1)):(d.setStart(r,l-1),d.setEnd(r,l),m="right"),g=d.getBoundingClientRect()):(g=a.domNode.getBoundingClientRect(),l>0&&(m="right")),{bottom:g.top+g.height,height:g.height,left:g[m],right:g[m],top:g.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return p.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var r=n.map((function(e){var n=i(e,2),r=n[0],s=n[1],a=o.default.find(r,!0),l=a.offset(t.scroll);return 0===s?l:a instanceof o.default.Container?l+a.length():l+a.index(r,s)})),s=Math.min(Math.max.apply(Math,u(r)),this.scroll.length()-1),a=Math.min.apply(Math,[s].concat(u(r)));return new f(a,s-a)}},{key:"normalizeNative",value:function(e){if(!O(this.root,e.startContainer)||!e.collapsed&&!O(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],r=[],o=this.scroll.length();return n.forEach((function(e,n){e=Math.min(o-1,e);var s,a=t.scroll.leaf(e),l=i(a,2),c=l[0],u=l[1],d=c.position(u,0!==n),p=i(d,2);s=p[0],u=p[1],r.push(s,u)})),r.length<2&&(r=r.concat(r)),r}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var r=this.scroll.length()-1,o=this.scroll.line(Math.min(t.index,r)),s=i(o,1)[0],a=s;if(t.length>0){var l=this.scroll.line(Math.min(t.index+t.length,r));a=i(l,1)[0]}if(null!=s&&null!=a){var c=e.getBoundingClientRect();n.top<c.top?e.scrollTop-=c.top-n.top:n.bottom>c.bottom&&(e.scrollTop+=n.bottom-c.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(p.info("setNativeRange",e,t,n,i),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var o=document.getSelection();if(null!=o)if(null!=e){this.hasFocus()||this.root.focus();var s=(this.getNativeRange()||{}).native;if(null==s||r||e!==s.startContainer||t!==s.startOffset||n!==s.endContainer||i!==s.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(i=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var a=document.createRange();a.setStart(e,t),a.setEnd(n,i),o.removeAllRanges(),o.addRange(a)}}else o.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;if("string"==typeof t&&(n=t,t=!1),p.info("setRange",e),null!=e){var i=this.rangeToNative(e);this.setNativeRange.apply(this,u(i).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default.sources.USER,t=this.lastRange,n=this.getRange(),r=i(n,2),o=r[0],c=r[1];if(this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,a.default)(t,this.lastRange)){var u;!this.composing&&null!=c&&c.native.collapsed&&c.start.node!==this.cursor.textNode&&this.cursor.restore();var d,p=[l.default.events.SELECTION_CHANGE,(0,s.default)(this.lastRange),(0,s.default)(t),e];(u=this.emitter).emit.apply(u,[l.default.events.EDITOR_CHANGE].concat(p)),e!==l.default.sources.SILENT&&(d=this.emitter).emit.apply(d,p)}}}]),e}();function O(e,t){try{t.parentNode}catch(e){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=f,t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},s=n(0);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){return a(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"insertInto",value:function(e,n){0===e.children.length?o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(((i=s)&&i.__esModule?i:{default:i}).default.Embed);c.blotName="break",c.tagName="BR",t.default=c},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(44),s=n(30),a=n(1),l=function(e){function t(t){var n=e.call(this,t)||this;return n.build(),n}return r(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach((function(e){e.attach()}))},t.prototype.build=function(){var e=this;this.children=new o.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(t){try{var n=c(t);e.insertBefore(n,e.children.head||void 0)}catch(e){if(e instanceof a.ParchmentError)return;throw e}}))},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(function(e,t,n){e.deleteAt(t,n)}))},t.prototype.descendant=function(e,n){var i=this.children.find(n),r=i[0],o=i[1];return null==e.blotName&&e(r)||null!=e.blotName&&r instanceof e?[r,o]:r instanceof t?r.descendant(e,o):[null,-1]},t.prototype.descendants=function(e,n,i){void 0===n&&(n=0),void 0===i&&(i=Number.MAX_VALUE);var r=[],o=i;return this.children.forEachAt(n,i,(function(n,i,s){(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e)&&r.push(n),n instanceof t&&(r=r.concat(n.descendants(e,i,o))),o-=s})),r},t.prototype.detach=function(){this.children.forEach((function(e){e.detach()})),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,n,i){this.children.forEachAt(e,t,(function(e,t,r){e.formatAt(t,r,n,i)}))},t.prototype.insertAt=function(e,t,n){var i=this.children.find(e),r=i[0],o=i[1];if(r)r.insertAt(o,t,n);else{var s=null==n?a.create("text",t):a.create(t,n);this.appendChild(s)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(t){return e instanceof t})))throw new a.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce((function(e,t){return e+t.length()}),0)},t.prototype.moveChildren=function(e,t){this.children.forEach((function(n){e.insertBefore(n,t)}))},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var n=a.create(this.statics.defaultChild);this.appendChild(n),n.optimize(t)}else this.remove()},t.prototype.path=function(e,n){void 0===n&&(n=!1);var i=this.children.find(e,n),r=i[0],o=i[1],s=[[this,e]];return r instanceof t?s.concat(r.path(o,n)):(null!=r&&s.push([r,o]),s)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(n){n instanceof t&&n.moveChildren(this),e.prototype.replace.call(this,n)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(e,this.length(),(function(e,i,r){e=e.split(i,t),n.appendChild(e)})),n},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var n=this,i=[],r=[];e.forEach((function(e){e.target===n.domNode&&"childList"===e.type&&(i.push.apply(i,e.addedNodes),r.push.apply(r,e.removedNodes))})),r.forEach((function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=a.find(e);null!=t&&(null!=t.domNode.parentNode&&t.domNode.parentNode!==n.domNode||t.detach())}})),i.filter((function(e){return e.parentNode==n.domNode})).sort((function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(e){var t=null;null!=e.nextSibling&&(t=a.find(e.nextSibling));var i=c(e);i.next==t&&null!=i.next||(null!=i.parent&&i.parent.removeChild(n),n.insertBefore(i,t||void 0))}))},t}(s.default);function c(e){var t=a.find(e);if(null==t)try{t=a.create(e)}catch(n){t=a.create(a.Scope.INLINE),[].slice.call(e.childNodes).forEach((function(e){t.domNode.appendChild(e)})),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=l},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(12),s=n(31),a=n(17),l=n(1),c=function(e){function t(t){var n=e.call(this,t)||this;return n.attributes=new s.default(n.domNode),n}return r(t,e),t.formats=function(e){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var n=l.query(e);n instanceof o.default?this.attributes.attribute(n,t):t&&(null==n||e===this.statics.blotName&&this.formats()[e]===t||this.replaceWith(e,t))},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,n){var i=e.prototype.replaceWith.call(this,t,n);return this.attributes.copy(i),i},t.prototype.update=function(t,n){var i=this;e.prototype.update.call(this,t,n),t.some((function(e){return e.target===i.domNode&&"attributes"===e.type}))&&this.attributes.build()},t.prototype.wrap=function(n,i){var r=e.prototype.wrap.call(this,n,i);return r instanceof t&&r.statics.scope===this.statics.scope&&this.attributes.move(r),r},t}(a.default);t.default=c},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(30),s=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=s.Scope.INLINE_BLOT,t}(o.default);t.default=a},function(e,t,n){var i=n(11),r=n(3),o={attributes:{compose:function(e,t,n){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var i=r(!0,{},t);for(var o in n||(i=Object.keys(i).reduce((function(e,t){return null!=i[t]&&(e[t]=i[t]),e}),{})),e)void 0!==e[o]&&void 0===t[o]&&(i[o]=e[o]);return Object.keys(i).length>0?i:void 0},diff:function(e,t){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,r){return i(e[r],t[r])||(n[r]=void 0===t[r]?null:t[r]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!=typeof e)return t;if("object"==typeof t){if(!n)return t;var i=Object.keys(t).reduce((function(n,i){return void 0===e[i]&&(n[i]=t[i]),n}),{});return Object.keys(i).length>0?i:void 0}}},iterator:function(e){return new s(e)},length:function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}};function s(e){this.ops=e,this.index=0,this.offset=0}s.prototype.hasNext=function(){return this.peekLength()<1/0},s.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,i=o.length(t);if(e>=i-n?(e=i-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};var r={};return t.attributes&&(r.attributes=t.attributes),"number"==typeof t.retain?r.retain=e:"string"==typeof t.insert?r.insert=t.insert.substr(n,e):r.insert=t.insert,r}return{retain:1/0}},s.prototype.peek=function(){return this.ops[this.index]},s.prototype.peekLength=function(){return this.ops[this.index]?o.length(this.ops[this.index])-this.offset:1/0},s.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},s.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),i=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(i)}return[]},e.exports=o},function(e,t){var n=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var t,n,i;try{t=Map}catch(e){t=function(){}}try{n=Set}catch(e){n=function(){}}try{i=Promise}catch(e){i=function(){}}function r(o,a,l,c,u){"object"==typeof a&&(l=a.depth,c=a.prototype,u=a.includeNonEnumerable,a=a.circular);var d=[],p=[],f="undefined"!=typeof Buffer;return void 0===a&&(a=!0),void 0===l&&(l=1/0),function o(l,h){if(null===l)return null;if(0===h)return l;var O,m;if("object"!=typeof l)return l;if(e(l,t))O=new t;else if(e(l,n))O=new n;else if(e(l,i))O=new i((function(e,t){l.then((function(t){e(o(t,h-1))}),(function(e){t(o(e,h-1))}))}));else if(r.__isArray(l))O=[];else if(r.__isRegExp(l))O=new RegExp(l.source,s(l)),l.lastIndex&&(O.lastIndex=l.lastIndex);else if(r.__isDate(l))O=new Date(l.getTime());else{if(f&&Buffer.isBuffer(l))return O=Buffer.allocUnsafe?Buffer.allocUnsafe(l.length):new Buffer(l.length),l.copy(O),O;e(l,Error)?O=Object.create(l):void 0===c?(m=Object.getPrototypeOf(l),O=Object.create(m)):(O=Object.create(c),m=c)}if(a){var g=d.indexOf(l);if(-1!=g)return p[g];d.push(l),p.push(O)}for(var y in e(l,t)&&l.forEach((function(e,t){var n=o(t,h-1),i=o(e,h-1);O.set(n,i)})),e(l,n)&&l.forEach((function(e){var t=o(e,h-1);O.add(t)})),l){var b;m&&(b=Object.getOwnPropertyDescriptor(m,y)),b&&null==b.set||(O[y]=o(l[y],h-1))}if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(l);for(y=0;y<v.length;y++){var w=v[y];(!(_=Object.getOwnPropertyDescriptor(l,w))||_.enumerable||u)&&(O[w]=o(l[w],h-1),_.enumerable||Object.defineProperty(O,w,{enumerable:!1}))}}if(u){var $=Object.getOwnPropertyNames(l);for(y=0;y<$.length;y++){var _,x=$[y];(_=Object.getOwnPropertyDescriptor(l,x))&&_.enumerable||(O[x]=o(l[x],h-1),Object.defineProperty(O,x,{enumerable:!1}))}}return O}(o,l)}function o(e){return Object.prototype.toString.call(e)}function s(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return r.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},r.__objToStr=o,r.__isDate=function(e){return"object"==typeof e&&"[object Date]"===o(e)},r.__isArray=function(e){return"object"==typeof e&&"[object Array]"===o(e)},r.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===o(e)},r.__getRegExpFlags=s,r}();"object"==typeof e&&e.exports&&(e.exports=n)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},s=f(n(0)),a=f(n(8)),l=n(4),c=f(l),u=f(n(16)),d=f(n(13)),p=f(n(25));function f(e){return e&&e.__esModule?e:{default:e}}function h(e){return e instanceof c.default||e instanceof l.BlockEmbed}var O=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return i.emitter=n.emitter,Array.isArray(n.whitelist)&&(i.whitelist=n.whitelist.reduce((function(e,t){return e[t]=!0,e}),{})),i.domNode.addEventListener("DOMNodeInserted",(function(){})),i.optimize(),i.enable(),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,n){var r=this.line(e),s=i(r,2),a=s[0],c=s[1],p=this.line(e+n),f=i(p,1)[0];if(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),null!=f&&a!==f&&c>0){if(a instanceof l.BlockEmbed||f instanceof l.BlockEmbed)return void this.optimize();if(a instanceof d.default){var h=a.newlineIndex(a.length(),!0);if(h>-1&&(a=a.split(h+1))===f)return void this.optimize()}else if(f instanceof d.default){var O=f.newlineIndex(0);O>-1&&f.split(O+1)}var m=f.children.head instanceof u.default?null:f.children.head;a.moveChildren(f,m),a.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,i,r){(null==this.whitelist||this.whitelist[i])&&(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,i,r),this.optimize())}},{key:"insertAt",value:function(e,n,i){if(null==i||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==i||null==s.default.query(n,s.default.Scope.BLOCK)){var r=s.default.create(this.statics.defaultChild);this.appendChild(r),null==i&&n.endsWith("\n")&&(n=n.slice(0,-1)),r.insertAt(0,n,i)}else{var a=s.default.create(n,i);this.appendChild(a)}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,i);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===s.default.Scope.INLINE_BLOT){var i=s.default.create(this.statics.defaultChild);i.appendChild(e),e=i}o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(h,e)}},{key:"lines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=function e(t,n,i){var r=[],o=i;return t.children.forEachAt(n,i,(function(t,n,i){h(t)?r.push(t):t instanceof s.default.Container&&(r=r.concat(e(t,n,o))),o-=i})),r};return n(this,e,t)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(a.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=a.default.sources.USER;"string"==typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(a.default.events.SCROLL_BEFORE_UPDATE,n,e),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(a.default.events.SCROLL_UPDATE,n,e)}}}]),t}(s.default.Scroll);O.blotName="scroll",O.className="ql-editor",O.tagName="DIV",O.defaultChild="block",O.allowedChildren=[c.default,l.BlockEmbed,p.default],t.default=O},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=O(n(21)),a=O(n(11)),l=O(n(3)),c=O(n(2)),u=O(n(20)),d=O(n(0)),p=O(n(5)),f=O(n(10)),h=O(n(9));function O(e){return e&&e.__esModule?e:{default:e}}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=(0,f.default)("quill:keyboard"),y=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",b=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.bindings={},Object.keys(i.options.bindings).forEach((function(t){("list autofill"!==t||null==e.scroll.whitelist||e.scroll.whitelist.list)&&i.options.bindings[t]&&i.addBinding(i.options.bindings[t])})),i.addBinding({key:t.keys.ENTER,shiftKey:null},x),i.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(i.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},w),i.addBinding({key:t.keys.DELETE},{collapsed:!0},$)):(i.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},w),i.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},$)),i.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},_),i.addBinding({key:t.keys.DELETE},{collapsed:!1},_),i.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},w),i.listen(),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"match",value:function(e,t){return t=k(t),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!t[n]!==e[n]&&null!==t[n]}))&&t.key===(e.which||e.keyCode)}}]),o(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=k(e);if(null==i||null==i.key)return g.warn("Attempted to add invalid keyboard binding",i);"function"==typeof t&&(t={handler:t}),"function"==typeof n&&(n={handler:n}),i=(0,l.default)(i,t,n),this.bindings[i.key]=this.bindings[i.key]||[],this.bindings[i.key].push(i)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var o=n.which||n.keyCode,s=(e.bindings[o]||[]).filter((function(e){return t.match(n,e)}));if(0!==s.length){var l=e.quill.getSelection();if(null!=l&&e.quill.hasFocus()){var c=e.quill.getLine(l.index),u=r(c,2),p=u[0],f=u[1],h=e.quill.getLeaf(l.index),O=r(h,2),m=O[0],g=O[1],y=0===l.length?[m,g]:e.quill.getLeaf(l.index+l.length),b=r(y,2),v=b[0],w=b[1],$=m instanceof d.default.Text?m.value().slice(0,g):"",_=v instanceof d.default.Text?v.value().slice(w):"",x={collapsed:0===l.length,empty:0===l.length&&p.length()<=1,format:e.quill.getFormat(l),offset:f,prefix:$,suffix:_};s.some((function(t){if(null!=t.collapsed&&t.collapsed!==x.collapsed)return!1;if(null!=t.empty&&t.empty!==x.empty)return!1;if(null!=t.offset&&t.offset!==x.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==x.format[e]})))return!1}else if("object"===i(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=x.format[e]:!1===t.format[e]?null==x.format[e]:(0,a.default)(t.format[e],x.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(x.prefix)||null!=t.suffix&&!t.suffix.test(x.suffix)||!0===t.handler.call(e,l,x))}))&&n.preventDefault()}}}}))}}]),t}(h.default);function v(e,t){var n,i=e===b.keys.LEFT?"prefix":"suffix";return m(n={key:e,shiftKey:t,altKey:null},i,/^$/),m(n,"handler",(function(n){var i=n.index;e===b.keys.RIGHT&&(i+=n.length+1);var o=this.quill.getLeaf(i);return!(r(o,1)[0]instanceof d.default.Embed&&(e===b.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,p.default.sources.USER):this.quill.setSelection(n.index-1,p.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,p.default.sources.USER):this.quill.setSelection(n.index+n.length+1,p.default.sources.USER),1))})),n}function w(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),i=r(n,1)[0],o={};if(0===t.offset){var s=this.quill.getLine(e.index-1),a=r(s,1)[0];if(null!=a&&a.length()>1){var l=i.formats(),c=this.quill.getFormat(e.index-1,1);o=u.default.attributes.diff(l,c)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-d,d,p.default.sources.USER),Object.keys(o).length>0&&this.quill.formatLine(e.index-d,d,o,p.default.sources.USER),this.quill.focus()}}function $(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var i={},o=0,s=this.quill.getLine(e.index),a=r(s,1)[0];if(t.offset>=a.length()-1){var l=this.quill.getLine(e.index+1),c=r(l,1)[0];if(c){var d=a.formats(),f=this.quill.getFormat(e.index,1);i=u.default.attributes.diff(d,f)||{},o=c.length()}}this.quill.deleteText(e.index,n,p.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(e.index+o-1,n,i,p.default.sources.USER)}}function _(e){var t=this.quill.getLines(e),n={};if(t.length>1){var i=t[0].formats(),r=t[t.length-1].formats();n=u.default.attributes.diff(r,i)||{}}this.quill.deleteText(e,p.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,p.default.sources.USER),this.quill.setSelection(e.index,p.default.sources.SILENT),this.quill.focus()}function x(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var i=Object.keys(t.format).reduce((function(e,n){return d.default.query(n,d.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",i,p.default.sources.USER),this.quill.setSelection(e.index+1,p.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==i[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],p.default.sources.USER))}))}function S(e){return{key:b.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=d.default.query("code-block"),i=t.index,o=t.length,s=this.quill.scroll.descendant(n,i),a=r(s,2),l=a[0],c=a[1];if(null!=l){var u=this.quill.getIndex(l),f=l.newlineIndex(c,!0)+1,h=l.newlineIndex(u+c+o),O=l.domNode.textContent.slice(f,h).split("\n");c=0,O.forEach((function(t,r){e?(l.insertAt(f+c,n.TAB),c+=n.TAB.length,0===r?i+=n.TAB.length:o+=n.TAB.length):t.startsWith(n.TAB)&&(l.deleteAt(f+c,n.TAB.length),c-=n.TAB.length,0===r?i-=n.TAB.length:o-=n.TAB.length),c+=t.length+1})),this.quill.update(p.default.sources.USER),this.quill.setSelection(i,o,p.default.sources.SILENT)}}}}function Q(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],p.default.sources.USER)}}}function k(e){if("string"==typeof e||"number"==typeof e)return k({key:e});if("object"===(void 0===e?"undefined":i(e))&&(e=(0,s.default)(e,!1)),"string"==typeof e.key)if(null!=b.keys[e.key.toUpperCase()])e.key=b.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[y]=e.shortKey,delete e.shortKey),e}b.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},b.DEFAULTS={bindings:{bold:Q("bold"),italic:Q("italic"),underline:Q("underline"),indent:{key:b.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",p.default.sources.USER)}},outdent:{key:b.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",p.default.sources.USER)}},"outdent backspace":{key:b.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",p.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,p.default.sources.USER)}},"indent code-block":S(!0),"outdent code-block":S(!1),"remove tab":{key:b.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,p.default.sources.USER)}},tab:{key:b.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new c.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,p.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,p.default.sources.SILENT)}},"list empty enter":{key:b.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,p.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,p.default.sources.USER)}},"checklist enter":{key:b.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=r(t,2),i=n[0],o=n[1],s=(0,l.default)({},i.formats(),{list:"checked"}),a=(new c.default).retain(e.index).insert("\n",s).retain(i.length()-o-1).retain(1,{list:"unchecked"});this.quill.updateContents(a,p.default.sources.USER),this.quill.setSelection(e.index+1,p.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:b.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),i=r(n,2),o=i[0],s=i[1],a=(new c.default).retain(e.index).insert("\n",t.format).retain(o.length()-s-1).retain(1,{header:null});this.quill.updateContents(a,p.default.sources.USER),this.quill.setSelection(e.index+1,p.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,i=this.quill.getLine(e.index),o=r(i,2),s=o[0],a=o[1];if(a>n)return!0;var l=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(e.index," ",p.default.sources.USER),this.quill.history.cutoff();var u=(new c.default).retain(e.index-a).delete(n+1).retain(s.length()-2-a).retain(1,{list:l});this.quill.updateContents(u,p.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,p.default.sources.SILENT)}},"code exit":{key:b.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=r(t,2),i=n[0],o=n[1],s=(new c.default).retain(e.index+i.length()-o-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(s,p.default.sources.USER)}},"embed left":v(b.keys.LEFT,!1),"embed left shift":v(b.keys.LEFT,!0),"embed right":v(b.keys.RIGHT,!1),"embed right shift":v(b.keys.RIGHT,!0)}},t.default=b,t.SHORTKEY=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=l(n(0)),a=l(n(7));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return i.selection=n,i.textNode=document.createTextNode(t.CONTENTS),i.domNode.appendChild(i.textNode),i._length=0,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"value",value:function(){}}]),o(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,n){if(0!==this._length)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);for(var i=this,o=0;null!=i&&i.statics.scope!==s.default.Scope.BLOCK_BLOT;)o+=i.offset(i.parent),i=i.parent;null!=i&&(this._length=t.CONTENTS.length,i.optimize(),i.formatAt(o,t.CONTENTS.length,e,n),this._length=0)}},{key:"index",value:function(e,n){return e===this.textNode?0:r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,n=this.selection.getNativeRange(),r=void 0,o=void 0,l=void 0;if(null!=n&&n.start.node===e&&n.end.node===e){var c=[e,n.start.offset,n.end.offset];r=c[0],o=c[1],l=c[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var u=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof a.default?(r=this.next.domNode,this.next.insertAt(0,u),this.textNode.data=t.CONTENTS):(this.textNode.data=u,this.parent.insertBefore(s.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=o){var d=[o,l].map((function(e){return Math.max(0,Math.min(r.data.length,e-1))})),p=i(d,2);return o=p[0],l=p[1],{startNode:r,startOffset:o,endNode:r,endOffset:l}}}}},{key:"update",value:function(e,t){var n=this;if(e.some((function(e){return"characterData"===e.type&&e.target===n.textNode}))){var i=this.restore();i&&(t.range=i)}}},{key:"value",value:function(){return""}}]),t}(s.default.Embed);c.blotName="cursor",c.className="ql-cursor",c.tagName="span",c.CONTENTS="\ufeff",t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=s(n(0)),r=n(4),o=s(r);function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){return a(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(i.default.Container);c.allowedChildren=[o.default,r.BlockEmbed,c],t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var i,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},s=n(0),a=(i=s)&&i.__esModule?i:{default:i};function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"value",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map((function(e){return("00"+parseInt(e).toString(16)).slice(-2)})).join("")):n}}]),t}(a.default.Attributor.Style),d=new a.default.Attributor.Class("color","ql-color",{scope:a.default.Scope.INLINE}),p=new u("color","color",{scope:a.default.Scope.INLINE});t.ColorAttributor=u,t.ColorClass=d,t.ColorStyle=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var i,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},s=n(6);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){return a(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n)return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),n.setAttribute("href",e),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return u(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}(((i=s)&&i.__esModule?i:{default:i}).default);function u(e,t){var n=document.createElement("a");n.href=e;var i=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(i)>-1}c.blotName="link",c.tagName="A",c.SANITIZED_URL="about:blank",c.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=c,t.sanitize=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=a(n(23)),s=a(n(107));function a(e){return e&&e.__esModule?e:{default:e}}var l=0;function c(e,t){e.setAttribute(t,!("true"===e.getAttribute(t)))}var u=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(e){switch(e.keyCode){case o.default.keys.ENTER:n.togglePicker();break;case o.default.keys.ESCAPE:n.escape(),e.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return r(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),c(this.label,"aria-expanded"),c(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value")),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",(function(){t.selectItem(n,!0)})),n.addEventListener("keydown",(function(e){switch(e.keyCode){case o.default.keys.ENTER:t.selectItem(n,!0),e.preventDefault();break;case o.default.keys.ESCAPE:t.escape(),e.preventDefault()}})),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=s.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+l,l+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach((function(n){var i=e.buildItem(n);t.appendChild(i),!0===n.selected&&e.selectItem(i)})),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach((function(t){e.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout((function(){return e.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":i(Event))){var r=document.createEvent("Event");r.initEvent("change",!0,!0),this.select.dispatchEvent(r)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=g(n(0)),r=g(n(5)),o=n(4),s=g(o),a=g(n(16)),l=g(n(25)),c=g(n(24)),u=g(n(35)),d=g(n(6)),p=g(n(22)),f=g(n(7)),h=g(n(55)),O=g(n(42)),m=g(n(23));function g(e){return e&&e.__esModule?e:{default:e}}r.default.register({"blots/block":s.default,"blots/block/embed":o.BlockEmbed,"blots/break":a.default,"blots/container":l.default,"blots/cursor":c.default,"blots/embed":u.default,"blots/inline":d.default,"blots/scroll":p.default,"blots/text":f.default,"modules/clipboard":h.default,"modules/history":O.default,"modules/keyboard":m.default}),i.default.register(s.default,a.default,c.default,d.default,p.default,f.default),t.default=r.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(){function e(e){this.domNode=e,this.domNode[i.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new i.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"==typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"==typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return i.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[i.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,n,r){var o=this.isolate(e,t);if(null!=i.query(n,i.Scope.BLOT)&&r)o.wrap(n,r);else if(null!=i.query(n,i.Scope.ATTRIBUTE)){var s=i.create(this.statics.scope);o.wrap(s),s.format(n,r)}},e.prototype.insertAt=function(e,t,n){var r=null==n?i.create("text",t):i.create(t,n),o=this.split(e);this.parent.insertBefore(r,o)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[i.DATA_KEY]&&delete this.domNode[i.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"==typeof e?i.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"==typeof e?i.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),r=n(32),o=n(33),s=n(1),a=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=i.default.keys(this.domNode),n=r.default.keys(this.domNode),a=o.default.keys(this.domNode);t.concat(n).concat(a).forEach((function(t){var n=s.query(t,s.Scope.ATTRIBUTE);n instanceof i.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var i=t.attributes[n].value(t.domNode);e.format(n,i)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=a},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function o(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){o(e,this.keyName).forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(o(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=s},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function o(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){return e.split(":")[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[o(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[o(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[o(this.keyName)];return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=n,this.modules={}}return i(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach((function(t){null==e.modules[t]&&e.addModule(t)}))}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();r.DEFAULTS={modules:{}},r.themes={default:r},t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},o=a(n(0)),s=a(n(7));function a(e){return e&&e.__esModule?e:{default:e}}var l="\ufeff",c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(e){n.contentNode.appendChild(e)})),n.leftGuard=document.createTextNode(l),n.rightGuard=document.createTextNode(l),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"index",value:function(e,n){return e===this.leftGuard?0:e===this.rightGuard?1:r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"restore",value:function(e){var t=void 0,n=void 0,i=e.data.split(l).join("");if(e===this.leftGuard)if(this.prev instanceof s.default){var r=this.prev.length();this.prev.insertAt(r,i),t={startNode:this.prev.domNode,startOffset:r+i.length}}else n=document.createTextNode(i),this.parent.insertBefore(o.default.create(n),this),t={startNode:n,startOffset:i.length};else e===this.rightGuard&&(this.next instanceof s.default?(this.next.insertAt(0,i),t={startNode:this.next.domNode,startOffset:i.length}):(n=document.createTextNode(i),this.parent.insertBefore(o.default.create(n),this.next),t={startNode:n,startOffset:i.length}));return e.data=l,t}},{key:"update",value:function(e,t){var n=this;e.forEach((function(e){if("characterData"===e.type&&(e.target===n.leftGuard||e.target===n.rightGuard)){var i=n.restore(e.target);i&&(t.range=i)}}))}}]),t}(o.default.Embed);t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var i,r=n(0),o=(i=r)&&i.__esModule?i:{default:i},s={scope:o.default.Scope.BLOCK,whitelist:["right","center","justify"]},a=new o.default.Attributor.Attribute("align","align",s),l=new o.default.Attributor.Class("align","ql-align",s),c=new o.default.Attributor.Style("align","text-align",s);t.AlignAttribute=a,t.AlignClass=l,t.AlignStyle=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var i,r=n(0),o=(i=r)&&i.__esModule?i:{default:i},s=n(26),a=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),l=new s.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});t.BackgroundClass=a,t.BackgroundStyle=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var i,r=n(0),o=(i=r)&&i.__esModule?i:{default:i},s={scope:o.default.Scope.BLOCK,whitelist:["rtl"]},a=new o.default.Attributor.Attribute("direction","dir",s),l=new o.default.Attributor.Class("direction","ql-direction",s),c=new o.default.Attributor.Style("direction","direction",s);t.DirectionAttribute=a,t.DirectionClass=l,t.DirectionStyle=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var i,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},s=n(0),a=(i=s)&&i.__esModule?i:{default:i};function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u={scope:a.default.Scope.INLINE,whitelist:["serif","monospace"]},d=new a.default.Attributor.Class("font","ql-font",u),p=function(e){function t(){return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"value",value:function(e){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}(a.default.Attributor.Style),f=new p("font","font-family",u);t.FontStyle=f,t.FontClass=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var i,r=n(0),o=(i=r)&&i.__esModule?i:{default:i},s=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),a=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=s,t.SizeStyle=a},function(e,t,n){"use strict";e.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=s(n(0)),o=s(n(5));function s(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.lastRecorded=0,i.ignoreChange=!1,i.clear(),i.quill.on(o.default.events.EDITOR_CHANGE,(function(e,t,n,r){e!==o.default.events.TEXT_CHANGE||i.ignoreChange||(i.options.userOnly&&r!==o.default.sources.USER?i.transform(t):i.record(t,n))})),i.quill.keyboard.addBinding({key:"Z",shortKey:!0},i.undo.bind(i)),i.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},i.redo.bind(i)),/Win/i.test(navigator.platform)&&i.quill.keyboard.addBinding({key:"Y",shortKey:!0},i.redo.bind(i)),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.stack[t].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[e],o.default.sources.USER),this.ignoreChange=!1;var i=l(n[e]);this.quill.setSelection(i)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(t),i=Date.now();if(this.lastRecorded+this.options.delay>i&&this.stack.undo.length>0){var r=this.stack.undo.pop();n=n.compose(r.undo),e=r.redo.compose(e)}else this.lastRecorded=i;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(s(n(9)).default);function l(e){var t=e.reduce((function(e,t){return e+=t.delete||0}),0),n=e.length()-t;return function(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=r.default.query(e,r.default.Scope.BLOCK)})))}(e)&&(n-=1),n}a.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=a,t.getLastChangeIndex=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},o=h(n(3)),s=h(n(2)),a=h(n(8)),l=h(n(23)),c=h(n(34)),u=h(n(59)),d=h(n(60)),p=h(n(28)),f=h(n(61));function h(e){return e&&e.__esModule?e:{default:e}}function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=[!1,"center","right","justify"],b=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],v=[!1,"serif","monospace"],w=["1","2","3",!1],$=["small",!1,"large","huge"],_=function(e){function t(e,n){O(this,t);var i=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return e.emitter.listenDOM("click",document.body,(function t(n){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null==i.tooltip||i.tooltip.root.contains(n.target)||document.activeElement===i.tooltip.textbox||i.quill.hasFocus()||i.tooltip.hide(),null!=i.pickers&&i.pickers.forEach((function(e){e.container.contains(n.target)||e.close()}))})),i}return g(t,e),i(t,[{key:"addModule",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(e,t){e.forEach((function(e){(e.getAttribute("class")||"").split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n].rtl;else if("string"==typeof t[n])e.innerHTML=t[n];else{var i=e.value||"";null!=i&&t[n][i]&&(e.innerHTML=t[n][i])}}))}))}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=e.map((function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&S(e,y),new d.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&S(e,b,"background"===n?"#ffffff":"#000000"),new u.default(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?S(e,v):e.classList.contains("ql-header")?S(e,w):e.classList.contains("ql-size")&&S(e,$)),new p.default(e)})),this.quill.on(a.default.events.EDITOR_CHANGE,(function(){n.pickers.forEach((function(e){e.update()}))}))}}]),t}(c.default);_.DEFAULTS=(0,o.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",(function(){if(null!=t.files&&null!=t.files[0]){var n=new FileReader;n.onload=function(n){var i=e.quill.getSelection(!0);e.quill.updateContents((new s.default).retain(i.index).delete(i.length).insert({image:n.target.result}),a.default.sources.USER),e.quill.setSelection(i.index+1,a.default.sources.SILENT),t.value=""},n.readAsDataURL(t.files[0])}})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var x=function(e){function t(e,n){O(this,t);var i=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.textbox=i.root.querySelector('input[type="text"]'),i.listen(),i}return g(t,e),i(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){l.default.match(t,"enter")?(e.save(),t.preventDefault()):l.default.match(t,"escape")&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e,t,n=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var i=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",n,a.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",n,a.default.sources.USER)),this.quill.root.scrollTop=i;break;case"video":t=(e=n).match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/),n=t?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e;case"formula":if(!n)break;var r=this.quill.getSelection(!0);if(null!=r){var o=r.index+r.length;this.quill.insertEmbed(o,this.root.getAttribute("data-mode"),n,a.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(o+1," ",a.default.sources.USER),this.quill.setSelection(o+2,a.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}(f.default);function S(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var i=document.createElement("option");t===n?i.setAttribute("selected","selected"):i.setAttribute("value",t),e.appendChild(i)}))}t.BaseTooltip=x,t.default=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,i=this.iterator();n=i();){var r=n.length();if(e<r||t&&e===r&&(null==n.next||0!==n.next.length()))return[n,e];e-=r}return[null,0]},e.prototype.forEach=function(e){for(var t,n=this.iterator();t=n();)e(t)},e.prototype.forEachAt=function(e,t,n){if(!(t<=0))for(var i,r=this.find(e),o=r[0],s=e-r[1],a=this.iterator(o);(i=a())&&s<e+t;){var l=i.length();e>s?n(i,e-s,Math.min(t,s+l-e)):n(i,0,Math.min(l,e+t-s)),s+=l}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){for(var n,i=this.iterator();n=i();)t=e(t,n);return t},e}();t.default=i},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(17),s=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},l=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,a),n.attach(),n}return r(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,i,r){this.update(),e.prototype.formatAt.call(this,t,n,i,r)},t.prototype.insertAt=function(t,n,i){this.update(),e.prototype.insertAt.call(this,t,n,i)},t.prototype.optimize=function(t,n){var i=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);for(var r=[].slice.call(this.observer.takeRecords());r.length>0;)t.push(r.pop());for(var a=function(e,t){void 0===t&&(t=!0),null!=e&&e!==i&&null!=e.domNode.parentNode&&(null==e.domNode[s.DATA_KEY].mutations&&(e.domNode[s.DATA_KEY].mutations=[]),t&&a(e.parent))},l=function(e){null!=e.domNode[s.DATA_KEY]&&null!=e.domNode[s.DATA_KEY].mutations&&(e instanceof o.default&&e.children.forEach(l),e.optimize(n))},c=t,u=0;c.length>0;u+=1){if(u>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach((function(e){var t=s.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(a(s.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=s.find(e,!1);a(t,!1),t instanceof o.default&&t.children.forEach((function(e){a(e,!1)}))}))):"attributes"===e.type&&a(t.prev)),a(t))})),this.children.forEach(l),r=(c=[].slice.call(this.observer.takeRecords())).slice();r.length>0;)t.push(r.pop())}},t.prototype.update=function(t,n){var i=this;void 0===n&&(n={}),(t=t||this.observer.takeRecords()).map((function(e){var t=s.find(e.target,!0);return null==t?null:null==t.domNode[s.DATA_KEY].mutations?(t.domNode[s.DATA_KEY].mutations=[e],t):(t.domNode[s.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==i&&null!=e.domNode[s.DATA_KEY]&&e.update(e.domNode[s.DATA_KEY].mutations||[],n)})),null!=this.domNode[s.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[s.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=s.Scope.BLOCK_BLOT,t.tagName="DIV",t}(o.default);t.default=l},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(18),s=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,i){var r=this;n!==this.statics.blotName||i?e.prototype.format.call(this,n,i):(this.children.forEach((function(e){e instanceof o.default||(e=e.wrap(t.blotName,!0)),r.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,i,r){null!=this.formats()[i]||s.query(i,s.Scope.ATTRIBUTE)?this.isolate(t,n).format(i,r):e.prototype.formatAt.call(this,t,n,i,r)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var i=this.formats();if(0===Object.keys(i).length)return this.unwrap();var r=this.next;r instanceof t&&r.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}(i,r.formats())&&(r.moveChildren(this),r.remove())},t.blotName="inline",t.scope=s.Scope.INLINE_BLOT,t.tagName="SPAN",t}(o.default);t.default=a},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(18),s=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){var i=s.query(t.blotName).tagName;if(n.tagName!==i)return e.formats.call(this,n)},t.prototype.format=function(n,i){null!=s.query(n,s.Scope.BLOCK)&&(n!==this.statics.blotName||i?e.prototype.format.call(this,n,i):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,i,r){null!=s.query(i,s.Scope.BLOCK)?this.format(i,r):e.prototype.formatAt.call(this,t,n,i,r)},t.prototype.insertAt=function(t,n,i){if(null==i||null!=s.query(n,s.Scope.INLINE))e.prototype.insertAt.call(this,t,n,i);else{var r=this.split(t),o=s.create(n,i);r.parent.insertBefore(o,r)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=s.Scope.BLOCK_BLOT,t.tagName="P",t}(o.default);t.default=a},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,i,r){0===t&&n===this.length()?this.format(i,r):e.prototype.formatAt.call(this,t,n,i,r)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(n(19).default);t.default=o},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(19),s=n(1),a=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return r(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,i){null==i?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,i)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=s.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=s.Scope.INLINE_BLOT,t}(o.default);t.default=a},function(e,t,n){"use strict";var i=document.createElement("div");if(i.classList.toggle("test-class",!1),i.classList.contains("test-class")){var r=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)==!t?t:r.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var i=n.indexOf(e,t);return-1!==i&&i===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),i=n.length>>>0,r=arguments[1],o=0;o<i;o++)if(t=n[o],e.call(r,t,o,n))return t}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(e,t){var n=-1;function i(e,t,l){if(e==t)return e?[[0,e]]:[];(l<0||e.length<l)&&(l=null);var u=o(e,t),d=e.substring(0,u);u=s(e=e.substring(u),t=t.substring(u));var p=e.substring(e.length-u),f=function(e,t){var a;if(!e)return[[1,t]];if(!t)return[[n,e]];var l=e.length>t.length?e:t,c=e.length>t.length?t:e,u=l.indexOf(c);if(-1!=u)return a=[[1,l.substring(0,u)],[0,c],[1,l.substring(u+c.length)]],e.length>t.length&&(a[0][0]=a[2][0]=n),a;if(1==c.length)return[[n,e],[1,t]];var d=function(e,t){var n=e.length>t.length?e:t,i=e.length>t.length?t:e;if(n.length<4||2*i.length<n.length)return null;function r(e,t,n){for(var i,r,a,l,c=e.substring(n,n+Math.floor(e.length/4)),u=-1,d="";-1!=(u=t.indexOf(c,u+1));){var p=o(e.substring(n),t.substring(u)),f=s(e.substring(0,n),t.substring(0,u));d.length<f+p&&(d=t.substring(u-f,u)+t.substring(u,u+p),i=e.substring(0,n-f),r=e.substring(n+p),a=t.substring(0,u-f),l=t.substring(u+p))}return 2*d.length>=e.length?[i,r,a,l,d]:null}var a,l,c,u,d,p=r(n,i,Math.ceil(n.length/4)),f=r(n,i,Math.ceil(n.length/2));if(!p&&!f)return null;a=f?p&&p[4].length>f[4].length?p:f:p,e.length>t.length?(l=a[0],c=a[1],u=a[2],d=a[3]):(u=a[0],d=a[1],l=a[2],c=a[3]);var h=a[4];return[l,c,u,d,h]}(e,t);if(d){var p=d[0],f=d[1],h=d[2],O=d[3],m=d[4],g=i(p,h),y=i(f,O);return g.concat([[0,m]],y)}return function(e,t){for(var i=e.length,o=t.length,s=Math.ceil((i+o)/2),a=s,l=2*s,c=new Array(l),u=new Array(l),d=0;d<l;d++)c[d]=-1,u[d]=-1;c[a+1]=0,u[a+1]=0;for(var p=i-o,f=p%2!=0,h=0,O=0,m=0,g=0,y=0;y<s;y++){for(var b=-y+h;b<=y-O;b+=2){for(var v=a+b,w=(Q=b==-y||b!=y&&c[v-1]<c[v+1]?c[v+1]:c[v-1]+1)-b;Q<i&&w<o&&e.charAt(Q)==t.charAt(w);)Q++,w++;if(c[v]=Q,Q>i)O+=2;else if(w>o)h+=2;else if(f&&(x=a+p-b)>=0&&x<l&&-1!=u[x]&&Q>=(_=i-u[x]))return r(e,t,Q,w)}for(var $=-y+m;$<=y-g;$+=2){for(var _,x=a+$,S=(_=$==-y||$!=y&&u[x-1]<u[x+1]?u[x+1]:u[x-1]+1)-$;_<i&&S<o&&e.charAt(i-_-1)==t.charAt(o-S-1);)_++,S++;if(u[x]=_,_>i)g+=2;else if(S>o)m+=2;else if(!f){var Q;if((v=a+p-$)>=0&&v<l&&-1!=c[v])if(w=a+(Q=c[v])-v,Q>=(_=i-_))return r(e,t,Q,w)}}}return[[n,e],[1,t]]}(e,t)}(e=e.substring(0,e.length-u),t=t.substring(0,t.length-u));return d&&f.unshift([0,d]),p&&f.push([0,p]),a(f),null!=l&&(f=function(e,t){var i=function(e,t){if(0===t)return[0,e];for(var i=0,r=0;r<e.length;r++){var o=e[r];if(o[0]===n||0===o[0]){var s=i+o[1].length;if(t===s)return[r+1,e];if(t<s){e=e.slice();var a=t-i,l=[o[0],o[1].slice(0,a)],c=[o[0],o[1].slice(a)];return e.splice(r,1,l,c),[r+1,e]}i=s}}throw new Error("cursor_pos is out of bounds!")}(e,t),r=i[1],o=i[0],s=r[o],a=r[o+1];if(null==s)return e;if(0!==s[0])return e;if(null!=a&&s[1]+a[1]===a[1]+s[1])return r.splice(o,2,a,s),c(r,o,2);if(null!=a&&0===a[1].indexOf(s[1])){r.splice(o,2,[a[0],s[1]],[0,s[1]]);var l=a[1].slice(s[1].length);return l.length>0&&r.splice(o+2,0,[a[0],l]),c(r,o,3)}return e}(f,l)),f=function(e){for(var t=!1,i=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},r=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},o=2;o<e.length;o+=1)0===e[o-2][0]&&r(e[o-2][1])&&e[o-1][0]===n&&i(e[o-1][1])&&1===e[o][0]&&i(e[o][1])&&(t=!0,e[o-1][1]=e[o-2][1].slice(-1)+e[o-1][1],e[o][1]=e[o-2][1].slice(-1)+e[o][1],e[o-2][1]=e[o-2][1].slice(0,-1));if(!t)return e;var s=[];for(o=0;o<e.length;o+=1)e[o][1].length>0&&s.push(e[o]);return s}(f)}function r(e,t,n,r){var o=e.substring(0,n),s=t.substring(0,r),a=e.substring(n),l=t.substring(r),c=i(o,s),u=i(a,l);return c.concat(u)}function o(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,i=Math.min(e.length,t.length),r=i,o=0;n<r;)e.substring(o,r)==t.substring(o,r)?o=n=r:i=r,r=Math.floor((i-n)/2+n);return r}function s(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,i=Math.min(e.length,t.length),r=i,o=0;n<r;)e.substring(e.length-r,e.length-o)==t.substring(t.length-r,t.length-o)?o=n=r:i=r,r=Math.floor((i-n)/2+n);return r}function a(e){e.push([0,""]);for(var t,i=0,r=0,l=0,c="",u="";i<e.length;)switch(e[i][0]){case 1:l++,u+=e[i][1],i++;break;case n:r++,c+=e[i][1],i++;break;case 0:r+l>1?(0!==r&&0!==l&&(0!==(t=o(u,c))&&(i-r-l>0&&0==e[i-r-l-1][0]?e[i-r-l-1][1]+=u.substring(0,t):(e.splice(0,0,[0,u.substring(0,t)]),i++),u=u.substring(t),c=c.substring(t)),0!==(t=s(u,c))&&(e[i][1]=u.substring(u.length-t)+e[i][1],u=u.substring(0,u.length-t),c=c.substring(0,c.length-t))),0===r?e.splice(i-l,r+l,[1,u]):0===l?e.splice(i-r,r+l,[n,c]):e.splice(i-r-l,r+l,[n,c],[1,u]),i=i-r-l+(r?1:0)+(l?1:0)+1):0!==i&&0==e[i-1][0]?(e[i-1][1]+=e[i][1],e.splice(i,1)):i++,l=0,r=0,c="",u=""}""===e[e.length-1][1]&&e.pop();var d=!1;for(i=1;i<e.length-1;)0==e[i-1][0]&&0==e[i+1][0]&&(e[i][1].substring(e[i][1].length-e[i-1][1].length)==e[i-1][1]?(e[i][1]=e[i-1][1]+e[i][1].substring(0,e[i][1].length-e[i-1][1].length),e[i+1][1]=e[i-1][1]+e[i+1][1],e.splice(i-1,1),d=!0):e[i][1].substring(0,e[i+1][1].length)==e[i+1][1]&&(e[i-1][1]+=e[i+1][1],e[i][1]=e[i][1].substring(e[i+1][1].length)+e[i+1][1],e.splice(i+1,1),d=!0)),i++;d&&a(e)}var l=i;function c(e,t,n){for(var i=t+n-1;i>=0&&i>=t-1;i--)if(i+1<e.length){var r=e[i],o=e[i+1];r[0]===o[1]&&e.splice(i,2,[r[0],r[1]+o[1]])}return e}l.INSERT=1,l.DELETE=n,l.EQUAL=0,e.exports=l},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function i(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function r(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=n?i:r).supported=i,t.unsupported=r},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,i="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(i=!1)),s.prototype.eventNames=function(){var e,t,r=[];if(0===this._eventsCount)return r;for(t in e=this._events)n.call(e,t)&&r.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},s.prototype.listeners=function(e,t){var n=i?i+e:e,r=this._events[n];if(t)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var o=0,s=r.length,a=new Array(s);o<s;o++)a[o]=r[o].fn;return a},s.prototype.emit=function(e,t,n,r,o,s){var a=i?i+e:e;if(!this._events[a])return!1;var l,c,u=this._events[a],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,r),!0;case 5:return u.fn.call(u.context,t,n,r,o),!0;case 6:return u.fn.call(u.context,t,n,r,o,s),!0}for(c=1,l=new Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var p,f=u.length;for(c=0;c<f;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,n);break;case 4:u[c].fn.call(u[c].context,t,n,r);break;default:if(!l)for(p=1,l=new Array(d-1);p<d;p++)l[p-1]=arguments[p];u[c].fn.apply(u[c].context,l)}}return!0},s.prototype.on=function(e,t,n){var r=new o(t,n||this),s=i?i+e:e;return this._events[s]?this._events[s].fn?this._events[s]=[this._events[s],r]:this._events[s].push(r):(this._events[s]=r,this._eventsCount++),this},s.prototype.once=function(e,t,n){var r=new o(t,n||this,!0),s=i?i+e:e;return this._events[s]?this._events[s].fn?this._events[s]=[this._events[s],r]:this._events[s].push(r):(this._events[s]=r,this._eventsCount++),this},s.prototype.removeListener=function(e,t,n,o){var s=i?i+e:e;if(!this._events[s])return this;if(!t)return 0==--this._eventsCount?this._events=new r:delete this._events[s],this;var a=this._events[s];if(a.fn)a.fn!==t||o&&!a.once||n&&a.context!==n||(0==--this._eventsCount?this._events=new r:delete this._events[s]);else{for(var l=0,c=[],u=a.length;l<u;l++)(a[l].fn!==t||o&&!a[l].once||n&&a[l].context!==n)&&c.push(a[l]);c.length?this._events[s]=1===c.length?c[0]:c:0==--this._eventsCount?this._events=new r:delete this._events[s]}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=i?i+e:e,this._events[t]&&(0==--this._eventsCount?this._events=new r:delete this._events[t])):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prototype.setMaxListeners=function(){return this},s.prefixed=i,s.EventEmitter=s,void 0!==e&&(e.exports=s)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=b(n(3)),a=b(n(2)),l=b(n(0)),c=b(n(5)),u=b(n(10)),d=b(n(9)),p=n(36),f=n(37),h=b(n(13)),O=n(26),m=n(38),g=n(39),y=n(40);function b(e){return e&&e.__esModule?e:{default:e}}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=(0,u.default)("quill:clipboard"),$="__ql-matcher",_=[[Node.TEXT_NODE,z],[Node.TEXT_NODE,C],["br",function(e,t){return T(t,"\n")||t.insert("\n"),t}],[Node.ELEMENT_NODE,C],[Node.ELEMENT_NODE,N],[Node.ELEMENT_NODE,A],[Node.ELEMENT_NODE,j],[Node.ELEMENT_NODE,function(e,t){var n={},i=e.style||{};return i.fontStyle&&"italic"===P(e).fontStyle&&(n.italic=!0),i.fontWeight&&(P(e).fontWeight.startsWith("bold")||parseInt(P(e).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=k(t,n)),parseFloat(i.textIndent||0)>0&&(t=(new a.default).insert("\t").concat(t)),t}],["li",function(e,t){var n=l.default.query(e);if(null==n||"list-item"!==n.blotName||!T(t,"\n"))return t;for(var i=-1,r=e.parentNode;!r.classList.contains("ql-clipboard");)"list"===(l.default.query(r)||{}).blotName&&(i+=1),r=r.parentNode;return i<=0?t:t.compose((new a.default).retain(t.length()-1).retain(1,{indent:i}))}],["b",E.bind(E,"bold")],["i",E.bind(E,"italic")],["style",function(){return new a.default}]],x=[p.AlignAttribute,m.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),S=[p.AlignStyle,f.BackgroundStyle,O.ColorStyle,m.DirectionStyle,g.FontStyle,y.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),Q=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.quill.root.addEventListener("paste",i.onPaste.bind(i)),i.container=i.quill.addContainer("ql-clipboard"),i.container.setAttribute("contenteditable",!0),i.container.setAttribute("tabindex",-1),i.matchers=[],_.concat(i.options.matchers).forEach((function(e){var t=r(e,2),o=t[0],s=t[1];(n.matchVisual||s!==A)&&i.addMatcher(o,s)})),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"==typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[h.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new a.default).insert(n,v({},h.default.blotName,t[h.default.blotName]))}var i=this.prepareMatching(),o=r(i,2),s=o[0],l=o[1],c=R(this.container,s,l);return T(c,"\n")&&null==c.ops[c.ops.length-1].attributes&&(c=c.compose((new a.default).retain(c.length()-1).delete(1))),w.log("convert",this.container.innerHTML,c),this.container.innerHTML="",c}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.default.sources.API;if("string"==typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,c.default.sources.SILENT);else{var i=this.convert(t);this.quill.updateContents((new a.default).retain(e).concat(i),n),this.quill.setSelection(e+i.length(),c.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),i=(new a.default).retain(n.index),r=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(c.default.sources.SILENT),setTimeout((function(){i=i.concat(t.convert()).delete(n.length),t.quill.updateContents(i,c.default.sources.USER),t.quill.setSelection(i.length()-n.length,c.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=r,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(i){var o=r(i,2),s=o[0],a=o[1];switch(s){case Node.TEXT_NODE:n.push(a);break;case Node.ELEMENT_NODE:t.push(a);break;default:[].forEach.call(e.container.querySelectorAll(s),(function(e){e[$]=e[$]||[],e[$].push(a)}))}})),[t,n]}}]),t}(d.default);function k(e,t,n){return"object"===(void 0===t?"undefined":i(t))?Object.keys(t).reduce((function(e,n){return k(e,n,t[n])}),e):e.reduce((function(e,i){return i.attributes&&i.attributes[t]?e.push(i):e.insert(i.insert,(0,s.default)({},v({},t,n),i.attributes))}),new a.default)}function P(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function T(e,t){for(var n="",i=e.ops.length-1;i>=0&&n.length<t.length;--i){var r=e.ops[i];if("string"!=typeof r.insert)break;n=r.insert+n}return n.slice(-1*t.length)===t}function q(e){if(0===e.childNodes.length)return!1;var t=P(e);return["block","list-item"].indexOf(t.display)>-1}function R(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce((function(t,n){return n(e,t)}),new a.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(i,r){var o=R(r,t,n);return r.nodeType===e.ELEMENT_NODE&&(o=t.reduce((function(e,t){return t(r,e)}),o),o=(r[$]||[]).reduce((function(e,t){return t(r,e)}),o)),i.concat(o)}),new a.default):new a.default}function E(e,t,n){return k(n,e,!0)}function j(e,t){var n=l.default.Attributor.Attribute.keys(e),i=l.default.Attributor.Class.keys(e),r=l.default.Attributor.Style.keys(e),o={};return n.concat(i).concat(r).forEach((function(t){var n=l.default.query(t,l.default.Scope.ATTRIBUTE);null!=n&&(o[n.attrName]=n.value(e),o[n.attrName])||(null==(n=x[t])||n.attrName!==t&&n.keyName!==t||(o[n.attrName]=n.value(e)||void 0),null==(n=S[t])||n.attrName!==t&&n.keyName!==t||(n=S[t],o[n.attrName]=n.value(e)||void 0))})),Object.keys(o).length>0&&(t=k(t,o)),t}function N(e,t){var n=l.default.query(e);if(null==n)return t;if(n.prototype instanceof l.default.Embed){var i={},r=n.value(e);null!=r&&(i[n.blotName]=r,t=(new a.default).insert(i,n.formats(e)))}else"function"==typeof n.formats&&(t=k(t,n.blotName,n.formats(e)));return t}function C(e,t){return T(t,"\n")||(q(e)||t.length()>0&&e.nextSibling&&q(e.nextSibling))&&t.insert("\n"),t}function A(e,t){if(q(e)&&null!=e.nextElementSibling&&!T(t,"\n\n")){var n=e.offsetHeight+parseFloat(P(e).marginTop)+parseFloat(P(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function z(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!P(e.parentNode).whiteSpace.startsWith("pre")){var i=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,i.bind(i,!0)),(null==e.previousSibling&&q(e.parentNode)||null!=e.previousSibling&&q(e.previousSibling))&&(n=n.replace(/^\s+/,i.bind(i,!1))),(null==e.nextSibling&&q(e.parentNode)||null!=e.nextSibling&&q(e.nextSibling))&&(n=n.replace(/\s+$/,i.bind(i,!1)))}return t.insert(n)}Q.DEFAULTS={matchers:[],matchVisual:!0},t.default=Q,t.matchAttributor=j,t.matchBlot=N,t.matchNewline=C,t.matchSpacing=A,t.matchText=z},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},s=n(6);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){return a(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"optimize",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(((i=s)&&i.__esModule?i:{default:i}).default);c.blotName="bold",c.tagName=["STRONG","B"],t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=u(n(2)),s=u(n(0)),a=u(n(5)),l=u(n(10)),c=u(n(9));function u(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var p=(0,l.default)("quill:toolbar"),f=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r,o=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(Array.isArray(o.options.container)){var s=document.createElement("div");O(s,o.options.container),e.container.parentNode.insertBefore(s,e.container),o.container=s}else"string"==typeof o.options.container?o.container=document.querySelector(o.options.container):o.container=o.options.container;return o.container instanceof HTMLElement?(o.container.classList.add("ql-toolbar"),o.controls=[],o.handlers={},Object.keys(o.options.handlers).forEach((function(e){o.addHandler(e,o.options.handlers[e])})),[].forEach.call(o.container.querySelectorAll("button, select"),(function(e){o.attach(e)})),o.quill.on(a.default.events.EDITOR_CHANGE,(function(e,t){e===a.default.events.SELECTION_CHANGE&&o.update(t)})),o.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){var e=o.quill.selection.getRange(),t=i(e,1)[0];o.update(t)})),o):(r=p.error("Container required for toolbar",o.options),d(o,r))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=[].find.call(e.classList,(function(e){return 0===e.indexOf("ql-")}));if(n){if(n=n.slice("ql-".length),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void p.warn("ignoring attaching to disabled format",n,e);if(null==s.default.query(n))return void p.warn("ignoring attaching to nonexistent format",n,e)}var r="SELECT"===e.tagName?"change":"click";e.addEventListener(r,(function(r){var l=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var c=e.options[e.selectedIndex];l=!c.hasAttribute("selected")&&(c.value||!1)}else l=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),r.preventDefault();t.quill.focus();var u=t.quill.selection.getRange(),d=i(u,1)[0];if(null!=t.handlers[n])t.handlers[n].call(t,l);else if(s.default.query(n).prototype instanceof s.default.Embed){if(!(l=prompt("Enter "+n)))return;t.quill.updateContents((new o.default).retain(d.index).delete(d.length).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,l)),a.default.sources.USER)}else t.quill.format(n,l,a.default.sources.USER);t.update(d)})),this.controls.push([n,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(n){var r=i(n,2),o=r[0],s=r[1];if("SELECT"===s.tagName){var a=void 0;if(null==e)a=null;else if(null==t[o])a=s.querySelector("option[selected]");else if(!Array.isArray(t[o])){var l=t[o];"string"==typeof l&&(l=l.replace(/\"/g,'\\"')),a=s.querySelector('option[value="'+l+'"]')}null==a?(s.value="",s.selectedIndex=-1):a.selected=!0}else if(null==e)s.classList.remove("ql-active");else if(s.hasAttribute("value")){var c=t[o]===s.getAttribute("value")||null!=t[o]&&t[o].toString()===s.getAttribute("value")||null==t[o]&&!s.getAttribute("value");s.classList.toggle("ql-active",c)}else s.classList.toggle("ql-active",null!=t[o])}))}}]),t}(c.default);function h(e,t,n){var i=document.createElement("button");i.setAttribute("type","button"),i.classList.add("ql-"+t),null!=n&&(i.value=n),e.appendChild(i)}function O(e,t){Array.isArray(t[0])||(t=[t]),t.forEach((function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach((function(e){if("string"==typeof e)h(n,e);else{var t=Object.keys(e)[0],i=e[t];Array.isArray(i)?function(e,t,n){var i=document.createElement("select");i.classList.add("ql-"+t),n.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),i.appendChild(t)})),e.appendChild(i)}(n,t,i):h(n,t,i)}})),e.appendChild(n)}))}f.DEFAULTS={},f.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(t){null!=s.default.query(t,s.default.Scope.INLINE)&&e.quill.format(t,!1)}))}else this.quill.removeFormat(t,a.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",a.default.sources.USER):e||"right"!==t||this.quill.format("align",!1,a.default.sources.USER),this.quill.format("direction",e,a.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),i=parseInt(n.indent||0);if("+1"===e||"-1"===e){var r="+1"===e?1:-1;"rtl"===n.direction&&(r*=-1),this.quill.format("indent",i+r,a.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,a.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,a.default.sources.USER):this.quill.format("list","unchecked",a.default.sources.USER):this.quill.format("list",e,a.default.sources.USER)}}},t.default=f,t.addControls=O},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},s=n(28),a=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return i.label.innerHTML=n,i.container.classList.add("ql-color-picker"),[].slice.call(i.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(e){e.classList.add("ql-primary")})),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"buildItem",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return n.style.backgroundColor=e.getAttribute("value")||"",n}},{key:"selectItem",value:function(e,n){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n);var i=this.label.querySelector(".ql-color-label"),r=e&&e.getAttribute("data-value")||"";i&&("line"===i.tagName?i.style.stroke=r:i.style.fill=r)}}]),t}(((i=s)&&i.__esModule?i:{default:i}).default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},s=n(28),a=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return i.container.classList.add("ql-icon-picker"),[].forEach.call(i.container.querySelectorAll(".ql-picker-item"),(function(e){e.innerHTML=n[e.getAttribute("data-value")||""]})),i.defaultItem=i.container.querySelector(".ql-selected"),i.selectItem(i.defaultItem),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"selectItem",value:function(e,n){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(((i=s)&&i.__esModule?i:{default:i}).default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function(){function e(t,n){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){i.root.style.marginTop=-1*i.quill.root.scrollTop+"px"})),this.hide()}return i(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var i=this.boundsContainer.getBoundingClientRect(),r=this.root.getBoundingClientRect(),o=0;if(r.right>i.right&&(o=i.right-r.right,this.root.style.left=t+o+"px"),r.left<i.left&&(o=i.left-r.left,this.root.style.left=t+o+"px"),r.bottom>i.bottom){var s=r.bottom-r.top,a=e.bottom-e.top+s;this.root.style.top=n-a+"px",this.root.classList.add("ql-flip")}return o}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=f(n(3)),a=f(n(8)),l=n(43),c=f(l),u=f(n(27)),d=n(15),p=f(n(41));function f(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],y=function(e){function t(e,n){h(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=g);var i=O(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.quill.container.classList.add("ql-snow"),i}return m(t,e),o(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),p.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),p.default),this.tooltip=new b(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(t,n){e.handlers.link.call(e,!n.format.link)}))}}]),t}(c.default);y.DEFAULTS=(0,s.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var b=function(e){function t(e,n){h(this,t);var i=O(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.preview=i.root.querySelector("a.ql-preview"),i}return m(t,e),o(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(t){if(null!=e.linkRange){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,"link",!1,a.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()})),this.quill.on(a.default.events.SELECTION_CHANGE,(function(t,n,r){if(null!=t){if(0===t.length&&r===a.default.sources.USER){var o=e.quill.scroll.descendant(u.default,t.index),s=i(o,2),l=s[0],c=s[1];if(null!=l){e.linkRange=new d.Range(t.index-c,l.length());var p=u.default.formats(l.domNode);return e.preview.textContent=p,e.preview.setAttribute("href",p),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}}))}},{key:"show",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}(l.BaseTooltip);b.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=C(n(29)),r=n(36),o=n(38),s=n(64),a=C(n(65)),l=C(n(66)),c=n(67),u=C(c),d=n(37),p=n(26),f=n(39),h=n(40),O=C(n(56)),m=C(n(68)),g=C(n(27)),y=C(n(69)),b=C(n(70)),v=C(n(71)),w=C(n(72)),$=C(n(73)),_=n(13),x=C(_),S=C(n(74)),Q=C(n(75)),k=C(n(57)),P=C(n(41)),T=C(n(28)),q=C(n(59)),R=C(n(60)),E=C(n(61)),j=C(n(108)),N=C(n(62));function C(e){return e&&e.__esModule?e:{default:e}}i.default.register({"attributors/attribute/direction":o.DirectionAttribute,"attributors/class/align":r.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":p.ColorClass,"attributors/class/direction":o.DirectionClass,"attributors/class/font":f.FontClass,"attributors/class/size":h.SizeClass,"attributors/style/align":r.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":p.ColorStyle,"attributors/style/direction":o.DirectionStyle,"attributors/style/font":f.FontStyle,"attributors/style/size":h.SizeStyle},!0),i.default.register({"formats/align":r.AlignClass,"formats/direction":o.DirectionClass,"formats/indent":s.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":p.ColorStyle,"formats/font":f.FontClass,"formats/size":h.SizeClass,"formats/blockquote":a.default,"formats/code-block":x.default,"formats/header":l.default,"formats/list":u.default,"formats/bold":O.default,"formats/code":_.Code,"formats/italic":m.default,"formats/link":g.default,"formats/script":y.default,"formats/strike":b.default,"formats/underline":v.default,"formats/image":w.default,"formats/video":$.default,"formats/list/item":c.ListItem,"modules/formula":S.default,"modules/syntax":Q.default,"modules/toolbar":k.default,"themes/bubble":j.default,"themes/snow":N.default,"ui/icons":P.default,"ui/picker":T.default,"ui/icon-picker":R.default,"ui/color-picker":q.default,"ui/tooltip":E.default},!0),t.default=i.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var i,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},s=n(0),a=(i=s)&&i.__esModule?i:{default:i};function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"add",value:function(e,n){if("+1"===n||"-1"===n){var i=this.value(e)||0;n="+1"===n?i+1:i-1}return 0===n?(this.remove(e),!0):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,n)}},{key:"canAdd",value:function(e,n){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,n)||o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(n))}},{key:"value",value:function(e){return parseInt(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}(a.default.Attributor.Class),d=new u("indent","ql-indent",{scope:a.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(4);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var a=function(e){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((i=r)&&i.__esModule?i:{default:i}).default);a.blotName="blockquote",a.tagName="blockquote",t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(4);function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var l=function(e){function t(){return s(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(((i=o)&&i.__esModule?i:{default:i}).default);l.blotName="header",l.tagName=["H1","H2","H3","H4","H5","H6"],t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},o=l(n(0)),s=l(n(4)),a=l(n(25));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(){return c(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),i(t,[{key:"format",value:function(e,n){e!==f.blotName||n?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n):this.replaceWith(o.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,n){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,n),this):(this.parent.unwrap(),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,n))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:r(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}(s.default);p.blotName="list-item",p.tagName="LI";var f=function(e){function t(e){c(this,t);var n=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),i=function(t){if(t.target.parentNode===e){var i=n.statics.formats(e),r=o.default.find(t.target);"checked"===i?r.format("list","unchecked"):"unchecked"===i&&r.format("list","checked")}};return e.addEventListener("touchstart",i),e.addEventListener("mousedown",i),n}return d(t,e),i(t,null,[{key:"create",value:function(e){var n="ordered"===e?"OL":"UL",i=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return"checked"!==e&&"unchecked"!==e||i.setAttribute("data-checked","checked"===e),i}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),i(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return e={},t=this.statics.blotName,n=this.statics.formats(this.domNode),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"insertBefore",value:function(e,n){if(e instanceof p)r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var i=null==n?this.length():n.offset(this),o=this.split(i);o.parent.insertBefore(e,o)}}},{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=o.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(a.default);f.blotName="list",f.scope=o.default.Scope.BLOCK_BLOT,f.tagName=["OL","UL"],f.defaultChild="list-item",f.allowedChildren=[p],t.ListItem=p,t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(56);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var a=function(e){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((i=r)&&i.__esModule?i:{default:i}).default);a.blotName="italic",a.tagName=["EM","I"],t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},s=n(6);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){return a(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}(((i=s)&&i.__esModule?i:{default:i}).default);c.blotName="script",c.tagName=["SUB","SUP"],t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(6);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var a=function(e){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((i=r)&&i.__esModule?i:{default:i}).default);a.blotName="strike",a.tagName="S",t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(6);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"fun
|
|