@redocly/openapi-docs 3.0.0 → 3.0.1

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.
Files changed (1889) hide show
  1. package/dist/redocly-openapi-docs.min.js +10663 -8387
  2. package/lib/components/ApiInfo/ApiInfo.d.ts +3 -3
  3. package/lib/components/ApiInfo/ApiInfo.js +2 -2
  4. package/lib/components/ApiInfo/Metadata.d.ts +2 -2
  5. package/lib/components/ApiInfo/Metadata.js +1 -1
  6. package/lib/components/ApiInfo/styled.js +4 -1
  7. package/lib/components/CallbackSamples/CallbackSamples.d.ts +4 -4
  8. package/lib/components/CallbackSamples/CallbackSamples.js +15 -1
  9. package/lib/components/Callbacks/CallbackDetails.d.ts +2 -2
  10. package/lib/components/Callbacks/CallbackDetails.js +18 -2
  11. package/lib/components/Callbacks/CallbackOperation.d.ts +4 -2
  12. package/lib/components/Callbacks/CallbackOperation.js +14 -1
  13. package/lib/components/Callbacks/CallbackSummary.d.ts +3 -3
  14. package/lib/components/Callbacks/CallbackSummary.js +18 -1
  15. package/lib/components/Callbacks/CallbacksList.d.ts +5 -3
  16. package/lib/components/Callbacks/CallbacksList.js +1 -1
  17. package/lib/components/Callbacks/styled.js +1 -0
  18. package/lib/components/Content/Content.d.ts +8 -0
  19. package/lib/components/Content/Content.js +2 -0
  20. package/lib/components/Content/index.d.ts +1 -0
  21. package/lib/components/Content/index.js +2 -0
  22. package/lib/components/Content/useAutoScroll.d.ts +1 -0
  23. package/lib/components/Content/useAutoScroll.js +2 -0
  24. package/lib/components/ContentItem/ContentItem.d.ts +3 -3
  25. package/lib/components/ContentItem/ContentItem.js +1 -1
  26. package/lib/components/ContentItem/useIsExpanded.d.ts +5 -0
  27. package/lib/components/ContentItem/useIsExpanded.js +2 -0
  28. package/lib/components/ContentItems/ContentItems.d.ts +3 -3
  29. package/lib/components/ContentItems/ContentItems.js +1 -1
  30. package/lib/components/ContentItems/helpers.d.ts +0 -8
  31. package/lib/components/ContentItems/helpers.js +1 -1
  32. package/lib/components/Discriminator/Discriminator.d.ts +9 -0
  33. package/lib/components/Discriminator/Discriminator.js +6 -0
  34. package/lib/components/Discriminator/index.d.ts +1 -0
  35. package/lib/components/Discriminator/index.js +2 -0
  36. package/lib/components/Download/DownloadSpecification.d.ts +4 -0
  37. package/lib/components/Download/DownloadSpecification.js +40 -0
  38. package/lib/components/Download/index.d.ts +1 -3
  39. package/lib/components/Download/index.js +1 -1
  40. package/lib/components/Download/types.d.ts +10 -14
  41. package/lib/components/Download/useDownloadInfo.d.ts +1 -1
  42. package/lib/components/Download/useDownloadInfo.js +1 -1
  43. package/lib/components/ErrorBoundary/ErrorBoundary.d.ts +2 -2
  44. package/lib/components/ErrorBoundary/ErrorBoundary.js +2 -2
  45. package/lib/components/ExpandAllButton/ExpandAllButton.d.ts +6 -0
  46. package/lib/components/ExpandAllButton/ExpandAllButton.js +4 -0
  47. package/lib/components/ExpandAllButton/getAllNestedSchema.d.ts +8 -0
  48. package/lib/components/ExpandAllButton/getAllNestedSchema.js +2 -0
  49. package/lib/components/ExpandAllButton/index.d.ts +2 -0
  50. package/lib/components/ExpandAllButton/index.js +2 -0
  51. package/lib/components/ExpandAllButton/useUpdateExpandedFields.d.ts +2 -0
  52. package/lib/components/ExpandAllButton/useUpdateExpandedFields.js +2 -0
  53. package/lib/components/ExternalDocumentation/ExternalDocumentation.d.ts +2 -2
  54. package/lib/components/ExternalDocumentation/ExternalDocumentation.js +4 -4
  55. package/lib/components/Language/LanguageDropdown.d.ts +15 -0
  56. package/lib/components/Language/LanguageDropdown.js +2 -0
  57. package/lib/components/Language/LanguageItem.d.ts +11 -0
  58. package/lib/components/Language/LanguageItem.js +2 -0
  59. package/lib/components/Language/LanguageList.d.ts +11 -0
  60. package/lib/components/Language/LanguageList.js +2 -0
  61. package/lib/components/Language/_tests_/LanguageDropdown.test.d.ts +1 -0
  62. package/lib/components/Language/_tests_/LanguageDropdown.test.js +2 -0
  63. package/lib/components/Language/constants.d.ts +1 -0
  64. package/lib/components/Language/constants.js +2 -0
  65. package/lib/components/Language/index.d.ts +3 -0
  66. package/lib/components/Language/index.js +2 -0
  67. package/lib/components/Language/styled.d.ts +30 -0
  68. package/lib/components/Language/styled.js +76 -0
  69. package/lib/components/Markdown/Markdown.d.ts +2 -2
  70. package/lib/components/Markdown/Markdown.js +1 -1
  71. package/lib/components/Markdown/index.d.ts +0 -1
  72. package/lib/components/Markdown/index.js +1 -1
  73. package/lib/components/Markdown/types.d.ts +3 -2
  74. package/lib/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +5 -5
  75. package/lib/components/MediaTypeSwitch/MediaTypesSwitch.js +1 -1
  76. package/lib/components/OperationItem/Description.d.ts +10 -0
  77. package/lib/components/OperationItem/Description.js +2 -0
  78. package/lib/components/OperationItem/OperationItem.d.ts +2 -2
  79. package/lib/components/OperationItem/OperationItem.js +20 -10
  80. package/lib/components/OperationItem/_tests_/OperationItem.test.d.ts +1 -0
  81. package/lib/components/OperationItem/_tests_/OperationItem.test.js +2 -0
  82. package/lib/components/Overlay.d.ts +2 -2
  83. package/lib/components/Overlay.js +1 -1
  84. package/lib/components/Overview/Overview.d.ts +4 -0
  85. package/lib/components/Overview/Overview.js +2 -0
  86. package/lib/components/Overview/index.d.ts +1 -0
  87. package/lib/components/Overview/index.js +2 -0
  88. package/lib/components/PageFooter/PageFooter.d.ts +3 -14
  89. package/lib/components/PageFooter/PageFooter.js +1 -1
  90. package/lib/components/Panel/ContentPanel.d.ts +2 -4
  91. package/lib/components/Panel/ResponsePanel.d.ts +3 -8
  92. package/lib/components/Panel/ResponsePanel.js +7 -8
  93. package/lib/components/Panel/index.d.ts +0 -4
  94. package/lib/components/Panel/index.js +1 -1
  95. package/lib/components/PanelItem/PanelItem.d.ts +9 -0
  96. package/lib/components/PanelItem/PanelItem.js +2 -0
  97. package/lib/components/PanelItem/index.d.ts +2 -0
  98. package/lib/components/PanelItem/index.js +2 -0
  99. package/lib/components/PanelItem/styled.d.ts +17 -0
  100. package/lib/components/PanelItem/styled.js +53 -0
  101. package/lib/components/PayloadSamples/Example.d.ts +2 -2
  102. package/lib/components/PayloadSamples/Example.js +1 -1
  103. package/lib/components/PayloadSamples/ExampleValue.d.ts +1 -1
  104. package/lib/components/PayloadSamples/ExampleValue.js +1 -1
  105. package/lib/components/PayloadSamples/ExternalExample.d.ts +2 -2
  106. package/lib/components/PayloadSamples/ExternalExample.js +1 -1
  107. package/lib/components/PayloadSamples/MediaTypeSamples.d.ts +2 -2
  108. package/lib/components/PayloadSamples/MediaTypeSamples.js +3 -1
  109. package/lib/components/PayloadSamples/PayloadSamples.d.ts +2 -2
  110. package/lib/components/PayloadSamples/PayloadSamples.js +1 -1
  111. package/lib/components/PayloadSamples/styled.d.ts +4 -3
  112. package/lib/components/PayloadSamples/styled.js +10 -5
  113. package/lib/components/PayloadSamples/types.d.ts +0 -1
  114. package/lib/components/PropertyDetails/DescriptionEnums.d.ts +4 -0
  115. package/lib/components/PropertyDetails/DescriptionEnums.js +10 -0
  116. package/lib/components/PropertyDetails/EnumValues.d.ts +3 -0
  117. package/lib/components/PropertyDetails/EnumValues.js +2 -0
  118. package/lib/components/PropertyDetails/Examples.d.ts +5 -0
  119. package/lib/components/PropertyDetails/Examples.js +2 -0
  120. package/lib/components/PropertyDetails/Extensions.d.ts +3 -0
  121. package/lib/components/PropertyDetails/Extensions.js +4 -0
  122. package/lib/components/PropertyDetails/FieldDetail.d.ts +7 -0
  123. package/lib/components/PropertyDetails/FieldDetail.js +8 -0
  124. package/lib/components/PropertyDetails/FieldDetails.d.ts +3 -0
  125. package/lib/components/PropertyDetails/FieldDetails.js +43 -0
  126. package/lib/components/PropertyDetails/Pattern.d.ts +6 -0
  127. package/lib/components/PropertyDetails/Pattern.js +2 -0
  128. package/lib/components/PropertyDetails/PlusCircleIcon.d.ts +7 -0
  129. package/lib/components/PropertyDetails/PlusCircleIcon.js +11 -0
  130. package/lib/components/PropertyDetails/PropertyDetails.d.ts +3 -0
  131. package/lib/components/PropertyDetails/PropertyDetails.js +17 -0
  132. package/lib/components/PropertyDetails/SchemaTypeInfo.d.ts +6 -0
  133. package/lib/components/PropertyDetails/SchemaTypeInfo.js +16 -0
  134. package/lib/components/PropertyDetails/SimpleEnums.d.ts +4 -0
  135. package/lib/components/PropertyDetails/SimpleEnums.js +8 -0
  136. package/lib/components/PropertyDetails/cycleColorsByLevel.d.ts +1 -0
  137. package/lib/components/PropertyDetails/cycleColorsByLevel.js +2 -0
  138. package/lib/components/PropertyDetails/index.d.ts +3 -0
  139. package/lib/components/PropertyDetails/index.js +2 -0
  140. package/lib/components/PropertyDetails/styled.d.ts +16 -0
  141. package/lib/components/PropertyDetails/styled.js +23 -0
  142. package/lib/components/PropertyDetails/types.d.ts +43 -0
  143. package/lib/components/RedoclyOpenAPIDocs/Providers.d.ts +4 -7
  144. package/lib/components/RedoclyOpenAPIDocs/Providers.js +1 -1
  145. package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.d.ts +3 -3
  146. package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.js +1 -1
  147. package/lib/components/RedoclyOpenAPIDocs/index.d.ts +2 -2
  148. package/lib/components/RedoclyOpenAPIDocs/index.js +1 -1
  149. package/lib/components/RedoclyOpenAPIDocs/styled.d.ts +0 -8
  150. package/lib/components/RedoclyOpenAPIDocs/styled.js +13 -113
  151. package/lib/components/RedoclyOpenAPIDocs/types.d.ts +16 -33
  152. package/lib/components/RedoclyOpenAPIDocs/utils.d.ts +3 -5
  153. package/lib/components/RedoclyOpenAPIDocs/utils.js +1 -1
  154. package/lib/components/RenderHook/RenderHook.d.ts +3 -3
  155. package/lib/components/RenderHook/RenderHook.js +1 -1
  156. package/lib/components/Replay/EmbeddedReplay.d.ts +11 -0
  157. package/lib/components/Replay/EmbeddedReplay.js +11 -0
  158. package/lib/components/Replay/Replay.d.ts +10 -0
  159. package/lib/components/Replay/Replay.js +14 -0
  160. package/lib/components/Replay/index.d.ts +2 -0
  161. package/lib/components/Replay/index.js +2 -0
  162. package/lib/components/Replay/utils.d.ts +14 -0
  163. package/lib/components/Replay/utils.js +2 -0
  164. package/lib/components/Request/RequestDetails.d.ts +3 -0
  165. package/lib/components/Request/RequestDetails.js +4 -0
  166. package/lib/components/Request/types.d.ts +6 -0
  167. package/lib/components/RequestParameters/Body.d.ts +10 -0
  168. package/lib/components/RequestParameters/Body.js +2 -0
  169. package/lib/components/RequestParameters/ParametersGroup.d.ts +9 -0
  170. package/lib/components/RequestParameters/ParametersGroup.js +21 -0
  171. package/lib/components/RequestParameters/RequestParameters.d.ts +9 -0
  172. package/lib/components/RequestParameters/RequestParameters.js +2 -0
  173. package/lib/components/RequestParameters/index.d.ts +2 -0
  174. package/lib/components/RequestParameters/index.js +2 -0
  175. package/lib/components/RequestSamples/CodeSample.d.ts +3 -4
  176. package/lib/components/RequestSamples/CodeSample.js +9 -1
  177. package/lib/components/RequestSamples/Example.d.ts +3 -4
  178. package/lib/components/RequestSamples/Example.js +1 -1
  179. package/lib/components/RequestSamples/RequestSamples.d.ts +4 -9
  180. package/lib/components/RequestSamples/RequestSamples.js +6 -1
  181. package/lib/components/RequestSamples/useCodeSamples.d.ts +1 -1
  182. package/lib/components/RequestSamples/useCodeSamples.js +1 -1
  183. package/lib/components/ResponseSamples/ResponseSamples.d.ts +5 -3
  184. package/lib/components/ResponseSamples/ResponseSamples.js +1 -1
  185. package/lib/components/ResponseSamples/Summary.d.ts +5 -0
  186. package/lib/components/ResponseSamples/Summary.js +2 -0
  187. package/lib/components/Responses/OperationResponseList.d.ts +8 -2
  188. package/lib/components/Responses/OperationResponseList.js +4 -1
  189. package/lib/components/Responses/ResponseDetails.d.ts +2 -2
  190. package/lib/components/Responses/ResponseDetails.js +1 -3
  191. package/lib/components/Responses/ResponseHeaders.d.ts +2 -2
  192. package/lib/components/Responses/ResponseHeaders.js +1 -1
  193. package/lib/components/Responses/index.d.ts +0 -3
  194. package/lib/components/Responses/index.js +1 -1
  195. package/lib/components/Responses/styled.d.ts +6 -3
  196. package/lib/components/Responses/styled.js +21 -12
  197. package/lib/components/Responses/types.d.ts +5 -7
  198. package/lib/components/RightPanel/RightPanel.d.ts +5 -0
  199. package/lib/components/RightPanel/RightPanel.js +2 -0
  200. package/lib/components/RightPanel/index.d.ts +1 -0
  201. package/lib/components/RightPanel/index.js +2 -0
  202. package/lib/components/Samples/ExampleSwitch.d.ts +2 -3
  203. package/lib/components/Samples/ExampleSwitch.js +1 -1
  204. package/lib/components/Samples/index.d.ts +0 -2
  205. package/lib/components/Samples/index.js +1 -1
  206. package/lib/components/Samples/use-example-key.d.ts +1 -2
  207. package/lib/components/Samples/use-example-key.js +1 -1
  208. package/lib/components/Schema/ArraySchema.d.ts +3 -2
  209. package/lib/components/Schema/ArraySchema.js +33 -3
  210. package/lib/components/Schema/ObjectSchema.d.ts +2 -2
  211. package/lib/components/Schema/ObjectSchema.js +1 -1
  212. package/lib/components/Schema/OneOfSchema.d.ts +2 -2
  213. package/lib/components/Schema/OneOfSchema.js +9 -1
  214. package/lib/components/Schema/RecursiveSchema.d.ts +2 -2
  215. package/lib/components/Schema/RecursiveSchema.js +1 -1
  216. package/lib/components/Schema/Schema.d.ts +2 -2
  217. package/lib/components/Schema/Schema.js +4 -1
  218. package/lib/components/Schema/SubSchema.d.ts +13 -0
  219. package/lib/components/Schema/SubSchema.js +2 -0
  220. package/lib/components/Schema/helpers.d.ts +5 -0
  221. package/lib/components/Schema/helpers.js +2 -0
  222. package/lib/components/Schema/types.d.ts +11 -1
  223. package/lib/components/Schema/useOneOfLocationIdx.d.ts +2 -0
  224. package/lib/components/Schema/useOneOfLocationIdx.js +2 -0
  225. package/lib/components/SchemaDefinition/SchemaDefinition.d.ts +2 -2
  226. package/lib/components/SchemaDefinition/SchemaDefinition.js +1 -4
  227. package/lib/components/SectionContent/SectionContent.d.ts +2 -10
  228. package/lib/components/SectionContent/SectionContent.js +15 -1
  229. package/lib/components/SectionItem/SectionItem.d.ts +2 -2
  230. package/lib/components/SectionItem/SectionItem.js +1 -1
  231. package/lib/components/Security/Divider.d.ts +3 -0
  232. package/lib/components/Security/Divider.js +15 -0
  233. package/lib/components/Security/OAuthFlow.d.ts +6 -0
  234. package/lib/components/Security/OAuthFlow.js +4 -0
  235. package/lib/components/Security/Security.d.ts +7 -0
  236. package/lib/components/Security/Security.js +2 -0
  237. package/lib/components/Security/SecurityButton.d.ts +10 -0
  238. package/lib/components/Security/SecurityButton.js +28 -0
  239. package/lib/components/Security/SecurityFlow.d.ts +5 -0
  240. package/lib/components/Security/SecurityFlow.js +21 -0
  241. package/lib/components/Security/SecurityModal.d.ts +8 -0
  242. package/lib/components/Security/SecurityModal.js +45 -0
  243. package/lib/components/Security/SecuritySchemeItem.d.ts +7 -0
  244. package/lib/components/Security/SecuritySchemeItem.js +20 -0
  245. package/lib/components/Security/helper.d.ts +2 -0
  246. package/lib/components/Security/helper.js +2 -0
  247. package/lib/components/Security/index.d.ts +1 -0
  248. package/lib/components/Security/index.js +2 -0
  249. package/lib/components/Security/styled.d.ts +2 -0
  250. package/lib/components/Security/styled.js +14 -0
  251. package/lib/components/SelectOrLabel/SelectOrLabel.d.ts +7 -0
  252. package/lib/components/SelectOrLabel/SelectOrLabel.js +8 -0
  253. package/lib/components/SelectOrLabel/index.d.ts +1 -0
  254. package/lib/components/SelectOrLabel/index.js +2 -0
  255. package/lib/components/ServerList/ServerList.d.ts +3 -0
  256. package/lib/components/ServerList/ServerList.js +60 -0
  257. package/lib/components/ServerList/index.d.ts +1 -0
  258. package/lib/components/ServerList/index.js +2 -0
  259. package/lib/components/ServerList/types.d.ts +2 -0
  260. package/lib/components/ServerListDropdown/ServerListDropdown.d.ts +7 -0
  261. package/lib/components/ServerListDropdown/ServerListDropdown.js +2 -0
  262. package/lib/components/ServerListDropdown/index.d.ts +1 -0
  263. package/lib/components/ServerListDropdown/index.js +2 -0
  264. package/lib/components/ServerListDropdown/styled.d.ts +6 -0
  265. package/lib/components/ServerListDropdown/styled.js +23 -0
  266. package/lib/components/SideMenu/SideMenu.d.ts +3 -2
  267. package/lib/components/SideMenu/SideMenu.js +3 -1
  268. package/lib/components/SideMenu/hooks/useMenuItems.d.ts +1 -3
  269. package/lib/components/SideMenu/hooks/useMenuItems.js +1 -1
  270. package/lib/components/SideMenu/index.d.ts +0 -3
  271. package/lib/components/SideMenu/index.js +1 -1
  272. package/lib/components/SideMenu/types.d.ts +1 -15
  273. package/lib/components/StickySidebar/SidebarActions.d.ts +1 -0
  274. package/lib/components/StickySidebar/SidebarActions.js +6 -0
  275. package/lib/components/StickySidebar/StickyResponsiveSidebar.d.ts +2 -3
  276. package/lib/components/StickySidebar/StickyResponsiveSidebar.js +12 -26
  277. package/lib/components/Tabs/Tabs.d.ts +8 -0
  278. package/lib/components/Tabs/Tabs.js +35 -0
  279. package/lib/components/Tabs/index.d.ts +2 -5
  280. package/lib/components/Tabs/index.js +1 -1
  281. package/lib/components/Tabs/useTabsState.d.ts +11 -0
  282. package/lib/components/Tabs/useTabsState.js +2 -0
  283. package/lib/components/TagItem/OperationsNavigation.d.ts +9 -0
  284. package/lib/components/TagItem/OperationsNavigation.js +46 -0
  285. package/lib/components/TagItem/TagItem.d.ts +8 -2
  286. package/lib/components/TagItem/TagItem.js +22 -1
  287. package/lib/components/UnsupportedFeatureScreen/UnsupportedFeatureScreen.d.ts +1 -0
  288. package/lib/components/UnsupportedFeatureScreen/UnsupportedFeatureScreen.js +18 -0
  289. package/lib/components/UnsupportedFeatureScreen/index.d.ts +1 -0
  290. package/lib/components/UnsupportedFeatureScreen/index.js +2 -0
  291. package/lib/components/ViewNested/ViewNested.d.ts +13 -0
  292. package/lib/components/ViewNested/ViewNested.js +31 -0
  293. package/lib/components/ViewNested/index.d.ts +1 -0
  294. package/lib/components/ViewNested/index.js +2 -0
  295. package/lib/components/common/BodyContent/BodyContent.d.ts +12 -0
  296. package/lib/components/common/BodyContent/BodyContent.js +28 -0
  297. package/lib/components/common/BodyContent/index.d.ts +1 -0
  298. package/lib/components/common/BodyContent/index.js +2 -0
  299. package/lib/components/common/ClearButton/ClearButton.d.ts +2 -2
  300. package/lib/components/common/ClearButton/ClearButton.js +1 -1
  301. package/lib/components/common/ClearButton/types.d.ts +2 -2
  302. package/lib/components/common/CodeBlockPanel.d.ts +2 -0
  303. package/lib/components/common/CodeBlockPanel.js +6 -0
  304. package/lib/components/common/ConstraintsView.d.ts +5 -0
  305. package/lib/components/common/ConstraintsView.js +4 -0
  306. package/lib/components/common/Dropdown/Dropdown.d.ts +15 -3
  307. package/lib/components/common/Dropdown/Dropdown.js +26 -15
  308. package/lib/components/common/Dropdown/index.d.ts +2 -2
  309. package/lib/components/common/Dropdown/index.js +1 -1
  310. package/lib/components/common/Extensions.d.ts +7 -0
  311. package/lib/components/common/Extensions.js +4 -0
  312. package/lib/components/common/Fields/fields-layout.js +12 -13
  313. package/lib/components/common/Fields/fields.d.ts +33 -16
  314. package/lib/components/common/Fields/fields.js +45 -64
  315. package/lib/components/common/LinkToField.d.ts +3 -8
  316. package/lib/components/common/LinkToField.js +14 -8
  317. package/lib/components/common/OperationItemTitle.d.ts +2 -0
  318. package/lib/components/common/OperationItemTitle.js +33 -0
  319. package/lib/components/common/SchemaSelection/SchemaSelection.d.ts +12 -0
  320. package/lib/components/common/SchemaSelection/SchemaSelection.js +2 -0
  321. package/lib/components/common/SchemaSelection/index.d.ts +1 -0
  322. package/lib/components/common/SchemaSelection/index.js +2 -0
  323. package/lib/components/common/Select/Select.d.ts +3 -0
  324. package/lib/components/common/Select/Select.js +2 -0
  325. package/lib/components/common/Select/index.d.ts +2 -0
  326. package/lib/components/common/Select/index.js +2 -0
  327. package/lib/components/common/Select/styled.d.ts +23 -0
  328. package/lib/components/common/Select/styled.js +111 -0
  329. package/lib/components/common/Select/types.d.ts +20 -0
  330. package/lib/components/common/Skeleton/LanguageListSkeleton.d.ts +4 -0
  331. package/lib/components/common/Skeleton/LanguageListSkeleton.js +23 -0
  332. package/lib/components/common/Skeleton/Skeleton.d.ts +5 -2
  333. package/lib/components/common/Skeleton/Skeleton.js +7 -5
  334. package/lib/components/common/headers.d.ts +0 -1
  335. package/lib/components/common/headers.js +2 -6
  336. package/lib/components/common/index.d.ts +5 -7
  337. package/lib/components/common/index.js +1 -1
  338. package/lib/components/common/linkify.d.ts +4 -3
  339. package/lib/components/common/linkify.js +12 -3
  340. package/lib/components/common/panels.d.ts +5 -1
  341. package/lib/components/common/panels.js +61 -40
  342. package/lib/components/common/schema.d.ts +3 -5
  343. package/lib/components/common/schema.js +26 -20
  344. package/lib/components/common/styled.d.ts +4 -0
  345. package/lib/components/common/styled.js +27 -0
  346. package/lib/components/index.d.ts +4 -13
  347. package/lib/components/index.js +1 -1
  348. package/lib/components/pluggable/RedocExample.d.ts +2 -2
  349. package/lib/components/pluggable/RedocExample.js +1 -1
  350. package/lib/components/pluggable/RedocSchema.d.ts +2 -2
  351. package/lib/components/pluggable/RedocSchema.js +1 -1
  352. package/lib/components/pluggable/index.d.ts +0 -3
  353. package/lib/components/pluggable/index.js +1 -1
  354. package/lib/components/pluggable/styled.components.d.ts +1 -0
  355. package/lib/components/pluggable/styled.components.js +1 -1
  356. package/lib/constants.d.ts +5 -3
  357. package/lib/constants.js +1 -1
  358. package/lib/events/codeSampleCopy.js +1 -1
  359. package/lib/events/index.d.ts +0 -1
  360. package/lib/events/index.js +1 -1
  361. package/lib/events/types.d.ts +1 -8
  362. package/lib/events/types.js +1 -1
  363. package/lib/hoc/types.d.ts +3 -10
  364. package/lib/hoc/utils.d.ts +2 -2
  365. package/lib/hoc/withRouter.d.ts +2 -2
  366. package/lib/hoc/withRouter.js +1 -1
  367. package/lib/hoc/withStore.d.ts +2 -2
  368. package/lib/hoc/withStore.js +1 -1
  369. package/lib/hooks/index.d.ts +2 -0
  370. package/lib/hooks/index.js +1 -1
  371. package/lib/hooks/useActivateExample.js +1 -1
  372. package/lib/hooks/useActiveWithFallback.d.ts +3 -0
  373. package/lib/hooks/useActiveWithFallback.js +2 -0
  374. package/lib/hooks/useContentItems.js +1 -1
  375. package/lib/hooks/useRouter.d.ts +4 -2
  376. package/lib/hooks/useUppercase2LowercaseRedirect.d.ts +1 -0
  377. package/lib/hooks/useUppercase2LowercaseRedirect.js +2 -0
  378. package/lib/icons/CSharpIcon/CSharpIcon.d.ts +4 -0
  379. package/lib/icons/CSharpIcon/CSharpIcon.js +2 -0
  380. package/lib/icons/CSharpIcon/index.d.ts +1 -0
  381. package/lib/icons/CSharpIcon/index.js +2 -0
  382. package/lib/icons/CurlIcon/CurlIcon.d.ts +4 -0
  383. package/lib/icons/CurlIcon/CurlIcon.js +2 -0
  384. package/lib/icons/CurlIcon/index.d.ts +1 -0
  385. package/lib/icons/CurlIcon/index.js +2 -0
  386. package/lib/icons/GOIcon/GOIcon.d.ts +4 -0
  387. package/lib/icons/GOIcon/GOIcon.js +2 -0
  388. package/lib/icons/GOIcon/index.d.ts +1 -0
  389. package/lib/icons/GOIcon/index.js +2 -0
  390. package/lib/icons/JavaIcon/JavaIcon.d.ts +4 -0
  391. package/lib/icons/JavaIcon/JavaIcon.js +2 -0
  392. package/lib/icons/JavaIcon/index.d.ts +1 -0
  393. package/lib/icons/JavaIcon/index.js +2 -0
  394. package/lib/icons/JavaScriptIcon/JavaScriptIcon.d.ts +4 -0
  395. package/lib/icons/JavaScriptIcon/JavaScriptIcon.js +2 -0
  396. package/lib/icons/JavaScriptIcon/index.d.ts +1 -0
  397. package/lib/icons/JavaScriptIcon/index.js +2 -0
  398. package/lib/icons/NodeJSIcon/NodeJSIcon.d.ts +4 -0
  399. package/lib/icons/NodeJSIcon/NodeJSIcon.js +2 -0
  400. package/lib/icons/NodeJSIcon/index.d.ts +1 -0
  401. package/lib/icons/NodeJSIcon/index.js +2 -0
  402. package/lib/icons/PHPIcon/PHPIcon.d.ts +4 -0
  403. package/lib/icons/PHPIcon/PHPIcon.js +2 -0
  404. package/lib/icons/PHPIcon/index.d.ts +1 -0
  405. package/lib/icons/PHPIcon/index.js +2 -0
  406. package/lib/icons/PayloadIcon/PayloadIcon.d.ts +4 -0
  407. package/lib/icons/PayloadIcon/PayloadIcon.js +2 -0
  408. package/lib/icons/PayloadIcon/index.d.ts +1 -0
  409. package/lib/icons/PayloadIcon/index.js +2 -0
  410. package/lib/icons/PythonIcon/PythonIcon.d.ts +4 -0
  411. package/lib/icons/PythonIcon/PythonIcon.js +2 -0
  412. package/lib/icons/PythonIcon/index.d.ts +1 -0
  413. package/lib/icons/PythonIcon/index.js +2 -0
  414. package/lib/icons/RIcon/RIcon.d.ts +4 -0
  415. package/lib/icons/RIcon/RIcon.js +2 -0
  416. package/lib/icons/RIcon/index.d.ts +1 -0
  417. package/lib/icons/RIcon/index.js +2 -0
  418. package/lib/icons/RubyIcon/RubyIcon.d.ts +4 -0
  419. package/lib/icons/RubyIcon/RubyIcon.js +2 -0
  420. package/lib/icons/RubyIcon/index.d.ts +1 -0
  421. package/lib/icons/RubyIcon/index.js +2 -0
  422. package/lib/index.d.ts +8 -7
  423. package/lib/index.js +1 -1
  424. package/lib/jotai/app.d.ts +50 -0
  425. package/lib/jotai/app.js +2 -0
  426. package/lib/jotai/nexus.d.ts +5 -0
  427. package/lib/jotai/nexus.js +2 -0
  428. package/lib/jotai/operation.d.ts +39 -0
  429. package/lib/jotai/operation.js +2 -0
  430. package/lib/jotai/replay.d.ts +3 -0
  431. package/lib/jotai/replay.js +2 -0
  432. package/lib/jotai/store.d.ts +16 -0
  433. package/lib/jotai/store.js +2 -0
  434. package/lib/models/code-sample-options.d.ts +1 -4
  435. package/lib/models/group.d.ts +2 -2
  436. package/lib/models/group.js +1 -1
  437. package/lib/models/index.d.ts +0 -1
  438. package/lib/models/index.js +1 -1
  439. package/lib/models/mediaContent.js +1 -1
  440. package/lib/models/mediaType.js +1 -1
  441. package/lib/models/operation.js +1 -1
  442. package/lib/models/response.js +1 -1
  443. package/lib/models/schema.js +1 -1
  444. package/lib/models/security.js +1 -1
  445. package/lib/models/tab.d.ts +4 -0
  446. package/lib/models/tab.js +2 -0
  447. package/lib/models/types.d.ts +13 -15
  448. package/lib/services/OpenAPIParser.d.ts +1 -2
  449. package/lib/services/OpenAPIParser.js +1 -1
  450. package/lib/services/code-samples/constants.d.ts +2 -0
  451. package/lib/services/code-samples/constants.js +2 -0
  452. package/lib/services/code-samples/generator.d.ts +3 -3
  453. package/lib/services/code-samples/generator.js +1 -1
  454. package/lib/services/code-samples/httpsnippet/helpers/code-builder.d.ts +2 -1
  455. package/lib/services/code-samples/httpsnippet/helpers/code-builder.js +1 -1
  456. package/lib/services/code-samples/httpsnippet/helpers/code-helpers.js +1 -1
  457. package/lib/services/code-samples/httpsnippet/helpers/constants.d.ts +1 -0
  458. package/lib/services/code-samples/httpsnippet/helpers/constants.js +1 -1
  459. package/lib/services/code-samples/httpsnippet/helpers/mocks/code-helpers-mock.d.ts +2 -0
  460. package/lib/services/code-samples/httpsnippet/helpers/mocks/code-helpers-mock.js +1 -1
  461. package/lib/services/code-samples/httpsnippet/index.d.ts +1 -1
  462. package/lib/services/code-samples/httpsnippet/targets/__mocks__/mock.js +1 -1
  463. package/lib/services/code-samples/httpsnippet/targets/csharp/httpclient.js +1 -1
  464. package/lib/services/code-samples/httpsnippet/targets/csharpNewtonsoft/httpclient.d.ts +10 -0
  465. package/lib/services/code-samples/httpsnippet/targets/csharpNewtonsoft/httpclient.js +2 -0
  466. package/lib/services/code-samples/httpsnippet/targets/csharpNewtonsoft/index.d.ts +10 -0
  467. package/lib/services/code-samples/httpsnippet/targets/csharpNewtonsoft/index.js +2 -0
  468. package/lib/services/code-samples/httpsnippet/targets/index.d.ts +9 -0
  469. package/lib/services/code-samples/httpsnippet/targets/index.js +1 -1
  470. package/lib/services/code-samples/httpsnippet/targets/python/requests.js +1 -1
  471. package/lib/services/code-samples/types.d.ts +10 -4
  472. package/lib/services/config-options/helpers.d.ts +3 -0
  473. package/lib/services/config-options/helpers.js +2 -0
  474. package/lib/services/config-options/normalizeOptions.d.ts +3 -0
  475. package/lib/services/config-options/normalizeOptions.js +2 -0
  476. package/lib/services/config-options/types.d.ts +54 -0
  477. package/lib/services/history/helpers.d.ts +1 -0
  478. package/lib/services/history/helpers.js +1 -1
  479. package/lib/services/index.d.ts +1 -5
  480. package/lib/services/index.js +1 -1
  481. package/lib/services/menu/builder.d.ts +1 -1
  482. package/lib/services/menu/builder.js +1 -1
  483. package/lib/services/menu/markdown.d.ts +1 -4
  484. package/lib/services/menu/markdown.js +1 -1
  485. package/lib/services/menu/operation.d.ts +2 -5
  486. package/lib/services/menu/operation.js +1 -1
  487. package/lib/services/menu/tags.d.ts +1 -1
  488. package/lib/services/menu/tags.js +1 -1
  489. package/lib/services/types.d.ts +4 -50
  490. package/lib/services/types.js +1 -1
  491. package/lib/services/utils.d.ts +0 -7
  492. package/lib/services/utils.js +1 -1
  493. package/lib/setupTests.d.ts +1 -2
  494. package/lib/setupTests.js +1 -1
  495. package/lib/standalone.d.ts +2 -6
  496. package/lib/standalone.js +1 -1
  497. package/lib/testProviders.d.ts +2 -3
  498. package/lib/testProviders.js +1 -1
  499. package/lib/types/index.d.ts +0 -1
  500. package/lib/types/index.js +1 -1
  501. package/lib/types/open-api.d.ts +15 -5
  502. package/lib/utils/argValuesHelpers.d.ts +1 -1
  503. package/lib/utils/argValuesHelpers.js +1 -1
  504. package/lib/utils/cookies.d.ts +7 -0
  505. package/lib/utils/cookies.js +2 -0
  506. package/lib/utils/dom.d.ts +0 -1
  507. package/lib/utils/dom.js +1 -1
  508. package/lib/utils/environments.d.ts +4 -0
  509. package/lib/utils/environments.js +2 -0
  510. package/lib/utils/helpers.d.ts +2 -3
  511. package/lib/utils/helpers.js +1 -1
  512. package/lib/utils/index.d.ts +2 -2
  513. package/lib/utils/index.js +1 -1
  514. package/lib/utils/isMobile.d.ts +5 -0
  515. package/lib/utils/isMobile.js +2 -0
  516. package/lib/utils/loadAndBundleSpec.js +1 -1
  517. package/lib/utils/local-storage.js +1 -1
  518. package/lib/utils/object.d.ts +1 -0
  519. package/lib/utils/object.js +1 -1
  520. package/lib/utils/openapi.d.ts +3 -5
  521. package/lib/utils/openapi.js +1 -1
  522. package/lib/utils/path.d.ts +0 -1
  523. package/lib/utils/path.js +1 -1
  524. package/lib/utils/replaceVariables.d.ts +2 -0
  525. package/lib/utils/replaceVariables.js +2 -0
  526. package/lib/utils/saveTextBeforeHeading.d.ts +1 -1
  527. package/lib/utils/saveTextBeforeHeading.js +1 -1
  528. package/lib/utils/security-details.d.ts +1 -5
  529. package/lib/utils/security-details.js +1 -1
  530. package/lib/utils/session-storage.js +1 -1
  531. package/lib/utils/string.d.ts +1 -0
  532. package/lib/utils/string.js +1 -1
  533. package/lib-esm/components/ApiInfo/ApiInfo.d.ts +3 -3
  534. package/lib-esm/components/ApiInfo/ApiInfo.js +2 -2
  535. package/lib-esm/components/ApiInfo/Metadata.d.ts +2 -2
  536. package/lib-esm/components/ApiInfo/Metadata.js +1 -1
  537. package/lib-esm/components/ApiInfo/styled.js +5 -2
  538. package/lib-esm/components/CallbackSamples/CallbackSamples.d.ts +4 -4
  539. package/lib-esm/components/CallbackSamples/CallbackSamples.js +15 -1
  540. package/lib-esm/components/Callbacks/CallbackDetails.d.ts +2 -2
  541. package/lib-esm/components/Callbacks/CallbackDetails.js +18 -2
  542. package/lib-esm/components/Callbacks/CallbackOperation.d.ts +4 -2
  543. package/lib-esm/components/Callbacks/CallbackOperation.js +14 -1
  544. package/lib-esm/components/Callbacks/CallbackSummary.d.ts +3 -3
  545. package/lib-esm/components/Callbacks/CallbackSummary.js +18 -1
  546. package/lib-esm/components/Callbacks/CallbacksList.d.ts +5 -3
  547. package/lib-esm/components/Callbacks/CallbacksList.js +1 -1
  548. package/lib-esm/components/Callbacks/styled.js +1 -0
  549. package/lib-esm/components/Content/Content.d.ts +8 -0
  550. package/lib-esm/components/Content/Content.js +2 -0
  551. package/lib-esm/components/Content/index.d.ts +1 -0
  552. package/lib-esm/components/Content/index.js +2 -0
  553. package/lib-esm/components/Content/useAutoScroll.d.ts +1 -0
  554. package/lib-esm/components/Content/useAutoScroll.js +2 -0
  555. package/lib-esm/components/ContentItem/ContentItem.d.ts +3 -3
  556. package/lib-esm/components/ContentItem/ContentItem.js +1 -1
  557. package/lib-esm/components/ContentItem/useIsExpanded.d.ts +5 -0
  558. package/lib-esm/components/ContentItem/useIsExpanded.js +2 -0
  559. package/lib-esm/components/ContentItems/ContentItems.d.ts +3 -3
  560. package/lib-esm/components/ContentItems/ContentItems.js +1 -1
  561. package/lib-esm/components/ContentItems/helpers.d.ts +0 -8
  562. package/lib-esm/components/ContentItems/helpers.js +1 -1
  563. package/lib-esm/components/Discriminator/Discriminator.d.ts +9 -0
  564. package/lib-esm/components/Discriminator/Discriminator.js +6 -0
  565. package/lib-esm/components/Discriminator/index.d.ts +1 -0
  566. package/lib-esm/components/Discriminator/index.js +2 -0
  567. package/lib-esm/components/Download/DownloadSpecification.d.ts +4 -0
  568. package/lib-esm/components/Download/DownloadSpecification.js +40 -0
  569. package/lib-esm/components/Download/index.d.ts +1 -3
  570. package/lib-esm/components/Download/index.js +1 -1
  571. package/lib-esm/components/Download/types.d.ts +10 -14
  572. package/lib-esm/components/Download/useDownloadInfo.d.ts +1 -1
  573. package/lib-esm/components/Download/useDownloadInfo.js +1 -1
  574. package/lib-esm/components/ErrorBoundary/ErrorBoundary.d.ts +2 -2
  575. package/lib-esm/components/ErrorBoundary/ErrorBoundary.js +2 -2
  576. package/lib-esm/components/ExpandAllButton/ExpandAllButton.d.ts +6 -0
  577. package/lib-esm/components/ExpandAllButton/ExpandAllButton.js +4 -0
  578. package/lib-esm/components/ExpandAllButton/getAllNestedSchema.d.ts +8 -0
  579. package/lib-esm/components/ExpandAllButton/getAllNestedSchema.js +2 -0
  580. package/lib-esm/components/ExpandAllButton/index.d.ts +2 -0
  581. package/lib-esm/components/ExpandAllButton/index.js +2 -0
  582. package/lib-esm/components/ExpandAllButton/useUpdateExpandedFields.d.ts +2 -0
  583. package/lib-esm/components/ExpandAllButton/useUpdateExpandedFields.js +2 -0
  584. package/lib-esm/components/ExternalDocumentation/ExternalDocumentation.d.ts +2 -2
  585. package/lib-esm/components/ExternalDocumentation/ExternalDocumentation.js +4 -4
  586. package/lib-esm/components/Language/LanguageDropdown.d.ts +15 -0
  587. package/lib-esm/components/Language/LanguageDropdown.js +2 -0
  588. package/lib-esm/components/Language/LanguageItem.d.ts +11 -0
  589. package/lib-esm/components/Language/LanguageItem.js +2 -0
  590. package/lib-esm/components/Language/LanguageList.d.ts +11 -0
  591. package/lib-esm/components/Language/LanguageList.js +2 -0
  592. package/lib-esm/components/Language/_tests_/LanguageDropdown.test.js +2 -0
  593. package/lib-esm/components/Language/constants.d.ts +1 -0
  594. package/lib-esm/components/Language/constants.js +2 -0
  595. package/lib-esm/components/Language/index.d.ts +3 -0
  596. package/lib-esm/components/Language/index.js +2 -0
  597. package/lib-esm/components/Language/styled.d.ts +30 -0
  598. package/lib-esm/components/Language/styled.js +76 -0
  599. package/lib-esm/components/Markdown/Markdown.d.ts +2 -2
  600. package/lib-esm/components/Markdown/Markdown.js +1 -1
  601. package/lib-esm/components/Markdown/index.d.ts +0 -1
  602. package/lib-esm/components/Markdown/index.js +1 -1
  603. package/lib-esm/components/Markdown/types.d.ts +3 -2
  604. package/lib-esm/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +5 -5
  605. package/lib-esm/components/MediaTypeSwitch/MediaTypesSwitch.js +1 -1
  606. package/lib-esm/components/OperationItem/Description.d.ts +10 -0
  607. package/lib-esm/components/OperationItem/Description.js +2 -0
  608. package/lib-esm/components/OperationItem/OperationItem.d.ts +2 -2
  609. package/lib-esm/components/OperationItem/OperationItem.js +19 -9
  610. package/lib-esm/components/OperationItem/_tests_/OperationItem.test.js +2 -0
  611. package/lib-esm/components/Overlay.d.ts +2 -2
  612. package/lib-esm/components/Overlay.js +1 -1
  613. package/lib-esm/components/Overview/Overview.d.ts +4 -0
  614. package/lib-esm/components/Overview/Overview.js +2 -0
  615. package/lib-esm/components/Overview/index.d.ts +1 -0
  616. package/lib-esm/components/Overview/index.js +2 -0
  617. package/lib-esm/components/PageFooter/PageFooter.d.ts +3 -14
  618. package/lib-esm/components/PageFooter/PageFooter.js +1 -1
  619. package/lib-esm/components/Panel/ContentPanel.d.ts +2 -4
  620. package/lib-esm/components/Panel/ResponsePanel.d.ts +3 -8
  621. package/lib-esm/components/Panel/ResponsePanel.js +7 -8
  622. package/lib-esm/components/Panel/index.d.ts +0 -4
  623. package/lib-esm/components/Panel/index.js +1 -1
  624. package/lib-esm/components/PanelItem/PanelItem.d.ts +9 -0
  625. package/lib-esm/components/PanelItem/PanelItem.js +2 -0
  626. package/lib-esm/components/PanelItem/index.d.ts +2 -0
  627. package/lib-esm/components/PanelItem/index.js +2 -0
  628. package/lib-esm/components/PanelItem/styled.d.ts +17 -0
  629. package/lib-esm/components/PanelItem/styled.js +53 -0
  630. package/lib-esm/components/PayloadSamples/Example.d.ts +2 -2
  631. package/lib-esm/components/PayloadSamples/Example.js +1 -1
  632. package/lib-esm/components/PayloadSamples/ExampleValue.d.ts +1 -1
  633. package/lib-esm/components/PayloadSamples/ExampleValue.js +1 -1
  634. package/lib-esm/components/PayloadSamples/ExternalExample.d.ts +2 -2
  635. package/lib-esm/components/PayloadSamples/ExternalExample.js +1 -1
  636. package/lib-esm/components/PayloadSamples/MediaTypeSamples.d.ts +2 -2
  637. package/lib-esm/components/PayloadSamples/MediaTypeSamples.js +3 -1
  638. package/lib-esm/components/PayloadSamples/PayloadSamples.d.ts +2 -2
  639. package/lib-esm/components/PayloadSamples/PayloadSamples.js +1 -1
  640. package/lib-esm/components/PayloadSamples/styled.d.ts +4 -3
  641. package/lib-esm/components/PayloadSamples/styled.js +10 -5
  642. package/lib-esm/components/PayloadSamples/types.d.ts +0 -1
  643. package/lib-esm/components/PropertyDetails/DescriptionEnums.d.ts +4 -0
  644. package/lib-esm/components/PropertyDetails/DescriptionEnums.js +10 -0
  645. package/lib-esm/components/PropertyDetails/EnumValues.d.ts +3 -0
  646. package/lib-esm/components/PropertyDetails/EnumValues.js +2 -0
  647. package/lib-esm/components/PropertyDetails/Examples.d.ts +5 -0
  648. package/lib-esm/components/PropertyDetails/Examples.js +2 -0
  649. package/lib-esm/components/PropertyDetails/Extensions.d.ts +3 -0
  650. package/lib-esm/components/PropertyDetails/Extensions.js +4 -0
  651. package/lib-esm/components/PropertyDetails/FieldDetail.d.ts +7 -0
  652. package/lib-esm/components/PropertyDetails/FieldDetail.js +8 -0
  653. package/lib-esm/components/PropertyDetails/FieldDetails.d.ts +3 -0
  654. package/lib-esm/components/PropertyDetails/FieldDetails.js +43 -0
  655. package/lib-esm/components/PropertyDetails/Pattern.d.ts +6 -0
  656. package/lib-esm/components/PropertyDetails/Pattern.js +2 -0
  657. package/lib-esm/components/PropertyDetails/PlusCircleIcon.d.ts +7 -0
  658. package/lib-esm/components/PropertyDetails/PlusCircleIcon.js +11 -0
  659. package/lib-esm/components/PropertyDetails/PropertyDetails.d.ts +3 -0
  660. package/lib-esm/components/PropertyDetails/PropertyDetails.js +17 -0
  661. package/lib-esm/components/PropertyDetails/SchemaTypeInfo.d.ts +6 -0
  662. package/lib-esm/components/PropertyDetails/SchemaTypeInfo.js +16 -0
  663. package/lib-esm/components/PropertyDetails/SimpleEnums.d.ts +4 -0
  664. package/lib-esm/components/PropertyDetails/SimpleEnums.js +8 -0
  665. package/lib-esm/components/PropertyDetails/cycleColorsByLevel.d.ts +1 -0
  666. package/lib-esm/components/PropertyDetails/cycleColorsByLevel.js +2 -0
  667. package/lib-esm/components/PropertyDetails/index.d.ts +3 -0
  668. package/lib-esm/components/PropertyDetails/index.js +2 -0
  669. package/lib-esm/components/PropertyDetails/styled.d.ts +16 -0
  670. package/lib-esm/components/PropertyDetails/styled.js +23 -0
  671. package/lib-esm/components/PropertyDetails/types.d.ts +43 -0
  672. package/lib-esm/components/RedoclyOpenAPIDocs/Providers.d.ts +4 -7
  673. package/lib-esm/components/RedoclyOpenAPIDocs/Providers.js +1 -1
  674. package/lib-esm/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.d.ts +3 -3
  675. package/lib-esm/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.js +1 -1
  676. package/lib-esm/components/RedoclyOpenAPIDocs/index.d.ts +2 -2
  677. package/lib-esm/components/RedoclyOpenAPIDocs/index.js +1 -1
  678. package/lib-esm/components/RedoclyOpenAPIDocs/styled.d.ts +0 -8
  679. package/lib-esm/components/RedoclyOpenAPIDocs/styled.js +12 -112
  680. package/lib-esm/components/RedoclyOpenAPIDocs/types.d.ts +16 -33
  681. package/lib-esm/components/RedoclyOpenAPIDocs/utils.d.ts +3 -5
  682. package/lib-esm/components/RedoclyOpenAPIDocs/utils.js +1 -1
  683. package/lib-esm/components/RenderHook/RenderHook.d.ts +3 -3
  684. package/lib-esm/components/RenderHook/RenderHook.js +1 -1
  685. package/lib-esm/components/Replay/EmbeddedReplay.d.ts +11 -0
  686. package/lib-esm/components/Replay/EmbeddedReplay.js +11 -0
  687. package/lib-esm/components/Replay/Replay.d.ts +10 -0
  688. package/lib-esm/components/Replay/Replay.js +14 -0
  689. package/lib-esm/components/Replay/index.d.ts +2 -0
  690. package/lib-esm/components/Replay/index.js +2 -0
  691. package/lib-esm/components/Replay/utils.d.ts +14 -0
  692. package/lib-esm/components/Replay/utils.js +2 -0
  693. package/lib-esm/components/Request/RequestDetails.d.ts +3 -0
  694. package/lib-esm/components/Request/RequestDetails.js +4 -0
  695. package/lib-esm/components/Request/types.d.ts +6 -0
  696. package/lib-esm/components/RequestParameters/Body.d.ts +10 -0
  697. package/lib-esm/components/RequestParameters/Body.js +2 -0
  698. package/lib-esm/components/RequestParameters/ParametersGroup.d.ts +9 -0
  699. package/lib-esm/components/RequestParameters/ParametersGroup.js +21 -0
  700. package/lib-esm/components/RequestParameters/RequestParameters.d.ts +9 -0
  701. package/lib-esm/components/RequestParameters/RequestParameters.js +2 -0
  702. package/lib-esm/components/RequestParameters/index.d.ts +2 -0
  703. package/lib-esm/components/RequestParameters/index.js +2 -0
  704. package/lib-esm/components/RequestSamples/CodeSample.d.ts +3 -4
  705. package/lib-esm/components/RequestSamples/CodeSample.js +9 -1
  706. package/lib-esm/components/RequestSamples/Example.d.ts +3 -4
  707. package/lib-esm/components/RequestSamples/Example.js +1 -1
  708. package/lib-esm/components/RequestSamples/RequestSamples.d.ts +4 -9
  709. package/lib-esm/components/RequestSamples/RequestSamples.js +6 -1
  710. package/lib-esm/components/RequestSamples/useCodeSamples.d.ts +1 -1
  711. package/lib-esm/components/RequestSamples/useCodeSamples.js +1 -1
  712. package/lib-esm/components/ResponseSamples/ResponseSamples.d.ts +5 -3
  713. package/lib-esm/components/ResponseSamples/ResponseSamples.js +1 -1
  714. package/lib-esm/components/ResponseSamples/Summary.d.ts +5 -0
  715. package/lib-esm/components/ResponseSamples/Summary.js +2 -0
  716. package/lib-esm/components/Responses/OperationResponseList.d.ts +8 -2
  717. package/lib-esm/components/Responses/OperationResponseList.js +4 -1
  718. package/lib-esm/components/Responses/ResponseDetails.d.ts +2 -2
  719. package/lib-esm/components/Responses/ResponseDetails.js +1 -3
  720. package/lib-esm/components/Responses/ResponseHeaders.d.ts +2 -2
  721. package/lib-esm/components/Responses/ResponseHeaders.js +1 -1
  722. package/lib-esm/components/Responses/index.d.ts +0 -3
  723. package/lib-esm/components/Responses/index.js +1 -1
  724. package/lib-esm/components/Responses/styled.d.ts +6 -3
  725. package/lib-esm/components/Responses/styled.js +21 -12
  726. package/lib-esm/components/Responses/types.d.ts +5 -7
  727. package/lib-esm/components/RightPanel/RightPanel.d.ts +5 -0
  728. package/lib-esm/components/RightPanel/RightPanel.js +2 -0
  729. package/lib-esm/components/RightPanel/index.d.ts +1 -0
  730. package/lib-esm/components/RightPanel/index.js +2 -0
  731. package/lib-esm/components/Samples/ExampleSwitch.d.ts +2 -3
  732. package/lib-esm/components/Samples/ExampleSwitch.js +1 -1
  733. package/lib-esm/components/Samples/index.d.ts +0 -2
  734. package/lib-esm/components/Samples/index.js +1 -1
  735. package/lib-esm/components/Samples/use-example-key.d.ts +1 -2
  736. package/lib-esm/components/Samples/use-example-key.js +1 -1
  737. package/lib-esm/components/Schema/ArraySchema.d.ts +3 -2
  738. package/lib-esm/components/Schema/ArraySchema.js +33 -3
  739. package/lib-esm/components/Schema/ObjectSchema.d.ts +2 -2
  740. package/lib-esm/components/Schema/ObjectSchema.js +1 -1
  741. package/lib-esm/components/Schema/OneOfSchema.d.ts +2 -2
  742. package/lib-esm/components/Schema/OneOfSchema.js +9 -1
  743. package/lib-esm/components/Schema/RecursiveSchema.d.ts +2 -2
  744. package/lib-esm/components/Schema/RecursiveSchema.js +1 -1
  745. package/lib-esm/components/Schema/Schema.d.ts +2 -2
  746. package/lib-esm/components/Schema/Schema.js +4 -1
  747. package/lib-esm/components/Schema/SubSchema.d.ts +13 -0
  748. package/lib-esm/components/Schema/SubSchema.js +2 -0
  749. package/lib-esm/components/Schema/helpers.d.ts +5 -0
  750. package/lib-esm/components/Schema/helpers.js +2 -0
  751. package/lib-esm/components/Schema/types.d.ts +11 -1
  752. package/lib-esm/components/Schema/useOneOfLocationIdx.d.ts +2 -0
  753. package/lib-esm/components/Schema/useOneOfLocationIdx.js +2 -0
  754. package/lib-esm/components/SchemaDefinition/SchemaDefinition.d.ts +2 -2
  755. package/lib-esm/components/SchemaDefinition/SchemaDefinition.js +1 -4
  756. package/lib-esm/components/SectionContent/SectionContent.d.ts +2 -10
  757. package/lib-esm/components/SectionContent/SectionContent.js +15 -1
  758. package/lib-esm/components/SectionItem/SectionItem.d.ts +2 -2
  759. package/lib-esm/components/SectionItem/SectionItem.js +1 -1
  760. package/lib-esm/components/Security/Divider.d.ts +3 -0
  761. package/lib-esm/components/Security/Divider.js +15 -0
  762. package/lib-esm/components/Security/OAuthFlow.d.ts +6 -0
  763. package/lib-esm/components/Security/OAuthFlow.js +4 -0
  764. package/lib-esm/components/Security/Security.d.ts +7 -0
  765. package/lib-esm/components/Security/Security.js +2 -0
  766. package/lib-esm/components/Security/SecurityButton.d.ts +10 -0
  767. package/lib-esm/components/Security/SecurityButton.js +28 -0
  768. package/lib-esm/components/Security/SecurityFlow.d.ts +5 -0
  769. package/lib-esm/components/Security/SecurityFlow.js +21 -0
  770. package/lib-esm/components/Security/SecurityModal.d.ts +8 -0
  771. package/lib-esm/components/Security/SecurityModal.js +45 -0
  772. package/lib-esm/components/Security/SecuritySchemeItem.d.ts +7 -0
  773. package/lib-esm/components/Security/SecuritySchemeItem.js +20 -0
  774. package/lib-esm/components/Security/helper.d.ts +2 -0
  775. package/lib-esm/components/Security/helper.js +2 -0
  776. package/lib-esm/components/Security/index.d.ts +1 -0
  777. package/lib-esm/components/Security/index.js +2 -0
  778. package/lib-esm/components/Security/styled.d.ts +2 -0
  779. package/lib-esm/components/Security/styled.js +14 -0
  780. package/lib-esm/components/SelectOrLabel/SelectOrLabel.d.ts +7 -0
  781. package/lib-esm/components/SelectOrLabel/SelectOrLabel.js +8 -0
  782. package/lib-esm/components/SelectOrLabel/index.d.ts +1 -0
  783. package/lib-esm/components/SelectOrLabel/index.js +2 -0
  784. package/lib-esm/components/ServerList/ServerList.d.ts +3 -0
  785. package/lib-esm/components/ServerList/ServerList.js +60 -0
  786. package/lib-esm/components/ServerList/index.d.ts +1 -0
  787. package/lib-esm/components/ServerList/index.js +2 -0
  788. package/lib-esm/components/ServerList/types.d.ts +2 -0
  789. package/lib-esm/components/ServerListDropdown/ServerListDropdown.d.ts +7 -0
  790. package/lib-esm/components/ServerListDropdown/ServerListDropdown.js +2 -0
  791. package/lib-esm/components/ServerListDropdown/index.d.ts +1 -0
  792. package/lib-esm/components/ServerListDropdown/index.js +2 -0
  793. package/lib-esm/components/ServerListDropdown/styled.d.ts +6 -0
  794. package/lib-esm/components/ServerListDropdown/styled.js +23 -0
  795. package/lib-esm/components/SideMenu/SideMenu.d.ts +3 -2
  796. package/lib-esm/components/SideMenu/SideMenu.js +3 -1
  797. package/lib-esm/components/SideMenu/hooks/useMenuItems.d.ts +1 -3
  798. package/lib-esm/components/SideMenu/hooks/useMenuItems.js +1 -1
  799. package/lib-esm/components/SideMenu/index.d.ts +0 -3
  800. package/lib-esm/components/SideMenu/index.js +1 -1
  801. package/lib-esm/components/SideMenu/types.d.ts +1 -15
  802. package/lib-esm/components/StickySidebar/SidebarActions.d.ts +1 -0
  803. package/lib-esm/components/StickySidebar/SidebarActions.js +6 -0
  804. package/lib-esm/components/StickySidebar/StickyResponsiveSidebar.d.ts +2 -3
  805. package/lib-esm/components/StickySidebar/StickyResponsiveSidebar.js +12 -26
  806. package/lib-esm/components/Tabs/Tabs.d.ts +8 -0
  807. package/lib-esm/components/Tabs/Tabs.js +35 -0
  808. package/lib-esm/components/Tabs/index.d.ts +2 -5
  809. package/lib-esm/components/Tabs/index.js +1 -1
  810. package/lib-esm/components/Tabs/useTabsState.d.ts +11 -0
  811. package/lib-esm/components/Tabs/useTabsState.js +2 -0
  812. package/lib-esm/components/TagItem/OperationsNavigation.d.ts +9 -0
  813. package/lib-esm/components/TagItem/OperationsNavigation.js +46 -0
  814. package/lib-esm/components/TagItem/TagItem.d.ts +8 -2
  815. package/lib-esm/components/TagItem/TagItem.js +22 -1
  816. package/lib-esm/components/UnsupportedFeatureScreen/UnsupportedFeatureScreen.d.ts +1 -0
  817. package/lib-esm/components/UnsupportedFeatureScreen/UnsupportedFeatureScreen.js +18 -0
  818. package/lib-esm/components/UnsupportedFeatureScreen/index.d.ts +1 -0
  819. package/lib-esm/components/UnsupportedFeatureScreen/index.js +2 -0
  820. package/lib-esm/components/ViewNested/ViewNested.d.ts +13 -0
  821. package/lib-esm/components/ViewNested/ViewNested.js +31 -0
  822. package/lib-esm/components/ViewNested/index.d.ts +1 -0
  823. package/lib-esm/components/ViewNested/index.js +2 -0
  824. package/lib-esm/components/common/BodyContent/BodyContent.d.ts +12 -0
  825. package/lib-esm/components/common/BodyContent/BodyContent.js +28 -0
  826. package/lib-esm/components/common/BodyContent/index.d.ts +1 -0
  827. package/lib-esm/components/common/BodyContent/index.js +2 -0
  828. package/lib-esm/components/common/ClearButton/ClearButton.d.ts +2 -2
  829. package/lib-esm/components/common/ClearButton/ClearButton.js +1 -1
  830. package/lib-esm/components/common/ClearButton/types.d.ts +2 -2
  831. package/lib-esm/components/common/CodeBlockPanel.d.ts +2 -0
  832. package/lib-esm/components/common/CodeBlockPanel.js +6 -0
  833. package/lib-esm/components/common/ConstraintsView.d.ts +5 -0
  834. package/lib-esm/components/common/ConstraintsView.js +4 -0
  835. package/lib-esm/components/common/Dropdown/Dropdown.d.ts +15 -3
  836. package/lib-esm/components/common/Dropdown/Dropdown.js +26 -15
  837. package/lib-esm/components/common/Dropdown/index.d.ts +2 -2
  838. package/lib-esm/components/common/Dropdown/index.js +1 -1
  839. package/lib-esm/components/common/Extensions.d.ts +7 -0
  840. package/lib-esm/components/common/Extensions.js +4 -0
  841. package/lib-esm/components/common/Fields/fields-layout.js +12 -13
  842. package/lib-esm/components/common/Fields/fields.d.ts +33 -16
  843. package/lib-esm/components/common/Fields/fields.js +45 -64
  844. package/lib-esm/components/common/LinkToField.d.ts +3 -8
  845. package/lib-esm/components/common/LinkToField.js +14 -8
  846. package/lib-esm/components/common/OperationItemTitle.d.ts +2 -0
  847. package/lib-esm/components/common/OperationItemTitle.js +33 -0
  848. package/lib-esm/components/common/SchemaSelection/SchemaSelection.d.ts +12 -0
  849. package/lib-esm/components/common/SchemaSelection/SchemaSelection.js +2 -0
  850. package/lib-esm/components/common/SchemaSelection/index.d.ts +1 -0
  851. package/lib-esm/components/common/SchemaSelection/index.js +2 -0
  852. package/lib-esm/components/common/Select/Select.d.ts +3 -0
  853. package/lib-esm/components/common/Select/Select.js +2 -0
  854. package/lib-esm/components/common/Select/index.d.ts +2 -0
  855. package/lib-esm/components/common/Select/index.js +2 -0
  856. package/lib-esm/components/common/Select/styled.d.ts +23 -0
  857. package/lib-esm/components/common/Select/styled.js +111 -0
  858. package/lib-esm/components/common/Select/types.d.ts +20 -0
  859. package/lib-esm/components/common/Skeleton/LanguageListSkeleton.d.ts +4 -0
  860. package/lib-esm/components/common/Skeleton/LanguageListSkeleton.js +23 -0
  861. package/lib-esm/components/common/Skeleton/Skeleton.d.ts +5 -2
  862. package/lib-esm/components/common/Skeleton/Skeleton.js +7 -5
  863. package/lib-esm/components/common/headers.d.ts +0 -1
  864. package/lib-esm/components/common/headers.js +2 -6
  865. package/lib-esm/components/common/index.d.ts +5 -7
  866. package/lib-esm/components/common/index.js +1 -1
  867. package/lib-esm/components/common/linkify.d.ts +4 -3
  868. package/lib-esm/components/common/linkify.js +13 -4
  869. package/lib-esm/components/common/panels.d.ts +5 -1
  870. package/lib-esm/components/common/panels.js +65 -44
  871. package/lib-esm/components/common/schema.d.ts +3 -5
  872. package/lib-esm/components/common/schema.js +25 -19
  873. package/lib-esm/components/common/styled.d.ts +4 -0
  874. package/lib-esm/components/common/styled.js +27 -0
  875. package/lib-esm/components/index.d.ts +4 -13
  876. package/lib-esm/components/index.js +1 -1
  877. package/lib-esm/components/pluggable/RedocExample.d.ts +2 -2
  878. package/lib-esm/components/pluggable/RedocExample.js +1 -1
  879. package/lib-esm/components/pluggable/RedocSchema.d.ts +2 -2
  880. package/lib-esm/components/pluggable/RedocSchema.js +1 -1
  881. package/lib-esm/components/pluggable/index.d.ts +0 -3
  882. package/lib-esm/components/pluggable/index.js +1 -1
  883. package/lib-esm/components/pluggable/styled.components.d.ts +1 -0
  884. package/lib-esm/components/pluggable/styled.components.js +1 -1
  885. package/lib-esm/constants.d.ts +5 -3
  886. package/lib-esm/constants.js +1 -1
  887. package/lib-esm/events/codeSampleCopy.js +1 -1
  888. package/lib-esm/events/index.d.ts +0 -1
  889. package/lib-esm/events/index.js +1 -1
  890. package/lib-esm/events/types.d.ts +1 -8
  891. package/lib-esm/events/types.js +1 -1
  892. package/lib-esm/hoc/types.d.ts +3 -10
  893. package/lib-esm/hoc/utils.d.ts +2 -2
  894. package/lib-esm/hoc/withRouter.d.ts +2 -2
  895. package/lib-esm/hoc/withRouter.js +1 -1
  896. package/lib-esm/hoc/withStore.d.ts +2 -2
  897. package/lib-esm/hoc/withStore.js +1 -1
  898. package/lib-esm/hooks/index.d.ts +2 -0
  899. package/lib-esm/hooks/index.js +1 -1
  900. package/lib-esm/hooks/useActivateExample.js +1 -1
  901. package/lib-esm/hooks/useActiveWithFallback.d.ts +3 -0
  902. package/lib-esm/hooks/useActiveWithFallback.js +2 -0
  903. package/lib-esm/hooks/useContentItems.js +1 -1
  904. package/lib-esm/hooks/useRouter.d.ts +4 -2
  905. package/lib-esm/hooks/useUppercase2LowercaseRedirect.d.ts +1 -0
  906. package/lib-esm/hooks/useUppercase2LowercaseRedirect.js +2 -0
  907. package/lib-esm/icons/CSharpIcon/CSharpIcon.d.ts +4 -0
  908. package/lib-esm/icons/CSharpIcon/CSharpIcon.js +2 -0
  909. package/lib-esm/icons/CSharpIcon/index.d.ts +1 -0
  910. package/lib-esm/icons/CSharpIcon/index.js +2 -0
  911. package/lib-esm/icons/CurlIcon/CurlIcon.d.ts +4 -0
  912. package/lib-esm/icons/CurlIcon/CurlIcon.js +2 -0
  913. package/lib-esm/icons/CurlIcon/index.d.ts +1 -0
  914. package/lib-esm/icons/CurlIcon/index.js +2 -0
  915. package/lib-esm/icons/GOIcon/GOIcon.d.ts +4 -0
  916. package/lib-esm/icons/GOIcon/GOIcon.js +2 -0
  917. package/lib-esm/icons/GOIcon/index.d.ts +1 -0
  918. package/lib-esm/icons/GOIcon/index.js +2 -0
  919. package/lib-esm/icons/JavaIcon/JavaIcon.d.ts +4 -0
  920. package/lib-esm/icons/JavaIcon/JavaIcon.js +2 -0
  921. package/lib-esm/icons/JavaIcon/index.d.ts +1 -0
  922. package/lib-esm/icons/JavaIcon/index.js +2 -0
  923. package/lib-esm/icons/JavaScriptIcon/JavaScriptIcon.d.ts +4 -0
  924. package/lib-esm/icons/JavaScriptIcon/JavaScriptIcon.js +2 -0
  925. package/lib-esm/icons/JavaScriptIcon/index.d.ts +1 -0
  926. package/lib-esm/icons/JavaScriptIcon/index.js +2 -0
  927. package/lib-esm/icons/NodeJSIcon/NodeJSIcon.d.ts +4 -0
  928. package/lib-esm/icons/NodeJSIcon/NodeJSIcon.js +2 -0
  929. package/lib-esm/icons/NodeJSIcon/index.d.ts +1 -0
  930. package/lib-esm/icons/NodeJSIcon/index.js +2 -0
  931. package/lib-esm/icons/PHPIcon/PHPIcon.d.ts +4 -0
  932. package/lib-esm/icons/PHPIcon/PHPIcon.js +2 -0
  933. package/lib-esm/icons/PHPIcon/index.d.ts +1 -0
  934. package/lib-esm/icons/PHPIcon/index.js +2 -0
  935. package/lib-esm/icons/PayloadIcon/PayloadIcon.d.ts +4 -0
  936. package/lib-esm/icons/PayloadIcon/PayloadIcon.js +2 -0
  937. package/lib-esm/icons/PayloadIcon/index.d.ts +1 -0
  938. package/lib-esm/icons/PayloadIcon/index.js +2 -0
  939. package/lib-esm/icons/PythonIcon/PythonIcon.d.ts +4 -0
  940. package/lib-esm/icons/PythonIcon/PythonIcon.js +2 -0
  941. package/lib-esm/icons/PythonIcon/index.d.ts +1 -0
  942. package/lib-esm/icons/PythonIcon/index.js +2 -0
  943. package/lib-esm/icons/RIcon/RIcon.d.ts +4 -0
  944. package/lib-esm/icons/RIcon/RIcon.js +2 -0
  945. package/lib-esm/icons/RIcon/index.d.ts +1 -0
  946. package/lib-esm/icons/RIcon/index.js +2 -0
  947. package/lib-esm/icons/RubyIcon/RubyIcon.d.ts +4 -0
  948. package/lib-esm/icons/RubyIcon/RubyIcon.js +2 -0
  949. package/lib-esm/icons/RubyIcon/index.d.ts +1 -0
  950. package/lib-esm/icons/RubyIcon/index.js +2 -0
  951. package/lib-esm/index.d.ts +8 -7
  952. package/lib-esm/index.js +1 -1
  953. package/lib-esm/jotai/app.d.ts +50 -0
  954. package/lib-esm/jotai/app.js +2 -0
  955. package/lib-esm/jotai/nexus.d.ts +5 -0
  956. package/lib-esm/jotai/nexus.js +2 -0
  957. package/lib-esm/jotai/operation.d.ts +39 -0
  958. package/lib-esm/jotai/operation.js +2 -0
  959. package/lib-esm/jotai/replay.d.ts +3 -0
  960. package/lib-esm/jotai/replay.js +2 -0
  961. package/lib-esm/jotai/store.d.ts +16 -0
  962. package/lib-esm/jotai/store.js +2 -0
  963. package/lib-esm/models/code-sample-options.d.ts +1 -4
  964. package/lib-esm/models/group.d.ts +2 -2
  965. package/lib-esm/models/group.js +1 -1
  966. package/lib-esm/models/index.d.ts +0 -1
  967. package/lib-esm/models/index.js +1 -1
  968. package/lib-esm/models/mediaContent.js +1 -1
  969. package/lib-esm/models/mediaType.js +1 -1
  970. package/lib-esm/models/operation.js +1 -1
  971. package/lib-esm/models/response.js +1 -1
  972. package/lib-esm/models/schema.js +1 -1
  973. package/lib-esm/models/security.js +1 -1
  974. package/lib-esm/models/tab.d.ts +4 -0
  975. package/lib-esm/models/tab.js +2 -0
  976. package/lib-esm/models/types.d.ts +13 -15
  977. package/lib-esm/services/OpenAPIParser.d.ts +1 -2
  978. package/lib-esm/services/OpenAPIParser.js +1 -1
  979. package/lib-esm/services/code-samples/constants.d.ts +2 -0
  980. package/lib-esm/services/code-samples/constants.js +2 -0
  981. package/lib-esm/services/code-samples/generator.d.ts +3 -3
  982. package/lib-esm/services/code-samples/generator.js +1 -1
  983. package/lib-esm/services/code-samples/httpsnippet/helpers/code-builder.d.ts +2 -1
  984. package/lib-esm/services/code-samples/httpsnippet/helpers/code-builder.js +1 -1
  985. package/lib-esm/services/code-samples/httpsnippet/helpers/code-helpers.js +1 -1
  986. package/lib-esm/services/code-samples/httpsnippet/helpers/constants.d.ts +1 -0
  987. package/lib-esm/services/code-samples/httpsnippet/helpers/constants.js +1 -1
  988. package/lib-esm/services/code-samples/httpsnippet/helpers/mocks/code-helpers-mock.d.ts +2 -0
  989. package/lib-esm/services/code-samples/httpsnippet/helpers/mocks/code-helpers-mock.js +1 -1
  990. package/lib-esm/services/code-samples/httpsnippet/index.d.ts +1 -1
  991. package/lib-esm/services/code-samples/httpsnippet/targets/__mocks__/mock.js +1 -1
  992. package/lib-esm/services/code-samples/httpsnippet/targets/csharp/httpclient.js +1 -1
  993. package/lib-esm/services/code-samples/httpsnippet/targets/csharpNewtonsoft/httpclient.d.ts +10 -0
  994. package/lib-esm/services/code-samples/httpsnippet/targets/csharpNewtonsoft/httpclient.js +2 -0
  995. package/lib-esm/services/code-samples/httpsnippet/targets/csharpNewtonsoft/index.d.ts +10 -0
  996. package/lib-esm/services/code-samples/httpsnippet/targets/csharpNewtonsoft/index.js +2 -0
  997. package/lib-esm/services/code-samples/httpsnippet/targets/index.d.ts +9 -0
  998. package/lib-esm/services/code-samples/httpsnippet/targets/index.js +1 -1
  999. package/lib-esm/services/code-samples/httpsnippet/targets/python/requests.js +1 -1
  1000. package/lib-esm/services/code-samples/types.d.ts +10 -4
  1001. package/lib-esm/services/config-options/helpers.d.ts +3 -0
  1002. package/lib-esm/services/config-options/helpers.js +2 -0
  1003. package/lib-esm/services/config-options/normalizeOptions.d.ts +3 -0
  1004. package/lib-esm/services/config-options/normalizeOptions.js +2 -0
  1005. package/lib-esm/services/config-options/types.d.ts +54 -0
  1006. package/lib-esm/services/history/helpers.d.ts +1 -0
  1007. package/lib-esm/services/history/helpers.js +1 -1
  1008. package/lib-esm/services/index.d.ts +1 -5
  1009. package/lib-esm/services/index.js +1 -1
  1010. package/lib-esm/services/menu/builder.d.ts +1 -1
  1011. package/lib-esm/services/menu/builder.js +1 -1
  1012. package/lib-esm/services/menu/markdown.d.ts +1 -4
  1013. package/lib-esm/services/menu/markdown.js +1 -1
  1014. package/lib-esm/services/menu/operation.d.ts +2 -5
  1015. package/lib-esm/services/menu/operation.js +1 -1
  1016. package/lib-esm/services/menu/tags.d.ts +1 -1
  1017. package/lib-esm/services/menu/tags.js +1 -1
  1018. package/lib-esm/services/types.d.ts +4 -50
  1019. package/lib-esm/services/types.js +1 -1
  1020. package/lib-esm/services/utils.d.ts +0 -7
  1021. package/lib-esm/services/utils.js +1 -1
  1022. package/lib-esm/setupTests.d.ts +1 -2
  1023. package/lib-esm/setupTests.js +1 -1
  1024. package/lib-esm/standalone.d.ts +2 -6
  1025. package/lib-esm/standalone.js +1 -1
  1026. package/lib-esm/testProviders.d.ts +2 -3
  1027. package/lib-esm/testProviders.js +1 -1
  1028. package/lib-esm/types/index.d.ts +0 -1
  1029. package/lib-esm/types/index.js +1 -1
  1030. package/lib-esm/types/open-api.d.ts +15 -5
  1031. package/lib-esm/utils/argValuesHelpers.d.ts +1 -1
  1032. package/lib-esm/utils/argValuesHelpers.js +1 -1
  1033. package/lib-esm/utils/cookies.d.ts +7 -0
  1034. package/lib-esm/utils/cookies.js +2 -0
  1035. package/lib-esm/utils/dom.d.ts +0 -1
  1036. package/lib-esm/utils/dom.js +1 -1
  1037. package/lib-esm/utils/environments.d.ts +4 -0
  1038. package/lib-esm/utils/environments.js +2 -0
  1039. package/lib-esm/utils/helpers.d.ts +2 -3
  1040. package/lib-esm/utils/helpers.js +1 -1
  1041. package/lib-esm/utils/index.d.ts +2 -2
  1042. package/lib-esm/utils/index.js +1 -1
  1043. package/lib-esm/utils/isMobile.d.ts +5 -0
  1044. package/lib-esm/utils/isMobile.js +2 -0
  1045. package/lib-esm/utils/loadAndBundleSpec.js +1 -1
  1046. package/lib-esm/utils/local-storage.js +1 -1
  1047. package/lib-esm/utils/object.d.ts +1 -0
  1048. package/lib-esm/utils/object.js +1 -1
  1049. package/lib-esm/utils/openapi.d.ts +3 -5
  1050. package/lib-esm/utils/openapi.js +1 -1
  1051. package/lib-esm/utils/path.d.ts +0 -1
  1052. package/lib-esm/utils/path.js +1 -1
  1053. package/lib-esm/utils/replaceVariables.d.ts +2 -0
  1054. package/lib-esm/utils/replaceVariables.js +2 -0
  1055. package/lib-esm/utils/saveTextBeforeHeading.d.ts +1 -1
  1056. package/lib-esm/utils/saveTextBeforeHeading.js +1 -1
  1057. package/lib-esm/utils/security-details.d.ts +1 -5
  1058. package/lib-esm/utils/security-details.js +1 -1
  1059. package/lib-esm/utils/session-storage.js +1 -1
  1060. package/lib-esm/utils/string.d.ts +1 -0
  1061. package/lib-esm/utils/string.js +1 -1
  1062. package/package.json +67 -87
  1063. package/dist/console.redocly-openapi-docs.min.js +0 -439
  1064. package/dist/oauth2-redirect.html +0 -7
  1065. package/dist/oauth2-redirect.js +0 -9
  1066. package/lib/components/ApiInfo/types.d.ts +0 -9
  1067. package/lib/components/CallbackSamples/CallbackReqSamples.d.ts +0 -7
  1068. package/lib/components/CallbackSamples/CallbackReqSamples.js +0 -4
  1069. package/lib/components/ContentItems/useAutoScroll.d.ts +0 -1
  1070. package/lib/components/ContentItems/useAutoScroll.js +0 -2
  1071. package/lib/components/DiscriminatorDropdown/DiscriminatorDropdown.d.ts +0 -11
  1072. package/lib/components/DiscriminatorDropdown/DiscriminatorDropdown.js +0 -2
  1073. package/lib/components/DiscriminatorDropdown/index.d.ts +0 -1
  1074. package/lib/components/DiscriminatorDropdown/index.js +0 -2
  1075. package/lib/components/Download/DownloadButtonWithLabel.d.ts +0 -3
  1076. package/lib/components/Download/DownloadButtonWithLabel.js +0 -13
  1077. package/lib/components/Download/DownloadLink.d.ts +0 -3
  1078. package/lib/components/Download/DownloadLink.js +0 -4
  1079. package/lib/components/DropdownOrLabel/DropdownOrLabel.d.ts +0 -7
  1080. package/lib/components/DropdownOrLabel/DropdownOrLabel.js +0 -8
  1081. package/lib/components/DropdownOrLabel/index.d.ts +0 -1
  1082. package/lib/components/DropdownOrLabel/index.js +0 -2
  1083. package/lib/components/Endpoint/Endpoint.d.ts +0 -3
  1084. package/lib/components/Endpoint/Endpoint.js +0 -2
  1085. package/lib/components/Endpoint/ServerList.d.ts +0 -3
  1086. package/lib/components/Endpoint/ServerList.js +0 -2
  1087. package/lib/components/Endpoint/Summary.d.ts +0 -3
  1088. package/lib/components/Endpoint/Summary.js +0 -2
  1089. package/lib/components/Endpoint/api-client.d.ts +0 -7
  1090. package/lib/components/Endpoint/api-client.js +0 -2
  1091. package/lib/components/Endpoint/index.d.ts +0 -2
  1092. package/lib/components/Endpoint/index.js +0 -2
  1093. package/lib/components/Endpoint/styled.d.ts +0 -9
  1094. package/lib/components/Endpoint/styled.js +0 -49
  1095. package/lib/components/Endpoint/types.d.ts +0 -21
  1096. package/lib/components/Fields/ConstraintsView.d.ts +0 -5
  1097. package/lib/components/Fields/ConstraintsView.js +0 -2
  1098. package/lib/components/Fields/DescriptionEnums.d.ts +0 -4
  1099. package/lib/components/Fields/DescriptionEnums.js +0 -5
  1100. package/lib/components/Fields/EnumValues.d.ts +0 -3
  1101. package/lib/components/Fields/EnumValues.js +0 -2
  1102. package/lib/components/Fields/Examples.d.ts +0 -6
  1103. package/lib/components/Fields/Examples.js +0 -2
  1104. package/lib/components/Fields/Extensions.d.ts +0 -3
  1105. package/lib/components/Fields/Extensions.js +0 -4
  1106. package/lib/components/Fields/Field.d.ts +0 -5
  1107. package/lib/components/Fields/Field.js +0 -2
  1108. package/lib/components/Fields/FieldDetail.d.ts +0 -8
  1109. package/lib/components/Fields/FieldDetail.js +0 -2
  1110. package/lib/components/Fields/FieldDetails.d.ts +0 -3
  1111. package/lib/components/Fields/FieldDetails.js +0 -2
  1112. package/lib/components/Fields/SimpleEnums.d.ts +0 -4
  1113. package/lib/components/Fields/SimpleEnums.js +0 -2
  1114. package/lib/components/Fields/index.d.ts +0 -4
  1115. package/lib/components/Fields/index.js +0 -2
  1116. package/lib/components/Fields/styled.d.ts +0 -11
  1117. package/lib/components/Fields/styled.js +0 -30
  1118. package/lib/components/Fields/types.d.ts +0 -40
  1119. package/lib/components/GenericChildrenSwitcher/GenericChildrenSwitcher.d.ts +0 -10
  1120. package/lib/components/GenericChildrenSwitcher/GenericChildrenSwitcher.js +0 -2
  1121. package/lib/components/GenericChildrenSwitcher/index.d.ts +0 -1
  1122. package/lib/components/GenericChildrenSwitcher/index.js +0 -2
  1123. package/lib/components/Loading/Loading.d.ts +0 -5
  1124. package/lib/components/Loading/Loading.js +0 -9
  1125. package/lib/components/Loading/index.d.ts +0 -1
  1126. package/lib/components/Loading/index.js +0 -2
  1127. package/lib/components/Markdown/styled.d.ts +0 -4
  1128. package/lib/components/Markdown/styled.js +0 -2
  1129. package/lib/components/NextSectionButton/NextSectionButton.d.ts +0 -9
  1130. package/lib/components/NextSectionButton/NextSectionButton.js +0 -2
  1131. package/lib/components/NextSectionButton/index.d.ts +0 -1
  1132. package/lib/components/NextSectionButton/index.js +0 -2
  1133. package/lib/components/OperationParameters/OperationParameters.d.ts +0 -3
  1134. package/lib/components/OperationParameters/OperationParameters.js +0 -2
  1135. package/lib/components/OperationParameters/index.d.ts +0 -1
  1136. package/lib/components/OperationParameters/index.js +0 -2
  1137. package/lib/components/OperationParameters/types.d.ts +0 -14
  1138. package/lib/components/OperationParameters/types.js +0 -2
  1139. package/lib/components/OperationParameters/utils.d.ts +0 -8
  1140. package/lib/components/OperationParameters/utils.js +0 -2
  1141. package/lib/components/Panel/Accordion.d.ts +0 -5
  1142. package/lib/components/Panel/Accordion.js +0 -2
  1143. package/lib/components/Panel/CodeHeader.d.ts +0 -2
  1144. package/lib/components/Panel/CodeHeader.js +0 -15
  1145. package/lib/components/Panel/CodePanel.d.ts +0 -4
  1146. package/lib/components/Panel/CodePanel.js +0 -2
  1147. package/lib/components/Panel/MiddlePanelWrapper.d.ts +0 -1
  1148. package/lib/components/Panel/MiddlePanelWrapper.js +0 -22
  1149. package/lib/components/Parameters/BodyContent.d.ts +0 -9
  1150. package/lib/components/Parameters/BodyContent.js +0 -4
  1151. package/lib/components/Parameters/DropdownWithinHeader.d.ts +0 -5
  1152. package/lib/components/Parameters/DropdownWithinHeader.js +0 -7
  1153. package/lib/components/Parameters/Parameters.d.ts +0 -7
  1154. package/lib/components/Parameters/Parameters.js +0 -2
  1155. package/lib/components/Parameters/ParametersGroup.d.ts +0 -9
  1156. package/lib/components/Parameters/ParametersGroup.js +0 -16
  1157. package/lib/components/Parameters/index.d.ts +0 -2
  1158. package/lib/components/Parameters/index.js +0 -2
  1159. package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocsMultiStandalone.d.ts +0 -3
  1160. package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocsMultiStandalone.js +0 -2
  1161. package/lib/components/Responses/Response.d.ts +0 -3
  1162. package/lib/components/Responses/Response.js +0 -2
  1163. package/lib/components/Responses/ResponseSummary.d.ts +0 -3
  1164. package/lib/components/Responses/ResponseSummary.js +0 -15
  1165. package/lib/components/Responses/ResponsesList.d.ts +0 -3
  1166. package/lib/components/Responses/ResponsesList.js +0 -2
  1167. package/lib/components/Samples/LoadingWrapper.d.ts +0 -1
  1168. package/lib/components/Samples/LoadingWrapper.js +0 -8
  1169. package/lib/components/Samples/SamplesTabs.d.ts +0 -14
  1170. package/lib/components/Samples/SamplesTabs.js +0 -2
  1171. package/lib/components/Search/MenuItemSearch.d.ts +0 -3
  1172. package/lib/components/Search/MenuItemSearch.js +0 -2
  1173. package/lib/components/Search/Search.d.ts +0 -3
  1174. package/lib/components/Search/Search.js +0 -2
  1175. package/lib/components/Search/SearchBox.d.ts +0 -3
  1176. package/lib/components/Search/SearchBox.js +0 -2
  1177. package/lib/components/Search/SearchField.d.ts +0 -10
  1178. package/lib/components/Search/SearchField.js +0 -2
  1179. package/lib/components/Search/index.d.ts +0 -3
  1180. package/lib/components/Search/index.js +0 -2
  1181. package/lib/components/Search/styled.d.ts +0 -24
  1182. package/lib/components/Search/styled.js +0 -145
  1183. package/lib/components/Search/types.d.ts +0 -42
  1184. package/lib/components/Search/utils.d.ts +0 -11
  1185. package/lib/components/Search/utils.js +0 -2
  1186. package/lib/components/SecurityRequirement/PanelDescription.d.ts +0 -3
  1187. package/lib/components/SecurityRequirement/PanelDescription.js +0 -4
  1188. package/lib/components/SecurityRequirement/RequiredScopesRow.d.ts +0 -4
  1189. package/lib/components/SecurityRequirement/RequiredScopesRow.js +0 -2
  1190. package/lib/components/SecurityRequirement/RequirementElement.d.ts +0 -3
  1191. package/lib/components/SecurityRequirement/RequirementElement.js +0 -24
  1192. package/lib/components/SecurityRequirement/SecurityDefs.d.ts +0 -2
  1193. package/lib/components/SecurityRequirement/SecurityDefs.js +0 -4
  1194. package/lib/components/SecurityRequirement/SecurityRequirement.d.ts +0 -3
  1195. package/lib/components/SecurityRequirement/SecurityRequirement.js +0 -24
  1196. package/lib/components/SecurityRequirement/constants.d.ts +0 -6
  1197. package/lib/components/SecurityRequirement/constants.js +0 -2
  1198. package/lib/components/SecurityRequirement/index.d.ts +0 -3
  1199. package/lib/components/SecurityRequirement/index.js +0 -2
  1200. package/lib/components/SecurityRequirement/styled.d.ts +0 -1
  1201. package/lib/components/SecurityRequirement/styled.js +0 -4
  1202. package/lib/components/SecurityRequirement/types.d.ts +0 -19
  1203. package/lib/components/SecurityRequirement/useSecurityRequirements.d.ts +0 -3
  1204. package/lib/components/SecurityRequirement/useSecurityRequirements.js +0 -2
  1205. package/lib/components/SecuritySchemes/OAuthFlow.d.ts +0 -3
  1206. package/lib/components/SecuritySchemes/OAuthFlow.js +0 -2
  1207. package/lib/components/SecuritySchemes/helpers.d.ts +0 -34
  1208. package/lib/components/SecuritySchemes/helpers.js +0 -2
  1209. package/lib/components/SecuritySchemes/index.d.ts +0 -2
  1210. package/lib/components/SecuritySchemes/index.js +0 -2
  1211. package/lib/components/SecuritySchemes/types.d.ts +0 -5
  1212. package/lib/components/SecuritySchemes/types.js +0 -2
  1213. package/lib/components/SeeMore/SeeMore.d.ts +0 -7
  1214. package/lib/components/SeeMore/SeeMore.js +0 -10
  1215. package/lib/components/SeeMore/index.d.ts +0 -1
  1216. package/lib/components/SeeMore/index.js +0 -2
  1217. package/lib/components/SideMenu/Actions.d.ts +0 -2
  1218. package/lib/components/SideMenu/Actions.js +0 -5
  1219. package/lib/components/SideMenu/MenuItem.d.ts +0 -13
  1220. package/lib/components/SideMenu/MenuItem.js +0 -2
  1221. package/lib/components/SideMenu/MenuItemEternalLink.d.ts +0 -5
  1222. package/lib/components/SideMenu/MenuItemEternalLink.js +0 -2
  1223. package/lib/components/SideMenu/MenuItemLink.d.ts +0 -3
  1224. package/lib/components/SideMenu/MenuItemLink.js +0 -2
  1225. package/lib/components/SideMenu/MenuItems.d.ts +0 -3
  1226. package/lib/components/SideMenu/MenuItems.js +0 -2
  1227. package/lib/components/SideMenu/MenuOperationItemContent.d.ts +0 -9
  1228. package/lib/components/SideMenu/MenuOperationItemContent.js +0 -8
  1229. package/lib/components/SideMenu/hooks/index.d.ts +0 -2
  1230. package/lib/components/SideMenu/hooks/index.js +0 -2
  1231. package/lib/components/SideMenu/hooks/useMenuItemExpanded.d.ts +0 -3
  1232. package/lib/components/SideMenu/hooks/useMenuItemExpanded.js +0 -2
  1233. package/lib/components/SideMenu/styled.d.ts +0 -29
  1234. package/lib/components/SideMenu/styled.js +0 -97
  1235. package/lib/components/SourceCodeWithFile/SourceCodeWithFile.d.ts +0 -3
  1236. package/lib/components/SourceCodeWithFile/SourceCodeWithFile.js +0 -2
  1237. package/lib/components/SourceCodeWithFile/index.d.ts +0 -1
  1238. package/lib/components/SourceCodeWithFile/index.js +0 -2
  1239. package/lib/components/Tabs/CollapsingTabs/CollapsingTab.d.ts +0 -1
  1240. package/lib/components/Tabs/CollapsingTabs/CollapsingTab.js +0 -11
  1241. package/lib/components/Tabs/CollapsingTabs/CollapsingTabList.d.ts +0 -1
  1242. package/lib/components/Tabs/CollapsingTabs/CollapsingTabList.js +0 -12
  1243. package/lib/components/Tabs/CollapsingTabs/CollapsingTabs.d.ts +0 -3
  1244. package/lib/components/Tabs/CollapsingTabs/CollapsingTabs.js +0 -2
  1245. package/lib/components/Tabs/CollapsingTabs/CollapsingTabsBase.d.ts +0 -19
  1246. package/lib/components/Tabs/CollapsingTabs/CollapsingTabsBase.js +0 -2
  1247. package/lib/components/Tabs/CollapsingTabs/index.d.ts +0 -4
  1248. package/lib/components/Tabs/CollapsingTabs/index.js +0 -2
  1249. package/lib/components/Tabs/Tab.d.ts +0 -2
  1250. package/lib/components/Tabs/Tab.js +0 -28
  1251. package/lib/components/Tabs/TabList.d.ts +0 -2
  1252. package/lib/components/Tabs/TabList.js +0 -7
  1253. package/lib/components/Tabs/TabPanel.d.ts +0 -2
  1254. package/lib/components/Tabs/TabPanel.js +0 -11
  1255. package/lib/components/TagItems/TagItems.d.ts +0 -14
  1256. package/lib/components/TagItems/TagItems.js +0 -2
  1257. package/lib/components/TagItems/index.d.ts +0 -1
  1258. package/lib/components/TagItems/index.js +0 -2
  1259. package/lib/components/VersionSwitcher.d.ts +0 -9
  1260. package/lib/components/VersionSwitcher.js +0 -7
  1261. package/lib/components/common/Checkbox.d.ts +0 -10
  1262. package/lib/components/common/Checkbox.js +0 -31
  1263. package/lib/components/common/CheckboxList.d.ts +0 -13
  1264. package/lib/components/common/CheckboxList.js +0 -8
  1265. package/lib/components/common/Dropdown/styled.d.ts +0 -28
  1266. package/lib/components/common/Dropdown/styled.js +0 -133
  1267. package/lib/components/common/Dropdown/types.d.ts +0 -25
  1268. package/lib/components/common/Dropdown/types.js +0 -2
  1269. package/lib/components/common/FileUpload/FileUpload.d.ts +0 -9
  1270. package/lib/components/common/FileUpload/FileUpload.js +0 -2
  1271. package/lib/components/common/FileUpload/helper.d.ts +0 -11
  1272. package/lib/components/common/FileUpload/helper.js +0 -2
  1273. package/lib/components/common/FileUpload/index.d.ts +0 -1
  1274. package/lib/components/common/FileUpload/index.js +0 -2
  1275. package/lib/components/common/LinearProgress.d.ts +0 -2
  1276. package/lib/components/common/LinearProgress.js +0 -104
  1277. package/lib/components/common/Portal/Portal.d.ts +0 -6
  1278. package/lib/components/common/Portal/Portal.js +0 -2
  1279. package/lib/components/common/Portal/index.d.ts +0 -1
  1280. package/lib/components/common/Portal/index.js +0 -2
  1281. package/lib/components/common/TextField.d.ts +0 -28
  1282. package/lib/components/common/TextField.js +0 -50
  1283. package/lib/components/common/form.d.ts +0 -17
  1284. package/lib/components/common/form.js +0 -64
  1285. package/lib/components/common/perfect-scrollbar.d.ts +0 -18
  1286. package/lib/components/common/perfect-scrollbar.js +0 -4
  1287. package/lib/components/common/shelfs.d.ts +0 -3
  1288. package/lib/components/common/shelfs.js +0 -23
  1289. package/lib/components/icons/CrossIcon.d.ts +0 -5
  1290. package/lib/components/icons/CrossIcon.js +0 -11
  1291. package/lib/components/icons/FileIcon.d.ts +0 -5
  1292. package/lib/components/icons/FileIcon.js +0 -9
  1293. package/lib/components/icons/LinkIcon.d.ts +0 -5
  1294. package/lib/components/icons/LinkIcon.js +0 -11
  1295. package/lib/components/icons/LockIcon.d.ts +0 -3
  1296. package/lib/components/icons/LockIcon.js +0 -12
  1297. package/lib/components/icons/SearchIcon.d.ts +0 -6
  1298. package/lib/components/icons/SearchIcon.js +0 -11
  1299. package/lib/components/icons/ShelfIcon.d.ts +0 -3
  1300. package/lib/components/icons/ShelfIcon.js +0 -12
  1301. package/lib/components/icons/Spinner.d.ts +0 -3
  1302. package/lib/components/icons/Spinner.js +0 -19
  1303. package/lib/components/icons/index.d.ts +0 -8
  1304. package/lib/components/icons/index.js +0 -2
  1305. package/lib/components/icons/types.d.ts +0 -10
  1306. package/lib/components/icons/types.js +0 -2
  1307. package/lib/components/pluggable/PullRight.d.ts +0 -4
  1308. package/lib/components/pluggable/PullRight.js +0 -7
  1309. package/lib/components/pluggable/RedocRequestBody.d.ts +0 -7
  1310. package/lib/components/pluggable/RedocRequestBody.js +0 -2
  1311. package/lib/components/pluggable/RedocResponse.d.ts +0 -6
  1312. package/lib/components/pluggable/RedocResponse.js +0 -2
  1313. package/lib/components/rightPanel/ActionPanel.d.ts +0 -12
  1314. package/lib/components/rightPanel/ActionPanel.js +0 -4
  1315. package/lib/components/rightPanel/AuthPanel/AuthPanel.d.ts +0 -3
  1316. package/lib/components/rightPanel/AuthPanel/AuthPanel.js +0 -2
  1317. package/lib/components/rightPanel/AuthPanel/index.d.ts +0 -2
  1318. package/lib/components/rightPanel/AuthPanel/index.js +0 -2
  1319. package/lib/components/rightPanel/AuthPanel/types.d.ts +0 -14
  1320. package/lib/components/rightPanel/AuthPanel/types.js +0 -2
  1321. package/lib/components/rightPanel/CodemirrorInput/CodemirrorInput.d.ts +0 -5
  1322. package/lib/components/rightPanel/CodemirrorInput/CodemirrorInput.js +0 -2
  1323. package/lib/components/rightPanel/CodemirrorInput/helpers.js +0 -2
  1324. package/lib/components/rightPanel/CodemirrorInput/index.d.ts +0 -1
  1325. package/lib/components/rightPanel/CodemirrorInput/index.js +0 -2
  1326. package/lib/components/rightPanel/CodemirrorInput/styled.d.ts +0 -1
  1327. package/lib/components/rightPanel/CodemirrorInput/styled.js +0 -54
  1328. package/lib/components/rightPanel/CodemirrorInput/types.d.ts +0 -22
  1329. package/lib/components/rightPanel/CodemirrorInput/types.js +0 -2
  1330. package/lib/components/rightPanel/Console/Console.d.ts +0 -3
  1331. package/lib/components/rightPanel/Console/Console.js +0 -2
  1332. package/lib/components/rightPanel/Console/ConsoleLazy.d.ts +0 -3
  1333. package/lib/components/rightPanel/Console/ConsoleLazy.js +0 -2
  1334. package/lib/components/rightPanel/Console/ConsoleWrapper.d.ts +0 -9
  1335. package/lib/components/rightPanel/Console/ConsoleWrapper.js +0 -2
  1336. package/lib/components/rightPanel/Console/Request.d.ts +0 -3
  1337. package/lib/components/rightPanel/Console/Request.js +0 -2
  1338. package/lib/components/rightPanel/Console/index.d.ts +0 -1
  1339. package/lib/components/rightPanel/Console/index.js +0 -2
  1340. package/lib/components/rightPanel/Console/shallowCopyForTryIt.d.ts +0 -2
  1341. package/lib/components/rightPanel/Console/shallowCopyForTryIt.js +0 -2
  1342. package/lib/components/rightPanel/Console/types.d.ts +0 -29
  1343. package/lib/components/rightPanel/Console/types.js +0 -2
  1344. package/lib/components/rightPanel/ConsoleTabs/ConsoleTabs.d.ts +0 -7
  1345. package/lib/components/rightPanel/ConsoleTabs/ConsoleTabs.js +0 -2
  1346. package/lib/components/rightPanel/ConsoleTabs/index.d.ts +0 -2
  1347. package/lib/components/rightPanel/ConsoleTabs/index.js +0 -2
  1348. package/lib/components/rightPanel/ConsoleTabs/styled.d.ts +0 -5
  1349. package/lib/components/rightPanel/ConsoleTabs/styled.js +0 -38
  1350. package/lib/components/rightPanel/OAuth2Flow/Error.d.ts +0 -8
  1351. package/lib/components/rightPanel/OAuth2Flow/Error.js +0 -2
  1352. package/lib/components/rightPanel/OAuth2Flow/OAuth2Flow.d.ts +0 -3
  1353. package/lib/components/rightPanel/OAuth2Flow/OAuth2Flow.js +0 -2
  1354. package/lib/components/rightPanel/OAuth2Flow/index.d.ts +0 -2
  1355. package/lib/components/rightPanel/OAuth2Flow/index.js +0 -2
  1356. package/lib/components/rightPanel/OAuth2Flow/styled.d.ts +0 -4
  1357. package/lib/components/rightPanel/OAuth2Flow/styled.js +0 -14
  1358. package/lib/components/rightPanel/OAuth2Flow/types.d.ts +0 -20
  1359. package/lib/components/rightPanel/OAuth2Flow/types.js +0 -2
  1360. package/lib/components/rightPanel/OAuth2TokenInput.d.ts +0 -22
  1361. package/lib/components/rightPanel/OAuth2TokenInput.js +0 -2
  1362. package/lib/components/rightPanel/OpenIDConnect.d.ts +0 -18
  1363. package/lib/components/rightPanel/OpenIDConnect.js +0 -2
  1364. package/lib/components/rightPanel/ParameterArray.d.ts +0 -10
  1365. package/lib/components/rightPanel/ParameterArray.js +0 -30
  1366. package/lib/components/rightPanel/ParameterDropdown.d.ts +0 -7
  1367. package/lib/components/rightPanel/ParameterDropdown.js +0 -2
  1368. package/lib/components/rightPanel/RequestBody/Body.d.ts +0 -3
  1369. package/lib/components/rightPanel/RequestBody/Body.js +0 -2
  1370. package/lib/components/rightPanel/RequestBody/RequestBody.d.ts +0 -3
  1371. package/lib/components/rightPanel/RequestBody/RequestBody.js +0 -2
  1372. package/lib/components/rightPanel/RequestBody/index.d.ts +0 -2
  1373. package/lib/components/rightPanel/RequestBody/index.js +0 -2
  1374. package/lib/components/rightPanel/RequestBody/types.d.ts +0 -17
  1375. package/lib/components/rightPanel/RequestBody/types.js +0 -2
  1376. package/lib/components/rightPanel/RequestBodyForm.d.ts +0 -11
  1377. package/lib/components/rightPanel/RequestBodyForm.js +0 -10
  1378. package/lib/components/rightPanel/RequestMimeLabel.d.ts +0 -1
  1379. package/lib/components/rightPanel/RequestMimeLabel.js +0 -5
  1380. package/lib/components/rightPanel/ResponseBody.d.ts +0 -5
  1381. package/lib/components/rightPanel/ResponseBody.js +0 -2
  1382. package/lib/components/rightPanel/ResponseHeadersList.d.ts +0 -4
  1383. package/lib/components/rightPanel/ResponseHeadersList.js +0 -10
  1384. package/lib/components/rightPanel/ResponsePanel.d.ts +0 -10
  1385. package/lib/components/rightPanel/ResponsePanel.js +0 -18
  1386. package/lib/components/rightPanel/Scope.d.ts +0 -7
  1387. package/lib/components/rightPanel/Scope.js +0 -2
  1388. package/lib/components/rightPanel/ServerVariable.d.ts +0 -11
  1389. package/lib/components/rightPanel/ServerVariable.js +0 -5
  1390. package/lib/components/rightPanel/ServersDropdown/ServersDropdown.d.ts +0 -3
  1391. package/lib/components/rightPanel/ServersDropdown/ServersDropdown.js +0 -4
  1392. package/lib/components/rightPanel/ServersDropdown/index.d.ts +0 -1
  1393. package/lib/components/rightPanel/ServersDropdown/index.js +0 -2
  1394. package/lib/components/rightPanel/ServersDropdown/types.d.ts +0 -6
  1395. package/lib/components/rightPanel/ServersDropdown/types.js +0 -2
  1396. package/lib/components/rightPanel/TryItPanel.d.ts +0 -7
  1397. package/lib/components/rightPanel/TryItPanel.js +0 -14
  1398. package/lib/components/rightPanel/styled.d.ts +0 -16
  1399. package/lib/components/rightPanel/styled.js +0 -76
  1400. package/lib/components/rightPanel/types.d.ts +0 -10
  1401. package/lib/components/rightPanel/types.js +0 -2
  1402. package/lib/components/rightPanel/utils.d.ts +0 -28
  1403. package/lib/components/rightPanel/utils.js +0 -2
  1404. package/lib/components/shared/HttpVerb.d.ts +0 -2
  1405. package/lib/components/shared/HttpVerb.js +0 -4
  1406. package/lib/components/shared/MimeLabel.d.ts +0 -1
  1407. package/lib/components/shared/MimeLabel.js +0 -12
  1408. package/lib/components/shared/NoSampleLabel.d.ts +0 -2
  1409. package/lib/components/shared/NoSampleLabel.js +0 -10
  1410. package/lib/components/shared/index.d.ts +0 -3
  1411. package/lib/components/shared/index.js +0 -2
  1412. package/lib/events/serverSwitch.d.ts +0 -2
  1413. package/lib/events/serverSwitch.js +0 -2
  1414. package/lib/models/file-upload.d.ts +0 -11
  1415. package/lib/models/file-upload.js +0 -2
  1416. package/lib/oauth2-redirect-page/handler/helpers.d.ts +0 -6
  1417. package/lib/oauth2-redirect-page/handler/helpers.js +0 -2
  1418. package/lib/oauth2-redirect-page/handler/oauth2-redirect-handler.d.ts +0 -1
  1419. package/lib/oauth2-redirect-page/handler/oauth2-redirect-handler.js +0 -2
  1420. package/lib/oauth2-redirect-page/index.d.ts +0 -1
  1421. package/lib/oauth2-redirect-page/index.js +0 -2
  1422. package/lib/recoil/app.d.ts +0 -36
  1423. package/lib/recoil/app.js +0 -2
  1424. package/lib/recoil/nexus.d.ts +0 -6
  1425. package/lib/recoil/nexus.js +0 -2
  1426. package/lib/recoil/operation.d.ts +0 -11
  1427. package/lib/recoil/operation.js +0 -2
  1428. package/lib/recoil/store.d.ts +0 -19
  1429. package/lib/recoil/store.js +0 -2
  1430. package/lib/services/MarkerService.d.ts +0 -11
  1431. package/lib/services/MarkerService.js +0 -2
  1432. package/lib/services/OAuth2.d.ts +0 -43
  1433. package/lib/services/OAuth2.js +0 -2
  1434. package/lib/services/OpenIDConnect.d.ts +0 -38
  1435. package/lib/services/OpenIDConnect.js +0 -2
  1436. package/lib/services/Options/helpers.d.ts +0 -8
  1437. package/lib/services/Options/helpers.js +0 -2
  1438. package/lib/services/Options/normalizeOptions.d.ts +0 -2
  1439. package/lib/services/Options/normalizeOptions.js +0 -2
  1440. package/lib/services/Options/types.d.ts +0 -277
  1441. package/lib/services/Options/types.js +0 -2
  1442. package/lib/services/labels/LabelsService.d.ts +0 -3
  1443. package/lib/services/labels/LabelsService.js +0 -2
  1444. package/lib/services/labels/index.d.ts +0 -2
  1445. package/lib/services/labels/index.js +0 -2
  1446. package/lib/services/labels/types.d.ts +0 -28
  1447. package/lib/services/labels/types.js +0 -2
  1448. package/lib/services/menu/helpers.d.ts +0 -6
  1449. package/lib/services/menu/helpers.js +0 -2
  1450. package/lib/services/search/DeepSearchStore.d.ts +0 -19
  1451. package/lib/services/search/DeepSearchStore.js +0 -2
  1452. package/lib/services/search/RemoteSearch.d.ts +0 -17
  1453. package/lib/services/search/RemoteSearch.js +0 -2
  1454. package/lib/services/search/SearchStore.d.ts +0 -14
  1455. package/lib/services/search/SearchStore.js +0 -2
  1456. package/lib/services/search/SearchWorker.worker.d.ts +0 -17
  1457. package/lib/services/search/SearchWorker.worker.js +0 -2
  1458. package/lib/services/search/index.d.ts +0 -4
  1459. package/lib/services/search/index.js +0 -2
  1460. package/lib/services/search/types.d.ts +0 -15
  1461. package/lib/services/search/types.js +0 -2
  1462. package/lib/services/search/useSearch.d.ts +0 -13
  1463. package/lib/services/search/useSearch.js +0 -2
  1464. package/lib/types/server.d.ts +0 -7
  1465. package/lib/types/server.js +0 -2
  1466. package/lib/utils/media-css.d.ts +0 -8
  1467. package/lib/utils/media-css.js +0 -2
  1468. package/lib/utils/typeGuards.d.ts +0 -4
  1469. package/lib/utils/typeGuards.js +0 -2
  1470. package/lib-esm/components/ApiInfo/types.d.ts +0 -9
  1471. package/lib-esm/components/CallbackSamples/CallbackReqSamples.d.ts +0 -7
  1472. package/lib-esm/components/CallbackSamples/CallbackReqSamples.js +0 -4
  1473. package/lib-esm/components/ContentItems/useAutoScroll.d.ts +0 -1
  1474. package/lib-esm/components/ContentItems/useAutoScroll.js +0 -2
  1475. package/lib-esm/components/DiscriminatorDropdown/DiscriminatorDropdown.d.ts +0 -11
  1476. package/lib-esm/components/DiscriminatorDropdown/DiscriminatorDropdown.js +0 -2
  1477. package/lib-esm/components/DiscriminatorDropdown/index.d.ts +0 -1
  1478. package/lib-esm/components/DiscriminatorDropdown/index.js +0 -2
  1479. package/lib-esm/components/Download/DownloadButtonWithLabel.d.ts +0 -3
  1480. package/lib-esm/components/Download/DownloadButtonWithLabel.js +0 -13
  1481. package/lib-esm/components/Download/DownloadLink.d.ts +0 -3
  1482. package/lib-esm/components/Download/DownloadLink.js +0 -4
  1483. package/lib-esm/components/DropdownOrLabel/DropdownOrLabel.d.ts +0 -7
  1484. package/lib-esm/components/DropdownOrLabel/DropdownOrLabel.js +0 -8
  1485. package/lib-esm/components/DropdownOrLabel/index.d.ts +0 -1
  1486. package/lib-esm/components/DropdownOrLabel/index.js +0 -2
  1487. package/lib-esm/components/Endpoint/Endpoint.d.ts +0 -3
  1488. package/lib-esm/components/Endpoint/Endpoint.js +0 -2
  1489. package/lib-esm/components/Endpoint/ServerList.d.ts +0 -3
  1490. package/lib-esm/components/Endpoint/ServerList.js +0 -2
  1491. package/lib-esm/components/Endpoint/Summary.d.ts +0 -3
  1492. package/lib-esm/components/Endpoint/Summary.js +0 -2
  1493. package/lib-esm/components/Endpoint/api-client.d.ts +0 -7
  1494. package/lib-esm/components/Endpoint/api-client.js +0 -2
  1495. package/lib-esm/components/Endpoint/index.d.ts +0 -2
  1496. package/lib-esm/components/Endpoint/index.js +0 -2
  1497. package/lib-esm/components/Endpoint/styled.d.ts +0 -9
  1498. package/lib-esm/components/Endpoint/styled.js +0 -49
  1499. package/lib-esm/components/Endpoint/types.d.ts +0 -21
  1500. package/lib-esm/components/Fields/ConstraintsView.d.ts +0 -5
  1501. package/lib-esm/components/Fields/ConstraintsView.js +0 -2
  1502. package/lib-esm/components/Fields/DescriptionEnums.d.ts +0 -4
  1503. package/lib-esm/components/Fields/DescriptionEnums.js +0 -5
  1504. package/lib-esm/components/Fields/EnumValues.d.ts +0 -3
  1505. package/lib-esm/components/Fields/EnumValues.js +0 -2
  1506. package/lib-esm/components/Fields/Examples.d.ts +0 -6
  1507. package/lib-esm/components/Fields/Examples.js +0 -2
  1508. package/lib-esm/components/Fields/Extensions.d.ts +0 -3
  1509. package/lib-esm/components/Fields/Extensions.js +0 -4
  1510. package/lib-esm/components/Fields/Field.d.ts +0 -5
  1511. package/lib-esm/components/Fields/Field.js +0 -2
  1512. package/lib-esm/components/Fields/FieldDetail.d.ts +0 -8
  1513. package/lib-esm/components/Fields/FieldDetail.js +0 -2
  1514. package/lib-esm/components/Fields/FieldDetails.d.ts +0 -3
  1515. package/lib-esm/components/Fields/FieldDetails.js +0 -2
  1516. package/lib-esm/components/Fields/SimpleEnums.d.ts +0 -4
  1517. package/lib-esm/components/Fields/SimpleEnums.js +0 -2
  1518. package/lib-esm/components/Fields/index.d.ts +0 -4
  1519. package/lib-esm/components/Fields/index.js +0 -2
  1520. package/lib-esm/components/Fields/styled.d.ts +0 -11
  1521. package/lib-esm/components/Fields/styled.js +0 -30
  1522. package/lib-esm/components/Fields/types.d.ts +0 -40
  1523. package/lib-esm/components/GenericChildrenSwitcher/GenericChildrenSwitcher.d.ts +0 -10
  1524. package/lib-esm/components/GenericChildrenSwitcher/GenericChildrenSwitcher.js +0 -2
  1525. package/lib-esm/components/GenericChildrenSwitcher/index.d.ts +0 -1
  1526. package/lib-esm/components/GenericChildrenSwitcher/index.js +0 -2
  1527. package/lib-esm/components/Loading/Loading.d.ts +0 -5
  1528. package/lib-esm/components/Loading/Loading.js +0 -9
  1529. package/lib-esm/components/Loading/index.d.ts +0 -1
  1530. package/lib-esm/components/Loading/index.js +0 -2
  1531. package/lib-esm/components/Markdown/styled.d.ts +0 -4
  1532. package/lib-esm/components/Markdown/styled.js +0 -2
  1533. package/lib-esm/components/NextSectionButton/NextSectionButton.d.ts +0 -9
  1534. package/lib-esm/components/NextSectionButton/NextSectionButton.js +0 -2
  1535. package/lib-esm/components/NextSectionButton/index.d.ts +0 -1
  1536. package/lib-esm/components/NextSectionButton/index.js +0 -2
  1537. package/lib-esm/components/OperationParameters/OperationParameters.d.ts +0 -3
  1538. package/lib-esm/components/OperationParameters/OperationParameters.js +0 -2
  1539. package/lib-esm/components/OperationParameters/index.d.ts +0 -1
  1540. package/lib-esm/components/OperationParameters/index.js +0 -2
  1541. package/lib-esm/components/OperationParameters/types.d.ts +0 -14
  1542. package/lib-esm/components/OperationParameters/types.js +0 -2
  1543. package/lib-esm/components/OperationParameters/utils.d.ts +0 -8
  1544. package/lib-esm/components/OperationParameters/utils.js +0 -2
  1545. package/lib-esm/components/Panel/Accordion.d.ts +0 -5
  1546. package/lib-esm/components/Panel/Accordion.js +0 -2
  1547. package/lib-esm/components/Panel/CodeHeader.d.ts +0 -2
  1548. package/lib-esm/components/Panel/CodeHeader.js +0 -15
  1549. package/lib-esm/components/Panel/CodePanel.d.ts +0 -4
  1550. package/lib-esm/components/Panel/CodePanel.js +0 -2
  1551. package/lib-esm/components/Panel/MiddlePanelWrapper.d.ts +0 -1
  1552. package/lib-esm/components/Panel/MiddlePanelWrapper.js +0 -22
  1553. package/lib-esm/components/Parameters/BodyContent.d.ts +0 -9
  1554. package/lib-esm/components/Parameters/BodyContent.js +0 -4
  1555. package/lib-esm/components/Parameters/DropdownWithinHeader.d.ts +0 -5
  1556. package/lib-esm/components/Parameters/DropdownWithinHeader.js +0 -7
  1557. package/lib-esm/components/Parameters/Parameters.d.ts +0 -7
  1558. package/lib-esm/components/Parameters/Parameters.js +0 -2
  1559. package/lib-esm/components/Parameters/ParametersGroup.d.ts +0 -9
  1560. package/lib-esm/components/Parameters/ParametersGroup.js +0 -16
  1561. package/lib-esm/components/Parameters/index.d.ts +0 -2
  1562. package/lib-esm/components/Parameters/index.js +0 -2
  1563. package/lib-esm/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocsMultiStandalone.d.ts +0 -3
  1564. package/lib-esm/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocsMultiStandalone.js +0 -2
  1565. package/lib-esm/components/Responses/Response.d.ts +0 -3
  1566. package/lib-esm/components/Responses/Response.js +0 -2
  1567. package/lib-esm/components/Responses/ResponseSummary.d.ts +0 -3
  1568. package/lib-esm/components/Responses/ResponseSummary.js +0 -15
  1569. package/lib-esm/components/Responses/ResponsesList.d.ts +0 -3
  1570. package/lib-esm/components/Responses/ResponsesList.js +0 -2
  1571. package/lib-esm/components/Samples/LoadingWrapper.d.ts +0 -1
  1572. package/lib-esm/components/Samples/LoadingWrapper.js +0 -8
  1573. package/lib-esm/components/Samples/SamplesTabs.d.ts +0 -14
  1574. package/lib-esm/components/Samples/SamplesTabs.js +0 -2
  1575. package/lib-esm/components/Search/MenuItemSearch.d.ts +0 -3
  1576. package/lib-esm/components/Search/MenuItemSearch.js +0 -2
  1577. package/lib-esm/components/Search/Search.d.ts +0 -3
  1578. package/lib-esm/components/Search/Search.js +0 -2
  1579. package/lib-esm/components/Search/SearchBox.d.ts +0 -3
  1580. package/lib-esm/components/Search/SearchBox.js +0 -2
  1581. package/lib-esm/components/Search/SearchField.d.ts +0 -10
  1582. package/lib-esm/components/Search/SearchField.js +0 -2
  1583. package/lib-esm/components/Search/index.d.ts +0 -3
  1584. package/lib-esm/components/Search/index.js +0 -2
  1585. package/lib-esm/components/Search/styled.d.ts +0 -24
  1586. package/lib-esm/components/Search/styled.js +0 -145
  1587. package/lib-esm/components/Search/types.d.ts +0 -42
  1588. package/lib-esm/components/Search/utils.d.ts +0 -11
  1589. package/lib-esm/components/Search/utils.js +0 -2
  1590. package/lib-esm/components/SecurityRequirement/PanelDescription.d.ts +0 -3
  1591. package/lib-esm/components/SecurityRequirement/PanelDescription.js +0 -4
  1592. package/lib-esm/components/SecurityRequirement/RequiredScopesRow.d.ts +0 -4
  1593. package/lib-esm/components/SecurityRequirement/RequiredScopesRow.js +0 -2
  1594. package/lib-esm/components/SecurityRequirement/RequirementElement.d.ts +0 -3
  1595. package/lib-esm/components/SecurityRequirement/RequirementElement.js +0 -24
  1596. package/lib-esm/components/SecurityRequirement/SecurityDefs.d.ts +0 -2
  1597. package/lib-esm/components/SecurityRequirement/SecurityDefs.js +0 -4
  1598. package/lib-esm/components/SecurityRequirement/SecurityRequirement.d.ts +0 -3
  1599. package/lib-esm/components/SecurityRequirement/SecurityRequirement.js +0 -24
  1600. package/lib-esm/components/SecurityRequirement/constants.d.ts +0 -6
  1601. package/lib-esm/components/SecurityRequirement/constants.js +0 -2
  1602. package/lib-esm/components/SecurityRequirement/index.d.ts +0 -3
  1603. package/lib-esm/components/SecurityRequirement/index.js +0 -2
  1604. package/lib-esm/components/SecurityRequirement/styled.d.ts +0 -1
  1605. package/lib-esm/components/SecurityRequirement/styled.js +0 -4
  1606. package/lib-esm/components/SecurityRequirement/types.d.ts +0 -19
  1607. package/lib-esm/components/SecurityRequirement/useSecurityRequirements.d.ts +0 -3
  1608. package/lib-esm/components/SecurityRequirement/useSecurityRequirements.js +0 -2
  1609. package/lib-esm/components/SecuritySchemes/OAuthFlow.d.ts +0 -3
  1610. package/lib-esm/components/SecuritySchemes/OAuthFlow.js +0 -2
  1611. package/lib-esm/components/SecuritySchemes/helpers.d.ts +0 -34
  1612. package/lib-esm/components/SecuritySchemes/helpers.js +0 -2
  1613. package/lib-esm/components/SecuritySchemes/index.d.ts +0 -2
  1614. package/lib-esm/components/SecuritySchemes/index.js +0 -2
  1615. package/lib-esm/components/SecuritySchemes/types.d.ts +0 -5
  1616. package/lib-esm/components/SecuritySchemes/types.js +0 -2
  1617. package/lib-esm/components/SeeMore/SeeMore.d.ts +0 -7
  1618. package/lib-esm/components/SeeMore/SeeMore.js +0 -10
  1619. package/lib-esm/components/SeeMore/index.d.ts +0 -1
  1620. package/lib-esm/components/SeeMore/index.js +0 -2
  1621. package/lib-esm/components/SideMenu/Actions.d.ts +0 -2
  1622. package/lib-esm/components/SideMenu/Actions.js +0 -5
  1623. package/lib-esm/components/SideMenu/MenuItem.d.ts +0 -13
  1624. package/lib-esm/components/SideMenu/MenuItem.js +0 -2
  1625. package/lib-esm/components/SideMenu/MenuItemEternalLink.d.ts +0 -5
  1626. package/lib-esm/components/SideMenu/MenuItemEternalLink.js +0 -2
  1627. package/lib-esm/components/SideMenu/MenuItemLink.d.ts +0 -3
  1628. package/lib-esm/components/SideMenu/MenuItemLink.js +0 -2
  1629. package/lib-esm/components/SideMenu/MenuItems.d.ts +0 -3
  1630. package/lib-esm/components/SideMenu/MenuItems.js +0 -2
  1631. package/lib-esm/components/SideMenu/MenuOperationItemContent.d.ts +0 -9
  1632. package/lib-esm/components/SideMenu/MenuOperationItemContent.js +0 -8
  1633. package/lib-esm/components/SideMenu/hooks/index.d.ts +0 -2
  1634. package/lib-esm/components/SideMenu/hooks/index.js +0 -2
  1635. package/lib-esm/components/SideMenu/hooks/useMenuItemExpanded.d.ts +0 -3
  1636. package/lib-esm/components/SideMenu/hooks/useMenuItemExpanded.js +0 -2
  1637. package/lib-esm/components/SideMenu/styled.d.ts +0 -29
  1638. package/lib-esm/components/SideMenu/styled.js +0 -97
  1639. package/lib-esm/components/SourceCodeWithFile/SourceCodeWithFile.d.ts +0 -3
  1640. package/lib-esm/components/SourceCodeWithFile/SourceCodeWithFile.js +0 -2
  1641. package/lib-esm/components/SourceCodeWithFile/index.d.ts +0 -1
  1642. package/lib-esm/components/SourceCodeWithFile/index.js +0 -2
  1643. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTab.d.ts +0 -1
  1644. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTab.js +0 -11
  1645. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabList.d.ts +0 -1
  1646. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabList.js +0 -12
  1647. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabs.d.ts +0 -3
  1648. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabs.js +0 -2
  1649. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabsBase.d.ts +0 -19
  1650. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabsBase.js +0 -2
  1651. package/lib-esm/components/Tabs/CollapsingTabs/index.d.ts +0 -4
  1652. package/lib-esm/components/Tabs/CollapsingTabs/index.js +0 -2
  1653. package/lib-esm/components/Tabs/Tab.d.ts +0 -2
  1654. package/lib-esm/components/Tabs/Tab.js +0 -28
  1655. package/lib-esm/components/Tabs/TabList.d.ts +0 -2
  1656. package/lib-esm/components/Tabs/TabList.js +0 -7
  1657. package/lib-esm/components/Tabs/TabPanel.d.ts +0 -2
  1658. package/lib-esm/components/Tabs/TabPanel.js +0 -11
  1659. package/lib-esm/components/TagItems/TagItems.d.ts +0 -14
  1660. package/lib-esm/components/TagItems/TagItems.js +0 -2
  1661. package/lib-esm/components/TagItems/index.d.ts +0 -1
  1662. package/lib-esm/components/TagItems/index.js +0 -2
  1663. package/lib-esm/components/VersionSwitcher.d.ts +0 -9
  1664. package/lib-esm/components/VersionSwitcher.js +0 -7
  1665. package/lib-esm/components/common/Checkbox.d.ts +0 -10
  1666. package/lib-esm/components/common/Checkbox.js +0 -31
  1667. package/lib-esm/components/common/CheckboxList.d.ts +0 -13
  1668. package/lib-esm/components/common/CheckboxList.js +0 -8
  1669. package/lib-esm/components/common/Dropdown/styled.d.ts +0 -28
  1670. package/lib-esm/components/common/Dropdown/styled.js +0 -133
  1671. package/lib-esm/components/common/Dropdown/types.d.ts +0 -25
  1672. package/lib-esm/components/common/Dropdown/types.js +0 -2
  1673. package/lib-esm/components/common/FileUpload/FileUpload.d.ts +0 -9
  1674. package/lib-esm/components/common/FileUpload/FileUpload.js +0 -2
  1675. package/lib-esm/components/common/FileUpload/helper.d.ts +0 -11
  1676. package/lib-esm/components/common/FileUpload/helper.js +0 -2
  1677. package/lib-esm/components/common/FileUpload/index.d.ts +0 -1
  1678. package/lib-esm/components/common/FileUpload/index.js +0 -2
  1679. package/lib-esm/components/common/LinearProgress.d.ts +0 -2
  1680. package/lib-esm/components/common/LinearProgress.js +0 -104
  1681. package/lib-esm/components/common/Portal/Portal.d.ts +0 -6
  1682. package/lib-esm/components/common/Portal/Portal.js +0 -2
  1683. package/lib-esm/components/common/Portal/index.d.ts +0 -1
  1684. package/lib-esm/components/common/Portal/index.js +0 -2
  1685. package/lib-esm/components/common/TextField.d.ts +0 -28
  1686. package/lib-esm/components/common/TextField.js +0 -79
  1687. package/lib-esm/components/common/form.d.ts +0 -17
  1688. package/lib-esm/components/common/form.js +0 -64
  1689. package/lib-esm/components/common/perfect-scrollbar.d.ts +0 -18
  1690. package/lib-esm/components/common/perfect-scrollbar.js +0 -4
  1691. package/lib-esm/components/common/shelfs.d.ts +0 -3
  1692. package/lib-esm/components/common/shelfs.js +0 -23
  1693. package/lib-esm/components/icons/CrossIcon.d.ts +0 -5
  1694. package/lib-esm/components/icons/CrossIcon.js +0 -11
  1695. package/lib-esm/components/icons/FileIcon.d.ts +0 -5
  1696. package/lib-esm/components/icons/FileIcon.js +0 -9
  1697. package/lib-esm/components/icons/LinkIcon.d.ts +0 -5
  1698. package/lib-esm/components/icons/LinkIcon.js +0 -11
  1699. package/lib-esm/components/icons/LockIcon.d.ts +0 -3
  1700. package/lib-esm/components/icons/LockIcon.js +0 -12
  1701. package/lib-esm/components/icons/SearchIcon.d.ts +0 -6
  1702. package/lib-esm/components/icons/SearchIcon.js +0 -11
  1703. package/lib-esm/components/icons/ShelfIcon.d.ts +0 -3
  1704. package/lib-esm/components/icons/ShelfIcon.js +0 -12
  1705. package/lib-esm/components/icons/Spinner.d.ts +0 -3
  1706. package/lib-esm/components/icons/Spinner.js +0 -19
  1707. package/lib-esm/components/icons/index.d.ts +0 -8
  1708. package/lib-esm/components/icons/index.js +0 -2
  1709. package/lib-esm/components/icons/types.d.ts +0 -10
  1710. package/lib-esm/components/icons/types.js +0 -2
  1711. package/lib-esm/components/pluggable/PullRight.d.ts +0 -4
  1712. package/lib-esm/components/pluggable/PullRight.js +0 -7
  1713. package/lib-esm/components/pluggable/RedocRequestBody.d.ts +0 -7
  1714. package/lib-esm/components/pluggable/RedocRequestBody.js +0 -2
  1715. package/lib-esm/components/pluggable/RedocResponse.d.ts +0 -6
  1716. package/lib-esm/components/pluggable/RedocResponse.js +0 -2
  1717. package/lib-esm/components/rightPanel/ActionPanel.d.ts +0 -12
  1718. package/lib-esm/components/rightPanel/ActionPanel.js +0 -4
  1719. package/lib-esm/components/rightPanel/AuthPanel/AuthPanel.d.ts +0 -3
  1720. package/lib-esm/components/rightPanel/AuthPanel/AuthPanel.js +0 -2
  1721. package/lib-esm/components/rightPanel/AuthPanel/index.d.ts +0 -2
  1722. package/lib-esm/components/rightPanel/AuthPanel/index.js +0 -2
  1723. package/lib-esm/components/rightPanel/AuthPanel/types.d.ts +0 -14
  1724. package/lib-esm/components/rightPanel/AuthPanel/types.js +0 -2
  1725. package/lib-esm/components/rightPanel/CodemirrorInput/CodemirrorInput.d.ts +0 -5
  1726. package/lib-esm/components/rightPanel/CodemirrorInput/CodemirrorInput.js +0 -2
  1727. package/lib-esm/components/rightPanel/CodemirrorInput/helpers.js +0 -2
  1728. package/lib-esm/components/rightPanel/CodemirrorInput/index.d.ts +0 -1
  1729. package/lib-esm/components/rightPanel/CodemirrorInput/index.js +0 -2
  1730. package/lib-esm/components/rightPanel/CodemirrorInput/styled.d.ts +0 -1
  1731. package/lib-esm/components/rightPanel/CodemirrorInput/styled.js +0 -54
  1732. package/lib-esm/components/rightPanel/CodemirrorInput/types.d.ts +0 -22
  1733. package/lib-esm/components/rightPanel/CodemirrorInput/types.js +0 -2
  1734. package/lib-esm/components/rightPanel/Console/Console.d.ts +0 -3
  1735. package/lib-esm/components/rightPanel/Console/Console.js +0 -2
  1736. package/lib-esm/components/rightPanel/Console/ConsoleLazy.d.ts +0 -3
  1737. package/lib-esm/components/rightPanel/Console/ConsoleLazy.js +0 -2
  1738. package/lib-esm/components/rightPanel/Console/ConsoleWrapper.d.ts +0 -9
  1739. package/lib-esm/components/rightPanel/Console/ConsoleWrapper.js +0 -2
  1740. package/lib-esm/components/rightPanel/Console/Request.d.ts +0 -3
  1741. package/lib-esm/components/rightPanel/Console/Request.js +0 -2
  1742. package/lib-esm/components/rightPanel/Console/index.d.ts +0 -1
  1743. package/lib-esm/components/rightPanel/Console/index.js +0 -2
  1744. package/lib-esm/components/rightPanel/Console/shallowCopyForTryIt.d.ts +0 -2
  1745. package/lib-esm/components/rightPanel/Console/shallowCopyForTryIt.js +0 -2
  1746. package/lib-esm/components/rightPanel/Console/types.d.ts +0 -29
  1747. package/lib-esm/components/rightPanel/Console/types.js +0 -2
  1748. package/lib-esm/components/rightPanel/ConsoleTabs/ConsoleTabs.d.ts +0 -7
  1749. package/lib-esm/components/rightPanel/ConsoleTabs/ConsoleTabs.js +0 -2
  1750. package/lib-esm/components/rightPanel/ConsoleTabs/index.d.ts +0 -2
  1751. package/lib-esm/components/rightPanel/ConsoleTabs/index.js +0 -2
  1752. package/lib-esm/components/rightPanel/ConsoleTabs/styled.d.ts +0 -5
  1753. package/lib-esm/components/rightPanel/ConsoleTabs/styled.js +0 -38
  1754. package/lib-esm/components/rightPanel/OAuth2Flow/Error.d.ts +0 -8
  1755. package/lib-esm/components/rightPanel/OAuth2Flow/Error.js +0 -2
  1756. package/lib-esm/components/rightPanel/OAuth2Flow/OAuth2Flow.d.ts +0 -3
  1757. package/lib-esm/components/rightPanel/OAuth2Flow/OAuth2Flow.js +0 -2
  1758. package/lib-esm/components/rightPanel/OAuth2Flow/index.d.ts +0 -2
  1759. package/lib-esm/components/rightPanel/OAuth2Flow/index.js +0 -2
  1760. package/lib-esm/components/rightPanel/OAuth2Flow/styled.d.ts +0 -4
  1761. package/lib-esm/components/rightPanel/OAuth2Flow/styled.js +0 -14
  1762. package/lib-esm/components/rightPanel/OAuth2Flow/types.d.ts +0 -20
  1763. package/lib-esm/components/rightPanel/OAuth2Flow/types.js +0 -2
  1764. package/lib-esm/components/rightPanel/OAuth2TokenInput.d.ts +0 -22
  1765. package/lib-esm/components/rightPanel/OAuth2TokenInput.js +0 -2
  1766. package/lib-esm/components/rightPanel/OpenIDConnect.d.ts +0 -18
  1767. package/lib-esm/components/rightPanel/OpenIDConnect.js +0 -2
  1768. package/lib-esm/components/rightPanel/ParameterArray.d.ts +0 -10
  1769. package/lib-esm/components/rightPanel/ParameterArray.js +0 -30
  1770. package/lib-esm/components/rightPanel/ParameterDropdown.d.ts +0 -7
  1771. package/lib-esm/components/rightPanel/ParameterDropdown.js +0 -2
  1772. package/lib-esm/components/rightPanel/RequestBody/Body.d.ts +0 -3
  1773. package/lib-esm/components/rightPanel/RequestBody/Body.js +0 -2
  1774. package/lib-esm/components/rightPanel/RequestBody/RequestBody.d.ts +0 -3
  1775. package/lib-esm/components/rightPanel/RequestBody/RequestBody.js +0 -2
  1776. package/lib-esm/components/rightPanel/RequestBody/index.d.ts +0 -2
  1777. package/lib-esm/components/rightPanel/RequestBody/index.js +0 -2
  1778. package/lib-esm/components/rightPanel/RequestBody/types.d.ts +0 -17
  1779. package/lib-esm/components/rightPanel/RequestBody/types.js +0 -2
  1780. package/lib-esm/components/rightPanel/RequestBodyForm.d.ts +0 -11
  1781. package/lib-esm/components/rightPanel/RequestBodyForm.js +0 -10
  1782. package/lib-esm/components/rightPanel/RequestMimeLabel.d.ts +0 -1
  1783. package/lib-esm/components/rightPanel/RequestMimeLabel.js +0 -5
  1784. package/lib-esm/components/rightPanel/ResponseBody.d.ts +0 -5
  1785. package/lib-esm/components/rightPanel/ResponseBody.js +0 -2
  1786. package/lib-esm/components/rightPanel/ResponseHeadersList.d.ts +0 -4
  1787. package/lib-esm/components/rightPanel/ResponseHeadersList.js +0 -10
  1788. package/lib-esm/components/rightPanel/ResponsePanel.d.ts +0 -10
  1789. package/lib-esm/components/rightPanel/ResponsePanel.js +0 -18
  1790. package/lib-esm/components/rightPanel/Scope.d.ts +0 -7
  1791. package/lib-esm/components/rightPanel/Scope.js +0 -2
  1792. package/lib-esm/components/rightPanel/ServerVariable.d.ts +0 -11
  1793. package/lib-esm/components/rightPanel/ServerVariable.js +0 -5
  1794. package/lib-esm/components/rightPanel/ServersDropdown/ServersDropdown.d.ts +0 -3
  1795. package/lib-esm/components/rightPanel/ServersDropdown/ServersDropdown.js +0 -4
  1796. package/lib-esm/components/rightPanel/ServersDropdown/index.d.ts +0 -1
  1797. package/lib-esm/components/rightPanel/ServersDropdown/index.js +0 -2
  1798. package/lib-esm/components/rightPanel/ServersDropdown/types.d.ts +0 -6
  1799. package/lib-esm/components/rightPanel/ServersDropdown/types.js +0 -2
  1800. package/lib-esm/components/rightPanel/TryItPanel.d.ts +0 -7
  1801. package/lib-esm/components/rightPanel/TryItPanel.js +0 -14
  1802. package/lib-esm/components/rightPanel/styled.d.ts +0 -16
  1803. package/lib-esm/components/rightPanel/styled.js +0 -76
  1804. package/lib-esm/components/rightPanel/types.d.ts +0 -10
  1805. package/lib-esm/components/rightPanel/types.js +0 -2
  1806. package/lib-esm/components/rightPanel/utils.d.ts +0 -28
  1807. package/lib-esm/components/rightPanel/utils.js +0 -2
  1808. package/lib-esm/components/shared/HttpVerb.d.ts +0 -2
  1809. package/lib-esm/components/shared/HttpVerb.js +0 -4
  1810. package/lib-esm/components/shared/MimeLabel.d.ts +0 -1
  1811. package/lib-esm/components/shared/MimeLabel.js +0 -12
  1812. package/lib-esm/components/shared/NoSampleLabel.d.ts +0 -2
  1813. package/lib-esm/components/shared/NoSampleLabel.js +0 -10
  1814. package/lib-esm/components/shared/index.d.ts +0 -3
  1815. package/lib-esm/components/shared/index.js +0 -2
  1816. package/lib-esm/events/serverSwitch.d.ts +0 -2
  1817. package/lib-esm/events/serverSwitch.js +0 -2
  1818. package/lib-esm/models/file-upload.d.ts +0 -11
  1819. package/lib-esm/models/file-upload.js +0 -2
  1820. package/lib-esm/oauth2-redirect-page/handler/helpers.d.ts +0 -6
  1821. package/lib-esm/oauth2-redirect-page/handler/helpers.js +0 -2
  1822. package/lib-esm/oauth2-redirect-page/handler/oauth2-redirect-handler.d.ts +0 -1
  1823. package/lib-esm/oauth2-redirect-page/handler/oauth2-redirect-handler.js +0 -2
  1824. package/lib-esm/oauth2-redirect-page/index.d.ts +0 -1
  1825. package/lib-esm/oauth2-redirect-page/index.js +0 -2
  1826. package/lib-esm/recoil/app.d.ts +0 -36
  1827. package/lib-esm/recoil/app.js +0 -2
  1828. package/lib-esm/recoil/nexus.d.ts +0 -6
  1829. package/lib-esm/recoil/nexus.js +0 -2
  1830. package/lib-esm/recoil/operation.d.ts +0 -11
  1831. package/lib-esm/recoil/operation.js +0 -2
  1832. package/lib-esm/recoil/store.d.ts +0 -19
  1833. package/lib-esm/recoil/store.js +0 -2
  1834. package/lib-esm/services/MarkerService.d.ts +0 -11
  1835. package/lib-esm/services/MarkerService.js +0 -2
  1836. package/lib-esm/services/OAuth2.d.ts +0 -43
  1837. package/lib-esm/services/OAuth2.js +0 -2
  1838. package/lib-esm/services/OpenIDConnect.d.ts +0 -38
  1839. package/lib-esm/services/OpenIDConnect.js +0 -2
  1840. package/lib-esm/services/Options/helpers.d.ts +0 -8
  1841. package/lib-esm/services/Options/helpers.js +0 -2
  1842. package/lib-esm/services/Options/normalizeOptions.d.ts +0 -2
  1843. package/lib-esm/services/Options/normalizeOptions.js +0 -2
  1844. package/lib-esm/services/Options/types.d.ts +0 -277
  1845. package/lib-esm/services/Options/types.js +0 -2
  1846. package/lib-esm/services/labels/LabelsService.d.ts +0 -3
  1847. package/lib-esm/services/labels/LabelsService.js +0 -2
  1848. package/lib-esm/services/labels/index.d.ts +0 -2
  1849. package/lib-esm/services/labels/index.js +0 -2
  1850. package/lib-esm/services/labels/types.d.ts +0 -28
  1851. package/lib-esm/services/labels/types.js +0 -2
  1852. package/lib-esm/services/menu/helpers.d.ts +0 -6
  1853. package/lib-esm/services/menu/helpers.js +0 -2
  1854. package/lib-esm/services/search/DeepSearchStore.d.ts +0 -19
  1855. package/lib-esm/services/search/DeepSearchStore.js +0 -2
  1856. package/lib-esm/services/search/RemoteSearch.d.ts +0 -17
  1857. package/lib-esm/services/search/RemoteSearch.js +0 -2
  1858. package/lib-esm/services/search/SearchStore.d.ts +0 -14
  1859. package/lib-esm/services/search/SearchStore.js +0 -2
  1860. package/lib-esm/services/search/SearchWorker.worker.d.ts +0 -17
  1861. package/lib-esm/services/search/SearchWorker.worker.js +0 -2
  1862. package/lib-esm/services/search/index.d.ts +0 -4
  1863. package/lib-esm/services/search/index.js +0 -2
  1864. package/lib-esm/services/search/types.d.ts +0 -15
  1865. package/lib-esm/services/search/types.js +0 -2
  1866. package/lib-esm/services/search/useSearch.d.ts +0 -13
  1867. package/lib-esm/services/search/useSearch.js +0 -2
  1868. package/lib-esm/types/server.d.ts +0 -7
  1869. package/lib-esm/types/server.js +0 -2
  1870. package/lib-esm/utils/media-css.d.ts +0 -8
  1871. package/lib-esm/utils/media-css.js +0 -2
  1872. package/lib-esm/utils/typeGuards.d.ts +0 -4
  1873. package/lib-esm/utils/typeGuards.js +0 -2
  1874. /package/lib/components/{ApiInfo → PropertyDetails}/types.js +0 -0
  1875. /package/lib/components/{Endpoint → Request}/types.js +0 -0
  1876. /package/lib/components/{Fields → ServerList}/types.js +0 -0
  1877. /package/lib/components/{Search → common/Select}/types.js +0 -0
  1878. /package/lib/services/{Options → config-options}/index.d.ts +0 -0
  1879. /package/lib/services/{Options → config-options}/index.js +0 -0
  1880. /package/lib/{components/SecurityRequirement → services/config-options}/types.js +0 -0
  1881. /package/lib-esm/components/{rightPanel/CodemirrorInput/helpers.d.ts → Language/_tests_/LanguageDropdown.test.d.ts} +0 -0
  1882. /package/{lib/components/rightPanel/CodemirrorInput/helpers.d.ts → lib-esm/components/OperationItem/_tests_/OperationItem.test.d.ts} +0 -0
  1883. /package/lib-esm/components/{ApiInfo → PropertyDetails}/types.js +0 -0
  1884. /package/lib-esm/components/{Endpoint → Request}/types.js +0 -0
  1885. /package/lib-esm/components/{Fields → ServerList}/types.js +0 -0
  1886. /package/lib-esm/components/{Search → common/Select}/types.js +0 -0
  1887. /package/lib-esm/services/{Options → config-options}/index.d.ts +0 -0
  1888. /package/lib-esm/services/{Options → config-options}/index.js +0 -0
  1889. /package/lib-esm/{components/SecurityRequirement → services/config-options}/types.js +0 -0
@@ -1,439 +0,0 @@
1
- /*!
2
- * Redocly OpenAPI Docs
3
- * (c) Copyright 2018 Redocly LLC, all rights reserved.
4
- * -------------------------------------------------------------
5
- * Version: "3.0.0"
6
- */(this.webpackChunkRedoclyOpenAPIDocs=this.webpackChunkRedoclyOpenAPIDocs||[]).push([[290],{29641:(x,N,f)=>{(function(v){v(f(46944))})(function(v){var C={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},E=v.Pos;v.defineOption("autoCloseBrackets",!1,function(M,S,L){L&&L!=v.Init&&(M.removeKeyMap(D),M.state.closeBrackets=null),S&&(R(P(S,"pairs")),M.state.closeBrackets=S,M.addKeyMap(D))});function P(M,S){return S=="pairs"&&typeof M=="string"?M:typeof M=="object"&&M[S]!=null?M[S]:C[S]}var D={Backspace:q,Enter:de};function R(M){for(var S=0;S<M.length;S++){var L=M.charAt(S),F="'"+L+"'";D[F]||(D[F]=_(L))}}R(C.pairs+"`");function _(M){return function(S){return V(S,M)}}function Z(M){var S=M.state.closeBrackets;if(!S||S.override)return S;var L=M.getModeAt(M.getCursor());return L.closeBrackets||S}function q(M){var S=Z(M);if(!S||M.getOption("disableInput"))return v.Pass;for(var L=P(S,"pairs"),F=M.listSelections(),K=0;K<F.length;K++){if(!F[K].empty())return v.Pass;var te=T(M,F[K].head);if(!te||L.indexOf(te)%2!=0)return v.Pass}for(var K=F.length-1;K>=0;K--){var j=F[K].head;M.replaceRange("",E(j.line,j.ch-1),E(j.line,j.ch+1),"+delete")}}function de(M){var S=Z(M),L=S&&P(S,"explode");if(!L||M.getOption("disableInput"))return v.Pass;for(var F=M.listSelections(),K=0;K<F.length;K++){if(!F[K].empty())return v.Pass;var te=T(M,F[K].head);if(!te||L.indexOf(te)%2!=0)return v.Pass}M.operation(function(){var j=M.lineSeparator()||`
7
- `;M.replaceSelection(j+j,null),re(M,-1),F=M.listSelections();for(var ie=0;ie<F.length;ie++){var H=F[ie].head.line;M.indentLine(H,null,!0),M.indentLine(H+1,null,!0)}})}function re(M,S){for(var L=[],F=M.listSelections(),K=0,te=0;te<F.length;te++){var j=F[te];j.head==M.getCursor()&&(K=te);var ie=j.head.ch||S>0?{line:j.head.line,ch:j.head.ch+S}:{line:j.head.line-1};L.push({anchor:ie,head:ie})}M.setSelections(L,K)}function se(M){var S=v.cmpPos(M.anchor,M.head)>0;return{anchor:new E(M.anchor.line,M.anchor.ch+(S?-1:1)),head:new E(M.head.line,M.head.ch+(S?1:-1))}}function V(M,S){var L=Z(M);if(!L||M.getOption("disableInput"))return v.Pass;var F=P(L,"pairs"),K=F.indexOf(S);if(K==-1)return v.Pass;for(var te=P(L,"closeBefore"),j=P(L,"triples"),ie=F.charAt(K+1)==S,H=M.listSelections(),Y=K%2==0,ce,ge=0;ge<H.length;ge++){var G=H[ge],ve=G.head,ee,He=M.getRange(ve,E(ve.line,ve.ch+1));if(Y&&!G.empty())ee="surround";else if((ie||!Y)&&He==S)ie&&J(M,ve)?ee="both":j.indexOf(S)>=0&&M.getRange(ve,E(ve.line,ve.ch+3))==S+S+S?ee="skipThree":ee="skip";else if(ie&&ve.ch>1&&j.indexOf(S)>=0&&M.getRange(E(ve.line,ve.ch-2),ve)==S+S){if(ve.ch>2&&/\bstring/.test(M.getTokenTypeAt(E(ve.line,ve.ch-2))))return v.Pass;ee="addFour"}else if(ie){var _e=ve.ch==0?" ":M.getRange(E(ve.line,ve.ch-1),ve);if(!v.isWordChar(He)&&_e!=S&&!v.isWordChar(_e))ee="both";else return v.Pass}else if(Y&&(He.length===0||/\s/.test(He)||te.indexOf(He)>-1))ee="both";else return v.Pass;if(!ce)ce=ee;else if(ce!=ee)return v.Pass}var ze=K%2?F.charAt(K-1):S,ct=K%2?S:F.charAt(K+1);M.operation(function(){if(ce=="skip")re(M,1);else if(ce=="skipThree")re(M,3);else if(ce=="surround"){for(var ut=M.getSelections(),at=0;at<ut.length;at++)ut[at]=ze+ut[at]+ct;M.replaceSelections(ut,"around"),ut=M.listSelections().slice();for(var at=0;at<ut.length;at++)ut[at]=se(ut[at]);M.setSelections(ut)}else ce=="both"?(M.replaceSelection(ze+ct,null),M.triggerElectric(ze+ct),re(M,-1)):ce=="addFour"&&(M.replaceSelection(ze+ze+ze+ze,"before"),re(M,1))})}function T(M,S){var L=M.getRange(E(S.line,S.ch-1),E(S.line,S.ch+1));return L.length==2?L:null}function J(M,S){var L=M.getTokenAt(E(S.line,S.ch+1));return/\bstring/.test(L.type)&&L.start==S.ch&&(S.ch==0||!/\bstring/.test(M.getTokenTypeAt(S)))}})},82518:(x,N,f)=>{(function(v){v(f(46944))})(function(v){var C=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),E=v.Pos,P={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function D(re){return re&&re.bracketRegex||/[(){}[\]]/}function R(re,se,V){var T=re.getLineHandle(se.line),J=se.ch-1,M=V&&V.afterCursor;M==null&&(M=/(^| )cm-fat-cursor($| )/.test(re.getWrapperElement().className));var S=D(V),L=!M&&J>=0&&S.test(T.text.charAt(J))&&P[T.text.charAt(J)]||S.test(T.text.charAt(J+1))&&P[T.text.charAt(++J)];if(!L)return null;var F=L.charAt(1)==">"?1:-1;if(V&&V.strict&&F>0!=(J==se.ch))return null;var K=re.getTokenTypeAt(E(se.line,J+1)),te=_(re,E(se.line,J+(F>0?1:0)),F,K,V);return te==null?null:{from:E(se.line,J),to:te&&te.pos,match:te&&te.ch==L.charAt(0),forward:F>0}}function _(re,se,V,T,J){for(var M=J&&J.maxScanLineLength||1e4,S=J&&J.maxScanLines||1e3,L=[],F=D(J),K=V>0?Math.min(se.line+S,re.lastLine()+1):Math.max(re.firstLine()-1,se.line-S),te=se.line;te!=K;te+=V){var j=re.getLine(te);if(j){var ie=V>0?0:j.length-1,H=V>0?j.length:-1;if(!(j.length>M))for(te==se.line&&(ie=se.ch-(V<0?1:0));ie!=H;ie+=V){var Y=j.charAt(ie);if(F.test(Y)&&(T===void 0||(re.getTokenTypeAt(E(te,ie+1))||"")==(T||""))){var ce=P[Y];if(ce&&ce.charAt(1)==">"==V>0)L.push(Y);else if(L.length)L.pop();else return{pos:E(te,ie),ch:Y}}}}}return te-V==(V>0?re.lastLine():re.firstLine())?!1:null}function Z(re,se,V){for(var T=re.state.matchBrackets.maxHighlightLineLength||1e3,J=V&&V.highlightNonMatching,M=[],S=re.listSelections(),L=0;L<S.length;L++){var F=S[L].empty()&&R(re,S[L].head,V);if(F&&(F.match||J!==!1)&&re.getLine(F.from.line).length<=T){var K=F.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";M.push(re.markText(F.from,E(F.from.line,F.from.ch+1),{className:K})),F.to&&re.getLine(F.to.line).length<=T&&M.push(re.markText(F.to,E(F.to.line,F.to.ch+1),{className:K}))}}if(M.length){C&&re.state.focused&&re.focus();var te=function(){re.operation(function(){for(var j=0;j<M.length;j++)M[j].clear()})};if(se)setTimeout(te,800);else return te}}function q(re){re.operation(function(){re.state.matchBrackets.currentlyHighlighted&&(re.state.matchBrackets.currentlyHighlighted(),re.state.matchBrackets.currentlyHighlighted=null),re.state.matchBrackets.currentlyHighlighted=Z(re,!1,re.state.matchBrackets)})}function de(re){re.state.matchBrackets&&re.state.matchBrackets.currentlyHighlighted&&(re.state.matchBrackets.currentlyHighlighted(),re.state.matchBrackets.currentlyHighlighted=null)}v.defineOption("matchBrackets",!1,function(re,se,V){V&&V!=v.Init&&(re.off("cursorActivity",q),re.off("focus",q),re.off("blur",de),de(re)),se&&(re.state.matchBrackets=typeof se=="object"?se:{},re.on("cursorActivity",q),re.on("focus",q),re.on("blur",de))}),v.defineExtension("matchBrackets",function(){Z(this,!0)}),v.defineExtension("findMatchingBracket",function(re,se,V){return(V||typeof se=="boolean")&&(V?(V.strict=se,se=V):se=se?{strict:!0}:null),R(this,re,se)}),v.defineExtension("scanForBracket",function(re,se,V,T){return _(this,re,se,V,T)})})},77436:(x,N,f)=>{(function(v){v(f(46944))})(function(v){"use strict";var C="CodeMirror-hint",E="CodeMirror-hint-active";v.showHint=function(M,S,L){if(!S)return M.showHint(L);L&&L.async&&(S.async=!0);var F={hint:S};if(L)for(var K in L)F[K]=L[K];return M.showHint(F)},v.defineExtension("showHint",function(M){M=_(this,this.getCursor("start"),M);var S=this.listSelections();if(!(S.length>1)){if(this.somethingSelected()){if(!M.hint.supportsSelection)return;for(var L=0;L<S.length;L++)if(S[L].head.line!=S[L].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var F=this.state.completionActive=new P(this,M);F.options.hint&&(v.signal(this,"startCompletion",this),F.update(!0))}}),v.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function P(M,S){if(this.cm=M,this.options=S,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 L=this;M.on("cursorActivity",this.activityFunc=function(){L.cursorActivity()})}}var D=window.requestAnimationFrame||function(M){return setTimeout(M,1e3/60)},R=window.cancelAnimationFrame||clearTimeout;P.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&&v.signal(this.data,"close"),this.widget&&this.widget.close(),v.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(M,S){var L=M.list[S],F=this;this.cm.operation(function(){L.hint?L.hint(F.cm,M,L):F.cm.replaceRange(Z(L),L.from||M.from,L.to||M.to,"complete"),v.signal(M,"pick",L),F.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(R(this.debounce),this.debounce=0);var M=this.startPos;this.data&&(M=this.data.from);var S=this.cm.getCursor(),L=this.cm.getLine(S.line);if(S.line!=this.startPos.line||L.length-S.ch!=this.startLen-this.startPos.ch||S.ch<M.ch||this.cm.somethingSelected()||!S.ch||this.options.closeCharacters.test(L.charAt(S.ch-1)))this.close();else{var F=this;this.debounce=D(function(){F.update()}),this.widget&&this.widget.disable()}},update:function(M){if(this.tick!=null){var S=this,L=++this.tick;V(this.options.hint,this.cm,this.options,function(F){S.tick==L&&S.finishUpdate(F,M)})}},finishUpdate:function(M,S){this.data&&v.signal(this.data,"update");var L=this.widget&&this.widget.picked||S&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=M,M&&M.list.length&&(L&&M.list.length==1?this.pick(M,0):(this.widget=new re(this,M),v.signal(M,"shown")))}};function _(M,S,L){var F=M.options.hintOptions,K={};for(var te in J)K[te]=J[te];if(F)for(var te in F)F[te]!==void 0&&(K[te]=F[te]);if(L)for(var te in L)L[te]!==void 0&&(K[te]=L[te]);return K.hint.resolve&&(K.hint=K.hint.resolve(M,S)),K}function Z(M){return typeof M=="string"?M:M.text}function q(M,S){var L={Up:function(){S.moveFocus(-1)},Down:function(){S.moveFocus(1)},PageUp:function(){S.moveFocus(-S.menuSize()+1,!0)},PageDown:function(){S.moveFocus(S.menuSize()-1,!0)},Home:function(){S.setFocus(0)},End:function(){S.setFocus(S.length-1)},Enter:S.pick,Tab:S.pick,Esc:S.close},F=/Mac/.test(navigator.platform);F&&(L["Ctrl-P"]=function(){S.moveFocus(-1)},L["Ctrl-N"]=function(){S.moveFocus(1)});var K=M.options.customKeys,te=K?{}:L;function j(Y,ce){var ge;typeof ce!="string"?ge=function(G){return ce(G,S)}:L.hasOwnProperty(ce)?ge=L[ce]:ge=ce,te[Y]=ge}if(K)for(var ie in K)K.hasOwnProperty(ie)&&j(ie,K[ie]);var H=M.options.extraKeys;if(H)for(var ie in H)H.hasOwnProperty(ie)&&j(ie,H[ie]);return te}function de(M,S){for(;S&&S!=M;){if(S.nodeName.toUpperCase()==="LI"&&S.parentNode==M)return S;S=S.parentNode}}function re(M,S){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=M,this.data=S,this.picked=!1;var L=this,F=M.cm,K=F.getInputField().ownerDocument,te=K.defaultView||K.parentWindow,j=this.hints=K.createElement("ul");j.setAttribute("role","listbox"),j.setAttribute("aria-expanded","true"),j.id=this.id;var ie=M.cm.options.theme;j.className="CodeMirror-hints "+ie,this.selectedHint=S.selectedHint||0;for(var H=S.list,Y=0;Y<H.length;++Y){var ce=j.appendChild(K.createElement("li")),ge=H[Y],G=C+(Y!=this.selectedHint?"":" "+E);ge.className!=null&&(G=ge.className+" "+G),ce.className=G,Y==this.selectedHint&&ce.setAttribute("aria-selected","true"),ce.id=this.id+"-"+Y,ce.setAttribute("role","option"),ge.render?ge.render(ce,S,ge):ce.appendChild(K.createTextNode(ge.displayText||Z(ge))),ce.hintId=Y}var ve=M.options.container||K.body,ee=F.cursorCoords(M.options.alignWithWord?S.from:null),He=ee.left,_e=ee.bottom,ze=!0,ct=0,ut=0;if(ve!==K.body){var at=["absolute","relative","fixed"].indexOf(te.getComputedStyle(ve).position)!==-1,Gt=at?ve:ve.offsetParent,dt=Gt.getBoundingClientRect(),Ot=K.body.getBoundingClientRect();ct=dt.left-Ot.left-Gt.scrollLeft,ut=dt.top-Ot.top-Gt.scrollTop}j.style.left=He-ct+"px",j.style.top=_e-ut+"px";var nt=te.innerWidth||Math.max(K.body.offsetWidth,K.documentElement.offsetWidth),Ue=te.innerHeight||Math.max(K.body.offsetHeight,K.documentElement.offsetHeight);ve.appendChild(j),F.getInputField().setAttribute("aria-autocomplete","list"),F.getInputField().setAttribute("aria-owns",this.id),F.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var Fe=M.options.moveOnOverlap?j.getBoundingClientRect():new DOMRect,Re=M.options.paddingForScrollbar?j.scrollHeight>j.clientHeight+1:!1,it;setTimeout(function(){it=F.getScrollInfo()});var Ft=Fe.bottom-Ue;if(Ft>0){var qe=Fe.bottom-Fe.top,St=Fe.top-(ee.bottom-ee.top)-2;Ue-Fe.top<St?(qe>St&&(j.style.height=(qe=St)+"px"),j.style.top=(_e=ee.top-qe)+ut+"px",ze=!1):j.style.height=Ue-Fe.top-2+"px"}var Kt=Fe.right-nt;if(Re&&(Kt+=F.display.nativeBarWidth),Kt>0&&(Fe.right-Fe.left>nt&&(j.style.width=nt-5+"px",Kt-=Fe.right-Fe.left-nt),j.style.left=(He=Math.max(ee.left-Kt-ct,0))+"px"),Re)for(var Qt=j.firstChild;Qt;Qt=Qt.nextSibling)Qt.style.paddingRight=F.display.nativeBarWidth+"px";if(F.addKeyMap(this.keyMap=q(M,{moveFocus:function(xt,It){L.changeActive(L.selectedHint+xt,It)},setFocus:function(xt){L.changeActive(xt)},menuSize:function(){return L.screenAmount()},length:H.length,close:function(){M.close()},pick:function(){L.pick()},data:S})),M.options.closeOnUnfocus){var hr;F.on("blur",this.onBlur=function(){hr=setTimeout(function(){M.close()},100)}),F.on("focus",this.onFocus=function(){clearTimeout(hr)})}F.on("scroll",this.onScroll=function(){var xt=F.getScrollInfo(),It=F.getWrapperElement().getBoundingClientRect();it||(it=F.getScrollInfo());var Or=_e+it.top-xt.top,Rt=Or-(te.pageYOffset||(K.documentElement||K.body).scrollTop);if(ze||(Rt+=j.offsetHeight),Rt<=It.top||Rt>=It.bottom)return M.close();j.style.top=Or+"px",j.style.left=He+it.left-xt.left+"px"}),v.on(j,"dblclick",function(xt){var It=de(j,xt.target||xt.srcElement);It&&It.hintId!=null&&(L.changeActive(It.hintId),L.pick())}),v.on(j,"click",function(xt){var It=de(j,xt.target||xt.srcElement);It&&It.hintId!=null&&(L.changeActive(It.hintId),M.options.completeOnSingleClick&&L.pick())}),v.on(j,"mousedown",function(){setTimeout(function(){F.focus()},20)});var Je=this.getSelectedHintRange();return(Je.from!==0||Je.to!==0)&&this.scrollToActive(),v.signal(S,"select",H[this.selectedHint],j.childNodes[this.selectedHint]),!0}re.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 M=this.completion.cm.getInputField();M.removeAttribute("aria-activedescendant"),M.removeAttribute("aria-owns");var S=this.completion.cm;this.completion.options.closeOnUnfocus&&(S.off("blur",this.onBlur),S.off("focus",this.onFocus)),S.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var M=this;this.keyMap={Enter:function(){M.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(M,S){if(M>=this.data.list.length?M=S?this.data.list.length-1:0:M<0&&(M=S?0:this.data.list.length-1),this.selectedHint!=M){var L=this.hints.childNodes[this.selectedHint];L&&(L.className=L.className.replace(" "+E,""),L.removeAttribute("aria-selected")),L=this.hints.childNodes[this.selectedHint=M],L.className+=" "+E,L.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",L.id),this.scrollToActive(),v.signal(this.data,"select",this.data.list[this.selectedHint],L)}},scrollToActive:function(){var M=this.getSelectedHintRange(),S=this.hints.childNodes[M.from],L=this.hints.childNodes[M.to],F=this.hints.firstChild;S.offsetTop<this.hints.scrollTop?this.hints.scrollTop=S.offsetTop-F.offsetTop:L.offsetTop+L.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=L.offsetTop+L.offsetHeight-this.hints.clientHeight+F.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var M=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-M),to:Math.min(this.data.list.length-1,this.selectedHint+M)}}};function se(M,S){if(!M.somethingSelected())return S;for(var L=[],F=0;F<S.length;F++)S[F].supportsSelection&&L.push(S[F]);return L}function V(M,S,L,F){if(M.async)M(S,F,L);else{var K=M(S,L);K&&K.then?K.then(F):F(K)}}function T(M,S){var L=M.getHelpers(S,"hint"),F;if(L.length){var K=function(te,j,ie){var H=se(te,L);function Y(ce){if(ce==H.length)return j(null);V(H[ce],te,ie,function(ge){ge&&ge.list.length>0?j(ge):Y(ce+1)})}Y(0)};return K.async=!0,K.supportsSelection=!0,K}else return(F=M.getHelper(M.getCursor(),"hintWords"))?function(te){return v.hint.fromList(te,{words:F})}:v.hint.anyword?function(te,j){return v.hint.anyword(te,j)}:function(){}}v.registerHelper("hint","auto",{resolve:T}),v.registerHelper("hint","fromList",function(M,S){var L=M.getCursor(),F=M.getTokenAt(L),K,te=v.Pos(L.line,F.start),j=L;F.start<L.ch&&/\w/.test(F.string.charAt(L.ch-F.start-1))?K=F.string.substr(0,L.ch-F.start):(K="",te=L);for(var ie=[],H=0;H<S.words.length;H++){var Y=S.words[H];Y.slice(0,K.length)==K&&ie.push(Y)}if(ie.length)return{list:ie,from:te,to:j}}),v.commands.autocomplete=v.showHint;var J={hint:v.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};v.defineOption("hintOptions",null)})},33201:(x,N,f)=>{(function(v){v(f(46944))})(function(v){"use strict";var C="CodeMirror-lint-markers",E="CodeMirror-lint-line-";function P(j,ie,H){var Y=document.createElement("div");Y.className="CodeMirror-lint-tooltip cm-s-"+j.options.theme,Y.appendChild(H.cloneNode(!0)),j.state.lint.options.selfContain?j.getWrapperElement().appendChild(Y):document.body.appendChild(Y);function ce(ge){if(!Y.parentNode)return v.off(document,"mousemove",ce);Y.style.top=Math.max(0,ge.clientY-Y.offsetHeight-5)+"px",Y.style.left=ge.clientX+5+"px"}return v.on(document,"mousemove",ce),ce(ie),Y.style.opacity!=null&&(Y.style.opacity=1),Y}function D(j){j.parentNode&&j.parentNode.removeChild(j)}function R(j){j.parentNode&&(j.style.opacity==null&&D(j),j.style.opacity=0,setTimeout(function(){D(j)},600))}function _(j,ie,H,Y){var ce=P(j,ie,H);function ge(){v.off(Y,"mouseout",ge),ce&&(R(ce),ce=null)}var G=setInterval(function(){if(ce)for(var ve=Y;;ve=ve.parentNode){if(ve&&ve.nodeType==11&&(ve=ve.host),ve==document.body)return;if(!ve){ge();break}}if(!ce)return clearInterval(G)},400);v.on(Y,"mouseout",ge)}function Z(j,ie,H){this.marked=[],ie instanceof Function&&(ie={getAnnotations:ie}),(!ie||ie===!0)&&(ie={}),this.options={},this.linterOptions=ie.options||{};for(var Y in q)this.options[Y]=q[Y];for(var Y in ie)q.hasOwnProperty(Y)?ie[Y]!=null&&(this.options[Y]=ie[Y]):ie.options||(this.linterOptions[Y]=ie[Y]);this.timeout=null,this.hasGutter=H,this.onMouseOver=function(ce){te(j,ce)},this.waitingFor=0}var q={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function de(j){var ie=j.state.lint;ie.hasGutter&&j.clearGutter(C),ie.options.highlightLines&&re(j);for(var H=0;H<ie.marked.length;++H)ie.marked[H].clear();ie.marked.length=0}function re(j){j.eachLine(function(ie){var H=ie.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(ie.wrapClass);H&&j.removeLineClass(ie,"wrap",H[0])})}function se(j,ie,H,Y,ce){var ge=document.createElement("div"),G=ge;return ge.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+H,Y&&(G=ge.appendChild(document.createElement("div")),G.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),ce!=!1&&v.on(G,"mouseover",function(ve){_(j,ve,ie,G)}),ge}function V(j,ie){return j=="error"?j:ie}function T(j){for(var ie=[],H=0;H<j.length;++H){var Y=j[H],ce=Y.from.line;(ie[ce]||(ie[ce]=[])).push(Y)}return ie}function J(j){var ie=j.severity;ie||(ie="error");var H=document.createElement("div");return H.className="CodeMirror-lint-message CodeMirror-lint-message-"+ie,typeof j.messageHTML<"u"?H.innerHTML=j.messageHTML:H.appendChild(document.createTextNode(j.message)),H}function M(j,ie){var H=j.state.lint,Y=++H.waitingFor;function ce(){Y=-1,j.off("change",ce)}j.on("change",ce),ie(j.getValue(),function(ge,G){j.off("change",ce),H.waitingFor==Y&&(G&&ge instanceof v&&(ge=G),j.operation(function(){L(j,ge)}))},H.linterOptions,j)}function S(j){var ie=j.state.lint;if(ie){var H=ie.options,Y=H.getAnnotations||j.getHelper(v.Pos(0,0),"lint");if(Y)if(H.async||Y.async)M(j,Y);else{var ce=Y(j.getValue(),ie.linterOptions,j);if(!ce)return;ce.then?ce.then(function(ge){j.operation(function(){L(j,ge)})}):j.operation(function(){L(j,ce)})}}}function L(j,ie){var H=j.state.lint;if(H){var Y=H.options;de(j);for(var ce=T(ie),ge=0;ge<ce.length;++ge){var G=ce[ge];if(G){var ve=[];G=G.filter(function(ut){return ve.indexOf(ut.message)>-1?!1:ve.push(ut.message)});for(var ee=null,He=H.hasGutter&&document.createDocumentFragment(),_e=0;_e<G.length;++_e){var ze=G[_e],ct=ze.severity;ct||(ct="error"),ee=V(ee,ct),Y.formatAnnotation&&(ze=Y.formatAnnotation(ze)),H.hasGutter&&He.appendChild(J(ze)),ze.to&&H.marked.push(j.markText(ze.from,ze.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+ct,__annotation:ze}))}H.hasGutter&&j.setGutterMarker(ge,C,se(j,He,ee,ce[ge].length>1,Y.tooltips)),Y.highlightLines&&j.addLineClass(ge,"wrap",E+ee)}}Y.onUpdateLinting&&Y.onUpdateLinting(ie,ce,j)}}function F(j){var ie=j.state.lint;ie&&(clearTimeout(ie.timeout),ie.timeout=setTimeout(function(){S(j)},ie.options.delay))}function K(j,ie,H){for(var Y=H.target||H.srcElement,ce=document.createDocumentFragment(),ge=0;ge<ie.length;ge++){var G=ie[ge];ce.appendChild(J(G))}_(j,H,ce,Y)}function te(j,ie){var H=ie.target||ie.srcElement;if(/\bCodeMirror-lint-mark-/.test(H.className)){for(var Y=H.getBoundingClientRect(),ce=(Y.left+Y.right)/2,ge=(Y.top+Y.bottom)/2,G=j.findMarksAt(j.coordsChar({left:ce,top:ge},"client")),ve=[],ee=0;ee<G.length;++ee){var He=G[ee].__annotation;He&&ve.push(He)}ve.length&&K(j,ve,ie)}}v.defineOption("lint",!1,function(j,ie,H){if(H&&H!=v.Init&&(de(j),j.state.lint.options.lintOnChange!==!1&&j.off("change",F),v.off(j.getWrapperElement(),"mouseover",j.state.lint.onMouseOver),clearTimeout(j.state.lint.timeout),delete j.state.lint),ie){for(var Y=j.getOption("gutters"),ce=!1,ge=0;ge<Y.length;++ge)Y[ge]==C&&(ce=!0);var G=j.state.lint=new Z(j,ie,ce);G.options.lintOnChange&&j.on("change",F),G.options.tooltips!=!1&&G.options.tooltips!="gutter"&&v.on(j.getWrapperElement(),"mouseover",G.onMouseOver),S(j)}}),v.defineExtension("performLint",function(){S(this)})})},71628:(x,N,f)=>{(function(v){v(f(46944))})(function(v){"use strict";var C=v.Pos;function E(S){var L=S.flags;return L??(S.ignoreCase?"i":"")+(S.global?"g":"")+(S.multiline?"m":"")}function P(S,L){for(var F=E(S),K=F,te=0;te<L.length;te++)K.indexOf(L.charAt(te))==-1&&(K+=L.charAt(te));return F==K?S:new RegExp(S.source,K)}function D(S){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(S.source)}function R(S,L,F){L=P(L,"g");for(var K=F.line,te=F.ch,j=S.lastLine();K<=j;K++,te=0){L.lastIndex=te;var ie=S.getLine(K),H=L.exec(ie);if(H)return{from:C(K,H.index),to:C(K,H.index+H[0].length),match:H}}}function _(S,L,F){if(!D(L))return R(S,L,F);L=P(L,"gm");for(var K,te=1,j=F.line,ie=S.lastLine();j<=ie;){for(var H=0;H<te&&!(j>ie);H++){var Y=S.getLine(j++);K=K==null?Y:K+`
8
- `+Y}te=te*2,L.lastIndex=F.ch;var ce=L.exec(K);if(ce){var ge=K.slice(0,ce.index).split(`
9
- `),G=ce[0].split(`
10
- `),ve=F.line+ge.length-1,ee=ge[ge.length-1].length;return{from:C(ve,ee),to:C(ve+G.length-1,G.length==1?ee+G[0].length:G[G.length-1].length),match:ce}}}}function Z(S,L,F){for(var K,te=0;te<=S.length;){L.lastIndex=te;var j=L.exec(S);if(!j)break;var ie=j.index+j[0].length;if(ie>S.length-F)break;(!K||ie>K.index+K[0].length)&&(K=j),te=j.index+1}return K}function q(S,L,F){L=P(L,"g");for(var K=F.line,te=F.ch,j=S.firstLine();K>=j;K--,te=-1){var ie=S.getLine(K),H=Z(ie,L,te<0?0:ie.length-te);if(H)return{from:C(K,H.index),to:C(K,H.index+H[0].length),match:H}}}function de(S,L,F){if(!D(L))return q(S,L,F);L=P(L,"gm");for(var K,te=1,j=S.getLine(F.line).length-F.ch,ie=F.line,H=S.firstLine();ie>=H;){for(var Y=0;Y<te&&ie>=H;Y++){var ce=S.getLine(ie--);K=K==null?ce:ce+`
11
- `+K}te*=2;var ge=Z(K,L,j);if(ge){var G=K.slice(0,ge.index).split(`
12
- `),ve=ge[0].split(`
13
- `),ee=ie+G.length,He=G[G.length-1].length;return{from:C(ee,He),to:C(ee+ve.length-1,ve.length==1?He+ve[0].length:ve[ve.length-1].length),match:ge}}}}var re,se;String.prototype.normalize?(re=function(S){return S.normalize("NFD").toLowerCase()},se=function(S){return S.normalize("NFD")}):(re=function(S){return S.toLowerCase()},se=function(S){return S});function V(S,L,F,K){if(S.length==L.length)return F;for(var te=0,j=F+Math.max(0,S.length-L.length);;){if(te==j)return te;var ie=te+j>>1,H=K(S.slice(0,ie)).length;if(H==F)return ie;H>F?j=ie:te=ie+1}}function T(S,L,F,K){if(!L.length)return null;var te=K?re:se,j=te(L).split(/\r|\n\r?/);e:for(var ie=F.line,H=F.ch,Y=S.lastLine()+1-j.length;ie<=Y;ie++,H=0){var ce=S.getLine(ie).slice(H),ge=te(ce);if(j.length==1){var G=ge.indexOf(j[0]);if(G==-1)continue e;var F=V(ce,ge,G,te)+H;return{from:C(ie,V(ce,ge,G,te)+H),to:C(ie,V(ce,ge,G+j[0].length,te)+H)}}else{var ve=ge.length-j[0].length;if(ge.slice(ve)!=j[0])continue e;for(var ee=1;ee<j.length-1;ee++)if(te(S.getLine(ie+ee))!=j[ee])continue e;var He=S.getLine(ie+j.length-1),_e=te(He),ze=j[j.length-1];if(_e.slice(0,ze.length)!=ze)continue e;return{from:C(ie,V(ce,ge,ve,te)+H),to:C(ie+j.length-1,V(He,_e,ze.length,te))}}}}function J(S,L,F,K){if(!L.length)return null;var te=K?re:se,j=te(L).split(/\r|\n\r?/);e:for(var ie=F.line,H=F.ch,Y=S.firstLine()-1+j.length;ie>=Y;ie--,H=-1){var ce=S.getLine(ie);H>-1&&(ce=ce.slice(0,H));var ge=te(ce);if(j.length==1){var G=ge.lastIndexOf(j[0]);if(G==-1)continue e;return{from:C(ie,V(ce,ge,G,te)),to:C(ie,V(ce,ge,G+j[0].length,te))}}else{var ve=j[j.length-1];if(ge.slice(0,ve.length)!=ve)continue e;for(var ee=1,F=ie-j.length+1;ee<j.length-1;ee++)if(te(S.getLine(F+ee))!=j[ee])continue e;var He=S.getLine(ie+1-j.length),_e=te(He);if(_e.slice(_e.length-j[0].length)!=j[0])continue e;return{from:C(ie+1-j.length,V(He,_e,He.length-j[0].length,te)),to:C(ie,V(ce,ge,ve.length,te))}}}}function M(S,L,F,K){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=S,F=F?S.clipPos(F):C(0,0),this.pos={from:F,to:F};var te;typeof K=="object"?te=K.caseFold:(te=K,K=null),typeof L=="string"?(te==null&&(te=!1),this.matches=function(j,ie){return(j?J:T)(S,L,ie,te)}):(L=P(L,"gm"),!K||K.multiline!==!1?this.matches=function(j,ie){return(j?de:_)(S,L,ie)}:this.matches=function(j,ie){return(j?q:R)(S,L,ie)})}M.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(S){var L=this.doc.clipPos(S?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(L=C(L.line,L.ch),S?(L.ch--,L.ch<0&&(L.line--,L.ch=(this.doc.getLine(L.line)||"").length)):(L.ch++,L.ch>(this.doc.getLine(L.line)||"").length&&(L.ch=0,L.line++)),v.cmpPos(L,this.doc.clipPos(L))!=0))return this.atOccurrence=!1;var F=this.matches(S,L);if(this.afterEmptyMatch=F&&v.cmpPos(F.from,F.to)==0,F)return this.pos=F,this.atOccurrence=!0,this.pos.match||!0;var K=C(S?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:K,to:K},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(S,L){if(this.atOccurrence){var F=v.splitLines(S);this.doc.replaceRange(F,this.pos.from,this.pos.to,L),this.pos.to=C(this.pos.from.line+F.length-1,F[F.length-1].length+(F.length==1?this.pos.from.ch:0))}}},v.defineExtension("getSearchCursor",function(S,L,F){return new M(this.doc,S,L,F)}),v.defineDocExtension("getSearchCursor",function(S,L,F){return new M(this,S,L,F)}),v.defineExtension("selectMatches",function(S,L){for(var F=[],K=this.getSearchCursor(S,this.getCursor("from"),L);K.findNext()&&!(v.cmpPos(K.to(),this.getCursor("to"))>0);)F.push({anchor:K.from(),head:K.to()});F.length&&this.setSelections(F,0)})})},46944:function(x){(function(N,f){x.exports=f()})(this,function(){"use strict";var N=navigator.userAgent,f=navigator.platform,v=/gecko\/\d/i.test(N),C=/MSIE \d/.test(N),E=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(N),P=/Edge\/(\d+)/.exec(N),D=C||E||P,R=D&&(C?document.documentMode||6:+(P||E)[1]),_=!P&&/WebKit\//.test(N),Z=_&&/Qt\/\d+\.\d+/.test(N),q=!P&&/Chrome\/(\d+)/.exec(N),de=q&&+q[1],re=/Opera\//.test(N),se=/Apple Computer/.test(navigator.vendor),V=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(N),T=/PhantomJS/.test(N),J=se&&(/Mobile\/\w+/.test(N)||navigator.maxTouchPoints>2),M=/Android/.test(N),S=J||M||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(N),L=J||/Mac/.test(f),F=/\bCrOS\b/.test(N),K=/win/i.test(f),te=re&&N.match(/Version\/(\d*\.\d*)/);te&&(te=Number(te[1])),te&&te>=15&&(re=!1,_=!0);var j=L&&(Z||re&&(te==null||te<12.11)),ie=v||D&&R>=9;function H(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var Y=function(e,r){var a=e.className,o=H(r).exec(a);if(o){var l=a.slice(o.index+o[0].length);e.className=a.slice(0,o.index)+(l?o[1]+l:"")}};function ce(e){for(var r=e.childNodes.length;r>0;--r)e.removeChild(e.firstChild);return e}function ge(e,r){return ce(e).appendChild(r)}function G(e,r,a,o){var l=document.createElement(e);if(a&&(l.className=a),o&&(l.style.cssText=o),typeof r=="string")l.appendChild(document.createTextNode(r));else if(r)for(var d=0;d<r.length;++d)l.appendChild(r[d]);return l}function ve(e,r,a,o){var l=G(e,r,a,o);return l.setAttribute("role","presentation"),l}var ee;document.createRange?ee=function(e,r,a,o){var l=document.createRange();return l.setEnd(o||e,a),l.setStart(e,r),l}:ee=function(e,r,a){var o=document.body.createTextRange();try{o.moveToElementText(e.parentNode)}catch{return o}return o.collapse(!0),o.moveEnd("character",a),o.moveStart("character",r),o};function He(e,r){if(r.nodeType==3&&(r=r.parentNode),e.contains)return e.contains(r);do if(r.nodeType==11&&(r=r.host),r==e)return!0;while(r=r.parentNode)}function _e(e){var r;try{r=e.activeElement}catch{r=e.body||null}for(;r&&r.shadowRoot&&r.shadowRoot.activeElement;)r=r.shadowRoot.activeElement;return r}function ze(e,r){var a=e.className;H(r).test(a)||(e.className+=(a?" ":"")+r)}function ct(e,r){for(var a=e.split(" "),o=0;o<a.length;o++)a[o]&&!H(a[o]).test(r)&&(r+=" "+a[o]);return r}var ut=function(e){e.select()};J?ut=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:D&&(ut=function(e){try{e.select()}catch{}});function at(e){return e.display.wrapper.ownerDocument}function Gt(e){return at(e).defaultView}function dt(e){var r=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,r)}}function Ot(e,r,a){r||(r={});for(var o in e)e.hasOwnProperty(o)&&(a!==!1||!r.hasOwnProperty(o))&&(r[o]=e[o]);return r}function nt(e,r,a,o,l){r==null&&(r=e.search(/[^\s\u00a0]/),r==-1&&(r=e.length));for(var d=o||0,g=l||0;;){var b=e.indexOf(" ",d);if(b<0||b>=r)return g+(r-d);g+=b-d,g+=a-g%a,d=b+1}}var Ue=function(){this.id=null,this.f=null,this.time=0,this.handler=dt(this.onTimeout,this)};Ue.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},Ue.prototype.set=function(e,r){this.f=r;var a=+new Date+e;(!this.id||a<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=a)};function Fe(e,r){for(var a=0;a<e.length;++a)if(e[a]==r)return a;return-1}var Re=50,it={toString:function(){return"CodeMirror.Pass"}},Ft={scroll:!1},qe={origin:"*mouse"},St={origin:"+move"};function Kt(e,r,a){for(var o=0,l=0;;){var d=e.indexOf(" ",o);d==-1&&(d=e.length);var g=d-o;if(d==e.length||l+g>=r)return o+Math.min(g,r-l);if(l+=d-o,l+=a-l%a,o=d+1,l>=r)return o}}var Qt=[""];function hr(e){for(;Qt.length<=e;)Qt.push(Je(Qt)+" ");return Qt[e]}function Je(e){return e[e.length-1]}function xt(e,r){for(var a=[],o=0;o<e.length;o++)a[o]=r(e[o],o);return a}function It(e,r,a){for(var o=0,l=a(r);o<e.length&&a(e[o])<=l;)o++;e.splice(o,0,r)}function Or(){}function Rt(e,r){var a;return Object.create?a=Object.create(e):(Or.prototype=e,a=new Or),r&&Ot(r,a),a}var pn=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function vn(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||pn.test(e))}function Hr(e,r){return r?r.source.indexOf("\\w")>-1&&vn(e)?!0:r.test(e):vn(e)}function tn(e){for(var r in e)if(e.hasOwnProperty(r)&&e[r])return!1;return!0}var En=/[\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 gn(e){return e.charCodeAt(0)>=768&&En.test(e)}function Ur(e,r,a){for(;(a<0?r>0:r<e.length)&&gn(e.charAt(r));)r+=a;return r}function gr(e,r,a){for(var o=r>a?-1:1;;){if(r==a)return r;var l=(r+a)/2,d=o<0?Math.ceil(l):Math.floor(l);if(d==r)return e(d)?r:a;e(d)?a=d:r=d+o}}function Er(e,r,a,o){if(!e)return o(r,a,"ltr",0);for(var l=!1,d=0;d<e.length;++d){var g=e[d];(g.from<a&&g.to>r||r==a&&g.to==r)&&(o(Math.max(g.from,r),Math.min(g.to,a),g.level==1?"rtl":"ltr",d),l=!0)}l||o(r,a,"ltr")}var Bt=null;function mt(e,r,a){var o;Bt=null;for(var l=0;l<e.length;++l){var d=e[l];if(d.from<r&&d.to>r)return l;d.to==r&&(d.from!=d.to&&a=="before"?o=l:Bt=l),d.from==r&&(d.from!=d.to&&a!="before"?o=l:Bt=l)}return o??Bt}var st=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(O){return O<=247?e.charAt(O):1424<=O&&O<=1524?"R":1536<=O&&O<=1785?r.charAt(O-1536):1774<=O&&O<=2220?"r":8192<=O&&O<=8203?"w":O==8204?"b":"L"}var o=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,l=/[stwN]/,d=/[LRr]/,g=/[Lb1n]/,b=/[1n]/;function w(O,U,X){this.level=O,this.from=U,this.to=X}return function(O,U){var X=U=="ltr"?"L":"R";if(O.length==0||U=="ltr"&&!o.test(O))return!1;for(var he=O.length,le=[],xe=0;xe<he;++xe)le.push(a(O.charCodeAt(xe)));for(var Ce=0,Le=X;Ce<he;++Ce){var Me=le[Ce];Me=="m"?le[Ce]=Le:Le=Me}for(var Ee=0,De=X;Ee<he;++Ee){var We=le[Ee];We=="1"&&De=="r"?le[Ee]="n":d.test(We)&&(De=We,We=="r"&&(le[Ee]="R"))}for(var Ye=1,Ke=le[0];Ye<he-1;++Ye){var pt=le[Ye];pt=="+"&&Ke=="1"&&le[Ye+1]=="1"?le[Ye]="1":pt==","&&Ke==le[Ye+1]&&(Ke=="1"||Ke=="n")&&(le[Ye]=Ke),Ke=pt}for(var Tt=0;Tt<he;++Tt){var ar=le[Tt];if(ar==",")le[Tt]="N";else if(ar=="%"){var Ut=void 0;for(Ut=Tt+1;Ut<he&&le[Ut]=="%";++Ut);for(var Ze=Tt&&le[Tt-1]=="!"||Ut<he&&le[Ut]=="1"?"1":"N",Lr=Tt;Lr<Ut;++Lr)le[Lr]=Ze;Tt=Ut-1}}for(var Zt=0,Xt=X;Zt<he;++Zt){var Jt=le[Zt];Xt=="L"&&Jt=="1"?le[Zt]="L":d.test(Jt)&&(Xt=Jt)}for(var Nt=0;Nt<he;++Nt)if(l.test(le[Nt])){var zt=void 0;for(zt=Nt+1;zt<he&&l.test(le[zt]);++zt);for(var bt=(Nt?le[Nt-1]:X)=="L",qt=(zt<he?le[zt]:X)=="L",Xn=bt==qt?bt?"L":"R":X,cn=Nt;cn<zt;++cn)le[cn]=Xn;Nt=zt-1}for(var ir=[],$r,or=0;or<he;)if(g.test(le[or])){var bo=or;for(++or;or<he&&g.test(le[or]);++or);ir.push(new w(0,bo,or))}else{var Dn=or,xo=ir.length,hi=U=="rtl"?1:0;for(++or;or<he&&le[or]!="L";++or);for(var wr=Dn;wr<or;)if(b.test(le[wr])){Dn<wr&&(ir.splice(xo,0,new w(1,Dn,wr)),xo+=hi);var Jn=wr;for(++wr;wr<or&&b.test(le[wr]);++wr);ir.splice(xo,0,new w(2,Jn,wr)),xo+=hi,Dn=wr}else++wr;Dn<or&&ir.splice(xo,0,new w(1,Dn,or))}return U=="ltr"&&(ir[0].level==1&&($r=O.match(/^\s+/))&&(ir[0].from=$r[0].length,ir.unshift(new w(0,0,$r[0].length))),Je(ir).level==1&&($r=O.match(/\s+$/))&&(Je(ir).to-=$r[0].length,ir.push(new w(0,he-$r[0].length,he)))),U=="rtl"?ir.reverse():ir}}();function Qe(e,r){var a=e.order;return a==null&&(a=e.order=st(e.text,r)),a}var ht=[],ne=function(e,r,a){if(e.addEventListener)e.addEventListener(r,a,!1);else if(e.attachEvent)e.attachEvent("on"+r,a);else{var o=e._handlers||(e._handlers={});o[r]=(o[r]||ht).concat(a)}};function be(e,r){return e._handlers&&e._handlers[r]||ht}function je(e,r,a){if(e.removeEventListener)e.removeEventListener(r,a,!1);else if(e.detachEvent)e.detachEvent("on"+r,a);else{var o=e._handlers,l=o&&o[r];if(l){var d=Fe(l,a);d>-1&&(o[r]=l.slice(0,d).concat(l.slice(d+1)))}}}function et(e,r){var a=be(e,r);if(a.length)for(var o=Array.prototype.slice.call(arguments,2),l=0;l<a.length;++l)a[l].apply(null,o)}function ft(e,r,a){return typeof r=="string"&&(r={type:r,preventDefault:function(){this.defaultPrevented=!0}}),et(e,a||r.type,e,r),Bn(r)||r.codemirrorIgnore}function lt(e){var r=e._handlers&&e._handlers.cursorActivity;if(r)for(var a=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),o=0;o<r.length;++o)Fe(a,r[o])==-1&&a.push(r[o])}function _t(e,r){return be(e,r).length>0}function kr(e){e.prototype.on=function(r,a){ne(this,r,a)},e.prototype.off=function(r,a){je(this,r,a)}}function wt(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function er(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Bn(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function mr(e){wt(e),er(e)}function yr(e){return e.target||e.srcElement}function jn(e){var r=e.which;return r==null&&(e.button&1?r=1:e.button&2?r=3:e.button&4&&(r=2)),L&&e.ctrlKey&&r==1&&(r=3),r}var Tr=function(){if(D&&R<9)return!1;var e=G("div");return"draggable"in e||"dragDrop"in e}(),kn;function Tn(e){if(kn==null){var r=G("span","\u200B");ge(e,G("span",[r,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(kn=r.offsetWidth<=1&&r.offsetHeight>2&&!(D&&R<8))}var a=kn?G("span","\u200B"):G("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var br;function Wn(e){if(br!=null)return br;var r=ge(e,document.createTextNode("A\u062EA")),a=ee(r,0,1).getBoundingClientRect(),o=ee(r,1,2).getBoundingClientRect();return ce(e),!a||a.left==a.right?!1:br=o.right-a.right<3}var mn=`
14
-
15
- b`.split(/\n/).length!=3?function(e){for(var r=0,a=[],o=e.length;r<=o;){var l=e.indexOf(`
16
- `,r);l==-1&&(l=e.length);var d=e.slice(r,e.charAt(l-1)=="\r"?l-1:l),g=d.indexOf("\r");g!=-1?(a.push(d.slice(0,g)),r+=g+1):(a.push(d),r=l+1)}return a}:function(e){return e.split(/\r\n?|\n/)},ti=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var r;try{r=e.ownerDocument.selection.createRange()}catch{}return!r||r.parentElement()!=e?!1:r.compareEndPoints("StartToEnd",r)!=0},Ui=function(){var e=G("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Yr=null;function Mr(e){if(Yr!=null)return Yr;var r=ge(e,G("span","x")),a=r.getBoundingClientRect(),o=ee(r,0,1).getBoundingClientRect();return Yr=Math.abs(a.left-o.left)>1}var Xr={},zr={};function _r(e,r){arguments.length>2&&(r.dependencies=Array.prototype.slice.call(arguments,2)),Xr[e]=r}function Oo(e,r){zr[e]=r}function yn(e){if(typeof e=="string"&&zr.hasOwnProperty(e))e=zr[e];else if(e&&typeof e.name=="string"&&zr.hasOwnProperty(e.name)){var r=zr[e.name];typeof r=="string"&&(r={name:r}),e=Rt(r,e),e.name=r.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return yn("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return yn("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Nr(e,r){r=yn(r);var a=Xr[r.name];if(!a)return Nr(e,"text/plain");var o=a(e,r);if(tr.hasOwnProperty(r.name)){var l=tr[r.name];for(var d in l)l.hasOwnProperty(d)&&(o.hasOwnProperty(d)&&(o["_"+d]=o[d]),o[d]=l[d])}if(o.name=r.name,r.helperType&&(o.helperType=r.helperType),r.modeProps)for(var g in r.modeProps)o[g]=r.modeProps[g];return o}var tr={};function Pn(e,r){var a=tr.hasOwnProperty(e)?tr[e]:tr[e]={};Ot(r,a)}function rn(e,r){if(r===!0)return r;if(e.copyState)return e.copyState(r);var a={};for(var o in r){var l=r[o];l instanceof Array&&(l=l.concat([])),a[o]=l}return a}function zi(e,r){for(var a;e.innerMode&&(a=e.innerMode(r),!(!a||a.mode==e));)r=a.state,e=a.mode;return a||{mode:e,state:r}}function oa(e,r,a){return e.startState?e.startState(r,a):!0}var Ht=function(e,r,a){this.pos=this.start=0,this.string=e,this.tabSize=r||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=a};Ht.prototype.eol=function(){return this.pos>=this.string.length},Ht.prototype.sol=function(){return this.pos==this.lineStart},Ht.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ht.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ht.prototype.eat=function(e){var r=this.string.charAt(this.pos),a;if(typeof e=="string"?a=r==e:a=r&&(e.test?e.test(r):e(r)),a)return++this.pos,r},Ht.prototype.eatWhile=function(e){for(var r=this.pos;this.eat(e););return this.pos>r},Ht.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ht.prototype.skipToEnd=function(){this.pos=this.string.length},Ht.prototype.skipTo=function(e){var r=this.string.indexOf(e,this.pos);if(r>-1)return this.pos=r,!0},Ht.prototype.backUp=function(e){this.pos-=e},Ht.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=nt(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?nt(this.string,this.lineStart,this.tabSize):0)},Ht.prototype.indentation=function(){return nt(this.string,null,this.tabSize)-(this.lineStart?nt(this.string,this.lineStart,this.tabSize):0)},Ht.prototype.match=function(e,r,a){if(typeof e=="string"){var o=function(g){return a?g.toLowerCase():g},l=this.string.substr(this.pos,e.length);if(o(l)==o(e))return r!==!1&&(this.pos+=e.length),!0}else{var d=this.string.slice(this.pos).match(e);return d&&d.index>0?null:(d&&r!==!1&&(this.pos+=d[0].length),d)}},Ht.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ht.prototype.hideFirstChars=function(e,r){this.lineStart+=e;try{return r()}finally{this.lineStart-=e}},Ht.prototype.lookAhead=function(e){var r=this.lineOracle;return r&&r.lookAhead(e)},Ht.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Ve(e,r){if(r-=e.first,r<0||r>=e.size)throw new Error("There is no line "+(r+e.first)+" in the document.");for(var a=e;!a.lines;)for(var o=0;;++o){var l=a.children[o],d=l.chunkSize();if(r<d){a=l;break}r-=d}return a.lines[r]}function Hn(e,r,a){var o=[],l=r.line;return e.iter(r.line,a.line+1,function(d){var g=d.text;l==a.line&&(g=g.slice(0,a.ch)),l==r.line&&(g=g.slice(r.ch)),o.push(g),++l}),o}function gi(e,r,a){var o=[];return e.iter(r,a,function(l){o.push(l.text)}),o}function nn(e,r){var a=r-e.height;if(a)for(var o=e;o;o=o.parent)o.height+=a}function Ct(e){if(e.parent==null)return null;for(var r=e.parent,a=Fe(r.lines,e),o=r.parent;o;r=o,o=o.parent)for(var l=0;o.children[l]!=r;++l)a+=o.children[l].chunkSize();return a+r.first}function Un(e,r){var a=e.first;e:do{for(var o=0;o<e.children.length;++o){var l=e.children[o],d=l.height;if(r<d){e=l;continue e}r-=d,a+=l.chunkSize()}return a}while(!e.lines);for(var g=0;g<e.lines.length;++g){var b=e.lines[g],w=b.height;if(r<w)break;r-=w}return a+g}function mi(e,r){return r>=e.first&&r<e.first+e.size}function _i(e,r){return String(e.lineNumberFormatter(r+e.firstLineNumber))}function A(e,r,a){if(a===void 0&&(a=null),!(this instanceof A))return new A(e,r,a);this.line=e,this.ch=r,this.sticky=a}function z(e,r){return e.line-r.line||e.ch-r.ch}function Se(e,r){return e.sticky==r.sticky&&z(e,r)==0}function Pe(e){return A(e.line,e.ch)}function tt(e,r){return z(e,r)<0?r:e}function yt(e,r){return z(e,r)<0?e:r}function At(e,r){return Math.max(e.first,Math.min(r,e.first+e.size-1))}function $e(e,r){if(r.line<e.first)return A(e.first,0);var a=e.first+e.size-1;return r.line>a?A(a,Ve(e,a).text.length):on(r,Ve(e,r.line).text.length)}function on(e,r){var a=e.ch;return a==null||a>r?A(e.line,r):a<0?A(e.line,0):e}function Eo(e,r){for(var a=[],o=0;o<r.length;o++)a[o]=$e(e,r[o]);return a}var aa=function(e,r){this.state=e,this.lookAhead=r},Ln=function(e,r,a,o){this.state=r,this.doc=e,this.line=a,this.maxLookAhead=o||0,this.baseTokens=null,this.baseTokenPos=1};Ln.prototype.lookAhead=function(e){var r=this.doc.getLine(this.line+e);return r!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),r},Ln.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var r=this.baseTokens[this.baseTokenPos+1];return{type:r&&r.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Ln.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ln.fromSaved=function(e,r,a){return r instanceof aa?new Ln(e,rn(e.mode,r.state),a,r.lookAhead):new Ln(e,rn(e.mode,r),a)},Ln.prototype.save=function(e){var r=e!==!1?rn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new aa(r,this.maxLookAhead):r};function tl(e,r,a,o){var l=[e.state.modeGen],d={};nl(e,r.text,e.doc.mode,a,function(O,U){return l.push(O,U)},d,o);for(var g=a.state,b=function(O){a.baseTokens=l;var U=e.state.overlays[O],X=1,he=0;a.state=!0,nl(e,r.text,U.mode,a,function(le,xe){for(var Ce=X;he<le;){var Le=l[X];Le>le&&l.splice(X,1,le,l[X+1],Le),X+=2,he=Math.min(le,Le)}if(xe)if(U.opaque)l.splice(Ce,X-Ce,le,"overlay "+xe),X=Ce+2;else for(;Ce<X;Ce+=2){var Me=l[Ce+1];l[Ce+1]=(Me?Me+" ":"")+"overlay "+xe}},d),a.state=g,a.baseTokens=null,a.baseTokenPos=1},w=0;w<e.state.overlays.length;++w)b(w);return{styles:l,classes:d.bgClass||d.textClass?d:null}}function Za(e,r,a){if(!r.styles||r.styles[0]!=e.state.modeGen){var o=Vi(e,Ct(r)),l=r.text.length>e.options.maxHighlightLength&&rn(e.doc.mode,o.state),d=tl(e,r,o);l&&(o.state=l),r.stateAfter=o.save(!l),r.styles=d.styles,d.classes?r.styleClasses=d.classes:r.styleClasses&&(r.styleClasses=null),a===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return r.styles}function Vi(e,r,a){var o=e.doc,l=e.display;if(!o.mode.startState)return new Ln(o,!0,r);var d=Yu(e,r,a),g=d>o.first&&Ve(o,d-1).stateAfter,b=g?Ln.fromSaved(o,g,d):new Ln(o,oa(o.mode),d);return o.iter(d,r,function(w){sa(e,w.text,b);var O=b.line;w.stateAfter=O==r-1||O%5==0||O>=l.viewFrom&&O<l.viewTo?b.save():null,b.nextLine()}),a&&(o.modeFrontier=b.line),b}function sa(e,r,a,o){var l=e.doc.mode,d=new Ht(r,e.options.tabSize,a);for(d.start=d.pos=o||0,r==""&&bn(l,a.state);!d.eol();)zn(l,d,a.state),d.start=d.pos}function bn(e,r){if(e.blankLine)return e.blankLine(r);if(e.innerMode){var a=zi(e,r);if(a.mode.blankLine)return a.mode.blankLine(a.state)}}function zn(e,r,a,o){for(var l=0;l<10;l++){o&&(o[0]=zi(e,a).mode);var d=e.token(r,a);if(r.pos>r.start)return d}throw new Error("Mode "+e.name+" failed to advance stream.")}var Dr=function(e,r,a){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=r||null,this.state=a};function yi(e,r,a,o){var l=e.doc,d=l.mode,g;r=$e(l,r);var b=Ve(l,r.line),w=Vi(e,r.line,a),O=new Ht(b.text,e.options.tabSize,w),U;for(o&&(U=[]);(o||O.pos<r.ch)&&!O.eol();)O.start=O.pos,g=zn(d,O,w.state),o&&U.push(new Dr(O,g,rn(l.mode,w.state)));return o?U:new Dr(O,g,w.state)}function rl(e,r){if(e)for(;;){var a=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!a)break;e=e.slice(0,a.index)+e.slice(a.index+a[0].length);var o=a[1]?"bgClass":"textClass";r[o]==null?r[o]=a[2]:new RegExp("(?:^|\\s)"+a[2]+"(?:$|\\s)").test(r[o])||(r[o]+=" "+a[2])}return e}function nl(e,r,a,o,l,d,g){var b=a.flattenSpans;b==null&&(b=e.options.flattenSpans);var w=0,O=null,U=new Ht(r,e.options.tabSize,o),X,he=e.options.addModeClass&&[null];for(r==""&&rl(bn(a,o.state),d);!U.eol();){if(U.pos>e.options.maxHighlightLength?(b=!1,g&&sa(e,r,o,U.pos),U.pos=r.length,X=null):X=rl(zn(a,U,o.state,he),d),he){var le=he[0].name;le&&(X="m-"+(X?le+" "+X:le))}if(!b||O!=X){for(;w<U.start;)w=Math.min(U.start,w+5e3),l(w,O);O=X}U.start=U.pos}for(;w<U.pos;){var xe=Math.min(U.pos,w+5e3);l(xe,O),w=xe}}function Yu(e,r,a){for(var o,l,d=e.doc,g=a?-1:r-(e.doc.mode.innerMode?1e3:100),b=r;b>g;--b){if(b<=d.first)return d.first;var w=Ve(d,b-1),O=w.stateAfter;if(O&&(!a||b+(O instanceof aa?O.lookAhead:0)<=d.modeFrontier))return b;var U=nt(w.text,null,e.options.tabSize);(l==null||o>U)&&(l=b-1,o=U)}return l}function il(e,r){if(e.modeFrontier=Math.min(e.modeFrontier,r),!(e.highlightFrontier<r-10)){for(var a=e.first,o=r-1;o>a;o--){var l=Ve(e,o).stateAfter;if(l&&(!(l instanceof aa)||o+l.lookAhead<r)){a=o+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,a)}}var ol=!1,In=!1;function al(){ol=!0}function $i(){In=!0}function la(e,r,a){this.marker=e,this.from=r,this.to=a}function Gi(e,r){if(e)for(var a=0;a<e.length;++a){var o=e[a];if(o.marker==r)return o}}function Xe(e,r){for(var a,o=0;o<e.length;++o)e[o]!=r&&(a||(a=[])).push(e[o]);return a}function ua(e,r,a){var o=a&&window.WeakSet&&(a.markedSpans||(a.markedSpans=new WeakSet));o&&e.markedSpans&&o.has(e.markedSpans)?e.markedSpans.push(r):(e.markedSpans=e.markedSpans?e.markedSpans.concat([r]):[r],o&&o.add(e.markedSpans)),r.marker.attachLine(e)}function sl(e,r,a){var o;if(e)for(var l=0;l<e.length;++l){var d=e[l],g=d.marker,b=d.from==null||(g.inclusiveLeft?d.from<=r:d.from<r);if(b||d.from==r&&g.type=="bookmark"&&(!a||!d.marker.insertLeft)){var w=d.to==null||(g.inclusiveRight?d.to>=r:d.to>r);(o||(o=[])).push(new la(g,d.from,w?null:d.to))}}return o}function ri(e,r,a){var o;if(e)for(var l=0;l<e.length;++l){var d=e[l],g=d.marker,b=d.to==null||(g.inclusiveRight?d.to>=r:d.to>r);if(b||d.from==r&&g.type=="bookmark"&&(!a||d.marker.insertLeft)){var w=d.from==null||(g.inclusiveLeft?d.from<=r:d.from<r);(o||(o=[])).push(new la(g,w?null:d.from-r,d.to==null?null:d.to-r))}}return o}function fa(e,r){if(r.full)return null;var a=mi(e,r.from.line)&&Ve(e,r.from.line).markedSpans,o=mi(e,r.to.line)&&Ve(e,r.to.line).markedSpans;if(!a&&!o)return null;var l=r.from.ch,d=r.to.ch,g=z(r.from,r.to)==0,b=sl(a,l,g),w=ri(o,d,g),O=r.text.length==1,U=Je(r.text).length+(O?l:0);if(b)for(var X=0;X<b.length;++X){var he=b[X];if(he.to==null){var le=Gi(w,he.marker);le?O&&(he.to=le.to==null?null:le.to+U):he.to=l}}if(w)for(var xe=0;xe<w.length;++xe){var Ce=w[xe];if(Ce.to!=null&&(Ce.to+=U),Ce.from==null){var Le=Gi(b,Ce.marker);Le||(Ce.from=U,O&&(b||(b=[])).push(Ce))}else Ce.from+=U,O&&(b||(b=[])).push(Ce)}b&&(b=bi(b)),w&&w!=b&&(w=bi(w));var Me=[b];if(!O){var Ee=r.text.length-2,De;if(Ee>0&&b)for(var We=0;We<b.length;++We)b[We].to==null&&(De||(De=[])).push(new la(b[We].marker,null,null));for(var Ye=0;Ye<Ee;++Ye)Me.push(De);Me.push(w)}return Me}function bi(e){for(var r=0;r<e.length;++r){var a=e[r];a.from!=null&&a.from==a.to&&a.marker.clearWhenEmpty!==!1&&e.splice(r--,1)}return e.length?e:null}function qa(e,r,a){var o=null;if(e.iter(r.line,a.line+1,function(le){if(le.markedSpans)for(var xe=0;xe<le.markedSpans.length;++xe){var Ce=le.markedSpans[xe].marker;Ce.readOnly&&(!o||Fe(o,Ce)==-1)&&(o||(o=[])).push(Ce)}}),!o)return null;for(var l=[{from:r,to:a}],d=0;d<o.length;++d)for(var g=o[d],b=g.find(0),w=0;w<l.length;++w){var O=l[w];if(!(z(O.to,b.from)<0||z(O.from,b.to)>0)){var U=[w,1],X=z(O.from,b.from),he=z(O.to,b.to);(X<0||!g.inclusiveLeft&&!X)&&U.push({from:O.from,to:b.from}),(he>0||!g.inclusiveRight&&!he)&&U.push({from:b.to,to:O.to}),l.splice.apply(l,U),w+=U.length-3}}return l}function rr(e){var r=e.markedSpans;if(r){for(var a=0;a<r.length;++a)r[a].marker.detachLine(e);e.markedSpans=null}}function ko(e,r){if(r){for(var a=0;a<r.length;++a)r[a].marker.attachLine(e);e.markedSpans=r}}function Ki(e){return e.inclusiveLeft?-1:0}function ca(e){return e.inclusiveRight?1:0}function es(e,r){var a=e.lines.length-r.lines.length;if(a!=0)return a;var o=e.find(),l=r.find(),d=z(o.from,l.from)||Ki(e)-Ki(r);if(d)return-d;var g=z(o.to,l.to)||ca(e)-ca(r);return g||r.id-e.id}function ll(e,r){var a=In&&e.markedSpans,o;if(a)for(var l=void 0,d=0;d<a.length;++d)l=a[d],l.marker.collapsed&&(r?l.from:l.to)==null&&(!o||es(o,l.marker)<0)&&(o=l.marker);return o}function ul(e){return ll(e,!0)}function da(e){return ll(e,!1)}function fl(e,r){var a=In&&e.markedSpans,o;if(a)for(var l=0;l<a.length;++l){var d=a[l];d.marker.collapsed&&(d.from==null||d.from<r)&&(d.to==null||d.to>r)&&(!o||es(o,d.marker)<0)&&(o=d.marker)}return o}function cl(e,r,a,o,l){var d=Ve(e,r),g=In&&d.markedSpans;if(g)for(var b=0;b<g.length;++b){var w=g[b];if(w.marker.collapsed){var O=w.marker.find(0),U=z(O.from,a)||Ki(w.marker)-Ki(l),X=z(O.to,o)||ca(w.marker)-ca(l);if(!(U>=0&&X<=0||U<=0&&X>=0)&&(U<=0&&(w.marker.inclusiveRight&&l.inclusiveLeft?z(O.to,a)>=0:z(O.to,a)>0)||U>=0&&(w.marker.inclusiveRight&&l.inclusiveLeft?z(O.from,o)<=0:z(O.from,o)<0)))return!0}}}function xn(e){for(var r;r=ul(e);)e=r.find(-1,!0).line;return e}function Xu(e){for(var r;r=da(e);)e=r.find(1,!0).line;return e}function Ju(e){for(var r,a;r=da(e);)e=r.find(1,!0).line,(a||(a=[])).push(e);return a}function ni(e,r){var a=Ve(e,r),o=xn(a);return a==o?r:Ct(o)}function dl(e,r){if(r>e.lastLine())return r;var a=Ve(e,r),o;if(!_n(e,a))return r;for(;o=da(a);)a=o.find(1,!0).line;return Ct(a)+1}function _n(e,r){var a=In&&r.markedSpans;if(a){for(var o=void 0,l=0;l<a.length;++l)if(o=a[l],!!o.marker.collapsed){if(o.from==null)return!0;if(!o.marker.widgetNode&&o.from==0&&o.marker.inclusiveLeft&&ts(e,r,o))return!0}}}function ts(e,r,a){if(a.to==null){var o=a.marker.find(1,!0);return ts(e,o.line,Gi(o.line.markedSpans,a.marker))}if(a.marker.inclusiveRight&&a.to==r.text.length)return!0;for(var l=void 0,d=0;d<r.markedSpans.length;++d)if(l=r.markedSpans[d],l.marker.collapsed&&!l.marker.widgetNode&&l.from==a.to&&(l.to==null||l.to!=a.from)&&(l.marker.inclusiveLeft||a.marker.inclusiveRight)&&ts(e,r,l))return!0}function Vn(e){e=xn(e);for(var r=0,a=e.parent,o=0;o<a.lines.length;++o){var l=a.lines[o];if(l==e)break;r+=l.height}for(var d=a.parent;d;a=d,d=a.parent)for(var g=0;g<d.children.length;++g){var b=d.children[g];if(b==a)break;r+=b.height}return r}function ha(e){if(e.height==0)return 0;for(var r=e.text.length,a,o=e;a=ul(o);){var l=a.find(0,!0);o=l.from.line,r+=l.from.ch-l.to.ch}for(o=e;a=da(o);){var d=a.find(0,!0);r-=o.text.length-d.from.ch,o=d.to.line,r+=o.text.length-d.to.ch}return r}function rs(e){var r=e.display,a=e.doc;r.maxLine=Ve(a,a.first),r.maxLineLength=ha(r.maxLine),r.maxLineChanged=!0,a.iter(function(o){var l=ha(o);l>r.maxLineLength&&(r.maxLineLength=l,r.maxLine=o)})}var xi=function(e,r,a){this.text=e,ko(this,r),this.height=a?a(this):1};xi.prototype.lineNo=function(){return Ct(this)},kr(xi);function hl(e,r,a,o){e.text=r,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),rr(e),ko(e,a);var l=o?o(e):1;l!=e.height&&nn(e,l)}function pl(e){e.parent=null,rr(e)}var ns={},Qu={};function Yi(e,r){if(!e||/^\s*$/.test(e))return null;var a=r.addModeClass?Qu:ns;return a[e]||(a[e]=e.replace(/\S+/g,"cm-$&"))}function vl(e,r){var a=ve("span",null,null,_?"padding-right: .1px":null),o={pre:ve("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};r.measure={};for(var l=0;l<=(r.rest?r.rest.length:0);l++){var d=l?r.rest[l-1]:r.line,g=void 0;o.pos=0,o.addToken=qu,Wn(e.display.measure)&&(g=Qe(d,e.doc.direction))&&(o.addToken=is(o.addToken,g)),o.map=[];var b=r!=e.display.externalMeasured&&Ct(d);tf(d,o,Za(e,d,b)),d.styleClasses&&(d.styleClasses.bgClass&&(o.bgClass=ct(d.styleClasses.bgClass,o.bgClass||"")),d.styleClasses.textClass&&(o.textClass=ct(d.styleClasses.textClass,o.textClass||""))),o.map.length==0&&o.map.push(0,0,o.content.appendChild(Tn(e.display.measure))),l==0?(r.measure.map=o.map,r.measure.cache={}):((r.measure.maps||(r.measure.maps=[])).push(o.map),(r.measure.caches||(r.measure.caches=[])).push({}))}if(_){var w=o.content.lastChild;(/\bcm-tab\b/.test(w.className)||w.querySelector&&w.querySelector(".cm-tab"))&&(o.content.className="cm-tab-wrap-hack")}return et(e,"renderLine",e,r.line,o.pre),o.pre.className&&(o.textClass=ct(o.pre.className,o.textClass||"")),o}function Zu(e){var r=G("span","\u2022","cm-invalidchar");return r.title="\\u"+e.charCodeAt(0).toString(16),r.setAttribute("aria-label",r.title),r}function qu(e,r,a,o,l,d,g){if(r){var b=e.splitSpaces?ef(r,e.trailingSpace):r,w=e.cm.state.specialChars,O=!1,U;if(!w.test(r))e.col+=r.length,U=document.createTextNode(b),e.map.push(e.pos,e.pos+r.length,U),D&&R<9&&(O=!0),e.pos+=r.length;else{U=document.createDocumentFragment();for(var X=0;;){w.lastIndex=X;var he=w.exec(r),le=he?he.index-X:r.length-X;if(le){var xe=document.createTextNode(b.slice(X,X+le));D&&R<9?U.appendChild(G("span",[xe])):U.appendChild(xe),e.map.push(e.pos,e.pos+le,xe),e.col+=le,e.pos+=le}if(!he)break;X+=le+1;var Ce=void 0;if(he[0]==" "){var Le=e.cm.options.tabSize,Me=Le-e.col%Le;Ce=U.appendChild(G("span",hr(Me),"cm-tab")),Ce.setAttribute("role","presentation"),Ce.setAttribute("cm-text"," "),e.col+=Me}else he[0]=="\r"||he[0]==`
17
- `?(Ce=U.appendChild(G("span",he[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ce.setAttribute("cm-text",he[0]),e.col+=1):(Ce=e.cm.options.specialCharPlaceholder(he[0]),Ce.setAttribute("cm-text",he[0]),D&&R<9?U.appendChild(G("span",[Ce])):U.appendChild(Ce),e.col+=1);e.map.push(e.pos,e.pos+1,Ce),e.pos++}}if(e.trailingSpace=b.charCodeAt(r.length-1)==32,a||o||l||O||d||g){var Ee=a||"";o&&(Ee+=o),l&&(Ee+=l);var De=G("span",[U],Ee,d);if(g)for(var We in g)g.hasOwnProperty(We)&&We!="style"&&We!="class"&&De.setAttribute(We,g[We]);return e.content.appendChild(De)}e.content.appendChild(U)}}function ef(e,r){if(e.length>1&&!/ /.test(e))return e;for(var a=r,o="",l=0;l<e.length;l++){var d=e.charAt(l);d==" "&&a&&(l==e.length-1||e.charCodeAt(l+1)==32)&&(d="\xA0"),o+=d,a=d==" "}return o}function is(e,r){return function(a,o,l,d,g,b,w){l=l?l+" cm-force-border":"cm-force-border";for(var O=a.pos,U=O+o.length;;){for(var X=void 0,he=0;he<r.length&&(X=r[he],!(X.to>O&&X.from<=O));he++);if(X.to>=U)return e(a,o,l,d,g,b,w);e(a,o.slice(0,X.to-O),l,d,null,b,w),d=null,o=o.slice(X.to-O),O=X.to}}}function gl(e,r,a,o){var l=!o&&a.widgetNode;l&&e.map.push(e.pos,e.pos+r,l),!o&&e.cm.display.input.needsContentAttribute&&(l||(l=e.content.appendChild(document.createElement("span"))),l.setAttribute("cm-marker",a.id)),l&&(e.cm.display.input.setUneditable(l),e.content.appendChild(l)),e.pos+=r,e.trailingSpace=!1}function tf(e,r,a){var o=e.markedSpans,l=e.text,d=0;if(!o){for(var g=1;g<a.length;g+=2)r.addToken(r,l.slice(d,d=a[g]),Yi(a[g+1],r.cm.options));return}for(var b=l.length,w=0,O=1,U="",X,he,le=0,xe,Ce,Le,Me,Ee;;){if(le==w){xe=Ce=Le=he="",Ee=null,Me=null,le=1/0;for(var De=[],We=void 0,Ye=0;Ye<o.length;++Ye){var Ke=o[Ye],pt=Ke.marker;if(pt.type=="bookmark"&&Ke.from==w&&pt.widgetNode)De.push(pt);else if(Ke.from<=w&&(Ke.to==null||Ke.to>w||pt.collapsed&&Ke.to==w&&Ke.from==w)){if(Ke.to!=null&&Ke.to!=w&&le>Ke.to&&(le=Ke.to,Ce=""),pt.className&&(xe+=" "+pt.className),pt.css&&(he=(he?he+";":"")+pt.css),pt.startStyle&&Ke.from==w&&(Le+=" "+pt.startStyle),pt.endStyle&&Ke.to==le&&(We||(We=[])).push(pt.endStyle,Ke.to),pt.title&&((Ee||(Ee={})).title=pt.title),pt.attributes)for(var Tt in pt.attributes)(Ee||(Ee={}))[Tt]=pt.attributes[Tt];pt.collapsed&&(!Me||es(Me.marker,pt)<0)&&(Me=Ke)}else Ke.from>w&&le>Ke.from&&(le=Ke.from)}if(We)for(var ar=0;ar<We.length;ar+=2)We[ar+1]==le&&(Ce+=" "+We[ar]);if(!Me||Me.from==w)for(var Ut=0;Ut<De.length;++Ut)gl(r,0,De[Ut]);if(Me&&(Me.from||0)==w){if(gl(r,(Me.to==null?b+1:Me.to)-w,Me.marker,Me.from==null),Me.to==null)return;Me.to==w&&(Me=!1)}}if(w>=b)break;for(var Ze=Math.min(b,le);;){if(U){var Lr=w+U.length;if(!Me){var Zt=Lr>Ze?U.slice(0,Ze-w):U;r.addToken(r,Zt,X?X+xe:xe,Le,w+Zt.length==le?Ce:"",he,Ee)}if(Lr>=Ze){U=U.slice(Ze-w),w=Ze;break}w=Lr,Le=""}U=l.slice(d,d=a[O++]),X=Yi(a[O++],r.cm.options)}}}function ml(e,r,a){this.line=r,this.rest=Ju(r),this.size=this.rest?Ct(Je(this.rest))-a+1:1,this.node=this.text=null,this.hidden=_n(e,r)}function pa(e,r,a){for(var o=[],l,d=r;d<a;d=l){var g=new ml(e.doc,Ve(e.doc,d),d);l=d+g.size,o.push(g)}return o}var Si=null;function rf(e){Si?Si.ops.push(e):e.ownsGroup=Si={ops:[e],delayedCallbacks:[]}}function va(e){var r=e.delayedCallbacks,a=0;do{for(;a<r.length;a++)r[a].call(null);for(var o=0;o<e.ops.length;o++){var l=e.ops[o];if(l.cursorActivityHandlers)for(;l.cursorActivityCalled<l.cursorActivityHandlers.length;)l.cursorActivityHandlers[l.cursorActivityCalled++].call(null,l.cm)}}while(a<r.length)}function nf(e,r){var a=e.ownsGroup;if(a)try{va(a)}finally{Si=null,r(a)}}var To=null;function sr(e,r){var a=be(e,r);if(a.length){var o=Array.prototype.slice.call(arguments,2),l;Si?l=Si.delayedCallbacks:To?l=To:(l=To=[],setTimeout(of,0));for(var d=function(b){l.push(function(){return a[b].apply(null,o)})},g=0;g<a.length;++g)d(g)}}function of(){var e=To;To=null;for(var r=0;r<e.length;++r)e[r]()}function os(e,r,a,o){for(var l=0;l<r.changes.length;l++){var d=r.changes[l];d=="text"?sf(e,r):d=="gutter"?xr(e,r,a,o):d=="class"?ga(e,r):d=="widget"&&lf(e,r,o)}r.changes=null}function Xi(e){return e.node==e.text&&(e.node=G("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),D&&R<8&&(e.node.style.zIndex=2)),e.node}function af(e,r){var a=r.bgClass?r.bgClass+" "+(r.line.bgClass||""):r.line.bgClass;if(a&&(a+=" CodeMirror-linebackground"),r.background)a?r.background.className=a:(r.background.parentNode.removeChild(r.background),r.background=null);else if(a){var o=Xi(r);r.background=o.insertBefore(G("div",null,a),o.firstChild),e.display.input.setUneditable(r.background)}}function as(e,r){var a=e.display.externalMeasured;return a&&a.line==r.line?(e.display.externalMeasured=null,r.measure=a.measure,a.built):vl(e,r)}function sf(e,r){var a=r.text.className,o=as(e,r);r.text==r.node&&(r.node=o.pre),r.text.parentNode.replaceChild(o.pre,r.text),r.text=o.pre,o.bgClass!=r.bgClass||o.textClass!=r.textClass?(r.bgClass=o.bgClass,r.textClass=o.textClass,ga(e,r)):a&&(r.text.className=a)}function ga(e,r){af(e,r),r.line.wrapClass?Xi(r).className=r.line.wrapClass:r.node!=r.text&&(r.node.className="");var a=r.textClass?r.textClass+" "+(r.line.textClass||""):r.line.textClass;r.text.className=a||""}function xr(e,r,a,o){if(r.gutter&&(r.node.removeChild(r.gutter),r.gutter=null),r.gutterBackground&&(r.node.removeChild(r.gutterBackground),r.gutterBackground=null),r.line.gutterClass){var l=Xi(r);r.gutterBackground=G("div",null,"CodeMirror-gutter-background "+r.line.gutterClass,"left: "+(e.options.fixedGutter?o.fixedPos:-o.gutterTotalWidth)+"px; width: "+o.gutterTotalWidth+"px"),e.display.input.setUneditable(r.gutterBackground),l.insertBefore(r.gutterBackground,r.text)}var d=r.line.gutterMarkers;if(e.options.lineNumbers||d){var g=Xi(r),b=r.gutter=G("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?o.fixedPos:-o.gutterTotalWidth)+"px");if(b.setAttribute("aria-hidden","true"),e.display.input.setUneditable(b),g.insertBefore(b,r.text),r.line.gutterClass&&(b.className+=" "+r.line.gutterClass),e.options.lineNumbers&&(!d||!d["CodeMirror-linenumbers"])&&(r.lineNumber=b.appendChild(G("div",_i(e.options,a),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+o.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),d)for(var w=0;w<e.display.gutterSpecs.length;++w){var O=e.display.gutterSpecs[w].className,U=d.hasOwnProperty(O)&&d[O];U&&b.appendChild(G("div",[U],"CodeMirror-gutter-elt","left: "+o.gutterLeft[O]+"px; width: "+o.gutterWidth[O]+"px"))}}}function lf(e,r,a){r.alignable&&(r.alignable=null);for(var o=H("CodeMirror-linewidget"),l=r.node.firstChild,d=void 0;l;l=d)d=l.nextSibling,o.test(l.className)&&r.node.removeChild(l);yl(e,r,a)}function uf(e,r,a,o){var l=as(e,r);return r.text=r.node=l.pre,l.bgClass&&(r.bgClass=l.bgClass),l.textClass&&(r.textClass=l.textClass),ga(e,r),xr(e,r,a,o),yl(e,r,o),r.node}function yl(e,r,a){if(bl(e,r.line,r,a,!0),r.rest)for(var o=0;o<r.rest.length;o++)bl(e,r.rest[o],r,a,!1)}function bl(e,r,a,o,l){if(r.widgets)for(var d=Xi(a),g=0,b=r.widgets;g<b.length;++g){var w=b[g],O=G("div",[w.node],"CodeMirror-linewidget"+(w.className?" "+w.className:""));w.handleMouseEvents||O.setAttribute("cm-ignore-events","true"),ff(w,O,a,o),e.display.input.setUneditable(O),l&&w.above?d.insertBefore(O,a.gutter||a.text):d.appendChild(O),sr(w,"redraw")}}function ff(e,r,a,o){if(e.noHScroll){(a.alignable||(a.alignable=[])).push(r);var l=o.wrapperWidth;r.style.left=o.fixedPos+"px",e.coverGutter||(l-=o.gutterTotalWidth,r.style.paddingLeft=o.gutterTotalWidth+"px"),r.style.width=l+"px"}e.coverGutter&&(r.style.zIndex=5,r.style.position="relative",e.noHScroll||(r.style.marginLeft=-o.gutterTotalWidth+"px"))}function $n(e){if(e.height!=null)return e.height;var r=e.doc.cm;if(!r)return 0;if(!He(document.body,e.node)){var a="position: relative;";e.coverGutter&&(a+="margin-left: -"+r.display.gutters.offsetWidth+"px;"),e.noHScroll&&(a+="width: "+r.display.wrapper.clientWidth+"px;"),ge(r.display.measure,G("div",[e.node],null,a))}return e.height=e.node.parentNode.offsetHeight}function Gn(e,r){for(var a=yr(r);a!=e.wrapper;a=a.parentNode)if(!a||a.nodeType==1&&a.getAttribute("cm-ignore-events")=="true"||a.parentNode==e.sizer&&a!=e.mover)return!0}function Po(e){return e.lineSpace.offsetTop}function Lo(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function xl(e){if(e.cachedPaddingH)return e.cachedPaddingH;var r=ge(e.measure,G("pre","x","CodeMirror-line-like")),a=window.getComputedStyle?window.getComputedStyle(r):r.currentStyle,o={left:parseInt(a.paddingLeft),right:parseInt(a.paddingRight)};return!isNaN(o.left)&&!isNaN(o.right)&&(e.cachedPaddingH=o),o}function Jr(e){return Re-e.display.nativeBarWidth}function Sn(e){return e.display.scroller.clientWidth-Jr(e)-e.display.barWidth}function ma(e){return e.display.scroller.clientHeight-Jr(e)-e.display.barHeight}function Sl(e,r,a){var o=e.options.lineWrapping,l=o&&Sn(e);if(!r.measure.heights||o&&r.measure.width!=l){var d=r.measure.heights=[];if(o){r.measure.width=l;for(var g=r.text.firstChild.getClientRects(),b=0;b<g.length-1;b++){var w=g[b],O=g[b+1];Math.abs(w.bottom-O.bottom)>2&&d.push((w.bottom+O.top)/2-a.top)}}d.push(a.bottom-a.top)}}function wl(e,r,a){if(e.line==r)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var o=0;o<e.rest.length;o++)if(e.rest[o]==r)return{map:e.measure.maps[o],cache:e.measure.caches[o]};for(var l=0;l<e.rest.length;l++)if(Ct(e.rest[l])>a)return{map:e.measure.maps[l],cache:e.measure.caches[l],before:!0}}}function cf(e,r){r=xn(r);var a=Ct(r),o=e.display.externalMeasured=new ml(e.doc,r,a);o.lineN=a;var l=o.built=vl(e,o);return o.text=l.pre,ge(e.display.lineMeasure,l.pre),o}function Ji(e,r,a,o){return an(e,wi(e,r),a,o)}function ya(e,r){if(r>=e.display.viewFrom&&r<e.display.viewTo)return e.display.view[Oi(e,r)];var a=e.display.externalMeasured;if(a&&r>=a.lineN&&r<a.lineN+a.size)return a}function wi(e,r){var a=Ct(r),o=ya(e,a);o&&!o.text?o=null:o&&o.changes&&(os(e,o,a,gs(e)),e.curOp.forceUpdate=!0),o||(o=cf(e,r));var l=wl(o,r,a);return{line:r,view:o,rect:null,map:l.map,cache:l.cache,before:l.before,hasHeights:!1}}function an(e,r,a,o,l){r.before&&(a=-1);var d=a+(o||""),g;return r.cache.hasOwnProperty(d)?g=r.cache[d]:(r.rect||(r.rect=r.view.text.getBoundingClientRect()),r.hasHeights||(Sl(e,r.view,r.rect),r.hasHeights=!0),g=df(e,r,a,o),g.bogus||(r.cache[d]=g)),{left:g.left,right:g.right,top:l?g.rtop:g.top,bottom:l?g.rbottom:g.bottom}}var ss={left:0,right:0,top:0,bottom:0};function ls(e,r,a){for(var o,l,d,g,b,w,O=0;O<e.length;O+=3)if(b=e[O],w=e[O+1],r<b?(l=0,d=1,g="left"):r<w?(l=r-b,d=l+1):(O==e.length-3||r==w&&e[O+3]>r)&&(d=w-b,l=d-1,r>=w&&(g="right")),l!=null){if(o=e[O+2],b==w&&a==(o.insertLeft?"left":"right")&&(g=a),a=="left"&&l==0)for(;O&&e[O-2]==e[O-3]&&e[O-1].insertLeft;)o=e[(O-=3)+2],g="left";if(a=="right"&&l==w-b)for(;O<e.length-3&&e[O+3]==e[O+4]&&!e[O+5].insertLeft;)o=e[(O+=3)+2],g="right";break}return{node:o,start:l,end:d,collapse:g,coverStart:b,coverEnd:w}}function Qi(e,r){var a=ss;if(r=="left")for(var o=0;o<e.length&&(a=e[o]).left==a.right;o++);else for(var l=e.length-1;l>=0&&(a=e[l]).left==a.right;l--);return a}function df(e,r,a,o){var l=ls(r.map,a,o),d=l.node,g=l.start,b=l.end,w=l.collapse,O;if(d.nodeType==3){for(var U=0;U<4;U++){for(;g&&gn(r.line.text.charAt(l.coverStart+g));)--g;for(;l.coverStart+b<l.coverEnd&&gn(r.line.text.charAt(l.coverStart+b));)++b;if(D&&R<9&&g==0&&b==l.coverEnd-l.coverStart?O=d.parentNode.getBoundingClientRect():O=Qi(ee(d,g,b).getClientRects(),o),O.left||O.right||g==0)break;b=g,g=g-1,w="right"}D&&R<11&&(O=hf(e.display.measure,O))}else{g>0&&(w=o="right");var X;e.options.lineWrapping&&(X=d.getClientRects()).length>1?O=X[o=="right"?X.length-1:0]:O=d.getBoundingClientRect()}if(D&&R<9&&!g&&(!O||!O.left&&!O.right)){var he=d.parentNode.getClientRects()[0];he?O={left:he.left,right:he.left+qi(e.display),top:he.top,bottom:he.bottom}:O=ss}for(var le=O.top-r.rect.top,xe=O.bottom-r.rect.top,Ce=(le+xe)/2,Le=r.view.measure.heights,Me=0;Me<Le.length-1&&!(Ce<Le[Me]);Me++);var Ee=Me?Le[Me-1]:0,De=Le[Me],We={left:(w=="right"?O.right:O.left)-r.rect.left,right:(w=="left"?O.left:O.right)-r.rect.left,top:Ee,bottom:De};return!O.left&&!O.right&&(We.bogus=!0),e.options.singleCursorHeightPerLine||(We.rtop=le,We.rbottom=xe),We}function hf(e,r){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Mr(e))return r;var a=screen.logicalXDPI/screen.deviceXDPI,o=screen.logicalYDPI/screen.deviceYDPI;return{left:r.left*a,right:r.right*a,top:r.top*o,bottom:r.bottom*o}}function us(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var r=0;r<e.rest.length;r++)e.measure.caches[r]={}}function fs(e){e.display.externalMeasure=null,ce(e.display.lineMeasure);for(var r=0;r<e.display.view.length;r++)us(e.display.view[r])}function Io(e){fs(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function cs(e){return q&&M?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function Cl(e){return q&&M?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function ds(e){var r=xn(e),a=r.widgets,o=0;if(a)for(var l=0;l<a.length;++l)a[l].above&&(o+=$n(a[l]));return o}function Mo(e,r,a,o,l){if(!l){var d=ds(r);a.top+=d,a.bottom+=d}if(o=="line")return a;o||(o="local");var g=Vn(r);if(o=="local"?g+=Po(e.display):g-=e.display.viewOffset,o=="page"||o=="window"){var b=e.display.lineSpace.getBoundingClientRect();g+=b.top+(o=="window"?0:Cl(at(e)));var w=b.left+(o=="window"?0:cs(at(e)));a.left+=w,a.right+=w}return a.top+=g,a.bottom+=g,a}function Al(e,r,a){if(a=="div")return r;var o=r.left,l=r.top;if(a=="page")o-=cs(at(e)),l-=Cl(at(e));else if(a=="local"||!a){var d=e.display.sizer.getBoundingClientRect();o+=d.left,l+=d.top}var g=e.display.lineSpace.getBoundingClientRect();return{left:o-g.left,top:l-g.top}}function ba(e,r,a,o,l){return o||(o=Ve(e.doc,r.line)),Mo(e,o,Ji(e,o,r.ch,l),a)}function sn(e,r,a,o,l,d){o=o||Ve(e.doc,r.line),l||(l=wi(e,o));function g(xe,Ce){var Le=an(e,l,xe,Ce?"right":"left",d);return Ce?Le.left=Le.right:Le.right=Le.left,Mo(e,o,Le,a)}var b=Qe(o,e.doc.direction),w=r.ch,O=r.sticky;if(w>=o.text.length?(w=o.text.length,O="before"):w<=0&&(w=0,O="after"),!b)return g(O=="before"?w-1:w,O=="before");function U(xe,Ce,Le){var Me=b[Ce],Ee=Me.level==1;return g(Le?xe-1:xe,Ee!=Le)}var X=mt(b,w,O),he=Bt,le=U(w,X,O=="before");return he!=null&&(le.other=U(w,he,O!="before")),le}function Mn(e,r){var a=0;r=$e(e.doc,r),e.options.lineWrapping||(a=qi(e.display)*r.ch);var o=Ve(e.doc,r.line),l=Vn(o)+Po(e.display);return{left:a,right:a,top:l,bottom:l+o.height}}function hs(e,r,a,o,l){var d=A(e,r,a);return d.xRel=l,o&&(d.outside=o),d}function No(e,r,a){var o=e.doc;if(a+=e.display.viewOffset,a<0)return hs(o.first,0,null,-1,-1);var l=Un(o,a),d=o.first+o.size-1;if(l>d)return hs(o.first+o.size-1,Ve(o,d).text.length,null,1,1);r<0&&(r=0);for(var g=Ve(o,l);;){var b=vs(e,g,l,r,a),w=fl(g,b.ch+(b.xRel>0||b.outside>0?1:0));if(!w)return b;var O=w.find(1);if(O.line==l)return O;g=Ve(o,l=O.line)}}function Ol(e,r,a,o){o-=ds(r);var l=r.text.length,d=gr(function(g){return an(e,a,g-1).bottom<=o},l,0);return l=gr(function(g){return an(e,a,g).top>o},d,l),{begin:d,end:l}}function El(e,r,a,o){a||(a=wi(e,r));var l=Mo(e,r,an(e,a,o),"line").top;return Ol(e,r,a,l)}function ps(e,r,a,o){return e.bottom<=a?!1:e.top>a?!0:(o?e.left:e.right)>r}function vs(e,r,a,o,l){l-=Vn(r);var d=wi(e,r),g=ds(r),b=0,w=r.text.length,O=!0,U=Qe(r,e.doc.direction);if(U){var X=(e.options.lineWrapping?vf:pf)(e,r,a,d,U,o,l);O=X.level!=1,b=O?X.from:X.to-1,w=O?X.to:X.from-1}var he=null,le=null,xe=gr(function(Ye){var Ke=an(e,d,Ye);return Ke.top+=g,Ke.bottom+=g,ps(Ke,o,l,!1)?(Ke.top<=l&&Ke.left<=o&&(he=Ye,le=Ke),!0):!1},b,w),Ce,Le,Me=!1;if(le){var Ee=o-le.left<le.right-o,De=Ee==O;xe=he+(De?0:1),Le=De?"after":"before",Ce=Ee?le.left:le.right}else{!O&&(xe==w||xe==b)&&xe++,Le=xe==0?"after":xe==r.text.length?"before":an(e,d,xe-(O?1:0)).bottom+g<=l==O?"after":"before";var We=sn(e,A(a,xe,Le),"line",r,d);Ce=We.left,Me=l<We.top?-1:l>=We.bottom?1:0}return xe=Ur(r.text,xe,1),hs(a,xe,Le,Me,o-Ce)}function pf(e,r,a,o,l,d,g){var b=gr(function(X){var he=l[X],le=he.level!=1;return ps(sn(e,A(a,le?he.to:he.from,le?"before":"after"),"line",r,o),d,g,!0)},0,l.length-1),w=l[b];if(b>0){var O=w.level!=1,U=sn(e,A(a,O?w.from:w.to,O?"after":"before"),"line",r,o);ps(U,d,g,!0)&&U.top>g&&(w=l[b-1])}return w}function vf(e,r,a,o,l,d,g){var b=Ol(e,r,o,g),w=b.begin,O=b.end;/\s/.test(r.text.charAt(O-1))&&O--;for(var U=null,X=null,he=0;he<l.length;he++){var le=l[he];if(!(le.from>=O||le.to<=w)){var xe=le.level!=1,Ce=an(e,o,xe?Math.min(O,le.to)-1:Math.max(w,le.from)).right,Le=Ce<d?d-Ce+1e9:Ce-d;(!U||X>Le)&&(U=le,X=Le)}}return U||(U=l[l.length-1]),U.from<w&&(U={from:w,to:U.to,level:U.level}),U.to>O&&(U={from:U.from,to:O,level:U.level}),U}var Ci;function Zi(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Ci==null){Ci=G("pre",null,"CodeMirror-line-like");for(var r=0;r<49;++r)Ci.appendChild(document.createTextNode("x")),Ci.appendChild(G("br"));Ci.appendChild(document.createTextNode("x"))}ge(e.measure,Ci);var a=Ci.offsetHeight/50;return a>3&&(e.cachedTextHeight=a),ce(e.measure),a||1}function qi(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var r=G("span","xxxxxxxxxx"),a=G("pre",[r],"CodeMirror-line-like");ge(e.measure,a);var o=r.getBoundingClientRect(),l=(o.right-o.left)/10;return l>2&&(e.cachedCharWidth=l),l||10}function gs(e){for(var r=e.display,a={},o={},l=r.gutters.clientLeft,d=r.gutters.firstChild,g=0;d;d=d.nextSibling,++g){var b=e.display.gutterSpecs[g].className;a[b]=d.offsetLeft+d.clientLeft+l,o[b]=d.clientWidth}return{fixedPos:ms(r),gutterTotalWidth:r.gutters.offsetWidth,gutterLeft:a,gutterWidth:o,wrapperWidth:r.wrapper.clientWidth}}function ms(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function kl(e){var r=Zi(e.display),a=e.options.lineWrapping,o=a&&Math.max(5,e.display.scroller.clientWidth/qi(e.display)-3);return function(l){if(_n(e.doc,l))return 0;var d=0;if(l.widgets)for(var g=0;g<l.widgets.length;g++)l.widgets[g].height&&(d+=l.widgets[g].height);return a?d+(Math.ceil(l.text.length/o)||1)*r:d+r}}function ys(e){var r=e.doc,a=kl(e);r.iter(function(o){var l=a(o);l!=o.height&&nn(o,l)})}function Ai(e,r,a,o){var l=e.display;if(!a&&yr(r).getAttribute("cm-not-content")=="true")return null;var d,g,b=l.lineSpace.getBoundingClientRect();try{d=r.clientX-b.left,g=r.clientY-b.top}catch{return null}var w=No(e,d,g),O;if(o&&w.xRel>0&&(O=Ve(e.doc,w.line).text).length==w.ch){var U=nt(O,O.length,e.options.tabSize)-O.length;w=A(w.line,Math.max(0,Math.round((d-xl(e.display).left)/qi(e.display))-U))}return w}function Oi(e,r){if(r>=e.display.viewTo||(r-=e.display.viewFrom,r<0))return null;for(var a=e.display.view,o=0;o<a.length;o++)if(r-=a[o].size,r<0)return o}function Fr(e,r,a,o){r==null&&(r=e.doc.first),a==null&&(a=e.doc.first+e.doc.size),o||(o=0);var l=e.display;if(o&&a<l.viewTo&&(l.updateLineNumbers==null||l.updateLineNumbers>r)&&(l.updateLineNumbers=r),e.curOp.viewChanged=!0,r>=l.viewTo)In&&ni(e.doc,r)<l.viewTo&&oi(e);else if(a<=l.viewFrom)In&&dl(e.doc,a+o)>l.viewFrom?oi(e):(l.viewFrom+=o,l.viewTo+=o);else if(r<=l.viewFrom&&a>=l.viewTo)oi(e);else if(r<=l.viewFrom){var d=xa(e,a,a+o,1);d?(l.view=l.view.slice(d.index),l.viewFrom=d.lineN,l.viewTo+=o):oi(e)}else if(a>=l.viewTo){var g=xa(e,r,r,-1);g?(l.view=l.view.slice(0,g.index),l.viewTo=g.lineN):oi(e)}else{var b=xa(e,r,r,-1),w=xa(e,a,a+o,1);b&&w?(l.view=l.view.slice(0,b.index).concat(pa(e,b.lineN,w.lineN)).concat(l.view.slice(w.index)),l.viewTo+=o):oi(e)}var O=l.externalMeasured;O&&(a<O.lineN?O.lineN+=o:r<O.lineN+O.size&&(l.externalMeasured=null))}function ii(e,r,a){e.curOp.viewChanged=!0;var o=e.display,l=e.display.externalMeasured;if(l&&r>=l.lineN&&r<l.lineN+l.size&&(o.externalMeasured=null),!(r<o.viewFrom||r>=o.viewTo)){var d=o.view[Oi(e,r)];if(d.node!=null){var g=d.changes||(d.changes=[]);Fe(g,a)==-1&&g.push(a)}}}function oi(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function xa(e,r,a,o){var l=Oi(e,r),d,g=e.display.view;if(!In||a==e.doc.first+e.doc.size)return{index:l,lineN:a};for(var b=e.display.viewFrom,w=0;w<l;w++)b+=g[w].size;if(b!=r){if(o>0){if(l==g.length-1)return null;d=b+g[l].size-r,l++}else d=b-r;r+=d,a+=d}for(;ni(e.doc,a)!=a;){if(l==(o<0?0:g.length-1))return null;a+=o*g[l-(o<0?1:0)].size,l+=o}return{index:l,lineN:a}}function gf(e,r,a){var o=e.display,l=o.view;l.length==0||r>=o.viewTo||a<=o.viewFrom?(o.view=pa(e,r,a),o.viewFrom=r):(o.viewFrom>r?o.view=pa(e,r,o.viewFrom).concat(o.view):o.viewFrom<r&&(o.view=o.view.slice(Oi(e,r))),o.viewFrom=r,o.viewTo<a?o.view=o.view.concat(pa(e,o.viewTo,a)):o.viewTo>a&&(o.view=o.view.slice(0,Oi(e,a)))),o.viewTo=a}function Tl(e){for(var r=e.display.view,a=0,o=0;o<r.length;o++){var l=r[o];!l.hidden&&(!l.node||l.changes)&&++a}return a}function eo(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Do(e,r){r===void 0&&(r=!0);var a=e.doc,o={},l=o.cursors=document.createDocumentFragment(),d=o.selection=document.createDocumentFragment(),g=e.options.$customCursor;g&&(r=!0);for(var b=0;b<a.sel.ranges.length;b++)if(!(!r&&b==a.sel.primIndex)){var w=a.sel.ranges[b];if(!(w.from().line>=e.display.viewTo||w.to().line<e.display.viewFrom)){var O=w.empty();if(g){var U=g(e,w);U&&Sa(e,U,l)}else(O||e.options.showCursorWhenSelecting)&&Sa(e,w.head,l);O||mf(e,w,d)}}return o}function Sa(e,r,a){var o=sn(e,r,"div",null,null,!e.options.singleCursorHeightPerLine),l=a.appendChild(G("div","\xA0","CodeMirror-cursor"));if(l.style.left=o.left+"px",l.style.top=o.top+"px",l.style.height=Math.max(0,o.bottom-o.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var d=ba(e,r,"div",null,null),g=d.right-d.left;l.style.width=(g>0?g:e.defaultCharWidth())+"px"}if(o.other){var b=a.appendChild(G("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));b.style.display="",b.style.left=o.other.left+"px",b.style.top=o.other.top+"px",b.style.height=(o.other.bottom-o.other.top)*.85+"px"}}function wa(e,r){return e.top-r.top||e.left-r.left}function mf(e,r,a){var o=e.display,l=e.doc,d=document.createDocumentFragment(),g=xl(e.display),b=g.left,w=Math.max(o.sizerWidth,Sn(e)-o.sizer.offsetLeft)-g.right,O=l.direction=="ltr";function U(De,We,Ye,Ke){We<0&&(We=0),We=Math.round(We),Ke=Math.round(Ke),d.appendChild(G("div",null,"CodeMirror-selected","position: absolute; left: "+De+`px;
18
- top: `+We+"px; width: "+(Ye??w-De)+`px;
19
- height: `+(Ke-We)+"px"))}function X(De,We,Ye){var Ke=Ve(l,De),pt=Ke.text.length,Tt,ar;function Ut(Zt,Xt){return ba(e,A(De,Zt),"div",Ke,Xt)}function Ze(Zt,Xt,Jt){var Nt=El(e,Ke,null,Zt),zt=Xt=="ltr"==(Jt=="after")?"left":"right",bt=Jt=="after"?Nt.begin:Nt.end-(/\s/.test(Ke.text.charAt(Nt.end-1))?2:1);return Ut(bt,zt)[zt]}var Lr=Qe(Ke,l.direction);return Er(Lr,We||0,Ye??pt,function(Zt,Xt,Jt,Nt){var zt=Jt=="ltr",bt=Ut(Zt,zt?"left":"right"),qt=Ut(Xt-1,zt?"right":"left"),Xn=We==null&&Zt==0,cn=Ye==null&&Xt==pt,ir=Nt==0,$r=!Lr||Nt==Lr.length-1;if(qt.top-bt.top<=3){var or=(O?Xn:cn)&&ir,bo=(O?cn:Xn)&&$r,Dn=or?b:(zt?bt:qt).left,xo=bo?w:(zt?qt:bt).right;U(Dn,bt.top,xo-Dn,bt.bottom)}else{var hi,wr,Jn,_a;zt?(hi=O&&Xn&&ir?b:bt.left,wr=O?w:Ze(Zt,Jt,"before"),Jn=O?b:Ze(Xt,Jt,"after"),_a=O&&cn&&$r?w:qt.right):(hi=O?Ze(Zt,Jt,"before"):b,wr=!O&&Xn&&ir?w:bt.right,Jn=!O&&cn&&$r?b:qt.left,_a=O?Ze(Xt,Jt,"after"):w),U(hi,bt.top,wr-hi,bt.bottom),bt.bottom<qt.top&&U(b,bt.bottom,null,qt.top),U(Jn,qt.top,_a-Jn,qt.bottom)}(!Tt||wa(bt,Tt)<0)&&(Tt=bt),wa(qt,Tt)<0&&(Tt=qt),(!ar||wa(bt,ar)<0)&&(ar=bt),wa(qt,ar)<0&&(ar=qt)}),{start:Tt,end:ar}}var he=r.from(),le=r.to();if(he.line==le.line)X(he.line,he.ch,le.ch);else{var xe=Ve(l,he.line),Ce=Ve(l,le.line),Le=xn(xe)==xn(Ce),Me=X(he.line,he.ch,Le?xe.text.length+1:null).end,Ee=X(le.line,Le?0:null,le.ch).start;Le&&(Me.top<Ee.top-2?(U(Me.right,Me.top,null,Me.bottom),U(b,Ee.top,Ee.left,Ee.bottom)):U(Me.right,Me.top,Ee.left-Me.right,Me.bottom)),Me.bottom<Ee.top&&U(b,Me.bottom,null,Ee.top)}a.appendChild(d)}function ai(e){if(e.state.focused){var r=e.display;clearInterval(r.blinker);var a=!0;r.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?r.blinker=setInterval(function(){e.hasFocus()||to(e),r.cursorDiv.style.visibility=(a=!a)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(r.cursorDiv.style.visibility="hidden")}}function Ca(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||xs(e))}function bs(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&to(e))},100)}function xs(e,r){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(et(e,"focus",e,r),e.state.focused=!0,ze(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),_&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),ai(e))}function to(e,r){e.state.delayingBlurEvent||(e.state.focused&&(et(e,"blur",e,r),e.state.focused=!1,Y(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Ss(e){for(var r=e.display,a=r.lineDiv.offsetTop,o=Math.max(0,r.scroller.getBoundingClientRect().top),l=r.lineDiv.getBoundingClientRect().top,d=0,g=0;g<r.view.length;g++){var b=r.view[g],w=e.options.lineWrapping,O=void 0,U=0;if(!b.hidden){if(l+=b.line.height,D&&R<8){var X=b.node.offsetTop+b.node.offsetHeight;O=X-a,a=X}else{var he=b.node.getBoundingClientRect();O=he.bottom-he.top,!w&&b.text.firstChild&&(U=b.text.firstChild.getBoundingClientRect().right-he.left-1)}var le=b.line.height-O;if((le>.005||le<-.005)&&(l<o&&(d-=le),nn(b.line,O),Pl(b.line),b.rest))for(var xe=0;xe<b.rest.length;xe++)Pl(b.rest[xe]);if(U>e.display.sizerWidth){var Ce=Math.ceil(U/qi(e.display));Ce>e.display.maxLineLength&&(e.display.maxLineLength=Ce,e.display.maxLine=b.line,e.display.maxLineChanged=!0)}}}Math.abs(d)>2&&(r.scroller.scrollTop+=d)}function Pl(e){if(e.widgets)for(var r=0;r<e.widgets.length;++r){var a=e.widgets[r],o=a.node.parentNode;o&&(a.height=o.offsetHeight)}}function ro(e,r,a){var o=a&&a.top!=null?Math.max(0,a.top):e.scroller.scrollTop;o=Math.floor(o-Po(e));var l=a&&a.bottom!=null?a.bottom:o+e.wrapper.clientHeight,d=Un(r,o),g=Un(r,l);if(a&&a.ensure){var b=a.ensure.from.line,w=a.ensure.to.line;b<d?(d=b,g=Un(r,Vn(Ve(r,b))+e.wrapper.clientHeight)):Math.min(w,r.lastLine())>=g&&(d=Un(r,Vn(Ve(r,w))-e.wrapper.clientHeight),g=w)}return{from:d,to:Math.max(g,d+1)}}function yf(e,r){if(!ft(e,"scrollCursorIntoView")){var a=e.display,o=a.sizer.getBoundingClientRect(),l=null,d=a.wrapper.ownerDocument;if(r.top+o.top<0?l=!0:r.bottom+o.top>(d.defaultView.innerHeight||d.documentElement.clientHeight)&&(l=!1),l!=null&&!T){var g=G("div","\u200B",null,`position: absolute;
20
- top: `+(r.top-a.viewOffset-Po(e.display))+`px;
21
- height: `+(r.bottom-r.top+Jr(e)+a.barHeight)+`px;
22
- left: `+r.left+"px; width: "+Math.max(2,r.right-r.left)+"px;");e.display.lineSpace.appendChild(g),g.scrollIntoView(l),e.display.lineSpace.removeChild(g)}}}function bf(e,r,a,o){o==null&&(o=0);var l;!e.options.lineWrapping&&r==a&&(a=r.sticky=="before"?A(r.line,r.ch+1,"before"):r,r=r.ch?A(r.line,r.sticky=="before"?r.ch-1:r.ch,"after"):r);for(var d=0;d<5;d++){var g=!1,b=sn(e,r),w=!a||a==r?b:sn(e,a);l={left:Math.min(b.left,w.left),top:Math.min(b.top,w.top)-o,right:Math.max(b.left,w.left),bottom:Math.max(b.bottom,w.bottom)+o};var O=ws(e,l),U=e.doc.scrollTop,X=e.doc.scrollLeft;if(O.scrollTop!=null&&(io(e,O.scrollTop),Math.abs(e.doc.scrollTop-U)>1&&(g=!0)),O.scrollLeft!=null&&(ki(e,O.scrollLeft),Math.abs(e.doc.scrollLeft-X)>1&&(g=!0)),!g)break}return l}function xf(e,r){var a=ws(e,r);a.scrollTop!=null&&io(e,a.scrollTop),a.scrollLeft!=null&&ki(e,a.scrollLeft)}function ws(e,r){var a=e.display,o=Zi(e.display);r.top<0&&(r.top=0);var l=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:a.scroller.scrollTop,d=ma(e),g={};r.bottom-r.top>d&&(r.bottom=r.top+d);var b=e.doc.height+Lo(a),w=r.top<o,O=r.bottom>b-o;if(r.top<l)g.scrollTop=w?0:r.top;else if(r.bottom>l+d){var U=Math.min(r.top,(O?b:r.bottom)-d);U!=l&&(g.scrollTop=U)}var X=e.options.fixedGutter?0:a.gutters.offsetWidth,he=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:a.scroller.scrollLeft-X,le=Sn(e)-a.gutters.offsetWidth,xe=r.right-r.left>le;return xe&&(r.right=r.left+le),r.left<10?g.scrollLeft=0:r.left<he?g.scrollLeft=Math.max(0,r.left+X-(xe?0:10)):r.right>le+he-3&&(g.scrollLeft=r.right+(xe?0:10)-le),g}function Cs(e,r){r!=null&&(Aa(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+r)}function no(e){Aa(e);var r=e.getCursor();e.curOp.scrollToPos={from:r,to:r,margin:e.options.cursorScrollMargin}}function Ei(e,r,a){(r!=null||a!=null)&&Aa(e),r!=null&&(e.curOp.scrollLeft=r),a!=null&&(e.curOp.scrollTop=a)}function Ll(e,r){Aa(e),e.curOp.scrollToPos=r}function Aa(e){var r=e.curOp.scrollToPos;if(r){e.curOp.scrollToPos=null;var a=Mn(e,r.from),o=Mn(e,r.to);Il(e,a,o,r.margin)}}function Il(e,r,a,o){var l=ws(e,{left:Math.min(r.left,a.left),top:Math.min(r.top,a.top)-o,right:Math.max(r.right,a.right),bottom:Math.max(r.bottom,a.bottom)+o});Ei(e,l.scrollLeft,l.scrollTop)}function io(e,r){Math.abs(e.doc.scrollTop-r)<2||(v||Es(e,{top:r}),As(e,r,!0),v&&Es(e),Fo(e,100))}function As(e,r,a){r=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,r)),!(e.display.scroller.scrollTop==r&&!a)&&(e.doc.scrollTop=r,e.display.scrollbars.setScrollTop(r),e.display.scroller.scrollTop!=r&&(e.display.scroller.scrollTop=r))}function ki(e,r,a,o){r=Math.max(0,Math.min(r,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((a?r==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-r)<2)&&!o)&&(e.doc.scrollLeft=r,jl(e),e.display.scroller.scrollLeft!=r&&(e.display.scroller.scrollLeft=r),e.display.scrollbars.setScrollLeft(r))}function oo(e){var r=e.display,a=r.gutters.offsetWidth,o=Math.round(e.doc.height+Lo(e.display));return{clientHeight:r.scroller.clientHeight,viewHeight:r.wrapper.clientHeight,scrollWidth:r.scroller.scrollWidth,clientWidth:r.scroller.clientWidth,viewWidth:r.wrapper.clientWidth,barLeft:e.options.fixedGutter?a:0,docHeight:o,scrollHeight:o+Jr(e)+r.barHeight,nativeBarWidth:r.nativeBarWidth,gutterWidth:a}}var si=function(e,r,a){this.cm=a;var o=this.vert=G("div",[G("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),l=this.horiz=G("div",[G("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");o.tabIndex=l.tabIndex=-1,e(o),e(l),ne(o,"scroll",function(){o.clientHeight&&r(o.scrollTop,"vertical")}),ne(l,"scroll",function(){l.clientWidth&&r(l.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,D&&R<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};si.prototype.update=function(e){var r=e.scrollWidth>e.clientWidth+1,a=e.scrollHeight>e.clientHeight+1,o=e.nativeBarWidth;if(a){this.vert.style.display="block",this.vert.style.bottom=r?o+"px":"0";var l=e.viewHeight-(r?o:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+l)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(r){this.horiz.style.display="block",this.horiz.style.right=a?o+"px":"0",this.horiz.style.left=e.barLeft+"px";var d=e.viewWidth-e.barLeft-(a?o:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+d)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(o==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:a?o:0,bottom:r?o:0}},si.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},si.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},si.prototype.zeroWidthHack=function(){var e=L&&!V?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new Ue,this.disableVert=new Ue},si.prototype.enableZeroWidthBar=function(e,r,a){e.style.visibility="";function o(){var l=e.getBoundingClientRect(),d=a=="vert"?document.elementFromPoint(l.right-1,(l.top+l.bottom)/2):document.elementFromPoint((l.right+l.left)/2,l.bottom-1);d!=e?e.style.visibility="hidden":r.set(1e3,o)}r.set(1e3,o)},si.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Oa=function(){};Oa.prototype.update=function(){return{bottom:0,right:0}},Oa.prototype.setScrollLeft=function(){},Oa.prototype.setScrollTop=function(){},Oa.prototype.clear=function(){};function ao(e,r){r||(r=oo(e));var a=e.display.barWidth,o=e.display.barHeight;Ml(e,r);for(var l=0;l<4&&a!=e.display.barWidth||o!=e.display.barHeight;l++)a!=e.display.barWidth&&e.options.lineWrapping&&Ss(e),Ml(e,oo(e)),a=e.display.barWidth,o=e.display.barHeight}function Ml(e,r){var a=e.display,o=a.scrollbars.update(r);a.sizer.style.paddingRight=(a.barWidth=o.right)+"px",a.sizer.style.paddingBottom=(a.barHeight=o.bottom)+"px",a.heightForcer.style.borderBottom=o.bottom+"px solid transparent",o.right&&o.bottom?(a.scrollbarFiller.style.display="block",a.scrollbarFiller.style.height=o.bottom+"px",a.scrollbarFiller.style.width=o.right+"px"):a.scrollbarFiller.style.display="",o.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(a.gutterFiller.style.display="block",a.gutterFiller.style.height=o.bottom+"px",a.gutterFiller.style.width=r.gutterWidth+"px"):a.gutterFiller.style.display=""}var Nl={native:si,null:Oa};function Dl(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&Y(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Nl[e.options.scrollbarStyle](function(r){e.display.wrapper.insertBefore(r,e.display.scrollbarFiller),ne(r,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),r.setAttribute("cm-not-content","true")},function(r,a){a=="horizontal"?ki(e,r):io(e,r)},e),e.display.scrollbars.addClass&&ze(e.display.wrapper,e.display.scrollbars.addClass)}var Sf=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:++Sf,markArrays:null},rf(e.curOp)}function Pi(e){var r=e.curOp;r&&nf(r,function(a){for(var o=0;o<a.ops.length;o++)a.ops[o].cm.curOp=null;Ea(a)})}function Ea(e){for(var r=e.ops,a=0;a<r.length;a++)wf(r[a]);for(var o=0;o<r.length;o++)Cf(r[o]);for(var l=0;l<r.length;l++)Af(r[l]);for(var d=0;d<r.length;d++)Of(r[d]);for(var g=0;g<r.length;g++)Ef(r[g])}function wf(e){var r=e.cm,a=r.display;Fl(r),e.updateMaxLine&&rs(r),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<a.viewFrom||e.scrollToPos.to.line>=a.viewTo)||a.maxLineChanged&&r.options.lineWrapping,e.update=e.mustUpdate&&new ka(r,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Cf(e){e.updatedDisplay=e.mustUpdate&&Rl(e.cm,e.update)}function Af(e){var r=e.cm,a=r.display;e.updatedDisplay&&Ss(r),e.barMeasure=oo(r),a.maxLineChanged&&!r.options.lineWrapping&&(e.adjustWidthTo=Ji(r,a.maxLine,a.maxLine.text.length).left+3,r.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(a.scroller.clientWidth,a.sizer.offsetLeft+e.adjustWidthTo+Jr(r)+r.display.barWidth),e.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+e.adjustWidthTo-Sn(r))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=a.input.prepareSelection())}function Of(e){var r=e.cm;e.adjustWidthTo!=null&&(r.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<r.doc.scrollLeft&&ki(r,Math.min(r.display.scroller.scrollLeft,e.maxScrollLeft),!0),r.display.maxLineChanged=!1);var a=e.focus&&e.focus==_e(at(r));e.preparedSelection&&r.display.input.showSelection(e.preparedSelection,a),(e.updatedDisplay||e.startHeight!=r.doc.height)&&ao(r,e.barMeasure),e.updatedDisplay&&Bl(r,e.barMeasure),e.selectionChanged&&ai(r),r.state.focused&&e.updateInput&&r.display.input.reset(e.typing),a&&Ca(e.cm)}function Ef(e){var r=e.cm,a=r.display,o=r.doc;if(e.updatedDisplay&&Os(r,e.update),a.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(a.wheelStartX=a.wheelStartY=null),e.scrollTop!=null&&As(r,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&ki(r,e.scrollLeft,!0,!0),e.scrollToPos){var l=bf(r,$e(o,e.scrollToPos.from),$e(o,e.scrollToPos.to),e.scrollToPos.margin);yf(r,l)}var d=e.maybeHiddenMarkers,g=e.maybeUnhiddenMarkers;if(d)for(var b=0;b<d.length;++b)d[b].lines.length||et(d[b],"hide");if(g)for(var w=0;w<g.length;++w)g[w].lines.length&&et(g[w],"unhide");a.wrapper.offsetHeight&&(o.scrollTop=r.display.scroller.scrollTop),e.changeObjs&&et(r,"changes",r,e.changeObjs),e.update&&e.update.finish()}function Vr(e,r){if(e.curOp)return r();Ti(e);try{return r()}finally{Pi(e)}}function lr(e,r){return function(){if(e.curOp)return r.apply(e,arguments);Ti(e);try{return r.apply(e,arguments)}finally{Pi(e)}}}function Sr(e){return function(){if(this.curOp)return e.apply(this,arguments);Ti(this);try{return e.apply(this,arguments)}finally{Pi(this)}}}function ur(e){return function(){var r=this.cm;if(!r||r.curOp)return e.apply(this,arguments);Ti(r);try{return e.apply(this,arguments)}finally{Pi(r)}}}function Fo(e,r){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(r,dt(kf,e))}function kf(e){var r=e.doc;if(!(r.highlightFrontier>=e.display.viewTo)){var a=+new Date+e.options.workTime,o=Vi(e,r.highlightFrontier),l=[];r.iter(o.line,Math.min(r.first+r.size,e.display.viewTo+500),function(d){if(o.line>=e.display.viewFrom){var g=d.styles,b=d.text.length>e.options.maxHighlightLength?rn(r.mode,o.state):null,w=tl(e,d,o,!0);b&&(o.state=b),d.styles=w.styles;var O=d.styleClasses,U=w.classes;U?d.styleClasses=U:O&&(d.styleClasses=null);for(var X=!g||g.length!=d.styles.length||O!=U&&(!O||!U||O.bgClass!=U.bgClass||O.textClass!=U.textClass),he=0;!X&&he<g.length;++he)X=g[he]!=d.styles[he];X&&l.push(o.line),d.stateAfter=o.save(),o.nextLine()}else d.text.length<=e.options.maxHighlightLength&&sa(e,d.text,o),d.stateAfter=o.line%5==0?o.save():null,o.nextLine();if(+new Date>a)return Fo(e,e.options.workDelay),!0}),r.highlightFrontier=o.line,r.modeFrontier=Math.max(r.modeFrontier,o.line),l.length&&Vr(e,function(){for(var d=0;d<l.length;d++)ii(e,l[d],"text")})}}var ka=function(e,r,a){var o=e.display;this.viewport=r,this.visible=ro(o,e.doc,r),this.editorIsHidden=!o.wrapper.offsetWidth,this.wrapperHeight=o.wrapper.clientHeight,this.wrapperWidth=o.wrapper.clientWidth,this.oldDisplayWidth=Sn(e),this.force=a,this.dims=gs(e),this.events=[]};ka.prototype.signal=function(e,r){_t(e,r)&&this.events.push(arguments)},ka.prototype.finish=function(){for(var e=0;e<this.events.length;e++)et.apply(null,this.events[e])};function Fl(e){var r=e.display;!r.scrollbarsClipped&&r.scroller.offsetWidth&&(r.nativeBarWidth=r.scroller.offsetWidth-r.scroller.clientWidth,r.heightForcer.style.height=Jr(e)+"px",r.sizer.style.marginBottom=-r.nativeBarWidth+"px",r.sizer.style.borderRightWidth=Jr(e)+"px",r.scrollbarsClipped=!0)}function Tf(e){if(e.hasFocus())return null;var r=_e(at(e));if(!r||!He(e.display.lineDiv,r))return null;var a={activeElt:r};if(window.getSelection){var o=Gt(e).getSelection();o.anchorNode&&o.extend&&He(e.display.lineDiv,o.anchorNode)&&(a.anchorNode=o.anchorNode,a.anchorOffset=o.anchorOffset,a.focusNode=o.focusNode,a.focusOffset=o.focusOffset)}return a}function Pf(e){if(!(!e||!e.activeElt||e.activeElt==_e(e.activeElt.ownerDocument))&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&He(document.body,e.anchorNode)&&He(document.body,e.focusNode))){var r=e.activeElt.ownerDocument,a=r.defaultView.getSelection(),o=r.createRange();o.setEnd(e.anchorNode,e.anchorOffset),o.collapse(!1),a.removeAllRanges(),a.addRange(o),a.extend(e.focusNode,e.focusOffset)}}function Rl(e,r){var a=e.display,o=e.doc;if(r.editorIsHidden)return oi(e),!1;if(!r.force&&r.visible.from>=a.viewFrom&&r.visible.to<=a.viewTo&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo)&&a.renderedView==a.view&&Tl(e)==0)return!1;Wl(e)&&(oi(e),r.dims=gs(e));var l=o.first+o.size,d=Math.max(r.visible.from-e.options.viewportMargin,o.first),g=Math.min(l,r.visible.to+e.options.viewportMargin);a.viewFrom<d&&d-a.viewFrom<20&&(d=Math.max(o.first,a.viewFrom)),a.viewTo>g&&a.viewTo-g<20&&(g=Math.min(l,a.viewTo)),In&&(d=ni(e.doc,d),g=dl(e.doc,g));var b=d!=a.viewFrom||g!=a.viewTo||a.lastWrapHeight!=r.wrapperHeight||a.lastWrapWidth!=r.wrapperWidth;gf(e,d,g),a.viewOffset=Vn(Ve(e.doc,a.viewFrom)),e.display.mover.style.top=a.viewOffset+"px";var w=Tl(e);if(!b&&w==0&&!r.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var O=Tf(e);return w>4&&(a.lineDiv.style.display="none"),Lf(e,a.updateLineNumbers,r.dims),w>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,Pf(O),ce(a.cursorDiv),ce(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,b&&(a.lastWrapHeight=r.wrapperHeight,a.lastWrapWidth=r.wrapperWidth,Fo(e,400)),a.updateLineNumbers=null,!0}function Os(e,r){for(var a=r.viewport,o=!0;;o=!1){if(!o||!e.options.lineWrapping||r.oldDisplayWidth==Sn(e)){if(a&&a.top!=null&&(a={top:Math.min(e.doc.height+Lo(e.display)-ma(e),a.top)}),r.visible=ro(e.display,e.doc,a),r.visible.from>=e.display.viewFrom&&r.visible.to<=e.display.viewTo)break}else o&&(r.visible=ro(e.display,e.doc,a));if(!Rl(e,r))break;Ss(e);var l=oo(e);eo(e),ao(e,l),Bl(e,l),r.force=!1}r.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(r.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Es(e,r){var a=new ka(e,r);if(Rl(e,a)){Ss(e),Os(e,a);var o=oo(e);eo(e),ao(e,o),Bl(e,o),a.finish()}}function Lf(e,r,a){var o=e.display,l=e.options.lineNumbers,d=o.lineDiv,g=d.firstChild;function b(xe){var Ce=xe.nextSibling;return _&&L&&e.display.currentWheelTarget==xe?xe.style.display="none":xe.parentNode.removeChild(xe),Ce}for(var w=o.view,O=o.viewFrom,U=0;U<w.length;U++){var X=w[U];if(!X.hidden)if(!X.node||X.node.parentNode!=d){var he=uf(e,X,O,a);d.insertBefore(he,g)}else{for(;g!=X.node;)g=b(g);var le=l&&r!=null&&r<=O&&X.lineNumber;X.changes&&(Fe(X.changes,"gutter")>-1&&(le=!1),os(e,X,O,a)),le&&(ce(X.lineNumber),X.lineNumber.appendChild(document.createTextNode(_i(e.options,O)))),g=X.node.nextSibling}O+=X.size}for(;g;)g=b(g)}function ks(e){var r=e.gutters.offsetWidth;e.sizer.style.marginLeft=r+"px",sr(e,"gutterChanged",e)}function Bl(e,r){e.display.sizer.style.minHeight=r.docHeight+"px",e.display.heightForcer.style.top=r.docHeight+"px",e.display.gutters.style.height=r.docHeight+e.display.barHeight+Jr(e)+"px"}function jl(e){var r=e.display,a=r.view;if(!(!r.alignWidgets&&(!r.gutters.firstChild||!e.options.fixedGutter))){for(var o=ms(r)-r.scroller.scrollLeft+e.doc.scrollLeft,l=r.gutters.offsetWidth,d=o+"px",g=0;g<a.length;g++)if(!a[g].hidden){e.options.fixedGutter&&(a[g].gutter&&(a[g].gutter.style.left=d),a[g].gutterBackground&&(a[g].gutterBackground.style.left=d));var b=a[g].alignable;if(b)for(var w=0;w<b.length;w++)b[w].style.left=d}e.options.fixedGutter&&(r.gutters.style.left=o+l+"px")}}function Wl(e){if(!e.options.lineNumbers)return!1;var r=e.doc,a=_i(e.options,r.first+r.size-1),o=e.display;if(a.length!=o.lineNumChars){var l=o.measure.appendChild(G("div",[G("div",a)],"CodeMirror-linenumber CodeMirror-gutter-elt")),d=l.firstChild.offsetWidth,g=l.offsetWidth-d;return o.lineGutter.style.width="",o.lineNumInnerWidth=Math.max(d,o.lineGutter.offsetWidth-g)+1,o.lineNumWidth=o.lineNumInnerWidth+g,o.lineNumChars=o.lineNumInnerWidth?a.length:-1,o.lineGutter.style.width=o.lineNumWidth+"px",ks(e.display),!0}return!1}function Ta(e,r){for(var a=[],o=!1,l=0;l<e.length;l++){var d=e[l],g=null;if(typeof d!="string"&&(g=d.style,d=d.className),d=="CodeMirror-linenumbers")if(r)o=!0;else continue;a.push({className:d,style:g})}return r&&!o&&a.push({className:"CodeMirror-linenumbers",style:null}),a}function Hl(e){var r=e.gutters,a=e.gutterSpecs;ce(r),e.lineGutter=null;for(var o=0;o<a.length;++o){var l=a[o],d=l.className,g=l.style,b=r.appendChild(G("div",null,"CodeMirror-gutter "+d));g&&(b.style.cssText=g),d=="CodeMirror-linenumbers"&&(e.lineGutter=b,b.style.width=(e.lineNumWidth||1)+"px")}r.style.display=a.length?"":"none",ks(e)}function so(e){Hl(e.display),Fr(e),jl(e)}function If(e,r,a,o){var l=this;this.input=a,l.scrollbarFiller=G("div",null,"CodeMirror-scrollbar-filler"),l.scrollbarFiller.setAttribute("cm-not-content","true"),l.gutterFiller=G("div",null,"CodeMirror-gutter-filler"),l.gutterFiller.setAttribute("cm-not-content","true"),l.lineDiv=ve("div",null,"CodeMirror-code"),l.selectionDiv=G("div",null,null,"position: relative; z-index: 1"),l.cursorDiv=G("div",null,"CodeMirror-cursors"),l.measure=G("div",null,"CodeMirror-measure"),l.lineMeasure=G("div",null,"CodeMirror-measure"),l.lineSpace=ve("div",[l.measure,l.lineMeasure,l.selectionDiv,l.cursorDiv,l.lineDiv],null,"position: relative; outline: none");var d=ve("div",[l.lineSpace],"CodeMirror-lines");l.mover=G("div",[d],null,"position: relative"),l.sizer=G("div",[l.mover],"CodeMirror-sizer"),l.sizerWidth=null,l.heightForcer=G("div",null,null,"position: absolute; height: "+Re+"px; width: 1px;"),l.gutters=G("div",null,"CodeMirror-gutters"),l.lineGutter=null,l.scroller=G("div",[l.sizer,l.heightForcer,l.gutters],"CodeMirror-scroll"),l.scroller.setAttribute("tabIndex","-1"),l.wrapper=G("div",[l.scrollbarFiller,l.gutterFiller,l.scroller],"CodeMirror"),q&&de>=105&&(l.wrapper.style.clipPath="inset(0px)"),l.wrapper.setAttribute("translate","no"),D&&R<8&&(l.gutters.style.zIndex=-1,l.scroller.style.paddingRight=0),!_&&!(v&&S)&&(l.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(l.wrapper):e(l.wrapper)),l.viewFrom=l.viewTo=r.first,l.reportedViewFrom=l.reportedViewTo=r.first,l.view=[],l.renderedView=null,l.externalMeasured=null,l.viewOffset=0,l.lastWrapHeight=l.lastWrapWidth=0,l.updateLineNumbers=null,l.nativeBarWidth=l.barHeight=l.barWidth=0,l.scrollbarsClipped=!1,l.lineNumWidth=l.lineNumInnerWidth=l.lineNumChars=null,l.alignWidgets=!1,l.cachedCharWidth=l.cachedTextHeight=l.cachedPaddingH=null,l.maxLine=null,l.maxLineLength=0,l.maxLineChanged=!1,l.wheelDX=l.wheelDY=l.wheelStartX=l.wheelStartY=null,l.shift=!1,l.selForContextMenu=null,l.activeTouch=null,l.gutterSpecs=Ta(o.gutters,o.lineNumbers),Hl(l),a.init(l)}var Pa=0,Kn=null;D?Kn=-.53:v?Kn=15:q?Kn=-.7:se&&(Kn=-1/3);function Ul(e){var r=e.wheelDeltaX,a=e.wheelDeltaY;return r==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(r=e.detail),a==null&&e.detail&&e.axis==e.VERTICAL_AXIS?a=e.detail:a==null&&(a=e.wheelDelta),{x:r,y:a}}function Mf(e){var r=Ul(e);return r.x*=Kn,r.y*=Kn,r}function zl(e,r){q&&de==102&&(e.display.chromeScrollHack==null?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var a=Ul(r),o=a.x,l=a.y,d=Kn;r.deltaMode===0&&(o=r.deltaX,l=r.deltaY,d=1);var g=e.display,b=g.scroller,w=b.scrollWidth>b.clientWidth,O=b.scrollHeight>b.clientHeight;if(o&&w||l&&O){if(l&&L&&_){e:for(var U=r.target,X=g.view;U!=b;U=U.parentNode)for(var he=0;he<X.length;he++)if(X[he].node==U){e.display.currentWheelTarget=U;break e}}if(o&&!v&&!re&&d!=null){l&&O&&io(e,Math.max(0,b.scrollTop+l*d)),ki(e,Math.max(0,b.scrollLeft+o*d)),(!l||l&&O)&&wt(r),g.wheelStartX=null;return}if(l&&d!=null){var le=l*d,xe=e.doc.scrollTop,Ce=xe+g.wrapper.clientHeight;le<0?xe=Math.max(0,xe+le-50):Ce=Math.min(e.doc.height,Ce+le+50),Es(e,{top:xe,bottom:Ce})}Pa<20&&r.deltaMode!==0&&(g.wheelStartX==null?(g.wheelStartX=b.scrollLeft,g.wheelStartY=b.scrollTop,g.wheelDX=o,g.wheelDY=l,setTimeout(function(){if(g.wheelStartX!=null){var Le=b.scrollLeft-g.wheelStartX,Me=b.scrollTop-g.wheelStartY,Ee=Me&&g.wheelDY&&Me/g.wheelDY||Le&&g.wheelDX&&Le/g.wheelDX;g.wheelStartX=g.wheelStartY=null,Ee&&(Kn=(Kn*Pa+Ee)/(Pa+1),++Pa)}},200)):(g.wheelDX+=o,g.wheelDY+=l))}}var Rr=function(e,r){this.ranges=e,this.primIndex=r};Rr.prototype.primary=function(){return this.ranges[this.primIndex]},Rr.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var r=0;r<this.ranges.length;r++){var a=this.ranges[r],o=e.ranges[r];if(!Se(a.anchor,o.anchor)||!Se(a.head,o.head))return!1}return!0},Rr.prototype.deepCopy=function(){for(var e=[],r=0;r<this.ranges.length;r++)e[r]=new Et(Pe(this.ranges[r].anchor),Pe(this.ranges[r].head));return new Rr(e,this.primIndex)},Rr.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},Rr.prototype.contains=function(e,r){r||(r=e);for(var a=0;a<this.ranges.length;a++){var o=this.ranges[a];if(z(r,o.from())>=0&&z(e,o.to())<=0)return a}return-1};var Et=function(e,r){this.anchor=e,this.head=r};Et.prototype.from=function(){return yt(this.anchor,this.head)},Et.prototype.to=function(){return tt(this.anchor,this.head)},Et.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function wn(e,r,a){var o=e&&e.options.selectionsMayTouch,l=r[a];r.sort(function(he,le){return z(he.from(),le.from())}),a=Fe(r,l);for(var d=1;d<r.length;d++){var g=r[d],b=r[d-1],w=z(b.to(),g.from());if(o&&!g.empty()?w>0:w>=0){var O=yt(b.from(),g.from()),U=tt(b.to(),g.to()),X=b.empty()?g.from()==g.head:b.from()==b.head;d<=a&&--a,r.splice(--d,2,new Et(X?U:O,X?O:U))}}return new Rr(r,a)}function li(e,r){return new Rr([new Et(e,r||e)],0)}function ui(e){return e.text?A(e.from.line+e.text.length-1,Je(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function _l(e,r){if(z(e,r.from)<0)return e;if(z(e,r.to)<=0)return ui(r);var a=e.line+r.text.length-(r.to.line-r.from.line)-1,o=e.ch;return e.line==r.to.line&&(o+=ui(r).ch-r.to.ch),A(a,o)}function B(e,r){for(var a=[],o=0;o<e.sel.ranges.length;o++){var l=e.sel.ranges[o];a.push(new Et(_l(l.anchor,r),_l(l.head,r)))}return wn(e.cm,a,e.sel.primIndex)}function Vt(e,r,a){return e.line==r.line?A(a.line,e.ch-r.ch+a.ch):A(a.line+(e.line-r.line),e.ch)}function Nn(e,r,a){for(var o=[],l=A(e.first,0),d=l,g=0;g<r.length;g++){var b=r[g],w=Vt(b.from,l,d),O=Vt(ui(b),l,d);if(l=b.to,d=O,a=="around"){var U=e.sel.ranges[g],X=z(U.head,U.anchor)<0;o[g]=new Et(X?O:w,X?w:O)}else o[g]=new Et(w,w)}return new Rr(o,e.sel.primIndex)}function Ts(e){e.doc.mode=Nr(e.options,e.doc.modeOption),Ro(e)}function Ro(e){e.doc.iter(function(r){r.stateAfter&&(r.stateAfter=null),r.styles&&(r.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Fo(e,100),e.state.modeGen++,e.curOp&&Fr(e)}function Vl(e,r){return r.from.ch==0&&r.to.ch==0&&Je(r.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Ps(e,r,a,o){function l(Ee){return a?a[Ee]:null}function d(Ee,De,We){hl(Ee,De,We,o),sr(Ee,"change",Ee,r)}function g(Ee,De){for(var We=[],Ye=Ee;Ye<De;++Ye)We.push(new xi(O[Ye],l(Ye),o));return We}var b=r.from,w=r.to,O=r.text,U=Ve(e,b.line),X=Ve(e,w.line),he=Je(O),le=l(O.length-1),xe=w.line-b.line;if(r.full)e.insert(0,g(0,O.length)),e.remove(O.length,e.size-O.length);else if(Vl(e,r)){var Ce=g(0,O.length-1);d(X,X.text,le),xe&&e.remove(b.line,xe),Ce.length&&e.insert(b.line,Ce)}else if(U==X)if(O.length==1)d(U,U.text.slice(0,b.ch)+he+U.text.slice(w.ch),le);else{var Le=g(1,O.length-1);Le.push(new xi(he+U.text.slice(w.ch),le,o)),d(U,U.text.slice(0,b.ch)+O[0],l(0)),e.insert(b.line+1,Le)}else if(O.length==1)d(U,U.text.slice(0,b.ch)+O[0]+X.text.slice(w.ch),l(0)),e.remove(b.line+1,xe);else{d(U,U.text.slice(0,b.ch)+O[0],l(0)),d(X,he+X.text.slice(w.ch),le);var Me=g(1,O.length-1);xe>1&&e.remove(b.line+1,xe-1),e.insert(b.line+1,Me)}sr(e,"change",e,r)}function fi(e,r,a){function o(l,d,g){if(l.linked)for(var b=0;b<l.linked.length;++b){var w=l.linked[b];if(w.doc!=d){var O=g&&w.sharedHist;a&&!O||(r(w.doc,O),o(w.doc,l,O))}}}o(e,null,!0)}function $l(e,r){if(r.cm)throw new Error("This document is already in use.");e.doc=r,r.cm=e,ys(e),Ts(e),Ls(e),e.options.direction=r.direction,e.options.lineWrapping||rs(e),e.options.mode=r.modeOption,Fr(e)}function Ls(e){(e.doc.direction=="rtl"?ze:Y)(e.display.lineDiv,"CodeMirror-rtl")}function Nf(e){Vr(e,function(){Ls(e),Fr(e)})}function La(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 Ia(e,r){var a={from:Pe(r.from),to:ui(r),text:Hn(e,r.from,r.to)};return Cn(e,a,r.from.line,r.to.line+1),fi(e,function(o){return Cn(o,a,r.from.line,r.to.line+1)},!0),a}function Gl(e){for(;e.length;){var r=Je(e);if(r.ranges)e.pop();else break}}function Df(e,r){if(r)return Gl(e.done),Je(e.done);if(e.done.length&&!Je(e.done).ranges)return Je(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Je(e.done)}function Kl(e,r,a,o){var l=e.history;l.undone.length=0;var d=+new Date,g,b;if((l.lastOp==o||l.lastOrigin==r.origin&&r.origin&&(r.origin.charAt(0)=="+"&&l.lastModTime>d-(e.cm?e.cm.options.historyEventDelay:500)||r.origin.charAt(0)=="*"))&&(g=Df(l,l.lastOp==o)))b=Je(g.changes),z(r.from,r.to)==0&&z(r.from,b.to)==0?b.to=ui(r):g.changes.push(Ia(e,r));else{var w=Je(l.done);for((!w||!w.ranges)&&Li(e.sel,l.done),g={changes:[Ia(e,r)],generation:l.generation},l.done.push(g);l.done.length>l.undoDepth;)l.done.shift(),l.done[0].ranges||l.done.shift()}l.done.push(a),l.generation=++l.maxGeneration,l.lastModTime=l.lastSelTime=d,l.lastOp=l.lastSelOp=o,l.lastOrigin=l.lastSelOrigin=r.origin,b||et(e,"historyAdded")}function Ff(e,r,a,o){var l=r.charAt(0);return l=="*"||l=="+"&&a.ranges.length==o.ranges.length&&a.somethingSelected()==o.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Rf(e,r,a,o){var l=e.history,d=o&&o.origin;a==l.lastSelOp||d&&l.lastSelOrigin==d&&(l.lastModTime==l.lastSelTime&&l.lastOrigin==d||Ff(e,d,Je(l.done),r))?l.done[l.done.length-1]=r:Li(r,l.done),l.lastSelTime=+new Date,l.lastSelOrigin=d,l.lastSelOp=a,o&&o.clearRedo!==!1&&Gl(l.undone)}function Li(e,r){var a=Je(r);a&&a.ranges&&a.equals(e)||r.push(e)}function Cn(e,r,a,o){var l=r["spans_"+e.id],d=0;e.iter(Math.max(e.first,a),Math.min(e.first+e.size,o),function(g){g.markedSpans&&((l||(l=r["spans_"+e.id]={}))[d]=g.markedSpans),++d})}function Yl(e){if(!e)return null;for(var r,a=0;a<e.length;++a)e[a].marker.explicitlyCleared?r||(r=e.slice(0,a)):r&&r.push(e[a]);return r?r.length?r:null:e}function Xl(e,r){var a=r["spans_"+e.id];if(!a)return null;for(var o=[],l=0;l<r.text.length;++l)o.push(Yl(a[l]));return o}function Jl(e,r){var a=Xl(e,r),o=fa(e,r);if(!a)return o;if(!o)return a;for(var l=0;l<a.length;++l){var d=a[l],g=o[l];if(d&&g)e:for(var b=0;b<g.length;++b){for(var w=g[b],O=0;O<d.length;++O)if(d[O].marker==w.marker)continue e;d.push(w)}else g&&(a[l]=g)}return a}function Ii(e,r,a){for(var o=[],l=0;l<e.length;++l){var d=e[l];if(d.ranges){o.push(a?Rr.prototype.deepCopy.call(d):d);continue}var g=d.changes,b=[];o.push({changes:b});for(var w=0;w<g.length;++w){var O=g[w],U=void 0;if(b.push({from:O.from,to:O.to,text:O.text}),r)for(var X in O)(U=X.match(/^spans_(\d+)$/))&&Fe(r,Number(U[1]))>-1&&(Je(b)[X]=O[X],delete O[X])}}return o}function Ma(e,r,a,o){if(o){var l=e.anchor;if(a){var d=z(r,l)<0;d!=z(a,l)<0?(l=r,r=a):d!=z(r,a)<0&&(r=a)}return new Et(l,r)}else return new Et(a||r,r)}function Mi(e,r,a,o,l){l==null&&(l=e.cm&&(e.cm.display.shift||e.extend)),fr(e,new Rr([Ma(e.sel.primary(),r,a,l)],0),o)}function Ql(e,r,a){for(var o=[],l=e.cm&&(e.cm.display.shift||e.extend),d=0;d<e.sel.ranges.length;d++)o[d]=Ma(e.sel.ranges[d],r[d],null,l);var g=wn(e.cm,o,e.sel.primIndex);fr(e,g,a)}function Na(e,r,a,o){var l=e.sel.ranges.slice(0);l[r]=a,fr(e,wn(e.cm,l,e.sel.primIndex),o)}function Is(e,r,a,o){fr(e,li(r,a),o)}function Zl(e,r,a){var o={ranges:r.ranges,update:function(l){this.ranges=[];for(var d=0;d<l.length;d++)this.ranges[d]=new Et($e(e,l[d].anchor),$e(e,l[d].head))},origin:a&&a.origin};return et(e,"beforeSelectionChange",e,o),e.cm&&et(e.cm,"beforeSelectionChange",e.cm,o),o.ranges!=r.ranges?wn(e.cm,o.ranges,o.ranges.length-1):r}function ql(e,r,a){var o=e.history.done,l=Je(o);l&&l.ranges?(o[o.length-1]=r,gt(e,r,a)):fr(e,r,a)}function fr(e,r,a){gt(e,r,a),Rf(e,e.sel,e.cm?e.cm.curOp.id:NaN,a)}function gt(e,r,a){(_t(e,"beforeSelectionChange")||e.cm&&_t(e.cm,"beforeSelectionChange"))&&(r=Zl(e,r,a));var o=a&&a.bias||(z(r.primary().head,e.sel.primary().head)<0?-1:1);kt(e,Qr(e,r,o,!0)),!(a&&a.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&no(e.cm)}function kt(e,r){r.equals(e.sel)||(e.sel=r,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,lt(e.cm)),sr(e,"cursorActivity",e))}function ot(e){kt(e,Qr(e,e.sel,null,!1))}function Qr(e,r,a,o){for(var l,d=0;d<r.ranges.length;d++){var g=r.ranges[d],b=r.ranges.length==e.sel.ranges.length&&e.sel.ranges[d],w=Da(e,g.anchor,b&&b.anchor,a,o),O=g.head==g.anchor?w:Da(e,g.head,b&&b.head,a,o);(l||w!=g.anchor||O!=g.head)&&(l||(l=r.ranges.slice(0,d)),l[d]=new Et(w,O))}return l?wn(e.cm,l,r.primIndex):r}function lo(e,r,a,o,l){var d=Ve(e,r.line);if(d.markedSpans)for(var g=0;g<d.markedSpans.length;++g){var b=d.markedSpans[g],w=b.marker,O="selectLeft"in w?!w.selectLeft:w.inclusiveLeft,U="selectRight"in w?!w.selectRight:w.inclusiveRight;if((b.from==null||(O?b.from<=r.ch:b.from<r.ch))&&(b.to==null||(U?b.to>=r.ch:b.to>r.ch))){if(l&&(et(w,"beforeCursorEnter"),w.explicitlyCleared))if(d.markedSpans){--g;continue}else break;if(!w.atomic)continue;if(a){var X=w.find(o<0?1:-1),he=void 0;if((o<0?U:O)&&(X=eu(e,X,-o,X&&X.line==r.line?d:null)),X&&X.line==r.line&&(he=z(X,a))&&(o<0?he<0:he>0))return lo(e,X,r,o,l)}var le=w.find(o<0?-1:1);return(o<0?O:U)&&(le=eu(e,le,o,le.line==r.line?d:null)),le?lo(e,le,r,o,l):null}}return r}function Da(e,r,a,o,l){var d=o||1,g=lo(e,r,a,d,l)||!l&&lo(e,r,a,d,!0)||lo(e,r,a,-d,l)||!l&&lo(e,r,a,-d,!0);return g||(e.cantEdit=!0,A(e.first,0))}function eu(e,r,a,o){return a<0&&r.ch==0?r.line>e.first?$e(e,A(r.line-1)):null:a>0&&r.ch==(o||Ve(e,r.line)).text.length?r.line<e.first+e.size-1?A(r.line+1,0):null:new A(r.line,r.ch+a)}function ci(e){e.setSelection(A(e.firstLine(),0),A(e.lastLine()),Ft)}function tu(e,r,a){var o={canceled:!1,from:r.from,to:r.to,text:r.text,origin:r.origin,cancel:function(){return o.canceled=!0}};return a&&(o.update=function(l,d,g,b){l&&(o.from=$e(e,l)),d&&(o.to=$e(e,d)),g&&(o.text=g),b!==void 0&&(o.origin=b)}),et(e,"beforeChange",e,o),e.cm&&et(e.cm,"beforeChange",e.cm,o),o.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:o.from,to:o.to,text:o.text,origin:o.origin}}function Ni(e,r,a){if(e.cm){if(!e.cm.curOp)return lr(e.cm,Ni)(e,r,a);if(e.cm.state.suppressEdits)return}if(!((_t(e,"beforeChange")||e.cm&&_t(e.cm,"beforeChange"))&&(r=tu(e,r,!0),!r))){var o=ol&&!a&&qa(e,r.from,r.to);if(o)for(var l=o.length-1;l>=0;--l)Ms(e,{from:o[l].from,to:o[l].to,text:l?[""]:r.text,origin:r.origin});else Ms(e,r)}}function Ms(e,r){if(!(r.text.length==1&&r.text[0]==""&&z(r.from,r.to)==0)){var a=B(e,r);Kl(e,r,a,e.cm?e.cm.curOp.id:NaN),Bo(e,r,a,fa(e,r));var o=[];fi(e,function(l,d){!d&&Fe(o,l.history)==-1&&(Ns(l.history,r),o.push(l.history)),Bo(l,r,null,fa(l,r))})}}function Fa(e,r,a){var o=e.cm&&e.cm.state.suppressEdits;if(!(o&&!a)){for(var l=e.history,d,g=e.sel,b=r=="undo"?l.done:l.undone,w=r=="undo"?l.undone:l.done,O=0;O<b.length&&(d=b[O],!(a?d.ranges&&!d.equals(e.sel):!d.ranges));O++);if(O!=b.length){for(l.lastOrigin=l.lastSelOrigin=null;;)if(d=b.pop(),d.ranges){if(Li(d,w),a&&!d.equals(e.sel)){fr(e,d,{clearRedo:!1});return}g=d}else if(o){b.push(d);return}else break;var U=[];Li(g,w),w.push({changes:U,generation:l.generation}),l.generation=d.generation||++l.maxGeneration;for(var X=_t(e,"beforeChange")||e.cm&&_t(e.cm,"beforeChange"),he=function(Ce){var Le=d.changes[Ce];if(Le.origin=r,X&&!tu(e,Le,!1))return b.length=0,{};U.push(Ia(e,Le));var Me=Ce?B(e,Le):Je(b);Bo(e,Le,Me,Jl(e,Le)),!Ce&&e.cm&&e.cm.scrollIntoView({from:Le.from,to:ui(Le)});var Ee=[];fi(e,function(De,We){!We&&Fe(Ee,De.history)==-1&&(Ns(De.history,Le),Ee.push(De.history)),Bo(De,Le,null,Jl(De,Le))})},le=d.changes.length-1;le>=0;--le){var xe=he(le);if(xe)return xe.v}}}}function Ra(e,r){if(r!=0&&(e.first+=r,e.sel=new Rr(xt(e.sel.ranges,function(l){return new Et(A(l.anchor.line+r,l.anchor.ch),A(l.head.line+r,l.head.ch))}),e.sel.primIndex),e.cm)){Fr(e.cm,e.first,e.first-r,r);for(var a=e.cm.display,o=a.viewFrom;o<a.viewTo;o++)ii(e.cm,o,"gutter")}}function Bo(e,r,a,o){if(e.cm&&!e.cm.curOp)return lr(e.cm,Bo)(e,r,a,o);if(r.to.line<e.first){Ra(e,r.text.length-1-(r.to.line-r.from.line));return}if(!(r.from.line>e.lastLine())){if(r.from.line<e.first){var l=r.text.length-1-(e.first-r.from.line);Ra(e,l),r={from:A(e.first,0),to:A(r.to.line+l,r.to.ch),text:[Je(r.text)],origin:r.origin}}var d=e.lastLine();r.to.line>d&&(r={from:r.from,to:A(d,Ve(e,d).text.length),text:[r.text[0]],origin:r.origin}),r.removed=Hn(e,r.from,r.to),a||(a=B(e,r)),e.cm?ru(e.cm,r,o):Ps(e,r,o),gt(e,a,Ft),e.cantEdit&&Da(e,A(e.firstLine(),0))&&(e.cantEdit=!1)}}function ru(e,r,a){var o=e.doc,l=e.display,d=r.from,g=r.to,b=!1,w=d.line;e.options.lineWrapping||(w=Ct(xn(Ve(o,d.line))),o.iter(w,g.line+1,function(le){if(le==l.maxLine)return b=!0,!0})),o.sel.contains(r.from,r.to)>-1&&lt(e),Ps(o,r,a,kl(e)),e.options.lineWrapping||(o.iter(w,d.line+r.text.length,function(le){var xe=ha(le);xe>l.maxLineLength&&(l.maxLine=le,l.maxLineLength=xe,l.maxLineChanged=!0,b=!1)}),b&&(e.curOp.updateMaxLine=!0)),il(o,d.line),Fo(e,400);var O=r.text.length-(g.line-d.line)-1;r.full?Fr(e):d.line==g.line&&r.text.length==1&&!Vl(e.doc,r)?ii(e,d.line,"text"):Fr(e,d.line,g.line+1,O);var U=_t(e,"changes"),X=_t(e,"change");if(X||U){var he={from:d,to:g,text:r.text,removed:r.removed,origin:r.origin};X&&sr(e,"change",e,he),U&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(he)}e.display.selForContextMenu=null}function uo(e,r,a,o,l){var d;o||(o=a),z(o,a)<0&&(d=[o,a],a=d[0],o=d[1]),typeof r=="string"&&(r=e.splitLines(r)),Ni(e,{from:a,to:o,text:r,origin:l})}function nu(e,r,a,o){a<e.line?e.line+=o:r<e.line&&(e.line=r,e.ch=0)}function iu(e,r,a,o){for(var l=0;l<e.length;++l){var d=e[l],g=!0;if(d.ranges){d.copied||(d=e[l]=d.deepCopy(),d.copied=!0);for(var b=0;b<d.ranges.length;b++)nu(d.ranges[b].anchor,r,a,o),nu(d.ranges[b].head,r,a,o);continue}for(var w=0;w<d.changes.length;++w){var O=d.changes[w];if(a<O.from.line)O.from=A(O.from.line+o,O.from.ch),O.to=A(O.to.line+o,O.to.ch);else if(r<=O.to.line){g=!1;break}}g||(e.splice(0,l+1),l=0)}}function Ns(e,r){var a=r.from.line,o=r.to.line,l=r.text.length-(o-a)-1;iu(e.done,a,o,l),iu(e.undone,a,o,l)}function jo(e,r,a,o){var l=r,d=r;return typeof r=="number"?d=Ve(e,At(e,r)):l=Ct(r),l==null?null:(o(d,l)&&e.cm&&ii(e.cm,l,a),d)}function Di(e){this.lines=e,this.parent=null;for(var r=0,a=0;a<e.length;++a)e[a].parent=this,r+=e[a].height;this.height=r}Di.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,r){for(var a=e,o=e+r;a<o;++a){var l=this.lines[a];this.height-=l.height,pl(l),sr(l,"delete")}this.lines.splice(e,r)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,r,a){this.height+=a,this.lines=this.lines.slice(0,e).concat(r).concat(this.lines.slice(e));for(var o=0;o<r.length;++o)r[o].parent=this},iterN:function(e,r,a){for(var o=e+r;e<o;++e)if(a(this.lines[e]))return!0}};function fo(e){this.children=e;for(var r=0,a=0,o=0;o<e.length;++o){var l=e[o];r+=l.chunkSize(),a+=l.height,l.parent=this}this.size=r,this.height=a,this.parent=null}fo.prototype={chunkSize:function(){return this.size},removeInner:function(e,r){this.size-=r;for(var a=0;a<this.children.length;++a){var o=this.children[a],l=o.chunkSize();if(e<l){var d=Math.min(r,l-e),g=o.height;if(o.removeInner(e,d),this.height-=g-o.height,l==d&&(this.children.splice(a--,1),o.parent=null),(r-=d)==0)break;e=0}else e-=l}if(this.size-r<25&&(this.children.length>1||!(this.children[0]instanceof Di))){var b=[];this.collapse(b),this.children=[new Di(b)],this.children[0].parent=this}},collapse:function(e){for(var r=0;r<this.children.length;++r)this.children[r].collapse(e)},insertInner:function(e,r,a){this.size+=r.length,this.height+=a;for(var o=0;o<this.children.length;++o){var l=this.children[o],d=l.chunkSize();if(e<=d){if(l.insertInner(e,r,a),l.lines&&l.lines.length>50){for(var g=l.lines.length%25+25,b=g;b<l.lines.length;){var w=new Di(l.lines.slice(b,b+=25));l.height-=w.height,this.children.splice(++o,0,w),w.parent=this}l.lines=l.lines.slice(0,g),this.maybeSpill()}break}e-=d}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var r=e.children.splice(e.children.length-5,5),a=new fo(r);if(e.parent){e.size-=a.size,e.height-=a.height;var l=Fe(e.parent.children,e);e.parent.children.splice(l+1,0,a)}else{var o=new fo(e.children);o.parent=e,e.children=[o,a],e=o}a.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,r,a){for(var o=0;o<this.children.length;++o){var l=this.children[o],d=l.chunkSize();if(e<d){var g=Math.min(r,d-e);if(l.iterN(e,g,a))return!0;if((r-=g)==0)break;e=0}else e-=d}}};var Wo=function(e,r,a){if(a)for(var o in a)a.hasOwnProperty(o)&&(this[o]=a[o]);this.doc=e,this.node=r};Wo.prototype.clear=function(){var e=this.doc.cm,r=this.line.widgets,a=this.line,o=Ct(a);if(!(o==null||!r)){for(var l=0;l<r.length;++l)r[l]==this&&r.splice(l--,1);r.length||(a.widgets=null);var d=$n(this);nn(a,Math.max(0,a.height-d)),e&&(Vr(e,function(){ou(e,a,-d),ii(e,o,"widget")}),sr(e,"lineWidgetCleared",e,this,o))}},Wo.prototype.changed=function(){var e=this,r=this.height,a=this.doc.cm,o=this.line;this.height=null;var l=$n(this)-r;l&&(_n(this.doc,o)||nn(o,o.height+l),a&&Vr(a,function(){a.curOp.forceUpdate=!0,ou(a,o,l),sr(a,"lineWidgetChanged",a,e,Ct(o))}))},kr(Wo);function ou(e,r,a){Vn(r)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Cs(e,a)}function Bf(e,r,a,o){var l=new Wo(e,a,o),d=e.cm;return d&&l.noHScroll&&(d.display.alignWidgets=!0),jo(e,r,"widget",function(g){var b=g.widgets||(g.widgets=[]);if(l.insertAt==null?b.push(l):b.splice(Math.min(b.length,Math.max(0,l.insertAt)),0,l),l.line=g,d&&!_n(e,g)){var w=Vn(g)<e.scrollTop;nn(g,g.height+$n(l)),w&&Cs(d,l.height),d.curOp.forceUpdate=!0}return!0}),d&&sr(d,"lineWidgetAdded",d,l,typeof r=="number"?r:Ct(r)),l}var au=0,Zr=function(e,r){this.lines=[],this.type=r,this.doc=e,this.id=++au};Zr.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,r=e&&!e.curOp;if(r&&Ti(e),_t(this,"clear")){var a=this.find();a&&sr(this,"clear",a.from,a.to)}for(var o=null,l=null,d=0;d<this.lines.length;++d){var g=this.lines[d],b=Gi(g.markedSpans,this);e&&!this.collapsed?ii(e,Ct(g),"text"):e&&(b.to!=null&&(l=Ct(g)),b.from!=null&&(o=Ct(g))),g.markedSpans=Xe(g.markedSpans,b),b.from==null&&this.collapsed&&!_n(this.doc,g)&&e&&nn(g,Zi(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var w=0;w<this.lines.length;++w){var O=xn(this.lines[w]),U=ha(O);U>e.display.maxLineLength&&(e.display.maxLine=O,e.display.maxLineLength=U,e.display.maxLineChanged=!0)}o!=null&&e&&this.collapsed&&Fr(e,o,l+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&ot(e.doc)),e&&sr(e,"markerCleared",e,this,o,l),r&&Pi(e),this.parent&&this.parent.clear()}},Zr.prototype.find=function(e,r){e==null&&this.type=="bookmark"&&(e=1);for(var a,o,l=0;l<this.lines.length;++l){var d=this.lines[l],g=Gi(d.markedSpans,this);if(g.from!=null&&(a=A(r?d:Ct(d),g.from),e==-1))return a;if(g.to!=null&&(o=A(r?d:Ct(d),g.to),e==1))return o}return a&&{from:a,to:o}},Zr.prototype.changed=function(){var e=this,r=this.find(-1,!0),a=this,o=this.doc.cm;!r||!o||Vr(o,function(){var l=r.line,d=Ct(r.line),g=ya(o,d);if(g&&(us(g),o.curOp.selectionChanged=o.curOp.forceUpdate=!0),o.curOp.updateMaxLine=!0,!_n(a.doc,l)&&a.height!=null){var b=a.height;a.height=null;var w=$n(a)-b;w&&nn(l,l.height+w)}sr(o,"markerChanged",o,e)})},Zr.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(!r.maybeHiddenMarkers||Fe(r.maybeHiddenMarkers,this)==-1)&&(r.maybeUnhiddenMarkers||(r.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Zr.prototype.detachLine=function(e){if(this.lines.splice(Fe(this.lines,e),1),!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(r.maybeHiddenMarkers||(r.maybeHiddenMarkers=[])).push(this)}},kr(Zr);function ln(e,r,a,o,l){if(o&&o.shared)return jf(e,r,a,o,l);if(e.cm&&!e.cm.curOp)return lr(e.cm,ln)(e,r,a,o,l);var d=new Zr(e,l),g=z(r,a);if(o&&Ot(o,d,!1),g>0||g==0&&d.clearWhenEmpty!==!1)return d;if(d.replacedWith&&(d.collapsed=!0,d.widgetNode=ve("span",[d.replacedWith],"CodeMirror-widget"),o.handleMouseEvents||d.widgetNode.setAttribute("cm-ignore-events","true"),o.insertLeft&&(d.widgetNode.insertLeft=!0)),d.collapsed){if(cl(e,r.line,r,a,d)||r.line!=a.line&&cl(e,a.line,r,a,d))throw new Error("Inserting collapsed marker partially overlapping an existing one");$i()}d.addToHistory&&Kl(e,{from:r,to:a,origin:"markText"},e.sel,NaN);var b=r.line,w=e.cm,O;if(e.iter(b,a.line+1,function(X){w&&d.collapsed&&!w.options.lineWrapping&&xn(X)==w.display.maxLine&&(O=!0),d.collapsed&&b!=r.line&&nn(X,0),ua(X,new la(d,b==r.line?r.ch:null,b==a.line?a.ch:null),e.cm&&e.cm.curOp),++b}),d.collapsed&&e.iter(r.line,a.line+1,function(X){_n(e,X)&&nn(X,0)}),d.clearOnEnter&&ne(d,"beforeCursorEnter",function(){return d.clear()}),d.readOnly&&(al(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),d.collapsed&&(d.id=++au,d.atomic=!0),w){if(O&&(w.curOp.updateMaxLine=!0),d.collapsed)Fr(w,r.line,a.line+1);else if(d.className||d.startStyle||d.endStyle||d.css||d.attributes||d.title)for(var U=r.line;U<=a.line;U++)ii(w,U,"text");d.atomic&&ot(w.doc),sr(w,"markerAdded",w,d)}return d}var Ho=function(e,r){this.markers=e,this.primary=r;for(var a=0;a<e.length;++a)e[a].parent=this};Ho.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();sr(this,"clear")}},Ho.prototype.find=function(e,r){return this.primary.find(e,r)},kr(Ho);function jf(e,r,a,o,l){o=Ot(o),o.shared=!1;var d=[ln(e,r,a,o,l)],g=d[0],b=o.widgetNode;return fi(e,function(w){b&&(o.widgetNode=b.cloneNode(!0)),d.push(ln(w,$e(w,r),$e(w,a),o,l));for(var O=0;O<w.linked.length;++O)if(w.linked[O].isParent)return;g=Je(d)}),new Ho(d,g)}function su(e){return e.findMarks(A(e.first,0),e.clipPos(A(e.lastLine())),function(r){return r.parent})}function lu(e,r){for(var a=0;a<r.length;a++){var o=r[a],l=o.find(),d=e.clipPos(l.from),g=e.clipPos(l.to);if(z(d,g)){var b=ln(e,d,g,o.primary,o.primary.type);o.markers.push(b),b.parent=o}}}function Wf(e){for(var r=function(o){var l=e[o],d=[l.primary.doc];fi(l.primary.doc,function(w){return d.push(w)});for(var g=0;g<l.markers.length;g++){var b=l.markers[g];Fe(d,b.doc)==-1&&(b.parent=null,l.markers.splice(g--,1))}},a=0;a<e.length;a++)r(a)}var Hf=0,Pr=function(e,r,a,o,l){if(!(this instanceof Pr))return new Pr(e,r,a,o,l);a==null&&(a=0),fo.call(this,[new Di([new xi("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var d=A(a,0);this.sel=li(d),this.history=new La(null),this.id=++Hf,this.modeOption=r,this.lineSep=o,this.direction=l=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),Ps(this,{from:d,to:d,text:e}),fr(this,li(d),Ft)};Pr.prototype=Rt(fo.prototype,{constructor:Pr,iter:function(e,r,a){a?this.iterN(e-this.first,r-e,a):this.iterN(this.first,this.first+this.size,e)},insert:function(e,r){for(var a=0,o=0;o<r.length;++o)a+=r[o].height;this.insertInner(e-this.first,r,a)},remove:function(e,r){this.removeInner(e-this.first,r)},getValue:function(e){var r=gi(this,this.first,this.first+this.size);return e===!1?r:r.join(e||this.lineSeparator())},setValue:ur(function(e){var r=A(this.first,0),a=this.first+this.size-1;Ni(this,{from:r,to:A(a,Ve(this,a).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Ei(this.cm,0,0),fr(this,li(r),Ft)}),replaceRange:function(e,r,a,o){r=$e(this,r),a=a?$e(this,a):r,uo(this,e,r,a,o)},getRange:function(e,r,a){var o=Hn(this,$e(this,e),$e(this,r));return a===!1?o:a===""?o.join(""):o.join(a||this.lineSeparator())},getLine:function(e){var r=this.getLineHandle(e);return r&&r.text},getLineHandle:function(e){if(mi(this,e))return Ve(this,e)},getLineNumber:function(e){return Ct(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Ve(this,e)),xn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return $e(this,e)},getCursor:function(e){var r=this.sel.primary(),a;return e==null||e=="head"?a=r.head:e=="anchor"?a=r.anchor:e=="end"||e=="to"||e===!1?a=r.to():a=r.from(),a},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ur(function(e,r,a){Is(this,$e(this,typeof e=="number"?A(e,r||0):e),null,a)}),setSelection:ur(function(e,r,a){Is(this,$e(this,e),$e(this,r||e),a)}),extendSelection:ur(function(e,r,a){Mi(this,$e(this,e),r&&$e(this,r),a)}),extendSelections:ur(function(e,r){Ql(this,Eo(this,e),r)}),extendSelectionsBy:ur(function(e,r){var a=xt(this.sel.ranges,e);Ql(this,Eo(this,a),r)}),setSelections:ur(function(e,r,a){if(e.length){for(var o=[],l=0;l<e.length;l++)o[l]=new Et($e(this,e[l].anchor),$e(this,e[l].head||e[l].anchor));r==null&&(r=Math.min(e.length-1,this.sel.primIndex)),fr(this,wn(this.cm,o,r),a)}}),addSelection:ur(function(e,r,a){var o=this.sel.ranges.slice(0);o.push(new Et($e(this,e),$e(this,r||e))),fr(this,wn(this.cm,o,o.length-1),a)}),getSelection:function(e){for(var r=this.sel.ranges,a,o=0;o<r.length;o++){var l=Hn(this,r[o].from(),r[o].to());a=a?a.concat(l):l}return e===!1?a:a.join(e||this.lineSeparator())},getSelections:function(e){for(var r=[],a=this.sel.ranges,o=0;o<a.length;o++){var l=Hn(this,a[o].from(),a[o].to());e!==!1&&(l=l.join(e||this.lineSeparator())),r[o]=l}return r},replaceSelection:function(e,r,a){for(var o=[],l=0;l<this.sel.ranges.length;l++)o[l]=e;this.replaceSelections(o,r,a||"+input")},replaceSelections:ur(function(e,r,a){for(var o=[],l=this.sel,d=0;d<l.ranges.length;d++){var g=l.ranges[d];o[d]={from:g.from(),to:g.to(),text:this.splitLines(e[d]),origin:a}}for(var b=r&&r!="end"&&Nn(this,o,r),w=o.length-1;w>=0;w--)Ni(this,o[w]);b?ql(this,b):this.cm&&no(this.cm)}),undo:ur(function(){Fa(this,"undo")}),redo:ur(function(){Fa(this,"redo")}),undoSelection:ur(function(){Fa(this,"undo",!0)}),redoSelection:ur(function(){Fa(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,r=0,a=0,o=0;o<e.done.length;o++)e.done[o].ranges||++r;for(var l=0;l<e.undone.length;l++)e.undone[l].ranges||++a;return{undo:r,redo:a}},clearHistory:function(){var e=this;this.history=new La(this.history),fi(this,function(r){return r.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:Ii(this.history.done),undone:Ii(this.history.undone)}},setHistory:function(e){var r=this.history=new La(this.history);r.done=Ii(e.done.slice(0),null,!0),r.undone=Ii(e.undone.slice(0),null,!0)},setGutterMarker:ur(function(e,r,a){return jo(this,e,"gutter",function(o){var l=o.gutterMarkers||(o.gutterMarkers={});return l[r]=a,!a&&tn(l)&&(o.gutterMarkers=null),!0})}),clearGutter:ur(function(e){var r=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[e]&&jo(r,a,"gutter",function(){return a.gutterMarkers[e]=null,tn(a.gutterMarkers)&&(a.gutterMarkers=null),!0})})}),lineInfo:function(e){var r;if(typeof e=="number"){if(!mi(this,e)||(r=e,e=Ve(this,e),!e))return null}else if(r=Ct(e),r==null)return null;return{line:r,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:ur(function(e,r,a){return jo(this,e,r=="gutter"?"gutter":"class",function(o){var l=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass";if(!o[l])o[l]=a;else{if(H(a).test(o[l]))return!1;o[l]+=" "+a}return!0})}),removeLineClass:ur(function(e,r,a){return jo(this,e,r=="gutter"?"gutter":"class",function(o){var l=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass",d=o[l];if(d)if(a==null)o[l]=null;else{var g=d.match(H(a));if(!g)return!1;var b=g.index+g[0].length;o[l]=d.slice(0,g.index)+(!g.index||b==d.length?"":" ")+d.slice(b)||null}else return!1;return!0})}),addLineWidget:ur(function(e,r,a){return Bf(this,e,r,a)}),removeLineWidget:function(e){e.clear()},markText:function(e,r,a){return ln(this,$e(this,e),$e(this,r),a,a&&a.type||"range")},setBookmark:function(e,r){var a={replacedWith:r&&(r.nodeType==null?r.widget:r),insertLeft:r&&r.insertLeft,clearWhenEmpty:!1,shared:r&&r.shared,handleMouseEvents:r&&r.handleMouseEvents};return e=$e(this,e),ln(this,e,e,a,"bookmark")},findMarksAt:function(e){e=$e(this,e);var r=[],a=Ve(this,e.line).markedSpans;if(a)for(var o=0;o<a.length;++o){var l=a[o];(l.from==null||l.from<=e.ch)&&(l.to==null||l.to>=e.ch)&&r.push(l.marker.parent||l.marker)}return r},findMarks:function(e,r,a){e=$e(this,e),r=$e(this,r);var o=[],l=e.line;return this.iter(e.line,r.line+1,function(d){var g=d.markedSpans;if(g)for(var b=0;b<g.length;b++){var w=g[b];!(w.to!=null&&l==e.line&&e.ch>=w.to||w.from==null&&l!=e.line||w.from!=null&&l==r.line&&w.from>=r.ch)&&(!a||a(w.marker))&&o.push(w.marker.parent||w.marker)}++l}),o},getAllMarks:function(){var e=[];return this.iter(function(r){var a=r.markedSpans;if(a)for(var o=0;o<a.length;++o)a[o].from!=null&&e.push(a[o].marker)}),e},posFromIndex:function(e){var r,a=this.first,o=this.lineSeparator().length;return this.iter(function(l){var d=l.text.length+o;if(d>e)return r=e,!0;e-=d,++a}),$e(this,A(a,r))},indexFromPos:function(e){e=$e(this,e);var r=e.ch;if(e.line<this.first||e.ch<0)return 0;var a=this.lineSeparator().length;return this.iter(this.first,e.line,function(o){r+=o.text.length+a}),r},copy:function(e){var r=new Pr(gi(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return r.scrollTop=this.scrollTop,r.scrollLeft=this.scrollLeft,r.sel=this.sel,r.extend=!1,e&&(r.history.undoDepth=this.history.undoDepth,r.setHistory(this.getHistory())),r},linkedDoc:function(e){e||(e={});var r=this.first,a=this.first+this.size;e.from!=null&&e.from>r&&(r=e.from),e.to!=null&&e.to<a&&(a=e.to);var o=new Pr(gi(this,r,a),e.mode||this.modeOption,r,this.lineSep,this.direction);return e.sharedHist&&(o.history=this.history),(this.linked||(this.linked=[])).push({doc:o,sharedHist:e.sharedHist}),o.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],lu(o,su(this)),o},unlinkDoc:function(e){if(e instanceof Wt&&(e=e.doc),this.linked)for(var r=0;r<this.linked.length;++r){var a=this.linked[r];if(a.doc==e){this.linked.splice(r,1),e.unlinkDoc(this),Wf(su(this));break}}if(e.history==this.history){var o=[e.id];fi(e,function(l){return o.push(l.id)},!0),e.history=new La(null),e.history.done=Ii(this.history.done,o),e.history.undone=Ii(this.history.undone,o)}},iterLinkedDocs:function(e){fi(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):mn(e)},lineSeparator:function(){return this.lineSep||`
23
- `},setDirection:ur(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(r){return r.order=null}),this.cm&&Nf(this.cm))})}),Pr.prototype.eachLine=Pr.prototype.iter;var co=0;function Uf(e){var r=this;if(un(r),!(ft(r,e)||Gn(r.display,e))){wt(e),D&&(co=+new Date);var a=Ai(r,e,!0),o=e.dataTransfer.files;if(!(!a||r.isReadOnly()))if(o&&o.length&&window.FileReader&&window.File)for(var l=o.length,d=Array(l),g=0,b=function(){++g==l&&lr(r,function(){a=$e(r.doc,a);var le={from:a,to:a,text:r.doc.splitLines(d.filter(function(xe){return xe!=null}).join(r.doc.lineSeparator())),origin:"paste"};Ni(r.doc,le),ql(r.doc,li($e(r.doc,a),$e(r.doc,ui(le))))})()},w=function(le,xe){if(r.options.allowDropFileTypes&&Fe(r.options.allowDropFileTypes,le.type)==-1){b();return}var Ce=new FileReader;Ce.onerror=function(){return b()},Ce.onload=function(){var Le=Ce.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Le)){b();return}d[xe]=Le,b()},Ce.readAsText(le)},O=0;O<o.length;O++)w(o[O],O);else{if(r.state.draggingText&&r.doc.sel.contains(a)>-1){r.state.draggingText(e),setTimeout(function(){return r.display.input.focus()},20);return}try{var U=e.dataTransfer.getData("Text");if(U){var X;if(r.state.draggingText&&!r.state.draggingText.copy&&(X=r.listSelections()),gt(r.doc,li(a,a)),X)for(var he=0;he<X.length;++he)uo(r.doc,"",X[he].anchor,X[he].head,"drag");r.replaceSelection(U,"around","paste"),r.display.input.focus()}}catch{}}}}function Ba(e,r){if(D&&(!e.state.draggingText||+new Date-co<100)){mr(r);return}if(!(ft(e,r)||Gn(e.display,r))&&(r.dataTransfer.setData("Text",e.getSelection()),r.dataTransfer.effectAllowed="copyMove",r.dataTransfer.setDragImage&&!se)){var a=G("img",null,null,"position: fixed; left: 0; top: 0;");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",re&&(a.width=a.height=1,e.display.wrapper.appendChild(a),a._top=a.offsetTop),r.dataTransfer.setDragImage(a,0,0),re&&a.parentNode.removeChild(a)}}function uu(e,r){var a=Ai(e,r);if(a){var o=document.createDocumentFragment();Sa(e,a,o),e.display.dragCursor||(e.display.dragCursor=G("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),ge(e.display.dragCursor,o)}}function un(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function zf(e){if(document.getElementsByClassName){for(var r=document.getElementsByClassName("CodeMirror"),a=[],o=0;o<r.length;o++){var l=r[o].CodeMirror;l&&a.push(l)}a.length&&a[0].operation(function(){for(var d=0;d<a.length;d++)e(a[d])})}}var Ds=!1;function fu(){Ds||(Uo(),Ds=!0)}function Uo(){var e;ne(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,zf(Ge)},100))}),ne(window,"blur",function(){return zf(to)})}function Ge(e){var r=e.display;r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null,r.scrollbarsClipped=!1,e.setSize()}for(var di={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"},jt=0;jt<10;jt++)di[jt+48]=di[jt+96]=String(jt);for(var ja=65;ja<=90;ja++)di[ja]=String.fromCharCode(ja);for(var zo=1;zo<=12;zo++)di[zo+111]=di[zo+63235]="F"+zo;var Yn={};Yn.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"},Yn.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"},Yn.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"},Yn.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"]},Yn.default=L?Yn.macDefault:Yn.pcDefault;function _f(e){var r=e.split(/-(?!$)/);e=r[r.length-1];for(var a,o,l,d,g=0;g<r.length-1;g++){var b=r[g];if(/^(cmd|meta|m)$/i.test(b))d=!0;else if(/^a(lt)?$/i.test(b))a=!0;else if(/^(c|ctrl|control)$/i.test(b))o=!0;else if(/^s(hift)?$/i.test(b))l=!0;else throw new Error("Unrecognized modifier name: "+b)}return a&&(e="Alt-"+e),o&&(e="Ctrl-"+e),d&&(e="Cmd-"+e),l&&(e="Shift-"+e),e}function Vf(e){var r={};for(var a in e)if(e.hasOwnProperty(a)){var o=e[a];if(/^(name|fallthrough|(de|at)tach)$/.test(a))continue;if(o=="..."){delete e[a];continue}for(var l=xt(a.split(" "),_f),d=0;d<l.length;d++){var g=void 0,b=void 0;d==l.length-1?(b=l.join(" "),g=o):(b=l.slice(0,d+1).join(" "),g="...");var w=r[b];if(!w)r[b]=g;else if(w!=g)throw new Error("Inconsistent bindings for "+b)}delete e[a]}for(var O in r)e[O]=r[O];return e}function Fi(e,r,a,o){r=_o(r);var l=r.call?r.call(e,o):r[e];if(l===!1)return"nothing";if(l==="...")return"multi";if(l!=null&&a(l))return"handled";if(r.fallthrough){if(Object.prototype.toString.call(r.fallthrough)!="[object Array]")return Fi(e,r.fallthrough,a,o);for(var d=0;d<r.fallthrough.length;d++){var g=Fi(e,r.fallthrough[d],a,o);if(g)return g}}}function cu(e){var r=typeof e=="string"?e:di[e.keyCode];return r=="Ctrl"||r=="Alt"||r=="Shift"||r=="Mod"}function du(e,r,a){var o=e;return r.altKey&&o!="Alt"&&(e="Alt-"+e),(j?r.metaKey:r.ctrlKey)&&o!="Ctrl"&&(e="Ctrl-"+e),(j?r.ctrlKey:r.metaKey)&&o!="Mod"&&(e="Cmd-"+e),!a&&r.shiftKey&&o!="Shift"&&(e="Shift-"+e),e}function Fs(e,r){if(re&&e.keyCode==34&&e.char)return!1;var a=di[e.keyCode];return a==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(a=e.code),du(a,e,r))}function _o(e){return typeof e=="string"?Yn[e]:e}function Ri(e,r){for(var a=e.doc.sel.ranges,o=[],l=0;l<a.length;l++){for(var d=r(a[l]);o.length&&z(d.from,Je(o).to)<=0;){var g=o.pop();if(z(g.from,d.from)<0){d.from=g.from;break}}o.push(d)}Vr(e,function(){for(var b=o.length-1;b>=0;b--)uo(e.doc,"",o[b].from,o[b].to,"+delete");no(e)})}function Rs(e,r,a){var o=Ur(e.text,r+a,a);return o<0||o>e.text.length?null:o}function Bs(e,r,a){var o=Rs(e,r.ch,a);return o==null?null:new A(r.line,o,a<0?"after":"before")}function js(e,r,a,o,l){if(e){r.doc.direction=="rtl"&&(l=-l);var d=Qe(a,r.doc.direction);if(d){var g=l<0?Je(d):d[0],b=l<0==(g.level==1),w=b?"after":"before",O;if(g.level>0||r.doc.direction=="rtl"){var U=wi(r,a);O=l<0?a.text.length-1:0;var X=an(r,U,O).top;O=gr(function(he){return an(r,U,he).top==X},l<0==(g.level==1)?g.from:g.to-1,O),w=="before"&&(O=Rs(a,O,1))}else O=l<0?g.to:g.from;return new A(o,O,w)}}return new A(o,l<0?a.text.length:0,l<0?"before":"after")}function hu(e,r,a,o){var l=Qe(r,e.doc.direction);if(!l)return Bs(r,a,o);a.ch>=r.text.length?(a.ch=r.text.length,a.sticky="before"):a.ch<=0&&(a.ch=0,a.sticky="after");var d=mt(l,a.ch,a.sticky),g=l[d];if(e.doc.direction=="ltr"&&g.level%2==0&&(o>0?g.to>a.ch:g.from<a.ch))return Bs(r,a,o);var b=function(Me,Ee){return Rs(r,Me instanceof A?Me.ch:Me,Ee)},w,O=function(Me){return e.options.lineWrapping?(w=w||wi(e,r),El(e,r,w,Me)):{begin:0,end:r.text.length}},U=O(a.sticky=="before"?b(a,-1):a.ch);if(e.doc.direction=="rtl"||g.level==1){var X=g.level==1==o<0,he=b(a,X?1:-1);if(he!=null&&(X?he<=g.to&&he<=U.end:he>=g.from&&he>=U.begin)){var le=X?"before":"after";return new A(a.line,he,le)}}var xe=function(Me,Ee,De){for(var We=function(Tt,ar){return ar?new A(a.line,b(Tt,1),"before"):new A(a.line,Tt,"after")};Me>=0&&Me<l.length;Me+=Ee){var Ye=l[Me],Ke=Ee>0==(Ye.level!=1),pt=Ke?De.begin:b(De.end,-1);if(Ye.from<=pt&&pt<Ye.to||(pt=Ke?Ye.from:b(Ye.to,-1),De.begin<=pt&&pt<De.end))return We(pt,Ke)}},Ce=xe(d+o,o,U);if(Ce)return Ce;var Le=o>0?U.end:b(U.begin,-1);return Le!=null&&!(o>0&&Le==r.text.length)&&(Ce=xe(o>0?0:l.length-1,o,O(Le)),Ce)?Ce:null}var Vo={selectAll:ci,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Ft)},killLine:function(e){return Ri(e,function(r){if(r.empty()){var a=Ve(e.doc,r.head.line).text.length;return r.head.ch==a&&r.head.line<e.lastLine()?{from:r.head,to:A(r.head.line+1,0)}:{from:r.head,to:A(r.head.line,a)}}else return{from:r.from(),to:r.to()}})},deleteLine:function(e){return Ri(e,function(r){return{from:A(r.from().line,0),to:$e(e.doc,A(r.to().line+1,0))}})},delLineLeft:function(e){return Ri(e,function(r){return{from:A(r.from().line,0),to:r.from()}})},delWrappedLineLeft:function(e){return Ri(e,function(r){var a=e.charCoords(r.head,"div").top+5,o=e.coordsChar({left:0,top:a},"div");return{from:o,to:r.from()}})},delWrappedLineRight:function(e){return Ri(e,function(r){var a=e.charCoords(r.head,"div").top+5,o=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:a},"div");return{from:r.from(),to:o}})},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(A(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(A(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(r){return pu(e,r.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(r){return $o(e,r.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(r){return $f(e,r.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(r){var a=e.cursorCoords(r.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:a},"div")},St)},goLineLeft:function(e){return e.extendSelectionsBy(function(r){var a=e.cursorCoords(r.head,"div").top+5;return e.coordsChar({left:0,top:a},"div")},St)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(r){var a=e.cursorCoords(r.head,"div").top+5,o=e.coordsChar({left:0,top:a},"div");return o.ch<e.getLine(o.line).search(/\S/)?$o(e,r.head):o},St)},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(" ")},insertSoftTab:function(e){for(var r=[],a=e.listSelections(),o=e.options.tabSize,l=0;l<a.length;l++){var d=a[l].from(),g=nt(e.getLine(d.line),d.ch,o);r.push(hr(o-g%o))}e.replaceSelections(r)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Vr(e,function(){for(var r=e.listSelections(),a=[],o=0;o<r.length;o++)if(r[o].empty()){var l=r[o].head,d=Ve(e.doc,l.line).text;if(d){if(l.ch==d.length&&(l=new A(l.line,l.ch-1)),l.ch>0)l=new A(l.line,l.ch+1),e.replaceRange(d.charAt(l.ch-1)+d.charAt(l.ch-2),A(l.line,l.ch-2),l,"+transpose");else if(l.line>e.doc.first){var g=Ve(e.doc,l.line-1).text;g&&(l=new A(l.line,1),e.replaceRange(d.charAt(0)+e.doc.lineSeparator()+g.charAt(g.length-1),A(l.line-1,g.length-1),l,"+transpose"))}}a.push(new Et(l,l))}e.setSelections(a)})},newlineAndIndent:function(e){return Vr(e,function(){for(var r=e.listSelections(),a=r.length-1;a>=0;a--)e.replaceRange(e.doc.lineSeparator(),r[a].anchor,r[a].head,"+input");r=e.listSelections();for(var o=0;o<r.length;o++)e.indentLine(r[o].from().line,null,!0);no(e)})},openLine:function(e){return e.replaceSelection(`
24
- `,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function pu(e,r){var a=Ve(e.doc,r),o=xn(a);return o!=a&&(r=Ct(o)),js(!0,e,o,r,1)}function $f(e,r){var a=Ve(e.doc,r),o=Xu(a);return o!=a&&(r=Ct(o)),js(!0,e,a,r,-1)}function $o(e,r){var a=pu(e,r.line),o=Ve(e.doc,a.line),l=Qe(o,e.doc.direction);if(!l||l[0].level==0){var d=Math.max(a.ch,o.text.search(/\S/)),g=r.line==a.line&&r.ch<=d&&r.ch;return A(a.line,g?0:d,a.sticky)}return a}function Go(e,r,a){if(typeof r=="string"&&(r=Vo[r],!r))return!1;e.display.input.ensurePolled();var o=e.display.shift,l=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),a&&(e.display.shift=!1),l=r(e)!=it}finally{e.display.shift=o,e.state.suppressEdits=!1}return l}function vu(e,r,a){for(var o=0;o<e.state.keyMaps.length;o++){var l=Fi(r,e.state.keyMaps[o],a,e);if(l)return l}return e.options.extraKeys&&Fi(r,e.options.extraKeys,a,e)||Fi(r,e.options.keyMap,a,e)}var gu=new Ue;function Ko(e,r,a,o){var l=e.state.keySeq;if(l){if(cu(r))return"handled";if(/\'$/.test(r)?e.state.keySeq=null:gu.set(50,function(){e.state.keySeq==l&&(e.state.keySeq=null,e.display.input.reset())}),mu(e,l+" "+r,a,o))return!0}return mu(e,r,a,o)}function mu(e,r,a,o){var l=vu(e,r,o);return l=="multi"&&(e.state.keySeq=r),l=="handled"&&sr(e,"keyHandled",e,r,a),(l=="handled"||l=="multi")&&(wt(a),ai(e)),!!l}function yu(e,r){var a=Fs(r,!0);return a?r.shiftKey&&!e.state.keySeq?Ko(e,"Shift-"+a,r,function(o){return Go(e,o,!0)})||Ko(e,a,r,function(o){if(typeof o=="string"?/^go[A-Z]/.test(o):o.motion)return Go(e,o)}):Ko(e,a,r,function(o){return Go(e,o)}):!1}function Ws(e,r,a){return Ko(e,"'"+a+"'",r,function(o){return Go(e,o,!0)})}var Hs=null;function bu(e){var r=this;if(!(e.target&&e.target!=r.display.input.getField())&&(r.curOp.focus=_e(at(r)),!ft(r,e))){D&&R<11&&e.keyCode==27&&(e.returnValue=!1);var a=e.keyCode;r.display.shift=a==16||e.shiftKey;var o=yu(r,e);re&&(Hs=o?a:null,!o&&a==88&&!Ui&&(L?e.metaKey:e.ctrlKey)&&r.replaceSelection("",null,"cut")),v&&!L&&!o&&a==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),a==18&&!/\bCodeMirror-crosshair\b/.test(r.display.lineDiv.className)&&Gf(r)}}function Gf(e){var r=e.display.lineDiv;ze(r,"CodeMirror-crosshair");function a(o){(o.keyCode==18||!o.altKey)&&(Y(r,"CodeMirror-crosshair"),je(document,"keyup",a),je(document,"mouseover",a))}ne(document,"keyup",a),ne(document,"mouseover",a)}function xu(e){e.keyCode==16&&(this.doc.sel.shift=!1),ft(this,e)}function Su(e){var r=this;if(!(e.target&&e.target!=r.display.input.getField())&&!(Gn(r.display,e)||ft(r,e)||e.ctrlKey&&!e.altKey||L&&e.metaKey)){var a=e.keyCode,o=e.charCode;if(re&&a==Hs){Hs=null,wt(e);return}if(!(re&&(!e.which||e.which<10)&&yu(r,e))){var l=String.fromCharCode(o??a);l!="\b"&&(Ws(r,e,l)||r.display.input.onKeyPress(e))}}}var Wa=400,Yo=function(e,r,a){this.time=e,this.pos=r,this.button=a};Yo.prototype.compare=function(e,r,a){return this.time+Wa>e&&z(r,this.pos)==0&&a==this.button};var Xo,Jo;function Ha(e,r){var a=+new Date;return Jo&&Jo.compare(a,e,r)?(Xo=Jo=null,"triple"):Xo&&Xo.compare(a,e,r)?(Jo=new Yo(a,e,r),Xo=null,"double"):(Xo=new Yo(a,e,r),Jo=null,"single")}function Us(e){var r=this,a=r.display;if(!(ft(r,e)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=e.shiftKey,Gn(a,e)){_||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!_s(r,e)){var o=Ai(r,e),l=jn(e),d=o?Ha(o,l):"single";Gt(r).focus(),l==1&&r.state.selectingText&&r.state.selectingText(e),!(o&&wu(r,l,o,d,e))&&(l==1?o?Kf(r,o,d,e):yr(e)==a.scroller&&wt(e):l==2?(o&&Mi(r.doc,o),setTimeout(function(){return a.input.focus()},20)):l==3&&(ie?r.display.input.onContextMenu(e):bs(r)))}}}function wu(e,r,a,o,l){var d="Click";return o=="double"?d="Double"+d:o=="triple"&&(d="Triple"+d),d=(r==1?"Left":r==2?"Middle":"Right")+d,Ko(e,du(d,l),l,function(g){if(typeof g=="string"&&(g=Vo[g]),!g)return!1;var b=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),b=g(e,a)!=it}finally{e.state.suppressEdits=!1}return b})}function Cu(e,r,a){var o=e.getOption("configureMouse"),l=o?o(e,r,a):{};if(l.unit==null){var d=F?a.shiftKey&&a.metaKey:a.altKey;l.unit=d?"rectangle":r=="single"?"char":r=="double"?"word":"line"}return(l.extend==null||e.doc.extend)&&(l.extend=e.doc.extend||a.shiftKey),l.addNew==null&&(l.addNew=L?a.metaKey:a.ctrlKey),l.moveOnDrag==null&&(l.moveOnDrag=!(L?a.altKey:a.ctrlKey)),l}function Kf(e,r,a,o){D?setTimeout(dt(Ca,e),0):e.curOp.focus=_e(at(e));var l=Cu(e,a,o),d=e.doc.sel,g;e.options.dragDrop&&Tr&&!e.isReadOnly()&&a=="single"&&(g=d.contains(r))>-1&&(z((g=d.ranges[g]).from(),r)<0||r.xRel>0)&&(z(g.to(),r)>0||r.xRel<0)?Au(e,o,r,l):Eu(e,o,r,l)}function Au(e,r,a,o){var l=e.display,d=!1,g=lr(e,function(O){_&&(l.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:bs(e)),je(l.wrapper.ownerDocument,"mouseup",g),je(l.wrapper.ownerDocument,"mousemove",b),je(l.scroller,"dragstart",w),je(l.scroller,"drop",g),d||(wt(O),o.addNew||Mi(e.doc,a,null,null,o.extend),_&&!se||D&&R==9?setTimeout(function(){l.wrapper.ownerDocument.body.focus({preventScroll:!0}),l.input.focus()},20):l.input.focus())}),b=function(O){d=d||Math.abs(r.clientX-O.clientX)+Math.abs(r.clientY-O.clientY)>=10},w=function(){return d=!0};_&&(l.scroller.draggable=!0),e.state.draggingText=g,g.copy=!o.moveOnDrag,ne(l.wrapper.ownerDocument,"mouseup",g),ne(l.wrapper.ownerDocument,"mousemove",b),ne(l.scroller,"dragstart",w),ne(l.scroller,"drop",g),e.state.delayingBlurEvent=!0,setTimeout(function(){return l.input.focus()},20),l.scroller.dragDrop&&l.scroller.dragDrop()}function Ou(e,r,a){if(a=="char")return new Et(r,r);if(a=="word")return e.findWordAt(r);if(a=="line")return new Et(A(r.line,0),$e(e.doc,A(r.line+1,0)));var o=a(e,r);return new Et(o.from,o.to)}function Eu(e,r,a,o){D&&bs(e);var l=e.display,d=e.doc;wt(r);var g,b,w=d.sel,O=w.ranges;if(o.addNew&&!o.extend?(b=d.sel.contains(a),b>-1?g=O[b]:g=new Et(a,a)):(g=d.sel.primary(),b=d.sel.primIndex),o.unit=="rectangle")o.addNew||(g=new Et(a,a)),a=Ai(e,r,!0,!0),b=-1;else{var U=Ou(e,a,o.unit);o.extend?g=Ma(g,U.anchor,U.head,o.extend):g=U}o.addNew?b==-1?(b=O.length,fr(d,wn(e,O.concat([g]),b),{scroll:!1,origin:"*mouse"})):O.length>1&&O[b].empty()&&o.unit=="char"&&!o.extend?(fr(d,wn(e,O.slice(0,b).concat(O.slice(b+1)),0),{scroll:!1,origin:"*mouse"}),w=d.sel):Na(d,b,g,qe):(b=0,fr(d,new Rr([g],0),qe),w=d.sel);var X=a;function he(De){if(z(X,De)!=0)if(X=De,o.unit=="rectangle"){for(var We=[],Ye=e.options.tabSize,Ke=nt(Ve(d,a.line).text,a.ch,Ye),pt=nt(Ve(d,De.line).text,De.ch,Ye),Tt=Math.min(Ke,pt),ar=Math.max(Ke,pt),Ut=Math.min(a.line,De.line),Ze=Math.min(e.lastLine(),Math.max(a.line,De.line));Ut<=Ze;Ut++){var Lr=Ve(d,Ut).text,Zt=Kt(Lr,Tt,Ye);Tt==ar?We.push(new Et(A(Ut,Zt),A(Ut,Zt))):Lr.length>Zt&&We.push(new Et(A(Ut,Zt),A(Ut,Kt(Lr,ar,Ye))))}We.length||We.push(new Et(a,a)),fr(d,wn(e,w.ranges.slice(0,b).concat(We),b),{origin:"*mouse",scroll:!1}),e.scrollIntoView(De)}else{var Xt=g,Jt=Ou(e,De,o.unit),Nt=Xt.anchor,zt;z(Jt.anchor,Nt)>0?(zt=Jt.head,Nt=yt(Xt.from(),Jt.anchor)):(zt=Jt.anchor,Nt=tt(Xt.to(),Jt.head));var bt=w.ranges.slice(0);bt[b]=zs(e,new Et($e(d,Nt),zt)),fr(d,wn(e,bt,b),qe)}}var le=l.wrapper.getBoundingClientRect(),xe=0;function Ce(De){var We=++xe,Ye=Ai(e,De,!0,o.unit=="rectangle");if(Ye)if(z(Ye,X)!=0){e.curOp.focus=_e(at(e)),he(Ye);var Ke=ro(l,d);(Ye.line>=Ke.to||Ye.line<Ke.from)&&setTimeout(lr(e,function(){xe==We&&Ce(De)}),150)}else{var pt=De.clientY<le.top?-20:De.clientY>le.bottom?20:0;pt&&setTimeout(lr(e,function(){xe==We&&(l.scroller.scrollTop+=pt,Ce(De))}),50)}}function Le(De){e.state.selectingText=!1,xe=1/0,De&&(wt(De),l.input.focus()),je(l.wrapper.ownerDocument,"mousemove",Me),je(l.wrapper.ownerDocument,"mouseup",Ee),d.history.lastSelOrigin=null}var Me=lr(e,function(De){De.buttons===0||!jn(De)?Le(De):Ce(De)}),Ee=lr(e,Le);e.state.selectingText=Ee,ne(l.wrapper.ownerDocument,"mousemove",Me),ne(l.wrapper.ownerDocument,"mouseup",Ee)}function zs(e,r){var a=r.anchor,o=r.head,l=Ve(e.doc,a.line);if(z(a,o)==0&&a.sticky==o.sticky)return r;var d=Qe(l);if(!d)return r;var g=mt(d,a.ch,a.sticky),b=d[g];if(b.from!=a.ch&&b.to!=a.ch)return r;var w=g+(b.from==a.ch==(b.level!=1)?0:1);if(w==0||w==d.length)return r;var O;if(o.line!=a.line)O=(o.line-a.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var U=mt(d,o.ch,o.sticky),X=U-g||(o.ch-a.ch)*(b.level==1?-1:1);U==w-1||U==w?O=X<0:O=X>0}var he=d[w+(O?-1:0)],le=O==(he.level==1),xe=le?he.from:he.to,Ce=le?"after":"before";return a.ch==xe&&a.sticky==Ce?r:new Et(new A(a.line,xe,Ce),o)}function ku(e,r,a,o){var l,d;if(r.touches)l=r.touches[0].clientX,d=r.touches[0].clientY;else try{l=r.clientX,d=r.clientY}catch{return!1}if(l>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;o&&wt(r);var g=e.display,b=g.lineDiv.getBoundingClientRect();if(d>b.bottom||!_t(e,a))return Bn(r);d-=b.top-g.viewOffset;for(var w=0;w<e.display.gutterSpecs.length;++w){var O=g.gutters.childNodes[w];if(O&&O.getBoundingClientRect().right>=l){var U=Un(e.doc,d),X=e.display.gutterSpecs[w];return et(e,a,e,U,X.className,r),Bn(r)}}}function _s(e,r){return ku(e,r,"gutterClick",!0)}function Tu(e,r){Gn(e.display,r)||Pu(e,r)||ft(e,r,"contextmenu")||ie||e.display.input.onContextMenu(r)}function Pu(e,r){return _t(e,"gutterContextMenu")?ku(e,r,"gutterContextMenu",!1):!1}function Vs(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Io(e)}var ho={toString:function(){return"CodeMirror.Init"}},Qo={},po={};function Zo(e){var r=e.optionHandlers;function a(o,l,d,g){e.defaults[o]=l,d&&(r[o]=g?function(b,w,O){O!=ho&&d(b,w,O)}:d)}e.defineOption=a,e.Init=ho,a("value","",function(o,l){return o.setValue(l)},!0),a("mode",null,function(o,l){o.doc.modeOption=l,Ts(o)},!0),a("indentUnit",2,Ts,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(o){Ro(o),Io(o),Fr(o)},!0),a("lineSeparator",null,function(o,l){if(o.doc.lineSep=l,!!l){var d=[],g=o.doc.first;o.doc.iter(function(w){for(var O=0;;){var U=w.text.indexOf(l,O);if(U==-1)break;O=U+l.length,d.push(A(g,U))}g++});for(var b=d.length-1;b>=0;b--)uo(o.doc,l,d[b],A(d[b].line,d[b].ch+l.length))}}),a("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(o,l,d){o.state.specialChars=new RegExp(l.source+(l.test(" ")?"":"| "),"g"),d!=ho&&o.refresh()}),a("specialCharPlaceholder",Zu,function(o){return o.refresh()},!0),a("electricChars",!0),a("inputStyle",S?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),a("spellcheck",!1,function(o,l){return o.getInputField().spellcheck=l},!0),a("autocorrect",!1,function(o,l){return o.getInputField().autocorrect=l},!0),a("autocapitalize",!1,function(o,l){return o.getInputField().autocapitalize=l},!0),a("rtlMoveVisually",!K),a("wholeLineUpdateBefore",!0),a("theme","default",function(o){Vs(o),so(o)},!0),a("keyMap","default",function(o,l,d){var g=_o(l),b=d!=ho&&_o(d);b&&b.detach&&b.detach(o,g),g.attach&&g.attach(o,b||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,Yf,!0),a("gutters",[],function(o,l){o.display.gutterSpecs=Ta(l,o.options.lineNumbers),so(o)},!0),a("fixedGutter",!0,function(o,l){o.display.gutters.style.left=l?ms(o.display)+"px":"0",o.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(o){return ao(o)},!0),a("scrollbarStyle","native",function(o){Dl(o),ao(o),o.display.scrollbars.setScrollTop(o.doc.scrollTop),o.display.scrollbars.setScrollLeft(o.doc.scrollLeft)},!0),a("lineNumbers",!1,function(o,l){o.display.gutterSpecs=Ta(o.options.gutters,l),so(o)},!0),a("firstLineNumber",1,so,!0),a("lineNumberFormatter",function(o){return o},so,!0),a("showCursorWhenSelecting",!1,eo,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(o,l){l=="nocursor"&&(to(o),o.display.input.blur()),o.display.input.readOnlyChanged(l)}),a("screenReaderLabel",null,function(o,l){l=l===""?null:l,o.display.input.screenReaderLabelChanged(l)}),a("disableInput",!1,function(o,l){l||o.display.input.reset()},!0),a("dragDrop",!0,vo),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,eo,!0),a("singleCursorHeightPerLine",!0,eo,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,Ro,!0),a("addModeClass",!1,Ro,!0),a("pollInterval",100),a("undoDepth",200,function(o,l){return o.doc.history.undoDepth=l}),a("historyEventDelay",1250),a("viewportMargin",10,function(o){return o.refresh()},!0),a("maxHighlightLength",1e4,Ro,!0),a("moveInputWithCursor",!0,function(o,l){l||o.display.input.resetPosition()}),a("tabindex",null,function(o,l){return o.display.input.getField().tabIndex=l||""}),a("autofocus",null),a("direction","ltr",function(o,l){return o.doc.setDirection(l)},!0),a("phrases",null)}function vo(e,r,a){var o=a&&a!=ho;if(!r!=!o){var l=e.display.dragFunctions,d=r?ne:je;d(e.display.scroller,"dragstart",l.start),d(e.display.scroller,"dragenter",l.enter),d(e.display.scroller,"dragover",l.over),d(e.display.scroller,"dragleave",l.leave),d(e.display.scroller,"drop",l.drop)}}function Yf(e){e.options.lineWrapping?(ze(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(Y(e.display.wrapper,"CodeMirror-wrap"),rs(e)),ys(e),Fr(e),Io(e),setTimeout(function(){return ao(e)},100)}function Wt(e,r){var a=this;if(!(this instanceof Wt))return new Wt(e,r);this.options=r=r?Ot(r):{},Ot(Qo,r,!1);var o=r.value;typeof o=="string"?o=new Pr(o,r.mode,null,r.lineSeparator,r.direction):r.mode&&(o.modeOption=r.mode),this.doc=o;var l=new Wt.inputStyles[r.inputStyle](this),d=this.display=new If(e,o,l,r);d.wrapper.CodeMirror=this,Vs(this),r.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Dl(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 Ue,keySeq:null,specialChars:null},r.autofocus&&!S&&d.input.focus(),D&&R<11&&setTimeout(function(){return a.display.input.reset(!0)},20),Xf(this),fu(),Ti(this),this.curOp.forceUpdate=!0,$l(this,o),r.autofocus&&!S||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&xs(a)},20):to(this);for(var g in po)po.hasOwnProperty(g)&&po[g](this,r[g],ho);Wl(this),r.finishInit&&r.finishInit(this);for(var b=0;b<$s.length;++b)$s[b](this);Pi(this),_&&r.lineWrapping&&getComputedStyle(d.lineDiv).textRendering=="optimizelegibility"&&(d.lineDiv.style.textRendering="auto")}Wt.defaults=Qo,Wt.optionHandlers=po;function Xf(e){var r=e.display;ne(r.scroller,"mousedown",lr(e,Us)),D&&R<11?ne(r.scroller,"dblclick",lr(e,function(w){if(!ft(e,w)){var O=Ai(e,w);if(!(!O||_s(e,w)||Gn(e.display,w))){wt(w);var U=e.findWordAt(O);Mi(e.doc,U.anchor,U.head)}}})):ne(r.scroller,"dblclick",function(w){return ft(e,w)||wt(w)}),ne(r.scroller,"contextmenu",function(w){return Tu(e,w)}),ne(r.input.getField(),"contextmenu",function(w){r.scroller.contains(w.target)||Tu(e,w)});var a,o={end:0};function l(){r.activeTouch&&(a=setTimeout(function(){return r.activeTouch=null},1e3),o=r.activeTouch,o.end=+new Date)}function d(w){if(w.touches.length!=1)return!1;var O=w.touches[0];return O.radiusX<=1&&O.radiusY<=1}function g(w,O){if(O.left==null)return!0;var U=O.left-w.left,X=O.top-w.top;return U*U+X*X>20*20}ne(r.scroller,"touchstart",function(w){if(!ft(e,w)&&!d(w)&&!_s(e,w)){r.input.ensurePolled(),clearTimeout(a);var O=+new Date;r.activeTouch={start:O,moved:!1,prev:O-o.end<=300?o:null},w.touches.length==1&&(r.activeTouch.left=w.touches[0].pageX,r.activeTouch.top=w.touches[0].pageY)}}),ne(r.scroller,"touchmove",function(){r.activeTouch&&(r.activeTouch.moved=!0)}),ne(r.scroller,"touchend",function(w){var O=r.activeTouch;if(O&&!Gn(r,w)&&O.left!=null&&!O.moved&&new Date-O.start<300){var U=e.coordsChar(r.activeTouch,"page"),X;!O.prev||g(O,O.prev)?X=new Et(U,U):!O.prev.prev||g(O,O.prev.prev)?X=e.findWordAt(U):X=new Et(A(U.line,0),$e(e.doc,A(U.line+1,0))),e.setSelection(X.anchor,X.head),e.focus(),wt(w)}l()}),ne(r.scroller,"touchcancel",l),ne(r.scroller,"scroll",function(){r.scroller.clientHeight&&(io(e,r.scroller.scrollTop),ki(e,r.scroller.scrollLeft,!0),et(e,"scroll",e))}),ne(r.scroller,"mousewheel",function(w){return zl(e,w)}),ne(r.scroller,"DOMMouseScroll",function(w){return zl(e,w)}),ne(r.wrapper,"scroll",function(){return r.wrapper.scrollTop=r.wrapper.scrollLeft=0}),r.dragFunctions={enter:function(w){ft(e,w)||mr(w)},over:function(w){ft(e,w)||(uu(e,w),mr(w))},start:function(w){return Ba(e,w)},drop:lr(e,Uf),leave:function(w){ft(e,w)||un(e)}};var b=r.input.getField();ne(b,"keyup",function(w){return xu.call(e,w)}),ne(b,"keydown",lr(e,bu)),ne(b,"keypress",lr(e,Su)),ne(b,"focus",function(w){return xs(e,w)}),ne(b,"blur",function(w){return to(e,w)})}var $s=[];Wt.defineInitHook=function(e){return $s.push(e)};function go(e,r,a,o){var l=e.doc,d;a==null&&(a="add"),a=="smart"&&(l.mode.indent?d=Vi(e,r).state:a="prev");var g=e.options.tabSize,b=Ve(l,r),w=nt(b.text,null,g);b.stateAfter&&(b.stateAfter=null);var O=b.text.match(/^\s*/)[0],U;if(!o&&!/\S/.test(b.text))U=0,a="not";else if(a=="smart"&&(U=l.mode.indent(d,b.text.slice(O.length),b.text),U==it||U>150)){if(!o)return;a="prev"}a=="prev"?r>l.first?U=nt(Ve(l,r-1).text,null,g):U=0:a=="add"?U=w+e.options.indentUnit:a=="subtract"?U=w-e.options.indentUnit:typeof a=="number"&&(U=w+a),U=Math.max(0,U);var X="",he=0;if(e.options.indentWithTabs)for(var le=Math.floor(U/g);le;--le)he+=g,X+=" ";if(he<U&&(X+=hr(U-he)),X!=O)return uo(l,X,A(r,0),A(r,O.length),"+input"),b.stateAfter=null,!0;for(var xe=0;xe<l.sel.ranges.length;xe++){var Ce=l.sel.ranges[xe];if(Ce.head.line==r&&Ce.head.ch<O.length){var Le=A(r,O.length);Na(l,xe,new Et(Le,Le));break}}}var Br=null;function Ua(e){Br=e}function Gs(e,r,a,o,l){var d=e.doc;e.display.shift=!1,o||(o=d.sel);var g=+new Date-200,b=l=="paste"||e.state.pasteIncoming>g,w=mn(r),O=null;if(b&&o.ranges.length>1)if(Br&&Br.text.join(`
25
- `)==r){if(o.ranges.length%Br.text.length==0){O=[];for(var U=0;U<Br.text.length;U++)O.push(d.splitLines(Br.text[U]))}}else w.length==o.ranges.length&&e.options.pasteLinesPerSelection&&(O=xt(w,function(Me){return[Me]}));for(var X=e.curOp.updateInput,he=o.ranges.length-1;he>=0;he--){var le=o.ranges[he],xe=le.from(),Ce=le.to();le.empty()&&(a&&a>0?xe=A(xe.line,xe.ch-a):e.state.overwrite&&!b?Ce=A(Ce.line,Math.min(Ve(d,Ce.line).text.length,Ce.ch+Je(w).length)):b&&Br&&Br.lineWise&&Br.text.join(`
26
- `)==w.join(`
27
- `)&&(xe=Ce=A(xe.line,0)));var Le={from:xe,to:Ce,text:O?O[he%O.length]:w,origin:l||(b?"paste":e.state.cutIncoming>g?"cut":"+input")};Ni(e.doc,Le),sr(e,"inputRead",e,Le)}r&&!b&&Iu(e,r),no(e),e.curOp.updateInput<2&&(e.curOp.updateInput=X),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Lu(e,r){var a=e.clipboardData&&e.clipboardData.getData("Text");if(a)return e.preventDefault(),!r.isReadOnly()&&!r.options.disableInput&&r.hasFocus()&&Vr(r,function(){return Gs(r,a,0,null,"paste")}),!0}function Iu(e,r){if(!(!e.options.electricChars||!e.options.smartIndent))for(var a=e.doc.sel,o=a.ranges.length-1;o>=0;o--){var l=a.ranges[o];if(!(l.head.ch>100||o&&a.ranges[o-1].head.line==l.head.line)){var d=e.getModeAt(l.head),g=!1;if(d.electricChars){for(var b=0;b<d.electricChars.length;b++)if(r.indexOf(d.electricChars.charAt(b))>-1){g=go(e,l.head.line,"smart");break}}else d.electricInput&&d.electricInput.test(Ve(e.doc,l.head.line).text.slice(0,l.head.ch))&&(g=go(e,l.head.line,"smart"));g&&sr(e,"electricInput",e,l.head.line)}}}function Ks(e){for(var r=[],a=[],o=0;o<e.doc.sel.ranges.length;o++){var l=e.doc.sel.ranges[o].head.line,d={anchor:A(l,0),head:A(l+1,0)};a.push(d),r.push(e.getRange(d.anchor,d.head))}return{text:r,ranges:a}}function qo(e,r,a,o){e.setAttribute("autocorrect",a?"on":"off"),e.setAttribute("autocapitalize",o?"on":"off"),e.setAttribute("spellcheck",!!r)}function Mu(){var e=G("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),r=G("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return _?e.style.width="1000px":e.setAttribute("wrap","off"),J&&(e.style.border="1px solid black"),r}function Nu(e){var r=e.optionHandlers,a=e.helpers={};e.prototype={constructor:e,focus:function(){Gt(this).focus(),this.display.input.focus()},setOption:function(o,l){var d=this.options,g=d[o];d[o]==l&&o!="mode"||(d[o]=l,r.hasOwnProperty(o)&&lr(this,r[o])(this,l,g),et(this,"optionChange",this,o))},getOption:function(o){return this.options[o]},getDoc:function(){return this.doc},addKeyMap:function(o,l){this.state.keyMaps[l?"push":"unshift"](_o(o))},removeKeyMap:function(o){for(var l=this.state.keyMaps,d=0;d<l.length;++d)if(l[d]==o||l[d].name==o)return l.splice(d,1),!0},addOverlay:Sr(function(o,l){var d=o.token?o:e.getMode(this.options,o);if(d.startState)throw new Error("Overlays may not be stateful.");It(this.state.overlays,{mode:d,modeSpec:o,opaque:l&&l.opaque,priority:l&&l.priority||0},function(g){return g.priority}),this.state.modeGen++,Fr(this)}),removeOverlay:Sr(function(o){for(var l=this.state.overlays,d=0;d<l.length;++d){var g=l[d].modeSpec;if(g==o||typeof o=="string"&&g.name==o){l.splice(d,1),this.state.modeGen++,Fr(this);return}}}),indentLine:Sr(function(o,l,d){typeof l!="string"&&typeof l!="number"&&(l==null?l=this.options.smartIndent?"smart":"prev":l=l?"add":"subtract"),mi(this.doc,o)&&go(this,o,l,d)}),indentSelection:Sr(function(o){for(var l=this.doc.sel.ranges,d=-1,g=0;g<l.length;g++){var b=l[g];if(b.empty())b.head.line>d&&(go(this,b.head.line,o,!0),d=b.head.line,g==this.doc.sel.primIndex&&no(this));else{var w=b.from(),O=b.to(),U=Math.max(d,w.line);d=Math.min(this.lastLine(),O.line-(O.ch?0:1))+1;for(var X=U;X<d;++X)go(this,X,o);var he=this.doc.sel.ranges;w.ch==0&&l.length==he.length&&he[g].from().ch>0&&Na(this.doc,g,new Et(w,he[g].to()),Ft)}}}),getTokenAt:function(o,l){return yi(this,o,l)},getLineTokens:function(o,l){return yi(this,A(o),l,!0)},getTokenTypeAt:function(o){o=$e(this.doc,o);var l=Za(this,Ve(this.doc,o.line)),d=0,g=(l.length-1)/2,b=o.ch,w;if(b==0)w=l[2];else for(;;){var O=d+g>>1;if((O?l[O*2-1]:0)>=b)g=O;else if(l[O*2+1]<b)d=O+1;else{w=l[O*2+2];break}}var U=w?w.indexOf("overlay "):-1;return U<0?w:U==0?null:w.slice(0,U-1)},getModeAt:function(o){var l=this.doc.mode;return l.innerMode?e.innerMode(l,this.getTokenAt(o).state).mode:l},getHelper:function(o,l){return this.getHelpers(o,l)[0]},getHelpers:function(o,l){var d=[];if(!a.hasOwnProperty(l))return d;var g=a[l],b=this.getModeAt(o);if(typeof b[l]=="string")g[b[l]]&&d.push(g[b[l]]);else if(b[l])for(var w=0;w<b[l].length;w++){var O=g[b[l][w]];O&&d.push(O)}else b.helperType&&g[b.helperType]?d.push(g[b.helperType]):g[b.name]&&d.push(g[b.name]);for(var U=0;U<g._global.length;U++){var X=g._global[U];X.pred(b,this)&&Fe(d,X.val)==-1&&d.push(X.val)}return d},getStateAfter:function(o,l){var d=this.doc;return o=At(d,o??d.first+d.size-1),Vi(this,o+1,l).state},cursorCoords:function(o,l){var d,g=this.doc.sel.primary();return o==null?d=g.head:typeof o=="object"?d=$e(this.doc,o):d=o?g.from():g.to(),sn(this,d,l||"page")},charCoords:function(o,l){return ba(this,$e(this.doc,o),l||"page")},coordsChar:function(o,l){return o=Al(this,o,l||"page"),No(this,o.left,o.top)},lineAtHeight:function(o,l){return o=Al(this,{top:o,left:0},l||"page").top,Un(this.doc,o+this.display.viewOffset)},heightAtLine:function(o,l,d){var g=!1,b;if(typeof o=="number"){var w=this.doc.first+this.doc.size-1;o<this.doc.first?o=this.doc.first:o>w&&(o=w,g=!0),b=Ve(this.doc,o)}else b=o;return Mo(this,b,{top:0,left:0},l||"page",d||g).top+(g?this.doc.height-Vn(b):0)},defaultTextHeight:function(){return Zi(this.display)},defaultCharWidth:function(){return qi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(o,l,d,g,b){var w=this.display;o=sn(this,$e(this.doc,o));var O=o.bottom,U=o.left;if(l.style.position="absolute",l.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(l),w.sizer.appendChild(l),g=="over")O=o.top;else if(g=="above"||g=="near"){var X=Math.max(w.wrapper.clientHeight,this.doc.height),he=Math.max(w.sizer.clientWidth,w.lineSpace.clientWidth);(g=="above"||o.bottom+l.offsetHeight>X)&&o.top>l.offsetHeight?O=o.top-l.offsetHeight:o.bottom+l.offsetHeight<=X&&(O=o.bottom),U+l.offsetWidth>he&&(U=he-l.offsetWidth)}l.style.top=O+"px",l.style.left=l.style.right="",b=="right"?(U=w.sizer.clientWidth-l.offsetWidth,l.style.right="0px"):(b=="left"?U=0:b=="middle"&&(U=(w.sizer.clientWidth-l.offsetWidth)/2),l.style.left=U+"px"),d&&xf(this,{left:U,top:O,right:U+l.offsetWidth,bottom:O+l.offsetHeight})},triggerOnKeyDown:Sr(bu),triggerOnKeyPress:Sr(Su),triggerOnKeyUp:xu,triggerOnMouseDown:Sr(Us),execCommand:function(o){if(Vo.hasOwnProperty(o))return Vo[o].call(null,this)},triggerElectric:Sr(function(o){Iu(this,o)}),findPosH:function(o,l,d,g){var b=1;l<0&&(b=-1,l=-l);for(var w=$e(this.doc,o),O=0;O<l&&(w=mo(this.doc,w,b,d,g),!w.hitSide);++O);return w},moveH:Sr(function(o,l){var d=this;this.extendSelectionsBy(function(g){return d.display.shift||d.doc.extend||g.empty()?mo(d.doc,g.head,o,l,d.options.rtlMoveVisually):o<0?g.from():g.to()},St)}),deleteH:Sr(function(o,l){var d=this.doc.sel,g=this.doc;d.somethingSelected()?g.replaceSelection("",null,"+delete"):Ri(this,function(b){var w=mo(g,b.head,o,l,!1);return o<0?{from:w,to:b.head}:{from:b.head,to:w}})}),findPosV:function(o,l,d,g){var b=1,w=g;l<0&&(b=-1,l=-l);for(var O=$e(this.doc,o),U=0;U<l;++U){var X=sn(this,O,"div");if(w==null?w=X.left:X.left=w,O=Du(this,X,b,d),O.hitSide)break}return O},moveV:Sr(function(o,l){var d=this,g=this.doc,b=[],w=!this.display.shift&&!g.extend&&g.sel.somethingSelected();if(g.extendSelectionsBy(function(U){if(w)return o<0?U.from():U.to();var X=sn(d,U.head,"div");U.goalColumn!=null&&(X.left=U.goalColumn),b.push(X.left);var he=Du(d,X,o,l);return l=="page"&&U==g.sel.primary()&&Cs(d,ba(d,he,"div").top-X.top),he},St),b.length)for(var O=0;O<g.sel.ranges.length;O++)g.sel.ranges[O].goalColumn=b[O]}),findWordAt:function(o){var l=this.doc,d=Ve(l,o.line).text,g=o.ch,b=o.ch;if(d){var w=this.getHelper(o,"wordChars");(o.sticky=="before"||b==d.length)&&g?--g:++b;for(var O=d.charAt(g),U=Hr(O,w)?function(X){return Hr(X,w)}:/\s/.test(O)?function(X){return/\s/.test(X)}:function(X){return!/\s/.test(X)&&!Hr(X)};g>0&&U(d.charAt(g-1));)--g;for(;b<d.length&&U(d.charAt(b));)++b}return new Et(A(o.line,g),A(o.line,b))},toggleOverwrite:function(o){o!=null&&o==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?ze(this.display.cursorDiv,"CodeMirror-overwrite"):Y(this.display.cursorDiv,"CodeMirror-overwrite"),et(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==_e(at(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Sr(function(o,l){Ei(this,o,l)}),getScrollInfo:function(){var o=this.display.scroller;return{left:o.scrollLeft,top:o.scrollTop,height:o.scrollHeight-Jr(this)-this.display.barHeight,width:o.scrollWidth-Jr(this)-this.display.barWidth,clientHeight:ma(this),clientWidth:Sn(this)}},scrollIntoView:Sr(function(o,l){o==null?(o={from:this.doc.sel.primary().head,to:null},l==null&&(l=this.options.cursorScrollMargin)):typeof o=="number"?o={from:A(o,0),to:null}:o.from==null&&(o={from:o,to:null}),o.to||(o.to=o.from),o.margin=l||0,o.from.line!=null?Ll(this,o):Il(this,o.from,o.to,o.margin)}),setSize:Sr(function(o,l){var d=this,g=function(w){return typeof w=="number"||/^\d+$/.test(String(w))?w+"px":w};o!=null&&(this.display.wrapper.style.width=g(o)),l!=null&&(this.display.wrapper.style.height=g(l)),this.options.lineWrapping&&fs(this);var b=this.display.viewFrom;this.doc.iter(b,this.display.viewTo,function(w){if(w.widgets){for(var O=0;O<w.widgets.length;O++)if(w.widgets[O].noHScroll){ii(d,b,"widget");break}}++b}),this.curOp.forceUpdate=!0,et(this,"refresh",this)}),operation:function(o){return Vr(this,o)},startOperation:function(){return Ti(this)},endOperation:function(){return Pi(this)},refresh:Sr(function(){var o=this.display.cachedTextHeight;Fr(this),this.curOp.forceUpdate=!0,Io(this),Ei(this,this.doc.scrollLeft,this.doc.scrollTop),ks(this.display),(o==null||Math.abs(o-Zi(this.display))>.5||this.options.lineWrapping)&&ys(this),et(this,"refresh",this)}),swapDoc:Sr(function(o){var l=this.doc;return l.cm=null,this.state.selectingText&&this.state.selectingText(),$l(this,o),Io(this),this.display.input.reset(),Ei(this,o.scrollLeft,o.scrollTop),this.curOp.forceScroll=!0,sr(this,"swapDoc",this,l),l}),phrase:function(o){var l=this.options.phrases;return l&&Object.prototype.hasOwnProperty.call(l,o)?l[o]:o},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}},kr(e),e.registerHelper=function(o,l,d){a.hasOwnProperty(o)||(a[o]=e[o]={_global:[]}),a[o][l]=d},e.registerGlobalHelper=function(o,l,d,g){e.registerHelper(o,l,g),a[o]._global.push({pred:d,val:g})}}function mo(e,r,a,o,l){var d=r,g=a,b=Ve(e,r.line),w=l&&e.direction=="rtl"?-a:a;function O(){var Ee=r.line+w;return Ee<e.first||Ee>=e.first+e.size?!1:(r=new A(Ee,r.ch,r.sticky),b=Ve(e,Ee))}function U(Ee){var De;if(o=="codepoint"){var We=b.text.charCodeAt(r.ch+(a>0?0:-1));if(isNaN(We))De=null;else{var Ye=a>0?We>=55296&&We<56320:We>=56320&&We<57343;De=new A(r.line,Math.max(0,Math.min(b.text.length,r.ch+a*(Ye?2:1))),-a)}}else l?De=hu(e.cm,b,r,a):De=Bs(b,r,a);if(De==null)if(!Ee&&O())r=js(l,e.cm,b,r.line,w);else return!1;else r=De;return!0}if(o=="char"||o=="codepoint")U();else if(o=="column")U(!0);else if(o=="word"||o=="group")for(var X=null,he=o=="group",le=e.cm&&e.cm.getHelper(r,"wordChars"),xe=!0;!(a<0&&!U(!xe));xe=!1){var Ce=b.text.charAt(r.ch)||`
28
- `,Le=Hr(Ce,le)?"w":he&&Ce==`
29
- `?"n":!he||/\s/.test(Ce)?null:"p";if(he&&!xe&&!Le&&(Le="s"),X&&X!=Le){a<0&&(a=1,U(),r.sticky="after");break}if(Le&&(X=Le),a>0&&!U(!xe))break}var Me=Da(e,r,d,g,!0);return Se(d,Me)&&(Me.hitSide=!0),Me}function Du(e,r,a,o){var l=e.doc,d=r.left,g;if(o=="page"){var b=Math.min(e.display.wrapper.clientHeight,Gt(e).innerHeight||l(e).documentElement.clientHeight),w=Math.max(b-.5*Zi(e.display),3);g=(a>0?r.bottom:r.top)+a*w}else o=="line"&&(g=a>0?r.bottom+3:r.top-3);for(var O;O=No(e,d,g),!!O.outside;){if(a<0?g<=0:g>=l.height){O.hitSide=!0;break}g+=a*5}return O}var Mt=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ue,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Mt.prototype.init=function(e){var r=this,a=this,o=a.cm,l=a.div=e.lineDiv;l.contentEditable=!0,qo(l,o.options.spellcheck,o.options.autocorrect,o.options.autocapitalize);function d(b){for(var w=b.target;w;w=w.parentNode){if(w==l)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(w.className))break}return!1}ne(l,"paste",function(b){!d(b)||ft(o,b)||Lu(b,o)||R<=11&&setTimeout(lr(o,function(){return r.updateFromDOM()}),20)}),ne(l,"compositionstart",function(b){r.composing={data:b.data,done:!1}}),ne(l,"compositionupdate",function(b){r.composing||(r.composing={data:b.data,done:!1})}),ne(l,"compositionend",function(b){r.composing&&(b.data!=r.composing.data&&r.readFromDOMSoon(),r.composing.done=!0)}),ne(l,"touchstart",function(){return a.forceCompositionEnd()}),ne(l,"input",function(){r.composing||r.readFromDOMSoon()});function g(b){if(!(!d(b)||ft(o,b))){if(o.somethingSelected())Ua({lineWise:!1,text:o.getSelections()}),b.type=="cut"&&o.replaceSelection("",null,"cut");else if(o.options.lineWiseCopyCut){var w=Ks(o);Ua({lineWise:!0,text:w.text}),b.type=="cut"&&o.operation(function(){o.setSelections(w.ranges,0,Ft),o.replaceSelection("",null,"cut")})}else return;if(b.clipboardData){b.clipboardData.clearData();var O=Br.text.join(`
30
- `);if(b.clipboardData.setData("Text",O),b.clipboardData.getData("Text")==O){b.preventDefault();return}}var U=Mu(),X=U.firstChild;qo(X),o.display.lineSpace.insertBefore(U,o.display.lineSpace.firstChild),X.value=Br.text.join(`
31
- `);var he=_e(l.ownerDocument);ut(X),setTimeout(function(){o.display.lineSpace.removeChild(U),he.focus(),he==l&&a.showPrimarySelection()},50)}}ne(l,"copy",g),ne(l,"cut",g)},Mt.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Mt.prototype.prepareSelection=function(){var e=Do(this.cm,!1);return e.focus=_e(this.div.ownerDocument)==this.div,e},Mt.prototype.showSelection=function(e,r){!e||!this.cm.display.view.length||((e.focus||r)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Mt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Mt.prototype.showPrimarySelection=function(){var e=this.getSelection(),r=this.cm,a=r.doc.sel.primary(),o=a.from(),l=a.to();if(r.display.viewTo==r.display.viewFrom||o.line>=r.display.viewTo||l.line<r.display.viewFrom){e.removeAllRanges();return}var d=Ys(r,e.anchorNode,e.anchorOffset),g=Ys(r,e.focusNode,e.focusOffset);if(!(d&&!d.bad&&g&&!g.bad&&z(yt(d,g),o)==0&&z(tt(d,g),l)==0)){var b=r.display.view,w=o.line>=r.display.viewFrom&&Jf(r,o)||{node:b[0].measure.map[2],offset:0},O=l.line<r.display.viewTo&&Jf(r,l);if(!O){var U=b[b.length-1].measure,X=U.maps?U.maps[U.maps.length-1]:U.map;O={node:X[X.length-1],offset:X[X.length-2]-X[X.length-3]}}if(!w||!O){e.removeAllRanges();return}var he=e.rangeCount&&e.getRangeAt(0),le;try{le=ee(w.node,w.offset,O.offset,O.node)}catch{}le&&(!v&&r.state.focused?(e.collapse(w.node,w.offset),le.collapsed||(e.removeAllRanges(),e.addRange(le))):(e.removeAllRanges(),e.addRange(le)),he&&e.anchorNode==null?e.addRange(he):v&&this.startGracePeriod()),this.rememberSelection()}},Mt.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)},Mt.prototype.showMultipleSelections=function(e){ge(this.cm.display.cursorDiv,e.cursors),ge(this.cm.display.selectionDiv,e.selection)},Mt.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Mt.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var r=e.getRangeAt(0).commonAncestorContainer;return He(this.div,r)},Mt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||_e(this.div.ownerDocument)!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Mt.prototype.blur=function(){this.div.blur()},Mt.prototype.getField=function(){return this.div},Mt.prototype.supportsTouch=function(){return!0},Mt.prototype.receivedFocus=function(){var e=this,r=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):Vr(this.cm,function(){return r.cm.curOp.selectionChanged=!0});function a(){r.cm.state.focused&&(r.pollSelection(),r.polling.set(r.cm.options.pollInterval,a))}this.polling.set(this.cm.options.pollInterval,a)},Mt.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Mt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),r=this.cm;if(M&&q&&this.cm.display.gutterSpecs.length&&Qf(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var a=Ys(r,e.anchorNode,e.anchorOffset),o=Ys(r,e.focusNode,e.focusOffset);a&&o&&Vr(r,function(){fr(r.doc,li(a,o),Ft),(a.bad||o.bad)&&(r.curOp.selectionChanged=!0)})}}},Mt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,r=e.display,a=e.doc.sel.primary(),o=a.from(),l=a.to();if(o.ch==0&&o.line>e.firstLine()&&(o=A(o.line-1,Ve(e.doc,o.line-1).length)),l.ch==Ve(e.doc,l.line).text.length&&l.line<e.lastLine()&&(l=A(l.line+1,0)),o.line<r.viewFrom||l.line>r.viewTo-1)return!1;var d,g,b;o.line==r.viewFrom||(d=Oi(e,o.line))==0?(g=Ct(r.view[0].line),b=r.view[0].node):(g=Ct(r.view[d].line),b=r.view[d-1].node.nextSibling);var w=Oi(e,l.line),O,U;if(w==r.view.length-1?(O=r.viewTo-1,U=r.lineDiv.lastChild):(O=Ct(r.view[w+1].line)-1,U=r.view[w+1].node.previousSibling),!b)return!1;for(var X=e.doc.splitLines(Fu(e,b,U,g,O)),he=Hn(e.doc,A(g,0),A(O,Ve(e.doc,O).text.length));X.length>1&&he.length>1;)if(Je(X)==Je(he))X.pop(),he.pop(),O--;else if(X[0]==he[0])X.shift(),he.shift(),g++;else break;for(var le=0,xe=0,Ce=X[0],Le=he[0],Me=Math.min(Ce.length,Le.length);le<Me&&Ce.charCodeAt(le)==Le.charCodeAt(le);)++le;for(var Ee=Je(X),De=Je(he),We=Math.min(Ee.length-(X.length==1?le:0),De.length-(he.length==1?le:0));xe<We&&Ee.charCodeAt(Ee.length-xe-1)==De.charCodeAt(De.length-xe-1);)++xe;if(X.length==1&&he.length==1&&g==o.line)for(;le&&le>o.ch&&Ee.charCodeAt(Ee.length-xe-1)==De.charCodeAt(De.length-xe-1);)le--,xe++;X[X.length-1]=Ee.slice(0,Ee.length-xe).replace(/^\u200b+/,""),X[0]=X[0].slice(le).replace(/\u200b+$/,"");var Ye=A(g,le),Ke=A(O,he.length?Je(he).length-xe:0);if(X.length>1||X[0]||z(Ye,Ke))return uo(e.doc,X,Ye,Ke,"+input"),!0},Mt.prototype.ensurePolled=function(){this.forceCompositionEnd()},Mt.prototype.reset=function(){this.forceCompositionEnd()},Mt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Mt.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},Mt.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Vr(this.cm,function(){return Fr(e.cm)})},Mt.prototype.setUneditable=function(e){e.contentEditable="false"},Mt.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||lr(this.cm,Gs)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},Mt.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Mt.prototype.onContextMenu=function(){},Mt.prototype.resetPosition=function(){},Mt.prototype.needsContentAttribute=!0;function Jf(e,r){var a=ya(e,r.line);if(!a||a.hidden)return null;var o=Ve(e.doc,r.line),l=wl(a,o,r.line),d=Qe(o,e.doc.direction),g="left";if(d){var b=mt(d,r.ch);g=b%2?"right":"left"}var w=ls(l.map,r.ch,g);return w.offset=w.collapse=="right"?w.end:w.start,w}function Qf(e){for(var r=e;r;r=r.parentNode)if(/CodeMirror-gutter-wrapper/.test(r.className))return!0;return!1}function fn(e,r){return r&&(e.bad=!0),e}function Fu(e,r,a,o,l){var d="",g=!1,b=e.doc.lineSeparator(),w=!1;function O(le){return function(xe){return xe.id==le}}function U(){g&&(d+=b,w&&(d+=b),g=w=!1)}function X(le){le&&(U(),d+=le)}function he(le){if(le.nodeType==1){var xe=le.getAttribute("cm-text");if(xe){X(xe);return}var Ce=le.getAttribute("cm-marker"),Le;if(Ce){var Me=e.findMarks(A(o,0),A(l+1,0),O(+Ce));Me.length&&(Le=Me[0].find(0))&&X(Hn(e.doc,Le.from,Le.to).join(b));return}if(le.getAttribute("contenteditable")=="false")return;var Ee=/^(pre|div|p|li|table|br)$/i.test(le.nodeName);if(!/^br$/i.test(le.nodeName)&&le.textContent.length==0)return;Ee&&U();for(var De=0;De<le.childNodes.length;De++)he(le.childNodes[De]);/^(pre|p)$/i.test(le.nodeName)&&(w=!0),Ee&&(g=!0)}else le.nodeType==3&&X(le.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;he(r),r!=a;)r=r.nextSibling,w=!1;return d}function Ys(e,r,a){var o;if(r==e.display.lineDiv){if(o=e.display.lineDiv.childNodes[a],!o)return fn(e.clipPos(A(e.display.viewTo-1)),!0);r=null,a=0}else for(o=r;;o=o.parentNode){if(!o||o==e.display.lineDiv)return null;if(o.parentNode&&o.parentNode==e.display.lineDiv)break}for(var l=0;l<e.display.view.length;l++){var d=e.display.view[l];if(d.node==o)return yo(d,r,a)}}function yo(e,r,a){var o=e.text.firstChild,l=!1;if(!r||!He(o,r))return fn(A(Ct(e.line),0),!0);if(r==o&&(l=!0,r=o.childNodes[a],a=0,!r)){var d=e.rest?Je(e.rest):e.line;return fn(A(Ct(d),d.text.length),l)}var g=r.nodeType==3?r:null,b=r;for(!g&&r.childNodes.length==1&&r.firstChild.nodeType==3&&(g=r.firstChild,a&&(a=g.nodeValue.length));b.parentNode!=o;)b=b.parentNode;var w=e.measure,O=w.maps;function U(Le,Me,Ee){for(var De=-1;De<(O?O.length:0);De++)for(var We=De<0?w.map:O[De],Ye=0;Ye<We.length;Ye+=3){var Ke=We[Ye+2];if(Ke==Le||Ke==Me){var pt=Ct(De<0?e.line:e.rest[De]),Tt=We[Ye]+Ee;return(Ee<0||Ke!=Le)&&(Tt=We[Ye+(Ee?1:0)]),A(pt,Tt)}}}var X=U(g,b,a);if(X)return fn(X,l);for(var he=b.nextSibling,le=g?g.nodeValue.length-a:0;he;he=he.nextSibling){if(X=U(he,he.firstChild,0),X)return fn(A(X.line,X.ch-le),l);le+=he.textContent.length}for(var xe=b.previousSibling,Ce=a;xe;xe=xe.previousSibling){if(X=U(xe,xe.firstChild,-1),X)return fn(A(X.line,X.ch+Ce),l);Ce+=xe.textContent.length}}var nr=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new Ue,this.hasSelection=!1,this.composing=null,this.resetting=!1};nr.prototype.init=function(e){var r=this,a=this,o=this.cm;this.createField(e);var l=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),J&&(l.style.width="0px"),ne(l,"input",function(){D&&R>=9&&r.hasSelection&&(r.hasSelection=null),a.poll()}),ne(l,"paste",function(g){ft(o,g)||Lu(g,o)||(o.state.pasteIncoming=+new Date,a.fastPoll())});function d(g){if(!ft(o,g)){if(o.somethingSelected())Ua({lineWise:!1,text:o.getSelections()});else if(o.options.lineWiseCopyCut){var b=Ks(o);Ua({lineWise:!0,text:b.text}),g.type=="cut"?o.setSelections(b.ranges,null,Ft):(a.prevInput="",l.value=b.text.join(`
32
- `),ut(l))}else return;g.type=="cut"&&(o.state.cutIncoming=+new Date)}}ne(l,"cut",d),ne(l,"copy",d),ne(e.scroller,"paste",function(g){if(!(Gn(e,g)||ft(o,g))){if(!l.dispatchEvent){o.state.pasteIncoming=+new Date,a.focus();return}var b=new Event("paste");b.clipboardData=g.clipboardData,l.dispatchEvent(b)}}),ne(e.lineSpace,"selectstart",function(g){Gn(e,g)||wt(g)}),ne(l,"compositionstart",function(){var g=o.getCursor("from");a.composing&&a.composing.range.clear(),a.composing={start:g,range:o.markText(g,o.getCursor("to"),{className:"CodeMirror-composing"})}}),ne(l,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},nr.prototype.createField=function(e){this.wrapper=Mu(),this.textarea=this.wrapper.firstChild;var r=this.cm.options;qo(this.textarea,r.spellcheck,r.autocorrect,r.autocapitalize)},nr.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},nr.prototype.prepareSelection=function(){var e=this.cm,r=e.display,a=e.doc,o=Do(e);if(e.options.moveInputWithCursor){var l=sn(e,a.sel.primary().head,"div"),d=r.wrapper.getBoundingClientRect(),g=r.lineDiv.getBoundingClientRect();o.teTop=Math.max(0,Math.min(r.wrapper.clientHeight-10,l.top+g.top-d.top)),o.teLeft=Math.max(0,Math.min(r.wrapper.clientWidth-10,l.left+g.left-d.left))}return o},nr.prototype.showSelection=function(e){var r=this.cm,a=r.display;ge(a.cursorDiv,e.cursors),ge(a.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},nr.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var r=this.cm;if(this.resetting=!0,r.somethingSelected()){this.prevInput="";var a=r.getSelection();this.textarea.value=a,r.state.focused&&ut(this.textarea),D&&R>=9&&(this.hasSelection=a)}else e||(this.prevInput=this.textarea.value="",D&&R>=9&&(this.hasSelection=null));this.resetting=!1}},nr.prototype.getField=function(){return this.textarea},nr.prototype.supportsTouch=function(){return!1},nr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!S||_e(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch{}},nr.prototype.blur=function(){this.textarea.blur()},nr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},nr.prototype.receivedFocus=function(){this.slowPoll()},nr.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},nr.prototype.fastPoll=function(){var e=!1,r=this;r.pollingFast=!0;function a(){var o=r.poll();!o&&!e?(e=!0,r.polling.set(60,a)):(r.pollingFast=!1,r.slowPoll())}r.polling.set(20,a)},nr.prototype.poll=function(){var e=this,r=this.cm,a=this.textarea,o=this.prevInput;if(this.contextMenuPending||this.resetting||!r.state.focused||ti(a)&&!o&&!this.composing||r.isReadOnly()||r.options.disableInput||r.state.keySeq)return!1;var l=a.value;if(l==o&&!r.somethingSelected())return!1;if(D&&R>=9&&this.hasSelection===l||L&&/[\uf700-\uf7ff]/.test(l))return r.display.input.reset(),!1;if(r.doc.sel==r.display.selForContextMenu){var d=l.charCodeAt(0);if(d==8203&&!o&&(o="\u200B"),d==8666)return this.reset(),this.cm.execCommand("undo")}for(var g=0,b=Math.min(o.length,l.length);g<b&&o.charCodeAt(g)==l.charCodeAt(g);)++g;return Vr(r,function(){Gs(r,l.slice(g),o.length-g,null,e.composing?"*compose":null),l.length>1e3||l.indexOf(`
33
- `)>-1?a.value=e.prevInput="":e.prevInput=l,e.composing&&(e.composing.range.clear(),e.composing.range=r.markText(e.composing.start,r.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},nr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},nr.prototype.onKeyPress=function(){D&&R>=9&&(this.hasSelection=null),this.fastPoll()},nr.prototype.onContextMenu=function(e){var r=this,a=r.cm,o=a.display,l=r.textarea;r.contextMenuPending&&r.contextMenuPending();var d=Ai(a,e),g=o.scroller.scrollTop;if(!d||re)return;var b=a.options.resetSelectionOnContextMenu;b&&a.doc.sel.contains(d)==-1&&lr(a,fr)(a.doc,li(d),Ft);var w=l.style.cssText,O=r.wrapper.style.cssText,U=r.wrapper.offsetParent.getBoundingClientRect();r.wrapper.style.cssText="position: static",l.style.cssText=`position: absolute; width: 30px; height: 30px;
34
- top: `+(e.clientY-U.top-5)+"px; left: "+(e.clientX-U.left-5)+`px;
35
- z-index: 1000; background: `+(D?"rgba(255, 255, 255, .05)":"transparent")+`;
36
- outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var X;_&&(X=l.ownerDocument.defaultView.scrollY),o.input.focus(),_&&l.ownerDocument.defaultView.scrollTo(null,X),o.input.reset(),a.somethingSelected()||(l.value=r.prevInput=" "),r.contextMenuPending=le,o.selForContextMenu=a.doc.sel,clearTimeout(o.detectingSelectAll);function he(){if(l.selectionStart!=null){var Ce=a.somethingSelected(),Le="\u200B"+(Ce?l.value:"");l.value="\u21DA",l.value=Le,r.prevInput=Ce?"":"\u200B",l.selectionStart=1,l.selectionEnd=Le.length,o.selForContextMenu=a.doc.sel}}function le(){if(r.contextMenuPending==le&&(r.contextMenuPending=!1,r.wrapper.style.cssText=O,l.style.cssText=w,D&&R<9&&o.scrollbars.setScrollTop(o.scroller.scrollTop=g),l.selectionStart!=null)){(!D||D&&R<9)&&he();var Ce=0,Le=function(){o.selForContextMenu==a.doc.sel&&l.selectionStart==0&&l.selectionEnd>0&&r.prevInput=="\u200B"?lr(a,ci)(a):Ce++<10?o.detectingSelectAll=setTimeout(Le,500):(o.selForContextMenu=null,o.input.reset())};o.detectingSelectAll=setTimeout(Le,200)}}if(D&&R>=9&&he(),ie){mr(e);var xe=function(){je(window,"mouseup",xe),setTimeout(le,20)};ne(window,"mouseup",xe)}else setTimeout(le,50)},nr.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},nr.prototype.setUneditable=function(){},nr.prototype.needsContentAttribute=!1;function Zf(e,r){if(r=r?Ot(r):{},r.value=e.value,!r.tabindex&&e.tabIndex&&(r.tabindex=e.tabIndex),!r.placeholder&&e.placeholder&&(r.placeholder=e.placeholder),r.autofocus==null){var a=_e(e.ownerDocument);r.autofocus=a==e||e.getAttribute("autofocus")!=null&&a==document.body}function o(){e.value=b.getValue()}var l;if(e.form&&(ne(e.form,"submit",o),!r.leaveSubmitMethodAlone)){var d=e.form;l=d.submit;try{var g=d.submit=function(){o(),d.submit=l,d.submit(),d.submit=g}}catch{}}r.finishInit=function(w){w.save=o,w.getTextArea=function(){return e},w.toTextArea=function(){w.toTextArea=isNaN,o(),e.parentNode.removeChild(w.getWrapperElement()),e.style.display="",e.form&&(je(e.form,"submit",o),!r.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=l))}},e.style.display="none";var b=Wt(function(w){return e.parentNode.insertBefore(w,e.nextSibling)},r);return b}function vc(e){e.off=je,e.on=ne,e.wheelEventPixels=Mf,e.Doc=Pr,e.splitLines=mn,e.countColumn=nt,e.findColumn=Kt,e.isWordChar=vn,e.Pass=it,e.signal=et,e.Line=xi,e.changeEnd=ui,e.scrollbarModel=Nl,e.Pos=A,e.cmpPos=z,e.modes=Xr,e.mimeModes=zr,e.resolveMode=yn,e.getMode=Nr,e.modeExtensions=tr,e.extendMode=Pn,e.copyState=rn,e.startState=oa,e.innerMode=zi,e.commands=Vo,e.keyMap=Yn,e.keyName=Fs,e.isModifierKey=cu,e.lookupKey=Fi,e.normalizeKeyMap=Vf,e.StringStream=Ht,e.SharedTextMarker=Ho,e.TextMarker=Zr,e.LineWidget=Wo,e.e_preventDefault=wt,e.e_stopPropagation=er,e.e_stop=mr,e.addClass=ze,e.contains=He,e.rmClass=Y,e.keyNames=di}Zo(Wt),Nu(Wt);var gc="iter insert remove copy getEditor constructor".split(" ");for(var za in Pr.prototype)Pr.prototype.hasOwnProperty(za)&&Fe(gc,za)<0&&(Wt.prototype[za]=function(e){return function(){return e.apply(this.doc,arguments)}}(Pr.prototype[za]));return kr(Pr),Wt.inputStyles={textarea:nr,contenteditable:Mt},Wt.defineMode=function(e){!Wt.defaults.mode&&e!="null"&&(Wt.defaults.mode=e),_r.apply(this,arguments)},Wt.defineMIME=Oo,Wt.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Wt.defineMIME("text/plain","null"),Wt.defineExtension=function(e,r){Wt.prototype[e]=r},Wt.defineDocExtension=function(e,r){Pr.prototype[e]=r},Wt.fromTextArea=Zf,vc(Wt),Wt.version="5.65.12",Wt})},13156:(x,N,f)=>{(function(v){v(f(46944))})(function(v){"use strict";v.defineMode("javascript",function(C,E){var P=C.indentUnit,D=E.statementIndent,R=E.jsonld,_=E.json||R,Z=E.trackScope!==!1,q=E.typescript,de=E.wordCharacters||/[\w$\xa1-\uffff]/,re=function(){function A($e){return{type:$e,style:"keyword"}}var z=A("keyword a"),Se=A("keyword b"),Pe=A("keyword c"),tt=A("keyword d"),yt=A("operator"),At={type:"atom",style:"atom"};return{if:A("if"),while:z,with:z,else:Se,do:Se,try:Se,finally:Se,return:tt,break:tt,continue:tt,new:A("new"),delete:Pe,void:Pe,throw:Pe,debugger:A("debugger"),var:A("var"),const:A("var"),let:A("var"),function:A("function"),catch:A("catch"),for:A("for"),switch:A("switch"),case:A("case"),default:A("default"),in:yt,typeof:yt,instanceof:yt,true:At,false:At,null:At,undefined:At,NaN:At,Infinity:At,this:A("this"),class:A("class"),super:A("atom"),yield:Pe,export:A("export"),import:A("import"),extends:Pe,await:Pe}}(),se=/[+\-*&%=<>!?|~^@]/,V=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function T(A){for(var z=!1,Se,Pe=!1;(Se=A.next())!=null;){if(!z){if(Se=="/"&&!Pe)return;Se=="["?Pe=!0:Pe&&Se=="]"&&(Pe=!1)}z=!z&&Se=="\\"}}var J,M;function S(A,z,Se){return J=A,M=Se,z}function L(A,z){var Se=A.next();if(Se=='"'||Se=="'")return z.tokenize=F(Se),z.tokenize(A,z);if(Se=="."&&A.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return S("number","number");if(Se=="."&&A.match(".."))return S("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(Se))return S(Se);if(Se=="="&&A.eat(">"))return S("=>","operator");if(Se=="0"&&A.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return S("number","number");if(/\d/.test(Se))return A.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),S("number","number");if(Se=="/")return A.eat("*")?(z.tokenize=K,K(A,z)):A.eat("/")?(A.skipToEnd(),S("comment","comment")):_i(A,z,1)?(T(A),A.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),S("regexp","string-2")):(A.eat("="),S("operator","operator",A.current()));if(Se=="`")return z.tokenize=te,te(A,z);if(Se=="#"&&A.peek()=="!")return A.skipToEnd(),S("meta","meta");if(Se=="#"&&A.eatWhile(de))return S("variable","property");if(Se=="<"&&A.match("!--")||Se=="-"&&A.match("->")&&!/\S/.test(A.string.slice(0,A.start)))return A.skipToEnd(),S("comment","comment");if(se.test(Se))return(Se!=">"||!z.lexical||z.lexical.type!=">")&&(A.eat("=")?(Se=="!"||Se=="=")&&A.eat("="):/[<>*+\-|&?]/.test(Se)&&(A.eat(Se),Se==">"&&A.eat(Se))),Se=="?"&&A.eat(".")?S("."):S("operator","operator",A.current());if(de.test(Se)){A.eatWhile(de);var Pe=A.current();if(z.lastType!="."){if(re.propertyIsEnumerable(Pe)){var tt=re[Pe];return S(tt.type,tt.style,Pe)}if(Pe=="async"&&A.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return S("async","keyword",Pe)}return S("variable","variable",Pe)}}function F(A){return function(z,Se){var Pe=!1,tt;if(R&&z.peek()=="@"&&z.match(V))return Se.tokenize=L,S("jsonld-keyword","meta");for(;(tt=z.next())!=null&&!(tt==A&&!Pe);)Pe=!Pe&&tt=="\\";return Pe||(Se.tokenize=L),S("string","string")}}function K(A,z){for(var Se=!1,Pe;Pe=A.next();){if(Pe=="/"&&Se){z.tokenize=L;break}Se=Pe=="*"}return S("comment","comment")}function te(A,z){for(var Se=!1,Pe;(Pe=A.next())!=null;){if(!Se&&(Pe=="`"||Pe=="$"&&A.eat("{"))){z.tokenize=L;break}Se=!Se&&Pe=="\\"}return S("quasi","string-2",A.current())}var j="([{}])";function ie(A,z){z.fatArrowAt&&(z.fatArrowAt=null);var Se=A.string.indexOf("=>",A.start);if(!(Se<0)){if(q){var Pe=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(A.string.slice(A.start,Se));Pe&&(Se=Pe.index)}for(var tt=0,yt=!1,At=Se-1;At>=0;--At){var $e=A.string.charAt(At),on=j.indexOf($e);if(on>=0&&on<3){if(!tt){++At;break}if(--tt==0){$e=="("&&(yt=!0);break}}else if(on>=3&&on<6)++tt;else if(de.test($e))yt=!0;else if(/["'\/`]/.test($e))for(;;--At){if(At==0)return;var Eo=A.string.charAt(At-1);if(Eo==$e&&A.string.charAt(At-2)!="\\"){At--;break}}else if(yt&&!tt){++At;break}}yt&&!tt&&(z.fatArrowAt=At)}}var H={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function Y(A,z,Se,Pe,tt,yt){this.indented=A,this.column=z,this.type=Se,this.prev=tt,this.info=yt,Pe!=null&&(this.align=Pe)}function ce(A,z){if(!Z)return!1;for(var Se=A.localVars;Se;Se=Se.next)if(Se.name==z)return!0;for(var Pe=A.context;Pe;Pe=Pe.prev)for(var Se=Pe.vars;Se;Se=Se.next)if(Se.name==z)return!0}function ge(A,z,Se,Pe,tt){var yt=A.cc;for(G.state=A,G.stream=tt,G.marked=null,G.cc=yt,G.style=z,A.lexical.hasOwnProperty("align")||(A.lexical.align=!0);;){var At=yt.length?yt.pop():_?qe:it;if(At(Se,Pe)){for(;yt.length&&yt[yt.length-1].lex;)yt.pop()();return G.marked?G.marked:Se=="variable"&&ce(A,Pe)?"variable-2":z}}}var G={state:null,column:null,marked:null,cc:null};function ve(){for(var A=arguments.length-1;A>=0;A--)G.cc.push(arguments[A])}function ee(){return ve.apply(null,arguments),!0}function He(A,z){for(var Se=z;Se;Se=Se.next)if(Se.name==A)return!0;return!1}function _e(A){var z=G.state;if(G.marked="def",!!Z){if(z.context){if(z.lexical.info=="var"&&z.context&&z.context.block){var Se=ze(A,z.context);if(Se!=null){z.context=Se;return}}else if(!He(A,z.localVars)){z.localVars=new at(A,z.localVars);return}}E.globalVars&&!He(A,z.globalVars)&&(z.globalVars=new at(A,z.globalVars))}}function ze(A,z){if(z)if(z.block){var Se=ze(A,z.prev);return Se?Se==z.prev?z:new ut(Se,z.vars,!0):null}else return He(A,z.vars)?z:new ut(z.prev,new at(A,z.vars),!1);else return null}function ct(A){return A=="public"||A=="private"||A=="protected"||A=="abstract"||A=="readonly"}function ut(A,z,Se){this.prev=A,this.vars=z,this.block=Se}function at(A,z){this.name=A,this.next=z}var Gt=new at("this",new at("arguments",null));function dt(){G.state.context=new ut(G.state.context,G.state.localVars,!1),G.state.localVars=Gt}function Ot(){G.state.context=new ut(G.state.context,G.state.localVars,!0),G.state.localVars=null}dt.lex=Ot.lex=!0;function nt(){G.state.localVars=G.state.context.vars,G.state.context=G.state.context.prev}nt.lex=!0;function Ue(A,z){var Se=function(){var Pe=G.state,tt=Pe.indented;if(Pe.lexical.type=="stat")tt=Pe.lexical.indented;else for(var yt=Pe.lexical;yt&&yt.type==")"&&yt.align;yt=yt.prev)tt=yt.indented;Pe.lexical=new Y(tt,G.stream.column(),A,null,Pe.lexical,z)};return Se.lex=!0,Se}function Fe(){var A=G.state;A.lexical.prev&&(A.lexical.type==")"&&(A.indented=A.lexical.indented),A.lexical=A.lexical.prev)}Fe.lex=!0;function Re(A){function z(Se){return Se==A?ee():A==";"||Se=="}"||Se==")"||Se=="]"?ve():ee(z)}return z}function it(A,z){return A=="var"?ee(Ue("vardef",z),jn,Re(";"),Fe):A=="keyword a"?ee(Ue("form"),Kt,it,Fe):A=="keyword b"?ee(Ue("form"),it,Fe):A=="keyword d"?G.stream.match(/^\s*$/,!1)?ee():ee(Ue("stat"),hr,Re(";"),Fe):A=="debugger"?ee(Re(";")):A=="{"?ee(Ue("}"),Ot,st,Fe,nt):A==";"?ee():A=="if"?(G.state.lexical.info=="else"&&G.state.cc[G.state.cc.length-1]==Fe&&G.state.cc.pop()(),ee(Ue("form"),Kt,it,Fe,mn)):A=="function"?ee(Mr):A=="for"?ee(Ue("form"),Ot,ti,it,nt,Fe):A=="class"||q&&z=="interface"?(G.marked="keyword",ee(Ue("form",A=="class"?A:z),yn,Fe)):A=="variable"?q&&z=="declare"?(G.marked="keyword",ee(it)):q&&(z=="module"||z=="enum"||z=="type")&&G.stream.match(/^\s*\w/,!1)?(G.marked="keyword",z=="enum"?ee(Ct):z=="type"?ee(zr,Re("operator"),je,Re(";")):ee(Ue("form"),Tr,Re("{"),Ue("}"),st,Fe,Fe)):q&&z=="namespace"?(G.marked="keyword",ee(Ue("form"),qe,it,Fe)):q&&z=="abstract"?(G.marked="keyword",ee(it)):ee(Ue("stat"),En):A=="switch"?ee(Ue("form"),Kt,Re("{"),Ue("}","switch"),Ot,st,Fe,Fe,nt):A=="case"?ee(qe,Re(":")):A=="default"?ee(Re(":")):A=="catch"?ee(Ue("form"),dt,Ft,it,Fe,nt):A=="export"?ee(Ue("stat"),rn,Fe):A=="import"?ee(Ue("stat"),oa,Fe):A=="async"?ee(it):z=="@"?ee(qe,it):ve(Ue("stat"),qe,Re(";"),Fe)}function Ft(A){if(A=="(")return ee(_r,Re(")"))}function qe(A,z){return Qt(A,z,!1)}function St(A,z){return Qt(A,z,!0)}function Kt(A){return A!="("?ve():ee(Ue(")"),hr,Re(")"),Fe)}function Qt(A,z,Se){if(G.state.fatArrowAt==G.stream.start){var Pe=Se?pn:Rt;if(A=="(")return ee(dt,Ue(")"),Bt(_r,")"),Fe,Re("=>"),Pe,nt);if(A=="variable")return ve(dt,Tr,Re("=>"),Pe,nt)}var tt=Se?xt:Je;return H.hasOwnProperty(A)?ee(tt):A=="function"?ee(Mr,tt):A=="class"||q&&z=="interface"?(G.marked="keyword",ee(Ue("form"),Oo,Fe)):A=="keyword c"||A=="async"?ee(Se?St:qe):A=="("?ee(Ue(")"),hr,Re(")"),Fe,tt):A=="operator"||A=="spread"?ee(Se?St:qe):A=="["?ee(Ue("]"),nn,Fe,tt):A=="{"?mt(Ur,"}",null,tt):A=="quasi"?ve(It,tt):A=="new"?ee(vn(Se)):ee()}function hr(A){return A.match(/[;\}\)\],]/)?ve():ve(qe)}function Je(A,z){return A==","?ee(hr):xt(A,z,!1)}function xt(A,z,Se){var Pe=Se==!1?Je:xt,tt=Se==!1?qe:St;if(A=="=>")return ee(dt,Se?pn:Rt,nt);if(A=="operator")return/\+\+|--/.test(z)||q&&z=="!"?ee(Pe):q&&z=="<"&&G.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?ee(Ue(">"),Bt(je,">"),Fe,Pe):z=="?"?ee(qe,Re(":"),tt):ee(tt);if(A=="quasi")return ve(It,Pe);if(A!=";"){if(A=="(")return mt(St,")","call",Pe);if(A==".")return ee(gn,Pe);if(A=="[")return ee(Ue("]"),hr,Re("]"),Fe,Pe);if(q&&z=="as")return G.marked="keyword",ee(je,Pe);if(A=="regexp")return G.state.lastType=G.marked="operator",G.stream.backUp(G.stream.pos-G.stream.start-1),ee(tt)}}function It(A,z){return A!="quasi"?ve():z.slice(z.length-2)!="${"?ee(It):ee(hr,Or)}function Or(A){if(A=="}")return G.marked="string-2",G.state.tokenize=te,ee(It)}function Rt(A){return ie(G.stream,G.state),ve(A=="{"?it:qe)}function pn(A){return ie(G.stream,G.state),ve(A=="{"?it:St)}function vn(A){return function(z){return z=="."?ee(A?tn:Hr):z=="variable"&&q?ee(Bn,A?xt:Je):ve(A?St:qe)}}function Hr(A,z){if(z=="target")return G.marked="keyword",ee(Je)}function tn(A,z){if(z=="target")return G.marked="keyword",ee(xt)}function En(A){return A==":"?ee(Fe,it):ve(Je,Re(";"),Fe)}function gn(A){if(A=="variable")return G.marked="property",ee()}function Ur(A,z){if(A=="async")return G.marked="property",ee(Ur);if(A=="variable"||G.style=="keyword"){if(G.marked="property",z=="get"||z=="set")return ee(gr);var Se;return q&&G.state.fatArrowAt==G.stream.start&&(Se=G.stream.match(/^\s*:\s*/,!1))&&(G.state.fatArrowAt=G.stream.pos+Se[0].length),ee(Er)}else{if(A=="number"||A=="string")return G.marked=R?"property":G.style+" property",ee(Er);if(A=="jsonld-keyword")return ee(Er);if(q&&ct(z))return G.marked="keyword",ee(Ur);if(A=="[")return ee(qe,Qe,Re("]"),Er);if(A=="spread")return ee(St,Er);if(z=="*")return G.marked="keyword",ee(Ur);if(A==":")return ve(Er)}}function gr(A){return A!="variable"?ve(Er):(G.marked="property",ee(Mr))}function Er(A){if(A==":")return ee(St);if(A=="(")return ve(Mr)}function Bt(A,z,Se){function Pe(tt,yt){if(Se?Se.indexOf(tt)>-1:tt==","){var At=G.state.lexical;return At.info=="call"&&(At.pos=(At.pos||0)+1),ee(function($e,on){return $e==z||on==z?ve():ve(A)},Pe)}return tt==z||yt==z?ee():Se&&Se.indexOf(";")>-1?ve(A):ee(Re(z))}return function(tt,yt){return tt==z||yt==z?ee():ve(A,Pe)}}function mt(A,z,Se){for(var Pe=3;Pe<arguments.length;Pe++)G.cc.push(arguments[Pe]);return ee(Ue(z,Se),Bt(A,z),Fe)}function st(A){return A=="}"?ee():ve(it,st)}function Qe(A,z){if(q){if(A==":")return ee(je);if(z=="?")return ee(Qe)}}function ht(A,z){if(q&&(A==":"||z=="in"))return ee(je)}function ne(A){if(q&&A==":")return G.stream.match(/^\s*\w+\s+is\b/,!1)?ee(qe,be,je):ee(je)}function be(A,z){if(z=="is")return G.marked="keyword",ee()}function je(A,z){if(z=="keyof"||z=="typeof"||z=="infer"||z=="readonly")return G.marked="keyword",ee(z=="typeof"?St:je);if(A=="variable"||z=="void")return G.marked="type",ee(er);if(z=="|"||z=="&")return ee(je);if(A=="string"||A=="number"||A=="atom")return ee(er);if(A=="[")return ee(Ue("]"),Bt(je,"]",","),Fe,er);if(A=="{")return ee(Ue("}"),ft,Fe,er);if(A=="(")return ee(Bt(wt,")"),et,er);if(A=="<")return ee(Bt(je,">"),je);if(A=="quasi")return ve(_t,er)}function et(A){if(A=="=>")return ee(je)}function ft(A){return A.match(/[\}\)\]]/)?ee():A==","||A==";"?ee(ft):ve(lt,ft)}function lt(A,z){if(A=="variable"||G.style=="keyword")return G.marked="property",ee(lt);if(z=="?"||A=="number"||A=="string")return ee(lt);if(A==":")return ee(je);if(A=="[")return ee(Re("variable"),ht,Re("]"),lt);if(A=="(")return ve(Xr,lt);if(!A.match(/[;\}\)\],]/))return ee()}function _t(A,z){return A!="quasi"?ve():z.slice(z.length-2)!="${"?ee(_t):ee(je,kr)}function kr(A){if(A=="}")return G.marked="string-2",G.state.tokenize=te,ee(_t)}function wt(A,z){return A=="variable"&&G.stream.match(/^\s*[?:]/,!1)||z=="?"?ee(wt):A==":"?ee(je):A=="spread"?ee(wt):ve(je)}function er(A,z){if(z=="<")return ee(Ue(">"),Bt(je,">"),Fe,er);if(z=="|"||A=="."||z=="&")return ee(je);if(A=="[")return ee(je,Re("]"),er);if(z=="extends"||z=="implements")return G.marked="keyword",ee(je);if(z=="?")return ee(je,Re(":"),je)}function Bn(A,z){if(z=="<")return ee(Ue(">"),Bt(je,">"),Fe,er)}function mr(){return ve(je,yr)}function yr(A,z){if(z=="=")return ee(je)}function jn(A,z){return z=="enum"?(G.marked="keyword",ee(Ct)):ve(Tr,Qe,br,Wn)}function Tr(A,z){if(q&&ct(z))return G.marked="keyword",ee(Tr);if(A=="variable")return _e(z),ee();if(A=="spread")return ee(Tr);if(A=="[")return mt(Tn,"]");if(A=="{")return mt(kn,"}")}function kn(A,z){return A=="variable"&&!G.stream.match(/^\s*:/,!1)?(_e(z),ee(br)):(A=="variable"&&(G.marked="property"),A=="spread"?ee(Tr):A=="}"?ve():A=="["?ee(qe,Re("]"),Re(":"),kn):ee(Re(":"),Tr,br))}function Tn(){return ve(Tr,br)}function br(A,z){if(z=="=")return ee(St)}function Wn(A){if(A==",")return ee(jn)}function mn(A,z){if(A=="keyword b"&&z=="else")return ee(Ue("form","else"),it,Fe)}function ti(A,z){if(z=="await")return ee(ti);if(A=="(")return ee(Ue(")"),Ui,Fe)}function Ui(A){return A=="var"?ee(jn,Yr):A=="variable"?ee(Yr):ve(Yr)}function Yr(A,z){return A==")"?ee():A==";"?ee(Yr):z=="in"||z=="of"?(G.marked="keyword",ee(qe,Yr)):ve(qe,Yr)}function Mr(A,z){if(z=="*")return G.marked="keyword",ee(Mr);if(A=="variable")return _e(z),ee(Mr);if(A=="(")return ee(dt,Ue(")"),Bt(_r,")"),Fe,ne,it,nt);if(q&&z=="<")return ee(Ue(">"),Bt(mr,">"),Fe,Mr)}function Xr(A,z){if(z=="*")return G.marked="keyword",ee(Xr);if(A=="variable")return _e(z),ee(Xr);if(A=="(")return ee(dt,Ue(")"),Bt(_r,")"),Fe,ne,nt);if(q&&z=="<")return ee(Ue(">"),Bt(mr,">"),Fe,Xr)}function zr(A,z){if(A=="keyword"||A=="variable")return G.marked="type",ee(zr);if(z=="<")return ee(Ue(">"),Bt(mr,">"),Fe)}function _r(A,z){return z=="@"&&ee(qe,_r),A=="spread"?ee(_r):q&&ct(z)?(G.marked="keyword",ee(_r)):q&&A=="this"?ee(Qe,br):ve(Tr,Qe,br)}function Oo(A,z){return A=="variable"?yn(A,z):Nr(A,z)}function yn(A,z){if(A=="variable")return _e(z),ee(Nr)}function Nr(A,z){if(z=="<")return ee(Ue(">"),Bt(mr,">"),Fe,Nr);if(z=="extends"||z=="implements"||q&&A==",")return z=="implements"&&(G.marked="keyword"),ee(q?je:qe,Nr);if(A=="{")return ee(Ue("}"),tr,Fe)}function tr(A,z){if(A=="async"||A=="variable"&&(z=="static"||z=="get"||z=="set"||q&&ct(z))&&G.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return G.marked="keyword",ee(tr);if(A=="variable"||G.style=="keyword")return G.marked="property",ee(Pn,tr);if(A=="number"||A=="string")return ee(Pn,tr);if(A=="[")return ee(qe,Qe,Re("]"),Pn,tr);if(z=="*")return G.marked="keyword",ee(tr);if(q&&A=="(")return ve(Xr,tr);if(A==";"||A==",")return ee(tr);if(A=="}")return ee();if(z=="@")return ee(qe,tr)}function Pn(A,z){if(z=="!"||z=="?")return ee(Pn);if(A==":")return ee(je,br);if(z=="=")return ee(St);var Se=G.state.lexical.prev,Pe=Se&&Se.info=="interface";return ve(Pe?Xr:Mr)}function rn(A,z){return z=="*"?(G.marked="keyword",ee(gi,Re(";"))):z=="default"?(G.marked="keyword",ee(qe,Re(";"))):A=="{"?ee(Bt(zi,"}"),gi,Re(";")):ve(it)}function zi(A,z){if(z=="as")return G.marked="keyword",ee(Re("variable"));if(A=="variable")return ve(St,zi)}function oa(A){return A=="string"?ee():A=="("?ve(qe):A=="."?ve(Je):ve(Ht,Ve,gi)}function Ht(A,z){return A=="{"?mt(Ht,"}"):(A=="variable"&&_e(z),z=="*"&&(G.marked="keyword"),ee(Hn))}function Ve(A){if(A==",")return ee(Ht,Ve)}function Hn(A,z){if(z=="as")return G.marked="keyword",ee(Ht)}function gi(A,z){if(z=="from")return G.marked="keyword",ee(qe)}function nn(A){return A=="]"?ee():ve(Bt(St,"]"))}function Ct(){return ve(Ue("form"),Tr,Re("{"),Ue("}"),Bt(Un,"}"),Fe,Fe)}function Un(){return ve(Tr,br)}function mi(A,z){return A.lastType=="operator"||A.lastType==","||se.test(z.charAt(0))||/[,.]/.test(z.charAt(0))}function _i(A,z,Se){return z.tokenize==L&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(z.lastType)||z.lastType=="quasi"&&/\{\s*$/.test(A.string.slice(0,A.pos-(Se||0)))}return{startState:function(A){var z={tokenize:L,lastType:"sof",cc:[],lexical:new Y((A||0)-P,0,"block",!1),localVars:E.localVars,context:E.localVars&&new ut(null,null,!1),indented:A||0};return E.globalVars&&typeof E.globalVars=="object"&&(z.globalVars=E.globalVars),z},token:function(A,z){if(A.sol()&&(z.lexical.hasOwnProperty("align")||(z.lexical.align=!1),z.indented=A.indentation(),ie(A,z)),z.tokenize!=K&&A.eatSpace())return null;var Se=z.tokenize(A,z);return J=="comment"?Se:(z.lastType=J=="operator"&&(M=="++"||M=="--")?"incdec":J,ge(z,Se,J,M,A))},indent:function(A,z){if(A.tokenize==K||A.tokenize==te)return v.Pass;if(A.tokenize!=L)return 0;var Se=z&&z.charAt(0),Pe=A.lexical,tt;if(!/^\s*else\b/.test(z))for(var yt=A.cc.length-1;yt>=0;--yt){var At=A.cc[yt];if(At==Fe)Pe=Pe.prev;else if(At!=mn&&At!=nt)break}for(;(Pe.type=="stat"||Pe.type=="form")&&(Se=="}"||(tt=A.cc[A.cc.length-1])&&(tt==Je||tt==xt)&&!/^[,\.=+\-*:?[\(]/.test(z));)Pe=Pe.prev;D&&Pe.type==")"&&Pe.prev.type=="stat"&&(Pe=Pe.prev);var $e=Pe.type,on=Se==$e;return $e=="vardef"?Pe.indented+(A.lastType=="operator"||A.lastType==","?Pe.info.length+1:0):$e=="form"&&Se=="{"?Pe.indented:$e=="form"?Pe.indented+P:$e=="stat"?Pe.indented+(mi(A,z)?D||P:0):Pe.info=="switch"&&!on&&E.doubleIndentSwitch!=!1?Pe.indented+(/^(?:case|default)\b/.test(z)?P:2*P):Pe.align?Pe.column+(on?0:1):Pe.indented+(on?0:P)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:_?null:"/*",blockCommentEnd:_?null:"*/",blockCommentContinue:_?null:" * ",lineComment:_?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:_?"json":"javascript",jsonldMode:R,jsonMode:_,expressionAllowed:_i,skipExpression:function(A){ge(A,"atom","atom","true",new v.StringStream("",2,null))}}}),v.registerHelper("wordChars","javascript",/[\w$]/),v.defineMIME("text/javascript","javascript"),v.defineMIME("text/ecmascript","javascript"),v.defineMIME("application/javascript","javascript"),v.defineMIME("application/x-javascript","javascript"),v.defineMIME("application/ecmascript","javascript"),v.defineMIME("application/json",{name:"javascript",json:!0}),v.defineMIME("application/x-json",{name:"javascript",json:!0}),v.defineMIME("application/manifest+json",{name:"javascript",json:!0}),v.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),v.defineMIME("text/typescript",{name:"javascript",typescript:!0}),v.defineMIME("application/typescript",{name:"javascript",typescript:!0})})},26179:(x,N)=>{"use strict";/*!
37
- * cookie
38
- * Copyright(c) 2012-2014 Roman Shtylman
39
- * Copyright(c) 2015 Douglas Christopher Wilson
40
- * MIT Licensed
41
- */N.parse=C,N.serialize=E;var f=Object.prototype.toString,v=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function C(Z,q){if(typeof Z!="string")throw new TypeError("argument str must be a string");for(var de={},re=q||{},se=re.decode||P,V=0;V<Z.length;){var T=Z.indexOf("=",V);if(T===-1)break;var J=Z.indexOf(";",V);if(J===-1)J=Z.length;else if(J<T){V=Z.lastIndexOf(";",T-1)+1;continue}var M=Z.slice(V,T).trim();if(de[M]===void 0){var S=Z.slice(T+1,J).trim();S.charCodeAt(0)===34&&(S=S.slice(1,-1)),de[M]=_(S,se)}V=J+1}return de}function E(Z,q,de){var re=de||{},se=re.encode||D;if(typeof se!="function")throw new TypeError("option encode is invalid");if(!v.test(Z))throw new TypeError("argument name is invalid");var V=se(q);if(V&&!v.test(V))throw new TypeError("argument val is invalid");var T=Z+"="+V;if(re.maxAge!=null){var J=re.maxAge-0;if(isNaN(J)||!isFinite(J))throw new TypeError("option maxAge is invalid");T+="; Max-Age="+Math.floor(J)}if(re.domain){if(!v.test(re.domain))throw new TypeError("option domain is invalid");T+="; Domain="+re.domain}if(re.path){if(!v.test(re.path))throw new TypeError("option path is invalid");T+="; Path="+re.path}if(re.expires){var M=re.expires;if(!R(M)||isNaN(M.valueOf()))throw new TypeError("option expires is invalid");T+="; Expires="+M.toUTCString()}if(re.httpOnly&&(T+="; HttpOnly"),re.secure&&(T+="; Secure"),re.priority){var S=typeof re.priority=="string"?re.priority.toLowerCase():re.priority;switch(S){case"low":T+="; Priority=Low";break;case"medium":T+="; Priority=Medium";break;case"high":T+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(re.sameSite){var L=typeof re.sameSite=="string"?re.sameSite.toLowerCase():re.sameSite;switch(L){case!0:T+="; SameSite=Strict";break;case"lax":T+="; SameSite=Lax";break;case"strict":T+="; SameSite=Strict";break;case"none":T+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return T}function P(Z){return Z.indexOf("%")!==-1?decodeURIComponent(Z):Z}function D(Z){return encodeURIComponent(Z)}function R(Z){return f.call(Z)==="[object Date]"||Z instanceof Date}function _(Z,q){try{return q(Z)}catch{return Z}}},97529:(x,N,f)=>{var v=f(44928);x.exports=v},75342:(x,N,f)=>{var v=f(26087);x.exports=v},64218:(x,N,f)=>{var v=f(11783);x.exports=v},95050:(x,N,f)=>{var v=f(88462);x.exports=v},84779:(x,N,f)=>{var v=f(83531);x.exports=v},17190:(x,N,f)=>{var v=f(19941);x.exports=v},96589:(x,N,f)=>{var v=f(25081);x.exports=v},32276:(x,N,f)=>{var v=f(22145);x.exports=v},15064:(x,N,f)=>{var v=f(93690);x.exports=v},31986:(x,N,f)=>{var v=f(8429);f(42319),x.exports=v},69635:(x,N,f)=>{var v=f(13099);x.exports=v},3529:(x,N,f)=>{var v=f(44931);x.exports=v},85373:(x,N,f)=>{f(17802);var v=f(70291);x.exports=v("Array").filter},94537:(x,N,f)=>{f(64009);var v=f(70291);x.exports=v("Array").forEach},27794:(x,N,f)=>{f(32449);var v=f(70291);x.exports=v("Array").indexOf},55794:(x,N,f)=>{var v=f(15166),C=f(85373),E=Array.prototype;x.exports=function(P){var D=P.filter;return P===E||v(E,P)&&D===E.filter?C:D}},85838:(x,N,f)=>{var v=f(15166),C=f(27794),E=Array.prototype;x.exports=function(P){var D=P.indexOf;return P===E||v(E,P)&&D===E.indexOf?C:D}},95617:(x,N,f)=>{f(28135);var v=f(59921),C=v.Object,E=x.exports=function(D,R){return C.defineProperties(D,R)};C.defineProperties.sham&&(E.sham=!0)},11906:(x,N,f)=>{f(70829);var v=f(59921),C=v.Object,E=x.exports=function(D,R,_){return C.defineProperty(D,R,_)};C.defineProperty.sham&&(E.sham=!0)},59123:(x,N,f)=>{f(51964);var v=f(59921),C=v.Object,E=x.exports=function(D,R){return C.getOwnPropertyDescriptor(D,R)};C.getOwnPropertyDescriptor.sham&&(E.sham=!0)},63332:(x,N,f)=>{f(723);var v=f(59921);x.exports=v.Object.getOwnPropertyDescriptors},83606:(x,N,f)=>{f(68030);var v=f(59921);x.exports=v.Object.getOwnPropertySymbols},90660:(x,N,f)=>{f(38339);var v=f(59921);x.exports=v.Object.keys},49198:(x,N,f)=>{f(69825),f(97829),f(68030),f(95353),f(63906),f(39542),f(47882),f(84911),f(88725),f(47954),f(67703),f(2220),f(48990),f(50240),f(99921),f(3502),f(80220),f(23870),f(5828),f(5708);var v=f(59921);x.exports=v.Symbol},15413:(x,N,f)=>{f(44390),f(97829),f(27626),f(84911);var v=f(39378);x.exports=v.f("iterator")},4793:(x,N,f)=>{f(91667),f(99921);var v=f(39378);x.exports=v.f("toPrimitive")},24018:(x,N,f)=>{x.exports=f(11226)},27411:(x,N,f)=>{x.exports=f(39743)},79155:(x,N,f)=>{x.exports=f(17018)},13375:(x,N,f)=>{x.exports=f(45057)},95442:(x,N,f)=>{x.exports=f(97947)},55334:(x,N,f)=>{x.exports=f(26452)},48261:(x,N,f)=>{x.exports=f(4477)},92864:(x,N,f)=>{x.exports=f(74013)},27923:(x,N,f)=>{x.exports=f(17685)},89225:(x,N,f)=>{x.exports=f(2371)},95281:(x,N,f)=>{x.exports=f(89061)},55468:(x,N,f)=>{x.exports=f(51553)},11226:(x,N,f)=>{var v=f(97529);x.exports=v},39743:(x,N,f)=>{var v=f(75342);x.exports=v},17018:(x,N,f)=>{var v=f(64218);x.exports=v},45057:(x,N,f)=>{var v=f(95050);x.exports=v},97947:(x,N,f)=>{var v=f(84779);x.exports=v},26452:(x,N,f)=>{var v=f(17190);x.exports=v},4477:(x,N,f)=>{var v=f(96589);x.exports=v},74013:(x,N,f)=>{var v=f(32276);x.exports=v},17685:(x,N,f)=>{var v=f(15064);x.exports=v},2371:(x,N,f)=>{var v=f(31986);f(45987),f(58052),f(90181),f(25129),f(90397),f(18097),f(82793),f(52100),f(99742),x.exports=v},89061:(x,N,f)=>{var v=f(69635);x.exports=v},51553:(x,N,f)=>{var v=f(3529);x.exports=v},81970:(x,N,f)=>{var v=f(43152),C=f(18342),E=TypeError;x.exports=function(P){if(v(P))return P;throw E(C(P)+" is not a function")}},72185:(x,N,f)=>{var v=f(43152),C=String,E=TypeError;x.exports=function(P){if(typeof P=="object"||v(P))return P;throw E("Can't set "+C(P)+" as a prototype")}},20844:x=>{x.exports=function(){}},35970:(x,N,f)=>{var v=f(92548),C=String,E=TypeError;x.exports=function(P){if(v(P))return P;throw E(C(P)+" is not an object")}},24782:(x,N,f)=>{"use strict";var v=f(93935).forEach,C=f(10454),E=C("forEach");x.exports=E?[].forEach:function(D){return v(this,D,arguments.length>1?arguments[1]:void 0)}},66322:(x,N,f)=>{var v=f(88966),C=f(13249),E=f(53387),P=function(D){return function(R,_,Z){var q=v(R),de=E(q),re=C(Z,de),se;if(D&&_!=_){for(;de>re;)if(se=q[re++],se!=se)return!0}else for(;de>re;re++)if((D||re in q)&&q[re]===_)return D||re||0;return!D&&-1}};x.exports={includes:P(!0),indexOf:P(!1)}},93935:(x,N,f)=>{var v=f(7416),C=f(90406),E=f(38622),P=f(53254),D=f(53387),R=f(69573),_=C([].push),Z=function(q){var de=q==1,re=q==2,se=q==3,V=q==4,T=q==6,J=q==7,M=q==5||T;return function(S,L,F,K){for(var te=P(S),j=E(te),ie=v(L,F),H=D(j),Y=0,ce=K||R,ge=de?ce(S,H):re||J?ce(S,0):void 0,G,ve;H>Y;Y++)if((M||Y in j)&&(G=j[Y],ve=ie(G,Y,te),q))if(de)ge[Y]=ve;else if(ve)switch(q){case 3:return!0;case 5:return G;case 6:return Y;case 2:_(ge,G)}else switch(q){case 4:return!1;case 7:_(ge,G)}return T?-1:se||V?V:ge}};x.exports={forEach:Z(0),map:Z(1),filter:Z(2),some:Z(3),every:Z(4),find:Z(5),findIndex:Z(6),filterReject:Z(7)}},36844:(x,N,f)=>{var v=f(31982),C=f(33538),E=f(32438),P=C("species");x.exports=function(D){return E>=51||!v(function(){var R=[],_=R.constructor={};return _[P]=function(){return{foo:1}},R[D](Boolean).foo!==1})}},10454:(x,N,f)=>{"use strict";var v=f(31982);x.exports=function(C,E){var P=[][C];return!!P&&v(function(){P.call(null,E||function(){return 1},1)})}},67932:(x,N,f)=>{var v=f(13249),C=f(53387),E=f(53437),P=Array,D=Math.max;x.exports=function(R,_,Z){for(var q=C(R),de=v(_,q),re=v(Z===void 0?q:Z,q),se=P(D(re-de,0)),V=0;de<re;de++,V++)E(se,V,R[de]);return se.length=V,se}},53160:(x,N,f)=>{var v=f(90406);x.exports=v([].slice)},76562:(x,N,f)=>{var v=f(93053),C=f(43455),E=f(92548),P=f(33538),D=P("species"),R=Array;x.exports=function(_){var Z;return v(_)&&(Z=_.constructor,C(Z)&&(Z===R||v(Z.prototype))?Z=void 0:E(Z)&&(Z=Z[D],Z===null&&(Z=void 0))),Z===void 0?R:Z}},69573:(x,N,f)=>{var v=f(76562);x.exports=function(C,E){return new(v(C))(E===0?0:E)}},58310:(x,N,f)=>{var v=f(90406),C=v({}.toString),E=v("".slice);x.exports=function(P){return E(C(P),8,-1)}},82059:(x,N,f)=>{var v=f(48448),C=f(43152),E=f(58310),P=f(33538),D=P("toStringTag"),R=Object,_=E(function(){return arguments}())=="Arguments",Z=function(q,de){try{return q[de]}catch{}};x.exports=v?E:function(q){var de,re,se;return q===void 0?"Undefined":q===null?"Null":typeof(re=Z(de=R(q),D))=="string"?re:_?E(de):(se=E(de))=="Object"&&C(de.callee)?"Arguments":se}},74838:(x,N,f)=>{var v=f(31982);x.exports=!v(function(){function C(){}return C.prototype.constructor=null,Object.getPrototypeOf(new C)!==C.prototype})},10248:x=>{x.exports=function(N,f){return{value:N,done:f}}},20410:(x,N,f)=>{var v=f(56049),C=f(36133),E=f(54686);x.exports=v?function(P,D,R){return C.f(P,D,E(1,R))}:function(P,D,R){return P[D]=R,P}},54686:x=>{x.exports=function(N,f){return{enumerable:!(N&1),configurable:!(N&2),writable:!(N&4),value:f}}},53437:(x,N,f)=>{"use strict";var v=f(5135),C=f(36133),E=f(54686);x.exports=function(P,D,R){var _=v(D);_ in P?C.f(P,_,E(0,R)):P[_]=R}},37912:(x,N,f)=>{var v=f(36133);x.exports=function(C,E,P){return v.f(C,E,P)}},27519:(x,N,f)=>{var v=f(20410);x.exports=function(C,E,P,D){return D&&D.enumerable?C[E]=P:v(C,E,P),C}},9267:(x,N,f)=>{var v=f(62447),C=Object.defineProperty;x.exports=function(E,P){try{C(v,E,{value:P,configurable:!0,writable:!0})}catch{v[E]=P}return P}},56049:(x,N,f)=>{var v=f(31982);x.exports=!v(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},51647:x=>{var N=typeof document=="object"&&document.all,f=typeof N>"u"&&N!==void 0;x.exports={all:N,IS_HTMLDDA:f}},45511:(x,N,f)=>{var v=f(62447),C=f(92548),E=v.document,P=C(E)&&C(E.createElement);x.exports=function(D){return P?E.createElement(D):{}}},11452:x=>{var N=TypeError,f=9007199254740991;x.exports=function(v){if(v>f)throw N("Maximum allowed index exceeded");return v}},81595:x=>{x.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},90740:x=>{x.exports=typeof navigator<"u"&&String(navigator.userAgent)||""},32438:(x,N,f)=>{var v=f(62447),C=f(90740),E=v.process,P=v.Deno,D=E&&E.versions||P&&P.version,R=D&&D.v8,_,Z;R&&(_=R.split("."),Z=_[0]>0&&_[0]<4?1:+(_[0]+_[1])),!Z&&C&&(_=C.match(/Edge\/(\d+)/),(!_||_[1]>=74)&&(_=C.match(/Chrome\/(\d+)/),_&&(Z=+_[1]))),x.exports=Z},70291:(x,N,f)=>{var v=f(59921);x.exports=function(C){return v[C+"Prototype"]}},11792:x=>{x.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},30080:(x,N,f)=>{"use strict";var v=f(62447),C=f(82768),E=f(57953),P=f(43152),D=f(80016).f,R=f(51585),_=f(59921),Z=f(7416),q=f(20410),de=f(18768),re=function(se){var V=function(T,J,M){if(this instanceof V){switch(arguments.length){case 0:return new se;case 1:return new se(T);case 2:return new se(T,J)}return new se(T,J,M)}return C(se,this,arguments)};return V.prototype=se.prototype,V};x.exports=function(se,V){var T=se.target,J=se.global,M=se.stat,S=se.proto,L=J?v:M?v[T]:(v[T]||{}).prototype,F=J?_:_[T]||q(_,T,{})[T],K=F.prototype,te,j,ie,H,Y,ce,ge,G,ve;for(H in V)te=R(J?H:T+(M?".":"#")+H,se.forced),j=!te&&L&&de(L,H),ce=F[H],j&&(se.dontCallGetSet?(ve=D(L,H),ge=ve&&ve.value):ge=L[H]),Y=j&&ge?ge:V[H],!(j&&typeof ce==typeof Y)&&(se.bind&&j?G=Z(Y,v):se.wrap&&j?G=re(Y):S&&P(Y)?G=E(Y):G=Y,(se.sham||Y&&Y.sham||ce&&ce.sham)&&q(G,"sham",!0),q(F,H,G),S&&(ie=T+"Prototype",de(_,ie)||q(_,ie,{}),q(_[ie],H,Y),se.real&&K&&(te||!K[H])&&q(K,H,Y)))}},31982:x=>{x.exports=function(N){try{return!!N()}catch{return!0}}},82768:(x,N,f)=>{var v=f(97966),C=Function.prototype,E=C.apply,P=C.call;x.exports=typeof Reflect=="object"&&Reflect.apply||(v?P.bind(E):function(){return P.apply(E,arguments)})},7416:(x,N,f)=>{var v=f(57953),C=f(81970),E=f(97966),P=v(v.bind);x.exports=function(D,R){return C(D),R===void 0?D:E?P(D,R):function(){return D.apply(R,arguments)}}},97966:(x,N,f)=>{var v=f(31982);x.exports=!v(function(){var C=function(){}.bind();return typeof C!="function"||C.hasOwnProperty("prototype")})},12461:(x,N,f)=>{var v=f(97966),C=Function.prototype.call;x.exports=v?C.bind(C):function(){return C.apply(C,arguments)}},58100:(x,N,f)=>{var v=f(56049),C=f(18768),E=Function.prototype,P=v&&Object.getOwnPropertyDescriptor,D=C(E,"name"),R=D&&function(){}.name==="something",_=D&&(!v||v&&P(E,"name").configurable);x.exports={EXISTS:D,PROPER:R,CONFIGURABLE:_}},54518:(x,N,f)=>{var v=f(90406),C=f(81970);x.exports=function(E,P,D){try{return v(C(Object.getOwnPropertyDescriptor(E,P)[D]))}catch{}}},57953:(x,N,f)=>{var v=f(58310),C=f(90406);x.exports=function(E){if(v(E)==="Function")return C(E)}},90406:(x,N,f)=>{var v=f(97966),C=Function.prototype,E=C.call,P=v&&C.bind.bind(E,E);x.exports=v?P:function(D){return function(){return E.apply(D,arguments)}}},97080:(x,N,f)=>{var v=f(59921),C=f(62447),E=f(43152),P=function(D){return E(D)?D:void 0};x.exports=function(D,R){return arguments.length<2?P(v[D])||P(C[D]):v[D]&&v[D][R]||C[D]&&C[D][R]}},82850:(x,N,f)=>{var v=f(90406),C=f(93053),E=f(43152),P=f(58310),D=f(46025),R=v([].push);x.exports=function(_){if(E(_))return _;if(C(_)){for(var Z=_.length,q=[],de=0;de<Z;de++){var re=_[de];typeof re=="string"?R(q,re):(typeof re=="number"||P(re)=="Number"||P(re)=="String")&&R(q,D(re))}var se=q.length,V=!0;return function(T,J){if(V)return V=!1,J;if(C(this))return J;for(var M=0;M<se;M++)if(q[M]===T)return J}}}},27529:(x,N,f)=>{var v=f(81970),C=f(71365);x.exports=function(E,P){var D=E[P];return C(D)?void 0:v(D)}},62447:(x,N,f)=>{var v=function(C){return C&&C.Math==Math&&C};x.exports=v(typeof globalThis=="object"&&globalThis)||v(typeof window=="object"&&window)||v(typeof self=="object"&&self)||v(typeof f.g=="object"&&f.g)||function(){return this}()||Function("return this")()},18768:(x,N,f)=>{var v=f(90406),C=f(53254),E=v({}.hasOwnProperty);x.exports=Object.hasOwn||function(D,R){return E(C(D),R)}},13477:x=>{x.exports={}},19552:(x,N,f)=>{var v=f(97080);x.exports=v("document","documentElement")},11314:(x,N,f)=>{var v=f(56049),C=f(31982),E=f(45511);x.exports=!v&&!C(function(){return Object.defineProperty(E("div"),"a",{get:function(){return 7}}).a!=7})},38622:(x,N,f)=>{var v=f(90406),C=f(31982),E=f(58310),P=Object,D=v("".split);x.exports=C(function(){return!P("z").propertyIsEnumerable(0)})?function(R){return E(R)=="String"?D(R,""):P(R)}:P},41524:(x,N,f)=>{var v=f(90406),C=f(43152),E=f(70716),P=v(Function.toString);C(E.inspectSource)||(E.inspectSource=function(D){return P(D)}),x.exports=E.inspectSource},44083:(x,N,f)=>{var v=f(57761),C=f(62447),E=f(92548),P=f(20410),D=f(18768),R=f(70716),_=f(4580),Z=f(13477),q="Object already initialized",de=C.TypeError,re=C.WeakMap,se,V,T,J=function(F){return T(F)?V(F):se(F,{})},M=function(F){return function(K){var te;if(!E(K)||(te=V(K)).type!==F)throw de("Incompatible receiver, "+F+" required");return te}};if(v||R.state){var S=R.state||(R.state=new re);S.get=S.get,S.has=S.has,S.set=S.set,se=function(F,K){if(S.has(F))throw de(q);return K.facade=F,S.set(F,K),K},V=function(F){return S.get(F)||{}},T=function(F){return S.has(F)}}else{var L=_("state");Z[L]=!0,se=function(F,K){if(D(F,L))throw de(q);return K.facade=F,P(F,L,K),K},V=function(F){return D(F,L)?F[L]:{}},T=function(F){return D(F,L)}}x.exports={set:se,get:V,has:T,enforce:J,getterFor:M}},93053:(x,N,f)=>{var v=f(58310);x.exports=Array.isArray||function(E){return v(E)=="Array"}},43152:(x,N,f)=>{var v=f(51647),C=v.all;x.exports=v.IS_HTMLDDA?function(E){return typeof E=="function"||E===C}:function(E){return typeof E=="function"}},43455:(x,N,f)=>{var v=f(90406),C=f(31982),E=f(43152),P=f(82059),D=f(97080),R=f(41524),_=function(){},Z=[],q=D("Reflect","construct"),de=/^\s*(?:class|function)\b/,re=v(de.exec),se=!de.exec(_),V=function(M){if(!E(M))return!1;try{return q(_,Z,M),!0}catch{return!1}},T=function(M){if(!E(M))return!1;switch(P(M)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return se||!!re(de,R(M))}catch{return!0}};T.sham=!0,x.exports=!q||C(function(){var J;return V(V.call)||!V(Object)||!V(function(){J=!0})||J})?T:V},51585:(x,N,f)=>{var v=f(31982),C=f(43152),E=/#|\.prototype\./,P=function(q,de){var re=R[D(q)];return re==Z?!0:re==_?!1:C(de)?v(de):!!de},D=P.normalize=function(q){return String(q).replace(E,".").toLowerCase()},R=P.data={},_=P.NATIVE="N",Z=P.POLYFILL="P";x.exports=P},71365:x=>{x.exports=function(N){return N==null}},92548:(x,N,f)=>{var v=f(43152),C=f(51647),E=C.all;x.exports=C.IS_HTMLDDA?function(P){return typeof P=="object"?P!==null:v(P)||P===E}:function(P){return typeof P=="object"?P!==null:v(P)}},39839:x=>{x.exports=!0},28609:(x,N,f)=>{var v=f(97080),C=f(43152),E=f(15166),P=f(27237),D=Object;x.exports=P?function(R){return typeof R=="symbol"}:function(R){var _=v("Symbol");return C(_)&&E(_.prototype,D(R))}},41709:(x,N,f)=>{"use strict";var v=f(98488).IteratorPrototype,C=f(73270),E=f(54686),P=f(98889),D=f(94609),R=function(){return this};x.exports=function(_,Z,q,de){var re=Z+" Iterator";return _.prototype=C(v,{next:E(+!de,q)}),P(_,re,!1,!0),D[re]=R,_}},78107:(x,N,f)=>{"use strict";var v=f(30080),C=f(12461),E=f(39839),P=f(58100),D=f(43152),R=f(41709),_=f(90851),Z=f(70738),q=f(98889),de=f(20410),re=f(27519),se=f(33538),V=f(94609),T=f(98488),J=P.PROPER,M=P.CONFIGURABLE,S=T.IteratorPrototype,L=T.BUGGY_SAFARI_ITERATORS,F=se("iterator"),K="keys",te="values",j="entries",ie=function(){return this};x.exports=function(H,Y,ce,ge,G,ve,ee){R(ce,Y,ge);var He=function(Ue){if(Ue===G&&at)return at;if(!L&&Ue in ct)return ct[Ue];switch(Ue){case K:return function(){return new ce(this,Ue)};case te:return function(){return new ce(this,Ue)};case j:return function(){return new ce(this,Ue)}}return function(){return new ce(this)}},_e=Y+" Iterator",ze=!1,ct=H.prototype,ut=ct[F]||ct["@@iterator"]||G&&ct[G],at=!L&&ut||He(G),Gt=Y=="Array"&&ct.entries||ut,dt,Ot,nt;if(Gt&&(dt=_(Gt.call(new H)),dt!==Object.prototype&&dt.next&&(!E&&_(dt)!==S&&(Z?Z(dt,S):D(dt[F])||re(dt,F,ie)),q(dt,_e,!0,!0),E&&(V[_e]=ie))),J&&G==te&&ut&&ut.name!==te&&(!E&&M?de(ct,"name",te):(ze=!0,at=function(){return C(ut,this)})),G)if(Ot={values:He(te),keys:ve?at:He(K),entries:He(j)},ee)for(nt in Ot)(L||ze||!(nt in ct))&&re(ct,nt,Ot[nt]);else v({target:Y,proto:!0,forced:L||ze},Ot);return(!E||ee)&&ct[F]!==at&&re(ct,F,at,{name:G}),V[Y]=at,Ot}},98488:(x,N,f)=>{"use strict";var v=f(31982),C=f(43152),E=f(92548),P=f(73270),D=f(90851),R=f(27519),_=f(33538),Z=f(39839),q=_("iterator"),de=!1,re,se,V;[].keys&&(V=[].keys(),"next"in V?(se=D(D(V)),se!==Object.prototype&&(re=se)):de=!0);var T=!E(re)||v(function(){var J={};return re[q].call(J)!==J});T?re={}:Z&&(re=P(re)),C(re[q])||R(re,q,function(){return this}),x.exports={IteratorPrototype:re,BUGGY_SAFARI_ITERATORS:de}},94609:x=>{x.exports={}},53387:(x,N,f)=>{var v=f(62567);x.exports=function(C){return v(C.length)}},99295:x=>{var N=Math.ceil,f=Math.floor;x.exports=Math.trunc||function(C){var E=+C;return(E>0?f:N)(E)}},73270:(x,N,f)=>{var v=f(35970),C=f(98911),E=f(11792),P=f(13477),D=f(19552),R=f(45511),_=f(4580),Z=">",q="<",de="prototype",re="script",se=_("IE_PROTO"),V=function(){},T=function(F){return q+re+Z+F+q+"/"+re+Z},J=function(F){F.write(T("")),F.close();var K=F.parentWindow.Object;return F=null,K},M=function(){var F=R("iframe"),K="java"+re+":",te;return F.style.display="none",D.appendChild(F),F.src=String(K),te=F.contentWindow.document,te.open(),te.write(T("document.F=Object")),te.close(),te.F},S,L=function(){try{S=new ActiveXObject("htmlfile")}catch{}L=typeof document<"u"?document.domain&&S?J(S):M():J(S);for(var F=E.length;F--;)delete L[de][E[F]];return L()};P[se]=!0,x.exports=Object.create||function(K,te){var j;return K!==null?(V[de]=v(K),j=new V,V[de]=null,j[se]=K):j=L(),te===void 0?j:C.f(j,te)}},98911:(x,N,f)=>{var v=f(56049),C=f(98715),E=f(36133),P=f(35970),D=f(88966),R=f(16619);N.f=v&&!C?Object.defineProperties:function(Z,q){P(Z);for(var de=D(q),re=R(q),se=re.length,V=0,T;se>V;)E.f(Z,T=re[V++],de[T]);return Z}},36133:(x,N,f)=>{var v=f(56049),C=f(11314),E=f(98715),P=f(35970),D=f(5135),R=TypeError,_=Object.defineProperty,Z=Object.getOwnPropertyDescriptor,q="enumerable",de="configurable",re="writable";N.f=v?E?function(V,T,J){if(P(V),T=D(T),P(J),typeof V=="function"&&T==="prototype"&&"value"in J&&re in J&&!J[re]){var M=Z(V,T);M&&M[re]&&(V[T]=J.value,J={configurable:de in J?J[de]:M[de],enumerable:q in J?J[q]:M[q],writable:!1})}return _(V,T,J)}:_:function(V,T,J){if(P(V),T=D(T),P(J),C)try{return _(V,T,J)}catch{}if("get"in J||"set"in J)throw R("Accessors not supported");return"value"in J&&(V[T]=J.value),V}},80016:(x,N,f)=>{var v=f(56049),C=f(12461),E=f(16457),P=f(54686),D=f(88966),R=f(5135),_=f(18768),Z=f(11314),q=Object.getOwnPropertyDescriptor;N.f=v?q:function(re,se){if(re=D(re),se=R(se),Z)try{return q(re,se)}catch{}if(_(re,se))return P(!C(E.f,re,se),re[se])}},53515:(x,N,f)=>{var v=f(58310),C=f(88966),E=f(51203).f,P=f(67932),D=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],R=function(_){try{return E(_)}catch{return P(D)}};x.exports.f=function(Z){return D&&v(Z)=="Window"?R(Z):E(C(Z))}},51203:(x,N,f)=>{var v=f(4541),C=f(11792),E=C.concat("length","prototype");N.f=Object.getOwnPropertyNames||function(D){return v(D,E)}},97620:(x,N)=>{N.f=Object.getOwnPropertySymbols},90851:(x,N,f)=>{var v=f(18768),C=f(43152),E=f(53254),P=f(4580),D=f(74838),R=P("IE_PROTO"),_=Object,Z=_.prototype;x.exports=D?_.getPrototypeOf:function(q){var de=E(q);if(v(de,R))return de[R];var re=de.constructor;return C(re)&&de instanceof re?re.prototype:de instanceof _?Z:null}},15166:(x,N,f)=>{var v=f(90406);x.exports=v({}.isPrototypeOf)},4541:(x,N,f)=>{var v=f(90406),C=f(18768),E=f(88966),P=f(66322).indexOf,D=f(13477),R=v([].push);x.exports=function(_,Z){var q=E(_),de=0,re=[],se;for(se in q)!C(D,se)&&C(q,se)&&R(re,se);for(;Z.length>de;)C(q,se=Z[de++])&&(~P(re,se)||R(re,se));return re}},16619:(x,N,f)=>{var v=f(4541),C=f(11792);x.exports=Object.keys||function(P){return v(P,C)}},16457:(x,N)=>{"use strict";var f={}.propertyIsEnumerable,v=Object.getOwnPropertyDescriptor,C=v&&!f.call({1:2},1);N.f=C?function(P){var D=v(this,P);return!!D&&D.enumerable}:f},70738:(x,N,f)=>{var v=f(54518),C=f(35970),E=f(72185);x.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var P=!1,D={},R;try{R=v(Object.prototype,"__proto__","set"),R(D,[]),P=D instanceof Array}catch{}return function(Z,q){return C(Z),E(q),P?R(Z,q):Z.__proto__=q,Z}}():void 0)},68399:(x,N,f)=>{"use strict";var v=f(48448),C=f(82059);x.exports=v?{}.toString:function(){return"[object "+C(this)+"]"}},96380:(x,N,f)=>{var v=f(12461),C=f(43152),E=f(92548),P=TypeError;x.exports=function(D,R){var _,Z;if(R==="string"&&C(_=D.toString)&&!E(Z=v(_,D))||C(_=D.valueOf)&&!E(Z=v(_,D))||R!=="string"&&C(_=D.toString)&&!E(Z=v(_,D)))return Z;throw P("Can't convert object to primitive value")}},47813:(x,N,f)=>{var v=f(97080),C=f(90406),E=f(51203),P=f(97620),D=f(35970),R=C([].concat);x.exports=v("Reflect","ownKeys")||function(Z){var q=E.f(D(Z)),de=P.f;return de?R(q,de(Z)):q}},59921:x=>{x.exports={}},31251:(x,N,f)=>{var v=f(71365),C=TypeError;x.exports=function(E){if(v(E))throw C("Can't call method on "+E);return E}},98889:(x,N,f)=>{var v=f(48448),C=f(36133).f,E=f(20410),P=f(18768),D=f(68399),R=f(33538),_=R("toStringTag");x.exports=function(Z,q,de,re){if(Z){var se=de?Z:Z.prototype;P(se,_)||C(se,_,{configurable:!0,value:q}),re&&!v&&E(se,"toString",D)}}},4580:(x,N,f)=>{var v=f(95976),C=f(91248),E=v("keys");x.exports=function(P){return E[P]||(E[P]=C(P))}},70716:(x,N,f)=>{var v=f(62447),C=f(9267),E="__core-js_shared__",P=v[E]||C(E,{});x.exports=P},95976:(x,N,f)=>{var v=f(39839),C=f(70716);(x.exports=function(E,P){return C[E]||(C[E]=P!==void 0?P:{})})("versions",[]).push({version:"3.29.1",mode:v?"pure":"global",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"})},18143:(x,N,f)=>{var v=f(90406),C=f(32041),E=f(46025),P=f(31251),D=v("".charAt),R=v("".charCodeAt),_=v("".slice),Z=function(q){return function(de,re){var se=E(P(de)),V=C(re),T=se.length,J,M;return V<0||V>=T?q?"":void 0:(J=R(se,V),J<55296||J>56319||V+1===T||(M=R(se,V+1))<56320||M>57343?q?D(se,V):J:q?_(se,V,V+2):(J-55296<<10)+(M-56320)+65536)}};x.exports={codeAt:Z(!1),charAt:Z(!0)}},71775:(x,N,f)=>{var v=f(32438),C=f(31982);x.exports=!!Object.getOwnPropertySymbols&&!C(function(){var E=Symbol();return!String(E)||!(Object(E)instanceof Symbol)||!Symbol.sham&&v&&v<41})},95679:(x,N,f)=>{var v=f(12461),C=f(97080),E=f(33538),P=f(27519);x.exports=function(){var D=C("Symbol"),R=D&&D.prototype,_=R&&R.valueOf,Z=E("toPrimitive");R&&!R[Z]&&P(R,Z,function(q){return v(_,this)},{arity:1})}},82294:(x,N,f)=>{var v=f(71775);x.exports=v&&!!Symbol.for&&!!Symbol.keyFor},13249:(x,N,f)=>{var v=f(32041),C=Math.max,E=Math.min;x.exports=function(P,D){var R=v(P);return R<0?C(R+D,0):E(R,D)}},88966:(x,N,f)=>{var v=f(38622),C=f(31251);x.exports=function(E){return v(C(E))}},32041:(x,N,f)=>{var v=f(99295);x.exports=function(C){var E=+C;return E!==E||E===0?0:v(E)}},62567:(x,N,f)=>{var v=f(32041),C=Math.min;x.exports=function(E){return E>0?C(v(E),9007199254740991):0}},53254:(x,N,f)=>{var v=f(31251),C=Object;x.exports=function(E){return C(v(E))}},37505:(x,N,f)=>{var v=f(12461),C=f(92548),E=f(28609),P=f(27529),D=f(96380),R=f(33538),_=TypeError,Z=R("toPrimitive");x.exports=function(q,de){if(!C(q)||E(q))return q;var re=P(q,Z),se;if(re){if(de===void 0&&(de="default"),se=v(re,q,de),!C(se)||E(se))return se;throw _("Can't convert object to primitive value")}return de===void 0&&(de="number"),D(q,de)}},5135:(x,N,f)=>{var v=f(37505),C=f(28609);x.exports=function(E){var P=v(E,"string");return C(P)?P:P+""}},48448:(x,N,f)=>{var v=f(33538),C=v("toStringTag"),E={};E[C]="z",x.exports=String(E)==="[object z]"},46025:(x,N,f)=>{var v=f(82059),C=String;x.exports=function(E){if(v(E)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return C(E)}},18342:x=>{var N=String;x.exports=function(f){try{return N(f)}catch{return"Object"}}},91248:(x,N,f)=>{var v=f(90406),C=0,E=Math.random(),P=v(1 .toString);x.exports=function(D){return"Symbol("+(D===void 0?"":D)+")_"+P(++C+E,36)}},27237:(x,N,f)=>{var v=f(71775);x.exports=v&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},98715:(x,N,f)=>{var v=f(56049),C=f(31982);x.exports=v&&C(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},57761:(x,N,f)=>{var v=f(62447),C=f(43152),E=v.WeakMap;x.exports=C(E)&&/native code/.test(String(E))},64832:(x,N,f)=>{var v=f(59921),C=f(18768),E=f(39378),P=f(36133).f;x.exports=function(D){var R=v.Symbol||(v.Symbol={});C(R,D)||P(R,D,{value:E.f(D)})}},39378:(x,N,f)=>{var v=f(33538);N.f=v},33538:(x,N,f)=>{var v=f(62447),C=f(95976),E=f(18768),P=f(91248),D=f(71775),R=f(27237),_=v.Symbol,Z=C("wks"),q=R?_.for||_:_&&_.withoutSetter||P;x.exports=function(de){return E(Z,de)||(Z[de]=D&&E(_,de)?_[de]:q("Symbol."+de)),Z[de]}},69825:(x,N,f)=>{"use strict";var v=f(30080),C=f(31982),E=f(93053),P=f(92548),D=f(53254),R=f(53387),_=f(11452),Z=f(53437),q=f(69573),de=f(36844),re=f(33538),se=f(32438),V=re("isConcatSpreadable"),T=se>=51||!C(function(){var S=[];return S[V]=!1,S.concat()[0]!==S}),J=function(S){if(!P(S))return!1;var L=S[V];return L!==void 0?!!L:E(S)},M=!T||!de("concat");v({target:"Array",proto:!0,arity:1,forced:M},{concat:function(L){var F=D(this),K=q(F,0),te=0,j,ie,H,Y,ce;for(j=-1,H=arguments.length;j<H;j++)if(ce=j===-1?F:arguments[j],J(ce))for(Y=R(ce),_(te+Y),ie=0;ie<Y;ie++,te++)ie in ce&&Z(K,te,ce[ie]);else _(te+1),Z(K,te++,ce);return K.length=te,K}})},17802:(x,N,f)=>{"use strict";var v=f(30080),C=f(93935).filter,E=f(36844),P=E("filter");v({target:"Array",proto:!0,forced:!P},{filter:function(R){return C(this,R,arguments.length>1?arguments[1]:void 0)}})},64009:(x,N,f)=>{"use strict";var v=f(30080),C=f(24782);v({target:"Array",proto:!0,forced:[].forEach!=C},{forEach:C})},32449:(x,N,f)=>{"use strict";var v=f(30080),C=f(57953),E=f(66322).indexOf,P=f(10454),D=C([].indexOf),R=!!D&&1/D([1],1,-0)<0,_=R||!P("indexOf");v({target:"Array",proto:!0,forced:_},{indexOf:function(q){var de=arguments.length>1?arguments[1]:void 0;return R?D(this,q,de)||0:E(this,q,de)}})},44390:(x,N,f)=>{"use strict";var v=f(88966),C=f(20844),E=f(94609),P=f(44083),D=f(36133).f,R=f(78107),_=f(10248),Z=f(39839),q=f(56049),de="Array Iterator",re=P.set,se=P.getterFor(de);x.exports=R(Array,"Array",function(T,J){re(this,{type:de,target:v(T),index:0,kind:J})},function(){var T=se(this),J=T.target,M=T.kind,S=T.index++;return!J||S>=J.length?(T.target=void 0,_(void 0,!0)):M=="keys"?_(S,!1):M=="values"?_(J[S],!1):_([S,J[S]],!1)},"values");var V=E.Arguments=E.Array;if(C("keys"),C("values"),C("entries"),!Z&&q&&V.name!=="values")try{D(V,"name",{value:"values"})}catch{}},91667:()=>{},39306:(x,N,f)=>{var v=f(30080),C=f(97080),E=f(82768),P=f(12461),D=f(90406),R=f(31982),_=f(43152),Z=f(28609),q=f(53160),de=f(82850),re=f(71775),se=String,V=C("JSON","stringify"),T=D(/./.exec),J=D("".charAt),M=D("".charCodeAt),S=D("".replace),L=D(1 .toString),F=/[\uD800-\uDFFF]/g,K=/^[\uD800-\uDBFF]$/,te=/^[\uDC00-\uDFFF]$/,j=!re||R(function(){var ce=C("Symbol")();return V([ce])!="[null]"||V({a:ce})!="{}"||V(Object(ce))!="{}"}),ie=R(function(){return V("\uDF06\uD834")!=='"\\udf06\\ud834"'||V("\uDEAD")!=='"\\udead"'}),H=function(ce,ge){var G=q(arguments),ve=de(ge);if(!(!_(ve)&&(ce===void 0||Z(ce))))return G[1]=function(ee,He){if(_(ve)&&(He=P(ve,this,se(ee),He)),!Z(He))return He},E(V,null,G)},Y=function(ce,ge,G){var ve=J(G,ge-1),ee=J(G,ge+1);return T(K,ce)&&!T(te,ee)||T(te,ce)&&!T(K,ve)?"\\u"+L(M(ce,0),16):ce};V&&v({target:"JSON",stat:!0,arity:3,forced:j||ie},{stringify:function(ge,G,ve){var ee=q(arguments),He=E(j?H:V,null,ee);return ie&&typeof He=="string"?S(He,F,Y):He}})},23870:(x,N,f)=>{var v=f(62447),C=f(98889);C(v.JSON,"JSON",!0)},5828:()=>{},28135:(x,N,f)=>{var v=f(30080),C=f(56049),E=f(98911).f;v({target:"Object",stat:!0,forced:Object.defineProperties!==E,sham:!C},{defineProperties:E})},70829:(x,N,f)=>{var v=f(30080),C=f(56049),E=f(36133).f;v({target:"Object",stat:!0,forced:Object.defineProperty!==E,sham:!C},{defineProperty:E})},51964:(x,N,f)=>{var v=f(30080),C=f(31982),E=f(88966),P=f(80016).f,D=f(56049),R=!D||C(function(){P(1)});v({target:"Object",stat:!0,forced:R,sham:!D},{getOwnPropertyDescriptor:function(Z,q){return P(E(Z),q)}})},723:(x,N,f)=>{var v=f(30080),C=f(56049),E=f(47813),P=f(88966),D=f(80016),R=f(53437);v({target:"Object",stat:!0,sham:!C},{getOwnPropertyDescriptors:function(Z){for(var q=P(Z),de=D.f,re=E(q),se={},V=0,T,J;re.length>V;)J=de(q,T=re[V++]),J!==void 0&&R(se,T,J);return se}})},86884:(x,N,f)=>{var v=f(30080),C=f(71775),E=f(31982),P=f(97620),D=f(53254),R=!C||E(function(){P.f(1)});v({target:"Object",stat:!0,forced:R},{getOwnPropertySymbols:function(Z){var q=P.f;return q?q(D(Z)):[]}})},38339:(x,N,f)=>{var v=f(30080),C=f(53254),E=f(16619),P=f(31982),D=P(function(){E(1)});v({target:"Object",stat:!0,forced:D},{keys:function(_){return E(C(_))}})},97829:()=>{},5708:()=>{},27626:(x,N,f)=>{"use strict";var v=f(18143).charAt,C=f(46025),E=f(44083),P=f(78107),D=f(10248),R="String Iterator",_=E.set,Z=E.getterFor(R);P(String,"String",function(q){_(this,{type:R,string:C(q),index:0})},function(){var de=Z(this),re=de.string,se=de.index,V;return se>=re.length?D(void 0,!0):(V=v(re,se),de.index+=V.length,D(V,!1))})},95353:(x,N,f)=>{var v=f(64832);v("asyncIterator")},16212:(x,N,f)=>{"use strict";var v=f(30080),C=f(62447),E=f(12461),P=f(90406),D=f(39839),R=f(56049),_=f(71775),Z=f(31982),q=f(18768),de=f(15166),re=f(35970),se=f(88966),V=f(5135),T=f(46025),J=f(54686),M=f(73270),S=f(16619),L=f(51203),F=f(53515),K=f(97620),te=f(80016),j=f(36133),ie=f(98911),H=f(16457),Y=f(27519),ce=f(37912),ge=f(95976),G=f(4580),ve=f(13477),ee=f(91248),He=f(33538),_e=f(39378),ze=f(64832),ct=f(95679),ut=f(98889),at=f(44083),Gt=f(93935).forEach,dt=G("hidden"),Ot="Symbol",nt="prototype",Ue=at.set,Fe=at.getterFor(Ot),Re=Object[nt],it=C.Symbol,Ft=it&&it[nt],qe=C.TypeError,St=C.QObject,Kt=te.f,Qt=j.f,hr=F.f,Je=H.f,xt=P([].push),It=ge("symbols"),Or=ge("op-symbols"),Rt=ge("wks"),pn=!St||!St[nt]||!St[nt].findChild,vn=R&&Z(function(){return M(Qt({},"a",{get:function(){return Qt(this,"a",{value:7}).a}})).a!=7})?function(mt,st,Qe){var ht=Kt(Re,st);ht&&delete Re[st],Qt(mt,st,Qe),ht&&mt!==Re&&Qt(Re,st,ht)}:Qt,Hr=function(mt,st){var Qe=It[mt]=M(Ft);return Ue(Qe,{type:Ot,tag:mt,description:st}),R||(Qe.description=st),Qe},tn=function(st,Qe,ht){st===Re&&tn(Or,Qe,ht),re(st);var ne=V(Qe);return re(ht),q(It,ne)?(ht.enumerable?(q(st,dt)&&st[dt][ne]&&(st[dt][ne]=!1),ht=M(ht,{enumerable:J(0,!1)})):(q(st,dt)||Qt(st,dt,J(1,{})),st[dt][ne]=!0),vn(st,ne,ht)):Qt(st,ne,ht)},En=function(st,Qe){re(st);var ht=se(Qe),ne=S(ht).concat(Bt(ht));return Gt(ne,function(be){(!R||E(Ur,ht,be))&&tn(st,be,ht[be])}),st},gn=function(st,Qe){return Qe===void 0?M(st):En(M(st),Qe)},Ur=function(st){var Qe=V(st),ht=E(Je,this,Qe);return this===Re&&q(It,Qe)&&!q(Or,Qe)?!1:ht||!q(this,Qe)||!q(It,Qe)||q(this,dt)&&this[dt][Qe]?ht:!0},gr=function(st,Qe){var ht=se(st),ne=V(Qe);if(!(ht===Re&&q(It,ne)&&!q(Or,ne))){var be=Kt(ht,ne);return be&&q(It,ne)&&!(q(ht,dt)&&ht[dt][ne])&&(be.enumerable=!0),be}},Er=function(st){var Qe=hr(se(st)),ht=[];return Gt(Qe,function(ne){!q(It,ne)&&!q(ve,ne)&&xt(ht,ne)}),ht},Bt=function(mt){var st=mt===Re,Qe=hr(st?Or:se(mt)),ht=[];return Gt(Qe,function(ne){q(It,ne)&&(!st||q(Re,ne))&&xt(ht,It[ne])}),ht};_||(it=function(){if(de(Ft,this))throw qe("Symbol is not a constructor");var st=!arguments.length||arguments[0]===void 0?void 0:T(arguments[0]),Qe=ee(st),ht=function(ne){this===Re&&E(ht,Or,ne),q(this,dt)&&q(this[dt],Qe)&&(this[dt][Qe]=!1),vn(this,Qe,J(1,ne))};return R&&pn&&vn(Re,Qe,{configurable:!0,set:ht}),Hr(Qe,st)},Ft=it[nt],Y(Ft,"toString",function(){return Fe(this).tag}),Y(it,"withoutSetter",function(mt){return Hr(ee(mt),mt)}),H.f=Ur,j.f=tn,ie.f=En,te.f=gr,L.f=F.f=Er,K.f=Bt,_e.f=function(mt){return Hr(He(mt),mt)},R&&(ce(Ft,"description",{configurable:!0,get:function(){return Fe(this).description}}),D||Y(Re,"propertyIsEnumerable",Ur,{unsafe:!0}))),v({global:!0,constructor:!0,wrap:!0,forced:!_,sham:!_},{Symbol:it}),Gt(S(Rt),function(mt){ze(mt)}),v({target:Ot,stat:!0,forced:!_},{useSetter:function(){pn=!0},useSimple:function(){pn=!1}}),v({target:"Object",stat:!0,forced:!_,sham:!R},{create:gn,defineProperty:tn,defineProperties:En,getOwnPropertyDescriptor:gr}),v({target:"Object",stat:!0,forced:!_},{getOwnPropertyNames:Er}),ct(),ut(it,Ot),ve[dt]=!0},63906:()=>{},3598:(x,N,f)=>{var v=f(30080),C=f(97080),E=f(18768),P=f(46025),D=f(95976),R=f(82294),_=D("string-to-symbol-registry"),Z=D("symbol-to-string-registry");v({target:"Symbol",stat:!0,forced:!R},{for:function(q){var de=P(q);if(E(_,de))return _[de];var re=C("Symbol")(de);return _[de]=re,Z[re]=de,re}})},39542:(x,N,f)=>{var v=f(64832);v("hasInstance")},47882:(x,N,f)=>{var v=f(64832);v("isConcatSpreadable")},84911:(x,N,f)=>{var v=f(64832);v("iterator")},68030:(x,N,f)=>{f(16212),f(3598),f(50338),f(39306),f(86884)},50338:(x,N,f)=>{var v=f(30080),C=f(18768),E=f(28609),P=f(18342),D=f(95976),R=f(82294),_=D("symbol-to-string-registry");v({target:"Symbol",stat:!0,forced:!R},{keyFor:function(q){if(!E(q))throw TypeError(P(q)+" is not a symbol");if(C(_,q))return _[q]}})},47954:(x,N,f)=>{var v=f(64832);v("matchAll")},88725:(x,N,f)=>{var v=f(64832);v("match")},67703:(x,N,f)=>{var v=f(64832);v("replace")},2220:(x,N,f)=>{var v=f(64832);v("search")},48990:(x,N,f)=>{var v=f(64832);v("species")},50240:(x,N,f)=>{var v=f(64832);v("split")},99921:(x,N,f)=>{var v=f(64832),C=f(95679);v("toPrimitive"),C()},3502:(x,N,f)=>{var v=f(97080),C=f(64832),E=f(98889);C("toStringTag"),E(v("Symbol"),"Symbol")},80220:(x,N,f)=>{var v=f(64832);v("unscopables")},45987:(x,N,f)=>{var v=f(64832);v("asyncDispose")},42319:(x,N,f)=>{var v=f(64832);v("dispose")},58052:(x,N,f)=>{var v=f(30080),C=f(97080),E=f(90406),P=C("Symbol"),D=P.keyFor,R=E(P.prototype.valueOf);v({target:"Symbol",stat:!0},{isRegistered:function(Z){try{return D(R(Z))!==void 0}catch{return!1}}})},90181:(x,N,f)=>{for(var v=f(30080),C=f(95976),E=f(97080),P=f(90406),D=f(28609),R=f(33538),_=E("Symbol"),Z=_.isWellKnown,q=E("Object","getOwnPropertyNames"),de=P(_.prototype.valueOf),re=C("wks"),se=0,V=q(_),T=V.length;se<T;se++)try{var J=V[se];D(_[J])&&R(J)}catch{}v({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(S){if(Z&&Z(S))return!0;try{for(var L=de(S),F=0,K=q(re),te=K.length;F<te;F++)if(re[K[F]]==L)return!0}catch{}return!1}})},25129:(x,N,f)=>{var v=f(64832);v("matcher")},90397:(x,N,f)=>{var v=f(64832);v("metadataKey")},82793:(x,N,f)=>{var v=f(64832);v("metadata")},18097:(x,N,f)=>{var v=f(64832);v("observable")},52100:(x,N,f)=>{var v=f(64832);v("patternMatch")},99742:(x,N,f)=>{var v=f(64832);v("replaceAll")},48713:(x,N,f)=>{f(44390);var v=f(81595),C=f(62447),E=f(82059),P=f(20410),D=f(94609),R=f(33538),_=R("toStringTag");for(var Z in v){var q=C[Z],de=q&&q.prototype;de&&E(de)!==_&&P(de,_,Z),D[Z]=D.Array}},41544:(x,N,f)=>{var v=f(94537);x.exports=v},44928:(x,N,f)=>{var v=f(55794);x.exports=v},26087:(x,N,f)=>{f(48713);var v=f(82059),C=f(18768),E=f(15166),P=f(41544),D=Array.prototype,R={DOMTokenList:!0,NodeList:!0};x.exports=function(_){var Z=_.forEach;return _===D||E(D,_)&&Z===D.forEach||C(R,v(_))?P:Z}},11783:(x,N,f)=>{var v=f(85838);x.exports=v},88462:(x,N,f)=>{var v=f(95617);x.exports=v},83531:(x,N,f)=>{var v=f(11906);x.exports=v},19941:(x,N,f)=>{var v=f(59123);x.exports=v},25081:(x,N,f)=>{var v=f(63332);x.exports=v},22145:(x,N,f)=>{var v=f(83606);x.exports=v},93690:(x,N,f)=>{var v=f(90660);x.exports=v},8429:(x,N,f)=>{var v=f(49198);f(48713),x.exports=v},13099:(x,N,f)=>{var v=f(15413);f(48713),x.exports=v},44931:(x,N,f)=>{var v=f(4793);x.exports=v},81933:function(){(function(x){var N=function(f){var v={searchParams:"URLSearchParams"in x,iterable:"Symbol"in x&&"iterator"in Symbol,blob:"FileReader"in x&&"Blob"in x&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in x,arrayBuffer:"ArrayBuffer"in x};function C(H){return H&&DataView.prototype.isPrototypeOf(H)}if(v.arrayBuffer)var E=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],P=ArrayBuffer.isView||function(H){return H&&E.indexOf(Object.prototype.toString.call(H))>-1};function D(H){if(typeof H!="string"&&(H=String(H)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(H))throw new TypeError("Invalid character in header field name");return H.toLowerCase()}function R(H){return typeof H!="string"&&(H=String(H)),H}function _(H){var Y={next:function(){var ce=H.shift();return{done:ce===void 0,value:ce}}};return v.iterable&&(Y[Symbol.iterator]=function(){return Y}),Y}function Z(H){this.map={},H instanceof Z?H.forEach(function(Y,ce){this.append(ce,Y)},this):Array.isArray(H)?H.forEach(function(Y){this.append(Y[0],Y[1])},this):H&&Object.getOwnPropertyNames(H).forEach(function(Y){this.append(Y,H[Y])},this)}Z.prototype.append=function(H,Y){H=D(H),Y=R(Y);var ce=this.map[H];this.map[H]=ce?ce+", "+Y:Y},Z.prototype.delete=function(H){delete this.map[D(H)]},Z.prototype.get=function(H){return H=D(H),this.has(H)?this.map[H]:null},Z.prototype.has=function(H){return this.map.hasOwnProperty(D(H))},Z.prototype.set=function(H,Y){this.map[D(H)]=R(Y)},Z.prototype.forEach=function(H,Y){for(var ce in this.map)this.map.hasOwnProperty(ce)&&H.call(Y,this.map[ce],ce,this)},Z.prototype.keys=function(){var H=[];return this.forEach(function(Y,ce){H.push(ce)}),_(H)},Z.prototype.values=function(){var H=[];return this.forEach(function(Y){H.push(Y)}),_(H)},Z.prototype.entries=function(){var H=[];return this.forEach(function(Y,ce){H.push([ce,Y])}),_(H)},v.iterable&&(Z.prototype[Symbol.iterator]=Z.prototype.entries);function q(H){if(H.bodyUsed)return Promise.reject(new TypeError("Already read"));H.bodyUsed=!0}function de(H){return new Promise(function(Y,ce){H.onload=function(){Y(H.result)},H.onerror=function(){ce(H.error)}})}function re(H){var Y=new FileReader,ce=de(Y);return Y.readAsArrayBuffer(H),ce}function se(H){var Y=new FileReader,ce=de(Y);return Y.readAsText(H),ce}function V(H){for(var Y=new Uint8Array(H),ce=new Array(Y.length),ge=0;ge<Y.length;ge++)ce[ge]=String.fromCharCode(Y[ge]);return ce.join("")}function T(H){if(H.slice)return H.slice(0);var Y=new Uint8Array(H.byteLength);return Y.set(new Uint8Array(H)),Y.buffer}function J(){return this.bodyUsed=!1,this._initBody=function(H){this._bodyInit=H,H?typeof H=="string"?this._bodyText=H:v.blob&&Blob.prototype.isPrototypeOf(H)?this._bodyBlob=H:v.formData&&FormData.prototype.isPrototypeOf(H)?this._bodyFormData=H:v.searchParams&&URLSearchParams.prototype.isPrototypeOf(H)?this._bodyText=H.toString():v.arrayBuffer&&v.blob&&C(H)?(this._bodyArrayBuffer=T(H.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):v.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(H)||P(H))?this._bodyArrayBuffer=T(H):this._bodyText=H=Object.prototype.toString.call(H):this._bodyText="",this.headers.get("content-type")||(typeof H=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):v.searchParams&&URLSearchParams.prototype.isPrototypeOf(H)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},v.blob&&(this.blob=function(){var H=q(this);if(H)return H;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?q(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(re)}),this.text=function(){var H=q(this);if(H)return H;if(this._bodyBlob)return se(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(V(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},v.formData&&(this.formData=function(){return this.text().then(F)}),this.json=function(){return this.text().then(JSON.parse)},this}var M=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function S(H){var Y=H.toUpperCase();return M.indexOf(Y)>-1?Y:H}function L(H,Y){Y=Y||{};var ce=Y.body;if(H instanceof L){if(H.bodyUsed)throw new TypeError("Already read");this.url=H.url,this.credentials=H.credentials,Y.headers||(this.headers=new Z(H.headers)),this.method=H.method,this.mode=H.mode,this.signal=H.signal,!ce&&H._bodyInit!=null&&(ce=H._bodyInit,H.bodyUsed=!0)}else this.url=String(H);if(this.credentials=Y.credentials||this.credentials||"same-origin",(Y.headers||!this.headers)&&(this.headers=new Z(Y.headers)),this.method=S(Y.method||this.method||"GET"),this.mode=Y.mode||this.mode||null,this.signal=Y.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&ce)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(ce)}L.prototype.clone=function(){return new L(this,{body:this._bodyInit})};function F(H){var Y=new FormData;return H.trim().split("&").forEach(function(ce){if(ce){var ge=ce.split("="),G=ge.shift().replace(/\+/g," "),ve=ge.join("=").replace(/\+/g," ");Y.append(decodeURIComponent(G),decodeURIComponent(ve))}}),Y}function K(H){var Y=new Z,ce=H.replace(/\r?\n[\t ]+/g," ");return ce.split(/\r?\n/).forEach(function(ge){var G=ge.split(":"),ve=G.shift().trim();if(ve){var ee=G.join(":").trim();Y.append(ve,ee)}}),Y}J.call(L.prototype);function te(H,Y){Y||(Y={}),this.type="default",this.status=Y.status===void 0?200:Y.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in Y?Y.statusText:"OK",this.headers=new Z(Y.headers),this.url=Y.url||"",this._initBody(H)}J.call(te.prototype),te.prototype.clone=function(){return new te(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Z(this.headers),url:this.url})},te.error=function(){var H=new te(null,{status:0,statusText:""});return H.type="error",H};var j=[301,302,303,307,308];te.redirect=function(H,Y){if(j.indexOf(Y)===-1)throw new RangeError("Invalid status code");return new te(null,{status:Y,headers:{location:H}})},f.DOMException=x.DOMException;try{new f.DOMException}catch{f.DOMException=function(Y,ce){this.message=Y,this.name=ce;var ge=Error(Y);this.stack=ge.stack},f.DOMException.prototype=Object.create(Error.prototype),f.DOMException.prototype.constructor=f.DOMException}function ie(H,Y){return new Promise(function(ce,ge){var G=new L(H,Y);if(G.signal&&G.signal.aborted)return ge(new f.DOMException("Aborted","AbortError"));var ve=new XMLHttpRequest;function ee(){ve.abort()}ve.onload=function(){var He={status:ve.status,statusText:ve.statusText,headers:K(ve.getAllResponseHeaders()||"")};He.url="responseURL"in ve?ve.responseURL:He.headers.get("X-Request-URL");var _e="response"in ve?ve.response:ve.responseText;ce(new te(_e,He))},ve.onerror=function(){ge(new TypeError("Network request failed"))},ve.ontimeout=function(){ge(new TypeError("Network request failed"))},ve.onabort=function(){ge(new f.DOMException("Aborted","AbortError"))},ve.open(G.method,G.url,!0),G.credentials==="include"?ve.withCredentials=!0:G.credentials==="omit"&&(ve.withCredentials=!1),"responseType"in ve&&v.blob&&(ve.responseType="blob"),G.headers.forEach(function(He,_e){ve.setRequestHeader(_e,He)}),G.signal&&(G.signal.addEventListener("abort",ee),ve.onreadystatechange=function(){ve.readyState===4&&G.signal.removeEventListener("abort",ee)}),ve.send(typeof G._bodyInit>"u"?null:G._bodyInit)})}return ie.polyfill=!0,x.fetch||(x.fetch=ie,x.Headers=Z,x.Request=L,x.Response=te),f.Headers=Z,f.Request=L,f.Response=te,f.fetch=ie,Object.defineProperty(f,"__esModule",{value:!0}),f}({})})(typeof self<"u"?self:this)},20788:(x,N,f)=>{"use strict";f.r(N),f.d(N,{default:()=>R});var v=f(64737),C=f.n(v),E=f(62578),P=f.n(E),D=P()(C());D.push([x.id,`.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px rgba(0,0,0,.2);-moz-box-shadow:2px 3px 5px rgba(0,0,0,.2);box-shadow:2px 3px 5px #0003;border-radius:3px;border:1px solid silver;background:white;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto;box-sizing:border-box}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}li.CodeMirror-hint-active{background:#08f;color:#fff}
42
- `,""]);const R=D},15218:(x,N,f)=>{"use strict";f.r(N),f.d(N,{default:()=>L});var v=f(64737),C=f.n(v),E=f(62578),P=f.n(E),D=f(7125),R=f.n(D),_=new URL(f(17735),f.b),Z=new URL(f(56089),f.b),q=new URL(f(46050),f.b),de=new URL(f(71090),f.b),re=new URL(f(96192),f.b),se=P()(C()),V=R()(_),T=R()(Z),J=R()(q),M=R()(de),S=R()(re);se.push([x.id,".CodeMirror-lint-markers{width:16px}.CodeMirror-lint-tooltip{background-color:#ffd;border:1px solid black;border-radius:4px;color:#000;font-family:monospace;font-size:10pt;overflow:hidden;padding:2px 5px;position:fixed;white-space:pre;white-space:pre-wrap;z-index:100;max-width:600px;opacity:0;transition:opacity .4s;-moz-transition:opacity .4s;-webkit-transition:opacity .4s;-o-transition:opacity .4s;-ms-transition:opacity .4s}.CodeMirror-lint-mark{background-position:left bottom;background-repeat:repeat-x}.CodeMirror-lint-mark-warning{background-image:url("+V+")}.CodeMirror-lint-mark-error{background-image:url("+T+")}.CodeMirror-lint-marker{background-position:center center;background-repeat:no-repeat;cursor:pointer;display:inline-block;height:16px;width:16px;vertical-align:middle;position:relative}.CodeMirror-lint-message{padding-left:18px;background-position:top left;background-repeat:no-repeat}.CodeMirror-lint-marker-warning,.CodeMirror-lint-message-warning{background-image:url("+J+")}.CodeMirror-lint-marker-error,.CodeMirror-lint-message-error{background-image:url("+M+")}.CodeMirror-lint-marker-multiple{background-image:url("+S+`);background-repeat:no-repeat;background-position:right bottom;width:100%;height:100%}.CodeMirror-lint-line-error{background-color:#b74c5114}.CodeMirror-lint-line-warning{background-color:#ffd3001a}
43
- `,""]);const L=se},80766:(x,N,f)=>{"use strict";f.r(N),f.d(N,{default:()=>R});var v=f(64737),C=f.n(v),E=f(62578),P=f.n(E),D=P()(C());D.push([x.id,`.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;inset:-50px 0 0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error,.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative;z-index:0}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;inset:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors,.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}
44
- `,""]);const R=D},62459:(x,N,f)=>{"use strict";f.r(N),f.d(N,{default:()=>R});var v=f(64737),C=f.n(v),E=f(62578),P=f.n(E),D=P()(C());D.push([x.id,`.cm-s-material.CodeMirror{background-color:#263238;color:#eff}.cm-s-material .CodeMirror-gutters{background:#263238;color:#546e7a;border:none}.cm-s-material .CodeMirror-guttermarker,.cm-s-material .CodeMirror-guttermarker-subtle,.cm-s-material .CodeMirror-linenumber{color:#546e7a}.cm-s-material .CodeMirror-cursor{border-left:1px solid #FFCC00}.cm-s-material.cm-fat-cursor .CodeMirror-cursor,.cm-s-material .cm-animate-fat-cursor{background-color:#5d6d5c80!important}.cm-s-material div.CodeMirror-selected,.cm-s-material.CodeMirror-focused div.CodeMirror-selected{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::selection,.cm-s-material .CodeMirror-line>span::selection,.cm-s-material .CodeMirror-line>span>span::selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::-moz-selection,.cm-s-material .CodeMirror-line>span::-moz-selection,.cm-s-material .CodeMirror-line>span>span::-moz-selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-activeline-background{background:rgba(0,0,0,.5)}.cm-s-material .cm-keyword{color:#c792ea}.cm-s-material .cm-operator{color:#89ddff}.cm-s-material .cm-variable-2{color:#eff}.cm-s-material .cm-variable-3,.cm-s-material .cm-type{color:#f07178}.cm-s-material .cm-builtin{color:#ffcb6b}.cm-s-material .cm-atom{color:#f78c6c}.cm-s-material .cm-number{color:#ff5370}.cm-s-material .cm-def{color:#82aaff}.cm-s-material .cm-string{color:#c3e88d}.cm-s-material .cm-string-2{color:#f07178}.cm-s-material .cm-comment{color:#546e7a}.cm-s-material .cm-variable{color:#f07178}.cm-s-material .cm-tag{color:#ff5370}.cm-s-material .cm-meta{color:#ffcb6b}.cm-s-material .cm-attribute,.cm-s-material .cm-property{color:#c792ea}.cm-s-material .cm-qualifier,.cm-s-material .cm-variable-3,.cm-s-material .cm-type{color:#decb6b}.cm-s-material .cm-error{color:#fff;background-color:#ff5370}.cm-s-material .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}
45
- `,""]);const R=D},7125:x=>{"use strict";x.exports=function(N,f){return f||(f={}),N&&(N=String(N.__esModule?N.default:N),/^['"].*['"]$/.test(N)&&(N=N.slice(1,-1)),f.hash&&(N+=f.hash),/["'() \t\n]|(%20)/.test(N)||f.needQuotes?'"'.concat(N.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):N)}},99561:(x,N,f)=>{"use strict";f.r(N),f.d(N,{Console:()=>pv});var v={};f.r(v),f.d(v,{cookie:()=>Ef,header:()=>Of,path:()=>wf,query:()=>Cf});var C=f(10954),E=f(70762),P=f(93652),D=f(11099),R=f(10017),_=f(86351),Z=f(86751),q=f(12953),de=f(55839),re=f(23422);function se(t){return se=typeof de=="function"&&typeof re=="symbol"?function(n){return typeof n}:function(n){return n&&typeof de=="function"&&n.constructor===de&&n!==de.prototype?"symbol":typeof n},se(t)}var V=f(47319);function T(t,n){if(se(t)!=="object"||t===null)return t;var i=t[V];if(i!==void 0){var s=i.call(t,n||"default");if(se(s)!=="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(t)}function J(t){var n=T(t,"string");return se(n)==="symbol"?n:String(n)}function M(t,n,i){return n=J(n),n in t?q(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function S(t,n){var i=C(t);if(E){var s=E(t);n&&(s=P(s).call(s,function(u){return D(t,u).enumerable})),i.push.apply(i,s)}return i}function L(t){for(var n=1;n<arguments.length;n++){var i,s,u=arguments[n]!=null?arguments[n]:{};n%2?R(i=S(Object(u),!0)).call(i,function(c){M(t,c,u[c])}):_?Z(t,_(u)):R(s=S(Object(u))).call(s,function(c){q(t,c,D(u,c))})}return t}var F=f(34961);function K(t,n){if(t==null)return{};var i={},s=C(t),u,c;for(c=0;c<s.length;c++)u=s[c],!(F(n).call(n,u)>=0)&&(i[u]=t[u]);return i}function te(t,n){if(t==null)return{};var i=K(t,n),s,u;if(E){var c=E(t);for(u=0;u<c.length;u++)s=c[u],!(F(n).call(n,s)>=0)&&Object.prototype.propertyIsEnumerable.call(t,s)&&(i[s]=t[s])}return i}var j=f(13546),ie=f.n(j),H=f(51121),Y=f(26179);/*!
46
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
47
- *
48
- * Copyright (c) 2014-2017, Jon Schlinkert.
49
- * Released under the MIT License.
50
- */function ce(t){return Object.prototype.toString.call(t)==="[object Object]"}function ge(t){var n,i;return ce(t)===!1?!1:(n=t.constructor,n===void 0?!0:(i=n.prototype,!(ce(i)===!1||i.hasOwnProperty("isPrototypeOf")===!1)))}var G=f(81933),ve=f(67905),ee=f.n(ve);/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function He(t){return typeof t>"u"||t===null}function _e(t){return typeof t=="object"&&t!==null}function ze(t){return Array.isArray(t)?t:He(t)?[]:[t]}function ct(t,n){var i,s,u,c;if(n)for(c=Object.keys(n),i=0,s=c.length;i<s;i+=1)u=c[i],t[u]=n[u];return t}function ut(t,n){var i="",s;for(s=0;s<n;s+=1)i+=t;return i}function at(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var Gt=He,dt=_e,Ot=ze,nt=ut,Ue=at,Fe=ct,Re={isNothing:Gt,isObject:dt,toArray:Ot,repeat:nt,isNegativeZero:Ue,extend:Fe};function it(t,n){var i="",s=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(i+='in "'+t.mark.name+'" '),i+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!n&&t.mark.snippet&&(i+=`
51
-
52
- `+t.mark.snippet),s+" "+i):s}function Ft(t,n){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=n,this.message=it(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Ft.prototype=Object.create(Error.prototype),Ft.prototype.constructor=Ft,Ft.prototype.toString=function(n){return this.name+": "+it(this,n)};var qe=Ft;function St(t,n,i,s,u){var c="",h="",m=Math.floor(u/2)-1;return s-n>m&&(c=" ... ",n=s-m+c.length),i-s>m&&(h=" ...",i=s+m-h.length),{str:c+t.slice(n,i).replace(/\t/g,"\u2192")+h,pos:s-n+c.length}}function Kt(t,n){return Re.repeat(" ",n-t.length)+t}function Qt(t,n){if(n=Object.create(n||null),!t.buffer)return null;n.maxLength||(n.maxLength=79),typeof n.indent!="number"&&(n.indent=1),typeof n.linesBefore!="number"&&(n.linesBefore=3),typeof n.linesAfter!="number"&&(n.linesAfter=2);for(var i=/\r?\n|\r|\0/g,s=[0],u=[],c,h=-1;c=i.exec(t.buffer);)u.push(c.index),s.push(c.index+c[0].length),t.position<=c.index&&h<0&&(h=s.length-2);h<0&&(h=s.length-1);var m="",p,y,k=Math.min(t.line+n.linesAfter,u.length).toString().length,I=n.maxLength-(n.indent+k+3);for(p=1;p<=n.linesBefore&&!(h-p<0);p++)y=St(t.buffer,s[h-p],u[h-p],t.position-(s[h]-s[h-p]),I),m=Re.repeat(" ",n.indent)+Kt((t.line-p+1).toString(),k)+" | "+y.str+`
53
- `+m;for(y=St(t.buffer,s[h],u[h],t.position,I),m+=Re.repeat(" ",n.indent)+Kt((t.line+1).toString(),k)+" | "+y.str+`
54
- `,m+=Re.repeat("-",n.indent+k+3+y.pos)+`^
55
- `,p=1;p<=n.linesAfter&&!(h+p>=u.length);p++)y=St(t.buffer,s[h+p],u[h+p],t.position-(s[h]-s[h+p]),I),m+=Re.repeat(" ",n.indent)+Kt((t.line+p+1).toString(),k)+" | "+y.str+`
56
- `;return m.replace(/\n$/,"")}var hr=Qt,Je=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],xt=["scalar","sequence","mapping"];function It(t){var n={};return t!==null&&Object.keys(t).forEach(function(i){t[i].forEach(function(s){n[String(s)]=i})}),n}function Or(t,n){if(n=n||{},Object.keys(n).forEach(function(i){if(Je.indexOf(i)===-1)throw new qe('Unknown option "'+i+'" is met in definition of "'+t+'" YAML type.')}),this.options=n,this.tag=t,this.kind=n.kind||null,this.resolve=n.resolve||function(){return!0},this.construct=n.construct||function(i){return i},this.instanceOf=n.instanceOf||null,this.predicate=n.predicate||null,this.represent=n.represent||null,this.representName=n.representName||null,this.defaultStyle=n.defaultStyle||null,this.multi=n.multi||!1,this.styleAliases=It(n.styleAliases||null),xt.indexOf(this.kind)===-1)throw new qe('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var Rt=Or;function pn(t,n){var i=[];return t[n].forEach(function(s){var u=i.length;i.forEach(function(c,h){c.tag===s.tag&&c.kind===s.kind&&c.multi===s.multi&&(u=h)}),i[u]=s}),i}function vn(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},n,i;function s(u){u.multi?(t.multi[u.kind].push(u),t.multi.fallback.push(u)):t[u.kind][u.tag]=t.fallback[u.tag]=u}for(n=0,i=arguments.length;n<i;n+=1)arguments[n].forEach(s);return t}function Hr(t){return this.extend(t)}Hr.prototype.extend=function(n){var i=[],s=[];if(n instanceof Rt)s.push(n);else if(Array.isArray(n))s=s.concat(n);else if(n&&(Array.isArray(n.implicit)||Array.isArray(n.explicit)))n.implicit&&(i=i.concat(n.implicit)),n.explicit&&(s=s.concat(n.explicit));else throw new qe("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");i.forEach(function(c){if(!(c instanceof Rt))throw new qe("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(c.loadKind&&c.loadKind!=="scalar")throw new qe("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(c.multi)throw new qe("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),s.forEach(function(c){if(!(c instanceof Rt))throw new qe("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var u=Object.create(Hr.prototype);return u.implicit=(this.implicit||[]).concat(i),u.explicit=(this.explicit||[]).concat(s),u.compiledImplicit=pn(u,"implicit"),u.compiledExplicit=pn(u,"explicit"),u.compiledTypeMap=vn(u.compiledImplicit,u.compiledExplicit),u};var tn=Hr,En=new Rt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),gn=new Rt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),Ur=new Rt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),gr=new tn({explicit:[En,gn,Ur]});function Er(t){if(t===null)return!0;var n=t.length;return n===1&&t==="~"||n===4&&(t==="null"||t==="Null"||t==="NULL")}function Bt(){return null}function mt(t){return t===null}var st=new Rt("tag:yaml.org,2002:null",{kind:"scalar",resolve:Er,construct:Bt,predicate:mt,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Qe(t){if(t===null)return!1;var n=t.length;return n===4&&(t==="true"||t==="True"||t==="TRUE")||n===5&&(t==="false"||t==="False"||t==="FALSE")}function ht(t){return t==="true"||t==="True"||t==="TRUE"}function ne(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var be=new Rt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Qe,construct:ht,predicate:ne,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function je(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function et(t){return 48<=t&&t<=55}function ft(t){return 48<=t&&t<=57}function lt(t){if(t===null)return!1;var n=t.length,i=0,s=!1,u;if(!n)return!1;if(u=t[i],(u==="-"||u==="+")&&(u=t[++i]),u==="0"){if(i+1===n)return!0;if(u=t[++i],u==="b"){for(i++;i<n;i++)if(u=t[i],u!=="_"){if(u!=="0"&&u!=="1")return!1;s=!0}return s&&u!=="_"}if(u==="x"){for(i++;i<n;i++)if(u=t[i],u!=="_"){if(!je(t.charCodeAt(i)))return!1;s=!0}return s&&u!=="_"}if(u==="o"){for(i++;i<n;i++)if(u=t[i],u!=="_"){if(!et(t.charCodeAt(i)))return!1;s=!0}return s&&u!=="_"}}if(u==="_")return!1;for(;i<n;i++)if(u=t[i],u!=="_"){if(!ft(t.charCodeAt(i)))return!1;s=!0}return!(!s||u==="_")}function _t(t){var n=t,i=1,s;if(n.indexOf("_")!==-1&&(n=n.replace(/_/g,"")),s=n[0],(s==="-"||s==="+")&&(s==="-"&&(i=-1),n=n.slice(1),s=n[0]),n==="0")return 0;if(s==="0"){if(n[1]==="b")return i*parseInt(n.slice(2),2);if(n[1]==="x")return i*parseInt(n.slice(2),16);if(n[1]==="o")return i*parseInt(n.slice(2),8)}return i*parseInt(n,10)}function kr(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!Re.isNegativeZero(t)}var wt=new Rt("tag:yaml.org,2002:int",{kind:"scalar",resolve:lt,construct:_t,predicate:kr,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),er=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Bn(t){return!(t===null||!er.test(t)||t[t.length-1]==="_")}function mr(t){var n,i;return n=t.replace(/_/g,"").toLowerCase(),i=n[0]==="-"?-1:1,"+-".indexOf(n[0])>=0&&(n=n.slice(1)),n===".inf"?i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:n===".nan"?NaN:i*parseFloat(n,10)}var yr=/^[-+]?[0-9]+e/;function jn(t,n){var i;if(isNaN(t))switch(n){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(n){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(n){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Re.isNegativeZero(t))return"-0.0";return i=t.toString(10),yr.test(i)?i.replace("e",".e"):i}function Tr(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||Re.isNegativeZero(t))}var kn=new Rt("tag:yaml.org,2002:float",{kind:"scalar",resolve:Bn,construct:mr,predicate:Tr,represent:jn,defaultStyle:"lowercase"}),Tn=gr.extend({implicit:[st,be,wt,kn]}),br=Tn,Wn=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),mn=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function ti(t){return t===null?!1:Wn.exec(t)!==null||mn.exec(t)!==null}function Ui(t){var n,i,s,u,c,h,m,p=0,y=null,k,I,Q;if(n=Wn.exec(t),n===null&&(n=mn.exec(t)),n===null)throw new Error("Date resolve error");if(i=+n[1],s=+n[2]-1,u=+n[3],!n[4])return new Date(Date.UTC(i,s,u));if(c=+n[4],h=+n[5],m=+n[6],n[7]){for(p=n[7].slice(0,3);p.length<3;)p+="0";p=+p}return n[9]&&(k=+n[10],I=+(n[11]||0),y=(k*60+I)*6e4,n[9]==="-"&&(y=-y)),Q=new Date(Date.UTC(i,s,u,c,h,m,p)),y&&Q.setTime(Q.getTime()-y),Q}function Yr(t){return t.toISOString()}var Mr=new Rt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:ti,construct:Ui,instanceOf:Date,represent:Yr});function Xr(t){return t==="<<"||t===null}var zr=new Rt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Xr}),_r=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
57
- \r`;function Oo(t){if(t===null)return!1;var n,i,s=0,u=t.length,c=_r;for(i=0;i<u;i++)if(n=c.indexOf(t.charAt(i)),!(n>64)){if(n<0)return!1;s+=6}return s%8===0}function yn(t){var n,i,s=t.replace(/[\r\n=]/g,""),u=s.length,c=_r,h=0,m=[];for(n=0;n<u;n++)n%4===0&&n&&(m.push(h>>16&255),m.push(h>>8&255),m.push(h&255)),h=h<<6|c.indexOf(s.charAt(n));return i=u%4*6,i===0?(m.push(h>>16&255),m.push(h>>8&255),m.push(h&255)):i===18?(m.push(h>>10&255),m.push(h>>2&255)):i===12&&m.push(h>>4&255),new Uint8Array(m)}function Nr(t){var n="",i=0,s,u,c=t.length,h=_r;for(s=0;s<c;s++)s%3===0&&s&&(n+=h[i>>18&63],n+=h[i>>12&63],n+=h[i>>6&63],n+=h[i&63]),i=(i<<8)+t[s];return u=c%3,u===0?(n+=h[i>>18&63],n+=h[i>>12&63],n+=h[i>>6&63],n+=h[i&63]):u===2?(n+=h[i>>10&63],n+=h[i>>4&63],n+=h[i<<2&63],n+=h[64]):u===1&&(n+=h[i>>2&63],n+=h[i<<4&63],n+=h[64],n+=h[64]),n}function tr(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var Pn=new Rt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Oo,construct:yn,predicate:tr,represent:Nr}),rn=Object.prototype.hasOwnProperty,zi=Object.prototype.toString;function oa(t){if(t===null)return!0;var n=[],i,s,u,c,h,m=t;for(i=0,s=m.length;i<s;i+=1){if(u=m[i],h=!1,zi.call(u)!=="[object Object]")return!1;for(c in u)if(rn.call(u,c))if(!h)h=!0;else return!1;if(!h)return!1;if(n.indexOf(c)===-1)n.push(c);else return!1}return!0}function Ht(t){return t!==null?t:[]}var Ve=new Rt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:oa,construct:Ht}),Hn=Object.prototype.toString;function gi(t){if(t===null)return!0;var n,i,s,u,c,h=t;for(c=new Array(h.length),n=0,i=h.length;n<i;n+=1){if(s=h[n],Hn.call(s)!=="[object Object]"||(u=Object.keys(s),u.length!==1))return!1;c[n]=[u[0],s[u[0]]]}return!0}function nn(t){if(t===null)return[];var n,i,s,u,c,h=t;for(c=new Array(h.length),n=0,i=h.length;n<i;n+=1)s=h[n],u=Object.keys(s),c[n]=[u[0],s[u[0]]];return c}var Ct=new Rt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:gi,construct:nn}),Un=Object.prototype.hasOwnProperty;function mi(t){if(t===null)return!0;var n,i=t;for(n in i)if(Un.call(i,n)&&i[n]!==null)return!1;return!0}function _i(t){return t!==null?t:{}}var A=new Rt("tag:yaml.org,2002:set",{kind:"mapping",resolve:mi,construct:_i}),z=br.extend({implicit:[Mr,zr],explicit:[Pn,Ve,Ct,A]}),Se=Object.prototype.hasOwnProperty,Pe=1,tt=2,yt=3,At=4,$e=1,on=2,Eo=3,aa=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Ln=/[\x85\u2028\u2029]/,tl=/[,\[\]\{\}]/,Za=/^(?:!|!!|![a-z\-]+!)$/i,Vi=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function sa(t){return Object.prototype.toString.call(t)}function bn(t){return t===10||t===13}function zn(t){return t===9||t===32}function Dr(t){return t===9||t===32||t===10||t===13}function yi(t){return t===44||t===91||t===93||t===123||t===125}function rl(t){var n;return 48<=t&&t<=57?t-48:(n=t|32,97<=n&&n<=102?n-97+10:-1)}function nl(t){return t===120?2:t===117?4:t===85?8:0}function Yu(t){return 48<=t&&t<=57?t-48:-1}function il(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
58
- `:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function ol(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}for(var In=new Array(256),al=new Array(256),$i=0;$i<256;$i++)In[$i]=il($i)?1:0,al[$i]=il($i);function la(t,n){this.input=t,this.filename=n.filename||null,this.schema=n.schema||z,this.onWarning=n.onWarning||null,this.legacy=n.legacy||!1,this.json=n.json||!1,this.listener=n.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Gi(t,n){var i={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return i.snippet=hr(i),new qe(n,i)}function Xe(t,n){throw Gi(t,n)}function ua(t,n){t.onWarning&&t.onWarning.call(null,Gi(t,n))}var sl={YAML:function(n,i,s){var u,c,h;n.version!==null&&Xe(n,"duplication of %YAML directive"),s.length!==1&&Xe(n,"YAML directive accepts exactly one argument"),u=/^([0-9]+)\.([0-9]+)$/.exec(s[0]),u===null&&Xe(n,"ill-formed argument of the YAML directive"),c=parseInt(u[1],10),h=parseInt(u[2],10),c!==1&&Xe(n,"unacceptable YAML version of the document"),n.version=s[0],n.checkLineBreaks=h<2,h!==1&&h!==2&&ua(n,"unsupported YAML version of the document")},TAG:function(n,i,s){var u,c;s.length!==2&&Xe(n,"TAG directive accepts exactly two arguments"),u=s[0],c=s[1],Za.test(u)||Xe(n,"ill-formed tag handle (first argument) of the TAG directive"),Se.call(n.tagMap,u)&&Xe(n,'there is a previously declared suffix for "'+u+'" tag handle'),Vi.test(c)||Xe(n,"ill-formed tag prefix (second argument) of the TAG directive");try{c=decodeURIComponent(c)}catch{Xe(n,"tag prefix is malformed: "+c)}n.tagMap[u]=c}};function ri(t,n,i,s){var u,c,h,m;if(n<i){if(m=t.input.slice(n,i),s)for(u=0,c=m.length;u<c;u+=1)h=m.charCodeAt(u),h===9||32<=h&&h<=1114111||Xe(t,"expected valid JSON character");else aa.test(m)&&Xe(t,"the stream contains non-printable characters");t.result+=m}}function fa(t,n,i,s){var u,c,h,m;for(Re.isObject(i)||Xe(t,"cannot merge mappings; the provided source object is unacceptable"),u=Object.keys(i),h=0,m=u.length;h<m;h+=1)c=u[h],Se.call(n,c)||(n[c]=i[c],s[c]=!0)}function bi(t,n,i,s,u,c,h,m,p){var y,k;if(Array.isArray(u))for(u=Array.prototype.slice.call(u),y=0,k=u.length;y<k;y+=1)Array.isArray(u[y])&&Xe(t,"nested arrays are not supported inside keys"),typeof u=="object"&&sa(u[y])==="[object Object]"&&(u[y]="[object Object]");if(typeof u=="object"&&sa(u)==="[object Object]"&&(u="[object Object]"),u=String(u),n===null&&(n={}),s==="tag:yaml.org,2002:merge")if(Array.isArray(c))for(y=0,k=c.length;y<k;y+=1)fa(t,n,c[y],i);else fa(t,n,c,i);else!t.json&&!Se.call(i,u)&&Se.call(n,u)&&(t.line=h||t.line,t.lineStart=m||t.lineStart,t.position=p||t.position,Xe(t,"duplicated mapping key")),u==="__proto__"?Object.defineProperty(n,u,{configurable:!0,enumerable:!0,writable:!0,value:c}):n[u]=c,delete i[u];return n}function qa(t){var n;n=t.input.charCodeAt(t.position),n===10?t.position++:n===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):Xe(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function rr(t,n,i){for(var s=0,u=t.input.charCodeAt(t.position);u!==0;){for(;zn(u);)u===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),u=t.input.charCodeAt(++t.position);if(n&&u===35)do u=t.input.charCodeAt(++t.position);while(u!==10&&u!==13&&u!==0);if(bn(u))for(qa(t),u=t.input.charCodeAt(t.position),s++,t.lineIndent=0;u===32;)t.lineIndent++,u=t.input.charCodeAt(++t.position);else break}return i!==-1&&s!==0&&t.lineIndent<i&&ua(t,"deficient indentation"),s}function ko(t){var n=t.position,i;return i=t.input.charCodeAt(n),!!((i===45||i===46)&&i===t.input.charCodeAt(n+1)&&i===t.input.charCodeAt(n+2)&&(n+=3,i=t.input.charCodeAt(n),i===0||Dr(i)))}function Ki(t,n){n===1?t.result+=" ":n>1&&(t.result+=Re.repeat(`
59
- `,n-1))}function ca(t,n,i){var s,u,c,h,m,p,y,k,I=t.kind,Q=t.result,W;if(W=t.input.charCodeAt(t.position),Dr(W)||yi(W)||W===35||W===38||W===42||W===33||W===124||W===62||W===39||W===34||W===37||W===64||W===96||(W===63||W===45)&&(u=t.input.charCodeAt(t.position+1),Dr(u)||i&&yi(u)))return!1;for(t.kind="scalar",t.result="",c=h=t.position,m=!1;W!==0;){if(W===58){if(u=t.input.charCodeAt(t.position+1),Dr(u)||i&&yi(u))break}else if(W===35){if(s=t.input.charCodeAt(t.position-1),Dr(s))break}else{if(t.position===t.lineStart&&ko(t)||i&&yi(W))break;if(bn(W))if(p=t.line,y=t.lineStart,k=t.lineIndent,rr(t,!1,-1),t.lineIndent>=n){m=!0,W=t.input.charCodeAt(t.position);continue}else{t.position=h,t.line=p,t.lineStart=y,t.lineIndent=k;break}}m&&(ri(t,c,h,!1),Ki(t,t.line-p),c=h=t.position,m=!1),zn(W)||(h=t.position+1),W=t.input.charCodeAt(++t.position)}return ri(t,c,h,!1),t.result?!0:(t.kind=I,t.result=Q,!1)}function es(t,n){var i,s,u;if(i=t.input.charCodeAt(t.position),i!==39)return!1;for(t.kind="scalar",t.result="",t.position++,s=u=t.position;(i=t.input.charCodeAt(t.position))!==0;)if(i===39)if(ri(t,s,t.position,!0),i=t.input.charCodeAt(++t.position),i===39)s=t.position,t.position++,u=t.position;else return!0;else bn(i)?(ri(t,s,u,!0),Ki(t,rr(t,!1,n)),s=u=t.position):t.position===t.lineStart&&ko(t)?Xe(t,"unexpected end of the document within a single quoted scalar"):(t.position++,u=t.position);Xe(t,"unexpected end of the stream within a single quoted scalar")}function ll(t,n){var i,s,u,c,h,m;if(m=t.input.charCodeAt(t.position),m!==34)return!1;for(t.kind="scalar",t.result="",t.position++,i=s=t.position;(m=t.input.charCodeAt(t.position))!==0;){if(m===34)return ri(t,i,t.position,!0),t.position++,!0;if(m===92){if(ri(t,i,t.position,!0),m=t.input.charCodeAt(++t.position),bn(m))rr(t,!1,n);else if(m<256&&In[m])t.result+=al[m],t.position++;else if((h=nl(m))>0){for(u=h,c=0;u>0;u--)m=t.input.charCodeAt(++t.position),(h=rl(m))>=0?c=(c<<4)+h:Xe(t,"expected hexadecimal character");t.result+=ol(c),t.position++}else Xe(t,"unknown escape sequence");i=s=t.position}else bn(m)?(ri(t,i,s,!0),Ki(t,rr(t,!1,n)),i=s=t.position):t.position===t.lineStart&&ko(t)?Xe(t,"unexpected end of the document within a double quoted scalar"):(t.position++,s=t.position)}Xe(t,"unexpected end of the stream within a double quoted scalar")}function ul(t,n){var i=!0,s,u,c,h=t.tag,m,p=t.anchor,y,k,I,Q,W,$=Object.create(null),ae,ue,oe,fe;if(fe=t.input.charCodeAt(t.position),fe===91)k=93,W=!1,m=[];else if(fe===123)k=125,W=!0,m={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=m),fe=t.input.charCodeAt(++t.position);fe!==0;){if(rr(t,!0,n),fe=t.input.charCodeAt(t.position),fe===k)return t.position++,t.tag=h,t.anchor=p,t.kind=W?"mapping":"sequence",t.result=m,!0;i?fe===44&&Xe(t,"expected the node content, but found ','"):Xe(t,"missed comma between flow collection entries"),ue=ae=oe=null,I=Q=!1,fe===63&&(y=t.input.charCodeAt(t.position+1),Dr(y)&&(I=Q=!0,t.position++,rr(t,!0,n))),s=t.line,u=t.lineStart,c=t.position,ni(t,n,Pe,!1,!0),ue=t.tag,ae=t.result,rr(t,!0,n),fe=t.input.charCodeAt(t.position),(Q||t.line===s)&&fe===58&&(I=!0,fe=t.input.charCodeAt(++t.position),rr(t,!0,n),ni(t,n,Pe,!1,!0),oe=t.result),W?bi(t,m,$,ue,ae,oe,s,u,c):I?m.push(bi(t,null,$,ue,ae,oe,s,u,c)):m.push(ae),rr(t,!0,n),fe=t.input.charCodeAt(t.position),fe===44?(i=!0,fe=t.input.charCodeAt(++t.position)):i=!1}Xe(t,"unexpected end of the stream within a flow collection")}function da(t,n){var i,s,u=$e,c=!1,h=!1,m=n,p=0,y=!1,k,I;if(I=t.input.charCodeAt(t.position),I===124)s=!1;else if(I===62)s=!0;else return!1;for(t.kind="scalar",t.result="";I!==0;)if(I=t.input.charCodeAt(++t.position),I===43||I===45)$e===u?u=I===43?Eo:on:Xe(t,"repeat of a chomping mode identifier");else if((k=Yu(I))>=0)k===0?Xe(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):h?Xe(t,"repeat of an indentation width identifier"):(m=n+k-1,h=!0);else break;if(zn(I)){do I=t.input.charCodeAt(++t.position);while(zn(I));if(I===35)do I=t.input.charCodeAt(++t.position);while(!bn(I)&&I!==0)}for(;I!==0;){for(qa(t),t.lineIndent=0,I=t.input.charCodeAt(t.position);(!h||t.lineIndent<m)&&I===32;)t.lineIndent++,I=t.input.charCodeAt(++t.position);if(!h&&t.lineIndent>m&&(m=t.lineIndent),bn(I)){p++;continue}if(t.lineIndent<m){u===Eo?t.result+=Re.repeat(`
60
- `,c?1+p:p):u===$e&&c&&(t.result+=`
61
- `);break}for(s?zn(I)?(y=!0,t.result+=Re.repeat(`
62
- `,c?1+p:p)):y?(y=!1,t.result+=Re.repeat(`
63
- `,p+1)):p===0?c&&(t.result+=" "):t.result+=Re.repeat(`
64
- `,p):t.result+=Re.repeat(`
65
- `,c?1+p:p),c=!0,h=!0,p=0,i=t.position;!bn(I)&&I!==0;)I=t.input.charCodeAt(++t.position);ri(t,i,t.position,!1)}return!0}function fl(t,n){var i,s=t.tag,u=t.anchor,c=[],h,m=!1,p;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=c),p=t.input.charCodeAt(t.position);p!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Xe(t,"tab characters must not be used in indentation")),!(p!==45||(h=t.input.charCodeAt(t.position+1),!Dr(h))));){if(m=!0,t.position++,rr(t,!0,-1)&&t.lineIndent<=n){c.push(null),p=t.input.charCodeAt(t.position);continue}if(i=t.line,ni(t,n,yt,!1,!0),c.push(t.result),rr(t,!0,-1),p=t.input.charCodeAt(t.position),(t.line===i||t.lineIndent>n)&&p!==0)Xe(t,"bad indentation of a sequence entry");else if(t.lineIndent<n)break}return m?(t.tag=s,t.anchor=u,t.kind="sequence",t.result=c,!0):!1}function cl(t,n,i){var s,u,c,h,m,p,y=t.tag,k=t.anchor,I={},Q=Object.create(null),W=null,$=null,ae=null,ue=!1,oe=!1,fe;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=I),fe=t.input.charCodeAt(t.position);fe!==0;){if(!ue&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Xe(t,"tab characters must not be used in indentation")),s=t.input.charCodeAt(t.position+1),c=t.line,(fe===63||fe===58)&&Dr(s))fe===63?(ue&&(bi(t,I,Q,W,$,null,h,m,p),W=$=ae=null),oe=!0,ue=!0,u=!0):ue?(ue=!1,u=!0):Xe(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,fe=s;else{if(h=t.line,m=t.lineStart,p=t.position,!ni(t,i,tt,!1,!0))break;if(t.line===c){for(fe=t.input.charCodeAt(t.position);zn(fe);)fe=t.input.charCodeAt(++t.position);if(fe===58)fe=t.input.charCodeAt(++t.position),Dr(fe)||Xe(t,"a whitespace character is expected after the key-value separator within a block mapping"),ue&&(bi(t,I,Q,W,$,null,h,m,p),W=$=ae=null),oe=!0,ue=!1,u=!1,W=t.tag,$=t.result;else if(oe)Xe(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=y,t.anchor=k,!0}else if(oe)Xe(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=y,t.anchor=k,!0}if((t.line===c||t.lineIndent>n)&&(ue&&(h=t.line,m=t.lineStart,p=t.position),ni(t,n,At,!0,u)&&(ue?$=t.result:ae=t.result),ue||(bi(t,I,Q,W,$,ae,h,m,p),W=$=ae=null),rr(t,!0,-1),fe=t.input.charCodeAt(t.position)),(t.line===c||t.lineIndent>n)&&fe!==0)Xe(t,"bad indentation of a mapping entry");else if(t.lineIndent<n)break}return ue&&bi(t,I,Q,W,$,null,h,m,p),oe&&(t.tag=y,t.anchor=k,t.kind="mapping",t.result=I),oe}function xn(t){var n,i=!1,s=!1,u,c,h;if(h=t.input.charCodeAt(t.position),h!==33)return!1;if(t.tag!==null&&Xe(t,"duplication of a tag property"),h=t.input.charCodeAt(++t.position),h===60?(i=!0,h=t.input.charCodeAt(++t.position)):h===33?(s=!0,u="!!",h=t.input.charCodeAt(++t.position)):u="!",n=t.position,i){do h=t.input.charCodeAt(++t.position);while(h!==0&&h!==62);t.position<t.length?(c=t.input.slice(n,t.position),h=t.input.charCodeAt(++t.position)):Xe(t,"unexpected end of the stream within a verbatim tag")}else{for(;h!==0&&!Dr(h);)h===33&&(s?Xe(t,"tag suffix cannot contain exclamation marks"):(u=t.input.slice(n-1,t.position+1),Za.test(u)||Xe(t,"named tag handle cannot contain such characters"),s=!0,n=t.position+1)),h=t.input.charCodeAt(++t.position);c=t.input.slice(n,t.position),tl.test(c)&&Xe(t,"tag suffix cannot contain flow indicator characters")}c&&!Vi.test(c)&&Xe(t,"tag name cannot contain such characters: "+c);try{c=decodeURIComponent(c)}catch{Xe(t,"tag name is malformed: "+c)}return i?t.tag=c:Se.call(t.tagMap,u)?t.tag=t.tagMap[u]+c:u==="!"?t.tag="!"+c:u==="!!"?t.tag="tag:yaml.org,2002:"+c:Xe(t,'undeclared tag handle "'+u+'"'),!0}function Xu(t){var n,i;if(i=t.input.charCodeAt(t.position),i!==38)return!1;for(t.anchor!==null&&Xe(t,"duplication of an anchor property"),i=t.input.charCodeAt(++t.position),n=t.position;i!==0&&!Dr(i)&&!yi(i);)i=t.input.charCodeAt(++t.position);return t.position===n&&Xe(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(n,t.position),!0}function Ju(t){var n,i,s;if(s=t.input.charCodeAt(t.position),s!==42)return!1;for(s=t.input.charCodeAt(++t.position),n=t.position;s!==0&&!Dr(s)&&!yi(s);)s=t.input.charCodeAt(++t.position);return t.position===n&&Xe(t,"name of an alias node must contain at least one character"),i=t.input.slice(n,t.position),Se.call(t.anchorMap,i)||Xe(t,'unidentified alias "'+i+'"'),t.result=t.anchorMap[i],rr(t,!0,-1),!0}function ni(t,n,i,s,u){var c,h,m,p=1,y=!1,k=!1,I,Q,W,$,ae,ue;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,c=h=m=At===i||yt===i,s&&rr(t,!0,-1)&&(y=!0,t.lineIndent>n?p=1:t.lineIndent===n?p=0:t.lineIndent<n&&(p=-1)),p===1)for(;xn(t)||Xu(t);)rr(t,!0,-1)?(y=!0,m=c,t.lineIndent>n?p=1:t.lineIndent===n?p=0:t.lineIndent<n&&(p=-1)):m=!1;if(m&&(m=y||u),(p===1||At===i)&&(Pe===i||tt===i?ae=n:ae=n+1,ue=t.position-t.lineStart,p===1?m&&(fl(t,ue)||cl(t,ue,ae))||ul(t,ae)?k=!0:(h&&da(t,ae)||es(t,ae)||ll(t,ae)?k=!0:Ju(t)?(k=!0,(t.tag!==null||t.anchor!==null)&&Xe(t,"alias node should not have any properties")):ca(t,ae,Pe===i)&&(k=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):p===0&&(k=m&&fl(t,ue))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&Xe(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),I=0,Q=t.implicitTypes.length;I<Q;I+=1)if($=t.implicitTypes[I],$.resolve(t.result)){t.result=$.construct(t.result),t.tag=$.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(Se.call(t.typeMap[t.kind||"fallback"],t.tag))$=t.typeMap[t.kind||"fallback"][t.tag];else for($=null,W=t.typeMap.multi[t.kind||"fallback"],I=0,Q=W.length;I<Q;I+=1)if(t.tag.slice(0,W[I].tag.length)===W[I].tag){$=W[I];break}$||Xe(t,"unknown tag !<"+t.tag+">"),t.result!==null&&$.kind!==t.kind&&Xe(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+$.kind+'", not "'+t.kind+'"'),$.resolve(t.result,t.tag)?(t.result=$.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):Xe(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||k}function dl(t){var n=t.position,i,s,u,c=!1,h;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(h=t.input.charCodeAt(t.position))!==0&&(rr(t,!0,-1),h=t.input.charCodeAt(t.position),!(t.lineIndent>0||h!==37));){for(c=!0,h=t.input.charCodeAt(++t.position),i=t.position;h!==0&&!Dr(h);)h=t.input.charCodeAt(++t.position);for(s=t.input.slice(i,t.position),u=[],s.length<1&&Xe(t,"directive name must not be less than one character in length");h!==0;){for(;zn(h);)h=t.input.charCodeAt(++t.position);if(h===35){do h=t.input.charCodeAt(++t.position);while(h!==0&&!bn(h));break}if(bn(h))break;for(i=t.position;h!==0&&!Dr(h);)h=t.input.charCodeAt(++t.position);u.push(t.input.slice(i,t.position))}h!==0&&qa(t),Se.call(sl,s)?sl[s](t,s,u):ua(t,'unknown document directive "'+s+'"')}if(rr(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,rr(t,!0,-1)):c&&Xe(t,"directives end mark is expected"),ni(t,t.lineIndent-1,At,!1,!0),rr(t,!0,-1),t.checkLineBreaks&&Ln.test(t.input.slice(n,t.position))&&ua(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&ko(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,rr(t,!0,-1));return}if(t.position<t.length-1)Xe(t,"end of the stream or a document separator is expected");else return}function _n(t,n){t=String(t),n=n||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
66
- `),t.charCodeAt(0)===65279&&(t=t.slice(1)));var i=new la(t,n),s=t.indexOf("\0");for(s!==-1&&(i.position=s,Xe(i,"null byte is not allowed in input")),i.input+="\0";i.input.charCodeAt(i.position)===32;)i.lineIndent+=1,i.position+=1;for(;i.position<i.length-1;)dl(i);return i.documents}function ts(t,n,i){n!==null&&typeof n=="object"&&typeof i>"u"&&(i=n,n=null);var s=_n(t,i);if(typeof n!="function")return s;for(var u=0,c=s.length;u<c;u+=1)n(s[u])}function Vn(t,n){var i=_n(t,n);if(i.length!==0){if(i.length===1)return i[0];throw new qe("expected a single document in the stream, but found more")}}var ha=ts,rs=Vn,xi={loadAll:ha,load:rs},hl=Object.prototype.toString,pl=Object.prototype.hasOwnProperty,ns=65279,Qu=9,Yi=10,vl=13,Zu=32,qu=33,ef=34,is=35,gl=37,tf=38,ml=39,pa=42,Si=44,rf=45,va=58,nf=61,To=62,sr=63,of=64,os=91,Xi=93,af=96,as=123,sf=124,ga=125,xr={};xr[0]="\\0",xr[7]="\\a",xr[8]="\\b",xr[9]="\\t",xr[10]="\\n",xr[11]="\\v",xr[12]="\\f",xr[13]="\\r",xr[27]="\\e",xr[34]='\\"',xr[92]="\\\\",xr[133]="\\N",xr[160]="\\_",xr[8232]="\\L",xr[8233]="\\P";var lf=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],uf=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function yl(t,n){var i,s,u,c,h,m,p;if(n===null)return{};for(i={},s=Object.keys(n),u=0,c=s.length;u<c;u+=1)h=s[u],m=String(n[h]),h.slice(0,2)==="!!"&&(h="tag:yaml.org,2002:"+h.slice(2)),p=t.compiledTypeMap.fallback[h],p&&pl.call(p.styleAliases,m)&&(m=p.styleAliases[m]),i[h]=m;return i}function bl(t){var n,i,s;if(n=t.toString(16).toUpperCase(),t<=255)i="x",s=2;else if(t<=65535)i="u",s=4;else if(t<=4294967295)i="U",s=8;else throw new qe("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+i+Re.repeat("0",s-n.length)+n}var ff=1,$n=2;function Gn(t){this.schema=t.schema||z,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=Re.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=yl(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?$n:ff,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Po(t,n){for(var i=Re.repeat(" ",n),s=0,u=-1,c="",h,m=t.length;s<m;)u=t.indexOf(`
67
- `,s),u===-1?(h=t.slice(s),s=m):(h=t.slice(s,u+1),s=u+1),h.length&&h!==`
68
- `&&(c+=i),c+=h;return c}function Lo(t,n){return`
69
- `+Re.repeat(" ",t.indent*n)}function xl(t,n){var i,s,u;for(i=0,s=t.implicitTypes.length;i<s;i+=1)if(u=t.implicitTypes[i],u.resolve(n))return!0;return!1}function Jr(t){return t===Zu||t===Qu}function Sn(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==ns||65536<=t&&t<=1114111}function ma(t){return Sn(t)&&t!==ns&&t!==vl&&t!==Yi}function Sl(t,n,i){var s=ma(t),u=s&&!Jr(t);return(i?s:s&&t!==Si&&t!==os&&t!==Xi&&t!==as&&t!==ga)&&t!==is&&!(n===va&&!u)||ma(n)&&!Jr(n)&&t===is||n===va&&u}function wl(t){return Sn(t)&&t!==ns&&!Jr(t)&&t!==rf&&t!==sr&&t!==va&&t!==Si&&t!==os&&t!==Xi&&t!==as&&t!==ga&&t!==is&&t!==tf&&t!==pa&&t!==qu&&t!==sf&&t!==nf&&t!==To&&t!==ml&&t!==ef&&t!==gl&&t!==of&&t!==af}function cf(t){return!Jr(t)&&t!==va}function Ji(t,n){var i=t.charCodeAt(n),s;return i>=55296&&i<=56319&&n+1<t.length&&(s=t.charCodeAt(n+1),s>=56320&&s<=57343)?(i-55296)*1024+s-56320+65536:i}function ya(t){var n=/^\n* /;return n.test(t)}var wi=1,an=2,ss=3,ls=4,Qi=5;function df(t,n,i,s,u,c,h,m){var p,y=0,k=null,I=!1,Q=!1,W=s!==-1,$=-1,ae=wl(Ji(t,0))&&cf(Ji(t,t.length-1));if(n||h)for(p=0;p<t.length;y>=65536?p+=2:p++){if(y=Ji(t,p),!Sn(y))return Qi;ae=ae&&Sl(y,k,m),k=y}else{for(p=0;p<t.length;y>=65536?p+=2:p++){if(y=Ji(t,p),y===Yi)I=!0,W&&(Q=Q||p-$-1>s&&t[$+1]!==" ",$=p);else if(!Sn(y))return Qi;ae=ae&&Sl(y,k,m),k=y}Q=Q||W&&p-$-1>s&&t[$+1]!==" "}return!I&&!Q?ae&&!h&&!u(t)?wi:c===$n?Qi:an:i>9&&ya(t)?Qi:h?c===$n?Qi:an:Q?ls:ss}function hf(t,n,i,s,u){t.dump=function(){if(n.length===0)return t.quotingType===$n?'""':"''";if(!t.noCompatMode&&(lf.indexOf(n)!==-1||uf.test(n)))return t.quotingType===$n?'"'+n+'"':"'"+n+"'";var c=t.indent*Math.max(1,i),h=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-c),m=s||t.flowLevel>-1&&i>=t.flowLevel;function p(y){return xl(t,y)}switch(df(n,m,t.indent,h,p,t.quotingType,t.forceQuotes&&!s,u)){case wi:return n;case an:return"'"+n.replace(/'/g,"''")+"'";case ss:return"|"+us(n,t.indent)+fs(Po(n,c));case ls:return">"+us(n,t.indent)+fs(Po(Io(n,h),c));case Qi:return'"'+Cl(n)+'"';default:throw new qe("impossible error: invalid scalar style")}}()}function us(t,n){var i=ya(t)?String(n):"",s=t[t.length-1]===`
70
- `,u=s&&(t[t.length-2]===`
71
- `||t===`
72
- `),c=u?"+":s?"":"-";return i+c+`
73
- `}function fs(t){return t[t.length-1]===`
74
- `?t.slice(0,-1):t}function Io(t,n){for(var i=/(\n+)([^\n]*)/g,s=function(){var y=t.indexOf(`
75
- `);return y=y!==-1?y:t.length,i.lastIndex=y,cs(t.slice(0,y),n)}(),u=t[0]===`
76
- `||t[0]===" ",c,h;h=i.exec(t);){var m=h[1],p=h[2];c=p[0]===" ",s+=m+(!u&&!c&&p!==""?`
77
- `:"")+cs(p,n),u=c}return s}function cs(t,n){if(t===""||t[0]===" ")return t;for(var i=/ [^ ]/g,s,u=0,c,h=0,m=0,p="";s=i.exec(t);)m=s.index,m-u>n&&(c=h>u?h:m,p+=`
78
- `+t.slice(u,c),u=c+1),h=m;return p+=`
79
- `,t.length-u>n&&h>u?p+=t.slice(u,h)+`
80
- `+t.slice(h+1):p+=t.slice(u),p.slice(1)}function Cl(t){for(var n="",i=0,s,u=0;u<t.length;i>=65536?u+=2:u++)i=Ji(t,u),s=xr[i],!s&&Sn(i)?(n+=t[u],i>=65536&&(n+=t[u+1])):n+=s||bl(i);return n}function ds(t,n,i){var s="",u=t.tag,c,h,m;for(c=0,h=i.length;c<h;c+=1)m=i[c],t.replacer&&(m=t.replacer.call(i,String(c),m)),(Mn(t,n,m,!1,!1)||typeof m>"u"&&Mn(t,n,null,!1,!1))&&(s!==""&&(s+=","+(t.condenseFlow?"":" ")),s+=t.dump);t.tag=u,t.dump="["+s+"]"}function Mo(t,n,i,s){var u="",c=t.tag,h,m,p;for(h=0,m=i.length;h<m;h+=1)p=i[h],t.replacer&&(p=t.replacer.call(i,String(h),p)),(Mn(t,n+1,p,!0,!0,!1,!0)||typeof p>"u"&&Mn(t,n+1,null,!0,!0,!1,!0))&&((!s||u!=="")&&(u+=Lo(t,n)),t.dump&&Yi===t.dump.charCodeAt(0)?u+="-":u+="- ",u+=t.dump);t.tag=c,t.dump=u||"[]"}function Al(t,n,i){var s="",u=t.tag,c=Object.keys(i),h,m,p,y,k;for(h=0,m=c.length;h<m;h+=1)k="",s!==""&&(k+=", "),t.condenseFlow&&(k+='"'),p=c[h],y=i[p],t.replacer&&(y=t.replacer.call(i,p,y)),Mn(t,n,p,!1,!1)&&(t.dump.length>1024&&(k+="? "),k+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Mn(t,n,y,!1,!1)&&(k+=t.dump,s+=k));t.tag=u,t.dump="{"+s+"}"}function ba(t,n,i,s){var u="",c=t.tag,h=Object.keys(i),m,p,y,k,I,Q;if(t.sortKeys===!0)h.sort();else if(typeof t.sortKeys=="function")h.sort(t.sortKeys);else if(t.sortKeys)throw new qe("sortKeys must be a boolean or a function");for(m=0,p=h.length;m<p;m+=1)Q="",(!s||u!=="")&&(Q+=Lo(t,n)),y=h[m],k=i[y],t.replacer&&(k=t.replacer.call(i,y,k)),Mn(t,n+1,y,!0,!0,!0)&&(I=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,I&&(t.dump&&Yi===t.dump.charCodeAt(0)?Q+="?":Q+="? "),Q+=t.dump,I&&(Q+=Lo(t,n)),Mn(t,n+1,k,!0,I)&&(t.dump&&Yi===t.dump.charCodeAt(0)?Q+=":":Q+=": ",Q+=t.dump,u+=Q));t.tag=c,t.dump=u||"{}"}function sn(t,n,i){var s,u,c,h,m,p;for(u=i?t.explicitTypes:t.implicitTypes,c=0,h=u.length;c<h;c+=1)if(m=u[c],(m.instanceOf||m.predicate)&&(!m.instanceOf||typeof n=="object"&&n instanceof m.instanceOf)&&(!m.predicate||m.predicate(n))){if(i?m.multi&&m.representName?t.tag=m.representName(n):t.tag=m.tag:t.tag="?",m.represent){if(p=t.styleMap[m.tag]||m.defaultStyle,hl.call(m.represent)==="[object Function]")s=m.represent(n,p);else if(pl.call(m.represent,p))s=m.represent[p](n,p);else throw new qe("!<"+m.tag+'> tag resolver accepts not "'+p+'" style');t.dump=s}return!0}return!1}function Mn(t,n,i,s,u,c,h){t.tag=null,t.dump=i,sn(t,i,!1)||sn(t,i,!0);var m=hl.call(t.dump),p=s,y;s&&(s=t.flowLevel<0||t.flowLevel>n);var k=m==="[object Object]"||m==="[object Array]",I,Q;if(k&&(I=t.duplicates.indexOf(i),Q=I!==-1),(t.tag!==null&&t.tag!=="?"||Q||t.indent!==2&&n>0)&&(u=!1),Q&&t.usedDuplicates[I])t.dump="*ref_"+I;else{if(k&&Q&&!t.usedDuplicates[I]&&(t.usedDuplicates[I]=!0),m==="[object Object]")s&&Object.keys(t.dump).length!==0?(ba(t,n,t.dump,u),Q&&(t.dump="&ref_"+I+t.dump)):(Al(t,n,t.dump),Q&&(t.dump="&ref_"+I+" "+t.dump));else if(m==="[object Array]")s&&t.dump.length!==0?(t.noArrayIndent&&!h&&n>0?Mo(t,n-1,t.dump,u):Mo(t,n,t.dump,u),Q&&(t.dump="&ref_"+I+t.dump)):(ds(t,n,t.dump),Q&&(t.dump="&ref_"+I+" "+t.dump));else if(m==="[object String]")t.tag!=="?"&&hf(t,t.dump,n,c,p);else{if(m==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new qe("unacceptable kind of an object to dump "+m)}t.tag!==null&&t.tag!=="?"&&(y=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?y="!"+y:y.slice(0,18)==="tag:yaml.org,2002:"?y="!!"+y.slice(18):y="!<"+y+">",t.dump=y+" "+t.dump)}return!0}function hs(t,n){var i=[],s=[],u,c;for(No(t,i,s),u=0,c=s.length;u<c;u+=1)n.duplicates.push(i[s[u]]);n.usedDuplicates=new Array(c)}function No(t,n,i){var s,u,c;if(t!==null&&typeof t=="object")if(u=n.indexOf(t),u!==-1)i.indexOf(u)===-1&&i.push(u);else if(n.push(t),Array.isArray(t))for(u=0,c=t.length;u<c;u+=1)No(t[u],n,i);else for(s=Object.keys(t),u=0,c=s.length;u<c;u+=1)No(t[s[u]],n,i)}function Ol(t,n){n=n||{};var i=new Gn(n);i.noRefs||hs(t,i);var s=t;return i.replacer&&(s=i.replacer.call({"":s},"",s)),Mn(i,0,s,!0,!0)?i.dump+`
81
- `:""}var El=Ol,ps={dump:El};function vs(t,n){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+n+" instead, which is now safe by default.")}}var pf=Rt,vf=tn,Ci=gr,Zi=Tn,qi=br,gs=z,ms=xi.load,kl=xi.loadAll,ys=ps.dump,Ai=qe,Oi={binary:Pn,float:kn,map:Ur,null:st,pairs:Ct,set:A,timestamp:Mr,bool:be,int:wt,merge:zr,omap:Ve,seq:gn,str:En},Fr=vs("safeLoad","load"),ii=vs("safeLoadAll","loadAll"),oi=vs("safeDump","dump"),xa={Type:pf,Schema:vf,FAILSAFE_SCHEMA:Ci,JSON_SCHEMA:Zi,CORE_SCHEMA:qi,DEFAULT_SCHEMA:gs,load:ms,loadAll:kl,dump:ys,YAMLException:Ai,types:Oi,safeLoad:Fr,safeLoadAll:ii,safeDump:oi};const gf=xa,Tl=function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:window}(),{FormData:eo,Blob:Do,File:Sa}=Tl,wa=t=>":/?#[]@!$&'()*+,;=".indexOf(t)>-1,mf=t=>/^[a-z0-9\-._~]+$/i.test(t);function ai(t){let{escape:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;return typeof t=="number"&&(t=t.toString()),typeof t!="string"||!t.length||!n?t:i?JSON.parse(t):[...t].map(s=>{if(mf(s)||wa(s)&&n==="unsafe")return s;const u=new TextEncoder;return Array.from(u.encode(s)).map(h=>`0${h.toString(16).toUpperCase()}`.slice(-2)).map(h=>`%${h}`).join("")}).join("")}function Ca(t){const{value:n}=t;return Array.isArray(n)?bs(t):typeof n=="object"?xs(t):to(t)}function bs(t){let{key:n,value:i,style:s,explode:u,escape:c}=t;const h=m=>ai(m,{escape:c});if(s==="simple")return i.map(m=>h(m)).join(",");if(s==="label")return`.${i.map(m=>h(m)).join(".")}`;if(s==="matrix")return i.map(m=>h(m)).reduce((m,p)=>!m||u?`${m||""};${n}=${p}`:`${m},${p}`,"");if(s==="form"){const m=u?`&${n}=`:",";return i.map(p=>h(p)).join(m)}if(s==="spaceDelimited"){const m=u?`${n}=`:"";return i.map(p=>h(p)).join(` ${m}`)}if(s==="pipeDelimited"){const m=u?`${n}=`:"";return i.map(p=>h(p)).join(`|${m}`)}}function xs(t){let{key:n,value:i,style:s,explode:u,escape:c}=t;const h=p=>ai(p,{escape:c}),m=Object.keys(i);if(s==="simple")return m.reduce((p,y)=>{const k=h(i[y]),I=u?"=":",";return`${p?`${p},`:""}${y}${I}${k}`},"");if(s==="label")return m.reduce((p,y)=>{const k=h(i[y]),I=u?"=":".";return`${p?`${p}.`:"."}${y}${I}${k}`},"");if(s==="matrix"&&u)return m.reduce((p,y)=>{const k=h(i[y]);return`${p?`${p};`:";"}${y}=${k}`},"");if(s==="matrix")return m.reduce((p,y)=>{const k=h(i[y]);return`${p?`${p},`:`;${n}=`}${y},${k}`},"");if(s==="form")return m.reduce((p,y)=>{const k=h(i[y]);return`${p?`${p}${u?"&":","}`:""}${y}${u?"=":","}${k}`},"")}function to(t){let{key:n,value:i,style:s,escape:u}=t;const c=h=>ai(h,{escape:u});if(s==="simple")return c(i);if(s==="label")return`.${c(i)}`;if(s==="matrix")return`;${n}=${c(i)}`;if(s==="form")return c(i);if(s==="deepObject")return c(i,{},!0)}const Pl=(t,n)=>{n.body=t},ro={serializeRes:ws,mergeInQueryOrForm:si};async function yf(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};typeof t=="object"&&(n=t,t=n.url),n.headers=n.headers||{},ro.mergeInQueryOrForm(n),n.headers&&Object.keys(n.headers).forEach(u=>{const c=n.headers[u];typeof c=="string"&&(n.headers[u]=c.replace(/\n+/g," "))}),n.requestInterceptor&&(n=await n.requestInterceptor(n)||n);const i=n.headers["content-type"]||n.headers["Content-Type"];/multipart\/form-data/i.test(i)&&n.body instanceof eo&&(delete n.headers["content-type"],delete n.headers["Content-Type"]);let s;try{s=await(n.userFetch||fetch)(n.url,n),s=await ro.serializeRes(s,t,n),n.responseInterceptor&&(s=await n.responseInterceptor(s)||s)}catch(u){if(!s)throw u;const c=new Error(s.statusText||`response status is ${s.status}`);throw c.status=s.status,c.statusCode=s.status,c.responseError=u,c}if(!s.ok){const u=new Error(s.statusText||`response status is ${s.status}`);throw u.status=s.status,u.statusCode=s.status,u.response=s,u}return s}const bf=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return/(json|xml|yaml|text)\b/.test(t)};function xf(t,n){return n&&(n.indexOf("application/json")===0||n.indexOf("+json")>0)?JSON.parse(t):gf.load(t)}function ws(t,n){let{loadSpec:i=!1}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s={ok:t.ok,url:t.url||n,status:t.status,statusText:t.statusText,headers:no(t.headers)},u=s.headers["content-type"],c=i||bf(u);return(c?t.text:t.blob||t.buffer).call(t).then(m=>{if(s.text=m,s.data=m,c)try{const p=xf(m,u);s.body=p,s.obj=p}catch(p){s.parseError=p}return s})}function Cs(t){return t.includes(", ")?t.split(", "):t}function no(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return typeof t.entries!="function"?{}:Array.from(t.entries()).reduce((n,i)=>{let[s,u]=i;return n[s]=Cs(u),n},{})}function Ei(t,n){return!n&&typeof navigator<"u"&&(n=navigator),n&&n.product==="ReactNative"?!!(t&&typeof t=="object"&&typeof t.uri=="string"):typeof Sa<"u"&&t instanceof Sa||typeof Do<"u"&&t instanceof Do||ArrayBuffer.isView(t)?!0:t!==null&&typeof t=="object"&&typeof t.pipe=="function"}function Ll(t,n){return Array.isArray(t)&&t.some(i=>Ei(i,n))}const Aa={form:",",spaceDelimited:"%20",pipeDelimited:"|"},Il={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function io(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{collectionFormat:s,allowEmptyValue:u,serializationOption:c,encoding:h}=n,m=typeof n=="object"&&!Array.isArray(n)?n.value:n,p=i?k=>k.toString():k=>encodeURIComponent(k),y=p(t);if(typeof m>"u"&&u)return[[y,""]];if(Ei(m)||Ll(m))return[[y,m]];if(c)return As(t,m,i,c);if(h){if([typeof h.style,typeof h.explode,typeof h.allowReserved].some(k=>k!=="undefined")){const{style:k,explode:I,allowReserved:Q}=h;return As(t,m,i,{style:k,explode:I,allowReserved:Q})}if(h.contentType){if(h.contentType==="application/json"){const k=typeof m=="string"?m:JSON.stringify(m);return[[y,p(k)]]}return[[y,p(m.toString())]]}return typeof m!="object"?[[y,p(m)]]:Array.isArray(m)&&m.every(k=>typeof k!="object")?[[y,m.map(p).join(",")]]:[[y,p(JSON.stringify(m))]]}return typeof m!="object"?[[y,p(m)]]:Array.isArray(m)?s==="multi"?[[y,m.map(p)]]:[[y,m.map(p).join(Il[s||"csv"])]]:[[y,""]]}function As(t,n,i,s){const u=s.style||"form",c=typeof s.explode>"u"?u==="form":s.explode,h=i?!1:s&&s.allowReserved?"unsafe":"reserved",m=y=>ai(y,{escape:h}),p=i?y=>y:y=>ai(y,{escape:h});return typeof n!="object"?[[p(t),m(n)]]:Array.isArray(n)?c?[[p(t),n.map(m)]]:[[p(t),n.map(m).join(Aa[u])]]:u==="deepObject"?Object.keys(n).map(y=>[p(`${t}[${y}]`),m(n[y])]):c?Object.keys(n).map(y=>[p(y),m(n[y])]):[[p(t),Object.keys(n).map(y=>[`${p(y)},${m(n[y])}`]).join(",")]]}function ki(t){return Object.entries(t).reduce((n,i)=>{let[s,u]=i;for(const[c,h]of io(s,u,!0))if(Array.isArray(h))for(const m of h)if(ArrayBuffer.isView(m)){const p=new Do([m]);n.append(c,p)}else n.append(c,m);else if(ArrayBuffer.isView(h)){const m=new Do([h]);n.append(c,m)}else n.append(c,h);return n},new eo)}function oo(t){const n=Object.keys(t).reduce((i,s)=>{for(const[u,c]of io(s,t[s]))i[u]=c;return i},{});return ee().stringify(n,{encode:!1,indices:!1})||""}function si(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{url:n="",query:i,form:s}=t,u=function(){for(var c=arguments.length,h=new Array(c),m=0;m<c;m++)h[m]=arguments[m];const p=h.filter(y=>y).join("&");return p?`?${p}`:""};if(s){const c=Object.keys(s).some(m=>{const{value:p}=s[m];return Ei(p)||Ll(p)}),h=t.headers["content-type"]||t.headers["Content-Type"];if(c||/multipart\/form-data/i.test(h)){const m=ki(t.form);Pl(m,t)}else t.body=oo(s);delete t.form}if(i){const[c,h]=n.split("?");let m="";if(h){const y=ee().parse(h);Object.keys(i).forEach(I=>delete y[I]),m=ee().stringify(y,{encode:!0})}const p=u(m,oo(i));t.url=c+p,delete t.query}return t}function Oa(t,n,i){return i=i||(s=>s),n=n||(s=>s),s=>(typeof s=="string"&&(s={url:s}),ro.mergeInQueryOrForm(s),s=n(s),i(t(s)))}function ao(t,n){function i(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack;for(var s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];[this.message]=u,n&&n.apply(this,u)}return i.prototype=new Error,i.prototype.name=t,i.prototype.constructor=i,i}const Ml={body:Nl,header:Sf,query:Pi,path:Ti,formData:Dl};function Nl(t){let{req:n,value:i}=t;n.body=i}function Dl(t){let{req:n,value:i,parameter:s}=t;(i||s.allowEmptyValue)&&(n.form=n.form||{},n.form[s.name]={value:i,allowEmptyValue:s.allowEmptyValue,collectionFormat:s.collectionFormat})}function Sf(t){let{req:n,parameter:i,value:s}=t;n.headers=n.headers||{},typeof s<"u"&&(n.headers[i.name]=s)}function Ti(t){let{req:n,value:i,parameter:s}=t;n.url=n.url.split(`{${s.name}}`).join(encodeURIComponent(i))}function Pi(t){let{req:n,value:i,parameter:s}=t;if(n.query=n.query||{},i===!1&&s.type==="boolean"&&(i="false"),i===0&&["number","integer"].indexOf(s.type)>-1&&(i="0"),i)n.query[s.name]={collectionFormat:s.collectionFormat,value:i};else if(s.allowEmptyValue&&i!==void 0){const u=s.name;n.query[u]=n.query[u]||{},n.query[u].allowEmptyValue=!0}}function Ea(t,n){return n.includes("application/json")?typeof t=="string"?t:JSON.stringify(t):t.toString()}function wf(t){let{req:n,value:i,parameter:s}=t;const{name:u,style:c,explode:h,content:m}=s;if(m){const y=Object.keys(m)[0];n.url=n.url.split(`{${u}}`).join(ai(Ea(i,y),{escape:!0}));return}const p=Ca({key:s.name,value:i,style:c||"simple",explode:h||!1,escape:!0});n.url=n.url.split(`{${u}}`).join(p)}function Cf(t){let{req:n,value:i,parameter:s}=t;if(n.query=n.query||{},s.content){const u=Object.keys(s.content)[0],c=Ea(i,u);if(c)n.query[s.name]=c;else if(s.allowEmptyValue&&i!==void 0){const h=s.name;n.query[h]=n.query[h]||{},n.query[h].allowEmptyValue=!0}return}if(i===!1&&(i="false"),i===0&&(i="0"),i){const{style:u,explode:c,allowReserved:h}=s;n.query[s.name]={value:i,serializationOption:{style:u,explode:c,allowReserved:h}}}else if(s.allowEmptyValue&&i!==void 0){const u=s.name;n.query[u]=n.query[u]||{},n.query[u].allowEmptyValue=!0}}const Af=["accept","authorization","content-type"];function Of(t){let{req:n,parameter:i,value:s}=t;if(n.headers=n.headers||{},!(Af.indexOf(i.name.toLowerCase())>-1)){if(i.content){const u=Object.keys(i.content)[0];n.headers[i.name]=Ea(s,u);return}typeof s<"u"&&(n.headers[i.name]=Ca({key:i.name,value:s,style:i.style||"simple",explode:typeof i.explode>"u"?!1:i.explode,escape:!1}))}}function Ef(t){let{req:n,parameter:i,value:s}=t;n.headers=n.headers||{};const u=typeof s;if(i.content){const c=Object.keys(i.content)[0];n.headers.Cookie=`${i.name}=${Ea(s,c)}`;return}if(u!=="undefined"){const c=u==="object"&&!Array.isArray(s)&&i.explode?"":`${i.name}=`;n.headers.Cookie=c+Ca({key:i.name,value:s,escape:!1,style:i.style||"form",explode:typeof i.explode>"u"?!1:i.explode})}}const Vr=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:window)(),{btoa:lr}=Vr,Sr=lr;function ur(t,n){const{operation:i,requestBody:s,securities:u,spec:c,attachContentTypeForEmptyPayload:h}=t;let{requestContentType:m}=t;n=Fo({request:n,securities:u,operation:i,spec:c});const p=i.requestBody||{},y=Object.keys(p.content||{}),k=m&&y.indexOf(m)>-1;if(s||h){if(m&&k)n.headers["Content-Type"]=m;else if(!m){const I=y[0];I&&(n.headers["Content-Type"]=I,m=I)}}else m&&k&&(n.headers["Content-Type"]=m);if(!t.responseContentType&&i.responses){const I=Object.entries(i.responses).filter(Q=>{let[W,$]=Q;const ae=parseInt(W,10);return ae>=200&&ae<300&&ge($.content)}).reduce((Q,W)=>{let[,$]=W;return Q.concat(Object.keys($.content))},[]);I.length>0&&(n.headers.accept=I.join(", "))}if(s)if(m){if(y.indexOf(m)>-1)if(m==="application/x-www-form-urlencoded"||m==="multipart/form-data")if(typeof s=="object"){const I=(p.content[m]||{}).encoding||{};n.form={},Object.keys(s).forEach(Q=>{n.form[Q]={value:s[Q],encoding:I[Q]||{}}})}else n.form=s;else n.body=s}else n.body=s;return n}function Fo(t){let{request:n,securities:i={},operation:s={},spec:u}=t;const c=L({},n),{authorized:h={}}=i,m=s.security||u.security||[],p=h&&!!Object.keys(h).length,y=ie()(u,["components","securitySchemes"])||{};return c.headers=c.headers||{},c.query=c.query||{},!Object.keys(i).length||!p||!m||Array.isArray(s.security)&&!s.security.length?n:(m.forEach(k=>{Object.keys(k).forEach(I=>{const Q=h[I],W=y[I];if(!Q)return;const $=Q.value||Q,{type:ae}=W;if(Q){if(ae==="apiKey")W.in==="query"&&(c.query[W.name]=$),W.in==="header"&&(c.headers[W.name]=$),W.in==="cookie"&&(c.cookies[W.name]=$);else if(ae==="http"){if(/^basic$/i.test(W.scheme)){const ue=$.username||"",oe=$.password||"",fe=Sr(`${ue}:${oe}`);c.headers.Authorization=`Basic ${fe}`}/^bearer$/i.test(W.scheme)&&(c.headers.Authorization=`Bearer ${$}`)}else if(ae==="oauth2"||ae==="openIdConnect"){const ue=Q.token||{},oe=W["x-tokenName"]||"access_token",fe=ue[oe];let ye=ue.token_type;(!ye||ye.toLowerCase()==="bearer")&&(ye="Bearer"),c.headers.Authorization=`${ye} ${fe}`}}})}),c)}function kf(t,n){const{spec:i,operation:s,securities:u,requestContentType:c,responseContentType:h,attachContentTypeForEmptyPayload:m}=t;if(n=ka({request:n,securities:u,operation:s,spec:i}),n.body||n.form||m)c?n.headers["Content-Type"]=c:Array.isArray(s.consumes)?[n.headers["Content-Type"]]=s.consumes:Array.isArray(i.consumes)?[n.headers["Content-Type"]]=i.consumes:s.parameters&&s.parameters.filter(p=>p.type==="file").length?n.headers["Content-Type"]="multipart/form-data":s.parameters&&s.parameters.filter(p=>p.in==="formData").length&&(n.headers["Content-Type"]="application/x-www-form-urlencoded");else if(c){const p=s.parameters&&s.parameters.filter(k=>k.in==="body").length>0,y=s.parameters&&s.parameters.filter(k=>k.in==="formData").length>0;(p||y)&&(n.headers["Content-Type"]=c)}return!h&&Array.isArray(s.produces)&&s.produces.length>0&&(n.headers.accept=s.produces.join(", ")),n}function ka(t){let{request:n,securities:i={},operation:s={},spec:u}=t;const c=L({},n),{authorized:h={},specSecurity:m=[]}=i,p=s.security||m,y=h&&!!Object.keys(h).length,k=u.securityDefinitions;return c.headers=c.headers||{},c.query=c.query||{},!Object.keys(i).length||!y||!p||Array.isArray(s.security)&&!s.security.length?n:(p.forEach(I=>{Object.keys(I).forEach(Q=>{const W=h[Q];if(!W)return;const{token:$}=W,ae=W.value||W,ue=k[Q],{type:oe}=ue,fe=ue["x-tokenName"]||"access_token",ye=$&&$[fe];let Ae=$&&$.token_type;if(W)if(oe==="apiKey"){const we=ue.in==="query"?"query":"headers";c[we]=c[we]||{},c[we][ue.name]=ae}else if(oe==="basic")if(ae.header)c.headers.authorization=ae.header;else{const we=ae.username||"",Te=ae.password||"";ae.base64=Sr(`${we}:${Te}`),c.headers.authorization=`Basic ${ae.base64}`}else oe==="oauth2"&&ye&&(Ae=!Ae||Ae.toLowerCase()==="bearer"?"Bearer":Ae,c.headers.authorization=`${Ae} ${ye}`)})}),c)}function Fl(t,n){return`${n.toLowerCase()}-${t}`}function Tf(t,n,i){if(!t||typeof t!="object"||!t.paths||typeof t.paths!="object")return null;const{paths:s}=t;for(const u in s)for(const c in s[u]){if(c.toUpperCase()==="PARAMETERS")continue;const h=s[u][c];if(!h||typeof h!="object")continue;const m={spec:t,pathName:u,method:c.toUpperCase(),operation:h},p=n(m);if(i&&p)return m}}function Pf(t,n){return Tf(t,n,!0)||null}const Os=t=>t.replace(/\W/gi,"_");function Es(t,n){let{v2OperationIdCompatibilityMode:i}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(i){let s=`${n.toLowerCase()}_${t}`.replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return s=s||`${t.substring(1)}_${n}`,s.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return`${n.toLowerCase()}${Os(t)}`}function Lf(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",{v2OperationIdCompatibilityMode:s}=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return!t||typeof t!="object"?null:(t.operationId||"").replace(/\s/g,"").length?Os(t.operationId):Es(n,i,{v2OperationIdCompatibilityMode:s})}function ks(t,n){return!t||!t.paths?null:Pf(t,i=>{let{pathName:s,method:u,operation:c}=i;if(!c||typeof c!="object")return!1;const h=c.operationId,m=Lf(c,s,u),p=Fl(s,u);return[m,p,h].some(y=>y&&y===n)})}const Bl=t=>{try{const{swagger:n}=t;return n==="2.0"}catch{return!1}},jl=t=>{try{const{openapi:n}=t;return typeof n=="string"&&/^3\.0\.([0123])(?:-rc[012])?$/.test(n)}catch{return!1}},Wl=t=>{try{const{openapi:n}=t;return typeof n=="string"&&/^3\.1\.(?:[1-9]\d*|0)$/.test(n)}catch{return!1}},Ta=t=>jl(t)||Wl(t),Hl=["http","fetch","spec","operationId","pathName","method","parameters","securities"],so=t=>Array.isArray(t)?t:[],If=ao("OperationNotFoundError",function(n,i,s){this.originalError=s,Object.assign(this,i||{})}),Pa=(t,n)=>n.filter(i=>i.name===t),Kn=t=>{const n={};t.forEach(s=>{n[s.in]||(n[s.in]={}),n[s.in][s.name]=s});const i=[];return Object.keys(n).forEach(s=>{Object.keys(n[s]).forEach(u=>{i.push(n[s][u])})}),i},Ul={buildRequest:zl};function Mf(t){let{http:n,fetch:i,spec:s,operationId:u,pathName:c,method:h,parameters:m,securities:p}=t,y=te(t,Hl);const k=n||i||yf;c&&h&&!u&&(u=Fl(c,h));const I=Ul.buildRequest(L({spec:s,operationId:u,parameters:m,securities:p,http:k},y));return I.body&&(ge(I.body)||Array.isArray(I.body))&&(I.body=JSON.stringify(I.body)),k(I)}function zl(t){const{spec:n,operationId:i,responseContentType:s,scheme:u,requestInterceptor:c,responseInterceptor:h,contextUrl:m,userFetch:p,server:y,serverVariables:k,http:I,signal:Q}=t;let{parameters:W,parameterBuilders:$}=t;const ae=Ta(n);$||(ae?$=v:$=Ml);let oe={url:"",credentials:I&&I.withCredentials?"include":"same-origin",headers:{},cookies:{}};Q&&(oe.signal=Q),c&&(oe.requestInterceptor=c),h&&(oe.responseInterceptor=h),p&&(oe.userFetch=p);const fe=ks(n,i);if(!fe)throw new If(`Operation ${i} not found`);const{operation:ye={},method:Ae,pathName:we}=fe;if(oe.url+=Et({spec:n,scheme:u,contextUrl:m,server:y,serverVariables:k,pathName:we,method:Ae}),!i)return delete oe.cookies,oe;oe.url+=we,oe.method=`${Ae}`.toUpperCase(),W=W||{};const Te=n.paths[we]||{};s&&(oe.headers.accept=s);const ke=Kn([].concat(so(ye.parameters)).concat(so(Te.parameters)));ke.forEach(pe=>{const Ie=$[pe.in];let Oe;if(pe.in==="body"&&pe.schema&&pe.schema.properties&&(Oe=W),Oe=pe&&pe.name&&W[pe.name],typeof Oe>"u"?Oe=pe&&pe.name&&W[`${pe.in}.${pe.name}`]:Pa(pe.name,ke).length>1&&console.warn(`Parameter '${pe.name}' is ambiguous because the defined spec has more than one parameter with the name: '${pe.name}' and the passed-in parameter values did not define an 'in' value.`),Oe!==null){if(typeof pe.default<"u"&&typeof Oe>"u"&&(Oe=pe.default),typeof Oe>"u"&&pe.required&&!pe.allowEmptyValue)throw new Error(`Required parameter ${pe.name} is not provided`);if(ae&&pe.schema&&pe.schema.type==="object"&&typeof Oe=="string")try{Oe=JSON.parse(Oe)}catch{throw new Error("Could not parse object parameter value string as JSON")}Ie&&Ie({req:oe,parameter:pe,value:Oe,operation:ye,spec:n})}});const Ne=L(L({},t),{},{operation:ye});if(ae?oe=ur(Ne,oe):oe=kf(Ne,oe),oe.cookies&&Object.keys(oe.cookies).length){const pe=Object.keys(oe.cookies).reduce((Ie,Oe)=>{const Be=oe.cookies[Oe],rt=Ie?"&":"",Lt=Y.serialize(Oe,Be);return Ie+rt+Lt},"");oe.headers.Cookie=pe}return oe.cookies&&delete oe.cookies,si(oe),oe}const Rr=t=>t?t.replace(/\W/g,""):null;function Et(t){return Ta(t.spec)?wn(t):_l(t)}function wn(t){let{spec:n,pathName:i,method:s,server:u,contextUrl:c,serverVariables:h={}}=t;const m=ie()(n,["paths",i,(s||"").toLowerCase(),"servers"])||ie()(n,["paths",i,"servers"])||ie()(n,["servers"]);let p="",y=null;if(u&&m&&m.length){const k=m.map(I=>I.url);k.indexOf(u)>-1&&(p=u,y=m[k.indexOf(u)])}return!p&&m&&m.length&&(p=m[0].url,[y]=m),p.indexOf("{")>-1&&ui(p).forEach(I=>{if(y.variables&&y.variables[I]){const Q=y.variables[I],W=h[I]||Q.default,$=new RegExp(`{${I}}`,"g");p=p.replace($,W)}}),li(p,c)}function li(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const i=t&&n?H.parse(H.resolve(n,t)):H.parse(t),s=H.parse(n),u=Rr(i.protocol)||Rr(s.protocol)||"",c=i.host||s.host,h=i.pathname||"";let m;return u&&c?m=`${u}://${c+h}`:m=h,m[m.length-1]==="/"?m.slice(0,-1):m}function ui(t){const n=[],i=/{([^}]+)}/g;let s;for(;s=i.exec(t);)n.push(s[1]);return n}function _l(t){let{spec:n,scheme:i,contextUrl:s=""}=t;const u=H.parse(s),c=Array.isArray(n.schemes)?n.schemes[0]:null,h=i||c||Rr(u.protocol)||"http",m=n.host||u.host||"",p=n.basePath||"";let y;return h&&m?y=`${h}://${m+p}`:y=p,y[y.length-1]==="/"?y.slice(0,-1):y}var B=f(29901),Vt=f(20202),Nn=f(19816),Ts=f(37837),Ro=f(96244),Vl=f(2526),Ps=Object.defineProperty,fi=Object.defineProperties,$l=Object.getOwnPropertyDescriptors,Ls=Object.getOwnPropertySymbols,Nf=Object.prototype.hasOwnProperty,La=Object.prototype.propertyIsEnumerable,Ia=(t,n,i)=>n in t?Ps(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i,Gl=(t,n)=>{for(var i in n||(n={}))Nf.call(n,i)&&Ia(t,i,n[i]);if(Ls)for(var i of Ls(n))La.call(n,i)&&Ia(t,i,n[i]);return t},Df=(t,n)=>fi(t,$l(n)),Kl=(t,n,i)=>new Promise((s,u)=>{var c=p=>{try{m(i.next(p))}catch(y){u(y)}},h=p=>{try{m(i.throw(p))}catch(y){u(y)}},m=p=>p.done?s(p.value):Promise.resolve(p.value).then(c,h);m((i=i.apply(t,n)).next())});function Ff(t,n){return Kl(this,null,function*(){var i,s,u,c;const h=JSON.parse(JSON.stringify(n)),m=h.openapi?{openapi:h.openapi}:h.swagger?{swagger:h.swagger}:{},p=Df(Gl({},m),{components:h.components,paths:{[t.path]:{[t.httpVerb]:(s=(i=h.paths)==null?void 0:i[t.path])==null?void 0:s[t.httpVerb],parameters:(c=(u=h.paths)==null?void 0:u[t.path])==null?void 0:c.parameters}}}),y=new Ro.Config({}),k=(0,Vl.I)(p),I={config:y,doc:k,dereference:!0};return yield(0,Ts.bundle)(I),h})}var Rf=f(98910),Li=f(84862),Cn=f(53134),Yl=(t,n,i)=>new Promise((s,u)=>{var c=p=>{try{m(i.next(p))}catch(y){u(y)}},h=p=>{try{m(i.throw(p))}catch(y){u(y)}},m=p=>p.done?s(p.value):Promise.resolve(p.value).then(c,h);m((i=i.apply(t,n)).next())});const Xl=Object.values(Cn.FileUploadFormats),Jl=["application/octet-stream","application/pdf","application/gzip","application/zip"],Ii=["image/","audio/","video/"];function Ma(t){if(Ii.some(n=>t.startsWith(n)))return t}function Mi(t){return Jl.includes(t)?!0:Ii.some(n=>t.startsWith(n))}function Ql(t){const n=t.type==="array"?t.items:t;if(!n||!n.type||n?.type==="any")return!0;const i=n.contentMediaType||"",s=n.format||n.contentEncoding||(Mi(i)?"binary":"");return n.type===Cn.DefinitionTypes.STRING&&Xl.includes(s)}function Na(t,n){if(!t||!t.type||t.type==="any")return Mi(n);const i=t.format||t.contentEncoding||"";return t.type===Cn.DefinitionTypes.STRING&&Xl.includes(i)}function Is(t){return new Promise((n,i)=>{const s=new FileReader;s.onload=()=>{const c=s.result.replace(/data:.*\/.*;base64,/g,"");n(c)},s.onerror=()=>i(s.error),s.readAsDataURL(t)})}function Zl({format:t,contentEncoding:n,contentMediaType:i}){return[t,n,i].includes(Cn.FileUploadFormats.BASE64)}function ql(t,n){return Yl(this,null,function*(){const i=Object.values(t);let s=i.length===1?i[0]:i;return n.type===Cn.DefinitionTypes.STRING&&Zl(n)?s=yield Is(i[0]):n.type===Cn.DefinitionTypes.ARRAY&&n.items&&(Zl(n.items)?s=yield Promise.all(i.map(c=>Yl(this,null,function*(){return yield Is(c)}))):s=i),s})}var fr=f(84622),gt=f(38612),kt=f(38779),ot=f(85739),Qr=f(71608),lo=f(64393);function Da({response:t}){return B.createElement(B.Fragment,null,B.createElement(Qr.EE,null," Body: "),eu(t))}function eu(t){return t.body?B.createElement(Vt.JsonViewer,{data:t.body,jsonSampleExpandLevel:1}):t.fileInfo?B.createElement(lo.s,{fileInfo:t.fileInfo}):t.data!==null?t.data?B.createElement(Vt.CodeBlock,{lang:(0,ot.M)(t.headers["Content-Type"]||"text/plain"),source:t.data,header:{controls:{copy:{}}}}):B.createElement(Vt.CodeBlockContainer,{withControls:!0},B.createElement("i",null,"(no content)")):null}var ci=f(79216);function tu({headers:t}){const n=(0,Nn.sJ)(ci.lk),[i,s]=(0,B.useState)(!0),{maxResponseHeadersToShowInTryIt:u}=n,c=Object.keys(t),h=!!u&&c.length>u,m=h&&i?[...c].splice(0,u):[...c],p=()=>{s(!i)};return B.createElement(B.Fragment,null,B.createElement(Qr.EE,null," Headers: "),B.createElement(Vt.CodeBlockContainer,{withControls:!0},m.map(y=>B.createElement("div",{key:y},B.createElement(Ni,null,y,":"),B.createElement("code",null,t[y]))),h&&B.createElement(Ms,{onClick:p},i?"Show more...":"Hide headers")))}const Ni=kt.ZP.strong`
82
- text-transform: capitalize;
83
- display: inline-block;
84
- padding-right: 5px;
85
- `,Ms=kt.ZP.div`
86
- cursor: pointer;
87
- margin-top: 5px;
88
- font-size: 14px;
89
- `;Ni.displayName="HeaderName",Ms.displayName="StyledShowMoreLabel";const Fa=kt.ZP.div`
90
- margin-bottom: 10px;
91
- `,Ra=kt.ZP.div`
92
- display: inline-block;
93
- margin-right: 20px;
94
- padding: 2px 0;
95
- text-align: center;
96
- color: var(--text-primary);
97
- `,Bo=(0,kt.ZP)(Ra)`
98
- color: ${({code:t})=>t>=200&&t<300?"var(--response-success-text-color)":t>=300&&t<400?"var(--response-redirect-text-color)":t>400?"var(--response-error-text-color)":"var(--response-info-text-color)"};
99
- `,ru=kt.ZP.header`
100
- font-weight: bold;
101
- margin-bottom: 10px;
102
- `,uo=kt.ZP.code`
103
- border-left: 3px solid #ff4040;
104
- padding-left: 5px;
105
- `,nu=({error:t,response:n,time:i})=>{const s=n||t&&t.response,u=s&&s.data&&s.data.length||0;let c;return u>1e6?c=(u/1e6).toFixed(2)+" MB":u>1e3?c=(u/1e3).toFixed(2)+" KB":c=u+" B",t&&!t.response||!s?B.createElement(B.Fragment,null,B.createElement(ru,null," Could not get any response "),B.createElement(uo,null,t&&t.message||"Unknown error"),B.createElement("br",null),B.createElement(ru,null," Why this might have happened:"),B.createElement("div",null," - CORS is misconfigured on the server"),B.createElement("div",null," - The server couldn't send a response"),B.createElement("div",null," - No internet access"),B.createElement("div",null," - Documentation issue - contact API owner"),B.createElement("div",null," - Misconfigured security definition")):s?B.createElement(B.Fragment,null,B.createElement(Fa,null,B.createElement(Bo,{code:s.status},B.createElement("span",null," Status: "),s.status," ",s.statusText),B.createElement(Ra,null,B.createElement("span",null," Time: "),i,"ms"),B.createElement(Ra,null,B.createElement("span",null," Size: "),c)),B.createElement("div",null,B.createElement(tu,{headers:s.headers}),B.createElement(Da,{response:s}))):B.createElement(B.Fragment,null,"Something went wrong")},iu=kt.ZP.div`
106
- display: flex;
107
- font-size: 12px;
108
- button {
109
- margin: 0;
110
- }
111
- `,Ns=kt.ZP.button`
112
- outline: none;
113
- border: none;
114
- background-color: var(--panel-try-it-tabs-background-color);
115
- text-align: center;
116
- cursor: pointer;
117
- color: var(--panel-try-it-tabs-text-color);
118
- min-width: 80px;
119
- min-height: 30px;
120
- border-radius: var(--border-radius-lg);
121
- font-size: var(--panel-try-it-tabs-font-size);
122
- font-family: var(--panel-try-it-tabs-font-family);
123
- font-weight: var(--panel-try-it-tabs-font-weight);
124
- padding: 0 10px;
125
-
126
- &:hover:not(:disabled) {
127
- background-color: var(--panel-try-it-tabs-hover-background-color);
128
- color: var(--panel-try-it-tabs-hover-text-color);
129
- }
130
-
131
- ${({active:t})=>t&&(0,kt.iv)`
132
- background-color: var(--panel-try-it-tabs-active-background-color);
133
- color: var(--panel-try-it-tabs-active-text-color);
134
- `||""}
135
-
136
- ${({disabled:t})=>t&&(0,kt.iv)`
137
- cursor: default;
138
- background-color: var(--panel-try-it-tabs-disabled-background-color);
139
- color: var(--panel-try-it-tabs-disabled-text-color);
140
- `||""}
141
- `;function jo({onChange:t,active:n,hasResponse:i}){return B.createElement(iu,null,B.createElement(Ns,{onClick:()=>t(0),active:n===0},i?"Edit Request":"Request"),B.createElement(Ns,{onClick:()=>i&&t(1),active:n===1,disabled:!i}," ","Response"," "))}var Di=f(82155),fo=f(79198);function Wo(t,n,i){const s=n.path||{},u=n.query||{},c=Object.keys(u);let h=(0,gt.v5)(t,s);const m=p=>i.find(y=>y.name===p&&y.in==="query");return c.length&&(h+="?"+c.map(p=>{if(!u[p])return"";const y=m(p);return y?(0,ot.d$)(y,u[p]):`${p}=${encodeURIComponent(u[p])}`}).filter(Boolean).join("&")),h}const ou=({loading:t,operation:n,hasResponse:i,execute:s,params:u={}})=>B.createElement(Li.k1,null,B.createElement(Di.__,null,B.createElement(fo.FH,{color:n.httpVerb},n.httpVerb),B.createElement(Di.y$,{wrap:"true"},Wo(n.path,u,n.parameters))),B.createElement(Bf,{"data-cy":"send-button",color:"primary",blinking:t,onClick:()=>!t&&s()},t?"Sending...":i?"Resend":"Send")),Bf=(0,kt.ZP)(Di.ev)`
142
- width: var(--panel-try-it-action-button-width);
143
- `,au=(0,B.memo)(ou);var Zr=f(82302),ln=f(26225),Ho=Object.defineProperty,jf=Object.defineProperties,su=Object.getOwnPropertyDescriptors,lu=Object.getOwnPropertySymbols,Wf=Object.prototype.hasOwnProperty,Hf=Object.prototype.propertyIsEnumerable,Pr=(t,n,i)=>n in t?Ho(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i,co=(t,n)=>{for(var i in n||(n={}))Wf.call(n,i)&&Pr(t,i,n[i]);if(lu)for(var i of lu(n))Hf.call(n,i)&&Pr(t,i,n[i]);return t},Uf=(t,n)=>jf(t,su(n)),Ba=(t,n,i)=>new Promise((s,u)=>{var c=p=>{try{m(i.next(p))}catch(y){u(y)}},h=p=>{try{m(i.throw(p))}catch(y){u(y)}},m=p=>p.done?s(p.value):Promise.resolve(p.value).then(c,h);m((i=i.apply(t,n)).next())});const uu="/oauth2-redirect.html";class un{static authorizeImplicit({authorizationUrl:n,clientId:i,scopes:s,extraParams:u={},routingBasePath:c,redirectUri:h,successCallback:m,errorCallback:p}){const y=(0,ln.p8)({date:new Date().toString()}),k=new URL(n),I=c==="/"?"":c,Q=`${window.location.origin}${I}${uu}`;k.searchParams.set("client_id",i),k.searchParams.set("redirect_uri",h||Q),k.searchParams.set("response_type","token"),k.searchParams.set("state",y),Array.isArray(s)&&k.searchParams.set("scope",s.join(" "));for(const W in u)k.searchParams.set(W,u[W]);window.redirectOAuth2={flow:"implicit",data:{authorizationUrl:n,clientId:i,scopes:s},state:y,successCallback:W=>{m(W),un.clearRedirectData("implicit")},errorCallback:W=>{p(W),un.clearRedirectData("implicit")}},window.open(k.toString())}static authorizeAuthorizationCode({authorizationUrl:n,tokenUrl:i,clientId:s,clientSecret:u,codeVerifier:c,codeChallenge:h,scopes:m,extraParams:p={},extraHeaders:y={},routingBasePath:k,redirectUri:I,successCallback:Q,errorCallback:W}){const $=new URL(n),ae=k==="/"?"":k,ue=`${window.location.origin}${ae}${uu}`,oe=(0,ln.p8)({date:new Date().toString()});$.searchParams.set("client_id",s),$.searchParams.set("redirect_uri",I||ue),$.searchParams.set("response_type","code"),$.searchParams.set("state",oe),Array.isArray(m)&&$.searchParams.set("scope",m.join(" ")),h&&($.searchParams.set("code_challenge",h),$.searchParams.set("code_challenge_method","S256"));for(const fe in p)$.searchParams.set(fe,p[fe]);window.redirectOAuth2={flow:"authorizationCode",data:{authorizationUrl:n,clientId:s,scopes:m},state:oe,successCallback:fe=>Ba(this,[fe],function*({auth_code:ye}){try{const Ae=yield fetch(i,{method:"POST",headers:co({"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},y),body:ot.uM.stringify(co(Uf(co({client_id:s,client_secret:u},c&&{code_verifier:c}),{code:ye,grant_type:"authorization_code",redirect_uri:I||ue}),p))});yield Ds(Ae,Q,W)}catch(Ae){W(Ae)}un.clearRedirectData("authorizationCode")}),errorCallback:fe=>{W(fe),un.clearRedirectData("authorizationCode")}},window.open($.toString())}static clearRedirectData(n){window.redirectOAuth2={flow:n,data:{authorizationUrl:"",clientId:"",scopes:[]},state:"",successCallback:()=>{},errorCallback:()=>{}}}static authorizeClientCredentials(n){return Ba(this,arguments,function*({tokenUrl:i,clientId:s,clientSecret:u,scopes:c=[],extraParams:h={},extraHeaders:m={},successCallback:p,errorCallback:y}){try{const k=JSON.parse(JSON.stringify(co({client_id:s,client_secret:u,grant_type:"client_credentials",scope:Array.isArray(c)&&c.length?c.join(" "):void 0},h))),I=yield fetch(i,{method:"POST",headers:co({"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},m),body:ot.uM.stringify(k)});yield Ds(I,p,y)}catch(k){y(k)}})}}const zf=new un;function Ds(t,n,i){return Ba(this,null,function*(){if(t.ok){const s=yield t.json();n(s)}else i(new Error((t.headers.get("Content-Type")||"").indexOf("json")>-1?JSON.stringify(yield t.json()):yield t.text()))})}function fu(t){return Ba(this,null,function*(){return(0,ln.rS)(yield(0,ln.JQ)(t))})}var Uo=f(95709),Ge=f(9612),di=f(39012),jt=f(54597);function ja({name:t,value:n,description:i,variableEnum:s,onChange:u,defaultValue:c}){const h=(0,B.useCallback)(y=>u(y.target.value),[u]),m=(0,B.useCallback)(y=>u(y.value),[u]),p=s?s.map((y,k)=>({value:y,idx:k})):[];return B.createElement(Ge.NI,null,B.createElement(Ge.lX,null,t,":"),p&&p.length?B.createElement(Qr.VD,{fullWidth:!0,variant:"dark",value:n,options:p,onChange:m}):B.createElement(jt.nv,{fullWidth:!0,value:n,onChange:h,placeholder:c,panel:"try-it"}),i&&B.createElement(zo,{source:i}))}const zo=(0,kt.ZP)(di.Markdown)`
144
- margin-top: 5px;
145
- color: #d0d0d0;
146
- `;var Yn=Object.defineProperty,_f=Object.defineProperties,Vf=Object.getOwnPropertyDescriptors,Fi=Object.getOwnPropertySymbols,cu=Object.prototype.hasOwnProperty,du=Object.prototype.propertyIsEnumerable,Fs=(t,n,i)=>n in t?Yn(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i,_o=(t,n)=>{for(var i in n||(n={}))cu.call(n,i)&&Fs(t,i,n[i]);if(Fi)for(var i of Fi(n))du.call(n,i)&&Fs(t,i,n[i]);return t},Ri=(t,n)=>_f(t,Vf(n));function Rs({operation:t,onChange:n}){const{events:i}=(0,Nn.sJ)(ci.lk),{servers:s}=t,u=(0,ot.YQ)("serverUrl"),c=s.findIndex($=>$.url===u),[h,m]=(0,B.useState)(c<0?0:c),[p,y]=(0,B.useState)({});(0,Vt.useMount)(()=>{const $=(0,gt.fz)(s,h);n($),y($.variables)});const k=({serverUrl:$=""})=>{var ae;const ue=s.find(Ae=>Ae.url===$),oe=s.findIndex(Ae=>Ae.url===$),fe=(0,gt.mj)(ue);n({url:$,variables:fe}),(0,ot.WW)("serverUrl",$),m(oe),y(fe);const ye=(0,fr.Ze)({operation:t,serverUrl:$});(ae=i.targetServerSwitch)==null||ae.call(i,ye)},I=($,ae)=>{const ue=s[h],oe=ae||ae===""?ae:(0,gt.mj)(ue)[$],fe=Ri(_o({},p),{[$]:oe});y(fe),(0,gt.UY)($,oe),n(Ri(_o({},ue),{variables:fe}))},Q=s.map(($,ae)=>({idx:ae,serverUrl:$.url,value:`
147
- ${(0,gt.nq)((0,gt.v5)($.url,p),$.variables)}
148
- - ${(0,ot.bG)($.description)||"Default"}
149
- `})),W=Object.keys(p);return B.createElement(js,{"data-cy":"console-target-server"},B.createElement(Ge.lX,{htmlFor:"server"},"Target server: "),B.createElement(Ge.NI,null,B.createElement(Qr.VD,{variant:"dark",value:Q[h].value,options:Q,fullWidth:!0,onChange:k})),W?.map($=>{var ae;const ue=(ae=s[h].variables)==null?void 0:ae[$];if(ue)return B.createElement(ja,{key:$,name:$,value:p[$],defaultValue:ue.default,onChange:oe=>I($,oe),variableEnum:ue.enum,description:ue.description})}))}const Bs=(0,B.memo)(Rs),js=kt.ZP.div`
150
- margin-bottom: 20px;
151
- `;var hu=f(86220),Vo=Object.defineProperty,pu=Object.defineProperties,$f=Object.getOwnPropertyDescriptors,$o=Object.getOwnPropertySymbols,Go=Object.prototype.hasOwnProperty,vu=Object.prototype.propertyIsEnumerable,gu=(t,n,i)=>n in t?Vo(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i,Ko=(t,n)=>{for(var i in n||(n={}))Go.call(n,i)&&gu(t,i,n[i]);if($o)for(var i of $o(n))vu.call(n,i)&&gu(t,i,n[i]);return t},mu=(t,n)=>pu(t,$f(n)),yu=(t,n)=>{var i={};for(var s in t)Go.call(t,s)&&n.indexOf(s)<0&&(i[s]=t[s]);if(t!=null&&$o)for(var s of $o(t))n.indexOf(s)<0&&vu.call(t,s)&&(i[s]=t[s]);return i};function Ws(t){var n=t,{header:i,error:s,success:u}=n,c=yu(n,["header","error","success"]);const h=({toggle:m,expanded:p=!1})=>B.createElement(Vt.PanelHeader,{onClick:m,expanded:p,"data-cy":c["data-cy"]},B.createElement(Li.xz,null,B.createElement(Vt.PanelHeaderTitle,null,i),B.createElement(Vt.ShelfIcon,{direction:p?"down":"right"})),s&&B.createElement(hu.CrossIcon,{size:"14px",color:"--color-error"})||null,u&&B.createElement(hu.LockIcon,{size:"14px",color:"--color-success"})||null);return B.createElement(Hs,mu(Ko({className:"panel-try-it-nested"},c),{header:h}))}const Hs=(0,kt.ZP)(Vt.Panel)`
152
- ${Vt.PanelHeader} {
153
- border: 1px solid
154
- ${({error:t})=>t?"var(--color-error-border)":"var(--panel-try-it-nested-heading-border-color)"};
155
- padding: 10px;
156
- }
157
-
158
- ${Vt.PanelBody} {
159
- border: 1px solid
160
- ${({error:t})=>t?"var(--color-error-border)":"var(--panel-try-it-nested-body-border-color)"};
161
- border-top: 0;
162
- }
163
- `;var bu=f(4296),Gf=f(62701),xu=f(18373);const Su=(0,kt.ZP)(fo.A3)`
164
- border-radius: var(--panel-border-radius);
165
- margin-bottom: 10px;
166
- `;var Wa=f(42112),Yo=f(34716),Xo=f(98127),Jo=Object.defineProperty,Ha=Object.getOwnPropertySymbols,Us=Object.prototype.hasOwnProperty,wu=Object.prototype.propertyIsEnumerable,Cu=(t,n,i)=>n in t?Jo(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i,Kf=(t,n)=>{for(var i in n||(n={}))Us.call(n,i)&&Cu(t,i,n[i]);if(Ha)for(var i of Ha(n))wu.call(n,i)&&Cu(t,i,n[i]);return t},Au=(t,n)=>{var i={};for(var s in t)Us.call(t,s)&&n.indexOf(s)<0&&(i[s]=t[s]);if(t!=null&&Ha)for(var s of Ha(t))n.indexOf(s)<0&&wu.call(t,s)&&(i[s]=t[s]);return i},Ou=(t,n,i)=>new Promise((s,u)=>{var c=p=>{try{m(i.next(p))}catch(y){u(y)}},h=p=>{try{m(i.throw(p))}catch(y){u(y)}},m=p=>p.done?s(p.value):Promise.resolve(p.value).then(c,h);m((i=i.apply(t,n)).next())});const Eu=(0,B.forwardRef)((t,n)=>{var i=Au(t,[]);const s=i,{schema:u,contentName:c,onChange:h,name:m}=s,p=Au(s,["schema","contentName","onChange","name"]),{render:y}=(0,Zr.U$)(Kf({field:m},p)),k=I=>Ou(void 0,null,function*(){const Q=yield ql(I.target.files,u);h(c,Q)});return y(B.createElement("input",{"data-cy":"file-upload-input",type:"file",id:i.id,className:i.className,name:i.name,onChange:k,multiple:i.multiple,accept:i.accept,ref:n}))});Eu.displayName="FileUpload";var zs=f(5489);function ku({mediaType:t,onChange:n,formApi:i}){var s;const u=t.examples||{},{exampleKey:c}=(0,Yo.C6)(t.operation,u),h=(s=u[c])==null?void 0:s.rawValue,m=Tu(t);(0,B.useEffect)(()=>i&&m.forEach(y=>{var k,I;const Q=h?.[y.name],W=(I=(k=y.example)!=null?k:Q?.example)!=null?I:Q,$=typeof W=="object"?JSON.stringify(W):W;W!==void 0&&i.setValue("body."+y.name,`${$}`)}),[c]);const p=t.schema||{};return Na(p,t.name)?B.createElement(Pu,null,B.createElement(Ge.NI,null,B.createElement(Vs,{fullWidth:!0,id:`body.${t.name}`,name:`body.${t.name}`,accept:Ma(t.name),schema:p,contentName:t.name,onChange:n}))):p.type!==Cn.DefinitionTypes.OBJECT&&!m?(console.warn(`Invalid schema for request body and mime type: "${t.name}"`,p),null):B.createElement(Pu,null,m.map(y=>{const k=y.schema||{contentMediaType:"",type:"",description:""},I=t.name===Wa.Tr.MULTIPART&&Ql(k),Q=k.contentMediaType||"",W=I?B.createElement(Vs,{fullWidth:!0,id:"body."+y.name,name:"body."+y.name,accept:Ma(Q),multiple:k.type==="array",schema:k,contentName:y.name,onChange:n}):B.createElement(jt.Xn,{fullWidth:!0,id:"body."+y.name,field:"body."+y.name,placeholder:(0,ot.bG)(k.description)||y.name,panel:"try-it"});return B.createElement(Ge.NI,{key:y.name},B.createElement(Ge.lX,null,y.name,":"),W)}))}const _s=(0,B.memo)(ku);function Tu(t){var n,i,s,u;const{activeOneOf:c}=(0,Xo.$l)((0,zs.N)(t.operation.pointer));return((i=(n=t.schema)==null?void 0:n.oneOf)!=null&&i.length?((s=t.schema)==null?void 0:s.oneOf[c].fields)||[]:((u=t.schema)==null?void 0:u.fields)||[]).filter(h=>!h.schema.readOnly)}const Pu=kt.ZP.div`
167
- > div {
168
- margin-top: 10px;
169
- }
170
- `,Vs=(0,kt.ZP)(Eu)`
171
- ${(0,jt.Hu)("try-it")};
172
- ${({inputType:t})=>t==="password"?"padding-right: 40px;":""};
173
- ${({fullWidth:t})=>t?"width: 100%;":""}
174
- `;var ho=f(99913);function Qo(t,n){n===void 0&&(n=!1);var i=t.length,s=0,u="",c=0,h=16,m=0,p=0,y=0,k=0,I=0;function Q(ye,Ae){for(var we=0,Te=0;we<ye||!Ae;){var ke=t.charCodeAt(s);if(ke>=48&&ke<=57)Te=Te*16+ke-48;else if(ke>=65&&ke<=70)Te=Te*16+ke-65+10;else if(ke>=97&&ke<=102)Te=Te*16+ke-97+10;else break;s++,we++}return we<ye&&(Te=-1),Te}function W(ye){s=ye,u="",c=0,h=16,I=0}function $(){var ye=s;if(t.charCodeAt(s)===48)s++;else for(s++;s<t.length&&vo(t.charCodeAt(s));)s++;if(s<t.length&&t.charCodeAt(s)===46)if(s++,s<t.length&&vo(t.charCodeAt(s)))for(s++;s<t.length&&vo(t.charCodeAt(s));)s++;else return I=3,t.substring(ye,s);var Ae=s;if(s<t.length&&(t.charCodeAt(s)===69||t.charCodeAt(s)===101))if(s++,(s<t.length&&t.charCodeAt(s)===43||t.charCodeAt(s)===45)&&s++,s<t.length&&vo(t.charCodeAt(s))){for(s++;s<t.length&&vo(t.charCodeAt(s));)s++;Ae=s}else I=3;return t.substring(ye,Ae)}function ae(){for(var ye="",Ae=s;;){if(s>=i){ye+=t.substring(Ae,s),I=2;break}var we=t.charCodeAt(s);if(we===34){ye+=t.substring(Ae,s),s++;break}if(we===92){if(ye+=t.substring(Ae,s),s++,s>=i){I=2;break}var Te=t.charCodeAt(s++);switch(Te){case 34:ye+='"';break;case 92:ye+="\\";break;case 47:ye+="/";break;case 98:ye+="\b";break;case 102:ye+="\f";break;case 110:ye+=`
175
- `;break;case 114:ye+="\r";break;case 116:ye+=" ";break;case 117:var ke=Q(4,!0);ke>=0?ye+=String.fromCharCode(ke):I=4;break;default:I=5}Ae=s;continue}if(we>=0&&we<=31)if(Zo(we)){ye+=t.substring(Ae,s),I=2;break}else I=6;s++}return ye}function ue(){if(u="",I=0,c=s,p=m,k=y,s>=i)return c=i,h=17;var ye=t.charCodeAt(s);if(po(ye)){do s++,u+=String.fromCharCode(ye),ye=t.charCodeAt(s);while(po(ye));return h=15}if(Zo(ye))return s++,u+=String.fromCharCode(ye),ye===13&&t.charCodeAt(s)===10&&(s++,u+=`
176
- `),m++,y=s,h=14;switch(ye){case 123:return s++,h=1;case 125:return s++,h=2;case 91:return s++,h=3;case 93:return s++,h=4;case 58:return s++,h=6;case 44:return s++,h=5;case 34:return s++,u=ae(),h=10;case 47:var Ae=s-1;if(t.charCodeAt(s+1)===47){for(s+=2;s<i&&!Zo(t.charCodeAt(s));)s++;return u=t.substring(Ae,s),h=12}if(t.charCodeAt(s+1)===42){s+=2;for(var we=i-1,Te=!1;s<we;){var ke=t.charCodeAt(s);if(ke===42&&t.charCodeAt(s+1)===47){s+=2,Te=!0;break}s++,Zo(ke)&&(ke===13&&t.charCodeAt(s)===10&&s++,m++,y=s)}return Te||(s++,I=1),u=t.substring(Ae,s),h=13}return u+=String.fromCharCode(ye),s++,h=16;case 45:if(u+=String.fromCharCode(ye),s++,s===i||!vo(t.charCodeAt(s)))return h=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return u+=$(),h=11;default:for(;s<i&&oe(ye);)s++,ye=t.charCodeAt(s);if(c!==s){switch(u=t.substring(c,s),u){case"true":return h=8;case"false":return h=9;case"null":return h=7}return h=16}return u+=String.fromCharCode(ye),s++,h=16}}function oe(ye){if(po(ye)||Zo(ye))return!1;switch(ye){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function fe(){var ye;do ye=ue();while(ye>=12&&ye<=15);return ye}return{setPosition:W,getPosition:function(){return s},scan:n?fe:ue,getToken:function(){return h},getTokenValue:function(){return u},getTokenOffset:function(){return c},getTokenLength:function(){return s-c},getTokenStartLine:function(){return p},getTokenStartCharacter:function(){return c-k},getTokenError:function(){return I}}}function po(t){return t===32||t===9||t===11||t===12||t===160||t===5760||t>=8192&&t<=8203||t===8239||t===8287||t===12288||t===65279}function Zo(t){return t===10||t===13||t===8232||t===8233}function vo(t){return t>=48&&t<=57}function Yf(t,n,i){var s,u,c,h,m;if(n){for(h=n.offset,m=h+n.length,c=h;c>0&&!go(t,c-1);)c--;for(var p=m;p<t.length&&!go(t,p);)p++;u=t.substring(c,p),s=Xf(u,i)}else u=t,s=0,c=0,h=0,m=t.length;var y=$s(i,t),k=!1,I=0,Q;i.insertSpaces?Q=Wt(" ",i.tabSize||4):Q=" ";var W=Qo(u,!1),$=!1;function ae(){return y+Wt(Q,s+I)}function ue(){var Oe=W.scan();for(k=!1;Oe===15||Oe===14;)k=k||Oe===14,Oe=W.scan();return $=Oe===16||W.getTokenError()!==0,Oe}var oe=[];function fe(Oe,Be,rt){!$&&Be<m&&rt>h&&t.substring(Be,rt)!==Oe&&oe.push({offset:Be,length:rt-Be,content:Oe})}var ye=ue();if(ye!==17){var Ae=W.getTokenOffset()+c,we=Wt(Q,s);fe(we,c,Ae)}for(;ye!==17;){for(var Te=W.getTokenOffset()+W.getTokenLength()+c,ke=ue(),Ne="";!k&&(ke===12||ke===13);){var pe=W.getTokenOffset()+c;fe(" ",Te,pe),Te=W.getTokenOffset()+W.getTokenLength()+c,Ne=ke===12?ae():"",ke=ue()}if(ke===2)ye!==1&&(I--,Ne=ae());else if(ke===4)ye!==3&&(I--,Ne=ae());else{switch(ye){case 3:case 1:I++,Ne=ae();break;case 5:case 12:Ne=ae();break;case 13:k?Ne=ae():Ne=" ";break;case 6:Ne=" ";break;case 10:if(ke===6){Ne="";break}case 7:case 8:case 9:case 11:case 2:case 4:ke===12||ke===13?Ne=" ":ke!==5&&ke!==17&&($=!0);break;case 16:$=!0;break}k&&(ke===12||ke===13)&&(Ne=ae())}var Ie=W.getTokenOffset()+c;fe(Ne,Te,Ie),ye=ke}return oe}function Wt(t,n){for(var i="",s=0;s<n;s++)i+=t;return i}function Xf(t,n){for(var i=0,s=0,u=n.tabSize||4;i<t.length;){var c=t.charAt(i);if(c===" ")s++;else if(c===" ")s+=u;else break;i++}return Math.floor(s/u)}function $s(t,n){for(var i=0;i<n.length;i++){var s=n.charAt(i);if(s==="\r")return i+1<n.length&&n.charAt(i+1)===`
177
- `?`\r
178
- `:"\r";if(s===`
179
- `)return`
180
- `}return t&&t.eol||`
181
- `}function go(t,n){return`\r
182
- `.indexOf(t.charAt(n))!==-1}var Br;(function(t){t.DEFAULT={allowTrailingComma:!1}})(Br||(Br={}));function Ua(t,n){var i=[],s=new Object,u=void 0,c={value:{},offset:0,length:0,type:"object",parent:void 0},h=!1;function m(p,y,k,I){c.value=p,c.offset=y,c.length=k,c.type=I,c.colonOffset=void 0,u=c}try{mo(t,{onObjectBegin:function(p,y){if(n<=p)throw s;u=void 0,h=n>p,i.push("")},onObjectProperty:function(p,y,k){if(n<y||(m(p,y,k,"property"),i[i.length-1]=p,n<=y+k))throw s},onObjectEnd:function(p,y){if(n<=p)throw s;u=void 0,i.pop()},onArrayBegin:function(p,y){if(n<=p)throw s;u=void 0,i.push(0)},onArrayEnd:function(p,y){if(n<=p)throw s;u=void 0,i.pop()},onLiteralValue:function(p,y,k){if(n<y||(m(p,y,k,Mt(p)),n<=y+k))throw s},onSeparator:function(p,y,k){if(n<=y)throw s;if(p===":"&&u&&u.type==="property")u.colonOffset=y,h=!1,u=void 0;else if(p===","){var I=i[i.length-1];typeof I=="number"?i[i.length-1]=I+1:(h=!0,i[i.length-1]=""),u=void 0}}})}catch(p){if(p!==s)throw p}return{path:i,previousNode:u,isAtPropertyKey:h,matches:function(p){for(var y=0,k=0;y<p.length&&k<i.length;k++)if(p[y]===i[k]||p[y]==="*")y++;else if(p[y]!=="**")return!1;return y===p.length}}}function Gs(t,n,i){n===void 0&&(n=[]),i===void 0&&(i=Br.DEFAULT);var s=null,u=[],c=[];function h(p){Array.isArray(u)?u.push(p):s!==null&&(u[s]=p)}var m={onObjectBegin:function(){var p={};h(p),c.push(u),u=p,s=null},onObjectProperty:function(p){s=p},onObjectEnd:function(){u=c.pop()},onArrayBegin:function(){var p=[];h(p),c.push(u),u=p,s=null},onArrayEnd:function(){u=c.pop()},onLiteralValue:h,onError:function(p,y,k){n.push({error:p,offset:y,length:k})}};return mo(t,m,i),u[0]}function Lu(t,n,i){n===void 0&&(n=[]),i===void 0&&(i=Br.DEFAULT);var s={type:"array",offset:-1,length:-1,children:[],parent:void 0};function u(p){s.type==="property"&&(s.length=p-s.offset,s=s.parent)}function c(p){return s.children.push(p),p}var h={onObjectBegin:function(p){s=c({type:"object",offset:p,length:-1,parent:s,children:[]})},onObjectProperty:function(p,y,k){s=c({type:"property",offset:y,length:-1,parent:s,children:[]}),s.children.push({type:"string",value:p,offset:y,length:k,parent:s})},onObjectEnd:function(p,y){u(p+y),s.length=p+y-s.offset,s=s.parent,u(p+y)},onArrayBegin:function(p,y){s=c({type:"array",offset:p,length:-1,parent:s,children:[]})},onArrayEnd:function(p,y){s.length=p+y-s.offset,s=s.parent,u(p+y)},onLiteralValue:function(p,y,k){c({type:Mt(p),offset:y,length:k,parent:s,value:p}),u(y+k)},onSeparator:function(p,y,k){s.type==="property"&&(p===":"?s.colonOffset=y:p===","&&u(y))},onError:function(p,y,k){n.push({error:p,offset:y,length:k})}};mo(t,h,i);var m=s.children[0];return m&&delete m.parent,m}function Iu(t,n){if(t){for(var i=t,s=0,u=n;s<u.length;s++){var c=u[s];if(typeof c=="string"){if(i.type!=="object"||!Array.isArray(i.children))return;for(var h=!1,m=0,p=i.children;m<p.length;m++){var y=p[m];if(Array.isArray(y.children)&&y.children[0].value===c){i=y.children[1],h=!0;break}}if(!h)return}else{var k=c;if(i.type!=="array"||k<0||!Array.isArray(i.children)||k>=i.children.length)return;i=i.children[k]}}return i}}function Ks(t){if(!t.parent||!t.parent.children)return[];var n=Ks(t.parent);if(t.parent.type==="property"){var i=t.parent.children[0].value;n.push(i)}else if(t.parent.type==="array"){var s=t.parent.children.indexOf(t);s!==-1&&n.push(s)}return n}function qo(t){switch(t.type){case"array":return t.children.map(qo);case"object":for(var n=Object.create(null),i=0,s=t.children;i<s.length;i++){var u=s[i],c=u.children[1];c&&(n[u.children[0].value]=qo(c))}return n;case"null":case"string":case"number":case"boolean":return t.value;default:return}}function Mu(t,n,i){return i===void 0&&(i=!1),n>=t.offset&&n<t.offset+t.length||i&&n===t.offset+t.length}function Nu(t,n,i){if(i===void 0&&(i=!1),Mu(t,n,i)){var s=t.children;if(Array.isArray(s))for(var u=0;u<s.length&&s[u].offset<=n;u++){var c=Nu(s[u],n,i);if(c)return c}return t}}function mo(t,n,i){i===void 0&&(i=Br.DEFAULT);var s=Qo(t,!1);function u(pe){return pe?function(){return pe(s.getTokenOffset(),s.getTokenLength(),s.getTokenStartLine(),s.getTokenStartCharacter())}:function(){return!0}}function c(pe){return pe?function(Ie){return pe(Ie,s.getTokenOffset(),s.getTokenLength(),s.getTokenStartLine(),s.getTokenStartCharacter())}:function(){return!0}}var h=u(n.onObjectBegin),m=c(n.onObjectProperty),p=u(n.onObjectEnd),y=u(n.onArrayBegin),k=u(n.onArrayEnd),I=c(n.onLiteralValue),Q=c(n.onSeparator),W=u(n.onComment),$=c(n.onError),ae=i&&i.disallowComments,ue=i&&i.allowTrailingComma;function oe(){for(;;){var pe=s.scan();switch(s.getTokenError()){case 4:fe(14);break;case 5:fe(15);break;case 3:fe(13);break;case 1:ae||fe(11);break;case 2:fe(12);break;case 6:fe(16);break}switch(pe){case 12:case 13:ae?fe(10):W();break;case 16:fe(1);break;case 15:case 14:break;default:return pe}}}function fe(pe,Ie,Oe){if(Ie===void 0&&(Ie=[]),Oe===void 0&&(Oe=[]),$(pe),Ie.length+Oe.length>0)for(var Be=s.getToken();Be!==17;){if(Ie.indexOf(Be)!==-1){oe();break}else if(Oe.indexOf(Be)!==-1)break;Be=oe()}}function ye(pe){var Ie=s.getTokenValue();return pe?I(Ie):m(Ie),oe(),!0}function Ae(){switch(s.getToken()){case 11:var pe=s.getTokenValue(),Ie=Number(pe);isNaN(Ie)&&(fe(2),Ie=0),I(Ie);break;case 7:I(null);break;case 8:I(!0);break;case 9:I(!1);break;default:return!1}return oe(),!0}function we(){return s.getToken()!==10?(fe(3,[],[2,5]),!1):(ye(!1),s.getToken()===6?(Q(":"),oe(),Ne()||fe(4,[],[2,5])):fe(5,[],[2,5]),!0)}function Te(){h(),oe();for(var pe=!1;s.getToken()!==2&&s.getToken()!==17;){if(s.getToken()===5){if(pe||fe(4,[],[]),Q(","),oe(),s.getToken()===2&&ue)break}else pe&&fe(6,[],[]);we()||fe(4,[],[2,5]),pe=!0}return p(),s.getToken()!==2?fe(7,[2],[]):oe(),!0}function ke(){y(),oe();for(var pe=!1;s.getToken()!==4&&s.getToken()!==17;){if(s.getToken()===5){if(pe||fe(4,[],[]),Q(","),oe(),s.getToken()===4&&ue)break}else pe&&fe(6,[],[]);Ne()||fe(4,[],[4,5]),pe=!0}return k(),s.getToken()!==4?fe(8,[4],[]):oe(),!0}function Ne(){switch(s.getToken()){case 3:return ke();case 1:return Te();case 10:return ye(!0);default:return Ae()}}return oe(),s.getToken()===17?i.allowEmptyContent?!0:(fe(4,[],[]),!1):Ne()?(s.getToken()!==17&&fe(9,[],[]),!0):(fe(4,[],[]),!1)}function Du(t,n){var i=Qo(t),s=[],u,c=0,h;do switch(h=i.getPosition(),u=i.scan(),u){case 12:case 13:case 17:c!==h&&s.push(t.substring(c,h)),n!==void 0&&s.push(i.getTokenValue().replace(/[^\r\n]/g,n)),c=i.getPosition();break}while(u!==17);return s.join("")}function Mt(t){switch(typeof t){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(t){if(Array.isArray(t))return"array"}else return"null";return"object"}default:return"null"}}function Jf(t,n,i){return Qf(t,n,void 0,i)}function Qf(t,n,i,s){for(var u,c=n.slice(),h=[],m=parseTree(t,h),p=void 0,y=void 0;c.length>0&&(y=c.pop(),p=findNodeAtLocation(m,c),p===void 0&&i!==void 0);)typeof y=="string"?i=(u={},u[y]=i,u):i=[i];if(p)if(p.type==="object"&&typeof y=="string"&&Array.isArray(p.children)){var k=findNodeAtLocation(p,[y]);if(k!==void 0)if(i===void 0){if(!k.parent)throw new Error("Malformed AST");var I=p.children.indexOf(k.parent),Q=void 0,W=k.parent.offset+k.parent.length;if(I>0){var $=p.children[I-1];Q=$.offset+$.length}else if(Q=p.offset+1,p.children.length>1){var ae=p.children[1];W=ae.offset}return fn(t,{offset:Q,length:W-Q,content:""},s)}else return fn(t,{offset:k.offset,length:k.length,content:JSON.stringify(i)},s);else{if(i===void 0)return[];var ue=JSON.stringify(y)+": "+JSON.stringify(i),oe=s.getInsertionIndex?s.getInsertionIndex(p.children.map(function(pe){return pe.children[0].value})):p.children.length,fe=void 0;if(oe>0){var $=p.children[oe-1];fe={offset:$.offset+$.length,length:0,content:","+ue}}else p.children.length===0?fe={offset:p.offset+1,length:0,content:ue}:fe={offset:p.offset+1,length:0,content:ue+","};return fn(t,fe,s)}}else if(p.type==="array"&&typeof y=="number"&&Array.isArray(p.children)){var ye=y;if(ye===-1){var ue=""+JSON.stringify(i),fe=void 0;if(p.children.length===0)fe={offset:p.offset+1,length:0,content:ue};else{var $=p.children[p.children.length-1];fe={offset:$.offset+$.length,length:0,content:","+ue}}return fn(t,fe,s)}else if(i===void 0&&p.children.length>=0){var Ae=y,we=p.children[Ae],fe=void 0;if(p.children.length===1)fe={offset:p.offset+1,length:p.length-2,content:""};else if(p.children.length-1===Ae){var $=p.children[Ae-1],Te=$.offset+$.length,ke=p.offset+p.length;fe={offset:Te,length:ke-2-Te,content:""}}else fe={offset:we.offset,length:p.children[Ae+1].offset-we.offset,content:""};return fn(t,fe,s)}else if(i!==void 0){var fe=void 0,ue=""+JSON.stringify(i);if(!s.isArrayInsertion&&p.children.length>y){var Ne=p.children[y];fe={offset:Ne.offset,length:Ne.length,content:ue}}else if(p.children.length===0||y===0)fe={offset:p.offset+1,length:0,content:p.children.length===0?ue:ue+","};else{var oe=y>p.children.length?p.children.length:y,$=p.children[oe-1];fe={offset:$.offset+$.length,length:0,content:","+ue}}return fn(t,fe,s)}else throw new Error("Can not "+(i===void 0?"remove":s.isArrayInsertion?"insert":"modify")+" Array index "+ye+" as length is not sufficient")}else throw new Error("Can not add "+(typeof y!="number"?"index":"property")+" to parent of type "+p.type);else{if(i===void 0)throw new Error("Can not delete in empty document");return fn(t,{offset:m?m.offset:0,length:m?m.length:0,content:JSON.stringify(i)},s)}}function fn(t,n,i){if(!i.formattingOptions)return[n];var s=Fu(t,n),u=n.offset,c=n.offset+n.content.length;if(n.length===0||n.content.length===0){for(;u>0&&!isEOL(s,u-1);)u--;for(;c<s.length&&!isEOL(s,c);)c++}for(var h=format(s,{offset:u,length:c-u},i.formattingOptions),m=h.length-1;m>=0;m--){var p=h[m];s=Fu(s,p),u=Math.min(u,p.offset),c=Math.max(c,p.offset+p.length),c+=p.content.length-p.length}var y=t.length-(s.length-c)-u;return[{offset:u,length:y,content:s.substring(u,c)}]}function Fu(t,n){return t.substring(0,n.offset)+n.content+t.substring(n.offset+n.length)}function Ys(t,n){return`\r
183
- `.indexOf(t.charAt(n))!==-1}var yo=Qo,nr=Ua,Zf=Gs,vc=Lu,gc=Iu,za=Nu,e=Ks,r=qo,a=mo,o=Du;function l(t){switch(t){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"}function d(t,n,i){return Yf(t,n,i)}function g(t,n,i,s){return edit.setProperty(t,n,i,s)}function b(t,n){for(var i=n.length-1;i>=0;i--)t=edit.applyEdit(t,n[i]);return t}function w(t,n){if(t===n)return!0;if(t==null||n===null||n===void 0||typeof t!=typeof n||typeof t!="object"||Array.isArray(t)!==Array.isArray(n))return!1;var i,s;if(Array.isArray(t)){if(t.length!==n.length)return!1;for(i=0;i<t.length;i++)if(!w(t[i],n[i]))return!1}else{var u=[];for(s in t)u.push(s);u.sort();var c=[];for(s in n)c.push(s);if(c.sort(),!w(u,c))return!1;for(i=0;i<u.length;i++)if(!w(t[u[i]],n[u[i]]))return!1}return!0}function O(t){return typeof t=="number"}function U(t){return typeof t<"u"}function X(t){return typeof t=="boolean"}function he(t){return typeof t=="string"}var le;(function(t){function n(i){return typeof i=="string"}t.is=n})(le||(le={}));var xe;(function(t){function n(i){return typeof i=="string"}t.is=n})(xe||(xe={}));var Ce;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647;function n(i){return typeof i=="number"&&t.MIN_VALUE<=i&&i<=t.MAX_VALUE}t.is=n})(Ce||(Ce={}));var Le;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647;function n(i){return typeof i=="number"&&t.MIN_VALUE<=i&&i<=t.MAX_VALUE}t.is=n})(Le||(Le={}));var Me;(function(t){function n(s,u){return s===Number.MAX_VALUE&&(s=Le.MAX_VALUE),u===Number.MAX_VALUE&&(u=Le.MAX_VALUE),{line:s,character:u}}t.create=n;function i(s){var u=s;return me.objectLiteral(u)&&me.uinteger(u.line)&&me.uinteger(u.character)}t.is=i})(Me||(Me={}));var Ee;(function(t){function n(s,u,c,h){if(me.uinteger(s)&&me.uinteger(u)&&me.uinteger(c)&&me.uinteger(h))return{start:Me.create(s,u),end:Me.create(c,h)};if(Me.is(s)&&Me.is(u))return{start:s,end:u};throw new Error("Range#create called with invalid arguments[".concat(s,", ").concat(u,", ").concat(c,", ").concat(h,"]"))}t.create=n;function i(s){var u=s;return me.objectLiteral(u)&&Me.is(u.start)&&Me.is(u.end)}t.is=i})(Ee||(Ee={}));var De;(function(t){function n(s,u){return{uri:s,range:u}}t.create=n;function i(s){var u=s;return me.objectLiteral(u)&&Ee.is(u.range)&&(me.string(u.uri)||me.undefined(u.uri))}t.is=i})(De||(De={}));var We;(function(t){function n(s,u,c,h){return{targetUri:s,targetRange:u,targetSelectionRange:c,originSelectionRange:h}}t.create=n;function i(s){var u=s;return me.objectLiteral(u)&&Ee.is(u.targetRange)&&me.string(u.targetUri)&&Ee.is(u.targetSelectionRange)&&(Ee.is(u.originSelectionRange)||me.undefined(u.originSelectionRange))}t.is=i})(We||(We={}));var Ye;(function(t){function n(s,u,c,h){return{red:s,green:u,blue:c,alpha:h}}t.create=n;function i(s){var u=s;return me.objectLiteral(u)&&me.numberRange(u.red,0,1)&&me.numberRange(u.green,0,1)&&me.numberRange(u.blue,0,1)&&me.numberRange(u.alpha,0,1)}t.is=i})(Ye||(Ye={}));var Ke;(function(t){function n(s,u){return{range:s,color:u}}t.create=n;function i(s){var u=s;return me.objectLiteral(u)&&Ee.is(u.range)&&Ye.is(u.color)}t.is=i})(Ke||(Ke={}));var pt;(function(t){function n(s,u,c){return{label:s,textEdit:u,additionalTextEdits:c}}t.create=n;function i(s){var u=s;return me.objectLiteral(u)&&me.string(u.label)&&(me.undefined(u.textEdit)||Nt.is(u))&&(me.undefined(u.additionalTextEdits)||me.typedArray(u.additionalTextEdits,Nt.is))}t.is=i})(pt||(pt={}));var Tt;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(Tt||(Tt={}));var ar;(function(t){function n(s,u,c,h,m,p){var y={startLine:s,endLine:u};return me.defined(c)&&(y.startCharacter=c),me.defined(h)&&(y.endCharacter=h),me.defined(m)&&(y.kind=m),me.defined(p)&&(y.collapsedText=p),y}t.create=n;function i(s){var u=s;return me.objectLiteral(u)&&me.uinteger(u.startLine)&&me.uinteger(u.startLine)&&(me.undefined(u.startCharacter)||me.uinteger(u.startCharacter))&&(me.undefined(u.endCharacter)||me.uinteger(u.endCharacter))&&(me.undefined(u.kind)||me.string(u.kind))}t.is=i})(ar||(ar={}));var Ut;(function(t){function n(s,u){return{location:s,message:u}}t.create=n;function i(s){var u=s;return me.defined(u)&&De.is(u.location)&&me.string(u.message)}t.is=i})(Ut||(Ut={}));var Ze;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(Ze||(Ze={}));var Lr;(function(t){t.Unnecessary=1,t.Deprecated=2})(Lr||(Lr={}));var Zt;(function(t){function n(i){var s=i;return me.objectLiteral(s)&&me.string(s.href)}t.is=n})(Zt||(Zt={}));var Xt;(function(t){function n(s,u,c,h,m,p){var y={range:s,message:u};return me.defined(c)&&(y.severity=c),me.defined(h)&&(y.code=h),me.defined(m)&&(y.source=m),me.defined(p)&&(y.relatedInformation=p),y}t.create=n;function i(s){var u,c=s;return me.defined(c)&&Ee.is(c.range)&&me.string(c.message)&&(me.number(c.severity)||me.undefined(c.severity))&&(me.integer(c.code)||me.string(c.code)||me.undefined(c.code))&&(me.undefined(c.codeDescription)||me.string((u=c.codeDescription)===null||u===void 0?void 0:u.href))&&(me.string(c.source)||me.undefined(c.source))&&(me.undefined(c.relatedInformation)||me.typedArray(c.relatedInformation,Ut.is))}t.is=i})(Xt||(Xt={}));var Jt;(function(t){function n(s,u){for(var c=[],h=2;h<arguments.length;h++)c[h-2]=arguments[h];var m={title:s,command:u};return me.defined(c)&&c.length>0&&(m.arguments=c),m}t.create=n;function i(s){var u=s;return me.defined(u)&&me.string(u.title)&&me.string(u.command)}t.is=i})(Jt||(Jt={}));var Nt;(function(t){function n(c,h){return{range:c,newText:h}}t.replace=n;function i(c,h){return{range:{start:c,end:c},newText:h}}t.insert=i;function s(c){return{range:c,newText:""}}t.del=s;function u(c){var h=c;return me.objectLiteral(h)&&me.string(h.newText)&&Ee.is(h.range)}t.is=u})(Nt||(Nt={}));var zt;(function(t){function n(s,u,c){var h={label:s};return u!==void 0&&(h.needsConfirmation=u),c!==void 0&&(h.description=c),h}t.create=n;function i(s){var u=s;return me.objectLiteral(u)&&me.string(u.label)&&(me.boolean(u.needsConfirmation)||u.needsConfirmation===void 0)&&(me.string(u.description)||u.description===void 0)}t.is=i})(zt||(zt={}));var bt;(function(t){function n(i){var s=i;return me.string(s)}t.is=n})(bt||(bt={}));var qt;(function(t){function n(c,h,m){return{range:c,newText:h,annotationId:m}}t.replace=n;function i(c,h,m){return{range:{start:c,end:c},newText:h,annotationId:m}}t.insert=i;function s(c,h){return{range:c,newText:"",annotationId:h}}t.del=s;function u(c){var h=c;return Nt.is(h)&&(zt.is(h.annotationId)||bt.is(h.annotationId))}t.is=u})(qt||(qt={}));var Xn;(function(t){function n(s,u){return{textDocument:s,edits:u}}t.create=n;function i(s){var u=s;return me.defined(u)&&Jn.is(u.textDocument)&&Array.isArray(u.edits)}t.is=i})(Xn||(Xn={}));var cn;(function(t){function n(s,u,c){var h={kind:"create",uri:s};return u!==void 0&&(u.overwrite!==void 0||u.ignoreIfExists!==void 0)&&(h.options=u),c!==void 0&&(h.annotationId=c),h}t.create=n;function i(s){var u=s;return u&&u.kind==="create"&&me.string(u.uri)&&(u.options===void 0||(u.options.overwrite===void 0||me.boolean(u.options.overwrite))&&(u.options.ignoreIfExists===void 0||me.boolean(u.options.ignoreIfExists)))&&(u.annotationId===void 0||bt.is(u.annotationId))}t.is=i})(cn||(cn={}));var ir;(function(t){function n(s,u,c,h){var m={kind:"rename",oldUri:s,newUri:u};return c!==void 0&&(c.overwrite!==void 0||c.ignoreIfExists!==void 0)&&(m.options=c),h!==void 0&&(m.annotationId=h),m}t.create=n;function i(s){var u=s;return u&&u.kind==="rename"&&me.string(u.oldUri)&&me.string(u.newUri)&&(u.options===void 0||(u.options.overwrite===void 0||me.boolean(u.options.overwrite))&&(u.options.ignoreIfExists===void 0||me.boolean(u.options.ignoreIfExists)))&&(u.annotationId===void 0||bt.is(u.annotationId))}t.is=i})(ir||(ir={}));var $r;(function(t){function n(s,u,c){var h={kind:"delete",uri:s};return u!==void 0&&(u.recursive!==void 0||u.ignoreIfNotExists!==void 0)&&(h.options=u),c!==void 0&&(h.annotationId=c),h}t.create=n;function i(s){var u=s;return u&&u.kind==="delete"&&me.string(u.uri)&&(u.options===void 0||(u.options.recursive===void 0||me.boolean(u.options.recursive))&&(u.options.ignoreIfNotExists===void 0||me.boolean(u.options.ignoreIfNotExists)))&&(u.annotationId===void 0||bt.is(u.annotationId))}t.is=i})($r||($r={}));var or;(function(t){function n(i){var s=i;return s&&(s.changes!==void 0||s.documentChanges!==void 0)&&(s.documentChanges===void 0||s.documentChanges.every(function(u){return me.string(u.kind)?cn.is(u)||ir.is(u)||$r.is(u):Xn.is(u)}))}t.is=n})(or||(or={}));var bo=function(){function t(n,i){this.edits=n,this.changeAnnotations=i}return t.prototype.insert=function(n,i,s){var u,c;if(s===void 0?u=Nt.insert(n,i):bt.is(s)?(c=s,u=qt.insert(n,i,s)):(this.assertChangeAnnotations(this.changeAnnotations),c=this.changeAnnotations.manage(s),u=qt.insert(n,i,c)),this.edits.push(u),c!==void 0)return c},t.prototype.replace=function(n,i,s){var u,c;if(s===void 0?u=Nt.replace(n,i):bt.is(s)?(c=s,u=qt.replace(n,i,s)):(this.assertChangeAnnotations(this.changeAnnotations),c=this.changeAnnotations.manage(s),u=qt.replace(n,i,c)),this.edits.push(u),c!==void 0)return c},t.prototype.delete=function(n,i){var s,u;if(i===void 0?s=Nt.del(n):bt.is(i)?(u=i,s=qt.del(n,i)):(this.assertChangeAnnotations(this.changeAnnotations),u=this.changeAnnotations.manage(i),s=qt.del(n,u)),this.edits.push(s),u!==void 0)return u},t.prototype.add=function(n){this.edits.push(n)},t.prototype.all=function(){return this.edits},t.prototype.clear=function(){this.edits.splice(0,this.edits.length)},t.prototype.assertChangeAnnotations=function(n){if(n===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},t}(),Dn=function(){function t(n){this._annotations=n===void 0?Object.create(null):n,this._counter=0,this._size=0}return t.prototype.all=function(){return this._annotations},Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),t.prototype.manage=function(n,i){var s;if(bt.is(n)?s=n:(s=this.nextId(),i=n),this._annotations[s]!==void 0)throw new Error("Id ".concat(s," is already in use."));if(i===void 0)throw new Error("No annotation provided for id ".concat(s));return this._annotations[s]=i,this._size++,s},t.prototype.nextId=function(){return this._counter++,this._counter.toString()},t}(),xo=function(){function t(n){var i=this;this._textEditChanges=Object.create(null),n!==void 0?(this._workspaceEdit=n,n.documentChanges?(this._changeAnnotations=new Dn(n.changeAnnotations),n.changeAnnotations=this._changeAnnotations.all(),n.documentChanges.forEach(function(s){if(Xn.is(s)){var u=new bo(s.edits,i._changeAnnotations);i._textEditChanges[s.textDocument.uri]=u}})):n.changes&&Object.keys(n.changes).forEach(function(s){var u=new bo(n.changes[s]);i._textEditChanges[s]=u})):this._workspaceEdit={}}return Object.defineProperty(t.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),t.prototype.getTextEditChange=function(n){if(Jn.is(n)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:n.uri,version:n.version},s=this._textEditChanges[i.uri];if(!s){var u=[],c={textDocument:i,edits:u};this._workspaceEdit.documentChanges.push(c),s=new bo(u,this._changeAnnotations),this._textEditChanges[i.uri]=s}return s}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var s=this._textEditChanges[n];if(!s){var u=[];this._workspaceEdit.changes[n]=u,s=new bo(u),this._textEditChanges[n]=s}return s}},t.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Dn,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},t.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},t.prototype.createFile=function(n,i,s){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var u;zt.is(i)||bt.is(i)?u=i:s=i;var c,h;if(u===void 0?c=cn.create(n,s):(h=bt.is(u)?u:this._changeAnnotations.manage(u),c=cn.create(n,s,h)),this._workspaceEdit.documentChanges.push(c),h!==void 0)return h},t.prototype.renameFile=function(n,i,s,u){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var c;zt.is(s)||bt.is(s)?c=s:u=s;var h,m;if(c===void 0?h=ir.create(n,i,u):(m=bt.is(c)?c:this._changeAnnotations.manage(c),h=ir.create(n,i,u,m)),this._workspaceEdit.documentChanges.push(h),m!==void 0)return m},t.prototype.deleteFile=function(n,i,s){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var u;zt.is(i)||bt.is(i)?u=i:s=i;var c,h;if(u===void 0?c=$r.create(n,s):(h=bt.is(u)?u:this._changeAnnotations.manage(u),c=$r.create(n,s,h)),this._workspaceEdit.documentChanges.push(c),h!==void 0)return h},t}(),hi;(function(t){function n(s){return{uri:s}}t.create=n;function i(s){var u=s;return me.defined(u)&&me.string(u.uri)}t.is=i})(hi||(hi={}));var wr;(function(t){function n(s,u){return{uri:s,version:u}}t.create=n;function i(s){var u=s;return me.defined(u)&&me.string(u.uri)&&me.integer(u.version)}t.is=i})(wr||(wr={}));var Jn;(function(t){function n(s,u){return{uri:s,version:u}}t.create=n;function i(s){var u=s;return me.defined(u)&&me.string(u.uri)&&(u.version===null||me.integer(u.version))}t.is=i})(Jn||(Jn={}));var _a;(function(t){function n(s,u,c,h){return{uri:s,languageId:u,version:c,text:h}}t.create=n;function i(s){var u=s;return me.defined(u)&&me.string(u.uri)&&me.string(u.languageId)&&me.integer(u.version)&&me.string(u.text)}t.is=i})(_a||(_a={}));var ea;(function(t){t.PlainText="plaintext",t.Markdown="markdown";function n(i){var s=i;return s===t.PlainText||s===t.Markdown}t.is=n})(ea||(ea={}));var Xs;(function(t){function n(i){var s=i;return me.objectLiteral(i)&&ea.is(s.kind)&&me.string(s.value)}t.is=n})(Xs||(Xs={}));var An;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(An||(An={}));var Cr;(function(t){t.PlainText=1,t.Snippet=2})(Cr||(Cr={}));var mc;(function(t){t.Deprecated=1})(mc||(mc={}));var yc;(function(t){function n(s,u,c){return{newText:s,insert:u,replace:c}}t.create=n;function i(s){var u=s;return u&&me.string(u.newText)&&Ee.is(u.insert)&&Ee.is(u.replace)}t.is=i})(yc||(yc={}));var bc;(function(t){t.asIs=1,t.adjustIndentation=2})(bc||(bc={}));var xc;(function(t){function n(i){var s=i;return s&&(me.string(s.detail)||s.detail===void 0)&&(me.string(s.description)||s.description===void 0)}t.is=n})(xc||(xc={}));var qf;(function(t){function n(i){return{label:i}}t.create=n})(qf||(qf={}));var Sc;(function(t){function n(i,s){return{items:i||[],isIncomplete:!!s}}t.create=n})(Sc||(Sc={}));var Ru;(function(t){function n(s){return s.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=n;function i(s){var u=s;return me.string(u)||me.objectLiteral(u)&&me.string(u.language)&&me.string(u.value)}t.is=i})(Ru||(Ru={}));var wc;(function(t){function n(i){var s=i;return!!s&&me.objectLiteral(s)&&(Xs.is(s.contents)||Ru.is(s.contents)||me.typedArray(s.contents,Ru.is))&&(i.range===void 0||Ee.is(i.range))}t.is=n})(wc||(wc={}));var Cc;(function(t){function n(i,s){return s?{label:i,documentation:s}:{label:i}}t.create=n})(Cc||(Cc={}));var Ac;(function(t){function n(i,s){for(var u=[],c=2;c<arguments.length;c++)u[c-2]=arguments[c];var h={label:i};return me.defined(s)&&(h.documentation=s),me.defined(u)?h.parameters=u:h.parameters=[],h}t.create=n})(Ac||(Ac={}));var Oc;(function(t){t.Text=1,t.Read=2,t.Write=3})(Oc||(Oc={}));var Ec;(function(t){function n(i,s){var u={range:i};return me.number(s)&&(u.kind=s),u}t.create=n})(Ec||(Ec={}));var pi;(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(pi||(pi={}));var kc;(function(t){t.Deprecated=1})(kc||(kc={}));var Tc;(function(t){function n(i,s,u,c,h){var m={name:i,kind:s,location:{uri:c,range:u}};return h&&(m.containerName=h),m}t.create=n})(Tc||(Tc={}));var Pc;(function(t){function n(i,s,u,c){return c!==void 0?{name:i,kind:s,location:{uri:u,range:c}}:{name:i,kind:s,location:{uri:u}}}t.create=n})(Pc||(Pc={}));var Lc;(function(t){function n(s,u,c,h,m,p){var y={name:s,detail:u,kind:c,range:h,selectionRange:m};return p!==void 0&&(y.children=p),y}t.create=n;function i(s){var u=s;return u&&me.string(u.name)&&me.number(u.kind)&&Ee.is(u.range)&&Ee.is(u.selectionRange)&&(u.detail===void 0||me.string(u.detail))&&(u.deprecated===void 0||me.boolean(u.deprecated))&&(u.children===void 0||Array.isArray(u.children))&&(u.tags===void 0||Array.isArray(u.tags))}t.is=i})(Lc||(Lc={}));var Ic;(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(Ic||(Ic={}));var Bu;(function(t){t.Invoked=1,t.Automatic=2})(Bu||(Bu={}));var Mc;(function(t){function n(s,u,c){var h={diagnostics:s};return u!=null&&(h.only=u),c!=null&&(h.triggerKind=c),h}t.create=n;function i(s){var u=s;return me.defined(u)&&me.typedArray(u.diagnostics,Xt.is)&&(u.only===void 0||me.typedArray(u.only,me.string))&&(u.triggerKind===void 0||u.triggerKind===Bu.Invoked||u.triggerKind===Bu.Automatic)}t.is=i})(Mc||(Mc={}));var Nc;(function(t){function n(s,u,c){var h={title:s},m=!0;return typeof u=="string"?(m=!1,h.kind=u):Jt.is(u)?h.command=u:h.edit=u,m&&c!==void 0&&(h.kind=c),h}t.create=n;function i(s){var u=s;return u&&me.string(u.title)&&(u.diagnostics===void 0||me.typedArray(u.diagnostics,Xt.is))&&(u.kind===void 0||me.string(u.kind))&&(u.edit!==void 0||u.command!==void 0)&&(u.command===void 0||Jt.is(u.command))&&(u.isPreferred===void 0||me.boolean(u.isPreferred))&&(u.edit===void 0||or.is(u.edit))}t.is=i})(Nc||(Nc={}));var Dc;(function(t){function n(s,u){var c={range:s};return me.defined(u)&&(c.data=u),c}t.create=n;function i(s){var u=s;return me.defined(u)&&Ee.is(u.range)&&(me.undefined(u.command)||Jt.is(u.command))}t.is=i})(Dc||(Dc={}));var Fc;(function(t){function n(s,u){return{tabSize:s,insertSpaces:u}}t.create=n;function i(s){var u=s;return me.defined(u)&&me.uinteger(u.tabSize)&&me.boolean(u.insertSpaces)}t.is=i})(Fc||(Fc={}));var Rc;(function(t){function n(s,u,c){return{range:s,target:u,data:c}}t.create=n;function i(s){var u=s;return me.defined(u)&&Ee.is(u.range)&&(me.undefined(u.target)||me.string(u.target))}t.is=i})(Rc||(Rc={}));var ju;(function(t){function n(s,u){return{range:s,parent:u}}t.create=n;function i(s){var u=s;return me.objectLiteral(u)&&Ee.is(u.range)&&(u.parent===void 0||t.is(u.parent))}t.is=i})(ju||(ju={}));var Bc;(function(t){t.namespace="namespace",t.type="type",t.class="class",t.enum="enum",t.interface="interface",t.struct="struct",t.typeParameter="typeParameter",t.parameter="parameter",t.variable="variable",t.property="property",t.enumMember="enumMember",t.event="event",t.function="function",t.method="method",t.macro="macro",t.keyword="keyword",t.modifier="modifier",t.comment="comment",t.string="string",t.number="number",t.regexp="regexp",t.operator="operator",t.decorator="decorator"})(Bc||(Bc={}));var jc;(function(t){t.declaration="declaration",t.definition="definition",t.readonly="readonly",t.static="static",t.deprecated="deprecated",t.abstract="abstract",t.async="async",t.modification="modification",t.documentation="documentation",t.defaultLibrary="defaultLibrary"})(jc||(jc={}));var Wc;(function(t){function n(i){var s=i;return me.objectLiteral(s)&&(s.resultId===void 0||typeof s.resultId=="string")&&Array.isArray(s.data)&&(s.data.length===0||typeof s.data[0]=="number")}t.is=n})(Wc||(Wc={}));var Hc;(function(t){function n(s,u){return{range:s,text:u}}t.create=n;function i(s){var u=s;return u!=null&&Ee.is(u.range)&&me.string(u.text)}t.is=i})(Hc||(Hc={}));var Uc;(function(t){function n(s,u,c){return{range:s,variableName:u,caseSensitiveLookup:c}}t.create=n;function i(s){var u=s;return u!=null&&Ee.is(u.range)&&me.boolean(u.caseSensitiveLookup)&&(me.string(u.variableName)||u.variableName===void 0)}t.is=i})(Uc||(Uc={}));var zc;(function(t){function n(s,u){return{range:s,expression:u}}t.create=n;function i(s){var u=s;return u!=null&&Ee.is(u.range)&&(me.string(u.expression)||u.expression===void 0)}t.is=i})(zc||(zc={}));var _c;(function(t){function n(s,u){return{frameId:s,stoppedLocation:u}}t.create=n;function i(s){var u=s;return me.defined(u)&&Ee.is(s.stoppedLocation)}t.is=i})(_c||(_c={}));var ec;(function(t){t.Type=1,t.Parameter=2;function n(i){return i===1||i===2}t.is=n})(ec||(ec={}));var tc;(function(t){function n(s){return{value:s}}t.create=n;function i(s){var u=s;return me.objectLiteral(u)&&(u.tooltip===void 0||me.string(u.tooltip)||Xs.is(u.tooltip))&&(u.location===void 0||De.is(u.location))&&(u.command===void 0||Jt.is(u.command))}t.is=i})(tc||(tc={}));var Vc;(function(t){function n(s,u,c){var h={position:s,label:u};return c!==void 0&&(h.kind=c),h}t.create=n;function i(s){var u=s;return me.objectLiteral(u)&&Me.is(u.position)&&(me.string(u.label)||me.typedArray(u.label,tc.is))&&(u.kind===void 0||ec.is(u.kind))&&u.textEdits===void 0||me.typedArray(u.textEdits,Nt.is)&&(u.tooltip===void 0||me.string(u.tooltip)||Xs.is(u.tooltip))&&(u.paddingLeft===void 0||me.boolean(u.paddingLeft))&&(u.paddingRight===void 0||me.boolean(u.paddingRight))}t.is=i})(Vc||(Vc={}));var $c;(function(t){function n(i){var s=i;return me.objectLiteral(s)&&xe.is(s.uri)&&me.string(s.name)}t.is=n})($c||($c={}));var yv=null,Gc;(function(t){function n(c,h,m,p){return new Ud(c,h,m,p)}t.create=n;function i(c){var h=c;return!!(me.defined(h)&&me.string(h.uri)&&(me.undefined(h.languageId)||me.string(h.languageId))&&me.uinteger(h.lineCount)&&me.func(h.getText)&&me.func(h.positionAt)&&me.func(h.offsetAt))}t.is=i;function s(c,h){for(var m=c.getText(),p=u(h,function($,ae){var ue=$.range.start.line-ae.range.start.line;return ue===0?$.range.start.character-ae.range.start.character:ue}),y=m.length,k=p.length-1;k>=0;k--){var I=p[k],Q=c.offsetAt(I.range.start),W=c.offsetAt(I.range.end);if(W<=y)m=m.substring(0,Q)+I.newText+m.substring(W,m.length);else throw new Error("Overlapping edit");y=Q}return m}t.applyEdits=s;function u(c,h){if(c.length<=1)return c;var m=c.length/2|0,p=c.slice(0,m),y=c.slice(m);u(p,h),u(y,h);for(var k=0,I=0,Q=0;k<p.length&&I<y.length;){var W=h(p[k],y[I]);W<=0?c[Q++]=p[k++]:c[Q++]=y[I++]}for(;k<p.length;)c[Q++]=p[k++];for(;I<y.length;)c[Q++]=y[I++];return c}})(Gc||(Gc={}));var Ud=function(){function t(n,i,s,u){this._uri=n,this._languageId=i,this._version=s,this._content=u,this._lineOffsets=void 0}return Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),t.prototype.getText=function(n){if(n){var i=this.offsetAt(n.start),s=this.offsetAt(n.end);return this._content.substring(i,s)}return this._content},t.prototype.update=function(n,i){this._content=n.text,this._version=i,this._lineOffsets=void 0},t.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var n=[],i=this._content,s=!0,u=0;u<i.length;u++){s&&(n.push(u),s=!1);var c=i.charAt(u);s=c==="\r"||c===`
184
- `,c==="\r"&&u+1<i.length&&i.charAt(u+1)===`
185
- `&&u++}s&&i.length>0&&n.push(i.length),this._lineOffsets=n}return this._lineOffsets},t.prototype.positionAt=function(n){n=Math.max(Math.min(n,this._content.length),0);var i=this.getLineOffsets(),s=0,u=i.length;if(u===0)return Me.create(0,n);for(;s<u;){var c=Math.floor((s+u)/2);i[c]>n?u=c:s=c+1}var h=s-1;return Me.create(h,n-i[h])},t.prototype.offsetAt=function(n){var i=this.getLineOffsets();if(n.line>=i.length)return this._content.length;if(n.line<0)return 0;var s=i[n.line],u=n.line+1<i.length?i[n.line+1]:this._content.length;return Math.max(Math.min(s+n.character,u),s)},Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),t}(),me;(function(t){var n=Object.prototype.toString;function i(W){return typeof W<"u"}t.defined=i;function s(W){return typeof W>"u"}t.undefined=s;function u(W){return W===!0||W===!1}t.boolean=u;function c(W){return n.call(W)==="[object String]"}t.string=c;function h(W){return n.call(W)==="[object Number]"}t.number=h;function m(W,$,ae){return n.call(W)==="[object Number]"&&$<=W&&W<=ae}t.numberRange=m;function p(W){return n.call(W)==="[object Number]"&&-2147483648<=W&&W<=2147483647}t.integer=p;function y(W){return n.call(W)==="[object Number]"&&0<=W&&W<=2147483647}t.uinteger=y;function k(W){return n.call(W)==="[object Function]"}t.func=k;function I(W){return W!==null&&typeof W=="object"}t.objectLiteral=I;function Q(W,$){return Array.isArray(W)&&W.every($)}t.typedArray=Q})(me||(me={}));var zd=function(t,n,i){if(i||arguments.length===2)for(var s=0,u=n.length,c;s<u;s++)(c||!(s in n))&&(c||(c=Array.prototype.slice.call(n,0,s)),c[s]=n[s]);return t.concat(c||Array.prototype.slice.call(n))},Kc=function(){function t(n,i,s,u){this._uri=n,this._languageId=i,this._version=s,this._content=u,this._lineOffsets=void 0}return Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),t.prototype.getText=function(n){if(n){var i=this.offsetAt(n.start),s=this.offsetAt(n.end);return this._content.substring(i,s)}return this._content},t.prototype.update=function(n,i){for(var s=0,u=n;s<u.length;s++){var c=u[s];if(t.isIncremental(c)){var h=Xc(c.range),m=this.offsetAt(h.start),p=this.offsetAt(h.end);this._content=this._content.substring(0,m)+c.text+this._content.substring(p,this._content.length);var y=Math.max(h.start.line,0),k=Math.max(h.end.line,0),I=this._lineOffsets,Q=Yc(c.text,!1,m);if(k-y===Q.length)for(var W=0,$=Q.length;W<$;W++)I[W+y+1]=Q[W];else Q.length<1e4?I.splice.apply(I,zd([y+1,k-y],Q,!1)):this._lineOffsets=I=I.slice(0,y+1).concat(Q,I.slice(k+1));var ae=c.text.length-(p-m);if(ae!==0)for(var W=y+1+Q.length,$=I.length;W<$;W++)I[W]=I[W]+ae}else if(t.isFull(c))this._content=c.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received")}this._version=i},t.prototype.getLineOffsets=function(){return this._lineOffsets===void 0&&(this._lineOffsets=Yc(this._content,!0)),this._lineOffsets},t.prototype.positionAt=function(n){n=Math.max(Math.min(n,this._content.length),0);var i=this.getLineOffsets(),s=0,u=i.length;if(u===0)return{line:0,character:n};for(;s<u;){var c=Math.floor((s+u)/2);i[c]>n?u=c:s=c+1}var h=s-1;return{line:h,character:n-i[h]}},t.prototype.offsetAt=function(n){var i=this.getLineOffsets();if(n.line>=i.length)return this._content.length;if(n.line<0)return 0;var s=i[n.line],u=n.line+1<i.length?i[n.line+1]:this._content.length;return Math.max(Math.min(s+n.character,u),s)},Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),t.isIncremental=function(n){var i=n;return i!=null&&typeof i.text=="string"&&i.range!==void 0&&(i.rangeLength===void 0||typeof i.rangeLength=="number")},t.isFull=function(n){var i=n;return i!=null&&typeof i.text=="string"&&i.range===void 0&&i.rangeLength===void 0},t}(),Wu;(function(t){function n(u,c,h,m){return new Kc(u,c,h,m)}t.create=n;function i(u,c,h){if(u instanceof Kc)return u.update(c,h),u;throw new Error("TextDocument.update: document must be created by TextDocument.create")}t.update=i;function s(u,c){for(var h=u.getText(),m=rc(c.map(_d),function($,ae){var ue=$.range.start.line-ae.range.start.line;return ue===0?$.range.start.character-ae.range.start.character:ue}),p=0,y=[],k=0,I=m;k<I.length;k++){var Q=I[k],W=u.offsetAt(Q.range.start);if(W<p)throw new Error("Overlapping edit");W>p&&y.push(h.substring(p,W)),Q.newText.length&&y.push(Q.newText),p=u.offsetAt(Q.range.end)}return y.push(h.substr(p)),y.join("")}t.applyEdits=s})(Wu||(Wu={}));function rc(t,n){if(t.length<=1)return t;var i=t.length/2|0,s=t.slice(0,i),u=t.slice(i);rc(s,n),rc(u,n);for(var c=0,h=0,m=0;c<s.length&&h<u.length;){var p=n(s[c],u[h]);p<=0?t[m++]=s[c++]:t[m++]=u[h++]}for(;c<s.length;)t[m++]=s[c++];for(;h<u.length;)t[m++]=u[h++];return t}function Yc(t,n,i){i===void 0&&(i=0);for(var s=n?[i]:[],u=0;u<t.length;u++){var c=t.charCodeAt(u);(c===13||c===10)&&(c===13&&u+1<t.length&&t.charCodeAt(u+1)===10&&u++,s.push(i+u+1))}return s}function Xc(t){var n=t.start,i=t.end;return n.line>i.line||n.line===i.line&&n.character>i.character?{start:i,end:n}:t}function _d(t){var n=Xc(t.range);return n!==t.range?{newText:t.newText,range:n}:t}var Pt;(function(t){t[t.Undefined=0]="Undefined",t[t.EnumValueMismatch=1]="EnumValueMismatch",t[t.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",t[t.UnexpectedEndOfString=258]="UnexpectedEndOfString",t[t.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",t[t.InvalidUnicode=260]="InvalidUnicode",t[t.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",t[t.InvalidCharacter=262]="InvalidCharacter",t[t.PropertyExpected=513]="PropertyExpected",t[t.CommaExpected=514]="CommaExpected",t[t.ColonExpected=515]="ColonExpected",t[t.ValueExpected=516]="ValueExpected",t[t.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",t[t.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",t[t.TrailingComma=519]="TrailingComma",t[t.DuplicateKey=520]="DuplicateKey",t[t.CommentNotPermitted=521]="CommentNotPermitted",t[t.SchemaResolveError=768]="SchemaResolveError"})(Pt||(Pt={}));var Jc;(function(t){t.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[ea.Markdown,ea.PlainText],commitCharactersSupport:!0}}}}})(Jc||(Jc={}));var ta=function(){var t=function(n,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var c in u)u.hasOwnProperty(c)&&(s[c]=u[c])},t(n,i)};return function(n,i){t(n,i);function s(){this.constructor=n}n.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}}(),Vd={"color-hex":{errorMessage:"Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA.",pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:"String is not a RFC3339 date-time.",pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:"String is not a RFC3339 date.",pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:"String is not a RFC3339 time.",pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:"String is not an e-mail address.",pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}},ra=function(){function t(n,i,s){this.offset=i,this.length=s,this.parent=n}return Object.defineProperty(t.prototype,"children",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},t}(),$d=function(t){ta(n,t);function n(i,s){var u=t.call(this,i,s)||this;return u.type="null",u.value=null,u}return n}(ra),Qc=function(t){ta(n,t);function n(i,s,u){var c=t.call(this,i,u)||this;return c.type="boolean",c.value=s,c}return n}(ra),Gd=function(t){ta(n,t);function n(i,s){var u=t.call(this,i,s)||this;return u.type="array",u.items=[],u}return Object.defineProperty(n.prototype,"children",{get:function(){return this.items},enumerable:!0,configurable:!0}),n}(ra),Kd=function(t){ta(n,t);function n(i,s){var u=t.call(this,i,s)||this;return u.type="number",u.isInteger=!0,u.value=Number.NaN,u}return n}(ra),Zc=function(t){ta(n,t);function n(i,s,u){var c=t.call(this,i,s,u)||this;return c.type="string",c.value="",c}return n}(ra),Yd=function(t){ta(n,t);function n(i,s){var u=t.call(this,i,s)||this;return u.type="property",u.colonOffset=-1,u}return Object.defineProperty(n.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!0,configurable:!0}),n}(ra),Xd=function(t){ta(n,t);function n(i,s){var u=t.call(this,i,s)||this;return u.type="object",u.properties=[],u}return Object.defineProperty(n.prototype,"children",{get:function(){return this.properties},enumerable:!0,configurable:!0}),n}(ra);function dn(t){return X(t)?t?{}:{not:{}}:t}var qc;(function(t){t[t.Key=0]="Key",t[t.Enum=1]="Enum"})(qc||(qc={}));var Jd=function(){function t(n,i){n===void 0&&(n=-1),i===void 0&&(i=null),this.focusOffset=n,this.exclude=i,this.schemas=[]}return t.prototype.add=function(n){this.schemas.push(n)},t.prototype.merge=function(n){var i;(i=this.schemas).push.apply(i,n.schemas)},t.prototype.include=function(n){return(this.focusOffset===-1||ed(n,this.focusOffset))&&n!==this.exclude},t.prototype.newSub=function(){return new t(-1,this.exclude)},t}(),nc=function(){function t(){}return Object.defineProperty(t.prototype,"schemas",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.add=function(n){},t.prototype.merge=function(n){},t.prototype.include=function(n){return!0},t.prototype.newSub=function(){return this},t.instance=new t,t}(),hn=function(){function t(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=null}return t.prototype.hasProblems=function(){return!!this.problems.length},t.prototype.mergeAll=function(n){for(var i=0,s=n;i<s.length;i++){var u=s[i];this.merge(u)}},t.prototype.merge=function(n){this.problems=this.problems.concat(n.problems)},t.prototype.mergeEnumValues=function(n){if(!this.enumValueMatch&&!n.enumValueMatch&&this.enumValues&&n.enumValues){this.enumValues=this.enumValues.concat(n.enumValues);for(var i=0,s=this.problems;i<s.length;i++){var u=s[i];u.code===Pt.EnumValueMismatch&&(u.message="Value is not accepted. Valid values: "+this.enumValues.map(function(c){return JSON.stringify(c)}).join(", ")+".")}}},t.prototype.mergePropertyMatch=function(n){this.merge(n),this.propertiesMatches++,(n.enumValueMatch||!n.hasProblems()&&n.propertiesMatches)&&this.propertiesValueMatches++,n.enumValueMatch&&n.enumValues&&n.enumValues.length===1&&this.primaryValueMatches++},t.prototype.compare=function(n){var i=this.hasProblems();return i!==n.hasProblems()?i?-1:1:this.enumValueMatch!==n.enumValueMatch?n.enumValueMatch?-1:1:this.primaryValueMatches!==n.primaryValueMatches?this.primaryValueMatches-n.primaryValueMatches:this.propertiesValueMatches!==n.propertiesValueMatches?this.propertiesValueMatches-n.propertiesValueMatches:this.propertiesMatches-n.propertiesMatches},t}();function Qd(t,n){return n===void 0&&(n=[]),new td(t,n,[])}function So(t){return r(t)}function ic(t){return e(t)}function ed(t,n,i){return i===void 0&&(i=!1),n>=t.offset&&n<t.offset+t.length||i&&n===t.offset+t.length}var td=function(){function t(n,i,s){i===void 0&&(i=[]),s===void 0&&(s=[]),this.root=n,this.syntaxErrors=i,this.comments=s}return t.prototype.getNodeFromOffset=function(n,i){if(i===void 0&&(i=!1),this.root)return za(this.root,n,i)},t.prototype.visit=function(n){if(this.root){var i=function(s){var u=n(s),c=s.children;if(Array.isArray(c))for(var h=0;h<c.length&&u;h++)u=i(c[h]);return u};i(this.root)}},t.prototype.validate=function(n,i){if(this.root&&i){var s=new hn;return jr(this.root,i,s,nc.instance),s.problems.map(function(u){var c=Ee.create(n.positionAt(u.location.offset),n.positionAt(u.location.offset+u.location.length));return Xt.create(c,u.message,u.severity,u.code)})}return null},t.prototype.getMatchingSchemas=function(n,i,s){i===void 0&&(i=-1),s===void 0&&(s=null);var u=new Jd(i,s);return this.root&&n&&jr(this.root,n,new hn,u),u.schemas},t}();function jr(t,n,i,s){if(!t||!s.include(t))return;switch(t.type){case"object":p(t,n,i,s);break;case"array":m(t,n,i,s);break;case"string":h(t,n,i,s);break;case"number":c(t,n,i,s);break;case"property":return jr(t.valueNode,n,i,s)}u(),s.add({node:t,schema:n});function u(){function y(Be){return t.type===Be||Be==="integer"&&t.type==="number"&&t.isInteger||n.nullable&&t.value===null}if(Array.isArray(n.type)?n.type.some(y)||i.problems.push({location:{offset:t.offset,length:t.length},severity:Ze.Warning,message:n.errorMessage||"Incorrect type. Expected one of "+n.type.join(", ")+"."}):n.type&&(y(n.type)||i.problems.push({location:{offset:t.offset,length:t.length},severity:Ze.Warning,message:n.errorMessage||'Incorrect type. Expected "'+n.type+'".'})),Array.isArray(n.allOf))for(var k=0,I=n.allOf;k<I.length;k++){var Q=I[k];jr(t,dn(Q),i,s)}var W=dn(n.not);if(W){var $=new hn,ae=s.newSub();jr(t,W,$,ae),$.hasProblems()||i.problems.push({location:{offset:t.offset,length:t.length},severity:Ze.Warning,message:"Matches a schema that is not allowed."});for(var ue=0,oe=ae.schemas;ue<oe.length;ue++){var fe=oe[ue];fe.inverted=!fe.inverted,s.add(fe)}}var ye=function(Be,rt){for(var Lt=[],vt=null,Wr=0,Zn=Be;Wr<Zn.length;Wr++){var Bi=Zn[Wr],qn=dn(Bi),Ir=new hn,Yt=s.newSub();if(jr(t,qn,Ir,Yt),Ir.hasProblems()||Lt.push(qn),!vt)vt={schema:qn,validationResult:Ir,matchingSchemas:Yt};else if(!rt&&!Ir.hasProblems()&&!vt.validationResult.hasProblems())vt.matchingSchemas.merge(Yt),vt.validationResult.propertiesMatches+=Ir.propertiesMatches,vt.validationResult.propertiesValueMatches+=Ir.propertiesValueMatches;else{var vr=Ir.compare(vt.validationResult);vr>0?vt={schema:qn,validationResult:Ir,matchingSchemas:Yt}:vr===0&&(vt.matchingSchemas.merge(Yt),vt.validationResult.mergeEnumValues(Ir))}}return Lt.length>1&&rt&&i.problems.push({location:{offset:t.offset,length:1},severity:Ze.Warning,message:"Matches multiple schemas when only one must validate."}),vt!==null&&(i.merge(vt.validationResult),i.propertiesMatches+=vt.validationResult.propertiesMatches,i.propertiesValueMatches+=vt.validationResult.propertiesValueMatches,s.merge(vt.matchingSchemas)),Lt.length};Array.isArray(n.anyOf)&&ye(n.anyOf,!1),Array.isArray(n.oneOf)&&ye(n.oneOf,!0);var Ae=function(Be){var rt=new hn,Lt=s.newSub();jr(t,dn(Be),rt,Lt),i.merge(rt),i.propertiesMatches+=rt.propertiesMatches,i.propertiesValueMatches+=rt.propertiesValueMatches,s.merge(Lt)},we=function(Be,rt,Lt){var vt=dn(Be),Wr=new hn,Zn=s.newSub();jr(t,vt,Wr,Zn),s.merge(Zn),Wr.hasProblems()?Lt&&Ae(Lt):rt&&Ae(rt)},Te=dn(n.if);if(Te&&we(Te,dn(n.then),dn(n.else)),Array.isArray(n.enum)){for(var ke=So(t),Ne=!1,pe=0,Ie=n.enum;pe<Ie.length;pe++){var Oe=Ie[pe];if(w(ke,Oe)){Ne=!0;break}}i.enumValues=n.enum,i.enumValueMatch=Ne,Ne||i.problems.push({location:{offset:t.offset,length:t.length},severity:Ze.Warning,code:Pt.EnumValueMismatch,message:n.errorMessage||"Value is not accepted. Valid values: "+n.enum.map(function(Be){return JSON.stringify(Be)}).join(", ")+"."})}if(U(n.const)){var ke=So(t);w(ke,n.const)?i.enumValueMatch=!0:(i.problems.push({location:{offset:t.offset,length:t.length},severity:Ze.Warning,code:Pt.EnumValueMismatch,message:n.errorMessage||"Value must be "+JSON.stringify(n.const)+"."}),i.enumValueMatch=!1),i.enumValues=[n.const]}n.deprecationMessage&&t.parent&&i.problems.push({location:{offset:t.parent.offset,length:t.parent.length},severity:Ze.Warning,message:n.deprecationMessage})}function c(y,k,I,Q){var W=y.value;O(k.multipleOf)&&W%k.multipleOf!==0&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ze.Warning,message:"Value is not divisible by "+k.multipleOf+"."});function $(Ae,we){if(O(we))return we;if(X(we)&&we)return Ae}function ae(Ae,we){if(!X(we)||!we)return Ae}var ue=$(k.minimum,k.exclusiveMinimum);O(ue)&&W<=ue&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ze.Warning,message:"Value is below the exclusive minimum of "+ue+"."});var oe=$(k.maximum,k.exclusiveMaximum);O(oe)&&W>=oe&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ze.Warning,message:"Value is above the exclusive maximum of "+oe+"."});var fe=ae(k.minimum,k.exclusiveMinimum);O(fe)&&W<fe&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ze.Warning,message:"Value is below the minimum of "+fe+"."});var ye=ae(k.maximum,k.exclusiveMaximum);O(ye)&&W>ye&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ze.Warning,message:"Value is above the maximum of "+ye+"."})}function h(y,k,I,Q){if(O(k.minLength)&&y.value.length<k.minLength&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ze.Warning,message:"String is shorter than the minimum length of "+k.minLength+"."}),O(k.maxLength)&&y.value.length>k.maxLength&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ze.Warning,message:"String is longer than the maximum length of "+k.maxLength+"."}),he(k.pattern)){var W=new RegExp(k.pattern);W.test(y.value)||I.problems.push({location:{offset:y.offset,length:y.length},severity:Ze.Warning,message:k.patternErrorMessage||k.errorMessage||'String does not match the pattern of "'+k.pattern+'".'})}if(k.format)switch(k.format){case"uri":case"uri-reference":{var $=void 0;if(!y.value)$="URI expected.";else{var ae=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(y.value);ae?!ae[2]&&k.format==="uri"&&($="URI with a scheme is expected."):$="URI is expected."}$&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ze.Warning,message:k.patternErrorMessage||k.errorMessage||"String is not a URI: "+$})}break;case"color-hex":case"date-time":case"date":case"time":case"email":var ue=Vd[k.format];(!y.value||!ue.pattern.exec(y.value))&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ze.Warning,message:k.patternErrorMessage||k.errorMessage||ue.errorMessage});break;default:}}function m(y,k,I,Q){if(Array.isArray(k.items)){for(var W=k.items,$=0;$<W.length;$++){var ae=W[$],ue=dn(ae),oe=new hn,fe=y.items[$];fe?(jr(fe,ue,oe,Q),I.mergePropertyMatch(oe)):y.items.length>=W.length&&I.propertiesValueMatches++}if(y.items.length>W.length)if(typeof k.additionalItems=="object")for(var ye=W.length;ye<y.items.length;ye++){var oe=new hn;jr(y.items[ye],k.additionalItems,oe,Q),I.mergePropertyMatch(oe)}else k.additionalItems===!1&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ze.Warning,message:"Array has too many items according to schema. Expected "+W.length+" or fewer."})}else{var Ae=dn(k.items);if(Ae)for(var we=0,Te=y.items;we<Te.length;we++){var fe=Te[we],oe=new hn;jr(fe,Ae,oe,Q),I.mergePropertyMatch(oe)}}var ke=dn(k.contains);if(ke){var Ne=y.items.some(function(Oe){var Be=new hn;return jr(Oe,ke,Be,nc.instance),!Be.hasProblems()});Ne||I.problems.push({location:{offset:y.offset,length:y.length},severity:Ze.Warning,message:k.errorMessage||"Array does not contain required item."})}if(O(k.minItems)&&y.items.length<k.minItems&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ze.Warning,message:"Array has too few items. Expected "+k.minItems+" or more."}),O(k.maxItems)&&y.items.length>k.maxItems&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ze.Warning,message:"Array has too many items. Expected "+k.maxItems+" or fewer."}),k.uniqueItems===!0){var pe=So(y),Ie=pe.some(function(Oe,Be){return Be!==pe.lastIndexOf(Oe)});Ie&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ze.Warning,message:"Array has duplicate items."})}}function p(y,k,I,Q){for(var W=Object.create(null),$=[],ae=0,ue=y.properties;ae<ue.length;ae++){var oe=ue[ae],fe=oe.keyNode.value;W[fe]=oe.valueNode,$.push(fe)}if(Array.isArray(k.required))for(var ye=0,Ae=k.required;ye<Ae.length;ye++){var we=Ae[ye];if(!W[we]){var Te=y.parent&&y.parent.type==="property"&&y.parent.keyNode,ke=Te?{offset:Te.offset,length:Te.length}:{offset:y.offset,length:1};I.problems.push({location:ke,severity:Ze.Warning,message:'Missing property "'+we+'".'})}}var Ne=function(qs){for(var ia=$.indexOf(qs);ia>=0;)$.splice(ia,1),ia=$.indexOf(qs)};if(k.properties)for(var pe=0,Ie=Object.keys(k.properties);pe<Ie.length;pe++){var we=Ie[pe];Ne(we);var Oe=k.properties[we],Be=W[we];if(Be)if(X(Oe))if(Oe)I.propertiesMatches++,I.propertiesValueMatches++;else{var oe=Be.parent;I.problems.push({location:{offset:oe.keyNode.offset,length:oe.keyNode.length},severity:Ze.Warning,message:k.errorMessage||"Property "+we+" is not allowed."})}else{var rt=new hn;jr(Be,Oe,rt,Q),I.mergePropertyMatch(rt)}}if(k.patternProperties)for(var Lt=0,vt=Object.keys(k.patternProperties);Lt<vt.length;Lt++)for(var Wr=vt[Lt],Zn=new RegExp(Wr),Bi=0,qn=$.slice(0);Bi<qn.length;Bi++){var we=qn[Bi];if(Zn.test(we)){Ne(we);var Be=W[we];if(Be){var Oe=k.patternProperties[Wr];if(X(Oe))if(Oe)I.propertiesMatches++,I.propertiesValueMatches++;else{var oe=Be.parent;I.problems.push({location:{offset:oe.keyNode.offset,length:oe.keyNode.length},severity:Ze.Warning,message:k.errorMessage||"Property "+we+" is not allowed."})}else{var rt=new hn;jr(Be,Oe,rt,Q),I.mergePropertyMatch(rt)}}}}if(typeof k.additionalProperties=="object")for(var Ir=0,Yt=$;Ir<Yt.length;Ir++){var we=Yt[Ir],Be=W[we];if(Be){var rt=new hn;jr(Be,k.additionalProperties,rt,Q),I.mergePropertyMatch(rt)}}else if(k.additionalProperties===!1&&$.length>0)for(var vr=0,en=$;vr<en.length;vr++){var we=en[vr],Be=W[we];if(Be){var oe=Be.parent;I.problems.push({location:{offset:oe.keyNode.offset,length:oe.keyNode.length},severity:Ze.Warning,message:k.errorMessage||"Property "+we+" is not allowed."})}}if(O(k.maxProperties)&&y.properties.length>k.maxProperties&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ze.Warning,message:"Object has more properties than limit of "+k.maxProperties+"."}),O(k.minProperties)&&y.properties.length<k.minProperties&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Ze.Warning,message:"Object has fewer properties than the required number of "+k.minProperties}),k.dependencies)for(var Gr=0,On=Object.keys(k.dependencies);Gr<On.length;Gr++){var fe=On[Gr],ji=W[fe];if(ji){var Ar=k.dependencies[fe];if(Array.isArray(Ar))for(var Kr=0,Fn=Ar;Kr<Fn.length;Kr++){var na=Fn[Kr];W[na]?I.propertiesValueMatches++:I.problems.push({location:{offset:y.offset,length:y.length},severity:Ze.Warning,message:"Object is missing property "+na+" required by property {$key}."})}else{var Oe=dn(Ar);if(Oe){var rt=new hn;jr(y,Oe,rt,Q),I.mergePropertyMatch(rt)}}}}var Ao=dn(k.propertyNames);if(Ao)for(var ei=0,Zs=y.properties;ei<Zs.length;ei++){var Gu=Zs[ei],fe=Gu.keyNode;fe&&jr(fe,Ao,I,nc.instance)}}}function Zd(t,n){var i=[],s=-1,u=t.getText(),c=yo(u,!1),h=n&&n.collectComments?[]:void 0;function m(){for(;;){var Te=c.scan();switch(I(),Te){case 12:case 13:Array.isArray(h)&&h.push(Ee.create(t.positionAt(c.getTokenOffset()),t.positionAt(c.getTokenOffset()+c.getTokenLength())));break;case 15:case 14:break;default:return Te}}}function p(Te){return c.getToken()===Te?(m(),!0):!1}function y(Te,ke,Ne,pe,Ie){if(Ie===void 0&&(Ie=Ze.Error),i.length===0||Ne!==s){var Oe=Ee.create(t.positionAt(Ne),t.positionAt(pe));i.push(Xt.create(Oe,Te,Ie,ke,t.languageId)),s=Ne}}function k(Te,ke,Ne,pe,Ie){Ne===void 0&&(Ne=null),pe===void 0&&(pe=[]),Ie===void 0&&(Ie=[]);var Oe=c.getTokenOffset(),Be=c.getTokenOffset()+c.getTokenLength();if(Oe===Be&&Oe>0){for(Oe--;Oe>0&&/\s/.test(u.charAt(Oe));)Oe--;Be=Oe+1}if(y(Te,ke,Oe,Be),Ne&&Q(Ne,!1),pe.length+Ie.length>0)for(var rt=c.getToken();rt!==17;){if(pe.indexOf(rt)!==-1){m();break}else if(Ie.indexOf(rt)!==-1)break;rt=m()}return Ne}function I(){switch(c.getTokenError()){case 4:return k("Invalid unicode sequence in string.",Pt.InvalidUnicode),!0;case 5:return k("Invalid escape character in string.",Pt.InvalidEscapeCharacter),!0;case 3:return k("Unexpected end of number.",Pt.UnexpectedEndOfNumber),!0;case 1:return k("Unexpected end of comment.",Pt.UnexpectedEndOfComment),!0;case 2:return k("Unexpected end of string.",Pt.UnexpectedEndOfString),!0;case 6:return k("Invalid characters in string. Control characters must be escaped.",Pt.InvalidCharacter),!0}return!1}function Q(Te,ke){return Te.length=c.getTokenOffset()+c.getTokenLength()-Te.offset,ke&&m(),Te}function W(Te){if(c.getToken()!==3)return null;var ke=new Gd(Te,c.getTokenOffset());m();for(var Ne=0,pe=!1;c.getToken()!==4&&c.getToken()!==17;){if(c.getToken()===5){pe||k("Value expected",Pt.ValueExpected);var Ie=c.getTokenOffset();if(m(),c.getToken()===4){pe&&y("Trailing comma",Pt.TrailingComma,Ie,Ie+1);continue}}else pe&&k("Expected comma",Pt.CommaExpected);var Oe=ye(ke,Ne++);Oe?ke.items.push(Oe):k("Value expected",Pt.ValueExpected,null,[],[4,5]),pe=!0}return c.getToken()!==4?k("Expected comma or closing bracket",Pt.CommaOrCloseBacketExpected,ke):Q(ke,!0)}function $(Te,ke){var Ne=new Yd(Te,c.getTokenOffset()),pe=ue(Ne);if(!pe)if(c.getToken()===16){k("Property keys must be doublequoted",Pt.Undefined);var Ie=new Zc(Ne,c.getTokenOffset(),c.getTokenLength());Ie.value=c.getTokenValue(),pe=Ie,m()}else return null;Ne.keyNode=pe;var Oe=ke[pe.value];if(Oe?(y("Duplicate object key",Pt.DuplicateKey,Ne.keyNode.offset,Ne.keyNode.offset+Ne.keyNode.length,Ze.Warning),typeof Oe=="object"&&y("DuplicateKeyWarning",Pt.DuplicateKey,Oe.keyNode.offset,Oe.keyNode.offset+Oe.keyNode.length,Ze.Warning),ke[pe.value]=!0):ke[pe.value]=Ne,c.getToken()===6)Ne.colonOffset=c.getTokenOffset(),m();else if(k("Colon expected",Pt.ColonExpected),c.getToken()===10&&t.positionAt(pe.offset+pe.length).line<t.positionAt(c.getTokenOffset()).line)return Ne.length=pe.length,Ne;var Be=ye(Ne,pe.value);return Be?(Ne.valueNode=Be,Ne.length=Be.offset+Be.length-Ne.offset,Ne):k("Value expected",Pt.ValueExpected,Ne,[],[2,5])}function ae(Te){if(c.getToken()!==1)return null;var ke=new Xd(Te,c.getTokenOffset()),Ne=Object.create(null);m();for(var pe=!1;c.getToken()!==2&&c.getToken()!==17;){if(c.getToken()===5){pe||k("Property expected",Pt.PropertyExpected);var Ie=c.getTokenOffset();if(m(),c.getToken()===2){pe&&y("Trailing comma",Pt.TrailingComma,Ie,Ie+1);continue}}else pe&&k("Expected comma",Pt.CommaExpected);var Oe=$(ke,Ne);Oe?ke.properties.push(Oe):k("Property expected",Pt.PropertyExpected,null,[],[2,5]),pe=!0}return c.getToken()!==2?k("Expected comma or closing brace",Pt.CommaOrCloseBraceExpected,ke):Q(ke,!0)}function ue(Te){if(c.getToken()!==10)return null;var ke=new Zc(Te,c.getTokenOffset());return ke.value=c.getTokenValue(),Q(ke,!0)}function oe(Te){if(c.getToken()!==11)return null;var ke=new Kd(Te,c.getTokenOffset());if(c.getTokenError()===0){var Ne=c.getTokenValue();try{var pe=JSON.parse(Ne);if(!O(pe))return k("Invalid number format.",Pt.Undefined,ke);ke.value=pe}catch{return k("Invalid number format.",Pt.Undefined,ke)}ke.isInteger=Ne.indexOf(".")===-1}return Q(ke,!0)}function fe(Te){var ke;switch(c.getToken()){case 7:return Q(new $d(Te,c.getTokenOffset()),!0);case 8:return Q(new Qc(Te,!0,c.getTokenOffset()),!0);case 9:return Q(new Qc(Te,!1,c.getTokenOffset()),!0);default:return null}}function ye(Te,ke){return W(Te)||ae(Te)||ue(Te)||oe(Te)||fe(Te)}var Ae=null,we=m();return we!==17&&(Ae=ye(null,null),Ae?c.getToken()!==17&&k("End of file expected.",Pt.Undefined):k("Expected a JSON object, array or literal.",Pt.Undefined)),new td(Ae,i,h)}function oc(t,n,i){if(t!==null&&typeof t=="object"){var s=n+" ";if(Array.isArray(t)){if(t.length===0)return"[]";for(var u=`[
186
- `,c=0;c<t.length;c++)u+=s+oc(t[c],s,i),c<t.length-1&&(u+=","),u+=`
187
- `;return u+=n+"]",u}else{var h=Object.keys(t);if(h.length===0)return"{}";for(var u=`{
188
- `,c=0;c<h.length;c++){var m=h[c];u+=s+JSON.stringify(m)+": "+oc(t[m],s,i),c<h.length-1&&(u+=","),u+=`
189
- `}return u+=n+"}",u}}return i(t)}function qd(t,n){if(t.length<n.length)return!1;for(var i=0;i<n.length;i++)if(t[i]!==n[i])return!1;return!0}function ac(t,n){var i=t.length-n.length;return i>0?t.lastIndexOf(n)===i:i===0?t===n:!1}function eh(t){return t.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function bv(t,n){for(var i="";n>0;)(n&1)===1&&(i+=t),t+=t,n=n>>>1;return i}var th=[",","}","]"],rh=[":"],nh=function(){function t(n,i,s,u){i===void 0&&(i=[]),s===void 0&&(s=Promise),u===void 0&&(u={}),this.schemaService=n,this.contributions=i,this.promiseConstructor=s,this.clientCapabilities=u,this.templateVarIdCounter=0}return t.prototype.doResolve=function(n){for(var i=this.contributions.length-1;i>=0;i--)if(this.contributions[i].resolveCompletion){var s=this.contributions[i].resolveCompletion(n);if(s)return s}return this.promiseConstructor.resolve(n)},t.prototype.doComplete=function(n,i,s){var u=this,c={items:[],isIncomplete:!1},h=n.getText(),m=n.offsetAt(i),p=s.getNodeFromOffset(m,!0);if(this.isInComment(n,p?p.offset:0,m))return Promise.resolve(c);if(p&&m===p.offset+p.length&&m>0){var y=h[m-1];(p.type==="object"&&y==="}"||p.type==="array"&&y==="]")&&(p=p.parent)}var k=this.getCurrentWord(n,m),I=null;if(p&&(p.type==="string"||p.type==="number"||p.type==="boolean"||p.type==="null"))I=Ee.create(n.positionAt(p.offset),n.positionAt(p.offset+p.length));else{var Q=m-k.length;Q>0&&h[Q-1]==='"'&&Q--,I=Ee.create(n.positionAt(Q),i)}var W=this.doesSupportsCommitCharacters(),$={},ae={add:function(ue){var oe=$[ue.label];oe?oe.documentation||(oe.documentation=ue.documentation):($[ue.label]=ue,I&&(ue.textEdit=Nt.replace(I,ue.insertText)),W&&(ue.commitCharacters=ue.kind===An.Property?rh:th),c.items.push(ue))},setAsIncomplete:function(){c.isIncomplete=!0},error:function(ue){console.error(ue)},log:function(ue){console.log(ue)},getNumberOfProposals:function(){return c.items.length}};return this.schemaService.getSchemaForResource(n.uri,s).then(function(ue){var oe=[],fe=!0,ye="",Ae=null;if(p&&p.type==="string"){var we=p.parent;we&&we.type==="property"&&we.keyNode===p&&(fe=!we.valueNode,Ae=we,ye=h.substr(p.offset+1,p.length-2),we&&(p=we.parent))}if(p&&p.type==="object"){if(p.offset===m)return c;var Te=p.properties;Te.forEach(function(Ie){(!Ae||Ae!==Ie)&&($[Ie.keyNode.value]=qf.create("__"))});var ke="";fe&&(ke=u.evaluateSeparatorAfter(n,n.offsetAt(I.end))),ue?u.getPropertyCompletions(ue,s,p,fe,ke,ae):u.getSchemaLessPropertyCompletions(s,p,ye,ae);var Ne=ic(p);u.contributions.forEach(function(Ie){var Oe=Ie.collectPropertyCompletions(n.uri,Ne,k,fe,ke==="",ae);Oe&&oe.push(Oe)}),!ue&&k.length>0&&h.charAt(m-k.length-1)!=='"'&&(ae.add({kind:An.Property,label:u.getLabelForValue(k),insertText:u.getInsertTextForProperty(k,null,!1,ke),insertTextFormat:Cr.Snippet,documentation:""}),ae.setAsIncomplete())}var pe={};return ue?u.getValueCompletions(ue,s,p,m,n,ae,pe):u.getSchemaLessValueCompletions(s,p,m,n,ae),u.contributions.length>0&&u.getContributedValueCompletions(s,p,m,n,ae,oe),u.promiseConstructor.all(oe).then(function(){if(ae.getNumberOfProposals()===0){var Ie=m;p&&(p.type==="string"||p.type==="number"||p.type==="boolean"||p.type==="null")&&(Ie=p.offset+p.length);var Oe=u.evaluateSeparatorAfter(n,Ie);u.addFillerValueCompletions(pe,Oe,ae)}return c})})},t.prototype.getPropertyCompletions=function(n,i,s,u,c,h){var m=this,p=i.getMatchingSchemas(n.schema,s.offset);p.forEach(function(y){if(y.node===s&&!y.inverted){var k=y.schema.properties;k&&Object.keys(k).forEach(function(I){var Q=k[I],W=!1;if(typeof Q=="object"&&Q.allOf)for(var $=0,ae=Q.allOf;$<ae.length;$++){var ue=ae[$];if(ue.readOnly){W=!0;break}}if(typeof Q=="object"&&!Q.deprecationMessage&&!Q.doNotSuggest&&!W){var oe={kind:An.Property,label:m.sanitizeLabel(I),insertText:m.getInsertTextForProperty(I,Q,u,c),insertTextFormat:Cr.Snippet,filterText:m.getFilterTextForValue(I),documentation:m.fromMarkup(Q.markdownDescription)||Q.description||""};ac(oe.insertText,"$1"+c)&&(oe.command={title:"Suggest",command:"editor.action.triggerSuggest"}),h.add(oe)}})}})},t.prototype.getSchemaLessPropertyCompletions=function(n,i,s,u){var c=this,h=function(p){p.properties.forEach(function(y){var k=y.keyNode.value;u.add({kind:An.Property,label:c.sanitizeLabel(k),insertText:c.getInsertTextForValue(k,""),insertTextFormat:Cr.Snippet,filterText:c.getFilterTextForValue(k),documentation:""})})};if(i.parent)if(i.parent.type==="property"){var m=i.parent.keyNode.value;n.visit(function(p){return p.type==="property"&&p!==i.parent&&p.keyNode.value===m&&p.valueNode&&p.valueNode.type==="object"&&h(p.valueNode),!0})}else i.parent.type==="array"&&i.parent.items.forEach(function(p){p.type==="object"&&p!==i&&h(p)});else i.type==="object"&&u.add({kind:An.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",null,!0,""),insertTextFormat:Cr.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})},t.prototype.getSchemaLessValueCompletions=function(n,i,s,u,c){var h=this,m=s;if(i&&(i.type==="string"||i.type==="number"||i.type==="boolean"||i.type==="null")&&(m=i.offset+i.length,i=i.parent),!i){c.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:Cr.Snippet,documentation:""}),c.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:Cr.Snippet,documentation:""});return}var p=this.evaluateSeparatorAfter(u,m),y=function(W){ed(W.parent,s,!0)||c.add({kind:h.getSuggestionKind(W.type),label:h.getLabelTextForMatchingNode(W,u),insertText:h.getInsertTextForMatchingNode(W,u,p),insertTextFormat:Cr.Snippet,documentation:""}),W.type==="boolean"&&h.addBooleanValueCompletion(!W.value,p,c)};if(i.type==="property"&&s>i.colonOffset){var k=i.valueNode;if(k&&(s>k.offset+k.length||k.type==="object"||k.type==="array"))return;var I=i.keyNode.value;n.visit(function(W){return W.type==="property"&&W.keyNode.value===I&&W.valueNode&&y(W.valueNode),!0}),I==="$schema"&&i.parent&&!i.parent.parent&&this.addDollarSchemaCompletions(p,c)}if(i.type==="array")if(i.parent&&i.parent.type==="property"){var Q=i.parent.keyNode.value;n.visit(function(W){return W.type==="property"&&W.keyNode.value===Q&&W.valueNode&&W.valueNode.type==="array"&&W.valueNode.items.forEach(y),!0})}else i.items.forEach(y)},t.prototype.getValueCompletions=function(n,i,s,u,c,h,m){var p=this,y=u,k=null,I=null;if(s&&(s.type==="string"||s.type==="number"||s.type==="boolean"||s.type==="null")&&(y=s.offset+s.length,I=s,s=s.parent),!s){this.addSchemaValueCompletions(n.schema,"",h,m);return}if(s.type==="property"&&u>s.colonOffset){var Q=s.valueNode;if(Q&&u>Q.offset+Q.length)return;k=s.keyNode.value,s=s.parent}if(s&&(k!==null||s.type==="array")){var W=this.evaluateSeparatorAfter(c,y),$=i.getMatchingSchemas(n.schema,s.offset,I);$.forEach(function(ae){if(ae.node===s&&!ae.inverted&&ae.schema){if(s.type==="array"&&ae.schema.items)if(Array.isArray(ae.schema.items)){var ue=p.findItemAtOffset(s,c,u);ue<ae.schema.items.length&&p.addSchemaValueCompletions(ae.schema.items[ue],W,h,m)}else p.addSchemaValueCompletions(ae.schema.items,W,h,m);if(ae.schema.properties){var oe=ae.schema.properties[k];oe&&p.addSchemaValueCompletions(oe,W,h,m)}}}),k==="$schema"&&!s.parent&&this.addDollarSchemaCompletions(W,h),m.boolean&&(this.addBooleanValueCompletion(!0,W,h),this.addBooleanValueCompletion(!1,W,h)),m.null&&this.addNullValueCompletion(W,h)}},t.prototype.getContributedValueCompletions=function(n,i,s,u,c,h){if(!i)this.contributions.forEach(function(k){var I=k.collectDefaultCompletions(u.uri,c);I&&h.push(I)});else if((i.type==="string"||i.type==="number"||i.type==="boolean"||i.type==="null")&&(i=i.parent),i.type==="property"&&s>i.colonOffset){var m=i.keyNode.value,p=i.valueNode;if(!p||s<=p.offset+p.length){var y=ic(i.parent);this.contributions.forEach(function(k){var I=k.collectValueCompletions(u.uri,y,m,c);I&&h.push(I)})}}},t.prototype.addSchemaValueCompletions=function(n,i,s,u){var c=this;typeof n=="object"&&(this.addEnumValueCompletions(n,i,s),this.addDefaultValueCompletions(n,i,s),this.collectTypes(n,u),Array.isArray(n.allOf)&&n.allOf.forEach(function(h){return c.addSchemaValueCompletions(h,i,s,u)}),Array.isArray(n.anyOf)&&n.anyOf.forEach(function(h){return c.addSchemaValueCompletions(h,i,s,u)}),Array.isArray(n.oneOf)&&n.oneOf.forEach(function(h){return c.addSchemaValueCompletions(h,i,s,u)}))},t.prototype.addDefaultValueCompletions=function(n,i,s,u){var c=this;u===void 0&&(u=0);var h=!1;if(U(n.default)){for(var m=n.type,p=n.default,y=u;y>0;y--)p=[p],m="array";s.add({kind:this.getSuggestionKind(m),label:this.getLabelForValue(p),insertText:this.getInsertTextForValue(p,i),insertTextFormat:Cr.Snippet}),h=!0}Array.isArray(n.examples)&&n.examples.forEach(function(k){for(var I=n.type,Q=k,W=u;W>0;W--)Q=[Q],I="array";s.add({kind:c.getSuggestionKind(I),label:c.getLabelForValue(Q),insertText:c.getInsertTextForValue(Q,i),insertTextFormat:Cr.Snippet}),h=!0}),Array.isArray(n.defaultSnippets)&&n.defaultSnippets.forEach(function(k){var I=n.type,Q=k.body,W=k.label,$,ae;if(U(Q)){for(var ue=n.type,oe=u;oe>0;oe--)Q=[Q],ue="array";$=c.getInsertTextForSnippetValue(Q,i),ae=c.getFilterTextForSnippetValue(Q),W=W||c.getLabelForSnippetValue(Q)}else if(typeof k.bodyText=="string"){for(var fe="",ye="",Ae="",oe=u;oe>0;oe--)fe=fe+Ae+`[
190
- `,ye=ye+`
191
- `+Ae+"]",Ae+=" ",I="array";$=fe+Ae+k.bodyText.split(`
192
- `).join(`
193
- `+Ae)+ye+i,W=W||c.sanitizeLabel($),ae=$.replace(/[\n]/g,"")}s.add({kind:c.getSuggestionKind(I),label:W,documentation:c.fromMarkup(k.markdownDescription)||k.description,insertText:$,insertTextFormat:Cr.Snippet,filterText:ae}),h=!0}),!h&&typeof n.items=="object"&&!Array.isArray(n.items)&&this.addDefaultValueCompletions(n.items,i,s,u+1)},t.prototype.addEnumValueCompletions=function(n,i,s){if(U(n.const)&&s.add({kind:this.getSuggestionKind(n.type),label:this.getLabelForValue(n.const),insertText:this.getInsertTextForValue(n.const,i),insertTextFormat:Cr.Snippet,documentation:this.fromMarkup(n.markdownDescription)||n.description}),Array.isArray(n.enum))for(var u=0,c=n.enum.length;u<c;u++){var h=n.enum[u],m=this.fromMarkup(n.markdownDescription)||n.description;n.markdownEnumDescriptions&&u<n.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?m=this.fromMarkup(n.markdownEnumDescriptions[u]):n.enumDescriptions&&u<n.enumDescriptions.length&&(m=n.enumDescriptions[u]),s.add({kind:this.getSuggestionKind(n.type),label:this.getLabelForValue(h),insertText:this.getInsertTextForValue(h,i),insertTextFormat:Cr.Snippet,documentation:m})}},t.prototype.collectTypes=function(n,i){if(!(Array.isArray(n.enum)||U(n.const))){var s=n.type;Array.isArray(s)?s.forEach(function(u){return i[u]=!0}):i[s]=!0}},t.prototype.addFillerValueCompletions=function(n,i,s){n.object&&s.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},i),insertTextFormat:Cr.Snippet,detail:"New object",documentation:""}),n.array&&s.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],i),insertTextFormat:Cr.Snippet,detail:"New array",documentation:""})},t.prototype.addBooleanValueCompletion=function(n,i,s){s.add({kind:this.getSuggestionKind("boolean"),label:n?"true":"false",insertText:this.getInsertTextForValue(n,i),insertTextFormat:Cr.Snippet,documentation:""})},t.prototype.addNullValueCompletion=function(n,i){i.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+n,insertTextFormat:Cr.Snippet,documentation:""})},t.prototype.addDollarSchemaCompletions=function(n,i){var s=this,u=this.schemaService.getRegisteredSchemaIds(function(c){return c==="http"||c==="https"});u.forEach(function(c){return i.add({kind:An.Module,label:s.getLabelForValue(c),filterText:s.getFilterTextForValue(c),insertText:s.getInsertTextForValue(c,n),insertTextFormat:Cr.Snippet,documentation:""})})},t.prototype.sanitizeLabel=function(n){return n=n.replace(/[\n]/g,"\u21B5"),n.length>57&&(n=n.substr(0,57).trim()+"..."),n},t.prototype.getLabelForValue=function(n){return this.sanitizeLabel(JSON.stringify(n))},t.prototype.getFilterTextForValue=function(n){return JSON.stringify(n)},t.prototype.getFilterTextForSnippetValue=function(n){return JSON.stringify(n).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},t.prototype.getLabelForSnippetValue=function(n){var i=JSON.stringify(n);return i=i.replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1"),this.sanitizeLabel(i)},t.prototype.getInsertTextForPlainText=function(n){return n.replace(/[\\\$\}]/g,"\\$&")},t.prototype.getInsertTextForValue=function(n,i){var s=JSON.stringify(n,null," ");return s==="{}"?"{$1}"+i:s==="[]"?"[$1]"+i:this.getInsertTextForPlainText(s+i)},t.prototype.getInsertTextForSnippetValue=function(n,i){var s=function(u){return typeof u=="string"&&u[0]==="^"?u.substr(1):JSON.stringify(u)};return oc(n,"",s)+i},t.prototype.getInsertTextForGuessedValue=function(n,i){switch(typeof n){case"object":return n===null?"${1:null}"+i:this.getInsertTextForValue(n,i);case"string":var s=JSON.stringify(n);return s=s.substr(1,s.length-2),s=this.getInsertTextForPlainText(s),'"${1:'+s+'}"'+i;case"number":case"boolean":return"${1:"+JSON.stringify(n)+"}"+i}return this.getInsertTextForValue(n,i)},t.prototype.getSuggestionKind=function(n){if(Array.isArray(n)){var i=n;n=i.length>0?i[0]:null}if(!n)return An.Value;switch(n){case"string":return An.Value;case"object":return An.Module;case"property":return An.Property;default:return An.Value}},t.prototype.getLabelTextForMatchingNode=function(n,i){switch(n.type){case"array":return"[]";case"object":return"{}";default:var s=i.getText().substr(n.offset,n.length);return s}},t.prototype.getInsertTextForMatchingNode=function(n,i,s){switch(n.type){case"array":return this.getInsertTextForValue([],s);case"object":return this.getInsertTextForValue({},s);default:var u=i.getText().substr(n.offset,n.length)+s;return this.getInsertTextForPlainText(u)}},t.prototype.getInsertTextForProperty=function(n,i,s,u){var c=this.getInsertTextForValue(n,"");if(!s)return c;var h=c+": ",m,p=0;if(i){if(Array.isArray(i.defaultSnippets)){if(i.defaultSnippets.length===1){var y=i.defaultSnippets[0].body;U(y)&&(m=this.getInsertTextForSnippetValue(y,""))}p+=i.defaultSnippets.length}if(i.enum&&(!m&&i.enum.length===1&&(m=this.getInsertTextForGuessedValue(i.enum[0],"")),p+=i.enum.length),U(i.default)&&(m||(m=this.getInsertTextForGuessedValue(i.default,"")),p++),p===0){var k=Array.isArray(i.type)?i.type[0]:i.type;switch(k||(i.properties?k="object":i.items&&(k="array")),k){case"boolean":m="$1";break;case"string":m='"$1"';break;case"object":m="{$1}";break;case"array":m="[$1]";break;case"number":case"integer":m="${1:0}";break;case"null":m="${1:null}";break;default:return c}}}return(!m||p>1)&&(m="$1"),h+m+u},t.prototype.getCurrentWord=function(n,i){for(var s=i-1,u=n.getText();s>=0&&`
194
- \r\v":{[,]}`.indexOf(u.charAt(s))===-1;)s--;return u.substring(s+1,i)},t.prototype.evaluateSeparatorAfter=function(n,i){var s=yo(n.getText(),!0);s.setPosition(i);var u=s.scan();switch(u){case 5:case 2:case 4:case 17:return"";default:return","}},t.prototype.findItemAtOffset=function(n,i,s){for(var u=yo(i.getText(),!0),c=n.items,h=c.length-1;h>=0;h--){var m=c[h];if(s>m.offset+m.length){u.setPosition(m.offset+m.length);var p=u.scan();return p===5&&s>=u.getTokenOffset()+u.getTokenLength()?h+1:h}else if(s>=m.offset)return h}return 0},t.prototype.isInComment=function(n,i,s){var u=yo(n.getText(),!1);u.setPosition(i);for(var c=u.scan();c!==17&&u.getTokenOffset()+u.getTokenLength()<s;)c=u.scan();return(c===12||c===13)&&u.getTokenOffset()<=s},t.prototype.fromMarkup=function(n){if(n&&this.doesSupportMarkdown())return{kind:ea.Markdown,value:n}},t.prototype.doesSupportMarkdown=function(){if(!U(this.supportsMarkdown)){var n=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsMarkdown=n&&n.completionItem&&Array.isArray(n.completionItem.documentationFormat)&&n.completionItem.documentationFormat.indexOf(ea.Markdown)!==-1}return this.supportsMarkdown},t.prototype.doesSupportsCommitCharacters=function(){if(!U(this.supportsCommitCharacters)){var n=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsCommitCharacters=n&&n.completionItem&&!!n.completionItem.commitCharactersSupport}return this.supportsCommitCharacters},t}(),ih=function(){function t(n,i,s){i===void 0&&(i=[]),this.schemaService=n,this.contributions=i,this.promise=s||Promise}return t.prototype.doHover=function(n,i,s){var u=n.offsetAt(i),c=s.getNodeFromOffset(u);if(!c||(c.type==="object"||c.type==="array")&&u>c.offset+1&&u<c.offset+c.length-1)return this.promise.resolve(null);var h=c;if(c.type==="string"){var m=c.parent;if(m&&m.type==="property"&&m.keyNode===c&&(c=m.valueNode,!c))return this.promise.resolve(null)}for(var p=Ee.create(n.positionAt(h.offset),n.positionAt(h.offset+h.length)),y=function($){var ae={contents:$,range:p};return ae},k=ic(c),I=this.contributions.length-1;I>=0;I--){var Q=this.contributions[I],W=Q.getInfoContribution(n.uri,k);if(W)return W.then(function($){return y($)})}return this.schemaService.getSchemaForResource(n.uri,s).then(function($){if($){var ae=s.getMatchingSchemas($.schema,c.offset),ue=null,oe=null,fe=null,ye=null;ae.every(function(we){if(we.node===c&&!we.inverted&&we.schema&&(ue=ue||we.schema.title,oe=oe||we.schema.markdownDescription||sc(we.schema.description),we.schema.enum)){var Te=we.schema.enum.indexOf(So(c));we.schema.markdownEnumDescriptions?fe=we.schema.markdownEnumDescriptions[Te]:we.schema.enumDescriptions&&(fe=sc(we.schema.enumDescriptions[Te])),fe&&(ye=we.schema.enum[Te],typeof ye!="string"&&(ye=JSON.stringify(ye)))}return!0});var Ae="";return ue&&(Ae=sc(ue)),oe&&(Ae.length>0&&(Ae+=`
195
-
196
- `),Ae+=oe),fe&&(Ae.length>0&&(Ae+=`
197
-
198
- `),Ae+="`"+oh(ye)+"`: "+fe),y([Ae])}return null})},t}();function sc(t){if(t){var n=t.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,`$1
199
-
200
- $3`);return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function oh(t){return t.indexOf("`")!==-1?"`` "+t+" ``":t}var ah=function(){var t=function(n,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var c in u)u.hasOwnProperty(c)&&(s[c]=u[c])},t(n,i)};return function(n,i){t(n,i);function s(){this.constructor=n}n.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}}(),cr,Js;if(typeof process=="object")Js=!1;else if(typeof navigator=="object"){var sh=navigator.userAgent;Js=sh.indexOf("Windows")>=0}function xv(t){return 55296<=t&&t<=56319}function Sv(t){return 56320<=t&&t<=57343}function wv(t){return t>=97&&t<=102}function lh(t){return t>=97&&t<=122}function uh(t){return t>=65&&t<=90}function Cv(t){return lh(t)||uh(t)}var fh=/^\w[\w\d+.-]*$/,ch=/^\//,dh=/^\/\//;function hh(t,n){if(!t.scheme&&n)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+t.authority+'", path: "'+t.path+'", query: "'+t.query+'", fragment: "'+t.fragment+'"}');if(t.scheme&&!fh.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!ch.test(t.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(dh.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function ph(t,n){return!t&&!n?"file":t}function vh(t,n){switch(t){case"https":case"http":case"file":n?n[0]!==Qn&&(n=Qn+n):n=Qn;break}return n}var $t="",Qn="/",gh=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,lc=function(){function t(n,i,s,u,c,h){h===void 0&&(h=!1),typeof n=="object"?(this.scheme=n.scheme||$t,this.authority=n.authority||$t,this.path=n.path||$t,this.query=n.query||$t,this.fragment=n.fragment||$t):(this.scheme=ph(n,h),this.authority=i||$t,this.path=vh(this.scheme,s||$t),this.query=u||$t,this.fragment=c||$t,hh(this,h))}return t.isUri=function(n){return n instanceof t?!0:n?typeof n.authority=="string"&&typeof n.fragment=="string"&&typeof n.path=="string"&&typeof n.query=="string"&&typeof n.scheme=="string"&&typeof n.fsPath=="function"&&typeof n.with=="function"&&typeof n.toString=="function":!1},Object.defineProperty(t.prototype,"fsPath",{get:function(){return od(this,!1)},enumerable:!0,configurable:!0}),t.prototype.with=function(n){if(!n)return this;var i=n.scheme,s=n.authority,u=n.path,c=n.query,h=n.fragment;return i===void 0?i=this.scheme:i===null&&(i=$t),s===void 0?s=this.authority:s===null&&(s=$t),u===void 0?u=this.path:u===null&&(u=$t),c===void 0?c=this.query:c===null&&(c=$t),h===void 0?h=this.fragment:h===null&&(h=$t),i===this.scheme&&s===this.authority&&u===this.path&&c===this.query&&h===this.fragment?this:new Va(i,s,u,c,h)},t.parse=function(n,i){i===void 0&&(i=!1);var s=gh.exec(n);return s?new Va(s[2]||$t,Hu(s[4]||$t),Hu(s[5]||$t),Hu(s[7]||$t),Hu(s[9]||$t),i):new Va($t,$t,$t,$t,$t)},t.file=function(n){var i=$t;if(Js&&(n=n.replace(/\\/g,Qn)),n[0]===Qn&&n[1]===Qn){var s=n.indexOf(Qn,2);s===-1?(i=n.substring(2),n=Qn):(i=n.substring(2,s),n=n.substring(s)||Qn)}return new Va("file",i,n,$t,$t)},t.from=function(n){return new Va(n.scheme,n.authority,n.path,n.query,n.fragment)},t.prototype.toString=function(n){return n===void 0&&(n=!1),uc(this,n)},t.prototype.toJSON=function(){return this},t.revive=function(n){if(n){if(n instanceof t)return n;var i=new Va(n);return i._formatted=n.external,i._fsPath=n._sep===rd?n.fsPath:null,i}else return n},t}(),rd=Js?1:void 0,Va=function(t){ah(n,t);function n(){var i=t!==null&&t.apply(this,arguments)||this;return i._formatted=null,i._fsPath=null,i}return Object.defineProperty(n.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=od(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),n.prototype.toString=function(i){return i===void 0&&(i=!1),i?uc(this,!0):(this._formatted||(this._formatted=uc(this,!1)),this._formatted)},n.prototype.toJSON=function(){var i={$mid:1};return this._fsPath&&(i.fsPath=this._fsPath,i._sep=rd),this._formatted&&(i.external=this._formatted),this.path&&(i.path=this.path),this.scheme&&(i.scheme=this.scheme),this.authority&&(i.authority=this.authority),this.query&&(i.query=this.query),this.fragment&&(i.fragment=this.fragment),i},n}(lc),nd=(cr={},cr[58]="%3A",cr[47]="%2F",cr[63]="%3F",cr[35]="%23",cr[91]="%5B",cr[93]="%5D",cr[64]="%40",cr[33]="%21",cr[36]="%24",cr[38]="%26",cr[39]="%27",cr[40]="%28",cr[41]="%29",cr[42]="%2A",cr[43]="%2B",cr[44]="%2C",cr[59]="%3B",cr[61]="%3D",cr[32]="%20",cr);function id(t,n){for(var i=void 0,s=-1,u=0;u<t.length;u++){var c=t.charCodeAt(u);if(c>=97&&c<=122||c>=65&&c<=90||c>=48&&c<=57||c===45||c===46||c===95||c===126||n&&c===47)s!==-1&&(i+=encodeURIComponent(t.substring(s,u)),s=-1),i!==void 0&&(i+=t.charAt(u));else{i===void 0&&(i=t.substr(0,u));var h=nd[c];h!==void 0?(s!==-1&&(i+=encodeURIComponent(t.substring(s,u)),s=-1),i+=h):s===-1&&(s=u)}}return s!==-1&&(i+=encodeURIComponent(t.substring(s))),i!==void 0?i:t}function mh(t){for(var n=void 0,i=0;i<t.length;i++){var s=t.charCodeAt(i);s===35||s===63?(n===void 0&&(n=t.substr(0,i)),n+=nd[s]):n!==void 0&&(n+=t[i])}return n!==void 0?n:t}function od(t,n){var i;return t.authority&&t.path.length>1&&t.scheme==="file"?i="//"+t.authority+t.path:t.path.charCodeAt(0)===47&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&t.path.charCodeAt(2)===58?n?i=t.path.substr(1):i=t.path[1].toLowerCase()+t.path.substr(2):i=t.path,Js&&(i=i.replace(/\//g,"\\")),i}function uc(t,n){var i=n?mh:id,s="",u=t.scheme,c=t.authority,h=t.path,m=t.query,p=t.fragment;if(u&&(s+=u,s+=":"),(c||u==="file")&&(s+=Qn,s+=Qn),c){var y=c.indexOf("@");if(y!==-1){var k=c.substr(0,y);c=c.substr(y+1),y=k.indexOf(":"),y===-1?s+=i(k,!1):(s+=i(k.substr(0,y),!1),s+=":",s+=i(k.substr(y+1),!1)),s+="@"}c=c.toLowerCase(),y=c.indexOf(":"),y===-1?s+=i(c,!1):(s+=i(c.substr(0,y),!1),s+=c.substr(y))}if(h){if(h.length>=3&&h.charCodeAt(0)===47&&h.charCodeAt(2)===58){var I=h.charCodeAt(1);I>=65&&I<=90&&(h="/"+String.fromCharCode(I+32)+":"+h.substr(3))}else if(h.length>=2&&h.charCodeAt(1)===58){var I=h.charCodeAt(0);I>=65&&I<=90&&(h=String.fromCharCode(I+32)+":"+h.substr(2))}s+=i(h,!0)}return m&&(s+="?",s+=i(m,!1)),p&&(s+="#",s+=n?p:id(p,!1)),s}function ad(t){try{return decodeURIComponent(t)}catch{return t.length>3?t.substr(0,3)+ad(t.substr(3)):t}}var sd=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Hu(t){return t.match(sd)?t.replace(sd,function(n){return ad(n)}):t}var yh=function(){function t(n){try{this.patternRegExp=new RegExp(eh(n)+"$")}catch{this.patternRegExp=null}this.schemas=[]}return t.prototype.addSchema=function(n){this.schemas.push(n)},t.prototype.matchesPattern=function(n){return this.patternRegExp&&this.patternRegExp.test(n)},t.prototype.getSchemas=function(){return this.schemas},t}(),bh=function(){function t(n,i,s){this.service=n,this.url=i,this.dependencies={},s&&(this.unresolvedSchema=this.service.promise.resolve(new $a(s)))}return t.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},t.prototype.getResolvedSchema=function(){var n=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then(function(i){return n.service.resolveSchemaContent(i,n.url,n.dependencies)})),this.resolvedSchema},t.prototype.clearSchema=function(){this.resolvedSchema=null,this.unresolvedSchema=null,this.dependencies={}},t}(),$a=function(){function t(n,i){i===void 0&&(i=[]),this.schema=n,this.errors=i}return t}(),ld=function(){function t(n,i){i===void 0&&(i=[]),this.schema=n,this.errors=i}return t.prototype.getSection=function(n){return dn(this.getSectionRecursive(n,this.schema))},t.prototype.getSectionRecursive=function(n,i){if(!i||typeof i=="boolean"||n.length===0)return i;var s=n.shift();if(i.properties&&typeof i.properties[s])return this.getSectionRecursive(n,i.properties[s]);if(i.patternProperties)for(var u=0,c=Object.keys(i.patternProperties);u<c.length;u++){var h=c[u],m=new RegExp(h);if(m.test(s))return this.getSectionRecursive(n,i.patternProperties[h])}else{if(typeof i.additionalProperties=="object")return this.getSectionRecursive(n,i.additionalProperties);if(s.match("[0-9]+")){if(Array.isArray(i.items)){var p=parseInt(s,10);if(!isNaN(p)&&i.items[p])return this.getSectionRecursive(n,i.items[p])}else if(i.items)return this.getSectionRecursive(n,i.items)}}return null},t}(),xh=function(){function t(n,i,s){this.contextService=i,this.requestService=n,this.promiseConstructor=s||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations={},this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={}}return t.prototype.getRegisteredSchemaIds=function(n){return Object.keys(this.registeredSchemasIds).filter(function(i){var s=lc.parse(i).scheme;return s!=="schemaservice"&&(!n||n(s))})},Object.defineProperty(t.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},t.prototype.onResourceChange=function(n){var i=this,s=!1;n=this.normalizeId(n);for(var u=[n],c=Object.keys(this.schemasById).map(function(y){return i.schemasById[y]});u.length;)for(var h=u.pop(),m=0;m<c.length;m++){var p=c[m];p&&(p.url===h||p.dependencies[h])&&(p.url!==h&&u.push(p.url),p.clearSchema(),c[m]=void 0,s=!0)}return s},t.prototype.normalizeId=function(n){try{return lc.parse(n).toString()}catch{return n}},t.prototype.setSchemaContributions=function(n){if(n.schemas){var i=n.schemas;for(var s in i){var u=this.normalizeId(s);this.contributionSchemas[u]=this.addSchemaHandle(u,i[s])}}if(n.schemaAssociations){var c=n.schemaAssociations;for(var h in c){var m=c[h];this.contributionAssociations[h]=m;for(var p=this.getOrAddFilePatternAssociation(h),y=0,k=m;y<k.length;y++){var I=k[y],s=this.normalizeId(I);p.addSchema(s)}}}},t.prototype.addSchemaHandle=function(n,i){var s=new bh(this,n,i);return this.schemasById[n]=s,s},t.prototype.getOrAddSchemaHandle=function(n,i){return this.schemasById[n]||this.addSchemaHandle(n,i)},t.prototype.getOrAddFilePatternAssociation=function(n){var i=this.filePatternAssociationById[n];return i||(i=new yh(n),this.filePatternAssociationById[n]=i,this.filePatternAssociations.push(i)),i},t.prototype.registerExternalSchema=function(n,i,s){i===void 0&&(i=null);var u=this.normalizeId(n);if(this.registeredSchemasIds[u]=!0,i)for(var c=0,h=i;c<h.length;c++){var m=h[c];this.getOrAddFilePatternAssociation(m).addSchema(u)}return s?this.addSchemaHandle(u,s):this.getOrAddSchemaHandle(u)},t.prototype.clearExternalSchemas=function(){this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={};for(var n in this.contributionSchemas)this.schemasById[n]=this.contributionSchemas[n],this.registeredSchemasIds[n]=!0;for(var i in this.contributionAssociations)for(var s=this.getOrAddFilePatternAssociation(i),u=0,c=this.contributionAssociations[i];u<c.length;u++){var h=c[u],n=this.normalizeId(h);s.addSchema(n)}},t.prototype.getResolvedSchema=function(n){var i=this.normalizeId(n),s=this.schemasById[i];return s?s.getResolvedSchema():this.promise.resolve(null)},t.prototype.loadSchema=function(n){if(!this.requestService){var i="Unable to load schema from '"+Uu(n)+"'. No schema request service available";return this.promise.resolve(new $a({},[i]))}return this.requestService(n).then(function(s){if(!s){var u="Unable to load schema from '"+Uu(n)+"': No content.";return new $a({},[u])}var c={},h=[];c=Zf(s,h);var m=h.length?["Unable to parse content from '"+Uu(n)+"': Parse error at offset "+h[0].offset]:[];return new $a(c,m)},function(s){var u="Unable to load schema from '"+Uu(n)+"': "+s.toString();return new $a({},[u])})},t.prototype.resolveSchemaContent=function(n,i,s){var u=this,c=n.errors.slice(0),h=n.schema;if(h.$schema){var m=this.normalizeId(h.$schema);if(m==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new ld({},["Draft-03 schemas are not supported."]));m==="https://json-schema.org/draft/2019-09/schema"&&n.errors.push("Draft 2019-09 schemas are not yet fully supported.")}var p=this.contextService,y=function(W,$){if(!$)return W;var ae=W;return $[0]==="/"&&($=$.substr(1)),$.split("/").some(function(ue){return ae=ae[ue],!ae}),ae},k=function(W,$,ae,ue){var oe=y($,ue);if(oe)for(var fe in oe)oe.hasOwnProperty(fe)&&!W.hasOwnProperty(fe)&&(W[fe]=oe[fe]);else c.push("$ref '"+ue+"' in '"+ae+"' can not be resolved.")},I=function(W,$,ae,ue,oe){p&&!/^\w+:\/\/.*/.test($)&&($=p.resolveRelativePath($,ue)),$=u.normalizeId($);var fe=u.getOrAddSchemaHandle($);return fe.getUnresolvedSchema().then(function(ye){if(oe[$]=!0,ye.errors.length){var Ae=ae?$+"#"+ae:$;c.push("Problems loading reference '"+Ae+"': "+ye.errors[0]+".")}return k(W,ye.schema,$,ae),Q(W,ye.schema,$,fe.dependencies)})},Q=function(W,$,ae,ue){if(!W||typeof W!="object")return Promise.resolve(null);for(var oe=[W],fe=[],ye=[],Ae=function(){for(var pe=[],Ie=0;Ie<arguments.length;Ie++)pe[Ie]=arguments[Ie];for(var Oe=0,Be=pe;Oe<Be.length;Oe++){var rt=Be[Oe];typeof rt=="object"&&oe.push(rt)}},we=function(){for(var pe=[],Ie=0;Ie<arguments.length;Ie++)pe[Ie]=arguments[Ie];for(var Oe=0,Be=pe;Oe<Be.length;Oe++){var rt=Be[Oe];if(typeof rt=="object")for(var Lt in rt){var vt=rt[Lt];typeof vt=="object"&&oe.push(vt)}}},Te=function(){for(var pe=[],Ie=0;Ie<arguments.length;Ie++)pe[Ie]=arguments[Ie];for(var Oe=0,Be=pe;Oe<Be.length;Oe++){var rt=Be[Oe];if(Array.isArray(rt))for(var Lt=0,vt=rt;Lt<vt.length;Lt++){var Wr=vt[Lt];typeof Wr=="object"&&oe.push(Wr)}}},ke=function(pe){for(var Ie=[];pe.$ref;){var Oe=pe.$ref,Be=Oe.split("#",2);if(delete pe.$ref,Be[0].length>0){ye.push(I(pe,Be[0],Be[1],ae,ue));return}else Ie.indexOf(Oe)===-1&&(k(pe,$,ae,Be[1]),Ie.push(Oe))}Ae(pe.items,pe.additionalProperties,pe.not,pe.contains,pe.propertyNames,pe.if,pe.then,pe.else),we(pe.definitions,pe.properties,pe.patternProperties,pe.dependencies),Te(pe.anyOf,pe.allOf,pe.oneOf,pe.items)};oe.length;){var Ne=oe.pop();fe.indexOf(Ne)>=0||(fe.push(Ne),ke(Ne))}return u.promise.all(ye)};return Q(h,h,i,s).then(function(W){return new ld(h,c)})},t.prototype.getSchemaForResource=function(n,i){if(i&&i.root&&i.root.type==="object"){var s=i.root.properties.filter(function($){return $.keyNode.value==="$schema"&&$.valueNode&&$.valueNode.type==="string"});if(s.length>0){var u=So(s[0].valueNode);if(u&&qd(u,".")&&this.contextService&&(u=this.contextService.resolveRelativePath(u,n)),u){var c=this.normalizeId(u);return this.getOrAddSchemaHandle(c).getResolvedSchema()}}}for(var h=Object.create(null),m=[],p=0,y=this.filePatternAssociations;p<y.length;p++){var k=y[p];if(k.matchesPattern(n))for(var I=0,Q=k.getSchemas();I<Q.length;I++){var W=Q[I];h[W]||(m.push(W),h[W]=!0)}}return m.length>0?this.createCombinedSchema(n,m).getResolvedSchema():this.promise.resolve(null)},t.prototype.createCombinedSchema=function(n,i){if(i.length===1)return this.getOrAddSchemaHandle(i[0]);var s="schemaservice://combinedSchema/"+encodeURIComponent(n),u={allOf:i.map(function(c){return{$ref:c}})};return this.addSchemaHandle(s,u)},t}();function Uu(t){try{}catch{}return t}var Sh=function(){function t(n,i){this.jsonSchemaService=n,this.promise=i,this.validationEnabled=!0}return t.prototype.configure=function(n){n&&(this.validationEnabled=n.validate,this.commentSeverity=n.allowComments?void 0:Ze.Error)},t.prototype.doValidation=function(n,i,s,u){var c=this;if(!this.validationEnabled)return this.promise.resolve([]);var h=[],m={},p=function(I){var Q=I.range.start.line+" "+I.range.start.character+" "+I.message;m[Q]||(m[Q]=!0,h.push(I))},y=function(I){var Q=s?cd(s.trailingCommas):Ze.Error,W=s?cd(s.comments):c.commentSeverity;if(I){if(I.errors.length&&i.root){var $=i.root,ae=$.type==="object"?$.properties[0]:null;if(ae&&ae.keyNode.value==="$schema"){var ue=ae.valueNode||ae,oe=Ee.create(n.positionAt(ue.offset),n.positionAt(ue.offset+ue.length));p(Xt.create(oe,I.errors[0],Ze.Warning,Pt.SchemaResolveError))}else{var oe=Ee.create(n.positionAt($.offset),n.positionAt($.offset+1));p(Xt.create(oe,I.errors[0],Ze.Warning,Pt.SchemaResolveError))}}else{var fe=i.validate(n,I.schema);fe&&fe.forEach(p)}ud(I.schema)&&(W=void 0),fd(I.schema)&&(Q=void 0)}for(var ye=0,Ae=i.syntaxErrors;ye<Ae.length;ye++){var we=Ae[ye];if(we.code===Pt.TrailingComma){if(typeof Q!="number")continue;we.severity=Q}p(we)}if(typeof W=="number"){var Te="Comments are not permitted in JSON.";i.comments.forEach(function(ke){p(Xt.create(ke,Te,W,Pt.CommentNotPermitted))})}return h};if(u){var k=u.id||"schemaservice://untitled/"+wh++;return this.jsonSchemaService.resolveSchemaContent(new $a(u),k,{}).then(function(I){return y(I)})}return this.jsonSchemaService.getSchemaForResource(n.uri,i).then(function(I){return y(I)})},t}(),wh=0;function ud(t){if(t&&typeof t=="object"){if(X(t.allowComments))return t.allowComments;if(t.allOf)for(var n=0,i=t.allOf;n<i.length;n++){var s=i[n],u=ud(s);if(X(u))return u}}}function fd(t){if(t&&typeof t=="object"){if(X(t.allowTrailingCommas))return t.allowTrailingCommas;if(X(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(t.allOf)for(var n=0,i=t.allOf;n<i.length;n++){var s=i[n],u=fd(s);if(X(u))return u}}}function cd(t){switch(t){case"error":return Ze.Error;case"warning":return Ze.Warning;case"ignore":return}}var dd=48,Ch=57,Ah=65,zu=97,Oh=102;function dr(t){return t<dd?0:t<=Ch?t-dd:(t<zu&&(t+=zu-Ah),t>=zu&&t<=Oh?t-zu+10:0)}function Eh(t){if(t[0]!=="#")return null;switch(t.length){case 4:return{red:dr(t.charCodeAt(1))*17/255,green:dr(t.charCodeAt(2))*17/255,blue:dr(t.charCodeAt(3))*17/255,alpha:1};case 5:return{red:dr(t.charCodeAt(1))*17/255,green:dr(t.charCodeAt(2))*17/255,blue:dr(t.charCodeAt(3))*17/255,alpha:dr(t.charCodeAt(4))*17/255};case 7:return{red:(dr(t.charCodeAt(1))*16+dr(t.charCodeAt(2)))/255,green:(dr(t.charCodeAt(3))*16+dr(t.charCodeAt(4)))/255,blue:(dr(t.charCodeAt(5))*16+dr(t.charCodeAt(6)))/255,alpha:1};case 9:return{red:(dr(t.charCodeAt(1))*16+dr(t.charCodeAt(2)))/255,green:(dr(t.charCodeAt(3))*16+dr(t.charCodeAt(4)))/255,blue:(dr(t.charCodeAt(5))*16+dr(t.charCodeAt(6)))/255,alpha:(dr(t.charCodeAt(7))*16+dr(t.charCodeAt(8)))/255}}return null}function Av(t,n,i,s){return s===void 0&&(s=1),{red:t/255,green:n/255,blue:i/255,alpha:s}}var kh=function(){function t(n){this.schemaService=n}return t.prototype.findDocumentSymbols=function(n,i,s){var u=this;s===void 0&&(s={resultLimit:Number.MAX_VALUE});var c=i.root;if(!c)return null;var h=s.resultLimit,m=n.uri;if((m==="vscode://defaultsettings/keybindings.json"||ac(m.toLowerCase(),"/user/keybindings.json"))&&c.type==="array"){for(var p=[],y=0,k=c.items;y<k.length;y++){var I=k[y];if(I.type==="object")for(var Q=0,W=I.properties;Q<W.length;Q++){var $=W[Q];if($.keyNode.value==="key"&&$.valueNode){var ae=De.create(n.uri,wo(n,I));if(p.push({name:So($.valueNode),kind:pi.Function,location:ae}),h--,h<=0)return s&&s.onResultLimitExceeded&&s.onResultLimitExceeded(m),p}}}return p}var ue=function(fe,ye,Ae){return h>=0&&(ye.type==="array"?ye.items.forEach(function(we){return ue(fe,we,Ae)}):ye.type==="object"&&ye.properties.forEach(function(we){if(h>=0){var Te=we.valueNode;if(Te){h--;var ke=De.create(n.uri,wo(n,we)),Ne=Ae?Ae+"."+we.keyNode.value:we.keyNode.value;fe.push({name:u.getKeyLabel(we),kind:u.getSymbolKind(Te.type),location:ke,containerName:Ae}),ue(fe,Te,Ne)}}})),fe},oe=ue([],c,void 0);return h<0&&(oe.pop(),s&&s.onResultLimitExceeded&&s.onResultLimitExceeded(m)),oe},t.prototype.findDocumentSymbols2=function(n,i,s){var u=this;s===void 0&&(s={resultLimit:Number.MAX_VALUE});var c=i.root;if(!c)return null;var h=s.resultLimit,m=n.uri;if((m==="vscode://defaultsettings/keybindings.json"||ac(m.toLowerCase(),"/user/keybindings.json"))&&c.type==="array"){for(var p=[],y=0,k=c.items;y<k.length;y++){var I=k[y];if(I.type==="object")for(var Q=0,W=I.properties;Q<W.length;Q++){var $=W[Q];if($.keyNode.value==="key"&&$.valueNode){var ae=wo(n,I),ue=wo(n,$.keyNode);if(p.push({name:So($.valueNode),kind:pi.Function,range:ae,selectionRange:ue}),h--,h<=0)return s&&s.onResultLimitExceeded&&s.onResultLimitExceeded(m),p}}}return p}var oe=function(ye,Ae){return h>=0&&(Ae.type==="array"?Ae.items.forEach(function(we,Te){if(we&&h>=0){h--;var ke=wo(n,we),Ne=ke,pe=String(Te),Ie=oe([],we);ye.push({name:pe,kind:u.getSymbolKind(we.type),range:ke,selectionRange:Ne,children:Ie})}}):Ae.type==="object"&&Ae.properties.forEach(function(we){var Te=we.valueNode;if(Te&&h>=0){h--;var ke=wo(n,we),Ne=wo(n,we.keyNode),pe=oe([],Te);ye.push({name:u.getKeyLabel(we),kind:u.getSymbolKind(Te.type),range:ke,selectionRange:Ne,children:pe})}})),ye},fe=oe([],c);return h<0&&(fe.pop(),s&&s.onResultLimitExceeded&&s.onResultLimitExceeded(m)),fe},t.prototype.getSymbolKind=function(n){switch(n){case"object":return pi.Module;case"string":return pi.String;case"number":return pi.Number;case"array":return pi.Array;case"boolean":return pi.Boolean;default:return pi.Variable}},t.prototype.getKeyLabel=function(n){var i=n.keyNode.value;return i&&(i=i.replace(/[\n]/g,"\u21B5")),i&&i.trim()?i:'"'+i+'"'},t.prototype.findDocumentColors=function(n,i,s){return this.schemaService.getSchemaForResource(n.uri,i).then(function(u){var c=[];if(u)for(var h=s&&typeof s.resultLimit=="number"?s.resultLimit:Number.MAX_VALUE,m=i.getMatchingSchemas(u.schema),p={},y=0,k=m;y<k.length;y++){var I=k[y];if(!I.inverted&&I.schema&&(I.schema.format==="color"||I.schema.format==="color-hex")&&I.node&&I.node.type==="string"){var Q=String(I.node.offset);if(!p[Q]){var W=Eh(So(I.node));if(W){var $=wo(n,I.node);c.push({color:W,range:$})}if(p[Q]=!0,h--,h<=0)return s&&s.onResultLimitExceeded&&s.onResultLimitExceeded(n.uri),c}}}return c})},t.prototype.getColorPresentations=function(n,i,s,u){var c=[],h=Math.round(s.red*255),m=Math.round(s.green*255),p=Math.round(s.blue*255);function y(I){var Q=I.toString(16);return Q.length!==2?"0"+Q:Q}var k;return s.alpha===1?k="#"+y(h)+y(m)+y(p):k="#"+y(h)+y(m)+y(p)+y(Math.round(s.alpha*255)),c.push({label:k,textEdit:Nt.replace(u,JSON.stringify(k))}),c},t}();function wo(t,n){return Ee.create(t.positionAt(n.offset),t.positionAt(n.offset+n.length))}var Th={schemaAssociations:{},schemas:{}};function Ph(t,n){var i=[],s=[],u=[],c=-1,h=yo(t.getText(),!1),m=h.scan();function p(Ie){i.push(Ie),s.push(u.length)}for(;m!==17;){switch(m){case 1:case 3:{var y=t.positionAt(h.getTokenOffset()).line,k={startLine:y,endLine:y,kind:m===1?"object":"array"};u.push(k);break}case 2:case 4:{var I=m===2?"object":"array";if(u.length>0&&u[u.length-1].kind===I){var k=u.pop(),Q=t.positionAt(h.getTokenOffset()).line;k&&Q>k.startLine+1&&c!==k.startLine&&(k.endLine=Q-1,p(k),c=k.startLine)}break}case 13:{var y=t.positionAt(h.getTokenOffset()).line,W=t.positionAt(h.getTokenOffset()+h.getTokenLength()).line;h.getTokenError()===1&&y+1<t.lineCount?h.setPosition(t.offsetAt(Me.create(y+1,0))):y<W&&(p({startLine:y,endLine:W,kind:Tt.Comment}),c=y);break}case 12:{var $=t.getText().substr(h.getTokenOffset(),h.getTokenLength()),ae=$.match(/^\/\/\s*#(region\b)|(endregion\b)/);if(ae){var Q=t.positionAt(h.getTokenOffset()).line;if(ae[1]){var k={startLine:Q,endLine:Q,kind:Tt.Region};u.push(k)}else{for(var ue=u.length-1;ue>=0&&u[ue].kind!==Tt.Region;)ue--;if(ue>=0){var k=u[ue];u.length=ue,Q>k.startLine&&c!==k.startLine&&(k.endLine=Q,p(k),c=k.startLine)}}}break}}m=h.scan()}var oe=n&&n.rangeLimit;if(typeof oe!="number"||i.length<=oe)return i;n&&n.onRangeLimitExceeded&&n.onRangeLimitExceeded(t.uri);for(var fe=[],ye=0,Ae=s;ye<Ae.length;ye++){var we=Ae[ye];we<30&&(fe[we]=(fe[we]||0)+1)}for(var Te=0,ke=0,ue=0;ue<fe.length;ue++){var Ne=fe[ue];if(Ne){if(Ne+Te>oe){ke=ue;break}Te+=Ne}}for(var pe=[],ue=0;ue<i.length;ue++){var we=s[ue];typeof we=="number"&&(we<ke||we===ke&&Te++<oe)&&pe.push(i[ue])}return pe}function Lh(t,n,i){function s(m){for(var p=t.offsetAt(m),y=i.getNodeFromOffset(p,!0),k=[];y;){switch(y.type){case"string":case"object":case"array":var I=y.offset+1,Q=y.offset+y.length-1;I<Q&&p>=I&&p<=Q&&k.push(u(I,Q)),k.push(u(y.offset,y.offset+y.length));break;case"number":case"boolean":case"null":case"property":k.push(u(y.offset,y.offset+y.length));break}if(y.type==="property"||y.parent&&y.parent.type==="array"){var W=h(y.offset+y.length,5);W!==-1&&k.push(u(y.offset,W))}y=y.parent}for(var $=void 0,ae=k.length-1;ae>=0;ae--)$=ju.create(k[ae],$);return $||($=ju.create(Ee.create(m,m))),$}function u(m,p){return Ee.create(t.positionAt(m),t.positionAt(p))}var c=yo(t.getText(),!0);function h(m,p){c.setPosition(m);var y=c.scan();return y===p?c.getTokenOffset()+c.getTokenLength():-1}return n.map(s)}function Ih(t){var n=t.promiseConstructor||Promise,i=new xh(t.schemaRequestService,t.workspaceContext,n);i.setSchemaContributions(Th);var s=new nh(i,t.contributions,n,t.clientCapabilities),u=new ih(i,t.contributions,n),c=new kh(i),h=new Sh(i,n);return{configure:function(m){i.clearExternalSchemas(),m.schemas&&m.schemas.forEach(function(p){i.registerExternalSchema(p.uri,p.fileMatch,p.schema)}),h.configure(m)},resetSchema:function(m){return i.onResourceChange(m)},doValidation:h.doValidation.bind(h),parseJSONDocument:function(m){return Zd(m,{collectComments:!0})},newJSONDocument:function(m,p){return Qd(m,p)},doComplete:s.doComplete.bind(s),findDocumentSymbols:c.findDocumentSymbols.bind(c),findDocumentSymbols2:c.findDocumentSymbols2.bind(c),findColorSymbols:function(m,p){return c.findDocumentColors(m,p).then(function(y){return y.map(function(k){return k.range})})},findDocumentColors:c.findDocumentColors.bind(c),getColorPresentations:c.getColorPresentations.bind(c),doHover:u.doHover.bind(u),getFoldingRanges:Ph,getSelectionRanges:Lh,format:function(m,p,y){var k=void 0;if(p){var I=m.offsetAt(p.start),Q=m.offsetAt(p.end)-I;k={offset:I,length:Q}}var W={tabSize:y?y.tabSize:4,insertSpaces:y?y.insertSpaces:!0,eol:`
201
- `};return d(m.getText(),k,W).map(function($){return Nt.replace(Ee.create(m.positionAt($.offset),m.positionAt($.offset+$.length)),$.content)})}}}var hd=(t,n,i)=>new Promise((s,u)=>{var c=p=>{try{m(i.next(p))}catch(y){u(y)}},h=p=>{try{m(i.throw(p))}catch(y){u(y)}},m=p=>p.done?s(p.value):Promise.resolve(p.value).then(c,h);m((i=i.apply(t,n)).next())});let Co=null;ot.Qg&&(Co=f(46944),f(13156),f(82518),f(33201),f(77436),f(29641),f(71628),f(6766),f(49812),f(17664),f(83539));const Ga=Ih({});Co&&(Co.registerHelper("lint","json",function(t,n){return hd(this,null,function*(){const{schema:i,setError:s}=n;Ga.configure({validate:!0,schemas:[{uri:"stub://"+n.id,fileMatch:["*"],schema:i}]});const u=Wu.create(n.id+".json","json",0,t),c=Ga.parseJSONDocument(u),h=yield Ga.doValidation(u,c);return h.length?s&&s(h[0].message):s&&s(void 0),h.map(m=>({from:Co.Pos(m.range.start.line,m.range.start.character),to:Co.Pos(m.range.end.line,m.range.end.character),message:m.message}))})}),Co.registerHelper("hint","json",(t,n)=>hd(void 0,null,function*(){const i=n.schema;if(!i)return;Ga.configure({validate:!0,schemas:[{uri:"stub://"+n.id,fileMatch:["*"],schema:i}]});const s=t.getDoc().getCursor(),u=t.getTokenAt(s),c=Wu.create(n.id+".json","json",0,t.getValue()),h=Ga.parseJSONDocument(c),m=yield Ga.doComplete(c,{line:s.line,character:s.ch},h),p=k=>{let I="";for(;k--;)I+=" ";return I};let y=m?m.items.map(k=>({text:k.insertText,displayText:k.label,filter:k.filterText||k.label,from:{line:k.textEdit.range.start.line,ch:k.textEdit.range.start.character},to:{line:k.textEdit.range.end.line,ch:k.textEdit.range.end.character},hint:(I,Q,W)=>{const $="_$__REDOC_CURSOR_HERE";let ae=W.text.replace(/(\$1|\${1:[^}]+})/,$)||"";if(ae=ae.replace(/(\$\d+|\${[^}]+})/g,"")||"",I.setSelection(W.from,W.to),ae.indexOf(`
202
- `)>-1){const oe=I.getLine(I.getCursor().line).search(/(\S|$)/);ae=ae.replace(/\n/g,`
203
- `+p(oe))}I.replaceSelection(ae);const ue=I.getSearchCursor($,W.from);ue.findNext()&&(I.setCursor(ue.from()),ue.replace(""))}})):[];return/(property|string)/.test(u.type||"")&&(y=y.filter(k=>k.filter.replace(/(^"|"$)/g,"").startsWith(u.string.replace(/(^"|"$)/g,"")))),{from:Co.Pos(s.line,u.start),to:Co.Pos(s.line,s.ch),list:y}})));const Mh=(0,kt.vJ)`
204
- .cm-s-material.CodeMirror {
205
- background-color: var(--bg-overlay) !important;
206
- color: var(--code-block-text-color) !important;
207
- font-family: var(--code-block-font-family);
208
- font-weight: var(--code-block-font-weight);
209
- font-size: var(--code-block-font-size);
210
- line-height: var(--code-block-line-height);
211
- padding: var(--code-block-padding);
212
- white-space: var(--code-wrap, pre);
213
- }
214
-
215
- .CodeMirror-lint-mark-error {
216
- background-size: 4px;
217
- background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAYAAAD+Bd/7AAAAVUlEQVR42mNgQAL/GRjigPg/EP8FYntkCX4gtoVKgvE/BoabcEVAhj6S5DUgfgFl/wFJ2gPxL6iuT1DF+kD2R5AYA5KRj6CS/FAMYvszIBltz4AFAAD9fz0YtLg13wAAAABJRU5ErkJggg==') !important;
218
- }
219
-
220
- .cm-s-material .CodeMirror-code .cm-string.cm-property {
221
- color: var(--code-block-tokens-property-string-color);
222
- }
223
-
224
- .cm-s-material .CodeMirror-code .cm-string {
225
- color: var(--code-block-tokens-string-color);
226
- }
227
-
228
- .cm-s-material .CodeMirror-code .cm-atom {
229
- color: var(--text-secondary);
230
- }
231
-
232
- div .cm-s-material .CodeMirror-matchingbracket {
233
- outline: 1px solid grey;
234
- text-decoration: none;
235
- color: var(--color-gold-8) !important;
236
- }
237
-
238
- div .cm-s-material .CodeMirror-nonmatchingbracket {
239
- color: var(--color-red-8) !important;
240
- }
241
-
242
- .react-codemirror2 {
243
- display: flex;
244
- flex-direction: column;
245
- justify-content: flex-start;
246
- overflow: hidden;
247
-
248
- flex: 1;
249
- }
250
-
251
- .CodeMirror {
252
- flex: 1;
253
- border-radius: var(--panel-border-radius);
254
- }
255
- `,Nh=({fieldState:t,fieldApi:n,onChange:i,onBlur:s,forwardedRef:u,id:c,mode:h,schema:m})=>{let p;const y=(ue,oe)=>{/^[a-zA-Z0-9_":]$/.test(oe.key)&&p.execCommand("autocomplete")},k=ue=>{p=ue,p.on("keyup",y)},I=()=>{p.refresh()},Q=()=>p.showHint({completeSingle:!0});(0,Vt.useMount)(()=>{setTimeout(()=>{p.refresh()},0),document.addEventListener("click",I)}),(0,Vt.useUnmount)(()=>{document.removeEventListener("click",I)});const{value:W}=t,{setValue:$,setTouched:ae}=n;return B.createElement(B.Fragment,null,B.createElement(Mh,null),B.createElement(ho.fk,{editorDidMount:k,value:W||"",ref:u,onBeforeChange:(ue,oe,fe)=>{$(fe),i&&i(fe)},onBlur:ue=>{ae(!1),s&&s(ue)},options:{mode:h||Wa.Tr.JSON,theme:"material",matchBrackets:!0,autoCloseBrackets:!0,tabSize:2,foldGutter:!0,extraKeys:{"Cmd-Space":Q,"Ctrl-Space":Q},hintOptions:{id:c,completeSingle:!1,schema:m}}}))},Dh=(0,Zr.UU)(Nh);var fc=f(91582);function Fh({mediaType:t,mediaContent:n,properties:i,id:s,resolvedBody:u,formApi:c,getActiveSample:h,validate:m}){const p=(0,fc.yN)(n),y=t.examples||{},k=Object.keys(y),I=t.schema,Q=Na(I||{},t.name)||t.name===Wa.Tr.MULTIPART||t.name===Wa.Tr.URL_ENCODED,{exampleKey:W}=(0,Yo.C6)(t.operation,y),$=(0,ot.YQ)((0,gt.P6)(s,t.name,W,y))||(0,gt.oY)(y[W],i),ae=(0,B.useCallback)((fe="",ye="",Ae=[])=>we=>{(0,ot.WW)((0,gt.P6)(s,fe,ye,Ae),we)},[s]),ue=(0,B.useCallback)(fe=>{p&&p(fe),c.setValue("body",h(fe))},[c,h,p]),oe=(0,B.useCallback)((fe,ye)=>{c.setValue(`body.${fe}`,ye)},[c]);return B.createElement(B.Fragment,null,k.length&&k.length!==1&&B.createElement(Yo.b_,{examples:y,onChange:ue,exampleKey:W,panel:"try-it"})||null,Q?B.createElement(_s,{mediaType:t,formApi:c,onChange:oe}):B.createElement(Dh,{id:"body"+s,field:"body",initialValue:$,schema:(u?.content[t.name]||{}).schema,mode:t.name,validate:m,onChange:ae(t.name,W,y)}))}const Rh=(0,B.memo)(Fh);var Bh=f(52383),jh=Object.defineProperty,Wh=Object.defineProperties,Hh=Object.getOwnPropertyDescriptors,pd=Object.getOwnPropertySymbols,Uh=Object.prototype.hasOwnProperty,zh=Object.prototype.propertyIsEnumerable,vd=(t,n,i)=>n in t?jh(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i,_h=(t,n)=>{for(var i in n||(n={}))Uh.call(n,i)&&vd(t,i,n[i]);if(pd)for(var i of pd(n))zh.call(n,i)&&vd(t,i,n[i]);return t},Vh=(t,n)=>Wh(t,Hh(n));function $h({body:{content:t},formApi:n,resolvedBody:i,properties:s,id:u,validate:c,pointer:h}){const m=(0,Nn.sJ)(Bh.UF),{examples:p,name:y}=t&&(0,Cn.getActiveMediaType)(t,m)||{},k=(0,B.useCallback)(W=>{if(!t||!t.hasSample||!p?.[W])return"";const $=y&&(0,ot.YQ)((0,gt.P6)(u,y,W,p)),ae=$?JSON.parse($):p?.[W];return(0,gt.oY)(ae,s)},[y,p,u,t,s]),{activeExampleName:I}=(0,Nn.sJ)((0,zs.N)(h));(0,B.useEffect)(()=>{if(y){const W=(0,gt.P6)(u,y,I,p);n.setValue("body",(0,ot.YQ)(W)||k(I||""))}else n.setValue("body",JSON.stringify(s||{},null,2))},[p,I,y,n,k,u,s]);const Q=W=>B.createElement(bu.C,Vh(_h({},W),{variant:"dark",fullWidth:!0,Label:Su,Dropdown:xu.Lt}));return B.createElement(B.Fragment,null,B.createElement(Gf.d,{content:t,renderDropdown:Q},W=>B.createElement(Rh,{mediaType:W,mediaContent:t,resolvedBody:i,id:u,properties:s,getActiveSample:k,formApi:n,validate:c})))}const Gh=(0,B.memo)($h),Kh=({initValue:t,paramEnum:n,fieldApi:i})=>{const[s,u]=(0,B.useState)(),c=n.map((p,y)=>({idx:y,value:p})),h=p=>{i.setValue(p.value),u(p.value)};(0,Vt.useMount)(()=>{if(t)if(Array.isArray(t)){const p=t.length?t[0]:"";u(p),i.setValue(p)}else u(t),i.setValue(t)});const m=()=>{i.setValue(""),u("")};return B.createElement(Qr.VD,{clearable:!0,fullWidth:!0,variant:"dark",value:s,options:c,handleClear:m,onChange:h})},Yh=(0,Zr.UU)(Kh),Xh=({name:t,param:n,place:i,renderParameter:s})=>{var u,c,h,m,p;const[y,k]=B.useState([]),I=()=>{k([...y,y.length?y[y.length-1]+1:0])},Q=$=>{k(y.filter(ae=>ae!==$))},W=(u=n.schema.items)!=null&&u.fields?(c=n.schema.items)==null?void 0:c.fields:[{schema:((h=n.schema.items)==null?void 0:h.schema)||n.schema.items,name:"",required:n.required,description:(m=n.schema.items)==null?void 0:m.description,externalDocs:(p=n.schema.items)==null?void 0:p.externalDocs,deprecated:!1,toggle:()=>null,expanded:!1}];return B.createElement(B.Fragment,null,B.createElement(gd,null,B.createElement(Ge.lX,{required:n.required},t,"(",y.length," items)"),B.createElement("span",{onClick:I},"Add item +")),y?.map(($,ae)=>B.createElement(gd,{key:$},W.map(ue=>s(ue,i,`${t}.[${$}]`,`[${ae}]${ue.name&&"."+ue.name}`,B.createElement(Jh,{onClick:()=>Q($)},"Delete"))))))},gd=kt.ZP.div`
256
- display: flex;
257
- width: 100%;
258
- align-items: center;
259
- justify-content: space-between;
260
- flex-wrap: wrap;
261
- margin-bottom: 10px;
262
- label {
263
- padding-bottom: 0;
264
- overflow: hidden;
265
- text-overflow: ellipsis;
266
- line-height: 1.5;
267
- }
268
- span {
269
- cursor: pointer;
270
- margin-left: auto;
271
- color: var(--text-secondary);
272
- &:hover {
273
- color: #fff;
274
- }
275
- }
276
- `,Jh=kt.ZP.span`
277
- background: transparent;
278
- border: none;
279
- cursor: pointer;
280
- position: relative;
281
- margin-left: 5px;
282
- display: inline-block;
283
- `;var Qs=(t=>(t.ARRAY="array",t.OBJECT="object",t))(Qs||{});function Qh({schema:t,example:n}){return`(${t.type})`+(n?` ${n}`:"")}function Zh(t){const n={};return t.forEach(i=>{i.in&&(n[i.in]||(n[i.in]=[]),n[i.in].push(i))}),n}function qh({schema:t,required:n}){return i=>{if(n&&!i)return"Field is required";if(n&&t.type===Qs.ARRAY&&Array.isArray(i)){if(i.length>(t.rawSchema&&t.rawSchema.maxItems||1/0))return`Too many items selected, maximum ${t.rawSchema.maxItems}`;if(i.length<(t.rawSchema&&t.rawSchema.minItems||0)){const s=t.rawSchema.minItems;return`You should select at least ${s===1?`${s} item`:`${s} items`}`}}}}function ep(t){if(t.type===Qs.ARRAY){const n=t.default||t.example;if(!n&&typeof t.rawSchema.items!="boolean"&&Array.isArray(t.rawSchema.items)){if(t.rawSchema.items[0].default)return[t.rawSchema.items[0].default];if(t.rawSchema.items[0].example)return[t.rawSchema.items[0].example]}if(!n&&typeof t.rawSchema.items!="boolean"&&!Array.isArray(t.rawSchema.items)&&(0,ot.Kn)(t.rawSchema.items)){if(t.rawSchema.items.default)return[t.rawSchema.items.default];if(t.rawSchema.items.example)return[t.rawSchema.items.example]}return n||[]}else return(Number.isInteger(t.default)?t.default.toString():t.default)||t.example}function tp({oneOfType:t}){return t}const rp=["path","query","cookie","header"];function np({id:t,param:n,values:i}){const s=(0,B.useMemo)(()=>qh(n),[n]),u=Array.isArray(n.schema.enum)&&n.schema.enum.length?n.schema.enum:void 0,c=ep(n.schema),h=t.split(".").map(m=>(0,ot.dw)(m));return u?B.createElement(Ge.NI,null,B.createElement(Yh,{initValue:c,paramEnum:u,field:t})):B.createElement(jt.Xn,{fullWidth:!0,"data-cy":"parameter-input",id:t,field:t,placeholder:Qh(n),validate:s,initialValue:c||(0,ot.U2)(i,h),validateOnBlur:!0,validateOnChange:!0})}function ip({values:t,operation:n}){const i=(0,B.useMemo)(()=>Zh(n.parameters||[]),[n]),s=(c,h,m,p,y)=>{var k;const I=m?(0,ot.s1)(m,c.name):c.name,Q=tp(c.schema),W=m?[h,m]:[c.in],$=(0,ot.s1)(...W,(0,ot.A8)(c.name));return Q&&console.warn(`Unsupported parameter definition: "${Q}"`),(Array.isArray(c.schema.type)?c.schema.type:[c.schema.type]).includes(Qs.ARRAY)?B.createElement(Xh,{key:$,name:I,param:c,place:h,renderParameter:s}):c.schema.type===Qs.OBJECT?(k=c.schema.fields)==null?void 0:k.map(ue=>s(ue,h,I)):B.createElement(Ge.NI,{key:$},B.createElement(Ge.lX,{required:c.required},p||I,": ",y),Q?B.createElement(Ge.GE,null,"Unsupported field schema definition"):B.createElement(np,{id:$,param:c,values:t}))},u=c=>{const h=i[c];return!h||!h.length?null:B.createElement(B.Fragment,{key:c},B.createElement(Ge.NI,null,B.createElement(Ge.iG,null," # ",c," parameters "),B.createElement("span",null,"\xA0")),h.map(m=>s(m,c)))};return B.createElement(Ge.iA,null,rp.map(u))}var op=(t,n,i)=>new Promise((s,u)=>{var c=p=>{try{m(i.next(p))}catch(y){u(y)}},h=p=>{try{m(i.throw(p))}catch(y){u(y)}},m=p=>p.done?s(p.value):Promise.resolve(p.value).then(c,h);m((i=i.apply(t,n)).next())});function ap(t){return op(this,null,function*(){return(yield fetch(t)).json()})}const sp=kt.ZP.div`
284
- position: relative;
285
- height: 4px;
286
- display: block;
287
- width: 100%;
288
- background-color: var(--linear-progress-background-color);
289
- border-radius: var(--border-radius);
290
- background-clip: padding-box;
291
- margin: 0.5rem 0 1rem 0;
292
- overflow: hidden;
293
-
294
- .determinate {
295
- position: absolute;
296
- top: 0;
297
- bottom: 0;
298
- background-color: var(--linear-progress-color);
299
- transition: width 0.3s linear;
300
- }
301
- .indeterminate {
302
- background-color: var(--linear-progress-color);
303
- }
304
- .indeterminate:before {
305
- content: '';
306
- position: absolute;
307
- background-color: inherit;
308
- top: 0;
309
- left: 0;
310
- bottom: 0;
311
- will-change: left, right;
312
- -webkit-animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
313
- animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
314
- }
315
- .indeterminate:after {
316
- content: '';
317
- position: absolute;
318
- background-color: inherit;
319
- top: 0;
320
- left: 0;
321
- bottom: 0;
322
- will-change: left, right;
323
- -webkit-animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
324
- animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
325
- -webkit-animation-delay: 1.15s;
326
- animation-delay: 1.15s;
327
- }
328
-
329
- @-webkit-keyframes indeterminate {
330
- 0% {
331
- left: -35%;
332
- right: 100%;
333
- }
334
- 60% {
335
- left: 100%;
336
- right: -90%;
337
- }
338
- 100% {
339
- left: 100%;
340
- right: -90%;
341
- }
342
- }
343
- @keyframes indeterminate {
344
- 0% {
345
- left: -35%;
346
- right: 100%;
347
- }
348
- 60% {
349
- left: 100%;
350
- right: -90%;
351
- }
352
- 100% {
353
- left: 100%;
354
- right: -90%;
355
- }
356
- }
357
- @-webkit-keyframes indeterminate-short {
358
- 0% {
359
- left: -200%;
360
- right: 100%;
361
- }
362
- 60% {
363
- left: 107%;
364
- right: -8%;
365
- }
366
- 100% {
367
- left: 107%;
368
- right: -8%;
369
- }
370
- }
371
- @keyframes indeterminate-short {
372
- 0% {
373
- left: -200%;
374
- right: 100%;
375
- }
376
- 60% {
377
- left: 107%;
378
- right: -8%;
379
- }
380
- 100% {
381
- left: 107%;
382
- right: -8%;
383
- }
384
- }
385
- `,md=()=>B.createElement(sp,null,B.createElement("div",{className:"indeterminate"})),lp=kt.ZP.div`
386
- font-family: var(--font-family-monospaced);
387
- margin-top: 10px;
388
- line-height: 1;
389
- padding-left: 10px;
390
- border-left: 1px solid gray;
391
- `,up=kt.ZP.div`
392
- margin-bottom: 15px;
393
- `,fp=kt.ZP.div`
394
- padding: 8px 0 20px;
395
- `,cp=kt.ZP.div`
396
- padding: 4px 0;
397
- `;var dp=Object.defineProperty,hp=Object.defineProperties,pp=Object.getOwnPropertyDescriptors,yd=Object.getOwnPropertySymbols,vp=Object.prototype.hasOwnProperty,gp=Object.prototype.propertyIsEnumerable,bd=(t,n,i)=>n in t?dp(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i,mp=(t,n)=>{for(var i in n||(n={}))vp.call(n,i)&&bd(t,i,n[i]);if(yd)for(var i of yd(n))gp.call(n,i)&&bd(t,i,n[i]);return t},yp=(t,n)=>hp(t,pp(n));const bp=kt.ZP.input`
398
- cursor: pointer;
399
- margin-left: 0;
400
- margin-right: 5px;
401
- height: 20px;
402
-
403
- align-self: baseline;
404
- margin-top: 0;
405
- margin-bottom: 0;
406
- `,xp=kt.ZP.label`
407
- display: inline-block;
408
- cursor: pointer;
409
- vertical-align: middle;
410
- position: relative;
411
- text-overflow: ellipsis;
412
- overflow: hidden;
413
-
414
- overflow-wrap: break-word;
415
- line-height: 20px;
416
- `,Sp=kt.ZP.div`
417
- width: ${({fullWidth:t})=>t?"100%":"50%"};
418
- display: inline-flex;
419
- align-items: center;
420
-
421
- & > label {
422
- white-space: ${({nowrap:t})=>t?"nowrap":"normal"};
423
- }
424
-
425
- ${({nowrap:t})=>t?"":`
426
- :not(:first-child) {
427
- margin-top: 5px;
428
- }
429
- `}
430
- `;function wp(t,n){const{fullWidth:i,id:s,label:u,nowrap:c}=t;return B.createElement(Sp,{fullWidth:i,nowrap:c},B.createElement(bp,yp(mp({},t),{type:"checkbox",ref:n})),B.createElement(xp,{htmlFor:s},u))}const xd=(0,B.forwardRef)(wp),Cp=11,Ap=({items:t,fieldApi:n,validateOnChange:i,maxDisplayedItems:s,showControls:u,trimItemsLength:c})=>{const[h,m]=(0,B.useState)(!0),p=ue=>{const oe=ue.target.value,fe=ue.target.checked;n.setTouched(!0);const ye=n.getValue()||[];let Ae;if(fe)Ae=[...ye,oe];else{const we=ye.indexOf(oe);Ae=[...ye.slice(0,we),...ye.slice(we+1)]}n.setValue(Ae)},y=ue=>n.getValue().includes(ue),k=()=>{m(ue=>!ue)},I=()=>{n.setValue(t)},Q=()=>{n.setValue([])},W=n.getError(),$=s||Cp,ae=c&&h?t.slice(0,$):t;return B.createElement("div",null,u?B.createElement(Vt.CodeBlockControls,{controls:{select:{onClick:I,label:"Select all",tooltipText:"Select all checkboxes"},deselect:{onClick:Q,label:"Deselect all",tooltipText:"Deselect all checkboxes"}}}):null,B.createElement(Ep,null,ae.map(ue=>B.createElement(xd,{fullWidth:!0,id:ue,value:ue,checked:y(ue),label:ue,key:ue,onChange:oe=>{p(oe),i&&n.validate()}})),t.length>$&&c?B.createElement(kp,{onClick:()=>{k()}},h?"Show all":"Collapse"):null),W?B.createElement(Ge.Xq,null,W):"")},Op=(0,Zr.UU)(Ap),Ep=kt.ZP.div`
431
- padding: 10px;
432
- border: 1px solid var(--border-primary);
433
- border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
434
- `,kp=(0,kt.ZP)(Vt.CodeBlockControlButton)`
435
- float: right;
436
- `;function Sd(t){const{scopes:n,id:i}=t;let s=[];try{s=JSON.parse((0,ot.YQ)(`auth.${i}.scopes`))}catch{}return!n||!n.length?B.createElement(B.Fragment,null):B.createElement(Ge.NI,null,B.createElement(Ge.lX,null," Scopes: "),B.createElement(Op,{field:`auth.${i}.scopes`,initialValue:s,items:n,showControls:!0,trimItemsLength:!0}))}const Tp=({token:t,loading:n,error:i})=>n?B.createElement(Ge.GE,null,"Please, finish your authorization flow or cancel authorization."):i?B.createElement(lp,null,B.createElement(Ge.Xq,null,i)):t?.access_token?null:B.createElement(Ge.GE,null," No Access Token. Please, Authorize. ");var Pp=Object.defineProperty,Lp=Object.defineProperties,Ip=Object.getOwnPropertyDescriptors,wd=Object.getOwnPropertySymbols,Mp=Object.prototype.hasOwnProperty,Np=Object.prototype.propertyIsEnumerable,Cd=(t,n,i)=>n in t?Pp(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i,_u=(t,n)=>{for(var i in n||(n={}))Mp.call(n,i)&&Cd(t,i,n[i]);if(wd)for(var i of wd(n))Np.call(n,i)&&Cd(t,i,n[i]);return t},cc=(t,n)=>Lp(t,Ip(n)),Dp=(t,n,i)=>new Promise((s,u)=>{var c=p=>{try{m(i.next(p))}catch(y){u(y)}},h=p=>{try{m(i.throw(p))}catch(y){u(y)}},m=p=>p.done?s(p.value):Promise.resolve(p.value).then(c,h);m((i=i.apply(t,n)).next())});function Fp(t){if(!t)return"Field is required"}const Vu=({usePkce:t,form:n,id:i,formApi:s,flow:u,tokenUrl:c,authCorsProxyUrl:h,tokenEndpointAuthMethod:m,server:p,scopes:y,authorizationUrl:k,defaultValues:I,clientId:Q})=>{var W,$,ae,ue;const{oAuth2RedirectURI:oe,routingBasePath:fe}=(0,Nn.sJ)(ci.lk),[ye,Ae]=(0,B.useState)(null),[we,Te]=(0,B.useState)(!1),[ke,Ne]=(0,B.useState)(!1),[pe,Ie]=(0,B.useState)(void 0),[Oe,Be]=(0,B.useState)(void 0),[rt,Lt]=(0,B.useState)(void 0),vt=(($=(W=n.values)==null?void 0:W.auth)==null?void 0:$[i])||{},Wr=((ue=(ae=n.errors)==null?void 0:ae.auth)==null?void 0:ue[i])||{},Zn=pe!==void 0&&Oe!==rt?{label:"sync",onClick:()=>{pe&&Be(rt)}}:void 0;(0,B.useEffect)(()=>{if(t){const Ar=(0,ln.CY)(43);fu(Ar).then(Kr=>{Ie(Ar),Be(Kr),Lt(Kr)})}},[t]);const Bi=Ar=>{if(!Ar||(s.validate(),!(0,ln.Qr)(Wr)))return;Te(!0),Ae(null);const Kr=h?h+(0,gt.jg)(Ar):Ar,Fn=h&&c?h+(0,gt.jg)(c):c,na=s.getValue(`auth.${i}.scopes`),Ao={authorizationUrl:Kr.startsWith("http")?Kr:p+Kr,clientId:vt.client_id,scopes:na,redirectUri:oe,routingBasePath:fe,successCallback:ei=>{s.setValue(`auth.${i}.token`,ei),Te(!1),Ae(null)},errorCallback:ei=>{Te(!1),Ae(ei?.message||"Failed to retrieve the access token")}};if(u==="implicit"&&un.authorizeImplicit(Ao),!(0,gt.xl)(m)){console.log(`Unsupported token endpoint auth method: ${m}`);return}u==="authorizationCode"&&un.authorizeAuthorizationCode(_u(cc(_u({},Ao),{tokenUrl:Fn?.startsWith("http")?Fn:p+Fn,clientSecret:vt.client_secret,extraHeaders:(0,gt.Or)({authMethod:m,clientId:vt.client_id,clientSecret:vt.client_secret})}),t&&{codeVerifier:pe,codeChallenge:Oe}))},qn=()=>{Yt(),Ae(null)},Ir=()=>{Te(!1),Ae(null),un.clearRedirectData(u)},Yt=()=>{s.setValue(`auth.${i}.token`,"")},vr=()=>{Ne(Ar=>!Ar)},en=Ar=>Dp(void 0,[Ar],function*({target:{value:Kr}}){const Fn=yield fu(Kr);Ie(Kr),Lt(Fn)});if(!k)return B.createElement(Ge.Xq,null,"No flow info");let Gr=(0,ot.YQ)(`auth.${i}.token`)||JSON.stringify(I?.token);Gr=Gr?JSON.parse(Gr):"";const On=(0,ot.Al)(i,"client_id"),ji={field:`auth.${i}.client_id`,fullWidth:!0,initialValue:(0,ot.YQ)(`auth.${i}.client_id`)||Q||I?.client_id,initValue:(0,ot.YQ)(`auth.${i}.client_id`)||Q||I?.client_id,placeholder:"Your OAuth2 app Client ID",validate:Fp,validateOnBlur:!0,validateOnChange:!0};return B.createElement("div",null,B.createElement(Ge.n5,null,B.createElement(Ge.NI,null,B.createElement(Ge.lX,null," Client ID: "),On?B.createElement(jt.F0,cc(_u({},ji),{options:On})):B.createElement(jt.Xn,cc(_u({},ji),{"data-cy":"client-id-input",panel:"try-it"}))),u==="authorizationCode"&&B.createElement(B.Fragment,null,(!t?.hideClientSecretInput||!t)&&B.createElement(Ge.NI,null,B.createElement(Ge.lX,null,"Client Secret:"),B.createElement(jt.Xn,{type:"password",fullWidth:!0,field:`auth.${i}.client_secret`,initialValue:(0,ot.YQ)(`auth.${i}.client_secret`)||I?.client_secret,validateOnBlur:!0,validateOnChange:!0,panel:"try-it","data-cy":"client-secret-input"})),t&&!t.disableManualConfiguration&&B.createElement(fp,null,B.createElement(xd,{id:"pkce-opitons-toggle",label:"Configure PKCE manually",checked:ke,onChange:vr,"data-cy":"pkce-options-toggle"}),ke&&B.createElement(cp,null,B.createElement(Ge.NI,null,B.createElement(Ge.lX,null,"Code Verifier"),B.createElement(jt.nv,{fullWidth:!0,value:pe,onChange:en,panel:"try-it","data-cy":"code-verifier-input"})),B.createElement(Ge.NI,null,B.createElement(Ge.lX,null,"Code Challenge"),B.createElement(jt.nv,{fullWidth:!0,value:Oe,onChange:({target:{value:Ar}})=>{Be(Ar)},inputActionButton:Zn,panel:"try-it","data-cy":"code-challenge-input"}))))),B.createElement(jt.Xn,{fullWidth:!0,field:`auth.${i}.token`,type:"hidden",initialValue:Gr,panel:"try-it"}),B.createElement(Sd,{id:i,scopes:y}),vt.token&&vt.token.access_token?B.createElement(Ge.NI,null,B.createElement(Ge.lX,null," Access Token: "),B.createElement(jt.nv,{disabled:!0,type:"password",fullWidth:!0,value:vt.token.access_token,panel:"try-it"})):null),B.createElement(up,null,vt.token&&vt.token.access_token?B.createElement(Vt.Button,{fullWidth:!0,onClick:qn},"Log out"):we?B.createElement(B.Fragment,null,B.createElement(Vt.Button,{fullWidth:!0,onClick:Ir},"Cancel"),B.createElement(md,null)):B.createElement(Vt.Button,{fullWidth:!0,disabled:!(0,ln.Qr)(Wr),onClick:()=>{Bi(k)}},"Authorize")),we||ye||!vt.token||!vt.token.access_token&&B.createElement(Tp,{loading:we,error:ye,token:vt.token}))};var Rp=(t,n,i)=>new Promise((s,u)=>{var c=p=>{try{m(i.next(p))}catch(y){u(y)}},h=p=>{try{m(i.throw(p))}catch(y){u(y)}},m=p=>p.done?s(p.value):Promise.resolve(p.value).then(c,h);m((i=i.apply(t,n)).next())});function Bp(t){var n,i;const{scheme:s,defaultValues:u}=t,[c,h]=(0,B.useState)({}),[m,p]=(0,B.useState)(),[y,k]=(0,B.useState)(!1);(0,B.useEffect)(()=>{I(s.openIdConnectUrl)},[s.openIdConnectUrl]);const I=Q=>Rp(this,null,function*(){k(!0),p("");try{const W=yield ap(Q);h(W)}catch(W){p(W.message)}k(!1)});return y?B.createElement(jp,null):m?B.createElement(Ad,{message:m}):B.createElement("div",null,B.createElement("div",null,(n=c?.response_types_supported)!=null&&n.includes("token")?B.createElement(B.Fragment,null,B.createElement(Qr.S6,null,"OAuth2 Implicit Flow"),B.createElement(Vu,{key:t.id,authorizationUrl:c.authorization_endpoint,authCorsProxyUrl:t.authCorsProxyUrl,scopes:c.scopes_supported,server:t.server,id:t.id,form:t.form,formApi:t.formApi,clientId:t.clientId,flow:"implicit",defaultValues:u})):(i=c?.response_types_supported)!=null&&i.includes("code")?B.createElement(B.Fragment,null,B.createElement(Qr.S6,null,"OAuth2 Authorization Flow"),B.createElement(Vu,{key:t.id,authorizationUrl:c.authorization_endpoint,tokenUrl:c.token_endpoint,authCorsProxyUrl:t.authCorsProxyUrl,scopes:c.scopes_supported,server:t.server,id:t.id,form:t.form,formApi:t.formApi,clientId:t.clientId,tokenEndpointAuthMethod:c?.token_endpoint_auth_methods_supported,flow:"authorizationCode",defaultValues:u})):B.createElement("div",null,"Unsupported flow")))}function jp(){return B.createElement("div",null,B.createElement("div",null,B.createElement("div",null,"Fetching OpenID Connect metadata..."),B.createElement(md,null)))}function Ad({message:t}){return B.createElement("div",null,B.createElement("div",null,B.createElement(Ge.Xq,null,t)))}var Wp=Object.defineProperty,Hp=Object.defineProperties,Up=Object.getOwnPropertyDescriptors,Od=Object.getOwnPropertySymbols,zp=Object.prototype.hasOwnProperty,_p=Object.prototype.propertyIsEnumerable,Ed=(t,n,i)=>n in t?Wp(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i,kd=(t,n)=>{for(var i in n||(n={}))zp.call(n,i)&&Ed(t,i,n[i]);if(Od)for(var i of Od(n))_p.call(n,i)&&Ed(t,i,n[i]);return t},Td=(t,n)=>Hp(t,Up(n)),Vp=(t,n,i)=>new Promise((s,u)=>{var c=p=>{try{m(i.next(p))}catch(y){u(y)}},h=p=>{try{m(i.throw(p))}catch(y){u(y)}},m=p=>p.done?s(p.value):Promise.resolve(p.value).then(c,h);m((i=i.apply(t,n)).next())});function $p(t){if(!t)return"Token is required"}const Gp=({form:t,id:n,formApi:i,server:s,flow:u,authCorsProxyUrl:c,defaultValues:h,clientId:m})=>{var p,y,k,I;const[Q,W]=(0,B.useState)(""),[$,ae]=(0,B.useState)(!1),[ue,oe]=(0,B.useState)(!0),fe=((y=(p=t?.values)==null?void 0:p.auth)==null?void 0:y[n])||{},ye=((I=(k=t.errors)==null?void 0:k.auth)==null?void 0:I[n])||{},Ae=()=>{i.setValue(`auth.${n}.token`,""),(0,ot.WW)(`auth.${n}.token`,"")},we=()=>{oe(Oe=>!Oe)},Te=()=>Vp(void 0,null,function*(){if($)return;const Oe=c&&u.tokenUrl?c+(0,gt.jg)(u.tokenUrl):u.tokenUrl;if(ye.client_id||ye.client_secret){console.log("Provide client_id and client_secret");return}const Be=fe.client_id,rt=fe.client_secret;if(!Be||!rt){console.log("Provide client_id and client_secret");return}ae(!0);const Lt=u["x-tokenEndpointAuthMethod"];if(!(0,gt.xl)(Lt)){console.log(`Unsupported token endpoint auth method: ${Lt}`);return}yield un.authorizeClientCredentials({tokenUrl:Oe.startsWith("http")?Oe:s+Oe,clientId:Be,clientSecret:rt,scopes:fe.scopes,extraHeaders:(0,gt.Or)({authMethod:Lt,clientId:Be,clientSecret:rt}),successCallback:vt=>{i.setValue(`auth.${n}.token`,vt),ae(!1)},errorCallback:vt=>{Ae(),W(vt.message),ae(!1)}})}),ke=Object.keys(u.scopes);let Ne=(0,ot.YQ)(`auth.${n}.token`)||JSON.stringify(h?.token);Ne=Ne?JSON.parse(Ne):"";const pe=(0,ot.Al)(n,"client_id"),Ie={field:`auth.${n}.client_id`,fullWidth:!0,initialValue:(0,ot.YQ)(`auth.${n}.client_id`)||m||h?.client_id,initValue:(0,ot.YQ)(`auth.${n}.client_id`)||m||h?.client_id,placeholder:"Your OAuth2 app Client ID"};return B.createElement(B.Fragment,null,B.createElement(Ge.n5,null,B.createElement(Ge.NI,null,B.createElement(Ge.lX,null,"Client ID:"),pe?B.createElement(jt.F0,Td(kd({},Ie),{options:pe})):B.createElement(jt.Xn,Td(kd({},Ie),{type:"password",panel:"try-it"}))),B.createElement(Ge.NI,null,B.createElement(Ge.lX,null,"Client Secret:"),B.createElement(jt.Xn,{type:"password",fullWidth:!0,field:`auth.${n}.client_secret`,initialValue:(0,ot.YQ)(`auth.${n}.client_secret`)||h?.client_secret,panel:"try-it"})),B.createElement(jt.Xn,{fullWidth:!0,field:`auth.${n}.token`,type:"hidden",initialValue:Ne,validate:$p}),B.createElement(Sd,{id:n,scopes:ke})),B.createElement(Vt.Button,{color:"primary",onClick:Te,blinking:$},$?"Loading...":"Request Token"),B.createElement(Ge.ph,null," Access Token "),Q?B.createElement(Ge.Xq,{style:{marginBottom:"1em"}},"Failed to request token: ",B.createElement("pre",null,Q)," "):fe.token&&fe.token.access_token?B.createElement(Ge.TR,null,B.createElement(Ge.WA,{length:fe.token.access_token.length,masked:ue},fe.token.access_token),B.createElement(Ge.lf,{onClick:we},ue?"Show":"Hide"," "),B.createElement(Ge.h,{onClick:Ae}," Clear ")):B.createElement(Ge.Xq,{style:{marginBottom:"1em"}},"No token"))};var Kp=Object.defineProperty,Yp=Object.defineProperties,Xp=Object.getOwnPropertyDescriptors,Pd=Object.getOwnPropertySymbols,Jp=Object.prototype.hasOwnProperty,Qp=Object.prototype.propertyIsEnumerable,Ld=(t,n,i)=>n in t?Kp(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i,Ka=(t,n)=>{for(var i in n||(n={}))Jp.call(n,i)&&Ld(t,i,n[i]);if(Pd)for(var i of Pd(n))Qp.call(n,i)&&Ld(t,i,n[i]);return t},Ya=(t,n)=>Yp(t,Xp(n));const Zp=({securityDefaults:t,operation:n,activeServer:i,authCorsProxyUrl:s,form:u,formApi:c})=>{var h,m;const[p,y]=(0,B.useState)(0),{parser:k}=(0,Nn.sJ)(ci.cS);(0,B.useEffect)(()=>{const oe=n.security.map(Ae=>Ae.schemes.map(we=>we.id).join(" and ")),fe=(0,ot.YQ)("securityRequirementName"),ye=oe.findIndex(Ae=>Ae===fe);y(ye<0?0:ye)},[n]);const I=oe=>{y(oe.idx),(0,ot.WW)("securityRequirementName",oe.value)},Q=n.security,$=Q.map(oe=>oe.schemes.map(fe=>fe.id).join(" and ")).filter(Boolean).map((oe,fe)=>({value:oe,idx:fe}));if($.length===0)return B.createElement(Ad,{message:"Cannot find security schema in the definition"});const ae=Q[p],ue=(0,ot.A8)(ae.schemes[0].id);return B.createElement(B.Fragment,null,B.createElement(Ge.n5,null,$.length>1&&B.createElement(Ge.NI,null,B.createElement(Ge.lX,null," Security scheme: "),B.createElement(Qr.VD,{variant:"dark",fullWidth:!0,options:$,value:$[p].value,onChange:I}))||null,B.createElement(Vt.TryItSecurityApps,{apiId:(m=(h=k?.definition.info)==null?void 0:h["x-metadata"])==null?void 0:m.apiId,value:c.getValue(`auth.${ue}`),onChange:oe=>{c.setValue(`auth.${ue}`,oe)}}),Q[p].schemes.map(oe=>{var fe,ye,Ae,we,Te,ke,Ne;const pe=(0,ot.A8)(oe.id);if(oe.type==="apiKey"){const Ie=(0,ot.Al)(pe,""),Oe={field:`auth.${pe}`,fullWidth:!0,initialValue:(0,gt.NG)(oe)||(0,ot.YQ)(`auth.${pe}`)||t?.[pe],initValue:(0,gt.NG)(oe)||(0,ot.YQ)(`auth.${pe}`)||t?.[pe],validate:gt.np,validateOnBlur:!0,validateOnChange:!0};return B.createElement(Ge.NI,{key:pe},B.createElement(Ge.lX,null," ",oe.name,": "),Ie?B.createElement(jt.F0,Ya(Ka({},Oe),{options:Ie})):B.createElement(jt.Xn,Ya(Ka({},Oe),{type:"password",panel:"try-it","data-cy":"apiKey-auth-password"})))}else if(oe.type==="http"){if(oe.scheme==="basic"){const Ie=(0,ot.Al)(pe,"username"),Oe={field:`auth.${pe}.username`,fullWidth:!0,initialValue:(0,ot.YQ)(`auth.${pe}.username`)||((fe=t?.[pe])==null?void 0:fe.username),initValue:(0,ot.YQ)(`auth.${pe}.username`)||((ye=t?.[pe])==null?void 0:ye.username),validate:gt.np,validateOnBlur:!0,validateOnChange:!0};return B.createElement(B.Fragment,{key:pe},B.createElement(Ge.NI,null,B.createElement(Ge.lX,null," ",(0,Uo.l)("tryItAuthBasicUsername"),": "),Ie?B.createElement(jt.F0,Ya(Ka({},Oe),{options:Ie})):B.createElement(jt.Xn,Ya(Ka({},Oe),{panel:"try-it"}))),B.createElement(Ge.NI,null,B.createElement(Ge.lX,null," ",(0,Uo.l)("tryItAuthBasicPassword"),": "),B.createElement(jt.Xn,{type:"password","data-cy":"http-auth-password",fullWidth:!0,field:`auth.${pe}.password`,initialValue:(0,ot.YQ)(`auth.${pe}.password`)||((Ae=t?.[pe])==null?void 0:Ae.password)||"",validateOnBlur:!0,validateOnChange:!0,panel:"try-it"})))}else if(oe.scheme==="bearer"){const Ie=(0,ot.Al)(pe,""),Oe={field:`auth.${pe}`,fullWidth:!0,initialValue:(0,ot.YQ)(`auth.${pe}`)||t?.[pe],initValue:(0,ot.YQ)(`auth.${pe}`)||t?.[pe],validate:gt.np,validateOnBlur:!0,validateOnChange:!0};return B.createElement(B.Fragment,{key:pe},B.createElement(Ge.NI,null,B.createElement(Ge.lX,null," Bearer Token: "),Ie?B.createElement(jt.F0,Ya(Ka({},Oe),{options:Ie})):B.createElement(jt.Xn,Ya(Ka({},Oe),{type:"password",placeholder:"(without 'Bearer')",panel:"try-it"}))))}}else{if(oe.type==="oauth2"&&oe.flows&&oe.flows.clientCredentials)return B.createElement(Gp,{key:pe,flow:oe.flows.clientCredentials,server:i,authCorsProxyUrl:s,id:pe,form:u,formApi:c,clientId:oe.flows.clientCredentials["x-defaultClientId"]||oe["x-defaultClientId"],defaultValues:t?.[pe]});if(oe.type==="oauth2"&&oe.flows&&oe.flows.implicit)return B.createElement(Vu,{key:pe,authorizationUrl:oe.flows.implicit.authorizationUrl,authCorsProxyUrl:s,scopes:Object.keys(((Te=(we=oe?.flows)==null?void 0:we.implicit)==null?void 0:Te.scopes)||{}),server:i,id:pe,form:u,formApi:c,clientId:oe.flows.implicit["x-defaultClientId"]||oe["x-defaultClientId"],flow:"implicit",defaultValues:t?.[pe]});if(oe.type==="oauth2"&&oe.flows&&oe.flows.authorizationCode)return B.createElement(Vu,{key:pe,authorizationUrl:oe.flows.authorizationCode.authorizationUrl,tokenUrl:oe.flows.authorizationCode.tokenUrl,authCorsProxyUrl:s,scopes:Object.keys(((ke=oe.flows.authorizationCode)==null?void 0:ke.scopes)||{}),server:i,id:pe,form:u,formApi:c,clientId:oe.flows.authorizationCode["x-defaultClientId"]||oe["x-defaultClientId"],flow:"authorizationCode",tokenEndpointAuthMethod:oe.flows.authorizationCode["x-tokenEndpointAuthMethod"],usePkce:oe.flows.authorizationCode["x-usePkce"],defaultValues:t?.[pe]});if(oe.type==="oauth2"){let Ie=(0,ot.YQ)(`auth.${pe}.token`)||JSON.stringify((Ne=t?.[pe])==null?void 0:Ne.token);return Ie=Ie?JSON.parse(Ie):{},B.createElement(B.Fragment,{key:pe},B.createElement(Ge.NI,null,B.createElement(Ge.lX,null," Access Token Type: "),B.createElement(jt.Xn,{fullWidth:!0,field:`auth.${pe}.token.token_type`,initialValue:Ie.token_type||"Bearer",panel:"try-it"})),B.createElement(Ge.NI,null,B.createElement(Ge.lX,null," Access Token: "),B.createElement(jt.Xn,{type:"password",fullWidth:!0,field:`auth.${pe}.token.access_token`,validate:gt.np,initialValue:Ie.access_token,validateOnBlur:!0,validateOnChange:!0,panel:"try-it"})))}else if(oe.type==="openIdConnect")return B.createElement(Bp,{key:pe,server:i,authCorsProxyUrl:s,id:pe,form:u,formApi:c,scheme:oe,clientId:oe["x-defaultClientId"],defaultValues:t?.[pe]})}})),B.createElement("small",null,B.createElement("strong",null,"Note"),": Your credentials will be saved until the end of the browser session"))};var qp=f(55919),ev=Object.defineProperty,Id=Object.getOwnPropertySymbols,tv=Object.prototype.hasOwnProperty,rv=Object.prototype.propertyIsEnumerable,Md=(t,n,i)=>n in t?ev(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i,nv=(t,n)=>{for(var i in n||(n={}))tv.call(n,i)&&Md(t,i,n[i]);if(Id)for(var i of Id(n))rv.call(n,i)&&Md(t,i,n[i]);return t};function iv({operation:t,properties:n,securityDefaults:i,form:s,resolvedRawSpec:u,server:c,formApi:h,setFormApi:m,handleChange:p,handleServerChange:y}){const k=s.errors||{},I=k.path||k.cookie||k.header||k.query,{hooks:Q,authCorsProxyUrl:W}=(0,Nn.sJ)(ci.lk),$=u&&ot.IB.get(u,t.pointer);let ae=s.values&&s.values.auth&&Object.keys(s.values.auth)[0];(!ae||!s.values.auth[ae])&&(ae=void 0),ae&&(s.values.auth[ae].token!==void 0||s.values.auth[ae].client_id!==void 0||s.values.auth[ae].client_secret!==void 0)&&(!s.values.auth[ae].token||!s.values.auth[ae].token.access_token)&&(ae=void 0),ae&&s.values.auth[ae].username!=null&&(!s.values.auth[ae].username||!s.values.auth[ae].password)&&(ae=void 0);const ue=t.parameters||[];return!u&&B.createElement(B.Fragment,null,"Loading...")||B.createElement(Zr.l0,{onChange:p,getApi:m,style:{flex:1,display:"flex",flexDirection:"column",margin:0}},B.createElement(Bs,{operation:t,onChange:y}),B.createElement(Li.UQ,{initialActiveIdx:t.security.length&&ae?1:0},t.security.length&&h&&B.createElement(Ws,{header:(0,Uo.l)("tryItAuth"),"data-cy":"security-trigger",error:!ae&&!!k.auth,success:!!ae,renderChildrenHidden:!0},Vt.OpenApiTryItSecurityPanel||Q?.ReplaceTryItSecurityPanel?B.createElement(ov,{field:"auth",validate:gt.np},oe=>B.createElement(qp.Q,{Hook:Vt.OpenApiTryItSecurityPanel||Q?.ReplaceTryItSecurityPanel,props:{server:c,operation:t,onChange:oe,OAuth2:un}})):B.createElement(Zp,{formApi:h,form:s,operation:t,activeServer:c.url,authCorsProxyUrl:W,securityDefaults:i}))||null,t.requestBody&&h&&B.createElement(Ws,{header:(0,Uo.l)("tryItBody"),"data-cy":"body-trigger",error:!!k.body,renderChildrenHidden:!0},B.createElement(Gh,{validate:av,formApi:h,body:t.requestBody,pointer:t.pointer,id:t.id,resolvedBody:$?.requestBody,properties:n}))||null,ue.length&&B.createElement(Ws,{header:(0,Uo.l)("tryItParameters"),"data-cy":"parameters-trigger",error:I,renderChildrenHidden:!0},B.createElement(ip,{operation:t,values:s.values,errors:s.errors||{}}))||null))}function ov(t){const{fieldApi:n,render:i,userProps:s}=(0,Zr.U$)(nv({},t)),{setValue:u}=n,{children:c}=s;return i(B.createElement(B.Fragment,null,c(u)))}function av(){}const sv=(0,B.memo)(iv);function lv({shaking:t,className:n,children:i,rootElement:s}){const[u]=(0,fc.Bs)(s),c=(0,Nn.sJ)(ci.lk);return B.createElement(Qr.q2,{scrollYOffset:c.scrollYOffset,shaking:t,className:n,"data-cy":"console",fullWidth:u?.width},i)}const uv=(0,B.memo)(lv);var fv=Object.defineProperty,cv=Object.defineProperties,dv=Object.getOwnPropertyDescriptors,$u=Object.getOwnPropertySymbols,Nd=Object.prototype.hasOwnProperty,Dd=Object.prototype.propertyIsEnumerable,Fd=(t,n,i)=>n in t?fv(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i,pr=(t,n)=>{for(var i in n||(n={}))Nd.call(n,i)&&Fd(t,i,n[i]);if($u)for(var i of $u(n))Dd.call(n,i)&&Fd(t,i,n[i]);return t},qr=(t,n)=>cv(t,dv(n)),Rd=(t,n)=>{var i={};for(var s in t)Nd.call(t,s)&&n.indexOf(s)<0&&(i[s]=t[s]);if(t!=null&&$u)for(var s of $u(t))n.indexOf(s)<0&&Dd.call(t,s)&&(i[s]=t[s]);return i},Bd=(t,n,i)=>new Promise((s,u)=>{var c=p=>{try{m(i.next(p))}catch(y){u(y)}},h=p=>{try{m(i.throw(p))}catch(y){u(y)}},m=p=>p.done?s(p.value):Promise.resolve(p.value).then(c,h);m((i=i.apply(t,n)).next())});function jd(t){return t.startsWith("//")?"https:"+t:t}function hv({operation:t,onResponse:n,className:i,rootElement:s,properties:u,securityDefaults:c,onClose:h}){let m=(0,B.useRef)();const[p,y]=(0,Nn.FV)((0,zs.N)(t.pointer)),[k,I]=(0,B.useState)(p.activeServer||t.activeServer),[Q,W]=(0,B.useState)(0),[$,ae]=(0,B.useState)(!1),[ue,oe]=(0,B.useState)(!1),[fe,ye]=(0,B.useState)({values:{path:(0,gt.ZS)(t.parameters,"path"),cookie:(0,gt.ZS)(t.parameters,"cookie"),header:(0,gt.ZS)(t.parameters,"header"),query:(0,gt.ZS)(t.parameters,"query")}}),[Ae,we]=(0,B.useState)(),[Te,ke]=(0,B.useState)(),[Ne,pe]=(0,B.useState)(),[Ie,Oe]=(0,B.useState)(),Be=(0,fc.D9)(t),{parser:rt,options:Lt}=(0,Nn.sJ)(ci.cS),vt=(0,B.useCallback)((Yt,vr=Yt.getState())=>{var en=vr,{values:Gr}=en,On=Rd(en,["values"]);m.current=Yt,setTimeout(()=>{ye(qr(pr({},On),{values:qr(pr({},Gr),{query:(0,gt.FU)(Gr.query||{})})}))},0)},[]),Wr=(0,B.useCallback)(Yt=>{var vr=Yt,{values:en}=vr,Gr=Rd(vr,["values"]);const On=qr(pr({},Gr),{values:qr(pr({},en),{query:(0,gt.FU)(en.query||{})})});y(ji=>qr(pr({},ji),{requestValues:JSON.parse(JSON.stringify(en))})),ye(On),(0,gt.Hc)(On)},[y]),Zn=(0,B.useCallback)(Yt=>{W(Yt)},[]),Bi=(0,B.useCallback)(Yt=>{I(Yt),y(vr=>qr(pr({},vr),{activeServer:Yt}))},[y]),qn=(0,B.useCallback)(()=>Bd(this,null,function*(){var Yt,vr,en,Gr,On,ji,Ar,Kr,Fn,na,Ao,ei,Zs,Gu,qs,ia,Wd;const{values:Wi,invalid:vv}=((Yt=m?.current)==null?void 0:Yt.getState())||fe||{};if((vr=m.current)==null||vr.submitForm(),vv){oe(!0),setTimeout(()=>oe(!1),1e3),(Gr=(en=Lt.events)==null?void 0:en.tryItSent)==null||Gr.call(en,{eventType:fr.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"ValidationFailed",operationId:t.operationId,operationPath:t.path,operationHttpVerb:t.httpVerb,operationSummary:t.description});return}const{servers:el,requestBody:Xa}=t,gv=Xa&&Xa.content&&((On=(0,Cn.getActiveMediaType)(Xa.content))==null?void 0:On.name)||"";let Ja=Wi.body;if(/json/.test(gv))try{Ja=JSON.parse(Ja)}catch(Dt){console.error(Dt)}ae(!0);const Rn=Ae,Hd=(t.httpVerb||"").toLowerCase();if(!el)throw console.error("Servers are not specified in your OpenAPI file. You can't use Try It Out console without specifying servers. If you use OpenAPI 2, make sure you configured host and basepath"),new Error("Servers are not specified");const dc=el.find(Dt=>k.url.endsWith(Dt.url.endsWith("/")?Dt.url.substring(0,Dt.url.length-1):Dt.url)),mv=Date.now();let Hi,Qa=Wi.auth;if(Wi.auth){const Dt=Object.keys(Wi.auth)[0],vi=(0,Rf.dw)(Dt);Hi=qr(pr({},Rn),{components:qr(pr({},Rn?.components),{securitySchemes:qr(pr({},(ji=Rn?.components)==null?void 0:ji.securitySchemes),{[vi]:qr(pr({},(Kr=(Ar=Rn?.components)==null?void 0:Ar.securitySchemes)==null?void 0:Kr[vi]),{type:((Ao=(na=(Fn=Rn?.components)==null?void 0:Fn.securitySchemes)==null?void 0:na[vi])==null?void 0:Ao.type)==="openIdConnect"?"oauth2":((Zs=(ei=Rn?.components)==null?void 0:ei.securitySchemes)==null?void 0:Zs[vi]).type})})})}),Qa=qr(pr({},Qa),{[vi]:Qa[Dt]})}else Hi=pr({},Rn);Hi.servers=el;const Ku=Lt.corsProxyUrl;Ku&&el.length&&(Hi.servers=el.map(Dt=>qr(pr({},Dt),{url:Ku+jd(Dt.url)})),Hi.paths=qr(pr({},Hi.paths),{[t.path]:qr(pr({},Hi.paths[t.path]),{[Hd]:qr(pr({},Hi.paths[t.path][Hd]),{servers:void 0}),servers:void 0})}));const hc=Xa?.content&&((Gu=(0,Cn.getActiveMediaType)(Xa.content))==null?void 0:Gu.name)||null;if(hc&&Ja&&Mi(hc)){const Dt=Object.values(Ja);Ja=Dt.length>1?Dt:Dt[0]}const pc={server:Ku?Ku+jd(dc.url):dc.url,serverVariables:(0,gt.mj)(dc),spec:Hi,pathName:t.path,method:t.httpVerb,parameters:pr(pr(pr(pr({},Wi.path),Wi.query),Wi.header),Wi.cookie),securities:{authorized:Qa},requestBody:Ja,requestContentType:hc,responseContentType:((qs=Wi.header)==null?void 0:qs.Accept)||null,requestInterceptor:(0,gt.Tz)(Lt,t,Qa?.Authorization)};try{const Dt=yield Mf(pc),vi=Dt?.data;vi instanceof Blob&&(Mi(vi.type)&&(Dt.fileInfo={rawData:vi,fileName:(0,gt.AM)(Dt.headers)}),Dt.data=yield vi.text()),n?.({request:pc,response:Dt}),Oe(Dt),pe(void 0)}catch(Dt){Dt&&Dt.response&&Dt.response.data instanceof Blob&&(Dt.response.data=yield Dt.response.data.text(),n?.({request:pc,response:Dt.response})),Oe(void 0),pe(Dt)}finally{ae(!1),W(1),ke(Date.now()-mv),(Wd=(ia=Lt.events)==null?void 0:ia.tryItSent)==null||Wd.call(ia,{eventType:fr.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"Sent",operationId:t.operationId,operationPath:t.path,operationHttpVerb:t.httpVerb,operationSummary:t.description})}}),[k.url,fe,n,t,Lt,Ae]);(0,Vt.useMount)(()=>Bd(this,null,function*(){var Yt;const vr=yield Ff(t,rt.definition);we(vr),(Yt=m.current)==null||Yt.setValues({})})),(0,B.useEffect)(()=>{Be&&Be!==t&&(Oe(void 0),pe(void 0),W(0))},[t,Be]);const Ir=!!(Ie||Ne);return B.createElement(uv,{shaking:ue,className:i,rootElement:s},B.createElement(Li.Hc,null,B.createElement(jo,{active:Q,hasResponse:Ir,onChange:Zn}),h&&B.createElement(Qr.PZ,{onClick:h}," \u2715 ")),B.createElement(Qr.RE,{hidden:Q!==0,"data-cy":"console-request-body"},B.createElement(sv,{operation:t,properties:u,securityDefaults:c,form:fe,resolvedRawSpec:Ae,server:k,formApi:m.current,setFormApi:vt,handleChange:Wr,handleServerChange:Bi})),B.createElement(Qr.RE,{hidden:Q!==1,"data-cy":"console-response-body"},B.createElement(nu,{response:Ie,error:Ne,time:Te})),B.createElement(au,{hasResponse:Ir,params:fe.values,operation:t,loading:$,execute:qn}))}const pv=(0,B.memo)(hv)},85208:(x,N,f)=>{var v=f(34440),C=f(84108),E=f(61085),P=f(77706),D=f(8636);function R(_){var Z=-1,q=_==null?0:_.length;for(this.clear();++Z<q;){var de=_[Z];this.set(de[0],de[1])}}R.prototype.clear=v,R.prototype.delete=C,R.prototype.get=E,R.prototype.has=P,R.prototype.set=D,x.exports=R},81998:(x,N,f)=>{var v=f(90266),C=f(42875),E=f(45828),P=f(24115),D=f(67690);function R(_){var Z=-1,q=_==null?0:_.length;for(this.clear();++Z<q;){var de=_[Z];this.set(de[0],de[1])}}R.prototype.clear=v,R.prototype.delete=C,R.prototype.get=E,R.prototype.has=P,R.prototype.set=D,x.exports=R},72887:(x,N,f)=>{var v=f(65234),C=f(84100),E=v(C,"Map");x.exports=E},95678:(x,N,f)=>{var v=f(39016),C=f(62363),E=f(64348),P=f(53062),D=f(30262);function R(_){var Z=-1,q=_==null?0:_.length;for(this.clear();++Z<q;){var de=_[Z];this.set(de[0],de[1])}}R.prototype.clear=v,R.prototype.delete=C,R.prototype.get=E,R.prototype.has=P,R.prototype.set=D,x.exports=R},70861:(x,N,f)=>{var v=f(84100),C=v.Symbol;x.exports=C},29233:x=>{function N(f,v){for(var C=-1,E=f==null?0:f.length,P=Array(E);++C<E;)P[C]=v(f[C],C,f);return P}x.exports=N},18498:(x,N,f)=>{var v=f(58260);function C(E,P){for(var D=E.length;D--;)if(v(E[D][0],P))return D;return-1}x.exports=C},40548:(x,N,f)=>{var v=f(24007),C=f(86040);function E(P,D){D=v(D,P);for(var R=0,_=D.length;P!=null&&R<_;)P=P[C(D[R++])];return R&&R==_?P:void 0}x.exports=E},69823:(x,N,f)=>{var v=f(70861),C=f(91339),E=f(25151),P="[object Null]",D="[object Undefined]",R=v?v.toStringTag:void 0;function _(Z){return Z==null?Z===void 0?D:P:R&&R in Object(Z)?C(Z):E(Z)}x.exports=_},99817:(x,N,f)=>{var v=f(45563),C=f(28597),E=f(93702),P=f(55784),D=/[\\^$.*+?()[\]{}|]/g,R=/^\[object .+?Constructor\]$/,_=Function.prototype,Z=Object.prototype,q=_.toString,de=Z.hasOwnProperty,re=RegExp("^"+q.call(de).replace(D,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function se(V){if(!E(V)||C(V))return!1;var T=v(V)?re:R;return T.test(P(V))}x.exports=se},86245:(x,N,f)=>{var v=f(70861),C=f(29233),E=f(55589),P=f(52624),D=1/0,R=v?v.prototype:void 0,_=R?R.toString:void 0;function Z(q){if(typeof q=="string")return q;if(E(q))return C(q,Z)+"";if(P(q))return _?_.call(q):"";var de=q+"";return de=="0"&&1/q==-D?"-0":de}x.exports=Z},24007:(x,N,f)=>{var v=f(55589),C=f(5130),E=f(44041),P=f(99835);function D(R,_){return v(R)?R:C(R,_)?[R]:E(P(R))}x.exports=D},1622:(x,N,f)=>{var v=f(84100),C=v["__core-js_shared__"];x.exports=C},20302:(x,N,f)=>{var v=typeof f.g=="object"&&f.g&&f.g.Object===Object&&f.g;x.exports=v},77570:(x,N,f)=>{var v=f(58949);function C(E,P){var D=E.__data__;return v(P)?D[typeof P=="string"?"string":"hash"]:D.map}x.exports=C},65234:(x,N,f)=>{var v=f(99817),C=f(67736);function E(P,D){var R=C(P,D);return v(R)?R:void 0}x.exports=E},91339:(x,N,f)=>{var v=f(70861),C=Object.prototype,E=C.hasOwnProperty,P=C.toString,D=v?v.toStringTag:void 0;function R(_){var Z=E.call(_,D),q=_[D];try{_[D]=void 0;var de=!0}catch{}var re=P.call(_);return de&&(Z?_[D]=q:delete _[D]),re}x.exports=R},67736:x=>{function N(f,v){return f?.[v]}x.exports=N},34440:(x,N,f)=>{var v=f(24545);function C(){this.__data__=v?v(null):{},this.size=0}x.exports=C},84108:x=>{function N(f){var v=this.has(f)&&delete this.__data__[f];return this.size-=v?1:0,v}x.exports=N},61085:(x,N,f)=>{var v=f(24545),C="__lodash_hash_undefined__",E=Object.prototype,P=E.hasOwnProperty;function D(R){var _=this.__data__;if(v){var Z=_[R];return Z===C?void 0:Z}return P.call(_,R)?_[R]:void 0}x.exports=D},77706:(x,N,f)=>{var v=f(24545),C=Object.prototype,E=C.hasOwnProperty;function P(D){var R=this.__data__;return v?R[D]!==void 0:E.call(R,D)}x.exports=P},8636:(x,N,f)=>{var v=f(24545),C="__lodash_hash_undefined__";function E(P,D){var R=this.__data__;return this.size+=this.has(P)?0:1,R[P]=v&&D===void 0?C:D,this}x.exports=E},5130:(x,N,f)=>{var v=f(55589),C=f(52624),E=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,P=/^\w*$/;function D(R,_){if(v(R))return!1;var Z=typeof R;return Z=="number"||Z=="symbol"||Z=="boolean"||R==null||C(R)?!0:P.test(R)||!E.test(R)||_!=null&&R in Object(_)}x.exports=D},58949:x=>{function N(f){var v=typeof f;return v=="string"||v=="number"||v=="symbol"||v=="boolean"?f!=="__proto__":f===null}x.exports=N},28597:(x,N,f)=>{var v=f(1622),C=function(){var P=/[^.]+$/.exec(v&&v.keys&&v.keys.IE_PROTO||"");return P?"Symbol(src)_1."+P:""}();function E(P){return!!C&&C in P}x.exports=E},90266:x=>{function N(){this.__data__=[],this.size=0}x.exports=N},42875:(x,N,f)=>{var v=f(18498),C=Array.prototype,E=C.splice;function P(D){var R=this.__data__,_=v(R,D);if(_<0)return!1;var Z=R.length-1;return _==Z?R.pop():E.call(R,_,1),--this.size,!0}x.exports=P},45828:(x,N,f)=>{var v=f(18498);function C(E){var P=this.__data__,D=v(P,E);return D<0?void 0:P[D][1]}x.exports=C},24115:(x,N,f)=>{var v=f(18498);function C(E){return v(this.__data__,E)>-1}x.exports=C},67690:(x,N,f)=>{var v=f(18498);function C(E,P){var D=this.__data__,R=v(D,E);return R<0?(++this.size,D.push([E,P])):D[R][1]=P,this}x.exports=C},39016:(x,N,f)=>{var v=f(85208),C=f(81998),E=f(72887);function P(){this.size=0,this.__data__={hash:new v,map:new(E||C),string:new v}}x.exports=P},62363:(x,N,f)=>{var v=f(77570);function C(E){var P=v(this,E).delete(E);return this.size-=P?1:0,P}x.exports=C},64348:(x,N,f)=>{var v=f(77570);function C(E){return v(this,E).get(E)}x.exports=C},53062:(x,N,f)=>{var v=f(77570);function C(E){return v(this,E).has(E)}x.exports=C},30262:(x,N,f)=>{var v=f(77570);function C(E,P){var D=v(this,E),R=D.size;return D.set(E,P),this.size+=D.size==R?0:1,this}x.exports=C},32924:(x,N,f)=>{var v=f(67997),C=500;function E(P){var D=v(P,function(_){return R.size===C&&R.clear(),_}),R=D.cache;return D}x.exports=E},24545:(x,N,f)=>{var v=f(65234),C=v(Object,"create");x.exports=C},25151:x=>{var N=Object.prototype,f=N.toString;function v(C){return f.call(C)}x.exports=v},84100:(x,N,f)=>{var v=f(20302),C=typeof self=="object"&&self&&self.Object===Object&&self,E=v||C||Function("return this")();x.exports=E},44041:(x,N,f)=>{var v=f(32924),C=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,E=/\\(\\)?/g,P=v(function(D){var R=[];return D.charCodeAt(0)===46&&R.push(""),D.replace(C,function(_,Z,q,de){R.push(q?de.replace(E,"$1"):Z||_)}),R});x.exports=P},86040:(x,N,f)=>{var v=f(52624),C=1/0;function E(P){if(typeof P=="string"||v(P))return P;var D=P+"";return D=="0"&&1/P==-C?"-0":D}x.exports=E},55784:x=>{var N=Function.prototype,f=N.toString;function v(C){if(C!=null){try{return f.call(C)}catch{}try{return C+""}catch{}}return""}x.exports=v},58260:x=>{function N(f,v){return f===v||f!==f&&v!==v}x.exports=N},13546:(x,N,f)=>{var v=f(40548);function C(E,P,D){var R=E==null?void 0:v(E,P);return R===void 0?D:R}x.exports=C},55589:x=>{var N=Array.isArray;x.exports=N},45563:(x,N,f)=>{var v=f(69823),C=f(93702),E="[object AsyncFunction]",P="[object Function]",D="[object GeneratorFunction]",R="[object Proxy]";function _(Z){if(!C(Z))return!1;var q=v(Z);return q==P||q==D||q==E||q==R}x.exports=_},93702:x=>{function N(f){var v=typeof f;return f!=null&&(v=="object"||v=="function")}x.exports=N},50440:x=>{function N(f){return f!=null&&typeof f=="object"}x.exports=N},52624:(x,N,f)=>{var v=f(69823),C=f(50440),E="[object Symbol]";function P(D){return typeof D=="symbol"||C(D)&&v(D)==E}x.exports=P},67997:(x,N,f)=>{var v=f(95678),C="Expected a function";function E(P,D){if(typeof P!="function"||D!=null&&typeof D!="function")throw new TypeError(C);var R=function(){var _=arguments,Z=D?D.apply(this,_):_[0],q=R.cache;if(q.has(Z))return q.get(Z);var de=P.apply(this,_);return R.cache=q.set(Z,de)||q,de};return R.cache=new(E.Cache||v),R}E.Cache=v,x.exports=E},99835:(x,N,f)=>{var v=f(86245);function C(E){return E==null?"":v(E)}x.exports=C},14927:(x,N,f)=>{var v=typeof Map=="function"&&Map.prototype,C=Object.getOwnPropertyDescriptor&&v?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,E=v&&C&&typeof C.get=="function"?C.get:null,P=v&&Map.prototype.forEach,D=typeof Set=="function"&&Set.prototype,R=Object.getOwnPropertyDescriptor&&D?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,_=D&&R&&typeof R.get=="function"?R.get:null,Z=D&&Set.prototype.forEach,q=typeof WeakMap=="function"&&WeakMap.prototype,de=q?WeakMap.prototype.has:null,re=typeof WeakSet=="function"&&WeakSet.prototype,se=re?WeakSet.prototype.has:null,V=typeof WeakRef=="function"&&WeakRef.prototype,T=V?WeakRef.prototype.deref:null,J=Boolean.prototype.valueOf,M=Object.prototype.toString,S=Function.prototype.toString,L=String.prototype.match,F=String.prototype.slice,K=String.prototype.replace,te=String.prototype.toUpperCase,j=String.prototype.toLowerCase,ie=RegExp.prototype.test,H=Array.prototype.concat,Y=Array.prototype.join,ce=Array.prototype.slice,ge=Math.floor,G=typeof BigInt=="function"?BigInt.prototype.valueOf:null,ve=Object.getOwnPropertySymbols,ee=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,He=typeof Symbol=="function"&&typeof Symbol.iterator=="object",_e=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===He||"symbol")?Symbol.toStringTag:null,ze=Object.prototype.propertyIsEnumerable,ct=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ne){return ne.__proto__}:null);function ut(ne,be){if(ne===1/0||ne===-1/0||ne!==ne||ne&&ne>-1e3&&ne<1e3||ie.call(/e/,be))return be;var je=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ne=="number"){var et=ne<0?-ge(-ne):ge(ne);if(et!==ne){var ft=String(et),lt=F.call(be,ft.length+1);return K.call(ft,je,"$&_")+"."+K.call(K.call(lt,/([0-9]{3})/g,"$&_"),/_$/,"")}}return K.call(be,je,"$&_")}var at=f(65710),Gt=at.custom,dt=Kt(Gt)?Gt:null;x.exports=function ne(be,je,et,ft){var lt=je||{};if(Je(lt,"quoteStyle")&&lt.quoteStyle!=="single"&&lt.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Je(lt,"maxStringLength")&&(typeof lt.maxStringLength=="number"?lt.maxStringLength<0&&lt.maxStringLength!==1/0:lt.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var _t=Je(lt,"customInspect")?lt.customInspect:!0;if(typeof _t!="boolean"&&_t!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Je(lt,"indent")&&lt.indent!==null&&lt.indent!==" "&&!(parseInt(lt.indent,10)===lt.indent&&lt.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Je(lt,"numericSeparator")&&typeof lt.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var kr=lt.numericSeparator;if(typeof be>"u")return"undefined";if(be===null)return"null";if(typeof be=="boolean")return be?"true":"false";if(typeof be=="string")return gn(be,lt);if(typeof be=="number"){if(be===0)return 1/0/be>0?"0":"-0";var wt=String(be);return kr?ut(be,wt):wt}if(typeof be=="bigint"){var er=String(be)+"n";return kr?ut(be,er):er}var Bn=typeof lt.depth>"u"?5:lt.depth;if(typeof et>"u"&&(et=0),et>=Bn&&Bn>0&&typeof be=="object")return Ue(be)?"[Array]":"[Object]";var mr=st(lt,et);if(typeof ft>"u")ft=[];else if(Or(ft,be)>=0)return"[Circular]";function yr(Nr,tr,Pn){if(tr&&(ft=ce.call(ft),ft.push(tr)),Pn){var rn={depth:lt.depth};return Je(lt,"quoteStyle")&&(rn.quoteStyle=lt.quoteStyle),ne(Nr,rn,et+1,ft)}return ne(Nr,lt,et+1,ft)}if(typeof be=="function"&&!Re(be)){var jn=It(be),Tr=ht(be,yr);return"[Function"+(jn?": "+jn:" (anonymous)")+"]"+(Tr.length>0?" { "+Y.call(Tr,", ")+" }":"")}if(Kt(be)){var kn=He?K.call(String(be),/^(Symbol\(.*\))_[^)]*$/,"$1"):ee.call(be);return typeof be=="object"&&!He?gr(kn):kn}if(En(be)){for(var Tn="<"+j.call(String(be.nodeName)),br=be.attributes||[],Wn=0;Wn<br.length;Wn++)Tn+=" "+br[Wn].name+"="+Ot(nt(br[Wn].value),"double",lt);return Tn+=">",be.childNodes&&be.childNodes.length&&(Tn+="..."),Tn+="</"+j.call(String(be.nodeName))+">",Tn}if(Ue(be)){if(be.length===0)return"[]";var mn=ht(be,yr);return mr&&!mt(mn)?"["+Qe(mn,mr)+"]":"[ "+Y.call(mn,", ")+" ]"}if(it(be)){var ti=ht(be,yr);return!("cause"in Error.prototype)&&"cause"in be&&!ze.call(be,"cause")?"{ ["+String(be)+"] "+Y.call(H.call("[cause]: "+yr(be.cause),ti),", ")+" }":ti.length===0?"["+String(be)+"]":"{ ["+String(be)+"] "+Y.call(ti,", ")+" }"}if(typeof be=="object"&&_t){if(dt&&typeof be[dt]=="function"&&at)return at(be,{depth:Bn-et});if(_t!=="symbol"&&typeof be.inspect=="function")return be.inspect()}if(Rt(be)){var Ui=[];return P&&P.call(be,function(Nr,tr){Ui.push(yr(tr,be,!0)+" => "+yr(Nr,be))}),Bt("Map",E.call(be),Ui,mr)}if(Hr(be)){var Yr=[];return Z&&Z.call(be,function(Nr){Yr.push(yr(Nr,be))}),Bt("Set",_.call(be),Yr,mr)}if(pn(be))return Er("WeakMap");if(tn(be))return Er("WeakSet");if(vn(be))return Er("WeakRef");if(qe(be))return gr(yr(Number(be)));if(Qt(be))return gr(yr(G.call(be)));if(St(be))return gr(J.call(be));if(Ft(be))return gr(yr(String(be)));if(!Fe(be)&&!Re(be)){var Mr=ht(be,yr),Xr=ct?ct(be)===Object.prototype:be instanceof Object||be.constructor===Object,zr=be instanceof Object?"":"null prototype",_r=!Xr&&_e&&Object(be)===be&&_e in be?F.call(xt(be),8,-1):zr?"Object":"",Oo=Xr||typeof be.constructor!="function"?"":be.constructor.name?be.constructor.name+" ":"",yn=Oo+(_r||zr?"["+Y.call(H.call([],_r||[],zr||[]),": ")+"] ":"");return Mr.length===0?yn+"{}":mr?yn+"{"+Qe(Mr,mr)+"}":yn+"{ "+Y.call(Mr,", ")+" }"}return String(be)};function Ot(ne,be,je){var et=(je.quoteStyle||be)==="double"?'"':"'";return et+ne+et}function nt(ne){return K.call(String(ne),/"/g,"&quot;")}function Ue(ne){return xt(ne)==="[object Array]"&&(!_e||!(typeof ne=="object"&&_e in ne))}function Fe(ne){return xt(ne)==="[object Date]"&&(!_e||!(typeof ne=="object"&&_e in ne))}function Re(ne){return xt(ne)==="[object RegExp]"&&(!_e||!(typeof ne=="object"&&_e in ne))}function it(ne){return xt(ne)==="[object Error]"&&(!_e||!(typeof ne=="object"&&_e in ne))}function Ft(ne){return xt(ne)==="[object String]"&&(!_e||!(typeof ne=="object"&&_e in ne))}function qe(ne){return xt(ne)==="[object Number]"&&(!_e||!(typeof ne=="object"&&_e in ne))}function St(ne){return xt(ne)==="[object Boolean]"&&(!_e||!(typeof ne=="object"&&_e in ne))}function Kt(ne){if(He)return ne&&typeof ne=="object"&&ne instanceof Symbol;if(typeof ne=="symbol")return!0;if(!ne||typeof ne!="object"||!ee)return!1;try{return ee.call(ne),!0}catch{}return!1}function Qt(ne){if(!ne||typeof ne!="object"||!G)return!1;try{return G.call(ne),!0}catch{}return!1}var hr=Object.prototype.hasOwnProperty||function(ne){return ne in this};function Je(ne,be){return hr.call(ne,be)}function xt(ne){return M.call(ne)}function It(ne){if(ne.name)return ne.name;var be=L.call(S.call(ne),/^function\s*([\w$]+)/);return be?be[1]:null}function Or(ne,be){if(ne.indexOf)return ne.indexOf(be);for(var je=0,et=ne.length;je<et;je++)if(ne[je]===be)return je;return-1}function Rt(ne){if(!E||!ne||typeof ne!="object")return!1;try{E.call(ne);try{_.call(ne)}catch{return!0}return ne instanceof Map}catch{}return!1}function pn(ne){if(!de||!ne||typeof ne!="object")return!1;try{de.call(ne,de);try{se.call(ne,se)}catch{return!0}return ne instanceof WeakMap}catch{}return!1}function vn(ne){if(!T||!ne||typeof ne!="object")return!1;try{return T.call(ne),!0}catch{}return!1}function Hr(ne){if(!_||!ne||typeof ne!="object")return!1;try{_.call(ne);try{E.call(ne)}catch{return!0}return ne instanceof Set}catch{}return!1}function tn(ne){if(!se||!ne||typeof ne!="object")return!1;try{se.call(ne,se);try{de.call(ne,de)}catch{return!0}return ne instanceof WeakSet}catch{}return!1}function En(ne){return!ne||typeof ne!="object"?!1:typeof HTMLElement<"u"&&ne instanceof HTMLElement?!0:typeof ne.nodeName=="string"&&typeof ne.getAttribute=="function"}function gn(ne,be){if(ne.length>be.maxStringLength){var je=ne.length-be.maxStringLength,et="... "+je+" more character"+(je>1?"s":"");return gn(F.call(ne,0,be.maxStringLength),be)+et}var ft=K.call(K.call(ne,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Ur);return Ot(ft,"single",be)}function Ur(ne){var be=ne.charCodeAt(0),je={8:"b",9:"t",10:"n",12:"f",13:"r"}[be];return je?"\\"+je:"\\x"+(be<16?"0":"")+te.call(be.toString(16))}function gr(ne){return"Object("+ne+")"}function Er(ne){return ne+" { ? }"}function Bt(ne,be,je,et){var ft=et?Qe(je,et):Y.call(je,", ");return ne+" ("+be+") {"+ft+"}"}function mt(ne){for(var be=0;be<ne.length;be++)if(Or(ne[be],`
437
- `)>=0)return!1;return!0}function st(ne,be){var je;if(ne.indent===" ")je=" ";else if(typeof ne.indent=="number"&&ne.indent>0)je=Y.call(Array(ne.indent+1)," ");else return null;return{base:je,prev:Y.call(Array(be+1),je)}}function Qe(ne,be){if(ne.length===0)return"";var je=`
438
- `+be.prev+be.base;return je+Y.call(ne,","+je)+`
439
- `+be.prev}function ht(ne,be){var je=Ue(ne),et=[];if(je){et.length=ne.length;for(var ft=0;ft<ne.length;ft++)et[ft]=Je(ne,ft)?be(ne[ft],ne):""}var lt=typeof ve=="function"?ve(ne):[],_t;if(He){_t={};for(var kr=0;kr<lt.length;kr++)_t["$"+lt[kr]]=lt[kr]}for(var wt in ne)Je(ne,wt)&&(je&&String(Number(wt))===wt&&wt<ne.length||He&&_t["$"+wt]instanceof Symbol||(ie.call(/[^\w$]/,wt)?et.push(be(wt,ne)+": "+be(ne[wt],ne)):et.push(wt+": "+be(ne[wt],ne))));if(typeof ve=="function")for(var er=0;er<lt.length;er++)ze.call(ne,lt[er])&&et.push("["+be(lt[er])+"]: "+be(ne[lt[er]],ne));return et}},83949:x=>{"use strict";var N=String.prototype.replace,f=/%20/g,v={RFC1738:"RFC1738",RFC3986:"RFC3986"};x.exports={default:v.RFC3986,formatters:{RFC1738:function(C){return N.call(C,f,"+")},RFC3986:function(C){return String(C)}},RFC1738:v.RFC1738,RFC3986:v.RFC3986}},67905:(x,N,f)=>{"use strict";var v=f(85095),C=f(95990),E=f(83949);x.exports={formats:E,parse:C,stringify:v}},95990:(x,N,f)=>{"use strict";var v=f(37748),C=Object.prototype.hasOwnProperty,E=Array.isArray,P={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:v.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},D=function(V){return V.replace(/&#(\d+);/g,function(T,J){return String.fromCharCode(parseInt(J,10))})},R=function(V,T){return V&&typeof V=="string"&&T.comma&&V.indexOf(",")>-1?V.split(","):V},_="utf8=%26%2310003%3B",Z="utf8=%E2%9C%93",q=function(T,J){var M={__proto__:null},S=J.ignoreQueryPrefix?T.replace(/^\?/,""):T,L=J.parameterLimit===1/0?void 0:J.parameterLimit,F=S.split(J.delimiter,L),K=-1,te,j=J.charset;if(J.charsetSentinel)for(te=0;te<F.length;++te)F[te].indexOf("utf8=")===0&&(F[te]===Z?j="utf-8":F[te]===_&&(j="iso-8859-1"),K=te,te=F.length);for(te=0;te<F.length;++te)if(te!==K){var ie=F[te],H=ie.indexOf("]="),Y=H===-1?ie.indexOf("="):H+1,ce,ge;Y===-1?(ce=J.decoder(ie,P.decoder,j,"key"),ge=J.strictNullHandling?null:""):(ce=J.decoder(ie.slice(0,Y),P.decoder,j,"key"),ge=v.maybeMap(R(ie.slice(Y+1),J),function(G){return J.decoder(G,P.decoder,j,"value")})),ge&&J.interpretNumericEntities&&j==="iso-8859-1"&&(ge=D(ge)),ie.indexOf("[]=")>-1&&(ge=E(ge)?[ge]:ge),C.call(M,ce)?M[ce]=v.combine(M[ce],ge):M[ce]=ge}return M},de=function(V,T,J,M){for(var S=M?T:R(T,J),L=V.length-1;L>=0;--L){var F,K=V[L];if(K==="[]"&&J.parseArrays)F=[].concat(S);else{F=J.plainObjects?Object.create(null):{};var te=K.charAt(0)==="["&&K.charAt(K.length-1)==="]"?K.slice(1,-1):K,j=parseInt(te,10);!J.parseArrays&&te===""?F={0:S}:!isNaN(j)&&K!==te&&String(j)===te&&j>=0&&J.parseArrays&&j<=J.arrayLimit?(F=[],F[j]=S):te!=="__proto__"&&(F[te]=S)}S=F}return S},re=function(T,J,M,S){if(T){var L=M.allowDots?T.replace(/\.([^.[]+)/g,"[$1]"):T,F=/(\[[^[\]]*])/,K=/(\[[^[\]]*])/g,te=M.depth>0&&F.exec(L),j=te?L.slice(0,te.index):L,ie=[];if(j){if(!M.plainObjects&&C.call(Object.prototype,j)&&!M.allowPrototypes)return;ie.push(j)}for(var H=0;M.depth>0&&(te=K.exec(L))!==null&&H<M.depth;){if(H+=1,!M.plainObjects&&C.call(Object.prototype,te[1].slice(1,-1))&&!M.allowPrototypes)return;ie.push(te[1])}return te&&ie.push("["+L.slice(te.index)+"]"),de(ie,J,M,S)}},se=function(T){if(!T)return P;if(T.decoder!==null&&T.decoder!==void 0&&typeof T.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof T.charset<"u"&&T.charset!=="utf-8"&&T.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var J=typeof T.charset>"u"?P.charset:T.charset;return{allowDots:typeof T.allowDots>"u"?P.allowDots:!!T.allowDots,allowPrototypes:typeof T.allowPrototypes=="boolean"?T.allowPrototypes:P.allowPrototypes,allowSparse:typeof T.allowSparse=="boolean"?T.allowSparse:P.allowSparse,arrayLimit:typeof T.arrayLimit=="number"?T.arrayLimit:P.arrayLimit,charset:J,charsetSentinel:typeof T.charsetSentinel=="boolean"?T.charsetSentinel:P.charsetSentinel,comma:typeof T.comma=="boolean"?T.comma:P.comma,decoder:typeof T.decoder=="function"?T.decoder:P.decoder,delimiter:typeof T.delimiter=="string"||v.isRegExp(T.delimiter)?T.delimiter:P.delimiter,depth:typeof T.depth=="number"||T.depth===!1?+T.depth:P.depth,ignoreQueryPrefix:T.ignoreQueryPrefix===!0,interpretNumericEntities:typeof T.interpretNumericEntities=="boolean"?T.interpretNumericEntities:P.interpretNumericEntities,parameterLimit:typeof T.parameterLimit=="number"?T.parameterLimit:P.parameterLimit,parseArrays:T.parseArrays!==!1,plainObjects:typeof T.plainObjects=="boolean"?T.plainObjects:P.plainObjects,strictNullHandling:typeof T.strictNullHandling=="boolean"?T.strictNullHandling:P.strictNullHandling}};x.exports=function(V,T){var J=se(T);if(V===""||V===null||typeof V>"u")return J.plainObjects?Object.create(null):{};for(var M=typeof V=="string"?q(V,J):V,S=J.plainObjects?Object.create(null):{},L=Object.keys(M),F=0;F<L.length;++F){var K=L[F],te=re(K,M[K],J,typeof V=="string");S=v.merge(S,te,J)}return J.allowSparse===!0?S:v.compact(S)}},85095:(x,N,f)=>{"use strict";var v=f(44852),C=f(37748),E=f(83949),P=Object.prototype.hasOwnProperty,D={brackets:function(S){return S+"[]"},comma:"comma",indices:function(S,L){return S+"["+L+"]"},repeat:function(S){return S}},R=Array.isArray,_=Array.prototype.push,Z=function(M,S){_.apply(M,R(S)?S:[S])},q=Date.prototype.toISOString,de=E.default,re={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:C.encode,encodeValuesOnly:!1,format:de,formatter:E.formatters[de],indices:!1,serializeDate:function(S){return q.call(S)},skipNulls:!1,strictNullHandling:!1},se=function(S){return typeof S=="string"||typeof S=="number"||typeof S=="boolean"||typeof S=="symbol"||typeof S=="bigint"},V={},T=function M(S,L,F,K,te,j,ie,H,Y,ce,ge,G,ve,ee,He,_e){for(var ze=S,ct=_e,ut=0,at=!1;(ct=ct.get(V))!==void 0&&!at;){var Gt=ct.get(S);if(ut+=1,typeof Gt<"u"){if(Gt===ut)throw new RangeError("Cyclic object value");at=!0}typeof ct.get(V)>"u"&&(ut=0)}if(typeof H=="function"?ze=H(L,ze):ze instanceof Date?ze=ge(ze):F==="comma"&&R(ze)&&(ze=C.maybeMap(ze,function(Kt){return Kt instanceof Date?ge(Kt):Kt})),ze===null){if(te)return ie&&!ee?ie(L,re.encoder,He,"key",G):L;ze=""}if(se(ze)||C.isBuffer(ze)){if(ie){var dt=ee?L:ie(L,re.encoder,He,"key",G);return[ve(dt)+"="+ve(ie(ze,re.encoder,He,"value",G))]}return[ve(L)+"="+ve(String(ze))]}var Ot=[];if(typeof ze>"u")return Ot;var nt;if(F==="comma"&&R(ze))ee&&ie&&(ze=C.maybeMap(ze,ie)),nt=[{value:ze.length>0?ze.join(",")||null:void 0}];else if(R(H))nt=H;else{var Ue=Object.keys(ze);nt=Y?Ue.sort(Y):Ue}for(var Fe=K&&R(ze)&&ze.length===1?L+"[]":L,Re=0;Re<nt.length;++Re){var it=nt[Re],Ft=typeof it=="object"&&typeof it.value<"u"?it.value:ze[it];if(!(j&&Ft===null)){var qe=R(ze)?typeof F=="function"?F(Fe,it):Fe:Fe+(ce?"."+it:"["+it+"]");_e.set(S,ut);var St=v();St.set(V,_e),Z(Ot,M(Ft,qe,F,K,te,j,F==="comma"&&ee&&R(ze)?null:ie,H,Y,ce,ge,G,ve,ee,He,St))}}return Ot},J=function(S){if(!S)return re;if(S.encoder!==null&&typeof S.encoder<"u"&&typeof S.encoder!="function")throw new TypeError("Encoder has to be a function.");var L=S.charset||re.charset;if(typeof S.charset<"u"&&S.charset!=="utf-8"&&S.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var F=E.default;if(typeof S.format<"u"){if(!P.call(E.formatters,S.format))throw new TypeError("Unknown format option provided.");F=S.format}var K=E.formatters[F],te=re.filter;return(typeof S.filter=="function"||R(S.filter))&&(te=S.filter),{addQueryPrefix:typeof S.addQueryPrefix=="boolean"?S.addQueryPrefix:re.addQueryPrefix,allowDots:typeof S.allowDots>"u"?re.allowDots:!!S.allowDots,charset:L,charsetSentinel:typeof S.charsetSentinel=="boolean"?S.charsetSentinel:re.charsetSentinel,delimiter:typeof S.delimiter>"u"?re.delimiter:S.delimiter,encode:typeof S.encode=="boolean"?S.encode:re.encode,encoder:typeof S.encoder=="function"?S.encoder:re.encoder,encodeValuesOnly:typeof S.encodeValuesOnly=="boolean"?S.encodeValuesOnly:re.encodeValuesOnly,filter:te,format:F,formatter:K,serializeDate:typeof S.serializeDate=="function"?S.serializeDate:re.serializeDate,skipNulls:typeof S.skipNulls=="boolean"?S.skipNulls:re.skipNulls,sort:typeof S.sort=="function"?S.sort:null,strictNullHandling:typeof S.strictNullHandling=="boolean"?S.strictNullHandling:re.strictNullHandling}};x.exports=function(M,S){var L=M,F=J(S),K,te;typeof F.filter=="function"?(te=F.filter,L=te("",L)):R(F.filter)&&(te=F.filter,K=te);var j=[];if(typeof L!="object"||L===null)return"";var ie;S&&S.arrayFormat in D?ie=S.arrayFormat:S&&"indices"in S?ie=S.indices?"indices":"repeat":ie="indices";var H=D[ie];if(S&&"commaRoundTrip"in S&&typeof S.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var Y=H==="comma"&&S&&S.commaRoundTrip;K||(K=Object.keys(L)),F.sort&&K.sort(F.sort);for(var ce=v(),ge=0;ge<K.length;++ge){var G=K[ge];F.skipNulls&&L[G]===null||Z(j,T(L[G],G,H,Y,F.strictNullHandling,F.skipNulls,F.encode?F.encoder:null,F.filter,F.sort,F.allowDots,F.serializeDate,F.format,F.formatter,F.encodeValuesOnly,F.charset,ce))}var ve=j.join(F.delimiter),ee=F.addQueryPrefix===!0?"?":"";return F.charsetSentinel&&(F.charset==="iso-8859-1"?ee+="utf8=%26%2310003%3B&":ee+="utf8=%E2%9C%93&"),ve.length>0?ee+ve:""}},37748:(x,N,f)=>{"use strict";var v=f(83949),C=Object.prototype.hasOwnProperty,E=Array.isArray,P=function(){for(var M=[],S=0;S<256;++S)M.push("%"+((S<16?"0":"")+S.toString(16)).toUpperCase());return M}(),D=function(S){for(;S.length>1;){var L=S.pop(),F=L.obj[L.prop];if(E(F)){for(var K=[],te=0;te<F.length;++te)typeof F[te]<"u"&&K.push(F[te]);L.obj[L.prop]=K}}},R=function(S,L){for(var F=L&&L.plainObjects?Object.create(null):{},K=0;K<S.length;++K)typeof S[K]<"u"&&(F[K]=S[K]);return F},_=function M(S,L,F){if(!L)return S;if(typeof L!="object"){if(E(S))S.push(L);else if(S&&typeof S=="object")(F&&(F.plainObjects||F.allowPrototypes)||!C.call(Object.prototype,L))&&(S[L]=!0);else return[S,L];return S}if(!S||typeof S!="object")return[S].concat(L);var K=S;return E(S)&&!E(L)&&(K=R(S,F)),E(S)&&E(L)?(L.forEach(function(te,j){if(C.call(S,j)){var ie=S[j];ie&&typeof ie=="object"&&te&&typeof te=="object"?S[j]=M(ie,te,F):S.push(te)}else S[j]=te}),S):Object.keys(L).reduce(function(te,j){var ie=L[j];return C.call(te,j)?te[j]=M(te[j],ie,F):te[j]=ie,te},K)},Z=function(S,L){return Object.keys(L).reduce(function(F,K){return F[K]=L[K],F},S)},q=function(M,S,L){var F=M.replace(/\+/g," ");if(L==="iso-8859-1")return F.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(F)}catch{return F}},de=function(S,L,F,K,te){if(S.length===0)return S;var j=S;if(typeof S=="symbol"?j=Symbol.prototype.toString.call(S):typeof S!="string"&&(j=String(S)),F==="iso-8859-1")return escape(j).replace(/%u[0-9a-f]{4}/gi,function(ce){return"%26%23"+parseInt(ce.slice(2),16)+"%3B"});for(var ie="",H=0;H<j.length;++H){var Y=j.charCodeAt(H);if(Y===45||Y===46||Y===95||Y===126||Y>=48&&Y<=57||Y>=65&&Y<=90||Y>=97&&Y<=122||te===v.RFC1738&&(Y===40||Y===41)){ie+=j.charAt(H);continue}if(Y<128){ie=ie+P[Y];continue}if(Y<2048){ie=ie+(P[192|Y>>6]+P[128|Y&63]);continue}if(Y<55296||Y>=57344){ie=ie+(P[224|Y>>12]+P[128|Y>>6&63]+P[128|Y&63]);continue}H+=1,Y=65536+((Y&1023)<<10|j.charCodeAt(H)&1023),ie+=P[240|Y>>18]+P[128|Y>>12&63]+P[128|Y>>6&63]+P[128|Y&63]}return ie},re=function(S){for(var L=[{obj:{o:S},prop:"o"}],F=[],K=0;K<L.length;++K)for(var te=L[K],j=te.obj[te.prop],ie=Object.keys(j),H=0;H<ie.length;++H){var Y=ie[H],ce=j[Y];typeof ce=="object"&&ce!==null&&F.indexOf(ce)===-1&&(L.push({obj:j,prop:Y}),F.push(ce))}return D(L),S},se=function(S){return Object.prototype.toString.call(S)==="[object RegExp]"},V=function(S){return!S||typeof S!="object"?!1:!!(S.constructor&&S.constructor.isBuffer&&S.constructor.isBuffer(S))},T=function(S,L){return[].concat(S,L)},J=function(S,L){if(E(S)){for(var F=[],K=0;K<S.length;K+=1)F.push(L(S[K]));return F}return L(S)};x.exports={arrayToObject:R,assign:Z,combine:T,compact:re,decode:q,encode:de,isBuffer:V,isRegExp:se,maybeMap:J,merge:_}},99913:(x,N,f)=>{"use strict";var v;function C(){return C=Object.assign||function(se){for(var V=1;V<arguments.length;V++){var T=arguments[V];for(var J in T)Object.prototype.hasOwnProperty.call(T,J)&&(se[J]=T[J])}return se},C.apply(this,arguments)}function E(se){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?E=function(T){return typeof T}:E=function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},E(se)}var P=function(){var se=function(T,J){return se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,S){M.__proto__=S}||function(M,S){for(var L in S)S.hasOwnProperty(L)&&(M[L]=S[L])},se(T,J)};return function(V,T){se(V,T);function J(){this.constructor=V}V.prototype=T===null?Object.create(T):(J.prototype=T.prototype,new J)}}();v={value:!0},v=N.fk=void 0;var D=f(29901),R=typeof navigator>"u"||f.g.PREVENT_CODEMIRROR_RENDER===!0,_;R||(_=f(46944));var Z=function(){function se(){}return se.equals=function(V,T){var J=this,M=Object.keys,S=E(V),L=E(T);return V&&T&&S==="object"&&S===L?M(V).length===M(T).length&&M(V).every(function(F){return J.equals(V[F],T[F])}):V===T},se}(),q=function(){function se(V,T){this.editor=V,this.props=T}return se.prototype.delegateCursor=function(V,T,J){var M=this.editor.getDoc();J&&this.editor.focus(),T?M.setCursor(V):M.setCursor(V,null,{scroll:!1})},se.prototype.delegateScroll=function(V){this.editor.scrollTo(V.x,V.y)},se.prototype.delegateSelection=function(V,T){var J=this.editor.getDoc();J.setSelections(V),T&&this.editor.focus()},se.prototype.apply=function(V){V&&V.selection&&V.selection.ranges&&this.delegateSelection(V.selection.ranges,V.selection.focus||!1),V&&V.cursor&&this.delegateCursor(V.cursor,V.autoScroll||!1,this.editor.getOption("autofocus")||!1),V&&V.scroll&&this.delegateScroll(V.scroll)},se.prototype.applyNext=function(V,T,J){V&&V.selection&&V.selection.ranges&&T&&T.selection&&T.selection.ranges&&!Z.equals(V.selection.ranges,T.selection.ranges)&&this.delegateSelection(T.selection.ranges,T.selection.focus||!1),V&&V.cursor&&T&&T.cursor&&!Z.equals(V.cursor,T.cursor)&&this.delegateCursor(J.cursor||T.cursor,T.autoScroll||!1,T.autoCursor||!1),V&&V.scroll&&T&&T.scroll&&!Z.equals(V.scroll,T.scroll)&&this.delegateScroll(T.scroll)},se.prototype.applyUserDefined=function(V,T){T&&T.cursor&&this.delegateCursor(T.cursor,V.autoScroll||!1,this.editor.getOption("autofocus")||!1)},se.prototype.wire=function(V){var T=this;Object.keys(V||{}).filter(function(J){return/^on/.test(J)}).forEach(function(J){switch(J){case"onBlur":T.editor.on("blur",function(M,S){T.props.onBlur(T.editor,S)});break;case"onContextMenu":{T.editor.on("contextmenu",function(M,S){T.props.onContextMenu(T.editor,S)});break}case"onCopy":{T.editor.on("copy",function(M,S){T.props.onCopy(T.editor,S)});break}case"onCursor":T.editor.on("cursorActivity",function(M){T.props.onCursor(T.editor,T.editor.getDoc().getCursor())});break;case"onCursorActivity":T.editor.on("cursorActivity",function(M){T.props.onCursorActivity(T.editor)});break;case"onCut":{T.editor.on("cut",function(M,S){T.props.onCut(T.editor,S)});break}case"onDblClick":{T.editor.on("dblclick",function(M,S){T.props.onDblClick(T.editor,S)});break}case"onDragEnter":T.editor.on("dragenter",function(M,S){T.props.onDragEnter(T.editor,S)});break;case"onDragLeave":{T.editor.on("dragleave",function(M,S){T.props.onDragLeave(T.editor,S)});break}case"onDragOver":T.editor.on("dragover",function(M,S){T.props.onDragOver(T.editor,S)});break;case"onDragStart":{T.editor.on("dragstart",function(M,S){T.props.onDragStart(T.editor,S)});break}case"onDrop":T.editor.on("drop",function(M,S){T.props.onDrop(T.editor,S)});break;case"onFocus":T.editor.on("focus",function(M,S){T.props.onFocus(T.editor,S)});break;case"onGutterClick":T.editor.on("gutterClick",function(M,S,L,F){T.props.onGutterClick(T.editor,S,L,F)});break;case"onInputRead":T.editor.on("inputRead",function(M,S){T.props.onInputRead(T.editor,S)});break;case"onKeyDown":T.editor.on("keydown",function(M,S){T.props.onKeyDown(T.editor,S)});break;case"onKeyHandled":T.editor.on("keyHandled",function(M,S,L){T.props.onKeyHandled(T.editor,S,L)});break;case"onKeyPress":T.editor.on("keypress",function(M,S){T.props.onKeyPress(T.editor,S)});break;case"onKeyUp":T.editor.on("keyup",function(M,S){T.props.onKeyUp(T.editor,S)});break;case"onMouseDown":{T.editor.on("mousedown",function(M,S){T.props.onMouseDown(T.editor,S)});break}case"onPaste":{T.editor.on("paste",function(M,S){T.props.onPaste(T.editor,S)});break}case"onRenderLine":{T.editor.on("renderLine",function(M,S,L){T.props.onRenderLine(T.editor,S,L)});break}case"onScroll":T.editor.on("scroll",function(M){T.props.onScroll(T.editor,T.editor.getScrollInfo())});break;case"onSelection":T.editor.on("beforeSelectionChange",function(M,S){T.props.onSelection(T.editor,S)});break;case"onTouchStart":{T.editor.on("touchstart",function(M,S){T.props.onTouchStart(T.editor,S)});break}case"onUpdate":T.editor.on("update",function(M){T.props.onUpdate(T.editor)});break;case"onViewportChange":T.editor.on("viewportChange",function(M,S,L){T.props.onViewportChange(T.editor,S,L)});break}})},se}(),de=function(se){P(V,se);function V(T){var J=se.call(this,T)||this;return R||(J.applied=!1,J.appliedNext=!1,J.appliedUserDefined=!1,J.deferred=null,J.emulating=!1,J.hydrated=!1,J.initCb=function(){J.props.editorDidConfigure&&J.props.editorDidConfigure(J.editor)},J.mounted=!1),J}return V.prototype.hydrate=function(T){var J=this,M=T&&T.options?T.options:{},S=C({},_.defaults,this.editor.options,M),L=Object.keys(S).some(function(F){return J.editor.getOption(F)!==S[F]});L&&Object.keys(S).forEach(function(F){M.hasOwnProperty(F)&&J.editor.getOption(F)!==S[F]&&(J.editor.setOption(F,S[F]),J.mirror.setOption(F,S[F]))}),this.hydrated||(this.deferred?this.resolveChange(T.value):this.initChange(T.value||"")),this.hydrated=!0},V.prototype.initChange=function(T){this.emulating=!0;var J=this.editor.getDoc(),M=J.lastLine(),S=J.getLine(J.lastLine()).length;J.replaceRange(T||"",{line:0,ch:0},{line:M,ch:S}),this.mirror.setValue(T),J.clearHistory(),this.mirror.clearHistory(),this.emulating=!1},V.prototype.resolveChange=function(T){this.emulating=!0;var J=this.editor.getDoc();if(this.deferred.origin==="undo"?J.undo():this.deferred.origin==="redo"?J.redo():J.replaceRange(this.deferred.text,this.deferred.from,this.deferred.to,this.deferred.origin),T&&T!==J.getValue()){var M=J.getCursor();J.setValue(T),J.setCursor(M)}this.emulating=!1,this.deferred=null},V.prototype.mirrorChange=function(T){var J=this.editor.getDoc();return T.origin==="undo"?(J.setHistory(this.mirror.getHistory()),this.mirror.undo()):T.origin==="redo"?(J.setHistory(this.mirror.getHistory()),this.mirror.redo()):this.mirror.replaceRange(T.text,T.from,T.to,T.origin),this.mirror.getValue()},V.prototype.componentDidMount=function(){var T=this;R||(this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&_.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=_(this.ref,this.props.options),this.shared=new q(this.editor,this.props),this.mirror=_(function(){},this.props.options),this.editor.on("electricInput",function(){T.mirror.setHistory(T.editor.getDoc().getHistory())}),this.editor.on("cursorActivity",function(){T.mirror.setCursor(T.editor.getDoc().getCursor())}),this.editor.on("beforeChange",function(J,M){if(!T.emulating){M.cancel(),T.deferred=M;var S=T.mirrorChange(T.deferred);T.props.onBeforeChange&&T.props.onBeforeChange(T.editor,T.deferred,S)}}),this.editor.on("change",function(J,M){T.mounted&&T.props.onChange&&T.props.onChange(T.editor,M,T.editor.getValue())}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getOption("autofocus")&&this.editor.focus(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},V.prototype.componentDidUpdate=function(T){if(!R){var J={cursor:null};this.props.value!==T.value&&(this.hydrated=!1),!this.props.autoCursor&&this.props.autoCursor!==void 0&&(J.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.appliedNext||(this.shared.applyNext(T,this.props,J),this.appliedNext=!0),this.shared.applyUserDefined(T,J),this.appliedUserDefined=!0}},V.prototype.componentWillUnmount=function(){R||this.props.editorWillUnmount&&this.props.editorWillUnmount(_)},V.prototype.shouldComponentUpdate=function(T,J){return!R},V.prototype.render=function(){var T=this;if(R)return null;var J=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return D.createElement("div",{className:J,ref:function(S){return T.ref=S}})},V}(D.Component);N.fk=de;var re=function(se){P(V,se);function V(T){var J=se.call(this,T)||this;return R||(J.applied=!1,J.appliedUserDefined=!1,J.continueChange=!1,J.detached=!1,J.hydrated=!1,J.initCb=function(){J.props.editorDidConfigure&&J.props.editorDidConfigure(J.editor)},J.mounted=!1,J.onBeforeChangeCb=function(){J.continueChange=!0}),J}return V.prototype.hydrate=function(T){var J=this,M=T&&T.options?T.options:{},S=C({},_.defaults,this.editor.options,M),L=Object.keys(S).some(function(j){return J.editor.getOption(j)!==S[j]});if(L&&Object.keys(S).forEach(function(j){M.hasOwnProperty(j)&&J.editor.getOption(j)!==S[j]&&J.editor.setOption(j,S[j])}),!this.hydrated){var F=this.editor.getDoc(),K=F.lastLine(),te=F.getLine(F.lastLine()).length;F.replaceRange(T.value||"",{line:0,ch:0},{line:K,ch:te})}this.hydrated=!0},V.prototype.componentDidMount=function(){var T=this;R||(this.detached=this.props.detach===!0,this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&_.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=_(this.ref,this.props.options),this.shared=new q(this.editor,this.props),this.editor.on("beforeChange",function(J,M){T.props.onBeforeChange&&T.props.onBeforeChange(T.editor,M,T.editor.getValue(),T.onBeforeChangeCb)}),this.editor.on("change",function(J,M){!T.mounted||!T.props.onChange||(T.props.onBeforeChange?T.continueChange&&T.props.onChange(T.editor,M,T.editor.getValue()):T.props.onChange(T.editor,M,T.editor.getValue()))}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getDoc().clearHistory(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},V.prototype.componentDidUpdate=function(T){if(this.detached&&this.props.detach===!1&&(this.detached=!1,T.editorDidAttach&&T.editorDidAttach(this.editor)),!this.detached&&this.props.detach===!0&&(this.detached=!0,T.editorDidDetach&&T.editorDidDetach(this.editor)),!(R||this.detached)){var J={cursor:null};this.props.value!==T.value&&(this.hydrated=!1,this.applied=!1,this.appliedUserDefined=!1),!T.autoCursor&&T.autoCursor!==void 0&&(J.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.applied||(this.shared.apply(T),this.applied=!0),this.appliedUserDefined||(this.shared.applyUserDefined(T,J),this.appliedUserDefined=!0)}},V.prototype.componentWillUnmount=function(){R||this.props.editorWillUnmount&&this.props.editorWillUnmount(_)},V.prototype.shouldComponentUpdate=function(T,J){var M=!0;return R&&(M=!1),this.detached&&T.detach&&(M=!1),M},V.prototype.render=function(){var T=this;if(R)return null;var J=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return D.createElement("div",{className:J,ref:function(S){return T.ref=S}})},V}(D.Component);v=re},44852:(x,N,f)=>{"use strict";var v=f(71013),C=f(2864),E=f(14927),P=v("%TypeError%"),D=v("%WeakMap%",!0),R=v("%Map%",!0),_=C("WeakMap.prototype.get",!0),Z=C("WeakMap.prototype.set",!0),q=C("WeakMap.prototype.has",!0),de=C("Map.prototype.get",!0),re=C("Map.prototype.set",!0),se=C("Map.prototype.has",!0),V=function(S,L){for(var F=S,K;(K=F.next)!==null;F=K)if(K.key===L)return F.next=K.next,K.next=S.next,S.next=K,K},T=function(S,L){var F=V(S,L);return F&&F.value},J=function(S,L,F){var K=V(S,L);K?K.value=F:S.next={key:L,next:S.next,value:F}},M=function(S,L){return!!V(S,L)};x.exports=function(){var L,F,K,te={assert:function(j){if(!te.has(j))throw new P("Side channel does not contain "+E(j))},get:function(j){if(D&&j&&(typeof j=="object"||typeof j=="function")){if(L)return _(L,j)}else if(R){if(F)return de(F,j)}else if(K)return T(K,j)},has:function(j){if(D&&j&&(typeof j=="object"||typeof j=="function")){if(L)return q(L,j)}else if(R){if(F)return se(F,j)}else if(K)return M(K,j);return!1},set:function(j,ie){D&&j&&(typeof j=="object"||typeof j=="function")?(L||(L=new D),Z(L,j,ie)):R?(F||(F=new R),re(F,j,ie)):(K||(K={key:{},next:null}),J(K,j,ie))}};return te}},83539:(x,N,f)=>{var v=f(26673),C=f(20788);C=C.__esModule?C.default:C,typeof C=="string"&&(C=[[x.id,C,""]]);var E={};E.insert="head",E.singleton=!1;var P=v(C,E);x.exports=C.locals||{}},17664:(x,N,f)=>{var v=f(26673),C=f(15218);C=C.__esModule?C.default:C,typeof C=="string"&&(C=[[x.id,C,""]]);var E={};E.insert="head",E.singleton=!1;var P=v(C,E);x.exports=C.locals||{}},6766:(x,N,f)=>{var v=f(26673),C=f(80766);C=C.__esModule?C.default:C,typeof C=="string"&&(C=[[x.id,C,""]]);var E={};E.insert="head",E.singleton=!1;var P=v(C,E);x.exports=C.locals||{}},49812:(x,N,f)=>{var v=f(26673),C=f(62459);C=C.__esModule?C.default:C,typeof C=="string"&&(C=[[x.id,C,""]]);var E={};E.insert="head",E.singleton=!1;var P=v(C,E);x.exports=C.locals||{}},56089:x=>{"use strict";x.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg=="},17735:x=>{"use strict";x.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII="},96192:x=>{"use strict";x.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC"},71090:x=>{"use strict";x.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII="},46050:x=>{"use strict";x.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII="},65710:()=>{},93652:(x,N,f)=>{x.exports=f(24018)},10017:(x,N,f)=>{x.exports=f(27411)},34961:(x,N,f)=>{x.exports=f(79155)},86751:(x,N,f)=>{x.exports=f(13375)},12953:(x,N,f)=>{x.exports=f(95442)},11099:(x,N,f)=>{x.exports=f(55334)},86351:(x,N,f)=>{x.exports=f(48261)},70762:(x,N,f)=>{x.exports=f(92864)},10954:(x,N,f)=>{x.exports=f(27923)},55839:(x,N,f)=>{x.exports=f(89225)},23422:(x,N,f)=>{x.exports=f(95281)},47319:(x,N,f)=>{x.exports=f(55468)}}]);