Pods – Custom Content Types and Fields - Version 2.9.3

Version Description

  • August 18th, 2022 =

  • Fixed: Resolve additional issue with WPGraphQL on some PHP configurations. #6868 (@sc0ttkclark)

  • 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)

  • 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)

  • Fixed: A development build has been resolved which broke the Code editor field. #6870 (@JoryHogeveen, @sc0ttkclark)

Download this release

Release Info

Developer sc0ttkclark
Plugin Icon 128x128 Pods – Custom Content Types and Fields
Version 2.9.3
Comparing to
See all releases

Code changes from version 2.9.2 to 2.9.3

classes/PodsForm.php CHANGED
@@ -244,6 +244,8 @@ class PodsForm {
244
  $data = $options['data'];
245
  }
246
 
 
 
247
  // Start field render.
248
  ob_start();
249
 
@@ -276,6 +278,11 @@ class PodsForm {
276
  // @todo Move these custom field methods into real/faux field classes
277
  echo call_user_func( array( get_class(), 'field_' . $type ), $name, $value, $options );
278
  } elseif ( is_object( self::$loaded[ $type ] ) && method_exists( self::$loaded[ $type ], 'input' ) ) {
 
 
 
 
 
279
  self::$loaded[ $type ]->input( $name, $value, $options, $pod, $id );
280
  } else {
281
  /**
@@ -1770,7 +1777,7 @@ class PodsForm {
1770
  'wysiwyg',
1771
  ];
1772
 
1773
- $field_types = apply_filters( 'pods_repeatable_field_types', $field_types );
1774
  }
1775
 
1776
  return $field_types;
244
  $data = $options['data'];
245
  }
246
 
247
+ $repeatable_field_types = self::repeatable_field_types();
248
+
249
  // Start field render.
250
  ob_start();
251
 
278
  // @todo Move these custom field methods into real/faux field classes
279
  echo call_user_func( array( get_class(), 'field_' . $type ), $name, $value, $options );
280
  } elseif ( is_object( self::$loaded[ $type ] ) && method_exists( self::$loaded[ $type ], 'input' ) ) {
281
+ // Force non-repeatable field types to be non-repeatable even if option is set to 1.
282
+ if ( ! empty( $options['repeatable'] ) && ! in_array( $type, $repeatable_field_types, true ) ) {
283
+ $options['repeatable'] = 0;
284
+ }
285
+
286
  self::$loaded[ $type ]->input( $name, $value, $options, $pod, $id );
287
  } else {
288
  /**
1777
  'wysiwyg',
1778
  ];
1779
 
1780
+ $field_types = (array) apply_filters( 'pods_repeatable_field_types', $field_types );
1781
  }
1782
 
1783
  return $field_types;
classes/fields/wysiwyg.php CHANGED
@@ -46,9 +46,9 @@ class PodsField_WYSIWYG extends PodsField {
46
  'type' => 'pick',
47
  'data' => apply_filters(
48
  'pods_form_ui_field_wysiwyg_editors', array(
49
- 'tinymce' => __( 'TinyMCE (WP Default)', 'pods' ),
50
  'quill' => __( 'Quill Editor (Limited line break functionality)', 'pods' ),
51
- 'cleditor' => __( 'CLEditor (No longer available, now using Quill Editor)', 'pods' ),
52
  )
53
  ),
54
  'pick_show_select_text' => 0,
@@ -229,6 +229,11 @@ class PodsField_WYSIWYG extends PodsField {
229
  $options = ( is_array( $options ) || is_object( $options ) ) ? $options : (array) $options;
230
  $form_field_type = PodsForm::$field_type;
231
 
 
 
 
 
 
232
  $value = $this->normalize_value_for_input( $value, $options, "\n" );
233
 
234
  // Normalize the line breaks for React.
46
  'type' => 'pick',
47
  'data' => apply_filters(
48
  'pods_form_ui_field_wysiwyg_editors', array(
49
+ 'tinymce' => __( 'TinyMCE (WP Default, cannot be used with repeatable fields)', 'pods' ),
50
  'quill' => __( 'Quill Editor (Limited line break functionality)', 'pods' ),
51
+ 'cleditor' => __( 'CLEditor (No longer available, the fallback uses Quill Editor)', 'pods' ),
52
  )
53
  ),
54
  'pick_show_select_text' => 0,
229
  $options = ( is_array( $options ) || is_object( $options ) ) ? $options : (array) $options;
230
  $form_field_type = PodsForm::$field_type;
231
 
232
+ // Force TinyMCE repeatable fields to not be repeatable because it lacks compatibility.
233
+ if ( 1 === (int) pods_v( 'repeatable', $options ) && 'tinymce' === pods_v( static::$type . '_editor', $options, 'tinymce', true ) ) {
234
+ $options['repeatable'] = 0;
235
+ }
236
+
237
  $value = $this->normalize_value_for_input( $value, $options, "\n" );
238
 
239
  // Normalize the line breaks for React.
init.php CHANGED
@@ -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.2
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.2' );
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.3
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.3' );
47
 
48
  // Current database version, this is the last version the database changed.
49
  define( 'PODS_DB_VERSION', '2.3.5' );
readme.txt CHANGED
@@ -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.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -165,6 +165,13 @@ Pods really wouldn't be where it is without all the contributions from our [dono
165
 
166
  == Changelog ==
167
 
 
 
 
 
 
 
 
168
  = 2.9.2 - August 16th, 2022 =
169
 
170
  * Tweak: Improve the repeatable field UI elements so they blend in more. #6853 #6854 (@JoryHogeveen, @sc0ttkclark)
5
  Requires at least: 5.7
6
  Tested up to: 6.1
7
  Requires PHP: 5.6
8
+ Stable tag: 2.9.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
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)
171
+ * 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)
172
+ * 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)
173
+ * Fixed: A development build has been resolved which broke the Code editor field. #6870 (@JoryHogeveen, @sc0ttkclark)
174
+
175
  = 2.9.2 - August 16th, 2022 =
176
 
177
  * Tweak: Improve the repeatable field UI elements so they blend in more. #6853 #6854 (@JoryHogeveen, @sc0ttkclark)
src/Pods/Pod_Manager.php CHANGED
@@ -60,14 +60,14 @@ class Pod_Manager {
60
  $key .= '/' . $id;
61
  }
62
 
63
- if ( isset( self::$pods[ $key ] ) ) {
64
- if ( $id && ! $store_by_id && (int) self::$pods[ $key ]->id() !== (int) $id ) {
65
- self::$pods[ $key ]->fetch( $id );
66
  } elseif ( $find ) {
67
- self::$pods[ $key ]->find( $find );
68
  }
69
 
70
- return self::$pods[ $key ];
71
  }
72
 
73
  $pod = pods( $args['name'], $id );
@@ -87,7 +87,7 @@ class Pod_Manager {
87
  }
88
 
89
  if ( $pod ) {
90
- self::$pods[ $key ] = $pod;
91
  }
92
 
93
  return $pod;
60
  $key .= '/' . $id;
61
  }
62
 
63
+ if ( isset( $this->instances[ $key ] ) ) {
64
+ if ( $id && ! $store_by_id && (int) $this->instances[ $key ]->id() !== (int) $id ) {
65
+ $this->instances[ $key ]->fetch( $id );
66
  } elseif ( $find ) {
67
+ $this->instances[ $key ]->find( $find );
68
  }
69
 
70
+ return $this->instances[ $key ];
71
  }
72
 
73
  $pod = pods( $args['name'], $id );
87
  }
88
 
89
  if ( $pod ) {
90
+ $this->instances[ $key ] = $pod;
91
  }
92
 
93
  return $pod;
ui/js/dfv/pods-dfv.min.asset.json CHANGED
@@ -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":"893a64f46ab7f11daded"}
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":"7137861ac1c4dd6a69fa"}
ui/js/dfv/pods-dfv.min.js CHANGED
@@ -1 +1 @@
1
- (()=>{var e={4184:(e,t)=>{var i;!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var i=arguments[t];if(i){var o=typeof i;if("string"===o||"number"===o)e.push(i);else if(Array.isArray(i)){if(i.length){var s=r.apply(null,i);s&&e.push(s)}}else if("object"===o)if(i.toString===Object.prototype.toString)for(var l in i)n.call(i,l)&&i[l]&&e.push(l);else e.push(i.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(i=function(){return r}.apply(t,[]))||(e.exports=i)}()},1689:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(8081),r=i.n(n),o=i(3645),s=i.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 l=s},7006:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(8081),r=i.n(n),o=i(3645),s=i.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 l=s},7430:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(8081),r=i.n(n),o=i(3645),s=i.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 l=s},2732:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(8081),r=i.n(n),o=i(3645),s=i.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 l=s},989:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(8081),r=i.n(n),o=i(3645),s=i.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 l=s},2037:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(8081),r=i.n(n),o=i(3645),s=i.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 l=s},843:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(8081),r=i.n(n),o=i(3645),s=i.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 l=s},7862:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(8081),r=i.n(n),o=i(3645),s=i.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 l=s},2607:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(8081),r=i.n(n),o=i(3645),s=i.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 l=s},3828:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(8081),r=i.n(n),o=i(3645),s=i.n(o)()(r());s.push([e.id,".pods-field-description{clear:both}",""]);const l=s},7007:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(8081),r=i.n(n),o=i(3645),s=i.n(o)()(r());s.push([e.id,".pods-field-label{margin-bottom:.2em;display:block}.pods-field-label__required{color:red}",""]);const l=s},3418:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(8081),r=i.n(n),o=i(3645),s=i.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 l=s},4477:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(8081),r=i.n(n),o=i(3645),s=i.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 l=s},6478:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(8081),r=i.n(n),o=i(3645),s=i.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 l=s},1753:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(8081),r=i.n(n),o=i(3645),s=i.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 l=s},9160:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(8081),r=i.n(n),o=i(3645),s=i.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 l=s},515:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(8081),r=i.n(n),o=i(3645),s=i.n(o)()(r());s.push([e.id,".pods-code-field{border:1px solid #e5e5e5}.pods-code-field .cm-content{white-space:pre-wrap}",""]);const l=s},7310:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(8081),r=i.n(n),o=i(3645),s=i.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 l=s},4622:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(8081),r=i.n(n),o=i(3645),s=i.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 l=s},556:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(8081),r=i.n(n),o=i(3645),s=i.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 l=s},7442:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(8081),r=i.n(n),o=i(3645),s=i.n(o)()(r());s.push([e.id,"h3.pods-form-ui-heading.pods-form-ui-heading-label_heading{padding:8px 0 !important}",""]);const l=s},339:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(8081),r=i.n(n),o=i(3645),s=i.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 l=s},3117:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(8081),r=i.n(n),o=i(3645),s=i.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 l=s},2810:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(8081),r=i.n(n),o=i(3645),s=i.n(o)()(r());s.push([e.id,"ul.pods-checkbox-pick,ul.pods-checkbox-pick li{list-style:none}",""]);const l=s},4039:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(8081),r=i.n(n),o=i(3645),s=i.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 l=s},2235:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(8081),r=i.n(n),o=i(3645),s=i.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 l=s},8598:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(8081),r=i.n(n),o=i(3645),s=i.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 l=s},110:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(8081),r=i.n(n),o=i(3645),s=i.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 l=s},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i="",n=void 0!==t[5];return t[4]&&(i+="@supports (".concat(t[4],") {")),t[2]&&(i+="@media ".concat(t[2]," {")),n&&(i+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),i+=e(t),n&&(i+="}"),t[2]&&(i+="}"),t[4]&&(i+="}"),i})).join("")},t.i=function(e,i,n,r,o){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(n)for(var l=0;l<this.length;l++){var a=this[l][0];null!=a&&(s[a]=!0)}for(var c=0;c<e.length;c++){var h=[].concat(e[c]);n&&s[h[0]]||(void 0!==o&&(void 0===h[5]||(h[1]="@layer".concat(h[5].length>0?" ".concat(h[5]):""," {").concat(h[1],"}")),h[5]=o),i&&(h[2]?(h[1]="@media ".concat(h[2]," {").concat(h[1],"}"),h[2]=i):h[2]=i),r&&(h[4]?(h[1]="@supports (".concat(h[4],") {").concat(h[1],"}"),h[4]=r):h[4]="".concat(r)),t.push(h))}},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===i}(e)}(e)};var i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a((i=e,Array.isArray(i)?[]:{}),e,t):e;var i}function r(e,t,i){return e.concat(t).map((function(e){return n(e,i)}))}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 l(e,t,i){var r={};return i.isMergeableObject(e)&&o(e).forEach((function(t){r[t]=n(e[t],i)})),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)&&i.isMergeableObject(t[o])?r[o]=function(e,t){if(!t.customMerge)return a;var i=t.customMerge(e);return"function"==typeof i?i:a}(o,i)(e[o],t[o],i):r[o]=n(t[o],i))})),r}function a(e,i,o){(o=o||{}).arrayMerge=o.arrayMerge||r,o.isMergeableObject=o.isMergeableObject||t,o.cloneUnlessOtherwiseSpecified=n;var s=Array.isArray(i);return s===Array.isArray(e)?s?o.arrayMerge(e,i,o):l(e,i,o):n(i,o)}a.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,i){return a(e,i,t)}),{})};var c=a;e.exports=c},9960:(e,t)=>{"use strict";var i;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"}(i=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===i.Tag||e.type===i.Script||e.type===i.Style},t.Root=i.Root,t.Text=i.Text,t.Directive=i.Directive,t.Comment=i.Comment,t.Script=i.Script,t.Style=i.Style,t.Tag=i.Tag,t.CDATA=i.CDATA,t.Doctype=i.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,i)=>{"use strict";var n=i(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},l={};function a(e){return n.isMemo(e)?s:l[e.$$typeof]||r}l[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[n.Memo]=s;var c=Object.defineProperty,h=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,i,n){if("string"!=typeof i){if(p){var r=f(i);r&&r!==p&&e(t,r,n)}var s=h(i);u&&(s=s.concat(u(i)));for(var l=a(t),m=a(i),g=0;g<s.length;++g){var O=s[g];if(!(o[O]||n&&n[O]||m&&m[O]||l&&l[O])){var v=d(i,O);try{c(t,O,v)}catch(e){}}}}return t}},6103:(e,t)=>{"use strict";var i="function"==typeof Symbol&&Symbol.for,n=i?Symbol.for("react.element"):60103,r=i?Symbol.for("react.portal"):60106,o=i?Symbol.for("react.fragment"):60107,s=i?Symbol.for("react.strict_mode"):60108,l=i?Symbol.for("react.profiler"):60114,a=i?Symbol.for("react.provider"):60109,c=i?Symbol.for("react.context"):60110,h=i?Symbol.for("react.async_mode"):60111,u=i?Symbol.for("react.concurrent_mode"):60111,d=i?Symbol.for("react.forward_ref"):60112,f=i?Symbol.for("react.suspense"):60113,p=i?Symbol.for("react.suspense_list"):60120,m=i?Symbol.for("react.memo"):60115,g=i?Symbol.for("react.lazy"):60116,O=i?Symbol.for("react.block"):60121,v=i?Symbol.for("react.fundamental"):60117,y=i?Symbol.for("react.responder"):60118,b=i?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case h:case u:case o:case l:case s:case f:return e;default:switch(e=e&&e.$$typeof){case c:case d:case g:case m:case a:return e;default:return t}}case r:return t}}}function x(e){return w(e)===u}t.AsyncMode=h,t.ConcurrentMode=u,t.ContextConsumer=c,t.ContextProvider=a,t.Element=n,t.ForwardRef=d,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=r,t.Profiler=l,t.StrictMode=s,t.Suspense=f,t.isAsyncMode=function(e){return x(e)||w(e)===h},t.isConcurrentMode=x,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===a},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===r},t.isProfiler=function(e){return w(e)===l},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===u||e===l||e===s||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===a||e.$$typeof===c||e.$$typeof===d||e.$$typeof===v||e.$$typeof===y||e.$$typeof===b||e.$$typeof===O)},t.typeOf=w},1296:(e,t,i)=>{"use strict";e.exports=i(6103)},8552:(e,t,i)=>{var n=i(852)(i(8638),"DataView");e.exports=n},1989:(e,t,i)=>{var n=i(1789),r=i(401),o=i(7667),s=i(1327),l=i(1866);function a(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=r,a.prototype.get=o,a.prototype.has=s,a.prototype.set=l,e.exports=a},8407:(e,t,i)=>{var n=i(7040),r=i(4125),o=i(2117),s=i(7518),l=i(4705);function a(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=r,a.prototype.get=o,a.prototype.has=s,a.prototype.set=l,e.exports=a},7071:(e,t,i)=>{var n=i(852)(i(8638),"Map");e.exports=n},3369:(e,t,i)=>{var n=i(4785),r=i(1285),o=i(6e3),s=i(9916),l=i(5265);function a(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=r,a.prototype.get=o,a.prototype.has=s,a.prototype.set=l,e.exports=a},3818:(e,t,i)=>{var n=i(852)(i(8638),"Promise");e.exports=n},8525:(e,t,i)=>{var n=i(852)(i(8638),"Set");e.exports=n},8668:(e,t,i)=>{var n=i(3369),r=i(619),o=i(2385);function s(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new n;++t<i;)this.add(e[t])}s.prototype.add=s.prototype.push=r,s.prototype.has=o,e.exports=s},6384:(e,t,i)=>{var n=i(8407),r=i(7465),o=i(3779),s=i(7599),l=i(4758),a=i(4309);function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=s,c.prototype.has=l,c.prototype.set=a,e.exports=c},2705:(e,t,i)=>{var n=i(8638).Symbol;e.exports=n},1149:(e,t,i)=>{var n=i(8638).Uint8Array;e.exports=n},577:(e,t,i)=>{var n=i(852)(i(8638),"WeakMap");e.exports=n},4963:e=>{e.exports=function(e,t){for(var i=-1,n=null==e?0:e.length,r=0,o=[];++i<n;){var s=e[i];t(s,i,e)&&(o[r++]=s)}return o}},4636:(e,t,i)=>{var n=i(2545),r=i(5694),o=i(1469),s=i(4144),l=i(5776),a=i(6719),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var i=o(e),h=!i&&r(e),u=!i&&!h&&s(e),d=!i&&!h&&!u&&a(e),f=i||h||u||d,p=f?n(e.length,String):[],m=p.length;for(var g in e)!t&&!c.call(e,g)||f&&("length"==g||u&&("offset"==g||"parent"==g)||d&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||l(g,m))||p.push(g);return p}},2488:e=>{e.exports=function(e,t){for(var i=-1,n=t.length,r=e.length;++i<n;)e[r+i]=t[i];return e}},2908:e=>{e.exports=function(e,t){for(var i=-1,n=null==e?0:e.length;++i<n;)if(t(e[i],i,e))return!0;return!1}},8470:(e,t,i)=>{var n=i(7813);e.exports=function(e,t){for(var i=e.length;i--;)if(n(e[i][0],t))return i;return-1}},8866:(e,t,i)=>{var n=i(2488),r=i(1469);e.exports=function(e,t,i){var o=t(e);return r(e)?o:n(o,i(e))}},4239:(e,t,i)=>{var n=i(2705),r=i(9607),o=i(2333),s=n?n.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,i)=>{var n=i(4239),r=i(7005);e.exports=function(e){return r(e)&&"[object Arguments]"==n(e)}},939:(e,t,i)=>{var n=i(2492),r=i(7005);e.exports=function e(t,i,o,s,l){return t===i||(null==t||null==i||!r(t)&&!r(i)?t!=t&&i!=i:n(t,i,o,s,e,l))}},2492:(e,t,i)=>{var n=i(6384),r=i(7114),o=i(8351),s=i(6096),l=i(4160),a=i(1469),c=i(4144),h=i(6719),u="[object Arguments]",d="[object Array]",f="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,i,m,g,O){var v=a(e),y=a(t),b=v?d:l(e),w=y?d:l(t),x=(b=b==u?f:b)==f,S=(w=w==u?f:w)==f,k=b==w;if(k&&c(e)){if(!c(t))return!1;v=!0,x=!1}if(k&&!x)return O||(O=new n),v||h(e)?r(e,t,i,m,g,O):o(e,t,b,i,m,g,O);if(!(1&i)){var $=x&&p.call(e,"__wrapped__"),_=S&&p.call(t,"__wrapped__");if($||_){var T=$?e.value():e,Q=_?t.value():t;return O||(O=new n),g(T,Q,i,m,O)}}return!!k&&(O||(O=new n),s(e,t,i,m,g,O))}},8458:(e,t,i)=>{var n=i(3560),r=i(5346),o=i(3218),s=i(346),l=/^\[object .+?Constructor\]$/,a=Function.prototype,c=Object.prototype,h=a.toString,u=c.hasOwnProperty,d=RegExp("^"+h.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||r(e))&&(n(e)?d:l).test(s(e))}},8749:(e,t,i)=>{var n=i(4239),r=i(1780),o=i(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[n(e)]}},280:(e,t,i)=>{var n=i(5726),r=i(6916),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return r(e);var t=[];for(var i in Object(e))o.call(e,i)&&"constructor"!=i&&t.push(i);return t}},2545:e=>{e.exports=function(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n}},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,i)=>{var n=i(8638)["__core-js_shared__"];e.exports=n},7114:(e,t,i)=>{var n=i(8668),r=i(2908),o=i(4757);e.exports=function(e,t,i,s,l,a){var c=1&i,h=e.length,u=t.length;if(h!=u&&!(c&&u>h))return!1;var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=-1,m=!0,g=2&i?new n:void 0;for(a.set(e,t),a.set(t,e);++p<h;){var O=e[p],v=t[p];if(s)var y=c?s(v,O,p,t,e,a):s(O,v,p,e,t,a);if(void 0!==y){if(y)continue;m=!1;break}if(g){if(!r(t,(function(e,t){if(!o(g,t)&&(O===e||l(O,e,i,s,a)))return g.push(t)}))){m=!1;break}}else if(O!==v&&!l(O,v,i,s,a)){m=!1;break}}return a.delete(e),a.delete(t),m}},8351:(e,t,i)=>{var n=i(2705),r=i(1149),o=i(7813),s=i(7114),l=i(8776),a=i(1814),c=n?n.prototype:void 0,h=c?c.valueOf:void 0;e.exports=function(e,t,i,n,c,u,d){switch(i){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||!u(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=l;case"[object Set]":var p=1&n;if(f||(f=a),e.size!=t.size&&!p)return!1;var m=d.get(e);if(m)return m==t;n|=2,d.set(e,t);var g=s(f(e),f(t),n,c,u,d);return d.delete(e),g;case"[object Symbol]":if(h)return h.call(e)==h.call(t)}return!1}},6096:(e,t,i)=>{var n=i(8234),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,i,o,s,l){var a=1&i,c=n(e),h=c.length;if(h!=n(t).length&&!a)return!1;for(var u=h;u--;){var d=c[u];if(!(a?d in t:r.call(t,d)))return!1}var f=l.get(e),p=l.get(t);if(f&&p)return f==t&&p==e;var m=!0;l.set(e,t),l.set(t,e);for(var g=a;++u<h;){var O=e[d=c[u]],v=t[d];if(o)var y=a?o(v,O,d,t,e,l):o(O,v,d,e,t,l);if(!(void 0===y?O===v||s(O,v,i,o,l):y)){m=!1;break}g||(g="constructor"==d)}if(m&&!g){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(m=!1)}return l.delete(e),l.delete(t),m}},1957:(e,t,i)=>{var n="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g;e.exports=n},8234:(e,t,i)=>{var n=i(8866),r=i(9551),o=i(3674);e.exports=function(e){return n(e,o,r)}},5050:(e,t,i)=>{var n=i(7019);e.exports=function(e,t){var i=e.__data__;return n(t)?i["string"==typeof t?"string":"hash"]:i.map}},852:(e,t,i)=>{var n=i(8458),r=i(7801);e.exports=function(e,t){var i=r(e,t);return n(i)?i:void 0}},9607:(e,t,i)=>{var n=i(2705),r=Object.prototype,o=r.hasOwnProperty,s=r.toString,l=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,l),i=e[l];try{e[l]=void 0;var n=!0}catch(e){}var r=s.call(e);return n&&(t?e[l]=i:delete e[l]),r}},9551:(e,t,i)=>{var n=i(4963),r=i(479),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,l=s?function(e){return null==e?[]:(e=Object(e),n(s(e),(function(t){return o.call(e,t)})))}:r;e.exports=l},4160:(e,t,i)=>{var n=i(8552),r=i(7071),o=i(3818),s=i(8525),l=i(577),a=i(4239),c=i(346),h="[object Map]",u="[object Promise]",d="[object Set]",f="[object WeakMap]",p="[object DataView]",m=c(n),g=c(r),O=c(o),v=c(s),y=c(l),b=a;(n&&b(new n(new ArrayBuffer(1)))!=p||r&&b(new r)!=h||o&&b(o.resolve())!=u||s&&b(new s)!=d||l&&b(new l)!=f)&&(b=function(e){var t=a(e),i="[object Object]"==t?e.constructor:void 0,n=i?c(i):"";if(n)switch(n){case m:return p;case g:return h;case O:return u;case v:return d;case y:return f}return t}),e.exports=b},7801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},1789:(e,t,i)=>{var n=i(4536);e.exports=function(){this.__data__=n?n(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,i)=>{var n=i(4536),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var i=t[e];return"__lodash_hash_undefined__"===i?void 0:i}return r.call(t,e)?t[e]:void 0}},1327:(e,t,i)=>{var n=i(4536),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:r.call(t,e)}},1866:(e,t,i)=>{var n=i(4536);e.exports=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},5776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,i){var n=typeof e;return!!(i=null==i?9007199254740991:i)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<i}},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,i)=>{var n,r=i(4429),o=(n=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!o&&o in e}},5726:e=>{var t=Object.prototype;e.exports=function(e){var i=e&&e.constructor;return e===("function"==typeof i&&i.prototype||t)}},7040:e=>{e.exports=function(){this.__data__=[],this.size=0}},4125:(e,t,i)=>{var n=i(8470),r=Array.prototype.splice;e.exports=function(e){var t=this.__data__,i=n(t,e);return!(i<0)&&(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)}},2117:(e,t,i)=>{var n=i(8470);e.exports=function(e){var t=this.__data__,i=n(t,e);return i<0?void 0:t[i][1]}},7518:(e,t,i)=>{var n=i(8470);e.exports=function(e){return n(this.__data__,e)>-1}},4705:(e,t,i)=>{var n=i(8470);e.exports=function(e,t){var i=this.__data__,r=n(i,e);return r<0?(++this.size,i.push([e,t])):i[r][1]=t,this}},4785:(e,t,i)=>{var n=i(1989),r=i(8407),o=i(7071);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||r),string:new n}}},1285:(e,t,i)=>{var n=i(5050);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},6e3:(e,t,i)=>{var n=i(5050);e.exports=function(e){return n(this,e).get(e)}},9916:(e,t,i)=>{var n=i(5050);e.exports=function(e){return n(this,e).has(e)}},5265:(e,t,i)=>{var n=i(5050);e.exports=function(e,t){var i=n(this,e),r=i.size;return i.set(e,t),this.size+=i.size==r?0:1,this}},8776:e=>{e.exports=function(e){var t=-1,i=Array(e.size);return e.forEach((function(e,n){i[++t]=[n,e]})),i}},4536:(e,t,i)=>{var n=i(852)(Object,"create");e.exports=n},6916:(e,t,i)=>{var n=i(5569)(Object.keys,Object);e.exports=n},4e3:(e,t,i)=>{e=i.nmd(e);var n=i(1957),r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,s=o&&o.exports===r&&n.process,l=function(){try{var e=o&&o.require&&o.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=l},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:e=>{e.exports=function(e,t){return function(i){return e(t(i))}}},8638:(e,t,i)=>{var n=i(1957),r="object"==typeof self&&self&&self.Object===Object&&self,o=n||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,i=Array(e.size);return e.forEach((function(e){i[++t]=e})),i}},7465:(e,t,i)=>{var n=i(8407);e.exports=function(){this.__data__=new n,this.size=0}},3779:e=>{e.exports=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i}},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,i)=>{var n=i(8407),r=i(7071),o=i(3369);e.exports=function(e,t){var i=this.__data__;if(i instanceof n){var s=i.__data__;if(!r||s.length<199)return s.push([e,t]),this.size=++i.size,this;i=this.__data__=new o(s)}return i.set(e,t),this.size=i.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,i)=>{var n=i(9454),r=i(7005),o=Object.prototype,s=o.hasOwnProperty,l=o.propertyIsEnumerable,a=n(function(){return arguments}())?n:function(e){return r(e)&&s.call(e,"callee")&&!l.call(e,"callee")};e.exports=a},1469:e=>{var t=Array.isArray;e.exports=t},8612:(e,t,i)=>{var n=i(3560),r=i(1780);e.exports=function(e){return null!=e&&r(e.length)&&!n(e)}},4144:(e,t,i)=>{e=i.nmd(e);var n=i(8638),r=i(5062),o=t&&!t.nodeType&&t,s=o&&e&&!e.nodeType&&e,l=s&&s.exports===o?n.Buffer:void 0,a=(l?l.isBuffer:void 0)||r;e.exports=a},8446:(e,t,i)=>{var n=i(939);e.exports=function(e,t){return n(e,t)}},3560:(e,t,i)=>{var n=i(4239),r=i(3218);e.exports=function(e){if(!r(e))return!1;var t=n(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,i)=>{var n=i(8749),r=i(1717),o=i(4e3),s=o&&o.isTypedArray,l=s?r(s):n;e.exports=l},3674:(e,t,i)=>{var n=i(4636),r=i(280),o=i(8612);e.exports=function(e){return o(e)?n(e):r(e)}},479:e=>{e.exports=function(){return[]}},5062:e=>{e.exports=function(){return!1}},9430:function(e,t){var i,n,r;n=[],void 0===(r="function"==typeof(i=function(){return function(e){function t(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function i(t){var i,n=t.exec(e.substring(m));if(n)return i=n[0],m+=i.length,i}for(var n,r,o,s,l,a=e.length,c=/^[ \t\n\r\u000c]+/,h=/^[, \t\n\r\u000c]+/,u=/^[^ \t\n\r\u000c]+/,d=/[,]+$/,f=/^\d+$/,p=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,m=0,g=[];;){if(i(h),m>=a)return g;n=i(u),r=[],","===n.slice(-1)?(n=n.replace(d,""),v()):O()}function O(){for(i(c),o="",s="in descriptor";;){if(l=e.charAt(m),"in descriptor"===s)if(t(l))o&&(r.push(o),o="",s="after descriptor");else{if(","===l)return m+=1,o&&r.push(o),void v();if("("===l)o+=l,s="in parens";else{if(""===l)return o&&r.push(o),void v();o+=l}}else if("in parens"===s)if(")"===l)o+=l,s="in descriptor";else{if(""===l)return r.push(o),void v();o+=l}else if("after descriptor"===s)if(t(l));else{if(""===l)return void v();s="in descriptor",m-=1}m+=1}}function v(){var t,i,o,s,l,a,c,h,u,d=!1,m={};for(s=0;s<r.length;s++)a=(l=r[s])[l.length-1],c=l.substring(0,l.length-1),h=parseInt(c,10),u=parseFloat(c),f.test(c)&&"w"===a?((t||i)&&(d=!0),0===h?d=!0:t=h):p.test(c)&&"x"===a?((t||i||o)&&(d=!0),u<0?d=!0:i=u):f.test(c)&&"h"===a?((o||i)&&(d=!0),0===h?d=!0:o=h):d=!0;d?console&&console.log&&console.log("Invalid srcset descriptor found in '"+e+"' at '"+l+"'."):(m.url=n,t&&(m.w=t),i&&(m.d=i),o&&(m.h=o),g.push(m))}}})?i.apply(t,n):i)||(e.exports=r)},4241:e=>{var t=String,i=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=i(),e.exports.createColors=i},1353:(e,t,i)=>{"use strict";let n=i(1019);class r 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=r,r.default=r,n.registerAtRule(r)},9932:(e,t,i)=>{"use strict";let n=i(5631);class r extends n{constructor(e){super(e),this.type="comment"}}e.exports=r,r.default=r},1019:(e,t,i)=>{"use strict";let n,r,o,s,{isClean:l,my:a}=i(5513),c=i(4258),h=i(9932),u=i(5631);function d(e){return e.map((e=>(e.nodes&&(e.nodes=d(e.nodes)),delete e.source,e)))}function f(e){if(e[l]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)f(t)}class p extends u{push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}each(e){if(!this.proxyOf.nodes)return;let t,i,n=this.getIterator();for(;this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],i=e(this.proxyOf.nodes[t],t),!1!==i);)this.indexes[n]+=1;return delete this.indexes[n],i}walk(e){return this.each(((t,i)=>{let n;try{n=e(t,i)}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(((i,n)=>{if("decl"===i.type&&e.test(i.prop))return t(i,n)})):this.walk(((i,n)=>{if("decl"===i.type&&i.prop===e)return t(i,n)})):(t=e,this.walk(((e,i)=>{if("decl"===e.type)return t(e,i)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((i,n)=>{if("rule"===i.type&&e.test(i.selector))return t(i,n)})):this.walk(((i,n)=>{if("rule"===i.type&&i.selector===e)return t(i,n)})):(t=e,this.walk(((e,i)=>{if("rule"===e.type)return t(e,i)})))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((i,n)=>{if("atrule"===i.type&&e.test(i.name))return t(i,n)})):this.walk(((i,n)=>{if("atrule"===i.type&&i.name===e)return t(i,n)})):(t=e,this.walk(((e,i)=>{if("atrule"===e.type)return t(e,i)})))}walkComments(e){return this.walk(((t,i)=>{if("comment"===t.type)return e(t,i)}))}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 i,n=0===(e=this.index(e))&&"prepend",r=this.normalize(t,this.proxyOf.nodes[e],n).reverse();for(let t of r)this.proxyOf.nodes.splice(e,0,t);for(let t in this.indexes)i=this.indexes[t],e<=i&&(this.indexes[t]=i+r.length);return this.markDirty(),this}insertAfter(e,t){e=this.index(e);let i,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)i=this.indexes[t],e<i&&(this.indexes[t]=i+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 i in this.indexes)t=this.indexes[i],t>=e&&(this.indexes[i]=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,i){return i||(i=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,i))})),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 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 h(e)]}return e.map((e=>(e[a]||p.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[l]&&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,i)=>(e[t]===i||(e[t]=i,"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")?(...i)=>e[t](...i.map((e=>"function"==typeof e?(t,i)=>e(t.toProxy(),i):e))):"every"===t||"some"===t?i=>e[t](((e,...t)=>i(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}}p.registerParse=e=>{n=e},p.registerRule=e=>{r=e},p.registerAtRule=e=>{o=e},p.registerRoot=e=>{s=e},e.exports=p,p.default=p,p.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,h.prototype):"root"===e.type&&Object.setPrototypeOf(e,s.prototype),e[a]=!0,e.nodes&&e.nodes.forEach((e=>{p.rebuild(e)}))}},2671:(e,t,i)=>{"use strict";let n=i(4241),r=i(2868);class o extends Error{constructor(e,t,i,n,r,s){super(e),this.name="CssSyntaxError",this.reason=e,r&&(this.file=r),n&&(this.source=n),s&&(this.plugin=s),void 0!==t&&void 0!==i&&("number"==typeof t?(this.line=t,this.column=i):(this.line=t.line,this.column=t.column,this.endLine=i.line,this.endColumn=i.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),r&&e&&(t=r(t));let i,o,s=t.split(/\r?\n/),l=Math.max(this.line-3,0),a=Math.min(this.line+2,s.length),c=String(a).length;if(e){let{bold:e,red:t,gray:r}=n.createColors(!0);i=i=>e(t(i)),o=e=>r(e)}else i=o=e=>e;return s.slice(l,a).map(((e,t)=>{let n=l+1+t,r=" "+(" "+n).slice(-c)+" | ";if(n===this.line){let t=o(r.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+o(r)+e+"\n "+t+i("^")}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,i)=>{"use strict";let n=i(5631);class r 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=r,r.default=r},6461:(e,t,i)=>{"use strict";let n,r,o=i(1019);class s extends o{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new n(new r,this,e).stringify()}}s.registerLazyResult=e=>{n=e},s.registerProcessor=e=>{r=e},e.exports=s,s.default=s},250:(e,t,i)=>{"use strict";let n=i(4258),r=i(7981),o=i(9932),s=i(1353),l=i(5995),a=i(1025),c=i(1675);function h(e,t){if(Array.isArray(e))return e.map((e=>h(e)));let{inputs:i,...u}=e;if(i){t=[];for(let e of i){let i={...e,__proto__:l.prototype};i.map&&(i.map={...i.map,__proto__:r.prototype}),t.push(i)}}if(u.nodes&&(u.nodes=e.nodes.map((e=>h(e,t)))),u.source){let{inputId:e,...i}=u.source;u.source=i,null!=e&&(u.source.input=t[e])}if("root"===u.type)return new a(u);if("decl"===u.type)return new n(u);if("rule"===u.type)return new c(u);if("comment"===u.type)return new o(u);if("atrule"===u.type)return new s(u);throw new Error("Unknown node type: "+e.type)}e.exports=h,h.default=h},5995:(e,t,i)=>{"use strict";let{SourceMapConsumer:n,SourceMapGenerator:r}=i(209),{fileURLToPath:o,pathToFileURL:s}=i(7414),{resolve:l,isAbsolute:a}=i(9830),{nanoid:c}=i(2618),h=i(2868),u=i(2671),d=i(7981),f=Symbol("fromOffsetCache"),p=Boolean(n&&r),m=Boolean(l&&a);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)||a(t.from)?this.file=t.from:this.file=l(t.from)),m&&p){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,i;if(this[f])i=this[f];else{let e=this.css.split("\n");i=new Array(e.length);let t=0;for(let n=0,r=e.length;n<r;n++)i[n]=t,t+=e[n].length+1;this[f]=i}t=i[i.length-1];let n=0;if(e>=t)n=i.length-1;else{let t,r=i.length-2;for(;n<r;)if(t=n+(r-n>>1),e<i[t])r=t-1;else{if(!(e>=i[t+1])){n=t;break}n=t+1}}return{line:n+1,col:e-i[n]+1}}error(e,t,i,n={}){let r,o,l;if(t&&"object"==typeof t){let e=t,n=i;if("number"==typeof t.offset){let n=this.fromOffset(e.offset);t=n.line,i=n.col}else t=e.line,i=e.column;if("number"==typeof n.offset){let e=this.fromOffset(n.offset);o=e.line,l=e.col}else o=n.line,l=n.column}else if(!i){let e=this.fromOffset(t);t=e.line,i=e.col}let a=this.origin(t,i,o,l);return r=a?new u(e,void 0===a.endLine?a.line:{line:a.line,column:a.column},void 0===a.endLine?a.column:{line:a.endLine,column:a.endColumn},a.source,a.file,n.plugin):new u(e,void 0===o?t:{line:t,column:i},void 0===o?i:{line:o,column:l},this.css,this.file,n.plugin),r.input={line:t,column:i,endLine:o,endColumn:l,source:this.css},this.file&&(s&&(r.input.url=s(this.file).toString()),r.input.file=this.file),r}origin(e,t,i,n){if(!this.map)return!1;let r,l,c=this.map.consumer(),h=c.originalPositionFor({line:e,column:t});if(!h.source)return!1;"number"==typeof i&&(r=c.originalPositionFor({line:i,column:n})),l=a(h.source)?s(h.source):new URL(h.source,this.map.consumer().sourceRoot||s(this.map.mapFile));let u={url:l.toString(),line:h.line,column:h.column,endLine:r&&r.line,endColumn:r&&r.column};if("file:"===l.protocol){if(!o)throw new Error("file: protocol is not available in this PostCSS build");u.file=o(l)}let d=c.sourceContentFor(h.source);return d&&(u.source=d),u}mapResolve(e){return/^\w+:\/\//.test(e)?e:l(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,h&&h.registerInput&&h.registerInput(g)},1939:(e,t,i)=>{"use strict";let{isClean:n,my:r}=i(5513),o=i(8505),s=i(7088),l=i(1019),a=i(6461),c=(i(2448),i(3632)),h=i(6939),u=i(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},p={postcssPlugin:!0,prepare:!0,Once:!0};function m(e){return"object"==typeof e&&"function"==typeof e.then}function g(e){let t=!1,i=d[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[i,i+"-"+t,0,i+"Exit",i+"Exit-"+t]:t?[i,i+"-"+t,i+"Exit",i+"Exit-"+t]:e.append?[i,0,i+"Exit"]:[i,i+"Exit"]}function O(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 b{constructor(e,t,i){let n;if(this.stringified=!1,this.processed=!1,"object"!=typeof t||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof b||t instanceof c)n=v(t.root),t.map&&(void 0===i.map&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=t.map);else{let e=h;i.syntax&&(e=i.syntax.parse),i.parser&&(e=i.parser),e.parse&&(e=e.parse);try{n=e(t,i)}catch(e){this.processed=!0,this.error=e}n&&!n[r]&&l.rebuild(n)}else n=v(t);this.result=new c(e,n,i),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 i=new o(t,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}walkSync(e){e[n]=!0;let t=g(e);for(let i of t)if(0===i)e.nodes&&e.each((e=>{e[n]||this.walkSync(e)}));else{let t=this.listeners[i];if(t&&this.visitSync(t,e.toProxy()))return}}visitSync(e,t){for(let[i,n]of e){let e;this.result.lastPlugin=i;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 i=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?i.postcssVersion:(e.plugin=i.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],i=this.runOnRoot(t);if(m(i))try{await i}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[n];){e[n]=!0;let t=[O(e)];for(;t.length>0;){let e=this.visitTick(t);if(m(e))try{await e}catch(e){let i=t[t.length-1].node;throw this.handleError(e,i)}}}if(this.listeners.OnceExit)for(let[t,i]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map((e=>i(e,this.helpers)));await Promise.all(t)}else await i(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let e=(e,t,i)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,i])};for(let t of this.plugins)if("object"==typeof t)for(let i in t){if(!f[i]&&/^[A-Z]/.test(i))throw new Error(`Unknown event ${i} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!p[i])if("object"==typeof t[i])for(let n in t[i])e(t,"*"===n?i:i+"-"+n.toLowerCase(),t[i][n]);else"function"==typeof t[i]&&e(t,i,t[i])}this.hasListener=Object.keys(this.listeners).length>0}visitTick(e){let t=e[e.length-1],{node:i,visitors:r}=t;if("root"!==i.type&&"document"!==i.type&&!i.parent)return void e.pop();if(r.length>0&&t.visitorIndex<r.length){let[e,n]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return n(i.toProxy(),this.helpers)}catch(e){throw this.handleError(e,i)}}if(0!==t.iterator){let r,o=t.iterator;for(;r=i.nodes[i.indexes[o]];)if(i.indexes[o]+=1,!r[n])return r[n]=!0,void e.push(O(r));t.iterator=0,delete i.indexes[o]}let o=t.events;for(;t.eventIndex<o.length;){let e=o[t.eventIndex];if(t.eventIndex+=1,0===e)return void(i.nodes&&i.nodes.length&&(i[n]=!0,t.iterator=i.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}}b.registerPostcss=e=>{y=e},e.exports=b,b.default=b,u.registerLazyResult(b),a.registerLazyResult(b)},4715:e=>{"use strict";let t={split(e,t,i){let n=[],r="",o=!1,s=0,l=!1,a="",c=!1;for(let i of e)c?c=!1:"\\"===i?c=!0:l?i===a&&(l=!1):'"'===i||"'"===i?(l=!0,a=i):"("===i?s+=1:")"===i?s>0&&(s-=1):0===s&&t.includes(i)&&(o=!0),o?(""!==r&&n.push(r.trim()),r="",o=!1):r+=i;return(i||""!==r)&&n.push(r.trim()),n},space:e=>t.split(e,[" ","\n","\t"]),comma:e=>t.split(e,[","],!0)};e.exports=t,t.default=t},8505:(e,t,i)=>{"use strict";let{SourceMapConsumer:n,SourceMapGenerator:r}=i(209),{dirname:o,resolve:s,relative:l,sep:a}=i(9830),{pathToFileURL:c}=i(7414),h=i(5995),u=Boolean(n&&r),d=Boolean(o&&s&&l&&a);e.exports=class{constructor(e,t,i,n){this.stringify=e,this.mapOpts=i.map||{},this.root=t,this.opts=i,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 h(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 i=t.source.input.from;i&&!e[i]&&(e[i]=!0,this.map.setSourceContent(this.toUrl(this.path(i)),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,i=this.toUrl(this.path(e.file)),r=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,i,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=l(t,e)}toUrl(e){return"\\"===a&&(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,i=1,n=1,o="<no source>",s={source:"",generated:{line:0,column:0},original:{line:0,column:0}};this.stringify(this.root,((r,l,a)=>{if(this.css+=r,l&&"end"!==a&&(s.generated.line=i,s.generated.column=n-1,l.source&&l.source.start?(s.source=this.sourcePath(l),s.original.line=l.source.start.line,s.original.column=l.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?(i+=e.length,t=r.lastIndexOf("\n"),n=r.length-t):n+=r.length,l&&"start"!==a){let e=l.parent||{raws:{}};("decl"!==l.type||l!==e.last||e.raws.semicolon)&&(l.source&&l.source.end?(s.source=this.sourcePath(l),s.original.line=l.source.end.line,s.original.column=l.source.end.column-1,s.generated.line=i,s.generated.column=n-2,this.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=i,s.generated.column=n-1,this.map.addMapping(s)))}}))}generate(){if(this.clearAnnotation(),d&&u&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,(t=>{e+=t})),[e]}}}},7647:(e,t,i)=>{"use strict";let n=i(8505),r=i(7088),o=(i(2448),i(6939));const s=i(3632);class l{constructor(e,t,i){let o;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=i,this._map=void 0;let l=r;this.result=new s(this._processor,o,this._opts),this.result.css=t;let a=this;Object.defineProperty(this.result,"root",{get:()=>a.root});let c=new n(l,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=l,l.default=l},5631:(e,t,i)=>{"use strict";let{isClean:n,my:r}=i(5513),o=i(2671),s=i(1062),l=i(7088);function a(e,t){let i=new e.constructor;for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;if("proxyCache"===n)continue;let r=e[n],o=typeof r;"parent"===n&&"object"===o?t&&(i[n]=t):"source"===n?i[n]=r:Array.isArray(r)?i[n]=r.map((e=>a(e,i))):("object"===o&&null!==r&&(r=a(r)),i[n]=r)}return i}class c{constructor(e={}){this.raws={},this[n]=!1,this[r]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let i of e[t])"function"==typeof i.clone?this.append(i.clone()):this.append(i)}else this[t]=e[t]}error(e,t={}){if(this.source){let{start:i,end:n}=this.rangeBy(t);return this.source.input.error(e,{line:i.line,column:i.column},{line:n.line,column:n.column},t)}return new o(e)}warn(e,t,i){let n={node:this};for(let e in i)n[e]=i[e];return e.warn(t,n)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(e=l){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=a(this);for(let i in e)t[i]=e[i];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,i=!1;for(let n of e)n===this?i=!0:i?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);i||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 i={},n=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 n=this[e];if(Array.isArray(n))i[e]=n.map((e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof n&&n.toJSON)i[e]=n.toJSON(null,t);else if("source"===e){let o=t.get(n.input);null==o&&(o=r,t.set(n.input,r),r++),i[e]={inputId:o,start:n.start,end:n.end}}else i[e]=n}return n&&(i.inputs=[...t.keys()].map((e=>e.toJSON()))),i}positionInside(e){let t=this.toString(),i=this.source.start.column,n=this.source.start.line;for(let r=0;r<e;r++)"\n"===t[r]?(i=1,n+=1):i+=1;return{line:n,column:i}}positionBy(e){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let i=this.toString().indexOf(e.word);-1!==i&&(t=this.positionInside(i))}return t}rangeBy(e){let t={line:this.source.start.line,column:this.source.start.column},i=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),i=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?i={line:e.end.line,column:e.end.column}:e.endIndex?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1));return(i.line<t.line||i.line===t.line&&i.column<=t.column)&&(i={line:t.line,column:t.column+1}),{start:t,end:i}}getProxyProcessor(){return{set:(e,t,i)=>(e[t]===i||(e[t]=i,"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,i)=>{"use strict";let n=i(1019),r=i(8867),o=i(5995);function s(e,t){let i=new o(e,t),n=new r(i);try{n.parse()}catch(e){throw e}return n.root}e.exports=s,s.default=s,n.registerParse(s)},8867:(e,t,i)=>{"use strict";let n=i(4258),r=i(3852),o=i(9932),s=i(1353),l=i(1025),a=i(1675);const c={empty:!0,space:!0};e.exports=class{constructor(e){this.input=e,this.root=new l,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 i=e[1].slice(2,-2);if(/^\s*$/.test(i))t.text="",t.raws.left=i,t.raws.right="";else{let e=i.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}emptyRule(e){let t=new a;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}other(e){let t=!1,i=null,n=!1,r=null,o=[],s=e[1].startsWith("--"),l=[],a=e;for(;a;){if(i=a[0],l.push(a),"("===i||"["===i)r||(r=a),o.push("("===i?")":"]");else if(s&&n&&"{"===i)r||(r=a),o.push("}");else if(0===o.length){if(";"===i){if(n)return void this.decl(l,s);break}if("{"===i)return void this.rule(l);if("}"===i){this.tokenizer.back(l.pop()),t=!0;break}":"===i&&(n=!0)}else i===o[o.length-1]&&(o.pop(),0===o.length&&(r=null));a=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(r),t&&n){if(!s)for(;l.length&&(a=l[l.length-1][0],"space"===a||"comment"===a);)this.tokenizer.back(l.pop());this.decl(l,s)}else this.unknownWord(l)}rule(e){e.pop();let t=new a;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}decl(e,t){let i=new n;this.init(i,e[0][2]);let r,o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(o[3]||o[2]||function(e){for(let t=e.length-1;t>=0;t--){let i=e[t],n=i[3]||i[2];if(n)return n}}(e));"word"!==e[0][0];)1===e.length&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;i.prop+=e.shift()[1]}for(i.raws.between="";e.length;){if(r=e.shift(),":"===r[0]){i.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),i.raws.between+=r[1]}"_"!==i.prop[0]&&"*"!==i.prop[0]||(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let s,l=[];for(;e.length&&(s=e[0][0],"space"===s||"comment"===s);)l.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(r=e[t],"!important"===r[1].toLowerCase()){i.important=!0;let n=this.stringFrom(e,t);n=this.spacesFromEnd(e)+n," !important"!==n&&(i.raws.important=n);break}if("important"===r[1].toLowerCase()){let n=e.slice(0),r="";for(let e=t;e>0;e--){let t=n[e][0];if(0===r.trim().indexOf("!")&&"space"!==t)break;r=n.pop()[1]+r}0===r.trim().indexOf("!")&&(i.important=!0,i.raws.important=r,e=n)}if("space"!==r[0]&&"comment"!==r[0])break}e.some((e=>"space"!==e[0]&&"comment"!==e[0]))&&(i.raws.between+=l.map((e=>e[1])).join(""),l=[]),this.raw(i,"value",l.concat(e),t),i.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}atrule(e){let t,i,n,r=new s;r.name=e[1].slice(1),""===r.name&&this.unnamedAtrule(r,e),this.init(r,e[2]);let o=!1,l=!1,a=[],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){l=!0;break}if("}"===t){if(a.length>0){for(n=a.length-1,i=a[n];i&&"space"===i[0];)i=a[--n];i&&(r.source.end=this.getPosition(i[3]||i[2]))}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(r.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(r,"params",a),o&&(e=a[a.length-1],r.source.end=this.getPosition(e[3]||e[2]),this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),l&&(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,i,n){let r,o,s,l,a=i.length,h="",u=!0;for(let e=0;e<a;e+=1)r=i[e],o=r[0],"space"!==o||e!==a-1||n?"comment"===o?(l=i[e-1]?i[e-1][0]:"empty",s=i[e+1]?i[e+1][0]:"empty",c[l]||c[s]||","===h.slice(-1)?u=!1:h+=r[1]):h+=r[1]:u=!1;if(!u){let n=i.reduce(((e,t)=>e+t[1]),"");e.raws[t]={value:h,raw:n}}e[t]=h}spacesAndCommentsFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)i=e.pop()[1]+i;return i}spacesAndCommentsFromStart(e){let t,i="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)i+=e.shift()[1];return i}spacesFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)i=e.pop()[1]+i;return i}stringFrom(e,t){let i="";for(let n=t;n<e.length;n++)i+=e[n][1];return e.splice(t,e.length-t),i}colon(e){let t,i,n,r=0;for(let[o,s]of e.entries()){if(t=s,i=t[0],"("===i&&(r+=1),")"===i&&(r-=1),0===r&&":"===i){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 i,n=0;for(let r=t-1;r>=0&&(i=e[r],"space"===i[0]||(n+=1,2!==n));r--);throw this.input.error("Missed semicolon","word"===i[0]?i[3]+1:i[2])}}},20:(e,t,i)=>{"use strict";let n=i(2671),r=i(4258),o=i(1939),s=i(1019),l=i(1723),a=i(7088),c=i(250),h=i(6461),u=i(1728),d=i(9932),f=i(1353),p=i(3632),m=i(5995),g=i(6939),O=i(4715),v=i(1675),y=i(1025),b=i(5631);function w(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new l(e)}w.plugin=function(e,t){let i,n=!1;function r(...i){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 r=t(...i);return r.postcssPlugin=e,r.postcssVersion=(new l).version,r}return Object.defineProperty(r,"postcss",{get:()=>(i||(i=r()),i)}),r.process=function(e,t,i){return w([r(i)]).process(e,t)},r},w.stringify=a,w.parse=g,w.fromJSON=c,w.list=O,w.comment=e=>new d(e),w.atRule=e=>new f(e),w.decl=e=>new r(e),w.rule=e=>new v(e),w.root=e=>new y(e),w.document=e=>new h(e),w.CssSyntaxError=n,w.Declaration=r,w.Container=s,w.Processor=l,w.Document=h,w.Comment=d,w.Warning=u,w.AtRule=f,w.Result=p,w.Input=m,w.Rule=v,w.Root=y,w.Node=b,o.registerPostcss(w),e.exports=w,w.default=w},7981:(e,t,i)=>{"use strict";let{SourceMapConsumer:n,SourceMapGenerator:r}=i(209),{existsSync:o,readFileSync:s}=i(4777),{dirname:l,join:a}=i(9830);class c{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let i=t.map?t.map.prev:void 0,n=this.loadMap(t.from,i);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=l(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 i=e.lastIndexOf(t.pop()),n=e.indexOf("*/",i);i>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(i,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 i=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+i)}loadFile(e){if(this.root=l(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 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 i=t(e);if(i){let e=this.loadFile(i);if(!e)throw new Error("Unable to load previous source map: "+i.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=a(l(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,i)=>{"use strict";let n=i(7647),r=i(1939),o=i(6461),s=i(1025);class l{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 r(this,e,t)}normalize(e){let t=[];for(let i of e)if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"==typeof i&&Array.isArray(i.plugins))t=t.concat(i.plugins);else if("object"==typeof i&&i.postcssPlugin)t.push(i);else if("function"==typeof i)t.push(i);else{if("object"!=typeof i||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}return t}}e.exports=l,l.default=l,s.registerProcessor(l),o.registerProcessor(l)},3632:(e,t,i)=>{"use strict";let n=i(1728);class r{constructor(e,t,i){this.processor=e,this.messages=[],this.root=t,this.opts=i,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 i=new n(e,t);return this.messages.push(i),i}warnings(){return this.messages.filter((e=>"warning"===e.type))}get content(){return this.css}}e.exports=r,r.default=r},1025:(e,t,i)=>{"use strict";let n,r,o=i(1019);class s extends o{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}removeChild(e,t){let i=this.index(e);return!t&&0===i&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[i].raws.before),super.removeChild(e)}normalize(e,t,i){let n=super.normalize(e);if(t)if("prepend"===i)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 r,this,e).stringify()}}s.registerLazyResult=e=>{n=e},s.registerProcessor=e=>{r=e},e.exports=s,s.default=s,o.registerRoot(s)},1675:(e,t,i)=>{"use strict";let n=i(1019),r=i(4715);class o extends n{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,i=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}}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 i{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"),i=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+i+"*/",e)}decl(e,t){let i=this.raw(e,"between","colon"),n=e.prop+i+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 i="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?i+=e.raws.afterName:n&&(i+=" "),e.nodes)this.block(e,i+n);else{let r=(e.raws.between||"")+(t?";":"");this.builder(i+n+r,e)}}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let i=this.raw(e,"semicolon");for(let n=0;n<e.nodes.length;n++){let r=e.nodes[n],o=this.raw(r,"before");o&&this.builder(o),this.stringify(r,t!==n||i)}}block(e,t){let i,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),i=this.raw(e,"after")):i=this.raw(e,"after","emptyBody"),i&&this.builder(i),this.builder("}",e,"end")}raw(e,i,n){let r;if(n||(n=i),i&&(r=e.raws[i],void 0!==r))return r;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"+((l=n)[0].toUpperCase()+l.slice(1));this[t]?r=this[t](s,e):s.walk((e=>{if(r=e.raws[i],void 0!==r)return!1}))}var l;return void 0===r&&(r=t[n]),s.rawCache[n]=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((i=>{let n=i.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==i.raws.before){let e=i.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}})),t}rawBeforeComment(e,t){let i;return e.walkComments((e=>{if(void 0!==e.raws.before)return i=e.raws.before,i.includes("\n")&&(i=i.replace(/[^\n]+$/,"")),!1})),void 0===i?i=this.raw(t,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeDecl(e,t){let i;return e.walkDecls((e=>{if(void 0!==e.raws.before)return i=e.raws.before,i.includes("\n")&&(i=i.replace(/[^\n]+$/,"")),!1})),void 0===i?i=this.raw(t,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeRule(e){let t;return e.walk((i=>{if(i.nodes&&(i.parent!==e||e.first!==i)&&void 0!==i.raws.before)return t=i.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 i;i="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,r=0;for(;n&&"root"!==n.type;)r+=1,n=n.parent;if(i.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<r;e++)i+=t}return i}rawValue(e,t){let i=e[t],n=e.raws[t];return n&&n.value===i?n.raw:i}}e.exports=i,i.default=i},7088:(e,t,i)=>{"use strict";let n=i(1062);function r(e,t){new n(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),i='"'.charCodeAt(0),n="\\".charCodeAt(0),r="/".charCodeAt(0),o="\n".charCodeAt(0),s=" ".charCodeAt(0),l="\f".charCodeAt(0),a="\t".charCodeAt(0),c="\r".charCodeAt(0),h="[".charCodeAt(0),u="]".charCodeAt(0),d="(".charCodeAt(0),f=")".charCodeAt(0),p="{".charCodeAt(0),m="}".charCodeAt(0),g=";".charCodeAt(0),O="*".charCodeAt(0),v=":".charCodeAt(0),y="@".charCodeAt(0),b=/[\t\n\f\r "#'()/;[\\\]{}]/g,w=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,x=/.[\n"'(/\\]/,S=/[\da-f]/i;e.exports=function(e,k={}){let $,_,T,Q,P,A,C,R,E,M,D=e.css.valueOf(),q=k.ignoreErrors,N=D.length,j=0,V=[],W=[];function z(t){throw e.error("Unclosed "+t,j)}return{back:function(e){W.push(e)},nextToken:function(e){if(W.length)return W.pop();if(j>=N)return;let k=!!e&&e.ignoreUnclosed;switch($=D.charCodeAt(j),$){case o:case s:case a:case c:case l:_=j;do{_+=1,$=D.charCodeAt(_)}while($===s||$===o||$===a||$===c||$===l);M=["space",D.slice(j,_)],j=_-1;break;case h:case u:case p:case m:case v:case g:case f:{let e=String.fromCharCode($);M=[e,e,j];break}case d:if(R=V.length?V.pop()[1]:"",E=D.charCodeAt(j+1),"url"===R&&E!==t&&E!==i&&E!==s&&E!==o&&E!==a&&E!==l&&E!==c){_=j;do{if(A=!1,_=D.indexOf(")",_+1),-1===_){if(q||k){_=j;break}z("bracket")}for(C=_;D.charCodeAt(C-1)===n;)C-=1,A=!A}while(A);M=["brackets",D.slice(j,_+1),j,_],j=_}else _=D.indexOf(")",j+1),Q=D.slice(j,_+1),-1===_||x.test(Q)?M=["(","(",j]:(M=["brackets",Q,j,_],j=_);break;case t:case i:T=$===t?"'":'"',_=j;do{if(A=!1,_=D.indexOf(T,_+1),-1===_){if(q||k){_=j+1;break}z("string")}for(C=_;D.charCodeAt(C-1)===n;)C-=1,A=!A}while(A);M=["string",D.slice(j,_+1),j,_],j=_;break;case y:b.lastIndex=j+1,b.test(D),_=0===b.lastIndex?D.length-1:b.lastIndex-2,M=["at-word",D.slice(j,_+1),j,_],j=_;break;case n:for(_=j,P=!0;D.charCodeAt(_+1)===n;)_+=1,P=!P;if($=D.charCodeAt(_+1),P&&$!==r&&$!==s&&$!==o&&$!==a&&$!==c&&$!==l&&(_+=1,S.test(D.charAt(_)))){for(;S.test(D.charAt(_+1));)_+=1;D.charCodeAt(_+1)===s&&(_+=1)}M=["word",D.slice(j,_+1),j,_],j=_;break;default:$===r&&D.charCodeAt(j+1)===O?(_=D.indexOf("*/",j+2)+1,0===_&&(q||k?_=D.length:z("comment")),M=["comment",D.slice(j,_+1),j,_],j=_):(w.lastIndex=j+1,w.test(D),_=0===w.lastIndex?D.length-1:w.lastIndex-2,M=["word",D.slice(j,_+1),j,_],V.push(M),j=_)}return j++,M},endOfFile:function(){return 0===W.length&&j>=N},position:function(){return j}}}},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,i)=>{"use strict";var n=i(414);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,t,i,r,o,s){if(s!==n){var l=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 l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var i={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 i.PropTypes=i,i}},5697:(e,t,i)=>{e.exports=i(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 i(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=109)}([function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(17),r=i(18),o=i(19),s=i(45),l=i(46),a=i(47),c=i(48),h=i(49),u=i(12),d=i(32),f=i(33),p=i(31),m=i(1),g={Scope:m.Scope,create:m.create,find:m.find,query:m.query,register:m.register,Container:n.default,Format:r.default,Leaf:o.default,Embed:c.default,Scroll:s.default,Block:a.default,Inline:l.default,Text:h.default,Attributor:{Attribute:u.default,Class:d.default,Style:f.default,Store:p.default}};t.default=g},function(e,t,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t){var i=this;return t="[Parchment] "+t,(i=e.call(this,t)||this).message=t,i.name=i.constructor.name,i}return r(t,e),t}(Error);t.ParchmentError=o;var s,l={},a={},c={},h={};function u(e,t){var i;if(void 0===t&&(t=s.ANY),"string"==typeof e)i=h[e]||l[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)i=h.text;else if("number"==typeof e)e&s.LEVEL&s.BLOCK?i=h.block:e&s.LEVEL&s.INLINE&&(i=h.inline);else if(e instanceof HTMLElement){var n=(e.getAttribute("class")||"").split(/\s+/);for(var r in n)if(i=a[n[r]])break;i=i||c[e.tagName]}return null==i?null:t&s.LEVEL&i.scope&&t&s.TYPE&i.scope?i: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 i=u(e);if(null==i)throw new o("Unable to create "+e+" blot");var n=i,r=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:n.create(t);return new n(r,t)},t.find=function e(i,n){return void 0===n&&(n=!1),null==i?null:null!=i[t.DATA_KEY]?i[t.DATA_KEY].blot:n?e(i.parentNode,n):null},t.query=u,t.register=function e(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];if(t.length>1)return t.map((function(t){return e(t)}));var n=t[0];if("string"!=typeof n.blotName&&"string"!=typeof n.attrName)throw new o("Invalid definition");if("abstract"===n.blotName)throw new o("Cannot register abstract class");if(h[n.blotName||n.attrName]=n,"string"==typeof n.keyName)l[n.keyName]=n;else if(null!=n.className&&(a[n.className]=n),null!=n.tagName){Array.isArray(n.tagName)?n.tagName=n.tagName.map((function(e){return e.toUpperCase()})):n.tagName=n.tagName.toUpperCase();var r=Array.isArray(n.tagName)?n.tagName:[n.tagName];r.forEach((function(e){null!=c[e]&&null!=n.className||(c[e]=n)}))}return n}},function(e,t,i){var n=i(51),r=i(11),o=i(3),s=i(20),l=String.fromCharCode(0),a=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};a.prototype.insert=function(e,t){var i={};return 0===e.length?this:(i.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(i.attributes=t),this.push(i))},a.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},a.prototype.retain=function(e,t){if(e<=0)return this;var i={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(i.attributes=t),this.push(i)},a.prototype.push=function(e){var t=this.ops.length,i=this.ops[t-1];if(e=o(!0,{},e),"object"==typeof i){if("number"==typeof e.delete&&"number"==typeof i.delete)return this.ops[t-1]={delete:i.delete+e.delete},this;if("number"==typeof i.delete&&null!=e.insert&&(t-=1,"object"!=typeof(i=this.ops[t-1])))return this.ops.unshift(e),this;if(r(e.attributes,i.attributes)){if("string"==typeof e.insert&&"string"==typeof i.insert)return this.ops[t-1]={insert:i.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof i.retain)return this.ops[t-1]={retain:i.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},a.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},a.prototype.filter=function(e){return this.ops.filter(e)},a.prototype.forEach=function(e){this.ops.forEach(e)},a.prototype.map=function(e){return this.ops.map(e)},a.prototype.partition=function(e){var t=[],i=[];return this.forEach((function(n){(e(n)?t:i).push(n)})),[t,i]},a.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},a.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+s.length(t):t.delete?e-t.delete:e}),0)},a.prototype.length=function(){return this.reduce((function(e,t){return e+s.length(t)}),0)},a.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var i=[],n=s.iterator(this.ops),r=0;r<t&&n.hasNext();){var o;r<e?o=n.next(e-r):(o=n.next(t-r),i.push(o)),r+=s.length(o)}return new a(i)},a.prototype.compose=function(e){var t=s.iterator(this.ops),i=s.iterator(e.ops),n=[],o=i.peek();if(null!=o&&"number"==typeof o.retain&&null==o.attributes){for(var l=o.retain;"insert"===t.peekType()&&t.peekLength()<=l;)l-=t.peekLength(),n.push(t.next());o.retain-l>0&&i.next(o.retain-l)}for(var c=new a(n);t.hasNext()||i.hasNext();)if("insert"===i.peekType())c.push(i.next());else if("delete"===t.peekType())c.push(t.next());else{var h=Math.min(t.peekLength(),i.peekLength()),u=t.next(h),d=i.next(h);if("number"==typeof d.retain){var f={};"number"==typeof u.retain?f.retain=h:f.insert=u.insert;var p=s.attributes.compose(u.attributes,d.attributes,"number"==typeof u.retain);if(p&&(f.attributes=p),c.push(f),!i.hasNext()&&r(c.ops[c.ops.length-1],f)){var m=new a(t.rest());return c.concat(m).chop()}}else"number"==typeof d.delete&&"number"==typeof u.retain&&c.push(d)}return c.chop()},a.prototype.concat=function(e){var t=new a(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},a.prototype.diff=function(e,t){if(this.ops===e.ops)return new a;var i=[this,e].map((function(t){return t.map((function(i){if(null!=i.insert)return"string"==typeof i.insert?i.insert:l;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),o=new a,c=n(i[0],i[1],t),h=s.iterator(this.ops),u=s.iterator(e.ops);return c.forEach((function(e){for(var t=e[1].length;t>0;){var i=0;switch(e[0]){case n.INSERT:i=Math.min(u.peekLength(),t),o.push(u.next(i));break;case n.DELETE:i=Math.min(t,h.peekLength()),h.next(i),o.delete(i);break;case n.EQUAL:i=Math.min(h.peekLength(),u.peekLength(),t);var l=h.next(i),a=u.next(i);r(l.insert,a.insert)?o.retain(i,s.attributes.diff(l.attributes,a.attributes)):o.push(a).delete(i)}t-=i}})),o.chop()},a.prototype.eachLine=function(e,t){t=t||"\n";for(var i=s.iterator(this.ops),n=new a,r=0;i.hasNext();){if("insert"!==i.peekType())return;var o=i.peek(),l=s.length(o)-i.peekLength(),c="string"==typeof o.insert?o.insert.indexOf(t,l)-l:-1;if(c<0)n.push(i.next());else if(c>0)n.push(i.next(c));else{if(!1===e(n,i.next(1).attributes||{},r))return;r+=1,n=new a}}n.length()>0&&e(n,{},r)},a.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var i=s.iterator(this.ops),n=s.iterator(e.ops),r=new a;i.hasNext()||n.hasNext();)if("insert"!==i.peekType()||!t&&"insert"===n.peekType())if("insert"===n.peekType())r.push(n.next());else{var o=Math.min(i.peekLength(),n.peekLength()),l=i.next(o),c=n.next(o);if(l.delete)continue;c.delete?r.push(c):r.retain(o,s.attributes.transform(l.attributes,c.attributes,t))}else r.retain(s.length(i.next()));return r.chop()},a.prototype.transformPosition=function(e,t){t=!!t;for(var i=s.iterator(this.ops),n=0;i.hasNext()&&n<=e;){var r=i.peekLength(),o=i.peekType();i.next(),"delete"!==o?("insert"===o&&(n<e||!t)&&(e+=r),n+=r):e-=Math.min(r,e-n)}return e},e.exports=a},function(e,t){"use strict";var i=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},l=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var t,r=i.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&i.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!o)return!1;for(t in e);return void 0===t||i.call(e,t)},a=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(!i.call(e,t))return;if(o)return o(e,t).value}return e[t]};e.exports=function e(){var t,i,n,r,o,h,u=arguments[0],d=1,f=arguments.length,p=!1;for("boolean"==typeof u&&(p=u,u=arguments[1]||{},d=2),(null==u||"object"!=typeof u&&"function"!=typeof u)&&(u={});d<f;++d)if(null!=(t=arguments[d]))for(i in t)n=c(u,i),u!==(r=c(t,i))&&(p&&r&&(l(r)||(o=s(r)))?(o?(o=!1,h=n&&s(n)?n:[]):h=n&&l(n)?n:{},a(u,{name:i,newValue:e(p,h,r)})):void 0!==r&&a(u,{name:i,newValue:r}));return u}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var n=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),r=function e(t,i,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,i);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(n):void 0},o=u(i(3)),s=u(i(2)),l=u(i(0)),a=u(i(16)),c=u(i(6)),h=u(i(7));function u(e){return e&&e.__esModule?e:{default:e}}function d(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 p(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 m=function(e){function t(){return d(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p(t,e),n(t,[{key:"attach",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new l.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 i=l.default.query(e,l.default.Scope.BLOCK_ATTRIBUTE);null!=i&&this.attributes.attribute(i,t)}},{key:"formatAt",value:function(e,t,i,n){this.format(i,n)}},{key:"insertAt",value:function(e,i,n){if("string"==typeof i&&i.endsWith("\n")){var o=l.default.create(g.blotName);this.parent.insertBefore(o,0===e?this:this.next),o.insertAt(0,i.slice(0,-1))}else r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,i,n)}}]),t}(l.default.Embed);m.scope=l.default.Scope.BLOCK_BLOT;var g=function(e){function t(e){d(this,t);var i=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return i.cache={},i}return p(t,e),n(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(l.default.Leaf).reduce((function(e,t){return 0===t.length()?e:e.insert(t.value(),O(t))}),new s.default).insert("\n",O(this))),this.cache.delta}},{key:"deleteAt",value:function(e,i){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,i),this.cache={}}},{key:"formatAt",value:function(e,i,n,o){i<=0||(l.default.query(n,l.default.Scope.BLOCK)?e+i===this.length()&&this.format(n,o):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(i,this.length()-e-1),n,o),this.cache={})}},{key:"insertAt",value:function(e,i,n){if(null!=n)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,i,n);if(0!==i.length){var o=i.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 l=this;o.reduce((function(e,t){return(l=l.split(e,!0)).insertAt(0,t),t.length}),e+s.length)}}},{key:"insertBefore",value:function(e,i){var n=this.children.head;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,i),n instanceof a.default&&n.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,i){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,i),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 i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(i&&(0===e||e>=this.length()-1)){var n=this.clone();return 0===e?(this.parent.insertBefore(n,this),this):(this.parent.insertBefore(n,this.next),n)}var o=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,i);return this.cache={},o}}]),t}(l.default.Block);function O(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:O(e.parent,t))}g.blotName="block",g.tagName="P",g.defaultChild="break",g.allowedChildren=[c.default,l.default.Embed,h.default],t.bubbleFormats=O,t.BlockEmbed=m,t.default=g},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var 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},r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,r=!1,o=void 0;try{for(var s,l=e[Symbol.iterator]();!(n=(s=l.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){r=!0,o=e}finally{try{!n&&l.return&&l.return()}finally{if(r)throw o}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();i(50);var s=g(i(2)),l=g(i(14)),a=g(i(8)),c=g(i(9)),h=g(i(0)),u=i(15),d=g(u),f=g(i(3)),p=g(i(10)),m=g(i(34));function g(e){return e&&e.__esModule?e:{default:e}}function O(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var y=(0,p.default)("quill"),b=function(){function e(t){var i=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(v(this,e),this.options=w(t,n),this.container=this.options.container,null==this.container)return y.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 a.default,this.scroll=h.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new l.default(this.scroll),this.selection=new d.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(a.default.events.EDITOR_CHANGE,(function(e){e===a.default.events.TEXT_CHANGE&&i.root.classList.toggle("ql-blank",i.editor.isBlank())})),this.emitter.on(a.default.events.SCROLL_UPDATE,(function(e,t){var n=i.selection.lastRange,r=n&&0===n.length?n.index:void 0;x.call(i,(function(){return i.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"),p.default.level(e)}},{key:"find",value:function(e){return e.__quill||h.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&y.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var i=this,n=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(n){i.register(n,e[n],t)}))}else null==this.imports[e]||n||y.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?h.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 i=e;(e=document.createElement("div")).classList.add(i)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,i){var n=this,o=S(e,t,i),s=r(o,4);return e=s[0],t=s[1],i=s[3],x.call(this,(function(){return n.editor.deleteText(e,t)}),i,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 i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.default.sources.API;return x.call(this,(function(){var n=i.getSelection(!0),r=new s.default;if(null==n)return r;if(h.default.query(e,h.default.Scope.BLOCK))r=i.editor.formatLine(n.index,n.length,O({},e,t));else{if(0===n.length)return i.selection.format(e,t),r;r=i.editor.formatText(n.index,n.length,O({},e,t))}return i.setSelection(n,a.default.sources.SILENT),r}),n)}},{key:"formatLine",value:function(e,t,i,n,o){var s,l=this,a=S(e,t,i,n,o),c=r(a,4);return e=c[0],t=c[1],s=c[2],o=c[3],x.call(this,(function(){return l.editor.formatLine(e,t,s)}),o,e,0)}},{key:"formatText",value:function(e,t,i,n,o){var s,l=this,a=S(e,t,i,n,o),c=r(a,4);return e=c[0],t=c[1],s=c[2],o=c[3],x.call(this,(function(){return l.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,i=void 0;i="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var n=this.container.getBoundingClientRect();return{bottom:i.bottom-n.top,height:i.height,left:i.left-n.left,right:i.right-n.left,top:i.top-n.top,width:i.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,i=S(e,t),n=r(i,2);return e=n[0],t=n[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,i=S(e,t),n=r(i,2);return e=n[0],t=n[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,i,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return x.call(this,(function(){return r.editor.insertEmbed(t,i,n)}),o,t)}},{key:"insertText",value:function(e,t,i,n,o){var s,l=this,a=S(e,0,i,n,o),c=r(a,4);return e=c[0],s=c[2],o=c[3],x.call(this,(function(){return l.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,i){this.clipboard.dangerouslyPasteHTML(e,t,i)}},{key:"removeFormat",value:function(e,t,i){var n=this,o=S(e,t,i),s=r(o,4);return e=s[0],t=s[1],i=s[3],x.call(this,(function(){return n.editor.removeFormat(e,t)}),i,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.sources.API;return x.call(this,(function(){e=new s.default(e);var i=t.getLength(),n=t.editor.deleteText(0,i),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)),n.compose(r)}),i)}},{key:"setSelection",value:function(t,i,n){if(null==t)this.selection.setRange(null,i||e.sources.API);else{var o=S(t,i,n),s=r(o,4);t=s[0],i=s[1],n=s[3],this.selection.setRange(new u.Range(t,i),n),n!==a.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.sources.API,i=(new s.default).insert(e);return this.setContents(i,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.sources.API;return x.call(this,(function(){return e=new s.default(e),t.editor.applyDelta(e,i)}),i,!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!==b.DEFAULTS.theme){if(t.theme=b.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=m.default;var i=(0,f.default)(!0,{},t.theme.DEFAULTS);[i,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var n=Object.keys(i.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var i=b.import("modules/"+t);return null==i?y.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=i.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,{},b.DEFAULTS,{modules:n},i,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,i){return t.modules[i]&&(e[i]=t.modules[i]),e}),{}),t}function x(e,t,i,n){if(this.options.strict&&!this.isEnabled()&&t===a.default.sources.USER)return new s.default;var r=null==i?null:this.getSelection(),o=this.editor.delta,l=e();if(null!=r&&(!0===i&&(i=r.index),null==n?r=k(r,l,t):0!==n&&(r=k(r,i,n,t)),this.setSelection(r,a.default.sources.SILENT)),l.length()>0){var c,h,u=[a.default.events.TEXT_CHANGE,l,o,t];(c=this.emitter).emit.apply(c,[a.default.events.EDITOR_CHANGE].concat(u)),t!==a.default.sources.SILENT&&(h=this.emitter).emit.apply(h,u)}return l}function S(e,t,i,r,o){var s={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(o=r,r=i,i=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(o=r,r=i,i=t,t=0),"object"===(void 0===i?"undefined":n(i))?(s=i,o=r):"string"==typeof i&&(null!=r?s[i]=r:o=i),[e,t,s,o=o||a.default.sources.API]}function k(e,t,i,n){if(null==e)return null;var o=void 0,l=void 0;if(t instanceof s.default){var c=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,n!==a.default.sources.USER)})),h=r(c,2);o=h[0],l=h[1]}else{var d=[e.index,e.index+e.length].map((function(e){return e<t||e===t&&n===a.default.sources.USER?e:i>=0?e+i:Math.max(t,e+i)})),f=r(d,2);o=f[0],l=f[1]}return new u.Range(o,l-o)}b.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},b.events=a.default.events,b.sources=a.default.sources,b.version="1.3.7",b.imports={delta:s.default,parchment:h.default,"core/module":c.default,"core/theme":m.default},t.expandConfig=w,t.overload=S,t.default=b},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),r=function e(t,i,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,i);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(n):void 0},o=l(i(7)),s=l(i(0));function l(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 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 h=function(e){function t(){return a(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),n(t,[{key:"formatAt",value:function(e,i,n,o){if(t.compare(this.statics.blotName,n)<0&&s.default.query(n,s.default.Scope.BLOT)){var l=this.isolate(e,i);o&&l.wrap(n,o)}else r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,i,n,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 i=this.parent.isolate(this.offset(),this.length());this.moveChildren(i),i.wrap(this)}}}],[{key:"compare",value:function(e,i){var n=t.order.indexOf(e),r=t.order.indexOf(i);return n>=0||r>=0?n-r:e===i?0:e<i?-1:1}}]),t}(s.default.Inline);h.allowedChildren=[h,s.default.Embed,o.default],h.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=h},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,r=i(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 l=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}(((n=r)&&n.__esModule?n:{default:n}).default.Text);t.default=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),r=function e(t,i,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,i);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(n):void 0},o=s(i(54));function s(e){return e&&e.__esModule?e:{default:e}}var l=(0,s(i(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(e){document.addEventListener(e,(function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(e){var i;e.__quill&&e.__quill.emitter&&(i=e.__quill.emitter).handleDOM.apply(i,t)}))}))}));var a=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",l.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),n(t,[{key:"emit",value:function(){l.log.apply(l,arguments),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];(this.listeners[e.type]||[]).forEach((function(t){var n=t.node,r=t.handler;(e.target===n||n.contains(e.target))&&r.apply(void 0,[e].concat(i))}))}},{key:"listenDOM",value:function(e,t,i){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:i})}}]),t}(o.default);a.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"},a.sources={API:"api",SILENT:"silent",USER:"user"},t.default=a},function(e,t,i){"use strict";function n(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 i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,e),this.quill=t,this.options=i};r.DEFAULTS={},t.default=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=["error","warn","log","info"],r="warn";function o(e){if(n.indexOf(e)<=n.indexOf(r)){for(var t,i=arguments.length,o=Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];(t=console)[e].apply(t,o)}}function s(e){return n.reduce((function(t,i){return t[i]=o.bind(console,i,e),t}),{})}o.level=s.level=function(e){r=e},t.default=s},function(e,t,i){var n=Array.prototype.slice,r=i(52),o=i(53),s=e.exports=function(e,t,i){return i||(i={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?i.strict?e===t:e==t:function(e,t,i){var c,h;if(l(e)||l(t))return!1;if(e.prototype!==t.prototype)return!1;if(o(e))return!!o(t)&&(e=n.call(e),t=n.call(t),s(e,t,i));if(a(e)){if(!a(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 u=r(e),d=r(t)}catch(e){return!1}if(u.length!=d.length)return!1;for(u.sort(),d.sort(),c=u.length-1;c>=0;c--)if(u[c]!=d[c])return!1;for(c=u.length-1;c>=0;c--)if(h=u[c],!s(e[h],t[h],i))return!1;return typeof e==typeof t}(e,t,i))};function l(e){return null==e}function a(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,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),r=function(){function e(e,t,i){void 0===i&&(i={}),this.attrName=e,this.keyName=t;var r=n.Scope.TYPE&n.Scope.ATTRIBUTE;null!=i.scope?this.scope=i.scope&n.Scope.LEVEL|r:this.scope=n.Scope.ATTRIBUTE,null!=i.whitelist&&(this.whitelist=i.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!=n.query(e,n.Scope.BLOT&(this.scope|n.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,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,r=!1,o=void 0;try{for(var s,l=e[Symbol.iterator]();!(n=(s=l.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){r=!0,o=e}finally{try{!n&&l.return&&l.return()}finally{if(r)throw o}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=function e(t,i,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,i);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(n):void 0},s=u(i(2)),l=u(i(0)),a=u(i(4)),c=u(i(6)),h=u(i(7));function u(e){return e&&e.__esModule?e:{default:e}}function d(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 p(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 m=function(e){function t(){return d(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p(t,e),t}(c.default);m.blotName="code",m.tagName="CODE";var g=function(e){function t(){return d(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p(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,i){return t.insert(i).insert("\n",e.formats())}),new s.default)}},{key:"format",value:function(e,i){if(e!==this.statics.blotName||!i){var r=this.descendant(h.default,this.length()-1),s=n(r,1)[0];null!=s&&s.deleteAt(s.length()-1,1),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,i)}}},{key:"formatAt",value:function(e,i,n,r){if(0!==i&&null!=l.default.query(n,l.default.Scope.BLOCK)&&(n!==this.statics.blotName||r!==this.statics.formats(this.domNode))){var o=this.newlineIndex(e);if(!(o<0||o>=e+i)){var s=this.newlineIndex(e,!0)+1,a=o-s+1,c=this.isolate(s,a),h=c.next;c.format(n,r),h instanceof t&&h.formatAt(0,e-s+i-a,n,r)}}}},{key:"insertAt",value:function(e,t,i){if(null==i){var r=this.descendant(h.default,e),o=n(r,2),s=o[0],l=o[1];s.insertAt(l,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 i=this.domNode.textContent.slice(e).indexOf("\n");return i>-1?e+i:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(l.default.create("text","\n")),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var i=this.next;null!=i&&i.prev===this&&i.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===i.statics.formats(i.domNode)&&(i.optimize(e),i.moveChildren(this),i.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=l.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof l.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var i=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return i.setAttribute("spellcheck",!1),i}},{key:"formats",value:function(){return!0}}]),t}(a.default);g.blotName="code-block",g.tagName="PRE",g.TAB=" ",t.Code=m,t.default=g},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var 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},r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,r=!1,o=void 0;try{for(var s,l=e[Symbol.iterator]();!(n=(s=l.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){r=!0,o=e}finally{try{!n&&l.return&&l.return()}finally{if(r)throw o}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),s=O(i(2)),l=O(i(20)),a=O(i(0)),c=O(i(13)),h=O(i(24)),u=i(4),d=O(u),f=O(i(16)),p=O(i(21)),m=O(i(11)),g=O(i(3));function O(e){return e&&e.__esModule?e:{default:e}}var v=/^[ -~]*$/,y=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,i=!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 i=(0,p.default)(t.attributes);return delete i.image,e.insert({image:t.attributes.image},i)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||((t=(0,p.default)(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"==typeof t.insert){var n=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(n,t.attributes)}return e.push(t)}),new s.default)}(e)).reduce((function(e,s){var c=s.retain||s.delete||s.insert.length||1,h=s.attributes||{};if(null!=s.insert){if("string"==typeof s.insert){var f=s.insert;f.endsWith("\n")&&i&&(i=!1,f=f.slice(0,-1)),e>=o&&!f.endsWith("\n")&&(i=!0),t.scroll.insertAt(e,f);var p=t.scroll.line(e),m=r(p,2),O=m[0],v=m[1],y=(0,g.default)({},(0,u.bubbleFormats)(O));if(O instanceof d.default){var b=O.descendant(a.default.Leaf,v),w=r(b,1)[0];y=(0,g.default)(y,(0,u.bubbleFormats)(w))}h=l.default.attributes.diff(y,h)||{}}else if("object"===n(s.insert)){var x=Object.keys(s.insert)[0];if(null==x)return e;t.scroll.insertAt(e,x,s.insert[x])}o+=c}return Object.keys(h).forEach((function(i){t.scroll.formatAt(e,c,i,h[i])})),e+c}),0),e.reduce((function(e,i){return"number"==typeof i.delete?(t.scroll.deleteAt(e,i.delete),e):e+(i.retain||i.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 i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(n).forEach((function(r){if(null==i.scroll.whitelist||i.scroll.whitelist[r]){var o=i.scroll.lines(e,Math.max(t,1)),s=t;o.forEach((function(t){var o=t.length();if(t instanceof c.default){var l=e-t.offset(i.scroll),a=t.newlineIndex(l+s)-l+1;t.formatAt(l,a,r,n[r])}else t.format(r,n[r]);s-=o}))}})),this.scroll.optimize(),this.update((new s.default).retain(e).retain(t,(0,p.default)(n)))}},{key:"formatText",value:function(e,t){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(n).forEach((function(r){i.scroll.formatAt(e,t,r,n[r])})),this.update((new s.default).retain(e).retain(t,(0,p.default)(n)))}},{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,i=[],n=[];0===t?this.scroll.path(e).forEach((function(e){var t=r(e,1)[0];t instanceof d.default?i.push(t):t instanceof a.default.Leaf&&n.push(t)})):(i=this.scroll.lines(e,t),n=this.scroll.descendants(a.default.Leaf,e,t));var o=[i,n].map((function(e){if(0===e.length)return{};for(var t=(0,u.bubbleFormats)(e.shift());Object.keys(t).length>0;){var i=e.shift();if(null==i)return t;t=b((0,u.bubbleFormats)(i),t)}return t}));return g.default.apply(g.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,i){return this.scroll.insertAt(e,t,i),this.update((new s.default).retain(e).insert(function(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}({},t,i)))}},{key:"insertText",value:function(e,t){var i=this,n=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(n).forEach((function(r){i.scroll.formatAt(e,t.length,r,n[r])})),this.update((new s.default).retain(e).insert(t,(0,p.default)(n)))}},{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===d.default.blotName&&!(e.children.length>1)&&e.children.head instanceof f.default}},{key:"removeFormat",value:function(e,t){var i=this.getText(e,t),n=this.scroll.line(e+t),o=r(n,2),l=o[0],a=o[1],h=0,u=new s.default;null!=l&&(h=l instanceof c.default?l.newlineIndex(a)-a+1:l.length()-a,u=l.delta().slice(a,a+h-1).insert("\n"));var d=this.getContents(e,t+h).diff((new s.default).insert(i).concat(u)),f=(new s.default).retain(e).concat(d);return this.applyDelta(f)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(v)&&a.default.find(t[0].target)){var r=a.default.find(t[0].target),o=(0,u.bubbleFormats)(r),l=r.offset(this.scroll),c=t[0].oldValue.replace(h.default.CONTENTS,""),d=(new s.default).insert(c),f=(new s.default).insert(r.value()),p=(new s.default).retain(l).concat(d.diff(f,i));e=p.reduce((function(e,t){return t.insert?e.insert(t.insert,o):e.push(t)}),new s.default),this.delta=n.compose(e)}else this.delta=this.getDelta(),e&&(0,m.default)(n.compose(e),this.delta)||(e=n.diff(this.delta,i));return e}}]),e}();function b(e,t){return Object.keys(t).reduce((function(i,n){return null==e[n]||(t[n]===e[n]?i[n]=t[n]:Array.isArray(t[n])?t[n].indexOf(e[n])<0&&(i[n]=t[n].concat([e[n]])):i[n]=[t[n],e[n]]),i}),{})}t.default=y},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,r=!1,o=void 0;try{for(var s,l=e[Symbol.iterator]();!(n=(s=l.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){r=!0,o=e}finally{try{!n&&l.return&&l.return()}finally{if(r)throw o}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=c(i(0)),s=c(i(21)),l=c(i(11)),a=c(i(8));function c(e){return e&&e.__esModule?e:{default:e}}function h(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var d=(0,c(i(10)).default)("quill:selection"),f=function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;u(this,e),this.index=t,this.length=i},p=function(){function e(t,i){var n=this;u(this,e),this.emitter=i,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(){n.mouseDown||setTimeout(n.update.bind(n,a.default.sources.USER),1)})),this.emitter.on(a.default.events.EDITOR_CHANGE,(function(e,t){e===a.default.events.TEXT_CHANGE&&t.length()>0&&n.update(a.default.sources.SILENT)})),this.emitter.on(a.default.events.SCROLL_BEFORE_UPDATE,(function(){if(n.hasFocus()){var e=n.getNativeRange();null!=e&&e.start.node!==n.cursor.textNode&&n.emitter.once(a.default.events.SCROLL_UPDATE,(function(){try{n.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(e){}}))}})),this.emitter.on(a.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var i=t.range,r=i.startNode,o=i.startOffset,s=i.endNode,l=i.endOffset;n.setNativeRange(r,o,s,l)}})),this.update(a.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(a.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 i=this.getNativeRange();if(null!=i&&i.native.collapsed&&!o.default.query(e,o.default.Scope.BLOCK)){if(i.start.node!==this.cursor.textNode){var n=o.default.find(i.start.node,!1);if(null==n)return;if(n instanceof o.default.Leaf){var r=n.split(i.start.offset);n.parent.insertBefore(this.cursor,r)}else n.insertBefore(this.cursor,i.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,i=this.scroll.length();e=Math.min(e,i-1),t=Math.min(e+t,i-1)-e;var r=void 0,o=this.scroll.leaf(e),s=n(o,2),l=s[0],a=s[1];if(null==l)return null;var c=l.position(a,!0),h=n(c,2);r=h[0],a=h[1];var u=document.createRange();if(t>0){u.setStart(r,a);var d=this.scroll.leaf(e+t),f=n(d,2);if(l=f[0],a=f[1],null==l)return null;var p=l.position(a,!0),m=n(p,2);return r=m[0],a=m[1],u.setEnd(r,a),u.getBoundingClientRect()}var g="left",O=void 0;return r instanceof Text?(a<r.data.length?(u.setStart(r,a),u.setEnd(r,a+1)):(u.setStart(r,a-1),u.setEnd(r,a),g="right"),O=u.getBoundingClientRect()):(O=l.domNode.getBoundingClientRect(),a>0&&(g="right")),{bottom:O.top+O.height,height:O.height,left:O[g],right:O[g],top:O.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 i=this.normalizeNative(t);return d.info("getNativeRange",i),i}},{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,i=[[e.start.node,e.start.offset]];e.native.collapsed||i.push([e.end.node,e.end.offset]);var r=i.map((function(e){var i=n(e,2),r=i[0],s=i[1],l=o.default.find(r,!0),a=l.offset(t.scroll);return 0===s?a:l instanceof o.default.Container?a+l.length():a+l.index(r,s)})),s=Math.min(Math.max.apply(Math,h(r)),this.scroll.length()-1),l=Math.min.apply(Math,[s].concat(h(r)));return new f(l,s-l)}},{key:"normalizeNative",value:function(e){if(!m(this.root,e.startContainer)||!e.collapsed&&!m(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,i=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>i)t=t.childNodes[i],i=0;else{if(t.childNodes.length!==i)break;i=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=i})),t}},{key:"rangeToNative",value:function(e){var t=this,i=e.collapsed?[e.index]:[e.index,e.index+e.length],r=[],o=this.scroll.length();return i.forEach((function(e,i){e=Math.min(o-1,e);var s,l=t.scroll.leaf(e),a=n(l,2),c=a[0],h=a[1],u=c.position(h,0!==i),d=n(u,2);s=d[0],h=d[1],r.push(s,h)})),r.length<2&&(r=r.concat(r)),r}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var i=this.getBounds(t.index,t.length);if(null!=i){var r=this.scroll.length()-1,o=this.scroll.line(Math.min(t.index,r)),s=n(o,1)[0],l=s;if(t.length>0){var a=this.scroll.line(Math.min(t.index+t.length,r));l=n(a,1)[0]}if(null!=s&&null!=l){var c=e.getBoundingClientRect();i.top<c.top?e.scrollTop-=c.top-i.top:i.bottom>c.bottom&&(e.scrollTop+=i.bottom-c.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(d.info("setNativeRange",e,t,i,n),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=i.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||i!==s.endContainer||n!==s.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==i.tagName&&(n=[].indexOf.call(i.parentNode.childNodes,i),i=i.parentNode);var l=document.createRange();l.setStart(e,t),l.setEnd(i,n),o.removeAllRanges(),o.addRange(l)}}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],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.default.sources.API;if("string"==typeof t&&(i=t,t=!1),d.info("setRange",e),null!=e){var n=this.rangeToNative(e);this.setNativeRange.apply(this,h(n).concat([t]))}else this.setNativeRange(null);this.update(i)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.default.sources.USER,t=this.lastRange,i=this.getRange(),r=n(i,2),o=r[0],c=r[1];if(this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,l.default)(t,this.lastRange)){var h;!this.composing&&null!=c&&c.native.collapsed&&c.start.node!==this.cursor.textNode&&this.cursor.restore();var u,d=[a.default.events.SELECTION_CHANGE,(0,s.default)(this.lastRange),(0,s.default)(t),e];(h=this.emitter).emit.apply(h,[a.default.events.EDITOR_CHANGE].concat(d)),e!==a.default.sources.SILENT&&(u=this.emitter).emit.apply(u,d)}}}]),e}();function m(e,t){try{t.parentNode}catch(e){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=f,t.default=p},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=function e(t,i,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,i);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(n):void 0},s=i(0);function l(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 c=function(e){function t(){return l(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,[{key:"insertInto",value:function(e,i){0===e.children.length?o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,i):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(((n=s)&&n.__esModule?n:{default:n}).default.Embed);c.blotName="break",c.tagName="BR",t.default=c},function(e,t,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o=i(44),s=i(30),l=i(1),a=function(e){function t(t){var i=e.call(this,t)||this;return i.build(),i}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 i=c(t);e.insertBefore(i,e.children.head||void 0)}catch(e){if(e instanceof l.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,i){e.deleteAt(t,i)}))},t.prototype.descendant=function(e,i){var n=this.children.find(i),r=n[0],o=n[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,i,n){void 0===i&&(i=0),void 0===n&&(n=Number.MAX_VALUE);var r=[],o=n;return this.children.forEachAt(i,n,(function(i,n,s){(null==e.blotName&&e(i)||null!=e.blotName&&i instanceof e)&&r.push(i),i instanceof t&&(r=r.concat(i.descendants(e,n,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,i,n){this.children.forEachAt(e,t,(function(e,t,r){e.formatAt(t,r,i,n)}))},t.prototype.insertAt=function(e,t,i){var n=this.children.find(e),r=n[0],o=n[1];if(r)r.insertAt(o,t,i);else{var s=null==i?l.create("text",t):l.create(t,i);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 l.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(i){e.insertBefore(i,t)}))},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var i=l.create(this.statics.defaultChild);this.appendChild(i),i.optimize(t)}else this.remove()},t.prototype.path=function(e,i){void 0===i&&(i=!1);var n=this.children.find(e,i),r=n[0],o=n[1],s=[[this,e]];return r instanceof t?s.concat(r.path(o,i)):(null!=r&&s.push([r,o]),s)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(i){i instanceof t&&i.moveChildren(this),e.prototype.replace.call(this,i)},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 i=this.clone();return this.parent.insertBefore(i,this.next),this.children.forEachAt(e,this.length(),(function(e,n,r){e=e.split(n,t),i.appendChild(e)})),i},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var i=this,n=[],r=[];e.forEach((function(e){e.target===i.domNode&&"childList"===e.type&&(n.push.apply(n,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=l.find(e);null!=t&&(null!=t.domNode.parentNode&&t.domNode.parentNode!==i.domNode||t.detach())}})),n.filter((function(e){return e.parentNode==i.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=l.find(e.nextSibling));var n=c(e);n.next==t&&null!=n.next||(null!=n.parent&&n.parent.removeChild(i),i.insertBefore(n,t||void 0))}))},t}(s.default);function c(e){var t=l.find(e);if(null==t)try{t=l.create(e)}catch(i){t=l.create(l.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=a},function(e,t,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o=i(12),s=i(31),l=i(17),a=i(1),c=function(e){function t(t){var i=e.call(this,t)||this;return i.attributes=new s.default(i.domNode),i}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 i=a.query(e);i instanceof o.default?this.attributes.attribute(i,t):t&&(null==i||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,i){var n=e.prototype.replaceWith.call(this,t,i);return this.attributes.copy(n),n},t.prototype.update=function(t,i){var n=this;e.prototype.update.call(this,t,i),t.some((function(e){return e.target===n.domNode&&"attributes"===e.type}))&&this.attributes.build()},t.prototype.wrap=function(i,n){var r=e.prototype.wrap.call(this,i,n);return r instanceof t&&r.statics.scope===this.statics.scope&&this.attributes.move(r),r},t}(l.default);t.default=c},function(e,t,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o=i(30),s=i(1),l=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 i=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(i+=1),[this.parent.domNode,i]},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=l},function(e,t,i){var n=i(11),r=i(3),o={attributes:{compose:function(e,t,i){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=r(!0,{},t);for(var o in i||(n=Object.keys(n).reduce((function(e,t){return null!=n[t]&&(e[t]=n[t]),e}),{})),e)void 0!==e[o]&&void 0===t[o]&&(n[o]=e[o]);return Object.keys(n).length>0?n:void 0},diff:function(e,t){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var i=Object.keys(e).concat(Object.keys(t)).reduce((function(i,r){return n(e[r],t[r])||(i[r]=void 0===t[r]?null:t[r]),i}),{});return Object.keys(i).length>0?i:void 0},transform:function(e,t,i){if("object"!=typeof e)return t;if("object"==typeof t){if(!i)return t;var n=Object.keys(t).reduce((function(i,n){return void 0===e[n]&&(i[n]=t[n]),i}),{});return Object.keys(n).length>0?n: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 i=this.offset,n=o.length(t);if(e>=n-i?(e=n-i,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(i,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,i=this.next(),n=this.ops.slice(this.index);return this.offset=e,this.index=t,[i].concat(n)}return[]},e.exports=o},function(e,t){var i=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var t,i,n;try{t=Map}catch(e){t=function(){}}try{i=Set}catch(e){i=function(){}}try{n=Promise}catch(e){n=function(){}}function r(o,l,a,c,h){"object"==typeof l&&(a=l.depth,c=l.prototype,h=l.includeNonEnumerable,l=l.circular);var u=[],d=[],f="undefined"!=typeof Buffer;return void 0===l&&(l=!0),void 0===a&&(a=1/0),function o(a,p){if(null===a)return null;if(0===p)return a;var m,g;if("object"!=typeof a)return a;if(e(a,t))m=new t;else if(e(a,i))m=new i;else if(e(a,n))m=new n((function(e,t){a.then((function(t){e(o(t,p-1))}),(function(e){t(o(e,p-1))}))}));else if(r.__isArray(a))m=[];else if(r.__isRegExp(a))m=new RegExp(a.source,s(a)),a.lastIndex&&(m.lastIndex=a.lastIndex);else if(r.__isDate(a))m=new Date(a.getTime());else{if(f&&Buffer.isBuffer(a))return m=Buffer.allocUnsafe?Buffer.allocUnsafe(a.length):new Buffer(a.length),a.copy(m),m;e(a,Error)?m=Object.create(a):void 0===c?(g=Object.getPrototypeOf(a),m=Object.create(g)):(m=Object.create(c),g=c)}if(l){var O=u.indexOf(a);if(-1!=O)return d[O];u.push(a),d.push(m)}for(var v in e(a,t)&&a.forEach((function(e,t){var i=o(t,p-1),n=o(e,p-1);m.set(i,n)})),e(a,i)&&a.forEach((function(e){var t=o(e,p-1);m.add(t)})),a){var y;g&&(y=Object.getOwnPropertyDescriptor(g,v)),y&&null==y.set||(m[v]=o(a[v],p-1))}if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(a);for(v=0;v<b.length;v++){var w=b[v];(!(S=Object.getOwnPropertyDescriptor(a,w))||S.enumerable||h)&&(m[w]=o(a[w],p-1),S.enumerable||Object.defineProperty(m,w,{enumerable:!1}))}}if(h){var x=Object.getOwnPropertyNames(a);for(v=0;v<x.length;v++){var S,k=x[v];(S=Object.getOwnPropertyDescriptor(a,k))&&S.enumerable||(m[k]=o(a[k],p-1),Object.defineProperty(m,k,{enumerable:!1}))}}return m}(o,a)}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=i)},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,r=!1,o=void 0;try{for(var s,l=e[Symbol.iterator]();!(n=(s=l.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){r=!0,o=e}finally{try{!n&&l.return&&l.return()}finally{if(r)throw o}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=function e(t,i,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,i);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(n):void 0},s=f(i(0)),l=f(i(8)),a=i(4),c=f(a),h=f(i(16)),u=f(i(13)),d=f(i(25));function f(e){return e&&e.__esModule?e:{default:e}}function p(e){return e instanceof c.default||e instanceof a.BlockEmbed}var m=function(e){function t(e,i){!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.emitter=i.emitter,Array.isArray(i.whitelist)&&(n.whitelist=i.whitelist.reduce((function(e,t){return e[t]=!0,e}),{})),n.domNode.addEventListener("DOMNodeInserted",(function(){})),n.optimize(),n.enable(),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),r(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,i){var r=this.line(e),s=n(r,2),l=s[0],c=s[1],d=this.line(e+i),f=n(d,1)[0];if(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,i),null!=f&&l!==f&&c>0){if(l instanceof a.BlockEmbed||f instanceof a.BlockEmbed)return void this.optimize();if(l instanceof u.default){var p=l.newlineIndex(l.length(),!0);if(p>-1&&(l=l.split(p+1))===f)return void this.optimize()}else if(f instanceof u.default){var m=f.newlineIndex(0);m>-1&&f.split(m+1)}var g=f.children.head instanceof h.default?null:f.children.head;l.moveChildren(f,g),l.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,i,n,r){(null==this.whitelist||this.whitelist[n])&&(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,i,n,r),this.optimize())}},{key:"insertAt",value:function(e,i,n){if(null==n||null==this.whitelist||this.whitelist[i]){if(e>=this.length())if(null==n||null==s.default.query(i,s.default.Scope.BLOCK)){var r=s.default.create(this.statics.defaultChild);this.appendChild(r),null==n&&i.endsWith("\n")&&(i=i.slice(0,-1)),r.insertAt(0,i,n)}else{var l=s.default.create(i,n);this.appendChild(l)}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,i,n);this.optimize()}}},{key:"insertBefore",value:function(e,i){if(e.statics.scope===s.default.Scope.INLINE_BLOT){var n=s.default.create(this.statics.defaultChild);n.appendChild(e),e=n}o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,i)}},{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(p,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,i=function e(t,i,n){var r=[],o=n;return t.children.forEachAt(i,n,(function(t,i,n){p(t)?r.push(t):t instanceof s.default.Container&&(r=r.concat(e(t,i,o))),o-=n})),r};return i(this,e,t)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=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,i),e.length>0&&this.emitter.emit(l.default.events.SCROLL_OPTIMIZE,e,i))}},{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 i=l.default.sources.USER;"string"==typeof e&&(i=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(l.default.events.SCROLL_BEFORE_UPDATE,i,e),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(l.default.events.SCROLL_UPDATE,i,e)}}}]),t}(s.default.Scroll);m.blotName="scroll",m.className="ql-editor",m.tagName="DIV",m.defaultChild="block",m.allowedChildren=[c.default,a.BlockEmbed,d.default],t.default=m},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var 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},r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,r=!1,o=void 0;try{for(var s,l=e[Symbol.iterator]();!(n=(s=l.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){r=!0,o=e}finally{try{!n&&l.return&&l.return()}finally{if(r)throw o}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),s=m(i(21)),l=m(i(11)),a=m(i(3)),c=m(i(2)),h=m(i(20)),u=m(i(0)),d=m(i(5)),f=m(i(10)),p=m(i(9));function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var O=(0,f.default)("quill:keyboard"),v=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",y=function(e){function t(e,i){!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,i));return n.bindings={},Object.keys(n.options.bindings).forEach((function(t){("list autofill"!==t||null==e.scroll.whitelist||e.scroll.whitelist.list)&&n.options.bindings[t]&&n.addBinding(n.options.bindings[t])})),n.addBinding({key:t.keys.ENTER,shiftKey:null},k),n.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(n.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},w),n.addBinding({key:t.keys.DELETE},{collapsed:!0},x)):(n.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},w),n.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},x)),n.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},S),n.addBinding({key:t.keys.DELETE},{collapsed:!1},S),n.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},w),n.listen(),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),o(t,null,[{key:"match",value:function(e,t){return t=T(t),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(i){return!!t[i]!==e[i]&&null!==t[i]}))&&t.key===(e.which||e.keyCode)}}]),o(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=T(e);if(null==n||null==n.key)return O.warn("Attempted to add invalid keyboard binding",n);"function"==typeof t&&(t={handler:t}),"function"==typeof i&&(i={handler:i}),n=(0,a.default)(n,t,i),this.bindings[n.key]=this.bindings[n.key]||[],this.bindings[n.key].push(n)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(i){if(!i.defaultPrevented){var o=i.which||i.keyCode,s=(e.bindings[o]||[]).filter((function(e){return t.match(i,e)}));if(0!==s.length){var a=e.quill.getSelection();if(null!=a&&e.quill.hasFocus()){var c=e.quill.getLine(a.index),h=r(c,2),d=h[0],f=h[1],p=e.quill.getLeaf(a.index),m=r(p,2),g=m[0],O=m[1],v=0===a.length?[g,O]:e.quill.getLeaf(a.index+a.length),y=r(v,2),b=y[0],w=y[1],x=g instanceof u.default.Text?g.value().slice(0,O):"",S=b instanceof u.default.Text?b.value().slice(w):"",k={collapsed:0===a.length,empty:0===a.length&&d.length()<=1,format:e.quill.getFormat(a),offset:f,prefix:x,suffix:S};s.some((function(t){if(null!=t.collapsed&&t.collapsed!==k.collapsed)return!1;if(null!=t.empty&&t.empty!==k.empty)return!1;if(null!=t.offset&&t.offset!==k.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==k.format[e]})))return!1}else if("object"===n(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=k.format[e]:!1===t.format[e]?null==k.format[e]:(0,l.default)(t.format[e],k.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(k.prefix)||null!=t.suffix&&!t.suffix.test(k.suffix)||!0===t.handler.call(e,a,k))}))&&i.preventDefault()}}}}))}}]),t}(p.default);function b(e,t){var i,n=e===y.keys.LEFT?"prefix":"suffix";return g(i={key:e,shiftKey:t,altKey:null},n,/^$/),g(i,"handler",(function(i){var n=i.index;e===y.keys.RIGHT&&(n+=i.length+1);var o=this.quill.getLeaf(n);return!(r(o,1)[0]instanceof u.default.Embed&&(e===y.keys.LEFT?t?this.quill.setSelection(i.index-1,i.length+1,d.default.sources.USER):this.quill.setSelection(i.index-1,d.default.sources.USER):t?this.quill.setSelection(i.index,i.length+1,d.default.sources.USER):this.quill.setSelection(i.index+i.length+1,d.default.sources.USER),1))})),i}function w(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var i=this.quill.getLine(e.index),n=r(i,1)[0],o={};if(0===t.offset){var s=this.quill.getLine(e.index-1),l=r(s,1)[0];if(null!=l&&l.length()>1){var a=n.formats(),c=this.quill.getFormat(e.index-1,1);o=h.default.attributes.diff(a,c)||{}}}var u=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-u,u,d.default.sources.USER),Object.keys(o).length>0&&this.quill.formatLine(e.index-u,u,o,d.default.sources.USER),this.quill.focus()}}function x(e,t){var i=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-i)){var n={},o=0,s=this.quill.getLine(e.index),l=r(s,1)[0];if(t.offset>=l.length()-1){var a=this.quill.getLine(e.index+1),c=r(a,1)[0];if(c){var u=l.formats(),f=this.quill.getFormat(e.index,1);n=h.default.attributes.diff(u,f)||{},o=c.length()}}this.quill.deleteText(e.index,i,d.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index+o-1,i,n,d.default.sources.USER)}}function S(e){var t=this.quill.getLines(e),i={};if(t.length>1){var n=t[0].formats(),r=t[t.length-1].formats();i=h.default.attributes.diff(r,n)||{}}this.quill.deleteText(e,d.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(e.index,1,i,d.default.sources.USER),this.quill.setSelection(e.index,d.default.sources.SILENT),this.quill.focus()}function k(e,t){var i=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var n=Object.keys(t.format).reduce((function(e,i){return u.default.query(i,u.default.Scope.BLOCK)&&!Array.isArray(t.format[i])&&(e[i]=t.format[i]),e}),{});this.quill.insertText(e.index,"\n",n,d.default.sources.USER),this.quill.setSelection(e.index+1,d.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==n[e]&&(Array.isArray(t.format[e])||"link"!==e&&i.quill.format(e,t.format[e],d.default.sources.USER))}))}function $(e){return{key:y.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var i=u.default.query("code-block"),n=t.index,o=t.length,s=this.quill.scroll.descendant(i,n),l=r(s,2),a=l[0],c=l[1];if(null!=a){var h=this.quill.getIndex(a),f=a.newlineIndex(c,!0)+1,p=a.newlineIndex(h+c+o),m=a.domNode.textContent.slice(f,p).split("\n");c=0,m.forEach((function(t,r){e?(a.insertAt(f+c,i.TAB),c+=i.TAB.length,0===r?n+=i.TAB.length:o+=i.TAB.length):t.startsWith(i.TAB)&&(a.deleteAt(f+c,i.TAB.length),c-=i.TAB.length,0===r?n-=i.TAB.length:o-=i.TAB.length),c+=t.length+1})),this.quill.update(d.default.sources.USER),this.quill.setSelection(n,o,d.default.sources.SILENT)}}}}function _(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,i){this.quill.format(e,!i.format[e],d.default.sources.USER)}}}function T(e){if("string"==typeof e||"number"==typeof e)return T({key:e});if("object"===(void 0===e?"undefined":n(e))&&(e=(0,s.default)(e,!1)),"string"==typeof e.key)if(null!=y.keys[e.key.toUpperCase()])e.key=y.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[v]=e.shortKey,delete e.shortKey),e}y.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},y.DEFAULTS={bindings:{bold:_("bold"),italic:_("italic"),underline:_("underline"),indent:{key:y.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",d.default.sources.USER)}},outdent:{key:y.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",d.default.sources.USER)}},"outdent backspace":{key:y.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",d.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,d.default.sources.USER)}},"indent code-block":$(!0),"outdent code-block":$(!1),"remove tab":{key:y.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,d.default.sources.USER)}},tab:{key:y.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,d.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,d.default.sources.SILENT)}},"list empty enter":{key:y.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,d.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,d.default.sources.USER)}},"checklist enter":{key:y.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),i=r(t,2),n=i[0],o=i[1],s=(0,a.default)({},n.formats(),{list:"checked"}),l=(new c.default).retain(e.index).insert("\n",s).retain(n.length()-o-1).retain(1,{list:"unchecked"});this.quill.updateContents(l,d.default.sources.USER),this.quill.setSelection(e.index+1,d.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:y.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var i=this.quill.getLine(e.index),n=r(i,2),o=n[0],s=n[1],l=(new c.default).retain(e.index).insert("\n",t.format).retain(o.length()-s-1).retain(1,{header:null});this.quill.updateContents(l,d.default.sources.USER),this.quill.setSelection(e.index+1,d.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var i=t.prefix.length,n=this.quill.getLine(e.index),o=r(n,2),s=o[0],l=o[1];if(l>i)return!0;var a=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":a="unchecked";break;case"[x]":a="checked";break;case"-":case"*":a="bullet";break;default:a="ordered"}this.quill.insertText(e.index," ",d.default.sources.USER),this.quill.history.cutoff();var h=(new c.default).retain(e.index-l).delete(i+1).retain(s.length()-2-l).retain(1,{list:a});this.quill.updateContents(h,d.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-i,d.default.sources.SILENT)}},"code exit":{key:y.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),i=r(t,2),n=i[0],o=i[1],s=(new c.default).retain(e.index+n.length()-o-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(s,d.default.sources.USER)}},"embed left":b(y.keys.LEFT,!1),"embed left shift":b(y.keys.LEFT,!0),"embed right":b(y.keys.RIGHT,!1),"embed right shift":b(y.keys.RIGHT,!0)}},t.default=y,t.SHORTKEY=v},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,r=!1,o=void 0;try{for(var s,l=e[Symbol.iterator]();!(n=(s=l.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){r=!0,o=e}finally{try{!n&&l.return&&l.return()}finally{if(r)throw o}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function e(t,i,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,i);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(n):void 0},o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),s=a(i(0)),l=a(i(7));function a(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e,i){!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.selection=i,n.textNode=document.createTextNode(t.CONTENTS),n.domNode.appendChild(n.textNode),n._length=0,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),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,i){if(0!==this._length)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,i);for(var n=this,o=0;null!=n&&n.statics.scope!==s.default.Scope.BLOCK_BLOT;)o+=n.offset(n.parent),n=n.parent;null!=n&&(this._length=t.CONTENTS.length,n.optimize(),n.formatAt(o,t.CONTENTS.length,e,i),this._length=0)}},{key:"index",value:function(e,i){return e===this.textNode?0:r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,i)}},{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,i=this.selection.getNativeRange(),r=void 0,o=void 0,a=void 0;if(null!=i&&i.start.node===e&&i.end.node===e){var c=[e,i.start.offset,i.end.offset];r=c[0],o=c[1],a=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 h=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof l.default?(r=this.next.domNode,this.next.insertAt(0,h),this.textNode.data=t.CONTENTS):(this.textNode.data=h,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 u=[o,a].map((function(e){return Math.max(0,Math.min(r.data.length,e-1))})),d=n(u,2);return o=d[0],a=d[1],{startNode:r,startOffset:o,endNode:r,endOffset:a}}}}},{key:"update",value:function(e,t){var i=this;if(e.some((function(e){return"characterData"===e.type&&e.target===i.textNode}))){var n=this.restore();n&&(t.range=n)}}},{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,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(i(0)),r=i(4),o=s(r);function s(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 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 c=function(e){function t(){return l(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),t}(n.default.Container);c.allowedChildren=[o.default,r.BlockEmbed,c],t.default=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var n,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=function e(t,i,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,i);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(n):void 0},s=i(0),l=(n=s)&&n.__esModule?n:{default:n};function a(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 h=function(e){function t(){return a(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 i=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return i.startsWith("rgb(")?(i=i.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+i.split(",").map((function(e){return("00"+parseInt(e).toString(16)).slice(-2)})).join("")):i}}]),t}(l.default.Attributor.Style),u=new l.default.Attributor.Class("color","ql-color",{scope:l.default.Scope.INLINE}),d=new h("color","color",{scope:l.default.Scope.INLINE});t.ColorAttributor=h,t.ColorClass=u,t.ColorStyle=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var n,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=function e(t,i,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,i);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(n):void 0},s=i(6);function l(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 c=function(e){function t(){return l(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,[{key:"format",value:function(e,i){if(e!==this.statics.blotName||!i)return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,i);i=this.constructor.sanitize(i),this.domNode.setAttribute("href",i)}}],[{key:"create",value:function(e){var i=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),i.setAttribute("href",e),i.setAttribute("rel","noopener noreferrer"),i.setAttribute("target","_blank"),i}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return h(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}(((n=s)&&n.__esModule?n:{default:n}).default);function h(e,t){var i=document.createElement("a");i.href=e;var n=i.href.slice(0,i.href.indexOf(":"));return t.indexOf(n)>-1}c.blotName="link",c.tagName="A",c.SANITIZED_URL="about:blank",c.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=c,t.sanitize=h},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var 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},r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=l(i(23)),s=l(i(107));function l(e){return e&&e.__esModule?e:{default:e}}var a=0;function c(e,t){e.setAttribute(t,!("true"===e.getAttribute(t)))}var h=function(){function e(t){var i=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(){i.togglePicker()})),this.label.addEventListener("keydown",(function(e){switch(e.keyCode){case o.default.keys.ENTER:i.togglePicker();break;case o.default.keys.ESCAPE:i.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,i=document.createElement("span");return i.tabIndex="0",i.setAttribute("role","button"),i.classList.add("ql-picker-item"),e.hasAttribute("value")&&i.setAttribute("data-value",e.getAttribute("value")),e.textContent&&i.setAttribute("data-label",e.textContent),i.addEventListener("click",(function(){t.selectItem(i,!0)})),i.addEventListener("keydown",(function(e){switch(e.keyCode){case o.default.keys.ENTER:t.selectItem(i,!0),e.preventDefault();break;case o.default.keys.ESCAPE:t.escape(),e.preventDefault()}})),i}},{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-"+a,a+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach((function(i){var n=e.buildItem(i);t.appendChild(n),!0===i.selected&&e.selectItem(n)})),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],i=this.container.querySelector(".ql-selected");if(e!==i&&(null!=i&&i.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":n(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 i=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",i)}}]),e}();t.default=h},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=O(i(0)),r=O(i(5)),o=i(4),s=O(o),l=O(i(16)),a=O(i(25)),c=O(i(24)),h=O(i(35)),u=O(i(6)),d=O(i(22)),f=O(i(7)),p=O(i(55)),m=O(i(42)),g=O(i(23));function O(e){return e&&e.__esModule?e:{default:e}}r.default.register({"blots/block":s.default,"blots/block/embed":o.BlockEmbed,"blots/break":l.default,"blots/container":a.default,"blots/cursor":c.default,"blots/embed":h.default,"blots/inline":u.default,"blots/scroll":d.default,"blots/text":f.default,"modules/clipboard":p.default,"modules/history":m.default,"modules/keyboard":g.default}),n.default.register(s.default,l.default,c.default,u.default,d.default,f.default),t.default=r.default},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),r=function(){function e(e){this.domNode=e,this.domNode[n.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 n.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 n.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[n.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,i,r){var o=this.isolate(e,t);if(null!=n.query(i,n.Scope.BLOT)&&r)o.wrap(i,r);else if(null!=n.query(i,n.Scope.ATTRIBUTE)){var s=n.create(this.statics.scope);o.wrap(s),s.format(i,r)}},e.prototype.insertAt=function(e,t,i){var r=null==i?n.create("text",t):n.create(t,i),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 i=null;e.children.insertBefore(this,t),null!=t&&(i=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==i||e.domNode.insertBefore(this.domNode,i),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var i=this.split(e);return i.split(t),i},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[n.DATA_KEY]&&delete this.domNode[n.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 i="string"==typeof e?n.create(e,t):e;return i.replace(this),i},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 i="string"==typeof e?n.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(i,this.next),i.appendChild(this),i},e.blotName="abstract",e}();t.default=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(12),r=i(32),o=i(33),s=i(1),l=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=n.default.keys(this.domNode),i=r.default.keys(this.domNode),l=o.default.keys(this.domNode);t.concat(i).concat(l).forEach((function(t){var i=s.query(t,s.Scope.ATTRIBUTE);i instanceof n.default&&(e.attributes[i.attrName]=i)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(i){var n=t.attributes[i].value(t.domNode);e.format(i,n)}))},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,i){return t[i]=e.attributes[i].value(e.domNode),t}),{})},e}();t.default=l},function(e,t,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});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}(i(12).default);t.default=s},function(e,t,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});function o(e){var t=e.split("-"),i=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+i}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}(i(12).default);t.default=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),r=function(){function e(t,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=i,this.modules={}}return n(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,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),r=function e(t,i,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,i);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(n):void 0},o=l(i(0)),s=l(i(7));function l(e){return e&&e.__esModule?e:{default:e}}var a="\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 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.contentNode=document.createElement("span"),i.contentNode.setAttribute("contenteditable",!1),[].slice.call(i.domNode.childNodes).forEach((function(e){i.contentNode.appendChild(e)})),i.leftGuard=document.createTextNode(a),i.rightGuard=document.createTextNode(a),i.domNode.appendChild(i.leftGuard),i.domNode.appendChild(i.contentNode),i.domNode.appendChild(i.rightGuard),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),n(t,[{key:"index",value:function(e,i){return e===this.leftGuard?0:e===this.rightGuard?1:r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,i)}},{key:"restore",value:function(e){var t=void 0,i=void 0,n=e.data.split(a).join("");if(e===this.leftGuard)if(this.prev instanceof s.default){var r=this.prev.length();this.prev.insertAt(r,n),t={startNode:this.prev.domNode,startOffset:r+n.length}}else i=document.createTextNode(n),this.parent.insertBefore(o.default.create(i),this),t={startNode:i,startOffset:n.length};else e===this.rightGuard&&(this.next instanceof s.default?(this.next.insertAt(0,n),t={startNode:this.next.domNode,startOffset:n.length}):(i=document.createTextNode(n),this.parent.insertBefore(o.default.create(i),this.next),t={startNode:i,startOffset:n.length}));return e.data=a,t}},{key:"update",value:function(e,t){var i=this;e.forEach((function(e){if("characterData"===e.type&&(e.target===i.leftGuard||e.target===i.rightGuard)){var n=i.restore(e.target);n&&(t.range=n)}}))}}]),t}(o.default.Embed);t.default=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var n,r=i(0),o=(n=r)&&n.__esModule?n:{default:n},s={scope:o.default.Scope.BLOCK,whitelist:["right","center","justify"]},l=new o.default.Attributor.Attribute("align","align",s),a=new o.default.Attributor.Class("align","ql-align",s),c=new o.default.Attributor.Style("align","text-align",s);t.AlignAttribute=l,t.AlignClass=a,t.AlignStyle=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var n,r=i(0),o=(n=r)&&n.__esModule?n:{default:n},s=i(26),l=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),a=new s.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});t.BackgroundClass=l,t.BackgroundStyle=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var n,r=i(0),o=(n=r)&&n.__esModule?n:{default:n},s={scope:o.default.Scope.BLOCK,whitelist:["rtl"]},l=new o.default.Attributor.Attribute("direction","dir",s),a=new o.default.Attributor.Class("direction","ql-direction",s),c=new o.default.Attributor.Style("direction","direction",s);t.DirectionAttribute=l,t.DirectionClass=a,t.DirectionStyle=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var n,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=function e(t,i,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,i);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(n):void 0},s=i(0),l=(n=s)&&n.__esModule?n:{default:n};function a(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 h={scope:l.default.Scope.INLINE,whitelist:["serif","monospace"]},u=new l.default.Attributor.Class("font","ql-font",h),d=function(e){function t(){return a(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}(l.default.Attributor.Style),f=new d("font","font-family",h);t.FontStyle=f,t.FontClass=u},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var n,r=i(0),o=(n=r)&&n.__esModule?n:{default:n},s=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),l=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=s,t.SizeStyle=l},function(e,t,i){"use strict";e.exports={align:{"":i(76),center:i(77),right:i(78),justify:i(79)},background:i(80),blockquote:i(81),bold:i(82),clean:i(83),code:i(58),"code-block":i(58),color:i(84),direction:{"":i(85),rtl:i(86)},float:{center:i(87),full:i(88),left:i(89),right:i(90)},formula:i(91),header:{1:i(92),2:i(93)},italic:i(94),image:i(95),indent:{"+1":i(96),"-1":i(97)},link:i(98),list:{ordered:i(99),bullet:i(100),check:i(101)},script:{sub:i(102),super:i(103)},strike:i(104),underline:i(105),video:i(106)}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var n=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),r=s(i(0)),o=s(i(5));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e,i){!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,i));return n.lastRecorded=0,n.ignoreChange=!1,n.clear(),n.quill.on(o.default.events.EDITOR_CHANGE,(function(e,t,i,r){e!==o.default.events.TEXT_CHANGE||n.ignoreChange||(n.options.userOnly&&r!==o.default.sources.USER?n.transform(t):n.record(t,i))})),n.quill.keyboard.addBinding({key:"Z",shortKey:!0},n.undo.bind(n)),n.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},n.redo.bind(n)),/Win/i.test(navigator.platform)&&n.quill.keyboard.addBinding({key:"Y",shortKey:!0},n.redo.bind(n)),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),n(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var i=this.stack[e].pop();this.stack[t].push(i),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(i[e],o.default.sources.USER),this.ignoreChange=!1;var n=a(i[e]);this.quill.setSelection(n)}}},{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 i=this.quill.getContents().diff(t),n=Date.now();if(this.lastRecorded+this.options.delay>n&&this.stack.undo.length>0){var r=this.stack.undo.pop();i=i.compose(r.undo),e=r.redo.compose(e)}else this.lastRecorded=n;this.stack.undo.push({redo:e,undo:i}),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(i(9)).default);function a(e){var t=e.reduce((function(e,t){return e+=t.delete||0}),0),i=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)&&(i-=1),i}l.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=l,t.getLastChangeIndex=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var n=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),r=function e(t,i,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,i);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(n):void 0},o=p(i(3)),s=p(i(2)),l=p(i(8)),a=p(i(23)),c=p(i(34)),h=p(i(59)),u=p(i(60)),d=p(i(28)),f=p(i(61));function p(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(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 O(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 v=[!1,"center","right","justify"],y=["#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"],b=[!1,"serif","monospace"],w=["1","2","3",!1],x=["small",!1,"large","huge"],S=function(e){function t(e,i){m(this,t);var n=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return e.emitter.listenDOM("click",document.body,(function t(i){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null==n.tooltip||n.tooltip.root.contains(i.target)||document.activeElement===n.tooltip.textbox||n.quill.hasFocus()||n.tooltip.hide(),null!=n.pickers&&n.pickers.forEach((function(e){e.container.contains(i.target)||e.close()}))})),n}return O(t,e),n(t,[{key:"addModule",value:function(e){var i=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(i),i}},{key:"buildButtons",value:function(e,t){e.forEach((function(e){(e.getAttribute("class")||"").split(/\s+/).forEach((function(i){if(i.startsWith("ql-")&&(i=i.slice("ql-".length),null!=t[i]))if("direction"===i)e.innerHTML=t[i][""]+t[i].rtl;else if("string"==typeof t[i])e.innerHTML=t[i];else{var n=e.value||"";null!=n&&t[i][n]&&(e.innerHTML=t[i][n])}}))}))}},{key:"buildPickers",value:function(e,t){var i=this;this.pickers=e.map((function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&$(e,v),new u.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var i=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&$(e,y,"background"===i?"#ffffff":"#000000"),new h.default(e,t[i])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?$(e,b):e.classList.contains("ql-header")?$(e,w):e.classList.contains("ql-size")&&$(e,x)),new d.default(e)})),this.quill.on(l.default.events.EDITOR_CHANGE,(function(){i.pickers.forEach((function(e){e.update()}))}))}}]),t}(c.default);S.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 i=new FileReader;i.onload=function(i){var n=e.quill.getSelection(!0);e.quill.updateContents((new s.default).retain(n.index).delete(n.length).insert({image:i.target.result}),l.default.sources.USER),e.quill.setSelection(n.index+1,l.default.sources.SILENT),t.value=""},i.readAsDataURL(t.files[0])}})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var k=function(e){function t(e,i){m(this,t);var n=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.textbox=n.root.querySelector('input[type="text"]'),n.listen(),n}return O(t,e),n(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){a.default.match(t,"enter")?(e.save(),t.preventDefault()):a.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,i=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var n=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",i,l.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",i,l.default.sources.USER)),this.quill.root.scrollTop=n;break;case"video":t=(e=i).match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/),i=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(!i)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"),i,l.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(o+1," ",l.default.sources.USER),this.quill.setSelection(o+2,l.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}(f.default);function $(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var n=document.createElement("option");t===i?n.setAttribute("selected","selected"):n.setAttribute("value",t),e.appendChild(n)}))}t.BaseTooltip=k,t.default=S},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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,i=this.iterator();t=i();)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,i=this.head;null!=i;){if(i===e)return t;t+=i.length(),i=i.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 i,n=this.iterator();i=n();){var r=i.length();if(e<r||t&&e===r&&(null==i.next||0!==i.next.length()))return[i,e];e-=r}return[null,0]},e.prototype.forEach=function(e){for(var t,i=this.iterator();t=i();)e(t)},e.prototype.forEachAt=function(e,t,i){if(!(t<=0))for(var n,r=this.find(e),o=r[0],s=e-r[1],l=this.iterator(o);(n=l())&&s<e+t;){var a=n.length();e>s?i(n,e-s,Math.min(t,s+a-e)):i(n,0,Math.min(a,e+t-s)),s+=a}},e.prototype.map=function(e){return this.reduce((function(t,i){return t.push(e(i)),t}),[])},e.prototype.reduce=function(e,t){for(var i,n=this.iterator();i=n();)t=e(t,i);return t},e}();t.default=n},function(e,t,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o=i(17),s=i(1),l={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},a=function(e){function t(t){var i=e.call(this,t)||this;return i.scroll=i,i.observer=new MutationObserver((function(e){i.update(e)})),i.observer.observe(i.domNode,l),i.attach(),i}return r(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,i){this.update(),0===t&&i===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,i)},t.prototype.formatAt=function(t,i,n,r){this.update(),e.prototype.formatAt.call(this,t,i,n,r)},t.prototype.insertAt=function(t,i,n){this.update(),e.prototype.insertAt.call(this,t,i,n)},t.prototype.optimize=function(t,i){var n=this;void 0===t&&(t=[]),void 0===i&&(i={}),e.prototype.optimize.call(this,i);for(var r=[].slice.call(this.observer.takeRecords());r.length>0;)t.push(r.pop());for(var l=function(e,t){void 0===t&&(t=!0),null!=e&&e!==n&&null!=e.domNode.parentNode&&(null==e.domNode[s.DATA_KEY].mutations&&(e.domNode[s.DATA_KEY].mutations=[]),t&&l(e.parent))},a=function(e){null!=e.domNode[s.DATA_KEY]&&null!=e.domNode[s.DATA_KEY].mutations&&(e instanceof o.default&&e.children.forEach(a),e.optimize(i))},c=t,h=0;c.length>0;h+=1){if(h>=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?(l(s.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=s.find(e,!1);l(t,!1),t instanceof o.default&&t.children.forEach((function(e){l(e,!1)}))}))):"attributes"===e.type&&l(t.prev)),l(t))})),this.children.forEach(a),r=(c=[].slice.call(this.observer.takeRecords())).slice();r.length>0;)t.push(r.pop())}},t.prototype.update=function(t,i){var n=this;void 0===i&&(i={}),(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!==n&&null!=e.domNode[s.DATA_KEY]&&e.update(e.domNode[s.DATA_KEY].mutations||[],i)})),null!=this.domNode[s.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[s.DATA_KEY].mutations,i),this.optimize(t,i)},t.blotName="scroll",t.defaultChild="block",t.scope=s.Scope.BLOCK_BLOT,t.tagName="DIV",t}(o.default);t.default=a},function(e,t,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o=i(18),s=i(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(i){if(i.tagName!==t.tagName)return e.formats.call(this,i)},t.prototype.format=function(i,n){var r=this;i!==this.statics.blotName||n?e.prototype.format.call(this,i,n):(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,i,n,r){null!=this.formats()[n]||s.query(n,s.Scope.ATTRIBUTE)?this.isolate(t,i).format(n,r):e.prototype.formatAt.call(this,t,i,n,r)},t.prototype.optimize=function(i){e.prototype.optimize.call(this,i);var n=this.formats();if(0===Object.keys(n).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 i in e)if(e[i]!==t[i])return!1;return!0}(n,r.formats())&&(r.moveChildren(this),r.remove())},t.blotName="inline",t.scope=s.Scope.INLINE_BLOT,t.tagName="SPAN",t}(o.default);t.default=l},function(e,t,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o=i(18),s=i(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(i){var n=s.query(t.blotName).tagName;if(i.tagName!==n)return e.formats.call(this,i)},t.prototype.format=function(i,n){null!=s.query(i,s.Scope.BLOCK)&&(i!==this.statics.blotName||n?e.prototype.format.call(this,i,n):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,i,n,r){null!=s.query(n,s.Scope.BLOCK)?this.format(n,r):e.prototype.formatAt.call(this,t,i,n,r)},t.prototype.insertAt=function(t,i,n){if(null==n||null!=s.query(i,s.Scope.INLINE))e.prototype.insertAt.call(this,t,i,n);else{var r=this.split(t),o=s.create(i,n);r.parent.insertBefore(o,r)}},t.prototype.update=function(t,i){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,i)},t.blotName="block",t.scope=s.Scope.BLOCK_BLOT,t.tagName="P",t}(o.default);t.default=l},function(e,t,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});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,i){e.prototype.formatAt.call(this,0,this.length(),t,i)},t.prototype.formatAt=function(t,i,n,r){0===t&&i===this.length()?this.format(n,r):e.prototype.formatAt.call(this,t,i,n,r)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(i(19).default);t.default=o},function(e,t,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o=i(19),s=i(1),l=function(e){function t(t){var i=e.call(this,t)||this;return i.text=i.statics.value(i.domNode),i}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,i,n){null==n?(this.text=this.text.slice(0,t)+i+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,i,n)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(i){e.prototype.optimize.call(this,i),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 i=s.create(this.domNode.splitText(e));return this.parent.insertBefore(i,this.next),this.text=this.statics.value(this.domNode),i},t.prototype.update=function(e,t){var i=this;e.some((function(e){return"characterData"===e.type&&e.target===i.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=l},function(e,t,i){"use strict";var n=document.createElement("div");if(n.classList.toggle("test-class",!1),n.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 i=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>i.length)&&(t=i.length),t-=e.length;var n=i.indexOf(e,t);return-1!==n&&n===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,i=Object(this),n=i.length>>>0,r=arguments[1],o=0;o<n;o++)if(t=i[o],e.call(r,t,o,i))return t}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(e,t){var i=-1;function n(e,t,a){if(e==t)return e?[[0,e]]:[];(a<0||e.length<a)&&(a=null);var h=o(e,t),u=e.substring(0,h);h=s(e=e.substring(h),t=t.substring(h));var d=e.substring(e.length-h),f=function(e,t){var l;if(!e)return[[1,t]];if(!t)return[[i,e]];var a=e.length>t.length?e:t,c=e.length>t.length?t:e,h=a.indexOf(c);if(-1!=h)return l=[[1,a.substring(0,h)],[0,c],[1,a.substring(h+c.length)]],e.length>t.length&&(l[0][0]=l[2][0]=i),l;if(1==c.length)return[[i,e],[1,t]];var u=function(e,t){var i=e.length>t.length?e:t,n=e.length>t.length?t:e;if(i.length<4||2*n.length<i.length)return null;function r(e,t,i){for(var n,r,l,a,c=e.substring(i,i+Math.floor(e.length/4)),h=-1,u="";-1!=(h=t.indexOf(c,h+1));){var d=o(e.substring(i),t.substring(h)),f=s(e.substring(0,i),t.substring(0,h));u.length<f+d&&(u=t.substring(h-f,h)+t.substring(h,h+d),n=e.substring(0,i-f),r=e.substring(i+d),l=t.substring(0,h-f),a=t.substring(h+d))}return 2*u.length>=e.length?[n,r,l,a,u]:null}var l,a,c,h,u,d=r(i,n,Math.ceil(i.length/4)),f=r(i,n,Math.ceil(i.length/2));if(!d&&!f)return null;l=f?d&&d[4].length>f[4].length?d:f:d,e.length>t.length?(a=l[0],c=l[1],h=l[2],u=l[3]):(h=l[0],u=l[1],a=l[2],c=l[3]);var p=l[4];return[a,c,h,u,p]}(e,t);if(u){var d=u[0],f=u[1],p=u[2],m=u[3],g=u[4],O=n(d,p),v=n(f,m);return O.concat([[0,g]],v)}return function(e,t){for(var n=e.length,o=t.length,s=Math.ceil((n+o)/2),l=s,a=2*s,c=new Array(a),h=new Array(a),u=0;u<a;u++)c[u]=-1,h[u]=-1;c[l+1]=0,h[l+1]=0;for(var d=n-o,f=d%2!=0,p=0,m=0,g=0,O=0,v=0;v<s;v++){for(var y=-v+p;y<=v-m;y+=2){for(var b=l+y,w=(_=y==-v||y!=v&&c[b-1]<c[b+1]?c[b+1]:c[b-1]+1)-y;_<n&&w<o&&e.charAt(_)==t.charAt(w);)_++,w++;if(c[b]=_,_>n)m+=2;else if(w>o)p+=2;else if(f&&(k=l+d-y)>=0&&k<a&&-1!=h[k]&&_>=(S=n-h[k]))return r(e,t,_,w)}for(var x=-v+g;x<=v-O;x+=2){for(var S,k=l+x,$=(S=x==-v||x!=v&&h[k-1]<h[k+1]?h[k+1]:h[k-1]+1)-x;S<n&&$<o&&e.charAt(n-S-1)==t.charAt(o-$-1);)S++,$++;if(h[k]=S,S>n)O+=2;else if($>o)g+=2;else if(!f){var _;if((b=l+d-x)>=0&&b<a&&-1!=c[b])if(w=l+(_=c[b])-b,_>=(S=n-S))return r(e,t,_,w)}}}return[[i,e],[1,t]]}(e,t)}(e=e.substring(0,e.length-h),t=t.substring(0,t.length-h));return u&&f.unshift([0,u]),d&&f.push([0,d]),l(f),null!=a&&(f=function(e,t){var n=function(e,t){if(0===t)return[0,e];for(var n=0,r=0;r<e.length;r++){var o=e[r];if(o[0]===i||0===o[0]){var s=n+o[1].length;if(t===s)return[r+1,e];if(t<s){e=e.slice();var l=t-n,a=[o[0],o[1].slice(0,l)],c=[o[0],o[1].slice(l)];return e.splice(r,1,a,c),[r+1,e]}n=s}}throw new Error("cursor_pos is out of bounds!")}(e,t),r=n[1],o=n[0],s=r[o],l=r[o+1];if(null==s)return e;if(0!==s[0])return e;if(null!=l&&s[1]+l[1]===l[1]+s[1])return r.splice(o,2,l,s),c(r,o,2);if(null!=l&&0===l[1].indexOf(s[1])){r.splice(o,2,[l[0],s[1]],[0,s[1]]);var a=l[1].slice(s[1].length);return a.length>0&&r.splice(o+2,0,[l[0],a]),c(r,o,3)}return e}(f,a)),f=function(e){for(var t=!1,n=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]===i&&n(e[o-1][1])&&1===e[o][0]&&n(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,i,r){var o=e.substring(0,i),s=t.substring(0,r),l=e.substring(i),a=t.substring(r),c=n(o,s),h=n(l,a);return c.concat(h)}function o(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var i=0,n=Math.min(e.length,t.length),r=n,o=0;i<r;)e.substring(o,r)==t.substring(o,r)?o=i=r:n=r,r=Math.floor((n-i)/2+i);return r}function s(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var i=0,n=Math.min(e.length,t.length),r=n,o=0;i<r;)e.substring(e.length-r,e.length-o)==t.substring(t.length-r,t.length-o)?o=i=r:n=r,r=Math.floor((n-i)/2+i);return r}function l(e){e.push([0,""]);for(var t,n=0,r=0,a=0,c="",h="";n<e.length;)switch(e[n][0]){case 1:a++,h+=e[n][1],n++;break;case i:r++,c+=e[n][1],n++;break;case 0:r+a>1?(0!==r&&0!==a&&(0!==(t=o(h,c))&&(n-r-a>0&&0==e[n-r-a-1][0]?e[n-r-a-1][1]+=h.substring(0,t):(e.splice(0,0,[0,h.substring(0,t)]),n++),h=h.substring(t),c=c.substring(t)),0!==(t=s(h,c))&&(e[n][1]=h.substring(h.length-t)+e[n][1],h=h.substring(0,h.length-t),c=c.substring(0,c.length-t))),0===r?e.splice(n-a,r+a,[1,h]):0===a?e.splice(n-r,r+a,[i,c]):e.splice(n-r-a,r+a,[i,c],[1,h]),n=n-r-a+(r?1:0)+(a?1:0)+1):0!==n&&0==e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,a=0,r=0,c="",h=""}""===e[e.length-1][1]&&e.pop();var u=!1;for(n=1;n<e.length-1;)0==e[n-1][0]&&0==e[n+1][0]&&(e[n][1].substring(e[n][1].length-e[n-1][1].length)==e[n-1][1]?(e[n][1]=e[n-1][1]+e[n][1].substring(0,e[n][1].length-e[n-1][1].length),e[n+1][1]=e[n-1][1]+e[n+1][1],e.splice(n-1,1),u=!0):e[n][1].substring(0,e[n+1][1].length)==e[n+1][1]&&(e[n-1][1]+=e[n+1][1],e[n][1]=e[n][1].substring(e[n+1][1].length)+e[n+1][1],e.splice(n+1,1),u=!0)),n++;u&&l(e)}var a=n;function c(e,t,i){for(var n=t+i-1;n>=0&&n>=t-1;n--)if(n+1<e.length){var r=e[n],o=e[n+1];r[0]===o[1]&&e.splice(n,2,[r[0],r[1]+o[1]])}return e}a.INSERT=1,a.DELETE=i,a.EQUAL=0,e.exports=a},function(e,t){function i(e){var t=[];for(var i in e)t.push(i);return t}(e.exports="function"==typeof Object.keys?Object.keys:i).shim=i},function(e,t){var i="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function n(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=i?n:r).supported=n,t.unsupported=r},function(e,t){"use strict";var i=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,i){this.fn=e,this.context=t,this.once=i||!1}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,t,r=[];if(0===this._eventsCount)return r;for(t in e=this._events)i.call(e,t)&&r.push(n?t.slice(1):t);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},s.prototype.listeners=function(e,t){var i=n?n+e:e,r=this._events[i];if(t)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var o=0,s=r.length,l=new Array(s);o<s;o++)l[o]=r[o].fn;return l},s.prototype.emit=function(e,t,i,r,o,s){var l=n?n+e:e;if(!this._events[l])return!1;var a,c,h=this._events[l],u=arguments.length;if(h.fn){switch(h.once&&this.removeListener(e,h.fn,void 0,!0),u){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,t),!0;case 3:return h.fn.call(h.context,t,i),!0;case 4:return h.fn.call(h.context,t,i,r),!0;case 5:return h.fn.call(h.context,t,i,r,o),!0;case 6:return h.fn.call(h.context,t,i,r,o,s),!0}for(c=1,a=new Array(u-1);c<u;c++)a[c-1]=arguments[c];h.fn.apply(h.context,a)}else{var d,f=h.length;for(c=0;c<f;c++)switch(h[c].once&&this.removeListener(e,h[c].fn,void 0,!0),u){case 1:h[c].fn.call(h[c].context);break;case 2:h[c].fn.call(h[c].context,t);break;case 3:h[c].fn.call(h[c].context,t,i);break;case 4:h[c].fn.call(h[c].context,t,i,r);break;default:if(!a)for(d=1,a=new Array(u-1);d<u;d++)a[d-1]=arguments[d];h[c].fn.apply(h[c].context,a)}}return!0},s.prototype.on=function(e,t,i){var r=new o(t,i||this),s=n?n+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,i){var r=new o(t,i||this,!0),s=n?n+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,i,o){var s=n?n+e:e;if(!this._events[s])return this;if(!t)return 0==--this._eventsCount?this._events=new r:delete this._events[s],this;var l=this._events[s];if(l.fn)l.fn!==t||o&&!l.once||i&&l.context!==i||(0==--this._eventsCount?this._events=new r:delete this._events[s]);else{for(var a=0,c=[],h=l.length;a<h;a++)(l[a].fn!==t||o&&!l[a].once||i&&l[a].context!==i)&&c.push(l[a]);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=n?n+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=n,s.EventEmitter=s,void 0!==e&&(e.exports=s)},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var 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},r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,r=!1,o=void 0;try{for(var s,l=e[Symbol.iterator]();!(n=(s=l.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){r=!0,o=e}finally{try{!n&&l.return&&l.return()}finally{if(r)throw o}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),s=y(i(3)),l=y(i(2)),a=y(i(0)),c=y(i(5)),h=y(i(10)),u=y(i(9)),d=i(36),f=i(37),p=y(i(13)),m=i(26),g=i(38),O=i(39),v=i(40);function y(e){return e&&e.__esModule?e:{default:e}}function b(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var w=(0,h.default)("quill:clipboard"),x="__ql-matcher",S=[[Node.TEXT_NODE,N],[Node.TEXT_NODE,D],["br",function(e,t){return P(t,"\n")||t.insert("\n"),t}],[Node.ELEMENT_NODE,D],[Node.ELEMENT_NODE,M],[Node.ELEMENT_NODE,q],[Node.ELEMENT_NODE,E],[Node.ELEMENT_NODE,function(e,t){var i={},n=e.style||{};return n.fontStyle&&"italic"===Q(e).fontStyle&&(i.italic=!0),n.fontWeight&&(Q(e).fontWeight.startsWith("bold")||parseInt(Q(e).fontWeight)>=700)&&(i.bold=!0),Object.keys(i).length>0&&(t=T(t,i)),parseFloat(n.textIndent||0)>0&&(t=(new l.default).insert("\t").concat(t)),t}],["li",function(e,t){var i=a.default.query(e);if(null==i||"list-item"!==i.blotName||!P(t,"\n"))return t;for(var n=-1,r=e.parentNode;!r.classList.contains("ql-clipboard");)"list"===(a.default.query(r)||{}).blotName&&(n+=1),r=r.parentNode;return n<=0?t:t.compose((new l.default).retain(t.length()-1).retain(1,{indent:n}))}],["b",R.bind(R,"bold")],["i",R.bind(R,"italic")],["style",function(){return new l.default}]],k=[d.AlignAttribute,g.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),$=[d.AlignStyle,f.BackgroundStyle,m.ColorStyle,g.DirectionStyle,O.FontStyle,v.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),_=function(e){function t(e,i){!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,i));return n.quill.root.addEventListener("paste",n.onPaste.bind(n)),n.container=n.quill.addContainer("ql-clipboard"),n.container.setAttribute("contenteditable",!0),n.container.setAttribute("tabindex",-1),n.matchers=[],S.concat(n.options.matchers).forEach((function(e){var t=r(e,2),o=t[0],s=t[1];(i.matchVisual||s!==q)&&n.addMatcher(o,s)})),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),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[p.default.blotName]){var i=this.container.innerText;return this.container.innerHTML="",(new l.default).insert(i,b({},p.default.blotName,t[p.default.blotName]))}var n=this.prepareMatching(),o=r(n,2),s=o[0],a=o[1],c=C(this.container,s,a);return P(c,"\n")&&null==c.ops[c.ops.length-1].attributes&&(c=c.compose((new l.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 i=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 n=this.convert(t);this.quill.updateContents((new l.default).retain(e).concat(n),i),this.quill.setSelection(e+n.length(),c.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var i=this.quill.getSelection(),n=(new l.default).retain(i.index),r=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(c.default.sources.SILENT),setTimeout((function(){n=n.concat(t.convert()).delete(i.length),t.quill.updateContents(n,c.default.sources.USER),t.quill.setSelection(n.length()-i.length,c.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=r,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],i=[];return this.matchers.forEach((function(n){var o=r(n,2),s=o[0],l=o[1];switch(s){case Node.TEXT_NODE:i.push(l);break;case Node.ELEMENT_NODE:t.push(l);break;default:[].forEach.call(e.container.querySelectorAll(s),(function(e){e[x]=e[x]||[],e[x].push(l)}))}})),[t,i]}}]),t}(u.default);function T(e,t,i){return"object"===(void 0===t?"undefined":n(t))?Object.keys(t).reduce((function(e,i){return T(e,i,t[i])}),e):e.reduce((function(e,n){return n.attributes&&n.attributes[t]?e.push(n):e.insert(n.insert,(0,s.default)({},b({},t,i),n.attributes))}),new l.default)}function Q(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function P(e,t){for(var i="",n=e.ops.length-1;n>=0&&i.length<t.length;--n){var r=e.ops[n];if("string"!=typeof r.insert)break;i=r.insert+i}return i.slice(-1*t.length)===t}function A(e){if(0===e.childNodes.length)return!1;var t=Q(e);return["block","list-item"].indexOf(t.display)>-1}function C(e,t,i){return e.nodeType===e.TEXT_NODE?i.reduce((function(t,i){return i(e,t)}),new l.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(n,r){var o=C(r,t,i);return r.nodeType===e.ELEMENT_NODE&&(o=t.reduce((function(e,t){return t(r,e)}),o),o=(r[x]||[]).reduce((function(e,t){return t(r,e)}),o)),n.concat(o)}),new l.default):new l.default}function R(e,t,i){return T(i,e,!0)}function E(e,t){var i=a.default.Attributor.Attribute.keys(e),n=a.default.Attributor.Class.keys(e),r=a.default.Attributor.Style.keys(e),o={};return i.concat(n).concat(r).forEach((function(t){var i=a.default.query(t,a.default.Scope.ATTRIBUTE);null!=i&&(o[i.attrName]=i.value(e),o[i.attrName])||(null==(i=k[t])||i.attrName!==t&&i.keyName!==t||(o[i.attrName]=i.value(e)||void 0),null==(i=$[t])||i.attrName!==t&&i.keyName!==t||(i=$[t],o[i.attrName]=i.value(e)||void 0))})),Object.keys(o).length>0&&(t=T(t,o)),t}function M(e,t){var i=a.default.query(e);if(null==i)return t;if(i.prototype instanceof a.default.Embed){var n={},r=i.value(e);null!=r&&(n[i.blotName]=r,t=(new l.default).insert(n,i.formats(e)))}else"function"==typeof i.formats&&(t=T(t,i.blotName,i.formats(e)));return t}function D(e,t){return P(t,"\n")||(A(e)||t.length()>0&&e.nextSibling&&A(e.nextSibling))&&t.insert("\n"),t}function q(e,t){if(A(e)&&null!=e.nextElementSibling&&!P(t,"\n\n")){var i=e.offsetHeight+parseFloat(Q(e).marginTop)+parseFloat(Q(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*i&&t.insert("\n")}return t}function N(e,t){var i=e.data;if("O:P"===e.parentNode.tagName)return t.insert(i.trim());if(0===i.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!Q(e.parentNode).whiteSpace.startsWith("pre")){var n=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};i=(i=i.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,n.bind(n,!0)),(null==e.previousSibling&&A(e.parentNode)||null!=e.previousSibling&&A(e.previousSibling))&&(i=i.replace(/^\s+/,n.bind(n,!1))),(null==e.nextSibling&&A(e.parentNode)||null!=e.nextSibling&&A(e.nextSibling))&&(i=i.replace(/\s+$/,n.bind(n,!1)))}return t.insert(i)}_.DEFAULTS={matchers:[],matchVisual:!0},t.default=_,t.matchAttributor=E,t.matchBlot=M,t.matchNewline=D,t.matchSpacing=q,t.matchText=N},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=function e(t,i,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,i);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(n):void 0},s=i(6);function l(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 c=function(e){function t(){return l(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,[{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}(((n=s)&&n.__esModule?n:{default:n}).default);c.blotName="bold",c.tagName=["STRONG","B"],t.default=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,r=!1,o=void 0;try{for(var s,l=e[Symbol.iterator]();!(n=(s=l.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){r=!0,o=e}finally{try{!n&&l.return&&l.return()}finally{if(r)throw o}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=h(i(2)),s=h(i(0)),l=h(i(5)),a=h(i(10)),c=h(i(9));function h(e){return e&&e.__esModule?e:{default:e}}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}var d=(0,a.default)("quill:toolbar"),f=function(e){function t(e,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r,o=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));if(Array.isArray(o.options.container)){var s=document.createElement("div");m(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(l.default.events.EDITOR_CHANGE,(function(e,t){e===l.default.events.SELECTION_CHANGE&&o.update(t)})),o.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){var e=o.quill.selection.getRange(),t=n(e,1)[0];o.update(t)})),o):(r=d.error("Container required for toolbar",o.options),u(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,i=[].find.call(e.classList,(function(e){return 0===e.indexOf("ql-")}));if(i){if(i=i.slice("ql-".length),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[i]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[i])return void d.warn("ignoring attaching to disabled format",i,e);if(null==s.default.query(i))return void d.warn("ignoring attaching to nonexistent format",i,e)}var r="SELECT"===e.tagName?"change":"click";e.addEventListener(r,(function(r){var a=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var c=e.options[e.selectedIndex];a=!c.hasAttribute("selected")&&(c.value||!1)}else a=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),r.preventDefault();t.quill.focus();var h=t.quill.selection.getRange(),u=n(h,1)[0];if(null!=t.handlers[i])t.handlers[i].call(t,a);else if(s.default.query(i).prototype instanceof s.default.Embed){if(!(a=prompt("Enter "+i)))return;t.quill.updateContents((new o.default).retain(u.index).delete(u.length).insert(function(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}({},i,a)),l.default.sources.USER)}else t.quill.format(i,a,l.default.sources.USER);t.update(u)})),this.controls.push([i,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(i){var r=n(i,2),o=r[0],s=r[1];if("SELECT"===s.tagName){var l=void 0;if(null==e)l=null;else if(null==t[o])l=s.querySelector("option[selected]");else if(!Array.isArray(t[o])){var a=t[o];"string"==typeof a&&(a=a.replace(/\"/g,'\\"')),l=s.querySelector('option[value="'+a+'"]')}null==l?(s.value="",s.selectedIndex=-1):l.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 p(e,t,i){var n=document.createElement("button");n.setAttribute("type","button"),n.classList.add("ql-"+t),null!=i&&(n.value=i),e.appendChild(n)}function m(e,t){Array.isArray(t[0])||(t=[t]),t.forEach((function(t){var i=document.createElement("span");i.classList.add("ql-formats"),t.forEach((function(e){if("string"==typeof e)p(i,e);else{var t=Object.keys(e)[0],n=e[t];Array.isArray(n)?function(e,t,i){var n=document.createElement("select");n.classList.add("ql-"+t),i.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),n.appendChild(t)})),e.appendChild(n)}(i,t,n):p(i,t,n)}})),e.appendChild(i)}))}f.DEFAULTS={},f.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var i=this.quill.getFormat();Object.keys(i).forEach((function(t){null!=s.default.query(t,s.default.Scope.INLINE)&&e.quill.format(t,!1)}))}else this.quill.removeFormat(t,l.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",l.default.sources.USER):e||"right"!==t||this.quill.format("align",!1,l.default.sources.USER),this.quill.format("direction",e,l.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),i=this.quill.getFormat(t),n=parseInt(i.indent||0);if("+1"===e||"-1"===e){var r="+1"===e?1:-1;"rtl"===i.direction&&(r*=-1),this.quill.format("indent",n+r,l.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,l.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),i=this.quill.getFormat(t);"check"===e?"checked"===i.list||"unchecked"===i.list?this.quill.format("list",!1,l.default.sources.USER):this.quill.format("list","unchecked",l.default.sources.USER):this.quill.format("list",e,l.default.sources.USER)}}},t.default=f,t.addControls=m},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,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=function e(t,i,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,i);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(n):void 0},s=i(28),l=function(e){function t(e,i){!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.label.innerHTML=i,n.container.classList.add("ql-color-picker"),[].slice.call(n.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(e){e.classList.add("ql-primary")})),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),r(t,[{key:"buildItem",value:function(e){var i=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return i.style.backgroundColor=e.getAttribute("value")||"",i}},{key:"selectItem",value:function(e,i){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,i);var n=this.label.querySelector(".ql-color-label"),r=e&&e.getAttribute("data-value")||"";n&&("line"===n.tagName?n.style.stroke=r:n.style.fill=r)}}]),t}(((n=s)&&n.__esModule?n:{default:n}).default);t.default=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=function e(t,i,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,i);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(n):void 0},s=i(28),l=function(e){function t(e,i){!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.container.classList.add("ql-icon-picker"),[].forEach.call(n.container.querySelectorAll(".ql-picker-item"),(function(e){e.innerHTML=i[e.getAttribute("data-value")||""]})),n.defaultItem=n.container.querySelector(".ql-selected"),n.selectItem(n.defaultItem),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),r(t,[{key:"selectItem",value:function(e,i){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,i),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(((n=s)&&n.__esModule?n:{default:n}).default);t.default=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),r=function(){function e(t,i){var n=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=i||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(){n.root.style.marginTop=-1*n.quill.root.scrollTop+"px"})),this.hide()}return n(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,i=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=i+"px",this.root.classList.remove("ql-flip");var n=this.boundsContainer.getBoundingClientRect(),r=this.root.getBoundingClientRect(),o=0;if(r.right>n.right&&(o=n.right-r.right,this.root.style.left=t+o+"px"),r.left<n.left&&(o=n.left-r.left,this.root.style.left=t+o+"px"),r.bottom>n.bottom){var s=r.bottom-r.top,l=e.bottom-e.top+s;this.root.style.top=i-l+"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,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,r=!1,o=void 0;try{for(var s,l=e[Symbol.iterator]();!(n=(s=l.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){r=!0,o=e}finally{try{!n&&l.return&&l.return()}finally{if(r)throw o}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function e(t,i,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,i);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(n):void 0},o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),s=f(i(3)),l=f(i(8)),a=i(43),c=f(a),h=f(i(27)),u=i(15),d=f(i(41));function f(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 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 O=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],v=function(e){function t(e,i){p(this,t),null!=i.modules.toolbar&&null==i.modules.toolbar.container&&(i.modules.toolbar.container=O);var n=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.quill.container.classList.add("ql-snow"),n}return g(t,e),o(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),d.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),d.default),this.tooltip=new y(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(t,i){e.handlers.link.call(e,!i.format.link)}))}}]),t}(c.default);v.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 i=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(i)&&0!==i.indexOf("mailto:")&&(i="mailto:"+i),this.quill.theme.tooltip.edit("link",i)}else this.quill.format("link",!1)}}}}});var y=function(e){function t(e,i){p(this,t);var n=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.preview=n.root.querySelector("a.ql-preview"),n}return g(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 i=e.linkRange;e.restoreFocus(),e.quill.formatText(i,"link",!1,l.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()})),this.quill.on(l.default.events.SELECTION_CHANGE,(function(t,i,r){if(null!=t){if(0===t.length&&r===l.default.sources.USER){var o=e.quill.scroll.descendant(h.default,t.index),s=n(o,2),a=s[0],c=s[1];if(null!=a){e.linkRange=new u.Range(t.index-c,a.length());var d=h.default.formats(a.domNode);return e.preview.textContent=d,e.preview.setAttribute("href",d),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}(a.BaseTooltip);y.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=v},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=D(i(29)),r=i(36),o=i(38),s=i(64),l=D(i(65)),a=D(i(66)),c=i(67),h=D(c),u=i(37),d=i(26),f=i(39),p=i(40),m=D(i(56)),g=D(i(68)),O=D(i(27)),v=D(i(69)),y=D(i(70)),b=D(i(71)),w=D(i(72)),x=D(i(73)),S=i(13),k=D(S),$=D(i(74)),_=D(i(75)),T=D(i(57)),Q=D(i(41)),P=D(i(28)),A=D(i(59)),C=D(i(60)),R=D(i(61)),E=D(i(108)),M=D(i(62));function D(e){return e&&e.__esModule?e:{default:e}}n.default.register({"attributors/attribute/direction":o.DirectionAttribute,"attributors/class/align":r.AlignClass,"attributors/class/background":u.BackgroundClass,"attributors/class/color":d.ColorClass,"attributors/class/direction":o.DirectionClass,"attributors/class/font":f.FontClass,"attributors/class/size":p.SizeClass,"attributors/style/align":r.AlignStyle,"attributors/style/background":u.BackgroundStyle,"attributors/style/color":d.ColorStyle,"attributors/style/direction":o.DirectionStyle,"attributors/style/font":f.FontStyle,"attributors/style/size":p.SizeStyle},!0),n.default.register({"formats/align":r.AlignClass,"formats/direction":o.DirectionClass,"formats/indent":s.IndentClass,"formats/background":u.BackgroundStyle,"formats/color":d.ColorStyle,"formats/font":f.FontClass,"formats/size":p.SizeClass,"formats/blockquote":l.default,"formats/code-block":k.default,"formats/header":a.default,"formats/list":h.default,"formats/bold":m.default,"formats/code":S.Code,"formats/italic":g.default,"formats/link":O.default,"formats/script":v.default,"formats/strike":y.default,"formats/underline":b.default,"formats/image":w.default,"formats/video":x.default,"formats/list/item":c.ListItem,"modules/formula":$.default,"modules/syntax":_.default,"modules/toolbar":T.default,"themes/bubble":E.default,"themes/snow":M.default,"ui/icons":Q.default,"ui/picker":P.default,"ui/icon-picker":C.default,"ui/color-picker":A.default,"ui/tooltip":R.default},!0),t.default=n.default},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var n,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=function e(t,i,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,i);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(n):void 0},s=i(0),l=(n=s)&&n.__esModule?n:{default:n};function a(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 h=function(e){function t(){return a(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,i){if("+1"===i||"-1"===i){var n=this.value(e)||0;i="+1"===i?n+1:n-1}return 0===i?(this.remove(e),!0):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,i)}},{key:"canAdd",value:function(e,i){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,i)||o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(i))}},{key:"value",value:function(e){return parseInt(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}(l.default.Attributor.Class),u=new h("indent","ql-indent",{scope:l.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=u},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,r=i(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 l=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}(((n=r)&&n.__esModule?n:{default:n}).default);l.blotName="blockquote",l.tagName="blockquote",t.default=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=i(4);function s(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 a=function(e){function t(){return s(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:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(((n=o)&&n.__esModule?n:{default:n}).default);a.blotName="header",a.tagName=["H1","H2","H3","H4","H5","H6"],t.default=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var n=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),r=function e(t,i,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,i);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(n):void 0},o=a(i(0)),s=a(i(4)),l=a(i(25));function a(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 h(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 u(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 d=function(e){function t(){return c(this,t),h(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),n(t,[{key:"format",value:function(e,i){e!==f.blotName||i?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,i):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,i){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,i),this):(this.parent.unwrap(),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,i))}}],[{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);d.blotName="list-item",d.tagName="LI";var f=function(e){function t(e){c(this,t);var i=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),n=function(t){if(t.target.parentNode===e){var n=i.statics.formats(e),r=o.default.find(t.target);"checked"===n?r.format("list","unchecked"):"unchecked"===n&&r.format("list","checked")}};return e.addEventListener("touchstart",n),e.addEventListener("mousedown",n),i}return u(t,e),n(t,null,[{key:"create",value:function(e){var i="ordered"===e?"OL":"UL",n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,i);return"checked"!==e&&"unchecked"!==e||n.setAttribute("data-checked","checked"===e),n}},{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}}]),n(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,i=this.statics.formats(this.domNode),t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e;var e,t,i}},{key:"insertBefore",value:function(e,i){if(e instanceof d)r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,i);else{var n=null==i?this.length():i.offset(this),o=this.split(n);o.parent.insertBefore(e,o)}}},{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var i=this.next;null!=i&&i.prev===this&&i.statics.blotName===this.statics.blotName&&i.domNode.tagName===this.domNode.tagName&&i.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(i.moveChildren(this),i.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var i=o.default.create(this.statics.defaultChild);e.moveChildren(i),this.appendChild(i)}r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(l.default);f.blotName="list",f.scope=o.default.Scope.BLOCK_BLOT,f.tagName=["OL","UL"],f.defaultChild="list-item",f.allowedChildren=[d],t.ListItem=d,t.default=f},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,r=i(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 l=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}(((n=r)&&n.__esModule?n:{default:n}).default);l.blotName="italic",l.tagName=["EM","I"],t.default=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=function e(t,i,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,i);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(n):void 0},s=i(6);function l(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 c=function(e){function t(){return l(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:"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}(((n=s)&&n.__esModule?n:{default:n}).default);c.blotName="script",c.tagName=["SUB","SUP"],t.default=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,r=i(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 l=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}(((n=r)&&n.__esModule?n:{default:n}).default);l.blotName="strike",l.tagName="S",t.default=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,r=i(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 l=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}(((n=r)&&n.__esModule?n:{default:n}).default);l.blotName="underline",l.tagName="U",t.default=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=function e(t,i,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,i);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(n):void 0},s=i(0),l=(n=s)&&n.__esModule?n:{default:n},a=i(27);function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(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=["alt","height","width"],d=function(e){function t(){return c(this,t),h(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,i){u.indexOf(e)>-1?i?this.domNode.setAttribute(e,i):this.domNode.removeAttribute(e):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,i)}}],[{key:"create",value:function(e){var i=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&i.setAttribute("src",this.sanitize(e)),i}},{key:"formats",value:function(e){return u.reduce((function(t,i){return e.hasAttribute(i)&&(t[i]=e.getAttribute(i)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,a.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(l.default.Embed);d.blotName="image",d.tagName="IMG",t.default=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=function e(t,i,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,i);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(n):void 0},s=i(4),l=i(27),a=(n=l)&&n.__esModule?n:{default:n};function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(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=["height","width"],d=function(e){function t(){return c(this,t),h(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,i){u.indexOf(e)>-1?i?this.domNode.setAttribute(e,i):this.domNode.removeAttribute(e):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,i)}}],[{key:"create",value:function(e){var i=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return i.setAttribute("frameborder","0"),i.setAttribute("allowfullscreen",!0),i.setAttribute("src",this.sanitize(e)),i}},{key:"formats",value:function(e){return u.reduce((function(t,i){return e.hasAttribute(i)&&(t[i]=e.getAttribute(i)),t}),{})}},{key:"sanitize",value:function(e){return a.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(s.BlockEmbed);d.blotName="video",d.className="ql-video",d.tagName="IFRAME",t.default=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var n=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),r=function e(t,i,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,i);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(n):void 0},o=a(i(35)),s=a(i(5)),l=a(i(9));function a(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 h(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 u(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 d=function(e){function t(){return c(this,t),h(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),n(t,null,[{key:"create",value:function(e){var i=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&(window.katex.render(e,i,{throwOnError:!1,errorColor:"#f00"}),i.setAttribute("data-value",e)),i}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}(o.default);d.blotName="formula",d.className="ql-formula",d.tagName="SPAN";var f=function(e){function t(){c(this,t);var e=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return u(t,e),n(t,null,[{key:"register",value:function(){s.default.register(d,!0)}}]),t}(l.default);t.FormulaBlot=d,t.default=f},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var n=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),r=function e(t,i,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,i);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(n):void 0},o=a(i(0)),s=a(i(5)),l=a(i(9));function a(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 h(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 u(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 d=function(e){function t(){return c(this,t),h(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),n(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(a(i(13)).default);d.className="ql-syntax";var f=new o.default.Attributor.Class("token","hljs",{scope:o.default.Scope.INLINE}),p=function(e){function t(e,i){c(this,t);var n=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));if("function"!=typeof n.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var r=null;return n.quill.on(s.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(r),r=setTimeout((function(){n.highlight(),r=null}),n.options.interval)})),n.highlight(),n}return u(t,e),n(t,null,[{key:"register",value:function(){s.default.register(f,!0),s.default.register(d,!0)}}]),n(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(s.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(d).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(s.default.sources.SILENT),null!=t&&this.quill.setSelection(t,s.default.sources.SILENT)}}}]),t}(l.default);p.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=d,t.CodeToken=f,t.default=p},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var n=function e(t,i,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,i);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(n):void 0},r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=u(i(3)),s=u(i(8)),l=i(43),a=u(l),c=i(15),h=u(i(41));function u(e){return e&&e.__esModule?e:{default:e}}function d(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 p(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 m=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],g=function(e){function t(e,i){d(this,t),null!=i.modules.toolbar&&null==i.modules.toolbar.container&&(i.modules.toolbar.container=m);var n=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.quill.container.classList.add("ql-bubble"),n}return p(t,e),r(t,[{key:"extendToolbar",value:function(e){this.tooltip=new O(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),h.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),h.default)}}]),t}(a.default);g.DEFAULTS=(0,o.default)(!0,{},a.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var O=function(e){function t(e,i){d(this,t);var n=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.quill.on(s.default.events.EDITOR_CHANGE,(function(e,t,i,r){if(e===s.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&r===s.default.sources.USER){n.show(),n.root.style.left="0px",n.root.style.width="",n.root.style.width=n.root.offsetWidth+"px";var o=n.quill.getLines(t.index,t.length);if(1===o.length)n.position(n.quill.getBounds(t));else{var l=o[o.length-1],a=n.quill.getIndex(l),h=Math.min(l.length()-1,t.index+t.length-a),u=n.quill.getBounds(new c.Range(a,h));n.position(u)}}else document.activeElement!==n.textbox&&n.quill.hasFocus()&&n.hide()})),n}return p(t,e),r(t,[{key:"listen",value:function(){var e=this;n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(s.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var i=n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),r=this.root.querySelector(".ql-tooltip-arrow");if(r.style.marginLeft="",0===i)return i;r.style.marginLeft=-1*i-r.offsetWidth/2+"px"}}]),t}(l.BaseTooltip);O.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=O,t.default=g},function(e,t,i){e.exports=i(63)}]).default},e.exports=t()},8660:(e,t,i)=>{e.exports=function(e){var t={};function i(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=4)}([function(e,t){e.exports=i(9196)},function(e,t){e.exports=i(6292)},function(e,t,i){e.exports=i(5)()},function(e,t){e.exports=i(1850)},function(e,t,i){e.exports=i(7)},function(e,t,i){"use strict";var n=i(6);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,t,i,r,o,s){if(s!==n){var l=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 l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var i={array: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 i.PropTypes=i,i}},function(e,t,i){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,i){"use strict";i.r(t);var n=i(2),r=i.n(n),o=i(1),s=i.n(o),l=i(0),a=i.n(l);function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(this,arguments)}function h(e){var t=e.onClickPrev,i=e.onClickSwitch,n=e.onClickNext,r=e.switchContent,o=e.switchColSpan,s=e.switchProps;return a.a.createElement("tr",null,a.a.createElement("th",{className:"rdtPrev",onClick:t},a.a.createElement("span",null,"‹")),a.a.createElement("th",c({className:"rdtSwitch",colSpan:o,onClick:i},s),r),a.a.createElement("th",{className:"rdtNext",onClick:n},a.a.createElement("span",null,"›")))}function u(e){return(u="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})(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var y=function(e){!function(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}}),t&&p(e,t)}(r,e);var t,i,n=function(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 i,n=O(e);if(t){var r=O(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return m(this,i)}}(r);function r(){var e;d(this,r);for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return v(g(e=n.call.apply(n,[this].concat(i))),"_setDate",(function(t){e.props.updateDate(t)})),e}return t=r,(i=[{key:"render",value:function(){return a.a.createElement("div",{className:"rdtDays"},a.a.createElement("table",null,a.a.createElement("thead",null,this.renderNavigation(),this.renderDayHeaders()),a.a.createElement("tbody",null,this.renderDays()),this.renderFooter()))}},{key:"renderNavigation",value:function(){var e=this,t=this.props.viewDate,i=t.localeData();return a.a.createElement(h,{onClickPrev:function(){return e.props.navigate(-1,"months")},onClickSwitch:function(){return e.props.showView("months")},onClickNext:function(){return e.props.navigate(1,"months")},switchContent:i.months(t)+" "+t.year(),switchColSpan:5,switchProps:{"data-value":this.props.viewDate.month()}})}},{key:"renderDayHeaders",value:function(){var e=function(e){var t=e.firstDayOfWeek(),i=[],n=0;return e._weekdaysMin.forEach((function(e){i[(7+n++-t)%7]=e})),i}(this.props.viewDate.localeData()).map((function(e,t){return a.a.createElement("th",{key:e+t,className:"dow"},e)}));return a.a.createElement("tr",null,e)}},{key:"renderDays",value:function(){var e=this.props.viewDate,t=e.clone().startOf("month"),i=e.clone().endOf("month"),n=[[],[],[],[],[],[]],r=e.clone().subtract(1,"months");r.date(r.daysInMonth()).startOf("week");for(var o=r.clone().add(42,"d"),s=0;r.isBefore(o);)b(n,s++).push(this.renderDay(r,t,i)),r.add(1,"d");return n.map((function(e,t){return a.a.createElement("tr",{key:"".concat(o.month(),"_").concat(t)},e)}))}},{key:"renderDay",value:function(e,t,i){var n=this.props.selectedDate,r={key:e.format("M_D"),"data-value":e.date(),"data-month":e.month(),"data-year":e.year()},o="rdtDay";return e.isBefore(t)?o+=" rdtOld":e.isAfter(i)&&(o+=" rdtNew"),n&&e.isSame(n,"day")&&(o+=" rdtActive"),e.isSame(this.props.moment(),"day")&&(o+=" rdtToday"),this.props.isValidDate(e)?r.onClick=this._setDate:o+=" rdtDisabled",r.className=o,this.props.renderDay(r,e.clone(),n&&n.clone())}},{key:"renderFooter",value:function(){var e=this;if(this.props.timeFormat){var t=this.props.viewDate;return a.a.createElement("tfoot",null,a.a.createElement("tr",null,a.a.createElement("td",{onClick:function(){return e.props.showView("time")},colSpan:7,className:"rdtTimeToggle"},t.format(this.props.timeFormat))))}}}])&&f(t.prototype,i),r}(a.a.Component);function b(e,t){return e[Math.floor(t/7)]}function w(e){return(w="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})(e)}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function k(e,t){return(k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $(e,t){return!t||"object"!==w(t)&&"function"!=typeof t?_(e):t}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T(e){return(T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Q(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}v(y,"defaultProps",{isValidDate:function(){return!0},renderDay:function(e,t){return a.a.createElement("td",e,t.date())}});var P=function(e){!function(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}}),t&&k(e,t)}(r,e);var t,i,n=function(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 i,n=T(e);if(t){var r=T(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return $(this,i)}}(r);function r(){var e;x(this,r);for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return Q(_(e=n.call.apply(n,[this].concat(i))),"_updateSelectedMonth",(function(t){e.props.updateDate(t)})),e}return t=r,(i=[{key:"render",value:function(){return a.a.createElement("div",{className:"rdtMonths"},a.a.createElement("table",null,a.a.createElement("thead",null,this.renderNavigation())),a.a.createElement("table",null,a.a.createElement("tbody",null,this.renderMonths())))}},{key:"renderNavigation",value:function(){var e=this,t=this.props.viewDate.year();return a.a.createElement(h,{onClickPrev:function(){return e.props.navigate(-1,"years")},onClickSwitch:function(){return e.props.showView("years")},onClickNext:function(){return e.props.navigate(1,"years")},switchContent:t,switchColSpan:"2"})}},{key:"renderMonths",value:function(){for(var e=[[],[],[]],t=0;t<12;t++)A(e,t).push(this.renderMonth(t));return e.map((function(e,t){return a.a.createElement("tr",{key:t},e)}))}},{key:"renderMonth",value:function(e){var t,i=this.props.selectedDate,n="rdtMonth";this.isDisabledMonth(e)?n+=" rdtDisabled":t=this._updateSelectedMonth,i&&i.year()===this.props.viewDate.year()&&i.month()===e&&(n+=" rdtActive");var r={key:e,className:n,"data-value":e,onClick:t};return this.props.renderMonth?this.props.renderMonth(r,e,this.props.viewDate.year(),this.props.selectedDate&&this.props.selectedDate.clone()):a.a.createElement("td",r,this.getMonthText(e))}},{key:"isDisabledMonth",value:function(e){var t=this.props.isValidDate;if(!t)return!1;for(var i=this.props.viewDate.clone().set({month:e}),n=i.endOf("month").date()+1;n-- >1;)if(t(i.date(n)))return!1;return!0}},{key:"getMonthText",value:function(e){var t,i=this.props.viewDate;return(t=i.localeData().monthsShort(i.month(e)).substring(0,3)).charAt(0).toUpperCase()+t.slice(1)}}])&&S(t.prototype,i),r}(a.a.Component);function A(e,t){return t<4?e[0]:t<8?e[1]:e[2]}function C(e){return(C="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})(e)}function R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function M(e,t){return(M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function D(e,t){return!t||"object"!==C(t)&&"function"!=typeof t?q(e):t}function q(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function N(e){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function j(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var V=function(e){!function(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}}),t&&M(e,t)}(r,e);var t,i,n=function(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 i,n=N(e);if(t){var r=N(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return D(this,i)}}(r);function r(){var e;R(this,r);for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return j(q(e=n.call.apply(n,[this].concat(i))),"disabledYearsCache",{}),j(q(e),"_updateSelectedYear",(function(t){e.props.updateDate(t)})),e}return t=r,(i=[{key:"render",value:function(){return a.a.createElement("div",{className:"rdtYears"},a.a.createElement("table",null,a.a.createElement("thead",null,this.renderNavigation())),a.a.createElement("table",null,a.a.createElement("tbody",null,this.renderYears())))}},{key:"renderNavigation",value:function(){var e=this,t=this.getViewYear();return a.a.createElement(h,{onClickPrev:function(){return e.props.navigate(-10,"years")},onClickSwitch:function(){return e.props.showView("years")},onClickNext:function(){return e.props.navigate(10,"years")},switchContent:"".concat(t,"-").concat(t+9)})}},{key:"renderYears",value:function(){for(var e=this.getViewYear(),t=[[],[],[]],i=e-1;i<e+11;i++)W(t,i-e).push(this.renderYear(i));return t.map((function(e,t){return a.a.createElement("tr",{key:t},e)}))}},{key:"renderYear",value:function(e){var t,i=this.getSelectedYear(),n="rdtYear";this.isDisabledYear(e)?n+=" rdtDisabled":t=this._updateSelectedYear,i===e&&(n+=" rdtActive");var r={key:e,className:n,"data-value":e,onClick:t};return this.props.renderYear(r,e,this.props.selectedDate&&this.props.selectedDate.clone())}},{key:"getViewYear",value:function(){return 10*parseInt(this.props.viewDate.year()/10,10)}},{key:"getSelectedYear",value:function(){return this.props.selectedDate&&this.props.selectedDate.year()}},{key:"isDisabledYear",value:function(e){var t=this.disabledYearsCache;if(void 0!==t[e])return t[e];var i=this.props.isValidDate;if(!i)return!1;for(var n=this.props.viewDate.clone().set({year:e}),r=n.endOf("year").dayOfYear()+1;r-- >1;)if(i(n.dayOfYear(r)))return t[e]=!1,!1;return t[e]=!0,!0}}])&&E(t.prototype,i),r}(a.a.Component);function W(e,t){return t<3?e[0]:t<7?e[1]:e[2]}function z(e){return(z="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})(e)}function L(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function B(e,t){return(B=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function I(e,t){return!t||"object"!==z(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 X(e){return(X=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function U(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function F(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?U(Object(i),!0).forEach((function(t){H(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):U(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function H(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}j(V,"defaultProps",{renderYear:function(e,t){return a.a.createElement("td",e,t)}});var Z={hours:{min:0,max:23,step:1},minutes:{min:0,max:59,step:1},seconds:{min:0,max:59,step:1},milliseconds:{min:0,max:999,step:1}},G=function(e){!function(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}}),t&&B(e,t)}(r,e);var t,i,n=function(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 i,n=X(e);if(t){var r=X(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return I(this,i)}}(r);function r(e){var t,i,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=n.call(this,e)).constraints=(i=e.timeConstraints,o={},Object.keys(Z).forEach((function(e){o[e]=F(F({},Z[e]),i[e]||{})})),o),t.state=t.getTimeParts(e.selectedDate||e.viewDate),t}return t=r,(i=[{key:"render",value:function(){var e=this,t=[],i=this.state;return this.getCounters().forEach((function(n,r){r&&"ampm"!==n&&t.push(a.a.createElement("div",{key:"sep".concat(r),className:"rdtCounterSeparator"},":")),t.push(e.renderCounter(n,i[n]))})),a.a.createElement("div",{className:"rdtTime"},a.a.createElement("table",null,this.renderHeader(),a.a.createElement("tbody",null,a.a.createElement("tr",null,a.a.createElement("td",null,a.a.createElement("div",{className:"rdtCounters"},t))))))}},{key:"renderCounter",value:function(e,t){var i=this;return"hours"===e&&this.isAMPM()&&0==(t=(t-1)%12+1)&&(t=12),"ampm"===e&&(t=-1!==this.props.timeFormat.indexOf(" A")?this.props.viewDate.format("A"):this.props.viewDate.format("a")),a.a.createElement("div",{key:e,className:"rdtCounter"},a.a.createElement("span",{className:"rdtBtn",onMouseDown:function(t){return i.onStartClicking(t,"increase",e)}},"▲"),a.a.createElement("div",{className:"rdtCount"},t),a.a.createElement("span",{className:"rdtBtn",onMouseDown:function(t){return i.onStartClicking(t,"decrease",e)}},"▼"))}},{key:"renderHeader",value:function(){var e=this;if(this.props.dateFormat){var t=this.props.selectedDate||this.props.viewDate;return a.a.createElement("thead",null,a.a.createElement("tr",null,a.a.createElement("td",{className:"rdtSwitch",colSpan:"4",onClick:function(){return e.props.showView("days")}},t.format(this.props.dateFormat))))}}},{key:"onStartClicking",value:function(e,t,i){var n=this;if(!e||!e.button||0===e.button){if("ampm"===i)return this.toggleDayPart();var r={},o=document.body;r[i]=this[t](i),this.setState(r),this.timer=setTimeout((function(){n.increaseTimer=setInterval((function(){r[i]=n[t](i),n.setState(r)}),70)}),500),this.mouseUpListener=function(){clearTimeout(n.timer),clearInterval(n.increaseTimer),n.props.setTime(i,parseInt(n.state[i],10)),o.removeEventListener("mouseup",n.mouseUpListener),o.removeEventListener("touchend",n.mouseUpListener)},o.addEventListener("mouseup",this.mouseUpListener),o.addEventListener("touchend",this.mouseUpListener)}}},{key:"toggleDayPart",value:function(){var e=parseInt(this.state.hours,10);e>=12?e-=12:e+=12,this.props.setTime("hours",e)}},{key:"increase",value:function(e){var t=this.constraints[e],i=parseInt(this.state[e],10)+t.step;return i>t.max&&(i=t.min+(i-(t.max+1))),Y(e,i)}},{key:"decrease",value:function(e){var t=this.constraints[e],i=parseInt(this.state[e],10)-t.step;return i<t.min&&(i=t.max+1-(t.min-i)),Y(e,i)}},{key:"getCounters",value:function(){var e=[],t=this.props.timeFormat;return-1!==t.toLowerCase().indexOf("h")&&(e.push("hours"),-1!==t.indexOf("m")&&(e.push("minutes"),-1!==t.indexOf("s")&&(e.push("seconds"),-1!==t.indexOf("S")&&e.push("milliseconds")))),this.isAMPM()&&e.push("ampm"),e}},{key:"isAMPM",value:function(){return-1!==this.props.timeFormat.toLowerCase().indexOf(" a")}},{key:"getTimeParts",value:function(e){var t=e.hours();return{hours:Y("hours",t),minutes:Y("minutes",e.minutes()),seconds:Y("seconds",e.seconds()),milliseconds:Y("milliseconds",e.milliseconds()),ampm:t<12?"am":"pm"}}},{key:"componentDidUpdate",value:function(e){this.props.selectedDate?this.props.selectedDate!==e.selectedDate&&this.setState(this.getTimeParts(this.props.selectedDate)):e.viewDate!==this.props.viewDate&&this.setState(this.getTimeParts(this.props.viewDate))}}])&&L(t.prototype,i),r}(a.a.Component);function Y(e,t){for(var i={hours:1,minutes:2,seconds:2,milliseconds:3},n=t+"";n.length<i[e];)n="0"+n;return n}var K=i(3);function J(e,t,i){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(i):e.classList.contains(i))}var ee,te,ie=(void 0===ee&&(ee=0),function(){return++ee}),ne={},re={},oe=["touchstart","touchmove"];function se(e,t){var i=null;return-1!==oe.indexOf(t)&&te&&(i={passive:!e.props.preventDefault}),i}function le(e){return(le="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})(e)}function ae(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function ce(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(i),!0).forEach((function(t){ye(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ae(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function he(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ue(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function de(e,t,i){return t&&ue(e.prototype,t),i&&ue(e,i),e}function fe(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}}),t&&pe(e,t)}function pe(e,t){return(pe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function me(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 i,n=ve(e);if(t){var r=ve(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return ge(this,i)}}function ge(e,t){return!t||"object"!==le(t)&&"function"!=typeof t?Oe(e):t}function Oe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ve(e){return(ve=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ye(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}i.d(t,"default",(function(){return Te}));var be="years",we="months",xe="days",Se="time",ke=r.a,$e=function(){},_e=ke.oneOfType([ke.instanceOf(s.a),ke.instanceOf(Date),ke.string]),Te=function(e){fe(i,e);var t=me(i);function i(e){var n;return he(this,i),ye(Oe(n=t.call(this,e)),"_renderCalendar",(function(){var e=n.props,t=n.state,i={viewDate:t.viewDate.clone(),selectedDate:n.getSelectedDate(),isValidDate:e.isValidDate,updateDate:n._updateDate,navigate:n._viewNavigate,moment:s.a,showView:n._showView};switch(t.currentView){case be:return i.renderYear=e.renderYear,a.a.createElement(V,i);case we:return i.renderMonth=e.renderMonth,a.a.createElement(P,i);case xe:return i.renderDay=e.renderDay,i.timeFormat=n.getFormat("time"),a.a.createElement(y,i);default:return i.dateFormat=n.getFormat("date"),i.timeFormat=n.getFormat("time"),i.timeConstraints=e.timeConstraints,i.setTime=n._setTime,a.a.createElement(G,i)}})),ye(Oe(n),"_showView",(function(e,t){var i=(t||n.state.viewDate).clone(),r=n.props.onBeforeNavigate(e,n.state.currentView,i);r&&n.state.currentView!==r&&(n.props.onNavigate(r),n.setState({currentView:r}))})),ye(Oe(n),"viewToMethod",{days:"date",months:"month",years:"year"}),ye(Oe(n),"nextView",{days:"time",months:"days",years:"months"}),ye(Oe(n),"_updateDate",(function(e){var t=n.state.currentView,i=n.getUpdateOn(n.getFormat("date")),r=n.state.viewDate.clone();r[n.viewToMethod[t]](parseInt(e.target.getAttribute("data-value"),10)),"days"===t&&(r.month(parseInt(e.target.getAttribute("data-month"),10)),r.year(parseInt(e.target.getAttribute("data-year"),10)));var o={viewDate:r};t===i?(o.selectedDate=r.clone(),o.inputValue=r.format(n.getFormat("datetime")),void 0===n.props.open&&n.props.input&&n.props.closeOnSelect&&n._closeCalendar(),n.props.onChange(r.clone())):n._showView(n.nextView[t],r),n.setState(o)})),ye(Oe(n),"_viewNavigate",(function(e,t){var i=n.state.viewDate.clone();i.add(e,t),e>0?n.props.onNavigateForward(e,t):n.props.onNavigateBack(-e,t),n.setState({viewDate:i})})),ye(Oe(n),"_setTime",(function(e,t){var i=(n.getSelectedDate()||n.state.viewDate).clone();i[e](t),n.props.value||n.setState({selectedDate:i,viewDate:i.clone(),inputValue:i.format(n.getFormat("datetime"))}),n.props.onChange(i)})),ye(Oe(n),"_openCalendar",(function(){n.isOpen()||n.setState({open:!0},n.props.onOpen)})),ye(Oe(n),"_closeCalendar",(function(){n.isOpen()&&n.setState({open:!1},(function(){n.props.onClose(n.state.selectedDate||n.state.inputValue)}))})),ye(Oe(n),"_handleClickOutside",(function(){var e=n.props;e.input&&n.state.open&&void 0===e.open&&e.closeOnClickOutside&&n._closeCalendar()})),ye(Oe(n),"_onInputFocus",(function(e){n.callHandler(n.props.inputProps.onFocus,e)&&n._openCalendar()})),ye(Oe(n),"_onInputChange",(function(e){if(n.callHandler(n.props.inputProps.onChange,e)){var t=e.target?e.target.value:e,i=n.localMoment(t,n.getFormat("datetime")),r={inputValue:t};i.isValid()?(r.selectedDate=i,r.viewDate=i.clone().startOf("month")):r.selectedDate=null,n.setState(r,(function(){n.props.onChange(i.isValid()?i:n.state.inputValue)}))}})),ye(Oe(n),"_onInputKeyDown",(function(e){n.callHandler(n.props.inputProps.onKeyDown,e)&&9===e.which&&n.props.closeOnTab&&n._closeCalendar()})),ye(Oe(n),"_onInputClick",(function(e){n.callHandler(n.props.inputProps.onClick,e)&&n._openCalendar()})),n.state=n.getInitialState(),n}return de(i,[{key:"render",value:function(){return a.a.createElement(Pe,{className:this.getClassName(),onClickOut:this._handleClickOutside},this.renderInput(),a.a.createElement("div",{className:"rdtPicker"},this.renderView()))}},{key:"renderInput",value:function(){if(this.props.input){var e=ce(ce({type:"text",className:"form-control",value:this.getInputValue()},this.props.inputProps),{},{onFocus:this._onInputFocus,onChange:this._onInputChange,onKeyDown:this._onInputKeyDown,onClick:this._onInputClick});return this.props.renderInput?a.a.createElement("div",null,this.props.renderInput(e,this._openCalendar,this._closeCalendar)):a.a.createElement("input",e)}}},{key:"renderView",value:function(){return this.props.renderView(this.state.currentView,this._renderCalendar)}},{key:"getInitialState",value:function(){var e=this.props,t=this.getFormat("datetime"),i=this.parseDate(e.value||e.initialValue,t);return this.checkTZ(),{open:!e.input,currentView:e.initialViewMode||this.getInitialView(),viewDate:this.getInitialViewDate(i),selectedDate:i&&i.isValid()?i:void 0,inputValue:this.getInitialInputValue(i)}}},{key:"getInitialViewDate",value:function(e){var t,i=this.props.initialViewDate;if(i){if((t=this.parseDate(i,this.getFormat("datetime")))&&t.isValid())return t;Qe('The initialViewDated given "'+i+'" is not valid. Using current date instead.')}else if(e&&e.isValid())return e.clone();return this.getInitialDate()}},{key:"getInitialDate",value:function(){var e=this.localMoment();return e.hour(0).minute(0).second(0).millisecond(0),e}},{key:"getInitialView",value:function(){var e=this.getFormat("date");return e?this.getUpdateOn(e):Se}},{key:"parseDate",value:function(e,t){var i;return e&&"string"==typeof e?i=this.localMoment(e,t):e&&(i=this.localMoment(e)),i&&!i.isValid()&&(i=null),i}},{key:"getClassName",value:function(){var e="rdt",t=this.props,i=t.className;return Array.isArray(i)?e+=" "+i.join(" "):i&&(e+=" "+i),t.input||(e+=" rdtStatic"),this.isOpen()&&(e+=" rdtOpen"),e}},{key:"isOpen",value:function(){return!this.props.input||(void 0===this.props.open?this.state.open:this.props.open)}},{key:"getUpdateOn",value:function(e){return this.props.updateOnView?this.props.updateOnView:e.match(/[lLD]/)?xe:-1!==e.indexOf("M")?we:-1!==e.indexOf("Y")?be:xe}},{key:"getLocaleData",value:function(){var e=this.props;return this.localMoment(e.value||e.defaultValue||new Date).localeData()}},{key:"getDateFormat",value:function(){var e=this.getLocaleData(),t=this.props.dateFormat;return!0===t?e.longDateFormat("L"):t||""}},{key:"getTimeFormat",value:function(){var e=this.getLocaleData(),t=this.props.timeFormat;return!0===t?e.longDateFormat("LT"):t||""}},{key:"getFormat",value:function(e){if("date"===e)return this.getDateFormat();if("time"===e)return this.getTimeFormat();var t=this.getDateFormat(),i=this.getTimeFormat();return t&&i?t+" "+i:t||i}},{key:"updateTime",value:function(e,t,i,n){var r={},o=n?"selectedDate":"viewDate";r[o]=this.state[o].clone()[e](t,i),this.setState(r)}},{key:"localMoment",value:function(e,t,i){var n=null;return n=(i=i||this.props).utc?s.a.utc(e,t,i.strictParsing):i.displayTimeZone?s.a.tz(e,t,i.displayTimeZone):s()(e,t,i.strictParsing),i.locale&&n.locale(i.locale),n}},{key:"checkTZ",value:function(){var e=this.props.displayTimeZone;!e||this.tzWarning||s.a.tz||(this.tzWarning=!0,Qe('displayTimeZone prop with value "'+e+'" is used but moment.js timezone is not loaded.',"error"))}},{key:"componentDidUpdate",value:function(e){if(e!==this.props){var t=!1,i=this.props;["locale","utc","displayZone","dateFormat","timeFormat"].forEach((function(n){e[n]!==i[n]&&(t=!0)})),t&&this.regenerateDates(),i.value&&i.value!==e.value&&this.setViewDate(i.value),this.checkTZ()}}},{key:"regenerateDates",value:function(){var e=this.props,t=this.state.viewDate.clone(),i=this.state.selectedDate&&this.state.selectedDate.clone();e.locale&&(t.locale(e.locale),i&&i.locale(e.locale)),e.utc?(t.utc(),i&&i.utc()):e.displayTimeZone?(t.tz(e.displayTimeZone),i&&i.tz(e.displayTimeZone)):(t.locale(),i&&i.locale());var n={viewDate:t,selectedDate:i};i&&i.isValid()&&(n.inputValue=i.format(this.getFormat("datetime"))),this.setState(n)}},{key:"getSelectedDate",value:function(){if(void 0===this.props.value)return this.state.selectedDate;var e=this.parseDate(this.props.value,this.getFormat("datetime"));return!(!e||!e.isValid())&&e}},{key:"getInitialInputValue",value:function(e){var t=this.props;return t.inputProps.value?t.inputProps.value:e&&e.isValid()?e.format(this.getFormat("datetime")):t.value&&"string"==typeof t.value?t.value:t.initialValue&&"string"==typeof t.initialValue?t.initialValue:""}},{key:"getInputValue",value:function(){var e=this.getSelectedDate();return e?e.format(this.getFormat("datetime")):this.state.inputValue}},{key:"setViewDate",value:function(e){var t;return e&&(t="string"==typeof e?this.localMoment(e,this.getFormat("datetime")):this.localMoment(e))&&t.isValid()?void this.setState({viewDate:t}):Qe("Invalid date passed to the `setViewDate` method: "+e)}},{key:"navigate",value:function(e){this._showView(e)}},{key:"callHandler",value:function(e,t){return!e||!1!==e(t)}}]),i}(a.a.Component);function Qe(e,t){var i="undefined"!=typeof window&&window.console;i&&(t||(t="warn"),i[t]("***react-datetime:"+e))}ye(Te,"propTypes",{value:_e,initialValue:_e,initialViewDate:_e,initialViewMode:ke.oneOf([be,we,xe,Se]),onOpen:ke.func,onClose:ke.func,onChange:ke.func,onNavigate:ke.func,onBeforeNavigate:ke.func,onNavigateBack:ke.func,onNavigateForward:ke.func,updateOnView:ke.string,locale:ke.string,utc:ke.bool,displayTimeZone:ke.string,input:ke.bool,dateFormat:ke.oneOfType([ke.string,ke.bool]),timeFormat:ke.oneOfType([ke.string,ke.bool]),inputProps:ke.object,timeConstraints:ke.object,isValidDate:ke.func,open:ke.bool,strictParsing:ke.bool,closeOnSelect:ke.bool,closeOnTab:ke.bool,renderView:ke.func,renderInput:ke.func,renderDay:ke.func,renderMonth:ke.func,renderYear:ke.func}),ye(Te,"defaultProps",{onOpen:$e,onClose:$e,onCalendarOpen:$e,onCalendarClose:$e,onChange:$e,onNavigate:$e,onBeforeNavigate:function(e){return e},onNavigateBack:$e,onNavigateForward:$e,dateFormat:!0,timeFormat:!0,utc:!1,className:"",input:!0,inputProps:{},timeConstraints:{},isValidDate:function(){return!0},strictParsing:!0,closeOnSelect:!1,closeOnTab:!0,closeOnClickOutside:!0,renderView:function(e,t){return t()}}),ye(Te,"moment",s.a);var Pe=function(e,t){var i,n,r=e.displayName||e.name||"Component";return n=i=function(i){var n,o;function s(e){var n;return(n=i.call(this,e)||this).__outsideClickHandler=function(e){if("function"!=typeof n.__clickOutsideHandlerProp){var t=n.getInstance();if("function"!=typeof t.props.handleClickOutside){if("function"!=typeof t.handleClickOutside)throw new Error("WrappedComponent: "+r+" lacks a handleClickOutside(event) function for processing outside click events.");t.handleClickOutside(e)}else t.props.handleClickOutside(e)}else n.__clickOutsideHandlerProp(e)},n.__getComponentNode=function(){var e=n.getInstance();return t&&"function"==typeof t.setClickOutsideRef?t.setClickOutsideRef()(e):"function"==typeof e.setClickOutsideRef?e.setClickOutsideRef():Object(K.findDOMNode)(e)},n.enableOnClickOutside=function(){if("undefined"!=typeof document&&!re[n._uid]){void 0===te&&(te=function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),i=function(){};return window.addEventListener("testPassiveEventSupport",i,t),window.removeEventListener("testPassiveEventSupport",i,t),e}}()),re[n._uid]=!0;var e=n.props.eventTypes;e.forEach||(e=[e]),ne[n._uid]=function(e){var t;null!==n.componentNode&&(n.props.preventDefault&&e.preventDefault(),n.props.stopPropagation&&e.stopPropagation(),n.props.excludeScrollbar&&(t=e,document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY)||function(e,t,i){if(e===t)return!0;for(;e.parentNode;){if(J(e,t,i))return!0;e=e.parentNode}return e}(e.target,n.componentNode,n.props.outsideClickIgnoreClass)===document&&n.__outsideClickHandler(e))},e.forEach((function(e){document.addEventListener(e,ne[n._uid],se(n,e))}))}},n.disableOnClickOutside=function(){delete re[n._uid];var e=ne[n._uid];if(e&&"undefined"!=typeof document){var t=n.props.eventTypes;t.forEach||(t=[t]),t.forEach((function(t){return document.removeEventListener(t,e,se(n,t))})),delete ne[n._uid]}},n.getRef=function(e){return n.instanceRef=e},n._uid=ie(),n}o=i,(n=s).prototype=Object.create(o.prototype),n.prototype.constructor=n,n.__proto__=o;var a=s.prototype;return a.getInstance=function(){if(!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},a.componentDidMount=function(){if("undefined"!=typeof document&&document.createElement){var e=this.getInstance();if(t&&"function"==typeof t.handleClickOutside&&(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!=typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent: "+r+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),this.props.disableOnClickOutside||this.enableOnClickOutside()}},a.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},a.componentWillUnmount=function(){this.disableOnClickOutside()},a.render=function(){var t=this.props,i=(t.excludeScrollbar,function(e,t){if(null==e)return{};var i,n,r={},o=Object.keys(e);for(n=0;n<o.length;n++)i=o[n],t.indexOf(i)>=0||(r[i]=e[i]);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++)i=s[n],t.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}(t,["excludeScrollbar"]));return e.prototype.isReactComponent?i.ref=this.getRef:i.wrappedRef=this.getRef,i.disableOnClickOutside=this.disableOnClickOutside,i.enableOnClickOutside=this.enableOnClickOutside,Object(l.createElement)(e,i)},s}(l.Component),i.displayName="OnClickOutside("+r+")",i.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:"ignore-react-onclickoutside",preventDefault:!1,stopPropagation:!1},i.getClass=function(){return e.getClass?e.getClass():e},n}(function(e){fe(i,e);var t=me(i);function i(){var e;he(this,i);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return ye(Oe(e=t.call.apply(t,[this].concat(r))),"container",a.a.createRef()),e}return de(i,[{key:"render",value:function(){return a.a.createElement("div",{className:this.props.className,ref:this.container},this.props.children)}},{key:"handleClickOutside",value:function(e){this.props.onClickOut(e)}},{key:"setClickOutsideRef",value:function(){return this.container.current}}]),i}(a.a.Component))}])},5639:(e,t,i)=>{"use strict";var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=i(9196),s=a(o),l=a(i(5697));function a(e){return e&&e.__esModule?e:{default:e}}var c={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},h=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],u=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},d=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),f=function(){return d?"_"+Math.random().toString(36).substr(2,12):void 0},p=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 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.inputRef=function(e){i.input=e,"function"==typeof i.props.inputRef&&i.props.inputRef(e)},i.placeHolderSizerRef=function(e){i.placeHolderSizer=e},i.sizerRef=function(e){i.sizer=e},i.state={inputWidth:e.minWidth,inputId:e.id||f(),prevId:e.id},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,null,[{key:"getDerivedStateFromProps",value:function(e,t){var i=e.id;return i!==t.prevId?{inputId:i||f(),prevId:i}:null}}]),r(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&&(u(e,this.sizer),this.placeHolderSizer&&u(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 d&&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=n({},this.props.style);t.display||(t.display="inline-block");var i=n({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),r=function(e,t){var i={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n]);return i}(this.props,[]);return function(e){h.forEach((function(t){return delete e[t]}))}(r),r.className=this.props.inputClassName,r.id=this.state.inputId,r.style=i,s.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),s.default.createElement("input",n({},r,{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);p.propTypes={className:l.default.string,defaultValue:l.default.any,extraWidth:l.default.oneOfType([l.default.number,l.default.string]),id:l.default.string,injectStyles:l.default.bool,inputClassName:l.default.string,inputRef:l.default.func,inputStyle:l.default.object,minWidth:l.default.oneOfType([l.default.number,l.default.string]),onAutosize:l.default.func,onChange:l.default.func,placeholder:l.default.string,placeholderIsMinWidth:l.default.bool,style:l.default.object,value:l.default.any},p.defaultProps={minWidth:1,injectStyles:!0},t.Z=p},1167:function(e,t,i){"use strict";var n,r=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 i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)},s=this&&this.__spreadArrays||function(){for(var e=0,t=0,i=arguments.length;t<i;t++)e+=arguments[t].length;var n=Array(e),r=0;for(t=0;t<i;t++)for(var o=arguments[t],s=0,l=o.length;s<l;s++,r++)n[r]=o[s];return n},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},a=l(i(9196)),c=l(i(1850)),h=l(i(8446)),u=l(i(6095)),d=function(e){function t(t){var i=e.call(this,t)||this;i.dirtyProps=["modules","formats","bounds","theme","children"],i.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],i.state={generation:0},i.selection=null,i.onEditorChange=function(e,t,n,r){var o,s,l,a;"text-change"===e?null===(s=(o=i).onEditorChangeText)||void 0===s||s.call(o,i.editor.root.innerHTML,t,r,i.unprivilegedEditor):"selection-change"===e&&(null===(a=(l=i).onEditorChangeSelection)||void 0===a||a.call(l,t,r,i.unprivilegedEditor))};var n=i.isControlled()?t.value:t.defaultValue;return i.value=null!=n?n:"",i}return r(t,e),t.prototype.validateProps=function(e){var t;if(a.default.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(a.default.Children.count(e.children)&&"textarea"===(null===(t=a.default.Children.only(e.children))||void 0===t?void 0:t.type))throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.");if(this.lastDeltaChangeSet&&e.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},t.prototype.shouldComponentUpdate=function(e,t){var i,n=this;if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;if("value"in e){var r=this.getEditorContents(),o=null!=(i=e.value)?i:"";this.isEqualValue(o,r)||this.setEditorContents(this.editor,o)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),s(this.cleanProps,this.dirtyProps).some((function(t){return!h.default(e[t],n.props[t])}))},t.prototype.shouldComponentRegenerate=function(e){var t=this;return this.dirtyProps.some((function(i){return!h.default(e[i],t.props[i])}))},t.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},t.prototype.componentWillUnmount=function(){this.destroyEditor()},t.prototype.componentDidUpdate=function(e,t){var i=this;if(this.editor&&this.shouldComponentRegenerate(e)){var n=this.editor.getContents(),r=this.editor.getSelection();this.regenerationSnapshot={delta:n,selection:r},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==t.generation){var o=this.regenerationSnapshot,s=(n=o.delta,o.selection);delete this.regenerationSnapshot,this.instantiateEditor();var l=this.editor;l.setContents(n),f((function(){return i.setEditorSelection(l,s)}))}},t.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},t.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},t.prototype.isControlled=function(){return"value"in this.props},t.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},t.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},t.prototype.createEditor=function(e,t){var i=new u.default(e,t);return null!=t.tabIndex&&this.setEditorTabIndex(i,t.tabIndex),this.hookEditor(i),i},t.prototype.hookEditor=function(e){this.unprivilegedEditor=this.makeUnprivilegedEditor(e),e.on("editor-change",this.onEditorChange)},t.prototype.unhookEditor=function(e){e.off("editor-change",this.onEditorChange)},t.prototype.getEditorContents=function(){return this.value},t.prototype.getEditorSelection=function(){return this.selection},t.prototype.isDelta=function(e){return e&&e.ops},t.prototype.isEqualValue=function(e,t){return this.isDelta(e)&&this.isDelta(t)?h.default(e.ops,t.ops):h.default(e,t)},t.prototype.setEditorContents=function(e,t){var i=this;this.value=t;var n=this.getEditorSelection();"string"==typeof t?e.setContents(e.clipboard.convert(t)):e.setContents(t),f((function(){return i.setEditorSelection(e,n)}))},t.prototype.setEditorSelection=function(e,t){if(this.selection=t,t){var i=e.getLength();t.index=Math.max(0,Math.min(t.index,i-1)),t.length=Math.max(0,Math.min(t.length,i-1-t.index)),e.setSelection(t)}},t.prototype.setEditorTabIndex=function(e,t){var i,n;(null===(n=null===(i=e)||void 0===i?void 0:i.scroll)||void 0===n?void 0:n.domNode)&&(e.scroll.domNode.tabIndex=t)},t.prototype.setEditorReadOnly=function(e,t){t?e.disable():e.enable()},t.prototype.makeUnprivilegedEditor=function(e){var t=e;return{getHTML:function(){return t.root.innerHTML},getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}},t.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var e=c.default.findDOMNode(this.editingArea);if(!e)throw new Error("Cannot find element for editing area");if(3===e.nodeType)throw new Error("Editing area cannot be a text node");return e},t.prototype.renderEditingArea=function(){var e=this,t=this.props,i=t.children,n=t.preserveWhitespace,r={key:this.state.generation,ref:function(t){e.editingArea=t}};return a.default.Children.count(i)?a.default.cloneElement(a.default.Children.only(i),r):n?a.default.createElement("pre",o({},r)):a.default.createElement("div",o({},r))},t.prototype.render=function(){var e;return a.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(e=this.props.className,null!=e?e:""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},t.prototype.onEditorChangeText=function(e,t,i,n){var r,o;if(this.editor){var s=this.isDelta(this.value)?n.getContents():n.getHTML();s!==this.getEditorContents()&&(this.lastDeltaChangeSet=t,this.value=s,null===(o=(r=this.props).onChange)||void 0===o||o.call(r,e,t,i,n))}},t.prototype.onEditorChangeSelection=function(e,t,i){var n,r,o,s,l,a;if(this.editor){var c=this.getEditorSelection(),u=!c&&e,d=c&&!e;h.default(e,c)||(this.selection=e,null===(r=(n=this.props).onChangeSelection)||void 0===r||r.call(n,e,t,i),u?null===(s=(o=this.props).onFocus)||void 0===s||s.call(o,e,t,i):d&&(null===(a=(l=this.props).onBlur)||void 0===a||a.call(l,c,t,i)))}},t.prototype.focus=function(){this.editor&&this.editor.focus()},t.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},t.displayName="React Quill",t.Quill=u.default,t.defaultProps={theme:"snow",modules:{},readOnly:!1},t}(a.default.Component);function f(e){Promise.resolve().then(e)}e.exports=d},1036:(e,t,i)=>{const n=i(5106),r=i(3150),{isPlainObject:o}=i(977),s=i(9996),l=i(9430),{parse:a}=i(20),c=["img","audio","video","picture","svg","object","map","iframe","embed"],h=["script","style"];function u(e,t){e&&Object.keys(e).forEach((function(i){t(e[i],i)}))}function d(e,t){return{}.hasOwnProperty.call(e,t)}function f(e,t){const i=[];return u(e,(function(e){t(e)&&i.push(e)})),i}e.exports=m;const p=/^[^\0\t\n\f\r /<=>]+$/;function m(e,t,i){if(null==e)return"";let O="",v="";function y(e,t){const i=this;this.tag=e,this.attribs=t||{},this.tagPosition=O.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(P.length){P[P.length-1].text+=i.text}},this.updateParentNodeMediaChildren=function(){if(P.length&&c.includes(this.tag)){P[P.length-1].mediaChildren.push(this.tag)}}}(t=Object.assign({},m.defaults,t)).parser=Object.assign({},g,t.parser),h.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 b=t.nonTextTags||["script","style","textarea","option"];let w,x;t.allowedAttributes&&(w={},x={},u(t.allowedAttributes,(function(e,t){w[t]=[];const i=[];e.forEach((function(e){"string"==typeof e&&e.indexOf("*")>=0?i.push(r(e).replace(/\\\*/g,".*")):w[t].push(e)})),i.length&&(x[t]=new RegExp("^("+i.join("|")+")$"))})));const S={},k={},$={};u(t.allowedClasses,(function(e,t){w&&(d(w,t)||(w[t]=[]),w[t].push("class")),S[t]=[],$[t]=[];const i=[];e.forEach((function(e){"string"==typeof e&&e.indexOf("*")>=0?i.push(r(e).replace(/\\\*/g,".*")):e instanceof RegExp?$[t].push(e):S[t].push(e)})),i.length&&(k[t]=new RegExp("^("+i.join("|")+")$"))}));const _={};let T,Q,P,A,C,R,E;u(t.transformTags,(function(e,t){let i;"function"==typeof e?i=e:"string"==typeof e&&(i=m.simpleTransform(e)),"*"===t?T=i:_[t]=i}));let M=!1;q();const D=new n.Parser({onopentag:function(e,i){if(t.enforceHtmlBoundary&&"html"===e&&q(),R)return void E++;const n=new y(e,i);P.push(n);let r=!1;const c=!!n.text;let h;if(d(_,e)&&(h=_[e](e,i),n.attribs=i=h.attribs,void 0!==h.text&&(n.innerText=h.text),e!==h.tagName&&(n.name=e=h.tagName,C[Q]=h.tagName)),T&&(h=T(e,i),n.attribs=i=h.attribs,e!==h.tagName&&(n.name=e=h.tagName,C[Q]=h.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}(A)||null!=t.nestingLimit&&Q>=t.nestingLimit)&&(r=!0,A[Q]=!0,"discard"===t.disallowedTagsMode&&-1!==b.indexOf(e)&&(R=!0,E=1),A[Q]=!0),Q++,r){if("discard"===t.disallowedTagsMode)return;v=O,O=""}O+="<"+e,"script"===e&&(t.allowedScriptHostnames||t.allowedScriptDomains)&&(n.innerText=""),(!w||d(w,e)||w["*"])&&u(i,(function(i,r){if(!p.test(r))return void delete n.attribs[r];let c=!1;if(!w||d(w,e)&&-1!==w[e].indexOf(r)||w["*"]&&-1!==w["*"].indexOf(r)||d(x,e)&&x[e].test(r)||x["*"]&&x["*"].test(r))c=!0;else if(w&&w[e])for(const t of w[e])if(o(t)&&t.name&&t.name===r){c=!0;let e="";if(!0===t.multiple){const n=i.split(" ");for(const i of n)-1!==t.values.indexOf(i)&&(""===e?e=i:e+=" "+i)}else t.values.indexOf(i)>=0&&(e=i);i=e}if(c){if(-1!==t.allowedSchemesAppliedToAttributes.indexOf(r)&&j(e,i))return void delete n.attribs[r];if("script"===e&&"src"===r){let e=!0;try{const n=V(i);if(t.allowedScriptHostnames||t.allowedScriptDomains){const i=(t.allowedScriptHostnames||[]).find((function(e){return e===n.url.hostname})),r=(t.allowedScriptDomains||[]).find((function(e){return n.url.hostname===e||n.url.hostname.endsWith(`.${e}`)}));e=i||r}}catch(t){e=!1}if(!e)return void delete n.attribs[r]}if("iframe"===e&&"src"===r){let e=!0;try{const n=V(i);if(n.isRelativeUrl)e=d(t,"allowIframeRelativeUrls")?t.allowIframeRelativeUrls:!t.allowedIframeHostnames&&!t.allowedIframeDomains;else if(t.allowedIframeHostnames||t.allowedIframeDomains){const i=(t.allowedIframeHostnames||[]).find((function(e){return e===n.url.hostname})),r=(t.allowedIframeDomains||[]).find((function(e){return n.url.hostname===e||n.url.hostname.endsWith(`.${e}`)}));e=i||r}}catch(t){e=!1}if(!e)return void delete n.attribs[r]}if("srcset"===r)try{let e=l(i);if(e.forEach((function(e){j("srcset",e.url)&&(e.evil=!0)})),e=f(e,(function(e){return!e.evil})),!e.length)return void delete n.attribs[r];i=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[r]=i}catch(e){return void delete n.attribs[r]}if("class"===r){const t=S[e],o=S["*"],l=k[e],a=$[e],c=[l,k["*"]].concat(a).filter((function(e){return e}));if(!(i=W(i,t&&o?s(t,o):t||o,c)).length)return void delete n.attribs[r]}if("style"===r)try{const o=function(e,t){if(!t)return e;const i=e.nodes[0];let n;n=t[i.selector]&&t["*"]?s(t[i.selector],t["*"]):t[i.selector]||t["*"];n&&(e.nodes[0].nodes=i.nodes.reduce(function(e){return function(t,i){if(d(e,i.prop)){e[i.prop].some((function(e){return e.test(i.value)}))&&t.push(i)}return t}}(n),[]));return e}(a(e+" {"+i+"}"),t.allowedStyles);if(0===(i=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[r]}catch(e){return void delete n.attribs[r]}O+=" "+r,i&&i.length&&(O+='="'+N(i,!0)+'"')}else delete n.attribs[r]})),-1!==t.selfClosing.indexOf(e)?O+=" />":(O+=">",!n.innerText||c||t.textFilter||(O+=N(n.innerText),M=!0)),r&&(O=v+N(O),v="")},ontext:function(e){if(R)return;const i=P[P.length-1];let n;if(i&&(n=i.tag,e=void 0!==i.innerText?i.innerText:e),"discard"!==t.disallowedTagsMode||"script"!==n&&"style"!==n){const i=N(e,!1);t.textFilter&&!M?O+=t.textFilter(i,n):M||(O+=i)}else O+=e;if(P.length){P[P.length-1].text+=e}},onclosetag:function(e){if(R){if(E--,E)return;R=!1}const i=P.pop();if(!i)return;R=!!t.enforceHtmlBoundary&&"html"===e,Q--;const n=A[Q];if(n){if(delete A[Q],"discard"===t.disallowedTagsMode)return void i.updateParentNodeText();v=O,O=""}C[Q]&&(e=C[Q],delete C[Q]),t.exclusiveFilter&&t.exclusiveFilter(i)?O=O.substr(0,i.tagPosition):(i.updateParentNodeMediaChildren(),i.updateParentNodeText(),-1===t.selfClosing.indexOf(e)?(O+="</"+e+">",n&&(O=v+N(O),v=""),M=!1):n&&(O=v,v=""))}},t.parser);return D.write(e),D.end(),O;function q(){O="",Q=0,P=[],A={},C={},R=!1,E=0}function N(e,i){return"string"!=typeof e&&(e+=""),t.parser.decodeEntities&&(e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),i&&(e=e.replace(/"/g,"&quot;"))),e=e.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),i&&(e=e.replace(/"/g,"&quot;")),e}function j(e,i){for(i=i.replace(/[\x00-\x20]+/g,"");;){const e=i.indexOf("\x3c!--");if(-1===e)break;const t=i.indexOf("--\x3e",e+4);if(-1===t)break;i=i.substring(0,e)+i.substring(t+3)}const n=i.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!n)return!!i.match(/^[/\\]{2}/)&&!t.allowProtocolRelative;const r=n[1].toLowerCase();return d(t.allowedSchemesByTag,e)?-1===t.allowedSchemesByTag[e].indexOf(r):!t.allowedSchemes||-1===t.allowedSchemes.indexOf(r)}function V(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 i=new URL(e,t);return{isRelativeUrl:i&&"relative-site"===i.hostname&&"relative:"===i.protocol,url:i}}function W(e,t,i){return t?(e=e.split(/\s+/)).filter((function(e){return-1!==t.indexOf(e)||i.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,i){return i=void 0===i||i,t=t||{},function(n,r){let o;if(i)for(o in t)r[o]=t[o];else r=t;return{tagName:e,attribs:r}}}},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,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},n.apply(this,arguments)},r=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[i]}})}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),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 i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&r(t,e,i);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var l=s(i(9960)),a=i(7772),c=i(2734),h=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);var u=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 i=("length"in e?e:[e]),n="",r=0;r<i.length;r++)n+=f(i[r],t);return n}function f(e,t){switch(e.type){case l.Root:return d(e.children,t);case l.Directive:case l.Doctype:return"<"+e.data+">";case l.Comment:return function(e){return"\x3c!--"+e.data+"--\x3e"}(e);case l.CDATA:return function(e){return"<![CDATA["+e.children[0].data+"]]>"}(e);case l.Script:case l.Style:case l.Tag:return function(e,t){var i;"foreign"===t.xmlMode&&(e.name=null!==(i=c.elementNames.get(e.name))&&void 0!==i?i:e.name,e.parent&&p.has(e.parent.name)&&(t=n(n({},t),{xmlMode:!1})));!t.xmlMode&&m.has(e.name)&&(t=n(n({},t),{xmlMode:"foreign"}));var r="<"+e.name,o=function(e,t){if(e)return Object.keys(e).map((function(i){var n,r,o=null!==(n=e[i])&&void 0!==n?n:"";return"foreign"===t.xmlMode&&(i=null!==(r=c.attributeNames.get(i))&&void 0!==r?r:i),t.emptyAttrs||t.xmlMode||""!==o?i+'="'+(!1!==t.decodeEntities?a.encodeXML(o):o.replace(/"/g,"&quot;"))+'"':i})).join(" ")}(e.attribs,t);o&&(r+=" "+o);0===e.children.length&&(t.xmlMode?!1!==t.selfClosingTags:t.selfClosingTags&&u.has(e.name))?(t.xmlMode||(r+=" "),r+="/>"):(r+=">",e.children.length>0&&(r+=d(e.children,t)),!t.xmlMode&&u.has(e.name)||(r+="</"+e.name+">"));return r}(e,t);case l.Text:return function(e,t){var i=e.data||"";!1===t.decodeEntities||!t.xmlMode&&e.parent&&h.has(e.parent.name)||(i=a.encodeXML(i));return i}(e,t)}}t.default=d;var p=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),m=new Set(["svg","math"])},1142:function(e,t,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var r=Object.getOwnPropertyDescriptor(t,i);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,r)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),r=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var o=i(9960),s=i(6218);r(i(6218),t);var l=/\s+/g,a={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},c=function(){function e(e,t,i){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&&(i=t,t=a),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:a,this.elementCB=null!=i?i: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 i=this.options.xmlMode?o.ElementType.Tag:void 0,n=new s.Element(e,t,void 0,i);this.addNode(n),this.tagStack.push(n)},e.prototype.ontext=function(e){var t=this.options.normalizeWhitespace,i=this.lastNode;if(i&&i.type===o.ElementType.Text)t?i.data=(i.data+e).replace(l," "):i.data+=e,this.options.withEndIndices&&(i.endIndex=this.parser.endIndex);else{t&&(e=e.replace(l," "));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 i=new s.ProcessingInstruction(e,t);this.addNode(i)},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],i=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),i&&(e.prev=i,i.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=c,t.default=c},6218:function(e,t,i){"use strict";var n,r=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 i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},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 i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);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=i(9960),l=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]]),a=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=l.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),x(this,e)},e}();t.Node=a;var c=function(e){function t(t,i){var n=e.call(this,t)||this;return n.data=i,n}return r(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(a);t.DataNode=c;var h=function(e){function t(t){return e.call(this,s.ElementType.Text,t)||this}return r(t,e),t}(c);t.Text=h;var u=function(e){function t(t){return e.call(this,s.ElementType.Comment,t)||this}return r(t,e),t}(c);t.Comment=u;var d=function(e){function t(t,i){var n=e.call(this,s.ElementType.Directive,i)||this;return n.name=t,n}return r(t,e),t}(c);t.ProcessingInstruction=d;var f=function(e){function t(t,i){var n=e.call(this,t)||this;return n.children=i,n}return r(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}(a);t.NodeWithChildren=f;var p=function(e){function t(t){return e.call(this,s.ElementType.Root,t)||this}return r(t,e),t}(f);t.Document=p;var m=function(e){function t(t,i,n,r){void 0===n&&(n=[]),void 0===r&&(r="script"===t?s.ElementType.Script:"style"===t?s.ElementType.Style:s.ElementType.Tag);var o=e.call(this,r,n)||this;return o.name=t,o.attribs=i,o}return r(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 i,n;return{name:t,value:e.attribs[t],namespace:null===(i=e["x-attribsNamespace"])||void 0===i?void 0:i[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 O(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 b(e){return e.type===s.ElementType.Directive}function w(e){return e.type===s.ElementType.Root}function x(e,t){var i;if(void 0===t&&(t=!1),v(e))i=new h(e.data);else if(y(e))i=new u(e.data);else if(g(e)){var n=t?S(e.children):[],r=new m(e.name,o({},e.attribs),n);n.forEach((function(e){return e.parent=r})),null!=e.namespace&&(r.namespace=e.namespace),e["x-attribsNamespace"]&&(r["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(r["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),i=r}else if(O(e)){n=t?S(e.children):[];var l=new f(s.ElementType.CDATA,n);n.forEach((function(e){return e.parent=l})),i=l}else if(w(e)){n=t?S(e.children):[];var a=new p(n);n.forEach((function(e){return e.parent=a})),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),i=a}else{if(!b(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"]),i=c}return i.startIndex=e.startIndex,i.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(i.sourceCodeLocation=e.sourceCodeLocation),i}function S(e){for(var t=e.map((function(e){return x(e,!0)})),i=1;i<t.length;i++)t[i].prev=t[i-1],t[i-1].next=t[i];return t}t.Element=m,t.isTag=g,t.isCDATA=O,t.isText=v,t.isComment=y,t.isDirective=b,t.isDocument=w,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=x},2903:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeed=void 0;var n=i(5283),r=i(9473);t.getFeed=function(e){var t=a(u,e);return t?"feed"===t.name?function(e){var t,i=e.children,n={type:"atom",items:(0,r.getElementsByTagName)("entry",i).map((function(e){var t,i=e.children,n={media:l(i)};h(n,"id","id",i),h(n,"title","title",i);var r=null===(t=a("link",i))||void 0===t?void 0:t.attribs.href;r&&(n.link=r);var o=c("summary",i)||c("content",i);o&&(n.description=o);var s=c("updated",i);return s&&(n.pubDate=new Date(s)),n}))};h(n,"id","id",i),h(n,"title","title",i);var o=null===(t=a("link",i))||void 0===t?void 0:t.attribs.href;o&&(n.link=o);h(n,"description","subtitle",i);var s=c("updated",i);s&&(n.updated=new Date(s));return h(n,"author","email",i,!0),n}(t):function(e){var t,i,n=null!==(i=null===(t=a("channel",e.children))||void 0===t?void 0:t.children)&&void 0!==i?i:[],o={type:e.name.substr(0,3),id:"",items:(0,r.getElementsByTagName)("item",e.children).map((function(e){var t=e.children,i={media:l(t)};h(i,"id","guid",t),h(i,"title","title",t),h(i,"link","link",t),h(i,"description","description",t);var n=c("pubDate",t);return n&&(i.pubDate=new Date(n)),i}))};h(o,"title","title",n),h(o,"link","link",n),h(o,"description","description",n);var s=c("lastBuildDate",n);s&&(o.updated=new Date(s));return h(o,"author","managingEditor",n,!0),o}(t):null};var o=["url","type","lang"],s=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function l(e){return(0,r.getElementsByTagName)("media:content",e).map((function(e){for(var t=e.attribs,i={medium:t.medium,isDefault:!!t.isDefault},n=0,r=o;n<r.length;n++){t[c=r[n]]&&(i[c]=t[c])}for(var l=0,a=s;l<a.length;l++){var c;t[c=a[l]]&&(i[c]=parseInt(t[c],10))}return t.expression&&(i.expression=t.expression),i}))}function a(e,t){return(0,r.getElementsByTagName)(e,t,!0,1)[0]}function c(e,t,i){return void 0===i&&(i=!1),(0,n.textContent)((0,r.getElementsByTagName)(e,t,i,1)).trim()}function h(e,t,i,n,r){void 0===r&&(r=!1);var o=c(i,n,r);o&&(e[t]=o)}function u(e){return"rss"===e||"feed"===e||"rdf:RDF"===e}},7701:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uniqueSort=t.compareDocumentPosition=t.removeSubsets=void 0;var n=i(1142);function r(e,t){var i=[],r=[];if(e===t)return 0;for(var o=(0,n.hasChildren)(e)?e:e.parent;o;)i.unshift(o),o=o.parent;for(o=(0,n.hasChildren)(t)?t:t.parent;o;)r.unshift(o),o=o.parent;for(var s=Math.min(i.length,r.length),l=0;l<s&&i[l]===r[l];)l++;if(0===l)return 1;var a=i[l-1],c=a.children,h=i[l],u=r[l];return c.indexOf(h)>c.indexOf(u)?a===t?20:4:a===e?10:2}t.removeSubsets=function(e){for(var t=e.length;--t>=0;){var i=e[t];if(t>0&&e.lastIndexOf(i,t-1)>=0)e.splice(t,1);else for(var n=i.parent;n;n=n.parent)if(e.includes(n)){e.splice(t,1);break}}return e},t.compareDocumentPosition=r,t.uniqueSort=function(e){return(e=e.filter((function(e,t,i){return!i.includes(e,t+1)}))).sort((function(e,t){var i=r(e,t);return 2&i?-1:4&i?1:0})),e}},7241:function(e,t,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[i]}})}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),r=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,r(i(5283),t),r(i(7972),t),r(i(4541),t),r(i(2764),t),r(i(9473),t),r(i(7701),t),r(i(2903),t);var o=i(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,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getElementsByTagType=t.getElementsByTagName=t.getElementById=t.getElements=t.testElement=void 0;var n=i(1142),r=i(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(i){return(0,n.isTag)(i)&&t(i.attribs[e])}:function(i){return(0,n.isTag)(i)&&i.attribs[e]===t}}function l(e,t){return function(i){return e(i)||t(i)}}function a(e){var t=Object.keys(e).map((function(t){var i=e[t];return Object.prototype.hasOwnProperty.call(o,t)?o[t](i):s(t,i)}));return 0===t.length?null:t.reduce(l)}t.testElement=function(e,t){var i=a(e);return!i||i(t)},t.getElements=function(e,t,i,n){void 0===n&&(n=1/0);var o=a(e);return o?(0,r.filter)(o,t,i,n):[]},t.getElementById=function(e,t,i){return void 0===i&&(i=!0),Array.isArray(t)||(t=[t]),(0,r.findOne)(s("id",e),t,i)},t.getElementsByTagName=function(e,t,i,n){return void 0===i&&(i=!0),void 0===n&&(n=1/0),(0,r.filter)(o.tag_name(e),t,i,n)},t.getElementsByTagType=function(e,t,i,n){return void 0===i&&(i=!0),void 0===n&&(n=1/0),(0,r.filter)(o.tag_type(e),t,i,n)}},4541:(e,t)=>{"use strict";function i(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=i,t.replaceElement=function(e,t){var i=t.prev=e.prev;i&&(i.next=t);var n=t.next=e.next;n&&(n.prev=t);var r=t.parent=e.parent;if(r){var o=r.children;o[o.lastIndexOf(e)]=t}},t.appendChild=function(e,t){if(i(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){i(t);var n=e.parent,r=e.next;if(t.next=r,t.prev=e,e.next=t,t.parent=n,r){if(r.prev=t,n){var o=n.children;o.splice(o.lastIndexOf(r),0,t)}}else n&&n.children.push(t)},t.prependChild=function(e,t){if(i(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){i(t);var n=e.parent;if(n){var r=n.children;r.splice(r.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,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findAll=t.existsOne=t.findOne=t.findOneChild=t.find=t.filter=void 0;var n=i(1142);function r(e,t,i,o){for(var s=[],l=0,a=t;l<a.length;l++){var c=a[l];if(e(c)&&(s.push(c),--o<=0))break;if(i&&(0,n.hasChildren)(c)&&c.children.length>0){var h=r(e,c.children,i,o);if(s.push.apply(s,h),(o-=h.length)<=0)break}}return s}t.filter=function(e,t,i,n){return void 0===i&&(i=!0),void 0===n&&(n=1/0),Array.isArray(t)||(t=[t]),r(e,t,i,n)},t.find=r,t.findOneChild=function(e,t){return t.find(e)},t.findOne=function e(t,i,r){void 0===r&&(r=!0);for(var o=null,s=0;s<i.length&&!o;s++){var l=i[s];(0,n.isTag)(l)&&(t(l)?o=l:r&&l.children.length>0&&(o=e(t,l.children)))}return o},t.existsOne=function e(t,i){return i.some((function(i){return(0,n.isTag)(i)&&(t(i)||i.children.length>0&&e(t,i.children))}))},t.findAll=function(e,t){for(var i,r,o=[],s=t.filter(n.isTag);r=s.shift();){var l=null===(i=r.children)||void 0===i?void 0:i.filter(n.isTag);l&&l.length>0&&s.unshift.apply(s,l),e(r)&&o.push(r)}return o}},5283:function(e,t,i){"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 r=i(1142),o=n(i(8427)),s=i(9960);function l(e,t){return(0,o.default)(e,t)}t.getOuterHTML=l,t.getInnerHTML=function(e,t){return(0,r.hasChildren)(e)?e.children.map((function(e){return l(e,t)})).join(""):""},t.getText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,r.isTag)(t)?"br"===t.name?"\n":e(t.children):(0,r.isCDATA)(t)?e(t.children):(0,r.isText)(t)?t.data:""},t.textContent=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,r.hasChildren)(t)&&!(0,r.isComment)(t)?e(t.children):(0,r.isText)(t)?t.data:""},t.innerText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,r.hasChildren)(t)&&(t.type===s.ElementType.Tag||(0,r.isCDATA)(t))?e(t.children):(0,r.isText)(t)?t.data:""}},7972:(e,t,i)=>{"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=i(1142),r=[];function o(e){var t;return null!==(t=e.children)&&void 0!==t?t:r}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 i=[e],n=e.prev,r=e.next;null!=n;)i.unshift(n),n=n.prev;for(;null!=r;)i.push(r),r=r.next;return i},t.getAttributeValue=function(e,t){var i;return null===(i=e.attribs)||void 0===i?void 0:i[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,i){"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 r=n(i(4168)),o=n(i(7272)),s=n(i(729)),l=n(i(2913)),a=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;function c(e){var t=u(e);return function(e){return String(e).replace(a,t)}}t.decodeXML=c(s.default),t.decodeHTMLStrict=c(r.default);var h=function(e,t){return e<t?1:-1};function u(e){return function(t){if("#"===t.charAt(1)){var i=t.charAt(2);return"X"===i||"x"===i?l.default(parseInt(t.substr(3),16)):l.default(parseInt(t.substr(2),10))}return e[t.slice(1,-1)]||t}}t.decodeHTML=function(){for(var e=Object.keys(o.default).sort(h),t=Object.keys(r.default).sort(h),i=0,n=0;i<t.length;i++)e[n]===t[i]?(t[i]+=";?",n++):t[i]+=";";var s=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),l=u(r.default);function a(e){return";"!==e.substr(-1)&&(e+=";"),l(e)}return function(e){return String(e).replace(s,a)}}()},2913:function(e,t,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=n(i(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 r.default&&(e=r.default[e]),o(e))}},571:function(e,t,i){"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 r=h(n(i(729)).default),o=u(r);t.encodeXML=g(r);var s,l,a=h(n(i(4168)).default),c=u(a);function h(e){return Object.keys(e).sort().reduce((function(t,i){return t[e[i]]="&"+i+";",t}),{})}function u(e){for(var t=[],i=[],n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];1===o.length?t.push("\\"+o):i.push(o)}t.sort();for(var s=0;s<t.length-1;s++){for(var l=s;l<t.length-1&&t[l].charCodeAt(1)+1===t[l+1].charCodeAt(1);)l+=1;var a=1+l-s;a<3||t.splice(s,a,t[s]+"-"+t[l])}return i.unshift("["+t.join("")+"]"),new RegExp(i.join("|"),"g")}t.encodeHTML=(s=a,l=c,function(e){return e.replace(l,(function(e){return s[e]})).replace(d,p)}),t.encodeNonAsciiHTML=g(a);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 p(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]||p(t)}))}}t.escape=function(e){return e.replace(m,p)},t.escapeUTF8=function(e){return e.replace(o,p)}},7772:(e,t,i)=>{"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=i(722),r=i(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?r.encodeXML:r.encodeHTML)(e)};var o=i(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=i(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,i){"use strict";var n,r=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 i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},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 i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[i]}})}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&o(t,e,i);return s(t,e),t},a=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,h,u=a(i(1142)),d=l(i(7241)),f=i(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"}(h||(h={}));var p=function(e){function t(t,i){return"object"==typeof t&&(i=t=void 0),e.call(this,t,i)||this}return r(t,e),t.prototype.onend=function(){var e,t,i=O(w,this.dom);if(i){var n={};if("feed"===i.name){var r=i.children;n.type="atom",b(n,"id","id",r),b(n,"title","title",r);var o=y("href",O("link",r));o&&(n.link=o),b(n,"description","subtitle",r),(s=v("updated",r))&&(n.updated=new Date(s)),b(n,"author","email",r,!0),n.items=g("entry",r).map((function(e){var t={},i=e.children;b(t,"id","id",i),b(t,"title","title",i);var n=y("href",O("link",i));n&&(t.link=n);var r=v("summary",i)||v("content",i);r&&(t.description=r);var o=v("updated",i);return o&&(t.pubDate=new Date(o)),t.media=m(i),t}))}else{var s;r=null!==(t=null===(e=O("channel",i.children))||void 0===e?void 0:e.children)&&void 0!==t?t:[];n.type=i.name.substr(0,3),n.id="",b(n,"title","title",r),b(n,"link","link",r),b(n,"description","description",r),(s=v("lastBuildDate",r))&&(n.updated=new Date(s)),b(n,"author","managingEditor",r,!0),n.items=g("item",i.children).map((function(e){var t={},i=e.children;b(t,"id","guid",i),b(t,"title","title",i),b(t,"link","link",i),b(t,"description","description",i);var n=v("pubDate",i);return n&&(t.pubDate=new Date(n)),t.media=m(i),t}))}this.feed=n,this.handleCallback(null)}else this.handleCallback(new Error("couldn't find root of feed"))},t}(u.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 O(e,t){return d.getElementsByTagName(e,t,!0,1)[0]}function v(e,t,i){return void 0===i&&(i=!1),d.getText(d.getElementsByTagName(e,t,i,1)).trim()}function y(e,t){return t?t.attribs[e]:null}function b(e,t,i,n,r){void 0===r&&(r=!1);var o=v(i,n,r);o&&(e[t]=o)}function w(e){return"rss"===e||"feed"===e||"rdf:RDF"===e}t.FeedHandler=p,t.parseFeed=function(e,t){void 0===t&&(t={xmlMode:!0});var i=new p(t);return new f.Parser(i,t).end(e),i.feed}},6666:function(e,t,i){"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 r=n(i(34)),o=new Set(["input","option","optgroup","select","button","datalist","textarea"]),s=new Set(["p"]),l={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"])},a=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"]),h=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),u=/\s|\//,d=function(){function e(e,t){var i,n,o,s,l;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!==(i=t.lowerCaseTags)&&void 0!==i?i:!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:r.default)(this.options,this),null===(l=(s=this.cbs).onparserinit)||void 0===l||l.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,i;this.updatePosition(1),this.endIndex--,null===(i=(t=this.cbs).ontext)||void 0===i||i.call(t,e)},e.prototype.onopentagname=function(e){var t,i;if(this.lowerCaseTagNames&&(e=e.toLowerCase()),this.tagname=e,!this.options.xmlMode&&Object.prototype.hasOwnProperty.call(l,e))for(var n=void 0;this.stack.length>0&&l[e].has(n=this.stack[this.stack.length-1]);)this.onclosetag(n);!this.options.xmlMode&&a.has(e)||(this.stack.push(e),c.has(e)?this.foreignContext.push(!0):h.has(e)&&this.foreignContext.push(!1)),null===(i=(t=this.cbs).onopentagname)||void 0===i||i.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&&a.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)||h.has(e))&&this.foreignContext.pop(),!this.stack.length||!this.options.xmlMode&&a.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,i=this.tagname;this.onopentagend(),this.stack[this.stack.length-1]===i&&(null===(t=(e=this.cbs).onclosetag)||void 0===t||t.call(e,i),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,i;null===(i=(t=this.cbs).onattribute)||void 0===i||i.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(u),i=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(i=i.toLowerCase()),i},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,i,n,r;this.updatePosition(4),null===(i=(t=this.cbs).oncomment)||void 0===i||i.call(t,e),null===(r=(n=this.cbs).oncommentend)||void 0===r||r.call(n)},e.prototype.oncdata=function(e){var t,i,n,r,o,s;this.updatePosition(1),this.options.xmlMode||this.options.recognizeCDATA?(null===(i=(t=this.cbs).oncdatastart)||void 0===i||i.call(t),null===(r=(n=this.cbs).ontext)||void 0===r||r.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,i;null===(i=(t=this.cbs).onerror)||void 0===i||i.call(t,e)},e.prototype.onend=function(){var e,t;if(this.cbs.onclosetag)for(var i=this.stack.length;i>0;this.cbs.onclosetag(this.stack[--i]));null===(t=(e=this.cbs).onend)||void 0===t||t.call(e)},e.prototype.reset=function(){var e,t,i,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=(i=this.cbs).onparserinit)||void 0===n||n.call(i,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,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=n(i(2913)),o=n(i(4168)),s=n(i(7272)),l=n(i(729));function a(e){return" "===e||"\n"===e||"\t"===e||"\f"===e||"\r"===e}function c(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"}function h(e,t,i){var n=e.toLowerCase();return e===n?function(e,r){r===n?e._state=t:(e._state=i,e._index--)}:function(r,o){o===n||o===e?r._state=t:(r._state=i,r._index--)}}function u(e,t){var i=e.toLowerCase();return function(n,r){r===i||r===e?n._state=t:(n._state=3,n._index--)}}var d=h("C",24,16),f=h("D",25,16),p=h("A",26,16),m=h("T",27,16),g=h("A",28,16),O=u("R",35),v=u("I",36),y=u("P",37),b=u("T",38),w=h("R",40,1),x=h("I",41,1),S=h("P",42,1),k=h("T",43,1),$=u("Y",45),_=u("L",46),T=u("E",47),Q=h("Y",49,1),P=h("L",50,1),A=h("E",51,1),C=u("I",54),R=u("T",55),E=u("L",56),M=u("E",57),D=h("I",58,1),q=h("T",59,1),N=h("L",60,1),j=h("E",61,1),V=h("#",63,64),W=h("X",66,65),z=function(){function e(e,t){var i;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===(i=null==e?void 0:e.decodeEntities)||void 0===i||i}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&&!a(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||a(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||a(e))&&(this.emitToken("onopentagname"),this._state=8,this._index--)},e.prototype.stateBeforeClosingTagName=function(e){a(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||a(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:a(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):a(e)||(this._state=8,this._index--)},e.prototype.stateInAttributeName=function(e){("="===e||"/"===e||">"===e||a(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--):a(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):a(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){a(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||a(e))&&(this.special=t),this._state=3,this._index--},e.prototype.stateAfterSpecialLast=function(e,t){">"===e||a(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?l.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 i=this.buffer.substr(e,t);if(Object.prototype.hasOwnProperty.call(s.default,i))return this.emitPartial(s.default[i]),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,i){var n=this.sectionStart+e;if(n!==this._index){var o=this.buffer.substring(n,this._index),s=parseInt(o,t);this.emitPartial(r.default(s)),this.sectionStart=i?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?D(this,e):39===this._state?w(this,e):40===this._state?x(this,e):41===this._state?S(this,e):34===this._state?O(this,e):35===this._state?v(this,e):36===this._state?y(this,e):37===this._state?b(this,e):38===this._state?this.stateBeforeSpecialLast(e,2):42===this._state?k(this,e):43===this._state?this.stateAfterSpecialLast(e,6):44===this._state?$(this,e):29===this._state?this.stateInCdata(e):45===this._state?_(this,e):46===this._state?T(this,e):47===this._state?this.stateBeforeSpecialLast(e,3):48===this._state?Q(this,e):49===this._state?P(this,e):50===this._state?A(this,e):51===this._state?this.stateAfterSpecialLast(e,5):52===this._state?C(this,e):54===this._state?R(this,e):55===this._state?E(this,e):56===this._state?M(this,e):57===this._state?this.stateBeforeSpecialLast(e,4):58===this._state?q(this,e):59===this._state?N(this,e):60===this._state?j(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?V(this,e):24===this._state?f(this,e):25===this._state?p(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?W(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=z},5106:function(e,t,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[i]}})}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),r=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 i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t},s=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)},l=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 a=i(6666);Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return a.Parser}});var c=i(1142);function h(e,t){var i=new c.DomHandler(void 0,t);return new a.Parser(i,t).end(e),i.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=h,t.parseDOM=function(e,t){return h(e,t).children},t.createDomStream=function(e,t,i){var n=new c.DomHandler(e,t,i);return new a.Parser(n,t)};var u=i(34);Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return l(u).default}});var d=o(i(9960));t.ElementType=d,s(i(7613),t),t.DomUtils=o(i(7241));var f=i(7613);Object.defineProperty(t,"RssHandler",{enumerable:!0,get:function(){return f.FeedHandler}})},977:(e,t)=>{"use strict";function i(e){return"[object Object]"===Object.prototype.toString.call(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.isPlainObject=function(e){var t,n;return!1!==i(e)&&(void 0===(t=e.constructor)||!1!==i(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}},3379:e=>{"use strict";var t=[];function i(e){for(var i=-1,n=0;n<t.length;n++)if(t[n].identifier===e){i=n;break}return i}function n(e,n){for(var o={},s=[],l=0;l<e.length;l++){var a=e[l],c=n.base?a[0]+n.base:a[0],h=o[c]||0,u="".concat(c," ").concat(h);o[c]=h+1;var d=i(u),f={css:a[1],media:a[2],sourceMap:a[3],supports:a[4],layer:a[5]};if(-1!==d)t[d].references++,t[d].updater(f);else{var p=r(f,n);n.byIndex=l,t.splice(l,0,{identifier:u,updater:p,references:1})}s.push(u)}return s}function r(e,t){var i=t.domAPI(t);i.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;i.update(e=t)}else i.remove()}}e.exports=function(e,r){var o=n(e=e||[],r=r||{});return function(e){e=e||[];for(var s=0;s<o.length;s++){var l=i(o[s]);t[l].references--}for(var a=n(e,r),c=0;c<o.length;c++){var h=i(o[c]);0===t[h].references&&(t[h].updater(),t.splice(h,1))}o=a}}},569:e=>{"use strict";var t={};e.exports=function(e,i){var n=function(e){if(void 0===t[e]){var i=document.querySelector(e);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}t[e]=i}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(i)}},9216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,i)=>{"use strict";e.exports=function(e){var t=i.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(i){!function(e,t,i){var n="";i.supports&&(n+="@supports (".concat(i.supports,") {")),i.media&&(n+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(n+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),n+=i.css,r&&(n+="}"),i.media&&(n+="}"),i.supports&&(n+="}");var o=i.sourceMap;o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,i)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},9196:e=>{"use strict";e.exports=window.React},1850:e=>{"use strict";e.exports=window.ReactDOM},6292:e=>{"use strict";e.exports=window.moment},2868:()=>{},4777:()=>{},9830:()=>{},209:()=>{},7414:()=>{},2618:e=>{e.exports={nanoid:(e=21)=>{let t="",i=e;for(;i--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(i=t)=>{let n="",r=i;for(;r--;)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 i(n){var r=t[n];if(void 0!==r)return r.exports;var o=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(o.exports,o,o.exports,i),o.loaded=!0,o.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),i.nc=void 0,(()=>{"use strict";var e={};i.r(e),i.d(e,{getActiveTab:()=>gi,getDeleteStatus:()=>yi,getFieldDeleteMessage:()=>Di,getFieldDeleteMessages:()=>Mi,getFieldDeleteStatus:()=>Ei,getFieldDeleteStatuses:()=>Ri,getFieldRelatedObjects:()=>mi,getFieldSaveMessage:()=>Ci,getFieldSaveMessages:()=>Ai,getFieldSaveStatus:()=>Pi,getFieldSaveStatuses:()=>Qi,getFieldTypeObject:()=>pi,getFieldTypeObjects:()=>fi,getFieldsFromAllGroups:()=>ni,getGlobalFieldOptions:()=>di,getGlobalGroupOptions:()=>ui,getGlobalPodFieldsFromAllGroups:()=>hi,getGlobalPodGroup:()=>ai,getGlobalPodGroupFields:()=>ci,getGlobalPodGroups:()=>li,getGlobalPodOption:()=>si,getGlobalPodOptions:()=>oi,getGlobalShowFields:()=>ri,getGroup:()=>ti,getGroupDeleteMessage:()=>Ti,getGroupDeleteMessages:()=>_i,getGroupDeleteStatus:()=>$i,getGroupDeleteStatuses:()=>ki,getGroupFields:()=>ii,getGroupSaveMessage:()=>Si,getGroupSaveMessages:()=>xi,getGroupSaveStatus:()=>wi,getGroupSaveStatuses:()=>bi,getGroups:()=>ei,getPodID:()=>Gt,getPodName:()=>Yt,getPodOption:()=>Jt,getPodOptions:()=>Kt,getSaveMessage:()=>vi,getSaveStatus:()=>Oi,getState:()=>Zt});var t={};function n(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function o(e,t){if(e){if("string"==typeof e)return r(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?r(e,t):void 0}}function s(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||o(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.")}()}i.r(t),i.d(t,{addGroup:()=>Yi,addGroupField:()=>tn,deleteField:()=>hn,deleteGroup:()=>an,deletePod:()=>sn,moveGroup:()=>Gi,refreshPodData:()=>Hi,removeGroup:()=>Ki,removeGroupField:()=>nn,resetFieldSaveStatus:()=>Bi,resetGroupSaveStatus:()=>Wi,saveField:()=>cn,saveGroup:()=>ln,savePod:()=>on,setActiveTab:()=>qi,setDeleteStatus:()=>ji,setFieldDeleteStatus:()=>Ii,setFieldSaveStatus:()=>Li,setGroupData:()=>Ji,setGroupDeleteStatus:()=>zi,setGroupFieldData:()=>rn,setGroupFields:()=>en,setGroupSaveStatus:()=>Vi,setGroups:()=>Zi,setOptionValue:()=>Ui,setOptionsValues:()=>Fi,setPodName:()=>Xi,setSaveStatus:()=>Ni});var l=i(9196),a=i.n(l),c=i(1850),h=i.n(c);const u=window.lodash,d=window.wp.hooks,f=window.wp.data,p=window.wp.plugins;function m(e){for(var t=arguments.length,i=Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+e+(i.length?" "+i.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function g(e){return!!e&&!!e[se]}function O(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var i=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===le}(e)||Array.isArray(e)||!!e[oe]||!!e.constructor[oe]||k(e)||$(e))}function v(e,t,i){void 0===i&&(i=!1),0===y(e)?(i?Object.keys:ae)(e).forEach((function(n){i&&"symbol"==typeof n||t(n,e[n],e)})):e.forEach((function(i,n){return t(n,i,e)}))}function y(e){var t=e[se];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:k(e)?2:$(e)?3:0}function b(e,t){return 2===y(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function w(e,t){return 2===y(e)?e.get(t):e[t]}function x(e,t,i){var n=y(e);2===n?e.set(t,i):3===n?(e.delete(t),e.add(i)):e[t]=i}function S(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function k(e){return te&&e instanceof Map}function $(e){return ie&&e instanceof Set}function T(e){return e.o||e.t}function Q(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=ce(e);delete t[se];for(var i=ae(t),n=0;n<i.length;n++){var r=i[n],o=t[r];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[r]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[r]})}return Object.create(Object.getPrototypeOf(e),t)}function P(e,t){return void 0===t&&(t=!1),C(e)||g(e)||!O(e)||(y(e)>1&&(e.set=e.add=e.clear=e.delete=A),Object.freeze(e),t&&v(e,(function(e,t){return P(t,!0)}),!0)),e}function A(){m(2)}function C(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function R(e){var t=he[e];return t||m(18,e),t}function E(e,t){he[e]||(he[e]=t)}function M(){return J}function D(e,t){t&&(R("Patches"),e.u=[],e.s=[],e.v=t)}function q(e){N(e),e.p.forEach(V),e.p=null}function N(e){e===J&&(J=e.l)}function j(e){return J={p:[],l:J,h:e,m:!0,_:0}}function V(e){var t=e[se];0===t.i||1===t.i?t.j():t.O=!0}function W(e,t){t._=t.p.length;var i=t.p[0],n=void 0!==e&&e!==i;return t.h.g||R("ES5").S(t,e,n),n?(i[se].P&&(q(t),m(4)),O(e)&&(e=z(t,e),t.l||B(t,e)),t.u&&R("Patches").M(i[se].t,e,t.u,t.s)):e=z(t,i,[]),q(t),t.u&&t.v(t.u,t.s),e!==re?e:void 0}function z(e,t,i){if(C(t))return t;var n=t[se];if(!n)return v(t,(function(r,o){return L(e,n,t,r,o,i)}),!0),t;if(n.A!==e)return t;if(!n.P)return B(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var r=4===n.i||5===n.i?n.o=Q(n.k):n.o;v(3===n.i?new Set(r):r,(function(t,o){return L(e,n,r,t,o,i)})),B(e,r,!1),i&&e.u&&R("Patches").R(n,i,e.u,e.s)}return n.o}function L(e,t,i,n,r,o){if(g(r)){var s=z(e,r,o&&t&&3!==t.i&&!b(t.D,n)?o.concat(n):void 0);if(x(i,n,s),!g(s))return;e.m=!1}if(O(r)&&!C(r)){if(!e.h.F&&e._<1)return;z(e,r),t&&t.A.l||B(e,r)}}function B(e,t,i){void 0===i&&(i=!1),e.h.F&&e.m&&P(t,i)}function I(e,t){var i=e[se];return(i?T(i):e)[t]}function X(e,t){if(t in e)for(var i=Object.getPrototypeOf(e);i;){var n=Object.getOwnPropertyDescriptor(i,t);if(n)return n;i=Object.getPrototypeOf(i)}}function U(e){e.P||(e.P=!0,e.l&&U(e.l))}function F(e){e.o||(e.o=Q(e.t))}function H(e,t,i){var n=k(t)?R("MapSet").N(t,i):$(t)?R("MapSet").T(t,i):e.g?function(e,t){var i=Array.isArray(e),n={i:i?1:0,A:t?t.A:M(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},r=n,o=ue;i&&(r=[n],o=de);var s=Proxy.revocable(r,o),l=s.revoke,a=s.proxy;return n.k=a,n.j=l,a}(t,i):R("ES5").J(t,i);return(i?i.A:M()).p.push(n),n}function Z(e){return g(e)||m(22,e),function e(t){if(!O(t))return t;var i,n=t[se],r=y(t);if(n){if(!n.P&&(n.i<4||!R("ES5").K(n)))return n.t;n.I=!0,i=G(t,r),n.I=!1}else i=G(t,r);return v(i,(function(t,r){n&&w(n.t,t)===r||x(i,t,e(r))})),3===r?new Set(i):i}(e)}function G(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Q(e)}function Y(){function e(e,t){var i=r[e];return i?i.enumerable=t:r[e]=i={configurable:!0,enumerable:t,get:function(){var t=this[se];return ue.get(t,e)},set:function(t){var i=this[se];ue.set(i,e,t)}},i}function t(e){for(var t=e.length-1;t>=0;t--){var r=e[t][se];if(!r.P)switch(r.i){case 5:n(r)&&U(r);break;case 4:i(r)&&U(r)}}}function i(e){for(var t=e.t,i=e.k,n=ae(i),r=n.length-1;r>=0;r--){var o=n[r];if(o!==se){var s=t[o];if(void 0===s&&!b(t,o))return!0;var l=i[o],a=l&&l[se];if(a?a.t!==s:!S(l,s))return!0}}var c=!!t[se];return n.length!==ae(t).length+(c?0:1)}function n(e){var t=e.k;if(t.length!==e.t.length)return!0;var i=Object.getOwnPropertyDescriptor(t,t.length-1);if(i&&!i.get)return!0;for(var n=0;n<t.length;n++)if(!t.hasOwnProperty(n))return!0;return!1}var r={};E("ES5",{J:function(t,i){var n=Array.isArray(t),r=function(t,i){if(t){for(var n=Array(i.length),r=0;r<i.length;r++)Object.defineProperty(n,""+r,e(r,!0));return n}var o=ce(i);delete o[se];for(var s=ae(o),l=0;l<s.length;l++){var a=s[l];o[a]=e(a,t||!!o[a].enumerable)}return Object.create(Object.getPrototypeOf(i),o)}(n,t),o={i:n?5:4,A:i?i.A:M(),P:!1,I:!1,D:{},l:i,t,k:r,o:null,O:!1,C:!1};return Object.defineProperty(r,se,{value:o,writable:!0}),r},S:function(e,i,r){r?g(i)&&i[se].A===e&&t(e.p):(e.u&&function e(t){if(t&&"object"==typeof t){var i=t[se];if(i){var r=i.t,o=i.k,s=i.D,l=i.i;if(4===l)v(o,(function(t){t!==se&&(void 0!==r[t]||b(r,t)?s[t]||e(o[t]):(s[t]=!0,U(i)))})),v(r,(function(e){void 0!==o[e]||b(o,e)||(s[e]=!1,U(i))}));else if(5===l){if(n(i)&&(U(i),s.length=!0),o.length<r.length)for(var a=o.length;a<r.length;a++)s[a]=!1;else for(var c=r.length;c<o.length;c++)s[c]=!0;for(var h=Math.min(o.length,r.length),u=0;u<h;u++)o.hasOwnProperty(u)||(s[u]=!0),void 0===s[u]&&e(o[u])}}}}(e.p[0]),t(e.p))},K:function(e){return 4===e.i?i(e):n(e)}})}var K,J,ee="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),te="undefined"!=typeof Map,ie="undefined"!=typeof Set,ne="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,re=ee?Symbol.for("immer-nothing"):((K={})["immer-nothing"]=!0,K),oe=ee?Symbol.for("immer-draftable"):"__$immer_draftable",se=ee?Symbol.for("immer-state"):"__$immer_state",le=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),ae="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,ce=Object.getOwnPropertyDescriptors||function(e){var t={};return ae(e).forEach((function(i){t[i]=Object.getOwnPropertyDescriptor(e,i)})),t},he={},ue={get:function(e,t){if(t===se)return e;var i=T(e);if(!b(i,t))return function(e,t,i){var n,r=X(t,i);return r?"value"in r?r.value:null===(n=r.get)||void 0===n?void 0:n.call(e.k):void 0}(e,i,t);var n=i[t];return e.I||!O(n)?n:n===I(e.t,t)?(F(e),e.o[t]=H(e.A.h,n,e)):n},has:function(e,t){return t in T(e)},ownKeys:function(e){return Reflect.ownKeys(T(e))},set:function(e,t,i){var n=X(T(e),t);if(null==n?void 0:n.set)return n.set.call(e.k,i),!0;if(!e.P){var r=I(T(e),t),o=null==r?void 0:r[se];if(o&&o.t===i)return e.o[t]=i,e.D[t]=!1,!0;if(S(i,r)&&(void 0!==i||b(e.t,t)))return!0;F(e),U(e)}return e.o[t]===i&&"number"!=typeof i&&(void 0!==i||t in e.o)||(e.o[t]=i,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==I(e.t,t)||t in e.t?(e.D[t]=!1,F(e),U(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var i=T(e),n=Reflect.getOwnPropertyDescriptor(i,t);return n?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:n.enumerable,value:i[t]}:n},defineProperty:function(){m(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){m(12)}},de={};v(ue,(function(e,t){de[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),de.deleteProperty=function(e,t){return de.set.call(this,e,t,void 0)},de.set=function(e,t,i){return ue.set.call(this,e[0],t,i,e[0])};var fe=function(){function e(e){var t=this;this.g=ne,this.F=!0,this.produce=function(e,i,n){if("function"==typeof e&&"function"!=typeof i){var r=i;i=e;var o=t;return function(e){var t=this;void 0===e&&(e=r);for(var n=arguments.length,s=Array(n>1?n-1:0),l=1;l<n;l++)s[l-1]=arguments[l];return o.produce(e,(function(e){var n;return(n=i).call.apply(n,[t,e].concat(s))}))}}var s;if("function"!=typeof i&&m(6),void 0!==n&&"function"!=typeof n&&m(7),O(e)){var l=j(t),a=H(t,e,void 0),c=!0;try{s=i(a),c=!1}finally{c?q(l):N(l)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(e){return D(l,n),W(e,l)}),(function(e){throw q(l),e})):(D(l,n),W(s,l))}if(!e||"object"!=typeof e){if(void 0===(s=i(e))&&(s=e),s===re&&(s=void 0),t.F&&P(s,!0),n){var h=[],u=[];R("Patches").M(e,s,h,u),n(h,u)}return s}m(21,e)},this.produceWithPatches=function(e,i){if("function"==typeof e)return function(i){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.produceWithPatches(i,(function(t){return e.apply(void 0,[t].concat(r))}))};var n,r,o=t.produce(e,i,(function(e,t){n=e,r=t}));return"undefined"!=typeof Promise&&o instanceof Promise?o.then((function(e){return[e,n,r]})):[o,n,r]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){O(e)||m(8),g(e)&&(e=Z(e));var t=j(this),i=H(this,e,void 0);return i[se].C=!0,N(t),i},t.finishDraft=function(e,t){var i=(e&&e[se]).A;return D(i,t),W(void 0,i)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!ne&&m(20),this.g=e},t.applyPatches=function(e,t){var i;for(i=t.length-1;i>=0;i--){var n=t[i];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}i>-1&&(t=t.slice(i+1));var r=R("Patches").$;return g(e)?r(e,t):this.produce(e,(function(e){return r(e,t)}))},e}(),pe=new fe;pe.produce,pe.produceWithPatches.bind(pe),pe.setAutoFreeze.bind(pe),pe.setUseProxies.bind(pe),pe.applyPatches.bind(pe),pe.createDraft.bind(pe),pe.finishDraft.bind(pe);function me(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function ge(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?me(Object(i),!0).forEach((function(t){n(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):me(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function Oe(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var ve="function"==typeof Symbol&&Symbol.observable||"@@observable",ye=function(){return Math.random().toString(36).substring(7).split("").join(".")},be={INIT:"@@redux/INIT"+ye(),REPLACE:"@@redux/REPLACE"+ye(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ye()}};function we(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function xe(e,t,i){var n;if("function"==typeof t&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(Oe(0));if("function"==typeof t&&void 0===i&&(i=t,t=void 0),void 0!==i){if("function"!=typeof i)throw new Error(Oe(1));return i(xe)(e,t)}if("function"!=typeof e)throw new Error(Oe(2));var r=e,o=t,s=[],l=s,a=!1;function c(){l===s&&(l=s.slice())}function h(){if(a)throw new Error(Oe(3));return o}function u(e){if("function"!=typeof e)throw new Error(Oe(4));if(a)throw new Error(Oe(5));var t=!0;return c(),l.push(e),function(){if(t){if(a)throw new Error(Oe(6));t=!1,c();var i=l.indexOf(e);l.splice(i,1),s=null}}}function d(e){if(!we(e))throw new Error(Oe(7));if(void 0===e.type)throw new Error(Oe(8));if(a)throw new Error(Oe(9));try{a=!0,o=r(o,e)}finally{a=!1}for(var t=s=l,i=0;i<t.length;i++){(0,t[i])()}return e}function f(e){if("function"!=typeof e)throw new Error(Oe(10));r=e,d({type:be.REPLACE})}function p(){var e,t=u;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(Oe(11));function i(){e.next&&e.next(h())}return i(),{unsubscribe:t(i)}}})[ve]=function(){return this},e}return d({type:be.INIT}),(n={dispatch:d,subscribe:u,getState:h,replaceReducer:f})[ve]=p,n}function Se(e){for(var t=Object.keys(e),i={},n=0;n<t.length;n++){var r=t[n];0,"function"==typeof e[r]&&(i[r]=e[r])}var o,s=Object.keys(i);try{!function(e){Object.keys(e).forEach((function(t){var i=e[t];if(void 0===i(void 0,{type:be.INIT}))throw new Error(Oe(12));if(void 0===i(void 0,{type:be.PROBE_UNKNOWN_ACTION()}))throw new Error(Oe(13))}))}(i)}catch(e){o=e}return function(e,t){if(void 0===e&&(e={}),o)throw o;for(var n=!1,r={},l=0;l<s.length;l++){var a=s[l],c=i[a],h=e[a],u=c(h,t);if(void 0===u){t&&t.type;throw new Error(Oe(14))}r[a]=u,n=n||u!==h}return(n=n||s.length!==Object.keys(e).length)?r:e}}function ke(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function $e(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(e){return function(){var i=e.apply(void 0,arguments),n=function(){throw new Error(Oe(15))},r={getState:i.getState,dispatch:function(){return n.apply(void 0,arguments)}},o=t.map((function(e){return e(r)}));return n=ke.apply(void 0,o)(i.dispatch),ge(ge({},i),{},{dispatch:n})}}}function _e(e){return function(t){var i=t.dispatch,n=t.getState;return function(t){return function(r){return"function"==typeof r?r(i,n,e):t(r)}}}}var Te=_e();Te.withExtraArgument=_e;const Qe=Te;var Pe,Ae=(Pe=function(e,t){return Pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},Pe(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 i(){this.constructor=e}Pe(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),Ce=function(e,t){for(var i=0,n=t.length,r=e.length;i<n;i++,r++)e[r]=t[i];return e},Re=Object.defineProperty,Ee=(Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols),Me=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,qe=function(e,t,i){return t in e?Re(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i},Ne=function(e,t){for(var i in t||(t={}))Me.call(t,i)&&qe(e,i,t[i]);if(Ee)for(var n=0,r=Ee(t);n<r.length;n++){i=r[n];De.call(t,i)&&qe(e,i,t[i])}return e},je="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?ke:ke.apply(null,arguments)};"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function Ve(e){if("object"!=typeof e||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var i=t;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return t===i}var We=function(e){function t(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var r=e.apply(this,i)||this;return Object.setPrototypeOf(r,t.prototype),r}return Ae(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,Ce([void 0],e[0].concat(this)))):new(t.bind.apply(t,Ce([void 0],e.concat(this))))},t}(Array);function ze(){return function(e){return function(e){void 0===e&&(e={});var t=e.thunk,i=void 0===t||t,n=(e.immutableCheck,e.serializableCheck,new We);i&&(!function(e){return"boolean"==typeof e}(i)?n.push(Qe.withExtraArgument(i.extraArgument)):n.push(Qe));0;return n}(e)}}function Le(e){var t,i=ze(),n=e||{},r=n.reducer,o=void 0===r?void 0:r,s=n.middleware,l=void 0===s?i():s,a=n.devTools,c=void 0===a||a,h=n.preloadedState,u=void 0===h?void 0:h,d=n.enhancers,f=void 0===d?void 0:d;if("function"==typeof o)t=o;else{if(!Ve(o))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');t=Se(o)}var p=l;"function"==typeof p&&(p=p(i));var m=$e.apply(void 0,p),g=ke;c&&(g=je(Ne({trace:!1},"object"==typeof c&&c)));var O=[m];return Array.isArray(f)?O=Ce([m],f):"function"==typeof f&&(O=f(O)),xe(t,u,g.apply(void 0,O))}function Be(e,t){function i(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(t){var r=t.apply(void 0,i);if(!r)throw new Error("prepareAction did not return an object");return Ne(Ne({type:e,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:e,payload:i[0]}}return i.toString=function(){return""+e},i.type=e,i.match=function(t){return t.type===e},i}Object.assign;var Ie="listenerMiddleware";Be(Ie+"/add"),Be(Ie+"/removeAll"),Be(Ie+"/remove");Y();var Xe=function(e){return(0,u.tail)(e.split(".")).join(".")},Ue=function(e,t){return t.split(".").reduceRight((function(e,t){return n({},t,e)}),e)},Fe=function(e,t){return t.split(".").reduce((function(e,t){return e[t]}),e)},He=function(e){return{path:e,tailPath:Xe(e),getFrom:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return Fe(t,i)},tailGetFrom:function(t){return Fe(t,Xe(e))},createTree:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return Ue(t,i)},tailCreateTree:function(t){return Ue(t,Xe(e))}}},Ze=He("currentPod"),Ge=He("".concat(Ze.path,".name")),Ye=He("".concat(Ze.path,".id")),Ke=He("".concat(Ze.path,".groups")),Je=He("global"),et=He("".concat(Je.path,".showFields")),tt=He("".concat(Je.path,".pod")),it=He("".concat(tt.path,".groups")),nt=He("".concat(Je.path,".group")),rt=He("".concat(Je.path,".field")),ot=He("data"),st=He("".concat(ot.path,".fieldTypes")),lt=He("".concat(ot.path,".relatedObjects")),at=He("ui"),ct=He("".concat(at.path,".activeTab")),ht=He("".concat(at.path,".saveStatus")),ut=He("".concat(at.path,".deleteStatus")),dt=He("".concat(at.path,".saveMessage")),ft=He("".concat(at.path,".groupSaveStatuses")),pt=He("".concat(at.path,".groupSaveMessages")),mt=He("".concat(at.path,".groupDeleteStatuses")),gt=He("".concat(at.path,".groupDeleteMessages")),Ot=He("".concat(at.path,".fieldSaveStatuses")),vt=He("".concat(at.path,".fieldSaveMessages")),yt=He("".concat(at.path,".fieldDeleteStatuses")),bt=He("".concat(at.path,".fieldDeleteMessages")),wt="pods/edit-pod",xt="pods/dfv",St={NONE:"",DELETING:"DELETING",DELETE_SUCCESS:"DELETE_SUCCESS",DELETE_ERROR:"DELETE_ERROR"},kt={NONE:"",SAVING:"SAVING",SAVE_SUCCESS:"SAVE_SUCCESS",SAVE_ERROR:"SAVE_ERROR",DELETE_ERROR:"DELETE_ERROR"},$t="UI/SET_ACTIVE_TAB",_t="UI/SET_SAVE_STATUS",Tt="UI/SET_DELETE_STATUS",Qt="UI/SET_GROUP_SAVE_STATUS",Pt="UI/SET_GROUP_DELETE_STATUS",At="UI/SET_FIELD_SAVE_STATUS",Ct="UI/SET_FIELD_DELETE_STATUS",Rt="CURRENT_POD/SET_POD_NAME",Et="CURRENT_POD/SET_OPTION_ITEM_VALUE",Mt="CURRENT_POD/SET_OPTIONS_VALUES",Dt="CURRENT_POD/SET_GROUPS",qt="CURRENT_POD/MOVE_GROUP",Nt="CURRENT_POD/ADD_GROUP",jt="CURRENT_POD/REMOVE_GROUP",Vt="CURRENT_POD/SET_GROUP_DATA",Wt="CURRENT_POD/SET_GROUP_FIELDS",zt="CURRENT_POD/ADD_GROUP_FIELD",Lt="CURRENT_POD/REMOVE_GROUP_FIELD",Bt="CURRENT_POD/SET_GROUP_FIELD_DATA",It="CURRENT_POD/API_REQUEST",Xt={activeTab:"manage-fields",saveStatus:kt.NONE,saveMessage:null,deleteStatus:St.NONE,deleteMessage:null,groupSaveStatuses:{},groupSaveMessages:{},groupDeleteStatuses:{},groupDeleteMessages:{},fieldSaveStatuses:{},fieldSaveMessages:{},fieldDeleteStatuses:{},fieldDeleteMessages:{}};function Ut(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Ft(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Ut(Object(i),!0).forEach((function(t){n(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Ut(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}const Ht=(0,f.combineReducers)({ui:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xt,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case $t:return Ft(Ft({},e),{},{activeTab:t.activeTab});case _t:var i,r=Object.values(kt).includes(t.saveStatus)?t.saveStatus:Xt.saveStatus;return Ft(Ft({},e),{},{saveStatus:r,saveMessage:(null===(i=t.result)||void 0===i?void 0:i.message)||""});case Tt:var o,s=Object.values(St).includes(t.deleteStatus)?t.deleteStatus:Xt.deleteStatus;return Ft(Ft({},e),{},{deleteStatus:s,deleteMessage:(null===(o=t.result)||void 0===o?void 0:o.message)||""});case Qt:var l,a,c,h,d=t.result,f=Object.values(kt).includes(t.saveStatus)?t.saveStatus:Xt.saveStatus,p=(null===(l=d.group)||void 0===l?void 0:l.name)&&(null===(a=d.group)||void 0===a?void 0:a.name)!==t.previousGroupName||!1,m=p?null===(c=d.group)||void 0===c?void 0:c.name:t.previousGroupName,g=Ft(Ft({},(0,u.omit)(e.groupSaveStatuses,[t.previousGroupName])),{},n({},m,f)),O=Ft(Ft({},(0,u.omit)(e.groupSaveMessages,[t.previousGroupName])),{},n({},m,(null===(h=t.result)||void 0===h?void 0:h.message)||""));return Ft(Ft({},e),{},{groupSaveStatuses:g,groupSaveMessages:O});case Pt:var v,y=Object.values(St).includes(t.deleteStatus)?t.deleteStatus:St.NONE;return t.name?Ft(Ft({},e),{},{groupDeleteStatuses:Ft(Ft({},e.groupDeleteStatuses),{},n({},t.name,y)),groupDeleteMessages:Ft(Ft({},e.groupDeleteMessages),{},n({},t.name,(null===(v=t.result)||void 0===v?void 0:v.message)||""))}):e;case At:var b,w,x,S=t.result,k=Object.values(kt).includes(t.saveStatus)?t.saveStatus:Xt.saveStatus,$=(null===(b=S.field)||void 0===b?void 0:b.name)&&(null===(w=S.field)||void 0===w?void 0:w.name)!==t.previousFieldName||!1,_=$?S.field.name:t.previousFieldName,T=Ft(Ft({},(0,u.omit)(e.fieldSaveStatuses,[t.previousFieldName])),{},n({},_,k)),Q=Ft(Ft({},(0,u.omit)(e.fieldSaveMessages,[t.previousFieldName])),{},n({},_,(null===(x=t.result)||void 0===x?void 0:x.message)||""));return Ft(Ft({},e),{},{fieldSaveStatuses:T,fieldSaveMessages:Q});case Ct:var P,A=Object.values(St).includes(t.deleteStatus)?t.deleteStatus:St.NONE;return t.name?Ft(Ft({},e),{},{fieldDeleteStatuses:Ft(Ft({},e.fieldDeleteStatuses),{},n({},t.name,A)),fieldDeleteMessages:Ft(Ft({},e.fieldDeleteMessages),{},n({},t.name,null===(P=t.result)||void 0===P?void 0:P.message))}):e;default:return e}},currentPod:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case Rt:return Ft(Ft({},e),{},{name:t.name});case Et:var i=t.optionName,r=t.value;return Ft(Ft({},e),{},n({},i,r));case Mt:return Ft(Ft({},e),t.options);case qt:var o=t.oldIndex,l=t.newIndex;if(null===o||null===l||o===l)return e;if(o>=e.groups.length||0>o)return e;if(l>=e.groups.length||0>l)return e;var a=s(e.groups);return a.splice(l,0,a.splice(o,1)[0]),Ft(Ft({},e),{},{groups:a});case Dt:return Ft(Ft({},e),{},n({},Ke.tailPath,t.groups));case Nt:var c,h,u;return null!=t&&null!==(c=t.result)&&void 0!==c&&null!==(h=c.group)&&void 0!==h&&h.id?Ft(Ft({},e),{},{groups:[].concat(s(e.groups),[null==t||null===(u=t.result)||void 0===u?void 0:u.group])}):e;case jt:return Ft(Ft({},e),{},{groups:e.groups?e.groups.filter((function(e){return e.id!==t.groupID})):void 0});case Vt:var d=t.result,f=e.groups.map((function(e){var i,n;return e.id!==(null===(i=d.group)||void 0===i?void 0:i.id)?e:Ft(Ft({},t.result.group),{},{fields:(null===(n=d.group)||void 0===n?void 0:n.fields)||e.fields||[]})}));return Ft(Ft({},e),{},{groups:f});case Wt:var p=e.groups.map((function(e){return e.name!==t.groupName?e:Ft(Ft({},e),{},{fields:t.fields})}));return Ft(Ft({},e),{},{groups:p});case zt:var m,g;if(null==t||null===(m=t.result)||void 0===m||null===(g=m.field)||void 0===g||!g.id)return e;var O=e.groups.map((function(e){var i;if(e.name!==t.groupName)return e;var n=t.index?t.index:(null===(i=e.fields)||void 0===i?void 0:i.length)||0,r=s(e.fields||[]);return r.splice(n,0,t.result.field),Ft(Ft({},e),{},{fields:r})}));return Ft(Ft({},e),{},{groups:O});case Lt:var v=e.groups.map((function(e){return e.id!==t.groupID?e:Ft(Ft({},e),{},{fields:e.fields.filter((function(e){return e.id!==t.fieldID}))})}));return Ft(Ft({},e),{},{groups:v});case Bt:var y=t.result,b=e.groups.map((function(e){if(e.name!==t.groupName)return e;var i=e.fields.map((function(e){return e.id===y.field.id?y.field:e}));return Ft(Ft({},e),{},{fields:i})}));return Ft(Ft({},e),{},{groups:b});default:return e}},global:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e},data:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e}});var Zt=function(e){return e},Gt=function(e){return Ye.getFrom(e)},Yt=function(e){return Ge.getFrom(e)},Kt=function(e){return Ze.getFrom(e)},Jt=function(e,t){return Ze.getFrom(e)[t]},ei=function(e){return Ke.getFrom(e)},ti=function(e,t){return ei(e).find((function(e){return t===e.name}))},ii=function(e,t){var i,n;return null!==(i=null===(n=ti(e,t))||void 0===n?void 0:n.fields)&&void 0!==i?i:[]},ni=function(e){return ei(e).reduce((function(e,t){return[].concat(s(e),s((null==t?void 0:t.fields)||[]))}),[])},ri=function(e){return et.getFrom(e)},oi=function(e){return tt.getFrom(e)},si=function(e,t){return tt.getFrom(e)[t]},li=function(e){return it.getFrom(e)},ai=function(e,t){return li(e).find((function(e){return e.name===t}))},ci=function(e,t){var i;return(null===(i=ai(e,t))||void 0===i?void 0:i.fields)||[]},hi=function(e){return li(e).reduce((function(e,t){return[].concat(s(e),s((null==t?void 0:t.fields)||[]))}),[])},ui=function(e){return nt.getFrom(e)},di=function(e){return rt.getFrom(e)},fi=function(e){return st.getFrom(e)},pi=function(e,t){return st.getFrom(e)[t]},mi=function(e){return lt.getFrom(e)},gi=function(e){return ct.getFrom(e)},Oi=function(e){return ht.getFrom(e)},vi=function(e){return dt.getFrom(e)},yi=function(e){return ut.getFrom(e)},bi=function(e){return ft.getFrom(e)},wi=function(e,t){return ft.getFrom(e)[t]},xi=function(e){return pt.getFrom(e)},Si=function(e,t){return pt.getFrom(e)[t]},ki=function(e){return mt.getFrom(e)},$i=function(e,t){return mt.getFrom(e)[t]},_i=function(e){return gt.getFrom(e)},Ti=function(e,t){return gt.getFrom(e)[t]},Qi=function(e){return Ot.getFrom(e)},Pi=function(e,t){return Ot.getFrom(e)[t]},Ai=function(e){return vt.getFrom(e)},Ci=function(e,t){return vt.getFrom(e)[t]},Ri=function(e){return yt.getFrom(e)},Ei=function(e,t){return yt.getFrom(e)[t]},Mi=function(e){return bt.getFrom(e)},Di=function(e,t){return bt.getFrom(e)[t]},qi=function(e){return{type:$t,activeTab:e}},Ni=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:_t,saveStatus:e,result:t}}},ji=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:Tt,deleteStatus:e,result:t}}},Vi=function(e,t){return function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:Qt,previousGroupName:t,saveStatus:e,result:i}}},Wi=function(e){return{type:Qt,previousGroupName:e,saveStatus:kt.NONE,result:{}}},zi=function(e,t){return function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:Pt,name:t,deleteStatus:e,result:i}}},Li=function(e,t){return function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:At,previousFieldName:t,saveStatus:e,result:i}}},Bi=function(e){return{type:At,previousFieldName:e,saveStatus:kt.NONE,result:{}}},Ii=function(e,t){return function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:Ct,name:t,deleteStatus:e,result:i}}},Xi=function(e){return{type:Rt,name:e}},Ui=function(e,t){return{type:Et,optionName:e,value:t}},Fi=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:Mt,options:e}},Hi=function(e){return Fi((null==e?void 0:e.pod)||{})},Zi=function(e){return{type:Dt,groups:e}},Gi=function(e,t){return{type:qt,oldIndex:e,newIndex:t}},Yi=function(e){return{type:Nt,result:e}},Ki=function(e){return{type:jt,groupID:e}},Ji=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:Vt,result:e}},en=function(e,t){return{type:Wt,groupName:e,fields:t}},tn=function(e,t){return function(i){return{type:zt,groupName:e,index:t,result:i}}},nn=function(e,t){return{type:Lt,groupID:e,fieldID:t}},rn=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:Bt,groupName:e,result:t}}},on=function(e,t){var i=(0,u.omit)(e,["id","label","name","object_type","storage","object_storage_type","type","_locale","groups"]),n={groups:(e.groups||[]).map((function(e){return{group_id:e.id,fields:(e.fields||[]).map((function(e){return e.id}))}}))},r={name:e.name||"",label:e.label||"",args:i,order:n};return{type:It,payload:{url:t?"/pods/v1/pods/".concat(t):"/pods/v1/pods",method:"POST",data:r,onSuccess:[Ni(kt.SAVE_SUCCESS),Hi],onFailure:Ni(kt.SAVE_ERROR),onStart:Ni(kt.SAVING)}}},sn=function(e){return{type:It,payload:{url:"/pods/v1/pods/".concat(e),method:"DELETE",onSuccess:ji(St.DELETE_SUCCESS),onFailure:ji(St.DELETE_ERROR),onStart:ji(St.DELETING)}}},ln=function(e,t,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5?arguments[5]:void 0;return{type:It,payload:{url:o?"/pods/v1/groups/".concat(o):"/pods/v1/groups",method:"POST",data:{pod_id:e.toString(),name:i,label:n,args:r},onSuccess:[Vi(kt.SAVE_SUCCESS,t),o?Ji:Yi],onFailure:Vi(kt.SAVE_ERROR,t),onStart:Vi(kt.SAVING,t)}}},an=function(e,t){return{type:It,payload:{url:"/pods/v1/groups/".concat(e),method:"DELETE",onSuccess:zi(St.DELETE_SUCCESS,t),onFailure:zi(St.DELETE_ERROR,t),onStart:zi(St.DELETING,t)}}},cn=function(e,t,i,n,r,o,s,l,a){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:null;return{type:It,payload:{url:a?"/pods/v1/fields/".concat(a):"/pods/v1/fields",method:"POST",data:{pod_id:e.toString(),group_id:t.toString(),name:r,label:o,type:s,args:l},onSuccess:[Li(kt.SAVE_SUCCESS,n),a?rn(i):tn(i,c)],onFailure:Li(kt.SAVE_ERROR,n),onStart:Li(kt.SAVING,n)}}},hn=function(e,t){return{type:It,payload:{url:"/pods/v1/fields/".concat(e),method:"DELETE",onSuccess:Ii(St.DELETE_SUCCESS,t),onFailure:Ii(St.DELETE_ERROR,t),onStart:Ii(St.DELETING,t)}}};function un(e,t,i,n,r,o,s){try{var l=e[o](s),a=l.value}catch(e){return void i(e)}l.done?t(a):Promise.resolve(a).then(n,r)}function dn(e){return function(){var t=this,i=arguments;return new Promise((function(n,r){var o=e.apply(t,i);function s(e){un(o,n,r,s,l,"next",e)}function l(e){un(o,n,r,s,l,"throw",e)}s(void 0)}))}}const fn=window.regeneratorRuntime;var pn=i.n(fn);const mn=window.wp.apiFetch;var gn=i.n(mn),On=It;const vn=function(e){var t=e.dispatch;return function(e){return function(){var i=dn(pn().mark((function i(n){var r,o,s,l,a,c,h,u;return pn().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(e(n),On===n.type){i.next=3;break}return i.abrupt("return");case 3:return r=n.payload,o=r.url,s=r.method,l=r.data,a=r.onSuccess,c=r.onFailure,(h=r.onStart)&&t(h()),i.prev=5,i.next=8,gn()({path:o,method:s,parse:!0,data:l});case 8:u=i.sent,Array.isArray(a)?a.forEach((function(e){return t(e(u))})):t(a(u)),i.next=15;break;case 12:i.prev=12,i.t0=i.catch(5),Array.isArray(c)?c.forEach((function(e){return t(e(i.t0))})):t(c(i.t0));case 15:case"end":return i.stop()}}),i,null,[[5,12]])})));return function(e){return i.apply(this,arguments)}}()}};function yn(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function bn(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?yn(Object(i),!0).forEach((function(t){n(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):yn(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var wn=function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return n.length?"".concat(n,"-").concat(e,"-").concat(t,"-").concat(i):"".concat(e,"-").concat(t,"-").concat(i)},xn=function(i,n){var r=Le({reducer:Ht,middleware:[vn],preloadedState:i}),o=Object.keys(e).reduce((function(t,i){return t[i]=function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return e[i].apply(e,[r.getState()].concat(n))},t}),{}),s=Object.keys(t).reduce((function(e,i){return e[i]=function(){return r.dispatch(t[i].apply(t,arguments))},e}),{}),l={name:n,instantiate:function(){return{getSelectors:function(){return o},getActions:function(){return s},subscribe:r.subscribe}}};return(0,f.register)(l),n},Sn=function(e){var t,i,n,r,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",l=(null==e||null===(t=e.global)||void 0===t||null===(i=t.pod)||void 0===i||null===(n=i.groups)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.name)||"",a=bn(bn({},Xt),{},{activeTab:!1===(null===(o=e.global)||void 0===o?void 0:o.showFields)?l:"manage-fields"}),c=bn(bn({},at.createTree(a)),{},{data:{fieldTypes:bn({},e.fieldTypes||{}),relatedObjects:bn({},e.relatedObjects||{})}},(0,u.omit)(e,["fieldTypes","relatedObjects"]));return xn(c,s)},kn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=bn(bn({data:{fieldTypes:bn({},e.fieldTypes||{}),relatedObjects:bn({},e.relatedObjects||{})}},(0,u.omit)(e,["fieldTypes","relatedObjects"])),{},{currentPod:t});return xn(n,i)},$n=i(5697),_n=i.n($n);const Tn=window.wp.compose;function Qn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,r,o=[],s=!0,l=!1;try{for(i=i.call(e);!(s=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);s=!0);}catch(e){l=!0,r=e}finally{try{s||null==i.return||i.return()}finally{if(l)throw r}}return o}}(e,t)||o(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.")}()}const Pn=window.wp.i18n;function An(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cn(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Rn(e,t,i){return t&&Cn(e.prototype,t),i&&Cn(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function En(e,t){return En=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},En(e,t)}function Mn(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&&En(e,t)}function Dn(e){return Dn="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},Dn(e)}function qn(e,t){if(t&&("object"===Dn(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 Nn(e){return Nn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Nn(e)}function jn(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 i,n=Nn(e);if(t){var r=Nn(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return qn(this,i)}}var Vn=function(e){Mn(i,e);var t=jn(i);function i(e){var n;return An(this,i),(n=t.call(this,e)).state={hasError:!1,error:null},n}return Rn(i,[{key:"componentDidCatch",value:function(e,t){console.warn("There was an error rendering this field.",e,t)}},{key:"render",value:function(){return this.state.hasError?a().createElement("div",{__self:this,__source:{fileName:"/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/components/field-wrapper/field-error-boundary.js",lineNumber:36,columnNumber:5}},"There was an error rendering the field."):a().createElement(a().Fragment,null,this.props.children)}}],[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0,error:e}}}]),i}(a().Component);Vn.propTypes={children:_n().element.isRequired};const Wn=Vn;var zn=i(4184),Ln=i.n(zn),Bn=i(3379),In=i.n(Bn),Xn=i(7795),Un=i.n(Xn),Fn=i(569),Hn=i.n(Fn),Zn=i(3565),Gn=i.n(Zn),Yn=i(9216),Kn=i.n(Yn),Jn=i(4589),er=i.n(Jn),tr=i(3418),ir={};ir.styleTagTransform=er(),ir.setAttributes=Gn(),ir.insert=Hn().bind(null,"head"),ir.domAPI=Un(),ir.insertStyleElement=Kn();In()(tr.Z,ir);tr.Z&&tr.Z.locals&&tr.Z.locals;var nr="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/components/field-wrapper/div-field-layout.js",rr=void 0,or=function(e){var t=e.fieldType,i=e.labelComponent,n=e.descriptionComponent,r=e.inputComponent,o=e.validationMessagesComponent,s=Ln()("pods-dfv-container","pods-dfv-container-".concat(t));return a().createElement("div",{className:"pods-field-option",__self:rr,__source:{fileName:nr,lineNumber:20,columnNumber:3}},i||void 0,a().createElement("div",{className:"pods-field-option__field",__self:rr,__source:{fileName:nr,lineNumber:23,columnNumber:4}},a().createElement("div",{className:s,__self:rr,__source:{fileName:nr,lineNumber:24,columnNumber:5}},r,o),n||void 0))};or.defaultProps={labelComponent:void 0,descriptionComponent:void 0},or.propTypes={fieldType:_n().string.isRequired,labelComponent:_n().element,descriptionComponent:_n().element,inputComponent:_n().element.isRequired,validationMessagesComponent:_n().element};const sr=or;var lr=i(1036),ar=i.n(lr);const cr=window.wp.autop;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:["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"],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},dr={allowedTags:["h1","h2","h3","h4","h5","h6","blockquote","p","ul","ol","nl","li","b","i","strong","em","strike","code","cite","hr","br","div","table","thead","caption","tbody","tr","th","td","pre","img","figure","figcaption","iframe","section"],allowedAttributes:{"*":["class","id","data-*","style"],iframe:["*"],img:["src","srcset","sizes","alt","width","height"]},selfClosing:["img","br","hr","area","base","basefont","input","link","meta"]},fr=i(3828),pr={};pr.styleTagTransform=er(),pr.setAttributes=Gn(),pr.insert=Hn().bind(null,"head"),pr.domAPI=Un(),pr.insertStyleElement=Kn();In()(fr.Z,pr);fr.Z&&fr.Z.locals&&fr.Z.locals;var mr=function(e){var t=e.description;return a().createElement("p",{className:"pods-field-description",dangerouslySetInnerHTML:{__html:(0,cr.removep)(ar()(t,dr))},__self:undefined,__source:{fileName:"/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/components/field-description.js",lineNumber:12,columnNumber:2}})};mr.propTypes={description:_n().string.isRequired};const gr=mr;function Or(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function vr(e){return e instanceof Or(e).Element||e instanceof Element}function yr(e){return e instanceof Or(e).HTMLElement||e instanceof HTMLElement}function br(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Or(e).ShadowRoot||e instanceof ShadowRoot)}var wr=Math.max,xr=Math.min,Sr=Math.round;function kr(e,t){void 0===t&&(t=!1);var i=e.getBoundingClientRect(),n=1,r=1;if(yr(e)&&t){var o=e.offsetHeight,s=e.offsetWidth;s>0&&(n=Sr(i.width)/s||1),o>0&&(r=Sr(i.height)/o||1)}return{width:i.width/n,height:i.height/r,top:i.top/r,right:i.right/n,bottom:i.bottom/r,left:i.left/n,x:i.left/n,y:i.top/r}}function $r(e){var t=Or(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function _r(e){return e?(e.nodeName||"").toLowerCase():null}function Tr(e){return((vr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Qr(e){return kr(Tr(e)).left+$r(e).scrollLeft}function Pr(e){return Or(e).getComputedStyle(e)}function Ar(e){var t=Pr(e),i=t.overflow,n=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+r+n)}function Cr(e,t,i){void 0===i&&(i=!1);var n=yr(t),r=yr(t)&&function(e){var t=e.getBoundingClientRect(),i=Sr(t.width)/e.offsetWidth||1,n=Sr(t.height)/e.offsetHeight||1;return 1!==i||1!==n}(t),o=Tr(t),s=kr(e,r),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(n||!n&&!i)&&(("body"!==_r(t)||Ar(o))&&(l=function(e){return e!==Or(e)&&yr(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:$r(e);var t}(t)),yr(t)?((a=kr(t,!0)).x+=t.clientLeft,a.y+=t.clientTop):o&&(a.x=Qr(o))),{x:s.left+l.scrollLeft-a.x,y:s.top+l.scrollTop-a.y,width:s.width,height:s.height}}function Rr(e){var t=kr(e),i=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function Er(e){return"html"===_r(e)?e:e.assignedSlot||e.parentNode||(br(e)?e.host:null)||Tr(e)}function Mr(e){return["html","body","#document"].indexOf(_r(e))>=0?e.ownerDocument.body:yr(e)&&Ar(e)?e:Mr(Er(e))}function Dr(e,t){var i;void 0===t&&(t=[]);var n=Mr(e),r=n===(null==(i=e.ownerDocument)?void 0:i.body),o=Or(n),s=r?[o].concat(o.visualViewport||[],Ar(n)?n:[]):n,l=t.concat(s);return r?l:l.concat(Dr(Er(s)))}function qr(e){return["table","td","th"].indexOf(_r(e))>=0}function Nr(e){return yr(e)&&"fixed"!==Pr(e).position?e.offsetParent:null}function jr(e){for(var t=Or(e),i=Nr(e);i&&qr(i)&&"static"===Pr(i).position;)i=Nr(i);return i&&("html"===_r(i)||"body"===_r(i)&&"static"===Pr(i).position)?t:i||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&yr(e)&&"fixed"===Pr(e).position)return null;var i=Er(e);for(br(i)&&(i=i.host);yr(i)&&["html","body"].indexOf(_r(i))<0;){var n=Pr(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(e)||t}var Vr="top",Wr="bottom",zr="right",Lr="left",Br="auto",Ir=[Vr,Wr,zr,Lr],Xr="start",Ur="end",Fr="viewport",Hr="popper",Zr=Ir.reduce((function(e,t){return e.concat([t+"-"+Xr,t+"-"+Ur])}),[]),Gr=[].concat(Ir,[Br]).reduce((function(e,t){return e.concat([t,t+"-"+Xr,t+"-"+Ur])}),[]),Yr=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Kr(e){var t=new Map,i=new Set,n=[];function r(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!i.has(e)){var n=t.get(e);n&&r(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){i.has(e.name)||r(e)})),n}function Jr(e){var t;return function(){return t||(t=new Promise((function(i){Promise.resolve().then((function(){t=void 0,i(e())}))}))),t}}var eo={placement:"bottom",modifiers:[],strategy:"absolute"};function to(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function io(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,n=void 0===i?[]:i,r=t.defaultOptions,o=void 0===r?eo:r;return function(e,t,i){void 0===i&&(i=o);var r={placement:"bottom",orderedModifiers:[],options:Object.assign({},eo,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],l=!1,a={state:r,setOptions:function(i){var l="function"==typeof i?i(r.options):i;c(),r.options=Object.assign({},o,r.options,l),r.scrollParents={reference:vr(e)?Dr(e):e.contextElement?Dr(e.contextElement):[],popper:Dr(t)};var h=function(e){var t=Kr(e);return Yr.reduce((function(e,i){return e.concat(t.filter((function(e){return e.phase===i})))}),[])}(function(e){var t=e.reduce((function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(n,r.options.modifiers)));return r.orderedModifiers=h.filter((function(e){return e.enabled})),r.orderedModifiers.forEach((function(e){var t=e.name,i=e.options,n=void 0===i?{}:i,o=e.effect;if("function"==typeof o){var l=o({state:r,name:t,instance:a,options:n}),c=function(){};s.push(l||c)}})),a.update()},forceUpdate:function(){if(!l){var e=r.elements,t=e.reference,i=e.popper;if(to(t,i)){r.rects={reference:Cr(t,jr(i),"fixed"===r.options.strategy),popper:Rr(i)},r.reset=!1,r.placement=r.options.placement,r.orderedModifiers.forEach((function(e){return r.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<r.orderedModifiers.length;n++)if(!0!==r.reset){var o=r.orderedModifiers[n],s=o.fn,c=o.options,h=void 0===c?{}:c,u=o.name;"function"==typeof s&&(r=s({state:r,options:h,name:u,instance:a})||r)}else r.reset=!1,n=-1}}},update:Jr((function(){return new Promise((function(e){a.forceUpdate(),e(r)}))})),destroy:function(){c(),l=!0}};if(!to(e,t))return a;function c(){s.forEach((function(e){return e()})),s=[]}return a.setOptions(i).then((function(e){!l&&i.onFirstUpdate&&i.onFirstUpdate(e)})),a}}var no={passive:!0};const ro={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,n=e.options,r=n.scroll,o=void 0===r||r,s=n.resize,l=void 0===s||s,a=Or(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach((function(e){e.addEventListener("scroll",i.update,no)})),l&&a.addEventListener("resize",i.update,no),function(){o&&c.forEach((function(e){e.removeEventListener("scroll",i.update,no)})),l&&a.removeEventListener("resize",i.update,no)}},data:{}};function oo(e){return e.split("-")[0]}function so(e){return e.split("-")[1]}function lo(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ao(e){var t,i=e.reference,n=e.element,r=e.placement,o=r?oo(r):null,s=r?so(r):null,l=i.x+i.width/2-n.width/2,a=i.y+i.height/2-n.height/2;switch(o){case Vr:t={x:l,y:i.y-n.height};break;case Wr:t={x:l,y:i.y+i.height};break;case zr:t={x:i.x+i.width,y:a};break;case Lr:t={x:i.x-n.width,y:a};break;default:t={x:i.x,y:i.y}}var c=o?lo(o):null;if(null!=c){var h="y"===c?"height":"width";switch(s){case Xr:t[c]=t[c]-(i[h]/2-n[h]/2);break;case Ur:t[c]=t[c]+(i[h]/2-n[h]/2)}}return t}const co={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=ao({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var ho={top:"auto",right:"auto",bottom:"auto",left:"auto"};function uo(e){var t,i=e.popper,n=e.popperRect,r=e.placement,o=e.variation,s=e.offsets,l=e.position,a=e.gpuAcceleration,c=e.adaptive,h=e.roundOffsets,u=e.isFixed,d=s.x,f=void 0===d?0:d,p=s.y,m=void 0===p?0:p,g="function"==typeof h?h({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var O=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),y=Lr,b=Vr,w=window;if(c){var x=jr(i),S="clientHeight",k="clientWidth";if(x===Or(i)&&"static"!==Pr(x=Tr(i)).position&&"absolute"===l&&(S="scrollHeight",k="scrollWidth"),r===Vr||(r===Lr||r===zr)&&o===Ur)b=Wr,m-=(u&&x===w&&w.visualViewport?w.visualViewport.height:x[S])-n.height,m*=a?1:-1;if(r===Lr||(r===Vr||r===Wr)&&o===Ur)y=zr,f-=(u&&x===w&&w.visualViewport?w.visualViewport.width:x[k])-n.width,f*=a?1:-1}var $,_=Object.assign({position:l},c&&ho),T=!0===h?function(e){var t=e.x,i=e.y,n=window.devicePixelRatio||1;return{x:Sr(t*n)/n||0,y:Sr(i*n)/n||0}}({x:f,y:m}):{x:f,y:m};return f=T.x,m=T.y,a?Object.assign({},_,(($={})[b]=v?"0":"",$[y]=O?"0":"",$.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",$)):Object.assign({},_,((t={})[b]=v?m+"px":"",t[y]=O?f+"px":"",t.transform="",t))}const fo={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,n=i.gpuAcceleration,r=void 0===n||n,o=i.adaptive,s=void 0===o||o,l=i.roundOffsets,a=void 0===l||l,c={placement:oo(t.placement),variation:so(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,uo(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,uo(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};const po={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},r=t.elements[e];yr(r)&&_r(r)&&(Object.assign(r.style,i),Object.keys(n).forEach((function(e){var t=n[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],r=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce((function(e,t){return e[t]="",e}),{});yr(n)&&_r(n)&&(Object.assign(n.style,o),Object.keys(r).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]};const mo={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,n=e.name,r=i.offset,o=void 0===r?[0,0]:r,s=Gr.reduce((function(e,i){return e[i]=function(e,t,i){var n=oo(e),r=[Lr,Vr].indexOf(n)>=0?-1:1,o="function"==typeof i?i(Object.assign({},t,{placement:e})):i,s=o[0],l=o[1];return s=s||0,l=(l||0)*r,[Lr,zr].indexOf(n)>=0?{x:l,y:s}:{x:s,y:l}}(i,t.rects,o),e}),{}),l=s[t.placement],a=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=s}};var go={left:"right",right:"left",bottom:"top",top:"bottom"};function Oo(e){return e.replace(/left|right|bottom|top/g,(function(e){return go[e]}))}var vo={start:"end",end:"start"};function yo(e){return e.replace(/start|end/g,(function(e){return vo[e]}))}function bo(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&br(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function wo(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function xo(e,t){return t===Fr?wo(function(e){var t=Or(e),i=Tr(e),n=t.visualViewport,r=i.clientWidth,o=i.clientHeight,s=0,l=0;return n&&(r=n.width,o=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=n.offsetLeft,l=n.offsetTop)),{width:r,height:o,x:s+Qr(e),y:l}}(e)):vr(t)?function(e){var t=kr(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):wo(function(e){var t,i=Tr(e),n=$r(e),r=null==(t=e.ownerDocument)?void 0:t.body,o=wr(i.scrollWidth,i.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=wr(i.scrollHeight,i.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-n.scrollLeft+Qr(e),a=-n.scrollTop;return"rtl"===Pr(r||i).direction&&(l+=wr(i.clientWidth,r?r.clientWidth:0)-o),{width:o,height:s,x:l,y:a}}(Tr(e)))}function So(e,t,i){var n="clippingParents"===t?function(e){var t=Dr(Er(e)),i=["absolute","fixed"].indexOf(Pr(e).position)>=0&&yr(e)?jr(e):e;return vr(i)?t.filter((function(e){return vr(e)&&bo(e,i)&&"body"!==_r(e)})):[]}(e):[].concat(t),r=[].concat(n,[i]),o=r[0],s=r.reduce((function(t,i){var n=xo(e,i);return t.top=wr(n.top,t.top),t.right=xr(n.right,t.right),t.bottom=xr(n.bottom,t.bottom),t.left=wr(n.left,t.left),t}),xo(e,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function ko(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function $o(e,t){return t.reduce((function(t,i){return t[i]=e,t}),{})}function _o(e,t){void 0===t&&(t={});var i=t,n=i.placement,r=void 0===n?e.placement:n,o=i.boundary,s=void 0===o?"clippingParents":o,l=i.rootBoundary,a=void 0===l?Fr:l,c=i.elementContext,h=void 0===c?Hr:c,u=i.altBoundary,d=void 0!==u&&u,f=i.padding,p=void 0===f?0:f,m=ko("number"!=typeof p?p:$o(p,Ir)),g=h===Hr?"reference":Hr,O=e.rects.popper,v=e.elements[d?g:h],y=So(vr(v)?v:v.contextElement||Tr(e.elements.popper),s,a),b=kr(e.elements.reference),w=ao({reference:b,element:O,strategy:"absolute",placement:r}),x=wo(Object.assign({},O,w)),S=h===Hr?x:b,k={top:y.top-S.top+m.top,bottom:S.bottom-y.bottom+m.bottom,left:y.left-S.left+m.left,right:S.right-y.right+m.right},$=e.modifiersData.offset;if(h===Hr&&$){var _=$[r];Object.keys(k).forEach((function(e){var t=[zr,Wr].indexOf(e)>=0?1:-1,i=[Vr,Wr].indexOf(e)>=0?"y":"x";k[e]+=_[i]*t}))}return k}const To={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var r=i.mainAxis,o=void 0===r||r,s=i.altAxis,l=void 0===s||s,a=i.fallbackPlacements,c=i.padding,h=i.boundary,u=i.rootBoundary,d=i.altBoundary,f=i.flipVariations,p=void 0===f||f,m=i.allowedAutoPlacements,g=t.options.placement,O=oo(g),v=a||(O===g||!p?[Oo(g)]:function(e){if(oo(e)===Br)return[];var t=Oo(e);return[yo(e),t,yo(t)]}(g)),y=[g].concat(v).reduce((function(e,i){return e.concat(oo(i)===Br?function(e,t){void 0===t&&(t={});var i=t,n=i.placement,r=i.boundary,o=i.rootBoundary,s=i.padding,l=i.flipVariations,a=i.allowedAutoPlacements,c=void 0===a?Gr:a,h=so(n),u=h?l?Zr:Zr.filter((function(e){return so(e)===h})):Ir,d=u.filter((function(e){return c.indexOf(e)>=0}));0===d.length&&(d=u);var f=d.reduce((function(t,i){return t[i]=_o(e,{placement:i,boundary:r,rootBoundary:o,padding:s})[oo(i)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:i,boundary:h,rootBoundary:u,padding:c,flipVariations:p,allowedAutoPlacements:m}):i)}),[]),b=t.rects.reference,w=t.rects.popper,x=new Map,S=!0,k=y[0],$=0;$<y.length;$++){var _=y[$],T=oo(_),Q=so(_)===Xr,P=[Vr,Wr].indexOf(T)>=0,A=P?"width":"height",C=_o(t,{placement:_,boundary:h,rootBoundary:u,altBoundary:d,padding:c}),R=P?Q?zr:Lr:Q?Wr:Vr;b[A]>w[A]&&(R=Oo(R));var E=Oo(R),M=[];if(o&&M.push(C[T]<=0),l&&M.push(C[R]<=0,C[E]<=0),M.every((function(e){return e}))){k=_,S=!1;break}x.set(_,M)}if(S)for(var D=function(e){var t=y.find((function(t){var i=x.get(t);if(i)return i.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},q=p?3:1;q>0;q--){if("break"===D(q))break}t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Qo(e,t,i){return wr(e,xr(t,i))}const Po={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name,r=i.mainAxis,o=void 0===r||r,s=i.altAxis,l=void 0!==s&&s,a=i.boundary,c=i.rootBoundary,h=i.altBoundary,u=i.padding,d=i.tether,f=void 0===d||d,p=i.tetherOffset,m=void 0===p?0:p,g=_o(t,{boundary:a,rootBoundary:c,padding:u,altBoundary:h}),O=oo(t.placement),v=so(t.placement),y=!v,b=lo(O),w="x"===b?"y":"x",x=t.modifiersData.popperOffsets,S=t.rects.reference,k=t.rects.popper,$="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,_="number"==typeof $?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Q={x:0,y:0};if(x){if(o){var P,A="y"===b?Vr:Lr,C="y"===b?Wr:zr,R="y"===b?"height":"width",E=x[b],M=E+g[A],D=E-g[C],q=f?-k[R]/2:0,N=v===Xr?S[R]:k[R],j=v===Xr?-k[R]:-S[R],V=t.elements.arrow,W=f&&V?Rr(V):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},L=z[A],B=z[C],I=Qo(0,S[R],W[R]),X=y?S[R]/2-q-I-L-_.mainAxis:N-I-L-_.mainAxis,U=y?-S[R]/2+q+I+B+_.mainAxis:j+I+B+_.mainAxis,F=t.elements.arrow&&jr(t.elements.arrow),H=F?"y"===b?F.clientTop||0:F.clientLeft||0:0,Z=null!=(P=null==T?void 0:T[b])?P:0,G=E+U-Z,Y=Qo(f?xr(M,E+X-Z-H):M,E,f?wr(D,G):D);x[b]=Y,Q[b]=Y-E}if(l){var K,J="x"===b?Vr:Lr,ee="x"===b?Wr:zr,te=x[w],ie="y"===w?"height":"width",ne=te+g[J],re=te-g[ee],oe=-1!==[Vr,Lr].indexOf(O),se=null!=(K=null==T?void 0:T[w])?K:0,le=oe?ne:te-S[ie]-k[ie]-se+_.altAxis,ae=oe?te+S[ie]+k[ie]-se-_.altAxis:re,ce=f&&oe?function(e,t,i){var n=Qo(e,t,i);return n>i?i:n}(le,te,ae):Qo(f?le:ne,te,f?ae:re);x[w]=ce,Q[w]=ce-te}t.modifiersData[n]=Q}},requiresIfExists:["offset"]};const Ao={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,n=e.name,r=e.options,o=i.elements.arrow,s=i.modifiersData.popperOffsets,l=oo(i.placement),a=lo(l),c=[Lr,zr].indexOf(l)>=0?"height":"width";if(o&&s){var h=function(e,t){return ko("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:$o(e,Ir))}(r.padding,i),u=Rr(o),d="y"===a?Vr:Lr,f="y"===a?Wr:zr,p=i.rects.reference[c]+i.rects.reference[a]-s[a]-i.rects.popper[c],m=s[a]-i.rects.reference[a],g=jr(o),O=g?"y"===a?g.clientHeight||0:g.clientWidth||0:0,v=p/2-m/2,y=h[d],b=O-u[c]-h[f],w=O/2-u[c]/2+v,x=Qo(y,w,b),S=a;i.modifiersData[n]=((t={})[S]=x,t.centerOffset=x-w,t)}},effect:function(e){var t=e.state,i=e.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&bo(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Co(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function Ro(e){return[Vr,zr,Wr,Lr].some((function(t){return e[t]>=0}))}const Eo={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,n=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,s=_o(t,{elementContext:"reference"}),l=_o(t,{altBoundary:!0}),a=Co(s,n),c=Co(l,r,o),h=Ro(a),u=Ro(c);t.modifiersData[i]={referenceClippingOffsets:a,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":u})}};var Mo=io({defaultModifiers:[ro,co,fo,po,mo,To,Po,Ao,Eo]}),Do="tippy-content",qo="tippy-backdrop",No="tippy-arrow",jo="tippy-svg-arrow",Vo={passive:!0,capture:!0},Wo=function(){return document.body};function zo(e,t,i){if(Array.isArray(e)){var n=e[t];return null==n?Array.isArray(i)?i[t]:i:n}return e}function Lo(e,t){var i={}.toString.call(e);return 0===i.indexOf("[object")&&i.indexOf(t+"]")>-1}function Bo(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Io(e,t){return 0===t?e:function(n){clearTimeout(i),i=setTimeout((function(){e(n)}),t)};var i}function Xo(e){return[].concat(e)}function Uo(e,t){-1===e.indexOf(t)&&e.push(t)}function Fo(e){return e.split("-")[0]}function Ho(e){return[].slice.call(e)}function Zo(e){return Object.keys(e).reduce((function(t,i){return void 0!==e[i]&&(t[i]=e[i]),t}),{})}function Go(){return document.createElement("div")}function Yo(e){return["Element","Fragment"].some((function(t){return Lo(e,t)}))}function Ko(e){return Lo(e,"MouseEvent")}function Jo(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function es(e){return Yo(e)?[e]:function(e){return Lo(e,"NodeList")}(e)?Ho(e):Array.isArray(e)?e:Ho(document.querySelectorAll(e))}function ts(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function is(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function ns(e){var t,i=Xo(e)[0];return null!=i&&null!=(t=i.ownerDocument)&&t.body?i.ownerDocument:document}function rs(e,t,i){var n=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[n](t,i)}))}function os(e,t){for(var i=t;i;){var n;if(e.contains(i))return!0;i=null==i.getRootNode||null==(n=i.getRootNode())?void 0:n.host}return!1}var ss={isTouch:!1},ls=0;function as(){ss.isTouch||(ss.isTouch=!0,window.performance&&document.addEventListener("mousemove",cs))}function cs(){var e=performance.now();e-ls<20&&(ss.isTouch=!1,document.removeEventListener("mousemove",cs)),ls=e}function hs(){var e=document.activeElement;if(Jo(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var us=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var ds={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},fs=Object.assign({appendTo:Wo,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},ds,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),ps=Object.keys(fs);function ms(e){var t=(e.plugins||[]).reduce((function(t,i){var n,r=i.name,o=i.defaultValue;r&&(t[r]=void 0!==e[r]?e[r]:null!=(n=fs[r])?n:o);return t}),{});return Object.assign({},e,t)}function gs(e,t){var i=Object.assign({},t,{content:Bo(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(ms(Object.assign({},fs,{plugins:t}))):ps).reduce((function(t,i){var n=(e.getAttribute("data-tippy-"+i)||"").trim();if(!n)return t;if("content"===i)t[i]=n;else try{t[i]=JSON.parse(n)}catch(e){t[i]=n}return t}),{})}(e,t.plugins));return i.aria=Object.assign({},fs.aria,i.aria),i.aria={expanded:"auto"===i.aria.expanded?t.interactive:i.aria.expanded,content:"auto"===i.aria.content?t.interactive?null:"describedby":i.aria.content},i}function Os(e,t){e.innerHTML=t}function vs(e){var t=Go();return!0===e?t.className=No:(t.className=jo,Yo(e)?t.appendChild(e):Os(t,e)),t}function ys(e,t){Yo(t.content)?(Os(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Os(e,t.content):e.textContent=t.content)}function bs(e){var t=e.firstElementChild,i=Ho(t.children);return{box:t,content:i.find((function(e){return e.classList.contains(Do)})),arrow:i.find((function(e){return e.classList.contains(No)||e.classList.contains(jo)})),backdrop:i.find((function(e){return e.classList.contains(qo)}))}}function ws(e){var t=Go(),i=Go();i.className="tippy-box",i.setAttribute("data-state","hidden"),i.setAttribute("tabindex","-1");var n=Go();function r(i,n){var r=bs(t),o=r.box,s=r.content,l=r.arrow;n.theme?o.setAttribute("data-theme",n.theme):o.removeAttribute("data-theme"),"string"==typeof n.animation?o.setAttribute("data-animation",n.animation):o.removeAttribute("data-animation"),n.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof n.maxWidth?n.maxWidth+"px":n.maxWidth,n.role?o.setAttribute("role",n.role):o.removeAttribute("role"),i.content===n.content&&i.allowHTML===n.allowHTML||ys(s,e.props),n.arrow?l?i.arrow!==n.arrow&&(o.removeChild(l),o.appendChild(vs(n.arrow))):o.appendChild(vs(n.arrow)):l&&o.removeChild(l)}return n.className=Do,n.setAttribute("data-state","hidden"),ys(n,e.props),t.appendChild(i),i.appendChild(n),r(e.props,e.props),{popper:t,onUpdate:r}}ws.$$tippy=!0;var xs=1,Ss=[],ks=[];function $s(e,t){var i,n,r,o,s,l,a,c,h=gs(e,Object.assign({},fs,ms(Zo(t)))),u=!1,d=!1,f=!1,p=!1,m=[],g=Io(F,h.interactiveDebounce),O=xs++,v=(c=h.plugins).filter((function(e,t){return c.indexOf(e)===t})),y={id:O,reference:e,popper:Go(),popperInstance:null,props:h,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:v,clearDelayTimeouts:function(){clearTimeout(i),clearTimeout(n),cancelAnimationFrame(r)},setProps:function(t){0;if(y.state.isDestroyed)return;E("onBeforeUpdate",[y,t]),X();var i=y.props,n=gs(e,Object.assign({},i,Zo(t),{ignoreAttributes:!0}));y.props=n,I(),i.interactiveDebounce!==n.interactiveDebounce&&(q(),g=Io(F,n.interactiveDebounce));i.triggerTarget&&!n.triggerTarget?Xo(i.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):n.triggerTarget&&e.removeAttribute("aria-expanded");D(),R(),x&&x(i,n);y.popperInstance&&(Y(),J().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));E("onAfterUpdate",[y,t])},setContent:function(e){y.setProps({content:e})},show:function(){0;var e=y.state.isVisible,t=y.state.isDestroyed,i=!y.state.isEnabled,n=ss.isTouch&&!y.props.touch,r=zo(y.props.duration,0,fs.duration);if(e||t||i||n)return;if(Q().hasAttribute("disabled"))return;if(E("onShow",[y],!1),!1===y.props.onShow(y))return;y.state.isVisible=!0,T()&&(w.style.visibility="visible");R(),W(),y.state.isMounted||(w.style.transition="none");if(T()){var o=A(),s=o.box,a=o.content;ts([s,a],0)}l=function(){var e;if(y.state.isVisible&&!p){if(p=!0,w.offsetHeight,w.style.transition=y.props.moveTransition,T()&&y.props.animation){var t=A(),i=t.box,n=t.content;ts([i,n],r),is([i,n],"visible")}M(),D(),Uo(ks,y),null==(e=y.popperInstance)||e.forceUpdate(),E("onMount",[y]),y.props.animation&&T()&&function(e,t){L(e,t)}(r,(function(){y.state.isShown=!0,E("onShown",[y])}))}},function(){var e,t=y.props.appendTo,i=Q();e=y.props.interactive&&t===Wo||"parent"===t?i.parentNode:Bo(t,[i]);e.contains(w)||e.appendChild(w);y.state.isMounted=!0,Y(),!1}()},hide:function(){0;var e=!y.state.isVisible,t=y.state.isDestroyed,i=!y.state.isEnabled,n=zo(y.props.duration,1,fs.duration);if(e||t||i)return;if(E("onHide",[y],!1),!1===y.props.onHide(y))return;y.state.isVisible=!1,y.state.isShown=!1,p=!1,u=!1,T()&&(w.style.visibility="hidden");if(q(),z(),R(!0),T()){var r=A(),o=r.box,s=r.content;y.props.animation&&(ts([o,s],n),is([o,s],"hidden"))}M(),D(),y.props.animation?T()&&function(e,t){L(e,(function(){!y.state.isVisible&&w.parentNode&&w.parentNode.contains(w)&&t()}))}(n,y.unmount):y.unmount()},hideWithInteractivity:function(e){0;P().addEventListener("mousemove",g),Uo(Ss,g),g(e)},enable:function(){y.state.isEnabled=!0},disable:function(){y.hide(),y.state.isEnabled=!1},unmount:function(){0;y.state.isVisible&&y.hide();if(!y.state.isMounted)return;K(),J().forEach((function(e){e._tippy.unmount()})),w.parentNode&&w.parentNode.removeChild(w);ks=ks.filter((function(e){return e!==y})),y.state.isMounted=!1,E("onHidden",[y])},destroy:function(){0;if(y.state.isDestroyed)return;y.clearDelayTimeouts(),y.unmount(),X(),delete e._tippy,y.state.isDestroyed=!0,E("onDestroy",[y])}};if(!h.render)return y;var b=h.render(y),w=b.popper,x=b.onUpdate;w.setAttribute("data-tippy-root",""),w.id="tippy-"+y.id,y.popper=w,e._tippy=y,w._tippy=y;var S=v.map((function(e){return e.fn(y)})),k=e.hasAttribute("aria-expanded");return I(),D(),R(),E("onCreate",[y]),h.showOnCreate&&ee(),w.addEventListener("mouseenter",(function(){y.props.interactive&&y.state.isVisible&&y.clearDelayTimeouts()})),w.addEventListener("mouseleave",(function(){y.props.interactive&&y.props.trigger.indexOf("mouseenter")>=0&&P().addEventListener("mousemove",g)})),y;function $(){var e=y.props.touch;return Array.isArray(e)?e:[e,0]}function _(){return"hold"===$()[0]}function T(){var e;return!(null==(e=y.props.render)||!e.$$tippy)}function Q(){return a||e}function P(){var e=Q().parentNode;return e?ns(e):document}function A(){return bs(w)}function C(e){return y.state.isMounted&&!y.state.isVisible||ss.isTouch||o&&"focus"===o.type?0:zo(y.props.delay,e?0:1,fs.delay)}function R(e){void 0===e&&(e=!1),w.style.pointerEvents=y.props.interactive&&!e?"":"none",w.style.zIndex=""+y.props.zIndex}function E(e,t,i){var n;(void 0===i&&(i=!0),S.forEach((function(i){i[e]&&i[e].apply(i,t)})),i)&&(n=y.props)[e].apply(n,t)}function M(){var t=y.props.aria;if(t.content){var i="aria-"+t.content,n=w.id;Xo(y.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(i);if(y.state.isVisible)e.setAttribute(i,t?t+" "+n:n);else{var r=t&&t.replace(n,"").trim();r?e.setAttribute(i,r):e.removeAttribute(i)}}))}}function D(){!k&&y.props.aria.expanded&&Xo(y.props.triggerTarget||e).forEach((function(e){y.props.interactive?e.setAttribute("aria-expanded",y.state.isVisible&&e===Q()?"true":"false"):e.removeAttribute("aria-expanded")}))}function q(){P().removeEventListener("mousemove",g),Ss=Ss.filter((function(e){return e!==g}))}function N(t){if(!ss.isTouch||!f&&"mousedown"!==t.type){var i=t.composedPath&&t.composedPath()[0]||t.target;if(!y.props.interactive||!os(w,i)){if(Xo(y.props.triggerTarget||e).some((function(e){return os(e,i)}))){if(ss.isTouch)return;if(y.state.isVisible&&y.props.trigger.indexOf("click")>=0)return}else E("onClickOutside",[y,t]);!0===y.props.hideOnClick&&(y.clearDelayTimeouts(),y.hide(),d=!0,setTimeout((function(){d=!1})),y.state.isMounted||z())}}}function j(){f=!0}function V(){f=!1}function W(){var e=P();e.addEventListener("mousedown",N,!0),e.addEventListener("touchend",N,Vo),e.addEventListener("touchstart",V,Vo),e.addEventListener("touchmove",j,Vo)}function z(){var e=P();e.removeEventListener("mousedown",N,!0),e.removeEventListener("touchend",N,Vo),e.removeEventListener("touchstart",V,Vo),e.removeEventListener("touchmove",j,Vo)}function L(e,t){var i=A().box;function n(e){e.target===i&&(rs(i,"remove",n),t())}if(0===e)return t();rs(i,"remove",s),rs(i,"add",n),s=n}function B(t,i,n){void 0===n&&(n=!1),Xo(y.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,i,n),m.push({node:e,eventType:t,handler:i,options:n})}))}function I(){var e;_()&&(B("touchstart",U,{passive:!0}),B("touchend",H,{passive:!0})),(e=y.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(B(e,U),e){case"mouseenter":B("mouseleave",H);break;case"focus":B(us?"focusout":"blur",Z);break;case"focusin":B("focusout",Z)}}))}function X(){m.forEach((function(e){var t=e.node,i=e.eventType,n=e.handler,r=e.options;t.removeEventListener(i,n,r)})),m=[]}function U(e){var t,i=!1;if(y.state.isEnabled&&!G(e)&&!d){var n="focus"===(null==(t=o)?void 0:t.type);o=e,a=e.currentTarget,D(),!y.state.isVisible&&Ko(e)&&Ss.forEach((function(t){return t(e)})),"click"===e.type&&(y.props.trigger.indexOf("mouseenter")<0||u)&&!1!==y.props.hideOnClick&&y.state.isVisible?i=!0:ee(e),"click"===e.type&&(u=!i),i&&!n&&te(e)}}function F(e){var t=e.target,i=Q().contains(t)||w.contains(t);if("mousemove"!==e.type||!i){var n=J().concat(w).map((function(e){var t,i=null==(t=e._tippy.popperInstance)?void 0:t.state;return i?{popperRect:e.getBoundingClientRect(),popperState:i,props:h}:null})).filter(Boolean);(function(e,t){var i=t.clientX,n=t.clientY;return e.every((function(e){var t=e.popperRect,r=e.popperState,o=e.props.interactiveBorder,s=Fo(r.placement),l=r.modifiersData.offset;if(!l)return!0;var a="bottom"===s?l.top.y:0,c="top"===s?l.bottom.y:0,h="right"===s?l.left.x:0,u="left"===s?l.right.x:0,d=t.top-n+a>o,f=n-t.bottom-c>o,p=t.left-i+h>o,m=i-t.right-u>o;return d||f||p||m}))})(n,e)&&(q(),te(e))}}function H(e){G(e)||y.props.trigger.indexOf("click")>=0&&u||(y.props.interactive?y.hideWithInteractivity(e):te(e))}function Z(e){y.props.trigger.indexOf("focusin")<0&&e.target!==Q()||y.props.interactive&&e.relatedTarget&&w.contains(e.relatedTarget)||te(e)}function G(e){return!!ss.isTouch&&_()!==e.type.indexOf("touch")>=0}function Y(){K();var t=y.props,i=t.popperOptions,n=t.placement,r=t.offset,o=t.getReferenceClientRect,s=t.moveTransition,a=T()?bs(w).arrow:null,c=o?{getBoundingClientRect:o,contextElement:o.contextElement||Q()}:e,h={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(T()){var i=A().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?i.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?i.setAttribute("data-"+e,""):i.removeAttribute("data-"+e)})),t.attributes.popper={}}}},u=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},h];T()&&a&&u.push({name:"arrow",options:{element:a,padding:3}}),u.push.apply(u,(null==i?void 0:i.modifiers)||[]),y.popperInstance=Mo(c,w,Object.assign({},i,{placement:n,onFirstUpdate:l,modifiers:u}))}function K(){y.popperInstance&&(y.popperInstance.destroy(),y.popperInstance=null)}function J(){return Ho(w.querySelectorAll("[data-tippy-root]"))}function ee(e){y.clearDelayTimeouts(),e&&E("onTrigger",[y,e]),W();var t=C(!0),n=$(),r=n[0],o=n[1];ss.isTouch&&"hold"===r&&o&&(t=o),t?i=setTimeout((function(){y.show()}),t):y.show()}function te(e){if(y.clearDelayTimeouts(),E("onUntrigger",[y,e]),y.state.isVisible){if(!(y.props.trigger.indexOf("mouseenter")>=0&&y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&u)){var t=C(!1);t?n=setTimeout((function(){y.state.isVisible&&y.hide()}),t):r=requestAnimationFrame((function(){y.hide()}))}}else z()}}function _s(e,t){void 0===t&&(t={});var i=fs.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",as,Vo),window.addEventListener("blur",hs);var n=Object.assign({},t,{plugins:i}),r=es(e).reduce((function(e,t){var i=t&&$s(t,n);return i&&e.push(i),e}),[]);return Yo(e)?r[0]:r}_s.defaultProps=fs,_s.setDefaultProps=function(e){Object.keys(e).forEach((function(t){fs[t]=e[t]}))},_s.currentInput=ss;Object.assign({},po,{effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow)}});_s.setDefaultProps({render:ws});const Ts=_s;function Qs(e,t){if(null==e)return{};var i,n,r={},o=Object.keys(e);for(n=0;n<o.length;n++)i=o[n],t.indexOf(i)>=0||(r[i]=e[i]);return r}var Ps="undefined"!=typeof window&&"undefined"!=typeof document;function As(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function Cs(){return Ps&&document.createElement("div")}function Rs(e,t){if(e===t)return!0;if("object"==typeof e&&null!=e&&"object"==typeof t&&null!=t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var i in e){if(!t.hasOwnProperty(i))return!1;if(!Rs(e[i],t[i]))return!1}return!0}return!1}function Es(e){var t=[];return e.forEach((function(e){t.find((function(t){return Rs(e,t)}))||t.push(e)})),t}function Ms(e,t){var i,n;return Object.assign({},t,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:Es([].concat((null==(i=e.popperOptions)?void 0:i.modifiers)||[],(null==(n=t.popperOptions)?void 0:n.modifiers)||[]))})})}var Ds=Ps?l.useLayoutEffect:l.useEffect;function qs(e){var t=(0,l.useRef)();return t.current||(t.current="function"==typeof e?e():e),t.current}function Ns(e,t,i){i.split(/\s+/).forEach((function(i){i&&e.classList[t](i)}))}var js={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,i=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function n(){e.props.className&&!i()||Ns(t,"add",e.props.className)}return{onCreate:n,onBeforeUpdate:function(){i()&&Ns(t,"remove",e.props.className)},onAfterUpdate:n}}};function Vs(e){return function(t){var i=t.children,n=t.content,r=t.visible,o=t.singleton,s=t.render,h=t.reference,u=t.disabled,d=void 0!==u&&u,f=t.ignoreAttributes,p=void 0===f||f,m=(t.__source,t.__self,Qs(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),g=void 0!==r,O=void 0!==o,v=(0,l.useState)(!1),y=v[0],b=v[1],w=(0,l.useState)({}),x=w[0],S=w[1],k=(0,l.useState)(),$=k[0],_=k[1],T=qs((function(){return{container:Cs(),renders:1}})),Q=Object.assign({ignoreAttributes:p},m,{content:T.container});g&&(Q.trigger="manual",Q.hideOnClick=!1),O&&(d=!0);var P=Q,A=Q.plugins||[];s&&(P=Object.assign({},Q,{plugins:O&&null!=o.data?[].concat(A,[{fn:function(){return{onTrigger:function(e,t){var i=o.data.children.find((function(e){return e.instance.reference===t.currentTarget}));e.state.$$activeSingletonInstance=i.instance,_(i.content)}}}}]):A,render:function(){return{popper:T.container}}}));var C=[h].concat(i?[i.type]:[]);return Ds((function(){var t=h;h&&h.hasOwnProperty("current")&&(t=h.current);var i=e(t||T.ref||Cs(),Object.assign({},P,{plugins:[js].concat(Q.plugins||[])}));return T.instance=i,d&&i.disable(),r&&i.show(),O&&o.hook({instance:i,content:n,props:P,setSingletonContent:_}),b(!0),function(){i.destroy(),null==o||o.cleanup(i)}}),C),Ds((function(){var e;if(1!==T.renders){var t=T.instance;t.setProps(Ms(t.props,P)),null==(e=t.popperInstance)||e.forceUpdate(),d?t.disable():t.enable(),g&&(r?t.show():t.hide()),O&&o.hook({instance:t,content:n,props:P,setSingletonContent:_})}else T.renders++})),Ds((function(){var e;if(s){var t=T.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter((function(e){return"$$tippyReact"!==e.name})),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,i=e.state,n=null==(t=i.modifiersData)?void 0:t.hide;x.placement===i.placement&&x.referenceHidden===(null==n?void 0:n.isReferenceHidden)&&x.escaped===(null==n?void 0:n.hasPopperEscaped)||S({placement:i.placement,referenceHidden:null==n?void 0:n.isReferenceHidden,escaped:null==n?void 0:n.hasPopperEscaped}),i.attributes.popper={}}}])})})}}),[x.placement,x.referenceHidden,x.escaped].concat(C)),a().createElement(a().Fragment,null,i?(0,l.cloneElement)(i,{ref:function(e){T.ref=e,As(i.ref,e)}}):null,y&&(0,c.createPortal)(s?s(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(x),$,T.instance):n,T.container))}}var Ws=function(e,t){return(0,l.forwardRef)((function(i,n){var r=i.children,o=Qs(i,["children"]);return a().createElement(e,Object.assign({},t,o),r?(0,l.cloneElement)(r,{ref:function(e){As(n,e),As(r.ref,e)}}):null)}))};const zs=Ws(Vs(Ts)),Ls=window.wp.components;var Bs=i(110),Is={};Is.styleTagTransform=er(),Is.setAttributes=Gn(),Is.insert=Hn().bind(null,"head"),Is.domAPI=Un(),Is.insertStyleElement=Kn();In()(Bs.Z,Is);Bs.Z&&Bs.Z.locals&&Bs.Z.locals;var Xs=i(6478),Us={};Us.styleTagTransform=er(),Us.setAttributes=Gn(),Us.insert=Hn().bind(null,"head"),Us.domAPI=Un(),Us.insertStyleElement=Kn();In()(Xs.Z,Us);Xs.Z&&Xs.Z.locals&&Xs.Z.locals;var Fs="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/components/help-tooltip.js",Hs=void 0,Zs=function(e){var t=e.helpText,i=e.helpLink;return a().createElement(zs,{className:"pods-help-tooltip",trigger:"click",zIndex:100001,interactive:!0,content:i?a().createElement("a",{href:i,target:"_blank",rel:"noreferrer",__self:Hs,__source:{fileName:Fs,lineNumber:24,columnNumber:5}},a().createElement("span",{dangerouslySetInnerHTML:{__html:ar()(t,ur)},__self:Hs,__source:{fileName:Fs,lineNumber:25,columnNumber:6}}),a().createElement(Ls.Dashicon,{icon:"external",__self:Hs,__source:{fileName:Fs,lineNumber:30,columnNumber:6}})):a().createElement("span",{dangerouslySetInnerHTML:{__html:ar()(t,ur)},__self:Hs,__source:{fileName:Fs,lineNumber:33,columnNumber:5}}),__self:Hs,__source:{fileName:Fs,lineNumber:17,columnNumber:3}},a().createElement("span",{tabIndex:"0",role:"button",className:"pods-help-tooltip__icon",__self:Hs,__source:{fileName:Fs,lineNumber:40,columnNumber:4}},a().createElement(Ls.Dashicon,{icon:"editor-help",__self:Hs,__source:{fileName:Fs,lineNumber:45,columnNumber:5}})))};Zs.propTypes={helpText:_n().string.isRequired,helpLink:_n().string};const Gs=Zs;var Ys=i(7007),Ks={};Ks.styleTagTransform=er(),Ks.setAttributes=Gn(),Ks.insert=Hn().bind(null,"head"),Ks.domAPI=Un(),Ks.insertStyleElement=Kn();In()(Ys.Z,Ks);Ys.Z&&Ys.Z.locals&&Ys.Z.locals;var Js="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/components/field-label.js",el=void 0,tl=function(e){var t=e.label,i=e.required,n=e.htmlFor,r=e.helpTextString,o=e.helpLink;return a().createElement("div",{className:"pods-field-label pods-field-label-".concat(name),__self:el,__source:{fileName:Js,lineNumber:20,columnNumber:2}},a().createElement("label",{className:"pods-field-label__label",htmlFor:n,__self:el,__source:{fileName:Js,lineNumber:21,columnNumber:3}},a().createElement("span",{dangerouslySetInnerHTML:{__html:(0,cr.removep)(ar()(t,dr))},__self:el,__source:{fileName:Js,lineNumber:25,columnNumber:4}}),i&&a().createElement("span",{className:"pods-field-label__required",__self:el,__source:{fileName:Js,lineNumber:30,columnNumber:20}}," ","*")),r&&a().createElement("span",{className:"pods-field-label__tooltip-wrapper",__self:el,__source:{fileName:Js,lineNumber:34,columnNumber:4}}," ",a().createElement(Gs,{helpText:r,helpLink:o,__self:el,__source:{fileName:Js,lineNumber:36,columnNumber:5}})))};tl.defaultProps={required:!1,helpTextString:null,helpLink:null},tl.propTypes={label:_n().string.isRequired,htmlFor:_n().string.isRequired,helpTextString:_n().string,helpLink:_n().string};const il=tl;var nl="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/components/validation-messages.js",rl=void 0,ol=function(e){var t=e.messages;return t.length?a().createElement("div",{className:"pods-validation-messages",__self:rl,__source:{fileName:nl,lineNumber:12,columnNumber:3}},t.map((function(e){return a().createElement(Ls.Notice,{key:"message",status:"error",isDismissible:!1,politeness:"polite",__self:rl,__source:{fileName:nl,lineNumber:14,columnNumber:5}},e)}))):null};ol.propTypes={messages:_n().arrayOf(_n().string).isRequired};const sl=ol;var ll=i(6292),al=i.n(ll),cl=function(e){return function(t,i){var n=e.toString().split(t);return n[0]=n[0].replace(/\B(?=(\d{3})+(?!\d))/g,i),n.join(t)}},hl=function(e){return e.toString().includes("e")},ul=function(e,t){if(!t)return"0";var i=Qn(e.toString().replace(".","").split("e-"),2),n=i[0],r=function(e,t){return Number(e)+2-t}(i[1],n.length),o="".concat("0.".padEnd(r+2,"0")).concat(n);return t?o.substring(0,2)+o.substring(2,t+2):o},dl=function(e,t,i,n){return function(e){return e.toString().includes("-")}(e)?ul(e,t):cl(BigInt(e))(i,n)};function fl(e,t,i,n){if(!isFinite(e))throw new TypeError("number is not finite number");var r="auto"===t?(""+parseFloat(e)).replace(".",i):parseFloat(e).toFixed(t).replace(".",i);return cl(r)(i,n)}const pl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:",";if(null===e||"number"!=typeof e)throw new TypeError("number is not valid");return hl(e)?dl(e,t,i,n):fl(e,t,i,n)};var ml=function(e){var t,i,n,r=((null===(t=window)||void 0===t||null===(i=t.podsDFVConfig)||void 0===i||null===(n=i.wp_locale)||void 0===n?void 0:n.number_format)||{}).thousands_sep;switch(e){case"9,999.99":r=",";break;case"9999.99":case"9999,99":r="";break;case"9.999,99":r=".";break;case"9'999.99":r="'";break;case"9 999,99":r=" "}return r},gl=function(e){var t,i,n,r=((null===(t=window)||void 0===t||null===(i=t.podsDFVConfig)||void 0===i||null===(n=i.wp_locale)||void 0===n?void 0:n.number_format)||{}).decimal_point;switch(e){case"9,999.99":case"9999.99":case"9'999.99":r=".";break;case"9.999,99":case"9999,99":case"9 999,99":r=","}return r},Ol=function(e,t){if(""===e)return 0;if("number"==typeof e)return e;var i=ml(t),n=gl(t);return parseFloat(e.split(i).join("").split(n).join("."))},vl=function(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(""===e||null==e)return"0";var n=ml(t),r=gl(t),o="string"==typeof e?Ol(e,t):e,s=isNaN(o)?void 0:pl(o,"auto",r,n);if(!i||void 0===s)return s;var l=parseInt(s.split(r).pop(),10);if(0!==l)return s;var a=-1*(parseInt((""+l).length,10)+1);return s.slice(0,a)},yl=function(e){return null!=e&&""!==e&&(!Array.isArray(e)||e.length>0)},bl=function(e,t){return function(i){if((t&&Array.isArray(i)?i:[i]).some(yl))return!0;throw(0,Pn.sprintf)((0,Pn.__)("%s is required.","pods"),e)}},wl=function(e,t,i){return function(n){var r=vl(n,i,!1);if(!r)return!0;var o=ml(i),s=gl(i),l=r.split(s),a=l[0].replace(new RegExp(o,"g"),""),c=parseInt(e,10)||-1;if(-1!==c&&a.length>c)throw(0,Pn.__)("Exceeded maximum digit length.","pods");var h=l[1]||"",u=parseInt(t,10)||-1;if(-1!==u&&h.length>u)throw(0,Pn.__)("Exceeded maximum decimal length.","pods");return!0}},xl=function(e,t){return function(i){if(void 0===e||!e.length)return!0;var n=al()("".concat(e[0],"-01-01")),r=al()("".concat(e[e.length-1],"-12-31")),o=al()(i,t);if(!1===o.isValid())throw(0,Pn.__)("Invalid date.","pods");if(!o.isSameOrAfter(n))throw(0,Pn.__)("Date occurs before the valid range.","pods");if(!o.isSameOrBefore(r))throw(0,Pn.__)("Date occurs after the valid range.","pods");return!0}},Sl=function(e){return!!+e};const kl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";if(null==e)return"";var i=ar()(e.replace(/\&/g,""),{allowedTags:[],parser:{decodeEntities:!1}});return(0,u.deburr)(i).replace(/[\s\./\\+=]+/g,t).replace(/[^\w\-_]+/g,"").toLowerCase()};const $l=function(e){var t=e.type;if(void 0===t)throw new Error("Invalid field config.");return!!["text","website","phone","email","password","paragraph","wysiwyg","datetime","date","time","number","currency","oembed","color"].includes(t)&&Sl((null==e?void 0:e.repeatable)||!1)};var _l=["1","0",1,0,!0,!1],Tl=function(e){return"object"===Dn(e)?e:{}},Ql=function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"depends-on";if(!["wildcard-on","depends-on","depends-on-any","excludes-on"].includes(i))throw"Invalid dependency validation mode.";t=Tl(t||{});var n=Object.keys(t||{});return!n.length||("excludes-on"===i?!n.some((function(n){return Pl(e,i,n,t[n])})):"depends-on-any"===i?n.some((function(n){return Pl(e,i,n,t[n])})):n.every((function(n){return Pl(e,i,n,t[n])})))},Pl=function(e,t,i,n){var r=e[i];if(void 0===r)return!1;if("wildcard-on"===t){var o=Array.isArray(n)?n:[n];return 0===o.length||o.some((function(e){return!!r.match(e)}))}if(Array.isArray(n)||Array.isArray(r)){var s=Array.isArray(n)?n:[n],l=Array.isArray(r)?r:[r];return s.filter((function(e){return l.includes(e)})).length>0}return n===r||!(!_l.includes(n)||!_l.includes(r)||Sl(n)!==Sl(r))};function Al(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Cl(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Al(Object(i),!0).forEach((function(t){n(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Al(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var Rl=function e(t,i,n){var r=t["depends-on"],o=void 0===r?{}:r,s=t["depends-on-any"],l=void 0===s?{}:s,a=t["excludes-on"],c=void 0===a?{}:a,h=t["wildcard-on"],u=void 0===h?{}:h;if(o=Tl(o),l=Tl(l),c=Tl(c),u=Tl(u),Object.keys(o).length&&!Ql(i,o,"depends-on"))return!1;if(Object.keys(l).length&&!Ql(i,l,"depends-on-any"))return!1;if(Object.keys(c).length&&!Ql(i,c,"excludes-on"))return!1;if(Object.keys(u).length&&!Ql(i,u,"wildcard-on"))return!1;var d=Object.keys(l),f=Object.keys(Cl(Cl(Cl({},o),c),u));if(!d.length&&!f.length)return!0;var p=function(t){var r=n.get(t);return!r||e(r,i,n)};return!(d.length&&!d.some(p))&&!(f.length&&!f.every(p))};const El=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Map;return Rl(e,t,i)};const Ml=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,i=(0,l.useState)(e),n=Qn(i,2),r=n[0],o=n[1],a=(0,l.useState)([]),c=Qn(a,2),h=c[0],u=c[1];(0,l.useEffect)((function(){var e=[];r.forEach((function(i){if(i.condition())try{i.rule(t)}catch(t){"string"==typeof t&&e.push(t)}})),u(e)}),[t]);var d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.forEach((function(e){o((function(t){return[].concat(s(t),[e])}))}))};return[h,d]};const Dl=function(e,t,i){(0,l.useEffect)((function(){if(null!=t&&t.current){var e=t.current.closest(".pods-field__container");e&&(e.style.display=i?"":"none")}}),[e,t,i])};function ql(){return ql=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},ql.apply(this,arguments)}var Nl=Backbone.Model.extend({defaults:{htmlAttr:{},fieldConfig:{}}}),jl=(_n().oneOf(["0","1",0,1]),_n().oneOf(["0","1",0,1,!0,!1])),Vl=_n().oneOf(["0","1",0,1,!0,!1,"",null,void 0]),Wl=_n().oneOfType([_n().object,_n().array]),zl=_n().oneOfType([_n().string,_n().number]),Ll=_n().arrayOf(_n().shape({id:_n().oneOfType([_n().string.isRequired,_n().arrayOf(_n().shape({name:_n().string.isRequired,id:_n().string.isRequired})).isRequired]),icon:_n().string.isRequired,name:_n().string.isRequired,edit_link:_n().string.isRequired,link:_n().string.isRequired,selected:_n().bool.isRequired})),Bl=_n().shape({id:_n().string,class:_n().string,name:_n().string,name_clean:_n().string}),Il=_n().shape({ajax:jl,delay:zl,minimum_input_length:zl,pod:zl,field:zl,id:zl,uri:_n().string,_wpnonce:_n().string}),Xl={admin_only:jl,attributes:Wl,class:_n().string,data:_n().any,default:_n().oneOfType([_n().string,_n().bool,_n().number]),default_value:_n().oneOfType([_n().string,_n().bool,_n().number]),default_value_param:_n().string,"depends-on":Wl,"depends-on-any":Wl,dependency:_n().bool,description:_n().string,description_param:_n().string,description_param_default:_n().string,developer_mode:_n().bool,disable_dfv:jl,display_filter:_n().string,display_filter_args:_n().arrayOf(_n().string),editor_options:_n().oneOfType([_n().string,_n().object]),"excludes-on":Wl,field_type:_n().string,group:zl,fields:_n().arrayOf(zl),groups:_n().arrayOf(zl),group_id:zl,grouped:_n().number,help:_n().oneOfType([_n().string,_n().arrayOf(_n().string)]),help_param:_n().string,help_param_default:_n().string,hidden:jl,htmlAttr:Bl,fieldEmbed:_n().bool,id:zl.isRequired,iframe_src:_n().string,iframe_title_add:_n().string,iframe_title_edit:_n().string,label:_n().string.isRequired,label_param:_n().string,label_param_default:_n().string,name:_n().string.isRequired,object_type:_n().string,old_name:_n().string,options:_n().oneOfType([Ll,_n().object]),parent:zl,placeholder:_n().string,placeholder_param:_n().string,placeholder_param_default:_n().string,post_status:_n().string,readonly:jl,read_only:jl,rest_pick_response:_n().string,rest_pick_depth:zl,rest_read:jl,rest_write:jl,restrict_capability:jl,restrict_role:jl,required:jl,roles_allowed:_n().oneOfType([_n().string,_n().arrayOf(_n().string)]),sister_id:zl,slug_placeholder:_n().string,slug_separator:_n().string,slug_fallback:_n().string,object_storage_type:_n().string,type:_n().string.isRequired,unique:_n().string,repeatable_add_new_label:_n().string,repeatable_reorder:jl,repeatable_limit:zl,weight:_n().number,"wildcard-on":Wl,_locale:_n().string,avatar_add_button:_n().string,avatar_allowed_extensions:_n().string,avatar_attachment_tab:_n().string,avatar_edit_title:_n().string,avatar_field_template:_n().string,avatar_format_type:_n().string,avatar_limit:zl,avatar_linked:jl,avatar_modal_add_button:_n().string,avatar_modal_title:_n().string,avatar_restrict_filesize:_n().string,avatar_show_edit_link:jl,avatar_type:_n().string,avatar_uploader:_n().string,avatar_upload_dir:_n().string,avatar_upload_dir_custom:_n().string,avatar_wp_gallery_columns:_n().string,avatar_wp_gallery_link:_n().string,avatar_wp_gallery_output:jl,avatar_wp_gallery_random_sort:jl,avatar_wp_gallery_size:_n().string,boolean_format_type:_n().string,boolean_no_label:_n().string,boolean_yes_label:_n().string,boolean_group:_n().arrayOf(_n().shape({default:jl,dependency:_n().bool,help:_n().oneOfType([_n().string,_n().arrayOf(_n().string)]),label:_n().string,name:_n().string,type:_n().string})),code_allow_shortcode:_n().string,code_max_length:zl,color_select_label:_n().string,color_clear_label:_n().string,currency_decimal_handling:_n().string,currency_decimals:zl,currency_format:_n().string,currency_format_placement:_n().string,currency_format_sign:_n().string,currency_format_type:_n().string,currency_html5:jl,currency_max:zl,currency_max_length:zl,currency_min:zl,currency_placeholder:_n().string,currency_step:zl,date_allow_empty:jl,date_format:_n().string,date_format_custom:_n().string,date_format_custom_js:_n().string,date_format_moment_js:_n().string,date_html5:jl,date_type:_n().string,date_year_range_custom:_n().string,datetime_allow_empty:jl,datetime_date_format_moment_js:_n().string,datetime_format:_n().string,datetime_format_custom:_n().string,datetime_format_custom_js:_n().string,datetime_html5:jl,datetime_time_format:_n().string,datetime_time_format_24:_n().string,datetime_time_format_custom:_n().string,datetime_time_format_custom_js:_n().string,datetime_time_format_moment_js:_n().string,datetime_time_type:_n().string,datetime_type:_n().string,datetime_year_range_custom:_n().string,email_html5:jl,email_max_length:zl,email_placeholder:_n().string,file_add_button:_n().string,file_allowed_extensions:_n().string,file_attachment_tab:_n().string,file_edit_title:_n().string,file_field_template:_n().string,file_format_type:_n().string,file_limit:zl,file_linked:jl,file_modal_add_button:_n().string,file_modal_title:_n().string,file_restrict_filesize:_n().string,file_show_edit_link:jl,file_type:_n().string,file_uploader:_n().string,file_upload_dir:_n().string,file_upload_dir_custom:_n().string,file_wp_gallery_columns:_n().any,file_wp_gallery_link:_n().any,file_wp_gallery_output:jl,file_wp_gallery_random_sort:jl,file_wp_gallery_size:_n().any,plupload_init:_n().object,limit_extensions:_n().string,limit_types:_n().string,heading_tag:_n().string,html_content:_n().string,html_content_param:_n().string,html_content_param_default:_n().string,html_wpautop:jl,html_no_label:jl,number_decimals:zl,number_format:_n().oneOf(["i18n","9.999,99","9,999.99","9'999.99","9 999,99","9999.99","9999,99"]),number_format_soft:jl,number_format_type:_n().string,number_html5:jl,number_max:zl,number_max_length:zl,number_min:zl,number_placeholder:_n().string,number_step:zl,oembed_enable_providers:_n().object,oembed_enabled_providers_amazoncn:jl,oembed_enabled_providers_amazoncom:jl,oembed_enabled_providers_amazoncomau:jl,oembed_enabled_providers_amazoncouk:jl,oembed_enabled_providers_amazonin:jl,oembed_enabled_providers_animotocom:jl,oembed_enabled_providers_cloudupcom:jl,oembed_enabled_providers_crowdsignalcom:jl,oembed_enabled_providers_dailymotioncom:jl,oembed_enabled_providers_facebookcom:jl,oembed_enabled_providers_flickrcom:jl,oembed_enabled_providers_imgurcom:jl,oembed_enabled_providers_instagramcom:jl,oembed_enabled_providers_issuucom:jl,oembed_enabled_providers_kickstartercom:jl,oembed_enabled_providers_meetupcom:jl,oembed_enabled_providers_mixcloudcom:jl,oembed_enabled_providers_redditcom:jl,oembed_enabled_providers_reverbnationcom:jl,oembed_enabled_providers_screencastcom:jl,oembed_enabled_providers_scribdcom:jl,oembed_enabled_providers_slidesharenet:jl,oembed_enabled_providers_smugmugcom:jl,oembed_enabled_providers_someecardscom:jl,oembed_enabled_providers_soundcloudcom:jl,oembed_enabled_providers_speakerdeckcom:jl,oembed_enabled_providers_spotifycom:jl,oembed_enabled_providers_tedcom:jl,oembed_enabled_providers_tiktokcom:jl,oembed_enabled_providers_tumblrcom:jl,oembed_enabled_providers_twittercom:jl,oembed_enabled_providers_vimeocom:jl,oembed_enabled_providers_wordpresscom:jl,oembed_enabled_providers_wordpresstv:jl,oembed_enabled_providers_youtubecom:jl,oembed_height:zl,oembed_restrict_providers:jl,oembed_show_preview:jl,oembed_width:zl,paragraph_allow_html:jl,paragraph_allow_shortcode:jl,paragraph_allowed_html_tags:_n().string,paragraph_convert_chars:jl,paragraph_max_length:zl,paragraph_oembed:jl,paragraph_placeholder:_n().string,paragraph_wpautop:jl,paragraph_wptexturize:jl,password_max_length:zl,password_placeholder:_n().string,phone_enable_phone_extension:_n().string,phone_format:_n().string,phone_html5:jl,phone_max_length:zl,phone_options:_n().object,phone_placeholder:_n().string,default_icon:_n().string,fieldItemData:_n().oneOfType([_n().arrayOf(_n().oneOfType([_n().string,_n().shape({id:_n().string,icon:_n().string,name:_n().string,edit_link:_n().string,link:_n().string,selected:jl})])),_n().object]),pick_ajax:jl,pick_allow_add_new:jl,pick_add_new_label:_n().string,pick_custom:_n().string,pick_display:_n().string,pick_display_format_multi:_n().string,pick_display_format_separator:_n().string,pick_format_multi:_n().oneOf(["autocomplete","checkbox","list","multiselect"]),pick_format_single:_n().oneOf(["autocomplete","checkbox","dropdown","list","radio"]),pick_format_type:_n().oneOf(["single","multi"]),pick_groupby:_n().string,pick_limit:zl,pick_object:_n().string,pick_orderby:_n().string,pick_placeholder:_n().string,pick_post_status:_n().oneOfType([_n().string,_n().arrayOf(_n().string)]),pick_select_text:_n().string,pick_show_edit_link:jl,pick_show_icon:jl,pick_show_select_text:jl,pick_show_view_link:jl,pick_table:_n().string,pick_table_id:_n().string,pick_table_index:_n().string,pick_taggable:jl,pick_user_role:_n().oneOfType([_n().string,_n().arrayOf(_n().string)]),pick_val:_n().string,pick_where:_n().string,table_info:_n().oneOfType([_n().string,_n().arrayOf(_n().string)]),view_name:_n().string,ajax_data:Il,select2_overrides:_n().any,supports_thumbnails:jl,optgroup:_n().any,text_allow_html:jl,text_allow_shortcode:jl,text_allowed_html_tags:_n().string,text_max_length:zl,text_placeholder:_n().string,time_allow_empty:jl,time_format:_n().string,time_format_24:_n().string,time_format_custom:_n().string,time_format_custom_js:_n().string,time_format_moment_js:_n().string,time_html5:jl,time_type:_n().string,website_allow_port:jl,website_clickable:jl,website_format:_n().string,website_new_window:jl,website_max_length:zl,website_html5:jl,website_placeholder:_n().string,wysiwyg_allow_shortcode:jl,wysiwyg_allowed_html_tags:_n().string,wysiwyg_convert_chars:jl,wysiwyg_editor:_n().string,wysiwyg_editor_height:zl,wysiwyg_media_buttons:jl,wysiwyg_default_editor:_n().string,wysiwyg_oembed:jl,wysiwyg_wpautop:jl,wysiwyg_wptexturize:jl},Ul=_n().shape(Xl),Fl=_n().shape({description:_n().string,fields:_n().arrayOf(Ul),id:zl.isRequired,label:_n().string.isRequired,name:_n().string.isRequired,object_type:_n().string,parent:zl.isRequired,object_storage_type:_n().string,weight:_n().number,_locale:_n().string}),Hl={addValidationRules:_n().func.isRequired,fieldConfig:Ul.isRequired,setValue:_n().func.isRequired,setHasBlurred:_n().func.isRequired,value:_n().oneOfType([_n().string,_n().bool,_n().number,_n().array])},Zl="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/fields/marionette-adapter.js";function Gl(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 i,n=Nn(e);if(t){var r=Nn(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return qn(this,i)}}var Yl=function(e){Mn(i,e);var t=Gl(i);function i(e){var n;return An(this,i),(n=t.call(this,e)).state={isMarionetteGlobalLoaded:!1},n}return Rn(i,[{key:"componentDidMount",value:function(){var e=this.props.fieldConfig,t=void 0===e?{}:e,i=(null==t?void 0:t.htmlAttr)||{};this.fieldModel=new Nl({htmlAttr:i,fieldConfig:t}),window.PodsMn||(window.PodsMn=window.Backbone.Marionette.noConflict()),this.setState({isMarionetteGlobalLoaded:!0}),this.renderMarionetteComponent()}},{key:"componentDidUpdate",value:function(e,t){this.state.isMarionetteGlobalLoaded&&((0,u.isEqual)(e.fieldConfig,this.props.fieldConfig)&&(0,u.isEqual)(e.value,this.props.value)&&(0,u.isEqual)(t,this.state)||(this.marionetteComponent&&this.marionetteComponent.destroy(),this.renderMarionetteComponent()))}},{key:"componentWillUnmount",value:function(){this.marionetteComponent.destroy()}},{key:"renderMarionetteComponent",value:function(){var e=this,t=this.props,i=t.View,n=t.value;this.marionetteComponent=new i({model:this.fieldModel,fieldItemData:n}),this.element.appendChild(this.marionetteComponent.el),this.marionetteComponent.render(),this.marionetteComponent.collection.on("all",(function(t,i){["update","remove","reset"].includes(t)&&(window.console&&console.debug("collection changed",t,i,i.models),e.props.setValue(i.models||[]))})),window.marionetteViews=window.marionetteViews||{},window.marionetteViews[this.props.fieldConfig.name]=this.marionetteComponent}},{key:"render",value:function(){var e=this,t=this.props.className;return a().createElement("div",{className:"pods-marionette-adapter-wrapper",__self:this,__source:{fileName:Zl,lineNumber:104,columnNumber:4}},a().createElement("div",{className:t,ref:function(t){return e.element=t},__self:this,__source:{fileName:Zl,lineNumber:105,columnNumber:5}}))}}]),i}(a().Component);Yl.propTypes={className:_n().string,htmlAttr:_n().object,fieldConfig:Ul.isRequired,setValue:_n().func.isRequired,value:_n().oneOfType([_n().string,_n().array,_n().object]),View:_n().func.isRequired};const Kl=Yl;var Jl=PodsMn.CollectionView.extend({childViewEventPrefix:!1,initialize:function(e){this.fieldModel=e.fieldModel,this.childViewOptions={fieldModel:e.fieldModel}}}),ea=PodsMn.View.extend({childViewEventPrefix:!1,serializeData:function(){var e=this.options.fieldModel,t=this.model?this.model.toJSON():{};return t.htmlAttr=e.get("htmlAttr"),t.fieldConfig=e.get("fieldConfig"),t}}),ta=PodsMn.View.extend({childViewEventPrefix:!1,initialize:function(e){this.fieldItemData=e.fieldItemData}}),ia=Backbone.Model.extend({defaults:{id:0,icon:"",name:"",edit_link:"",link:"",download:""}}),na=Backbone.Collection.extend({model:ia}),ra=ea.extend({childViewEventPrefix:!1,tagName:"li",template:_.template('<input\n\tname="<%- htmlAttr.name %>[<%- id %>][id]"\n\tdata-name-clean="<%- htmlAttr.name_clean %>-id"\n\tid="<%- htmlAttr.id %>-<%- id %>-id"\n\tclass="<%- htmlAttr.class %>"\n\ttype="hidden"\n\tvalue="<%- id %>" />\n<ul class="pods-dfv-list-meta media-item">\n\t<% if ( 1 != fieldConfig.file_limit ) { %>\n\t\t<li class="pods-dfv-list-col pods-dfv-list-handle"><span><%- PodsI18n.__( \'Reorder\' ) %></span></li>\n\t<% } %>\n\t<li class="pods-dfv-list-col pods-dfv-list-icon"><img class="pinkynail" src="<%- icon %>" alt="<%- PodsI18n.__( \'Icon\' ) %>"></li>\n\t<li class="pods-dfv-list-col pods-dfv-list-name">\n\t\t<% if ( 1 == fieldConfig.file_edit_title ) { %>\n\t\t\t<input\n\t\t\t\tname="<%- htmlAttr.name %>[<%- id %>][title]"\n\t\t\t\tdata-name-clean="<%- htmlAttr.name_clean %>-title"\n\t\t\t\tid="pods-form-ui-<%- htmlAttr.name_clean %>-<%- id %>-title"\n\t\t\t\tclass="pods-form-ui-field-type-text pods-form-ui-field-name-<%- htmlAttr.name_clean %>-title"\n\t\t\t\ttype="text"\n\t\t\t\tvalue="<%- name %>"\n\t\t\t\ttabindex="2"\n\t\t\t\tmaxlength="255" />\n\t\t<% } else { %>\n\t\t\t<%- name %>\n\t\t<% } %>\n\t</li>\n\t<li class="pods-dfv-list-col pods-dfv-list-actions">\n\t\t<ul>\n\t\t\t<li class="pods-dfv-list-col pods-dfv-list-remove">\n\t\t\t\t<a href="#remove" title="<%- PodsI18n.__( \'Deselect\' ) %>"><%- PodsI18n.__( \'Deselect\' ) %></a>\n\t\t\t</li>\n\t\t\t<% if ( 1 == fieldConfig.file_linked && \'\' != download ) { %>\n\t\t\t\t<li class="pods-dfv-list-col pods-dfv-list-download">\n\t\t\t\t\t<a href="<%- download %>" target="_blank" rel="noopener noreferrer" title="<%- PodsI18n.__( \'Download\' ) %>"><%- PodsI18n.__( \'Download\' ) %></a>\n\t\t\t\t</li>\n\t\t\t<% } %>\n\t\t\t<% if ( 1 == fieldConfig.file_show_edit_link && \'\' != edit_link ) { %>\n\t\t\t\t<li class="pods-dfv-list-col pods-dfv-list-edit">\n\t\t\t\t\t<a href="<%- edit_link %>" target="_blank" rel="noopener noreferrer" title="<%- PodsI18n.__( \'Edit\' ) %>"><%- PodsI18n.__( \'Edit\' ) %></a>\n\t\t\t\t</li>\n\t\t\t<% } %>\n\t\t</ul>\n\t</li>\n</ul>\n'),className:"pods-dfv-list-item",ui:{dragHandle:".pods-dfv-list-handle",editLink:".pods-dfv-list-edit-link",viewLink:".pods-dfv-list-link",downloadLink:".pods-dfv-list-download",removeButton:".pods-dfv-list-remove",itemName:".pods-dfv-list-name"},triggers:{"click @ui.removeButton":"remove:file:click"}}),oa=Jl.extend({childViewEventPrefix:!1,tagName:"ul",className:"pods-dfv-list",childView:ra,childViewTriggers:{"remove:file:click":"childview:remove:file:click"},onAttach:function(){var e=this.options.fieldModel.get("fieldConfig"),t="y";1!==parseInt(e.file_limit,10)&&("tiles"===e.file_field_template&&(t=""),this.$el.sortable({containment:"parent",axis:t,scrollSensitivity:40,tolerance:"pointer",opacity:.6}))}}),sa=ea.extend({childViewEventPrefix:!1,tagName:"div",template:_.template('<a class="button pods-dfv-list-add" href="#" tabindex="2"><%= fieldConfig.file_add_button %></a>'),ui:{addButton:".pods-dfv-list-add"},triggers:{"click @ui.addButton":"childview:add:file:click"}}),la=PodsMn.Object.extend({constructor:function(e){this.browseButton=e.browseButton,this.uiRegion=e.uiRegion,this.fieldConfig=e.fieldConfig,PodsMn.Object.call(this,e)}}),aa=Backbone.Model.extend({defaults:{id:0,filename:"",progress:0,errorMsg:""}}),ca=PodsMn.View.extend({model:aa,tagName:"li",template:_.template('<ul class="pods-dfv-list-meta media-item">\n\t<% if ( \'\' === errorMsg ) { %>\n\t\t<li class="pods-dfv-list-col pods-progress"><div class="progress-bar" style="width: <%- progress %>%;"></div></li>\n\t<% } %>\n\t<li class="pods-dfv-list-col pods-dfv-list-name"><%- filename %></li>\n</ul>\n<% if ( \'\' !== errorMsg ) { %>\n\t<div class="error"><%- errorMsg %></div>\n<% } %>\n'),attributes:function(){return{class:"pods-dfv-list-item",id:this.model.get("id")}},modelEvents:{change:"onModelChanged"},onModelChanged:function(){this.render()}}),ha=PodsMn.CollectionView.extend({tagName:"ul",className:"pods-dfv-list pods-dfv-list-queue",childView:ca}),ua=la.extend({plupload:{},fileUploader:"plupload",initialize:function(){this.fieldConfig.plupload_init.browse_button=this.browseButton,this.plupload=new plupload.Uploader(this.fieldConfig.plupload_init),this.plupload.init(),this.plupload.bind("FilesAdded",this.onFilesAdded,this),this.plupload.bind("UploadProgress",this.onUploadProgress,this),this.plupload.bind("FileUploaded",this.onFileUploaded,this)},onFilesAdded:function(e,t){var i,n=new Backbone.Collection;jQuery.each(t,(function(e,t){i=new aa({id:t.id,filename:t.name}),n.add(i)}));var r=new ha({collection:n});r.render(),this.uiRegion.reset(),this.uiRegion.show(r),this.queueCollection=n,e.refresh(),e.start()},onUploadProgress:function(e,t){this.queueCollection.get(t.id).set({progress:t.percent})},onFileUploaded:function(e,t,i){var n,r=this.queueCollection.get(t.id),o=i.response,s=[];if("Error: "===i.response.substr(0,7))o=o.substr(7),window.console&&console.debug(o),r.set({progress:0,errorMsg:o});else if("<e>"===i.response.substr(0,3))o=jQuery(o).text(),window.console&&console.debug(o),r.set({progress:0,errorMsg:o});else{if("object"!==Dn(n=null!==(n=o.match(/{.*}$/))&&0<n.length?jQuery.parseJSON(n[0]):{})||jQuery.isEmptyObject(n))return window.console&&(console.debug(o),console.debug(n)),void r.set({progress:0,errorMsg:(0,Pn.__)("Error uploading file: ")+t.name});s={id:n.ID,icon:n.thumbnail,name:n.post_title,edit_link:n.edit_link,link:n.link,download:n.download},r.trigger("destroy",r),this.trigger("added:files",s)}}}),da=[ua,la.extend({mediaObject:{},fileUploader:"attachment",invoke:function(){var e;void 0===wp.Uploader.defaults.filters.mime_types&&(wp.Uploader.defaults.filters.mime_types=[{title:(0,Pn.__)("Allowed Files","pods"),extensions:"*"}]);var t=wp.Uploader.defaults.filters.mime_types[0].extensions;null!==(e=this.fieldConfig)&&void 0!==e&&e.limit_extensions&&(wp.Uploader.defaults.filters.mime_types[0].extensions=this.fieldConfig.limit_extensions),this.mediaObject=wp.media({title:this.fieldConfig.file_modal_title,multiple:1!==parseInt(this.fieldConfig.file_limit,10),library:{type:this.fieldConfig.limit_types},button:{text:this.fieldConfig.file_modal_add_button}}),this.mediaObject.once("select",this.onMediaSelect,this),this.mediaObject.open(),this.mediaObject.content.mode(this.fieldConfig.file_attachment_tab),wp.Uploader.defaults.filters.mime_types[0].extensions=t},onMediaSelect:function(){var e=this.mediaObject.state().get("selection"),t=[];e&&(e.each((function(e){var i,n=e.attributes.sizes;i=e.attributes.icon,void 0!==n&&(void 0!==n.thumbnail&&void 0!==n.thumbnail.url?i=n.thumbnail.url:void 0!==n.full&&void 0!==n.full.url&&(i=n.full.url)),t.push({id:e.attributes.id,icon:i,name:e.attributes.title,edit_link:e.attributes.editLink,link:e.attributes.link,download:e.attributes.url})})),this.trigger("added:files",t))}})],fa=ta.extend({childViewEventPrefix:!1,template:_.template('<div class="pods-ui-file-list pods-field-template-<%- fieldConfig.file_field_template %>"></div>\n<div class="pods-ui-region"></div>\n<div class="pods-ui-form"></div>\n'),regions:{list:".pods-ui-file-list",uiRegion:".pods-ui-region",form:".pods-ui-form"},childViewEvents:{"childview:remove:file:click":"onChildviewRemoveFileClick","childview:add:file:click":"onChildviewAddFileClick"},uploader:{},onBeforeRender:function(){void 0===this.collection&&(this.collection=new na(this.fieldItemData))},onRender:function(){var e=new oa({collection:this.collection,fieldModel:this.model}),t=new sa({fieldModel:this.model});this.showChildView("list",e),this.showChildView("form",t),this.uploader=this.createUploader(),this.listenTo(this.uploader,"added:files",this.onAddedFiles)},onChildviewRemoveFileClick:function(e){this.collection.remove(e.model)},onChildviewAddFileClick:function(){"function"==typeof this.uploader.invoke&&this.uploader.invoke()},onAddedFiles:function(e){var t,i=this.model.get("fieldConfig"),n=parseInt(i.file_limit,10),r=this.collection.clone();0===n||r.length<n?(r.add(e),t=r.models):t=r.filter((function(e){return r.indexOf(e)>=r.length-n})),this.collection.reset(t)},createUploader:function(){var e,t=this.model.get("fieldConfig"),i=t.file_uploader||"attachment";if(jQuery.each(da,(function(t,n){if(i===n.prototype.fileUploader)return e=n,!1})),void 0!==e)return this.uploader=new e({browseButton:this.getRegion("form").getEl(".pods-dfv-list-add").get(),uiRegion:this.getRegion("uiRegion"),fieldConfig:t}),this.uploader;throw"Could not locate file uploader '".concat(i,"'")}});function pa(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function ma(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?pa(Object(i),!0).forEach((function(t){n(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):pa(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var ga=function(){var e=dn(pn().mark((function e(t){var i,n,r,o;return pn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,gn()({path:"/wp/v2/media/".concat(t)});case 3:return o=e.sent,e.abrupt("return",{id:t,icon:null==o||null===(i=o.media_details)||void 0===i||null===(n=i.sizes)||void 0===n||null===(r=n.thumbnail)||void 0===r?void 0:r.source_url,name:o.title.rendered,edit_link:"/wp-admin/post.php?post=".concat(t,"&action=edit"),link:o.link,download:o.source_url});case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",{id:t});case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}(),Oa=function(e){var t=e.fieldConfig,i=void 0===t?{}:t,n=e.value,r=e.setValue,o=e.setHasBlurred,s=(null==i?void 0:i.htmlAttr)||{},c=i.fieldItemData,h=void 0===c?[]:c,u=Qn((0,l.useState)([]),2),d=u[0],f=u[1],p="single"===i.file_format_type?"1":i.file_limit;return(0,l.useEffect)((function(){if(n){var e=function(){var e=dn(pn().mark((function e(t){var i,n,r;return pn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=!0,n=t.map((function(e){var t=h.find((function(t){return Number(t.id)===Number(e)}));return t||(i=!1,null)})),!i){e.next=5;break}return f(n),e.abrupt("return");case 5:return e.next=7,Promise.all(t.map(ga));case 7:r=e.sent,f(r);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();Array.isArray(n)?e(n):"object"===Dn(n)?f(n):"string"==typeof n?e(n.split(",")):"number"==typeof n?e([n]):console.error("Invalid value type for file field: ".concat(i.name))}else f([])}),[]),a().createElement(Kl,ql({},e,{fieldConfig:ma(ma({},i),{},{file_limit:p,htmlAttr:s}),View:fa,value:d,setValue:function(e){Array.isArray(e)?(r(e.map((function(e){return e.id})).join(",")),f(e.map((function(e){return e.attributes})))):(r(e.get("id")),f(e.get("attributes"))),o(!0)},__self:undefined,__source:{fileName:"/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/fields/file/index.js",lineNumber:119,columnNumber:3}}))};Oa.propTypes=ma(ma({},Hl),{},{value:_n().oneOfType([_n().arrayOf(_n().oneOfType([_n().string,_n().number])),_n().string,_n().number])});const va=Oa;var ya=function(e){var t=e.fieldConfig,i=void 0===t?{}:t,n=Object.entries(i).map((function(e){return[e[0].startsWith("avatar_")?"file_"+e[0].substr(7):e[0],e[1]]})),r=Object.fromEntries(n);return a().createElement(va,ql({},e,{fieldConfig:r,__self:undefined,__source:{fileName:"/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/fields/avatar/index.js",lineNumber:24,columnNumber:3}}))};ya.propTypes=Hl;const ba=ya;var wa=function(){function e(e){var t=this;this._insertTag=function(e){var i;i=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,i),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 i=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{i.insertRule(e,i.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}(),xa=Math.abs,Sa=String.fromCharCode,ka=Object.assign;function $a(e){return e.trim()}function _a(e,t,i){return e.replace(t,i)}function Ta(e,t){return e.indexOf(t)}function Qa(e,t){return 0|e.charCodeAt(t)}function Pa(e,t,i){return e.slice(t,i)}function Aa(e){return e.length}function Ca(e){return e.length}function Ra(e,t){return t.push(e),e}var Ea=1,Ma=1,Da=0,qa=0,Na=0,ja="";function Va(e,t,i,n,r,o,s){return{value:e,root:t,parent:i,type:n,props:r,children:o,line:Ea,column:Ma,length:s,return:""}}function Wa(e,t){return ka(Va("",null,null,"",null,null,0),e,{length:-e.length},t)}function za(){return Na=qa>0?Qa(ja,--qa):0,Ma--,10===Na&&(Ma=1,Ea--),Na}function La(){return Na=qa<Da?Qa(ja,qa++):0,Ma++,10===Na&&(Ma=1,Ea++),Na}function Ba(){return Qa(ja,qa)}function Ia(){return qa}function Xa(e,t){return Pa(ja,e,t)}function Ua(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 Fa(e){return Ea=Ma=1,Da=Aa(ja=e),qa=0,[]}function Ha(e){return ja="",e}function Za(e){return $a(Xa(qa-1,Ka(91===e?e+2:40===e?e+1:e)))}function Ga(e){for(;(Na=Ba())&&Na<33;)La();return Ua(e)>2||Ua(Na)>3?"":" "}function Ya(e,t){for(;--t&&La()&&!(Na<48||Na>102||Na>57&&Na<65||Na>70&&Na<97););return Xa(e,Ia()+(t<6&&32==Ba()&&32==La()))}function Ka(e){for(;La();)switch(Na){case e:return qa;case 34:case 39:34!==e&&39!==e&&Ka(Na);break;case 40:41===e&&Ka(e);break;case 92:La()}return qa}function Ja(e,t){for(;La()&&e+Na!==57&&(e+Na!==84||47!==Ba()););return"/*"+Xa(t,qa-1)+"*"+Sa(47===e?e:La())}function ec(e){for(;!Ua(Ba());)La();return Xa(e,qa)}var tc="-ms-",ic="-moz-",nc="-webkit-",rc="comm",oc="rule",sc="decl",lc="@keyframes";function ac(e,t){for(var i="",n=Ca(e),r=0;r<n;r++)i+=t(e[r],r,e,t)||"";return i}function cc(e,t,i,n){switch(e.type){case"@import":case sc:return e.return=e.return||e.value;case rc:return"";case lc:return e.return=e.value+"{"+ac(e.children,n)+"}";case oc:e.value=e.props.join(",")}return Aa(i=ac(e.children,n))?e.return=e.value+"{"+i+"}":""}function hc(e,t){switch(function(e,t){return(((t<<2^Qa(e,0))<<2^Qa(e,1))<<2^Qa(e,2))<<2^Qa(e,3)}(e,t)){case 5103:return nc+"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 nc+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return nc+e+ic+e+tc+e+e;case 6828:case 4268:return nc+e+tc+e+e;case 6165:return nc+e+tc+"flex-"+e+e;case 5187:return nc+e+_a(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return nc+e+tc+"flex-item-"+_a(e,/flex-|-self/,"")+e;case 4675:return nc+e+tc+"flex-line-pack"+_a(e,/align-content|flex-|-self/,"")+e;case 5548:return nc+e+tc+_a(e,"shrink","negative")+e;case 5292:return nc+e+tc+_a(e,"basis","preferred-size")+e;case 6060:return nc+"box-"+_a(e,"-grow","")+nc+e+tc+_a(e,"grow","positive")+e;case 4554:return nc+_a(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return _a(_a(_a(e,/(zoom-|grab)/,nc+"$1"),/(image-set)/,nc+"$1"),e,"")+e;case 5495:case 3959:return _a(e,/(image-set\([^]*)/,nc+"$1$`$1");case 4968:return _a(_a(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+nc+e+e;case 4095:case 3583:case 4068:case 2532:return _a(e,/(.+)-inline(.+)/,nc+"$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(Aa(e)-1-t>6)switch(Qa(e,t+1)){case 109:if(45!==Qa(e,t+4))break;case 102:return _a(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+ic+(108==Qa(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ta(e,"stretch")?hc(_a(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Qa(e,t+1))break;case 6444:switch(Qa(e,Aa(e)-3-(~Ta(e,"!important")&&10))){case 107:return _a(e,":",":"+nc)+e;case 101:return _a(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+nc+(45===Qa(e,14)?"inline-":"")+"box$3$1"+nc+"$2$3$1"+tc+"$2box$3")+e}break;case 5936:switch(Qa(e,t+11)){case 114:return nc+e+tc+_a(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return nc+e+tc+_a(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return nc+e+tc+_a(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return nc+e+tc+e+e}return e}function uc(e){return Ha(dc("",null,null,null,[""],e=Fa(e),0,[0],e))}function dc(e,t,i,n,r,o,s,l,a){for(var c=0,h=0,u=s,d=0,f=0,p=0,m=1,g=1,O=1,v=0,y="",b=r,w=o,x=n,S=y;g;)switch(p=v,v=La()){case 40:if(108!=p&&58==S.charCodeAt(u-1)){-1!=Ta(S+=_a(Za(v),"&","&\f"),"&\f")&&(O=-1);break}case 34:case 39:case 91:S+=Za(v);break;case 9:case 10:case 13:case 32:S+=Ga(p);break;case 92:S+=Ya(Ia()-1,7);continue;case 47:switch(Ba()){case 42:case 47:Ra(pc(Ja(La(),Ia()),t,i),a);break;default:S+="/"}break;case 123*m:l[c++]=Aa(S)*O;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+h:f>0&&Aa(S)-u&&Ra(f>32?mc(S+";",n,i,u-1):mc(_a(S," ","")+";",n,i,u-2),a);break;case 59:S+=";";default:if(Ra(x=fc(S,t,i,c,h,r,l,y,b=[],w=[],u),o),123===v)if(0===h)dc(S,t,x,x,b,o,u,l,w);else switch(d){case 100:case 109:case 115:dc(e,x,x,n&&Ra(fc(e,x,x,0,0,r,l,y,r,b=[],u),w),r,w,u,l,n?b:w);break;default:dc(S,x,x,x,[""],w,0,l,w)}}c=h=f=0,m=O=1,y=S="",u=s;break;case 58:u=1+Aa(S),f=p;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==za())continue;switch(S+=Sa(v),v*m){case 38:O=h>0?1:(S+="\f",-1);break;case 44:l[c++]=(Aa(S)-1)*O,O=1;break;case 64:45===Ba()&&(S+=Za(La())),d=Ba(),h=u=Aa(y=S+=ec(Ia())),v++;break;case 45:45===p&&2==Aa(S)&&(m=0)}}return o}function fc(e,t,i,n,r,o,s,l,a,c,h){for(var u=r-1,d=0===r?o:[""],f=Ca(d),p=0,m=0,g=0;p<n;++p)for(var O=0,v=Pa(e,u+1,u=xa(m=s[p])),y=e;O<f;++O)(y=$a(m>0?d[O]+" "+v:_a(v,/&\f/g,d[O])))&&(a[g++]=y);return Va(e,t,i,0===r?oc:l,a,c,h)}function pc(e,t,i){return Va(e,t,i,rc,Sa(Na),Pa(e,2,-2),0)}function mc(e,t,i,n){return Va(e,t,i,sc,Pa(e,0,n),Pa(e,n+1,-1),n)}var gc=function(e,t,i){for(var n=0,r=0;n=r,r=Ba(),38===n&&12===r&&(t[i]=1),!Ua(r);)La();return Xa(e,qa)},Oc=function(e,t){return Ha(function(e,t){var i=-1,n=44;do{switch(Ua(n)){case 0:38===n&&12===Ba()&&(t[i]=1),e[i]+=gc(qa-1,t,i);break;case 2:e[i]+=Za(n);break;case 4:if(44===n){e[++i]=58===Ba()?"&\f":"",t[i]=e[i].length;break}default:e[i]+=Sa(n)}}while(n=La());return e}(Fa(e),t))},vc=new WeakMap,yc=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,i=e.parent,n=e.column===i.column&&e.line===i.line;"rule"!==i.type;)if(!(i=i.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||vc.get(i))&&!n){vc.set(e,!0);for(var r=[],o=Oc(t,r),s=i.props,l=0,a=0;l<o.length;l++)for(var c=0;c<s.length;c++,a++)e.props[a]=r[l]?o[l].replace(/&\f/g,s[c]):s[c]+" "+o[l]}}},bc=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},wc=[function(e,t,i,n){if(e.length>-1&&!e.return)switch(e.type){case sc:e.return=hc(e.value,e.length);break;case lc:return ac([Wa(e,{value:_a(e.value,"@","@"+nc)})],n);case oc: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 ac([Wa(e,{props:[_a(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return ac([Wa(e,{props:[_a(t,/:(plac\w+)/,":-webkit-input-$1")]}),Wa(e,{props:[_a(t,/:(plac\w+)/,":-moz-$1")]}),Wa(e,{props:[_a(t,/:(plac\w+)/,tc+"input-$1")]})],n)}return""}))}}];const xc=function(e){var t=e.key;if("css"===t){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n=e.stylisPlugins||wc;var r,o,s={},l=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),i=1;i<t.length;i++)s[t[i]]=!0;l.push(e)}));var a,c,h,u,d=[cc,(u=function(e){a.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],f=(c=[yc,bc].concat(n,d),h=Ca(c),function(e,t,i,n){for(var r="",o=0;o<h;o++)r+=c[o](e,t,i,n)||"";return r});o=function(e,t,i,n){a=i,ac(uc(e?e+"{"+t.styles+"}":t.styles),f),n&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new wa({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:o};return p.sheet.hydrate(l),p};function Sc(e,t,i){var n="";return i.split(" ").forEach((function(i){void 0!==e[i]?t.push(e[i]+";"):n+=i+" "})),n}var kc=function(e,t,i){var n=e.key+"-"+t.name;!1===i&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},$c=function(e,t,i){kc(e,t,i);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var r=t;do{e.insert(t===r?"."+n:"",r,e.sheet,!0);r=r.next}while(void 0!==r)}};const _c=function(e){for(var t,i=0,n=0,r=e.length;r>=4;++n,r-=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),i=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&i)+(59797*(i>>>16)<<16);switch(r){case 3:i^=(255&e.charCodeAt(n+2))<<16;case 2:i^=(255&e.charCodeAt(n+1))<<8;case 1:i=1540483477*(65535&(i^=255&e.charCodeAt(n)))+(59797*(i>>>16)<<16)}return(((i=1540483477*(65535&(i^=i>>>13))+(59797*(i>>>16)<<16))^i>>>15)>>>0).toString(36)};const Tc={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};const Qc=function(e){var t=Object.create(null);return function(i){return void 0===t[i]&&(t[i]=e(i)),t[i]}};var Pc=/[A-Z]|^ms/g,Ac=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Cc=function(e){return 45===e.charCodeAt(1)},Rc=function(e){return null!=e&&"boolean"!=typeof e},Ec=Qc((function(e){return Cc(e)?e:e.replace(Pc,"-$&").toLowerCase()})),Mc=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ac,(function(e,t,i){return qc={name:t,styles:i,next:qc},t}))}return 1===Tc[e]||Cc(e)||"number"!=typeof t||0===t?t:t+"px"};function Dc(e,t,i){if(null==i)return"";if(void 0!==i.__emotion_styles)return i;switch(typeof i){case"boolean":return"";case"object":if(1===i.anim)return qc={name:i.name,styles:i.styles,next:qc},i.name;if(void 0!==i.styles){var n=i.next;if(void 0!==n)for(;void 0!==n;)qc={name:n.name,styles:n.styles,next:qc},n=n.next;return i.styles+";"}return function(e,t,i){var n="";if(Array.isArray(i))for(var r=0;r<i.length;r++)n+=Dc(e,t,i[r])+";";else for(var o in i){var s=i[o];if("object"!=typeof s)null!=t&&void 0!==t[s]?n+=o+"{"+t[s]+"}":Rc(s)&&(n+=Ec(o)+":"+Mc(o,s)+";");else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var l=Dc(e,t,s);switch(o){case"animation":case"animationName":n+=Ec(o)+":"+l+";";break;default:n+=o+"{"+l+"}"}}else for(var a=0;a<s.length;a++)Rc(s[a])&&(n+=Ec(o)+":"+Mc(o,s[a])+";")}return n}(e,t,i);case"function":if(void 0!==e){var r=qc,o=i(e);return qc=r,Dc(e,t,o)}}if(null==t)return i;var s=t[i];return void 0!==s?s:i}var qc,Nc=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var jc=function(e,t,i){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,r="";qc=void 0;var o=e[0];null==o||void 0===o.raw?(n=!1,r+=Dc(i,t,o)):r+=o[0];for(var s=1;s<e.length;s++)r+=Dc(i,t,e[s]),n&&(r+=o[s]);Nc.lastIndex=0;for(var l,a="";null!==(l=Nc.exec(r));)a+="-"+l[1];return{name:_c(r)+a,styles:r,next:qc}},Vc={}.hasOwnProperty,Wc=(0,l.createContext)("undefined"!=typeof HTMLElement?xc({key:"css"}):null);var zc=Wc.Provider,Lc=function(e){return(0,l.forwardRef)((function(t,i){var n=(0,l.useContext)(Wc);return e(t,n,i)}))},Bc=(0,l.createContext)({});var Ic=l.useInsertionEffect?l.useInsertionEffect:function(e){e()};function Xc(e){Ic(e)}var Uc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Fc=function(e,t){var i={};for(var n in t)Vc.call(t,n)&&(i[n]=t[n]);return i[Uc]=e,i},Hc=function(e){var t=e.cache,i=e.serialized,n=e.isStringTag;kc(t,i,n);Xc((function(){return $c(t,i,n)}));return null},Zc=Lc((function(e,t,i){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var r=e[Uc],o=[n],s="";"string"==typeof e.className?s=Sc(t.registered,o,e.className):null!=e.className&&(s=e.className+" ");var a=jc(o,void 0,(0,l.useContext)(Bc));s+=t.key+"-"+a.name;var c={};for(var h in e)Vc.call(e,h)&&"css"!==h&&h!==Uc&&(c[h]=e[h]);return c.ref=i,c.className=s,(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Hc,{cache:t,serialized:a,isStringTag:"string"==typeof r}),(0,l.createElement)(r,c))}));i(8679);var Gc=function(e,t){var i=arguments;if(null==t||!Vc.call(t,"css"))return l.createElement.apply(void 0,i);var n=i.length,r=new Array(n);r[0]=Zc,r[1]=Fc(e,t);for(var o=2;o<n;o++)r[o]=i[o];return l.createElement.apply(null,r)};l.useInsertionEffect?l.useInsertionEffect:l.useLayoutEffect;function Yc(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return jc(t)}var Kc=function e(t){for(var i=t.length,n=0,r="";n<i;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 l in s="",o)o[l]&&l&&(s&&(s+=" "),s+=l);break;default:s=o}s&&(r&&(r+=" "),r+=s)}}return r};function Jc(e,t,i){var n=[],r=Sc(e,n,i);return n.length<2?i:r+t(n)}var eh=function(e){var t=e.cache,i=e.serializedArr;Xc((function(){for(var e=0;e<i.length;e++)$c(t,i[e],!1)}));return null},th=Lc((function(e,t){var i=[],n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=jc(n,t.registered);return i.push(o),kc(t,o,!1),t.key+"-"+o.name},r={css:n,cx:function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return Jc(t.registered,n,Kc(i))},theme:(0,l.useContext)(Bc)},o=e.children(r);return!0,(0,l.createElement)(l.Fragment,null,(0,l.createElement)(eh,{cache:t,serializedArr:i}),o)}));function ih(e,t){if(null==e)return{};var i,n,r=function(e,t){if(null==e)return{};var i,n,r={},o=Object.keys(e);for(n=0;n<o.length;n++)i=o[n],t.indexOf(i)>=0||(r[i]=e[i]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)i=o[n],t.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}var nh=i(5639);function rh(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function oh(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function sh(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?oh(Object(i),!0).forEach((function(t){rh(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):oh(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function lh(e){return lh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},lh(e)}function ah(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 ch(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 i,n=lh(e);if(t){var r=lh(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return ah(this,i)}}var hh=function(){};function uh(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function dh(e,t,i){var n=[i];if(t&&e)for(var r in t)t.hasOwnProperty(r)&&t[r]&&n.push("".concat(uh(e,r)));return n.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var fh=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===Dn(e)&&null!==e?[e]:[]},ph=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,sh({},ih(e,["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"]))};function mh(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function gh(e){return mh(e)?window.pageYOffset:e.scrollTop}function Oh(e,t){mh(e)?window.scrollTo(0,t):e.scrollTop=t}function vh(e,t,i,n){return i*((e=e/n-1)*e*e+1)+t}function yh(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:hh,r=gh(e),o=t-r,s=10,l=0;function a(){var t=vh(l+=s,r,o,i);Oh(e,t),l<i?window.requestAnimationFrame(a):n(e)}a()}function bh(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var wh=!1,xh={get passive(){return wh=!0}},Sh="undefined"!=typeof window?window:{};Sh.addEventListener&&Sh.removeEventListener&&(Sh.addEventListener("p",hh,xh),Sh.removeEventListener("p",hh,!1));var kh=wh;function $h(e){var t=e.maxHeight,i=e.menuEl,n=e.minHeight,r=e.placement,o=e.shouldScroll,s=e.isFixedPosition,l=e.theme.spacing,a=function(e){var t=getComputedStyle(e),i="absolute"===t.position,n=/(auto|scroll)/,r=document.documentElement;if("fixed"===t.position)return r;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!i||"static"!==t.position)&&n.test(t.overflow+t.overflowY+t.overflowX))return o;return r}(i),c={placement:"bottom",maxHeight:t};if(!i||!i.offsetParent)return c;var h=a.getBoundingClientRect().height,u=i.getBoundingClientRect(),d=u.bottom,f=u.height,p=u.top,m=i.offsetParent.getBoundingClientRect().top,g=window.innerHeight,O=gh(a),v=parseInt(getComputedStyle(i).marginBottom,10),y=parseInt(getComputedStyle(i).marginTop,10),b=m-y,w=g-p,x=b+O,S=h-O-p,k=d-g+O+v,$=O+p-y,_=160;switch(r){case"auto":case"bottom":if(w>=f)return{placement:"bottom",maxHeight:t};if(S>=f&&!s)return o&&yh(a,k,_),{placement:"bottom",maxHeight:t};if(!s&&S>=n||s&&w>=n)return o&&yh(a,k,_),{placement:"bottom",maxHeight:s?w-v:S-v};if("auto"===r||s){var T=t,Q=s?b:x;return Q>=n&&(T=Math.min(Q-v-l.controlHeight,t)),{placement:"top",maxHeight:T}}if("bottom"===r)return o&&Oh(a,k),{placement:"bottom",maxHeight:t};break;case"top":if(b>=f)return{placement:"top",maxHeight:t};if(x>=f&&!s)return o&&yh(a,$,_),{placement:"top",maxHeight:t};if(!s&&x>=n||s&&b>=n){var P=t;return(!s&&x>=n||s&&b>=n)&&(P=s?b-y:x-y),o&&yh(a,$,_),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return c}var _h=function(e){return"auto"===e?"bottom":e},Th=(0,l.createContext)({getPortalPlacement:null}),Qh=function(e){Mn(i,e);var t=ch(i);function i(){var e;An(this,i);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.getPlacement=function(t){var i=e.props,n=i.minMenuHeight,r=i.maxMenuHeight,o=i.menuPlacement,s=i.menuPosition,l=i.menuShouldScrollIntoView,a=i.theme;if(t){var c="fixed"===s,h=$h({maxHeight:r,menuEl:t,minHeight:n,placement:o,shouldScroll:l&&!c,isFixedPosition:c,theme:a}),u=e.context.getPortalPlacement;u&&u(h),e.setState(h)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,i=e.state.placement||_h(t);return sh(sh({},e.props),{},{placement:i,maxHeight:e.state.maxHeight})},e}return Rn(i,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),i}(l.Component);Qh.contextType=Th;var Ph=function(e){var t=e.theme,i=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*i,"px ").concat(3*i,"px"),textAlign:"center"}},Ah=Ph,Ch=Ph,Rh=function(e){var t=e.children,i=e.className,n=e.cx,r=e.getStyles,o=e.innerProps;return Gc("div",ql({css:r("noOptionsMessage",e),className:n({"menu-notice":!0,"menu-notice--no-options":!0},i)},o),t)};Rh.defaultProps={children:"No options"};var Eh=function(e){var t=e.children,i=e.className,n=e.cx,r=e.getStyles,o=e.innerProps;return Gc("div",ql({css:r("loadingMessage",e),className:n({"menu-notice":!0,"menu-notice--loading":!0},i)},o),t)};Eh.defaultProps={children:"Loading..."};var Mh,Dh=function(e){Mn(i,e);var t=ch(i);function i(){var e;An(this,i);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))).state={placement:null},e.getPortalPlacement=function(t){var i=t.placement;i!==_h(e.props.menuPlacement)&&e.setState({placement:i})},e}return Rn(i,[{key:"render",value:function(){var e=this.props,t=e.appendTo,i=e.children,n=e.className,r=e.controlElement,o=e.cx,s=e.innerProps,l=e.menuPlacement,a=e.menuPosition,h=e.getStyles,u="fixed"===a;if(!t&&!u||!r)return null;var d=this.state.placement||_h(l),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}}(r),p=u?0:window.pageYOffset,m=f[d]+p,g=Gc("div",ql({css:h("menuPortal",{offset:m,position:a,rect:f}),className:o({"menu-portal":!0},n)},s),i);return Gc(Th.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?(0,c.createPortal)(g,t):g)}}]),i}(l.Component);var qh,Nh,jh={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Vh=function(e){var t=e.size,i=ih(e,["size"]);return Gc("svg",ql({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:jh},i))},Wh=function(e){return Gc(Vh,ql({size:20},e),Gc("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"}))},zh=function(e){return Gc(Vh,ql({size:20},e),Gc("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"}))},Lh=function(e){var t=e.isFocused,i=e.theme,n=i.spacing.baseUnit,r=i.colors;return{label:"indicatorContainer",color:t?r.neutral60:r.neutral20,display:"flex",padding:2*n,transition:"color 150ms",":hover":{color:t?r.neutral80:r.neutral40}}},Bh=Lh,Ih=Lh,Xh=function(){var e=Yc.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_"}}}(Mh||(qh=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Nh||(Nh=qh.slice(0)),Mh=Object.freeze(Object.defineProperties(qh,{raw:{value:Object.freeze(Nh)}})))),Uh=function(e){var t=e.delay,i=e.offset;return Gc("span",{css:Yc({animation:"".concat(Xh," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:i?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Fh=function(e){var t=e.className,i=e.cx,n=e.getStyles,r=e.innerProps,o=e.isRtl;return Gc("div",ql({css:n("loadingIndicator",e),className:i({indicator:!0,"loading-indicator":!0},t)},r),Gc(Uh,{delay:0,offset:o}),Gc(Uh,{delay:160,offset:!0}),Gc(Uh,{delay:320,offset:!o}))};Fh.defaultProps={size:4};var Hh=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}},Zh=function(e){var t=e.children,i=e.innerProps;return Gc("div",i,t)},Gh=Zh,Yh=Zh;var Kh=function(e){var t=e.children,i=e.className,n=e.components,r=e.cx,o=e.data,s=e.getStyles,l=e.innerProps,a=e.isDisabled,c=e.removeProps,h=e.selectProps,u=n.Container,d=n.Label,f=n.Remove;return Gc(th,null,(function(n){var p=n.css,m=n.cx;return Gc(u,{data:o,innerProps:sh({className:m(p(s("multiValue",e)),r({"multi-value":!0,"multi-value--is-disabled":a},i))},l),selectProps:h},Gc(d,{data:o,innerProps:{className:m(p(s("multiValueLabel",e)),r({"multi-value__label":!0},i))},selectProps:h},t),Gc(f,{data:o,innerProps:sh({className:m(p(s("multiValueRemove",e)),r({"multi-value__remove":!0},i))},c),selectProps:h}))}))};Kh.defaultProps={cropWithEllipsis:!0};var Jh={ClearIndicator:function(e){var t=e.children,i=e.className,n=e.cx,r=e.getStyles,o=e.innerProps;return Gc("div",ql({css:r("clearIndicator",e),className:n({indicator:!0,"clear-indicator":!0},i)},o),t||Gc(Wh,null))},Control:function(e){var t=e.children,i=e.cx,n=e.getStyles,r=e.className,o=e.isDisabled,s=e.isFocused,l=e.innerRef,a=e.innerProps,c=e.menuIsOpen;return Gc("div",ql({ref:l,css:n("control",e),className:i({control:!0,"control--is-disabled":o,"control--is-focused":s,"control--menu-is-open":c},r)},a),t)},DropdownIndicator:function(e){var t=e.children,i=e.className,n=e.cx,r=e.getStyles,o=e.innerProps;return Gc("div",ql({css:r("dropdownIndicator",e),className:n({indicator:!0,"dropdown-indicator":!0},i)},o),t||Gc(zh,null))},DownChevron:zh,CrossIcon:Wh,Group:function(e){var t=e.children,i=e.className,n=e.cx,r=e.getStyles,o=e.Heading,s=e.headingProps,l=e.innerProps,a=e.label,c=e.theme,h=e.selectProps;return Gc("div",ql({css:r("group",e),className:n({group:!0},i)},l),Gc(o,ql({},s,{selectProps:h,theme:c,getStyles:r,cx:n}),a),Gc("div",null,t))},GroupHeading:function(e){var t=e.getStyles,i=e.cx,n=e.className,r=ph(e);r.data;var o=ih(r,["data"]);return Gc("div",ql({css:t("groupHeading",e),className:i({"group-heading":!0},n)},o))},IndicatorsContainer:function(e){var t=e.children,i=e.className,n=e.cx,r=e.innerProps,o=e.getStyles;return Gc("div",ql({css:o("indicatorsContainer",e),className:n({indicators:!0},i)},r),t)},IndicatorSeparator:function(e){var t=e.className,i=e.cx,n=e.getStyles,r=e.innerProps;return Gc("span",ql({},r,{css:n("indicatorSeparator",e),className:i({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,i=e.cx,n=e.getStyles,r=ph(e),o=r.innerRef,s=r.isDisabled,l=r.isHidden,a=ih(r,["innerRef","isDisabled","isHidden"]);return Gc("div",{css:n("input",e)},Gc(nh.Z,ql({className:i({input:!0},t),inputRef:o,inputStyle:Hh(l),disabled:s},a)))},LoadingIndicator:Fh,Menu:function(e){var t=e.children,i=e.className,n=e.cx,r=e.getStyles,o=e.innerRef,s=e.innerProps;return Gc("div",ql({css:r("menu",e),className:n({menu:!0},i),ref:o},s),t)},MenuList:function(e){var t=e.children,i=e.className,n=e.cx,r=e.getStyles,o=e.innerProps,s=e.innerRef,l=e.isMulti;return Gc("div",ql({css:r("menuList",e),className:n({"menu-list":!0,"menu-list--is-multi":l},i),ref:s},o),t)},MenuPortal:Dh,LoadingMessage:Eh,NoOptionsMessage:Rh,MultiValue:Kh,MultiValueContainer:Gh,MultiValueLabel:Yh,MultiValueRemove:function(e){var t=e.children,i=e.innerProps;return Gc("div",i,t||Gc(Wh,{size:14}))},Option:function(e){var t=e.children,i=e.className,n=e.cx,r=e.getStyles,o=e.isDisabled,s=e.isFocused,l=e.isSelected,a=e.innerRef,c=e.innerProps;return Gc("div",ql({css:r("option",e),className:n({option:!0,"option--is-disabled":o,"option--is-focused":s,"option--is-selected":l},i),ref:a},c),t)},Placeholder:function(e){var t=e.children,i=e.className,n=e.cx,r=e.getStyles,o=e.innerProps;return Gc("div",ql({css:r("placeholder",e),className:n({placeholder:!0},i)},o),t)},SelectContainer:function(e){var t=e.children,i=e.className,n=e.cx,r=e.getStyles,o=e.innerProps,s=e.isDisabled,l=e.isRtl;return Gc("div",ql({css:r("container",e),className:n({"--is-disabled":s,"--is-rtl":l},i)},o),t)},SingleValue:function(e){var t=e.children,i=e.className,n=e.cx,r=e.getStyles,o=e.isDisabled,s=e.innerProps;return Gc("div",ql({css:r("singleValue",e),className:n({"single-value":!0,"single-value--is-disabled":o},i)},s),t)},ValueContainer:function(e){var t=e.children,i=e.className,n=e.cx,r=e.innerProps,o=e.isMulti,s=e.getStyles,l=e.hasValue;return Gc("div",ql({css:s("valueContainer",e),className:n({"value-container":!0,"value-container--is-multi":o,"value-container--has-value":l},i)},r),t)}},eu=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function tu(e,t){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(n=e[i],r=t[i],!(n===r||eu(n)&&eu(r)))return!1;var n,r;return!0}const iu=function(e,t){var i;void 0===t&&(t=tu);var n,r=[],o=!1;return function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return o&&i===this&&t(s,r)||(n=e.apply(this,s),o=!0,i=this,r=s),n}};for(var nu={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"},ru=function(e){return Gc("span",ql({css:nu},e))},ou={guidance:function(e){var t=e.isSearchable,i=e.isMulti,n=e.isDisabled,r=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(r?", 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(i?" 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,i=e.label,n=void 0===i?"":i,r=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"select-option":return"option ".concat(n,r?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,i=e.focused,n=void 0===i?{}:i,r=e.options,o=e.label,s=void 0===o?"":o,l=e.selectValue,a=e.isDisabled,c=e.isSelected,h=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&l)return"value ".concat(s," focused, ").concat(h(l,n),".");if("menu"===t){var u=a?" disabled":"",d="".concat(c?"selected":"focused").concat(u);return"option ".concat(s," ").concat(d,", ").concat(h(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,i=e.resultsMessage;return"".concat(i).concat(t?" for search term "+t:"",".")}},su=function(e){var t=e.ariaSelection,i=e.focusedOption,n=e.focusedValue,r=e.focusableOptions,o=e.isFocused,s=e.selectValue,c=e.selectProps,h=c.ariaLiveMessages,u=c.getOptionLabel,d=c.inputValue,f=c.isMulti,p=c.isOptionDisabled,m=c.isSearchable,g=c.menuIsOpen,O=c.options,v=c.screenReaderStatus,y=c.tabSelectsValue,b=c["aria-label"],w=c["aria-live"],x=(0,l.useMemo)((function(){return sh(sh({},ou),h||{})}),[h]),S=(0,l.useMemo)((function(){var e,i="";if(t&&x.onChange){var n=t.option,r=t.removedValue,o=t.value,s=r||n||(e=o,Array.isArray(e)?null:e),l=sh({isDisabled:s&&p(s),label:s?u(s):""},t);i=x.onChange(l)}return i}),[t,p,u,x]),k=(0,l.useMemo)((function(){var e="",t=i||n,r=!!(i&&s&&s.includes(i));if(t&&x.onFocus){var o={focused:t,label:u(t),isDisabled:p(t),isSelected:r,options:O,context:t===i?"menu":"value",selectValue:s};e=x.onFocus(o)}return e}),[i,n,u,p,x,O,s]),$=(0,l.useMemo)((function(){var e="";if(g&&O.length&&x.onFilter){var t=v({count:r.length});e=x.onFilter({inputValue:d,resultsMessage:t})}return e}),[r,d,g,x,O,v]),_=(0,l.useMemo)((function(){var e="";if(x.guidance){var t=n?"value":g?"menu":"input";e=x.guidance({"aria-label":b,context:t,isDisabled:i&&p(i),isMulti:f,isSearchable:m,tabSelectsValue:y})}return e}),[b,i,n,f,p,m,g,x,y]),T="".concat(k," ").concat($," ").concat(_);return Gc(ru,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text"},o&&Gc(a().Fragment,null,Gc("span",{id:"aria-selection"},S),Gc("span",{id:"aria-context"},T)))},lu=[{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źẑżžẓẕƶȥɀⱬꝣ"}],au=new RegExp("["+lu.map((function(e){return e.letters})).join("")+"]","g"),cu={},hu=0;hu<lu.length;hu++)for(var uu=lu[hu],du=0;du<uu.letters.length;du++)cu[uu.letters[du]]=uu.base;var fu=function(e){return e.replace(au,(function(e){return cu[e]}))},pu=iu(fu),mu=function(e){return e.replace(/^\s+|\s+$/g,"")},gu=function(e){return"".concat(e.label," ").concat(e.value)};function Ou(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef;e.emotion;var i=ih(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]);return Gc("input",ql({ref:t},i,{css:Yc({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 vu=["boxSizing","height","overflow","paddingRight","position"],yu={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function bu(e){e.preventDefault()}function wu(e){e.stopPropagation()}function xu(){var e=this.scrollTop,t=this.scrollHeight,i=e+this.offsetHeight;0===e?this.scrollTop=1:i===t&&(this.scrollTop=e-1)}function Su(){return"ontouchstart"in window||navigator.maxTouchPoints}var ku=!("undefined"==typeof window||!window.document||!window.document.createElement),$u=0,_u={capture:!1,passive:!1};var Tu=function(){return document.activeElement&&document.activeElement.blur()},Qu={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Pu(e){var t=e.children,i=e.lockEnabled,n=e.captureEnabled,r=function(e){var t=e.isEnabled,i=e.onBottomArrive,n=e.onBottomLeave,r=e.onTopArrive,o=e.onTopLeave,s=(0,l.useRef)(!1),a=(0,l.useRef)(!1),c=(0,l.useRef)(0),h=(0,l.useRef)(null),u=(0,l.useCallback)((function(e,t){if(null!==h.current){var l=h.current,c=l.scrollTop,u=l.scrollHeight,d=l.clientHeight,f=h.current,p=t>0,m=u-d-c,g=!1;m>t&&s.current&&(n&&n(e),s.current=!1),p&&a.current&&(o&&o(e),a.current=!1),p&&t>m?(i&&!s.current&&i(e),f.scrollTop=u,g=!0,s.current=!0):!p&&-t>c&&(r&&!a.current&&r(e),f.scrollTop=0,g=!0,a.current=!0),g&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[]),d=(0,l.useCallback)((function(e){u(e,e.deltaY)}),[u]),f=(0,l.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),p=(0,l.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;u(e,t)}),[u]),m=(0,l.useCallback)((function(e){if(e){var t=!!kh&&{passive:!1};"function"==typeof e.addEventListener&&e.addEventListener("wheel",d,t),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",f,t),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",p,t)}}),[p,f,d]),g=(0,l.useCallback)((function(e){e&&("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",d,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",f,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",p,!1))}),[p,f,d]);return(0,l.useEffect)((function(){if(t){var e=h.current;return m(e),function(){g(e)}}}),[t,m,g]),function(e){h.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,i=e.accountForScrollbars,n=void 0===i||i,r=(0,l.useRef)({}),o=(0,l.useRef)(null),s=(0,l.useCallback)((function(e){if(ku){var t=document.body,i=t&&t.style;if(n&&vu.forEach((function(e){var t=i&&i[e];r.current[e]=t})),n&&$u<1){var o=parseInt(r.current.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,l=window.innerWidth-s+o||0;Object.keys(yu).forEach((function(e){var t=yu[e];i&&(i[e]=t)})),i&&(i.paddingRight="".concat(l,"px"))}t&&Su()&&(t.addEventListener("touchmove",bu,_u),e&&(e.addEventListener("touchstart",xu,_u),e.addEventListener("touchmove",wu,_u))),$u+=1}}),[]),a=(0,l.useCallback)((function(e){if(ku){var t=document.body,i=t&&t.style;$u=Math.max($u-1,0),n&&$u<1&&vu.forEach((function(e){var t=r.current[e];i&&(i[e]=t)})),t&&Su()&&(t.removeEventListener("touchmove",bu,_u),e&&(e.removeEventListener("touchstart",xu,_u),e.removeEventListener("touchmove",wu,_u)))}}),[]);return(0,l.useEffect)((function(){if(t){var e=o.current;return s(e),function(){a(e)}}}),[t,s,a]),function(e){o.current=e}}({isEnabled:i});return Gc(a().Fragment,null,i&&Gc("div",{onClick:Tu,css:Qu}),t((function(e){r(e),o(e)})))}var Au=function(e){return e.label},Cu=function(e){return e.value},Ru={clearIndicator:Ih,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,i=e.isFocused,n=e.theme,r=n.colors,o=n.borderRadius,s=n.spacing;return{label:"control",alignItems:"center",backgroundColor:t?r.neutral5:r.neutral0,borderColor:t?r.neutral10:i?r.primary:r.neutral20,borderRadius:o,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(r.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:i?r.primary:r.neutral30}}},dropdownIndicator:Bh,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,i=e.theme,n=i.spacing.baseUnit,r=i.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?r.neutral10:r.neutral20,marginBottom:2*n,marginTop:2*n,width:1}},input:function(e){var t=e.isDisabled,i=e.theme,n=i.spacing,r=i.colors;return{margin:n.baseUnit/2,paddingBottom:n.baseUnit/2,paddingTop:n.baseUnit/2,visibility:t?"hidden":"visible",color:r.neutral80}},loadingIndicator:function(e){var t=e.isFocused,i=e.size,n=e.theme,r=n.colors,o=n.spacing.baseUnit;return{label:"loadingIndicator",color:t?r.neutral60:r.neutral20,display:"flex",padding:2*o,transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"}},loadingMessage:Ch,menu:function(e){var t,i=e.placement,r=e.theme,o=r.borderRadius,s=r.spacing,l=r.colors;return n(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(i),"100%"),n(t,"backgroundColor",l.neutral0),n(t,"borderRadius",o),n(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),n(t,"marginBottom",s.menuGutter),n(t,"marginTop",s.menuGutter),n(t,"position","absolute"),n(t,"width","100%"),n(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,i=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:i,paddingTop:i,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,i=e.offset,n=e.position;return{left:t.left,position:n,top:i,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,i=t.spacing,n=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:n/2,display:"flex",margin:i.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,i=t.borderRadius,n=t.colors,r=e.cropWithEllipsis;return{borderRadius:i/2,color:n.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:r?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,i=t.spacing,n=t.borderRadius,r=t.colors;return{alignItems:"center",borderRadius:n/2,backgroundColor:e.isFocused&&r.dangerLight,display:"flex",paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:r.dangerLight,color:r.danger}}},noOptionsMessage:Ah,option:function(e){var t=e.isDisabled,i=e.isFocused,n=e.isSelected,r=e.theme,o=r.spacing,s=r.colors;return{label:"option",backgroundColor:n?s.primary:i?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&&(n?s.primary:s.primary50)}}},placeholder:function(e){var t=e.theme,i=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,i=e.theme,n=i.spacing,r=i.colors;return{label:"singleValue",color:t?r.neutral40:r.neutral80,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,maxWidth:"calc(100% - ".concat(2*n.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 Eu={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}},Mu={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:bh(),captureMenuScroll:!bh(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e){return function(t,i){var n=sh({ignoreCase:!0,ignoreAccents:!0,stringify:gu,trim:!0,matchFrom:"any"},e),r=n.ignoreCase,o=n.ignoreAccents,s=n.stringify,l=n.trim,a=n.matchFrom,c=l?mu(i):i,h=l?mu(s(t)):s(t);return r&&(c=c.toLowerCase(),h=h.toLowerCase()),o&&(c=pu(c),h=fu(h)),"start"===a?h.substr(0,c.length)===c:h.indexOf(c)>-1}}(),formatGroupLabel:function(e){return e.label},getOptionLabel:Au,getOptionValue:Cu,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 Du(e,t,i,n){return{type:"option",data:t,isDisabled:zu(e,t,i),isSelected:Lu(e,t,i),label:Vu(e,t),value:Wu(e,t),index:n}}function qu(e,t){return e.options.map((function(i,n){if(i.options){var r=i.options.map((function(i,n){return Du(e,i,t,n)})).filter((function(t){return ju(e,t)}));return r.length>0?{type:"group",data:i,options:r,index:n}:void 0}var o=Du(e,i,t,n);return ju(e,o)?o:void 0})).filter((function(e){return!!e}))}function Nu(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,s(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function ju(e,t){var i=e.inputValue,n=void 0===i?"":i,r=t.data,o=t.isSelected,s=t.label,l=t.value;return(!Iu(e)||!o)&&Bu(e,{label:s,value:l,data:r},n)}var Vu=function(e,t){return e.getOptionLabel(t)},Wu=function(e,t){return e.getOptionValue(t)};function zu(e,t,i){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,i)}function Lu(e,t,i){if(i.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,i);var n=Wu(e,t);return i.some((function(t){return Wu(e,t)===n}))}function Bu(e,t,i){return!e.filterOption||e.filterOption(t,i)}var Iu=function(e){var t=e.hideSelectedOptions,i=e.isMulti;return void 0===t?i:t},Xu=1,Uu=function(e){Mn(i,e);var t=ch(i);function i(e){var n;return An(this,i),(n=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!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 i=n.props,r=i.onChange,o=i.name;t.name=o,n.ariaOnChange(e,t),r(e,t)},n.setValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",i=arguments.length>2?arguments[2]:void 0,r=n.props,o=r.closeMenuOnSelect,s=r.isMulti;n.onInputChange("",{action:"set-value"}),o&&(n.setState({inputIsHiddenAfterUpdate:!s}),n.onMenuClose()),n.setState({clearFocusValueOnUpdate:!0}),n.onChange(e,{action:t,option:i})},n.selectOption=function(e){var t=n.props,i=t.blurInputOnSelect,r=t.isMulti,o=t.name,l=n.state.selectValue,a=r&&n.isOptionSelected(e,l),c=n.isOptionDisabled(e,l);if(a){var h=n.getOptionValue(e);n.setValue(l.filter((function(e){return n.getOptionValue(e)!==h})),"deselect-option",e)}else{if(c)return void n.ariaOnChange(e,{action:"select-option",name:o});r?n.setValue([].concat(s(l),[e]),"select-option",e):n.setValue(e,"select-option")}i&&n.blurInput()},n.removeValue=function(e){var t=n.props.isMulti,i=n.state.selectValue,r=n.getOptionValue(e),o=i.filter((function(e){return n.getOptionValue(e)!==r})),s=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(n.props.isMulti?[]:null,{action:"clear",removedValues:e})},n.popValue=function(){var e=n.props.isMulti,t=n.state.selectValue,i=t[t.length-1],r=t.slice(0,t.length-1),o=e?r:r[0]||null;n.onChange(o,{action:"pop-value",removedValue:i})},n.getValue=function(){return n.state.selectValue},n.cx=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return dh.apply(void 0,[n.props.classNamePrefix].concat(t))},n.getOptionLabel=function(e){return Vu(n.props,e)},n.getOptionValue=function(e){return Wu(n.props,e)},n.getStyles=function(e,t){var i=Ru[e](t);i.boxSizing="border-box";var r=n.props.styles[e];return r?r(i,t):i},n.getElementId=function(e){return"".concat(n.instancePrefix,"-").concat(e)},n.getComponents=function(){return e=n.props,sh(sh({},Jh),e.components);var e},n.buildCategorizedOptions=function(){return qu(n.props,n.state.selectValue)},n.getCategorizedOptions=function(){return n.props.menuIsOpen?n.buildCategorizedOptions():[]},n.buildFocusableOptions=function(){return Nu(n.buildCategorizedOptions())},n.getFocusableOptions=function(){return n.props.menuIsOpen?n.buildFocusableOptions():[]},n.ariaOnChange=function(e,t){n.setState({ariaSelection:sh({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){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,i=t.isMulti,r=t.menuIsOpen;n.focusInput(),r?(n.setState({inputIsHiddenAfterUpdate:!i}),n.onMenuClose()):n.openMenu("first"),e.preventDefault(),e.stopPropagation()}},n.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(n.clearValue(),e.stopPropagation(),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&&mh(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,i=t&&t.item(0);i&&(n.initialTouchX=i.clientX,n.initialTouchY=i.clientY,n.userIsDragging=!1)},n.onTouchMove=function(e){var t=e.touches,i=t&&t.item(0);if(i){var r=Math.abs(i.clientX-n.initialTouchX),o=Math.abs(i.clientY-n.initialTouchY);n.userIsDragging=r>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=e.currentTarget.value;n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange(t,{action:"input-change"}),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){n.menuListRef&&n.menuListRef.contains(document.activeElement)?n.inputRef.focus():(n.props.onBlur&&n.props.onBlur(e),n.onInputChange("",{action:"input-blur"}),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 Iu(n.props)},n.onKeyDown=function(e){var t=n.props,i=t.isMulti,r=t.backspaceRemovesValue,o=t.escapeClearsValue,s=t.inputValue,l=t.isClearable,a=t.isDisabled,c=t.menuIsOpen,h=t.onKeyDown,u=t.tabSelectsValue,d=t.openMenuOnFocus,f=n.state,p=f.focusedOption,m=f.focusedValue,g=f.selectValue;if(!(a||"function"==typeof h&&(h(e),e.defaultPrevented))){switch(n.blockOptionHover=!0,e.key){case"ArrowLeft":if(!i||s)return;n.focusValue("previous");break;case"ArrowRight":if(!i||s)return;n.focusValue("next");break;case"Delete":case"Backspace":if(s)return;if(m)n.removeValue(m);else{if(!r)return;i?n.popValue():l&&n.clearValue()}break;case"Tab":if(n.isComposing)return;if(e.shiftKey||!c||!u||!p||d&&n.isOptionSelected(p,g))return;n.selectOption(p);break;case"Enter":if(229===e.keyCode)break;if(c){if(!p)return;if(n.isComposing)return;n.selectOption(p);break}return;case"Escape":c?(n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange("",{action:"menu-close"}),n.onMenuClose()):l&&o&&n.clearValue();break;case" ":if(s)return;if(!c){n.openMenu("first");break}if(!p)return;n.selectOption(p);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||++Xu),n.state.selectValue=fh(e.value),n}return Rn(i,[{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,i,n,r,o,s=this.props,l=s.isDisabled,a=s.menuIsOpen,c=this.state.isFocused;(c&&!l&&e.isDisabled||c&&a&&!e.menuIsOpen)&&this.focusInput(),c&&l&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,i=this.focusedOptionRef,n=t.getBoundingClientRect(),r=i.getBoundingClientRect(),o=i.offsetHeight/3,r.bottom+o>n.bottom?Oh(t,Math.min(i.offsetTop+i.clientHeight-t.offsetHeight+o,t.scrollHeight)):r.top-o<n.top&&Oh(t,Math.max(i.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,i=this.state,n=i.selectValue,r=i.isFocused,o=this.buildFocusableOptions(),s="first"===e?0:o.length-1;if(!this.props.isMulti){var l=o.indexOf(n[0]);l>-1&&(s=l)}this.scrollToFocusedOptionOnUpdate=!(r&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[s]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,i=t.selectValue,n=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var r=i.indexOf(n);n||(r=-1);var o=i.length-1,s=-1;if(i.length){switch(e){case"previous":s=0===r?0:-1===r?o:r-1;break;case"next":r>-1&&r<o&&(s=r+1)}this.setState({inputIsHidden:-1!==s,focusedValue:i[s]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,i=this.state.focusedOption,n=this.getFocusableOptions();if(n.length){var r=0,o=n.indexOf(i);i||(o=-1),"up"===e?r=o>0?o-1:n.length-1:"down"===e?r=(o+1)%n.length:"pageup"===e?(r=o-t)<0&&(r=0):"pagedown"===e?(r=o+t)>n.length-1&&(r=n.length-1):"last"===e&&(r=n.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:n[r],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Eu):sh(sh({},Eu),this.props.theme):Eu}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,i=this.getStyles,n=this.getValue,r=this.selectOption,o=this.setValue,s=this.props,l=s.isMulti,a=s.isRtl,c=s.options;return{clearValue:e,cx:t,getStyles:i,getValue:n,hasValue:this.hasValue(),isMulti:l,isRtl:a,options:c,selectOption:r,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,i=e.isMulti;return void 0===t?i:t}},{key:"isOptionDisabled",value:function(e,t){return zu(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Lu(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Bu(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var i=this.props.inputValue,n=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:i,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,i=e.isSearchable,n=e.inputId,r=e.inputValue,o=e.tabIndex,s=e.form,l=this.getComponents().Input,c=this.state.inputIsHidden,h=this.commonProps,u=n||this.getElementId("input"),d={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};return i?a().createElement(l,ql({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:u,innerRef:this.getInputRef,isDisabled:t,isHidden:c,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:o,form:s,type:"text",value:r},d)):a().createElement(Ou,ql({id:u,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:hh,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:o,form:s,value:""},d))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),i=t.MultiValue,n=t.MultiValueContainer,r=t.MultiValueLabel,o=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,c=this.commonProps,h=this.props,u=h.controlShouldRenderValue,d=h.isDisabled,f=h.isMulti,p=h.inputValue,m=h.placeholder,g=this.state,O=g.selectValue,v=g.focusedValue,y=g.isFocused;if(!this.hasValue()||!u)return p?null:a().createElement(l,ql({},c,{key:"placeholder",isDisabled:d,isFocused:y}),m);if(f){var b=O.map((function(t,s){var l=t===v;return a().createElement(i,ql({},c,{components:{Container:n,Label:r,Remove:o},isFocused:l,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 b}if(p)return null;var w=O[0];return a().createElement(s,ql({},c,{data:w,isDisabled:d}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,i=this.props,n=i.isDisabled,r=i.isLoading,o=this.state.isFocused;if(!this.isClearable()||!e||n||!this.hasValue()||r)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return a().createElement(e,ql({},t,{innerProps:s,isFocused:o}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,i=this.props,n=i.isDisabled,r=i.isLoading,o=this.state.isFocused;if(!e||!r)return null;return a().createElement(e,ql({},t,{innerProps:{"aria-hidden":"true"},isDisabled:n,isFocused:o}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,i=e.IndicatorSeparator;if(!t||!i)return null;var n=this.commonProps,r=this.props.isDisabled,o=this.state.isFocused;return a().createElement(i,ql({},n,{isDisabled:r,isFocused:o}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,i=this.props.isDisabled,n=this.state.isFocused,r={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return a().createElement(e,ql({},t,{innerProps:r,isDisabled:i,isFocused:n}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),i=t.Group,n=t.GroupHeading,r=t.Menu,o=t.MenuList,s=t.MenuPortal,l=t.LoadingMessage,c=t.NoOptionsMessage,h=t.Option,u=this.commonProps,d=this.state.focusedOption,f=this.props,p=f.captureMenuScroll,m=f.inputValue,g=f.isLoading,O=f.loadingMessage,v=f.minMenuHeight,y=f.maxMenuHeight,b=f.menuIsOpen,w=f.menuPlacement,x=f.menuPosition,S=f.menuPortalTarget,k=f.menuShouldBlockScroll,$=f.menuShouldScrollIntoView,_=f.noOptionsMessage,T=f.onMenuScrollToTop,Q=f.onMenuScrollToBottom;if(!b)return null;var P,A=function(t,i){var n=t.type,r=t.data,o=t.isDisabled,s=t.isSelected,l=t.label,c=t.value,f=d===r,p=o?void 0:function(){return e.onOptionHover(r)},m=o?void 0:function(){return e.selectOption(r)},g="".concat(e.getElementId("option"),"-").concat(i),O={id:g,onClick:m,onMouseMove:p,onMouseOver:p,tabIndex:-1};return a().createElement(h,ql({},u,{innerProps:O,data:r,isDisabled:o,isSelected:s,key:g,label:l,type:n,value:c,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())P=this.getCategorizedOptions().map((function(t){if("group"===t.type){var r=t.data,o=t.options,s=t.index,l="".concat(e.getElementId("group"),"-").concat(s),c="".concat(l,"-heading");return a().createElement(i,ql({},u,{key:l,data:r,options:o,Heading:n,headingProps:{id:c,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(g){var C=O({inputValue:m});if(null===C)return null;P=a().createElement(l,u,C)}else{var R=_({inputValue:m});if(null===R)return null;P=a().createElement(c,u,R)}var E={minMenuHeight:v,maxMenuHeight:y,menuPlacement:w,menuPosition:x,menuShouldScrollIntoView:$},M=a().createElement(Qh,ql({},u,E),(function(t){var i=t.ref,n=t.placerProps,s=n.placement,l=n.maxHeight;return a().createElement(r,ql({},u,E,{innerRef:i,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:s}),a().createElement(Pu,{captureEnabled:p,onTopArrive:T,onBottomArrive:Q,lockEnabled:k},(function(t){return a().createElement(o,ql({},u,{innerRef:function(i){e.getMenuListRef(i),t(i)},isLoading:g,maxHeight:l,focusedOption:d}),P)})))}));return S||"fixed"===x?a().createElement(s,ql({},u,{appendTo:S,controlElement:this.controlRef,menuPlacement:w,menuPosition:x}),M):M}},{key:"renderFormField",value:function(){var e=this,t=this.props,i=t.delimiter,n=t.isDisabled,r=t.isMulti,o=t.name,s=this.state.selectValue;if(o&&!n){if(r){if(i){var l=s.map((function(t){return e.getOptionValue(t)})).join(i);return a().createElement("input",{name:o,type:"hidden",value:l})}var c=s.length>0?s.map((function(t,i){return a().createElement("input",{key:"i-".concat(i),name:o,type:"hidden",value:e.getOptionValue(t)})})):a().createElement("input",{name:o,type:"hidden"});return a().createElement("div",null,c)}var h=s[0]?this.getOptionValue(s[0]):"";return a().createElement("input",{name:o,type:"hidden",value:h})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,i=t.ariaSelection,n=t.focusedOption,r=t.focusedValue,o=t.isFocused,s=t.selectValue,l=this.getFocusableOptions();return a().createElement(su,ql({},e,{ariaSelection:i,focusedOption:n,focusedValue:r,isFocused:o,selectValue:s,focusableOptions:l}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,i=e.IndicatorsContainer,n=e.SelectContainer,r=e.ValueContainer,o=this.props,s=o.className,l=o.id,c=o.isDisabled,h=o.menuIsOpen,u=this.state.isFocused,d=this.commonProps=this.getCommonProps();return a().createElement(n,ql({},d,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:u}),this.renderLiveRegion(),a().createElement(t,ql({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:u,menuIsOpen:h}),a().createElement(r,ql({},d,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),a().createElement(i,ql({},d,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var i=t.prevProps,n=t.clearFocusValueOnUpdate,r=t.inputIsHiddenAfterUpdate,o=e.options,s=e.value,l=e.menuIsOpen,a=e.inputValue,c={};if(i&&(s!==i.value||o!==i.options||l!==i.menuIsOpen||a!==i.inputValue)){var h=fh(s),u=l?function(e,t){return Nu(qu(e,t))}(e,h):[],d=n?function(e,t){var i=e.focusedValue,n=e.selectValue.indexOf(i);if(n>-1){if(t.indexOf(i)>-1)return i;if(n<t.length)return t[n]}return null}(t,h):null,f=function(e,t){var i=e.focusedOption;return i&&t.indexOf(i)>-1?i:t[0]}(t,u);c={selectValue:h,focusedOption:f,focusedValue:d,clearFocusValueOnUpdate:!1}}var p=null!=r&&e!==i?{inputIsHidden:r,inputIsHiddenAfterUpdate:void 0}:{};return sh(sh(sh({},c),p),{},{prevProps:e})}}]),i}(l.Component);Uu.defaultProps=Mu;var Fu={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},Hu=function(e){var t,i;return i=t=function(t){Mn(n,t);var i=ch(n);function n(){var e;An(this,n);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=i.call.apply(i,[this].concat(r))).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,i){e.callProp("onChange",t,i),e.setState({value:t})},e.onInputChange=function(t,i){var n=e.callProp("onInputChange",t,i);e.setState({inputValue:void 0!==n?n:t})},e.onMenuOpen=function(){e.callProp("onMenuOpen"),e.setState({menuIsOpen:!0})},e.onMenuClose=function(){e.callProp("onMenuClose"),e.setState({menuIsOpen:!1})},e}return Rn(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,i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];return(t=this.props)[e].apply(t,n)}}},{key:"render",value:function(){var t=this,i=this.props;i.defaultInputValue,i.defaultMenuIsOpen,i.defaultValue;var n=ih(i,["defaultInputValue","defaultMenuIsOpen","defaultValue"]);return a().createElement(e,ql({},n,{ref:function(e){t.select=e},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}(l.Component),t.defaultProps=Fu,i};l.Component;const Zu=Hu(Uu);var Gu={cacheOptions:!1,defaultOptions:!1,filterOption:null,isLoading:!1},Yu=function(e){var t,i;return i=t=function(t){Mn(r,t);var i=ch(r);function r(e){var t;return An(this,r),(t=i.call(this)).select=void 0,t.lastRequest=void 0,t.mounted=!1,t.handleInputChange=function(e,i){var r=t.props,o=r.cacheOptions,s=function(e,t,i){if(i){var n=i(e,t);if("string"==typeof n)return n}return e}(e,i,r.onInputChange);if(!s)return delete t.lastRequest,void t.setState({inputValue:"",loadedInputValue:"",loadedOptions:[],isLoading:!1,passEmptyOptions:!1});if(o&&t.state.optionsCache[s])t.setState({inputValue:s,loadedInputValue:s,loadedOptions:t.state.optionsCache[s],isLoading:!1,passEmptyOptions:!1});else{var l=t.lastRequest={};t.setState({inputValue:s,isLoading:!0,passEmptyOptions:!t.state.loadedInputValue},(function(){t.loadOptions(s,(function(e){t.mounted&&l===t.lastRequest&&(delete t.lastRequest,t.setState((function(t){return{isLoading:!1,loadedInputValue:s,loadedOptions:e||[],passEmptyOptions:!1,optionsCache:e?sh(sh({},t.optionsCache),{},n({},s,e)):t.optionsCache}})))}))}))}return s},t.state={defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0,inputValue:void 0!==e.inputValue?e.inputValue:"",isLoading:!0===e.defaultOptions,loadedOptions:[],passEmptyOptions:!1,optionsCache:{},prevDefaultOptions:void 0,prevCacheOptions:void 0},t}return Rn(r,[{key:"componentDidMount",value:function(){var e=this;this.mounted=!0;var t=this.props.defaultOptions,i=this.state.inputValue;!0===t&&this.loadOptions(i,(function(t){if(e.mounted){var i=!!e.lastRequest;e.setState({defaultOptions:t||[],isLoading:i})}}))}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"loadOptions",value:function(e,t){var i=this.props.loadOptions;if(!i)return t();var n=i(e,t);n&&"function"==typeof n.then&&n.then(t,(function(){return t()}))}},{key:"render",value:function(){var t=this,i=this.props;i.loadOptions;var n=i.isLoading,r=ih(i,["loadOptions","isLoading"]),o=this.state,s=o.defaultOptions,l=o.inputValue,c=o.isLoading,h=o.loadedInputValue,u=o.loadedOptions,d=o.passEmptyOptions?[]:l&&h?u:s||[];return a().createElement(e,ql({},r,{ref:function(e){t.select=e},options:d,isLoading:c||n,onInputChange:this.handleInputChange}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var i=e.cacheOptions!==t.prevCacheOptions?{prevCacheOptions:e.cacheOptions,optionsCache:{}}:{},n=e.defaultOptions!==t.prevDefaultOptions?{prevDefaultOptions:e.defaultOptions,defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0}:{};return sh(sh({},i),n)}}]),r}(l.Component),t.defaultProps=Gu,i};const Ku=Yu(Hu(Uu));var Ju=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,n=String(e).toLowerCase(),r=String(i.getOptionValue(t)).toLowerCase(),o=String(i.getOptionLabel(t)).toLowerCase();return r===n||o===n},ed=sh({allowCreateWhileLoading:!1,createOptionPosition:"last"},{formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,i,n){return!(!e||t.some((function(t){return Ju(e,t,n)}))||i.some((function(t){return Ju(e,t,n)})))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}},getOptionValue:Cu,getOptionLabel:Au}),td=function(e){var t,i;return i=t=function(t){Mn(n,t);var i=ch(n);function n(e){var t;An(this,n),(t=i.call(this,e)).select=void 0,t.onChange=function(e,i){var n=t.props,r=n.getNewOptionData,o=n.inputValue,l=n.isMulti,a=n.onChange,c=n.onCreateOption,h=n.value,u=n.name;if("select-option"!==i.action)return a(e,i);var d=t.state.newOption,f=Array.isArray(e)?e:[e];if(f[f.length-1]!==d)a(e,i);else if(c)c(o);else{var p=r(o,o),m={action:"create-option",name:u,option:p};a(l?[].concat(s(fh(h)),[p]):p,m)}};var r=e.options||[];return t.state={newOption:void 0,options:r},t}return Rn(n,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"render",value:function(){var t=this,i=this.state.options;return a().createElement(e,ql({},this.props,{ref:function(e){t.select=e},options:i,onChange:this.onChange}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var i=e.allowCreateWhileLoading,n=e.createOptionPosition,r=e.formatCreateLabel,o=e.getNewOptionData,l=e.inputValue,a=e.isLoading,c=e.isValidNewOption,h=e.value,u=e.getOptionValue,d=e.getOptionLabel,f=e.options||[],p=t.newOption;return{newOption:p=c(l,fh(h),f,{getOptionValue:u,getOptionLabel:d})?o(l,r(l)):void 0,options:!i&&a||!p?f:"first"===n?[p].concat(s(f)):[].concat(s(f),[p])}}}]),n}(l.Component),t.defaultProps=ed,i};Hu(td(Uu));const id=Yu(Hu(td(Uu)));const nd="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function rd(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function od(e){return"nodeType"in e}function sd(e){var t,i;return e?rd(e)?e:od(e)&&null!=(t=null==(i=e.ownerDocument)?void 0:i.defaultView)?t:window:window}function ld(e){const{Document:t}=sd(e);return e instanceof t}function ad(e){return!rd(e)&&e instanceof sd(e).HTMLElement}function cd(e){return e?rd(e)?e.document:od(e)?ld(e)?e:ad(e)?e.ownerDocument:document:document:document}const hd=nd?l.useLayoutEffect:l.useEffect;function ud(e,t=[e]){const i=(0,l.useRef)(e);return hd((()=>{i.current!==e&&(i.current=e)}),t),i}function dd(e,t){const i=(0,l.useRef)();return(0,l.useMemo)((()=>{const t=e(i.current);return i.current=t,t}),[...t])}function fd(e){const t=function(e){const t=(0,l.useRef)(e);return hd((()=>{t.current=e})),(0,l.useCallback)((function(...e){return null==t.current?void 0:t.current(...e)}),[])}(e),i=(0,l.useRef)(null),n=(0,l.useCallback)((e=>{e!==i.current&&(null==t||t(e,i.current)),i.current=e}),[]);return[i,n]}let pd={};function md(e,t){return(0,l.useMemo)((()=>{if(t)return t;const i=null==pd[e]?0:pd[e]+1;return pd[e]=i,`${e}-${i}`}),[e,t])}function gd(e){return(t,...i)=>i.reduce(((t,i)=>{const n=Object.entries(i);for(const[i,r]of n){const n=t[i];null!=n&&(t[i]=n+e*r)}return t}),{...t})}const Od=gd(1),vd=gd(-1);function yd(e){if(!e)return!1;const{KeyboardEvent:t}=sd(e.target);return t&&e instanceof t}function bd(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=sd(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:i}=e.touches[0];return{x:t,y:i}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:i}=e.changedTouches[0];return{x:t,y:i}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const wd=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:i}=e;return`translate3d(${t?Math.round(t):0}px, ${i?Math.round(i):0}px, 0)`}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:i}=e;return`scaleX(${t}) scaleY(${i})`}},Transform:{toString(e){if(e)return[wd.Translate.toString(e),wd.Scale.toString(e)].join(" ")}},Transition:{toString:({property:e,duration:t,easing:i})=>`${e} ${t}ms ${i}`}});const xd={display:"none"};function Sd(e){let{id:t,value:i}=e;return a().createElement("div",{id:t,style:xd},i)}const kd={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};function $d(e){let{id:t,announcement:i}=e;return a().createElement("div",{id:t,style:kd,role:"status","aria-live":"assertive","aria-atomic":!0},i)}const _d={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},Td={onDragStart:e=>`Picked up draggable item ${e}.`,onDragOver:(e,t)=>t?`Draggable item ${e} was moved over droppable area ${t}.`:`Draggable item ${e} is no longer over a droppable area.`,onDragEnd:(e,t)=>t?`Draggable item ${e} was dropped over droppable area ${t}`:`Draggable item ${e} was dropped.`,onDragCancel:e=>`Dragging was cancelled. Draggable item ${e} was dropped.`};var Qd;function Pd(...e){}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(Qd||(Qd={}));class Ad extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((({disabled:e})=>!e))}getNodeFor(e){var t,i;return null!=(t=null==(i=this.get(e))?void 0:i.node.current)?t:void 0}}const Cd={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:{},droppableRects:new Map,droppableContainers:new Ad,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Pd},scrollableAncestors:[],scrollableAncestorRects:[],measureDroppableContainers:Pd,windowRect:null,measuringScheduled:!1},Rd={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Pd,draggableNodes:{},over:null,measureDroppableContainers:Pd},Ed=(0,l.createContext)(Rd),Md=(0,l.createContext)(Cd);function Dd(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:{},translate:{x:0,y:0}},droppable:{containers:new Ad}}}function qd(e,t){switch(t.type){case Qd.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Qd.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case Qd.DragEnd:case Qd.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Qd.RegisterDroppable:{const{element:i}=t,{id:n}=i,r=new Ad(e.droppable.containers);return r.set(n,i),{...e,droppable:{...e.droppable,containers:r}}}case Qd.SetDroppableDisabled:{const{id:i,key:n,disabled:r}=t,o=e.droppable.containers.get(i);if(!o||n!==o.key)return e;const s=new Ad(e.droppable.containers);return s.set(i,{...o,disabled:r}),{...e,droppable:{...e.droppable,containers:s}}}case Qd.UnregisterDroppable:{const{id:i,key:n}=t,r=e.droppable.containers.get(i);if(!r||n!==r.key)return e;const o=new Ad(e.droppable.containers);return o.delete(i),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}const Nd=(0,l.createContext)({type:null,event:null});function jd({announcements:e=Td,hiddenTextDescribedById:t,screenReaderInstructions:i}){const{announce:n,announcement:r}=function(){const[e,t]=(0,l.useState)("");return{announce:(0,l.useCallback)((e=>{null!=e&&t(e)}),[]),announcement:e}}(),o=md("DndLiveRegion"),[s,h]=(0,l.useState)(!1);return(0,l.useEffect)((()=>{h(!0)}),[]),function({onDragStart:e,onDragMove:t,onDragOver:i,onDragEnd:n,onDragCancel:r}){const o=(0,l.useContext)(Nd),s=(0,l.useRef)(o);(0,l.useEffect)((()=>{if(o!==s.current){const{type:l,event:a}=o;switch(l){case Qd.DragStart:null==e||e(a);break;case Qd.DragMove:null==t||t(a);break;case Qd.DragOver:null==i||i(a);break;case Qd.DragCancel:null==r||r(a);break;case Qd.DragEnd:null==n||n(a)}s.current=o}}),[o,e,t,i,n,r])}((0,l.useMemo)((()=>({onDragStart({active:t}){n(e.onDragStart(t.id))},onDragMove({active:t,over:i}){e.onDragMove&&n(e.onDragMove(t.id,null==i?void 0:i.id))},onDragOver({active:t,over:i}){n(e.onDragOver(t.id,null==i?void 0:i.id))},onDragEnd({active:t,over:i}){n(e.onDragEnd(t.id,null==i?void 0:i.id))},onDragCancel({active:t}){n(e.onDragCancel(t.id))}})),[n,e])),s?(0,c.createPortal)(a().createElement(a().Fragment,null,a().createElement(Sd,{id:t,value:i.draggable}),a().createElement($d,{id:o,announcement:r})),document.body):null}const Vd=Object.freeze({x:0,y:0});function Wd(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function zd(e,t){const i=bd(e);if(!i)return"0 0";return`${(i.x-t.left)/t.width*100}% ${(i.y-t.top)/t.height*100}%`}function Ld({data:{value:e}},{data:{value:t}}){return e-t}function Bd({data:{value:e}},{data:{value:t}}){return t-e}function Id({left:e,top:t,height:i,width:n}){return[{x:e,y:t},{x:e+n,y:t},{x:e,y:t+i},{x:e+n,y:t+i}]}function Xd(e,t){if(!e||0===e.length)return null;const[i]=e;return t?i[t]:i}function Ud(e,t=e.left,i=e.top){return{x:t+.5*e.width,y:i+.5*e.height}}const Fd=({collisionRect:e,droppableContainers:t})=>{const i=Ud(e,e.left,e.top),n=[];for(const e of t){const{id:t,rect:{current:r}}=e;if(r){const o=Wd(Ud(r),i);n.push({id:t,data:{droppableContainer:e,value:o}})}}return n.sort(Ld)},Hd=({collisionRect:e,droppableContainers:t})=>{const i=Id(e),n=[];for(const e of t){const{id:t,rect:{current:r}}=e;if(r){const o=Id(r),s=i.reduce(((e,t,i)=>e+Wd(o[i],t)),0),l=Number((s/4).toFixed(4));n.push({id:t,data:{droppableContainer:e,value:l}})}}return n.sort(Ld)};function Zd(e,t){const i=Math.max(t.top,e.top),n=Math.max(t.left,e.left),r=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),s=r-n,l=o-i;if(n<r&&i<o){const i=t.width*t.height,n=e.width*e.height,r=s*l;return Number((r/(i+n-r)).toFixed(4))}return 0}const Gd=({collisionRect:e,droppableContainers:t})=>{const i=[];for(const n of t){const{id:t,rect:{current:r}}=n;if(r){const o=Zd(r,e);o>0&&i.push({id:t,data:{droppableContainer:n,value:o}})}}return i.sort(Bd)};function Yd(e){return function(t,...i){return i.reduce(((t,i)=>({...t,top:t.top+e*i.y,bottom:t.bottom+e*i.y,left:t.left+e*i.x,right:t.right+e*i.x})),{...t})}}const Kd=Yd(1);const Jd={ignoreTransform:!1};function ef(e,t=Jd){let i=e.getBoundingClientRect();if(t.ignoreTransform){const{getComputedStyle:t}=sd(e),{transform:n,transformOrigin:r}=t(e);n&&(i=function(e,t,i){let n,r,o,s,l;if(t.startsWith("matrix3d("))n=t.slice(9,-1).split(/, /),r=+n[0],o=+n[5],s=+n[12],l=+n[13];else{if(!t.startsWith("matrix("))return e;n=t.slice(7,-1).split(/, /),r=+n[0],o=+n[3],s=+n[4],l=+n[5]}const a=e.left-s-(1-r)*parseFloat(i),c=e.top-l-(1-o)*parseFloat(i.slice(i.indexOf(" ")+1)),h=r?e.width/r:e.width,u=o?e.height/o:e.height;return{width:h,height:u,top:c,right:a+h,bottom:c+u,left:a}}(i,n,r))}const{top:n,left:r,width:o,height:s,bottom:l,right:a}=i;return{top:n,left:r,width:o,height:s,bottom:l,right:a}}function tf(e){return ef(e,{ignoreTransform:!0})}function nf(e){const t=[];return e?function i(n){if(!n)return t;if(ld(n)&&null!=n.scrollingElement&&!t.includes(n.scrollingElement))return t.push(n.scrollingElement),t;if(!ad(n)||function(e){return e instanceof sd(e).SVGElement}(n))return t;if(t.includes(n))return t;const{getComputedStyle:r}=sd(n),o=r(n);return n!==e&&function(e,t=sd(e).getComputedStyle(e)){const i=/(auto|scroll|overlay)/;return null!=["overflow","overflowX","overflowY"].find((e=>{const n=t[e];return"string"==typeof n&&i.test(n)}))}(n,o)&&t.push(n),function(e,t=sd(e).getComputedStyle(e)){return"fixed"===t.position}(n,o)?t:i(n.parentNode)}(e):t}function rf(e){return nd&&e?rd(e)?e:od(e)?ld(e)||e===cd(e).scrollingElement?window:ad(e)?e:null:null:null}function of(e){return rd(e)?e.scrollX:e.scrollLeft}function sf(e){return rd(e)?e.scrollY:e.scrollTop}function lf(e){return{x:of(e),y:sf(e)}}var af;function cf(e){const t={x:0,y:0},i={x:e.scrollWidth-e.clientWidth,y:e.scrollHeight-e.clientHeight};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=i.y,isRight:e.scrollLeft>=i.x,maxScroll:i,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(af||(af={}));const hf={x:.2,y:.2};function uf(e,t,{top:i,left:n,right:r,bottom:o},s=10,l=hf){const{clientHeight:a,clientWidth:c}=e,h=(u=e,nd&&u&&u===document.scrollingElement?{top:0,left:0,right:c,bottom:a,width:c,height:a}:t);var u;const{isTop:d,isBottom:f,isLeft:p,isRight:m}=cf(e),g={x:0,y:0},O={x:0,y:0},v=h.height*l.y,y=h.width*l.x;return!d&&i<=h.top+v?(g.y=af.Backward,O.y=s*Math.abs((h.top+v-i)/v)):!f&&o>=h.bottom-v&&(g.y=af.Forward,O.y=s*Math.abs((h.bottom-v-o)/v)),!m&&r>=h.right-y?(g.x=af.Forward,O.x=s*Math.abs((h.right-y-r)/y)):!p&&n<=h.left+y&&(g.x=af.Backward,O.x=s*Math.abs((h.left+y-n)/y)),{direction:g,speed:O}}function df(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:i,right:n,bottom:r}=e.getBoundingClientRect();return{top:t,left:i,right:n,bottom:r,width:e.clientWidth,height:e.clientHeight}}function ff(e){return e.reduce(((e,t)=>Od(e,lf(t))),Vd)}const pf=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+of(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+sf(t)),0)}]];class mf{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const i=nf(t),n=ff(i);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,r]of pf)for(const o of t)Object.defineProperty(this,o,{get:()=>{const t=r(i),s=n[e]-t;return this.rect[o]+s},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}var gf,Of,vf,yf;function bf({acceleration:e,activator:t=gf.Pointer,canScroll:i,draggingRect:n,enabled:r,interval:o=5,order:s=Of.TreeOrder,pointerCoordinates:a,scrollableAncestors:c,scrollableAncestorRects:h,threshold:u}){const[d,f]=function(){const e=(0,l.useRef)(null),t=(0,l.useCallback)(((t,i)=>{e.current=setInterval(t,i)}),[]);return[t,(0,l.useCallback)((()=>{null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}(),p=(0,l.useRef)({x:1,y:1}),m=(0,l.useMemo)((()=>{switch(t){case gf.Pointer:return a?{top:a.y,bottom:a.y,left:a.x,right:a.x}:null;case gf.DraggableRect:return n}return null}),[t,n,a]),g=(0,l.useRef)(Vd),O=(0,l.useRef)(null),v=(0,l.useCallback)((()=>{const e=O.current;if(!e)return;const t=p.current.x*g.current.x,i=p.current.y*g.current.y;e.scrollBy(t,i)}),[]),y=(0,l.useMemo)((()=>s===Of.TreeOrder?[...c].reverse():c),[s,c]);(0,l.useEffect)((()=>{if(r&&c.length&&m){for(const t of y){if(!1===(null==i?void 0:i(t)))continue;const n=c.indexOf(t),r=h[n];if(!r)continue;const{direction:s,speed:l}=uf(t,r,m,e,u);if(l.x>0||l.y>0)return f(),O.current=t,d(v,o),p.current=l,void(g.current=s)}p.current={x:0,y:0},g.current={x:0,y:0},f()}else f()}),[e,v,i,f,r,o,JSON.stringify(m),d,c,y,h,JSON.stringify(u)])}!function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(gf||(gf={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(Of||(Of={})),function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(vf||(vf={})),function(e){e.Optimized="optimized"}(yf||(yf={}));const wf=new Map,xf={measure:tf,strategy:vf.WhileDragging,frequency:yf.Optimized};function Sf({onResize:e,disabled:t}){const i=(0,l.useMemo)((()=>{if(t||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:i}=window;return new i(e)}),[t,e]);return(0,l.useEffect)((()=>()=>null==i?void 0:i.disconnect()),[i]),i}const kf=[];const $f=Qf(tf),_f=Pf(tf);function Tf(e,t,i){const n=(0,l.useRef)(e);return dd((r=>e?i||!r&&e||e!==n.current?ad(e)&&null==e.parentNode?null:new mf(t(e),e):null!=r?r:null:null),[e,i,t])}function Qf(e){return(t,i)=>Tf(t,e,i)}function Pf(e){const t=[];return function(i,n){const r=(0,l.useRef)(i);return dd((o=>i.length?n||!o&&i.length||i!==r.current?i.map((t=>new mf(e(t),t))):null!=o?o:t:t),[i,n])}}function Af(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return ad(t)?t:e}function Cf(e,t){return(0,l.useMemo)((()=>({sensor:e,options:null!=t?t:{}})),[e,t])}function Rf(...e){return(0,l.useMemo)((()=>[...e].filter((e=>null!=e))),[...e])}class Ef{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,i){var n;null==(n=this.target)||n.addEventListener(e,t,i),this.listeners.push([e,t,i])}}function Mf(e,t){const i=Math.abs(e.x),n=Math.abs(e.y);return"number"==typeof t?Math.sqrt(i**2+n**2)>t:"x"in t&&"y"in t?i>t.x&&n>t.y:"x"in t?i>t.x:"y"in t&&n>t.y}var Df,qf;function Nf(e){e.preventDefault()}function jf(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(Df||(Df={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(qf||(qf={}));const Vf={start:[qf.Space,qf.Enter],cancel:[qf.Esc],end:[qf.Space,qf.Enter]},Wf=(e,{currentCoordinates:t})=>{switch(e.code){case qf.Right:return{...t,x:t.x+25};case qf.Left:return{...t,x:t.x-25};case qf.Down:return{...t,y:t.y+25};case qf.Up:return{...t,y:t.y-25}}};class zf{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.coordinates=Vd,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new Ef(cd(t)),this.windowListeners=new Ef(sd(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Df.Resize,this.handleCancel),this.windowListeners.add(Df.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(Df.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props;if(!e.node.current)throw new Error("Active draggable node is undefined");const i=tf(e.node.current),n={x:i.left,y:i.top};this.coordinates=n,t(n)}handleKeyDown(e){if(yd(e)){const{coordinates:t}=this,{active:i,context:n,options:r}=this.props,{keyboardCodes:o=Vf,coordinateGetter:s=Wf,scrollBehavior:l="smooth"}=r,{code:a}=e;if(o.end.includes(a))return void this.handleEnd(e);if(o.cancel.includes(a))return void this.handleCancel(e);const c=s(e,{active:i,context:n.current,currentCoordinates:t});if(c){const i={x:0,y:0},{scrollableAncestors:r}=n.current;for(const n of r){const r=e.code,o=vd(c,t),{isTop:s,isRight:a,isLeft:h,isBottom:u,maxScroll:d,minScroll:f}=cf(n),p=df(n),m={x:Math.min(r===qf.Right?p.right-p.width/2:p.right,Math.max(r===qf.Right?p.left:p.left+p.width/2,c.x)),y:Math.min(r===qf.Down?p.bottom-p.height/2:p.bottom,Math.max(r===qf.Down?p.top:p.top+p.height/2,c.y))},g=r===qf.Right&&!a||r===qf.Left&&!h,O=r===qf.Down&&!u||r===qf.Up&&!s;if(g&&m.x!==c.x){if(r===qf.Right&&n.scrollLeft+o.x<=d.x||r===qf.Left&&n.scrollLeft+o.x>=f.x)return void n.scrollBy({left:o.x,behavior:l});i.x=r===qf.Right?n.scrollLeft-d.x:n.scrollLeft-f.x,n.scrollBy({left:-i.x,behavior:l});break}if(O&&m.y!==c.y){if(r===qf.Down&&n.scrollTop+o.y<=d.y||r===qf.Up&&n.scrollTop+o.y>=f.y)return void n.scrollBy({top:o.y,behavior:l});i.y=r===qf.Down?n.scrollTop-d.y:n.scrollTop-f.y,n.scrollBy({top:-i.y,behavior:l});break}}this.handleMove(e,Od(c,i))}}}handleMove(e,t){const{onMove:i}=this.props;e.preventDefault(),i(t),this.coordinates=t}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function Lf(e){return Boolean(e&&"distance"in e)}function Bf(e){return Boolean(e&&"delay"in e)}zf.activators=[{eventName:"onKeyDown",handler:(e,{keyboardCodes:t=Vf,onActivation:i})=>{const{code:n}=e.nativeEvent;return!!t.start.includes(n)&&(e.preventDefault(),null==i||i({event:e.nativeEvent}),!0)}}];class If{constructor(e,t,i=function(e){const{EventTarget:t}=sd(e);return e instanceof t?e:cd(e)}(e.event.target)){var n;this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:r}=e,{target:o}=r;this.props=e,this.events=t,this.document=cd(o),this.documentListeners=new Ef(this.document),this.listeners=new Ef(i),this.windowListeners=new Ef(sd(o)),this.initialCoordinates=null!=(n=bd(r))?n:Vd,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(Df.Resize,this.handleCancel),this.windowListeners.add(Df.DragStart,Nf),this.windowListeners.add(Df.VisibilityChange,this.handleCancel),this.windowListeners.add(Df.ContextMenu,Nf),this.documentListeners.add(Df.Keydown,this.handleKeydown),t){if(Lf(t))return;if(Bf(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay))}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(Df.Click,jf,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Df.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:i,initialCoordinates:n,props:r}=this,{onMove:o,options:{activationConstraint:s}}=r;if(!n)return;const l=null!=(t=bd(e))?t:Vd,a=vd(n,l);if(!i&&s){if(Bf(s))return Mf(a,s.tolerance)?this.handleCancel():void 0;if(Lf(s))return null!=s.tolerance&&Mf(a,s.tolerance)?this.handleCancel():Mf(a,s.distance)?this.handleStart():void 0}e.cancelable&&e.preventDefault(),o(l)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===qf.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const Xf={move:{name:"pointermove"},end:{name:"pointerup"}};class Uf extends If{constructor(e){const{event:t}=e,i=cd(t.target);super(e,Xf,i)}}Uf.activators=[{eventName:"onPointerDown",handler:({nativeEvent:e},{onActivation:t})=>!(!e.isPrimary||0!==e.button)&&(null==t||t({event:e}),!0)}];const Ff={move:{name:"mousemove"},end:{name:"mouseup"}};var Hf;!function(e){e[e.RightClick=2]="RightClick"}(Hf||(Hf={}));(class extends If{constructor(e){super(e,Ff,cd(e.event.target))}}).activators=[{eventName:"onMouseDown",handler:({nativeEvent:e},{onActivation:t})=>e.button!==Hf.RightClick&&(null==t||t({event:e}),!0)}];const Zf={move:{name:"touchmove"},end:{name:"touchend"}};function Gf(e,{transform:t,...i}){return(null==e?void 0:e.length)?e.reduce(((e,t)=>t({transform:e,...i})),t):t}(class extends If{constructor(e){super(e,Zf)}static setup(){return window.addEventListener(Zf.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(Zf.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:({nativeEvent:e},{onActivation:t})=>{const{touches:i}=e;return!(i.length>1)&&(null==t||t({event:e}),!0)}}];const Yf=[{sensor:Uf,options:{}},{sensor:zf,options:{}}],Kf={current:{}},Jf=(0,l.createContext)({...Vd,scaleX:1,scaleY:1}),ep=(0,l.memo)((function({id:e,autoScroll:t=!0,announcements:i,children:n,sensors:r=Yf,collisionDetection:o=Gd,measuring:s,modifiers:h,screenReaderInstructions:u=_d,...d}){var f,p,m,g,O,v,y;const b=(0,l.useReducer)(qd,void 0,Dd),[w,x]=b,[S,k]=(0,l.useState)((()=>({type:null,event:null}))),[$,_]=(0,l.useState)(!1),{draggable:{active:T,nodes:Q,translate:P},droppable:{containers:A}}=w,C=T?Q[T]:null,R=(0,l.useRef)({initial:null,translated:null}),E=(0,l.useMemo)((()=>{var e;return null!=T?{id:T,data:null!=(e=null==C?void 0:C.data)?e:Kf,rect:R}:null}),[T,C]),M=(0,l.useRef)(null),[D,q]=(0,l.useState)(null),[N,j]=(0,l.useState)(null),V=ud(d,Object.values(d)),W=md("DndDescribedBy",e),z=(0,l.useMemo)((()=>A.getEnabled()),[A]),{droppableRects:L,measureDroppableContainers:B,measuringScheduled:I}=function(e,{dragging:t,dependencies:i,config:n}){const[r,o]=(0,l.useState)(null),s=null!=r,{frequency:a,measure:c,strategy:h}={...xf,...n},u=(0,l.useRef)(e),d=(0,l.useCallback)(((e=[])=>o((t=>t?t.concat(e):e))),[]),f=(0,l.useRef)(null),p=function(){switch(h){case vf.Always:return!1;case vf.BeforeDragging:return t;default:return!t}}(),m=dd((i=>{if(p&&!t)return wf;const n=r;if(!i||i===wf||u.current!==e||null!=n){const t=new Map;for(let i of e){if(!i)continue;if(n&&n.length>0&&!n.includes(i.id)&&i.rect.current){t.set(i.id,i.rect.current);continue}const e=i.node.current,r=e?new mf(c(e),e):null;i.rect.current=r,r&&t.set(i.id,r)}return t}return i}),[e,r,t,p,c]);return(0,l.useEffect)((()=>{u.current=e}),[e]),(0,l.useEffect)((()=>{p||requestAnimationFrame((()=>d()))}),[t,p]),(0,l.useEffect)((()=>{s&&o(null)}),[s]),(0,l.useEffect)((()=>{p||"number"!=typeof a||null!==f.current||(f.current=setTimeout((()=>{d(),f.current=null}),a))}),[a,p,d,...i]),{droppableRects:m,measureDroppableContainers:d,measuringScheduled:s}}(z,{dragging:$,dependencies:[P.x,P.y],config:null==s?void 0:s.droppable}),X=function(e,t){const i=null!==t?e[t]:void 0,n=i?i.node.current:null;return dd((e=>{var i;return null===t?null:null!=(i=null!=n?n:e)?i:null}),[n,t])}(Q,T),U=N?bd(N):null,F=Tf(X,null!=(f=null==s||null==(p=s.draggable)?void 0:p.measure)?f:tf),H=$f(X?X.parentElement:null),Z=(0,l.useRef)({active:null,activeNode:X,collisionRect:null,collisions:null,droppableRects:L,draggableNodes:Q,draggingNode:null,draggingNodeRect:null,droppableContainers:A,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),G=A.getNodeFor(null==(m=Z.current.over)?void 0:m.id),Y=function({measure:e=ef}){const[t,i]=(0,l.useState)(null),n=(0,l.useCallback)((t=>{for(const{target:n}of t)if(ad(n)){i((t=>{const i=e(n);return t?{...t,width:i.width,height:i.height}:i}));break}}),[e]),r=Sf({onResize:n}),o=(0,l.useCallback)((t=>{const n=Af(t);null==r||r.disconnect(),n&&(null==r||r.observe(n)),i(n?e(n):null)}),[e,r]),[s,a]=fd(o);return(0,l.useMemo)((()=>({nodeRef:s,rect:t,setRef:a})),[t,s,a])}({measure:null==s||null==(g=s.dragOverlay)?void 0:g.measure}),K=null!=(O=Y.nodeRef.current)?O:X,J=null!=(v=Y.rect)?v:F,ee=(0,l.useRef)(null),te=ee.current,ie=J===F?(re=te,(ne=F)&&re?{x:ne.left-re.left,y:ne.top-re.top}:Vd):Vd;var ne,re;const oe=(se=K?K.ownerDocument.defaultView:null,(0,l.useMemo)((()=>se?function(e){const t=e.innerWidth,i=e.innerHeight;return{top:0,left:0,right:t,bottom:i,width:t,height:i}}(se):null),[se]));var se;const le=function(e){const t=(0,l.useRef)(e),i=dd((i=>e?i&&e&&t.current&&e.parentNode===t.current.parentNode?i:nf(e):kf),[e]);return(0,l.useEffect)((()=>{t.current=e}),[e]),i}(T?null!=G?G:K:null),ae=_f(le),ce=Gf(h,{transform:{x:P.x-ie.x,y:P.y-ie.y,scaleX:1,scaleY:1},activatorEvent:N,active:E,activeNodeRect:F,containerNodeRect:H,draggingNodeRect:J,over:Z.current.over,overlayNodeRect:Y.rect,scrollableAncestors:le,scrollableAncestorRects:ae,windowRect:oe}),he=U?Od(U,P):null,ue=function(e){const[t,i]=(0,l.useState)(null),n=(0,l.useRef)(e),r=(0,l.useCallback)((e=>{const t=rf(e.target);t&&i((e=>e?(e.set(t,lf(t)),new Map(e)):null))}),[]);return(0,l.useEffect)((()=>{const t=n.current;if(e!==t){o(t);const s=e.map((e=>{const t=rf(e);return t?(t.addEventListener("scroll",r,{passive:!0}),[t,lf(t)]):null})).filter((e=>null!=e));i(s.length?new Map(s):null),n.current=e}return()=>{o(e),o(t)};function o(e){e.forEach((e=>{const t=rf(e);null==t||t.removeEventListener("scroll",r)}))}}),[r,e]),(0,l.useMemo)((()=>e.length?t?Array.from(t.values()).reduce(((e,t)=>Od(e,t)),Vd):ff(e):Vd),[e,t])}(le),de=Od(ce,ue),fe=J?Kd(J,ce):null,pe=E&&fe?o({active:E,collisionRect:fe,droppableContainers:z,pointerCoordinates:he}):null,me=Xd(pe,"id"),[ge,Oe]=(0,l.useState)(null),ve=function(e,t,i){return{...e,scaleX:t&&i?t.width/i.width:1,scaleY:t&&i?t.height/i.height:1}}(ce,null!=(y=null==ge?void 0:ge.rect)?y:null,F),ye=(0,l.useCallback)(((e,{sensor:t,options:i})=>{if(!M.current)return;const n=Q[M.current];if(!n)return;const r=new t({active:M.current,activeNode:n,event:e.nativeEvent,options:i,context:Z,onStart(e){const t=M.current;if(!t)return;const i=Q[t];if(!i)return;const{onDragStart:n}=V.current,r={active:{id:t,data:i.data,rect:R}};(0,c.unstable_batchedUpdates)((()=>{x({type:Qd.DragStart,initialCoordinates:e,active:t}),k({type:Qd.DragStart,event:r})})),null==n||n(r)},onMove(e){x({type:Qd.DragMove,coordinates:e})},onEnd:o(Qd.DragEnd),onCancel:o(Qd.DragCancel)});function o(e){return async function(){const{active:t,collisions:i,over:n,scrollAdjustedTranslate:r}=Z.current;let o=null;if(t&&r){const{cancelDrop:s}=V.current;if(o={active:t,collisions:i,delta:r,over:n},e===Qd.DragEnd&&"function"==typeof s){await Promise.resolve(s(o))&&(e=Qd.DragCancel)}}M.current=null,(0,c.unstable_batchedUpdates)((()=>{if(x({type:e}),Oe(null),_(!1),q(null),j(null),o&&k({type:e,event:o}),o){const{onDragCancel:t,onDragEnd:i}=V.current,n=e===Qd.DragEnd?i:t;null==n||n(o)}}))}}(0,c.unstable_batchedUpdates)((()=>{q(r),j(e.nativeEvent)}))}),[Q]),be=(0,l.useCallback)(((e,t)=>(i,n)=>{const r=i.nativeEvent;null!==M.current||r.dndKit||r.defaultPrevented||!0===e(i,t.options)&&(r.dndKit={capturedBy:t.sensor},M.current=n,ye(i,t))}),[ye]),we=function(e,t){return(0,l.useMemo)((()=>e.reduce(((e,i)=>{const{sensor:n}=i;return[...e,...n.activators.map((e=>({eventName:e.eventName,handler:t(e.handler,i)})))]}),[])),[e,t])}(r,be);!function(e){(0,l.useEffect)((()=>{if(!nd)return;const t=e.map((({sensor:e})=>null==e.setup?void 0:e.setup()));return()=>{for(const e of t)null==e||e()}}),e.map((({sensor:e})=>e)))}(r),(0,l.useEffect)((()=>{null!=T&&_(!0)}),[T]),(0,l.useEffect)((()=>{E||(ee.current=null),E&&F&&!ee.current&&(ee.current=F)}),[F,E]),(0,l.useEffect)((()=>{const{onDragMove:e}=V.current,{active:t,collisions:i,over:n}=Z.current;if(!t)return;const r={active:t,collisions:i,delta:{x:de.x,y:de.y},over:n};k({type:Qd.DragMove,event:r}),null==e||e(r)}),[de.x,de.y]),(0,l.useEffect)((()=>{const{active:e,collisions:t,droppableContainers:i,scrollAdjustedTranslate:n}=Z.current;if(!e||!M.current||!n)return;const{onDragOver:r}=V.current,o=i.get(me),s=o&&o.rect.current?{id:o.id,rect:o.rect.current,data:o.data,disabled:o.disabled}:null,l={active:e,collisions:t,delta:{x:n.x,y:n.y},over:s};(0,c.unstable_batchedUpdates)((()=>{Oe(s),k({type:Qd.DragOver,event:l}),null==r||r(l)}))}),[me]),hd((()=>{Z.current={active:E,activeNode:X,collisionRect:fe,collisions:pe,droppableRects:L,draggableNodes:Q,draggingNode:K,draggingNodeRect:J,droppableContainers:A,over:ge,scrollableAncestors:le,scrollAdjustedTranslate:de},R.current={initial:J,translated:fe}}),[E,X,pe,fe,Q,K,J,L,A,ge,le,de]),bf({...function(){const e=!1===(null==D?void 0:D.autoScrollEnabled),i="object"==typeof t?!1===t.enabled:!1===t,n=!e&&!i;if("object"==typeof t)return{...t,enabled:n};return{enabled:n}}(),draggingRect:fe,pointerCoordinates:he,scrollableAncestors:le,scrollableAncestorRects:ae});const xe=(0,l.useMemo)((()=>({active:E,activeNode:X,activeNodeRect:F,activatorEvent:N,collisions:pe,containerNodeRect:H,dragOverlay:Y,draggableNodes:Q,droppableContainers:A,droppableRects:L,over:ge,measureDroppableContainers:B,scrollableAncestors:le,scrollableAncestorRects:ae,measuringScheduled:I,windowRect:oe})),[E,X,F,N,pe,H,Y,Q,A,L,ge,B,le,ae,I,oe]),Se=(0,l.useMemo)((()=>({activatorEvent:N,activators:we,active:E,activeNodeRect:F,ariaDescribedById:{draggable:W},dispatch:x,draggableNodes:Q,over:ge,measureDroppableContainers:B})),[N,we,E,F,x,W,Q,ge,B]);return a().createElement(Nd.Provider,{value:S},a().createElement(Ed.Provider,{value:Se},a().createElement(Md.Provider,{value:xe},a().createElement(Jf.Provider,{value:ve},n))),a().createElement(jd,{announcements:i,hiddenTextDescribedById:W,screenReaderInstructions:u}))})),tp=(0,l.createContext)(null),ip="button";function np({id:e,data:t,disabled:i=!1,attributes:n}){const r=md("Droppable"),{activators:o,activatorEvent:s,active:a,activeNodeRect:c,ariaDescribedById:h,draggableNodes:u,over:d}=(0,l.useContext)(Ed),{role:f=ip,roleDescription:p="draggable",tabIndex:m=0}=null!=n?n:{},g=(null==a?void 0:a.id)===e,O=(0,l.useContext)(g?Jf:tp),[v,y]=fd(),b=function(e,t){return(0,l.useMemo)((()=>e.reduce(((e,{eventName:i,handler:n})=>(e[i]=e=>{n(e,t)},e)),{})),[e,t])}(o,e),w=ud(t);hd((()=>(u[e]={id:e,key:r,node:v,data:w},()=>{const t=u[e];t&&t.key===r&&delete u[e]})),[u,e]);return{active:a,activatorEvent:s,activeNodeRect:c,attributes:(0,l.useMemo)((()=>({role:f,tabIndex:m,"aria-pressed":!(!g||f!==ip)||void 0,"aria-roledescription":p,"aria-describedby":h.draggable})),[f,m,g,p,h.draggable]),isDragging:g,listeners:i?void 0:b,node:v,over:d,setNodeRef:y,transform:O}}function rp(){return(0,l.useContext)(Md)}const op={timeout:25};function sp({data:e,disabled:t=!1,id:i,resizeObserverConfig:n}){const r=md("Droppable"),{active:o,dispatch:s,over:a,measureDroppableContainers:c}=(0,l.useContext)(Ed),h=(0,l.useRef)(!1),u=(0,l.useRef)(null),d=(0,l.useRef)(null),{disabled:f,updateMeasurementsFor:p,timeout:m}={...op,...n},g=ud(null!=p?p:i),O=Sf({onResize:(0,l.useCallback)((()=>{h.current?(null!=d.current&&clearTimeout(d.current),d.current=setTimeout((()=>{c("string"==typeof g.current?[g.current]:g.current),d.current=null}),m)):h.current=!0}),[m]),disabled:f||!o}),v=(0,l.useCallback)(((e,t)=>{O&&(t&&(O.unobserve(t),h.current=!1),e&&O.observe(e))}),[O]),[y,b]=fd(v),w=ud(e);return(0,l.useEffect)((()=>{O&&y.current&&(O.disconnect(),h.current=!1,O.observe(y.current))}),[y,O]),hd((()=>(s({type:Qd.RegisterDroppable,element:{id:i,key:r,disabled:t,node:y,rect:u,data:w}}),()=>s({type:Qd.UnregisterDroppable,key:r,id:i}))),[i]),(0,l.useEffect)((()=>{s({type:Qd.SetDroppableDisabled,id:i,key:r,disabled:t})}),[t]),{active:o,rect:u,isOver:(null==a?void 0:a.id)===i,node:y,over:a,setNodeRef:b}}const lp={duration:250,easing:"ease",dragSourceOpacity:0};const ap={x:0,y:0,scaleX:1,scaleY:1},cp=e=>yd(e)?"transform 250ms ease":void 0,hp=a().memo((({adjustScale:e=!1,children:t,dropAnimation:i=lp,style:n,transition:r=cp,modifiers:o,wrapperElement:s="div",className:c,zIndex:h=999})=>{var u,d;const{active:f,activeNodeRect:p,containerNodeRect:m,draggableNodes:g,activatorEvent:O,over:v,dragOverlay:y,scrollableAncestors:b,scrollableAncestorRects:w,windowRect:x}=rp(),S=(0,l.useContext)(Jf),k=Gf(o,{activatorEvent:O,active:f,activeNodeRect:p,containerNodeRect:m,draggingNodeRect:y.rect,over:v,overlayNodeRect:y.rect,scrollableAncestors:b,scrollableAncestorRects:w,transform:S,windowRect:x}),$=null!==f,_=e?k:{...k,scaleX:1,scaleY:1},T=dd((e=>$?e||(p?{...p}:null):null),[$,p]),Q=T?{position:"fixed",width:T.width,height:T.height,top:T.top,left:T.left,zIndex:h,transform:wd.Transform.toString(_),touchAction:"none",transformOrigin:e&&O?zd(O,T):void 0,transition:"function"==typeof r?r(O):r,...n}:void 0,P=$?{style:Q,children:t,className:c,transform:_}:void 0,A=(0,l.useRef)(P),C=null!=P?P:A.current,{children:R,transform:E,...M}=null!=C?C:{},D=(0,l.useRef)(null!=(u=null==f?void 0:f.id)?u:null),q=function({animate:e,adjustScale:t,activeId:i,draggableNodes:n,duration:r,dragSourceOpacity:o,easing:s,node:a,transform:c}){const[h,u]=(0,l.useState)(!1);return hd((()=>{var l;if(!(e&&i&&s&&r))return void(e&&u(!0));const h=null==(l=n[i])?void 0:l.node.current;if(c&&a&&h&&null!==h.parentNode){const e=Af(a);if(e){const i=e.getBoundingClientRect(),n=tf(h),l={x:i.left-n.left,y:i.top-n.top};if(Math.abs(l.x)||Math.abs(l.y)){const e={scaleX:t?n.width*c.scaleX/i.width:1,scaleY:t?n.height*c.scaleY/i.height:1},d=wd.Transform.toString({x:c.x-l.x,y:c.y-l.y,...e}),f=h.style.opacity;return null!=o&&(h.style.opacity=`${o}`),void(a.animate([{transform:wd.Transform.toString(c)},{transform:d}],{easing:s,duration:r}).onfinish=()=>{a.style.display="none",u(!0),h&&null!=o&&(h.style.opacity=f)})}}}u(!0)}),[e,i,t,n,r,s,o,a,c]),hd((()=>{h&&u(!1)}),[h]),h}({animate:Boolean(i&&D.current&&!f),adjustScale:e,activeId:D.current,draggableNodes:g,duration:null==i?void 0:i.duration,easing:null==i?void 0:i.easing,dragSourceOpacity:null==i?void 0:i.dragSourceOpacity,node:y.nodeRef.current,transform:null==(d=A.current)?void 0:d.transform}),N=Boolean(R&&(t||i&&!q));return(0,l.useEffect)((()=>{var e;(null==f?void 0:f.id)!==D.current&&(D.current=null!=(e=null==f?void 0:f.id)?e:null);f&&A.current!==P&&(A.current=P)}),[f,P]),(0,l.useEffect)((()=>{q&&(A.current=void 0)}),[q]),N?a().createElement(Ed.Provider,{value:Rd},a().createElement(Jf.Provider,{value:ap},a().createElement(s,{...M,ref:y.setRef},R))):null}));const up=({transform:e})=>({...e,y:0});function dp(e,t,i){const n={...e};return t.top+e.y<=i.top?n.y=i.top-t.top:t.bottom+e.y>=i.top+i.height&&(n.y=i.top+i.height-t.bottom),t.left+e.x<=i.left?n.x=i.left-t.left:t.right+e.x>=i.left+i.width&&(n.x=i.left+i.width-t.right),n}const fp=({containerNodeRect:e,draggingNodeRect:t,transform:i})=>t&&e?dp(i,t,e):i,pp=({transform:e})=>({...e,x:0}),mp=({transform:e,draggingNodeRect:t,windowRect:i})=>t&&i?dp(e,t,i):e;function gp(e,t,i){const n=e.slice();return n.splice(i<0?n.length+i:i,0,n.splice(t,1)[0]),n}function Op(e,t){return e.reduce(((e,i,n)=>{const r=t.get(i);return r&&(e[n]=r),e}),Array(e.length))}function vp(e){return null!==e&&e>=0}const yp={scaleX:1,scaleY:1},bp=({rects:e,activeNodeRect:t,activeIndex:i,overIndex:n,index:r})=>{var o;const s=null!=(o=e[i])?o:t;if(!s)return null;const l=function(e,t,i){const n=e[t],r=e[t-1],o=e[t+1];if(!n||!r&&!o)return 0;if(i<t)return r?n.left-(r.left+r.width):o.left-(n.left+n.width);return o?o.left-(n.left+n.width):n.left-(r.left+r.width)}(e,r,i);if(r===i){const t=e[n];return t?{x:i<n?t.left+t.width-(s.left+s.width):t.left-s.left,y:0,...yp}:null}return r>i&&r<=n?{x:-s.width-l,y:0,...yp}:r<i&&r>=n?{x:s.width+l,y:0,...yp}:{x:0,y:0,...yp}};const xp=({rects:e,activeIndex:t,overIndex:i,index:n})=>{const r=gp(e,i,t),o=e[n],s=r[n];return s&&o?{x:s.left-o.left,y:s.top-o.top,scaleX:s.width/o.width,scaleY:s.height/o.height}:null},Sp={scaleX:1,scaleY:1},kp=({activeIndex:e,activeNodeRect:t,index:i,rects:n,overIndex:r})=>{var o;const s=null!=(o=n[e])?o:t;if(!s)return null;if(i===e){const t=n[r];return t?{x:0,y:e<r?t.top+t.height-(s.top+s.height):t.top-s.top,...Sp}:null}const l=function(e,t,i){const n=e[t],r=e[t-1],o=e[t+1];if(!n)return 0;if(i<t)return r?n.top-(r.top+r.height):o?o.top-(n.top+n.height):0;return o?o.top-(n.top+n.height):r?n.top-(r.top+r.height):0}(n,i,e);return i>e&&i<=r?{x:0,y:-s.height-l,...Sp}:i<e&&i>=r?{x:0,y:s.height+l,...Sp}:{x:0,y:0,...Sp}};const $p="Sortable",_p=a().createContext({activeIndex:-1,containerId:$p,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:xp});function Tp({children:e,id:t,items:i,strategy:n=xp}){const{active:r,dragOverlay:o,droppableRects:s,over:c,measureDroppableContainers:h,measuringScheduled:u}=rp(),d=md($p,t),f=Boolean(null!==o.rect),p=(0,l.useMemo)((()=>i.map((e=>"string"==typeof e?e:e.id))),[i]),m=null!=r,g=r?p.indexOf(r.id):-1,O=c?p.indexOf(c.id):-1,v=(0,l.useRef)(p),y=(b=p,w=v.current,!(b.join()===w.join()));var b,w;const x=-1!==O&&-1===g||y;hd((()=>{y&&m&&!u&&h(p)}),[y,p,m,h,u]),(0,l.useEffect)((()=>{v.current=p}),[p]);const S=(0,l.useMemo)((()=>({activeIndex:g,containerId:d,disableTransforms:x,items:p,overIndex:O,useDragOverlay:f,sortedRects:Op(p,s),strategy:n})),[g,d,x,p,O,s,f,n]);return a().createElement(_p.Provider,{value:S},e)}const Qp=({id:e,items:t,activeIndex:i,overIndex:n})=>gp(t,i,n).indexOf(e),Pp=({containerId:e,isSorting:t,wasDragging:i,index:n,items:r,newIndex:o,previousItems:s,previousContainerId:l,transition:a})=>!(!a||!i)&&((s===r||n!==o)&&(!!t||o!==n&&e===l)),Ap={duration:200,easing:"ease"},Cp="transform",Rp=wd.Transition.toString({property:Cp,duration:0,easing:"linear"}),Ep={roleDescription:"sortable"};function Mp({animateLayoutChanges:e=Pp,attributes:t,disabled:i,data:n,getNewIndex:r=Qp,id:o,strategy:s,resizeObserverConfig:a,transition:c=Ap}){const{items:h,containerId:u,activeIndex:d,disableTransforms:f,sortedRects:p,overIndex:m,useDragOverlay:g,strategy:O}=(0,l.useContext)(_p),v=h.indexOf(o),y=(0,l.useMemo)((()=>({sortable:{containerId:u,index:v,items:h},...n})),[u,n,v,h]),b=(0,l.useMemo)((()=>h.slice(h.indexOf(o))),[h,o]),{rect:w,node:x,isOver:S,setNodeRef:k}=sp({id:o,data:y,resizeObserverConfig:{updateMeasurementsFor:b,...a}}),{active:$,activatorEvent:_,activeNodeRect:T,attributes:Q,setNodeRef:P,listeners:A,isDragging:C,over:R,transform:E}=np({id:o,data:y,attributes:{...Ep,...t},disabled:i}),M=function(...e){return(0,l.useMemo)((()=>t=>{e.forEach((e=>e(t)))}),e)}(k,P),D=Boolean($),q=D&&!f&&vp(d)&&vp(m),N=!g&&C,j=N&&q?E:null,V=q?null!=j?j:(null!=s?s:O)({rects:p,activeNodeRect:T,activeIndex:d,overIndex:m,index:v}):null,W=vp(d)&&vp(m)?r({id:o,items:h,activeIndex:d,overIndex:m}):v,z=null==$?void 0:$.id,L=(0,l.useRef)({activeId:z,items:h,newIndex:W,containerId:u}),B=h!==L.current.items,I=e({active:$,containerId:u,isDragging:C,isSorting:D,id:o,index:v,items:h,newIndex:L.current.newIndex,previousItems:L.current.items,previousContainerId:L.current.containerId,transition:c,wasDragging:null!=L.current.activeId}),X=function({disabled:e,index:t,node:i,rect:n}){const[r,o]=(0,l.useState)(null),s=(0,l.useRef)(t);return hd((()=>{if(!e&&t!==s.current&&i.current){const e=n.current;if(e){const t=ef(i.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&o(n)}}t!==s.current&&(s.current=t)}),[e,t,i,n]),(0,l.useEffect)((()=>{r&&requestAnimationFrame((()=>{o(null)}))}),[r]),r}({disabled:!I,index:v,node:x,rect:w});return(0,l.useEffect)((()=>{D&&L.current.newIndex!==W&&(L.current.newIndex=W),u!==L.current.containerId&&(L.current.containerId=u),h!==L.current.items&&(L.current.items=h),z!==L.current.activeId&&(L.current.activeId=z)}),[z,D,W,u,h]),{active:$,activeIndex:d,attributes:Q,rect:w,index:v,newIndex:W,items:h,isOver:S,isSorting:D,isDragging:C,listeners:A,node:x,overIndex:m,over:R,setNodeRef:M,setDroppableNodeRef:k,setDraggableNodeRef:P,transform:null!=X?X:V,transition:function(){if(X||B&&L.current.newIndex===v)return Rp;if(N&&!yd(_)||!c)return;if(D||I)return wd.Transition.toString({...c,property:Cp});return}()}}const Dp=[qf.Down,qf.Right,qf.Up,qf.Left],qp=(e,{context:{active:t,droppableContainers:i,collisionRect:n,scrollableAncestors:r}})=>{if(Dp.includes(e.code)){if(e.preventDefault(),!t||!n)return;const o=[];i.getEnabled().forEach((t=>{if(!t||(null==t?void 0:t.disabled))return;const i=null==t?void 0:t.rect.current;if(i)switch(e.code){case qf.Down:n.top+n.height<=i.top&&o.push(t);break;case qf.Up:n.top>=i.top+i.height&&o.push(t);break;case qf.Left:n.left>=i.left+i.width&&o.push(t);break;case qf.Right:n.left+n.width<=i.left&&o.push(t)}}));const s=Xd(Hd({active:t,collisionRect:n,droppableContainers:o,pointerCoordinates:null}),"id");if(null!=s){const e=i.get(s),t=null==e?void 0:e.node.current,o=null==e?void 0:e.rect.current;if(t&&o){const e=nf(t).some(((e,t)=>r[t]!==e)),i=e?{x:0,y:0}:{x:n.width-o.width,y:n.height-o.height};return{x:o.left-i.x,y:o.top-i.y}}}}};const Np=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return dn(pn().mark((function t(){var i,n,r,o,s,l,a=arguments;return pn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=a.length>0&&void 0!==a[0]?a[0]:"",n={_wpnonce:null==e?void 0:e._wpnonce,action:"pods_relationship",method:"select2",pod:null==e?void 0:e.pod,field:null==e?void 0:e.field,uri:null==e?void 0:e.uri,id:null==e?void 0:e.id,query:i},r=new FormData,Object.keys(n).forEach((function(e){r.append(e,n[e])})),t.prev=4,t.next=7,fetch(ajaxurl+"?pods_ajax=1",{method:"POST",body:r});case 7:return o=t.sent,t.next=10,o.json();case 10:if(null!=(s=t.sent)&&s.results){t.next=13;break}throw new Error("Invalid response.");case 13:return l=s.results.map((function(e){return{label:null==e?void 0:e.name,value:null==e?void 0:e.id}})),t.abrupt("return",l);case 17:throw t.prev=17,t.t0=t.catch(4),t.t0;case 20:case"end":return t.stop()}}),t,null,[[4,17]])})))};var jp="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/fields/pick/full-select.js",Vp=void 0;function Wp(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function zp(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Wp(Object(i),!0).forEach((function(t){n(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Wp(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var Lp=function(e){var t=Mp({id:e.data.value}),i=t.attributes,n=t.listeners,r=t.setNodeRef,o=t.transform,s=t.transition,l=t.isDragging,c={transform:wd.Translate.toString(o),transition:s,cursor:l?"grabbing":"grab"};return a().createElement("span",ql({ref:r,style:c,"aria-label":"drag"},n,i,{__self:Vp,__source:{fileName:jp,lineNumber:54,columnNumber:3}}),a().createElement(Jh.MultiValue,ql({},e,{__self:Vp,__source:{fileName:jp,lineNumber:63,columnNumber:4}})))},Bp=function(e){var t=e.isTaggable,i=e.ajaxData,n=e.shouldRenderValue,r=e.formattedOptions,o=e.value,s=e.addNewItem,l=e.setValue,c=e.placeholder,h=e.isMulti,u=e.isClearable,d=e.isReadOnly,f=t||(null==i?void 0:i.ajax),p=t?id:Ku,m=Rf(Cf(Uf),Cf(zf,{coordinateGetter:qp}));return a().createElement(ep,{sensors:m,collisionDetection:Fd,onDragEnd:function(e){var t=e.active,i=e.over;if(h&&Array.isArray(o)&&null!=i&&i.id&&t.id!==i.id){var n=o.findIndex((function(e){return e.value===t.id})),r=o.findIndex((function(e){return e.value===i.id})),s=gp(o,n,r);l(s.map((function(e){return e.value})))}},modifiers:[fp,up],__self:Vp,__source:{fileName:jp,lineNumber:119,columnNumber:3}},a().createElement(Tp,{items:Array.isArray(o)?o.map((function(e){return e.value})):[],strategy:bp,__self:Vp,__source:{fileName:jp,lineNumber:128,columnNumber:4}},f?a().createElement(p,{controlShouldRenderValue:n,defaultOptions:r,loadOptions:null!=i&&i.ajax?Np(i):void 0,value:o,placeholder:c,isMulti:h,isClearable:u,onChange:s,readOnly:d,components:{MultiValue:Lp},__self:Vp,__source:{fileName:jp,lineNumber:133,columnNumber:6}}):a().createElement(Zu,{controlShouldRenderValue:n,options:r,value:o,placeholder:c,isMulti:h,isClearable:u,onChange:s,readOnly:d,components:{MultiValue:Lp},styles:{menu:function(e){return zp(zp({},e),{},{zIndex:2})}},__self:Vp,__source:{fileName:jp,lineNumber:148,columnNumber:6}})))},Ip=_n().shape({label:_n().string,value:_n().string});Bp.propTypes={isTaggable:_n().bool.isRequired,ajaxData:Il,shouldRenderValue:_n().bool.isRequired,formattedOptions:_n().arrayOf(Ip),value:_n().oneOfType([Ip,_n().arrayOf(Ip)]),addNewItem:_n().func.isRequired,setValue:_n().func.isRequired,placeholder:_n().string.isRequired,isMulti:_n().bool.isRequired,isClearable:_n().bool.isRequired,isReadOnly:_n().bool.isRequired};const Xp=Bp;var Up="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/fields/pick/simple-select.js",Fp=void 0,Hp=function(e){var t=e.htmlAttributes,i=e.name,n=e.value,r=e.options,o=e.setValue,s=e.isMulti,l=void 0!==s&&s,c=e.readOnly,h=void 0!==c&&c,u=Ln()("pods-form-ui-field pods-form-ui-field-type-pick pods-form-ui-field-select",t.class),d=t.name||i;return l&&(d+="[]"),a().createElement("select",{id:t.id||"pods-form-ui-".concat(i),name:d,className:u,value:n||(l?[]:""),onChange:function(e){h||o(l?Array.from(e.target.options).filter((function(e){return e.selected})).map((function(e){return e.value})):e.target.value)},multiple:l,readOnly:!!h,__self:Fp,__source:{fileName:Up,lineNumber:30,columnNumber:3}},a().createElement(a().Fragment,null,r.map((function(e){var t=e.name,i=e.id;if("string"==typeof i||"number"==typeof i)return a().createElement("option",{key:i,value:i,__self:Fp,__source:{fileName:Up,lineNumber:58,columnNumber:8}},t);if(Array.isArray(i))return a().createElement("optgroup",{label:t,key:t,__self:Fp,__source:{fileName:Up,lineNumber:64,columnNumber:8}},i.map((function(e){var t=e.id,i=e.name;return a().createElement("option",{key:t,value:t,__self:Fp,__source:{fileName:Up,lineNumber:67,columnNumber:11}},i)})));if("object"===Dn(i)){var n=Object.entries(i);return a().createElement("optgroup",{label:i,key:i,__self:Fp,__source:{fileName:Up,lineNumber:78,columnNumber:8}},n.map((function(e){var t=Qn(e,2),i=t[0],n=t[1];return a().createElement("option",{key:i,value:i,__self:Fp,__source:{fileName:Up,lineNumber:81,columnNumber:11}},n)})))}return null}))))};Hp.propTypes={htmlAttributes:_n().shape({id:_n().string,class:_n().string,name:_n().string}),name:_n().string.isRequired,value:_n().oneOfType([_n().arrayOf(_n().oneOfType([_n().string,_n().number])),_n().string,_n().number]),setValue:_n().func.isRequired,options:Ll.isRequired,isMulti:_n().bool,readOnly:_n().bool};const Zp=Hp;var Gp="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/fields/pick/radio-select.js",Yp=void 0,Kp=function(e){var t=e.htmlAttributes,i=e.name,n=e.value,r=e.options,o=e.setValue,s=e.readOnly,l=void 0!==s&&s;return a().createElement("ul",{className:"pods-radio-pick",id:i,__self:Yp,__source:{fileName:Gp,lineNumber:15,columnNumber:3}},r.map((function(e){var r=e.id,s=e.name,c=t.id?"".concat(t.id,"-").concat(r):"".concat(i,"-").concat(r);return a().createElement("li",{key:r,className:"pods-radio-pick__option",__self:Yp,__source:{fileName:Gp,lineNumber:25,columnNumber:6}},a().createElement("div",{className:"pods-field pods-boolean",__self:Yp,__source:{fileName:Gp,lineNumber:26,columnNumber:7}},a().createElement("label",{className:"pods-form-ui-label pods-radio-pick__option__label",__self:Yp,__source:{fileName:Gp,lineNumber:28,columnNumber:8}},a().createElement("input",{name:t.name||i,id:c,checked:n.toString()===r.toString(),className:"pods-form-ui-field-type-pick",type:"radio",value:r,onChange:function(e){l||e.target.checked&&o(e.target.value)},readOnly:!!l,__self:Yp,__source:{fileName:Gp,lineNumber:31,columnNumber:9}}),s)))})))};Kp.propTypes={htmlAttributes:_n().shape({id:_n().string,class:_n().string,name:_n().string}),name:_n().string.isRequired,value:_n().oneOfType([_n().string,_n().number]),setValue:_n().func.isRequired,options:Ll.isRequired,readOnly:_n().bool};const Jp=Kp;var em=i(2810),tm={};tm.styleTagTransform=er(),tm.setAttributes=Gn(),tm.insert=Hn().bind(null,"head"),tm.domAPI=Un(),tm.insertStyleElement=Kn();In()(em.Z,tm);em.Z&&em.Z.locals&&em.Z.locals;var im="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/fields/pick/checkbox-select.js",nm=void 0,rm=function(e){var t=e.htmlAttributes,i=e.name,n=e.value,r=e.options,o=void 0===r?[]:r,l=e.setValue,c=e.isMulti,h=e.readOnly,u=void 0!==h&&h,d=o.length;return a().createElement("ul",{className:Ln()("pods-checkbox-pick",1===o.length&&"pods-checkbox-pick--single"),id:i,__self:nm,__source:{fileName:im,lineNumber:31,columnNumber:3}},o.map((function(e,r,h){var f=e.id,p=e.name,m=t.name||i,g=h.length>1?"".concat(m,"[").concat(r,"]"):m,O=t.id?t.id:"pods-form-ui-".concat(i);return 1<d&&(O+="-".concat(f)),a().createElement("li",{key:f,className:Ln()("pods-checkbox-pick__option",1===o.length&&"pods-checkbox-pick__option--single"),__self:nm,__source:{fileName:im,lineNumber:61,columnNumber:6}},a().createElement("div",{className:"pods-field pods-boolean",__self:nm,__source:{fileName:im,lineNumber:70,columnNumber:7}},a().createElement("label",{className:"pods-form-ui-label pods-checkbox-pick__option__label",__self:nm,__source:{fileName:im,lineNumber:72,columnNumber:8}},a().createElement("input",{name:g,id:O,checked:c?n.some((function(e){return e.toString()===f.toString()})):n.toString()===f.toString(),className:"pods-form-ui-field-type-pick",type:"checkbox",value:f,onChange:function(){var e;if(!u)if(c)e=f,n.some((function(t){return t.toString()===e.toString()}))?l(n.filter((function(t){return t.toString()!==e.toString()}))):l([].concat(s(n),[e]));else{var t=1===o.length&&"1"===f?"0":void 0;l(n===f?t:f)}},readOnly:!!u,__self:nm,__source:{fileName:im,lineNumber:75,columnNumber:9}}),p)))})))};rm.propTypes={htmlAttributes:_n().shape({id:_n().string,class:_n().string,name:_n().string}),name:_n().string.isRequired,value:_n().oneOfType([_n().arrayOf(_n().oneOfType([_n().string,_n().number])),_n().string,_n().number]),setValue:_n().func.isRequired,options:Ll.isRequired,isMulti:_n().bool.isRequired,readOnly:_n().bool};const om=rm,sm=window.wp.element,lm=window.wp.primitives,am=(0,sm.createElement)(lm.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,sm.createElement)(lm.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})),cm=(0,sm.createElement)(lm.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,sm.createElement)(lm.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));var hm=i(1753),um={};um.styleTagTransform=er(),um.setAttributes=Gn(),um.insert=Hn().bind(null,"head"),um.domAPI=Un(),um.insertStyleElement=Kn();In()(hm.Z,um);hm.Z&&hm.Z.locals&&hm.Z.locals;var dm="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/components/iframe-modal.js",fm=void 0,pm=function(e){var t=e.title,i=e.iframeSrc,n=e.onClose;return a().createElement(Ls.Modal,{className:"pods-iframe-modal",title:t,isDismissible:!0,onRequestClose:n,focusOnMount:!0,shouldCloseOnEsc:!1,shouldCloseOnClickOutside:!1,__self:fm,__source:{fileName:dm,lineNumber:23,columnNumber:3}},a().createElement("iframe",{src:i,title:t,className:"pods-iframe-modal__iframe",__self:fm,__source:{fileName:dm,lineNumber:32,columnNumber:4}}))};pm.propTypes={title:_n().string.isRequired,iframeSrc:_n().string.isRequired,onClose:_n().func.isRequired};const mm=pm;var gm="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/fields/pick/list-select-item.js",Om=void 0,vm=(0,l.forwardRef)((function(e,t){var i=e.fieldName,n=e.value,r=e.editLink,o=e.viewLink,s=e.editIframeTitle,c=e.icon,h=e.isDraggable,u=e.isRemovable,d=e.moveUp,f=e.moveDown,p=e.removeItem,m=e.setFieldItemData,g=e.isOverlay,O=void 0!==g&&g,v=e.isDragging,y=void 0!==v&&v,b=e.style,w=void 0===b?{}:b,x=e.listeners,S=void 0===x?{}:x,k=e.attributes,$=void 0===k?{}:k,_=/^dashicons/.test(c),T=Qn((0,l.useState)(!1),2),Q=T[0],P=T[1];return(0,l.useEffect)((function(){var e=function(e){if(e.origin===window.location.origin&&"PODS_MESSAGE"===e.data.type&&e.data.data){P(!1);var t=e.data.data,i=void 0===t?{}:t;m((function(e){return e.map((function(e){return i.id&&Number(null==e?void 0:e.id)===Number(i.id)?i:e}))}))}};return Q?window.addEventListener("message",e,!1):window.removeEventListener("message",e,!1),function(){window.removeEventListener("message",e,!1)}}),[Q]),a().createElement("li",{className:Ln()("pods-list-select-item",y&&"pods-list-select-item--is-dragging",O&&"pods-list-select-item--overlay"),ref:t,style:w,__self:Om,__source:{fileName:gm,lineNumber:81,columnNumber:3}},a().createElement("ul",{className:"pods-list-select-item__inner",__self:Om,__source:{fileName:gm,lineNumber:92,columnNumber:4}},h?a().createElement(a().Fragment,null,a().createElement("li",ql({className:"pods-list-select-item__col pods-list-select-item__drag-handle","aria-label":"drag"},S,$,{style:{cursor:y?"grabbing":"grab"},__self:Om,__source:{fileName:gm,lineNumber:95,columnNumber:7}}),a().createElement(Ls.Dashicon,{icon:"menu",__self:Om,__source:{fileName:gm,lineNumber:106,columnNumber:8}})),a().createElement("li",{className:"pods-list-select-item__col pods-list-select-item__move-buttons",__self:Om,__source:{fileName:gm,lineNumber:109,columnNumber:7}},a().createElement(Ls.Button,{className:Ln()("pods-list-select-item__move-button",!d&&"pods-list-select-item__move-button--disabled"),showTooltip:!0,disabled:!d,onClick:d,icon:am,label:(0,Pn.__)("Move up","pods"),__self:Om,__source:{fileName:gm,lineNumber:110,columnNumber:8}}),a().createElement(Ls.Button,{className:Ln()("pods-list-select-item__move-button",!f&&"pods-list-select-item__move-button--disabled"),showTooltip:!0,disabled:!f,onClick:f,icon:cm,label:(0,Pn.__)("Move down","pods"),__self:Om,__source:{fileName:gm,lineNumber:124,columnNumber:8}}))):null,c?a().createElement("li",{className:"pods-list-select-item__col pods-list-select-item__icon",__self:Om,__source:{fileName:gm,lineNumber:142,columnNumber:6}},_?a().createElement("span",{className:"pinkynail dashicons ".concat(c),__self:Om,__source:{fileName:gm,lineNumber:144,columnNumber:8}}):a().createElement("img",{className:"pinkynail",src:c,alt:(0,Pn.__)("Icon","pods"),__self:Om,__source:{fileName:gm,lineNumber:148,columnNumber:8}})):null,a().createElement("li",{className:"pods-list-select-item__col pods-list-select-item__name",__self:Om,__source:{fileName:gm,lineNumber:157,columnNumber:5}},n.label),r?a().createElement("li",{className:"pods-list-select-item__col pods-list-select-item__edit",__self:Om,__source:{fileName:gm,lineNumber:162,columnNumber:6}},a().createElement("a",{href:r,title:(0,Pn.__)("Edit","pods"),target:"_blank",rel:"noreferrer",onClick:function(e){e.preventDefault(),P(!0)},className:"pods-list-select-item__link",__self:Om,__source:{fileName:gm,lineNumber:163,columnNumber:7}},a().createElement(Ls.Dashicon,{icon:"edit",__self:Om,__source:{fileName:gm,lineNumber:174,columnNumber:8}}),a().createElement("span",{className:"screen-reader-text",__self:Om,__source:{fileName:gm,lineNumber:175,columnNumber:8}},(0,Pn.__)("Edit","pods")))):null,o?a().createElement("li",{className:"pods-list-select-item__col pods-list-select-item__view",__self:Om,__source:{fileName:gm,lineNumber:183,columnNumber:6}},a().createElement("a",{href:o,title:(0,Pn.__)("View","pods"),target:"_blank",rel:"noreferrer",className:"pods-list-select-item__link",__self:Om,__source:{fileName:gm,lineNumber:184,columnNumber:7}},a().createElement(Ls.Dashicon,{icon:"external",__self:Om,__source:{fileName:gm,lineNumber:191,columnNumber:8}}),a().createElement("span",{className:"screen-reader-text",__self:Om,__source:{fileName:gm,lineNumber:192,columnNumber:8}},(0,Pn.__)("View","pods")))):null,u?a().createElement("li",{className:"pods-list-select-item__col pods-list-select-item__remove",__self:Om,__source:{fileName:gm,lineNumber:200,columnNumber:6}},a().createElement("a",{href:"#remove",title:(0,Pn.__)("Deselect","pods"),onClick:p,className:"pods-list-select-item__link",__self:Om,__source:{fileName:gm,lineNumber:201,columnNumber:7}},a().createElement(Ls.Dashicon,{icon:"no",__self:Om,__source:{fileName:gm,lineNumber:207,columnNumber:8}}),a().createElement("span",{className:"screen-reader-text",__self:Om,__source:{fileName:gm,lineNumber:208,columnNumber:8}},(0,Pn.__)("Deselect","pods")))):null),Q?a().createElement(mm,{title:s||"".concat(i,": Edit"),iframeSrc:r,onClose:function(){return P(!1)},__self:Om,__source:{fileName:gm,lineNumber:217,columnNumber:5}}):null)}));vm.propTypes={fieldName:_n().string.isRequired,value:_n().shape({label:_n().string.isRequired,value:_n().string.isRequired}),editLink:_n().string,editIframeTitle:_n().string,viewLink:_n().string,icon:_n().string,isDraggable:_n().bool.isRequired,isRemovable:_n().bool.isRequired,moveUp:_n().func,moveDown:_n().func,removeItem:_n().func.isRequired,setFieldItemData:_n().func.isRequired,isOverlay:_n().bool,isDragging:_n().bool,style:_n().object,attributes:_n().object,listeners:_n().object};const ym=vm;var bm=function(e){var t=e.value,i=Mp({id:t.value.toString(),data:{value:null==t?void 0:t.value.toString(),label:null==t?void 0:t.label.toString()}}),n=i.attributes,r=i.listeners,o=i.setNodeRef,s=i.transform,l=i.transition,c=i.isDragging,h={transform:wd.Translate.toString(s),transition:l};return a().createElement(ym,ql({},e,{isDragging:c,ref:o,style:h,attributes:n,listeners:r,__self:undefined,__source:{fileName:"/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/fields/pick/draggable-list-select-item.js",lineNumber:38,columnNumber:3}}))};bm.propTypes={fieldName:_n().string.isRequired,value:_n().shape({label:_n().string.isRequired,value:_n().string.isRequired}),editLink:_n().string,editIframeTitle:_n().string,viewLink:_n().string,icon:_n().string,isDraggable:_n().bool.isRequired,isRemovable:_n().bool.isRequired,moveUp:_n().func,moveDown:_n().func,removeItem:_n().func.isRequired,setFieldItemData:_n().func.isRequired};const wm=bm;var xm=i(4039),Sm={};Sm.styleTagTransform=er(),Sm.setAttributes=Gn(),Sm.insert=Hn().bind(null,"head"),Sm.domAPI=Un(),Sm.insertStyleElement=Kn();In()(xm.Z,Sm);xm.Z&&xm.Z.locals&&xm.Z.locals;var km="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/fields/pick/list-select-values.js",$m=void 0,_m=function(e){var t=e.fieldName,i=e.value,n=e.fieldItemData,r=e.setFieldItemData,o=e.setValue,c=e.isMulti,h=e.limit,u=e.defaultIcon,d=e.showIcon,f=e.showViewLink,p=e.showEditLink,m=e.editIframeTitle,g=e.readOnly,O=void 0!==g&&g,v=Qn((0,l.useState)(null),2),y=v[0],b=v[1],w=function(e,t){if(!c)throw"Swap items shouldn'nt be called on a single ListSelect";var n=s(i),r=n[t];n[t]=n[e],n[e]=r,o(n.map((function(e){return e.value})))},x=Rf(Cf(Uf),Cf(zf,{coordinateGetter:qp})),S=function(e){var t=e.label,i=e.value,r=n.find((function(e){return e.id.toString()===i.toString()}));return{label:null!=r&&r.name?r.name:t,value:i}};return a().createElement("div",{className:"pods-list-select-values-container",__self:$m,__source:{fileName:km,lineNumber:136,columnNumber:3}},a().createElement(ep,{sensors:x,collisionDetection:Fd,onDragStart:function(e){var t,i=e.active;b(null==i||null===(t=i.data)||void 0===t?void 0:t.current)},onDragEnd:function(e){var t=e.active,n=e.over;if(c&&null!=n&&n.id&&t.id!==n.id){var r=i.findIndex((function(e){return e.value===t.id})),s=i.findIndex((function(e){return e.value===n.id})),l=gp(i,r,s);o(l.map((function(e){return e.value}))),b(null)}},onDragCancel:function(){b(null)},modifiers:[fp],__self:$m,__source:{fileName:km,lineNumber:137,columnNumber:4}},a().createElement(Tp,{items:i.map((function(e){return e.value.toString()})),strategy:kp,__self:$m,__source:{fileName:km,lineNumber:147,columnNumber:5}},i.length?a().createElement("ul",{className:"pods-list-select-values",__self:$m,__source:{fileName:km,lineNumber:152,columnNumber:7}},i.map((function(e,l){var g=n.find((function(t){return(null==t?void 0:t.id)===e.value})),v=d?(null==g?void 0:g.icon)||u:void 0;return a().createElement(wm,{key:"".concat(t,"-").concat(l),fieldName:t,value:S(e),isDraggable:!O&&1!==h,isRemovable:!O,editLink:!O&&p?null==g?void 0:g.edit_link:void 0,viewLink:f?null==g?void 0:g.link:void 0,editIframeTitle:m,icon:v,removeItem:function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;o(c?[].concat(s(i.slice(0,e)),s(i.slice(e+1))).map((function(e){return e.value})):void 0)}(l)},setFieldItemData:r,moveUp:O||0===l?void 0:function(){return w(l,l-1)},moveDown:O||l===i.length-1?void 0:function(){return w(l,l+1)},__self:$m,__source:{fileName:km,lineNumber:163,columnNumber:10}})}))):null),a().createElement(hp,{__self:$m,__source:{fileName:km,lineNumber:192,columnNumber:5}},y?a().createElement(ym,{fieldName:t,value:S(y),isOverlay:!0,isDraggable:!0,isRemovable:!1,editLink:void 0,viewLink:void 0,editIframeTitle:"",icon:void 0,removeItem:function(){},setFieldItemData:function(){},moveUp:function(){},moveDown:function(){},__self:$m,__source:{fileName:km,lineNumber:194,columnNumber:7}}):null)))};_m.propTypes={fieldName:_n().string.isRequired,value:_n().arrayOf(_n().shape({label:_n().string.isRequired,value:_n().string.isRequired})),setValue:_n().func.isRequired,fieldItemData:_n().arrayOf(_n().any),setFieldItemData:_n().func.isRequired,isMulti:_n().bool.isRequired,limit:_n().number.isRequired,defaultIcon:_n().string,showIcon:_n().bool.isRequired,showViewLink:_n().bool.isRequired,showEditLink:_n().bool.isRequired,editIframeTitle:_n().string,readOnly:_n().bool};const Tm=_m;const Qm=function(e,t,i,n,r){var o=Qn((0,l.useState)([]),2),s=o[0],a=o[1];return(0,l.useEffect)((function(){if("pick"===n&&"sister_id"===i){var o=r;if(r.startsWith("post_type-"))o=r.substring(10);else if(r.startsWith("taxonomy-"))o=r.substring(9);else if(r.startsWith("comment-"))o=r.substring(8);else if(r.startsWith("pod-"))o=r.substring(4);else if(!["user","media","comment"].includes(r))return;var s=function(){var i=dn(pn().mark((function i(){var n,r,s,l,c;return pn().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return a([{id:"",name:(0,Pn.__)("Loading available fields…","pods"),icon:"",edit_link:"",link:"",selected:!1}]),n={pick_object:e},["post_type","taxonomy","pod"].includes(e)&&(n.pick_val=t),r=new URLSearchParams({types:"pick",include_parent:1,pod:o,args:JSON.stringify(n)}),i.prev=4,s="pods/v1/fields?".concat(r.toString()),i.next=8,gn()({path:s});case 8:if((l=i.sent).fields&&l.fields.length){i.next=12;break}return a([{id:"",name:(0,Pn.__)("No Related Fields Found","pods"),icon:"",edit_link:"",link:"",selected:!1}]),i.abrupt("return");case 12:(c=l.fields.map((function(e){var t;return{id:e.id.toString(),name:"".concat(e.label," (").concat(e.name,") [Pod: ").concat(null===(t=e.parent_data)||void 0===t?void 0:t.name,"]"),icon:"",edit_link:"",link:"",selected:!1}}))).unshift({id:"",name:(0,Pn.__)("-- Select Related Field --","pods"),icon:"",edit_link:"",link:"",selected:!1}),a(c),i.next=20;break;case 17:i.prev=17,i.t0=i.catch(4),a({id:"",name:(0,Pn.__)("No Related Fields Found","pods"),icon:"",edit_link:"",link:"",selected:!1});case 20:case"end":return i.stop()}}),i,null,[[4,17]])})));return function(){return i.apply(this,arguments)}}();s()}}),[e,t,i,n,r,a]),{bidirectionFieldItemData:s}};var Pm=i(2235),Am={};Am.styleTagTransform=er(),Am.setAttributes=Gn(),Am.insert=Hn().bind(null,"head"),Am.domAPI=Un(),Am.insertStyleElement=Kn();In()(Pm.Z,Am);Pm.Z&&Pm.Z.locals&&Pm.Z.locals;var Cm="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/fields/pick/index.js",Rm=void 0;function Em(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Mm(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Em(Object(i),!0).forEach((function(t){n(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Em(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var Dm=function(e,t){if(e)return t?Array.isArray(e)?e:e.split(","):e},qm=function(e){var t=e.fieldConfig,i=t.ajax_data,n=t.htmlAttr,r=void 0===n?{}:n,o=t.readonly,c=t.fieldItemData,h=t.data,u=void 0===h?[]:h,d=t.label,f=t.name,p=t.required,m=void 0!==p&&p,g=t.default_icon,O=t.iframe_src,v=t.iframe_title_add,y=t.iframe_title_edit,b=t.pick_allow_add_new,w=t.pick_add_new_label,x=void 0===w?(0,Pn.__)("Add New","pods"):w,S=t.pick_format_multi,k=void 0===S?"autocomplete":S,$=t.pick_format_single,_=void 0===$?"dropdown":$,T=t.pick_format_type,Q=void 0===T?"single":T,P=t.pick_limit,A=t.pick_show_edit_link,C=t.pick_show_icon,R=t.pick_show_view_link,E=t.pick_taggable,M=t.type,D=t.pick_placeholder,q=void 0===D?null:D,N=e.setValue,j=e.value,V=e.setHasBlurred,W=e.podType,z=e.podName,L=e.allPodValues,B=j;"object"===Dn(j)&&(B=Object.values(j));var I=q||(0,Pn.sprintf)((0,Pn.__)("Search %s…","pods"),d),X="single"===Q,U="multi"===Q,F=Qn((0,l.useState)(!1),2),H=F[0],Z=F[1],G=(0,l.useState)(c||function(e){return"object"!==Dn(e)||Array.isArray(e)?[]:Object.entries(e).reduce((function(e,t){if("string"==typeof t[1])return[].concat(s(e),[{id:t[0],icon:"",name:t[1],edit_link:"",link:"",selected:!1}]);var i=Object.entries(t[1]).map((function(e){return{name:e[1],id:e[0]}}));return[].concat(s(e),[{id:i,icon:"",name:t[0],edit_link:"",link:"",selected:!1}])}),[])}(u)),Y=Qn(G,2),K=Y[0],J=Y[1],ee=Qm(W,z,f,M,(null==L?void 0:L.pick_object)||"").bidirectionFieldItemData;(0,l.useEffect)((function(){"sister_id"===f&&ee.length&&J(ee)}),[ee]);var te=function(e){if(""!==e&&null!==e){if(X)return N(e),void V(!0);var t=e.filter((function(e){return!!e})),i=parseInt(P,10)||0;if(isNaN(i)||0===i||-1===i)return V(!0),void N(t);t.length>i||(N(t),V(!0))}else N(void 0)};(0,l.useEffect)((function(){var e=function(e){if(e.origin===window.location.origin&&"PODS_MESSAGE"===e.data.type&&e.data.data){Z(!1);var t=e.data.data,i=void 0===t?{}:t;J((function(e){var t;return[].concat(s(e),[Mm(Mm({},i),{},{id:null===(t=i.id)||void 0===t?void 0:t.toString()})])})),te([].concat(s(B||[]),[null==i?void 0:i.id.toString()]))}};return H?window.addEventListener("message",e,!1):window.removeEventListener("message",e,!1),function(){window.removeEventListener("message",e,!1)}}),[H]);return a().createElement(a().Fragment,null,function(){if(!U&&"radio"===_)return a().createElement(Jp,{htmlAttributes:r,name:f,value:B||"",setValue:te,options:K,readOnly:!!o,__self:Rm,__source:{fileName:Cm,lineNumber:302,columnNumber:5}});if(X&&"checkbox"===_||U&&"checkbox"===k){var e=B;return U&&(e=Array.isArray(B)?B:"string"==typeof B?(B||"").split(","):[]),a().createElement(om,{htmlAttributes:r,name:f,value:e,isMulti:U,setValue:te,options:K,readOnly:!!o,__self:Rm,__source:{fileName:Cm,lineNumber:330,columnNumber:5}})}if(X&&"list"===_||U&&"list"===k||X&&"autocomplete"===_||U&&"autocomplete"===k){var t=X&&"list"===_||U&&"list"===k,n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e)return[];if(!i){var n=t.find((function(t){var i;return(null==t||null===(i=t.id)||void 0===i?void 0:i.toString())===e.toString()}));return[{label:null==n?void 0:n.name,value:null==n?void 0:n.id.toString()}]}return(Array.isArray(e)?e:e.split(",")).map((function(e){var i=t.find((function(t){var i;return(null==t||null===(i=t.id)||void 0===i?void 0:i.toString())===e.toString()}));return i?{label:null==i?void 0:i.name,value:null==i?void 0:i.id.toString()}:null})).filter((function(e){return null!==e}))}(B,K,U),l=K.map((function(e){return{label:e.name,value:e.id}}));return a().createElement(a().Fragment,null,a().createElement(Xp,{isTaggable:E,ajaxData:i,shouldRenderValue:!t,formattedOptions:l,value:U?n:n[0],setValue:te,addNewItem:function(e){J((function(t){var i=t.map((function(e){return e.id})),n=s(t);return(U?e:[e]).forEach((function(e){null!=e&&e.value&&(i.includes(null==e?void 0:e.value)||n.push({id:e.value,name:e.label}))})),n})),te(null===e?"":U?e.map((function(e){return e.value})):e.value)},placeholder:I,isMulti:U,isClearable:!E&&!Sl(m),isReadOnly:Sl(o),__self:Rm,__source:{fileName:Cm,lineNumber:403,columnNumber:6}}),t?a().createElement(Tm,{fieldName:f,value:n,setValue:te,fieldItemData:K,setFieldItemData:J,isMulti:U,limit:parseInt(P,10)||0,defaultIcon:g,showIcon:Sl(C),showViewLink:Sl(R),showEditLink:Sl(A),editIframeTitle:y,readOnly:!!o,__self:Rm,__source:{fileName:Cm,lineNumber:418,columnNumber:7}}):null,n.map((function(e,t){return a().createElement("input",{name:"".concat(f,"[").concat(t,"]"),key:"".concat(f,"-").concat(e.value),type:"hidden",value:e.value,__self:Rm,__source:{fileName:Cm,lineNumber:436,columnNumber:7}})})))}return a().createElement(Zp,{htmlAttributes:r,name:f,value:Dm(B,U),setValue:function(e){return te(e)},options:K,isMulti:U,readOnly:!!o,__self:Rm,__source:{fileName:Cm,lineNumber:448,columnNumber:4}})}(),b&&O?a().createElement(Ls.Button,{className:"pods-related-add-new pods-modal",onClick:function(){return Z(!0)},isSecondary:!0,__self:Rm,__source:{fileName:Cm,lineNumber:465,columnNumber:5}},x):null,H?a().createElement(mm,{title:v,iframeSrc:O,onClose:function(){return Z(!1)},__self:Rm,__source:{fileName:Cm,lineNumber:475,columnNumber:5}}):null)};qm.propTypes=Mm(Mm({},Hl),{},{podType:_n().string,podName:_n().string,allPodValues:_n().object,value:_n().oneOfType([_n().arrayOf(_n().oneOfType([_n().string,_n().number])),_n().string,_n().number])});const Nm=qm;function jm(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Vm(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?jm(Object(i),!0).forEach((function(t){n(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):jm(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var Wm=function(e){var t,i=e.fieldConfig,n=void 0===i?{}:i,r=e.setValue,o=e.value,s=n.boolean_format_type,l=void 0===s?"checkbox":s,c=n.boolean_no_label,h=void 0===c?"No":c,u=n.boolean_yes_label,d=o;"Yes"===o?d="1":"No"===o&&(d="0"),d=(t=d)&&"0"!==t?"1":"0";var f=[{id:"1",icon:"",name:void 0===u?"Yes":u,edit_link:"",link:"",selected:!1}];return"checkbox"!==l&&f.push({id:"0",icon:"",name:h,edit_link:"",link:"",selected:!1}),a().createElement(Nm,ql({},e,{fieldConfig:Vm(Vm({},n),{},{pick_format_type:"single",pick_format_single:l,fieldItemData:f}),value:d,setValue:r,__self:undefined,__source:{fileName:"/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/fields/boolean/index.js",lineNumber:59,columnNumber:3}}))};Wm.propTypes=Vm(Vm({},Hl),{},{value:Vl});const zm=Wm;var Lm="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/fields/boolean-group/boolean-group-subfield.js",Bm=void 0,Im=function(e){var t=e.subfieldConfig,i=e.checked,n=e.toggleChange,r=e.allPodValues,o=e.allPodFieldsMap,s=t.htmlAttr,l=void 0===s?{}:s,c=t.help,h=t.label,u=t.name,d=El(t,r,o),f=l.id?l.id:u,p=c&&"help"!==c,m=Array.isArray(c)?c[0]:c,g=Array.isArray(c)&&c[1]?c[1]:void 0;return d?a().createElement("li",{className:"pods-boolean-group__option",__self:Bm,__source:{fileName:Lm,lineNumber:56,columnNumber:3}},a().createElement("div",{className:"pods-field pods-boolean",__self:Bm,__source:{fileName:Lm,lineNumber:57,columnNumber:4}},a().createElement("label",{className:"pods-form-ui-label pods-checkbox-pick__option__label",__self:Bm,__source:{fileName:Lm,lineNumber:59,columnNumber:5}},a().createElement("input",{name:u,id:f,className:"pods-form-ui-field-type-pick",type:"checkbox",checked:i,onChange:n,__self:Bm,__source:{fileName:Lm,lineNumber:62,columnNumber:6}}),h),p&&a().createElement("span",{className:"pods-field-label__tooltip-wrapper",__self:Bm,__source:{fileName:Lm,lineNumber:74,columnNumber:6}}," ",a().createElement(Gs,{helpText:m,helpLink:g,__self:Bm,__source:{fileName:Lm,lineNumber:76,columnNumber:7}})))):null};Im.propTypes={subfieldConfig:_n().exact((0,u.omit)(Xl,["id"])),checked:_n().bool.isRequired,toggleChange:_n().func.isRequired,allPodValues:_n().object.isRequired,allPodFieldsMap:_n().object},Im.defaultProps={help:void 0};const Xm=Im;var Um=i(9160),Fm={};Fm.styleTagTransform=er(),Fm.setAttributes=Gn(),Fm.insert=Hn().bind(null,"head"),Fm.domAPI=Un(),Fm.insertStyleElement=Kn();In()(Um.Z,Fm);Um.Z&&Um.Z.locals&&Um.Z.locals;var Hm="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/fields/boolean-group/index.js",Zm=void 0;function Gm(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Ym(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Gm(Object(i),!0).forEach((function(t){n(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Gm(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var Km=function(e){var t=e.fieldConfig,i=void 0===t?{}:t,n=e.setOptionValue,r=e.values,o=e.allPodValues,s=e.allPodFieldsMap,l=e.setHasBlurred,c=i.boolean_group,h=void 0===c?[]:c,u=function(e){return function(){n(e,!Sl(r[e])),l()}};return a().createElement("ul",{className:"pods-boolean-group",__self:Zm,__source:{fileName:Hm,lineNumber:39,columnNumber:3}},h.map((function(e){var t=e.name;return a().createElement(Xm,{subfieldConfig:Ym({},e),checked:Sl(r[t]),toggleChange:u(t),allPodValues:o,allPodFieldsMap:s,key:e.name,__self:Zm,__source:{fileName:Hm,lineNumber:44,columnNumber:6}})})))};Km.propTypes={fieldConfig:Ul,setOptionValue:_n().func.isRequired,setHasBlurred:_n().func.isRequired,values:_n().object,allPodValues:_n().object.isRequired,allPodFieldsMap:_n().object};const Jm=Km;class eg{constructor(){}lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){let n=[];return this.decompose(0,e,n,2),i.length&&i.decompose(0,i.length,n,3),this.decompose(t,this.length,n,1),ig.from(n,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){let i=[];return this.decompose(e,t,i,0),ig.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),n=new og(this),r=new og(e);for(let e=t,o=t;;){if(n.next(e),r.next(e),e=0,n.lineBreak!=r.lineBreak||n.done!=r.done||n.value!=r.value)return!1;if(o+=n.value.length,n.done||o>=i)return!0}}iter(e=1){return new og(this,e)}iterRange(e,t=this.length){return new sg(this,e,t)}iterLines(e,t){let i;if(null==e)i=this.iter();else{null==t&&(t=this.lines+1);let n=this.line(e).from;i=this.iterRange(n,Math.max(n,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new lg(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}static of(e){if(0==e.length)throw new RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new tg(e):ig.from(tg.split(e,[])):eg.empty}}class tg extends eg{constructor(e,t=function(e){let t=-1;for(let i of e)t+=i.length+1;return t}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,n){for(let r=0;;r++){let o=this.text[r],s=n+o.length;if((t?i:s)>=e)return new ag(n,s,i,o);n=s+1,i++}}decompose(e,t,i,n){let r=e<=0&&t>=this.length?this:new tg(rg(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(1&n){let e=i.pop(),t=ng(r.text,e.text.slice(),0,r.length);if(t.length<=32)i.push(new tg(t,e.length+r.length));else{let e=t.length>>1;i.push(new tg(t.slice(0,e)),new tg(t.slice(e)))}}else i.push(r)}replace(e,t,i){if(!(i instanceof tg))return super.replace(e,t,i);let n=ng(this.text,ng(i.text,rg(this.text,0,e)),t),r=this.length+i.length-(t-e);return n.length<=32?new tg(n,r):ig.from(tg.split(n,[]),r)}sliceString(e,t=this.length,i="\n"){let n="";for(let r=0,o=0;r<=t&&o<this.text.length;o++){let s=this.text[o],l=r+s.length;r>e&&o&&(n+=i),e<l&&t>r&&(n+=s.slice(Math.max(0,e-r),t-r)),r=l+1}return n}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let i=[],n=-1;for(let r of e)i.push(r),n+=r.length+1,32==i.length&&(t.push(new tg(i,n)),i=[],n=-1);return n>-1&&t.push(new tg(i,n)),t}}class ig extends eg{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let t of e)this.lines+=t.lines}lineInner(e,t,i,n){for(let r=0;;r++){let o=this.children[r],s=n+o.length,l=i+o.lines-1;if((t?l:s)>=e)return o.lineInner(e,t,i,n);n=s+1,i=l+1}}decompose(e,t,i,n){for(let r=0,o=0;o<=t&&r<this.children.length;r++){let s=this.children[r],l=o+s.length;if(e<=l&&t>=o){let r=n&((o<=e?1:0)|(l>=t?2:0));o>=e&&l<=t&&!r?i.push(s):s.decompose(e-o,t-o,i,r)}o=l+1}}replace(e,t,i){if(i.lines<this.lines)for(let n=0,r=0;n<this.children.length;n++){let o=this.children[n],s=r+o.length;if(e>=r&&t<=s){let l=o.replace(e-r,t-r,i),a=this.lines-o.lines+l.lines;if(l.lines<a>>4&&l.lines>a>>6){let r=this.children.slice();return r[n]=l,new ig(r,this.length-(t-e)+i.length)}return super.replace(r,s,l)}r=s+1}return super.replace(e,t,i)}sliceString(e,t=this.length,i="\n"){let n="";for(let r=0,o=0;r<this.children.length&&o<=t;r++){let s=this.children[r],l=o+s.length;o>e&&r&&(n+=i),e<l&&t>o&&(n+=s.sliceString(e-o,t-o,i)),o=l+1}return n}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof ig))return 0;let i=0,[n,r,o,s]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;n+=t,r+=t){if(n==o||r==s)return i;let l=this.children[n],a=e.children[r];if(l!=a)return i+l.scanIdentical(a,t);i+=l.length+1}}static from(e,t=e.reduce(((e,t)=>e+t.length+1),-1)){let i=0;for(let t of e)i+=t.lines;if(i<32){let i=[];for(let t of e)t.flatten(i);return new tg(i,t)}let n=Math.max(32,i>>5),r=n<<1,o=n>>1,s=[],l=0,a=-1,c=[];function h(e){let t;if(e.lines>r&&e instanceof ig)for(let t of e.children)h(t);else e.lines>o&&(l>o||!l)?(u(),s.push(e)):e instanceof tg&&l&&(t=c[c.length-1])instanceof tg&&e.lines+t.lines<=32?(l+=e.lines,a+=e.length+1,c[c.length-1]=new tg(t.text.concat(e.text),t.length+1+e.length)):(l+e.lines>n&&u(),l+=e.lines,a+=e.length+1,c.push(e))}function u(){0!=l&&(s.push(1==c.length?c[0]:ig.from(c,a)),a=-1,l=c.length=0)}for(let t of e)h(t);return u(),1==s.length?s[0]:new ig(s,t)}}function ng(e,t,i=0,n=1e9){for(let r=0,o=0,s=!0;o<e.length&&r<=n;o++){let l=e[o],a=r+l.length;a>=i&&(a>n&&(l=l.slice(0,n-r)),r<i&&(l=l.slice(i-r)),s?(t[t.length-1]+=l,s=!1):t.push(l)),r=a+1}return t}function rg(e,t,i){return ng(e,[""],t,i)}eg.empty=new tg([""],0);class og{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof tg?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,n=this.nodes[i],r=this.offsets[i],o=r>>1,s=n instanceof tg?n.text.length:n.children.length;if(o==(t>0?s:0)){if(0==i)return this.done=!0,this.value="",this;t>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&r)==(t>0?0:1)){if(this.offsets[i]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(n instanceof tg){let r=n.text[o+(t<0?-1:0)];if(this.offsets[i]+=t,r.length>Math.max(0,e))return this.value=0==e?r:t>0?r.slice(e):r.slice(0,r.length-e),this;e-=r.length}else{let r=n.children[o+(t<0?-1:0)];e>r.length?(e-=r.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(r),this.offsets.push(t>0?1:(r instanceof tg?r.text.length:r.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class sg{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new og(e,t>i?-1:1),this.pos=t>i?e.length:0,this.from=Math.min(t,i),this.to=Math.max(t,i)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let i=t<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:n}=this.cursor.next(e);return this.pos+=(n.length+e)*t,this.value=n.length<=i?n:t<0?n.slice(n.length-i):n.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class lg{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:i,value:n}=this.inner.next(e);return t?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=n,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(eg.prototype[Symbol.iterator]=function(){return this.iter()},og.prototype[Symbol.iterator]=sg.prototype[Symbol.iterator]=lg.prototype[Symbol.iterator]=function(){return this});class ag{constructor(e,t,i,n){this.from=e,this.to=t,this.number=i,this.text=n}get length(){return this.to-this.from}}let cg="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((e=>e?parseInt(e,36):1));for(let e=1;e<cg.length;e++)cg[e]+=cg[e-1];function hg(e){for(let t=1;t<cg.length;t+=2)if(cg[t]>e)return cg[t-1]<=e;return!1}function ug(e){return e>=127462&&e<=127487}function dg(e,t,i=!0,n=!0){return(i?fg:pg)(e,t,n)}function fg(e,t,i){if(t==e.length)return t;t&&mg(e.charCodeAt(t))&&gg(e.charCodeAt(t-1))&&t--;let n=Og(e,t);for(t+=yg(n);t<e.length;){let r=Og(e,t);if(8205==n||8205==r||i&&hg(r))t+=yg(r),n=r;else{if(!ug(r))break;{let i=0,n=t-2;for(;n>=0&&ug(Og(e,n));)i++,n-=2;if(i%2==0)break;t+=2}}}return t}function pg(e,t,i){for(;t>0;){let n=fg(e,t-2,i);if(n<t)return n;t--}return 0}function mg(e){return e>=56320&&e<57344}function gg(e){return e>=55296&&e<56320}function Og(e,t){let i=e.charCodeAt(t);if(!gg(i)||t+1==e.length)return i;let n=e.charCodeAt(t+1);return mg(n)?n-56320+(i-55296<<10)+65536:i}function vg(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function yg(e){return e<65536?1:2}const bg=/\r\n?|\n/;var wg=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(wg||(wg={}));class xg{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t+1];e+=i<0?this.sections[t]:i}return e}get empty(){return 0==this.sections.length||2==this.sections.length&&this.sections[1]<0}iterGaps(e){for(let t=0,i=0,n=0;t<this.sections.length;){let r=this.sections[t++],o=this.sections[t++];o<0?(e(i,n,r),n+=r):n+=o,i+=r}}iterChangedRanges(e,t=!1){_g(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let i=this.sections[t++],n=this.sections[t++];n<0?e.push(i,n):e.push(n,i)}return new xg(e)}composeDesc(e){return this.empty?e:e.empty?this:Qg(this,e)}mapDesc(e,t=!1){return e.empty?this:Tg(this,e,t)}mapPos(e,t=-1,i=wg.Simple){let n=0,r=0;for(let o=0;o<this.sections.length;){let s=this.sections[o++],l=this.sections[o++],a=n+s;if(l<0){if(a>e)return r+(e-n);r+=s}else{if(i!=wg.Simple&&a>=e&&(i==wg.TrackDel&&n<e&&a>e||i==wg.TrackBefore&&n<e||i==wg.TrackAfter&&a>e))return null;if(a>e||a==e&&t<0&&!s)return e==n||t<0?r:r+l;r+=l}n=a}if(e>n)throw new RangeError(`Position ${e} is out of range for changeset of length ${n}`);return r}touchesRange(e,t=e){for(let i=0,n=0;i<this.sections.length&&n<=t;){let r=n+this.sections[i++];if(this.sections[i++]>=0&&n<=t&&r>=e)return!(n<e&&r>t)||"cover";n=r}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let i=this.sections[t++],n=this.sections[t++];e+=(e?" ":"")+i+(n>=0?":"+n:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some((e=>"number"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeDesc");return new xg(e)}static create(e){return new xg(e)}}class Sg extends xg{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return _g(this,((t,i,n,r,o)=>e=e.replace(n,n+(i-t),o)),!1),e}mapDesc(e,t=!1){return Tg(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let n=0,r=0;n<t.length;n+=2){let o=t[n],s=t[n+1];if(s>=0){t[n]=s,t[n+1]=o;let l=n>>1;for(;i.length<l;)i.push(eg.empty);i.push(o?e.slice(r,r+o):eg.empty)}r+=o}return new Sg(t,i)}compose(e){return this.empty?e:e.empty?this:Qg(this,e,!0)}map(e,t=!1){return e.empty?this:Tg(this,e,t,!0)}iterChanges(e,t=!1){_g(this,e,t)}get desc(){return xg.create(this.sections)}filter(e){let t=[],i=[],n=[],r=new Pg(this);e:for(let o=0,s=0;;){let l=o==e.length?1e9:e[o++];for(;s<l||s==l&&0==r.len;){if(r.done)break e;let e=Math.min(r.len,l-s);kg(n,e,-1);let o=-1==r.ins?-1:0==r.off?r.ins:0;kg(t,e,o),o>0&&$g(i,t,r.text),r.forward(e),s+=e}let a=e[o++];for(;s<a;){if(r.done)break e;let e=Math.min(r.len,a-s);kg(t,e,-1),kg(n,e,-1==r.ins?-1:0==r.off?r.ins:0),r.forward(e),s+=e}}return{changes:new Sg(t,i),filtered:xg.create(n)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t],n=this.sections[t+1];n<0?e.push(i):0==n?e.push([i]):e.push([i].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,i){let n=[],r=[],o=0,s=null;function l(e=!1){if(!e&&!n.length)return;o<t&&kg(n,t-o,-1);let i=new Sg(n,r);s=s?s.compose(i.map(s)):i,n=[],r=[],o=0}return function e(a){if(Array.isArray(a))for(let t of a)e(t);else if(a instanceof Sg){if(a.length!=t)throw new RangeError(`Mismatched change set length (got ${a.length}, expected ${t})`);l(),s=s?s.compose(a.map(s)):a}else{let{from:e,to:s=e,insert:c}=a;if(e>s||e<0||s>t)throw new RangeError(`Invalid change range ${e} to ${s} (in doc of length ${t})`);let h=c?"string"==typeof c?eg.of(c.split(i||bg)):c:eg.empty,u=h.length;if(e==s&&0==u)return;e<o&&l(),e>o&&kg(n,e-o,-1),kg(n,s-e,u),$g(r,n,h),o=s}}(e),l(!s),s}static empty(e){return new Sg(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],i=[];for(let n=0;n<e.length;n++){let r=e[n];if("number"==typeof r)t.push(r,-1);else{if(!Array.isArray(r)||"number"!=typeof r[0]||r.some(((e,t)=>t&&"string"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==r.length)t.push(r[0],0);else{for(;i.length<n;)i.push(eg.empty);i[n]=eg.of(r.slice(1)),t.push(r[0],i[n].length)}}}return new Sg(t,i)}static createSet(e,t){return new Sg(e,t)}}function kg(e,t,i,n=!1){if(0==t&&i<=0)return;let r=e.length-2;r>=0&&i<=0&&i==e[r+1]?e[r]+=t:0==t&&0==e[r]?e[r+1]+=i:n?(e[r]+=t,e[r+1]+=i):e.push(t,i)}function $g(e,t,i){if(0==i.length)return;let n=t.length-2>>1;if(n<e.length)e[e.length-1]=e[e.length-1].append(i);else{for(;e.length<n;)e.push(eg.empty);e.push(i)}}function _g(e,t,i){let n=e.inserted;for(let r=0,o=0,s=0;s<e.sections.length;){let l=e.sections[s++],a=e.sections[s++];if(a<0)r+=l,o+=l;else{let c=r,h=o,u=eg.empty;for(;c+=l,h+=a,a&&n&&(u=u.append(n[s-2>>1])),!(i||s==e.sections.length||e.sections[s+1]<0);)l=e.sections[s++],a=e.sections[s++];t(r,c,o,h,u),r=c,o=h}}}function Tg(e,t,i,n=!1){let r=[],o=n?[]:null,s=new Pg(e),l=new Pg(t);for(let e=-1;;)if(-1==s.ins&&-1==l.ins){let e=Math.min(s.len,l.len);kg(r,e,-1),s.forward(e),l.forward(e)}else if(l.ins>=0&&(s.ins<0||e==s.i||0==s.off&&(l.len<s.len||l.len==s.len&&!i))){let t=l.len;for(kg(r,l.ins,-1);t;){let i=Math.min(s.len,t);s.ins>=0&&e<s.i&&s.len<=i&&(kg(r,0,s.ins),o&&$g(o,r,s.text),e=s.i),s.forward(i),t-=i}l.next()}else{if(!(s.ins>=0)){if(s.done&&l.done)return o?Sg.createSet(r,o):xg.create(r);throw new Error("Mismatched change set lengths")}{let t=0,i=s.len;for(;i;)if(-1==l.ins){let e=Math.min(i,l.len);t+=e,i-=e,l.forward(e)}else{if(!(0==l.ins&&l.len<i))break;i-=l.len,l.next()}kg(r,t,e<s.i?s.ins:0),o&&e<s.i&&$g(o,r,s.text),e=s.i,s.forward(s.len-i)}}}function Qg(e,t,i=!1){let n=[],r=i?[]:null,o=new Pg(e),s=new Pg(t);for(let e=!1;;){if(o.done&&s.done)return r?Sg.createSet(n,r):xg.create(n);if(0==o.ins)kg(n,o.len,0,e),o.next();else if(0!=s.len||s.done){if(o.done||s.done)throw new Error("Mismatched change set lengths");{let t=Math.min(o.len2,s.len),i=n.length;if(-1==o.ins){let i=-1==s.ins?-1:s.off?0:s.ins;kg(n,t,i,e),r&&i&&$g(r,n,s.text)}else-1==s.ins?(kg(n,o.off?0:o.len,t,e),r&&$g(r,n,o.textBit(t))):(kg(n,o.off?0:o.len,s.off?0:s.ins,e),r&&!s.off&&$g(r,n,s.text));e=(o.ins>t||s.ins>=0&&s.len>t)&&(e||n.length>i),o.forward2(t),s.forward(t)}}else kg(n,0,s.ins,e),r&&$g(r,n,s.text),s.next()}}class Pg{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return-2==this.ins}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?eg.empty:e[t]}textBit(e){let{inserted:t}=this.set,i=this.i-2>>1;return i>=t.length&&!e?eg.empty:t[i].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class Ag{constructor(e,t,i){this.from=e,this.to=t,this.flags=i}get anchor(){return 16&this.flags?this.to:this.from}get head(){return 16&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 4&this.flags?-1:8&this.flags?1:0}get bidiLevel(){let e=3&this.flags;return 3==e?null:e}get goalColumn(){let e=this.flags>>5;return 33554431==e?void 0:e}map(e,t=-1){let i,n;return this.empty?i=n=e.mapPos(this.from,t):(i=e.mapPos(this.from,1),n=e.mapPos(this.to,-1)),i==this.from&&n==this.to?this:new Ag(i,n,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return Cg.range(e,t);let i=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return Cg.range(this.anchor,i)}eq(e){return this.anchor==e.anchor&&this.head==e.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid JSON representation for SelectionRange");return Cg.range(e.anchor,e.head)}static create(e,t,i){return new Ag(e,t,i)}}class Cg{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:Cg.create(this.ranges.map((i=>i.map(e,t))),this.mainIndex)}eq(e){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let t=0;t<this.ranges.length;t++)if(!this.ranges[t].eq(e.ranges[t]))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return 1==this.ranges.length?this:new Cg([this.main],0)}addRange(e,t=!0){return Cg.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let i=this.ranges.slice();return i[t]=e,Cg.create(i,this.mainIndex)}toJSON(){return{ranges:this.ranges.map((e=>e.toJSON())),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new Cg(e.ranges.map((e=>Ag.fromJSON(e))),e.main)}static single(e,t=e){return new Cg([Cg.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw new RangeError("A selection needs at least one range");for(let i=0,n=0;n<e.length;n++){let r=e[n];if(r.empty?r.from<=i:r.from<i)return Cg.normalized(e.slice(),t);i=r.to}return new Cg(e,t)}static cursor(e,t=0,i,n){return Ag.create(e,e,(0==t?0:t<0?4:8)|(null==i?3:Math.min(2,i))|(null!=n?n:33554431)<<5)}static range(e,t,i){let n=(null!=i?i:33554431)<<5;return t<e?Ag.create(t,e,24|n):Ag.create(e,t,n|(t>e?4:0))}static normalized(e,t=0){let i=e[t];e.sort(((e,t)=>e.from-t.from)),t=e.indexOf(i);for(let i=1;i<e.length;i++){let n=e[i],r=e[i-1];if(n.empty?n.from<=r.to:n.from<r.to){let o=r.from,s=Math.max(n.to,r.to);i<=t&&t--,e.splice(--i,2,n.anchor>n.head?Cg.range(s,o):Cg.range(o,s))}}return new Cg(e,t)}}function Rg(e,t){for(let i of e.ranges)if(i.to>t)throw new RangeError("Selection points outside of document")}let Eg=0;class Mg{constructor(e,t,i,n,r){this.combine=e,this.compareInput=t,this.compare=i,this.isStatic=n,this.id=Eg++,this.default=e([]),this.extensions="function"==typeof r?r(this):r}static define(e={}){return new Mg(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:Dg),!!e.static,e.enables)}of(e){return new qg([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new qg(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new qg(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],(i=>t(i.field(e))))}}function Dg(e,t){return e==t||e.length==t.length&&e.every(((e,i)=>e===t[i]))}class qg{constructor(e,t,i,n){this.dependencies=e,this.facet=t,this.type=i,this.value=n,this.id=Eg++}dynamicSlot(e){var t;let i=this.value,n=this.facet.compareInput,r=this.id,o=e[r]>>1,s=2==this.type,l=!1,a=!1,c=[];for(let i of this.dependencies)"doc"==i?l=!0:"selection"==i?a=!0:0==(1&(null!==(t=e[i.id])&&void 0!==t?t:1))&&c.push(e[i.id]);return{create:e=>(e.values[o]=i(e),1),update(e,t){if(l&&t.docChanged||a&&(t.docChanged||t.selection)||jg(e,c)){let t=i(e);if(s?!Ng(t,e.values[o],n):!n(t,e.values[o]))return e.values[o]=t,1}return 0},reconfigure:(e,t)=>{let l=i(e),a=t.config.address[r];if(null!=a){let i=Jg(t,a);if(this.dependencies.every((i=>i instanceof Mg?t.facet(i)===e.facet(i):!(i instanceof zg)||t.field(i,!1)==e.field(i,!1)))||(s?Ng(l,i,n):n(l,i)))return e.values[o]=i,0}return e.values[o]=l,1}}}}function Ng(e,t,i){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!i(e[n],t[n]))return!1;return!0}function jg(e,t){let i=!1;for(let n of t)1&Kg(e,n)&&(i=!0);return i}function Vg(e,t,i){let n=i.map((t=>e[t.id])),r=i.map((e=>e.type)),o=n.filter((e=>!(1&e))),s=e[t.id]>>1;function l(e){let i=[];for(let t=0;t<n.length;t++){let o=Jg(e,n[t]);if(2==r[t])for(let e of o)i.push(e);else i.push(o)}return t.combine(i)}return{create(e){for(let t of n)Kg(e,t);return e.values[s]=l(e),1},update(e,i){if(!jg(e,o))return 0;let n=l(e);return t.compare(n,e.values[s])?0:(e.values[s]=n,1)},reconfigure(e,r){let o=jg(e,n),a=r.config.facets[t.id],c=r.facet(t);if(a&&!o&&Dg(i,a))return e.values[s]=c,0;let h=l(e);return t.compare(h,c)?(e.values[s]=c,0):(e.values[s]=h,1)}}}const Wg=Mg.define({static:!0});class zg{constructor(e,t,i,n,r){this.id=e,this.createF=t,this.updateF=i,this.compareF=n,this.spec=r,this.provides=void 0}static define(e){let t=new zg(Eg++,e.create,e.update,e.compare||((e,t)=>e===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(Wg).find((e=>e.field==this));return((null==t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,i)=>{let n=e.values[t],r=this.updateF(n,i);return this.compareF(n,r)?0:(e.values[t]=r,1)},reconfigure:(e,i)=>null!=i.config.address[this.id]?(e.values[t]=i.field(this),0):(e.values[t]=this.create(e),1)}}init(e){return[this,Wg.of({field:this,create:e})]}get extension(){return this}}const Lg=4,Bg=3,Ig=2,Xg=1;function Ug(e){return t=>new Hg(t,e)}const Fg={highest:Ug(0),high:Ug(Xg),default:Ug(Ig),low:Ug(Bg),lowest:Ug(Lg)};class Hg{constructor(e,t){this.inner=e,this.prec=t}}class Zg{of(e){return new Gg(this,e)}reconfigure(e){return Zg.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class Gg{constructor(e,t){this.compartment=e,this.inner=t}}class Yg{constructor(e,t,i,n,r,o){for(this.base=e,this.compartments=t,this.dynamicSlots=i,this.address=n,this.staticValues=r,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<i.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return null==t?e.default:this.staticValues[t>>1]}static resolve(e,t,i){let n=[],r=Object.create(null),o=new Map;for(let i of function(e,t,i){let n=[[],[],[],[],[]],r=new Map;function o(e,s){let l=r.get(e);if(null!=l){if(l<=s)return;let t=n[l].indexOf(e);t>-1&&n[l].splice(t,1),e instanceof Gg&&i.delete(e.compartment)}if(r.set(e,s),Array.isArray(e))for(let t of e)o(t,s);else if(e instanceof Gg){if(i.has(e.compartment))throw new RangeError("Duplicate use of compartment in extensions");let n=t.get(e.compartment)||e.inner;i.set(e.compartment,n),o(n,s)}else if(e instanceof Hg)o(e.inner,e.prec);else if(e instanceof zg)n[s].push(e),e.provides&&o(e.provides,s);else if(e instanceof qg)n[s].push(e),e.facet.extensions&&o(e.facet.extensions,Ig);else{let t=e.extension;if(!t)throw new Error(`Unrecognized extension value in extension set (${e}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);o(t,s)}}return o(e,Ig),n.reduce(((e,t)=>e.concat(t)))}(e,t,o))i instanceof zg?n.push(i):(r[i.facet.id]||(r[i.facet.id]=[])).push(i);let s=Object.create(null),l=[],a=[];for(let e of n)s[e.id]=a.length<<1,a.push((t=>e.slot(t)));let c=null==i?void 0:i.config.facets;for(let e in r){let t=r[e],n=t[0].facet,o=c&&c[e]||[];if(t.every((e=>0==e.type)))if(s[n.id]=l.length<<1|1,Dg(o,t))l.push(i.facet(n));else{let e=n.combine(t.map((e=>e.value)));l.push(i&&n.compare(e,i.facet(n))?i.facet(n):e)}else{for(let e of t)0==e.type?(s[e.id]=l.length<<1|1,l.push(e.value)):(s[e.id]=a.length<<1,a.push((t=>e.dynamicSlot(t))));s[n.id]=a.length<<1,a.push((e=>Vg(e,n,t)))}}let h=a.map((e=>e(s)));return new Yg(e,o,h,s,l,r)}}function Kg(e,t){if(1&t)return 2;let i=t>>1,n=e.status[i];if(4==n)throw new Error("Cyclic dependency between fields and/or facets");if(2&n)return n;e.status[i]=4;let r=e.computeSlot(e,e.config.dynamicSlots[i]);return e.status[i]=2|r}function Jg(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}const eO=Mg.define(),tO=Mg.define({combine:e=>e.some((e=>e)),static:!0}),iO=Mg.define({combine:e=>e.length?e[0]:void 0,static:!0}),nO=Mg.define(),rO=Mg.define(),oO=Mg.define(),sO=Mg.define({combine:e=>!!e.length&&e[0]});class lO{constructor(e,t){this.type=e,this.value=t}static define(){return new aO}}class aO{of(e){return new lO(this,e)}}class cO{constructor(e){this.map=e}of(e){return new hO(this,e)}}class hO{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new hO(this.type,t)}is(e){return this.type==e}static define(e={}){return new cO(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let i=[];for(let n of e){let e=n.map(t);e&&i.push(e)}return i}}hO.reconfigure=hO.define(),hO.appendConfig=hO.define();class uO{constructor(e,t,i,n,r,o){this.startState=e,this.changes=t,this.selection=i,this.effects=n,this.annotations=r,this.scrollIntoView=o,this._doc=null,this._state=null,i&&Rg(i,t.newLength),r.some((e=>e.type==uO.time))||(this.annotations=r.concat(uO.time.of(Date.now())))}static create(e,t,i,n,r,o){return new uO(e,t,i,n,r,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(uO.userEvent);return!(!t||!(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function dO(e,t){let i=[];for(let n=0,r=0;;){let o,s;if(n<e.length&&(r==t.length||t[r]>=e[n]))o=e[n++],s=e[n++];else{if(!(r<t.length))return i;o=t[r++],s=t[r++]}!i.length||i[i.length-1]<o?i.push(o,s):i[i.length-1]<s&&(i[i.length-1]=s)}}function fO(e,t,i){var n;let r,o,s;return i?(r=t.changes,o=Sg.empty(t.changes.length),s=e.changes.compose(t.changes)):(r=t.changes.map(e.changes),o=e.changes.mapDesc(t.changes,!0),s=e.changes.compose(r)),{changes:s,selection:t.selection?t.selection.map(o):null===(n=e.selection)||void 0===n?void 0:n.map(r),effects:hO.mapEffects(e.effects,r).concat(hO.mapEffects(t.effects,o)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function pO(e,t,i){let n=t.selection,r=OO(t.annotations);return t.userEvent&&(r=r.concat(uO.userEvent.of(t.userEvent))),{changes:t.changes instanceof Sg?t.changes:Sg.of(t.changes||[],i,e.facet(iO)),selection:n&&(n instanceof Cg?n:Cg.single(n.anchor,n.head)),effects:OO(t.effects),annotations:r,scrollIntoView:!!t.scrollIntoView}}function mO(e,t,i){let n=pO(e,t.length?t[0]:{},e.doc.length);t.length&&!1===t[0].filter&&(i=!1);for(let r=1;r<t.length;r++){!1===t[r].filter&&(i=!1);let o=!!t[r].sequential;n=fO(n,pO(e,t[r],o?n.changes.newLength:e.doc.length),o)}let r=uO.create(e,n.changes,n.selection,n.effects,n.annotations,n.scrollIntoView);return function(e){let t=e.startState,i=t.facet(oO),n=e;for(let r=i.length-1;r>=0;r--){let o=i[r](e);o&&Object.keys(o).length&&(n=fO(e,pO(t,o,e.changes.newLength),!0))}return n==e?e:uO.create(t,e.changes,e.selection,n.effects,n.annotations,n.scrollIntoView)}(i?function(e){let t=e.startState,i=!0;for(let n of t.facet(nO)){let t=n(e);if(!1===t){i=!1;break}Array.isArray(t)&&(i=!0===i?t:dO(i,t))}if(!0!==i){let n,r;if(!1===i)r=e.changes.invertedDesc,n=Sg.empty(t.doc.length);else{let t=e.changes.filter(i);n=t.changes,r=t.filtered.mapDesc(t.changes).invertedDesc}e=uO.create(t,n,e.selection&&e.selection.map(r),hO.mapEffects(e.effects,r),e.annotations,e.scrollIntoView)}let n=t.facet(rO);for(let i=n.length-1;i>=0;i--){let r=n[i](e);e=r instanceof uO?r:Array.isArray(r)&&1==r.length&&r[0]instanceof uO?r[0]:mO(t,OO(r),!1)}return e}(r):r)}uO.time=lO.define(),uO.userEvent=lO.define(),uO.addToHistory=lO.define(),uO.remote=lO.define();const gO=[];function OO(e){return null==e?gO:Array.isArray(e)?e:[e]}var vO=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(vO||(vO={}));const yO=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let bO;try{bO=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(e){}function wO(e){return t=>{if(!/\S/.test(t))return vO.Space;if(function(e){if(bO)return bO.test(e);for(let t=0;t<e.length;t++){let i=e[t];if(/\w/.test(i)||i>"€"&&(i.toUpperCase()!=i.toLowerCase()||yO.test(i)))return!0}return!1}(t))return vO.Word;for(let i=0;i<e.length;i++)if(t.indexOf(e[i])>-1)return vO.Word;return vO.Other}}class xO{constructor(e,t,i,n,r,o){this.config=e,this.doc=t,this.selection=i,this.values=n,this.status=e.statusTemplate.slice(),this.computeSlot=r,o&&(o._state=this);for(let e=0;e<this.config.dynamicSlots.length;e++)Kg(this,e<<1);this.computeSlot=null}field(e,t=!0){let i=this.config.address[e.id];if(null!=i)return Kg(this,i),Jg(this,i);if(t)throw new RangeError("Field is not present in this state")}update(...e){return mO(this,e,!0)}applyTransaction(e){let t,i=this.config,{base:n,compartments:r}=i;for(let t of e.effects)t.is(Zg.reconfigure)?(i&&(r=new Map,i.compartments.forEach(((e,t)=>r.set(t,e))),i=null),r.set(t.value.compartment,t.value.extension)):t.is(hO.reconfigure)?(i=null,n=t.value):t.is(hO.appendConfig)&&(i=null,n=OO(n).concat(t.value));if(i)t=e.startState.values.slice();else{i=Yg.resolve(n,r,this),t=new xO(i,this.doc,this.selection,i.dynamicSlots.map((()=>null)),((e,t)=>t.reconfigure(e,this)),null).values}new xO(i,e.newDoc,e.newSelection,t,((t,i)=>i.update(t,e)),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange((t=>({changes:{from:t.from,to:t.to,insert:e},range:Cg.cursor(t.from+e.length)})))}changeByRange(e){let t=this.selection,i=e(t.ranges[0]),n=this.changes(i.changes),r=[i.range],o=OO(i.effects);for(let i=1;i<t.ranges.length;i++){let s=e(t.ranges[i]),l=this.changes(s.changes),a=l.map(n);for(let e=0;e<i;e++)r[e]=r[e].map(a);let c=n.mapDesc(l,!0);r.push(s.range.map(c)),n=n.compose(a),o=hO.mapEffects(o,a).concat(hO.mapEffects(OO(s.effects),c))}return{changes:n,selection:Cg.create(r,t.mainIndex),effects:o}}changes(e=[]){return e instanceof Sg?e:Sg.of(e,this.doc.length,this.facet(xO.lineSeparator))}toText(e){return eg.of(e.split(this.facet(xO.lineSeparator)||bg))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return null==t?e.default:(Kg(this,t),Jg(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let i in e){let n=e[i];n instanceof zg&&null!=this.config.address[n.id]&&(t[i]=n.spec.toJSON(this.field(e[i]),this))}return t}static fromJSON(e,t={},i){if(!e||"string"!=typeof e.doc)throw new RangeError("Invalid JSON representation for EditorState");let n=[];if(i)for(let t in i)if(Object.prototype.hasOwnProperty.call(e,t)){let r=i[t],o=e[t];n.push(r.init((e=>r.spec.fromJSON(o,e))))}return xO.create({doc:e.doc,selection:Cg.fromJSON(e.selection),extensions:t.extensions?n.concat([t.extensions]):n})}static create(e={}){let t=Yg.resolve(e.extensions||[],new Map),i=e.doc instanceof eg?e.doc:eg.of((e.doc||"").split(t.staticFacet(xO.lineSeparator)||bg)),n=e.selection?e.selection instanceof Cg?e.selection:Cg.single(e.selection.anchor,e.selection.head):Cg.single(0);return Rg(n,i.length),t.staticFacet(tO)||(n=n.asSingle()),new xO(t,i,n,t.dynamicSlots.map((()=>null)),((e,t)=>t.create(e)),null)}get tabSize(){return this.facet(xO.tabSize)}get lineBreak(){return this.facet(xO.lineSeparator)||"\n"}get readOnly(){return this.facet(sO)}phrase(e,...t){for(let t of this.facet(xO.phrases))if(Object.prototype.hasOwnProperty.call(t,e)){e=t[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,((e,i)=>{if("$"==i)return"$";let n=+(i||1);return!n||n>t.length?e:t[n-1]}))),e}languageDataAt(e,t,i=-1){let n=[];for(let r of this.facet(eO))for(let o of r(this,t,i))Object.prototype.hasOwnProperty.call(o,e)&&n.push(o[e]);return n}charCategorizer(e){return wO(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:i,length:n}=this.doc.lineAt(e),r=this.charCategorizer(e),o=e-i,s=e-i;for(;o>0;){let e=dg(t,o,!1);if(r(t.slice(e,o))!=vO.Word)break;o=e}for(;s<n;){let e=dg(t,s);if(r(t.slice(s,e))!=vO.Word)break;s=e}return o==s?null:Cg.range(o+i,s+i)}}function SO(e,t,i={}){let n={};for(let t of e)for(let e of Object.keys(t)){let r=t[e],o=n[e];if(void 0===o)n[e]=r;else if(o===r||void 0===r);else{if(!Object.hasOwnProperty.call(i,e))throw new Error("Config merge conflict for field "+e);n[e]=i[e](o,r)}}for(let e in t)void 0===n[e]&&(n[e]=t[e]);return n}xO.allowMultipleSelections=tO,xO.tabSize=Mg.define({combine:e=>e.length?e[0]:4}),xO.lineSeparator=iO,xO.readOnly=sO,xO.phrases=Mg.define({compare(e,t){let i=Object.keys(e),n=Object.keys(t);return i.length==n.length&&i.every((i=>e[i]==t[i]))}}),xO.languageData=eO,xO.changeFilter=nO,xO.transactionFilter=rO,xO.transactionExtender=oO,Zg.reconfigure=hO.define();class kO{eq(e){return this==e}range(e,t=e){return $O.create(e,t,this)}}kO.prototype.startSide=kO.prototype.endSide=0,kO.prototype.point=!1,kO.prototype.mapMode=wg.TrackDel;class $O{constructor(e,t,i){this.from=e,this.to=t,this.value=i}static create(e,t,i){return new $O(e,t,i)}}function _O(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class TO{constructor(e,t,i,n){this.from=e,this.to=t,this.value=i,this.maxPoint=n}get length(){return this.to[this.to.length-1]}findIndex(e,t,i,n=0){let r=i?this.to:this.from;for(let o=n,s=r.length;;){if(o==s)return o;let n=o+s>>1,l=r[n]-e||(i?this.value[n].endSide:this.value[n].startSide)-t;if(n==o)return l>=0?o:s;l>=0?s=n:o=n+1}}between(e,t,i,n){for(let r=this.findIndex(t,-1e9,!0),o=this.findIndex(i,1e9,!1,r);r<o;r++)if(!1===n(this.from[r]+e,this.to[r]+e,this.value[r]))return!1}map(e,t){let i=[],n=[],r=[],o=-1,s=-1;for(let l=0;l<this.value.length;l++){let a,c,h=this.value[l],u=this.from[l]+e,d=this.to[l]+e;if(u==d){let e=t.mapPos(u,h.startSide,h.mapMode);if(null==e)continue;if(a=c=e,h.startSide!=h.endSide&&(c=t.mapPos(u,h.endSide),c<a))continue}else if(a=t.mapPos(u,h.startSide),c=t.mapPos(d,h.endSide),a>c||a==c&&h.startSide>0&&h.endSide<=0)continue;(c-a||h.endSide-h.startSide)<0||(o<0&&(o=a),h.point&&(s=Math.max(s,c-a)),i.push(h),n.push(a-o),r.push(c-o))}return{mapped:i.length?new TO(n,r,i,s):null,pos:o}}}class QO{constructor(e,t,i,n){this.chunkPos=e,this.chunk=t,this.nextLayer=i,this.maxPoint=n}static create(e,t,i,n){return new QO(e,t,i,n)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:i=!1,filterFrom:n=0,filterTo:r=this.length}=e,o=e.filter;if(0==t.length&&!o)return this;if(i&&(t=t.slice().sort(_O)),this.isEmpty)return t.length?QO.of(t):this;let s=new CO(this,null,-1).goto(0),l=0,a=[],c=new PO;for(;s.value||l<t.length;)if(l<t.length&&(s.from-t[l].from||s.startSide-t[l].value.startSide)>=0){let e=t[l++];c.addInner(e.from,e.to,e.value)||a.push(e)}else 1==s.rangeIndex&&s.chunkIndex<this.chunk.length&&(l==t.length||this.chunkEnd(s.chunkIndex)<t[l].from)&&(!o||n>this.chunkEnd(s.chunkIndex)||r<this.chunkPos[s.chunkIndex])&&c.addChunk(this.chunkPos[s.chunkIndex],this.chunk[s.chunkIndex])?s.nextChunk():((!o||n>s.to||r<s.from||o(s.from,s.to,s.value))&&(c.addInner(s.from,s.to,s.value)||a.push($O.create(s.from,s.to,s.value))),s.next());return c.finishInner(this.nextLayer.isEmpty&&!a.length?QO.empty:this.nextLayer.update({add:a,filter:o,filterFrom:n,filterTo:r}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],i=[],n=-1;for(let r=0;r<this.chunk.length;r++){let o=this.chunkPos[r],s=this.chunk[r],l=e.touchesRange(o,o+s.length);if(!1===l)n=Math.max(n,s.maxPoint),t.push(s),i.push(e.mapPos(o));else if(!0===l){let{mapped:r,pos:l}=s.map(o,e);r&&(n=Math.max(n,r.maxPoint),t.push(r),i.push(l))}}let r=this.nextLayer.map(e);return 0==t.length?r:new QO(i,t,r||QO.empty,n)}between(e,t,i){if(!this.isEmpty){for(let n=0;n<this.chunk.length;n++){let r=this.chunkPos[n],o=this.chunk[n];if(t>=r&&e<=r+o.length&&!1===o.between(r,e-r,t-r,i))return}this.nextLayer.between(e,t,i)}}iter(e=0){return RO.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return RO.from(e).goto(t)}static compare(e,t,i,n,r=-1){let o=e.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=r)),s=t.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=r)),l=AO(o,s,i),a=new MO(o,l,r),c=new MO(s,l,r);i.iterGaps(((e,t,i)=>DO(a,e,c,t,i,n))),i.empty&&0==i.length&&DO(a,0,c,0,0,n)}static eq(e,t,i=0,n){null==n&&(n=1e9);let r=e.filter((e=>!e.isEmpty&&t.indexOf(e)<0)),o=t.filter((t=>!t.isEmpty&&e.indexOf(t)<0));if(r.length!=o.length)return!1;if(!r.length)return!0;let s=AO(r,o),l=new MO(r,s,0).goto(i),a=new MO(o,s,0).goto(i);for(;;){if(l.to!=a.to||!qO(l.active,a.active)||l.point&&(!a.point||!l.point.eq(a.point)))return!1;if(l.to>n)return!0;l.next(),a.next()}}static spans(e,t,i,n,r=-1){let o=new MO(e,null,r).goto(t),s=t,l=o.openStart;for(;;){let e=Math.min(o.to,i);if(o.point?(n.point(s,e,o.point,o.activeForPoint(o.to),l,o.pointRank),l=o.openEnd(e)+(o.to>e?1:0)):e>s&&(n.span(s,e,o.active,l),l=o.openEnd(e)),o.to>i)break;s=o.to,o.next()}return l}static of(e,t=!1){let i=new PO;for(let n of e instanceof $O?[e]:t?function(e){if(e.length>1)for(let t=e[0],i=1;i<e.length;i++){let n=e[i];if(_O(t,n)>0)return e.slice().sort(_O);t=n}return e}(e):e)i.add(n.from,n.to,n.value);return i.finish()}}QO.empty=new QO([],[],null,-1),QO.empty.nextLayer=QO.empty;class PO{constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}finishChunk(e){this.chunks.push(new TO(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}add(e,t,i){this.addInner(e,t,i)||(this.nextLayer||(this.nextLayer=new PO)).add(e,t,i)}addInner(e,t,i){let n=e-this.lastTo||i.startSide-this.last.endSide;if(n<=0&&(e-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(n<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=i,this.lastFrom=e,this.lastTo=t,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let i=t.value.length-1;return this.last=t.value[i],this.lastFrom=t.from[i]+e,this.lastTo=t.to[i]+e,!0}finish(){return this.finishInner(QO.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=QO.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function AO(e,t,i){let n=new Map;for(let t of e)for(let e=0;e<t.chunk.length;e++)t.chunk[e].maxPoint<=0&&n.set(t.chunk[e],t.chunkPos[e]);let r=new Set;for(let e of t)for(let t=0;t<e.chunk.length;t++){let o=n.get(e.chunk[t]);null==o||(i?i.mapPos(o):o)!=e.chunkPos[t]||(null==i?void 0:i.touchesRange(o,o+e.chunk[t].length))||r.add(e.chunk[t])}return r}class CO{constructor(e,t,i,n=0){this.layer=e,this.skip=t,this.minPoint=i,this.rank=n}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,t=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,i){for(;this.chunkIndex<this.layer.chunk.length;){let t=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(t)||this.layer.chunkEnd(this.chunkIndex)<e||t.maxPoint<this.minPoint))break;this.chunkIndex++,i=!1}if(this.chunkIndex<this.layer.chunk.length){let n=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!i||this.rangeIndex<n)&&this.setRangeIndex(n)}this.next()}forward(e,t){(this.to-e||this.endSide-t)<0&&this.gotoInner(e,t,!0)}next(){for(;;){if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],i=e+t.from[this.rangeIndex];if(this.from=i,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class RO{constructor(e){this.heap=e}static from(e,t=null,i=-1){let n=[];for(let r=0;r<e.length;r++)for(let o=e[r];!o.isEmpty;o=o.nextLayer)o.maxPoint>=i&&n.push(new CO(o,t,i,r));return 1==n.length?n[0]:new RO(n)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let i of this.heap)i.goto(e,t);for(let e=this.heap.length>>1;e>=0;e--)EO(this.heap,e);return this.next(),this}forward(e,t){for(let i of this.heap)i.forward(e,t);for(let e=this.heap.length>>1;e>=0;e--)EO(this.heap,e);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),EO(this.heap,0)}}}function EO(e,t){for(let i=e[t];;){let n=1+(t<<1);if(n>=e.length)break;let r=e[n];if(n+1<e.length&&r.compare(e[n+1])>=0&&(r=e[n+1],n++),i.compare(r)<0)break;e[n]=i,e[t]=r,t=n}}class MO{constructor(e,t,i){this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=RO.from(e,t,i)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){NO(this.active,e),NO(this.activeTo,e),NO(this.activeRank,e),this.minActive=VO(this.active,this.activeTo)}addActive(e){let t=0,{value:i,to:n,rank:r}=this.cursor;for(;t<this.activeRank.length&&this.activeRank[t]<=r;)t++;jO(this.active,t,i),jO(this.activeTo,t,n),jO(this.activeRank,t,r),e&&jO(e,t,this.cursor.from),this.minActive=VO(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let i=this.openStart<0?[]:null,n=0;for(;;){let r=this.minActive;if(r>-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),i&&NO(i,r)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let r=this.cursor.value;if(r.point){if(!(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)){this.point=r,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=r.endSide,this.cursor.from<e&&(n=1),this.cursor.next(),this.forward(this.to,this.endSide);break}this.cursor.next()}else this.addActive(i),this.cursor.from<e&&this.cursor.to>e&&n++,this.cursor.next()}}}if(i){let t=0;for(;t<i.length&&i[t]<e;)t++;this.openStart=t+n}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];for(let i=this.active.length-1;i>=0&&!(this.activeRank[i]<this.pointRank);i--)(this.activeTo[i]>e||this.activeTo[i]==e&&this.active[i].endSide>=this.point.endSide)&&t.push(this.active[i]);return t.reverse()}openEnd(e){let t=0;for(let i=this.activeTo.length-1;i>=0&&this.activeTo[i]>e;i--)t++;return t}}function DO(e,t,i,n,r,o){e.goto(t),i.goto(n);let s=n+r,l=n,a=n-t;for(;;){let t=e.to+a-i.to||e.endSide-i.endSide,n=t<0?e.to+a:i.to,r=Math.min(n,s);if(e.point||i.point?e.point&&i.point&&(e.point==i.point||e.point.eq(i.point))&&qO(e.activeForPoint(e.to+a),i.activeForPoint(i.to))||o.comparePoint(l,r,e.point,i.point):r>l&&!qO(e.active,i.active)&&o.compareRange(l,r,e.active,i.active),n>s)break;l=n,t<=0&&e.next(),t>=0&&i.next()}}function qO(e,t){if(e.length!=t.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!=t[i]&&!e[i].eq(t[i]))return!1;return!0}function NO(e,t){for(let i=t,n=e.length-1;i<n;i++)e[i]=e[i+1];e.pop()}function jO(e,t,i){for(let i=e.length-1;i>=t;i--)e[i+1]=e[i];e[t]=i}function VO(e,t){let i=-1,n=1e9;for(let r=0;r<t.length;r++)(t[r]-n||e[r].endSide-e[i].endSide)<0&&(i=r,n=t[r]);return i}function WO(e,t,i=e.length){let n=0;for(let r=0;r<i;)9==e.charCodeAt(r)?(n+=t-n%t,r++):(n++,r=dg(e,r));return n}function zO(e,t,i,n){for(let n=0,r=0;;){if(r>=t)return n;if(n==e.length)break;r+=9==e.charCodeAt(n)?i-r%i:1,n=dg(e,n)}return!0===n?-1:e.length}const LO="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),BO="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),IO="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class XO{constructor(e,t){this.rules=[];let{finish:i}=t||{};function n(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}function r(e,t,o,s){let l=[],a=/^@(\w+)\b/.exec(e[0]),c=a&&"keyframes"==a[1];if(a&&null==t)return o.push(e[0]+";");for(let i in t){let s=t[i];if(/&/.test(i))r(i.split(/,\s*/).map((t=>e.map((e=>t.replace(/&/,e))))).reduce(((e,t)=>e.concat(t))),s,o);else if(s&&"object"==typeof s){if(!a)throw new RangeError("The value of a property ("+i+") should be a primitive value.");r(n(i),s,l,c)}else null!=s&&l.push(i.replace(/_.*/,"").replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))+": "+s+";")}(l.length||c)&&o.push((!i||a||s?e:e.map(i)).join(", ")+" {"+l.join(" ")+"}")}for(let t in e)r(n(t),e[t],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=IO[LO]||1;return IO[LO]=e+1,"ͼ"+e.toString(36)}static mount(e,t){(e[BO]||new FO(e)).mount(Array.isArray(t)?t:[t])}}let UO=null;class FO{constructor(e){if(!e.head&&e.adoptedStyleSheets&&"undefined"!=typeof CSSStyleSheet){if(UO)return e.adoptedStyleSheets=[UO.sheet].concat(e.adoptedStyleSheets),e[BO]=UO;this.sheet=new CSSStyleSheet,e.adoptedStyleSheets=[this.sheet].concat(e.adoptedStyleSheets),UO=this}else{this.styleTag=(e.ownerDocument||e).createElement("style");let t=e.head||e;t.insertBefore(this.styleTag,t.firstChild)}this.modules=[],e[BO]=this}mount(e){let t=this.sheet,i=0,n=0;for(let r=0;r<e.length;r++){let o=e[r],s=this.modules.indexOf(o);if(s<n&&s>-1&&(this.modules.splice(s,1),n--,s=-1),-1==s){if(this.modules.splice(n++,0,o),t)for(let e=0;e<o.rules.length;e++)t.insertRule(o.rules[e],i++)}else{for(;n<s;)i+=this.modules[n++].rules.length;i+=o.rules.length,n++}}if(!t){let e="";for(let t=0;t<this.modules.length;t++)e+=this.modules[t].getRules()+"\n";this.styleTag.textContent=e}}}for(var HO={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},ZO={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},GO="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent),YO=("undefined"!=typeof navigator&&/Gecko\/\d+/.test(navigator.userAgent),"undefined"!=typeof navigator&&/Mac/.test(navigator.platform)),KO="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),JO=YO||GO&&+GO[1]<57,ev=0;ev<10;ev++)HO[48+ev]=HO[96+ev]=String(ev);for(ev=1;ev<=24;ev++)HO[ev+111]="F"+ev;for(ev=65;ev<=90;ev++)HO[ev]=String.fromCharCode(ev+32),ZO[ev]=String.fromCharCode(ev);for(var tv in HO)ZO.hasOwnProperty(tv)||(ZO[tv]=HO[tv]);function iv(e){var t=!(JO&&(e.ctrlKey||e.altKey||e.metaKey)||KO&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?ZO:HO)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}function nv(e){let t;return t=11==e.nodeType?e.getSelection?e:e.ownerDocument:e,t.getSelection()}function rv(e,t){return!!t&&(e==t||e.contains(1!=t.nodeType?t.parentNode:t))}function ov(e,t){if(!t.anchorNode)return!1;try{return rv(e,t.anchorNode)}catch(e){return!1}}function sv(e){return 3==e.nodeType?vv(e,0,e.nodeValue.length).getClientRects():1==e.nodeType?e.getClientRects():[]}function lv(e,t,i,n){return!!i&&(cv(e,t,i,n,-1)||cv(e,t,i,n,1))}function av(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}function cv(e,t,i,n,r){for(;;){if(e==i&&t==n)return!0;if(t==(r<0?0:hv(e))){if("DIV"==e.nodeName)return!1;let i=e.parentNode;if(!i||1!=i.nodeType)return!1;t=av(e)+(r<0?0:1),e=i}else{if(1!=e.nodeType)return!1;if(1==(e=e.childNodes[t+(r<0?-1:0)]).nodeType&&"false"==e.contentEditable)return!1;t=r<0?hv(e):0}}}function hv(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}const uv={left:0,right:0,top:0,bottom:0};function dv(e,t){let i=t?e.left:e.right;return{left:i,right:i,top:e.top,bottom:e.bottom}}function fv(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}class pv{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){this.set(e.anchorNode,e.anchorOffset,e.focusNode,e.focusOffset)}set(e,t,i,n){this.anchorNode=e,this.anchorOffset=t,this.focusNode=i,this.focusOffset=n}}let mv,gv=null;function Ov(e){if(e.setActive)return e.setActive();if(gv)return e.focus(gv);let t=[];for(let i=e;i&&(t.push(i,i.scrollTop,i.scrollLeft),i!=i.ownerDocument);i=i.parentNode);if(e.focus(null==gv?{get preventScroll(){return gv={preventScroll:!0},!0}}:void 0),!gv){gv=!1;for(let e=0;e<t.length;){let i=t[e++],n=t[e++],r=t[e++];i.scrollTop!=n&&(i.scrollTop=n),i.scrollLeft!=r&&(i.scrollLeft=r)}}}function vv(e,t,i=t){let n=mv||(mv=document.createRange());return n.setEnd(e,i),n.setStart(e,t),n}function yv(e,t,i){let n={key:t,code:t,keyCode:i,which:i,cancelable:!0},r=new KeyboardEvent("keydown",n);r.synthetic=!0,e.dispatchEvent(r);let o=new KeyboardEvent("keyup",n);return o.synthetic=!0,e.dispatchEvent(o),r.defaultPrevented||o.defaultPrevented}function bv(e){for(;e.attributes.length;)e.removeAttributeNode(e.attributes[0])}class wv{constructor(e,t,i=!0){this.node=e,this.offset=t,this.precise=i}static before(e,t){return new wv(e.parentNode,av(e),t)}static after(e,t){return new wv(e.parentNode,av(e)+1,t)}}const xv=[];class Sv{constructor(){this.parent=null,this.dom=null,this.dirty=2}get editorView(){if(!this.parent)throw new Error("Accessing view in orphan content view");return this.parent.editorView}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let t=this.posAtStart;for(let i of this.children){if(i==e)return t;t+=i.length+i.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}coordsAt(e,t){return null}sync(e){if(2&this.dirty){let t,i=this.dom,n=null;for(let r of this.children){if(r.dirty){if(!r.dom&&(t=n?n.nextSibling:i.firstChild)){let e=Sv.get(t);e&&(e.parent||e.constructor!=r.constructor)||r.reuseDOM(t)}r.sync(e),r.dirty=0}if(t=n?n.nextSibling:i.firstChild,e&&!e.written&&e.node==i&&t!=r.dom&&(e.written=!0),r.dom.parentNode==i)for(;t&&t!=r.dom;)t=kv(t);else i.insertBefore(r.dom,t);n=r.dom}for(t=n?n.nextSibling:i.firstChild,t&&e&&e.node==i&&(e.written=!0);t;)t=kv(t)}else if(1&this.dirty)for(let t of this.children)t.dirty&&(t.sync(e),t.dirty=0)}reuseDOM(e){}localPosFromDOM(e,t){let i;if(e==this.dom)i=this.dom.childNodes[t];else{let n=0==hv(e)?0:0==t?-1:1;for(;;){let t=e.parentNode;if(t==this.dom)break;0==n&&t.firstChild!=t.lastChild&&(n=e==t.firstChild?-1:1),e=t}i=n<0?e:e.nextSibling}if(i==this.dom.firstChild)return 0;for(;i&&!Sv.get(i);)i=i.nextSibling;if(!i)return this.length;for(let e=0,t=0;;e++){let n=this.children[e];if(n.dom==i)return t;t+=n.length+n.breakAfter}}domBoundsAround(e,t,i=0){let n=-1,r=-1,o=-1,s=-1;for(let l=0,a=i,c=i;l<this.children.length;l++){let i=this.children[l],h=a+i.length;if(a<e&&h>t)return i.domBoundsAround(e,t,a);if(h>=e&&-1==n&&(n=l,r=a),a>t&&i.dom.parentNode==this.dom){o=l,s=c;break}c=h,a=h+i.breakAfter}return{from:r,to:s<0?i+this.length:s,startDOM:(n?this.children[n-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o<this.children.length&&o>=0?this.children[o].dom:null}}markDirty(e=!1){this.dirty|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.dirty|=2),1&t.dirty)return;t.dirty|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.dirty&&this.markParentsDirty(!0))}setDOM(e){this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,i=xv){this.markDirty();for(let i=e;i<t;i++){let e=this.children[i];e.parent==this&&e.destroy()}this.children.splice(e,t-e,...i);for(let e=0;e<i.length;e++)i[e].setParent(this)}ignoreMutation(e){return!1}ignoreEvent(e){return!1}childCursor(e=this.length){return new $v(this.children,e,this.children.length)}childPos(e,t=1){return this.childCursor().findPos(e,t)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==e?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}merge(e,t,i,n,r,o){return!1}become(e){return!1}getSide(){return 0}destroy(){this.parent=null}}function kv(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}Sv.prototype.breakAfter=0;class $v{constructor(e,t,i){this.children=e,this.pos=t,this.i=i,this.off=0}findPos(e,t=1){for(;;){if(e>this.pos||e==this.pos&&(t>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}function _v(e,t,i,n,r,o,s,l,a){let{children:c}=e,h=c.length?c[t]:null,u=o.length?o[o.length-1]:null,d=u?u.breakAfter:s;if(!(t==n&&h&&!s&&!d&&o.length<2&&h.merge(i,r,o.length?u:null,0==i,l,a))){if(n<c.length){let e=c[n];e&&r<e.length?(t==n&&(e=e.split(r),r=0),!d&&u&&e.merge(0,r,u,!0,0,a)?o[o.length-1]=e:(r&&e.merge(0,r,null,!1,0,a),o.push(e))):(null==e?void 0:e.breakAfter)&&(u?u.breakAfter=1:s=1),n++}for(h&&(h.breakAfter=s,i>0&&(!s&&o.length&&h.merge(i,h.length,o[0],!1,l,0)?h.breakAfter=o.shift().breakAfter:(i<h.length||h.children.length&&0==h.children[h.children.length-1].length)&&h.merge(i,h.length,null,!1,l,0),t++));t<n&&o.length;)if(c[n-1].become(o[o.length-1]))n--,o.pop(),a=o.length?0:l;else{if(!c[t].become(o[0]))break;t++,o.shift(),l=o.length?0:a}!o.length&&t&&n<c.length&&!c[t-1].breakAfter&&c[n].merge(0,0,c[t-1],!1,l,a)&&t--,(t<n||o.length)&&e.replaceChildren(t,n,o)}}function Tv(e,t,i,n,r,o){let s=e.childCursor(),{i:l,off:a}=s.findPos(i,1),{i:c,off:h}=s.findPos(t,-1),u=t-i;for(let e of n)u+=e.length;e.length+=u,_v(e,c,h,l,a,n,0,r,o)}let Qv="undefined"!=typeof navigator?navigator:{userAgent:"",vendor:"",platform:""},Pv="undefined"!=typeof document?document:{documentElement:{style:{}}};const Av=/Edge\/(\d+)/.exec(Qv.userAgent),Cv=/MSIE \d/.test(Qv.userAgent),Rv=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Qv.userAgent),Ev=!!(Cv||Rv||Av),Mv=!Ev&&/gecko\/(\d+)/i.test(Qv.userAgent),Dv=!Ev&&/Chrome\/(\d+)/.exec(Qv.userAgent),qv="webkitFontSmoothing"in Pv.documentElement.style,Nv=!Ev&&/Apple Computer/.test(Qv.vendor),jv=Nv&&(/Mobile\/\w+/.test(Qv.userAgent)||Qv.maxTouchPoints>2);var Vv={mac:jv||/Mac/.test(Qv.platform),windows:/Win/.test(Qv.platform),linux:/Linux|X11/.test(Qv.platform),ie:Ev,ie_version:Cv?Pv.documentMode||6:Rv?+Rv[1]:Av?+Av[1]:0,gecko:Mv,gecko_version:Mv?+(/Firefox\/(\d+)/.exec(Qv.userAgent)||[0,0])[1]:0,chrome:!!Dv,chrome_version:Dv?+Dv[1]:0,ios:jv,android:/Android\b/.test(Qv.userAgent),webkit:qv,safari:Nv,webkit_version:qv?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=Pv.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};class Wv extends Sv{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(e&&e.node==this.dom&&(e.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){3==e.nodeType&&this.createDOM(e)}merge(e,t,i){return(!i||i instanceof Wv&&!(this.length-(t-e)+i.length>256))&&(this.text=this.text.slice(0,e)+(i?i.text:"")+this.text.slice(t),this.markDirty(),!0)}split(e){let t=new Wv(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new wv(this.dom,e)}domBoundsAround(e,t,i){return{from:i,to:i+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return Lv(this.dom,e,t)}}class zv extends Sv{constructor(e,t=[],i=0){super(),this.mark=e,this.children=t,this.length=i;for(let e of t)e.setParent(this)}setAttrs(e){if(bv(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.dirty|=6)}sync(e){this.dom?4&this.dirty&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e)}merge(e,t,i,n,r,o){return(!i||!(!(i instanceof zv&&i.mark.eq(this.mark))||e&&r<=0||t<this.length&&o<=0))&&(Tv(this,e,t,i?i.children:[],r-1,o-1),this.markDirty(),!0)}split(e){let t=[],i=0,n=-1,r=0;for(let o of this.children){let s=i+o.length;s>e&&t.push(i<e?o.split(e-i):o),n<0&&i>=e&&(n=r),i=s,r++}let o=this.length-e;return this.length=e,n>-1&&(this.children.length=n,this.markDirty()),new zv(this.mark,t,o)}domAtPos(e){return Hv(this.dom,this.children,e)}coordsAt(e,t){return Gv(this,e,t)}}function Lv(e,t,i){let n=e.nodeValue.length;t>n&&(t=n);let r=t,o=t,s=0;0==t&&i<0||t==n&&i>=0?Vv.chrome||Vv.gecko||(t?(r--,s=1):o<n&&(o++,s=-1)):i<0?r--:o<n&&o++;let l=vv(e,r,o).getClientRects();if(!l.length)return uv;let a=l[(s?s<0:i>=0)?0:l.length-1];return Vv.safari&&!s&&0==a.width&&(a=Array.prototype.find.call(l,(e=>e.width))||a),s?dv(a,s<0):a||null}class Bv extends Sv{constructor(e,t,i){super(),this.widget=e,this.length=t,this.side=i,this.prevWidget=null}static create(e,t,i){return new(e.customView||Bv)(e,t,i)}split(e){let t=Bv.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(){this.dom&&this.widget.updateDOM(this.dom)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(this.editorView)),this.dom.contentEditable="false")}getSide(){return this.side}merge(e,t,i,n,r,o){return!(i&&(!(i instanceof Bv&&this.widget.compare(i.widget))||e>0&&r<=0||t<this.length&&o<=0))&&(this.length=e+(i?i.length:0)+(this.length-t),!0)}become(e){return e.length==this.length&&e instanceof Bv&&e.side==this.side&&this.widget.constructor==e.widget.constructor&&(this.widget.eq(e.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,!0)}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){if(0==this.length)return eg.empty;let e=this;for(;e.parent;)e=e.parent;let t=e.editorView,i=t&&t.state.doc,n=this.posAtStart;return i?i.slice(n,n+this.length):eg.empty}domAtPos(e){return 0==e?wv.before(this.dom):wv.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let i=this.dom.getClientRects(),n=null;if(!i.length)return uv;for(let t=e>0?i.length-1:0;n=i[t],!(e>0?0==t:t==i.length-1||n.top<n.bottom);t+=e>0?-1:1);return 0==e&&t>0||e==this.length&&t<=0?n:dv(n,0==e)}get isEditable(){return!1}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class Iv extends Bv{domAtPos(e){let{topView:t,text:i}=this.widget;return t?Xv(e,0,t,i,((e,t)=>e.domAtPos(t)),(e=>new wv(i,Math.min(e,i.nodeValue.length)))):new wv(i,Math.min(e,i.nodeValue.length))}sync(){this.setDOM(this.widget.toDOM())}localPosFromDOM(e,t){let{topView:i,text:n}=this.widget;return i?Uv(e,t,i,n):Math.min(t,this.length)}ignoreMutation(){return!1}get overrideDOMText(){return null}coordsAt(e,t){let{topView:i,text:n}=this.widget;return i?Xv(e,t,i,n,((e,t,i)=>e.coordsAt(t,i)),((e,t)=>Lv(n,e,t))):Lv(n,e,t)}destroy(){var e;super.destroy(),null===(e=this.widget.topView)||void 0===e||e.destroy()}get isEditable(){return!0}}function Xv(e,t,i,n,r,o){if(i instanceof zv){for(let s of i.children){let i=rv(s.dom,n),l=i?n.nodeValue.length:s.length;if(e<l||e==l&&s.getSide()<=0)return i?Xv(e,t,s,n,r,o):r(s,e,t);e-=l}return r(i,i.length,-1)}return i.dom==n?o(e,t):r(i,e,t)}function Uv(e,t,i,n){if(i instanceof zv)for(let r of i.children){let i=0,o=rv(r.dom,n);if(rv(r.dom,e))return i+(o?Uv(e,t,r,n):r.localPosFromDOM(e,t));i+=o?n.nodeValue.length:r.length}else if(i.dom==n)return Math.min(t,n.nodeValue.length);return i.localPosFromDOM(e,t)}class Fv extends Sv{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof Fv&&e.side==this.side}split(){return new Fv(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return wv.before(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){let t=this.dom.getBoundingClientRect(),i=function(e,t){let i=e.parent,n=i?i.children.indexOf(e):-1;for(;i&&n>=0;)if(t<0?n>0:n<i.children.length){let e=i.children[n+t];if(e instanceof Wv){let i=e.coordsAt(t<0?e.length:0,t);if(i)return i}n+=t}else{if(!(i instanceof zv&&i.parent)){let e=i.dom.lastChild;if(e&&"BR"==e.nodeName)return e.getClientRects()[0];break}n=i.parent.children.indexOf(i)+(t<0?0:1),i=i.parent}return}(this,this.side>0?-1:1);return i&&i.top<t.bottom&&i.bottom>t.top?{left:t.left,right:t.right,top:i.top,bottom:i.bottom}:t}get overrideDOMText(){return eg.empty}}function Hv(e,t,i){let n=0;for(let r=0;n<t.length;n++){let o=t[n],s=r+o.length;if(!(s==r&&o.getSide()<=0)){if(i>r&&i<s&&o.dom.parentNode==e)return o.domAtPos(i-r);if(i<=r)break;r=s}}for(;n>0;n--){let i=t[n-1].dom;if(i.parentNode==e)return wv.after(i)}return new wv(e,0)}function Zv(e,t,i){let n,{children:r}=e;i>0&&t instanceof zv&&r.length&&(n=r[r.length-1])instanceof zv&&n.mark.eq(t.mark)?Zv(n,t.children[0],i-1):(r.push(t),t.setParent(e)),e.length+=t.length}function Gv(e,t,i){for(let n=0,r=0;r<e.children.length;r++){let o,s=e.children[r],l=n+s.length;if((i<=0||l==e.length||s.getSide()>0?l>=t:l>t)&&(t<l||r+1==e.children.length||(o=e.children[r+1]).length||o.getSide()>0)){let e=0;if(l==n){if(s.getSide()<=0)continue;e=i=-s.getSide()}let r=s.coordsAt(Math.max(0,t-n),i);return e&&r?dv(r,i<0):r}n=l}let n=e.dom.lastChild;if(!n)return e.dom.getBoundingClientRect();let r=sv(n);return r[r.length-1]||null}function Yv(e,t){for(let i in e)"class"==i&&t.class?t.class+=" "+e.class:"style"==i&&t.style?t.style+=";"+e.style:t[i]=e[i];return t}function Kv(e,t){if(e==t)return!0;if(!e||!t)return!1;let i=Object.keys(e),n=Object.keys(t);if(i.length!=n.length)return!1;for(let r of i)if(-1==n.indexOf(r)||e[r]!==t[r])return!1;return!0}function Jv(e,t,i){let n=null;if(t)for(let r in t)i&&r in i||e.removeAttribute(n=r);if(i)for(let r in i)t&&t[r]==i[r]||e.setAttribute(n=r,i[r]);return!!n}Wv.prototype.children=Bv.prototype.children=Fv.prototype.children=xv;class ey{eq(e){return!1}updateDOM(e){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}ignoreEvent(e){return!0}get customView(){return null}destroy(e){}}var ty=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(ty||(ty={}));class iy extends kO{constructor(e,t,i,n){super(),this.startSide=e,this.endSide=t,this.widget=i,this.spec=n}get heightRelevant(){return!1}static mark(e){return new ny(e)}static widget(e){let t=e.side||0,i=!!e.block;return t+=i?t>0?3e8:-4e8:t>0?1e8:-1e8,new oy(e,t,t,i,e.widget||null,!1)}static replace(e){let t,i,n=!!e.block;if(e.isBlockGap)t=-5e8,i=4e8;else{let{start:r,end:o}=sy(e,n);t=(r?n?-3e8:-1:5e8)-1,i=1+(o?n?2e8:1:-6e8)}return new oy(e,t,i,n,e.widget||null,!0)}static line(e){return new ry(e)}static set(e,t=!1){return QO.of(e,t)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}iy.none=QO.empty;class ny extends iy{constructor(e){let{start:t,end:i}=sy(e);super(t?-1:5e8,i?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){return this==e||e instanceof ny&&this.tagName==e.tagName&&this.class==e.class&&Kv(this.attrs,e.attrs)}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}ny.prototype.point=!1;class ry extends iy{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof ry&&Kv(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}ry.prototype.mapMode=wg.TrackBefore,ry.prototype.point=!0;class oy extends iy{constructor(e,t,i,n,r,o){super(t,i,r,e),this.block=n,this.isReplace=o,this.mapMode=n?t<=0?wg.TrackBefore:wg.TrackAfter:wg.TrackDel}get type(){return this.startSide<this.endSide?ty.WidgetRange:this.startSide<=0?ty.WidgetBefore:ty.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&this.widget.estimatedHeight>=5}eq(e){return e instanceof oy&&function(e,t){return e==t||!!(e&&t&&e.compare(t))}(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}function sy(e,t=!1){let{inclusiveStart:i,inclusiveEnd:n}=e;return null==i&&(i=e.inclusive),null==n&&(n=e.inclusive),{start:null!=i?i:t,end:null!=n?n:t}}function ly(e,t,i,n=0){let r=i.length-1;r>=0&&i[r]+n>=e?i[r]=Math.max(i[r],t):i.push(e,t)}oy.prototype.point=!0;class ay extends Sv{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,t,i,n,r,o){if(i){if(!(i instanceof ay))return!1;this.dom||i.transferDOM(this)}return n&&this.setDeco(i?i.attrs:null),Tv(this,e,t,i?i.children:[],r,o),!0}split(e){let t=new ay;if(t.breakAfter=this.breakAfter,0==this.length)return t;let{i,off:n}=this.childPos(e);n&&(t.append(this.children[i].split(n),0),this.children[i].merge(n,this.children[i].length,null,!1,0,0),i++);for(let e=i;e<this.children.length;e++)t.append(this.children[e],0);for(;i>0&&0==this.children[i-1].length;)this.children[--i].destroy();return this.children.length=i,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){Kv(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){Zv(this,e,t)}addLineDeco(e){let t=e.spec.attributes,i=e.spec.class;t&&(this.attrs=Yv(t,this.attrs||{})),i&&(this.attrs=Yv({class:i},this.attrs||{}))}domAtPos(e){return Hv(this.dom,this.children,e)}reuseDOM(e){"DIV"==e.nodeName&&(this.setDOM(e),this.dirty|=6)}sync(e){var t;this.dom?4&this.dirty&&(bv(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(Jv(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e);let i=this.dom.lastChild;for(;i&&Sv.get(i)instanceof zv;)i=i.lastChild;if(!(i&&this.length&&("BR"==i.nodeName||0!=(null===(t=Sv.get(i))||void 0===t?void 0:t.isEditable)||Vv.ios&&this.children.some((e=>e instanceof Wv))))){let e=document.createElement("BR");e.cmIgnore=!0,this.dom.appendChild(e)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let e=0;for(let t of this.children){if(!(t instanceof Wv)||/[^ -~]/.test(t.text))return null;let i=sv(t.dom);if(1!=i.length)return null;e+=i[0].width}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length}:null}coordsAt(e,t){return Gv(this,e,t)}become(e){return!1}get type(){return ty.Text}static find(e,t){for(let i=0,n=0;i<e.children.length;i++){let r=e.children[i],o=n+r.length;if(o>=t){if(r instanceof ay)return r;if(o>t)break}n=o+r.breakAfter}return null}}class cy extends Sv{constructor(e,t,i){super(),this.widget=e,this.length=t,this.type=i,this.breakAfter=0,this.prevWidget=null}merge(e,t,i,n,r,o){return!(i&&(!(i instanceof cy&&this.widget.compare(i.widget))||e>0&&r<=0||t<this.length&&o<=0))&&(this.length=e+(i?i.length:0)+(this.length-t),!0)}domAtPos(e){return 0==e?wv.before(this.dom):wv.after(this.dom,e==this.length)}split(e){let t=this.length-e;this.length=e;let i=new cy(this.widget,t,this.type);return i.breakAfter=this.breakAfter,i}get children(){return xv}sync(){this.dom&&this.widget.updateDOM(this.dom)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(this.editorView)),this.dom.contentEditable="false")}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):eg.empty}domBoundsAround(){return null}become(e){return e instanceof cy&&e.type==this.type&&e.widget.constructor==this.widget.constructor&&(e.widget.eq(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.breakAfter=e.breakAfter,!0)}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class hy{constructor(e,t,i,n){this.doc=e,this.pos=t,this.end=i,this.disallowBlockEffectsFor=n,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(0==this.content.length)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof cy&&e.type==ty.WidgetBefore)}getLine(){return this.curLine||(this.content.push(this.curLine=new ay),this.atCursorPos=!0),this.curLine}flushBuffer(e){this.pendingBuffer&&(this.curLine.append(uy(new Fv(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer([]),this.curLine=null,this.content.push(e)}finish(e){e?this.pendingBuffer=0:this.flushBuffer([]),this.posCovered()||this.getLine()}buildText(e,t,i){for(;e>0;){if(this.textOff==this.text.length){let{value:t,lineBreak:i,done:n}=this.cursor.next(this.skip);if(this.skip=0,n)throw new Error("Ran out of text content when drawing inline views");if(i){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer([]),this.curLine=null,e--;continue}this.text=t,this.textOff=0}let n=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(0,i)),this.getLine().append(uy(new Wv(this.text.slice(this.textOff,this.textOff+n)),t),i),this.atCursorPos=!0,this.textOff+=n,e-=n,i=0}}span(e,t,i,n){this.buildText(t-e,i,n),this.pos=t,this.openStart<0&&(this.openStart=n)}point(e,t,i,n,r,o){if(this.disallowBlockEffectsFor[o]&&i instanceof oy){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let s=t-e;if(i instanceof oy)if(i.block){let{type:e}=i;e!=ty.WidgetAfter||this.posCovered()||this.getLine(),this.addBlockWidget(new cy(i.widget||new dy("div"),s,e))}else{let o=Bv.create(i.widget||new dy("span"),s,i.startSide),l=this.atCursorPos&&!o.isEditable&&r<=n.length&&(e<t||i.startSide>0),a=!o.isEditable&&(e<t||i.startSide<=0),c=this.getLine();2!=this.pendingBuffer||l||(this.pendingBuffer=0),this.flushBuffer(n),l&&(c.append(uy(new Fv(1),n),r),r=n.length+Math.max(0,r-n.length)),c.append(uy(o,n),r),this.atCursorPos=a,this.pendingBuffer=a?e<t?1:2:0}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);s&&(this.textOff+s<=this.text.length?this.textOff+=s:(this.skip+=s-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=r)}static build(e,t,i,n,r){let o=new hy(e,t,i,r);return o.openEnd=QO.spans(n,t,i,o),o.openStart<0&&(o.openStart=o.openEnd),o.finish(o.openEnd),o}}function uy(e,t){for(let i of t)e=new zv(i,[e],e.length);return e}class dy extends ey{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}}const fy=Mg.define(),py=Mg.define(),my=Mg.define(),gy=Mg.define(),Oy=Mg.define(),vy=Mg.define(),yy=Mg.define({combine:e=>e.some((e=>e))});class by{constructor(e,t="nearest",i="nearest",n=5,r=5){this.range=e,this.y=t,this.x=i,this.yMargin=n,this.xMargin=r}map(e){return e.empty?this:new by(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin)}}const wy=hO.define({map:(e,t)=>e.map(t)});function xy(e,t,i){let n=e.facet(gy);n.length?n[0](t):window.onerror?window.onerror(String(t),i,void 0,void 0,t):i?console.error(i+":",t):console.error(t)}const Sy=Mg.define({combine:e=>!e.length||e[0]});let ky=0;const $y=Mg.define();class _y{constructor(e,t,i,n){this.id=e,this.create=t,this.domEventHandlers=i,this.extension=n(this)}static define(e,t){const{eventHandlers:i,provide:n,decorations:r}=t||{};return new _y(ky++,e,i,(e=>{let t=[$y.of(e)];return r&&t.push(Ay.of((t=>{let i=t.plugin(e);return i?r(i):iy.none}))),n&&t.push(n(e)),t}))}static fromClass(e,t){return _y.define((t=>new e(t)),t)}}class Ty{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(t){if(xy(e.state,t,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(e){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){xy(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(null===(t=this.value)||void 0===t?void 0:t.destroy)try{this.value.destroy()}catch(t){xy(e.state,t,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Qy=Mg.define(),Py=Mg.define(),Ay=Mg.define(),Cy=Mg.define(),Ry=Mg.define(),Ey=Mg.define();class My{constructor(e,t,i,n){this.fromA=e,this.toA=t,this.fromB=i,this.toB=n}join(e){return new My(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,i=this;for(;t>0;t--){let n=e[t-1];if(!(n.fromA>i.toA)){if(n.toA<i.fromA)break;i=i.join(n),e.splice(t-1,1)}}return e.splice(t,0,i),e}static extendWithRanges(e,t){if(0==t.length)return e;let i=[];for(let n=0,r=0,o=0,s=0;;n++){let l=n==e.length?null:e[n],a=o-s,c=l?l.fromB:1e9;for(;r<t.length&&t[r]<c;){let e=t[r],n=t[r+1],o=Math.max(s,e),l=Math.min(c,n);if(o<=l&&new My(o+a,l+a,o,l).addToSet(i),n>c)break;r+=2}if(!l)return i;new My(l.fromA,l.toA,l.fromB,l.toB).addToSet(i),o=l.toA,s=l.toB}}}class Dy{constructor(e,t,i){this.view=e,this.state=t,this.transactions=i,this.flags=0,this.startState=e.state,this.changes=Sg.empty(this.startState.doc.length);for(let e of i)this.changes=this.changes.compose(e.changes);let n=[];this.changes.iterChangedRanges(((e,t,i,r)=>n.push(new My(e,t,i,r)))),this.changedRanges=n;let r=e.hasFocus;r!=e.inputState.notifiedFocused&&(e.inputState.notifiedFocused=r,this.flags|=1)}static create(e,t,i){return new Dy(e,t,i)}get viewportChanged(){return(4&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(10&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some((e=>e.selection))}get empty(){return 0==this.flags&&0==this.transactions.length}}var qy=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(qy||(qy={}));const Ny=qy.LTR,jy=qy.RTL;function Vy(e){let t=[];for(let i=0;i<e.length;i++)t.push(1<<+e[i]);return t}const Wy=Vy("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),zy=Vy("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),Ly=Object.create(null),By=[];for(let e of["()","[]","{}"]){let t=e.charCodeAt(0),i=e.charCodeAt(1);Ly[t]=i,Ly[i]=-t}const Iy=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;class Xy{constructor(e,t,i){this.from=e,this.to=t,this.level=i}get dir(){return this.level%2?jy:Ny}side(e,t){return this.dir==t==e?this.to:this.from}static find(e,t,i,n){let r=-1;for(let o=0;o<e.length;o++){let s=e[o];if(s.from<=t&&s.to>=t){if(s.level==i)return o;(r<0||(0!=n?n<0?s.from<t:s.to>t:e[r].level>s.level))&&(r=o)}}if(r<0)throw new RangeError("Index out of range");return r}}const Uy=[];function Fy(e,t){let i=e.length,n=t==Ny?1:2,r=t==Ny?2:1;if(!e||1==n&&!Iy.test(e))return Hy(i);for(let t=0,r=n,s=n;t<i;t++){let i=(o=e.charCodeAt(t))<=247?Wy[o]:1424<=o&&o<=1524?2:1536<=o&&o<=1785?zy[o-1536]:1774<=o&&o<=2220?4:8192<=o&&o<=8203||8204==o?256:1;512==i?i=r:8==i&&4==s&&(i=16),Uy[t]=4==i?2:i,7&i&&(s=i),r=i}var o;for(let e=0,t=n,r=n;e<i;e++){let n=Uy[e];if(128==n)e<i-1&&t==Uy[e+1]&&24&t?n=Uy[e]=t:Uy[e]=256;else if(64==n){let n=e+1;for(;n<i&&64==Uy[n];)n++;let o=e&&8==t||n<i&&8==Uy[n]?1==r?1:8:256;for(let t=e;t<n;t++)Uy[t]=o;e=n-1}else 8==n&&1==r&&(Uy[e]=1);t=n,7&n&&(r=n)}for(let t,o,s,l=0,a=0,c=0;l<i;l++)if(o=Ly[t=e.charCodeAt(l)])if(o<0){for(let e=a-3;e>=0;e-=3)if(By[e+1]==-o){let t=By[e+2],i=2&t?n:4&t?1&t?r:n:0;i&&(Uy[l]=Uy[By[e]]=i),a=e;break}}else{if(189==By.length)break;By[a++]=l,By[a++]=t,By[a++]=c}else if(2==(s=Uy[l])||1==s){let e=s==n;c=e?0:1;for(let t=a-3;t>=0;t-=3){let i=By[t+2];if(2&i)break;if(e)By[t+2]|=2;else{if(4&i)break;By[t+2]|=4}}}for(let e=0;e<i;e++)if(256==Uy[e]){let t=e+1;for(;t<i&&256==Uy[t];)t++;let r=1==(e?Uy[e-1]:n),o=r==(1==(t<i?Uy[t]:n))?r?1:2:n;for(let i=e;i<t;i++)Uy[i]=o;e=t-1}let s=[];if(1==n)for(let e=0;e<i;){let t=e,n=1!=Uy[e++];for(;e<i&&n==(1!=Uy[e]);)e++;if(n)for(let i=e;i>t;){let e=i,n=2!=Uy[--i];for(;i>t&&n==(2!=Uy[i-1]);)i--;s.push(new Xy(i,e,n?2:1))}else s.push(new Xy(t,e,0))}else for(let e=0;e<i;){let t=e,n=2==Uy[e++];for(;e<i&&n==(2==Uy[e]);)e++;s.push(new Xy(t,e,n?1:2))}return s}function Hy(e){return[new Xy(0,e,0)]}let Zy="";function Gy(e,t,i,n,r){var o;let s=n.head-e.from,l=-1;if(0==s){if(!r||!e.length)return null;t[0].level!=i&&(s=t[0].side(!1,i),l=0)}else if(s==e.length){if(r)return null;let e=t[t.length-1];e.level!=i&&(s=e.side(!0,i),l=t.length-1)}l<0&&(l=Xy.find(t,s,null!==(o=n.bidiLevel)&&void 0!==o?o:-1,n.assoc));let a=t[l];s==a.side(r,i)&&(a=t[l+=r?1:-1],s=a.side(!r,i));let c=r==(a.dir==i),h=dg(e.text,s,c);if(Zy=e.text.slice(Math.min(s,h),Math.max(s,h)),h!=a.side(r,i))return Cg.cursor(h+e.from,c?-1:1,a.level);let u=l==(r?t.length-1:0)?null:t[l+(r?1:-1)];return u||a.level==i?u&&u.level<a.level?Cg.cursor(u.side(!r,i)+e.from,r?1:-1,u.level):Cg.cursor(h+e.from,r?-1:1,a.level):Cg.cursor(r?e.to:e.from,r?-1:1,i)}const Yy="";class Ky{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(xO.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=Yy}readRange(e,t){if(!e)return this;let i=e.parentNode;for(let n=e;;){this.findPointBefore(i,n),this.readNode(n);let e=n.nextSibling;if(e==t)break;let r=Sv.get(n),o=Sv.get(e);(r&&o?r.breakAfter:(r?r.breakAfter:Jy(n))||Jy(e)&&("BR"!=n.nodeName||n.cmIgnore))&&this.lineBreak(),n=e}return this.findPointBefore(i,t),this}readTextNode(e){let t=e.nodeValue;for(let i of this.points)i.node==e&&(i.pos=this.text.length+Math.min(i.offset,t.length));for(let i=0,n=this.lineSeparator?null:/\r\n?|\n/g;;){let r,o=-1,s=1;if(this.lineSeparator?(o=t.indexOf(this.lineSeparator,i),s=this.lineSeparator.length):(r=n.exec(t))&&(o=r.index,s=r[0].length),this.append(t.slice(i,o<0?t.length:o)),o<0)break;if(this.lineBreak(),s>1)for(let t of this.points)t.node==e&&t.pos>this.text.length&&(t.pos-=s-1);i=o+s}}readNode(e){if(e.cmIgnore)return;let t=Sv.get(e),i=t&&t.overrideDOMText;if(null!=i){this.findPointInside(e,i.length);for(let e=i.iter();!e.next().done;)e.lineBreak?this.lineBreak():this.append(e.value)}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let i of this.points)i.node==e&&e.childNodes[i.offset]==t&&(i.pos=this.text.length)}findPointInside(e,t){for(let i of this.points)(3==e.nodeType?i.node==e:e.contains(i.node))&&(i.pos=this.text.length+Math.min(t,i.offset))}}function Jy(e){return 1==e.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}class eb{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class tb extends Sv{constructor(e){super(),this.view=e,this.compositionDeco=iy.none,this.decorations=[],this.dynamicDecorationMap=[],this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new ay],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new My(0,0,0,e.state.doc.length)],0)}get editorView(){return this.view}get length(){return this.view.state.doc.length}update(e){let t=e.changedRanges;this.minWidth>0&&t.length&&(t.every((({fromA:e,toA:t})=>t<this.minWidthFrom||e>this.minWidthTo))?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.view.inputState.composing<0?this.compositionDeco=iy.none:(e.transactions.length||this.dirty)&&(this.compositionDeco=function(e,t){let i=nb(e);if(!i)return iy.none;let{from:n,to:r,node:o,text:s}=i,l=t.mapPos(n,1),a=Math.max(l,t.mapPos(r,-1)),{state:c}=e,h=3==o.nodeType?o.nodeValue:new Ky([],c).readRange(o.firstChild,null).text;if(a-l<h.length)if(c.doc.sliceString(l,Math.min(c.doc.length,l+h.length),Yy)==h)a=l+h.length;else{if(c.doc.sliceString(Math.max(0,a-h.length),a,Yy)!=h)return iy.none;l=a-h.length}else if(c.doc.sliceString(l,a,Yy)!=h)return iy.none;let u=Sv.get(o);u instanceof Iv?u=u.widget.topView:u&&(u.parent=null);return iy.set(iy.replace({widget:new rb(o,s,u),inclusive:!0}).range(l,a))}(this.view,e.changes)),(Vv.ie||Vv.chrome)&&!this.compositionDeco.size&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let i=function(e,t,i){let n=new sb;return QO.compare(e,t,i,n),n.changes}(this.decorations,this.updateDeco(),e.changes);return t=My.extendWithRanges(t,i),(0!=this.dirty||0!=t.length)&&(this.updateInner(t,e.startState.doc.length),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t);let{observer:i}=this.view;i.ignore((()=>{this.dom.style.height=this.view.viewState.contentHeight+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let e=Vv.chrome||Vv.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.sync(e),this.dirty=0,e&&(e.written||i.selectionRange.focusNode!=e.node)&&(this.forceSelection=!0),this.dom.style.height=""}));let n=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let e of this.children)e instanceof cy&&e.widget instanceof ib&&n.push(e.dom);i.updateGaps(n)}updateChildren(e,t){let i=this.childCursor(t);for(let t=e.length-1;;t--){let n=t>=0?e[t]:null;if(!n)break;let{fromA:r,toA:o,fromB:s,toB:l}=n,{content:a,breakAtStart:c,openStart:h,openEnd:u}=hy.build(this.view.state.doc,s,l,this.decorations,this.dynamicDecorationMap),{i:d,off:f}=i.findPos(o,1),{i:p,off:m}=i.findPos(r,-1);_v(this,p,m,d,f,a,c,h,u)}}updateSelection(e=!1,t=!1){if(!e&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange(),!t&&!this.mayControlSelection()||Vv.ios&&this.view.inputState.rapidCompositionStart)return;let i=this.forceSelection;this.forceSelection=!1;let n=this.view.state.selection.main,r=this.domAtPos(n.anchor),o=n.empty?r:this.domAtPos(n.head);if(Vv.gecko&&n.empty&&(1==(s=r).node.nodeType&&s.node.firstChild&&(0==s.offset||"false"==s.node.childNodes[s.offset-1].contentEditable)&&(s.offset==s.node.childNodes.length||"false"==s.node.childNodes[s.offset].contentEditable))){let e=document.createTextNode("");this.view.observer.ignore((()=>r.node.insertBefore(e,r.node.childNodes[r.offset]||null))),r=o=new wv(e,0),i=!0}var s;let l=this.view.observer.selectionRange;!i&&l.focusNode&&lv(r.node,r.offset,l.anchorNode,l.anchorOffset)&&lv(o.node,o.offset,l.focusNode,l.focusOffset)||(this.view.observer.ignore((()=>{Vv.android&&Vv.chrome&&this.dom.contains(l.focusNode)&&function(e,t){for(let i=e;i&&i!=t;i=i.assignedSlot||i.parentNode)if(1==i.nodeType&&"false"==i.contentEditable)return!0;return!1}(l.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let e=nv(this.view.root);if(e)if(n.empty){if(Vv.gecko){let e=function(e,t){return 1!=e.nodeType?0:(t&&"false"==e.childNodes[t-1].contentEditable?1:0)|(t<e.childNodes.length&&"false"==e.childNodes[t].contentEditable?2:0)}(r.node,r.offset);if(e&&3!=e){let t=ob(r.node,r.offset,1==e?1:-1);t&&(r=new wv(t,1==e?0:t.nodeValue.length))}}e.collapse(r.node,r.offset),null!=n.bidiLevel&&null!=l.cursorBidiLevel&&(l.cursorBidiLevel=n.bidiLevel)}else if(e.extend)e.collapse(r.node,r.offset),e.extend(o.node,o.offset);else{let t=document.createRange();n.anchor>n.head&&([r,o]=[o,r]),t.setEnd(o.node,o.offset),t.setStart(r.node,r.offset),e.removeAllRanges(),e.addRange(t)}else;})),this.view.observer.setSelectionRange(r,o)),this.impreciseAnchor=r.precise?null:new wv(l.anchorNode,l.anchorOffset),this.impreciseHead=o.precise?null:new wv(l.focusNode,l.focusOffset)}enforceCursorAssoc(){if(this.compositionDeco.size)return;let e=this.view.state.selection.main,t=nv(this.view.root);if(!(t&&e.empty&&e.assoc&&t.modify))return;let i=ay.find(this,e.head);if(!i)return;let n=i.posAtStart;if(e.head==n||e.head==n+i.length)return;let r=this.coordsAt(e.head,-1),o=this.coordsAt(e.head,1);if(!r||!o||r.bottom>o.top)return;let s=this.domAtPos(e.head+e.assoc);t.collapse(s.node,s.offset),t.modify("move",e.assoc<0?"forward":"backward","lineboundary")}mayControlSelection(){let e=this.view.root.activeElement;return e==this.dom||ov(this.dom,this.view.observer.selectionRange)&&!(e&&this.dom.contains(e))}nearest(e){for(let t=e;t;){let e=Sv.get(t);if(e&&e.rootView==this)return e;t=t.parentNode}return null}posFromDOM(e,t){let i=this.nearest(e);if(!i)throw new RangeError("Trying to find position for a DOM position outside of the document");return i.localPosFromDOM(e,t)+i.posAtStart}domAtPos(e){let{i:t,off:i}=this.childCursor().findPos(e,-1);for(;t<this.children.length-1;){let e=this.children[t];if(i<e.length||e instanceof ay)break;t++,i=0}return this.children[t].domAtPos(i)}coordsAt(e,t){for(let i=this.length,n=this.children.length-1;;n--){let r=this.children[n],o=i-r.breakAfter-r.length;if(e>o||e==o&&r.type!=ty.WidgetBefore&&r.type!=ty.WidgetAfter&&(!n||2==t||this.children[n-1].breakAfter||this.children[n-1].type==ty.WidgetBefore&&t>-2))return r.coordsAt(e-o,t);i=o}}measureVisibleLineHeights(e){let t=[],{from:i,to:n}=e,r=this.view.contentDOM.clientWidth,o=r>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,s=-1,l=this.view.textDirection==qy.LTR;for(let e=0,a=0;a<this.children.length;a++){let c=this.children[a],h=e+c.length;if(h>n)break;if(e>=i){let i=c.dom.getBoundingClientRect();if(t.push(i.height),o){let t=c.dom.lastChild,n=t?sv(t):[];if(n.length){let t=n[n.length-1],o=l?t.right-i.left:i.right-t.left;o>s&&(s=o,this.minWidth=r,this.minWidthFrom=e,this.minWidthTo=h)}}}e=h+c.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return"rtl"==getComputedStyle(this.children[t].dom).direction?qy.RTL:qy.LTR}measureTextSize(){for(let e of this.children)if(e instanceof ay){let t=e.measureTextSize();if(t)return t}let e,t,i=document.createElement("div");return i.className="cm-line",i.style.width="99999px",i.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore((()=>{this.dom.appendChild(i);let n=sv(i.firstChild)[0];e=i.getBoundingClientRect().height,t=n?n.width/27:7,i.remove()})),{lineHeight:e,charWidth:t}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new $v(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let i=0,n=0;;n++){let r=n==t.viewports.length?null:t.viewports[n],o=r?r.from-1:this.length;if(o>i){let n=t.lineBlockAt(o).bottom-t.lineBlockAt(i).top;e.push(iy.replace({widget:new ib(n),block:!0,inclusive:!0,isBlockGap:!0}).range(i,o))}if(!r)break;i=r.to+1}return iy.set(e)}updateDeco(){let e=this.view.state.facet(Ay).map(((e,t)=>(this.dynamicDecorationMap[t]="function"==typeof e)?e(this.view):e));for(let t=e.length;t<e.length+3;t++)this.dynamicDecorationMap[t]=!1;return this.decorations=[...e,this.compositionDeco,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco]}scrollIntoView(e){let t,{range:i}=e,n=this.coordsAt(i.head,i.empty?i.assoc:i.head>i.anchor?-1:1);if(!n)return;!i.empty&&(t=this.coordsAt(i.anchor,i.anchor>i.head?-1:1))&&(n={left:Math.min(n.left,t.left),top:Math.min(n.top,t.top),right:Math.max(n.right,t.right),bottom:Math.max(n.bottom,t.bottom)});let r=0,o=0,s=0,l=0;for(let e of this.view.state.facet(Ry).map((e=>e(this.view))))if(e){let{left:t,right:i,top:n,bottom:a}=e;null!=t&&(r=Math.max(r,t)),null!=i&&(o=Math.max(o,i)),null!=n&&(s=Math.max(s,n)),null!=a&&(l=Math.max(l,a))}let a={left:n.left-r,top:n.top-s,right:n.right+o,bottom:n.bottom+l};!function(e,t,i,n,r,o,s,l){let a=e.ownerDocument,c=a.defaultView;for(let h=e;h;)if(1==h.nodeType){let e,u=h==a.body;if(u)e=fv(c);else{if(h.scrollHeight<=h.clientHeight&&h.scrollWidth<=h.clientWidth){h=h.parentNode;continue}let t=h.getBoundingClientRect();e={left:t.left,right:t.left+h.clientWidth,top:t.top,bottom:t.top+h.clientHeight}}let d=0,f=0;if("nearest"==r)t.top<e.top?(f=-(e.top-t.top+s),i>0&&t.bottom>e.bottom+f&&(f=t.bottom-e.bottom+f+s)):t.bottom>e.bottom&&(f=t.bottom-e.bottom+s,i<0&&t.top-f<e.top&&(f=-(e.top+f-t.top+s)));else{let n=t.bottom-t.top,o=e.bottom-e.top;f=("center"==r&&n<=o?t.top+n/2-o/2:"start"==r||"center"==r&&i<0?t.top-s:t.bottom-o+s)-e.top}if("nearest"==n?t.left<e.left?(d=-(e.left-t.left+o),i>0&&t.right>e.right+d&&(d=t.right-e.right+d+o)):t.right>e.right&&(d=t.right-e.right+o,i<0&&t.left<e.left+d&&(d=-(e.left+d-t.left+o))):d=("center"==n?t.left+(t.right-t.left)/2-(e.right-e.left)/2:"start"==n==l?t.left-o:t.right-(e.right-e.left)+o)-e.left,d||f)if(u)c.scrollBy(d,f);else{if(f){let e=h.scrollTop;h.scrollTop+=f,f=h.scrollTop-e}if(d){let e=h.scrollLeft;h.scrollLeft+=d,d=h.scrollLeft-e}t={left:t.left-d,top:t.top-f,right:t.right-d,bottom:t.bottom-f}}if(u)break;h=h.assignedSlot||h.parentNode,n=r="nearest"}else{if(11!=h.nodeType)break;h=h.host}}(this.view.scrollDOM,a,i.head<i.anchor?-1:1,e.x,e.y,e.xMargin,e.yMargin,this.view.textDirection==qy.LTR)}}class ib extends ey{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get estimatedHeight(){return this.height}}function nb(e){let t=e.observer.selectionRange,i=t.focusNode&&ob(t.focusNode,t.focusOffset,0);if(!i)return null;let n=e.docView.nearest(i);if(!n)return null;if(n instanceof ay){let e=i;for(;e.parentNode!=n.dom;)e=e.parentNode;let t=e.previousSibling;for(;t&&!Sv.get(t);)t=t.previousSibling;let r=t?Sv.get(t).posAtEnd:n.posAtStart;return{from:r,to:r,node:e,text:i}}{for(;;){let{parent:e}=n;if(!e)return null;if(e instanceof ay)break;n=e}let e=n.posAtStart;return{from:e,to:e+n.length,node:n.dom,text:i}}}class rb extends ey{constructor(e,t,i){super(),this.top=e,this.text=t,this.topView=i}eq(e){return this.top==e.top&&this.text==e.text}toDOM(){return this.top}ignoreEvent(){return!1}get customView(){return Iv}}function ob(e,t,i){for(;;){if(3==e.nodeType)return e;if(1==e.nodeType&&t>0&&i<=0)t=hv(e=e.childNodes[t-1]);else{if(!(1==e.nodeType&&t<e.childNodes.length&&i>=0))return null;e=e.childNodes[t],t=0}}}class sb{constructor(){this.changes=[]}compareRange(e,t){ly(e,t,this.changes)}comparePoint(e,t){ly(e,t,this.changes)}}function lb(e,t){return t.left>e?t.left-e:Math.max(0,e-t.right)}function ab(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function cb(e,t){return e.top<t.bottom-1&&e.bottom>t.top+1}function hb(e,t){return t<e.top?{top:t,left:e.left,right:e.right,bottom:e.bottom}:e}function ub(e,t){return t>e.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function db(e,t,i){let n,r,o,s,l,a,c,h,u=!1;for(let d=e.firstChild;d;d=d.nextSibling){let e=sv(d);for(let f=0;f<e.length;f++){let p=e[f];r&&cb(r,p)&&(p=hb(ub(p,r.bottom),r.top));let m=lb(t,p),g=ab(i,p);if(0==m&&0==g)return 3==d.nodeType?fb(d,t,i):db(d,t,i);(!n||s>g||s==g&&o>m)&&(n=d,r=p,o=m,s=g,u=!m||(m>0?f<e.length-1:f>0)),0==m?i>p.bottom&&(!c||c.bottom<p.bottom)?(l=d,c=p):i<p.top&&(!h||h.top>p.top)&&(a=d,h=p):c&&cb(c,p)?c=ub(c,p.bottom):h&&cb(h,p)&&(h=hb(h,p.top))}}if(c&&c.bottom>=i?(n=l,r=c):h&&h.top<=i&&(n=a,r=h),!n)return{node:e,offset:0};let d=Math.max(r.left,Math.min(r.right,t));return 3==n.nodeType?fb(n,d,i):u&&"false"!=n.contentEditable?db(n,d,i):{node:e,offset:Array.prototype.indexOf.call(e.childNodes,n)+(t>=(r.left+r.right)/2?1:0)}}function fb(e,t,i){let n=e.nodeValue.length,r=-1,o=1e9,s=0;for(let l=0;l<n;l++){let n=vv(e,l,l+1).getClientRects();for(let a=0;a<n.length;a++){let c=n[a];if(c.top==c.bottom)continue;s||(s=t-c.left);let h=(c.top>i?c.top-i:i-c.bottom)-1;if(c.left-1<=t&&c.right+1>=t&&h<o){let i=t>=(c.left+c.right)/2,n=i;if(Vv.chrome||Vv.gecko){vv(e,l).getBoundingClientRect().left==c.right&&(n=!i)}if(h<=0)return{node:e,offset:l+(n?1:0)};r=l+(n?1:0),o=h}}}return{node:e,offset:r>-1?r:s>0?e.nodeValue.length:0}}function pb(e,{x:t,y:i},n,r=-1){var o;let s,l=e.contentDOM.getBoundingClientRect(),a=l.top+e.viewState.paddingTop,{docHeight:c}=e.viewState,h=i-a;if(h<0)return 0;if(h>c)return e.state.doc.length;for(let t=e.defaultLineHeight/2,i=!1;s=e.elementAtHeight(h),s.type!=ty.Text;)for(;h=r>0?s.bottom+t:s.top-t,!(h>=0&&h<=c);){if(i)return n?null:0;i=!0,r=-r}i=a+h;let u=s.from;if(u<e.viewport.from)return 0==e.viewport.from?0:n?null:mb(e,l,s,t,i);if(u>e.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:n?null:mb(e,l,s,t,i);let d=e.dom.ownerDocument,f=e.root.elementFromPoint?e.root:d,p=f.elementFromPoint(t,i);p&&!e.contentDOM.contains(p)&&(p=null),p||(t=Math.max(l.left+1,Math.min(l.right-1,t)),p=f.elementFromPoint(t,i),p&&!e.contentDOM.contains(p)&&(p=null));let m,g=-1;if(p&&0!=(null===(o=e.docView.nearest(p))||void 0===o?void 0:o.isEditable))if(d.caretPositionFromPoint){let e=d.caretPositionFromPoint(t,i);e&&({offsetNode:m,offset:g}=e)}else if(d.caretRangeFromPoint){let n=d.caretRangeFromPoint(t,i);n&&(({startContainer:m,startOffset:g}=n),(!e.contentDOM.contains(m)||Vv.safari&&function(e,t,i){let n;if(3!=e.nodeType||t!=(n=e.nodeValue.length))return!1;for(let t=e.nextSibling;t;t=t.nextSibling)if(1!=t.nodeType||"BR"!=t.nodeName)return!1;return vv(e,n-1,n).getBoundingClientRect().left>i}(m,g,t)||Vv.chrome&&function(e,t,i){if(0!=t)return!1;for(let t=e;;){let e=t.parentNode;if(!e||1!=e.nodeType||e.firstChild!=t)return!1;if(e.classList.contains("cm-line"))break;t=e}let n=1==e.nodeType?e.getBoundingClientRect():vv(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect();return i-n.left>5}(m,g,t))&&(m=void 0))}if(!m||!e.docView.dom.contains(m)){let n=ay.find(e.docView,u);if(!n)return h>s.top+s.height/2?s.to:s.from;({node:m,offset:g}=db(n.dom,t,i))}return e.docView.posFromDOM(m,g)}function mb(e,t,i,n,r){let o=Math.round((n-t.left)*e.defaultCharacterWidth);if(e.lineWrapping&&i.height>1.5*e.defaultLineHeight){o+=Math.floor((r-i.top)/e.defaultLineHeight)*e.viewState.heightOracle.lineLength}let s=e.state.sliceDoc(i.from,i.to);return i.from+zO(s,o,e.state.tabSize)}function gb(e,t,i,n){let r=e.state.doc.lineAt(t.head),o=e.bidiSpans(r),s=e.textDirectionAt(r.from);for(let l=t,a=null;;){let t=Gy(r,o,s,l,i),c=Zy;if(!t){if(r.number==(i?e.state.doc.lines:1))return l;c="\n",r=e.state.doc.line(r.number+(i?1:-1)),o=e.bidiSpans(r),t=Cg.cursor(i?r.from:r.to)}if(a){if(!a(c))return l}else{if(!n)return t;a=n(c)}l=t}}function Ob(e,t,i){let n=e.state.facet(Cy).map((t=>t(e)));for(;;){let e=!1;for(let r of n)r.between(i.from-1,i.from+1,((n,r,o)=>{i.from>n&&i.from<r&&(i=t.from>i.from?Cg.cursor(n,1):Cg.cursor(r,-1),e=!0)}));if(!e)return i}}class vb{constructor(e){this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.chromeScrollHack=-1,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.registeredEvents=[],this.customHandlers=[],this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.rapidCompositionStart=!1,this.mouseSelection=null;for(let t in Sb){let i=Sb[t];e.contentDOM.addEventListener(t,(n=>{xb(e,n)&&!this.ignoreDuringComposition(n)&&("keydown"==t&&this.keydown(e,n)||(this.mustFlushObserver(n)&&e.observer.forceFlush(),this.runCustomHandlers(t,e,n)?n.preventDefault():i(e,n)))}),kb[t]),this.registeredEvents.push(t)}Vv.chrome&&102==Vv.chrome_version&&e.scrollDOM.addEventListener("wheel",(()=>{this.chromeScrollHack<0?e.contentDOM.style.pointerEvents="none":window.clearTimeout(this.chromeScrollHack),this.chromeScrollHack=setTimeout((()=>{this.chromeScrollHack=-1,e.contentDOM.style.pointerEvents=""}),100)}),{passive:!0}),this.notifiedFocused=e.hasFocus,Vv.safari&&e.contentDOM.addEventListener("input",(()=>null))}setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}ensureHandlers(e,t){var i;let n;this.customHandlers=[];for(let r of t)if(n=null===(i=r.update(e).spec)||void 0===i?void 0:i.domEventHandlers){this.customHandlers.push({plugin:r.value,handlers:n});for(let t in n)this.registeredEvents.indexOf(t)<0&&"scroll"!=t&&(this.registeredEvents.push(t),e.contentDOM.addEventListener(t,(i=>{xb(e,i)&&this.runCustomHandlers(t,e,i)&&i.preventDefault()})))}}runCustomHandlers(e,t,i){for(let n of this.customHandlers){let r=n.handlers[e];if(r)try{if(r.call(n.plugin,i,t)||i.defaultPrevented)return!0}catch(e){xy(t.state,e)}}return!1}runScrollHandlers(e,t){this.lastScrollTop=e.scrollDOM.scrollTop,this.lastScrollLeft=e.scrollDOM.scrollLeft;for(let i of this.customHandlers){let n=i.handlers.scroll;if(n)try{n.call(i.plugin,t,e)}catch(t){xy(e.state,t)}}}keydown(e,t){if(this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),9==t.keyCode&&Date.now()<this.lastEscPress+2e3)return!0;if(Vv.android&&Vv.chrome&&!t.synthetic&&(13==t.keyCode||8==t.keyCode))return e.observer.delayAndroidKey(t.key,t.keyCode),!0;let i;return!(!Vv.ios||!(i=yb.find((e=>e.keyCode==t.keyCode)))||t.ctrlKey||t.altKey||t.metaKey||t.synthetic)&&(this.pendingIOSKey=i,setTimeout((()=>this.flushIOSKey(e)),250),!0)}flushIOSKey(e){let t=this.pendingIOSKey;return!!t&&(this.pendingIOSKey=void 0,yv(e.contentDOM,t.key,t.keyCode))}ignoreDuringComposition(e){return!!/^key/.test(e.type)&&(this.composing>0||!!(Vv.safari&&!Vv.ios&&Date.now()-this.compositionEndedAt<100)&&(this.compositionEndedAt=0,!0))}mustFlushObserver(e){return"keydown"==e.type&&229!=e.keyCode||"compositionend"==e.type&&!Vv.ios}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}const yb=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],bb=[16,17,18,20,91,92,224,225];class wb{constructor(e,t,i,n){this.view=e,this.style=i,this.mustSelect=n,this.lastEvent=t;let r=e.contentDOM.ownerDocument;r.addEventListener("mousemove",this.move=this.move.bind(this)),r.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(xO.allowMultipleSelections)&&function(e,t){let i=e.state.facet(fy);return i.length?i[0](t):Vv.mac?t.metaKey:t.ctrlKey}(e,t),this.dragMove=function(e,t){let i=e.state.facet(py);return i.length?i[0](t):Vv.mac?!t.altKey:!t.ctrlKey}(e,t),this.dragging=!(!function(e,t){let{main:i}=e.state.selection;if(i.empty)return!1;let n=nv(e.root);if(!n||0==n.rangeCount)return!0;let r=n.getRangeAt(0).getClientRects();for(let e=0;e<r.length;e++){let i=r[e];if(i.left<=t.clientX&&i.right>=t.clientX&&i.top<=t.clientY&&i.bottom>=t.clientY)return!0}return!1}(e,t)||1!=qb(t))&&null,!1===this.dragging&&(t.preventDefault(),this.select(t))}move(e){if(0==e.buttons)return this.destroy();!1===this.dragging&&this.select(this.lastEvent=e)}up(e){null==this.dragging&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}select(e){let t=this.style.get(e,this.extend,this.multiple);!this.mustSelect&&t.eq(this.view.state.selection)&&t.main.assoc==this.view.state.selection.main.assoc||this.view.dispatch({selection:t,userEvent:"select.pointer",scrollIntoView:!0}),this.mustSelect=!1}update(e){e.docChanged&&this.dragging&&(this.dragging=this.dragging.map(e.changes)),this.style.update(e)&&setTimeout((()=>this.select(this.lastEvent)),20)}}function xb(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let i,n=t.target;n!=e.contentDOM;n=n.parentNode)if(!n||11==n.nodeType||(i=Sv.get(n))&&i.ignoreEvent(t))return!1;return!0}const Sb=Object.create(null),kb=Object.create(null),$b=Vv.ie&&Vv.ie_version<15||Vv.ios&&Vv.webkit_version<604;function _b(e,t){let i,{state:n}=e,r=1,o=n.toText(t),s=o.lines==n.selection.ranges.length,l=null!=jb&&n.selection.ranges.every((e=>e.empty))&&jb==o.toString();if(l){let e=-1;i=n.changeByRange((i=>{let l=n.doc.lineAt(i.from);if(l.from==e)return{range:i};e=l.from;let a=n.toText((s?o.line(r++).text:t)+n.lineBreak);return{changes:{from:l.from,insert:a},range:Cg.cursor(i.from+a.length)}}))}else i=s?n.changeByRange((e=>{let t=o.line(r++);return{changes:{from:e.from,to:e.to,insert:t.text},range:Cg.cursor(e.from+t.length)}})):n.replaceSelection(o);e.dispatch(i,{userEvent:"input.paste",scrollIntoView:!0})}function Tb(e,t,i,n){if(1==n)return Cg.cursor(t,i);if(2==n)return function(e,t,i=1){let n=e.charCategorizer(t),r=e.doc.lineAt(t),o=t-r.from;if(0==r.length)return Cg.cursor(t);0==o?i=1:o==r.length&&(i=-1);let s=o,l=o;i<0?s=dg(r.text,o,!1):l=dg(r.text,o);let a=n(r.text.slice(s,l));for(;s>0;){let e=dg(r.text,s,!1);if(n(r.text.slice(e,s))!=a)break;s=e}for(;l<r.length;){let e=dg(r.text,l);if(n(r.text.slice(l,e))!=a)break;l=e}return Cg.range(s+r.from,l+r.from)}(e.state,t,i);{let i=ay.find(e.docView,t),n=e.state.doc.lineAt(i?i.posAtEnd:t),r=i?i.posAtStart:n.from,o=i?i.posAtEnd:n.to;return o<e.state.doc.length&&o==n.to&&o++,Cg.range(r,o)}}Sb.keydown=(e,t)=>{e.inputState.setSelectionOrigin("select"),27==t.keyCode?e.inputState.lastEscPress=Date.now():bb.indexOf(t.keyCode)<0&&(e.inputState.lastEscPress=0)},Sb.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")},Sb.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")},kb.touchstart=kb.touchmove={passive:!0},Sb.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3&&1==qb(t))return;let i=null;for(let n of e.state.facet(my))if(i=n(e,t),i)break;if(i||0!=t.button||(i=function(e,t){let i=Cb(e,t),n=qb(t),r=e.state.selection,o=i,s=t;return{update(e){e.docChanged&&(i&&(i.pos=e.changes.mapPos(i.pos)),r=r.map(e.changes),s=null)},get(t,l,a){let c;if(s&&t.clientX==s.clientX&&t.clientY==s.clientY?c=o:(c=o=Cb(e,t),s=t),!c||!i)return r;let h=Tb(e,c.pos,c.bias,n);if(i.pos!=c.pos&&!l){let t=Tb(e,i.pos,i.bias,n),r=Math.min(t.from,h.from),o=Math.max(t.to,h.to);h=r<h.from?Cg.range(r,o):Cg.range(o,r)}return l?r.replaceRange(r.main.extend(h.from,h.to)):a&&r.ranges.length>1&&r.ranges.some((e=>e.eq(h)))?function(e,t){for(let i=0;;i++)if(e.ranges[i].eq(t))return Cg.create(e.ranges.slice(0,i).concat(e.ranges.slice(i+1)),e.mainIndex==i?0:e.mainIndex-(e.mainIndex>i?1:0))}(r,h):a?r.addRange(h):Cg.create([h])}}}(e,t)),i){let n=e.root.activeElement!=e.contentDOM;n&&e.observer.ignore((()=>Ov(e.contentDOM))),e.inputState.startMouseSelection(new wb(e,t,i,n))}};let Qb=(e,t)=>e>=t.top&&e<=t.bottom,Pb=(e,t,i)=>Qb(t,i)&&e>=i.left&&e<=i.right;function Ab(e,t,i,n){let r=ay.find(e.docView,t);if(!r)return 1;let o=t-r.posAtStart;if(0==o)return 1;if(o==r.length)return-1;let s=r.coordsAt(o,-1);if(s&&Pb(i,n,s))return-1;let l=r.coordsAt(o,1);return l&&Pb(i,n,l)?1:s&&Qb(n,s)?-1:1}function Cb(e,t){let i=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:i,bias:Ab(e,i,t.clientX,t.clientY)}}const Rb=Vv.ie&&Vv.ie_version<=11;let Eb=null,Mb=0,Db=0;function qb(e){if(!Rb)return e.detail;let t=Eb,i=Db;return Eb=e,Db=Date.now(),Mb=!t||i>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(Mb+1)%3:1}function Nb(e,t,i,n){if(!i)return;let r=e.posAtCoords({x:t.clientX,y:t.clientY},!1);t.preventDefault();let{mouseSelection:o}=e.inputState,s=n&&o&&o.dragging&&o.dragMove?{from:o.dragging.from,to:o.dragging.to}:null,l={from:r,insert:i},a=e.state.changes(s?[s,l]:l);e.focus(),e.dispatch({changes:a,selection:{anchor:a.mapPos(r,-1),head:a.mapPos(r,1)},userEvent:s?"move.drop":"input.drop"})}Sb.dragstart=(e,t)=>{let{selection:{main:i}}=e.state,{mouseSelection:n}=e.inputState;n&&(n.dragging=i),t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(i.from,i.to)),t.dataTransfer.effectAllowed="copyMove")},Sb.drop=(e,t)=>{if(!t.dataTransfer)return;if(e.state.readOnly)return t.preventDefault();let i=t.dataTransfer.files;if(i&&i.length){t.preventDefault();let n=Array(i.length),r=0,o=()=>{++r==i.length&&Nb(e,t,n.filter((e=>null!=e)).join(e.state.lineBreak),!1)};for(let e=0;e<i.length;e++){let t=new FileReader;t.onerror=o,t.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(t.result)||(n[e]=t.result),o()},t.readAsText(i[e])}}else Nb(e,t,t.dataTransfer.getData("Text"),!0)},Sb.paste=(e,t)=>{if(e.state.readOnly)return t.preventDefault();e.observer.flush();let i=$b?null:t.clipboardData;i?(_b(e,i.getData("text/plain")),t.preventDefault()):function(e){let t=e.dom.parentNode;if(!t)return;let i=t.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.focus(),setTimeout((()=>{e.focus(),i.remove(),_b(e,i.value)}),50)}(e)};let jb=null;function Vb(e){setTimeout((()=>{e.hasFocus!=e.inputState.notifiedFocused&&e.update([])}),10)}function Wb(e,t){if(e.docView.compositionDeco.size){e.inputState.rapidCompositionStart=t;try{e.update([])}finally{e.inputState.rapidCompositionStart=!1}}}Sb.copy=Sb.cut=(e,t)=>{let{text:i,ranges:n,linewise:r}=function(e){let t=[],i=[],n=!1;for(let n of e.selection.ranges)n.empty||(t.push(e.sliceDoc(n.from,n.to)),i.push(n));if(!t.length){let r=-1;for(let{from:n}of e.selection.ranges){let o=e.doc.lineAt(n);o.number>r&&(t.push(o.text),i.push({from:o.from,to:Math.min(e.doc.length,o.to+1)})),r=o.number}n=!0}return{text:t.join(e.lineBreak),ranges:i,linewise:n}}(e.state);if(!i&&!r)return;jb=r?i:null;let o=$b?null:t.clipboardData;o?(t.preventDefault(),o.clearData(),o.setData("text/plain",i)):function(e,t){let i=e.dom.parentNode;if(!i)return;let n=i.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.value=t,n.focus(),n.selectionEnd=t.length,n.selectionStart=0,setTimeout((()=>{n.remove(),e.focus()}),50)}(e,i),"cut"!=t.type||e.state.readOnly||e.dispatch({changes:n,scrollIntoView:!0,userEvent:"delete.cut"})},Sb.focus=e=>{e.inputState.lastFocusTime=Date.now(),e.scrollDOM.scrollTop||!e.inputState.lastScrollTop&&!e.inputState.lastScrollLeft||(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),Vb(e)},Sb.blur=e=>{e.observer.clearSelectionRange(),Vb(e)},Sb.compositionstart=Sb.compositionupdate=e=>{null==e.inputState.compositionFirstChange&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0,e.docView.compositionDeco.size&&(e.observer.flush(),Wb(e,!0)))},Sb.compositionend=e=>{e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionFirstChange=null,setTimeout((()=>{e.inputState.composing<0&&Wb(e,!1)}),50)},Sb.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()},Sb.beforeinput=(e,t)=>{var i;let n;if(Vv.chrome&&Vv.android&&(n=yb.find((e=>e.inputType==t.inputType)))&&(e.observer.delayAndroidKey(n.key,n.keyCode),"Backspace"==n.key||"Delete"==n.key)){let t=(null===(i=window.visualViewport)||void 0===i?void 0:i.height)||0;setTimeout((()=>{var i;((null===(i=window.visualViewport)||void 0===i?void 0:i.height)||0)>t+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())}),100)}};const zb=["pre-wrap","normal","pre-line","break-spaces"];class Lb{constructor(){this.doc=eg.empty,this.lineWrapping=!1,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.lineLength=30,this.heightChanged=!1}heightForGap(e,t){let i=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(i+=Math.ceil((t-e-i*this.lineLength*.5)/this.lineLength)),this.lineHeight*i}heightForLine(e){if(!this.lineWrapping)return this.lineHeight;return(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return zb.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let i=0;i<e.length;i++){let n=e[i];n<0?i++:this.heightSamples[Math.floor(10*n)]||(t=!0,this.heightSamples[Math.floor(10*n)]=!0)}return t}refresh(e,t,i,n,r){let o=zb.indexOf(e)>-1,s=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=o;if(this.lineWrapping=o,this.lineHeight=t,this.charWidth=i,this.lineLength=n,s){this.heightSamples={};for(let e=0;e<r.length;e++){let t=r[e];t<0?e++:this.heightSamples[Math.floor(10*t)]=!0}}return s}}class Bb{constructor(e,t){this.from=e,this.heights=t,this.index=0}get more(){return this.index<this.heights.length}}class Ib{constructor(e,t,i,n,r){this.from=e,this.length=t,this.top=i,this.height=n,this.type=r}get to(){return this.from+this.length}get bottom(){return this.top+this.height}join(e){let t=(Array.isArray(this.type)?this.type:[this]).concat(Array.isArray(e.type)?e.type:[e]);return new Ib(this.from,this.length+e.length,this.top,this.height+e.height,t)}}var Xb=function(e){return e[e.ByPos=0]="ByPos",e[e.ByHeight=1]="ByHeight",e[e.ByPosNoHeight=2]="ByPosNoHeight",e}(Xb||(Xb={}));const Ub=.001;class Fb{constructor(e,t,i=2){this.length=e,this.height=t,this.flags=i}get outdated(){return(2&this.flags)>0}set outdated(e){this.flags=(e?2:0)|-3&this.flags}setHeight(e,t){this.height!=t&&(Math.abs(this.height-t)>Ub&&(e.heightChanged=!0),this.height=t)}replace(e,t,i){return Fb.of(i)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,i,n){let r=this;for(let o=n.length-1;o>=0;o--){let{fromA:s,toA:l,fromB:a,toB:c}=n[o],h=r.lineAt(s,Xb.ByPosNoHeight,t,0,0),u=h.to>=l?h:r.lineAt(l,Xb.ByPosNoHeight,t,0,0);for(c+=u.to-l,l=u.to;o>0&&h.from<=n[o-1].toA;)s=n[o-1].fromA,a=n[o-1].fromB,o--,s<h.from&&(h=r.lineAt(s,Xb.ByPosNoHeight,t,0,0));a+=h.from-s,s=h.from;let d=Jb.build(i,e,a,c);r=r.replace(s,l,d)}return r.updateHeight(i,0)}static empty(){return new Zb(0,0)}static of(e){if(1==e.length)return e[0];let t=0,i=e.length,n=0,r=0;for(;;)if(t==i)if(n>2*r){let r=e[t-1];r.break?e.splice(--t,1,r.left,null,r.right):e.splice(--t,1,r.left,r.right),i+=1+r.break,n-=r.size}else{if(!(r>2*n))break;{let t=e[i];t.break?e.splice(i,1,t.left,null,t.right):e.splice(i,1,t.left,t.right),i+=2+t.break,r-=t.size}}else if(n<r){let i=e[t++];i&&(n+=i.size)}else{let t=e[--i];t&&(r+=t.size)}let o=0;return null==e[t-1]?(o=1,t--):null==e[t]&&(o=1,i++),new Yb(Fb.of(e.slice(0,t)),o,Fb.of(e.slice(i)))}}Fb.prototype.size=1;class Hb extends Fb{constructor(e,t,i){super(e,t),this.type=i}blockAt(e,t,i,n){return new Ib(n,this.length,i,this.height,this.type)}lineAt(e,t,i,n,r){return this.blockAt(0,i,n,r)}forEachLine(e,t,i,n,r,o){e<=r+this.length&&t>=r&&o(this.blockAt(0,i,n,r))}updateHeight(e,t=0,i=!1,n){return n&&n.from<=t&&n.more&&this.setHeight(e,n.heights[n.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Zb extends Hb{constructor(e,t){super(e,t,ty.Text),this.collapsed=0,this.widgetHeight=0}replace(e,t,i){let n=i[0];return 1==i.length&&(n instanceof Zb||n instanceof Gb&&4&n.flags)&&Math.abs(this.length-n.length)<10?(n instanceof Gb?n=new Zb(n.length,this.height):n.height=this.height,this.outdated||(n.outdated=!1),n):Fb.of(i)}updateHeight(e,t=0,i=!1,n){return n&&n.from<=t&&n.more?this.setHeight(e,n.heights[n.index++]):(i||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Gb extends Fb{constructor(e){super(e,0)}lines(e,t){let i=e.lineAt(t).number,n=e.lineAt(t+this.length).number;return{firstLine:i,lastLine:n,lineHeight:this.height/(n-i+1)}}blockAt(e,t,i,n){let{firstLine:r,lastLine:o,lineHeight:s}=this.lines(t,n),l=Math.max(0,Math.min(o-r,Math.floor((e-i)/s))),{from:a,length:c}=t.line(r+l);return new Ib(a,c,i+s*l,s,ty.Text)}lineAt(e,t,i,n,r){if(t==Xb.ByHeight)return this.blockAt(e,i,n,r);if(t==Xb.ByPosNoHeight){let{from:t,to:n}=i.lineAt(e);return new Ib(t,n-t,0,0,ty.Text)}let{firstLine:o,lineHeight:s}=this.lines(i,r),{from:l,length:a,number:c}=i.lineAt(e);return new Ib(l,a,n+s*(c-o),s,ty.Text)}forEachLine(e,t,i,n,r,o){let{firstLine:s,lineHeight:l}=this.lines(i,r);for(let a=Math.max(e,r),c=Math.min(r+this.length,t);a<=c;){let t=i.lineAt(a);a==e&&(n+=l*(t.number-s)),o(new Ib(t.from,t.length,n,l,ty.Text)),n+=l,a=t.to+1}}replace(e,t,i){let n=this.length-t;if(n>0){let e=i[i.length-1];e instanceof Gb?i[i.length-1]=new Gb(e.length+n):i.push(null,new Gb(n-1))}if(e>0){let t=i[0];t instanceof Gb?i[0]=new Gb(e+t.length):i.unshift(new Gb(e-1),null)}return Fb.of(i)}decomposeLeft(e,t){t.push(new Gb(e-1),null)}decomposeRight(e,t){t.push(null,new Gb(this.length-e-1))}updateHeight(e,t=0,i=!1,n){let r=t+this.length;if(n&&n.from<=t+this.length&&n.more){let i=[],o=Math.max(t,n.from),s=-1,l=e.heightChanged;for(n.from>t&&i.push(new Gb(n.from-t-1).updateHeight(e,t));o<=r&&n.more;){let t=e.doc.lineAt(o).length;i.length&&i.push(null);let r=n.heights[n.index++];-1==s?s=r:Math.abs(r-s)>=Ub&&(s=-2);let l=new Zb(t,r);l.outdated=!1,i.push(l),o+=t+1}o<=r&&i.push(null,new Gb(r-o).updateHeight(e,o));let a=Fb.of(i);return e.heightChanged=l||s<0||Math.abs(a.height-this.height)>=Ub||Math.abs(s-this.lines(e.doc,t).lineHeight)>=Ub,a}return(i||this.outdated)&&(this.setHeight(e,e.heightForGap(t,t+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class Yb extends Fb{constructor(e,t,i){super(e.length+t+i.length,e.height+i.height,t|(e.outdated||i.outdated?2:0)),this.left=e,this.right=i,this.size=e.size+i.size}get break(){return 1&this.flags}blockAt(e,t,i,n){let r=i+this.left.height;return e<r?this.left.blockAt(e,t,i,n):this.right.blockAt(e,t,r,n+this.left.length+this.break)}lineAt(e,t,i,n,r){let o=n+this.left.height,s=r+this.left.length+this.break,l=t==Xb.ByHeight?e<o:e<s,a=l?this.left.lineAt(e,t,i,n,r):this.right.lineAt(e,t,i,o,s);if(this.break||(l?a.to<s:a.from>s))return a;let c=t==Xb.ByPosNoHeight?Xb.ByPosNoHeight:Xb.ByPos;return l?a.join(this.right.lineAt(s,c,i,o,s)):this.left.lineAt(s,c,i,n,r).join(a)}forEachLine(e,t,i,n,r,o){let s=n+this.left.height,l=r+this.left.length+this.break;if(this.break)e<l&&this.left.forEachLine(e,t,i,n,r,o),t>=l&&this.right.forEachLine(e,t,i,s,l,o);else{let a=this.lineAt(l,Xb.ByPos,i,n,r);e<a.from&&this.left.forEachLine(e,a.from-1,i,n,r,o),a.to>=e&&a.from<=t&&o(a),t>a.to&&this.right.forEachLine(a.to+1,t,i,s,l,o)}}replace(e,t,i){let n=this.left.length+this.break;if(t<n)return this.balanced(this.left.replace(e,t,i),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-n,t-n,i));let r=[];e>0&&this.decomposeLeft(e,r);let o=r.length;for(let e of i)r.push(e);if(e>0&&Kb(r,o-1),t<this.length){let e=r.length;this.decomposeRight(t,r),Kb(r,e)}return Fb.of(r)}decomposeLeft(e,t){let i=this.left.length;if(e<=i)return this.left.decomposeLeft(e,t);t.push(this.left),this.break&&(i++,e>=i&&t.push(null)),e>i&&this.right.decomposeLeft(e-i,t)}decomposeRight(e,t){let i=this.left.length,n=i+this.break;if(e>=n)return this.right.decomposeRight(e-n,t);e<i&&this.left.decomposeRight(e,t),this.break&&e<n&&t.push(null),t.push(this.right)}balanced(e,t){return e.size>2*t.size||t.size>2*e.size?Fb.of(this.break?[e,null,t]:[e,t]):(this.left=e,this.right=t,this.height=e.height+t.height,this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,i=!1,n){let{left:r,right:o}=this,s=t+r.length+this.break,l=null;return n&&n.from<=t+r.length&&n.more?l=r=r.updateHeight(e,t,i,n):r.updateHeight(e,t,i),n&&n.from<=s+o.length&&n.more?l=o=o.updateHeight(e,s,i,n):o.updateHeight(e,s,i),l?this.balanced(r,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function Kb(e,t){let i,n;null==e[t]&&(i=e[t-1])instanceof Gb&&(n=e[t+1])instanceof Gb&&e.splice(t-1,3,new Gb(i.length+1+n.length))}class Jb{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let e=Math.min(t,this.lineEnd),i=this.nodes[this.nodes.length-1];i instanceof Zb?i.length+=e-this.pos:(e>this.pos||!this.isCovered)&&this.nodes.push(new Zb(e-this.pos,-1)),this.writtenTo=e,t>e&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,i){if(e<t||i.heightRelevant){let n=i.widget?i.widget.estimatedHeight:0;n<0&&(n=this.oracle.lineHeight);let r=t-e;i.block?this.addBlock(new Hb(r,n,i.type)):(r||n>=5)&&this.addLineDeco(n,r)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenTo<e&&((this.writtenTo<e-1||null==this.nodes[this.nodes.length-1])&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new Zb(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let i=new Gb(t-e);return this.oracle.doc.lineAt(e).to==t&&(i.flags|=4),i}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Zb)return e;let t=new Zb(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine(),e.type!=ty.WidgetAfter||this.isCovered||this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,e.type!=ty.WidgetBefore&&(this.covering=e)}addLineDeco(e,t){let i=this.ensureLine();i.length+=t,i.collapsed+=t,i.widgetHeight=Math.max(i.widgetHeight,e),this.writtenTo=this.pos=this.pos+t}finish(e){let t=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||t instanceof Zb||this.isCovered?(this.writtenTo<this.pos||null==t)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos)):this.nodes.push(new Zb(0,-1));let i=e;for(let e of this.nodes)e instanceof Zb&&e.updateHeight(this.oracle,i),i+=e?e.length:1;return this.nodes}static build(e,t,i,n){let r=new Jb(i,e);return QO.spans(t,i,n,r,0),r.finish(i)}}class ew{constructor(){this.changes=[]}compareRange(){}comparePoint(e,t,i,n){(e<t||i&&i.heightRelevant||n&&n.heightRelevant)&&ly(e,t,this.changes,5)}}function tw(e,t){let i=e.getBoundingClientRect(),n=Math.max(0,i.left),r=Math.min(innerWidth,i.right),o=Math.max(0,i.top),s=Math.min(innerHeight,i.bottom),l=e.ownerDocument.body;for(let t=e.parentNode;t&&t!=l;)if(1==t.nodeType){let i=t,l=window.getComputedStyle(i);if((i.scrollHeight>i.clientHeight||i.scrollWidth>i.clientWidth)&&"visible"!=l.overflow){let l=i.getBoundingClientRect();n=Math.max(n,l.left),r=Math.min(r,l.right),o=Math.max(o,l.top),s=t==e.parentNode?l.bottom:Math.min(s,l.bottom)}t="absolute"==l.position||"fixed"==l.position?i.offsetParent:i.parentNode}else{if(11!=t.nodeType)break;t=t.host}return{left:n-i.left,right:Math.max(n,r)-i.left,top:o-(i.top+t),bottom:Math.max(o,s)-(i.top+t)}}function iw(e,t){let i=e.getBoundingClientRect();return{left:0,right:i.right-i.left,top:t,bottom:i.bottom-(i.top+t)}}class nw{constructor(e,t,i){this.from=e,this.to=t,this.size=i}static same(e,t){if(e.length!=t.length)return!1;for(let i=0;i<e.length;i++){let n=e[i],r=t[i];if(n.from!=r.from||n.to!=r.to||n.size!=r.size)return!1}return!0}draw(e){return iy.replace({widget:new rw(this.size,e)}).range(this.from,this.to)}}class rw extends ey{constructor(e,t){super(),this.size=e,this.vertical=t}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class ow{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.heightOracle=new Lb,this.scaler=dw,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=qy.RTL,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1,this.stateDeco=e.facet(Ay).filter((e=>"function"!=typeof e)),this.heightMap=Fb.empty().applyChanges(this.stateDeco,eg.empty,this.heightOracle.setDoc(e.doc),[new My(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=iy.set(this.lineGaps.map((e=>e.draw(!1)))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let i=0;i<=1;i++){let n=i?t.head:t.anchor;if(!e.some((({from:e,to:t})=>n>=e&&n<=t))){let{from:t,to:i}=this.lineBlockAt(n);e.push(new sw(t,i))}}this.viewports=e.sort(((e,t)=>e.from-t.from)),this.scaler=this.heightMap.height<=7e6?dw:new fw(this.heightOracle.doc,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.state.doc,0,0,(e=>{this.viewportLines.push(1==this.scaler.scale?e:pw(e,this.scaler))}))}update(e,t=null){this.state=e.state;let i=this.stateDeco;this.stateDeco=this.state.facet(Ay).filter((e=>"function"!=typeof e));let n=e.changedRanges,r=My.extendWithRanges(n,function(e,t,i){let n=new ew;return QO.compare(e,t,i,n,0),n.changes}(i,this.stateDeco,e?e.changes:Sg.empty(this.state.doc.length))),o=this.heightMap.height;this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),r),this.heightMap.height!=o&&(e.flags|=2);let s=r.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.head<s.from||t.range.head>s.to)||!this.viewportIsAppropriate(s))&&(s=this.getViewport(0,t));let l=!e.changes.empty||2&e.flags||s.from!=this.viewport.from||s.to!=this.viewport.to;this.viewport=s,this.updateForViewport(),l&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,i=window.getComputedStyle(t),n=this.heightOracle,r=i.whiteSpace;this.defaultTextDirection="rtl"==i.direction?qy.RTL:qy.LTR;let o=this.heightOracle.mustRefreshForWrapping(r),s=o||this.mustMeasureContent||this.contentDOMHeight!=t.clientHeight;this.contentDOMHeight=t.clientHeight,this.mustMeasureContent=!1;let l=0,a=0,c=parseInt(i.paddingTop)||0,h=parseInt(i.paddingBottom)||0;this.paddingTop==c&&this.paddingBottom==h||(this.paddingTop=c,this.paddingBottom=h,l|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(n.lineWrapping&&(s=!0),this.editorWidth=e.scrollDOM.clientWidth,l|=8);let u=(this.printing?iw:tw)(t,this.paddingTop),d=u.top-this.pixelViewport.top,f=u.bottom-this.pixelViewport.bottom;this.pixelViewport=u;let p=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(p!=this.inView&&(this.inView=p,p&&(s=!0)),!this.inView)return 0;let m=t.clientWidth;if(this.contentDOMWidth==m&&this.editorHeight==e.scrollDOM.clientHeight||(this.contentDOMWidth=m,this.editorHeight=e.scrollDOM.clientHeight,l|=8),s){let t=e.docView.measureVisibleLineHeights(this.viewport);if(n.mustRefreshForHeights(t)&&(o=!0),o||n.lineWrapping&&Math.abs(m-this.contentDOMWidth)>n.charWidth){let{lineHeight:i,charWidth:s}=e.docView.measureTextSize();o=n.refresh(r,i,s,m/s,t),o&&(e.docView.minWidth=0,l|=8)}d>0&&f>0?a=Math.max(d,f):d<0&&f<0&&(a=Math.min(d,f)),n.heightChanged=!1;for(let i of this.viewports){let r=i.from==this.viewport.from?t:e.docView.measureVisibleLineHeights(i);this.heightMap=this.heightMap.updateHeight(n,0,o,new Bb(i.from,r))}n.heightChanged&&(l|=2)}let g=!this.viewportIsAppropriate(this.viewport,a)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return g&&(this.viewport=this.getViewport(a,this.scrollTarget)),this.updateForViewport(),(2&l||g)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps)),l|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),l}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let i=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),n=this.heightMap,r=this.state.doc,{visibleTop:o,visibleBottom:s}=this,l=new sw(n.lineAt(o-1e3*i,Xb.ByHeight,r,0,0).from,n.lineAt(s+1e3*(1-i),Xb.ByHeight,r,0,0).to);if(t){let{head:e}=t.range;if(e<l.from||e>l.to){let i,o=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),s=n.lineAt(e,Xb.ByPos,r,0,0);i="center"==t.y?(s.top+s.bottom)/2-o/2:"start"==t.y||"nearest"==t.y&&e<l.from?s.top:s.bottom-o,l=new sw(n.lineAt(i-500,Xb.ByHeight,r,0,0).from,n.lineAt(i+o+500,Xb.ByHeight,r,0,0).to)}}return l}mapViewport(e,t){let i=t.mapPos(e.from,-1),n=t.mapPos(e.to,1);return new sw(this.heightMap.lineAt(i,Xb.ByPos,this.state.doc,0,0).from,this.heightMap.lineAt(n,Xb.ByPos,this.state.doc,0,0).to)}viewportIsAppropriate({from:e,to:t},i=0){if(!this.inView)return!0;let{top:n}=this.heightMap.lineAt(e,Xb.ByPos,this.state.doc,0,0),{bottom:r}=this.heightMap.lineAt(t,Xb.ByPos,this.state.doc,0,0),{visibleTop:o,visibleBottom:s}=this;return(0==e||n<=o-Math.max(10,Math.min(-i,250)))&&(t==this.state.doc.length||r>=s+Math.max(10,Math.min(i,250)))&&n>o-2e3&&r<s+2e3}mapLineGaps(e,t){if(!e.length||t.empty)return e;let i=[];for(let n of e)t.touchesRange(n.from,n.to)||i.push(new nw(t.mapPos(n.from),t.mapPos(n.to),n.size));return i}ensureLineGaps(e){let t=[];if(this.defaultTextDirection!=qy.LTR)return t;for(let i of this.viewportLines){if(i.length<4e3)continue;let n,r,o=lw(i.from,i.to,this.stateDeco);if(o.total<4e3)continue;if(this.heightOracle.lineWrapping){let e=2e3/this.heightOracle.lineLength*this.heightOracle.lineHeight;n=aw(o,(this.visibleTop-i.top-e)/i.height),r=aw(o,(this.visibleBottom-i.top+e)/i.height)}else{let e=o.total*this.heightOracle.charWidth,t=2e3*this.heightOracle.charWidth;n=aw(o,(this.pixelViewport.left-t)/e),r=aw(o,(this.pixelViewport.right+t)/e)}let s=[];n>i.from&&s.push({from:i.from,to:n}),r<i.to&&s.push({from:r,to:i.to});let l=this.state.selection.main;l.from>=i.from&&l.from<=i.to&&hw(s,l.from-10,l.from+10),!l.empty&&l.to>=i.from&&l.to<=i.to&&hw(s,l.to-10,l.to+10);for(let{from:n,to:r}of s)r-n>1e3&&t.push(uw(e,(e=>e.from>=i.from&&e.to<=i.to&&Math.abs(e.from-n)<1e3&&Math.abs(e.to-r)<1e3))||new nw(n,r,this.gapSize(i,n,r,o)))}return t}gapSize(e,t,i,n){let r=cw(n,i)-cw(n,t);return this.heightOracle.lineWrapping?e.height*r:n.total*this.heightOracle.charWidth*r}updateLineGaps(e){nw.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=iy.set(e.map((e=>e.draw(this.heightOracle.lineWrapping)))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let t=[];QO.spans(e,this.viewport.from,this.viewport.to,{span(e,i){t.push({from:e,to:i})},point(){}},20);let i=t.length!=this.visibleRanges.length||this.visibleRanges.some(((e,i)=>e.from!=t[i].from||e.to!=t[i].to));return this.visibleRanges=t,i?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find((t=>t.from<=e&&t.to>=e))||pw(this.heightMap.lineAt(e,Xb.ByPos,this.state.doc,0,0),this.scaler)}lineBlockAtHeight(e){return pw(this.heightMap.lineAt(this.scaler.fromDOM(e),Xb.ByHeight,this.state.doc,0,0),this.scaler)}elementAtHeight(e){return pw(this.heightMap.blockAt(this.scaler.fromDOM(e),this.state.doc,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class sw{constructor(e,t){this.from=e,this.to=t}}function lw(e,t,i){let n=[],r=e,o=0;return QO.spans(i,e,t,{span(){},point(e,t){e>r&&(n.push({from:r,to:e}),o+=e-r),r=t}},20),r<t&&(n.push({from:r,to:t}),o+=t-r),{total:o,ranges:n}}function aw({total:e,ranges:t},i){if(i<=0)return t[0].from;if(i>=1)return t[t.length-1].to;let n=Math.floor(e*i);for(let e=0;;e++){let{from:i,to:r}=t[e],o=r-i;if(n<=o)return i+n;n-=o}}function cw(e,t){let i=0;for(let{from:n,to:r}of e.ranges){if(t<=r){i+=t-n;break}i+=r-n}return i/e.total}function hw(e,t,i){for(let n=0;n<e.length;n++){let r=e[n];if(r.from<i&&r.to>t){let o=[];r.from<t&&o.push({from:r.from,to:t}),r.to>i&&o.push({from:i,to:r.to}),e.splice(n,1,...o),n+=o.length-1}}}function uw(e,t){for(let i of e)if(t(i))return i}const dw={toDOM:e=>e,fromDOM:e=>e,scale:1};class fw{constructor(e,t,i){let n=0,r=0,o=0;this.viewports=i.map((({from:i,to:r})=>{let o=t.lineAt(i,Xb.ByPos,e,0,0).top,s=t.lineAt(r,Xb.ByPos,e,0,0).bottom;return n+=s-o,{from:i,to:r,top:o,bottom:s,domTop:0,domBottom:0}})),this.scale=(7e6-n)/(t.height-n);for(let e of this.viewports)e.domTop=o+(e.top-r)*this.scale,o=e.domBottom=e.domTop+(e.bottom-e.top),r=e.bottom}toDOM(e){for(let t=0,i=0,n=0;;t++){let r=t<this.viewports.length?this.viewports[t]:null;if(!r||e<r.top)return n+(e-i)*this.scale;if(e<=r.bottom)return r.domTop+(e-r.top);i=r.bottom,n=r.domBottom}}fromDOM(e){for(let t=0,i=0,n=0;;t++){let r=t<this.viewports.length?this.viewports[t]:null;if(!r||e<r.domTop)return i+(e-n)/this.scale;if(e<=r.domBottom)return r.top+(e-r.domTop);i=r.bottom,n=r.domBottom}}}function pw(e,t){if(1==t.scale)return e;let i=t.toDOM(e.top),n=t.toDOM(e.bottom);return new Ib(e.from,e.length,i,n-i,Array.isArray(e.type)?e.type.map((e=>pw(e,t))):e.type)}const mw=Mg.define({combine:e=>e.join(" ")}),gw=Mg.define({combine:e=>e.indexOf(!0)>-1}),Ow=XO.newName(),vw=XO.newName(),yw=XO.newName(),bw={"&light":"."+vw,"&dark":"."+yw};function ww(e,t,i){return new XO(t,{finish:t=>/&/.test(t)?t.replace(/&\w*/,(t=>{if("&"==t)return e;if(!i||!i[t])throw new RangeError(`Unsupported selector: ${t}`);return i[t]})):e+" "+t})}const xw=ww("."+Ow,{"&.cm-editor":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,minHeight:"100%",display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 4px"},".cm-selectionLayer":{zIndex:-1,contain:"size style"},".cm-selectionBackground":{position:"absolute"},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{zIndex:100,contain:"size style",pointerEvents:"none"},"&.cm-focused .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{position:"absolute",borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},"&.cm-focused .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#f3f9ff"},"&dark .cm-activeLine":{backgroundColor:"#223039"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",left:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},bw),Sw={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},kw=Vv.ie&&Vv.ie_version<=11;class $w{constructor(e,t,i){this.view=e,this.onChange=t,this.onScrollChanged=i,this.active=!1,this.selectionRange=new pv,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.scrollTargets=[],this.intersection=null,this.resize=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver((t=>{for(let e of t)this.queue.push(e);(Vv.ie&&Vv.ie_version<=11||Vv.ios&&e.composing)&&t.some((e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length))?this.flushSoon():this.flush()})),kw&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),"function"==typeof ResizeObserver&&(this.resize=new ResizeObserver((()=>{this.view.docView.lastUpdate<Date.now()-75&&this.onResize()})),this.resize.observe(e.scrollDOM)),this.win=e.dom.ownerDocument.defaultView,this.addWindowListeners(this.win),this.start(),"function"==typeof IntersectionObserver&&(this.intersection=new IntersectionObserver((e=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))}),{}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver((e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))}),{})),this.listenForScroll(),this.readSelectionRange()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout((()=>{this.resizeTimeout=-1,this.view.requestMeasure()}),50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout((()=>{this.view.viewState.printing=!1,this.view.requestMeasure()}),500)}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some(((t,i)=>t!=e[i])))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:t}=this,i=this.selectionRange;if(t.state.facet(Sy)?t.root.activeElement!=this.dom:!ov(t.dom,i))return;let n=i.anchorNode&&t.docView.nearest(i.anchorNode);n&&n.ignoreEvent(e)||((Vv.ie&&Vv.ie_version<=11||Vv.android&&Vv.chrome)&&!t.state.selection.main.empty&&i.focusNode&&lv(i.focusNode,i.focusOffset,i.anchorNode,i.anchorOffset)?this.flushSoon():this.flush(!1))}readSelectionRange(){let{view:e}=this,t=Vv.safari&&11==e.root.nodeType&&function(){let e=document.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}()==this.dom&&function(e){let t=null;function i(e){e.preventDefault(),e.stopImmediatePropagation(),t=e.getTargetRanges()[0]}if(e.contentDOM.addEventListener("beforeinput",i,!0),document.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",i,!0),!t)return null;let n=t.startContainer,r=t.startOffset,o=t.endContainer,s=t.endOffset,l=e.docView.domAtPos(e.state.selection.main.anchor);lv(l.node,l.offset,o,s)&&([n,r,o,s]=[o,s,n,r]);return{anchorNode:n,anchorOffset:r,focusNode:o,focusOffset:s}}(this.view)||nv(e.root);if(!t||this.selectionRange.eq(t))return!1;let i=ov(this.dom,t);return i&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&function(e,t){let i=t.focusNode,n=t.focusOffset;if(!i||t.anchorNode!=i||t.anchorOffset!=n)return!1;for(;;)if(n){if(1!=i.nodeType)return!1;let e=i.childNodes[n-1];"false"==e.contentEditable?n--:(i=e,n=hv(i))}else{if(i==e)return!0;n=av(i),i=i.parentNode}}(this.dom,t)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(t),i&&(this.selectionChanged=!0),!0)}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let i=this.dom;i;)if(1==i.nodeType)!t&&e<this.scrollTargets.length&&this.scrollTargets[e]==i?e++:t||(t=this.scrollTargets.slice(0,e)),t&&t.push(i),i=i.assignedSlot||i.parentNode;else{if(11!=i.nodeType)break;i=i.host}if(e<this.scrollTargets.length&&!t&&(t=this.scrollTargets.slice(0,e)),t){for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll);for(let e of this.scrollTargets=t)e.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,Sw),kw&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),kw&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,t){this.delayedAndroidKey||requestAnimationFrame((()=>{let e=this.delayedAndroidKey;this.delayedAndroidKey=null,this.delayedFlush=-1,this.flush()||yv(this.dom,e.key,e.keyCode)})),this.delayedAndroidKey&&"Enter"!=e||(this.delayedAndroidKey={key:e,keyCode:t})}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=window.setTimeout((()=>{this.delayedFlush=-1,this.flush()}),20))}forceFlush(){this.delayedFlush>=0&&(window.clearTimeout(this.delayedFlush),this.delayedFlush=-1),this.flush()}processRecords(){let e=this.queue;for(let t of this.observer.takeRecords())e.push(t);e.length&&(this.queue=[]);let t=-1,i=-1,n=!1;for(let r of e){let e=this.readMutation(r);e&&(e.typeOver&&(n=!0),-1==t?({from:t,to:i}=e):(t=Math.min(e.from,t),i=Math.max(e.to,i)))}return{from:t,to:i,typeOver:n}}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return;e&&this.readSelectionRange();let{from:t,to:i,typeOver:n}=this.processRecords(),r=this.selectionChanged&&ov(this.dom,this.selectionRange);if(t<0&&!r)return;this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let o=this.view.state,s=this.onChange(t,i,n);return this.view.state==o&&this.view.update([]),s}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty("attributes"==e.type),"attributes"==e.type&&(t.dirty|=4),"childList"==e.type){let i=_w(t,e.previousSibling||e.target.previousSibling,-1),n=_w(t,e.nextSibling||e.target.nextSibling,1);return{from:i?t.posAfter(i):t.posAtStart,to:n?t.posBefore(n):t.posAtEnd,typeOver:!1}}return"characterData"==e.type?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,t,i;this.stop(),null===(e=this.intersection)||void 0===e||e.disconnect(),null===(t=this.gapIntersection)||void 0===t||t.disconnect(),null===(i=this.resize)||void 0===i||i.disconnect();for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout)}}function _w(e,t,i){for(;t;){let n=Sv.get(t);if(n&&n.parent==e)return n;let r=t.parentNode;t=r!=e.dom?r:i>0?t.nextSibling:t.previousSibling}return null}function Tw(e,t,i,n){let r,o,s=e.state.selection.main;if(t>-1){let n=e.docView.domBoundsAround(t,i,0);if(!n||e.state.readOnly)return!1;let{from:l,to:a}=n,c=e.docView.impreciseHead||e.docView.impreciseAnchor?[]:function(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:i,anchorOffset:n,focusNode:r,focusOffset:o}=e.observer.selectionRange;i&&(t.push(new eb(i,n)),r==i&&o==n||t.push(new eb(r,o)));return t}(e),h=new Ky(c,e.state);h.readRange(n.startDOM,n.endDOM);let u=s.from,d=null;(8===e.inputState.lastKeyCode&&e.inputState.lastKeyTime>Date.now()-100||Vv.android&&h.text.length<a-l)&&(u=s.to,d="end");let f=function(e,t,i,n){let r=Math.min(e.length,t.length),o=0;for(;o<r&&e.charCodeAt(o)==t.charCodeAt(o);)o++;if(o==r&&e.length==t.length)return null;let s=e.length,l=t.length;for(;s>0&&l>0&&e.charCodeAt(s-1)==t.charCodeAt(l-1);)s--,l--;if("end"==n){i-=s+Math.max(0,o-Math.min(s,l))-o}if(s<o&&e.length<t.length){o-=i<=o&&i>=s?o-i:0,l=o+(l-s),s=o}else if(l<o){o-=i<=o&&i>=l?o-i:0,s=o+(s-l),l=o}return{from:o,toA:s,toB:l}}(e.state.doc.sliceString(l,a,Yy),h.text,u-l,d);f&&(Vv.chrome&&13==e.inputState.lastKeyCode&&f.toB==f.from+2&&""==h.text.slice(f.from,f.toB)&&f.toB--,r={from:l+f.from,to:l+f.toA,insert:eg.of(h.text.slice(f.from,f.toB).split(Yy))}),o=function(e,t){if(0==e.length)return null;let i=e[0].pos,n=2==e.length?e[1].pos:i;return i>-1&&n>-1?Cg.single(i+t,n+t):null}(c,l)}else if(e.hasFocus||!e.state.facet(Sy)){let t=e.observer.selectionRange,{impreciseHead:i,impreciseAnchor:n}=e.docView,r=i&&i.node==t.focusNode&&i.offset==t.focusOffset||!rv(e.contentDOM,t.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(t.focusNode,t.focusOffset),l=n&&n.node==t.anchorNode&&n.offset==t.anchorOffset||!rv(e.contentDOM,t.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(t.anchorNode,t.anchorOffset);r==s.head&&l==s.anchor||(o=Cg.single(l,r))}if(!r&&!o)return!1;if(!r&&n&&!s.empty&&o&&o.main.empty?r={from:s.from,to:s.to,insert:e.state.doc.slice(s.from,s.to)}:r&&r.from>=s.from&&r.to<=s.to&&(r.from!=s.from||r.to!=s.to)&&s.to-s.from-(r.to-r.from)<=4?r={from:s.from,to:s.to,insert:e.state.doc.slice(s.from,r.from).append(r.insert).append(e.state.doc.slice(r.to,s.to))}:(Vv.mac||Vv.android)&&r&&r.from==r.to&&r.from==s.head-1&&"."==r.insert.toString()&&(r={from:s.from,to:s.to,insert:eg.of([" "])}),r){let t=e.state;if(Vv.ios&&e.inputState.flushIOSKey(e))return!0;if(Vv.android&&(r.from==s.from&&r.to==s.to&&1==r.insert.length&&2==r.insert.lines&&yv(e.contentDOM,"Enter",13)||r.from==s.from-1&&r.to==s.to&&0==r.insert.length&&yv(e.contentDOM,"Backspace",8)||r.from==s.from&&r.to==s.to+1&&0==r.insert.length&&yv(e.contentDOM,"Delete",46)))return!0;let i,n=r.insert.toString();if(e.state.facet(vy).some((t=>t(e,r.from,r.to,n))))return!0;if(e.inputState.composing>=0&&e.inputState.composing++,r.from>=s.from&&r.to<=s.to&&r.to-r.from>=(s.to-s.from)/3&&(!o||o.main.empty&&o.main.from==r.from+r.insert.length)&&e.inputState.composing<0){let n=s.from<r.from?t.sliceDoc(s.from,r.from):"",o=s.to>r.to?t.sliceDoc(r.to,s.to):"";i=t.replaceSelection(e.state.toText(n+r.insert.sliceString(0,void 0,e.state.lineBreak)+o))}else{let n=t.changes(r),l=o&&!t.selection.main.eq(o.main)&&o.main.to<=n.newLength?o.main:void 0;if(t.selection.ranges.length>1&&e.inputState.composing>=0&&r.to<=s.to&&r.to>=s.to-10){let o=e.state.sliceDoc(r.from,r.to),a=nb(e)||e.state.doc.lineAt(s.head),c=s.to-r.to,h=s.to-s.from;i=t.changeByRange((i=>{if(i.from==s.from&&i.to==s.to)return{changes:n,range:l||i.map(n)};let u=i.to-c,d=u-o.length;if(i.to-i.from!=h||e.state.sliceDoc(d,u)!=o||a&&i.to>=a.from&&i.from<=a.to)return{range:i};let f=t.changes({from:d,to:u,insert:r.insert}),p=i.to-s.to;return{changes:f,range:l?Cg.range(Math.max(0,l.anchor+p),Math.max(0,l.head+p)):i.map(f)}}))}else i={changes:n,selection:l&&t.selection.replaceRange(l)}}let l="input.type";return e.composing&&(l+=".compose",e.inputState.compositionFirstChange&&(l+=".start",e.inputState.compositionFirstChange=!1)),e.dispatch(i,{scrollIntoView:!0,userEvent:l}),!0}if(o&&!o.main.eq(s)){let t=!1,i="select";return e.inputState.lastSelectionTime>Date.now()-50&&("select"==e.inputState.lastSelectionOrigin&&(t=!0),i=e.inputState.lastSelectionOrigin),e.dispatch({selection:o,scrollIntoView:t,userEvent:i}),!0}return!1}class Qw{constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: absolute; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),this._dispatch=e.dispatch||(e=>this.update([e])),this.dispatch=this.dispatch.bind(this),this._root=e.root||function(e){for(;e;){if(e&&(9==e.nodeType||11==e.nodeType&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}(e.parent)||document,this.viewState=new ow(e.state||xO.create(e)),this.plugins=this.state.facet($y).map((e=>new Ty(e)));for(let e of this.plugins)e.update(this);this.observer=new $w(this,((e,t,i)=>Tw(this,e,t,i)),(e=>{this.inputState.runScrollHandlers(this,e),this.observer.intersecting&&this.measure()})),this.inputState=new vb(this),this.inputState.ensureHandlers(this,this.plugins),this.docView=new tb(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),e.parent&&e.parent.appendChild(this.dom)}get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}dispatch(...e){this._dispatch(1==e.length&&e[0]instanceof uO?e[0]:this.state.update(...e))}update(e){if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t,i=!1,n=!1,r=this.state;for(let t of e){if(t.startState!=r)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");r=t.state}if(this.destroyed)return void(this.viewState.state=r);if(this.observer.clear(),r.facet(xO.phrases)!=this.state.facet(xO.phrases))return this.setState(r);t=Dy.create(this,r,e);let o=this.viewState.scrollTarget;try{this.updateState=2;for(let t of e){if(o&&(o=o.map(t.changes)),t.scrollIntoView){let{main:e}=t.state.selection;o=new by(e.empty?e:Cg.cursor(e.head,e.head>e.anchor?-1:1))}for(let e of t.effects)e.is(wy)&&(o=e.value)}this.viewState.update(t,o),this.bidiCache=Cw.update(this.bidiCache,t.changes),t.empty||(this.updatePlugins(t),this.inputState.update(t)),i=this.docView.update(t),this.state.facet(Ey)!=this.styleModules&&this.mountStyles(),n=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(i,e.some((e=>e.isUserEvent("select.pointer"))))}finally{this.updateState=0}if(t.startState.facet(mw)!=t.state.facet(mw)&&(this.viewState.mustMeasureContent=!0),(i||n||o||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!t.empty)for(let e of this.state.facet(Oy))e(t)}setState(e){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)return void(this.viewState.state=e);this.updateState=2;let t=this.hasFocus;try{for(let e of this.plugins)e.destroy(this);this.viewState=new ow(e),this.plugins=e.facet($y).map((e=>new Ty(e))),this.pluginMap.clear();for(let e of this.plugins)e.update(this);this.docView=new tb(this),this.inputState.ensureHandlers(this,this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet($y),i=e.state.facet($y);if(t!=i){let n=[];for(let r of i){let i=t.indexOf(r);if(i<0)n.push(new Ty(r));else{let t=this.plugins[i];t.mustUpdate=e,n.push(t)}}for(let t of this.plugins)t.mustUpdate!=e&&t.destroy(this);this.plugins=n,this.pluginMap.clear(),this.inputState.ensureHandlers(this,this.plugins)}else for(let t of this.plugins)t.mustUpdate=e;for(let e=0;e<this.plugins.length;e++)this.plugins[e].update(this)}measure(e=!0){if(this.destroyed)return;this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,{scrollHeight:i,scrollTop:n,clientHeight:r}=this.scrollDOM,o=n>i-r-4?i:n;try{for(let e=0;;e++){this.updateState=1;let i=this.viewport,n=this.viewState.lineBlockAtHeight(o),r=this.viewState.measure(this);if(!r&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(e>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let s=[];4&r||([this.measureRequests,s]=[s,this.measureRequests]);let l=s.map((e=>{try{return e.read(this)}catch(e){return xy(this.state,e),Aw}})),a=Dy.create(this,this.state,[]),c=!1,h=!1;a.flags|=r,t?t.flags|=r:t=a,this.updateState=2,a.empty||(this.updatePlugins(a),this.inputState.update(a),this.updateAttrs(),c=this.docView.update(a));for(let e=0;e<s.length;e++)if(l[e]!=Aw)try{let t=s[e];t.write&&t.write(l[e],this)}catch(e){xy(this.state,e)}if(this.viewState.scrollTarget)this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,h=!0;else{let e=this.viewState.lineBlockAt(n.from).top-n.top;(e>1||e<-1)&&(this.scrollDOM.scrollTop+=e,h=!0)}if(c&&this.docView.updateSelection(!0),this.viewport.from==i.from&&this.viewport.to==i.to&&!h&&0==this.measureRequests.length)break}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let e of this.state.facet(Oy))e(t)}get themeClasses(){return Ow+" "+(this.state.facet(gw)?yw:vw)+" "+this.state.facet(mw)}updateAttrs(){let e=Rw(this,Qy,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Sy)?"true":"false",class:"cm-content",style:`${Vv.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),Rw(this,Py,t);let i=this.observer.ignore((()=>{let i=Jv(this.contentDOM,this.contentAttrs,t),n=Jv(this.dom,this.editorAttrs,e);return i||n}));return this.editorAttrs=e,this.contentAttrs=t,i}showAnnouncements(e){let t=!0;for(let i of e)for(let e of i.effects)if(e.is(Qw.announce)){t&&(this.announceDOM.textContent=""),t=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=e.value}}mountStyles(){this.styleModules=this.state.facet(Ey),XO.mount(this.root,this.styleModules.concat(xw).reverse())}readMeasured(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=requestAnimationFrame((()=>this.measure()))),e){if(null!=e.key)for(let t=0;t<this.measureRequests.length;t++)if(this.measureRequests[t].key===e.key)return void(this.measureRequests[t]=e);this.measureRequests.push(e)}}plugin(e){let t=this.pluginMap.get(e);return(void 0===t||t&&t.spec!=e)&&this.pluginMap.set(e,t=this.plugins.find((t=>t.spec==e))||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,i){return Ob(this,e,gb(this,e,t,i))}moveByGroup(e,t){return Ob(this,e,gb(this,e,t,(t=>function(e,t,i){let n=e.state.charCategorizer(t),r=n(i);return e=>{let t=n(e);return r==vO.Space&&(r=t),r==t}}(this,e.head,t))))}moveToLineBoundary(e,t,i=!0){return function(e,t,i,n){let r=e.state.doc.lineAt(t.head),o=n&&e.lineWrapping?e.coordsAtPos(t.assoc<0&&t.head>r.from?t.head-1:t.head):null;if(o){let t=e.dom.getBoundingClientRect(),n=e.textDirectionAt(r.from),s=e.posAtCoords({x:i==(n==qy.LTR)?t.right-1:t.left+1,y:(o.top+o.bottom)/2});if(null!=s)return Cg.cursor(s,i?-1:1)}let s=ay.find(e.docView,t.head),l=s?i?s.posAtEnd:s.posAtStart:i?r.to:r.from;return Cg.cursor(l,i?-1:1)}(this,e,t,i)}moveVertically(e,t,i){return Ob(this,e,function(e,t,i,n){let r=t.head,o=i?1:-1;if(r==(i?e.state.doc.length:0))return Cg.cursor(r,t.assoc);let s,l=t.goalColumn,a=e.contentDOM.getBoundingClientRect(),c=e.coordsAtPos(r),h=e.documentTop;if(c)null==l&&(l=c.left-a.left),s=o<0?c.top:c.bottom;else{let t=e.viewState.lineBlockAt(r);null==l&&(l=Math.min(a.right-a.left,e.defaultCharacterWidth*(r-t.from))),s=(o<0?t.top:t.bottom)+h}let u=a.left+l,d=null!=n?n:e.defaultLineHeight>>1;for(let i=0;;i+=10){let n=s+(d+i)*o,c=pb(e,{x:u,y:n},!1,o);if(n<a.top||n>a.bottom||(o<0?c<r:c>r))return Cg.cursor(c,t.assoc,void 0,l)}}(this,e,t,i))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){return this.readMeasured(),pb(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let i=this.docView.coordsAt(e,t);if(!i||i.left==i.right)return i;let n=this.state.doc.lineAt(e),r=this.bidiSpans(n);return dv(i,r[Xy.find(r,e-n.from,-1,t)].dir==qy.LTR==t>0)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(yy)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>Pw)return Hy(e.length);let t=this.textDirectionAt(e.from);for(let i of this.bidiCache)if(i.from==e.from&&i.dir==t)return i.order;let i=Fy(e.text,t);return this.bidiCache.push(new Cw(e.from,e.to,t,i)),i}get hasFocus(){var e;return(document.hasFocus()||Vv.safari&&(null===(e=this.inputState)||void 0===e?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore((()=>{Ov(this.contentDOM),this.docView.updateSelection()}))}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((9==e.nodeType?e:e.ownerDocument).defaultView),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return wy.of(new by("number"==typeof e?Cg.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}static domEventHandlers(e){return _y.define((()=>({})),{eventHandlers:e})}static theme(e,t){let i=XO.newName(),n=[mw.of(i),Ey.of(ww(`.${i}`,e))];return t&&t.dark&&n.push(gw.of(!0)),n}static baseTheme(e){return Fg.lowest(Ey.of(ww("."+Ow,e,bw)))}static findFromDOM(e){var t;let i=e.querySelector(".cm-content"),n=i&&Sv.get(i)||Sv.get(e);return(null===(t=null==n?void 0:n.rootView)||void 0===t?void 0:t.view)||null}}Qw.styleModule=Ey,Qw.inputHandler=vy,Qw.perLineTextDirection=yy,Qw.exceptionSink=gy,Qw.updateListener=Oy,Qw.editable=Sy,Qw.mouseSelectionStyle=my,Qw.dragMovesSelection=py,Qw.clickAddsSelectionRange=fy,Qw.decorations=Ay,Qw.atomicRanges=Cy,Qw.scrollMargins=Ry,Qw.darkTheme=gw,Qw.contentAttributes=Py,Qw.editorAttributes=Qy,Qw.lineWrapping=Qw.contentAttributes.of({class:"cm-lineWrapping"}),Qw.announce=hO.define();const Pw=4096,Aw={};class Cw{constructor(e,t,i,n){this.from=e,this.to=t,this.dir=i,this.order=n}static update(e,t){if(t.empty)return e;let i=[],n=e.length?e[e.length-1].dir:qy.LTR;for(let r=Math.max(0,e.length-10);r<e.length;r++){let o=e[r];o.dir!=n||t.touchesRange(o.from,o.to)||i.push(new Cw(t.mapPos(o.from,1),t.mapPos(o.to,-1),o.dir,o.order))}return i}}function Rw(e,t,i){for(let n=e.state.facet(t),r=n.length-1;r>=0;r--){let t=n[r],o="function"==typeof t?t(e):t;o&&Yv(o,i)}return i}const Ew=Vv.mac?"mac":Vv.windows?"win":Vv.linux?"linux":"key";function Mw(e,t,i){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==i&&t.shiftKey&&(e="Shift-"+e),e}const Dw=Fg.default(Qw.domEventHandlers({keydown:(e,t)=>Ww(jw(t.state),e,t,"editor")})),qw=Mg.define({enables:Dw}),Nw=new WeakMap;function jw(e){let t=e.facet(qw),i=Nw.get(t);return i||Nw.set(t,i=function(e,t=Ew){let i=Object.create(null),n=Object.create(null),r=(e,t)=>{let i=n[e];if(null==i)n[e]=t;else if(i!=t)throw new Error("Key binding "+e+" is used both as a regular binding and as a multi-stroke prefix")},o=(e,n,o,s)=>{let l=i[e]||(i[e]=Object.create(null)),a=n.split(/ (?!$)/).map((e=>function(e,t){const i=e.split(/-(?!$)/);let n,r,o,s,l=i[i.length-1];"Space"==l&&(l=" ");for(let e=0;e<i.length-1;++e){const l=i[e];if(/^(cmd|meta|m)$/i.test(l))s=!0;else if(/^a(lt)?$/i.test(l))n=!0;else if(/^(c|ctrl|control)$/i.test(l))r=!0;else if(/^s(hift)?$/i.test(l))o=!0;else{if(!/^mod$/i.test(l))throw new Error("Unrecognized modifier name: "+l);"mac"==t?s=!0:r=!0}}return n&&(l="Alt-"+l),r&&(l="Ctrl-"+l),s&&(l="Meta-"+l),o&&(l="Shift-"+l),l}(e,t)));for(let t=1;t<a.length;t++){let i=a.slice(0,t).join(" ");r(i,!0),l[i]||(l[i]={preventDefault:!0,commands:[t=>{let n=Vw={view:t,prefix:i,scope:e};return setTimeout((()=>{Vw==n&&(Vw=null)}),4e3),!0}]})}let c=a.join(" ");r(c,!1);let h=l[c]||(l[c]={preventDefault:!1,commands:[]});h.commands.push(o),s&&(h.preventDefault=!0)};for(let i of e){let e=i[t]||i.key;if(e)for(let t of i.scope?i.scope.split(" "):["editor"])o(t,e,i.run,i.preventDefault),i.shift&&o(t,"Shift-"+e,i.shift,i.preventDefault)}return i}(t.reduce(((e,t)=>e.concat(t)),[]))),i}let Vw=null;function Ww(e,t,i,n){let r=iv(t),o=Og(r,0),s=yg(o)==r.length&&" "!=r,l="",a=!1;Vw&&Vw.view==i&&Vw.scope==n&&(l=Vw.prefix+" ",(a=bb.indexOf(t.keyCode)<0)&&(Vw=null));let c,h=e=>{if(e){for(let t of e.commands)if(t(i))return!0;e.preventDefault&&(a=!0)}return!1},u=e[n];if(u){if(h(u[l+Mw(r,t,!s)]))return!0;if(s&&(t.shiftKey||t.altKey||t.metaKey||o>127)&&(c=HO[t.keyCode])&&c!=r){if(h(u[l+Mw(c,t,!0)]))return!0;if(t.shiftKey&&ZO[t.keyCode]!=c&&h(u[l+Mw(ZO[t.keyCode],t,!1)]))return!0}else if(s&&t.shiftKey&&h(u[l+Mw(r,t,!0)]))return!0}return a}const zw=!Vv.ios,Lw=Mg.define({combine:e=>SO(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})});function Bw(e={}){return[Lw.of(e),Xw,Fw]}class Iw{constructor(e,t,i,n,r){this.left=e,this.top=t,this.width=i,this.height=n,this.className=r}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width>=0&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}}const Xw=_y.fromClass(class{constructor(e){this.view=e,this.rangePieces=[],this.cursors=[],this.measureReq={read:this.readPos.bind(this),write:this.drawSel.bind(this)},this.selectionLayer=e.scrollDOM.appendChild(document.createElement("div")),this.selectionLayer.className="cm-selectionLayer",this.selectionLayer.setAttribute("aria-hidden","true"),this.cursorLayer=e.scrollDOM.appendChild(document.createElement("div")),this.cursorLayer.className="cm-cursorLayer",this.cursorLayer.setAttribute("aria-hidden","true"),e.requestMeasure(this.measureReq),this.setBlinkRate()}setBlinkRate(){this.cursorLayer.style.animationDuration=this.view.state.facet(Lw).cursorBlinkRate+"ms"}update(e){let t=e.startState.facet(Lw)!=e.state.facet(Lw);(t||e.selectionSet||e.geometryChanged||e.viewportChanged)&&this.view.requestMeasure(this.measureReq),e.transactions.some((e=>e.scrollIntoView))&&(this.cursorLayer.style.animationName="cm-blink"==this.cursorLayer.style.animationName?"cm-blink2":"cm-blink"),t&&this.setBlinkRate()}readPos(){let{state:e}=this.view,t=e.facet(Lw),i=e.selection.ranges.map((e=>e.empty?[]:function(e,t){if(t.to<=e.viewport.from||t.from>=e.viewport.to)return[];let i=Math.max(t.from,e.viewport.from),n=Math.min(t.to,e.viewport.to),r=e.textDirection==qy.LTR,o=e.contentDOM,s=o.getBoundingClientRect(),l=Hw(e),a=window.getComputedStyle(o.firstChild),c=s.left+parseInt(a.paddingLeft)+Math.min(0,parseInt(a.textIndent)),h=s.right-parseInt(a.paddingRight),u=Gw(e,i),d=Gw(e,n),f=u.type==ty.Text?u:null,p=d.type==ty.Text?d:null;e.lineWrapping&&(f&&(f=Zw(e,i,f)),p&&(p=Zw(e,n,p)));if(f&&p&&f.from==p.from)return g(O(t.from,t.to,f));{let i=f?O(t.from,null,f):v(u,!1),n=p?O(null,t.to,p):v(d,!0),r=[];return(f||u).to<(p||d).from-1?r.push(m(c,i.bottom,h,n.top)):i.bottom<n.top&&e.elementAtHeight((i.bottom+n.top)/2).type==ty.Text&&(i.bottom=n.top=(i.bottom+n.top)/2),g(i).concat(r).concat(g(n))}function m(e,t,i,n){return new Iw(e-l.left,t-l.top-.01,i-e,n-t+.01,"cm-selectionBackground")}function g({top:e,bottom:t,horizontal:i}){let n=[];for(let r=0;r<i.length;r+=2)n.push(m(i[r],e,i[r+1],t));return n}function O(t,i,n){let o=1e9,s=-1e9,l=[];function a(t,i,a,u,d){let f=e.coordsAtPos(t,t==n.to?-2:2),p=e.coordsAtPos(a,a==n.from?2:-2);o=Math.min(f.top,p.top,o),s=Math.max(f.bottom,p.bottom,s),d==qy.LTR?l.push(r&&i?c:f.left,r&&u?h:p.right):l.push(!r&&u?c:p.left,!r&&i?h:f.right)}let u=null!=t?t:n.from,d=null!=i?i:n.to;for(let n of e.visibleRanges)if(n.to>u&&n.from<d)for(let r=Math.max(n.from,u),o=Math.min(n.to,d);;){let n=e.state.doc.lineAt(r);for(let s of e.bidiSpans(n)){let e=s.from+n.from,l=s.to+n.from;if(e>=o)break;l>r&&a(Math.max(e,r),null==t&&e<=u,Math.min(l,o),null==i&&l>=d,s.dir)}if(r=n.to+1,r>=o)break}return 0==l.length&&a(u,null==t,d,null==i,e.textDirection),{top:o,bottom:s,horizontal:l}}function v(e,t){let i=s.top+(t?e.top:e.bottom);return{top:i,bottom:i,horizontal:[]}}}(this.view,e))).reduce(((e,t)=>e.concat(t))),n=[];for(let i of e.selection.ranges){let r=i==e.selection.main;if(i.empty?!r||zw:t.drawRangeCursor){let e=Yw(this.view,i,r);e&&n.push(e)}}return{rangePieces:i,cursors:n}}drawSel({rangePieces:e,cursors:t}){if(e.length!=this.rangePieces.length||e.some(((e,t)=>!e.eq(this.rangePieces[t])))){this.selectionLayer.textContent="";for(let t of e)this.selectionLayer.appendChild(t.draw());this.rangePieces=e}if(t.length!=this.cursors.length||t.some(((e,t)=>!e.eq(this.cursors[t])))){let e=this.cursorLayer.children;if(e.length!==t.length){this.cursorLayer.textContent="";for(const e of t)this.cursorLayer.appendChild(e.draw())}else t.forEach(((t,i)=>t.adjust(e[i])));this.cursors=t}}destroy(){this.selectionLayer.remove(),this.cursorLayer.remove()}}),Uw={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};zw&&(Uw[".cm-line"].caretColor="transparent !important");const Fw=Fg.highest(Qw.theme(Uw));function Hw(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==qy.LTR?t.left:t.right-e.scrollDOM.clientWidth)-e.scrollDOM.scrollLeft,top:t.top-e.scrollDOM.scrollTop}}function Zw(e,t,i){let n=Cg.cursor(t);return{from:Math.max(i.from,e.moveToLineBoundary(n,!1,!0).from),to:Math.min(i.to,e.moveToLineBoundary(n,!0,!0).from),type:ty.Text}}function Gw(e,t){let i=e.lineBlockAt(t);if(Array.isArray(i.type))for(let e of i.type)if(e.to>t||e.to==t&&(e.to==i.to||e.type==ty.Text))return e;return i}function Yw(e,t,i){let n=e.coordsAtPos(t.head,t.assoc||1);if(!n)return null;let r=Hw(e);return new Iw(n.left-r.left,n.top-r.top,-1,n.bottom-n.top,i?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary")}const Kw=hO.define({map:(e,t)=>null==e?null:t.mapPos(e)}),Jw=zg.define({create:()=>null,update:(e,t)=>(null!=e&&(e=t.changes.mapPos(e)),t.effects.reduce(((e,t)=>t.is(Kw)?t.value:e),e))}),ex=_y.fromClass(class{constructor(e){this.view=e,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(e){var t;let i=e.state.field(Jw);null==i?null!=this.cursor&&(null===(t=this.cursor)||void 0===t||t.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(e.startState.field(Jw)!=i||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let e=this.view.state.field(Jw),t=null!=e&&this.view.coordsAtPos(e);if(!t)return null;let i=this.view.scrollDOM.getBoundingClientRect();return{left:t.left-i.left+this.view.scrollDOM.scrollLeft,top:t.top-i.top+this.view.scrollDOM.scrollTop,height:t.bottom-t.top}}drawCursor(e){this.cursor&&(e?(this.cursor.style.left=e.left+"px",this.cursor.style.top=e.top+"px",this.cursor.style.height=e.height+"px"):this.cursor.style.left="-100000px")}destroy(){this.cursor&&this.cursor.remove()}setDropPos(e){this.view.state.field(Jw)!=e&&this.view.dispatch({effects:Kw.of(e)})}},{eventHandlers:{dragover(e){this.setDropPos(this.view.posAtCoords({x:e.clientX,y:e.clientY}))},dragleave(e){e.target!=this.view.contentDOM&&this.view.contentDOM.contains(e.relatedTarget)||this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function tx(e,t,i,n,r){t.lastIndex=0;for(let o,s=e.iterRange(i,n),l=i;!s.next().done;l+=s.value.length)if(!s.lineBreak)for(;o=t.exec(s.value);)r(l+o.index,o)}class ix{constructor(e){const{regexp:t,decoration:i,decorate:n,boundary:r,maxLength:o=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,n)this.addMatch=(e,t,i,r)=>n(r,i,i+e[0].length,e,t);else{if(!i)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");{let e="function"==typeof i?i:()=>i;this.addMatch=(t,i,n,r)=>r(n,n+t[0].length,e(t,i,n))}}this.boundary=r,this.maxLength=o}createDeco(e){let t=new PO,i=t.add.bind(t);for(let{from:t,to:n}of function(e,t){let i=e.visibleRanges;if(1==i.length&&i[0].from==e.viewport.from&&i[0].to==e.viewport.to)return i;let n=[];for(let{from:r,to:o}of i)r=Math.max(e.state.doc.lineAt(r).from,r-t),o=Math.min(e.state.doc.lineAt(o).to,o+t),n.length&&n[n.length-1].to>=r?n[n.length-1].to=o:n.push({from:r,to:o});return n}(e,this.maxLength))tx(e.state.doc,this.regexp,t,n,((t,n)=>this.addMatch(n,e,t,i)));return t.finish()}updateDeco(e,t){let i=1e9,n=-1;return e.docChanged&&e.changes.iterChanges(((t,r,o,s)=>{s>e.view.viewport.from&&o<e.view.viewport.to&&(i=Math.min(o,i),n=Math.max(s,n))})),e.viewportChanged||n-i>1e3?this.createDeco(e.view):n>-1?this.updateRange(e.view,t.map(e.changes),i,n):t}updateRange(e,t,i,n){for(let r of e.visibleRanges){let o=Math.max(r.from,i),s=Math.min(r.to,n);if(s>o){let i=e.state.doc.lineAt(o),n=i.to<s?e.state.doc.lineAt(s):i,l=Math.max(r.from,i.from),a=Math.min(r.to,n.to);if(this.boundary){for(;o>i.from;o--)if(this.boundary.test(i.text[o-1-i.from])){l=o;break}for(;s<n.to;s++)if(this.boundary.test(n.text[s-n.from])){a=s;break}}let c,h=[],u=(e,t,i)=>h.push(i.range(e,t));if(i==n)for(this.regexp.lastIndex=l-i.from;(c=this.regexp.exec(i.text))&&c.index<a-i.from;)this.addMatch(c,e,c.index+i.from,u);else tx(e.state.doc,this.regexp,l,a,((t,i)=>this.addMatch(i,e,t,u)));t=t.update({filterFrom:l,filterTo:a,filter:(e,t)=>e<l||t>a,add:h})}}return t}}const nx=null!=/x/.unicode?"gu":"g",rx=new RegExp("[\0-\b\n--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\ufeff-]",nx),ox={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let sx=null;const lx=Mg.define({combine(e){let t=SO(e,{render:null,specialChars:rx,addSpecialChars:null});return(t.replaceTabs=!function(){var e;if(null==sx&&"undefined"!=typeof document&&document.body){let t=document.body.style;sx=null!=(null!==(e=t.tabSize)&&void 0!==e?e:t.MozTabSize)}return sx||!1}())&&(t.specialChars=new RegExp("\t|"+t.specialChars.source,nx)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,nx)),t}});function ax(e={}){return[lx.of(e),cx||(cx=_y.fromClass(class{constructor(e){this.view=e,this.decorations=iy.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(lx)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new ix({regexp:e.specialChars,decoration:(t,i,n)=>{let{doc:r}=i.state,o=Og(t[0],0);if(9==o){let e=r.lineAt(n),t=i.state.tabSize,o=WO(e.text,t,n-e.from);return iy.replace({widget:new ux((t-o%t)*this.view.defaultCharacterWidth)})}return this.decorationCache[o]||(this.decorationCache[o]=iy.replace({widget:new hx(e,o)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(lx);e.startState.facet(lx)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))]}let cx=null;class hx extends ey{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=function(e){return e>=32?"•":10==e?"␤":String.fromCharCode(9216+e)}(this.code),i=e.state.phrase("Control character")+" "+(ox[this.code]||"0x"+this.code.toString(16)),n=this.options.render&&this.options.render(this.code,i,t);if(n)return n;let r=document.createElement("span");return r.textContent=t,r.title=i,r.setAttribute("aria-label",i),r.className="cm-specialChar",r}ignoreEvent(){return!1}}class ux extends ey{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent="\t",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}const dx=iy.line({class:"cm-activeLine"}),fx=_y.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.docChanged||e.selectionSet)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=-1,i=[];for(let n of e.state.selection.ranges){if(!n.empty)return iy.none;let r=e.lineBlockAt(n.head);r.from>t&&(i.push(dx.range(r.from)),t=r.from)}return iy.set(i)}},{decorations:e=>e.decorations});const px=2e3;function mx(e,t){let i=e.posAtCoords({x:t.clientX,y:t.clientY},!1),n=e.state.doc.lineAt(i),r=i-n.from,o=r>px?-1:r==n.length?function(e,t){let i=e.coordsAtPos(e.viewport.from);return i?Math.round(Math.abs((i.left-t)/e.defaultCharacterWidth)):-1}(e,t.clientX):WO(n.text,e.state.tabSize,i-n.from);return{line:n.number,col:o,off:r}}function gx(e,t){let i=mx(e,t),n=e.state.selection;return i?{update(e){if(e.docChanged){let t=e.changes.mapPos(e.startState.doc.line(i.line).from),r=e.state.doc.lineAt(t);i={line:r.number,col:i.col,off:Math.min(i.off,r.length)},n=n.map(e.changes)}},get(t,r,o){let s=mx(e,t);if(!s)return n;let l=function(e,t,i){let n=Math.min(t.line,i.line),r=Math.max(t.line,i.line),o=[];if(t.off>px||i.off>px||t.col<0||i.col<0){let s=Math.min(t.off,i.off),l=Math.max(t.off,i.off);for(let t=n;t<=r;t++){let i=e.doc.line(t);i.length<=l&&o.push(Cg.range(i.from+s,i.to+l))}}else{let s=Math.min(t.col,i.col),l=Math.max(t.col,i.col);for(let t=n;t<=r;t++){let i=e.doc.line(t),n=zO(i.text,s,e.tabSize,!0);if(n>-1){let t=zO(i.text,l,e.tabSize);o.push(Cg.range(i.from+n,i.from+t))}}}return o}(e.state,i,s);return l.length?o?Cg.create(l.concat(n.ranges)):Cg.create(l):n}}:null}function Ox(e){let t=(null==e?void 0:e.eventFilter)||(e=>e.altKey&&0==e.button);return Qw.mouseSelectionStyle.of(((e,i)=>t(i)?gx(e,i):null))}const vx={Alt:[18,e=>e.altKey],Control:[17,e=>e.ctrlKey],Shift:[16,e=>e.shiftKey],Meta:[91,e=>e.metaKey]},yx={style:"cursor: crosshair"};function bx(e={}){let[t,i]=vx[e.key||"Alt"],n=_y.fromClass(class{constructor(e){this.view=e,this.isDown=!1}set(e){this.isDown!=e&&(this.isDown=e,this.view.update([]))}},{eventHandlers:{keydown(e){this.set(e.keyCode==t||i(e))},keyup(e){e.keyCode!=t&&i(e)||this.set(!1)}}});return[n,Qw.contentAttributes.of((e=>{var t;return(null===(t=e.plugin(n))||void 0===t?void 0:t.isDown)?yx:null}))]}class wx extends kO{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}wx.prototype.elementClass="",wx.prototype.toDOM=void 0,wx.prototype.mapMode=wg.TrackBefore,wx.prototype.startSide=wx.prototype.endSide=-1,wx.prototype.point=!0;const xx=Mg.define(),Sx=Mg.define();const kx=Mg.define({combine:e=>e.some((e=>e))});function $x(e){let t=[_x];return e&&!1===e.fixed&&t.push(kx.of(!0)),t}const _x=_y.fromClass(class{constructor(e){this.view=e,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight+"px",this.gutters=e.state.facet(Sx).map((t=>new Ax(e,t)));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!e.state.facet(kx),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}update(e){if(this.updateGutters(e)){let t=this.prevViewport,i=e.view.viewport,n=Math.min(t.to,i.to)-Math.max(t.from,i.from);this.syncGutters(n<.8*(i.to-i.from))}e.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(kx)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&this.dom.remove();let i=QO.iter(this.view.state.facet(xx),this.view.viewport.from),n=[],r=this.gutters.map((e=>new Px(e,this.view.viewport,-this.view.documentPadding.top)));for(let e of this.view.viewportLineBlocks){let t;if(Array.isArray(e.type)){for(let i of e.type)if(i.type==ty.Text){t=i;break}}else t=e.type==ty.Text?e:void 0;if(t){n.length&&(n=[]),Qx(i,n,e.from);for(let e of r)e.line(this.view,t,n)}}for(let e of r)e.finish();e&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(e){let t=e.startState.facet(Sx),i=e.state.facet(Sx),n=e.docChanged||e.heightChanged||e.viewportChanged||!QO.eq(e.startState.facet(xx),e.state.facet(xx),e.view.viewport.from,e.view.viewport.to);if(t==i)for(let t of this.gutters)t.update(e)&&(n=!0);else{n=!0;let r=[];for(let n of i){let i=t.indexOf(n);i<0?r.push(new Ax(this.view,n)):(this.gutters[i].update(e),r.push(this.gutters[i]))}for(let e of this.gutters)e.dom.remove(),r.indexOf(e)<0&&e.destroy();for(let e of r)this.dom.appendChild(e.dom);this.gutters=r}return n}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>Qw.scrollMargins.of((t=>{let i=t.plugin(e);return i&&0!=i.gutters.length&&i.fixed?t.textDirection==qy.LTR?{left:i.dom.offsetWidth}:{right:i.dom.offsetWidth}:null}))});function Tx(e){return Array.isArray(e)?e:[e]}function Qx(e,t,i){for(;e.value&&e.from<=i;)e.from==i&&t.push(e.value),e.next()}class Px{constructor(e,t,i){this.gutter=e,this.height=i,this.localMarkers=[],this.i=0,this.cursor=QO.iter(e.markers,t.from)}line(e,t,i){this.localMarkers.length&&(this.localMarkers=[]),Qx(this.cursor,this.localMarkers,t.from);let n=i.length?this.localMarkers.concat(i):this.localMarkers,r=this.gutter.config.lineMarker(e,t,n);r&&n.unshift(r);let o=this.gutter;if(0==n.length&&!o.config.renderEmptyElements)return;let s=t.top-this.height;if(this.i==o.elements.length){let i=new Cx(e,t.height,s,n);o.elements.push(i),o.dom.appendChild(i.dom)}else o.elements[this.i].update(e,t.height,s,n);this.height=t.bottom,this.i++}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class Ax{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let i in t.domEventHandlers)this.dom.addEventListener(i,(n=>{let r=e.lineBlockAtHeight(n.clientY-e.documentTop);t.domEventHandlers[i](e,r,n)&&n.preventDefault()}));this.markers=Tx(t.markers(e)),t.initialSpacer&&(this.spacer=new Cx(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=Tx(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let t=this.config.updateSpacer(this.spacer.markers[0],e);t!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[t])}let i=e.view.viewport;return!QO.eq(this.markers,t,i.from,i.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(e)}destroy(){for(let e of this.elements)e.destroy()}}class Cx{constructor(e,t,i,n){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,i,n)}update(e,t,i,n){this.height!=t&&(this.dom.style.height=(this.height=t)+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),function(e,t){if(e.length!=t.length)return!1;for(let i=0;i<e.length;i++)if(!e[i].compare(t[i]))return!1;return!0}(this.markers,n)||this.setMarkers(e,n)}setMarkers(e,t){let i="cm-gutterElement",n=this.dom.firstChild;for(let r=0,o=0;;){let s=o,l=r<t.length?t[r++]:null,a=!1;if(l){let e=l.elementClass;e&&(i+=" "+e);for(let e=o;e<this.markers.length;e++)if(this.markers[e].compare(l)){s=e,a=!0;break}}else s=this.markers.length;for(;o<s;){let e=this.markers[o++];if(e.toDOM){e.destroy(n);let t=n.nextSibling;n.remove(),n=t}}if(!l)break;l.toDOM&&(a?n=n.nextSibling:this.dom.insertBefore(l.toDOM(e),n)),a&&o++}this.dom.className=i,this.markers=t}destroy(){this.setMarkers(null,[])}}const Rx=Mg.define(),Ex=Mg.define({combine:e=>SO(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let i=Object.assign({},e);for(let e in t){let n=i[e],r=t[e];i[e]=n?(e,t,i)=>n(e,t,i)||r(e,t,i):r}return i}})});class Mx extends wx{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function Dx(e,t){return e.state.facet(Ex).formatNumber(t,e.state)}const qx=Sx.compute([Ex],(e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:e=>e.state.facet(Rx),lineMarker:(e,t,i)=>i.some((e=>e.toDOM))?null:new Mx(Dx(e,e.state.doc.lineAt(t.from).number)),lineMarkerChange:e=>e.startState.facet(Ex)!=e.state.facet(Ex),initialSpacer:e=>new Mx(Dx(e,jx(e.state.doc.lines))),updateSpacer(e,t){let i=Dx(t.view,jx(t.view.state.doc.lines));return i==e.number?e:new Mx(i)},domEventHandlers:e.facet(Ex).domEventHandlers})));function Nx(e={}){return[Ex.of(e),$x(),qx]}function jx(e){let t=9;for(;t<e;)t=10*t+9;return t}const Vx=new class extends wx{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},Wx=xx.compute(["selection"],(e=>{let t=[],i=-1;for(let n of e.selection.ranges)if(n.empty){let r=e.doc.lineAt(n.head).from;r>i&&(i=r,t.push(Vx.range(r)))}return QO.of(t)}));const zx=1024;let Lx=0;class Bx{constructor(e,t){this.from=e,this.to=t}}class Ix{constructor(e={}){this.id=Lx++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=Fx.match(e)),t=>{let i=e(t);return void 0===i?null:[this,i]}}}Ix.closedBy=new Ix({deserialize:e=>e.split(" ")}),Ix.openedBy=new Ix({deserialize:e=>e.split(" ")}),Ix.group=new Ix({deserialize:e=>e.split(" ")}),Ix.contextHash=new Ix({perNode:!0}),Ix.lookAhead=new Ix({perNode:!0}),Ix.mounted=new Ix({perNode:!0});class Xx{constructor(e,t,i){this.tree=e,this.overlay=t,this.parser=i}}const Ux=Object.create(null);class Fx{constructor(e,t,i,n=0){this.name=e,this.props=t,this.id=i,this.flags=n}static define(e){let t=e.props&&e.props.length?Object.create(null):Ux,i=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),n=new Fx(e.name||"",t,e.id,i);if(e.props)for(let i of e.props)if(Array.isArray(i)||(i=i(n)),i){if(i[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[i[0].id]=i[1]}return n}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(Ix.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let i in e)for(let n of i.split(" "))t[n]=e[i];return e=>{for(let i=e.prop(Ix.group),n=-1;n<(i?i.length:0);n++){let r=t[n<0?e.name:i[n]];if(r)return r}}}}Fx.none=new Fx("",Object.create(null),0,8);class Hx{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let i of this.types){let n=null;for(let t of e){let e=t(i);e&&(n||(n=Object.assign({},i.props)),n[e[0].id]=e[1])}t.push(n?new Fx(i.name,n,i.id,i.flags):i)}return new Hx(t)}}const Zx=new WeakMap,Gx=new WeakMap;var Yx;!function(e){e[e.ExcludeBuffers=1]="ExcludeBuffers",e[e.IncludeAnonymous=2]="IncludeAnonymous",e[e.IgnoreMounts=4]="IgnoreMounts",e[e.IgnoreOverlays=8]="IgnoreOverlays"}(Yx||(Yx={}));class Kx{constructor(e,t,i,n,r){if(this.type=e,this.children=t,this.positions=i,this.length=n,this.props=null,r&&r.length){this.props=Object.create(null);for(let[e,t]of r)this.props["number"==typeof e?e:e.id]=t}}toString(){let e=this.prop(Ix.mounted);if(e&&!e.overlay)return e.tree.toString();let t="";for(let e of this.children){let i=e.toString();i&&(t&&(t+=","),t+=i)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new cS(this.topNode,e)}cursorAt(e,t=0,i=0){let n=Zx.get(this)||this.topNode,r=new cS(n);return r.moveTo(e,t),Zx.set(this,r._tree),r}get topNode(){return new rS(this,0,0,null)}resolve(e,t=0){let i=nS(Zx.get(this)||this.topNode,e,t,!1);return Zx.set(this,i),i}resolveInner(e,t=0){let i=nS(Gx.get(this)||this.topNode,e,t,!0);return Gx.set(this,i),i}iterate(e){let{enter:t,leave:i,from:n=0,to:r=this.length}=e;for(let o=this.cursor((e.mode||0)|Yx.IncludeAnonymous);;){let e=!1;if(o.from<=r&&o.to>=n&&(o.type.isAnonymous||!1!==t(o))){if(o.firstChild())continue;e=!0}for(;e&&i&&!o.type.isAnonymous&&i(o),!o.nextSibling();){if(!o.parent())return;e=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:fS(Fx.none,this.children,this.positions,0,this.children.length,0,this.length,((e,t,i)=>new Kx(this.type,e,t,i,this.propValues)),e.makeTree||((e,t,i)=>new Kx(Fx.none,e,t,i)))}static build(e){return function(e){var t;let{buffer:i,nodeSet:n,maxBufferLength:r=zx,reused:o=[],minRepeatType:s=n.types.length}=e,l=Array.isArray(i)?new Jx(i,i.length):i,a=n.types,c=0,h=0;function u(e,t,i,O,v){let{id:y,start:b,end:w,size:x}=l,S=h;for(;x<0;){if(l.next(),-1==x){let t=o[y];return i.push(t),void O.push(b-e)}if(-3==x)return void(c=y);if(-4==x)return void(h=y);throw new RangeError(`Unrecognized record size: ${x}`)}let k,$,_=a[y],T=b-e;if(w-b<=r&&($=m(l.pos-t,v))){let t=new Uint16Array($.size-$.skip),i=l.pos-$.size,r=t.length;for(;l.pos>i;)r=g($.start,t,r);k=new eS(t,w-$.start,n),T=$.start-e}else{let e=l.pos-x;l.next();let t=[],i=[],n=y>=s?y:-1,o=0,a=w;for(;l.pos>e;)n>=0&&l.id==n&&l.size>=0?(l.end<=a-r&&(f(t,i,b,o,l.end,a,n,S),o=t.length,a=l.end),l.next()):u(b,e,t,i,n);if(n>=0&&o>0&&o<t.length&&f(t,i,b,o,b,a,n,S),t.reverse(),i.reverse(),n>-1&&o>0){let e=d(_);k=fS(_,t,i,0,t.length,0,w-b,e,e)}else k=p(_,t,i,w-b,S-w)}i.push(k),O.push(T)}function d(e){return(t,i,n)=>{let r,o,s=0,l=t.length-1;if(l>=0&&(r=t[l])instanceof Kx){if(!l&&r.type==e&&r.length==n)return r;(o=r.prop(Ix.lookAhead))&&(s=i[l]+r.length+o)}return p(e,t,i,n,s)}}function f(e,t,i,r,o,s,l,a){let c=[],h=[];for(;e.length>r;)c.push(e.pop()),h.push(t.pop()+i-o);e.push(p(n.types[l],c,h,s-o,a-s)),t.push(o-i)}function p(e,t,i,n,r=0,o){if(c){let e=[Ix.contextHash,c];o=o?[e].concat(o):[e]}if(r>25){let e=[Ix.lookAhead,r];o=o?[e].concat(o):[e]}return new Kx(e,t,i,n,o)}function m(e,t){let i=l.fork(),n=0,o=0,a=0,c=i.end-r,h={size:0,start:0,skip:0};e:for(let r=i.pos-e;i.pos>r;){let e=i.size;if(i.id==t&&e>=0){h.size=n,h.start=o,h.skip=a,a+=4,n+=4,i.next();continue}let l=i.pos-e;if(e<0||l<r||i.start<c)break;let u=i.id>=s?4:0,d=i.start;for(i.next();i.pos>l;){if(i.size<0){if(-3!=i.size)break e;u+=4}else i.id>=s&&(u+=4);i.next()}o=d,n+=e,a+=u}return(t<0||n==e)&&(h.size=n,h.start=o,h.skip=a),h.size>4?h:void 0}function g(e,t,i){let{id:n,start:r,end:o,size:a}=l;if(l.next(),a>=0&&n<s){let s=i;if(a>4){let n=l.pos-(a-4);for(;l.pos>n;)i=g(e,t,i)}t[--i]=s,t[--i]=o-e,t[--i]=r-e,t[--i]=n}else-3==a?c=n:-4==a&&(h=n);return i}let O=[],v=[];for(;l.pos>0;)u(e.start||0,e.bufferStart||0,O,v,-1);let y=null!==(t=e.length)&&void 0!==t?t:O.length?v[0]+O[0].length:0;return new Kx(a[e.topID],O.reverse(),v.reverse(),y)}(e)}}Kx.empty=new Kx(Fx.none,[],[],0);class Jx{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new Jx(this.buffer,this.index)}}class eS{constructor(e,t,i){this.buffer=e,this.length=t,this.set=i}get type(){return Fx.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],i=this.buffer[e+3],n=this.set.types[t],r=n.name;if(/\W/.test(r)&&!n.isError&&(r=JSON.stringify(r)),i==(e+=4))return r;let o=[];for(;e<i;)o.push(this.childString(e)),e=this.buffer[e+3];return r+"("+o.join(",")+")"}findChild(e,t,i,n,r){let{buffer:o}=this,s=-1;for(let l=e;l!=t&&!(tS(r,n,o[l+1],o[l+2])&&(s=l,i>0));l=o[l+3]);return s}slice(e,t,i,n){let r=this.buffer,o=new Uint16Array(t-e);for(let n=e,s=0;n<t;)o[s++]=r[n++],o[s++]=r[n++]-i,o[s++]=r[n++]-i,o[s++]=r[n++]-e;return new eS(o,n-i,this.set)}}function tS(e,t,i,n){switch(e){case-2:return i<t;case-1:return n>=t&&i<t;case 0:return i<t&&n>t;case 1:return i<=t&&n>t;case 2:return n>t;case 4:return!0}}function iS(e,t){let i=e.childBefore(t);for(;i;){let t=i.lastChild;if(!t||t.to!=i.to)break;t.type.isError&&t.from==t.to?(e=i,i=t.prevSibling):i=t}return e}function nS(e,t,i,n){for(var r;e.from==e.to||(i<1?e.from>=t:e.from>t)||(i>-1?e.to<=t:e.to<t);){let t=!n&&e instanceof rS&&e.index<0?null:e.parent;if(!t)return e;e=t}let o=n?0:Yx.IgnoreOverlays;if(n)for(let n=e,s=n.parent;s;n=s,s=n.parent)n instanceof rS&&n.index<0&&(null===(r=s.enter(t,i,o))||void 0===r?void 0:r.from)!=n.from&&(e=s);for(;;){let n=e.enter(t,i,o);if(!n)return e;e=n}}class rS{constructor(e,t,i,n){this._tree=e,this.from=t,this.index=i,this._parent=n}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,i,n,r=0){for(let o=this;;){for(let{children:s,positions:l}=o._tree,a=t>0?s.length:-1;e!=a;e+=t){let a=s[e],c=l[e]+o.from;if(tS(n,i,c,c+a.length))if(a instanceof eS){if(r&Yx.ExcludeBuffers)continue;let s=a.findChild(0,a.buffer.length,t,i-c,n);if(s>-1)return new aS(new lS(o,a,e,c),null,s)}else if(r&Yx.IncludeAnonymous||!a.type.isAnonymous||hS(a)){let s;if(!(r&Yx.IgnoreMounts)&&a.props&&(s=a.prop(Ix.mounted))&&!s.overlay)return new rS(s.tree,c,e,o);let l=new rS(a,c,e,o);return r&Yx.IncludeAnonymous||!l.type.isAnonymous?l:l.nextChild(t<0?a.children.length-1:0,t,i,n)}}if(r&Yx.IncludeAnonymous||!o.type.isAnonymous)return null;if(e=o.index>=0?o.index+t:t<0?-1:o._parent._tree.children.length,o=o._parent,!o)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,i=0){let n;if(!(i&Yx.IgnoreOverlays)&&(n=this._tree.prop(Ix.mounted))&&n.overlay){let i=e-this.from;for(let{from:e,to:r}of n.overlay)if((t>0?e<=i:e<i)&&(t<0?r>=i:r>i))return new rS(n.tree,n.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,i)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}cursor(e=0){return new cS(this,e)}get tree(){return this._tree}toTree(){return this._tree}resolve(e,t=0){return nS(this,e,t,!1)}resolveInner(e,t=0){return nS(this,e,t,!0)}enterUnfinishedNodesBefore(e){return iS(this,e)}getChild(e,t=null,i=null){let n=oS(this,e,t,i);return n.length?n[0]:null}getChildren(e,t=null,i=null){return oS(this,e,t,i)}toString(){return this._tree.toString()}get node(){return this}matchContext(e){return sS(this,e)}}function oS(e,t,i,n){let r=e.cursor(),o=[];if(!r.firstChild())return o;if(null!=i)for(;!r.type.is(i);)if(!r.nextSibling())return o;for(;;){if(null!=n&&r.type.is(n))return o;if(r.type.is(t)&&o.push(r.node),!r.nextSibling())return null==n?o:[]}}function sS(e,t,i=t.length-1){for(let n=e.parent;i>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(t[i]&&t[i]!=n.name)return!1;i--}}return!0}class lS{constructor(e,t,i,n){this.parent=e,this.buffer=t,this.index=i,this.start=n}}class aS{constructor(e,t,i){this.context=e,this._parent=t,this.index=i,this.type=e.buffer.set.types[e.buffer.buffer[i]]}get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}child(e,t,i){let{buffer:n}=this.context,r=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.context.start,i);return r<0?null:new aS(this.context,this,r)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,i=0){if(i&Yx.ExcludeBuffers)return null;let{buffer:n}=this.context,r=n.findChild(this.index+4,n.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return r<0?null:new aS(this.context,this,r)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new aS(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new aS(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}cursor(e=0){return new cS(this,e)}get tree(){return null}toTree(){let e=[],t=[],{buffer:i}=this.context,n=this.index+4,r=i.buffer[this.index+3];if(r>n){let o=i.buffer[this.index+1],s=i.buffer[this.index+2];e.push(i.slice(n,r,o,s)),t.push(0)}return new Kx(this.type,e,t,this.to-this.from)}resolve(e,t=0){return nS(this,e,t,!1)}resolveInner(e,t=0){return nS(this,e,t,!0)}enterUnfinishedNodesBefore(e){return iS(this,e)}toString(){return this.context.buffer.childString(this.index)}getChild(e,t=null,i=null){let n=oS(this,e,t,i);return n.length?n[0]:null}getChildren(e,t=null,i=null){return oS(this,e,t,i)}get node(){return this}matchContext(e){return sS(this,e)}}class cS{constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof rS)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}get name(){return this.type.name}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,t){this.index=e;let{start:i,buffer:n}=this.buffer;return this.type=t||n.set.types[n.buffer[e]],this.from=i+n.buffer[e+1],this.to=i+n.buffer[e+2],!0}yield(e){return!!e&&(e instanceof rS?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,i){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,i,this.mode));let{buffer:n}=this.buffer,r=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.buffer.start,i);return!(r<0)&&(this.stack.push(this.index),this.yieldBuf(r))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,i=this.mode){return this.buffer?!(i&Yx.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,i))}parent(){if(!this.buffer)return this.yieldNode(this.mode&Yx.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&Yx.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,i=this.stack.length-1;if(e<0){let e=i<0?0:this.stack[i]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(i<0?t.buffer.length:t.buffer[this.stack[i]+3]))return this.yieldBuf(e)}return i<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,i,{buffer:n}=this;if(n){if(e>0){if(this.index<n.buffer.buffer.length)return!1}else for(let e=0;e<this.index;e++)if(n.buffer.buffer[e+3]<this.index)return!1;({index:t,parent:i}=n)}else({index:t,_parent:i}=this._tree);for(;i;({index:t,_parent:i}=i))if(t>-1)for(let n=t+e,r=e<0?-1:i._tree.children.length;n!=r;n+=e){let e=i._tree.children[n];if(this.mode&Yx.IncludeAnonymous||e instanceof eS||!e.type.isAnonymous||hS(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,i=0;if(e&&e.context==this.buffer)e:for(let n=this.index,r=this.stack.length;r>=0;){for(let o=e;o;o=o._parent)if(o.index==n){if(n==this.index)return o;t=o,i=r+1;break e}n=this.stack[--r]}for(let e=i;e<this.stack.length;e++)t=new aS(this.buffer,t,this.stack[e]);return this.bufferNode=new aS(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let i=0;;){let n=!1;if(this.type.isAnonymous||!1!==e(this)){if(this.firstChild()){i++;continue}this.type.isAnonymous||(n=!0)}for(;n&&t&&t(this),n=this.type.isAnonymous,!this.nextSibling();){if(!i)return;this.parent(),i--,n=!0}}}matchContext(e){if(!this.buffer)return sS(this.node,e);let{buffer:t}=this.buffer,{types:i}=t.set;for(let n=e.length-1,r=this.stack.length-1;n>=0;r--){if(r<0)return sS(this.node,e,n);let o=i[t.buffer[this.stack[r]]];if(!o.isAnonymous){if(e[n]&&e[n]!=o.name)return!1;n--}}return!0}}function hS(e){return e.children.some((e=>e instanceof eS||!e.type.isAnonymous||hS(e)))}const uS=new WeakMap;function dS(e,t){if(!e.isAnonymous||t instanceof eS||t.type!=e)return 1;let i=uS.get(t);if(null==i){i=1;for(let n of t.children){if(n.type!=e||!(n instanceof Kx)){i=1;break}i+=dS(e,n)}uS.set(t,i)}return i}function fS(e,t,i,n,r,o,s,l,a){let c=0;for(let i=n;i<r;i++)c+=dS(e,t[i]);let h=Math.ceil(1.5*c/8),u=[],d=[];return function t(i,n,r,s,l){for(let c=r;c<s;){let r=c,f=n[c],p=dS(e,i[c]);for(c++;c<s;c++){let t=dS(e,i[c]);if(p+t>=h)break;p+=t}if(c==r+1){if(p>h){let e=i[r];t(e.children,e.positions,0,e.children.length,n[r]+l);continue}u.push(i[r])}else{let t=n[c-1]+i[c-1].length-f;u.push(fS(e,i,n,r,c,f,t,null,a))}d.push(f+l-o)}}(t,i,n,r,0),(l||a)(u,d,s)}class pS{constructor(){this.map=new WeakMap}setBuffer(e,t,i){let n=this.map.get(e);n||this.map.set(e,n=new Map),n.set(t,i)}getBuffer(e,t){let i=this.map.get(e);return i&&i.get(t)}set(e,t){e instanceof aS?this.setBuffer(e.context.buffer,e.index,t):e instanceof rS&&this.map.set(e.tree,t)}get(e){return e instanceof aS?this.getBuffer(e.context.buffer,e.index):e instanceof rS?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class mS{constructor(e,t,i,n,r=!1,o=!1){this.from=e,this.to=t,this.tree=i,this.offset=n,this.open=(r?1:0)|(o?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],i=!1){let n=[new mS(0,e.length,e,0,!1,i)];for(let i of t)i.to>e.length&&n.push(i);return n}static applyChanges(e,t,i=128){if(!t.length)return e;let n=[],r=1,o=e.length?e[0]:null;for(let s=0,l=0,a=0;;s++){let c=s<t.length?t[s]:null,h=c?c.fromA:1e9;if(h-l>=i)for(;o&&o.from<h;){let t=o;if(l>=t.from||h<=t.to||a){let e=Math.max(t.from,l)-a,i=Math.min(t.to,h)-a;t=e>=i?null:new mS(e,i,t.tree,t.offset+a,s>0,!!c)}if(t&&n.push(t),o.to>h)break;o=r<e.length?e[r++]:null}if(!c)break;l=c.toA,a=c.toA-c.toB}return n}}class gS{startParse(e,t,i){return"string"==typeof e&&(e=new OS(e)),i=i?i.length?i.map((e=>new Bx(e.from,e.to))):[new Bx(0,0)]:[new Bx(0,e.length)],this.createParse(e,t||[],i)}parse(e,t,i){let n=this.startParse(e,t,i);for(;;){let e=n.advance();if(e)return e}}}class OS{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}function vS(e){return(t,i,n,r)=>new xS(t,e,i,n,r)}class yS{constructor(e,t,i,n,r){this.parser=e,this.parse=t,this.overlay=i,this.target=n,this.ranges=r}}class bS{constructor(e,t,i,n,r,o,s){this.parser=e,this.predicate=t,this.mounts=i,this.index=n,this.start=r,this.target=o,this.prev=s,this.depth=0,this.ranges=[]}}const wS=new Ix({perNode:!0});class xS{constructor(e,t,i,n,r){this.nest=t,this.input=i,this.fragments=n,this.ranges=r,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let e=this.baseParse.advance();if(!e)return null;if(this.baseParse=null,this.baseTree=e,this.startInner(),null!=this.stoppedAt)for(let e of this.inner)e.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let e=this.baseTree;return null!=this.stoppedAt&&(e=new Kx(e.type,e.children,e.positions,e.length,e.propValues.concat([[wS,this.stoppedAt]]))),e}let e=this.inner[this.innerDone],t=e.parse.advance();if(t){this.innerDone++;let i=Object.assign(Object.create(null),e.target.props);i[Ix.mounted.id]=new Xx(t,e.overlay,e.parser),e.target.props=i}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].ranges[0].from<e&&(e=Math.min(e,this.inner[t].parse.parsedPos));return e}stopAt(e){if(this.stoppedAt=e,this.baseParse)this.baseParse.stopAt(e);else for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].parse.stopAt(e)}startInner(){let e=new TS(this.fragments),t=null,i=null,n=new cS(new rS(this.baseTree,this.ranges[0].from,0,null),Yx.IncludeAnonymous|Yx.IgnoreMounts);e:for(let r,o;null==this.stoppedAt||n.from<this.stoppedAt;){let s,l=!0;if(e.hasNode(n)){if(t){let e=t.mounts.find((e=>e.frag.from<=n.from&&e.frag.to>=n.to&&e.mount.overlay));if(e)for(let i of e.mount.overlay){let r=i.from+e.pos,o=i.to+e.pos;r>=n.from&&o<=n.to&&!t.ranges.some((e=>e.from<o&&e.to>r))&&t.ranges.push({from:r,to:o})}}l=!1}else if(i&&(o=SS(i.ranges,n.from,n.to)))l=2!=o;else if(!n.type.isAnonymous&&n.from<n.to&&(r=this.nest(n,this.input))){n.tree||$S(n);let o=e.findMounts(n.from,r.parser);if("function"==typeof r.overlay)t=new bS(r.parser,r.overlay,o,this.inner.length,n.from,n.tree,t);else{let e=QS(this.ranges,r.overlay||[new Bx(n.from,n.to)]);e.length&&this.inner.push(new yS(r.parser,r.parser.startParse(this.input,AS(o,e),e),r.overlay?r.overlay.map((e=>new Bx(e.from-n.from,e.to-n.from))):null,n.tree,e)),r.overlay?e.length&&(i={ranges:e,depth:0,prev:i}):l=!1}}else t&&(s=t.predicate(n))&&(!0===s&&(s=new Bx(n.from,n.to)),s.from<s.to&&t.ranges.push(s));if(l&&n.firstChild())t&&t.depth++,i&&i.depth++;else for(;!n.nextSibling();){if(!n.parent())break e;if(t&&!--t.depth){let e=QS(this.ranges,t.ranges);e.length&&this.inner.splice(t.index,0,new yS(t.parser,t.parser.startParse(this.input,AS(t.mounts,e),e),t.ranges.map((e=>new Bx(e.from-t.start,e.to-t.start))),t.target,e)),t=t.prev}i&&!--i.depth&&(i=i.prev)}}}}function SS(e,t,i){for(let n of e){if(n.from>=i)break;if(n.to>t)return n.from<=t&&n.to>=i?2:1}return 0}function kS(e,t,i,n,r,o){if(t<i){let s=e.buffer[t+1],l=e.buffer[i-2];n.push(e.slice(t,i,s,l)),r.push(s-o)}}function $S(e){let{node:t}=e,i=0;do{e.parent(),i++}while(!e.tree);let n=0,r=e.tree,o=0;for(;o=r.positions[n]+e.from,!(o<=t.from&&o+r.children[n].length>=t.to);n++);let s=r.children[n],l=s.buffer;r.children[n]=function e(i,n,r,a,c){let h=i;for(;l[h+2]+o<=t.from;)h=l[h+3];let u=[],d=[];kS(s,i,h,u,d,a);let f=l[h+1],p=l[h+2],m=f+o==t.from&&p+o==t.to&&l[h]==t.type.id;return u.push(m?t.toTree():e(h+4,l[h+3],s.set.types[l[h]],f,p-f)),d.push(f-a),kS(s,l[h+3],n,u,d,a),new Kx(r,u,d,c)}(0,l.length,Fx.none,0,s.length);for(let n=0;n<=i;n++)e.childAfter(t.from)}class _S{constructor(e,t){this.offset=t,this.done=!1,this.cursor=e.cursor(Yx.IncludeAnonymous|Yx.IgnoreMounts)}moveTo(e){let{cursor:t}=this,i=e-this.offset;for(;!this.done&&t.from<i;)t.to>=e&&t.enter(i,1,Yx.IgnoreOverlays|Yx.ExcludeBuffers)||t.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let t=this.cursor.tree;;){if(t==e.tree)return!0;if(!(t.children.length&&0==t.positions[0]&&t.children[0]instanceof Kx))break;t=t.children[0]}return!1}}class TS{constructor(e){var t;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let i=this.curFrag=e[0];this.curTo=null!==(t=i.tree.prop(wS))&&void 0!==t?t:i.to,this.inner=new _S(i.tree,-i.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let t=this.curFrag=this.fragments[this.fragI];this.curTo=null!==(e=t.tree.prop(wS))&&void 0!==e?e:t.to,this.inner=new _S(t.tree,-t.offset)}}findMounts(e,t){var i;let n=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let e=this.inner.cursor.node;e;e=e.parent){let r=null===(i=e.tree)||void 0===i?void 0:i.prop(Ix.mounted);if(r&&r.parser==t)for(let t=this.fragI;t<this.fragments.length;t++){let i=this.fragments[t];if(i.from>=e.to)break;i.tree==this.curFrag.tree&&n.push({frag:i,pos:e.from-i.offset,mount:r})}}}return n}}function QS(e,t){let i=null,n=t;for(let r=1,o=0;r<e.length;r++){let s=e[r-1].to,l=e[r].from;for(;o<n.length;o++){let e=n[o];if(e.from>=l)break;e.to<=s||(i||(n=i=t.slice()),e.from<s?(i[o]=new Bx(e.from,s),e.to>l&&i.splice(o+1,0,new Bx(l,e.to))):e.to>l?i[o--]=new Bx(l,e.to):i.splice(o--,1))}}return n}function PS(e,t,i,n){let r=0,o=0,s=!1,l=!1,a=-1e9,c=[];for(;;){let h=r==e.length?1e9:s?e[r].to:e[r].from,u=o==t.length?1e9:l?t[o].to:t[o].from;if(s!=l){let e=Math.max(a,i),t=Math.min(h,u,n);e<t&&c.push(new Bx(e,t))}if(a=Math.min(h,u),1e9==a)break;h==a&&(s?(s=!1,r++):s=!0),u==a&&(l?(l=!1,o++):l=!0)}return c}function AS(e,t){let i=[];for(let{pos:n,mount:r,frag:o}of e){let e=n+(r.overlay?r.overlay[0].from:0),s=e+r.tree.length,l=Math.max(o.from,e),a=Math.min(o.to,s);if(r.overlay){let s=r.overlay.map((e=>new Bx(e.from+n,e.to+n))),c=PS(t,s,l,a);for(let t=0,n=l;;t++){let s=t==c.length,l=s?a:c[t].from;if(l>n&&i.push(new mS(n,l,r.tree,-e,o.from>=n,o.to<=l)),s)break;n=c[t].to}}else i.push(new mS(l,a,r.tree,-e,o.from>=e,o.to<=s))}return i}function CS(e){let t;return t=11==e.nodeType?e.getSelection?e:e.ownerDocument:e,t.getSelection()}function RS(e,t){return!!t&&(e==t||e.contains(1!=t.nodeType?t.parentNode:t))}function ES(e,t){if(!t.anchorNode)return!1;try{return RS(e,t.anchorNode)}catch(e){return!1}}function MS(e){return 3==e.nodeType?US(e,0,e.nodeValue.length).getClientRects():1==e.nodeType?e.getClientRects():[]}function DS(e,t,i,n){return!!i&&(NS(e,t,i,n,-1)||NS(e,t,i,n,1))}function qS(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}function NS(e,t,i,n,r){for(;;){if(e==i&&t==n)return!0;if(t==(r<0?0:jS(e))){if("DIV"==e.nodeName)return!1;let i=e.parentNode;if(!i||1!=i.nodeType)return!1;t=qS(e)+(r<0?0:1),e=i}else{if(1!=e.nodeType)return!1;if(1==(e=e.childNodes[t+(r<0?-1:0)]).nodeType&&"false"==e.contentEditable)return!1;t=r<0?jS(e):0}}}function jS(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}const VS={left:0,right:0,top:0,bottom:0};function WS(e,t){let i=t?e.left:e.right;return{left:i,right:i,top:e.top,bottom:e.bottom}}function zS(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}class LS{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){this.set(e.anchorNode,e.anchorOffset,e.focusNode,e.focusOffset)}set(e,t,i,n){this.anchorNode=e,this.anchorOffset=t,this.focusNode=i,this.focusOffset=n}}let BS,IS=null;function XS(e){if(e.setActive)return e.setActive();if(IS)return e.focus(IS);let t=[];for(let i=e;i&&(t.push(i,i.scrollTop,i.scrollLeft),i!=i.ownerDocument);i=i.parentNode);if(e.focus(null==IS?{get preventScroll(){return IS={preventScroll:!0},!0}}:void 0),!IS){IS=!1;for(let e=0;e<t.length;){let i=t[e++],n=t[e++],r=t[e++];i.scrollTop!=n&&(i.scrollTop=n),i.scrollLeft!=r&&(i.scrollLeft=r)}}}function US(e,t,i=t){let n=BS||(BS=document.createRange());return n.setEnd(e,i),n.setStart(e,t),n}function FS(e,t,i){let n={key:t,code:t,keyCode:i,which:i,cancelable:!0},r=new KeyboardEvent("keydown",n);r.synthetic=!0,e.dispatchEvent(r);let o=new KeyboardEvent("keyup",n);return o.synthetic=!0,e.dispatchEvent(o),r.defaultPrevented||o.defaultPrevented}function HS(e){for(;e.attributes.length;)e.removeAttributeNode(e.attributes[0])}class ZS{constructor(e,t,i=!0){this.node=e,this.offset=t,this.precise=i}static before(e,t){return new ZS(e.parentNode,qS(e),t)}static after(e,t){return new ZS(e.parentNode,qS(e)+1,t)}}const GS=[];class YS{constructor(){this.parent=null,this.dom=null,this.dirty=2}get editorView(){if(!this.parent)throw new Error("Accessing view in orphan content view");return this.parent.editorView}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let t=this.posAtStart;for(let i of this.children){if(i==e)return t;t+=i.length+i.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}coordsAt(e,t){return null}sync(e){if(2&this.dirty){let t,i=this.dom,n=null;for(let r of this.children){if(r.dirty){if(!r.dom&&(t=n?n.nextSibling:i.firstChild)){let e=YS.get(t);e&&(e.parent||e.constructor!=r.constructor)||r.reuseDOM(t)}r.sync(e),r.dirty=0}if(t=n?n.nextSibling:i.firstChild,e&&!e.written&&e.node==i&&t!=r.dom&&(e.written=!0),r.dom.parentNode==i)for(;t&&t!=r.dom;)t=KS(t);else i.insertBefore(r.dom,t);n=r.dom}for(t=n?n.nextSibling:i.firstChild,t&&e&&e.node==i&&(e.written=!0);t;)t=KS(t)}else if(1&this.dirty)for(let t of this.children)t.dirty&&(t.sync(e),t.dirty=0)}reuseDOM(e){}localPosFromDOM(e,t){let i;if(e==this.dom)i=this.dom.childNodes[t];else{let n=0==jS(e)?0:0==t?-1:1;for(;;){let t=e.parentNode;if(t==this.dom)break;0==n&&t.firstChild!=t.lastChild&&(n=e==t.firstChild?-1:1),e=t}i=n<0?e:e.nextSibling}if(i==this.dom.firstChild)return 0;for(;i&&!YS.get(i);)i=i.nextSibling;if(!i)return this.length;for(let e=0,t=0;;e++){let n=this.children[e];if(n.dom==i)return t;t+=n.length+n.breakAfter}}domBoundsAround(e,t,i=0){let n=-1,r=-1,o=-1,s=-1;for(let l=0,a=i,c=i;l<this.children.length;l++){let i=this.children[l],h=a+i.length;if(a<e&&h>t)return i.domBoundsAround(e,t,a);if(h>=e&&-1==n&&(n=l,r=a),a>t&&i.dom.parentNode==this.dom){o=l,s=c;break}c=h,a=h+i.breakAfter}return{from:r,to:s<0?i+this.length:s,startDOM:(n?this.children[n-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o<this.children.length&&o>=0?this.children[o].dom:null}}markDirty(e=!1){this.dirty|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.dirty|=2),1&t.dirty)return;t.dirty|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.dirty&&this.markParentsDirty(!0))}setDOM(e){this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,i=GS){this.markDirty();for(let i=e;i<t;i++){let e=this.children[i];e.parent==this&&e.destroy()}this.children.splice(e,t-e,...i);for(let e=0;e<i.length;e++)i[e].setParent(this)}ignoreMutation(e){return!1}ignoreEvent(e){return!1}childCursor(e=this.length){return new JS(this.children,e,this.children.length)}childPos(e,t=1){return this.childCursor().findPos(e,t)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==e?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}merge(e,t,i,n,r,o){return!1}become(e){return!1}getSide(){return 0}destroy(){this.parent=null}}function KS(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}YS.prototype.breakAfter=0;class JS{constructor(e,t,i){this.children=e,this.pos=t,this.i=i,this.off=0}findPos(e,t=1){for(;;){if(e>this.pos||e==this.pos&&(t>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}function ek(e,t,i,n,r,o,s,l,a){let{children:c}=e,h=c.length?c[t]:null,u=o.length?o[o.length-1]:null,d=u?u.breakAfter:s;if(!(t==n&&h&&!s&&!d&&o.length<2&&h.merge(i,r,o.length?u:null,0==i,l,a))){if(n<c.length){let e=c[n];e&&r<e.length?(t==n&&(e=e.split(r),r=0),!d&&u&&e.merge(0,r,u,!0,0,a)?o[o.length-1]=e:(r&&e.merge(0,r,null,!1,0,a),o.push(e))):(null==e?void 0:e.breakAfter)&&(u?u.breakAfter=1:s=1),n++}for(h&&(h.breakAfter=s,i>0&&(!s&&o.length&&h.merge(i,h.length,o[0],!1,l,0)?h.breakAfter=o.shift().breakAfter:(i<h.length||h.children.length&&0==h.children[h.children.length-1].length)&&h.merge(i,h.length,null,!1,l,0),t++));t<n&&o.length;)if(c[n-1].become(o[o.length-1]))n--,o.pop(),a=o.length?0:l;else{if(!c[t].become(o[0]))break;t++,o.shift(),l=o.length?0:a}!o.length&&t&&n<c.length&&!c[t-1].breakAfter&&c[n].merge(0,0,c[t-1],!1,l,a)&&t--,(t<n||o.length)&&e.replaceChildren(t,n,o)}}function tk(e,t,i,n,r,o){let s=e.childCursor(),{i:l,off:a}=s.findPos(i,1),{i:c,off:h}=s.findPos(t,-1),u=t-i;for(let e of n)u+=e.length;e.length+=u,ek(e,c,h,l,a,n,0,r,o)}let ik="undefined"!=typeof navigator?navigator:{userAgent:"",vendor:"",platform:""},nk="undefined"!=typeof document?document:{documentElement:{style:{}}};const rk=/Edge\/(\d+)/.exec(ik.userAgent),ok=/MSIE \d/.test(ik.userAgent),sk=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ik.userAgent),lk=!!(ok||sk||rk),ak=!lk&&/gecko\/(\d+)/i.test(ik.userAgent),ck=!lk&&/Chrome\/(\d+)/.exec(ik.userAgent),hk="webkitFontSmoothing"in nk.documentElement.style,uk=!lk&&/Apple Computer/.test(ik.vendor),dk=uk&&(/Mobile\/\w+/.test(ik.userAgent)||ik.maxTouchPoints>2);var fk={mac:dk||/Mac/.test(ik.platform),windows:/Win/.test(ik.platform),linux:/Linux|X11/.test(ik.platform),ie:lk,ie_version:ok?nk.documentMode||6:sk?+sk[1]:rk?+rk[1]:0,gecko:ak,gecko_version:ak?+(/Firefox\/(\d+)/.exec(ik.userAgent)||[0,0])[1]:0,chrome:!!ck,chrome_version:ck?+ck[1]:0,ios:dk,android:/Android\b/.test(ik.userAgent),webkit:hk,safari:uk,webkit_version:hk?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=nk.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};class pk extends YS{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(e&&e.node==this.dom&&(e.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){3==e.nodeType&&this.createDOM(e)}merge(e,t,i){return(!i||i instanceof pk&&!(this.length-(t-e)+i.length>256))&&(this.text=this.text.slice(0,e)+(i?i.text:"")+this.text.slice(t),this.markDirty(),!0)}split(e){let t=new pk(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new ZS(this.dom,e)}domBoundsAround(e,t,i){return{from:i,to:i+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return gk(this.dom,e,t)}}class mk extends YS{constructor(e,t=[],i=0){super(),this.mark=e,this.children=t,this.length=i;for(let e of t)e.setParent(this)}setAttrs(e){if(HS(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.dirty|=6)}sync(e){this.dom?4&this.dirty&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e)}merge(e,t,i,n,r,o){return(!i||!(!(i instanceof mk&&i.mark.eq(this.mark))||e&&r<=0||t<this.length&&o<=0))&&(tk(this,e,t,i?i.children:[],r-1,o-1),this.markDirty(),!0)}split(e){let t=[],i=0,n=-1,r=0;for(let o of this.children){let s=i+o.length;s>e&&t.push(i<e?o.split(e-i):o),n<0&&i>=e&&(n=r),i=s,r++}let o=this.length-e;return this.length=e,n>-1&&(this.children.length=n,this.markDirty()),new mk(this.mark,t,o)}domAtPos(e){return xk(this.dom,this.children,e)}coordsAt(e,t){return kk(this,e,t)}}function gk(e,t,i){let n=e.nodeValue.length;t>n&&(t=n);let r=t,o=t,s=0;0==t&&i<0||t==n&&i>=0?fk.chrome||fk.gecko||(t?(r--,s=1):o<n&&(o++,s=-1)):i<0?r--:o<n&&o++;let l=US(e,r,o).getClientRects();if(!l.length)return VS;let a=l[(s?s<0:i>=0)?0:l.length-1];return fk.safari&&!s&&0==a.width&&(a=Array.prototype.find.call(l,(e=>e.width))||a),s?WS(a,s<0):a||null}class Ok extends YS{constructor(e,t,i){super(),this.widget=e,this.length=t,this.side=i,this.prevWidget=null}static create(e,t,i){return new(e.customView||Ok)(e,t,i)}split(e){let t=Ok.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(){this.dom&&this.widget.updateDOM(this.dom)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(this.editorView)),this.dom.contentEditable="false")}getSide(){return this.side}merge(e,t,i,n,r,o){return!(i&&(!(i instanceof Ok&&this.widget.compare(i.widget))||e>0&&r<=0||t<this.length&&o<=0))&&(this.length=e+(i?i.length:0)+(this.length-t),!0)}become(e){return e.length==this.length&&e instanceof Ok&&e.side==this.side&&this.widget.constructor==e.widget.constructor&&(this.widget.eq(e.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,!0)}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){if(0==this.length)return eg.empty;let e=this;for(;e.parent;)e=e.parent;let t=e.editorView,i=t&&t.state.doc,n=this.posAtStart;return i?i.slice(n,n+this.length):eg.empty}domAtPos(e){return 0==e?ZS.before(this.dom):ZS.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let i=this.dom.getClientRects(),n=null;if(!i.length)return VS;for(let t=e>0?i.length-1:0;n=i[t],!(e>0?0==t:t==i.length-1||n.top<n.bottom);t+=e>0?-1:1);return 0==e&&t>0||e==this.length&&t<=0?n:WS(n,0==e)}get isEditable(){return!1}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class vk extends Ok{domAtPos(e){let{topView:t,text:i}=this.widget;return t?yk(e,0,t,i,((e,t)=>e.domAtPos(t)),(e=>new ZS(i,Math.min(e,i.nodeValue.length)))):new ZS(i,Math.min(e,i.nodeValue.length))}sync(){this.setDOM(this.widget.toDOM())}localPosFromDOM(e,t){let{topView:i,text:n}=this.widget;return i?bk(e,t,i,n):Math.min(t,this.length)}ignoreMutation(){return!1}get overrideDOMText(){return null}coordsAt(e,t){let{topView:i,text:n}=this.widget;return i?yk(e,t,i,n,((e,t,i)=>e.coordsAt(t,i)),((e,t)=>gk(n,e,t))):gk(n,e,t)}destroy(){var e;super.destroy(),null===(e=this.widget.topView)||void 0===e||e.destroy()}get isEditable(){return!0}}function yk(e,t,i,n,r,o){if(i instanceof mk){for(let s of i.children){let i=RS(s.dom,n),l=i?n.nodeValue.length:s.length;if(e<l||e==l&&s.getSide()<=0)return i?yk(e,t,s,n,r,o):r(s,e,t);e-=l}return r(i,i.length,-1)}return i.dom==n?o(e,t):r(i,e,t)}function bk(e,t,i,n){if(i instanceof mk)for(let r of i.children){let i=0,o=RS(r.dom,n);if(RS(r.dom,e))return i+(o?bk(e,t,r,n):r.localPosFromDOM(e,t));i+=o?n.nodeValue.length:r.length}else if(i.dom==n)return Math.min(t,n.nodeValue.length);return i.localPosFromDOM(e,t)}class wk extends YS{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof wk&&e.side==this.side}split(){return new wk(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return ZS.before(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){let t=this.dom.getBoundingClientRect(),i=function(e,t){let i=e.parent,n=i?i.children.indexOf(e):-1;for(;i&&n>=0;)if(t<0?n>0:n<i.children.length){let e=i.children[n+t];if(e instanceof pk){let i=e.coordsAt(t<0?e.length:0,t);if(i)return i}n+=t}else{if(!(i instanceof mk&&i.parent)){let e=i.dom.lastChild;if(e&&"BR"==e.nodeName)return e.getClientRects()[0];break}n=i.parent.children.indexOf(i)+(t<0?0:1),i=i.parent}return}(this,this.side>0?-1:1);return i&&i.top<t.bottom&&i.bottom>t.top?{left:t.left,right:t.right,top:i.top,bottom:i.bottom}:t}get overrideDOMText(){return eg.empty}}function xk(e,t,i){let n=0;for(let r=0;n<t.length;n++){let o=t[n],s=r+o.length;if(!(s==r&&o.getSide()<=0)){if(i>r&&i<s&&o.dom.parentNode==e)return o.domAtPos(i-r);if(i<=r)break;r=s}}for(;n>0;n--){let i=t[n-1].dom;if(i.parentNode==e)return ZS.after(i)}return new ZS(e,0)}function Sk(e,t,i){let n,{children:r}=e;i>0&&t instanceof mk&&r.length&&(n=r[r.length-1])instanceof mk&&n.mark.eq(t.mark)?Sk(n,t.children[0],i-1):(r.push(t),t.setParent(e)),e.length+=t.length}function kk(e,t,i){for(let n=0,r=0;r<e.children.length;r++){let o,s=e.children[r],l=n+s.length;if((i<=0||l==e.length||s.getSide()>0?l>=t:l>t)&&(t<l||r+1==e.children.length||(o=e.children[r+1]).length||o.getSide()>0)){let e=0;if(l==n){if(s.getSide()<=0)continue;e=i=-s.getSide()}let r=s.coordsAt(Math.max(0,t-n),i);return e&&r?WS(r,i<0):r}n=l}let n=e.dom.lastChild;if(!n)return e.dom.getBoundingClientRect();let r=MS(n);return r[r.length-1]||null}function $k(e,t){for(let i in e)"class"==i&&t.class?t.class+=" "+e.class:"style"==i&&t.style?t.style+=";"+e.style:t[i]=e[i];return t}function _k(e,t){if(e==t)return!0;if(!e||!t)return!1;let i=Object.keys(e),n=Object.keys(t);if(i.length!=n.length)return!1;for(let r of i)if(-1==n.indexOf(r)||e[r]!==t[r])return!1;return!0}function Tk(e,t,i){let n=null;if(t)for(let r in t)i&&r in i||e.removeAttribute(n=r);if(i)for(let r in i)t&&t[r]==i[r]||e.setAttribute(n=r,i[r]);return!!n}pk.prototype.children=Ok.prototype.children=wk.prototype.children=GS;class Qk{eq(e){return!1}updateDOM(e){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}ignoreEvent(e){return!0}get customView(){return null}destroy(e){}}var Pk=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(Pk||(Pk={}));class Ak extends kO{constructor(e,t,i,n){super(),this.startSide=e,this.endSide=t,this.widget=i,this.spec=n}get heightRelevant(){return!1}static mark(e){return new Ck(e)}static widget(e){let t=e.side||0,i=!!e.block;return t+=i?t>0?3e8:-4e8:t>0?1e8:-1e8,new Ek(e,t,t,i,e.widget||null,!1)}static replace(e){let t,i,n=!!e.block;if(e.isBlockGap)t=-5e8,i=4e8;else{let{start:r,end:o}=Mk(e,n);t=(r?n?-3e8:-1:5e8)-1,i=1+(o?n?2e8:1:-6e8)}return new Ek(e,t,i,n,e.widget||null,!0)}static line(e){return new Rk(e)}static set(e,t=!1){return QO.of(e,t)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}Ak.none=QO.empty;class Ck extends Ak{constructor(e){let{start:t,end:i}=Mk(e);super(t?-1:5e8,i?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){return this==e||e instanceof Ck&&this.tagName==e.tagName&&this.class==e.class&&_k(this.attrs,e.attrs)}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}Ck.prototype.point=!1;class Rk extends Ak{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof Rk&&_k(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}Rk.prototype.mapMode=wg.TrackBefore,Rk.prototype.point=!0;class Ek extends Ak{constructor(e,t,i,n,r,o){super(t,i,r,e),this.block=n,this.isReplace=o,this.mapMode=n?t<=0?wg.TrackBefore:wg.TrackAfter:wg.TrackDel}get type(){return this.startSide<this.endSide?Pk.WidgetRange:this.startSide<=0?Pk.WidgetBefore:Pk.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&this.widget.estimatedHeight>=5}eq(e){return e instanceof Ek&&function(e,t){return e==t||!!(e&&t&&e.compare(t))}(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}function Mk(e,t=!1){let{inclusiveStart:i,inclusiveEnd:n}=e;return null==i&&(i=e.inclusive),null==n&&(n=e.inclusive),{start:null!=i?i:t,end:null!=n?n:t}}function Dk(e,t,i,n=0){let r=i.length-1;r>=0&&i[r]+n>=e?i[r]=Math.max(i[r],t):i.push(e,t)}Ek.prototype.point=!0;class qk extends YS{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,t,i,n,r,o){if(i){if(!(i instanceof qk))return!1;this.dom||i.transferDOM(this)}return n&&this.setDeco(i?i.attrs:null),tk(this,e,t,i?i.children:[],r,o),!0}split(e){let t=new qk;if(t.breakAfter=this.breakAfter,0==this.length)return t;let{i,off:n}=this.childPos(e);n&&(t.append(this.children[i].split(n),0),this.children[i].merge(n,this.children[i].length,null,!1,0,0),i++);for(let e=i;e<this.children.length;e++)t.append(this.children[e],0);for(;i>0&&0==this.children[i-1].length;)this.children[--i].destroy();return this.children.length=i,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){_k(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){Sk(this,e,t)}addLineDeco(e){let t=e.spec.attributes,i=e.spec.class;t&&(this.attrs=$k(t,this.attrs||{})),i&&(this.attrs=$k({class:i},this.attrs||{}))}domAtPos(e){return xk(this.dom,this.children,e)}reuseDOM(e){"DIV"==e.nodeName&&(this.setDOM(e),this.dirty|=6)}sync(e){var t;this.dom?4&this.dirty&&(HS(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(Tk(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e);let i=this.dom.lastChild;for(;i&&YS.get(i)instanceof mk;)i=i.lastChild;if(!(i&&this.length&&("BR"==i.nodeName||0!=(null===(t=YS.get(i))||void 0===t?void 0:t.isEditable)||fk.ios&&this.children.some((e=>e instanceof pk))))){let e=document.createElement("BR");e.cmIgnore=!0,this.dom.appendChild(e)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let e=0;for(let t of this.children){if(!(t instanceof pk)||/[^ -~]/.test(t.text))return null;let i=MS(t.dom);if(1!=i.length)return null;e+=i[0].width}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length}:null}coordsAt(e,t){return kk(this,e,t)}become(e){return!1}get type(){return Pk.Text}static find(e,t){for(let i=0,n=0;i<e.children.length;i++){let r=e.children[i],o=n+r.length;if(o>=t){if(r instanceof qk)return r;if(o>t)break}n=o+r.breakAfter}return null}}class Nk extends YS{constructor(e,t,i){super(),this.widget=e,this.length=t,this.type=i,this.breakAfter=0,this.prevWidget=null}merge(e,t,i,n,r,o){return!(i&&(!(i instanceof Nk&&this.widget.compare(i.widget))||e>0&&r<=0||t<this.length&&o<=0))&&(this.length=e+(i?i.length:0)+(this.length-t),!0)}domAtPos(e){return 0==e?ZS.before(this.dom):ZS.after(this.dom,e==this.length)}split(e){let t=this.length-e;this.length=e;let i=new Nk(this.widget,t,this.type);return i.breakAfter=this.breakAfter,i}get children(){return GS}sync(){this.dom&&this.widget.updateDOM(this.dom)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(this.editorView)),this.dom.contentEditable="false")}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):eg.empty}domBoundsAround(){return null}become(e){return e instanceof Nk&&e.type==this.type&&e.widget.constructor==this.widget.constructor&&(e.widget.eq(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.breakAfter=e.breakAfter,!0)}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class jk{constructor(e,t,i,n){this.doc=e,this.pos=t,this.end=i,this.disallowBlockEffectsFor=n,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(0==this.content.length)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof Nk&&e.type==Pk.WidgetBefore)}getLine(){return this.curLine||(this.content.push(this.curLine=new qk),this.atCursorPos=!0),this.curLine}flushBuffer(e){this.pendingBuffer&&(this.curLine.append(Vk(new wk(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer([]),this.curLine=null,this.content.push(e)}finish(e){e?this.pendingBuffer=0:this.flushBuffer([]),this.posCovered()||this.getLine()}buildText(e,t,i){for(;e>0;){if(this.textOff==this.text.length){let{value:t,lineBreak:i,done:n}=this.cursor.next(this.skip);if(this.skip=0,n)throw new Error("Ran out of text content when drawing inline views");if(i){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer([]),this.curLine=null,e--;continue}this.text=t,this.textOff=0}let n=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(0,i)),this.getLine().append(Vk(new pk(this.text.slice(this.textOff,this.textOff+n)),t),i),this.atCursorPos=!0,this.textOff+=n,e-=n,i=0}}span(e,t,i,n){this.buildText(t-e,i,n),this.pos=t,this.openStart<0&&(this.openStart=n)}point(e,t,i,n,r,o){if(this.disallowBlockEffectsFor[o]&&i instanceof Ek){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let s=t-e;if(i instanceof Ek)if(i.block){let{type:e}=i;e!=Pk.WidgetAfter||this.posCovered()||this.getLine(),this.addBlockWidget(new Nk(i.widget||new Wk("div"),s,e))}else{let o=Ok.create(i.widget||new Wk("span"),s,i.startSide),l=this.atCursorPos&&!o.isEditable&&r<=n.length&&(e<t||i.startSide>0),a=!o.isEditable&&(e<t||i.startSide<=0),c=this.getLine();2!=this.pendingBuffer||l||(this.pendingBuffer=0),this.flushBuffer(n),l&&(c.append(Vk(new wk(1),n),r),r=n.length+Math.max(0,r-n.length)),c.append(Vk(o,n),r),this.atCursorPos=a,this.pendingBuffer=a?e<t?1:2:0}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);s&&(this.textOff+s<=this.text.length?this.textOff+=s:(this.skip+=s-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=r)}static build(e,t,i,n,r){let o=new jk(e,t,i,r);return o.openEnd=QO.spans(n,t,i,o),o.openStart<0&&(o.openStart=o.openEnd),o.finish(o.openEnd),o}}function Vk(e,t){for(let i of t)e=new mk(i,[e],e.length);return e}class Wk extends Qk{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}}const zk=Mg.define(),Lk=Mg.define(),Bk=Mg.define(),Ik=Mg.define(),Xk=Mg.define(),Uk=Mg.define(),Fk=Mg.define({combine:e=>e.some((e=>e))});class Hk{constructor(e,t="nearest",i="nearest",n=5,r=5){this.range=e,this.y=t,this.x=i,this.yMargin=n,this.xMargin=r}map(e){return e.empty?this:new Hk(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin)}}const Zk=hO.define({map:(e,t)=>e.map(t)});function Gk(e,t,i){let n=e.facet(Ik);n.length?n[0](t):window.onerror?window.onerror(String(t),i,void 0,void 0,t):i?console.error(i+":",t):console.error(t)}const Yk=Mg.define({combine:e=>!e.length||e[0]});let Kk=0;const Jk=Mg.define();class e${constructor(e,t,i,n){this.id=e,this.create=t,this.domEventHandlers=i,this.extension=n(this)}static define(e,t){const{eventHandlers:i,provide:n,decorations:r}=t||{};return new e$(Kk++,e,i,(e=>{let t=[Jk.of(e)];return r&&t.push(r$.of((t=>{let i=t.plugin(e);return i?r(i):Ak.none}))),n&&t.push(n(e)),t}))}static fromClass(e,t){return e$.define((t=>new e(t)),t)}}class t${constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(t){if(Gk(e.state,t,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(e){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){Gk(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(null===(t=this.value)||void 0===t?void 0:t.destroy)try{this.value.destroy()}catch(t){Gk(e.state,t,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const i$=Mg.define(),n$=Mg.define(),r$=Mg.define(),o$=Mg.define(),s$=Mg.define(),l$=Mg.define();class a${constructor(e,t,i,n){this.fromA=e,this.toA=t,this.fromB=i,this.toB=n}join(e){return new a$(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,i=this;for(;t>0;t--){let n=e[t-1];if(!(n.fromA>i.toA)){if(n.toA<i.fromA)break;i=i.join(n),e.splice(t-1,1)}}return e.splice(t,0,i),e}static extendWithRanges(e,t){if(0==t.length)return e;let i=[];for(let n=0,r=0,o=0,s=0;;n++){let l=n==e.length?null:e[n],a=o-s,c=l?l.fromB:1e9;for(;r<t.length&&t[r]<c;){let e=t[r],n=t[r+1],o=Math.max(s,e),l=Math.min(c,n);if(o<=l&&new a$(o+a,l+a,o,l).addToSet(i),n>c)break;r+=2}if(!l)return i;new a$(l.fromA,l.toA,l.fromB,l.toB).addToSet(i),o=l.toA,s=l.toB}}}class c${constructor(e,t,i){this.view=e,this.state=t,this.transactions=i,this.flags=0,this.startState=e.state,this.changes=Sg.empty(this.startState.doc.length);for(let e of i)this.changes=this.changes.compose(e.changes);let n=[];this.changes.iterChangedRanges(((e,t,i,r)=>n.push(new a$(e,t,i,r)))),this.changedRanges=n;let r=e.hasFocus;r!=e.inputState.notifiedFocused&&(e.inputState.notifiedFocused=r,this.flags|=1)}static create(e,t,i){return new c$(e,t,i)}get viewportChanged(){return(4&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(10&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some((e=>e.selection))}get empty(){return 0==this.flags&&0==this.transactions.length}}var h$=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(h$||(h$={}));const u$=h$.LTR,d$=h$.RTL;function f$(e){let t=[];for(let i=0;i<e.length;i++)t.push(1<<+e[i]);return t}const p$=f$("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),m$=f$("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),g$=Object.create(null),O$=[];for(let e of["()","[]","{}"]){let t=e.charCodeAt(0),i=e.charCodeAt(1);g$[t]=i,g$[i]=-t}const v$=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;class y${constructor(e,t,i){this.from=e,this.to=t,this.level=i}get dir(){return this.level%2?d$:u$}side(e,t){return this.dir==t==e?this.to:this.from}static find(e,t,i,n){let r=-1;for(let o=0;o<e.length;o++){let s=e[o];if(s.from<=t&&s.to>=t){if(s.level==i)return o;(r<0||(0!=n?n<0?s.from<t:s.to>t:e[r].level>s.level))&&(r=o)}}if(r<0)throw new RangeError("Index out of range");return r}}const b$=[];function w$(e,t){let i=e.length,n=t==u$?1:2,r=t==u$?2:1;if(!e||1==n&&!v$.test(e))return x$(i);for(let t=0,r=n,s=n;t<i;t++){let i=(o=e.charCodeAt(t))<=247?p$[o]:1424<=o&&o<=1524?2:1536<=o&&o<=1785?m$[o-1536]:1774<=o&&o<=2220?4:8192<=o&&o<=8203||8204==o?256:1;512==i?i=r:8==i&&4==s&&(i=16),b$[t]=4==i?2:i,7&i&&(s=i),r=i}var o;for(let e=0,t=n,r=n;e<i;e++){let n=b$[e];if(128==n)e<i-1&&t==b$[e+1]&&24&t?n=b$[e]=t:b$[e]=256;else if(64==n){let n=e+1;for(;n<i&&64==b$[n];)n++;let o=e&&8==t||n<i&&8==b$[n]?1==r?1:8:256;for(let t=e;t<n;t++)b$[t]=o;e=n-1}else 8==n&&1==r&&(b$[e]=1);t=n,7&n&&(r=n)}for(let t,o,s,l=0,a=0,c=0;l<i;l++)if(o=g$[t=e.charCodeAt(l)])if(o<0){for(let e=a-3;e>=0;e-=3)if(O$[e+1]==-o){let t=O$[e+2],i=2&t?n:4&t?1&t?r:n:0;i&&(b$[l]=b$[O$[e]]=i),a=e;break}}else{if(189==O$.length)break;O$[a++]=l,O$[a++]=t,O$[a++]=c}else if(2==(s=b$[l])||1==s){let e=s==n;c=e?0:1;for(let t=a-3;t>=0;t-=3){let i=O$[t+2];if(2&i)break;if(e)O$[t+2]|=2;else{if(4&i)break;O$[t+2]|=4}}}for(let e=0;e<i;e++)if(256==b$[e]){let t=e+1;for(;t<i&&256==b$[t];)t++;let r=1==(e?b$[e-1]:n),o=r==(1==(t<i?b$[t]:n))?r?1:2:n;for(let i=e;i<t;i++)b$[i]=o;e=t-1}let s=[];if(1==n)for(let e=0;e<i;){let t=e,n=1!=b$[e++];for(;e<i&&n==(1!=b$[e]);)e++;if(n)for(let i=e;i>t;){let e=i,n=2!=b$[--i];for(;i>t&&n==(2!=b$[i-1]);)i--;s.push(new y$(i,e,n?2:1))}else s.push(new y$(t,e,0))}else for(let e=0;e<i;){let t=e,n=2==b$[e++];for(;e<i&&n==(2==b$[e]);)e++;s.push(new y$(t,e,n?1:2))}return s}function x$(e){return[new y$(0,e,0)]}let S$="";function k$(e,t,i,n,r){var o;let s=n.head-e.from,l=-1;if(0==s){if(!r||!e.length)return null;t[0].level!=i&&(s=t[0].side(!1,i),l=0)}else if(s==e.length){if(r)return null;let e=t[t.length-1];e.level!=i&&(s=e.side(!0,i),l=t.length-1)}l<0&&(l=y$.find(t,s,null!==(o=n.bidiLevel)&&void 0!==o?o:-1,n.assoc));let a=t[l];s==a.side(r,i)&&(a=t[l+=r?1:-1],s=a.side(!r,i));let c=r==(a.dir==i),h=dg(e.text,s,c);if(S$=e.text.slice(Math.min(s,h),Math.max(s,h)),h!=a.side(r,i))return Cg.cursor(h+e.from,c?-1:1,a.level);let u=l==(r?t.length-1:0)?null:t[l+(r?1:-1)];return u||a.level==i?u&&u.level<a.level?Cg.cursor(u.side(!r,i)+e.from,r?1:-1,u.level):Cg.cursor(h+e.from,r?-1:1,a.level):Cg.cursor(r?e.to:e.from,r?-1:1,i)}const $$="";class _${constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(xO.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=$$}readRange(e,t){if(!e)return this;let i=e.parentNode;for(let n=e;;){this.findPointBefore(i,n),this.readNode(n);let e=n.nextSibling;if(e==t)break;let r=YS.get(n),o=YS.get(e);(r&&o?r.breakAfter:(r?r.breakAfter:T$(n))||T$(e)&&("BR"!=n.nodeName||n.cmIgnore))&&this.lineBreak(),n=e}return this.findPointBefore(i,t),this}readTextNode(e){let t=e.nodeValue;for(let i of this.points)i.node==e&&(i.pos=this.text.length+Math.min(i.offset,t.length));for(let i=0,n=this.lineSeparator?null:/\r\n?|\n/g;;){let r,o=-1,s=1;if(this.lineSeparator?(o=t.indexOf(this.lineSeparator,i),s=this.lineSeparator.length):(r=n.exec(t))&&(o=r.index,s=r[0].length),this.append(t.slice(i,o<0?t.length:o)),o<0)break;if(this.lineBreak(),s>1)for(let t of this.points)t.node==e&&t.pos>this.text.length&&(t.pos-=s-1);i=o+s}}readNode(e){if(e.cmIgnore)return;let t=YS.get(e),i=t&&t.overrideDOMText;if(null!=i){this.findPointInside(e,i.length);for(let e=i.iter();!e.next().done;)e.lineBreak?this.lineBreak():this.append(e.value)}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let i of this.points)i.node==e&&e.childNodes[i.offset]==t&&(i.pos=this.text.length)}findPointInside(e,t){for(let i of this.points)(3==e.nodeType?i.node==e:e.contains(i.node))&&(i.pos=this.text.length+Math.min(t,i.offset))}}function T$(e){return 1==e.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}class Q${constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class P$ extends YS{constructor(e){super(),this.view=e,this.compositionDeco=Ak.none,this.decorations=[],this.dynamicDecorationMap=[],this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new qk],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new a$(0,0,0,e.state.doc.length)],0)}get editorView(){return this.view}get length(){return this.view.state.doc.length}update(e){let t=e.changedRanges;this.minWidth>0&&t.length&&(t.every((({fromA:e,toA:t})=>t<this.minWidthFrom||e>this.minWidthTo))?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.view.inputState.composing<0?this.compositionDeco=Ak.none:(e.transactions.length||this.dirty)&&(this.compositionDeco=function(e,t){let i=C$(e);if(!i)return Ak.none;let{from:n,to:r,node:o,text:s}=i,l=t.mapPos(n,1),a=Math.max(l,t.mapPos(r,-1)),{state:c}=e,h=3==o.nodeType?o.nodeValue:new _$([],c).readRange(o.firstChild,null).text;if(a-l<h.length)if(c.doc.sliceString(l,Math.min(c.doc.length,l+h.length),$$)==h)a=l+h.length;else{if(c.doc.sliceString(Math.max(0,a-h.length),a,$$)!=h)return Ak.none;l=a-h.length}else if(c.doc.sliceString(l,a,$$)!=h)return Ak.none;let u=YS.get(o);u instanceof vk?u=u.widget.topView:u&&(u.parent=null);return Ak.set(Ak.replace({widget:new R$(o,s,u),inclusive:!0}).range(l,a))}(this.view,e.changes)),(fk.ie||fk.chrome)&&!this.compositionDeco.size&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let i=function(e,t,i){let n=new M$;return QO.compare(e,t,i,n),n.changes}(this.decorations,this.updateDeco(),e.changes);return t=a$.extendWithRanges(t,i),(0!=this.dirty||0!=t.length)&&(this.updateInner(t,e.startState.doc.length),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t);let{observer:i}=this.view;i.ignore((()=>{this.dom.style.height=this.view.viewState.contentHeight+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let e=fk.chrome||fk.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.sync(e),this.dirty=0,e&&(e.written||i.selectionRange.focusNode!=e.node)&&(this.forceSelection=!0),this.dom.style.height=""}));let n=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let e of this.children)e instanceof Nk&&e.widget instanceof A$&&n.push(e.dom);i.updateGaps(n)}updateChildren(e,t){let i=this.childCursor(t);for(let t=e.length-1;;t--){let n=t>=0?e[t]:null;if(!n)break;let{fromA:r,toA:o,fromB:s,toB:l}=n,{content:a,breakAtStart:c,openStart:h,openEnd:u}=jk.build(this.view.state.doc,s,l,this.decorations,this.dynamicDecorationMap),{i:d,off:f}=i.findPos(o,1),{i:p,off:m}=i.findPos(r,-1);ek(this,p,m,d,f,a,c,h,u)}}updateSelection(e=!1,t=!1){if(!e&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange(),!t&&!this.mayControlSelection()||fk.ios&&this.view.inputState.rapidCompositionStart)return;let i=this.forceSelection;this.forceSelection=!1;let n=this.view.state.selection.main,r=this.domAtPos(n.anchor),o=n.empty?r:this.domAtPos(n.head);if(fk.gecko&&n.empty&&(1==(s=r).node.nodeType&&s.node.firstChild&&(0==s.offset||"false"==s.node.childNodes[s.offset-1].contentEditable)&&(s.offset==s.node.childNodes.length||"false"==s.node.childNodes[s.offset].contentEditable))){let e=document.createTextNode("");this.view.observer.ignore((()=>r.node.insertBefore(e,r.node.childNodes[r.offset]||null))),r=o=new ZS(e,0),i=!0}var s;let l=this.view.observer.selectionRange;!i&&l.focusNode&&DS(r.node,r.offset,l.anchorNode,l.anchorOffset)&&DS(o.node,o.offset,l.focusNode,l.focusOffset)||(this.view.observer.ignore((()=>{fk.android&&fk.chrome&&this.dom.contains(l.focusNode)&&function(e,t){for(let i=e;i&&i!=t;i=i.assignedSlot||i.parentNode)if(1==i.nodeType&&"false"==i.contentEditable)return!0;return!1}(l.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let e=CS(this.view.root);if(e)if(n.empty){if(fk.gecko){let e=function(e,t){return 1!=e.nodeType?0:(t&&"false"==e.childNodes[t-1].contentEditable?1:0)|(t<e.childNodes.length&&"false"==e.childNodes[t].contentEditable?2:0)}(r.node,r.offset);if(e&&3!=e){let t=E$(r.node,r.offset,1==e?1:-1);t&&(r=new ZS(t,1==e?0:t.nodeValue.length))}}e.collapse(r.node,r.offset),null!=n.bidiLevel&&null!=l.cursorBidiLevel&&(l.cursorBidiLevel=n.bidiLevel)}else if(e.extend)e.collapse(r.node,r.offset),e.extend(o.node,o.offset);else{let t=document.createRange();n.anchor>n.head&&([r,o]=[o,r]),t.setEnd(o.node,o.offset),t.setStart(r.node,r.offset),e.removeAllRanges(),e.addRange(t)}else;})),this.view.observer.setSelectionRange(r,o)),this.impreciseAnchor=r.precise?null:new ZS(l.anchorNode,l.anchorOffset),this.impreciseHead=o.precise?null:new ZS(l.focusNode,l.focusOffset)}enforceCursorAssoc(){if(this.compositionDeco.size)return;let e=this.view.state.selection.main,t=CS(this.view.root);if(!(t&&e.empty&&e.assoc&&t.modify))return;let i=qk.find(this,e.head);if(!i)return;let n=i.posAtStart;if(e.head==n||e.head==n+i.length)return;let r=this.coordsAt(e.head,-1),o=this.coordsAt(e.head,1);if(!r||!o||r.bottom>o.top)return;let s=this.domAtPos(e.head+e.assoc);t.collapse(s.node,s.offset),t.modify("move",e.assoc<0?"forward":"backward","lineboundary")}mayControlSelection(){let e=this.view.root.activeElement;return e==this.dom||ES(this.dom,this.view.observer.selectionRange)&&!(e&&this.dom.contains(e))}nearest(e){for(let t=e;t;){let e=YS.get(t);if(e&&e.rootView==this)return e;t=t.parentNode}return null}posFromDOM(e,t){let i=this.nearest(e);if(!i)throw new RangeError("Trying to find position for a DOM position outside of the document");return i.localPosFromDOM(e,t)+i.posAtStart}domAtPos(e){let{i:t,off:i}=this.childCursor().findPos(e,-1);for(;t<this.children.length-1;){let e=this.children[t];if(i<e.length||e instanceof qk)break;t++,i=0}return this.children[t].domAtPos(i)}coordsAt(e,t){for(let i=this.length,n=this.children.length-1;;n--){let r=this.children[n],o=i-r.breakAfter-r.length;if(e>o||e==o&&r.type!=Pk.WidgetBefore&&r.type!=Pk.WidgetAfter&&(!n||2==t||this.children[n-1].breakAfter||this.children[n-1].type==Pk.WidgetBefore&&t>-2))return r.coordsAt(e-o,t);i=o}}measureVisibleLineHeights(e){let t=[],{from:i,to:n}=e,r=this.view.contentDOM.clientWidth,o=r>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,s=-1,l=this.view.textDirection==h$.LTR;for(let e=0,a=0;a<this.children.length;a++){let c=this.children[a],h=e+c.length;if(h>n)break;if(e>=i){let i=c.dom.getBoundingClientRect();if(t.push(i.height),o){let t=c.dom.lastChild,n=t?MS(t):[];if(n.length){let t=n[n.length-1],o=l?t.right-i.left:i.right-t.left;o>s&&(s=o,this.minWidth=r,this.minWidthFrom=e,this.minWidthTo=h)}}}e=h+c.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return"rtl"==getComputedStyle(this.children[t].dom).direction?h$.RTL:h$.LTR}measureTextSize(){for(let e of this.children)if(e instanceof qk){let t=e.measureTextSize();if(t)return t}let e,t,i=document.createElement("div");return i.className="cm-line",i.style.width="99999px",i.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore((()=>{this.dom.appendChild(i);let n=MS(i.firstChild)[0];e=i.getBoundingClientRect().height,t=n?n.width/27:7,i.remove()})),{lineHeight:e,charWidth:t}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new JS(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let i=0,n=0;;n++){let r=n==t.viewports.length?null:t.viewports[n],o=r?r.from-1:this.length;if(o>i){let n=t.lineBlockAt(o).bottom-t.lineBlockAt(i).top;e.push(Ak.replace({widget:new A$(n),block:!0,inclusive:!0,isBlockGap:!0}).range(i,o))}if(!r)break;i=r.to+1}return Ak.set(e)}updateDeco(){let e=this.view.state.facet(r$).map(((e,t)=>(this.dynamicDecorationMap[t]="function"==typeof e)?e(this.view):e));for(let t=e.length;t<e.length+3;t++)this.dynamicDecorationMap[t]=!1;return this.decorations=[...e,this.compositionDeco,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco]}scrollIntoView(e){let t,{range:i}=e,n=this.coordsAt(i.head,i.empty?i.assoc:i.head>i.anchor?-1:1);if(!n)return;!i.empty&&(t=this.coordsAt(i.anchor,i.anchor>i.head?-1:1))&&(n={left:Math.min(n.left,t.left),top:Math.min(n.top,t.top),right:Math.max(n.right,t.right),bottom:Math.max(n.bottom,t.bottom)});let r=0,o=0,s=0,l=0;for(let e of this.view.state.facet(s$).map((e=>e(this.view))))if(e){let{left:t,right:i,top:n,bottom:a}=e;null!=t&&(r=Math.max(r,t)),null!=i&&(o=Math.max(o,i)),null!=n&&(s=Math.max(s,n)),null!=a&&(l=Math.max(l,a))}let a={left:n.left-r,top:n.top-s,right:n.right+o,bottom:n.bottom+l};!function(e,t,i,n,r,o,s,l){let a=e.ownerDocument,c=a.defaultView;for(let h=e;h;)if(1==h.nodeType){let e,u=h==a.body;if(u)e=zS(c);else{if(h.scrollHeight<=h.clientHeight&&h.scrollWidth<=h.clientWidth){h=h.parentNode;continue}let t=h.getBoundingClientRect();e={left:t.left,right:t.left+h.clientWidth,top:t.top,bottom:t.top+h.clientHeight}}let d=0,f=0;if("nearest"==r)t.top<e.top?(f=-(e.top-t.top+s),i>0&&t.bottom>e.bottom+f&&(f=t.bottom-e.bottom+f+s)):t.bottom>e.bottom&&(f=t.bottom-e.bottom+s,i<0&&t.top-f<e.top&&(f=-(e.top+f-t.top+s)));else{let n=t.bottom-t.top,o=e.bottom-e.top;f=("center"==r&&n<=o?t.top+n/2-o/2:"start"==r||"center"==r&&i<0?t.top-s:t.bottom-o+s)-e.top}if("nearest"==n?t.left<e.left?(d=-(e.left-t.left+o),i>0&&t.right>e.right+d&&(d=t.right-e.right+d+o)):t.right>e.right&&(d=t.right-e.right+o,i<0&&t.left<e.left+d&&(d=-(e.left+d-t.left+o))):d=("center"==n?t.left+(t.right-t.left)/2-(e.right-e.left)/2:"start"==n==l?t.left-o:t.right-(e.right-e.left)+o)-e.left,d||f)if(u)c.scrollBy(d,f);else{if(f){let e=h.scrollTop;h.scrollTop+=f,f=h.scrollTop-e}if(d){let e=h.scrollLeft;h.scrollLeft+=d,d=h.scrollLeft-e}t={left:t.left-d,top:t.top-f,right:t.right-d,bottom:t.bottom-f}}if(u)break;h=h.assignedSlot||h.parentNode,n=r="nearest"}else{if(11!=h.nodeType)break;h=h.host}}(this.view.scrollDOM,a,i.head<i.anchor?-1:1,e.x,e.y,e.xMargin,e.yMargin,this.view.textDirection==h$.LTR)}}class A$ extends Qk{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get estimatedHeight(){return this.height}}function C$(e){let t=e.observer.selectionRange,i=t.focusNode&&E$(t.focusNode,t.focusOffset,0);if(!i)return null;let n=e.docView.nearest(i);if(!n)return null;if(n instanceof qk){let e=i;for(;e.parentNode!=n.dom;)e=e.parentNode;let t=e.previousSibling;for(;t&&!YS.get(t);)t=t.previousSibling;let r=t?YS.get(t).posAtEnd:n.posAtStart;return{from:r,to:r,node:e,text:i}}{for(;;){let{parent:e}=n;if(!e)return null;if(e instanceof qk)break;n=e}let e=n.posAtStart;return{from:e,to:e+n.length,node:n.dom,text:i}}}class R$ extends Qk{constructor(e,t,i){super(),this.top=e,this.text=t,this.topView=i}eq(e){return this.top==e.top&&this.text==e.text}toDOM(){return this.top}ignoreEvent(){return!1}get customView(){return vk}}function E$(e,t,i){for(;;){if(3==e.nodeType)return e;if(1==e.nodeType&&t>0&&i<=0)t=jS(e=e.childNodes[t-1]);else{if(!(1==e.nodeType&&t<e.childNodes.length&&i>=0))return null;e=e.childNodes[t],t=0}}}class M${constructor(){this.changes=[]}compareRange(e,t){Dk(e,t,this.changes)}comparePoint(e,t){Dk(e,t,this.changes)}}function D$(e,t){return t.left>e?t.left-e:Math.max(0,e-t.right)}function q$(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function N$(e,t){return e.top<t.bottom-1&&e.bottom>t.top+1}function j$(e,t){return t<e.top?{top:t,left:e.left,right:e.right,bottom:e.bottom}:e}function V$(e,t){return t>e.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function W$(e,t,i){let n,r,o,s,l,a,c,h,u=!1;for(let d=e.firstChild;d;d=d.nextSibling){let e=MS(d);for(let f=0;f<e.length;f++){let p=e[f];r&&N$(r,p)&&(p=j$(V$(p,r.bottom),r.top));let m=D$(t,p),g=q$(i,p);if(0==m&&0==g)return 3==d.nodeType?z$(d,t,i):W$(d,t,i);(!n||s>g||s==g&&o>m)&&(n=d,r=p,o=m,s=g,u=!m||(m>0?f<e.length-1:f>0)),0==m?i>p.bottom&&(!c||c.bottom<p.bottom)?(l=d,c=p):i<p.top&&(!h||h.top>p.top)&&(a=d,h=p):c&&N$(c,p)?c=V$(c,p.bottom):h&&N$(h,p)&&(h=j$(h,p.top))}}if(c&&c.bottom>=i?(n=l,r=c):h&&h.top<=i&&(n=a,r=h),!n)return{node:e,offset:0};let d=Math.max(r.left,Math.min(r.right,t));return 3==n.nodeType?z$(n,d,i):u&&"false"!=n.contentEditable?W$(n,d,i):{node:e,offset:Array.prototype.indexOf.call(e.childNodes,n)+(t>=(r.left+r.right)/2?1:0)}}function z$(e,t,i){let n=e.nodeValue.length,r=-1,o=1e9,s=0;for(let l=0;l<n;l++){let n=US(e,l,l+1).getClientRects();for(let a=0;a<n.length;a++){let c=n[a];if(c.top==c.bottom)continue;s||(s=t-c.left);let h=(c.top>i?c.top-i:i-c.bottom)-1;if(c.left-1<=t&&c.right+1>=t&&h<o){let i=t>=(c.left+c.right)/2,n=i;if(fk.chrome||fk.gecko){US(e,l).getBoundingClientRect().left==c.right&&(n=!i)}if(h<=0)return{node:e,offset:l+(n?1:0)};r=l+(n?1:0),o=h}}}return{node:e,offset:r>-1?r:s>0?e.nodeValue.length:0}}function L$(e,{x:t,y:i},n,r=-1){var o;let s,l=e.contentDOM.getBoundingClientRect(),a=l.top+e.viewState.paddingTop,{docHeight:c}=e.viewState,h=i-a;if(h<0)return 0;if(h>c)return e.state.doc.length;for(let t=e.defaultLineHeight/2,i=!1;s=e.elementAtHeight(h),s.type!=Pk.Text;)for(;h=r>0?s.bottom+t:s.top-t,!(h>=0&&h<=c);){if(i)return n?null:0;i=!0,r=-r}i=a+h;let u=s.from;if(u<e.viewport.from)return 0==e.viewport.from?0:n?null:B$(e,l,s,t,i);if(u>e.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:n?null:B$(e,l,s,t,i);let d=e.dom.ownerDocument,f=e.root.elementFromPoint?e.root:d,p=f.elementFromPoint(t,i);p&&!e.contentDOM.contains(p)&&(p=null),p||(t=Math.max(l.left+1,Math.min(l.right-1,t)),p=f.elementFromPoint(t,i),p&&!e.contentDOM.contains(p)&&(p=null));let m,g=-1;if(p&&0!=(null===(o=e.docView.nearest(p))||void 0===o?void 0:o.isEditable))if(d.caretPositionFromPoint){let e=d.caretPositionFromPoint(t,i);e&&({offsetNode:m,offset:g}=e)}else if(d.caretRangeFromPoint){let n=d.caretRangeFromPoint(t,i);n&&(({startContainer:m,startOffset:g}=n),(!e.contentDOM.contains(m)||fk.safari&&function(e,t,i){let n;if(3!=e.nodeType||t!=(n=e.nodeValue.length))return!1;for(let t=e.nextSibling;t;t=t.nextSibling)if(1!=t.nodeType||"BR"!=t.nodeName)return!1;return US(e,n-1,n).getBoundingClientRect().left>i}(m,g,t)||fk.chrome&&function(e,t,i){if(0!=t)return!1;for(let t=e;;){let e=t.parentNode;if(!e||1!=e.nodeType||e.firstChild!=t)return!1;if(e.classList.contains("cm-line"))break;t=e}let n=1==e.nodeType?e.getBoundingClientRect():US(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect();return i-n.left>5}(m,g,t))&&(m=void 0))}if(!m||!e.docView.dom.contains(m)){let n=qk.find(e.docView,u);if(!n)return h>s.top+s.height/2?s.to:s.from;({node:m,offset:g}=W$(n.dom,t,i))}return e.docView.posFromDOM(m,g)}function B$(e,t,i,n,r){let o=Math.round((n-t.left)*e.defaultCharacterWidth);if(e.lineWrapping&&i.height>1.5*e.defaultLineHeight){o+=Math.floor((r-i.top)/e.defaultLineHeight)*e.viewState.heightOracle.lineLength}let s=e.state.sliceDoc(i.from,i.to);return i.from+zO(s,o,e.state.tabSize)}function I$(e,t,i,n){let r=e.state.doc.lineAt(t.head),o=e.bidiSpans(r),s=e.textDirectionAt(r.from);for(let l=t,a=null;;){let t=k$(r,o,s,l,i),c=S$;if(!t){if(r.number==(i?e.state.doc.lines:1))return l;c="\n",r=e.state.doc.line(r.number+(i?1:-1)),o=e.bidiSpans(r),t=Cg.cursor(i?r.from:r.to)}if(a){if(!a(c))return l}else{if(!n)return t;a=n(c)}l=t}}function X$(e,t,i){let n=e.state.facet(o$).map((t=>t(e)));for(;;){let e=!1;for(let r of n)r.between(i.from-1,i.from+1,((n,r,o)=>{i.from>n&&i.from<r&&(i=t.from>i.from?Cg.cursor(n,1):Cg.cursor(r,-1),e=!0)}));if(!e)return i}}class U${constructor(e){this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.chromeScrollHack=-1,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.registeredEvents=[],this.customHandlers=[],this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.rapidCompositionStart=!1,this.mouseSelection=null;for(let t in Y$){let i=Y$[t];e.contentDOM.addEventListener(t,(n=>{G$(e,n)&&!this.ignoreDuringComposition(n)&&("keydown"==t&&this.keydown(e,n)||(this.mustFlushObserver(n)&&e.observer.forceFlush(),this.runCustomHandlers(t,e,n)?n.preventDefault():i(e,n)))}),K$[t]),this.registeredEvents.push(t)}fk.chrome&&102==fk.chrome_version&&e.scrollDOM.addEventListener("wheel",(()=>{this.chromeScrollHack<0?e.contentDOM.style.pointerEvents="none":window.clearTimeout(this.chromeScrollHack),this.chromeScrollHack=setTimeout((()=>{this.chromeScrollHack=-1,e.contentDOM.style.pointerEvents=""}),100)}),{passive:!0}),this.notifiedFocused=e.hasFocus,fk.safari&&e.contentDOM.addEventListener("input",(()=>null))}setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}ensureHandlers(e,t){var i;let n;this.customHandlers=[];for(let r of t)if(n=null===(i=r.update(e).spec)||void 0===i?void 0:i.domEventHandlers){this.customHandlers.push({plugin:r.value,handlers:n});for(let t in n)this.registeredEvents.indexOf(t)<0&&"scroll"!=t&&(this.registeredEvents.push(t),e.contentDOM.addEventListener(t,(i=>{G$(e,i)&&this.runCustomHandlers(t,e,i)&&i.preventDefault()})))}}runCustomHandlers(e,t,i){for(let n of this.customHandlers){let r=n.handlers[e];if(r)try{if(r.call(n.plugin,i,t)||i.defaultPrevented)return!0}catch(e){Gk(t.state,e)}}return!1}runScrollHandlers(e,t){this.lastScrollTop=e.scrollDOM.scrollTop,this.lastScrollLeft=e.scrollDOM.scrollLeft;for(let i of this.customHandlers){let n=i.handlers.scroll;if(n)try{n.call(i.plugin,t,e)}catch(t){Gk(e.state,t)}}}keydown(e,t){if(this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),9==t.keyCode&&Date.now()<this.lastEscPress+2e3)return!0;if(fk.android&&fk.chrome&&!t.synthetic&&(13==t.keyCode||8==t.keyCode))return e.observer.delayAndroidKey(t.key,t.keyCode),!0;let i;return!(!fk.ios||!(i=F$.find((e=>e.keyCode==t.keyCode)))||t.ctrlKey||t.altKey||t.metaKey||t.synthetic)&&(this.pendingIOSKey=i,setTimeout((()=>this.flushIOSKey(e)),250),!0)}flushIOSKey(e){let t=this.pendingIOSKey;return!!t&&(this.pendingIOSKey=void 0,FS(e.contentDOM,t.key,t.keyCode))}ignoreDuringComposition(e){return!!/^key/.test(e.type)&&(this.composing>0||!!(fk.safari&&!fk.ios&&Date.now()-this.compositionEndedAt<100)&&(this.compositionEndedAt=0,!0))}mustFlushObserver(e){return"keydown"==e.type&&229!=e.keyCode||"compositionend"==e.type&&!fk.ios}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}const F$=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],H$=[16,17,18,20,91,92,224,225];class Z${constructor(e,t,i,n){this.view=e,this.style=i,this.mustSelect=n,this.lastEvent=t;let r=e.contentDOM.ownerDocument;r.addEventListener("mousemove",this.move=this.move.bind(this)),r.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(xO.allowMultipleSelections)&&function(e,t){let i=e.state.facet(zk);return i.length?i[0](t):fk.mac?t.metaKey:t.ctrlKey}(e,t),this.dragMove=function(e,t){let i=e.state.facet(Lk);return i.length?i[0](t):fk.mac?!t.altKey:!t.ctrlKey}(e,t),this.dragging=!(!function(e,t){let{main:i}=e.state.selection;if(i.empty)return!1;let n=CS(e.root);if(!n||0==n.rangeCount)return!0;let r=n.getRangeAt(0).getClientRects();for(let e=0;e<r.length;e++){let i=r[e];if(i.left<=t.clientX&&i.right>=t.clientX&&i.top<=t.clientY&&i.bottom>=t.clientY)return!0}return!1}(e,t)||1!=h_(t))&&null,!1===this.dragging&&(t.preventDefault(),this.select(t))}move(e){if(0==e.buttons)return this.destroy();!1===this.dragging&&this.select(this.lastEvent=e)}up(e){null==this.dragging&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}select(e){let t=this.style.get(e,this.extend,this.multiple);!this.mustSelect&&t.eq(this.view.state.selection)&&t.main.assoc==this.view.state.selection.main.assoc||this.view.dispatch({selection:t,userEvent:"select.pointer",scrollIntoView:!0}),this.mustSelect=!1}update(e){e.docChanged&&this.dragging&&(this.dragging=this.dragging.map(e.changes)),this.style.update(e)&&setTimeout((()=>this.select(this.lastEvent)),20)}}function G$(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let i,n=t.target;n!=e.contentDOM;n=n.parentNode)if(!n||11==n.nodeType||(i=YS.get(n))&&i.ignoreEvent(t))return!1;return!0}const Y$=Object.create(null),K$=Object.create(null),J$=fk.ie&&fk.ie_version<15||fk.ios&&fk.webkit_version<604;function e_(e,t){let i,{state:n}=e,r=1,o=n.toText(t),s=o.lines==n.selection.ranges.length,l=null!=d_&&n.selection.ranges.every((e=>e.empty))&&d_==o.toString();if(l){let e=-1;i=n.changeByRange((i=>{let l=n.doc.lineAt(i.from);if(l.from==e)return{range:i};e=l.from;let a=n.toText((s?o.line(r++).text:t)+n.lineBreak);return{changes:{from:l.from,insert:a},range:Cg.cursor(i.from+a.length)}}))}else i=s?n.changeByRange((e=>{let t=o.line(r++);return{changes:{from:e.from,to:e.to,insert:t.text},range:Cg.cursor(e.from+t.length)}})):n.replaceSelection(o);e.dispatch(i,{userEvent:"input.paste",scrollIntoView:!0})}function t_(e,t,i,n){if(1==n)return Cg.cursor(t,i);if(2==n)return function(e,t,i=1){let n=e.charCategorizer(t),r=e.doc.lineAt(t),o=t-r.from;if(0==r.length)return Cg.cursor(t);0==o?i=1:o==r.length&&(i=-1);let s=o,l=o;i<0?s=dg(r.text,o,!1):l=dg(r.text,o);let a=n(r.text.slice(s,l));for(;s>0;){let e=dg(r.text,s,!1);if(n(r.text.slice(e,s))!=a)break;s=e}for(;l<r.length;){let e=dg(r.text,l);if(n(r.text.slice(l,e))!=a)break;l=e}return Cg.range(s+r.from,l+r.from)}(e.state,t,i);{let i=qk.find(e.docView,t),n=e.state.doc.lineAt(i?i.posAtEnd:t),r=i?i.posAtStart:n.from,o=i?i.posAtEnd:n.to;return o<e.state.doc.length&&o==n.to&&o++,Cg.range(r,o)}}Y$.keydown=(e,t)=>{e.inputState.setSelectionOrigin("select"),27==t.keyCode?e.inputState.lastEscPress=Date.now():H$.indexOf(t.keyCode)<0&&(e.inputState.lastEscPress=0)},Y$.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")},Y$.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")},K$.touchstart=K$.touchmove={passive:!0},Y$.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3&&1==h_(t))return;let i=null;for(let n of e.state.facet(Bk))if(i=n(e,t),i)break;if(i||0!=t.button||(i=function(e,t){let i=o_(e,t),n=h_(t),r=e.state.selection,o=i,s=t;return{update(e){e.docChanged&&(i&&(i.pos=e.changes.mapPos(i.pos)),r=r.map(e.changes),s=null)},get(t,l,a){let c;if(s&&t.clientX==s.clientX&&t.clientY==s.clientY?c=o:(c=o=o_(e,t),s=t),!c||!i)return r;let h=t_(e,c.pos,c.bias,n);if(i.pos!=c.pos&&!l){let t=t_(e,i.pos,i.bias,n),r=Math.min(t.from,h.from),o=Math.max(t.to,h.to);h=r<h.from?Cg.range(r,o):Cg.range(o,r)}return l?r.replaceRange(r.main.extend(h.from,h.to)):a&&r.ranges.length>1&&r.ranges.some((e=>e.eq(h)))?function(e,t){for(let i=0;;i++)if(e.ranges[i].eq(t))return Cg.create(e.ranges.slice(0,i).concat(e.ranges.slice(i+1)),e.mainIndex==i?0:e.mainIndex-(e.mainIndex>i?1:0))}(r,h):a?r.addRange(h):Cg.create([h])}}}(e,t)),i){let n=e.root.activeElement!=e.contentDOM;n&&e.observer.ignore((()=>XS(e.contentDOM))),e.inputState.startMouseSelection(new Z$(e,t,i,n))}};let i_=(e,t)=>e>=t.top&&e<=t.bottom,n_=(e,t,i)=>i_(t,i)&&e>=i.left&&e<=i.right;function r_(e,t,i,n){let r=qk.find(e.docView,t);if(!r)return 1;let o=t-r.posAtStart;if(0==o)return 1;if(o==r.length)return-1;let s=r.coordsAt(o,-1);if(s&&n_(i,n,s))return-1;let l=r.coordsAt(o,1);return l&&n_(i,n,l)?1:s&&i_(n,s)?-1:1}function o_(e,t){let i=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:i,bias:r_(e,i,t.clientX,t.clientY)}}const s_=fk.ie&&fk.ie_version<=11;let l_=null,a_=0,c_=0;function h_(e){if(!s_)return e.detail;let t=l_,i=c_;return l_=e,c_=Date.now(),a_=!t||i>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(a_+1)%3:1}function u_(e,t,i,n){if(!i)return;let r=e.posAtCoords({x:t.clientX,y:t.clientY},!1);t.preventDefault();let{mouseSelection:o}=e.inputState,s=n&&o&&o.dragging&&o.dragMove?{from:o.dragging.from,to:o.dragging.to}:null,l={from:r,insert:i},a=e.state.changes(s?[s,l]:l);e.focus(),e.dispatch({changes:a,selection:{anchor:a.mapPos(r,-1),head:a.mapPos(r,1)},userEvent:s?"move.drop":"input.drop"})}Y$.dragstart=(e,t)=>{let{selection:{main:i}}=e.state,{mouseSelection:n}=e.inputState;n&&(n.dragging=i),t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(i.from,i.to)),t.dataTransfer.effectAllowed="copyMove")},Y$.drop=(e,t)=>{if(!t.dataTransfer)return;if(e.state.readOnly)return t.preventDefault();let i=t.dataTransfer.files;if(i&&i.length){t.preventDefault();let n=Array(i.length),r=0,o=()=>{++r==i.length&&u_(e,t,n.filter((e=>null!=e)).join(e.state.lineBreak),!1)};for(let e=0;e<i.length;e++){let t=new FileReader;t.onerror=o,t.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(t.result)||(n[e]=t.result),o()},t.readAsText(i[e])}}else u_(e,t,t.dataTransfer.getData("Text"),!0)},Y$.paste=(e,t)=>{if(e.state.readOnly)return t.preventDefault();e.observer.flush();let i=J$?null:t.clipboardData;i?(e_(e,i.getData("text/plain")),t.preventDefault()):function(e){let t=e.dom.parentNode;if(!t)return;let i=t.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.focus(),setTimeout((()=>{e.focus(),i.remove(),e_(e,i.value)}),50)}(e)};let d_=null;function f_(e){setTimeout((()=>{e.hasFocus!=e.inputState.notifiedFocused&&e.update([])}),10)}function p_(e,t){if(e.docView.compositionDeco.size){e.inputState.rapidCompositionStart=t;try{e.update([])}finally{e.inputState.rapidCompositionStart=!1}}}Y$.copy=Y$.cut=(e,t)=>{let{text:i,ranges:n,linewise:r}=function(e){let t=[],i=[],n=!1;for(let n of e.selection.ranges)n.empty||(t.push(e.sliceDoc(n.from,n.to)),i.push(n));if(!t.length){let r=-1;for(let{from:n}of e.selection.ranges){let o=e.doc.lineAt(n);o.number>r&&(t.push(o.text),i.push({from:o.from,to:Math.min(e.doc.length,o.to+1)})),r=o.number}n=!0}return{text:t.join(e.lineBreak),ranges:i,linewise:n}}(e.state);if(!i&&!r)return;d_=r?i:null;let o=J$?null:t.clipboardData;o?(t.preventDefault(),o.clearData(),o.setData("text/plain",i)):function(e,t){let i=e.dom.parentNode;if(!i)return;let n=i.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.value=t,n.focus(),n.selectionEnd=t.length,n.selectionStart=0,setTimeout((()=>{n.remove(),e.focus()}),50)}(e,i),"cut"!=t.type||e.state.readOnly||e.dispatch({changes:n,scrollIntoView:!0,userEvent:"delete.cut"})},Y$.focus=e=>{e.inputState.lastFocusTime=Date.now(),e.scrollDOM.scrollTop||!e.inputState.lastScrollTop&&!e.inputState.lastScrollLeft||(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),f_(e)},Y$.blur=e=>{e.observer.clearSelectionRange(),f_(e)},Y$.compositionstart=Y$.compositionupdate=e=>{null==e.inputState.compositionFirstChange&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0,e.docView.compositionDeco.size&&(e.observer.flush(),p_(e,!0)))},Y$.compositionend=e=>{e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionFirstChange=null,setTimeout((()=>{e.inputState.composing<0&&p_(e,!1)}),50)},Y$.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()},Y$.beforeinput=(e,t)=>{var i;let n;if(fk.chrome&&fk.android&&(n=F$.find((e=>e.inputType==t.inputType)))&&(e.observer.delayAndroidKey(n.key,n.keyCode),"Backspace"==n.key||"Delete"==n.key)){let t=(null===(i=window.visualViewport)||void 0===i?void 0:i.height)||0;setTimeout((()=>{var i;((null===(i=window.visualViewport)||void 0===i?void 0:i.height)||0)>t+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())}),100)}};const m_=["pre-wrap","normal","pre-line","break-spaces"];class g_{constructor(){this.doc=eg.empty,this.lineWrapping=!1,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.lineLength=30,this.heightChanged=!1}heightForGap(e,t){let i=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(i+=Math.ceil((t-e-i*this.lineLength*.5)/this.lineLength)),this.lineHeight*i}heightForLine(e){if(!this.lineWrapping)return this.lineHeight;return(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return m_.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let i=0;i<e.length;i++){let n=e[i];n<0?i++:this.heightSamples[Math.floor(10*n)]||(t=!0,this.heightSamples[Math.floor(10*n)]=!0)}return t}refresh(e,t,i,n,r){let o=m_.indexOf(e)>-1,s=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=o;if(this.lineWrapping=o,this.lineHeight=t,this.charWidth=i,this.lineLength=n,s){this.heightSamples={};for(let e=0;e<r.length;e++){let t=r[e];t<0?e++:this.heightSamples[Math.floor(10*t)]=!0}}return s}}class O_{constructor(e,t){this.from=e,this.heights=t,this.index=0}get more(){return this.index<this.heights.length}}class v_{constructor(e,t,i,n,r){this.from=e,this.length=t,this.top=i,this.height=n,this.type=r}get to(){return this.from+this.length}get bottom(){return this.top+this.height}join(e){let t=(Array.isArray(this.type)?this.type:[this]).concat(Array.isArray(e.type)?e.type:[e]);return new v_(this.from,this.length+e.length,this.top,this.height+e.height,t)}}var y_=function(e){return e[e.ByPos=0]="ByPos",e[e.ByHeight=1]="ByHeight",e[e.ByPosNoHeight=2]="ByPosNoHeight",e}(y_||(y_={}));const b_=.001;class w_{constructor(e,t,i=2){this.length=e,this.height=t,this.flags=i}get outdated(){return(2&this.flags)>0}set outdated(e){this.flags=(e?2:0)|-3&this.flags}setHeight(e,t){this.height!=t&&(Math.abs(this.height-t)>b_&&(e.heightChanged=!0),this.height=t)}replace(e,t,i){return w_.of(i)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,i,n){let r=this;for(let o=n.length-1;o>=0;o--){let{fromA:s,toA:l,fromB:a,toB:c}=n[o],h=r.lineAt(s,y_.ByPosNoHeight,t,0,0),u=h.to>=l?h:r.lineAt(l,y_.ByPosNoHeight,t,0,0);for(c+=u.to-l,l=u.to;o>0&&h.from<=n[o-1].toA;)s=n[o-1].fromA,a=n[o-1].fromB,o--,s<h.from&&(h=r.lineAt(s,y_.ByPosNoHeight,t,0,0));a+=h.from-s,s=h.from;let d=T_.build(i,e,a,c);r=r.replace(s,l,d)}return r.updateHeight(i,0)}static empty(){return new S_(0,0)}static of(e){if(1==e.length)return e[0];let t=0,i=e.length,n=0,r=0;for(;;)if(t==i)if(n>2*r){let r=e[t-1];r.break?e.splice(--t,1,r.left,null,r.right):e.splice(--t,1,r.left,r.right),i+=1+r.break,n-=r.size}else{if(!(r>2*n))break;{let t=e[i];t.break?e.splice(i,1,t.left,null,t.right):e.splice(i,1,t.left,t.right),i+=2+t.break,r-=t.size}}else if(n<r){let i=e[t++];i&&(n+=i.size)}else{let t=e[--i];t&&(r+=t.size)}let o=0;return null==e[t-1]?(o=1,t--):null==e[t]&&(o=1,i++),new $_(w_.of(e.slice(0,t)),o,w_.of(e.slice(i)))}}w_.prototype.size=1;class x_ extends w_{constructor(e,t,i){super(e,t),this.type=i}blockAt(e,t,i,n){return new v_(n,this.length,i,this.height,this.type)}lineAt(e,t,i,n,r){return this.blockAt(0,i,n,r)}forEachLine(e,t,i,n,r,o){e<=r+this.length&&t>=r&&o(this.blockAt(0,i,n,r))}updateHeight(e,t=0,i=!1,n){return n&&n.from<=t&&n.more&&this.setHeight(e,n.heights[n.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class S_ extends x_{constructor(e,t){super(e,t,Pk.Text),this.collapsed=0,this.widgetHeight=0}replace(e,t,i){let n=i[0];return 1==i.length&&(n instanceof S_||n instanceof k_&&4&n.flags)&&Math.abs(this.length-n.length)<10?(n instanceof k_?n=new S_(n.length,this.height):n.height=this.height,this.outdated||(n.outdated=!1),n):w_.of(i)}updateHeight(e,t=0,i=!1,n){return n&&n.from<=t&&n.more?this.setHeight(e,n.heights[n.index++]):(i||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class k_ extends w_{constructor(e){super(e,0)}lines(e,t){let i=e.lineAt(t).number,n=e.lineAt(t+this.length).number;return{firstLine:i,lastLine:n,lineHeight:this.height/(n-i+1)}}blockAt(e,t,i,n){let{firstLine:r,lastLine:o,lineHeight:s}=this.lines(t,n),l=Math.max(0,Math.min(o-r,Math.floor((e-i)/s))),{from:a,length:c}=t.line(r+l);return new v_(a,c,i+s*l,s,Pk.Text)}lineAt(e,t,i,n,r){if(t==y_.ByHeight)return this.blockAt(e,i,n,r);if(t==y_.ByPosNoHeight){let{from:t,to:n}=i.lineAt(e);return new v_(t,n-t,0,0,Pk.Text)}let{firstLine:o,lineHeight:s}=this.lines(i,r),{from:l,length:a,number:c}=i.lineAt(e);return new v_(l,a,n+s*(c-o),s,Pk.Text)}forEachLine(e,t,i,n,r,o){let{firstLine:s,lineHeight:l}=this.lines(i,r);for(let a=Math.max(e,r),c=Math.min(r+this.length,t);a<=c;){let t=i.lineAt(a);a==e&&(n+=l*(t.number-s)),o(new v_(t.from,t.length,n,l,Pk.Text)),n+=l,a=t.to+1}}replace(e,t,i){let n=this.length-t;if(n>0){let e=i[i.length-1];e instanceof k_?i[i.length-1]=new k_(e.length+n):i.push(null,new k_(n-1))}if(e>0){let t=i[0];t instanceof k_?i[0]=new k_(e+t.length):i.unshift(new k_(e-1),null)}return w_.of(i)}decomposeLeft(e,t){t.push(new k_(e-1),null)}decomposeRight(e,t){t.push(null,new k_(this.length-e-1))}updateHeight(e,t=0,i=!1,n){let r=t+this.length;if(n&&n.from<=t+this.length&&n.more){let i=[],o=Math.max(t,n.from),s=-1,l=e.heightChanged;for(n.from>t&&i.push(new k_(n.from-t-1).updateHeight(e,t));o<=r&&n.more;){let t=e.doc.lineAt(o).length;i.length&&i.push(null);let r=n.heights[n.index++];-1==s?s=r:Math.abs(r-s)>=b_&&(s=-2);let l=new S_(t,r);l.outdated=!1,i.push(l),o+=t+1}o<=r&&i.push(null,new k_(r-o).updateHeight(e,o));let a=w_.of(i);return e.heightChanged=l||s<0||Math.abs(a.height-this.height)>=b_||Math.abs(s-this.lines(e.doc,t).lineHeight)>=b_,a}return(i||this.outdated)&&(this.setHeight(e,e.heightForGap(t,t+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class $_ extends w_{constructor(e,t,i){super(e.length+t+i.length,e.height+i.height,t|(e.outdated||i.outdated?2:0)),this.left=e,this.right=i,this.size=e.size+i.size}get break(){return 1&this.flags}blockAt(e,t,i,n){let r=i+this.left.height;return e<r?this.left.blockAt(e,t,i,n):this.right.blockAt(e,t,r,n+this.left.length+this.break)}lineAt(e,t,i,n,r){let o=n+this.left.height,s=r+this.left.length+this.break,l=t==y_.ByHeight?e<o:e<s,a=l?this.left.lineAt(e,t,i,n,r):this.right.lineAt(e,t,i,o,s);if(this.break||(l?a.to<s:a.from>s))return a;let c=t==y_.ByPosNoHeight?y_.ByPosNoHeight:y_.ByPos;return l?a.join(this.right.lineAt(s,c,i,o,s)):this.left.lineAt(s,c,i,n,r).join(a)}forEachLine(e,t,i,n,r,o){let s=n+this.left.height,l=r+this.left.length+this.break;if(this.break)e<l&&this.left.forEachLine(e,t,i,n,r,o),t>=l&&this.right.forEachLine(e,t,i,s,l,o);else{let a=this.lineAt(l,y_.ByPos,i,n,r);e<a.from&&this.left.forEachLine(e,a.from-1,i,n,r,o),a.to>=e&&a.from<=t&&o(a),t>a.to&&this.right.forEachLine(a.to+1,t,i,s,l,o)}}replace(e,t,i){let n=this.left.length+this.break;if(t<n)return this.balanced(this.left.replace(e,t,i),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-n,t-n,i));let r=[];e>0&&this.decomposeLeft(e,r);let o=r.length;for(let e of i)r.push(e);if(e>0&&__(r,o-1),t<this.length){let e=r.length;this.decomposeRight(t,r),__(r,e)}return w_.of(r)}decomposeLeft(e,t){let i=this.left.length;if(e<=i)return this.left.decomposeLeft(e,t);t.push(this.left),this.break&&(i++,e>=i&&t.push(null)),e>i&&this.right.decomposeLeft(e-i,t)}decomposeRight(e,t){let i=this.left.length,n=i+this.break;if(e>=n)return this.right.decomposeRight(e-n,t);e<i&&this.left.decomposeRight(e,t),this.break&&e<n&&t.push(null),t.push(this.right)}balanced(e,t){return e.size>2*t.size||t.size>2*e.size?w_.of(this.break?[e,null,t]:[e,t]):(this.left=e,this.right=t,this.height=e.height+t.height,this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,i=!1,n){let{left:r,right:o}=this,s=t+r.length+this.break,l=null;return n&&n.from<=t+r.length&&n.more?l=r=r.updateHeight(e,t,i,n):r.updateHeight(e,t,i),n&&n.from<=s+o.length&&n.more?l=o=o.updateHeight(e,s,i,n):o.updateHeight(e,s,i),l?this.balanced(r,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function __(e,t){let i,n;null==e[t]&&(i=e[t-1])instanceof k_&&(n=e[t+1])instanceof k_&&e.splice(t-1,3,new k_(i.length+1+n.length))}class T_{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let e=Math.min(t,this.lineEnd),i=this.nodes[this.nodes.length-1];i instanceof S_?i.length+=e-this.pos:(e>this.pos||!this.isCovered)&&this.nodes.push(new S_(e-this.pos,-1)),this.writtenTo=e,t>e&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,i){if(e<t||i.heightRelevant){let n=i.widget?i.widget.estimatedHeight:0;n<0&&(n=this.oracle.lineHeight);let r=t-e;i.block?this.addBlock(new x_(r,n,i.type)):(r||n>=5)&&this.addLineDeco(n,r)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenTo<e&&((this.writtenTo<e-1||null==this.nodes[this.nodes.length-1])&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new S_(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let i=new k_(t-e);return this.oracle.doc.lineAt(e).to==t&&(i.flags|=4),i}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof S_)return e;let t=new S_(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine(),e.type!=Pk.WidgetAfter||this.isCovered||this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,e.type!=Pk.WidgetBefore&&(this.covering=e)}addLineDeco(e,t){let i=this.ensureLine();i.length+=t,i.collapsed+=t,i.widgetHeight=Math.max(i.widgetHeight,e),this.writtenTo=this.pos=this.pos+t}finish(e){let t=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||t instanceof S_||this.isCovered?(this.writtenTo<this.pos||null==t)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos)):this.nodes.push(new S_(0,-1));let i=e;for(let e of this.nodes)e instanceof S_&&e.updateHeight(this.oracle,i),i+=e?e.length:1;return this.nodes}static build(e,t,i,n){let r=new T_(i,e);return QO.spans(t,i,n,r,0),r.finish(i)}}class Q_{constructor(){this.changes=[]}compareRange(){}comparePoint(e,t,i,n){(e<t||i&&i.heightRelevant||n&&n.heightRelevant)&&Dk(e,t,this.changes,5)}}function P_(e,t){let i=e.getBoundingClientRect(),n=Math.max(0,i.left),r=Math.min(innerWidth,i.right),o=Math.max(0,i.top),s=Math.min(innerHeight,i.bottom),l=e.ownerDocument.body;for(let t=e.parentNode;t&&t!=l;)if(1==t.nodeType){let i=t,l=window.getComputedStyle(i);if((i.scrollHeight>i.clientHeight||i.scrollWidth>i.clientWidth)&&"visible"!=l.overflow){let l=i.getBoundingClientRect();n=Math.max(n,l.left),r=Math.min(r,l.right),o=Math.max(o,l.top),s=t==e.parentNode?l.bottom:Math.min(s,l.bottom)}t="absolute"==l.position||"fixed"==l.position?i.offsetParent:i.parentNode}else{if(11!=t.nodeType)break;t=t.host}return{left:n-i.left,right:Math.max(n,r)-i.left,top:o-(i.top+t),bottom:Math.max(o,s)-(i.top+t)}}function A_(e,t){let i=e.getBoundingClientRect();return{left:0,right:i.right-i.left,top:t,bottom:i.bottom-(i.top+t)}}class C_{constructor(e,t,i){this.from=e,this.to=t,this.size=i}static same(e,t){if(e.length!=t.length)return!1;for(let i=0;i<e.length;i++){let n=e[i],r=t[i];if(n.from!=r.from||n.to!=r.to||n.size!=r.size)return!1}return!0}draw(e){return Ak.replace({widget:new R_(this.size,e)}).range(this.from,this.to)}}class R_ extends Qk{constructor(e,t){super(),this.size=e,this.vertical=t}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class E_{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.heightOracle=new g_,this.scaler=W_,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=h$.RTL,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1,this.stateDeco=e.facet(r$).filter((e=>"function"!=typeof e)),this.heightMap=w_.empty().applyChanges(this.stateDeco,eg.empty,this.heightOracle.setDoc(e.doc),[new a$(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Ak.set(this.lineGaps.map((e=>e.draw(!1)))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let i=0;i<=1;i++){let n=i?t.head:t.anchor;if(!e.some((({from:e,to:t})=>n>=e&&n<=t))){let{from:t,to:i}=this.lineBlockAt(n);e.push(new M_(t,i))}}this.viewports=e.sort(((e,t)=>e.from-t.from)),this.scaler=this.heightMap.height<=7e6?W_:new z_(this.heightOracle.doc,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.state.doc,0,0,(e=>{this.viewportLines.push(1==this.scaler.scale?e:L_(e,this.scaler))}))}update(e,t=null){this.state=e.state;let i=this.stateDeco;this.stateDeco=this.state.facet(r$).filter((e=>"function"!=typeof e));let n=e.changedRanges,r=a$.extendWithRanges(n,function(e,t,i){let n=new Q_;return QO.compare(e,t,i,n,0),n.changes}(i,this.stateDeco,e?e.changes:Sg.empty(this.state.doc.length))),o=this.heightMap.height;this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),r),this.heightMap.height!=o&&(e.flags|=2);let s=r.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.head<s.from||t.range.head>s.to)||!this.viewportIsAppropriate(s))&&(s=this.getViewport(0,t));let l=!e.changes.empty||2&e.flags||s.from!=this.viewport.from||s.to!=this.viewport.to;this.viewport=s,this.updateForViewport(),l&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,i=window.getComputedStyle(t),n=this.heightOracle,r=i.whiteSpace;this.defaultTextDirection="rtl"==i.direction?h$.RTL:h$.LTR;let o=this.heightOracle.mustRefreshForWrapping(r),s=o||this.mustMeasureContent||this.contentDOMHeight!=t.clientHeight;this.contentDOMHeight=t.clientHeight,this.mustMeasureContent=!1;let l=0,a=0,c=parseInt(i.paddingTop)||0,h=parseInt(i.paddingBottom)||0;this.paddingTop==c&&t