nautobot 2.4.21__py3-none-any.whl → 3.0.0a3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of nautobot might be problematic. Click here for more details.

Files changed (919) hide show
  1. nautobot/apps/choices.py +2 -2
  2. nautobot/apps/filters.py +9 -9
  3. nautobot/apps/forms.py +2 -0
  4. nautobot/apps/models.py +7 -2
  5. nautobot/apps/ui.py +20 -1
  6. nautobot/apps/utils.py +2 -3
  7. nautobot/apps/views.py +7 -1
  8. nautobot/circuits/filters.py +8 -23
  9. nautobot/circuits/navigation.py +3 -1
  10. nautobot/circuits/templates/circuits/circuit_create.html +9 -9
  11. nautobot/circuits/templates/circuits/circuit_terminations_swap.html +2 -2
  12. nautobot/circuits/templates/circuits/circuittermination_create.html +24 -33
  13. nautobot/circuits/templates/circuits/inc/circuit_termination.html +10 -10
  14. nautobot/circuits/templates/circuits/inc/circuit_termination_cable_fragment.html +13 -13
  15. nautobot/circuits/templates/circuits/inc/circuit_termination_header_extra_content.html +6 -6
  16. nautobot/circuits/templates/circuits/inc/circuit_termination_speed_fragment.html +3 -3
  17. nautobot/circuits/templates/circuits/inc/speed_widget.html +13 -13
  18. nautobot/circuits/templates/circuits/provider_create.html +9 -9
  19. nautobot/circuits/tests/integration/test_circuit.py +19 -19
  20. nautobot/circuits/tests/integration/test_circuits_bulk_operations.py +3 -0
  21. nautobot/circuits/tests/integration/test_relationships.py +4 -12
  22. nautobot/circuits/views.py +0 -2
  23. nautobot/cloud/filters.py +1 -13
  24. nautobot/cloud/navigation.py +3 -1
  25. nautobot/cloud/templates/cloud/cloudnetwork_update.html +9 -9
  26. nautobot/cloud/templates/cloud/cloudservice_update.html +6 -6
  27. nautobot/core/api/fields.py +30 -2
  28. nautobot/core/api/schema.py +1 -1
  29. nautobot/core/api/serializers.py +9 -2
  30. nautobot/core/api/urls.py +2 -0
  31. nautobot/core/api/views.py +58 -37
  32. nautobot/core/apps/__init__.py +6 -12
  33. nautobot/core/branching.py +83 -0
  34. nautobot/core/celery/__init__.py +11 -6
  35. nautobot/core/celery/backends.py +2 -0
  36. nautobot/core/celery/encoders.py +7 -0
  37. nautobot/core/celery/task.py +44 -0
  38. nautobot/core/checks.py +60 -0
  39. nautobot/core/cli/bootstrap_v3_to_v5.py +776 -0
  40. nautobot/core/constants.py +9 -0
  41. nautobot/core/context_processors.py +84 -0
  42. nautobot/core/filters.py +131 -2
  43. nautobot/core/forms/__init__.py +4 -2
  44. nautobot/core/forms/fields.py +10 -8
  45. nautobot/core/forms/forms.py +21 -9
  46. nautobot/core/forms/search.py +0 -15
  47. nautobot/core/forms/widgets.py +3 -2
  48. nautobot/core/graphql/__init__.py +8 -26
  49. nautobot/core/graphql/generators.py +16 -6
  50. nautobot/core/graphql/schema.py +1 -1
  51. nautobot/core/graphql/schema_init.py +1 -2
  52. nautobot/core/graphql/utils.py +7 -9
  53. nautobot/core/jobs/__init__.py +158 -0
  54. nautobot/core/management/commands/generate_test_data.py +28 -9
  55. nautobot/core/models/__init__.py +17 -2
  56. nautobot/core/models/fields.py +3 -2
  57. nautobot/core/models/generics.py +9 -1
  58. nautobot/core/models/name_color_content_types.py +1 -1
  59. nautobot/core/models/ordering.py +7 -5
  60. nautobot/core/models/querysets.py +77 -2
  61. nautobot/core/models/tree_queries.py +6 -4
  62. nautobot/core/settings.py +30 -16
  63. nautobot/core/settings.yaml +13 -7
  64. nautobot/core/tables.py +114 -44
  65. nautobot/core/templates/403.html +1 -1
  66. nautobot/core/templates/403_csrf_failure.html +1 -1
  67. nautobot/core/templates/404.html +1 -1
  68. nautobot/core/templates/40x.html +8 -8
  69. nautobot/core/templates/500.html +10 -10
  70. nautobot/core/templates/about.html +13 -12
  71. nautobot/core/templates/admin/actions.html +1 -1
  72. nautobot/core/templates/admin/app_index.html +3 -3
  73. nautobot/core/templates/admin/base.html +45 -52
  74. nautobot/core/templates/admin/base_site.html +0 -9
  75. nautobot/core/templates/admin/change_form.html +5 -5
  76. nautobot/core/templates/admin/change_list.html +8 -12
  77. nautobot/core/templates/admin/change_list_results.html +3 -3
  78. nautobot/core/templates/admin/config/config.html +24 -24
  79. nautobot/core/templates/admin/delete_confirmation.html +5 -5
  80. nautobot/core/templates/admin/edit_inline/stacked.html +5 -5
  81. nautobot/core/templates/admin/edit_inline/tabular.html +3 -3
  82. nautobot/core/templates/admin/includes/fieldset.html +15 -15
  83. nautobot/core/templates/admin/index.html +8 -8
  84. nautobot/core/templates/admin/submit_line.html +5 -5
  85. nautobot/core/templates/base_django.html +36 -32
  86. nautobot/core/templates/buttons/add.html +1 -1
  87. nautobot/core/templates/buttons/consolidated_detail_view_action_buttons.html +2 -2
  88. nautobot/core/templates/buttons/export.html +17 -18
  89. nautobot/core/templates/buttons/job_import.html +2 -2
  90. nautobot/core/templates/components/breadcrumbs.html +19 -17
  91. nautobot/core/templates/components/button/dropdown.html +7 -5
  92. nautobot/core/templates/components/echarts.html +2 -0
  93. nautobot/core/templates/components/layout/one_over_two.html +3 -3
  94. nautobot/core/templates/components/layout/two_over_one.html +3 -3
  95. nautobot/core/templates/components/panel/body_content_data_table.html +2 -2
  96. nautobot/core/templates/components/panel/body_content_tags.html +1 -1
  97. nautobot/core/templates/components/panel/body_wrapper_generic.html +4 -2
  98. nautobot/core/templates/components/panel/body_wrapper_generic_table.html +1 -1
  99. nautobot/core/templates/components/panel/body_wrapper_key_value_table.html +5 -3
  100. nautobot/core/templates/components/panel/body_wrapper_table.html +4 -2
  101. nautobot/core/templates/components/panel/footer_contacts_table.html +4 -4
  102. nautobot/core/templates/components/panel/footer_content_table.html +3 -3
  103. nautobot/core/templates/components/panel/grouping_toggle.html +12 -11
  104. nautobot/core/templates/components/panel/header_extra_content_table.html +2 -11
  105. nautobot/core/templates/components/panel/panel.html +6 -3
  106. nautobot/core/templates/components/panel/stats_panel_body.html +9 -7
  107. nautobot/core/templates/components/tab/content_wrapper.html +29 -1
  108. nautobot/core/templates/components/tab/label_wrapper.html +10 -2
  109. nautobot/core/templates/components/tab/label_wrapper_distinct_view.html +11 -4
  110. nautobot/core/templates/echarts/echarts.html +20 -0
  111. nautobot/core/templates/exceptions/import_error.html +2 -2
  112. nautobot/core/templates/exceptions/permission_error.html +1 -1
  113. nautobot/core/templates/exceptions/programming_error.html +2 -2
  114. nautobot/core/templates/generic/object_bulk_add_component.html +29 -20
  115. nautobot/core/templates/generic/object_bulk_create.html +87 -75
  116. nautobot/core/templates/generic/object_bulk_destroy.html +35 -37
  117. nautobot/core/templates/generic/object_bulk_remove.html +30 -26
  118. nautobot/core/templates/generic/object_bulk_rename.html +53 -40
  119. nautobot/core/templates/generic/object_bulk_update.html +36 -29
  120. nautobot/core/templates/generic/object_create.html +40 -27
  121. nautobot/core/templates/generic/object_import.html +36 -24
  122. nautobot/core/templates/generic/object_list.html +279 -215
  123. nautobot/core/templates/generic/object_notes.html +21 -11
  124. nautobot/core/templates/generic/object_retrieve.html +161 -213
  125. nautobot/core/templates/graphene/graphiql.html +113 -60
  126. nautobot/core/templates/home.html +164 -87
  127. nautobot/core/templates/import_success.html +3 -2
  128. nautobot/core/templates/inc/ajax_loader.html +1 -1
  129. nautobot/core/templates/inc/computed_fields/panel_data.html +25 -13
  130. nautobot/core/templates/inc/created_updated.html +12 -7
  131. nautobot/core/templates/inc/custom_fields/panel_data.html +28 -16
  132. nautobot/core/templates/inc/custom_fields_panel.html +3 -3
  133. nautobot/core/templates/inc/dynamic_groups_panel.html +3 -3
  134. nautobot/core/templates/inc/extras_features_edit_form_fields.html +15 -15
  135. nautobot/core/templates/inc/footer.html +90 -40
  136. nautobot/core/templates/inc/form_static_field.html +6 -0
  137. nautobot/core/templates/inc/header.html +75 -0
  138. nautobot/core/templates/inc/header_banners.html +17 -0
  139. nautobot/core/templates/inc/header_messages.html +6 -0
  140. nautobot/core/templates/inc/image_attachments.html +9 -9
  141. nautobot/core/templates/inc/javascript.html +7 -24
  142. nautobot/core/templates/inc/media.html +4 -29
  143. nautobot/core/templates/inc/modal.html +2 -2
  144. nautobot/core/templates/inc/nav_favorites.html +27 -0
  145. nautobot/core/templates/inc/nav_menu.html +150 -108
  146. nautobot/core/templates/inc/object_details_advanced_panel.html +84 -71
  147. nautobot/core/templates/inc/page_title.html +23 -0
  148. nautobot/core/templates/inc/paginator.html +39 -28
  149. nautobot/core/templates/inc/relationships/panel_override.html +3 -3
  150. nautobot/core/templates/inc/relationships_panel.html +3 -3
  151. nautobot/core/templates/inc/relationships_table_rows.html +1 -1
  152. nautobot/core/templates/inc/search_panel.html +22 -16
  153. nautobot/core/templates/inc/table.html +61 -36
  154. nautobot/core/templates/inc/tenancy_form_panel.html +3 -3
  155. nautobot/core/templates/login.html +17 -59
  156. nautobot/core/templates/modals/modal_theme.html +12 -23
  157. nautobot/core/templates/nautobot_config.py.j2 +6 -5
  158. nautobot/core/templates/panel_table.html +8 -12
  159. nautobot/core/templates/redoc_ui.html +80 -0
  160. nautobot/core/templates/rest_framework/api.html +43 -21
  161. nautobot/core/templates/search.html +12 -13
  162. nautobot/core/templates/swagger_ui.html +19 -4
  163. nautobot/core/templates/system_jobs/import_objects.html +70 -58
  164. nautobot/core/templates/template.css +0 -6
  165. nautobot/core/templates/utilities/comment_form.html +34 -0
  166. nautobot/core/templates/utilities/confirmation_form.html +17 -9
  167. nautobot/core/templates/utilities/obj_table.html +19 -11
  168. nautobot/core/templates/utilities/render_field.html +27 -21
  169. nautobot/core/templates/utilities/render_jinja2.html +22 -25
  170. nautobot/core/templates/utilities/templatetags/advanced_filter_indicator.html +8 -0
  171. nautobot/core/templates/utilities/templatetags/badge.html +1 -1
  172. nautobot/core/templates/utilities/templatetags/dynamic_group_assignment_modal.html +2 -3
  173. nautobot/core/templates/utilities/templatetags/filter_form_drawer.html +482 -0
  174. nautobot/core/templates/utilities/templatetags/modal_form_as_dialog.html +14 -18
  175. nautobot/core/templates/utilities/templatetags/saved_view_modal.html +11 -11
  176. nautobot/core/templates/utilities/templatetags/table_config_form.html +51 -24
  177. nautobot/core/templates/utilities/templatetags/tag.html +1 -1
  178. nautobot/core/templates/utilities/templatetags/utilization_graph.html +3 -3
  179. nautobot/core/templates/utilities/theme_preview.html +829 -566
  180. nautobot/core/templates/utilities/worker_status.html +42 -41
  181. nautobot/core/templates/widgets/selectwithdisabled_option.html +3 -1
  182. nautobot/core/templates/widgets/sluginput.html +2 -2
  183. nautobot/core/templatetags/buttons.py +38 -40
  184. nautobot/core/templatetags/helpers.py +105 -28
  185. nautobot/core/templatetags/ui_framework.py +17 -0
  186. nautobot/core/testing/api.py +76 -12
  187. nautobot/core/testing/filters.py +11 -27
  188. nautobot/core/testing/integration.py +128 -10
  189. nautobot/core/testing/mixins.py +7 -4
  190. nautobot/core/testing/utils.py +28 -5
  191. nautobot/core/testing/views.py +125 -27
  192. nautobot/core/tests/integration/test_app_home.py +39 -35
  193. nautobot/core/tests/integration/test_app_navbar.py +60 -67
  194. nautobot/core/tests/integration/test_filters.py +123 -55
  195. nautobot/core/tests/integration/test_general_functionality.py +1 -1
  196. nautobot/core/tests/integration/test_home.py +10 -18
  197. nautobot/core/tests/integration/test_import_objects_ui.py +2 -9
  198. nautobot/core/tests/integration/test_navbar.py +41 -16
  199. nautobot/core/tests/integration/test_swagger.py +1 -7
  200. nautobot/core/tests/integration/test_theme.py +3 -0
  201. nautobot/core/tests/nautobot_config_without_example_apps.py +4 -0
  202. nautobot/core/tests/runner.py +6 -1
  203. nautobot/core/tests/test_api.py +5 -3
  204. nautobot/core/tests/test_branching.py +154 -0
  205. nautobot/core/tests/test_breadcrumbs.py +7 -8
  206. nautobot/core/tests/test_checks.py +28 -0
  207. nautobot/core/tests/test_commands.py +0 -41
  208. nautobot/core/tests/test_config.py +2 -1
  209. nautobot/core/tests/test_csv.py +4 -7
  210. nautobot/core/tests/test_filters.py +326 -318
  211. nautobot/core/tests/test_forms.py +19 -30
  212. nautobot/core/tests/test_graphql.py +67 -57
  213. nautobot/core/tests/test_models.py +1 -1
  214. nautobot/core/tests/test_nautobot_server.py +2 -0
  215. nautobot/core/tests/test_navigations.py +78 -10
  216. nautobot/core/tests/test_tables.py +3 -1
  217. nautobot/core/tests/test_templatetags_helpers.py +61 -21
  218. nautobot/core/tests/test_templatetags_ui_framework.py +36 -18
  219. nautobot/core/tests/test_ui.py +207 -2
  220. nautobot/core/tests/test_utils.py +147 -2
  221. nautobot/core/tests/test_views.py +201 -64
  222. nautobot/core/tests/test_views_utils.py +1 -1
  223. nautobot/core/ui/breadcrumbs.py +2 -12
  224. nautobot/core/ui/choices.py +190 -0
  225. nautobot/core/ui/constants.py +86 -0
  226. nautobot/core/ui/echarts.py +474 -0
  227. nautobot/core/ui/nav.py +5 -1
  228. nautobot/core/ui/object_detail.py +180 -16
  229. nautobot/core/urls.py +13 -1
  230. nautobot/core/utils/cache.py +71 -0
  231. nautobot/core/utils/data.py +8 -5
  232. nautobot/core/utils/filtering.py +8 -2
  233. nautobot/core/utils/git.py +3 -3
  234. nautobot/core/utils/lookup.py +87 -13
  235. nautobot/core/utils/migrations.py +22 -0
  236. nautobot/core/utils/module_loading.py +26 -0
  237. nautobot/core/utils/permissions.py +9 -5
  238. nautobot/core/views/__init__.py +114 -63
  239. nautobot/core/views/generic.py +34 -27
  240. nautobot/core/views/mixins.py +49 -27
  241. nautobot/core/views/renderers.py +3 -5
  242. nautobot/core/views/utils.py +10 -5
  243. nautobot/core/views/viewsets.py +2 -1
  244. nautobot/data_validation/__init__.py +0 -0
  245. nautobot/data_validation/api/__init__.py +1 -0
  246. nautobot/data_validation/api/serializers.py +80 -0
  247. nautobot/data_validation/api/urls.py +20 -0
  248. nautobot/data_validation/api/views.py +44 -0
  249. nautobot/data_validation/apps.py +18 -0
  250. nautobot/data_validation/custom_validators.py +330 -0
  251. nautobot/data_validation/filters.py +133 -0
  252. nautobot/data_validation/form_mixin.py +25 -0
  253. nautobot/data_validation/forms.py +342 -0
  254. nautobot/data_validation/migrations/0001_initial.py +224 -0
  255. nautobot/data_validation/migrations/0002_data_migration_from_app.py +324 -0
  256. nautobot/data_validation/migrations/__init__.py +0 -0
  257. nautobot/data_validation/models.py +361 -0
  258. nautobot/data_validation/navigation.py +74 -0
  259. nautobot/data_validation/signals.py +30 -0
  260. nautobot/data_validation/tables.py +259 -0
  261. nautobot/data_validation/templates/data_validation/datacompliance_retrieve.html +1 -0
  262. nautobot/data_validation/templates/data_validation/datacompliance_tab.html +11 -0
  263. nautobot/data_validation/templates/data_validation/device_constraints.html +61 -0
  264. nautobot/data_validation/tests/__init__.py +20 -0
  265. nautobot/data_validation/tests/migrations/__init__.py +0 -0
  266. nautobot/data_validation/tests/migrations/test_migrations.py +489 -0
  267. nautobot/data_validation/tests/test_api.py +238 -0
  268. nautobot/data_validation/tests/test_custom_validators.py +423 -0
  269. nautobot/data_validation/tests/test_data_compliance_rules.py +85 -0
  270. nautobot/data_validation/tests/test_filters.py +240 -0
  271. nautobot/data_validation/tests/test_form_mixin.py +115 -0
  272. nautobot/data_validation/tests/test_models.py +393 -0
  273. nautobot/data_validation/tests/test_views.py +435 -0
  274. nautobot/data_validation/urls.py +21 -0
  275. nautobot/data_validation/views.py +227 -0
  276. nautobot/dcim/api/serializers.py +10 -13
  277. nautobot/dcim/api/urls.py +2 -0
  278. nautobot/dcim/api/views.py +7 -0
  279. nautobot/dcim/apps.py +4 -0
  280. nautobot/dcim/choices.py +16 -0
  281. nautobot/dcim/custom_validators.py +84 -0
  282. nautobot/dcim/filter_mixins.py +353 -4
  283. nautobot/dcim/{filters/__init__.py → filters.py} +70 -157
  284. nautobot/dcim/forms.py +12 -6
  285. nautobot/dcim/graphql/types.py +1 -0
  286. nautobot/dcim/migrations/0075_add_deviceclusterassignment.py +52 -0
  287. nautobot/dcim/migrations/0076_device_cluster_to_clusters_data_migration.py +40 -0
  288. nautobot/dcim/migrations/0077_remove_device_cluster.py +14 -0
  289. nautobot/dcim/migrations/0078_remove_device_location_tenant_name_uniqueness.py +16 -0
  290. nautobot/dcim/migrations/0079_device_name_data_migration.py +59 -0
  291. nautobot/dcim/models/__init__.py +2 -0
  292. nautobot/dcim/models/device_components.py +3 -1
  293. nautobot/dcim/models/devices.py +115 -51
  294. nautobot/dcim/navigation.py +7 -3
  295. nautobot/dcim/querysets.py +6 -0
  296. nautobot/dcim/signals.py +19 -0
  297. nautobot/dcim/tables/devices.py +9 -5
  298. nautobot/dcim/tables/template_code.py +191 -102
  299. nautobot/dcim/templates/dcim/cable.html +1 -1
  300. nautobot/dcim/templates/dcim/cable_connect.html +62 -146
  301. nautobot/dcim/templates/dcim/cable_retrieve.html +10 -10
  302. nautobot/dcim/templates/dcim/cable_trace.html +15 -17
  303. nautobot/dcim/templates/dcim/console_port_connection_list.html +2 -2
  304. nautobot/dcim/templates/dcim/consoleport.html +18 -17
  305. nautobot/dcim/templates/dcim/consoleserverport.html +18 -17
  306. nautobot/dcim/templates/dcim/controller_create.html +12 -8
  307. nautobot/dcim/templates/dcim/controller_wirelessnetworks.html +1 -1
  308. nautobot/dcim/templates/dcim/controllermanageddevicegroup_create.html +6 -6
  309. nautobot/dcim/templates/dcim/controllermanageddevicegroup_retrieve.html +1 -1
  310. nautobot/dcim/templates/dcim/device/config.html +17 -19
  311. nautobot/dcim/templates/dcim/device/lldp_neighbors.html +4 -4
  312. nautobot/dcim/templates/dcim/device/status.html +20 -20
  313. nautobot/dcim/templates/dcim/device_component_add.html +24 -15
  314. nautobot/dcim/templates/dcim/device_create.html +120 -120
  315. nautobot/dcim/templates/dcim/device_list.html +75 -12
  316. nautobot/dcim/templates/dcim/devicebay.html +7 -7
  317. nautobot/dcim/templates/dcim/devicebay_populate.html +29 -23
  318. nautobot/dcim/templates/dcim/deviceredundancygroup_create.html +6 -6
  319. nautobot/dcim/templates/dcim/devicetype.html +1 -1
  320. nautobot/dcim/templates/dcim/devicetype_component_add.html +25 -19
  321. nautobot/dcim/templates/dcim/devicetype_list.html +4 -4
  322. nautobot/dcim/templates/dcim/devicetype_update.html +9 -9
  323. nautobot/dcim/templates/dcim/footer_convert_to_contact_or_team_record.html +3 -3
  324. nautobot/dcim/templates/dcim/frontport.html +21 -20
  325. nautobot/dcim/templates/dcim/inc/cable_form.html +7 -7
  326. nautobot/dcim/templates/dcim/inc/cable_termination.html +1 -1
  327. nautobot/dcim/templates/dcim/inc/cable_toggle_buttons.html +18 -9
  328. nautobot/dcim/templates/dcim/inc/detail_softwareversion_softwareimagefile_rows.html +1 -1
  329. nautobot/dcim/templates/dcim/inc/device_interface_filter.html +1 -1
  330. nautobot/dcim/templates/dcim/inc/devicetype_component_table.html +10 -10
  331. nautobot/dcim/templates/dcim/inc/edit_form_softwareversion_js.html +2 -2
  332. nautobot/dcim/templates/dcim/inc/homepage_connections.html +2 -2
  333. nautobot/dcim/templates/dcim/inc/moduletype_component_table.html +10 -10
  334. nautobot/dcim/templates/dcim/inc/rack_elevation.html +2 -2
  335. nautobot/dcim/templates/dcim/interface.html +42 -22
  336. nautobot/dcim/templates/dcim/interface_connection_list.html +2 -2
  337. nautobot/dcim/templates/dcim/interface_edit.html +26 -11
  338. nautobot/dcim/templates/dcim/interfaceredundancygroupassociation_create.html +3 -3
  339. nautobot/dcim/templates/dcim/inventoryitem.html +3 -3
  340. nautobot/dcim/templates/dcim/inventoryitem_add.html +21 -10
  341. nautobot/dcim/templates/dcim/inventoryitem_bulk_delete.html +1 -1
  342. nautobot/dcim/templates/dcim/inventoryitem_edit.html +6 -4
  343. nautobot/dcim/templates/dcim/location.html +1 -1
  344. nautobot/dcim/templates/dcim/location_migrate_data_to_contact.html +24 -18
  345. nautobot/dcim/templates/dcim/location_retrieve.html +1 -1
  346. nautobot/dcim/templates/dcim/location_update.html +9 -9
  347. nautobot/dcim/templates/dcim/locationtype.html +0 -1
  348. nautobot/dcim/templates/dcim/module/base.html +67 -27
  349. nautobot/dcim/templates/dcim/module_consoleports.html +13 -15
  350. nautobot/dcim/templates/dcim/module_consoleserverports.html +13 -15
  351. nautobot/dcim/templates/dcim/module_frontports.html +13 -15
  352. nautobot/dcim/templates/dcim/module_interfaces.html +14 -16
  353. nautobot/dcim/templates/dcim/module_list.html +59 -10
  354. nautobot/dcim/templates/dcim/module_modulebays.html +12 -14
  355. nautobot/dcim/templates/dcim/module_poweroutlets.html +13 -15
  356. nautobot/dcim/templates/dcim/module_powerports.html +13 -15
  357. nautobot/dcim/templates/dcim/module_rearports.html +13 -15
  358. nautobot/dcim/templates/dcim/module_retrieve.html +3 -3
  359. nautobot/dcim/templates/dcim/module_update.html +15 -9
  360. nautobot/dcim/templates/dcim/modulebay_retrieve.html +0 -93
  361. nautobot/dcim/templates/dcim/modulefamily_retrieve.html +7 -7
  362. nautobot/dcim/templates/dcim/moduletype_list.html +2 -2
  363. nautobot/dcim/templates/dcim/moduletype_retrieve.html +74 -35
  364. nautobot/dcim/templates/dcim/platform_create.html +9 -9
  365. nautobot/dcim/templates/dcim/power_port_connection_list.html +3 -3
  366. nautobot/dcim/templates/dcim/powerfeed.html +1 -1
  367. nautobot/dcim/templates/dcim/powerfeed_edit.html +15 -15
  368. nautobot/dcim/templates/dcim/poweroutlet.html +13 -13
  369. nautobot/dcim/templates/dcim/powerpanel.html +1 -1
  370. nautobot/dcim/templates/dcim/powerport.html +17 -16
  371. nautobot/dcim/templates/dcim/rack.html +1 -1
  372. nautobot/dcim/templates/dcim/rack_elevation.html +2 -2
  373. nautobot/dcim/templates/dcim/rack_elevation_list.html +21 -9
  374. nautobot/dcim/templates/dcim/rack_retrieve.html +75 -57
  375. nautobot/dcim/templates/dcim/rack_update.html +14 -14
  376. nautobot/dcim/templates/dcim/rackreservation.html +1 -1
  377. nautobot/dcim/templates/dcim/rackreservation_edit.html +6 -6
  378. nautobot/dcim/templates/dcim/rearport.html +19 -18
  379. nautobot/dcim/templates/dcim/trace/cable.html +1 -1
  380. nautobot/dcim/templates/dcim/trace/circuit.html +1 -1
  381. nautobot/dcim/templates/dcim/trace/device.html +1 -1
  382. nautobot/dcim/templates/dcim/trace/powerpanel.html +1 -1
  383. nautobot/dcim/templates/dcim/trace/termination.html +1 -1
  384. nautobot/dcim/templates/dcim/virtualchassis.html +1 -1
  385. nautobot/dcim/templates/dcim/virtualchassis_add_member.html +25 -16
  386. nautobot/dcim/templates/dcim/virtualchassis_create.html +6 -6
  387. nautobot/dcim/templates/dcim/virtualchassis_edit.html +1 -1
  388. nautobot/dcim/templates/dcim/virtualchassis_retrieve.html +1 -1
  389. nautobot/dcim/templates/dcim/virtualchassis_update.html +36 -22
  390. nautobot/dcim/templates/dcim/virtualdevicecontext_update.html +9 -9
  391. nautobot/dcim/tests/integration/test_controller.py +6 -6
  392. nautobot/dcim/tests/integration/test_controller_managed_device_group.py +7 -7
  393. nautobot/dcim/tests/integration/test_create_device.py +9 -9
  394. nautobot/dcim/tests/integration/test_device_bulk_operations.py +7 -2
  395. nautobot/dcim/tests/integration/test_fileinputpicker.py +5 -7
  396. nautobot/dcim/tests/integration/test_location_bulk_operations.py +2 -0
  397. nautobot/dcim/tests/integration/test_module_bay_position.py +4 -1
  398. nautobot/dcim/tests/test_api.py +86 -6
  399. nautobot/dcim/tests/test_custom_validators.py +229 -0
  400. nautobot/dcim/tests/test_filters.py +159 -110
  401. nautobot/dcim/tests/test_graphql.py +32 -36
  402. nautobot/dcim/tests/test_jobs.py +1 -1
  403. nautobot/dcim/tests/test_models.py +229 -1
  404. nautobot/dcim/tests/test_views.py +31 -20
  405. nautobot/dcim/utils.py +3 -3
  406. nautobot/dcim/views.py +77 -41
  407. nautobot/extras/api/serializers.py +83 -19
  408. nautobot/extras/api/urls.py +7 -0
  409. nautobot/extras/api/views.py +243 -140
  410. nautobot/extras/choices.py +34 -13
  411. nautobot/extras/constants.py +1 -1
  412. nautobot/extras/context_managers.py +26 -26
  413. nautobot/extras/datasources/git.py +22 -0
  414. nautobot/extras/datasources/registry.py +3 -0
  415. nautobot/extras/exceptions.py +5 -0
  416. nautobot/extras/factory.py +11 -1
  417. nautobot/extras/{filters/mixins.py → filter_mixins.py} +4 -3
  418. nautobot/extras/{filters/__init__.py → filters.py} +203 -58
  419. nautobot/extras/forms/base.py +2 -1
  420. nautobot/extras/forms/forms.py +225 -20
  421. nautobot/extras/forms/mixins.py +0 -41
  422. nautobot/extras/homepage.py +21 -2
  423. nautobot/extras/jobs.py +2 -8
  424. nautobot/extras/jobs_ui.py +2 -2
  425. nautobot/extras/management/__init__.py +9 -0
  426. nautobot/extras/managers.py +31 -22
  427. nautobot/extras/migrations/0126_approval_workflow_pre_check.py +58 -0
  428. nautobot/extras/migrations/0127_approval_workflow_models.py +266 -0
  429. nautobot/extras/migrations/0128_remove_job_approval_required_and_more.py +29 -0
  430. nautobot/extras/migrations/0129_jobresult_debug_log_count_jobresult_error_log_count_and_more.py +37 -0
  431. nautobot/extras/migrations/0130_jobresult_generate_log_entry_counts.py +42 -0
  432. nautobot/extras/models/__init__.py +14 -3
  433. nautobot/extras/models/approvals.py +556 -0
  434. nautobot/extras/models/change_logging.py +1 -0
  435. nautobot/extras/models/contacts.py +2 -0
  436. nautobot/extras/models/customfields.py +57 -22
  437. nautobot/extras/models/datasources.py +21 -0
  438. nautobot/extras/models/groups.py +2 -0
  439. nautobot/extras/models/jobs.py +122 -39
  440. nautobot/extras/models/metadata.py +2 -3
  441. nautobot/extras/models/mixins.py +129 -1
  442. nautobot/extras/models/models.py +22 -14
  443. nautobot/extras/models/relationships.py +47 -10
  444. nautobot/extras/models/secrets.py +1 -0
  445. nautobot/extras/models/statuses.py +0 -15
  446. nautobot/extras/models/tags.py +1 -1
  447. nautobot/extras/navigation.py +42 -15
  448. nautobot/extras/plugins/__init__.py +33 -55
  449. nautobot/extras/plugins/marketplace_manifest.yml +1 -23
  450. nautobot/extras/plugins/tables.py +8 -6
  451. nautobot/extras/plugins/urls.py +2 -21
  452. nautobot/extras/plugins/utils.py +1 -33
  453. nautobot/extras/plugins/validators.py +10 -10
  454. nautobot/extras/plugins/views.py +1 -5
  455. nautobot/extras/querysets.py +17 -21
  456. nautobot/extras/signals.py +23 -8
  457. nautobot/extras/tables.py +420 -99
  458. nautobot/extras/templates/extras/approval_dashboard.html +15 -0
  459. nautobot/extras/templates/extras/approval_workflow/approve.html +11 -0
  460. nautobot/extras/templates/extras/approval_workflow/comment.html +9 -0
  461. nautobot/extras/templates/extras/approval_workflow/deny.html +10 -0
  462. nautobot/extras/templates/extras/approvalworkflowdefinition_update.html +77 -0
  463. nautobot/extras/templates/extras/approvalworkflowstage_retrieve.html +29 -0
  464. nautobot/extras/templates/extras/configcontext_update.html +12 -12
  465. nautobot/extras/templates/extras/configcontextschema.html +1 -1
  466. nautobot/extras/templates/extras/configcontextschema_retrieve.html +9 -9
  467. nautobot/extras/templates/extras/configcontextschema_update.html +6 -6
  468. nautobot/extras/templates/extras/configcontextschema_validation.html +2 -2
  469. nautobot/extras/templates/extras/customfield_update.html +12 -12
  470. nautobot/extras/templates/extras/dynamicgroup.html +1 -1
  471. nautobot/extras/templates/extras/dynamicgroup_edit.html +1 -1
  472. nautobot/extras/templates/extras/dynamicgroup_retrieve.html +17 -17
  473. nautobot/extras/templates/extras/dynamicgroup_update.html +24 -24
  474. nautobot/extras/templates/extras/externalintegration_update.html +6 -6
  475. nautobot/extras/templates/extras/gitrepository.html +1 -1
  476. nautobot/extras/templates/extras/gitrepository_object_edit.html +1 -1
  477. nautobot/extras/templates/extras/gitrepository_result.html +1 -1
  478. nautobot/extras/templates/extras/gitrepository_retrieve.html +12 -12
  479. nautobot/extras/templates/extras/gitrepository_update.html +25 -7
  480. nautobot/extras/templates/extras/graphqlquery_retrieve.html +1 -1
  481. nautobot/extras/templates/extras/inc/approval_buttons_column.html +38 -0
  482. nautobot/extras/templates/extras/inc/bulk_edit_overridable_field.html +14 -13
  483. nautobot/extras/templates/extras/inc/configcontext_format.html +11 -4
  484. nautobot/extras/templates/extras/inc/graphqlquery_execute.html +7 -7
  485. nautobot/extras/templates/extras/inc/job_label.html +5 -5
  486. nautobot/extras/templates/extras/inc/job_table.html +23 -10
  487. nautobot/extras/templates/extras/inc/job_tiles.html +33 -21
  488. nautobot/extras/templates/extras/inc/jobresult.html +6 -6
  489. nautobot/extras/templates/extras/inc/json_format.html +11 -4
  490. nautobot/extras/templates/extras/inc/object_contact_header.html +6 -6
  491. nautobot/extras/templates/extras/inc/overridable_field.html +16 -15
  492. nautobot/extras/templates/extras/inc/panel_approvalworkflowstage.html +34 -0
  493. nautobot/extras/templates/extras/inc/panel_changelog.html +9 -9
  494. nautobot/extras/templates/extras/inc/panel_jobhistory.html +8 -6
  495. nautobot/extras/templates/extras/inc/tags_panel.html +3 -3
  496. nautobot/extras/templates/extras/job.html +154 -155
  497. nautobot/extras/templates/extras/job_approval_confirmation.html +4 -27
  498. nautobot/extras/templates/extras/job_bulk_edit.html +18 -1
  499. nautobot/extras/templates/extras/job_detail.html +1 -1
  500. nautobot/extras/templates/extras/job_edit.html +69 -64
  501. nautobot/extras/templates/extras/job_list.html +37 -60
  502. nautobot/extras/templates/extras/jobresult.html +1 -1
  503. nautobot/extras/templates/extras/jobresult_retrieve.html +17 -17
  504. nautobot/extras/templates/extras/marketplace.html +62 -71
  505. nautobot/extras/templates/extras/metadatatype_create.html +9 -9
  506. nautobot/extras/templates/extras/note.html +1 -1
  507. nautobot/extras/templates/extras/object_approvalworkflow.html +36 -0
  508. nautobot/extras/templates/extras/object_assign_contact_or_team.html +16 -7
  509. nautobot/extras/templates/extras/object_configcontext.html +20 -20
  510. nautobot/extras/templates/extras/object_new_contact.html +6 -6
  511. nautobot/extras/templates/extras/object_new_team.html +6 -6
  512. nautobot/extras/templates/extras/objectchange.html +1 -1
  513. nautobot/extras/templates/extras/objectchange_retrieve.html +37 -56
  514. nautobot/extras/templates/extras/plugin_detail.html +40 -41
  515. nautobot/extras/templates/extras/plugins_list.html +23 -38
  516. nautobot/extras/templates/extras/plugins_tiles.html +28 -28
  517. nautobot/extras/templates/extras/role_retrieve.html +112 -48
  518. nautobot/extras/templates/extras/scheduledjob.html +25 -28
  519. nautobot/extras/templates/extras/secret_create.html +11 -11
  520. nautobot/extras/templates/extras/secretsgroup_update.html +6 -6
  521. nautobot/extras/templates/extras/staticgroupassociation_retrieve.html +3 -3
  522. nautobot/extras/templates/extras/status.html +1 -1
  523. nautobot/extras/templates/extras/tag.html +1 -1
  524. nautobot/extras/templates/extras/tag_update.html +3 -3
  525. nautobot/extras/templates/extras/templatetags/log_level.html +1 -1
  526. nautobot/extras/templates/extras/templatetags/plugin_object_detail_tabs.html +2 -2
  527. nautobot/extras/templates/extras/webhook.html +12 -12
  528. nautobot/extras/templatetags/approvals.py +19 -0
  529. nautobot/extras/templatetags/custom_links.py +12 -12
  530. nautobot/extras/templatetags/job_buttons.py +14 -12
  531. nautobot/extras/test_jobs/invalid_import.py +9 -0
  532. nautobot/extras/test_jobs/log_counts_by_level.py +23 -0
  533. nautobot/extras/test_jobs/missing_import.py +11 -0
  534. nautobot/extras/tests/integration/test_computedfields.py +5 -8
  535. nautobot/extras/tests/integration/test_configcontextschema.py +43 -48
  536. nautobot/extras/tests/integration/test_customfields.py +33 -33
  537. nautobot/extras/tests/integration/test_dynamicgroups.py +5 -10
  538. nautobot/extras/tests/integration/test_jobs.py +2 -4
  539. nautobot/extras/tests/integration/test_notes.py +3 -9
  540. nautobot/extras/tests/integration/test_plugin_banner.py +3 -0
  541. nautobot/extras/tests/integration/test_plugins.py +35 -27
  542. nautobot/extras/tests/integration/test_relationships.py +7 -11
  543. nautobot/extras/tests/integration/test_tagfilter.py +3 -11
  544. nautobot/extras/tests/test_api.py +786 -242
  545. nautobot/extras/tests/test_approvals.py +715 -0
  546. nautobot/extras/tests/test_changelog.py +18 -14
  547. nautobot/extras/tests/test_customfields.py +14 -13
  548. nautobot/extras/tests/test_datasources.py +1 -1
  549. nautobot/extras/tests/test_dynamicgroups.py +9 -4
  550. nautobot/extras/tests/test_filters.py +443 -13
  551. nautobot/extras/tests/test_forms.py +18 -57
  552. nautobot/extras/tests/test_jobs.py +25 -4
  553. nautobot/extras/tests/test_migrations.py +81 -1
  554. nautobot/extras/tests/test_models.py +378 -47
  555. nautobot/extras/tests/test_plugins.py +47 -13
  556. nautobot/extras/tests/test_relationships.py +7 -2
  557. nautobot/extras/tests/test_utils.py +2 -0
  558. nautobot/extras/tests/test_views.py +780 -493
  559. nautobot/extras/urls.py +36 -12
  560. nautobot/extras/utils.py +58 -12
  561. nautobot/extras/views.py +668 -209
  562. nautobot/ipam/factory.py +7 -0
  563. nautobot/ipam/filter_mixins.py +38 -0
  564. nautobot/ipam/filters.py +35 -71
  565. nautobot/ipam/formfields.py +1 -1
  566. nautobot/ipam/forms.py +6 -3
  567. nautobot/ipam/migrations/0030_ipam__namespaces.py +13 -0
  568. nautobot/ipam/migrations/0031_ipam___data_migrations.py +4 -1
  569. nautobot/ipam/migrations/0054_namespace_tenant.py +25 -0
  570. nautobot/ipam/models.py +29 -2
  571. nautobot/ipam/navigation.py +3 -1
  572. nautobot/ipam/querysets.py +1 -2
  573. nautobot/ipam/tables.py +26 -17
  574. nautobot/ipam/templates/ipam/inc/ipadress_edit_header.html +6 -6
  575. nautobot/ipam/templates/ipam/inc/service.html +8 -8
  576. nautobot/ipam/templates/ipam/inc/toggle_available.html +10 -10
  577. nautobot/ipam/templates/ipam/inc/vlangroup_header.html +3 -2
  578. nautobot/ipam/templates/ipam/ipaddress.html +27 -13
  579. nautobot/ipam/templates/ipam/ipaddress_assign.html +31 -24
  580. nautobot/ipam/templates/ipam/ipaddress_bulk_add.html +3 -3
  581. nautobot/ipam/templates/ipam/ipaddress_edit.html +9 -9
  582. nautobot/ipam/templates/ipam/ipaddress_interfaces.html +7 -9
  583. nautobot/ipam/templates/ipam/ipaddress_merge.html +195 -186
  584. nautobot/ipam/templates/ipam/ipaddress_vm_interfaces.html +7 -9
  585. nautobot/ipam/templates/ipam/ipaddresstointerface_retrieve.html +7 -5
  586. nautobot/ipam/templates/ipam/namespace_ip_addresses.html +1 -1
  587. nautobot/ipam/templates/ipam/namespace_prefixes.html +1 -1
  588. nautobot/ipam/templates/ipam/namespace_update.html +15 -0
  589. nautobot/ipam/templates/ipam/namespace_vrfs.html +1 -1
  590. nautobot/ipam/templates/ipam/prefix_create.html +9 -9
  591. nautobot/ipam/templates/ipam/prefix_list.html +15 -14
  592. nautobot/ipam/templates/ipam/prefix_retrieve.html +0 -1
  593. nautobot/ipam/templates/ipam/vlan.html +1 -1
  594. nautobot/ipam/templates/ipam/vlan_interfaces.html +1 -1
  595. nautobot/ipam/templates/ipam/vlan_update.html +6 -6
  596. nautobot/ipam/templates/ipam/vlan_vminterfaces.html +1 -1
  597. nautobot/ipam/templates/ipam/vrf_edit.html +15 -15
  598. nautobot/ipam/tests/integration/test_prefixes.py +5 -13
  599. nautobot/ipam/tests/migration/test_migrations.py +89 -0
  600. nautobot/ipam/tests/test_api.py +20 -7
  601. nautobot/ipam/tests/test_filters.py +10 -0
  602. nautobot/ipam/tests/test_forms.py +1 -1
  603. nautobot/ipam/tests/test_models.py +1 -1
  604. nautobot/ipam/tests/test_tables.py +1 -2
  605. nautobot/ipam/tests/test_utils.py +1 -1
  606. nautobot/ipam/tests/test_views.py +24 -21
  607. nautobot/ipam/ui.py +0 -17
  608. nautobot/ipam/utils/migrations.py +16 -2
  609. nautobot/ipam/utils/testing.py +9 -3
  610. nautobot/ipam/views.py +49 -7
  611. nautobot/project-static/dist/css/graphql-libraries.css +655 -0
  612. nautobot/project-static/dist/css/graphql-libraries.css.map +1 -0
  613. nautobot/project-static/dist/css/materialdesignicons.css +3 -0
  614. nautobot/project-static/dist/css/materialdesignicons.css.map +1 -0
  615. nautobot/project-static/dist/css/nautobot.css +13 -0
  616. nautobot/project-static/dist/css/nautobot.css.map +1 -0
  617. nautobot/project-static/dist/js/graphql-libraries.js +3 -0
  618. nautobot/project-static/dist/js/graphql-libraries.js.LICENSE.txt +62 -0
  619. nautobot/project-static/dist/js/graphql-libraries.js.map +1 -0
  620. nautobot/project-static/dist/js/libraries.js +3 -0
  621. nautobot/project-static/dist/js/libraries.js.LICENSE.txt +65 -0
  622. nautobot/project-static/dist/js/libraries.js.map +1 -0
  623. nautobot/project-static/dist/js/materialdesignicons.js +0 -0
  624. nautobot/project-static/dist/js/nautobot-graphiql.js +2 -0
  625. nautobot/project-static/dist/js/nautobot-graphiql.js.map +1 -0
  626. nautobot/project-static/dist/js/nautobot.js +2 -0
  627. nautobot/project-static/dist/js/nautobot.js.map +1 -0
  628. nautobot/project-static/fonts/Montserrat-v30-Bold.woff2 +0 -0
  629. nautobot/project-static/fonts/Montserrat-v30-Light.woff2 +0 -0
  630. nautobot/project-static/fonts/Montserrat-v30-Regular.woff2 +0 -0
  631. nautobot/project-static/fonts/Roboto-v48-Bold.woff2 +0 -0
  632. nautobot/project-static/fonts/Roboto-v48-Light.woff2 +0 -0
  633. nautobot/project-static/fonts/Roboto-v48-Regular.woff2 +0 -0
  634. nautobot/project-static/img/jinja_logo.svg +21 -92
  635. nautobot/project-static/js/cabletrace.js +1 -1
  636. nautobot/project-static/js/editor.js +4 -4
  637. nautobot/project-static/js/forms.js +67 -717
  638. nautobot/project-static/js/job_result.js +2 -2
  639. nautobot/project-static/nautobot-icons/360-degrees.svg +3 -0
  640. nautobot/project-static/nautobot-icons/arrow-decision.svg +3 -0
  641. nautobot/project-static/nautobot-icons/arrows-expand-rec.svg +3 -0
  642. nautobot/project-static/nautobot-icons/arrows-move-2-rec.svg +3 -0
  643. nautobot/project-static/nautobot-icons/arrows-move-rec.svg +3 -0
  644. nautobot/project-static/nautobot-icons/atom.svg +3 -0
  645. nautobot/project-static/nautobot-icons/battery-3.svg +3 -0
  646. nautobot/project-static/nautobot-icons/branch.svg +3 -0
  647. nautobot/project-static/nautobot-icons/briefcase-2.svg +3 -0
  648. nautobot/project-static/nautobot-icons/cable-data-2.svg +3 -0
  649. nautobot/project-static/nautobot-icons/cable-data.svg +3 -0
  650. nautobot/project-static/nautobot-icons/cast.svg +3 -0
  651. nautobot/project-static/nautobot-icons/check-circle.svg +3 -0
  652. nautobot/project-static/nautobot-icons/checkbox-circle.svg +3 -0
  653. nautobot/project-static/nautobot-icons/checkbox-rec.svg +3 -0
  654. nautobot/project-static/nautobot-icons/cloud-check.svg +3 -0
  655. nautobot/project-static/nautobot-icons/cloud-lightning.svg +3 -0
  656. nautobot/project-static/nautobot-icons/cloud-upload.svg +3 -0
  657. nautobot/project-static/nautobot-icons/cloud.svg +3 -0
  658. nautobot/project-static/nautobot-icons/compass.svg +3 -0
  659. nautobot/project-static/nautobot-icons/control-panel.svg +3 -0
  660. nautobot/project-static/nautobot-icons/credit-card.svg +3 -0
  661. nautobot/project-static/nautobot-icons/device-lifecycle.svg +3 -0
  662. nautobot/project-static/nautobot-icons/direction.svg +3 -0
  663. nautobot/project-static/nautobot-icons/elements.svg +3 -0
  664. nautobot/project-static/nautobot-icons/extensibility.svg +3 -0
  665. nautobot/project-static/nautobot-icons/globe-2.svg +3 -0
  666. nautobot/project-static/nautobot-icons/globe.svg +3 -0
  667. nautobot/project-static/nautobot-icons/hammer.svg +3 -0
  668. nautobot/project-static/nautobot-icons/history.svg +3 -0
  669. nautobot/project-static/nautobot-icons/ip.svg +3 -0
  670. nautobot/project-static/nautobot-icons/laptop.svg +3 -0
  671. nautobot/project-static/nautobot-icons/lightning.svg +3 -0
  672. nautobot/project-static/nautobot-icons/list-unordered.svg +3 -0
  673. nautobot/project-static/nautobot-icons/map-view.svg +3 -0
  674. nautobot/project-static/nautobot-icons/organization.svg +3 -0
  675. nautobot/project-static/nautobot-icons/pin-2.svg +3 -0
  676. nautobot/project-static/nautobot-icons/pin-3.svg +3 -0
  677. nautobot/project-static/nautobot-icons/plug.svg +3 -0
  678. nautobot/project-static/nautobot-icons/refresh-cw.svg +3 -0
  679. nautobot/project-static/nautobot-icons/rocket-2.svg +3 -0
  680. nautobot/project-static/nautobot-icons/rotate-cw.svg +3 -0
  681. nautobot/project-static/nautobot-icons/route.svg +3 -0
  682. nautobot/project-static/nautobot-icons/secrets.svg +3 -0
  683. nautobot/project-static/nautobot-icons/security.svg +3 -0
  684. nautobot/project-static/nautobot-icons/server-2.svg +3 -0
  685. nautobot/project-static/nautobot-icons/server.svg +3 -0
  686. nautobot/project-static/nautobot-icons/share.svg +3 -0
  687. nautobot/project-static/nautobot-icons/shield-check.svg +3 -0
  688. nautobot/project-static/nautobot-icons/sitemap-outline.svg +3 -0
  689. nautobot/project-static/nautobot-icons/sliders-vert-2.svg +3 -0
  690. nautobot/project-static/nautobot-icons/sliders-vert.svg +3 -0
  691. nautobot/project-static/nautobot-icons/star-filled.svg +3 -0
  692. nautobot/project-static/nautobot-icons/star.svg +3 -0
  693. nautobot/project-static/nautobot-icons/transform.svg +3 -0
  694. nautobot/project-static/nautobot-icons/wifi.svg +3 -0
  695. nautobot/tenancy/api/serializers.py +1 -0
  696. nautobot/tenancy/api/views.py +2 -1
  697. nautobot/tenancy/{filters/__init__.py → filters.py} +2 -10
  698. nautobot/tenancy/navigation.py +3 -1
  699. nautobot/tenancy/templates/tenancy/tenant_create.html +6 -6
  700. nautobot/tenancy/tests/test_filters.py +0 -2
  701. nautobot/tenancy/views.py +2 -1
  702. nautobot/ui/.gitignore +137 -0
  703. nautobot/ui/.node-version +1 -0
  704. nautobot/ui/.prettierignore +3 -0
  705. nautobot/ui/eslint.config.js +33 -0
  706. nautobot/ui/package-lock.json +6594 -0
  707. nautobot/ui/package.json +67 -0
  708. nautobot/ui/prettier.config.js +9 -0
  709. nautobot/ui/src/js/collapse.js +69 -0
  710. nautobot/ui/src/js/cookie.js +31 -0
  711. nautobot/ui/src/js/draggable.js +101 -0
  712. nautobot/ui/src/js/drawer.js +106 -0
  713. nautobot/ui/src/js/form.js +23 -0
  714. nautobot/ui/src/js/history.js +51 -0
  715. nautobot/ui/src/js/nautobot-graphiql.js +19 -0
  716. nautobot/ui/src/js/nautobot.js +128 -0
  717. nautobot/ui/src/js/search.js +274 -0
  718. nautobot/ui/src/js/select2.js +318 -0
  719. nautobot/ui/src/js/sidenav.js +87 -0
  720. nautobot/ui/src/js/tabs.js +139 -0
  721. nautobot/ui/src/js/theme.js +104 -0
  722. nautobot/ui/src/js/utils.js +54 -0
  723. nautobot/ui/src/scss/colors.scss +58 -0
  724. nautobot/ui/src/scss/nautobot.scss +2471 -0
  725. nautobot/ui/webpack.config.js +148 -0
  726. nautobot/users/apps.py +3 -0
  727. nautobot/users/filters.py +7 -11
  728. nautobot/users/forms.py +10 -0
  729. nautobot/users/models.py +8 -0
  730. nautobot/users/templates/users/advanced_settings_edit.html +31 -21
  731. nautobot/users/templates/users/api_tokens.html +61 -51
  732. nautobot/users/templates/users/base.html +23 -31
  733. nautobot/users/templates/users/change_password.html +29 -19
  734. nautobot/users/templates/users/preferences.html +55 -45
  735. nautobot/users/templates/users/profile.html +45 -14
  736. nautobot/users/tests/test_api.py +4 -0
  737. nautobot/users/urls.py +2 -0
  738. nautobot/users/views.py +70 -2
  739. nautobot/virtualization/api/views.py +1 -1
  740. nautobot/virtualization/filters.py +18 -32
  741. nautobot/virtualization/forms.py +22 -59
  742. nautobot/virtualization/models.py +1 -19
  743. nautobot/virtualization/navigation.py +3 -1
  744. nautobot/virtualization/tables.py +10 -6
  745. nautobot/virtualization/templates/virtualization/cluster.html +13 -13
  746. nautobot/virtualization/templates/virtualization/cluster_edit.html +6 -6
  747. nautobot/virtualization/templates/virtualization/inc/virtualmachine_vminterface_filter.html +1 -1
  748. nautobot/virtualization/templates/virtualization/virtualmachine.html +1 -1
  749. nautobot/virtualization/templates/virtualization/virtualmachine_component_add.html +24 -16
  750. nautobot/virtualization/templates/virtualization/virtualmachine_edit.html +1 -1
  751. nautobot/virtualization/templates/virtualization/virtualmachine_list.html +4 -4
  752. nautobot/virtualization/templates/virtualization/virtualmachine_update.html +27 -25
  753. nautobot/virtualization/templates/virtualization/vminterface.html +5 -5
  754. nautobot/virtualization/templates/virtualization/vminterface_edit.html +27 -11
  755. nautobot/virtualization/tests/test_api.py +3 -0
  756. nautobot/virtualization/tests/test_models.py +20 -5
  757. nautobot/virtualization/tests/test_views.py +3 -5
  758. nautobot/virtualization/urls.py +0 -11
  759. nautobot/virtualization/views.py +5 -122
  760. nautobot/vpn/__init__.py +0 -0
  761. nautobot/vpn/api/serializers.py +113 -0
  762. nautobot/vpn/api/urls.py +19 -0
  763. nautobot/vpn/api/views.py +70 -0
  764. nautobot/vpn/apps.py +8 -0
  765. nautobot/vpn/choices.py +171 -0
  766. nautobot/vpn/factory.py +209 -0
  767. nautobot/vpn/filters.py +233 -0
  768. nautobot/vpn/forms.py +486 -0
  769. nautobot/vpn/homepage.py +19 -0
  770. nautobot/vpn/migrations/0001_initial.py +541 -0
  771. nautobot/vpn/migrations/0002_populate_defaults.py +199 -0
  772. nautobot/vpn/migrations/__init__.py +0 -0
  773. nautobot/vpn/models.py +527 -0
  774. nautobot/vpn/navigation.py +98 -0
  775. nautobot/vpn/tables.py +380 -0
  776. nautobot/vpn/templates/vpn/vpnprofile.html +2 -0
  777. nautobot/vpn/templates/vpn/vpnprofile_create.html +150 -0
  778. nautobot/vpn/tests/__init__.py +0 -0
  779. nautobot/vpn/tests/test_api.py +341 -0
  780. nautobot/vpn/tests/test_filters.py +139 -0
  781. nautobot/vpn/tests/test_forms.py +294 -0
  782. nautobot/vpn/tests/test_models.py +97 -0
  783. nautobot/vpn/tests/test_views.py +281 -0
  784. nautobot/vpn/urls.py +16 -0
  785. nautobot/vpn/views.py +437 -0
  786. nautobot/wireless/filters.py +0 -8
  787. nautobot/wireless/navigation.py +3 -1
  788. nautobot/wireless/templates/wireless/wirelessnetwork_create.html +6 -6
  789. nautobot/wireless/tests/integration/test_radio_profile.py +3 -7
  790. nautobot/wireless/tests/test_api.py +1 -1
  791. {nautobot-2.4.21.dist-info → nautobot-3.0.0a3.dist-info}/METADATA +5 -4
  792. {nautobot-2.4.21.dist-info → nautobot-3.0.0a3.dist-info}/RECORD +802 -707
  793. {nautobot-2.4.21.dist-info → nautobot-3.0.0a3.dist-info}/entry_points.txt +1 -0
  794. nautobot/core/management/commands/check_job_approval_status.py +0 -47
  795. nautobot/core/templates/search_form.html +0 -9
  796. nautobot/core/templates/utilities/templatetags/filter_form_modal.html +0 -87
  797. nautobot/dcim/filters/mixins.py +0 -354
  798. nautobot/extras/templates/extras/job_approval_request.html +0 -134
  799. nautobot/extras/templates/extras/scheduled_jobs_approval_queue_list.html +0 -28
  800. nautobot/ipam/mixins.py +0 -32
  801. nautobot/ipam/templates/ipam/inc/prefix_header_extra_content_table.html +0 -4
  802. nautobot/project-static/bootstrap-3.4.1-dist/css/bootstrap-theme.css +0 -587
  803. nautobot/project-static/bootstrap-3.4.1-dist/css/bootstrap-theme.css.map +0 -1
  804. nautobot/project-static/bootstrap-3.4.1-dist/css/bootstrap-theme.min.css +0 -6
  805. nautobot/project-static/bootstrap-3.4.1-dist/css/bootstrap-theme.min.css.map +0 -1
  806. nautobot/project-static/bootstrap-3.4.1-dist/css/bootstrap.css +0 -6865
  807. nautobot/project-static/bootstrap-3.4.1-dist/css/bootstrap.css.map +0 -1
  808. nautobot/project-static/bootstrap-3.4.1-dist/css/bootstrap.min.css +0 -6
  809. nautobot/project-static/bootstrap-3.4.1-dist/css/bootstrap.min.css.map +0 -1
  810. nautobot/project-static/bootstrap-3.4.1-dist/fonts/glyphicons-halflings-regular.eot +0 -0
  811. nautobot/project-static/bootstrap-3.4.1-dist/fonts/glyphicons-halflings-regular.svg +0 -288
  812. nautobot/project-static/bootstrap-3.4.1-dist/fonts/glyphicons-halflings-regular.ttf +0 -0
  813. nautobot/project-static/bootstrap-3.4.1-dist/fonts/glyphicons-halflings-regular.woff +0 -0
  814. nautobot/project-static/bootstrap-3.4.1-dist/fonts/glyphicons-halflings-regular.woff2 +0 -0
  815. nautobot/project-static/bootstrap-3.4.1-dist/js/bootstrap.js +0 -2580
  816. nautobot/project-static/bootstrap-3.4.1-dist/js/bootstrap.min.js +0 -6
  817. nautobot/project-static/bootstrap-3.4.1-dist/js/npm.js +0 -13
  818. nautobot/project-static/clipboard.js-2.0.9/clipboard.min.js +0 -7
  819. nautobot/project-static/css/base.css +0 -1040
  820. nautobot/project-static/css/dark.css +0 -282
  821. nautobot/project-static/flatpickr-4.6.9/flatpickr.min.js +0 -2
  822. nautobot/project-static/flatpickr-4.6.9/themes/light.min.css +0 -1
  823. nautobot/project-static/graphiql-1.5.16/graphiql.min.css +0 -12
  824. nautobot/project-static/graphiql-1.5.16/graphiql.min.js +0 -11
  825. nautobot/project-static/highlight.js-11.9.0/github-dark.min.css +0 -10
  826. nautobot/project-static/highlight.js-11.9.0/github.min.css +0 -10
  827. nautobot/project-static/highlight.js-11.9.0/highlight.min.js +0 -378
  828. nautobot/project-static/jquery/jquery-3.7.1.min.js +0 -2
  829. nautobot/project-static/jquery-ui-1.13.2/images/ui-icons_444444_256x240.png +0 -0
  830. nautobot/project-static/jquery-ui-1.13.2/images/ui-icons_555555_256x240.png +0 -0
  831. nautobot/project-static/jquery-ui-1.13.2/images/ui-icons_777620_256x240.png +0 -0
  832. nautobot/project-static/jquery-ui-1.13.2/images/ui-icons_777777_256x240.png +0 -0
  833. nautobot/project-static/jquery-ui-1.13.2/images/ui-icons_cc0000_256x240.png +0 -0
  834. nautobot/project-static/jquery-ui-1.13.2/images/ui-icons_ffffff_256x240.png +0 -0
  835. nautobot/project-static/jquery-ui-1.13.2/jquery-ui.min.css +0 -7
  836. nautobot/project-static/jquery-ui-1.13.2/jquery-ui.min.js +0 -6
  837. nautobot/project-static/jquery-ui-1.13.2/jquery-ui.structure.min.css +0 -5
  838. nautobot/project-static/jquery-ui-1.13.2/jquery-ui.theme.min.css +0 -5
  839. nautobot/project-static/js/homepage_layout.js +0 -182
  840. nautobot/project-static/js/nav_menu.js +0 -250
  841. nautobot/project-static/js/theme.js +0 -133
  842. nautobot/project-static/materialdesignicons-7.4.47/LICENSE +0 -20
  843. nautobot/project-static/materialdesignicons-7.4.47/css/materialdesignicons.min.css +0 -3
  844. nautobot/project-static/react-16.14.0/react.production.min.js +0 -32
  845. nautobot/project-static/react-dom-16.14.0/react-dom.production.min.js +0 -239
  846. nautobot/project-static/select2-4.0.13/i18n/af.js +0 -3
  847. nautobot/project-static/select2-4.0.13/i18n/ar.js +0 -3
  848. nautobot/project-static/select2-4.0.13/i18n/az.js +0 -3
  849. nautobot/project-static/select2-4.0.13/i18n/bg.js +0 -3
  850. nautobot/project-static/select2-4.0.13/i18n/bn.js +0 -3
  851. nautobot/project-static/select2-4.0.13/i18n/bs.js +0 -3
  852. nautobot/project-static/select2-4.0.13/i18n/ca.js +0 -3
  853. nautobot/project-static/select2-4.0.13/i18n/cs.js +0 -3
  854. nautobot/project-static/select2-4.0.13/i18n/da.js +0 -3
  855. nautobot/project-static/select2-4.0.13/i18n/de.js +0 -3
  856. nautobot/project-static/select2-4.0.13/i18n/dsb.js +0 -3
  857. nautobot/project-static/select2-4.0.13/i18n/el.js +0 -3
  858. nautobot/project-static/select2-4.0.13/i18n/en.js +0 -3
  859. nautobot/project-static/select2-4.0.13/i18n/es.js +0 -3
  860. nautobot/project-static/select2-4.0.13/i18n/et.js +0 -3
  861. nautobot/project-static/select2-4.0.13/i18n/eu.js +0 -3
  862. nautobot/project-static/select2-4.0.13/i18n/fa.js +0 -3
  863. nautobot/project-static/select2-4.0.13/i18n/fi.js +0 -3
  864. nautobot/project-static/select2-4.0.13/i18n/fr.js +0 -3
  865. nautobot/project-static/select2-4.0.13/i18n/gl.js +0 -3
  866. nautobot/project-static/select2-4.0.13/i18n/he.js +0 -3
  867. nautobot/project-static/select2-4.0.13/i18n/hi.js +0 -3
  868. nautobot/project-static/select2-4.0.13/i18n/hr.js +0 -3
  869. nautobot/project-static/select2-4.0.13/i18n/hsb.js +0 -3
  870. nautobot/project-static/select2-4.0.13/i18n/hu.js +0 -3
  871. nautobot/project-static/select2-4.0.13/i18n/hy.js +0 -3
  872. nautobot/project-static/select2-4.0.13/i18n/id.js +0 -3
  873. nautobot/project-static/select2-4.0.13/i18n/is.js +0 -3
  874. nautobot/project-static/select2-4.0.13/i18n/it.js +0 -3
  875. nautobot/project-static/select2-4.0.13/i18n/ja.js +0 -3
  876. nautobot/project-static/select2-4.0.13/i18n/ka.js +0 -3
  877. nautobot/project-static/select2-4.0.13/i18n/km.js +0 -3
  878. nautobot/project-static/select2-4.0.13/i18n/ko.js +0 -3
  879. nautobot/project-static/select2-4.0.13/i18n/lt.js +0 -3
  880. nautobot/project-static/select2-4.0.13/i18n/lv.js +0 -3
  881. nautobot/project-static/select2-4.0.13/i18n/mk.js +0 -3
  882. nautobot/project-static/select2-4.0.13/i18n/ms.js +0 -3
  883. nautobot/project-static/select2-4.0.13/i18n/nb.js +0 -3
  884. nautobot/project-static/select2-4.0.13/i18n/ne.js +0 -3
  885. nautobot/project-static/select2-4.0.13/i18n/nl.js +0 -3
  886. nautobot/project-static/select2-4.0.13/i18n/pl.js +0 -3
  887. nautobot/project-static/select2-4.0.13/i18n/ps.js +0 -3
  888. nautobot/project-static/select2-4.0.13/i18n/pt-BR.js +0 -3
  889. nautobot/project-static/select2-4.0.13/i18n/pt.js +0 -3
  890. nautobot/project-static/select2-4.0.13/i18n/ro.js +0 -3
  891. nautobot/project-static/select2-4.0.13/i18n/ru.js +0 -3
  892. nautobot/project-static/select2-4.0.13/i18n/sk.js +0 -3
  893. nautobot/project-static/select2-4.0.13/i18n/sl.js +0 -3
  894. nautobot/project-static/select2-4.0.13/i18n/sq.js +0 -3
  895. nautobot/project-static/select2-4.0.13/i18n/sr-Cyrl.js +0 -3
  896. nautobot/project-static/select2-4.0.13/i18n/sr.js +0 -3
  897. nautobot/project-static/select2-4.0.13/i18n/sv.js +0 -3
  898. nautobot/project-static/select2-4.0.13/i18n/th.js +0 -3
  899. nautobot/project-static/select2-4.0.13/i18n/tk.js +0 -3
  900. nautobot/project-static/select2-4.0.13/i18n/tr.js +0 -3
  901. nautobot/project-static/select2-4.0.13/i18n/uk.js +0 -3
  902. nautobot/project-static/select2-4.0.13/i18n/vi.js +0 -3
  903. nautobot/project-static/select2-4.0.13/i18n/zh-CN.js +0 -3
  904. nautobot/project-static/select2-4.0.13/i18n/zh-TW.js +0 -3
  905. nautobot/project-static/select2-4.0.13/select2.min.css +0 -1
  906. nautobot/project-static/select2-4.0.13/select2.min.js +0 -2
  907. nautobot/project-static/select2-bootstrap-0.1.0-beta.10/select2-bootstrap.min.css +0 -7
  908. nautobot/project-static/subscriptions-transport-ws-0.9.18/client.min.js +0 -8
  909. nautobot/project-static/whatwg-fetch-3.6.2/fetch.umd.min.js +0 -8
  910. nautobot/virtualization/templates/virtualization/cluster_add_devices.html +0 -37
  911. /nautobot/extras/{filters/customfields.py → filter_mixins_customfields.py} +0 -0
  912. /nautobot/project-static/{materialdesignicons-7.4.47/fonts/materialdesignicons-webfont.ttf → dist/1fcc36272ea3e53d0031.ttf} +0 -0
  913. /nautobot/project-static/{materialdesignicons-7.4.47/fonts/materialdesignicons-webfont.eot → dist/2146c3c82b553977abc7.eot} +0 -0
  914. /nautobot/project-static/{materialdesignicons-7.4.47/fonts/materialdesignicons-webfont.woff → dist/e55a20c80650829ec5fd.woff} +0 -0
  915. /nautobot/project-static/{materialdesignicons-7.4.47/fonts/materialdesignicons-webfont.woff2 → dist/ec024da790d2972da002.woff2} +0 -0
  916. /nautobot/tenancy/{filters/mixins.py → filter_mixins.py} +0 -0
  917. {nautobot-2.4.21.dist-info → nautobot-3.0.0a3.dist-info}/LICENSE.txt +0 -0
  918. {nautobot-2.4.21.dist-info → nautobot-3.0.0a3.dist-info}/NOTICE +0 -0
  919. {nautobot-2.4.21.dist-info → nautobot-3.0.0a3.dist-info}/WHEEL +0 -0
@@ -0,0 +1,3 @@
1
+ /*! For license information please see graphql-libraries.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunknautobot=self.webpackChunknautobot||[]).push([[748],{50:(e,t,n)=>{n.d(t,{createGraphiQLFetcher:()=>m});var r=n(7801),i=n(4705),o=new TextDecoder;function a(e,t,n){const r=async function*(){yield*e}(),i=r.return.bind(r);if(t&&(r.return=(...e)=>(t(),i(...e))),n){const e=r.throw.bind(r);r.throw=t=>(n(t),e(t))}return r}function s(){const e={};return e.promise=new Promise(((t,n)=>{e.resolve=t,e.reject=n})),e}const l=e=>{const{pushValue:t,asyncIterableIterator:n}=function(){let e={type:"running"},t=s();const n=[];return{pushValue:function(r){"running"===e.type&&(n.push(r),t.resolve(),t=s())},asyncIterableIterator:a(async function*(){for(;;)if(n.length>0)yield n.shift();else{if("error"===e.type)throw e.error;if("finished"===e.type)return;await t.promise}}(),(()=>{"running"===e.type&&(e={type:"finished"},t.resolve())}),(n=>{"running"===e.type&&(e={type:"error",error:n},t.resolve())}))}}(),r=e({next:e=>{t(e)},complete:()=>{n.return()},error:e=>{n.throw(e)}}),i=n.return;let o;return n.return=()=>(void 0===o&&(r(),o=i()),o),n},u=e=>"object"==typeof e&&null!==e&&"code"in e,c=(e,t)=>{let n=!1;return(0,i.YR)(e,{OperationDefinition(e){var r;t===(null==(r=e.name)?void 0:r.value)&&"subscription"===e.operation&&(n=!0)}}),n},d=(e,t)=>async(n,i)=>(await t(e.url,{method:"POST",body:JSON.stringify(n),headers:(0,r.IA)((0,r.IA)({"content-type":"application/json"},e.headers),null==i?void 0:i.headers)})).json(),f=e=>t=>l((n=>e.subscribe(t,(0,r.ko)((0,r.IA)({},n),{error(e){e instanceof CloseEvent?n.error(new Error(`Socket closed with event ${e.code} ${e.reason||""}`.trim())):n.error(e)}})))),p=e=>t=>{const n=e.request(t);return l((e=>n.subscribe(e).unsubscribe))},h=(e,t)=>function(n,i){return(0,r.AQ)(this,null,(function*(){const a=yield new r.N3(t(e.url,{method:"POST",body:JSON.stringify(n),headers:(0,r.IA)((0,r.IA)({"content-type":"application/json",accept:"application/json, multipart/mixed"},e.headers),null==i?void 0:i.headers)}).then((e=>async function(e){if(!e.ok||!e.body||e.bodyUsed)return e;let t=e.headers.get("content-type");if(!t||!~t.indexOf("multipart/"))return e;let n=t.indexOf("boundary="),r="-";if(~n){let e=n+9,i=t.indexOf(";",e);r=t.slice(e,i>-1?i:void 0).trim().replace(/"/g,"")}return async function*(e,t,n){let r,i,a,s=e.getReader(),l=!n||!n.multiple,u=t.length,c="",d=[];try{let e;e:for(;!(e=await s.read()).done;){let n=o.decode(e.value);r=c.length,c+=n;let s=n.indexOf(t);for(~s?r+=s:r=c.indexOf(t),d=[];~r;){let e=c.slice(0,r),n=c.slice(r+u);if(i){let t=e.indexOf("\r\n\r\n")+4,r=e.lastIndexOf("\r\n",t),i=!1,o=e.slice(t,r>-1?void 0:r),s=String(e.slice(0,t)).trim().split("\r\n"),u={},c=s.length;for(;a=s[--c];a=a.split(": "),u[a.shift().toLowerCase()]=a.join(": "));if(a=u["content-type"],a&&~a.indexOf("application/json"))try{o=JSON.parse(o),i=!0}catch(e){}if(a={headers:u,body:o,json:i},l?yield a:d.push(a),"--"===n.slice(0,2))break e}else t="\r\n"+t,i=u+=2;c=n,r=c.indexOf(t)}d.length&&(yield d)}}finally{d.length&&(yield d),await s.cancel()}}(e.body,`--${r}`,{multiple:!0})}(e))));if("object"!=typeof(s=a)||null===s||!("AsyncGenerator"===s[Symbol.toStringTag]||Symbol.asyncIterator&&Symbol.asyncIterator in s))return yield a.json();var s;try{for(var l,u,c,d=(0,r.od)(a);l=!(u=yield new r.N3(d.next())).done;l=!1){const e=u.value;if(e.some((e=>!e.json))){const t=e.map((e=>`Headers::\n${e.headers}\n\nBody::\n${e.body}`));throw new Error(`Expected multipart chunks to be of json type. got:\n${t}`)}yield e.map((e=>e.body))}}catch(u){c=[u]}finally{try{l&&(u=d.return)&&(yield new r.N3(u.call(d)))}finally{if(c)throw c[0]}}}))};function m(e){const t=e.fetch||"undefined"!=typeof window&&window.fetch;if(!t)throw new Error("No valid fetcher implementation available");e.enableIncrementalDelivery=!1!==e.enableIncrementalDelivery;const i=d(e,t),o=e.enableIncrementalDelivery?h(e,t):i;return async(t,a)=>{if("IntrospectionQuery"===t.operationName)return(e.schemaFetcher||i)(t,a);if(null!=a&&a.documentAST&&c(a.documentAST,t.operationName||void 0)){const i=await async function(e,t){if(e.wsClient)return f(e.wsClient);if(e.subscriptionUrl)return async function(e,t){let r;try{const{createClient:i}=await Promise.resolve().then(n.bind(n,4789));return r=i({url:e,connectionParams:t}),f(r)}catch(t){if(u(t)&&"MODULE_NOT_FOUND"===t.code)throw new Error("You need to install the 'graphql-ws' package to use websockets when passing a 'subscriptionUrl'");console.error(`Error creating websocket client for ${e}`,t)}}(e.subscriptionUrl,(0,r.IA)((0,r.IA)({},e.wsConnectionParams),null==t?void 0:t.headers));const i=e.legacyClient||e.legacyWsClient;return i?p(i):void 0}(e,a);if(!i)throw new Error("Your GraphiQL createFetcher is not properly configured for websocket subscriptions yet. "+(e.subscriptionUrl?`Provided URL ${e.subscriptionUrl} failed`:"Please provide subscriptionUrl, wsClient or legacyClient option first."));return i(t)}return o(t,a)}}},93:(e,t,n)=>{n.r(t);var r=n(3338),i=n(166),o=n(8078),a=(n(6540),n(4848),n(961),Object.defineProperty);const s=(()=>a((e=>{const t=(0,i.o)({eatWhitespace:e=>e.eatWhile(i.i),lexRules:i.L,parseRules:i.P,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:o.i,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}}),"name",{value:"graphqlModeFactory",configurable:!0}))();r.C.defineMode("graphql",s)},129:(e,t,n)=>{n.d(t,{N:()=>o});const r=10,i=2;function o(e){return a(e,[])}function a(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:a(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>i)return"[Array]";const n=Math.min(r,e.length),o=e.length-n,s=[];for(let r=0;r<n;++r)s.push(a(e[r],t));return 1===o?s.push("... 1 more item"):o>1&&s.push(`... ${o} more items`),"["+s.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);if(0===n.length)return"{}";if(t.length>i)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const r=n.map((([e,n])=>e+": "+a(n,t)));return"{ "+r.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},162:(e,t,n)=>{n.d(t,{createGraphiQLFetcher:()=>r.createGraphiQLFetcher}),n(4078);var r=n(50);n(2922),n(1057),n(6537)},166:(e,t,n)=>{n.d(t,{C:()=>Ti,H:()=>tx,L:()=>Ii,P:()=>Ai,Q:()=>ux,R:()=>mx,S:()=>_n,T:()=>On,V:()=>yx,a:()=>In,a2:()=>$k,a3:()=>wx,a6:()=>SE,a9:()=>ve,aB:()=>Xa,aG:()=>is,aH:()=>os,aI:()=>as,aJ:()=>Jc,aN:()=>Jy,aO:()=>Ub,aP:()=>Bb,aQ:()=>_b,aR:()=>Dx,aS:()=>Fx,aa:()=>xx,ab:()=>_x,ad:()=>_a,af:()=>Ia,ah:()=>Da,as:()=>qa,au:()=>za,ax:()=>Ya,ay:()=>Ka,az:()=>Qa,b:()=>xi,c:()=>wo,e:()=>eT,f:()=>QT,g:()=>Qi,i:()=>Oi,j:()=>tT,k:()=>nT,l:()=>Ci,o:()=>Fi,p:()=>_i,t:()=>Ni,v:()=>rE});var r=n(6540),i=n(9004),o=n(2327),a=n(4705),s=n(6547),l=n(7167),u=n(3298),c=n(9488),d=n(3770),f=n(1578),p=n(2369),h=n(9581),m=n(3296),g=n(8746),v=n(8301),y=n(617),b=n(4266),E=n(4848),w=n(961),k=Object.defineProperty,T=Object.defineProperties,x=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,S=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable,_=(e,t,n)=>t in e?k(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,O=(e,t)=>{for(var n in t||(t={}))S.call(t,n)&&_(e,n,t[n]);if(C)for(var n of C(t))N.call(t,n)&&_(e,n,t[n]);return e},I=(e,t)=>T(e,x(t)),A=(e,t)=>k(e,"name",{value:t,configurable:!0}),D=(e,t)=>{var n={};for(var r in e)S.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&C)for(var r of C(e))t.indexOf(r)<0&&N.call(e,r)&&(n[r]=e[r]);return n};function L(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=L(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function M(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=L(e))&&(r&&(r+=" "),r+=t);return r}A(L,"r$2"),A(M,"clsx");var F=globalThis&&globalThis.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return A(i,"adopt"),new(n||(n=Promise))((function(n,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){e.done?n(e.value):i(e.value).then(a,s)}A(a,"fulfilled"),A(s,"rejected"),A(l,"step"),l((r=r.apply(e,t||[])).next())}))};function R(e){return"object"==typeof e&&null!==e&&"function"==typeof e.then}function P(e){return new Promise(((t,n)=>{const r=e.subscribe({next:e=>{t(e),r.unsubscribe()},error:n,complete:()=>{n(new Error("no value resolved"))}})}))}function j(e){return"object"==typeof e&&null!==e&&"subscribe"in e&&"function"==typeof e.subscribe}function V(e){return"object"==typeof e&&null!==e&&("AsyncGenerator"===e[Symbol.toStringTag]||Symbol.asyncIterator in e)}function U(e){var t;return F(this,void 0,void 0,(function*(){const n=null===(t=("return"in e?e:e[Symbol.asyncIterator]()).return)||void 0===t?void 0:t.bind(e),r=("next"in e?e:e[Symbol.asyncIterator]()).next.bind(e),i=yield r();return null==n||n(),i.value}))}function B(e){return F(this,void 0,void 0,(function*(){const t=yield e;return V(t)?U(t):j(t)?P(t):t}))}A(R,"isPromise"),A(P,"observableToPromise"),A(j,"isObservable"),A(V,"isAsyncIterable"),A(U,"asyncIterableToPromise"),A(B,"fetcherReturnToPromise"),globalThis&&globalThis.__awaiter;var $=globalThis&&globalThis.__await||function(e){return this instanceof $?(this.v=e,this):new $(e)};function q(e){return JSON.stringify(e,null,2)}function H(e){return Object.assign(Object.assign({},e),{message:e.message,stack:e.stack})}function z(e){return e instanceof Error?H(e):e}function G(e){return Array.isArray(e)?q({errors:e.map((e=>z(e)))}):q({errors:[z(e)]})}function W(e){return q(e)}function Y(e,t,n){const r=[];if(!e||!t)return{insertions:r,result:t};let l;try{l=(0,i.qg)(t)}catch(e){return{insertions:r,result:t}}const u=n||K,c=new o.D(e);return(0,a.YR)(l,{leave(e){c.leave(e)},enter(e){if(c.enter(e),"Field"===e.kind&&!e.selectionSet){const n=Q(Z(c.getType()),u);if(n&&e.loc){const i=X(t,e.loc.start);r.push({index:e.loc.end,string:" "+(0,s.y)(n).replaceAll("\n","\n"+i)})}}}}),{insertions:r,result:J(t,r)}}function K(e){if(!("getFields"in e))return[];const t=e.getFields();if(t.id)return["id"];if(t.edges)return["edges"];if(t.node)return["node"];const n=[];for(const e of Object.keys(t))(0,l.zf)(t[e].type)&&n.push(e);return n}function Q(e,t){const n=(0,l.MR)(e);if(!e||(0,l.zf)(e))return;const r=t(n);return Array.isArray(r)&&0!==r.length&&"getFields"in n?{kind:u.b.SELECTION_SET,selections:r.map((e=>{const r=n.getFields()[e],i=r?r.type:null;return{kind:u.b.FIELD,name:{kind:u.b.NAME,value:e},selectionSet:Q(i,t)}}))}:void 0}function J(e,t){if(0===t.length)return e;let n="",r=0;for(const{index:i,string:o}of t)n+=e.slice(r,i)+o,r=i;return n+=e.slice(r),n}function X(e,t){let n=t,r=t;for(;n;){const t=e.charCodeAt(n-1);if(10===t||13===t||8232===t||8233===t)break;n--,9!==t&&11!==t&&12!==t&&32!==t&&160!==t&&(r=n)}return e.slice(n,r)}function Z(e){if(e)return e}function ee(e,t){var n;const r=new Map,i=[];for(const o of e)if("Field"===o.kind){const e=t(o),a=r.get(e);if(null===(n=o.directives)||void 0===n?void 0:n.length){const e=Object.assign({},o);i.push(e)}else if((null==a?void 0:a.selectionSet)&&o.selectionSet)a.selectionSet.selections=[...a.selectionSet.selections,...o.selectionSet.selections];else if(!a){const t=Object.assign({},o);r.set(e,t),i.push(t)}}else i.push(o);return i}function te(e,t,n){var r;const i=n?(0,l.MR)(n).name:null,o=[],a=[];for(let s of t){if("FragmentSpread"===s.kind){const t=s.name.value;if(!s.directives||0===s.directives.length){if(a.includes(t))continue;a.push(t)}const n=e[s.name.value];if(n){const{typeCondition:e,directives:t,selectionSet:r}=n;s={kind:u.b.INLINE_FRAGMENT,typeCondition:e,directives:t,selectionSet:r}}}if(s.kind===u.b.INLINE_FRAGMENT&&(!s.directives||0===(null===(r=s.directives)||void 0===r?void 0:r.length))){const t=s.typeCondition?s.typeCondition.name.value:null;if(!t||t===i){o.push(...te(e,s.selectionSet.selections,n));continue}}o.push(s)}return o}function ne(e,t){const n=t?new o.D(t):null,r=Object.create(null);for(const t of e.definitions)t.kind===u.b.FRAGMENT_DEFINITION&&(r[t.name.value]=t);const i={SelectionSet(e){const t=n?n.getParentType():null;let{selections:i}=e;return i=te(r,i,t),i=ee(i,(e=>e.alias?e.alias.value:e.name.value)),Object.assign(Object.assign({},e),{selections:i})},FragmentDefinition:()=>null};return(0,a.YR)(e,n?(0,o.S)(n,i):i)}function re(e,t,n){if(!n||n.length<1)return;const r=n.map((e=>{var t;return null===(t=e.name)||void 0===t?void 0:t.value}));if(t&&r.includes(t))return t;if(t&&e){const n=e.map((e=>{var t;return null===(t=e.name)||void 0===t?void 0:t.value})).indexOf(t);if(-1!==n&&n<r.length)return r[n]}return r[0]}function ie(e,t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==e.length}globalThis&&globalThis.__asyncValues,globalThis&&globalThis.__asyncGenerator,A(q,"stringify"),A(H,"formatSingleError"),A(z,"handleSingleError"),A(G,"formatError"),A(W,"formatResult"),A(Y,"fillLeafs"),A(K,"defaultGetDefaultFieldNames"),A(Q,"buildSelectionSet"),A(J,"withInsertions"),A(X,"getIndentation"),A(Z,"isFieldType"),A(ee,"uniqueBy"),A(te,"inlineRelevantFragmentSpreads"),A(ne,"mergeAst"),A(re,"getSelectedOperationName"),A(ie,"isQuotaError");class oe{constructor(e){e?this.storage=e:null===e||"undefined"==typeof window?this.storage=null:this.storage={getItem:window.localStorage.getItem.bind(window.localStorage),setItem:window.localStorage.setItem.bind(window.localStorage),removeItem:window.localStorage.removeItem.bind(window.localStorage),get length(){let e=0;for(const t in window.localStorage)0===t.indexOf(`${ae}:`)&&(e+=1);return e},clear:()=>{for(const e in window.localStorage)0===e.indexOf(`${ae}:`)&&window.localStorage.removeItem(e)}}}get(e){if(!this.storage)return null;const t=`${ae}:${e}`,n=this.storage.getItem(t);return"null"===n||"undefined"===n?(this.storage.removeItem(t),null):n||null}set(e,t){let n=!1,r=null;if(this.storage){const i=`${ae}:${e}`;if(t)try{this.storage.setItem(i,t)}catch(e){r=e instanceof Error?e:new Error(`${e}`),n=ie(this.storage,e)}else this.storage.removeItem(i)}return{isQuotaError:n,error:r}}clear(){this.storage&&this.storage.clear()}}A(oe,"StorageAPI");const ae="graphiql";class se{constructor(e,t,n=null){this.key=e,this.storage=t,this.maxSize=n,this.items=this.fetchAll()}get length(){return this.items.length}contains(e){return this.items.some((t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName))}edit(e){const t=this.items.findIndex((t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName));-1!==t&&(this.items.splice(t,1,e),this.save())}delete(e){const t=this.items.findIndex((t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName));-1!==t&&(this.items.splice(t,1),this.save())}fetchRecent(){return this.items.at(-1)}fetchAll(){const e=this.storage.get(this.key);return e?JSON.parse(e)[this.key]:[]}push(e){const t=[...this.items,e];this.maxSize&&t.length>this.maxSize&&t.shift();for(let e=0;e<5;e++){const e=this.storage.set(this.key,JSON.stringify({[this.key]:t}));if(null==e?void 0:e.error){if(!e.isQuotaError||!this.maxSize)return;t.shift()}else this.items=t}}save(){this.storage.set(this.key,JSON.stringify({[this.key]:this.items}))}}A(se,"QueryStore");class le{constructor(e,t){this.storage=e,this.maxHistoryLength=t,this.updateHistory=(e,t,n,r)=>{if(this.shouldSaveQuery(e,t,n,this.history.fetchRecent())){this.history.push({query:e,variables:t,headers:n,operationName:r});const i=this.history.items,o=this.favorite.items;this.queries=i.concat(o)}},this.history=new se("queries",this.storage,this.maxHistoryLength),this.favorite=new se("favorites",this.storage,null),this.queries=[...this.history.fetchAll(),...this.favorite.fetchAll()]}shouldSaveQuery(e,t,n,r){if(!e)return!1;try{(0,i.qg)(e)}catch(e){return!1}if(e.length>1e5)return!1;if(!r)return!0;if(JSON.stringify(e)===JSON.stringify(r.query)){if(JSON.stringify(t)===JSON.stringify(r.variables)){if(JSON.stringify(n)===JSON.stringify(r.headers))return!1;if(n&&!r.headers)return!1}if(t&&!r.variables)return!1}return!0}toggleFavorite(e,t,n,r,i,o){const a={query:e,variables:t,headers:n,operationName:r,label:i};this.favorite.contains(a)?o&&(a.favorite=!1,this.favorite.delete(a)):(a.favorite=!0,this.favorite.push(a)),this.queries=[...this.history.items,...this.favorite.items]}editLabel(e,t,n,r,i,o){const a={query:e,variables:t,headers:n,operationName:r,label:i};o?this.favorite.edit(Object.assign(Object.assign({},a),{favorite:o})):this.history.edit(a),this.queries=[...this.history.items,...this.favorite.items]}}A(le,"HistoryStore");var ue=Object.defineProperty,ce=A(((e,t)=>ue(e,"name",{value:t,configurable:!0})),"__name$G");function de(e){const t=(0,r.createContext)(null);return t.displayName=e,t}function fe(e){function t(n){var i;const o=(0,r.useContext)(e);if(null===o&&(null==n?void 0:n.nonNull))throw new Error(`Tried to use \`${(null==(i=n.caller)?void 0:i.name)||t.caller.name}\` without the necessary context. Make sure to render the \`${e.displayName}Provider\` component higher up the tree.`);return o}return A(t,"useGivenContext"),ce(t,"useGivenContext"),Object.defineProperty(t,"name",{value:`use${e.displayName}`}),t}A(de,"createNullableContext"),ce(de,"createNullableContext"),A(fe,"createContextHook"),ce(fe,"createContextHook");var pe=Object.defineProperty,he=A(((e,t)=>pe(e,"name",{value:t,configurable:!0})),"__name$F");const me=de("StorageContext");function ge(e){const t=(0,r.useRef)(!0),[n,i]=(0,r.useState)(new oe(e.storage));return(0,r.useEffect)((()=>{t.current?t.current=!1:i(new oe(e.storage))}),[e.storage]),(0,E.jsx)(me.Provider,{value:n,children:e.children})}A(ge,"StorageContextProvider"),he(ge,"StorageContextProvider");const ve=fe(me);function ye(e){return be(e,[])}function be(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return Ee(e,t);default:return String(e)}}function Ee(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(we(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:be(t,n)}else if(Array.isArray(e))return Te(e,n);return ke(e,n)}function we(e){return"function"==typeof e.toJSON}function ke(e,t){const n=Object.entries(e);return 0===n.length?"{}":t.length>2?"["+xe(e)+"]":"{ "+n.map((([e,n])=>e+": "+be(n,t))).join(", ")+" }"}function Te(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";const n=Math.min(10,e.length),r=e.length-n,i=[];for(let r=0;r<n;++r)i.push(be(e[r],t));return 1===r?i.push("... 1 more item"):r>1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function xe(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}function Ce(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}let Se;var Ne;function _e(e){return 9===e||32===e}function Oe(e){return e>=48&&e<=57}function Ie(e){return e>=97&&e<=122||e>=65&&e<=90}function Ae(e){return Ie(e)||95===e}function De(e){return Ie(e)||Oe(e)||95===e}function Le(e,t){const n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=1===r.length,o=r.length>1&&r.slice(1).every((e=>0===e.length||_e(e.charCodeAt(0)))),a=n.endsWith('\\"""'),s=e.endsWith('"')&&!a,l=e.endsWith("\\"),u=s||l,c=!(null!=t&&t.minimize)&&(!i||e.length>70||u||o||a);let d="";const f=i&&_e(e.charCodeAt(0));return(c&&!f||o)&&(d+="\n"),d+=n,(c||u)&&(d+="\n"),'"""'+d+'"""'}function Me(e){return`"${e.replace(Fe,Re)}"`}A(ye,"inspect"),A(be,"formatValue"),A(Ee,"formatObjectValue"),A(we,"isJSONable"),A(ke,"formatObject"),A(Te,"formatArray"),A(xe,"getObjectTag"),A(Ce,"invariant"),(Ne=Se||(Se={})).QUERY="QUERY",Ne.MUTATION="MUTATION",Ne.SUBSCRIPTION="SUBSCRIPTION",Ne.FIELD="FIELD",Ne.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",Ne.FRAGMENT_SPREAD="FRAGMENT_SPREAD",Ne.INLINE_FRAGMENT="INLINE_FRAGMENT",Ne.VARIABLE_DEFINITION="VARIABLE_DEFINITION",Ne.SCHEMA="SCHEMA",Ne.SCALAR="SCALAR",Ne.OBJECT="OBJECT",Ne.FIELD_DEFINITION="FIELD_DEFINITION",Ne.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",Ne.INTERFACE="INTERFACE",Ne.UNION="UNION",Ne.ENUM="ENUM",Ne.ENUM_VALUE="ENUM_VALUE",Ne.INPUT_OBJECT="INPUT_OBJECT",Ne.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",A(_e,"isWhiteSpace$2"),A(Oe,"isDigit$1"),A(Ie,"isLetter$1"),A(Ae,"isNameStart"),A(De,"isNameContinue"),A(Le,"printBlockString"),A(Me,"printString");const Fe=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function Re(e){return Pe[e.charCodeAt(0)]}A(Re,"escapedReplacer");const Pe=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];function je(e,t){if(!Boolean(e))throw new Error(t)}A(je,"devAssert");const Ve={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},Ue=new Set(Object.keys(Ve));function Be(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&Ue.has(t)}let $e;var qe;let He;var ze;A(Be,"isNode"),(qe=$e||($e={})).QUERY="query",qe.MUTATION="mutation",qe.SUBSCRIPTION="subscription",(ze=He||(He={})).NAME="Name",ze.DOCUMENT="Document",ze.OPERATION_DEFINITION="OperationDefinition",ze.VARIABLE_DEFINITION="VariableDefinition",ze.SELECTION_SET="SelectionSet",ze.FIELD="Field",ze.ARGUMENT="Argument",ze.FRAGMENT_SPREAD="FragmentSpread",ze.INLINE_FRAGMENT="InlineFragment",ze.FRAGMENT_DEFINITION="FragmentDefinition",ze.VARIABLE="Variable",ze.INT="IntValue",ze.FLOAT="FloatValue",ze.STRING="StringValue",ze.BOOLEAN="BooleanValue",ze.NULL="NullValue",ze.ENUM="EnumValue",ze.LIST="ListValue",ze.OBJECT="ObjectValue",ze.OBJECT_FIELD="ObjectField",ze.DIRECTIVE="Directive",ze.NAMED_TYPE="NamedType",ze.LIST_TYPE="ListType",ze.NON_NULL_TYPE="NonNullType",ze.SCHEMA_DEFINITION="SchemaDefinition",ze.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",ze.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",ze.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",ze.FIELD_DEFINITION="FieldDefinition",ze.INPUT_VALUE_DEFINITION="InputValueDefinition",ze.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",ze.UNION_TYPE_DEFINITION="UnionTypeDefinition",ze.ENUM_TYPE_DEFINITION="EnumTypeDefinition",ze.ENUM_VALUE_DEFINITION="EnumValueDefinition",ze.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",ze.DIRECTIVE_DEFINITION="DirectiveDefinition",ze.SCHEMA_EXTENSION="SchemaExtension",ze.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",ze.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",ze.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",ze.UNION_TYPE_EXTENSION="UnionTypeExtension",ze.ENUM_TYPE_EXTENSION="EnumTypeExtension",ze.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension";const Ge=Object.freeze({});function We(e,t,n=Ve){const r=new Map;for(const e of Object.values(He))r.set(e,Ye(t,e));let i,o,a,s=Array.isArray(e),l=[e],u=-1,c=[],d=e;const f=[],p=[];do{u++;const e=u===l.length,v=e&&0!==c.length;if(e){if(o=0===p.length?void 0:f[f.length-1],d=a,a=p.pop(),v)if(s){d=d.slice();let e=0;for(const[t,n]of c){const r=t-e;null===n?(d.splice(r,1),e++):d[r]=n}}else{d=Object.defineProperties({},Object.getOwnPropertyDescriptors(d));for(const[e,t]of c)d[e]=t}u=i.index,l=i.keys,c=i.edits,s=i.inArray,i=i.prev}else if(a){if(o=s?u:l[u],d=a[o],null==d)continue;f.push(o)}let y;if(!Array.isArray(d)){var h,m;Be(d)||je(!1,`Invalid AST Node: ${ye(d)}.`);const n=e?null===(h=r.get(d.kind))||void 0===h?void 0:h.leave:null===(m=r.get(d.kind))||void 0===m?void 0:m.enter;if(y=null==n?void 0:n.call(t,d,o,a,f,p),y===Ge)break;if(!1===y){if(!e){f.pop();continue}}else if(void 0!==y&&(c.push([o,y]),!e)){if(!Be(y)){f.pop();continue}d=y}}var g;void 0===y&&v&&c.push([o,d]),e?f.pop():(i={inArray:s,index:u,keys:l,edits:c,prev:i},s=Array.isArray(d),l=s?d:null!==(g=n[d.kind])&&void 0!==g?g:[],u=-1,c=[],a&&p.push(a),a=d)}while(void 0!==i);return 0!==c.length?c[c.length-1][1]:e}function Ye(e,t){const n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function Ke(e){return We(e,Qe)}A(We,"visit"),A(Ye,"getEnterLeaveForKind"),A(Ke,"print");const Qe={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Je(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=Ze("(",Je(e.variableDefinitions,", "),")"),n=Je([e.operation,Je([e.name,t]),Je(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+Ze(" = ",n)+Ze(" ",Je(r," "))},SelectionSet:{leave:({selections:e})=>Xe(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=Ze("",e,": ")+t;let a=o+Ze("(",Je(n,", "),")");return a.length>80&&(a=o+Ze("(\n",et(Je(n,"\n")),"\n)")),Je([a,Je(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Ze(" ",Je(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Je(["...",Ze("on ",e),Je(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${Ze("(",Je(n,", "),")")} on ${t} ${Ze("",Je(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?Le(e):Me(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Je(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Je(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Ze("(",Je(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Ze("",e,"\n")+Je(["schema",Je(t," "),Xe(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Ze("",e,"\n")+Je(["scalar",t,Je(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Ze("",e,"\n")+Je(["type",t,Ze("implements ",Je(n," & ")),Je(r," "),Xe(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>Ze("",e,"\n")+t+(tt(n)?Ze("(\n",et(Je(n,"\n")),"\n)"):Ze("(",Je(n,", "),")"))+": "+r+Ze(" ",Je(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>Ze("",e,"\n")+Je([t+": "+n,Ze("= ",r),Je(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Ze("",e,"\n")+Je(["interface",t,Ze("implements ",Je(n," & ")),Je(r," "),Xe(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>Ze("",e,"\n")+Je(["union",t,Je(n," "),Ze("= ",Je(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>Ze("",e,"\n")+Je(["enum",t,Je(n," "),Xe(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Ze("",e,"\n")+Je([t,Je(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>Ze("",e,"\n")+Je(["input",t,Je(n," "),Xe(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>Ze("",e,"\n")+"directive @"+t+(tt(n)?Ze("(\n",et(Je(n,"\n")),"\n)"):Ze("(",Je(n,", "),")"))+(r?" repeatable":"")+" on "+Je(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Je(["extend schema",Je(e," "),Xe(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Je(["extend scalar",e,Je(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Je(["extend type",e,Ze("implements ",Je(t," & ")),Je(n," "),Xe(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Je(["extend interface",e,Ze("implements ",Je(t," & ")),Je(n," "),Xe(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Je(["extend union",e,Je(t," "),Ze("= ",Je(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Je(["extend enum",e,Je(t," "),Xe(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Je(["extend input",e,Je(t," "),Xe(n)]," ")}};function Je(e,t=""){var n;return null!==(n=null==e?void 0:e.filter((e=>e)).join(t))&&void 0!==n?n:""}function Xe(e){return Ze("{\n",et(Je(e,"\n")),"\n}")}function Ze(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function et(e){return Ze(" ",e.replace(/\n/g,"\n "))}function tt(e){var t;return null!==(t=null==e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}function nt(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}function rt(e){return"object"==typeof e&&null!==e}function it(e,t){const[n,r]=t?[e,t]:[void 0,e];let i=" Did you mean ";n&&(i+=n+" ");const o=r.map((e=>`"${e}"`));switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}const a=o.slice(0,5),s=a.pop();return i+a.join(", ")+", or "+s+"?"}function ot(e){return e}A(Je,"join"),A(Xe,"block$2"),A(Ze,"wrap"),A(et,"indent"),A(tt,"hasMultilineItems"),A(nt,"isIterableObject"),A(rt,"isObjectLike"),A(it,"didYouMean"),A(ot,"identityFunc");const at=A((function(e,t){return e instanceof t}),"instanceOf");function st(e,t){const n=Object.create(null);for(const r of e)n[t(r)]=r;return n}function lt(e,t,n){const r=Object.create(null);for(const i of e)r[t(i)]=n(i);return r}function ut(e,t){const n=Object.create(null);for(const r of Object.keys(e))n[r]=t(e[r],r);return n}function ct(e,t){let n=0,r=0;for(;n<e.length&&r<t.length;){let i=e.charCodeAt(n),o=t.charCodeAt(r);if(pt(i)&&pt(o)){let a=0;do{++n,a=10*a+i-dt,i=e.charCodeAt(n)}while(pt(i)&&a>0);let s=0;do{++r,s=10*s+o-dt,o=t.charCodeAt(r)}while(pt(o)&&s>0);if(a<s)return-1;if(a>s)return 1}else{if(i<o)return-1;if(i>o)return 1;++n,++r}}return e.length-t.length}A(st,"keyMap"),A(lt,"keyValMap"),A(ut,"mapValue"),A(ct,"naturalCompare");const dt=48,ft=57;function pt(e){return!isNaN(e)&&dt<=e&&e<=ft}function ht(e,t){const n=Object.create(null),r=new mt(e),i=Math.floor(.4*e.length)+1;for(const e of t){const t=r.measure(e,i);void 0!==t&&(n[e]=t)}return Object.keys(n).sort(((e,t)=>{const r=n[e]-n[t];return 0!==r?r:ct(e,t)}))}A(pt,"isDigit"),A(ht,"suggestionList");class mt{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=gt(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;const n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let r=gt(n),i=this._inputArray;if(r.length<i.length){const e=r;r=i,i=e}const o=r.length,a=i.length;if(o-a>t)return;const s=this._rows;for(let e=0;e<=a;e++)s[0][e]=e;for(let e=1;e<=o;e++){const n=s[(e-1)%3],o=s[e%3];let l=o[0]=e;for(let t=1;t<=a;t++){const a=r[e-1]===i[t-1]?0:1;let u=Math.min(n[t]+1,o[t-1]+1,n[t-1]+a);if(e>1&&t>1&&r[e-1]===i[t-2]&&r[e-2]===i[t-1]){const n=s[(e-2)%3][t-2];u=Math.min(u,n+1)}u<l&&(l=u),o[t]=u}if(l>t)return}const l=s[o%3][a];return l<=t?l:void 0}}function gt(e){const t=e.length,n=new Array(t);for(let r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}function vt(e){if(null==e)return Object.create(null);if(null===Object.getPrototypeOf(e))return e;const t=Object.create(null);for(const[n,r]of Object.entries(e))t[n]=r;return t}A(mt,"LexicalDistance"),A(gt,"stringToArray"),A(vt,"toObjMap");const yt=/\r\n|[\n\r]/g;function bt(e,t){let n=0,r=1;for(const i of e.body.matchAll(yt)){if("number"==typeof i.index||Ce(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function Et(e){return wt(e.source,bt(e.source,e.start))}function wt(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?n:0,l=t.column+s,u=`${e.name}:${a}:${l}\n`,c=r.split(/\r\n|[\n\r]/g),d=c[i];if(d.length>120){const e=Math.floor(l/80),t=l%80,n=[];for(let e=0;e<d.length;e+=80)n.push(d.slice(e,e+80));return u+kt([[`${a} |`,n[0]],...n.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return u+kt([[a-1+" |",c[i-1]],[`${a} |`,d],["|","^".padStart(l)],[`${a+1} |`,c[i+1]]])}function kt(e){const t=e.filter((([e,t])=>void 0!==t)),n=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(n)+(t?" "+t:""))).join("\n")}function Tt(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}A(bt,"getLocation"),A(Et,"printLocation"),A(wt,"printSourceLocation"),A(kt,"printPrefixedLines"),A(Tt,"toNormalizedOptions");class xt extends Error{constructor(e,...t){var n,r,i;const{nodes:o,source:a,positions:s,path:l,originalError:u,extensions:c}=Tt(t);super(e),this.name="GraphQLError",this.path=null!=l?l:void 0,this.originalError=null!=u?u:void 0,this.nodes=Ct(Array.isArray(o)?o:o?[o]:void 0);const d=Ct(null===(n=this.nodes)||void 0===n?void 0:n.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=a?a:null==d||null===(r=d[0])||void 0===r?void 0:r.source,this.positions=null!=s?s:null==d?void 0:d.map((e=>e.start)),this.locations=s&&a?s.map((e=>bt(a,e))):null==d?void 0:d.map((e=>bt(e.source,e.start)));const f=rt(null==u?void 0:u.extensions)?null==u?void 0:u.extensions:void 0;this.extensions=null!==(i=null!=c?c:f)&&void 0!==i?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=u&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,xt):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+Et(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+wt(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function Ct(e){return void 0===e||0===e.length?void 0:e}function St(e,t){switch(e.kind){case He.NULL:return null;case He.INT:return parseInt(e.value,10);case He.FLOAT:return parseFloat(e.value);case He.STRING:case He.ENUM:case He.BOOLEAN:return e.value;case He.LIST:return e.values.map((e=>St(e,t)));case He.OBJECT:return lt(e.fields,(e=>e.name.value),(e=>St(e.value,t)));case He.VARIABLE:return null==t?void 0:t[e.name.value]}}function Nt(e){if(null!=e||je(!1,"Must provide name."),"string"==typeof e||je(!1,"Expected name to be a string."),0===e.length)throw new xt("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!De(e.charCodeAt(t)))throw new xt(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!Ae(e.charCodeAt(0)))throw new xt(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function _t(e){if("true"===e||"false"===e||"null"===e)throw new xt(`Enum values cannot be named: ${e}`);return Nt(e)}function Ot(e){return It(e)||At(e)||Dt(e)||Lt(e)||Mt(e)||Ft(e)||Rt(e)||Pt(e)}function It(e){return at(e,zt)}function At(e){return at(e,Gt)}function Dt(e){return at(e,Zt)}function Lt(e){return at(e,en)}function Mt(e){return at(e,nn)}function Ft(e){return at(e,an)}function Rt(e){return at(e,Ut)}function Pt(e){return at(e,Bt)}function jt(e){return It(e)||Mt(e)}function Vt(e){return Dt(e)||Lt(e)}A(xt,"GraphQLError"),A(Ct,"undefinedIfEmpty"),A(St,"valueFromASTUntyped"),A(Nt,"assertName"),A(_t,"assertEnumValueName"),A(Ot,"isType"),A(It,"isScalarType"),A(At,"isObjectType"),A(Dt,"isInterfaceType"),A(Lt,"isUnionType"),A(Mt,"isEnumType"),A(Ft,"isInputObjectType"),A(Rt,"isListType"),A(Pt,"isNonNullType"),A(jt,"isLeafType"),A(Vt,"isAbstractType");class Ut{constructor(e){Ot(e)||je(!1,`Expected ${ye(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}A(Ut,"GraphQLList");class Bt{constructor(e){$t(e)||je(!1,`Expected ${ye(e)} to be a GraphQL nullable type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function $t(e){return Ot(e)&&!Pt(e)}function qt(e){return"function"==typeof e?e():e}function Ht(e){return"function"==typeof e?e():e}A(Bt,"GraphQLNonNull"),A($t,"isNullableType"),A(qt,"resolveReadonlyArrayThunk"),A(Ht,"resolveObjMapThunk");class zt{constructor(e){var t,n,r,i;const o=null!==(t=e.parseValue)&&void 0!==t?t:ot;this.name=Nt(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:ot,this.parseValue=o,this.parseLiteral=null!==(r=e.parseLiteral)&&void 0!==r?r:(e,t)=>o(St(e,t)),this.extensions=vt(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(i=e.extensionASTNodes)&&void 0!==i?i:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||je(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${ye(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||je(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||je(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}A(zt,"GraphQLScalarType");class Gt{constructor(e){var t;this.name=Nt(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=vt(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=()=>Yt(e),this._interfaces=()=>Wt(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||je(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${ye(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Jt(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Wt(e){var t;const n=qt(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(n)||je(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function Yt(e){const t=Ht(e.fields);return Qt(t)||je(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),ut(t,((t,n)=>{var r;Qt(t)||je(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||je(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${ye(t.resolve)}.`);const i=null!==(r=t.args)&&void 0!==r?r:{};return Qt(i)||je(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:Nt(n),description:t.description,type:t.type,args:Kt(i),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:vt(t.extensions),astNode:t.astNode}}))}function Kt(e){return Object.entries(e).map((([e,t])=>({name:Nt(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:vt(t.extensions),astNode:t.astNode})))}function Qt(e){return rt(e)&&!Array.isArray(e)}function Jt(e){return ut(e,(e=>({description:e.description,type:e.type,args:Xt(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function Xt(e){return lt(e,(e=>e.name),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}A(Gt,"GraphQLObjectType"),A(Wt,"defineInterfaces"),A(Yt,"defineFieldMap"),A(Kt,"defineArguments"),A(Qt,"isPlainObj"),A(Jt,"fieldsToFieldsConfig"),A(Xt,"argsToArgsConfig");class Zt{constructor(e){var t;this.name=Nt(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=vt(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=Yt.bind(void 0,e),this._interfaces=Wt.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||je(!1,`${this.name} must provide "resolveType" as a function, but got: ${ye(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Jt(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}A(Zt,"GraphQLInterfaceType");class en{constructor(e){var t;this.name=Nt(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=vt(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._types=tn.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||je(!1,`${this.name} must provide "resolveType" as a function, but got: ${ye(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function tn(e){const t=qt(e.types);return Array.isArray(t)||je(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}A(en,"GraphQLUnionType"),A(tn,"defineTypes");class nn{constructor(e){var t;this.name=Nt(e.name),this.description=e.description,this.extensions=vt(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._values=on(this.name,e.values),this._valueLookup=new Map(this._values.map((e=>[e.value,e]))),this._nameLookup=st(this._values,(e=>e.name))}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return this._values}getValue(e){return this._nameLookup[e]}serialize(e){const t=this._valueLookup.get(e);if(void 0===t)throw new xt(`Enum "${this.name}" cannot represent value: ${ye(e)}`);return t.name}parseValue(e){if("string"!=typeof e){const t=ye(e);throw new xt(`Enum "${this.name}" cannot represent non-string value: ${t}.`+rn(this,t))}const t=this.getValue(e);if(null==t)throw new xt(`Value "${e}" does not exist in "${this.name}" enum.`+rn(this,e));return t.value}parseLiteral(e,t){if(e.kind!==He.ENUM){const t=Ke(e);throw new xt(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+rn(this,t),{nodes:e})}const n=this.getValue(e.value);if(null==n){const t=Ke(e);throw new xt(`Value "${t}" does not exist in "${this.name}" enum.`+rn(this,t),{nodes:e})}return n.value}toConfig(){const e=lt(this.getValues(),(e=>e.name),(e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function rn(e,t){return it("the enum value",ht(t,e.getValues().map((e=>e.name))))}function on(e,t){return Qt(t)||je(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map((([t,n])=>(Qt(n)||je(!1,`${e}.${t} must refer to an object with a "value" key representing an internal value but got: ${ye(n)}.`),{name:_t(t),description:n.description,value:void 0!==n.value?n.value:t,deprecationReason:n.deprecationReason,extensions:vt(n.extensions),astNode:n.astNode})))}A(nn,"GraphQLEnumType"),A(rn,"didYouMeanEnumValue"),A(on,"defineEnumValues");class an{constructor(e){var t;this.name=Nt(e.name),this.description=e.description,this.extensions=vt(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=sn.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){const e=ut(this.getFields(),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function sn(e){const t=Ht(e.fields);return Qt(t)||je(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),ut(t,((t,n)=>(!("resolve"in t)||je(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:Nt(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:vt(t.extensions),astNode:t.astNode})))}A(an,"GraphQLInputObjectType"),A(sn,"defineInputFieldMap");const ln=2147483647,un=-2147483648,cn=new zt({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=mn(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isInteger(n))throw new xt(`Int cannot represent non-integer value: ${ye(t)}`);if(n>ln||n<un)throw new xt("Int cannot represent non 32-bit signed integer value: "+ye(t));return n},parseValue(e){if("number"!=typeof e||!Number.isInteger(e))throw new xt(`Int cannot represent non-integer value: ${ye(e)}`);if(e>ln||e<un)throw new xt(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==He.INT)throw new xt(`Int cannot represent non-integer value: ${Ke(e)}`,{nodes:e});const t=parseInt(e.value,10);if(t>ln||t<un)throw new xt(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),dn=new zt({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(e){const t=mn(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isFinite(n))throw new xt(`Float cannot represent non numeric value: ${ye(t)}`);return n},parseValue(e){if("number"!=typeof e||!Number.isFinite(e))throw new xt(`Float cannot represent non numeric value: ${ye(e)}`);return e},parseLiteral(e){if(e.kind!==He.FLOAT&&e.kind!==He.INT)throw new xt(`Float cannot represent non numeric value: ${Ke(e)}`,e);return parseFloat(e.value)}}),fn=new zt({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){const t=mn(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if("number"==typeof t&&Number.isFinite(t))return t.toString();throw new xt(`String cannot represent value: ${ye(e)}`)},parseValue(e){if("string"!=typeof e)throw new xt(`String cannot represent a non string value: ${ye(e)}`);return e},parseLiteral(e){if(e.kind!==He.STRING)throw new xt(`String cannot represent a non string value: ${Ke(e)}`,{nodes:e});return e.value}}),pn=new zt({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=mn(e);if("boolean"==typeof t)return t;if(Number.isFinite(t))return 0!==t;throw new xt(`Boolean cannot represent a non boolean value: ${ye(t)}`)},parseValue(e){if("boolean"!=typeof e)throw new xt(`Boolean cannot represent a non boolean value: ${ye(e)}`);return e},parseLiteral(e){if(e.kind!==He.BOOLEAN)throw new xt(`Boolean cannot represent a non boolean value: ${Ke(e)}`,{nodes:e});return e.value}}),hn=new zt({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){const t=mn(e);if("string"==typeof t)return t;if(Number.isInteger(t))return String(t);throw new xt(`ID cannot represent value: ${ye(e)}`)},parseValue(e){if("string"==typeof e)return e;if("number"==typeof e&&Number.isInteger(e))return e.toString();throw new xt(`ID cannot represent value: ${ye(e)}`)},parseLiteral(e){if(e.kind!==He.STRING&&e.kind!==He.INT)throw new xt("ID cannot represent a non-string and non-integer value: "+Ke(e),{nodes:e});return e.value}});function mn(e){if(rt(e)){if("function"==typeof e.valueOf){const t=e.valueOf();if(!rt(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}function gn(e,t){if(Pt(t)){const n=gn(e,t.ofType);return(null==n?void 0:n.kind)===He.NULL?null:n}if(null===e)return{kind:He.NULL};if(void 0===e)return null;if(Rt(t)){const n=t.ofType;if(nt(e)){const t=[];for(const r of e){const e=gn(r,n);null!=e&&t.push(e)}return{kind:He.LIST,values:t}}return gn(e,n)}if(Ft(t)){if(!rt(e))return null;const n=[];for(const r of Object.values(t.getFields())){const t=gn(e[r.name],r.type);t&&n.push({kind:He.OBJECT_FIELD,name:{kind:He.NAME,value:r.name},value:t})}return{kind:He.OBJECT,fields:n}}if(jt(t)){const n=t.serialize(e);if(null==n)return null;if("boolean"==typeof n)return{kind:He.BOOLEAN,value:n};if("number"==typeof n&&Number.isFinite(n)){const e=String(n);return vn.test(e)?{kind:He.INT,value:e}:{kind:He.FLOAT,value:e}}if("string"==typeof n)return Mt(t)?{kind:He.ENUM,value:n}:t===hn&&vn.test(n)?{kind:He.INT,value:n}:{kind:He.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${ye(n)}.`)}Ce(!1,"Unexpected input type: "+ye(t))}Object.freeze([fn,cn,dn,pn,hn]),A(mn,"serializeObject"),A(gn,"astFromValue");const vn=/^-?(?:0|[1-9][0-9]*)$/,yn=new Gt({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:fn,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new Bt(new Ut(new Bt(wn))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new Bt(wn),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:wn,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:wn,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new Bt(new Ut(new Bt(bn))),resolve:e=>e.getDirectives()}})}),bn=new Gt({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new Bt(fn),resolve:e=>e.name},description:{type:fn,resolve:e=>e.description},isRepeatable:{type:new Bt(pn),resolve:e=>e.isRepeatable},locations:{type:new Bt(new Ut(new Bt(En))),resolve:e=>e.locations},args:{type:new Bt(new Ut(new Bt(Tn))),args:{includeDeprecated:{type:pn,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter((e=>null==e.deprecationReason))}})}),En=new nn({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:Se.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:Se.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:Se.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:Se.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:Se.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:Se.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:Se.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:Se.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:Se.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:Se.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:Se.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:Se.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:Se.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:Se.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:Se.UNION,description:"Location adjacent to a union definition."},ENUM:{value:Se.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:Se.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:Se.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:Se.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),wn=new Gt({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new Bt(Nn),resolve:e=>It(e)?Cn.SCALAR:At(e)?Cn.OBJECT:Dt(e)?Cn.INTERFACE:Lt(e)?Cn.UNION:Mt(e)?Cn.ENUM:Ft(e)?Cn.INPUT_OBJECT:Rt(e)?Cn.LIST:Pt(e)?Cn.NON_NULL:void Ce(!1,`Unexpected type: "${ye(e)}".`)},name:{type:fn,resolve:e=>"name"in e?e.name:void 0},description:{type:fn,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:fn,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new Ut(new Bt(kn)),args:{includeDeprecated:{type:pn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(At(e)||Dt(e)){const n=Object.values(e.getFields());return t?n:n.filter((e=>null==e.deprecationReason))}}},interfaces:{type:new Ut(new Bt(wn)),resolve(e){if(At(e)||Dt(e))return e.getInterfaces()}},possibleTypes:{type:new Ut(new Bt(wn)),resolve(e,t,n,{schema:r}){if(Vt(e))return r.getPossibleTypes(e)}},enumValues:{type:new Ut(new Bt(xn)),args:{includeDeprecated:{type:pn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(Mt(e)){const n=e.getValues();return t?n:n.filter((e=>null==e.deprecationReason))}}},inputFields:{type:new Ut(new Bt(Tn)),args:{includeDeprecated:{type:pn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(Ft(e)){const n=Object.values(e.getFields());return t?n:n.filter((e=>null==e.deprecationReason))}}},ofType:{type:wn,resolve:e=>"ofType"in e?e.ofType:void 0}})}),kn=new Gt({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new Bt(fn),resolve:e=>e.name},description:{type:fn,resolve:e=>e.description},args:{type:new Bt(new Ut(new Bt(Tn))),args:{includeDeprecated:{type:pn,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter((e=>null==e.deprecationReason))},type:{type:new Bt(wn),resolve:e=>e.type},isDeprecated:{type:new Bt(pn),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:fn,resolve:e=>e.deprecationReason}})}),Tn=new Gt({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new Bt(fn),resolve:e=>e.name},description:{type:fn,resolve:e=>e.description},type:{type:new Bt(wn),resolve:e=>e.type},defaultValue:{type:fn,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,r=gn(n,t);return r?Ke(r):null}},isDeprecated:{type:new Bt(pn),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:fn,resolve:e=>e.deprecationReason}})}),xn=new Gt({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new Bt(fn),resolve:e=>e.name},description:{type:fn,resolve:e=>e.description},isDeprecated:{type:new Bt(pn),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:fn,resolve:e=>e.deprecationReason}})});let Cn;var Sn;(Sn=Cn||(Cn={})).SCALAR="SCALAR",Sn.OBJECT="OBJECT",Sn.INTERFACE="INTERFACE",Sn.UNION="UNION",Sn.ENUM="ENUM",Sn.INPUT_OBJECT="INPUT_OBJECT",Sn.LIST="LIST",Sn.NON_NULL="NON_NULL";const Nn=new nn({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:Cn.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:Cn.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:Cn.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:Cn.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:Cn.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:Cn.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:Cn.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:Cn.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),_n={name:"__schema",type:new Bt(yn),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},On={name:"__type",type:wn,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new Bt(fn),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},In={name:"__typename",type:new Bt(fn),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};function An(e){let t;return Ln(e,(e=>{switch(e.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=e}})),t}function Dn(e,t,n){return n===_n.name&&e.getQueryType()===t?_n:n===On.name&&e.getQueryType()===t?On:n===In.name&&(0,l.ML)(t)?In:"getFields"in t?t.getFields()[n]:null}function Ln(e,t){const n=[];let r=e;for(;null==r?void 0:r.kind;)n.push(r),r=r.prevState;for(let e=n.length-1;e>=0;e--)t(n[e])}function Mn(e){const t=Object.keys(e),n=t.length,r=new Array(n);for(let i=0;i<n;++i)r[i]=e[t[i]];return r}function Fn(e,t){return Rn(t,jn(e.string))}function Rn(e,t){return t?Pn(Pn(e.map((e=>({proximity:Vn(jn(e.label),t),entry:e}))),(e=>e.proximity<=2)),(e=>!e.entry.isDeprecated)).sort(((e,t)=>(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.label.length-t.entry.label.length)).map((e=>e.entry)):Pn(e,(e=>!e.isDeprecated))}function Pn(e,t){const n=e.filter(t);return 0===n.length?e:n}function jn(e){return e.toLowerCase().replaceAll(/\W/g,"")}function Vn(e,t){let n=Un(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}function Un(e,t){let n,r;const i=[],o=e.length,a=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=a;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=a;r++){const o=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+o),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+o))}return i[o][a]}var Bn,$n,qn,Hn,zn,Gn,Wn,Yn,Kn,Qn,Jn,Xn,Zn,er,tr,nr,rr,ir,or,ar,sr,lr,ur,cr,dr,fr,pr,hr,mr,gr,vr;Object.freeze([yn,bn,En,wn,kn,Tn,xn,Nn]),A(An,"getDefinitionState"),A(Dn,"getFieldDef"),A(Ln,"forEachState"),A(Mn,"objectValues"),A(Fn,"hintList"),A(Rn,"filterAndSortList"),A(Pn,"filterNonEmpty"),A(jn,"normalizeText"),A(Vn,"getProximity"),A(Un,"lexicalDistance"),function(e){function t(e){return"string"==typeof e}A(t,"is"),e.is=t}(Bn||(Bn={})),function(e){function t(e){return"string"==typeof e}A(t,"is"),e.is=t}($n||($n={})),function(e){function t(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647,A(t,"is"),e.is=t}(qn||(qn={})),function(e){function t(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}e.MIN_VALUE=0,e.MAX_VALUE=2147483647,A(t,"is"),e.is=t}(Hn||(Hn={})),function(e){function t(e,t){return e===Number.MAX_VALUE&&(e=Hn.MAX_VALUE),t===Number.MAX_VALUE&&(t=Hn.MAX_VALUE),{line:e,character:t}}function n(e){var t=e;return Ei.objectLiteral(t)&&Ei.uinteger(t.line)&&Ei.uinteger(t.character)}A(t,"create"),e.create=t,A(n,"is"),e.is=n}(zn||(zn={})),function(e){function t(e,t,n,r){if(Ei.uinteger(e)&&Ei.uinteger(t)&&Ei.uinteger(n)&&Ei.uinteger(r))return{start:zn.create(e,t),end:zn.create(n,r)};if(zn.is(e)&&zn.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments[".concat(e,", ").concat(t,", ").concat(n,", ").concat(r,"]"))}function n(e){var t=e;return Ei.objectLiteral(t)&&zn.is(t.start)&&zn.is(t.end)}A(t,"create"),e.create=t,A(n,"is"),e.is=n}(Gn||(Gn={})),function(e){function t(e,t){return{uri:e,range:t}}function n(e){var t=e;return Ei.defined(t)&&Gn.is(t.range)&&(Ei.string(t.uri)||Ei.undefined(t.uri))}A(t,"create"),e.create=t,A(n,"is"),e.is=n}(Wn||(Wn={})),function(e){function t(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}}function n(e){var t=e;return Ei.defined(t)&&Gn.is(t.targetRange)&&Ei.string(t.targetUri)&&Gn.is(t.targetSelectionRange)&&(Gn.is(t.originSelectionRange)||Ei.undefined(t.originSelectionRange))}A(t,"create"),e.create=t,A(n,"is"),e.is=n}(Yn||(Yn={})),function(e){function t(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}}function n(e){var t=e;return Ei.objectLiteral(t)&&Ei.numberRange(t.red,0,1)&&Ei.numberRange(t.green,0,1)&&Ei.numberRange(t.blue,0,1)&&Ei.numberRange(t.alpha,0,1)}A(t,"create"),e.create=t,A(n,"is"),e.is=n}(Kn||(Kn={})),function(e){function t(e,t){return{range:e,color:t}}function n(e){var t=e;return Ei.objectLiteral(t)&&Gn.is(t.range)&&Kn.is(t.color)}A(t,"create"),e.create=t,A(n,"is"),e.is=n}(Qn||(Qn={})),function(e){function t(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}}function n(e){var t=e;return Ei.objectLiteral(t)&&Ei.string(t.label)&&(Ei.undefined(t.textEdit)||ur.is(t))&&(Ei.undefined(t.additionalTextEdits)||Ei.typedArray(t.additionalTextEdits,ur.is))}A(t,"create"),e.create=t,A(n,"is"),e.is=n}(Jn||(Jn={})),(Zn=Xn||(Xn={})).Comment="comment",Zn.Imports="imports",Zn.Region="region",function(e){function t(e,t,n,r,i,o){var a={startLine:e,endLine:t};return Ei.defined(n)&&(a.startCharacter=n),Ei.defined(r)&&(a.endCharacter=r),Ei.defined(i)&&(a.kind=i),Ei.defined(o)&&(a.collapsedText=o),a}function n(e){var t=e;return Ei.objectLiteral(t)&&Ei.uinteger(t.startLine)&&Ei.uinteger(t.startLine)&&(Ei.undefined(t.startCharacter)||Ei.uinteger(t.startCharacter))&&(Ei.undefined(t.endCharacter)||Ei.uinteger(t.endCharacter))&&(Ei.undefined(t.kind)||Ei.string(t.kind))}A(t,"create"),e.create=t,A(n,"is"),e.is=n}(er||(er={})),function(e){function t(e,t){return{location:e,message:t}}function n(e){var t=e;return Ei.defined(t)&&Wn.is(t.location)&&Ei.string(t.message)}A(t,"create"),e.create=t,A(n,"is"),e.is=n}(tr||(tr={})),(rr=nr||(nr={})).Error=1,rr.Warning=2,rr.Information=3,rr.Hint=4,(or=ir||(ir={})).Unnecessary=1,or.Deprecated=2,function(e){function t(e){var t=e;return Ei.objectLiteral(t)&&Ei.string(t.href)}A(t,"is"),e.is=t}(ar||(ar={})),function(e){function t(e,t,n,r,i,o){var a={range:e,message:t};return Ei.defined(n)&&(a.severity=n),Ei.defined(r)&&(a.code=r),Ei.defined(i)&&(a.source=i),Ei.defined(o)&&(a.relatedInformation=o),a}function n(e){var t,n=e;return Ei.defined(n)&&Gn.is(n.range)&&Ei.string(n.message)&&(Ei.number(n.severity)||Ei.undefined(n.severity))&&(Ei.integer(n.code)||Ei.string(n.code)||Ei.undefined(n.code))&&(Ei.undefined(n.codeDescription)||Ei.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Ei.string(n.source)||Ei.undefined(n.source))&&(Ei.undefined(n.relatedInformation)||Ei.typedArray(n.relatedInformation,tr.is))}A(t,"create"),e.create=t,A(n,"is"),e.is=n}(sr||(sr={})),function(e){function t(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={title:e,command:t};return Ei.defined(n)&&n.length>0&&(i.arguments=n),i}function n(e){var t=e;return Ei.defined(t)&&Ei.string(t.title)&&Ei.string(t.command)}A(t,"create"),e.create=t,A(n,"is"),e.is=n}(lr||(lr={})),function(e){function t(e,t){return{range:e,newText:t}}function n(e,t){return{range:{start:e,end:e},newText:t}}function r(e){return{range:e,newText:""}}function i(e){var t=e;return Ei.objectLiteral(t)&&Ei.string(t.newText)&&Gn.is(t.range)}A(t,"replace"),e.replace=t,A(n,"insert"),e.insert=n,A(r,"del"),e.del=r,A(i,"is"),e.is=i}(ur||(ur={})),function(e){function t(e,t,n){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r}function n(e){var t=e;return Ei.objectLiteral(t)&&Ei.string(t.label)&&(Ei.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Ei.string(t.description)||void 0===t.description)}A(t,"create"),e.create=t,A(n,"is"),e.is=n}(cr||(cr={})),function(e){function t(e){var t=e;return Ei.string(t)}A(t,"is"),e.is=t}(dr||(dr={})),function(e){function t(e,t,n){return{range:e,newText:t,annotationId:n}}function n(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}}function r(e,t){return{range:e,newText:"",annotationId:t}}function i(e){var t=e;return ur.is(t)&&(cr.is(t.annotationId)||dr.is(t.annotationId))}A(t,"replace"),e.replace=t,A(n,"insert"),e.insert=n,A(r,"del"),e.del=r,A(i,"is"),e.is=i}(fr||(fr={})),function(e){function t(e,t){return{textDocument:e,edits:t}}function n(e){var t=e;return Ei.defined(t)&&Er.is(t.textDocument)&&Array.isArray(t.edits)}A(t,"create"),e.create=t,A(n,"is"),e.is=n}(pr||(pr={})),function(e){function t(e,t,n){var r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r}function n(e){var t=e;return t&&"create"===t.kind&&Ei.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Ei.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ei.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||dr.is(t.annotationId))}A(t,"create"),e.create=t,A(n,"is"),e.is=n}(hr||(hr={})),function(e){function t(e,t,n,r){var i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i}function n(e){var t=e;return t&&"rename"===t.kind&&Ei.string(t.oldUri)&&Ei.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Ei.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ei.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||dr.is(t.annotationId))}A(t,"create"),e.create=t,A(n,"is"),e.is=n}(mr||(mr={})),function(e){function t(e,t,n){var r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r}function n(e){var t=e;return t&&"delete"===t.kind&&Ei.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Ei.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Ei.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||dr.is(t.annotationId))}A(t,"create"),e.create=t,A(n,"is"),e.is=n}(gr||(gr={})),function(e){function t(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return Ei.string(e.kind)?hr.is(e)||mr.is(e)||gr.is(e):pr.is(e)})))}A(t,"is"),e.is=t}(vr||(vr={}));var yr,br,Er,wr,kr,Tr,xr,Cr,Sr,Nr,_r,Or,Ir,Ar,Dr,Lr,Mr,Fr,Rr,Pr,jr,Vr,Ur,Br,$r,qr,Hr,zr,Gr,Wr,Yr,Kr,Qr,Jr,Xr,Zr,ei,ti,ni,ri,ii,oi,ai,si,li,ui,ci,di,fi,pi,hi,mi,gi,vi,yi=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return A(e,"TextEditChangeImpl"),e.prototype.insert=function(e,t,n){var r,i;if(void 0===n?r=ur.insert(e,t):dr.is(n)?(i=n,r=fr.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=fr.insert(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,t,n){var r,i;if(void 0===n?r=ur.replace(e,t):dr.is(n)?(i=n,r=fr.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=fr.replace(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=ur.del(e):dr.is(t)?(r=t,n=fr.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=fr.del(e,r)),this.edits.push(n),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),bi=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return A(e,"ChangeAnnotations"),e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(dr.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id ".concat(n," is already in use."));if(void 0===t)throw new Error("No annotation provided for id ".concat(n));return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new bi(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(pr.is(e)){var n=new yi(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new yi(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}A(e,"WorkspaceChange"),Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(Er.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(n),r=new yi(i,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new yi(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new bi,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(cr.is(t)||dr.is(t)?r=t:n=t,void 0===r?i=hr.create(e,n):(o=dr.is(r)?r:this._changeAnnotations.manage(r),i=hr.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},e.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o,a;if(cr.is(n)||dr.is(n)?i=n:r=n,void 0===i?o=mr.create(e,t,r):(a=dr.is(i)?i:this._changeAnnotations.manage(i),o=mr.create(e,t,r,a)),this._workspaceEdit.documentChanges.push(o),void 0!==a)return a},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(cr.is(t)||dr.is(t)?r=t:n=t,void 0===r?i=gr.create(e,n):(o=dr.is(r)?r:this._changeAnnotations.manage(r),i=gr.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}}(),function(e){function t(e){return{uri:e}}function n(e){var t=e;return Ei.defined(t)&&Ei.string(t.uri)}A(t,"create"),e.create=t,A(n,"is"),e.is=n}(yr||(yr={})),function(e){function t(e,t){return{uri:e,version:t}}function n(e){var t=e;return Ei.defined(t)&&Ei.string(t.uri)&&Ei.integer(t.version)}A(t,"create"),e.create=t,A(n,"is"),e.is=n}(br||(br={})),function(e){function t(e,t){return{uri:e,version:t}}function n(e){var t=e;return Ei.defined(t)&&Ei.string(t.uri)&&(null===t.version||Ei.integer(t.version))}A(t,"create"),e.create=t,A(n,"is"),e.is=n}(Er||(Er={})),function(e){function t(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}}function n(e){var t=e;return Ei.defined(t)&&Ei.string(t.uri)&&Ei.string(t.languageId)&&Ei.integer(t.version)&&Ei.string(t.text)}A(t,"create"),e.create=t,A(n,"is"),e.is=n}(wr||(wr={})),function(e){function t(t){var n=t;return n===e.PlainText||n===e.Markdown}e.PlainText="plaintext",e.Markdown="markdown",A(t,"is"),e.is=t}(kr||(kr={})),function(e){function t(e){var t=e;return Ei.objectLiteral(e)&&kr.is(t.kind)&&Ei.string(t.value)}A(t,"is"),e.is=t}(Tr||(Tr={})),(Cr=xr||(xr={})).Text=1,Cr.Method=2,Cr.Function=3,Cr.Constructor=4,Cr.Field=5,Cr.Variable=6,Cr.Class=7,Cr.Interface=8,Cr.Module=9,Cr.Property=10,Cr.Unit=11,Cr.Value=12,Cr.Enum=13,Cr.Keyword=14,Cr.Snippet=15,Cr.Color=16,Cr.File=17,Cr.Reference=18,Cr.Folder=19,Cr.EnumMember=20,Cr.Constant=21,Cr.Struct=22,Cr.Event=23,Cr.Operator=24,Cr.TypeParameter=25,(Nr=Sr||(Sr={})).PlainText=1,Nr.Snippet=2,(_r||(_r={})).Deprecated=1,function(e){function t(e,t,n){return{newText:e,insert:t,replace:n}}function n(e){var t=e;return t&&Ei.string(t.newText)&&Gn.is(t.insert)&&Gn.is(t.replace)}A(t,"create"),e.create=t,A(n,"is"),e.is=n}(Or||(Or={})),(Ar=Ir||(Ir={})).asIs=1,Ar.adjustIndentation=2,function(e){function t(e){var t=e;return t&&(Ei.string(t.detail)||void 0===t.detail)&&(Ei.string(t.description)||void 0===t.description)}A(t,"is"),e.is=t}(Dr||(Dr={})),function(e){function t(e){return{label:e}}A(t,"create"),e.create=t}(Lr||(Lr={})),function(e){function t(e,t){return{items:e||[],isIncomplete:!!t}}A(t,"create"),e.create=t}(Mr||(Mr={})),function(e){function t(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}function n(e){var t=e;return Ei.string(t)||Ei.objectLiteral(t)&&Ei.string(t.language)&&Ei.string(t.value)}A(t,"fromPlainText"),e.fromPlainText=t,A(n,"is"),e.is=n}(Fr||(Fr={})),function(e){function t(e){var t=e;return!!t&&Ei.objectLiteral(t)&&(Tr.is(t.contents)||Fr.is(t.contents)||Ei.typedArray(t.contents,Fr.is))&&(void 0===e.range||Gn.is(e.range))}A(t,"is"),e.is=t}(Rr||(Rr={})),function(e){function t(e,t){return t?{label:e,documentation:t}:{label:e}}A(t,"create"),e.create=t}(Pr||(Pr={})),function(e){function t(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={label:e};return Ei.defined(t)&&(i.documentation=t),Ei.defined(n)?i.parameters=n:i.parameters=[],i}A(t,"create"),e.create=t}(jr||(jr={})),(Ur=Vr||(Vr={})).Text=1,Ur.Read=2,Ur.Write=3,function(e){function t(e,t){var n={range:e};return Ei.number(t)&&(n.kind=t),n}A(t,"create"),e.create=t}(Br||(Br={})),(qr=$r||($r={})).File=1,qr.Module=2,qr.Namespace=3,qr.Package=4,qr.Class=5,qr.Method=6,qr.Property=7,qr.Field=8,qr.Constructor=9,qr.Enum=10,qr.Interface=11,qr.Function=12,qr.Variable=13,qr.Constant=14,qr.String=15,qr.Number=16,qr.Boolean=17,qr.Array=18,qr.Object=19,qr.Key=20,qr.Null=21,qr.EnumMember=22,qr.Struct=23,qr.Event=24,qr.Operator=25,qr.TypeParameter=26,(Hr||(Hr={})).Deprecated=1,function(e){function t(e,t,n,r,i){var o={name:e,kind:t,location:{uri:r,range:n}};return i&&(o.containerName=i),o}A(t,"create"),e.create=t}(zr||(zr={})),function(e){function t(e,t,n,r){return void 0!==r?{name:e,kind:t,location:{uri:n,range:r}}:{name:e,kind:t,location:{uri:n}}}A(t,"create"),e.create=t}(Gr||(Gr={})),function(e){function t(e,t,n,r,i,o){var a={name:e,detail:t,kind:n,range:r,selectionRange:i};return void 0!==o&&(a.children=o),a}function n(e){var t=e;return t&&Ei.string(t.name)&&Ei.number(t.kind)&&Gn.is(t.range)&&Gn.is(t.selectionRange)&&(void 0===t.detail||Ei.string(t.detail))&&(void 0===t.deprecated||Ei.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}A(t,"create"),e.create=t,A(n,"is"),e.is=n}(Wr||(Wr={})),(Kr=Yr||(Yr={})).Empty="",Kr.QuickFix="quickfix",Kr.Refactor="refactor",Kr.RefactorExtract="refactor.extract",Kr.RefactorInline="refactor.inline",Kr.RefactorRewrite="refactor.rewrite",Kr.Source="source",Kr.SourceOrganizeImports="source.organizeImports",Kr.SourceFixAll="source.fixAll",(Jr=Qr||(Qr={})).Invoked=1,Jr.Automatic=2,function(e){function t(e,t,n){var r={diagnostics:e};return null!=t&&(r.only=t),null!=n&&(r.triggerKind=n),r}function n(e){var t=e;return Ei.defined(t)&&Ei.typedArray(t.diagnostics,sr.is)&&(void 0===t.only||Ei.typedArray(t.only,Ei.string))&&(void 0===t.triggerKind||t.triggerKind===Qr.Invoked||t.triggerKind===Qr.Automatic)}A(t,"create"),e.create=t,A(n,"is"),e.is=n}(Xr||(Xr={})),function(e){function t(e,t,n){var r={title:e},i=!0;return"string"==typeof t?(i=!1,r.kind=t):lr.is(t)?r.command=t:r.edit=t,i&&void 0!==n&&(r.kind=n),r}function n(e){var t=e;return t&&Ei.string(t.title)&&(void 0===t.diagnostics||Ei.typedArray(t.diagnostics,sr.is))&&(void 0===t.kind||Ei.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||lr.is(t.command))&&(void 0===t.isPreferred||Ei.boolean(t.isPreferred))&&(void 0===t.edit||vr.is(t.edit))}A(t,"create"),e.create=t,A(n,"is"),e.is=n}(Zr||(Zr={})),function(e){function t(e,t){var n={range:e};return Ei.defined(t)&&(n.data=t),n}function n(e){var t=e;return Ei.defined(t)&&Gn.is(t.range)&&(Ei.undefined(t.command)||lr.is(t.command))}A(t,"create"),e.create=t,A(n,"is"),e.is=n}(ei||(ei={})),function(e){function t(e,t){return{tabSize:e,insertSpaces:t}}function n(e){var t=e;return Ei.defined(t)&&Ei.uinteger(t.tabSize)&&Ei.boolean(t.insertSpaces)}A(t,"create"),e.create=t,A(n,"is"),e.is=n}(ti||(ti={})),function(e){function t(e,t,n){return{range:e,target:t,data:n}}function n(e){var t=e;return Ei.defined(t)&&Gn.is(t.range)&&(Ei.undefined(t.target)||Ei.string(t.target))}A(t,"create"),e.create=t,A(n,"is"),e.is=n}(ni||(ni={})),function(e){function t(e,t){return{range:e,parent:t}}function n(t){var n=t;return Ei.objectLiteral(n)&&Gn.is(n.range)&&(void 0===n.parent||e.is(n.parent))}A(t,"create"),e.create=t,A(n,"is"),e.is=n}(ri||(ri={})),(oi=ii||(ii={})).namespace="namespace",oi.type="type",oi.class="class",oi.enum="enum",oi.interface="interface",oi.struct="struct",oi.typeParameter="typeParameter",oi.parameter="parameter",oi.variable="variable",oi.property="property",oi.enumMember="enumMember",oi.event="event",oi.function="function",oi.method="method",oi.macro="macro",oi.keyword="keyword",oi.modifier="modifier",oi.comment="comment",oi.string="string",oi.number="number",oi.regexp="regexp",oi.operator="operator",oi.decorator="decorator",(si=ai||(ai={})).declaration="declaration",si.definition="definition",si.readonly="readonly",si.static="static",si.deprecated="deprecated",si.abstract="abstract",si.async="async",si.modification="modification",si.documentation="documentation",si.defaultLibrary="defaultLibrary",function(e){function t(e){var t=e;return Ei.objectLiteral(t)&&(void 0===t.resultId||"string"==typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"==typeof t.data[0])}A(t,"is"),e.is=t}(li||(li={})),function(e){function t(e,t){return{range:e,text:t}}function n(e){var t=e;return null!=t&&Gn.is(t.range)&&Ei.string(t.text)}A(t,"create"),e.create=t,A(n,"is"),e.is=n}(ui||(ui={})),function(e){function t(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}}function n(e){var t=e;return null!=t&&Gn.is(t.range)&&Ei.boolean(t.caseSensitiveLookup)&&(Ei.string(t.variableName)||void 0===t.variableName)}A(t,"create"),e.create=t,A(n,"is"),e.is=n}(ci||(ci={})),function(e){function t(e,t){return{range:e,expression:t}}function n(e){var t=e;return null!=t&&Gn.is(t.range)&&(Ei.string(t.expression)||void 0===t.expression)}A(t,"create"),e.create=t,A(n,"is"),e.is=n}(di||(di={})),function(e){function t(e,t){return{frameId:e,stoppedLocation:t}}function n(e){var t=e;return Ei.defined(t)&&Gn.is(e.stoppedLocation)}A(t,"create"),e.create=t,A(n,"is"),e.is=n}(fi||(fi={})),function(e){function t(e){return 1===e||2===e}e.Type=1,e.Parameter=2,A(t,"is"),e.is=t}(pi||(pi={})),function(e){function t(e){return{value:e}}function n(e){var t=e;return Ei.objectLiteral(t)&&(void 0===t.tooltip||Ei.string(t.tooltip)||Tr.is(t.tooltip))&&(void 0===t.location||Wn.is(t.location))&&(void 0===t.command||lr.is(t.command))}A(t,"create"),e.create=t,A(n,"is"),e.is=n}(hi||(hi={})),function(e){function t(e,t,n){var r={position:e,label:t};return void 0!==n&&(r.kind=n),r}function n(e){var t=e;return Ei.objectLiteral(t)&&zn.is(t.position)&&(Ei.string(t.label)||Ei.typedArray(t.label,hi.is))&&(void 0===t.kind||pi.is(t.kind))&&void 0===t.textEdits||Ei.typedArray(t.textEdits,ur.is)&&(void 0===t.tooltip||Ei.string(t.tooltip)||Tr.is(t.tooltip))&&(void 0===t.paddingLeft||Ei.boolean(t.paddingLeft))&&(void 0===t.paddingRight||Ei.boolean(t.paddingRight))}A(t,"create"),e.create=t,A(n,"is"),e.is=n}(mi||(mi={})),function(e){function t(e){var t=e;return Ei.objectLiteral(t)&&$n.is(t.uri)&&Ei.string(t.name)}A(t,"is"),e.is=t}(gi||(gi={})),function(e){function t(e,t,n,r){return new ki(e,t,n,r)}function n(e){var t=e;return!!(Ei.defined(t)&&Ei.string(t.uri)&&(Ei.undefined(t.languageId)||Ei.string(t.languageId))&&Ei.uinteger(t.lineCount)&&Ei.func(t.getText)&&Ei.func(t.positionAt)&&Ei.func(t.offsetAt))}function r(e,t){for(var n=e.getText(),r=i(t,(function(e,t){var n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),o=n.length,a=r.length-1;a>=0;a--){var s=r[a],l=e.offsetAt(s.range.start),u=e.offsetAt(s.range.end);if(!(u<=o))throw new Error("Overlapping edit");n=n.substring(0,l)+s.newText+n.substring(u,n.length),o=l}return n}function i(e,t){if(e.length<=1)return e;var n=e.length/2|0,r=e.slice(0,n),o=e.slice(n);i(r,t),i(o,t);for(var a=0,s=0,l=0;a<r.length&&s<o.length;){var u=t(r[a],o[s]);e[l++]=u<=0?r[a++]:o[s++]}for(;a<r.length;)e[l++]=r[a++];for(;s<o.length;)e[l++]=o[s++];return e}A(t,"create"),e.create=t,A(n,"is"),e.is=n,A(r,"applyEdits"),e.applyEdits=r,A(i,"mergeSort")}(vi||(vi={}));var Ei,wi,ki=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return A(e,"FullTextDocument"),Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r<t.length;r++){n&&(e.push(r),n=!1);var i=t.charAt(r);n="\r"===i||"\n"===i,"\r"===i&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return zn.create(0,e);for(;n<r;){var i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}var o=n-1;return zn.create(o,e-t[o])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}();!function(e){var t=Object.prototype.toString;function n(e){return void 0!==e}function r(e){return void 0===e}function i(e){return!0===e||!1===e}function o(e){return"[object String]"===t.call(e)}function a(e){return"[object Number]"===t.call(e)}function s(e,n,r){return"[object Number]"===t.call(e)&&n<=e&&e<=r}function l(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647}function u(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647}function c(e){return"[object Function]"===t.call(e)}function d(e){return null!==e&&"object"==typeof e}function f(e,t){return Array.isArray(e)&&e.every(t)}A(n,"defined"),e.defined=n,A(r,"undefined$1"),e.undefined=r,A(i,"boolean"),e.boolean=i,A(o,"string"),e.string=o,A(a,"number"),e.number=a,A(s,"numberRange"),e.numberRange=s,A(l,"integer"),e.integer=l,A(u,"uinteger"),e.uinteger=u,A(c,"func"),e.func=c,A(d,"objectLiteral"),e.objectLiteral=d,A(f,"typedArray"),e.typedArray=f}(Ei||(Ei={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(wi||(wi={}));class Ti{constructor(e){this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>0===this._pos,this.peek=()=>this._sourceText.charAt(this._pos)||null,this.next=()=>{const e=this._sourceText.charAt(this._pos);return this._pos++,e},this.eat=e=>{if(this._testNextCharacter(e))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=e=>{let t=this._testNextCharacter(e),n=!1;for(t&&(n=t,this._start=this._pos);t;)this._pos++,t=this._testNextCharacter(e),n=!0;return n},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=e=>{this._pos=e},this.match=(e,t=!0,n=!1)=>{let r=null,i=null;return"string"==typeof e?(i=new RegExp(e,n?"i":"g").test(this._sourceText.slice(this._pos,this._pos+e.length)),r=e):e instanceof RegExp&&(i=this._sourceText.slice(this._pos).match(e),r=null==i?void 0:i[0]),!(null==i||!("string"==typeof e||i instanceof Array&&this._sourceText.startsWith(i[0],this._pos)))&&(t&&(this._start=this._pos,r&&r.length&&(this._pos+=r.length)),i)},this.backUp=e=>{this._pos-=e},this.column=()=>this._pos,this.indentation=()=>{const e=this._sourceText.match(/\s*/);let t=0;if(e&&0!==e.length){const n=e[0];let r=0;for(;n.length>r;)9===n.charCodeAt(r)?t+=2:t++,r++}return t},this.current=()=>this._sourceText.slice(this._start,this._pos),this._start=0,this._pos=0,this._sourceText=e}_testNextCharacter(e){const t=this._sourceText.charAt(this._pos);let n=!1;return n="string"==typeof e?t===e:e instanceof RegExp?e.test(t):e(t),n}}function xi(e){return{ofRule:e}}function Ci(e,t){return{ofRule:e,isList:!0,separator:t}}function Si(e,t){const n=e.match;return e.match=e=>{let r=!1;return n&&(r=n(e)),r&&t.every((t=>t.match&&!t.match(e)))},e}function Ni(e,t){return{style:t,match:t=>t.kind===e}}function _i(e,t){return{style:t||"punctuation",match:t=>"Punctuation"===t.kind&&t.value===e}}A(Ti,"CharacterStream"),A(xi,"opt"),A(Ci,"list$1"),A(Si,"butNot"),A(Ni,"t$2"),A(_i,"p$1");const Oi=A((e=>" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e||" "===e),"isIgnored"),Ii={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!|\$|\(|\)|\.\.\.|:|=|&|@|\[|]|\{|\||\})/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^(?:"""(?:\\"""|[^"]|"[^"]|""[^"])*(?:""")?|"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?)/,Comment:/^#.*/},Ai={Document:[Ci("Definition")],Definition(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return u.b.FRAGMENT_DEFINITION;case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[Di("query"),xi(Li("def")),xi("VariableDefinitions"),Ci("Directive"),"SelectionSet"],Mutation:[Di("mutation"),xi(Li("def")),xi("VariableDefinitions"),Ci("Directive"),"SelectionSet"],Subscription:[Di("subscription"),xi(Li("def")),xi("VariableDefinitions"),Ci("Directive"),"SelectionSet"],VariableDefinitions:[_i("("),Ci("VariableDefinition"),_i(")")],VariableDefinition:["Variable",_i(":"),"Type",xi("DefaultValue")],Variable:[_i("$","variable"),Li("variable")],DefaultValue:[_i("="),"Value"],SelectionSet:[_i("{"),Ci("Selection"),_i("}")],Selection:(e,t)=>"..."===e.value?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field",AliasedField:[Li("property"),_i(":"),Li("qualifier"),xi("Arguments"),Ci("Directive"),xi("SelectionSet")],Field:[Li("property"),xi("Arguments"),Ci("Directive"),xi("SelectionSet")],Arguments:[_i("("),Ci("Argument"),_i(")")],Argument:[Li("attribute"),_i(":"),"Value"],FragmentSpread:[_i("..."),Li("def"),Ci("Directive")],InlineFragment:[_i("..."),xi("TypeCondition"),Ci("Directive"),"SelectionSet"],FragmentDefinition:[Di("fragment"),xi(Si(Li("def"),[Di("on")])),"TypeCondition",Ci("Directive"),"SelectionSet"],TypeCondition:[Di("on"),"NamedType"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable";case"&":return"NamedType"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return"null"===e.value?"NullValue":"EnumValue"}},NumberValue:[Ni("Number","number")],StringValue:[{style:"string",match:e=>"String"===e.kind,update(e,t){t.value.startsWith('"""')&&(e.inBlockstring=!t.value.slice(3).endsWith('"""'))}}],BooleanValue:[Ni("Name","builtin")],NullValue:[Ni("Name","keyword")],EnumValue:[Li("string-2")],ListValue:[_i("["),Ci("Value"),_i("]")],ObjectValue:[_i("{"),Ci("ObjectField"),_i("}")],ObjectField:[Li("attribute"),_i(":"),"Value"],Type:e=>"["===e.value?"ListType":"NonNullType",ListType:[_i("["),"Type",_i("]"),xi(_i("!"))],NonNullType:["NamedType",xi(_i("!"))],NamedType:[Mi("atom")],Directive:[_i("@","meta"),Li("meta"),xi("Arguments")],DirectiveDef:[Di("directive"),_i("@","meta"),Li("meta"),xi("ArgumentsDef"),Di("on"),Ci("DirectiveLocation",_i("|"))],InterfaceDef:[Di("interface"),Li("atom"),xi("Implements"),Ci("Directive"),_i("{"),Ci("FieldDef"),_i("}")],Implements:[Di("implements"),Ci("NamedType",_i("&"))],DirectiveLocation:[Li("string-2")],SchemaDef:[Di("schema"),Ci("Directive"),_i("{"),Ci("OperationTypeDef"),_i("}")],OperationTypeDef:[Li("keyword"),_i(":"),Li("atom")],ScalarDef:[Di("scalar"),Li("atom"),Ci("Directive")],ObjectTypeDef:[Di("type"),Li("atom"),xi("Implements"),Ci("Directive"),_i("{"),Ci("FieldDef"),_i("}")],FieldDef:[Li("property"),xi("ArgumentsDef"),_i(":"),"Type",Ci("Directive")],ArgumentsDef:[_i("("),Ci("InputValueDef"),_i(")")],InputValueDef:[Li("attribute"),_i(":"),"Type",xi("DefaultValue"),Ci("Directive")],UnionDef:[Di("union"),Li("atom"),Ci("Directive"),_i("="),Ci("UnionMember",_i("|"))],UnionMember:["NamedType"],EnumDef:[Di("enum"),Li("atom"),Ci("Directive"),_i("{"),Ci("EnumValueDef"),_i("}")],EnumValueDef:[Li("string-2"),Ci("Directive")],InputDef:[Di("input"),Li("atom"),Ci("Directive"),_i("{"),Ci("InputValueDef"),_i("}")],ExtendDef:[Di("extend"),"ExtensionDefinition"],ExtensionDefinition(e){switch(e.value){case"schema":return u.b.SCHEMA_EXTENSION;case"scalar":return u.b.SCALAR_TYPE_EXTENSION;case"type":return u.b.OBJECT_TYPE_EXTENSION;case"interface":return u.b.INTERFACE_TYPE_EXTENSION;case"union":return u.b.UNION_TYPE_EXTENSION;case"enum":return u.b.ENUM_TYPE_EXTENSION;case"input":return u.b.INPUT_OBJECT_TYPE_EXTENSION}},[u.b.SCHEMA_EXTENSION]:["SchemaDef"],[u.b.SCALAR_TYPE_EXTENSION]:["ScalarDef"],[u.b.OBJECT_TYPE_EXTENSION]:["ObjectTypeDef"],[u.b.INTERFACE_TYPE_EXTENSION]:["InterfaceDef"],[u.b.UNION_TYPE_EXTENSION]:["UnionDef"],[u.b.ENUM_TYPE_EXTENSION]:["EnumDef"],[u.b.INPUT_OBJECT_TYPE_EXTENSION]:["InputDef"]};function Di(e){return{style:"keyword",match:t=>"Name"===t.kind&&t.value===e}}function Li(e){return{style:e,match:e=>"Name"===e.kind,update(e,t){e.name=t.value}}}function Mi(e){return{style:e,match:e=>"Name"===e.kind,update(e,t){var n;(null===(n=e.prevState)||void 0===n?void 0:n.prevState)&&(e.name=t.value,e.prevState.prevState.type=t.value)}}}function Fi(e={eatWhitespace:e=>e.eatWhile(Oi),lexRules:Ii,parseRules:Ai,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeparator:!1,prevState:null};return Vi(e.parseRules,t,u.b.DOCUMENT),t},token:(t,n)=>Ri(t,n,e)}}function Ri(e,t,n){var r;if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");const{lexRules:i,parseRules:o,eatWhitespace:a,editorConfig:s}=n;if(t.rule&&0===t.rule.length?Ui(t):t.needsAdvance&&(t.needsAdvance=!1,Bi(t,!0)),e.sol()){const n=(null==s?void 0:s.tabSize)||2;t.indentLevel=Math.floor(e.indentation()/n)}if(a(e))return"ws";const l=Hi(i,e);if(!l)return e.match(/\S+/)||e.match(/\s/),Vi(ji,t,"Invalid"),"invalidchar";if("Comment"===l.kind)return Vi(ji,t,"Comment"),"comment";const u=Pi({},t);if("Punctuation"===l.kind)if(/^[{([]/.test(l.value))void 0!==t.indentLevel&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(l.value)){const e=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&e.length>0&&e.at(-1)<t.indentLevel&&(t.indentLevel=e.at(-1))}for(;t.rule;){let n="function"==typeof t.rule?0===t.step?t.rule(l,e):null:t.rule[t.step];if(t.needsSeparator&&(n=null==n?void 0:n.separator),n){if(n.ofRule&&(n=n.ofRule),"string"==typeof n){Vi(o,t,n);continue}if(null===(r=n.match)||void 0===r?void 0:r.call(n,l))return n.update&&n.update(t,l),"Punctuation"===l.kind?Bi(t,!0):t.needsAdvance=!0,n.style}qi(t)}return Pi(t,u),Vi(ji,t,"Invalid"),"invalidchar"}function Pi(e,t){const n=Object.keys(t);for(let r=0;r<n.length;r++)e[n[r]]=t[n[r]];return e}A(Di,"word"),A(Li,"name"),A(Mi,"type"),A(Fi,"onlineParser"),A(Ri,"getToken"),A(Pi,"assign$2");const ji={Invalid:[],Comment:[]};function Vi(e,t,n){if(!e[n])throw new TypeError("Unknown rule: "+n);t.prevState=Object.assign({},t),t.kind=n,t.name=null,t.type=null,t.rule=e[n],t.step=0,t.needsSeparator=!1}function Ui(e){e.prevState&&(e.kind=e.prevState.kind,e.name=e.prevState.name,e.type=e.prevState.type,e.rule=e.prevState.rule,e.step=e.prevState.step,e.needsSeparator=e.prevState.needsSeparator,e.prevState=e.prevState.prevState)}function Bi(e,t){var n;if($i(e)&&e.rule){const n=e.rule[e.step];if(n.separator){const{separator:t}=n;if(e.needsSeparator=!e.needsSeparator,!e.needsSeparator&&t.ofRule)return}if(t)return}for(e.needsSeparator=!1,e.step++;e.rule&&!(Array.isArray(e.rule)&&e.step<e.rule.length);)Ui(e),e.rule&&($i(e)?(null===(n=e.rule)||void 0===n?void 0:n[e.step].separator)&&(e.needsSeparator=!e.needsSeparator):(e.needsSeparator=!1,e.step++))}function $i(e){const t=Array.isArray(e.rule)&&"string"!=typeof e.rule[e.step]&&e.rule[e.step];return t&&t.isList}function qi(e){for(;e.rule&&(!Array.isArray(e.rule)||!e.rule[e.step].ofRule);)Ui(e);e.rule&&Bi(e,!1)}function Hi(e,t){const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=t.match(e[n[r]]);if(i&&i instanceof Array)return{kind:n[r],value:i[0]}}}A(Vi,"pushRule"),A(Ui,"popRule"),A(Bi,"advanceRule"),A($i,"isList"),A(qi,"unsuccessful"),A(Hi,"lex");const zi=Object.assign(Object.assign({},u.b),{ALIASED_FIELD:"AliasedField",ARGUMENTS:"Arguments",SHORT_QUERY:"ShortQuery",QUERY:"Query",MUTATION:"Mutation",SUBSCRIPTION:"Subscription",TYPE_CONDITION:"TypeCondition",INVALID:"Invalid",COMMENT:"Comment",SCHEMA_DEF:"SchemaDef",SCALAR_DEF:"ScalarDef",OBJECT_TYPE_DEF:"ObjectTypeDef",OBJECT_VALUE:"ObjectValue",LIST_VALUE:"ListValue",INTERFACE_DEF:"InterfaceDef",UNION_DEF:"UnionDef",ENUM_DEF:"EnumDef",ENUM_VALUE:"EnumValue",FIELD_DEF:"FieldDef",INPUT_DEF:"InputDef",INPUT_VALUE_DEF:"InputValueDef",ARGUMENTS_DEF:"ArgumentsDef",EXTEND_DEF:"ExtendDef",EXTENSION_DEFINITION:"ExtensionDefinition",DIRECTIVE_DEF:"DirectiveDef",IMPLEMENTS:"Implements",VARIABLE_DEFINITIONS:"VariableDefinitions",TYPE:"Type"}),Gi={command:"editor.action.triggerSuggest",title:"Suggestions"},Wi=A((e=>{const t=[];if(e)try{(0,a.YR)((0,i.qg)(e),{FragmentDefinition(e){t.push(e)}})}catch(e){return[]}return t}),"collectFragmentDefs"),Yi=[u.b.SCHEMA_DEFINITION,u.b.OPERATION_TYPE_DEFINITION,u.b.SCALAR_TYPE_DEFINITION,u.b.OBJECT_TYPE_DEFINITION,u.b.INTERFACE_TYPE_DEFINITION,u.b.UNION_TYPE_DEFINITION,u.b.ENUM_TYPE_DEFINITION,u.b.INPUT_OBJECT_TYPE_DEFINITION,u.b.DIRECTIVE_DEFINITION,u.b.SCHEMA_EXTENSION,u.b.SCALAR_TYPE_EXTENSION,u.b.OBJECT_TYPE_EXTENSION,u.b.INTERFACE_TYPE_EXTENSION,u.b.UNION_TYPE_EXTENSION,u.b.ENUM_TYPE_EXTENSION,u.b.INPUT_OBJECT_TYPE_EXTENSION],Ki=A((e=>{let t=!1;if(e)try{(0,a.YR)((0,i.qg)(e),{enter(e){if("Document"!==e.kind)return!!Yi.includes(e.kind)&&(t=!0,a.sP)}})}catch(e){return t}return t}),"hasTypeSystemDefinitions");function Qi(e,t,n,r,i,o){var a;const s=Object.assign(Object.assign({},o),{schema:e}),c=r||po(t,n),d="Invalid"===c.state.kind?c.state.prevState:c.state,f=(null==o?void 0:o.mode)||bo(t,null==o?void 0:o.uri);if(!d)return[];const{kind:p,step:h,prevState:m}=d,g=go(e,c.state);if(p===zi.DOCUMENT)return f===vo.TYPE_SYSTEM?Zi(c):eo(c);if(p===zi.EXTEND_DEF)return to(c);if((null===(a=null==m?void 0:m.prevState)||void 0===a?void 0:a.kind)===zi.EXTENSION_DEFINITION&&d.name)return Fn(c,[]);if((null==m?void 0:m.kind)===u.b.SCALAR_TYPE_EXTENSION)return Fn(c,Object.values(e.getTypeMap()).filter(l.lg).map((e=>({label:e.name,kind:wi.Function}))));if((null==m?void 0:m.kind)===u.b.OBJECT_TYPE_EXTENSION)return Fn(c,Object.values(e.getTypeMap()).filter((e=>(0,l.YQ)(e)&&!e.name.startsWith("__"))).map((e=>({label:e.name,kind:wi.Function}))));if((null==m?void 0:m.kind)===u.b.INTERFACE_TYPE_EXTENSION)return Fn(c,Object.values(e.getTypeMap()).filter(l.kD).map((e=>({label:e.name,kind:wi.Function}))));if((null==m?void 0:m.kind)===u.b.UNION_TYPE_EXTENSION)return Fn(c,Object.values(e.getTypeMap()).filter(l.CK).map((e=>({label:e.name,kind:wi.Function}))));if((null==m?void 0:m.kind)===u.b.ENUM_TYPE_EXTENSION)return Fn(c,Object.values(e.getTypeMap()).filter((e=>(0,l.oF)(e)&&!e.name.startsWith("__"))).map((e=>({label:e.name,kind:wi.Function}))));if((null==m?void 0:m.kind)===u.b.INPUT_OBJECT_TYPE_EXTENSION)return Fn(c,Object.values(e.getTypeMap()).filter(l.qK).map((e=>({label:e.name,kind:wi.Function}))));if(p===zi.IMPLEMENTS||p===zi.NAMED_TYPE&&(null==m?void 0:m.kind)===zi.IMPLEMENTS)return io(c,d,e,t,g);if(p===zi.SELECTION_SET||p===zi.FIELD||p===zi.ALIASED_FIELD)return no(c,g,s);if(p===zi.ARGUMENTS||p===zi.ARGUMENT&&0===h){const{argDefs:e}=g;if(e)return Fn(c,e.map((e=>{var t;return{label:e.name,insertText:e.name+": ",command:Gi,detail:String(e.type),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,kind:wi.Variable,type:e.type}})))}if((p===zi.OBJECT_VALUE||p===zi.OBJECT_FIELD&&0===h)&&g.objectFieldDefs){const e=Mn(g.objectFieldDefs),t=p===zi.OBJECT_VALUE?wi.Value:wi.Field;return Fn(c,e.map((e=>{var n;return{label:e.name,detail:String(e.type),documentation:null!==(n=e.description)&&void 0!==n?n:void 0,kind:t,type:e.type}})))}if(p===zi.ENUM_VALUE||p===zi.LIST_VALUE&&1===h||p===zi.OBJECT_FIELD&&2===h||p===zi.ARGUMENT&&2===h)return ro(c,g,t,e);if(p===zi.VARIABLE&&1===h){const n=(0,l.MR)(g.inputType);return Fn(c,lo(t,e,c).filter((e=>e.detail===(null==n?void 0:n.name))))}if(p===zi.TYPE_CONDITION&&1===h||p===zi.NAMED_TYPE&&null!=m&&m.kind===zi.TYPE_CONDITION)return oo(c,g,e);if(p===zi.FRAGMENT_SPREAD&&1===h)return ao(c,g,e,t,Array.isArray(i)?i:Wi(i));const v=Eo(d);if(f===vo.TYPE_SYSTEM&&!v.needsAdvance&&p===zi.NAMED_TYPE||p===zi.LIST_TYPE){if(v.kind===zi.FIELD_DEF)return Fn(c,Object.values(e.getTypeMap()).filter((e=>(0,l.oH)(e)&&!e.name.startsWith("__"))).map((e=>({label:e.name,kind:wi.Function}))));if(v.kind===zi.INPUT_VALUE_DEF)return Fn(c,Object.values(e.getTypeMap()).filter((e=>(0,l.dX)(e)&&!e.name.startsWith("__"))).map((e=>({label:e.name,kind:wi.Function}))))}return p===zi.VARIABLE_DEFINITION&&2===h||p===zi.LIST_TYPE&&1===h||p===zi.NAMED_TYPE&&m&&(m.kind===zi.VARIABLE_DEFINITION||m.kind===zi.LIST_TYPE||m.kind===zi.NON_NULL_TYPE)?co(c,e):p===zi.DIRECTIVE?fo(c,d,e):[]}A(Qi,"getAutocompleteSuggestions");const Ji=" {\n $1\n}",Xi=A((e=>{const{type:t}=e;if((0,l.ML)(t))return Ji;if((0,l.Fs)(t)&&(0,l.ML)(t.ofType))return Ji;if((0,l.bd)(t)){if((0,l.ML)(t.ofType))return Ji;if((0,l.Fs)(t.ofType)&&(0,l.ML)(t.ofType.ofType))return Ji}return null}),"getInsertText");function Zi(e){return Fn(e,[{label:"extend",kind:wi.Function},{label:"type",kind:wi.Function},{label:"interface",kind:wi.Function},{label:"union",kind:wi.Function},{label:"input",kind:wi.Function},{label:"scalar",kind:wi.Function},{label:"schema",kind:wi.Function}])}function eo(e){return Fn(e,[{label:"query",kind:wi.Function},{label:"mutation",kind:wi.Function},{label:"subscription",kind:wi.Function},{label:"fragment",kind:wi.Function},{label:"{",kind:wi.Constructor}])}function to(e){return Fn(e,[{label:"type",kind:wi.Function},{label:"interface",kind:wi.Function},{label:"union",kind:wi.Function},{label:"input",kind:wi.Function},{label:"scalar",kind:wi.Function},{label:"schema",kind:wi.Function}])}function no(e,t,n){var r;if(t.parentType){const{parentType:i}=t;let o=[];return"getFields"in i&&(o=Mn(i.getFields())),(0,l.ML)(i)&&o.push(c.of),i===(null===(r=null==n?void 0:n.schema)||void 0===r?void 0:r.getQueryType())&&o.push(c.S0,c.Xe),Fn(e,o.map(((e,t)=>{var r;const i={sortText:String(t)+e.name,label:e.name,detail:String(e.type),documentation:null!==(r=e.description)&&void 0!==r?r:void 0,deprecated:Boolean(e.deprecationReason),isDeprecated:Boolean(e.deprecationReason),deprecationReason:e.deprecationReason,kind:wi.Field,type:e.type};if(null==n?void 0:n.fillLeafsOnComplete){const t=Xi(e);t&&(i.insertText=e.name+t,i.insertTextFormat=Sr.Snippet,i.command=Gi)}return i})))}return[]}function ro(e,t,n,r){const i=(0,l.MR)(t.inputType),o=lo(n,r,e).filter((e=>e.detail===i.name));return i instanceof l.Zb?Fn(e,i.getValues().map((e=>{var t;return{label:e.name,detail:String(i),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,deprecated:Boolean(e.deprecationReason),isDeprecated:Boolean(e.deprecationReason),deprecationReason:e.deprecationReason,kind:wi.EnumMember,type:i}})).concat(o)):i===d.kk?Fn(e,o.concat([{label:"true",detail:String(d.kk),documentation:"Not false.",kind:wi.Variable,type:d.kk},{label:"false",detail:String(d.kk),documentation:"Not true.",kind:wi.Variable,type:d.kk}])):o}function io(e,t,n,r,i){if(t.needsSeparator)return[];const o=Mn(n.getTypeMap()).filter(l.kD),a=o.map((({name:e})=>e)),s=new Set;ho(r,((e,t)=>{var r,o,u,c,d;if(t.name&&(t.kind!==zi.INTERFACE_DEF||a.includes(t.name)||s.add(t.name),t.kind===zi.NAMED_TYPE&&(null===(r=t.prevState)||void 0===r?void 0:r.kind)===zi.IMPLEMENTS))if(i.interfaceDef){if(null===(o=i.interfaceDef)||void 0===o?void 0:o.getInterfaces().find((({name:e})=>e===t.name)))return;const e=n.getType(t.name),r=null===(u=i.interfaceDef)||void 0===u?void 0:u.toConfig();i.interfaceDef=new l.VA(Object.assign(Object.assign({},r),{interfaces:[...r.interfaces,e||new l.VA({name:t.name,fields:{}})]}))}else if(i.objectTypeDef){if(null===(c=i.objectTypeDef)||void 0===c?void 0:c.getInterfaces().find((({name:e})=>e===t.name)))return;const e=n.getType(t.name),r=null===(d=i.objectTypeDef)||void 0===d?void 0:d.toConfig();i.objectTypeDef=new l.bh(Object.assign(Object.assign({},r),{interfaces:[...r.interfaces,e||new l.VA({name:t.name,fields:{}})]}))}}));const u=i.interfaceDef||i.objectTypeDef,c=((null==u?void 0:u.getInterfaces())||[]).map((({name:e})=>e));return Fn(e,o.concat([...s].map((e=>({name:e})))).filter((({name:e})=>e!==(null==u?void 0:u.name)&&!c.includes(e))).map((e=>{const t={label:e.name,kind:wi.Interface,type:e};return(null==e?void 0:e.description)&&(t.documentation=e.description),t})))}function oo(e,t,n,r){let i;if(t.parentType)if((0,l.Lc)(t.parentType)){const e=(0,l.N_)(t.parentType),r=n.getPossibleTypes(e),o=Object.create(null);for(const e of r)for(const t of e.getInterfaces())o[t.name]=t;i=r.concat(Mn(o))}else i=[t.parentType];else i=Mn(n.getTypeMap()).filter((e=>(0,l.ML)(e)&&!e.name.startsWith("__")));return Fn(e,i.map((e=>{const t=(0,l.MR)(e);return{label:String(e),documentation:(null==t?void 0:t.description)||"",kind:wi.Field}})))}function ao(e,t,n,r,i){if(!r)return[];const o=n.getTypeMap(),a=An(e.state),s=uo(r);return i&&i.length>0&&s.push(...i),Fn(e,s.filter((e=>o[e.typeCondition.name.value]&&!(a&&a.kind===zi.FRAGMENT_DEFINITION&&a.name===e.name.value)&&(0,l.ML)(t.parentType)&&(0,l.ML)(o[e.typeCondition.name.value])&&(0,f.uI)(n,t.parentType,o[e.typeCondition.name.value]))).map((e=>({label:e.name.value,detail:String(o[e.typeCondition.name.value]),documentation:`fragment ${e.name.value} on ${e.typeCondition.name.value}`,kind:wi.Field,type:o[e.typeCondition.name.value]}))))}A(Zi,"getSuggestionsForTypeSystemDefinitions"),A(eo,"getSuggestionsForExecutableDefinitions"),A(to,"getSuggestionsForExtensionDefinitions"),A(no,"getSuggestionsForFieldNames"),A(ro,"getSuggestionsForInputValues"),A(io,"getSuggestionsForImplements"),A(oo,"getSuggestionsForFragmentTypeConditions"),A(ao,"getSuggestionsForFragmentSpread");const so=A(((e,t)=>{var n,r,i,o,a,s,l,u,c,d;return(null===(n=e.prevState)||void 0===n?void 0:n.kind)===t?e.prevState:(null===(i=null===(r=e.prevState)||void 0===r?void 0:r.prevState)||void 0===i?void 0:i.kind)===t?e.prevState.prevState:(null===(s=null===(a=null===(o=e.prevState)||void 0===o?void 0:o.prevState)||void 0===a?void 0:a.prevState)||void 0===s?void 0:s.kind)===t?e.prevState.prevState.prevState:(null===(d=null===(c=null===(u=null===(l=e.prevState)||void 0===l?void 0:l.prevState)||void 0===u?void 0:u.prevState)||void 0===c?void 0:c.prevState)||void 0===d?void 0:d.kind)===t?e.prevState.prevState.prevState.prevState:void 0}),"getParentDefinition");function lo(e,t,n){let r,i=null;const o=Object.create({});return ho(e,((e,a)=>{if((null==a?void 0:a.kind)===zi.VARIABLE&&a.name&&(i=a.name),(null==a?void 0:a.kind)===zi.NAMED_TYPE&&i){const e=so(a,zi.TYPE);(null==e?void 0:e.type)&&(r=t.getType(null==e?void 0:e.type))}i&&r&&!o[i]&&(o[i]={detail:r.toString(),insertText:"$"===n.string?i:"$"+i,label:i,type:r,kind:wi.Variable},i=null,r=null)})),Mn(o)}function uo(e){const t=[];return ho(e,((e,n)=>{n.kind===zi.FRAGMENT_DEFINITION&&n.name&&n.type&&t.push({kind:zi.FRAGMENT_DEFINITION,name:{kind:u.b.NAME,value:n.name},selectionSet:{kind:zi.SELECTION_SET,selections:[]},typeCondition:{kind:zi.NAMED_TYPE,name:{kind:u.b.NAME,value:n.type}}})})),t}function co(e,t,n){return Fn(e,Mn(t.getTypeMap()).filter(l.dX).map((e=>({label:e.name,documentation:e.description,kind:wi.Variable}))))}function fo(e,t,n,r){var i;return(null===(i=t.prevState)||void 0===i?void 0:i.kind)?Fn(e,n.getDirectives().filter((e=>mo(t.prevState,e))).map((e=>({label:e.name,documentation:e.description||"",kind:wi.Function})))):[]}function po(e,t){let n=null,r=null,i=null;const o=ho(e,((e,o,a,s)=>{if(s===t.line&&e.getCurrentPosition()>=t.character)return n=a,r=Object.assign({},o),i=e.current(),"BREAK"}));return{start:o.start,end:o.end,string:i||o.string,state:r||o.state,style:n||o.style}}function ho(e,t){const n=e.split("\n"),r=Fi();let i=r.startState(),o="",a=new Ti("");for(let e=0;e<n.length;e++){for(a=new Ti(n[e]);!a.eol()&&(o=r.token(a,i),"BREAK"!==t(a,i,o,e)););t(a,i,o,e),i.kind||(i=r.startState())}return{start:a.getStartOfToken(),end:a.getCurrentPosition(),string:a.current(),state:i,style:o}}function mo(e,t){if(!(null==e?void 0:e.kind))return!1;const{kind:n,prevState:r}=e,{locations:i}=t;switch(n){case zi.QUERY:return i.includes(p.H.QUERY);case zi.MUTATION:return i.includes(p.H.MUTATION);case zi.SUBSCRIPTION:return i.includes(p.H.SUBSCRIPTION);case zi.FIELD:case zi.ALIASED_FIELD:return i.includes(p.H.FIELD);case zi.FRAGMENT_DEFINITION:return i.includes(p.H.FRAGMENT_DEFINITION);case zi.FRAGMENT_SPREAD:return i.includes(p.H.FRAGMENT_SPREAD);case zi.INLINE_FRAGMENT:return i.includes(p.H.INLINE_FRAGMENT);case zi.SCHEMA_DEF:return i.includes(p.H.SCHEMA);case zi.SCALAR_DEF:return i.includes(p.H.SCALAR);case zi.OBJECT_TYPE_DEF:return i.includes(p.H.OBJECT);case zi.FIELD_DEF:return i.includes(p.H.FIELD_DEFINITION);case zi.INTERFACE_DEF:return i.includes(p.H.INTERFACE);case zi.UNION_DEF:return i.includes(p.H.UNION);case zi.ENUM_DEF:return i.includes(p.H.ENUM);case zi.ENUM_VALUE:return i.includes(p.H.ENUM_VALUE);case zi.INPUT_DEF:return i.includes(p.H.INPUT_OBJECT);case zi.INPUT_VALUE_DEF:switch(null==r?void 0:r.kind){case zi.ARGUMENTS_DEF:return i.includes(p.H.ARGUMENT_DEFINITION);case zi.INPUT_DEF:return i.includes(p.H.INPUT_FIELD_DEFINITION)}}return!1}function go(e,t){let n,r,i,o,a,s,u,c,d,f,p;return Ln(t,(t=>{var h;switch(t.kind){case zi.QUERY:case"ShortQuery":f=e.getQueryType();break;case zi.MUTATION:f=e.getMutationType();break;case zi.SUBSCRIPTION:f=e.getSubscriptionType();break;case zi.INLINE_FRAGMENT:case zi.FRAGMENT_DEFINITION:t.type&&(f=e.getType(t.type));break;case zi.FIELD:case zi.ALIASED_FIELD:f&&t.name?(a=d?Dn(e,d,t.name):null,f=a?a.type:null):a=null;break;case zi.SELECTION_SET:d=(0,l.MR)(f);break;case zi.DIRECTIVE:i=t.name?e.getDirective(t.name):null;break;case zi.INTERFACE_DEF:t.name&&(u=null,p=new l.VA({name:t.name,interfaces:[],fields:{}}));break;case zi.OBJECT_TYPE_DEF:t.name&&(p=null,u=new l.bh({name:t.name,interfaces:[],fields:{}}));break;case zi.ARGUMENTS:if(t.prevState)switch(t.prevState.kind){case zi.FIELD:r=a&&a.args;break;case zi.DIRECTIVE:r=i&&i.args;break;case zi.ALIASED_FIELD:{const n=null===(h=t.prevState)||void 0===h?void 0:h.name;if(!n){r=null;break}const i=d?Dn(e,d,n):null;if(!i){r=null;break}r=i.args;break}default:r=null}else r=null;break;case zi.ARGUMENT:if(r)for(let e=0;e<r.length;e++)if(r[e].name===t.name){n=r[e];break}s=null==n?void 0:n.type;break;case zi.ENUM_VALUE:const m=(0,l.MR)(s);o=m instanceof l.Zb?m.getValues().find((e=>e.value===t.name)):null;break;case zi.LIST_VALUE:const g=(0,l.yl)(s);s=g instanceof l.KT?g.ofType:null;break;case zi.OBJECT_VALUE:const v=(0,l.MR)(s);c=v instanceof l.zP?v.getFields():null;break;case zi.OBJECT_FIELD:const y=t.name&&c?c[t.name]:null;s=null==y?void 0:y.type;break;case zi.NAMED_TYPE:t.name&&(f=e.getType(t.name))}})),{argDef:n,argDefs:r,directiveDef:i,enumValue:o,fieldDef:a,inputType:s,objectFieldDefs:c,parentType:d,type:f,interfaceDef:p,objectTypeDef:u}}var vo,yo;function bo(e,t){return(null==t?void 0:t.endsWith(".graphqls"))||Ki(e)?vo.TYPE_SYSTEM:vo.EXECUTABLE}function Eo(e){return e.prevState&&e.kind&&[zi.NAMED_TYPE,zi.LIST_TYPE,zi.TYPE,zi.NON_NULL_TYPE].includes(e.kind)?Eo(e.prevState):e}A(lo,"getVariableCompletions"),A(uo,"getFragmentDefinitions"),A(co,"getSuggestionsForVariableDefinition"),A(fo,"getSuggestionsForDirective"),A(po,"getTokenAtPosition"),A(ho,"runOnlineParser"),A(mo,"canUseDirective"),A(go,"getTypeInfo"),(yo=vo||(vo={})).TYPE_SYSTEM="TYPE_SYSTEM",yo.EXECUTABLE="EXECUTABLE",A(bo,"getDocumentMode"),A(Eo,"unwrapType");var wo="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function ko(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function To(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})})),t}A(ko,"getDefaultExportFromCjs"),A(To,"getAugmentedNamespace");var xo={exports:{}};function Co(e,t){if(null!=e)return e;var n=new Error(void 0!==t?t:"Got unexpected "+e);throw n.framesToPop=1,n}A(Co,"nullthrows"),xo.exports=Co,xo.exports.default=Co,Object.defineProperty(xo.exports,"__esModule",{value:!0});var So=ko(xo.exports);const No=A(((e,t)=>{if(!t)return[];const n=new Map,r=new Set;(0,a.YR)(e,{FragmentDefinition(e){n.set(e.name.value,!0)},FragmentSpread(e){r.has(e.name.value)||r.add(e.name.value)}});const i=new Set;for(const e of r)!n.has(e)&&t.has(e)&&i.add(So(t.get(e)));const o=[];for(const e of i)(0,a.YR)(e,{FragmentSpread(e){!r.has(e.name.value)&&t.get(e.name.value)&&(i.add(So(t.get(e.name.value))),r.add(e.name.value))}}),n.has(e.name.value)||o.push(e);return o}),"getFragmentDependenciesForAST");function _o(e,t){const n=Object.create(null);for(const r of t.definitions)if("OperationDefinition"===r.kind){const{variableDefinitions:t}=r;if(t)for(const{variable:r,type:i}of t){const t=(0,h.v)(e,i);t?n[r.name.value]=t:i.kind===u.b.NAMED_TYPE&&"Float"===i.name.value&&(n[r.name.value]=d.qS)}}return n}function Oo(e,t){const n=t?_o(t,e):void 0,r=[];return(0,a.YR)(e,{OperationDefinition(e){r.push(e)}}),{variableToType:n,operations:r}}function Io(e,t){if(t)try{const n=(0,i.qg)(t);return Object.assign(Object.assign({},Oo(n,e)),{documentAST:n})}catch(e){return}}A(_o,"collectVariables"),A(Oo,"getOperationASTFacts"),A(Io,"getOperationFacts"),globalThis&&globalThis.__awaiter;var Ao=A((function(e){return"object"==typeof e?null===e:"function"!=typeof e}),"isPrimitive"),Do=A((function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}),"isObject");function Lo(e){return!0===Do(e)&&"[object Object]"===Object.prototype.toString.call(e)}A(Lo,"isObjectObject");var Mo=A((function(e){var t,n;return!1!==Lo(e)&&"function"==typeof(t=e.constructor)&&!1!==Lo(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")}),"isPlainObject");const{deleteProperty:Fo}=Reflect,Ro=Ao,Po=Mo,jo=A((e=>"object"==typeof e&&null!==e||"function"==typeof e),"isObject$1"),Vo=A((e=>"__proto__"===e||"constructor"===e||"prototype"===e),"isUnsafeKey"),Uo=A((e=>{if(!Ro(e))throw new TypeError("Object keys must be strings or symbols");if(Vo(e))throw new Error(`Cannot set unsafe key: "${e}"`)}),"validateKey"),Bo=A((e=>Array.isArray(e)?e.flat().map(String).join(","):e),"toStringKey"),$o=A(((e,t)=>{if("string"!=typeof e||!t)return e;let n=e+";";return void 0!==t.arrays&&(n+=`arrays=${t.arrays};`),void 0!==t.separator&&(n+=`separator=${t.separator};`),void 0!==t.split&&(n+=`split=${t.split};`),void 0!==t.merge&&(n+=`merge=${t.merge};`),void 0!==t.preservePaths&&(n+=`preservePaths=${t.preservePaths};`),n}),"createMemoKey"),qo=A(((e,t,n)=>{const r=Bo(t?$o(e,t):e);Uo(r);const i=Wo.cache.get(r)||n();return Wo.cache.set(r,i),i}),"memoize"),Ho=A(((e,t={})=>{const n=t.separator||".",r="/"!==n&&t.preservePaths;if("string"==typeof e&&!1!==r&&/\//.test(e))return[e];const i=[];let o="";const a=A((e=>{let t;""!==e.trim()&&Number.isInteger(t=Number(e))?i.push(t):i.push(e)}),"push");for(let t=0;t<e.length;t++){const r=e[t];"\\"!==r?r!==n?o+=r:(a(o),o=""):o+=e[++t]}return o&&a(o),i}),"splitString"),zo=A(((e,t)=>t&&"function"==typeof t.split?t.split(e):"symbol"==typeof e?[e]:Array.isArray(e)?e:qo(e,t,(()=>Ho(e,t)))),"split"),Go=A(((e,t,n,r)=>{if(Uo(t),void 0===n)Fo(e,t);else if(r&&r.merge){const i="function"===r.merge?r.merge:Object.assign;i&&Po(e[t])&&Po(n)?e[t]=i(e[t],n):e[t]=n}else e[t]=n;return e}),"assignProp"),Wo=A(((e,t,n,r)=>{if(!t||!jo(e))return e;const i=zo(t,r);let o=e;for(let e=0;e<i.length;e++){const t=i[e],a=i[e+1];if(Uo(t),void 0===a){Go(o,t,n,r);break}"number"!=typeof a||Array.isArray(o[t])?(jo(o[t])||(o[t]={}),o=o[t]):o=o[t]=[]}return e}),"setValue");Wo.split=zo,Wo.cache=new Map,Wo.clear=()=>{Wo.cache=new Map};var Yo=Wo;function Ko(e){var t=e,{title:n,titleId:i}=t,o=D(t,["title","titleId"]);return r.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("path",{d:"M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z",stroke:"currentColor",strokeWidth:1.2}),r.createElement("rect",{x:6,y:6,width:2,height:2,rx:1,fill:"currentColor"}))}function Qo(e){var t=e,{title:n,titleId:i}=t,o=D(t,["title","titleId"]);return r.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("path",{d:"M1 1L7 7L13 1",stroke:"currentColor",strokeWidth:1.5}))}function Jo(e){var t=e,{title:n,titleId:i}=t,o=D(t,["title","titleId"]);return r.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("path",{d:"M6 1.04819L2 5.04819L6 9.04819",stroke:"currentColor",strokeWidth:1.75}))}function Xo(e){var t=e,{title:n,titleId:i}=t,o=D(t,["title","titleId"]);return r.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("path",{d:"M13 8L7 2L1 8",stroke:"currentColor",strokeWidth:1.5}))}function Zo(e){var t=e,{title:n,titleId:i}=t,o=D(t,["title","titleId"]);return r.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("path",{d:"M1 1L12.9998 12.9997",stroke:"currentColor",strokeWidth:1.5}),r.createElement("path",{d:"M13 1L1.00079 13.0003",stroke:"currentColor",strokeWidth:1.5}))}function ea(e){var t=e,{title:n,titleId:i}=t,o=D(t,["title","titleId"]);return r.createElement("svg",Object.assign({height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("path",{d:"M11.25 14.2105V15.235C11.25 16.3479 10.3479 17.25 9.23501 17.25H2.76499C1.65214 17.25 0.75 16.3479 0.75 15.235L0.75 8.76499C0.75 7.65214 1.65214 6.75 2.76499 6.75L3.78947 6.75",stroke:"currentColor",strokeWidth:1.5}),r.createElement("rect",{x:6.75,y:.75,width:10.5,height:10.5,rx:2.2069,stroke:"currentColor",strokeWidth:1.5}))}function ta(e){var t=e,{title:n,titleId:i}=t,o=D(t,["title","titleId"]);return r.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("path",{d:"M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z",stroke:"currentColor",strokeWidth:1.2}),r.createElement("path",{d:"M5 9L9 5",stroke:"currentColor",strokeWidth:1.2}),r.createElement("path",{d:"M5 5L9 9",stroke:"currentColor",strokeWidth:1.2}))}function na(e){var t=e,{title:n,titleId:i}=t,o=D(t,["title","titleId"]);return r.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),r.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z",fill:"currentColor"}))}function ra(e){var t=e,{title:n,titleId:i}=t,o=D(t,["title","titleId"]);return r.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("rect",{x:.6,y:.6,width:10.8,height:10.8,rx:3.4,stroke:"currentColor",strokeWidth:1.2}),r.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),r.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2}))}function ia(e){var t=e,{title:n,titleId:i}=t,o=D(t,["title","titleId"]);return r.createElement("svg",Object.assign({height:"1em",viewBox:"0 0.5 12 12",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("rect",{x:7,y:5.5,width:2,height:2,rx:1,transform:"rotate(90 7 5.5)",fill:"currentColor"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8 9L10.8 9.5C10.8 10.4941 9.99411 11.3 9 11.3L3 11.3C2.00589 11.3 1.2 10.4941 1.2 9.5L1.2 9L-3.71547e-07 9L-3.93402e-07 9.5C-4.65826e-07 11.1569 1.34314 12.5 3 12.5L9 12.5C10.6569 12.5 12 11.1569 12 9.5L12 9L10.8 9ZM10.8 4L12 4L12 3.5C12 1.84315 10.6569 0.5 9 0.5L3 0.5C1.34315 0.5 -5.87117e-08 1.84315 -1.31135e-07 3.5L-1.5299e-07 4L1.2 4L1.2 3.5C1.2 2.50589 2.00589 1.7 3 1.7L9 1.7C9.99411 1.7 10.8 2.50589 10.8 3.5L10.8 4Z",fill:"currentColor"}))}function oa(e){var t=e,{title:n,titleId:i}=t,o=D(t,["title","titleId"]);return r.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("path",{d:"M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H17.25C17.8023 0.75 18.25 1.19772 18.25 1.75V5.25",stroke:"currentColor",strokeWidth:1.5}),r.createElement("path",{d:"M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H18.25C18.8023 5.25 19.25 5.69771 19.25 6.25V22.25C19.25 22.8023 18.8023 23.25 18.25 23.25H3C1.75736 23.25 0.75 22.2426 0.75 21V3Z",stroke:"currentColor",strokeWidth:1.5}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 5.25C1.75736 5.25 0.75 4.24264 0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H3ZM13 11L6 11V12.5L13 12.5V11Z",fill:"currentColor"}))}function aa(e){var t=e,{title:n,titleId:i}=t,o=D(t,["title","titleId"]);return r.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("path",{d:"M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H17.25M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H16.25C16.8023 0.75 17.25 1.19772 17.25 1.75V5.25M0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H17.25",stroke:"currentColor",strokeWidth:1.5}),r.createElement("line",{x1:13,y1:11.75,x2:6,y2:11.75,stroke:"currentColor",strokeWidth:1.5}))}function sa(e){var t=e,{title:n,titleId:i}=t,o=D(t,["title","titleId"]);return r.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("rect",{x:5,y:5,width:2,height:2,rx:1,fill:"currentColor"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z",fill:"currentColor"}))}function la(e){var t=e,{title:n,titleId:i}=t,o=D(t,["title","titleId"]);return r.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("rect",{x:.6,y:1.1,width:10.8,height:10.8,rx:2.4,stroke:"currentColor",strokeWidth:1.2}),r.createElement("rect",{x:5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"}))}function ua(e){var t=e,{title:n,titleId:i}=t,o=D(t,["title","titleId"]);return r.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 24 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("path",{d:"M1.59375 9.52344L4.87259 12.9944L8.07872 9.41249",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),r.createElement("path",{d:"M13.75 5.25V10.75H18.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),r.createElement("path",{d:"M4.95427 11.9332C4.55457 10.0629 4.74441 8.11477 5.49765 6.35686C6.25089 4.59894 7.5305 3.11772 9.16034 2.11709C10.7902 1.11647 12.6901 0.645626 14.5986 0.769388C16.5071 0.893151 18.3303 1.60543 19.8172 2.80818C21.3042 4.01093 22.3818 5.64501 22.9017 7.48548C23.4216 9.32595 23.3582 11.2823 22.7203 13.0853C22.0824 14.8883 20.9013 16.4492 19.3396 17.5532C17.778 18.6572 15.9125 19.25 14 19.25",stroke:"currentColor",strokeWidth:1.5}))}function ca(e){var t=e,{title:n,titleId:i}=t,o=D(t,["title","titleId"]);return r.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("circle",{cx:6,cy:6,r:5.4,stroke:"currentColor",strokeWidth:1.2,strokeDasharray:"4.241025 4.241025",transform:"rotate(22.5)","transform-origin":"center"}),r.createElement("circle",{cx:6,cy:6,r:1,fill:"currentColor"}))}function da(e){var t=e,{title:n,titleId:i}=t,o=D(t,["title","titleId"]);return r.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("path",{d:"M1.5 14.5653C1.5 15.211 1.75652 15.8303 2.21314 16.2869C2.66975 16.7435 3.28905 17 3.9348 17C4.58054 17 5.19984 16.7435 5.65646 16.2869C6.11307 15.8303 6.36959 15.211 6.36959 14.5653V12.1305H3.9348C3.28905 12.1305 2.66975 12.387 2.21314 12.8437C1.75652 13.3003 1.5 13.9195 1.5 14.5653Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M3.9348 1.00063C3.28905 1.00063 2.66975 1.25715 2.21314 1.71375C1.75652 2.17035 1.5 2.78964 1.5 3.43537C1.5 4.0811 1.75652 4.70038 2.21314 5.15698C2.66975 5.61358 3.28905 5.8701 3.9348 5.8701H6.36959V3.43537C6.36959 2.78964 6.11307 2.17035 5.65646 1.71375C5.19984 1.25715 4.58054 1.00063 3.9348 1.00063Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M15.0652 12.1305H12.6304V14.5653C12.6304 15.0468 12.7732 15.5175 13.0407 15.9179C13.3083 16.3183 13.6885 16.6304 14.1334 16.8147C14.5783 16.9989 15.0679 17.0472 15.5402 16.9532C16.0125 16.8593 16.4464 16.6274 16.7869 16.2869C17.1274 15.9464 17.3593 15.5126 17.4532 15.0403C17.5472 14.568 17.4989 14.0784 17.3147 13.6335C17.1304 13.1886 16.8183 12.8084 16.4179 12.5409C16.0175 12.2733 15.5468 12.1305 15.0652 12.1305Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M12.6318 5.86775H6.36955V12.1285H12.6318V5.86775Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M17.5 3.43473C17.5 2.789 17.2435 2.16972 16.7869 1.71312C16.3303 1.25652 15.711 1 15.0652 1C14.4195 1 13.8002 1.25652 13.3435 1.71312C12.8869 2.16972 12.6304 2.789 12.6304 3.43473V5.86946H15.0652C15.711 5.86946 16.3303 5.61295 16.7869 5.15635C17.2435 4.69975 17.5 4.08046 17.5 3.43473Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}))}function fa(e){var t=e,{title:n,titleId:i}=t,o=D(t,["title","titleId"]);return r.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("circle",{cx:5,cy:5,r:4.35,stroke:"currentColor",strokeWidth:1.3}),r.createElement("line",{x1:8.45962,y1:8.54038,x2:11.7525,y2:11.8333,stroke:"currentColor",strokeWidth:1.3}))}function pa(e){var t=e,{title:n,titleId:i}=t,o=D(t,["title","titleId"]);return r.createElement("svg",Object.assign({height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("path",{d:"M17.2492 6V2.9569C17.2492 1.73806 16.2611 0.75 15.0423 0.75L2.9569 0.75C1.73806 0.75 0.75 1.73806 0.75 2.9569L0.75 6",stroke:"currentColor",strokeWidth:1.5}),r.createElement("path",{d:"M0.749873 12V15.0431C0.749873 16.2619 1.73794 17.25 2.95677 17.25H15.0421C16.261 17.25 17.249 16.2619 17.249 15.0431V12",stroke:"currentColor",strokeWidth:1.5}),r.createElement("path",{d:"M6 4.5L9 7.5L12 4.5",stroke:"currentColor",strokeWidth:1.5}),r.createElement("path",{d:"M12 13.5L9 10.5L6 13.5",stroke:"currentColor",strokeWidth:1.5}))}function ha(e){var t=e,{title:n,titleId:i}=t,o=D(t,["title","titleId"]);return r.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("path",{d:"M0.75 13.25L0.0554307 12.967C-0.0593528 13.2488 0.00743073 13.5719 0.224488 13.7851C0.441545 13.9983 0.765869 14.0592 1.04549 13.9393L0.75 13.25ZM12.8214 1.83253L12.2911 2.36286L12.2911 2.36286L12.8214 1.83253ZM12.8214 3.90194L13.3517 4.43227L12.8214 3.90194ZM10.0981 1.17859L9.56773 0.648259L10.0981 1.17859ZM12.1675 1.17859L12.6978 0.648258L12.6978 0.648257L12.1675 1.17859ZM2.58049 8.75697L3.27506 9.03994L2.58049 8.75697ZM2.70066 8.57599L3.23099 9.10632L2.70066 8.57599ZM5.2479 11.4195L4.95355 10.7297L5.2479 11.4195ZM5.42036 11.303L4.89003 10.7727L5.42036 11.303ZM4.95355 10.7297C4.08882 11.0987 3.41842 11.362 2.73535 11.6308C2.05146 11.9 1.35588 12.1743 0.454511 12.5607L1.04549 13.9393C1.92476 13.5624 2.60256 13.2951 3.28469 13.0266C3.96762 12.7578 4.65585 12.4876 5.54225 12.1093L4.95355 10.7297ZM1.44457 13.533L3.27506 9.03994L1.88592 8.474L0.0554307 12.967L1.44457 13.533ZM3.23099 9.10632L10.6284 1.70892L9.56773 0.648259L2.17033 8.04566L3.23099 9.10632ZM11.6371 1.70892L12.2911 2.36286L13.3517 1.3022L12.6978 0.648258L11.6371 1.70892ZM12.2911 3.37161L4.89003 10.7727L5.95069 11.8333L13.3517 4.43227L12.2911 3.37161ZM12.2911 2.36286C12.5696 2.64142 12.5696 3.09305 12.2911 3.37161L13.3517 4.43227C14.2161 3.56792 14.2161 2.16654 13.3517 1.3022L12.2911 2.36286ZM10.6284 1.70892C10.9069 1.43036 11.3586 1.43036 11.6371 1.70892L12.6978 0.648257C11.8335 -0.216088 10.4321 -0.216084 9.56773 0.648259L10.6284 1.70892ZM3.27506 9.03994C3.26494 9.06479 3.24996 9.08735 3.23099 9.10632L2.17033 8.04566C2.04793 8.16806 1.95123 8.31369 1.88592 8.474L3.27506 9.03994ZM5.54225 12.1093C5.69431 12.0444 5.83339 11.9506 5.95069 11.8333L4.89003 10.7727C4.90863 10.7541 4.92988 10.7398 4.95355 10.7297L5.54225 12.1093Z",fill:"currentColor"}),r.createElement("path",{d:"M11.5 4.5L9.5 2.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M5.5 10.5L3.5 8.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"}))}function ma(e){var t=e,{title:n,titleId:i}=t,o=D(t,["title","titleId"]);return r.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("path",{d:"M1.32226e-07 1.6609C7.22332e-08 0.907329 0.801887 0.424528 1.46789 0.777117L15.3306 8.11621C16.0401 8.49182 16.0401 9.50818 15.3306 9.88379L1.46789 17.2229C0.801886 17.5755 1.36076e-06 17.0927 1.30077e-06 16.3391L1.32226e-07 1.6609Z",fill:"currentColor"}))}function ga(e){var t=e,{title:n,titleId:i}=t,o=D(t,["title","titleId"]);return r.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 10 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.25 9.25V13.5H5.75V9.25L10 9.25V7.75L5.75 7.75V3.5H4.25V7.75L0 7.75V9.25L4.25 9.25Z",fill:"currentColor"}))}function va(e){var t=e,{title:n,titleId:i}=t,o=D(t,["title","titleId"]);return r.createElement("svg",Object.assign({width:25,height:25,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("path",{d:"M10.2852 24.0745L13.7139 18.0742",stroke:"currentColor",strokeWidth:1.5625}),r.createElement("path",{d:"M14.5742 24.0749L17.1457 19.7891",stroke:"currentColor",strokeWidth:1.5625}),r.createElement("path",{d:"M19.4868 24.0735L20.7229 21.7523C21.3259 20.6143 21.5457 19.3122 21.3496 18.0394C21.1535 16.7666 20.5519 15.591 19.6342 14.6874L23.7984 6.87853C24.0123 6.47728 24.0581 6.00748 23.9256 5.57249C23.7932 5.1375 23.4933 4.77294 23.0921 4.55901C22.6908 4.34509 22.221 4.29932 21.7861 4.43178C21.3511 4.56424 20.9865 4.86408 20.7726 5.26533L16.6084 13.0742C15.3474 12.8142 14.0362 12.9683 12.8699 13.5135C11.7035 14.0586 10.7443 14.9658 10.135 16.1L6 24.0735",stroke:"currentColor",strokeWidth:1.5625}),r.createElement("path",{d:"M4 15L5 13L7 12L5 11L4 9L3 11L1 12L3 13L4 15Z",stroke:"currentColor",strokeWidth:1.5625,strokeLinejoin:"round"}),r.createElement("path",{d:"M11.5 8L12.6662 5.6662L15 4.5L12.6662 3.3338L11.5 1L10.3338 3.3338L8 4.5L10.3338 5.6662L11.5 8Z",stroke:"currentColor",strokeWidth:1.5625,strokeLinejoin:"round"}))}function ya(e){var t=e,{title:n,titleId:i}=t,o=D(t,["title","titleId"]);return r.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("path",{d:"M4.75 9.25H1.25V12.75",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),r.createElement("path",{d:"M11.25 6.75H14.75V3.25",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),r.createElement("path",{d:"M14.1036 6.65539C13.8 5.27698 13.0387 4.04193 11.9437 3.15131C10.8487 2.26069 9.48447 1.76694 8.0731 1.75043C6.66173 1.73392 5.28633 2.19563 4.17079 3.0604C3.05526 3.92516 2.26529 5.14206 1.92947 6.513",stroke:"currentColor",strokeWidth:1}),r.createElement("path",{d:"M1.89635 9.34461C2.20001 10.723 2.96131 11.9581 4.05631 12.8487C5.15131 13.7393 6.51553 14.2331 7.9269 14.2496C9.33827 14.2661 10.7137 13.8044 11.8292 12.9396C12.9447 12.0748 13.7347 10.8579 14.0705 9.487",stroke:"currentColor",strokeWidth:1}))}function ba(e){var t=e,{title:n,titleId:i}=t,o=D(t,["title","titleId"]);return r.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),r.createElement("path",{d:"M4.25 7.5C4.25 6 5.75 5 6.5 6.5C7.25 8 8.75 7 8.75 5.5",stroke:"currentColor",strokeWidth:1.2}))}function Ea(e){var t=e,{title:n,titleId:i}=t,o=D(t,["title","titleId"]);return r.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.29186 1.92702C9.06924 1.82745 8.87014 1.68202 8.70757 1.50024L7.86631 0.574931C7.62496 0.309957 7.30773 0.12592 6.95791 0.0479385C6.60809 -0.0300431 6.24274 0.00182978 5.91171 0.139208C5.58068 0.276585 5.3001 0.512774 5.10828 0.815537C4.91645 1.1183 4.82272 1.47288 4.83989 1.83089L4.90388 3.08019C4.91612 3.32348 4.87721 3.56662 4.78968 3.79394C4.70215 4.02126 4.56794 4.2277 4.39571 4.39994C4.22347 4.57219 4.01704 4.7064 3.78974 4.79394C3.56243 4.88147 3.3193 4.92038 3.07603 4.90814L1.8308 4.84414C1.47162 4.82563 1.11553 4.91881 0.811445 5.11086C0.507359 5.30292 0.270203 5.58443 0.132561 5.91671C-0.00508149 6.249 -0.0364554 6.61576 0.0427496 6.9666C0.121955 7.31744 0.307852 7.63514 0.5749 7.87606L1.50016 8.71204C1.68193 8.87461 1.82735 9.07373 1.92692 9.29636C2.02648 9.51898 2.07794 9.76012 2.07794 10.004C2.07794 10.2479 2.02648 10.489 1.92692 10.7116C1.82735 10.9343 1.68193 11.1334 1.50016 11.296L0.5749 12.1319C0.309856 12.3729 0.125575 12.6898 0.0471809 13.0393C-0.0312128 13.3888 9.64098e-05 13.754 0.13684 14.0851C0.273583 14.4162 0.509106 14.6971 0.811296 14.8894C1.11349 15.0817 1.46764 15.1762 1.82546 15.1599L3.0707 15.0959C3.31397 15.0836 3.5571 15.1225 3.7844 15.2101C4.01171 15.2976 4.21814 15.4318 4.39037 15.6041C4.56261 15.7763 4.69682 15.9827 4.78435 16.2101C4.87188 16.4374 4.91078 16.6805 4.89855 16.9238L4.83455 18.1691C4.81605 18.5283 4.90921 18.8844 5.10126 19.1885C5.2933 19.4926 5.5748 19.7298 5.90707 19.8674C6.23934 20.0051 6.60608 20.0365 6.9569 19.9572C7.30772 19.878 7.6254 19.6921 7.86631 19.4251L8.7129 18.4998C8.87547 18.318 9.07458 18.1725 9.29719 18.073C9.51981 17.9734 9.76093 17.9219 10.0048 17.9219C10.2487 17.9219 10.4898 17.9734 10.7124 18.073C10.935 18.1725 11.1341 18.318 11.2967 18.4998L12.1326 19.4251C12.3735 19.6921 12.6912 19.878 13.042 19.9572C13.3929 20.0365 13.7596 20.0051 14.0919 19.8674C14.4241 19.7298 14.7056 19.4926 14.8977 19.1885C15.0897 18.8844 15.1829 18.5283 15.1644 18.1691L15.1004 16.9238C15.0882 16.6805 15.1271 16.4374 15.2146 16.2101C15.3021 15.9827 15.4363 15.7763 15.6086 15.6041C15.7808 15.4318 15.9872 15.2976 16.2145 15.2101C16.4418 15.1225 16.685 15.0836 16.9282 15.0959L18.1735 15.1599C18.5326 15.1784 18.8887 15.0852 19.1928 14.8931C19.4969 14.7011 19.7341 14.4196 19.8717 14.0873C20.0093 13.755 20.0407 13.3882 19.9615 13.0374C19.8823 12.6866 19.6964 12.3689 19.4294 12.1279L18.5041 11.292C18.3223 11.1294 18.1769 10.9303 18.0774 10.7076C17.9778 10.485 17.9263 10.2439 17.9263 10C17.9263 9.75612 17.9778 9.51499 18.0774 9.29236C18.1769 9.06973 18.3223 8.87062 18.5041 8.70804L19.4294 7.87206C19.6964 7.63114 19.8823 7.31344 19.9615 6.9626C20.0407 6.61176 20.0093 6.245 19.8717 5.91271C19.7341 5.58043 19.4969 5.29892 19.1928 5.10686C18.8887 4.91481 18.5326 4.82163 18.1735 4.84014L16.9282 4.90414C16.685 4.91638 16.4418 4.87747 16.2145 4.78994C15.9872 4.7024 15.7808 4.56818 15.6086 4.39594C15.4363 4.2237 15.3021 4.01726 15.2146 3.78994C15.1271 3.56262 15.0882 3.31948 15.1004 3.07619L15.1644 1.83089C15.1829 1.4717 15.0897 1.11559 14.8977 0.811487C14.7056 0.507385 14.4241 0.270217 14.0919 0.132568C13.7596 -0.00508182 13.3929 -0.0364573 13.042 0.0427519C12.6912 0.121961 12.3735 0.307869 12.1326 0.574931L11.2914 1.50024C11.1288 1.68202 10.9297 1.82745 10.7071 1.92702C10.4845 2.02659 10.2433 2.07805 9.99947 2.07805C9.7556 2.07805 9.51448 2.02659 9.29186 1.92702ZM14.3745 10C14.3745 12.4162 12.4159 14.375 9.99977 14.375C7.58365 14.375 5.625 12.4162 5.625 10C5.625 7.58375 7.58365 5.625 9.99977 5.625C12.4159 5.625 14.3745 7.58375 14.3745 10Z",fill:"currentColor"}))}function wa(e){var t=e,{title:n,titleId:i}=t,o=D(t,["title","titleId"]);return r.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("path",{d:"M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z",fill:"currentColor",stroke:"currentColor"}))}function ka(e){var t=e,{title:n,titleId:i}=t,o=D(t,["title","titleId"]);return r.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("path",{d:"M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z",stroke:"currentColor",strokeWidth:1.5}))}function Ta(e){var t=e,{title:n,titleId:i}=t,o=D(t,["title","titleId"]);return r.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("rect",{width:16,height:16,rx:2,fill:"currentColor"}))}function xa(e){var t=e,{title:n,titleId:i}=t,o=D(t,["title","titleId"]);return r.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":i},o),n?r.createElement("title",{id:i},n):null,r.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),r.createElement("rect",{x:5.5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"}))}A(Ko,"SvgArgument"),A(Qo,"SvgChevronDown"),A(Jo,"SvgChevronLeft"),A(Xo,"SvgChevronUp"),A(Zo,"SvgClose"),A(ea,"SvgCopy"),A(ta,"SvgDeprecatedArgument"),A(na,"SvgDeprecatedEnumValue"),A(ra,"SvgDeprecatedField"),A(ia,"SvgDirective"),A(oa,"SvgDocsFilled"),A(aa,"SvgDocs"),A(sa,"SvgEnumValue"),A(la,"SvgField"),A(ua,"SvgHistory"),A(ca,"SvgImplements"),A(da,"SvgKeyboardShortcut"),A(fa,"SvgMagnifyingGlass"),A(pa,"SvgMerge"),A(ha,"SvgPen"),A(ma,"SvgPlay"),A(ga,"SvgPlus"),A(va,"SvgPrettify"),A(ya,"SvgReload"),A(ba,"SvgRootType"),A(Ea,"SvgSettings"),A(wa,"SvgStarFilled"),A(ka,"SvgStar"),A(Ta,"SvgStop"),A(xa,"SvgType");var Ca=Object.defineProperty,Sa=A(((e,t)=>Ca(e,"name",{value:t,configurable:!0})),"__name$E");const Na=rs(Ko,"argument icon"),_a=rs(Qo,"chevron down icon"),Oa=rs(Jo,"chevron left icon"),Ia=rs(Xo,"chevron up icon"),Aa=rs(Zo,"close icon"),Da=rs(ea,"copy icon"),La=rs(ta,"deprecated argument icon"),Ma=rs(na,"deprecated enum value icon"),Fa=rs(ra,"deprecated field icon"),Ra=rs(ia,"directive icon"),Pa=rs(oa,"filled docs icon"),ja=rs(aa,"docs icon"),Va=rs(sa,"enum value icon"),Ua=rs(la,"field icon"),Ba=rs(ua,"history icon"),$a=rs(ca,"implements icon"),qa=rs(da,"keyboard shortcut icon"),Ha=rs(fa,"magnifying glass icon"),za=rs(pa,"merge icon"),Ga=rs(ha,"pen icon"),Wa=rs(ma,"play icon"),Ya=rs(ga,"plus icon"),Ka=rs(va,"prettify icon"),Qa=rs(ya,"reload icon"),Ja=rs(ba,"root type icon"),Xa=rs(Ea,"settings icon"),Za=rs(wa,"filled star icon"),es=rs(ka,"star icon"),ts=rs(Ta,"stop icon"),ns=rs(xa,"type icon");function rs(e,t){const n=Sa(A((function(n){return(0,E.jsx)(e,I(O({},n),{title:t}))}),"IconComponent"),"IconComponent");return Object.defineProperty(n,"name",{value:e.name}),n}A(rs,"generateIcon"),Sa(rs,"generateIcon");const is=(0,r.forwardRef)(((e,t)=>(0,E.jsx)("button",I(O({},e),{ref:t,className:M("graphiql-un-styled",e.className)}))));is.displayName="UnStyledButton";const os=(0,r.forwardRef)(((e,t)=>(0,E.jsx)("button",I(O({},e),{ref:t,className:M("graphiql-button",{success:"graphiql-button-success",error:"graphiql-button-error"}[e.state],e.className)}))));os.displayName="Button";const as=(0,r.forwardRef)(((e,t)=>(0,E.jsx)("div",I(O({},e),{ref:t,className:M("graphiql-button-group",e.className)}))));function ss(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}as.displayName="ButtonGroup",A(ss,"canUseDOM");var ls=ss()?r.useLayoutEffect:r.useEffect;function us(){var e=(0,r.useState)(Object.create(null))[1];return(0,r.useCallback)((function(){e(Object.create(null))}),[])}function cs(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}A(us,"useForceUpdate"),A(cs,"_objectWithoutPropertiesLoose$b");var ds=["unstable_skipInitialRender"],fs=A((function(e){var t=e.children,n=e.type,i=void 0===n?"reach-portal":n,o=e.containerRef,a=(0,r.useRef)(null),s=(0,r.useRef)(null),l=us();return ls((function(){if(a.current){var e=a.current.ownerDocument,t=(null==o?void 0:o.current)||e.body;return s.current=null==e?void 0:e.createElement(i),t.appendChild(s.current),l(),function(){s.current&&t&&t.removeChild(s.current)}}}),[i,l,o]),s.current?(0,w.createPortal)(t,s.current):(0,r.createElement)("span",{ref:a})}),"PortalImpl"),ps=A((function(e){var t=e.unstable_skipInitialRender,n=cs(e,ds),i=(0,r.useState)(!1),o=i[0],a=i[1];return(0,r.useEffect)((function(){t&&a(!0)}),[t]),t&&!o?null:(0,r.createElement)(fs,n)}),"Portal");function hs(e){return ss()?e?e.ownerDocument:document:null}function ms(e){return"boolean"==typeof e}function gs(e){return!(!e||"[object Function]"!={}.toString.call(e))}function vs(e){return"string"==typeof e}function ys(){}function bs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Es(e,t){if(e){if("string"==typeof e)return bs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bs(e,t):void 0}}function ws(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=Es(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function ks(e,t){if(null!=e)if(gs(e))e(t);else try{e.current=t}catch(n){throw new Error('Cannot assign value "'+t+'" to ref "'+e+'"')}}function Ts(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useCallback)((function(e){for(var n,r=ws(t);!(n=r()).done;)ks(n.value,e)}),t)}function xs(e,t){return function(n){if(e&&e(n),!n.defaultPrevented)return t(n)}}function Cs(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function Ss(){return Ss=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ss.apply(this,arguments)}function Ns(){}function _s(){}A(hs,"getOwnerDocument"),A(ms,"isBoolean"),A(gs,"isFunction$1"),A(vs,"isString$1"),A(ys,"noop"),A(bs,"_arrayLikeToArray"),A(Es,"_unsupportedIterableToArray"),A(ws,"_createForOfIteratorHelperLoose"),A(ks,"assignRef$1"),A(Ts,"useComposedRefs"),A(xs,"composeEventHandlers"),A(Cs,"_objectWithoutPropertiesLoose$a"),A(Ss,"_extends$a"),A(Ns,"emptyFunction$1"),A(_s,"emptyFunctionWithReset$1"),_s.resetWarningCache=Ns,A((function(){function e(e,t,n,r,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}A(e,"shim"),e.isRequired=e,A(t,"getShim");var n={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:_s,resetWarningCache:Ns};return n.PropTypes=n,n}),"factoryWithThrowingShims$1")();var Os="data-focus-lock",Is="data-focus-lock-disabled";function As(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}function Ds(e,t){var n=(0,r.useState)((function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}}))[0];return n.callback=t,n.facade}function Ls(e,t){return Ds(t||null,(function(t){return e.forEach((function(e){return As(e,t)}))}))}A(As,"assignRef"),A(Ds,"useCallbackRef"),A(Ls,"useMergeRefs");var Ms={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},Fs=A((function(){return Fs=Object.assign||A((function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}),"__assign"),Fs.apply(this,arguments)}),"__assign");function Rs(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function Ps(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function js(e){return e}function Vs(e,t){void 0===t&&(t=js);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter((function(e){return e!==i}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var o=A((function(){var n=t;t=[],n.forEach(e)}),"executeQueue"),a=A((function(){return Promise.resolve().then(o)}),"cycle");a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}function Us(e,t){return void 0===t&&(t=js),Vs(e,t)}function Bs(e){void 0===e&&(e={});var t=Vs(null);return t.options=Fs({async:!0,ssr:!1},e),t}A(Rs,"__rest"),A(Ps,"__spreadArray"),A(js,"ItoI"),A(Vs,"innerCreateMedium"),A(Us,"createMedium"),A(Bs,"createSidecarMedium");var $s=A((function(e){var t=e.sideCar,n=Rs(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return r.createElement(i,Fs({},n))}),"SideCar$1");function qs(e,t){return e.useMedium(t),$s}$s.isSideCarExport=!0,A(qs,"exportSidecar");var Hs=Us({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),zs=Us(),Gs=Us(),Ws=Bs({async:!0}),Ys=[],Ks=r.forwardRef(A((function(e,t){var n,i=r.useState(),o=i[0],a=i[1],s=r.useRef(),l=r.useRef(!1),u=r.useRef(null),c=e.children,d=e.disabled,f=e.noFocusGuards,p=e.persistentFocus,h=e.crossFrame,m=e.autoFocus;e.allowTextSelection;var g=e.group,v=e.className,y=e.whiteList,b=e.hasPositiveIndices,E=e.shards,w=void 0===E?Ys:E,k=e.as,T=void 0===k?"div":k,x=e.lockProps,C=void 0===x?{}:x,S=e.sideCar,N=e.returnFocus,_=e.focusOptions,O=e.onActivation,I=e.onDeactivation,A=r.useState({})[0],D=r.useCallback((function(){u.current=u.current||document&&document.activeElement,s.current&&O&&O(s.current),l.current=!0}),[O]),L=r.useCallback((function(){l.current=!1,I&&I(s.current)}),[I]);(0,r.useEffect)((function(){d||(u.current=null)}),[]);var M=r.useCallback((function(e){var t=u.current;if(t&&t.focus){var n="function"==typeof N?N(t):N;if(n){var r="object"==typeof n?n:void 0;u.current=null,e?Promise.resolve().then((function(){return t.focus(r)})):t.focus(r)}}}),[N]),F=r.useCallback((function(e){l.current&&Hs.useMedium(e)}),[]),R=zs.useMedium,P=r.useCallback((function(e){s.current!==e&&(s.current=e,a(e))}),[]),j=Ss(((n={})[Is]=d&&"disabled",n[Os]=g,n),C),V=!0!==f,U=V&&"tail"!==f,B=Ls([t,P]);return r.createElement(r.Fragment,null,V&&[r.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:d?-1:0,style:Ms}),b?r.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:d?-1:1,style:Ms}):null],!d&&r.createElement(S,{id:A,sideCar:Ws,observed:o,disabled:d,persistentFocus:p,crossFrame:h,autoFocus:m,whiteList:y,shards:w,onActivation:D,onDeactivation:L,returnFocus:M,focusOptions:_}),r.createElement(T,Ss({ref:B},j,{className:v,onBlur:R,onFocus:F}),c),U&&r.createElement("div",{"data-focus-guard":!0,tabIndex:d?-1:0,style:Ms}))}),"FocusLockUI"));Ks.propTypes={},Ks.defaultProps={children:void 0,disabled:!1,returnFocus:!1,focusOptions:void 0,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,hasPositiveIndices:void 0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};var Qs=Ks;function Js(e,t){return(Js=Object.setPrototypeOf?Object.setPrototypeOf.bind():A((function(e,t){return e.__proto__=t,e}),"_setPrototypeOf"))(e,t)}function Xs(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Js(e,t)}function Zs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function el(e,t){function n(e){return e.displayName||e.name||"Component"}return A(n,"getDisplayName"),A((function(i){var o,a=[];function s(){o=e(a.map((function(e){return e.props}))),t(o)}A(s,"emitChange");var l=function(e){function t(){return e.apply(this,arguments)||this}Xs(t,e),A(t,"SideEffect"),t.peek=A((function(){return o}),"peek");var n=t.prototype;return n.componentDidMount=A((function(){a.push(this),s()}),"componentDidMount"),n.componentDidUpdate=A((function(){s()}),"componentDidUpdate"),n.componentWillUnmount=A((function(){var e=a.indexOf(this);a.splice(e,1),s()}),"componentWillUnmount"),n.render=A((function(){return(0,E.jsx)(i,O({},this.props))}),"render"),t}(r.PureComponent);return Zs(l,"displayName","SideEffect("+n(i)+")"),l}),"wrap")}A(Js,"_setPrototypeOf"),A(Xs,"_inheritsLoose"),A(Zs,"_defineProperty"),A(el,"withSideEffect");var tl=A((function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t}),"toArray"),nl=A((function(e){return Array.isArray(e)?e:[e]}),"asArray"),rl=A((function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!(!t||!t.getPropertyValue||"none"!==t.getPropertyValue("display")&&"hidden"!==t.getPropertyValue("visibility"))}),"isElementHidden"),il=A((function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode}),"getParentNode"),ol=A((function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE}),"isTopNode"),al=A((function(e,t){return!e||ol(e)||!rl(e)&&t(il(e))}),"isVisibleUncached"),sl=A((function(e,t){var n=e.get(t);if(void 0!==n)return n;var r=al(t,sl.bind(void 0,e));return e.set(t,r),r}),"isVisibleCached"),ll=A((function(e,t){return!(e&&!ol(e))||!!ml(e)&&t(il(e))}),"isAutoFocusAllowedUncached"),ul=A((function(e,t){var n=e.get(t);if(void 0!==n)return n;var r=ll(t,ul.bind(void 0,e));return e.set(t,r),r}),"isAutoFocusAllowedCached"),cl=A((function(e){return e.dataset}),"getDataset"),dl=A((function(e){return"BUTTON"===e.tagName}),"isHTMLButtonElement"),fl=A((function(e){return"INPUT"===e.tagName}),"isHTMLInputElement"),pl=A((function(e){return fl(e)&&"radio"===e.type}),"isRadioElement"),hl=A((function(e){return!((fl(e)||dl(e))&&("hidden"===e.type||e.disabled))}),"notHiddenInput"),ml=A((function(e){var t=e.getAttribute("data-no-autofocus");return![!0,"true",""].includes(t)}),"isAutoFocusAllowed"),gl=A((function(e){var t;return Boolean(e&&(null===(t=cl(e))||void 0===t?void 0:t.focusGuard))}),"isGuard"),vl=A((function(e){return!gl(e)}),"isNotAGuard"),yl=A((function(e){return Boolean(e)}),"isDefined"),bl=A((function(e,t){var n=e.tabIndex-t.tabIndex,r=e.index-t.index;if(n){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return n||r}),"tabSort"),El=A((function(e,t,n){return tl(e).map((function(e,t){return{node:e,index:t,tabIndex:n&&-1===e.tabIndex?(e.dataset||{}).focusGuard?0:-1:e.tabIndex}})).filter((function(e){return!t||e.tabIndex>=0})).sort(bl)}),"orderByTabIndex"),wl=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),kl="".concat(wl,", [data-focus-guard]"),Tl=A((function(e,t){var n;return tl((null===(n=e.shadowRoot)||void 0===n?void 0:n.children)||e.children).reduce((function(e,n){return e.concat(n.matches(t?kl:wl)?[n]:[],Tl(n))}),[])}),"getFocusablesWithShadowDom"),xl=A((function(e,t){return e.reduce((function(e,n){return e.concat(Tl(n,t),n.parentNode?tl(n.parentNode.querySelectorAll(wl)).filter((function(e){return e===n})):[])}),[])}),"getFocusables"),Cl=A((function(e){var t=e.querySelectorAll("[".concat("data-autofocus-inside","]"));return tl(t).map((function(e){return xl([e])})).reduce((function(e,t){return e.concat(t)}),[])}),"getParentAutofocusables"),Sl=A((function(e,t){return tl(e).filter((function(e){return sl(t,e)})).filter((function(e){return hl(e)}))}),"filterFocusable"),Nl=A((function(e,t){return void 0===t&&(t=new Map),tl(e).filter((function(e){return ul(t,e)}))}),"filterAutoFocusable"),_l=A((function(e,t,n){return El(Sl(xl(e,n),t),!0,n)}),"getTabbableNodes"),Ol=A((function(e,t){return El(Sl(xl(e),t),!1)}),"getAllTabbableNodes"),Il=A((function(e,t){return Sl(Cl(e),t)}),"parentAutofocusables"),Al=A((function(e,t){return(e.shadowRoot?Al(e.shadowRoot,t):Object.getPrototypeOf(e).contains.call(e,t))||tl(e.children).some((function(e){return Al(e,t)}))}),"contains"),Dl=A((function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var i=r+1;i<n;i+=1){var o=e[r].compareDocumentPosition(e[i]);(o&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(i),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter((function(e,n){return!t.has(n)}))}),"filterNested"),Ll=A((function(e){return e.parentNode?Ll(e.parentNode):e}),"getTopParent"),Ml=A((function(e){return nl(e).filter(Boolean).reduce((function(e,t){var n=t.getAttribute(Os);return e.push.apply(e,n?Dl(tl(Ll(t).querySelectorAll("[".concat(Os,'="').concat(n,'"]:not([').concat(Is,'="disabled"])')))):[t]),e}),[])}),"getAllAffectedNodes"),Fl=A((function(e){return e.activeElement?e.activeElement.shadowRoot?Fl(e.activeElement.shadowRoot):e.activeElement:void 0}),"getNestedShadowActiveElement"),Rl=A((function(){return document.activeElement?document.activeElement.shadowRoot?Fl(document.activeElement.shadowRoot):document.activeElement:void 0}),"getActiveElement"),Pl=A((function(e){return e===document.activeElement}),"focusInFrame"),jl=A((function(e){return Boolean(tl(e.querySelectorAll("iframe")).some((function(e){return Pl(e)})))}),"focusInsideIframe"),Vl=A((function(e){var t=document&&Rl();return!(!t||t.dataset&&t.dataset.focusGuard)&&Ml(e).some((function(e){return Al(e,t)||jl(e)}))}),"focusInside"),Ul=A((function(){var e=document&&Rl();return!!e&&tl(document.querySelectorAll("[".concat("data-no-focus-lock","]"))).some((function(t){return Al(t,e)}))}),"focusIsHidden"),Bl=A((function(e,t){return t.filter(pl).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}),"findSelectedRadio"),$l=A((function(e,t){return pl(e)&&e.name?Bl(e,t):e}),"correctNode"),ql=A((function(e){var t=new Set;return e.forEach((function(n){return t.add($l(n,e))})),e.filter((function(e){return t.has(e)}))}),"correctNodes"),Hl=A((function(e){return e[0]&&e.length>1?$l(e[0],e):e[0]}),"pickFirstFocus"),zl=A((function(e,t){return e.length>1?e.indexOf($l(e[t],e)):t}),"pickFocusable"),Gl="NEW_FOCUS",Wl=A((function(e,t,n,r){var i=e.length,o=e[0],a=e[i-1],s=gl(n);if(!(n&&e.indexOf(n)>=0)){var l=void 0!==n?t.indexOf(n):-1,u=r?t.indexOf(r):l,c=r?e.indexOf(r):-1,d=l-u,f=t.indexOf(o),p=t.indexOf(a),h=ql(t),m=(void 0!==n?h.indexOf(n):-1)-(r?h.indexOf(r):l),g=zl(e,0),v=zl(e,i-1);return-1===l||-1===c?Gl:!d&&c>=0?c:l<=f&&s&&Math.abs(d)>1?v:l>=p&&s&&Math.abs(d)>1?g:d&&Math.abs(m)>1?c:l<=f?v:l>p?g:d?Math.abs(d)>1?c:(i+c+d)%i:void 0}}),"newFocus"),Yl=A((function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&Yl(e.parentNode.host||e.parentNode,t),t}),"getParents"),Kl=A((function(e,t){for(var n=Yl(e),r=Yl(t),i=0;i<n.length;i+=1){var o=n[i];if(r.indexOf(o)>=0)return o}return!1}),"getCommonParent"),Ql=A((function(e,t,n){var r=nl(e),i=nl(t),o=r[0],a=!1;return i.filter(Boolean).forEach((function(e){a=Kl(a||e,e)||a,n.filter(Boolean).forEach((function(e){var t=Kl(o,e);t&&(a=!a||Al(t,a)?t:Kl(t,a))}))})),a}),"getTopCommonParent"),Jl=A((function(e,t){return e.reduce((function(e,n){return e.concat(Il(n,t))}),[])}),"allParentAutofocusables"),Xl=A((function(e){return function(t){var n;return t.autofocus||!!(null===(n=cl(t))||void 0===n?void 0:n.autofocus)||e.indexOf(t)>=0}}),"findAutoFocused"),Zl=A((function(e,t){var n=new Map;return t.forEach((function(e){return n.set(e.node,e)})),e.map((function(e){return n.get(e)})).filter(yl)}),"reorderNodes"),eu=A((function(e,t){var n=document&&Rl(),r=Ml(e).filter(vl),i=Ql(n||e,e,r),o=new Map,a=Ol(r,o),s=_l(r,o).filter((function(e){var t=e.node;return vl(t)}));if(s[0]||(s=a)[0]){var l=Ol([i],o).map((function(e){return e.node})),u=Zl(l,s),c=u.map((function(e){return e.node})),d=Wl(c,l,n,t);if(d===Gl){var f=Nl(a.map((function(e){return e.node}))).filter(Xl(Jl(r,o)));return{node:f&&f.length?Hl(f):Hl(Nl(c))}}return void 0===d?d:u[d]}}),"getFocusMerge"),tu=A((function(e){var t=Ml(e).filter(vl),n=Ql(e,e,t),r=new Map,i=_l([n],r,!0),o=_l(t,r).filter((function(e){var t=e.node;return vl(t)})).map((function(e){return e.node}));return i.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:o.indexOf(t)>=0,guard:gl(t)}}))}),"getFocusabledIn"),nu=A((function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()}),"focusOn"),ru=0,iu=!1,ou=A((function(e,t,n){void 0===n&&(n={});var r=eu(e,t);if(!iu&&r){if(ru>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),iu=!0,void setTimeout((function(){iu=!1}),1);ru++,nu(r.node,n.focusOptions),ru--}}),"setFocus"),au=ou;function su(e){var t=window.setImmediate;void 0!==t?t(e):setTimeout(e,1)}A(su,"deferAction");var lu=A((function(){return document&&document.activeElement===document.body}),"focusOnBody"),uu=A((function(){return lu()||Ul()}),"isFreeFocus"),cu=null,du=null,fu=null,pu=!1,hu=A((function(){return!0}),"defaultWhitelist"),mu=A((function(e){return(cu.whiteList||hu)(e)}),"focusWhitelisted"),gu=A((function(e,t){fu={observerNode:e,portaledElement:t}}),"recordPortal"),vu=A((function(e){return fu&&fu.portaledElement===e}),"focusIsPortaledPair");function yu(e,t,n,r){var i=null,o=e;do{var a=r[o];if(a.guard)a.node.dataset.focusAutoGuard&&(i=a);else{if(!a.lockItem)break;if(o!==e)return;i=null}}while((o+=n)!==t);i&&(i.node.tabIndex=0)}A(yu,"autoGuard");var bu=A((function(e){return e&&"current"in e?e.current:e}),"extractRef"),Eu=A((function(e){return e?Boolean(pu):"meanwhile"===pu}),"focusWasOutside"),wu=A((function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))}),"checkInHost"),ku=A((function(e,t){return t.some((function(t){return wu(e,t,t)}))}),"withinHost"),Tu=A((function(){var e=!1;if(cu){var t=cu,n=t.observed,r=t.persistentFocus,i=t.autoFocus,o=t.shards,a=t.crossFrame,s=t.focusOptions,l=n||fu&&fu.portaledElement,u=document&&document.activeElement;if(l){var c=[l].concat(o.map(bu).filter(Boolean));if(u&&!mu(u)||(r||Eu(a)||!uu()||!du&&i)&&(l&&!(Vl(c)||u&&ku(u,c)||vu(u))&&(document&&!du&&u&&!i?(u.blur&&u.blur(),document.body.focus()):(e=au(c,du,{focusOptions:s}),fu={})),pu=!1,du=document&&document.activeElement),document){var d=document&&document.activeElement,f=tu(c),p=f.map((function(e){return e.node})).indexOf(d);p>-1&&(f.filter((function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),yu(p,f.length,1,f),yu(p,-1,-1,f))}}}return e}),"activateTrap"),xu=A((function(e){Tu()&&e&&(e.stopPropagation(),e.preventDefault())}),"onTrap"),Cu=A((function(){return su(Tu)}),"onBlur"),Su=A((function(e){var t=e.target,n=e.currentTarget;n.contains(t)||gu(n,t)}),"onFocus"),Nu=A((function(){return null}),"FocusWatcher"),_u=A((function(){pu="just",setTimeout((function(){pu="meanwhile"}),0)}),"onWindowBlur"),Ou=A((function(){document.addEventListener("focusin",xu),document.addEventListener("focusout",Cu),window.addEventListener("blur",_u)}),"attachHandler"),Iu=A((function(){document.removeEventListener("focusin",xu),document.removeEventListener("focusout",Cu),window.removeEventListener("blur",_u)}),"detachHandler");function Au(e){return e.filter((function(e){return!e.disabled}))}function Du(e){var t=e.slice(-1)[0];t&&!cu&&Ou();var n=cu,r=n&&t&&t.id===n.id;cu=t,n&&!r&&(n.onDeactivation(),e.filter((function(e){return e.id===n.id})).length||n.returnFocus(!t)),t?(du=null,r&&n.observed===t.observed||t.onActivation(),Tu(),su(Tu)):(Iu(),du=null)}A(Au,"reducePropsToState"),A(Du,"handleStateChangeOnClient"),Hs.assignSyncMedium(Su),zs.assignMedium(Cu),Gs.assignMedium((function(e){return e({moveFocusInside:au,focusInside:Vl})}));var Lu=el(Au,Du)(Nu),Mu=r.forwardRef(A((function(e,t){return r.createElement(Qs,Ss({sideCar:Lu,ref:t},e))}),"FocusLockUICombination")),Fu=Qs.propTypes||{};Fu.sideCar,Cs(Fu,["sideCar"]),Mu.propTypes={};var Ru=Mu,Pu="right-scroll-bar-position",ju="width-before-scroll-bar",Vu=Bs(),Uu=A((function(){}),"nothing"),Bu=r.forwardRef((function(e,t){var n=r.useRef(null),i=r.useState({onScrollCapture:Uu,onWheelCapture:Uu,onTouchMoveCapture:Uu}),o=i[0],a=i[1],s=e.forwardProps,l=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,h=e.noIsolation,m=e.inert,g=e.allowPinchZoom,v=e.as,y=void 0===v?"div":v,b=Rs(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),E=p,w=Ls([n,t]),k=Fs(Fs({},b),o);return r.createElement(r.Fragment,null,d&&r.createElement(E,{sideCar:Vu,removeScrollBar:c,shards:f,noIsolation:h,inert:m,setCallbacks:a,allowPinchZoom:!!g,lockRef:n}),s?r.cloneElement(r.Children.only(l),Fs(Fs({},k),{ref:w})):r.createElement(y,Fs({},k,{className:u,ref:w}),l))}));Bu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Bu.classNames={fullWidth:ju,zeroRight:Pu};var $u=A((function(){return n.nc}),"getNonce");function qu(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=$u();return t&&e.setAttribute("nonce",t),e}function Hu(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function zu(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}A(qu,"makeStyleTag"),A(Hu,"injectStyles"),A(zu,"insertStyleTag");var Gu=A((function(){var e=0,t=null;return{add:function(n){0==e&&(t=qu())&&(Hu(t,n),zu(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}}),"stylesheetSingleton"),Wu=A((function(){var e=Gu();return function(t,n){r.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])}}),"styleHookSingleton"),Yu=A((function(){var e=Wu();return A((function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}),"Sheet")}),"styleSingleton"),Ku={left:0,top:0,right:0,gap:0},Qu=A((function(e){return parseInt(e||"",10)||0}),"parse$1"),Ju=A((function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[Qu(n),Qu(r),Qu(i)]}),"getOffset"),Xu=A((function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Ku;var t=Ju(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}}),"getGapWidth"),Zu=Yu(),ec=A((function(e,t,n,r){var i=e.left,o=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Pu," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(ju," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Pu," .").concat(Pu," {\n right: 0 ").concat(r,";\n }\n \n .").concat(ju," .").concat(ju," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")}),"getStyles$2"),tc=A((function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,o=void 0===i?"margin":i,a=r.useMemo((function(){return Xu(o)}),[o]);return r.createElement(Zu,{styles:ec(a,!t,o,n?"":"!important")})}),"RemoveScrollBar"),nc=!1;if("undefined"!=typeof window)try{var rc=Object.defineProperty({},"passive",{get:function(){return nc=!0,!0}});window.addEventListener("test",rc,rc),window.removeEventListener("test",rc,rc)}catch(e){nc=!1}var ic=!!nc&&{passive:!1},oc=A((function(e){return"TEXTAREA"===e.tagName}),"alwaysContainsScroll"),ac=A((function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!oc(e)&&"visible"===n[t])}),"elementCanBeScrolled"),sc=A((function(e){return ac(e,"overflowY")}),"elementCouldBeVScrolled"),lc=A((function(e){return ac(e,"overflowX")}),"elementCouldBeHScrolled"),uc=A((function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),fc(e,n)){var r=pc(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1}),"locationCouldBeScrolled"),cc=A((function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}),"getVScrollVariables"),dc=A((function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}),"getHScrollVariables"),fc=A((function(e,t){return"v"===e?sc(t):lc(t)}),"elementCouldBeScrolled"),pc=A((function(e,t){return"v"===e?cc(t):dc(t)}),"getScrollVariables"),hc=A((function(e,t){return"h"===e&&"rtl"===t?-1:1}),"getDirectionFactor"),mc=A((function(e,t,n,r,i){var o=hc(e,window.getComputedStyle(t).direction),a=o*r,s=n.target,l=t.contains(s),u=!1,c=a>0,d=0,f=0;do{var p=pc(e,s),h=p[0],m=p[1]-p[2]-o*h;(h||m)&&fc(e,s)&&(d+=m,f+=h),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(c&&(i&&0===d||!i&&a>d)||!c&&(i&&0===f||!i&&-a>f))&&(u=!0),u}),"handleScroll"),gc=A((function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]}),"getTouchXY"),vc=A((function(e){return[e.deltaX,e.deltaY]}),"getDeltaXY"),yc=A((function(e){return e&&"current"in e?e.current:e}),"extractRef"),bc=A((function(e,t){return e[0]===t[0]&&e[1]===t[1]}),"deltaCompare"),Ec=A((function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")}),"generateStyle"),wc=0,kc=[];function Tc(e){var t=r.useRef([]),n=r.useRef([0,0]),i=r.useRef(),o=r.useState(wc++)[0],a=r.useState((function(){return Yu()}))[0],s=r.useRef(e);r.useEffect((function(){s.current=e}),[e]),r.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=Ps([e.lockRef.current],(e.shards||[]).map(yc),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=r.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var r,o=gc(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-o[0],u="deltaY"in e?e.deltaY:a[1]-o[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=uc(d,c);if(!f)return!0;if(f?r=d:(r="v"===d?"h":"v",f=uc(d,c)),!f)return!1;if(!i.current&&"changedTouches"in e&&(l||u)&&(i.current=r),!r)return!0;var p=i.current||r;return mc(p,t,e,"h"===p?l:u,!0)}),[]),u=r.useCallback((function(e){var n=e;if(kc.length&&kc[kc.length-1]===a){var r="deltaY"in n?vc(n):gc(n),i=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&bc(e.delta,r)}))[0];if(i&&i.should)n.cancelable&&n.preventDefault();else if(!i){var o=(s.current.shards||[]).map(yc).filter(Boolean).filter((function(e){return e.contains(n.target)}));(o.length>0?l(n,o[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),c=r.useCallback((function(e,n,r,i){var o={name:e,delta:n,target:r,should:i};t.current.push(o),setTimeout((function(){t.current=t.current.filter((function(e){return e!==o}))}),1)}),[]),d=r.useCallback((function(e){n.current=gc(e),i.current=void 0}),[]),f=r.useCallback((function(t){c(t.type,vc(t),t.target,l(t,e.lockRef.current))}),[]),p=r.useCallback((function(t){c(t.type,gc(t),t.target,l(t,e.lockRef.current))}),[]);r.useEffect((function(){return kc.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,ic),document.addEventListener("touchmove",u,ic),document.addEventListener("touchstart",d,ic),function(){kc=kc.filter((function(e){return e!==a})),document.removeEventListener("wheel",u,ic),document.removeEventListener("touchmove",u,ic),document.removeEventListener("touchstart",d,ic)}}),[]);var h=e.removeScrollBar,m=e.inert;return r.createElement(r.Fragment,null,m?r.createElement(a,{styles:Ec(o)}):null,h?r.createElement(tc,{gapMode:"margin"}):null)}A(Tc,"RemoveScrollSideCar");var xc=qs(Vu,Tc),Cc=r.forwardRef((function(e,t){return r.createElement(Bu,Fs({},e,{ref:t,sideCar:xc}))}));Cc.classNames=Bu.classNames;var Sc=Cc,Nc={exports:{}};function _c(){}function Oc(){}A(_c,"emptyFunction"),A(Oc,"emptyFunctionWithReset"),Oc.resetWarningCache=_c;var Ic=A((function(){function e(e,t,n,r,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}A(e,"shim"),e.isRequired=e,A(t,"getShim");var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Oc,resetWarningCache:_c};return n.PropTypes=n,n}),"factoryWithThrowingShims");Nc.exports=Ic();var Ac=Nc.exports;function Dc(){return Dc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dc.apply(this,arguments)}function Lc(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}A(Dc,"_extends$9"),A(Lc,"_objectWithoutPropertiesLoose$9");var Mc=["as","isOpen"],Fc=["allowPinchZoom","as","dangerouslyBypassFocusLock","dangerouslyBypassScrollLock","initialFocusRef","onClick","onDismiss","onKeyDown","onMouseDown","unstable_lockFocusAcrossFrames"],Rc=["as","onClick","onKeyDown"],Pc=["allowPinchZoom","initialFocusRef","isOpen","onDismiss"];Ac.bool,Ac.bool,Ac.bool,Ac.func;var jc=(0,r.forwardRef)(A((function(e,t){var n=e.as,i=void 0===n?"div":n,o=e.isOpen,a=void 0===o||o,s=Lc(e,Mc);return(0,r.useEffect)((function(){a?window.__REACH_DISABLE_TOOLTIPS=!0:window.requestAnimationFrame((function(){window.__REACH_DISABLE_TOOLTIPS=!1}))}),[a]),a?(0,r.createElement)(ps,{"data-reach-dialog-wrapper":""},(0,r.createElement)(Vc,Dc({ref:t,as:i},s))):null}),"DialogOverlay")),Vc=(0,r.forwardRef)(A((function(e,t){var n=e.allowPinchZoom,i=e.as,o=void 0===i?"div":i,a=e.dangerouslyBypassFocusLock,s=void 0!==a&&a,l=e.dangerouslyBypassScrollLock,u=void 0!==l&&l,c=e.initialFocusRef,d=e.onClick,f=e.onDismiss,p=void 0===f?ys:f,h=e.onKeyDown,m=e.onMouseDown,g=e.unstable_lockFocusAcrossFrames,v=Lc(e,Fc),y=(0,r.useRef)(null),b=(0,r.useRef)(null),E=Ts(b,t),w=(0,r.useCallback)((function(){c&&c.current&&c.current.focus()}),[c]);function k(e){y.current===e.target&&(e.stopPropagation(),p(e))}function T(e){"Escape"===e.key&&(e.stopPropagation(),p(e))}function x(e){y.current=e.target}return A(k,"handleClick"),A(T,"handleKeyDown"),A(x,"handleMouseDown"),(0,r.useEffect)((function(){return b.current?$c(b.current):void 0}),[]),(0,r.createElement)(Ru,{autoFocus:!0,returnFocus:!0,onActivation:w,disabled:s,crossFrame:null==g||g},(0,r.createElement)(Sc,{allowPinchZoom:n,enabled:!u},(0,r.createElement)(o,Dc({},v,{ref:E,"data-reach-dialog-overlay":"",onClick:xs(d,k),onKeyDown:xs(h,T),onMouseDown:xs(m,x)}))))}),"DialogInner")),Uc=(0,r.forwardRef)(A((function(e,t){var n=e.as,i=void 0===n?"div":n,o=e.onClick;e.onKeyDown;var a=Lc(e,Rc);return(0,r.createElement)(i,Dc({"aria-modal":"true",role:"dialog",tabIndex:-1},a,{ref:t,"data-reach-dialog-content":"",onClick:xs(o,(function(e){e.stopPropagation()}))}))}),"DialogContent")),Bc=(0,r.forwardRef)(A((function(e,t){var n=e.allowPinchZoom,i=void 0!==n&&n,o=e.initialFocusRef,a=e.isOpen,s=e.onDismiss,l=void 0===s?ys:s,u=Lc(e,Pc);return(0,r.createElement)(jc,{allowPinchZoom:i,initialFocusRef:o,isOpen:a,onDismiss:l},(0,r.createElement)(Uc,Dc({ref:t},u)))}),"Dialog"));function $c(e){var t=[],n=[],r=hs(e);return e?(Array.prototype.forEach.call(r.querySelectorAll("body > *"),(function(r){var i,o;if(r!==(null==(i=e.parentNode)||null==(o=i.parentNode)?void 0:o.parentNode)){var a=r.getAttribute("aria-hidden");null!==a&&"false"!==a||(t.push(a),n.push(r),r.setAttribute("aria-hidden","true"))}})),function(){n.forEach((function(e,n){var r=t[n];null===r?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r)}))}):ys}function qc(){return qc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qc.apply(this,arguments)}function Hc(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}A($c,"createAriaHider"),A(qc,"_extends$8"),A(Hc,"_objectWithoutPropertiesLoose$8");var zc=["as","style"],Gc=(0,r.forwardRef)(A((function(e,t){var n=e.as,i=void 0===n?"span":n,o=e.style,a=void 0===o?{}:o,s=Hc(e,zc);return(0,r.createElement)(i,qc({ref:t,style:qc({border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},a)},s))}),"VisuallyHidden")),Wc=Object.defineProperty;const Yc=A(((e,t)=>Wc(e,"name",{value:t,configurable:!0})),"__name$D")(((e,t)=>Object.entries(t).reduce(((e,[t,n])=>(e[t]=n,e)),e)),"createComponentGroup"),Kc=(0,r.forwardRef)(((e,t)=>(0,E.jsx)(Bc,I(O({},e),{ref:t}))));Kc.displayName="Dialog";const Qc=(0,r.forwardRef)(((e,t)=>(0,E.jsxs)(is,I(O({},e),{ref:t,type:"button",className:M("graphiql-dialog-close",e.className),children:[(0,E.jsx)(Gc,{children:"Close dialog"}),(0,E.jsx)(Aa,{})]}))));Qc.displayName="Dialog.Close";const Jc=Yc(Kc,{Close:Qc});var Xc=!1,Zc=0;function ed(){return++Zc}function td(e){var t;if("function"==typeof r.useId){var n=(0,r.useId)(e);return null!=e?e:n}var i=null!=e?e:Xc?ed():null,o=(0,r.useState)(i),a=o[0],s=o[1];return ls((function(){null===a&&s(ed())}),[]),(0,r.useEffect)((function(){!1===Xc&&(Xc=!0)}),[]),null!=(t=null!=e?e:a)?t:void 0}A(ed,"genId"),A(td,"useId");var nd,rd=["bottom","height","left","right","top","width"],id=A((function(e,t){return void 0===e&&(e={}),void 0===t&&(t={}),rd.some((function(n){return e[n]!==t[n]}))}),"rectChanged"),od=new Map,ad=A((function e(){var t=[];od.forEach((function(e,n){var r=n.getBoundingClientRect();id(r,e.rect)&&(e.rect=r,t.push(e))})),t.forEach((function(e){e.callbacks.forEach((function(t){return t(e.rect)}))})),nd=window.requestAnimationFrame(e)}),"run");function sd(e,t){return{observe:A((function(){var n=0===od.size;od.has(e)?od.get(e).callbacks.push(t):od.set(e,{rect:void 0,hasRectChanged:!1,callbacks:[t]}),n&&ad()}),"observe"),unobserve:A((function(){var n=od.get(e);if(n){var r=n.callbacks.indexOf(t);r>=0&&n.callbacks.splice(r,1),n.callbacks.length||od.delete(e),od.size||cancelAnimationFrame(nd)}}),"unobserve")}}function ld(e,t,n){var i,o,a;ms(t)?i=t:(i=null==(a=null==t?void 0:t.observe)||a,o=null==t?void 0:t.onChange),gs(n)&&(o=n);var s=(0,r.useState)(e.current),l=s[0],u=s[1],c=(0,r.useRef)(!1),d=(0,r.useRef)(!1),f=(0,r.useState)(null),p=f[0],h=f[1],m=(0,r.useRef)(o);return ls((function(){m.current=o,e.current!==l&&u(e.current)})),ls((function(){l&&!c.current&&(c.current=!0,h(l.getBoundingClientRect()))}),[l]),ls((function(){if(i){var t=l;if(d.current||(d.current=!0,t=e.current),t){var n=sd(t,(function(e){null==m.current||m.current(e),h(e)}));return n.observe(),function(){n.unobserve()}}}}),[i,l,e]),p}A(sd,"observeRect"),A(ld,"useRect");var ud=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],cd=ud.join(","),dd="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function fd(e,t){t=t||{};var n,r,i,o=[],a=[],s=e.querySelectorAll(cd);for(t.includeContainer&&dd.call(e,cd)&&(s=Array.prototype.slice.apply(s)).unshift(e),n=0;n<s.length;n++)pd(r=s[n])&&(0===(i=yd(r))?o.push(r):a.push({documentOrder:n,tabIndex:i,node:r}));return a.sort(bd).map((function(e){return e.node})).concat(o)}function pd(e){return!(!md(e)||xd(e)||yd(e)<0)}function hd(e){if(!e)throw new Error("No node provided");return!1!==dd.call(e,cd)&&pd(e)}function md(e){return!(e.disabled||kd(e)||Nd(e))}A(fd,"tabbable"),fd.isTabbable=hd,fd.isFocusable=vd,A(pd,"isNodeMatchingSelectorTabbable"),A(hd,"isTabbable"),A(md,"isNodeMatchingSelectorFocusable");var gd=ud.concat("iframe").join(",");function vd(e){if(!e)throw new Error("No node provided");return!1!==dd.call(e,gd)&&md(e)}function yd(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?Ed(e)?0:e.tabIndex:t}function bd(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function Ed(e){return"true"===e.contentEditable}function wd(e){return"INPUT"===e.tagName}function kd(e){return wd(e)&&"hidden"===e.type}function Td(e){return wd(e)&&"radio"===e.type}function xd(e){return Td(e)&&!Sd(e)}function Cd(e){for(var t=0;t<e.length;t++)if(e[t].checked)return e[t]}function Sd(e){if(!e.name)return!0;var t=Cd(e.ownerDocument.querySelectorAll('input[type="radio"][name="'+e.name+'"]'));return!t||t===e}function Nd(e){return null===e.offsetParent||"hidden"===getComputedStyle(e).visibility}A(vd,"isFocusable"),A(yd,"getTabindex"),A(bd,"sortOrderedTabbables"),A(Ed,"isContentEditable"),A(wd,"isInput"),A(kd,"isHiddenInput"),A(Td,"isRadio"),A(xd,"isNonTabbableRadio"),A(Cd,"getCheckedRadio"),A(Sd,"isTabbableRadio"),A(Nd,"isHidden");var _d=fd;function Od(){return Od=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Od.apply(this,arguments)}function Id(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}A(Od,"_extends$7"),A(Id,"_objectWithoutPropertiesLoose$7");var Ad=["unstable_skipInitialPortalRender"],Dd=["as","targetRef","position","unstable_observableRefs"],Ld=(0,r.forwardRef)(A((function(e,t){var n=e.unstable_skipInitialPortalRender,i=Id(e,Ad);return(0,r.createElement)(ps,{unstable_skipInitialRender:n},(0,r.createElement)(Md,Od({ref:t},i)))}),"Popover")),Md=(0,r.forwardRef)(A((function(e,t){var n=e.as,i=void 0===n?"div":n,o=e.targetRef,a=e.position,s=void 0===a?Pd:a,l=e.unstable_observableRefs,u=void 0===l?[]:l,c=Id(e,Dd),d=(0,r.useRef)(null),f=ld(d,{observe:!c.hidden}),p=ld(o,{observe:!c.hidden}),h=Ts(d,t);return Ud(o,d),(0,r.createElement)(i,Od({"data-reach-popover":"",ref:h},c,{style:Od({position:"absolute"},Fd.apply(void 0,[s,p,f].concat(u)),c.style)}))}),"PopoverImpl"));function Fd(e,t,n){for(var r=arguments.length,i=new Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];return n?e.apply(void 0,[t,n].concat(i.map((function(e){return e.current})))):{visibility:"hidden"}}function Rd(e,t,n){return{top:n?e.top-t.height+window.pageYOffset+"px":e.top+e.height+window.pageYOffset+"px"}}A(Fd,"getStyles$1"),A(Rd,"getTopPosition");var Pd=A((function(e,t){if(!e||!t)return{};var n=Vd(e,t),r=n.directionRight,i=n.directionUp;return Od({left:r?e.right-t.width+window.pageXOffset+"px":e.left+window.pageXOffset+"px"},Rd(e,t,i))}),"positionDefault"),jd=A((function(e,t){if(!e||!t)return{};var n=Vd(e,t).directionUp;return Od({width:e.width,left:e.left},Rd(e,t,n))}),"positionMatchWidth");function Vd(e,t,n,r){void 0===n&&(n=0),void 0===r&&(r=0);var i={top:e.top-t.height<0,right:window.innerWidth<e.left+t.width-n,bottom:window.innerHeight<e.bottom+t.height-r,left:e.left+e.width-t.width<0};return{directionRight:i.right&&!i.left,directionLeft:i.left&&!i.right,directionUp:i.bottom&&!i.top,directionDown:i.top&&!i.bottom}}function Ud(e,t){var n=hs(e.current);function i(e){"Tab"===e.key&&t.current&&0===_d(t.current).length||("Tab"===e.key&&e.shiftKey?c(e)?d(e):f(e)?p(e):m(e)&&v():"Tab"===e.key&&(a()?s(e):l()?u(e):h(e)&&v()))}function o(){var r=_d(n),i=r&&e.current?r.indexOf(e.current):-1,o=r&&r[i+1];return(!t.current||!t.current.contains(o||null))&&o}function a(){return!!e.current&&e.current===n.activeElement}function s(e){var n=t.current&&_d(t.current);n&&n[0]&&(e.preventDefault(),n[0].focus())}function l(){if(t.current&&t.current.contains(n.activeElement||null)){var e=t.current&&_d(t.current);return Boolean(e&&e[e.length-1]===n.activeElement)}return!1}function u(e){var t=o();t&&(e.preventDefault(),t.focus())}function c(e){if(e.shiftKey){var t=o();return e.target===t}}function d(e){var n=t.current&&_d(t.current),r=n&&n[n.length-1];r&&(e.preventDefault(),r.focus())}function f(e){var n=t.current&&_d(t.current);return!!n&&0!==n.length&&e.target===n[0]}function p(t){var n;t.preventDefault(),null==(n=e.current)||n.focus()}function h(e){var r=t.current?_d(n).filter((function(e){return!t.current.contains(e)})):null;return!!r&&e.target===r[r.length-1]}function m(e){return e.target===_d(n)[0]}A(i,"handleKeyDown"),(0,r.useEffect)((function(){return n.addEventListener("keydown",i),function(){n.removeEventListener("keydown",i)}}),[]),A(o,"getElementAfterTrigger"),A(a,"tabbedFromTriggerToPopover"),A(s,"focusFirstPopoverTabbable"),A(l,"tabbedOutOfPopover"),A(u,"focusTabbableAfterTrigger"),A(c,"shiftTabbedFromElementAfterTrigger"),A(d,"focusLastTabbableInPopover"),A(f,"shiftTabbedOutOfPopover"),A(p,"focusTriggerRef"),A(h,"tabbedToBrowserChrome"),A(m,"shiftTabbedToBrowserChrome");var g=[];function v(){var e=t.current&&_d(t.current);e&&(e.forEach((function(e){g.push([e,e.tabIndex]),e.tabIndex=-1})),n.addEventListener("focusin",y))}function y(){n.removeEventListener("focusin",y),g.forEach((function(e){var t=e[0],n=e[1];t.tabIndex=n}))}A(v,"disableTabbablesInPopover"),A(y,"enableTabbablesInPopover")}function Bd(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function $d(){return $d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$d.apply(this,arguments)}A(Vd,"getCollisions"),A(Ud,"useSimulateTabNavigationForReactTree"),A(Bd,"_objectWithoutPropertiesLoose$6"),A($d,"_extends$6");var qd=["element","index"];function Hd(e,t){return void 0===t&&(t={}),(0,r.createContext)($d({descendants:[],registerDescendant:ys,unregisterDescendant:ys},t))}function zd(e,t,n){var i=us(),o=(0,r.useContext)(t),a=o.registerDescendant,s=o.unregisterDescendant,l=o.descendants,u=null!=n?n:l.findIndex((function(t){return t.element===e.element}));return ls((function(){return e.element||i(),a($d({},e,{index:u})),function(){s(e.element)}}),[e,i,u,a,s].concat(Object.values(e))),u}function Gd(){return(0,r.useState)([])}function Wd(e){return(0,r.useContext)(e).descendants}function Yd(e){var t=e.context,n=e.children,i=e.items,o=e.set,a=(0,r.useCallback)((function(e){var t=e.element,n=e.index,r=Bd(e,qd);t&&o((function(e){var i;if(null!=n)return[].concat(e,[$d({},r,{element:t,index:n})]).sort((function(e,t){return e.index-t.index}));if(0===e.length)i=[$d({},r,{element:t,index:0})];else if(e.find((function(e){return e.element===t})))i=e;else{var o=e.findIndex((function(e){return!(!e.element||!t)&&Boolean(e.element.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)})),a=$d({},r,{element:t,index:o});i=-1===o?[].concat(e,[a]):[].concat(e.slice(0,o),[a],e.slice(o))}return i.map((function(e,t){return $d({},e,{index:t})}))}))}),[]),s=(0,r.useCallback)((function(e){e&&o((function(t){return t.filter((function(t){return e!==t.element}))}))}),[]);return(0,r.createElement)(t.Provider,{value:(0,r.useMemo)((function(){return{descendants:i,registerDescendant:a,unregisterDescendant:s}}),[i,a,s])},n)}function Kd(e,t){var n=(0,r.useContext)(e).descendants,i=t.callback,o=t.currentIndex,a=t.filter,s=t.key,l=void 0===s?"index":s,u=t.orientation,c=void 0===u?"vertical":u,d=t.rotate,f=void 0===d||d,p=t.rtl,h=void 0!==p&&p;return A((function(e){if(["ArrowDown","ArrowUp","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(e.key)){var t=null!=o?o:-1,r=a?n.filter(a):n;if(r.length){var s=r.findIndex((function(e){return e.index===o}));switch(A(E,"getNextOption"),A(w,"getPreviousOption"),A(k,"getFirstOption"),A(T,"getLastOption"),e.key){case"ArrowDown":if("vertical"===c||"both"===c){e.preventDefault();var u=E();i("option"===l?u:u[l])}break;case"ArrowUp":if("vertical"===c||"both"===c){e.preventDefault();var d=w();i("option"===l?d:d[l])}break;case"ArrowLeft":if("horizontal"===c||"both"===c){e.preventDefault();var p=(h?E:w)();i("option"===l?p:p[l])}break;case"ArrowRight":if("horizontal"===c||"both"===c){e.preventDefault();var m=(h?w:E)();i("option"===l?m:m[l])}break;case"PageUp":e.preventDefault();var g=(e.ctrlKey?w:k)();i("option"===l?g:g[l]);break;case"Home":e.preventDefault();var v=k();i("option"===l?v:v[l]);break;case"PageDown":e.preventDefault();var y=(e.ctrlKey?E:T)();i("option"===l?y:y[l]);break;case"End":e.preventDefault();var b=T();i("option"===l?b:b[l])}}}function E(){return t===T().index?f?k():r[s]:r[(s+1)%r.length]}function w(){return t===k().index?f?T():r[s]:r[(s-1+r.length)%r.length]}function k(){return r[0]}function T(){return r[r.length-1]}}),"handleKeyDown")}function Qd(e){return"which"in e?3===e.which:"button"in e&&2===e.button}function Jd(e,t){var n=(0,r.useRef)(t);return e((function(){n.current=t})),(0,r.useCallback)((function(){n.current&&n.current.apply(n,arguments)}),[])}function Xd(e){return Jd(r.useEffect,e)}function Zd(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}A(Hd,"createDescendantContext"),A(zd,"useDescendant"),A(Gd,"useDescendantsInit"),A(Wd,"useDescendants"),A(Yd,"DescendantProvider"),A(Kd,"useDescendantKeyDown"),A(Qd,"isRightClick"),A(Jd,"createStableCallbackHook"),A(Xd,"useStableCallback"),A(Zd,"_objectWithoutPropertiesLoose$5");var ef,tf,nf=["children"];function rf(e,t){return(0,r.createContext)(t)}function of(e,t){var n=(0,r.createContext)(t);function i(e){var t=e.children,i=Zd(e,nf),o=(0,r.useMemo)((function(){return i}),Object.values(i));return(0,r.createElement)(n.Provider,{value:o},t)}function o(i){var o=(0,r.useContext)(n);if(o)return o;if(t)return t;throw Error(i+" must be rendered inside of a "+e+" component.")}return A(i,"Provider"),A(o,"useContext$1"),[i,o]}function af(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return null!=e})).join("--")}function sf(e,t){var n=(0,r.useState)(t),i=n[0],o=n[1];return[i,(0,r.useCallback)((function(t){e.current=t,o(t)}),[])]}A(rf,"createNamedContext"),A(of,"createContext"),A(af,"makeId"),A(sf,"useStatefulRefValue"),(tf=ef||(ef={}))[tf.NotStarted=0]="NotStarted",tf[tf.Running=1]="Running",tf[tf.Stopped=2]="Stopped";var lf={type:"xstate.init"};function uf(e){return void 0===e?[]:[].concat(e)}function cf(e){return{type:"xstate.assign",assignment:e}}function df(e,t){return"string"==typeof(e="string"==typeof e&&t&&t[e]?t[e]:e)?{type:e}:"function"==typeof e?{type:e.name,exec:e}:e}function ff(e){return function(t){return e===t}}function pf(e){return"string"==typeof e?{type:e}:e}function hf(e,t){return{value:e,context:t,actions:[],changed:!1,matches:ff(e)}}function mf(e,t){void 0===t&&(t={});var n={config:e,_options:t,initialState:{value:e.initial,actions:uf(e.states[e.initial].entry).map((function(e){return df(e,t.actions)})),context:e.context,matches:ff(e.initial)},transition:function(t,r){var i,o,a="string"==typeof t?{value:t,context:e.context}:t,s=a.value,l=a.context,u=pf(r),c=e.states[s];if(c.on){var d=uf(c.on[u.type]),f=A((function(t){if(void 0===t)return{value:hf(s,l)};var r="string"==typeof t?{target:t}:t,i=r.target,o=void 0===i?s:i,a=r.actions,d=void 0===a?[]:a,f=r.cond,p=l;if((void 0===f?function(){return!0}:f)(l,u)){var h=e.states[o],m=!1,g=[].concat(c.exit,d,h.entry).filter((function(e){return e})).map((function(e){return df(e,n._options.actions)})).filter((function(e){if("xstate.assign"===e.type){m=!0;var t=Object.assign({},p);return"function"==typeof e.assignment?t=e.assignment(p,u):Object.keys(e.assignment).forEach((function(n){t[n]="function"==typeof e.assignment[n]?e.assignment[n](p,u):e.assignment[n]})),p=t,!1}return!0}));return{value:{value:o,context:p,actions:g,changed:o!==s||g.length>0||m,matches:ff(o)}}}}),"x");try{for(var p=function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}(d),h=p.next();!h.done;h=p.next()){var m=f(h.value);if("object"==typeof m)return m.value}}catch(e){i={error:e}}finally{try{h&&!h.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}}return hf(s,l)}};return n}A(uf,"e$1"),A(cf,"r$1"),A(df,"i$1"),A(ff,"o"),A(pf,"a"),A(hf,"u"),A(mf,"c$1");var gf=A((function(e,t){return e.actions.forEach((function(n){var r=n.exec;return r&&r(e.context,t)}))}),"s");function vf(e){var t=e.initialState,n=ef.NotStarted,r=new Set,i={_machine:e,send:function(i){n===ef.Running&&(t=e.transition(t,i),gf(t,pf(i)),r.forEach((function(e){return e(t)})))},subscribe:function(e){return r.add(e),e(t),{unsubscribe:function(){return r.delete(e)}}},start:function(){return n=ef.Running,gf(t,lf),i},stop:function(){return n=ef.Stopped,r.clear(),i},get state(){return t},get status(){return n}};return i}function yf(e){var t=(0,r.useRef)();return t.current||(t.current={v:e()}),t.current.v}function bf(){return bf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bf.apply(this,arguments)}A(vf,"f$1"),A(yf,"useConstant"),A(bf,"_extends$5");var Ef,wf,kf,Tf,xf,Cf=A((function(e){var t;return e.subscribe((function(e){t=e})).unsubscribe(),t}),"getServiceState");function Sf(e,t,n){var i=(0,r.useRef)(e),o=yf((function(){return vf(i.current).start()})),a=(0,r.useRef)(null),s=(0,r.useState)((function(){return Cf(o)})),l=s[0],u=s[1],c=(0,r.useCallback)((function(e){var n=vs(e)?{type:e}:e,r=Nf(t);o.send(bf({},n,{lastEventType:a.current,refs:r})),a.current=n.type}),[n]);return(0,r.useEffect)((function(){return o.subscribe(A((function(e){e.changed&&u(e)}),"setStateIfChanged")),function(){o.stop()}}),[o]),(0,r.useEffect)((function(){}),[n,l]),[(0,r.useMemo)((function(){return bf({},l,{matches:A((function(e){return e===l.value}),"matches")})}),[l.changed,l.context,l.value]),c,o]}function Nf(e){return Object.entries(e).reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r.current,e}),{})}function _f(e,t){return yf((function(){return mf(e,t)}))}function Of(){return Of=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Of.apply(this,arguments)}function If(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}A(Sf,"useMachine"),A(Nf,"unwrapRefs"),A(_f,"useCreateMachine"),A(Of,"_extends$4"),A(If,"_objectWithoutPropertiesLoose$4"),(kf=wf||(wf={})).Idle="IDLE",kf.Open="OPEN",kf.Navigating="NAVIGATING",kf.Dragging="DRAGGING",kf.Interacting="INTERACTING",(xf=Tf||(Tf={})).ButtonMouseDown="BUTTON_MOUSE_DOWN",xf.ButtonMouseUp="BUTTON_MOUSE_UP",xf.Blur="BLUR",xf.ClearNavSelection="CLEAR_NAV_SELECTION",xf.ClearTypeahead="CLEAR_TYPEAHEAD",xf.GetDerivedData="GET_DERIVED_DATA",xf.KeyDownEscape="KEY_DOWN_ESCAPE",xf.KeyDownEnter="KEY_DOWN_ENTER",xf.KeyDownSpace="KEY_DOWN_SPACE",xf.KeyDownNavigate="KEY_DOWN_NAVIGATE",xf.KeyDownSearch="KEY_DOWN_SEARCH",xf.KeyDownTab="KEY_DOWN_TAB",xf.KeyDownShiftTab="KEY_DOWN_SHIFT_TAB",xf.OptionTouchStart="OPTION_TOUCH_START",xf.OptionMouseMove="OPTION_MOUSE_MOVE",xf.OptionMouseEnter="OPTION_MOUSE_ENTER",xf.OptionMouseDown="OPTION_MOUSE_DOWN",xf.OptionMouseUp="OPTION_MOUSE_UP",xf.OptionClick="OPTION_CLICK",xf.ListMouseUp="LIST_MOUSE_UP",xf.OptionPress="OPTION_PRESS",xf.OutsideMouseDown="OUTSIDE_MOUSE_DOWN",xf.OutsideMouseUp="OUTSIDE_MOUSE_UP",xf.ValueChange="VALUE_CHANGE",xf.PopoverPointerDown="POPOVER_POINTER_DOWN",xf.PopoverPointerUp="POPOVER_POINTER_UP",xf.UpdateAfterTypeahead="UPDATE_AFTER_TYPEAHEAD";var Af=cf({navigationValue:null}),Df=cf({typeaheadQuery:null}),Lf=cf({value:A((function(e,t){return t.value}),"value")}),Mf=cf({navigationValue:A((function(e,t){return t.value}),"navigationValue")}),Ff=cf({navigationValue:A((function(e){var t,n=Zf(e.value,e.options);return n&&!n.disabled?e.value:(null==(t=e.options.find((function(e){return!e.disabled})))?void 0:t.value)||null}),"navigationValue")});function Rf(e,t){if(t.type===Tf.Blur){var n=t.refs,r=n.list,i=n.popover,o=t.relatedTarget,a=hs(i);return!((null==a?void 0:a.activeElement)===r||!i||i.contains(o||(null==a?void 0:a.activeElement)))}return!1}function Pf(e,t){if(t.type===Tf.OutsideMouseDown||t.type===Tf.OutsideMouseUp){var n=t.refs,r=n.button,i=n.popover,o=t.relatedTarget;return!(o===r||!r||r.contains(o)||!i||i.contains(o))}return!1}function jf(e,t){return!!e.options.find((function(t){return t.value===e.navigationValue}))}function Vf(e,t){var n=t.refs,r=n.popover,i=n.list,o=t.relatedTarget;return!(r&&o&&r.contains(o)&&o!==i)&&jf(e)}function Uf(e,t){requestAnimationFrame((function(){t.refs.list&&t.refs.list.focus()}))}function Bf(e,t){t.refs.button&&t.refs.button.focus()}function $f(e,t){return!t.disabled}function qf(e,t){return t.type!==Tf.OptionTouchStart||!t||!t.disabled}function Hf(e,t){return!("disabled"in t&&t.disabled||("value"in t?null==t.value:null==e.navigationValue))}function zf(e,t){t.callback&&t.callback(t.value)}function Gf(e,t){if(t.type===Tf.KeyDownEnter){var n=t.refs.hiddenInput;if(n&&n.form){var r=n.form.querySelector("button:not([type]),[type='submit']");r&&r.click()}}}A(Rf,"listboxLostFocus"),A(Pf,"clickedOutsideOfListbox"),A(jf,"optionIsActive"),A(Vf,"shouldNavigate"),A(Uf,"focusList"),A(Bf,"focusButton"),A($f,"listboxIsNotDisabled"),A(qf,"optionIsNavigable"),A(Hf,"optionIsSelectable"),A(zf,"selectOption"),A(Gf,"submitForm");var Wf=cf({typeaheadQuery:A((function(e,t){return(e.typeaheadQuery||"")+t.query}),"typeaheadQuery")}),Yf=cf({value:A((function(e,t){if(t.type===Tf.UpdateAfterTypeahead&&t.query){var n=Xf(e.options,t.query);if(n&&!n.disabled)return t.callback&&t.callback(n.value),n.value}return e.value}),"value")}),Kf=cf({navigationValue:A((function(e,t){if(t.type===Tf.UpdateAfterTypeahead&&t.query){var n=Xf(e.options,t.query);if(n&&!n.disabled)return n.value}return e.navigationValue}),"navigationValue")}),Qf=((Ef={})[Tf.GetDerivedData]={actions:cf((function(e,t){return Of({},e,t.data)}))},Ef[Tf.ValueChange]={actions:[Lf,zf]},Ef),Jf=A((function(e){var t,n,r,i,o,a,s=e.value;return{id:"listbox",initial:wf.Idle,context:{value:s,options:[],navigationValue:null,typeaheadQuery:null},states:(a={},a[wf.Idle]={on:Of({},Qf,(t={},t[Tf.ButtonMouseDown]={target:wf.Open,actions:[Ff],cond:$f},t[Tf.KeyDownSpace]={target:wf.Navigating,actions:[Ff,Uf],cond:$f},t[Tf.KeyDownSearch]={target:wf.Idle,actions:Wf,cond:$f},t[Tf.UpdateAfterTypeahead]={target:wf.Idle,actions:[Yf],cond:$f},t[Tf.ClearTypeahead]={target:wf.Idle,actions:Df},t[Tf.KeyDownNavigate]={target:wf.Navigating,actions:[Ff,Df,Uf],cond:$f},t[Tf.KeyDownEnter]={actions:[Gf],cond:$f},t))},a[wf.Interacting]={entry:[Af],on:Of({},Qf,(n={},n[Tf.ClearNavSelection]={actions:[Af,Uf]},n[Tf.KeyDownEnter]={target:wf.Idle,actions:[Lf,Df,Bf,zf],cond:Hf},n[Tf.KeyDownSpace]={target:wf.Idle,actions:[Lf,Df,Bf,zf],cond:Hf},n[Tf.ButtonMouseDown]={target:wf.Idle,actions:[Bf]},n[Tf.KeyDownEscape]={target:wf.Idle,actions:[Bf]},n[Tf.OptionMouseDown]={target:wf.Dragging},n[Tf.OutsideMouseDown]=[{target:wf.Idle,cond:Pf,actions:Df},{target:wf.Dragging,actions:Df,cond:jf}],n[Tf.OutsideMouseUp]=[{target:wf.Idle,cond:Pf,actions:Df},{target:wf.Navigating,cond:jf},{target:wf.Interacting,actions:Df}],n[Tf.KeyDownEnter]=wf.Interacting,n[Tf.Blur]=[{target:wf.Idle,cond:Rf,actions:Df},{target:wf.Navigating,cond:Vf},{target:wf.Interacting,actions:Df}],n[Tf.OptionTouchStart]={target:wf.Navigating,actions:[Mf,Df],cond:qf},n[Tf.OptionClick]={target:wf.Idle,actions:[Lf,Df,Bf,zf],cond:Hf},n[Tf.OptionPress]={target:wf.Idle,actions:[Lf,Df,Bf,zf],cond:Hf},n[Tf.OptionMouseEnter]={target:wf.Navigating,actions:[Mf,Df],cond:qf},n[Tf.KeyDownNavigate]={target:wf.Navigating,actions:[Mf,Df,Uf]},n))},a[wf.Open]={on:Of({},Qf,(r={},r[Tf.ClearNavSelection]={actions:[Af]},r[Tf.KeyDownEnter]={target:wf.Idle,actions:[Lf,Df,Bf,zf],cond:Hf},r[Tf.KeyDownSpace]={target:wf.Idle,actions:[Lf,Df,Bf,zf],cond:Hf},r[Tf.ButtonMouseDown]={target:wf.Idle,actions:[Bf]},r[Tf.KeyDownEscape]={target:wf.Idle,actions:[Bf]},r[Tf.OptionMouseDown]={target:wf.Dragging},r[Tf.OutsideMouseDown]=[{target:wf.Idle,cond:Pf,actions:Df},{target:wf.Dragging,cond:jf},{target:wf.Interacting,actions:Df}],r[Tf.OutsideMouseUp]=[{target:wf.Idle,cond:Pf,actions:Df},{target:wf.Navigating,cond:jf},{target:wf.Interacting,actions:Df}],r[Tf.Blur]=[{target:wf.Idle,cond:Rf,actions:Df},{target:wf.Navigating,cond:Vf},{target:wf.Interacting,actions:Df}],r[Tf.ButtonMouseUp]={target:wf.Navigating,actions:[Ff,Uf]},r[Tf.ListMouseUp]={target:wf.Navigating,actions:[Ff,Uf]},r[Tf.OptionTouchStart]={target:wf.Navigating,actions:[Mf,Df],cond:qf},r[Tf.OptionClick]={target:wf.Idle,actions:[Lf,Df,Bf,zf],cond:Hf},r[Tf.OptionPress]={target:wf.Idle,actions:[Lf,Df,Bf,zf],cond:Hf},r[Tf.KeyDownNavigate]={target:wf.Navigating,actions:[Mf,Df,Uf]},r[Tf.KeyDownSearch]={target:wf.Navigating,actions:Wf},r[Tf.UpdateAfterTypeahead]={actions:[Kf]},r[Tf.ClearTypeahead]={actions:Df},r[Tf.OptionMouseMove]=[{target:wf.Dragging,actions:[Mf],cond:qf},{target:wf.Dragging}],r))},a[wf.Dragging]={on:Of({},Qf,(i={},i[Tf.ClearNavSelection]={actions:[Af]},i[Tf.KeyDownEnter]={target:wf.Idle,actions:[Lf,Df,Bf,zf],cond:Hf},i[Tf.KeyDownSpace]={target:wf.Idle,actions:[Lf,Df,Bf,zf],cond:Hf},i[Tf.ButtonMouseDown]={target:wf.Idle,actions:[Bf]},i[Tf.KeyDownEscape]={target:wf.Idle,actions:[Bf]},i[Tf.OptionMouseDown]={target:wf.Dragging},i[Tf.OutsideMouseDown]=[{target:wf.Idle,cond:Pf,actions:Df},{target:wf.Navigating,cond:jf},{target:wf.Interacting,actions:Df}],i[Tf.OutsideMouseUp]=[{target:wf.Idle,cond:Pf,actions:Df},{target:wf.Navigating,cond:jf,actions:Uf},{target:wf.Interacting,actions:[Df,Uf]}],i[Tf.Blur]=[{target:wf.Idle,cond:Rf,actions:Df},{target:wf.Navigating,cond:Vf},{target:wf.Interacting,actions:Df}],i[Tf.ButtonMouseUp]={target:wf.Navigating,actions:[Ff,Uf]},i[Tf.OptionTouchStart]={target:wf.Navigating,actions:[Mf,Df],cond:qf},i[Tf.OptionClick]={target:wf.Idle,actions:[Lf,Df,Bf,zf],cond:Hf},i[Tf.OptionPress]={target:wf.Idle,actions:[Lf,Df,Bf,zf],cond:Hf},i[Tf.OptionMouseEnter]={target:wf.Dragging,actions:[Mf,Df],cond:qf},i[Tf.KeyDownNavigate]={target:wf.Navigating,actions:[Mf,Df,Uf]},i[Tf.KeyDownSearch]={target:wf.Navigating,actions:Wf},i[Tf.UpdateAfterTypeahead]={actions:[Kf]},i[Tf.ClearTypeahead]={actions:Df},i[Tf.OptionMouseMove]=[{target:wf.Navigating,actions:[Mf],cond:qf},{target:wf.Navigating}],i[Tf.OptionMouseUp]={target:wf.Idle,actions:[Lf,Df,Bf,zf],cond:Hf},i))},a[wf.Navigating]={on:Of({},Qf,(o={},o[Tf.ClearNavSelection]={actions:[Af,Uf]},o[Tf.KeyDownEnter]={target:wf.Idle,actions:[Lf,Df,Bf,zf],cond:Hf},o[Tf.KeyDownSpace]={target:wf.Idle,actions:[Lf,Df,Bf,zf],cond:Hf},o[Tf.ButtonMouseDown]={target:wf.Idle,actions:[Bf]},o[Tf.KeyDownEscape]={target:wf.Idle,actions:[Bf]},o[Tf.OptionMouseDown]={target:wf.Dragging},o[Tf.OutsideMouseDown]=[{target:wf.Idle,cond:Pf,actions:Df},{target:wf.Navigating,cond:jf},{target:wf.Interacting,actions:Df}],o[Tf.OutsideMouseUp]=[{target:wf.Idle,cond:Pf,actions:Df},{target:wf.Navigating,cond:jf},{target:wf.Interacting,actions:Df}],o[Tf.Blur]=[{target:wf.Idle,cond:Rf,actions:Df},{target:wf.Navigating,cond:Vf},{target:wf.Interacting,actions:Df}],o[Tf.ButtonMouseUp]={target:wf.Navigating,actions:[Ff,Uf]},o[Tf.OptionTouchStart]={target:wf.Navigating,actions:[Mf,Df],cond:qf},o[Tf.OptionClick]={target:wf.Idle,actions:[Lf,Df,Bf,zf],cond:Hf},o[Tf.OptionPress]={target:wf.Idle,actions:[Lf,Df,Bf,zf],cond:Hf},o[Tf.OptionMouseEnter]={target:wf.Navigating,actions:[Mf,Df],cond:qf},o[Tf.KeyDownNavigate]={target:wf.Navigating,actions:[Mf,Df,Uf]},o[Tf.KeyDownSearch]={target:wf.Navigating,actions:Wf},o[Tf.UpdateAfterTypeahead]={actions:[Kf]},o[Tf.ClearTypeahead]={actions:Df},o[Tf.OptionMouseMove]=[{target:wf.Navigating,actions:[Mf],cond:qf},{target:wf.Navigating}],o))},a)}}),"createMachineDefinition");function Xf(e,t){return void 0===t&&(t=""),t&&e.find((function(e){return!e.disabled&&e.label&&e.label.toLowerCase().startsWith(t.toLowerCase())}))||null}function Zf(e,t){return e?t.find((function(t){return t.value===e})):void 0}A(Xf,"findOptionFromTypeahead"),A(Zf,"findOptionFromValue");var ep=["as","aria-labelledby","aria-label","children","defaultValue","disabled","form","name","onChange","required","value","__componentName"],tp=["arrow","button","children","portal"],np=["aria-label","arrow","as","children","onKeyDown","onMouseDown","onMouseUp"],rp=["as","children"],ip=["as","position","onBlur","onKeyDown","onMouseUp","portal","unstable_observableRefs"],op=["as"],ap=["as","children","disabled","index","label","onClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseUp","onTouchStart","value"],sp=Hd(),lp=rf(0,{}),up=(0,r.forwardRef)(A((function(e,t){var n=e.as,i=void 0===n?"div":n,o=e["aria-labelledby"],a=e["aria-label"],s=e.children,l=e.defaultValue,u=e.disabled,c=void 0!==u&&u,d=e.form,f=e.name,p=e.onChange,h=e.required,m=e.value;e.__componentName;var g=If(e,ep),v=(0,r.useRef)(null!=m),y=Gd(),b=y[0],E=y[1],w=(0,r.useRef)(null),k=(0,r.useRef)(null),T=(0,r.useRef)(null),x=(0,r.useRef)(null),C=(0,r.useRef)(null),S=(0,r.useRef)(null),N=(0,r.useRef)(null),_=Sf(_f(Jf({value:(v.current?m:l)||null})),{button:w,hiddenInput:k,highlightedOption:T,input:x,list:C,popover:S,selectedOption:N},!1),O=_[0],I=_[1];function D(e){e!==O.context.value&&(null==p||p(e))}A(D,"handleValueChange");var L=td(g.id),M=g.id||af("listbox-input",L),F=Ts(x,t),R=(0,r.useMemo)((function(){var e=b.find((function(e){return e.value===O.context.value}));return e?e.label:null}),[b,O.context.value]),P=bp(O.value),j={ariaLabel:a,ariaLabelledBy:o,buttonRef:w,disabled:c,highlightedOptionRef:T,isExpanded:P,listboxId:M,listboxValueLabel:R,listRef:C,onValueChange:D,popoverRef:S,selectedOptionRef:N,send:I,state:O.value,stateData:O.context},V=(0,r.useRef)(!1);if(!v.current&&null==l&&!V.current&&b.length){V.current=!0;var U=b.find((function(e){return!e.disabled}));U&&U.value&&I({type:Tf.ValueChange,value:U.value})}return Tp(m,O.context.value,(function(){I({type:Tf.ValueChange,value:m})})),ls((function(){I({type:Tf.GetDerivedData,data:{options:b}})}),[b,I]),(0,r.useEffect)((function(){function e(e){var t=e.target,n=e.relatedTarget;kp(S.current,t)||I({type:Tf.OutsideMouseDown,relatedTarget:n||t})}return A(e,"handleMouseDown"),P&&window.addEventListener("mousedown",e),function(){window.removeEventListener("mousedown",e)}}),[I,P]),(0,r.useEffect)((function(){function e(e){var t=e.target,n=e.relatedTarget;kp(S.current,t)||I({type:Tf.OutsideMouseUp,relatedTarget:n||t})}return A(e,"handleMouseUp"),P&&window.addEventListener("mouseup",e),function(){window.removeEventListener("mouseup",e)}}),[I,P]),(0,r.createElement)(i,Of({},g,{ref:F,"data-reach-listbox-input":"","data-state":P?"expanded":"closed","data-value":O.context.value,id:M}),(0,r.createElement)(lp.Provider,{value:j},(0,r.createElement)(Yd,{context:sp,items:b,set:E},gs(s)?s({id:M,isExpanded:P,value:O.context.value,selectedOptionRef:N,highlightedOptionRef:T,valueLabel:R,expanded:P}):s,(d||f||h)&&(0,r.createElement)("input",{ref:k,"data-reach-listbox-hidden-input":"",disabled:c,form:d,name:f,readOnly:!0,required:h,tabIndex:-1,type:"hidden",value:O.context.value||""}))))}),"ListboxInput")),cp=(0,r.forwardRef)(A((function(e,t){var n=e.arrow,i=void 0===n?"▼":n,o=e.button,a=e.children,s=e.portal,l=void 0===s||s,u=If(e,tp);return(0,r.createElement)(up,Of({},u,{__componentName:"Listbox",ref:t}),(function(e){var t=e.value,n=e.valueLabel;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(fp,{arrow:i,children:o?gs(o)?o({value:t,label:n}):o:void 0}),(0,r.createElement)(gp,{portal:l},(0,r.createElement)(vp,null,a)))}))}),"Listbox")),dp=(0,r.forwardRef)(A((function(e,t){var n=e["aria-label"],i=e.arrow,o=void 0!==i&&i,a=e.as,s=void 0===a?"span":a,l=e.children,u=e.onKeyDown,c=e.onMouseDown,d=e.onMouseUp,f=If(e,np),p=(0,r.useContext)(lp),h=p.buttonRef,m=p.send,g=p.ariaLabelledBy,v=p.disabled,y=p.isExpanded,b=p.listboxId,E=p.stateData,w=p.listboxValueLabel,k=E.value,T=Ts(h,t),x=Ep();function C(e){Qd(e.nativeEvent)||(e.preventDefault(),e.stopPropagation(),m({type:Tf.ButtonMouseDown,disabled:v}))}function S(e){Qd(e.nativeEvent)||(e.preventDefault(),e.stopPropagation(),m({type:Tf.ButtonMouseUp}))}A(C,"handleMouseDown"),A(S,"handleMouseUp");var N=af("button",b),_=(0,r.useMemo)((function(){return l?gs(l)?l({isExpanded:y,label:w,value:k,expanded:y}):l:w}),[l,w,y,k]);return(0,r.createElement)(s,Of({"aria-disabled":v||void 0,"aria-expanded":y||void 0,"aria-haspopup":"listbox","aria-labelledby":n?void 0:[g,N].filter(Boolean).join(" "),"aria-label":n,role:"button",tabIndex:v?-1:0},f,{ref:T,"data-reach-listbox-button":"",id:N,onKeyDown:xs(u,x),onMouseDown:xs(c,C),onMouseUp:xs(d,S)}),_,o&&(0,r.createElement)(hp,null,ms(o)?null:o))}),"ListboxButton")),fp=(0,r.memo)(dp),pp=(0,r.forwardRef)(A((function(e,t){var n=e.as,i=void 0===n?"span":n,o=e.children,a=If(e,rp),s=(0,r.useContext)(lp).isExpanded;return(0,r.createElement)(i,Of({"aria-hidden":!0},a,{ref:t,"data-reach-listbox-arrow":"","data-expanded":s?"":void 0}),gs(o)?o({isExpanded:s,expanded:s}):o||"▼")}),"ListboxArrow")),hp=(0,r.memo)(pp),mp=(0,r.forwardRef)(A((function(e,t){var n=e.as,i=void 0===n?"div":n,o=e.position,a=void 0===o?jd:o,s=e.onBlur,l=e.onKeyDown,u=e.onMouseUp,c=e.portal,d=void 0===c||c,f=e.unstable_observableRefs,p=If(e,ip),h=(0,r.useContext)(lp),m=h.isExpanded,g=h.buttonRef,v=h.popoverRef,y=h.send,b=Ts(v,t),E=Ep();function w(){y({type:Tf.ListMouseUp})}A(w,"handleMouseUp");var k=Of({hidden:!m,tabIndex:-1},p,{ref:b,"data-reach-listbox-popover":"",onMouseUp:xs(u,w),onBlur:xs(s,T),onKeyDown:xs(l,E)});function T(e){var t=e.nativeEvent;requestAnimationFrame((function(){y({type:Tf.Blur,relatedTarget:t.relatedTarget||t.target})}))}return A(T,"handleBlur"),d?(0,r.createElement)(Ld,Of({},k,{as:i,targetRef:g,position:a,unstable_observableRefs:f,unstable_skipInitialPortalRender:!0})):(0,r.createElement)(i,k)}),"ListboxPopover")),gp=(0,r.memo)(mp),vp=(0,r.forwardRef)(A((function(e,t){var n=e.as,i=void 0===n?"ul":n,o=If(e,op),a=(0,r.useContext)(lp),s=a.listRef,l=a.ariaLabel,u=a.ariaLabelledBy,c=a.isExpanded,d=a.listboxId,f=a.stateData,p=f.value,h=f.navigationValue,m=Ts(t,s);return(0,r.createElement)(i,Of({"aria-activedescendant":wp(c?h:p),"aria-labelledby":l?void 0:u,"aria-label":l,role:"listbox",tabIndex:-1},o,{ref:m,"data-reach-listbox-list":"",id:af("listbox",d)}))}),"ListboxList")),yp=(0,r.forwardRef)(A((function(e,t){var n=e.as,i=void 0===n?"li":n,o=e.children,a=e.disabled,s=e.index,l=e.label,u=e.onClick,c=e.onMouseDown,d=e.onMouseEnter,f=e.onMouseLeave,p=e.onMouseMove,h=e.onMouseUp,m=e.onTouchStart,g=e.value,v=If(e,ap),y=(0,r.useContext)(lp),b=y.highlightedOptionRef,E=y.selectedOptionRef,w=y.send,k=y.isExpanded,T=y.onValueChange,x=y.state,C=y.stateData,S=C.value,N=C.navigationValue,_=(0,r.useState)(l),O=_[0],I=_[1],D=l||O||"",L=sf((0,r.useRef)(null),null),M=L[0],F=L[1];zd((0,r.useMemo)((function(){return{element:M,value:g,label:D,disabled:!!a}}),[a,M,D,g]),sp,s);var R=(0,r.useCallback)((function(e){!l&&e&&I((function(t){return e.textContent&&t!==e.textContent?e.textContent:t||""}))}),[l]),P=!!N&&N===g,j=S===g,V=Ts(R,t,F,j?E:null,P?b:null);function U(){w({type:Tf.OptionMouseEnter,value:g,disabled:!!a})}function B(){w({type:Tf.OptionTouchStart,value:g,disabled:!!a})}function $(){w({type:Tf.ClearNavSelection})}function q(e){Qd(e.nativeEvent)||(e.preventDefault(),w({type:Tf.OptionMouseDown}))}function H(e){Qd(e.nativeEvent)||w({type:Tf.OptionMouseUp,value:g,callback:T,disabled:!!a})}function z(e){Qd(e.nativeEvent)||w({type:Tf.OptionClick,value:g,callback:T,disabled:!!a})}function G(){x!==wf.Open&&N===g||w({type:Tf.OptionMouseMove,value:g,disabled:!!a})}return A(U,"handleMouseEnter"),A(B,"handleTouchStart"),A($,"handleMouseLeave"),A(q,"handleMouseDown"),A(H,"handleMouseUp"),A(z,"handleClick"),A(G,"handleMouseMove"),(0,r.createElement)(i,Of({"aria-selected":(k?P:j)||void 0,"aria-disabled":a||void 0,role:"option"},v,{ref:V,id:wp(g),"data-reach-listbox-option":"","data-current-nav":P?"":void 0,"data-current-selected":j?"":void 0,"data-label":D,"data-value":g,onClick:xs(u,z),onMouseDown:xs(c,q),onMouseEnter:xs(d,U),onMouseLeave:xs(f,$),onMouseMove:xs(p,G),onMouseUp:xs(h,H),onTouchStart:xs(m,B)}),o)}),"ListboxOption"));function bp(e){return[wf.Navigating,wf.Open,wf.Dragging,wf.Interacting].includes(e)}function Ep(){var e=(0,r.useContext)(lp),t=e.send,n=e.disabled,i=e.onValueChange,o=e.stateData,a=o.navigationValue,s=o.typeaheadQuery,l=Wd(sp),u=Xd(i);(0,r.useEffect)((function(){s&&t({type:Tf.UpdateAfterTypeahead,query:s,callback:u});var e=window.setTimeout((function(){null!=s&&t({type:Tf.ClearTypeahead})}),1e3);return function(){window.clearTimeout(e)}}),[u,t,s]);var c=l.findIndex((function(e){return e.value===a}));return xs((function(e){var r=e.key,o=vs(r)&&1===r.length,s=l.find((function(e){return e.value===a}));switch(r){case"Enter":return void t({type:Tf.KeyDownEnter,value:a,callback:i,disabled:!!(null!=s&&s.disabled||n)});case" ":return e.preventDefault(),void t({type:Tf.KeyDownSpace,value:a,callback:i,disabled:!!(null!=s&&s.disabled||n)});case"Escape":return void t({type:Tf.KeyDownEscape});case"Tab":var u=e.shiftKey?Tf.KeyDownShiftTab:Tf.KeyDownTab;return void t({type:u});default:return void(o&&t({type:Tf.KeyDownSearch,query:r,disabled:n}))}}),Kd(sp,{currentIndex:c,orientation:"vertical",key:"index",rotate:!0,filter:A((function(e){return!e.disabled}),"filter"),callback:A((function(e){t({type:Tf.KeyDownNavigate,value:l[e].value,disabled:n})}),"callback")}))}function wp(e){var t=(0,r.useContext)(lp).listboxId;return e?af("option-"+e,t):void 0}function kp(e,t){return!(!e||!e.contains(t))}function Tp(e,t,n){(0,r.useRef)(null!=e).current&&e!==t&&n()}function xp(e){var t=(0,r.useRef)(null);return(0,r.useEffect)((function(){t.current=e}),[e]),t.current}function Cp(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function Sp(){return Sp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sp.apply(this,arguments)}A(bp,"isListboxExpanded"),A(Ep,"useKeyDown$1"),A(wp,"useOptionId"),A(kp,"popoverContainsEventTarget$1"),A(Tp,"useControlledStateSync"),A(xp,"usePrevious"),A(Cp,"_objectWithoutPropertiesLoose$3"),A(Sp,"_extends$3");var Np=["onKeyDown","onMouseDown","id","ref"],_p=["index","isLink","onClick","onDragStart","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseUp","onSelect","disabled","onFocus","valueText","ref"],Op=["id","onKeyDown","ref"],Ip=["onBlur","portal","position","ref"],Ap="CLEAR_SELECTION_INDEX",Dp="CLICK_MENU_ITEM",Lp="CLOSE_MENU",Mp="OPEN_MENU_AT_INDEX",Fp="OPEN_MENU_CLEARED",Rp="SEARCH_FOR_ITEM",Pp="SELECT_ITEM_AT_INDEX",jp="SET_BUTTON_ID",Vp=Hd(),Up=of("Dropdown"),Bp=Up[0],$p=Up[1],qp={triggerId:null,isExpanded:!1,typeaheadQuery:"",selectionIndex:-1},Hp=A((function(e){var t=e.id,n=e.children,i=(0,r.useRef)(null),o=(0,r.useRef)(null),a=(0,r.useRef)(null),s=Gd(),l=s[0],u=s[1],c=td(t),d=t||af("menu",c),f=af("menu-button",d),p=(0,r.useReducer)(Zp,Sp({},qp,{triggerId:f})),h=p[0],m=p[1],g=(0,r.useRef)(!1),v=(0,r.useRef)([]),y=(0,r.useRef)(!1),b=(0,r.useRef)({x:0,y:0});return(0,r.useEffect)((function(){h.isExpanded?(window.__REACH_DISABLE_TOOLTIPS=!0,window.requestAnimationFrame((function(){Jp(o.current)}))):window.__REACH_DISABLE_TOOLTIPS=!1}),[h.isExpanded]),(0,r.createElement)(Yd,{context:Vp,items:l,set:u},(0,r.createElement)(Bp,{dispatch:m,dropdownId:d,dropdownRef:o,mouseDownStartPosRef:b,popoverRef:a,readyToSelect:y,selectCallbacks:v,state:h,triggerClickedRef:g,triggerRef:i},gs(n)?n({isExpanded:h.isExpanded,isOpen:h.isExpanded}):n))}),"DropdownProvider_");function zp(e){var t=e.onKeyDown,n=e.onMouseDown,i=e.id,o=e.ref,a=Cp(e,Np),s=$p("useDropdownTrigger"),l=s.dispatch,u=s.dropdownId,c=s.mouseDownStartPosRef,d=s.triggerClickedRef,f=s.triggerRef,p=s.state,h=p.triggerId,m=p.isExpanded,g=Ts(f,o),v=eh(),y=(0,r.useMemo)((function(){return v.findIndex((function(e){return!e.disabled}))}),[v]);function b(e){switch(e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),l({type:Mp,payload:{index:y}});break;case"Enter":case" ":l({type:Mp,payload:{index:y}})}}function E(e){Qd(e.nativeEvent)||(c.current={x:e.clientX,y:e.clientY},m||(d.current=!0),l(m?{type:Lp}:{type:Fp}))}return(0,r.useEffect)((function(){null!=i&&i!==h&&l({type:jp,payload:i})}),[h,l,i]),A(b,"handleKeyDown"),A(E,"handleMouseDown"),{data:{isExpanded:m,controls:u},props:Sp({},a,{ref:g,id:h||void 0,onKeyDown:xs(t,b),onMouseDown:xs(n,E),type:"button"})}}function Gp(e){var t=e.index,n=e.isLink,i=void 0!==n&&n,o=e.onClick,a=e.onDragStart,s=e.onMouseDown,l=e.onMouseEnter,u=e.onMouseLeave,c=e.onMouseMove,d=e.onMouseUp,f=e.onSelect,p=e.disabled,h=e.onFocus,m=e.valueText,g=e.ref,v=Cp(e,_p),y=$p("useDropdownItem"),b=y.dispatch,E=y.dropdownRef,w=y.mouseDownStartPosRef,k=y.readyToSelect,T=y.selectCallbacks,x=y.triggerRef,C=y.state,S=C.selectionIndex,N=C.isExpanded,_=(0,r.useRef)(null),O=(0,r.useState)(m||""),I=O[0],D=O[1],L=(0,r.useCallback)((function(e){!m&&null!=e&&e.textContent&&D(e.textContent)}),[m]),M=(0,r.useRef)(!1),F=sf(_,null),R=F[0],P=F[1],j=zd((0,r.useMemo)((function(){return{element:R,key:I,disabled:p,isLink:i}}),[p,R,i,I]),Vp,t),V=j===S&&!p,U=Ts(g,P,L);function B(){Jp(x.current),f&&f(),b({type:Dp})}function $(e){Qd(e.nativeEvent)||i&&(p?e.preventDefault():B())}function q(e){i&&e.preventDefault()}function H(e){Qd(e.nativeEvent)||(i?M.current=!0:e.preventDefault())}function z(e){var t=hs(E.current);V||null==j||p||(null!=E&&E.current&&E.current!==t.activeElement&&_.current!==t.activeElement&&E.current.focus(),b({type:Pp,payload:{index:j}}))}function G(e){b({type:Ap})}function W(e){if(!k.current){var t=Math.abs(e.clientX-w.current.x),n=Math.abs(e.clientY-w.current.y);(t>8||n>8)&&(k.current=!0)}V||null==j||p||b({type:Pp,payload:{index:j,dropdownRef:E}})}function Y(){k.current=!0,V||null==j||p||b({type:Pp,payload:{index:j}})}function K(e){Qd(e.nativeEvent)||(k.current?i?M.current?M.current=!1:_.current&&_.current.click():p||B():k.current=!0)}return T.current[j]=f,A(B,"select"),A($,"handleClick"),A(q,"handleDragStart"),A(H,"handleMouseDown"),A(z,"handleMouseEnter"),A(G,"handleMouseLeave"),A(W,"handleMouseMove"),A(Y,"handleFocus"),A(K,"handleMouseUp"),(0,r.useEffect)((function(){if(N){var e=window.setTimeout((function(){k.current=!0}),400);return function(){window.clearTimeout(e)}}k.current=!1}),[N,k]),(0,r.useEffect)((function(){var e=hs(_.current);return e.addEventListener("mouseup",t),function(){e.removeEventListener("mouseup",t)};function t(){M.current=!1}}),[]),{data:{disabled:p},props:Sp({id:Qp(j),tabIndex:-1},v,{ref:U,"data-disabled":p?"":void 0,"data-selected":V?"":void 0,"data-valuetext":I,onClick:xs(o,$),onDragStart:xs(a,q),onMouseDown:xs(s,H),onMouseEnter:xs(l,z),onMouseLeave:xs(u,G),onMouseMove:xs(c,W),onFocus:xs(h,Y),onMouseUp:xs(d,K)})}}function Wp(e){e.id;var t=e.onKeyDown,n=e.ref,i=Cp(e,Op),o=$p("useDropdownItems"),a=o.dispatch,s=o.triggerRef,l=o.dropdownRef,u=o.selectCallbacks,c=o.dropdownId,d=o.state,f=d.isExpanded,p=d.triggerId,h=d.selectionIndex,m=d.typeaheadQuery,g=eh(),v=Ts(l,n);(0,r.useEffect)((function(){var e=Kp(g,m);m&&null!=e&&a({type:Pp,payload:{index:e,dropdownRef:l}});var t=window.setTimeout((function(){return m&&a({type:Rp,payload:""})}),1e3);return function(){return window.clearTimeout(t)}}),[a,g,m,l]);var y=xp(g.length),b=xp(g[h]),E=xp(h);(0,r.useEffect)((function(){h>g.length-1?a({type:Pp,payload:{index:g.length-1,dropdownRef:l}}):y!==g.length&&h>-1&&b&&E===h&&g[h]!==b&&a({type:Pp,payload:{index:g.findIndex((function(e){return e.key===(null==b?void 0:b.key)})),dropdownRef:l}})}),[l,a,g,y,b,E,h]);var w=xs(A((function(e){var t=e.key;if(f)switch(t){case"Enter":case" ":var n=g.find((function(e){return e.index===h}));n&&!n.disabled&&(e.preventDefault(),n.isLink&&n.element?n.element.click():(Jp(s.current),u.current[n.index]&&u.current[n.index](),a({type:Dp})));break;case"Escape":Jp(s.current),a({type:Lp});break;case"Tab":e.preventDefault();break;default:if(vs(t)&&1===t.length){var r=m+t.toLowerCase();a({type:Rp,payload:r})}}}),"handleKeyDown"),Kd(Vp,{currentIndex:h,orientation:"vertical",rotate:!1,filter:A((function(e){return!e.disabled}),"filter"),callback:A((function(e){a({type:Pp,payload:{index:e,dropdownRef:l}})}),"callback"),key:"index"}));return{data:{activeDescendant:Qp(h)||void 0,triggerId:p},props:Sp({tabIndex:-1},i,{ref:v,id:c,onKeyDown:xs(t,w)})}}function Yp(e){var t=e.onBlur,n=e.portal,i=void 0===n||n,o=e.position,a=e.ref,s=Cp(e,Ip),l=$p("useDropdownPopover"),u=l.triggerRef,c=l.triggerClickedRef,d=l.dispatch,f=l.dropdownRef,p=l.popoverRef,h=l.state.isExpanded,m=Ts(p,a);return(0,r.useEffect)((function(){if(h){var e=hs(p.current);return A(t,"listener"),e.addEventListener("mousedown",t),function(){e.removeEventListener("mousedown",t)}}function t(e){c.current?c.current=!1:Xp(p.current,e.target)||d({type:Lp})}}),[c,u,d,f,p,h]),{data:{portal:i,position:o,targetRef:u,isExpanded:h},props:Sp({ref:m,hidden:!h,onBlur:xs(t,(function(e){e.currentTarget.contains(e.relatedTarget)||d({type:Lp})}))},s)}}function Kp(e,t){if(void 0===t&&(t=""),!t)return null;var n=e.find((function(e){var n,r,i;return!e.disabled&&(null==(n=e.element)||null==(r=n.dataset)||null==(i=r.valuetext)?void 0:i.toLowerCase().startsWith(t))}));return n?e.indexOf(n):null}function Qp(e){var t=$p("useItemId").dropdownId;return null!=e&&e>-1?af("option-"+e,t):void 0}function Jp(e){e&&e.focus()}function Xp(e,t){return!(!e||!e.contains(t))}function Zp(e,t){switch(void 0===t&&(t={}),t.type){case Dp:case Lp:return Sp({},e,{isExpanded:!1,selectionIndex:-1});case"OPEN_MENU_AT_FIRST_ITEM":return Sp({},e,{isExpanded:!0,selectionIndex:0});case Mp:return Sp({},e,{isExpanded:!0,selectionIndex:t.payload.index});case Fp:return Sp({},e,{isExpanded:!0,selectionIndex:-1});case Pp:var n=t.payload.dropdownRef,r=void 0===n?{current:null}:n;if(t.payload.index>=0&&t.payload.index!==e.selectionIndex){if(r.current){var i=hs(r.current);r.current!==(null==i?void 0:i.activeElement)&&r.current.focus()}return Sp({},e,{selectionIndex:null!=t.payload.max?Math.min(Math.max(t.payload.index,0),t.payload.max):Math.max(t.payload.index,0)})}return e;case Ap:return Sp({},e,{selectionIndex:-1});case jp:return Sp({},e,{triggerId:t.payload});case Rp:return void 0!==t.payload?Sp({},e,{typeaheadQuery:t.payload}):e;default:return e}}function eh(){return Wd(Vp)}A(zp,"useDropdownTrigger"),A(Gp,"useDropdownItem"),A(Wp,"useDropdownItems"),A(Yp,"useDropdownPopover"),A(Kp,"findItemFromTypeahead"),A(Qp,"useItemId"),A(Jp,"focus"),A(Xp,"popoverContainsEventTarget"),A(Zp,"reducer$1"),A(eh,"useDropdownDescendants");var th={exports:{}},nh={},rh="function"==typeof Symbol&&Symbol.for,ih=rh?Symbol.for("react.element"):60103,oh=rh?Symbol.for("react.portal"):60106,ah=rh?Symbol.for("react.fragment"):60107,sh=rh?Symbol.for("react.strict_mode"):60108,lh=rh?Symbol.for("react.profiler"):60114,uh=rh?Symbol.for("react.provider"):60109,ch=rh?Symbol.for("react.context"):60110,dh=rh?Symbol.for("react.async_mode"):60111,fh=rh?Symbol.for("react.concurrent_mode"):60111,ph=rh?Symbol.for("react.forward_ref"):60112,hh=rh?Symbol.for("react.suspense"):60113,mh=rh?Symbol.for("react.suspense_list"):60120,gh=rh?Symbol.for("react.memo"):60115,vh=rh?Symbol.for("react.lazy"):60116,yh=rh?Symbol.for("react.block"):60121,bh=rh?Symbol.for("react.fundamental"):60117,Eh=rh?Symbol.for("react.responder"):60118,wh=rh?Symbol.for("react.scope"):60119;function kh(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case ih:switch(e=e.type){case dh:case fh:case ah:case lh:case sh:case hh:return e;default:switch(e=e&&e.$$typeof){case ch:case ph:case vh:case gh:case uh:return e;default:return t}}case oh:return t}}}function Th(e){return kh(e)===fh}function xh(){return xh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xh.apply(this,arguments)}function Ch(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}A(kh,"z"),A(Th,"A"),nh.AsyncMode=dh,nh.ConcurrentMode=fh,nh.ContextConsumer=ch,nh.ContextProvider=uh,nh.Element=ih,nh.ForwardRef=ph,nh.Fragment=ah,nh.Lazy=vh,nh.Memo=gh,nh.Portal=oh,nh.Profiler=lh,nh.StrictMode=sh,nh.Suspense=hh,nh.isAsyncMode=function(e){return Th(e)||kh(e)===dh},nh.isConcurrentMode=Th,nh.isContextConsumer=function(e){return kh(e)===ch},nh.isContextProvider=function(e){return kh(e)===uh},nh.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===ih},nh.isForwardRef=function(e){return kh(e)===ph},nh.isFragment=function(e){return kh(e)===ah},nh.isLazy=function(e){return kh(e)===vh},nh.isMemo=function(e){return kh(e)===gh},nh.isPortal=function(e){return kh(e)===oh},nh.isProfiler=function(e){return kh(e)===lh},nh.isStrictMode=function(e){return kh(e)===sh},nh.isSuspense=function(e){return kh(e)===hh},nh.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===ah||e===fh||e===lh||e===sh||e===hh||e===mh||"object"==typeof e&&null!==e&&(e.$$typeof===vh||e.$$typeof===gh||e.$$typeof===uh||e.$$typeof===ch||e.$$typeof===ph||e.$$typeof===bh||e.$$typeof===Eh||e.$$typeof===wh||e.$$typeof===yh)},nh.typeOf=kh,th.exports=nh,A(xh,"_extends$2"),A(Ch,"_objectWithoutPropertiesLoose$2");var Sh=["as","id","children"],Nh=["as"],_h=["as"],Oh=["as"],Ih=["as"],Ah=["portal"],Dh=["as"],Lh=(0,r.forwardRef)((function(e,t){var n=e.as,i=void 0===n?r.Fragment:n,o=e.id,a=e.children,s=Ch(e,Sh),l=(0,r.useMemo)((function(){try{return th.exports.isFragment((0,r.createElement)(i,null))}catch(e){return!1}}),[i])?{}:xh({ref:t,id:o,"data-reach-menu":""},s);return(0,r.createElement)(i,l,(0,r.createElement)(Hp,{id:o,children:a}))})),Mh=(0,r.forwardRef)((function(e,t){var n=e.as,i=void 0===n?"button":n,o=zp(xh({},Ch(e,Nh),{ref:t})),a=o.data,s=a.isExpanded,l=a.controls,u=o.props;return(0,r.createElement)(i,xh({"aria-expanded":!!s||void 0,"aria-haspopup":!0,"aria-controls":l},u,{"data-reach-menu-button":""}))})),Fh=(0,r.forwardRef)((function(e,t){var n=e.as,i=void 0===n?"div":n,o=Gp(xh({},Ch(e,_h),{ref:t})),a=o.data.disabled,s=o.props;return(0,r.createElement)(i,xh({role:"menuitem"},s,{"aria-disabled":a||void 0,"data-reach-menu-item":""}))})),Rh=(0,r.forwardRef)((function(e,t){var n=e.as,i=void 0===n?"div":n,o=Ch(e,Oh);return(0,r.createElement)(Fh,xh({},o,{ref:t,as:i}))})),Ph=(0,r.forwardRef)((function(e,t){var n=e.as,i=void 0===n?"div":n,o=Wp(xh({},Ch(e,Ih),{ref:t})),a=o.data,s=a.activeDescendant,l=a.triggerId,u=o.props;return(0,r.createElement)(i,xh({"aria-activedescendant":s,"aria-labelledby":l||void 0,role:"menu"},u,{"data-reach-menu-items":""}))})),jh=(0,r.forwardRef)((function(e,t){var n=e.portal,i=void 0===n||n,o=Ch(e,Ah);return(0,r.createElement)(Vh,{portal:i},(0,r.createElement)(Ph,xh({},o,{ref:t,"data-reach-menu-list":""})))})),Vh=(0,r.forwardRef)((function(e,t){var n=e.as,i=void 0===n?"div":n,o=Yp(xh({},Ch(e,Dh),{ref:t})),a=o.data,s=a.portal,l=a.targetRef,u=a.position,c=o.props,d={"data-reach-menu-popover":""};return s?(0,r.createElement)(Ld,xh({},c,d,{as:i,targetRef:l,position:u,unstable_skipInitialPortalRender:!0})):(0,r.createElement)(i,xh({},c,d))}));const Uh=(0,r.forwardRef)(((e,t)=>(0,E.jsx)(Mh,I(O({},e),{ref:t,className:M("graphiql-un-styled",e.className)}))));Uh.displayName="MenuButton";const Bh=Yc(Lh,{Button:Uh,Item:Rh,List:jh}),$h=(0,r.forwardRef)(((e,t)=>(0,E.jsx)(fp,I(O({},e),{ref:t,className:M("graphiql-un-styled",e.className)}))));$h.displayName="ListboxButton";const qh=Yc(cp,{Button:$h,Input:up,Option:yp,Popover:gp});var Hh={},zh={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:"‌"},Gh=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Wh={},Yh={};function Kh(e){var t,n,r=Yh[e];if(r)return r;for(r=Yh[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)r[e.charCodeAt(t)]=e[t];return r}function Qh(e,t,n){var r,i,o,a,s,l="";for("string"!=typeof t&&(n=t,t=Qh.defaultChars),void 0===n&&(n=!0),s=Kh(t),r=0,i=e.length;r<i;r++)if(o=e.charCodeAt(r),n&&37===o&&r+2<i&&/^[0-9a-f]{2}$/i.test(e.slice(r+1,r+3)))l+=e.slice(r,r+3),r+=2;else if(o<128)l+=s[o];else if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&r+1<i&&(a=e.charCodeAt(r+1))>=56320&&a<=57343){l+=encodeURIComponent(e[r]+e[r+1]),r++;continue}l+="%EF%BF%BD"}else l+=encodeURIComponent(e[r]);return l}A(Kh,"getEncodeCache"),A(Qh,"encode$1"),Qh.defaultChars=";/?:@&=+$,-_.!~*'()#",Qh.componentChars="-_.!~*'()";var Jh=Qh,Xh={};function Zh(e){var t,n,r=Xh[e];if(r)return r;for(r=Xh[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),r.push(n);for(t=0;t<e.length;t++)r[n=e.charCodeAt(t)]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return r}function em(e,t){var n;return"string"!=typeof t&&(t=em.defaultChars),n=Zh(t),e.replace(/(%[a-f0-9]{2})+/gi,(function(e){var t,r,i,o,a,s,l,u="";for(t=0,r=e.length;t<r;t+=3)(i=parseInt(e.slice(t+1,t+3),16))<128?u+=n[i]:192==(224&i)&&t+3<r&&128==(192&(o=parseInt(e.slice(t+4,t+6),16)))?(u+=(l=i<<6&1984|63&o)<128?"��":String.fromCharCode(l),t+=3):224==(240&i)&&t+6<r&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),128==(192&o)&&128==(192&a))?(u+=(l=i<<12&61440|o<<6&4032|63&a)<2048||l>=55296&&l<=57343?"���":String.fromCharCode(l),t+=6):240==(248&i)&&t+9<r&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),s=parseInt(e.slice(t+10,t+12),16),128==(192&o)&&128==(192&a)&&128==(192&s))?((l=i<<18&1835008|o<<12&258048|a<<6&4032|63&s)<65536||l>1114111?u+="����":(l-=65536,u+=String.fromCharCode(55296+(l>>10),56320+(1023&l))),t+=9):u+="�";return u}))}A(Zh,"getDecodeCache"),A(em,"decode$1"),em.defaultChars=";/?:@&=+$,#",em.componentChars="";var tm=em,nm=A((function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",(t+=e.search||"")+(e.hash||"")}),"format");function rm(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}A(rm,"Url");var im=/^([a-z0-9.+-]+:)/i,om=/:[0-9]*$/,am=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,sm=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),lm=["'"].concat(sm),um=["%","/","?",";","#"].concat(lm),cm=["/","?","#"],dm=/^[+a-z0-9A-Z_-]{0,63}$/,fm=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,pm={javascript:!0,"javascript:":!0},hm={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function mm(e,t){if(e&&e instanceof rm)return e;var n=new rm;return n.parse(e,t),n}A(mm,"urlParse"),rm.prototype.parse=function(e,t){var n,r,i,o,a,s=e;if(s=s.trim(),!t&&1===e.split("#").length){var l=am.exec(s);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}var u=im.exec(s);if(u&&(i=(u=u[0]).toLowerCase(),this.protocol=u,s=s.substr(u.length)),(t||u||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(a="//"===s.substr(0,2))||u&&pm[u]||(s=s.substr(2),this.slashes=!0)),!pm[u]&&(a||u&&!hm[u])){var c,d,f=-1;for(n=0;n<cm.length;n++)-1!==(o=s.indexOf(cm[n]))&&(-1===f||o<f)&&(f=o);for(-1!==(d=-1===f?s.lastIndexOf("@"):s.lastIndexOf("@",f))&&(c=s.slice(0,d),s=s.slice(d+1),this.auth=c),f=-1,n=0;n<um.length;n++)-1!==(o=s.indexOf(um[n]))&&(-1===f||o<f)&&(f=o);-1===f&&(f=s.length),":"===s[f-1]&&f--;var p=s.slice(0,f);s=s.slice(f),this.parseHost(p),this.hostname=this.hostname||"";var h="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!h){var m=this.hostname.split(/\./);for(n=0,r=m.length;n<r;n++){var g=m[n];if(g&&!g.match(dm)){for(var v="",y=0,b=g.length;y<b;y++)g.charCodeAt(y)>127?v+="x":v+=g[y];if(!v.match(dm)){var E=m.slice(0,n),w=m.slice(n+1),k=g.match(fm);k&&(E.push(k[1]),w.unshift(k[2])),w.length&&(s=w.join(".")+s),this.hostname=E.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var T=s.indexOf("#");-1!==T&&(this.hash=s.substr(T),s=s.slice(0,T));var x=s.indexOf("?");return-1!==x&&(this.search=s.substr(x),s=s.slice(0,x)),s&&(this.pathname=s),hm[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this},rm.prototype.parseHost=function(e){var t=om.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var gm=mm;Wh.encode=Jh,Wh.decode=tm,Wh.format=nm,Wh.parse=gm;var vm={},ym=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,bm=/[\0-\x1F\x7F-\x9F]/,Em=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;vm.Any=ym,vm.Cc=bm,vm.Cf=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,vm.P=Gh,vm.Z=Em,function(e){function t(e){return Object.prototype.toString.call(e)}function n(e){return"[object String]"===t(e)}A(t,"_class"),A(n,"isString");var r=Object.prototype.hasOwnProperty;function i(e,t){return r.call(e,t)}function o(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e}function a(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function s(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||!(65535&~e&&65534!=(65535&e))||e>=0&&e<=8||11===e||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function l(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}A(i,"has"),A(o,"assign"),A(a,"arrayReplaceAt"),A(s,"isValidEntityCode"),A(l,"fromCodePoint");var u=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,c=new RegExp(u.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),d=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,f=zh;function p(e,t){var n=0;return i(f,t)?f[t]:35===t.charCodeAt(0)&&d.test(t)&&s(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?l(n):e}function h(e){return e.indexOf("\\")<0?e:e.replace(u,"$1")}function m(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(c,(function(e,t,n){return t||p(e,n)}))}A(p,"replaceEntityPattern"),A(h,"unescapeMd"),A(m,"unescapeAll");var g=/[&<>"]/,v=/[&<>"]/g,y={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function b(e){return y[e]}function E(e){return g.test(e)?e.replace(v,b):e}A(b,"replaceUnsafeChar"),A(E,"escapeHtml");var w=/[.?*+^$[\]\\(){}|-]/g;function k(e){return e.replace(w,"\\$&")}function T(e){switch(e){case 9:case 32:return!0}return!1}function x(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}A(k,"escapeRE"),A(T,"isSpace"),A(x,"isWhiteSpace");var C=Gh;function S(e){return C.test(e)}function N(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function _(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}A(S,"isPunctChar"),A(N,"isMdAsciiPunct"),A(_,"normalizeReference"),e.lib={},e.lib.mdurl=Wh,e.lib.ucmicro=vm,e.assign=o,e.isString=n,e.has=i,e.unescapeMd=h,e.unescapeAll=m,e.isValidEntityCode=s,e.fromCodePoint=l,e.escapeHtml=E,e.arrayReplaceAt=a,e.isSpace=T,e.isWhiteSpace=x,e.isMdAsciiPunct=N,e.isPunctChar=S,e.escapeRE=k,e.normalizeReference=_}(Hh);var wm={},km=A((function(e,t,n){var r,i,o,a,s=-1,l=e.posMax,u=e.pos;for(e.pos=t+1,r=1;e.pos<l;){if(93===(o=e.src.charCodeAt(e.pos))&&0==--r){i=!0;break}if(a=e.pos,e.md.inline.skipToken(e),91===o)if(a===e.pos-1)r++;else if(n)return e.pos=u,-1}return i&&(s=e.pos),e.pos=u,s}),"parseLinkLabel"),Tm=Hh.unescapeAll,xm=A((function(e,t,n){var r,i,o=t,a={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t<n;){if(10===(r=e.charCodeAt(t)))return a;if(60===r)return a;if(62===r)return a.pos=t+1,a.str=Tm(e.slice(o+1,t)),a.ok=!0,a;92===r&&t+1<n?t+=2:t++}return a}for(i=0;t<n&&32!==(r=e.charCodeAt(t))&&!(r<32||127===r);)if(92===r&&t+1<n){if(32===e.charCodeAt(t+1))break;t+=2}else{if(40===r&&++i>32)return a;if(41===r){if(0===i)break;i--}t++}return o===t||0!==i||(a.str=Tm(e.slice(o,t)),a.lines=0,a.pos=t,a.ok=!0),a}),"parseLinkDestination"),Cm=Hh.unescapeAll,Sm=A((function(e,t,n){var r,i,o=0,a=t,s={ok:!1,pos:0,lines:0,str:""};if(t>=n)return s;if(34!==(i=e.charCodeAt(t))&&39!==i&&40!==i)return s;for(t++,40===i&&(i=41);t<n;){if((r=e.charCodeAt(t))===i)return s.pos=t+1,s.lines=o,s.str=Cm(e.slice(a+1,t)),s.ok=!0,s;if(40===r&&41===i)return s;10===r?o++:92===r&&t+1<n&&(t++,10===e.charCodeAt(t)&&o++),t++}return s}),"parseLinkTitle");wm.parseLinkLabel=km,wm.parseLinkDestination=xm,wm.parseLinkTitle=Sm;var Nm=Hh.assign,_m=Hh.unescapeAll,Om=Hh.escapeHtml,Im={};function Am(){this.rules=Nm({},Im)}Im.code_inline=function(e,t,n,r,i){var o=e[t];return"<code"+i.renderAttrs(o)+">"+Om(e[t].content)+"</code>"},Im.code_block=function(e,t,n,r,i){var o=e[t];return"<pre"+i.renderAttrs(o)+"><code>"+Om(e[t].content)+"</code></pre>\n"},Im.fence=function(e,t,n,r,i){var o,a,s,l,u,c=e[t],d=c.info?_m(c.info).trim():"",f="",p="";return d&&(f=(s=d.split(/(\s+)/g))[0],p=s.slice(2).join("")),0===(o=n.highlight&&n.highlight(c.content,f,p)||Om(c.content)).indexOf("<pre")?o+"\n":d?(a=c.attrIndex("class"),l=c.attrs?c.attrs.slice():[],a<0?l.push(["class",n.langPrefix+f]):(l[a]=l[a].slice(),l[a][1]+=" "+n.langPrefix+f),u={attrs:l},"<pre><code"+i.renderAttrs(u)+">"+o+"</code></pre>\n"):"<pre><code"+i.renderAttrs(c)+">"+o+"</code></pre>\n"},Im.image=function(e,t,n,r,i){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},Im.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},Im.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},Im.text=function(e,t){return Om(e[t].content)},Im.html_block=function(e,t){return e[t].content},Im.html_inline=function(e,t){return e[t].content},A(Am,"Renderer$1"),Am.prototype.renderAttrs=A((function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+Om(e.attrs[t][0])+'="'+Om(e.attrs[t][1])+'"';return r}),"renderAttrs"),Am.prototype.renderToken=A((function(e,t,n){var r,i="",o=!1,a=e[t];return a.hidden?"":(a.block&&-1!==a.nesting&&t&&e[t-1].hidden&&(i+="\n"),i+=(-1===a.nesting?"</":"<")+a.tag,i+=this.renderAttrs(a),0===a.nesting&&n.xhtmlOut&&(i+=" /"),a.block&&(o=!0,1===a.nesting&&t+1<e.length&&("inline"===(r=e[t+1]).type||r.hidden||-1===r.nesting&&r.tag===a.tag)&&(o=!1)),i+=o?">\n":">")}),"renderToken"),Am.prototype.renderInline=function(e,t,n){for(var r,i="",o=this.rules,a=0,s=e.length;a<s;a++)void 0!==o[r=e[a].type]?i+=o[r](e,a,t,n,this):i+=this.renderToken(e,a,t);return i},Am.prototype.renderInlineAsText=function(e,t,n){for(var r="",i=0,o=e.length;i<o;i++)"text"===e[i].type?r+=e[i].content:"image"===e[i].type?r+=this.renderInlineAsText(e[i].children,t,n):"softbreak"===e[i].type&&(r+="\n");return r},Am.prototype.render=function(e,t,n){var r,i,o,a="",s=this.rules;for(r=0,i=e.length;r<i;r++)"inline"===(o=e[r].type)?a+=this.renderInline(e[r].children,t,n):void 0!==s[o]?a+=s[e[r].type](e,r,t,n,this):a+=this.renderToken(e,r,t,n);return a};var Dm=Am;function Lm(){this.__rules__=[],this.__cache__=null}A(Lm,"Ruler$3"),Lm.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},Lm.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach((function(e){e.enabled&&e.alt.forEach((function(e){t.indexOf(e)<0&&t.push(e)}))})),e.__cache__={},t.forEach((function(t){e.__cache__[t]=[],e.__rules__.forEach((function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))}))}))},Lm.prototype.at=function(e,t,n){var r=this.__find__(e),i=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null},Lm.prototype.before=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},Lm.prototype.after=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},Lm.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},Lm.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)}),this),this.__cache__=null,n},Lm.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,t)},Lm.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)}),this),this.__cache__=null,n},Lm.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]};var Mm=Lm,Fm=/\r\n?|\n/g,Rm=/\0/g,Pm=A((function(e){var t;t=(t=e.src.replace(Fm,"\n")).replace(Rm,"�"),e.src=t}),"normalize"),jm=A((function(e){var t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}),"block"),Vm=A((function(e){var t,n,r,i=e.tokens;for(n=0,r=i.length;n<r;n++)"inline"===(t=i[n]).type&&e.md.inline.parse(t.content,e.md,e.env,t.children)}),"inline"),Um=Hh.arrayReplaceAt;function Bm(e){return/^<a[>\s]/i.test(e)}function $m(e){return/^<\/a\s*>/i.test(e)}A(Bm,"isLinkOpen"),A($m,"isLinkClose");var qm=A((function(e){var t,n,r,i,o,a,s,l,u,c,d,f,p,h,m,g,v,y=e.tokens;if(e.md.options.linkify)for(n=0,r=y.length;n<r;n++)if("inline"===y[n].type&&e.md.linkify.pretest(y[n].content))for(p=0,t=(i=y[n].children).length-1;t>=0;t--)if("link_close"!==(a=i[t]).type){if("html_inline"===a.type&&(Bm(a.content)&&p>0&&p--,$m(a.content)&&p++),!(p>0)&&"text"===a.type&&e.md.linkify.test(a.content)){for(u=a.content,v=e.md.linkify.match(u),s=[],f=a.level,d=0,l=0;l<v.length;l++)h=v[l].url,m=e.md.normalizeLink(h),e.md.validateLink(m)&&(g=v[l].text,g=v[l].schema?"mailto:"!==v[l].schema||/^mailto:/i.test(g)?e.md.normalizeLinkText(g):e.md.normalizeLinkText("mailto:"+g).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+g).replace(/^http:\/\//,""),(c=v[l].index)>d&&((o=new e.Token("text","",0)).content=u.slice(d,c),o.level=f,s.push(o)),(o=new e.Token("link_open","a",1)).attrs=[["href",m]],o.level=f++,o.markup="linkify",o.info="auto",s.push(o),(o=new e.Token("text","",0)).content=g,o.level=f,s.push(o),(o=new e.Token("link_close","a",-1)).level=--f,o.markup="linkify",o.info="auto",s.push(o),d=v[l].lastIndex);d<u.length&&((o=new e.Token("text","",0)).content=u.slice(d),o.level=f,s.push(o)),y[n].children=i=Um(i,t,s)}}else for(t--;i[t].level!==a.level&&"link_open"!==i[t].type;)t--}),"linkify"),Hm=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,zm=/\((c|tm|r|p)\)/i,Gm=/\((c|tm|r|p)\)/gi,Wm={c:"©",r:"®",p:"§",tm:"™"};function Ym(e,t){return Wm[t.toLowerCase()]}function Km(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||r||(n.content=n.content.replace(Gm,Ym)),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}function Qm(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||r||Hm.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}A(Ym,"replaceFn"),A(Km,"replace_scoped"),A(Qm,"replace_rare");var Jm=A((function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(zm.test(e.tokens[t].content)&&Km(e.tokens[t].children),Hm.test(e.tokens[t].content)&&Qm(e.tokens[t].children))}),"replace"),Xm=Hh.isWhiteSpace,Zm=Hh.isPunctChar,eg=Hh.isMdAsciiPunct,tg=/['"]/,ng=/['"]/g;function rg(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function ig(e,t){var n,r,i,o,a,s,l,u,c,d,f,p,h,m,g,v,y,b,E,w,k;for(E=[],n=0;n<e.length;n++){for(r=e[n],l=e[n].level,y=E.length-1;y>=0&&!(E[y].level<=l);y--);if(E.length=y+1,"text"===r.type){a=0,s=(i=r.content).length;e:for(;a<s&&(ng.lastIndex=a,o=ng.exec(i));){if(g=v=!0,a=o.index+1,b="'"===o[0],c=32,o.index-1>=0)c=i.charCodeAt(o.index-1);else for(y=n-1;y>=0&&"softbreak"!==e[y].type&&"hardbreak"!==e[y].type;y--)if(e[y].content){c=e[y].content.charCodeAt(e[y].content.length-1);break}if(d=32,a<s)d=i.charCodeAt(a);else for(y=n+1;y<e.length&&"softbreak"!==e[y].type&&"hardbreak"!==e[y].type;y++)if(e[y].content){d=e[y].content.charCodeAt(0);break}if(f=eg(c)||Zm(String.fromCharCode(c)),p=eg(d)||Zm(String.fromCharCode(d)),h=Xm(c),(m=Xm(d))?g=!1:p&&(h||f||(g=!1)),h?v=!1:f&&(m||p||(v=!1)),34===d&&'"'===o[0]&&c>=48&&c<=57&&(v=g=!1),g&&v&&(g=f,v=p),g||v){if(v)for(y=E.length-1;y>=0&&(u=E[y],!(E[y].level<l));y--)if(u.single===b&&E[y].level===l){u=E[y],b?(w=t.md.options.quotes[2],k=t.md.options.quotes[3]):(w=t.md.options.quotes[0],k=t.md.options.quotes[1]),r.content=rg(r.content,o.index,k),e[u.token].content=rg(e[u.token].content,u.pos,w),a+=k.length-1,u.token===n&&(a+=w.length-1),s=(i=r.content).length,E.length=y;continue e}g?E.push({token:n,pos:o.index,single:b,level:l}):v&&b&&(r.content=rg(r.content,o.index,"’"))}else b&&(r.content=rg(r.content,o.index,"’"))}}}}A(rg,"replaceAt"),A(ig,"process_inlines");var og=A((function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&tg.test(e.tokens[t].content)&&ig(e.tokens[t].children,e)}),"smartquotes");function ag(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}A(ag,"Token$3"),ag.prototype.attrIndex=A((function(e){var t,n,r;if(!this.attrs)return-1;for(n=0,r=(t=this.attrs).length;n<r;n++)if(t[n][0]===e)return n;return-1}),"attrIndex"),ag.prototype.attrPush=A((function(e){this.attrs?this.attrs.push(e):this.attrs=[e]}),"attrPush"),ag.prototype.attrSet=A((function(e,t){var n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r}),"attrSet"),ag.prototype.attrGet=A((function(e){var t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n}),"attrGet"),ag.prototype.attrJoin=A((function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t}),"attrJoin");var sg=ag,lg=sg;function ug(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}A(ug,"StateCore"),ug.prototype.Token=lg;var cg=ug,dg=Mm,fg=[["normalize",Pm],["block",jm],["inline",Vm],["linkify",qm],["replacements",Jm],["smartquotes",og]];function pg(){this.ruler=new dg;for(var e=0;e<fg.length;e++)this.ruler.push(fg[e][0],fg[e][1])}A(pg,"Core"),pg.prototype.process=function(e){var t,n,r;for(t=0,n=(r=this.ruler.getRules("")).length;t<n;t++)r[t](e)},pg.prototype.State=cg;var hg=pg,mg=Hh.isSpace;function gg(e,t){var n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.substr(n,r-n)}function vg(e){var t,n=[],r=0,i=e.length,o=!1,a=0,s="";for(t=e.charCodeAt(r);r<i;)124===t&&(o?(s+=e.substring(a,r-1),a=r):(n.push(s+e.substring(a,r)),s="",a=r+1)),o=92===t,r++,t=e.charCodeAt(r);return n.push(s+e.substring(a)),n}A(gg,"getLine"),A(vg,"escapedSplit");var yg=A((function(e,t,n,r){var i,o,a,s,l,u,c,d,f,p,h,m,g,v,y,b,E,w;if(t+2>n)return!1;if(u=t+1,e.sCount[u]<e.blkIndent)return!1;if(e.sCount[u]-e.blkIndent>=4)return!1;if((a=e.bMarks[u]+e.tShift[u])>=e.eMarks[u])return!1;if(124!==(E=e.src.charCodeAt(a++))&&45!==E&&58!==E)return!1;if(a>=e.eMarks[u])return!1;if(124!==(w=e.src.charCodeAt(a++))&&45!==w&&58!==w&&!mg(w))return!1;if(45===E&&mg(w))return!1;for(;a<e.eMarks[u];){if(124!==(i=e.src.charCodeAt(a))&&45!==i&&58!==i&&!mg(i))return!1;a++}for(c=(o=gg(e,t+1)).split("|"),p=[],s=0;s<c.length;s++){if(!(h=c[s].trim())){if(0===s||s===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(h))return!1;58===h.charCodeAt(h.length-1)?p.push(58===h.charCodeAt(0)?"center":"right"):58===h.charCodeAt(0)?p.push("left"):p.push("")}if(-1===(o=gg(e,t).trim()).indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;if((c=vg(o)).length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop(),0===(d=c.length)||d!==p.length)return!1;if(r)return!0;for(v=e.parentType,e.parentType="table",b=e.md.block.ruler.getRules("blockquote"),(f=e.push("table_open","table",1)).map=m=[t,0],(f=e.push("thead_open","thead",1)).map=[t,t+1],(f=e.push("tr_open","tr",1)).map=[t,t+1],s=0;s<c.length;s++)f=e.push("th_open","th",1),p[s]&&(f.attrs=[["style","text-align:"+p[s]]]),(f=e.push("inline","",0)).content=c[s].trim(),f.children=[],f=e.push("th_close","th",-1);for(f=e.push("tr_close","tr",-1),f=e.push("thead_close","thead",-1),u=t+2;u<n&&!(e.sCount[u]<e.blkIndent);u++){for(y=!1,s=0,l=b.length;s<l;s++)if(b[s](e,u,n,!0)){y=!0;break}if(y)break;if(!(o=gg(e,u).trim()))break;if(e.sCount[u]-e.blkIndent>=4)break;for((c=vg(o)).length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop(),u===t+2&&((f=e.push("tbody_open","tbody",1)).map=g=[t+2,0]),(f=e.push("tr_open","tr",1)).map=[u,u+1],s=0;s<d;s++)f=e.push("td_open","td",1),p[s]&&(f.attrs=[["style","text-align:"+p[s]]]),(f=e.push("inline","",0)).content=c[s]?c[s].trim():"",f.children=[],f=e.push("td_close","td",-1);f=e.push("tr_close","tr",-1)}return g&&(f=e.push("tbody_close","tbody",-1),g[1]=u),f=e.push("table_close","table",-1),m[1]=u,e.parentType=v,e.line=u,!0}),"table"),bg=A((function(e,t,n){var r,i,o;if(e.sCount[t]-e.blkIndent<4)return!1;for(i=r=t+1;r<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=4))break;i=++r}return e.line=i,(o=e.push("code_block","code",0)).content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",o.map=[t,e.line],!0}),"code"),Eg=A((function(e,t,n,r){var i,o,a,s,l,u,c,d=!1,f=e.bMarks[t]+e.tShift[t],p=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(f+3>p)return!1;if(126!==(i=e.src.charCodeAt(f))&&96!==i)return!1;if(l=f,(o=(f=e.skipChars(f,i))-l)<3)return!1;if(c=e.src.slice(l,f),a=e.src.slice(f,p),96===i&&a.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(s=t;!(++s>=n||(f=l=e.bMarks[s]+e.tShift[s])<(p=e.eMarks[s])&&e.sCount[s]<e.blkIndent);)if(e.src.charCodeAt(f)===i&&!(e.sCount[s]-e.blkIndent>=4||(f=e.skipChars(f,i))-l<o||(f=e.skipSpaces(f))<p)){d=!0;break}return o=e.sCount[t],e.line=s+(d?1:0),(u=e.push("fence","code",0)).info=a,u.content=e.getLines(t+1,s,o,!0),u.markup=c,u.map=[t,e.line],!0}),"fence"),wg=Hh.isSpace,kg=A((function(e,t,n,r){var i,o,a,s,l,u,c,d,f,p,h,m,g,v,y,b,E,w,k,T,x=e.lineMax,C=e.bMarks[t]+e.tShift[t],S=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(C++))return!1;if(r)return!0;for(s=f=e.sCount[t]+1,32===e.src.charCodeAt(C)?(C++,s++,f++,i=!1,b=!0):9===e.src.charCodeAt(C)?(b=!0,(e.bsCount[t]+f)%4==3?(C++,s++,f++,i=!1):i=!0):b=!1,p=[e.bMarks[t]],e.bMarks[t]=C;C<S&&(o=e.src.charCodeAt(C),wg(o));)9===o?f+=4-(f+e.bsCount[t]+(i?1:0))%4:f++,C++;for(h=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(b?1:0),u=C>=S,v=[e.sCount[t]],e.sCount[t]=f-s,y=[e.tShift[t]],e.tShift[t]=C-e.bMarks[t],w=e.md.block.ruler.getRules("blockquote"),g=e.parentType,e.parentType="blockquote",d=t+1;d<n&&(T=e.sCount[d]<e.blkIndent,!((C=e.bMarks[d]+e.tShift[d])>=(S=e.eMarks[d])));d++)if(62!==e.src.charCodeAt(C++)||T){if(u)break;for(E=!1,a=0,l=w.length;a<l;a++)if(w[a](e,d,n,!0)){E=!0;break}if(E){e.lineMax=d,0!==e.blkIndent&&(p.push(e.bMarks[d]),h.push(e.bsCount[d]),y.push(e.tShift[d]),v.push(e.sCount[d]),e.sCount[d]-=e.blkIndent);break}p.push(e.bMarks[d]),h.push(e.bsCount[d]),y.push(e.tShift[d]),v.push(e.sCount[d]),e.sCount[d]=-1}else{for(s=f=e.sCount[d]+1,32===e.src.charCodeAt(C)?(C++,s++,f++,i=!1,b=!0):9===e.src.charCodeAt(C)?(b=!0,(e.bsCount[d]+f)%4==3?(C++,s++,f++,i=!1):i=!0):b=!1,p.push(e.bMarks[d]),e.bMarks[d]=C;C<S&&(o=e.src.charCodeAt(C),wg(o));)9===o?f+=4-(f+e.bsCount[d]+(i?1:0))%4:f++,C++;u=C>=S,h.push(e.bsCount[d]),e.bsCount[d]=e.sCount[d]+1+(b?1:0),v.push(e.sCount[d]),e.sCount[d]=f-s,y.push(e.tShift[d]),e.tShift[d]=C-e.bMarks[d]}for(m=e.blkIndent,e.blkIndent=0,(k=e.push("blockquote_open","blockquote",1)).markup=">",k.map=c=[t,0],e.md.block.tokenize(e,t,d),(k=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=x,e.parentType=g,c[1]=e.line,a=0;a<y.length;a++)e.bMarks[a+t]=p[a],e.tShift[a+t]=y[a],e.sCount[a+t]=v[a],e.bsCount[a+t]=h[a];return e.blkIndent=m,!0}),"blockquote"),Tg=Hh.isSpace,xg=A((function(e,t,n,r){var i,o,a,s,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(42!==(i=e.src.charCodeAt(l++))&&45!==i&&95!==i)return!1;for(o=1;l<u;){if((a=e.src.charCodeAt(l++))!==i&&!Tg(a))return!1;a===i&&o++}return!(o<3||(r||(e.line=t+1,(s=e.push("hr","hr",0)).map=[t,e.line],s.markup=Array(o+1).join(String.fromCharCode(i))),0))}),"hr"),Cg=Hh.isSpace;function Sg(e,t){var n,r,i,o;return r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],42!==(n=e.src.charCodeAt(r++))&&45!==n&&43!==n||r<i&&(o=e.src.charCodeAt(r),!Cg(o))?-1:r}function Ng(e,t){var n,r=e.bMarks[t]+e.tShift[t],i=r,o=e.eMarks[t];if(i+1>=o)return-1;if((n=e.src.charCodeAt(i++))<48||n>57)return-1;for(;;){if(i>=o)return-1;if(!((n=e.src.charCodeAt(i++))>=48&&n<=57)){if(41===n||46===n)break;return-1}if(i-r>=10)return-1}return i<o&&(n=e.src.charCodeAt(i),!Cg(n))?-1:i}function _g(e,t){var n,r,i=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===i&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}A(Sg,"skipBulletListMarker"),A(Ng,"skipOrderedListMarker"),A(_g,"markTightParagraphs");var Og=A((function(e,t,n,r){var i,o,a,s,l,u,c,d,f,p,h,m,g,v,y,b,E,w,k,T,x,C,S,N,_,O,I,A,D=!1,L=!0;if(e.sCount[t]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]<e.blkIndent)return!1;if(r&&"paragraph"===e.parentType&&e.tShift[t]>=e.blkIndent&&(D=!0),(S=Ng(e,t))>=0){if(c=!0,_=e.bMarks[t]+e.tShift[t],g=Number(e.src.slice(_,S-1)),D&&1!==g)return!1}else{if(!((S=Sg(e,t))>=0))return!1;c=!1}if(D&&e.skipSpaces(S)>=e.eMarks[t])return!1;if(m=e.src.charCodeAt(S-1),r)return!0;for(h=e.tokens.length,c?(A=e.push("ordered_list_open","ol",1),1!==g&&(A.attrs=[["start",g]])):A=e.push("bullet_list_open","ul",1),A.map=p=[t,0],A.markup=String.fromCharCode(m),y=t,N=!1,I=e.md.block.ruler.getRules("list"),w=e.parentType,e.parentType="list";y<n;){for(C=S,v=e.eMarks[y],u=b=e.sCount[y]+S-(e.bMarks[t]+e.tShift[t]);C<v;){if(9===(i=e.src.charCodeAt(C)))b+=4-(b+e.bsCount[y])%4;else{if(32!==i)break;b++}C++}if((l=(o=C)>=v?1:b-u)>4&&(l=1),s=u+l,(A=e.push("list_item_open","li",1)).markup=String.fromCharCode(m),A.map=d=[t,0],c&&(A.info=e.src.slice(_,S-1)),x=e.tight,T=e.tShift[t],k=e.sCount[t],E=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=s,e.tight=!0,e.tShift[t]=o-e.bMarks[t],e.sCount[t]=b,o>=v&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!N||(L=!1),N=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=E,e.tShift[t]=T,e.sCount[t]=k,e.tight=x,(A=e.push("list_item_close","li",-1)).markup=String.fromCharCode(m),y=t=e.line,d[1]=y,o=e.bMarks[t],y>=n)break;if(e.sCount[y]<e.blkIndent)break;if(e.sCount[t]-e.blkIndent>=4)break;for(O=!1,a=0,f=I.length;a<f;a++)if(I[a](e,y,n,!0)){O=!0;break}if(O)break;if(c){if((S=Ng(e,y))<0)break;_=e.bMarks[y]+e.tShift[y]}else if((S=Sg(e,y))<0)break;if(m!==e.src.charCodeAt(S-1))break}return(A=c?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(m),p[1]=y,e.line=y,e.parentType=w,L&&_g(e,h),!0}),"list"),Ig=Hh.normalizeReference,Ag=Hh.isSpace,Dg=A((function(e,t,n,r){var i,o,a,s,l,u,c,d,f,p,h,m,g,v,y,b,E=0,w=e.bMarks[t]+e.tShift[t],k=e.eMarks[t],T=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(w))return!1;for(;++w<k;)if(93===e.src.charCodeAt(w)&&92!==e.src.charCodeAt(w-1)){if(w+1===k)return!1;if(58!==e.src.charCodeAt(w+1))return!1;break}for(s=e.lineMax,y=e.md.block.ruler.getRules("reference"),p=e.parentType,e.parentType="reference";T<s&&!e.isEmpty(T);T++)if(!(e.sCount[T]-e.blkIndent>3||e.sCount[T]<0)){for(v=!1,u=0,c=y.length;u<c;u++)if(y[u](e,T,s,!0)){v=!0;break}if(v)break}for(k=(g=e.getLines(t,T,e.blkIndent,!1).trim()).length,w=1;w<k;w++){if(91===(i=g.charCodeAt(w)))return!1;if(93===i){f=w;break}(10===i||92===i&&++w<k&&10===g.charCodeAt(w))&&E++}if(f<0||58!==g.charCodeAt(f+1))return!1;for(w=f+2;w<k;w++)if(10===(i=g.charCodeAt(w)))E++;else if(!Ag(i))break;if(!(h=e.md.helpers.parseLinkDestination(g,w,k)).ok)return!1;if(l=e.md.normalizeLink(h.str),!e.md.validateLink(l))return!1;for(o=w=h.pos,a=E+=h.lines,m=w;w<k;w++)if(10===(i=g.charCodeAt(w)))E++;else if(!Ag(i))break;for(h=e.md.helpers.parseLinkTitle(g,w,k),w<k&&m!==w&&h.ok?(b=h.str,w=h.pos,E+=h.lines):(b="",w=o,E=a);w<k&&(i=g.charCodeAt(w),Ag(i));)w++;if(w<k&&10!==g.charCodeAt(w)&&b)for(b="",w=o,E=a;w<k&&(i=g.charCodeAt(w),Ag(i));)w++;return!(w<k&&10!==g.charCodeAt(w)||!(d=Ig(g.slice(1,f)))||(r||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[d]&&(e.env.references[d]={title:b,href:l}),e.parentType=p,e.line=t+E+1),0))}),"reference"),Lg={},Mg="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",Fg="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Rg=new RegExp("^(?:"+Mg+"|"+Fg+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),Pg=new RegExp("^(?:"+Mg+"|"+Fg+")");Lg.HTML_TAG_RE=Rg,Lg.HTML_OPEN_CLOSE_TAG_RE=Pg;var jg=Lg.HTML_OPEN_CLOSE_TAG_RE,Vg=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"].join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(jg.source+"\\s*$"),/^$/,!1]],Ug=A((function(e,t,n,r){var i,o,a,s,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(l))return!1;for(s=e.src.slice(l,u),i=0;i<Vg.length&&!Vg[i][0].test(s);i++);if(i===Vg.length)return!1;if(r)return Vg[i][2];if(o=t+1,!Vg[i][1].test(s))for(;o<n&&!(e.sCount[o]<e.blkIndent);o++)if(l=e.bMarks[o]+e.tShift[o],u=e.eMarks[o],s=e.src.slice(l,u),Vg[i][1].test(s)){0!==s.length&&o++;break}return e.line=o,(a=e.push("html_block","",0)).map=[t,o],a.content=e.getLines(t,o,e.blkIndent,!0),!0}),"html_block"),Bg=Hh.isSpace,$g=A((function(e,t,n,r){var i,o,a,s,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(35!==(i=e.src.charCodeAt(l))||l>=u)return!1;for(o=1,i=e.src.charCodeAt(++l);35===i&&l<u&&o<=6;)o++,i=e.src.charCodeAt(++l);return!(o>6||l<u&&!Bg(i)||(r||(u=e.skipSpacesBack(u,l),(a=e.skipCharsBack(u,35,l))>l&&Bg(e.src.charCodeAt(a-1))&&(u=a),e.line=t+1,(s=e.push("heading_open","h"+String(o),1)).markup="########".slice(0,o),s.map=[t,e.line],(s=e.push("inline","",0)).content=e.src.slice(l,u).trim(),s.map=[t,e.line],s.children=[],(s=e.push("heading_close","h"+String(o),-1)).markup="########".slice(0,o)),0))}),"heading"),qg=A((function(e,t,n){var r,i,o,a,s,l,u,c,d,f,p=t+1,h=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(f=e.parentType,e.parentType="paragraph";p<n&&!e.isEmpty(p);p++)if(!(e.sCount[p]-e.blkIndent>3)){if(e.sCount[p]>=e.blkIndent&&(l=e.bMarks[p]+e.tShift[p])<(u=e.eMarks[p])&&(45===(d=e.src.charCodeAt(l))||61===d)&&(l=e.skipChars(l,d),(l=e.skipSpaces(l))>=u)){c=61===d?1:2;break}if(!(e.sCount[p]<0)){for(i=!1,o=0,a=h.length;o<a;o++)if(h[o](e,p,n,!0)){i=!0;break}if(i)break}}return!!c&&(r=e.getLines(t,p,e.blkIndent,!1).trim(),e.line=p+1,(s=e.push("heading_open","h"+String(c),1)).markup=String.fromCharCode(d),s.map=[t,e.line],(s=e.push("inline","",0)).content=r,s.map=[t,e.line-1],s.children=[],(s=e.push("heading_close","h"+String(c),-1)).markup=String.fromCharCode(d),e.parentType=f,!0)}),"lheading"),Hg=A((function(e,t){var n,r,i,o,a,s,l=t+1,u=e.md.block.ruler.getRules("paragraph"),c=e.lineMax;for(s=e.parentType,e.parentType="paragraph";l<c&&!e.isEmpty(l);l++)if(!(e.sCount[l]-e.blkIndent>3||e.sCount[l]<0)){for(r=!1,i=0,o=u.length;i<o;i++)if(u[i](e,l,c,!0)){r=!0;break}if(r)break}return n=e.getLines(t,l,e.blkIndent,!1).trim(),e.line=l,(a=e.push("paragraph_open","p",1)).map=[t,e.line],(a=e.push("inline","",0)).content=n,a.map=[t,e.line],a.children=[],a=e.push("paragraph_close","p",-1),e.parentType=s,!0}),"paragraph"),zg=sg,Gg=Hh.isSpace;function Wg(e,t,n,r){var i,o,a,s,l,u,c,d;for(this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",d=!1,a=s=u=c=0,l=(o=this.src).length;s<l;s++){if(i=o.charCodeAt(s),!d){if(Gg(i)){u++,9===i?c+=4-c%4:c++;continue}d=!0}10!==i&&s!==l-1||(10!==i&&s++,this.bMarks.push(a),this.eMarks.push(s),this.tShift.push(u),this.sCount.push(c),this.bsCount.push(0),d=!1,u=0,c=0,a=s+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}A(Wg,"StateBlock"),Wg.prototype.push=function(e,t,n){var r=new zg(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},Wg.prototype.isEmpty=A((function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]}),"isEmpty"),Wg.prototype.skipEmptyLines=A((function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e}),"skipEmptyLines"),Wg.prototype.skipSpaces=A((function(e){for(var t,n=this.src.length;e<n&&(t=this.src.charCodeAt(e),Gg(t));e++);return e}),"skipSpaces"),Wg.prototype.skipSpacesBack=A((function(e,t){if(e<=t)return e;for(;e>t;)if(!Gg(this.src.charCodeAt(--e)))return e+1;return e}),"skipSpacesBack"),Wg.prototype.skipChars=A((function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e}),"skipChars"),Wg.prototype.skipCharsBack=A((function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e}),"skipCharsBack"),Wg.prototype.getLines=A((function(e,t,n,r){var i,o,a,s,l,u,c,d=e;if(e>=t)return"";for(u=new Array(t-e),i=0;d<t;d++,i++){for(o=0,c=s=this.bMarks[d],l=d+1<t||r?this.eMarks[d]+1:this.eMarks[d];s<l&&o<n;){if(a=this.src.charCodeAt(s),Gg(a))9===a?o+=4-(o+this.bsCount[d])%4:o++;else{if(!(s-c<this.tShift[d]))break;o++}s++}u[i]=o>n?new Array(o-n+1).join(" ")+this.src.slice(s,l):this.src.slice(s,l)}return u.join("")}),"getLines"),Wg.prototype.Token=zg;var Yg=Wg,Kg=Mm,Qg=[["table",yg,["paragraph","reference"]],["code",bg],["fence",Eg,["paragraph","reference","blockquote","list"]],["blockquote",kg,["paragraph","reference","blockquote","list"]],["hr",xg,["paragraph","reference","blockquote","list"]],["list",Og,["paragraph","reference","blockquote"]],["reference",Dg],["html_block",Ug,["paragraph","reference","blockquote"]],["heading",$g,["paragraph","reference","blockquote"]],["lheading",qg],["paragraph",Hg]];function Jg(){this.ruler=new Kg;for(var e=0;e<Qg.length;e++)this.ruler.push(Qg[e][0],Qg[e][1],{alt:(Qg[e][2]||[]).slice()})}A(Jg,"ParserBlock$1"),Jg.prototype.tokenize=function(e,t,n){for(var r,i=this.ruler.getRules(""),o=i.length,a=t,s=!1,l=e.md.options.maxNesting;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n))&&!(e.sCount[a]<e.blkIndent);){if(e.level>=l){e.line=n;break}for(r=0;r<o&&!i[r](e,a,n,!1);r++);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),(a=e.line)<n&&e.isEmpty(a)&&(s=!0,a++,e.line=a)}},Jg.prototype.parse=function(e,t,n,r){var i;e&&(i=new this.State(e,t,n,r),this.tokenize(i,i.line,i.lineMax))},Jg.prototype.State=Yg;var Xg=Jg;function Zg(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}A(Zg,"isTerminatorChar");for(var ev=A((function(e,t){for(var n=e.pos;n<e.posMax&&!Zg(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}),"text"),tv=Hh.isSpace,nv=A((function(e,t){var n,r,i=e.pos;if(10!==e.src.charCodeAt(i))return!1;for(n=e.pending.length-1,r=e.posMax,t||(n>=0&&32===e.pending.charCodeAt(n)?n>=1&&32===e.pending.charCodeAt(n-1)?(e.pending=e.pending.replace(/ +$/,""),e.push("hardbreak","br",0)):(e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0)):e.push("softbreak","br",0)),i++;i<r&&tv(e.src.charCodeAt(i));)i++;return e.pos=i,!0}),"newline"),rv=Hh.isSpace,iv=[],ov=0;ov<256;ov++)iv.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){iv[e.charCodeAt(0)]=1}));var av=A((function(e,t){var n,r=e.pos,i=e.posMax;if(92!==e.src.charCodeAt(r))return!1;if(++r<i){if((n=e.src.charCodeAt(r))<256&&0!==iv[n])return t||(e.pending+=e.src[r]),e.pos+=2,!0;if(10===n){for(t||e.push("hardbreak","br",0),r++;r<i&&(n=e.src.charCodeAt(r),rv(n));)r++;return e.pos=r,!0}}return t||(e.pending+="\\"),e.pos++,!0}),"escape"),sv=A((function(e,t){var n,r,i,o,a,s,l,u,c=e.pos;if(96!==e.src.charCodeAt(c))return!1;for(n=c,c++,r=e.posMax;c<r&&96===e.src.charCodeAt(c);)c++;if(l=(i=e.src.slice(n,c)).length,e.backticksScanned&&(e.backticks[l]||0)<=n)return t||(e.pending+=i),e.pos+=l,!0;for(a=s=c;-1!==(a=e.src.indexOf("`",s));){for(s=a+1;s<r&&96===e.src.charCodeAt(s);)s++;if((u=s-a)===l)return t||((o=e.push("code_inline","code",0)).markup=i,o.content=e.src.slice(c,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=s,!0;e.backticks[u]=a}return e.backticksScanned=!0,t||(e.pending+=i),e.pos+=l,!0}),"backtick"),lv={};function uv(e,t){var n,r,i,o,a,s=[],l=t.length;for(n=0;n<l;n++)126===(i=t[n]).marker&&-1!==i.end&&(o=t[i.end],(a=e.tokens[i.token]).type="s_open",a.tag="s",a.nesting=1,a.markup="~~",a.content="",(a=e.tokens[o.token]).type="s_close",a.tag="s",a.nesting=-1,a.markup="~~",a.content="","text"===e.tokens[o.token-1].type&&"~"===e.tokens[o.token-1].content&&s.push(o.token-1));for(;s.length;){for(r=(n=s.pop())+1;r<e.tokens.length&&"s_close"===e.tokens[r].type;)r++;n!==--r&&(a=e.tokens[r],e.tokens[r]=e.tokens[n],e.tokens[n]=a)}}lv.tokenize=A((function(e,t){var n,r,i,o,a=e.pos,s=e.src.charCodeAt(a);if(t)return!1;if(126!==s)return!1;if(i=(r=e.scanDelims(e.pos,!0)).length,o=String.fromCharCode(s),i<2)return!1;for(i%2&&(e.push("text","",0).content=o,i--),n=0;n<i;n+=2)e.push("text","",0).content=o+o,e.delimiters.push({marker:s,length:0,jump:n/2,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0}),"strikethrough"),A(uv,"postProcess$1"),lv.postProcess=A((function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(uv(e,e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&uv(e,n[t].delimiters)}),"strikethrough");var cv={};function dv(e,t){var n,r,i,o,a,s;for(n=t.length-1;n>=0;n--)95!==(r=t[n]).marker&&42!==r.marker||-1!==r.end&&(i=t[r.end],s=n>0&&t[n-1].end===r.end+1&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1&&t[n-1].marker===r.marker,a=String.fromCharCode(r.marker),(o=e.tokens[r.token]).type=s?"strong_open":"em_open",o.tag=s?"strong":"em",o.nesting=1,o.markup=s?a+a:a,o.content="",(o=e.tokens[i.token]).type=s?"strong_close":"em_close",o.tag=s?"strong":"em",o.nesting=-1,o.markup=s?a+a:a,o.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--))}cv.tokenize=A((function(e,t){var n,r,i=e.pos,o=e.src.charCodeAt(i);if(t)return!1;if(95!==o&&42!==o)return!1;for(r=e.scanDelims(e.pos,42===o),n=0;n<r.length;n++)e.push("text","",0).content=String.fromCharCode(o),e.delimiters.push({marker:o,length:r.length,jump:n,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0}),"emphasis"),A(dv,"postProcess"),cv.postProcess=A((function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(dv(e,e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&dv(e,n[t].delimiters)}),"emphasis");var fv=Hh.normalizeReference,pv=Hh.isSpace,hv=A((function(e,t){var n,r,i,o,a,s,l,u,c="",d="",f=e.pos,p=e.posMax,h=e.pos,m=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(a=e.pos+1,(o=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((s=o+1)<p&&40===e.src.charCodeAt(s)){for(m=!1,s++;s<p&&(r=e.src.charCodeAt(s),pv(r)||10===r);s++);if(s>=p)return!1;if(h=s,(l=e.md.helpers.parseLinkDestination(e.src,s,e.posMax)).ok){for(c=e.md.normalizeLink(l.str),e.md.validateLink(c)?s=l.pos:c="",h=s;s<p&&(r=e.src.charCodeAt(s),pv(r)||10===r);s++);if(l=e.md.helpers.parseLinkTitle(e.src,s,e.posMax),s<p&&h!==s&&l.ok)for(d=l.str,s=l.pos;s<p&&(r=e.src.charCodeAt(s),pv(r)||10===r);s++);}(s>=p||41!==e.src.charCodeAt(s))&&(m=!0),s++}if(m){if(void 0===e.env.references)return!1;if(s<p&&91===e.src.charCodeAt(s)?(h=s+1,(s=e.md.helpers.parseLinkLabel(e,s))>=0?i=e.src.slice(h,s++):s=o+1):s=o+1,i||(i=e.src.slice(a,o)),!(u=e.env.references[fv(i)]))return e.pos=f,!1;c=u.href,d=u.title}return t||(e.pos=a,e.posMax=o,e.push("link_open","a",1).attrs=n=[["href",c]],d&&n.push(["title",d]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=s,e.posMax=p,!0}),"link"),mv=Hh.normalizeReference,gv=Hh.isSpace,vv=A((function(e,t){var n,r,i,o,a,s,l,u,c,d,f,p,h,m="",g=e.pos,v=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(s=e.pos+2,(a=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((l=a+1)<v&&40===e.src.charCodeAt(l)){for(l++;l<v&&(r=e.src.charCodeAt(l),gv(r)||10===r);l++);if(l>=v)return!1;for(h=l,(c=e.md.helpers.parseLinkDestination(e.src,l,e.posMax)).ok&&(m=e.md.normalizeLink(c.str),e.md.validateLink(m)?l=c.pos:m=""),h=l;l<v&&(r=e.src.charCodeAt(l),gv(r)||10===r);l++);if(c=e.md.helpers.parseLinkTitle(e.src,l,e.posMax),l<v&&h!==l&&c.ok)for(d=c.str,l=c.pos;l<v&&(r=e.src.charCodeAt(l),gv(r)||10===r);l++);else d="";if(l>=v||41!==e.src.charCodeAt(l))return e.pos=g,!1;l++}else{if(void 0===e.env.references)return!1;if(l<v&&91===e.src.charCodeAt(l)?(h=l+1,(l=e.md.helpers.parseLinkLabel(e,l))>=0?o=e.src.slice(h,l++):l=a+1):l=a+1,o||(o=e.src.slice(s,a)),!(u=e.env.references[mv(o)]))return e.pos=g,!1;m=u.href,d=u.title}return t||(i=e.src.slice(s,a),e.md.inline.parse(i,e.md,e.env,p=[]),(f=e.push("image","img",0)).attrs=n=[["src",m],["alt",""]],f.children=p,f.content=i,d&&n.push(["title",d])),e.pos=l,e.posMax=v,!0}),"image"),yv=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,bv=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,Ev=A((function(e,t){var n,r,i,o,a,s,l=e.pos;if(60!==e.src.charCodeAt(l))return!1;for(a=e.pos,s=e.posMax;;){if(++l>=s)return!1;if(60===(o=e.src.charCodeAt(l)))return!1;if(62===o)break}return n=e.src.slice(a+1,l),bv.test(n)?(r=e.md.normalizeLink(n),!!e.md.validateLink(r)&&(t||((i=e.push("link_open","a",1)).attrs=[["href",r]],i.markup="autolink",i.info="auto",(i=e.push("text","",0)).content=e.md.normalizeLinkText(n),(i=e.push("link_close","a",-1)).markup="autolink",i.info="auto"),e.pos+=n.length+2,!0)):!!yv.test(n)&&(r=e.md.normalizeLink("mailto:"+n),!!e.md.validateLink(r)&&(t||((i=e.push("link_open","a",1)).attrs=[["href",r]],i.markup="autolink",i.info="auto",(i=e.push("text","",0)).content=e.md.normalizeLinkText(n),(i=e.push("link_close","a",-1)).markup="autolink",i.info="auto"),e.pos+=n.length+2,!0))}),"autolink"),wv=Lg.HTML_TAG_RE;function kv(e){var t=32|e;return t>=97&&t<=122}A(kv,"isLetter");var Tv=A((function(e,t){var n,r,i,o=e.pos;return!(!e.md.options.html||(i=e.posMax,60!==e.src.charCodeAt(o)||o+2>=i||33!==(n=e.src.charCodeAt(o+1))&&63!==n&&47!==n&&!kv(n)||!(r=e.src.slice(o).match(wv))||(t||(e.push("html_inline","",0).content=e.src.slice(o,o+r[0].length)),e.pos+=r[0].length,0)))}),"html_inline"),xv=zh,Cv=Hh.has,Sv=Hh.isValidEntityCode,Nv=Hh.fromCodePoint,_v=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Ov=/^&([a-z][a-z0-9]{1,31});/i,Iv=A((function(e,t){var n,r,i=e.pos,o=e.posMax;if(38!==e.src.charCodeAt(i))return!1;if(i+1<o)if(35===e.src.charCodeAt(i+1)){if(r=e.src.slice(i).match(_v))return t||(n="x"===r[1][0].toLowerCase()?parseInt(r[1].slice(1),16):parseInt(r[1],10),e.pending+=Sv(n)?Nv(n):Nv(65533)),e.pos+=r[0].length,!0}else if((r=e.src.slice(i).match(Ov))&&Cv(xv,r[1]))return t||(e.pending+=xv[r[1]]),e.pos+=r[0].length,!0;return t||(e.pending+="&"),e.pos++,!0}),"entity");function Av(e,t){var n,r,i,o,a,s,l,u,c={},d=t.length;for(n=0;n<d;n++)if((i=t[n]).length=i.length||0,i.close){for(c.hasOwnProperty(i.marker)||(c[i.marker]=[-1,-1,-1,-1,-1,-1]),a=c[i.marker][(i.open?3:0)+i.length%3],(r=n-i.jump-1)<-1&&(r=-1),s=r;r>a;r-=o.jump+1)if((o=t[r]).marker===i.marker&&o.open&&o.end<0&&(l=!1,(o.close||i.open)&&(o.length+i.length)%3==0&&(o.length%3==0&&i.length%3==0||(l=!0)),!l)){u=r>0&&!t[r-1].open?t[r-1].jump+1:0,i.jump=n-r+u,i.open=!1,o.end=n,o.jump=u,o.close=!1,s=-1;break}-1!==s&&(c[i.marker][(i.open?3:0)+(i.length||0)%3]=s)}}A(Av,"processDelimiters");var Dv=A((function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(Av(0,e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&Av(0,n[t].delimiters)}),"link_pairs"),Lv=A((function(e){var t,n,r=0,i=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,"text"===i[t].type&&t+1<o&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}),"text_collapse"),Mv=sg,Fv=Hh.isWhiteSpace,Rv=Hh.isPunctChar,Pv=Hh.isMdAsciiPunct;function jv(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}A(jv,"StateInline"),jv.prototype.pushPending=function(){var e=new Mv("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},jv.prototype.push=function(e,t,n){this.pending&&this.pushPending();var r=new Mv(e,t,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},jv.prototype.scanDelims=function(e,t){var n,r,i,o,a,s,l,u,c,d=e,f=!0,p=!0,h=this.posMax,m=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;d<h&&this.src.charCodeAt(d)===m;)d++;return i=d-e,r=d<h?this.src.charCodeAt(d):32,l=Pv(n)||Rv(String.fromCharCode(n)),c=Pv(r)||Rv(String.fromCharCode(r)),s=Fv(n),(u=Fv(r))?f=!1:c&&(s||l||(f=!1)),s?p=!1:l&&(u||c||(p=!1)),t?(o=f,a=p):(o=f&&(!p||l),a=p&&(!f||c)),{can_open:o,can_close:a,length:i}},jv.prototype.Token=Mv;var Vv=jv,Uv=Mm,Bv=[["text",ev],["newline",nv],["escape",av],["backticks",sv],["strikethrough",lv.tokenize],["emphasis",cv.tokenize],["link",hv],["image",vv],["autolink",Ev],["html_inline",Tv],["entity",Iv]],$v=[["balance_pairs",Dv],["strikethrough",lv.postProcess],["emphasis",cv.postProcess],["text_collapse",Lv]];function qv(){var e;for(this.ruler=new Uv,e=0;e<Bv.length;e++)this.ruler.push(Bv[e][0],Bv[e][1]);for(this.ruler2=new Uv,e=0;e<$v.length;e++)this.ruler2.push($v[e][0],$v[e][1])}A(qv,"ParserInline$1"),qv.prototype.skipToken=function(e){var t,n,r=e.pos,i=this.ruler.getRules(""),o=i.length,a=e.md.options.maxNesting,s=e.cache;if(void 0===s[r]){if(e.level<a)for(n=0;n<o&&(e.level++,t=i[n](e,!0),e.level--,!t);n++);else e.pos=e.posMax;t||e.pos++,s[r]=e.pos}else e.pos=s[r]},qv.prototype.tokenize=function(e){for(var t,n,r=this.ruler.getRules(""),i=r.length,o=e.posMax,a=e.md.options.maxNesting;e.pos<o;){if(e.level<a)for(n=0;n<i&&!(t=r[n](e,!1));n++);if(t){if(e.pos>=o)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},qv.prototype.parse=function(e,t,n,r){var i,o,a,s=new this.State(e,t,n,r);for(this.tokenize(s),a=(o=this.ruler2.getRules("")).length,i=0;i<a;i++)o[i](s)},qv.prototype.State=Vv;var Hv=qv,zv=A((function(e){var t={};t.src_Any=ym.source,t.src_Cc=bm.source,t.src_Z=Em.source,t.src_P=Gh.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+").|;(?!"+t.src_ZCc+").|\\!+(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}),"re");function Gv(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function Wv(e){return Object.prototype.toString.call(e)}function Yv(e){return"[object String]"===Wv(e)}function Kv(e){return"[object Object]"===Wv(e)}function Qv(e){return"[object RegExp]"===Wv(e)}function Jv(e){return"[object Function]"===Wv(e)}function Xv(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}A(Gv,"assign"),A(Wv,"_class"),A(Yv,"isString"),A(Kv,"isObject"),A(Qv,"isRegExp"),A(Jv,"isFunction"),A(Xv,"escapeRE");var Zv={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function ey(e){return Object.keys(e||{}).reduce((function(e,t){return e||Zv.hasOwnProperty(t)}),!1)}A(ey,"isOptionsObj");var ty={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},ny="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function ry(e){e.__index__=-1,e.__text_cache__=""}function iy(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function oy(e){var t=e.re=zv(e.__opts__),n=e.__tlds__.slice();function r(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),n.push(t.src_xn),t.src_tlds=n.join("|"),A(r,"untpl"),t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");var i=[];function o(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},A(o,"schemaError"),Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var r={validate:null,link:null};if(e.__compiled__[t]=r,Kv(n))return Qv(n.validate)?r.validate=iy(n.validate):Jv(n.validate)?r.validate=n.validate:o(t,n),void(Jv(n.normalize)?r.normalize=n.normalize:n.normalize?o(t,n):r.normalize=function(e,t){t.normalize(e)});Yv(n)?i.push(t):o(t,n)}})),i.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var a=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(Xv).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),ry(e)}function ay(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function sy(e,t){var n=new ay(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function ly(e,t){if(!(this instanceof ly))return new ly(e,t);t||ey(e)&&(t=e,e={}),this.__opts__=Gv({},Zv,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Gv({},ty,e),this.__compiled__={},this.__tlds__=ny,this.__tlds_replaced__=!1,this.re={},oy(this)}A(ry,"resetScanCache"),A(iy,"createValidator"),A((function(){return function(e,t){t.normalize(e)}}),"createNormalizer"),A(oy,"compile"),A(ay,"Match"),A(sy,"createMatch"),A(ly,"LinkifyIt$1"),ly.prototype.add=A((function(e,t){return this.__schemas__[e]=t,oy(this),this}),"add"),ly.prototype.set=A((function(e){return this.__opts__=Gv(this.__opts__,e),this}),"set"),ly.prototype.test=A((function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,o,a,s,l;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(i=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(o=n.index+n[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a)),this.__index__>=0}),"test"),ly.prototype.pretest=A((function(e){return this.re.pretest.test(e)}),"pretest"),ly.prototype.testSchemaAt=A((function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0}),"testSchemaAt"),ly.prototype.match=A((function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(sy(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(sy(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null}),"match"),ly.prototype.tlds=A((function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),oy(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,oy(this),this)}),"tlds"),ly.prototype.normalize=A((function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)}),"normalize"),ly.prototype.onCompile=A((function(){}),"onCompile");var uy=ly;const cy=2147483647,dy=36,fy=/^xn--/,py=/[^\0-\x7E]/,hy=/[\x2E\u3002\uFF0E\uFF61]/g,my={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},gy=Math.floor,vy=String.fromCharCode;function yy(e){throw new RangeError(my[e])}function by(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function Ey(e,t){const n=e.split("@");let r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+by((e=e.replace(hy,".")).split("."),t).join(".")}function wy(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&i)<<10)+(1023&r)+65536):(t.push(i),n--)}else t.push(i)}return t}A(yy,"error"),A(by,"map"),A(Ey,"mapDomain"),A(wy,"ucs2decode");const ky=A((e=>String.fromCodePoint(...e)),"ucs2encode"),Ty=A((function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:dy}),"basicToDigit"),xy=A((function(e,t){return e+22+75*(e<26)-((0!=t)<<5)}),"digitToBasic"),Cy=A((function(e,t,n){let r=0;for(e=n?gy(e/700):e>>1,e+=gy(e/t);e>455;r+=dy)e=gy(e/35);return gy(r+36*e/(e+38))}),"adapt"),Sy=A((function(e){const t=[],n=e.length;let r=0,i=128,o=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let n=0;n<a;++n)e.charCodeAt(n)>=128&&yy("not-basic"),t.push(e.charCodeAt(n));for(let s=a>0?a+1:0;s<n;){let a=r;for(let t=1,i=dy;;i+=dy){s>=n&&yy("invalid-input");const a=Ty(e.charCodeAt(s++));(a>=dy||a>gy((cy-r)/t))&&yy("overflow"),r+=a*t;const l=i<=o?1:i>=o+26?26:i-o;if(a<l)break;const u=dy-l;t>gy(cy/u)&&yy("overflow"),t*=u}const l=t.length+1;o=Cy(r-a,l,0==a),gy(r/l)>cy-i&&yy("overflow"),i+=gy(r/l),r%=l,t.splice(r++,0,i)}return String.fromCodePoint(...t)}),"decode"),Ny=A((function(e){const t=[];let n=(e=wy(e)).length,r=128,i=0,o=72;for(const n of e)n<128&&t.push(vy(n));let a=t.length,s=a;for(a&&t.push("-");s<n;){let n=cy;for(const t of e)t>=r&&t<n&&(n=t);const l=s+1;n-r>gy((cy-i)/l)&&yy("overflow"),i+=(n-r)*l,r=n;for(const n of e)if(n<r&&++i>cy&&yy("overflow"),n==r){let e=i;for(let n=dy;;n+=dy){const r=n<=o?1:n>=o+26?26:n-o;if(e<r)break;const i=e-r,a=dy-r;t.push(vy(xy(r+i%a,0))),e=gy(i/a)}t.push(vy(xy(e,0))),o=Cy(i,l,s==a),i=0,++s}++i,++r}return t.join("")}),"encode"),_y=A((function(e){return Ey(e,(function(e){return fy.test(e)?Sy(e.slice(4).toLowerCase()):e}))}),"toUnicode"),Oy=A((function(e){return Ey(e,(function(e){return py.test(e)?"xn--"+Ny(e):e}))}),"toASCII"),Iy={version:"2.1.0",ucs2:{decode:wy,encode:ky},decode:Sy,encode:Ny,toASCII:Oy,toUnicode:_y};var Ay=Object.freeze(Object.defineProperty({__proto__:null,ucs2decode:wy,ucs2encode:ky,decode:Sy,encode:Ny,toASCII:Oy,toUnicode:_y,default:Iy},Symbol.toStringTag,{value:"Module"})),Dy=Hh,Ly=wm,My=Dm,Fy=hg,Ry=Xg,Py=Hv,jy=uy,Vy=Wh,Uy=To(Ay),By={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}},$y=/^(vbscript|javascript|file|data):/,qy=/^data:image\/(gif|png|jpeg|webp);/;function Hy(e){var t=e.trim().toLowerCase();return!$y.test(t)||!!qy.test(t)}A(Hy,"validateLink");var zy=["http:","https:","mailto:"];function Gy(e){var t=Vy.parse(e,!0);if(t.hostname&&(!t.protocol||zy.indexOf(t.protocol)>=0))try{t.hostname=Uy.toASCII(t.hostname)}catch(e){}return Vy.encode(Vy.format(t))}function Wy(e){var t=Vy.parse(e,!0);if(t.hostname&&(!t.protocol||zy.indexOf(t.protocol)>=0))try{t.hostname=Uy.toUnicode(t.hostname)}catch(e){}return Vy.decode(Vy.format(t),Vy.decode.defaultChars+"%")}function Yy(e,t){if(!(this instanceof Yy))return new Yy(e,t);t||Dy.isString(e)||(t=e||{},e="default"),this.inline=new Py,this.block=new Ry,this.core=new Fy,this.renderer=new My,this.linkify=new jy,this.validateLink=Hy,this.normalizeLink=Gy,this.normalizeLinkText=Wy,this.utils=Dy,this.helpers=Dy.assign({},Ly),this.options={},this.configure(e),t&&this.set(t)}A(Gy,"normalizeLink"),A(Wy,"normalizeLinkText"),A(Yy,"MarkdownIt"),Yy.prototype.set=function(e){return Dy.assign(this.options,e),this},Yy.prototype.configure=function(e){var t,n=this;if(Dy.isString(e)&&!(e=By[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach((function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)})),this},Yy.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.enable(e,!0))}),this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},Yy.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.disable(e,!0))}),this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},Yy.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},Yy.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},Yy.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},Yy.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},Yy.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const Ky=new Yy({breaks:!0,linkify:!0}),Qy=(0,r.forwardRef)(((e,t)=>{var n=e,{children:r,onlyShowFirstChild:i,type:o}=n,a=D(n,["children","onlyShowFirstChild","type"]);return(0,E.jsx)("div",I(O({},a),{ref:t,className:M(`graphiql-markdown-${o}`,i&&"graphiql-markdown-preview",a.className),dangerouslySetInnerHTML:{__html:Ky.render(r)}}))}));Qy.displayName="MarkdownContent";const Jy=(0,r.forwardRef)(((e,t)=>(0,E.jsx)("div",I(O({},e),{ref:t,className:M("graphiql-spinner",e.className)}))));function Xy(e){var t,n,r=hs(e),i=r.defaultView||window;return r?{width:null!=(t=r.documentElement.clientWidth)?t:i.innerWidth,height:null!=(n=r.documentElement.clientHeight)?n:i.innerHeight}:{width:0,height:0}}function Zy(){return Zy=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zy.apply(this,arguments)}function eb(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}Jy.displayName="Spinner",A(Xy,"getDocumentDimensions"),A(Zy,"_extends$1"),A(eb,"_objectWithoutPropertiesLoose$1");var tb,nb,rb,ib,ob,ab,sb,lb,ub,cb,db=["children","label","ariaLabel","id","DEBUG_STYLE"],fb=["label","ariaLabel","isVisible","id"],pb=["ariaLabel","aria-label","as","id","isVisible","label","position","style","triggerRect"],hb=["type"];(lb=sb||(sb={})).Idle="IDLE",lb.Focused="FOCUSED",lb.Visible="VISIBLE",lb.LeavingVisible="LEAVING_VISIBLE",lb.Dismissed="DISMISSED",(cb=ub||(ub={})).Blur="BLUR",cb.Focus="FOCUS",cb.GlobalMouseMove="GLOBAL_MOUSE_MOVE",cb.MouseDown="MOUSE_DOWN",cb.MouseEnter="MOUSE_ENTER",cb.MouseLeave="MOUSE_LEAVE",cb.MouseMove="MOUSE_MOVE",cb.Rest="REST",cb.SelectWithKeyboard="SELECT_WITH_KEYBOARD",cb.TimeComplete="TIME_COMPLETE";var mb,gb,vb={initial:sb.Idle,states:(ab={},ab[sb.Idle]={enter:Sb,on:(tb={},tb[ub.MouseEnter]=sb.Focused,tb[ub.Focus]=sb.Visible,tb)},ab[sb.Focused]={enter:kb,leave:Tb,on:(nb={},nb[ub.MouseMove]=sb.Focused,nb[ub.MouseLeave]=sb.Idle,nb[ub.MouseDown]=sb.Dismissed,nb[ub.Blur]=sb.Idle,nb[ub.Rest]=sb.Visible,nb)},ab[sb.Visible]={on:(rb={},rb[ub.Focus]=sb.Focused,rb[ub.MouseEnter]=sb.Focused,rb[ub.MouseLeave]=sb.LeavingVisible,rb[ub.Blur]=sb.LeavingVisible,rb[ub.MouseDown]=sb.Dismissed,rb[ub.SelectWithKeyboard]=sb.Dismissed,rb[ub.GlobalMouseMove]=sb.LeavingVisible,rb)},ab[sb.LeavingVisible]={enter:xb,leave:A((function(){Cb(),Sb()}),"leave"),on:(ib={},ib[ub.MouseEnter]=sb.Visible,ib[ub.Focus]=sb.Visible,ib[ub.TimeComplete]=sb.Idle,ib)},ab[sb.Dismissed]={leave:A((function(){Sb()}),"leave"),on:(ob={},ob[ub.MouseLeave]=sb.Idle,ob[ub.Blur]=sb.Idle,ob)},ab)},yb={value:vb.initial,context:{id:null}},bb=[];function Eb(e){return bb.push(e),function(){bb.splice(bb.indexOf(e),1)}}function wb(){bb.forEach((function(e){return e(yb)}))}function kb(){window.clearTimeout(mb),mb=window.setTimeout((function(){Mb({type:ub.Rest})}),100)}function Tb(){window.clearTimeout(mb)}function xb(){window.clearTimeout(gb),gb=window.setTimeout((function(){return Mb({type:ub.TimeComplete})}),500)}function Cb(){window.clearTimeout(gb)}function Sb(){yb.context.id=null}function Nb(e){var t=void 0===e?{}:e,n=t.id,i=t.onPointerEnter,o=t.onPointerMove,a=t.onPointerLeave,s=t.onPointerDown,l=t.onMouseEnter,u=t.onMouseMove,c=t.onMouseLeave,d=t.onMouseDown,f=t.onFocus,p=t.onBlur,h=t.onKeyDown,m=t.disabled,g=t.ref,v=t.DEBUG_STYLE,y=String(td(n)),b=(0,r.useState)(!!v||Rb(y,!0)),E=b[0],w=b[1],k=(0,r.useRef)(null),T=Ts(g,k),x=ld(k,{observe:E});function C(e,t){return"undefined"!=typeof window&&"PointerEvent"in window?e:xs(e,t)}function S(e){return A((function(t){"mouse"===t.pointerType&&e(t)}),"onPointerEvent")}function N(){Mb({type:ub.MouseEnter,id:y})}function _(){Mb({type:ub.MouseMove,id:y})}function O(){Mb({type:ub.MouseLeave})}function I(){yb.context.id===y&&Mb({type:ub.MouseDown})}function D(){window.__REACH_DISABLE_TOOLTIPS||Mb({type:ub.Focus,id:y})}function L(){yb.context.id===y&&Mb({type:ub.Blur})}function M(e){"Enter"!==e.key&&" "!==e.key||Mb({type:ub.SelectWithKeyboard})}return(0,r.useEffect)((function(){return Eb((function(){w(Rb(y))}))}),[y]),(0,r.useEffect)((function(){var e=hs(k.current);function t(e){"Escape"!==e.key&&"Esc"!==e.key||yb.value!==sb.Visible||Mb({type:ub.SelectWithKeyboard})}return A(t,"listener"),e.addEventListener("keydown",t),function(){return e.removeEventListener("keydown",t)}}),[]),Lb({disabled:m,isVisible:E,ref:k}),A(C,"wrapMouseEvent"),A(S,"wrapPointerEventHandler"),A(N,"handleMouseEnter"),A(_,"handleMouseMove"),A(O,"handleMouseLeave"),A(I,"handleMouseDown"),A(D,"handleFocus"),A(L,"handleBlur"),A(M,"handleKeyDown"),[{"aria-describedby":E?af("tooltip",y):void 0,"data-state":E?"tooltip-visible":"tooltip-hidden","data-reach-tooltip-trigger":"",ref:T,onPointerEnter:xs(i,S(N)),onPointerMove:xs(o,S(_)),onPointerLeave:xs(a,S(O)),onPointerDown:xs(s,S(I)),onMouseEnter:C(l,N),onMouseMove:C(u,_),onMouseLeave:C(c,O),onMouseDown:C(d,I),onFocus:xs(f,D),onBlur:xs(p,L),onKeyDown:xs(h,M)},{id:y,triggerRect:x,isVisible:E},E]}A(Eb,"subscribe"),A(wb,"notify"),A(kb,"startRestTimer"),A(Tb,"clearRestTimer"),A(xb,"startLeavingVisibleTimer"),A(Cb,"clearLeavingVisibleTimer"),A(Sb,"clearContextId"),A(Nb,"useTooltip");var _b=(0,r.forwardRef)((function(e,t){var n=e.children,i=e.label,o=e.ariaLabel,a=e.id,s=e.DEBUG_STYLE,l=eb(e,db),u=r.Children.only(n),c=Nb({id:a,onPointerEnter:u.props.onPointerEnter,onPointerMove:u.props.onPointerMove,onPointerLeave:u.props.onPointerLeave,onPointerDown:u.props.onPointerDown,onMouseEnter:u.props.onMouseEnter,onMouseMove:u.props.onMouseMove,onMouseLeave:u.props.onMouseLeave,onMouseDown:u.props.onMouseDown,onFocus:u.props.onFocus,onBlur:u.props.onBlur,onKeyDown:u.props.onKeyDown,disabled:u.props.disabled,ref:u.ref,DEBUG_STYLE:s}),d=c[0],f=c[1];return(0,r.createElement)(r.Fragment,null,(0,r.cloneElement)(u,d),(0,r.createElement)(Ob,Zy({ref:t,label:i,"aria-label":o},f,l)))})),Ob=(0,r.forwardRef)(A((function(e,t){var n=e.label,i=e.ariaLabel,o=e.isVisible,a=e.id,s=eb(e,fb);return o?(0,r.createElement)(ps,null,(0,r.createElement)(Ib,Zy({ref:t,label:n,"aria-label":i,isVisible:o},s,{id:af("tooltip",String(a))}))):null}),"TooltipPopup")),Ib=(0,r.forwardRef)(A((function(e,t){var n=e.ariaLabel,i=e["aria-label"],o=e.as,a=void 0===o?"div":o,s=e.id,l=e.isVisible,u=e.label,c=e.position,d=void 0===c?Db:c,f=e.style,p=e.triggerRect,h=eb(e,pb),m=null!=(i||n),g=(0,r.useRef)(null),v=Ts(t,g),y=ld(g,{observe:l});return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a,Zy({role:m?void 0:"tooltip"},h,{ref:v,"data-reach-tooltip":"",id:m?void 0:s,style:Zy({},f,Ab(d,p,y))}),u),m&&(0,r.createElement)(Gc,{role:"tooltip",id:s},i||n))}),"TooltipContent"));function Ab(e,t,n){return n?e(t,n):{visibility:"hidden"}}A(Ab,"getStyles");var Db=A((function(e,t,n){void 0===n&&(n=8);var r=Xy(),i=r.width,o=r.height;if(!e||!t)return{};var a={top:e.top-t.height<0,right:i<e.left+t.width,bottom:o<e.bottom+t.height+n,left:e.left-t.width<0},s=a.bottom&&!a.top;return{left:a.right&&!a.left?e.right-t.width+window.pageXOffset+"px":e.left+window.pageXOffset+"px",top:s?e.top-n-t.height+window.pageYOffset+"px":e.top+n+e.height+window.pageYOffset+"px"}}),"positionTooltip");function Lb(e){var t=e.disabled,n=e.isVisible,i=e.ref;(0,r.useEffect)((function(){if("undefined"!=typeof window&&"PointerEvent"in window&&t&&n){var e=hs(i.current);return A(r,"handleMouseMove"),e.addEventListener("mousemove",r),function(){e.removeEventListener("mousemove",r)}}function r(e){n&&(e.target instanceof Element&&e.target.closest("[data-reach-tooltip-trigger][data-state='tooltip-visible']")||Mb({type:ub.GlobalMouseMove}))}}),[t,n,i])}function Mb(e){var t=Fb(yb,e),n=t.value,r=t.context;t.changed&&(yb={value:n,context:r},wb())}function Fb(e,t){var n=vb.states[e.value],r=n&&n.on&&n.on[t.type];if(!r)return Zy({},e,{changed:!1});n&&n.leave&&n.leave(e.context,t),t.type;var i=eb(t,hb),o=Zy({},yb.context,i),a="string"==typeof r?r:r.target,s=vb.states[a];return s&&s.enter&&s.enter(e.context,t),{value:a,context:o,changed:!0}}function Rb(e,t){return yb.context.id===e&&(t?yb.value===sb.Visible:yb.value===sb.Visible||yb.value===sb.LeavingVisible)}A(Lb,"useDisabledTriggerOnSafari"),A(Mb,"send"),A(Fb,"transition"),A(Rb,"isTooltipVisible");const Pb=(0,r.forwardRef)(((e,t)=>{var n=e,{isActive:r}=n,i=D(n,["isActive"]);return(0,E.jsx)("div",I(O({},i),{ref:t,role:"tab","aria-selected":r,className:M("graphiql-tab",r&&"graphiql-tab-active",i.className),children:i.children}))}));Pb.displayName="Tab";const jb=(0,r.forwardRef)(((e,t)=>(0,E.jsx)(is,I(O({},e),{ref:t,type:"button",className:M("graphiql-tab-button",e.className),children:e.children}))));jb.displayName="Tab.Button";const Vb=(0,r.forwardRef)(((e,t)=>(0,E.jsx)(_b,{label:"Close Tab",children:(0,E.jsx)(is,I(O({"aria-label":"Close Tab"},e),{ref:t,type:"button",className:M("graphiql-tab-close",e.className),children:(0,E.jsx)(Aa,{})}))})));Vb.displayName="Tab.Close";const Ub=Yc(Pb,{Button:jb,Close:Vb}),Bb=(0,r.forwardRef)(((e,t)=>(0,E.jsx)("div",I(O({},e),{ref:t,role:"tablist",className:M("graphiql-tabs",e.className),children:e.children}))));Bb.displayName="Tabs";var $b=Object.defineProperty,qb=A(((e,t)=>$b(e,"name",{value:t,configurable:!0})),"__name$C");const Hb=de("HistoryContext");function zb(e){var t;const n=ve(),i=(0,r.useRef)(new le(n||new oe(null),e.maxHistoryLength||Wb)),[o,a]=(0,r.useState)((null==(t=i.current)?void 0:t.queries)||[]),s=(0,r.useCallback)((({query:e,variables:t,headers:n,operationName:r})=>{var o;null==(o=i.current)||o.updateHistory(e,t,n,r),a(i.current.queries)}),[]),l=(0,r.useCallback)((({query:e,variables:t,headers:n,operationName:r,label:o,favorite:s})=>{i.current.editLabel(e,t,n,r,o,s),a(i.current.queries)}),[]),u=(0,r.useCallback)((({query:e,variables:t,headers:n,operationName:r,label:o,favorite:s})=>{i.current.toggleFavorite(e,t,n,r,o,s),a(i.current.queries)}),[]),c=(0,r.useMemo)((()=>({addToHistory:s,editLabel:l,items:o,toggleFavorite:u})),[s,l,o,u]);return(0,E.jsx)(Hb.Provider,{value:c,children:e.children})}A(zb,"HistoryContextProvider"),qb(zb,"HistoryContextProvider");const Gb=fe(Hb),Wb=20;var Yb=Object.defineProperty,Kb=A(((e,t)=>Yb(e,"name",{value:t,configurable:!0})),"__name$B");function Qb(){const{items:e}=Gb({nonNull:!0}),t=e.slice().reverse();return(0,E.jsxs)("section",{"aria-label":"History",className:"graphiql-history",children:[(0,E.jsx)("div",{className:"graphiql-history-header",children:"History"}),(0,E.jsx)("ul",{className:"graphiql-history-items",children:t.map(((e,n)=>(0,E.jsxs)(r.Fragment,{children:[(0,E.jsx)(Jb,{item:e}),e.favorite&&t[n+1]&&!t[n+1].favorite?(0,E.jsx)("div",{className:"graphiql-history-item-spacer"}):null]},`${n}:${e.label||e.query}`)))})]})}function Jb(e){const{editLabel:t,toggleFavorite:n}=Gb({nonNull:!0,caller:Jb}),{headerEditor:i,queryEditor:o,variableEditor:a}=QT({nonNull:!0,caller:Jb}),s=(0,r.useRef)(null),l=(0,r.useRef)(null),[u,c]=(0,r.useState)(!1);(0,r.useEffect)((()=>{var e;u&&(null==(e=s.current)||e.focus())}),[u]);const d=e.item.label||e.item.operationName||Xb(e.item.query),f=(0,r.useCallback)((()=>{var n;c(!1),t(I(O({},e.item),{label:null==(n=s.current)?void 0:n.value}))}),[t,e.item]),p=(0,r.useCallback)((()=>{c(!1)}),[]),h=(0,r.useCallback)((e=>{e.stopPropagation(),c(!0)}),[]),m=(0,r.useCallback)((()=>{const{query:t,variables:n,headers:r}=e.item;null==o||o.setValue(null!=t?t:""),null==a||a.setValue(null!=n?n:""),null==i||i.setValue(null!=r?r:"")}),[e.item,o,a,i]),g=(0,r.useCallback)((t=>{t.stopPropagation(),n(e.item)}),[e.item,n]);return(0,E.jsx)("li",{className:M("graphiql-history-item",u&&"editable"),children:u?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("input",{type:"text",defaultValue:e.item.label,ref:s,onKeyDown:n=>{"Esc"===n.key?c(!1):"Enter"===n.key&&(c(!1),t(I(O({},e.item),{label:n.currentTarget.value})))},placeholder:"Type a label"}),(0,E.jsx)(is,{type:"button",ref:l,onClick:f,children:"Save"}),(0,E.jsx)(is,{type:"button",ref:l,onClick:p,children:(0,E.jsx)(Aa,{})})]}):(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(is,{type:"button",className:"graphiql-history-item-label",onClick:m,children:d}),(0,E.jsx)(_b,{label:"Edit label",children:(0,E.jsx)(is,{type:"button",className:"graphiql-history-item-action",onClick:h,"aria-label":"Edit label",children:(0,E.jsx)(Ga,{"aria-hidden":"true"})})}),(0,E.jsx)(_b,{label:e.item.favorite?"Remove favorite":"Add favorite",children:(0,E.jsx)(is,{type:"button",className:"graphiql-history-item-action",onClick:g,"aria-label":e.item.favorite?"Remove favorite":"Add favorite",children:e.item.favorite?(0,E.jsx)(Za,{"aria-hidden":"true"}):(0,E.jsx)(es,{"aria-hidden":"true"})})})]})})}function Xb(e){return null==e?void 0:e.split("\n").map((e=>e.replace(/#(.*)/,""))).join(" ").replaceAll("{"," { ").replaceAll("}"," } ").replaceAll(/[\s]{2,}/g," ")}A(Qb,"History"),Kb(Qb,"History"),A(Jb,"HistoryItem"),Kb(Jb,"HistoryItem"),A(Xb,"formatQuery"),Kb(Xb,"formatQuery");var Zb=Object.defineProperty,eE=A(((e,t)=>Zb(e,"name",{value:t,configurable:!0})),"__name$A");const tE=de("ExecutionContext");function nE({fetcher:e,getDefaultFieldNames:t,children:n,operationName:i}){if(!e)throw new TypeError("The `ExecutionContextProvider` component requires a `fetcher` function to be passed as prop.");const{externalFragments:o,headerEditor:a,queryEditor:l,responseEditor:u,variableEditor:c,updateActiveTabValues:d}=QT({nonNull:!0,caller:nE}),f=Gb(),p=rT({getDefaultFieldNames:t,caller:nE}),[h,m]=(0,r.useState)(!1),[g,v]=(0,r.useState)(null),y=(0,r.useRef)(0),b=(0,r.useCallback)((()=>{null==g||g.unsubscribe(),m(!1),v(null)}),[g]),w=(0,r.useCallback)((async()=>{var t,n;if(!l||!u)return;if(g)return void b();const r=eE((e=>{u.setValue(e),d({response:e})}),"setResponse");y.current+=1;const h=y.current;let E=p()||l.getValue();const w=null==c?void 0:c.getValue();let k;try{k=iE({json:w,errorMessageParse:"Variables are invalid JSON",errorMessageType:"Variables are not a JSON object."})}catch(e){return void r(e instanceof Error?e.message:`${e}`)}const T=null==a?void 0:a.getValue();let x;try{x=iE({json:T,errorMessageParse:"Headers are invalid JSON",errorMessageType:"Headers are not a JSON object."})}catch(e){return void r(e instanceof Error?e.message:`${e}`)}if(o){const e=l.documentAST?No(l.documentAST,o):[];e.length>0&&(E+="\n"+e.map((e=>(0,s.y)(e))).join("\n"))}r(""),m(!0);const C=null!=(t=null!=i?i:l.operationName)?t:void 0;null==f||f.addToHistory({query:E,variables:w,headers:T,operationName:C});try{let t={data:{}};const i=eE((e=>{if(h!==y.current)return;let n=!!Array.isArray(e)&&e;if(!n&&"object"==typeof e&&null!==e&&"hasNext"in e&&(n=[e]),n){const e={data:t.data},i=[...(null==t?void 0:t.errors)||[],...n.flatMap((e=>e.errors)).filter(Boolean)];i.length&&(e.errors=i);for(const r of n){const n=r,{path:i,data:o,errors:a}=n,s=D(n,["path","data","errors"]);if(i){if(!o)throw new Error(`Expected part to contain a data property, but got ${r}`);Yo(e.data,i,o,{merge:!0})}else o&&(e.data=o);t=O(O({},e),s)}m(!1),r(W(t))}else{const t=W(e);m(!1),r(t)}}),"handleResponse"),o=e({query:E,variables:k,operationName:C},{headers:null!=x?x:void 0,documentAST:null!=(n=l.documentAST)?n:void 0}),a=await Promise.resolve(o);if(j(a))v(a.subscribe({next(e){i(e)},error(e){m(!1),e&&r(G(e)),v(null)},complete(){m(!1),v(null)}}));else if(V(a)){v({unsubscribe:()=>{var e,t;return null==(t=(e=a[Symbol.asyncIterator]()).return)?void 0:t.call(e)}});for await(const e of a)i(e);m(!1),v(null)}else i(a)}catch(e){m(!1),r(G(e)),v(null)}}),[p,o,e,a,f,i,l,u,b,g,d,c]),k=Boolean(g),T=(0,r.useMemo)((()=>({isFetching:h,isSubscribed:k,operationName:null!=i?i:null,run:w,stop:b})),[h,k,i,w,b]);return(0,E.jsx)(tE.Provider,{value:T,children:n})}A(nE,"ExecutionContextProvider"),eE(nE,"ExecutionContextProvider");const rE=fe(tE);function iE({json:e,errorMessageParse:t,errorMessageType:n}){let r;try{r=e&&""!==e.trim()?JSON.parse(e):void 0}catch(e){throw new Error(`${t}: ${e instanceof Error?e.message:e}.`)}const i="object"==typeof r&&null!==r&&!Array.isArray(r);if(void 0!==r&&!i)throw new Error(n);return r}A(iE,"tryParseJsonObject"),eE(iE,"tryParseJsonObject");var oE=Object.defineProperty,aE=A(((e,t)=>oE(e,"name",{value:t,configurable:!0})),"__name$z");const sE="graphiql",lE="sublime";let uE=!1;"object"==typeof window&&(uE=0===window.navigator.platform.toLowerCase().indexOf("mac"));const cE={[uE?"Cmd-F":"Ctrl-F"]:"findPersistent","Cmd-G":"findPersistent","Ctrl-G":"findPersistent","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight"};async function dE(e,t){const r=await n.e(748).then(n.bind(n,3338)).then((function(e){return e.c})).then((e=>"function"==typeof e?e:e.default));return await Promise.all(!1===(null==t?void 0:t.useCommonAddons)?e:[n.e(748).then(n.bind(n,9669)).then((function(e){return e.s})),n.e(748).then(n.bind(n,2382)).then((function(e){return e.m})),n.e(748).then(n.bind(n,5061)).then((function(e){return e.c})),n.e(748).then(n.bind(n,5983)).then((function(e){return e.b})),n.e(748).then(n.bind(n,3148)).then((function(e){return e.f})),n.e(748).then(n.bind(n,4482)).then((function(e){return e.l})),n.e(748).then(n.bind(n,5910)).then((function(e){return e.s})),n.e(748).then(n.bind(n,6113)).then((function(e){return e.j})),n.e(748).then(n.bind(n,924)).then((function(e){return e.d})),n.e(748).then(n.bind(n,7391)).then((function(e){return e.s})),...e]),r}A(dE,"importCodeMirror"),aE(dE,"importCodeMirror");var fE=A((function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}),"toggleSelection"),pE=fE,hE={"text/plain":"Text","text/html":"Url",default:"Text"};function mE(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function gE(e,t){var n,r,i,o,a,s,l=!1;t||(t={}),n=t.debug||!1;try{if(i=pE(),o=document.createRange(),a=document.getSelection(),(s=document.createElement("span")).textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=hE[t.format]||hE.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(s),o.selectNodeContents(s),a.addRange(o),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(i){n&&console.error("unable to copy using execCommand: ",i),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(i){n&&console.error("unable to copy using clipboardData: ",i),n&&console.error("falling back to prompt"),r=mE("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(r,e)}}finally{a&&("function"==typeof a.removeRange?a.removeRange(o):a.removeAllRanges()),s&&document.body.removeChild(s),i()}return l}A(mE,"format"),A(gE,"copy");var vE=gE,yE=Object.defineProperty,bE=A(((e,t)=>yE(e,"name",{value:t,configurable:!0})),"__name$y");const EE=bE((e=>e?(0,s.y)(e):""),"printDefault");function wE({field:e}){if(!("defaultValue"in e)||void 0===e.defaultValue)return null;const t=(0,m.K)(e.defaultValue,e.type);return t?(0,E.jsxs)(E.Fragment,{children:[" = ",(0,E.jsx)("span",{className:"graphiql-doc-explorer-default-value",children:EE(t)})]}):null}A(wE,"DefaultValue"),bE(wE,"DefaultValue");var kE=Object.defineProperty,TE=A(((e,t)=>kE(e,"name",{value:t,configurable:!0})),"__name$x");const xE=de("SchemaContext");function CE(e){if(!e.fetcher)throw new TypeError("The `SchemaContextProvider` component requires a `fetcher` function to be passed as prop.");const{initialHeaders:t,headerEditor:n}=QT({nonNull:!0,caller:CE}),[i,o]=(0,r.useState)(),[a,s]=(0,r.useState)(!1),[l,u]=(0,r.useState)(null),c=(0,r.useRef)(0);(0,r.useEffect)((()=>{o((0,g.Wl)(e.schema)||null===e.schema||void 0===e.schema?e.schema:void 0),c.current++}),[e.schema]);const d=(0,r.useRef)(t);(0,r.useEffect)((()=>{n&&(d.current=n.getValue())}));const{introspectionQuery:f,introspectionQueryName:p,introspectionQuerySansSubscriptions:h}=NE({inputValueDeprecation:e.inputValueDeprecation,introspectionQueryName:e.introspectionQueryName,schemaDescription:e.schemaDescription}),{fetcher:m,onSchemaChange:b,dangerouslyAssumeSchemaIsValid:w,children:k}=e,T=(0,r.useCallback)((()=>{if((0,g.Wl)(e.schema)||null===e.schema)return;const t=++c.current,n=e.schema;async function r(){if(n)return n;const e=_E(d.current);if(!e.isValidJSON)return void u("Introspection failed as headers are invalid.");const t=e.headers?{headers:e.headers}:{},r=B(m({query:f,operationName:p},t));if(!R(r))return void u("Fetcher did not return a Promise for introspection.");s(!0),u(null);let i=await r;if("object"!=typeof i||null===i||!("data"in i)){const e=B(m({query:h,operationName:p},t));if(!R(e))throw new Error("Fetcher did not return a Promise for introspection.");i=await e}if(s(!1),(null==i?void 0:i.data)&&"__schema"in i.data)return i.data;const o="string"==typeof i?i:W(i);u(o)}A(r,"fetchIntrospectionData"),TE(r,"fetchIntrospectionData"),r().then((e=>{if(t===c.current&&e)try{const t=(0,v.D)(e);o(t),null==b||b(t)}catch(e){u(G(e))}})).catch((e=>{t===c.current&&(u(G(e)),s(!1))}))}),[m,p,f,h,b,e.schema]);(0,r.useEffect)((()=>{T()}),[T]),(0,r.useEffect)((()=>{function e(e){e.ctrlKey&&"R"===e.key&&T()}return A(e,"triggerIntrospection"),TE(e,"triggerIntrospection"),window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}));const x=(0,r.useMemo)((()=>!i||w?[]:(0,y.i)(i)),[i,w]),C=(0,r.useMemo)((()=>({fetchError:l,introspect:T,isFetching:a,schema:i,validationErrors:x})),[l,T,a,i,x]);return(0,E.jsx)(xE.Provider,{value:C,children:k})}A(CE,"SchemaContextProvider"),TE(CE,"SchemaContextProvider");const SE=fe(xE);function NE({inputValueDeprecation:e,introspectionQueryName:t,schemaDescription:n}){return(0,r.useMemo)((()=>{const r=t||"IntrospectionQuery";let i=(0,b.I)({inputValueDeprecation:e,schemaDescription:n});t&&(i=i.replace("query IntrospectionQuery",`query ${r}`));const o=i.replace("subscriptionType { name }","");return{introspectionQueryName:r,introspectionQuery:i,introspectionQuerySansSubscriptions:o}}),[e,t,n])}function _E(e){let t=null,n=!0;try{e&&(t=JSON.parse(e))}catch{n=!1}return{headers:t,isValidJSON:n}}A(NE,"useIntrospectionQuery"),TE(NE,"useIntrospectionQuery"),A(_E,"parseHeaderString"),TE(_E,"parseHeaderString");var OE=Object.defineProperty,IE=A(((e,t)=>OE(e,"name",{value:t,configurable:!0})),"__name$w");const AE={name:"Docs"},DE=de("ExplorerContext");function LE(e){const{schema:t,validationErrors:n}=SE({nonNull:!0,caller:LE}),[i,o]=(0,r.useState)([AE]),a=(0,r.useCallback)((e=>{o((t=>t.at(-1).def===e.def?t:[...t,e]))}),[]),s=(0,r.useCallback)((()=>{o((e=>e.length>1?e.slice(0,-1):e))}),[]),u=(0,r.useCallback)((()=>{o((e=>1===e.length?e:[AE]))}),[]);(0,r.useEffect)((()=>{null==t||n.length>0?u():o((e=>{if(1===e.length)return e;const n=[AE];let r=null;for(const i of e)if(i!==AE)if(i.def)if((0,l.sy)(i.def)){const e=t.getType(i.def.name);if(!e)break;n.push({name:i.name,def:e}),r=e}else{if(null===r)break;if((0,l.YQ)(r)||(0,l.qK)(r)){const e=r.getFields()[i.name];if(!e)break;n.push({name:i.name,def:e})}else{if((0,l.lg)(r)||(0,l.oF)(r)||(0,l.kD)(r)||(0,l.CK)(r))break;{const e=r;if(!e.args.find((e=>e.name===i.name)))break;n.push({name:i.name,def:e})}}}else r=null,n.push(i);return n}))}),[u,t,n]);const c=(0,r.useMemo)((()=>({explorerNavStack:i,push:a,pop:s,reset:u})),[i,a,s,u]);return(0,E.jsx)(DE.Provider,{value:c,children:e.children})}A(LE,"ExplorerContextProvider"),IE(LE,"ExplorerContextProvider");const ME=fe(DE);var FE=Object.defineProperty,RE=A(((e,t)=>FE(e,"name",{value:t,configurable:!0})),"__name$v");function PE(e,t){return(0,l.bd)(e)?(0,E.jsxs)(E.Fragment,{children:[PE(e.ofType,t),"!"]}):(0,l.Fs)(e)?(0,E.jsxs)(E.Fragment,{children:["[",PE(e.ofType,t),"]"]}):t(e)}A(PE,"renderType"),RE(PE,"renderType");var jE=Object.defineProperty,VE=A(((e,t)=>jE(e,"name",{value:t,configurable:!0})),"__name$u");function UE(e){const{push:t}=ME({nonNull:!0,caller:UE});return e.type?PE(e.type,(e=>(0,E.jsx)("a",{className:"graphiql-doc-explorer-type-name",onClick:n=>{n.preventDefault(),t({name:e.name,def:e})},href:"#",children:e.name}))):null}A(UE,"TypeLink"),VE(UE,"TypeLink");var BE=Object.defineProperty,$E=A(((e,t)=>BE(e,"name",{value:t,configurable:!0})),"__name$t");function qE({arg:e,showDefaultValue:t,inline:n}){const r=(0,E.jsxs)("span",{children:[(0,E.jsx)("span",{className:"graphiql-doc-explorer-argument-name",children:e.name}),": ",(0,E.jsx)(UE,{type:e.type}),!1!==t&&(0,E.jsx)(wE,{field:e})]});return n?r:(0,E.jsxs)("div",{className:"graphiql-doc-explorer-argument",children:[r,e.description?(0,E.jsx)(Qy,{type:"description",children:e.description}):null,e.deprecationReason?(0,E.jsxs)("div",{className:"graphiql-doc-explorer-argument-deprecation",children:[(0,E.jsx)("div",{className:"graphiql-doc-explorer-argument-deprecation-label",children:"Deprecated"}),(0,E.jsx)(Qy,{type:"deprecation",children:e.deprecationReason})]}):null]})}A(qE,"Argument"),$E(qE,"Argument");var HE=Object.defineProperty,zE=A(((e,t)=>HE(e,"name",{value:t,configurable:!0})),"__name$s");function GE(e){return e.children?(0,E.jsxs)("div",{className:"graphiql-doc-explorer-deprecation",children:[(0,E.jsx)("div",{className:"graphiql-doc-explorer-deprecation-label",children:"Deprecated"}),(0,E.jsx)(Qy,{type:"deprecation",onlyShowFirstChild:!0,children:e.children})]}):null}A(GE,"DeprecationReason"),zE(GE,"DeprecationReason");var WE=Object.defineProperty,YE=A(((e,t)=>WE(e,"name",{value:t,configurable:!0})),"__name$r");function KE({directive:e}){return(0,E.jsxs)("span",{className:"graphiql-doc-explorer-directive",children:["@",e.name.value]})}A(KE,"Directive"),YE(KE,"Directive");var QE=Object.defineProperty,JE=A(((e,t)=>QE(e,"name",{value:t,configurable:!0})),"__name$q");function XE(e){const t=ZE[e.title];return(0,E.jsxs)("div",{children:[(0,E.jsxs)("div",{className:"graphiql-doc-explorer-section-title",children:[(0,E.jsx)(t,{}),e.title]}),(0,E.jsx)("div",{className:"graphiql-doc-explorer-section-content",children:e.children})]})}A(XE,"ExplorerSection"),JE(XE,"ExplorerSection");const ZE={Arguments:Na,"Deprecated Arguments":La,"Deprecated Enum Values":Ma,"Deprecated Fields":Fa,Directives:Ra,"Enum Values":Va,Fields:Ua,Implements:$a,Implementations:ns,"Possible Types":ns,"Root Types":Ja,Type:ns,"All Schema Types":ns};var ew=Object.defineProperty,tw=A(((e,t)=>ew(e,"name",{value:t,configurable:!0})),"__name$p");function nw(e){return(0,E.jsxs)(E.Fragment,{children:[e.field.description?(0,E.jsx)(Qy,{type:"description",children:e.field.description}):null,(0,E.jsx)(GE,{children:e.field.deprecationReason}),(0,E.jsx)(XE,{title:"Type",children:(0,E.jsx)(UE,{type:e.field.type})}),(0,E.jsx)(rw,{field:e.field}),(0,E.jsx)(iw,{field:e.field})]})}function rw({field:e}){const[t,n]=(0,r.useState)(!1),i=(0,r.useCallback)((()=>{n(!0)}),[]);if(!("args"in e))return null;const o=[],a=[];for(const t of e.args)t.deprecationReason?a.push(t):o.push(t);return(0,E.jsxs)(E.Fragment,{children:[o.length>0?(0,E.jsx)(XE,{title:"Arguments",children:o.map((e=>(0,E.jsx)(qE,{arg:e},e.name)))}):null,a.length>0?t||0===o.length?(0,E.jsx)(XE,{title:"Deprecated Arguments",children:a.map((e=>(0,E.jsx)(qE,{arg:e},e.name)))}):(0,E.jsx)(os,{type:"button",onClick:i,children:"Show Deprecated Arguments"}):null]})}function iw({field:e}){var t;const n=(null==(t=e.astNode)?void 0:t.directives)||[];return n&&0!==n.length?(0,E.jsx)(XE,{title:"Directives",children:n.map((e=>(0,E.jsx)("div",{children:(0,E.jsx)(KE,{directive:e})},e.name.value)))}):null}A(nw,"FieldDocumentation"),tw(nw,"FieldDocumentation"),A(rw,"Arguments"),tw(rw,"Arguments"),A(iw,"Directives"),tw(iw,"Directives");var ow=Object.defineProperty,aw=A(((e,t)=>ow(e,"name",{value:t,configurable:!0})),"__name$o");function sw(e){var t,n,r,i;const o=e.schema.getQueryType(),a=null==(n=(t=e.schema).getMutationType)?void 0:n.call(t),s=null==(i=(r=e.schema).getSubscriptionType)?void 0:i.call(r),l=e.schema.getTypeMap(),u=[null==o?void 0:o.name,null==a?void 0:a.name,null==s?void 0:s.name];return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(Qy,{type:"description",children:e.schema.description||"A GraphQL schema provides a root type for each kind of operation."}),(0,E.jsxs)(XE,{title:"Root Types",children:[o?(0,E.jsxs)("div",{children:[(0,E.jsx)("span",{className:"graphiql-doc-explorer-root-type",children:"query"}),": ",(0,E.jsx)(UE,{type:o})]}):null,a&&(0,E.jsxs)("div",{children:[(0,E.jsx)("span",{className:"graphiql-doc-explorer-root-type",children:"mutation"}),": ",(0,E.jsx)(UE,{type:a})]}),s&&(0,E.jsxs)("div",{children:[(0,E.jsx)("span",{className:"graphiql-doc-explorer-root-type",children:"subscription"}),": ",(0,E.jsx)(UE,{type:s})]})]}),(0,E.jsx)(XE,{title:"All Schema Types",children:l&&(0,E.jsx)("div",{children:Object.values(l).map((e=>u.includes(e.name)||e.name.startsWith("__")?null:(0,E.jsx)("div",{children:(0,E.jsx)(UE,{type:e})},e.name)))})})]})}function lw(e,t){var n=(0,r.useRef)(!1);(0,r.useEffect)((function(){n.current?e():n.current=!0}),t)}function uw(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function cw(){return cw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cw.apply(this,arguments)}function dw(e){var t=e.autoEscape,n=e.caseSensitive,r=void 0!==n&&n,i=e.findChunks,o=void 0===i?pw:i,a=e.sanitize,s=e.searchWords,l=e.textToHighlight;return hw({chunksToHighlight:fw({chunks:o({autoEscape:t,caseSensitive:r,sanitize:a,searchWords:s,textToHighlight:l})}),totalLength:l?l.length:0})}function fw(e){return e.chunks.sort((function(e,t){return e.start-t.start})).reduce((function(e,t){if(0===e.length)return[t];var n=e.pop();if(t.start<=n.end){var r=Math.max(n.end,t.end);e.push({highlight:!1,start:n.start,end:r})}else e.push(n,t);return e}),[])}function pw(e){var t=e.autoEscape,n=e.caseSensitive,r=e.sanitize,i=void 0===r?mw:r,o=e.searchWords,a=e.textToHighlight;return a=i(a||""),o.filter((function(e){return e})).reduce((function(e,r){r=i(r),t&&(r=gw(r));for(var o,s=new RegExp(r,n?"g":"gi");o=s.exec(a||"");){var l=o.index,u=s.lastIndex;u>l&&e.push({highlight:!1,start:l,end:u}),o.index===s.lastIndex&&s.lastIndex++}return e}),[])}function hw(e){var t=e.chunksToHighlight,n=e.totalLength,r=[];if(0===t.length)o(0,n,!1);else{var i=0;t.forEach((function(e){o(i,e.start,!1),o(e.start,e.end,!0),i=e.end})),o(i,n,!1)}return r;function o(e,t,n){t-e>0&&r.push({start:e,end:t,highlight:n})}}function mw(e){return e}function gw(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}A(sw,"SchemaDocumentation"),aw(sw,"SchemaDocumentation"),A(lw,"useUpdateEffect"),A(uw,"_objectWithoutPropertiesLoose"),A(cw,"_extends"),A(dw,"findAll"),A(fw,"combineChunks"),A(pw,"defaultFindChunks"),A(hw,"fillInChunks"),A(mw,"defaultSanitize"),A(gw,"escapeRegExpFn");var vw,yw,bw,Ew,ww,kw={combineChunks:fw,fillInChunks:hw,findAll:dw,findChunks:pw},Tw=["onSelect","openOnFocus","children","as","aria-label","aria-labelledby"],xw=["as","selectOnClick","autocomplete","onClick","onChange","onKeyDown","onBlur","onFocus","value"],Cw=["as","children","portal","onKeyDown","onBlur","position"],Sw=["persistSelection","as"],Nw=["as","children","index","value","onClick"],_w="IDLE",Ow="SUGGESTING",Iw="NAVIGATING",Aw="INTERACTING",Dw="CLEAR",Lw="CHANGE",Mw="INITIAL_CHANGE",Fw="NAVIGATE",Rw="SELECT_WITH_KEYBOARD",Pw="SELECT_WITH_CLICK",jw="ESCAPE",Vw="BLUR",Uw="INTERACT",Bw="FOCUS",$w="OPEN_WITH_BUTTON",qw="OPEN_WITH_INPUT_CLICK",Hw="CLOSE_WITH_BUTTON",zw={initial:_w,states:(ww={},ww[_w]={on:(vw={},vw[Vw]=_w,vw[Dw]=_w,vw[Lw]=Ow,vw[Mw]=_w,vw[Bw]=Ow,vw[Fw]=Iw,vw[$w]=Ow,vw[qw]=Ow,vw)},ww[Ow]={on:(yw={},yw[Lw]=Ow,yw[Bw]=Ow,yw[Fw]=Iw,yw[Dw]=_w,yw[jw]=_w,yw[Vw]=_w,yw[Pw]=_w,yw[Uw]=Aw,yw[Hw]=_w,yw)},ww[Iw]={on:(bw={},bw[Lw]=Ow,bw[Bw]=Ow,bw[Dw]=_w,bw[Vw]=_w,bw[jw]=_w,bw[Fw]=Iw,bw[Pw]=_w,bw[Rw]=_w,bw[Hw]=_w,bw[Uw]=Aw,bw)},ww[Aw]={on:(Ew={},Ew[Dw]=_w,Ew[Lw]=Ow,Ew[Bw]=Ow,Ew[Vw]=_w,Ew[jw]=_w,Ew[Fw]=Iw,Ew[Hw]=_w,Ew[Pw]=_w,Ew)},ww)},Gw=A((function(e,t){var n=cw({},e,{lastEventType:t.type});switch(t.type){case Lw:case Mw:return cw({},n,{navigationValue:null,value:t.value});case Fw:case $w:case qw:return cw({},n,{navigationValue:Yw(n,t)});case Dw:return cw({},n,{value:"",navigationValue:null});case Vw:case jw:return cw({},n,{navigationValue:null});case Pw:return cw({},n,{value:t.isControlled?e.value:t.value,navigationValue:null});case Rw:return cw({},n,{value:t.isControlled?e.value:e.navigationValue,navigationValue:null});case Hw:return cw({},n,{navigationValue:null});case Uw:return n;case Bw:return cw({},n,{navigationValue:Yw(n,t)});default:return n}}),"reducer");function Ww(e){return[Ow,Iw,Aw].includes(e)}function Yw(e,t){return t.value?t.value:t.persistSelection?e.value:null}A(Ww,"popoverIsExpanded"),A(Yw,"findNavigationValue");var Kw=Hd(),Qw=rf(0,{}),Jw=rf(0,{}),Xw=(0,r.forwardRef)((function(e,t){var n,i=e.onSelect,o=e.openOnFocus,a=void 0!==o&&o,s=e.children,l=e.as,u=void 0===l?"div":l,c=e["aria-label"],d=e["aria-labelledby"],f=uw(e,Tw),p=Gd(),h=p[0],m=p[1],g=(0,r.useRef)(),v=(0,r.useRef)(),y=(0,r.useRef)(),b=(0,r.useRef)(!1),E=(0,r.useRef)(!1),w=sk(zw,Gw,{value:"",navigationValue:null}),k=w[0],T=w[1],x=w[2];ik(T.lastEventType,g);var C=td(f.id),S=C?af("listbox",C):"listbox",N=(0,r.useRef)(!1),_=Ww(k),O={ariaLabel:c,ariaLabelledby:d,autocompletePropRef:b,buttonRef:y,comboboxId:C,data:T,inputRef:g,isExpanded:_,listboxId:S,onSelect:i||ys,openOnFocus:a,persistSelectionRef:E,popoverRef:v,state:k,transition:x,isControlledRef:N};return(0,r.createElement)(Yd,{context:Kw,items:h,set:m},(0,r.createElement)(Qw.Provider,{value:O},(0,r.createElement)(u,cw({},f,{"data-reach-combobox":"","data-state":uk(k),"data-expanded":_||void 0,ref:t}),gs(s)?s({id:C,isExpanded:_,navigationValue:null!=(n=T.navigationValue)?n:null,state:k}):s)))})),Zw=(0,r.forwardRef)((function(e,t){var n=e.as,i=void 0===n?"input":n,o=e.selectOnClick,a=void 0!==o&&o,s=e.autocomplete,l=void 0===s||s,u=e.onClick,c=e.onChange,d=e.onKeyDown,f=e.onBlur,p=e.onFocus,h=e.value,m=uw(e,xw),g=(0,r.useRef)(h).current,v=(0,r.useRef)(!1);lw((function(){v.current=!0}),[h]);var y=(0,r.useContext)(Qw),b=y.data,E=b.navigationValue,w=b.value,k=b.lastEventType,T=y.inputRef,x=y.state,C=y.transition,S=y.listboxId,N=y.autocompletePropRef,_=y.openOnFocus,O=y.isExpanded,I=y.ariaLabel,D=y.ariaLabelledby,L=y.persistSelectionRef,M=y.isControlledRef,F=Ts(T,t),R=(0,r.useRef)(!1),P=ok(),j=ak(),V=void 0!==h;(0,r.useEffect)((function(){M.current=V}),[V]),ls((function(){N.current=l}),[l,N]);var U=(0,r.useCallback)((function(e){""===e.trim()?C(Dw,{isControlled:V}):e!==g||v.current?C(Lw,{value:e}):C(Mw,{value:e})}),[g,C,V]);function B(e){var t=e.target.value;V||U(t)}function $(){a&&(R.current=!0),_&&k!==Pw&&C(Bw,{persistSelection:L.current})}function q(){var e;R.current&&(R.current=!1,null==(e=T.current)||e.select()),_&&x===_w&&C(qw)}(0,r.useEffect)((function(){!V||h===w||""===h.trim()&&""===(w||"").trim()||U(h)}),[h,U,V,w]),A(B,"handleChange"),A($,"handleFocus"),A(q,"handleClick");var H=!l||x!==Iw&&x!==Aw?h||w:E||h||w;return(0,r.createElement)(i,cw({"aria-activedescendant":E?String(lk(E)):void 0,"aria-autocomplete":"both","aria-controls":S,"aria-expanded":O,"aria-haspopup":"listbox","aria-label":I,"aria-labelledby":I?void 0:D,role:"combobox"},m,{"data-reach-combobox-input":"","data-state":uk(x),ref:F,onBlur:xs(f,j),onChange:xs(c,B),onClick:xs(u,q),onFocus:xs(p,$),onKeyDown:xs(d,P),value:H||""}))})),ek=(0,r.forwardRef)((function(e,t){var n=e.as,i=void 0===n?"div":n,o=e.children,a=e.portal,s=void 0===a||a,l=e.onKeyDown,u=e.onBlur,c=e.position,d=void 0===c?jd:c,f=uw(e,Cw),p=(0,r.useContext)(Qw),h=p.popoverRef,m=p.inputRef,g=p.isExpanded,v=p.state,y=Ts(h,t),b=ok(),E=ak(),w={"data-reach-combobox-popover":"","data-state":uk(v),onKeyDown:xs(l,b),onBlur:xs(u,E),hidden:!g,tabIndex:-1,children:o};return s?(0,r.createElement)(Ld,cw({as:i},f,{ref:y,"data-expanded":g||void 0,position:d,targetRef:m,unstable_skipInitialPortalRender:!0},w)):(0,r.createElement)(i,cw({ref:y},f,w))})),tk=(0,r.forwardRef)((function(e,t){var n=e.persistSelection,i=void 0!==n&&n,o=e.as,a=void 0===o?"ul":o,s=uw(e,Sw),l=(0,r.useContext)(Qw),u=l.persistSelectionRef,c=l.listboxId;return i&&(u.current=!0),(0,r.createElement)(a,cw({role:"listbox"},s,{ref:t,"data-reach-combobox-list":"",id:c}))})),nk=(0,r.forwardRef)((function(e,t){var n=e.as,i=void 0===n?"li":n,o=e.children,a=e.index,s=e.value,l=e.onClick,u=uw(e,Nw),c=(0,r.useContext)(Qw),d=c.onSelect,f=c.data.navigationValue,p=c.transition,h=c.isControlledRef,m=sf((0,r.useRef)(null),null),g=m[0],v=m[1],y=zd((0,r.useMemo)((function(){return{element:g,value:s}}),[s,g]),Kw,a),b=Ts(t,v),E=f===s,w=A((function(){d&&d(s),p(Pw,{value:s,isControlled:h.current})}),"handleClick");return(0,r.createElement)(Jw.Provider,{value:{value:s,index:y}},(0,r.createElement)(i,cw({"aria-selected":E,role:"option"},u,{"data-reach-combobox-option":"",ref:b,id:String(lk(s)),"data-highlighted":E?"":void 0,tabIndex:-1,onClick:xs(l,w)}),o?gs(o)?o({value:s,index:y}):o:(0,r.createElement)(rk,null)))}));function rk(){var e=(0,r.useContext)(Jw).value,t=(0,r.useContext)(Qw).data.value,n=(0,r.useMemo)((function(){return kw.findAll({searchWords:ck(t||"").split(/\s+/),textToHighlight:e})}),[t,e]);return(0,r.createElement)(r.Fragment,null,n.length?n.map((function(t,n){var i=e.slice(t.start,t.end);return(0,r.createElement)("span",{key:n,"data-reach-combobox-option-text":"","data-user-value":!!t.highlight||void 0,"data-suggested-value":!t.highlight||void 0},i)})):e)}function ik(e,t){ls((function(){var n;e!==Fw&&e!==jw&&e!==Pw&&e!==$w||null==(n=t.current)||n.focus()}),[t,e])}function ok(){var e=(0,r.useContext)(Qw),t=e.data.navigationValue,n=e.onSelect,i=e.state,o=e.transition,a=e.autocompletePropRef,s=e.persistSelectionRef,l=e.isControlledRef,u=Wd(Kw);return A((function(e){var r=u.findIndex((function(e){return e.value===t}));function c(){return r===u.length-1?a.current?null:f():u[(r+1)%u.length]}function d(){return 0===r?a.current?null:p():-1===r?p():u[(r-1+u.length)%u.length]}function f(){return u[0]}function p(){return u[u.length-1]}switch(A(c,"getNextOption"),A(d,"getPreviousOption"),A(f,"getFirstOption"),A(p,"getLastOption"),e.key){case"ArrowDown":if(e.preventDefault(),!u||!u.length)return;if(i===_w)o(Fw,{persistSelection:s.current});else{var h=c();o(Fw,{value:h?h.value:null})}break;case"ArrowUp":if(e.preventDefault(),!u||0===u.length)return;if(i===_w)o(Fw);else{var m=d();o(Fw,{value:m?m.value:null})}break;case"Home":case"PageUp":if(e.preventDefault(),!u||0===u.length)return;i===_w?o(Fw):o(Fw,{value:f().value});break;case"End":case"PageDown":if(e.preventDefault(),!u||0===u.length)return;i===_w?o(Fw):o(Fw,{value:p().value});break;case"Escape":i!==_w&&o(jw);break;case"Enter":i===Iw&&null!==t&&(e.preventDefault(),n&&n(t),o(Rw,{isControlled:l.current}))}}),"handleKeyDown")}function ak(){var e=(0,r.useContext)(Qw),t=e.state,n=e.transition,i=e.popoverRef,o=e.inputRef,a=e.buttonRef;return A((function(e){var r=i.current,s=o.current,l=a.current,u=e.relatedTarget;u!==s&&u!==l&&r&&(r.contains(u)?t!==Aw&&n(Uw):n(Vw))}),"handleBlur")}function sk(e,t,n){var i=(0,r.useState)(e.initial),o=i[0],a=i[1],s=(0,r.useReducer)(t,n),l=s[0],u=s[1];return[o,l,A((function(t,n){void 0===n&&(n={});var r=e.states[o],i=r&&r.on[t];if(i)return u(cw({type:t,state:o,nextState:o},n)),void a(i)}),"transition")]}function lk(e){var t=0;if(0===e.length)return t;for(var n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t}function uk(e){return e.toLowerCase()}function ck(e){return String(e).replace(/([.*+?=^!:${}()|[\]/\\])/g,"\\$1")}A(rk,"ComboboxOptionText"),A(ik,"useFocusManagement"),A(ok,"useKeyDown"),A(ak,"useBlur"),A(sk,"useReducerMachine"),A(lk,"makeHash"),A(uk,"getDataState"),A(ck,"escapeRegexp");var dk=Object.defineProperty,fk=A(((e,t)=>dk(e,"name",{value:t,configurable:!0})),"__name$n");function pk(e,t){let n;return function(...r){n&&window.clearTimeout(n),n=window.setTimeout((()=>{n=null,t(...r)}),e)}}A(pk,"debounce"),fk(pk,"debounce");var hk=Object.defineProperty,mk=A(((e,t)=>hk(e,"name",{value:t,configurable:!0})),"__name$m");function gk(){const{explorerNavStack:e,push:t}=ME({nonNull:!0,caller:gk}),n=(0,r.useRef)(null),i=(0,r.useRef)(null),o=vk(),[a,s]=(0,r.useState)(""),[u,c]=(0,r.useState)(o(a)),d=(0,r.useMemo)((()=>pk(200,(e=>{c(o(e))}))),[o]);(0,r.useEffect)((()=>{d(a)}),[d,a]),(0,r.useEffect)((()=>{function e(e){var t;e.metaKey&&"k"===e.key&&(null==(t=n.current)||t.focus())}return A(e,"handleKeyDown2"),mk(e,"handleKeyDown"),window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[]);const f=e.at(-1),p=1===e.length||(0,l.YQ)(f.def)||(0,l.kD)(f.def)||(0,l.qK)(f.def),h=(0,r.useCallback)((e=>{const n=e;t("field"in n?{name:n.field.name,def:n.field}:{name:n.type.name,def:n.type})}),[t]),m=(0,r.useCallback)((e=>{s(e.target.value)}),[]),g=(0,r.useCallback)((e=>{if(!e.isDefaultPrevented()){const e=i.current;if(!e)return;window.requestAnimationFrame((()=>{const t=e.querySelector("[aria-selected=true]");if(!(t instanceof HTMLElement))return;const n=t.offsetTop-e.scrollTop,r=e.scrollTop+e.clientHeight-(t.offsetTop+t.clientHeight);r<0&&(e.scrollTop-=r),n<0&&(e.scrollTop+=n)}))}e.stopPropagation()}),[]);return p?(0,E.jsxs)(Xw,{"aria-label":`Search ${f.name}...`,onSelect:h,children:[(0,E.jsxs)("div",{className:"graphiql-doc-explorer-search-input",onClick:()=>{var e;null==(e=n.current)||e.focus()},children:[(0,E.jsx)(Ha,{}),(0,E.jsx)(Zw,{autocomplete:!1,onChange:m,onKeyDown:g,placeholder:"⌘ K",ref:n,value:a})]}),(0,E.jsx)(ek,{portal:!1,ref:i,children:(0,E.jsxs)(tk,{children:[u.within.map(((e,t)=>(0,E.jsx)(nk,{index:t,value:e,children:(0,E.jsx)(Ek,{field:e.field,argument:e.argument})},`within-${t}`))),u.within.length>0&&u.types.length+u.fields.length>0?(0,E.jsx)("div",{className:"graphiql-doc-explorer-search-divider",children:"Other results"}):null,u.types.map(((e,t)=>(0,E.jsx)(nk,{index:u.within.length+t,value:e,children:(0,E.jsx)(bk,{type:e.type})},`type-${t}`))),u.fields.map(((e,t)=>(0,E.jsxs)(nk,{index:u.within.length+u.types.length+t,value:e,children:[(0,E.jsx)(bk,{type:e.type}),".",(0,E.jsx)(Ek,{field:e.field,argument:e.argument})]},`field-${t}`))),u.within.length+u.types.length+u.fields.length===0?(0,E.jsx)("div",{className:"graphiql-doc-explorer-search-empty",children:"No results found"}):null]})})]}):null}function vk(e){const{explorerNavStack:t}=ME({nonNull:!0,caller:e||vk}),{schema:n}=SE({nonNull:!0,caller:e||vk}),i=t.at(-1);return(0,r.useCallback)((e=>{const t={within:[],types:[],fields:[]};if(!n)return t;const r=i.def,o=n.getTypeMap();let a=Object.keys(o);r&&(a=a.filter((e=>e!==r.name)),a.unshift(r.name));for(const n of a){if(t.within.length+t.types.length+t.fields.length>=100)break;const i=o[n];if(r!==i&&yk(n,e)&&t.types.push({type:i}),!(0,l.YQ)(i)&&!(0,l.kD)(i)&&!(0,l.qK)(i))continue;const a=i.getFields();for(const n in a){const o=a[n];let s;if(!yk(n,e)){if(!("args"in o))continue;if(s=o.args.filter((t=>yk(t.name,e))),0===s.length)continue}t[r===i?"within":"fields"].push(...s?s.map((e=>({type:i,field:o,argument:e}))):[{type:i,field:o}])}}return t}),[i.def,n])}function yk(e,t){try{const n=t.replaceAll(/[^_0-9A-Za-z]/g,(e=>"\\"+e));return-1!==e.search(new RegExp(n,"i"))}catch{return e.toLowerCase().includes(t.toLowerCase())}}function bk(e){return(0,E.jsx)("span",{className:"graphiql-doc-explorer-search-type",children:e.type.name})}function Ek(e){return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("span",{className:"graphiql-doc-explorer-search-field",children:e.field.name}),e.argument?(0,E.jsxs)(E.Fragment,{children:["(",(0,E.jsx)("span",{className:"graphiql-doc-explorer-search-argument",children:e.argument.name}),":"," ",PE(e.argument.type,(e=>(0,E.jsx)(bk,{type:e}))),")"]}):null]})}A(gk,"Search"),mk(gk,"Search"),A(vk,"useSearchResults"),mk(vk,"useSearchResults"),A(yk,"isMatch"),mk(yk,"isMatch"),A(bk,"Type"),mk(bk,"Type"),A(Ek,"Field$1"),mk(Ek,"Field");var wk=Object.defineProperty,kk=A(((e,t)=>wk(e,"name",{value:t,configurable:!0})),"__name$l");function Tk(e){const{push:t}=ME({nonNull:!0});return(0,E.jsx)("a",{className:"graphiql-doc-explorer-field-name",onClick:n=>{n.preventDefault(),t({name:e.field.name,def:e.field})},href:"#",children:e.field.name})}A(Tk,"FieldLink"),kk(Tk,"FieldLink");var xk=Object.defineProperty,Ck=A(((e,t)=>xk(e,"name",{value:t,configurable:!0})),"__name$k");function Sk(e){return(0,l.sy)(e.type)?(0,E.jsxs)(E.Fragment,{children:[e.type.description?(0,E.jsx)(Qy,{type:"description",children:e.type.description}):null,(0,E.jsx)(Nk,{type:e.type}),(0,E.jsx)(_k,{type:e.type}),(0,E.jsx)(Ik,{type:e.type}),(0,E.jsx)(Dk,{type:e.type})]}):null}function Nk({type:e}){return(0,l.YQ)(e)&&e.getInterfaces().length>0?(0,E.jsx)(XE,{title:"Implements",children:e.getInterfaces().map((e=>(0,E.jsx)("div",{children:(0,E.jsx)(UE,{type:e})},e.name)))}):null}function _k({type:e}){const[t,n]=(0,r.useState)(!1),i=(0,r.useCallback)((()=>{n(!0)}),[]);if(!(0,l.YQ)(e)&&!(0,l.kD)(e)&&!(0,l.qK)(e))return null;const o=e.getFields(),a=[],s=[];for(const e of Object.keys(o).map((e=>o[e])))e.deprecationReason?s.push(e):a.push(e);return(0,E.jsxs)(E.Fragment,{children:[a.length>0?(0,E.jsx)(XE,{title:"Fields",children:a.map((e=>(0,E.jsx)(Ok,{field:e},e.name)))}):null,s.length>0?t||0===a.length?(0,E.jsx)(XE,{title:"Deprecated Fields",children:s.map((e=>(0,E.jsx)(Ok,{field:e},e.name)))}):(0,E.jsx)(os,{type:"button",onClick:i,children:"Show Deprecated Fields"}):null]})}function Ok({field:e}){const t="args"in e?e.args.filter((e=>!e.deprecationReason)):[];return(0,E.jsxs)("div",{className:"graphiql-doc-explorer-item",children:[(0,E.jsxs)("div",{children:[(0,E.jsx)(Tk,{field:e}),t.length>0?(0,E.jsxs)(E.Fragment,{children:["(",(0,E.jsx)("span",{children:t.map((e=>1===t.length?(0,E.jsx)(qE,{arg:e,inline:!0},e.name):(0,E.jsx)("div",{className:"graphiql-doc-explorer-argument-multiple",children:(0,E.jsx)(qE,{arg:e,inline:!0})},e.name)))}),")"]}):null,": ",(0,E.jsx)(UE,{type:e.type}),(0,E.jsx)(wE,{field:e})]}),e.description?(0,E.jsx)(Qy,{type:"description",onlyShowFirstChild:!0,children:e.description}):null,(0,E.jsx)(GE,{children:e.deprecationReason})]})}function Ik({type:e}){const[t,n]=(0,r.useState)(!1),i=(0,r.useCallback)((()=>{n(!0)}),[]);if(!(0,l.oF)(e))return null;const o=[],a=[];for(const t of e.getValues())t.deprecationReason?a.push(t):o.push(t);return(0,E.jsxs)(E.Fragment,{children:[o.length>0?(0,E.jsx)(XE,{title:"Enum Values",children:o.map((e=>(0,E.jsx)(Ak,{value:e},e.name)))}):null,a.length>0?t||0===o.length?(0,E.jsx)(XE,{title:"Deprecated Enum Values",children:a.map((e=>(0,E.jsx)(Ak,{value:e},e.name)))}):(0,E.jsx)(os,{type:"button",onClick:i,children:"Show Deprecated Values"}):null]})}function Ak({value:e}){return(0,E.jsxs)("div",{className:"graphiql-doc-explorer-item",children:[(0,E.jsx)("div",{className:"graphiql-doc-explorer-enum-value",children:e.name}),e.description?(0,E.jsx)(Qy,{type:"description",children:e.description}):null,e.deprecationReason?(0,E.jsx)(Qy,{type:"deprecation",children:e.deprecationReason}):null]})}function Dk({type:e}){const{schema:t}=SE({nonNull:!0});return t&&(0,l.Lc)(e)?(0,E.jsx)(XE,{title:(0,l.kD)(e)?"Implementations":"Possible Types",children:t.getPossibleTypes(e).map((e=>(0,E.jsx)("div",{children:(0,E.jsx)(UE,{type:e})},e.name)))}):null}A(Sk,"TypeDocumentation"),Ck(Sk,"TypeDocumentation"),A(Nk,"ImplementsInterfaces"),Ck(Nk,"ImplementsInterfaces"),A(_k,"Fields"),Ck(_k,"Fields"),A(Ok,"Field"),Ck(Ok,"Field"),A(Ik,"EnumValues"),Ck(Ik,"EnumValues"),A(Ak,"EnumValue"),Ck(Ak,"EnumValue"),A(Dk,"PossibleTypes"),Ck(Dk,"PossibleTypes");var Lk=Object.defineProperty,Mk=A(((e,t)=>Lk(e,"name",{value:t,configurable:!0})),"__name$j");function Fk(){const{fetchError:e,isFetching:t,schema:n,validationErrors:r}=SE({nonNull:!0,caller:Fk}),{explorerNavStack:i,pop:o}=ME({nonNull:!0,caller:Fk}),a=i.at(-1);let s,u=null;return e?u=(0,E.jsx)("div",{className:"graphiql-doc-explorer-error",children:"Error fetching schema"}):r.length>0?u=(0,E.jsxs)("div",{className:"graphiql-doc-explorer-error",children:["Schema is invalid: ",r[0].message]}):t?u=(0,E.jsx)(Jy,{}):n?1===i.length?u=(0,E.jsx)(sw,{schema:n}):(0,l.Xj)(a.def)?u=(0,E.jsx)(Sk,{type:a.def}):a.def&&(u=(0,E.jsx)(nw,{field:a.def})):u=(0,E.jsx)("div",{className:"graphiql-doc-explorer-error",children:"No GraphQL schema available"}),i.length>1&&(s=i.at(-2).name),(0,E.jsxs)("section",{className:"graphiql-doc-explorer","aria-label":"Documentation Explorer",children:[(0,E.jsxs)("div",{className:"graphiql-doc-explorer-header",children:[(0,E.jsxs)("div",{className:"graphiql-doc-explorer-header-content",children:[s&&(0,E.jsxs)("a",{href:"#",className:"graphiql-doc-explorer-back",onClick:e=>{e.preventDefault(),o()},"aria-label":`Go back to ${s}`,children:[(0,E.jsx)(Oa,{}),s]}),(0,E.jsx)("div",{className:"graphiql-doc-explorer-title",children:a.name})]}),(0,E.jsx)("div",{className:"graphiql-doc-explorer-search",children:(0,E.jsx)(gk,{},a.name)})]}),(0,E.jsx)("div",{className:"graphiql-doc-explorer-content",children:u})]})}A(Fk,"DocExplorer"),Mk(Fk,"DocExplorer");var Rk=Object.defineProperty,Pk=A(((e,t)=>Rk(e,"name",{value:t,configurable:!0})),"__name$i");const jk={title:"Documentation Explorer",icon:Pk(A((function(){const e=$k();return(null==e?void 0:e.visiblePlugin)===jk?(0,E.jsx)(Pa,{}):(0,E.jsx)(ja,{})}),"Icon"),"Icon"),content:Fk},Vk={title:"History",icon:Ba,content:Qb},Uk=de("PluginContext");function Bk(e){const t=ve(),n=ME(),i=Gb(),o=Boolean(n),a=Boolean(i),s=(0,r.useMemo)((()=>{const t=[],n={};o&&(t.push(jk),n[jk.title]=!0),a&&(t.push(Vk),n[Vk.title]=!0);for(const r of e.plugins||[]){if("string"!=typeof r.title||!r.title)throw new Error("All GraphiQL plugins must have a unique title");if(n[r.title])throw new Error(`All GraphiQL plugins must have a unique title, found two plugins with the title '${r.title}'`);t.push(r),n[r.title]=!0}return t}),[o,a,e.plugins]),[l,u]=(0,r.useState)((()=>{const n=null==t?void 0:t.get(qk);return s.find((e=>e.title===n))||(n&&(null==t||t.set(qk,"")),e.visiblePlugin&&s.find((t=>("string"==typeof e.visiblePlugin?t.title:t)===e.visiblePlugin))||null)})),{onTogglePluginVisibility:c,children:d}=e,f=(0,r.useCallback)((e=>{const t=e&&s.find((t=>("string"==typeof e?t.title:t)===e))||null;u((e=>t===e?e:(null==c||c(t),t)))}),[c,s]);(0,r.useEffect)((()=>{e.visiblePlugin&&f(e.visiblePlugin)}),[s,e.visiblePlugin,f]);const p=(0,r.useMemo)((()=>({plugins:s,setVisiblePlugin:f,visiblePlugin:l})),[s,f,l]);return(0,E.jsx)(Uk.Provider,{value:p,children:d})}A(Bk,"PluginContextProvider"),Pk(Bk,"PluginContextProvider");const $k=fe(Uk),qk="visiblePlugin";var Hk=Object.defineProperty,zk=A(((e,t)=>Hk(e,"name",{value:t,configurable:!0})),"__name$h");function Gk(e,t,n,r,i,o){function a(e){if(!(n&&r&&i&&e.currentTarget instanceof HTMLElement))return;const t=e.currentTarget.textContent||"",a=n.getType(t);a&&(i.setVisiblePlugin(jk),r.push({name:a.name,def:a}),null==o||o(a))}dE([],{useCommonAddons:!1}).then((e=>{let n,r,i,o,s,u,c,d,f;e.on(t,"select",((e,t)=>{if(!n){const e=t.parentNode;n=document.createElement("div"),n.className="CodeMirror-hint-information",e.append(n);const l=document.createElement("header");l.className="CodeMirror-hint-information-header",n.append(l),r=document.createElement("span"),r.className="CodeMirror-hint-information-field-name",l.append(r),i=document.createElement("span"),i.className="CodeMirror-hint-information-type-name-pill",l.append(i),o=document.createElement("span"),i.append(o),s=document.createElement("a"),s.className="CodeMirror-hint-information-type-name",s.href="javascript:void 0",s.addEventListener("click",a),i.append(s),u=document.createElement("span"),i.append(u),c=document.createElement("div"),c.className="CodeMirror-hint-information-description",n.append(c),d=document.createElement("div"),d.className="CodeMirror-hint-information-deprecation",n.append(d);const p=document.createElement("span");p.className="CodeMirror-hint-information-deprecation-label",p.textContent="Deprecated",d.append(p),f=document.createElement("div"),f.className="CodeMirror-hint-information-deprecation-reason",d.append(f);const h=parseInt(window.getComputedStyle(n).paddingBottom.replace(/px$/,""),10)||0,m=parseInt(window.getComputedStyle(n).maxHeight.replace(/px$/,""),10)||0,g=zk((()=>{n&&(n.style.paddingTop=e.scrollTop+h+"px",n.style.maxHeight=e.scrollTop+m+"px")}),"handleScroll");let v;e.addEventListener("scroll",g),e.addEventListener("DOMNodeRemoved",v=zk((t=>{t.target===e&&(e.removeEventListener("scroll",g),e.removeEventListener("DOMNodeRemoved",v),n&&n.removeEventListener("click",a),n=null,r=null,i=null,o=null,s=null,u=null,c=null,d=null,f=null,v=null)}),"onRemoveFn"))}if(r&&(r.textContent=e.text),i&&o&&s&&u)if(e.type){i.style.display="inline";const t=zk((e=>{(0,l.bd)(e)?(u.textContent="!"+u.textContent,t(e.ofType)):(0,l.Fs)(e)?(o.textContent+="[",u.textContent="]"+u.textContent,t(e.ofType)):s.textContent=e.name}),"renderType");o.textContent="",u.textContent="",t(e.type)}else o.textContent="",s.textContent="",u.textContent="",i.style.display="none";c&&(e.description?(c.style.display="block",c.innerHTML=Ky.render(e.description)):(c.style.display="none",c.innerHTML="")),d&&f&&(e.deprecationReason?(d.style.display="block",f.innerHTML=Ky.render(e.deprecationReason)):(d.style.display="none",f.innerHTML=""))}))})),A(a,"onClickHintInformation"),zk(a,"onClickHintInformation")}A(Gk,"onHasCompletion"),zk(Gk,"onHasCompletion");var Wk=Object.defineProperty,Yk=A(((e,t)=>Wk(e,"name",{value:t,configurable:!0})),"__name$g");function Kk(e,t){(0,r.useEffect)((()=>{e&&"string"==typeof t&&t!==e.getValue()&&e.setValue(t)}),[e,t])}function Qk(e,t,n){(0,r.useEffect)((()=>{e&&e.setOption(t,n)}),[e,t,n])}function Jk(e,t,n,i,o){const{updateActiveTabValues:a}=QT({nonNull:!0,caller:o}),s=ve();(0,r.useEffect)((()=>{if(!e)return;const r=pk(500,(e=>{s&&null!==n&&s.set(n,e)})),o=pk(100,(e=>{a({[i]:e})})),l=Yk(((e,n)=>{if(!n)return;const i=e.getValue();r(i),o(i),null==t||t(i)}),"handleChange");return e.on("change",l),()=>e.off("change",l)}),[t,e,s,n,i,a])}function Xk(e,t,n){const{schema:i}=SE({nonNull:!0,caller:n}),o=ME(),a=$k();(0,r.useEffect)((()=>{if(!e)return;const n=Yk(((e,n)=>{Gk(0,n,i,o,a,(e=>{null==t||t({kind:"Type",type:e,schema:i||void 0})}))}),"handleCompletion");return e.on("hasCompletion",n),()=>e.off("hasCompletion",n)}),[t,e,o,a,i])}function Zk(e,t,n){(0,r.useEffect)((()=>{if(e){for(const n of t)e.removeKeyMap(n);if(n){const r={};for(const e of t)r[e]=()=>n();e.addKeyMap(r)}}}),[e,t,n])}function eT({caller:e,onCopyQuery:t}={}){const{queryEditor:n}=QT({nonNull:!0,caller:e||eT});return(0,r.useCallback)((()=>{if(!n)return;const e=n.getValue();vE(e),null==t||t(e)}),[n,t])}function tT({caller:e}={}){const{queryEditor:t}=QT({nonNull:!0,caller:e||tT}),{schema:n}=SE({nonNull:!0,caller:tT});return(0,r.useCallback)((()=>{const e=null==t?void 0:t.documentAST,r=null==t?void 0:t.getValue();e&&r&&t.setValue((0,s.y)(ne(e,n)))}),[t,n])}function nT({caller:e}={}){const{queryEditor:t,headerEditor:n,variableEditor:o}=QT({nonNull:!0,caller:e||nT});return(0,r.useCallback)((()=>{if(o){const e=o.getValue();try{const t=JSON.stringify(JSON.parse(e),null,2);t!==e&&o.setValue(t)}catch{}}if(n){const e=n.getValue();try{const t=JSON.stringify(JSON.parse(e),null,2);t!==e&&n.setValue(t)}catch{}}if(t){const e=t.getValue(),n=(0,s.y)((0,i.qg)(e));n!==e&&t.setValue(n)}}),[t,o,n])}function rT({getDefaultFieldNames:e,caller:t}={}){const{schema:n}=SE({nonNull:!0,caller:t||rT}),{queryEditor:i}=QT({nonNull:!0,caller:t||rT});return(0,r.useCallback)((()=>{if(!i)return;const t=i.getValue(),{insertions:r,result:o}=Y(n,t,e);return r&&r.length>0&&i.operation((()=>{const e=i.getCursor(),t=i.indexFromPos(e);i.setValue(o||"");let n=0;const a=r.map((({index:e,string:t})=>i.markText(i.posFromIndex(e+n),i.posFromIndex(e+(n+=t.length)),{className:"auto-inserted-leaf",clearOnEnter:!0,title:"Automatically added leaf fields"})));setTimeout((()=>{for(const e of a)e.clear()}),7e3);let s=t;for(const{index:e,string:n}of r)e<t&&(s+=n.length);i.setCursor(i.posFromIndex(s))})),o}),[e,i,n])}A(Kk,"useSynchronizeValue"),Yk(Kk,"useSynchronizeValue"),A(Qk,"useSynchronizeOption"),Yk(Qk,"useSynchronizeOption"),A(Jk,"useChangeHandler"),Yk(Jk,"useChangeHandler"),A(Xk,"useCompletion"),Yk(Xk,"useCompletion"),A(Zk,"useKeyMap"),Yk(Zk,"useKeyMap"),A(eT,"useCopyQuery"),Yk(eT,"useCopyQuery"),A(tT,"useMergeQuery"),Yk(tT,"useMergeQuery"),A(nT,"usePrettifyEditors"),Yk(nT,"usePrettifyEditors"),A(rT,"useAutoCompleteLeafs"),Yk(rT,"useAutoCompleteLeafs");var iT=Object.defineProperty,oT=A(((e,t)=>iT(e,"name",{value:t,configurable:!0})),"__name$f");function aT({editorTheme:e=sE,keyMap:t=lE,onEdit:i,readOnly:o=!1}={},a){const{initialHeaders:s,headerEditor:l,setHeaderEditor:u,shouldPersistHeaders:c}=QT({nonNull:!0,caller:a||aT}),d=rE(),f=tT({caller:a||aT}),p=nT({caller:a||aT}),h=(0,r.useRef)(null);return(0,r.useEffect)((()=>{let t=!0;return dE([n.e(748).then(n.bind(n,3277)).then((function(e){return e.j}))]).then((n=>{if(!t)return;const r=h.current;if(!r)return;const i=n(r,{value:s,lineNumbers:!0,tabSize:2,mode:{name:"javascript",json:!0},theme:e,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!o&&"nocursor",foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:cE});i.addKeyMap({"Cmd-Space"(){i.showHint({completeSingle:!1,container:r})},"Ctrl-Space"(){i.showHint({completeSingle:!1,container:r})},"Alt-Space"(){i.showHint({completeSingle:!1,container:r})},"Shift-Space"(){i.showHint({completeSingle:!1,container:r})}}),i.on("keyup",((e,t)=>{const{code:n,key:r,shiftKey:i}=t,o=n.startsWith("Key"),a=!i&&n.startsWith("Digit");(o||a||"_"===r||'"'===r)&&e.execCommand("autocomplete")})),u(i)})),()=>{t=!1}}),[e,s,o,u]),Qk(l,"keyMap",t),Jk(l,i,c?sT:null,"headers",aT),Zk(l,["Cmd-Enter","Ctrl-Enter"],null==d?void 0:d.run),Zk(l,["Shift-Ctrl-P"],p),Zk(l,["Shift-Ctrl-M"],f),h}A(aT,"useHeaderEditor"),oT(aT,"useHeaderEditor");const sT="headers";var lT=Object.defineProperty,uT=A(((e,t)=>lT(e,"name",{value:t,configurable:!0})),"__name$e");const cT=Array.from({length:11},((e,t)=>String.fromCharCode(8192+t))).concat(["\u2028","\u2029"," "," "]),dT=new RegExp("["+cT.join("")+"]","g");function fT(e){return e.replace(dT," ")}A(fT,"normalizeWhitespace"),uT(fT,"normalizeWhitespace");var pT=Object.defineProperty,hT=A(((e,t)=>pT(e,"name",{value:t,configurable:!0})),"__name$d");function mT({editorTheme:e=sE,keyMap:t=lE,onClickReference:i,onCopyQuery:o,onEdit:a,readOnly:s=!1}={},l){const{schema:u}=SE({nonNull:!0,caller:l||mT}),{externalFragments:c,initialQuery:d,queryEditor:f,setOperationName:p,setQueryEditor:h,validationRules:m,variableEditor:g,updateActiveTabValues:v}=QT({nonNull:!0,caller:l||mT}),y=rE(),b=ve(),E=ME(),w=$k(),k=eT({caller:l||mT,onCopyQuery:o}),T=tT({caller:l||mT}),x=nT({caller:l||mT}),C=(0,r.useRef)(null),S=(0,r.useRef)(),N=(0,r.useRef)((()=>{}));(0,r.useEffect)((()=>{N.current=e=>{if(E&&w){switch(w.setVisiblePlugin(jk),e.kind){case"Type":E.push({name:e.type.name,def:e.type});break;case"Field":E.push({name:e.field.name,def:e.field});break;case"Argument":e.field&&E.push({name:e.field.name,def:e.field});break;case"EnumValue":e.type&&E.push({name:e.type.name,def:e.type})}null==i||i(e)}}}),[E,i,w]),(0,r.useEffect)((()=>{let t=!0;return dE([n.e(748).then(n.bind(n,5077)).then((function(e){return e.c})),n.e(748).then(n.bind(n,1528)).then((function(e){return e.s})),n.e(748).then(n.bind(n,2627)),n.e(748).then(n.bind(n,6951)),n.e(748).then(n.bind(n,6420)),n.e(748).then(n.bind(n,1260)),n.e(748).then(n.bind(n,93))]).then((n=>{if(!t)return;S.current=n;const r=C.current;if(!r)return;const i=n(r,{value:d,lineNumbers:!0,tabSize:2,foldGutter:!0,mode:"graphql",theme:e,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!s&&"nocursor",lint:{schema:void 0,validationRules:null,externalFragments:void 0},hintOptions:{schema:void 0,closeOnUnfocus:!1,completeSingle:!1,container:r,externalFragments:void 0},info:{schema:void 0,renderDescription:e=>Ky.render(e),onClick:e=>{N.current(e)}},jump:{schema:void 0,onClick:e=>{N.current(e)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:I(O({},cE),{"Cmd-S"(){},"Ctrl-S"(){}})});i.addKeyMap({"Cmd-Space"(){i.showHint({completeSingle:!0,container:r})},"Ctrl-Space"(){i.showHint({completeSingle:!0,container:r})},"Alt-Space"(){i.showHint({completeSingle:!0,container:r})},"Shift-Space"(){i.showHint({completeSingle:!0,container:r})},"Shift-Alt-Space"(){i.showHint({completeSingle:!0,container:r})}}),i.on("keyup",((e,t)=>{bT.test(t.key)&&e.execCommand("autocomplete")}));let o=!1;i.on("startCompletion",(()=>{o=!0})),i.on("endCompletion",(()=>{o=!1})),i.on("keydown",((e,t)=>{"Escape"===t.key&&o&&t.stopPropagation()})),i.on("beforeChange",((e,t)=>{var n;if("paste"===t.origin){const e=t.text.map(fT);null==(n=t.update)||n.call(t,t.from,t.to,e)}})),i.documentAST=null,i.operationName=null,i.operations=null,i.variableToType=null,h(i)})),()=>{t=!1}}),[e,d,s,h]),Qk(f,"keyMap",t),(0,r.useEffect)((()=>{if(!f)return;function e(e){var t,n,r,i,o;const a=Io(u,e.getValue()),s=re(null!=(t=e.operations)?t:void 0,null!=(n=e.operationName)?n:void 0,null==a?void 0:a.operations);return e.documentAST=null!=(r=null==a?void 0:a.documentAST)?r:null,e.operationName=null!=s?s:null,e.operations=null!=(i=null==a?void 0:a.operations)?i:null,g&&(g.state.lint.linterOptions.variableToType=null==a?void 0:a.variableToType,g.options.lint.variableToType=null==a?void 0:a.variableToType,g.options.hintOptions.variableToType=null==a?void 0:a.variableToType,null==(o=S.current)||o.signal(g,"change",g)),a?I(O({},a),{operationName:s}):null}A(e,"getAndUpdateOperationFacts"),hT(e,"getAndUpdateOperationFacts");const t=pk(100,(t=>{var n;const r=t.getValue();null==b||b.set(ET,r);const i=t.operationName,o=e(t);void 0!==(null==o?void 0:o.operationName)&&(null==b||b.set(wT,o.operationName)),null==a||a(r,null==o?void 0:o.documentAST),(null==o?void 0:o.operationName)&&i!==o.operationName&&p(o.operationName),v({query:r,operationName:null!=(n=null==o?void 0:o.operationName)?n:null})}));return e(f),f.on("change",t),()=>f.off("change",t)}),[a,f,u,p,b,g,v]),gT(f,null!=u?u:null,S),vT(f,null!=m?m:null,S),yT(f,c,S),Xk(f,i||null,mT);const _=null==y?void 0:y.run,D=(0,r.useCallback)((()=>{var e;if(!(_&&f&&f.operations&&f.hasFocus()))return void(null==_||_());const t=f.indexFromPos(f.getCursor());let n;for(const r of f.operations)r.loc&&r.loc.start<=t&&r.loc.end>=t&&(n=null==(e=r.name)?void 0:e.value);n&&n!==f.operationName&&p(n),_()}),[f,_,p]);return Zk(f,["Cmd-Enter","Ctrl-Enter"],D),Zk(f,["Shift-Ctrl-C"],k),Zk(f,["Shift-Ctrl-P","Shift-Ctrl-F"],x),Zk(f,["Shift-Ctrl-M"],T),C}function gT(e,t,n){(0,r.useEffect)((()=>{if(!e)return;const r=e.options.lint.schema!==t;e.state.lint.linterOptions.schema=t,e.options.lint.schema=t,e.options.hintOptions.schema=t,e.options.info.schema=t,e.options.jump.schema=t,r&&n.current&&n.current.signal(e,"change",e)}),[e,t,n])}function vT(e,t,n){(0,r.useEffect)((()=>{if(!e)return;const r=e.options.lint.validationRules!==t;e.state.lint.linterOptions.validationRules=t,e.options.lint.validationRules=t,r&&n.current&&n.current.signal(e,"change",e)}),[e,t,n])}function yT(e,t,n){const i=(0,r.useMemo)((()=>[...t.values()]),[t]);(0,r.useEffect)((()=>{if(!e)return;const t=e.options.lint.externalFragments!==i;e.state.lint.linterOptions.externalFragments=i,e.options.lint.externalFragments=i,e.options.hintOptions.externalFragments=i,t&&n.current&&n.current.signal(e,"change",e)}),[e,i,n])}A(mT,"useQueryEditor"),hT(mT,"useQueryEditor"),A(gT,"useSynchronizeSchema"),hT(gT,"useSynchronizeSchema"),A(vT,"useSynchronizeValidationRules"),hT(vT,"useSynchronizeValidationRules"),A(yT,"useSynchronizeExternalFragments"),hT(yT,"useSynchronizeExternalFragments");const bT=/^[a-zA-Z0-9_@(]$/,ET="query",wT="operationName";var kT=Object.defineProperty,TT=A(((e,t)=>kT(e,"name",{value:t,configurable:!0})),"__name$c");function xT({defaultQuery:e,defaultHeaders:t,headers:n,defaultTabs:r,query:i,variables:o,storage:a}){const s=null==a?void 0:a.get(BT);try{if(!s)throw new Error("Storage for tabs is empty");const e=JSON.parse(s);if(CT(e)){const t=PT({query:i,variables:o,headers:n});let r=-1;for(let n=0;n<e.tabs.length;n++){const i=e.tabs[n];i.hash=PT({query:i.query,variables:i.variables,headers:i.headers}),i.hash===t&&(r=n)}if(r>=0)e.activeTabIndex=r;else{const r=i?jT(i):null;e.tabs.push({id:RT(),hash:t,title:r||UT,query:i,variables:o,headers:n,operationName:r,response:null}),e.activeTabIndex=e.tabs.length-1}return e}throw new Error("Storage for tabs is invalid")}catch{return{activeTabIndex:0,tabs:(r||[{query:null!=i?i:e,variables:o,headers:null!=n?n:t}]).map(MT)}}}function CT(e){return e&&"object"==typeof e&&!Array.isArray(e)&&NT(e,"activeTabIndex")&&"tabs"in e&&Array.isArray(e.tabs)&&e.tabs.every(ST)}function ST(e){return e&&"object"==typeof e&&!Array.isArray(e)&&_T(e,"id")&&_T(e,"title")&&OT(e,"query")&&OT(e,"variables")&&OT(e,"headers")&&OT(e,"operationName")&&OT(e,"response")}function NT(e,t){return t in e&&"number"==typeof e[t]}function _T(e,t){return t in e&&"string"==typeof e[t]}function OT(e,t){return t in e&&("string"==typeof e[t]||null===e[t])}function IT({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:i}){return(0,r.useCallback)((r=>{var o,a,s,l,u;const c=null!=(o=null==e?void 0:e.getValue())?o:null,d=null!=(a=null==t?void 0:t.getValue())?a:null,f=null!=(s=null==n?void 0:n.getValue())?s:null,p=null!=(l=null==e?void 0:e.operationName)?l:null;return FT(r,{query:c,variables:d,headers:f,response:null!=(u=null==i?void 0:i.getValue())?u:null,operationName:p})}),[e,t,n,i])}function AT(e,t=!1){return JSON.stringify(e,((e,n)=>"hash"===e||"response"===e||!t&&"headers"===e?null:n))}function DT({storage:e,shouldPersistHeaders:t}){const n=(0,r.useMemo)((()=>pk(500,(t=>{null==e||e.set(BT,t)}))),[e]);return(0,r.useCallback)((e=>{n(AT(e,t))}),[t,n])}function LT({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:i}){return(0,r.useCallback)((({query:r,variables:o,headers:a,response:s})=>{null==e||e.setValue(null!=r?r:""),null==t||t.setValue(null!=o?o:""),null==n||n.setValue(null!=a?a:""),null==i||i.setValue(null!=s?s:"")}),[n,e,i,t])}function MT({query:e=null,variables:t=null,headers:n=null}={}){return{id:RT(),hash:PT({query:e,variables:t,headers:n}),title:e&&jT(e)||UT,query:e,variables:t,headers:n,operationName:null,response:null}}function FT(e,t){return I(O({},e),{tabs:e.tabs.map(((n,r)=>{if(r!==e.activeTabIndex)return n;const i=O(O({},n),t);return I(O({},i),{hash:PT(i),title:i.operationName||(i.query?jT(i.query):void 0)||UT})}))})}function RT(){const e=TT((()=>Math.floor(65536*(1+Math.random())).toString(16).slice(1)),"s4");return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}function PT(e){var t,n,r;return[null!=(t=e.query)?t:"",null!=(n=e.variables)?n:"",null!=(r=e.headers)?r:""].join("|")}function jT(e){var t;const n=/^(?!#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/m.exec(e);return null!=(t=null==n?void 0:n[2])?t:null}function VT(e){const t=null==e?void 0:e.get(BT);if(t){const n=JSON.parse(t);null==e||e.set(BT,JSON.stringify(n,((e,t)=>"headers"===e?null:t)))}}A(xT,"getDefaultTabState"),TT(xT,"getDefaultTabState"),A(CT,"isTabsState"),TT(CT,"isTabsState"),A(ST,"isTabState"),TT(ST,"isTabState"),A(NT,"hasNumberKey"),TT(NT,"hasNumberKey"),A(_T,"hasStringKey"),TT(_T,"hasStringKey"),A(OT,"hasStringOrNullKey"),TT(OT,"hasStringOrNullKey"),A(IT,"useSynchronizeActiveTabValues"),TT(IT,"useSynchronizeActiveTabValues"),A(AT,"serializeTabState"),TT(AT,"serializeTabState"),A(DT,"useStoreTabs"),TT(DT,"useStoreTabs"),A(LT,"useSetEditorValues"),TT(LT,"useSetEditorValues"),A(MT,"createTab"),TT(MT,"createTab"),A(FT,"setPropertiesInActiveTab"),TT(FT,"setPropertiesInActiveTab"),A(RT,"guid"),TT(RT,"guid"),A(PT,"hashFromTabContents"),TT(PT,"hashFromTabContents"),A(jT,"fuzzyExtractOperationName"),TT(jT,"fuzzyExtractOperationName"),A(VT,"clearHeadersFromTabs"),TT(VT,"clearHeadersFromTabs");const UT="<untitled>",BT="tabState";var $T=Object.defineProperty,qT=A(((e,t)=>$T(e,"name",{value:t,configurable:!0})),"__name$b");function HT({editorTheme:e=sE,keyMap:t=lE,onClickReference:i,onEdit:o,readOnly:a=!1}={},s){const{initialVariables:l,variableEditor:u,setVariableEditor:c}=QT({nonNull:!0,caller:s||HT}),d=rE(),f=tT({caller:s||HT}),p=nT({caller:s||HT}),h=(0,r.useRef)(null),m=(0,r.useRef)();return(0,r.useEffect)((()=>{let t=!0;return dE([n.e(748).then(n.bind(n,9253)),n.e(748).then(n.bind(n,8385)),n.e(748).then(n.bind(n,7912))]).then((n=>{if(!t)return;m.current=n;const r=h.current;if(!r)return;const i=n(r,{value:l,lineNumbers:!0,tabSize:2,mode:"graphql-variables",theme:e,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!a&&"nocursor",foldGutter:!0,lint:{variableToType:void 0},hintOptions:{closeOnUnfocus:!1,completeSingle:!1,container:r,variableToType:void 0},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:cE});i.addKeyMap({"Cmd-Space"(){i.showHint({completeSingle:!1,container:r})},"Ctrl-Space"(){i.showHint({completeSingle:!1,container:r})},"Alt-Space"(){i.showHint({completeSingle:!1,container:r})},"Shift-Space"(){i.showHint({completeSingle:!1,container:r})}}),i.on("keyup",((e,t)=>{const{code:n,key:r,shiftKey:i}=t,o=n.startsWith("Key"),a=!i&&n.startsWith("Digit");(o||a||"_"===r||'"'===r)&&e.execCommand("autocomplete")})),c(i)})),()=>{t=!1}}),[e,l,a,c]),Qk(u,"keyMap",t),Jk(u,o,zT,"variables",HT),Xk(u,i||null,HT),Zk(u,["Cmd-Enter","Ctrl-Enter"],null==d?void 0:d.run),Zk(u,["Shift-Ctrl-P"],p),Zk(u,["Shift-Ctrl-M"],f),h}A(HT,"useVariableEditor"),qT(HT,"useVariableEditor");const zT="variables";var GT=Object.defineProperty,WT=A(((e,t)=>GT(e,"name",{value:t,configurable:!0})),"__name$a");const YT=de("EditorContext");function KT(e){const t=ve(),[n,o]=(0,r.useState)(null),[s,l]=(0,r.useState)(null),[u,c]=(0,r.useState)(null),[d,f]=(0,r.useState)(null),[p,h]=(0,r.useState)((()=>{const n=null!==(null==t?void 0:t.get(JT));return!1!==e.shouldPersistHeaders&&n?"true"===(null==t?void 0:t.get(JT)):Boolean(e.shouldPersistHeaders)}));Kk(n,e.headers),Kk(s,e.query),Kk(u,e.response),Kk(d,e.variables);const m=DT({storage:t,shouldPersistHeaders:p}),[g]=(0,r.useState)((()=>{var n,r,i,o,a,s,l,u,c;const d=null!=(r=null!=(n=e.query)?n:null==t?void 0:t.get(ET))?r:null,f=null!=(o=null!=(i=e.variables)?i:null==t?void 0:t.get(zT))?o:null,p=null!=(s=null!=(a=e.headers)?a:null==t?void 0:t.get(sT))?s:null,h=null!=(l=e.response)?l:"",g=xT({query:d,variables:f,headers:p,defaultTabs:e.defaultTabs||e.initialTabs,defaultQuery:e.defaultQuery||XT,defaultHeaders:e.defaultHeaders,storage:t});return m(g),{query:null!=(u=null!=d?d:0===g.activeTabIndex?g.tabs[0].query:null)?u:"",variables:null!=f?f:"",headers:null!=(c=null!=p?p:e.defaultHeaders)?c:"",response:h,tabState:g}})),[v,y]=(0,r.useState)(g.tabState),b=(0,r.useCallback)((e=>{var r;if(e){null==t||t.set(sT,null!=(r=null==n?void 0:n.getValue())?r:"");const e=AT(v,!0);null==t||t.set(BT,e)}else null==t||t.set(sT,""),VT(t);h(e),null==t||t.set(JT,e.toString())}),[t,v,n]),w=(0,r.useRef)();(0,r.useEffect)((()=>{const t=Boolean(e.shouldPersistHeaders);w.current!==t&&(b(t),w.current=t)}),[e.shouldPersistHeaders,b]);const k=IT({queryEditor:s,variableEditor:d,headerEditor:n,responseEditor:u}),T=LT({queryEditor:s,variableEditor:d,headerEditor:n,responseEditor:u}),{onTabChange:x,defaultHeaders:C,children:S}=e,N=(0,r.useCallback)((()=>{y((e=>{const t=k(e),n={tabs:[...t.tabs,MT({headers:C})],activeTabIndex:t.tabs.length};return m(n),T(n.tabs[n.activeTabIndex]),null==x||x(n),n}))}),[C,x,T,m,k]),_=(0,r.useCallback)((e=>{y((t=>{const n=I(O({},t),{activeTabIndex:e});return m(n),T(n.tabs[n.activeTabIndex]),null==x||x(n),n}))}),[x,T,m]),A=(0,r.useCallback)((e=>{y((t=>{const n={tabs:t.tabs.filter(((t,n)=>e!==n)),activeTabIndex:Math.max(t.activeTabIndex-1,0)};return m(n),T(n.tabs[n.activeTabIndex]),null==x||x(n),n}))}),[x,T,m]),D=(0,r.useCallback)((e=>{y((t=>{const n=FT(t,e);return m(n),null==x||x(n),n}))}),[x,m]),{onEditOperationName:L}=e,M=(0,r.useCallback)((e=>{s&&(s.operationName=e,D({operationName:e}),null==L||L(e))}),[L,s,D]),F=(0,r.useMemo)((()=>{const t=new Map;if(Array.isArray(e.externalFragments))for(const n of e.externalFragments)t.set(n.name.value,n);else if("string"==typeof e.externalFragments)(0,a.YR)((0,i.qg)(e.externalFragments,{}),{FragmentDefinition(e){t.set(e.name.value,e)}});else if(e.externalFragments)throw new Error("The `externalFragments` prop must either be a string that contains the fragment definitions in SDL or a list of FragmentDefinitionNode objects.");return t}),[e.externalFragments]),R=(0,r.useMemo)((()=>e.validationRules||[]),[e.validationRules]),P=(0,r.useMemo)((()=>I(O({},v),{addTab:N,changeTab:_,closeTab:A,updateActiveTabValues:D,headerEditor:n,queryEditor:s,responseEditor:u,variableEditor:d,setHeaderEditor:o,setQueryEditor:l,setResponseEditor:c,setVariableEditor:f,setOperationName:M,initialQuery:g.query,initialVariables:g.variables,initialHeaders:g.headers,initialResponse:g.response,externalFragments:F,validationRules:R,shouldPersistHeaders:p,setShouldPersistHeaders:b})),[v,N,_,A,D,n,s,u,d,M,g,F,R,p,b]);return(0,E.jsx)(YT.Provider,{value:P,children:S})}A(KT,"EditorContextProvider"),WT(KT,"EditorContextProvider");const QT=fe(YT),JT="shouldPersistHeaders",XT='# Welcome to GraphiQL\n#\n# GraphiQL is an in-browser tool for writing, validating, and\n# testing GraphQL queries.\n#\n# Type queries into this side of the screen, and you will see intelligent\n# typeaheads aware of the current GraphQL type schema and live syntax and\n# validation errors highlighted within the text.\n#\n# GraphQL queries typically start with a "{" character. Lines that start\n# with a # are ignored.\n#\n# An example GraphQL query might look like:\n#\n# {\n# field(arg: "value") {\n# subField\n# }\n# }\n#\n# Keyboard shortcuts:\n#\n# Prettify query: Shift-Ctrl-P (or press the prettify button)\n#\n# Merge fragments: Shift-Ctrl-M (or press the merge button)\n#\n# Run Query: Ctrl-Enter (or press the play button)\n#\n# Auto Complete: Ctrl-Space (or just start typing)\n#\n\n';var ZT=Object.defineProperty,ex=A(((e,t)=>ZT(e,"name",{value:t,configurable:!0})),"__name$9");function tx(e){var t=e,{isHidden:n}=t,i=D(t,["isHidden"]);const{headerEditor:o}=QT({nonNull:!0,caller:tx}),a=aT(i,tx);return(0,r.useEffect)((()=>{n||null==o||o.refresh()}),[o,n]),(0,E.jsx)("div",{className:M("graphiql-editor",n&&"hidden"),ref:a})}A(tx,"HeaderEditor"),ex(tx,"HeaderEditor");var nx=Object.defineProperty,rx=A(((e,t)=>nx(e,"name",{value:t,configurable:!0})),"__name$8");function ix(e){var t;const[n,i]=(0,r.useState)({width:null,height:null}),[o,a]=(0,r.useState)(null),s=(0,r.useRef)(null),l=null==(t=ox(e.token))?void 0:t.href;(0,r.useEffect)((()=>{if(s.current)return l?void fetch(l,{method:"HEAD"}).then((e=>{a(e.headers.get("Content-Type"))})).catch((()=>{a(null)})):(i({width:null,height:null}),void a(null))}),[l]);const u=null!==n.width&&null!==n.height?(0,E.jsxs)("div",{children:[n.width,"x",n.height,null===o?null:" "+o]}):null;return(0,E.jsxs)("div",{children:[(0,E.jsx)("img",{onLoad:()=>{var e,t,n,r;i({width:null!=(t=null==(e=s.current)?void 0:e.naturalWidth)?t:null,height:null!=(r=null==(n=s.current)?void 0:n.naturalHeight)?r:null})},ref:s,src:l}),u]})}function ox(e){if("string"!==e.type)return;const t=e.string.slice(1).slice(0,-1).trim();try{const{location:e}=window;return new URL(t,e.protocol+"//"+e.host)}catch{return}}function ax(e){return/(bmp|gif|jpeg|jpg|png|svg)$/.test(e.pathname)}A(ix,"ImagePreview"),rx(ix,"ImagePreview"),ix.shouldRender=rx(A((function(e){const t=ox(e);return!!t&&ax(t)}),"shouldRender"),"shouldRender"),A(ox,"tokenToURL"),rx(ox,"tokenToURL"),A(ax,"isImageURL"),rx(ax,"isImageURL");var sx=Object.defineProperty,lx=A(((e,t)=>sx(e,"name",{value:t,configurable:!0})),"__name$7");function ux(e){const t=mT(e,ux);return(0,E.jsx)("div",{className:"graphiql-editor",ref:t})}A(ux,"QueryEditor"),lx(ux,"QueryEditor");var cx=Object.defineProperty,dx=A(((e,t)=>cx(e,"name",{value:t,configurable:!0})),"__name$6");function fx({responseTooltip:e,editorTheme:t=sE,keyMap:i=lE}={},o){const{fetchError:a,validationErrors:s}=SE({nonNull:!0,caller:o||fx}),{initialResponse:l,responseEditor:u,setResponseEditor:c}=QT({nonNull:!0,caller:o||fx}),d=(0,r.useRef)(null),f=(0,r.useRef)(e);return(0,r.useEffect)((()=>{f.current=e}),[e]),(0,r.useEffect)((()=>{let e=!0;return dE([n.e(748).then(n.bind(n,3148)).then((function(e){return e.f})),n.e(748).then(n.bind(n,5983)).then((function(e){return e.b})),n.e(748).then(n.bind(n,924)).then((function(e){return e.d})),n.e(748).then(n.bind(n,1528)).then((function(e){return e.s})),n.e(748).then(n.bind(n,5910)).then((function(e){return e.s})),n.e(748).then(n.bind(n,6113)).then((function(e){return e.j})),n.e(748).then(n.bind(n,7391)).then((function(e){return e.s})),n.e(748).then(n.bind(n,2271)),n.e(748).then(n.bind(n,6681))],{useCommonAddons:!1}).then((n=>{if(!e)return;const r=document.createElement("div");n.registerHelper("info","graphql-results",((e,t,n,i)=>{const o=[],a=f.current;return a&&o.push((0,E.jsx)(a,{pos:i,token:e})),ix.shouldRender(e)&&o.push((0,E.jsx)(ix,{token:e},"image-preview")),o.length?(w.render(o,r),r):(w.unmountComponentAtNode(r),null)}));const i=d.current;if(!i)return;const o=n(i,{value:l,lineWrapping:!0,readOnly:!0,theme:t,mode:"graphql-results",foldGutter:!0,gutters:["CodeMirror-foldgutter"],info:!0,extraKeys:cE});c(o)})),()=>{e=!1}}),[t,l,c]),Qk(u,"keyMap",i),(0,r.useEffect)((()=>{a&&(null==u||u.setValue(a)),s.length>0&&(null==u||u.setValue(G(s)))}),[u,a,s]),d}A(fx,"useResponseEditor"),dx(fx,"useResponseEditor");var px=Object.defineProperty,hx=A(((e,t)=>px(e,"name",{value:t,configurable:!0})),"__name$5");function mx(e){const t=fx(e,mx);return(0,E.jsx)("section",{className:"result-window","aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",ref:t})}A(mx,"ResponseEditor"),hx(mx,"ResponseEditor");var gx=Object.defineProperty,vx=A(((e,t)=>gx(e,"name",{value:t,configurable:!0})),"__name$4");function yx(e){var t=e,{isHidden:n}=t,i=D(t,["isHidden"]);const{variableEditor:o}=QT({nonNull:!0,caller:yx}),a=HT(i,yx);return(0,r.useEffect)((()=>{o&&!n&&o.refresh()}),[o,n]),(0,E.jsx)("div",{className:M("graphiql-editor",n&&"hidden"),ref:a})}A(yx,"VariableEditor"),vx(yx,"VariableEditor");var bx=Object.defineProperty,Ex=A(((e,t)=>bx(e,"name",{value:t,configurable:!0})),"__name$3");function wx({children:e,dangerouslyAssumeSchemaIsValid:t,defaultQuery:n,defaultHeaders:r,defaultTabs:i,externalFragments:o,fetcher:a,getDefaultFieldNames:s,headers:l,initialTabs:u,inputValueDeprecation:c,introspectionQueryName:d,maxHistoryLength:f,onEditOperationName:p,onSchemaChange:h,onTabChange:m,onTogglePluginVisibility:g,operationName:v,plugins:y,query:b,response:w,schema:k,schemaDescription:T,shouldPersistHeaders:x,storage:C,validationRules:S,variables:N,visiblePlugin:_}){return(0,E.jsx)(ge,{storage:C,children:(0,E.jsx)(zb,{maxHistoryLength:f,children:(0,E.jsx)(KT,{defaultQuery:n,defaultHeaders:r,defaultTabs:i,externalFragments:o,headers:l,initialTabs:u,onEditOperationName:p,onTabChange:m,query:b,response:w,shouldPersistHeaders:x,validationRules:S,variables:N,children:(0,E.jsx)(CE,{dangerouslyAssumeSchemaIsValid:t,fetcher:a,inputValueDeprecation:c,introspectionQueryName:d,onSchemaChange:h,schema:k,schemaDescription:T,children:(0,E.jsx)(nE,{getDefaultFieldNames:s,fetcher:a,operationName:v,children:(0,E.jsx)(LE,{children:(0,E.jsx)(Bk,{onTogglePluginVisibility:g,plugins:y,visiblePlugin:_,children:e})})})})})})})}A(wx,"GraphiQLProvider"),Ex(wx,"GraphiQLProvider");var kx=Object.defineProperty,Tx=A(((e,t)=>kx(e,"name",{value:t,configurable:!0})),"__name$2");function xx(){const e=ve(),[t,n]=(0,r.useState)((()=>{if(!e)return null;const t=e.get(Cx);switch(t){case"light":return"light";case"dark":return"dark";default:return"string"==typeof t&&e.set(Cx,""),null}}));(0,r.useLayoutEffect)((()=>{"undefined"!=typeof window&&(document.body.classList.remove("graphiql-light","graphiql-dark"),t&&document.body.classList.add(`graphiql-${t}`))}),[t]);const i=(0,r.useCallback)((t=>{null==e||e.set(Cx,t||""),n(t)}),[e]);return(0,r.useMemo)((()=>({theme:t,setTheme:i})),[t,i])}A(xx,"useTheme"),Tx(xx,"useTheme");const Cx="theme";var Sx=Object.defineProperty,Nx=A(((e,t)=>Sx(e,"name",{value:t,configurable:!0})),"__name$1");function _x({defaultSizeRelation:e=Ox,direction:t,initiallyHidden:n,onHiddenElementChange:i,sizeThresholdFirst:o=100,sizeThresholdSecond:a=100,storageKey:s}){const l=ve(),u=(0,r.useMemo)((()=>pk(500,(e=>{l&&s&&l.set(s,e)}))),[l,s]),[c,d]=(0,r.useState)((()=>{const e=l&&s?l.get(s):null;return e===Ix||"first"===n?"first":e===Ax||"second"===n?"second":null})),f=(0,r.useCallback)((e=>{e!==c&&(d(e),null==i||i(e))}),[c,i]),p=(0,r.useRef)(null),h=(0,r.useRef)(null),m=(0,r.useRef)(null),g=(0,r.useRef)(`${e}`);(0,r.useLayoutEffect)((()=>{const e=l&&s&&l.get(s)||g.current,n="horizontal"===t?"row":"column";p.current&&(p.current.style.display="flex",p.current.style.flexDirection=n,p.current.style.flex=e===Ix||e===Ax?g.current:e),m.current&&(m.current.style.display="flex",m.current.style.flexDirection=n,m.current.style.flex="1"),h.current&&(h.current.style.display="flex",h.current.style.flexDirection=n)}),[t,l,s]);const v=(0,r.useCallback)((e=>{const t="first"===e?p.current:m.current;if(t&&(t.style.left="-1000px",t.style.position="absolute",t.style.opacity="0",t.style.height="500px",t.style.width="500px",p.current)){const e=parseFloat(p.current.style.flex);(!Number.isFinite(e)||e<1)&&(p.current.style.flex="1")}}),[]),y=(0,r.useCallback)((e=>{const t="first"===e?p.current:m.current;if(t&&(t.style.width="",t.style.height="",t.style.opacity="",t.style.position="",t.style.left="",p.current&&l&&s)){const e=null==l?void 0:l.get(s);e!==Ix&&e!==Ax&&(p.current.style.flex=e||g.current)}}),[l,s]);return(0,r.useLayoutEffect)((()=>{"first"===c?v("first"):y("first"),"second"===c?v("second"):y("second")}),[c,v,y]),(0,r.useEffect)((()=>{if(!h.current||!p.current||!m.current)return;const e=h.current,n=p.current,r=n.parentElement,i="horizontal"===t?"clientX":"clientY",s="horizontal"===t?"left":"top",l="horizontal"===t?"right":"bottom",c="horizontal"===t?"clientWidth":"clientHeight";function d(t){t.preventDefault();const d=t[i]-e.getBoundingClientRect()[s];function p(t){if(0===t.buttons)return h();const p=t[i]-r.getBoundingClientRect()[s]-d,m=r.getBoundingClientRect()[l]-t[i]+d-e[c];if(p<o)f("first"),u(Ix);else if(m<a)f("second"),u(Ax);else{f(null);const e=""+p/m;n.style.flex=e,u(e)}}function h(){document.removeEventListener("mousemove",p),document.removeEventListener("mouseup",h)}A(p,"handleMouseMove"),Nx(p,"handleMouseMove"),A(h,"handleMouseUp"),Nx(h,"handleMouseUp"),document.addEventListener("mousemove",p),document.addEventListener("mouseup",h)}function v(){p.current&&(p.current.style.flex=g.current),u(g.current),f(null)}return A(d,"handleMouseDown"),Nx(d,"handleMouseDown"),e.addEventListener("mousedown",d),A(v,"reset"),Nx(v,"reset"),e.addEventListener("dblclick",v),()=>{e.removeEventListener("mousedown",d),e.removeEventListener("dblclick",v)}}),[t,f,o,a,u]),(0,r.useMemo)((()=>({dragBarRef:h,hiddenElement:c,firstRef:p,setHiddenElement:d,secondRef:m})),[c,d])}A(_x,"useDragResize"),Nx(_x,"useDragResize");const Ox=1,Ix="hide-first",Ax="hide-second",Dx=(0,r.forwardRef)(((e,t)=>{var n=e,{label:i,onClick:o}=n,a=D(n,["label","onClick"]);const[s,l]=(0,r.useState)(null),u=(0,r.useCallback)((e=>{try{null==o||o(e),l(null)}catch(e){l(e instanceof Error?e:new Error(`Toolbar button click failed: ${e}`))}}),[o]);return(0,E.jsx)(_b,{label:i,children:(0,E.jsx)(is,I(O({},a),{ref:t,type:"button",className:M("graphiql-toolbar-button",s&&"error",a.className),onClick:u,"aria-label":s?s.message:i,"aria-invalid":s?"true":a["aria-invalid"]}))})}));Dx.displayName="ToolbarButton";var Lx=Object.defineProperty,Mx=A(((e,t)=>Lx(e,"name",{value:t,configurable:!0})),"__name");function Fx(){const{queryEditor:e,setOperationName:t}=QT({nonNull:!0,caller:Fx}),{isFetching:n,isSubscribed:r,operationName:i,run:o,stop:a}=rE({nonNull:!0,caller:Fx}),s=(null==e?void 0:e.operations)||[],l=s.length>1&&"string"!=typeof i,u=n||r,c=(u?"Stop":"Execute")+" query (Ctrl-Enter)",d={type:"button",className:"graphiql-execute-button",children:u?(0,E.jsx)(ts,{}):(0,E.jsx)(Wa,{}),"aria-label":c};return l&&!u?(0,E.jsxs)(Bh,{children:[(0,E.jsx)(_b,{label:c,children:(0,E.jsx)(Bh.Button,O({},d))}),(0,E.jsx)(Bh.List,{children:s.map(((n,r)=>{const i=n.name?n.name.value:`<Unnamed ${n.operation}>`;return(0,E.jsx)(Bh.Item,{onSelect:()=>{var r;const i=null==(r=n.name)?void 0:r.value;e&&i&&i!==e.operationName&&t(i),o()},children:i},`${i}-${r}`)}))})]}):(0,E.jsx)(_b,{label:c,children:(0,E.jsx)("button",I(O({},d),{onClick:()=>{u?a():o()}}))})}A(Fx,"ExecuteButton"),Mx(Fx,"ExecuteButton");const Rx=(0,r.forwardRef)(((e,t)=>{var n=e,{button:r,children:i,label:o}=n,a=D(n,["button","children","label"]);const s=`${o}${a.value?`: ${a.value}`:""}`;return(0,E.jsxs)(qh.Input,I(O({},a),{ref:t,className:M("graphiql-toolbar-listbox",a.className),"aria-label":s,children:[(0,E.jsx)(_b,{label:s,children:(0,E.jsx)(qh.Button,{children:r})}),(0,E.jsx)(qh.Popover,{children:i})]}))}));Rx.displayName="ToolbarListbox",Yc(Rx,{Option:qh.Option});const Px=(0,r.forwardRef)(((e,t)=>{var n=e,{button:r,children:i,label:o}=n,a=D(n,["button","children","label"]);return(0,E.jsxs)(Bh,I(O({},a),{ref:t,children:[(0,E.jsx)(_b,{label:o,children:(0,E.jsx)(Bh.Button,{className:M("graphiql-un-styled graphiql-toolbar-menu",a.className),"aria-label":o,children:r})}),(0,E.jsx)(Bh.List,{children:i})]}))}));Px.displayName="ToolbarMenu",Yc(Px,{Item:Bh.Item})},177:(e,t,n)=>{n.d(t,{k:()=>a});var r=n(1181),i=n(4786),o=n(7167);function a(e){return{Field(t){const n=e.getFieldDef(),o=null==n?void 0:n.deprecationReason;if(n&&null!=o){const a=e.getParentType();null!=a||(0,r.V)(!1),e.reportError(new i.eO(`The field ${a.name}.${n.name} is deprecated. ${o}`,{nodes:t}))}},Argument(t){const n=e.getArgument(),o=null==n?void 0:n.deprecationReason;if(n&&null!=o){const a=e.getDirective();if(null!=a)e.reportError(new i.eO(`Directive "@${a.name}" argument "${n.name}" is deprecated. ${o}`,{nodes:t}));else{const a=e.getParentType(),s=e.getFieldDef();null!=a&&null!=s||(0,r.V)(!1),e.reportError(new i.eO(`Field "${a.name}.${s.name}" argument "${n.name}" is deprecated. ${o}`,{nodes:t}))}}},ObjectField(t){const n=(0,o.MR)(e.getParentInputType());if((0,o.qK)(n)){const r=n.getFields()[t.name.value],o=null==r?void 0:r.deprecationReason;null!=o&&e.reportError(new i.eO(`The input field ${n.name}.${r.name} is deprecated. ${o}`,{nodes:t}))}},EnumValue(t){const n=e.getEnumValue(),a=null==n?void 0:n.deprecationReason;if(n&&null!=a){const s=(0,o.MR)(e.getInputType());null!=s||(0,r.V)(!1),e.reportError(new i.eO(`The enum value "${s.name}.${n.name}" is deprecated. ${a}`,{nodes:t}))}}}}},475:(e,t,n)=>{n.d(t,{Ll:()=>s,aD:()=>o,aZ:()=>r,cE:()=>l,ou:()=>i});class r{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class i{constructor(e,t,n,r,i,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const o={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},a=new Set(Object.keys(o));function s(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&a.has(t)}var l;!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(l||(l={}))},541:(e,t,n)=>{n.d(t,{C:()=>o});var r=n(1181),i=n(4786);function o(e){const t=[];let n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){const e=t.pop();e||(0,r.V)(!1),n=e}},ObjectField(t){const r=t.name.value;n[r]?e.reportError(new i.eO(`There can be only one input field named "${r}".`,{nodes:[n[r],t.name]})):n[r]=t.name}}}},590:(e,t,n)=>{var r;n.d(t,{Y:()=>r}),function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(r||(r={}))},617:(e,t,n)=>{n.d(t,{Y:()=>f,i:()=>d});var r=n(129),i=n(4786),o=n(475),a=n(1578),s=n(7167),l=n(7613),u=n(9488),c=n(8746);function d(e){if((0,c.GU)(e),e.__validationErrors)return e.__validationErrors;const t=new p(e);!function(e){const t=e.schema,n=t.getQueryType();if(n){if(!(0,s.YQ)(n)){var i;e.reportError(`Query root type must be Object type, it cannot be ${(0,r.N)(n)}.`,null!==(i=h(t,o.cE.QUERY))&&void 0!==i?i:n.astNode)}}else e.reportError("Query root type must be provided.",t.astNode);const a=t.getMutationType();var l;a&&!(0,s.YQ)(a)&&e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,r.N)(a)}.`,null!==(l=h(t,o.cE.MUTATION))&&void 0!==l?l:a.astNode);const u=t.getSubscriptionType();var c;u&&!(0,s.YQ)(u)&&e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,r.N)(u)}.`,null!==(c=h(t,o.cE.SUBSCRIPTION))&&void 0!==c?c:u.astNode)}(t),function(e){for(const n of e.schema.getDirectives())if((0,l.qT)(n)){m(e,n),0===n.locations.length&&e.reportError(`Directive @${n.name} must include 1 or more locations.`,n.astNode);for(const i of n.args){var t;m(e,i),(0,s.dX)(i.type)||e.reportError(`The type of @${n.name}(${i.name}:) must be Input Type but got: ${(0,r.N)(i.type)}.`,i.astNode),(0,s.xP)(i)&&null!=i.deprecationReason&&e.reportError(`Required argument @${n.name}(${i.name}:) cannot be deprecated.`,[S(i.astNode),null===(t=i.astNode)||void 0===t?void 0:t.type])}}else e.reportError(`Expected directive but got: ${(0,r.N)(n)}.`,null==n?void 0:n.astNode)}(t),function(e){const t=function(e){const t=Object.create(null),n=[],r=Object.create(null);return function i(o){if(t[o.name])return;t[o.name]=!0,r[o.name]=n.length;const a=Object.values(o.getFields());for(const t of a)if((0,s.bd)(t.type)&&(0,s.qK)(t.type.ofType)){const o=t.type.ofType,a=r[o.name];if(n.push(t),void 0===a)i(o);else{const t=n.slice(a),r=t.map((e=>e.name)).join(".");e.reportError(`Cannot reference Input Object "${o.name}" within itself through a series of non-null fields: "${r}".`,t.map((e=>e.astNode)))}n.pop()}r[o.name]=void 0}}(e),n=e.schema.getTypeMap();for(const i of Object.values(n))(0,s.sy)(i)?((0,u.Yh)(i)||m(e,i),(0,s.YQ)(i)||(0,s.kD)(i)?(g(e,i),v(e,i)):(0,s.CK)(i)?E(e,i):(0,s.oF)(i)?w(e,i):(0,s.qK)(i)&&(k(e,i),t(i))):e.reportError(`Expected GraphQL named type but got: ${(0,r.N)(i)}.`,i.astNode)}(t);const n=t.getErrors();return e.__validationErrors=n,n}function f(e){const t=d(e);if(0!==t.length)throw new Error(t.map((e=>e.message)).join("\n\n"))}class p{constructor(e){this._errors=[],this.schema=e}reportError(e,t){const n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new i.eO(e,{nodes:n}))}getErrors(){return this._errors}}function h(e,t){var n;return null===(n=[e.astNode,...e.extensionASTNodes].flatMap((e=>{var t;return null!==(t=null==e?void 0:e.operationTypes)&&void 0!==t?t:[]})).find((e=>e.operation===t)))||void 0===n?void 0:n.type}function m(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function g(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const l of n){var i;m(e,l),(0,s.oH)(l.type)||e.reportError(`The type of ${t.name}.${l.name} must be Output Type but got: ${(0,r.N)(l.type)}.`,null===(i=l.astNode)||void 0===i?void 0:i.type);for(const n of l.args){const i=n.name;var o,a;m(e,n),(0,s.dX)(n.type)||e.reportError(`The type of ${t.name}.${l.name}(${i}:) must be Input Type but got: ${(0,r.N)(n.type)}.`,null===(o=n.astNode)||void 0===o?void 0:o.type),(0,s.xP)(n)&&null!=n.deprecationReason&&e.reportError(`Required argument ${t.name}.${l.name}(${i}:) cannot be deprecated.`,[S(n.astNode),null===(a=n.astNode)||void 0===a?void 0:a.type])}}}function v(e,t){const n=Object.create(null);for(const i of t.getInterfaces())(0,s.kD)(i)?t!==i?n[i.name]?e.reportError(`Type ${t.name} can only implement ${i.name} once.`,x(t,i)):(n[i.name]=!0,b(e,t,i),y(e,t,i)):e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,x(t,i)):e.reportError(`Type ${(0,r.N)(t)} must only implement Interface types, it cannot implement ${(0,r.N)(i)}.`,x(t,i))}function y(e,t,n){const i=t.getFields();for(const d of Object.values(n.getFields())){const f=d.name,p=i[f];if(p){var o,l;(0,a.sP)(e.schema,p.type,d.type)||e.reportError(`Interface field ${n.name}.${f} expects type ${(0,r.N)(d.type)} but ${t.name}.${f} is type ${(0,r.N)(p.type)}.`,[null===(o=d.astNode)||void 0===o?void 0:o.type,null===(l=p.astNode)||void 0===l?void 0:l.type]);for(const i of d.args){const o=i.name,s=p.args.find((e=>e.name===o));var u,c;s?(0,a.n8)(i.type,s.type)||e.reportError(`Interface field argument ${n.name}.${f}(${o}:) expects type ${(0,r.N)(i.type)} but ${t.name}.${f}(${o}:) is type ${(0,r.N)(s.type)}.`,[null===(u=i.astNode)||void 0===u?void 0:u.type,null===(c=s.astNode)||void 0===c?void 0:c.type]):e.reportError(`Interface field argument ${n.name}.${f}(${o}:) expected but ${t.name}.${f} does not provide it.`,[i.astNode,p.astNode])}for(const r of p.args){const i=r.name;!d.args.find((e=>e.name===i))&&(0,s.xP)(r)&&e.reportError(`Object field ${t.name}.${f} includes required argument ${i} that is missing from the Interface field ${n.name}.${f}.`,[r.astNode,d.astNode])}}else e.reportError(`Interface field ${n.name}.${f} expected but ${t.name} does not provide it.`,[d.astNode,t.astNode,...t.extensionASTNodes])}}function b(e,t,n){const r=t.getInterfaces();for(const i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...x(n,i),...x(t,n)])}function E(e,t){const n=t.getTypes();0===n.length&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);const i=Object.create(null);for(const o of n)i[o.name]?e.reportError(`Union type ${t.name} can only include type ${o.name} once.`,C(t,o.name)):(i[o.name]=!0,(0,s.YQ)(o)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,r.N)(o)}.`,C(t,String(o))))}function w(e,t){const n=t.getValues();0===n.length&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(const t of n)m(e,t)}function k(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const a of n){var i,o;m(e,a),(0,s.dX)(a.type)||e.reportError(`The type of ${t.name}.${a.name} must be Input Type but got: ${(0,r.N)(a.type)}.`,null===(i=a.astNode)||void 0===i?void 0:i.type),(0,s.YX)(a)&&null!=a.deprecationReason&&e.reportError(`Required input field ${t.name}.${a.name} cannot be deprecated.`,[S(a.astNode),null===(o=a.astNode)||void 0===o?void 0:o.type]),t.isOneOf&&T(t,a,e)}}function T(e,t,n){var r;(0,s.bd)(t.type)&&n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,null===(r=t.astNode)||void 0===r?void 0:r.type),void 0!==t.defaultValue&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function x(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap((e=>{var t;return null!==(t=e.interfaces)&&void 0!==t?t:[]})).filter((e=>e.name.value===t.name))}function C(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap((e=>{var t;return null!==(t=e.types)&&void 0!==t?t:[]})).filter((e=>e.name.value===t))}function S(e){var t;return null==e||null===(t=e.directives)||void 0===t?void 0:t.find((e=>e.name.value===l.yK.name))}},726:(e,t,n)=>{n.d(t,{i:()=>l});var r=n(129),i=n(1181),o=n(2242),a=n(3298),s=n(7167);function l(e,t,n){if(e){if(e.kind===a.b.VARIABLE){const r=e.name.value;if(null==n||void 0===n[r])return;const i=n[r];if(null===i&&(0,s.bd)(t))return;return i}if((0,s.bd)(t)){if(e.kind===a.b.NULL)return;return l(e,t.ofType,n)}if(e.kind===a.b.NULL)return null;if((0,s.Fs)(t)){const r=t.ofType;if(e.kind===a.b.LIST){const t=[];for(const i of e.values)if(u(i,n)){if((0,s.bd)(r))return;t.push(null)}else{const e=l(i,r,n);if(void 0===e)return;t.push(e)}return t}const i=l(e,r,n);if(void 0===i)return;return[i]}if((0,s.qK)(t)){if(e.kind!==a.b.OBJECT)return;const r=Object.create(null),i=(0,o.K)(e.fields,(e=>e.name.value));for(const e of Object.values(t.getFields())){const t=i[e.name];if(!t||u(t.value,n)){if(void 0!==e.defaultValue)r[e.name]=e.defaultValue;else if((0,s.bd)(e.type))return;continue}const o=l(t.value,e.type,n);if(void 0===o)return;r[e.name]=o}if(t.isOneOf){const e=Object.keys(r);if(1!==e.length)return;if(null===r[e[0]])return}return r}if((0,s.zf)(t)){let r;try{r=t.parseLiteral(e,n)}catch(e){return}if(void 0===r)return;return r}(0,i.V)(!1,"Unexpected input type: "+(0,r.N)(t))}}function u(e,t){return e.kind===a.b.VARIABLE&&(null==t||void 0===t[e.name.value])}},916:(e,t,n)=>{n.d(t,{A:()=>d,X:()=>c});var r=n(129),i=n(2242),o=n(4786),a=n(3298),s=n(6547),l=n(7167),u=n(7613);function c(e){return{...d(e),Field:{leave(t){var n;const i=e.getFieldDef();if(!i)return!1;const a=new Set(null===(n=t.arguments)||void 0===n?void 0:n.map((e=>e.name.value)));for(const n of i.args)if(!a.has(n.name)&&(0,l.xP)(n)){const a=(0,r.N)(n.type);e.reportError(new o.eO(`Field "${i.name}" argument "${n.name}" of type "${a}" is required, but it was not provided.`,{nodes:t}))}}}}}function d(e){var t;const n=Object.create(null),c=e.getSchema(),d=null!==(t=null==c?void 0:c.getDirectives())&&void 0!==t?t:u.rc;for(const e of d)n[e.name]=(0,i.K)(e.args.filter(l.xP),(e=>e.name));const p=e.getDocument().definitions;for(const e of p)if(e.kind===a.b.DIRECTIVE_DEFINITION){var h;const t=null!==(h=e.arguments)&&void 0!==h?h:[];n[e.name.value]=(0,i.K)(t.filter(f),(e=>e.name.value))}return{Directive:{leave(t){const i=t.name.value,a=n[i];if(a){var u;const n=null!==(u=t.arguments)&&void 0!==u?u:[],c=new Set(n.map((e=>e.name.value)));for(const[n,u]of Object.entries(a))if(!c.has(n)){const a=(0,l.Xj)(u.type)?(0,r.N)(u.type):(0,s.y)(u.type);e.reportError(new o.eO(`Directive "@${i}" argument "${n}" of type "${a}" is required, but it was not provided.`,{nodes:t}))}}}}}}function f(e){return e.type.kind===a.b.NON_NULL_TYPE&&null==e.defaultValue}},924:(e,t,n)=>{n.r(t),n.d(t,{a:()=>s,d:()=>l});var r=n(3338),i=Object.defineProperty,o=(e,t)=>i(e,"name",{value:t,configurable:!0});function a(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}o(a,"_mergeNamespaces");var s={exports:{}};!function(e){function t(t,n,r){var i,o=t.getWrapperElement();return(i=o.appendChild(document.createElement("div"))).className=r?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?i.innerHTML=n:i.appendChild(n),e.addClass(o,"dialog-opened"),i}function n(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}o(t,"dialogDiv"),o(n,"closeNotification"),e.defineExtension("openDialog",(function(r,i,a){a||(a={}),n(this,null);var s=t(this,r,a.bottom),l=!1,u=this;function c(t){if("string"==typeof t)f.value=t;else{if(l)return;l=!0,e.rmClass(s.parentNode,"dialog-opened"),s.parentNode.removeChild(s),u.focus(),a.onClose&&a.onClose(s)}}o(c,"close");var d,f=s.getElementsByTagName("input")[0];return f?(f.focus(),a.value&&(f.value=a.value,!1!==a.selectValueOnOpen&&f.select()),a.onInput&&e.on(f,"input",(function(e){a.onInput(e,f.value,c)})),a.onKeyUp&&e.on(f,"keyup",(function(e){a.onKeyUp(e,f.value,c)})),e.on(f,"keydown",(function(t){a&&a.onKeyDown&&a.onKeyDown(t,f.value,c)||((27==t.keyCode||!1!==a.closeOnEnter&&13==t.keyCode)&&(f.blur(),e.e_stop(t),c()),13==t.keyCode&&i(f.value,t))})),!1!==a.closeOnBlur&&e.on(s,"focusout",(function(e){null!==e.relatedTarget&&c()}))):(d=s.getElementsByTagName("button")[0])&&(e.on(d,"click",(function(){c(),u.focus()})),!1!==a.closeOnBlur&&e.on(d,"blur",c),d.focus()),c})),e.defineExtension("openConfirm",(function(r,i,a){n(this,null);var s=t(this,r,a&&a.bottom),l=s.getElementsByTagName("button"),u=!1,c=this,d=1;function f(){u||(u=!0,e.rmClass(s.parentNode,"dialog-opened"),s.parentNode.removeChild(s),c.focus())}o(f,"close"),l[0].focus();for(var p=0;p<l.length;++p){var h=l[p];!function(t){e.on(h,"click",(function(n){e.e_preventDefault(n),f(),t&&t(c)}))}(i[p]),e.on(h,"blur",(function(){--d,setTimeout((function(){d<=0&&f()}),200)})),e.on(h,"focus",(function(){++d}))}})),e.defineExtension("openNotification",(function(r,i){n(this,c);var a,s=t(this,r,i&&i.bottom),l=!1,u=i&&void 0!==i.duration?i.duration:5e3;function c(){l||(l=!0,clearTimeout(a),e.rmClass(s.parentNode,"dialog-opened"),s.parentNode.removeChild(s))}return o(c,"close"),e.on(s,"click",(function(t){e.e_preventDefault(t),c()})),u&&(a=setTimeout(c,u)),c}))}(r.a.exports);var l=a({__proto__:null,default:s.exports},[s.exports])},961:(e,t,n)=>{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2551)},962:(e,t,n)=>{n.d(t,{J:()=>o});var r=n(5551),i=n(4786);function o(e){return{Field:t,Directive:t};function t(t){var n;const o=null!==(n=t.arguments)&&void 0!==n?n:[],a=(0,r.$)(o,(e=>e.name.value));for(const[t,n]of a)n.length>1&&e.reportError(new i.eO(`There can be only one argument named "${t}".`,{nodes:n.map((e=>e.name))}))}}},1014:(e,t,n)=>{n.d(t,{X:()=>o});var r=n(4786),i=n(7167);function o(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),i=Object.create(null);return{InputObjectTypeDefinition:o,InputObjectTypeExtension:o,InterfaceTypeDefinition:o,InterfaceTypeExtension:o,ObjectTypeDefinition:o,ObjectTypeExtension:o};function o(t){var o;const s=t.name.value;i[s]||(i[s]=Object.create(null));const l=null!==(o=t.fields)&&void 0!==o?o:[],u=i[s];for(const t of l){const i=t.name.value;a(n[s],i)?e.reportError(new r.eO(`Field "${s}.${i}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):u[i]?e.reportError(new r.eO(`Field "${s}.${i}" can only be defined once.`,{nodes:[u[i],t.name]})):u[i]=t.name}return!1}}function a(e,t){return!!((0,i.YQ)(e)||(0,i.kD)(e)||(0,i.qK)(e))&&null!=e.getFields()[t]}},1020:(e,t,n)=>{n(5228);var r=n(6540),i=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),t.Fragment=o("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,o={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:u,ref:c,props:o,_owner:a.current}}t.jsx=u,t.jsxs=u},1057:(e,t,n)=>{n(7801)},1181:(e,t,n)=>{function r(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}n.d(t,{V:()=>r})},1260:(e,t,n)=>{n.r(t);var r=n(3338),i=n(9654),o=(n(166),n(6540),n(4848),n(961),n(7437),Object.defineProperty),a=(e,t)=>o(e,"name",{value:t,configurable:!0});function s(e,t){const n=t.target||t.srcElement;if(!(n instanceof HTMLElement))return;if("SPAN"!==(null==n?void 0:n.nodeName))return;const r=n.getBoundingClientRect(),i={left:(r.left+r.right)/2,top:(r.top+r.bottom)/2};e.state.jump.cursor=i,e.state.jump.isHoldingModifier&&f(e)}function l(e){e.state.jump.isHoldingModifier||!e.state.jump.cursor?e.state.jump.isHoldingModifier&&e.state.jump.marker&&p(e):e.state.jump.cursor=null}function u(e,t){if(e.state.jump.isHoldingModifier||!d(t.key))return;e.state.jump.isHoldingModifier=!0,e.state.jump.cursor&&f(e);const n=a((a=>{a.code===t.code&&(e.state.jump.isHoldingModifier=!1,e.state.jump.marker&&p(e),r.C.off(document,"keyup",n),r.C.off(document,"click",i),e.off("mousedown",o))}),"onKeyUp"),i=a((t=>{const{destination:n,options:r}=e.state.jump;n&&r.onClick(n,t)}),"onClick"),o=a(((t,n)=>{e.state.jump.destination&&(n.codemirrorIgnore=!0)}),"onMouseDown");r.C.on(document,"keyup",n),r.C.on(document,"click",i),e.on("mousedown",o)}r.C.defineOption("jump",!1,((e,t,n)=>{if(n&&n!==r.C.Init){const t=e.state.jump.onMouseOver;r.C.off(e.getWrapperElement(),"mouseover",t);const n=e.state.jump.onMouseOut;r.C.off(e.getWrapperElement(),"mouseout",n),r.C.off(document,"keydown",e.state.jump.onKeyDown),delete e.state.jump}if(t){const n=e.state.jump={options:t,onMouseOver:s.bind(null,e),onMouseOut:l.bind(null,e),onKeyDown:u.bind(null,e)};r.C.on(e.getWrapperElement(),"mouseover",n.onMouseOver),r.C.on(e.getWrapperElement(),"mouseout",n.onMouseOut),r.C.on(document,"keydown",n.onKeyDown)}})),a(s,"onMouseOver"),a(l,"onMouseOut"),a(u,"onKeyDown");const c="undefined"!=typeof navigator&&navigator&&navigator.appVersion.includes("Mac");function d(e){return e===(c?"Meta":"Control")}function f(e){if(e.state.jump.marker)return;const{cursor:t,options:n}=e.state.jump,r=e.coordsChar(t),i=e.getTokenAt(r,!0),o=n.getDestination||e.getHelper(r,"jump");if(o){const t=o(i,n,e);if(t){const n=e.markText({line:r.line,ch:i.start},{line:r.line,ch:i.end},{className:"CodeMirror-jump-token"});e.state.jump.marker=n,e.state.jump.destination=t}}}function p(e){const{marker:t}=e.state.jump;e.state.jump.marker=null,e.state.jump.destination=null,t.clear()}a(d,"isJumpModifier"),a(f,"enableJumpMode"),a(p,"disableJumpMode"),r.C.registerHelper("jump","graphql",((e,t)=>{if(!t.schema||!t.onClick||!e.state)return;const{state:n}=e,{kind:r,step:o}=n,a=(0,i.g)(t.schema,n);return"Field"===r&&0===o&&a.fieldDef||"AliasedField"===r&&2===o&&a.fieldDef?(0,i.a)(a):"Directive"===r&&1===o&&a.directiveDef?(0,i.b)(a):"Argument"===r&&0===o&&a.argDef?(0,i.c)(a):"EnumValue"===r&&a.enumValue?(0,i.d)(a):"NamedType"===r&&a.type?(0,i.e)(a):void 0}))},1528:(e,t,n)=>{n.r(t),n.d(t,{s:()=>c});var r=n(3338),i=n(5910),o=n(924),a=Object.defineProperty,s=(e,t)=>a(e,"name",{value:t,configurable:!0});function l(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}s(l,"_mergeNamespaces");var u={exports:{}};!function(e){function t(e,t){return"string"==typeof e?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(t){e.lastIndex=t.pos;var n=e.exec(t.string);if(n&&n.index==t.pos)return t.pos+=n[0].length||1,"searching";n?t.pos=n.index:t.skipToEnd()}}}function n(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function r(e){return e.state.search||(e.state.search=new n)}function i(e){return"string"==typeof e&&e==e.toLowerCase()}function o(e,t,n){return e.getSearchCursor(t,n,{caseFold:i(t),multiline:!0})}function a(e,t,n,r,i){e.openDialog(t,r,{value:n,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){m(e)},onKeyDown:i,bottom:e.options.search.bottom})}function l(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0,bottom:e.options.search.bottom}):i(prompt(n,r))}function u(e,t,n,r){e.openConfirm?e.openConfirm(t,r):confirm(n)&&r[0]()}function c(e){return e.replace(/\\([nrt\\])/g,(function(e,t){return"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"==t?"\\":e}))}function d(e){var t=e.match(/^\/(.*)\/([a-z]*)$/);if(t)try{e=new RegExp(t[1],-1==t[2].indexOf("i")?"":"i")}catch(e){}else e=c(e);return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function f(e,n,r){n.queryText=r,n.query=d(r),e.removeOverlay(n.overlay,i(n.query)),n.overlay=t(n.query,i(n.query)),e.addOverlay(n.overlay),e.showMatchesOnScrollbar&&(n.annotate&&(n.annotate.clear(),n.annotate=null),n.annotate=e.showMatchesOnScrollbar(n.query,i(n.query)))}function p(t,n,i,o){var u=r(t);if(u.query)return h(t,n);var c=t.getSelection()||u.lastQuery;if(c instanceof RegExp&&"x^"==c.source&&(c=null),i&&t.openDialog){var d=null,p=s((function(n,r){e.e_stop(r),n&&(n!=u.queryText&&(f(t,u,n),u.posFrom=u.posTo=t.getCursor()),d&&(d.style.opacity=1),h(t,r.shiftKey,(function(e,n){var r;n.line<3&&document.querySelector&&(r=t.display.wrapper.querySelector(".CodeMirror-dialog"))&&r.getBoundingClientRect().bottom-4>t.cursorCoords(n,"window").top&&((d=r).style.opacity=.4)})))}),"searchNext");a(t,v(t),c,p,(function(n,i){var o=e.keyName(n),a=t.getOption("extraKeys"),s=a&&a[o]||e.keyMap[t.getOption("keyMap")][o];"findNext"==s||"findPrev"==s||"findPersistentNext"==s||"findPersistentPrev"==s?(e.e_stop(n),f(t,r(t),i),t.execCommand(s)):"find"!=s&&"findPersistent"!=s||(e.e_stop(n),p(i,n))})),o&&c&&(f(t,u,c),h(t,n))}else l(t,v(t),"Search for:",c,(function(e){e&&!u.query&&t.operation((function(){f(t,u,e),u.posFrom=u.posTo=t.getCursor(),h(t,n)}))}))}function h(t,n,i){t.operation((function(){var a=r(t),s=o(t,a.query,n?a.posFrom:a.posTo);(s.find(n)||(s=o(t,a.query,n?e.Pos(t.lastLine()):e.Pos(t.firstLine(),0))).find(n))&&(t.setSelection(s.from(),s.to()),t.scrollIntoView({from:s.from(),to:s.to()},20),a.posFrom=s.from(),a.posTo=s.to(),i&&i(s.from(),s.to()))}))}function m(e){e.operation((function(){var t=r(e);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,e.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))}))}function g(e,t){var n=e?document.createElement(e):document.createDocumentFragment();for(var r in t)n[r]=t[r];for(var i=2;i<arguments.length;i++){var o=arguments[i];n.appendChild("string"==typeof o?document.createTextNode(o):o)}return n}function v(e){return g("",null,g("span",{className:"CodeMirror-search-label"},e.phrase("Search:"))," ",g("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",g("span",{style:"color: #888",className:"CodeMirror-search-hint"},e.phrase("(Use /re/ syntax for regexp search)")))}function y(e){return g("",null," ",g("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",g("span",{style:"color: #888",className:"CodeMirror-search-hint"},e.phrase("(Use /re/ syntax for regexp search)")))}function b(e){return g("",null,g("span",{className:"CodeMirror-search-label"},e.phrase("With:"))," ",g("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"}))}function E(e){return g("",null,g("span",{className:"CodeMirror-search-label"},e.phrase("Replace?"))," ",g("button",{},e.phrase("Yes"))," ",g("button",{},e.phrase("No"))," ",g("button",{},e.phrase("All"))," ",g("button",{},e.phrase("Stop")))}function w(e,t,n){e.operation((function(){for(var r=o(e,t);r.findNext();)if("string"!=typeof t){var i=e.getRange(r.from(),r.to()).match(t);r.replace(n.replace(/\$(\d)/g,(function(e,t){return i[t]})))}else r.replace(n)}))}function k(e,t){if(!e.getOption("readOnly")){var n=e.getSelection()||r(e).lastQuery,i=t?e.phrase("Replace all:"):e.phrase("Replace:"),a=g("",null,g("span",{className:"CodeMirror-search-label"},i),y(e));l(e,a,i,n,(function(n){n&&(n=d(n),l(e,b(e),e.phrase("Replace with:"),"",(function(r){if(r=c(r),t)w(e,n,r);else{m(e);var i=o(e,n,e.getCursor("from")),a=s((function(){var t,s=i.from();!(t=i.findNext())&&(i=o(e,n),!(t=i.findNext())||s&&i.from().line==s.line&&i.from().ch==s.ch)||(e.setSelection(i.from(),i.to()),e.scrollIntoView({from:i.from(),to:i.to()}),u(e,E(e),e.phrase("Replace?"),[function(){l(t)},a,function(){w(e,n,r)}]))}),"advance"),l=s((function(e){i.replace("string"==typeof n?r:r.replace(/\$(\d)/g,(function(t,n){return e[n]}))),a()}),"doReplace");a()}})))}))}}e.defineOption("search",{bottom:!1}),s(t,"searchOverlay"),s(n,"SearchState"),s(r,"getSearchState"),s(i,"queryCaseInsensitive"),s(o,"getSearchCursor"),s(a,"persistentDialog"),s(l,"dialog"),s(u,"confirmDialog"),s(c,"parseString"),s(d,"parseQuery"),s(f,"startSearch"),s(p,"doSearch"),s(h,"findNext"),s(m,"clearSearch"),s(g,"el"),s(v,"getQueryDialog"),s(y,"getReplaceQueryDialog"),s(b,"getReplacementQueryDialog"),s(E,"getDoReplaceConfirm"),s(w,"replaceAll"),s(k,"replace"),e.commands.find=function(e){m(e),p(e)},e.commands.findPersistent=function(e){m(e),p(e,!1,!0)},e.commands.findPersistentNext=function(e){p(e,!1,!0,!0)},e.commands.findPersistentPrev=function(e){p(e,!0,!0,!0)},e.commands.findNext=p,e.commands.findPrev=function(e){p(e,!0)},e.commands.clearSearch=m,e.commands.replace=k,e.commands.replaceAll=function(e){k(e,!0)}}(r.a.exports,i.a.exports,o.a.exports);var c=l({__proto__:null,default:u.exports},[u.exports])},1578:(e,t,n)=>{n.d(t,{n8:()=>i,sP:()=>o,uI:()=>a});var r=n(7167);function i(e,t){return e===t||((0,r.bd)(e)&&(0,r.bd)(t)||!(!(0,r.Fs)(e)||!(0,r.Fs)(t)))&&i(e.ofType,t.ofType)}function o(e,t,n){return t===n||((0,r.bd)(n)?!!(0,r.bd)(t)&&o(e,t.ofType,n.ofType):(0,r.bd)(t)?o(e,t.ofType,n):(0,r.Fs)(n)?!!(0,r.Fs)(t)&&o(e,t.ofType,n.ofType):!(0,r.Fs)(t)&&(0,r.Lc)(n)&&((0,r.kD)(t)||(0,r.YQ)(t))&&e.isSubType(n,t))}function a(e,t,n){return t===n||((0,r.Lc)(t)?(0,r.Lc)(n)?e.getPossibleTypes(t).some((t=>e.isSubType(n,t))):e.isSubType(t,n):!!(0,r.Lc)(n)&&e.isSubType(n,t))}},1626:(e,t,n)=>{n.d(t,{S:()=>u,_:()=>l});var r=n(3298),i=n(7167),o=n(7613),a=n(9581),s=n(4803);function l(e,t,n,r,i){const o=new Map;return c(e,t,n,r,i,o,new Set),o}function u(e,t,n,r,i){const o=new Map,a=new Set;for(const s of i)s.selectionSet&&c(e,t,n,r,s.selectionSet,o,a);return o}function c(e,t,n,i,o,a,s){for(const u of o.selections)switch(u.kind){case r.b.FIELD:{if(!d(n,u))continue;const e=(l=u).alias?l.alias.value:l.name.value,t=a.get(e);void 0!==t?t.push(u):a.set(e,[u]);break}case r.b.INLINE_FRAGMENT:if(!d(n,u)||!f(e,u,i))continue;c(e,t,n,i,u.selectionSet,a,s);break;case r.b.FRAGMENT_SPREAD:{const r=u.name.value;if(s.has(r)||!d(n,u))continue;s.add(r);const o=t[r];if(!o||!f(e,o,i))continue;c(e,t,n,i,o.selectionSet,a,s);break}}var l}function d(e,t){const n=(0,s.YY)(o.MQ,t,e);if(!0===(null==n?void 0:n.if))return!1;const r=(0,s.YY)(o.HQ,t,e);return!1!==(null==r?void 0:r.if)}function f(e,t,n){const r=t.typeCondition;if(!r)return!0;const o=(0,a.v)(e,r);return o===n||!!(0,i.Lc)(o)&&e.isSubType(o,n)}},1633:(e,t,n)=>{n.d(t,{K:()=>d});var r=n(129),i=n(4786),o=n(3298),a=n(6547),s=n(7167),l=n(1974),u=n(9581);function c(e){return Array.isArray(e)?e.map((([e,t])=>`subfields "${e}" conflict because `+c(t))).join(" and "):e}function d(e){const t=new w,n=new k,r=new Map;return{SelectionSet(o){const a=function(e,t,n,r,i,o){const a=[],[s,l]=y(e,t,i,o);if(function(e,t,n,r,i,o){for(const[a,s]of Object.entries(o))if(s.length>1)for(let o=0;o<s.length;o++)for(let l=o+1;l<s.length;l++){const u=m(e,n,r,i,!1,a,s[o],s[l]);u&&t.push(u)}}(e,a,t,n,r,s),0!==l.length)for(let i=0;i<l.length;i++){f(e,a,t,n,r,!1,s,l[i]);for(let o=i+1;o<l.length;o++)p(e,a,t,n,r,!1,l[i],l[o])}return a}(e,r,t,n,e.getParentType(),o);for(const[[t,n],r,o]of a){const a=c(n);e.reportError(new i.eO(`Fields "${t}" conflict because ${a}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:r.concat(o)}))}}}}function f(e,t,n,r,i,o,a,s){if(r.has(a,s,o))return;r.add(a,s,o);const l=e.getFragment(s);if(!l)return;const[u,c]=b(e,n,l);if(a!==u){h(e,t,n,r,i,o,a,u);for(const s of c)f(e,t,n,r,i,o,a,s)}}function p(e,t,n,r,i,o,a,s){if(a===s)return;if(i.has(a,s,o))return;i.add(a,s,o);const l=e.getFragment(a),u=e.getFragment(s);if(!l||!u)return;const[c,d]=b(e,n,l),[f,m]=b(e,n,u);h(e,t,n,r,i,o,c,f);for(const s of m)p(e,t,n,r,i,o,a,s);for(const a of d)p(e,t,n,r,i,o,a,s)}function h(e,t,n,r,i,o,a,s){for(const[l,u]of Object.entries(a)){const a=s[l];if(a)for(const s of u)for(const u of a){const a=m(e,n,r,i,o,l,s,u);a&&t.push(a)}}}function m(e,t,n,i,o,a,l,u){const[c,d,m]=l,[b,E,w]=u,k=o||c!==b&&(0,s.YQ)(c)&&(0,s.YQ)(b);if(!k){const e=d.name.value,t=E.name.value;if(e!==t)return[[a,`"${e}" and "${t}" are different fields`],[d],[E]];if(!function(e,t){const n=e.arguments,r=t.arguments;if(void 0===n||0===n.length)return void 0===r||0===r.length;if(void 0===r||0===r.length)return!1;if(n.length!==r.length)return!1;const i=new Map(r.map((({name:e,value:t})=>[e.value,t])));return n.every((e=>{const t=e.value,n=i.get(e.name.value);return void 0!==n&&g(t)===g(n)}))}(d,E))return[[a,"they have differing arguments"],[d],[E]]}const T=null==m?void 0:m.type,x=null==w?void 0:w.type;if(T&&x&&v(T,x))return[[a,`they return conflicting types "${(0,r.N)(T)}" and "${(0,r.N)(x)}"`],[d],[E]];const C=d.selectionSet,S=E.selectionSet;if(C&&S){const r=function(e,t,n,r,i,o,a,s,l){const u=[],[c,d]=y(e,t,o,a),[m,g]=y(e,t,s,l);h(e,u,t,n,r,i,c,m);for(const o of g)f(e,u,t,n,r,i,c,o);for(const o of d)f(e,u,t,n,r,i,m,o);for(const o of d)for(const a of g)p(e,u,t,n,r,i,o,a);return u}(e,t,n,i,k,(0,s.MR)(T),C,(0,s.MR)(x),S);return function(e,t,n,r){if(e.length>0)return[[t,e.map((([e])=>e))],[n,...e.map((([,e])=>e)).flat()],[r,...e.map((([,,e])=>e)).flat()]]}(r,a,d,E)}}function g(e){return(0,a.y)((0,l.M)(e))}function v(e,t){return(0,s.Fs)(e)?!(0,s.Fs)(t)||v(e.ofType,t.ofType):!!(0,s.Fs)(t)||((0,s.bd)(e)?!(0,s.bd)(t)||v(e.ofType,t.ofType):!!(0,s.bd)(t)||!(!(0,s.zf)(e)&&!(0,s.zf)(t))&&e!==t)}function y(e,t,n,r){const i=t.get(r);if(i)return i;const o=Object.create(null),a=Object.create(null);E(e,n,r,o,a);const s=[o,Object.keys(a)];return t.set(r,s),s}function b(e,t,n){const r=t.get(n.selectionSet);if(r)return r;const i=(0,u.v)(e.getSchema(),n.typeCondition);return y(e,t,i,n.selectionSet)}function E(e,t,n,r,i){for(const a of n.selections)switch(a.kind){case o.b.FIELD:{const e=a.name.value;let n;((0,s.YQ)(t)||(0,s.kD)(t))&&(n=t.getFields()[e]);const i=a.alias?a.alias.value:e;r[i]||(r[i]=[]),r[i].push([t,a,n]);break}case o.b.FRAGMENT_SPREAD:i[a.name.value]=!0;break;case o.b.INLINE_FRAGMENT:{const n=a.typeCondition,o=n?(0,u.v)(e.getSchema(),n):t;E(e,o,a.selectionSet,r,i);break}}}class w{constructor(){this._data=new Map}has(e,t,n){var r;const i=null===(r=this._data.get(e))||void 0===r?void 0:r.get(t);return void 0!==i&&(!!n||n===i)}add(e,t,n){const r=this._data.get(e);void 0===r?this._data.set(e,new Map([[t,n]])):r.set(t,n)}}class k{constructor(){this._orderedPairSet=new w}has(e,t,n){return e<t?this._orderedPairSet.has(e,t,n):this._orderedPairSet.has(t,e,n)}add(e,t,n){e<t?this._orderedPairSet.add(e,t,n):this._orderedPairSet.add(t,e,n)}}},1810:(e,t,n)=>{function r(e,t,n){return{prev:e,key:t,typename:n}}function i(e){const t=[];let n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}n.d(t,{A:()=>i,f:()=>r})},1974:(e,t,n)=>{n.d(t,{M:()=>o});var r=n(9779),i=n(3298);function o(e){switch(e.kind){case i.b.OBJECT:return{...e,fields:(t=e.fields,t.map((e=>({...e,value:o(e.value)}))).sort(((e,t)=>(0,r.p)(e.name.value,t.name.value))))};case i.b.LIST:return{...e,values:e.values.map(o)};case i.b.INT:case i.b.FLOAT:case i.b.STRING:case i.b.BOOLEAN:case i.b.NULL:case i.b.ENUM:case i.b.VARIABLE:return e}var t}},2029:(e,t,n)=>{n.d(t,{S:()=>d});var r=n(8100),i=n(129),o=n(1181),a=n(2239),s=n(4786),l=n(3298),u=n(6623),c=n(7167);function d(e){const t=e.getSchema(),n=Object.create(null);for(const t of e.getDocument().definitions)(0,u.a6)(t)&&(n[t.name.value]=t);return{ScalarTypeExtension:d,ObjectTypeExtension:d,InterfaceTypeExtension:d,UnionTypeExtension:d,EnumTypeExtension:d,InputObjectTypeExtension:d};function d(u){const d=u.name.value,p=n[d],h=null==t?void 0:t.getType(d);let m;if(p?m=f[p.kind]:h&&(g=h,m=(0,c.lg)(g)?l.b.SCALAR_TYPE_EXTENSION:(0,c.YQ)(g)?l.b.OBJECT_TYPE_EXTENSION:(0,c.kD)(g)?l.b.INTERFACE_TYPE_EXTENSION:(0,c.CK)(g)?l.b.UNION_TYPE_EXTENSION:(0,c.oF)(g)?l.b.ENUM_TYPE_EXTENSION:(0,c.qK)(g)?l.b.INPUT_OBJECT_TYPE_EXTENSION:void(0,o.V)(!1,"Unexpected type: "+(0,i.N)(g))),m){if(m!==u.kind){const t=function(e){switch(e){case l.b.SCALAR_TYPE_EXTENSION:return"scalar";case l.b.OBJECT_TYPE_EXTENSION:return"object";case l.b.INTERFACE_TYPE_EXTENSION:return"interface";case l.b.UNION_TYPE_EXTENSION:return"union";case l.b.ENUM_TYPE_EXTENSION:return"enum";case l.b.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,o.V)(!1,"Unexpected kind: "+(0,i.N)(e))}}(u.kind);e.reportError(new s.eO(`Cannot extend non-${t} type "${d}".`,{nodes:p?[p,u]:u}))}}else{const i=Object.keys({...n,...null==t?void 0:t.getTypeMap()}),o=(0,a.x)(d,i);e.reportError(new s.eO(`Cannot extend type "${d}" because it is not defined.`+(0,r.a)(o),{nodes:u.name}))}var g}}const f={[l.b.SCALAR_TYPE_DEFINITION]:l.b.SCALAR_TYPE_EXTENSION,[l.b.OBJECT_TYPE_DEFINITION]:l.b.OBJECT_TYPE_EXTENSION,[l.b.INTERFACE_TYPE_DEFINITION]:l.b.INTERFACE_TYPE_EXTENSION,[l.b.UNION_TYPE_DEFINITION]:l.b.UNION_TYPE_EXTENSION,[l.b.ENUM_TYPE_DEFINITION]:l.b.ENUM_TYPE_EXTENSION,[l.b.INPUT_OBJECT_TYPE_DEFINITION]:l.b.INPUT_OBJECT_TYPE_EXTENSION}},2101:(e,t,n)=>{n.d(t,{e:()=>c});var r=n(129),i=n(1181),o=n(4786),a=n(475),s=n(2369),l=n(3298),u=n(7613);function c(e){const t=Object.create(null),n=e.getSchema(),c=n?n.getDirectives():u.rc;for(const e of c)t[e.name]=e.locations;const d=e.getDocument().definitions;for(const e of d)e.kind===l.b.DIRECTIVE_DEFINITION&&(t[e.name.value]=e.locations.map((e=>e.value)));return{Directive(n,u,c,d,f){const p=n.name.value,h=t[p];if(!h)return void e.reportError(new o.eO(`Unknown directive "@${p}".`,{nodes:n}));const m=function(e){const t=e[e.length-1];switch("kind"in t||(0,i.V)(!1),t.kind){case l.b.OPERATION_DEFINITION:return function(e){switch(e){case a.cE.QUERY:return s.H.QUERY;case a.cE.MUTATION:return s.H.MUTATION;case a.cE.SUBSCRIPTION:return s.H.SUBSCRIPTION}}(t.operation);case l.b.FIELD:return s.H.FIELD;case l.b.FRAGMENT_SPREAD:return s.H.FRAGMENT_SPREAD;case l.b.INLINE_FRAGMENT:return s.H.INLINE_FRAGMENT;case l.b.FRAGMENT_DEFINITION:return s.H.FRAGMENT_DEFINITION;case l.b.VARIABLE_DEFINITION:return s.H.VARIABLE_DEFINITION;case l.b.SCHEMA_DEFINITION:case l.b.SCHEMA_EXTENSION:return s.H.SCHEMA;case l.b.SCALAR_TYPE_DEFINITION:case l.b.SCALAR_TYPE_EXTENSION:return s.H.SCALAR;case l.b.OBJECT_TYPE_DEFINITION:case l.b.OBJECT_TYPE_EXTENSION:return s.H.OBJECT;case l.b.FIELD_DEFINITION:return s.H.FIELD_DEFINITION;case l.b.INTERFACE_TYPE_DEFINITION:case l.b.INTERFACE_TYPE_EXTENSION:return s.H.INTERFACE;case l.b.UNION_TYPE_DEFINITION:case l.b.UNION_TYPE_EXTENSION:return s.H.UNION;case l.b.ENUM_TYPE_DEFINITION:case l.b.ENUM_TYPE_EXTENSION:return s.H.ENUM;case l.b.ENUM_VALUE_DEFINITION:return s.H.ENUM_VALUE;case l.b.INPUT_OBJECT_TYPE_DEFINITION:case l.b.INPUT_OBJECT_TYPE_EXTENSION:return s.H.INPUT_OBJECT;case l.b.INPUT_VALUE_DEFINITION:{const t=e[e.length-3];return"kind"in t||(0,i.V)(!1),t.kind===l.b.INPUT_OBJECT_TYPE_DEFINITION?s.H.INPUT_FIELD_DEFINITION:s.H.ARGUMENT_DEFINITION}default:(0,i.V)(!1,"Unexpected kind: "+(0,r.N)(t.kind))}}(f);m&&!h.includes(m)&&e.reportError(new o.eO(`Directive "@${p}" may not be used on ${m}.`,{nodes:n}))}}}},2239:(e,t,n)=>{n.d(t,{x:()=>i});var r=n(9779);function i(e,t){const n=Object.create(null),i=new o(e),a=Math.floor(.4*e.length)+1;for(const e of t){const t=i.measure(e,a);void 0!==t&&(n[e]=t)}return Object.keys(n).sort(((e,t)=>{const i=n[e]-n[t];return 0!==i?i:(0,r.p)(e,t)}))}class o{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=a(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;const n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let r=a(n),i=this._inputArray;if(r.length<i.length){const e=r;r=i,i=e}const o=r.length,s=i.length;if(o-s>t)return;const l=this._rows;for(let e=0;e<=s;e++)l[0][e]=e;for(let e=1;e<=o;e++){const n=l[(e-1)%3],o=l[e%3];let a=o[0]=e;for(let t=1;t<=s;t++){const s=r[e-1]===i[t-1]?0:1;let u=Math.min(n[t]+1,o[t-1]+1,n[t-1]+s);if(e>1&&t>1&&r[e-1]===i[t-2]&&r[e-2]===i[t-1]){const n=l[(e-2)%3][t-2];u=Math.min(u,n+1)}u<a&&(a=u),o[t]=u}if(a>t)return}const u=l[o%3][s];return u<=t?u:void 0}}function a(e){const t=e.length,n=new Array(t);for(let r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}},2242:(e,t,n)=>{function r(e,t){const n=Object.create(null);for(const r of e)n[t(r)]=r;return n}n.d(t,{K:()=>r})},2244:(e,t,n)=>{n.d(t,{$n:()=>r.aH,B4:()=>r.H,D3:()=>r.ad,DP:()=>r.aa,E5:()=>r.j,G0:()=>r.V,IB:()=>r.aR,Ln:()=>r.k,Mt:()=>r.af,N8:()=>r.aG,Q:()=>r.a2,RG:()=>r.ay,Td:()=>r.ah,Vm:()=>r.v,Ze:()=>r.aB,_1:()=>r.au,c1:()=>r.ax,cl:()=>r.aS,e2:()=>r.aI,eK:()=>r.a9,jf:()=>r.az,lG:()=>r.aJ,m_:()=>r.aQ,mi:()=>r.f,ny:()=>r.R,oz:()=>r.aO,qf:()=>r.ab,ql:()=>r.a3,re:()=>r.as,tU:()=>r.aP,wQ:()=>r.a6,wY:()=>r.Q,xb:()=>r.e,y$:()=>r.aN});var r=n(166);n(6540),n(4848),n(961)},2271:(e,t,n)=>{n.r(t);var r=n(3338),i=n(166),o=n(8078);n(6540),n(4848),n(961),r.C.defineMode("graphql-results",(e=>{const t=(0,i.o)({eatWhitespace:e=>e.eatSpace(),lexRules:a,parseRules:s,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:o.i,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}}));const a={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},s={Document:[(0,i.p)("{"),(0,i.l)("Entry",(0,i.p)(",")),(0,i.p)("}")],Entry:[(0,i.t)("String","def"),(0,i.p)(":"),"Value"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[(0,i.t)("Number","number")],StringValue:[(0,i.t)("String","string")],BooleanValue:[(0,i.t)("Keyword","builtin")],NullValue:[(0,i.t)("Keyword","keyword")],ListValue:[(0,i.p)("["),(0,i.l)("Value",(0,i.p)(",")),(0,i.p)("]")],ObjectValue:[(0,i.p)("{"),(0,i.l)("ObjectField",(0,i.p)(",")),(0,i.p)("}")],ObjectField:[(0,i.t)("String","property"),(0,i.p)(":"),"Value"]}},2300:(e,t,n)=>{n.d(t,{A:()=>s,I:()=>a});var r=n(6286),i=n(4786),o=n(9646);function a(e){if(null!=e||(0,r.U)(!1,"Must provide name."),"string"==typeof e||(0,r.U)(!1,"Expected name to be a string."),0===e.length)throw new i.eO("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!(0,o.xr)(e.charCodeAt(t)))throw new i.eO(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!(0,o.un)(e.charCodeAt(0)))throw new i.eO(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function s(e){if("true"===e||"false"===e||"null"===e)throw new i.eO(`Enum values cannot be named: ${e}`);return a(e)}},2327:(e,t,n)=>{n.d(t,{D:()=>u,S:()=>d});var r=n(475),i=n(3298),o=n(4705),a=n(7167),s=n(9488),l=n(9581);class u{constructor(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=n?n:c,t&&((0,a.dX)(t)&&this._inputTypeStack.push(t),(0,a.ML)(t)&&this._parentTypeStack.push(t),(0,a.oH)(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const t=this._schema;switch(e.kind){case i.b.SELECTION_SET:{const e=(0,a.MR)(this.getType());this._parentTypeStack.push((0,a.ML)(e)?e:void 0);break}case i.b.FIELD:{const n=this.getParentType();let r,i;n&&(r=this._getFieldDef(t,n,e),r&&(i=r.type)),this._fieldDefStack.push(r),this._typeStack.push((0,a.oH)(i)?i:void 0);break}case i.b.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case i.b.OPERATION_DEFINITION:{const n=t.getRootType(e.operation);this._typeStack.push((0,a.YQ)(n)?n:void 0);break}case i.b.INLINE_FRAGMENT:case i.b.FRAGMENT_DEFINITION:{const n=e.typeCondition,r=n?(0,l.v)(t,n):(0,a.MR)(this.getType());this._typeStack.push((0,a.oH)(r)?r:void 0);break}case i.b.VARIABLE_DEFINITION:{const n=(0,l.v)(t,e.type);this._inputTypeStack.push((0,a.dX)(n)?n:void 0);break}case i.b.ARGUMENT:{var n;let t,r;const i=null!==(n=this.getDirective())&&void 0!==n?n:this.getFieldDef();i&&(t=i.args.find((t=>t.name===e.name.value)),t&&(r=t.type)),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push((0,a.dX)(r)?r:void 0);break}case i.b.LIST:{const e=(0,a.yl)(this.getInputType()),t=(0,a.Fs)(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,a.dX)(t)?t:void 0);break}case i.b.OBJECT_FIELD:{const t=(0,a.MR)(this.getInputType());let n,r;(0,a.qK)(t)&&(r=t.getFields()[e.name.value],r&&(n=r.type)),this._defaultValueStack.push(r?r.defaultValue:void 0),this._inputTypeStack.push((0,a.dX)(n)?n:void 0);break}case i.b.ENUM:{const t=(0,a.MR)(this.getInputType());let n;(0,a.oF)(t)&&(n=t.getValue(e.value)),this._enumValue=n;break}}}leave(e){switch(e.kind){case i.b.SELECTION_SET:this._parentTypeStack.pop();break;case i.b.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case i.b.DIRECTIVE:this._directive=null;break;case i.b.OPERATION_DEFINITION:case i.b.INLINE_FRAGMENT:case i.b.FRAGMENT_DEFINITION:this._typeStack.pop();break;case i.b.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case i.b.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case i.b.LIST:case i.b.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case i.b.ENUM:this._enumValue=null}}}function c(e,t,n){const r=n.name.value;return r===s.S0.name&&e.getQueryType()===t?s.S0:r===s.Xe.name&&e.getQueryType()===t?s.Xe:r===s.of.name&&(0,a.ML)(t)?s.of:(0,a.YQ)(t)||(0,a.kD)(t)?t.getFields()[r]:void 0}function d(e,t){return{enter(...n){const i=n[0];e.enter(i);const a=(0,o.XO)(t,i.kind).enter;if(a){const o=a.apply(t,n);return void 0!==o&&(e.leave(i),(0,r.Ll)(o)&&e.enter(o)),o}},leave(...n){const r=n[0],i=(0,o.XO)(t,r.kind).leave;let a;return i&&(a=i.apply(t,n)),e.leave(r),a}}}},2369:(e,t,n)=>{var r;n.d(t,{H:()=>r}),function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(r||(r={}))},2382:(e,t,n)=>{n.r(t),n.d(t,{a:()=>s,m:()=>l});var r=n(3338),i=Object.defineProperty,o=(e,t)=>i(e,"name",{value:t,configurable:!0});function a(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}o(a,"_mergeNamespaces");var s={exports:{}};!function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function i(e){return e&&e.bracketRegex||/[(){}[\]]/}function a(e,t,o){var a=e.getLineHandle(t.line),l=t.ch-1,u=o&&o.afterCursor;null==u&&(u=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var c=i(o),d=!u&&l>=0&&c.test(a.text.charAt(l))&&r[a.text.charAt(l)]||c.test(a.text.charAt(l+1))&&r[a.text.charAt(++l)];if(!d)return null;var f=">"==d.charAt(1)?1:-1;if(o&&o.strict&&f>0!=(l==t.ch))return null;var p=e.getTokenTypeAt(n(t.line,l+1)),h=s(e,n(t.line,l+(f>0?1:0)),f,p,o);return null==h?null:{from:n(t.line,l),to:h&&h.pos,match:h&&h.ch==d.charAt(0),forward:f>0}}function s(e,t,o,a,s){for(var l=s&&s.maxScanLineLength||1e4,u=s&&s.maxScanLines||1e3,c=[],d=i(s),f=o>0?Math.min(t.line+u,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-u),p=t.line;p!=f;p+=o){var h=e.getLine(p);if(h){var m=o>0?0:h.length-1,g=o>0?h.length:-1;if(!(h.length>l))for(p==t.line&&(m=t.ch-(o<0?1:0));m!=g;m+=o){var v=h.charAt(m);if(d.test(v)&&(void 0===a||(e.getTokenTypeAt(n(p,m+1))||"")==(a||""))){var y=r[v];if(y&&">"==y.charAt(1)==o>0)c.push(v);else{if(!c.length)return{pos:n(p,m),ch:v};c.pop()}}}}}return p-o!=(o>0?e.lastLine():e.firstLine())&&null}function l(e,r,i){for(var s=e.state.matchBrackets.maxHighlightLineLength||1e3,l=i&&i.highlightNonMatching,u=[],c=e.listSelections(),d=0;d<c.length;d++){var f=c[d].empty()&&a(e,c[d].head,i);if(f&&(f.match||!1!==l)&&e.getLine(f.from.line).length<=s){var p=f.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";u.push(e.markText(f.from,n(f.from.line,f.from.ch+1),{className:p})),f.to&&e.getLine(f.to.line).length<=s&&u.push(e.markText(f.to,n(f.to.line,f.to.ch+1),{className:p}))}}if(u.length){t&&e.state.focused&&e.focus();var h=o((function(){e.operation((function(){for(var e=0;e<u.length;e++)u[e].clear()}))}),"clear");if(!r)return h;setTimeout(h,800)}}function u(e){e.operation((function(){e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null),e.state.matchBrackets.currentlyHighlighted=l(e,!1,e.state.matchBrackets)}))}function c(e){e.state.matchBrackets&&e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null)}o(i,"bracketRegex"),o(a,"findMatchingBracket"),o(s,"scanForBracket"),o(l,"matchBrackets"),o(u,"doMatchBrackets"),o(c,"clearHighlighted"),e.defineOption("matchBrackets",!1,(function(t,n,r){r&&r!=e.Init&&(t.off("cursorActivity",u),t.off("focus",u),t.off("blur",c),c(t)),n&&(t.state.matchBrackets="object"==typeof n?n:{},t.on("cursorActivity",u),t.on("focus",u),t.on("blur",c))})),e.defineExtension("matchBrackets",(function(){l(this,!0)})),e.defineExtension("findMatchingBracket",(function(e,t,n){return(n||"boolean"==typeof t)&&(n?(n.strict=t,t=n):t=t?{strict:!0}:null),a(this,e,t)})),e.defineExtension("scanForBracket",(function(e,t,n,r){return s(this,e,t,n,r)}))}(r.a.exports);var l=a({__proto__:null,default:s.exports},[s.exports])},2475:(e,t,n)=>{function r(e){return"object"==typeof e&&null!==e}n.d(t,{Z:()=>r})},2551:(e,t,n)=>{var r=n(6540),i=n(5228),o=n(9982);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var s=new Set,l={};function u(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(l[e]=t,e=0;e<t.length;e++)s.add(t[e])}var d=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p=Object.prototype.hasOwnProperty,h={},m={};function g(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){v[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function E(e,t,n,r){var i=v.hasOwnProperty(t)?v[t]:null;(null!==i?0===i.type:!r&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!p.call(m,e)||!p.call(h,e)&&(f.test(e)?m[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,b);v[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);v[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);v[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=60103,T=60106,x=60107,C=60108,S=60114,N=60109,_=60110,O=60112,I=60113,A=60120,D=60115,L=60116,M=60121,F=60128,R=60129,P=60130,j=60131;if("function"==typeof Symbol&&Symbol.for){var V=Symbol.for;k=V("react.element"),T=V("react.portal"),x=V("react.fragment"),C=V("react.strict_mode"),S=V("react.profiler"),N=V("react.provider"),_=V("react.context"),O=V("react.forward_ref"),I=V("react.suspense"),A=V("react.suspense_list"),D=V("react.memo"),L=V("react.lazy"),M=V("react.block"),V("react.scope"),F=V("react.opaque.id"),R=V("react.debug_trace_mode"),P=V("react.offscreen"),j=V("react.legacy_hidden")}var U,B="function"==typeof Symbol&&Symbol.iterator;function $(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=B&&e[B]||e["@@iterator"])?e:null}function q(e){if(void 0===U)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);U=t&&t[1]||""}return"\n"+U+e}var H=!1;function z(e,t){if(!e||H)return"";H=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var i=e.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=s);break}}}finally{H=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?q(e):""}function G(e){switch(e.tag){case 5:return q(e.type);case 16:return q("Lazy");case 13:return q("Suspense");case 19:return q("SuspenseList");case 0:case 2:case 15:return z(e.type,!1);case 11:return z(e.type.render,!1);case 22:return z(e.type._render,!1);case 1:return z(e.type,!0);default:return""}}function W(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case T:return"Portal";case S:return"Profiler";case C:return"StrictMode";case I:return"Suspense";case A:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case _:return(e.displayName||"Context")+".Consumer";case N:return(e._context.displayName||"Context")+".Provider";case O:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case D:return W(e.type);case M:return W(e._render);case L:t=e._payload,e=e._init;try{return W(e(t))}catch(e){}}return null}function Y(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function K(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Q(e){e._valueTracker||(e._valueTracker=function(e){var t=K(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function J(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=K(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function X(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Y(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&E(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=Y(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ie(e,t.type,n):t.hasOwnProperty("defaultValue")&&ie(e,t.type,Y(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ie(e,t,n){"number"===t&&X(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function oe(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Y(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Y(n)}}function ue(e,t){var n=Y(t.value),r=Y(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de="http://www.w3.org/1999/xhtml";function fe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function pe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?fe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var he,me,ge=(me=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((he=he||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=he.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return me(e,t)}))}:me);function ve(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ye={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},be=["Webkit","ms","Moz","O"];function Ee(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}function we(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=Ee(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(ye).forEach((function(e){be.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ye[t]=ye[e]}))}));var ke=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Te(e,t){if(t){if(ke[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function xe(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Ce(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,Ne=null,_e=null;function Oe(e){if(e=ni(e)){if("function"!=typeof Se)throw Error(a(280));var t=e.stateNode;t&&(t=ii(t),Se(e.stateNode,e.type,t))}}function Ie(e){Ne?_e?_e.push(e):_e=[e]:Ne=e}function Ae(){if(Ne){var e=Ne,t=_e;if(_e=Ne=null,Oe(e),t)for(e=0;e<t.length;e++)Oe(t[e])}}function De(e,t){return e(t)}function Le(e,t,n,r,i){return e(t,n,r,i)}function Me(){}var Fe=De,Re=!1,Pe=!1;function je(){null===Ne&&null===_e||(Me(),Ae())}function Ve(e,t){var n=e.stateNode;if(null===n)return null;var r=ii(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var Ue=!1;if(d)try{var Be={};Object.defineProperty(Be,"passive",{get:function(){Ue=!0}}),window.addEventListener("test",Be,Be),window.removeEventListener("test",Be,Be)}catch(me){Ue=!1}function $e(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var qe=!1,He=null,ze=!1,Ge=null,We={onError:function(e){qe=!0,He=e}};function Ye(e,t,n,r,i,o,a,s,l){qe=!1,He=null,$e.apply(We,arguments)}function Ke(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Qe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Je(e){if(Ke(e)!==e)throw Error(a(188))}function Xe(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ke(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Je(i),e;if(o===r)return Je(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Ze(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,rt,it=!1,ot=[],at=null,st=null,lt=null,ut=new Map,ct=new Map,dt=[],ft="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pt(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function ht(e,t){switch(e){case"focusin":case"focusout":at=null;break;case"dragenter":case"dragleave":st=null;break;case"mouseover":case"mouseout":lt=null;break;case"pointerover":case"pointerout":ut.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ct.delete(t.pointerId)}}function mt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=pt(t,n,r,i,o),null!==t&&null!==(t=ni(t))&&tt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function gt(e){var t=ti(e.target);if(null!==t){var n=Ke(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Qe(n)))return e.blockedOn=t,void rt(e.lanePriority,(function(){o.unstable_runWithPriority(e.priority,(function(){nt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function vt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Xt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ni(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function yt(e,t,n){vt(e)&&n.delete(t)}function bt(){for(it=!1;0<ot.length;){var e=ot[0];if(null!==e.blockedOn){null!==(e=ni(e.blockedOn))&&et(e);break}for(var t=e.targetContainers;0<t.length;){var n=Xt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&ot.shift()}null!==at&&vt(at)&&(at=null),null!==st&&vt(st)&&(st=null),null!==lt&&vt(lt)&&(lt=null),ut.forEach(yt),ct.forEach(yt)}function Et(e,t){e.blockedOn===t&&(e.blockedOn=null,it||(it=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,bt)))}function wt(e){function t(t){return Et(t,e)}if(0<ot.length){Et(ot[0],e);for(var n=1;n<ot.length;n++){var r=ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==at&&Et(at,e),null!==st&&Et(st,e),null!==lt&&Et(lt,e),ut.forEach(t),ct.forEach(t),n=0;n<dt.length;n++)(r=dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<dt.length&&null===(n=dt[0]).blockedOn;)gt(n),null===n.blockedOn&&dt.shift()}function kt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Tt={animationend:kt("Animation","AnimationEnd"),animationiteration:kt("Animation","AnimationIteration"),animationstart:kt("Animation","AnimationStart"),transitionend:kt("Transition","TransitionEnd")},xt={},Ct={};function St(e){if(xt[e])return xt[e];if(!Tt[e])return e;var t,n=Tt[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ct)return xt[e]=n[t];return e}d&&(Ct=document.createElement("div").style,"AnimationEvent"in window||(delete Tt.animationend.animation,delete Tt.animationiteration.animation,delete Tt.animationstart.animation),"TransitionEvent"in window||delete Tt.transitionend.transition);var Nt=St("animationend"),_t=St("animationiteration"),Ot=St("animationstart"),It=St("transitionend"),At=new Map,Dt=new Map,Lt=["abort","abort",Nt,"animationEnd",_t,"animationIteration",Ot,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",It,"transitionEnd","waiting","waiting"];function Mt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),Dt.set(r,t),At.set(r,i),u(i,[r])}}(0,o.unstable_now)();var Ft=8;function Rt(e){if(1&e)return Ft=15,1;if(2&e)return Ft=14,2;if(4&e)return Ft=13,4;var t=24&e;return 0!==t?(Ft=12,t):32&e?(Ft=11,32):0!=(t=192&e)?(Ft=10,t):256&e?(Ft=9,256):0!=(t=3584&e)?(Ft=8,t):4096&e?(Ft=7,4096):0!=(t=4186112&e)?(Ft=6,t):0!=(t=62914560&e)?(Ft=5,t):67108864&e?(Ft=4,67108864):134217728&e?(Ft=3,134217728):0!=(t=805306368&e)?(Ft=2,t):1073741824&e?(Ft=1,1073741824):(Ft=8,e)}function Pt(e,t){var n=e.pendingLanes;if(0===n)return Ft=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(0!==o)r=o,i=Ft=15;else if(0!=(o=134217727&n)){var l=o&~a;0!==l?(r=Rt(l),i=Ft):0!=(s&=o)&&(r=Rt(s),i=Ft)}else 0!=(o=n&~a)?(r=Rt(o),i=Ft):0!==s&&(r=Rt(s),i=Ft);if(0===r)return 0;if(r=n&((0>(r=31-qt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&!(t&a)){if(Rt(t),i<=Ft)return t;Ft=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-qt(t)),r|=e[n],t&=~i;return r}function jt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Vt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Ut(24&~t))?Vt(10,t):e;case 10:return 0===(e=Ut(192&~t))?Vt(8,t):e;case 8:return 0===(e=Ut(3584&~t))&&0===(e=Ut(4186112&~t))&&(e=512),e;case 2:return 0===(t=Ut(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function Ut(e){return e&-e}function Bt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function $t(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-qt(t)]=n}var qt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Ht(e)/zt|0)|0},Ht=Math.log,zt=Math.LN2,Gt=o.unstable_UserBlockingPriority,Wt=o.unstable_runWithPriority,Yt=!0;function Kt(e,t,n,r){Re||Me();var i=Jt,o=Re;Re=!0;try{Le(i,e,t,n,r)}finally{(Re=o)||je()}}function Qt(e,t,n,r){Wt(Gt,Jt.bind(null,e,t,n,r))}function Jt(e,t,n,r){var i;if(Yt)if((i=!(4&t))&&0<ot.length&&-1<ft.indexOf(e))e=pt(null,e,t,n,r),ot.push(e);else{var o=Xt(e,t,n,r);if(null===o)i&&ht(e,r);else{if(i){if(-1<ft.indexOf(e))return e=pt(o,e,t,n,r),void ot.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return at=mt(at,e,t,n,r,i),!0;case"dragenter":return st=mt(st,e,t,n,r,i),!0;case"mouseover":return lt=mt(lt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return ut.set(o,mt(ut.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,ct.set(o,mt(ct.get(o)||null,e,t,n,r,i)),!0}return!1}(o,e,t,n,r))return;ht(e,r)}Mr(e,t,r,null,n)}}}function Xt(e,t,n,r){var i=Ce(r);if(null!==(i=ti(i))){var o=Ke(i);if(null===o)i=null;else{var a=o.tag;if(13===a){if(null!==(i=Qe(o)))return i;i=null}else if(3===a){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return Mr(e,t,r,i,n),null}var Zt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,i="value"in Zt?Zt.value:Zt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return tn=i.slice(e,1<t?1-t:void 0)}function rn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function on(){return!0}function an(){return!1}function sn(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?on:an,this.isPropagationStopped=an,this}return i(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=on)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},persist:function(){},isPersistent:on}),t}var ln,un,cn,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fn=sn(dn),pn=i({},dn,{view:0,detail:0}),hn=sn(pn),mn=i({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Nn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(ln=e.screenX-cn.screenX,un=e.screenY-cn.screenY):un=ln=0,cn=e),ln)},movementY:function(e){return"movementY"in e?e.movementY:un}}),gn=sn(mn),vn=sn(i({},mn,{dataTransfer:0})),yn=sn(i({},pn,{relatedTarget:0})),bn=sn(i({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),En=i({},dn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wn=sn(En),kn=sn(i({},dn,{data:0})),Tn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Cn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cn[e])&&!!t[e]}function Nn(){return Sn}var _n=i({},pn,{key:function(e){if(e.key){var t=Tn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Nn,charCode:function(e){return"keypress"===e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),On=sn(_n),In=sn(i({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),An=sn(i({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Nn})),Dn=sn(i({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Ln=i({},mn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Mn=sn(Ln),Fn=[9,13,27,32],Rn=d&&"CompositionEvent"in window,Pn=null;d&&"documentMode"in document&&(Pn=document.documentMode);var jn=d&&"TextEvent"in window&&!Pn,Vn=d&&(!Rn||Pn&&8<Pn&&11>=Pn),Un=String.fromCharCode(32),Bn=!1;function $n(e,t){switch(e){case"keyup":return-1!==Fn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1,zn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Gn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!zn[e.type]:"textarea"===t}function Wn(e,t,n,r){Ie(r),0<(t=Rr(t,"onChange")).length&&(n=new fn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Yn=null,Kn=null;function Qn(e){_r(e,0)}function Jn(e){if(J(ri(e)))return e}function Xn(e,t){if("change"===e)return t}var Zn=!1;if(d){var er;if(d){var tr="oninput"in document;if(!tr){var nr=document.createElement("div");nr.setAttribute("oninput","return;"),tr="function"==typeof nr.oninput}er=tr}else er=!1;Zn=er&&(!document.documentMode||9<document.documentMode)}function rr(){Yn&&(Yn.detachEvent("onpropertychange",ir),Kn=Yn=null)}function ir(e){if("value"===e.propertyName&&Jn(Kn)){var t=[];if(Wn(t,Kn,e,Ce(e)),e=Qn,Re)e(t);else{Re=!0;try{De(e,t)}finally{Re=!1,je()}}}}function or(e,t,n){"focusin"===e?(rr(),Kn=n,(Yn=t).attachEvent("onpropertychange",ir)):"focusout"===e&&rr()}function ar(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Jn(Kn)}function sr(e,t){if("click"===e)return Jn(t)}function lr(e,t){if("input"===e||"change"===e)return Jn(t)}var ur="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},cr=Object.prototype.hasOwnProperty;function dr(e,t){if(ur(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!cr.call(t,n[r])||!ur(e[n[r]],t[n[r]]))return!1;return!0}function fr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pr(e,t){var n,r=fr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=fr(r)}}function hr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?hr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function mr(){for(var e=window,t=X();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=X((e=t.contentWindow).document)}return t}function gr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var vr=d&&"documentMode"in document&&11>=document.documentMode,yr=null,br=null,Er=null,wr=!1;function kr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;wr||null==yr||yr!==X(r)||(r="selectionStart"in(r=yr)&&gr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Er&&dr(Er,r)||(Er=r,0<(r=Rr(br,"onSelect")).length&&(t=new fn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=yr)))}Mt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Mt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Mt(Lt,2);for(var Tr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),xr=0;xr<Tr.length;xr++)Dt.set(Tr[xr],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Cr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Sr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Cr));function Nr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,s,l,u){if(Ye.apply(this,arguments),qe){if(!qe)throw Error(a(198));var c=He;qe=!1,He=null,ze||(ze=!0,Ge=c)}}(r,t,void 0,e),e.currentTarget=null}function _r(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Nr(i,s,u),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Nr(i,s,u),o=l}}}if(ze)throw e=Ge,ze=!1,Ge=null,e}function Or(e,t){var n=oi(t),r=e+"__bubble";n.has(r)||(Lr(t,e,2,!1),n.add(r))}var Ir="_reactListening"+Math.random().toString(36).slice(2);function Ar(e){e[Ir]||(e[Ir]=!0,s.forEach((function(t){Sr.has(t)||Dr(t,!1,e,null),Dr(t,!0,e,null)})))}function Dr(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=n;if("selectionchange"===e&&9!==n.nodeType&&(o=n.ownerDocument),null!==r&&!t&&Sr.has(e)){if("scroll"!==e)return;i|=2,o=r}var a=oi(o),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(i|=4),Lr(o,e,i,t),a.add(s))}function Lr(e,t,n,r){var i=Dt.get(t);switch(void 0===i?2:i){case 0:i=Kt;break;case 1:i=Qt;break;default:i=Jt}n=i.bind(null,t,n,e),i=void 0,!Ue||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Mr(e,t,n,r,i){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=ti(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(Pe)return e();Pe=!0;try{return Fe(e,t,n)}finally{Pe=!1,je()}}((function(){var r=o,i=Ce(n),a=[];e:{var s=At.get(e);if(void 0!==s){var l=fn,u=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":l=On;break;case"focusin":u="focus",l=yn;break;case"focusout":u="blur",l=yn;break;case"beforeblur":case"afterblur":l=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=gn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=vn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=An;break;case Nt:case _t:case Ot:l=bn;break;case It:l=Dn;break;case"scroll":l=hn;break;case"wheel":l=Mn;break;case"copy":case"cut":case"paste":l=wn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=In}var c=!!(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&null!=(m=Ve(h,f))&&c.push(Fr(h,m,p))),d)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,i),a.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||16&t||!(u=n.relatedTarget||n.fromElement)||!ti(u)&&!u[Zr])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?ti(u):null)&&(u!==(d=Ke(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=gn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=In,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:ri(l),p=null==u?s:ri(u),(s=new c(m,h+"leave",l,n,i)).target=d,s.relatedTarget=p,m=null,ti(i)===r&&((c=new c(f,h+"enter",u,n,i)).target=p,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(f=u,h=0,p=c=l;p;p=Pr(p))h++;for(p=0,m=f;m;m=Pr(m))p++;for(;0<h-p;)c=Pr(c),h--;for(;0<p-h;)f=Pr(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Pr(c),f=Pr(f)}c=null}else c=null;null!==l&&jr(a,s,l,c,!1),null!==u&&null!==d&&jr(a,d,u,c,!0)}if("select"===(l=(s=r?ri(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Xn;else if(Gn(s))if(Zn)g=lr;else{g=ar;var v=or}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=sr);switch(g&&(g=g(e,r))?Wn(a,g,n,i):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ie(s,"number",s.value)),v=r?ri(r):window,e){case"focusin":(Gn(v)||"true"===v.contentEditable)&&(yr=v,br=r,Er=null);break;case"focusout":Er=br=yr=null;break;case"mousedown":wr=!0;break;case"contextmenu":case"mouseup":case"dragend":wr=!1,kr(a,n,i);break;case"selectionchange":if(vr)break;case"keydown":case"keyup":kr(a,n,i)}var y;if(Rn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Hn?$n(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Vn&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Hn&&(y=nn()):(en="value"in(Zt=i)?Zt.value:Zt.textContent,Hn=!0)),0<(v=Rr(r,b)).length&&(b=new kn(b,e,null,n,i),a.push({event:b,listeners:v}),(y||null!==(y=qn(n)))&&(b.data=y))),(y=jn?function(e,t){switch(e){case"compositionend":return qn(t);case"keypress":return 32!==t.which?null:(Bn=!0,Un);case"textInput":return(e=t.data)===Un&&Bn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Rn&&$n(e,t)?(e=nn(),tn=en=Zt=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Vn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Rr(r,"onBeforeInput")).length&&(i=new kn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y)}_r(a,t)}))}function Fr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Rr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Ve(e,n))&&r.unshift(Fr(e,o,i)),null!=(o=Ve(e,t))&&r.push(Fr(e,o,i))),e=e.return}return r}function Pr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function jr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=Ve(n,o))&&a.unshift(Fr(n,l,s)):i||null!=(l=Ve(n,o))&&a.push(Fr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Vr(){}var Ur=null,Br=null;function $r(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function qr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Hr="function"==typeof setTimeout?setTimeout:void 0,zr="function"==typeof clearTimeout?clearTimeout:void 0;function Gr(e){(1===e.nodeType||9===e.nodeType&&null!=(e=e.body))&&(e.textContent="")}function Wr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Yr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Kr=0,Qr=Math.random().toString(36).slice(2),Jr="__reactFiber$"+Qr,Xr="__reactProps$"+Qr,Zr="__reactContainer$"+Qr,ei="__reactEvents$"+Qr;function ti(e){var t=e[Jr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Zr]||n[Jr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Yr(e);null!==e;){if(n=e[Jr])return n;e=Yr(e)}return t}n=(e=n).parentNode}return null}function ni(e){return!(e=e[Jr]||e[Zr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ri(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function ii(e){return e[Xr]||null}function oi(e){var t=e[ei];return void 0===t&&(t=e[ei]=new Set),t}var ai=[],si=-1;function li(e){return{current:e}}function ui(e){0>si||(e.current=ai[si],ai[si]=null,si--)}function ci(e,t){si++,ai[si]=e.current,e.current=t}var di={},fi=li(di),pi=li(!1),hi=di;function mi(e,t){var n=e.type.contextTypes;if(!n)return di;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function gi(e){return null!=e.childContextTypes}function vi(){ui(pi),ui(fi)}function yi(e,t,n){if(fi.current!==di)throw Error(a(168));ci(fi,t),ci(pi,n)}function bi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(a(108,W(t)||"Unknown",o));return i({},n,r)}function Ei(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||di,hi=fi.current,ci(fi,e),ci(pi,pi.current),!0}function wi(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=bi(e,t,hi),r.__reactInternalMemoizedMergedChildContext=e,ui(pi),ui(fi),ci(fi,e)):ui(pi),ci(pi,n)}var ki=null,Ti=null,xi=o.unstable_runWithPriority,Ci=o.unstable_scheduleCallback,Si=o.unstable_cancelCallback,Ni=o.unstable_shouldYield,_i=o.unstable_requestPaint,Oi=o.unstable_now,Ii=o.unstable_getCurrentPriorityLevel,Ai=o.unstable_ImmediatePriority,Di=o.unstable_UserBlockingPriority,Li=o.unstable_NormalPriority,Mi=o.unstable_LowPriority,Fi=o.unstable_IdlePriority,Ri={},Pi=void 0!==_i?_i:function(){},ji=null,Vi=null,Ui=!1,Bi=Oi(),$i=1e4>Bi?Oi:function(){return Oi()-Bi};function qi(){switch(Ii()){case Ai:return 99;case Di:return 98;case Li:return 97;case Mi:return 96;case Fi:return 95;default:throw Error(a(332))}}function Hi(e){switch(e){case 99:return Ai;case 98:return Di;case 97:return Li;case 96:return Mi;case 95:return Fi;default:throw Error(a(332))}}function zi(e,t){return e=Hi(e),xi(e,t)}function Gi(e,t,n){return e=Hi(e),Ci(e,t,n)}function Wi(){if(null!==Vi){var e=Vi;Vi=null,Si(e)}Yi()}function Yi(){if(!Ui&&null!==ji){Ui=!0;var e=0;try{var t=ji;zi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),ji=null}catch(t){throw null!==ji&&(ji=ji.slice(e+1)),Ci(Ai,Wi),t}finally{Ui=!1}}}var Ki=w.ReactCurrentBatchConfig;function Qi(e,t){if(e&&e.defaultProps){for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Ji=li(null),Xi=null,Zi=null,eo=null;function to(){eo=Zi=Xi=null}function no(e){var t=Ji.current;ui(Ji),e.type._context._currentValue=t}function ro(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function io(e,t){Xi=e,eo=Zi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(Ra=!0),e.firstContext=null)}function oo(e,t){if(eo!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(eo=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Zi){if(null===Xi)throw Error(a(308));Zi=t,Xi.dependencies={lanes:0,firstContext:t,responders:null}}else Zi=Zi.next=t;return e._currentValue}var ao=!1;function so(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function lo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function uo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function co(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function fo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function po(e,t,n,r){var o=e.updateQueue;ao=!1;var a=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var u=l,c=u.next;u.next=null,null===s?a=c:s.next=c,s=u;var d=e.alternate;if(null!==d){var f=(d=d.updateQueue).lastBaseUpdate;f!==s&&(null===f?d.firstBaseUpdate=c:f.next=c,d.lastBaseUpdate=u)}}if(null!==a){for(f=o.baseState,s=0,d=c=u=null;;){l=a.lane;var p=a.eventTime;if((r&l)===l){null!==d&&(d=d.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,m=a;switch(l=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){f=h.call(p,f,l);break e}f=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null==(l="function"==typeof(h=m.payload)?h.call(p,f,l):h))break e;f=i({},f,l);break e;case 2:ao=!0}}null!==a.callback&&(e.flags|=32,null===(l=o.effects)?o.effects=[a]:l.push(a))}else p={eventTime:p,lane:l,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===d?(c=d=p,u=f):d=d.next=p,s|=l;if(null===(a=a.next)){if(null===(l=o.shared.pending))break;a=l.next,l.next=null,o.lastBaseUpdate=l,o.shared.pending=null}}null===d&&(u=f),o.baseState=u,o.firstBaseUpdate=c,o.lastBaseUpdate=d,Vs|=s,e.lanes=s,e.memoizedState=f}}function ho(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(a(191,i));i.call(r)}}}var mo=(new r.Component).refs;function go(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:i({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var vo={isMounted:function(e){return!!(e=e._reactInternals)&&Ke(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=cl(),i=dl(e),o=uo(r,i);o.payload=t,null!=n&&(o.callback=n),co(e,o),fl(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=cl(),i=dl(e),o=uo(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),co(e,o),fl(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=cl(),r=dl(e),i=uo(n,r);i.tag=2,null!=t&&(i.callback=t),co(e,i),fl(e,r,n)}};function yo(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!(t.prototype&&t.prototype.isPureReactComponent&&dr(n,r)&&dr(i,o))}function bo(e,t,n){var r=!1,i=di,o=t.contextType;return"object"==typeof o&&null!==o?o=oo(o):(i=gi(t)?hi:fi.current,o=(r=null!=(r=t.contextTypes))?mi(e,i):di),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=vo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Eo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&vo.enqueueReplaceState(t,t.state,null)}function wo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=mo,so(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=oo(o):(o=gi(t)?hi:fi.current,i.context=mi(e,o)),po(e,n,i,r),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(go(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&vo.enqueueReplaceState(i,i.state,null),po(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4)}var ko=Array.isArray;function To(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=r.refs;t===mo&&(t=r.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function xo(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Co(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Hl(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function s(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Yl(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=To(e,t,n),r.return=e,r):((r=zl(n.type,n.key,n.props,null,e.mode,r)).ref=To(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Kl(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Gl(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Yl(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case k:return(n=zl(t.type,t.key,t.props,null,e.mode,n)).ref=To(e,null,t),n.return=e,n;case T:return(t=Kl(t,e.mode,n)).return=e,t}if(ko(t)||$(t))return(t=Gl(t,e.mode,n,null)).return=e,t;xo(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===i?n.type===x?d(e,t,n.props.children,r,i):u(e,t,n,r):null;case T:return n.key===i?c(e,t,n,r):null}if(ko(n)||$(n))return null!==i?null:d(e,t,n,r,null);xo(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case k:return e=e.get(null===r.key?n:r.key)||null,r.type===x?d(t,e,r.props.children,i,r.key):u(t,e,r,i);case T:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(ko(r)||$(r))return d(t,e=e.get(n)||null,r,i,null);xo(t,r)}return null}function m(i,a,s,l){for(var u=null,c=null,d=a,m=a=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(i,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(i,d),a=o(v,a,m),null===c?u=v:c.sibling=v,c=v,d=g}if(m===s.length)return n(i,d),u;if(null===d){for(;m<s.length;m++)null!==(d=f(i,s[m],l))&&(a=o(d,a,m),null===c?u=d:c.sibling=d,c=d);return u}for(d=r(i,d);m<s.length;m++)null!==(g=h(d,i,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),a=o(g,a,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach((function(e){return t(i,e)})),u}function g(i,s,l,u){var c=$(l);if("function"!=typeof c)throw Error(a(150));if(null==(l=c.call(l)))throw Error(a(151));for(var d=c=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=p(i,m,y.value,u);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),s=o(b,s,g),null===d?c=b:d.sibling=b,d=b,m=v}if(y.done)return n(i,m),c;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=f(i,y.value,u))&&(s=o(y,s,g),null===d?c=y:d.sibling=y,d=y);return c}for(m=r(i,m);!y.done;g++,y=l.next())null!==(y=h(m,i,g,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=o(y,s,g),null===d?c=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(i,e)})),c}return function(e,r,o,l){var u="object"==typeof o&&null!==o&&o.type===x&&null===o.key;u&&(o=o.props.children);var c="object"==typeof o&&null!==o;if(c)switch(o.$$typeof){case k:e:{for(c=o.key,u=r;null!==u;){if(u.key===c){if(7===u.tag){if(o.type===x){n(e,u.sibling),(r=i(u,o.props.children)).return=e,e=r;break e}}else if(u.elementType===o.type){n(e,u.sibling),(r=i(u,o.props)).ref=To(e,u,o),r.return=e,e=r;break e}n(e,u);break}t(e,u),u=u.sibling}o.type===x?((r=Gl(o.props.children,e.mode,l,o.key)).return=e,e=r):((l=zl(o.type,o.key,o.props,null,e.mode,l)).ref=To(e,r,o),l.return=e,e=l)}return s(e);case T:e:{for(u=o.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Kl(o,e.mode,l)).return=e,e=r}return s(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Yl(o,e.mode,l)).return=e,e=r),s(e);if(ko(o))return m(e,r,o,l);if($(o))return g(e,r,o,l);if(c&&xo(e,o),void 0===o&&!u)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,W(e.type)||"Component"))}return n(e,r)}}var So=Co(!0),No=Co(!1),_o={},Oo=li(_o),Io=li(_o),Ao=li(_o);function Do(e){if(e===_o)throw Error(a(174));return e}function Lo(e,t){switch(ci(Ao,t),ci(Io,e),ci(Oo,_o),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pe(null,"");break;default:t=pe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ui(Oo),ci(Oo,t)}function Mo(){ui(Oo),ui(Io),ui(Ao)}function Fo(e){Do(Ao.current);var t=Do(Oo.current),n=pe(t,e.type);t!==n&&(ci(Io,e),ci(Oo,n))}function Ro(e){Io.current===e&&(ui(Oo),ui(Io))}var Po=li(0);function jo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(64&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Vo=null,Uo=null,Bo=!1;function $o(e,t){var n=$l(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function qo(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Ho(e){if(Bo){var t=Uo;if(t){var n=t;if(!qo(e,t)){if(!(t=Wr(n.nextSibling))||!qo(e,t))return e.flags=-1025&e.flags|2,Bo=!1,void(Vo=e);$o(Vo,n)}Vo=e,Uo=Wr(t.firstChild)}else e.flags=-1025&e.flags|2,Bo=!1,Vo=e}}function zo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Vo=e}function Go(e){if(e!==Vo)return!1;if(!Bo)return zo(e),Bo=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!qr(t,e.memoizedProps))for(t=Uo;t;)$o(e,t),t=Wr(t.nextSibling);if(zo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Uo=Wr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Uo=null}}else Uo=Vo?Wr(e.stateNode.nextSibling):null;return!0}function Wo(){Uo=Vo=null,Bo=!1}var Yo=[];function Ko(){for(var e=0;e<Yo.length;e++)Yo[e]._workInProgressVersionPrimary=null;Yo.length=0}var Qo=w.ReactCurrentDispatcher,Jo=w.ReactCurrentBatchConfig,Xo=0,Zo=null,ea=null,ta=null,na=!1,ra=!1;function ia(){throw Error(a(321))}function oa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ur(e[n],t[n]))return!1;return!0}function aa(e,t,n,r,i,o){if(Xo=o,Zo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Qo.current=null===e||null===e.memoizedState?Da:La,e=n(r,i),ra){o=0;do{if(ra=!1,!(25>o))throw Error(a(301));o+=1,ta=ea=null,t.updateQueue=null,Qo.current=Ma,e=n(r,i)}while(ra)}if(Qo.current=Aa,t=null!==ea&&null!==ea.next,Xo=0,ta=ea=Zo=null,na=!1,t)throw Error(a(300));return e}function sa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ta?Zo.memoizedState=ta=e:ta=ta.next=e,ta}function la(){if(null===ea){var e=Zo.alternate;e=null!==e?e.memoizedState:null}else e=ea.next;var t=null===ta?Zo.memoizedState:ta.next;if(null!==t)ta=t,ea=e;else{if(null===e)throw Error(a(310));e={memoizedState:(ea=e).memoizedState,baseState:ea.baseState,baseQueue:ea.baseQueue,queue:ea.queue,next:null},null===ta?Zo.memoizedState=ta=e:ta=ta.next=e}return ta}function ua(e,t){return"function"==typeof t?t(e):t}function ca(e){var t=la(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=ea,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var l=s=o=null,u=i;do{var c=u.lane;if((Xo&c)===c)null!==l&&(l=l.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===l?(s=l=d,o=r):l=l.next=d,Zo.lanes|=c,Vs|=c}u=u.next}while(null!==u&&u!==i);null===l?o=r:l.next=s,ur(r,t.memoizedState)||(Ra=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function da(e){var t=la(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);ur(o,t.memoizedState)||(Ra=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function fa(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(Xo&e)===e)&&(t._workInProgressVersionPrimary=r,Yo.push(t))),e)return n(t._source);throw Yo.push(t),Error(a(350))}function pa(e,t,n,r){var i=As;if(null===i)throw Error(a(349));var o=t._getVersion,s=o(t._source),l=Qo.current,u=l.useState((function(){return fa(i,t,n)})),c=u[1],d=u[0];u=ta;var f=e.memoizedState,p=f.refs,h=p.getSnapshot,m=f.source;f=f.subscribe;var g=Zo;return e.memoizedState={refs:p,source:t,subscribe:r},l.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=o(t._source);if(!ur(s,e)){e=n(t._source),ur(d,e)||(c(e),e=dl(g),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,a=e;0<a;){var l=31-qt(a),u=1<<l;r[l]|=e,a&=~u}}}),[n,t,r]),l.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=dl(g);i.mutableReadLanes|=r&i.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),ur(h,n)&&ur(m,t)&&ur(f,r)||((e={pending:null,dispatch:null,lastRenderedReducer:ua,lastRenderedState:d}).dispatch=c=Ia.bind(null,Zo,e),u.queue=e,u.baseQueue=null,d=fa(i,t,n),u.memoizedState=u.baseState=d),d}function ha(e,t,n){return pa(la(),e,t,n)}function ma(e){var t=sa();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ua,lastRenderedState:e}).dispatch=Ia.bind(null,Zo,e),[t.memoizedState,e]}function ga(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Zo.updateQueue)?(t={lastEffect:null},Zo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function va(e){return e={current:e},sa().memoizedState=e}function ya(){return la().memoizedState}function ba(e,t,n,r){var i=sa();Zo.flags|=e,i.memoizedState=ga(1|t,n,void 0,void 0===r?null:r)}function Ea(e,t,n,r){var i=la();r=void 0===r?null:r;var o=void 0;if(null!==ea){var a=ea.memoizedState;if(o=a.destroy,null!==r&&oa(r,a.deps))return void ga(t,n,o,r)}Zo.flags|=e,i.memoizedState=ga(1|t,n,o,r)}function wa(e,t){return ba(516,4,e,t)}function ka(e,t){return Ea(516,4,e,t)}function Ta(e,t){return Ea(4,2,e,t)}function xa(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ca(e,t,n){return n=null!=n?n.concat([e]):null,Ea(4,2,xa.bind(null,t,e),n)}function Sa(){}function Na(e,t){var n=la();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&oa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function _a(e,t){var n=la();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&oa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Oa(e,t){var n=qi();zi(98>n?98:n,(function(){e(!0)})),zi(97<n?97:n,(function(){var n=Jo.transition;Jo.transition=1;try{e(!1),t()}finally{Jo.transition=n}}))}function Ia(e,t,n){var r=cl(),i=dl(e),o={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?o.next=o:(o.next=a.next,a.next=o),t.pending=o,a=e.alternate,e===Zo||null!==a&&a===Zo)ra=na=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=a(s,n);if(o.eagerReducer=a,o.eagerState=l,ur(l,s))return}catch(e){}fl(e,i,r)}}var Aa={readContext:oo,useCallback:ia,useContext:ia,useEffect:ia,useImperativeHandle:ia,useLayoutEffect:ia,useMemo:ia,useReducer:ia,useRef:ia,useState:ia,useDebugValue:ia,useDeferredValue:ia,useTransition:ia,useMutableSource:ia,useOpaqueIdentifier:ia,unstable_isNewReconciler:!1},Da={readContext:oo,useCallback:function(e,t){return sa().memoizedState=[e,void 0===t?null:t],e},useContext:oo,useEffect:wa,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ba(4,2,xa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ba(4,2,e,t)},useMemo:function(e,t){var n=sa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=sa();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Ia.bind(null,Zo,e),[r.memoizedState,e]},useRef:va,useState:ma,useDebugValue:Sa,useDeferredValue:function(e){var t=ma(e),n=t[0],r=t[1];return wa((function(){var t=Jo.transition;Jo.transition=1;try{r(e)}finally{Jo.transition=t}}),[e]),n},useTransition:function(){var e=ma(!1),t=e[0];return va(e=Oa.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=sa();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},pa(r,e,t,n)},useOpaqueIdentifier:function(){if(Bo){var e=!1,t=function(e){return{$$typeof:F,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Kr++).toString(36))),Error(a(355))})),n=ma(t)[1];return!(2&Zo.mode)&&(Zo.flags|=516,ga(5,(function(){n("r:"+(Kr++).toString(36))}),void 0,null)),t}return ma(t="r:"+(Kr++).toString(36)),t},unstable_isNewReconciler:!1},La={readContext:oo,useCallback:Na,useContext:oo,useEffect:ka,useImperativeHandle:Ca,useLayoutEffect:Ta,useMemo:_a,useReducer:ca,useRef:ya,useState:function(){return ca(ua)},useDebugValue:Sa,useDeferredValue:function(e){var t=ca(ua),n=t[0],r=t[1];return ka((function(){var t=Jo.transition;Jo.transition=1;try{r(e)}finally{Jo.transition=t}}),[e]),n},useTransition:function(){var e=ca(ua)[0];return[ya().current,e]},useMutableSource:ha,useOpaqueIdentifier:function(){return ca(ua)[0]},unstable_isNewReconciler:!1},Ma={readContext:oo,useCallback:Na,useContext:oo,useEffect:ka,useImperativeHandle:Ca,useLayoutEffect:Ta,useMemo:_a,useReducer:da,useRef:ya,useState:function(){return da(ua)},useDebugValue:Sa,useDeferredValue:function(e){var t=da(ua),n=t[0],r=t[1];return ka((function(){var t=Jo.transition;Jo.transition=1;try{r(e)}finally{Jo.transition=t}}),[e]),n},useTransition:function(){var e=da(ua)[0];return[ya().current,e]},useMutableSource:ha,useOpaqueIdentifier:function(){return da(ua)[0]},unstable_isNewReconciler:!1},Fa=w.ReactCurrentOwner,Ra=!1;function Pa(e,t,n,r){t.child=null===e?No(t,null,n,r):So(t,e.child,n,r)}function ja(e,t,n,r,i){n=n.render;var o=t.ref;return io(t,i),r=aa(e,t,n,r,o,i),null===e||Ra?(t.flags|=1,Pa(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,rs(e,t,i))}function Va(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||ql(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=zl(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ua(e,t,a,r,i,o))}return a=e.child,i&o||(i=a.memoizedProps,!(n=null!==(n=n.compare)?n:dr)(i,r)||e.ref!==t.ref)?(t.flags|=1,(e=Hl(a,r)).ref=t.ref,e.return=t,t.child=e):rs(e,t,o)}function Ua(e,t,n,r,i,o){if(null!==e&&dr(e.memoizedProps,r)&&e.ref===t.ref){if(Ra=!1,!(o&i))return t.lanes=e.lanes,rs(e,t,o);16384&e.flags&&(Ra=!0)}return qa(e,t,n,r,o)}function Ba(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(4&t.mode){if(!(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},El(0,e),null;t.memoizedState={baseLanes:0},El(0,null!==o?o.baseLanes:n)}else t.memoizedState={baseLanes:0},El(0,n);else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,El(0,r);return Pa(e,t,i,n),t.child}function $a(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function qa(e,t,n,r,i){var o=gi(n)?hi:fi.current;return o=mi(t,o),io(t,i),n=aa(e,t,n,r,o,i),null===e||Ra?(t.flags|=1,Pa(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,rs(e,t,i))}function Ha(e,t,n,r,i){if(gi(n)){var o=!0;Ei(t)}else o=!1;if(io(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),bo(t,n,r),wo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;u="object"==typeof u&&null!==u?oo(u):mi(t,u=gi(n)?hi:fi.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&Eo(t,a,r,u),ao=!1;var f=t.memoizedState;a.state=f,po(t,r,a,i),l=t.memoizedState,s!==r||f!==l||pi.current||ao?("function"==typeof c&&(go(t,n,c,r),l=t.memoizedState),(s=ao||yo(t,n,s,r,f,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4)):("function"==typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,lo(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Qi(t.type,s),a.props=u,d=t.pendingProps,f=a.context,l="object"==typeof(l=n.contextType)&&null!==l?oo(l):mi(t,l=gi(n)?hi:fi.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&Eo(t,a,r,l),ao=!1,f=t.memoizedState,a.state=f,po(t,r,a,i);var h=t.memoizedState;s!==d||f!==h||pi.current||ao?("function"==typeof p&&(go(t,n,p,r),h=t.memoizedState),(u=ao||yo(t,n,u,r,f,h,l))?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),r=!1)}return za(e,t,n,r,o,i)}function za(e,t,n,r,i,o){$a(e,t);var a=!!(64&t.flags);if(!r&&!a)return i&&wi(t,n,!1),rs(e,t,o);r=t.stateNode,Fa.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=So(t,e.child,null,o),t.child=So(t,null,s,o)):Pa(e,t,s,o),t.memoizedState=r.state,i&&wi(t,n,!0),t.child}function Ga(e){var t=e.stateNode;t.pendingContext?yi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&yi(0,t.context,!1),Lo(e,t.containerInfo)}var Wa,Ya,Ka,Qa,Ja={dehydrated:null,retryLane:0};function Xa(e,t,n){var r,i=t.pendingProps,o=Po.current,a=!1;return(r=!!(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&!!(2&o)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(o|=1),ci(Po,1&o),null===e?(void 0!==i.fallback&&Ho(t),e=i.children,o=i.fallback,a?(e=Za(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ja,e):"number"==typeof i.unstable_expectedLoadTime?(e=Za(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ja,t.lanes=33554432,e):((n=Wl({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(i=function(e,t,n,r,i){var o=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return 2&o||t.child===a?n=Hl(a,s):((n=t.child).childLanes=0,n.pendingProps=s,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null),null!==e?r=Hl(e,r):(r=Gl(r,o,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}(e,t,i.children,i.fallback,n),a=t.child,o=e.child.memoizedState,a.memoizedState=null===o?{baseLanes:n}:{baseLanes:o.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=Ja,i):(n=function(e,t,n,r){var i=e.child;return e=i.sibling,n=Hl(i,{mode:"visible",children:n}),!(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}(e,t,i.children,n),t.memoizedState=null,n))}function Za(e,t,n,r){var i=e.mode,o=e.child;return t={mode:"hidden",children:t},2&i||null===o?o=Wl(t,i,0,null):(o.childLanes=0,o.pendingProps=t),n=Gl(n,i,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function es(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ro(e.return,t)}function ts(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.lastEffect=o)}function ns(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Pa(e,t,r.children,n),2&(r=Po.current))r=1&r|2,t.flags|=64;else{if(null!==e&&64&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&es(e,n);else if(19===e.tag)es(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ci(Po,r),2&t.mode)switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===jo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ts(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===jo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ts(t,!0,n,null,o,t.lastEffect);break;case"together":ts(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function rs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Vs|=t.lanes,n&t.childLanes){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Hl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Hl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function is(e,t){if(!Bo)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function os(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return gi(t.type)&&vi(),null;case 3:return Mo(),ui(pi),ui(fi),Ko(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Go(t)?t.flags|=4:r.hydrate||(t.flags|=256)),Ya(t),null;case 5:Ro(t);var o=Do(Ao.current);if(n=t.type,null!==e&&null!=t.stateNode)Ka(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Do(Oo.current),Go(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Jr]=t,r[Xr]=s,n){case"dialog":Or("cancel",r),Or("close",r);break;case"iframe":case"object":case"embed":Or("load",r);break;case"video":case"audio":for(e=0;e<Cr.length;e++)Or(Cr[e],r);break;case"source":Or("error",r);break;case"img":case"image":case"link":Or("error",r),Or("load",r);break;case"details":Or("toggle",r);break;case"input":ee(r,s),Or("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Or("invalid",r);break;case"textarea":le(r,s),Or("invalid",r)}for(var u in Te(n,s),e=null,s)s.hasOwnProperty(u)&&(o=s[u],"children"===u?"string"==typeof o?r.textContent!==o&&(e=["children",o]):"number"==typeof o&&r.textContent!==""+o&&(e=["children",""+o]):l.hasOwnProperty(u)&&null!=o&&"onScroll"===u&&Or("scroll",r));switch(n){case"input":Q(r),re(r,s,!0);break;case"textarea":Q(r),ce(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=Vr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(u=9===o.nodeType?o:o.ownerDocument,e===de&&(e=fe(n)),e===de?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[Jr]=t,e[Xr]=r,Wa(e,t,!1,!1),t.stateNode=e,u=xe(n,r),n){case"dialog":Or("cancel",e),Or("close",e),o=r;break;case"iframe":case"object":case"embed":Or("load",e),o=r;break;case"video":case"audio":for(o=0;o<Cr.length;o++)Or(Cr[o],e);o=r;break;case"source":Or("error",e),o=r;break;case"img":case"image":case"link":Or("error",e),Or("load",e),o=r;break;case"details":Or("toggle",e),o=r;break;case"input":ee(e,r),o=Z(e,r),Or("invalid",e);break;case"option":o=oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=i({},r,{value:void 0}),Or("invalid",e);break;case"textarea":le(e,r),o=se(e,r),Or("invalid",e);break;default:o=r}Te(n,o);var c=o;for(s in c)if(c.hasOwnProperty(s)){var d=c[s];"style"===s?we(e,d):"dangerouslySetInnerHTML"===s?null!=(d=d?d.__html:void 0)&&ge(e,d):"children"===s?"string"==typeof d?("textarea"!==n||""!==d)&&ve(e,d):"number"==typeof d&&ve(e,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(l.hasOwnProperty(s)?null!=d&&"onScroll"===s&&Or("scroll",e):null!=d&&E(e,s,d,u))}switch(n){case"input":Q(e),re(e,r,!1);break;case"textarea":Q(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Y(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ae(e,!!r.multiple,s,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Vr)}$r(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Qa(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=Do(Ao.current),Do(Oo.current),Go(t)?(r=t.stateNode,n=t.memoizedProps,r[Jr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Jr]=t,t.stateNode=r)}return null;case 13:return ui(Po),r=t.memoizedState,64&t.flags?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Go(t):n=null!==e.memoizedState,r&&!n&&2&t.mode&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||1&Po.current?0===Rs&&(Rs=3):(0!==Rs&&3!==Rs||(Rs=4),null===As||!(134217727&Vs)&&!(134217727&Us)||gl(As,Ls))),(r||n)&&(t.flags|=4),null);case 4:return Mo(),Ya(t),null===e&&Ar(t.stateNode.containerInfo),null;case 10:return no(t),null;case 19:if(ui(Po),null===(r=t.memoizedState))return null;if(s=!!(64&t.flags),null===(u=r.rendering))if(s)is(r,!1);else{if(0!==Rs||null!==e&&64&e.flags)for(e=t.child;null!==e;){if(null!==(u=jo(e))){for(t.flags|=64,is(r,!1),null!==(s=u.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(u=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=u.childLanes,s.lanes=u.lanes,s.child=u.child,s.memoizedProps=u.memoizedProps,s.memoizedState=u.memoizedState,s.updateQueue=u.updateQueue,s.type=u.type,e=u.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ci(Po,1&Po.current|2),t.child}e=e.sibling}null!==r.tail&&$i()>Hs&&(t.flags|=64,s=!0,is(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=jo(u))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),is(r,!0),null===r.tail&&"hidden"===r.tailMode&&!u.alternate&&!Bo)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*$i()-r.renderingStartTime>Hs&&1073741824!==n&&(t.flags|=64,s=!0,is(r,!1),t.lanes=33554432);r.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=r.last)?n.sibling=u:t.child=u,r.last=u)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=$i(),n.sibling=null,t=Po.current,ci(Po,s?1&t|2:1&t),n):null;case 23:case 24:return wl(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function as(e){switch(e.tag){case 1:gi(e.type)&&vi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Mo(),ui(pi),ui(fi),Ko(),64&(t=e.flags))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Ro(e),null;case 13:return ui(Po),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ui(Po),null;case 4:return Mo(),null;case 10:return no(e),null;case 23:case 24:return wl(),null;default:return null}}function ss(e,t){try{var n="",r=t;do{n+=G(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function ls(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}Wa=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ya=function(){},Ka=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Do(Oo.current);var a,s=null;switch(n){case"input":o=Z(e,o),r=Z(e,r),s=[];break;case"option":o=oe(e,o),r=oe(e,r),s=[];break;case"select":o=i({},o,{value:void 0}),r=i({},r,{value:void 0}),s=[];break;case"textarea":o=se(e,o),r=se(e,r),s=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Vr)}for(d in Te(n,r),n=null,o)if(!r.hasOwnProperty(d)&&o.hasOwnProperty(d)&&null!=o[d])if("style"===d){var u=o[d];for(a in u)u.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(l.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in r){var c=r[d];if(u=null!=o?o[d]:void 0,r.hasOwnProperty(d)&&c!==u&&(null!=c||null!=u))if("style"===d)if(u){for(a in u)!u.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&u[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(s||(s=[]),s.push(d,n)),n=c;else"dangerouslySetInnerHTML"===d?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(s=s||[]).push(d,c)):"children"===d?"string"!=typeof c&&"number"!=typeof c||(s=s||[]).push(d,""+c):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(l.hasOwnProperty(d)?(null!=c&&"onScroll"===d&&Or("scroll",e),s||u===c||(s=[])):"object"==typeof c&&null!==c&&c.$$typeof===F?c.toString():(s=s||[]).push(d,c))}n&&(s=s||[]).push("style",n);var d=s;(t.updateQueue=d)&&(t.flags|=4)}},Qa=function(e,t,n,r){n!==r&&(t.flags|=4)};var us="function"==typeof WeakMap?WeakMap:Map;function cs(e,t,n){(n=uo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ys||(Ys=!0,Ks=r),ls(0,t)},n}function ds(e,t,n){(n=uo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return ls(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Qs?Qs=new Set([this]):Qs.add(this),ls(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var fs="function"==typeof WeakSet?WeakSet:Set;function ps(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){jl(e,t)}else t.current=null}function hs(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Qi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Gr(t.stateNode.containerInfo))}throw Error(a(163))}function ms(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(!(3&~e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,4&(i=i.tag)&&1&i&&(Fl(n,e),Ml(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Qi(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&ho(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}ho(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&$r(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&wt(n)))))}throw Error(a(163))}function gs(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=null!=i&&i.hasOwnProperty("display")?i.display:null,r.style.display=Ee("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function vs(e,t){if(Ti&&"function"==typeof Ti.onCommitFiberUnmount)try{Ti.onCommitFiberUnmount(ki,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(4&r)Fl(t,n);else{r=t;try{i()}catch(e){jl(r,e)}}n=n.next}while(n!==e)}break;case 1:if(ps(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){jl(t,e)}break;case 5:ps(t);break;case 4:Ts(e,t)}}function ys(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function bs(e){return 5===e.tag||3===e.tag||4===e.tag}function Es(e){e:{for(var t=e.return;null!==t;){if(bs(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(ve(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||bs(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?ws(e,n,t):ks(e,n,t)}function ws(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Vr));else if(4!==r&&null!==(e=e.child))for(ws(e,t,n),e=e.sibling;null!==e;)ws(e,t,n),e=e.sibling}function ks(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ks(e,t,n),e=e.sibling;null!==e;)ks(e,t,n),e=e.sibling}function Ts(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(a(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag){e:for(var s=e,l=i,u=l;;)if(vs(s,u),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===l)break e;for(;null===u.sibling;){if(null===u.return||u.return===l)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}r?(s=n,l=i.stateNode,8===s.nodeType?s.parentNode.removeChild(l):s.removeChild(l)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(vs(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function xs(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{!(3&~r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[Xr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),xe(e,i),t=xe(e,r),i=0;i<o.length;i+=2){var s=o[i],l=o[i+1];"style"===s?we(n,l):"dangerouslySetInnerHTML"===s?ge(n,l):"children"===s?ve(n,l):E(n,s,l,t)}switch(e){case"input":ne(n,r);break;case"textarea":ue(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(o=r.value)?ae(n,!!r.multiple,o,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,wt(n.containerInfo)));case 13:return null!==t.memoizedState&&(qs=$i(),gs(t.child,!0)),void Cs(t);case 19:return void Cs(t);case 23:case 24:return void gs(t,null!==t.memoizedState)}throw Error(a(163))}function Cs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new fs),t.forEach((function(t){var r=Ul.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Ss(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&null!==(t=t.memoizedState)&&null===t.dehydrated}var Ns=Math.ceil,_s=w.ReactCurrentDispatcher,Os=w.ReactCurrentOwner,Is=0,As=null,Ds=null,Ls=0,Ms=0,Fs=li(0),Rs=0,Ps=null,js=0,Vs=0,Us=0,Bs=0,$s=null,qs=0,Hs=1/0;function zs(){Hs=$i()+500}var Gs,Ws=null,Ys=!1,Ks=null,Qs=null,Js=!1,Xs=null,Zs=90,el=[],tl=[],nl=null,rl=0,il=null,ol=-1,al=0,sl=0,ll=null,ul=!1;function cl(){return 48&Is?$i():-1!==ol?ol:ol=$i()}function dl(e){if(!(2&(e=e.mode)))return 1;if(!(4&e))return 99===qi()?1:2;if(0===al&&(al=js),0!==Ki.transition){0!==sl&&(sl=null!==$s?$s.pendingLanes:0),e=al;var t=4186112&~sl;return 0==(t&=-t)&&0==(t=(e=4186112&~e)&-e)&&(t=8192),t}return e=qi(),e=Vt(4&Is&&98===e?12:e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),al)}function fl(e,t,n){if(50<rl)throw rl=0,il=null,Error(a(185));if(null===(e=pl(e,t)))return null;$t(e,t,n),e===As&&(Us|=t,4===Rs&&gl(e,Ls));var r=qi();1===t?8&Is&&!(48&Is)?vl(e):(hl(e,n),0===Is&&(zs(),Wi())):(!(4&Is)||98!==r&&99!==r||(null===nl?nl=new Set([e]):nl.add(e)),hl(e,n)),$s=e}function pl(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function hl(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-qt(s),u=1<<l,c=o[l];if(-1===c){if(!(u&r)||u&i){c=t,Rt(u);var d=Ft;o[l]=10<=d?c+250:6<=d?c+5e3:-1}}else c<=t&&(e.expiredLanes|=u);s&=~u}if(r=Pt(e,e===As?Ls:0),t=Ft,0===r)null!==n&&(n!==Ri&&Si(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Ri&&Si(n)}15===t?(n=vl.bind(null,e),null===ji?(ji=[n],Vi=Ci(Ai,Yi)):ji.push(n),n=Ri):14===t?n=Gi(99,vl.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),n=Gi(n,ml.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function ml(e){if(ol=-1,sl=al=0,48&Is)throw Error(a(327));var t=e.callbackNode;if(Ll()&&e.callbackNode!==t)return null;var n=Pt(e,e===As?Ls:0);if(0===n)return null;var r=n,i=Is;Is|=16;var o=xl();for(As===e&&Ls===r||(zs(),kl(e,r));;)try{Nl();break}catch(t){Tl(e,t)}if(to(),_s.current=o,Is=i,null!==Ds?r=0:(As=null,Ls=0,r=Rs),js&Us)kl(e,0);else if(0!==r){if(2===r&&(Is|=64,e.hydrate&&(e.hydrate=!1,Gr(e.containerInfo)),0!==(n=jt(e))&&(r=Cl(e,n))),1===r)throw t=Ps,kl(e,0),gl(e,n),hl(e,$i()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:case 5:Il(e);break;case 3:if(gl(e,n),(62914560&n)===n&&10<(r=qs+500-$i())){if(0!==Pt(e,0))break;if(((i=e.suspendedLanes)&n)!==n){cl(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Hr(Il.bind(null,e),r);break}Il(e);break;case 4:if(gl(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var s=31-qt(n);o=1<<s,(s=r[s])>i&&(i=s),n&=~o}if(n=i,10<(n=(120>(n=$i()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ns(n/1960))-n)){e.timeoutHandle=Hr(Il.bind(null,e),n);break}Il(e);break;default:throw Error(a(329))}}return hl(e,$i()),e.callbackNode===t?ml.bind(null,e):null}function gl(e,t){for(t&=~Bs,t&=~Us,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-qt(t),r=1<<n;e[n]=-1,t&=~r}}function vl(e){if(48&Is)throw Error(a(327));if(Ll(),e===As&&e.expiredLanes&Ls){var t=Ls,n=Cl(e,t);js&Us&&(n=Cl(e,t=Pt(e,t)))}else n=Cl(e,t=Pt(e,0));if(0!==e.tag&&2===n&&(Is|=64,e.hydrate&&(e.hydrate=!1,Gr(e.containerInfo)),0!==(t=jt(e))&&(n=Cl(e,t))),1===n)throw n=Ps,kl(e,0),gl(e,t),hl(e,$i()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Il(e),hl(e,$i()),null}function yl(e,t){var n=Is;Is|=1;try{return e(t)}finally{0===(Is=n)&&(zs(),Wi())}}function bl(e,t){var n=Is;Is&=-2,Is|=8;try{return e(t)}finally{0===(Is=n)&&(zs(),Wi())}}function El(e,t){ci(Fs,Ms),Ms|=t,js|=t}function wl(){Ms=Fs.current,ui(Fs)}function kl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,zr(n)),null!==Ds)for(n=Ds.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&vi();break;case 3:Mo(),ui(pi),ui(fi),Ko();break;case 5:Ro(r);break;case 4:Mo();break;case 13:case 19:ui(Po);break;case 10:no(r);break;case 23:case 24:wl()}n=n.return}As=e,Ds=Hl(e.current,null),Ls=Ms=js=t,Rs=0,Ps=null,Bs=Us=Vs=0}function Tl(e,t){for(;;){var n=Ds;try{if(to(),Qo.current=Aa,na){for(var r=Zo.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}na=!1}if(Xo=0,ta=ea=Zo=null,ra=!1,Os.current=null,null===n||null===n.return){Rs=1,Ps=t,Ds=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=Ls,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l;if(!(2&s.mode)){var c=s.alternate;c?(s.updateQueue=c.updateQueue,s.memoizedState=c.memoizedState,s.lanes=c.lanes):(s.updateQueue=null,s.memoizedState=null)}var d=!!(1&Po.current),f=a;do{var p;if(p=13===f.tag){var h=f.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var m=f.memoizedProps;p=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!d)}}if(p){var g=f.updateQueue;if(null===g){var v=new Set;v.add(u),f.updateQueue=v}else g.add(u);if(!(2&f.mode)){if(f.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var y=uo(-1,1);y.tag=2,co(s,y)}s.lanes|=1;break e}l=void 0,s=t;var b=o.pingCache;if(null===b?(b=o.pingCache=new us,l=new Set,b.set(u,l)):void 0===(l=b.get(u))&&(l=new Set,b.set(u,l)),!l.has(s)){l.add(s);var E=Vl.bind(null,o,u,s);u.then(E,E)}f.flags|=4096,f.lanes=t;break e}f=f.return}while(null!==f);l=Error((W(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Rs&&(Rs=2),l=ss(l,s),f=a;do{switch(f.tag){case 3:o=l,f.flags|=4096,t&=-t,f.lanes|=t,fo(f,cs(0,o,t));break e;case 1:o=l;var w=f.type,k=f.stateNode;if(!(64&f.flags||"function"!=typeof w.getDerivedStateFromError&&(null===k||"function"!=typeof k.componentDidCatch||null!==Qs&&Qs.has(k)))){f.flags|=4096,t&=-t,f.lanes|=t,fo(f,ds(f,o,t));break e}}f=f.return}while(null!==f)}Ol(n)}catch(e){t=e,Ds===n&&null!==n&&(Ds=n=n.return);continue}break}}function xl(){var e=_s.current;return _s.current=Aa,null===e?Aa:e}function Cl(e,t){var n=Is;Is|=16;var r=xl();for(As===e&&Ls===t||kl(e,t);;)try{Sl();break}catch(t){Tl(e,t)}if(to(),Is=n,_s.current=r,null!==Ds)throw Error(a(261));return As=null,Ls=0,Rs}function Sl(){for(;null!==Ds;)_l(Ds)}function Nl(){for(;null!==Ds&&!Ni();)_l(Ds)}function _l(e){var t=Gs(e.alternate,e,Ms);e.memoizedProps=e.pendingProps,null===t?Ol(e):Ds=t,Os.current=null}function Ol(e){var t=e;do{var n=t.alternate;if(e=t.return,2048&t.flags){if(null!==(n=as(t)))return n.flags&=2047,void(Ds=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(null!==(n=os(n,t,Ms)))return void(Ds=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||1073741824&Ms||!(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&!(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}if(null!==(t=t.sibling))return void(Ds=t);Ds=t=e}while(null!==t);0===Rs&&(Rs=5)}function Il(e){var t=qi();return zi(99,Al.bind(null,e,t)),null}function Al(e,t){do{Ll()}while(null!==Xs);if(48&Is)throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,o=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var s=e.eventTimes,l=e.expirationTimes;0<o;){var u=31-qt(o),c=1<<u;i[u]=0,s[u]=-1,l[u]=-1,o&=~c}if(null!==nl&&!(24&r)&&nl.has(e)&&nl.delete(e),e===As&&(Ds=As=null,Ls=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=Is,Is|=32,Os.current=null,Ur=Yt,gr(s=mr())){if("selectionStart"in s)l={start:s.selectionStart,end:s.selectionEnd};else e:if(l=(l=s.ownerDocument)&&l.defaultView||window,(c=l.getSelection&&l.getSelection())&&0!==c.rangeCount){l=c.anchorNode,o=c.anchorOffset,u=c.focusNode,c=c.focusOffset;try{l.nodeType,u.nodeType}catch(e){l=null;break e}var d=0,f=-1,p=-1,h=0,m=0,g=s,v=null;t:for(;;){for(var y;g!==l||0!==o&&3!==g.nodeType||(f=d+o),g!==u||0!==c&&3!==g.nodeType||(p=d+c),3===g.nodeType&&(d+=g.nodeValue.length),null!==(y=g.firstChild);)v=g,g=y;for(;;){if(g===s)break t;if(v===l&&++h===o&&(f=d),v===u&&++m===c&&(p=d),null!==(y=g.nextSibling))break;v=(g=v).parentNode}g=y}l=-1===f||-1===p?null:{start:f,end:p}}else l=null;l=l||{start:0,end:0}}else l=null;Br={focusedElem:s,selectionRange:l},Yt=!1,ll=null,ul=!1,Ws=r;do{try{Dl()}catch(e){if(null===Ws)throw Error(a(330));jl(Ws,e),Ws=Ws.nextEffect}}while(null!==Ws);ll=null,Ws=r;do{try{for(s=e;null!==Ws;){var b=Ws.flags;if(16&b&&ve(Ws.stateNode,""),128&b){var E=Ws.alternate;if(null!==E){var w=E.ref;null!==w&&("function"==typeof w?w(null):w.current=null)}}switch(1038&b){case 2:Es(Ws),Ws.flags&=-3;break;case 6:Es(Ws),Ws.flags&=-3,xs(Ws.alternate,Ws);break;case 1024:Ws.flags&=-1025;break;case 1028:Ws.flags&=-1025,xs(Ws.alternate,Ws);break;case 4:xs(Ws.alternate,Ws);break;case 8:Ts(s,l=Ws);var k=l.alternate;ys(l),null!==k&&ys(k)}Ws=Ws.nextEffect}}catch(e){if(null===Ws)throw Error(a(330));jl(Ws,e),Ws=Ws.nextEffect}}while(null!==Ws);if(w=Br,E=mr(),b=w.focusedElem,s=w.selectionRange,E!==b&&b&&b.ownerDocument&&hr(b.ownerDocument.documentElement,b)){null!==s&&gr(b)&&(E=s.start,void 0===(w=s.end)&&(w=E),"selectionStart"in b?(b.selectionStart=E,b.selectionEnd=Math.min(w,b.value.length)):(w=(E=b.ownerDocument||document)&&E.defaultView||window).getSelection&&(w=w.getSelection(),l=b.textContent.length,k=Math.min(s.start,l),s=void 0===s.end?k:Math.min(s.end,l),!w.extend&&k>s&&(l=s,s=k,k=l),l=pr(b,k),o=pr(b,s),l&&o&&(1!==w.rangeCount||w.anchorNode!==l.node||w.anchorOffset!==l.offset||w.focusNode!==o.node||w.focusOffset!==o.offset)&&((E=E.createRange()).setStart(l.node,l.offset),w.removeAllRanges(),k>s?(w.addRange(E),w.extend(o.node,o.offset)):(E.setEnd(o.node,o.offset),w.addRange(E))))),E=[];for(w=b;w=w.parentNode;)1===w.nodeType&&E.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<E.length;b++)(w=E[b]).element.scrollLeft=w.left,w.element.scrollTop=w.top}Yt=!!Ur,Br=Ur=null,e.current=n,Ws=r;do{try{for(b=e;null!==Ws;){var T=Ws.flags;if(36&T&&ms(b,Ws.alternate,Ws),128&T){E=void 0;var x=Ws.ref;if(null!==x){var C=Ws.stateNode;Ws.tag,E=C,"function"==typeof x?x(E):x.current=E}}Ws=Ws.nextEffect}}catch(e){if(null===Ws)throw Error(a(330));jl(Ws,e),Ws=Ws.nextEffect}}while(null!==Ws);Ws=null,Pi(),Is=i}else e.current=n;if(Js)Js=!1,Xs=e,Zs=t;else for(Ws=r;null!==Ws;)t=Ws.nextEffect,Ws.nextEffect=null,8&Ws.flags&&((T=Ws).sibling=null,T.stateNode=null),Ws=t;if(0===(r=e.pendingLanes)&&(Qs=null),1===r?e===il?rl++:(rl=0,il=e):rl=0,n=n.stateNode,Ti&&"function"==typeof Ti.onCommitFiberRoot)try{Ti.onCommitFiberRoot(ki,n,void 0,!(64&~n.current.flags))}catch(e){}if(hl(e,$i()),Ys)throw Ys=!1,e=Ks,Ks=null,e;return 8&Is||Wi(),null}function Dl(){for(;null!==Ws;){var e=Ws.alternate;ul||null===ll||(8&Ws.flags?Ze(Ws,ll)&&(ul=!0):13===Ws.tag&&Ss(e,Ws)&&Ze(Ws,ll)&&(ul=!0));var t=Ws.flags;256&t&&hs(e,Ws),!(512&t)||Js||(Js=!0,Gi(97,(function(){return Ll(),null}))),Ws=Ws.nextEffect}}function Ll(){if(90!==Zs){var e=97<Zs?97:Zs;return Zs=90,zi(e,Rl)}return!1}function Ml(e,t){el.push(t,e),Js||(Js=!0,Gi(97,(function(){return Ll(),null})))}function Fl(e,t){tl.push(t,e),Js||(Js=!0,Gi(97,(function(){return Ll(),null})))}function Rl(){if(null===Xs)return!1;var e=Xs;if(Xs=null,48&Is)throw Error(a(331));var t=Is;Is|=32;var n=tl;tl=[];for(var r=0;r<n.length;r+=2){var i=n[r],o=n[r+1],s=i.destroy;if(i.destroy=void 0,"function"==typeof s)try{s()}catch(e){if(null===o)throw Error(a(330));jl(o,e)}}for(n=el,el=[],r=0;r<n.length;r+=2){i=n[r],o=n[r+1];try{var l=i.create;i.destroy=l()}catch(e){if(null===o)throw Error(a(330));jl(o,e)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return Is=t,Wi(),!0}function Pl(e,t,n){co(e,t=cs(0,t=ss(n,t),1)),t=cl(),null!==(e=pl(e,1))&&($t(e,1,t),hl(e,t))}function jl(e,t){if(3===e.tag)Pl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Pl(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Qs||!Qs.has(r))){var i=ds(n,e=ss(t,e),1);if(co(n,i),i=cl(),null!==(n=pl(n,1)))$t(n,1,i),hl(n,i);else if("function"==typeof r.componentDidCatch&&(null===Qs||!Qs.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Vl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=cl(),e.pingedLanes|=e.suspendedLanes&n,As===e&&(Ls&n)===n&&(4===Rs||3===Rs&&(62914560&Ls)===Ls&&500>$i()-qs?kl(e,0):Bs|=n),hl(e,t)}function Ul(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(2&(t=e.mode)?4&t?(0===al&&(al=js),0===(t=Ut(62914560&~al))&&(t=4194304)):t=99===qi()?1:2:t=1),n=cl(),null!==(e=pl(e,t))&&($t(e,t,n),hl(e,n))}function Bl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function $l(e,t,n,r){return new Bl(e,t,n,r)}function ql(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Hl(e,t){var n=e.alternate;return null===n?((n=$l(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function zl(e,t,n,r,i,o){var s=2;if(r=e,"function"==typeof e)ql(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case x:return Gl(n.children,i,o,t);case R:s=8,i|=16;break;case C:s=8,i|=1;break;case S:return(e=$l(12,n,t,8|i)).elementType=S,e.type=S,e.lanes=o,e;case I:return(e=$l(13,n,t,i)).type=I,e.elementType=I,e.lanes=o,e;case A:return(e=$l(19,n,t,i)).elementType=A,e.lanes=o,e;case P:return Wl(n,i,o,t);case j:return(e=$l(24,n,t,i)).elementType=j,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case N:s=10;break e;case _:s=9;break e;case O:s=11;break e;case D:s=14;break e;case L:s=16,r=null;break e;case M:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=$l(s,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function Gl(e,t,n,r){return(e=$l(7,e,r,t)).lanes=n,e}function Wl(e,t,n,r){return(e=$l(23,e,r,t)).elementType=P,e.lanes=n,e}function Yl(e,t,n){return(e=$l(6,e,null,t)).lanes=n,e}function Kl(e,t,n){return(t=$l(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ql(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Bt(0),this.expirationTimes=Bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bt(0),this.mutableSourceEagerHydrationData=null}function Jl(e,t,n,r){var i=t.current,o=cl(),s=dl(i);e:if(n){t:{if(Ke(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(gi(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(a(171))}if(1===n.tag){var u=n.type;if(gi(u)){n=bi(n,u,l);break e}}n=l}else n=di;return null===t.context?t.context=n:t.pendingContext=n,(t=uo(o,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),co(i,t),fl(i,s,o),s}function Xl(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Zl(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function eu(e,t){Zl(e,t),(e=e.alternate)&&Zl(e,t)}function tu(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Ql(e,t,null!=n&&!0===n.hydrate),t=$l(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,so(t),e[Zr]=n.current,Ar(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function nu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ru(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"==typeof i){var s=i;i=function(){var e=Xl(a);s.call(e)}}Jl(t,a,e,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new tu(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"==typeof i){var l=i;i=function(){var e=Xl(a);l.call(e)}}bl((function(){Jl(t,a,e,i)}))}return Xl(a)}function iu(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!nu(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:T,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Gs=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||pi.current)Ra=!0;else{if(!(n&r)){switch(Ra=!1,t.tag){case 3:Ga(t),Wo();break;case 5:Fo(t);break;case 1:gi(t.type)&&Ei(t);break;case 4:Lo(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;ci(Ji,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return n&t.child.childLanes?Xa(e,t,n):(ci(Po,1&Po.current),null!==(t=rs(e,t,n))?t.sibling:null);ci(Po,1&Po.current);break;case 19:if(r=!!(n&t.childLanes),64&e.flags){if(r)return ns(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ci(Po,Po.current),r)break;return null;case 23:case 24:return t.lanes=0,Ba(e,t,n)}return rs(e,t,n)}Ra=!!(16384&e.flags)}else Ra=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=mi(t,fi.current),io(t,n),i=aa(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,gi(r)){var o=!0;Ei(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,so(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&go(t,r,s,e),i.updater=vo,t.stateNode=i,i._reactInternals=t,wo(t,r,e,n),t=za(null,t,r,!0,o,n)}else t.tag=0,Pa(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"==typeof e)return ql(e)?1:0;if(null!=e){if((e=e.$$typeof)===O)return 11;if(e===D)return 14}return 2}(i),e=Qi(i,e),o){case 0:t=qa(null,t,i,e,n);break e;case 1:t=Ha(null,t,i,e,n);break e;case 11:t=ja(null,t,i,e,n);break e;case 14:t=Va(null,t,i,Qi(i.type,e),r,n);break e}throw Error(a(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,qa(e,t,r,i=t.elementType===r?i:Qi(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ha(e,t,r,i=t.elementType===r?i:Qi(r,i),n);case 3:if(Ga(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,lo(e,t),po(t,r,null,n),(r=t.memoizedState.element)===i)Wo(),t=rs(e,t,n);else{if((o=(i=t.stateNode).hydrate)&&(Uo=Wr(t.stateNode.containerInfo.firstChild),Vo=t,o=Bo=!0),o){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(o=e[i])._workInProgressVersionPrimary=e[i+1],Yo.push(o);for(n=No(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Pa(e,t,r,n),Wo();t=t.child}return t;case 5:return Fo(t),null===e&&Ho(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,qr(r,i)?s=null:null!==o&&qr(r,o)&&(t.flags|=16),$a(e,t),Pa(e,t,s,n),t.child;case 6:return null===e&&Ho(t),null;case 13:return Xa(e,t,n);case 4:return Lo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=So(t,null,r,n):Pa(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,ja(e,t,r,i=t.elementType===r?i:Qi(r,i),n);case 7:return Pa(e,t,t.pendingProps,n),t.child;case 8:case 12:return Pa(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value;var l=t.type._context;if(ci(Ji,l._currentValue),l._currentValue=o,null!==s)if(l=s.value,0==(o=ur(l,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,o):1073741823))){if(s.children===i.children&&!pi.current){t=rs(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var u=l.dependencies;if(null!==u){s=l.child;for(var c=u.firstContext;null!==c;){if(c.context===r&&c.observedBits&o){1===l.tag&&((c=uo(-1,n&-n)).tag=2,co(l,c)),l.lanes|=n,null!==(c=l.alternate)&&(c.lanes|=n),ro(l.return,n),u.lanes|=n;break}c=c.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}Pa(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,io(t,n),r=r(i=oo(i,o.unstable_observedBits)),t.flags|=1,Pa(e,t,r,n),t.child;case 14:return o=Qi(i=t.type,t.pendingProps),Va(e,t,i,o=Qi(i.type,o),r,n);case 15:return Ua(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,gi(r)?(e=!0,Ei(t)):e=!1,io(t,n),bo(t,r,i),wo(t,r,i,n),za(null,t,r,!0,e,n);case 19:return ns(e,t,n);case 23:case 24:return Ba(e,t,n)}throw Error(a(156,t.tag))},tu.prototype.render=function(e){Jl(e,this._internalRoot,null,null)},tu.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Jl(null,e,null,(function(){t[Zr]=null}))},et=function(e){13===e.tag&&(fl(e,4,cl()),eu(e,4))},tt=function(e){13===e.tag&&(fl(e,67108864,cl()),eu(e,67108864))},nt=function(e){if(13===e.tag){var t=cl(),n=dl(e);fl(e,n,t),eu(e,n)}},rt=function(e,t){return t()},Se=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ii(r);if(!i)throw Error(a(90));J(r),ne(r,i)}}}break;case"textarea":ue(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},De=yl,Le=function(e,t,n,r,i){var o=Is;Is|=4;try{return zi(98,e.bind(null,t,n,r,i))}finally{0===(Is=o)&&(zs(),Wi())}},Me=function(){!(49&Is)&&(function(){if(null!==nl){var e=nl;nl=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,hl(e,$i())}))}Wi()}(),Ll())},Fe=function(e,t){var n=Is;Is|=2;try{return e(t)}finally{0===(Is=n)&&(zs(),Wi())}};var ou={Events:[ni,ri,ii,Ie,Ae,Ll,{current:!1}]},au={findFiberByHostInstance:ti,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},su={bundleType:au.bundleType,version:au.version,rendererPackageName:au.rendererPackageName,rendererConfig:au.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Xe(e))?null:e.stateNode},findFiberByHostInstance:au.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var lu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lu.isDisabled&&lu.supportsFiber)try{ki=lu.inject(su),Ti=lu}catch(me){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ou,t.createPortal=iu,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return null===(e=Xe(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Is;if(48&n)return e(t);Is|=1;try{if(e)return zi(99,e.bind(null,t))}finally{Is=n,Wi()}},t.hydrate=function(e,t,n){if(!nu(t))throw Error(a(200));return ru(null,e,t,!0,n)},t.render=function(e,t,n){if(!nu(t))throw Error(a(200));return ru(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!nu(e))throw Error(a(40));return!!e._reactRootContainer&&(bl((function(){ru(null,null,e,!1,(function(){e._reactRootContainer=null,e[Zr]=null}))})),!0)},t.unstable_batchedUpdates=yl,t.unstable_createPortal=function(e,t){return iu(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!nu(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return ru(e,t,n,!1,r)},t.version="17.0.2"},2627:(e,t,n)=>{n.r(t);var r=n(3338),i=(n(9669),n(166)),o=n(4601);n(6540),n(4848),n(961),r.C.registerHelper("hint","graphql",((e,t)=>{const{schema:n,externalFragments:a}=t;if(!n)return;const s=e.getCursor(),l=e.getTokenAt(s),u=null!==l.type&&/"|\w/.test(l.string[0])?l.start:l.end,c=new o.P(s.line,u),d={list:(0,i.g)(n,e.getValue(),c,l,a).map((e=>({text:e.label,type:e.type,description:e.documentation,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason}))),from:{line:s.line,ch:u},to:{line:s.line,ch:l.end}};return(null==d?void 0:d.list)&&d.list.length>0&&(d.from=r.C.Pos(d.from.line,d.from.ch),d.to=r.C.Pos(d.to.line,d.to.ch),r.C.signal(e,"hasCompletion",e,d,l)),d}))},2922:(e,t,n)=>{n(7801)},3023:(e,t,n)=>{n.d(t,{U:()=>d});var r=n(8100),i=n(129),o=n(2242),a=n(2239),s=n(4786),l=n(3298),u=n(6547),c=n(7167);function d(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(e){t[e.variable.name.value]=e},ListValue(t){const n=(0,c.yl)(e.getParentInputType());if(!(0,c.Fs)(n))return f(e,t),!1},ObjectValue(n){const r=(0,c.MR)(e.getInputType());if(!(0,c.qK)(r))return f(e,n),!1;const a=(0,o.K)(n.fields,(e=>e.name.value));for(const t of Object.values(r.getFields()))if(!a[t.name]&&(0,c.YX)(t)){const o=(0,i.N)(t.type);e.reportError(new s.eO(`Field "${r.name}.${t.name}" of required type "${o}" was not provided.`,{nodes:n}))}r.isOneOf&&function(e,t,n,r,i){var o;const a=Object.keys(r);if(1!==a.length)return void e.reportError(new s.eO(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));const u=null===(o=r[a[0]])||void 0===o?void 0:o.value,c=!u||u.kind===l.b.NULL,d=(null==u?void 0:u.kind)===l.b.VARIABLE;if(c)e.reportError(new s.eO(`Field "${n.name}.${a[0]}" must be non-null.`,{nodes:[t]}));else if(d){const r=u.name.value;i[r].type.kind!==l.b.NON_NULL_TYPE&&e.reportError(new s.eO(`Variable "${r}" must be non-nullable to be used for OneOf Input Object "${n.name}".`,{nodes:[t]}))}}(e,n,r,a,t)},ObjectField(t){const n=(0,c.MR)(e.getParentInputType());if(!e.getInputType()&&(0,c.qK)(n)){const i=(0,a.x)(t.name.value,Object.keys(n.getFields()));e.reportError(new s.eO(`Field "${t.name.value}" is not defined by type "${n.name}".`+(0,r.a)(i),{nodes:t}))}},NullValue(t){const n=e.getInputType();(0,c.bd)(n)&&e.reportError(new s.eO(`Expected value of type "${(0,i.N)(n)}", found ${(0,u.y)(t)}.`,{nodes:t}))},EnumValue:t=>f(e,t),IntValue:t=>f(e,t),FloatValue:t=>f(e,t),StringValue:t=>f(e,t),BooleanValue:t=>f(e,t)}}function f(e,t){const n=e.getInputType();if(!n)return;const r=(0,c.MR)(n);if((0,c.zf)(r))try{if(void 0===r.parseLiteral(t,void 0)){const r=(0,i.N)(n);e.reportError(new s.eO(`Expected value of type "${r}", found ${(0,u.y)(t)}.`,{nodes:t}))}}catch(r){const o=(0,i.N)(n);r instanceof s.eO?e.reportError(r):e.reportError(new s.eO(`Expected value of type "${o}", found ${(0,u.y)(t)}; `+r.message,{nodes:t,originalError:r}))}else{const r=(0,i.N)(n);e.reportError(new s.eO(`Expected value of type "${r}", found ${(0,u.y)(t)}.`,{nodes:t}))}}},3074:(e,t,n)=>{n.d(t,{T:()=>s});var r=n(4786),i=n(6547),o=n(7167),a=n(9581);function s(e){return{InlineFragment(t){const n=t.typeCondition;if(n){const t=(0,a.v)(e.getSchema(),n);if(t&&!(0,o.ML)(t)){const t=(0,i.y)(n);e.reportError(new r.eO(`Fragment cannot condition on non composite type "${t}".`,{nodes:n}))}}},FragmentDefinition(t){const n=(0,a.v)(e.getSchema(),t.typeCondition);if(n&&!(0,o.ML)(n)){const n=(0,i.y)(t.typeCondition);e.reportError(new r.eO(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,{nodes:t.typeCondition}))}}}}},3143:(e,t,n)=>{n.d(t,{C:()=>o,V:()=>i});var r=n(8160);function i(e){return o(e.source,(0,r.g)(e.source,e.start))}function o(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,s=t.line+o,l=1===t.line?n:0,u=t.column+l,c=`${e.name}:${s}:${u}\n`,d=r.split(/\r\n|[\n\r]/g),f=d[i];if(f.length>120){const e=Math.floor(u/80),t=u%80,n=[];for(let e=0;e<f.length;e+=80)n.push(f.slice(e,e+80));return c+a([[`${s} |`,n[0]],...n.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return c+a([[s-1+" |",d[i-1]],[`${s} |`,f],["|","^".padStart(u)],[`${s+1} |`,d[i+1]]])}function a(e){const t=e.filter((([e,t])=>void 0!==t)),n=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(n)+(t?" "+t:""))).join("\n")}},3148:(e,t,n)=>{n.r(t),n.d(t,{f:()=>l});var r=n(3338),i=Object.defineProperty,o=(e,t)=>i(e,"name",{value:t,configurable:!0});function a(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}o(a,"_mergeNamespaces");var s={exports:{}};!function(e){function t(t,r,a,s){if(a&&a.call){var l=a;a=null}else l=i(t,a,"rangeFinder");"number"==typeof r&&(r=e.Pos(r,0));var u=i(t,a,"minFoldSize");function c(e){var n=l(t,r);if(!n||n.to.line-n.from.line<u)return null;if("fold"===s)return n;for(var i=t.findMarksAt(n.from),o=0;o<i.length;++o)if(i[o].__isFold){if(!e)return null;n.cleared=!0,i[o].clear()}return n}o(c,"getRange");var d=c(!0);if(i(t,a,"scanUp"))for(;!d&&r.line>t.firstLine();)r=e.Pos(r.line-1,0),d=c(!1);if(d&&!d.cleared&&"unfold"!==s){var f=n(t,a,d);e.on(f,"mousedown",(function(t){p.clear(),e.e_preventDefault(t)}));var p=t.markText(d.from,d.to,{replacedWith:f,clearOnEnter:i(t,a,"clearOnEnter"),__isFold:!0});p.on("clear",(function(n,r){e.signal(t,"unfold",t,n,r)})),e.signal(t,"fold",t,d.from,d.to)}}function n(e,t,n){var r=i(e,t,"widget");if("function"==typeof r&&(r=r(n.from,n.to)),"string"==typeof r){var o=document.createTextNode(r);(r=document.createElement("span")).appendChild(o),r.className="CodeMirror-foldmarker"}else r&&(r=r.cloneNode(!0));return r}o(t,"doFold"),o(n,"makeWidget"),e.newFoldFunction=function(e,n){return function(r,i){t(r,i,{rangeFinder:e,widget:n})}},e.defineExtension("foldCode",(function(e,n,r){t(this,e,n,r)})),e.defineExtension("isFolded",(function(e){for(var t=this.findMarksAt(e),n=0;n<t.length;++n)if(t[n].__isFold)return!0})),e.commands.toggleFold=function(e){e.foldCode(e.getCursor())},e.commands.fold=function(e){e.foldCode(e.getCursor(),null,"fold")},e.commands.unfold=function(e){e.foldCode(e.getCursor(),{scanUp:!1},"unfold")},e.commands.foldAll=function(t){t.operation((function(){for(var n=t.firstLine(),r=t.lastLine();n<=r;n++)t.foldCode(e.Pos(n,0),{scanUp:!1},"fold")}))},e.commands.unfoldAll=function(t){t.operation((function(){for(var n=t.firstLine(),r=t.lastLine();n<=r;n++)t.foldCode(e.Pos(n,0),{scanUp:!1},"unfold")}))},e.registerHelper("fold","combine",(function(){var e=Array.prototype.slice.call(arguments,0);return function(t,n){for(var r=0;r<e.length;++r){var i=e[r](t,n);if(i)return i}}})),e.registerHelper("fold","auto",(function(e,t){for(var n=e.getHelpers(t,"fold"),r=0;r<n.length;r++){var i=n[r](e,t);if(i)return i}}));var r={rangeFinder:e.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1,clearOnEnter:!0};function i(e,t,n){if(t&&void 0!==t[n])return t[n];var i=e.options.foldOptions;return i&&void 0!==i[n]?i[n]:r[n]}e.defineOption("foldOptions",null),o(i,"getOption"),e.defineExtension("foldOption",(function(e,t){return i(this,e,t)}))}(r.a.exports),function(e){e.defineOption("foldGutter",!1,(function(t,i,o){o&&o!=e.Init&&(t.clearGutter(t.state.foldGutter.options.gutter),t.state.foldGutter=null,t.off("gutterClick",c),t.off("changes",d),t.off("viewportChange",f),t.off("fold",p),t.off("unfold",p),t.off("swapDoc",d)),i&&(t.state.foldGutter=new n(r(i)),u(t),t.on("gutterClick",c),t.on("changes",d),t.on("viewportChange",f),t.on("fold",p),t.on("unfold",p),t.on("swapDoc",d))}));var t=e.Pos;function n(e){this.options=e,this.from=this.to=0}function r(e){return!0===e&&(e={}),null==e.gutter&&(e.gutter="CodeMirror-foldgutter"),null==e.indicatorOpen&&(e.indicatorOpen="CodeMirror-foldgutter-open"),null==e.indicatorFolded&&(e.indicatorFolded="CodeMirror-foldgutter-folded"),e}function i(e,n){for(var r=e.findMarks(t(n,0),t(n+1,0)),i=0;i<r.length;++i)if(r[i].__isFold){var o=r[i].find(-1);if(o&&o.line===n)return r[i]}}function a(e){if("string"==typeof e){var t=document.createElement("div");return t.className=e+" CodeMirror-guttermarker-subtle",t}return e.cloneNode(!0)}function s(e,n,r){var o=e.state.foldGutter.options,s=n-1,u=e.foldOption(o,"minFoldSize"),c=e.foldOption(o,"rangeFinder"),d="string"==typeof o.indicatorFolded&&l(o.indicatorFolded),f="string"==typeof o.indicatorOpen&&l(o.indicatorOpen);e.eachLine(n,r,(function(n){++s;var r=null,l=n.gutterMarkers;if(l&&(l=l[o.gutter]),i(e,s)){if(d&&l&&d.test(l.className))return;r=a(o.indicatorFolded)}else{var p=t(s,0),h=c&&c(e,p);if(h&&h.to.line-h.from.line>=u){if(f&&l&&f.test(l.className))return;r=a(o.indicatorOpen)}}(r||l)&&e.setGutterMarker(n,o.gutter,r)}))}function l(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function u(e){var t=e.getViewport(),n=e.state.foldGutter;n&&(e.operation((function(){s(e,t.from,t.to)})),n.from=t.from,n.to=t.to)}function c(e,n,r){var o=e.state.foldGutter;if(o){var a=o.options;if(r==a.gutter){var s=i(e,n);s?s.clear():e.foldCode(t(n,0),a)}}}function d(e){var t=e.state.foldGutter;if(t){var n=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){u(e)}),n.foldOnChangeTimeSpan||600)}}function f(e){var t=e.state.foldGutter;if(t){var n=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){var n=e.getViewport();t.from==t.to||n.from-t.to>20||t.from-n.to>20?u(e):e.operation((function(){n.from<t.from&&(s(e,n.from,t.from),t.from=n.from),n.to>t.to&&(s(e,t.to,n.to),t.to=n.to)}))}),n.updateViewportTimeSpan||400)}}function p(e,t){var n=e.state.foldGutter;if(n){var r=t.line;r>=n.from&&r<n.to&&s(e,r,r+1)}}o(n,"State"),o(r,"parseOptions"),o(i,"isFolded"),o(a,"marker"),o(s,"updateFoldInfo"),o(l,"classTest"),o(u,"updateInViewport"),o(c,"onGutterClick"),o(d,"onChange"),o(f,"onViewportChange"),o(p,"onFold")}(r.a.exports);var l=a({__proto__:null,default:s.exports},[s.exports])},3277:(e,t,n)=>{n.r(t),n.d(t,{j:()=>u});var r=n(3338),i=Object.defineProperty,o=(e,t)=>i(e,"name",{value:t,configurable:!0});function a(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}o(a,"_mergeNamespaces");var s,l={exports:{}};(s=r.a.exports).defineMode("javascript",(function(e,t){var n,r,i=e.indentUnit,a=t.statementIndent,l=t.jsonld,u=t.json||l,c=!1!==t.trackScope,d=t.typescript,f=t.wordCharacters||/[\w$\xa1-\uffff]/,p=function(){function e(e){return{type:e,style:"keyword"}}o(e,"kw");var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("keyword d"),a=e("operator"),s={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e("new"),delete:r,void:r,throw:r,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:a,typeof:a,instanceof:a,true:s,false:s,null:s,undefined:s,NaN:s,Infinity:s,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r}}(),h=/[+\-*&%=<>!?|~^@]/,m=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function g(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}function v(e,t,i){return n=e,r=i,t}function y(e,t){var n=e.next();if('"'==n||"'"==n)return t.tokenize=b(n),t.tokenize(e,t);if("."==n&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return v("number","number");if("."==n&&e.match(".."))return v("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return v(n);if("="==n&&e.eat(">"))return v("=>","operator");if("0"==n&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return v("number","number");if(/\d/.test(n))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),v("number","number");if("/"==n)return e.eat("*")?(t.tokenize=E,E(e,t)):e.eat("/")?(e.skipToEnd(),v("comment","comment")):it(e,t,1)?(g(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),v("regexp","string-2")):(e.eat("="),v("operator","operator",e.current()));if("`"==n)return t.tokenize=w,w(e,t);if("#"==n&&"!"==e.peek())return e.skipToEnd(),v("meta","meta");if("#"==n&&e.eatWhile(f))return v("variable","property");if("<"==n&&e.match("!--")||"-"==n&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),v("comment","comment");if(h.test(n))return">"==n&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=n&&"="!=n||e.eat("="):/[<>*+\-|&?]/.test(n)&&(e.eat(n),">"==n&&e.eat(n))),"?"==n&&e.eat(".")?v("."):v("operator","operator",e.current());if(f.test(n)){e.eatWhile(f);var r=e.current();if("."!=t.lastType){if(p.propertyIsEnumerable(r)){var i=p[r];return v(i.type,i.style,r)}if("async"==r&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return v("async","keyword",r)}return v("variable","variable",r)}}function b(e){return function(t,n){var r,i=!1;if(l&&"@"==t.peek()&&t.match(m))return n.tokenize=y,v("jsonld-keyword","meta");for(;null!=(r=t.next())&&(r!=e||i);)i=!i&&"\\"==r;return i||(n.tokenize=y),v("string","string")}}function E(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=y;break}r="*"==n}return v("comment","comment")}function w(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=y;break}r=!r&&"\\"==n}return v("quasi","string-2",e.current())}o(g,"readRegexp"),o(v,"ret"),o(y,"tokenBase"),o(b,"tokenString"),o(E,"tokenComment"),o(w,"tokenQuasi");function k(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(d){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,o=!1,a=n-1;a>=0;--a){var s=e.string.charAt(a),l="([{}])".indexOf(s);if(l>=0&&l<3){if(!i){++a;break}if(0==--i){"("==s&&(o=!0);break}}else if(l>=3&&l<6)++i;else if(f.test(s))o=!0;else if(/["'\/`]/.test(s))for(;;--a){if(0==a)return;if(e.string.charAt(a-1)==s&&"\\"!=e.string.charAt(a-2)){a--;break}}else if(o&&!i){++a;break}}o&&!i&&(t.fatArrowAt=a)}}o(k,"findFatArrow");var T={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function x(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function C(e,t){if(!c)return!1;for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}function S(e,t,n,r,i){var o=e.cc;for(N.state=e,N.stream=i,N.marked=null,N.cc=o,N.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():u?z:q)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return N.marked?N.marked:"variable"==n&&C(e,r)?"variable-2":t}}o(x,"JSLexical"),o(C,"inScope"),o(S,"parseJS");var N={state:null,column:null,marked:null,cc:null};function _(){for(var e=arguments.length-1;e>=0;e--)N.cc.push(arguments[e])}function O(){return _.apply(null,arguments),!0}function I(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function A(e){var n=N.state;if(N.marked="def",c){if(n.context)if("var"==n.lexical.info&&n.context&&n.context.block){var r=D(e,n.context);if(null!=r)return void(n.context=r)}else if(!I(e,n.localVars))return void(n.localVars=new F(e,n.localVars));t.globalVars&&!I(e,n.globalVars)&&(n.globalVars=new F(e,n.globalVars))}}function D(e,t){if(t){if(t.block){var n=D(e,t.prev);return n?n==t.prev?t:new M(n,t.vars,!0):null}return I(e,t.vars)?t:new M(t.prev,new F(e,t.vars),!1)}return null}function L(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function M(e,t,n){this.prev=e,this.vars=t,this.block=n}function F(e,t){this.name=e,this.next=t}o(_,"pass"),o(O,"cont"),o(I,"inList"),o(A,"register"),o(D,"registerVarScoped"),o(L,"isModifier"),o(M,"Context"),o(F,"Var");var R=new F("this",new F("arguments",null));function P(){N.state.context=new M(N.state.context,N.state.localVars,!1),N.state.localVars=R}function j(){N.state.context=new M(N.state.context,N.state.localVars,!0),N.state.localVars=null}function V(){N.state.localVars=N.state.context.vars,N.state.context=N.state.context.prev}function U(e,t){var n=o((function(){var n=N.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new x(r,N.stream.column(),e,null,n.lexical,t)}),"result");return n.lex=!0,n}function B(){var e=N.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function $(e){function t(n){return n==e?O():";"==e||"}"==n||")"==n||"]"==n?_():O(t)}return o(t,"exp"),t}function q(e,t){return"var"==e?O(U("vardef",t),_e,$(";"),B):"keyword a"==e?O(U("form"),W,q,B):"keyword b"==e?O(U("form"),q,B):"keyword d"==e?N.stream.match(/^\s*$/,!1)?O():O(U("stat"),K,$(";"),B):"debugger"==e?O($(";")):"{"==e?O(U("}"),j,fe,B,V):";"==e?O():"if"==e?("else"==N.state.lexical.info&&N.state.cc[N.state.cc.length-1]==B&&N.state.cc.pop()(),O(U("form"),W,q,B,Me)):"function"==e?O(je):"for"==e?O(U("form"),j,Fe,q,V,B):"class"==e||d&&"interface"==t?(N.marked="keyword",O(U("form","class"==e?e:t),qe,B)):"variable"==e?d&&"declare"==t?(N.marked="keyword",O(q)):d&&("module"==t||"enum"==t||"type"==t)&&N.stream.match(/^\s*\w/,!1)?(N.marked="keyword","enum"==t?O(tt):"type"==t?O(Ue,$("operator"),ve,$(";")):O(U("form"),Oe,$("{"),U("}"),fe,B,B)):d&&"namespace"==t?(N.marked="keyword",O(U("form"),z,q,B)):d&&"abstract"==t?(N.marked="keyword",O(q)):O(U("stat"),oe):"switch"==e?O(U("form"),W,$("{"),U("}","switch"),j,fe,B,B,V):"case"==e?O(z,$(":")):"default"==e?O($(":")):"catch"==e?O(U("form"),P,H,q,B,V):"export"==e?O(U("stat"),We,B):"import"==e?O(U("stat"),Ke,B):"async"==e?O(q):"@"==t?O(z,q):_(U("stat"),z,$(";"),B)}function H(e){if("("==e)return O(Be,$(")"))}function z(e,t){return Y(e,t,!1)}function G(e,t){return Y(e,t,!0)}function W(e){return"("!=e?_():O(U(")"),K,$(")"),B)}function Y(e,t,n){if(N.state.fatArrowAt==N.stream.start){var r=n?te:ee;if("("==e)return O(P,U(")"),ce(Be,")"),B,$("=>"),r,V);if("variable"==e)return _(P,Oe,$("=>"),r,V)}var i=n?J:Q;return T.hasOwnProperty(e)?O(i):"function"==e?O(je,i):"class"==e||d&&"interface"==t?(N.marked="keyword",O(U("form"),$e,B)):"keyword c"==e||"async"==e?O(n?G:z):"("==e?O(U(")"),K,$(")"),B,i):"operator"==e||"spread"==e?O(n?G:z):"["==e?O(U("]"),et,B,i):"{"==e?de(se,"}",null,i):"quasi"==e?_(X,i):"new"==e?O(ne(n)):O()}function K(e){return e.match(/[;\}\)\],]/)?_():_(z)}function Q(e,t){return","==e?O(K):J(e,t,!1)}function J(e,t,n){var r=0==n?Q:J,i=0==n?z:G;return"=>"==e?O(P,n?te:ee,V):"operator"==e?/\+\+|--/.test(t)||d&&"!"==t?O(r):d&&"<"==t&&N.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?O(U(">"),ce(ve,">"),B,r):"?"==t?O(z,$(":"),i):O(i):"quasi"==e?_(X,r):";"!=e?"("==e?de(G,")","call",r):"."==e?O(ae,r):"["==e?O(U("]"),K,$("]"),B,r):d&&"as"==t?(N.marked="keyword",O(ve,r)):"regexp"==e?(N.state.lastType=N.marked="operator",N.stream.backUp(N.stream.pos-N.stream.start-1),O(i)):void 0:void 0}function X(e,t){return"quasi"!=e?_():"${"!=t.slice(t.length-2)?O(X):O(K,Z)}function Z(e){if("}"==e)return N.marked="string-2",N.state.tokenize=w,O(X)}function ee(e){return k(N.stream,N.state),_("{"==e?q:z)}function te(e){return k(N.stream,N.state),_("{"==e?q:G)}function ne(e){return function(t){return"."==t?O(e?ie:re):"variable"==t&&d?O(Ce,e?J:Q):_(e?G:z)}}function re(e,t){if("target"==t)return N.marked="keyword",O(Q)}function ie(e,t){if("target"==t)return N.marked="keyword",O(J)}function oe(e){return":"==e?O(B,q):_(Q,$(";"),B)}function ae(e){if("variable"==e)return N.marked="property",O()}function se(e,t){return"async"==e?(N.marked="property",O(se)):"variable"==e||"keyword"==N.style?(N.marked="property","get"==t||"set"==t?O(le):(d&&N.state.fatArrowAt==N.stream.start&&(n=N.stream.match(/^\s*:\s*/,!1))&&(N.state.fatArrowAt=N.stream.pos+n[0].length),O(ue))):"number"==e||"string"==e?(N.marked=l?"property":N.style+" property",O(ue)):"jsonld-keyword"==e?O(ue):d&&L(t)?(N.marked="keyword",O(se)):"["==e?O(z,pe,$("]"),ue):"spread"==e?O(G,ue):"*"==t?(N.marked="keyword",O(se)):":"==e?_(ue):void 0;var n}function le(e){return"variable"!=e?_(ue):(N.marked="property",O(je))}function ue(e){return":"==e?O(G):"("==e?_(je):void 0}function ce(e,t,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=N.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),O((function(n,r){return n==t||r==t?_():_(e)}),r)}return i==t||o==t?O():n&&n.indexOf(";")>-1?_(e):O($(t))}return o(r,"proceed"),function(n,i){return n==t||i==t?O():_(e,r)}}function de(e,t,n){for(var r=3;r<arguments.length;r++)N.cc.push(arguments[r]);return O(U(t,n),ce(e,t),B)}function fe(e){return"}"==e?O():_(q,fe)}function pe(e,t){if(d){if(":"==e)return O(ve);if("?"==t)return O(pe)}}function he(e,t){if(d&&(":"==e||"in"==t))return O(ve)}function me(e){if(d&&":"==e)return N.stream.match(/^\s*\w+\s+is\b/,!1)?O(z,ge,ve):O(ve)}function ge(e,t){if("is"==t)return N.marked="keyword",O()}function ve(e,t){return"keyof"==t||"typeof"==t||"infer"==t||"readonly"==t?(N.marked="keyword",O("typeof"==t?G:ve)):"variable"==e||"void"==t?(N.marked="type",O(xe)):"|"==t||"&"==t?O(ve):"string"==e||"number"==e||"atom"==e?O(xe):"["==e?O(U("]"),ce(ve,"]",","),B,xe):"{"==e?O(U("}"),be,B,xe):"("==e?O(ce(Te,")"),ye,xe):"<"==e?O(ce(ve,">"),ve):"quasi"==e?_(we,xe):void 0}function ye(e){if("=>"==e)return O(ve)}function be(e){return e.match(/[\}\)\]]/)?O():","==e||";"==e?O(be):_(Ee,be)}function Ee(e,t){return"variable"==e||"keyword"==N.style?(N.marked="property",O(Ee)):"?"==t||"number"==e||"string"==e?O(Ee):":"==e?O(ve):"["==e?O($("variable"),he,$("]"),Ee):"("==e?_(Ve,Ee):e.match(/[;\}\)\],]/)?void 0:O()}function we(e,t){return"quasi"!=e?_():"${"!=t.slice(t.length-2)?O(we):O(ve,ke)}function ke(e){if("}"==e)return N.marked="string-2",N.state.tokenize=w,O(we)}function Te(e,t){return"variable"==e&&N.stream.match(/^\s*[?:]/,!1)||"?"==t?O(Te):":"==e?O(ve):"spread"==e?O(Te):_(ve)}function xe(e,t){return"<"==t?O(U(">"),ce(ve,">"),B,xe):"|"==t||"."==e||"&"==t?O(ve):"["==e?O(ve,$("]"),xe):"extends"==t||"implements"==t?(N.marked="keyword",O(ve)):"?"==t?O(ve,$(":"),ve):void 0}function Ce(e,t){if("<"==t)return O(U(">"),ce(ve,">"),B,xe)}function Se(){return _(ve,Ne)}function Ne(e,t){if("="==t)return O(ve)}function _e(e,t){return"enum"==t?(N.marked="keyword",O(tt)):_(Oe,pe,De,Le)}function Oe(e,t){return d&&L(t)?(N.marked="keyword",O(Oe)):"variable"==e?(A(t),O()):"spread"==e?O(Oe):"["==e?de(Ae,"]"):"{"==e?de(Ie,"}"):void 0}function Ie(e,t){return"variable"!=e||N.stream.match(/^\s*:/,!1)?("variable"==e&&(N.marked="property"),"spread"==e?O(Oe):"}"==e?_():"["==e?O(z,$("]"),$(":"),Ie):O($(":"),Oe,De)):(A(t),O(De))}function Ae(){return _(Oe,De)}function De(e,t){if("="==t)return O(G)}function Le(e){if(","==e)return O(_e)}function Me(e,t){if("keyword b"==e&&"else"==t)return O(U("form","else"),q,B)}function Fe(e,t){return"await"==t?O(Fe):"("==e?O(U(")"),Re,B):void 0}function Re(e){return"var"==e?O(_e,Pe):"variable"==e?O(Pe):_(Pe)}function Pe(e,t){return")"==e?O():";"==e?O(Pe):"in"==t||"of"==t?(N.marked="keyword",O(z,Pe)):_(z,Pe)}function je(e,t){return"*"==t?(N.marked="keyword",O(je)):"variable"==e?(A(t),O(je)):"("==e?O(P,U(")"),ce(Be,")"),B,me,q,V):d&&"<"==t?O(U(">"),ce(Se,">"),B,je):void 0}function Ve(e,t){return"*"==t?(N.marked="keyword",O(Ve)):"variable"==e?(A(t),O(Ve)):"("==e?O(P,U(")"),ce(Be,")"),B,me,V):d&&"<"==t?O(U(">"),ce(Se,">"),B,Ve):void 0}function Ue(e,t){return"keyword"==e||"variable"==e?(N.marked="type",O(Ue)):"<"==t?O(U(">"),ce(Se,">"),B):void 0}function Be(e,t){return"@"==t&&O(z,Be),"spread"==e?O(Be):d&&L(t)?(N.marked="keyword",O(Be)):d&&"this"==e?O(pe,De):_(Oe,pe,De)}function $e(e,t){return"variable"==e?qe(e,t):He(e,t)}function qe(e,t){if("variable"==e)return A(t),O(He)}function He(e,t){return"<"==t?O(U(">"),ce(Se,">"),B,He):"extends"==t||"implements"==t||d&&","==e?("implements"==t&&(N.marked="keyword"),O(d?ve:z,He)):"{"==e?O(U("}"),ze,B):void 0}function ze(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||d&&L(t))&&N.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(N.marked="keyword",O(ze)):"variable"==e||"keyword"==N.style?(N.marked="property",O(Ge,ze)):"number"==e||"string"==e?O(Ge,ze):"["==e?O(z,pe,$("]"),Ge,ze):"*"==t?(N.marked="keyword",O(ze)):d&&"("==e?_(Ve,ze):";"==e||","==e?O(ze):"}"==e?O():"@"==t?O(z,ze):void 0}function Ge(e,t){if("!"==t)return O(Ge);if("?"==t)return O(Ge);if(":"==e)return O(ve,De);if("="==t)return O(G);var n=N.state.lexical.prev;return _(n&&"interface"==n.info?Ve:je)}function We(e,t){return"*"==t?(N.marked="keyword",O(Ze,$(";"))):"default"==t?(N.marked="keyword",O(z,$(";"))):"{"==e?O(ce(Ye,"}"),Ze,$(";")):_(q)}function Ye(e,t){return"as"==t?(N.marked="keyword",O($("variable"))):"variable"==e?_(G,Ye):void 0}function Ke(e){return"string"==e?O():"("==e?_(z):"."==e?_(Q):_(Qe,Je,Ze)}function Qe(e,t){return"{"==e?de(Qe,"}"):("variable"==e&&A(t),"*"==t&&(N.marked="keyword"),O(Xe))}function Je(e){if(","==e)return O(Qe,Je)}function Xe(e,t){if("as"==t)return N.marked="keyword",O(Qe)}function Ze(e,t){if("from"==t)return N.marked="keyword",O(z)}function et(e){return"]"==e?O():_(ce(G,"]"))}function tt(){return _(U("form"),Oe,$("{"),U("}"),ce(nt,"}"),B,B)}function nt(){return _(Oe,De)}function rt(e,t){return"operator"==e.lastType||","==e.lastType||h.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function it(e,t,n){return t.tokenize==y&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return o(P,"pushcontext"),o(j,"pushblockcontext"),P.lex=j.lex=!0,o(V,"popcontext"),V.lex=!0,o(U,"pushlex"),o(B,"poplex"),B.lex=!0,o($,"expect"),o(q,"statement"),o(H,"maybeCatchBinding"),o(z,"expression"),o(G,"expressionNoComma"),o(W,"parenExpr"),o(Y,"expressionInner"),o(K,"maybeexpression"),o(Q,"maybeoperatorComma"),o(J,"maybeoperatorNoComma"),o(X,"quasi"),o(Z,"continueQuasi"),o(ee,"arrowBody"),o(te,"arrowBodyNoComma"),o(ne,"maybeTarget"),o(re,"target"),o(ie,"targetNoComma"),o(oe,"maybelabel"),o(ae,"property"),o(se,"objprop"),o(le,"getterSetter"),o(ue,"afterprop"),o(ce,"commasep"),o(de,"contCommasep"),o(fe,"block"),o(pe,"maybetype"),o(he,"maybetypeOrIn"),o(me,"mayberettype"),o(ge,"isKW"),o(ve,"typeexpr"),o(ye,"maybeReturnType"),o(be,"typeprops"),o(Ee,"typeprop"),o(we,"quasiType"),o(ke,"continueQuasiType"),o(Te,"typearg"),o(xe,"afterType"),o(Ce,"maybeTypeArgs"),o(Se,"typeparam"),o(Ne,"maybeTypeDefault"),o(_e,"vardef"),o(Oe,"pattern"),o(Ie,"proppattern"),o(Ae,"eltpattern"),o(De,"maybeAssign"),o(Le,"vardefCont"),o(Me,"maybeelse"),o(Fe,"forspec"),o(Re,"forspec1"),o(Pe,"forspec2"),o(je,"functiondef"),o(Ve,"functiondecl"),o(Ue,"typename"),o(Be,"funarg"),o($e,"classExpression"),o(qe,"className"),o(He,"classNameAfter"),o(ze,"classBody"),o(Ge,"classfield"),o(We,"afterExport"),o(Ye,"exportField"),o(Ke,"afterImport"),o(Qe,"importSpec"),o(Je,"maybeMoreImports"),o(Xe,"maybeAs"),o(Ze,"maybeFrom"),o(et,"arrayLiteral"),o(tt,"enumdef"),o(nt,"enummember"),o(rt,"isContinuedStatement"),o(it,"expressionAllowed"),{startState:function(e){var n={tokenize:y,lastType:"sof",cc:[],lexical:new x((e||0)-i,0,"block",!1),localVars:t.localVars,context:t.localVars&&new M(null,null,!1),indented:e||0};return t.globalVars&&"object"==typeof t.globalVars&&(n.globalVars=t.globalVars),n},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),k(e,t)),t.tokenize!=E&&e.eatSpace())return null;var i=t.tokenize(e,t);return"comment"==n?i:(t.lastType="operator"!=n||"++"!=r&&"--"!=r?n:"incdec",S(t,i,n,r,e))},indent:function(e,n){if(e.tokenize==E||e.tokenize==w)return s.Pass;if(e.tokenize!=y)return 0;var r,o=n&&n.charAt(0),l=e.lexical;if(!/^\s*else\b/.test(n))for(var u=e.cc.length-1;u>=0;--u){var c=e.cc[u];if(c==B)l=l.prev;else if(c!=Me&&c!=V)break}for(;("stat"==l.type||"form"==l.type)&&("}"==o||(r=e.cc[e.cc.length-1])&&(r==Q||r==J)&&!/^[,\.=+\-*:?[\(]/.test(n));)l=l.prev;a&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var d=l.type,f=o==d;return"vardef"==d?l.indented+("operator"==e.lastType||","==e.lastType?l.info.length+1:0):"form"==d&&"{"==o?l.indented:"form"==d?l.indented+i:"stat"==d?l.indented+(rt(e,n)?a||i:0):"switch"!=l.info||f||0==t.doubleIndentSwitch?l.align?l.column+(f?0:1):l.indented+(f?0:i):l.indented+(/^(?:case|default)\b/.test(n)?i:2*i)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:u?null:"/*",blockCommentEnd:u?null:"*/",blockCommentContinue:u?null:" * ",lineComment:u?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:u?"json":"javascript",jsonldMode:l,jsonMode:u,expressionAllowed:it,skipExpression:function(e){S(e,"atom","atom","true",new s.StringStream("",2,null))}}})),s.registerHelper("wordChars","javascript",/[\w$]/),s.defineMIME("text/javascript","javascript"),s.defineMIME("text/ecmascript","javascript"),s.defineMIME("application/javascript","javascript"),s.defineMIME("application/x-javascript","javascript"),s.defineMIME("application/ecmascript","javascript"),s.defineMIME("application/json",{name:"javascript",json:!0}),s.defineMIME("application/x-json",{name:"javascript",json:!0}),s.defineMIME("application/manifest+json",{name:"javascript",json:!0}),s.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),s.defineMIME("text/typescript",{name:"javascript",typescript:!0}),s.defineMIME("application/typescript",{name:"javascript",typescript:!0});var u=a({__proto__:null,default:l.exports},[l.exports])},3296:(e,t,n)=>{n.d(t,{K:()=>c});var r=n(129),i=n(1181),o=n(3480),a=n(2475),s=n(3298),l=n(7167),u=n(3770);function c(e,t){if((0,l.bd)(t)){const n=c(e,t.ofType);return(null==n?void 0:n.kind)===s.b.NULL?null:n}if(null===e)return{kind:s.b.NULL};if(void 0===e)return null;if((0,l.Fs)(t)){const n=t.ofType;if((0,o.A)(e)){const t=[];for(const r of e){const e=c(r,n);null!=e&&t.push(e)}return{kind:s.b.LIST,values:t}}return c(e,n)}if((0,l.qK)(t)){if(!(0,a.Z)(e))return null;const n=[];for(const r of Object.values(t.getFields())){const t=c(e[r.name],r.type);t&&n.push({kind:s.b.OBJECT_FIELD,name:{kind:s.b.NAME,value:r.name},value:t})}return{kind:s.b.OBJECT,fields:n}}if((0,l.zf)(t)){const n=t.serialize(e);if(null==n)return null;if("boolean"==typeof n)return{kind:s.b.BOOLEAN,value:n};if("number"==typeof n&&Number.isFinite(n)){const e=String(n);return d.test(e)?{kind:s.b.INT,value:e}:{kind:s.b.FLOAT,value:e}}if("string"==typeof n)return(0,l.oF)(t)?{kind:s.b.ENUM,value:n}:t===u.N1&&d.test(n)?{kind:s.b.INT,value:n}:{kind:s.b.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${(0,r.N)(n)}.`)}(0,i.V)(!1,"Unexpected input type: "+(0,r.N)(t))}const d=/^-?(?:0|[1-9][0-9]*)$/},3298:(e,t,n)=>{var r;n.d(t,{b:()=>r}),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(r||(r={}))},3338:(e,t,n)=>{n.r(t),n.d(t,{C:()=>u,a:()=>l,c:()=>c});var r=n(166),i=Object.defineProperty,o=(e,t)=>i(e,"name",{value:t,configurable:!0});function a(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}o(a,"_mergeNamespaces");var s,l={exports:{}};s=l,r.c,s.exports=function(){var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),a=/Edge\/(\d+)/.exec(e),s=r||i||a,l=s&&(r?document.documentMode||6:+(a||i)[1]),u=!a&&/WebKit\//.test(e),c=u&&/Qt\/\d+\.\d+/.test(e),d=!a&&/Chrome\//.test(e),f=/Opera\//.test(e),p=/Apple Computer/.test(navigator.vendor),h=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),m=/PhantomJS/.test(e),g=p&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),v=/Android/.test(e),y=g||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=g||/Mac/.test(t),E=/\bCrOS\b/.test(e),w=/win/i.test(t),k=f&&e.match(/Version\/(\d*\.\d*)/);k&&(k=Number(k[1])),k&&k>=15&&(f=!1,u=!0);var T=b&&(c||f&&(null==k||k<12.11)),x=n||s&&l>=9;function C(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}o(C,"classTest");var S,N=o((function(e,t){var n=e.className,r=C(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}}),"rmClass");function _(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function O(e,t){return _(e).appendChild(t)}function I(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function A(e,t,n,r){var i=I(e,t,n,r);return i.setAttribute("role","presentation"),i}function D(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function L(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function M(e,t){var n=e.className;C(t).test(n)||(e.className+=(n?" ":"")+t)}function F(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!C(n[r]).test(t)&&(t+=" "+n[r]);return t}o(_,"removeChildren"),o(O,"removeChildrenAndAdd"),o(I,"elt"),o(A,"eltP"),S=document.createRange?o((function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}),"range"):o((function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r}),"range"),o(D,"contains"),o(L,"activeElt"),o(M,"addClass"),o(F,"joinClasses");var R=o((function(e){e.select()}),"selectInput");function P(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function j(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function V(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=r||0,a=i||0;;){var s=e.indexOf("\t",o);if(s<0||s>=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}g?R=o((function(e){e.selectionStart=0,e.selectionEnd=e.value.length}),"selectInput"):s&&(R=o((function(e){try{e.select()}catch(e){}}),"selectInput")),o(P,"bind"),o(j,"copyObj"),o(V,"countColumn");var U=o((function(){this.id=null,this.f=null,this.time=0,this.handler=P(this.onTimeout,this)}),"Delayed");function B(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}U.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},U.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)},o(B,"indexOf");var $={toString:function(){return"CodeMirror.Pass"}},q={scroll:!1},H={origin:"*mouse"},z={origin:"+move"};function G(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}o(G,"findColumn");var W=[""];function Y(e){for(;W.length<=e;)W.push(K(W)+" ");return W[e]}function K(e){return e[e.length-1]}function Q(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function J(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}function X(){}function Z(e,t){var n;return Object.create?n=Object.create(e):(X.prototype=e,n=new X),t&&j(t,n),n}o(Y,"spaceStr"),o(K,"lst"),o(Q,"map"),o(J,"insertSorted"),o(X,"nothing"),o(Z,"createObj");var ee=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function te(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||ee.test(e))}function ne(e,t){return t?!!(t.source.indexOf("\\w")>-1&&te(e))||t.test(e):te(e)}function re(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}o(te,"isWordCharBasic"),o(ne,"isWordChar"),o(re,"isEmpty");var ie=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function oe(e){return e.charCodeAt(0)>=768&&ie.test(e)}function ae(e,t,n){for(;(n<0?t>0:t<e.length)&&oe(e.charAt(t));)t+=n;return t}function se(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function le(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}o(oe,"isExtendingChar"),o(ae,"skipExtendingChars"),o(se,"findFirst"),o(le,"iterateBidiSections");var ue=null;function ce(e,t,n){var r;ue=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:ue=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:ue=i)}return null!=r?r:ue}o(ce,"getBidiPartAt");var de=function(){function e(e){return e<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(e):1424<=e&&e<=1524?"R":1536<=e&&e<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(e-1536):1774<=e&&e<=2220?"r":8192<=e&&e<=8203?"w":8204==e?"b":"L"}o(e,"charType");var t=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,r=/[LRr]/,i=/[Lb1n]/,a=/[1n]/;function s(e,t,n){this.level=e,this.from=t,this.to=n}return o(s,"BidiSpan"),function(o,l){var u="ltr"==l?"L":"R";if(0==o.length||"ltr"==l&&!t.test(o))return!1;for(var c=o.length,d=[],f=0;f<c;++f)d.push(e(o.charCodeAt(f)));for(var p=0,h=u;p<c;++p){var m=d[p];"m"==m?d[p]=h:h=m}for(var g=0,v=u;g<c;++g){var y=d[g];"1"==y&&"r"==v?d[g]="n":r.test(y)&&(v=y,"r"==y&&(d[g]="R"))}for(var b=1,E=d[0];b<c-1;++b){var w=d[b];"+"==w&&"1"==E&&"1"==d[b+1]?d[b]="1":","!=w||E!=d[b+1]||"1"!=E&&"n"!=E||(d[b]=E),E=w}for(var k=0;k<c;++k){var T=d[k];if(","==T)d[k]="N";else if("%"==T){var x=void 0;for(x=k+1;x<c&&"%"==d[x];++x);for(var C=k&&"!"==d[k-1]||x<c&&"1"==d[x]?"1":"N",S=k;S<x;++S)d[S]=C;k=x-1}}for(var N=0,_=u;N<c;++N){var O=d[N];"L"==_&&"1"==O?d[N]="L":r.test(O)&&(_=O)}for(var I=0;I<c;++I)if(n.test(d[I])){var A=void 0;for(A=I+1;A<c&&n.test(d[A]);++A);for(var D="L"==(I?d[I-1]:u),L=D==("L"==(A<c?d[A]:u))?D?"L":"R":u,M=I;M<A;++M)d[M]=L;I=A-1}for(var F,R=[],P=0;P<c;)if(i.test(d[P])){var j=P;for(++P;P<c&&i.test(d[P]);++P);R.push(new s(0,j,P))}else{var V=P,U=R.length,B="rtl"==l?1:0;for(++P;P<c&&"L"!=d[P];++P);for(var $=V;$<P;)if(a.test(d[$])){V<$&&(R.splice(U,0,new s(1,V,$)),U+=B);var q=$;for(++$;$<P&&a.test(d[$]);++$);R.splice(U,0,new s(2,q,$)),U+=B,V=$}else++$;V<P&&R.splice(U,0,new s(1,V,P))}return"ltr"==l&&(1==R[0].level&&(F=o.match(/^\s+/))&&(R[0].from=F[0].length,R.unshift(new s(0,0,F[0].length))),1==K(R).level&&(F=o.match(/\s+$/))&&(K(R).to-=F[0].length,R.push(new s(0,c-F[0].length,c)))),"rtl"==l?R.reverse():R}}();function fe(e,t){var n=e.order;return null==n&&(n=e.order=de(e.text,t)),n}o(fe,"getOrder");var pe=[],he=o((function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||pe).concat(n)}}),"on");function me(e,t){return e._handlers&&e._handlers[t]||pe}function ge(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=B(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function ve(e,t){var n=me(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function ye(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),ve(e,n||t.type,e,t),xe(t)||t.codemirrorIgnore}function be(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==B(n,t[r])&&n.push(t[r])}function Ee(e,t){return me(e,t).length>0}function we(e){e.prototype.on=function(e,t){he(this,e,t)},e.prototype.off=function(e,t){ge(this,e,t)}}function ke(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Te(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function xe(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Ce(e){ke(e),Te(e)}function Se(e){return e.target||e.srcElement}function Ne(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),b&&e.ctrlKey&&1==t&&(t=3),t}o(me,"getHandlers"),o(ge,"off"),o(ve,"signal"),o(ye,"signalDOMEvent"),o(be,"signalCursorActivity"),o(Ee,"hasHandler"),o(we,"eventMixin"),o(ke,"e_preventDefault"),o(Te,"e_stopPropagation"),o(xe,"e_defaultPrevented"),o(Ce,"e_stop"),o(Se,"e_target"),o(Ne,"e_button");var _e,Oe,Ie=function(){if(s&&l<9)return!1;var e=I("div");return"draggable"in e||"dragDrop"in e}();function Ae(e){if(null==_e){var t=I("span","​");O(e,I("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(_e=t.offsetWidth<=1&&t.offsetHeight>2&&!(s&&l<8))}var n=_e?I("span","​"):I("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function De(e){if(null!=Oe)return Oe;var t=O(e,document.createTextNode("AخA")),n=S(t,0,1).getBoundingClientRect(),r=S(t,1,2).getBoundingClientRect();return _(e),!(!n||n.left==n.right)&&(Oe=r.right-n.right<3)}o(Ae,"zeroWidthElement"),o(De,"hasBadBidiRects");var Le,Me=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Fe=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Re="oncopy"in(Le=I("div"))||(Le.setAttribute("oncopy","return;"),"function"==typeof Le.oncopy),Pe=null;function je(e){if(null!=Pe)return Pe;var t=O(e,I("span","x")),n=t.getBoundingClientRect(),r=S(t,0,1).getBoundingClientRect();return Pe=Math.abs(n.left-r.left)>1}o(je,"hasBadZoomedRects");var Ve={},Ue={};function Be(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ve[e]=t}function $e(e,t){Ue[e]=t}function qe(e){if("string"==typeof e&&Ue.hasOwnProperty(e))e=Ue[e];else if(e&&"string"==typeof e.name&&Ue.hasOwnProperty(e.name)){var t=Ue[e.name];"string"==typeof t&&(t={name:t}),(e=Z(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return qe("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return qe("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function He(e,t){t=qe(t);var n=Ve[t.name];if(!n)return He(e,"text/plain");var r=n(e,t);if(ze.hasOwnProperty(t.name)){var i=ze[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}o(Be,"defineMode"),o($e,"defineMIME"),o(qe,"resolveMode"),o(He,"getMode");var ze={};function Ge(e,t){j(t,ze.hasOwnProperty(e)?ze[e]:ze[e]={})}function We(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Ye(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Ke(e,t,n){return!e.startState||e.startState(t,n)}o(Ge,"extendMode"),o(We,"copyState"),o(Ye,"innerMode"),o(Ke,"startState");var Qe=o((function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n}),"StringStream");function Je(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function Xe(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,(function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i})),r}function Ze(e,t,n){var r=[];return e.iter(t,n,(function(e){r.push(e.text)})),r}function et(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function tt(e){if(null==e.parent)return null;for(var t=e.parent,n=B(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function nt(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a].height;if(t<s)break;t-=s}return n+a}function rt(e,t){return t>=e.first&&t<e.first+e.size}function it(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function ot(e,t,n){if(void 0===n&&(n=null),!(this instanceof ot))return new ot(e,t,n);this.line=e,this.ch=t,this.sticky=n}function at(e,t){return e.line-t.line||e.ch-t.ch}function st(e,t){return e.sticky==t.sticky&&0==at(e,t)}function lt(e){return ot(e.line,e.ch)}function ut(e,t){return at(e,t)<0?t:e}function ct(e,t){return at(e,t)<0?e:t}function dt(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function ft(e,t){if(t.line<e.first)return ot(e.first,0);var n=e.first+e.size-1;return t.line>n?ot(n,Je(e,n).text.length):pt(t,Je(e,t.line).text.length)}function pt(e,t){var n=e.ch;return null==n||n>t?ot(e.line,t):n<0?ot(e.line,0):e}function ht(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=ft(e,t[r]);return n}Qe.prototype.eol=function(){return this.pos>=this.string.length},Qe.prototype.sol=function(){return this.pos==this.lineStart},Qe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Qe.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Qe.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},Qe.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Qe.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Qe.prototype.skipToEnd=function(){this.pos=this.string.length},Qe.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Qe.prototype.backUp=function(e){this.pos-=e},Qe.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=V(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},Qe.prototype.indentation=function(){return V(this.string,null,this.tabSize)-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},Qe.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=o((function(e){return n?e.toLowerCase():e}),"cased");if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},Qe.prototype.current=function(){return this.string.slice(this.start,this.pos)},Qe.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Qe.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Qe.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)},o(Je,"getLine"),o(Xe,"getBetween"),o(Ze,"getLines"),o(et,"updateLineHeight"),o(tt,"lineNo"),o(nt,"lineAtHeight"),o(rt,"isLine"),o(it,"lineNumberFor"),o(ot,"Pos"),o(at,"cmp"),o(st,"equalCursorPos"),o(lt,"copyPos"),o(ut,"maxPos"),o(ct,"minPos"),o(dt,"clipLine"),o(ft,"clipPos"),o(pt,"clipToLen"),o(ht,"clipPosArray");var mt=o((function(e,t){this.state=e,this.lookAhead=t}),"SavedContext"),gt=o((function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1}),"Context");function vt(e,t,n,r){var i=[e.state.modeGen],a={};St(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),a,r);for(var s=n.state,l=o((function(r){n.baseTokens=i;var o=e.state.overlays[r],l=1,u=0;n.state=!0,St(e,t.text,o.mode,n,(function(e,t){for(var n=l;u<e;){var r=i[l];r>e&&i.splice(l,1,e,i[l+1],r),l+=2,u=Math.min(e,r)}if(t)if(o.opaque)i.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;n<l;n+=2){var a=i[n+1];i[n+1]=(a?a+" ":"")+"overlay "+t}}),a),n.state=s,n.baseTokens=null,n.baseTokenPos=1}),"loop"),u=0;u<e.state.overlays.length;++u)l(u);return{styles:i,classes:a.bgClass||a.textClass?a:null}}function yt(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=bt(e,tt(t)),i=t.text.length>e.options.maxHighlightLength&&We(e.doc.mode,r.state),o=vt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function bt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new gt(r,!0,t);var o=Nt(e,t,n),a=o>r.first&&Je(r,o-1).stateAfter,s=a?gt.fromSaved(r,a,o):new gt(r,Ke(r.mode),o);return r.iter(o,t,(function(n){Et(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()})),n&&(r.modeFrontier=s.line),s}function Et(e,t,n,r){var i=e.doc.mode,o=new Qe(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&wt(i,n.state);!o.eol();)kt(i,o,n.state),o.start=o.pos}function wt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Ye(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function kt(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=Ye(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}gt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},gt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},gt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},gt.fromSaved=function(e,t,n){return t instanceof mt?new gt(e,We(e.mode,t.state),n,t.lookAhead):new gt(e,We(e.mode,t),n)},gt.prototype.save=function(e){var t=!1!==e?We(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new mt(t,this.maxLookAhead):t},o(vt,"highlightLine"),o(yt,"getLineStyles"),o(bt,"getContextBefore"),o(Et,"processLine"),o(wt,"callBlankLine"),o(kt,"readToken");var Tt=o((function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n}),"Token");function xt(e,t,n,r){var i,o,a=e.doc,s=a.mode,l=Je(a,(t=ft(a,t)).line),u=bt(e,t.line,n),c=new Qe(l.text,e.options.tabSize,u);for(r&&(o=[]);(r||c.pos<t.ch)&&!c.eol();)c.start=c.pos,i=kt(s,c,u.state),r&&o.push(new Tt(c,i,We(a.mode,u.state)));return r?o:new Tt(c,i,u.state)}function Ct(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+n[2])}return e}function St(e,t,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var l,u=0,c=null,d=new Qe(t,e.options.tabSize,r),f=e.options.addModeClass&&[null];for(""==t&&Ct(wt(n,r.state),o);!d.eol();){if(d.pos>e.options.maxHighlightLength?(s=!1,a&&Et(e,t,r,d.pos),d.pos=t.length,l=null):l=Ct(kt(n,d,r.state,f),o),f){var p=f[0].name;p&&(l="m-"+(l?p+" "+l:p))}if(!s||c!=l){for(;u<d.start;)i(u=Math.min(d.start,u+5e3),c);c=l}d.start=d.pos}for(;u<d.pos;){var h=Math.min(d.pos,u+5e3);i(h,c),u=h}}function Nt(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var l=Je(o,s-1),u=l.stateAfter;if(u&&(!n||s+(u instanceof mt?u.lookAhead:0)<=o.modeFrontier))return s;var c=V(l.text,null,e.options.tabSize);(null==i||r>c)&&(i=s-1,r=c)}return i}function _t(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=Je(e,r).stateAfter;if(i&&(!(i instanceof mt)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}o(xt,"takeToken"),o(Ct,"extractLineClasses"),o(St,"runMode"),o(Nt,"findStartLine"),o(_t,"retreatFrontier");var Ot=!1,It=!1;function At(){Ot=!0}function Dt(){It=!0}function Lt(e,t,n){this.marker=e,this.from=t,this.to=n}function Mt(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function Ft(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function Rt(e,t,n){var r=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));r&&e.markedSpans&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}function Pt(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var s=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new Lt(a,o.from,s?null:o.to))}}return r}function jt(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.to||(a.inclusiveRight?o.to>=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new Lt(a,s?null:o.from-t,null==o.to?null:o.to-t))}}return r}function Vt(e,t){if(t.full)return null;var n=rt(e,t.from.line)&&Je(e,t.from.line).markedSpans,r=rt(e,t.to.line)&&Je(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==at(t.from,t.to),s=Pt(n,i,a),l=jt(r,o,a),u=1==t.text.length,c=K(t.text).length+(u?i:0);if(s)for(var d=0;d<s.length;++d){var f=s[d];if(null==f.to){var p=Mt(l,f.marker);p?u&&(f.to=null==p.to?null:p.to+c):f.to=i}}if(l)for(var h=0;h<l.length;++h){var m=l[h];null!=m.to&&(m.to+=c),null==m.from?Mt(s,m.marker)||(m.from=c,u&&(s||(s=[])).push(m)):(m.from+=c,u&&(s||(s=[])).push(m))}s&&(s=Ut(s)),l&&l!=s&&(l=Ut(l));var g=[s];if(!u){var v,y=t.text.length-2;if(y>0&&s)for(var b=0;b<s.length;++b)null==s[b].to&&(v||(v=[])).push(new Lt(s[b].marker,null,null));for(var E=0;E<y;++E)g.push(v);g.push(l)}return g}function Ut(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function Bt(e,t,n){var r=null;if(e.iter(t.line,n.line+1,(function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=B(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],s=a.find(0),l=0;l<i.length;++l){var u=i[l];if(!(at(u.to,s.from)<0||at(u.from,s.to)>0)){var c=[l,1],d=at(u.from,s.from),f=at(u.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&c.push({from:u.from,to:s.from}),(f>0||!a.inclusiveRight&&!f)&&c.push({from:s.to,to:u.to}),i.splice.apply(i,c),l+=c.length-3}}return i}function $t(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function qt(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Ht(e){return e.inclusiveLeft?-1:0}function zt(e){return e.inclusiveRight?1:0}function Gt(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=at(r.from,i.from)||Ht(e)-Ht(t);return o?-o:at(r.to,i.to)||zt(e)-zt(t)||t.id-e.id}function Wt(e,t){var n,r=It&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||Gt(n,i.marker)<0)&&(n=i.marker);return n}function Yt(e){return Wt(e,!0)}function Kt(e){return Wt(e,!1)}function Qt(e,t){var n,r=It&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||Gt(n,o.marker)<0)&&(n=o.marker)}return n}function Jt(e,t,n,r,i){var o=Je(e,t),a=It&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var u=l.marker.find(0),c=at(u.from,n)||Ht(l.marker)-Ht(i),d=at(u.to,r)||zt(l.marker)-zt(i);if(!(c>=0&&d<=0||c<=0&&d>=0)&&(c<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?at(u.to,n)>=0:at(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?at(u.from,r)<=0:at(u.from,r)<0)))return!0}}}function Xt(e){for(var t;t=Yt(e);)e=t.find(-1,!0).line;return e}function Zt(e){for(var t;t=Kt(e);)e=t.find(1,!0).line;return e}function en(e){for(var t,n;t=Kt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function tn(e,t){var n=Je(e,t),r=Xt(n);return n==r?t:tt(r)}function nn(e,t){if(t>e.lastLine())return t;var n,r=Je(e,t);if(!rn(e,r))return t;for(;n=Kt(r);)r=n.find(1,!0).line;return tt(r)+1}function rn(e,t){var n=It&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&on(e,t,r))return!0}}function on(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return on(e,r.line,Mt(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if((i=t.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&on(e,t,i))return!0}function an(e){for(var t=0,n=(e=Xt(e)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==n)break;t+=s.height}return t}function sn(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Yt(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=Kt(r);){var o=t.find(0,!0);n-=r.text.length-o.from.ch,n+=(r=o.to.line).text.length-o.to.ch}return n}function ln(e){var t=e.display,n=e.doc;t.maxLine=Je(n,n.first),t.maxLineLength=sn(t.maxLine),t.maxLineChanged=!0,n.iter((function(e){var n=sn(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}o(At,"seeReadOnlySpans"),o(Dt,"seeCollapsedSpans"),o(Lt,"MarkedSpan"),o(Mt,"getMarkedSpanFor"),o(Ft,"removeMarkedSpan"),o(Rt,"addMarkedSpan"),o(Pt,"markedSpansBefore"),o(jt,"markedSpansAfter"),o(Vt,"stretchSpansOverChange"),o(Ut,"clearEmptySpans"),o(Bt,"removeReadOnlyRanges"),o($t,"detachMarkedSpans"),o(qt,"attachMarkedSpans"),o(Ht,"extraLeft"),o(zt,"extraRight"),o(Gt,"compareCollapsedMarkers"),o(Wt,"collapsedSpanAtSide"),o(Yt,"collapsedSpanAtStart"),o(Kt,"collapsedSpanAtEnd"),o(Qt,"collapsedSpanAround"),o(Jt,"conflictingCollapsedRange"),o(Xt,"visualLine"),o(Zt,"visualLineEnd"),o(en,"visualLineContinued"),o(tn,"visualLineNo"),o(nn,"visualLineEndNo"),o(rn,"lineIsHidden"),o(on,"lineIsHiddenInner"),o(an,"heightAtLine"),o(sn,"lineLength"),o(ln,"findMaxLine");var un=o((function(e,t,n){this.text=e,qt(this,t),this.height=n?n(this):1}),"Line");function cn(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),$t(e),qt(e,n);var i=r?r(e):1;i!=e.height&&et(e,i)}function dn(e){e.parent=null,$t(e)}un.prototype.lineNo=function(){return tt(this)},we(un),o(cn,"updateLine"),o(dn,"cleanUpLine");var fn={},pn={};function hn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?pn:fn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function mn(e,t){var n=A("span",null,null,u?"padding-right: .1px":null),r={pre:A("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=vn,De(e.display.measure)&&(a=fe(o,e.doc.direction))&&(r.addToken=bn(r.addToken,a)),r.map=[],wn(o,r,yt(e,o,t!=e.display.externalMeasured&&tt(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=F(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=F(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Ae(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(u){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return ve(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=F(r.pre.className,r.textClass||"")),r}function gn(e){var t=I("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function vn(e,t,n,r,i,o,a){if(t){var u,c=e.splitSpaces?yn(t,e.trailingSpace):t,d=e.cm.state.specialChars,f=!1;if(d.test(t)){u=document.createDocumentFragment();for(var p=0;;){d.lastIndex=p;var h=d.exec(t),m=h?h.index-p:t.length-p;if(m){var g=document.createTextNode(c.slice(p,p+m));s&&l<9?u.appendChild(I("span",[g])):u.appendChild(g),e.map.push(e.pos,e.pos+m,g),e.col+=m,e.pos+=m}if(!h)break;p+=m+1;var v=void 0;if("\t"==h[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(v=u.appendChild(I("span",Y(b),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=b}else"\r"==h[0]||"\n"==h[0]?((v=u.appendChild(I("span","\r"==h[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",h[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(h[0])).setAttribute("cm-text",h[0]),s&&l<9?u.appendChild(I("span",[v])):u.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,u=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,u),s&&l<9&&(f=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),n||r||i||f||o||a){var E=n||"";r&&(E+=r),i&&(E+=i);var w=I("span",[u],E,o);if(a)for(var k in a)a.hasOwnProperty(k)&&"style"!=k&&"class"!=k&&w.setAttribute(k,a[k]);return e.content.appendChild(w)}e.content.appendChild(u)}}function yn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}function bn(e,t){return function(n,r,i,o,a,s,l){i=i?i+" cm-force-border":"cm-force-border";for(var u=n.pos,c=u+r.length;;){for(var d=void 0,f=0;f<t.length&&!((d=t[f]).to>u&&d.from<=u);f++);if(d.to>=c)return e(n,r,i,o,a,s,l);e(n,r.slice(0,d.to-u),i,o,null,s,l),o=null,r=r.slice(d.to-u),u=d.to}}}function En(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function wn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,u,c,d,f,p=i.length,h=0,m=1,g="",v=0;;){if(v==h){l=u=c=s="",f=null,d=null,v=1/0;for(var y=[],b=void 0,E=0;E<r.length;++E){var w=r[E],k=w.marker;if("bookmark"==k.type&&w.from==h&&k.widgetNode)y.push(k);else if(w.from<=h&&(null==w.to||w.to>h||k.collapsed&&w.to==h&&w.from==h)){if(null!=w.to&&w.to!=h&&v>w.to&&(v=w.to,u=""),k.className&&(l+=" "+k.className),k.css&&(s=(s?s+";":"")+k.css),k.startStyle&&w.from==h&&(c+=" "+k.startStyle),k.endStyle&&w.to==v&&(b||(b=[])).push(k.endStyle,w.to),k.title&&((f||(f={})).title=k.title),k.attributes)for(var T in k.attributes)(f||(f={}))[T]=k.attributes[T];k.collapsed&&(!d||Gt(d.marker,k)<0)&&(d=w)}else w.from>h&&v>w.from&&(v=w.from)}if(b)for(var x=0;x<b.length;x+=2)b[x+1]==v&&(u+=" "+b[x]);if(!d||d.from==h)for(var C=0;C<y.length;++C)En(t,0,y[C]);if(d&&(d.from||0)==h){if(En(t,(null==d.to?p+1:d.to)-h,d.marker,null==d.from),null==d.to)return;d.to==h&&(d=!1)}}if(h>=p)break;for(var S=Math.min(p,v);;){if(g){var N=h+g.length;if(!d){var _=N>S?g.slice(0,S-h):g;t.addToken(t,_,a?a+l:l,c,h+_.length==v?u:"",s,f)}if(N>=S){g=g.slice(S-h),h=S;break}h=N,c=""}g=i.slice(o,o=n[m++]),a=hn(n[m++],t.cm.options)}}else for(var O=1;O<n.length;O+=2)t.addToken(t,i.slice(o,o=n[O]),hn(n[O+1],t.cm.options))}function kn(e,t,n){this.line=t,this.rest=en(t),this.size=this.rest?tt(K(this.rest))-n+1:1,this.node=this.text=null,this.hidden=rn(e,t)}function Tn(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new kn(e.doc,Je(e.doc,o),o);r=o+a.size,i.push(a)}return i}o(hn,"interpretTokenStyle"),o(mn,"buildLineContent"),o(gn,"defaultSpecialCharPlaceholder"),o(vn,"buildToken"),o(yn,"splitSpaces"),o(bn,"buildTokenBadBidi"),o(En,"buildCollapsedSpan"),o(wn,"insertLineContent"),o(kn,"LineView"),o(Tn,"buildViewArray");var xn=null;function Cn(e){xn?xn.ops.push(e):e.ownsGroup=xn={ops:[e],delayedCallbacks:[]}}function Sn(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}function Nn(e,t){var n=e.ownsGroup;if(n)try{Sn(n)}finally{xn=null,t(n)}}o(Cn,"pushOperation"),o(Sn,"fireCallbacksForOps"),o(Nn,"finishOperation");var _n=null;function On(e,t){var n=me(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);xn?r=xn.delayedCallbacks:_n?r=_n:(r=_n=[],setTimeout(In,0));for(var a=o((function(e){r.push((function(){return n[e].apply(null,i)}))}),"loop"),s=0;s<n.length;++s)a(s)}}function In(){var e=_n;_n=null;for(var t=0;t<e.length;++t)e[t]()}function An(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?Fn(e,t):"gutter"==o?Pn(e,t,n,r):"class"==o?Rn(e,t):"widget"==o&&jn(e,t,r)}t.changes=null}function Dn(e){return e.node==e.text&&(e.node=I("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),s&&l<8&&(e.node.style.zIndex=2)),e.node}function Ln(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=Dn(t);t.background=r.insertBefore(I("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}function Mn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):mn(e,t)}function Fn(e,t){var n=t.text.className,r=Mn(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,Rn(e,t)):n&&(t.text.className=n)}function Rn(e,t){Ln(e,t),t.line.wrapClass?Dn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function Pn(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=Dn(t);t.gutterBackground=I("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=Dn(t),s=t.gutter=I("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(s.setAttribute("aria-hidden","true"),e.display.input.setUneditable(s),a.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(I("div",it(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var l=0;l<e.display.gutterSpecs.length;++l){var u=e.display.gutterSpecs[l].className,c=o.hasOwnProperty(u)&&o[u];c&&s.appendChild(I("div",[c],"CodeMirror-gutter-elt","left: "+r.gutterLeft[u]+"px; width: "+r.gutterWidth[u]+"px"))}}}function jn(e,t,n){t.alignable&&(t.alignable=null);for(var r=C("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,r.test(i.className)&&t.node.removeChild(i);Un(e,t,n)}function Vn(e,t,n,r){var i=Mn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),Rn(e,t),Pn(e,t,n,r),Un(e,t,r),t.node}function Un(e,t,n){if(Bn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)Bn(e,t.rest[r],t,n,!1)}function Bn(e,t,n,r,i){if(t.widgets)for(var o=Dn(n),a=0,s=t.widgets;a<s.length;++a){var l=s[a],u=I("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||u.setAttribute("cm-ignore-events","true"),$n(l,u,n,r),e.display.input.setUneditable(u),i&&l.above?o.insertBefore(u,n.gutter||n.text):o.appendChild(u),On(l,"redraw")}}function $n(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function qn(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!D(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),O(t.display.measure,I("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function Hn(e,t){for(var n=Se(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function zn(e){return e.lineSpace.offsetTop}function Gn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Wn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=O(e.measure,I("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function Yn(e){return 50-e.display.nativeBarWidth}function Kn(e){return e.display.scroller.clientWidth-Yn(e)-e.display.barWidth}function Qn(e){return e.display.scroller.clientHeight-Yn(e)-e.display.barHeight}function Jn(e,t,n){var r=e.options.lineWrapping,i=r&&Kn(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],u=a[s+1];Math.abs(l.bottom-u.bottom)>2&&o.push((l.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Xn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(tt(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function Zn(e,t){var n=tt(t=Xt(t)),r=e.display.externalMeasured=new kn(e.doc,t,n);r.lineN=n;var i=r.built=mn(e,r);return r.text=i.pre,O(e.display.lineMeasure,i.pre),r}function er(e,t,n,r){return rr(e,nr(e,t),n,r)}function tr(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Rr(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function nr(e,t){var n=tt(t),r=tr(e,n);r&&!r.text?r=null:r&&r.changes&&(An(e,r,n,Ar(e)),e.curOp.forceUpdate=!0),r||(r=Zn(e,t));var i=Xn(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function rr(e,t,n,r,i){t.before&&(n=-1);var o,a=n+(r||"");return t.cache.hasOwnProperty(a)?o=t.cache[a]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(Jn(e,t.view,t.rect),t.hasHeights=!0),(o=lr(e,t,n,r)).bogus||(t.cache[a]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}o(On,"signalLater"),o(In,"fireOrphanDelayed"),o(An,"updateLineForChanges"),o(Dn,"ensureLineWrapped"),o(Ln,"updateLineBackground"),o(Mn,"getLineContent"),o(Fn,"updateLineText"),o(Rn,"updateLineClasses"),o(Pn,"updateLineGutter"),o(jn,"updateLineWidgets"),o(Vn,"buildLineElement"),o(Un,"insertLineWidgets"),o(Bn,"insertLineWidgetsFor"),o($n,"positionLineWidget"),o(qn,"widgetHeight"),o(Hn,"eventInWidget"),o(zn,"paddingTop"),o(Gn,"paddingVert"),o(Wn,"paddingH"),o(Yn,"scrollGap"),o(Kn,"displayWidth"),o(Qn,"displayHeight"),o(Jn,"ensureLineHeights"),o(Xn,"mapFromLineView"),o(Zn,"updateExternalMeasurement"),o(er,"measureChar"),o(tr,"findViewForLine"),o(nr,"prepareMeasureForLine"),o(rr,"measureCharPrepared");var ir,or={left:0,right:0,top:0,bottom:0};function ar(e,t,n){for(var r,i,o,a,s,l,u=0;u<e.length;u+=3)if(s=e[u],l=e[u+1],t<s?(i=0,o=1,a="left"):t<l?o=1+(i=t-s):(u==e.length-3||t==l&&e[u+3]>t)&&(i=(o=l-s)-1,t>=l&&(a="right")),null!=i){if(r=e[u+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[2+(u-=3)],a="left";if("right"==n&&i==l-s)for(;u<e.length-3&&e[u+3]==e[u+4]&&!e[u+5].insertLeft;)r=e[(u+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:s,coverEnd:l}}function sr(e,t){var n=or;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function lr(e,t,n,r){var i,o=ar(t.map,n,r),a=o.node,u=o.start,c=o.end,d=o.collapse;if(3==a.nodeType){for(var f=0;f<4;f++){for(;u&&oe(t.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c<o.coverEnd&&oe(t.line.text.charAt(o.coverStart+c));)++c;if((i=s&&l<9&&0==u&&c==o.coverEnd-o.coverStart?a.parentNode.getBoundingClientRect():sr(S(a,u,c).getClientRects(),r)).left||i.right||0==u)break;c=u,u-=1,d="right"}s&&l<11&&(i=ur(e.display.measure,i))}else{var p;u>0&&(d=r="right"),i=e.options.lineWrapping&&(p=a.getClientRects()).length>1?p["right"==r?p.length-1:0]:a.getBoundingClientRect()}if(s&&l<9&&!u&&(!i||!i.left&&!i.right)){var h=a.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+Ir(e.display),top:h.top,bottom:h.bottom}:or}for(var m=i.top-t.rect.top,g=i.bottom-t.rect.top,v=(m+g)/2,y=t.view.measure.heights,b=0;b<y.length-1&&!(v<y[b]);b++);var E=b?y[b-1]:0,w=y[b],k={left:("right"==d?i.right:i.left)-t.rect.left,right:("left"==d?i.left:i.right)-t.rect.left,top:E,bottom:w};return i.left||i.right||(k.bogus=!0),e.options.singleCursorHeightPerLine||(k.rtop=m,k.rbottom=g),k}function ur(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!je(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}function cr(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function dr(e){e.display.externalMeasure=null,_(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)cr(e.display.view[t])}function fr(e){dr(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function pr(){return d&&v?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function hr(){return d&&v?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function mr(e){var t=Xt(e).widgets,n=0;if(t)for(var r=0;r<t.length;++r)t[r].above&&(n+=qn(t[r]));return n}function gr(e,t,n,r,i){if(!i){var o=mr(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=an(t);if("local"==r?a+=zn(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:hr());var l=s.left+("window"==r?0:pr());n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function vr(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=pr(),i-=hr();else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function yr(e,t,n,r,i){return r||(r=Je(e.doc,t.line)),gr(e,r,er(e,r,t.ch,i),n)}function br(e,t,n,r,i,a){function s(t,o){var s=rr(e,i,t,o?"right":"left",a);return o?s.left=s.right:s.right=s.left,gr(e,r,s,n)}r=r||Je(e.doc,t.line),i||(i=nr(e,r)),o(s,"get");var l=fe(r,e.doc.direction),u=t.ch,c=t.sticky;if(u>=r.text.length?(u=r.text.length,c="before"):u<=0&&(u=0,c="after"),!l)return s("before"==c?u-1:u,"before"==c);function d(e,t,n){return s(n?e-1:e,1==l[t].level!=n)}o(d,"getBidi");var f=ce(l,u,c),p=ue,h=d(u,f,"before"==c);return null!=p&&(h.other=d(u,p,"before"!=c)),h}function Er(e,t){var n=0;t=ft(e.doc,t),e.options.lineWrapping||(n=Ir(e.display)*t.ch);var r=Je(e.doc,t.line),i=an(r)+zn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function wr(e,t,n,r,i){var o=ot(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function kr(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return wr(r.first,0,null,-1,-1);var i=nt(r,n),o=r.first+r.size-1;if(i>o)return wr(r.first+r.size-1,Je(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=Je(r,i);;){var s=Sr(e,a,i,t,n),l=Qt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var u=l.find(1);if(u.line==i)return u;a=Je(r,i=u.line)}}function Tr(e,t,n,r){r-=mr(t);var i=t.text.length,o=se((function(t){return rr(e,n,t-1).bottom<=r}),i,0);return{begin:o,end:i=se((function(t){return rr(e,n,t).top>r}),o,i)}}function xr(e,t,n,r){return n||(n=nr(e,t)),Tr(e,t,n,gr(e,t,rr(e,n,r),"line").top)}function Cr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function Sr(e,t,n,r,i){i-=an(t);var o=nr(e,t),a=mr(t),s=0,l=t.text.length,u=!0,c=fe(t,e.doc.direction);if(c){var d=(e.options.lineWrapping?_r:Nr)(e,t,n,o,c,r,i);s=(u=1!=d.level)?d.from:d.to-1,l=u?d.to:d.from-1}var f,p,h=null,m=null,g=se((function(t){var n=rr(e,o,t);return n.top+=a,n.bottom+=a,!!Cr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=t,m=n),!0)}),s,l),v=!1;if(m){var y=r-m.left<m.right-r,b=y==u;g=h+(b?0:1),p=b?"after":"before",f=y?m.left:m.right}else{u||g!=l&&g!=s||g++,p=0==g?"after":g==t.text.length?"before":rr(e,o,g-(u?1:0)).bottom+a<=i==u?"after":"before";var E=br(e,ot(n,g,p),"line",t,o);f=E.left,v=i<E.top?-1:i>=E.bottom?1:0}return wr(n,g=ae(t.text,g,1),p,v,r-f)}function Nr(e,t,n,r,i,o,a){var s=se((function(s){var l=i[s],u=1!=l.level;return Cr(br(e,ot(n,u?l.to:l.from,u?"before":"after"),"line",t,r),o,a,!0)}),0,i.length-1),l=i[s];if(s>0){var u=1!=l.level,c=br(e,ot(n,u?l.from:l.to,u?"after":"before"),"line",t,r);Cr(c,o,a,!0)&&c.top>a&&(l=i[s-1])}return l}function _r(e,t,n,r,i,o,a){var s=Tr(e,t,r,a),l=s.begin,u=s.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,d=null,f=0;f<i.length;f++){var p=i[f];if(!(p.from>=u||p.to<=l)){var h=rr(e,r,1!=p.level?Math.min(u,p.to)-1:Math.max(l,p.from)).right,m=h<o?o-h+1e9:h-o;(!c||d>m)&&(c=p,d=m)}}return c||(c=i[i.length-1]),c.from<l&&(c={from:l,to:c.to,level:c.level}),c.to>u&&(c={from:c.from,to:u,level:c.level}),c}function Or(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==ir){ir=I("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)ir.appendChild(document.createTextNode("x")),ir.appendChild(I("br"));ir.appendChild(document.createTextNode("x"))}O(e.measure,ir);var n=ir.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),_(e.measure),n||1}function Ir(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=I("span","xxxxxxxxxx"),n=I("pre",[t],"CodeMirror-line-like");O(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Ar(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:Dr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Dr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Lr(e){var t=Or(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Ir(e.display)-3);return function(i){if(rn(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function Mr(e){var t=e.doc,n=Lr(e);t.iter((function(e){var t=n(e);t!=e.height&&et(e,t)}))}function Fr(e,t,n,r){var i=e.display;if(!n&&"true"==Se(t).getAttribute("cm-not-content"))return null;var o,a,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,a=t.clientY-s.top}catch(e){return null}var l,u=kr(e,o,a);if(r&&u.xRel>0&&(l=Je(e.doc,u.line).text).length==u.ch){var c=V(l,l.length,e.options.tabSize)-l.length;u=ot(u.line,Math.max(0,Math.round((o-Wn(e.display).left)/Ir(e.display))-c))}return u}function Rr(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}function Pr(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)It&&tn(e.doc,t)<i.viewTo&&Vr(e);else if(n<=i.viewFrom)It&&nn(e.doc,n+r)>i.viewFrom?Vr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)Vr(e);else if(t<=i.viewFrom){var o=Ur(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):Vr(e)}else if(n>=i.viewTo){var a=Ur(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):Vr(e)}else{var s=Ur(e,t,t,-1),l=Ur(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(Tn(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):Vr(e)}var u=i.externalMeasured;u&&(n<u.lineN?u.lineN+=r:t<u.lineN+u.size&&(i.externalMeasured=null))}function jr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[Rr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==B(a,n)&&a.push(n)}}}function Vr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Ur(e,t,n,r){var i,o=Rr(e,t),a=e.display.view;if(!It||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l<o;l++)s+=a[l].size;if(s!=t){if(r>0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;tn(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function Br(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=Tn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=Tn(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(Rr(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(Tn(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,Rr(e,n)))),r.viewTo=n}function $r(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function qr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Hr(e,t){void 0===t&&(t=!0);var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=e.options.$customCursor;a&&(t=!0);for(var s=0;s<n.sel.ranges.length;s++)if(t||s!=n.sel.primIndex){var l=n.sel.ranges[s];if(!(l.from().line>=e.display.viewTo||l.to().line<e.display.viewFrom)){var u=l.empty();if(a){var c=a(e,l);c&&zr(e,c,i)}else(u||e.options.showCursorWhenSelecting)&&zr(e,l.head,i);u||Wr(e,l,o)}}return r}function zr(e,t,n){var r=br(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(I("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var o=yr(e,t,"div",null,null),a=o.right-o.left;i.style.width=(a>0?a:e.defaultCharWidth())+"px"}if(r.other){var s=n.appendChild(I("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=r.other.left+"px",s.style.top=r.other.top+"px",s.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function Gr(e,t){return e.top-t.top||e.left-t.left}function Wr(e,t,n){var r=e.display,i=e.doc,a=document.createDocumentFragment(),s=Wn(e.display),l=s.left,u=Math.max(r.sizerWidth,Kn(e)-r.sizer.offsetLeft)-s.right,c="ltr"==i.direction;function d(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),a.appendChild(I("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?u-e:n)+"px;\n height: "+(r-t)+"px"))}function f(t,n,r){var a,s,f=Je(i,t),p=f.text.length;function h(n,r){return yr(e,ot(t,n),"div",f,r)}function m(t,n,r){var i=xr(e,f,null,t),o="ltr"==n==("after"==r)?"left":"right";return h("after"==r?i.begin:i.end-(/\s/.test(f.text.charAt(i.end-1))?2:1),o)[o]}o(h,"coords"),o(m,"wrapX");var g=fe(f,i.direction);return le(g,n||0,null==r?p:r,(function(e,t,i,o){var f="ltr"==i,v=h(e,f?"left":"right"),y=h(t-1,f?"right":"left"),b=null==n&&0==e,E=null==r&&t==p,w=0==o,k=!g||o==g.length-1;if(y.top-v.top<=3){var T=(c?E:b)&&k,x=(c?b:E)&&w?l:(f?v:y).left,C=T?u:(f?y:v).right;d(x,v.top,C-x,v.bottom)}else{var S,N,_,O;f?(S=c&&b&&w?l:v.left,N=c?u:m(e,i,"before"),_=c?l:m(t,i,"after"),O=c&&E&&k?u:y.right):(S=c?m(e,i,"before"):l,N=!c&&b&&w?u:v.right,_=!c&&E&&k?l:y.left,O=c?m(t,i,"after"):u),d(S,v.top,N-S,v.bottom),v.bottom<y.top&&d(l,v.bottom,null,y.top),d(_,y.top,O-_,y.bottom)}(!a||Gr(v,a)<0)&&(a=v),Gr(y,a)<0&&(a=y),(!s||Gr(v,s)<0)&&(s=v),Gr(y,s)<0&&(s=y)})),{start:a,end:s}}o(d,"add"),o(f,"drawForLine");var p=t.from(),h=t.to();if(p.line==h.line)f(p.line,p.ch,h.ch);else{var m=Je(i,p.line),g=Je(i,h.line),v=Xt(m)==Xt(g),y=f(p.line,p.ch,v?m.text.length+1:null).end,b=f(h.line,v?0:null,h.ch).start;v&&(y.top<b.top-2?(d(y.right,y.top,null,y.bottom),d(l,b.top,b.left,b.bottom)):d(y.right,y.top,b.left-y.right,y.bottom)),y.bottom<b.top&&d(l,y.bottom,null,b.top)}n.appendChild(a)}function Yr(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval((function(){e.hasFocus()||Xr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Kr(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Jr(e))}function Qr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Xr(e))}),100)}function Jr(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(ve(e,"focus",e,t),e.state.focused=!0,M(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),u&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Yr(e))}function Xr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ve(e,"blur",e,t),e.state.focused=!1,N(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function Zr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,a=0;a<t.view.length;a++){var u=t.view[a],c=e.options.lineWrapping,d=void 0,f=0;if(!u.hidden){if(i+=u.line.height,s&&l<8){var p=u.node.offsetTop+u.node.offsetHeight;d=p-n,n=p}else{var h=u.node.getBoundingClientRect();d=h.bottom-h.top,!c&&u.text.firstChild&&(f=u.text.firstChild.getBoundingClientRect().right-h.left-1)}var m=u.line.height-d;if((m>.005||m<-.005)&&(i<r&&(o-=m),et(u.line,d),ei(u.line),u.rest))for(var g=0;g<u.rest.length;g++)ei(u.rest[g]);if(f>e.display.sizerWidth){var v=Math.ceil(f/Ir(e.display));v>e.display.maxLineLength&&(e.display.maxLineLength=v,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function ei(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function ti(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-zn(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=nt(t,r),a=nt(t,i);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s<o?(o=s,a=nt(t,an(Je(t,s))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=a&&(o=nt(t,an(Je(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function ni(e,t){if(!ye(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null;if(t.top+r.top<0?i=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!m){var o=I("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-zn(e.display))+"px;\n height: "+(t.bottom-t.top+Yn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}function ri(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?ot(t.line,t.ch+1,"before"):t,t=t.ch?ot(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var a=!1,s=br(e,t),l=n&&n!=t?br(e,n):s,u=oi(e,i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),c=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=u.scrollTop&&(fi(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=u.scrollLeft&&(hi(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return i}function ii(e,t){var n=oi(e,t);null!=n.scrollTop&&fi(e,n.scrollTop),null!=n.scrollLeft&&hi(e,n.scrollLeft)}function oi(e,t){var n=e.display,r=Or(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Qn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Gn(n),l=t.top<r,u=t.bottom>s-r;if(t.top<i)a.scrollTop=l?0:t.top;else if(t.bottom>i+o){var c=Math.min(t.top,(u?s:t.bottom)-o);c!=i&&(a.scrollTop=c)}var d=e.options.fixedGutter?0:n.gutters.offsetWidth,f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-d,p=Kn(e)-n.gutters.offsetWidth,h=t.right-t.left>p;return h&&(t.right=t.left+p),t.left<10?a.scrollLeft=0:t.left<f?a.scrollLeft=Math.max(0,t.left+d-(h?0:10)):t.right>p+f-3&&(a.scrollLeft=t.right+(h?0:10)-p),a}function ai(e,t){null!=t&&(ci(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function si(e){ci(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function li(e,t,n){null==t&&null==n||ci(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function ui(e,t){ci(e),e.curOp.scrollToPos=t}function ci(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,di(e,Er(e,t.from),Er(e,t.to),t.margin))}function di(e,t,n,r){var i=oi(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});li(e,i.scrollLeft,i.scrollTop)}function fi(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||qi(e,{top:t}),pi(e,t,!0),n&&qi(e),Fi(e,100))}function pi(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function hi(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,Wi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function mi(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Gn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Yn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}o(ar,"nodeAndOffsetInLineMap"),o(sr,"getUsefulRect"),o(lr,"measureCharInner"),o(ur,"maybeUpdateRectForZooming"),o(cr,"clearLineMeasurementCacheFor"),o(dr,"clearLineMeasurementCache"),o(fr,"clearCaches"),o(pr,"pageScrollX"),o(hr,"pageScrollY"),o(mr,"widgetTopHeight"),o(gr,"intoCoordSystem"),o(vr,"fromCoordSystem"),o(yr,"charCoords"),o(br,"cursorCoords"),o(Er,"estimateCoords"),o(wr,"PosWithInfo"),o(kr,"coordsChar"),o(Tr,"wrappedLineExtent"),o(xr,"wrappedLineExtentChar"),o(Cr,"boxIsAfter"),o(Sr,"coordsCharInner"),o(Nr,"coordsBidiPart"),o(_r,"coordsBidiPartWrapped"),o(Or,"textHeight"),o(Ir,"charWidth"),o(Ar,"getDimensions"),o(Dr,"compensateForHScroll"),o(Lr,"estimateHeight"),o(Mr,"estimateLineHeights"),o(Fr,"posFromMouse"),o(Rr,"findViewIndex"),o(Pr,"regChange"),o(jr,"regLineChange"),o(Vr,"resetView"),o(Ur,"viewCuttingPoint"),o(Br,"adjustView"),o($r,"countDirtyView"),o(qr,"updateSelection"),o(Hr,"prepareSelection"),o(zr,"drawSelectionCursor"),o(Gr,"cmpCoords"),o(Wr,"drawSelectionRange"),o(Yr,"restartBlink"),o(Kr,"ensureFocus"),o(Qr,"delayBlurEvent"),o(Jr,"onFocus"),o(Xr,"onBlur"),o(Zr,"updateHeightsInViewport"),o(ei,"updateWidgetHeight"),o(ti,"visibleLines"),o(ni,"maybeScrollWindow"),o(ri,"scrollPosIntoView"),o(ii,"scrollIntoView"),o(oi,"calculateScrollPos"),o(ai,"addToScrollTop"),o(si,"ensureCursorVisible"),o(li,"scrollToCoords"),o(ui,"scrollToRange"),o(ci,"resolveScrollToPos"),o(di,"scrollToCoordsRange"),o(fi,"updateScrollTop"),o(pi,"setScrollTop"),o(hi,"setScrollLeft"),o(mi,"measureForScrollbars");var gi=o((function(e,t,n){this.cm=n;var r=this.vert=I("div",[I("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=I("div",[I("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),he(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),he(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,s&&l<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")}),"NativeScrollbars");gi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},gi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},gi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},gi.prototype.zeroWidthHack=function(){var e=b&&!h?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new U,this.disableVert=new U},gi.prototype.enableZeroWidthBar=function(e,t,n){function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)}e.style.pointerEvents="auto",o(r,"maybeDisable"),t.set(1e3,r)},gi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var vi=o((function(){}),"NullScrollbars");function yi(e,t){t||(t=mi(e));var n=e.display.barWidth,r=e.display.barHeight;bi(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Zr(e),bi(e,mi(e)),n=e.display.barWidth,r=e.display.barHeight}function bi(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}vi.prototype.update=function(){return{bottom:0,right:0}},vi.prototype.setScrollLeft=function(){},vi.prototype.setScrollTop=function(){},vi.prototype.clear=function(){},o(yi,"updateScrollbars"),o(bi,"updateScrollbarsInner");var Ei={native:gi,null:vi};function wi(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&N(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Ei[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),he(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?hi(e,t):fi(e,t)}),e),e.display.scrollbars.addClass&&M(e.display.wrapper,e.display.scrollbars.addClass)}o(wi,"initScrollbars");var ki=0;function Ti(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++ki,markArrays:null},Cn(e.curOp)}function xi(e){var t=e.curOp;t&&Nn(t,(function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;Ci(e)}))}function Ci(e){for(var t=e.ops,n=0;n<t.length;n++)Si(t[n]);for(var r=0;r<t.length;r++)Ni(t[r]);for(var i=0;i<t.length;i++)_i(t[i]);for(var o=0;o<t.length;o++)Oi(t[o]);for(var a=0;a<t.length;a++)Ii(t[a])}function Si(e){var t=e.cm,n=t.display;ji(t),e.updateMaxLine&&ln(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Pi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Ni(e){e.updatedDisplay=e.mustUpdate&&Bi(e.cm,e.update)}function _i(e){var t=e.cm,n=t.display;e.updatedDisplay&&Zr(t),e.barMeasure=mi(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=er(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Yn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Kn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Oi(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&hi(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==L();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&yi(t,e.barMeasure),e.updatedDisplay&&Gi(t,e.barMeasure),e.selectionChanged&&Yr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&Kr(e.cm)}function Ii(e){var t=e.cm,n=t.display,r=t.doc;e.updatedDisplay&&$i(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&pi(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&hi(t,e.scrollLeft,!0,!0),e.scrollToPos&&ni(t,ri(t,ft(r,e.scrollToPos.from),ft(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;a<i.length;++a)i[a].lines.length||ve(i[a],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&ve(o[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&ve(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Ai(e,t){if(e.curOp)return t();Ti(e);try{return t()}finally{xi(e)}}function Di(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Ti(e);try{return t.apply(e,arguments)}finally{xi(e)}}}function Li(e){return function(){if(this.curOp)return e.apply(this,arguments);Ti(this);try{return e.apply(this,arguments)}finally{xi(this)}}}function Mi(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Ti(t);try{return e.apply(this,arguments)}finally{xi(t)}}}function Fi(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,P(Ri,e))}function Ri(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=bt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?We(t.mode,r.state):null,l=vt(e,o,r,!0);s&&(r.state=s),o.styles=l.styles;var u=o.styleClasses,c=l.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var d=!a||a.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),f=0;!d&&f<a.length;++f)d=a[f]!=o.styles[f];d&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&Et(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return Fi(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Ai(e,(function(){for(var t=0;t<i.length;t++)jr(e,i[t],"text")}))}}o(Ti,"startOperation"),o(xi,"endOperation"),o(Ci,"endOperations"),o(Si,"endOperation_R1"),o(Ni,"endOperation_W1"),o(_i,"endOperation_R2"),o(Oi,"endOperation_W2"),o(Ii,"endOperation_finish"),o(Ai,"runInOp"),o(Di,"operation"),o(Li,"methodOp"),o(Mi,"docMethodOp"),o(Fi,"startWorker"),o(Ri,"highlightWorker");var Pi=o((function(e,t,n){var r=e.display;this.viewport=t,this.visible=ti(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Kn(e),this.force=n,this.dims=Ar(e),this.events=[]}),"DisplayUpdate");function ji(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Yn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Yn(e)+"px",t.scrollbarsClipped=!0)}function Vi(e){if(e.hasFocus())return null;var t=L();if(!t||!D(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&D(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function Ui(e){if(e&&e.activeElt&&e.activeElt!=L()&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&D(document.body,e.anchorNode)&&D(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}function Bi(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return Vr(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==$r(e))return!1;Yi(e)&&(Vr(e),t.dims=Ar(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),It&&(o=tn(e.doc,o),a=nn(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Br(e,o,a),n.viewOffset=an(Je(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=$r(e);if(!s&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=Vi(e);return l>4&&(n.lineDiv.style.display="none"),Hi(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Ui(u),_(n.cursorDiv),_(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Fi(e,400)),n.updateLineNumbers=null,!0}function $i(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Kn(e))r&&(t.visible=ti(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Gn(e.display)-Qn(e),n.top)}),t.visible=ti(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!Bi(e,t))break;Zr(e);var i=mi(e);qr(e),yi(e,i),Gi(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function qi(e,t){var n=new Pi(e,t);if(Bi(e,n)){Zr(e),$i(e,n);var r=mi(e);qr(e),yi(e,r),Gi(e,r),n.finish()}}function Hi(e,t,n){var r=e.display,i=e.options.lineNumbers,a=r.lineDiv,s=a.firstChild;function l(t){var n=t.nextSibling;return u&&b&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}o(l,"rm");for(var c=r.view,d=r.viewFrom,f=0;f<c.length;f++){var p=c[f];if(p.hidden);else if(p.node&&p.node.parentNode==a){for(;s!=p.node;)s=l(s);var h=i&&null!=t&&t<=d&&p.lineNumber;p.changes&&(B(p.changes,"gutter")>-1&&(h=!1),An(e,p,d,n)),h&&(_(p.lineNumber),p.lineNumber.appendChild(document.createTextNode(it(e.options,d)))),s=p.node.nextSibling}else{var m=Vn(e,p,d,n);a.insertBefore(m,s)}d+=p.size}for(;s;)s=l(s)}function zi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",On(e,"gutterChanged",e)}function Gi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Yn(e)+"px"}function Wi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Dr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var s=n[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function Yi(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=it(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(I("div",[I("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",zi(e.display),!0}return!1}function Ki(e,t){for(var n=[],r=!1,i=0;i<e.length;i++){var o=e[i],a=null;if("string"!=typeof o&&(a=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;r=!0}n.push({className:o,style:a})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function Qi(e){var t=e.gutters,n=e.gutterSpecs;_(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,a=i.style,s=t.appendChild(I("div",null,"CodeMirror-gutter "+o));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==o&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",zi(e)}function Ji(e){Qi(e.display),Pr(e),Wi(e)}function Xi(e,t,r,i){var o=this;this.input=r,o.scrollbarFiller=I("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=I("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=A("div",null,"CodeMirror-code"),o.selectionDiv=I("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=I("div",null,"CodeMirror-cursors"),o.measure=I("div",null,"CodeMirror-measure"),o.lineMeasure=I("div",null,"CodeMirror-measure"),o.lineSpace=A("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var a=A("div",[o.lineSpace],"CodeMirror-lines");o.mover=I("div",[a],null,"position: relative"),o.sizer=I("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=I("div",null,null,"position: absolute; height: 50px; width: 1px;"),o.gutters=I("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=I("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=I("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),o.wrapper.setAttribute("translate","no"),s&&l<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),u||n&&y||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=Ki(i.gutters,i.lineNumbers),Qi(o),r.init(o)}Pi.prototype.signal=function(e,t){Ee(e,t)&&this.events.push(arguments)},Pi.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ve.apply(null,this.events[e])},o(ji,"maybeClipScrollbars"),o(Vi,"selectionSnapshot"),o(Ui,"restoreSelection"),o(Bi,"updateDisplayIfNeeded"),o($i,"postUpdateDisplay"),o(qi,"updateDisplaySimple"),o(Hi,"patchDisplay"),o(zi,"updateGutterSpace"),o(Gi,"setDocumentHeight"),o(Wi,"alignHorizontally"),o(Yi,"maybeUpdateLineNumberWidth"),o(Ki,"getGutters"),o(Qi,"renderGutters"),o(Ji,"updateGutters"),o(Xi,"Display");var Zi=0,eo=null;function to(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function no(e){var t=to(e);return t.x*=eo,t.y*=eo,t}function ro(e,t){var r=to(t),i=r.x,o=r.y,a=eo;0===t.deltaMode&&(i=t.deltaX,o=t.deltaY,a=1);var s=e.display,l=s.scroller,c=l.scrollWidth>l.clientWidth,d=l.scrollHeight>l.clientHeight;if(i&&c||o&&d){if(o&&b&&u)e:for(var p=t.target,h=s.view;p!=l;p=p.parentNode)for(var m=0;m<h.length;m++)if(h[m].node==p){e.display.currentWheelTarget=p;break e}if(i&&!n&&!f&&null!=a)return o&&d&&fi(e,Math.max(0,l.scrollTop+o*a)),hi(e,Math.max(0,l.scrollLeft+i*a)),(!o||o&&d)&&ke(t),void(s.wheelStartX=null);if(o&&null!=a){var g=o*a,v=e.doc.scrollTop,y=v+s.wrapper.clientHeight;g<0?v=Math.max(0,v+g-50):y=Math.min(e.doc.height,y+g+50),qi(e,{top:v,bottom:y})}Zi<20&&0!==t.deltaMode&&(null==s.wheelStartX?(s.wheelStartX=l.scrollLeft,s.wheelStartY=l.scrollTop,s.wheelDX=i,s.wheelDY=o,setTimeout((function(){if(null!=s.wheelStartX){var e=l.scrollLeft-s.wheelStartX,t=l.scrollTop-s.wheelStartY,n=t&&s.wheelDY&&t/s.wheelDY||e&&s.wheelDX&&e/s.wheelDX;s.wheelStartX=s.wheelStartY=null,n&&(eo=(eo*Zi+n)/(Zi+1),++Zi)}}),200)):(s.wheelDX+=i,s.wheelDY+=o))}}s?eo=-.53:n?eo=15:d?eo=-.7:p&&(eo=-1/3),o(to,"wheelEventDelta"),o(no,"wheelEventPixels"),o(ro,"onScrollWheel");var io=o((function(e,t){this.ranges=e,this.primIndex=t}),"Selection");io.prototype.primary=function(){return this.ranges[this.primIndex]},io.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!st(n.anchor,r.anchor)||!st(n.head,r.head))return!1}return!0},io.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new oo(lt(this.ranges[t].anchor),lt(this.ranges[t].head));return new io(e,this.primIndex)},io.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},io.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(at(t,r.from())>=0&&at(e,r.to())<=0)return n}return-1};var oo=o((function(e,t){this.anchor=e,this.head=t}),"Range");function ao(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return at(e.from(),t.from())})),n=B(t,i);for(var o=1;o<t.length;o++){var a=t[o],s=t[o-1],l=at(s.to(),a.from());if(r&&!a.empty()?l>0:l>=0){var u=ct(s.from(),a.from()),c=ut(s.to(),a.to()),d=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new oo(d?c:u,d?u:c))}}return new io(t,n)}function so(e,t){return new io([new oo(e,t||e)],0)}function lo(e){return e.text?ot(e.from.line+e.text.length-1,K(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function uo(e,t){if(at(e,t.from)<0)return e;if(at(e,t.to)<=0)return lo(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=lo(t).ch-t.to.ch),ot(n,r)}function co(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new oo(uo(i.anchor,t),uo(i.head,t)))}return ao(e.cm,n,e.sel.primIndex)}function fo(e,t,n){return e.line==t.line?ot(n.line,e.ch-t.ch+n.ch):ot(n.line+(e.line-t.line),e.ch)}function po(e,t,n){for(var r=[],i=ot(e.first,0),o=i,a=0;a<t.length;a++){var s=t[a],l=fo(s.from,i,o),u=fo(lo(s),i,o);if(i=s.to,o=u,"around"==n){var c=e.sel.ranges[a],d=at(c.head,c.anchor)<0;r[a]=new oo(d?u:l,d?l:u)}else r[a]=new oo(l,l)}return new io(r,e.sel.primIndex)}function ho(e){e.doc.mode=He(e.options,e.doc.modeOption),mo(e)}function mo(e){e.doc.iter((function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)})),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Fi(e,100),e.state.modeGen++,e.curOp&&Pr(e)}function go(e,t){return 0==t.from.ch&&0==t.to.ch&&""==K(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function vo(e,t,n,r){function i(e){return n?n[e]:null}function a(e,n,i){cn(e,n,i,r),On(e,"change",e,t)}function s(e,t){for(var n=[],o=e;o<t;++o)n.push(new un(c[o],i(o),r));return n}o(i,"spansFor"),o(a,"update"),o(s,"linesFor");var l=t.from,u=t.to,c=t.text,d=Je(e,l.line),f=Je(e,u.line),p=K(c),h=i(c.length-1),m=u.line-l.line;if(t.full)e.insert(0,s(0,c.length)),e.remove(c.length,e.size-c.length);else if(go(e,t)){var g=s(0,c.length-1);a(f,f.text,h),m&&e.remove(l.line,m),g.length&&e.insert(l.line,g)}else if(d==f)if(1==c.length)a(d,d.text.slice(0,l.ch)+p+d.text.slice(u.ch),h);else{var v=s(1,c.length-1);v.push(new un(p+d.text.slice(u.ch),h,r)),a(d,d.text.slice(0,l.ch)+c[0],i(0)),e.insert(l.line+1,v)}else if(1==c.length)a(d,d.text.slice(0,l.ch)+c[0]+f.text.slice(u.ch),i(0)),e.remove(l.line+1,m);else{a(d,d.text.slice(0,l.ch)+c[0],i(0)),a(f,p+f.text.slice(u.ch),h);var y=s(1,c.length-1);m>1&&e.remove(l.line+1,m-1),e.insert(l.line+1,y)}On(e,"change",e,t)}function yo(e,t,n){function r(e,i,o){if(e.linked)for(var a=0;a<e.linked.length;++a){var s=e.linked[a];if(s.doc!=i){var l=o&&s.sharedHist;n&&!l||(t(s.doc,l),r(s.doc,e,l))}}}o(r,"propagate"),r(e,null,!0)}function bo(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Mr(e),ho(e),Eo(e),e.options.direction=t.direction,e.options.lineWrapping||ln(e),e.options.mode=t.modeOption,Pr(e)}function Eo(e){("rtl"==e.doc.direction?M:N)(e.display.lineDiv,"CodeMirror-rtl")}function wo(e){Ai(e,(function(){Eo(e),Pr(e)}))}function ko(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function To(e,t){var n={from:lt(t.from),to:lo(t),text:Xe(e,t.from,t.to)};return Io(e,n,t.from.line,t.to.line+1),yo(e,(function(e){return Io(e,n,t.from.line,t.to.line+1)}),!0),n}function xo(e){for(;e.length&&K(e).ranges;)e.pop()}function Co(e,t){return t?(xo(e.done),K(e.done)):e.done.length&&!K(e.done).ranges?K(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),K(e.done)):void 0}function So(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=Co(i,i.lastOp==r)))a=K(o.changes),0==at(t.from,t.to)&&0==at(t.from,a.to)?a.to=lo(t):o.changes.push(To(e,t));else{var l=K(i.done);for(l&&l.ranges||Oo(e.sel,i.done),o={changes:[To(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||ve(e,"historyAdded")}function No(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function _o(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||No(e,o,K(i.done),t))?i.done[i.done.length-1]=t:Oo(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&xo(i.undone)}function Oo(e,t){var n=K(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Io(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function Ao(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function Do(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(Ao(n[i]));return r}function Lo(e,t){var n=Do(e,t),r=Vt(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var s=0;s<a.length;++s){for(var l=a[s],u=0;u<o.length;++u)if(o[u].marker==l.marker)continue e;o.push(l)}else a&&(n[i]=a)}return n}function Mo(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?io.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];r.push({changes:s});for(var l=0;l<a.length;++l){var u=a[l],c=void 0;if(s.push({from:u.from,to:u.to,text:u.text}),t)for(var d in u)(c=d.match(/^spans_(\d+)$/))&&B(t,Number(c[1]))>-1&&(K(s)[d]=u[d],delete u[d])}}}return r}function Fo(e,t,n,r){if(r){var i=e.anchor;if(n){var o=at(t,i)<0;o!=at(n,i)<0?(i=t,t=n):o!=at(t,n)<0&&(t=n)}return new oo(i,t)}return new oo(n||t,t)}function Ro(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),$o(e,new io([Fo(e.sel.primary(),t,n,i)],0),r)}function Po(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=Fo(e.sel.ranges[o],t[o],null,i);$o(e,ao(e.cm,r,e.sel.primIndex),n)}function jo(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,$o(e,ao(e.cm,i,e.sel.primIndex),r)}function Vo(e,t,n,r){$o(e,so(t,n),r)}function Uo(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new oo(ft(e,t[n].anchor),ft(e,t[n].head))},origin:n&&n.origin};return ve(e,"beforeSelectionChange",e,r),e.cm&&ve(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?ao(e.cm,r.ranges,r.ranges.length-1):t}function Bo(e,t,n){var r=e.history.done,i=K(r);i&&i.ranges?(r[r.length-1]=t,qo(e,t,n)):$o(e,t,n)}function $o(e,t,n){qo(e,t,n),_o(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function qo(e,t,n){(Ee(e,"beforeSelectionChange")||e.cm&&Ee(e.cm,"beforeSelectionChange"))&&(t=Uo(e,t,n));var r=n&&n.bias||(at(t.primary().head,e.sel.primary().head)<0?-1:1);Ho(e,Go(e,t,r,!0)),n&&!1===n.scroll||!e.cm||"nocursor"==e.cm.getOption("readOnly")||si(e.cm)}function Ho(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,be(e.cm)),On(e,"cursorActivity",e))}function zo(e){Ho(e,Go(e,e.sel,null,!1))}function Go(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],l=Yo(e,a.anchor,s&&s.anchor,n,r),u=Yo(e,a.head,s&&s.head,n,r);(i||l!=a.anchor||u!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new oo(l,u))}return i?ao(e.cm,i,t.primIndex):t}function Wo(e,t,n,r,i){var o=Je(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],l=s.marker,u="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,c="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==s.from||(u?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(c?s.to>=t.ch:s.to>t.ch))){if(i&&(ve(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var d=l.find(r<0?1:-1),f=void 0;if((r<0?c:u)&&(d=Ko(e,d,-r,d&&d.line==t.line?o:null)),d&&d.line==t.line&&(f=at(d,n))&&(r<0?f<0:f>0))return Wo(e,d,t,r,i)}var p=l.find(r<0?-1:1);return(r<0?u:c)&&(p=Ko(e,p,r,p.line==t.line?o:null)),p?Wo(e,p,t,r,i):null}}return t}function Yo(e,t,n,r,i){var o=r||1;return Wo(e,t,n,o,i)||!i&&Wo(e,t,n,o,!0)||Wo(e,t,n,-o,i)||!i&&Wo(e,t,n,-o,!0)||(e.cantEdit=!0,ot(e.first,0))}function Ko(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?ft(e,ot(t.line-1)):null:n>0&&t.ch==(r||Je(e,t.line)).text.length?t.line<e.first+e.size-1?ot(t.line+1,0):null:new ot(t.line,t.ch+n)}function Qo(e){e.setSelection(ot(e.firstLine(),0),ot(e.lastLine()),q)}function Jo(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=ft(e,t)),n&&(r.to=ft(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),ve(e,"beforeChange",e,r),e.cm&&ve(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function Xo(e,t,n){if(e.cm){if(!e.cm.curOp)return Di(e.cm,Xo)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(Ee(e,"beforeChange")||e.cm&&Ee(e.cm,"beforeChange"))||(t=Jo(e,t,!0))){var r=Ot&&!n&&Bt(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)Zo(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else Zo(e,t)}}function Zo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=at(t.from,t.to)){var n=co(e,t);So(e,t,n,e.cm?e.cm.curOp.id:NaN),na(e,t,n,Vt(e,t));var r=[];yo(e,(function(e,n){n||-1!=B(r,e.history)||(sa(e.history,t),r.push(e.history)),na(e,t,null,Vt(e,t))}))}}function ea(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,a=e.history,s=e.sel,l="undo"==t?a.done:a.undone,u="undo"==t?a.undone:a.done,c=0;c<l.length&&(i=l[c],n?!i.ranges||i.equals(e.sel):i.ranges);c++);if(c!=l.length){for(a.lastOrigin=a.lastSelOrigin=null;;){if(!(i=l.pop()).ranges){if(r)return void l.push(i);break}if(Oo(i,u),n&&!i.equals(e.sel))return void $o(e,i,{clearRedo:!1});s=i}var d=[];Oo(s,u),u.push({changes:d,generation:a.generation}),a.generation=i.generation||++a.maxGeneration;for(var f=Ee(e,"beforeChange")||e.cm&&Ee(e.cm,"beforeChange"),p=o((function(n){var r=i.changes[n];if(r.origin=t,f&&!Jo(e,r,!1))return l.length=0,{};d.push(To(e,r));var o=n?co(e,r):K(l);na(e,r,o,Lo(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:lo(r)});var a=[];yo(e,(function(e,t){t||-1!=B(a,e.history)||(sa(e.history,r),a.push(e.history)),na(e,r,null,Lo(e,r))}))}),"loop"),h=i.changes.length-1;h>=0;--h){var m=p(h);if(m)return m.v}}}}function ta(e,t){if(0!=t&&(e.first+=t,e.sel=new io(Q(e.sel.ranges,(function(e){return new oo(ot(e.anchor.line+t,e.anchor.ch),ot(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Pr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)jr(e.cm,r,"gutter")}}function na(e,t,n,r){if(e.cm&&!e.cm.curOp)return Di(e.cm,na)(e,t,n,r);if(t.to.line<e.first)ta(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);ta(e,i),t={from:ot(e.first,0),to:ot(t.to.line+i,t.to.ch),text:[K(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:ot(o,Je(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Xe(e,t.from,t.to),n||(n=co(e,t)),e.cm?ra(e.cm,t,r):vo(e,t,r),qo(e,n,q),e.cantEdit&&Yo(e,ot(e.firstLine(),0))&&(e.cantEdit=!1)}}function ra(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=tt(Xt(Je(r,o.line))),r.iter(l,a.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&be(e),vo(r,t,n,Lr(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,(function(e){var t=sn(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),_t(r,o.line),Fi(e,400);var u=t.text.length-(a.line-o.line)-1;t.full?Pr(e):o.line!=a.line||1!=t.text.length||go(e.doc,t)?Pr(e,o.line,a.line+1,u):jr(e,o.line,"text");var c=Ee(e,"changes"),d=Ee(e,"change");if(d||c){var f={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};d&&On(e,"change",e,f),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(f)}e.display.selForContextMenu=null}function ia(e,t,n,r,i){var o;r||(r=n),at(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),Xo(e,{from:n,to:r,text:t,origin:i})}function oa(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function aa(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var s=0;s<o.ranges.length;s++)oa(o.ranges[s].anchor,t,n,r),oa(o.ranges[s].head,t,n,r)}else{for(var l=0;l<o.changes.length;++l){var u=o.changes[l];if(n<u.from.line)u.from=ot(u.from.line+r,u.from.ch),u.to=ot(u.to.line+r,u.to.ch);else if(t<=u.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function sa(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;aa(e.done,n,r,i),aa(e.undone,n,r,i)}function la(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=Je(e,dt(e,t)):i=tt(t),null==i?null:(r(o,i)&&e.cm&&jr(e.cm,i,n),o)}function ua(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function ca(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}oo.prototype.from=function(){return ct(this.anchor,this.head)},oo.prototype.to=function(){return ut(this.anchor,this.head)},oo.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},o(ao,"normalizeSelection"),o(so,"simpleSelection"),o(lo,"changeEnd"),o(uo,"adjustForChange"),o(co,"computeSelAfterChange"),o(fo,"offsetPos"),o(po,"computeReplacedSel"),o(ho,"loadMode"),o(mo,"resetModeState"),o(go,"isWholeLineUpdate"),o(vo,"updateDoc"),o(yo,"linkedDocs"),o(bo,"attachDoc"),o(Eo,"setDirectionClass"),o(wo,"directionChanged"),o(ko,"History"),o(To,"historyChangeFromChange"),o(xo,"clearSelectionEvents"),o(Co,"lastChangeEvent"),o(So,"addChangeToHistory"),o(No,"selectionEventCanBeMerged"),o(_o,"addSelectionToHistory"),o(Oo,"pushSelectionToHistory"),o(Io,"attachLocalSpans"),o(Ao,"removeClearedSpans"),o(Do,"getOldSpans"),o(Lo,"mergeOldSpans"),o(Mo,"copyHistoryArray"),o(Fo,"extendRange"),o(Ro,"extendSelection"),o(Po,"extendSelections"),o(jo,"replaceOneSelection"),o(Vo,"setSimpleSelection"),o(Uo,"filterSelectionChange"),o(Bo,"setSelectionReplaceHistory"),o($o,"setSelection"),o(qo,"setSelectionNoUndo"),o(Ho,"setSelectionInner"),o(zo,"reCheckSelection"),o(Go,"skipAtomicInSelection"),o(Wo,"skipAtomicInner"),o(Yo,"skipAtomic"),o(Ko,"movePos"),o(Qo,"selectAll"),o(Jo,"filterChange"),o(Xo,"makeChange"),o(Zo,"makeChangeInner"),o(ea,"makeChangeFromHistory"),o(ta,"shiftDoc"),o(na,"makeChangeSingleDoc"),o(ra,"makeChangeSingleDocInEditor"),o(ia,"replaceRange"),o(oa,"rebaseHistSelSingle"),o(aa,"rebaseHistArray"),o(sa,"rebaseHist"),o(la,"changeLine"),o(ua,"LeafChunk"),ua.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,dn(i),On(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},o(ca,"BranchChunk"),ca.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e),a=r.height;if(r.removeInner(e,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof ua))){var s=[];this.collapse(s),this.children=[new ua(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,s=a;s<i.lines.length;){var l=new ua(i.lines.slice(s,s+=25));i.height-=l.height,this.children.splice(++r,0,l),l.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new ca(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=B(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new ca(e.children);r.parent=e,e.children=[r,t],e=r}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=o}}};var da=o((function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t}),"LineWidget");function fa(e,t,n){an(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&ai(e,n)}function pa(e,t,n,r){var i=new da(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),la(e,t,"widget",(function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!rn(e,t)){var r=an(t)<e.scrollTop;et(t,t.height+qn(i)),r&&ai(o,i.height),o.curOp.forceUpdate=!0}return!0})),o&&On(o,"lineWidgetAdded",o,i,"number"==typeof t?t:tt(t)),i}da.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=tt(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=qn(this);et(n,Math.max(0,n.height-o)),e&&(Ai(e,(function(){fa(e,n,-o),jr(e,r,"widget")})),On(e,"lineWidgetCleared",e,this,r))}},da.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=qn(this)-t;i&&(rn(this.doc,r)||et(r,r.height+i),n&&Ai(n,(function(){n.curOp.forceUpdate=!0,fa(n,r,i),On(n,"lineWidgetChanged",n,e,tt(r))})))},we(da),o(fa,"adjustScrollWhenAboveVisible"),o(pa,"addLineWidget");var ha=0,ma=o((function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++ha}),"TextMarker");function ga(e,t,n,r,i){if(r&&r.shared)return ya(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return Di(e.cm,ga)(e,t,n,r,i);var o=new ma(e,i),a=at(t,n);if(r&&j(r,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=A("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Jt(e,t.line,t,n,o)||t.line!=n.line&&Jt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Dt()}o.addToHistory&&So(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,u=e.cm;if(e.iter(l,n.line+1,(function(r){u&&o.collapsed&&!u.options.lineWrapping&&Xt(r)==u.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&et(r,0),Rt(r,new Lt(o,l==t.line?t.ch:null,l==n.line?n.ch:null),e.cm&&e.cm.curOp),++l})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){rn(e,t)&&et(t,0)})),o.clearOnEnter&&he(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(At(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++ha,o.atomic=!0),u){if(s&&(u.curOp.updateMaxLine=!0),o.collapsed)Pr(u,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=n.line;c++)jr(u,c,"text");o.atomic&&zo(u.doc),On(u,"markerAdded",u,o)}return o}ma.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Ti(e),Ee(this,"clear")){var n=this.find();n&&On(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=Mt(a.markedSpans,this);e&&!this.collapsed?jr(e,tt(a),"text"):e&&(null!=s.to&&(i=tt(a)),null!=s.from&&(r=tt(a))),a.markedSpans=Ft(a.markedSpans,s),null==s.from&&this.collapsed&&!rn(this.doc,a)&&e&&et(a,Or(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var u=Xt(this.lines[l]),c=sn(u);c>e.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Pr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&zo(e.doc)),e&&On(e,"markerCleared",e,this,r,i),t&&xi(e),this.parent&&this.parent.clear()}},ma.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=Mt(o.markedSpans,this);if(null!=a.from&&(n=ot(t?o:tt(o),a.from),-1==e))return n;if(null!=a.to&&(r=ot(t?o:tt(o),a.to),1==e))return r}return n&&{from:n,to:r}},ma.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&Ai(r,(function(){var i=t.line,o=tt(t.line),a=tr(r,o);if(a&&(cr(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!rn(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var l=qn(n)-s;l&&et(i,i.height+l)}On(r,"markerChanged",r,e)}))},ma.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=B(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},ma.prototype.detachLine=function(e){if(this.lines.splice(B(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},we(ma),o(ga,"markText");var va=o((function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this}),"SharedTextMarker");function ya(e,t,n,r,i){(r=j(r)).shared=!1;var o=[ga(e,t,n,r,i)],a=o[0],s=r.widgetNode;return yo(e,(function(e){s&&(r.widgetNode=s.cloneNode(!0)),o.push(ga(e,ft(e,t),ft(e,n),r,i));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;a=K(o)})),new va(o,a)}function ba(e){return e.findMarks(ot(e.first,0),e.clipPos(ot(e.lastLine())),(function(e){return e.parent}))}function Ea(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(at(o,a)){var s=ga(e,o,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}function wa(e){for(var t=o((function(t){var n=e[t],r=[n.primary.doc];yo(n.primary.doc,(function(e){return r.push(e)}));for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==B(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}}),"loop"),n=0;n<e.length;n++)t(n)}va.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();On(this,"clear")}},va.prototype.find=function(e,t){return this.primary.find(e,t)},we(va),o(ya,"markTextShared"),o(ba,"findSharedMarkers"),o(Ea,"copySharedMarkers"),o(wa,"detachSharedMarkers");var ka=0,Ta=o((function(e,t,n,r,i){if(!(this instanceof Ta))return new Ta(e,t,n,r,i);null==n&&(n=0),ca.call(this,[new ua([new un("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=ot(n,0);this.sel=so(o),this.history=new ko(null),this.id=++ka,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),vo(this,{from:o,to:o,text:e}),$o(this,so(o),q)}),"Doc");Ta.prototype=Z(ca.prototype,{constructor:Ta,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Ze(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:Mi((function(e){var t=ot(this.first,0),n=this.first+this.size-1;Xo(this,{from:t,to:ot(n,Je(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&li(this.cm,0,0),$o(this,so(t),q)})),replaceRange:function(e,t,n,r){ia(this,e,t=ft(this,t),n=n?ft(this,n):t,r)},getRange:function(e,t,n){var r=Xe(this,ft(this,e),ft(this,t));return!1===n?r:""===n?r.join(""):r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(rt(this,e))return Je(this,e)},getLineNumber:function(e){return tt(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=Je(this,e)),Xt(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return ft(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Mi((function(e,t,n){Vo(this,ft(this,"number"==typeof e?ot(e,t||0):e),null,n)})),setSelection:Mi((function(e,t,n){Vo(this,ft(this,e),ft(this,t||e),n)})),extendSelection:Mi((function(e,t,n){Ro(this,ft(this,e),t&&ft(this,t),n)})),extendSelections:Mi((function(e,t){Po(this,ht(this,e),t)})),extendSelectionsBy:Mi((function(e,t){Po(this,ht(this,Q(this.sel.ranges,e)),t)})),setSelections:Mi((function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new oo(ft(this,e[i].anchor),ft(this,e[i].head||e[i].anchor));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),$o(this,ao(this.cm,r,t),n)}})),addSelection:Mi((function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new oo(ft(this,e),ft(this,t||e))),$o(this,ao(this.cm,r,r.length-1),n)})),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var i=Xe(this,n[r].from(),n[r].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=Xe(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:Mi((function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}for(var s=t&&"end"!=t&&po(this,r,t),l=r.length-1;l>=0;l--)Xo(this,r[l]);s?Bo(this,s):this.cm&&si(this.cm)})),undo:Mi((function(){ea(this,"undo")})),redo:Mi((function(){ea(this,"redo")})),undoSelection:Mi((function(){ea(this,"undo",!0)})),redoSelection:Mi((function(){ea(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new ko(this.history),yo(this,(function(t){return t.history=e.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Mo(this.history.done),undone:Mo(this.history.undone)}},setHistory:function(e){var t=this.history=new ko(this.history);t.done=Mo(e.done.slice(0),null,!0),t.undone=Mo(e.undone.slice(0),null,!0)},setGutterMarker:Mi((function(e,t,n){return la(this,e,"gutter",(function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&re(r)&&(e.gutterMarkers=null),!0}))})),clearGutter:Mi((function(e){var t=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[e]&&la(t,n,"gutter",(function(){return n.gutterMarkers[e]=null,re(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(e){var t;if("number"==typeof e){if(!rt(this,e))return null;if(t=e,!(e=Je(this,e)))return null}else if(null==(t=tt(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Mi((function(e,t,n){return la(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(C(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0}))})),removeLineClass:Mi((function(e,t,n){return la(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(!i)return!1;if(null==n)e[r]=null;else{var o=i.match(C(n));if(!o)return!1;var a=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0}))})),addLineWidget:Mi((function(e,t,n){return pa(this,e,t,n)})),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return ga(this,ft(this,e),ft(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return ga(this,e=ft(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=Je(this,(e=ft(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=ft(this,e),t=ft(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s<a.length;s++){var l=a[s];null!=l.to&&i==e.line&&e.ch>=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)})),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter((function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n})),ft(this,ot(n,t))},indexFromPos:function(e){var t=(e=ft(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,(function(e){t+=e.text.length+n})),t},copy:function(e){var t=new Ta(Ze(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new Ta(Ze(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Ea(r,ba(this)),r},unlinkDoc:function(e){if(e instanceof Rs&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),wa(ba(this));break}if(e.history==this.history){var n=[e.id];yo(e,(function(e){return n.push(e.id)}),!0),e.history=new ko(null),e.history.done=Mo(this.history.done,n),e.history.undone=Mo(this.history.undone,n)}},iterLinkedDocs:function(e){yo(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Me(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Mi((function(e){"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter((function(e){return e.order=null})),this.cm&&wo(this.cm))}))}),Ta.prototype.eachLine=Ta.prototype.iter;var xa=0;function Ca(e){var t=this;if(_a(t),!ye(t,e)&&!Hn(t.display,e)){ke(e),s&&(xa=+new Date);var n=Fr(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,a=Array(i),l=0,u=o((function(){++l==i&&Di(t,(function(){var e={from:n=ft(t.doc,n),to:n,text:t.doc.splitLines(a.filter((function(e){return null!=e})).join(t.doc.lineSeparator())),origin:"paste"};Xo(t.doc,e),Bo(t.doc,so(ft(t.doc,n),ft(t.doc,lo(e))))}))()}),"markAsReadAndPasteIfAllFilesAreRead"),c=o((function(e,n){if(t.options.allowDropFileTypes&&-1==B(t.options.allowDropFileTypes,e.type))u();else{var r=new FileReader;r.onerror=function(){return u()},r.onload=function(){var e=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(a[n]=e),u()},r.readAsText(e)}}),"readTextFromFile"),d=0;d<r.length;d++)c(r[d],d);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var f=e.dataTransfer.getData("Text");if(f){var p;if(t.state.draggingText&&!t.state.draggingText.copy&&(p=t.listSelections()),qo(t.doc,so(n,n)),p)for(var h=0;h<p.length;++h)ia(t.doc,"",p[h].anchor,p[h].head,"drag");t.replaceSelection(f,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Sa(e,t){if(s&&(!e.state.draggingText||+new Date-xa<100))Ce(t);else if(!ye(e,t)&&!Hn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!p)){var n=I("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",f&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),f&&n.parentNode.removeChild(n)}}function Na(e,t){var n=Fr(e,t);if(n){var r=document.createDocumentFragment();zr(e,n,r),e.display.dragCursor||(e.display.dragCursor=I("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),O(e.display.dragCursor,r)}}function _a(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Oa(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation((function(){for(var t=0;t<n.length;t++)e(n[t])}))}}o(Ca,"onDrop"),o(Sa,"onDragStart"),o(Na,"onDragOver"),o(_a,"clearDragCursor"),o(Oa,"forEachCodeMirror");var Ia=!1;function Aa(){Ia||(Da(),Ia=!0)}function Da(){var e;he(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Oa(La)}),100))})),he(window,"blur",(function(){return Oa(Xr)}))}function La(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}o(Aa,"ensureGlobalHandlers"),o(Da,"registerGlobalHandlers"),o(La,"onResize");for(var Ma={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Fa=0;Fa<10;Fa++)Ma[Fa+48]=Ma[Fa+96]=String(Fa);for(var Ra=65;Ra<=90;Ra++)Ma[Ra]=String.fromCharCode(Ra);for(var Pa=1;Pa<=12;Pa++)Ma[Pa+111]=Ma[Pa+63235]="F"+Pa;var ja={};function Va(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Ua(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=Q(n.split(" "),Va),o=0;o<i.length;o++){var a=void 0,s=void 0;o==i.length-1?(s=i.join(" "),a=r):(s=i.slice(0,o+1).join(" "),a="...");var l=t[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var u in t)e[u]=t[u];return e}function Ba(e,t,n,r){var i=(t=za(t)).call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return Ba(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=Ba(e,t.fallthrough[o],n,r);if(a)return a}}}function $a(e){var t="string"==typeof e?e:Ma[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function qa(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(T?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(T?t.ctrlKey:t.metaKey)&&"Mod"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function Ha(e,t){if(f&&34==e.keyCode&&e.char)return!1;var n=Ma[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),qa(n,e,t))}function za(e){return"string"==typeof e?ja[e]:e}function Ga(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&at(o.from,K(r).to)<=0;){var a=r.pop();if(at(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}Ai(e,(function(){for(var t=r.length-1;t>=0;t--)ia(e.doc,"",r[t].from,r[t].to,"+delete");si(e)}))}function Wa(e,t,n){var r=ae(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Ya(e,t,n){var r=Wa(e,t.ch,n);return null==r?null:new ot(t.line,r,n<0?"after":"before")}function Ka(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=fe(n,t.doc.direction);if(o){var a,s=i<0?K(o):o[0],l=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var u=nr(t,n);a=i<0?n.text.length-1:0;var c=rr(t,u,a).top;a=se((function(e){return rr(t,u,e).top==c}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=Wa(n,a,1))}else a=i<0?s.to:s.from;return new ot(r,a,l)}}return new ot(r,i<0?n.text.length:0,i<0?"before":"after")}function Qa(e,t,n,r){var i=fe(t,e.doc.direction);if(!i)return Ya(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var a=ce(i,n.ch,n.sticky),s=i[a];if("ltr"==e.doc.direction&&s.level%2==0&&(r>0?s.to>n.ch:s.from<n.ch))return Ya(t,n,r);var l,u=o((function(e,n){return Wa(t,e instanceof ot?e.ch:e,n)}),"mv"),c=o((function(n){return e.options.lineWrapping?(l=l||nr(e,t),xr(e,t,l,n)):{begin:0,end:t.text.length}}),"getWrappedLineExtent"),d=c("before"==n.sticky?u(n,-1):n.ch);if("rtl"==e.doc.direction||1==s.level){var f=1==s.level==r<0,p=u(n,f?1:-1);if(null!=p&&(f?p<=s.to&&p<=d.end:p>=s.from&&p>=d.begin)){var h=f?"before":"after";return new ot(n.line,p,h)}}var m=o((function(e,t,r){for(var a=o((function(e,t){return t?new ot(n.line,u(e,1),"before"):new ot(n.line,e,"after")}),"getRes");e>=0&&e<i.length;e+=t){var s=i[e],l=t>0==(1!=s.level),c=l?r.begin:u(r.end,-1);if(s.from<=c&&c<s.to)return a(c,l);if(c=l?s.from:u(s.to,-1),r.begin<=c&&c<r.end)return a(c,l)}}),"searchInVisualLine"),g=m(a+r,r,d);if(g)return g;var v=r>0?d.end:u(d.begin,-1);return null==v||r>0&&v==t.text.length||!(g=m(r>0?0:i.length-1,r,c(v)))?null:g}ja.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},ja.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},ja.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},ja.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},ja.default=b?ja.macDefault:ja.pcDefault,o(Va,"normalizeKeyName"),o(Ua,"normalizeKeyMap"),o(Ba,"lookupKey"),o($a,"isModifierKey"),o(qa,"addModifierNames"),o(Ha,"keyName"),o(za,"getKeyMap"),o(Ga,"deleteNearSelection"),o(Wa,"moveCharLogically"),o(Ya,"moveLogically"),o(Ka,"endOfLine"),o(Qa,"moveVisually");var Ja={selectAll:Qo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),q)},killLine:function(e){return Ga(e,(function(t){if(t.empty()){var n=Je(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:ot(t.head.line+1,0)}:{from:t.head,to:ot(t.head.line,n)}}return{from:t.from(),to:t.to()}}))},deleteLine:function(e){return Ga(e,(function(t){return{from:ot(t.from().line,0),to:ft(e.doc,ot(t.to().line+1,0))}}))},delLineLeft:function(e){return Ga(e,(function(e){return{from:ot(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return Ga(e,(function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}}))},delWrappedLineRight:function(e){return Ga(e,(function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}}))},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(ot(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ot(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy((function(t){return Xa(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy((function(t){return es(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy((function(t){return Za(e,t.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")}),z)},goLineLeft:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")}),z)},goLineLeftSmart:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?es(e,t.head):r}),z)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=V(e.getLine(o.line),o.ch,r);t.push(Y(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Ai(e,(function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=Je(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new ot(i.line,i.ch-1)),i.ch>0)i=new ot(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),ot(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=Je(e.doc,i.line-1).text;a&&(i=new ot(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),ot(i.line-1,a.length-1),i,"+transpose"))}n.push(new oo(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return Ai(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);si(e)}))},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Xa(e,t){var n=Je(e.doc,t),r=Xt(n);return r!=n&&(t=tt(r)),Ka(!0,e,r,t,1)}function Za(e,t){var n=Je(e.doc,t),r=Zt(n);return r!=n&&(t=tt(r)),Ka(!0,e,n,t,-1)}function es(e,t){var n=Xa(e,t.line),r=Je(e.doc,n.line),i=fe(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(n.ch,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return ot(n.line,a?0:o,n.sticky)}return n}function ts(e,t,n){if("string"==typeof t&&!(t=Ja[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=$}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}function ns(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=Ba(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&Ba(t,e.options.extraKeys,n,e)||Ba(t,e.options.keyMap,n,e)}o(Xa,"lineStart"),o(Za,"lineEnd"),o(es,"lineStartSmart"),o(ts,"doHandleBinding"),o(ns,"lookupKeyForEditor");var rs=new U;function is(e,t,n,r){var i=e.state.keySeq;if(i){if($a(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:rs.set(50,(function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())})),os(e,i+" "+t,n,r))return!0}return os(e,t,n,r)}function os(e,t,n,r){var i=ns(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&On(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(ke(n),Yr(e)),!!i}function as(e,t){var n=Ha(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?is(e,"Shift-"+n,t,(function(t){return ts(e,t,!0)}))||is(e,n,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return ts(e,t)})):is(e,n,t,(function(t){return ts(e,t)})))}function ss(e,t,n){return is(e,"'"+n+"'",t,(function(t){return ts(e,t,!0)}))}o(is,"dispatchKey"),o(os,"dispatchKeyInner"),o(as,"handleKeyBinding"),o(ss,"handleCharBinding");var ls=null;function us(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||(t.curOp.focus=L(),ye(t,e)))){s&&l<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var i=as(t,e);f&&(ls=i?r:null,i||88!=r||Re||!(b?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),n&&!b&&!i&&46==r&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||cs(t)}}function cs(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(N(t,"CodeMirror-crosshair"),ge(document,"keyup",n),ge(document,"mouseover",n))}M(t,"CodeMirror-crosshair"),o(n,"up"),he(document,"keyup",n),he(document,"mouseover",n)}function ds(e){16==e.keyCode&&(this.doc.sel.shift=!1),ye(this,e)}function fs(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||Hn(t.display,e)||ye(t,e)||e.ctrlKey&&!e.altKey||b&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(f&&n==ls)return ls=null,void ke(e);if(!f||e.which&&!(e.which<10)||!as(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(ss(t,e,i)||t.display.input.onKeyPress(e))}}}o(us,"onKeyDown"),o(cs,"showCrossHair"),o(ds,"onKeyUp"),o(fs,"onKeyPress");var ps,hs,ms=o((function(e,t,n){this.time=e,this.pos=t,this.button=n}),"PastClick");function gs(e,t){var n=+new Date;return hs&&hs.compare(n,e,t)?(ps=hs=null,"triple"):ps&&ps.compare(n,e,t)?(hs=new ms(n,e,t),ps=null,"double"):(ps=new ms(n,e,t),hs=null,"single")}function vs(e){var t=this,n=t.display;if(!(ye(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,Hn(n,e))u||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!Ss(t,e)){var r=Fr(t,e),i=Ne(e),o=r?gs(r,i):"single";window.focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&ys(t,i,r,o,e)||(1==i?r?Es(t,r,o,e):Se(e)==n.scroller&&ke(e):2==i?(r&&Ro(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(x?t.display.input.onContextMenu(e):Qr(t)))}}function ys(e,t,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),is(e,qa(o=(1==t?"Left":2==t?"Middle":"Right")+o,i),i,(function(t){if("string"==typeof t&&(t=Ja[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=$}finally{e.state.suppressEdits=!1}return r}))}function bs(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var o=E?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=b?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(b?n.altKey:n.ctrlKey)),i}function Es(e,t,n,r){s?setTimeout(P(Kr,e),0):e.curOp.focus=L();var i,o=bs(e,n,r),a=e.doc.sel;e.options.dragDrop&&Ie&&!e.isReadOnly()&&"single"==n&&(i=a.contains(t))>-1&&(at((i=a.ranges[i]).from(),t)<0||t.xRel>0)&&(at(i.to(),t)>0||t.xRel<0)?ws(e,r,t,o):Ts(e,r,t,o)}function ws(e,t,n,r){var i=e.display,a=!1,c=Di(e,(function(t){u&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Qr(e)),ge(i.wrapper.ownerDocument,"mouseup",c),ge(i.wrapper.ownerDocument,"mousemove",d),ge(i.scroller,"dragstart",f),ge(i.scroller,"drop",c),a||(ke(t),r.addNew||Ro(e.doc,n,null,null,r.extend),u&&!p||s&&9==l?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),d=o((function(e){a=a||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10}),"mouseMove"),f=o((function(){return a=!0}),"dragStart");u&&(i.scroller.draggable=!0),e.state.draggingText=c,c.copy=!r.moveOnDrag,he(i.wrapper.ownerDocument,"mouseup",c),he(i.wrapper.ownerDocument,"mousemove",d),he(i.scroller,"dragstart",f),he(i.scroller,"drop",c),e.state.delayingBlurEvent=!0,setTimeout((function(){return i.input.focus()}),20),i.scroller.dragDrop&&i.scroller.dragDrop()}function ks(e,t,n){if("char"==n)return new oo(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new oo(ot(t.line,0),ft(e.doc,ot(t.line+1,0)));var r=n(e,t);return new oo(r.from,r.to)}function Ts(e,t,n,r){s&&Qr(e);var i=e.display,a=e.doc;ke(t);var l,u,c=a.sel,d=c.ranges;if(r.addNew&&!r.extend?(u=a.sel.contains(n),l=u>-1?d[u]:new oo(n,n)):(l=a.sel.primary(),u=a.sel.primIndex),"rectangle"==r.unit)r.addNew||(l=new oo(n,n)),n=Fr(e,t,!0,!0),u=-1;else{var f=ks(e,n,r.unit);l=r.extend?Fo(l,f.anchor,f.head,r.extend):f}r.addNew?-1==u?(u=d.length,$o(a,ao(e,d.concat([l]),u),{scroll:!1,origin:"*mouse"})):d.length>1&&d[u].empty()&&"char"==r.unit&&!r.extend?($o(a,ao(e,d.slice(0,u).concat(d.slice(u+1)),0),{scroll:!1,origin:"*mouse"}),c=a.sel):jo(a,u,l,H):(u=0,$o(a,new io([l],0),H),c=a.sel);var p=n;function h(t){if(0!=at(p,t))if(p=t,"rectangle"==r.unit){for(var i=[],o=e.options.tabSize,s=V(Je(a,n.line).text,n.ch,o),d=V(Je(a,t.line).text,t.ch,o),f=Math.min(s,d),h=Math.max(s,d),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var v=Je(a,m).text,y=G(v,f,o);f==h?i.push(new oo(ot(m,y),ot(m,y))):v.length>y&&i.push(new oo(ot(m,y),ot(m,G(v,h,o))))}i.length||i.push(new oo(n,n)),$o(a,ao(e,c.ranges.slice(0,u).concat(i),u),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,E=l,w=ks(e,t,r.unit),k=E.anchor;at(w.anchor,k)>0?(b=w.head,k=ct(E.from(),w.anchor)):(b=w.anchor,k=ut(E.to(),w.head));var T=c.ranges.slice(0);T[u]=xs(e,new oo(ft(a,k),b)),$o(a,ao(e,T,u),H)}}o(h,"extendTo");var m=i.wrapper.getBoundingClientRect(),g=0;function v(t){var n=++g,o=Fr(e,t,!0,"rectangle"==r.unit);if(o)if(0!=at(o,p)){e.curOp.focus=L(),h(o);var s=ti(i,a);(o.line>=s.to||o.line<s.from)&&setTimeout(Di(e,(function(){g==n&&v(t)})),150)}else{var l=t.clientY<m.top?-20:t.clientY>m.bottom?20:0;l&&setTimeout(Di(e,(function(){g==n&&(i.scroller.scrollTop+=l,v(t))})),50)}}function y(t){e.state.selectingText=!1,g=1/0,t&&(ke(t),i.input.focus()),ge(i.wrapper.ownerDocument,"mousemove",b),ge(i.wrapper.ownerDocument,"mouseup",E),a.history.lastSelOrigin=null}o(v,"extend"),o(y,"done");var b=Di(e,(function(e){0!==e.buttons&&Ne(e)?v(e):y(e)})),E=Di(e,y);e.state.selectingText=E,he(i.wrapper.ownerDocument,"mousemove",b),he(i.wrapper.ownerDocument,"mouseup",E)}function xs(e,t){var n=t.anchor,r=t.head,i=Je(e.doc,n.line);if(0==at(n,r)&&n.sticky==r.sticky)return t;var o=fe(i);if(!o)return t;var a=ce(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,u=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==u||u==o.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=ce(o,r.ch,r.sticky),d=c-a||(r.ch-n.ch)*(1==s.level?-1:1);l=c==u-1||c==u?d<0:d>0}var f=o[u+(l?-1:0)],p=l==(1==f.level),h=p?f.from:f.to,m=p?"after":"before";return n.ch==h&&n.sticky==m?t:new oo(new ot(n.line,h,m),r)}function Cs(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&ke(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!Ee(e,n))return xe(t);o-=s.top-a.viewOffset;for(var l=0;l<e.display.gutterSpecs.length;++l){var u=a.gutters.childNodes[l];if(u&&u.getBoundingClientRect().right>=i)return ve(e,n,e,nt(e.doc,o),e.display.gutterSpecs[l].className,t),xe(t)}}function Ss(e,t){return Cs(e,t,"gutterClick",!0)}function Ns(e,t){Hn(e.display,t)||_s(e,t)||ye(e,t,"contextmenu")||x||e.display.input.onContextMenu(t)}function _s(e,t){return!!Ee(e,"gutterContextMenu")&&Cs(e,t,"gutterContextMenu",!1)}function Os(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),fr(e)}ms.prototype.compare=function(e,t,n){return this.time+400>e&&0==at(t,this.pos)&&n==this.button},o(gs,"clickRepeat"),o(vs,"onMouseDown"),o(ys,"handleMappedButton"),o(bs,"configureMouse"),o(Es,"leftButtonDown"),o(ws,"leftButtonStartDrag"),o(ks,"rangeForUnit"),o(Ts,"leftButtonSelect"),o(xs,"bidiSimplify"),o(Cs,"gutterEvent"),o(Ss,"clickInGutter"),o(Ns,"onContextMenu"),o(_s,"contextMenuInGutter"),o(Os,"themeChanged");var Is={toString:function(){return"CodeMirror.Init"}},As={},Ds={};function Ls(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=Is&&i(e,t,n)}:i)}o(n,"option"),e.defineOption=n,e.Init=Is,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,ho(e)}),!0),n("indentUnit",2,ho,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){mo(e),fr(e),Pr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(ot(r,o))}r++}));for(var i=n.length-1;i>=0;i--)ia(e.doc,t,n[i],ot(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Is&&e.refresh()})),n("specialCharPlaceholder",gn,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",y?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!w),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){Os(e),Ji(e)}),!0),n("keyMap","default",(function(e,t,n){var r=za(t),i=n!=Is&&za(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Fs,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=Ki(t,e.options.lineNumbers),Ji(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?Dr(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return yi(e)}),!0),n("scrollbarStyle","native",(function(e){wi(e),yi(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=Ki(e.options.gutters,t),Ji(e)}),!0),n("firstLineNumber",1,Ji,!0),n("lineNumberFormatter",(function(e){return e}),Ji,!0),n("showCursorWhenSelecting",!1,qr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(Xr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Ms),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,qr,!0),n("singleCursorHeightPerLine",!0,qr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,mo,!0),n("addModeClass",!1,mo,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,mo,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}function Ms(e,t,n){if(!t!=!(n&&n!=Is)){var r=e.display.dragFunctions,i=t?he:ge;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Fs(e){e.options.lineWrapping?(M(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(N(e.display.wrapper,"CodeMirror-wrap"),ln(e)),Mr(e),Pr(e),fr(e),setTimeout((function(){return yi(e)}),100)}function Rs(e,t){var n=this;if(!(this instanceof Rs))return new Rs(e,t);this.options=t=t?j(t):{},j(As,t,!1);var r=t.value;"string"==typeof r?r=new Ta(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Rs.inputStyles[t.inputStyle](this),o=this.display=new Xi(e,r,i,t);for(var a in o.wrapper.CodeMirror=this,Os(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),wi(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new U,keySeq:null,specialChars:null},t.autofocus&&!y&&o.input.focus(),s&&l<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),Ps(this),Aa(),Ti(this),this.curOp.forceUpdate=!0,bo(this,r),t.autofocus&&!y||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Jr(n)}),20):Xr(this),Ds)Ds.hasOwnProperty(a)&&Ds[a](this,t[a],Is);Yi(this),t.finishInit&&t.finishInit(this);for(var c=0;c<js.length;++c)js[c](this);xi(this),u&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}function Ps(e){var t=e.display;he(t.scroller,"mousedown",Di(e,vs)),he(t.scroller,"dblclick",s&&l<11?Di(e,(function(t){if(!ye(e,t)){var n=Fr(e,t);if(n&&!Ss(e,t)&&!Hn(e.display,t)){ke(t);var r=e.findWordAt(n);Ro(e.doc,r.anchor,r.head)}}})):function(t){return ye(e,t)||ke(t)}),he(t.scroller,"contextmenu",(function(t){return Ns(e,t)})),he(t.input.getField(),"contextmenu",(function(n){t.scroller.contains(n.target)||Ns(e,n)}));var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),(r=t.activeTouch).end=+new Date)}function a(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function u(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}o(i,"finishTouch"),o(a,"isMouseLikeTouchEvent"),o(u,"farAway"),he(t.scroller,"touchstart",(function(i){if(!ye(e,i)&&!a(i)&&!Ss(e,i)){t.input.ensurePolled(),clearTimeout(n);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),he(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),he(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!Hn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,a=e.coordsChar(t.activeTouch,"page");o=!r.prev||u(r,r.prev)?new oo(a,a):!r.prev.prev||u(r,r.prev.prev)?e.findWordAt(a):new oo(ot(a.line,0),ft(e.doc,ot(a.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),ke(n)}i()})),he(t.scroller,"touchcancel",i),he(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(fi(e,t.scroller.scrollTop),hi(e,t.scroller.scrollLeft,!0),ve(e,"scroll",e))})),he(t.scroller,"mousewheel",(function(t){return ro(e,t)})),he(t.scroller,"DOMMouseScroll",(function(t){return ro(e,t)})),he(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){ye(e,t)||Ce(t)},over:function(t){ye(e,t)||(Na(e,t),Ce(t))},start:function(t){return Sa(e,t)},drop:Di(e,Ca),leave:function(t){ye(e,t)||_a(e)}};var c=t.input.getField();he(c,"keyup",(function(t){return ds.call(e,t)})),he(c,"keydown",Di(e,us)),he(c,"keypress",Di(e,fs)),he(c,"focus",(function(t){return Jr(e,t)})),he(c,"blur",(function(t){return Xr(e,t)}))}o(Ls,"defineOptions"),o(Ms,"dragDropChanged"),o(Fs,"wrappingChanged"),o(Rs,"CodeMirror"),Rs.defaults=As,Rs.optionHandlers=Ds,o(Ps,"registerEventHandlers");var js=[];function Vs(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=bt(e,t).state:n="prev");var a=e.options.tabSize,s=Je(o,t),l=V(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var u,c=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((u=o.mode.indent(i,s.text.slice(c.length),s.text))==$||u>150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>o.first?V(Je(o,t-1).text,null,a):0:"add"==n?u=l+e.options.indentUnit:"subtract"==n?u=l-e.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var d="",f=0;if(e.options.indentWithTabs)for(var p=Math.floor(u/a);p;--p)f+=a,d+="\t";if(f<u&&(d+=Y(u-f)),d!=c)return ia(o,d,ot(t,0),ot(t,c.length),"+input"),s.stateAfter=null,!0;for(var h=0;h<o.sel.ranges.length;h++){var m=o.sel.ranges[h];if(m.head.line==t&&m.head.ch<c.length){var g=ot(t,c.length);jo(o,h,new oo(g,g));break}}}Rs.defineInitHook=function(e){return js.push(e)},o(Vs,"indentLine");var Us=null;function Bs(e){Us=e}function $s(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=+new Date-200,s="paste"==i||e.state.pasteIncoming>a,l=Me(t),u=null;if(s&&r.ranges.length>1)if(Us&&Us.text.join("\n")==t){if(r.ranges.length%Us.text.length==0){u=[];for(var c=0;c<Us.text.length;c++)u.push(o.splitLines(Us.text[c]))}}else l.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(u=Q(l,(function(e){return[e]})));for(var d=e.curOp.updateInput,f=r.ranges.length-1;f>=0;f--){var p=r.ranges[f],h=p.from(),m=p.to();p.empty()&&(n&&n>0?h=ot(h.line,h.ch-n):e.state.overwrite&&!s?m=ot(m.line,Math.min(Je(o,m.line).text.length,m.ch+K(l).length)):s&&Us&&Us.lineWise&&Us.text.join("\n")==l.join("\n")&&(h=m=ot(h.line,0)));var g={from:h,to:m,text:u?u[f%u.length]:l,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};Xo(e.doc,g),On(e,"inputRead",e,g)}t&&!s&&Hs(e,t),si(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function qs(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Ai(t,(function(){return $s(t,n,0,null,"paste")})),!0}function Hs(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(t.indexOf(o.electricChars.charAt(s))>-1){a=Vs(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Je(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Vs(e,i.head.line,"smart"));a&&On(e,"electricInput",e,i.head.line)}}}function zs(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:ot(i,0),head:ot(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function Gs(e,t,n,r){e.setAttribute("autocorrect",n?"":"off"),e.setAttribute("autocapitalize",r?"":"off"),e.setAttribute("spellcheck",!!t)}function Ws(){var e=I("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=I("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return u?e.style.width="1000px":e.setAttribute("wrap","off"),g&&(e.style.border="1px solid black"),Gs(e),t}function Ys(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&Di(this,t[e])(this,n,i),ve(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](za(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:Li((function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");J(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(e){return e.priority})),this.state.modeGen++,Pr(this)})),removeOverlay:Li((function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void Pr(this)}})),indentLine:Li((function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),rt(this.doc,e)&&Vs(this,e,t,n)})),indentSelection:Li((function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];if(i.empty())i.head.line>n&&(Vs(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&si(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l<n;++l)Vs(this,l,e);var u=this.doc.sel.ranges;0==o.ch&&t.length==u.length&&u[r].from().ch>0&&jo(this.doc,r,new oo(o,u[r].to()),q)}}})),getTokenAt:function(e,t){return xt(this,e,t)},getLineTokens:function(e,t){return xt(this,ot(e),t,!0)},getTokenTypeAt:function(e){e=ft(this.doc,e);var t,n=yt(this,Je(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){t=n[2*a+2];break}r=a+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var i=n[t],o=this.getModeAt(e);if("string"==typeof o[t])i[o[t]]&&r.push(i[o[t]]);else if(o[t])for(var a=0;a<o[t].length;a++){var s=i[o[t][a]];s&&r.push(s)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var l=0;l<i._global.length;l++){var u=i._global[l];u.pred(o,this)&&-1==B(r,u.val)&&r.push(u.val)}return r},getStateAfter:function(e,t){var n=this.doc;return bt(this,(e=dt(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return br(this,null==e?n.head:"object"==typeof e?ft(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return yr(this,ft(this.doc,e),t||"page")},coordsChar:function(e,t){return kr(this,(e=vr(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=vr(this,{top:e,left:0},t||"page").top,nt(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),r=Je(this.doc,e)}else r=e;return gr(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-an(r):0)},defaultTextHeight:function(){return Or(this.display)},defaultCharWidth:function(){return Ir(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o=this.display,a=(e=br(this,ft(this.doc,e))).bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var l=Math.max(o.wrapper.clientHeight,this.doc.height),u=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(a=e.bottom),s+t.offsetWidth>u&&(s=u-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(s=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&ii(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:Li(us),triggerOnKeyPress:Li(fs),triggerOnKeyUp:ds,triggerOnMouseDown:Li(vs),execCommand:function(e){if(Ja.hasOwnProperty(e))return Ja[e].call(null,this)},triggerElectric:Li((function(e){Hs(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=ft(this.doc,e),a=0;a<t&&!(o=Ks(this.doc,o,i,n,r)).hitSide;++a);return o},moveH:Li((function(e,t){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?Ks(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()}),z)})),deleteH:Li((function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Ga(this,(function(n){var i=Ks(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}}))})),findPosV:function(e,t,n,r){var i=1,o=r;t<0&&(i=-1,t=-t);for(var a=ft(this.doc,e),s=0;s<t;++s){var l=br(this,a,"div");if(null==o?o=l.left:l.left=o,(a=Qs(this,l,i,n)).hitSide)break}return a},moveV:Li((function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(a){if(o)return e<0?a.from():a.to();var s=br(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var l=Qs(n,s,e,t);return"page"==t&&a==r.sel.primary()&&ai(n,yr(n,l,"div").top-s.top),l}),z),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]})),findWordAt:function(e){var t=Je(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var i=this.getHelper(e,"wordChars");"before"!=e.sticky&&r!=t.length||!n?++r:--n;for(var o=t.charAt(n),a=ne(o,i)?function(e){return ne(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!ne(e)};n>0&&a(t.charAt(n-1));)--n;for(;r<t.length&&a(t.charAt(r));)++r}return new oo(ot(e.line,n),ot(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?M(this.display.cursorDiv,"CodeMirror-overwrite"):N(this.display.cursorDiv,"CodeMirror-overwrite"),ve(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==L()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Li((function(e,t){li(this,e,t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Yn(this)-this.display.barHeight,width:e.scrollWidth-Yn(this)-this.display.barWidth,clientHeight:Qn(this),clientWidth:Kn(this)}},scrollIntoView:Li((function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:ot(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?ui(this,e):di(this,e.from,e.to,e.margin)})),setSize:Li((function(e,t){var n=this,r=o((function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e}),"interpret");null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&dr(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,(function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){jr(n,i,"widget");break}++i})),this.curOp.forceUpdate=!0,ve(this,"refresh",this)})),operation:function(e){return Ai(this,e)},startOperation:function(){return Ti(this)},endOperation:function(){return xi(this)},refresh:Li((function(){var e=this.display.cachedTextHeight;Pr(this),this.curOp.forceUpdate=!0,fr(this),li(this,this.doc.scrollLeft,this.doc.scrollTop),zi(this.display),(null==e||Math.abs(e-Or(this.display))>.5||this.options.lineWrapping)&&Mr(this),ve(this,"refresh",this)})),swapDoc:Li((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),bo(this,e),fr(this),this.display.input.reset(),li(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,On(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},we(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}function Ks(e,t,n,r,i){var a=t,s=n,l=Je(e,t.line),u=i&&"rtl"==e.direction?-n:n;function c(){var n=t.line+u;return!(n<e.first||n>=e.first+e.size)&&(t=new ot(n,t.ch,t.sticky),l=Je(e,n))}function d(o){var a;if("codepoint"==r){var s=l.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(s))a=null;else{var d=n>0?s>=55296&&s<56320:s>=56320&&s<57343;a=new ot(t.line,Math.max(0,Math.min(l.text.length,t.ch+n*(d?2:1))),-n)}}else a=i?Qa(e.cm,l,t,n):Ya(l,t,n);if(null==a){if(o||!c())return!1;t=Ka(i,e.cm,l,t.line,u)}else t=a;return!0}if(o(c,"findNextLine"),o(d,"moveOnce"),"char"==r||"codepoint"==r)d();else if("column"==r)d(!0);else if("word"==r||"group"==r)for(var f=null,p="group"==r,h=e.cm&&e.cm.getHelper(t,"wordChars"),m=!0;!(n<0)||d(!m);m=!1){var g=l.text.charAt(t.ch)||"\n",v=ne(g,h)?"w":p&&"\n"==g?"n":!p||/\s/.test(g)?null:"p";if(!p||m||v||(v="s"),f&&f!=v){n<0&&(n=1,d(),t.sticky="after");break}if(v&&(f=v),n>0&&!d(!m))break}var y=Yo(e,t,a,s,!0);return st(a,y)&&(y.hitSide=!0),y}function Qs(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),u=Math.max(l-.5*Or(e.display),3);i=(n>0?t.bottom:t.top)+n*u}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=kr(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}o(Bs,"setLastCopied"),o($s,"applyTextInput"),o(qs,"handlePaste"),o(Hs,"triggerElectric"),o(zs,"copyableRanges"),o(Gs,"disableBrowserMagic"),o(Ws,"hiddenTextarea"),o(Ys,"addEditorMethods"),o(Ks,"findPosH"),o(Qs,"findPosV");var Js=o((function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new U,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null}),"ContentEditableInput");function Xs(e,t){var n=tr(e,t.line);if(!n||n.hidden)return null;var r=Je(e.doc,t.line),i=Xn(n,r,t.line),o=fe(r,e.doc.direction),a="left";o&&(a=ce(o,t.ch)%2?"right":"left");var s=ar(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function Zs(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function el(e,t){return t&&(e.bad=!0),e}function tl(e,t,n,r,i){var a="",s=!1,l=e.doc.lineSeparator(),u=!1;function c(e){return function(t){return t.id==e}}function d(){s&&(a+=l,u&&(a+=l),s=u=!1)}function f(e){e&&(d(),a+=e)}function p(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void f(n);var o,a=t.getAttribute("cm-marker");if(a){var h=e.findMarks(ot(r,0),ot(i+1,0),c(+a));return void(h.length&&(o=h[0].find(0))&&f(Xe(e.doc,o.from,o.to).join(l)))}if("false"==t.getAttribute("contenteditable"))return;var m=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;m&&d();for(var g=0;g<t.childNodes.length;g++)p(t.childNodes[g]);/^(pre|p)$/i.test(t.nodeName)&&(u=!0),m&&(s=!0)}else 3==t.nodeType&&f(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(o(c,"recognizeMarker"),o(d,"close"),o(f,"addText"),o(p,"walk");p(t),t!=n;)t=t.nextSibling,u=!1;return a}function nl(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return el(e.clipPos(ot(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return rl(o,t,n)}}function rl(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!D(r,t))return el(ot(tt(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var a=e.rest?K(e.rest):e.line;return el(ot(tt(a),a.text.length),i)}var s=3==t.nodeType?t:null,l=t;for(s||1!=t.childNodes.length||3!=t.firstChild.nodeType||(s=t.firstChild,n&&(n=s.nodeValue.length));l.parentNode!=r;)l=l.parentNode;var u=e.measure,c=u.maps;function d(t,n,r){for(var i=-1;i<(c?c.length:0);i++)for(var o=i<0?u.map:c[i],a=0;a<o.length;a+=3){var s=o[a+2];if(s==t||s==n){var l=tt(i<0?e.line:e.rest[i]),d=o[a]+r;return(r<0||s!=t)&&(d=o[a+(r?1:0)]),ot(l,d)}}}o(d,"find");var f=d(s,l,n);if(f)return el(f,i);for(var p=l.nextSibling,h=s?s.nodeValue.length-n:0;p;p=p.nextSibling){if(f=d(p,p.firstChild,0))return el(ot(f.line,f.ch-h),i);h+=p.textContent.length}for(var m=l.previousSibling,g=n;m;m=m.previousSibling){if(f=d(m,m.firstChild,-1))return el(ot(f.line,f.ch+g),i);g+=m.textContent.length}}Js.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;function a(e){for(var t=e.target;t;t=t.parentNode){if(t==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function s(e){if(a(e)&&!ye(r,e)){if(r.somethingSelected())Bs({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=zs(r);Bs({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation((function(){r.setSelections(t.ranges,0,q),r.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var o=Us.text.join("\n");if(e.clipboardData.setData("Text",o),e.clipboardData.getData("Text")==o)return void e.preventDefault()}var s=Ws(),l=s.firstChild;r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),l.value=Us.text.join("\n");var u=L();R(l),setTimeout((function(){r.display.lineSpace.removeChild(s),u.focus(),u==i&&n.showPrimarySelection()}),50)}}i.contentEditable=!0,Gs(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),o(a,"belongsToInput"),he(i,"paste",(function(e){!a(e)||ye(r,e)||qs(e,r)||l<=11&&setTimeout(Di(r,(function(){return t.updateFromDOM()})),20)})),he(i,"compositionstart",(function(e){t.composing={data:e.data,done:!1}})),he(i,"compositionupdate",(function(e){t.composing||(t.composing={data:e.data,done:!1})})),he(i,"compositionend",(function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)})),he(i,"touchstart",(function(){return n.forceCompositionEnd()})),he(i,"input",(function(){t.composing||t.readFromDOMSoon()})),o(s,"onCopyCut"),he(i,"copy",s),he(i,"cut",s)},Js.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Js.prototype.prepareSelection=function(){var e=Hr(this.cm,!1);return e.focus=L()==this.div,e},Js.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Js.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Js.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),i=r.from(),o=r.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var a=nl(t,e.anchorNode,e.anchorOffset),s=nl(t,e.focusNode,e.focusOffset);if(!a||a.bad||!s||s.bad||0!=at(ct(a,s),i)||0!=at(ut(a,s),o)){var l=t.display.view,u=i.line>=t.display.viewFrom&&Xs(t,i)||{node:l[0].measure.map[2],offset:0},c=o.line<t.display.viewTo&&Xs(t,o);if(!c){var d=l[l.length-1].measure,f=d.maps?d.maps[d.maps.length-1]:d.map;c={node:f[f.length-1],offset:f[f.length-2]-f[f.length-3]}}if(u&&c){var p,h=e.rangeCount&&e.getRangeAt(0);try{p=S(u.node,u.offset,c.offset,c.node)}catch(e){}p&&(!n&&t.state.focused?(e.collapse(u.node,u.offset),p.collapsed||(e.removeAllRanges(),e.addRange(p))):(e.removeAllRanges(),e.addRange(p)),h&&null==e.anchorNode?e.addRange(h):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},Js.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation((function(){return e.cm.curOp.selectionChanged=!0}))}),20)},Js.prototype.showMultipleSelections=function(e){O(this.cm.display.cursorDiv,e.cursors),O(this.cm.display.selectionDiv,e.selection)},Js.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Js.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return D(this.div,t)},Js.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&L()==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Js.prototype.blur=function(){this.div.blur()},Js.prototype.getField=function(){return this.div},Js.prototype.supportsTouch=function(){return!0},Js.prototype.receivedFocus=function(){var e=this,t=this;function n(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,n))}this.selectionInEditor()?setTimeout((function(){return e.pollSelection()}),20):Ai(this.cm,(function(){return t.cm.curOp.selectionChanged=!0})),o(n,"poll"),this.polling.set(this.cm.options.pollInterval,n)},Js.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Js.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(v&&d&&this.cm.display.gutterSpecs.length&&Zs(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=nl(t,e.anchorNode,e.anchorOffset),r=nl(t,e.focusNode,e.focusOffset);n&&r&&Ai(t,(function(){$o(t.doc,so(n,r),q),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)}))}}},Js.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),a=o.from(),s=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=ot(a.line-1,Je(r.doc,a.line-1).length)),s.ch==Je(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=ot(s.line+1,0)),a.line<i.viewFrom||s.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(e=Rr(r,a.line))?(t=tt(i.view[0].line),n=i.view[0].node):(t=tt(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,u,c=Rr(r,s.line);if(c==i.view.length-1?(l=i.viewTo-1,u=i.lineDiv.lastChild):(l=tt(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!n)return!1;for(var d=r.doc.splitLines(tl(r,n,u,t,l)),f=Xe(r.doc,ot(t,0),ot(l,Je(r.doc,l).text.length));d.length>1&&f.length>1;)if(K(d)==K(f))d.pop(),f.pop(),l--;else{if(d[0]!=f[0])break;d.shift(),f.shift(),t++}for(var p=0,h=0,m=d[0],g=f[0],v=Math.min(m.length,g.length);p<v&&m.charCodeAt(p)==g.charCodeAt(p);)++p;for(var y=K(d),b=K(f),E=Math.min(y.length-(1==d.length?p:0),b.length-(1==f.length?p:0));h<E&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)++h;if(1==d.length&&1==f.length&&t==a.line)for(;p&&p>a.ch&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)p--,h++;d[d.length-1]=y.slice(0,y.length-h).replace(/^\u200b+/,""),d[0]=d[0].slice(p).replace(/\u200b+$/,"");var w=ot(t,p),k=ot(l,f.length?K(f).length-h:0);return d.length>1||d[0]||at(w,k)?(ia(r.doc,d,w,k,"+input"),!0):void 0},Js.prototype.ensurePolled=function(){this.forceCompositionEnd()},Js.prototype.reset=function(){this.forceCompositionEnd()},Js.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Js.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},Js.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Ai(this.cm,(function(){return Pr(e.cm)}))},Js.prototype.setUneditable=function(e){e.contentEditable="false"},Js.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Di(this.cm,$s)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Js.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Js.prototype.onContextMenu=function(){},Js.prototype.resetPosition=function(){},Js.prototype.needsContentAttribute=!0,o(Xs,"posToDOM"),o(Zs,"isInGutter"),o(el,"badPos"),o(tl,"domTextBetween"),o(nl,"domToPos"),o(rl,"locateNodeInLineView");var il=o((function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new U,this.hasSelection=!1,this.composing=null}),"TextareaInput");function ol(e,t){if((t=t?j(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=L();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=l.getValue()}var i;if(o(r,"save"),e.form&&(he(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var a=e.form;i=a.submit;try{var s=a.submit=function(){r(),a.submit=i,a.submit(),a.submit=s}}catch(e){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(ge(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var l=Rs((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return l}function al(e){e.off=ge,e.on=he,e.wheelEventPixels=no,e.Doc=Ta,e.splitLines=Me,e.countColumn=V,e.findColumn=G,e.isWordChar=te,e.Pass=$,e.signal=ve,e.Line=un,e.changeEnd=lo,e.scrollbarModel=Ei,e.Pos=ot,e.cmpPos=at,e.modes=Ve,e.mimeModes=Ue,e.resolveMode=qe,e.getMode=He,e.modeExtensions=ze,e.extendMode=Ge,e.copyState=We,e.startState=Ke,e.innerMode=Ye,e.commands=Ja,e.keyMap=ja,e.keyName=Ha,e.isModifierKey=$a,e.lookupKey=Ba,e.normalizeKeyMap=Ua,e.StringStream=Qe,e.SharedTextMarker=va,e.TextMarker=ma,e.LineWidget=da,e.e_preventDefault=ke,e.e_stopPropagation=Te,e.e_stop=Ce,e.addClass=M,e.contains=D,e.rmClass=N,e.keyNames=Ma}il.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function a(e){if(!ye(r,e)){if(r.somethingSelected())Bs({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=zs(r);Bs({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,q):(n.prevInput="",i.value=t.text.join("\n"),R(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(i.style.width="0px"),he(i,"input",(function(){s&&l>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),he(i,"paste",(function(e){ye(r,e)||qs(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),o(a,"prepareCopyCut"),he(i,"cut",a),he(i,"copy",a),he(e.scroller,"paste",(function(t){if(!Hn(e,t)&&!ye(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),he(e.lineSpace,"selectstart",(function(t){Hn(e,t)||ke(t)})),he(i,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),he(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},il.prototype.createField=function(e){this.wrapper=Ws(),this.textarea=this.wrapper.firstChild},il.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},il.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Hr(e);if(e.options.moveInputWithCursor){var i=br(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},il.prototype.showSelection=function(e){var t=this.cm.display;O(t.cursorDiv,e.cursors),O(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},il.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&R(this.textarea),s&&l>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",s&&l>=9&&(this.hasSelection=null))}},il.prototype.getField=function(){return this.textarea},il.prototype.supportsTouch=function(){return!1},il.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||L()!=this.textarea))try{this.textarea.focus()}catch(e){}},il.prototype.blur=function(){this.textarea.blur()},il.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},il.prototype.receivedFocus=function(){this.slowPoll()},il.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},il.prototype.fastPoll=function(){var e=!1,t=this;function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}t.pollingFast=!0,o(n,"p"),t.polling.set(20,n)},il.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Fe(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(s&&l>=9&&this.hasSelection===i||b&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var a=0,u=Math.min(r.length,i.length);a<u&&r.charCodeAt(a)==i.charCodeAt(a);)++a;return Ai(t,(function(){$s(t,i.slice(a),r.length-a,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},il.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},il.prototype.onKeyPress=function(){s&&l>=9&&(this.hasSelection=null),this.fastPoll()},il.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var a=Fr(n,e),c=r.scroller.scrollTop;if(a&&!f){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(a)&&Di(n,$o)(n.doc,so(a),q);var d,p=i.style.cssText,h=t.wrapper.style.cssText,m=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-m.top-5)+"px; left: "+(e.clientX-m.left-5)+"px;\n z-index: 1000; background: "+(s?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",u&&(d=window.scrollY),r.input.focus(),u&&window.scrollTo(null,d),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=y,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),o(v,"prepareSelectAllHack"),o(y,"rehide"),s&&l>=9&&v(),x){Ce(e);var g=o((function(){ge(window,"mouseup",g),setTimeout(y,20)}),"mouseup");he(window,"mouseup",g)}else setTimeout(y,50)}function v(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function y(){if(t.contextMenuPending==y&&(t.contextMenuPending=!1,t.wrapper.style.cssText=h,i.style.cssText=p,s&&l<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=c),null!=i.selectionStart)){(!s||s&&l<9)&&v();var e=0,a=o((function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?Di(n,Qo)(n):e++<10?r.detectingSelectAll=setTimeout(a,500):(r.selForContextMenu=null,r.input.reset())}),"poll");r.detectingSelectAll=setTimeout(a,200)}}},il.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},il.prototype.setUneditable=function(){},il.prototype.needsContentAttribute=!1,o(ol,"fromTextArea"),o(al,"addLegacyProps"),Ls(Rs),Ys(Rs);var sl="iter insert remove copy getEditor constructor".split(" ");for(var ll in Ta.prototype)Ta.prototype.hasOwnProperty(ll)&&B(sl,ll)<0&&(Rs.prototype[ll]=function(e){return function(){return e.apply(this.doc,arguments)}}(Ta.prototype[ll]));return we(Ta),Rs.inputStyles={textarea:il,contenteditable:Js},Rs.defineMode=function(e){Rs.defaults.mode||"null"==e||(Rs.defaults.mode=e),Be.apply(this,arguments)},Rs.defineMIME=$e,Rs.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Rs.defineMIME("text/plain","null"),Rs.defineExtension=function(e,t){Rs.prototype[e]=t},Rs.defineDocExtension=function(e,t){Ta.prototype[e]=t},Rs.fromTextArea=ol,al(Rs),Rs.version="5.65.3",Rs}();var u=l.exports,c=a({__proto__:null,default:u},[l.exports])},3480:(e,t,n)=>{function r(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}n.d(t,{A:()=>r})},3492:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(8100),i=n(9779),o=n(2239),a=n(4786),s=n(7167);function l(e){return{Field(t){const n=e.getParentType();if(n&&!e.getFieldDef()){const l=e.getSchema(),u=t.name.value;let c=(0,r.a)("to use an inline fragment on",function(e,t,n){if(!(0,s.Lc)(t))return[];const r=new Set,o=Object.create(null);for(const i of e.getPossibleTypes(t))if(i.getFields()[n]){r.add(i),o[i.name]=1;for(const e of i.getInterfaces()){var a;e.getFields()[n]&&(r.add(e),o[e.name]=(null!==(a=o[e.name])&&void 0!==a?a:0)+1)}}return[...r].sort(((t,n)=>{const r=o[n.name]-o[t.name];return 0!==r?r:(0,s.kD)(t)&&e.isSubType(t,n)?-1:(0,s.kD)(n)&&e.isSubType(n,t)?1:(0,i.p)(t.name,n.name)})).map((e=>e.name))}(l,n,u));""===c&&(c=(0,r.a)(function(e,t){if((0,s.YQ)(e)||(0,s.kD)(e)){const n=Object.keys(e.getFields());return(0,o.x)(t,n)}return[]}(n,u))),e.reportError(new a.eO(`Cannot query field "${u}" on type "${n.name}".`+c,{nodes:t}))}}}}},3581:(e,t,n)=>{n.d(t,{_:()=>o});var r=n(5551),i=n(4786);function o(e){return{OperationDefinition(t){var n;const o=null!==(n=t.variableDefinitions)&&void 0!==n?n:[],a=(0,r.$)(o,(e=>e.variable.name.value));for(const[t,n]of a)n.length>1&&e.reportError(new i.eO(`There can be only one variable named "$${t}".`,{nodes:n.map((e=>e.variable.name))}))}}}},3724:(e,t,n)=>{n.r(t),n.d(t,{useExplorerPlugin:()=>Hn});var r={};n.r(r),n.d(r,{BREAK:()=>A.sP,BreakingChangeType:()=>kt,DEFAULT_DEPRECATION_REASON:()=>E.Il,DangerousChangeType:()=>Tt,DirectiveLocation:()=>L.H,ExecutableDefinitionsRule:()=>U.T,FieldsOnCorrectTypeRule:()=>B.Z,FragmentsOnCompositeTypesRule:()=>$.T,GRAPHQL_MAX_INT:()=>w.BW,GRAPHQL_MIN_INT:()=>w.nM,GraphQLBoolean:()=>w.kk,GraphQLDeprecatedDirective:()=>E.yK,GraphQLDirective:()=>E.RR,GraphQLEnumType:()=>y.Zb,GraphQLError:()=>ke.eO,GraphQLFloat:()=>w.qS,GraphQLID:()=>w.N1,GraphQLIncludeDirective:()=>E.HQ,GraphQLInputObjectType:()=>y.zP,GraphQLInt:()=>w.Fh,GraphQLInterfaceType:()=>y.VA,GraphQLList:()=>y.KT,GraphQLNonNull:()=>y.Gc,GraphQLObjectType:()=>y.bh,GraphQLOneOfDirective:()=>E.mM,GraphQLScalarType:()=>y.Ag,GraphQLSchema:()=>b.V4,GraphQLSkipDirective:()=>E.MQ,GraphQLSpecifiedByDirective:()=>E.gw,GraphQLString:()=>w.FV,GraphQLUnionType:()=>y.hI,Kind:()=>D.b,KnownArgumentNamesRule:()=>q.P,KnownDirectivesRule:()=>H.e,KnownFragmentNamesRule:()=>z.K,KnownTypeNamesRule:()=>G.y,Lexer:()=>_.J,Location:()=>x.aZ,LoneAnonymousOperationRule:()=>W.P,LoneSchemaDefinitionRule:()=>pe.l,MaxIntrospectionDepthRule:()=>fe.B,NoDeprecatedCustomRule:()=>we.k,NoFragmentCyclesRule:()=>Y.n,NoSchemaIntrospectionCustomRule:()=>Te,NoUndefinedVariablesRule:()=>K.Z,NoUnusedFragmentsRule:()=>Q.z,NoUnusedVariablesRule:()=>J.p,OperationTypeNode:()=>x.cE,OverlappingFieldsCanBeMergedRule:()=>X.K,PossibleFragmentSpreadsRule:()=>Z.y,PossibleTypeExtensionsRule:()=>Ee.S,ProvidedRequiredArgumentsRule:()=>ee.X,ScalarLeafsRule:()=>te.A,SchemaMetaFieldDef:()=>k.S0,SingleFieldSubscriptionsRule:()=>ne.R,Source:()=>C.k,Token:()=>x.ou,TokenKind:()=>O.Y,TypeInfo:()=>ft.D,TypeKind:()=>k.fY,TypeMetaFieldDef:()=>k.Xe,TypeNameMetaFieldDef:()=>k.of,UniqueArgumentDefinitionNamesRule:()=>ye.E,UniqueArgumentNamesRule:()=>re.J,UniqueDirectiveNamesRule:()=>be.Z,UniqueDirectivesPerLocationRule:()=>ie.U,UniqueEnumValueNamesRule:()=>ge.g,UniqueFieldDefinitionNamesRule:()=>ve.X,UniqueFragmentNamesRule:()=>oe.K,UniqueInputFieldNamesRule:()=>ae.C,UniqueOperationNamesRule:()=>se.H,UniqueOperationTypesRule:()=>he.u,UniqueTypeNamesRule:()=>me.i,UniqueVariableNamesRule:()=>le._,ValidationContext:()=>j.dY,ValuesOfCorrectTypeRule:()=>ue.U,VariablesAreInputTypesRule:()=>ce.J,VariablesInAllowedPositionRule:()=>de.E,__Directive:()=>k.sv,__DirectiveLocation:()=>k.$4,__EnumValue:()=>k.B1,__Field:()=>k.z9,__InputValue:()=>k.Ym,__Schema:()=>k.em,__Type:()=>k.P8,__TypeKind:()=>k.B0,assertAbstractType:()=>y.N_,assertCompositeType:()=>y.Ye,assertDirective:()=>E.yq,assertEnumType:()=>y.el,assertEnumValueName:()=>T.A,assertInputObjectType:()=>y.Yq,assertInputType:()=>y.L9,assertInterfaceType:()=>y.qL,assertLeafType:()=>y.D0,assertListType:()=>y.dL,assertName:()=>T.I,assertNamedType:()=>y.sF,assertNonNullType:()=>y.ZX,assertNullableType:()=>y.wG,assertObjectType:()=>y.qC,assertOutputType:()=>y.yh,assertScalarType:()=>y.Zx,assertSchema:()=>b.GU,assertType:()=>y.j,assertUnionType:()=>y.EG,assertValidName:()=>Et,assertValidSchema:()=>f.Y,assertWrappingType:()=>y.B3,astFromValue:()=>Qe.K,buildASTSchema:()=>Be,buildClientSchema:()=>Ae.D,buildSchema:()=>$e,coerceInputValue:()=>pt.v,concatAST:()=>ht,createSourceEventStream:()=>P.k,defaultFieldResolver:()=>h.kf,defaultTypeResolver:()=>h.ch,doTypesOverlap:()=>bt.uI,execute:()=>h.g7,executeSync:()=>h.Lo,extendSchema:()=>Re,findBreakingChanges:()=>Ct,findDangerousChanges:()=>St,formatError:()=>ke.Wk,getArgumentValues:()=>R.IA,getDirectiveValues:()=>R.YY,getEnterLeaveForKind:()=>A.XO,getIntrospectionQuery:()=>Se.I,getLocation:()=>S.g,getNamedType:()=>y.MR,getNullableType:()=>y.yl,getOperationAST:()=>Ne.A,getOperationRootType:()=>_e,getVariableValues:()=>R.VE,getVisitFn:()=>A.UY,graphql:()=>m,graphqlSync:()=>g,introspectionFromSchema:()=>Ie,introspectionTypes:()=>k.V4,isAbstractType:()=>y.Lc,isCompositeType:()=>y.ML,isConstValueNode:()=>M.TZ,isDefinitionNode:()=>M.MD,isDirective:()=>E.qT,isEnumType:()=>y.oF,isEqualType:()=>bt.n8,isExecutableDefinitionNode:()=>M._m,isInputObjectType:()=>y.qK,isInputType:()=>y.dX,isInterfaceType:()=>y.kD,isIntrospectionType:()=>k.Yh,isLeafType:()=>y.zf,isListType:()=>y.Fs,isNamedType:()=>y.sy,isNonNullType:()=>y.bd,isNullableType:()=>y.wj,isObjectType:()=>y.YQ,isOutputType:()=>y.oH,isRequiredArgument:()=>y.xP,isRequiredInputField:()=>y.YX,isScalarType:()=>y.lg,isSchema:()=>b.Wl,isSelectionNode:()=>M.VK,isSpecifiedDirective:()=>E.Qe,isSpecifiedScalarType:()=>w.PZ,isType:()=>y.Xj,isTypeDefinitionNode:()=>M.a6,isTypeExtensionNode:()=>M.i7,isTypeNode:()=>M.dI,isTypeSubTypeOf:()=>bt.sP,isTypeSystemDefinitionNode:()=>M.xu,isTypeSystemExtensionNode:()=>M.fT,isUnionType:()=>y.CK,isValidNameError:()=>wt,isValueNode:()=>M.aR,isWrappingType:()=>y.lS,lexicographicSortSchema:()=>ze,locatedError:()=>Ce.J,parse:()=>d.qg,parseConstValue:()=>d.u8,parseType:()=>d.Mb,parseValue:()=>d.$x,print:()=>I.y,printError:()=>ke.yJ,printIntrospectionSchema:()=>Xe,printLocation:()=>N.V,printSchema:()=>Je,printSourceLocation:()=>N.C,printType:()=>nt,recommendedRules:()=>V.b0,resolveObjMapThunk:()=>y.qN,resolveReadonlyArrayThunk:()=>y.aj,responsePathAsArray:()=>F.A,separateOperations:()=>mt,specifiedDirectives:()=>E.rc,specifiedRules:()=>V.gv,specifiedScalarTypes:()=>w.YC,stripIgnoredCharacters:()=>yt,subscribe:()=>P.B,syntaxError:()=>xe.I,typeFromAST:()=>ct.v,validate:()=>p.tf,validateSchema:()=>f.i,valueFromAST:()=>Fe.i,valueFromASTUntyped:()=>dt.F,version:()=>s,versionInfo:()=>l,visit:()=>A.YR,visitInParallel:()=>A.oP,visitWithTypeInfo:()=>ft.S});var i=n(2244),o=n(6540),a=n.t(o,2);const s="16.10.0",l=Object.freeze({major:16,minor:10,patch:0,preReleaseTag:null});var u=n(6286),c=n(5154),d=n(9004),f=n(617),p=n(9398),h=n(8467);function m(e){return new Promise((t=>t(v(e))))}function g(e){const t=v(e);if((0,c.y)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function v(e){arguments.length<2||(0,u.U)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,source:n,rootValue:r,contextValue:i,variableValues:o,operationName:a,fieldResolver:s,typeResolver:l}=e,c=(0,f.i)(t);if(c.length>0)return{errors:c};let m;try{m=(0,d.qg)(n)}catch(e){return{errors:[e]}}const g=(0,p.tf)(t,m);return g.length>0?{errors:g}:(0,h.g7)({schema:t,document:m,rootValue:r,contextValue:i,variableValues:o,operationName:a,fieldResolver:s,typeResolver:l})}var y=n(7167),b=n(8746),E=n(7613),w=n(3770),k=n(9488),T=n(2300),x=n(475),C=n(4954),S=n(8160),N=n(3143),_=n(5009),O=n(590),I=n(6547),A=n(4705),D=n(3298),L=n(2369),M=n(6623),F=n(1810),R=n(4803),P=n(9761),j=n(7506),V=n(5795),U=n(6276),B=n(3492),$=n(3074),q=n(9558),H=n(2101),z=n(6025),G=n(9993),W=n(6048),Y=n(6834),K=n(6412),Q=n(5848),J=n(5604),X=n(1633),Z=n(7249),ee=n(916),te=n(7109),ne=n(8292),re=n(962),ie=n(9731),oe=n(7781),ae=n(541),se=n(6002),le=n(3581),ue=n(3023),ce=n(7234),de=n(5141),fe=n(6008),pe=n(8028),he=n(5197),me=n(5621),ge=n(7721),ve=n(1014),ye=n(6263),be=n(9238),Ee=n(2029),we=n(177),ke=n(4786);function Te(e){return{Field(t){const n=(0,y.MR)(e.getType());n&&(0,k.Yh)(n)&&e.reportError(new ke.eO(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}var xe=n(9738),Ce=n(7686),Se=n(4266),Ne=n(4428);function _e(e,t){if("query"===t.operation){const n=e.getQueryType();if(!n)throw new ke.eO("Schema does not define the required query root type.",{nodes:t});return n}if("mutation"===t.operation){const n=e.getMutationType();if(!n)throw new ke.eO("Schema is not configured for mutations.",{nodes:t});return n}if("subscription"===t.operation){const n=e.getSubscriptionType();if(!n)throw new ke.eO("Schema is not configured for subscriptions.",{nodes:t});return n}throw new ke.eO("Can only have query, mutation and subscription operations.",{nodes:t})}var Oe=n(1181);function Ie(e,t){const n={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0,...t},r=(0,d.qg)((0,Se.I)(n)),i=(0,h.Lo)({schema:e,document:r});return!i.errors&&i.data||(0,Oe.V)(!1),i.data}var Ae=n(8301),De=n(129),Le=n(2242),Me=n(4950),Fe=n(726);function Re(e,t,n){(0,b.GU)(e),null!=t&&t.kind===D.b.DOCUMENT||(0,u.U)(!1,"Must provide valid Document AST."),!0!==(null==n?void 0:n.assumeValid)&&!0!==(null==n?void 0:n.assumeValidSDL)&&(0,p.$T)(t,e);const r=e.toConfig(),i=Pe(r,t,n);return r===i?e:new b.V4(i)}function Pe(e,t,n){var r,i,o,a;const s=[],l=Object.create(null),u=[];let c;const d=[];for(const e of t.definitions)if(e.kind===D.b.SCHEMA_DEFINITION)c=e;else if(e.kind===D.b.SCHEMA_EXTENSION)d.push(e);else if((0,M.a6)(e))s.push(e);else if((0,M.i7)(e)){const t=e.name.value,n=l[t];l[t]=n?n.concat([e]):[e]}else e.kind===D.b.DIRECTIVE_DEFINITION&&u.push(e);if(0===Object.keys(l).length&&0===s.length&&0===u.length&&0===d.length&&null==c)return e;const f=Object.create(null);for(const t of e.types)f[t.name]=(p=t,(0,k.Yh)(p)||(0,w.PZ)(p)?p:(0,y.lg)(p)?function(e){var t;const n=e.toConfig(),r=null!==(t=l[n.name])&&void 0!==t?t:[];let i=n.specifiedByURL;for(const e of r){var o;i=null!==(o=Ue(e))&&void 0!==o?o:i}return new y.Ag({...n,specifiedByURL:i,extensionASTNodes:n.extensionASTNodes.concat(r)})}(p):(0,y.YQ)(p)?function(e){var t;const n=e.toConfig(),r=null!==(t=l[n.name])&&void 0!==t?t:[];return new y.bh({...n,interfaces:()=>[...e.getInterfaces().map(v),...A(r)],fields:()=>({...(0,Me.I)(n.fields,b),...N(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(p):(0,y.kD)(p)?function(e){var t;const n=e.toConfig(),r=null!==(t=l[n.name])&&void 0!==t?t:[];return new y.VA({...n,interfaces:()=>[...e.getInterfaces().map(v),...A(r)],fields:()=>({...(0,Me.I)(n.fields,b),...N(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(p):(0,y.CK)(p)?function(e){var t;const n=e.toConfig(),r=null!==(t=l[n.name])&&void 0!==t?t:[];return new y.hI({...n,types:()=>[...e.getTypes().map(v),...L(r)],extensionASTNodes:n.extensionASTNodes.concat(r)})}(p):(0,y.oF)(p)?function(e){var t;const n=e.toConfig(),r=null!==(t=l[e.name])&&void 0!==t?t:[];return new y.Zb({...n,values:{...n.values,...I(r)},extensionASTNodes:n.extensionASTNodes.concat(r)})}(p):(0,y.qK)(p)?function(e){var t;const n=e.toConfig(),r=null!==(t=l[n.name])&&void 0!==t?t:[];return new y.zP({...n,fields:()=>({...(0,Me.I)(n.fields,(e=>({...e,type:g(e.type)}))),...O(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(p):void(0,Oe.V)(!1,"Unexpected type: "+(0,De.N)(p)));var p;for(const e of s){var h;const t=e.name.value;f[t]=null!==(h=je[t])&&void 0!==h?h:F(e)}const m={query:e.query&&v(e.query),mutation:e.mutation&&v(e.mutation),subscription:e.subscription&&v(e.subscription),...c&&x([c]),...x(d)};return{description:null===(r=c)||void 0===r||null===(i=r.description)||void 0===i?void 0:i.value,...m,types:Object.values(f),directives:[...e.directives.map((function(e){const t=e.toConfig();return new E.RR({...t,args:(0,Me.I)(t.args,T)})})),...u.map((function(e){var t;return new E.RR({name:e.name.value,description:null===(t=e.description)||void 0===t?void 0:t.value,locations:e.locations.map((({value:e})=>e)),isRepeatable:e.repeatable,args:_(e.arguments),astNode:e})}))],extensions:Object.create(null),astNode:null!==(o=c)&&void 0!==o?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(d),assumeValid:null!==(a=null==n?void 0:n.assumeValid)&&void 0!==a&&a};function g(e){return(0,y.Fs)(e)?new y.KT(g(e.ofType)):(0,y.bd)(e)?new y.Gc(g(e.ofType)):v(e)}function v(e){return f[e.name]}function b(e){return{...e,type:g(e.type),args:e.args&&(0,Me.I)(e.args,T)}}function T(e){return{...e,type:g(e.type)}}function x(e){const t={};for(const r of e){var n;const e=null!==(n=r.operationTypes)&&void 0!==n?n:[];for(const n of e)t[n.operation]=C(n.type)}return t}function C(e){var t;const n=e.name.value,r=null!==(t=je[n])&&void 0!==t?t:f[n];if(void 0===r)throw new Error(`Unknown type: "${n}".`);return r}function S(e){return e.kind===D.b.LIST_TYPE?new y.KT(S(e.type)):e.kind===D.b.NON_NULL_TYPE?new y.Gc(S(e.type)):C(e)}function N(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.fields)&&void 0!==n?n:[];for(const n of e){var r;t[n.name.value]={type:S(n.type),description:null===(r=n.description)||void 0===r?void 0:r.value,args:_(n.arguments),deprecationReason:Ve(n),astNode:n}}}return t}function _(e){const t=null!=e?e:[],n=Object.create(null);for(const e of t){var r;const t=S(e.type);n[e.name.value]={type:t,description:null===(r=e.description)||void 0===r?void 0:r.value,defaultValue:(0,Fe.i)(e.defaultValue,t),deprecationReason:Ve(e),astNode:e}}return n}function O(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.fields)&&void 0!==n?n:[];for(const n of e){var r;const e=S(n.type);t[n.name.value]={type:e,description:null===(r=n.description)||void 0===r?void 0:r.value,defaultValue:(0,Fe.i)(n.defaultValue,e),deprecationReason:Ve(n),astNode:n}}}return t}function I(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.values)&&void 0!==n?n:[];for(const n of e){var r;t[n.name.value]={description:null===(r=n.description)||void 0===r?void 0:r.value,deprecationReason:Ve(n),astNode:n}}}return t}function A(e){return e.flatMap((e=>{var t,n;return null!==(t=null===(n=e.interfaces)||void 0===n?void 0:n.map(C))&&void 0!==t?t:[]}))}function L(e){return e.flatMap((e=>{var t,n;return null!==(t=null===(n=e.types)||void 0===n?void 0:n.map(C))&&void 0!==t?t:[]}))}function F(e){var t;const n=e.name.value,r=null!==(t=l[n])&&void 0!==t?t:[];switch(e.kind){case D.b.OBJECT_TYPE_DEFINITION:{var i;const t=[e,...r];return new y.bh({name:n,description:null===(i=e.description)||void 0===i?void 0:i.value,interfaces:()=>A(t),fields:()=>N(t),astNode:e,extensionASTNodes:r})}case D.b.INTERFACE_TYPE_DEFINITION:{var o;const t=[e,...r];return new y.VA({name:n,description:null===(o=e.description)||void 0===o?void 0:o.value,interfaces:()=>A(t),fields:()=>N(t),astNode:e,extensionASTNodes:r})}case D.b.ENUM_TYPE_DEFINITION:{var a;const t=[e,...r];return new y.Zb({name:n,description:null===(a=e.description)||void 0===a?void 0:a.value,values:I(t),astNode:e,extensionASTNodes:r})}case D.b.UNION_TYPE_DEFINITION:{var s;const t=[e,...r];return new y.hI({name:n,description:null===(s=e.description)||void 0===s?void 0:s.value,types:()=>L(t),astNode:e,extensionASTNodes:r})}case D.b.SCALAR_TYPE_DEFINITION:var u;return new y.Ag({name:n,description:null===(u=e.description)||void 0===u?void 0:u.value,specifiedByURL:Ue(e),astNode:e,extensionASTNodes:r});case D.b.INPUT_OBJECT_TYPE_DEFINITION:{var c;const t=[e,...r];return new y.zP({name:n,description:null===(c=e.description)||void 0===c?void 0:c.value,fields:()=>O(t),astNode:e,extensionASTNodes:r,isOneOf:(d=e,Boolean((0,R.YY)(E.mM,d)))})}}var d}}const je=(0,Le.K)([...w.YC,...k.V4],(e=>e.name));function Ve(e){const t=(0,R.YY)(E.yK,e);return null==t?void 0:t.reason}function Ue(e){const t=(0,R.YY)(E.gw,e);return null==t?void 0:t.url}function Be(e,t){null!=e&&e.kind===D.b.DOCUMENT||(0,u.U)(!1,"Must provide valid Document AST."),!0!==(null==t?void 0:t.assumeValid)&&!0!==(null==t?void 0:t.assumeValidSDL)&&(0,p.uq)(e);const n=Pe({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(null==n.astNode)for(const e of n.types)switch(e.name){case"Query":n.query=e;break;case"Mutation":n.mutation=e;break;case"Subscription":n.subscription=e}const r=[...n.directives,...E.rc.filter((e=>n.directives.every((t=>t.name!==e.name))))];return new b.V4({...n,directives:r})}function $e(e,t){return Be((0,d.qg)(e,{noLocation:null==t?void 0:t.noLocation,allowLegacyFragmentVariables:null==t?void 0:t.allowLegacyFragmentVariables}),{assumeValidSDL:null==t?void 0:t.assumeValidSDL,assumeValid:null==t?void 0:t.assumeValid})}var qe=n(9321),He=n(9779);function ze(e){const t=e.toConfig(),n=(0,qe.L)(We(t.types),(e=>e.name),(function(e){if((0,y.lg)(e)||(0,k.Yh)(e))return e;if((0,y.YQ)(e)){const t=e.toConfig();return new y.bh({...t,interfaces:()=>l(t.interfaces),fields:()=>s(t.fields)})}if((0,y.kD)(e)){const t=e.toConfig();return new y.VA({...t,interfaces:()=>l(t.interfaces),fields:()=>s(t.fields)})}if((0,y.CK)(e)){const t=e.toConfig();return new y.hI({...t,types:()=>l(t.types)})}if((0,y.oF)(e)){const t=e.toConfig();return new y.Zb({...t,values:Ge(t.values,(e=>e))})}if((0,y.qK)(e)){const t=e.toConfig();return new y.zP({...t,fields:()=>Ge(t.fields,(e=>({...e,type:r(e.type)})))})}(0,Oe.V)(!1,"Unexpected type: "+(0,De.N)(e))}));return new b.V4({...t,types:Object.values(n),directives:We(t.directives).map((function(e){const t=e.toConfig();return new E.RR({...t,locations:Ye(t.locations,(e=>e)),args:a(t.args)})})),query:o(t.query),mutation:o(t.mutation),subscription:o(t.subscription)});function r(e){return(0,y.Fs)(e)?new y.KT(r(e.ofType)):(0,y.bd)(e)?new y.Gc(r(e.ofType)):i(e)}function i(e){return n[e.name]}function o(e){return e&&i(e)}function a(e){return Ge(e,(e=>({...e,type:r(e.type)})))}function s(e){return Ge(e,(e=>({...e,type:r(e.type),args:e.args&&a(e.args)})))}function l(e){return We(e).map(i)}}function Ge(e,t){const n=Object.create(null);for(const r of Object.keys(e).sort(He.p))n[r]=t(e[r]);return n}function We(e){return Ye(e,(e=>e.name))}function Ye(e,t){return e.slice().sort(((e,n)=>{const r=t(e),i=t(n);return(0,He.p)(r,i)}))}var Ke=n(5995),Qe=n(3296);function Je(e){return et(e,(e=>!(0,E.Qe)(e)),Ze)}function Xe(e){return et(e,E.Qe,k.Yh)}function Ze(e){return!(0,w.PZ)(e)&&!(0,k.Yh)(e)}function et(e,t,n){const r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[tt(e),...r.map((e=>function(e){return ut(e)+"directive @"+e.name+at(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}(e))),...i.map((e=>nt(e)))].filter(Boolean).join("\n\n")}function tt(e){if(null==e.description&&function(e){const t=e.getQueryType();if(t&&"Query"!==t.name)return!1;const n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;const r=e.getSubscriptionType();return!r||"Subscription"===r.name}(e))return;const t=[],n=e.getQueryType();n&&t.push(` query: ${n.name}`);const r=e.getMutationType();r&&t.push(` mutation: ${r.name}`);const i=e.getSubscriptionType();return i&&t.push(` subscription: ${i.name}`),ut(e)+`schema {\n${t.join("\n")}\n}`}function nt(e){return(0,y.lg)(e)?function(e){return ut(e)+`scalar ${e.name}`+(null==(t=e).specifiedByURL?"":` @specifiedBy(url: ${(0,I.y)({kind:D.b.STRING,value:t.specifiedByURL})})`);var t}(e):(0,y.YQ)(e)?function(e){return ut(e)+`type ${e.name}`+rt(e)+it(e)}(e):(0,y.kD)(e)?function(e){return ut(e)+`interface ${e.name}`+rt(e)+it(e)}(e):(0,y.CK)(e)?function(e){const t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return ut(e)+"union "+e.name+n}(e):(0,y.oF)(e)?function(e){const t=e.getValues().map(((e,t)=>ut(e," ",!t)+" "+e.name+lt(e.deprecationReason)));return ut(e)+`enum ${e.name}`+ot(t)}(e):(0,y.qK)(e)?function(e){const t=Object.values(e.getFields()).map(((e,t)=>ut(e," ",!t)+" "+st(e)));return ut(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+ot(t)}(e):void(0,Oe.V)(!1,"Unexpected type: "+(0,De.N)(e))}function rt(e){const t=e.getInterfaces();return t.length?" implements "+t.map((e=>e.name)).join(" & "):""}function it(e){return ot(Object.values(e.getFields()).map(((e,t)=>ut(e," ",!t)+" "+e.name+at(e.args," ")+": "+String(e.type)+lt(e.deprecationReason))))}function ot(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function at(e,t=""){return 0===e.length?"":e.every((e=>!e.description))?"("+e.map(st).join(", ")+")":"(\n"+e.map(((e,n)=>ut(e," "+t,!n)+" "+t+st(e))).join("\n")+"\n"+t+")"}function st(e){const t=(0,Qe.K)(e.defaultValue,e.type);let n=e.name+": "+String(e.type);return t&&(n+=` = ${(0,I.y)(t)}`),n+lt(e.deprecationReason)}function lt(e){return null==e?"":e!==E.Il?` @deprecated(reason: ${(0,I.y)({kind:D.b.STRING,value:e})})`:" @deprecated"}function ut(e,t="",n=!0){const{description:r}=e;return null==r?"":(t&&!n?"\n"+t:t)+(0,I.y)({kind:D.b.STRING,value:r,block:(0,Ke.CS)(r)}).replace(/\n/g,"\n"+t)+"\n"}var ct=n(9581),dt=n(8129),ft=n(2327),pt=n(7915);function ht(e){const t=[];for(const n of e)t.push(...n.definitions);return{kind:D.b.DOCUMENT,definitions:t}}function mt(e){const t=[],n=Object.create(null);for(const r of e.definitions)switch(r.kind){case D.b.OPERATION_DEFINITION:t.push(r);break;case D.b.FRAGMENT_DEFINITION:n[r.name.value]=vt(r.selectionSet)}const r=Object.create(null);for(const i of t){const t=new Set;for(const e of vt(i.selectionSet))gt(t,n,e);r[i.name?i.name.value:""]={kind:D.b.DOCUMENT,definitions:e.definitions.filter((e=>e===i||e.kind===D.b.FRAGMENT_DEFINITION&&t.has(e.name.value)))}}return r}function gt(e,t,n){if(!e.has(n)){e.add(n);const r=t[n];if(void 0!==r)for(const n of r)gt(e,t,n)}}function vt(e){const t=[];return(0,A.YR)(e,{FragmentSpread(e){t.push(e.name.value)}}),t}function yt(e){const t=(0,C._)(e)?e:new C.k(e),n=t.body,r=new _.J(t);let i="",o=!1;for(;r.advance().kind!==O.Y.EOF;){const e=r.token,t=e.kind,a=!(0,_.Z)(e.kind);o&&(a||e.kind===O.Y.SPREAD)&&(i+=" ");const s=n.slice(e.start,e.end);t===O.Y.BLOCK_STRING?i+=(0,Ke.yo)(e.value,{minimize:!0}):i+=s,o=a}return i}var bt=n(1578);function Et(e){const t=wt(e);if(t)throw t;return e}function wt(e){if("string"==typeof e||(0,u.U)(!1,"Expected name to be a string."),e.startsWith("__"))return new ke.eO(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,T.I)(e)}catch(e){return e}}var kt,Tt,xt=n(1974);function Ct(e,t){return Nt(e,t).filter((e=>e.type in kt))}function St(e,t){return Nt(e,t).filter((e=>e.type in Tt))}function Nt(e,t){return[...Ot(e,t),..._t(e,t)]}function _t(e,t){const n=[],r=Ut(e.getDirectives(),t.getDirectives());for(const e of r.removed)n.push({type:kt.DIRECTIVE_REMOVED,description:`${e.name} was removed.`});for(const[e,t]of r.persisted){const r=Ut(e.args,t.args);for(const t of r.added)(0,y.xP)(t)&&n.push({type:kt.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${e.name} was added.`});for(const t of r.removed)n.push({type:kt.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`});e.isRepeatable&&!t.isRepeatable&&n.push({type:kt.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`});for(const r of e.locations)t.locations.includes(r)||n.push({type:kt.DIRECTIVE_LOCATION_REMOVED,description:`${r} was removed from ${e.name}.`})}return n}function Ot(e,t){const n=[],r=Ut(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(const e of r.removed)n.push({type:kt.TYPE_REMOVED,description:(0,w.PZ)(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`});for(const[e,t]of r.persisted)(0,y.oF)(e)&&(0,y.oF)(t)?n.push(...Dt(e,t)):(0,y.CK)(e)&&(0,y.CK)(t)?n.push(...At(e,t)):(0,y.qK)(e)&&(0,y.qK)(t)?n.push(...It(e,t)):(0,y.YQ)(e)&&(0,y.YQ)(t)||(0,y.kD)(e)&&(0,y.kD)(t)?n.push(...Mt(e,t),...Lt(e,t)):e.constructor!==t.constructor&&n.push({type:kt.TYPE_CHANGED_KIND,description:`${e.name} changed from ${jt(e)} to ${jt(t)}.`});return n}function It(e,t){const n=[],r=Ut(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of r.added)(0,y.YX)(t)?n.push({type:kt.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${t.name} on input type ${e.name} was added.`}):n.push({type:Tt.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${t.name} on input type ${e.name} was added.`});for(const t of r.removed)n.push({type:kt.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(const[t,i]of r.persisted)Pt(t.type,i.type)||n.push({type:kt.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return n}function At(e,t){const n=[],r=Ut(e.getTypes(),t.getTypes());for(const t of r.added)n.push({type:Tt.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`});for(const t of r.removed)n.push({type:kt.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`});return n}function Dt(e,t){const n=[],r=Ut(e.getValues(),t.getValues());for(const t of r.added)n.push({type:Tt.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`});for(const t of r.removed)n.push({type:kt.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`});return n}function Lt(e,t){const n=[],r=Ut(e.getInterfaces(),t.getInterfaces());for(const t of r.added)n.push({type:Tt.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`});for(const t of r.removed)n.push({type:kt.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${t.name}.`});return n}function Mt(e,t){const n=[],r=Ut(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of r.removed)n.push({type:kt.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(const[t,i]of r.persisted)n.push(...Ft(e,t,i)),Rt(t.type,i.type)||n.push({type:kt.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return n}function Ft(e,t,n){const r=[],i=Ut(t.args,n.args);for(const n of i.removed)r.push({type:kt.ARG_REMOVED,description:`${e.name}.${t.name} arg ${n.name} was removed.`});for(const[n,o]of i.persisted)if(Pt(n.type,o.type)){if(void 0!==n.defaultValue)if(void 0===o.defaultValue)r.push({type:Tt.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} defaultValue was removed.`});else{const i=Vt(n.defaultValue,n.type),a=Vt(o.defaultValue,o.type);i!==a&&r.push({type:Tt.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} has changed defaultValue from ${i} to ${a}.`})}}else r.push({type:kt.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${n.name} has changed type from ${String(n.type)} to ${String(o.type)}.`});for(const n of i.added)(0,y.xP)(n)?r.push({type:kt.REQUIRED_ARG_ADDED,description:`A required arg ${n.name} on ${e.name}.${t.name} was added.`}):r.push({type:Tt.OPTIONAL_ARG_ADDED,description:`An optional arg ${n.name} on ${e.name}.${t.name} was added.`});return r}function Rt(e,t){return(0,y.Fs)(e)?(0,y.Fs)(t)&&Rt(e.ofType,t.ofType)||(0,y.bd)(t)&&Rt(e,t.ofType):(0,y.bd)(e)?(0,y.bd)(t)&&Rt(e.ofType,t.ofType):(0,y.sy)(t)&&e.name===t.name||(0,y.bd)(t)&&Rt(e,t.ofType)}function Pt(e,t){return(0,y.Fs)(e)?(0,y.Fs)(t)&&Pt(e.ofType,t.ofType):(0,y.bd)(e)?(0,y.bd)(t)&&Pt(e.ofType,t.ofType)||!(0,y.bd)(t)&&Pt(e.ofType,t):(0,y.sy)(t)&&e.name===t.name}function jt(e){return(0,y.lg)(e)?"a Scalar type":(0,y.YQ)(e)?"an Object type":(0,y.kD)(e)?"an Interface type":(0,y.CK)(e)?"a Union type":(0,y.oF)(e)?"an Enum type":(0,y.qK)(e)?"an Input type":void(0,Oe.V)(!1,"Unexpected type: "+(0,De.N)(e))}function Vt(e,t){const n=(0,Qe.K)(e,t);return null!=n||(0,Oe.V)(!1),(0,I.y)((0,xt.M)(n))}function Ut(e,t){const n=[],r=[],i=[],o=(0,Le.K)(e,(({name:e})=>e)),a=(0,Le.K)(t,(({name:e})=>e));for(const t of e){const e=a[t.name];void 0===e?r.push(t):i.push([t,e])}for(const e of t)void 0===o[e.name]&&n.push(e);return{added:n,persisted:i,removed:r}}!function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"}(kt||(kt={})),function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"}(Tt||(Tt={}));var Bt=Object.defineProperty,$t=Object.getOwnPropertySymbols,qt=Object.prototype.hasOwnProperty,Ht=Object.prototype.propertyIsEnumerable,zt=(e,t,n)=>t in e?Bt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Gt=(e,t)=>{for(var n in t||(t={}))qt.call(t,n)&&zt(e,n,t[n]);if($t)for(var n of $t(t))Ht.call(t,n)&&zt(e,n,t[n]);return e};function Wt(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")&&1===Object.keys(e).length?e.default:e}var Yt={},Kt={},Qt=Wt(a),Jt=Wt(r);Object.defineProperty(Kt,"__esModule",{value:!0});var Xt="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},Zt=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},en=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tn=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Kt.defaultValue=kn;var nn=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(Qt),rn=Jt;function on(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function an(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function sn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ln(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 un(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)}function cn(e){return e.charAt(0).toUpperCase()+e.slice(1)}var dn={keyword:"#B11A04",def:"#D2054E",property:"#1F61A0",qualifier:"#1C92A9",attribute:"#8B2BB9",number:"#2882F9",string:"#D64292",builtin:"#D47509",string2:"#0B7FC7",variable:"#397D13",atom:"#CA9800"},fn=nn.createElement("svg",{width:"12",height:"9"},nn.createElement("path",{fill:"#666",d:"M 0 2 L 9 2 L 4.5 7.5 z"})),pn=nn.createElement("svg",{width:"12",height:"9"},nn.createElement("path",{fill:"#666",d:"M 0 0 L 0 9 L 5.5 4.5 z"})),hn=nn.createElement("svg",{style:{marginRight:"3px",marginLeft:"-3px"},width:"12",height:"12",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},nn.createElement("path",{d:"M16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0ZM16 16H2V2H16V16ZM14.99 6L13.58 4.58L6.99 11.17L4.41 8.6L2.99 10.01L6.99 14L14.99 6Z",fill:"#666"})),mn=nn.createElement("svg",{style:{marginRight:"3px",marginLeft:"-3px"},width:"12",height:"12",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},nn.createElement("path",{d:"M16 2V16H2V2H16ZM16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0Z",fill:"#CCC"}));function gn(e){return e.checked?e.styleConfig.checkboxChecked:e.styleConfig.checkboxUnchecked}function vn(e){var t=e.getFields();if(t.id){var n=["id"];return t.email?n.push("email"):t.name&&n.push("name"),n}if(t.edges)return["edges"];if(t.node)return["node"];if(t.nodes)return["nodes"];var r=[];return Object.keys(t).forEach((function(e){(0,rn.isLeafType)(t[e].type)&&r.push(e)})),r.length?r.slice(0,2):["__typename"]}function yn(e){return(0,rn.isNonNullType)(e.type)&&void 0===e.defaultValue}function bn(e){for(var t=e;(0,rn.isWrappingType)(t);)t=t.ofType;return t}function En(e,t){if("string"!=typeof t&&"VariableDefinition"===t.kind)return t.variable;if((0,rn.isScalarType)(e))try{switch(e.name){case"String":return{kind:"StringValue",value:String(e.parseValue(t))};case"Float":return{kind:"FloatValue",value:String(e.parseValue(parseFloat(t)))};case"Int":return{kind:"IntValue",value:String(e.parseValue(parseInt(t,10)))};case"Boolean":try{var n=JSON.parse(t);return"boolean"==typeof n?{kind:"BooleanValue",value:n}:{kind:"BooleanValue",value:!1}}catch(e){return{kind:"BooleanValue",value:!1}}default:return{kind:"StringValue",value:String(e.parseValue(t))}}}catch(e){return console.error("error coercing arg value",e,t),{kind:"StringValue",value:t}}else try{var r=e.parseValue(t);return r?{kind:"EnumValue",value:String(r)}:{kind:"EnumValue",value:e.getValues()[0].name}}catch(t){return{kind:"EnumValue",value:e.getValues()[0].name}}}var wn=function(e){function t(){var e,n,r;sn(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=ln(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r._getArgSelection=function(){return r.props.selection.fields.find((function(e){return e.name.value===r.props.arg.name}))},r._removeArg=function(){var e=r.props.selection,t=r._getArgSelection();r._previousArgSelection=t,r.props.modifyFields(e.fields.filter((function(e){return e!==t})),!0)},r._addArg=function(){var e=r.props,t=e.selection,n=e.arg,i=e.getDefaultScalarArgValue,o=e.parentField,a=e.makeDefaultArg,s=bn(n.type),l=null;if(r._previousArgSelection)l=r._previousArgSelection;else if((0,rn.isInputObjectType)(s)){var u=s.getFields();l={kind:"ObjectField",name:{kind:"Name",value:n.name},value:{kind:"ObjectValue",fields:On(i,a,o,Object.keys(u).map((function(e){return u[e]})))}}}else(0,rn.isLeafType)(s)&&(l={kind:"ObjectField",name:{kind:"Name",value:n.name},value:i(o,n,s)});if(l)return r.props.modifyFields([].concat(an(t.fields||[]),[l]),!0);console.error("Unable to add arg for argType",s)},r._setArgValue=function(e,t){var n=!1,i=!1,o=!1;try{"VariableDefinition"===e.kind?i=!0:null==e?n=!0:"string"==typeof e.kind&&(o=!0)}catch(e){}var a=r.props.selection,s=r._getArgSelection();if(s){var l=bn(r.props.arg.type);if((0,rn.isLeafType)(l)||i||n||o){var u=void 0,c=void 0;return null==e?c=null:!e.target&&e.kind&&"VariableDefinition"===e.kind?c=(u=e).variable:"string"==typeof e.kind?c=e:e.target&&"string"==typeof e.target.value&&(u=e.target.value,c=En(l,u)),r.props.modifyFields((a.fields||[]).map((function(e){return e===s?en({},e,{value:c}):e})),t)}console.warn("Unable to handle non leaf types in InputArgView.setArgValue",e)}else console.error("missing arg selection when setting arg value")},r._modifyChildFields=function(e){return r.props.modifyFields(r.props.selection.fields.map((function(t){return t.name.value===r.props.arg.name?en({},t,{value:{kind:"ObjectValue",fields:e}}):t})),!0)},ln(r,n)}return un(t,e),tn(t,[{key:"render",value:function(){var e=this.props,t=e.arg,n=e.parentField,r=this._getArgSelection();return nn.createElement(Sn,{argValue:r?r.value:null,arg:t,parentField:n,addArg:this._addArg,removeArg:this._removeArg,setArgFields:this._modifyChildFields,setArgValue:this._setArgValue,getDefaultScalarArgValue:this.props.getDefaultScalarArgValue,makeDefaultArg:this.props.makeDefaultArg,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig,onCommit:this.props.onCommit,definition:this.props.definition})}}]),t}(nn.PureComponent);function kn(e){if((0,rn.isEnumType)(e))return{kind:"EnumValue",value:e.getValues()[0].name};switch(e.name){case"String":default:return{kind:"StringValue",value:""};case"Float":return{kind:"FloatValue",value:"1.5"};case"Int":return{kind:"IntValue",value:"10"};case"Boolean":return{kind:"BooleanValue",value:!1}}}function Tn(e,t,n){return kn(n)}var xn=function(e){function t(){var e,n,r;sn(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=ln(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r._getArgSelection=function(){return(r.props.selection.arguments||[]).find((function(e){return e.name.value===r.props.arg.name}))},r._removeArg=function(e){var t=r.props.selection,n=r._getArgSelection();return r._previousArgSelection=n,r.props.modifyArguments((t.arguments||[]).filter((function(e){return e!==n})),e)},r._addArg=function(e){var t=r.props,n=t.selection,i=t.getDefaultScalarArgValue,o=t.makeDefaultArg,a=t.parentField,s=t.arg,l=bn(s.type),u=null;if(r._previousArgSelection)u=r._previousArgSelection;else if((0,rn.isInputObjectType)(l)){var c=l.getFields();u={kind:"Argument",name:{kind:"Name",value:s.name},value:{kind:"ObjectValue",fields:On(i,o,a,Object.keys(c).map((function(e){return c[e]})))}}}else(0,rn.isLeafType)(l)&&(u={kind:"Argument",name:{kind:"Name",value:s.name},value:i(a,s,l)});return u?r.props.modifyArguments([].concat(an(n.arguments||[]),[u]),e):(console.error("Unable to add arg for argType",l),null)},r._setArgValue=function(e,t){var n=!1,i=!1,o=!1;try{"VariableDefinition"===e.kind?i=!0:null==e?n=!0:"string"==typeof e.kind&&(o=!0)}catch(e){}var a=r.props.selection,s=r._getArgSelection();if(s||i){var l=bn(r.props.arg.type);if((0,rn.isLeafType)(l)||i||n||o){var u=void 0,c=void 0;return null==e?c=null:e.target&&"string"==typeof e.target.value?(u=e.target.value,c=En(l,u)):e.target||"VariableDefinition"!==e.kind?"string"==typeof e.kind&&(c=e):c=(u=e).variable,r.props.modifyArguments((a.arguments||[]).map((function(e){return e===s?en({},e,{value:c}):e})),t)}console.warn("Unable to handle non leaf types in ArgView._setArgValue")}else console.error("missing arg selection when setting arg value")},r._setArgFields=function(e,t){var n=r.props.selection,i=r._getArgSelection();if(i)return r.props.modifyArguments((n.arguments||[]).map((function(t){return t===i?en({},t,{value:{kind:"ObjectValue",fields:e}}):t})),t);console.error("missing arg selection when setting arg value")},ln(r,n)}return un(t,e),tn(t,[{key:"render",value:function(){var e=this.props,t=e.arg,n=e.parentField,r=this._getArgSelection();return nn.createElement(Sn,{argValue:r?r.value:null,arg:t,parentField:n,addArg:this._addArg,removeArg:this._removeArg,setArgFields:this._setArgFields,setArgValue:this._setArgValue,getDefaultScalarArgValue:this.props.getDefaultScalarArgValue,makeDefaultArg:this.props.makeDefaultArg,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig,onCommit:this.props.onCommit,definition:this.props.definition})}}]),t}(nn.PureComponent),Cn=function(e){function t(){var e,n,r;sn(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=ln(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r._handleChange=function(e){r.props.setArgValue(e,!0)},ln(r,n)}return un(t,e),tn(t,[{key:"componentDidMount",value:function(){var e=this._ref,t=document.activeElement;!e||!t||t instanceof HTMLTextAreaElement||(e.focus(),e.setSelectionRange(0,e.value.length))}},{key:"render",value:function(){var e=this,t=this.props,n=t.arg,r=t.argValue,i=t.styleConfig,o=bn(n.type),a="string"==typeof r.value?r.value:"",s="StringValue"===this.props.argValue.kind?i.colors.string:i.colors.number;return nn.createElement("span",{style:{color:s}},"String"===o.name?'"':"",nn.createElement("input",{style:{border:"none",borderBottom:"1px solid #888",outline:"none",width:Math.max(1,Math.min(15,a.length))+"ch",color:s},ref:function(t){e._ref=t},type:"text",onChange:this._handleChange,value:a}),"String"===o.name?'"':"")}}]),t}(nn.PureComponent),Sn=function(e){function t(){var e,n,r;sn(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=ln(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={displayArgActions:!1},ln(r,n)}return un(t,e),tn(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.argValue,r=t.arg,i=t.styleConfig,o=bn(r.type),a=null;if(n)if("Variable"===n.kind)a=nn.createElement("span",{style:{color:i.colors.variable}},"$",n.name.value);else if((0,rn.isScalarType)(o))a="Boolean"===o.name?nn.createElement("select",{style:{color:i.colors.builtin},onChange:this.props.setArgValue,value:"BooleanValue"===n.kind?n.value:void 0},nn.createElement("option",{key:"true",value:"true"},"true"),nn.createElement("option",{key:"false",value:"false"},"false")):nn.createElement(Cn,{setArgValue:this.props.setArgValue,arg:r,argValue:n,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig});else if((0,rn.isEnumType)(o))"EnumValue"===n.kind?a=nn.createElement("select",{style:{backgroundColor:"white",color:i.colors.string2},onChange:this.props.setArgValue,value:n.value},o.getValues().map((function(e){return nn.createElement("option",{key:e.name,value:e.name},e.name)}))):console.error("arg mismatch between arg and selection",o,n);else if((0,rn.isInputObjectType)(o))if("ObjectValue"===n.kind){var s=o.getFields();a=nn.createElement("div",{style:{marginLeft:16}},Object.keys(s).sort().map((function(t){return nn.createElement(wn,{key:t,arg:s[t],parentField:e.props.parentField,selection:n,modifyFields:e.props.setArgFields,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation,styleConfig:e.props.styleConfig,onCommit:e.props.onCommit,definition:e.props.definition})})))}else console.error("arg mismatch between arg and selection",o,n);var l=n&&"Variable"===n.kind,u=this.state.displayArgActions?nn.createElement("button",{type:"submit",className:"toolbar-button",title:l?"Remove the variable":"Extract the current value into a GraphQL variable",onClick:function(t){t.preventDefault(),t.stopPropagation(),l?function(){if(n&&n.name&&n.name.value){var t=n.name.value,r=(e.props.definition.variableDefinitions||[]).find((function(e){return e.variable.name.value===t}));if(r){var i=r.defaultValue,o=e.props.setArgValue(i,{commit:!1});if(o){var a=o.definitions.find((function(t){return t.name.value===e.props.definition.name.value}));if(!a)return;var s=0;(0,rn.visit)(a,{Variable:function(e){e.name.value===t&&(s+=1)}});var l=a.variableDefinitions||[];s<2&&(l=l.filter((function(e){return e.variable.name.value!==t})));var u=en({},a,{variableDefinitions:l}),c=o.definitions.map((function(e){return a===e?u:e})),d=en({},o,{definitions:c});e.props.onCommit(d)}}}}():function(){var t,i=r.name,o=(e.props.definition.variableDefinitions||[]).filter((function(e){return e.variable.name.value.startsWith(i)})).length;t=o>0?""+i+o:i;var a=r.type.toString(),s={kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:t}},type:(0,rn.parseType)(a),directives:[]},l=void 0,u={};if(null!=n){var c=(0,rn.visit)(n,{Variable:function(t){var n,r=t.name.value,i=(n=r,(e.props.definition.variableDefinitions||[]).find((function(e){return e.variable.name.value===n})));if(u[r]=u[r]+1||1,i)return i.defaultValue}}),d="NonNullType"===s.type.kind?en({},s,{type:s.type.type}):s;l=en({},d,{defaultValue:c})}else l=s;var f=Object.entries(u).filter((function(e){var t=Zt(e,2);return t[0],t[1]<2})).map((function(e){var t=Zt(e,2),n=t[0];return t[1],n}));if(l){var p=e.props.setArgValue(l,!1);if(p){var h=p.definitions.find((function(t){return!!(t.operation&&t.name&&t.name.value&&e.props.definition.name&&e.props.definition.name.value)&&t.name.value===e.props.definition.name.value})),m=[].concat(an(h.variableDefinitions||[]),[l]).filter((function(e){return-1===f.indexOf(e.variable.name.value)})),g=en({},h,{variableDefinitions:m}),v=p.definitions.map((function(e){return h===e?g:e})),y=en({},p,{definitions:v});e.props.onCommit(y)}}}()},style:i.styles.actionButtonStyle},nn.createElement("span",{style:{color:i.colors.variable}},"$")):null;return nn.createElement("div",{style:{cursor:"pointer",minHeight:"16px",WebkitUserSelect:"none",userSelect:"none"},"data-arg-name":r.name,"data-arg-type":o.name,className:"graphiql-explorer-"+r.name},nn.createElement("span",{style:{cursor:"pointer"},onClick:function(t){var r=!n;r?e.props.addArg(!0):e.props.removeArg(!0),e.setState({displayArgActions:r})}},(0,rn.isInputObjectType)(o)?nn.createElement("span",null,n?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):nn.createElement(gn,{checked:!!n,styleConfig:this.props.styleConfig}),nn.createElement("span",{style:{color:i.colors.attribute},title:r.description,onMouseEnter:function(){null!=n&&e.setState({displayArgActions:!0})},onMouseLeave:function(){return e.setState({displayArgActions:!1})}},r.name,yn(r)?"*":"",": ",u," ")," "),a||nn.createElement("span",null)," ")}}]),t}(nn.PureComponent),Nn=function(e){function t(){var e,n,r;sn(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=ln(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r._addFragment=function(){r.props.modifySelections([].concat(an(r.props.selections),[r._previousSelection||{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:r.props.implementingType.name}},selectionSet:{kind:"SelectionSet",selections:r.props.getDefaultFieldNames(r.props.implementingType).map((function(e){return{kind:"Field",name:{kind:"Name",value:e}}}))}}]))},r._removeFragment=function(){var e=r._getSelection();r._previousSelection=e,r.props.modifySelections(r.props.selections.filter((function(t){return t!==e})))},r._getSelection=function(){var e=r.props.selections.find((function(e){return"InlineFragment"===e.kind&&e.typeCondition&&r.props.implementingType.name===e.typeCondition.name.value}));return e?"InlineFragment"===e.kind?e:void 0:null},r._modifyChildSelections=function(e,t){var n=r._getSelection();return r.props.modifySelections(r.props.selections.map((function(t){return t===n?{directives:t.directives,kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:r.props.implementingType.name}},selectionSet:{kind:"SelectionSet",selections:e}}:t})),t)},ln(r,n)}return un(t,e),tn(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.implementingType,r=t.schema,i=t.getDefaultFieldNames,o=t.styleConfig,a=this._getSelection(),s=n.getFields(),l=a&&a.selectionSet?a.selectionSet.selections:[];return nn.createElement("div",{className:"graphiql-explorer-"+n.name},nn.createElement("span",{style:{cursor:"pointer"},onClick:a?this._removeFragment:this._addFragment},nn.createElement(gn,{checked:!!a,styleConfig:this.props.styleConfig}),nn.createElement("span",{style:{color:o.colors.atom}},this.props.implementingType.name)),a?nn.createElement("div",{style:{marginLeft:16}},Object.keys(s).sort().map((function(t){return nn.createElement(An,{key:t,field:s[t],selections:l,modifySelections:e._modifyChildSelections,schema:r,getDefaultFieldNames:i,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation,onCommit:e.props.onCommit,styleConfig:e.props.styleConfig,definition:e.props.definition,availableFragments:e.props.availableFragments})}))):null)}}]),t}(nn.PureComponent),_n=function(e){function t(){var e,n,r;sn(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=ln(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r._addFragment=function(){r.props.modifySelections([].concat(an(r.props.selections),[r._previousSelection||{kind:"FragmentSpread",name:r.props.fragment.name}]))},r._removeFragment=function(){var e=r._getSelection();r._previousSelection=e,r.props.modifySelections(r.props.selections.filter((function(e){return!("FragmentSpread"===e.kind&&e.name.value===r.props.fragment.name.value)})))},r._getSelection=function(){return r.props.selections.find((function(e){return"FragmentSpread"===e.kind&&e.name.value===r.props.fragment.name.value}))},ln(r,n)}return un(t,e),tn(t,[{key:"render",value:function(){var e=this.props.styleConfig,t=this._getSelection();return nn.createElement("div",{className:"graphiql-explorer-"+this.props.fragment.name.value},nn.createElement("span",{style:{cursor:"pointer"},onClick:t?this._removeFragment:this._addFragment},nn.createElement(gn,{checked:!!t,styleConfig:this.props.styleConfig}),nn.createElement("span",{style:{color:e.colors.def},className:"graphiql-explorer-"+this.props.fragment.name.value},this.props.fragment.name.value)))}}]),t}(nn.PureComponent);function On(e,t,n,r){var i=[],o=!0,a=!1,s=void 0;try{for(var l,u=r[Symbol.iterator]();!(o=(l=u.next()).done);o=!0){var c=l.value;if((0,rn.isRequiredInputField)(c)||t&&t(n,c)){var d=bn(c.type);(0,rn.isInputObjectType)(d)?function(){var r=d.getFields();i.push({kind:"ObjectField",name:{kind:"Name",value:c.name},value:{kind:"ObjectValue",fields:On(e,t,n,Object.keys(r).map((function(e){return r[e]})))}})}():(0,rn.isLeafType)(d)&&i.push({kind:"ObjectField",name:{kind:"Name",value:c.name},value:e(n,c,d)})}}}catch(e){a=!0,s=e}finally{try{!o&&u.return&&u.return()}finally{if(a)throw s}}return i}function In(e,t,n){var r=[],i=!0,o=!1,a=void 0;try{for(var s,l=n.args[Symbol.iterator]();!(i=(s=l.next()).done);i=!0){var u=s.value;if(yn(u)||t&&t(n,u)){var c=bn(u.type);(0,rn.isInputObjectType)(c)?function(){var i=c.getFields();r.push({kind:"Argument",name:{kind:"Name",value:u.name},value:{kind:"ObjectValue",fields:On(e,t,n,Object.keys(i).map((function(e){return i[e]})))}})}():(0,rn.isLeafType)(c)&&r.push({kind:"Argument",name:{kind:"Name",value:u.name},value:e(n,u,c)})}}}catch(e){o=!0,a=e}finally{try{!i&&l.return&&l.return()}finally{if(o)throw a}}return r}var An=function(e){function t(){var e,n,r;sn(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=ln(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={displayFieldActions:!1},r._addAllFieldsToSelections=function(e){var t={kind:"SelectionSet",selections:e?Object.keys(e).map((function(e){return{kind:"Field",name:{kind:"Name",value:e},arguments:[]}})):[]},n=[].concat(an(r.props.selections.filter((function(e){return"InlineFragment"===e.kind||e.name.value!==r.props.field.name}))),[{kind:"Field",name:{kind:"Name",value:r.props.field.name},arguments:In(r.props.getDefaultScalarArgValue,r.props.makeDefaultArg,r.props.field),selectionSet:t}]);r.props.modifySelections(n)},r._addFieldToSelections=function(e){var t=[].concat(an(r.props.selections),[r._previousSelection||{kind:"Field",name:{kind:"Name",value:r.props.field.name},arguments:In(r.props.getDefaultScalarArgValue,r.props.makeDefaultArg,r.props.field)}]);r.props.modifySelections(t)},r._handleUpdateSelections=function(e){if(r._getSelection()&&!e.altKey)r._removeFieldFromSelections();else{var t=(0,rn.getNamedType)(r.props.field.type),n=(0,rn.isObjectType)(t)&&t.getFields();n&&e.altKey?r._addAllFieldsToSelections(n):r._addFieldToSelections(n)}},r._removeFieldFromSelections=function(){var e=r._getSelection();r._previousSelection=e,r.props.modifySelections(r.props.selections.filter((function(t){return t!==e})))},r._getSelection=function(){var e=r.props.selections.find((function(e){return"Field"===e.kind&&r.props.field.name===e.name.value}));return e?"Field"===e.kind?e:void 0:null},r._setArguments=function(e,t){var n=r._getSelection();if(n)return r.props.modifySelections(r.props.selections.map((function(t){return t===n?{alias:n.alias,arguments:e,directives:n.directives,kind:"Field",name:n.name,selectionSet:n.selectionSet}:t})),t);console.error("Missing selection when setting arguments",e)},r._modifyChildSelections=function(e,t){return r.props.modifySelections(r.props.selections.map((function(t){if("Field"===t.kind&&r.props.field.name===t.name.value){if("Field"!==t.kind)throw new Error("invalid selection");return{alias:t.alias,arguments:t.arguments,directives:t.directives,kind:"Field",name:t.name,selectionSet:{kind:"SelectionSet",selections:e}}}return t})),t)},ln(r,n)}return un(t,e),tn(t,[{key:"render",value:function(){var e=this,n=this.props,r=n.field,i=n.schema,o=n.getDefaultFieldNames,a=n.styleConfig,s=this._getSelection(),l=function(e){for(var t=e;(0,rn.isWrappingType)(t);)t=t.ofType;return t}(r.type),u=r.args.sort((function(e,t){return e.name.localeCompare(t.name)})),c="graphiql-explorer-node graphiql-explorer-"+r.name;r.isDeprecated&&(c+=" graphiql-explorer-deprecated");var d=(0,rn.isObjectType)(l)||(0,rn.isInterfaceType)(l)||(0,rn.isUnionType)(l)?this.props.availableFragments&&this.props.availableFragments[l.name]:null,f=nn.createElement("div",{className:c},nn.createElement("span",{title:r.description,style:{cursor:"pointer",display:"inline-flex",alignItems:"center",minHeight:"16px",WebkitUserSelect:"none",userSelect:"none"},"data-field-name":r.name,"data-field-type":l.name,onClick:this._handleUpdateSelections,onMouseEnter:function(){(0,rn.isObjectType)(l)&&s&&s.selectionSet&&s.selectionSet.selections.filter((function(e){return"FragmentSpread"!==e.kind})).length>0&&e.setState({displayFieldActions:!0})},onMouseLeave:function(){return e.setState({displayFieldActions:!1})}},(0,rn.isObjectType)(l)?nn.createElement("span",null,s?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):null,(0,rn.isObjectType)(l)?null:nn.createElement(gn,{checked:!!s,styleConfig:this.props.styleConfig}),nn.createElement("span",{style:{color:a.colors.property},className:"graphiql-explorer-field-view"},r.name),this.state.displayFieldActions?nn.createElement("button",{type:"submit",className:"toolbar-button",title:"Extract selections into a new reusable fragment",onClick:function(t){t.preventDefault(),t.stopPropagation();var n=l.name+"Fragment",r=(d||[]).filter((function(e){return e.name.value.startsWith(n)})).length;r>0&&(n=""+n+r);var i=s&&s.selectionSet?s.selectionSet.selections:[],o=[{kind:"FragmentSpread",name:{kind:"Name",value:n},directives:[]}],a={kind:"FragmentDefinition",name:{kind:"Name",value:n},typeCondition:{kind:"NamedType",name:{kind:"Name",value:l.name}},directives:[],selectionSet:{kind:"SelectionSet",selections:i}},u=e._modifyChildSelections(o,!1);if(u){var c=en({},u,{definitions:[].concat(an(u.definitions),[a])});e.props.onCommit(c)}else console.warn("Unable to complete extractFragment operation")},style:en({},a.styles.actionButtonStyle)},nn.createElement("span",null,"…")):null),s&&u.length?nn.createElement("div",{style:{marginLeft:16},className:"graphiql-explorer-graphql-arguments"},u.map((function(t){return nn.createElement(xn,{key:t.name,parentField:r,arg:t,selection:s,modifyArguments:e._setArguments,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation,styleConfig:e.props.styleConfig,onCommit:e.props.onCommit,definition:e.props.definition})}))):null);if(s&&((0,rn.isObjectType)(l)||(0,rn.isInterfaceType)(l)||(0,rn.isUnionType)(l))){var p=(0,rn.isUnionType)(l)?{}:l.getFields(),h=s&&s.selectionSet?s.selectionSet.selections:[];return nn.createElement("div",{className:"graphiql-explorer-"+r.name},f,nn.createElement("div",{style:{marginLeft:16}},d?d.map((function(t){var n=i.getType(t.typeCondition.name.value),r=t.name.value;return n?nn.createElement(_n,{key:r,fragment:t,selections:h,modifySelections:e._modifyChildSelections,schema:i,styleConfig:e.props.styleConfig,onCommit:e.props.onCommit}):null})):null,Object.keys(p).sort().map((function(n){return nn.createElement(t,{key:n,field:p[n],selections:h,modifySelections:e._modifyChildSelections,schema:i,getDefaultFieldNames:o,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation,styleConfig:e.props.styleConfig,onCommit:e.props.onCommit,definition:e.props.definition,availableFragments:e.props.availableFragments})})),(0,rn.isInterfaceType)(l)||(0,rn.isUnionType)(l)?i.getPossibleTypes(l).map((function(t){return nn.createElement(Nn,{key:t.name,implementingType:t,selections:h,modifySelections:e._modifyChildSelections,schema:i,getDefaultFieldNames:o,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation,styleConfig:e.props.styleConfig,onCommit:e.props.onCommit,definition:e.props.definition})})):null))}return f}}]),t}(nn.PureComponent),Dn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",variableDefinitions:[],name:{kind:"Name",value:"MyQuery"},directives:[],selectionSet:{kind:"SelectionSet",selections:[]}}]},Ln=null;var Mn={buttonStyle:{fontSize:"1.2em",padding:"0px",backgroundColor:"white",border:"none",margin:"5px 0px",height:"40px",width:"100%",display:"block",maxWidth:"none"},actionButtonStyle:{padding:"0px",backgroundColor:"white",border:"none",margin:"0px",maxWidth:"none",height:"15px",width:"15px",display:"inline-block",fontSize:"smaller"},explorerActionsStyle:{margin:"4px -8px -8px",paddingLeft:"8px",bottom:"0px",width:"100%",textAlign:"center",background:"none",borderTop:"none",borderBottom:"none"}},Fn=function(e){function t(){var e,n,r;sn(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=ln(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={newOperationType:"query",displayTitleActions:!1},r._modifySelections=function(e,t){var n=r.props.definition;0===n.selectionSet.selections.length&&r._previousOperationDef&&(n=r._previousOperationDef);var i=void 0;if("FragmentDefinition"===n.kind)i=en({},n,{selectionSet:en({},n.selectionSet,{selections:e})});else if("OperationDefinition"===n.kind){var o=e.filter((function(e){return!("Field"===e.kind&&"__typename"===e.name.value)}));0===o.length&&(o=[{kind:"Field",name:{kind:"Name",value:"__typename ## Placeholder value"}}]),i=en({},n,{selectionSet:en({},n.selectionSet,{selections:o})})}return r.props.onEdit(i,t)},r._onOperationRename=function(e){return r.props.onOperationRename(e.target.value)},r._handlePotentialRun=function(e){(function(e){return e.ctrlKey&&"Enter"===e.key})(e)&&"FragmentDefinition"!==r.props.definition.kind&&r.props.onRunOperation(r.props.name)},r._rootViewElId=function(){var e=r.props;return e.operationType+"-"+(e.name||"unknown")},ln(r,n)}return un(t,e),tn(t,[{key:"componentDidMount",value:function(){var e=this._rootViewElId();this.props.onMount(e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.operationType,r=t.definition,i=t.schema,o=t.getDefaultFieldNames,a=t.styleConfig,s=this._rootViewElId(),l=this.props.fields||{},u=r.selectionSet.selections,c=this.props.name||cn(n)+" Name";return nn.createElement("div",{id:s,tabIndex:"0",onKeyDown:this._handlePotentialRun,style:{borderBottom:this.props.isLast?"none":"1px solid #d6d6d6",marginBottom:"0em",paddingBottom:"1em"}},nn.createElement("div",{style:{color:a.colors.keyword,paddingBottom:4},className:"graphiql-operation-title-bar",onMouseEnter:function(){return e.setState({displayTitleActions:!0})},onMouseLeave:function(){return e.setState({displayTitleActions:!1})}},n," ",nn.createElement("span",{style:{color:a.colors.def}},nn.createElement("input",{style:{color:a.colors.def,border:"none",borderBottom:"1px solid #888",outline:"none",width:Math.max(4,c.length)+"ch"},autoComplete:"false",placeholder:cn(n)+" Name",value:this.props.name,onKeyDown:this._handlePotentialRun,onChange:this._onOperationRename})),this.props.onTypeName?nn.createElement("span",null,nn.createElement("br",null),"on "+this.props.onTypeName):"",this.state.displayTitleActions?nn.createElement(nn.Fragment,null,nn.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return e.props.onOperationDestroy()},style:en({},a.styles.actionButtonStyle)},nn.createElement("span",null,"✕")),nn.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return e.props.onOperationClone()},style:en({},a.styles.actionButtonStyle)},nn.createElement("span",null,"⎘"))):""),Object.keys(l).sort().map((function(t){return nn.createElement(An,{key:t,field:l[t],selections:u,modifySelections:e._modifySelections,schema:i,getDefaultFieldNames:o,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation,styleConfig:e.props.styleConfig,onCommit:e.props.onCommit,definition:e.props.definition,availableFragments:e.props.availableFragments})})))}}]),t}(nn.PureComponent);function Rn(){return nn.createElement("div",{style:{fontFamily:"sans-serif",display:"flex",flexDirection:"column",alignItems:"center",margin:"1em",marginTop:0,flexGrow:1,justifyContent:"flex-end"}},nn.createElement("div",{style:{borderTop:"1px solid #d6d6d6",paddingTop:"1em",width:"100%",textAlign:"center"}},"GraphiQL Explorer by ",nn.createElement("a",{href:"https://www.onegraph.com"},"OneGraph")),nn.createElement("div",null,"Contribute on"," ",nn.createElement("a",{href:"https://github.com/OneGraph/graphiql-explorer"},"GitHub")))}var Pn=function(e){function t(){var e,n,r;sn(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=ln(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={newOperationType:"query",operation:null,operationToScrollTo:null},r._resetScroll=function(){var e=r._ref;e&&(e.scrollLeft=0)},r._onEdit=function(e){return r.props.onEdit(e)},r._setAddOperationType=function(e){r.setState({newOperationType:e})},r._handleRootViewMount=function(e){if(r.state.operationToScrollTo&&r.state.operationToScrollTo===e){var t=".graphiql-explorer-root #"+e,n=document.querySelector(t);n&&n.scrollIntoView()}},ln(r,n)}return un(t,e),tn(t,[{key:"componentDidMount",value:function(){this._resetScroll()}},{key:"render",value:function(){var e=this,t=this.props,n=t.schema,r=t.query,i=t.makeDefaultArg;if(!n)return nn.createElement("div",{style:{fontFamily:"sans-serif"},className:"error-container"},"No Schema Available");var o={colors:this.props.colors||dn,checkboxChecked:this.props.checkboxChecked||hn,checkboxUnchecked:this.props.checkboxUnchecked||mn,arrowClosed:this.props.arrowClosed||pn,arrowOpen:this.props.arrowOpen||fn,styles:this.props.styles?en({},Mn,this.props.styles):Mn},a=n.getQueryType(),s=n.getMutationType(),l=n.getSubscriptionType();if(!a&&!s&&!l)return nn.createElement("div",null,"Missing query type");var u=a&&a.getFields(),c=s&&s.getFields(),d=l&&l.getFields(),f=function(e){if(Ln&&Ln[0]===e)return Ln[1];var t=function(e){try{return e.trim()?(0,rn.parse)(e,{noLocation:!0}):null}catch(e){return new Error(e)}}(e);return t?t instanceof Error?Ln?Ln[1]:Dn:(Ln=[e,t],t):Dn}(r),p=this.props.getDefaultFieldNames||vn,h=this.props.getDefaultScalarArgValue||Tn,m=f.definitions.map((function(e){return"FragmentDefinition"===e.kind||"OperationDefinition"===e.kind?e:null})).filter(Boolean),g=0===m.length?Dn.definitions:m,v=[u?nn.createElement("option",{key:"query",className:"toolbar-button",style:o.styles.buttonStyle,type:"link",value:"query"},"Query"):null,c?nn.createElement("option",{key:"mutation",className:"toolbar-button",style:o.styles.buttonStyle,type:"link",value:"mutation"},"Mutation"):null,d?nn.createElement("option",{key:"subscription",className:"toolbar-button",style:o.styles.buttonStyle,type:"link",value:"subscription"},"Subscription"):null].filter(Boolean),y=0===v.length||this.props.hideActions?null:nn.createElement("div",{style:{minHeight:"50px",maxHeight:"50px",overflow:"none"}},nn.createElement("form",{className:"variable-editor-title graphiql-explorer-actions",style:en({},o.styles.explorerActionsStyle,{display:"flex",flexDirection:"row",alignItems:"center",borderTop:"1px solid rgb(214, 214, 214)"}),onSubmit:function(e){return e.preventDefault()}},nn.createElement("span",{style:{display:"inline-block",flexGrow:"0",textAlign:"right"}},"Add new"," "),nn.createElement("select",{onChange:function(t){return e._setAddOperationType(t.target.value)},value:this.state.newOperationType,style:{flexGrow:"2"}},v),nn.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return e.state.newOperationType?(t=e.state.newOperationType,n=f.definitions,i=(r=1===f.definitions.length&&f.definitions[0]===Dn.definitions[0])?[]:n.filter((function(e){return"OperationDefinition"===e.kind&&e.operation===t})),o="My"+cn(t)+(0===i.length?"":i.length+1),a={kind:"OperationDefinition",operation:t,name:{kind:"Name",value:o},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename # Placeholder value",loc:null},arguments:[],directives:[],selectionSet:null,loc:null}],loc:null},loc:null},s=r?[a]:[].concat(an(f.definitions),[a]),l=en({},f,{definitions:s}),e.setState({operationToScrollTo:t+"-"+o}),void e.props.onEdit((0,rn.print)(l))):null;var t,n,r,i,o,a,s,l},style:en({},o.styles.buttonStyle,{height:"22px",width:"22px"})},nn.createElement("span",null,"+")))),b=this.props.externalFragments&&this.props.externalFragments.reduce((function(e,t){if("FragmentDefinition"===t.kind){var n=t.typeCondition.name.value,r=e[n]||[],i=[].concat(an(r),[t]).sort((function(e,t){return e.name.value.localeCompare(t.name.value)}));return en({},e,on({},n,i))}return e}),{}),E=g.reduce((function(e,t){if("FragmentDefinition"===t.kind){var n=t.typeCondition.name.value,r=e[n]||[],i=[].concat(an(r),[t]).sort((function(e,t){return e.name.value.localeCompare(t.name.value)}));return en({},e,on({},n,i))}return e}),{}),w=en({},E,b),k=this.props.showAttribution?nn.createElement(Rn,null):null;return nn.createElement("div",{ref:function(t){e._ref=t},style:{fontSize:12,textOverflow:"ellipsis",whiteSpace:"nowrap",margin:0,padding:8,fontFamily:'Consolas, Inconsolata, "Droid Sans Mono", Monaco, monospace',display:"flex",flexDirection:"column",height:"100%"},className:"graphiql-explorer-root"},nn.createElement("div",{style:{flexGrow:"1",overflow:"scroll"}},g.map((function(t,r){var a=t&&t.name&&t.name.value,s="FragmentDefinition"===t.kind?"fragment":t&&t.operation||"query",l="FragmentDefinition"===t.kind&&"NamedType"===t.typeCondition.kind&&n.getType(t.typeCondition.name.value),m=l instanceof rn.GraphQLObjectType?l.getFields():null,v="query"===s?u:"mutation"===s?c:"subscription"===s?d:"FragmentDefinition"===t.kind?m:null,y="FragmentDefinition"===t.kind?t.typeCondition.name.value:null,b=function(t){var n=(0,rn.print)(t);e.props.onEdit(n)};return nn.createElement(Fn,{key:r,isLast:r===g.length-1,fields:v,operationType:s,name:a,definition:t,onOperationRename:function(n){var r,i,o,a,s=(o=en({},r=t,{name:null==(i=n)||""===i?null:{kind:"Name",value:i,loc:void 0}}),a=f.definitions.map((function(e){return r===e?o:e})),en({},f,{definitions:a}));e.props.onEdit((0,rn.print)(s))},onOperationDestroy:function(){var n,r,i=(n=t,r=f.definitions.filter((function(e){return n!==e})),en({},f,{definitions:r}));e.props.onEdit((0,rn.print)(i))},onOperationClone:function(){var n=function(t){var n;n="FragmentDefinition"===t.kind?"fragment":t.operation;var r=(t.name&&t.name.value||"")+"Copy",i=en({},t,{name:{kind:"Name",value:r,loc:void 0}}),o=f.definitions,a=[].concat(an(o),[i]);return e.setState({operationToScrollTo:n+"-"+r}),en({},f,{definitions:a})}(t);e.props.onEdit((0,rn.print)(n))},onTypeName:y,onMount:e._handleRootViewMount,onCommit:b,onEdit:function(e,n){var r;if(r="object"!==(void 0===n?"undefined":Xt(n))||void 0===n.commit||n.commit,e){var i=en({},f,{definitions:f.definitions.map((function(n){return n===t?e:n}))});return r?(b(i),i):i}return f},schema:n,getDefaultFieldNames:p,getDefaultScalarArgValue:h,makeDefaultArg:i,onRunOperation:function(){e.props.onRunOperation&&e.props.onRunOperation(a)},styleConfig:o,availableFragments:w})})),k),y)}}]),t}(nn.PureComponent);Pn.defaultProps={getDefaultFieldNames:vn,getDefaultScalarArgValue:Tn};var jn=function(e){function t(){var e,n,r;sn(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=ln(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={hasError:!1,error:null,errorInfo:null},ln(r,n)}return un(t,e),tn(t,[{key:"componentDidCatch",value:function(e,t){this.setState({hasError:!0,error:e,errorInfo:t}),console.error("Error in component",e,t)}},{key:"render",value:function(){return this.state.hasError?nn.createElement("div",{style:{padding:18,fontFamily:"sans-serif"}},nn.createElement("div",null,"Something went wrong"),nn.createElement("details",{style:{whiteSpace:"pre-wrap"}},this.state.error?this.state.error.toString():null,nn.createElement("br",null),this.state.errorInfo?this.state.errorInfo.componentStack:null)):this.props.children}}]),t}(nn.Component),Vn=function(e){function t(){return sn(this,t),ln(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return un(t,e),tn(t,[{key:"render",value:function(){return nn.createElement("div",{className:"docExplorerWrap",style:{height:"100%",width:this.props.width,minWidth:this.props.width,zIndex:7,display:this.props.explorerIsOpen?"flex":"none",flexDirection:"column",overflow:"hidden"}},nn.createElement("div",{className:"doc-explorer-title-bar"},nn.createElement("div",{className:"doc-explorer-title"},this.props.title),nn.createElement("div",{className:"doc-explorer-rhs"},nn.createElement("div",{className:"docExplorerHide",onClick:this.props.onToggleExplorer},"✕"))),nn.createElement("div",{className:"doc-explorer-contents",style:{padding:"0px",overflowY:"unset"}},nn.createElement(jn,null,nn.createElement(Pn,this.props))))}}]),t}(nn.PureComponent);Vn.defaultValue=kn,Vn.defaultProps={width:320,title:"Explorer"},Kt.default=Vn,Object.defineProperty(Yt,"__esModule",{value:!0}),Yt.Explorer=void 0;var Un,Bn=(Un=Kt)&&Un.__esModule?Un:{default:Un};Yt.Explorer=Bn.default;var $n=Yt.default=Bn.default;function qn(e){const{setOperationName:t}=(0,i.mi)({nonNull:!0}),{schema:n}=(0,i.wQ)({nonNull:!0}),{run:r}=(0,i.Vm)({nonNull:!0});return o.createElement($n,Gt({schema:n,onRunOperation:e=>{e&&t(e),r()},explorerIsOpen:!0,colors:{keyword:"hsl(var(--color-primary))",def:"hsl(var(--color-tertiary))",property:"hsl(var(--color-info))",qualifier:"hsl(var(--color-secondary))",attribute:"hsl(var(--color-tertiary))",number:"hsl(var(--color-success))",string:"hsl(var(--color-warning))",builtin:"hsl(var(--color-success))",string2:"hsl(var(--color-secondary))",variable:"hsl(var(--color-secondary))",atom:"hsl(var(--color-tertiary))"},arrowOpen:o.createElement("svg",{viewBox:"0 -4 13 15",style:{color:"hsla(var(--color-neutral), var(--alpha-tertiary, 0.4))",marginRight:"var(--px-4)",height:"var(--px-16)",width:"var(--px-16)"}},o.createElement("path",{d:"M3.35355 6.85355L6.14645 9.64645C6.34171 9.84171 6.65829 9.84171 6.85355 9.64645L9.64645 6.85355C9.96143 6.53857 9.73835 6 9.29289 6L3.70711 6C3.26165 6 3.03857 6.53857 3.35355 6.85355Z",fill:"currentColor"})),arrowClosed:o.createElement("svg",{viewBox:"0 -2 13 15",style:{color:"hsla(var(--color-neutral), var(--alpha-tertiary, 0.4))",marginRight:"var(--px-4)",height:"var(--px-16)",width:"var(--px-16)"}},o.createElement("path",{d:"M6.35355 11.1464L9.14645 8.35355C9.34171 8.15829 9.34171 7.84171 9.14645 7.64645L6.35355 4.85355C6.03857 4.53857 5.5 4.76165 5.5 5.20711V10.7929C5.5 11.2383 6.03857 11.4614 6.35355 11.1464Z",fill:"currentColor"})),checkboxUnchecked:o.createElement("svg",{viewBox:"0 0 15 15",style:{color:"hsla(var(--color-neutral), var(--alpha-tertiary, 0.4))",marginRight:"var(--px-4)",height:"var(--px-16)",width:"var(--px-16)"}},o.createElement("circle",{cx:"7.5",cy:"7.5",r:"6",stroke:"currentColor",fill:"none"})),checkboxChecked:o.createElement("svg",{viewBox:"0 0 15 15",style:{color:"hsl(var(--color-info))",marginRight:"var(--px-4)",height:"var(--px-16)",width:"var(--px-16)"}},o.createElement("circle",{cx:"7.5",cy:"7.5",r:"7.5",fill:"currentColor"}),o.createElement("path",{d:"M4.64641 7.00106L6.8801 9.23256L10.5017 5.61325",fill:"none",stroke:"white",strokeWidth:"1.5"})),styles:{buttonStyle:{backgroundColor:"transparent",border:"none",color:"hsla(var(--color-neutral), var(--alpha-secondary, 0.6))",cursor:"pointer",fontSize:"1em"},explorerActionsStyle:{padding:"var(--px-8) var(--px-4)"},actionButtonStyle:{backgroundColor:"transparent",border:"none",color:"hsla(var(--color-neutral), var(--alpha-secondary, 0.6))",cursor:"pointer",fontSize:"1em"}}},e))}function Hn(e){const t=(0,o.useRef)(e);t.current=e;const n=(0,o.useRef)();return n.current||(n.current={title:"GraphiQL Explorer",icon:()=>o.createElement("svg",{height:"1em",strokeWidth:"1.5",viewBox:"0 0 24 24",fill:"none"},o.createElement("path",{d:"M18 6H20M22 6H20M20 6V4M20 6V8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.4 20H2.6C2.26863 20 2 19.7314 2 19.4V11H21.4C21.7314 11 22 11.2686 22 11.6V19.4C22 19.7314 21.7314 20 21.4 20Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 11V4.6C2 4.26863 2.26863 4 2.6 4H8.77805C8.92127 4 9.05977 4.05124 9.16852 4.14445L12.3315 6.85555C12.4402 6.94876 12.5787 7 12.722 7H14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),content:()=>o.createElement(qn,Gt({},t.current))}),n.current}},3770:(e,t,n)=>{n.d(t,{BW:()=>u,FV:()=>p,Fh:()=>d,N1:()=>m,PZ:()=>v,YC:()=>g,kk:()=>h,nM:()=>c,qS:()=>f});var r=n(129),i=n(2475),o=n(4786),a=n(3298),s=n(6547),l=n(7167);const u=2147483647,c=-2147483648,d=new l.Ag({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=y(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isInteger(n))throw new o.eO(`Int cannot represent non-integer value: ${(0,r.N)(t)}`);if(n>u||n<c)throw new o.eO("Int cannot represent non 32-bit signed integer value: "+(0,r.N)(t));return n},parseValue(e){if("number"!=typeof e||!Number.isInteger(e))throw new o.eO(`Int cannot represent non-integer value: ${(0,r.N)(e)}`);if(e>u||e<c)throw new o.eO(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==a.b.INT)throw new o.eO(`Int cannot represent non-integer value: ${(0,s.y)(e)}`,{nodes:e});const t=parseInt(e.value,10);if(t>u||t<c)throw new o.eO(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),f=new l.Ag({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(e){const t=y(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isFinite(n))throw new o.eO(`Float cannot represent non numeric value: ${(0,r.N)(t)}`);return n},parseValue(e){if("number"!=typeof e||!Number.isFinite(e))throw new o.eO(`Float cannot represent non numeric value: ${(0,r.N)(e)}`);return e},parseLiteral(e){if(e.kind!==a.b.FLOAT&&e.kind!==a.b.INT)throw new o.eO(`Float cannot represent non numeric value: ${(0,s.y)(e)}`,e);return parseFloat(e.value)}}),p=new l.Ag({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){const t=y(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if("number"==typeof t&&Number.isFinite(t))return t.toString();throw new o.eO(`String cannot represent value: ${(0,r.N)(e)}`)},parseValue(e){if("string"!=typeof e)throw new o.eO(`String cannot represent a non string value: ${(0,r.N)(e)}`);return e},parseLiteral(e){if(e.kind!==a.b.STRING)throw new o.eO(`String cannot represent a non string value: ${(0,s.y)(e)}`,{nodes:e});return e.value}}),h=new l.Ag({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=y(e);if("boolean"==typeof t)return t;if(Number.isFinite(t))return 0!==t;throw new o.eO(`Boolean cannot represent a non boolean value: ${(0,r.N)(t)}`)},parseValue(e){if("boolean"!=typeof e)throw new o.eO(`Boolean cannot represent a non boolean value: ${(0,r.N)(e)}`);return e},parseLiteral(e){if(e.kind!==a.b.BOOLEAN)throw new o.eO(`Boolean cannot represent a non boolean value: ${(0,s.y)(e)}`,{nodes:e});return e.value}}),m=new l.Ag({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){const t=y(e);if("string"==typeof t)return t;if(Number.isInteger(t))return String(t);throw new o.eO(`ID cannot represent value: ${(0,r.N)(e)}`)},parseValue(e){if("string"==typeof e)return e;if("number"==typeof e&&Number.isInteger(e))return e.toString();throw new o.eO(`ID cannot represent value: ${(0,r.N)(e)}`)},parseLiteral(e){if(e.kind!==a.b.STRING&&e.kind!==a.b.INT)throw new o.eO("ID cannot represent a non-string and non-integer value: "+(0,s.y)(e),{nodes:e});return e.value}}),g=Object.freeze([p,d,f,h,m]);function v(e){return g.some((({name:t})=>e.name===t))}function y(e){if((0,i.Z)(e)){if("function"==typeof e.valueOf){const t=e.valueOf();if(!(0,i.Z)(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}},4078:(e,t,n)=>{n(7801)},4224:(e,t,n)=>{function r(e){return e.map((e=>"number"==typeof e?"["+e.toString()+"]":"."+e)).join("")}n.d(t,{q:()=>r})},4266:(e,t,n)=>{function r(e){const t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...e},n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"",o=t.schemaDescription?n:"";function a(e){return t.inputValueDeprecation?e:""}const s=t.oneOf?"isOneOf":"";return`\n query IntrospectionQuery {\n __schema {\n ${o}\n queryType { name kind }\n mutationType { name kind }\n subscriptionType { name kind }\n types {\n ...FullType\n }\n directives {\n name\n ${n}\n ${i}\n locations\n args${a("(includeDeprecated: true)")} {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ${n}\n ${r}\n ${s}\n fields(includeDeprecated: true) {\n name\n ${n}\n args${a("(includeDeprecated: true)")} {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields${a("(includeDeprecated: true)")} {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ${n}\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ${n}\n type { ...TypeRef }\n defaultValue\n ${a("isDeprecated")}\n ${a("deprecationReason")}\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n `}n.d(t,{I:()=>r})},4279:(e,t,n)=>{function r(e){if(null==e)return Object.create(null);if(null===Object.getPrototypeOf(e))return e;const t=Object.create(null);for(const[n,r]of Object.entries(e))t[n]=r;return t}n.d(t,{z:()=>r})},4428:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(3298);function i(e,t){let n=null;for(const o of e.definitions){var i;if(o.kind===r.b.OPERATION_DEFINITION)if(null==t){if(n)return null;n=o}else if((null===(i=o.name)||void 0===i?void 0:i.value)===t)return o}return n}},4482:(e,t,n)=>{n.r(t),n.d(t,{l:()=>l});var r=n(3338),i=Object.defineProperty,o=(e,t)=>i(e,"name",{value:t,configurable:!0});function a(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}o(a,"_mergeNamespaces");var s={exports:{}};!function(e){var t="CodeMirror-lint-markers";function n(t,n,r){var i=document.createElement("div");function a(t){if(!i.parentNode)return e.off(document,"mousemove",a);i.style.top=Math.max(0,t.clientY-i.offsetHeight-5)+"px",i.style.left=t.clientX+5+"px"}return i.className="CodeMirror-lint-tooltip cm-s-"+t.options.theme,i.appendChild(r.cloneNode(!0)),t.state.lint.options.selfContain?t.getWrapperElement().appendChild(i):document.body.appendChild(i),o(a,"position"),e.on(document,"mousemove",a),a(n),null!=i.style.opacity&&(i.style.opacity=1),i}function r(e){e.parentNode&&e.parentNode.removeChild(e)}function i(e){e.parentNode&&(null==e.style.opacity&&r(e),e.style.opacity=0,setTimeout((function(){r(e)}),600))}function a(t,r,a,s){var l=n(t,r,a);function u(){e.off(s,"mouseout",u),l&&(i(l),l=null)}o(u,"hide");var c=setInterval((function(){if(l)for(var e=s;;e=e.parentNode){if(e&&11==e.nodeType&&(e=e.host),e==document.body)return;if(!e){u();break}}if(!l)return clearInterval(c)}),400);e.on(s,"mouseout",u)}function s(e,t,n){for(var r in this.marked=[],t instanceof Function&&(t={getAnnotations:t}),t&&!0!==t||(t={}),this.options={},this.linterOptions=t.options||{},l)this.options[r]=l[r];for(var r in t)l.hasOwnProperty(r)?null!=t[r]&&(this.options[r]=t[r]):t.options||(this.linterOptions[r]=t[r]);this.timeout=null,this.hasGutter=n,this.onMouseOver=function(t){E(e,t)},this.waitingFor=0}o(n,"showTooltip"),o(r,"rm"),o(i,"hideTooltip"),o(a,"showTooltipFor"),o(s,"LintState");var l={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function u(e){var n=e.state.lint;n.hasGutter&&e.clearGutter(t),n.options.highlightLines&&c(e);for(var r=0;r<n.marked.length;++r)n.marked[r].clear();n.marked.length=0}function c(e){e.eachLine((function(t){var n=t.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(t.wrapClass);n&&e.removeLineClass(t,"wrap",n[0])}))}function d(t,n,r,i,o){var s=document.createElement("div"),l=s;return s.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+r,i&&((l=s.appendChild(document.createElement("div"))).className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),0!=o&&e.on(l,"mouseover",(function(e){a(t,e,n,l)})),s}function f(e,t){return"error"==e?e:t}function p(e){for(var t=[],n=0;n<e.length;++n){var r=e[n],i=r.from.line;(t[i]||(t[i]=[])).push(r)}return t}function h(e){var t=e.severity;t||(t="error");var n=document.createElement("div");return n.className="CodeMirror-lint-message CodeMirror-lint-message-"+t,void 0!==e.messageHTML?n.innerHTML=e.messageHTML:n.appendChild(document.createTextNode(e.message)),n}function m(t,n){var r=t.state.lint,i=++r.waitingFor;function a(){i=-1,t.off("change",a)}o(a,"abort"),t.on("change",a),n(t.getValue(),(function(n,o){t.off("change",a),r.waitingFor==i&&(o&&n instanceof e&&(n=o),t.operation((function(){v(t,n)})))}),r.linterOptions,t)}function g(t){var n=t.state.lint;if(n){var r=n.options,i=r.getAnnotations||t.getHelper(e.Pos(0,0),"lint");if(i)if(r.async||i.async)m(t,i);else{var o=i(t.getValue(),n.linterOptions,t);if(!o)return;o.then?o.then((function(e){t.operation((function(){v(t,e)}))})):t.operation((function(){v(t,o)}))}}}function v(e,n){var r=e.state.lint;if(r){var i=r.options;u(e);for(var o=p(n),a=0;a<o.length;++a){var s=o[a];if(s){var l=[];s=s.filter((function(e){return!(l.indexOf(e.message)>-1)&&l.push(e.message)}));for(var c=null,m=r.hasGutter&&document.createDocumentFragment(),g=0;g<s.length;++g){var v=s[g],y=v.severity;y||(y="error"),c=f(c,y),i.formatAnnotation&&(v=i.formatAnnotation(v)),r.hasGutter&&m.appendChild(h(v)),v.to&&r.marked.push(e.markText(v.from,v.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+y,__annotation:v}))}r.hasGutter&&e.setGutterMarker(a,t,d(e,m,c,o[a].length>1,i.tooltips)),i.highlightLines&&e.addLineClass(a,"wrap","CodeMirror-lint-line-"+c)}}i.onUpdateLinting&&i.onUpdateLinting(n,o,e)}}function y(e){var t=e.state.lint;t&&(clearTimeout(t.timeout),t.timeout=setTimeout((function(){g(e)}),t.options.delay))}function b(e,t,n){for(var r=n.target||n.srcElement,i=document.createDocumentFragment(),o=0;o<t.length;o++){var s=t[o];i.appendChild(h(s))}a(e,n,i,r)}function E(e,t){var n=t.target||t.srcElement;if(/\bCodeMirror-lint-mark-/.test(n.className)){for(var r=n.getBoundingClientRect(),i=(r.left+r.right)/2,o=(r.top+r.bottom)/2,a=e.findMarksAt(e.coordsChar({left:i,top:o},"client")),s=[],l=0;l<a.length;++l){var u=a[l].__annotation;u&&s.push(u)}s.length&&b(e,s,t)}}o(u,"clearMarks"),o(c,"clearErrorLines"),o(d,"makeMarker"),o(f,"getMaxSeverity"),o(p,"groupByLine"),o(h,"annotationTooltip"),o(m,"lintAsync"),o(g,"startLinting"),o(v,"updateLinting"),o(y,"onChange"),o(b,"popupTooltips"),o(E,"onMouseOver"),e.defineOption("lint",!1,(function(n,r,i){if(i&&i!=e.Init&&(u(n),!1!==n.state.lint.options.lintOnChange&&n.off("change",y),e.off(n.getWrapperElement(),"mouseover",n.state.lint.onMouseOver),clearTimeout(n.state.lint.timeout),delete n.state.lint),r){for(var o=n.getOption("gutters"),a=!1,l=0;l<o.length;++l)o[l]==t&&(a=!0);var c=n.state.lint=new s(n,r,a);c.options.lintOnChange&&n.on("change",y),0!=c.options.tooltips&&"gutter"!=c.options.tooltips&&e.on(n.getWrapperElement(),"mouseover",c.onMouseOver),g(n)}})),e.defineExtension("performLint",(function(){g(this)}))}(r.a.exports);var l=a({__proto__:null,default:s.exports},[s.exports])},4601:(e,t,n)=>{n.d(t,{P:()=>a,R:()=>o});var r=Object.defineProperty,i=(e,t)=>r(e,"name",{value:t,configurable:!0});class o{constructor(e,t){this.containsPosition=e=>this.start.line===e.line?this.start.character<=e.character:this.end.line===e.line?this.end.character>=e.character:this.start.line<=e.line&&this.end.line>=e.line,this.start=e,this.end=t}setStart(e,t){this.start=new a(e,t)}setEnd(e,t){this.end=new a(e,t)}}i(o,"Range");class a{constructor(e,t){this.lessThanOrEqualTo=e=>this.line<e.line||this.line===e.line&&this.character<=e.character,this.line=e,this.character=t}setLine(e){this.line=e}setCharacter(e){this.character=e}}i(a,"Position")},4621:(e,t,n)=>{n.d(t,{h:()=>i});var r=n(129);const i=globalThis.process?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;const i=t.prototype[Symbol.toStringTag];if(i===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){const t=(0,r.N)(e);throw new Error(`Cannot use ${i} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1}},4661:(e,t,n)=>{n.d(t,{Jd:()=>l});var r=n(2244),i=n(6540),o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)},a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},s=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};if(parseInt(i.version.slice(0,2),10)<16)throw new Error(["GraphiQL 0.18.0 and after is not compatible with React 15 or below.","If you are using a CDN source (jsdelivr, unpkg, etc), follow this example:","https://github.com/graphql/graphiql/blob/master/examples/graphiql-cdn/index.html#L49"].join("\n"));function l(e){var t=e.dangerouslyAssumeSchemaIsValid,n=e.defaultQuery,s=e.defaultTabs,l=e.externalFragments,u=e.fetcher,d=e.getDefaultFieldNames,f=e.headers,p=e.initialTabs,h=e.inputValueDeprecation,m=e.introspectionQueryName,g=e.maxHistoryLength,v=e.onEditOperationName,y=e.onSchemaChange,b=e.onTabChange,E=e.onTogglePluginVisibility,w=e.operationName,k=e.plugins,T=e.query,x=e.response,C=e.schema,S=e.schemaDescription,N=e.shouldPersistHeaders,_=e.storage,O=e.validationRules,I=e.variables,A=e.visiblePlugin,D=e.defaultHeaders,L=a(e,["dangerouslyAssumeSchemaIsValid","defaultQuery","defaultTabs","externalFragments","fetcher","getDefaultFieldNames","headers","initialTabs","inputValueDeprecation","introspectionQueryName","maxHistoryLength","onEditOperationName","onSchemaChange","onTabChange","onTogglePluginVisibility","operationName","plugins","query","response","schema","schemaDescription","shouldPersistHeaders","storage","validationRules","variables","visiblePlugin","defaultHeaders"]);if("function"!=typeof u)throw new TypeError("The `GraphiQL` component requires a `fetcher` function to be passed as prop.");return i.createElement(r.ql,{getDefaultFieldNames:d,dangerouslyAssumeSchemaIsValid:t,defaultQuery:n,defaultHeaders:D,defaultTabs:s,externalFragments:l,fetcher:u,headers:f,initialTabs:p,inputValueDeprecation:h,introspectionQueryName:m,maxHistoryLength:g,onEditOperationName:v,onSchemaChange:y,onTabChange:b,onTogglePluginVisibility:E,plugins:k,visiblePlugin:A,operationName:w,query:T,response:x,schema:C,schemaDescription:S,shouldPersistHeaders:N,storage:_,validationRules:O,variables:I},i.createElement(c,o({showPersistHeadersSettings:!1!==N},L)))}l.Logo=d,l.Toolbar=f,l.Footer=p;var u="undefined"!=typeof window&&0===window.navigator.platform.toLowerCase().indexOf("mac")?i.createElement("code",{className:"graphiql-key"},"Cmd"):i.createElement("code",{className:"graphiql-key"},"Ctrl");function c(e){var t,n,o,a=null===(t=e.isHeadersEditorEnabled)||void 0===t||t,c=(0,r.mi)({nonNull:!0}),d=(0,r.Vm)({nonNull:!0}),f=(0,r.wQ)({nonNull:!0}),p=(0,r.eK)(),m=(0,r.Q)(),g=(0,r.xb)({onCopyQuery:e.onCopyQuery}),v=(0,r.E5)(),y=(0,r.Ln)(),b=(0,r.DP)(),E=b.theme,w=b.setTheme,k=null===(n=null==m?void 0:m.visiblePlugin)||void 0===n?void 0:n.content,T=(0,r.qf)({defaultSizeRelation:1/3,direction:"horizontal",initiallyHidden:(null==m?void 0:m.visiblePlugin)?void 0:"first",onHiddenElementChange:function(e){"first"===e&&(null==m||m.setVisiblePlugin(null))},sizeThresholdSecond:200,storageKey:"docExplorerFlex"}),x=(0,r.qf)({direction:"horizontal",storageKey:"editorFlex"}),C=(0,r.qf)({defaultSizeRelation:3,direction:"vertical",initiallyHidden:function(){if("variables"!==e.defaultEditorToolsVisibility&&"headers"!==e.defaultEditorToolsVisibility)return"boolean"==typeof e.defaultEditorToolsVisibility?e.defaultEditorToolsVisibility?void 0:"second":c.initialVariables||c.initialHeaders?void 0:"second"}(),sizeThresholdSecond:60,storageKey:"secondaryEditorFlex"}),S=s((0,i.useState)((function(){return"variables"===e.defaultEditorToolsVisibility||"headers"===e.defaultEditorToolsVisibility?e.defaultEditorToolsVisibility:!c.initialVariables&&c.initialHeaders&&a?"headers":"variables"})),2),N=S[0],_=S[1],O=s((0,i.useState)(null),2),I=O[0],A=O[1],D=s((0,i.useState)(null),2),L=D[0],M=D[1],F=i.Children.toArray(e.children),R=F.find((function(e){return h(e,l.Logo)}))||i.createElement(l.Logo,null),P=F.find((function(e){return h(e,l.Toolbar)}))||i.createElement(i.Fragment,null,i.createElement(r.IB,{onClick:y,label:"Prettify query (Shift-Ctrl-P)"},i.createElement(r.RG,{className:"graphiql-toolbar-icon","aria-hidden":"true"})),i.createElement(r.IB,{onClick:v,label:"Merge fragments into query (Shift-Ctrl-M)"},i.createElement(r._1,{className:"graphiql-toolbar-icon","aria-hidden":"true"})),i.createElement(r.IB,{onClick:g,label:"Copy query (Shift-Ctrl-C)"},i.createElement(r.Td,{className:"graphiql-toolbar-icon","aria-hidden":"true"})),(null===(o=e.toolbar)||void 0===o?void 0:o.additionalContent)||null),j=F.find((function(e){return h(e,l.Footer)})),V=(0,i.useCallback)((function(){"first"===T.hiddenElement&&T.setHiddenElement(null)}),[T]),U=(0,i.useCallback)((function(){try{null==p||p.clear(),M("success")}catch(e){M("error")}}),[p]),B=(0,i.useCallback)((function(e){c.setShouldPersistHeaders("true"===e.currentTarget.dataset.value)}),[c]),$=(0,i.useCallback)((function(e){var t=e.currentTarget.dataset.theme;w(t||null)}),[w]),q=c.addTab,H=f.introspect,z=(0,i.useCallback)((function(e){A(e.currentTarget.dataset.value)}),[]),G=(0,i.useCallback)((function(e){var t=m,n=Number(e.currentTarget.dataset.index),r=t.plugins.find((function(e,t){return n===t}));r===t.visiblePlugin?(t.setVisiblePlugin(null),T.setHiddenElement("first")):(t.setVisiblePlugin(r),T.setHiddenElement(null))}),[m,T]),W=(0,i.useCallback)((function(){"second"===C.hiddenElement&&C.setHiddenElement(null),_("variables")}),[C]),Y=(0,i.useCallback)((function(){"second"===C.hiddenElement&&C.setHiddenElement(null),_("headers")}),[C]),K=(0,i.useCallback)((function(){C.setHiddenElement("second"===C.hiddenElement?null:"second")}),[C]),Q=(0,i.useCallback)((function(){A(null)}),[]),J=(0,i.useCallback)((function(){A(null),M(null)}),[]);return i.createElement("div",{"data-testid":"graphiql-container",className:"graphiql-container"},i.createElement("div",{className:"graphiql-sidebar"},i.createElement("div",{className:"graphiql-sidebar-section"},null==m?void 0:m.plugins.map((function(e,t){var n=e===m.visiblePlugin,o="".concat(n?"Hide":"Show"," ").concat(e.title),a=e.icon;return i.createElement(r.m_,{key:e.title,label:o},i.createElement(r.N8,{type:"button",className:n?"active":"",onClick:G,"data-index":t,"aria-label":o},i.createElement(a,{"aria-hidden":"true"})))}))),i.createElement("div",{className:"graphiql-sidebar-section"},i.createElement(r.m_,{label:"Re-fetch GraphQL schema"},i.createElement(r.N8,{type:"button",disabled:f.isFetching,onClick:H,"aria-label":"Re-fetch GraphQL schema"},i.createElement(r.jf,{className:f.isFetching?"graphiql-spin":"","aria-hidden":"true"}))),i.createElement(r.m_,{label:"Open short keys dialog"},i.createElement(r.N8,{type:"button","data-value":"short-keys",onClick:z,"aria-label":"Open short keys dialog"},i.createElement(r.re,{"aria-hidden":"true"}))),i.createElement(r.m_,{label:"Open settings dialog"},i.createElement(r.N8,{type:"button","data-value":"settings",onClick:z,"aria-label":"Open settings dialog"},i.createElement(r.Ze,{"aria-hidden":"true"}))))),i.createElement("div",{className:"graphiql-main"},i.createElement("div",{ref:T.firstRef,style:{minWidth:"200px"}},i.createElement("div",{className:"graphiql-plugin"},k?i.createElement(k,null):null)),i.createElement("div",{ref:T.dragBarRef},(null==m?void 0:m.visiblePlugin)?i.createElement("div",{className:"graphiql-horizontal-drag-bar"}):null),i.createElement("div",{ref:T.secondRef,style:{minWidth:0}},i.createElement("div",{className:"graphiql-sessions"},i.createElement("div",{className:"graphiql-session-header"},i.createElement(r.tU,{"aria-label":"Select active operation"},c.tabs.length>1?i.createElement(i.Fragment,null,c.tabs.map((function(e,t){return i.createElement(r.oz,{key:e.id,isActive:t===c.activeTabIndex},i.createElement(r.oz.Button,{"aria-controls":"graphiql-session",id:"graphiql-session-tab-".concat(t),onClick:function(){d.stop(),c.changeTab(t)}},e.title),i.createElement(r.oz.Close,{onClick:function(){c.activeTabIndex===t&&d.stop(),c.closeTab(t)}}))})),i.createElement("div",null,i.createElement(r.m_,{label:"Add tab"},i.createElement(r.N8,{type:"button",className:"graphiql-tab-add",onClick:q,"aria-label":"Add tab"},i.createElement(r.c1,{"aria-hidden":"true"}))))):null),i.createElement("div",{className:"graphiql-session-header-right"},1===c.tabs.length?i.createElement("div",{className:"graphiql-add-tab-wrapper"},i.createElement(r.m_,{label:"Add tab"},i.createElement(r.N8,{type:"button",className:"graphiql-tab-add",onClick:q,"aria-label":"Add tab"},i.createElement(r.c1,{"aria-hidden":"true"})))):null,R)),i.createElement("div",{role:"tabpanel",id:"graphiql-session",className:"graphiql-session","aria-labelledby":"graphiql-session-tab-".concat(c.activeTabIndex)},i.createElement("div",{ref:x.firstRef},i.createElement("div",{className:"graphiql-editors".concat(1===c.tabs.length?" full-height":"")},i.createElement("div",{ref:C.firstRef},i.createElement("section",{className:"graphiql-query-editor","aria-label":"Query Editor"},i.createElement("div",{className:"graphiql-query-editor-wrapper"},i.createElement(r.wY,{editorTheme:e.editorTheme,keyMap:e.keyMap,onClickReference:V,onCopyQuery:e.onCopyQuery,onEdit:e.onEditQuery,readOnly:e.readOnly})),i.createElement("div",{className:"graphiql-toolbar",role:"toolbar","aria-label":"Editor Commands"},i.createElement(r.cl,null),P))),i.createElement("div",{ref:C.dragBarRef},i.createElement("div",{className:"graphiql-editor-tools"},i.createElement("div",{className:"graphiql-editor-tools-tabs"},i.createElement(r.N8,{type:"button",className:"variables"===N&&"second"!==C.hiddenElement?"active":"",onClick:W},"Variables"),a?i.createElement(r.N8,{type:"button",className:"headers"===N&&"second"!==C.hiddenElement?"active":"",onClick:Y},"Headers"):null),i.createElement(r.m_,{label:"second"===C.hiddenElement?"Show editor tools":"Hide editor tools"},i.createElement(r.N8,{type:"button",onClick:K,"aria-label":"second"===C.hiddenElement?"Show editor tools":"Hide editor tools"},"second"===C.hiddenElement?i.createElement(r.Mt,{className:"graphiql-chevron-icon","aria-hidden":"true"}):i.createElement(r.D3,{className:"graphiql-chevron-icon","aria-hidden":"true"}))))),i.createElement("div",{ref:C.secondRef},i.createElement("section",{className:"graphiql-editor-tool","aria-label":"variables"===N?"Variables":"Headers"},i.createElement(r.G0,{editorTheme:e.editorTheme,isHidden:"variables"!==N,keyMap:e.keyMap,onEdit:e.onEditVariables,onClickReference:V,readOnly:e.readOnly}),a&&i.createElement(r.B4,{editorTheme:e.editorTheme,isHidden:"headers"!==N,keyMap:e.keyMap,onEdit:e.onEditHeaders,readOnly:e.readOnly}))))),i.createElement("div",{ref:x.dragBarRef},i.createElement("div",{className:"graphiql-horizontal-drag-bar"})),i.createElement("div",{ref:x.secondRef},i.createElement("div",{className:"graphiql-response"},d.isFetching?i.createElement(r.y$,null):null,i.createElement(r.ny,{editorTheme:e.editorTheme,responseTooltip:e.responseTooltip,keyMap:e.keyMap}),j)))))),i.createElement(r.lG,{isOpen:"short-keys"===I,onDismiss:Q},i.createElement("div",{className:"graphiql-dialog-header"},i.createElement("div",{className:"graphiql-dialog-title"},"Short Keys"),i.createElement(r.lG.Close,{onClick:Q})),i.createElement("div",{className:"graphiql-dialog-section"},i.createElement("div",null,i.createElement("table",{className:"graphiql-table"},i.createElement("thead",null,i.createElement("tr",null,i.createElement("th",null,"Short key"),i.createElement("th",null,"Function"))),i.createElement("tbody",null,i.createElement("tr",null,i.createElement("td",null,u," + ",i.createElement("code",{className:"graphiql-key"},"F")),i.createElement("td",null,"Search in editor")),i.createElement("tr",null,i.createElement("td",null,u," + ",i.createElement("code",{className:"graphiql-key"},"K")),i.createElement("td",null,"Search in documentation")),i.createElement("tr",null,i.createElement("td",null,u," + ",i.createElement("code",{className:"graphiql-key"},"Enter")),i.createElement("td",null,"Execute query")),i.createElement("tr",null,i.createElement("td",null,i.createElement("code",{className:"graphiql-key"},"Ctrl")," + ",i.createElement("code",{className:"graphiql-key"},"Shift")," + ",i.createElement("code",{className:"graphiql-key"},"P")),i.createElement("td",null,"Prettify editors")),i.createElement("tr",null,i.createElement("td",null,i.createElement("code",{className:"graphiql-key"},"Ctrl")," + ",i.createElement("code",{className:"graphiql-key"},"Shift")," + ",i.createElement("code",{className:"graphiql-key"},"M")),i.createElement("td",null,"Merge fragments definitions into operation definition")),i.createElement("tr",null,i.createElement("td",null,i.createElement("code",{className:"graphiql-key"},"Ctrl")," + ",i.createElement("code",{className:"graphiql-key"},"Shift")," + ",i.createElement("code",{className:"graphiql-key"},"C")),i.createElement("td",null,"Copy query")),i.createElement("tr",null,i.createElement("td",null,i.createElement("code",{className:"graphiql-key"},"Ctrl")," + ",i.createElement("code",{className:"graphiql-key"},"Shift")," + ",i.createElement("code",{className:"graphiql-key"},"R")),i.createElement("td",null,"Re-fetch schema using introspection")))),i.createElement("p",null,"The editors use"," ",i.createElement("a",{href:"https://codemirror.net/5/doc/manual.html#keymaps",target:"_blank",rel:"noopener noreferrer"},"CodeMirror Key Maps")," ","that add more short keys. This instance of Graph",i.createElement("em",null,"i"),"QL uses"," ",i.createElement("code",null,e.keyMap||"sublime"),".")))),i.createElement(r.lG,{isOpen:"settings"===I,onDismiss:J},i.createElement("div",{className:"graphiql-dialog-header"},i.createElement("div",{className:"graphiql-dialog-title"},"Settings"),i.createElement(r.lG.Close,{onClick:J})),e.showPersistHeadersSettings?i.createElement("div",{className:"graphiql-dialog-section"},i.createElement("div",null,i.createElement("div",{className:"graphiql-dialog-section-title"},"Persist headers"),i.createElement("div",{className:"graphiql-dialog-section-caption"},"Save headers upon reloading."," ",i.createElement("span",{className:"graphiql-warning-text"},"Only enable if you trust this device."))),i.createElement(r.e2,null,i.createElement(r.$n,{type:"button",id:"enable-persist-headers",className:c.shouldPersistHeaders?"active":"","data-value":"true",onClick:B},"On"),i.createElement(r.$n,{type:"button",id:"disable-persist-headers",className:c.shouldPersistHeaders?"":"active",onClick:B},"Off"))):null,i.createElement("div",{className:"graphiql-dialog-section"},i.createElement("div",null,i.createElement("div",{className:"graphiql-dialog-section-title"},"Theme"),i.createElement("div",{className:"graphiql-dialog-section-caption"},"Adjust how the interface looks like.")),i.createElement("div",null,i.createElement(r.e2,null,i.createElement(r.$n,{type:"button",className:null===E?"active":"",onClick:$},"System"),i.createElement(r.$n,{type:"button",className:"light"===E?"active":"","data-theme":"light",onClick:$},"Light"),i.createElement(r.$n,{type:"button",className:"dark"===E?"active":"","data-theme":"dark",onClick:$},"Dark")))),p?i.createElement("div",{className:"graphiql-dialog-section"},i.createElement("div",null,i.createElement("div",{className:"graphiql-dialog-section-title"},"Clear storage"),i.createElement("div",{className:"graphiql-dialog-section-caption"},"Remove all locally stored data and start fresh.")),i.createElement("div",null,i.createElement(r.$n,{type:"button",state:L||void 0,disabled:"success"===L,onClick:U},"success"===L?"Cleared data":"error"===L?"Failed":"Clear data"))):null))}function d(e){return i.createElement("div",{className:"graphiql-logo"},e.children||i.createElement("a",{className:"graphiql-logo-link",href:"https://github.com/graphql/graphiql",target:"_blank",rel:"noreferrer"},"Graph",i.createElement("em",null,"i"),"QL"))}function f(e){return i.createElement(i.Fragment,null,e.children)}function p(e){return i.createElement("div",{className:"graphiql-footer"},e.children)}function h(e,t){var n;return!(!(null===(n=null==e?void 0:e.type)||void 0===n?void 0:n.displayName)||e.type.displayName!==t.displayName)||e.type===t}d.displayName="GraphiQLLogo",f.displayName="GraphiQLToolbar",p.displayName="GraphiQLFooter"},4705:(e,t,n)=>{n.d(t,{UY:()=>d,XO:()=>c,YR:()=>l,oP:()=>u,sP:()=>s});var r=n(6286),i=n(129),o=n(475),a=n(3298);const s=Object.freeze({});function l(e,t,n=o.aD){const l=new Map;for(const e of Object.values(a.b))l.set(e,c(t,e));let u,d,f,p=Array.isArray(e),h=[e],m=-1,g=[],v=e;const y=[],b=[];do{m++;const e=m===h.length,a=e&&0!==g.length;if(e){if(d=0===b.length?void 0:y[y.length-1],v=f,f=b.pop(),a)if(p){v=v.slice();let e=0;for(const[t,n]of g){const r=t-e;null===n?(v.splice(r,1),e++):v[r]=n}}else{v=Object.defineProperties({},Object.getOwnPropertyDescriptors(v));for(const[e,t]of g)v[e]=t}m=u.index,h=u.keys,g=u.edits,p=u.inArray,u=u.prev}else if(f){if(d=p?m:h[m],v=f[d],null==v)continue;y.push(d)}let c;if(!Array.isArray(v)){var E,w;(0,o.Ll)(v)||(0,r.U)(!1,`Invalid AST Node: ${(0,i.N)(v)}.`);const n=e?null===(E=l.get(v.kind))||void 0===E?void 0:E.leave:null===(w=l.get(v.kind))||void 0===w?void 0:w.enter;if(c=null==n?void 0:n.call(t,v,d,f,y,b),c===s)break;if(!1===c){if(!e){y.pop();continue}}else if(void 0!==c&&(g.push([d,c]),!e)){if(!(0,o.Ll)(c)){y.pop();continue}v=c}}var k;void 0===c&&a&&g.push([d,v]),e?y.pop():(u={inArray:p,index:m,keys:h,edits:g,prev:u},p=Array.isArray(v),h=p?v:null!==(k=n[v.kind])&&void 0!==k?k:[],m=-1,g=[],f&&b.push(f),f=v)}while(void 0!==u);return 0!==g.length?g[g.length-1][1]:e}function u(e){const t=new Array(e.length).fill(null),n=Object.create(null);for(const r of Object.values(a.b)){let i=!1;const o=new Array(e.length).fill(void 0),a=new Array(e.length).fill(void 0);for(let t=0;t<e.length;++t){const{enter:n,leave:s}=c(e[t],r);i||(i=null!=n||null!=s),o[t]=n,a[t]=s}if(!i)continue;const l={enter(...n){const r=n[0];for(let a=0;a<e.length;a++)if(null===t[a]){var i;const l=null===(i=o[a])||void 0===i?void 0:i.apply(e[a],n);if(!1===l)t[a]=r;else if(l===s)t[a]=s;else if(void 0!==l)return l}},leave(...n){const r=n[0];for(let o=0;o<e.length;o++)if(null===t[o]){var i;const r=null===(i=a[o])||void 0===i?void 0:i.apply(e[o],n);if(r===s)t[o]=s;else if(void 0!==r&&!1!==r)return r}else t[o]===r&&(t[o]=null)}};n[r]=l}return n}function c(e,t){const n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function d(e,t,n){const{enter:r,leave:i}=c(e,t);return n?i:r}},4786:(e,t,n)=>{n.d(t,{Wk:()=>u,eO:()=>a,yJ:()=>l});var r=n(2475),i=n(8160),o=n(3143);class a extends Error{constructor(e,...t){var n,o,l;const{nodes:u,source:c,positions:d,path:f,originalError:p,extensions:h}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=f?f:void 0,this.originalError=null!=p?p:void 0,this.nodes=s(Array.isArray(u)?u:u?[u]:void 0);const m=s(null===(n=this.nodes)||void 0===n?void 0:n.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=c?c:null==m||null===(o=m[0])||void 0===o?void 0:o.source,this.positions=null!=d?d:null==m?void 0:m.map((e=>e.start)),this.locations=d&&c?d.map((e=>(0,i.g)(c,e))):null==m?void 0:m.map((e=>(0,i.g)(e.source,e.start)));const g=(0,r.Z)(null==p?void 0:p.extensions)?null==p?void 0:p.extensions:void 0;this.extensions=null!==(l=null!=h?h:g)&&void 0!==l?l:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=p&&p.stack?Object.defineProperty(this,"stack",{value:p.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,a):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+(0,o.V)(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+(0,o.C)(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function s(e){return void 0===e||0===e.length?void 0:e}function l(e){return e.toString()}function u(e){return e.toJSON()}},4789:(e,t,n)=>{function r(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function i(e){return"object"===r(e)}function o(e){return i(e)&&"function"==typeof Object(e)[Symbol.asyncIterator]&&"function"==typeof e.return}function a(e){return Array.isArray(e)&&e.length>0&&e.every((e=>"message"in e))}function s(e,t){return e.length<124?e:t}n.r(t),n.d(t,{CloseCode:()=>c,DEPRECATED_GRAPHQL_WS_PROTOCOL:()=>u,GRAPHQL_TRANSPORT_WS_PROTOCOL:()=>l,MessageType:()=>d,createClient:()=>g,handleProtocols:()=>S,isMessage:()=>p,makeServer:()=>C,parseMessage:()=>h,stringifyMessage:()=>m,validateMessage:()=>f});const l="graphql-transport-ws",u="graphql-ws";var c,d;function f(e){if(!i(e))throw new Error(`Message is expected to be an object, but got ${r(e)}`);if(!e.type)throw new Error("Message is missing the 'type' property");if("string"!=typeof e.type)throw new Error(`Message is expects the 'type' property to be a string, but got ${r(e.type)}`);switch(e.type){case d.ConnectionInit:case d.ConnectionAck:case d.Ping:case d.Pong:if(null!=e.payload&&!i(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break;case d.Subscribe:if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${r(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!i(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${r(e.payload)}`);if("string"!=typeof e.payload.query)throw new Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${r(e.payload.query)}`);if(null!=e.payload.variables&&!i(e.payload.variables))throw new Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${r(e.payload.variables)}`);if(null!=e.payload.operationName&&"string"!==r(e.payload.operationName))throw new Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${r(e.payload.operationName)}`);if(null!=e.payload.extensions&&!i(e.payload.extensions))throw new Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${r(e.payload.extensions)}`);break;case d.Next:if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${r(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!i(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${r(e.payload)}`);break;case d.Error:if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${r(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!a(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break;case d.Complete:if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${r(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);break;default:throw new Error(`Invalid message 'type' property "${e.type}"`)}return e}function p(e){try{return f(e),!0}catch(e){return!1}}function h(e,t){return f("string"==typeof e?JSON.parse(e,t):e)}function m(e,t){return f(e),JSON.stringify(e,t)}function g(e){const{url:t,connectionParams:n,lazy:r=!0,onNonLazyError:i=console.error,lazyCloseTimeout:o=0,keepAlive:a=0,disablePong:u,connectionAckWaitTimeout:f=0,retryAttempts:p=5,retryWait:g=async function(e){let t=1e3;for(let n=0;n<e;n++)t*=2;await new Promise((e=>setTimeout(e,t+Math.floor(2700*Math.random()+300))))},shouldRetry:y=v,isFatalConnectionProblem:b,on:E,webSocketImpl:w,generateID:k=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))},jsonMessageReplacer:T,jsonMessageReviver:x}=e;let C;if(w){if(!("function"==typeof(S=w)&&"constructor"in S&&"CLOSED"in S&&"CLOSING"in S&&"CONNECTING"in S&&"OPEN"in S))throw new Error("Invalid WebSocket implementation provided");C=w}else"undefined"!=typeof WebSocket?C=WebSocket:"undefined"!=typeof global?C=global.WebSocket||global.MozWebSocket:"undefined"!=typeof window&&(C=window.WebSocket||window.MozWebSocket);var S;if(!C)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const N=C,_=(()=>{const e=(()=>{const e={};return{on:(t,n)=>(e[t]=n,()=>{delete e[t]}),emit(t){var n;"id"in t&&(null===(n=e[t.id])||void 0===n||n.call(e,t))}}})(),t={connecting:(null==E?void 0:E.connecting)?[E.connecting]:[],opened:(null==E?void 0:E.opened)?[E.opened]:[],connected:(null==E?void 0:E.connected)?[E.connected]:[],ping:(null==E?void 0:E.ping)?[E.ping]:[],pong:(null==E?void 0:E.pong)?[E.pong]:[],message:(null==E?void 0:E.message)?[e.emit,E.message]:[e.emit],closed:(null==E?void 0:E.closed)?[E.closed]:[],error:(null==E?void 0:E.error)?[E.error]:[]};return{onMessage:e.on,on(e,n){const r=t[e];return r.push(n),()=>{r.splice(r.indexOf(n),1)}},emit(e,...n){for(const r of[...t[e]])r(...n)}}})();function O(e){const t=[_.on("error",(n=>{t.forEach((e=>e())),e(n)})),_.on("closed",(n=>{t.forEach((e=>e())),e(n)}))]}let I,A,D=0,L=!1,M=0,F=!1;async function R(){clearTimeout(A);const[e,r]=await(null!=I?I:I=new Promise(((e,r)=>(async()=>{if(L){if(await g(M),!D)return I=void 0,r({code:1e3,reason:"All Subscriptions Gone"});M++}_.emit("connecting");const i=new N("function"==typeof t?await t():t,l);let o,p;function y(){isFinite(a)&&a>0&&(clearTimeout(p),p=setTimeout((()=>{i.readyState===N.OPEN&&(i.send(m({type:d.Ping})),_.emit("ping",!1,void 0))}),a))}O((e=>{I=void 0,clearTimeout(o),clearTimeout(p),r(e),v(e)&&4499===e.code&&(i.close(4499,"Terminated"),i.onerror=null,i.onclose=null)})),i.onerror=e=>_.emit("error",e),i.onclose=e=>_.emit("closed",e),i.onopen=async()=>{try{_.emit("opened",i);const e="function"==typeof n?await n():n;if(i.readyState!==N.OPEN)return;i.send(m(e?{type:d.ConnectionInit,payload:e}:{type:d.ConnectionInit},T)),isFinite(f)&&f>0&&(o=setTimeout((()=>{i.close(c.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")}),f)),y()}catch(e){_.emit("error",e),i.close(c.InternalClientError,s(e instanceof Error?e.message:new Error(e).message,"Internal client error"))}};let b=!1;i.onmessage=({data:t})=>{try{const n=h(t,x);if(_.emit("message",n),"ping"===n.type||"pong"===n.type)return _.emit(n.type,!0,n.payload),void("pong"===n.type?y():u||(i.send(m(n.payload?{type:d.Pong,payload:n.payload}:{type:d.Pong})),_.emit("pong",!1,n.payload)));if(b)return;if(n.type!==d.ConnectionAck)throw new Error(`First message cannot be of type ${n.type}`);clearTimeout(o),b=!0,_.emit("connected",i,n.payload),L=!1,M=0,e([i,new Promise(((e,t)=>O(t)))])}catch(e){i.onmessage=null,_.emit("error",e),i.close(c.BadResponse,s(e instanceof Error?e.message:new Error(e).message,"Bad response"))}}})())));e.readyState===N.CLOSING&&await r;let i=()=>{};const p=new Promise((e=>i=e));return[e,i,Promise.race([p.then((()=>{if(!D){const t=()=>e.close(1e3,"Normal Closure");isFinite(o)&&o>0?A=setTimeout((()=>{e.readyState===N.OPEN&&t()}),o):t()}})),r])]}function P(e){if(v(e)&&(t=e.code,![1e3,1001,1006,1005,1012,1013,1013].includes(t)&&t>=1e3&&t<=1999||[c.InternalServerError,c.InternalClientError,c.BadRequest,c.BadResponse,c.Unauthorized,c.SubprotocolNotAcceptable,c.SubscriberAlreadyExists,c.TooManyInitialisationRequests].includes(e.code)))throw e;var t;if(F)return!1;if(v(e)&&1e3===e.code)return D>0;if(!p||M>=p)throw e;if(!y(e))throw e;if(null==b?void 0:b(e))throw e;return L=!0}return r||(async()=>{for(D++;;)try{const[,,e]=await R();await e}catch(e){try{if(!P(e))return}catch(e){return null==i?void 0:i(e)}}})(),{on:_.on,subscribe(e,t){const n=k(e);let r=!1,i=!1,o=()=>{D--,r=!0};return(async()=>{for(D++;;)try{const[a,s,l]=await R();if(r)return s();const u=_.onMessage(n,(e=>{switch(e.type){case d.Next:return void t.next(e.payload);case d.Error:return i=!0,r=!0,t.error(e.payload),void o();case d.Complete:return r=!0,void o()}}));return a.send(m({id:n,type:d.Subscribe,payload:e},T)),o=()=>{r||a.readyState!==N.OPEN||a.send(m({id:n,type:d.Complete},T)),D--,r=!0,s()},void await l.finally(u)}catch(e){if(!P(e))return}})().then((()=>{i||t.complete()})).catch((e=>{t.error(e)})),()=>{r||o()}},async dispose(){if(F=!0,I){const[e]=await I;e.close(1e3,"Normal Closure")}},terminate(){I&&_.emit("closed",{code:4499,reason:"Terminated",wasClean:!1})}}}function v(e){return i(e)&&"code"in e&&"reason"in e}!function(e){e[e.InternalServerError=4500]="InternalServerError",e[e.InternalClientError=4005]="InternalClientError",e[e.BadRequest=4400]="BadRequest",e[e.BadResponse=4004]="BadResponse",e[e.Unauthorized=4401]="Unauthorized",e[e.Forbidden=4403]="Forbidden",e[e.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",e[e.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",e[e.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",e[e.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",e[e.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests"}(c||(c={})),function(e){e.ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete"}(d||(d={}));var y=n(9004),b=n(9398),E=n(4428),w=n(4786),k=n(9761),T=n(8467),x=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}};function C(e){const{schema:t,context:n,roots:r,validate:s,execute:u,subscribe:f,connectionInitWaitTimeout:p=3e3,onConnect:g,onDisconnect:v,onClose:C,onSubscribe:S,onOperation:N,onNext:_,onError:O,onComplete:I,jsonMessageReviver:A,jsonMessageReplacer:D}=e;return{opened(e,L){const M={connectionInitReceived:!1,acknowledged:!1,subscriptions:{},extra:L};if(e.protocol!==l)return e.close(c.SubprotocolNotAcceptable,"Subprotocol not acceptable"),async(e,t)=>{await(null==C?void 0:C(M,e,t))};const F=p>0&&isFinite(p)?setTimeout((()=>{M.connectionInitReceived||e.close(c.ConnectionInitialisationTimeout,"Connection initialisation timeout")}),p):null;return e.onMessage((async function(l){var p,v,C,L,F;let R;try{R=h(l,A)}catch(t){return e.close(c.BadRequest,"Invalid message received")}switch(R.type){case d.ConnectionInit:{if(M.connectionInitReceived)return e.close(c.TooManyInitialisationRequests,"Too many initialisation requests");M.connectionInitReceived=!0,i(R.payload)&&(M.connectionParams=R.payload);const t=await(null==g?void 0:g(M));return!1===t?e.close(c.Forbidden,"Forbidden"):(await e.send(m(i(t)?{type:d.ConnectionAck,payload:t}:{type:d.ConnectionAck},D)),void(M.acknowledged=!0))}case d.Ping:return e.onPing?await e.onPing(R.payload):void await e.send(m(R.payload?{type:d.Pong,payload:R.payload}:{type:d.Pong}));case d.Pong:return await(null===(F=e.onPong)||void 0===F?void 0:F.call(e,R.payload));case d.Subscribe:{if(!M.acknowledged)return e.close(c.Unauthorized,"Unauthorized");const{id:i,payload:l}=R;if(i in M.subscriptions)return e.close(c.SubscriberAlreadyExists,`Subscriber for ${i} already exists`);M.subscriptions[i]=null;const h={next:async(t,n)=>{let r={id:i,type:d.Next,payload:t};const o=await(null==_?void 0:_(M,r,n,t));o&&(r=Object.assign(Object.assign({},r),{payload:o})),await e.send(m(r,D))},error:async t=>{let n={id:i,type:d.Error,payload:t};const r=await(null==O?void 0:O(M,n,t));r&&(n=Object.assign(Object.assign({},n),{payload:r})),await e.send(m(n,D))},complete:async t=>{const n={id:i,type:d.Complete};await(null==I?void 0:I(M,n)),t&&await e.send(m(n,D))}};try{let e;const c=await(null==S?void 0:S(M,R));if(c){if(a(c))return await h.error(c);if(Array.isArray(c))throw new Error("Invalid return value from onSubscribe hook, expected an array of GraphQLError objects");e=c}else{if(!t)throw new Error("The GraphQL schema is not provided");const n={operationName:l.operationName,document:(0,y.qg)(l.query),variableValues:l.variables};e=Object.assign(Object.assign({},n),{schema:"function"==typeof t?await t(M,R,n):t});const r=(null!=s?s:b.tf)(e.schema,e.document);if(r.length>0)return await h.error(r)}const d=(0,E.A)(e.document,e.operationName);if(!d)return await h.error([new w.eO("Unable to identify operation")]);let m;"rootValue"in e||(e.rootValue=null==r?void 0:r[d.operation]),"contextValue"in e||(e.contextValue="function"==typeof n?await n(M,R,e):n),m="subscription"===d.operation?await(null!=f?f:k.B)(e):await(null!=u?u:T.g7)(e);const g=await(null==N?void 0:N(M,R,e,m));if(g&&(m=g),"function"==typeof Object(m)[Symbol.asyncIterator])if(i in M.subscriptions){M.subscriptions[i]=m;try{for(var P,j=!0,V=x(m);!(p=(P=await V.next()).done);){L=P.value,j=!1;try{const t=L;await h.next(t,e)}finally{j=!0}}}catch(e){v={error:e}}finally{try{j||p||!(C=V.return)||await C.call(V)}finally{if(v)throw v.error}}}else o(m)&&m.return(void 0);else i in M.subscriptions&&await h.next(m,e);await h.complete(i in M.subscriptions)}finally{delete M.subscriptions[i]}return}case d.Complete:{const e=M.subscriptions[R.id];return delete M.subscriptions[R.id],void(o(e)&&await e.return(void 0))}default:throw new Error(`Unexpected message of type ${R.type} received`)}})),async(e,t)=>{F&&clearTimeout(F);for(const e of Object.values(M.subscriptions))o(e)&&await e.return(void 0);M.acknowledged&&await(null==v?void 0:v(M,e,t)),await(null==C?void 0:C(M,e,t))}}}}function S(e){switch(!0){case e instanceof Set&&e.has(l):case Array.isArray(e)&&e.includes(l):case"string"==typeof e&&e.split(",").map((e=>e.trim())).includes(l):return l;default:return!1}}},4803:(e,t,n)=>{n.d(t,{IA:()=>h,VE:()=>p,YY:()=>m});var r=n(129),i=n(2242),o=n(4224),a=n(4786),s=n(3298),l=n(6547),u=n(7167),c=n(7915),d=n(9581),f=n(726);function p(e,t,n,i){const s=[],p=null==i?void 0:i.maxErrors;try{const i=function(e,t,n,i){const s={};for(const p of t){const t=p.variable.name.value,h=(0,d.v)(e,p.type);if(!(0,u.dX)(h)){const e=(0,l.y)(p.type);i(new a.eO(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,{nodes:p.type}));continue}if(!g(n,t)){if(p.defaultValue)s[t]=(0,f.i)(p.defaultValue,h);else if((0,u.bd)(h)){const e=(0,r.N)(h);i(new a.eO(`Variable "$${t}" of required type "${e}" was not provided.`,{nodes:p}))}continue}const m=n[t];if(null===m&&(0,u.bd)(h)){const e=(0,r.N)(h);i(new a.eO(`Variable "$${t}" of non-null type "${e}" must not be null.`,{nodes:p}))}else s[t]=(0,c.v)(m,h,((e,n,s)=>{let l=`Variable "$${t}" got invalid value `+(0,r.N)(n);e.length>0&&(l+=` at "${t}${(0,o.q)(e)}"`),i(new a.eO(l+"; "+s.message,{nodes:p,originalError:s}))}))}return s}(e,t,n,(e=>{if(null!=p&&s.length>=p)throw new a.eO("Too many errors processing variables, error limit reached. Execution aborted.");s.push(e)}));if(0===s.length)return{coerced:i}}catch(e){s.push(e)}return{errors:s}}function h(e,t,n){var o;const c={},d=null!==(o=t.arguments)&&void 0!==o?o:[],p=(0,i.K)(d,(e=>e.name.value));for(const i of e.args){const e=i.name,o=i.type,d=p[e];if(!d){if(void 0!==i.defaultValue)c[e]=i.defaultValue;else if((0,u.bd)(o))throw new a.eO(`Argument "${e}" of required type "${(0,r.N)(o)}" was not provided.`,{nodes:t});continue}const h=d.value;let m=h.kind===s.b.NULL;if(h.kind===s.b.VARIABLE){const t=h.name.value;if(null==n||!g(n,t)){if(void 0!==i.defaultValue)c[e]=i.defaultValue;else if((0,u.bd)(o))throw new a.eO(`Argument "${e}" of required type "${(0,r.N)(o)}" was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:h});continue}m=null==n[t]}if(m&&(0,u.bd)(o))throw new a.eO(`Argument "${e}" of non-null type "${(0,r.N)(o)}" must not be null.`,{nodes:h});const v=(0,f.i)(h,o,n);if(void 0===v)throw new a.eO(`Argument "${e}" has invalid value ${(0,l.y)(h)}.`,{nodes:h});c[e]=v}return c}function m(e,t,n){var r;const i=null===(r=t.directives)||void 0===r?void 0:r.find((t=>t.name.value===e.name));if(i)return h(e,i,n)}function g(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},4848:(e,t,n)=>{e.exports=n(1020)},4950:(e,t,n)=>{function r(e,t){const n=Object.create(null);for(const r of Object.keys(e))n[r]=t(e[r],r);return n}n.d(t,{I:()=>r})},4954:(e,t,n)=>{n.d(t,{_:()=>s,k:()=>a});var r=n(6286),i=n(129),o=n(4621);class a{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||(0,r.U)(!1,`Body must be a string. Received: ${(0,i.N)(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||(0,r.U)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,r.U)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function s(e){return(0,o.h)(e,a)}},5009:(e,t,n)=>{n.d(t,{J:()=>l,Z:()=>u});var r=n(9738),i=n(475),o=n(5995),a=n(9646),s=n(590);class l{constructor(e){const t=new i.ou(s.Y.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==s.Y.EOF)do{if(e.next)e=e.next;else{const t=g(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===s.Y.COMMENT);return e}}function u(e){return e===s.Y.BANG||e===s.Y.DOLLAR||e===s.Y.AMP||e===s.Y.PAREN_L||e===s.Y.PAREN_R||e===s.Y.SPREAD||e===s.Y.COLON||e===s.Y.EQUALS||e===s.Y.AT||e===s.Y.BRACKET_L||e===s.Y.BRACKET_R||e===s.Y.BRACE_L||e===s.Y.PIPE||e===s.Y.BRACE_R}function c(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function d(e,t){return f(e.charCodeAt(t))&&p(e.charCodeAt(t+1))}function f(e){return e>=55296&&e<=56319}function p(e){return e>=56320&&e<=57343}function h(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return s.Y.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function m(e,t,n,r,o){const a=e.line,s=1+n-e.lineStart;return new i.ou(t,n,r,a,s,o)}function g(e,t){const n=e.source.body,i=n.length;let o=t;for(;o<i;){const t=n.charCodeAt(o);switch(t){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===n.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 35:return v(e,o);case 33:return m(e,s.Y.BANG,o,o+1);case 36:return m(e,s.Y.DOLLAR,o,o+1);case 38:return m(e,s.Y.AMP,o,o+1);case 40:return m(e,s.Y.PAREN_L,o,o+1);case 41:return m(e,s.Y.PAREN_R,o,o+1);case 46:if(46===n.charCodeAt(o+1)&&46===n.charCodeAt(o+2))return m(e,s.Y.SPREAD,o,o+3);break;case 58:return m(e,s.Y.COLON,o,o+1);case 61:return m(e,s.Y.EQUALS,o,o+1);case 64:return m(e,s.Y.AT,o,o+1);case 91:return m(e,s.Y.BRACKET_L,o,o+1);case 93:return m(e,s.Y.BRACKET_R,o,o+1);case 123:return m(e,s.Y.BRACE_L,o,o+1);case 124:return m(e,s.Y.PIPE,o,o+1);case 125:return m(e,s.Y.BRACE_R,o,o+1);case 34:return 34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)?S(e,o):E(e,o)}if((0,a.yp)(t)||45===t)return y(e,o,t);if((0,a.un)(t))return N(e,o);throw(0,r.I)(e.source,o,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":c(t)||d(n,o)?`Unexpected character: ${h(e,o)}.`:`Invalid character: ${h(e,o)}.`)}return m(e,s.Y.EOF,i,i)}function v(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const e=n.charCodeAt(i);if(10===e||13===e)break;if(c(e))++i;else{if(!d(n,i))break;i+=2}}return m(e,s.Y.COMMENT,t,i,n.slice(t+1,i))}function y(e,t,n){const i=e.source.body;let o=t,l=n,u=!1;if(45===l&&(l=i.charCodeAt(++o)),48===l){if(l=i.charCodeAt(++o),(0,a.yp)(l))throw(0,r.I)(e.source,o,`Invalid number, unexpected digit after 0: ${h(e,o)}.`)}else o=b(e,o,l),l=i.charCodeAt(o);if(46===l&&(u=!0,l=i.charCodeAt(++o),o=b(e,o,l),l=i.charCodeAt(o)),69!==l&&101!==l||(u=!0,l=i.charCodeAt(++o),43!==l&&45!==l||(l=i.charCodeAt(++o)),o=b(e,o,l),l=i.charCodeAt(o)),46===l||(0,a.un)(l))throw(0,r.I)(e.source,o,`Invalid number, expected digit but got: ${h(e,o)}.`);return m(e,u?s.Y.FLOAT:s.Y.INT,t,o,i.slice(t,o))}function b(e,t,n){if(!(0,a.yp)(n))throw(0,r.I)(e.source,t,`Invalid number, expected digit but got: ${h(e,t)}.`);const i=e.source.body;let o=t+1;for(;(0,a.yp)(i.charCodeAt(o));)++o;return o}function E(e,t){const n=e.source.body,i=n.length;let o=t+1,a=o,l="";for(;o<i;){const i=n.charCodeAt(o);if(34===i)return l+=n.slice(a,o),m(e,s.Y.STRING,t,o+1,l);if(92!==i){if(10===i||13===i)break;if(c(i))++o;else{if(!d(n,o))throw(0,r.I)(e.source,o,`Invalid character within String: ${h(e,o)}.`);o+=2}}else{l+=n.slice(a,o);const t=117===n.charCodeAt(o+1)?123===n.charCodeAt(o+2)?w(e,o):k(e,o):C(e,o);l+=t.value,o+=t.size,a=o}}throw(0,r.I)(e.source,o,"Unterminated string.")}function w(e,t){const n=e.source.body;let i=0,o=3;for(;o<12;){const e=n.charCodeAt(t+o++);if(125===e){if(o<5||!c(i))break;return{value:String.fromCodePoint(i),size:o}}if(i=i<<4|x(e),i<0)break}throw(0,r.I)(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+o)}".`)}function k(e,t){const n=e.source.body,i=T(n,t+2);if(c(i))return{value:String.fromCodePoint(i),size:6};if(f(i)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=T(n,t+8);if(p(e))return{value:String.fromCodePoint(i,e),size:12}}throw(0,r.I)(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function T(e,t){return x(e.charCodeAt(t))<<12|x(e.charCodeAt(t+1))<<8|x(e.charCodeAt(t+2))<<4|x(e.charCodeAt(t+3))}function x(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function C(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw(0,r.I)(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function S(e,t){const n=e.source.body,i=n.length;let a=e.lineStart,l=t+3,u=l,f="";const p=[];for(;l<i;){const i=n.charCodeAt(l);if(34===i&&34===n.charCodeAt(l+1)&&34===n.charCodeAt(l+2)){f+=n.slice(u,l),p.push(f);const r=m(e,s.Y.BLOCK_STRING,t,l+3,(0,o.OC)(p).join("\n"));return e.line+=p.length-1,e.lineStart=a,r}if(92!==i||34!==n.charCodeAt(l+1)||34!==n.charCodeAt(l+2)||34!==n.charCodeAt(l+3))if(10!==i&&13!==i)if(c(i))++l;else{if(!d(n,l))throw(0,r.I)(e.source,l,`Invalid character within String: ${h(e,l)}.`);l+=2}else f+=n.slice(u,l),p.push(f),13===i&&10===n.charCodeAt(l+1)?l+=2:++l,f="",u=l,a=l;else f+=n.slice(u,l),u=l+1,l+=4}throw(0,r.I)(e.source,l,"Unterminated string.")}function N(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const e=n.charCodeAt(i);if(!(0,a.xr)(e))break;++i}return m(e,s.Y.NAME,t,i,n.slice(t,i))}},5061:(e,t,n)=>{n.r(t),n.d(t,{c:()=>l});var r=n(3338),i=Object.defineProperty,o=(e,t)=>i(e,"name",{value:t,configurable:!0});function a(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}o(a,"_mergeNamespaces");var s={exports:{}};!function(e){var t={pairs:"()[]{}''\"\"",closeBefore:")]}'\":;>",triples:"",explode:"[]{}"},n=e.Pos;function r(e,n){return"pairs"==n&&"string"==typeof e?e:"object"==typeof e&&null!=e[n]?e[n]:t[n]}e.defineOption("autoCloseBrackets",!1,(function(t,n,o){o&&o!=e.Init&&(t.removeKeyMap(i),t.state.closeBrackets=null),n&&(a(r(n,"pairs")),t.state.closeBrackets=n,t.addKeyMap(i))})),o(r,"getOption");var i={Backspace:u,Enter:c};function a(e){for(var t=0;t<e.length;t++){var n=e.charAt(t),r="'"+n+"'";i[r]||(i[r]=s(n))}}function s(e){return function(t){return p(t,e)}}function l(e){var t=e.state.closeBrackets;return!t||t.override?t:e.getModeAt(e.getCursor()).closeBrackets||t}function u(t){var i=l(t);if(!i||t.getOption("disableInput"))return e.Pass;for(var o=r(i,"pairs"),a=t.listSelections(),s=0;s<a.length;s++){if(!a[s].empty())return e.Pass;var u=h(t,a[s].head);if(!u||o.indexOf(u)%2!=0)return e.Pass}for(s=a.length-1;s>=0;s--){var c=a[s].head;t.replaceRange("",n(c.line,c.ch-1),n(c.line,c.ch+1),"+delete")}}function c(t){var n=l(t),i=n&&r(n,"explode");if(!i||t.getOption("disableInput"))return e.Pass;for(var o=t.listSelections(),a=0;a<o.length;a++){if(!o[a].empty())return e.Pass;var s=h(t,o[a].head);if(!s||i.indexOf(s)%2!=0)return e.Pass}t.operation((function(){var e=t.lineSeparator()||"\n";t.replaceSelection(e+e,null),d(t,-1),o=t.listSelections();for(var n=0;n<o.length;n++){var r=o[n].head.line;t.indentLine(r,null,!0),t.indentLine(r+1,null,!0)}}))}function d(e,t){for(var n=[],r=e.listSelections(),i=0,o=0;o<r.length;o++){var a=r[o];a.head==e.getCursor()&&(i=o);var s=a.head.ch||t>0?{line:a.head.line,ch:a.head.ch+t}:{line:a.head.line-1};n.push({anchor:s,head:s})}e.setSelections(n,i)}function f(t){var r=e.cmpPos(t.anchor,t.head)>0;return{anchor:new n(t.anchor.line,t.anchor.ch+(r?-1:1)),head:new n(t.head.line,t.head.ch+(r?1:-1))}}function p(t,i){var o=l(t);if(!o||t.getOption("disableInput"))return e.Pass;var a=r(o,"pairs"),s=a.indexOf(i);if(-1==s)return e.Pass;for(var u,c=r(o,"closeBefore"),p=r(o,"triples"),h=a.charAt(s+1)==i,g=t.listSelections(),v=s%2==0,y=0;y<g.length;y++){var b,E=g[y],w=E.head,k=t.getRange(w,n(w.line,w.ch+1));if(v&&!E.empty())b="surround";else if(!h&&v||k!=i)if(h&&w.ch>1&&p.indexOf(i)>=0&&t.getRange(n(w.line,w.ch-2),w)==i+i){if(w.ch>2&&/\bstring/.test(t.getTokenTypeAt(n(w.line,w.ch-2))))return e.Pass;b="addFour"}else if(h){var T=0==w.ch?" ":t.getRange(n(w.line,w.ch-1),w);if(e.isWordChar(k)||T==i||e.isWordChar(T))return e.Pass;b="both"}else{if(!v||!(0===k.length||/\s/.test(k)||c.indexOf(k)>-1))return e.Pass;b="both"}else b=h&&m(t,w)?"both":p.indexOf(i)>=0&&t.getRange(w,n(w.line,w.ch+3))==i+i+i?"skipThree":"skip";if(u){if(u!=b)return e.Pass}else u=b}var x=s%2?a.charAt(s-1):i,C=s%2?i:a.charAt(s+1);t.operation((function(){if("skip"==u)d(t,1);else if("skipThree"==u)d(t,3);else if("surround"==u){for(var e=t.getSelections(),n=0;n<e.length;n++)e[n]=x+e[n]+C;for(t.replaceSelections(e,"around"),e=t.listSelections().slice(),n=0;n<e.length;n++)e[n]=f(e[n]);t.setSelections(e)}else"both"==u?(t.replaceSelection(x+C,null),t.triggerElectric(x+C),d(t,-1)):"addFour"==u&&(t.replaceSelection(x+x+x+x,"before"),d(t,1))}))}function h(e,t){var r=e.getRange(n(t.line,t.ch-1),n(t.line,t.ch+1));return 2==r.length?r:null}function m(e,t){var r=e.getTokenAt(n(t.line,t.ch+1));return/\bstring/.test(r.type)&&r.start==t.ch&&(0==t.ch||!/\bstring/.test(e.getTokenTypeAt(t)))}o(a,"ensureBound"),a(t.pairs+"`"),o(s,"handler"),o(l,"getConfig"),o(u,"handleBackspace"),o(c,"handleEnter"),o(d,"moveSel"),o(f,"contractSelection"),o(p,"handleChar"),o(h,"charsAround"),o(m,"stringStartsAfter")}(r.a.exports);var l=a({__proto__:null,default:s.exports},[s.exports])},5077:(e,t,n)=>{n.r(t),n.d(t,{c:()=>l});var r=n(3338),i=Object.defineProperty,o=(e,t)=>i(e,"name",{value:t,configurable:!0});function a(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}o(a,"_mergeNamespaces");var s={exports:{}};!function(e){var t={},n=/[^\s\u00a0]/,r=e.Pos,i=e.cmpPos;function a(e){var t=e.search(n);return-1==t?0:t}function s(e,t,n){return/\bstring\b/.test(e.getTokenTypeAt(r(t.line,0)))&&!/^[\'\"\`]/.test(n)}function l(e,t){var n=e.getMode();return!1!==n.useInnerComments&&n.innerMode?e.getModeAt(t):n}o(a,"firstNonWS"),e.commands.toggleComment=function(e){e.toggleComment()},e.defineExtension("toggleComment",(function(e){e||(e=t);for(var n=this,i=1/0,o=this.listSelections(),a=null,s=o.length-1;s>=0;s--){var l=o[s].from(),u=o[s].to();l.line>=i||(u.line>=i&&(u=r(i,0)),i=l.line,null==a?n.uncomment(l,u,e)?a="un":(n.lineComment(l,u,e),a="line"):"un"==a?n.uncomment(l,u,e):n.lineComment(l,u,e))}})),o(s,"probablyInsideString"),o(l,"getMode"),e.defineExtension("lineComment",(function(e,i,o){o||(o=t);var u=this,c=l(u,e),d=u.getLine(e.line);if(null!=d&&!s(u,e,d)){var f=o.lineComment||c.lineComment;if(f){var p=Math.min(0!=i.ch||i.line==e.line?i.line+1:i.line,u.lastLine()+1),h=null==o.padding?" ":o.padding,m=o.commentBlankLines||e.line==i.line;u.operation((function(){if(o.indent){for(var t=null,i=e.line;i<p;++i){var s=(l=u.getLine(i)).slice(0,a(l));(null==t||t.length>s.length)&&(t=s)}for(i=e.line;i<p;++i){var l=u.getLine(i),c=t.length;(m||n.test(l))&&(l.slice(0,c)!=t&&(c=a(l)),u.replaceRange(t+f+h,r(i,0),r(i,c)))}}else for(i=e.line;i<p;++i)(m||n.test(u.getLine(i)))&&u.replaceRange(f+h,r(i,0))}))}else(o.blockCommentStart||c.blockCommentStart)&&(o.fullLines=!0,u.blockComment(e,i,o))}})),e.defineExtension("blockComment",(function(e,o,a){a||(a=t);var s=this,u=l(s,e),c=a.blockCommentStart||u.blockCommentStart,d=a.blockCommentEnd||u.blockCommentEnd;if(c&&d){if(!/\bcomment\b/.test(s.getTokenTypeAt(r(e.line,0)))){var f=Math.min(o.line,s.lastLine());f!=e.line&&0==o.ch&&n.test(s.getLine(f))&&--f;var p=null==a.padding?" ":a.padding;e.line>f||s.operation((function(){if(0!=a.fullLines){var t=n.test(s.getLine(f));s.replaceRange(p+d,r(f)),s.replaceRange(c+p,r(e.line,0));var l=a.blockCommentLead||u.blockCommentLead;if(null!=l)for(var h=e.line+1;h<=f;++h)(h!=f||t)&&s.replaceRange(l+p,r(h,0))}else{var m=0==i(s.getCursor("to"),o),g=!s.somethingSelected();s.replaceRange(d,o),m&&s.setSelection(g?o:s.getCursor("from"),o),s.replaceRange(c,e)}}))}}else(a.lineComment||u.lineComment)&&0!=a.fullLines&&s.lineComment(e,o,a)})),e.defineExtension("uncomment",(function(e,i,o){o||(o=t);var a,s=this,u=l(s,e),c=Math.min(0!=i.ch||i.line==e.line?i.line:i.line-1,s.lastLine()),d=Math.min(e.line,c),f=o.lineComment||u.lineComment,p=[],h=null==o.padding?" ":o.padding;e:if(f){for(var m=d;m<=c;++m){var g=s.getLine(m),v=g.indexOf(f);if(v>-1&&!/comment/.test(s.getTokenTypeAt(r(m,v+1)))&&(v=-1),-1==v&&n.test(g))break e;if(v>-1&&n.test(g.slice(0,v)))break e;p.push(g)}if(s.operation((function(){for(var e=d;e<=c;++e){var t=p[e-d],n=t.indexOf(f),i=n+f.length;n<0||(t.slice(i,i+h.length)==h&&(i+=h.length),a=!0,s.replaceRange("",r(e,n),r(e,i)))}})),a)return!0}var y=o.blockCommentStart||u.blockCommentStart,b=o.blockCommentEnd||u.blockCommentEnd;if(!y||!b)return!1;var E=o.blockCommentLead||u.blockCommentLead,w=s.getLine(d),k=w.indexOf(y);if(-1==k)return!1;var T=c==d?w:s.getLine(c),x=T.indexOf(b,c==d?k+y.length:0),C=r(d,k+1),S=r(c,x+1);if(-1==x||!/comment/.test(s.getTokenTypeAt(C))||!/comment/.test(s.getTokenTypeAt(S))||s.getRange(C,S,"\n").indexOf(b)>-1)return!1;var N=w.lastIndexOf(y,e.ch),_=-1==N?-1:w.slice(0,e.ch).indexOf(b,N+y.length);if(-1!=N&&-1!=_&&_+b.length!=e.ch)return!1;_=T.indexOf(b,i.ch);var O=T.slice(i.ch).lastIndexOf(y,_-i.ch);return N=-1==_||-1==O?-1:i.ch+O,(-1==_||-1==N||N==i.ch)&&(s.operation((function(){s.replaceRange("",r(c,x-(h&&T.slice(x-h.length,x)==h?h.length:0)),r(c,x+b.length));var e=k+y.length;if(h&&w.slice(e,e+h.length)==h&&(e+=h.length),s.replaceRange("",r(d,k),r(d,e)),E)for(var t=d+1;t<=c;++t){var i=s.getLine(t),o=i.indexOf(E);if(-1!=o&&!n.test(i.slice(0,o))){var a=o+E.length;h&&i.slice(a,a+h.length)==h&&(a+=h.length),s.replaceRange("",r(t,o),r(t,a))}}})),!0)}))}(r.a.exports);var l=a({__proto__:null,default:s.exports},[s.exports])},5141:(e,t,n)=>{n.d(t,{E:()=>u});var r=n(129),i=n(4786),o=n(3298),a=n(7167),s=n(1578),l=n(9581);function u(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const o=e.getRecursiveVariableUsages(n);for(const{node:n,type:a,defaultValue:s}of o){const o=n.name.value,u=t[o];if(u&&a){const t=e.getSchema(),d=(0,l.v)(t,u.type);if(d&&!c(t,d,u.defaultValue,a,s)){const t=(0,r.N)(d),s=(0,r.N)(a);e.reportError(new i.eO(`Variable "$${o}" of type "${t}" used in position expecting type "${s}".`,{nodes:[u,n]}))}}}}},VariableDefinition(e){t[e.variable.name.value]=e}}}function c(e,t,n,r,i){if((0,a.bd)(r)&&!(0,a.bd)(t)){if((null==n||n.kind===o.b.NULL)&&void 0===i)return!1;const a=r.ofType;return(0,s.sP)(e,t,a)}return(0,s.sP)(e,t,r)}},5154:(e,t,n)=>{function r(e){return"function"==typeof(null==e?void 0:e.then)}n.d(t,{y:()=>r})},5197:(e,t,n)=>{n.d(t,{u:()=>i});var r=n(4786);function i(e){const t=e.getSchema(),n=Object.create(null),i=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:o,SchemaExtension:o};function o(t){var o;const a=null!==(o=t.operationTypes)&&void 0!==o?o:[];for(const t of a){const o=t.operation,a=n[o];i[o]?e.reportError(new r.eO(`Type for ${o} already defined in the schema. It cannot be redefined.`,{nodes:t})):a?e.reportError(new r.eO(`There can be only one ${o} type in schema.`,{nodes:[a,t]})):n[o]=t}return!1}}},5228:e=>{var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var o,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]))n.call(o,u)&&(s[u]=o[u]);if(t){a=t(o);for(var c=0;c<a.length;c++)r.call(o,a[c])&&(s[a[c]]=o[a[c]])}}return s}},5287:(e,t,n)=>{var r=n(5228),i=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,s=60110,l=60112;t.Suspense=60113;var u=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var d=Symbol.for;i=d("react.element"),o=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),a=d("react.provider"),s=d("react.context"),l=d("react.forward_ref"),t.Suspense=d("react.suspense"),u=d("react.memo"),c=d("react.lazy")}var f="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function v(){}function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=g.prototype;var b=y.prototype=new v;b.constructor=y,r(b,g.prototype),b.isPureReactComponent=!0;var E={current:null},w=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function T(e,t,n){var r,o={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)w.call(t,r)&&!k.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:i,type:e,key:a,ref:s,props:o,_owner:E.current}}function x(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var C=/\/+/g;function S(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function N(e,t,n,r,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case i:case o:l=!0}}if(l)return a=a(l=e),e=""===r?"."+S(l,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(C,"$&/")+"/"),N(a,t,n,"",(function(e){return e}))):null!=a&&(x(a)&&(a=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(C,"$&/")+"/")+e)),t.push(a)),1;if(l=0,r=""===r?".":r+":",Array.isArray(e))for(var u=0;u<e.length;u++){var c=r+S(s=e[u],u);l+=N(s,t,n,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=N(s=s.value,t,n,c=r+S(s,u++),a);else if("object"===s)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function _(e,t,n){if(null==e)return e;var r=[],i=0;return N(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function O(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var I={current:null};function A(){var e=I.current;if(null===e)throw Error(p(321));return e}var D={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:E,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:_,forEach:function(e,t,n){_(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return _(e,(function(){t++})),t},toArray:function(e){return _(e,(function(e){return e}))||[]},only:function(e){if(!x(e))throw Error(p(143));return e}},t.Component=g,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,t.cloneElement=function(e,t,n){if(null==e)throw Error(p(267,e));var o=r({},e.props),a=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=E.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)w.call(t,c)&&!k.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){u=Array(c);for(var d=0;d<c;d++)u[d]=arguments[d+2];o.children=u}return{$$typeof:i,type:e.type,key:a,ref:s,props:o,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=T,t.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=x,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:O}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return A().useCallback(e,t)},t.useContext=function(e,t){return A().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return A().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return A().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return A().useLayoutEffect(e,t)},t.useMemo=function(e,t){return A().useMemo(e,t)},t.useReducer=function(e,t,n){return A().useReducer(e,t,n)},t.useRef=function(e){return A().useRef(e)},t.useState=function(e){return A().useState(e)},t.version="17.0.2"},5551:(e,t,n)=>{function r(e,t){const n=new Map;for(const r of e){const e=t(r),i=n.get(e);void 0===i?n.set(e,[r]):i.push(r)}return n}n.d(t,{$:()=>r})},5604:(e,t,n)=>{n.d(t,{p:()=>i});var r=n(4786);function i(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){const i=Object.create(null),o=e.getRecursiveVariableUsages(n);for(const{node:e}of o)i[e.name.value]=!0;for(const o of t){const t=o.variable.name.value;!0!==i[t]&&e.reportError(new r.eO(n.name?`Variable "$${t}" is never used in operation "${n.name.value}".`:`Variable "$${t}" is never used.`,{nodes:o}))}}},VariableDefinition(e){t.push(e)}}}},5621:(e,t,n)=>{n.d(t,{i:()=>i});var r=n(4786);function i(e){const t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:i,ObjectTypeDefinition:i,InterfaceTypeDefinition:i,UnionTypeDefinition:i,EnumTypeDefinition:i,InputObjectTypeDefinition:i};function i(i){const o=i.name.value;if(null==n||!n.getType(o))return t[o]?e.reportError(new r.eO(`There can be only one type named "${o}".`,{nodes:[t[o],i.name]})):t[o]=i.name,!1;e.reportError(new r.eO(`Type "${o}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}))}}},5795:(e,t,n)=>{n.d(t,{H7:()=>U,b0:()=>j,gv:()=>V});var r=n(6276),i=n(3492),o=n(3074),a=n(9558),s=n(2101),l=n(6025),u=n(9993),c=n(6048),d=n(8028),f=n(6008),p=n(6834),h=n(6412),m=n(5848),g=n(5604),v=n(1633),y=n(7249),b=n(2029),E=n(916),w=n(7109),k=n(8292),T=n(6263),x=n(962),C=n(9238),S=n(9731),N=n(7721),_=n(1014),O=n(7781),I=n(541),A=n(6002),D=n(5197),L=n(5621),M=n(3581),F=n(3023),R=n(7234),P=n(5141);const j=Object.freeze([f.B]),V=Object.freeze([r.T,A.H,c.P,k.R,u.y,o.T,R.J,w.A,i.Z,O.K,l.K,m.z,y.y,p.n,M._,h.Z,g.p,s.e,S.U,a.P,x.J,F.U,E.X,P.E,v.K,I.C,...j]),U=Object.freeze([d.l,D.u,L.i,N.g,_.X,T.E,C.Z,u.y,s.e,S.U,b.S,a.W,x.J,I.C,E.A])},5848:(e,t,n)=>{n.d(t,{z:()=>i});var r=n(4786);function i(e){const t=[],n=[];return{OperationDefinition:e=>(t.push(e),!1),FragmentDefinition:e=>(n.push(e),!1),Document:{leave(){const i=Object.create(null);for(const n of t)for(const t of e.getRecursivelyReferencedFragments(n))i[t.name.value]=!0;for(const t of n){const n=t.name.value;!0!==i[n]&&e.reportError(new r.eO(`Fragment "${n}" is never used.`,{nodes:t}))}}}}}},5910:(e,t,n)=>{n.r(t),n.d(t,{a:()=>s,s:()=>l});var r=n(3338),i=Object.defineProperty,o=(e,t)=>i(e,"name",{value:t,configurable:!0});function a(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}o(a,"_mergeNamespaces");var s={exports:{}};!function(e){var t,n,r=e.Pos;function i(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}function a(e,t){for(var n=i(e),r=n,o=0;o<t.length;o++)-1==r.indexOf(t.charAt(o))&&(r+=t.charAt(o));return n==r?e:new RegExp(e.source,r)}function s(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function l(e,t,n){t=a(t,"g");for(var i=n.line,o=n.ch,s=e.lastLine();i<=s;i++,o=0){t.lastIndex=o;var l=e.getLine(i),u=t.exec(l);if(u)return{from:r(i,u.index),to:r(i,u.index+u[0].length),match:u}}}function u(e,t,n){if(!s(t))return l(e,t,n);t=a(t,"gm");for(var i,o=1,u=n.line,c=e.lastLine();u<=c;){for(var d=0;d<o&&!(u>c);d++){var f=e.getLine(u++);i=null==i?f:i+"\n"+f}o*=2,t.lastIndex=n.ch;var p=t.exec(i);if(p){var h=i.slice(0,p.index).split("\n"),m=p[0].split("\n"),g=n.line+h.length-1,v=h[h.length-1].length;return{from:r(g,v),to:r(g+m.length-1,1==m.length?v+m[0].length:m[m.length-1].length),match:p}}}}function c(e,t,n){for(var r,i=0;i<=e.length;){t.lastIndex=i;var o=t.exec(e);if(!o)break;var a=o.index+o[0].length;if(a>e.length-n)break;(!r||a>r.index+r[0].length)&&(r=o),i=o.index+1}return r}function d(e,t,n){t=a(t,"g");for(var i=n.line,o=n.ch,s=e.firstLine();i>=s;i--,o=-1){var l=e.getLine(i),u=c(l,t,o<0?0:l.length-o);if(u)return{from:r(i,u.index),to:r(i,u.index+u[0].length),match:u}}}function f(e,t,n){if(!s(t))return d(e,t,n);t=a(t,"gm");for(var i,o=1,l=e.getLine(n.line).length-n.ch,u=n.line,f=e.firstLine();u>=f;){for(var p=0;p<o&&u>=f;p++){var h=e.getLine(u--);i=null==i?h:h+"\n"+i}o*=2;var m=c(i,t,l);if(m){var g=i.slice(0,m.index).split("\n"),v=m[0].split("\n"),y=u+g.length,b=g[g.length-1].length;return{from:r(y,b),to:r(y+v.length-1,1==v.length?b+v[0].length:v[v.length-1].length),match:m}}}}function p(e,t,n,r){if(e.length==t.length)return n;for(var i=0,o=n+Math.max(0,e.length-t.length);;){if(i==o)return i;var a=i+o>>1,s=r(e.slice(0,a)).length;if(s==n)return a;s>n?o=a:i=a+1}}function h(e,i,o,a){if(!i.length)return null;var s=a?t:n,l=s(i).split(/\r|\n\r?/);e:for(var u=o.line,c=o.ch,d=e.lastLine()+1-l.length;u<=d;u++,c=0){var f=e.getLine(u).slice(c),h=s(f);if(1==l.length){var m=h.indexOf(l[0]);if(-1==m)continue e;return o=p(f,h,m,s)+c,{from:r(u,p(f,h,m,s)+c),to:r(u,p(f,h,m+l[0].length,s)+c)}}var g=h.length-l[0].length;if(h.slice(g)==l[0]){for(var v=1;v<l.length-1;v++)if(s(e.getLine(u+v))!=l[v])continue e;var y=e.getLine(u+l.length-1),b=s(y),E=l[l.length-1];if(b.slice(0,E.length)==E)return{from:r(u,p(f,h,g,s)+c),to:r(u+l.length-1,p(y,b,E.length,s))}}}}function m(e,i,o,a){if(!i.length)return null;var s=a?t:n,l=s(i).split(/\r|\n\r?/);e:for(var u=o.line,c=o.ch,d=e.firstLine()-1+l.length;u>=d;u--,c=-1){var f=e.getLine(u);c>-1&&(f=f.slice(0,c));var h=s(f);if(1==l.length){var m=h.lastIndexOf(l[0]);if(-1==m)continue e;return{from:r(u,p(f,h,m,s)),to:r(u,p(f,h,m+l[0].length,s))}}var g=l[l.length-1];if(h.slice(0,g.length)==g){var v=1;for(o=u-l.length+1;v<l.length-1;v++)if(s(e.getLine(o+v))!=l[v])continue e;var y=e.getLine(u+1-l.length),b=s(y);if(b.slice(b.length-l[0].length)==l[0])return{from:r(u+1-l.length,p(y,b,y.length-l[0].length,s)),to:r(u,p(f,h,g.length,s))}}}}function g(e,t,n,i){var o;this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=e,n=n?e.clipPos(n):r(0,0),this.pos={from:n,to:n},"object"==typeof i?o=i.caseFold:(o=i,i=null),"string"==typeof t?(null==o&&(o=!1),this.matches=function(n,r){return(n?m:h)(e,t,r,o)}):(t=a(t,"gm"),i&&!1===i.multiline?this.matches=function(n,r){return(n?d:l)(e,t,r)}:this.matches=function(n,r){return(n?f:u)(e,t,r)})}o(i,"regexpFlags"),o(a,"ensureFlags"),o(s,"maybeMultiline"),o(l,"searchRegexpForward"),o(u,"searchRegexpForwardMultiline"),o(c,"lastMatchIn"),o(d,"searchRegexpBackward"),o(f,"searchRegexpBackwardMultiline"),String.prototype.normalize?(t=o((function(e){return e.normalize("NFD").toLowerCase()}),"doFold"),n=o((function(e){return e.normalize("NFD")}),"noFold")):(t=o((function(e){return e.toLowerCase()}),"doFold"),n=o((function(e){return e}),"noFold")),o(p,"adjustPos"),o(h,"searchStringForward"),o(m,"searchStringBackward"),o(g,"SearchCursor"),g.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){var n=this.doc.clipPos(t?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(n=r(n.line,n.ch),t?(n.ch--,n.ch<0&&(n.line--,n.ch=(this.doc.getLine(n.line)||"").length)):(n.ch++,n.ch>(this.doc.getLine(n.line)||"").length&&(n.ch=0,n.line++)),0!=e.cmpPos(n,this.doc.clipPos(n))))return this.atOccurrence=!1;var i=this.matches(t,n);if(this.afterEmptyMatch=i&&0==e.cmpPos(i.from,i.to),i)return this.pos=i,this.atOccurrence=!0,this.pos.match||!0;var o=r(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:o,to:o},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var i=e.splitLines(t);this.doc.replaceRange(i,this.pos.from,this.pos.to,n),this.pos.to=r(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",(function(e,t,n){return new g(this.doc,e,t,n)})),e.defineDocExtension("getSearchCursor",(function(e,t,n){return new g(this,e,t,n)})),e.defineExtension("selectMatches",(function(t,n){for(var r=[],i=this.getSearchCursor(t,this.getCursor("from"),n);i.findNext()&&!(e.cmpPos(i.to(),this.getCursor("to"))>0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)}))}(r.a.exports);var l=a({__proto__:null,default:s.exports},[s.exports])},5983:(e,t,n)=>{n.r(t),n.d(t,{b:()=>l});var r=n(3338),i=Object.defineProperty,o=(e,t)=>i(e,"name",{value:t,configurable:!0});function a(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}o(a,"_mergeNamespaces");var s={exports:{}};!function(e){function t(t){return function(n,r){var i=r.line,a=n.getLine(i);function s(t){for(var o,s=r.ch,l=0;;){var u=s<=0?-1:a.lastIndexOf(t[0],s-1);if(-1!=u){if(1==l&&u<r.ch)break;if(o=n.getTokenTypeAt(e.Pos(i,u+1)),!/^(comment|string)/.test(o))return{ch:u+1,tokenType:o,pair:t};s=u-1}else{if(1==l)break;l=1,s=a.length}}}function l(t){var r,o,a=1,s=n.lastLine(),l=t.ch;e:for(var u=i;u<=s;++u)for(var c=n.getLine(u),d=u==i?l:0;;){var f=c.indexOf(t.pair[0],d),p=c.indexOf(t.pair[1],d);if(f<0&&(f=c.length),p<0&&(p=c.length),(d=Math.min(f,p))==c.length)break;if(n.getTokenTypeAt(e.Pos(u,d+1))==t.tokenType)if(d==f)++a;else if(! --a){r=u,o=d;break e}++d}return null==r||i==r?null:{from:e.Pos(i,l),to:e.Pos(r,o)}}o(s,"findOpening"),o(l,"findRange");for(var u=[],c=0;c<t.length;c++){var d=s(t[c]);d&&u.push(d)}for(u.sort((function(e,t){return e.ch-t.ch})),c=0;c<u.length;c++){var f=l(u[c]);if(f)return f}return null}}o(t,"bracketFolding"),e.registerHelper("fold","brace",t([["{","}"],["[","]"]])),e.registerHelper("fold","brace-paren",t([["{","}"],["[","]"],["(",")"]])),e.registerHelper("fold","import",(function(t,n){function r(n){if(n<t.firstLine()||n>t.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));if(/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"keyword"!=r.type||"import"!=r.string)return null;for(var i=n,o=Math.min(t.lastLine(),n+10);i<=o;++i){var a=t.getLine(i).indexOf(";");if(-1!=a)return{startCh:r.end,end:e.Pos(i,a)}}}o(r,"hasImport");var i,a=n.line,s=r(a);if(!s||r(a-1)||(i=r(a-2))&&i.end.line==a-1)return null;for(var l=s.end;;){var u=r(l.line+1);if(null==u)break;l=u.end}return{from:t.clipPos(e.Pos(a,s.startCh+1)),to:l}})),e.registerHelper("fold","include",(function(t,n){function r(n){if(n<t.firstLine()||n>t.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));return/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"meta"==r.type&&"#include"==r.string.slice(0,8)?r.start+8:void 0}o(r,"hasInclude");var i=n.line,a=r(i);if(null==a||null!=r(i-1))return null;for(var s=i;null!=r(s+1);)++s;return{from:e.Pos(i,a+1),to:t.clipPos(e.Pos(s))}}))}(r.a.exports);var l=a({__proto__:null,default:s.exports},[s.exports])},5995:(e,t,n)=>{n.d(t,{CS:()=>a,OC:()=>i,yo:()=>s});var r=n(9646);function i(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let t=0;t<e.length;++t){var a;const s=e[t],l=o(s);l!==s.length&&(r=null!==(a=r)&&void 0!==a?a:t,i=t,0!==t&&l<n&&(n=l))}return e.map(((e,t)=>0===t?e:e.slice(n))).slice(null!==(t=r)&&void 0!==t?t:0,i+1)}function o(e){let t=0;for(;t<e.length&&(0,r.i0)(e.charCodeAt(t));)++t;return t}function a(e){if(""===e)return!0;let t=!0,n=!1,r=!0,i=!1;for(let o=0;o<e.length;++o)switch(e.codePointAt(o)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:case 13:return!1;case 10:if(t&&!i)return!1;i=!0,t=!0,n=!1;break;case 9:case 32:n||(n=t);break;default:r&&(r=n),t=!1}return!(t||r&&i)}function s(e,t){const n=e.replace(/"""/g,'\\"""'),i=n.split(/\r\n|[\n\r]/g),o=1===i.length,a=i.length>1&&i.slice(1).every((e=>0===e.length||(0,r.i0)(e.charCodeAt(0)))),s=n.endsWith('\\"""'),l=e.endsWith('"')&&!s,u=e.endsWith("\\"),c=l||u,d=!(null!=t&&t.minimize)&&(!o||e.length>70||c||a||s);let f="";const p=o&&(0,r.i0)(e.charCodeAt(0));return(d&&!p||a)&&(f+="\n"),f+=n,(d||c)&&(f+="\n"),'"""'+f+'"""'}},6002:(e,t,n)=>{n.d(t,{H:()=>i});var r=n(4786);function i(e){const t=Object.create(null);return{OperationDefinition(n){const i=n.name;return i&&(t[i.value]?e.reportError(new r.eO(`There can be only one operation named "${i.value}".`,{nodes:[t[i.value],i]})):t[i.value]=i),!1},FragmentDefinition:()=>!1}}},6008:(e,t,n)=>{n.d(t,{B:()=>a});var r=n(4786),i=n(3298);const o=3;function a(e){function t(n,r=Object.create(null),a=0){if(n.kind===i.b.FRAGMENT_SPREAD){const i=n.name.value;if(!0===r[i])return!1;const o=e.getFragment(i);if(!o)return!1;try{return r[i]=!0,t(o,r,a)}finally{r[i]=void 0}}if(n.kind===i.b.FIELD&&("fields"===n.name.value||"interfaces"===n.name.value||"possibleTypes"===n.name.value||"inputFields"===n.name.value)&&++a>=o)return!0;if("selectionSet"in n&&n.selectionSet)for(const e of n.selectionSet.selections)if(t(e,r,a))return!0;return!1}return{Field(n){if(("__schema"===n.name.value||"__type"===n.name.value)&&t(n))return e.reportError(new r.eO("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}},6025:(e,t,n)=>{n.d(t,{K:()=>i});var r=n(4786);function i(e){return{FragmentSpread(t){const n=t.name.value;e.getFragment(n)||e.reportError(new r.eO(`Unknown fragment "${n}".`,{nodes:t.name}))}}}},6048:(e,t,n)=>{n.d(t,{P:()=>o});var r=n(4786),i=n(3298);function o(e){let t=0;return{Document(e){t=e.definitions.filter((e=>e.kind===i.b.OPERATION_DEFINITION)).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new r.eO("This anonymous operation must be the only defined operation.",{nodes:n}))}}}},6113:(e,t,n)=>{n.r(t),n.d(t,{j:()=>u});var r=n(3338),i=n(924),o=Object.defineProperty,a=(e,t)=>o(e,"name",{value:t,configurable:!0});function s(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}a(s,"_mergeNamespaces");var l={exports:{}};!function(e){function t(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0,bottom:e.options.search.bottom}):i(prompt(n,r))}function n(e){return e.phrase("Jump to line:")+' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+e.phrase("(Use line:column or scroll% syntax)")+"</span>"}function r(e,t){var n=Number(t);return/^[-+]/.test(t)?e.getCursor().line+n:n-1}e.defineOption("search",{bottom:!1}),a(t,"dialog"),a(n,"getJumpDialog"),a(r,"interpretLine"),e.commands.jumpToLine=function(e){var i=e.getCursor();t(e,n(e),e.phrase("Jump to line:"),i.line+1+":"+i.ch,(function(t){var n;if(t)if(n=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(t))e.setCursor(r(e,n[1]),Number(n[2]));else if(n=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(t)){var o=Math.round(e.lineCount()*Number(n[1])/100);/^[-+]/.test(n[1])&&(o=i.line+o+1),e.setCursor(o-1,i.ch)}else(n=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(t))&&e.setCursor(r(e,n[1]),i.ch)}))},e.keyMap.default["Alt-G"]="jumpToLine"}(r.a.exports,i.a.exports);var u=s({__proto__:null,default:l.exports},[l.exports])},6263:(e,t,n)=>{n.d(t,{E:()=>o});var r=n(5551),i=n(4786);function o(e){return{DirectiveDefinition(e){var t;const r=null!==(t=e.arguments)&&void 0!==t?t:[];return n(`@${e.name.value}`,r)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){var t;const r=e.name.value,i=null!==(t=e.fields)&&void 0!==t?t:[];for(const e of i){var o;n(`${r}.${e.name.value}`,null!==(o=e.arguments)&&void 0!==o?o:[])}return!1}function n(t,n){const o=(0,r.$)(n,(e=>e.name.value));for(const[n,r]of o)r.length>1&&e.reportError(new i.eO(`Argument "${t}(${n}:)" can only be defined once.`,{nodes:r.map((e=>e.name))}));return!1}}},6276:(e,t,n)=>{n.d(t,{T:()=>a});var r=n(4786),i=n(3298),o=n(6623);function a(e){return{Document(t){for(const n of t.definitions)if(!(0,o._m)(n)){const t=n.kind===i.b.SCHEMA_DEFINITION||n.kind===i.b.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new r.eO(`The ${t} definition is not executable.`,{nodes:n}))}return!1}}}},6286:(e,t,n)=>{function r(e,t){if(!Boolean(e))throw new Error(t)}n.d(t,{U:()=>r})},6412:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(4786);function i(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const i=e.getRecursiveVariableUsages(n);for(const{node:o}of i){const i=o.name.value;!0!==t[i]&&e.reportError(new r.eO(n.name?`Variable "$${i}" is not defined by operation "${n.name.value}".`:`Variable "$${i}" is not defined.`,{nodes:[o,n]}))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}}},6420:(e,t,n)=>{n.r(t);var r=n(7167),i=n(3338),o=n(9654),a=(n(6681),n(166),n(6540),n(4848),n(961),n(7437),Object.defineProperty),s=(e,t)=>a(e,"name",{value:t,configurable:!0});function l(e,t,n){u(e,t,n),p(e,t,n,t.type)}function u(e,t,n){var r;v(e,(null===(r=t.fieldDef)||void 0===r?void 0:r.name)||"","field-name",n,(0,o.a)(t))}function c(e,t,n){var r;v(e,"@"+((null===(r=t.directiveDef)||void 0===r?void 0:r.name)||""),"directive-name",n,(0,o.b)(t))}function d(e,t,n){var r;v(e,(null===(r=t.argDef)||void 0===r?void 0:r.name)||"","arg-name",n,(0,o.c)(t)),p(e,t,n,t.inputType)}function f(e,t,n){var r;const i=(null===(r=t.enumValue)||void 0===r?void 0:r.name)||"";h(e,t,n,t.inputType),v(e,"."),v(e,i,"enum-value",n,(0,o.d)(t))}function p(e,t,n,i){const a=document.createElement("span");a.className="type-name-pill",i instanceof r.Gc?(h(a,t,n,i.ofType),v(a,"!")):i instanceof r.KT?(v(a,"["),h(a,t,n,i.ofType),v(a,"]")):v(a,(null==i?void 0:i.name)||"","type-name",n,(0,o.e)(t,i)),e.append(a)}function h(e,t,n,i){i instanceof r.Gc?(h(e,t,n,i.ofType),v(e,"!")):i instanceof r.KT?(v(e,"["),h(e,t,n,i.ofType),v(e,"]")):v(e,(null==i?void 0:i.name)||"","type-name",n,(0,o.e)(t,i))}function m(e,t,n){const{description:r}=n;if(r){const n=document.createElement("div");n.className="info-description",t.renderDescription?n.innerHTML=t.renderDescription(r):n.append(document.createTextNode(r)),e.append(n)}g(e,t,n)}function g(e,t,n){const r=n.deprecationReason;if(r){const n=document.createElement("div");n.className="info-deprecation",e.append(n);const i=document.createElement("span");i.className="info-deprecation-label",i.append(document.createTextNode("Deprecated")),n.append(i);const o=document.createElement("div");o.className="info-deprecation-reason",t.renderDescription?o.innerHTML=t.renderDescription(r):o.append(document.createTextNode(r)),n.append(o)}}function v(e,t,n="",r={onClick:null},i=null){if(n){const{onClick:o}=r;let a;o?(a=document.createElement("a"),a.href="javascript:void 0",a.addEventListener("click",(e=>{o(i,e)}))):a=document.createElement("span"),a.className=n,a.append(document.createTextNode(t)),e.append(a)}else e.append(document.createTextNode(t))}i.C.registerHelper("info","graphql",((e,t)=>{if(!t.schema||!e.state)return;const{kind:n,step:r}=e.state,i=(0,o.g)(t.schema,e.state);if("Field"===n&&0===r&&i.fieldDef||"AliasedField"===n&&2===r&&i.fieldDef){const e=document.createElement("div");e.className="CodeMirror-info-header",l(e,i,t);const n=document.createElement("div");return n.append(e),m(n,t,i.fieldDef),n}if("Directive"===n&&1===r&&i.directiveDef){const e=document.createElement("div");e.className="CodeMirror-info-header",c(e,i,t);const n=document.createElement("div");return n.append(e),m(n,t,i.directiveDef),n}if("Argument"===n&&0===r&&i.argDef){const e=document.createElement("div");e.className="CodeMirror-info-header",d(e,i,t);const n=document.createElement("div");return n.append(e),m(n,t,i.argDef),n}if("EnumValue"===n&&i.enumValue&&i.enumValue.description){const e=document.createElement("div");e.className="CodeMirror-info-header",f(e,i,t);const n=document.createElement("div");return n.append(e),m(n,t,i.enumValue),n}if("NamedType"===n&&i.type&&i.type.description){const e=document.createElement("div");e.className="CodeMirror-info-header",h(e,i,t,i.type);const n=document.createElement("div");return n.append(e),m(n,t,i.type),n}})),s(l,"renderField"),s(u,"renderQualifiedField"),s(c,"renderDirective"),s(d,"renderArg"),s(f,"renderEnumValue"),s(p,"renderTypeAnnotation"),s(h,"renderType"),s(m,"renderDescription"),s(g,"renderDeprecation"),s(v,"text")},6537:(e,t,n)=>{n(7801)},6540:(e,t,n)=>{e.exports=n(5287)},6547:(e,t,n)=>{n.d(t,{y:()=>l});var r=n(5995);const i=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function o(e){return a[e.charCodeAt(0)]}const a=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var s=n(4705);function l(e){return(0,s.YR)(e,u)}const u={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>c(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=f("(",c(e.variableDefinitions,", "),")"),n=c([e.operation,c([e.name,t]),c(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+f(" = ",n)+f(" ",c(r," "))},SelectionSet:{leave:({selections:e})=>d(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=f("",e,": ")+t;let a=o+f("(",c(n,", "),")");return a.length>80&&(a=o+f("(\n",p(c(n,"\n")),"\n)")),c([a,c(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+f(" ",c(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>c(["...",f("on ",e),c(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${f("(",c(n,", "),")")} on ${t} ${f("",c(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,r.yo)(e):`"${e.replace(i,o)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+c(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+c(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+f("(",c(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>f("",e,"\n")+c(["schema",c(t," "),d(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>f("",e,"\n")+c(["scalar",t,c(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>f("",e,"\n")+c(["type",t,f("implements ",c(n," & ")),c(r," "),d(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>f("",e,"\n")+t+(h(n)?f("(\n",p(c(n,"\n")),"\n)"):f("(",c(n,", "),")"))+": "+r+f(" ",c(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>f("",e,"\n")+c([t+": "+n,f("= ",r),c(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>f("",e,"\n")+c(["interface",t,f("implements ",c(n," & ")),c(r," "),d(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>f("",e,"\n")+c(["union",t,c(n," "),f("= ",c(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>f("",e,"\n")+c(["enum",t,c(n," "),d(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>f("",e,"\n")+c([t,c(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>f("",e,"\n")+c(["input",t,c(n," "),d(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>f("",e,"\n")+"directive @"+t+(h(n)?f("(\n",p(c(n,"\n")),"\n)"):f("(",c(n,", "),")"))+(r?" repeatable":"")+" on "+c(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>c(["extend schema",c(e," "),d(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>c(["extend scalar",e,c(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>c(["extend type",e,f("implements ",c(t," & ")),c(n," "),d(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>c(["extend interface",e,f("implements ",c(t," & ")),c(n," "),d(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>c(["extend union",e,c(t," "),f("= ",c(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>c(["extend enum",e,c(t," "),d(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>c(["extend input",e,c(t," "),d(n)]," ")}};function c(e,t=""){var n;return null!==(n=null==e?void 0:e.filter((e=>e)).join(t))&&void 0!==n?n:""}function d(e){return f("{\n",p(c(e,"\n")),"\n}")}function f(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function p(e){return f(" ",e.replace(/\n/g,"\n "))}function h(e){var t;return null!==(t=null==e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}},6623:(e,t,n)=>{n.d(t,{MD:()=>i,TZ:()=>l,VK:()=>a,_m:()=>o,a6:()=>d,aR:()=>s,dI:()=>u,fT:()=>f,i7:()=>p,xu:()=>c});var r=n(3298);function i(e){return o(e)||c(e)||f(e)}function o(e){return e.kind===r.b.OPERATION_DEFINITION||e.kind===r.b.FRAGMENT_DEFINITION}function a(e){return e.kind===r.b.FIELD||e.kind===r.b.FRAGMENT_SPREAD||e.kind===r.b.INLINE_FRAGMENT}function s(e){return e.kind===r.b.VARIABLE||e.kind===r.b.INT||e.kind===r.b.FLOAT||e.kind===r.b.STRING||e.kind===r.b.BOOLEAN||e.kind===r.b.NULL||e.kind===r.b.ENUM||e.kind===r.b.LIST||e.kind===r.b.OBJECT}function l(e){return s(e)&&(e.kind===r.b.LIST?e.values.some(l):e.kind===r.b.OBJECT?e.fields.some((e=>l(e.value))):e.kind!==r.b.VARIABLE)}function u(e){return e.kind===r.b.NAMED_TYPE||e.kind===r.b.LIST_TYPE||e.kind===r.b.NON_NULL_TYPE}function c(e){return e.kind===r.b.SCHEMA_DEFINITION||d(e)||e.kind===r.b.DIRECTIVE_DEFINITION}function d(e){return e.kind===r.b.SCALAR_TYPE_DEFINITION||e.kind===r.b.OBJECT_TYPE_DEFINITION||e.kind===r.b.INTERFACE_TYPE_DEFINITION||e.kind===r.b.UNION_TYPE_DEFINITION||e.kind===r.b.ENUM_TYPE_DEFINITION||e.kind===r.b.INPUT_OBJECT_TYPE_DEFINITION}function f(e){return e.kind===r.b.SCHEMA_EXTENSION||p(e)}function p(e){return e.kind===r.b.SCALAR_TYPE_EXTENSION||e.kind===r.b.OBJECT_TYPE_EXTENSION||e.kind===r.b.INTERFACE_TYPE_EXTENSION||e.kind===r.b.UNION_TYPE_EXTENSION||e.kind===r.b.ENUM_TYPE_EXTENSION||e.kind===r.b.INPUT_OBJECT_TYPE_EXTENSION}},6681:(e,t,n)=>{n.r(t);var r=n(3338),i=(n(166),n(6540),n(4848),n(961),Object.defineProperty),o=(e,t)=>i(e,"name",{value:t,configurable:!0});function a(e){return{options:e instanceof Function?{render:e}:!0===e?{}:e}}function s(e){const{options:t}=e.state.info;return(null==t?void 0:t.hoverTime)||500}function l(e,t){const n=e.state.info,i=t.target||t.srcElement;if(!(i instanceof HTMLElement))return;if("SPAN"!==i.nodeName||void 0!==n.hoverTimeout)return;const a=i.getBoundingClientRect(),l=o((function(){clearTimeout(n.hoverTimeout),n.hoverTimeout=setTimeout(d,f)}),"onMouseMove"),c=o((function(){r.C.off(document,"mousemove",l),r.C.off(e.getWrapperElement(),"mouseout",c),clearTimeout(n.hoverTimeout),n.hoverTimeout=void 0}),"onMouseOut"),d=o((function(){r.C.off(document,"mousemove",l),r.C.off(e.getWrapperElement(),"mouseout",c),n.hoverTimeout=void 0,u(e,a)}),"onHover"),f=s(e);n.hoverTimeout=setTimeout(d,f),r.C.on(document,"mousemove",l),r.C.on(e.getWrapperElement(),"mouseout",c)}function u(e,t){const n=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}),r=e.state.info,{options:i}=r,o=i.render||e.getHelper(n,"info");if(o){const r=e.getTokenAt(n,!0);if(r){const a=o(r,i,e,n);a&&c(e,t,a)}}}function c(e,t,n){const i=document.createElement("div");i.className="CodeMirror-info",i.append(n),document.body.append(i);const a=i.getBoundingClientRect(),s=window.getComputedStyle(i),l=a.right-a.left+parseFloat(s.marginLeft)+parseFloat(s.marginRight),u=a.bottom-a.top+parseFloat(s.marginTop)+parseFloat(s.marginBottom);let c=t.bottom;u>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(c=t.top-u),c<0&&(c=t.bottom);let d,f=Math.max(0,window.innerWidth-l-15);f>t.left&&(f=t.left),i.style.opacity="1",i.style.top=c+"px",i.style.left=f+"px";const p=o((function(){clearTimeout(d)}),"onMouseOverPopup"),h=o((function(){clearTimeout(d),d=setTimeout(m,200)}),"onMouseOut"),m=o((function(){r.C.off(i,"mouseover",p),r.C.off(i,"mouseout",h),r.C.off(e.getWrapperElement(),"mouseout",h),i.style.opacity?(i.style.opacity="0",setTimeout((()=>{i.parentNode&&i.remove()}),600)):i.parentNode&&i.remove()}),"hidePopup");r.C.on(i,"mouseover",p),r.C.on(i,"mouseout",h),r.C.on(e.getWrapperElement(),"mouseout",h)}r.C.defineOption("info",!1,((e,t,n)=>{if(n&&n!==r.C.Init){const t=e.state.info.onMouseOver;r.C.off(e.getWrapperElement(),"mouseover",t),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){const n=e.state.info=a(t);n.onMouseOver=l.bind(null,e),r.C.on(e.getWrapperElement(),"mouseover",n.onMouseOver)}})),o(a,"createState"),o(s,"getHoverTime"),o(l,"onMouseOver"),o(u,"onMouseHover"),o(c,"showPopup")},6834:(e,t,n)=>{n.d(t,{n:()=>i});var r=n(4786);function i(e){const t=Object.create(null),n=[],i=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:e=>(o(e),!1)};function o(a){if(t[a.name.value])return;const s=a.name.value;t[s]=!0;const l=e.getFragmentSpreads(a.selectionSet);if(0!==l.length){i[s]=n.length;for(const t of l){const a=t.name.value,s=i[a];if(n.push(t),void 0===s){const t=e.getFragment(a);t&&o(t)}else{const t=n.slice(s),i=t.slice(0,-1).map((e=>'"'+e.name.value+'"')).join(", ");e.reportError(new r.eO(`Cannot spread fragment "${a}" within itself`+(""!==i?` via ${i}.`:"."),{nodes:t}))}n.pop()}i[s]=void 0}}}},6951:(e,t,n)=>{n.r(t);var r=n(3338),i=n(8028),o=n(5197),a=n(5621),s=n(7721),l=n(1014),u=n(9238),c=n(9993),d=n(2101),f=n(9731),p=n(2029),h=n(962),m=n(541),g=n(5795),v=n(5848),y=n(6276),b=n(6025),E=n(9398),w=n(3298),k=n(6547),T=n(9004),x=n(4786),C=n(177),S=n(166),N=n(4601),_=(n(6540),n(4848),n(961),Object.defineProperty),O=(e,t)=>_(e,"name",{value:t,configurable:!0});const I=[i.l,o.u,a.i,s.g,l.X,u.Z,c.y,d.e,f.U,p.S,h.J,m.C];function A(e,t,n,r,i){const o=g.gv.filter((e=>e!==v.z&&e!==y.T&&(!r||e!==b.K)));return n&&Array.prototype.push.apply(o,n),i&&Array.prototype.push.apply(o,I),(0,E.tf)(e,t,o).filter((e=>{if(e.message.includes("Unknown directive")&&e.nodes){const t=e.nodes[0];if(t&&t.kind===w.b.DIRECTIVE){const e=t.name.value;if("arguments"===e||"argumentDefinitions"===e)return!1}}return!0}))}O(A,"validateWithCustomRules");const D="Error",L="Warning",M="Information",F="Hint",R={[D]:1,[L]:2,[M]:3,[F]:4},P=O(((e,t)=>{if(!e)throw new Error(t)}),"invariant");function j(e,t=null,n,r,i){var o,a;let s=null,l="";i&&(l="string"==typeof i?i:i.reduce(((e,t)=>e+(0,k.y)(t)+"\n\n"),""));const u=l?`${e}\n\n${l}`:e;try{s=(0,T.qg)(u)}catch(e){if(e instanceof x.eO){const t=B(null!==(a=null===(o=e.locations)||void 0===o?void 0:o[0])&&void 0!==a?a:{line:0,column:0},u);return[{severity:R.Error,message:e.message,source:"GraphQL: Syntax",range:t}]}throw e}return V(s,t,n,r)}function V(e,t=null,n,r){if(!t)return[];const i=A(t,e,n,r).flatMap((e=>U(e,R.Error,"Validation"))),o=(0,E.tf)(t,e,[C.k]).flatMap((e=>U(e,R.Warning,"Deprecation")));return i.concat(o)}function U(e,t,n){if(!e.nodes)return[];const r=[];for(const[i,o]of e.nodes.entries()){const a="Variable"!==o.kind&&"name"in o&&void 0!==o.name?o.name:"variable"in o&&void 0!==o.variable?o.variable:o;if(a){P(e.locations,"GraphQL validation error requires locations.");const o=e.locations[i],s=$(a),l=o.column+(s.end-s.start);r.push({source:`GraphQL: ${n}`,message:e.message,severity:t,range:new N.R(new N.P(o.line-1,o.column-1),new N.P(o.line-1,l))})}}return r}function B(e,t){const n=(0,S.o)(),r=n.startState(),i=t.split("\n");P(i.length>=e.line,"Query text must have more lines than where the error happened");let o=null;for(let t=0;t<e.line;t++)for(o=new S.C(i[t]);!o.eol()&&"invalidchar"!==n.token(o,r););P(o,"Expected Parser stream to be available.");const a=e.line-1,s=o.getStartOfToken(),l=o.getCurrentPosition();return new N.R(new N.P(a,s),new N.P(a,l))}function $(e){const t=e.loc;return P(t,"Expected ASTNode to have a location."),t}O(j,"getDiagnostics"),O(V,"validateQuery"),O(U,"annotations"),O(B,"getRange"),O($,"getLocation");const q=["error","warning","information","hint"],H={"GraphQL: Validation":"validation","GraphQL: Deprecation":"deprecation","GraphQL: Syntax":"syntax"};r.C.registerHelper("lint","graphql",((e,t)=>{const{schema:n,validationRules:i,externalFragments:o}=t;return j(e,n,i,void 0,o).map((e=>({message:e.message,severity:e.severity?q[e.severity-1]:q[0],type:e.source?H[e.source]:void 0,from:r.C.Pos(e.range.start.line,e.range.start.character),to:r.C.Pos(e.range.end.line,e.range.end.character)})))}))},7109:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(129),i=n(4786),o=n(7167);function a(e){return{Field(t){const n=e.getType(),a=t.selectionSet;if(n)if((0,o.zf)((0,o.MR)(n))){if(a){const o=t.name.value,s=(0,r.N)(n);e.reportError(new i.eO(`Field "${o}" must not have a selection since type "${s}" has no subfields.`,{nodes:a}))}}else if(a){if(0===a.selections.length){const o=t.name.value,a=(0,r.N)(n);e.reportError(new i.eO(`Field "${o}" of type "${a}" must have at least one field selected.`,{nodes:t}))}}else{const o=t.name.value,a=(0,r.N)(n);e.reportError(new i.eO(`Field "${o}" of type "${a}" must have a selection of subfields. Did you mean "${o} { ... }"?`,{nodes:t}))}}}}},7167:(e,t,n)=>{n.d(t,{Zb:()=>ve,zP:()=>Ee,VA:()=>he,KT:()=>W,Gc:()=>Y,bh:()=>ae,Ag:()=>oe,hI:()=>me,g0:()=>fe,N_:()=>G,Ye:()=>H,el:()=>I,Yq:()=>D,L9:()=>j,qL:()=>S,D0:()=>$,dL:()=>M,sF:()=>te,ZX:()=>R,wG:()=>X,qC:()=>x,yh:()=>U,Zx:()=>k,j:()=>E,EG:()=>_,B3:()=>Q,Kx:()=>ue,MR:()=>ne,yl:()=>Z,Lc:()=>z,ML:()=>q,oF:()=>O,qK:()=>A,dX:()=>P,kD:()=>C,zf:()=>B,Fs:()=>L,sy:()=>ee,bd:()=>F,wj:()=>J,YQ:()=>T,oH:()=>V,xP:()=>pe,YX:()=>ke,lg:()=>w,Xj:()=>b,CK:()=>N,lS:()=>K,qN:()=>ie,aj:()=>re});var r=n(6286),i=n(8100);function o(e){return e}var a=n(129),s=n(4621),l=n(2475),u=n(2242),c=n(9321),d=n(4950),f=n(2239),p=n(4279),h=n(4786),m=n(3298),g=n(6547),v=n(8129),y=n(2300);function b(e){return w(e)||T(e)||C(e)||N(e)||O(e)||A(e)||L(e)||F(e)}function E(e){if(!b(e))throw new Error(`Expected ${(0,a.N)(e)} to be a GraphQL type.`);return e}function w(e){return(0,s.h)(e,oe)}function k(e){if(!w(e))throw new Error(`Expected ${(0,a.N)(e)} to be a GraphQL Scalar type.`);return e}function T(e){return(0,s.h)(e,ae)}function x(e){if(!T(e))throw new Error(`Expected ${(0,a.N)(e)} to be a GraphQL Object type.`);return e}function C(e){return(0,s.h)(e,he)}function S(e){if(!C(e))throw new Error(`Expected ${(0,a.N)(e)} to be a GraphQL Interface type.`);return e}function N(e){return(0,s.h)(e,me)}function _(e){if(!N(e))throw new Error(`Expected ${(0,a.N)(e)} to be a GraphQL Union type.`);return e}function O(e){return(0,s.h)(e,ve)}function I(e){if(!O(e))throw new Error(`Expected ${(0,a.N)(e)} to be a GraphQL Enum type.`);return e}function A(e){return(0,s.h)(e,Ee)}function D(e){if(!A(e))throw new Error(`Expected ${(0,a.N)(e)} to be a GraphQL Input Object type.`);return e}function L(e){return(0,s.h)(e,W)}function M(e){if(!L(e))throw new Error(`Expected ${(0,a.N)(e)} to be a GraphQL List type.`);return e}function F(e){return(0,s.h)(e,Y)}function R(e){if(!F(e))throw new Error(`Expected ${(0,a.N)(e)} to be a GraphQL Non-Null type.`);return e}function P(e){return w(e)||O(e)||A(e)||K(e)&&P(e.ofType)}function j(e){if(!P(e))throw new Error(`Expected ${(0,a.N)(e)} to be a GraphQL input type.`);return e}function V(e){return w(e)||T(e)||C(e)||N(e)||O(e)||K(e)&&V(e.ofType)}function U(e){if(!V(e))throw new Error(`Expected ${(0,a.N)(e)} to be a GraphQL output type.`);return e}function B(e){return w(e)||O(e)}function $(e){if(!B(e))throw new Error(`Expected ${(0,a.N)(e)} to be a GraphQL leaf type.`);return e}function q(e){return T(e)||C(e)||N(e)}function H(e){if(!q(e))throw new Error(`Expected ${(0,a.N)(e)} to be a GraphQL composite type.`);return e}function z(e){return C(e)||N(e)}function G(e){if(!z(e))throw new Error(`Expected ${(0,a.N)(e)} to be a GraphQL abstract type.`);return e}class W{constructor(e){b(e)||(0,r.U)(!1,`Expected ${(0,a.N)(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}class Y{constructor(e){J(e)||(0,r.U)(!1,`Expected ${(0,a.N)(e)} to be a GraphQL nullable type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function K(e){return L(e)||F(e)}function Q(e){if(!K(e))throw new Error(`Expected ${(0,a.N)(e)} to be a GraphQL wrapping type.`);return e}function J(e){return b(e)&&!F(e)}function X(e){if(!J(e))throw new Error(`Expected ${(0,a.N)(e)} to be a GraphQL nullable type.`);return e}function Z(e){if(e)return F(e)?e.ofType:e}function ee(e){return w(e)||T(e)||C(e)||N(e)||O(e)||A(e)}function te(e){if(!ee(e))throw new Error(`Expected ${(0,a.N)(e)} to be a GraphQL named type.`);return e}function ne(e){if(e){let t=e;for(;K(t);)t=t.ofType;return t}}function re(e){return"function"==typeof e?e():e}function ie(e){return"function"==typeof e?e():e}class oe{constructor(e){var t,n,i,s;const l=null!==(t=e.parseValue)&&void 0!==t?t:o;this.name=(0,y.I)(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:o,this.parseValue=l,this.parseLiteral=null!==(i=e.parseLiteral)&&void 0!==i?i:(e,t)=>l((0,v.F)(e,t)),this.extensions=(0,p.z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(s=e.extensionASTNodes)&&void 0!==s?s:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||(0,r.U)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,a.N)(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||(0,r.U)(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||(0,r.U)(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class ae{constructor(e){var t;this.name=(0,y.I)(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=(0,p.z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=()=>le(e),this._interfaces=()=>se(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||(0,r.U)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,a.N)(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:de(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function se(e){var t;const n=re(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(n)||(0,r.U)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function le(e){const t=ie(e.fields);return ce(t)||(0,r.U)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,d.I)(t,((t,n)=>{var i;ce(t)||(0,r.U)(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||(0,r.U)(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${(0,a.N)(t.resolve)}.`);const o=null!==(i=t.args)&&void 0!==i?i:{};return ce(o)||(0,r.U)(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:(0,y.I)(n),description:t.description,type:t.type,args:ue(o),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:(0,p.z)(t.extensions),astNode:t.astNode}}))}function ue(e){return Object.entries(e).map((([e,t])=>({name:(0,y.I)(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,p.z)(t.extensions),astNode:t.astNode})))}function ce(e){return(0,l.Z)(e)&&!Array.isArray(e)}function de(e){return(0,d.I)(e,(e=>({description:e.description,type:e.type,args:fe(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function fe(e){return(0,c.L)(e,(e=>e.name),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function pe(e){return F(e.type)&&void 0===e.defaultValue}class he{constructor(e){var t;this.name=(0,y.I)(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=(0,p.z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=le.bind(void 0,e),this._interfaces=se.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||(0,r.U)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,a.N)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:de(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class me{constructor(e){var t;this.name=(0,y.I)(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=(0,p.z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._types=ge.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||(0,r.U)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,a.N)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function ge(e){const t=re(e.types);return Array.isArray(t)||(0,r.U)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class ve{constructor(e){var t;this.name=(0,y.I)(e.name),this.description=e.description,this.extensions=(0,p.z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._values="function"==typeof e.values?e.values:be(this.name,e.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return"function"==typeof this._values&&(this._values=be(this.name,this._values())),this._values}getValue(e){return null===this._nameLookup&&(this._nameLookup=(0,u.K)(this.getValues(),(e=>e.name))),this._nameLookup[e]}serialize(e){null===this._valueLookup&&(this._valueLookup=new Map(this.getValues().map((e=>[e.value,e]))));const t=this._valueLookup.get(e);if(void 0===t)throw new h.eO(`Enum "${this.name}" cannot represent value: ${(0,a.N)(e)}`);return t.name}parseValue(e){if("string"!=typeof e){const t=(0,a.N)(e);throw new h.eO(`Enum "${this.name}" cannot represent non-string value: ${t}.`+ye(this,t))}const t=this.getValue(e);if(null==t)throw new h.eO(`Value "${e}" does not exist in "${this.name}" enum.`+ye(this,e));return t.value}parseLiteral(e,t){if(e.kind!==m.b.ENUM){const t=(0,g.y)(e);throw new h.eO(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+ye(this,t),{nodes:e})}const n=this.getValue(e.value);if(null==n){const t=(0,g.y)(e);throw new h.eO(`Value "${t}" does not exist in "${this.name}" enum.`+ye(this,t),{nodes:e})}return n.value}toConfig(){const e=(0,c.L)(this.getValues(),(e=>e.name),(e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function ye(e,t){const n=e.getValues().map((e=>e.name)),r=(0,f.x)(t,n);return(0,i.a)("the enum value",r)}function be(e,t){return ce(t)||(0,r.U)(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map((([t,n])=>(ce(n)||(0,r.U)(!1,`${e}.${t} must refer to an object with a "value" key representing an internal value but got: ${(0,a.N)(n)}.`),{name:(0,y.A)(t),description:n.description,value:void 0!==n.value?n.value:t,deprecationReason:n.deprecationReason,extensions:(0,p.z)(n.extensions),astNode:n.astNode})))}class Ee{constructor(e){var t,n;this.name=(0,y.I)(e.name),this.description=e.description,this.extensions=(0,p.z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this.isOneOf=null!==(n=e.isOneOf)&&void 0!==n&&n,this._fields=we.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){const e=(0,d.I)(this.getFields(),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}function we(e){const t=ie(e.fields);return ce(t)||(0,r.U)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,d.I)(t,((t,n)=>(!("resolve"in t)||(0,r.U)(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,y.I)(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,p.z)(t.extensions),astNode:t.astNode})))}function ke(e){return F(e.type)&&void 0===e.defaultValue}},7234:(e,t,n)=>{n.d(t,{J:()=>s});var r=n(4786),i=n(6547),o=n(7167),a=n(9581);function s(e){return{VariableDefinition(t){const n=(0,a.v)(e.getSchema(),t.type);if(void 0!==n&&!(0,o.dX)(n)){const n=t.variable.name.value,o=(0,i.y)(t.type);e.reportError(new r.eO(`Variable "$${n}" cannot be non-input type "${o}".`,{nodes:t.type}))}}}}},7249:(e,t,n)=>{n.d(t,{y:()=>l});var r=n(129),i=n(4786),o=n(7167),a=n(1578),s=n(9581);function l(e){return{InlineFragment(t){const n=e.getType(),s=e.getParentType();if((0,o.ML)(n)&&(0,o.ML)(s)&&!(0,a.uI)(e.getSchema(),n,s)){const o=(0,r.N)(s),a=(0,r.N)(n);e.reportError(new i.eO(`Fragment cannot be spread here as objects of type "${o}" can never be of type "${a}".`,{nodes:t}))}},FragmentSpread(t){const n=t.name.value,l=function(e,t){const n=e.getFragment(t);if(n){const t=(0,s.v)(e.getSchema(),n.typeCondition);if((0,o.ML)(t))return t}}(e,n),u=e.getParentType();if(l&&u&&!(0,a.uI)(e.getSchema(),l,u)){const o=(0,r.N)(u),a=(0,r.N)(l);e.reportError(new i.eO(`Fragment "${n}" cannot be spread here as objects of type "${o}" can never be of type "${a}".`,{nodes:t}))}}}}},7391:(e,t,n)=>{n.r(t),n.d(t,{s:()=>c});var r=n(3338),i=n(5910),o=n(2382),a=Object.defineProperty,s=(e,t)=>a(e,"name",{value:t,configurable:!0});function l(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}s(l,"_mergeNamespaces");var u={exports:{}};!function(e){var t=e.commands,n=e.Pos;function r(t,r,i){if(i<0&&0==r.ch)return t.clipPos(n(r.line-1));var o=t.getLine(r.line);if(i>0&&r.ch>=o.length)return t.clipPos(n(r.line+1,0));for(var a,s="start",l=r.ch,u=l,c=i<0?0:o.length,d=0;u!=c;u+=i,d++){var f=o.charAt(i<0?u-1:u),p="_"!=f&&e.isWordChar(f)?"w":"o";if("w"==p&&f.toUpperCase()==f&&(p="W"),"start"==s)"o"!=p?(s="in",a=p):l=u+i;else if("in"==s&&a!=p){if("w"==a&&"W"==p&&i<0&&u--,"W"==a&&"w"==p&&i>0){if(u==l+1){a="w";continue}u--}break}}return n(r.line,u)}function i(e,t){e.extendSelectionsBy((function(n){return e.display.shift||e.doc.extend||n.empty()?r(e.doc,n.head,t):t<0?n.from():n.to()}))}function o(t,r){if(t.isReadOnly())return e.Pass;t.operation((function(){for(var e=t.listSelections().length,i=[],o=-1,a=0;a<e;a++){var s=t.listSelections()[a].head;if(!(s.line<=o)){var l=n(s.line+(r?0:1),0);t.replaceRange("\n",l,null,"+insertLine"),t.indentLine(l.line,null,!0),i.push({head:l,anchor:l}),o=s.line+1}}t.setSelections(i)})),t.execCommand("indentAuto")}function a(t,r){for(var i=r.ch,o=i,a=t.getLine(r.line);i&&e.isWordChar(a.charAt(i-1));)--i;for(;o<a.length&&e.isWordChar(a.charAt(o));)++o;return{from:n(r.line,i),to:n(r.line,o),word:a.slice(i,o)}}function l(e,t){for(var n=e.listSelections(),r=[],i=0;i<n.length;i++){var o=n[i],a=e.findPosV(o.anchor,t,"line",o.anchor.goalColumn),s=e.findPosV(o.head,t,"line",o.head.goalColumn);a.goalColumn=null!=o.anchor.goalColumn?o.anchor.goalColumn:e.cursorCoords(o.anchor,"div").left,s.goalColumn=null!=o.head.goalColumn?o.head.goalColumn:e.cursorCoords(o.head,"div").left;var l={anchor:a,head:s};r.push(o),r.push(l)}e.setSelections(r)}function u(t,n,r){for(var i=0;i<t.length;i++)if(0==e.cmpPos(t[i].from(),n)&&0==e.cmpPos(t[i].to(),r))return!0;return!1}s(r,"findPosSubword"),s(i,"moveSubword"),t.goSubwordLeft=function(e){i(e,-1)},t.goSubwordRight=function(e){i(e,1)},t.scrollLineUp=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top+t.clientHeight,"local");e.getCursor().line>=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},t.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},t.splitSelectionByLine=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++)for(var o=t[i].from(),a=t[i].to(),s=o.line;s<=a.line;++s)a.line>o.line&&s==a.line&&0==a.ch||r.push({anchor:s==o.line?o:n(s,0),head:s==a.line?a:n(s)});e.setSelections(r,0)},t.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},t.selectLine=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++){var o=t[i];r.push({anchor:n(o.from().line,0),head:n(o.to().line+1,0)})}e.setSelections(r)},s(o,"insertLine"),t.insertLineAfter=function(e){return o(e,!1)},t.insertLineBefore=function(e){return o(e,!0)},s(a,"wordAt"),t.selectNextOccurrence=function(t){var r=t.getCursor("from"),i=t.getCursor("to"),o=t.state.sublimeFindFullWord==t.doc.sel;if(0==e.cmpPos(r,i)){var s=a(t,r);if(!s.word)return;t.setSelection(s.from,s.to),o=!0}else{var l=t.getRange(r,i),c=o?new RegExp("\\b"+l+"\\b"):l,d=t.getSearchCursor(c,i),f=d.findNext();if(f||(f=(d=t.getSearchCursor(c,n(t.firstLine(),0))).findNext()),!f||u(t.listSelections(),d.from(),d.to()))return;t.addSelection(d.from(),d.to())}o&&(t.state.sublimeFindFullWord=t.doc.sel)},t.skipAndSelectNextOccurrence=function(n){var r=n.getCursor("anchor"),i=n.getCursor("head");t.selectNextOccurrence(n),0!=e.cmpPos(r,i)&&n.doc.setSelections(n.doc.listSelections().filter((function(e){return e.anchor!=r||e.head!=i})))},s(l,"addCursorToSelection"),t.addCursorToPrevLine=function(e){l(e,-1)},t.addCursorToNextLine=function(e){l(e,1)},s(u,"isSelectedRange");var c="(){}[]";function d(t){for(var r=t.listSelections(),i=[],o=0;o<r.length;o++){var a=r[o],s=a.head,l=t.scanForBracket(s,-1);if(!l)return!1;for(;;){var u=t.scanForBracket(s,1);if(!u)return!1;if(u.ch==c.charAt(c.indexOf(l.ch)+1)){var d=n(l.pos.line,l.pos.ch+1);if(0!=e.cmpPos(d,a.from())||0!=e.cmpPos(u.pos,a.to())){i.push({anchor:d,head:u.pos});break}if(!(l=t.scanForBracket(l.pos,-1)))return!1}s=n(u.pos.line,u.pos.ch+1)}}return t.setSelections(i),!0}function f(e){return e?/\bpunctuation\b/.test(e)?e:void 0:null}function p(t,r,i){if(t.isReadOnly())return e.Pass;for(var o,a=t.listSelections(),s=[],l=0;l<a.length;l++){var u=a[l];if(!u.empty()){for(var c=u.from().line,d=u.to().line;l<a.length-1&&a[l+1].from().line==d;)d=a[++l].to().line;a[l].to().ch||d--,s.push(c,d)}}s.length?o=!0:s.push(t.firstLine(),t.lastLine()),t.operation((function(){for(var e=[],a=0;a<s.length;a+=2){var l=s[a],u=s[a+1],c=n(l,0),d=n(u),f=t.getRange(c,d,!1);r?f.sort((function(e,t){return e<t?-i:e==t?0:i})):f.sort((function(e,t){var n=e.toUpperCase(),r=t.toUpperCase();return n!=r&&(e=n,t=r),e<t?-i:e==t?0:i})),t.replaceRange(f,c,d),o&&e.push({anchor:c,head:n(u+1,0)})}o&&t.setSelections(e,0)}))}function h(t,n){t.operation((function(){for(var r=t.listSelections(),i=[],o=[],s=0;s<r.length;s++)(u=r[s]).empty()?(i.push(s),o.push("")):o.push(n(t.getRange(u.from(),u.to())));var l;for(t.replaceSelections(o,"around","case"),s=i.length-1;s>=0;s--){var u=r[i[s]];if(!(l&&e.cmpPos(u.head,l)>0)){var c=a(t,u.head);l=c.from,t.replaceRange(n(c.word),c.from,c.to)}}}))}function m(t){var n=t.getCursor("from"),r=t.getCursor("to");if(0==e.cmpPos(n,r)){var i=a(t,n);if(!i.word)return;n=i.from,r=i.to}return{from:n,to:r,query:t.getRange(n,r),word:i}}function g(e,t){var r=m(e);if(r){var i=r.query,o=e.getSearchCursor(i,t?r.to:r.from);(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):(o=e.getSearchCursor(i,t?n(e.firstLine(),0):e.clipPos(n(e.lastLine()))),(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):r.word&&e.setSelection(r.from,r.to))}}s(d,"selectBetweenBrackets"),t.selectScope=function(e){d(e)||e.execCommand("selectAll")},t.selectBetweenBrackets=function(t){if(!d(t))return e.Pass},s(f,"puncType"),t.goToBracket=function(t){t.extendSelectionsBy((function(r){var i=t.scanForBracket(r.head,1,f(t.getTokenTypeAt(r.head)));if(i&&0!=e.cmpPos(i.pos,r.head))return i.pos;var o=t.scanForBracket(r.head,-1,f(t.getTokenTypeAt(n(r.head.line,r.head.ch+1))));return o&&n(o.pos.line,o.pos.ch+1)||r.head}))},t.swapLineUp=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.firstLine()-1,a=[],s=0;s<r.length;s++){var l=r[s],u=l.from().line-1,c=l.to().line;a.push({anchor:n(l.anchor.line-1,l.anchor.ch),head:n(l.head.line-1,l.head.ch)}),0!=l.to().ch||l.empty()||--c,u>o?i.push(u,c):i.length&&(i[i.length-1]=c),o=c}t.operation((function(){for(var e=0;e<i.length;e+=2){var r=i[e],o=i[e+1],s=t.getLine(r);t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),o>t.lastLine()?t.replaceRange("\n"+s,n(t.lastLine()),null,"+swapLine"):t.replaceRange(s+"\n",n(o,0),null,"+swapLine")}t.setSelections(a),t.scrollIntoView()}))},t.swapLineDown=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.lastLine()+1,a=r.length-1;a>=0;a--){var s=r[a],l=s.to().line+1,u=s.from().line;0!=s.to().ch||s.empty()||l--,l<o?i.push(l,u):i.length&&(i[i.length-1]=u),o=u}t.operation((function(){for(var e=i.length-2;e>=0;e-=2){var r=i[e],o=i[e+1],a=t.getLine(r);r==t.lastLine()?t.replaceRange("",n(r-1),n(r),"+swapLine"):t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),t.replaceRange(a+"\n",n(o,0),null,"+swapLine")}t.scrollIntoView()}))},t.toggleCommentIndented=function(e){e.toggleComment({indent:!0})},t.joinLines=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++){for(var o=t[i],a=o.from(),s=a.line,l=o.to().line;i<t.length-1&&t[i+1].from().line==l;)l=t[++i].to().line;r.push({start:s,end:l,anchor:!o.empty()&&a})}e.operation((function(){for(var t=0,i=[],o=0;o<r.length;o++){for(var a,s=r[o],l=s.anchor&&n(s.anchor.line-t,s.anchor.ch),u=s.start;u<=s.end;u++){var c=u-t;u==s.end&&(a=n(c,e.getLine(c).length+1)),c<e.lastLine()&&(e.replaceRange(" ",n(c),n(c+1,/^\s*/.exec(e.getLine(c+1))[0].length)),++t)}i.push({anchor:l||a,head:a})}e.setSelections(i,0)}))},t.duplicateLine=function(e){e.operation((function(){for(var t=e.listSelections().length,r=0;r<t;r++){var i=e.listSelections()[r];i.empty()?e.replaceRange(e.getLine(i.head.line)+"\n",n(i.head.line,0)):e.replaceRange(e.getRange(i.from(),i.to()),i.from())}e.scrollIntoView()}))},s(p,"sortLines"),t.sortLines=function(e){p(e,!0,1)},t.reverseSortLines=function(e){p(e,!0,-1)},t.sortLinesInsensitive=function(e){p(e,!1,1)},t.reverseSortLinesInsensitive=function(e){p(e,!1,-1)},t.nextBookmark=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){var n=t.shift(),r=n.find();if(r)return t.push(n),e.setSelection(r.from,r.to)}},t.prevBookmark=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){t.unshift(t.pop());var n=t[t.length-1].find();if(n)return e.setSelection(n.from,n.to);t.pop()}},t.toggleBookmark=function(e){for(var t=e.listSelections(),n=e.state.sublimeBookmarks||(e.state.sublimeBookmarks=[]),r=0;r<t.length;r++){for(var i=t[r].from(),o=t[r].to(),a=t[r].empty()?e.findMarksAt(i):e.findMarks(i,o),s=0;s<a.length;s++)if(a[s].sublimeBookmark){a[s].clear();for(var l=0;l<n.length;l++)n[l]==a[s]&&n.splice(l--,1);break}s==a.length&&n.push(e.markText(i,o,{sublimeBookmark:!0,clearWhenEmpty:!1}))}},t.clearBookmarks=function(e){var t=e.state.sublimeBookmarks;if(t)for(var n=0;n<t.length;n++)t[n].clear();t.length=0},t.selectBookmarks=function(e){var t=e.state.sublimeBookmarks,n=[];if(t)for(var r=0;r<t.length;r++){var i=t[r].find();i?n.push({anchor:i.from,head:i.to}):t.splice(r--,0)}n.length&&e.setSelections(n,0)},s(h,"modifyWordOrSelection"),t.smartBackspace=function(t){if(t.somethingSelected())return e.Pass;t.operation((function(){for(var r=t.listSelections(),i=t.getOption("indentUnit"),o=r.length-1;o>=0;o--){var a=r[o].head,s=t.getRange({line:a.line,ch:0},a),l=e.countColumn(s,null,t.getOption("tabSize")),u=t.findPosH(a,-1,"char",!1);if(s&&!/\S/.test(s)&&l%i==0){var c=new n(a.line,e.findColumn(s,l-i,i));c.ch!=a.ch&&(u=c)}t.replaceRange("",u,a,"+delete")}}))},t.delLineRight=function(e){e.operation((function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange("",t[r].anchor,n(t[r].to().line),"+delete");e.scrollIntoView()}))},t.upcaseAtCursor=function(e){h(e,(function(e){return e.toUpperCase()}))},t.downcaseAtCursor=function(e){h(e,(function(e){return e.toLowerCase()}))},t.setSublimeMark=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},t.selectToSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},t.deleteToSublimeMark=function(t){var n=t.state.sublimeMark&&t.state.sublimeMark.find();if(n){var r=t.getCursor(),i=n;if(e.cmpPos(r,i)>0){var o=i;i=r,r=o}t.state.sublimeKilled=t.getRange(r,i),t.replaceRange("",r,i)}},t.swapWithSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&(e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor()),e.setCursor(t))},t.sublimeYank=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},t.showInCenter=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)},s(m,"getTarget"),s(g,"findAndGoTo"),t.findUnder=function(e){g(e,!0)},t.findUnderPrevious=function(e){g(e,!1)},t.findAllUnder=function(e){var t=m(e);if(t){for(var n=e.getSearchCursor(t.query),r=[],i=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=t.from.line&&n.from().ch<=t.from.ch&&i++;e.setSelections(r,i)}};var v=e.keyMap;v.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Shift-F5":"reverseSortLines","Cmd-F5":"sortLinesInsensitive","Shift-Cmd-F5":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},e.normalizeKeyMap(v.macSublime),v.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Shift-F9":"reverseSortLines","Ctrl-F9":"sortLinesInsensitive","Shift-Ctrl-F9":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},e.normalizeKeyMap(v.pcSublime);var y=v.default==v.macDefault;v.sublime=y?v.macSublime:v.pcSublime}(r.a.exports,i.a.exports,o.a.exports);var c=l({__proto__:null,default:u.exports},[u.exports])},7437:(e,t,n)=>{function r(e,t){const n=[];let r=e;for(;null==r?void 0:r.kind;)n.push(r),r=r.prevState;for(let e=n.length-1;e>=0;e--)t(n[e])}n.d(t,{f:()=>r}),(0,Object.defineProperty)(r,"name",{value:"forEachState",configurable:!0})},7463:(e,t)=>{var n,r,i,o;if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,c=null,d=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(e){throw setTimeout(d,0),e}};n=function(e){null!==u?setTimeout(n,0,e):(u=e,setTimeout(d,0))},r=function(e,t){c=setTimeout(e,t)},i=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,p=window.clearTimeout;if("undefined"!=typeof console){var h=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,g=null,v=-1,y=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<e?Math.floor(1e3/e):5};var E=new MessageChannel,w=E.port2;E.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();b=e+y;try{g(!0,e)?w.postMessage(null):(m=!1,g=null)}catch(e){throw w.postMessage(null),e}}else m=!1},n=function(e){g=e,m||(m=!0,w.postMessage(null))},r=function(e,n){v=f((function(){e(t.unstable_now())}),n)},i=function(){p(v),v=-1}}function k(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<C(i,t)))break e;e[r]=t,e[n]=i,n=r}}function T(e){return void 0===(e=e[0])?null:e}function x(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],s=o+1,l=e[s];if(void 0!==a&&0>C(a,n))void 0!==l&&0>C(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==l&&0>C(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function C(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var S=[],N=[],_=1,O=null,I=3,A=!1,D=!1,L=!1;function M(e){for(var t=T(N);null!==t;){if(null===t.callback)x(N);else{if(!(t.startTime<=e))break;x(N),t.sortIndex=t.expirationTime,k(S,t)}t=T(N)}}function F(e){if(L=!1,M(e),!D)if(null!==T(S))D=!0,n(R);else{var t=T(N);null!==t&&r(F,t.startTime-e)}}function R(e,n){D=!1,L&&(L=!1,i()),A=!0;var o=I;try{for(M(n),O=T(S);null!==O&&(!(O.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=O.callback;if("function"==typeof a){O.callback=null,I=O.priorityLevel;var s=a(O.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?O.callback=s:O===T(S)&&x(S),M(n)}else x(S);O=T(S)}if(null!==O)var l=!0;else{var u=T(N);null!==u&&r(F,u.startTime-n),l=!1}return l}finally{O=null,I=o,A=!1}}var P=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){D||A||(D=!0,n(R))},t.unstable_getCurrentPriorityLevel=function(){return I},t.unstable_getFirstCallbackNode=function(){return T(S)},t.unstable_next=function(e){switch(I){case 1:case 2:case 3:var t=3;break;default:t=I}var n=I;I=t;try{return e()}finally{I=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=P,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=I;I=e;try{return t()}finally{I=n}},t.unstable_scheduleCallback=function(e,o,a){var s=t.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?s+a:s,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:_++,callback:o,priorityLevel:e,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>s?(e.sortIndex=a,k(N,e),null===T(S)&&e===T(N)&&(L?i():L=!0,r(F,a-s))):(e.sortIndex=l,k(S,e),D||A||(D=!0,n(R))),e},t.unstable_wrapCallback=function(e){var t=I;return function(){var n=I;I=t;try{return e.apply(this,arguments)}finally{I=n}}}},7506:(e,t,n)=>{n.d(t,{dY:()=>l,ot:()=>s});var r=n(3298),i=n(4705),o=n(2327);class a{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{t=Object.create(null);for(const e of this.getDocument().definitions)e.kind===r.b.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];const n=[e];let i;for(;i=n.pop();)for(const e of i.selections)e.kind===r.b.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&n.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];const n=Object.create(null),r=[e.selectionSet];let i;for(;i=r.pop();)for(const e of this.getFragmentSpreads(i)){const i=e.name.value;if(!0!==n[i]){n[i]=!0;const e=this.getFragment(i);e&&(t.push(e),r.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}}class s extends a{constructor(e,t,n){super(e,n),this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class l extends a{constructor(e,t,n,r){super(t,r),this._schema=e,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){const n=[],r=new o.D(this._schema);(0,i.YR)(e,(0,o.S)(r,{VariableDefinition:()=>!1,Variable(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue()})}})),t=n,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(const n of this.getRecursivelyReferencedFragments(e))t=t.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}},7613:(e,t,n)=>{n.d(t,{HQ:()=>m,Il:()=>v,MQ:()=>g,Qe:()=>k,RR:()=>h,gw:()=>b,mM:()=>E,qT:()=>f,rc:()=>w,yK:()=>y,yq:()=>p});var r=n(6286),i=n(129),o=n(4621),a=n(2475),s=n(4279),l=n(2369),u=n(2300),c=n(7167),d=n(3770);function f(e){return(0,o.h)(e,h)}function p(e){if(!f(e))throw new Error(`Expected ${(0,i.N)(e)} to be a GraphQL directive.`);return e}class h{constructor(e){var t,n;this.name=(0,u.I)(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(t=e.isRepeatable)&&void 0!==t&&t,this.extensions=(0,s.z)(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||(0,r.U)(!1,`@${e.name} locations must be an Array.`);const i=null!==(n=e.args)&&void 0!==n?n:{};(0,a.Z)(i)&&!Array.isArray(i)||(0,r.U)(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=(0,c.Kx)(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,c.g0)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}const m=new h({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[l.H.FIELD,l.H.FRAGMENT_SPREAD,l.H.INLINE_FRAGMENT],args:{if:{type:new c.Gc(d.kk),description:"Included when true."}}}),g=new h({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[l.H.FIELD,l.H.FRAGMENT_SPREAD,l.H.INLINE_FRAGMENT],args:{if:{type:new c.Gc(d.kk),description:"Skipped when true."}}}),v="No longer supported",y=new h({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[l.H.FIELD_DEFINITION,l.H.ARGUMENT_DEFINITION,l.H.INPUT_FIELD_DEFINITION,l.H.ENUM_VALUE],args:{reason:{type:d.FV,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:v}}}),b=new h({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[l.H.SCALAR],args:{url:{type:new c.Gc(d.FV),description:"The URL that specifies the behavior of this scalar."}}}),E=new h({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[l.H.INPUT_OBJECT],args:{}}),w=Object.freeze([m,g,y,b,E]);function k(e){return w.some((({name:t})=>t===e.name))}},7686:(e,t,n)=>{n.d(t,{J:()=>a});var r=n(129);class i extends Error{constructor(e){super("Unexpected error value: "+(0,r.N)(e)),this.name="NonErrorThrown",this.thrownValue=e}}var o=n(4786);function a(e,t,n){var r;const a=(s=e)instanceof Error?s:new i(s);var s,l;return l=a,Array.isArray(l.path)?a:new o.eO(a.message,{nodes:null!==(r=a.nodes)&&void 0!==r?r:t,source:a.source,positions:a.positions,path:n,originalError:a})}},7721:(e,t,n)=>{n.d(t,{g:()=>o});var r=n(4786),i=n(7167);function o(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),o=Object.create(null);return{EnumTypeDefinition:a,EnumTypeExtension:a};function a(t){var a;const s=t.name.value;o[s]||(o[s]=Object.create(null));const l=null!==(a=t.values)&&void 0!==a?a:[],u=o[s];for(const t of l){const o=t.name.value,a=n[s];(0,i.oF)(a)&&a.getValue(o)?e.reportError(new r.eO(`Enum value "${s}.${o}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):u[o]?e.reportError(new r.eO(`Enum value "${s}.${o}" can only be defined once.`,{nodes:[u[o],t.name]})):u[o]=t.name}return!1}}},7781:(e,t,n)=>{n.d(t,{K:()=>i});var r=n(4786);function i(e){const t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){const i=n.name.value;return t[i]?e.reportError(new r.eO(`There can be only one fragment named "${i}".`,{nodes:[t[i],n.name]})):t[i]=n.name,!1}}}},7801:(e,t,n)=>{n.d(t,{AQ:()=>h,IA:()=>d,N3:()=>p,ko:()=>f,od:()=>m});var r=Object.defineProperty,i=Object.defineProperties,o=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,u=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),c=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,d=(e,t)=>{for(var n in t||(t={}))s.call(t,n)&&c(e,n,t[n]);if(a)for(var n of a(t))l.call(t,n)&&c(e,n,t[n]);return e},f=(e,t)=>i(e,o(t)),p=function(e,t){this[0]=e,this[1]=t},h=(e,t,n)=>{var r=(e,t,i,o)=>{try{var a=n[e](t),s=(t=a.value)instanceof p,l=a.done;Promise.resolve(s?t[0]:t).then((n=>s?r("return"===e?e:"next",t[1]?{done:n.done,value:n.value}:n,i,o):i({value:n,done:l}))).catch((e=>r("throw",e,i,o)))}catch(e){o(e)}},i=e=>o[e]=t=>new Promise(((n,i)=>r(e,t,n,i))),o={};return n=n.apply(e,t),o[u("asyncIterator")]=()=>o,i("next"),i("throw"),i("return"),o},m=(e,t,n)=>(t=e[u("asyncIterator")])?t.call(e):(e=e[u("iterator")](),t={},(n=(n,r)=>(r=e[n])&&(t[n]=t=>new Promise(((n,i,o)=>(t=r.call(e,t),o=t.done,Promise.resolve(t.value).then((e=>n({value:e,done:o})),i))))))("next"),n("return"),t)},7912:(e,t,n)=>{n.r(t);var r=n(3338),i=n(166),o=n(8078),a=(n(6540),n(4848),n(961),Object.defineProperty);r.C.defineMode("graphql-variables",(e=>{const t=(0,i.o)({eatWhitespace:e=>e.eatSpace(),lexRules:s,parseRules:l,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:o.i,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}}));const s={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},l={Document:[(0,i.p)("{"),(0,i.l)("Variable",(0,i.b)((0,i.p)(","))),(0,i.p)("}")],Variable:[u("variable"),(0,i.p)(":"),"Value"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[(0,i.t)("Number","number")],StringValue:[(0,i.t)("String","string")],BooleanValue:[(0,i.t)("Keyword","builtin")],NullValue:[(0,i.t)("Keyword","keyword")],ListValue:[(0,i.p)("["),(0,i.l)("Value",(0,i.b)((0,i.p)(","))),(0,i.p)("]")],ObjectValue:[(0,i.p)("{"),(0,i.l)("ObjectField",(0,i.b)((0,i.p)(","))),(0,i.p)("}")],ObjectField:[u("attribute"),(0,i.p)(":"),"Value"]};function u(e){return{style:e,match:e=>"String"===e.kind,update(e,t){e.name=t.value.slice(1,-1)}}}a(u,"name",{value:"namedKey",configurable:!0})},7915:(e,t,n)=>{n.d(t,{v:()=>p});var r=n(8100),i=n(129),o=n(1181),a=n(3480),s=n(2475),l=n(1810),u=n(4224),c=n(2239),d=n(4786),f=n(7167);function p(e,t,n=h){return m(e,t,n,void 0)}function h(e,t,n){let r="Invalid value "+(0,i.N)(t);throw e.length>0&&(r+=` at "value${(0,u.q)(e)}"`),n.message=r+": "+n.message,n}function m(e,t,n,u){if((0,f.bd)(t))return null!=e?m(e,t.ofType,n,u):void n((0,l.A)(u),e,new d.eO(`Expected non-nullable type "${(0,i.N)(t)}" not to be null.`));if(null==e)return null;if((0,f.Fs)(t)){const r=t.ofType;return(0,a.A)(e)?Array.from(e,((e,t)=>{const i=(0,l.f)(u,t,void 0);return m(e,r,n,i)})):[m(e,r,n,u)]}if((0,f.qK)(t)){if(!(0,s.Z)(e))return void n((0,l.A)(u),e,new d.eO(`Expected type "${t.name}" to be an object.`));const o={},a=t.getFields();for(const r of Object.values(a)){const a=e[r.name];if(void 0!==a)o[r.name]=m(a,r.type,n,(0,l.f)(u,r.name,t.name));else if(void 0!==r.defaultValue)o[r.name]=r.defaultValue;else if((0,f.bd)(r.type)){const t=(0,i.N)(r.type);n((0,l.A)(u),e,new d.eO(`Field "${r.name}" of required type "${t}" was not provided.`))}}for(const i of Object.keys(e))if(!a[i]){const o=(0,c.x)(i,Object.keys(t.getFields()));n((0,l.A)(u),e,new d.eO(`Field "${i}" is not defined by type "${t.name}".`+(0,r.a)(o)))}if(t.isOneOf){const r=Object.keys(o);1!==r.length&&n((0,l.A)(u),e,new d.eO(`Exactly one key must be specified for OneOf type "${t.name}".`));const i=r[0],a=o[i];null===a&&n((0,l.A)(u).concat(i),a,new d.eO(`Field "${i}" must be non-null.`))}return o}if((0,f.zf)(t)){let r;try{r=t.parseValue(e)}catch(r){return void(r instanceof d.eO?n((0,l.A)(u),e,r):n((0,l.A)(u),e,new d.eO(`Expected type "${t.name}". `+r.message,{originalError:r})))}return void 0===r&&n((0,l.A)(u),e,new d.eO(`Expected type "${t.name}".`)),r}(0,o.V)(!1,"Unexpected input type: "+(0,i.N)(t))}},8028:(e,t,n)=>{n.d(t,{l:()=>i});var r=n(4786);function i(e){var t,n,i;const o=e.getSchema(),a=null!==(t=null!==(n=null!==(i=null==o?void 0:o.astNode)&&void 0!==i?i:null==o?void 0:o.getQueryType())&&void 0!==n?n:null==o?void 0:o.getMutationType())&&void 0!==t?t:null==o?void 0:o.getSubscriptionType();let s=0;return{SchemaDefinition(t){a?e.reportError(new r.eO("Cannot define a new schema within a schema extension.",{nodes:t})):(s>0&&e.reportError(new r.eO("Must provide only one schema definition.",{nodes:t})),++s)}}}},8078:(e,t,n)=>{function r(e,t){var n,r;const{levels:i,indentLevel:o}=e;return((i&&0!==i.length?i.at(-1)-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):o)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}n.d(t,{i:()=>r}),(0,Object.defineProperty)(r,"name",{value:"indent",configurable:!0})},8100:(e,t,n)=>{n.d(t,{a:()=>i});const r=5;function i(e,t){const[n,i]=t?[e,t]:[void 0,e];let o=" Did you mean ";n&&(o+=n+" ");const a=i.map((e=>`"${e}"`));switch(a.length){case 0:return"";case 1:return o+a[0]+"?";case 2:return o+a[0]+" or "+a[1]+"?"}const s=a.slice(0,r),l=s.pop();return o+s.join(", ")+", or "+l+"?"}},8129:(e,t,n)=>{n.d(t,{F:()=>o});var r=n(9321),i=n(3298);function o(e,t){switch(e.kind){case i.b.NULL:return null;case i.b.INT:return parseInt(e.value,10);case i.b.FLOAT:return parseFloat(e.value);case i.b.STRING:case i.b.ENUM:case i.b.BOOLEAN:return e.value;case i.b.LIST:return e.values.map((e=>o(e,t)));case i.b.OBJECT:return(0,r.L)(e.fields,(e=>e.name.value),(e=>o(e.value,t)));case i.b.VARIABLE:return null==t?void 0:t[e.name.value]}}},8160:(e,t,n)=>{n.d(t,{g:()=>o});var r=n(1181);const i=/\r\n|[\n\r]/g;function o(e,t){let n=0,o=1;for(const a of e.body.matchAll(i)){if("number"==typeof a.index||(0,r.V)(!1),a.index>=t)break;n=a.index+a[0].length,o+=1}return{line:o,column:t+1-n}}},8292:(e,t,n)=>{n.d(t,{R:()=>a});var r=n(4786),i=n(3298),o=n(1626);function a(e){return{OperationDefinition(t){if("subscription"===t.operation){const n=e.getSchema(),a=n.getSubscriptionType();if(a){const s=t.name?t.name.value:null,l=Object.create(null),u=e.getDocument(),c=Object.create(null);for(const e of u.definitions)e.kind===i.b.FRAGMENT_DEFINITION&&(c[e.name.value]=e);const d=(0,o._)(n,c,l,a,t.selectionSet);if(d.size>1){const t=[...d.values()].slice(1).flat();e.reportError(new r.eO(null!=s?`Subscription "${s}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:t}))}for(const t of d.values())t[0].name.value.startsWith("__")&&e.reportError(new r.eO(null!=s?`Subscription "${s}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}}},8301:(e,t,n)=>{n.d(t,{D:()=>h});var r=n(6286),i=n(129),o=n(2475),a=n(9321),s=n(9004),l=n(7167),u=n(7613),c=n(9488),d=n(3770),f=n(8746),p=n(726);function h(e,t){(0,o.Z)(e)&&(0,o.Z)(e.__schema)||(0,r.U)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,i.N)(e)}.`);const n=e.__schema,h=(0,a.L)(n.types,(e=>e.name),(e=>function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case c.fY.SCALAR:return r=e,new l.Ag({name:r.name,description:r.description,specifiedByURL:r.specifiedByURL});case c.fY.OBJECT:return n=e,new l.bh({name:n.name,description:n.description,interfaces:()=>T(n),fields:()=>x(n)});case c.fY.INTERFACE:return t=e,new l.VA({name:t.name,description:t.description,interfaces:()=>T(t),fields:()=>x(t)});case c.fY.UNION:return function(e){if(!e.possibleTypes){const t=(0,i.N)(e);throw new Error(`Introspection result missing possibleTypes: ${t}.`)}return new l.hI({name:e.name,description:e.description,types:()=>e.possibleTypes.map(w)})}(e);case c.fY.ENUM:return function(e){if(!e.enumValues){const t=(0,i.N)(e);throw new Error(`Introspection result missing enumValues: ${t}.`)}return new l.Zb({name:e.name,description:e.description,values:(0,a.L)(e.enumValues,(e=>e.name),(e=>({description:e.description,deprecationReason:e.deprecationReason})))})}(e);case c.fY.INPUT_OBJECT:return function(e){if(!e.inputFields){const t=(0,i.N)(e);throw new Error(`Introspection result missing inputFields: ${t}.`)}return new l.zP({name:e.name,description:e.description,fields:()=>S(e.inputFields),isOneOf:e.isOneOf})}(e)}var t,n,r;const o=(0,i.N)(e);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${o}.`)}(e)));for(const e of[...d.YC,...c.V4])h[e.name]&&(h[e.name]=e);const m=n.queryType?w(n.queryType):null,g=n.mutationType?w(n.mutationType):null,v=n.subscriptionType?w(n.subscriptionType):null,y=n.directives?n.directives.map((function(e){if(!e.args){const t=(0,i.N)(e);throw new Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){const t=(0,i.N)(e);throw new Error(`Introspection result missing directive locations: ${t}.`)}return new u.RR({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:S(e.args)})})):[];return new f.V4({description:n.description,query:m,mutation:g,subscription:v,types:Object.values(h),directives:y,assumeValid:null==t?void 0:t.assumeValid});function b(e){if(e.kind===c.fY.LIST){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return new l.KT(b(t))}if(e.kind===c.fY.NON_NULL){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");const n=b(t);return new l.Gc((0,l.wG)(n))}return E(e)}function E(e){const t=e.name;if(!t)throw new Error(`Unknown type reference: ${(0,i.N)(e)}.`);const n=h[t];if(!n)throw new Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`);return n}function w(e){return(0,l.qC)(E(e))}function k(e){return(0,l.qL)(E(e))}function T(e){if(null===e.interfaces&&e.kind===c.fY.INTERFACE)return[];if(!e.interfaces){const t=(0,i.N)(e);throw new Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(k)}function x(e){if(!e.fields)throw new Error(`Introspection result missing fields: ${(0,i.N)(e)}.`);return(0,a.L)(e.fields,(e=>e.name),C)}function C(e){const t=b(e.type);if(!(0,l.oH)(t)){const e=(0,i.N)(t);throw new Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){const t=(0,i.N)(e);throw new Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:S(e.args)}}function S(e){return(0,a.L)(e,(e=>e.name),N)}function N(e){const t=b(e.type);if(!(0,l.dX)(t)){const e=(0,i.N)(t);throw new Error(`Introspection must provide input type for arguments, but received: ${e}.`)}const n=null!=e.defaultValue?(0,p.i)((0,s.$x)(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:n,deprecationReason:e.deprecationReason}}}},8385:(e,t,n)=>{n.r(t);var r=n(3338),i=n(7167),o=(n(166),n(6540),n(4848),n(961),Object.defineProperty),a=(e,t)=>o(e,"name",{value:t,configurable:!0});function s(e){l=e,u=e.length,c=d=f=-1,x(),C();const t=m();return E("EOF"),t}let l,u,c,d,f,p,h;function m(){const e=c,t=[];if(E("{"),!T("}")){do{t.push(g())}while(T(","));E("}")}return{kind:"Object",start:e,end:f,members:t}}function g(){const e=c,t="String"===h?b():null;E("String"),E(":");const n=y();return{kind:"Member",start:e,end:f,key:t,value:n}}function v(){const e=c,t=[];if(E("["),!T("]")){do{t.push(y())}while(T(","));E("]")}return{kind:"Array",start:e,end:f,values:t}}function y(){switch(h){case"[":return v();case"{":return m();case"String":case"Number":case"Boolean":case"Null":const e=b();return C(),e}E("Value")}function b(){return{kind:h,start:c,end:d,value:JSON.parse(l.slice(c,d))}}function E(e){if(h===e)return void C();let t;if("EOF"===h)t="[end of file]";else if(d-c>1)t="`"+l.slice(c,d)+"`";else{const e=l.slice(c).match(/^.+?\b/);t="`"+(e?e[0]:l[c])+"`"}throw k(`Expected ${e} but found ${t}.`)}a(s,"jsonParse"),a(m,"parseObj"),a(g,"parseMember"),a(v,"parseArr"),a(y,"parseVal"),a(b,"curToken"),a(E,"expect");class w extends Error{constructor(e,t){super(e),this.position=t}}function k(e){return new w(e,{start:c,end:d})}function T(e){if(h===e)return C(),!0}function x(){return d<u&&(d++,p=d===u?0:l.charCodeAt(d)),p}function C(){for(f=d;9===p||10===p||13===p||32===p;)x();if(0!==p){switch(c=d,p){case 34:return h="String",S();case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return h="Number",_();case 102:if("false"!==l.slice(c,c+5))break;return d+=4,x(),void(h="Boolean");case 110:if("null"!==l.slice(c,c+4))break;return d+=3,x(),void(h="Null");case 116:if("true"!==l.slice(c,c+4))break;return d+=3,x(),void(h="Boolean")}h=l[c],x()}else h="EOF"}function S(){for(x();34!==p&&p>31;)if(92===p)switch(p=x(),p){case 34:case 47:case 92:case 98:case 102:case 110:case 114:case 116:x();break;case 117:x(),N(),N(),N(),N();break;default:throw k("Bad character escape sequence.")}else{if(d===u)throw k("Unterminated string.");x()}if(34!==p)throw k("Unterminated string.");x()}function N(){if(p>=48&&p<=57||p>=65&&p<=70||p>=97&&p<=102)return x();throw k("Expected hexadecimal digit.")}function _(){45===p&&x(),48===p?x():O(),46===p&&(x(),O()),69!==p&&101!==p||(p=x(),43!==p&&45!==p||x(),O())}function O(){if(p<48||p>57)throw k("Expected decimal digit.");do{x()}while(p>=48&&p<=57)}function I(e,t,n){var r;const i=[];for(const o of n.members)if(o){const n=null===(r=o.key)||void 0===r?void 0:r.value,a=t[n];if(a)for(const[t,n]of A(a,o.value))i.push(D(e,t,n));else i.push(D(e,o.key,`Variable "$${n}" does not appear in any GraphQL query.`))}return i}function A(e,t){if(!e||!t)return[];if(e instanceof i.Gc)return"Null"===t.kind?[[t,`Type "${e}" is non-nullable and cannot be null.`]]:A(e.ofType,t);if("Null"===t.kind)return[];if(e instanceof i.KT){const n=e.ofType;return"Array"===t.kind?M(t.values||[],(e=>A(n,e))):A(n,t)}if(e instanceof i.zP){if("Object"!==t.kind)return[[t,`Type "${e}" must be an Object.`]];const n=Object.create(null),r=M(t.members,(t=>{var r;const i=null===(r=null==t?void 0:t.key)||void 0===r?void 0:r.value;n[i]=!0;const o=e.getFields()[i];return o?A(o?o.type:void 0,t.value):[[t.key,`Type "${e}" does not have a field "${i}".`]]}));for(const o of Object.keys(e.getFields())){const a=e.getFields()[o];!n[o]&&a.type instanceof i.Gc&&!a.defaultValue&&r.push([t,`Object of type "${e}" is missing required field "${o}".`])}return r}return"Boolean"===e.name&&"Boolean"!==t.kind||"String"===e.name&&"String"!==t.kind||"ID"===e.name&&"Number"!==t.kind&&"String"!==t.kind||"Float"===e.name&&"Number"!==t.kind||"Int"===e.name&&("Number"!==t.kind||(0|t.value)!==t.value)||(e instanceof i.Zb||e instanceof i.Ag)&&("String"!==t.kind&&"Number"!==t.kind&&"Boolean"!==t.kind&&"Null"!==t.kind||L(e.parseValue(t.value)))?[[t,`Expected value of type "${e}".`]]:[]}function D(e,t,n){return{message:n,severity:"error",type:"validation",from:e.posFromIndex(t.start),to:e.posFromIndex(t.end)}}function L(e){return null==e||e!=e}function M(e,t){return Array.prototype.concat.apply([],e.map(t))}a(w,"JSONSyntaxError"),a(k,"syntaxError"),a(T,"skip"),a(x,"ch"),a(C,"lex"),a(S,"readString"),a(N,"readHex"),a(_,"readNumber"),a(O,"readDigits"),r.C.registerHelper("lint","graphql-variables",((e,t,n)=>{if(!e)return[];let r;try{r=s(e)}catch(e){if(e instanceof w)return[D(n,e.position,e.message)];throw e}const{variableToType:i}=t;return i?I(n,i,r):[]})),a(I,"validateVariables"),a(A,"validateValue"),a(D,"lintError"),a(L,"isNullish"),a(M,"mapCat")},8467:(e,t,n)=>{n.d(t,{lk:()=>x,II:()=>C,Vm:()=>_,kf:()=>F,ch:()=>M,g7:()=>w,Lo:()=>k,uc:()=>R});var r=n(6286),i=n(129),o=n(1181),a=n(3480),s=n(2475),l=n(5154),u=n(1810);function c(e){return Promise.all(Object.values(e)).then((t=>{const n=Object.create(null);for(const[r,i]of Object.keys(e).entries())n[i]=t[r];return n}))}var d=n(4786),f=n(7686),p=n(475),h=n(3298),m=n(7167),g=n(9488),v=n(617),y=n(1626),b=n(4803);const E=function(){let e;return function(t,n,r){void 0===e&&(e=new WeakMap);let i=e.get(t);void 0===i&&(i=new WeakMap,e.set(t,i));let o=i.get(n);void 0===o&&(o=new WeakMap,i.set(n,o));let a=o.get(r);return void 0===a&&(s=t,l=n,u=r,a=(0,y.S)(s.schema,s.fragments,s.variableValues,l,u),o.set(r,a)),a;var s,l,u}}();function w(e){arguments.length<2||(0,r.U)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,document:n,variableValues:i,rootValue:o}=e;x(t,n,i);const a=C(e);if(!("schema"in a))return{errors:a};try{const{operation:e}=a,t=function(e,t,n){const r=e.schema.getRootType(t.operation);if(null==r)throw new d.eO(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});const i=(0,y._)(e.schema,e.fragments,e.variableValues,r,t.selectionSet),o=void 0;switch(t.operation){case p.cE.QUERY:return S(e,r,n,o,i);case p.cE.MUTATION:return function(e,t,n,r,i){return function(e,t){let n=Object.create(null);for(const r of e)n=(0,l.y)(n)?n.then((e=>t(e,r))):t(n,r);return n}(i.entries(),((i,[o,a])=>{const s=(0,u.f)(r,o,t.name),c=N(e,t,n,a,s);return void 0===c?i:(0,l.y)(c)?c.then((e=>(i[o]=e,i))):(i[o]=c,i)}))}(e,r,n,o,i);case p.cE.SUBSCRIPTION:return S(e,r,n,o,i)}}(a,e,o);return(0,l.y)(t)?t.then((e=>T(e,a.errors)),(e=>(a.errors.push(e),T(null,a.errors)))):T(t,a.errors)}catch(e){return a.errors.push(e),T(null,a.errors)}}function k(e){const t=w(e);if((0,l.y)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function T(e,t){return 0===t.length?{data:e}:{errors:t,data:e}}function x(e,t,n){t||(0,r.U)(!1,"Must provide document."),(0,v.Y)(e),null==n||(0,s.Z)(n)||(0,r.U)(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function C(e){var t,n;const{schema:r,document:i,rootValue:o,contextValue:a,variableValues:s,operationName:l,fieldResolver:u,typeResolver:c,subscribeFieldResolver:f}=e;let p;const m=Object.create(null);for(const e of i.definitions)switch(e.kind){case h.b.OPERATION_DEFINITION:if(null==l){if(void 0!==p)return[new d.eO("Must provide operation name if query contains multiple operations.")];p=e}else(null===(t=e.name)||void 0===t?void 0:t.value)===l&&(p=e);break;case h.b.FRAGMENT_DEFINITION:m[e.name.value]=e}if(!p)return null!=l?[new d.eO(`Unknown operation named "${l}".`)]:[new d.eO("Must provide an operation.")];const g=null!==(n=p.variableDefinitions)&&void 0!==n?n:[],v=(0,b.VE)(r,g,null!=s?s:{},{maxErrors:50});return v.errors?v.errors:{schema:r,fragments:m,rootValue:o,contextValue:a,operation:p,variableValues:v.coerced,fieldResolver:null!=u?u:F,typeResolver:null!=c?c:M,subscribeFieldResolver:null!=f?f:F,errors:[]}}function S(e,t,n,r,i){const o=Object.create(null);let a=!1;try{for(const[s,c]of i.entries()){const i=N(e,t,n,c,(0,u.f)(r,s,t.name));void 0!==i&&(o[s]=i,(0,l.y)(i)&&(a=!0))}}catch(e){if(a)return c(o).finally((()=>{throw e}));throw e}return a?c(o):o}function N(e,t,n,r,i){var o;const a=R(e.schema,t,r[0]);if(!a)return;const s=a.type,c=null!==(o=a.resolve)&&void 0!==o?o:e.fieldResolver,d=_(e,a,r,t,i);try{const t=c(n,(0,b.IA)(a,r[0],e.variableValues),e.contextValue,d);let o;return o=(0,l.y)(t)?t.then((t=>I(e,s,r,d,i,t))):I(e,s,r,d,i,t),(0,l.y)(o)?o.then(void 0,(t=>O((0,f.J)(t,r,(0,u.A)(i)),s,e))):o}catch(t){return O((0,f.J)(t,r,(0,u.A)(i)),s,e)}}function _(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function O(e,t,n){if((0,m.bd)(t))throw e;return n.errors.push(e),null}function I(e,t,n,r,s,c){if(c instanceof Error)throw c;if((0,m.bd)(t)){const i=I(e,t.ofType,n,r,s,c);if(null===i)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return i}return null==c?null:(0,m.Fs)(t)?function(e,t,n,r,i,o){if(!(0,a.A)(o))throw new d.eO(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);const s=t.ofType;let c=!1;const p=Array.from(o,((t,o)=>{const a=(0,u.f)(i,o,void 0);try{let i;return i=(0,l.y)(t)?t.then((t=>I(e,s,n,r,a,t))):I(e,s,n,r,a,t),(0,l.y)(i)?(c=!0,i.then(void 0,(t=>O((0,f.J)(t,n,(0,u.A)(a)),s,e)))):i}catch(t){return O((0,f.J)(t,n,(0,u.A)(a)),s,e)}}));return c?Promise.all(p):p}(e,t,n,r,s,c):(0,m.zf)(t)?function(e,t){const n=e.serialize(t);if(null==n)throw new Error(`Expected \`${(0,i.N)(e)}.serialize(${(0,i.N)(t)})\` to return non-nullable value, returned: ${(0,i.N)(n)}`);return n}(t,c):(0,m.Lc)(t)?function(e,t,n,r,i,o){var a;const s=null!==(a=t.resolveType)&&void 0!==a?a:e.typeResolver,u=e.contextValue,c=s(o,u,r,t);return(0,l.y)(c)?c.then((a=>D(e,A(a,e,t,n,r,o),n,r,i,o))):D(e,A(c,e,t,n,r,o),n,r,i,o)}(e,t,n,r,s,c):(0,m.YQ)(t)?D(e,t,n,r,s,c):void(0,o.V)(!1,"Cannot complete value of unexpected output type: "+(0,i.N)(t))}function A(e,t,n,r,o,a){if(null==e)throw new d.eO(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,r);if((0,m.YQ)(e))throw new d.eO("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if("string"!=typeof e)throw new d.eO(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}" with value ${(0,i.N)(a)}, received "${(0,i.N)(e)}".`);const s=t.schema.getType(e);if(null==s)throw new d.eO(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!(0,m.YQ)(s))throw new d.eO(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,s))throw new d.eO(`Runtime Object type "${s.name}" is not a possible type for "${n.name}".`,{nodes:r});return s}function D(e,t,n,r,i,o){const a=E(e,t,n);if(t.isTypeOf){const s=t.isTypeOf(o,e.contextValue,r);if((0,l.y)(s))return s.then((r=>{if(!r)throw L(t,o,n);return S(e,t,o,i,a)}));if(!s)throw L(t,o,n)}return S(e,t,o,i,a)}function L(e,t,n){return new d.eO(`Expected value of type "${e.name}" but got: ${(0,i.N)(t)}.`,{nodes:n})}const M=function(e,t,n,r){if((0,s.Z)(e)&&"string"==typeof e.__typename)return e.__typename;const i=n.schema.getPossibleTypes(r),o=[];for(let r=0;r<i.length;r++){const a=i[r];if(a.isTypeOf){const i=a.isTypeOf(e,t,n);if((0,l.y)(i))o[r]=i;else if(i)return a.name}}return o.length?Promise.all(o).then((e=>{for(let t=0;t<e.length;t++)if(e[t])return i[t].name})):void 0},F=function(e,t,n,r){if((0,s.Z)(e)||"function"==typeof e){const i=e[r.fieldName];return"function"==typeof i?e[r.fieldName](t,n,r):i}};function R(e,t,n){const r=n.name.value;return r===g.S0.name&&e.getQueryType()===t?g.S0:r===g.Xe.name&&e.getQueryType()===t?g.Xe:r===g.of.name?g.of:t.getFields()[r]}},8624:(e,t,n)=>{n.d(t,{hd:()=>k});var r="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r&&r,i={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};if(i.arrayBuffer)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=ArrayBuffer.isView||function(e){return e&&o.indexOf(Object.prototype.toString.call(e))>-1};function s(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function l(e){return"string"!=typeof e&&(e=String(e)),e}function u(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i.iterable&&(t[Symbol.iterator]=function(){return t}),t}function c(e){this.map={},e instanceof c?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function d(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function f(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function p(e){var t=new FileReader,n=f(t);return t.readAsArrayBuffer(e),n}function h(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:i.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():i.arrayBuffer&&i.blob&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=h(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||a(e))?this._bodyArrayBuffer=h(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?d(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(p)}),this.text=function(){var e,t,n,r=d(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=f(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(e,t){e=s(e),t=l(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},c.prototype.delete=function(e){delete this.map[s(e)]},c.prototype.get=function(e){return e=s(e),this.has(e)?this.map[e]:null},c.prototype.has=function(e){return this.map.hasOwnProperty(s(e))},c.prototype.set=function(e,t){this.map[s(e)]=l(t)},c.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},c.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),u(e)},c.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),u(e)},c.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),u(e)},i.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var g=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function v(e,t){if(!(this instanceof v))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,i=(t=t||{}).body;if(e instanceof v){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new c(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new c(t.headers)),this.method=(r=(n=t.method||this.method||"GET").toUpperCase(),g.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var o=/([?&])_=[^&]*/;o.test(this.url)?this.url=this.url.replace(o,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function y(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function b(e,t){if(!(this instanceof b))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new c(t.headers),this.url=t.url||"",this._initBody(e)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},m.call(v.prototype),m.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},b.error=function(){var e=new b(null,{status:0,statusText:""});return e.type="error",e};var E=[301,302,303,307,308];b.redirect=function(e,t){if(-1===E.indexOf(t))throw new RangeError("Invalid status code");return new b(null,{status:t,headers:{location:e}})};var w=r.DOMException;try{new w}catch(e){(w=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),w.prototype.constructor=w}function k(e,t){return new Promise((function(n,o){var a=new v(e,t);if(a.signal&&a.signal.aborted)return o(new w("Aborted","AbortError"));var s=new XMLHttpRequest;function u(){s.abort()}s.onload=function(){var e,t,r={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new c,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};r.url="responseURL"in s?s.responseURL:r.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;setTimeout((function(){n(new b(i,r))}),0)},s.onerror=function(){setTimeout((function(){o(new TypeError("Network request failed"))}),0)},s.ontimeout=function(){setTimeout((function(){o(new TypeError("Network request failed"))}),0)},s.onabort=function(){setTimeout((function(){o(new w("Aborted","AbortError"))}),0)},s.open(a.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(a.url),!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&(i.blob?s.responseType="blob":i.arrayBuffer&&a.headers.get("Content-Type")&&-1!==a.headers.get("Content-Type").indexOf("application/octet-stream")&&(s.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof c?a.headers.forEach((function(e,t){s.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){s.setRequestHeader(e,l(t.headers[e]))})),a.signal&&(a.signal.addEventListener("abort",u),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",u)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}k.polyfill=!0,r.fetch||(r.fetch=k,r.Headers=c,r.Request=v,r.Response=b)},8746:(e,t,n)=>{n.d(t,{GU:()=>p,V4:()=>h,Wl:()=>f});var r=n(6286),i=n(129),o=n(4621),a=n(2475),s=n(4279),l=n(475),u=n(7167),c=n(7613),d=n(9488);function f(e){return(0,o.h)(e,h)}function p(e){if(!f(e))throw new Error(`Expected ${(0,i.N)(e)} to be a GraphQL schema.`);return e}class h{constructor(e){var t,n;this.__validationErrors=!0===e.assumeValid?[]:void 0,(0,a.Z)(e)||(0,r.U)(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||(0,r.U)(!1,`"types" must be Array if provided but got: ${(0,i.N)(e.types)}.`),!e.directives||Array.isArray(e.directives)||(0,r.U)(!1,`"directives" must be Array if provided but got: ${(0,i.N)(e.directives)}.`),this.description=e.description,this.extensions=(0,s.z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(n=e.directives)&&void 0!==n?n:c.rc;const o=new Set(e.types);if(null!=e.types)for(const t of e.types)o.delete(t),m(t,o);null!=this._queryType&&m(this._queryType,o),null!=this._mutationType&&m(this._mutationType,o),null!=this._subscriptionType&&m(this._subscriptionType,o);for(const e of this._directives)if((0,c.qT)(e))for(const t of e.args)m(t.type,o);m(d.em,o),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const e of o){if(null==e)continue;const t=e.name;if(t||(0,r.U)(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[t])throw new Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`);if(this._typeMap[t]=e,(0,u.kD)(e)){for(const t of e.getInterfaces())if((0,u.kD)(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.interfaces.push(e)}}else if((0,u.YQ)(e))for(const t of e.getInterfaces())if((0,u.kD)(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.objects.push(e)}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case l.cE.QUERY:return this.getQueryType();case l.cE.MUTATION:return this.getMutationType();case l.cE.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return(0,u.CK)(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const t=this._implementationsMap[e.name];return null!=t?t:{objects:[],interfaces:[]}}isSubType(e,t){let n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),(0,u.CK)(e))for(const t of e.getTypes())n[t.name]=!0;else{const t=this.getImplementations(e);for(const e of t.objects)n[e.name]=!0;for(const e of t.interfaces)n[e.name]=!0}this._subTypeMap[e.name]=n}return void 0!==n[t.name]}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find((t=>t.name===e))}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}function m(e,t){const n=(0,u.MR)(e);if(!t.has(n))if(t.add(n),(0,u.CK)(n))for(const e of n.getTypes())m(e,t);else if((0,u.YQ)(n)||(0,u.kD)(n)){for(const e of n.getInterfaces())m(e,t);for(const e of Object.values(n.getFields())){m(e.type,t);for(const n of e.args)m(n.type,t)}}else if((0,u.qK)(n))for(const e of Object.values(n.getFields()))m(e.type,t);return t}},9004:(e,t,n)=>{n.d(t,{$x:()=>d,Mb:()=>p,qg:()=>c,u8:()=>f});var r=n(9738),i=n(475),o=n(2369),a=n(3298),s=n(5009),l=n(4954),u=n(590);function c(e,t){const n=new h(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r}function d(e,t){const n=new h(e,t);n.expectToken(u.Y.SOF);const r=n.parseValueLiteral(!1);return n.expectToken(u.Y.EOF),r}function f(e,t){const n=new h(e,t);n.expectToken(u.Y.SOF);const r=n.parseConstValueLiteral();return n.expectToken(u.Y.EOF),r}function p(e,t){const n=new h(e,t);n.expectToken(u.Y.SOF);const r=n.parseTypeReference();return n.expectToken(u.Y.EOF),r}class h{constructor(e,t={}){const n=(0,l._)(e)?e:new l.k(e);this._lexer=new s.J(n),this._options=t,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const e=this.expectToken(u.Y.NAME);return this.node(e,{kind:a.b.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:a.b.DOCUMENT,definitions:this.many(u.Y.SOF,this.parseDefinition,u.Y.EOF)})}parseDefinition(){if(this.peek(u.Y.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===u.Y.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw(0,r.I)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(u.Y.BRACE_L))return this.node(e,{kind:a.b.OPERATION_DEFINITION,operation:i.cE.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(u.Y.NAME)&&(n=this.parseName()),this.node(e,{kind:a.b.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(u.Y.NAME);switch(e.value){case"query":return i.cE.QUERY;case"mutation":return i.cE.MUTATION;case"subscription":return i.cE.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(u.Y.PAREN_L,this.parseVariableDefinition,u.Y.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:a.b.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(u.Y.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(u.Y.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(u.Y.DOLLAR),this.node(e,{kind:a.b.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:a.b.SELECTION_SET,selections:this.many(u.Y.BRACE_L,this.parseSelection,u.Y.BRACE_R)})}parseSelection(){return this.peek(u.Y.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(u.Y.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:a.b.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(u.Y.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(u.Y.PAREN_L,t,u.Y.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(u.Y.COLON),this.node(t,{kind:a.b.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(u.Y.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(u.Y.NAME)?this.node(e,{kind:a.b.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:a.b.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:a.b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:a.b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case u.Y.BRACKET_L:return this.parseList(e);case u.Y.BRACE_L:return this.parseObject(e);case u.Y.INT:return this.advanceLexer(),this.node(t,{kind:a.b.INT,value:t.value});case u.Y.FLOAT:return this.advanceLexer(),this.node(t,{kind:a.b.FLOAT,value:t.value});case u.Y.STRING:case u.Y.BLOCK_STRING:return this.parseStringLiteral();case u.Y.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:a.b.BOOLEAN,value:!0});case"false":return this.node(t,{kind:a.b.BOOLEAN,value:!1});case"null":return this.node(t,{kind:a.b.NULL});default:return this.node(t,{kind:a.b.ENUM,value:t.value})}case u.Y.DOLLAR:if(e){if(this.expectToken(u.Y.DOLLAR),this._lexer.token.kind===u.Y.NAME){const e=this._lexer.token.value;throw(0,r.I)(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:a.b.STRING,value:e.value,block:e.kind===u.Y.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:a.b.LIST,values:this.any(u.Y.BRACKET_L,(()=>this.parseValueLiteral(e)),u.Y.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:a.b.OBJECT,fields:this.any(u.Y.BRACE_L,(()=>this.parseObjectField(e)),u.Y.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(u.Y.COLON),this.node(t,{kind:a.b.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(u.Y.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(u.Y.AT),this.node(t,{kind:a.b.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(u.Y.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(u.Y.BRACKET_R),t=this.node(e,{kind:a.b.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(u.Y.BANG)?this.node(e,{kind:a.b.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:a.b.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(u.Y.STRING)||this.peek(u.Y.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(u.Y.BRACE_L,this.parseOperationTypeDefinition,u.Y.BRACE_R);return this.node(e,{kind:a.b.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(u.Y.COLON);const n=this.parseNamedType();return this.node(e,{kind:a.b.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:a.b.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:a.b.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(u.Y.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(u.Y.BRACE_L,this.parseFieldDefinition,u.Y.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(u.Y.COLON);const i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:a.b.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(u.Y.PAREN_L,this.parseInputValueDef,u.Y.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(u.Y.COLON);const r=this.parseTypeReference();let i;this.expectOptionalToken(u.Y.EQUALS)&&(i=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:a.b.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:a.b.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:a.b.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(u.Y.EQUALS)?this.delimitedMany(u.Y.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:a.b.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(u.Y.BRACE_L,this.parseEnumValueDefinition,u.Y.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:a.b.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw(0,r.I)(this._lexer.source,this._lexer.token.start,`${m(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:a.b.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(u.Y.BRACE_L,this.parseInputValueDef,u.Y.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===u.Y.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(u.Y.BRACE_L,this.parseOperationTypeDefinition,u.Y.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:a.b.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:a.b.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:a.b.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:a.b.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:a.b.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:a.b.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:a.b.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(u.Y.AT);const n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:a.b.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(u.Y.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(o.H,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new i.aZ(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw(0,r.I)(this._lexer.source,t.start,`Expected ${g(e)}, found ${m(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==u.Y.NAME||t.value!==e)throw(0,r.I)(this._lexer.source,t.start,`Expected "${e}", found ${m(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===u.Y.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return(0,r.I)(this._lexer.source,t.start,`Unexpected ${m(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==u.Y.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw(0,r.I)(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function m(e){const t=e.value;return g(e.kind)+(null!=t?` "${t}"`:"")}function g(e){return(0,s.Z)(e)?`"${e}"`:e}},9238:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(4786);function i(e){const t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(i){const o=i.name.value;if(null==n||!n.getDirective(o))return t[o]?e.reportError(new r.eO(`There can be only one directive named "@${o}".`,{nodes:[t[o],i.name]})):t[o]=i.name,!1;e.reportError(new r.eO(`Directive "@${o}" already exists in the schema. It cannot be redefined.`,{nodes:i.name}))}}}},9253:(e,t,n)=>{n.r(t);var r=n(3338),i=n(7167),o=n(3770),a=n(7437),s=(n(166),n(6540),n(4848),n(961),Object.defineProperty),l=(e,t)=>s(e,"name",{value:t,configurable:!0});function u(e,t,n){const r=c(n,f(t.string));if(!r)return;const i=null!==t.type&&/"|\w/.test(t.string[0])?t.start:t.end;return{list:r,from:{line:e.line,ch:i},to:{line:e.line,ch:t.end}}}function c(e,t){return t?d(d(e.map((e=>({proximity:p(f(e.text),t),entry:e}))),(e=>e.proximity<=2)),(e=>!e.entry.isDeprecated)).sort(((e,t)=>(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.text.length-t.entry.text.length)).map((e=>e.entry)):d(e,(e=>!e.isDeprecated))}function d(e,t){const n=e.filter(t);return 0===n.length?e:n}function f(e){return e.toLowerCase().replaceAll(/\W/g,"")}function p(e,t){let n=h(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}function h(e,t){let n,r;const i=[],o=e.length,a=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=a;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=a;r++){const o=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+o),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+o))}return i[o][a]}function m(e,t,n){const r="Invalid"===t.state.kind?t.state.prevState:t.state,{kind:a,step:s}=r;if("Document"===a&&0===s)return u(e,t,[{text:"{"}]);const{variableToType:l}=n;if(!l)return;const c=g(l,t.state);if("Document"===a||"Variable"===a&&0===s)return u(e,t,Object.keys(l).map((e=>({text:`"${e}": `,type:l[e]}))));if(("ObjectValue"===a||"ObjectField"===a&&0===s)&&c.fields)return u(e,t,Object.keys(c.fields).map((e=>c.fields[e])).map((e=>({text:`"${e.name}": `,type:e.type,description:e.description}))));if("StringValue"===a||"NumberValue"===a||"BooleanValue"===a||"NullValue"===a||"ListValue"===a&&1===s||"ObjectField"===a&&2===s||"Variable"===a&&2===s){const n=c.type?(0,i.MR)(c.type):void 0;if(n instanceof i.zP)return u(e,t,[{text:"{"}]);if(n instanceof i.Zb)return u(e,t,n.getValues().map((e=>({text:`"${e.name}"`,type:n,description:e.description}))));if(n===o.kk)return u(e,t,[{text:"true",type:o.kk,description:"Not false."},{text:"false",type:o.kk,description:"Not true."}])}}function g(e,t){const n={type:null,fields:null};return(0,a.f)(t,(t=>{switch(t.kind){case"Variable":n.type=e[t.name];break;case"ListValue":{const e=n.type?(0,i.yl)(n.type):void 0;n.type=e instanceof i.KT?e.ofType:null;break}case"ObjectValue":{const e=n.type?(0,i.MR)(n.type):void 0;n.fields=e instanceof i.zP?e.getFields():null;break}case"ObjectField":{const e=t.name&&n.fields?n.fields[t.name]:null;n.type=null==e?void 0:e.type;break}}})),n}l(u,"hintList"),l(c,"filterAndSortList"),l(d,"filterNonEmpty"),l(f,"normalizeText"),l(p,"getProximity"),l(h,"lexicalDistance"),r.C.registerHelper("hint","graphql-variables",((e,t)=>{const n=e.getCursor(),i=e.getTokenAt(n),o=m(n,i,t);return(null==o?void 0:o.list)&&o.list.length>0&&(o.from=r.C.Pos(o.from.line,o.from.ch),o.to=r.C.Pos(o.to.line,o.to.ch),r.C.signal(e,"hasCompletion",e,o,i)),o})),l(m,"getVariablesHint"),l(g,"getTypeInfo")},9321:(e,t,n)=>{function r(e,t,n){const r=Object.create(null);for(const i of e)r[t(i)]=n(i);return r}n.d(t,{L:()=>r})},9398:(e,t,n)=>{n.d(t,{$T:()=>p,tf:()=>c,uq:()=>f});var r=n(6286),i=n(4786),o=n(4705),a=n(617),s=n(2327),l=n(5795),u=n(7506);function c(e,t,n=l.gv,c,d=new s.D(e)){var f;const p=null!==(f=null==c?void 0:c.maxErrors)&&void 0!==f?f:100;t||(0,r.U)(!1,"Must provide document."),(0,a.Y)(e);const h=Object.freeze({}),m=[],g=new u.dY(e,t,d,(e=>{if(m.length>=p)throw m.push(new i.eO("Too many validation errors, error limit reached. Validation aborted.")),h;m.push(e)})),v=(0,o.oP)(n.map((e=>e(g))));try{(0,o.YR)(t,(0,s.S)(d,v))}catch(e){if(e!==h)throw e}return m}function d(e,t,n=l.H7){const r=[],i=new u.ot(e,t,(e=>{r.push(e)})),a=n.map((e=>e(i)));return(0,o.YR)(e,(0,o.oP)(a)),r}function f(e){const t=d(e);if(0!==t.length)throw new Error(t.map((e=>e.message)).join("\n\n"))}function p(e,t){const n=d(e,t);if(0!==n.length)throw new Error(n.map((e=>e.message)).join("\n\n"))}},9488:(e,t,n)=>{n.d(t,{$4:()=>f,B0:()=>y,B1:()=>g,P8:()=>p,S0:()=>b,V4:()=>k,Xe:()=>E,Yh:()=>T,Ym:()=>m,em:()=>c,fY:()=>v,of:()=>w,sv:()=>d,z9:()=>h});var r=n(129),i=n(1181),o=n(2369),a=n(6547),s=n(3296),l=n(7167),u=n(3770);const c=new l.bh({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:u.FV,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new l.Gc(new l.KT(new l.Gc(p))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new l.Gc(p),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:p,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:p,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new l.Gc(new l.KT(new l.Gc(d))),resolve:e=>e.getDirectives()}})}),d=new l.bh({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new l.Gc(u.FV),resolve:e=>e.name},description:{type:u.FV,resolve:e=>e.description},isRepeatable:{type:new l.Gc(u.kk),resolve:e=>e.isRepeatable},locations:{type:new l.Gc(new l.KT(new l.Gc(f))),resolve:e=>e.locations},args:{type:new l.Gc(new l.KT(new l.Gc(m))),args:{includeDeprecated:{type:u.kk,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter((e=>null==e.deprecationReason))}})}),f=new l.Zb({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:o.H.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:o.H.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:o.H.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:o.H.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:o.H.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:o.H.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:o.H.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:o.H.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:o.H.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:o.H.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:o.H.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:o.H.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:o.H.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:o.H.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:o.H.UNION,description:"Location adjacent to a union definition."},ENUM:{value:o.H.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:o.H.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:o.H.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:o.H.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),p=new l.bh({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new l.Gc(y),resolve:e=>(0,l.lg)(e)?v.SCALAR:(0,l.YQ)(e)?v.OBJECT:(0,l.kD)(e)?v.INTERFACE:(0,l.CK)(e)?v.UNION:(0,l.oF)(e)?v.ENUM:(0,l.qK)(e)?v.INPUT_OBJECT:(0,l.Fs)(e)?v.LIST:(0,l.bd)(e)?v.NON_NULL:void(0,i.V)(!1,`Unexpected type: "${(0,r.N)(e)}".`)},name:{type:u.FV,resolve:e=>"name"in e?e.name:void 0},description:{type:u.FV,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:u.FV,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new l.KT(new l.Gc(h)),args:{includeDeprecated:{type:u.kk,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,l.YQ)(e)||(0,l.kD)(e)){const n=Object.values(e.getFields());return t?n:n.filter((e=>null==e.deprecationReason))}}},interfaces:{type:new l.KT(new l.Gc(p)),resolve(e){if((0,l.YQ)(e)||(0,l.kD)(e))return e.getInterfaces()}},possibleTypes:{type:new l.KT(new l.Gc(p)),resolve(e,t,n,{schema:r}){if((0,l.Lc)(e))return r.getPossibleTypes(e)}},enumValues:{type:new l.KT(new l.Gc(g)),args:{includeDeprecated:{type:u.kk,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,l.oF)(e)){const n=e.getValues();return t?n:n.filter((e=>null==e.deprecationReason))}}},inputFields:{type:new l.KT(new l.Gc(m)),args:{includeDeprecated:{type:u.kk,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,l.qK)(e)){const n=Object.values(e.getFields());return t?n:n.filter((e=>null==e.deprecationReason))}}},ofType:{type:p,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:u.kk,resolve:e=>{if((0,l.qK)(e))return e.isOneOf}}})}),h=new l.bh({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new l.Gc(u.FV),resolve:e=>e.name},description:{type:u.FV,resolve:e=>e.description},args:{type:new l.Gc(new l.KT(new l.Gc(m))),args:{includeDeprecated:{type:u.kk,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter((e=>null==e.deprecationReason))},type:{type:new l.Gc(p),resolve:e=>e.type},isDeprecated:{type:new l.Gc(u.kk),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:u.FV,resolve:e=>e.deprecationReason}})}),m=new l.bh({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new l.Gc(u.FV),resolve:e=>e.name},description:{type:u.FV,resolve:e=>e.description},type:{type:new l.Gc(p),resolve:e=>e.type},defaultValue:{type:u.FV,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,r=(0,s.K)(n,t);return r?(0,a.y)(r):null}},isDeprecated:{type:new l.Gc(u.kk),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:u.FV,resolve:e=>e.deprecationReason}})}),g=new l.bh({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new l.Gc(u.FV),resolve:e=>e.name},description:{type:u.FV,resolve:e=>e.description},isDeprecated:{type:new l.Gc(u.kk),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:u.FV,resolve:e=>e.deprecationReason}})});var v;!function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"}(v||(v={}));const y=new l.Zb({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:v.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:v.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:v.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:v.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:v.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:v.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:v.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:v.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),b={name:"__schema",type:new l.Gc(c),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},E={name:"__type",type:p,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new l.Gc(u.FV),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},w={name:"__typename",type:new l.Gc(u.FV),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},k=Object.freeze([c,d,f,p,h,m,g,y]);function T(e){return k.some((({name:t})=>e.name===t))}},9558:(e,t,n)=>{n.d(t,{P:()=>l,W:()=>u});var r=n(8100),i=n(2239),o=n(4786),a=n(3298),s=n(7613);function l(e){return{...u(e),Argument(t){const n=e.getArgument(),a=e.getFieldDef(),s=e.getParentType();if(!n&&a&&s){const n=t.name.value,l=a.args.map((e=>e.name)),u=(0,i.x)(n,l);e.reportError(new o.eO(`Unknown argument "${n}" on field "${s.name}.${a.name}".`+(0,r.a)(u),{nodes:t}))}}}}function u(e){const t=Object.create(null),n=e.getSchema(),l=n?n.getDirectives():s.rc;for(const e of l)t[e.name]=e.args.map((e=>e.name));const u=e.getDocument().definitions;for(const e of u)if(e.kind===a.b.DIRECTIVE_DEFINITION){var c;const n=null!==(c=e.arguments)&&void 0!==c?c:[];t[e.name.value]=n.map((e=>e.name.value))}return{Directive(n){const a=n.name.value,s=t[a];if(n.arguments&&s)for(const t of n.arguments){const n=t.name.value;if(!s.includes(n)){const l=(0,i.x)(n,s);e.reportError(new o.eO(`Unknown argument "${n}" on directive "@${a}".`+(0,r.a)(l),{nodes:t}))}}return!1}}}},9581:(e,t,n)=>{n.d(t,{v:()=>o});var r=n(3298),i=n(7167);function o(e,t){switch(t.kind){case r.b.LIST_TYPE:{const n=o(e,t.type);return n&&new i.KT(n)}case r.b.NON_NULL_TYPE:{const n=o(e,t.type);return n&&new i.Gc(n)}case r.b.NAMED_TYPE:return e.getType(t.name.value)}}},9646:(e,t,n)=>{function r(e){return 9===e||32===e}function i(e){return e>=48&&e<=57}function o(e){return e>=97&&e<=122||e>=65&&e<=90}function a(e){return o(e)||95===e}function s(e){return o(e)||i(e)||95===e}n.d(t,{i0:()=>r,un:()=>a,xr:()=>s,yp:()=>i})},9654:(e,t,n)=>{n.d(t,{a:()=>d,b:()=>f,c:()=>p,d:()=>h,e:()=>m,g:()=>l});var r=n(7167),i=n(166),o=n(7437),a=Object.defineProperty,s=(e,t)=>a(e,"name",{value:t,configurable:!0});function l(e,t){const n={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return(0,o.f)(t,(t=>{var i,o;switch(t.kind){case"Query":case"ShortQuery":n.type=e.getQueryType();break;case"Mutation":n.type=e.getMutationType();break;case"Subscription":n.type=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":t.type&&(n.type=e.getType(t.type));break;case"Field":case"AliasedField":n.fieldDef=n.type&&t.name?u(e,n.parentType,t.name):null,n.type=null===(i=n.fieldDef)||void 0===i?void 0:i.type;break;case"SelectionSet":n.parentType=n.type?(0,r.MR)(n.type):null;break;case"Directive":n.directiveDef=t.name?e.getDirective(t.name):null;break;case"Arguments":const a=t.prevState?"Field"===t.prevState.kind?n.fieldDef:"Directive"===t.prevState.kind?n.directiveDef:"AliasedField"===t.prevState.kind?t.prevState.name&&u(e,n.parentType,t.prevState.name):null:null;n.argDefs=a?a.args:null;break;case"Argument":if(n.argDef=null,n.argDefs)for(let e=0;e<n.argDefs.length;e++)if(n.argDefs[e].name===t.name){n.argDef=n.argDefs[e];break}n.inputType=null===(o=n.argDef)||void 0===o?void 0:o.type;break;case"EnumValue":const s=n.inputType?(0,r.MR)(n.inputType):null;n.enumValue=s instanceof r.Zb?c(s.getValues(),(e=>e.value===t.name)):null;break;case"ListValue":const l=n.inputType?(0,r.yl)(n.inputType):null;n.inputType=l instanceof r.KT?l.ofType:null;break;case"ObjectValue":const d=n.inputType?(0,r.MR)(n.inputType):null;n.objectFieldDefs=d instanceof r.zP?d.getFields():null;break;case"ObjectField":const f=t.name&&n.objectFieldDefs?n.objectFieldDefs[t.name]:null;n.inputType=null==f?void 0:f.type;break;case"NamedType":n.type=t.name?e.getType(t.name):null}})),n}function u(e,t,n){return n===i.S.name&&e.getQueryType()===t?i.S:n===i.T.name&&e.getQueryType()===t?i.T:n===i.a.name&&(0,r.ML)(t)?i.a:t&&t.getFields?t.getFields()[n]:void 0}function c(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return e[n]}function d(e){return{kind:"Field",schema:e.schema,field:e.fieldDef,type:g(e.fieldDef)?null:e.parentType}}function f(e){return{kind:"Directive",schema:e.schema,directive:e.directiveDef}}function p(e){return e.directiveDef?{kind:"Argument",schema:e.schema,argument:e.argDef,directive:e.directiveDef}:{kind:"Argument",schema:e.schema,argument:e.argDef,field:e.fieldDef,type:g(e.fieldDef)?null:e.parentType}}function h(e){return{kind:"EnumValue",value:e.enumValue||void 0,type:e.inputType?(0,r.MR)(e.inputType):void 0}}function m(e,t){return{kind:"Type",schema:e.schema,type:t||e.type}}function g(e){return"__"===e.name.slice(0,2)}s(l,"getTypeInfo"),s(u,"getFieldDef"),s(c,"find"),s(d,"getFieldReference"),s(f,"getDirectiveReference"),s(p,"getArgumentReference"),s(h,"getEnumValueReference"),s(m,"getTypeReference"),s(g,"isMetaField")},9669:(e,t,n)=>{n.r(t),n.d(t,{s:()=>l});var r=n(3338),i=Object.defineProperty,o=(e,t)=>i(e,"name",{value:t,configurable:!0});function a(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}o(a,"_mergeNamespaces");var s={exports:{}};!function(e){var t="CodeMirror-hint-active";function n(e,t){if(this.cm=e,this.options=t,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var n=this;e.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}}e.showHint=function(e,t,n){if(!t)return e.showHint(n);n&&n.async&&(t.async=!0);var r={hint:t};if(n)for(var i in n)r[i]=n[i];return e.showHint(r)},e.defineExtension("showHint",(function(t){t=a(this,this.getCursor("start"),t);var r=this.listSelections();if(!(r.length>1)){if(this.somethingSelected()){if(!t.hint.supportsSelection)return;for(var i=0;i<r.length;i++)if(r[i].head.line!=r[i].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var o=this.state.completionActive=new n(this,t);o.options.hint&&(e.signal(this,"startCompletion",this),o.update(!0))}})),e.defineExtension("closeHint",(function(){this.state.completionActive&&this.state.completionActive.close()})),o(n,"Completion");var r=window.requestAnimationFrame||function(e){return setTimeout(e,1e3/60)},i=window.cancelAnimationFrame||clearTimeout;function a(e,t,n){var r=e.options.hintOptions,i={};for(var o in h)i[o]=h[o];if(r)for(var o in r)void 0!==r[o]&&(i[o]=r[o]);if(n)for(var o in n)void 0!==n[o]&&(i[o]=n[o]);return i.hint.resolve&&(i.hint=i.hint.resolve(e,t)),i}function s(e){return"string"==typeof e?e:e.text}function l(e,t){var n={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(1-t.menuSize(),!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-1)},Enter:t.pick,Tab:t.pick,Esc:t.close};/Mac/.test(navigator.platform)&&(n["Ctrl-P"]=function(){t.moveFocus(-1)},n["Ctrl-N"]=function(){t.moveFocus(1)});var r=e.options.customKeys,i=r?{}:n;function a(e,r){var a;a="string"!=typeof r?o((function(e){return r(e,t)}),"bound"):n.hasOwnProperty(r)?n[r]:r,i[e]=a}if(o(a,"addBinding"),r)for(var s in r)r.hasOwnProperty(s)&&a(s,r[s]);var l=e.options.extraKeys;if(l)for(var s in l)l.hasOwnProperty(s)&&a(s,l[s]);return i}function u(e,t){for(;t&&t!=e;){if("LI"===t.nodeName.toUpperCase()&&t.parentNode==e)return t;t=t.parentNode}}function c(n,r){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=n,this.data=r,this.picked=!1;var i=this,o=n.cm,a=o.getInputField().ownerDocument,c=a.defaultView||a.parentWindow,d=this.hints=a.createElement("ul");d.setAttribute("role","listbox"),d.setAttribute("aria-expanded","true"),d.id=this.id;var f=n.cm.options.theme;d.className="CodeMirror-hints "+f,this.selectedHint=r.selectedHint||0;for(var p=r.list,h=0;h<p.length;++h){var m=d.appendChild(a.createElement("li")),g=p[h],v="CodeMirror-hint"+(h!=this.selectedHint?"":" "+t);null!=g.className&&(v=g.className+" "+v),m.className=v,h==this.selectedHint&&m.setAttribute("aria-selected","true"),m.id=this.id+"-"+h,m.setAttribute("role","option"),g.render?g.render(m,r,g):m.appendChild(a.createTextNode(g.displayText||s(g))),m.hintId=h}var y=n.options.container||a.body,b=o.cursorCoords(n.options.alignWithWord?r.from:null),E=b.left,w=b.bottom,k=!0,T=0,x=0;if(y!==a.body){var C=-1!==["absolute","relative","fixed"].indexOf(c.getComputedStyle(y).position)?y:y.offsetParent,S=C.getBoundingClientRect(),N=a.body.getBoundingClientRect();T=S.left-N.left-C.scrollLeft,x=S.top-N.top-C.scrollTop}d.style.left=E-T+"px",d.style.top=w-x+"px";var _=c.innerWidth||Math.max(a.body.offsetWidth,a.documentElement.offsetWidth),O=c.innerHeight||Math.max(a.body.offsetHeight,a.documentElement.offsetHeight);y.appendChild(d),o.getInputField().setAttribute("aria-autocomplete","list"),o.getInputField().setAttribute("aria-owns",this.id),o.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var I,A=n.options.moveOnOverlap?d.getBoundingClientRect():new DOMRect,D=!!n.options.paddingForScrollbar&&d.scrollHeight>d.clientHeight+1;if(setTimeout((function(){I=o.getScrollInfo()})),A.bottom-O>0){var L=A.bottom-A.top;if(b.top-(b.bottom-A.top)-L>0)d.style.top=(w=b.top-L-x)+"px",k=!1;else if(L>O){d.style.height=O-5+"px",d.style.top=(w=b.bottom-A.top-x)+"px";var M=o.getCursor();r.from.ch!=M.ch&&(b=o.cursorCoords(M),d.style.left=(E=b.left-T)+"px",A=d.getBoundingClientRect())}}var F,R=A.right-_;if(D&&(R+=o.display.nativeBarWidth),R>0&&(A.right-A.left>_&&(d.style.width=_-5+"px",R-=A.right-A.left-_),d.style.left=(E=b.left-R-T)+"px"),D)for(var P=d.firstChild;P;P=P.nextSibling)P.style.paddingRight=o.display.nativeBarWidth+"px";o.addKeyMap(this.keyMap=l(n,{moveFocus:function(e,t){i.changeActive(i.selectedHint+e,t)},setFocus:function(e){i.changeActive(e)},menuSize:function(){return i.screenAmount()},length:p.length,close:function(){n.close()},pick:function(){i.pick()},data:r})),n.options.closeOnUnfocus&&(o.on("blur",this.onBlur=function(){F=setTimeout((function(){n.close()}),100)}),o.on("focus",this.onFocus=function(){clearTimeout(F)})),o.on("scroll",this.onScroll=function(){var e=o.getScrollInfo(),t=o.getWrapperElement().getBoundingClientRect();I||(I=o.getScrollInfo());var r=w+I.top-e.top,i=r-(c.pageYOffset||(a.documentElement||a.body).scrollTop);if(k||(i+=d.offsetHeight),i<=t.top||i>=t.bottom)return n.close();d.style.top=r+"px",d.style.left=E+I.left-e.left+"px"}),e.on(d,"dblclick",(function(e){var t=u(d,e.target||e.srcElement);t&&null!=t.hintId&&(i.changeActive(t.hintId),i.pick())})),e.on(d,"click",(function(e){var t=u(d,e.target||e.srcElement);t&&null!=t.hintId&&(i.changeActive(t.hintId),n.options.completeOnSingleClick&&i.pick())})),e.on(d,"mousedown",(function(){setTimeout((function(){o.focus()}),20)}));var j=this.getSelectedHintRange();return 0===j.from&&0===j.to||this.scrollToActive(),e.signal(r,"select",p[this.selectedHint],d.childNodes[this.selectedHint]),!0}function d(e,t){if(!e.somethingSelected())return t;for(var n=[],r=0;r<t.length;r++)t[r].supportsSelection&&n.push(t[r]);return n}function f(e,t,n,r){if(e.async)e(t,r,n);else{var i=e(t,n);i&&i.then?i.then(r):r(i)}}function p(t,n){var r,i=t.getHelpers(n,"hint");if(i.length){var a=o((function(e,t,n){var r=d(e,i);function a(i){if(i==r.length)return t(null);f(r[i],e,n,(function(e){e&&e.list.length>0?t(e):a(i+1)}))}o(a,"run"),a(0)}),"resolved");return a.async=!0,a.supportsSelection=!0,a}return(r=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:r})}:e.hint.anyword?function(t,n){return e.hint.anyword(t,n)}:function(){}}n.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,n){var r=t.list[n],i=this;this.cm.operation((function(){r.hint?r.hint(i.cm,t,r):i.cm.replaceRange(s(r),r.from||t.from,r.to||t.to,"complete"),e.signal(t,"pick",r),i.cm.scrollIntoView()})),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(i(this.debounce),this.debounce=0);var e=this.startPos;this.data&&(e=this.data.from);var t=this.cm.getCursor(),n=this.cm.getLine(t.line);if(t.line!=this.startPos.line||n.length-t.ch!=this.startLen-this.startPos.ch||t.ch<e.ch||this.cm.somethingSelected()||!t.ch||this.options.closeCharacters.test(n.charAt(t.ch-1)))this.close();else{var o=this;this.debounce=r((function(){o.update()})),this.widget&&this.widget.disable()}},update:function(e){if(null!=this.tick){var t=this,n=++this.tick;f(this.options.hint,this.cm,this.options,(function(r){t.tick==n&&t.finishUpdate(r,e)}))}},finishUpdate:function(t,n){this.data&&e.signal(this.data,"update");var r=this.widget&&this.widget.picked||n&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=t,t&&t.list.length&&(r&&1==t.list.length?this.pick(t,0):(this.widget=new c(this,t),e.signal(t,"shown")))}},o(a,"parseOptions"),o(s,"getText"),o(l,"buildKeyMap"),o(u,"getHintElement"),o(c,"Widget"),c.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var e=this.completion.cm.getInputField();e.removeAttribute("aria-activedescendant"),e.removeAttribute("aria-owns");var t=this.completion.cm;this.completion.options.closeOnUnfocus&&(t.off("blur",this.onBlur),t.off("focus",this.onFocus)),t.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var e=this;this.keyMap={Enter:function(){e.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(n,r){if(n>=this.data.list.length?n=r?this.data.list.length-1:0:n<0&&(n=r?0:this.data.list.length-1),this.selectedHint!=n){var i=this.hints.childNodes[this.selectedHint];i&&(i.className=i.className.replace(" "+t,""),i.removeAttribute("aria-selected")),(i=this.hints.childNodes[this.selectedHint=n]).className+=" "+t,i.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",i.id),this.scrollToActive(),e.signal(this.data,"select",this.data.list[this.selectedHint],i)}},scrollToActive:function(){var e=this.getSelectedHintRange(),t=this.hints.childNodes[e.from],n=this.hints.childNodes[e.to],r=this.hints.firstChild;t.offsetTop<this.hints.scrollTop?this.hints.scrollTop=t.offsetTop-r.offsetTop:n.offsetTop+n.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=n.offsetTop+n.offsetHeight-this.hints.clientHeight+r.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var e=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-e),to:Math.min(this.data.list.length-1,this.selectedHint+e)}}},o(d,"applicableHelpers"),o(f,"fetchHints"),o(p,"resolveAutoHints"),e.registerHelper("hint","auto",{resolve:p}),e.registerHelper("hint","fromList",(function(t,n){var r,i=t.getCursor(),o=t.getTokenAt(i),a=e.Pos(i.line,o.start),s=i;o.start<i.ch&&/\w/.test(o.string.charAt(i.ch-o.start-1))?r=o.string.substr(0,i.ch-o.start):(r="",a=i);for(var l=[],u=0;u<n.words.length;u++){var c=n.words[u];c.slice(0,r.length)==r&&l.push(c)}if(l.length)return{list:l,from:a,to:s}})),e.commands.autocomplete=e.showHint;var h={hint:e.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};e.defineOption("hintOptions",null)}(r.a.exports);var l=a({__proto__:null,default:s.exports},[s.exports])},9731:(e,t,n)=>{n.d(t,{U:()=>s});var r=n(4786),i=n(3298),o=n(6623),a=n(7613);function s(e){const t=Object.create(null),n=e.getSchema(),s=n?n.getDirectives():a.rc;for(const e of s)t[e.name]=!e.isRepeatable;const l=e.getDocument().definitions;for(const e of l)e.kind===i.b.DIRECTIVE_DEFINITION&&(t[e.name.value]=!e.repeatable);const u=Object.create(null),c=Object.create(null);return{enter(n){if(!("directives"in n)||!n.directives)return;let a;if(n.kind===i.b.SCHEMA_DEFINITION||n.kind===i.b.SCHEMA_EXTENSION)a=u;else if((0,o.a6)(n)||(0,o.i7)(n)){const e=n.name.value;a=c[e],void 0===a&&(c[e]=a=Object.create(null))}else a=Object.create(null);for(const i of n.directives){const n=i.name.value;t[n]&&(a[n]?e.reportError(new r.eO(`The directive "@${n}" can only be used once at this location.`,{nodes:[a[n],i]})):a[n]=i)}}}}},9738:(e,t,n)=>{n.d(t,{I:()=>i});var r=n(4786);function i(e,t,n){return new r.eO(`Syntax Error: ${n}`,{source:e,positions:[t]})}},9761:(e,t,n)=>{n.d(t,{k:()=>p,B:()=>f});var r=n(6286),i=n(129);function o(e){return"function"==typeof(null==e?void 0:e[Symbol.asyncIterator])}var a=n(1810),s=n(4786),l=n(7686),u=n(1626),c=n(8467),d=n(4803);async function f(e){arguments.length<2||(0,r.U)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const t=await p(e);return o(t)?function(t){const n=t[Symbol.asyncIterator]();async function r(t){if(t.done)return t;try{return{value:await(r=t.value,(0,c.g7)({...e,rootValue:r})),done:!1}}catch(e){if("function"==typeof n.return)try{await n.return()}catch(e){}throw e}var r}return{next:async()=>r(await n.next()),return:async()=>"function"==typeof n.return?r(await n.return()):{value:void 0,done:!0},async throw(e){if("function"==typeof n.throw)return r(await n.throw(e));throw e},[Symbol.asyncIterator](){return this}}}(t):t}async function p(...e){const t=function(e){const t=e[0];return t&&"document"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}(e),{schema:n,document:r,variableValues:f}=t;(0,c.lk)(n,r,f);const p=(0,c.II)(t);if(!("schema"in p))return{errors:p};try{const e=await async function(e){const{schema:t,fragments:n,operation:r,variableValues:i,rootValue:o}=e,f=t.getSubscriptionType();if(null==f)throw new s.eO("Schema is not configured to execute subscription operation.",{nodes:r});const p=(0,u._)(t,n,i,f,r.selectionSet),[h,m]=[...p.entries()][0],g=(0,c.uc)(t,f,m[0]);if(!g){const e=m[0].name.value;throw new s.eO(`The subscription field "${e}" is not defined.`,{nodes:m})}const v=(0,a.f)(void 0,h,f.name),y=(0,c.Vm)(e,g,m,f,v);try{var b;const t=(0,d.IA)(g,m[0],i),n=e.contextValue,r=null!==(b=g.subscribe)&&void 0!==b?b:e.subscribeFieldResolver,a=await r(o,t,n,y);if(a instanceof Error)throw a;return a}catch(e){throw(0,l.J)(e,m,(0,a.A)(v))}}(p);if(!o(e))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,i.N)(e)}.`);return e}catch(e){if(e instanceof s.eO)return{errors:[e]};throw e}}},9779:(e,t,n)=>{function r(e,t){let n=0,r=0;for(;n<e.length&&r<t.length;){let o=e.charCodeAt(n),s=t.charCodeAt(r);if(a(o)&&a(s)){let l=0;do{++n,l=10*l+o-i,o=e.charCodeAt(n)}while(a(o)&&l>0);let u=0;do{++r,u=10*u+s-i,s=t.charCodeAt(r)}while(a(s)&&u>0);if(l<u)return-1;if(l>u)return 1}else{if(o<s)return-1;if(o>s)return 1;++n,++r}}return e.length-t.length}n.d(t,{p:()=>r});const i=48,o=57;function a(e){return!isNaN(e)&&i<=e&&e<=o}},9982:(e,t,n)=>{e.exports=n(7463)},9993:(e,t,n)=>{n.d(t,{y:()=>l});var r=n(8100),i=n(2239),o=n(4786),a=n(6623),s=n(9488);function l(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),s=Object.create(null);for(const t of e.getDocument().definitions)(0,a.a6)(t)&&(s[t.name.value]=!0);const l=[...Object.keys(n),...Object.keys(s)];return{NamedType(t,c,d,f,p){const h=t.name.value;if(!n[h]&&!s[h]){var m;const n=null!==(m=p[2])&&void 0!==m?m:d,s=null!=n&&"kind"in(g=n)&&((0,a.xu)(g)||(0,a.fT)(g));if(s&&u.includes(h))return;const c=(0,i.x)(h,s?u.concat(l):l);e.reportError(new o.eO(`Unknown type "${h}".`+(0,r.a)(c),{nodes:t}))}var g}}}const u=[...n(3770).YC,...s.V4].map((e=>e.name))}}]);
3
+ //# sourceMappingURL=graphql-libraries.js.map