@opencloud-eu/web-pkg 4.0.0 → 4.2.0

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 (404) hide show
  1. package/dist/{TextEditor-CqzAOOm0.js → TextEditor-DjjOAW4z.js} +124 -70
  2. package/dist/assets/{worker-bk9PAyWf.js → worker-CGWVcik_.js} +28 -28
  3. package/dist/assets/worker-CvdOYtKy.js +50 -0
  4. package/dist/assets/{worker-Cgdggo8k.js → worker-DLek5ZML.js} +28 -28
  5. package/dist/index-R7qeOPe_.js +34105 -0
  6. package/dist/src/apps/index.d.ts +1 -0
  7. package/dist/src/apps/types.d.ts +113 -0
  8. package/dist/src/cern/composables/index.d.ts +1 -0
  9. package/dist/src/cern/composables/useGroupingSettings.d.ts +34 -0
  10. package/dist/src/cern/index.d.ts +1 -0
  11. package/dist/src/components/AppBar/AppBar.vue.d.ts +438 -0
  12. package/dist/src/components/AppBar/CreateSpace.vue.d.ts +18 -0
  13. package/dist/src/components/AppBar/index.d.ts +2 -0
  14. package/dist/src/components/AppLoadingSpinner.vue.d.ts +2 -0
  15. package/dist/src/components/AppTemplates/AppWrapper.vue.d.ts +51 -0
  16. package/dist/src/components/AppTemplates/AppWrapperRoute.d.ts +10 -0
  17. package/dist/src/components/AppTemplates/PartialViews/ErrorScreen.vue.d.ts +22 -0
  18. package/dist/src/components/AppTemplates/PartialViews/LoadingScreen.vue.d.ts +2 -0
  19. package/dist/src/components/AppTemplates/index.d.ts +3 -0
  20. package/dist/src/components/AppTemplates/types.d.ts +11 -0
  21. package/dist/src/components/AppTopBar.vue.d.ts +18 -0
  22. package/dist/src/components/Avatars/AvatarUpload.vue.d.ts +5 -0
  23. package/dist/src/components/Avatars/UserAvatar.vue.d.ts +6 -0
  24. package/dist/src/components/Avatars/index.d.ts +2 -0
  25. package/dist/src/components/BatchActions.vue.d.ts +123 -0
  26. package/dist/src/components/ContextActions/ActionMenuDropItem.vue.d.ts +10 -0
  27. package/dist/src/components/ContextActions/ActionMenuItem.vue.d.ts +92 -0
  28. package/dist/src/components/ContextActions/ContextActionMenu.vue.d.ts +134 -0
  29. package/dist/src/components/ContextActions/ContextMenuQuickAction.vue.d.ts +41 -0
  30. package/dist/src/components/ContextActions/index.d.ts +5 -0
  31. package/dist/src/components/ContextActions/types.d.ts +13 -0
  32. package/dist/src/components/CreateLinkModal.vue.d.ts +163 -0
  33. package/dist/src/components/CustomComponentTarget.vue.d.ts +16 -0
  34. package/dist/src/components/FilesList/ContextActions.vue.d.ts +147 -0
  35. package/dist/src/components/FilesList/ResourceGhostElement.vue.d.ts +51 -0
  36. package/dist/src/components/FilesList/ResourceIcon.vue.d.ts +47 -0
  37. package/dist/src/components/FilesList/ResourceLink.vue.d.ts +67 -0
  38. package/dist/src/components/FilesList/ResourceListItem.vue.d.ts +21 -0
  39. package/dist/src/components/FilesList/ResourceName.vue.d.ts +140 -0
  40. package/dist/src/components/FilesList/ResourceSize.vue.d.ts +25 -0
  41. package/dist/src/components/FilesList/ResourceStatusIndicators.vue.d.ts +9 -0
  42. package/dist/src/components/FilesList/ResourceTable.vue.d.ts +1538 -0
  43. package/dist/src/components/FilesList/ResourceTile.vue.d.ts +177 -0
  44. package/dist/src/components/FilesList/ResourceTiles.vue.d.ts +202 -0
  45. package/dist/src/components/FilesList/index.d.ts +10 -0
  46. package/dist/src/components/Filters/ItemFilterInline.vue.d.ts +28 -0
  47. package/dist/src/components/Filters/index.d.ts +3 -0
  48. package/dist/src/components/Filters/types.d.ts +4 -0
  49. package/dist/src/components/ItemFilter.vue.d.ts +223 -0
  50. package/dist/src/components/ItemFilterToggle.vue.d.ts +26 -0
  51. package/dist/src/components/LinkRoleDropdown.vue.d.ts +30 -0
  52. package/dist/src/components/LoadingIndicator.vue.d.ts +5 -0
  53. package/dist/src/components/Modals/DatePickerModal.vue.d.ts +104 -0
  54. package/dist/src/components/Modals/EmojiPickerModal.vue.d.ts +19 -0
  55. package/dist/src/components/Modals/FilePickerModal.vue.d.ts +48 -0
  56. package/dist/src/components/Modals/ResourceConflictModal.vue.d.ts +76 -0
  57. package/dist/src/components/Modals/SaveAsModal.vue.d.ts +49 -0
  58. package/dist/src/components/Modals/SpaceMoveInfoModal.vue.d.ts +14 -0
  59. package/dist/src/components/Modals/UnsavedChangesModal.vue.d.ts +27 -0
  60. package/dist/src/components/Modals/index.d.ts +7 -0
  61. package/dist/src/components/NoContentMessage.vue.d.ts +23 -0
  62. package/dist/src/components/Pagination.vue.d.ts +20 -0
  63. package/dist/src/components/PortalTarget.vue.d.ts +41 -0
  64. package/dist/src/components/QuotaSelect.vue.d.ts +74 -0
  65. package/dist/src/components/Search/ResourcePreview.vue.d.ts +48 -0
  66. package/dist/src/components/Search/index.d.ts +2 -0
  67. package/dist/src/components/Search/types.d.ts +29 -0
  68. package/dist/src/components/SearchBarFilter.vue.d.ts +27 -0
  69. package/dist/src/components/SideBar/CompareSaveDialog.vue.d.ts +38 -0
  70. package/dist/src/components/SideBar/FileSideBar.vue.d.ts +115 -0
  71. package/dist/src/components/SideBar/Files/FileInfo.vue.d.ts +5 -0
  72. package/dist/src/components/SideBar/Files/index.d.ts +1 -0
  73. package/dist/src/components/SideBar/SideBar.vue.d.ts +41 -0
  74. package/dist/src/components/SideBar/Spaces/Details/SpaceDetails.vue.d.ts +5 -0
  75. package/dist/src/components/SideBar/Spaces/Details/SpaceDetailsMultiple.vue.d.ts +6 -0
  76. package/dist/src/components/SideBar/Spaces/Details/index.d.ts +2 -0
  77. package/dist/src/components/SideBar/Spaces/SpaceInfo.vue.d.ts +5 -0
  78. package/dist/src/components/SideBar/Spaces/SpaceNoSelection.vue.d.ts +2 -0
  79. package/dist/src/components/SideBar/Spaces/index.d.ts +3 -0
  80. package/dist/src/components/SideBar/WebDavDetails.vue.d.ts +21 -0
  81. package/dist/src/components/SideBar/index.d.ts +7 -0
  82. package/dist/src/components/SideBar/types.d.ts +22 -0
  83. package/dist/src/components/SpaceQuota.vue.d.ts +6 -0
  84. package/dist/src/components/Spaces/QuotaModal.vue.d.ts +18 -0
  85. package/dist/src/components/Spaces/SpaceImageModal.vue.d.ts +13 -0
  86. package/dist/src/components/Spaces/index.d.ts +2 -0
  87. package/dist/src/components/TextEditor/TextEditor.vue.d.ts +165 -0
  88. package/dist/src/components/TextEditor/index.d.ts +161 -0
  89. package/dist/src/components/TextEditor/l18n.d.ts +3 -0
  90. package/dist/src/components/VersionCheck.vue.d.ts +2 -0
  91. package/dist/src/components/ViewOptions.vue.d.ts +14 -0
  92. package/dist/src/components/index.d.ts +29 -0
  93. package/dist/src/composables/ability/index.d.ts +1 -0
  94. package/dist/src/composables/ability/useAbility.d.ts +2 -0
  95. package/dist/src/composables/actions/files/index.d.ts +29 -0
  96. package/dist/src/composables/actions/files/useFileActions.d.ts +32 -0
  97. package/dist/src/composables/actions/files/useFileActionsCopy.d.ts +4 -0
  98. package/dist/src/composables/actions/files/useFileActionsCopyPermanentLink.d.ts +4 -0
  99. package/dist/src/composables/actions/files/useFileActionsCreateLink.d.ts +6 -0
  100. package/dist/src/composables/actions/files/useFileActionsCreateNewFile.d.ts +10 -0
  101. package/dist/src/composables/actions/files/useFileActionsCreateNewFolder.d.ts +9 -0
  102. package/dist/src/composables/actions/files/useFileActionsCreateNewShortcut.d.ts +8 -0
  103. package/dist/src/composables/actions/files/useFileActionsCreateSpaceFromResource.d.ts +4 -0
  104. package/dist/src/composables/actions/files/useFileActionsDelete.d.ts +4 -0
  105. package/dist/src/composables/actions/files/useFileActionsDisableSync.d.ts +5 -0
  106. package/dist/src/composables/actions/files/useFileActionsDownloadArchive.d.ts +4 -0
  107. package/dist/src/composables/actions/files/useFileActionsDownloadFile.d.ts +4 -0
  108. package/dist/src/composables/actions/files/useFileActionsEmptyTrashBin.d.ts +8 -0
  109. package/dist/src/composables/actions/files/useFileActionsEnableSync.d.ts +5 -0
  110. package/dist/src/composables/actions/files/useFileActionsFavorite.d.ts +4 -0
  111. package/dist/src/composables/actions/files/useFileActionsMove.d.ts +4 -0
  112. package/dist/src/composables/actions/files/useFileActionsNavigate.d.ts +4 -0
  113. package/dist/src/composables/actions/files/useFileActionsOpenShortcut.d.ts +5 -0
  114. package/dist/src/composables/actions/files/useFileActionsOpenWithApp.d.ts +12 -0
  115. package/dist/src/composables/actions/files/useFileActionsPaste.d.ts +4 -0
  116. package/dist/src/composables/actions/files/useFileActionsRename.d.ts +6 -0
  117. package/dist/src/composables/actions/files/useFileActionsRestore.d.ts +15 -0
  118. package/dist/src/composables/actions/files/useFileActionsSaveAs.d.ts +7 -0
  119. package/dist/src/composables/actions/files/useFileActionsSetImage.d.ts +4 -0
  120. package/dist/src/composables/actions/files/useFileActionsShowActions.d.ts +4 -0
  121. package/dist/src/composables/actions/files/useFileActionsShowDetails.d.ts +4 -0
  122. package/dist/src/composables/actions/files/useFileActionsShowShares.d.ts +5 -0
  123. package/dist/src/composables/actions/files/useFileActionsToggleHideShare.d.ts +5 -0
  124. package/dist/src/composables/actions/files/useFileActionsUndoDelete.d.ts +8 -0
  125. package/dist/src/composables/actions/helpers/index.d.ts +5 -0
  126. package/dist/src/composables/actions/helpers/useFileActionsDeleteResources.d.ts +5 -0
  127. package/dist/src/composables/actions/helpers/useIsAppActive.d.ts +1 -0
  128. package/dist/src/composables/actions/helpers/useIsFilesAppActive.d.ts +1 -0
  129. package/dist/src/composables/actions/helpers/useIsResourceNameValid.d.ts +11 -0
  130. package/dist/src/composables/actions/helpers/useIsSearchActive.d.ts +1 -0
  131. package/dist/src/composables/actions/index.d.ts +8 -0
  132. package/dist/src/composables/actions/spaces/index.d.ts +12 -0
  133. package/dist/src/composables/actions/spaces/useSpaceActionsDelete.d.ts +6 -0
  134. package/dist/src/composables/actions/spaces/useSpaceActionsDeleteImage.d.ts +8 -0
  135. package/dist/src/composables/actions/spaces/useSpaceActionsDisable.d.ts +6 -0
  136. package/dist/src/composables/actions/spaces/useSpaceActionsDuplicate.d.ts +6 -0
  137. package/dist/src/composables/actions/spaces/useSpaceActionsEditDescription.d.ts +6 -0
  138. package/dist/src/composables/actions/spaces/useSpaceActionsEditQuota.d.ts +4 -0
  139. package/dist/src/composables/actions/spaces/useSpaceActionsEditReadmeContent.d.ts +4 -0
  140. package/dist/src/composables/actions/spaces/useSpaceActionsNavigateToTrash.d.ts +4 -0
  141. package/dist/src/composables/actions/spaces/useSpaceActionsRename.d.ts +6 -0
  142. package/dist/src/composables/actions/spaces/useSpaceActionsRestore.d.ts +6 -0
  143. package/dist/src/composables/actions/spaces/useSpaceActionsSetIcon.d.ts +6 -0
  144. package/dist/src/composables/actions/spaces/useSpaceActionsShowMembers.d.ts +4 -0
  145. package/dist/src/composables/actions/types.d.ts +47 -0
  146. package/dist/src/composables/actions/useActionsShowDetails.d.ts +4 -0
  147. package/dist/src/composables/actions/useOpenEmptyEditor.d.ts +3 -0
  148. package/dist/src/composables/actions/useOpenWithDefaultApp.d.ts +7 -0
  149. package/dist/src/composables/actions/useWindowOpen.d.ts +3 -0
  150. package/dist/src/composables/appDefaults/index.d.ts +8 -0
  151. package/dist/src/composables/appDefaults/types.d.ts +15 -0
  152. package/dist/src/composables/appDefaults/useAppConfig.d.ts +11 -0
  153. package/dist/src/composables/appDefaults/useAppDefaults.d.ts +20 -0
  154. package/dist/src/composables/appDefaults/useAppDocumentTitle.d.ts +13 -0
  155. package/dist/src/composables/appDefaults/useAppFileHandling.d.ts +24 -0
  156. package/dist/src/composables/appDefaults/useAppFolderHandling.d.ts +16 -0
  157. package/dist/src/composables/appDefaults/useAppMeta.d.ts +9 -0
  158. package/dist/src/composables/appDefaults/useAppNavigation.d.ts +27 -0
  159. package/dist/src/composables/appDefaults/useDocumentTitle.d.ts +8 -0
  160. package/dist/src/composables/appProviderService/index.d.ts +1 -0
  161. package/dist/src/composables/appProviderService/useAppProviderService.d.ts +2 -0
  162. package/dist/src/composables/archiverService/index.d.ts +1 -0
  163. package/dist/src/composables/archiverService/useArchiverService.d.ts +2 -0
  164. package/dist/src/composables/authContext/index.d.ts +2 -0
  165. package/dist/src/composables/authContext/useAuthService.d.ts +10 -0
  166. package/dist/src/composables/authContext/useRequest.d.ts +15 -0
  167. package/dist/src/composables/avatars/index.d.ts +1 -0
  168. package/dist/src/composables/avatars/useLoadAvatars.d.ts +3 -0
  169. package/dist/src/composables/breadcrumbs/index.d.ts +1 -0
  170. package/dist/src/composables/breadcrumbs/useBreadcrumbsFromPath.d.ts +14 -0
  171. package/dist/src/composables/clientService/index.d.ts +1 -0
  172. package/dist/src/composables/clientService/useClientService.d.ts +2 -0
  173. package/dist/src/composables/clipboard/index.d.ts +1 -0
  174. package/dist/src/composables/clipboard/useClipboard.d.ts +3 -0
  175. package/dist/src/composables/download/index.d.ts +1 -0
  176. package/dist/src/composables/download/useDownloadFile.d.ts +8 -0
  177. package/dist/src/composables/driveResolver/index.d.ts +2 -0
  178. package/dist/src/composables/driveResolver/useDriveResolver.d.ts +13 -0
  179. package/dist/src/composables/driveResolver/useSpacesLoading.d.ts +3 -0
  180. package/dist/src/composables/embedMode/index.d.ts +1 -0
  181. package/dist/src/composables/embedMode/useEmbedMode.d.ts +23 -0
  182. package/dist/src/composables/eventBus/index.d.ts +1 -0
  183. package/dist/src/composables/eventBus/useEventBus.d.ts +1 -0
  184. package/dist/src/composables/fileListHeaderPosition/index.d.ts +1 -0
  185. package/dist/src/composables/fileListHeaderPosition/useFileListHeaderPosition.d.ts +5 -0
  186. package/dist/src/composables/filesList/index.d.ts +1 -0
  187. package/dist/src/composables/filesList/useResourceRouteResolver.d.ts +13 -0
  188. package/dist/src/composables/folderLink/index.d.ts +1 -0
  189. package/dist/src/composables/folderLink/useFolderLink.d.ts +15 -0
  190. package/dist/src/composables/index.d.ts +41 -0
  191. package/dist/src/composables/isTopBarSticky/index.d.ts +1 -0
  192. package/dist/src/composables/isTopBarSticky/useIsTopBarSticky.d.ts +8 -0
  193. package/dist/src/composables/keyboardActions/index.d.ts +3 -0
  194. package/dist/src/composables/keyboardActions/useCropperKeyboardActions.d.ts +4 -0
  195. package/dist/src/composables/keyboardActions/useInterceptModifierClick.d.ts +4 -0
  196. package/dist/src/composables/keyboardActions/useKeyboardActions.d.ts +47 -0
  197. package/dist/src/composables/links/index.d.ts +1 -0
  198. package/dist/src/composables/links/useLinkTypes.d.ts +31 -0
  199. package/dist/src/composables/loadingService/index.d.ts +1 -0
  200. package/dist/src/composables/loadingService/useLoadingService.d.ts +2 -0
  201. package/dist/src/composables/localStorage/index.d.ts +1 -0
  202. package/dist/src/composables/localStorage/useLocalStorage.d.ts +2 -0
  203. package/dist/src/composables/pagination/constants.d.ts +5 -0
  204. package/dist/src/composables/pagination/index.d.ts +2 -0
  205. package/dist/src/composables/pagination/usePagination.d.ts +17 -0
  206. package/dist/src/composables/passwordPolicyService/index.d.ts +1 -0
  207. package/dist/src/composables/passwordPolicyService/usePasswordPolicyService.d.ts +2 -0
  208. package/dist/src/composables/piniaStores/apps.d.ts +157 -0
  209. package/dist/src/composables/piniaStores/auth.d.ts +60 -0
  210. package/dist/src/composables/piniaStores/avatars.d.ts +27 -0
  211. package/dist/src/composables/piniaStores/capabilities.d.ts +1722 -0
  212. package/dist/src/composables/piniaStores/clipboard.d.ts +598 -0
  213. package/dist/src/composables/piniaStores/config/config.d.ts +759 -0
  214. package/dist/src/composables/piniaStores/config/index.d.ts +2 -0
  215. package/dist/src/composables/piniaStores/config/types.d.ts +194 -0
  216. package/dist/src/composables/piniaStores/extensionRegistry/extensionPreferences.d.ts +22 -0
  217. package/dist/src/composables/piniaStores/extensionRegistry/extensionRegistry.d.ts +37 -0
  218. package/dist/src/composables/piniaStores/extensionRegistry/index.d.ts +3 -0
  219. package/dist/src/composables/piniaStores/extensionRegistry/types.d.ts +66 -0
  220. package/dist/src/composables/piniaStores/index.d.ts +16 -0
  221. package/dist/src/composables/piniaStores/messages.d.ts +866 -0
  222. package/dist/src/composables/piniaStores/modals.d.ts +1373 -0
  223. package/dist/src/composables/piniaStores/resources.d.ts +198 -0
  224. package/dist/src/composables/piniaStores/shares/index.d.ts +2 -0
  225. package/dist/src/composables/piniaStores/shares/shares.d.ts +57 -0
  226. package/dist/src/composables/piniaStores/shares/types.d.ts +41 -0
  227. package/dist/src/composables/piniaStores/spaces.d.ts +9045 -0
  228. package/dist/src/composables/piniaStores/theme.d.ts +514 -0
  229. package/dist/src/composables/piniaStores/updates.d.ts +24 -0
  230. package/dist/src/composables/piniaStores/user.d.ts +15 -0
  231. package/dist/src/composables/piniaStores/webWorkers.d.ts +29 -0
  232. package/dist/src/composables/portalTarget/eventTopics.d.ts +3 -0
  233. package/dist/src/composables/portalTarget/index.d.ts +2 -0
  234. package/dist/src/composables/portalTarget/usePortalTarget.d.ts +4 -0
  235. package/dist/src/composables/previewService/index.d.ts +1 -0
  236. package/dist/src/composables/previewService/usePreviewService.d.ts +2 -0
  237. package/dist/src/composables/requestHeaders/index.d.ts +1 -0
  238. package/dist/src/composables/requestHeaders/useRequestHeaders.d.ts +3 -0
  239. package/dist/src/composables/resources/index.d.ts +5 -0
  240. package/dist/src/composables/resources/useCanBeOpenedWithSecureView.d.ts +4 -0
  241. package/dist/src/composables/resources/useCanListVersions.d.ts +7 -0
  242. package/dist/src/composables/resources/useGetResourceContext.d.ts +1485 -0
  243. package/dist/src/composables/resources/useLoadPreview.d.ts +26 -0
  244. package/dist/src/composables/resources/useResourceContents.d.ts +5 -0
  245. package/dist/src/composables/router/index.d.ts +11 -0
  246. package/dist/src/composables/router/types.d.ts +16 -0
  247. package/dist/src/composables/router/useActiveApp.d.ts +4 -0
  248. package/dist/src/composables/router/useActiveLocation.d.ts +10 -0
  249. package/dist/src/composables/router/useFileRouteReplace.d.ts +15 -0
  250. package/dist/src/composables/router/useRoute.d.ts +3 -0
  251. package/dist/src/composables/router/useRouteMeta.d.ts +2 -0
  252. package/dist/src/composables/router/useRouteName.d.ts +2 -0
  253. package/dist/src/composables/router/useRouteParam.d.ts +3 -0
  254. package/dist/src/composables/router/useRouteQuery.d.ts +3 -0
  255. package/dist/src/composables/router/useRouteQueryPersisted.d.ts +8 -0
  256. package/dist/src/composables/router/useRouter.d.ts +2 -0
  257. package/dist/src/composables/scrollTo/index.d.ts +1 -0
  258. package/dist/src/composables/scrollTo/useScrollTo.d.ts +9 -0
  259. package/dist/src/composables/search/constants.d.ts +4 -0
  260. package/dist/src/composables/search/index.d.ts +2 -0
  261. package/dist/src/composables/search/useSearch.d.ts +14 -0
  262. package/dist/src/composables/selection/index.d.ts +2 -0
  263. package/dist/src/composables/selection/useSelectedResources.d.ts +9 -0
  264. package/dist/src/composables/selection/useToggleTile.d.ts +4 -0
  265. package/dist/src/composables/service/index.d.ts +1 -0
  266. package/dist/src/composables/service/useService.d.ts +1 -0
  267. package/dist/src/composables/shares/index.d.ts +2 -0
  268. package/dist/src/composables/shares/useCanListShares.d.ts +7 -0
  269. package/dist/src/composables/shares/useCanShare.d.ts +7 -0
  270. package/dist/src/composables/sideBar/eventTopics.d.ts +7 -0
  271. package/dist/src/composables/sideBar/index.d.ts +2 -0
  272. package/dist/src/composables/sideBar/useSideBar.d.ts +12 -0
  273. package/dist/src/composables/sort/constants.d.ts +4 -0
  274. package/dist/src/composables/sort/index.d.ts +2 -0
  275. package/dist/src/composables/sort/useSort.d.ts +36 -0
  276. package/dist/src/composables/spaces/index.d.ts +3 -0
  277. package/dist/src/composables/spaces/useCreateSpace.d.ts +5 -0
  278. package/dist/src/composables/spaces/useGetMatchingSpace.d.ts +15 -0
  279. package/dist/src/composables/spaces/useSpaceHelpers.d.ts +4 -0
  280. package/dist/src/composables/upload/index.d.ts +1 -0
  281. package/dist/src/composables/upload/useUpload.d.ts +6 -0
  282. package/dist/src/composables/viewMode/constants.d.ts +12 -0
  283. package/dist/src/composables/viewMode/index.d.ts +3 -0
  284. package/dist/src/composables/viewMode/useTileSize.d.ts +4 -0
  285. package/dist/src/composables/viewMode/useViewMode.d.ts +4 -0
  286. package/dist/src/composables/webWorkers/deleteWorker/index.d.ts +1 -0
  287. package/dist/src/composables/webWorkers/deleteWorker/useDeleteWorker.d.ts +28 -0
  288. package/dist/src/composables/webWorkers/deleteWorker/worker.d.ts +1 -0
  289. package/dist/src/composables/webWorkers/index.d.ts +4 -0
  290. package/dist/src/composables/webWorkers/pasteWorker/index.d.ts +1 -0
  291. package/dist/src/composables/webWorkers/pasteWorker/usePasteWorker.d.ts +25 -0
  292. package/dist/src/composables/webWorkers/pasteWorker/worker.d.ts +1 -0
  293. package/dist/src/composables/webWorkers/restoreWorker/index.d.ts +1 -0
  294. package/dist/src/composables/webWorkers/restoreWorker/useRestoreWorker.d.ts +28 -0
  295. package/dist/src/composables/webWorkers/restoreWorker/worker.d.ts +1 -0
  296. package/dist/src/composables/webWorkers/tokenTimerWorker/index.d.ts +1 -0
  297. package/dist/src/composables/webWorkers/tokenTimerWorker/useTokenTimerWorker.d.ts +12 -0
  298. package/dist/src/composables/webWorkers/tokenTimerWorker/worker.d.ts +1 -0
  299. package/dist/src/constants.d.ts +17 -0
  300. package/dist/src/errors/index.d.ts +1 -0
  301. package/dist/src/errors/types.d.ts +13 -0
  302. package/dist/src/helpers/binary.d.ts +2 -0
  303. package/dist/src/helpers/breadcrumbs.d.ts +4 -0
  304. package/dist/src/helpers/cache/cache.d.ts +20 -0
  305. package/dist/src/helpers/cache/index.d.ts +1 -0
  306. package/dist/src/helpers/clipboardActions.d.ts +4 -0
  307. package/dist/src/helpers/contextMenuDropdown.d.ts +7 -0
  308. package/dist/src/helpers/datetime.d.ts +11 -0
  309. package/dist/src/helpers/download.d.ts +1 -0
  310. package/dist/src/helpers/filesize.d.ts +8 -0
  311. package/dist/src/helpers/folderLink/index.d.ts +1 -0
  312. package/dist/src/helpers/folderLink/types.d.ts +6 -0
  313. package/dist/src/helpers/fuse.d.ts +5 -0
  314. package/dist/src/helpers/index.d.ts +21 -0
  315. package/dist/src/helpers/locale.d.ts +1 -0
  316. package/dist/src/helpers/path.d.ts +13 -0
  317. package/dist/src/helpers/permissions.d.ts +8 -0
  318. package/dist/src/helpers/platform.d.ts +1 -0
  319. package/dist/src/helpers/resource/conflictHandling/conflictDialog.d.ts +15 -0
  320. package/dist/src/helpers/resource/conflictHandling/conflictUtils.d.ts +3 -0
  321. package/dist/src/helpers/resource/conflictHandling/index.d.ts +4 -0
  322. package/dist/src/helpers/resource/conflictHandling/transfer.d.ts +27 -0
  323. package/dist/src/helpers/resource/conflictHandling/types.d.ts +24 -0
  324. package/dist/src/helpers/resource/filter.d.ts +2 -0
  325. package/dist/src/helpers/resource/icon.d.ts +10 -0
  326. package/dist/src/helpers/resource/index.d.ts +5 -0
  327. package/dist/src/helpers/resource/renameResource.d.ts +2 -0
  328. package/dist/src/helpers/resource/sameResource.d.ts +2 -0
  329. package/dist/src/helpers/router/buildUrl.d.ts +2 -0
  330. package/dist/src/helpers/router/index.d.ts +2 -0
  331. package/dist/src/helpers/router/routeOptions.d.ts +24 -0
  332. package/dist/src/helpers/share/driveItem.d.ts +12 -0
  333. package/dist/src/helpers/share/index.d.ts +2 -0
  334. package/dist/src/helpers/share/sharedAncestorRoute.d.ts +7 -0
  335. package/dist/src/helpers/spaces/index.d.ts +1 -0
  336. package/dist/src/helpers/spaces/permissions.d.ts +13 -0
  337. package/dist/src/helpers/statusIndicators.d.ts +23 -0
  338. package/dist/src/helpers/store.d.ts +8 -0
  339. package/dist/src/helpers/textByteSize.d.ts +1 -0
  340. package/dist/src/helpers/ui/index.d.ts +3 -0
  341. package/dist/src/helpers/ui/resourceCheckbox.d.ts +1 -0
  342. package/dist/src/helpers/ui/resourceTable.d.ts +3 -0
  343. package/dist/src/helpers/ui/resourceTiles.d.ts +6 -0
  344. package/dist/src/http/client.d.ts +23 -0
  345. package/dist/src/http/index.d.ts +1 -0
  346. package/dist/src/index.d.ts +14 -0
  347. package/dist/src/observer/index.d.ts +1 -0
  348. package/dist/src/observer/visibility.d.ts +26 -0
  349. package/dist/src/router/common.d.ts +9 -0
  350. package/dist/src/router/deprecated.d.ts +12 -0
  351. package/dist/src/router/index.d.ts +12 -0
  352. package/dist/src/router/public.d.ts +9 -0
  353. package/dist/src/router/router.d.ts +27 -0
  354. package/dist/src/router/shares.d.ts +10 -0
  355. package/dist/src/router/spaces.d.ts +9 -0
  356. package/dist/src/router/trash.d.ts +9 -0
  357. package/dist/src/router/utils.d.ts +32 -0
  358. package/dist/src/services/appProvider/index.d.ts +2 -0
  359. package/dist/src/services/appProvider/schemas.d.ts +40 -0
  360. package/dist/src/services/appProvider/service.d.ts +27 -0
  361. package/dist/src/services/archiver.d.ts +21 -0
  362. package/dist/src/services/cache.d.ts +14 -0
  363. package/dist/src/services/client/auth.d.ts +12 -0
  364. package/dist/src/services/client/client.d.ts +48 -0
  365. package/dist/src/services/client/index.d.ts +2 -0
  366. package/dist/src/services/eventBus.d.ts +8 -0
  367. package/dist/src/services/folder/folderService.d.ts +27 -0
  368. package/dist/src/services/folder/index.d.ts +2 -0
  369. package/dist/src/services/folder/loaders/index.d.ts +7 -0
  370. package/dist/src/services/folder/loaders/loaderFavorites.d.ts +7 -0
  371. package/dist/src/services/folder/loaders/loaderSharedViaLink.d.ts +7 -0
  372. package/dist/src/services/folder/loaders/loaderSharedWithMe.d.ts +7 -0
  373. package/dist/src/services/folder/loaders/loaderSharedWithOthers.d.ts +7 -0
  374. package/dist/src/services/folder/loaders/loaderSpace.d.ts +7 -0
  375. package/dist/src/services/folder/loaders/loaderTrashbin.d.ts +7 -0
  376. package/dist/src/services/folder/loaders/types.d.ts +3 -0
  377. package/dist/src/services/index.d.ts +10 -0
  378. package/dist/src/services/loadingService.d.ts +33 -0
  379. package/dist/src/services/passwordPolicy/index.d.ts +1 -0
  380. package/dist/src/services/passwordPolicy/passwordPolicy.d.ts +20 -0
  381. package/dist/src/services/passwordPolicy/rules.d.ts +69 -0
  382. package/dist/src/services/preview/index.d.ts +2 -0
  383. package/dist/src/services/preview/previewService.d.ts +21 -0
  384. package/dist/src/services/preview/types.d.ts +23 -0
  385. package/dist/src/services/uppy/DropTarget/getDroppedFiles.d.ts +1 -0
  386. package/dist/src/services/uppy/DropTarget/plugin.d.ts +21 -0
  387. package/dist/src/services/uppy/DropTarget/types.d.ts +9 -0
  388. package/dist/src/services/uppy/index.d.ts +2 -0
  389. package/dist/src/services/uppy/uppyService.d.ts +91 -0
  390. package/dist/src/services/uppy/utils.d.ts +11 -0
  391. package/dist/src/types.d.ts +24 -0
  392. package/dist/src/ui/index.d.ts +1 -0
  393. package/dist/src/ui/types.d.ts +14 -0
  394. package/dist/src/utils/dirname.d.ts +1 -0
  395. package/dist/src/utils/encodePath.d.ts +1 -0
  396. package/dist/src/utils/index.d.ts +5 -0
  397. package/dist/src/utils/objectKeys.d.ts +1 -0
  398. package/dist/src/utils/semver.d.ts +14 -0
  399. package/dist/src/utils/types.d.ts +5 -0
  400. package/dist/web-pkg.js +249 -242
  401. package/dist/web-pkg.umd.cjs +52 -52
  402. package/package.json +6 -7
  403. package/dist/assets/worker-HJ1GIjJK.js +0 -50
  404. package/dist/index-Ctidv9Qe.js +0 -34023
@@ -1,50 +0,0 @@
1
- (function(){"use strict";var St=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fn={exports:{}},os;function Hc(){return os||(os=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function o(c,l,s){this.fn=c,this.context=l,this.once=s||!1}function i(c,l,s,f,h){if(typeof s!="function")throw new TypeError("The listener must be a function");var x=new o(s,f||c,h),m=r?r+l:l;return c._events[m]?c._events[m].fn?c._events[m]=[c._events[m],x]:c._events[m].push(x):(c._events[m]=x,c._eventsCount++),c}function a(c,l){--c._eventsCount===0?c._events=new n:delete c._events[l]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var l=[],s,f;if(this._eventsCount===0)return l;for(f in s=this._events)t.call(s,f)&&l.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(s)):l},u.prototype.listeners=function(l){var s=r?r+l:l,f=this._events[s];if(!f)return[];if(f.fn)return[f.fn];for(var h=0,x=f.length,m=new Array(x);h<x;h++)m[h]=f[h].fn;return m},u.prototype.listenerCount=function(l){var s=r?r+l:l,f=this._events[s];return f?f.fn?1:f.length:0},u.prototype.emit=function(l,s,f,h,x,m){var E=r?r+l:l;if(!this._events[E])return!1;var A=this._events[E],y=arguments.length,p,d;if(A.fn){switch(A.once&&this.removeListener(l,A.fn,void 0,!0),y){case 1:return A.fn.call(A.context),!0;case 2:return A.fn.call(A.context,s),!0;case 3:return A.fn.call(A.context,s,f),!0;case 4:return A.fn.call(A.context,s,f,h),!0;case 5:return A.fn.call(A.context,s,f,h,x),!0;case 6:return A.fn.call(A.context,s,f,h,x,m),!0}for(d=1,p=new Array(y-1);d<y;d++)p[d-1]=arguments[d];A.fn.apply(A.context,p)}else{var g=A.length,v;for(d=0;d<g;d++)switch(A[d].once&&this.removeListener(l,A[d].fn,void 0,!0),y){case 1:A[d].fn.call(A[d].context);break;case 2:A[d].fn.call(A[d].context,s);break;case 3:A[d].fn.call(A[d].context,s,f);break;case 4:A[d].fn.call(A[d].context,s,f,h);break;default:if(!p)for(v=1,p=new Array(y-1);v<y;v++)p[v-1]=arguments[v];A[d].fn.apply(A[d].context,p)}}return!0},u.prototype.on=function(l,s,f){return i(this,l,s,f,!1)},u.prototype.once=function(l,s,f){return i(this,l,s,f,!0)},u.prototype.removeListener=function(l,s,f,h){var x=r?r+l:l;if(!this._events[x])return this;if(!s)return a(this,x),this;var m=this._events[x];if(m.fn)m.fn===s&&(!h||m.once)&&(!f||m.context===f)&&a(this,x);else{for(var E=0,A=[],y=m.length;E<y;E++)(m[E].fn!==s||h&&!m[E].once||f&&m[E].context!==f)&&A.push(m[E]);A.length?this._events[x]=A.length===1?A[0]:A:a(this,x)}return this},u.prototype.removeAllListeners=function(l){var s;return l?(s=r?r+l:l,this._events[s]&&a(this,s)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u})(fn)),fn.exports}var Vc=Hc(),Wc=cn(Vc);class ss extends Error{constructor(t){super(t),this.name="TimeoutError"}}class Gc extends Error{constructor(t){super(),this.name="AbortError",this.message=t}}const as=e=>globalThis.DOMException===void 0?new Gc(e):new DOMException(e),us=e=>{const t=e.reason===void 0?as("This operation was aborted."):e.reason;return t instanceof Error?t:as(t)};function Kc(e,t){const{milliseconds:r,fallback:n,message:o,customTimers:i={setTimeout,clearTimeout}}=t;let a,u;const l=new Promise((s,f)=>{if(typeof r!="number"||Math.sign(r)!==1)throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${r}\``);if(t.signal){const{signal:x}=t;x.aborted&&f(us(x)),u=()=>{f(us(x))},x.addEventListener("abort",u,{once:!0})}if(r===Number.POSITIVE_INFINITY){e.then(s,f);return}const h=new ss;a=i.setTimeout.call(void 0,()=>{if(n){try{s(n())}catch(x){f(x)}return}typeof e.cancel=="function"&&e.cancel(),o===!1?s():o instanceof Error?f(o):(h.message=o??`Promise timed out after ${r} milliseconds`,f(h))},r),(async()=>{try{s(await e)}catch(x){f(x)}})()}).finally(()=>{l.clear(),u&&t.signal&&t.signal.removeEventListener("abort",u)});return l.clear=()=>{i.clearTimeout.call(void 0,a),a=void 0},l}function zc(e,t,r){let n=0,o=e.length;for(;o>0;){const i=Math.trunc(o/2);let a=n+i;r(e[a],t)<=0?(n=++a,o-=i+1):o=i}return n}class Xc{#e=[];enqueue(t,r){r={priority:0,...r};const n={priority:r.priority,id:r.id,run:t};if(this.size===0||this.#e[this.size-1].priority>=r.priority){this.#e.push(n);return}const o=zc(this.#e,n,(i,a)=>a.priority-i.priority);this.#e.splice(o,0,n)}setPriority(t,r){const n=this.#e.findIndex(i=>i.id===t);if(n===-1)throw new ReferenceError(`No promise function with the id "${t}" exists in the queue.`);const[o]=this.#e.splice(n,1);this.enqueue(o.run,{priority:r,id:t})}dequeue(){return this.#e.shift()?.run}filter(t){return this.#e.filter(r=>r.priority===t.priority).map(r=>r.run)}get size(){return this.#e.length}}class Yc extends Wc{#e;#i;#s=0;#t;#r;#c=0;#o;#l;#n;#f;#a=0;#h;#u;#d;#p=1n;timeout;constructor(t){if(super(),t={carryoverConcurrencyCount:!1,intervalCap:Number.POSITIVE_INFINITY,interval:0,concurrency:Number.POSITIVE_INFINITY,autoStart:!0,queueClass:Xc,...t},!(typeof t.intervalCap=="number"&&t.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${t.intervalCap?.toString()??""}\` (${typeof t.intervalCap})`);if(t.interval===void 0||!(Number.isFinite(t.interval)&&t.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${t.interval?.toString()??""}\` (${typeof t.interval})`);this.#e=t.carryoverConcurrencyCount,this.#i=t.intervalCap===Number.POSITIVE_INFINITY||t.interval===0,this.#t=t.intervalCap,this.#r=t.interval,this.#n=new t.queueClass,this.#f=t.queueClass,this.concurrency=t.concurrency,this.timeout=t.timeout,this.#d=t.throwOnTimeout===!0,this.#u=t.autoStart===!1}get#v(){return this.#i||this.#s<this.#t}get#E(){return this.#a<this.#h}#x(){this.#a--,this.#g(),this.emit("next")}#A(){this.#w(),this.#b(),this.#l=void 0}get#T(){const t=Date.now();if(this.#o===void 0){const r=this.#c-t;if(r<0)this.#s=this.#e?this.#a:0;else return this.#l===void 0&&(this.#l=setTimeout(()=>{this.#A()},r)),!0}return!1}#g(){if(this.#n.size===0)return this.#o&&clearInterval(this.#o),this.#o=void 0,this.emit("empty"),this.#a===0&&this.emit("idle"),!1;if(!this.#u){const t=!this.#T;if(this.#v&&this.#E){const r=this.#n.dequeue();return r?(this.emit("active"),r(),t&&this.#b(),!0):!1}}return!1}#b(){this.#i||this.#o!==void 0||(this.#o=setInterval(()=>{this.#w()},this.#r),this.#c=Date.now()+this.#r)}#w(){this.#s===0&&this.#a===0&&this.#o&&(clearInterval(this.#o),this.#o=void 0),this.#s=this.#e?this.#a:0,this.#y()}#y(){for(;this.#g(););}get concurrency(){return this.#h}set concurrency(t){if(!(typeof t=="number"&&t>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${t}\` (${typeof t})`);this.#h=t,this.#y()}async#S(t){return new Promise((r,n)=>{t.addEventListener("abort",()=>{n(t.reason)},{once:!0})})}setPriority(t,r){this.#n.setPriority(t,r)}async add(t,r={}){return r.id??=(this.#p++).toString(),r={timeout:this.timeout,throwOnTimeout:this.#d,...r},new Promise((n,o)=>{this.#n.enqueue(async()=>{this.#a++;try{r.signal?.throwIfAborted(),this.#s++;let i=t({signal:r.signal});r.timeout&&(i=Kc(Promise.resolve(i),{milliseconds:r.timeout})),r.signal&&(i=Promise.race([i,this.#S(r.signal)]));const a=await i;n(a),this.emit("completed",a)}catch(i){if(i instanceof ss&&!r.throwOnTimeout){n();return}o(i),this.emit("error",i)}finally{this.#x()}},r),this.emit("add"),this.#g()})}async addAll(t,r){return Promise.all(t.map(async n=>this.add(n,r)))}start(){return this.#u?(this.#u=!1,this.#y(),this):this}pause(){this.#u=!0}clear(){this.#n=new this.#f}async onEmpty(){this.#n.size!==0&&await this.#m("empty")}async onSizeLessThan(t){this.#n.size<t||await this.#m("next",()=>this.#n.size<t)}async onIdle(){this.#a===0&&this.#n.size===0||await this.#m("idle")}async#m(t,r){return new Promise(n=>{const o=()=>{r&&!r()||(this.off(t,o),n())};this.on(t,o)})}get size(){return this.#n.size}sizeBy(t){return this.#n.filter(t).length}get pending(){return this.#a}get isPaused(){return this.#u}}function Jc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ls={exports:{}},je=ls.exports={},ht,dt;function hn(){throw new Error("setTimeout has not been defined")}function dn(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?ht=setTimeout:ht=hn}catch{ht=hn}try{typeof clearTimeout=="function"?dt=clearTimeout:dt=dn}catch{dt=dn}})();function cs(e){if(ht===setTimeout)return setTimeout(e,0);if((ht===hn||!ht)&&setTimeout)return ht=setTimeout,setTimeout(e,0);try{return ht(e,0)}catch{try{return ht.call(null,e,0)}catch{return ht.call(this,e,0)}}}function Zc(e){if(dt===clearTimeout)return clearTimeout(e);if((dt===dn||!dt)&&clearTimeout)return dt=clearTimeout,clearTimeout(e);try{return dt(e)}catch{try{return dt.call(null,e)}catch{return dt.call(this,e)}}}var mt=[],Dt=!1,Pt,Ar=-1;function Qc(){!Dt||!Pt||(Dt=!1,Pt.length?mt=Pt.concat(mt):Ar=-1,mt.length&&fs())}function fs(){if(!Dt){var e=cs(Qc);Dt=!0;for(var t=mt.length;t;){for(Pt=mt,mt=[];++Ar<t;)Pt&&Pt[Ar].run();Ar=-1,t=mt.length}Pt=null,Dt=!1,Zc(e)}}je.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];mt.push(new hs(e,t)),mt.length===1&&!Dt&&cs(fs)};function hs(e,t){this.fun=e,this.array=t}hs.prototype.run=function(){this.fun.apply(null,this.array)},je.title="browser",je.browser=!0,je.env={},je.argv=[],je.version="",je.versions={};function bt(){}je.on=bt,je.addListener=bt,je.once=bt,je.off=bt,je.removeListener=bt,je.removeAllListeners=bt,je.emit=bt,je.prependListener=bt,je.prependOnceListener=bt,je.listeners=function(e){return[]},je.binding=function(e){throw new Error("process.binding is not supported")},je.cwd=function(){return"/"},je.chdir=function(e){throw new Error("process.chdir is not supported")},je.umask=function(){return 0};var ef=ls.exports;const ye=Jc(ef);var pn,ds;function tf(){if(ds)return pn;ds=1;function e(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function t(o,i){for(var a="",u=0,c=-1,l=0,s,f=0;f<=o.length;++f){if(f<o.length)s=o.charCodeAt(f);else{if(s===47)break;s=47}if(s===47){if(!(c===f-1||l===1))if(c!==f-1&&l===2){if(a.length<2||u!==2||a.charCodeAt(a.length-1)!==46||a.charCodeAt(a.length-2)!==46){if(a.length>2){var h=a.lastIndexOf("/");if(h!==a.length-1){h===-1?(a="",u=0):(a=a.slice(0,h),u=a.length-1-a.lastIndexOf("/")),c=f,l=0;continue}}else if(a.length===2||a.length===1){a="",u=0,c=f,l=0;continue}}i&&(a.length>0?a+="/..":a="..",u=2)}else a.length>0?a+="/"+o.slice(c+1,f):a=o.slice(c+1,f),u=f-c-1;c=f,l=0}else s===46&&l!==-1?++l:l=-1}return a}function r(o,i){var a=i.dir||i.root,u=i.base||(i.name||"")+(i.ext||"");return a?a===i.root?a+u:a+o+u:u}var n={resolve:function(){for(var i="",a=!1,u,c=arguments.length-1;c>=-1&&!a;c--){var l;c>=0?l=arguments[c]:(u===void 0&&(u=ye.cwd()),l=u),e(l),l.length!==0&&(i=l+"/"+i,a=l.charCodeAt(0)===47)}return i=t(i,!a),a?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(i){if(e(i),i.length===0)return".";var a=i.charCodeAt(0)===47,u=i.charCodeAt(i.length-1)===47;return i=t(i,!a),i.length===0&&!a&&(i="."),i.length>0&&u&&(i+="/"),a?"/"+i:i},isAbsolute:function(i){return e(i),i.length>0&&i.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var i,a=0;a<arguments.length;++a){var u=arguments[a];e(u),u.length>0&&(i===void 0?i=u:i+="/"+u)}return i===void 0?".":n.normalize(i)},relative:function(i,a){if(e(i),e(a),i===a||(i=n.resolve(i),a=n.resolve(a),i===a))return"";for(var u=1;u<i.length&&i.charCodeAt(u)===47;++u);for(var c=i.length,l=c-u,s=1;s<a.length&&a.charCodeAt(s)===47;++s);for(var f=a.length,h=f-s,x=l<h?l:h,m=-1,E=0;E<=x;++E){if(E===x){if(h>x){if(a.charCodeAt(s+E)===47)return a.slice(s+E+1);if(E===0)return a.slice(s+E)}else l>x&&(i.charCodeAt(u+E)===47?m=E:E===0&&(m=0));break}var A=i.charCodeAt(u+E),y=a.charCodeAt(s+E);if(A!==y)break;A===47&&(m=E)}var p="";for(E=u+m+1;E<=c;++E)(E===c||i.charCodeAt(E)===47)&&(p.length===0?p+="..":p+="/..");return p.length>0?p+a.slice(s+m):(s+=m,a.charCodeAt(s)===47&&++s,a.slice(s))},_makeLong:function(i){return i},dirname:function(i){if(e(i),i.length===0)return".";for(var a=i.charCodeAt(0),u=a===47,c=-1,l=!0,s=i.length-1;s>=1;--s)if(a=i.charCodeAt(s),a===47){if(!l){c=s;break}}else l=!1;return c===-1?u?"/":".":u&&c===1?"//":i.slice(0,c)},basename:function(i,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');e(i);var u=0,c=-1,l=!0,s;if(a!==void 0&&a.length>0&&a.length<=i.length){if(a.length===i.length&&a===i)return"";var f=a.length-1,h=-1;for(s=i.length-1;s>=0;--s){var x=i.charCodeAt(s);if(x===47){if(!l){u=s+1;break}}else h===-1&&(l=!1,h=s+1),f>=0&&(x===a.charCodeAt(f)?--f===-1&&(c=s):(f=-1,c=h))}return u===c?c=h:c===-1&&(c=i.length),i.slice(u,c)}else{for(s=i.length-1;s>=0;--s)if(i.charCodeAt(s)===47){if(!l){u=s+1;break}}else c===-1&&(l=!1,c=s+1);return c===-1?"":i.slice(u,c)}},extname:function(i){e(i);for(var a=-1,u=0,c=-1,l=!0,s=0,f=i.length-1;f>=0;--f){var h=i.charCodeAt(f);if(h===47){if(!l){u=f+1;break}continue}c===-1&&(l=!1,c=f+1),h===46?a===-1?a=f:s!==1&&(s=1):a!==-1&&(s=-1)}return a===-1||c===-1||s===0||s===1&&a===c-1&&a===u+1?"":i.slice(a,c)},format:function(i){if(i===null||typeof i!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof i);return r("/",i)},parse:function(i){e(i);var a={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return a;var u=i.charCodeAt(0),c=u===47,l;c?(a.root="/",l=1):l=0;for(var s=-1,f=0,h=-1,x=!0,m=i.length-1,E=0;m>=l;--m){if(u=i.charCodeAt(m),u===47){if(!x){f=m+1;break}continue}h===-1&&(x=!1,h=m+1),u===46?s===-1?s=m:E!==1&&(E=1):s!==-1&&(E=-1)}return s===-1||h===-1||E===0||E===1&&s===h-1&&s===f+1?h!==-1&&(f===0&&c?a.base=a.name=i.slice(1,h):a.base=a.name=i.slice(f,h)):(f===0&&c?(a.name=i.slice(1,s),a.base=i.slice(1,h)):(a.name=i.slice(f,s),a.base=i.slice(f,h)),a.ext=i.slice(s,h)),f>0?a.dir=i.slice(0,f-1):c&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};return n.posix=n,pn=n,pn}var gn=tf(),ps=cn(gn);const wt=globalThis||void 0||self;function gs(e,t){return function(){return e.apply(t,arguments)}}const{toString:rf}=Object.prototype,{getPrototypeOf:yn}=Object,{iterator:Tr,toStringTag:ys}=Symbol,Sr=(e=>t=>{const r=rf.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),lt=e=>(e=e.toLowerCase(),t=>Sr(t)===e),_r=e=>t=>typeof t===e,{isArray:Mt}=Array,$t=_r("undefined");function rr(e){return e!==null&&!$t(e)&&e.constructor!==null&&!$t(e.constructor)&&tt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ms=lt("ArrayBuffer");function nf(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ms(e.buffer),t}const of=_r("string"),tt=_r("function"),bs=_r("number"),nr=e=>e!==null&&typeof e=="object",sf=e=>e===!0||e===!1,Or=e=>{if(Sr(e)!=="object")return!1;const t=yn(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(ys in e)&&!(Tr in e)},af=e=>{if(!nr(e)||rr(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},uf=lt("Date"),lf=lt("File"),cf=lt("Blob"),ff=lt("FileList"),hf=e=>nr(e)&&tt(e.pipe),df=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||tt(e.append)&&((t=Sr(e))==="formdata"||t==="object"&&tt(e.toString)&&e.toString()==="[object FormData]"))},pf=lt("URLSearchParams"),[gf,yf,mf,bf]=["ReadableStream","Request","Response","Headers"].map(lt),wf=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ir(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),Mt(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(rr(e))return;const i=r?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let u;for(n=0;n<a;n++)u=i[n],t.call(null,e[u],u,e)}}function ws(e,t){if(rr(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const It=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:wt,vs=e=>!$t(e)&&e!==It;function mn(){const{caseless:e,skipUndefined:t}=vs(this)&&this||{},r={},n=(o,i)=>{const a=e&&ws(r,i)||i;Or(r[a])&&Or(o)?r[a]=mn(r[a],o):Or(o)?r[a]=mn({},o):Mt(o)?r[a]=o.slice():(!t||!$t(o))&&(r[a]=o)};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&ir(arguments[o],n);return r}const vf=(e,t,r,{allOwnKeys:n}={})=>(ir(t,(o,i)=>{r&&tt(o)?e[i]=gs(o,r):e[i]=o},{allOwnKeys:n}),e),Ef=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),xf=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Af=(e,t,r,n)=>{let o,i,a;const u={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!n||n(a,e,t))&&!u[a]&&(t[a]=e[a],u[a]=!0);e=r!==!1&&yn(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Tf=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Sf=e=>{if(!e)return null;if(Mt(e))return e;let t=e.length;if(!bs(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},_f=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&yn(Uint8Array)),Of=(e,t)=>{const n=(e&&e[Tr]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Nf=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Rf=lt("HTMLFormElement"),Pf=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Es=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),If=lt("RegExp"),xs=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};ir(r,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(n[i]=a||o)}),Object.defineProperties(e,n)},Ff=e=>{xs(e,(t,r)=>{if(tt(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(tt(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Cf=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return Mt(e)?n(e):n(String(e).split(t)),r},Bf=()=>{},Lf=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Uf(e){return!!(e&&tt(e.append)&&e[ys]==="FormData"&&e[Tr])}const jf=e=>{const t=new Array(10),r=(n,o)=>{if(nr(n)){if(t.indexOf(n)>=0)return;if(rr(n))return n;if(!("toJSON"in n)){t[o]=n;const i=Mt(n)?[]:{};return ir(n,(a,u)=>{const c=r(a,o+1);!$t(c)&&(i[u]=c)}),t[o]=void 0,i}}return n};return r(e,0)},kf=lt("AsyncFunction"),Df=e=>e&&(nr(e)||tt(e))&&tt(e.then)&&tt(e.catch),As=((e,t)=>e?setImmediate:t?((r,n)=>(It.addEventListener("message",({source:o,data:i})=>{o===It&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),It.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",tt(It.postMessage)),Mf=typeof queueMicrotask<"u"?queueMicrotask.bind(It):typeof ye<"u"&&ye.nextTick||As;var X={isArray:Mt,isArrayBuffer:ms,isBuffer:rr,isFormData:df,isArrayBufferView:nf,isString:of,isNumber:bs,isBoolean:sf,isObject:nr,isPlainObject:Or,isEmptyObject:af,isReadableStream:gf,isRequest:yf,isResponse:mf,isHeaders:bf,isUndefined:$t,isDate:uf,isFile:lf,isBlob:cf,isRegExp:If,isFunction:tt,isStream:hf,isURLSearchParams:pf,isTypedArray:_f,isFileList:ff,forEach:ir,merge:mn,extend:vf,trim:wf,stripBOM:Ef,inherits:xf,toFlatObject:Af,kindOf:Sr,kindOfTest:lt,endsWith:Tf,toArray:Sf,forEachEntry:Of,matchAll:Nf,isHTMLForm:Rf,hasOwnProperty:Es,hasOwnProp:Es,reduceDescriptors:xs,freezeMethods:Ff,toObjectSet:Cf,toCamelCase:Pf,noop:Bf,toFiniteNumber:Lf,findKey:ws,global:It,isContextDefined:vs,isSpecCompliantForm:Uf,toJSONObject:jf,isAsyncFn:kf,isThenable:Df,setImmediate:As,asap:Mf,isIterable:e=>e!=null&&tt(e[Tr])},Ts={},Nr={};Nr.byteLength=Hf,Nr.toByteArray=Wf,Nr.fromByteArray=zf;for(var pt=[],it=[],$f=typeof Uint8Array<"u"?Uint8Array:Array,bn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qt=0,qf=bn.length;qt<qf;++qt)pt[qt]=bn[qt],it[bn.charCodeAt(qt)]=qt;it[45]=62,it[95]=63;function Ss(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function Hf(e){var t=Ss(e),r=t[0],n=t[1];return(r+n)*3/4-n}function Vf(e,t,r){return(t+r)*3/4-r}function Wf(e){var t,r=Ss(e),n=r[0],o=r[1],i=new $f(Vf(e,n,o)),a=0,u=o>0?n-4:n,c;for(c=0;c<u;c+=4)t=it[e.charCodeAt(c)]<<18|it[e.charCodeAt(c+1)]<<12|it[e.charCodeAt(c+2)]<<6|it[e.charCodeAt(c+3)],i[a++]=t>>16&255,i[a++]=t>>8&255,i[a++]=t&255;return o===2&&(t=it[e.charCodeAt(c)]<<2|it[e.charCodeAt(c+1)]>>4,i[a++]=t&255),o===1&&(t=it[e.charCodeAt(c)]<<10|it[e.charCodeAt(c+1)]<<4|it[e.charCodeAt(c+2)]>>2,i[a++]=t>>8&255,i[a++]=t&255),i}function Gf(e){return pt[e>>18&63]+pt[e>>12&63]+pt[e>>6&63]+pt[e&63]}function Kf(e,t,r){for(var n,o=[],i=t;i<r;i+=3)n=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(e[i+2]&255),o.push(Gf(n));return o.join("")}function zf(e){for(var t,r=e.length,n=r%3,o=[],i=16383,a=0,u=r-n;a<u;a+=i)o.push(Kf(e,a,a+i>u?u:a+i));return n===1?(t=e[r-1],o.push(pt[t>>2]+pt[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],o.push(pt[t>>10]+pt[t>>4&63]+pt[t<<2&63]+"=")),o.join("")}var wn={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */wn.read=function(e,t,r,n,o){var i,a,u=o*8-n-1,c=(1<<u)-1,l=c>>1,s=-7,f=r?o-1:0,h=r?-1:1,x=e[t+f];for(f+=h,i=x&(1<<-s)-1,x>>=-s,s+=u;s>0;i=i*256+e[t+f],f+=h,s-=8);for(a=i&(1<<-s)-1,i>>=-s,s+=n;s>0;a=a*256+e[t+f],f+=h,s-=8);if(i===0)i=1-l;else{if(i===c)return a?NaN:(x?-1:1)*(1/0);a=a+Math.pow(2,n),i=i-l}return(x?-1:1)*a*Math.pow(2,i-n)},wn.write=function(e,t,r,n,o,i){var a,u,c,l=i*8-o-1,s=(1<<l)-1,f=s>>1,h=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=n?0:i-1,m=n?1:-1,E=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,a=s):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),a+f>=1?t+=h/c:t+=h*Math.pow(2,1-f),t*c>=2&&(a++,c/=2),a+f>=s?(u=0,a=s):a+f>=1?(u=(t*c-1)*Math.pow(2,o),a=a+f):(u=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[r+x]=u&255,x+=m,u/=256,o-=8);for(a=a<<o|u,l+=o;l>0;e[r+x]=a&255,x+=m,a/=256,l-=8);e[r+x-m]|=E*128};/*!
2
- * The buffer module from node.js, for the browser.
3
- *
4
- * @author Feross Aboukhadijeh <https://feross.org>
5
- * @license MIT
6
- */(function(e){const t=Nr,r=wn,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o;const{Uint8Array:i,ArrayBuffer:a,SharedArrayBuffer:u}=globalThis;s.TYPED_ARRAY_SUPPORT=c(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function c(){try{const F=new i(1),b={foo:function(){return 42}};return Object.setPrototypeOf(b,i.prototype),Object.setPrototypeOf(F,b),F.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function l(F){if(F>o)throw new RangeError('The value "'+F+'" is invalid for option "size"');const b=new i(F);return Object.setPrototypeOf(b,s.prototype),b}function s(F,b,S){if(typeof F=="number"){if(typeof b=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(F)}return f(F,b,S)}s.poolSize=8192;function f(F,b,S){if(typeof F=="string")return E(F,b);if(a.isView(F))return y(F);if(F==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F);if(Ge(F,a)||F&&Ge(F.buffer,a)||typeof u<"u"&&(Ge(F,u)||F&&Ge(F.buffer,u)))return p(F,b,S);if(typeof F=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const D=F.valueOf&&F.valueOf();if(D!=null&&D!==F)return s.from(D,b,S);const H=d(F);if(H)return H;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof F[Symbol.toPrimitive]=="function")return s.from(F[Symbol.toPrimitive]("string"),b,S);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F)}s.from=function(F,b,S){return f(F,b,S)},Object.setPrototypeOf(s.prototype,i.prototype),Object.setPrototypeOf(s,i);function h(F){if(typeof F!="number")throw new TypeError('"size" argument must be of type number');if(F<0)throw new RangeError('The value "'+F+'" is invalid for option "size"')}function x(F,b,S){return h(F),F<=0?l(F):b!==void 0?typeof S=="string"?l(F).fill(b,S):l(F).fill(b):l(F)}s.alloc=function(F,b,S){return x(F,b,S)};function m(F){return h(F),l(F<0?0:g(F)|0)}s.allocUnsafe=function(F){return m(F)},s.allocUnsafeSlow=function(F){return m(F)};function E(F,b){if((typeof b!="string"||b==="")&&(b="utf8"),!s.isEncoding(b))throw new TypeError("Unknown encoding: "+b);const S=T(F,b)|0;let D=l(S);const H=D.write(F,b);return H!==S&&(D=D.slice(0,H)),D}function A(F){const b=F.length<0?0:g(F.length)|0,S=l(b);for(let D=0;D<b;D+=1)S[D]=F[D]&255;return S}function y(F){if(Ge(F,i)){const b=new i(F);return p(b.buffer,b.byteOffset,b.byteLength)}return A(F)}function p(F,b,S){if(b<0||F.byteLength<b)throw new RangeError('"offset" is outside of buffer bounds');if(F.byteLength<b+(S||0))throw new RangeError('"length" is outside of buffer bounds');let D;return b===void 0&&S===void 0?D=new i(F):S===void 0?D=new i(F,b):D=new i(F,b,S),Object.setPrototypeOf(D,s.prototype),D}function d(F){if(s.isBuffer(F)){const b=g(F.length)|0,S=l(b);return S.length===0||F.copy(S,0,0,b),S}if(F.length!==void 0)return typeof F.length!="number"||ut(F.length)?l(0):A(F);if(F.type==="Buffer"&&Array.isArray(F.data))return A(F.data)}function g(F){if(F>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return F|0}function v(F){return+F!=F&&(F=0),s.alloc(+F)}s.isBuffer=function(b){return b!=null&&b._isBuffer===!0&&b!==s.prototype},s.compare=function(b,S){if(Ge(b,i)&&(b=s.from(b,b.offset,b.byteLength)),Ge(S,i)&&(S=s.from(S,S.offset,S.byteLength)),!s.isBuffer(b)||!s.isBuffer(S))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(b===S)return 0;let D=b.length,H=S.length;for(let z=0,ne=Math.min(D,H);z<ne;++z)if(b[z]!==S[z]){D=b[z],H=S[z];break}return D<H?-1:H<D?1:0},s.isEncoding=function(b){switch(String(b).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(b,S){if(!Array.isArray(b))throw new TypeError('"list" argument must be an Array of Buffers');if(b.length===0)return s.alloc(0);let D;if(S===void 0)for(S=0,D=0;D<b.length;++D)S+=b[D].length;const H=s.allocUnsafe(S);let z=0;for(D=0;D<b.length;++D){let ne=b[D];if(Ge(ne,i))z+ne.length>H.length?(s.isBuffer(ne)||(ne=s.from(ne)),ne.copy(H,z)):i.prototype.set.call(H,ne,z);else if(s.isBuffer(ne))ne.copy(H,z);else throw new TypeError('"list" argument must be an Array of Buffers');z+=ne.length}return H};function T(F,b){if(s.isBuffer(F))return F.length;if(a.isView(F)||Ge(F,a))return F.byteLength;if(typeof F!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof F);const S=F.length,D=arguments.length>2&&arguments[2]===!0;if(!D&&S===0)return 0;let H=!1;for(;;)switch(b){case"ascii":case"latin1":case"binary":return S;case"utf8":case"utf-8":return He(F).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S*2;case"hex":return S>>>1;case"base64":return Ne(F).length;default:if(H)return D?-1:He(F).length;b=(""+b).toLowerCase(),H=!0}}s.byteLength=T;function P(F,b,S){let D=!1;if((b===void 0||b<0)&&(b=0),b>this.length||((S===void 0||S>this.length)&&(S=this.length),S<=0)||(S>>>=0,b>>>=0,S<=b))return"";for(F||(F="utf8");;)switch(F){case"hex":return G(this,b,S);case"utf8":case"utf-8":return le(this,b,S);case"ascii":return be(this,b,S);case"latin1":case"binary":return pe(this,b,S);case"base64":return ue(this,b,S);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,b,S);default:if(D)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),D=!0}}s.prototype._isBuffer=!0;function I(F,b,S){const D=F[b];F[b]=F[S],F[S]=D}s.prototype.swap16=function(){const b=this.length;if(b%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let S=0;S<b;S+=2)I(this,S,S+1);return this},s.prototype.swap32=function(){const b=this.length;if(b%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let S=0;S<b;S+=4)I(this,S,S+3),I(this,S+1,S+2);return this},s.prototype.swap64=function(){const b=this.length;if(b%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let S=0;S<b;S+=8)I(this,S,S+7),I(this,S+1,S+6),I(this,S+2,S+5),I(this,S+3,S+4);return this},s.prototype.toString=function(){const b=this.length;return b===0?"":arguments.length===0?le(this,0,b):P.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(b){if(!s.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b?!0:s.compare(this,b)===0},s.prototype.inspect=function(){let b="";const S=e.INSPECT_MAX_BYTES;return b=this.toString("hex",0,S).replace(/(.{2})/g,"$1 ").trim(),this.length>S&&(b+=" ... "),"<Buffer "+b+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(b,S,D,H,z){if(Ge(b,i)&&(b=s.from(b,b.offset,b.byteLength)),!s.isBuffer(b))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof b);if(S===void 0&&(S=0),D===void 0&&(D=b?b.length:0),H===void 0&&(H=0),z===void 0&&(z=this.length),S<0||D>b.length||H<0||z>this.length)throw new RangeError("out of range index");if(H>=z&&S>=D)return 0;if(H>=z)return-1;if(S>=D)return 1;if(S>>>=0,D>>>=0,H>>>=0,z>>>=0,this===b)return 0;let ne=z-H,we=D-S;const Re=Math.min(ne,we),Pe=this.slice(H,z),Ie=b.slice(S,D);for(let Ae=0;Ae<Re;++Ae)if(Pe[Ae]!==Ie[Ae]){ne=Pe[Ae],we=Ie[Ae];break}return ne<we?-1:we<ne?1:0};function O(F,b,S,D,H){if(F.length===0)return-1;if(typeof S=="string"?(D=S,S=0):S>2147483647?S=2147483647:S<-2147483648&&(S=-2147483648),S=+S,ut(S)&&(S=H?0:F.length-1),S<0&&(S=F.length+S),S>=F.length){if(H)return-1;S=F.length-1}else if(S<0)if(H)S=0;else return-1;if(typeof b=="string"&&(b=s.from(b,D)),s.isBuffer(b))return b.length===0?-1:j(F,b,S,D,H);if(typeof b=="number")return b=b&255,typeof i.prototype.indexOf=="function"?H?i.prototype.indexOf.call(F,b,S):i.prototype.lastIndexOf.call(F,b,S):j(F,[b],S,D,H);throw new TypeError("val must be string, number or Buffer")}function j(F,b,S,D,H){let z=1,ne=F.length,we=b.length;if(D!==void 0&&(D=String(D).toLowerCase(),D==="ucs2"||D==="ucs-2"||D==="utf16le"||D==="utf-16le")){if(F.length<2||b.length<2)return-1;z=2,ne/=2,we/=2,S/=2}function Re(Ie,Ae){return z===1?Ie[Ae]:Ie.readUInt16BE(Ae*z)}let Pe;if(H){let Ie=-1;for(Pe=S;Pe<ne;Pe++)if(Re(F,Pe)===Re(b,Ie===-1?0:Pe-Ie)){if(Ie===-1&&(Ie=Pe),Pe-Ie+1===we)return Ie*z}else Ie!==-1&&(Pe-=Pe-Ie),Ie=-1}else for(S+we>ne&&(S=ne-we),Pe=S;Pe>=0;Pe--){let Ie=!0;for(let Ae=0;Ae<we;Ae++)if(Re(F,Pe+Ae)!==Re(b,Ae)){Ie=!1;break}if(Ie)return Pe}return-1}s.prototype.includes=function(b,S,D){return this.indexOf(b,S,D)!==-1},s.prototype.indexOf=function(b,S,D){return O(this,b,S,D,!0)},s.prototype.lastIndexOf=function(b,S,D){return O(this,b,S,D,!1)};function K(F,b,S,D){S=Number(S)||0;const H=F.length-S;D?(D=Number(D),D>H&&(D=H)):D=H;const z=b.length;D>z/2&&(D=z/2);let ne;for(ne=0;ne<D;++ne){const we=parseInt(b.substr(ne*2,2),16);if(ut(we))return ne;F[S+ne]=we}return ne}function L(F,b,S,D){return Ye(He(b,F.length-S),F,S,D)}function k(F,b,S,D){return Ye(De(b),F,S,D)}function re(F,b,S,D){return Ye(Ne(b),F,S,D)}function ee(F,b,S,D){return Ye(xe(b,F.length-S),F,S,D)}s.prototype.write=function(b,S,D,H){if(S===void 0)H="utf8",D=this.length,S=0;else if(D===void 0&&typeof S=="string")H=S,D=this.length,S=0;else if(isFinite(S))S=S>>>0,isFinite(D)?(D=D>>>0,H===void 0&&(H="utf8")):(H=D,D=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const z=this.length-S;if((D===void 0||D>z)&&(D=z),b.length>0&&(D<0||S<0)||S>this.length)throw new RangeError("Attempt to write outside buffer bounds");H||(H="utf8");let ne=!1;for(;;)switch(H){case"hex":return K(this,b,S,D);case"utf8":case"utf-8":return L(this,b,S,D);case"ascii":case"latin1":case"binary":return k(this,b,S,D);case"base64":return re(this,b,S,D);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ee(this,b,S,D);default:if(ne)throw new TypeError("Unknown encoding: "+H);H=(""+H).toLowerCase(),ne=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ue(F,b,S){return b===0&&S===F.length?t.fromByteArray(F):t.fromByteArray(F.slice(b,S))}function le(F,b,S){S=Math.min(F.length,S);const D=[];let H=b;for(;H<S;){const z=F[H];let ne=null,we=z>239?4:z>223?3:z>191?2:1;if(H+we<=S){let Re,Pe,Ie,Ae;switch(we){case 1:z<128&&(ne=z);break;case 2:Re=F[H+1],(Re&192)===128&&(Ae=(z&31)<<6|Re&63,Ae>127&&(ne=Ae));break;case 3:Re=F[H+1],Pe=F[H+2],(Re&192)===128&&(Pe&192)===128&&(Ae=(z&15)<<12|(Re&63)<<6|Pe&63,Ae>2047&&(Ae<55296||Ae>57343)&&(ne=Ae));break;case 4:Re=F[H+1],Pe=F[H+2],Ie=F[H+3],(Re&192)===128&&(Pe&192)===128&&(Ie&192)===128&&(Ae=(z&15)<<18|(Re&63)<<12|(Pe&63)<<6|Ie&63,Ae>65535&&Ae<1114112&&(ne=Ae))}}ne===null?(ne=65533,we=1):ne>65535&&(ne-=65536,D.push(ne>>>10&1023|55296),ne=56320|ne&1023),D.push(ne),H+=we}return fe(D)}const de=4096;function fe(F){const b=F.length;if(b<=de)return String.fromCharCode.apply(String,F);let S="",D=0;for(;D<b;)S+=String.fromCharCode.apply(String,F.slice(D,D+=de));return S}function be(F,b,S){let D="";S=Math.min(F.length,S);for(let H=b;H<S;++H)D+=String.fromCharCode(F[H]&127);return D}function pe(F,b,S){let D="";S=Math.min(F.length,S);for(let H=b;H<S;++H)D+=String.fromCharCode(F[H]);return D}function G(F,b,S){const D=F.length;(!b||b<0)&&(b=0),(!S||S<0||S>D)&&(S=D);let H="";for(let z=b;z<S;++z)H+=ft[F[z]];return H}function Z(F,b,S){const D=F.slice(b,S);let H="";for(let z=0;z<D.length-1;z+=2)H+=String.fromCharCode(D[z]+D[z+1]*256);return H}s.prototype.slice=function(b,S){const D=this.length;b=~~b,S=S===void 0?D:~~S,b<0?(b+=D,b<0&&(b=0)):b>D&&(b=D),S<0?(S+=D,S<0&&(S=0)):S>D&&(S=D),S<b&&(S=b);const H=this.subarray(b,S);return Object.setPrototypeOf(H,s.prototype),H};function Q(F,b,S){if(F%1!==0||F<0)throw new RangeError("offset is not uint");if(F+b>S)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(b,S,D){b=b>>>0,S=S>>>0,D||Q(b,S,this.length);let H=this[b],z=1,ne=0;for(;++ne<S&&(z*=256);)H+=this[b+ne]*z;return H},s.prototype.readUintBE=s.prototype.readUIntBE=function(b,S,D){b=b>>>0,S=S>>>0,D||Q(b,S,this.length);let H=this[b+--S],z=1;for(;S>0&&(z*=256);)H+=this[b+--S]*z;return H},s.prototype.readUint8=s.prototype.readUInt8=function(b,S){return b=b>>>0,S||Q(b,1,this.length),this[b]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(b,S){return b=b>>>0,S||Q(b,2,this.length),this[b]|this[b+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(b,S){return b=b>>>0,S||Q(b,2,this.length),this[b]<<8|this[b+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(b,S){return b=b>>>0,S||Q(b,4,this.length),(this[b]|this[b+1]<<8|this[b+2]<<16)+this[b+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(b,S){return b=b>>>0,S||Q(b,4,this.length),this[b]*16777216+(this[b+1]<<16|this[b+2]<<8|this[b+3])},s.prototype.readBigUInt64LE=Ve(function(b){b=b>>>0,ce(b,"offset");const S=this[b],D=this[b+7];(S===void 0||D===void 0)&&he(b,this.length-8);const H=S+this[++b]*2**8+this[++b]*2**16+this[++b]*2**24,z=this[++b]+this[++b]*2**8+this[++b]*2**16+D*2**24;return BigInt(H)+(BigInt(z)<<BigInt(32))}),s.prototype.readBigUInt64BE=Ve(function(b){b=b>>>0,ce(b,"offset");const S=this[b],D=this[b+7];(S===void 0||D===void 0)&&he(b,this.length-8);const H=S*2**24+this[++b]*2**16+this[++b]*2**8+this[++b],z=this[++b]*2**24+this[++b]*2**16+this[++b]*2**8+D;return(BigInt(H)<<BigInt(32))+BigInt(z)}),s.prototype.readIntLE=function(b,S,D){b=b>>>0,S=S>>>0,D||Q(b,S,this.length);let H=this[b],z=1,ne=0;for(;++ne<S&&(z*=256);)H+=this[b+ne]*z;return z*=128,H>=z&&(H-=Math.pow(2,8*S)),H},s.prototype.readIntBE=function(b,S,D){b=b>>>0,S=S>>>0,D||Q(b,S,this.length);let H=S,z=1,ne=this[b+--H];for(;H>0&&(z*=256);)ne+=this[b+--H]*z;return z*=128,ne>=z&&(ne-=Math.pow(2,8*S)),ne},s.prototype.readInt8=function(b,S){return b=b>>>0,S||Q(b,1,this.length),this[b]&128?(255-this[b]+1)*-1:this[b]},s.prototype.readInt16LE=function(b,S){b=b>>>0,S||Q(b,2,this.length);const D=this[b]|this[b+1]<<8;return D&32768?D|4294901760:D},s.prototype.readInt16BE=function(b,S){b=b>>>0,S||Q(b,2,this.length);const D=this[b+1]|this[b]<<8;return D&32768?D|4294901760:D},s.prototype.readInt32LE=function(b,S){return b=b>>>0,S||Q(b,4,this.length),this[b]|this[b+1]<<8|this[b+2]<<16|this[b+3]<<24},s.prototype.readInt32BE=function(b,S){return b=b>>>0,S||Q(b,4,this.length),this[b]<<24|this[b+1]<<16|this[b+2]<<8|this[b+3]},s.prototype.readBigInt64LE=Ve(function(b){b=b>>>0,ce(b,"offset");const S=this[b],D=this[b+7];(S===void 0||D===void 0)&&he(b,this.length-8);const H=this[b+4]+this[b+5]*2**8+this[b+6]*2**16+(D<<24);return(BigInt(H)<<BigInt(32))+BigInt(S+this[++b]*2**8+this[++b]*2**16+this[++b]*2**24)}),s.prototype.readBigInt64BE=Ve(function(b){b=b>>>0,ce(b,"offset");const S=this[b],D=this[b+7];(S===void 0||D===void 0)&&he(b,this.length-8);const H=(S<<24)+this[++b]*2**16+this[++b]*2**8+this[++b];return(BigInt(H)<<BigInt(32))+BigInt(this[++b]*2**24+this[++b]*2**16+this[++b]*2**8+D)}),s.prototype.readFloatLE=function(b,S){return b=b>>>0,S||Q(b,4,this.length),r.read(this,b,!0,23,4)},s.prototype.readFloatBE=function(b,S){return b=b>>>0,S||Q(b,4,this.length),r.read(this,b,!1,23,4)},s.prototype.readDoubleLE=function(b,S){return b=b>>>0,S||Q(b,8,this.length),r.read(this,b,!0,52,8)},s.prototype.readDoubleBE=function(b,S){return b=b>>>0,S||Q(b,8,this.length),r.read(this,b,!1,52,8)};function ae(F,b,S,D,H,z){if(!s.isBuffer(F))throw new TypeError('"buffer" argument must be a Buffer instance');if(b>H||b<z)throw new RangeError('"value" argument is out of bounds');if(S+D>F.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(b,S,D,H){if(b=+b,S=S>>>0,D=D>>>0,!H){const we=Math.pow(2,8*D)-1;ae(this,b,S,D,we,0)}let z=1,ne=0;for(this[S]=b&255;++ne<D&&(z*=256);)this[S+ne]=b/z&255;return S+D},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(b,S,D,H){if(b=+b,S=S>>>0,D=D>>>0,!H){const we=Math.pow(2,8*D)-1;ae(this,b,S,D,we,0)}let z=D-1,ne=1;for(this[S+z]=b&255;--z>=0&&(ne*=256);)this[S+z]=b/ne&255;return S+D},s.prototype.writeUint8=s.prototype.writeUInt8=function(b,S,D){return b=+b,S=S>>>0,D||ae(this,b,S,1,255,0),this[S]=b&255,S+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(b,S,D){return b=+b,S=S>>>0,D||ae(this,b,S,2,65535,0),this[S]=b&255,this[S+1]=b>>>8,S+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(b,S,D){return b=+b,S=S>>>0,D||ae(this,b,S,2,65535,0),this[S]=b>>>8,this[S+1]=b&255,S+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(b,S,D){return b=+b,S=S>>>0,D||ae(this,b,S,4,4294967295,0),this[S+3]=b>>>24,this[S+2]=b>>>16,this[S+1]=b>>>8,this[S]=b&255,S+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(b,S,D){return b=+b,S=S>>>0,D||ae(this,b,S,4,4294967295,0),this[S]=b>>>24,this[S+1]=b>>>16,this[S+2]=b>>>8,this[S+3]=b&255,S+4};function V(F,b,S,D,H){ge(b,D,H,F,S,7);let z=Number(b&BigInt(4294967295));F[S++]=z,z=z>>8,F[S++]=z,z=z>>8,F[S++]=z,z=z>>8,F[S++]=z;let ne=Number(b>>BigInt(32)&BigInt(4294967295));return F[S++]=ne,ne=ne>>8,F[S++]=ne,ne=ne>>8,F[S++]=ne,ne=ne>>8,F[S++]=ne,S}function R(F,b,S,D,H){ge(b,D,H,F,S,7);let z=Number(b&BigInt(4294967295));F[S+7]=z,z=z>>8,F[S+6]=z,z=z>>8,F[S+5]=z,z=z>>8,F[S+4]=z;let ne=Number(b>>BigInt(32)&BigInt(4294967295));return F[S+3]=ne,ne=ne>>8,F[S+2]=ne,ne=ne>>8,F[S+1]=ne,ne=ne>>8,F[S]=ne,S+8}s.prototype.writeBigUInt64LE=Ve(function(b,S=0){return V(this,b,S,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=Ve(function(b,S=0){return R(this,b,S,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(b,S,D,H){if(b=+b,S=S>>>0,!H){const Re=Math.pow(2,8*D-1);ae(this,b,S,D,Re-1,-Re)}let z=0,ne=1,we=0;for(this[S]=b&255;++z<D&&(ne*=256);)b<0&&we===0&&this[S+z-1]!==0&&(we=1),this[S+z]=(b/ne>>0)-we&255;return S+D},s.prototype.writeIntBE=function(b,S,D,H){if(b=+b,S=S>>>0,!H){const Re=Math.pow(2,8*D-1);ae(this,b,S,D,Re-1,-Re)}let z=D-1,ne=1,we=0;for(this[S+z]=b&255;--z>=0&&(ne*=256);)b<0&&we===0&&this[S+z+1]!==0&&(we=1),this[S+z]=(b/ne>>0)-we&255;return S+D},s.prototype.writeInt8=function(b,S,D){return b=+b,S=S>>>0,D||ae(this,b,S,1,127,-128),b<0&&(b=255+b+1),this[S]=b&255,S+1},s.prototype.writeInt16LE=function(b,S,D){return b=+b,S=S>>>0,D||ae(this,b,S,2,32767,-32768),this[S]=b&255,this[S+1]=b>>>8,S+2},s.prototype.writeInt16BE=function(b,S,D){return b=+b,S=S>>>0,D||ae(this,b,S,2,32767,-32768),this[S]=b>>>8,this[S+1]=b&255,S+2},s.prototype.writeInt32LE=function(b,S,D){return b=+b,S=S>>>0,D||ae(this,b,S,4,2147483647,-2147483648),this[S]=b&255,this[S+1]=b>>>8,this[S+2]=b>>>16,this[S+3]=b>>>24,S+4},s.prototype.writeInt32BE=function(b,S,D){return b=+b,S=S>>>0,D||ae(this,b,S,4,2147483647,-2147483648),b<0&&(b=4294967295+b+1),this[S]=b>>>24,this[S+1]=b>>>16,this[S+2]=b>>>8,this[S+3]=b&255,S+4},s.prototype.writeBigInt64LE=Ve(function(b,S=0){return V(this,b,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=Ve(function(b,S=0){return R(this,b,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function N(F,b,S,D,H,z){if(S+D>F.length)throw new RangeError("Index out of range");if(S<0)throw new RangeError("Index out of range")}function q(F,b,S,D,H){return b=+b,S=S>>>0,H||N(F,b,S,4),r.write(F,b,S,D,23,4),S+4}s.prototype.writeFloatLE=function(b,S,D){return q(this,b,S,!0,D)},s.prototype.writeFloatBE=function(b,S,D){return q(this,b,S,!1,D)};function $(F,b,S,D,H){return b=+b,S=S>>>0,H||N(F,b,S,8),r.write(F,b,S,D,52,8),S+8}s.prototype.writeDoubleLE=function(b,S,D){return $(this,b,S,!0,D)},s.prototype.writeDoubleBE=function(b,S,D){return $(this,b,S,!1,D)},s.prototype.copy=function(b,S,D,H){if(!s.isBuffer(b))throw new TypeError("argument should be a Buffer");if(D||(D=0),!H&&H!==0&&(H=this.length),S>=b.length&&(S=b.length),S||(S=0),H>0&&H<D&&(H=D),H===D||b.length===0||this.length===0)return 0;if(S<0)throw new RangeError("targetStart out of bounds");if(D<0||D>=this.length)throw new RangeError("Index out of range");if(H<0)throw new RangeError("sourceEnd out of bounds");H>this.length&&(H=this.length),b.length-S<H-D&&(H=b.length-S+D);const z=H-D;return this===b&&typeof i.prototype.copyWithin=="function"?this.copyWithin(S,D,H):i.prototype.set.call(b,this.subarray(D,H),S),z},s.prototype.fill=function(b,S,D,H){if(typeof b=="string"){if(typeof S=="string"?(H=S,S=0,D=this.length):typeof D=="string"&&(H=D,D=this.length),H!==void 0&&typeof H!="string")throw new TypeError("encoding must be a string");if(typeof H=="string"&&!s.isEncoding(H))throw new TypeError("Unknown encoding: "+H);if(b.length===1){const ne=b.charCodeAt(0);(H==="utf8"&&ne<128||H==="latin1")&&(b=ne)}}else typeof b=="number"?b=b&255:typeof b=="boolean"&&(b=Number(b));if(S<0||this.length<S||this.length<D)throw new RangeError("Out of range index");if(D<=S)return this;S=S>>>0,D=D===void 0?this.length:D>>>0,b||(b=0);let z;if(typeof b=="number")for(z=S;z<D;++z)this[z]=b;else{const ne=s.isBuffer(b)?b:s.from(b,H),we=ne.length;if(we===0)throw new TypeError('The value "'+b+'" is invalid for argument "value"');for(z=0;z<D-S;++z)this[z+S]=ne[z%we]}return this};const B={};function U(F,b,S){B[F]=class extends S{constructor(){super(),Object.defineProperty(this,"message",{value:b.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${F}]`,this.stack,delete this.name}get code(){return F}set code(H){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:H,writable:!0})}toString(){return`${this.name} [${F}]: ${this.message}`}}}U("ERR_BUFFER_OUT_OF_BOUNDS",function(F){return F?`${F} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),U("ERR_INVALID_ARG_TYPE",function(F,b){return`The "${F}" argument must be of type number. Received type ${typeof b}`},TypeError),U("ERR_OUT_OF_RANGE",function(F,b,S){let D=`The value of "${F}" is out of range.`,H=S;return Number.isInteger(S)&&Math.abs(S)>2**32?H=J(String(S)):typeof S=="bigint"&&(H=String(S),(S>BigInt(2)**BigInt(32)||S<-(BigInt(2)**BigInt(32)))&&(H=J(H)),H+="n"),D+=` It must be ${b}. Received ${H}`,D},RangeError);function J(F){let b="",S=F.length;const D=F[0]==="-"?1:0;for(;S>=D+4;S-=3)b=`_${F.slice(S-3,S)}${b}`;return`${F.slice(0,S)}${b}`}function oe(F,b,S){ce(b,"offset"),(F[b]===void 0||F[b+S]===void 0)&&he(b,F.length-(S+1))}function ge(F,b,S,D,H,z){if(F>S||F<b){const ne=typeof b=="bigint"?"n":"";let we;throw b===0||b===BigInt(0)?we=`>= 0${ne} and < 2${ne} ** ${(z+1)*8}${ne}`:we=`>= -(2${ne} ** ${(z+1)*8-1}${ne}) and < 2 ** ${(z+1)*8-1}${ne}`,new B.ERR_OUT_OF_RANGE("value",we,F)}oe(D,H,z)}function ce(F,b){if(typeof F!="number")throw new B.ERR_INVALID_ARG_TYPE(b,"number",F)}function he(F,b,S){throw Math.floor(F)!==F?(ce(F,S),new B.ERR_OUT_OF_RANGE("offset","an integer",F)):b<0?new B.ERR_BUFFER_OUT_OF_BOUNDS:new B.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${b}`,F)}const Oe=/[^+/0-9A-Za-z-_]/g;function te(F){if(F=F.split("=")[0],F=F.trim().replace(Oe,""),F.length<2)return"";for(;F.length%4!==0;)F=F+"=";return F}function He(F,b){b=b||1/0;let S;const D=F.length;let H=null;const z=[];for(let ne=0;ne<D;++ne){if(S=F.charCodeAt(ne),S>55295&&S<57344){if(!H){if(S>56319){(b-=3)>-1&&z.push(239,191,189);continue}else if(ne+1===D){(b-=3)>-1&&z.push(239,191,189);continue}H=S;continue}if(S<56320){(b-=3)>-1&&z.push(239,191,189),H=S;continue}S=(H-55296<<10|S-56320)+65536}else H&&(b-=3)>-1&&z.push(239,191,189);if(H=null,S<128){if((b-=1)<0)break;z.push(S)}else if(S<2048){if((b-=2)<0)break;z.push(S>>6|192,S&63|128)}else if(S<65536){if((b-=3)<0)break;z.push(S>>12|224,S>>6&63|128,S&63|128)}else if(S<1114112){if((b-=4)<0)break;z.push(S>>18|240,S>>12&63|128,S>>6&63|128,S&63|128)}else throw new Error("Invalid code point")}return z}function De(F){const b=[];for(let S=0;S<F.length;++S)b.push(F.charCodeAt(S)&255);return b}function xe(F,b){let S,D,H;const z=[];for(let ne=0;ne<F.length&&!((b-=2)<0);++ne)S=F.charCodeAt(ne),D=S>>8,H=S%256,z.push(H),z.push(D);return z}function Ne(F){return t.toByteArray(te(F))}function Ye(F,b,S,D){let H;for(H=0;H<D&&!(H+S>=b.length||H>=F.length);++H)b[H+S]=F[H];return H}function Ge(F,b){return F instanceof b||F!=null&&F.constructor!=null&&F.constructor.name!=null&&F.constructor.name===b.name}function ut(F){return F!==F}const ft=(function(){const F="0123456789abcdef",b=new Array(256);for(let S=0;S<16;++S){const D=S*16;for(let H=0;H<16;++H)b[D+H]=F[S]+F[H]}return b})();function Ve(F){return typeof BigInt>"u"?Nt:F}function Nt(){throw new Error("BigInt not supported")}})(Ts);const Ht=Ts.Buffer;function me(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}X.inherits(me,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:X.toJSONObject(this.config),code:this.code,status:this.status}}});const _s=me.prototype,Os={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Os[e]={value:e}}),Object.defineProperties(me,Os),Object.defineProperty(_s,"isAxiosError",{value:!0}),me.from=(e,t,r,n,o,i)=>{const a=Object.create(_s);X.toFlatObject(e,a,function(s){return s!==Error.prototype},l=>l!=="isAxiosError");const u=e&&e.message?e.message:"Error",c=t==null&&e?e.code:t;return me.call(a,u,c,r,n,o),e&&a.cause==null&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",i&&Object.assign(a,i),a};var Xf=null;function vn(e){return X.isPlainObject(e)||X.isArray(e)}function Ns(e){return X.endsWith(e,"[]")?e.slice(0,-2):e}function Rs(e,t,r){return e?e.concat(t).map(function(o,i){return o=Ns(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function Yf(e){return X.isArray(e)&&!e.some(vn)}const Jf=X.toFlatObject(X,{},null,function(t){return/^is[A-Z]/.test(t)});function Rr(e,t,r){if(!X.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=X.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,A){return!X.isUndefined(A[E])});const n=r.metaTokens,o=r.visitor||s,i=r.dots,a=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&X.isSpecCompliantForm(t);if(!X.isFunction(o))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(X.isDate(m))return m.toISOString();if(X.isBoolean(m))return m.toString();if(!c&&X.isBlob(m))throw new me("Blob is not supported. Use a Buffer instead.");return X.isArrayBuffer(m)||X.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Ht.from(m):m}function s(m,E,A){let y=m;if(m&&!A&&typeof m=="object"){if(X.endsWith(E,"{}"))E=n?E:E.slice(0,-2),m=JSON.stringify(m);else if(X.isArray(m)&&Yf(m)||(X.isFileList(m)||X.endsWith(E,"[]"))&&(y=X.toArray(m)))return E=Ns(E),y.forEach(function(d,g){!(X.isUndefined(d)||d===null)&&t.append(a===!0?Rs([E],g,i):a===null?E:E+"[]",l(d))}),!1}return vn(m)?!0:(t.append(Rs(A,E,i),l(m)),!1)}const f=[],h=Object.assign(Jf,{defaultVisitor:s,convertValue:l,isVisitable:vn});function x(m,E){if(!X.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+E.join("."));f.push(m),X.forEach(m,function(y,p){(!(X.isUndefined(y)||y===null)&&o.call(t,y,X.isString(p)?p.trim():p,E,h))===!0&&x(y,E?E.concat(p):[p])}),f.pop()}}if(!X.isObject(e))throw new TypeError("data must be an object");return x(e),t}function Ps(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function En(e,t){this._pairs=[],e&&Rr(e,this,t)}const Is=En.prototype;Is.append=function(t,r){this._pairs.push([t,r])},Is.toString=function(t){const r=t?function(n){return t.call(this,n,Ps)}:Ps;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Zf(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Fs(e,t,r){if(!t)return e;const n=r&&r.encode||Zf;X.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(o?i=o(t,r):i=X.isURLSearchParams(t)?t.toString():new En(t,r).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Cs{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){X.forEach(this.handlers,function(n){n!==null&&t(n)})}}var Bs={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Qf=typeof URLSearchParams<"u"?URLSearchParams:En,eh=typeof FormData<"u"?FormData:null,th=typeof Blob<"u"?Blob:null,rh={isBrowser:!0,classes:{URLSearchParams:Qf,FormData:eh,Blob:th},protocols:["http","https","file","blob","url","data"]};const xn=typeof window<"u"&&typeof document<"u",An=typeof navigator=="object"&&navigator||void 0,nh=xn&&(!An||["ReactNative","NativeScript","NS"].indexOf(An.product)<0),ih=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",oh=xn&&window.location.href||"http://localhost";var sh=Object.freeze({__proto__:null,hasBrowserEnv:xn,hasStandardBrowserEnv:nh,hasStandardBrowserWebWorkerEnv:ih,navigator:An,origin:oh}),Ke={...sh,...rh};function ah(e,t){return Rr(e,new Ke.classes.URLSearchParams,{visitor:function(r,n,o,i){return Ke.isNode&&X.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function uh(e){return X.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function lh(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function Ls(e){function t(r,n,o,i){let a=r[i++];if(a==="__proto__")return!0;const u=Number.isFinite(+a),c=i>=r.length;return a=!a&&X.isArray(o)?o.length:a,c?(X.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!u):((!o[a]||!X.isObject(o[a]))&&(o[a]=[]),t(r,n,o[a],i)&&X.isArray(o[a])&&(o[a]=lh(o[a])),!u)}if(X.isFormData(e)&&X.isFunction(e.entries)){const r={};return X.forEachEntry(e,(n,o)=>{t(uh(n),o,r,0)}),r}return null}function ch(e,t,r){if(X.isString(e))try{return(t||JSON.parse)(e),X.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const or={transitional:Bs,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=X.isObject(t);if(i&&X.isHTMLForm(t)&&(t=new FormData(t)),X.isFormData(t))return o?JSON.stringify(Ls(t)):t;if(X.isArrayBuffer(t)||X.isBuffer(t)||X.isStream(t)||X.isFile(t)||X.isBlob(t)||X.isReadableStream(t))return t;if(X.isArrayBufferView(t))return t.buffer;if(X.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return ah(t,this.formSerializer).toString();if((u=X.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Rr(u?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),ch(t)):t}],transformResponse:[function(t){const r=this.transitional||or.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(X.isResponse(t)||X.isReadableStream(t))return t;if(t&&X.isString(t)&&(n&&!this.responseType||o)){const a=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(u){if(a)throw u.name==="SyntaxError"?me.from(u,me.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ke.classes.FormData,Blob:Ke.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};X.forEach(["delete","get","head","post","put","patch"],e=>{or.headers[e]={}});const fh=X.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var hh=e=>{const t={};let r,n,o;return e&&e.split(`
7
- `).forEach(function(a){o=a.indexOf(":"),r=a.substring(0,o).trim().toLowerCase(),n=a.substring(o+1).trim(),!(!r||t[r]&&fh[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t};const Us=Symbol("internals");function sr(e){return e&&String(e).trim().toLowerCase()}function Pr(e){return e===!1||e==null?e:X.isArray(e)?e.map(Pr):String(e)}function dh(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const ph=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Tn(e,t,r,n,o){if(X.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!X.isString(t)){if(X.isString(n))return t.indexOf(n)!==-1;if(X.isRegExp(n))return n.test(t)}}function gh(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function yh(e,t){const r=X.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,i,a){return this[n].call(this,t,o,i,a)},configurable:!0})})}let rt=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(u,c,l){const s=sr(c);if(!s)throw new Error("header name must be a non-empty string");const f=X.findKey(o,s);(!f||o[f]===void 0||l===!0||l===void 0&&o[f]!==!1)&&(o[f||c]=Pr(u))}const a=(u,c)=>X.forEach(u,(l,s)=>i(l,s,c));if(X.isPlainObject(t)||t instanceof this.constructor)a(t,r);else if(X.isString(t)&&(t=t.trim())&&!ph(t))a(hh(t),r);else if(X.isObject(t)&&X.isIterable(t)){let u={},c,l;for(const s of t){if(!X.isArray(s))throw TypeError("Object iterator must return a key-value pair");u[l=s[0]]=(c=u[l])?X.isArray(c)?[...c,s[1]]:[c,s[1]]:s[1]}a(u,r)}else t!=null&&i(r,t,n);return this}get(t,r){if(t=sr(t),t){const n=X.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return dh(o);if(X.isFunction(r))return r.call(this,o,n);if(X.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=sr(t),t){const n=X.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Tn(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(a){if(a=sr(a),a){const u=X.findKey(n,a);u&&(!r||Tn(n,n[u],u,r))&&(delete n[u],o=!0)}}return X.isArray(t)?t.forEach(i):i(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!t||Tn(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return X.forEach(this,(o,i)=>{const a=X.findKey(n,i);if(a){r[a]=Pr(o),delete r[i];return}const u=t?gh(i):String(i).trim();u!==i&&delete r[i],r[u]=Pr(o),n[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return X.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&X.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
8
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Us]=this[Us]={accessors:{}}).accessors,o=this.prototype;function i(a){const u=sr(a);n[u]||(yh(o,a),n[u]=!0)}return X.isArray(t)?t.forEach(i):i(t),this}};rt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),X.reduceDescriptors(rt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),X.freezeMethods(rt);function Sn(e,t){const r=this||or,n=t||r,o=rt.from(n.headers);let i=n.data;return X.forEach(e,function(u){i=u.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function js(e){return!!(e&&e.__CANCEL__)}function Vt(e,t,r){me.call(this,e??"canceled",me.ERR_CANCELED,t,r),this.name="CanceledError"}X.inherits(Vt,me,{__CANCEL__:!0});function ks(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new me("Request failed with status code "+r.status,[me.ERR_BAD_REQUEST,me.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function mh(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function bh(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(c){const l=Date.now(),s=n[i];a||(a=l),r[o]=c,n[o]=l;let f=i,h=0;for(;f!==o;)h+=r[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),l-a<t)return;const x=s&&l-s;return x?Math.round(h*1e3/x):void 0}}function wh(e,t){let r=0,n=1e3/t,o,i;const a=(l,s=Date.now())=>{r=s,o=null,i&&(clearTimeout(i),i=null),e(...l)};return[(...l)=>{const s=Date.now(),f=s-r;f>=n?a(l,s):(o=l,i||(i=setTimeout(()=>{i=null,a(o)},n-f)))},()=>o&&a(o)]}const Ir=(e,t,r=3)=>{let n=0;const o=bh(50,250);return wh(i=>{const a=i.loaded,u=i.lengthComputable?i.total:void 0,c=a-n,l=o(c),s=a<=u;n=a;const f={loaded:a,total:u,progress:u?a/u:void 0,bytes:c,rate:l||void 0,estimated:l&&u&&s?(u-a)/l:void 0,event:i,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(f)},r)},Ds=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Ms=e=>(...t)=>X.asap(()=>e(...t));var vh=Ke.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Ke.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Ke.origin),Ke.navigator&&/(msie|trident)/i.test(Ke.navigator.userAgent)):()=>!0,Eh=Ke.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const a=[e+"="+encodeURIComponent(t)];X.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),X.isString(n)&&a.push("path="+n),X.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function xh(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ah(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function $s(e,t,r){let n=!xh(t);return e&&(n||r==!1)?Ah(e,t):t}const qs=e=>e instanceof rt?{...e}:e;function Ft(e,t){t=t||{};const r={};function n(l,s,f,h){return X.isPlainObject(l)&&X.isPlainObject(s)?X.merge.call({caseless:h},l,s):X.isPlainObject(s)?X.merge({},s):X.isArray(s)?s.slice():s}function o(l,s,f,h){if(X.isUndefined(s)){if(!X.isUndefined(l))return n(void 0,l,f,h)}else return n(l,s,f,h)}function i(l,s){if(!X.isUndefined(s))return n(void 0,s)}function a(l,s){if(X.isUndefined(s)){if(!X.isUndefined(l))return n(void 0,l)}else return n(void 0,s)}function u(l,s,f){if(f in t)return n(l,s);if(f in e)return n(void 0,l)}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u,headers:(l,s,f)=>o(qs(l),qs(s),f,!0)};return X.forEach(Object.keys({...e,...t}),function(s){const f=c[s]||o,h=f(e[s],t[s],s);X.isUndefined(h)&&f!==u||(r[s]=h)}),r}var Hs=e=>{const t=Ft({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:u}=t;if(t.headers=a=rt.from(a),t.url=Fs($s(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),X.isFormData(r)){if(Ke.hasStandardBrowserEnv||Ke.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(X.isFunction(r.getHeaders)){const c=r.getHeaders(),l=["content-type","content-length"];Object.entries(c).forEach(([s,f])=>{l.includes(s.toLowerCase())&&a.set(s,f)})}}if(Ke.hasStandardBrowserEnv&&(n&&X.isFunction(n)&&(n=n(t)),n||n!==!1&&vh(t.url))){const c=o&&i&&Eh.read(i);c&&a.set(o,c)}return t},Th=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const o=Hs(e);let i=o.data;const a=rt.from(o.headers).normalize();let{responseType:u,onUploadProgress:c,onDownloadProgress:l}=o,s,f,h,x,m;function E(){x&&x(),m&&m(),o.cancelToken&&o.cancelToken.unsubscribe(s),o.signal&&o.signal.removeEventListener("abort",s)}let A=new XMLHttpRequest;A.open(o.method.toUpperCase(),o.url,!0),A.timeout=o.timeout;function y(){if(!A)return;const d=rt.from("getAllResponseHeaders"in A&&A.getAllResponseHeaders()),v={data:!u||u==="text"||u==="json"?A.responseText:A.response,status:A.status,statusText:A.statusText,headers:d,config:e,request:A};ks(function(P){r(P),E()},function(P){n(P),E()},v),A=null}"onloadend"in A?A.onloadend=y:A.onreadystatechange=function(){!A||A.readyState!==4||A.status===0&&!(A.responseURL&&A.responseURL.indexOf("file:")===0)||setTimeout(y)},A.onabort=function(){A&&(n(new me("Request aborted",me.ECONNABORTED,e,A)),A=null)},A.onerror=function(g){const v=g&&g.message?g.message:"Network Error",T=new me(v,me.ERR_NETWORK,e,A);T.event=g||null,n(T),A=null},A.ontimeout=function(){let g=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const v=o.transitional||Bs;o.timeoutErrorMessage&&(g=o.timeoutErrorMessage),n(new me(g,v.clarifyTimeoutError?me.ETIMEDOUT:me.ECONNABORTED,e,A)),A=null},i===void 0&&a.setContentType(null),"setRequestHeader"in A&&X.forEach(a.toJSON(),function(g,v){A.setRequestHeader(v,g)}),X.isUndefined(o.withCredentials)||(A.withCredentials=!!o.withCredentials),u&&u!=="json"&&(A.responseType=o.responseType),l&&([h,m]=Ir(l,!0),A.addEventListener("progress",h)),c&&A.upload&&([f,x]=Ir(c),A.upload.addEventListener("progress",f),A.upload.addEventListener("loadend",x)),(o.cancelToken||o.signal)&&(s=d=>{A&&(n(!d||d.type?new Vt(null,e,A):d),A.abort(),A=null)},o.cancelToken&&o.cancelToken.subscribe(s),o.signal&&(o.signal.aborted?s():o.signal.addEventListener("abort",s)));const p=mh(o.url);if(p&&Ke.protocols.indexOf(p)===-1){n(new me("Unsupported protocol "+p+":",me.ERR_BAD_REQUEST,e));return}A.send(i||null)})};const Sh=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const i=function(l){if(!o){o=!0,u();const s=l instanceof Error?l:this.reason;n.abort(s instanceof me?s:new Vt(s instanceof Error?s.message:s))}};let a=t&&setTimeout(()=>{a=null,i(new me(`timeout ${t} of ms exceeded`,me.ETIMEDOUT))},t);const u=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),e=null)};e.forEach(l=>l.addEventListener("abort",i));const{signal:c}=n;return c.unsubscribe=()=>X.asap(u),c}},_h=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},Oh=async function*(e,t){for await(const r of Nh(e))yield*_h(r,t)},Nh=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},Vs=(e,t,r,n)=>{const o=Oh(e,t);let i=0,a,u=c=>{a||(a=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:l,value:s}=await o.next();if(l){u(),c.close();return}let f=s.byteLength;if(r){let h=i+=f;r(h)}c.enqueue(new Uint8Array(s))}catch(l){throw u(l),l}},cancel(c){return u(c),o.return()}},{highWaterMark:2})},Ws=64*1024,{isFunction:Fr}=X,Rh=(({Request:e,Response:t})=>({Request:e,Response:t}))(X.global),{ReadableStream:Gs,TextEncoder:Ks}=X.global,zs=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Ph=e=>{e=X.merge.call({skipUndefined:!0},Rh,e);const{fetch:t,Request:r,Response:n}=e,o=t?Fr(t):typeof fetch=="function",i=Fr(r),a=Fr(n);if(!o)return!1;const u=o&&Fr(Gs),c=o&&(typeof Ks=="function"?(m=>E=>m.encode(E))(new Ks):async m=>new Uint8Array(await new r(m).arrayBuffer())),l=i&&u&&zs(()=>{let m=!1;const E=new r(Ke.origin,{body:new Gs,method:"POST",get duplex(){return m=!0,"half"}}).headers.has("Content-Type");return m&&!E}),s=a&&u&&zs(()=>X.isReadableStream(new n("").body)),f={stream:s&&(m=>m.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!f[m]&&(f[m]=(E,A)=>{let y=E&&E[m];if(y)return y.call(E);throw new me(`Response type '${m}' is not supported`,me.ERR_NOT_SUPPORT,A)})});const h=async m=>{if(m==null)return 0;if(X.isBlob(m))return m.size;if(X.isSpecCompliantForm(m))return(await new r(Ke.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(X.isArrayBufferView(m)||X.isArrayBuffer(m))return m.byteLength;if(X.isURLSearchParams(m)&&(m=m+""),X.isString(m))return(await c(m)).byteLength},x=async(m,E)=>{const A=X.toFiniteNumber(m.getContentLength());return A??h(E)};return async m=>{let{url:E,method:A,data:y,signal:p,cancelToken:d,timeout:g,onDownloadProgress:v,onUploadProgress:T,responseType:P,headers:I,withCredentials:O="same-origin",fetchOptions:j}=Hs(m),K=t||fetch;P=P?(P+"").toLowerCase():"text";let L=Sh([p,d&&d.toAbortSignal()],g),k=null;const re=L&&L.unsubscribe&&(()=>{L.unsubscribe()});let ee;try{if(T&&l&&A!=="get"&&A!=="head"&&(ee=await x(I,y))!==0){let pe=new r(E,{method:"POST",body:y,duplex:"half"}),G;if(X.isFormData(y)&&(G=pe.headers.get("content-type"))&&I.setContentType(G),pe.body){const[Z,Q]=Ds(ee,Ir(Ms(T)));y=Vs(pe.body,Ws,Z,Q)}}X.isString(O)||(O=O?"include":"omit");const ue=i&&"credentials"in r.prototype,le={...j,signal:L,method:A.toUpperCase(),headers:I.normalize().toJSON(),body:y,duplex:"half",credentials:ue?O:void 0};k=i&&new r(E,le);let de=await(i?K(k,j):K(E,le));const fe=s&&(P==="stream"||P==="response");if(s&&(v||fe&&re)){const pe={};["status","statusText","headers"].forEach(ae=>{pe[ae]=de[ae]});const G=X.toFiniteNumber(de.headers.get("content-length")),[Z,Q]=v&&Ds(G,Ir(Ms(v),!0))||[];de=new n(Vs(de.body,Ws,Z,()=>{Q&&Q(),re&&re()}),pe)}P=P||"text";let be=await f[X.findKey(f,P)||"text"](de,m);return!fe&&re&&re(),await new Promise((pe,G)=>{ks(pe,G,{data:be,headers:rt.from(de.headers),status:de.status,statusText:de.statusText,config:m,request:k})})}catch(ue){throw re&&re(),ue&&ue.name==="TypeError"&&/Load failed|fetch/i.test(ue.message)?Object.assign(new me("Network Error",me.ERR_NETWORK,m,k),{cause:ue.cause||ue}):me.from(ue,ue&&ue.code,m,k)}}},Ih=new Map,Xs=e=>{let t=e?e.env:{};const{fetch:r,Request:n,Response:o}=t,i=[n,o,r];let a=i.length,u=a,c,l,s=Ih;for(;u--;)c=i[u],l=s.get(c),l===void 0&&s.set(c,l=u?new Map:Ph(t)),s=l;return l};Xs();const _n={http:Xf,xhr:Th,fetch:{get:Xs}};X.forEach(_n,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ys=e=>`- ${e}`,Fh=e=>X.isFunction(e)||e===null||e===!1;var Js={getAdapter:(e,t)=>{e=X.isArray(e)?e:[e];const{length:r}=e;let n,o;const i={};for(let a=0;a<r;a++){n=e[a];let u;if(o=n,!Fh(n)&&(o=_n[(u=String(n)).toLowerCase()],o===void 0))throw new me(`Unknown adapter '${u}'`);if(o&&(X.isFunction(o)||(o=o.get(t))))break;i[u||"#"+a]=o}if(!o){const a=Object.entries(i).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build"));let u=r?a.length>1?`since :
9
- `+a.map(Ys).join(`
10
- `):" "+Ys(a[0]):"as no adapter specified";throw new me("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return o},adapters:_n};function On(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Vt(null,e)}function Zs(e){return On(e),e.headers=rt.from(e.headers),e.data=Sn.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Js.getAdapter(e.adapter||or.adapter,e)(e).then(function(n){return On(e),n.data=Sn.call(e,e.transformResponse,n),n.headers=rt.from(n.headers),n},function(n){return js(n)||(On(e),n&&n.response&&(n.response.data=Sn.call(e,e.transformResponse,n.response),n.response.headers=rt.from(n.response.headers))),Promise.reject(n)})}const Qs="1.12.2",Cr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Cr[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const ea={};Cr.transitional=function(t,r,n){function o(i,a){return"[Axios v"+Qs+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,u)=>{if(t===!1)throw new me(o(a," has been removed"+(r?" in "+r:"")),me.ERR_DEPRECATED);return r&&!ea[a]&&(ea[a]=!0,console.warn(o(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,a,u):!0}},Cr.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function Ch(e,t,r){if(typeof e!="object")throw new me("options must be an object",me.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=t[i];if(a){const u=e[i],c=u===void 0||a(u,i,e);if(c!==!0)throw new me("option "+i+" must be "+c,me.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new me("Unknown option "+i,me.ERR_BAD_OPTION)}}var Br={assertOptions:Ch,validators:Cr};const gt=Br.validators;let Ct=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Cs,response:new Cs}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
11
- `+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ft(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&Br.assertOptions(n,{silentJSONParsing:gt.transitional(gt.boolean),forcedJSONParsing:gt.transitional(gt.boolean),clarifyTimeoutError:gt.transitional(gt.boolean)},!1),o!=null&&(X.isFunction(o)?r.paramsSerializer={serialize:o}:Br.assertOptions(o,{encode:gt.function,serialize:gt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Br.assertOptions(r,{baseUrl:gt.spelling("baseURL"),withXsrfToken:gt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=i&&X.merge(i.common,i[r.method]);i&&X.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),r.headers=rt.concat(a,i);const u=[];let c=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(r)===!1||(c=c&&E.synchronous,u.unshift(E.fulfilled,E.rejected))});const l=[];this.interceptors.response.forEach(function(E){l.push(E.fulfilled,E.rejected)});let s,f=0,h;if(!c){const m=[Zs.bind(this),void 0];for(m.unshift(...u),m.push(...l),h=m.length,s=Promise.resolve(r);f<h;)s=s.then(m[f++],m[f++]);return s}h=u.length;let x=r;for(;f<h;){const m=u[f++],E=u[f++];try{x=m(x)}catch(A){E.call(this,A);break}}try{s=Zs.call(this,x)}catch(m){return Promise.reject(m)}for(f=0,h=l.length;f<h;)s=s.then(l[f++],l[f++]);return s}getUri(t){t=Ft(this.defaults,t);const r=$s(t.baseURL,t.url,t.allowAbsoluteUrls);return Fs(r,t.params,t.paramsSerializer)}};X.forEach(["delete","get","head","options"],function(t){Ct.prototype[t]=function(r,n){return this.request(Ft(n||{},{method:t,url:r,data:(n||{}).data}))}}),X.forEach(["post","put","patch"],function(t){function r(n){return function(i,a,u){return this.request(Ft(u||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Ct.prototype[t]=r(),Ct.prototype[t+"Form"]=r(!0)});let Bh=class qc{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(u=>{n.subscribe(u),i=u}).then(o);return a.cancel=function(){n.unsubscribe(i)},a},t(function(i,a,u){n.reason||(n.reason=new Vt(i,a,u),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new qc(function(o){t=o}),cancel:t}}};function Lh(e){return function(r){return e.apply(null,r)}}function Uh(e){return X.isObject(e)&&e.isAxiosError===!0}const Nn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Nn).forEach(([e,t])=>{Nn[t]=e});function ta(e){const t=new Ct(e),r=gs(Ct.prototype.request,t);return X.extend(r,Ct.prototype,t,{allOwnKeys:!0}),X.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return ta(Ft(e,o))},r}const ke=ta(or);ke.Axios=Ct,ke.CanceledError=Vt,ke.CancelToken=Bh,ke.isCancel=js,ke.VERSION=Qs,ke.toFormData=Rr,ke.AxiosError=me,ke.Cancel=ke.CanceledError,ke.all=function(t){return Promise.all(t)},ke.spread=Lh,ke.isAxiosError=Uh,ke.mergeConfig=Ft,ke.AxiosHeaders=rt,ke.formToJSON=e=>Ls(X.isHTMLForm(e)?new FormData(e):e),ke.getAdapter=Js.getAdapter,ke.HttpStatusCode=Nn,ke.default=ke;const{Axios:cb,AxiosError:fb,CanceledError:hb,isCancel:db,CancelToken:pb,VERSION:gb,all:yb,Cancel:mb,isAxiosError:bb,spread:wb,toFormData:vb,AxiosHeaders:Eb,HttpStatusCode:xb,formToJSON:Ab,getAdapter:Tb,mergeConfig:Sb}=ke,Lr=e=>encodeURIComponent(e).split("%2F").join("/"),jh=/^(\w+:\/\/[^/?]+)?(.*?)$/,kh=e=>e.filter(t=>typeof t=="string"||typeof t=="number").map(t=>`${t}`).filter(t=>t),Dh=e=>{const t=e.join("/"),[,r="",n=""]=t.match(jh)||[];return{prefix:r,pathname:{parts:n.split("/").filter(o=>o!==""),hasLeading:/^\/+/.test(n),hasTrailing:/\/+$/.test(n)}}},Mh=(e,t)=>{const{prefix:r,pathname:n}=e,{parts:o,hasLeading:i,hasTrailing:a}=n,{leadingSlash:u,trailingSlash:c}=t,l=u===!0||u==="keep"&&i,s=c===!0||c==="keep"&&a;let f=r;return o.length>0&&((f||l)&&(f+="/"),f+=o.join("/")),s&&(f+="/"),!f&&l&&(f+="/"),f},Ee=(...e)=>{const t=e[e.length-1];let r;t&&typeof t=="object"&&(r=t,e=e.slice(0,-1)),r={leadingSlash:!0,trailingSlash:!1,...r},e=kh(e);const n=Dh(e);return Mh(n,r)};class ra extends Error{response;statusCode;constructor(t,r,n=null){super(t),this.response=r,this.statusCode=n}}class $h extends ra{errorCode;constructor(t,r,n,o=null){super(t,n,o),this.errorCode=r}}function qh(e,t=""){return`/public-files/${e}/${t}`.split("/").filter(Boolean).join("/")}function Hh(e,t=""){return`/ocm/${e}/${t}`.split("/").filter(Boolean).join("/")}class ct{static Shared="S";static Shareable="R";static Mounted="M";static Deletable="D";static Renameable="N";static Moveable="V";static Updateable="NV";static FileUpdateable="W";static FolderCreateable="CK";static Deny="Z";static SecureView="X"}var vt=(e=>(e.copy="COPY",e.delete="DELETE",e.lock="LOCK",e.mkcol="MKCOL",e.move="MOVE",e.propfind="PROPFIND",e.proppatch="PROPPATCH",e.put="PUT",e.report="REPORT",e.unlock="UNLOCK",e))(vt||{});const Ur=e=>({value:e,type:null}),Vh=e=>Ur(e),Te=e=>Ur(e),jr=e=>Ur(e),Wh=e=>Ur(e),Gh={Permissions:Te("permissions"),IsFavorite:jr("favorite"),FileId:Te("fileid"),FileParent:Te("file-parent"),Name:Te("name"),OwnerId:Te("owner-id"),OwnerDisplayName:Te("owner-display-name"),PrivateLink:Te("privatelink"),ContentLength:jr("getcontentlength"),ContentSize:jr("size"),LastModifiedDate:Te("getlastmodified"),Tags:Vh("tags"),Audio:{value:"audio",type:null},Location:{value:"location",type:null},Image:{value:"image",type:null},Photo:{value:"photo",type:null},ETag:Te("getetag"),MimeType:Te("getcontenttype"),ResourceType:Wh("resourcetype"),LockDiscovery:{value:"lockdiscovery",type:null},LockOwner:Te("owner"),LockTime:Te("locktime"),ActiveLock:{value:"activelock",type:null},DownloadURL:Te("downloadURL"),Highlights:Te("highlights"),MetaPathForUser:Te("meta-path-for-user"),RemoteItemId:Te("remote-item-id"),HasPreview:jr("has-preview"),ShareId:Te("shareid"),ShareRoot:Te("shareroot"),ShareTypes:{value:"share-types",type:null},SharePermissions:Te("share-permissions"),TrashbinOriginalFilename:Te("trashbin-original-filename"),TrashbinOriginalLocation:Te("trashbin-original-location"),TrashbinDeletedDate:Te("trashbin-delete-datetime"),PublicLinkItemType:Te("public-link-item-type"),PublicLinkPermission:Te("public-link-permission"),PublicLinkExpiration:Te("public-link-expiration"),PublicLinkShareDate:Te("public-link-share-datetime"),PublicLinkShareOwner:Te("public-link-share-owner")},se=Object.fromEntries(Object.entries(Gh).map(([e,t])=>[e,t.value]));class Bt{static Default=[se.Permissions,se.IsFavorite,se.FileId,se.FileParent,se.Name,se.LockDiscovery,se.ActiveLock,se.OwnerId,se.OwnerDisplayName,se.RemoteItemId,se.ShareRoot,se.ShareTypes,se.PrivateLink,se.ContentLength,se.ContentSize,se.LastModifiedDate,se.ETag,se.MimeType,se.ResourceType,se.DownloadURL,se.Tags,se.Audio,se.Location,se.Image,se.Photo,se.HasPreview];static PublicLink=Bt.Default.concat([se.PublicLinkItemType,se.PublicLinkPermission,se.PublicLinkExpiration,se.PublicLinkShareDate,se.PublicLinkShareOwner]);static Trashbin=[se.ContentLength,se.ResourceType,se.TrashbinOriginalLocation,se.TrashbinOriginalFilename,se.TrashbinDeletedDate,se.Permissions,se.FileParent];static DavNamespace=[se.ContentLength,se.LastModifiedDate,se.ETag,se.MimeType,se.ResourceType,se.LockDiscovery,se.ActiveLock]}var Kh=typeof wt=="object"&&wt&&wt.Object===Object&&wt,zh=typeof self=="object"&&self&&self.Object===Object&&self,Rn=Kh||zh||Function("return this")(),Wt=Rn.Symbol,na=Object.prototype,Xh=na.hasOwnProperty,Yh=na.toString,ar=Wt?Wt.toStringTag:void 0;function Jh(e){var t=Xh.call(e,ar),r=e[ar];try{e[ar]=void 0;var n=!0}catch{}var o=Yh.call(e);return n&&(t?e[ar]=r:delete e[ar]),o}var Zh=Object.prototype,Qh=Zh.toString;function ed(e){return Qh.call(e)}var td="[object Null]",rd="[object Undefined]",ia=Wt?Wt.toStringTag:void 0;function oa(e){return e==null?e===void 0?rd:td:ia&&ia in Object(e)?Jh(e):ed(e)}function nd(e){return e!=null&&typeof e=="object"}var id="[object Symbol]";function Pn(e){return typeof e=="symbol"||nd(e)&&oa(e)==id}function od(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var In=Array.isArray,sa=Wt?Wt.prototype:void 0,aa=sa?sa.toString:void 0;function ua(e){if(typeof e=="string")return e;if(In(e))return od(e,ua)+"";if(Pn(e))return aa?aa.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function la(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var sd="[object AsyncFunction]",ad="[object Function]",ud="[object GeneratorFunction]",ld="[object Proxy]";function cd(e){if(!la(e))return!1;var t=oa(e);return t==ad||t==ud||t==sd||t==ld}var Fn=Rn["__core-js_shared__"],ca=(function(){var e=/[^.]+$/.exec(Fn&&Fn.keys&&Fn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function fd(e){return!!ca&&ca in e}var hd=Function.prototype,dd=hd.toString;function pd(e){if(e!=null){try{return dd.call(e)}catch{}try{return e+""}catch{}}return""}var gd=/[\\^$.*+?()[\]{}|]/g,yd=/^\[object .+?Constructor\]$/,md=Function.prototype,bd=Object.prototype,wd=md.toString,vd=bd.hasOwnProperty,Ed=RegExp("^"+wd.call(vd).replace(gd,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function xd(e){if(!la(e)||fd(e))return!1;var t=cd(e)?Ed:yd;return t.test(pd(e))}function Ad(e,t){return e?.[t]}function fa(e,t){var r=Ad(e,t);return xd(r)?r:void 0}function Td(e,t){return e===t||e!==e&&t!==t}var Sd=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_d=/^\w*$/;function Od(e,t){if(In(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Pn(e)?!0:_d.test(e)||!Sd.test(e)||t!=null&&e in Object(t)}var ur=fa(Object,"create");function Nd(){this.__data__=ur?ur(null):{},this.size=0}function Rd(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Pd="__lodash_hash_undefined__",Id=Object.prototype,Fd=Id.hasOwnProperty;function Cd(e){var t=this.__data__;if(ur){var r=t[e];return r===Pd?void 0:r}return Fd.call(t,e)?t[e]:void 0}var Bd=Object.prototype,Ld=Bd.hasOwnProperty;function Ud(e){var t=this.__data__;return ur?t[e]!==void 0:Ld.call(t,e)}var jd="__lodash_hash_undefined__";function kd(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ur&&t===void 0?jd:t,this}function Lt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Lt.prototype.clear=Nd,Lt.prototype.delete=Rd,Lt.prototype.get=Cd,Lt.prototype.has=Ud,Lt.prototype.set=kd;function Dd(){this.__data__=[],this.size=0}function kr(e,t){for(var r=e.length;r--;)if(Td(e[r][0],t))return r;return-1}var Md=Array.prototype,$d=Md.splice;function qd(e){var t=this.__data__,r=kr(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():$d.call(t,r,1),--this.size,!0}function Hd(e){var t=this.__data__,r=kr(t,e);return r<0?void 0:t[r][1]}function Vd(e){return kr(this.__data__,e)>-1}function Wd(e,t){var r=this.__data__,n=kr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Gt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Gt.prototype.clear=Dd,Gt.prototype.delete=qd,Gt.prototype.get=Hd,Gt.prototype.has=Vd,Gt.prototype.set=Wd;var Gd=fa(Rn,"Map");function Kd(){this.size=0,this.__data__={hash:new Lt,map:new(Gd||Gt),string:new Lt}}function zd(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Dr(e,t){var r=e.__data__;return zd(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Xd(e){var t=Dr(this,e).delete(e);return this.size-=t?1:0,t}function Yd(e){return Dr(this,e).get(e)}function Jd(e){return Dr(this,e).has(e)}function Zd(e,t){var r=Dr(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Ut(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ut.prototype.clear=Kd,Ut.prototype.delete=Xd,Ut.prototype.get=Yd,Ut.prototype.has=Jd,Ut.prototype.set=Zd;var Qd="Expected a function";function Cn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Qd);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(Cn.Cache||Ut),r}Cn.Cache=Ut;var ep=500;function tp(e){var t=Cn(e,function(n){return r.size===ep&&r.clear(),n}),r=t.cache;return t}var rp=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,np=/\\(\\)?/g,ip=tp(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(rp,function(r,n,o,i){t.push(o?i.replace(np,"$1"):n||r)}),t});function lr(e){return e==null?"":ua(e)}function op(e,t){return In(e)?e:Od(e,t)?[e]:ip(lr(e))}function sp(e){if(typeof e=="string"||Pn(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ap(e,t){t=op(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[sp(t[r++])];return r&&r==n?e:void 0}function up(e,t,r){var n=e==null?void 0:ap(e,t);return n===void 0?r:n}function lp(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n<o;)i[n]=e[n+t];return i}function cp(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:lp(e,t,r)}var fp="\\ud800-\\udfff",hp="\\u0300-\\u036f",dp="\\ufe20-\\ufe2f",pp="\\u20d0-\\u20ff",gp=hp+dp+pp,yp="\\ufe0e\\ufe0f",mp="\\u200d",bp=RegExp("["+mp+fp+gp+yp+"]");function ha(e){return bp.test(e)}function wp(e){return e.split("")}var da="\\ud800-\\udfff",vp="\\u0300-\\u036f",Ep="\\ufe20-\\ufe2f",xp="\\u20d0-\\u20ff",Ap=vp+Ep+xp,Tp="\\ufe0e\\ufe0f",Sp="["+da+"]",Bn="["+Ap+"]",Ln="\\ud83c[\\udffb-\\udfff]",_p="(?:"+Bn+"|"+Ln+")",pa="[^"+da+"]",ga="(?:\\ud83c[\\udde6-\\uddff]){2}",ya="[\\ud800-\\udbff][\\udc00-\\udfff]",Op="\\u200d",ma=_p+"?",ba="["+Tp+"]?",Np="(?:"+Op+"(?:"+[pa,ga,ya].join("|")+")"+ba+ma+")*",Rp=ba+ma+Np,Pp="(?:"+[pa+Bn+"?",Bn,ga,ya,Sp].join("|")+")",Ip=RegExp(Ln+"(?="+Ln+")|"+Pp+Rp,"g");function Fp(e){return e.match(Ip)||[]}function Cp(e){return ha(e)?Fp(e):wp(e)}function Bp(e){return function(t){t=lr(t);var r=ha(t)?Cp(t):void 0,n=r?r[0]:t.charAt(0),o=r?cp(r,1).join(""):t.slice(1);return n[e]()+o}}var Lp=Bp("toUpperCase");function Up(e){return Lp(lr(e).toLowerCase())}function jp(e,t,r,n){for(var o=-1,i=e==null?0:e.length;++o<i;)r=t(r,e[o],o,e);return r}function kp(e){return function(t){return e?.[t]}}var Dp={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Mp=kp(Dp),$p=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,qp="\\u0300-\\u036f",Hp="\\ufe20-\\ufe2f",Vp="\\u20d0-\\u20ff",Wp=qp+Hp+Vp,Gp="["+Wp+"]",Kp=RegExp(Gp,"g");function zp(e){return e=lr(e),e&&e.replace($p,Mp).replace(Kp,"")}var Xp=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Yp(e){return e.match(Xp)||[]}var Jp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Zp(e){return Jp.test(e)}var wa="\\ud800-\\udfff",Qp="\\u0300-\\u036f",eg="\\ufe20-\\ufe2f",tg="\\u20d0-\\u20ff",rg=Qp+eg+tg,va="\\u2700-\\u27bf",Ea="a-z\\xdf-\\xf6\\xf8-\\xff",ng="\\xac\\xb1\\xd7\\xf7",ig="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",og="\\u2000-\\u206f",sg=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",xa="A-Z\\xc0-\\xd6\\xd8-\\xde",ag="\\ufe0e\\ufe0f",Aa=ng+ig+og+sg,Ta="['’]",Sa="["+Aa+"]",ug="["+rg+"]",_a="\\d+",lg="["+va+"]",Oa="["+Ea+"]",Na="[^"+wa+Aa+_a+va+Ea+xa+"]",cg="\\ud83c[\\udffb-\\udfff]",fg="(?:"+ug+"|"+cg+")",hg="[^"+wa+"]",Ra="(?:\\ud83c[\\udde6-\\uddff]){2}",Pa="[\\ud800-\\udbff][\\udc00-\\udfff]",Kt="["+xa+"]",dg="\\u200d",Ia="(?:"+Oa+"|"+Na+")",pg="(?:"+Kt+"|"+Na+")",Fa="(?:"+Ta+"(?:d|ll|m|re|s|t|ve))?",Ca="(?:"+Ta+"(?:D|LL|M|RE|S|T|VE))?",Ba=fg+"?",La="["+ag+"]?",gg="(?:"+dg+"(?:"+[hg,Ra,Pa].join("|")+")"+La+Ba+")*",yg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",mg="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",bg=La+Ba+gg,wg="(?:"+[lg,Ra,Pa].join("|")+")"+bg,vg=RegExp([Kt+"?"+Oa+"+"+Fa+"(?="+[Sa,Kt,"$"].join("|")+")",pg+"+"+Ca+"(?="+[Sa,Kt+Ia,"$"].join("|")+")",Kt+"?"+Ia+"+"+Fa,Kt+"+"+Ca,mg,yg,_a,wg].join("|"),"g");function Eg(e){return e.match(vg)||[]}function xg(e,t,r){return e=lr(e),t=t,t===void 0?Zp(e)?Eg(e):Yp(e):e.match(t)||[]}var Ag="['’]",Tg=RegExp(Ag,"g");function Sg(e){return function(t){return jp(xg(zp(t).replace(Tg,"")),e,"")}}var _g=Sg(function(e,t,r){return t=t.toLowerCase(),e+(r?Up(t):t)});const Og={complex:["tar.bz2","tar.gz","tar.xz"]},Un=e=>e.replace(/[^A-Za-z0-9\-_]/g,""),Ua=(e,t)=>!e||typeof e!="string"?"":e.indexOf("!")>=0?e.split("!")[t]:"",Ng=e=>Ua(e,0),ja=e=>Ua(e,1),ka=e=>{const t=e.name;if(e.type==="directory"||e.isFolder)return"";const r=t.split(".");if(r.length>2)for(let n=0;n<r.length;n++){const o=r.slice(n,r.length).join(".");if(Og.complex.includes(o))return o}return r.length<2?"":r[r.length-1]},Mr=e=>{if(!e)return e;const t={};return Object.keys(e).forEach(r=>{t[_g(r)]=e[r]}),t};function zt(e,t=[]){const r=e.props[se.Name]?.toString()||gn.basename(e.filename),n=e.props[se.FileId],o=e.type==="directory";let i;e.filename.startsWith("/files")||e.filename.startsWith("/space")?i=e.filename.split("/").slice(3).join("/"):i=e.filename,i.startsWith("/")||(i=`/${i}`);const a=ka({...e,name:r}),u=e.props[se.LockDiscovery];let c,l,s;u&&(c=u[se.ActiveLock],l=c[se.LockOwner],s=c[se.LockTime]);let f=[];e.props[se.ShareTypes]&&(f=e.props[se.ShareTypes]["share-type"],Array.isArray(f)||(f=[f]));const h={};for(const m of t||[]){const E=m.split(":").pop();e.props[E]&&(h[m]=e.props[E])}const x={id:n,fileId:n,storageId:Ng(n),parentFolderId:e.props[se.FileParent],mimeType:e.props[se.MimeType],name:r,extension:o?"":a,path:i,webDavPath:e.filename,type:o?"folder":e.type,isFolder:o,locked:!!c,lockOwner:l,lockTime:s,processing:e.processing||!1,mdate:e.props[se.LastModifiedDate],size:o?e.props[se.ContentSize]?.toString()||"0":e.props[se.ContentLength]?.toString()||"0",permissions:e.props[se.Permissions]||"",starred:e.props[se.IsFavorite]!==0,etag:e.props[se.ETag],shareTypes:f,privateLink:e.props[se.PrivateLink],downloadURL:e.props[se.DownloadURL],remoteItemId:e.props[se.RemoteItemId],remoteItemPath:e.props[se.ShareRoot],owner:{id:e.props[se.OwnerId],displayName:e.props[se.OwnerDisplayName]},tags:(e.props[se.Tags]||"").toString().split(",").filter(Boolean),audio:Mr(e.props[se.Audio]),location:Mr(e.props[se.Location]),image:Mr(e.props[se.Image]),photo:Mr(e.props[se.Photo]),extraProps:h,hasPreview:()=>e.props[se.HasPreview]===1,canUpload:function(){return this.permissions.indexOf(ct.FolderCreateable)>=0},canDownload:function(){return this.permissions.indexOf(ct.SecureView)===-1},canBeDeleted:function(){return this.permissions.indexOf(ct.Deletable)>=0},canRename:function(){return this.permissions.indexOf(ct.Renameable)>=0},canShare:function({ability:m}){return m.can("create-all","Share")&&this.permissions.indexOf(ct.Shareable)>=0},canCreate:function(){return this.permissions.indexOf(ct.FolderCreateable)>=0},canEditTags:function(){return this.permissions.indexOf(ct.Updateable)>=0||this.permissions.indexOf(ct.FileUpdateable)>=0},isMounted:function(){return this.permissions.indexOf(ct.Mounted)>=0},isReceivedShare:function(){return this.permissions.indexOf(ct.Shared)>=0},isShareRoot(){return e.props[se.ShareRoot]?e.filename.split("/").length===3:!1},canDeny:function(){return this.permissions.indexOf(ct.Deny)>=0},getDomSelector:()=>Un(n)};return Object.defineProperty(x,"nodeId",{get(){return ja(this.id)}}),x}function Rg(e){const t=e.type==="directory",r=e.props[se.TrashbinOriginalFilename]?.toString(),n=ka({name:r,type:e.type}),o=ps.basename(e.filename);return{type:t?"folder":e.type,isFolder:t,ddate:e.props[se.TrashbinDeletedDate],name:ps.basename(r),extension:n,path:Ee(e.props[se.TrashbinOriginalLocation],{leadingSlash:!0}),id:o,parentFolderId:e.props[se.FileParent],webDavPath:"",canUpload:()=>!1,canDownload:()=>!1,canBeDeleted:()=>!0,canBeRestored:function(){return!0},canRename:()=>!1,canShare:()=>!1,canCreate:()=>!1,isMounted:()=>!1,isReceivedShare:()=>!1,getDomSelector:()=>Un(o)}}var nt=(e=>(e.createUpload="libre.graph/driveItem/upload/create",e.createPermissions="libre.graph/driveItem/permissions/create",e.createChildren="libre.graph/driveItem/children/create",e.readBasic="libre.graph/driveItem/basic/read",e.readPath="libre.graph/driveItem/path/read",e.readQuota="libre.graph/driveItem/quota/read",e.readContent="libre.graph/driveItem/content/read",e.readChildren="libre.graph/driveItem/children/read",e.readDeleted="libre.graph/driveItem/deleted/read",e.readPermissions="libre.graph/driveItem/permissions/read",e.readVersions="libre.graph/driveItem/versions/read",e.updatePath="libre.graph/driveItem/path/update",e.updateDeleted="libre.graph/driveItem/deleted/update",e.updatePermissions="libre.graph/driveItem/permissions/update",e.updateVersions="libre.graph/driveItem/versions/update",e.deleteStandard="libre.graph/driveItem/standard/delete",e.deleteDeleted="libre.graph/driveItem/deleted/delete",e.deletePermissions="libre.graph/driveItem/permissions/delete",e))(nt||{});const jn=e=>e?.driveType==="personal",kn=e=>e?.driveType==="public";function Pg(e,t){return Ee("spaces",e,t,{leadingSlash:!0})}function Dn(e,t=""){return Ee("spaces","trash-bin",e,t,{leadingSlash:!0})}function Ig(e){const t=e.publicLinkPassword,r=e.props?.[se.FileId],n=e.props?.[se.PublicLinkItemType],o=e.props?.[se.PublicLinkPermission],i=e.props?.[se.PublicLinkExpiration],a=e.props?.[se.PublicLinkShareDate],u=e.props?.[se.PublicLinkShareOwner],c=e.publicLinkType;let l,s;return c==="ocm"?(l=`ocm/${e.id}`,s=Hh(e.id)):(l=`public/${e.id}`,s=qh(e.id)),Object.assign(Fg({...e,driveType:"public",driveAlias:l,webDavPath:s}),{...r&&{fileId:r},...t&&{publicLinkPassword:t},...n&&{publicLinkItemType:n},...o&&{publicLinkPermission:parseInt(o)},...i&&{publicLinkExpiration:i},...a&&{publicLinkShareDate:a},...u&&{publicLinkShareOwner:u},publicLinkType:c})}function Fg(e){let t,r;e.special&&(t=e.special.find(l=>l.specialFolder.name==="image"),r=e.special.find(l=>l.specialFolder.name==="readme"),t&&(t.webDavUrl=decodeURI(t.webDavUrl)),r&&(r.webDavUrl=decodeURI(r.webDavUrl)));const n=e.root?.deleted?.state==="trashed",o=Ee(e.webDavPath||Pg(e.id),{leadingSlash:!0}),i=Ee(e.serverUrl,"remote.php/dav",o),a=Ee(e.webDavTrashPath||Dn(e.id),{leadingSlash:!0}),u=Ee(e.serverUrl,"remote.php/dav",a),c={id:e.id,fileId:e.id,storageId:e.id,mimeType:"",name:e.name,description:e.description,extension:"",path:"/",webDavPath:o,webDavTrashPath:a,driveAlias:e.driveAlias,driveType:e.driveType,type:"space",isFolder:!0,mdate:e.lastModifiedDateTime,size:e.quota?.used||0,tags:[],permissions:"",starred:!1,etag:"",shareTypes:[],privateLink:e.webUrl,downloadURL:"",owner:e.owner?.user,disabled:n,root:e.root,spaceQuota:e.quota,spaceImageData:t,spaceReadmeData:r,hasTrashedItems:e["@libre.graph.hasTrashedItems"]||!1,graphPermissions:void 0,canUpload:function({user:l}={}){return jn(this)&&this.isOwner(l)?!0:this.graphPermissions?.includes(nt.createUpload)},canDownload:function(){return!0},canBeDeleted:function({ability:l}={}){return this.disabled?l?.can("delete-all","Drive")?!0:this.graphPermissions?.includes(nt.deletePermissions):!1},canRename:function({ability:l}={}){return l?.can("update-all","Drive")?!0:this.graphPermissions?.includes(nt.deletePermissions)},canEditDescription:function({ability:l}={}){return l?.can("update-all","Drive")?!0:this.graphPermissions?.includes(nt.deletePermissions)},canRestore:function({ability:l}={}){return this.disabled?l?.can("update-all","Drive")?!0:this.graphPermissions?.includes(nt.deletePermissions):!1},canDisable:function({ability:l}={}){return this.disabled?!1:l?.can("delete-all","Drive")?!0:this.graphPermissions?.includes(nt.deletePermissions)},canShare:function(){return this.graphPermissions?.includes(nt.createPermissions)},canEditImage:function(){return this.disabled?!1:this.graphPermissions?.includes(nt.deletePermissions)},canEditReadme:function(){return this.disabled?!1:this.graphPermissions?.includes(nt.deletePermissions)},canRestoreFromTrashbin:function(){return this.graphPermissions?.includes(nt.updateDeleted)},canDeleteFromTrashBin:function({user:l}={}){return jn(this)&&this.isOwner(l)?!0:this.graphPermissions?.includes(nt.deletePermissions)},canListVersions:function({user:l}={}){return jn(this)&&this.isOwner(l)?!0:this.graphPermissions?.includes(nt.readVersions)},canCreate:function(){return!0},canEditTags:function(){return!1},isMounted:function(){return!0},isReceivedShare:function(){return!1},isShareRoot:function(){return["share","mountpoint","public"].includes(e.driveType)},canDeny:()=>!1,getDomSelector:()=>Un(e.id),getDriveAliasAndItem({path:l}){return Ee(this.driveAlias,l,{leadingSlash:!1})},getWebDavUrl({path:l}){return Ee(i,l)},getWebDavTrashUrl({path:l}){return Ee(u,l)},isOwner(l){return l?.id===this.owner?.id}};return Object.defineProperty(c,"nodeId",{get(){return ja(this.id)}}),c}const Cg=(e,t)=>{const r=new URL(e);r.pathname=[...r.pathname.split("/"),"cloud","capabilities"].filter(Boolean).join("/"),r.searchParams.append("format","json");const n=r.href;return{async getCapabilities(){const o=await t.get(n);return up(o,"data.ocs.data",{capabilities:null,version:null})}}};var Mn={},$r={exports:{}},Da;function $n(){if(Da)return $r.exports;Da=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(v,T,P){return Function.prototype.apply.call(v,T,P)},r;e&&typeof e.ownKeys=="function"?r=e.ownKeys:Object.getOwnPropertySymbols?r=function(v){return Object.getOwnPropertyNames(v).concat(Object.getOwnPropertySymbols(v))}:r=function(v){return Object.getOwnPropertyNames(v)};function n(g){console&&console.warn&&console.warn(g)}var o=Number.isNaN||function(v){return v!==v};function i(){i.init.call(this)}$r.exports=i,$r.exports.once=y,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function u(g){if(typeof g!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof g)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(g){if(typeof g!="number"||g<0||o(g))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+g+".");a=g}}),i.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(v){if(typeof v!="number"||v<0||o(v))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+v+".");return this._maxListeners=v,this};function c(g){return g._maxListeners===void 0?i.defaultMaxListeners:g._maxListeners}i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(v){for(var T=[],P=1;P<arguments.length;P++)T.push(arguments[P]);var I=v==="error",O=this._events;if(O!==void 0)I=I&&O.error===void 0;else if(!I)return!1;if(I){var j;if(T.length>0&&(j=T[0]),j instanceof Error)throw j;var K=new Error("Unhandled error."+(j?" ("+j.message+")":""));throw K.context=j,K}var L=O[v];if(L===void 0)return!1;if(typeof L=="function")t(L,this,T);else for(var k=L.length,re=m(L,k),P=0;P<k;++P)t(re[P],this,T);return!0};function l(g,v,T,P){var I,O,j;if(u(T),O=g._events,O===void 0?(O=g._events=Object.create(null),g._eventsCount=0):(O.newListener!==void 0&&(g.emit("newListener",v,T.listener?T.listener:T),O=g._events),j=O[v]),j===void 0)j=O[v]=T,++g._eventsCount;else if(typeof j=="function"?j=O[v]=P?[T,j]:[j,T]:P?j.unshift(T):j.push(T),I=c(g),I>0&&j.length>I&&!j.warned){j.warned=!0;var K=new Error("Possible EventEmitter memory leak detected. "+j.length+" "+String(v)+" listeners added. Use emitter.setMaxListeners() to increase limit");K.name="MaxListenersExceededWarning",K.emitter=g,K.type=v,K.count=j.length,n(K)}return g}i.prototype.addListener=function(v,T){return l(this,v,T,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(v,T){return l(this,v,T,!0)};function s(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(g,v,T){var P={fired:!1,wrapFn:void 0,target:g,type:v,listener:T},I=s.bind(P);return I.listener=T,P.wrapFn=I,I}i.prototype.once=function(v,T){return u(T),this.on(v,f(this,v,T)),this},i.prototype.prependOnceListener=function(v,T){return u(T),this.prependListener(v,f(this,v,T)),this},i.prototype.removeListener=function(v,T){var P,I,O,j,K;if(u(T),I=this._events,I===void 0)return this;if(P=I[v],P===void 0)return this;if(P===T||P.listener===T)--this._eventsCount===0?this._events=Object.create(null):(delete I[v],I.removeListener&&this.emit("removeListener",v,P.listener||T));else if(typeof P!="function"){for(O=-1,j=P.length-1;j>=0;j--)if(P[j]===T||P[j].listener===T){K=P[j].listener,O=j;break}if(O<0)return this;O===0?P.shift():E(P,O),P.length===1&&(I[v]=P[0]),I.removeListener!==void 0&&this.emit("removeListener",v,K||T)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(v){var T,P,I;if(P=this._events,P===void 0)return this;if(P.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):P[v]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete P[v]),this;if(arguments.length===0){var O=Object.keys(P),j;for(I=0;I<O.length;++I)j=O[I],j!=="removeListener"&&this.removeAllListeners(j);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(T=P[v],typeof T=="function")this.removeListener(v,T);else if(T!==void 0)for(I=T.length-1;I>=0;I--)this.removeListener(v,T[I]);return this};function h(g,v,T){var P=g._events;if(P===void 0)return[];var I=P[v];return I===void 0?[]:typeof I=="function"?T?[I.listener||I]:[I]:T?A(I):m(I,I.length)}i.prototype.listeners=function(v){return h(this,v,!0)},i.prototype.rawListeners=function(v){return h(this,v,!1)},i.listenerCount=function(g,v){return typeof g.listenerCount=="function"?g.listenerCount(v):x.call(g,v)},i.prototype.listenerCount=x;function x(g){var v=this._events;if(v!==void 0){var T=v[g];if(typeof T=="function")return 1;if(T!==void 0)return T.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]};function m(g,v){for(var T=new Array(v),P=0;P<v;++P)T[P]=g[P];return T}function E(g,v){for(;v+1<g.length;v++)g[v]=g[v+1];g.pop()}function A(g){for(var v=new Array(g.length),T=0;T<v.length;++T)v[T]=g[T].listener||g[T];return v}function y(g,v){return new Promise(function(T,P){function I(j){g.removeListener(v,O),P(j)}function O(){typeof g.removeListener=="function"&&g.removeListener("error",I),T([].slice.call(arguments))}d(g,v,O,{once:!0}),v!=="error"&&p(g,I,{once:!0})})}function p(g,v,T){typeof g.on=="function"&&d(g,"error",v,T)}function d(g,v,T,P){if(typeof g.on=="function")P.once?g.once(v,T):g.on(v,T);else if(typeof g.addEventListener=="function")g.addEventListener(v,function I(O){P.once&&g.removeEventListener(v,I),T(O)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof g)}return $r.exports}var qr={exports:{}},Ma;function jt(){return Ma||(Ma=1,typeof Object.create=="function"?qr.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:qr.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),qr.exports}var qn,$a;function qa(){return $a||($a=1,qn=$n().EventEmitter),qn}var Hn={},Ha;function Hr(){return Ha||(Ha=1,(function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var t={},r={};r.byteLength=s,r.toByteArray=h,r.fromByteArray=E;for(var n=[],o=[],i=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,c=a.length;u<c;++u)n[u]=a[u],o[a.charCodeAt(u)]=u;o[45]=62,o[95]=63;function l(p){var d=p.length;if(d%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=p.indexOf("=");g===-1&&(g=d);var v=g===d?0:4-g%4;return[g,v]}function s(p){var d=l(p),g=d[0],v=d[1];return(g+v)*3/4-v}function f(p,d,g){return(d+g)*3/4-g}function h(p){var d,g=l(p),v=g[0],T=g[1],P=new i(f(p,v,T)),I=0,O=T>0?v-4:v,j;for(j=0;j<O;j+=4)d=o[p.charCodeAt(j)]<<18|o[p.charCodeAt(j+1)]<<12|o[p.charCodeAt(j+2)]<<6|o[p.charCodeAt(j+3)],P[I++]=d>>16&255,P[I++]=d>>8&255,P[I++]=d&255;return T===2&&(d=o[p.charCodeAt(j)]<<2|o[p.charCodeAt(j+1)]>>4,P[I++]=d&255),T===1&&(d=o[p.charCodeAt(j)]<<10|o[p.charCodeAt(j+1)]<<4|o[p.charCodeAt(j+2)]>>2,P[I++]=d>>8&255,P[I++]=d&255),P}function x(p){return n[p>>18&63]+n[p>>12&63]+n[p>>6&63]+n[p&63]}function m(p,d,g){for(var v,T=[],P=d;P<g;P+=3)v=(p[P]<<16&16711680)+(p[P+1]<<8&65280)+(p[P+2]&255),T.push(x(v));return T.join("")}function E(p){for(var d,g=p.length,v=g%3,T=[],P=16383,I=0,O=g-v;I<O;I+=P)T.push(m(p,I,I+P>O?O:I+P));return v===1?(d=p[g-1],T.push(n[d>>2]+n[d<<4&63]+"==")):v===2&&(d=(p[g-2]<<8)+p[g-1],T.push(n[d>>10]+n[d>>4&63]+n[d<<2&63]+"=")),T.join("")}var A={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */A.read=function(p,d,g,v,T){var P,I,O=T*8-v-1,j=(1<<O)-1,K=j>>1,L=-7,k=g?T-1:0,re=g?-1:1,ee=p[d+k];for(k+=re,P=ee&(1<<-L)-1,ee>>=-L,L+=O;L>0;P=P*256+p[d+k],k+=re,L-=8);for(I=P&(1<<-L)-1,P>>=-L,L+=v;L>0;I=I*256+p[d+k],k+=re,L-=8);if(P===0)P=1-K;else{if(P===j)return I?NaN:(ee?-1:1)*(1/0);I=I+Math.pow(2,v),P=P-K}return(ee?-1:1)*I*Math.pow(2,P-v)},A.write=function(p,d,g,v,T,P){var I,O,j,K=P*8-T-1,L=(1<<K)-1,k=L>>1,re=T===23?Math.pow(2,-24)-Math.pow(2,-77):0,ee=v?0:P-1,ue=v?1:-1,le=d<0||d===0&&1/d<0?1:0;for(d=Math.abs(d),isNaN(d)||d===1/0?(O=isNaN(d)?1:0,I=L):(I=Math.floor(Math.log(d)/Math.LN2),d*(j=Math.pow(2,-I))<1&&(I--,j*=2),I+k>=1?d+=re/j:d+=re*Math.pow(2,1-k),d*j>=2&&(I++,j/=2),I+k>=L?(O=0,I=L):I+k>=1?(O=(d*j-1)*Math.pow(2,T),I=I+k):(O=d*Math.pow(2,k-1)*Math.pow(2,T),I=0));T>=8;p[g+ee]=O&255,ee+=ue,O/=256,T-=8);for(I=I<<T|O,K+=T;K>0;p[g+ee]=I&255,ee+=ue,I/=256,K-=8);p[g+ee-ue]|=le*128};/*!
12
- * The buffer module from node.js, for the browser.
13
- *
14
- * @author Feross Aboukhadijeh <https://feross.org>
15
- * @license MIT
16
- */(function(p){const d=r,g=A,v=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;p.Buffer=L,p.SlowBuffer=Z,p.INSPECT_MAX_BYTES=50;const T=2147483647;p.kMaxLength=T;const{Uint8Array:P,ArrayBuffer:I,SharedArrayBuffer:O}=globalThis;L.TYPED_ARRAY_SUPPORT=j(),!L.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function j(){try{const C=new P(1),w={foo:function(){return 42}};return Object.setPrototypeOf(w,P.prototype),Object.setPrototypeOf(C,w),C.foo()===42}catch{return!1}}Object.defineProperty(L.prototype,"parent",{enumerable:!0,get:function(){if(L.isBuffer(this))return this.buffer}}),Object.defineProperty(L.prototype,"offset",{enumerable:!0,get:function(){if(L.isBuffer(this))return this.byteOffset}});function K(C){if(C>T)throw new RangeError('The value "'+C+'" is invalid for option "size"');const w=new P(C);return Object.setPrototypeOf(w,L.prototype),w}function L(C,w,_){if(typeof C=="number"){if(typeof w=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ue(C)}return k(C,w,_)}L.poolSize=8192;function k(C,w,_){if(typeof C=="string")return le(C,w);if(I.isView(C))return fe(C);if(C==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof C);if(yt(C,I)||C&&yt(C.buffer,I)||typeof O<"u"&&(yt(C,O)||C&&yt(C.buffer,O)))return be(C,w,_);if(typeof C=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const M=C.valueOf&&C.valueOf();if(M!=null&&M!==C)return L.from(M,w,_);const W=pe(C);if(W)return W;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof C[Symbol.toPrimitive]=="function")return L.from(C[Symbol.toPrimitive]("string"),w,_);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof C)}L.from=function(C,w,_){return k(C,w,_)},Object.setPrototypeOf(L.prototype,P.prototype),Object.setPrototypeOf(L,P);function re(C){if(typeof C!="number")throw new TypeError('"size" argument must be of type number');if(C<0)throw new RangeError('The value "'+C+'" is invalid for option "size"')}function ee(C,w,_){return re(C),C<=0?K(C):w!==void 0?typeof _=="string"?K(C).fill(w,_):K(C).fill(w):K(C)}L.alloc=function(C,w,_){return ee(C,w,_)};function ue(C){return re(C),K(C<0?0:G(C)|0)}L.allocUnsafe=function(C){return ue(C)},L.allocUnsafeSlow=function(C){return ue(C)};function le(C,w){if((typeof w!="string"||w==="")&&(w="utf8"),!L.isEncoding(w))throw new TypeError("Unknown encoding: "+w);const _=Q(C,w)|0;let M=K(_);const W=M.write(C,w);return W!==_&&(M=M.slice(0,W)),M}function de(C){const w=C.length<0?0:G(C.length)|0,_=K(w);for(let M=0;M<w;M+=1)_[M]=C[M]&255;return _}function fe(C){if(yt(C,P)){const w=new P(C);return be(w.buffer,w.byteOffset,w.byteLength)}return de(C)}function be(C,w,_){if(w<0||C.byteLength<w)throw new RangeError('"offset" is outside of buffer bounds');if(C.byteLength<w+(_||0))throw new RangeError('"length" is outside of buffer bounds');let M;return w===void 0&&_===void 0?M=new P(C):_===void 0?M=new P(C,w):M=new P(C,w,_),Object.setPrototypeOf(M,L.prototype),M}function pe(C){if(L.isBuffer(C)){const w=G(C.length)|0,_=K(w);return _.length===0||C.copy(_,0,0,w),_}if(C.length!==void 0)return typeof C.length!="number"||is(C.length)?K(0):de(C);if(C.type==="Buffer"&&Array.isArray(C.data))return de(C.data)}function G(C){if(C>=T)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+T.toString(16)+" bytes");return C|0}function Z(C){return+C!=C&&(C=0),L.alloc(+C)}L.isBuffer=function(w){return w!=null&&w._isBuffer===!0&&w!==L.prototype},L.compare=function(w,_){if(yt(w,P)&&(w=L.from(w,w.offset,w.byteLength)),yt(_,P)&&(_=L.from(_,_.offset,_.byteLength)),!L.isBuffer(w)||!L.isBuffer(_))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(w===_)return 0;let M=w.length,W=_.length;for(let Y=0,ie=Math.min(M,W);Y<ie;++Y)if(w[Y]!==_[Y]){M=w[Y],W=_[Y];break}return M<W?-1:W<M?1:0},L.isEncoding=function(w){switch(String(w).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},L.concat=function(w,_){if(!Array.isArray(w))throw new TypeError('"list" argument must be an Array of Buffers');if(w.length===0)return L.alloc(0);let M;if(_===void 0)for(_=0,M=0;M<w.length;++M)_+=w[M].length;const W=L.allocUnsafe(_);let Y=0;for(M=0;M<w.length;++M){let ie=w[M];if(yt(ie,P))Y+ie.length>W.length?(L.isBuffer(ie)||(ie=L.from(ie)),ie.copy(W,Y)):P.prototype.set.call(W,ie,Y);else if(L.isBuffer(ie))ie.copy(W,Y);else throw new TypeError('"list" argument must be an Array of Buffers');Y+=ie.length}return W};function Q(C,w){if(L.isBuffer(C))return C.length;if(I.isView(C)||yt(C,I))return C.byteLength;if(typeof C!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof C);const _=C.length,M=arguments.length>2&&arguments[2]===!0;if(!M&&_===0)return 0;let W=!1;for(;;)switch(w){case"ascii":case"latin1":case"binary":return _;case"utf8":case"utf-8":return Re(C).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _*2;case"hex":return _>>>1;case"base64":return Ae(C).length;default:if(W)return M?-1:Re(C).length;w=(""+w).toLowerCase(),W=!0}}L.byteLength=Q;function ae(C,w,_){let M=!1;if((w===void 0||w<0)&&(w=0),w>this.length||((_===void 0||_>this.length)&&(_=this.length),_<=0)||(_>>>=0,w>>>=0,_<=w))return"";for(C||(C="utf8");;)switch(C){case"hex":return He(this,w,_);case"utf8":case"utf-8":return ge(this,w,_);case"ascii":return Oe(this,w,_);case"latin1":case"binary":return te(this,w,_);case"base64":return oe(this,w,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return De(this,w,_);default:if(M)throw new TypeError("Unknown encoding: "+C);C=(C+"").toLowerCase(),M=!0}}L.prototype._isBuffer=!0;function V(C,w,_){const M=C[w];C[w]=C[_],C[_]=M}L.prototype.swap16=function(){const w=this.length;if(w%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let _=0;_<w;_+=2)V(this,_,_+1);return this},L.prototype.swap32=function(){const w=this.length;if(w%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let _=0;_<w;_+=4)V(this,_,_+3),V(this,_+1,_+2);return this},L.prototype.swap64=function(){const w=this.length;if(w%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let _=0;_<w;_+=8)V(this,_,_+7),V(this,_+1,_+6),V(this,_+2,_+5),V(this,_+3,_+4);return this},L.prototype.toString=function(){const w=this.length;return w===0?"":arguments.length===0?ge(this,0,w):ae.apply(this,arguments)},L.prototype.toLocaleString=L.prototype.toString,L.prototype.equals=function(w){if(!L.isBuffer(w))throw new TypeError("Argument must be a Buffer");return this===w?!0:L.compare(this,w)===0},L.prototype.inspect=function(){let w="";const _=p.INSPECT_MAX_BYTES;return w=this.toString("hex",0,_).replace(/(.{2})/g,"$1 ").trim(),this.length>_&&(w+=" ... "),"<Buffer "+w+">"},v&&(L.prototype[v]=L.prototype.inspect),L.prototype.compare=function(w,_,M,W,Y){if(yt(w,P)&&(w=L.from(w,w.offset,w.byteLength)),!L.isBuffer(w))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof w);if(_===void 0&&(_=0),M===void 0&&(M=w?w.length:0),W===void 0&&(W=0),Y===void 0&&(Y=this.length),_<0||M>w.length||W<0||Y>this.length)throw new RangeError("out of range index");if(W>=Y&&_>=M)return 0;if(W>=Y)return-1;if(_>=M)return 1;if(_>>>=0,M>>>=0,W>>>=0,Y>>>=0,this===w)return 0;let ie=Y-W,ve=M-_;const Le=Math.min(ie,ve),Fe=this.slice(W,Y),Ue=w.slice(_,M);for(let _e=0;_e<Le;++_e)if(Fe[_e]!==Ue[_e]){ie=Fe[_e],ve=Ue[_e];break}return ie<ve?-1:ve<ie?1:0};function R(C,w,_,M,W){if(C.length===0)return-1;if(typeof _=="string"?(M=_,_=0):_>2147483647?_=2147483647:_<-2147483648&&(_=-2147483648),_=+_,is(_)&&(_=W?0:C.length-1),_<0&&(_=C.length+_),_>=C.length){if(W)return-1;_=C.length-1}else if(_<0)if(W)_=0;else return-1;if(typeof w=="string"&&(w=L.from(w,M)),L.isBuffer(w))return w.length===0?-1:N(C,w,_,M,W);if(typeof w=="number")return w=w&255,typeof P.prototype.indexOf=="function"?W?P.prototype.indexOf.call(C,w,_):P.prototype.lastIndexOf.call(C,w,_):N(C,[w],_,M,W);throw new TypeError("val must be string, number or Buffer")}function N(C,w,_,M,W){let Y=1,ie=C.length,ve=w.length;if(M!==void 0&&(M=String(M).toLowerCase(),M==="ucs2"||M==="ucs-2"||M==="utf16le"||M==="utf-16le")){if(C.length<2||w.length<2)return-1;Y=2,ie/=2,ve/=2,_/=2}function Le(Ue,_e){return Y===1?Ue[_e]:Ue.readUInt16BE(_e*Y)}let Fe;if(W){let Ue=-1;for(Fe=_;Fe<ie;Fe++)if(Le(C,Fe)===Le(w,Ue===-1?0:Fe-Ue)){if(Ue===-1&&(Ue=Fe),Fe-Ue+1===ve)return Ue*Y}else Ue!==-1&&(Fe-=Fe-Ue),Ue=-1}else for(_+ve>ie&&(_=ie-ve),Fe=_;Fe>=0;Fe--){let Ue=!0;for(let _e=0;_e<ve;_e++)if(Le(C,Fe+_e)!==Le(w,_e)){Ue=!1;break}if(Ue)return Fe}return-1}L.prototype.includes=function(w,_,M){return this.indexOf(w,_,M)!==-1},L.prototype.indexOf=function(w,_,M){return R(this,w,_,M,!0)},L.prototype.lastIndexOf=function(w,_,M){return R(this,w,_,M,!1)};function q(C,w,_,M){_=Number(_)||0;const W=C.length-_;M?(M=Number(M),M>W&&(M=W)):M=W;const Y=w.length;M>Y/2&&(M=Y/2);let ie;for(ie=0;ie<M;++ie){const ve=parseInt(w.substr(ie*2,2),16);if(is(ve))return ie;C[_+ie]=ve}return ie}function $(C,w,_,M){return ln(Re(w,C.length-_),C,_,M)}function B(C,w,_,M){return ln(Pe(w),C,_,M)}function U(C,w,_,M){return ln(Ae(w),C,_,M)}function J(C,w,_,M){return ln(Ie(w,C.length-_),C,_,M)}L.prototype.write=function(w,_,M,W){if(_===void 0)W="utf8",M=this.length,_=0;else if(M===void 0&&typeof _=="string")W=_,M=this.length,_=0;else if(isFinite(_))_=_>>>0,isFinite(M)?(M=M>>>0,W===void 0&&(W="utf8")):(W=M,M=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Y=this.length-_;if((M===void 0||M>Y)&&(M=Y),w.length>0&&(M<0||_<0)||_>this.length)throw new RangeError("Attempt to write outside buffer bounds");W||(W="utf8");let ie=!1;for(;;)switch(W){case"hex":return q(this,w,_,M);case"utf8":case"utf-8":return $(this,w,_,M);case"ascii":case"latin1":case"binary":return B(this,w,_,M);case"base64":return U(this,w,_,M);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,w,_,M);default:if(ie)throw new TypeError("Unknown encoding: "+W);W=(""+W).toLowerCase(),ie=!0}},L.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function oe(C,w,_){return w===0&&_===C.length?d.fromByteArray(C):d.fromByteArray(C.slice(w,_))}function ge(C,w,_){_=Math.min(C.length,_);const M=[];let W=w;for(;W<_;){const Y=C[W];let ie=null,ve=Y>239?4:Y>223?3:Y>191?2:1;if(W+ve<=_){let Le,Fe,Ue,_e;switch(ve){case 1:Y<128&&(ie=Y);break;case 2:Le=C[W+1],(Le&192)===128&&(_e=(Y&31)<<6|Le&63,_e>127&&(ie=_e));break;case 3:Le=C[W+1],Fe=C[W+2],(Le&192)===128&&(Fe&192)===128&&(_e=(Y&15)<<12|(Le&63)<<6|Fe&63,_e>2047&&(_e<55296||_e>57343)&&(ie=_e));break;case 4:Le=C[W+1],Fe=C[W+2],Ue=C[W+3],(Le&192)===128&&(Fe&192)===128&&(Ue&192)===128&&(_e=(Y&15)<<18|(Le&63)<<12|(Fe&63)<<6|Ue&63,_e>65535&&_e<1114112&&(ie=_e))}}ie===null?(ie=65533,ve=1):ie>65535&&(ie-=65536,M.push(ie>>>10&1023|55296),ie=56320|ie&1023),M.push(ie),W+=ve}return he(M)}const ce=4096;function he(C){const w=C.length;if(w<=ce)return String.fromCharCode.apply(String,C);let _="",M=0;for(;M<w;)_+=String.fromCharCode.apply(String,C.slice(M,M+=ce));return _}function Oe(C,w,_){let M="";_=Math.min(C.length,_);for(let W=w;W<_;++W)M+=String.fromCharCode(C[W]&127);return M}function te(C,w,_){let M="";_=Math.min(C.length,_);for(let W=w;W<_;++W)M+=String.fromCharCode(C[W]);return M}function He(C,w,_){const M=C.length;(!w||w<0)&&(w=0),(!_||_<0||_>M)&&(_=M);let W="";for(let Y=w;Y<_;++Y)W+=sb[C[Y]];return W}function De(C,w,_){const M=C.slice(w,_);let W="";for(let Y=0;Y<M.length-1;Y+=2)W+=String.fromCharCode(M[Y]+M[Y+1]*256);return W}L.prototype.slice=function(w,_){const M=this.length;w=~~w,_=_===void 0?M:~~_,w<0?(w+=M,w<0&&(w=0)):w>M&&(w=M),_<0?(_+=M,_<0&&(_=0)):_>M&&(_=M),_<w&&(_=w);const W=this.subarray(w,_);return Object.setPrototypeOf(W,L.prototype),W};function xe(C,w,_){if(C%1!==0||C<0)throw new RangeError("offset is not uint");if(C+w>_)throw new RangeError("Trying to access beyond buffer length")}L.prototype.readUintLE=L.prototype.readUIntLE=function(w,_,M){w=w>>>0,_=_>>>0,M||xe(w,_,this.length);let W=this[w],Y=1,ie=0;for(;++ie<_&&(Y*=256);)W+=this[w+ie]*Y;return W},L.prototype.readUintBE=L.prototype.readUIntBE=function(w,_,M){w=w>>>0,_=_>>>0,M||xe(w,_,this.length);let W=this[w+--_],Y=1;for(;_>0&&(Y*=256);)W+=this[w+--_]*Y;return W},L.prototype.readUint8=L.prototype.readUInt8=function(w,_){return w=w>>>0,_||xe(w,1,this.length),this[w]},L.prototype.readUint16LE=L.prototype.readUInt16LE=function(w,_){return w=w>>>0,_||xe(w,2,this.length),this[w]|this[w+1]<<8},L.prototype.readUint16BE=L.prototype.readUInt16BE=function(w,_){return w=w>>>0,_||xe(w,2,this.length),this[w]<<8|this[w+1]},L.prototype.readUint32LE=L.prototype.readUInt32LE=function(w,_){return w=w>>>0,_||xe(w,4,this.length),(this[w]|this[w+1]<<8|this[w+2]<<16)+this[w+3]*16777216},L.prototype.readUint32BE=L.prototype.readUInt32BE=function(w,_){return w=w>>>0,_||xe(w,4,this.length),this[w]*16777216+(this[w+1]<<16|this[w+2]<<8|this[w+3])},L.prototype.readBigUInt64LE=Rt(function(w){w=w>>>0,H(w,"offset");const _=this[w],M=this[w+7];(_===void 0||M===void 0)&&z(w,this.length-8);const W=_+this[++w]*2**8+this[++w]*2**16+this[++w]*2**24,Y=this[++w]+this[++w]*2**8+this[++w]*2**16+M*2**24;return BigInt(W)+(BigInt(Y)<<BigInt(32))}),L.prototype.readBigUInt64BE=Rt(function(w){w=w>>>0,H(w,"offset");const _=this[w],M=this[w+7];(_===void 0||M===void 0)&&z(w,this.length-8);const W=_*2**24+this[++w]*2**16+this[++w]*2**8+this[++w],Y=this[++w]*2**24+this[++w]*2**16+this[++w]*2**8+M;return(BigInt(W)<<BigInt(32))+BigInt(Y)}),L.prototype.readIntLE=function(w,_,M){w=w>>>0,_=_>>>0,M||xe(w,_,this.length);let W=this[w],Y=1,ie=0;for(;++ie<_&&(Y*=256);)W+=this[w+ie]*Y;return Y*=128,W>=Y&&(W-=Math.pow(2,8*_)),W},L.prototype.readIntBE=function(w,_,M){w=w>>>0,_=_>>>0,M||xe(w,_,this.length);let W=_,Y=1,ie=this[w+--W];for(;W>0&&(Y*=256);)ie+=this[w+--W]*Y;return Y*=128,ie>=Y&&(ie-=Math.pow(2,8*_)),ie},L.prototype.readInt8=function(w,_){return w=w>>>0,_||xe(w,1,this.length),this[w]&128?(255-this[w]+1)*-1:this[w]},L.prototype.readInt16LE=function(w,_){w=w>>>0,_||xe(w,2,this.length);const M=this[w]|this[w+1]<<8;return M&32768?M|4294901760:M},L.prototype.readInt16BE=function(w,_){w=w>>>0,_||xe(w,2,this.length);const M=this[w+1]|this[w]<<8;return M&32768?M|4294901760:M},L.prototype.readInt32LE=function(w,_){return w=w>>>0,_||xe(w,4,this.length),this[w]|this[w+1]<<8|this[w+2]<<16|this[w+3]<<24},L.prototype.readInt32BE=function(w,_){return w=w>>>0,_||xe(w,4,this.length),this[w]<<24|this[w+1]<<16|this[w+2]<<8|this[w+3]},L.prototype.readBigInt64LE=Rt(function(w){w=w>>>0,H(w,"offset");const _=this[w],M=this[w+7];(_===void 0||M===void 0)&&z(w,this.length-8);const W=this[w+4]+this[w+5]*2**8+this[w+6]*2**16+(M<<24);return(BigInt(W)<<BigInt(32))+BigInt(_+this[++w]*2**8+this[++w]*2**16+this[++w]*2**24)}),L.prototype.readBigInt64BE=Rt(function(w){w=w>>>0,H(w,"offset");const _=this[w],M=this[w+7];(_===void 0||M===void 0)&&z(w,this.length-8);const W=(_<<24)+this[++w]*2**16+this[++w]*2**8+this[++w];return(BigInt(W)<<BigInt(32))+BigInt(this[++w]*2**24+this[++w]*2**16+this[++w]*2**8+M)}),L.prototype.readFloatLE=function(w,_){return w=w>>>0,_||xe(w,4,this.length),g.read(this,w,!0,23,4)},L.prototype.readFloatBE=function(w,_){return w=w>>>0,_||xe(w,4,this.length),g.read(this,w,!1,23,4)},L.prototype.readDoubleLE=function(w,_){return w=w>>>0,_||xe(w,8,this.length),g.read(this,w,!0,52,8)},L.prototype.readDoubleBE=function(w,_){return w=w>>>0,_||xe(w,8,this.length),g.read(this,w,!1,52,8)};function Ne(C,w,_,M,W,Y){if(!L.isBuffer(C))throw new TypeError('"buffer" argument must be a Buffer instance');if(w>W||w<Y)throw new RangeError('"value" argument is out of bounds');if(_+M>C.length)throw new RangeError("Index out of range")}L.prototype.writeUintLE=L.prototype.writeUIntLE=function(w,_,M,W){if(w=+w,_=_>>>0,M=M>>>0,!W){const ve=Math.pow(2,8*M)-1;Ne(this,w,_,M,ve,0)}let Y=1,ie=0;for(this[_]=w&255;++ie<M&&(Y*=256);)this[_+ie]=w/Y&255;return _+M},L.prototype.writeUintBE=L.prototype.writeUIntBE=function(w,_,M,W){if(w=+w,_=_>>>0,M=M>>>0,!W){const ve=Math.pow(2,8*M)-1;Ne(this,w,_,M,ve,0)}let Y=M-1,ie=1;for(this[_+Y]=w&255;--Y>=0&&(ie*=256);)this[_+Y]=w/ie&255;return _+M},L.prototype.writeUint8=L.prototype.writeUInt8=function(w,_,M){return w=+w,_=_>>>0,M||Ne(this,w,_,1,255,0),this[_]=w&255,_+1},L.prototype.writeUint16LE=L.prototype.writeUInt16LE=function(w,_,M){return w=+w,_=_>>>0,M||Ne(this,w,_,2,65535,0),this[_]=w&255,this[_+1]=w>>>8,_+2},L.prototype.writeUint16BE=L.prototype.writeUInt16BE=function(w,_,M){return w=+w,_=_>>>0,M||Ne(this,w,_,2,65535,0),this[_]=w>>>8,this[_+1]=w&255,_+2},L.prototype.writeUint32LE=L.prototype.writeUInt32LE=function(w,_,M){return w=+w,_=_>>>0,M||Ne(this,w,_,4,4294967295,0),this[_+3]=w>>>24,this[_+2]=w>>>16,this[_+1]=w>>>8,this[_]=w&255,_+4},L.prototype.writeUint32BE=L.prototype.writeUInt32BE=function(w,_,M){return w=+w,_=_>>>0,M||Ne(this,w,_,4,4294967295,0),this[_]=w>>>24,this[_+1]=w>>>16,this[_+2]=w>>>8,this[_+3]=w&255,_+4};function Ye(C,w,_,M,W){D(w,M,W,C,_,7);let Y=Number(w&BigInt(4294967295));C[_++]=Y,Y=Y>>8,C[_++]=Y,Y=Y>>8,C[_++]=Y,Y=Y>>8,C[_++]=Y;let ie=Number(w>>BigInt(32)&BigInt(4294967295));return C[_++]=ie,ie=ie>>8,C[_++]=ie,ie=ie>>8,C[_++]=ie,ie=ie>>8,C[_++]=ie,_}function Ge(C,w,_,M,W){D(w,M,W,C,_,7);let Y=Number(w&BigInt(4294967295));C[_+7]=Y,Y=Y>>8,C[_+6]=Y,Y=Y>>8,C[_+5]=Y,Y=Y>>8,C[_+4]=Y;let ie=Number(w>>BigInt(32)&BigInt(4294967295));return C[_+3]=ie,ie=ie>>8,C[_+2]=ie,ie=ie>>8,C[_+1]=ie,ie=ie>>8,C[_]=ie,_+8}L.prototype.writeBigUInt64LE=Rt(function(w,_=0){return Ye(this,w,_,BigInt(0),BigInt("0xffffffffffffffff"))}),L.prototype.writeBigUInt64BE=Rt(function(w,_=0){return Ge(this,w,_,BigInt(0),BigInt("0xffffffffffffffff"))}),L.prototype.writeIntLE=function(w,_,M,W){if(w=+w,_=_>>>0,!W){const Le=Math.pow(2,8*M-1);Ne(this,w,_,M,Le-1,-Le)}let Y=0,ie=1,ve=0;for(this[_]=w&255;++Y<M&&(ie*=256);)w<0&&ve===0&&this[_+Y-1]!==0&&(ve=1),this[_+Y]=(w/ie>>0)-ve&255;return _+M},L.prototype.writeIntBE=function(w,_,M,W){if(w=+w,_=_>>>0,!W){const Le=Math.pow(2,8*M-1);Ne(this,w,_,M,Le-1,-Le)}let Y=M-1,ie=1,ve=0;for(this[_+Y]=w&255;--Y>=0&&(ie*=256);)w<0&&ve===0&&this[_+Y+1]!==0&&(ve=1),this[_+Y]=(w/ie>>0)-ve&255;return _+M},L.prototype.writeInt8=function(w,_,M){return w=+w,_=_>>>0,M||Ne(this,w,_,1,127,-128),w<0&&(w=255+w+1),this[_]=w&255,_+1},L.prototype.writeInt16LE=function(w,_,M){return w=+w,_=_>>>0,M||Ne(this,w,_,2,32767,-32768),this[_]=w&255,this[_+1]=w>>>8,_+2},L.prototype.writeInt16BE=function(w,_,M){return w=+w,_=_>>>0,M||Ne(this,w,_,2,32767,-32768),this[_]=w>>>8,this[_+1]=w&255,_+2},L.prototype.writeInt32LE=function(w,_,M){return w=+w,_=_>>>0,M||Ne(this,w,_,4,2147483647,-2147483648),this[_]=w&255,this[_+1]=w>>>8,this[_+2]=w>>>16,this[_+3]=w>>>24,_+4},L.prototype.writeInt32BE=function(w,_,M){return w=+w,_=_>>>0,M||Ne(this,w,_,4,2147483647,-2147483648),w<0&&(w=4294967295+w+1),this[_]=w>>>24,this[_+1]=w>>>16,this[_+2]=w>>>8,this[_+3]=w&255,_+4},L.prototype.writeBigInt64LE=Rt(function(w,_=0){return Ye(this,w,_,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),L.prototype.writeBigInt64BE=Rt(function(w,_=0){return Ge(this,w,_,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ut(C,w,_,M,W,Y){if(_+M>C.length)throw new RangeError("Index out of range");if(_<0)throw new RangeError("Index out of range")}function ft(C,w,_,M,W){return w=+w,_=_>>>0,W||ut(C,w,_,4),g.write(C,w,_,M,23,4),_+4}L.prototype.writeFloatLE=function(w,_,M){return ft(this,w,_,!0,M)},L.prototype.writeFloatBE=function(w,_,M){return ft(this,w,_,!1,M)};function Ve(C,w,_,M,W){return w=+w,_=_>>>0,W||ut(C,w,_,8),g.write(C,w,_,M,52,8),_+8}L.prototype.writeDoubleLE=function(w,_,M){return Ve(this,w,_,!0,M)},L.prototype.writeDoubleBE=function(w,_,M){return Ve(this,w,_,!1,M)},L.prototype.copy=function(w,_,M,W){if(!L.isBuffer(w))throw new TypeError("argument should be a Buffer");if(M||(M=0),!W&&W!==0&&(W=this.length),_>=w.length&&(_=w.length),_||(_=0),W>0&&W<M&&(W=M),W===M||w.length===0||this.length===0)return 0;if(_<0)throw new RangeError("targetStart out of bounds");if(M<0||M>=this.length)throw new RangeError("Index out of range");if(W<0)throw new RangeError("sourceEnd out of bounds");W>this.length&&(W=this.length),w.length-_<W-M&&(W=w.length-_+M);const Y=W-M;return this===w&&typeof P.prototype.copyWithin=="function"?this.copyWithin(_,M,W):P.prototype.set.call(w,this.subarray(M,W),_),Y},L.prototype.fill=function(w,_,M,W){if(typeof w=="string"){if(typeof _=="string"?(W=_,_=0,M=this.length):typeof M=="string"&&(W=M,M=this.length),W!==void 0&&typeof W!="string")throw new TypeError("encoding must be a string");if(typeof W=="string"&&!L.isEncoding(W))throw new TypeError("Unknown encoding: "+W);if(w.length===1){const ie=w.charCodeAt(0);(W==="utf8"&&ie<128||W==="latin1")&&(w=ie)}}else typeof w=="number"?w=w&255:typeof w=="boolean"&&(w=Number(w));if(_<0||this.length<_||this.length<M)throw new RangeError("Out of range index");if(M<=_)return this;_=_>>>0,M=M===void 0?this.length:M>>>0,w||(w=0);let Y;if(typeof w=="number")for(Y=_;Y<M;++Y)this[Y]=w;else{const ie=L.isBuffer(w)?w:L.from(w,W),ve=ie.length;if(ve===0)throw new TypeError('The value "'+w+'" is invalid for argument "value"');for(Y=0;Y<M-_;++Y)this[Y+_]=ie[Y%ve]}return this};const Nt={};function F(C,w,_){Nt[C]=class extends _{constructor(){super(),Object.defineProperty(this,"message",{value:w.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${C}]`,this.stack,delete this.name}get code(){return C}set code(W){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:W,writable:!0})}toString(){return`${this.name} [${C}]: ${this.message}`}}}F("ERR_BUFFER_OUT_OF_BOUNDS",function(C){return C?`${C} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),F("ERR_INVALID_ARG_TYPE",function(C,w){return`The "${C}" argument must be of type number. Received type ${typeof w}`},TypeError),F("ERR_OUT_OF_RANGE",function(C,w,_){let M=`The value of "${C}" is out of range.`,W=_;return Number.isInteger(_)&&Math.abs(_)>2**32?W=b(String(_)):typeof _=="bigint"&&(W=String(_),(_>BigInt(2)**BigInt(32)||_<-(BigInt(2)**BigInt(32)))&&(W=b(W)),W+="n"),M+=` It must be ${w}. Received ${W}`,M},RangeError);function b(C){let w="",_=C.length;const M=C[0]==="-"?1:0;for(;_>=M+4;_-=3)w=`_${C.slice(_-3,_)}${w}`;return`${C.slice(0,_)}${w}`}function S(C,w,_){H(w,"offset"),(C[w]===void 0||C[w+_]===void 0)&&z(w,C.length-(_+1))}function D(C,w,_,M,W,Y){if(C>_||C<w){const ie=typeof w=="bigint"?"n":"";let ve;throw w===0||w===BigInt(0)?ve=`>= 0${ie} and < 2${ie} ** ${(Y+1)*8}${ie}`:ve=`>= -(2${ie} ** ${(Y+1)*8-1}${ie}) and < 2 ** ${(Y+1)*8-1}${ie}`,new Nt.ERR_OUT_OF_RANGE("value",ve,C)}S(M,W,Y)}function H(C,w){if(typeof C!="number")throw new Nt.ERR_INVALID_ARG_TYPE(w,"number",C)}function z(C,w,_){throw Math.floor(C)!==C?(H(C,_),new Nt.ERR_OUT_OF_RANGE("offset","an integer",C)):w<0?new Nt.ERR_BUFFER_OUT_OF_BOUNDS:new Nt.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${w}`,C)}const ne=/[^+/0-9A-Za-z-_]/g;function we(C){if(C=C.split("=")[0],C=C.trim().replace(ne,""),C.length<2)return"";for(;C.length%4!==0;)C=C+"=";return C}function Re(C,w){w=w||1/0;let _;const M=C.length;let W=null;const Y=[];for(let ie=0;ie<M;++ie){if(_=C.charCodeAt(ie),_>55295&&_<57344){if(!W){if(_>56319){(w-=3)>-1&&Y.push(239,191,189);continue}else if(ie+1===M){(w-=3)>-1&&Y.push(239,191,189);continue}W=_;continue}if(_<56320){(w-=3)>-1&&Y.push(239,191,189),W=_;continue}_=(W-55296<<10|_-56320)+65536}else W&&(w-=3)>-1&&Y.push(239,191,189);if(W=null,_<128){if((w-=1)<0)break;Y.push(_)}else if(_<2048){if((w-=2)<0)break;Y.push(_>>6|192,_&63|128)}else if(_<65536){if((w-=3)<0)break;Y.push(_>>12|224,_>>6&63|128,_&63|128)}else if(_<1114112){if((w-=4)<0)break;Y.push(_>>18|240,_>>12&63|128,_>>6&63|128,_&63|128)}else throw new Error("Invalid code point")}return Y}function Pe(C){const w=[];for(let _=0;_<C.length;++_)w.push(C.charCodeAt(_)&255);return w}function Ie(C,w){let _,M,W;const Y=[];for(let ie=0;ie<C.length&&!((w-=2)<0);++ie)_=C.charCodeAt(ie),M=_>>8,W=_%256,Y.push(W),Y.push(M);return Y}function Ae(C){return d.toByteArray(we(C))}function ln(C,w,_,M){let W;for(W=0;W<M&&!(W+_>=w.length||W>=C.length);++W)w[W+_]=C[W];return W}function yt(C,w){return C instanceof w||C!=null&&C.constructor!=null&&C.constructor.name!=null&&C.constructor.name===w.name}function is(C){return C!==C}const sb=(function(){const C="0123456789abcdef",w=new Array(256);for(let _=0;_<16;++_){const M=_*16;for(let W=0;W<16;++W)w[M+W]=C[_]+C[W]}return w})();function Rt(C){return typeof BigInt>"u"?ab:C}function ab(){throw new Error("BigInt not supported")}})(t);const y=t.Buffer;e.Blob=t.Blob,e.BlobOptions=t.BlobOptions,e.Buffer=t.Buffer,e.File=t.File,e.FileOptions=t.FileOptions,e.INSPECT_MAX_BYTES=t.INSPECT_MAX_BYTES,e.SlowBuffer=t.SlowBuffer,e.TranscodeEncoding=t.TranscodeEncoding,e.atob=t.atob,e.btoa=t.btoa,e.constants=t.constants,e.default=y,e.isAscii=t.isAscii,e.isUtf8=t.isUtf8,e.kMaxLength=t.kMaxLength,e.kStringMaxLength=t.kStringMaxLength,e.resolveObjectURL=t.resolveObjectURL,e.transcode=t.transcode})(Hn)),Hn}var Vn={},Wn={},Gn,Va;function Wa(){return Va||(Va=1,Gn=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(var i in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(t,r);if(u.value!==o||u.enumerable!==!0)return!1}return!0}),Gn}var Kn,Ga;function Vr(){if(Ga)return Kn;Ga=1;var e=Wa();return Kn=function(){return e()&&!!Symbol.toStringTag},Kn}var zn,Ka;function za(){return Ka||(Ka=1,zn=Object),zn}var Xn,Xa;function Bg(){return Xa||(Xa=1,Xn=Error),Xn}var Yn,Ya;function Lg(){return Ya||(Ya=1,Yn=EvalError),Yn}var Jn,Ja;function Ug(){return Ja||(Ja=1,Jn=RangeError),Jn}var Zn,Za;function jg(){return Za||(Za=1,Zn=ReferenceError),Zn}var Qn,Qa;function eu(){return Qa||(Qa=1,Qn=SyntaxError),Qn}var ei,tu;function cr(){return tu||(tu=1,ei=TypeError),ei}var ti,ru;function kg(){return ru||(ru=1,ti=URIError),ti}var ri,nu;function Dg(){return nu||(nu=1,ri=Math.abs),ri}var ni,iu;function Mg(){return iu||(iu=1,ni=Math.floor),ni}var ii,ou;function $g(){return ou||(ou=1,ii=Math.max),ii}var oi,su;function qg(){return su||(su=1,oi=Math.min),oi}var si,au;function Hg(){return au||(au=1,si=Math.pow),si}var ai,uu;function Vg(){return uu||(uu=1,ai=Math.round),ai}var ui,lu;function Wg(){return lu||(lu=1,ui=Number.isNaN||function(t){return t!==t}),ui}var li,cu;function Gg(){if(cu)return li;cu=1;var e=Wg();return li=function(r){return e(r)||r===0?r:r<0?-1:1},li}var ci,fu;function Kg(){return fu||(fu=1,ci=Object.getOwnPropertyDescriptor),ci}var fi,hu;function Xt(){if(hu)return fi;hu=1;var e=Kg();if(e)try{e([],"length")}catch{e=null}return fi=e,fi}var hi,du;function Wr(){if(du)return hi;du=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return hi=e,hi}var di,pu;function zg(){if(pu)return di;pu=1;var e=typeof Symbol<"u"&&Symbol,t=Wa();return di=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},di}var pi,gu;function yu(){return gu||(gu=1,pi=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),pi}var gi,mu;function bu(){if(mu)return gi;mu=1;var e=za();return gi=e.getPrototypeOf||null,gi}var yi,wu;function Xg(){if(wu)return yi;wu=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",o=function(c,l){for(var s=[],f=0;f<c.length;f+=1)s[f]=c[f];for(var h=0;h<l.length;h+=1)s[h+c.length]=l[h];return s},i=function(c,l){for(var s=[],f=l,h=0;f<c.length;f+=1,h+=1)s[h]=c[f];return s},a=function(u,c){for(var l="",s=0;s<u.length;s+=1)l+=u[s],s+1<u.length&&(l+=c);return l};return yi=function(c){var l=this;if(typeof l!="function"||t.apply(l)!==n)throw new TypeError(e+l);for(var s=i(arguments,1),f,h=function(){if(this instanceof f){var y=l.apply(this,o(s,arguments));return Object(y)===y?y:this}return l.apply(c,o(s,arguments))},x=r(0,l.length-s.length),m=[],E=0;E<x;E++)m[E]="$"+E;if(f=Function("binder","return function ("+a(m,",")+"){ return binder.apply(this,arguments); }")(h),l.prototype){var A=function(){};A.prototype=l.prototype,f.prototype=new A,A.prototype=null}return f},yi}var mi,vu;function fr(){if(vu)return mi;vu=1;var e=Xg();return mi=Function.prototype.bind||e,mi}var bi,Eu;function wi(){return Eu||(Eu=1,bi=Function.prototype.call),bi}var vi,xu;function Ei(){return xu||(xu=1,vi=Function.prototype.apply),vi}var xi,Au;function Yg(){return Au||(Au=1,xi=typeof Reflect<"u"&&Reflect&&Reflect.apply),xi}var Ai,Tu;function Su(){if(Tu)return Ai;Tu=1;var e=fr(),t=Ei(),r=wi(),n=Yg();return Ai=n||e.call(r,t),Ai}var Ti,_u;function Si(){if(_u)return Ti;_u=1;var e=fr(),t=cr(),r=wi(),n=Su();return Ti=function(i){if(i.length<1||typeof i[0]!="function")throw new t("a function is required");return n(e,r,i)},Ti}var _i,Ou;function Jg(){if(Ou)return _i;Ou=1;var e=Si(),t=Xt(),r;try{r=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var n=!!r&&t&&t(Object.prototype,"__proto__"),o=Object,i=o.getPrototypeOf;return _i=n&&typeof n.get=="function"?e([n.get]):typeof i=="function"?function(u){return i(u==null?u:o(u))}:!1,_i}var Oi,Nu;function Ni(){if(Nu)return Oi;Nu=1;var e=yu(),t=bu(),r=Jg();return Oi=e?function(o){return e(o)}:t?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return t(o)}:r?function(o){return r(o)}:null,Oi}var Ri,Ru;function Pu(){if(Ru)return Ri;Ru=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=fr();return Ri=r.call(e,t),Ri}var Pi,Iu;function Fu(){if(Iu)return Pi;Iu=1;var e,t=za(),r=Bg(),n=Lg(),o=Ug(),i=jg(),a=eu(),u=cr(),c=kg(),l=Dg(),s=Mg(),f=$g(),h=qg(),x=Hg(),m=Vg(),E=Gg(),A=Function,y=function(q){try{return A('"use strict"; return ('+q+").constructor;")()}catch{}},p=Xt(),d=Wr(),g=function(){throw new u},v=p?(function(){try{return arguments.callee,g}catch{try{return p(arguments,"callee").get}catch{return g}}})():g,T=zg()(),P=Ni(),I=bu(),O=yu(),j=Ei(),K=wi(),L={},k=typeof Uint8Array>"u"||!P?e:P(Uint8Array),re={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":T&&P?P([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":L,"%AsyncGenerator%":L,"%AsyncGeneratorFunction%":L,"%AsyncIteratorPrototype%":L,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":A,"%GeneratorFunction%":L,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":T&&P?P(P([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!T||!P?e:P(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":p,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":o,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!T||!P?e:P(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":T&&P?P(""[Symbol.iterator]()):e,"%Symbol%":T?Symbol:e,"%SyntaxError%":a,"%ThrowTypeError%":v,"%TypedArray%":k,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":c,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":K,"%Function.prototype.apply%":j,"%Object.defineProperty%":d,"%Object.getPrototypeOf%":I,"%Math.abs%":l,"%Math.floor%":s,"%Math.max%":f,"%Math.min%":h,"%Math.pow%":x,"%Math.round%":m,"%Math.sign%":E,"%Reflect.getPrototypeOf%":O};if(P)try{null.error}catch(q){var ee=P(P(q));re["%Error.prototype%"]=ee}var ue=function q($){var B;if($==="%AsyncFunction%")B=y("async function () {}");else if($==="%GeneratorFunction%")B=y("function* () {}");else if($==="%AsyncGeneratorFunction%")B=y("async function* () {}");else if($==="%AsyncGenerator%"){var U=q("%AsyncGeneratorFunction%");U&&(B=U.prototype)}else if($==="%AsyncIteratorPrototype%"){var J=q("%AsyncGenerator%");J&&P&&(B=P(J.prototype))}return re[$]=B,B},le={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},de=fr(),fe=Pu(),be=de.call(K,Array.prototype.concat),pe=de.call(j,Array.prototype.splice),G=de.call(K,String.prototype.replace),Z=de.call(K,String.prototype.slice),Q=de.call(K,RegExp.prototype.exec),ae=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,V=/\\(\\)?/g,R=function($){var B=Z($,0,1),U=Z($,-1);if(B==="%"&&U!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(U==="%"&&B!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var J=[];return G($,ae,function(oe,ge,ce,he){J[J.length]=ce?G(he,V,"$1"):ge||oe}),J},N=function($,B){var U=$,J;if(fe(le,U)&&(J=le[U],U="%"+J[0]+"%"),fe(re,U)){var oe=re[U];if(oe===L&&(oe=ue(U)),typeof oe>"u"&&!B)throw new u("intrinsic "+$+" exists, but is not available. Please file an issue!");return{alias:J,name:U,value:oe}}throw new a("intrinsic "+$+" does not exist!")};return Pi=function($,B){if(typeof $!="string"||$.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof B!="boolean")throw new u('"allowMissing" argument must be a boolean');if(Q(/^%?[^%]*%?$/,$)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var U=R($),J=U.length>0?U[0]:"",oe=N("%"+J+"%",B),ge=oe.name,ce=oe.value,he=!1,Oe=oe.alias;Oe&&(J=Oe[0],pe(U,be([0,1],Oe)));for(var te=1,He=!0;te<U.length;te+=1){var De=U[te],xe=Z(De,0,1),Ne=Z(De,-1);if((xe==='"'||xe==="'"||xe==="`"||Ne==='"'||Ne==="'"||Ne==="`")&&xe!==Ne)throw new a("property names with quotes must have matching quotes");if((De==="constructor"||!He)&&(he=!0),J+="."+De,ge="%"+J+"%",fe(re,ge))ce=re[ge];else if(ce!=null){if(!(De in ce)){if(!B)throw new u("base intrinsic for "+$+" exists, but the property is not available.");return}if(p&&te+1>=U.length){var Ye=p(ce,De);He=!!Ye,He&&"get"in Ye&&!("originalValue"in Ye.get)?ce=Ye.get:ce=ce[De]}else He=fe(ce,De),ce=ce[De];He&&!he&&(re[ge]=ce)}}return ce},Pi}var Ii,Cu;function hr(){if(Cu)return Ii;Cu=1;var e=Fu(),t=Si(),r=t([e("%String.prototype.indexOf%")]);return Ii=function(o,i){var a=e(o,!!i);return typeof a=="function"&&r(o,".prototype.")>-1?t([a]):a},Ii}var Fi,Bu;function Zg(){if(Bu)return Fi;Bu=1;var e=Vr()(),t=hr(),r=t("Object.prototype.toString"),n=function(u){return e&&u&&typeof u=="object"&&Symbol.toStringTag in u?!1:r(u)==="[object Arguments]"},o=function(u){return n(u)?!0:u!==null&&typeof u=="object"&&"length"in u&&typeof u.length=="number"&&u.length>=0&&r(u)!=="[object Array]"&&"callee"in u&&r(u.callee)==="[object Function]"},i=(function(){return n(arguments)})();return n.isLegacyArguments=o,Fi=i?n:o,Fi}var Ci,Lu;function Qg(){if(Lu)return Ci;Lu=1;var e=hr(),t=Vr()(),r=Pu(),n=Xt(),o;if(t){var i=e("RegExp.prototype.exec"),a={},u=function(){throw a},c={toString:u,valueOf:u};typeof Symbol.toPrimitive=="symbol"&&(c[Symbol.toPrimitive]=u),o=function(h){if(!h||typeof h!="object")return!1;var x=n(h,"lastIndex"),m=x&&r(x,"value");if(!m)return!1;try{i(h,c)}catch(E){return E===a}}}else{var l=e("Object.prototype.toString"),s="[object RegExp]";o=function(h){return!h||typeof h!="object"&&typeof h!="function"?!1:l(h)===s}}return Ci=o,Ci}var Bi,Uu;function e0(){if(Uu)return Bi;Uu=1;var e=hr(),t=Qg(),r=e("RegExp.prototype.exec"),n=cr();return Bi=function(i){if(!t(i))throw new n("`regex` must be a RegExp");return function(u){return r(i,u)!==null}},Bi}var Li,ju;function t0(){if(ju)return Li;ju=1;var e=hr(),t=e0(),r=t(/^\s*(?:function)?\*/),n=Vr()(),o=Ni(),i=e("Object.prototype.toString"),a=e("Function.prototype.toString"),u=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},c;return Li=function(s){if(typeof s!="function")return!1;if(r(a(s)))return!0;if(!n){var f=i(s);return f==="[object GeneratorFunction]"}if(!o)return!1;if(typeof c>"u"){var h=u();c=h?o(h):!1}return o(s)===c},Li}var Ui,ku;function r0(){if(ku)return Ui;ku=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,n;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw n}}),n={},t(function(){throw 42},null,r)}catch(p){p!==n&&(t=null)}else t=null;var o=/^\s*class\b/,i=function(d){try{var g=e.call(d);return o.test(g)}catch{return!1}},a=function(d){try{return i(d)?!1:(e.call(d),!0)}catch{return!1}},u=Object.prototype.toString,c="[object Object]",l="[object Function]",s="[object GeneratorFunction]",f="[object HTMLAllCollection]",h="[object HTML document.all class]",x="[object HTMLCollection]",m=typeof Symbol=="function"&&!!Symbol.toStringTag,E=!(0 in[,]),A=function(){return!1};if(typeof document=="object"){var y=document.all;u.call(y)===u.call(document.all)&&(A=function(d){if((E||!d)&&(typeof d>"u"||typeof d=="object"))try{var g=u.call(d);return(g===f||g===h||g===x||g===c)&&d("")==null}catch{}return!1})}return Ui=t?function(d){if(A(d))return!0;if(!d||typeof d!="function"&&typeof d!="object")return!1;try{t(d,null,r)}catch(g){if(g!==n)return!1}return!i(d)&&a(d)}:function(d){if(A(d))return!0;if(!d||typeof d!="function"&&typeof d!="object")return!1;if(m)return a(d);if(i(d))return!1;var g=u.call(d);return g!==l&&g!==s&&!/^\[object HTML/.test(g)?!1:a(d)},Ui}var ji,Du;function n0(){if(Du)return ji;Du=1;var e=r0(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=function(c,l,s){for(var f=0,h=c.length;f<h;f++)r.call(c,f)&&(s==null?l(c[f],f,c):l.call(s,c[f],f,c))},o=function(c,l,s){for(var f=0,h=c.length;f<h;f++)s==null?l(c.charAt(f),f,c):l.call(s,c.charAt(f),f,c)},i=function(c,l,s){for(var f in c)r.call(c,f)&&(s==null?l(c[f],f,c):l.call(s,c[f],f,c))};function a(u){return t.call(u)==="[object Array]"}return ji=function(c,l,s){if(!e(l))throw new TypeError("iterator must be a function");var f;arguments.length>=3&&(f=s),a(c)?n(c,l,f):typeof c=="string"?o(c,l,f):i(c,l,f)},ji}var ki,Mu;function i0(){return Mu||(Mu=1,ki=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),ki}var Di,$u;function o0(){if($u)return Di;$u=1;var e=i0(),t=typeof globalThis>"u"?St:globalThis;return Di=function(){for(var n=[],o=0;o<e.length;o++)typeof t[e[o]]=="function"&&(n[n.length]=e[o]);return n},Di}var Mi={exports:{}},$i,qu;function s0(){if(qu)return $i;qu=1;var e=Wr(),t=eu(),r=cr(),n=Xt();return $i=function(i,a,u){if(!i||typeof i!="object"&&typeof i!="function")throw new r("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var c=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,f=arguments.length>6?arguments[6]:!1,h=!!n&&n(i,a);if(e)e(i,a,{configurable:s===null&&h?h.configurable:!s,enumerable:c===null&&h?h.enumerable:!c,value:u,writable:l===null&&h?h.writable:!l});else if(f||!c&&!l&&!s)i[a]=u;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},$i}var qi,Hu;function a0(){if(Hu)return qi;Hu=1;var e=Wr(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},qi=t,qi}var Hi,Vu;function u0(){if(Vu)return Hi;Vu=1;var e=Fu(),t=s0(),r=a0()(),n=Xt(),o=cr(),i=e("%Math.floor%");return Hi=function(u,c){if(typeof u!="function")throw new o("`fn` is not a function");if(typeof c!="number"||c<0||c>4294967295||i(c)!==c)throw new o("`length` must be a positive 32-bit integer");var l=arguments.length>2&&!!arguments[2],s=!0,f=!0;if("length"in u&&n){var h=n(u,"length");h&&!h.configurable&&(s=!1),h&&!h.writable&&(f=!1)}return(s||f||!l)&&(r?t(u,"length",c,!0,!0):t(u,"length",c)),u},Hi}var Vi,Wu;function l0(){if(Wu)return Vi;Wu=1;var e=fr(),t=Ei(),r=Su();return Vi=function(){return r(e,t,arguments)},Vi}var Gu;function c0(){return Gu||(Gu=1,(function(e){var t=u0(),r=Wr(),n=Si(),o=l0();e.exports=function(a){var u=n(arguments),c=a.length-(arguments.length-1);return t(u,1+(c>0?c:0),!0)},r?r(e.exports,"apply",{value:o}):e.exports.apply=o})(Mi)),Mi.exports}var Wi,Ku;function zu(){if(Ku)return Wi;Ku=1;var e=n0(),t=o0(),r=c0(),n=hr(),o=Xt(),i=Ni(),a=n("Object.prototype.toString"),u=Vr()(),c=typeof globalThis>"u"?St:globalThis,l=t(),s=n("String.prototype.slice"),f=n("Array.prototype.indexOf",!0)||function(A,y){for(var p=0;p<A.length;p+=1)if(A[p]===y)return p;return-1},h={__proto__:null};u&&o&&i?e(l,function(E){var A=new c[E];if(Symbol.toStringTag in A&&i){var y=i(A),p=o(y,Symbol.toStringTag);if(!p&&y){var d=i(y);p=o(d,Symbol.toStringTag)}h["$"+E]=r(p.get)}}):e(l,function(E){var A=new c[E],y=A.slice||A.set;y&&(h["$"+E]=r(y))});var x=function(A){var y=!1;return e(h,function(p,d){if(!y)try{"$"+p(A)===d&&(y=s(d,1))}catch{}}),y},m=function(A){var y=!1;return e(h,function(p,d){if(!y)try{p(A),y=s(d,1)}catch{}}),y};return Wi=function(A){if(!A||typeof A!="object")return!1;if(!u){var y=s(a(A),8,-1);return f(l,y)>-1?y:y!=="Object"?!1:m(A)}return o?x(A):null},Wi}var Gi,Xu;function f0(){if(Xu)return Gi;Xu=1;var e=zu();return Gi=function(r){return!!e(r)},Gi}var Yu;function h0(){return Yu||(Yu=1,(function(e){var t=Zg(),r=t0(),n=zu(),o=f0();function i(te){return te.call.bind(te)}var a=typeof BigInt<"u",u=typeof Symbol<"u",c=i(Object.prototype.toString),l=i(Number.prototype.valueOf),s=i(String.prototype.valueOf),f=i(Boolean.prototype.valueOf);if(a)var h=i(BigInt.prototype.valueOf);if(u)var x=i(Symbol.prototype.valueOf);function m(te,He){if(typeof te!="object")return!1;try{return He(te),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=o;function E(te){return typeof Promise<"u"&&te instanceof Promise||te!==null&&typeof te=="object"&&typeof te.then=="function"&&typeof te.catch=="function"}e.isPromise=E;function A(te){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(te):o(te)||Z(te)}e.isArrayBufferView=A;function y(te){return n(te)==="Uint8Array"}e.isUint8Array=y;function p(te){return n(te)==="Uint8ClampedArray"}e.isUint8ClampedArray=p;function d(te){return n(te)==="Uint16Array"}e.isUint16Array=d;function g(te){return n(te)==="Uint32Array"}e.isUint32Array=g;function v(te){return n(te)==="Int8Array"}e.isInt8Array=v;function T(te){return n(te)==="Int16Array"}e.isInt16Array=T;function P(te){return n(te)==="Int32Array"}e.isInt32Array=P;function I(te){return n(te)==="Float32Array"}e.isFloat32Array=I;function O(te){return n(te)==="Float64Array"}e.isFloat64Array=O;function j(te){return n(te)==="BigInt64Array"}e.isBigInt64Array=j;function K(te){return n(te)==="BigUint64Array"}e.isBigUint64Array=K;function L(te){return c(te)==="[object Map]"}L.working=typeof Map<"u"&&L(new Map);function k(te){return typeof Map>"u"?!1:L.working?L(te):te instanceof Map}e.isMap=k;function re(te){return c(te)==="[object Set]"}re.working=typeof Set<"u"&&re(new Set);function ee(te){return typeof Set>"u"?!1:re.working?re(te):te instanceof Set}e.isSet=ee;function ue(te){return c(te)==="[object WeakMap]"}ue.working=typeof WeakMap<"u"&&ue(new WeakMap);function le(te){return typeof WeakMap>"u"?!1:ue.working?ue(te):te instanceof WeakMap}e.isWeakMap=le;function de(te){return c(te)==="[object WeakSet]"}de.working=typeof WeakSet<"u"&&de(new WeakSet);function fe(te){return de(te)}e.isWeakSet=fe;function be(te){return c(te)==="[object ArrayBuffer]"}be.working=typeof ArrayBuffer<"u"&&be(new ArrayBuffer);function pe(te){return typeof ArrayBuffer>"u"?!1:be.working?be(te):te instanceof ArrayBuffer}e.isArrayBuffer=pe;function G(te){return c(te)==="[object DataView]"}G.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&G(new DataView(new ArrayBuffer(1),0,1));function Z(te){return typeof DataView>"u"?!1:G.working?G(te):te instanceof DataView}e.isDataView=Z;var Q=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function ae(te){return c(te)==="[object SharedArrayBuffer]"}function V(te){return typeof Q>"u"?!1:(typeof ae.working>"u"&&(ae.working=ae(new Q)),ae.working?ae(te):te instanceof Q)}e.isSharedArrayBuffer=V;function R(te){return c(te)==="[object AsyncFunction]"}e.isAsyncFunction=R;function N(te){return c(te)==="[object Map Iterator]"}e.isMapIterator=N;function q(te){return c(te)==="[object Set Iterator]"}e.isSetIterator=q;function $(te){return c(te)==="[object Generator]"}e.isGeneratorObject=$;function B(te){return c(te)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=B;function U(te){return m(te,l)}e.isNumberObject=U;function J(te){return m(te,s)}e.isStringObject=J;function oe(te){return m(te,f)}e.isBooleanObject=oe;function ge(te){return a&&m(te,h)}e.isBigIntObject=ge;function ce(te){return u&&m(te,x)}e.isSymbolObject=ce;function he(te){return U(te)||J(te)||oe(te)||ge(te)||ce(te)}e.isBoxedPrimitive=he;function Oe(te){return typeof Uint8Array<"u"&&(pe(te)||V(te))}e.isAnyArrayBuffer=Oe,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(te){Object.defineProperty(e,te,{enumerable:!1,value:function(){throw new Error(te+" is not supported in userland")}})})})(Wn)),Wn}var Ki,Ju;function d0(){return Ju||(Ju=1,Ki=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),Ki}var Zu;function Qu(){return Zu||(Zu=1,(function(e){var t=Object.getOwnPropertyDescriptors||function(Z){for(var Q=Object.keys(Z),ae={},V=0;V<Q.length;V++)ae[Q[V]]=Object.getOwnPropertyDescriptor(Z,Q[V]);return ae},r=/%[sdj%]/g;e.format=function(G){if(!v(G)){for(var Z=[],Q=0;Q<arguments.length;Q++)Z.push(a(arguments[Q]));return Z.join(" ")}for(var Q=1,ae=arguments,V=ae.length,R=String(G).replace(r,function(q){if(q==="%%")return"%";if(Q>=V)return q;switch(q){case"%s":return String(ae[Q++]);case"%d":return Number(ae[Q++]);case"%j":try{return JSON.stringify(ae[Q++])}catch{return"[Circular]"}default:return q}}),N=ae[Q];Q<V;N=ae[++Q])p(N)||!O(N)?R+=" "+N:R+=" "+a(N);return R},e.deprecate=function(G,Z){if(typeof ye<"u"&&ye.noDeprecation===!0)return G;if(typeof ye>"u")return function(){return e.deprecate(G,Z).apply(this,arguments)};var Q=!1;function ae(){if(!Q){if(ye.throwDeprecation)throw new Error(Z);ye.traceDeprecation?console.trace(Z):console.error(Z),Q=!0}return G.apply(this,arguments)}return ae};var n={},o=/^$/;if(ye.env.NODE_DEBUG){var i=ye.env.NODE_DEBUG;i=i.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),o=new RegExp("^"+i+"$","i")}e.debuglog=function(G){if(G=G.toUpperCase(),!n[G])if(o.test(G)){var Z=ye.pid;n[G]=function(){var Q=e.format.apply(e,arguments);console.error("%s %d: %s",G,Z,Q)}}else n[G]=function(){};return n[G]};function a(G,Z){var Q={seen:[],stylize:c};return arguments.length>=3&&(Q.depth=arguments[2]),arguments.length>=4&&(Q.colors=arguments[3]),y(Z)?Q.showHidden=Z:Z&&e._extend(Q,Z),P(Q.showHidden)&&(Q.showHidden=!1),P(Q.depth)&&(Q.depth=2),P(Q.colors)&&(Q.colors=!1),P(Q.customInspect)&&(Q.customInspect=!0),Q.colors&&(Q.stylize=u),s(Q,G,Q.depth)}e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function u(G,Z){var Q=a.styles[Z];return Q?"\x1B["+a.colors[Q][0]+"m"+G+"\x1B["+a.colors[Q][1]+"m":G}function c(G,Z){return G}function l(G){var Z={};return G.forEach(function(Q,ae){Z[Q]=!0}),Z}function s(G,Z,Q){if(G.customInspect&&Z&&L(Z.inspect)&&Z.inspect!==e.inspect&&!(Z.constructor&&Z.constructor.prototype===Z)){var ae=Z.inspect(Q,G);return v(ae)||(ae=s(G,ae,Q)),ae}var V=f(G,Z);if(V)return V;var R=Object.keys(Z),N=l(R);if(G.showHidden&&(R=Object.getOwnPropertyNames(Z)),K(Z)&&(R.indexOf("message")>=0||R.indexOf("description")>=0))return h(Z);if(R.length===0){if(L(Z)){var q=Z.name?": "+Z.name:"";return G.stylize("[Function"+q+"]","special")}if(I(Z))return G.stylize(RegExp.prototype.toString.call(Z),"regexp");if(j(Z))return G.stylize(Date.prototype.toString.call(Z),"date");if(K(Z))return h(Z)}var $="",B=!1,U=["{","}"];if(A(Z)&&(B=!0,U=["[","]"]),L(Z)){var J=Z.name?": "+Z.name:"";$=" [Function"+J+"]"}if(I(Z)&&($=" "+RegExp.prototype.toString.call(Z)),j(Z)&&($=" "+Date.prototype.toUTCString.call(Z)),K(Z)&&($=" "+h(Z)),R.length===0&&(!B||Z.length==0))return U[0]+$+U[1];if(Q<0)return I(Z)?G.stylize(RegExp.prototype.toString.call(Z),"regexp"):G.stylize("[Object]","special");G.seen.push(Z);var oe;return B?oe=x(G,Z,Q,N,R):oe=R.map(function(ge){return m(G,Z,Q,N,ge,B)}),G.seen.pop(),E(oe,$,U)}function f(G,Z){if(P(Z))return G.stylize("undefined","undefined");if(v(Z)){var Q="'"+JSON.stringify(Z).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return G.stylize(Q,"string")}if(g(Z))return G.stylize(""+Z,"number");if(y(Z))return G.stylize(""+Z,"boolean");if(p(Z))return G.stylize("null","null")}function h(G){return"["+Error.prototype.toString.call(G)+"]"}function x(G,Z,Q,ae,V){for(var R=[],N=0,q=Z.length;N<q;++N)de(Z,String(N))?R.push(m(G,Z,Q,ae,String(N),!0)):R.push("");return V.forEach(function($){$.match(/^\d+$/)||R.push(m(G,Z,Q,ae,$,!0))}),R}function m(G,Z,Q,ae,V,R){var N,q,$;if($=Object.getOwnPropertyDescriptor(Z,V)||{value:Z[V]},$.get?$.set?q=G.stylize("[Getter/Setter]","special"):q=G.stylize("[Getter]","special"):$.set&&(q=G.stylize("[Setter]","special")),de(ae,V)||(N="["+V+"]"),q||(G.seen.indexOf($.value)<0?(p(Q)?q=s(G,$.value,null):q=s(G,$.value,Q-1),q.indexOf(`
17
- `)>-1&&(R?q=q.split(`
18
- `).map(function(B){return" "+B}).join(`
19
- `).slice(2):q=`
20
- `+q.split(`
21
- `).map(function(B){return" "+B}).join(`
22
- `))):q=G.stylize("[Circular]","special")),P(N)){if(R&&V.match(/^\d+$/))return q;N=JSON.stringify(""+V),N.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(N=N.slice(1,-1),N=G.stylize(N,"name")):(N=N.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),N=G.stylize(N,"string"))}return N+": "+q}function E(G,Z,Q){var ae=G.reduce(function(V,R){return R.indexOf(`
23
- `)>=0,V+R.replace(/\u001b\[\d\d?m/g,"").length+1},0);return ae>60?Q[0]+(Z===""?"":Z+`
24
- `)+" "+G.join(`,
25
- `)+" "+Q[1]:Q[0]+Z+" "+G.join(", ")+" "+Q[1]}e.types=h0();function A(G){return Array.isArray(G)}e.isArray=A;function y(G){return typeof G=="boolean"}e.isBoolean=y;function p(G){return G===null}e.isNull=p;function d(G){return G==null}e.isNullOrUndefined=d;function g(G){return typeof G=="number"}e.isNumber=g;function v(G){return typeof G=="string"}e.isString=v;function T(G){return typeof G=="symbol"}e.isSymbol=T;function P(G){return G===void 0}e.isUndefined=P;function I(G){return O(G)&&re(G)==="[object RegExp]"}e.isRegExp=I,e.types.isRegExp=I;function O(G){return typeof G=="object"&&G!==null}e.isObject=O;function j(G){return O(G)&&re(G)==="[object Date]"}e.isDate=j,e.types.isDate=j;function K(G){return O(G)&&(re(G)==="[object Error]"||G instanceof Error)}e.isError=K,e.types.isNativeError=K;function L(G){return typeof G=="function"}e.isFunction=L;function k(G){return G===null||typeof G=="boolean"||typeof G=="number"||typeof G=="string"||typeof G=="symbol"||typeof G>"u"}e.isPrimitive=k,e.isBuffer=d0();function re(G){return Object.prototype.toString.call(G)}function ee(G){return G<10?"0"+G.toString(10):G.toString(10)}var ue=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function le(){var G=new Date,Z=[ee(G.getHours()),ee(G.getMinutes()),ee(G.getSeconds())].join(":");return[G.getDate(),ue[G.getMonth()],Z].join(" ")}e.log=function(){console.log("%s - %s",le(),e.format.apply(e,arguments))},e.inherits=jt(),e._extend=function(G,Z){if(!Z||!O(Z))return G;for(var Q=Object.keys(Z),ae=Q.length;ae--;)G[Q[ae]]=Z[Q[ae]];return G};function de(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)}var fe=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(Z){if(typeof Z!="function")throw new TypeError('The "original" argument must be of type Function');if(fe&&Z[fe]){var Q=Z[fe];if(typeof Q!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Q,fe,{value:Q,enumerable:!1,writable:!1,configurable:!0}),Q}function Q(){for(var ae,V,R=new Promise(function($,B){ae=$,V=B}),N=[],q=0;q<arguments.length;q++)N.push(arguments[q]);N.push(function($,B){$?V($):ae(B)});try{Z.apply(this,N)}catch($){V($)}return R}return Object.setPrototypeOf(Q,Object.getPrototypeOf(Z)),fe&&Object.defineProperty(Q,fe,{value:Q,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Q,t(Z))},e.promisify.custom=fe;function be(G,Z){if(!G){var Q=new Error("Promise was rejected with a falsy value");Q.reason=G,G=Q}return Z(G)}function pe(G){if(typeof G!="function")throw new TypeError('The "original" argument must be of type Function');function Z(){for(var Q=[],ae=0;ae<arguments.length;ae++)Q.push(arguments[ae]);var V=Q.pop();if(typeof V!="function")throw new TypeError("The last argument must be of type Function");var R=this,N=function(){return V.apply(R,arguments)};G.apply(this,Q).then(function(q){ye.nextTick(N.bind(null,null,q))},function(q){ye.nextTick(be.bind(null,q,N))})}return Object.setPrototypeOf(Z,Object.getPrototypeOf(G)),Object.defineProperties(Z,t(G)),Z}e.callbackify=pe})(Vn)),Vn}var zi,el;function p0(){if(el)return zi;el=1;function e(m,E){var A=Object.keys(m);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(m);E&&(y=y.filter(function(p){return Object.getOwnPropertyDescriptor(m,p).enumerable})),A.push.apply(A,y)}return A}function t(m){for(var E=1;E<arguments.length;E++){var A=arguments[E]!=null?arguments[E]:{};E%2?e(Object(A),!0).forEach(function(y){r(m,y,A[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(A)):e(Object(A)).forEach(function(y){Object.defineProperty(m,y,Object.getOwnPropertyDescriptor(A,y))})}return m}function r(m,E,A){return E=a(E),E in m?Object.defineProperty(m,E,{value:A,enumerable:!0,configurable:!0,writable:!0}):m[E]=A,m}function n(m,E){if(!(m instanceof E))throw new TypeError("Cannot call a class as a function")}function o(m,E){for(var A=0;A<E.length;A++){var y=E[A];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,a(y.key),y)}}function i(m,E,A){return E&&o(m.prototype,E),Object.defineProperty(m,"prototype",{writable:!1}),m}function a(m){var E=u(m,"string");return typeof E=="symbol"?E:String(E)}function u(m,E){if(typeof m!="object"||m===null)return m;var A=m[Symbol.toPrimitive];if(A!==void 0){var y=A.call(m,E);if(typeof y!="object")return y;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(m)}var c=Hr(),l=c.Buffer,s=Qu(),f=s.inspect,h=f&&f.custom||"inspect";function x(m,E,A){l.prototype.copy.call(m,E,A)}return zi=(function(){function m(){n(this,m),this.head=null,this.tail=null,this.length=0}return i(m,[{key:"push",value:function(A){var y={data:A,next:null};this.length>0?this.tail.next=y:this.head=y,this.tail=y,++this.length}},{key:"unshift",value:function(A){var y={data:A,next:this.head};this.length===0&&(this.tail=y),this.head=y,++this.length}},{key:"shift",value:function(){if(this.length!==0){var A=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,A}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(A){if(this.length===0)return"";for(var y=this.head,p=""+y.data;y=y.next;)p+=A+y.data;return p}},{key:"concat",value:function(A){if(this.length===0)return l.alloc(0);for(var y=l.allocUnsafe(A>>>0),p=this.head,d=0;p;)x(p.data,y,d),d+=p.data.length,p=p.next;return y}},{key:"consume",value:function(A,y){var p;return A<this.head.data.length?(p=this.head.data.slice(0,A),this.head.data=this.head.data.slice(A)):A===this.head.data.length?p=this.shift():p=y?this._getString(A):this._getBuffer(A),p}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(A){var y=this.head,p=1,d=y.data;for(A-=d.length;y=y.next;){var g=y.data,v=A>g.length?g.length:A;if(v===g.length?d+=g:d+=g.slice(0,A),A-=v,A===0){v===g.length?(++p,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=g.slice(v));break}++p}return this.length-=p,d}},{key:"_getBuffer",value:function(A){var y=l.allocUnsafe(A),p=this.head,d=1;for(p.data.copy(y),A-=p.data.length;p=p.next;){var g=p.data,v=A>g.length?g.length:A;if(g.copy(y,y.length-A,0,v),A-=v,A===0){v===g.length?(++d,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=g.slice(v));break}++d}return this.length-=d,y}},{key:h,value:function(A,y){return f(this,t(t({},y),{},{depth:0,customInspect:!1}))}}]),m})(),zi}var Xi,tl;function rl(){if(tl)return Xi;tl=1;function e(a,u){var c=this,l=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return l||s?(u?u(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,ye.nextTick(o,this,a)):ye.nextTick(o,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(f){!u&&f?c._writableState?c._writableState.errorEmitted?ye.nextTick(r,c):(c._writableState.errorEmitted=!0,ye.nextTick(t,c,f)):ye.nextTick(t,c,f):u?(ye.nextTick(r,c),u(f)):ye.nextTick(r,c)}),this)}function t(a,u){o(a,u),r(a)}function r(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function n(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(a,u){a.emit("error",u)}function i(a,u){var c=a._readableState,l=a._writableState;c&&c.autoDestroy||l&&l.autoDestroy?a.destroy(u):a.emit("error",u)}return Xi={destroy:e,undestroy:n,errorOrDestroy:i},Xi}var Yi={},nl;function Yt(){if(nl)return Yi;nl=1;function e(u,c){u.prototype=Object.create(c.prototype),u.prototype.constructor=u,u.__proto__=c}var t={};function r(u,c,l){l||(l=Error);function s(h,x,m){return typeof c=="string"?c:c(h,x,m)}var f=(function(h){e(x,h);function x(m,E,A){return h.call(this,s(m,E,A))||this}return x})(l);f.prototype.name=l.name,f.prototype.code=u,t[u]=f}function n(u,c){if(Array.isArray(u)){var l=u.length;return u=u.map(function(s){return String(s)}),l>2?"one of ".concat(c," ").concat(u.slice(0,l-1).join(", "),", or ")+u[l-1]:l===2?"one of ".concat(c," ").concat(u[0]," or ").concat(u[1]):"of ".concat(c," ").concat(u[0])}else return"of ".concat(c," ").concat(String(u))}function o(u,c,l){return u.substr(0,c.length)===c}function i(u,c,l){return(l===void 0||l>u.length)&&(l=u.length),u.substring(l-c.length,l)===c}function a(u,c,l){return typeof l!="number"&&(l=0),l+c.length>u.length?!1:u.indexOf(c,l)!==-1}return r("ERR_INVALID_OPT_VALUE",function(u,c){return'The value "'+c+'" is invalid for option "'+u+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(u,c,l){var s;typeof c=="string"&&o(c,"not ")?(s="must not be",c=c.replace(/^not /,"")):s="must be";var f;if(i(u," argument"))f="The ".concat(u," ").concat(s," ").concat(n(c,"type"));else{var h=a(u,".")?"property":"argument";f='The "'.concat(u,'" ').concat(h," ").concat(s," ").concat(n(c,"type"))}return f+=". Received type ".concat(typeof l),f},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(u){return"The "+u+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(u){return"Cannot call "+u+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(u){return"Unknown encoding: "+u},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Yi.codes=t,Yi}var Ji,il;function ol(){if(il)return Ji;il=1;var e=Yt().codes.ERR_INVALID_OPT_VALUE;function t(n,o,i){return n.highWaterMark!=null?n.highWaterMark:o?n[i]:null}function r(n,o,i,a){var u=t(o,a,i);if(u!=null){if(!(isFinite(u)&&Math.floor(u)===u)||u<0){var c=a?i:"highWaterMark";throw new e(c,u)}return Math.floor(u)}return n.objectMode?16:16*1024}return Ji={getHighWaterMark:r},Ji}var Zi,sl;function g0(){if(sl)return Zi;sl=1,Zi=e;function e(r,n){if(t("noDeprecation"))return r;var o=!1;function i(){if(!o){if(t("throwDeprecation"))throw new Error(n);t("traceDeprecation")?console.trace(n):console.warn(n),o=!0}return r.apply(this,arguments)}return i}function t(r){try{if(!St.localStorage)return!1}catch{return!1}var n=St.localStorage[r];return n==null?!1:String(n).toLowerCase()==="true"}return Zi}var Qi,al;function ul(){if(al)return Qi;al=1,Qi=I;function e(V){var R=this;this.next=null,this.entry=null,this.finish=function(){ae(R,V)}}var t;I.WritableState=T;var r={deprecate:g0()},n=qa(),o=Hr().Buffer,i=(typeof St<"u"?St:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function a(V){return o.from(V)}function u(V){return o.isBuffer(V)||V instanceof i}var c=rl(),l=ol(),s=l.getHighWaterMark,f=Yt().codes,h=f.ERR_INVALID_ARG_TYPE,x=f.ERR_METHOD_NOT_IMPLEMENTED,m=f.ERR_MULTIPLE_CALLBACK,E=f.ERR_STREAM_CANNOT_PIPE,A=f.ERR_STREAM_DESTROYED,y=f.ERR_STREAM_NULL_VALUES,p=f.ERR_STREAM_WRITE_AFTER_END,d=f.ERR_UNKNOWN_ENCODING,g=c.errorOrDestroy;jt()(I,n);function v(){}function T(V,R,N){t=t||Jt(),V=V||{},typeof N!="boolean"&&(N=R instanceof t),this.objectMode=!!V.objectMode,N&&(this.objectMode=this.objectMode||!!V.writableObjectMode),this.highWaterMark=s(this,V,"writableHighWaterMark",N),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var q=V.decodeStrings===!1;this.decodeStrings=!q,this.defaultEncoding=V.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function($){ue(R,$)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=V.emitClose!==!1,this.autoDestroy=!!V.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}T.prototype.getBuffer=function(){for(var R=this.bufferedRequest,N=[];R;)N.push(R),R=R.next;return N},(function(){try{Object.defineProperty(T.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var P;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(P=Function.prototype[Symbol.hasInstance],Object.defineProperty(I,Symbol.hasInstance,{value:function(R){return P.call(this,R)?!0:this!==I?!1:R&&R._writableState instanceof T}})):P=function(R){return R instanceof this};function I(V){t=t||Jt();var R=this instanceof t;if(!R&&!P.call(I,this))return new I(V);this._writableState=new T(V,this,R),this.writable=!0,V&&(typeof V.write=="function"&&(this._write=V.write),typeof V.writev=="function"&&(this._writev=V.writev),typeof V.destroy=="function"&&(this._destroy=V.destroy),typeof V.final=="function"&&(this._final=V.final)),n.call(this)}I.prototype.pipe=function(){g(this,new E)};function O(V,R){var N=new p;g(V,N),ye.nextTick(R,N)}function j(V,R,N,q){var $;return N===null?$=new y:typeof N!="string"&&!R.objectMode&&($=new h("chunk",["string","Buffer"],N)),$?(g(V,$),ye.nextTick(q,$),!1):!0}I.prototype.write=function(V,R,N){var q=this._writableState,$=!1,B=!q.objectMode&&u(V);return B&&!o.isBuffer(V)&&(V=a(V)),typeof R=="function"&&(N=R,R=null),B?R="buffer":R||(R=q.defaultEncoding),typeof N!="function"&&(N=v),q.ending?O(this,N):(B||j(this,q,V,N))&&(q.pendingcb++,$=L(this,q,B,V,R,N)),$},I.prototype.cork=function(){this._writableState.corked++},I.prototype.uncork=function(){var V=this._writableState;V.corked&&(V.corked--,!V.writing&&!V.corked&&!V.bufferProcessing&&V.bufferedRequest&&fe(this,V))},I.prototype.setDefaultEncoding=function(R){if(typeof R=="string"&&(R=R.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((R+"").toLowerCase())>-1))throw new d(R);return this._writableState.defaultEncoding=R,this},Object.defineProperty(I.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function K(V,R,N){return!V.objectMode&&V.decodeStrings!==!1&&typeof R=="string"&&(R=o.from(R,N)),R}Object.defineProperty(I.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function L(V,R,N,q,$,B){if(!N){var U=K(R,q,$);q!==U&&(N=!0,$="buffer",q=U)}var J=R.objectMode?1:q.length;R.length+=J;var oe=R.length<R.highWaterMark;if(oe||(R.needDrain=!0),R.writing||R.corked){var ge=R.lastBufferedRequest;R.lastBufferedRequest={chunk:q,encoding:$,isBuf:N,callback:B,next:null},ge?ge.next=R.lastBufferedRequest:R.bufferedRequest=R.lastBufferedRequest,R.bufferedRequestCount+=1}else k(V,R,!1,J,q,$,B);return oe}function k(V,R,N,q,$,B,U){R.writelen=q,R.writecb=U,R.writing=!0,R.sync=!0,R.destroyed?R.onwrite(new A("write")):N?V._writev($,R.onwrite):V._write($,B,R.onwrite),R.sync=!1}function re(V,R,N,q,$){--R.pendingcb,N?(ye.nextTick($,q),ye.nextTick(Z,V,R),V._writableState.errorEmitted=!0,g(V,q)):($(q),V._writableState.errorEmitted=!0,g(V,q),Z(V,R))}function ee(V){V.writing=!1,V.writecb=null,V.length-=V.writelen,V.writelen=0}function ue(V,R){var N=V._writableState,q=N.sync,$=N.writecb;if(typeof $!="function")throw new m;if(ee(N),R)re(V,N,q,R,$);else{var B=be(N)||V.destroyed;!B&&!N.corked&&!N.bufferProcessing&&N.bufferedRequest&&fe(V,N),q?ye.nextTick(le,V,N,B,$):le(V,N,B,$)}}function le(V,R,N,q){N||de(V,R),R.pendingcb--,q(),Z(V,R)}function de(V,R){R.length===0&&R.needDrain&&(R.needDrain=!1,V.emit("drain"))}function fe(V,R){R.bufferProcessing=!0;var N=R.bufferedRequest;if(V._writev&&N&&N.next){var q=R.bufferedRequestCount,$=new Array(q),B=R.corkedRequestsFree;B.entry=N;for(var U=0,J=!0;N;)$[U]=N,N.isBuf||(J=!1),N=N.next,U+=1;$.allBuffers=J,k(V,R,!0,R.length,$,"",B.finish),R.pendingcb++,R.lastBufferedRequest=null,B.next?(R.corkedRequestsFree=B.next,B.next=null):R.corkedRequestsFree=new e(R),R.bufferedRequestCount=0}else{for(;N;){var oe=N.chunk,ge=N.encoding,ce=N.callback,he=R.objectMode?1:oe.length;if(k(V,R,!1,he,oe,ge,ce),N=N.next,R.bufferedRequestCount--,R.writing)break}N===null&&(R.lastBufferedRequest=null)}R.bufferedRequest=N,R.bufferProcessing=!1}I.prototype._write=function(V,R,N){N(new x("_write()"))},I.prototype._writev=null,I.prototype.end=function(V,R,N){var q=this._writableState;return typeof V=="function"?(N=V,V=null,R=null):typeof R=="function"&&(N=R,R=null),V!=null&&this.write(V,R),q.corked&&(q.corked=1,this.uncork()),q.ending||Q(this,q,N),this},Object.defineProperty(I.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function be(V){return V.ending&&V.length===0&&V.bufferedRequest===null&&!V.finished&&!V.writing}function pe(V,R){V._final(function(N){R.pendingcb--,N&&g(V,N),R.prefinished=!0,V.emit("prefinish"),Z(V,R)})}function G(V,R){!R.prefinished&&!R.finalCalled&&(typeof V._final=="function"&&!R.destroyed?(R.pendingcb++,R.finalCalled=!0,ye.nextTick(pe,V,R)):(R.prefinished=!0,V.emit("prefinish")))}function Z(V,R){var N=be(R);if(N&&(G(V,R),R.pendingcb===0&&(R.finished=!0,V.emit("finish"),R.autoDestroy))){var q=V._readableState;(!q||q.autoDestroy&&q.endEmitted)&&V.destroy()}return N}function Q(V,R,N){R.ending=!0,Z(V,R),N&&(R.finished?ye.nextTick(N):V.once("finish",N)),R.ended=!0,V.writable=!1}function ae(V,R,N){var q=V.entry;for(V.entry=null;q;){var $=q.callback;R.pendingcb--,$(N),q=q.next}R.corkedRequestsFree.next=V}return Object.defineProperty(I.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(R){this._writableState&&(this._writableState.destroyed=R)}}),I.prototype.destroy=c.destroy,I.prototype._undestroy=c.undestroy,I.prototype._destroy=function(V,R){R(V)},Qi}var eo,ll;function Jt(){if(ll)return eo;ll=1;var e=Object.keys||function(l){var s=[];for(var f in l)s.push(f);return s};eo=a;var t=yl(),r=ul();jt()(a,t);for(var n=e(r.prototype),o=0;o<n.length;o++){var i=n[o];a.prototype[i]||(a.prototype[i]=r.prototype[i])}function a(l){if(!(this instanceof a))return new a(l);t.call(this,l),r.call(this,l),this.allowHalfOpen=!0,l&&(l.readable===!1&&(this.readable=!1),l.writable===!1&&(this.writable=!1),l.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",u)))}Object.defineProperty(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(a.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(a.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function u(){this._writableState.ended||ye.nextTick(c,this)}function c(l){l.end()}return Object.defineProperty(a.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(s){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=s,this._writableState.destroyed=s)}}),eo}var to={},Gr={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var cl;function y0(){return cl||(cl=1,(function(e,t){var r=Hr(),n=r.Buffer;function o(a,u){for(var c in a)u[c]=a[c]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=i);function i(a,u,c){return n(a,u,c)}i.prototype=Object.create(n.prototype),o(n,i),i.from=function(a,u,c){if(typeof a=="number")throw new TypeError("Argument must not be a number");return n(a,u,c)},i.alloc=function(a,u,c){if(typeof a!="number")throw new TypeError("Argument must be a number");var l=n(a);return u!==void 0?typeof c=="string"?l.fill(u,c):l.fill(u):l.fill(0),l},i.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n(a)},i.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(a)}})(Gr,Gr.exports)),Gr.exports}var fl;function ro(){if(fl)return to;fl=1;var e=y0().Buffer,t=e.isEncoding||function(y){switch(y=""+y,y&&y.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(y){if(!y)return"utf8";for(var p;;)switch(y){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return y;default:if(p)return;y=(""+y).toLowerCase(),p=!0}}function n(y){var p=r(y);if(typeof p!="string"&&(e.isEncoding===t||!t(y)))throw new Error("Unknown encoding: "+y);return p||y}to.StringDecoder=o;function o(y){this.encoding=n(y);var p;switch(this.encoding){case"utf16le":this.text=f,this.end=h,p=4;break;case"utf8":this.fillLast=c,p=4;break;case"base64":this.text=x,this.end=m,p=3;break;default:this.write=E,this.end=A;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(p)}o.prototype.write=function(y){if(y.length===0)return"";var p,d;if(this.lastNeed){if(p=this.fillLast(y),p===void 0)return"";d=this.lastNeed,this.lastNeed=0}else d=0;return d<y.length?p?p+this.text(y,d):this.text(y,d):p||""},o.prototype.end=s,o.prototype.text=l,o.prototype.fillLast=function(y){if(this.lastNeed<=y.length)return y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,y.length),this.lastNeed-=y.length};function i(y){return y<=127?0:y>>5===6?2:y>>4===14?3:y>>3===30?4:y>>6===2?-1:-2}function a(y,p,d){var g=p.length-1;if(g<d)return 0;var v=i(p[g]);return v>=0?(v>0&&(y.lastNeed=v-1),v):--g<d||v===-2?0:(v=i(p[g]),v>=0?(v>0&&(y.lastNeed=v-2),v):--g<d||v===-2?0:(v=i(p[g]),v>=0?(v>0&&(v===2?v=0:y.lastNeed=v-3),v):0))}function u(y,p,d){if((p[0]&192)!==128)return y.lastNeed=0,"�";if(y.lastNeed>1&&p.length>1){if((p[1]&192)!==128)return y.lastNeed=1,"�";if(y.lastNeed>2&&p.length>2&&(p[2]&192)!==128)return y.lastNeed=2,"�"}}function c(y){var p=this.lastTotal-this.lastNeed,d=u(this,y);if(d!==void 0)return d;if(this.lastNeed<=y.length)return y.copy(this.lastChar,p,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);y.copy(this.lastChar,p,0,y.length),this.lastNeed-=y.length}function l(y,p){var d=a(this,y,p);if(!this.lastNeed)return y.toString("utf8",p);this.lastTotal=d;var g=y.length-(d-this.lastNeed);return y.copy(this.lastChar,0,g),y.toString("utf8",p,g)}function s(y){var p=y&&y.length?this.write(y):"";return this.lastNeed?p+"�":p}function f(y,p){if((y.length-p)%2===0){var d=y.toString("utf16le",p);if(d){var g=d.charCodeAt(d.length-1);if(g>=55296&&g<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1],d.slice(0,-1)}return d}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=y[y.length-1],y.toString("utf16le",p,y.length-1)}function h(y){var p=y&&y.length?this.write(y):"";if(this.lastNeed){var d=this.lastTotal-this.lastNeed;return p+this.lastChar.toString("utf16le",0,d)}return p}function x(y,p){var d=(y.length-p)%3;return d===0?y.toString("base64",p):(this.lastNeed=3-d,this.lastTotal=3,d===1?this.lastChar[0]=y[y.length-1]:(this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1]),y.toString("base64",p,y.length-d))}function m(y){var p=y&&y.length?this.write(y):"";return this.lastNeed?p+this.lastChar.toString("base64",0,3-this.lastNeed):p}function E(y){return y.toString(this.encoding)}function A(y){return y&&y.length?this.write(y):""}return to}var no,hl;function io(){if(hl)return no;hl=1;var e=Yt().codes.ERR_STREAM_PREMATURE_CLOSE;function t(i){var a=!1;return function(){if(!a){a=!0;for(var u=arguments.length,c=new Array(u),l=0;l<u;l++)c[l]=arguments[l];i.apply(this,c)}}}function r(){}function n(i){return i.setHeader&&typeof i.abort=="function"}function o(i,a,u){if(typeof a=="function")return o(i,null,a);a||(a={}),u=t(u||r);var c=a.readable||a.readable!==!1&&i.readable,l=a.writable||a.writable!==!1&&i.writable,s=function(){i.writable||h()},f=i._writableState&&i._writableState.finished,h=function(){l=!1,f=!0,c||u.call(i)},x=i._readableState&&i._readableState.endEmitted,m=function(){c=!1,x=!0,l||u.call(i)},E=function(d){u.call(i,d)},A=function(){var d;if(c&&!x)return(!i._readableState||!i._readableState.ended)&&(d=new e),u.call(i,d);if(l&&!f)return(!i._writableState||!i._writableState.ended)&&(d=new e),u.call(i,d)},y=function(){i.req.on("finish",h)};return n(i)?(i.on("complete",h),i.on("abort",A),i.req?y():i.on("request",y)):l&&!i._writableState&&(i.on("end",s),i.on("close",s)),i.on("end",m),i.on("finish",h),a.error!==!1&&i.on("error",E),i.on("close",A),function(){i.removeListener("complete",h),i.removeListener("abort",A),i.removeListener("request",y),i.req&&i.req.removeListener("finish",h),i.removeListener("end",s),i.removeListener("close",s),i.removeListener("finish",h),i.removeListener("end",m),i.removeListener("error",E),i.removeListener("close",A)}}return no=o,no}var oo,dl;function m0(){if(dl)return oo;dl=1;var e;function t(d,g,v){return g=r(g),g in d?Object.defineProperty(d,g,{value:v,enumerable:!0,configurable:!0,writable:!0}):d[g]=v,d}function r(d){var g=n(d,"string");return typeof g=="symbol"?g:String(g)}function n(d,g){if(typeof d!="object"||d===null)return d;var v=d[Symbol.toPrimitive];if(v!==void 0){var T=v.call(d,g);if(typeof T!="object")return T;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(d)}var o=io(),i=Symbol("lastResolve"),a=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),l=Symbol("lastPromise"),s=Symbol("handlePromise"),f=Symbol("stream");function h(d,g){return{value:d,done:g}}function x(d){var g=d[i];if(g!==null){var v=d[f].read();v!==null&&(d[l]=null,d[i]=null,d[a]=null,g(h(v,!1)))}}function m(d){ye.nextTick(x,d)}function E(d,g){return function(v,T){d.then(function(){if(g[c]){v(h(void 0,!0));return}g[s](v,T)},T)}}var A=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((e={get stream(){return this[f]},next:function(){var g=this,v=this[u];if(v!==null)return Promise.reject(v);if(this[c])return Promise.resolve(h(void 0,!0));if(this[f].destroyed)return new Promise(function(O,j){ye.nextTick(function(){g[u]?j(g[u]):O(h(void 0,!0))})});var T=this[l],P;if(T)P=new Promise(E(T,this));else{var I=this[f].read();if(I!==null)return Promise.resolve(h(I,!1));P=new Promise(this[s])}return this[l]=P,P}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var g=this;return new Promise(function(v,T){g[f].destroy(null,function(P){if(P){T(P);return}v(h(void 0,!0))})})}),e),A),p=function(g){var v,T=Object.create(y,(v={},t(v,f,{value:g,writable:!0}),t(v,i,{value:null,writable:!0}),t(v,a,{value:null,writable:!0}),t(v,u,{value:null,writable:!0}),t(v,c,{value:g._readableState.endEmitted,writable:!0}),t(v,s,{value:function(I,O){var j=T[f].read();j?(T[l]=null,T[i]=null,T[a]=null,I(h(j,!1))):(T[i]=I,T[a]=O)},writable:!0}),v));return T[l]=null,o(g,function(P){if(P&&P.code!=="ERR_STREAM_PREMATURE_CLOSE"){var I=T[a];I!==null&&(T[l]=null,T[i]=null,T[a]=null,I(P)),T[u]=P;return}var O=T[i];O!==null&&(T[l]=null,T[i]=null,T[a]=null,O(h(void 0,!0))),T[c]=!0}),g.on("readable",m.bind(null,T)),T};return oo=p,oo}var so,pl;function b0(){return pl||(pl=1,so=function(){throw new Error("Readable.from is not available in the browser")}),so}var ao,gl;function yl(){if(gl)return ao;gl=1,ao=O;var e;O.ReadableState=I,$n().EventEmitter;var t=function(U,J){return U.listeners(J).length},r=qa(),n=Hr().Buffer,o=(typeof St<"u"?St:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(B){return n.from(B)}function a(B){return n.isBuffer(B)||B instanceof o}var u=Qu(),c;u&&u.debuglog?c=u.debuglog("stream"):c=function(){};var l=p0(),s=rl(),f=ol(),h=f.getHighWaterMark,x=Yt().codes,m=x.ERR_INVALID_ARG_TYPE,E=x.ERR_STREAM_PUSH_AFTER_EOF,A=x.ERR_METHOD_NOT_IMPLEMENTED,y=x.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,p,d,g;jt()(O,r);var v=s.errorOrDestroy,T=["error","close","destroy","pause","resume"];function P(B,U,J){if(typeof B.prependListener=="function")return B.prependListener(U,J);!B._events||!B._events[U]?B.on(U,J):Array.isArray(B._events[U])?B._events[U].unshift(J):B._events[U]=[J,B._events[U]]}function I(B,U,J){e=e||Jt(),B=B||{},typeof J!="boolean"&&(J=U instanceof e),this.objectMode=!!B.objectMode,J&&(this.objectMode=this.objectMode||!!B.readableObjectMode),this.highWaterMark=h(this,B,"readableHighWaterMark",J),this.buffer=new l,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=B.emitClose!==!1,this.autoDestroy=!!B.autoDestroy,this.destroyed=!1,this.defaultEncoding=B.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,B.encoding&&(p||(p=ro().StringDecoder),this.decoder=new p(B.encoding),this.encoding=B.encoding)}function O(B){if(e=e||Jt(),!(this instanceof O))return new O(B);var U=this instanceof e;this._readableState=new I(B,this,U),this.readable=!0,B&&(typeof B.read=="function"&&(this._read=B.read),typeof B.destroy=="function"&&(this._destroy=B.destroy)),r.call(this)}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(U){this._readableState&&(this._readableState.destroyed=U)}}),O.prototype.destroy=s.destroy,O.prototype._undestroy=s.undestroy,O.prototype._destroy=function(B,U){U(B)},O.prototype.push=function(B,U){var J=this._readableState,oe;return J.objectMode?oe=!0:typeof B=="string"&&(U=U||J.defaultEncoding,U!==J.encoding&&(B=n.from(B,U),U=""),oe=!0),j(this,B,U,!1,oe)},O.prototype.unshift=function(B){return j(this,B,null,!0,!1)};function j(B,U,J,oe,ge){c("readableAddChunk",U);var ce=B._readableState;if(U===null)ce.reading=!1,ue(B,ce);else{var he;if(ge||(he=L(ce,U)),he)v(B,he);else if(ce.objectMode||U&&U.length>0)if(typeof U!="string"&&!ce.objectMode&&Object.getPrototypeOf(U)!==n.prototype&&(U=i(U)),oe)ce.endEmitted?v(B,new y):K(B,ce,U,!0);else if(ce.ended)v(B,new E);else{if(ce.destroyed)return!1;ce.reading=!1,ce.decoder&&!J?(U=ce.decoder.write(U),ce.objectMode||U.length!==0?K(B,ce,U,!1):fe(B,ce)):K(B,ce,U,!1)}else oe||(ce.reading=!1,fe(B,ce))}return!ce.ended&&(ce.length<ce.highWaterMark||ce.length===0)}function K(B,U,J,oe){U.flowing&&U.length===0&&!U.sync?(U.awaitDrain=0,B.emit("data",J)):(U.length+=U.objectMode?1:J.length,oe?U.buffer.unshift(J):U.buffer.push(J),U.needReadable&&le(B)),fe(B,U)}function L(B,U){var J;return!a(U)&&typeof U!="string"&&U!==void 0&&!B.objectMode&&(J=new m("chunk",["string","Buffer","Uint8Array"],U)),J}O.prototype.isPaused=function(){return this._readableState.flowing===!1},O.prototype.setEncoding=function(B){p||(p=ro().StringDecoder);var U=new p(B);this._readableState.decoder=U,this._readableState.encoding=this._readableState.decoder.encoding;for(var J=this._readableState.buffer.head,oe="";J!==null;)oe+=U.write(J.data),J=J.next;return this._readableState.buffer.clear(),oe!==""&&this._readableState.buffer.push(oe),this._readableState.length=oe.length,this};var k=1073741824;function re(B){return B>=k?B=k:(B--,B|=B>>>1,B|=B>>>2,B|=B>>>4,B|=B>>>8,B|=B>>>16,B++),B}function ee(B,U){return B<=0||U.length===0&&U.ended?0:U.objectMode?1:B!==B?U.flowing&&U.length?U.buffer.head.data.length:U.length:(B>U.highWaterMark&&(U.highWaterMark=re(B)),B<=U.length?B:U.ended?U.length:(U.needReadable=!0,0))}O.prototype.read=function(B){c("read",B),B=parseInt(B,10);var U=this._readableState,J=B;if(B!==0&&(U.emittedReadable=!1),B===0&&U.needReadable&&((U.highWaterMark!==0?U.length>=U.highWaterMark:U.length>0)||U.ended))return c("read: emitReadable",U.length,U.ended),U.length===0&&U.ended?N(this):le(this),null;if(B=ee(B,U),B===0&&U.ended)return U.length===0&&N(this),null;var oe=U.needReadable;c("need readable",oe),(U.length===0||U.length-B<U.highWaterMark)&&(oe=!0,c("length less than watermark",oe)),U.ended||U.reading?(oe=!1,c("reading or ended",oe)):oe&&(c("do read"),U.reading=!0,U.sync=!0,U.length===0&&(U.needReadable=!0),this._read(U.highWaterMark),U.sync=!1,U.reading||(B=ee(J,U)));var ge;return B>0?ge=R(B,U):ge=null,ge===null?(U.needReadable=U.length<=U.highWaterMark,B=0):(U.length-=B,U.awaitDrain=0),U.length===0&&(U.ended||(U.needReadable=!0),J!==B&&U.ended&&N(this)),ge!==null&&this.emit("data",ge),ge};function ue(B,U){if(c("onEofChunk"),!U.ended){if(U.decoder){var J=U.decoder.end();J&&J.length&&(U.buffer.push(J),U.length+=U.objectMode?1:J.length)}U.ended=!0,U.sync?le(B):(U.needReadable=!1,U.emittedReadable||(U.emittedReadable=!0,de(B)))}}function le(B){var U=B._readableState;c("emitReadable",U.needReadable,U.emittedReadable),U.needReadable=!1,U.emittedReadable||(c("emitReadable",U.flowing),U.emittedReadable=!0,ye.nextTick(de,B))}function de(B){var U=B._readableState;c("emitReadable_",U.destroyed,U.length,U.ended),!U.destroyed&&(U.length||U.ended)&&(B.emit("readable"),U.emittedReadable=!1),U.needReadable=!U.flowing&&!U.ended&&U.length<=U.highWaterMark,V(B)}function fe(B,U){U.readingMore||(U.readingMore=!0,ye.nextTick(be,B,U))}function be(B,U){for(;!U.reading&&!U.ended&&(U.length<U.highWaterMark||U.flowing&&U.length===0);){var J=U.length;if(c("maybeReadMore read 0"),B.read(0),J===U.length)break}U.readingMore=!1}O.prototype._read=function(B){v(this,new A("_read()"))},O.prototype.pipe=function(B,U){var J=this,oe=this._readableState;switch(oe.pipesCount){case 0:oe.pipes=B;break;case 1:oe.pipes=[oe.pipes,B];break;default:oe.pipes.push(B);break}oe.pipesCount+=1,c("pipe count=%d opts=%j",oe.pipesCount,U);var ge=(!U||U.end!==!1)&&B!==ye.stdout&&B!==ye.stderr,ce=ge?Oe:ut;oe.endEmitted?ye.nextTick(ce):J.once("end",ce),B.on("unpipe",he);function he(ft,Ve){c("onunpipe"),ft===J&&Ve&&Ve.hasUnpiped===!1&&(Ve.hasUnpiped=!0,De())}function Oe(){c("onend"),B.end()}var te=pe(J);B.on("drain",te);var He=!1;function De(){c("cleanup"),B.removeListener("close",Ye),B.removeListener("finish",Ge),B.removeListener("drain",te),B.removeListener("error",Ne),B.removeListener("unpipe",he),J.removeListener("end",Oe),J.removeListener("end",ut),J.removeListener("data",xe),He=!0,oe.awaitDrain&&(!B._writableState||B._writableState.needDrain)&&te()}J.on("data",xe);function xe(ft){c("ondata");var Ve=B.write(ft);c("dest.write",Ve),Ve===!1&&((oe.pipesCount===1&&oe.pipes===B||oe.pipesCount>1&&$(oe.pipes,B)!==-1)&&!He&&(c("false write response, pause",oe.awaitDrain),oe.awaitDrain++),J.pause())}function Ne(ft){c("onerror",ft),ut(),B.removeListener("error",Ne),t(B,"error")===0&&v(B,ft)}P(B,"error",Ne);function Ye(){B.removeListener("finish",Ge),ut()}B.once("close",Ye);function Ge(){c("onfinish"),B.removeListener("close",Ye),ut()}B.once("finish",Ge);function ut(){c("unpipe"),J.unpipe(B)}return B.emit("pipe",J),oe.flowing||(c("pipe resume"),J.resume()),B};function pe(B){return function(){var J=B._readableState;c("pipeOnDrain",J.awaitDrain),J.awaitDrain&&J.awaitDrain--,J.awaitDrain===0&&t(B,"data")&&(J.flowing=!0,V(B))}}O.prototype.unpipe=function(B){var U=this._readableState,J={hasUnpiped:!1};if(U.pipesCount===0)return this;if(U.pipesCount===1)return B&&B!==U.pipes?this:(B||(B=U.pipes),U.pipes=null,U.pipesCount=0,U.flowing=!1,B&&B.emit("unpipe",this,J),this);if(!B){var oe=U.pipes,ge=U.pipesCount;U.pipes=null,U.pipesCount=0,U.flowing=!1;for(var ce=0;ce<ge;ce++)oe[ce].emit("unpipe",this,{hasUnpiped:!1});return this}var he=$(U.pipes,B);return he===-1?this:(U.pipes.splice(he,1),U.pipesCount-=1,U.pipesCount===1&&(U.pipes=U.pipes[0]),B.emit("unpipe",this,J),this)},O.prototype.on=function(B,U){var J=r.prototype.on.call(this,B,U),oe=this._readableState;return B==="data"?(oe.readableListening=this.listenerCount("readable")>0,oe.flowing!==!1&&this.resume()):B==="readable"&&!oe.endEmitted&&!oe.readableListening&&(oe.readableListening=oe.needReadable=!0,oe.flowing=!1,oe.emittedReadable=!1,c("on readable",oe.length,oe.reading),oe.length?le(this):oe.reading||ye.nextTick(Z,this)),J},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(B,U){var J=r.prototype.removeListener.call(this,B,U);return B==="readable"&&ye.nextTick(G,this),J},O.prototype.removeAllListeners=function(B){var U=r.prototype.removeAllListeners.apply(this,arguments);return(B==="readable"||B===void 0)&&ye.nextTick(G,this),U};function G(B){var U=B._readableState;U.readableListening=B.listenerCount("readable")>0,U.resumeScheduled&&!U.paused?U.flowing=!0:B.listenerCount("data")>0&&B.resume()}function Z(B){c("readable nexttick read 0"),B.read(0)}O.prototype.resume=function(){var B=this._readableState;return B.flowing||(c("resume"),B.flowing=!B.readableListening,Q(this,B)),B.paused=!1,this};function Q(B,U){U.resumeScheduled||(U.resumeScheduled=!0,ye.nextTick(ae,B,U))}function ae(B,U){c("resume",U.reading),U.reading||B.read(0),U.resumeScheduled=!1,B.emit("resume"),V(B),U.flowing&&!U.reading&&B.read(0)}O.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function V(B){var U=B._readableState;for(c("flow",U.flowing);U.flowing&&B.read()!==null;);}O.prototype.wrap=function(B){var U=this,J=this._readableState,oe=!1;B.on("end",function(){if(c("wrapped end"),J.decoder&&!J.ended){var he=J.decoder.end();he&&he.length&&U.push(he)}U.push(null)}),B.on("data",function(he){if(c("wrapped data"),J.decoder&&(he=J.decoder.write(he)),!(J.objectMode&&he==null)&&!(!J.objectMode&&(!he||!he.length))){var Oe=U.push(he);Oe||(oe=!0,B.pause())}});for(var ge in B)this[ge]===void 0&&typeof B[ge]=="function"&&(this[ge]=(function(Oe){return function(){return B[Oe].apply(B,arguments)}})(ge));for(var ce=0;ce<T.length;ce++)B.on(T[ce],this.emit.bind(this,T[ce]));return this._read=function(he){c("wrapped _read",he),oe&&(oe=!1,B.resume())},this},typeof Symbol=="function"&&(O.prototype[Symbol.asyncIterator]=function(){return d===void 0&&(d=m0()),d(this)}),Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(O.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(O.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(U){this._readableState&&(this._readableState.flowing=U)}}),O._fromList=R,Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function R(B,U){if(U.length===0)return null;var J;return U.objectMode?J=U.buffer.shift():!B||B>=U.length?(U.decoder?J=U.buffer.join(""):U.buffer.length===1?J=U.buffer.first():J=U.buffer.concat(U.length),U.buffer.clear()):J=U.buffer.consume(B,U.decoder),J}function N(B){var U=B._readableState;c("endReadable",U.endEmitted),U.endEmitted||(U.ended=!0,ye.nextTick(q,U,B))}function q(B,U){if(c("endReadableNT",B.endEmitted,B.length),!B.endEmitted&&B.length===0&&(B.endEmitted=!0,U.readable=!1,U.emit("end"),B.autoDestroy)){var J=U._writableState;(!J||J.autoDestroy&&J.finished)&&U.destroy()}}typeof Symbol=="function"&&(O.from=function(B,U){return g===void 0&&(g=b0()),g(O,B,U)});function $(B,U){for(var J=0,oe=B.length;J<oe;J++)if(B[J]===U)return J;return-1}return ao}var uo,ml;function bl(){if(ml)return uo;ml=1,uo=u;var e=Yt().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,r=e.ERR_MULTIPLE_CALLBACK,n=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=e.ERR_TRANSFORM_WITH_LENGTH_0,i=Jt();jt()(u,i);function a(s,f){var h=this._transformState;h.transforming=!1;var x=h.writecb;if(x===null)return this.emit("error",new r);h.writechunk=null,h.writecb=null,f!=null&&this.push(f),x(s);var m=this._readableState;m.reading=!1,(m.needReadable||m.length<m.highWaterMark)&&this._read(m.highWaterMark)}function u(s){if(!(this instanceof u))return new u(s);i.call(this,s),this._transformState={afterTransform:a.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,s&&(typeof s.transform=="function"&&(this._transform=s.transform),typeof s.flush=="function"&&(this._flush=s.flush)),this.on("prefinish",c)}function c(){var s=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(f,h){l(s,f,h)}):l(this,null,null)}u.prototype.push=function(s,f){return this._transformState.needTransform=!1,i.prototype.push.call(this,s,f)},u.prototype._transform=function(s,f,h){h(new t("_transform()"))},u.prototype._write=function(s,f,h){var x=this._transformState;if(x.writecb=h,x.writechunk=s,x.writeencoding=f,!x.transforming){var m=this._readableState;(x.needTransform||m.needReadable||m.length<m.highWaterMark)&&this._read(m.highWaterMark)}},u.prototype._read=function(s){var f=this._transformState;f.writechunk!==null&&!f.transforming?(f.transforming=!0,this._transform(f.writechunk,f.writeencoding,f.afterTransform)):f.needTransform=!0},u.prototype._destroy=function(s,f){i.prototype._destroy.call(this,s,function(h){f(h)})};function l(s,f,h){if(f)return s.emit("error",f);if(h!=null&&s.push(h),s._writableState.length)throw new o;if(s._transformState.transforming)throw new n;return s.push(null)}return uo}var lo,wl;function w0(){if(wl)return lo;wl=1,lo=t;var e=bl();jt()(t,e);function t(r){if(!(this instanceof t))return new t(r);e.call(this,r)}return t.prototype._transform=function(r,n,o){o(null,r)},lo}var co,vl;function v0(){if(vl)return co;vl=1;var e;function t(h){var x=!1;return function(){x||(x=!0,h.apply(void 0,arguments))}}var r=Yt().codes,n=r.ERR_MISSING_ARGS,o=r.ERR_STREAM_DESTROYED;function i(h){if(h)throw h}function a(h){return h.setHeader&&typeof h.abort=="function"}function u(h,x,m,E){E=t(E);var A=!1;h.on("close",function(){A=!0}),e===void 0&&(e=io()),e(h,{readable:x,writable:m},function(p){if(p)return E(p);A=!0,E()});var y=!1;return function(p){if(!A&&!y){if(y=!0,a(h))return h.abort();if(typeof h.destroy=="function")return h.destroy();E(p||new o("pipe"))}}}function c(h){h()}function l(h,x){return h.pipe(x)}function s(h){return!h.length||typeof h[h.length-1]!="function"?i:h.pop()}function f(){for(var h=arguments.length,x=new Array(h),m=0;m<h;m++)x[m]=arguments[m];var E=s(x);if(Array.isArray(x[0])&&(x=x[0]),x.length<2)throw new n("streams");var A,y=x.map(function(p,d){var g=d<x.length-1,v=d>0;return u(p,g,v,function(T){A||(A=T),T&&y.forEach(c),!g&&(y.forEach(c),E(A))})});return x.reduce(l)}return co=f,co}var fo,El;function E0(){if(El)return fo;El=1,fo=r;var e=$n().EventEmitter,t=jt();t(r,e),r.Readable=yl(),r.Writable=ul(),r.Duplex=Jt(),r.Transform=bl(),r.PassThrough=w0(),r.finished=io(),r.pipeline=v0(),r.Stream=r;function r(){e.call(this)}return r.prototype.pipe=function(n,o){var i=this;function a(x){n.writable&&n.write(x)===!1&&i.pause&&i.pause()}i.on("data",a);function u(){i.readable&&i.resume&&i.resume()}n.on("drain",u),!n._isStdio&&(!o||o.end!==!1)&&(i.on("end",l),i.on("close",s));var c=!1;function l(){c||(c=!0,n.end())}function s(){c||(c=!0,typeof n.destroy=="function"&&n.destroy())}function f(x){if(h(),e.listenerCount(this,"error")===0)throw x}i.on("error",f),n.on("error",f);function h(){i.removeListener("data",a),n.removeListener("drain",u),i.removeListener("end",l),i.removeListener("close",s),i.removeListener("error",f),n.removeListener("error",f),i.removeListener("end",h),i.removeListener("close",h),n.removeListener("close",h)}return i.on("end",h),i.on("close",h),n.on("close",h),n.emit("pipe",i),n},fo}var xl;function x0(){return xl||(xl=1,(function(e){(function(t){t.parser=function(R,N){return new n(R,N)},t.SAXParser=n,t.SAXStream=s,t.createStream=l,t.MAX_BUFFER_LENGTH=64*1024;var r=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function n(R,N){if(!(this instanceof n))return new n(R,N);var q=this;i(q),q.q=q.c="",q.bufferCheckPosition=t.MAX_BUFFER_LENGTH,q.opt=N||{},q.opt.lowercase=q.opt.lowercase||q.opt.lowercasetags,q.looseCase=q.opt.lowercase?"toLowerCase":"toUpperCase",q.tags=[],q.closed=q.closedRoot=q.sawRoot=!1,q.tag=q.error=null,q.strict=!!R,q.noscript=!!(R||q.opt.noscript),q.state=O.BEGIN,q.strictEntities=q.opt.strictEntities,q.ENTITIES=q.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),q.attribList=[],q.opt.xmlns&&(q.ns=Object.create(E)),q.opt.unquotedAttributeValues===void 0&&(q.opt.unquotedAttributeValues=!R),q.trackPosition=q.opt.position!==!1,q.trackPosition&&(q.position=q.line=q.column=0),K(q,"onready")}Object.create||(Object.create=function(R){function N(){}N.prototype=R;var q=new N;return q}),Object.keys||(Object.keys=function(R){var N=[];for(var q in R)R.hasOwnProperty(q)&&N.push(q);return N});function o(R){for(var N=Math.max(t.MAX_BUFFER_LENGTH,10),q=0,$=0,B=r.length;$<B;$++){var U=R[r[$]].length;if(U>N)switch(r[$]){case"textNode":k(R);break;case"cdata":L(R,"oncdata",R.cdata),R.cdata="";break;case"script":L(R,"onscript",R.script),R.script="";break;default:ee(R,"Max buffer length exceeded: "+r[$])}q=Math.max(q,U)}var J=t.MAX_BUFFER_LENGTH-q;R.bufferCheckPosition=J+R.position}function i(R){for(var N=0,q=r.length;N<q;N++)R[r[N]]=""}function a(R){k(R),R.cdata!==""&&(L(R,"oncdata",R.cdata),R.cdata=""),R.script!==""&&(L(R,"onscript",R.script),R.script="")}n.prototype={end:function(){ue(this)},write:V,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){a(this)}};var u;try{u=E0().Stream}catch{u=function(){}}u||(u=function(){});var c=t.EVENTS.filter(function(R){return R!=="error"&&R!=="end"});function l(R,N){return new s(R,N)}function s(R,N){if(!(this instanceof s))return new s(R,N);u.apply(this),this._parser=new n(R,N),this.writable=!0,this.readable=!0;var q=this;this._parser.onend=function(){q.emit("end")},this._parser.onerror=function($){q.emit("error",$),q._parser.error=null},this._decoder=null,c.forEach(function($){Object.defineProperty(q,"on"+$,{get:function(){return q._parser["on"+$]},set:function(B){if(!B)return q.removeAllListeners($),q._parser["on"+$]=B,B;q.on($,B)},enumerable:!0,configurable:!1})})}s.prototype=Object.create(u.prototype,{constructor:{value:s}}),s.prototype.write=function(R){if(typeof Ht=="function"&&typeof Ht.isBuffer=="function"&&Ht.isBuffer(R)){if(!this._decoder){var N=ro().StringDecoder;this._decoder=new N("utf8")}R=this._decoder.write(R)}return this._parser.write(R.toString()),this.emit("data",R),!0},s.prototype.end=function(R){return R&&R.length&&this.write(R),this._parser.end(),!0},s.prototype.on=function(R,N){var q=this;return!q._parser["on"+R]&&c.indexOf(R)!==-1&&(q._parser["on"+R]=function(){var $=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);$.splice(0,0,R),q.emit.apply(q,$)}),u.prototype.on.call(q,R,N)};var f="[CDATA[",h="DOCTYPE",x="http://www.w3.org/XML/1998/namespace",m="http://www.w3.org/2000/xmlns/",E={xml:x,xmlns:m},A=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,y=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,p=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,d=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function g(R){return R===" "||R===`
26
- `||R==="\r"||R===" "}function v(R){return R==='"'||R==="'"}function T(R){return R===">"||g(R)}function P(R,N){return R.test(N)}function I(R,N){return!P(R,N)}var O=0;t.STATE={BEGIN:O++,BEGIN_WHITESPACE:O++,TEXT:O++,TEXT_ENTITY:O++,OPEN_WAKA:O++,SGML_DECL:O++,SGML_DECL_QUOTED:O++,DOCTYPE:O++,DOCTYPE_QUOTED:O++,DOCTYPE_DTD:O++,DOCTYPE_DTD_QUOTED:O++,COMMENT_STARTING:O++,COMMENT:O++,COMMENT_ENDING:O++,COMMENT_ENDED:O++,CDATA:O++,CDATA_ENDING:O++,CDATA_ENDING_2:O++,PROC_INST:O++,PROC_INST_BODY:O++,PROC_INST_ENDING:O++,OPEN_TAG:O++,OPEN_TAG_SLASH:O++,ATTRIB:O++,ATTRIB_NAME:O++,ATTRIB_NAME_SAW_WHITE:O++,ATTRIB_VALUE:O++,ATTRIB_VALUE_QUOTED:O++,ATTRIB_VALUE_CLOSED:O++,ATTRIB_VALUE_UNQUOTED:O++,ATTRIB_VALUE_ENTITY_Q:O++,ATTRIB_VALUE_ENTITY_U:O++,CLOSE_TAG:O++,CLOSE_TAG_SAW_WHITE:O++,SCRIPT:O++,SCRIPT_ENDING:O++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(R){var N=t.ENTITIES[R],q=typeof N=="number"?String.fromCharCode(N):N;t.ENTITIES[R]=q});for(var j in t.STATE)t.STATE[t.STATE[j]]=j;O=t.STATE;function K(R,N,q){R[N]&&R[N](q)}function L(R,N,q){R.textNode&&k(R),K(R,N,q)}function k(R){R.textNode=re(R.opt,R.textNode),R.textNode&&K(R,"ontext",R.textNode),R.textNode=""}function re(R,N){return R.trim&&(N=N.trim()),R.normalize&&(N=N.replace(/\s+/g," ")),N}function ee(R,N){return k(R),R.trackPosition&&(N+=`
27
- Line: `+R.line+`
28
- Column: `+R.column+`
29
- Char: `+R.c),N=new Error(N),R.error=N,K(R,"onerror",N),R}function ue(R){return R.sawRoot&&!R.closedRoot&&le(R,"Unclosed root tag"),R.state!==O.BEGIN&&R.state!==O.BEGIN_WHITESPACE&&R.state!==O.TEXT&&ee(R,"Unexpected end"),k(R),R.c="",R.closed=!0,K(R,"onend"),n.call(R,R.strict,R.opt),R}function le(R,N){if(typeof R!="object"||!(R instanceof n))throw new Error("bad call to strictFail");R.strict&&ee(R,N)}function de(R){R.strict||(R.tagName=R.tagName[R.looseCase]());var N=R.tags[R.tags.length-1]||R,q=R.tag={name:R.tagName,attributes:{}};R.opt.xmlns&&(q.ns=N.ns),R.attribList.length=0,L(R,"onopentagstart",q)}function fe(R,N){var q=R.indexOf(":"),$=q<0?["",R]:R.split(":"),B=$[0],U=$[1];return N&&R==="xmlns"&&(B="xmlns",U=""),{prefix:B,local:U}}function be(R){if(R.strict||(R.attribName=R.attribName[R.looseCase]()),R.attribList.indexOf(R.attribName)!==-1||R.tag.attributes.hasOwnProperty(R.attribName)){R.attribName=R.attribValue="";return}if(R.opt.xmlns){var N=fe(R.attribName,!0),q=N.prefix,$=N.local;if(q==="xmlns")if($==="xml"&&R.attribValue!==x)le(R,"xml: prefix must be bound to "+x+`
30
- Actual: `+R.attribValue);else if($==="xmlns"&&R.attribValue!==m)le(R,"xmlns: prefix must be bound to "+m+`
31
- Actual: `+R.attribValue);else{var B=R.tag,U=R.tags[R.tags.length-1]||R;B.ns===U.ns&&(B.ns=Object.create(U.ns)),B.ns[$]=R.attribValue}R.attribList.push([R.attribName,R.attribValue])}else R.tag.attributes[R.attribName]=R.attribValue,L(R,"onattribute",{name:R.attribName,value:R.attribValue});R.attribName=R.attribValue=""}function pe(R,N){if(R.opt.xmlns){var q=R.tag,$=fe(R.tagName);q.prefix=$.prefix,q.local=$.local,q.uri=q.ns[$.prefix]||"",q.prefix&&!q.uri&&(le(R,"Unbound namespace prefix: "+JSON.stringify(R.tagName)),q.uri=$.prefix);var B=R.tags[R.tags.length-1]||R;q.ns&&B.ns!==q.ns&&Object.keys(q.ns).forEach(function(xe){L(R,"onopennamespace",{prefix:xe,uri:q.ns[xe]})});for(var U=0,J=R.attribList.length;U<J;U++){var oe=R.attribList[U],ge=oe[0],ce=oe[1],he=fe(ge,!0),Oe=he.prefix,te=he.local,He=Oe===""?"":q.ns[Oe]||"",De={name:ge,value:ce,prefix:Oe,local:te,uri:He};Oe&&Oe!=="xmlns"&&!He&&(le(R,"Unbound namespace prefix: "+JSON.stringify(Oe)),De.uri=Oe),R.tag.attributes[ge]=De,L(R,"onattribute",De)}R.attribList.length=0}R.tag.isSelfClosing=!!N,R.sawRoot=!0,R.tags.push(R.tag),L(R,"onopentag",R.tag),N||(!R.noscript&&R.tagName.toLowerCase()==="script"?R.state=O.SCRIPT:R.state=O.TEXT,R.tag=null,R.tagName=""),R.attribName=R.attribValue="",R.attribList.length=0}function G(R){if(!R.tagName){le(R,"Weird empty close tag."),R.textNode+="</>",R.state=O.TEXT;return}if(R.script){if(R.tagName!=="script"){R.script+="</"+R.tagName+">",R.tagName="",R.state=O.SCRIPT;return}L(R,"onscript",R.script),R.script=""}var N=R.tags.length,q=R.tagName;R.strict||(q=q[R.looseCase]());for(var $=q;N--;){var B=R.tags[N];if(B.name!==$)le(R,"Unexpected close tag");else break}if(N<0){le(R,"Unmatched closing tag: "+R.tagName),R.textNode+="</"+R.tagName+">",R.state=O.TEXT;return}R.tagName=q;for(var U=R.tags.length;U-- >N;){var J=R.tag=R.tags.pop();R.tagName=R.tag.name,L(R,"onclosetag",R.tagName);var oe={};for(var ge in J.ns)oe[ge]=J.ns[ge];var ce=R.tags[R.tags.length-1]||R;R.opt.xmlns&&J.ns!==ce.ns&&Object.keys(J.ns).forEach(function(he){var Oe=J.ns[he];L(R,"onclosenamespace",{prefix:he,uri:Oe})})}N===0&&(R.closedRoot=!0),R.tagName=R.attribValue=R.attribName="",R.attribList.length=0,R.state=O.TEXT}function Z(R){var N=R.entity,q=N.toLowerCase(),$,B="";return R.ENTITIES[N]?R.ENTITIES[N]:R.ENTITIES[q]?R.ENTITIES[q]:(N=q,N.charAt(0)==="#"&&(N.charAt(1)==="x"?(N=N.slice(2),$=parseInt(N,16),B=$.toString(16)):(N=N.slice(1),$=parseInt(N,10),B=$.toString(10))),N=N.replace(/^0+/,""),isNaN($)||B.toLowerCase()!==N?(le(R,"Invalid character entity"),"&"+R.entity+";"):String.fromCodePoint($))}function Q(R,N){N==="<"?(R.state=O.OPEN_WAKA,R.startTagPosition=R.position):g(N)||(le(R,"Non-whitespace before first tag."),R.textNode=N,R.state=O.TEXT)}function ae(R,N){var q="";return N<R.length&&(q=R.charAt(N)),q}function V(R){var N=this;if(this.error)throw this.error;if(N.closed)return ee(N,"Cannot write after close. Assign an onready handler.");if(R===null)return ue(N);typeof R=="object"&&(R=R.toString());for(var q=0,$="";$=ae(R,q++),N.c=$,!!$;)switch(N.trackPosition&&(N.position++,$===`
32
- `?(N.line++,N.column=0):N.column++),N.state){case O.BEGIN:if(N.state=O.BEGIN_WHITESPACE,$==="\uFEFF")continue;Q(N,$);continue;case O.BEGIN_WHITESPACE:Q(N,$);continue;case O.TEXT:if(N.sawRoot&&!N.closedRoot){for(var B=q-1;$&&$!=="<"&&$!=="&";)$=ae(R,q++),$&&N.trackPosition&&(N.position++,$===`
33
- `?(N.line++,N.column=0):N.column++);N.textNode+=R.substring(B,q-1)}$==="<"&&!(N.sawRoot&&N.closedRoot&&!N.strict)?(N.state=O.OPEN_WAKA,N.startTagPosition=N.position):(!g($)&&(!N.sawRoot||N.closedRoot)&&le(N,"Text data outside of root node."),$==="&"?N.state=O.TEXT_ENTITY:N.textNode+=$);continue;case O.SCRIPT:$==="<"?N.state=O.SCRIPT_ENDING:N.script+=$;continue;case O.SCRIPT_ENDING:$==="/"?N.state=O.CLOSE_TAG:(N.script+="<"+$,N.state=O.SCRIPT);continue;case O.OPEN_WAKA:if($==="!")N.state=O.SGML_DECL,N.sgmlDecl="";else if(!g($))if(P(A,$))N.state=O.OPEN_TAG,N.tagName=$;else if($==="/")N.state=O.CLOSE_TAG,N.tagName="";else if($==="?")N.state=O.PROC_INST,N.procInstName=N.procInstBody="";else{if(le(N,"Unencoded <"),N.startTagPosition+1<N.position){var U=N.position-N.startTagPosition;$=new Array(U).join(" ")+$}N.textNode+="<"+$,N.state=O.TEXT}continue;case O.SGML_DECL:if(N.sgmlDecl+$==="--"){N.state=O.COMMENT,N.comment="",N.sgmlDecl="";continue}N.doctype&&N.doctype!==!0&&N.sgmlDecl?(N.state=O.DOCTYPE_DTD,N.doctype+="<!"+N.sgmlDecl+$,N.sgmlDecl=""):(N.sgmlDecl+$).toUpperCase()===f?(L(N,"onopencdata"),N.state=O.CDATA,N.sgmlDecl="",N.cdata=""):(N.sgmlDecl+$).toUpperCase()===h?(N.state=O.DOCTYPE,(N.doctype||N.sawRoot)&&le(N,"Inappropriately located doctype declaration"),N.doctype="",N.sgmlDecl=""):$===">"?(L(N,"onsgmldeclaration",N.sgmlDecl),N.sgmlDecl="",N.state=O.TEXT):(v($)&&(N.state=O.SGML_DECL_QUOTED),N.sgmlDecl+=$);continue;case O.SGML_DECL_QUOTED:$===N.q&&(N.state=O.SGML_DECL,N.q=""),N.sgmlDecl+=$;continue;case O.DOCTYPE:$===">"?(N.state=O.TEXT,L(N,"ondoctype",N.doctype),N.doctype=!0):(N.doctype+=$,$==="["?N.state=O.DOCTYPE_DTD:v($)&&(N.state=O.DOCTYPE_QUOTED,N.q=$));continue;case O.DOCTYPE_QUOTED:N.doctype+=$,$===N.q&&(N.q="",N.state=O.DOCTYPE);continue;case O.DOCTYPE_DTD:$==="]"?(N.doctype+=$,N.state=O.DOCTYPE):$==="<"?(N.state=O.OPEN_WAKA,N.startTagPosition=N.position):v($)?(N.doctype+=$,N.state=O.DOCTYPE_DTD_QUOTED,N.q=$):N.doctype+=$;continue;case O.DOCTYPE_DTD_QUOTED:N.doctype+=$,$===N.q&&(N.state=O.DOCTYPE_DTD,N.q="");continue;case O.COMMENT:$==="-"?N.state=O.COMMENT_ENDING:N.comment+=$;continue;case O.COMMENT_ENDING:$==="-"?(N.state=O.COMMENT_ENDED,N.comment=re(N.opt,N.comment),N.comment&&L(N,"oncomment",N.comment),N.comment=""):(N.comment+="-"+$,N.state=O.COMMENT);continue;case O.COMMENT_ENDED:$!==">"?(le(N,"Malformed comment"),N.comment+="--"+$,N.state=O.COMMENT):N.doctype&&N.doctype!==!0?N.state=O.DOCTYPE_DTD:N.state=O.TEXT;continue;case O.CDATA:$==="]"?N.state=O.CDATA_ENDING:N.cdata+=$;continue;case O.CDATA_ENDING:$==="]"?N.state=O.CDATA_ENDING_2:(N.cdata+="]"+$,N.state=O.CDATA);continue;case O.CDATA_ENDING_2:$===">"?(N.cdata&&L(N,"oncdata",N.cdata),L(N,"onclosecdata"),N.cdata="",N.state=O.TEXT):$==="]"?N.cdata+="]":(N.cdata+="]]"+$,N.state=O.CDATA);continue;case O.PROC_INST:$==="?"?N.state=O.PROC_INST_ENDING:g($)?N.state=O.PROC_INST_BODY:N.procInstName+=$;continue;case O.PROC_INST_BODY:if(!N.procInstBody&&g($))continue;$==="?"?N.state=O.PROC_INST_ENDING:N.procInstBody+=$;continue;case O.PROC_INST_ENDING:$===">"?(L(N,"onprocessinginstruction",{name:N.procInstName,body:N.procInstBody}),N.procInstName=N.procInstBody="",N.state=O.TEXT):(N.procInstBody+="?"+$,N.state=O.PROC_INST_BODY);continue;case O.OPEN_TAG:P(y,$)?N.tagName+=$:(de(N),$===">"?pe(N):$==="/"?N.state=O.OPEN_TAG_SLASH:(g($)||le(N,"Invalid character in tag name"),N.state=O.ATTRIB));continue;case O.OPEN_TAG_SLASH:$===">"?(pe(N,!0),G(N)):(le(N,"Forward-slash in opening tag not followed by >"),N.state=O.ATTRIB);continue;case O.ATTRIB:if(g($))continue;$===">"?pe(N):$==="/"?N.state=O.OPEN_TAG_SLASH:P(A,$)?(N.attribName=$,N.attribValue="",N.state=O.ATTRIB_NAME):le(N,"Invalid attribute name");continue;case O.ATTRIB_NAME:$==="="?N.state=O.ATTRIB_VALUE:$===">"?(le(N,"Attribute without value"),N.attribValue=N.attribName,be(N),pe(N)):g($)?N.state=O.ATTRIB_NAME_SAW_WHITE:P(y,$)?N.attribName+=$:le(N,"Invalid attribute name");continue;case O.ATTRIB_NAME_SAW_WHITE:if($==="=")N.state=O.ATTRIB_VALUE;else{if(g($))continue;le(N,"Attribute without value"),N.tag.attributes[N.attribName]="",N.attribValue="",L(N,"onattribute",{name:N.attribName,value:""}),N.attribName="",$===">"?pe(N):P(A,$)?(N.attribName=$,N.state=O.ATTRIB_NAME):(le(N,"Invalid attribute name"),N.state=O.ATTRIB)}continue;case O.ATTRIB_VALUE:if(g($))continue;v($)?(N.q=$,N.state=O.ATTRIB_VALUE_QUOTED):(N.opt.unquotedAttributeValues||ee(N,"Unquoted attribute value"),N.state=O.ATTRIB_VALUE_UNQUOTED,N.attribValue=$);continue;case O.ATTRIB_VALUE_QUOTED:if($!==N.q){$==="&"?N.state=O.ATTRIB_VALUE_ENTITY_Q:N.attribValue+=$;continue}be(N),N.q="",N.state=O.ATTRIB_VALUE_CLOSED;continue;case O.ATTRIB_VALUE_CLOSED:g($)?N.state=O.ATTRIB:$===">"?pe(N):$==="/"?N.state=O.OPEN_TAG_SLASH:P(A,$)?(le(N,"No whitespace between attributes"),N.attribName=$,N.attribValue="",N.state=O.ATTRIB_NAME):le(N,"Invalid attribute name");continue;case O.ATTRIB_VALUE_UNQUOTED:if(!T($)){$==="&"?N.state=O.ATTRIB_VALUE_ENTITY_U:N.attribValue+=$;continue}be(N),$===">"?pe(N):N.state=O.ATTRIB;continue;case O.CLOSE_TAG:if(N.tagName)$===">"?G(N):P(y,$)?N.tagName+=$:N.script?(N.script+="</"+N.tagName,N.tagName="",N.state=O.SCRIPT):(g($)||le(N,"Invalid tagname in closing tag"),N.state=O.CLOSE_TAG_SAW_WHITE);else{if(g($))continue;I(A,$)?N.script?(N.script+="</"+$,N.state=O.SCRIPT):le(N,"Invalid tagname in closing tag."):N.tagName=$}continue;case O.CLOSE_TAG_SAW_WHITE:if(g($))continue;$===">"?G(N):le(N,"Invalid characters in closing tag");continue;case O.TEXT_ENTITY:case O.ATTRIB_VALUE_ENTITY_Q:case O.ATTRIB_VALUE_ENTITY_U:var J,oe;switch(N.state){case O.TEXT_ENTITY:J=O.TEXT,oe="textNode";break;case O.ATTRIB_VALUE_ENTITY_Q:J=O.ATTRIB_VALUE_QUOTED,oe="attribValue";break;case O.ATTRIB_VALUE_ENTITY_U:J=O.ATTRIB_VALUE_UNQUOTED,oe="attribValue";break}if($===";"){var ge=Z(N);N.opt.unparsedEntities&&!Object.values(t.XML_ENTITIES).includes(ge)?(N.entity="",N.state=J,N.write(ge)):(N[oe]+=ge,N.entity="",N.state=J)}else P(N.entity.length?d:p,$)?N.entity+=$:(le(N,"Invalid character in entity name"),N[oe]+="&"+N.entity+$,N.entity="",N.state=J);continue;default:throw new Error(N,"Unknown state: "+N.state)}return N.position>=N.bufferCheckPosition&&o(N),N}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||(function(){var R=String.fromCharCode,N=Math.floor,q=function(){var $=16384,B=[],U,J,oe=-1,ge=arguments.length;if(!ge)return"";for(var ce="";++oe<ge;){var he=Number(arguments[oe]);if(!isFinite(he)||he<0||he>1114111||N(he)!==he)throw RangeError("Invalid code point: "+he);he<=65535?B.push(he):(he-=65536,U=(he>>10)+55296,J=he%1024+56320,B.push(U,J)),(oe+1===ge||B.length>$)&&(ce+=R.apply(null,B),B.length=0)}return ce};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:q,configurable:!0,writable:!0}):String.fromCodePoint=q})()})(e)})(Mn)),Mn}var ho,Al;function po(){return Al||(Al=1,ho={isArray:function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"}}),ho}var go,Tl;function yo(){if(Tl)return go;Tl=1;var e=po().isArray;return go={copyOptions:function(t){var r,n={};for(r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return n},ensureFlagExists:function(t,r){(!(t in r)||typeof r[t]!="boolean")&&(r[t]=!1)},ensureSpacesExists:function(t){(!("spaces"in t)||typeof t.spaces!="number"&&typeof t.spaces!="string")&&(t.spaces=0)},ensureAlwaysArrayExists:function(t){(!("alwaysArray"in t)||typeof t.alwaysArray!="boolean"&&!e(t.alwaysArray))&&(t.alwaysArray=!1)},ensureKeyExists:function(t,r){(!(t+"Key"in r)||typeof r[t+"Key"]!="string")&&(r[t+"Key"]=r.compact?"_"+t:t)},checkFnExists:function(t,r){return t+"Fn"in r}},go}var mo,Sl;function _l(){if(Sl)return mo;Sl=1;var e=x0(),t=yo(),r=po().isArray,n,o;function i(y){return n=t.copyOptions(y),t.ensureFlagExists("ignoreDeclaration",n),t.ensureFlagExists("ignoreInstruction",n),t.ensureFlagExists("ignoreAttributes",n),t.ensureFlagExists("ignoreText",n),t.ensureFlagExists("ignoreComment",n),t.ensureFlagExists("ignoreCdata",n),t.ensureFlagExists("ignoreDoctype",n),t.ensureFlagExists("compact",n),t.ensureFlagExists("alwaysChildren",n),t.ensureFlagExists("addParent",n),t.ensureFlagExists("trim",n),t.ensureFlagExists("nativeType",n),t.ensureFlagExists("nativeTypeAttributes",n),t.ensureFlagExists("sanitize",n),t.ensureFlagExists("instructionHasAttributes",n),t.ensureFlagExists("captureSpacesBetweenElements",n),t.ensureAlwaysArrayExists(n),t.ensureKeyExists("declaration",n),t.ensureKeyExists("instruction",n),t.ensureKeyExists("attributes",n),t.ensureKeyExists("text",n),t.ensureKeyExists("comment",n),t.ensureKeyExists("cdata",n),t.ensureKeyExists("doctype",n),t.ensureKeyExists("type",n),t.ensureKeyExists("name",n),t.ensureKeyExists("elements",n),t.ensureKeyExists("parent",n),t.checkFnExists("doctype",n),t.checkFnExists("instruction",n),t.checkFnExists("cdata",n),t.checkFnExists("comment",n),t.checkFnExists("text",n),t.checkFnExists("instructionName",n),t.checkFnExists("elementName",n),t.checkFnExists("attributeName",n),t.checkFnExists("attributeValue",n),t.checkFnExists("attributes",n),n}function a(y){var p=Number(y);if(!isNaN(p))return p;var d=y.toLowerCase();return d==="true"?!0:d==="false"?!1:y}function u(y,p){var d;if(n.compact){if(!o[n[y+"Key"]]&&(r(n.alwaysArray)?n.alwaysArray.indexOf(n[y+"Key"])!==-1:n.alwaysArray)&&(o[n[y+"Key"]]=[]),o[n[y+"Key"]]&&!r(o[n[y+"Key"]])&&(o[n[y+"Key"]]=[o[n[y+"Key"]]]),y+"Fn"in n&&typeof p=="string"&&(p=n[y+"Fn"](p,o)),y==="instruction"&&("instructionFn"in n||"instructionNameFn"in n)){for(d in p)if(p.hasOwnProperty(d))if("instructionFn"in n)p[d]=n.instructionFn(p[d],d,o);else{var g=p[d];delete p[d],p[n.instructionNameFn(d,g,o)]=g}}r(o[n[y+"Key"]])?o[n[y+"Key"]].push(p):o[n[y+"Key"]]=p}else{o[n.elementsKey]||(o[n.elementsKey]=[]);var v={};if(v[n.typeKey]=y,y==="instruction"){for(d in p)if(p.hasOwnProperty(d))break;v[n.nameKey]="instructionNameFn"in n?n.instructionNameFn(d,p,o):d,n.instructionHasAttributes?(v[n.attributesKey]=p[d][n.attributesKey],"instructionFn"in n&&(v[n.attributesKey]=n.instructionFn(v[n.attributesKey],d,o))):("instructionFn"in n&&(p[d]=n.instructionFn(p[d],d,o)),v[n.instructionKey]=p[d])}else y+"Fn"in n&&(p=n[y+"Fn"](p,o)),v[n[y+"Key"]]=p;n.addParent&&(v[n.parentKey]=o),o[n.elementsKey].push(v)}}function c(y){if("attributesFn"in n&&y&&(y=n.attributesFn(y,o)),(n.trim||"attributeValueFn"in n||"attributeNameFn"in n||n.nativeTypeAttributes)&&y){var p;for(p in y)if(y.hasOwnProperty(p)&&(n.trim&&(y[p]=y[p].trim()),n.nativeTypeAttributes&&(y[p]=a(y[p])),"attributeValueFn"in n&&(y[p]=n.attributeValueFn(y[p],p,o)),"attributeNameFn"in n)){var d=y[p];delete y[p],y[n.attributeNameFn(p,y[p],o)]=d}}return y}function l(y){var p={};if(y.body&&(y.name.toLowerCase()==="xml"||n.instructionHasAttributes)){for(var d=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,g;(g=d.exec(y.body))!==null;)p[g[1]]=g[2]||g[3]||g[4];p=c(p)}if(y.name.toLowerCase()==="xml"){if(n.ignoreDeclaration)return;o[n.declarationKey]={},Object.keys(p).length&&(o[n.declarationKey][n.attributesKey]=p),n.addParent&&(o[n.declarationKey][n.parentKey]=o)}else{if(n.ignoreInstruction)return;n.trim&&(y.body=y.body.trim());var v={};n.instructionHasAttributes&&Object.keys(p).length?(v[y.name]={},v[y.name][n.attributesKey]=p):v[y.name]=y.body,u("instruction",v)}}function s(y,p){var d;if(typeof y=="object"&&(p=y.attributes,y=y.name),p=c(p),"elementNameFn"in n&&(y=n.elementNameFn(y,o)),n.compact){if(d={},!n.ignoreAttributes&&p&&Object.keys(p).length){d[n.attributesKey]={};var g;for(g in p)p.hasOwnProperty(g)&&(d[n.attributesKey][g]=p[g])}!(y in o)&&(r(n.alwaysArray)?n.alwaysArray.indexOf(y)!==-1:n.alwaysArray)&&(o[y]=[]),o[y]&&!r(o[y])&&(o[y]=[o[y]]),r(o[y])?o[y].push(d):o[y]=d}else o[n.elementsKey]||(o[n.elementsKey]=[]),d={},d[n.typeKey]="element",d[n.nameKey]=y,!n.ignoreAttributes&&p&&Object.keys(p).length&&(d[n.attributesKey]=p),n.alwaysChildren&&(d[n.elementsKey]=[]),o[n.elementsKey].push(d);d[n.parentKey]=o,o=d}function f(y){n.ignoreText||!y.trim()&&!n.captureSpacesBetweenElements||(n.trim&&(y=y.trim()),n.nativeType&&(y=a(y)),n.sanitize&&(y=y.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),u("text",y))}function h(y){n.ignoreComment||(n.trim&&(y=y.trim()),u("comment",y))}function x(y){var p=o[n.parentKey];n.addParent||delete o[n.parentKey],o=p}function m(y){n.ignoreCdata||(n.trim&&(y=y.trim()),u("cdata",y))}function E(y){n.ignoreDoctype||(y=y.replace(/^ /,""),n.trim&&(y=y.trim()),u("doctype",y))}function A(y){y.note=y}return mo=function(y,p){var d=e.parser(!0,{}),g={};if(o=g,n=i(p),d.opt={strictEntities:!0},d.onopentag=s,d.ontext=f,d.oncomment=h,d.onclosetag=x,d.onerror=A,d.oncdata=m,d.ondoctype=E,d.onprocessinginstruction=l,d.write(y).close(),g[n.elementsKey]){var v=g[n.elementsKey];delete g[n.elementsKey],g[n.elementsKey]=v,delete g.text}return g},mo}var bo,Ol;function A0(){if(Ol)return bo;Ol=1;var e=yo(),t=_l();function r(n){var o=e.copyOptions(n);return e.ensureSpacesExists(o),o}return bo=function(n,o){var i,a,u,c;return i=r(o),a=t(n,i),c="compact"in i&&i.compact?"_parent":"parent","addParent"in i&&i.addParent?u=JSON.stringify(a,function(l,s){return l===c?"_":s},i.spaces):u=JSON.stringify(a,null,i.spaces),u.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},bo}var wo,Nl;function Rl(){if(Nl)return wo;Nl=1;var e=yo(),t=po().isArray,r,n;function o(d){var g=e.copyOptions(d);return e.ensureFlagExists("ignoreDeclaration",g),e.ensureFlagExists("ignoreInstruction",g),e.ensureFlagExists("ignoreAttributes",g),e.ensureFlagExists("ignoreText",g),e.ensureFlagExists("ignoreComment",g),e.ensureFlagExists("ignoreCdata",g),e.ensureFlagExists("ignoreDoctype",g),e.ensureFlagExists("compact",g),e.ensureFlagExists("indentText",g),e.ensureFlagExists("indentCdata",g),e.ensureFlagExists("indentAttributes",g),e.ensureFlagExists("indentInstruction",g),e.ensureFlagExists("fullTagEmptyElement",g),e.ensureFlagExists("noQuotesForNativeAttributes",g),e.ensureSpacesExists(g),typeof g.spaces=="number"&&(g.spaces=Array(g.spaces+1).join(" ")),e.ensureKeyExists("declaration",g),e.ensureKeyExists("instruction",g),e.ensureKeyExists("attributes",g),e.ensureKeyExists("text",g),e.ensureKeyExists("comment",g),e.ensureKeyExists("cdata",g),e.ensureKeyExists("doctype",g),e.ensureKeyExists("type",g),e.ensureKeyExists("name",g),e.ensureKeyExists("elements",g),e.checkFnExists("doctype",g),e.checkFnExists("instruction",g),e.checkFnExists("cdata",g),e.checkFnExists("comment",g),e.checkFnExists("text",g),e.checkFnExists("instructionName",g),e.checkFnExists("elementName",g),e.checkFnExists("attributeName",g),e.checkFnExists("attributeValue",g),e.checkFnExists("attributes",g),e.checkFnExists("fullTagEmptyElement",g),g}function i(d,g,v){return(!v&&d.spaces?`
34
- `:"")+Array(g+1).join(d.spaces)}function a(d,g,v){if(g.ignoreAttributes)return"";"attributesFn"in g&&(d=g.attributesFn(d,n,r));var T,P,I,O,j=[];for(T in d)d.hasOwnProperty(T)&&d[T]!==null&&d[T]!==void 0&&(O=g.noQuotesForNativeAttributes&&typeof d[T]!="string"?"":'"',P=""+d[T],P=P.replace(/"/g,"&quot;"),I="attributeNameFn"in g?g.attributeNameFn(T,P,n,r):T,j.push(g.spaces&&g.indentAttributes?i(g,v+1,!1):" "),j.push(I+"="+O+("attributeValueFn"in g?g.attributeValueFn(P,T,n,r):P)+O));return d&&Object.keys(d).length&&g.spaces&&g.indentAttributes&&j.push(i(g,v,!1)),j.join("")}function u(d,g,v){return r=d,n="xml",g.ignoreDeclaration?"":"<?xml"+a(d[g.attributesKey],g,v)+"?>"}function c(d,g,v){if(g.ignoreInstruction)return"";var T;for(T in d)if(d.hasOwnProperty(T))break;var P="instructionNameFn"in g?g.instructionNameFn(T,d[T],n,r):T;if(typeof d[T]=="object")return r=d,n=P,"<?"+P+a(d[T][g.attributesKey],g,v)+"?>";var I=d[T]?d[T]:"";return"instructionFn"in g&&(I=g.instructionFn(I,T,n,r)),"<?"+P+(I?" "+I:"")+"?>"}function l(d,g){return g.ignoreComment?"":"<!--"+("commentFn"in g?g.commentFn(d,n,r):d)+"-->"}function s(d,g){return g.ignoreCdata?"":"<![CDATA["+("cdataFn"in g?g.cdataFn(d,n,r):d.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function f(d,g){return g.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in g?g.doctypeFn(d,n,r):d)+">"}function h(d,g){return g.ignoreText?"":(d=""+d,d=d.replace(/&amp;/g,"&"),d=d.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"textFn"in g?g.textFn(d,n,r):d)}function x(d,g){var v;if(d.elements&&d.elements.length)for(v=0;v<d.elements.length;++v)switch(d.elements[v][g.typeKey]){case"text":if(g.indentText)return!0;break;case"cdata":if(g.indentCdata)return!0;break;case"instruction":if(g.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}function m(d,g,v){r=d,n=d.name;var T=[],P="elementNameFn"in g?g.elementNameFn(d.name,d):d.name;T.push("<"+P),d[g.attributesKey]&&T.push(a(d[g.attributesKey],g,v));var I=d[g.elementsKey]&&d[g.elementsKey].length||d[g.attributesKey]&&d[g.attributesKey]["xml:space"]==="preserve";return I||("fullTagEmptyElementFn"in g?I=g.fullTagEmptyElementFn(d.name,d):I=g.fullTagEmptyElement),I?(T.push(">"),d[g.elementsKey]&&d[g.elementsKey].length&&(T.push(E(d[g.elementsKey],g,v+1)),r=d,n=d.name),T.push(g.spaces&&x(d,g)?`
35
- `+Array(v+1).join(g.spaces):""),T.push("</"+P+">")):T.push("/>"),T.join("")}function E(d,g,v,T){return d.reduce(function(P,I){var O=i(g,v,T&&!P);switch(I.type){case"element":return P+O+m(I,g,v);case"comment":return P+O+l(I[g.commentKey],g);case"doctype":return P+O+f(I[g.doctypeKey],g);case"cdata":return P+(g.indentCdata?O:"")+s(I[g.cdataKey],g);case"text":return P+(g.indentText?O:"")+h(I[g.textKey],g);case"instruction":var j={};return j[I[g.nameKey]]=I[g.attributesKey]?I:I[g.instructionKey],P+(g.indentInstruction?O:"")+c(j,g,v)}},"")}function A(d,g,v){var T;for(T in d)if(d.hasOwnProperty(T))switch(T){case g.parentKey:case g.attributesKey:break;case g.textKey:if(g.indentText||v)return!0;break;case g.cdataKey:if(g.indentCdata||v)return!0;break;case g.instructionKey:if(g.indentInstruction||v)return!0;break;case g.doctypeKey:case g.commentKey:return!0;default:return!0}return!1}function y(d,g,v,T,P){r=d,n=g;var I="elementNameFn"in v?v.elementNameFn(g,d):g;if(typeof d>"u"||d===null||d==="")return"fullTagEmptyElementFn"in v&&v.fullTagEmptyElementFn(g,d)||v.fullTagEmptyElement?"<"+I+"></"+I+">":"<"+I+"/>";var O=[];if(g){if(O.push("<"+I),typeof d!="object")return O.push(">"+h(d,v)+"</"+I+">"),O.join("");d[v.attributesKey]&&O.push(a(d[v.attributesKey],v,T));var j=A(d,v,!0)||d[v.attributesKey]&&d[v.attributesKey]["xml:space"]==="preserve";if(j||("fullTagEmptyElementFn"in v?j=v.fullTagEmptyElementFn(g,d):j=v.fullTagEmptyElement),j)O.push(">");else return O.push("/>"),O.join("")}return O.push(p(d,v,T+1,!1)),r=d,n=g,g&&O.push((P?i(v,T,!1):"")+"</"+I+">"),O.join("")}function p(d,g,v,T){var P,I,O,j=[];for(I in d)if(d.hasOwnProperty(I))for(O=t(d[I])?d[I]:[d[I]],P=0;P<O.length;++P){switch(I){case g.declarationKey:j.push(u(O[P],g,v));break;case g.instructionKey:j.push((g.indentInstruction?i(g,v,T):"")+c(O[P],g,v));break;case g.attributesKey:case g.parentKey:break;case g.textKey:j.push((g.indentText?i(g,v,T):"")+h(O[P],g));break;case g.cdataKey:j.push((g.indentCdata?i(g,v,T):"")+s(O[P],g));break;case g.doctypeKey:j.push(i(g,v,T)+f(O[P],g));break;case g.commentKey:j.push(i(g,v,T)+l(O[P],g));break;default:j.push(i(g,v,T)+y(O[P],I,g,v,A(O[P],g)))}T=T&&!j.length}return j.join("")}return wo=function(d,g){g=o(g);var v=[];return r=d,n="_root_",g.compact?v.push(p(d,g,0,!0)):(d[g.declarationKey]&&v.push(u(d[g.declarationKey],g,0)),d[g.elementsKey]&&d[g.elementsKey].length&&v.push(E(d[g.elementsKey],g,0,!v.length))),v.join("")},wo}var vo,Pl;function T0(){if(Pl)return vo;Pl=1;var e=Rl();return vo=function(t,r){t instanceof Ht&&(t=t.toString());var n=null;if(typeof t=="string")try{n=JSON.parse(t)}catch{throw new Error("The JSON structure is invalid")}else n=t;return e(n,r)},vo}var Eo,Il;function S0(){if(Il)return Eo;Il=1;var e=_l(),t=A0(),r=Rl(),n=T0();return Eo={xml2js:e,xml2json:t,js2xml:r,json2xml:n},Eo}var _0=S0(),O0=cn(_0);/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function N0(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function dr(e,t=""){if(!Number.isSafeInteger(e)||e<0){const r=t&&`"${t}" `;throw new Error(`${r}expected integer >0, got ${e}`)}}function pr(e,t,r=""){const n=N0(e),o=e?.length,i=t!==void 0;if(!n||i&&o!==t){const a=r&&`"${r}" `,u=i?` of length ${t}`:"",c=n?`length=${o}`:`type=${typeof e}`;throw new Error(a+"expected Uint8Array"+u+", got "+c)}return e}function Fl(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash must wrapped by utils.createHasher");dr(e.outputLen),dr(e.blockLen)}function Kr(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function R0(e,t){pr(e,void 0,"digestInto() output");const r=t.outputLen;if(e.length<r)throw new Error('"digestInto() output" expected to be of length >='+r)}function gr(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function zr(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function P0(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function Cl(e,t=""){return typeof e=="string"?P0(e):pr(e,void 0,t)}function I0(e,t){if(t!==void 0&&{}.toString.call(t)!=="[object Object]")throw new Error("options must be object or undefined");return Object.assign(e,t)}function F0(e,t={}){const r=(o,i)=>e(i).update(o).digest(),n=e(void 0);return r.outputLen=n.outputLen,r.blockLen=n.blockLen,r.create=o=>e(o),Object.assign(r,t),Object.freeze(r)}const C0=e=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,e])});class Bl{oHash;iHash;blockLen;outputLen;finished=!1;destroyed=!1;constructor(t,r){if(Fl(t),pr(r,void 0,"key"),this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const n=this.blockLen,o=new Uint8Array(n);o.set(r.length>n?t.create().update(r).digest():r);for(let i=0;i<o.length;i++)o[i]^=54;this.iHash.update(o),this.oHash=t.create();for(let i=0;i<o.length;i++)o[i]^=106;this.oHash.update(o),gr(o)}update(t){return Kr(this),this.iHash.update(t),this}digestInto(t){Kr(this),pr(t,this.outputLen,"output"),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||=Object.create(Object.getPrototypeOf(this),{});const{oHash:r,iHash:n,finished:o,destroyed:i,blockLen:a,outputLen:u}=this;return t=t,t.finished=o,t.destroyed=i,t.blockLen=a,t.outputLen=u,t.oHash=r._cloneInto(t.oHash),t.iHash=n._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const Ll=(e,t,r)=>new Bl(e,t).update(r).digest();Ll.create=(e,t)=>new Bl(e,t);function B0(e,t,r,n){Fl(e);const o=I0({dkLen:32,asyncTick:10},n),{c:i,dkLen:a,asyncTick:u}=o;if(dr(i,"c"),dr(a,"dkLen"),dr(u,"asyncTick"),i<1)throw new Error("iterations (c) must be >= 1");const c=Cl(t,"password"),l=Cl(r,"salt"),s=new Uint8Array(a),f=Ll.create(e,c),h=f._cloneInto().update(l);return{c:i,dkLen:a,asyncTick:u,DK:s,PRF:f,PRFSalt:h}}function L0(e,t,r,n,o){return e.destroy(),t.destroy(),n&&n.destroy(),gr(o),r}function U0(e,t,r,n){const{c:o,dkLen:i,DK:a,PRF:u,PRFSalt:c}=B0(e,t,r,n);let l;const s=new Uint8Array(4),f=zr(s),h=new Uint8Array(u.outputLen);for(let x=1,m=0;m<i;x++,m+=u.outputLen){const E=a.subarray(m,m+u.outputLen);f.setInt32(0,x,!1),(l=c._cloneInto(l)).update(s).digestInto(h),E.set(h.subarray(0,E.length));for(let A=1;A<o;A++){u._cloneInto(l).update(h).digestInto(h);for(let y=0;y<E.length;y++)E[y]^=h[y]}}return L0(u,c,a,l,h)}class j0{blockLen;outputLen;padOffset;isLE;buffer;view;finished=!1;length=0;pos=0;destroyed=!1;constructor(t,r,n,o){this.blockLen=t,this.outputLen=r,this.padOffset=n,this.isLE=o,this.buffer=new Uint8Array(t),this.view=zr(this.buffer)}update(t){Kr(this),pr(t);const{view:r,buffer:n,blockLen:o}=this,i=t.length;for(let a=0;a<i;){const u=Math.min(o-this.pos,i-a);if(u===o){const c=zr(t);for(;o<=i-a;a+=o)this.process(c,a);continue}n.set(t.subarray(a,a+u),this.pos),this.pos+=u,a+=u,this.pos===o&&(this.process(r,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){Kr(this),R0(t,this),this.finished=!0;const{buffer:r,view:n,blockLen:o,isLE:i}=this;let{pos:a}=this;r[a++]=128,gr(this.buffer.subarray(a)),this.padOffset>o-a&&(this.process(n,0),a=0);for(let f=a;f<o;f++)r[f]=0;n.setBigUint64(o-8,BigInt(this.length*8),i),this.process(n,0);const u=zr(t),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen must be aligned to 32bit");const l=c/4,s=this.get();if(l>s.length)throw new Error("_sha2: outputLen bigger than state");for(let f=0;f<l;f++)u.setUint32(4*f,s[f],i)}digest(){const{buffer:t,outputLen:r}=this;this.digestInto(t);const n=t.slice(0,r);return this.destroy(),n}_cloneInto(t){t||=new this.constructor,t.set(...this.get());const{blockLen:r,buffer:n,length:o,finished:i,destroyed:a,pos:u}=this;return t.destroyed=a,t.finished=i,t.length=o,t.pos=u,o%r&&t.buffer.set(n),t}clone(){return this._cloneInto()}}const ze=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),Xr=BigInt(2**32-1),Ul=BigInt(32);function k0(e,t=!1){return t?{h:Number(e&Xr),l:Number(e>>Ul&Xr)}:{h:Number(e>>Ul&Xr)|0,l:Number(e&Xr)|0}}function D0(e,t=!1){const r=e.length;let n=new Uint32Array(r),o=new Uint32Array(r);for(let i=0;i<r;i++){const{h:a,l:u}=k0(e[i],t);[n[i],o[i]]=[a,u]}return[n,o]}const jl=(e,t,r)=>e>>>r,kl=(e,t,r)=>e<<32-r|t>>>r,Zt=(e,t,r)=>e>>>r|t<<32-r,Qt=(e,t,r)=>e<<32-r|t>>>r,Yr=(e,t,r)=>e<<64-r|t>>>r-32,Jr=(e,t,r)=>e>>>r-32|t<<64-r;function Et(e,t,r,n){const o=(t>>>0)+(n>>>0);return{h:e+r+(o/2**32|0)|0,l:o|0}}const M0=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),$0=(e,t,r,n)=>t+r+n+(e/2**32|0)|0,q0=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),H0=(e,t,r,n,o)=>t+r+n+o+(e/2**32|0)|0,V0=(e,t,r,n,o)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(o>>>0),W0=(e,t,r,n,o,i)=>t+r+n+o+i+(e/2**32|0)|0,Dl=D0(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),G0=Dl[0],K0=Dl[1],_t=new Uint32Array(80),Ot=new Uint32Array(80);class z0 extends j0{constructor(t){super(128,t,16,!1)}get(){const{Ah:t,Al:r,Bh:n,Bl:o,Ch:i,Cl:a,Dh:u,Dl:c,Eh:l,El:s,Fh:f,Fl:h,Gh:x,Gl:m,Hh:E,Hl:A}=this;return[t,r,n,o,i,a,u,c,l,s,f,h,x,m,E,A]}set(t,r,n,o,i,a,u,c,l,s,f,h,x,m,E,A){this.Ah=t|0,this.Al=r|0,this.Bh=n|0,this.Bl=o|0,this.Ch=i|0,this.Cl=a|0,this.Dh=u|0,this.Dl=c|0,this.Eh=l|0,this.El=s|0,this.Fh=f|0,this.Fl=h|0,this.Gh=x|0,this.Gl=m|0,this.Hh=E|0,this.Hl=A|0}process(t,r){for(let d=0;d<16;d++,r+=4)_t[d]=t.getUint32(r),Ot[d]=t.getUint32(r+=4);for(let d=16;d<80;d++){const g=_t[d-15]|0,v=Ot[d-15]|0,T=Zt(g,v,1)^Zt(g,v,8)^jl(g,v,7),P=Qt(g,v,1)^Qt(g,v,8)^kl(g,v,7),I=_t[d-2]|0,O=Ot[d-2]|0,j=Zt(I,O,19)^Yr(I,O,61)^jl(I,O,6),K=Qt(I,O,19)^Jr(I,O,61)^kl(I,O,6),L=q0(P,K,Ot[d-7],Ot[d-16]),k=H0(L,T,j,_t[d-7],_t[d-16]);_t[d]=k|0,Ot[d]=L|0}let{Ah:n,Al:o,Bh:i,Bl:a,Ch:u,Cl:c,Dh:l,Dl:s,Eh:f,El:h,Fh:x,Fl:m,Gh:E,Gl:A,Hh:y,Hl:p}=this;for(let d=0;d<80;d++){const g=Zt(f,h,14)^Zt(f,h,18)^Yr(f,h,41),v=Qt(f,h,14)^Qt(f,h,18)^Jr(f,h,41),T=f&x^~f&E,P=h&m^~h&A,I=V0(p,v,P,K0[d],Ot[d]),O=W0(I,y,g,T,G0[d],_t[d]),j=I|0,K=Zt(n,o,28)^Yr(n,o,34)^Yr(n,o,39),L=Qt(n,o,28)^Jr(n,o,34)^Jr(n,o,39),k=n&i^n&u^i&u,re=o&a^o&c^a&c;y=E|0,p=A|0,E=x|0,A=m|0,x=f|0,m=h|0,{h:f,l:h}=Et(l|0,s|0,O|0,j|0),l=u|0,s=c|0,u=i|0,c=a|0,i=n|0,a=o|0;const ee=M0(j,L,re);n=$0(ee,O,K,k),o=ee|0}({h:n,l:o}=Et(this.Ah|0,this.Al|0,n|0,o|0)),{h:i,l:a}=Et(this.Bh|0,this.Bl|0,i|0,a|0),{h:u,l:c}=Et(this.Ch|0,this.Cl|0,u|0,c|0),{h:l,l:s}=Et(this.Dh|0,this.Dl|0,l|0,s|0),{h:f,l:h}=Et(this.Eh|0,this.El|0,f|0,h|0),{h:x,l:m}=Et(this.Fh|0,this.Fl|0,x|0,m|0),{h:E,l:A}=Et(this.Gh|0,this.Gl|0,E|0,A|0),{h:y,l:p}=Et(this.Hh|0,this.Hl|0,y|0,p|0),this.set(n,o,i,a,u,c,l,s,f,h,x,m,E,A,y,p)}roundClean(){gr(_t,Ot)}destroy(){gr(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class X0 extends z0{Ah=ze[0]|0;Al=ze[1]|0;Bh=ze[2]|0;Bl=ze[3]|0;Ch=ze[4]|0;Cl=ze[5]|0;Dh=ze[6]|0;Dl=ze[7]|0;Eh=ze[8]|0;El=ze[9]|0;Fh=ze[10]|0;Fl=ze[11]|0;Gh=ze[12]|0;Gl=ze[13]|0;Hh=ze[14]|0;Hl=ze[15]|0;constructor(){super(64)}}const Y0=F0(()=>new X0,C0(3)),J0=(e,t,r,n)=>Ht.from(U0(Y0,e,t,{c:r,dkLen:n}));class Z0{axiosClient;baseURI;signingKey;ALGORITHM="sha512";TTL=1200;HASH_LENGTH=32;ITERATION_COUNT=1e4;constructor({axiosClient:t,baseURI:r}){this.axiosClient=t,this.baseURI=r}async signUrl(t,r){const n=new URL(t);n.searchParams.set("OC-Credential",r),n.searchParams.set("OC-Date",new Date().toISOString()),n.searchParams.set("OC-Expires",this.TTL.toString()),n.searchParams.set("OC-Verb","GET");const o=await this.createHashedKey(n.toString());return n.searchParams.set("OC-Algo",`PBKDF2/${this.ITERATION_COUNT}-SHA512`),n.searchParams.set("OC-Signature",o),n.toString()}async getSignKey(){if(this.signingKey)return this.signingKey;const t=await this.axiosClient.get(Ee(this.baseURI,"ocs/v1.php/cloud/user/signing-key"),{headers:{"Content-Type":"application/x-www-form-urlencoded"}}),r=O0.xml2js(t.data,{compact:!0});return this.signingKey=r.ocs.data["signing-key"]._text,this.signingKey}async createHashedKey(t){const r=await this.getSignKey();return J0(t,r,this.ITERATION_COUNT,this.HASH_LENGTH,this.ALGORITHM).toString("hex")}}const Q0=(e,t)=>{const r=new URL(e);r.pathname=[...r.pathname.split("/"),"ocs","v1.php"].filter(Boolean).join("/");const n=r.href,o=Cg(n,t),i=new Z0({baseURI:e,axiosClient:t});return{getCapabilities:()=>o.getCapabilities(),signUrl:(a,u)=>i.signUrl(a,u)}},xt=(e,{fileId:t,path:r,name:n})=>{if(r!==void 0)return Ee(e.webDavPath,r);if(t!==void 0){if(kn(e))throw new Error("public spaces need a path provided");return Ee("spaces",t,n||"")}return e.webDavPath},ey=(e,t)=>({copyFiles(r,{path:n,fileId:o},i,{path:a,parentFolderId:u,name:c},{overwrite:l,...s}={}){const f=xt(r,{fileId:o,path:n}),h=xt(i,{fileId:u,path:a,name:c});return e.copy(f,h,{overwrite:l||!1,...s})}}),ty=(e,t,r)=>({async createFolder(n,{path:o,parentFolderId:i,folderName:a,fetchFolder:u=!0,...c}){const l=xt(n,{fileId:i,path:o,name:a});if(await e.mkcol(l),u)return t.getFileInfo(n,{path:o},c)}}),ry=(e,{axiosClient:t})=>({async getFileContents(r,{fileId:n,path:o},{responseType:i="text",noCache:a=!0,headers:u,...c}={}){try{const l=xt(r,{fileId:n,path:o}),s=await t.get(e.getFileUrl(l),{responseType:i,headers:{...a&&{"Cache-Control":"no-cache"},...u||{}},...c});return{response:s,body:s.data,headers:{ETag:s.headers.etag,"OC-ETag":s.headers["oc-etag"],"OC-FileId":s.headers["oc-fileid"]}}}catch(l){const{message:s,response:f}=l;throw new ra(s,f,f.status)}}}),ny=(e,t)=>({async getFileInfo(r,n,o){return(await e.listFiles(r,n,{depth:0,...o})).resource}}),iy=(e,t,{axiosClient:r,baseUrl:n})=>({async getFileUrl(o,i,{disposition:a="attachment",isUrlSigningEnabled:u=!1,signUrlTimeout:c=86400,version:l=null,doHeadRequest:s=!1,username:f="",...h}){const x=a==="inline";let{downloadURL:m}=i,E=!0;if(!m&&!x&&(m=l?e.getFileUrl(Ee("meta",i.fileId,"v",l)):e.getFileUrl(i.webDavPath),f&&s&&await r.head(m),u&&f?m=await Q0(n,r).signUrl(m,f):E=!1),!E||x){const A=await t.getFileContents(o,i,{responseType:"blob",...h});m=URL.createObjectURL(A.body)}return m},revokeUrl:o=>{o&&o.startsWith("blob:")&&URL.revokeObjectURL(o)}}),oy=(e,t)=>({getPublicFileUrl(r,n){return e.getFileUrl(Ee("public-files",n))}}),sy=(e,t,r)=>({async listFiles(n,{path:o,fileId:i}={},{depth:a=1,davProperties:u,isTrash:c=!1,...l}={}){let s;if(kn(n)){s=await e.propfind(Ee(n.webDavPath,o),{depth:a,properties:u||Bt.PublicLink,...l}),s.forEach(m=>{m.filename=m.filename.split("/").slice(1).join("/")}),s.length===1&&(s[0].filename=Ee(n.id,o,{leadingSlash:!0})),s.forEach(m=>{m.filename=m.filename.split("/").slice(2).join("/")});const h=n.driveAlias.startsWith("ocm/")?"ocm":"public-link";if((!o||o==="/")&&a>0&&h==="ocm"&&s[0].props[se.PublicLinkItemType]==="file"&&(s=[{basename:n.fileId,type:"directory",filename:"",props:{}},...s]),!o){const[m,...E]=s;return{resource:Ig({...m,id:n.id,driveAlias:n.driveAlias,webDavPath:n.webDavPath,publicLinkType:h}),children:E.map(A=>zt(A,e.extraProps))}}const x=s.map(m=>zt(m,e.extraProps));return{resource:x[0],children:x.slice(1)}}const f=async()=>{const h=await t.getPathForFileId(i);return this.listFiles(n,{path:h},{depth:a,davProperties:u})};try{let h="";if(c?h=Dn(n.id):h=xt(n,{fileId:i,path:o}),s=await e.propfind(h,{depth:a,properties:u||Bt.Default,...l}),c)return{resource:zt(s[0],e.extraProps),children:s.slice(1).map(Rg)};const x=s.map(E=>zt(E,e.extraProps)),m=i===n.id;return i&&!m&&i!==x[0].fileId?f():{resource:x[0],children:x.slice(1)}}catch(h){if(h.statusCode===404&&i)return f();throw h}}}),ay=(e,t)=>({moveFiles(r,{path:n,fileId:o},i,{path:a,parentFolderId:u,name:c},{overwrite:l,...s}={}){const f=xt(r,{fileId:o,path:n}),h=xt(i,{fileId:u,path:a,name:c});return e.move(f,h,{overwrite:l||!1,...s})}}),uy=(e,t,r)=>({async putFileContents(n,{fileName:o,path:i,parentFolderId:a,content:u="",previousEntityTag:c="",overwrite:l,onUploadProgress:s=null,...f}){const h=xt(n,{fileId:a,name:o,path:i}),{result:x}=await e.put(h,u,{previousEntityTag:c,overwrite:l,onUploadProgress:s,...f});return t.getFileInfo(n,{fileId:x.headers.get("Oc-Fileid"),path:i})}}),ly=(e,t)=>({deleteFile(r,{path:n,...o}){return e.delete(Ee(r.webDavPath,n),o)}}),cy=(e,t)=>({restoreFile(r,{id:n},{path:o},{overwrite:i,...a}={}){if(kn(r))return;const u=Ee(r.webDavPath,o);return e.move(Ee(r.webDavTrashPath,n),u,{overwrite:i,...a})}}),fy=(e,t)=>({restoreFileVersion(r,{parentFolderId:n,name:o,path:i},a,u={}){const c=xt(r,{path:i,fileId:n,name:o}),l=Ee("meta",n,"v",a,{leadingSlash:!0}),s=Ee("files",c,{leadingSlash:!0});return e.copy(l,s,u)}}),hy=(e,t)=>({clearTrashBin(r,{id:n,...o}={}){let i=Dn(r.id);return n&&(i=Ee(i,n)),e.delete(i,o)}}),dy=(e,t)=>({async search(r,{davProperties:n=Bt.Default,searchLimit:o,...i}){const a="/spaces/",{range:u,results:c}=await e.report(a,{pattern:r,limit:o,properties:n,...i});return{resources:c.map(l=>({...zt(l,e.extraProps),highlights:l.props[se.Highlights]||""})),totalResults:u?parseInt(u?.split("/")[1]):null}}}),py=(e,t)=>({async getPathForFileId(r,n={}){return(await e.propfind(Ee("meta",r,{leadingSlash:!0}),{properties:[se.MetaPathForUser],...n}))[0].props[se.MetaPathForUser]}});/*! For license information please see index.js.LICENSE.txt */var gy={2:e=>{function t(o,i,a){o instanceof RegExp&&(o=r(o,a)),i instanceof RegExp&&(i=r(i,a));var u=n(o,i,a);return u&&{start:u[0],end:u[1],pre:a.slice(0,u[0]),body:a.slice(u[0]+o.length,u[1]),post:a.slice(u[1]+i.length)}}function r(o,i){var a=i.match(o);return a?a[0]:null}function n(o,i,a){var u,c,l,s,f,h=a.indexOf(o),x=a.indexOf(i,h+1),m=h;if(h>=0&&x>0){for(u=[],l=a.length;m>=0&&!f;)m==h?(u.push(m),h=a.indexOf(o,m+1)):u.length==1?f=[u.pop(),x]:((c=u.pop())<l&&(l=c,s=x),x=a.indexOf(i,m+1)),m=h<x&&h>=0?h:x;u.length&&(f=[l,s])}return f}e.exports=t,t.range=n},101:function(e,t,r){var n;e=r.nmd(e),(function(o){var i=(e&&e.exports,typeof wt=="object"&&wt);i.global!==i&&i.window;var a=function(f){this.message=f};(a.prototype=new Error).name="InvalidCharacterError";var u=function(f){throw new a(f)},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=/[\t\n\f\r ]/g,s={encode:function(f){f=String(f),/[^\0-\xFF]/.test(f)&&u("The string to be encoded contains characters outside of the Latin1 range.");for(var h,x,m,E,A=f.length%3,y="",p=-1,d=f.length-A;++p<d;)h=f.charCodeAt(p)<<16,x=f.charCodeAt(++p)<<8,m=f.charCodeAt(++p),y+=c.charAt((E=h+x+m)>>18&63)+c.charAt(E>>12&63)+c.charAt(E>>6&63)+c.charAt(63&E);return A==2?(h=f.charCodeAt(p)<<8,x=f.charCodeAt(++p),y+=c.charAt((E=h+x)>>10)+c.charAt(E>>4&63)+c.charAt(E<<2&63)+"="):A==1&&(E=f.charCodeAt(p),y+=c.charAt(E>>2)+c.charAt(E<<4&63)+"=="),y},decode:function(f){var h=(f=String(f).replace(l,"")).length;h%4==0&&(h=(f=f.replace(/==?$/,"")).length),(h%4==1||/[^+a-zA-Z0-9/]/.test(f))&&u("Invalid character: the string to be decoded is not correctly encoded.");for(var x,m,E=0,A="",y=-1;++y<h;)m=c.indexOf(f.charAt(y)),x=E%4?64*x+m:m,E++%4&&(A+=String.fromCharCode(255&x>>(-2*E&6)));return A},version:"1.0.0"};(n=(function(){return s}).call(t,r,t,e))===void 0||(e.exports=n)})()},172:(e,t)=>{t.d=function(r){if(!r)return 0;for(var n=(r=r.toString()).length,o=r.length;o--;){var i=r.charCodeAt(o);56320<=i&&i<=57343&&o--,127<i&&i<=2047?n++:2047<i&&i<=65535&&(n+=2)}return n}},526:e=>{var t={utf8:{stringToBytes:function(r){return t.bin.stringToBytes(unescape(encodeURIComponent(r)))},bytesToString:function(r){return decodeURIComponent(escape(t.bin.bytesToString(r)))}},bin:{stringToBytes:function(r){for(var n=[],o=0;o<r.length;o++)n.push(255&r.charCodeAt(o));return n},bytesToString:function(r){for(var n=[],o=0;o<r.length;o++)n.push(String.fromCharCode(r[o]));return n.join("")}}};e.exports=t},298:e=>{var t,r;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(n,o){return n<<o|n>>>32-o},rotr:function(n,o){return n<<32-o|n>>>o},endian:function(n){if(n.constructor==Number)return 16711935&r.rotl(n,8)|4278255360&r.rotl(n,24);for(var o=0;o<n.length;o++)n[o]=r.endian(n[o]);return n},randomBytes:function(n){for(var o=[];n>0;n--)o.push(Math.floor(256*Math.random()));return o},bytesToWords:function(n){for(var o=[],i=0,a=0;i<n.length;i++,a+=8)o[a>>>5]|=n[i]<<24-a%32;return o},wordsToBytes:function(n){for(var o=[],i=0;i<32*n.length;i+=8)o.push(n[i>>>5]>>>24-i%32&255);return o},bytesToHex:function(n){for(var o=[],i=0;i<n.length;i++)o.push((n[i]>>>4).toString(16)),o.push((15&n[i]).toString(16));return o.join("")},hexToBytes:function(n){for(var o=[],i=0;i<n.length;i+=2)o.push(parseInt(n.substr(i,2),16));return o},bytesToBase64:function(n){for(var o=[],i=0;i<n.length;i+=3)for(var a=n[i]<<16|n[i+1]<<8|n[i+2],u=0;u<4;u++)8*i+6*u<=8*n.length?o.push(t.charAt(a>>>6*(3-u)&63)):o.push("=");return o.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/gi,"");for(var o=[],i=0,a=0;i<n.length;a=++i%4)a!=0&&o.push((t.indexOf(n.charAt(i-1))&Math.pow(2,-2*a+8)-1)<<2*a|t.indexOf(n.charAt(i))>>>6-2*a);return o}},e.exports=r},635:(e,t,r)=>{const n=r(31),o=r(338),i=r(221);e.exports={XMLParser:o,XMLValidator:n,XMLBuilder:i}},118:e=>{e.exports=function(t){return typeof t=="function"?t:Array.isArray(t)?r=>{for(const n of t)if(typeof n=="string"&&r===n||n instanceof RegExp&&n.test(r))return!0}:()=>!1}},705:(e,t)=>{const r=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",n="["+r+"]["+r+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",o=new RegExp("^"+n+"$");t.isExist=function(i){return i!==void 0},t.isEmptyObject=function(i){return Object.keys(i).length===0},t.merge=function(i,a,u){if(a){const c=Object.keys(a),l=c.length;for(let s=0;s<l;s++)i[c[s]]=u==="strict"?[a[c[s]]]:a[c[s]]}},t.getValue=function(i){return t.isExist(i)?i:""},t.isName=function(i){return o.exec(i)!=null},t.getAllMatches=function(i,a){const u=[];let c=a.exec(i);for(;c;){const l=[];l.startIndex=a.lastIndex-c[0].length;const s=c.length;for(let f=0;f<s;f++)l.push(c[f]);u.push(l),c=a.exec(i)}return u},t.nameRegexp=n},31:(e,t,r)=>{const n=r(705),o={allowBooleanAttributes:!1,unpairedTags:[]};function i(p){return p===" "||p===" "||p===`
36
- `||p==="\r"}function a(p,d){const g=d;for(;d<p.length;d++)if(!(p[d]!="?"&&p[d]!=" ")){const v=p.substr(g,d-g);if(d>5&&v==="xml")return m("InvalidXml","XML declaration allowed only at the start of the document.",A(p,d));if(p[d]=="?"&&p[d+1]==">"){d++;break}}return d}function u(p,d){if(p.length>d+5&&p[d+1]==="-"&&p[d+2]==="-"){for(d+=3;d<p.length;d++)if(p[d]==="-"&&p[d+1]==="-"&&p[d+2]===">"){d+=2;break}}else if(p.length>d+8&&p[d+1]==="D"&&p[d+2]==="O"&&p[d+3]==="C"&&p[d+4]==="T"&&p[d+5]==="Y"&&p[d+6]==="P"&&p[d+7]==="E"){let g=1;for(d+=8;d<p.length;d++)if(p[d]==="<")g++;else if(p[d]===">"&&(g--,g===0))break}else if(p.length>d+9&&p[d+1]==="["&&p[d+2]==="C"&&p[d+3]==="D"&&p[d+4]==="A"&&p[d+5]==="T"&&p[d+6]==="A"&&p[d+7]==="["){for(d+=8;d<p.length;d++)if(p[d]==="]"&&p[d+1]==="]"&&p[d+2]===">"){d+=2;break}}return d}t.validate=function(p,d){d=Object.assign({},o,d);const g=[];let v=!1,T=!1;p[0]==="\uFEFF"&&(p=p.substr(1));for(let I=0;I<p.length;I++)if(p[I]==="<"&&p[I+1]==="?"){if(I+=2,I=a(p,I),I.err)return I}else{if(p[I]!=="<"){if(i(p[I]))continue;return m("InvalidChar","char '"+p[I]+"' is not expected.",A(p,I))}{let O=I;if(I++,p[I]==="!"){I=u(p,I);continue}{let j=!1;p[I]==="/"&&(j=!0,I++);let K="";for(;I<p.length&&p[I]!==">"&&p[I]!==" "&&p[I]!==" "&&p[I]!==`
37
- `&&p[I]!=="\r";I++)K+=p[I];if(K=K.trim(),K[K.length-1]==="/"&&(K=K.substring(0,K.length-1),I--),P=K,!n.isName(P)){let re;return re=K.trim().length===0?"Invalid space after '<'.":"Tag '"+K+"' is an invalid name.",m("InvalidTag",re,A(p,I))}const L=s(p,I);if(L===!1)return m("InvalidAttr","Attributes for '"+K+"' have open quote.",A(p,I));let k=L.value;if(I=L.index,k[k.length-1]==="/"){const re=I-k.length;k=k.substring(0,k.length-1);const ee=h(k,d);if(ee!==!0)return m(ee.err.code,ee.err.msg,A(p,re+ee.err.line));v=!0}else if(j){if(!L.tagClosed)return m("InvalidTag","Closing tag '"+K+"' doesn't have proper closing.",A(p,I));if(k.trim().length>0)return m("InvalidTag","Closing tag '"+K+"' can't have attributes or invalid starting.",A(p,O));if(g.length===0)return m("InvalidTag","Closing tag '"+K+"' has not been opened.",A(p,O));{const re=g.pop();if(K!==re.tagName){let ee=A(p,re.tagStartPos);return m("InvalidTag","Expected closing tag '"+re.tagName+"' (opened in line "+ee.line+", col "+ee.col+") instead of closing tag '"+K+"'.",A(p,O))}g.length==0&&(T=!0)}}else{const re=h(k,d);if(re!==!0)return m(re.err.code,re.err.msg,A(p,I-k.length+re.err.line));if(T===!0)return m("InvalidXml","Multiple possible root nodes found.",A(p,I));d.unpairedTags.indexOf(K)!==-1||g.push({tagName:K,tagStartPos:O}),v=!0}for(I++;I<p.length;I++)if(p[I]==="<"){if(p[I+1]==="!"){I++,I=u(p,I);continue}if(p[I+1]!=="?")break;if(I=a(p,++I),I.err)return I}else if(p[I]==="&"){const re=x(p,I);if(re==-1)return m("InvalidChar","char '&' is not expected.",A(p,I));I=re}else if(T===!0&&!i(p[I]))return m("InvalidXml","Extra text at the end",A(p,I));p[I]==="<"&&I--}}}var P;return v?g.length==1?m("InvalidTag","Unclosed tag '"+g[0].tagName+"'.",A(p,g[0].tagStartPos)):!(g.length>0)||m("InvalidXml","Invalid '"+JSON.stringify(g.map((I=>I.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):m("InvalidXml","Start tag expected.",1)};const c='"',l="'";function s(p,d){let g="",v="",T=!1;for(;d<p.length;d++){if(p[d]===c||p[d]===l)v===""?v=p[d]:v!==p[d]||(v="");else if(p[d]===">"&&v===""){T=!0;break}g+=p[d]}return v===""&&{value:g,index:d,tagClosed:T}}const f=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function h(p,d){const g=n.getAllMatches(p,f),v={};for(let T=0;T<g.length;T++){if(g[T][1].length===0)return m("InvalidAttr","Attribute '"+g[T][2]+"' has no space in starting.",y(g[T]));if(g[T][3]!==void 0&&g[T][4]===void 0)return m("InvalidAttr","Attribute '"+g[T][2]+"' is without value.",y(g[T]));if(g[T][3]===void 0&&!d.allowBooleanAttributes)return m("InvalidAttr","boolean attribute '"+g[T][2]+"' is not allowed.",y(g[T]));const P=g[T][2];if(!E(P))return m("InvalidAttr","Attribute '"+P+"' is an invalid name.",y(g[T]));if(v.hasOwnProperty(P))return m("InvalidAttr","Attribute '"+P+"' is repeated.",y(g[T]));v[P]=1}return!0}function x(p,d){if(p[++d]===";")return-1;if(p[d]==="#")return(function(v,T){let P=/\d/;for(v[T]==="x"&&(T++,P=/[\da-fA-F]/);T<v.length;T++){if(v[T]===";")return T;if(!v[T].match(P))break}return-1})(p,++d);let g=0;for(;d<p.length;d++,g++)if(!(p[d].match(/\w/)&&g<20)){if(p[d]===";")break;return-1}return d}function m(p,d,g){return{err:{code:p,msg:d,line:g.line||g,col:g.col}}}function E(p){return n.isName(p)}function A(p,d){const g=p.substring(0,d).split(/\r?\n/);return{line:g.length,col:g[g.length-1].length+1}}function y(p){return p.startIndex+p[1].length}},221:(e,t,r)=>{const n=r(87),o=r(118),i={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(s,f){return f},attributeValueProcessor:function(s,f){return f},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function a(s){this.options=Object.assign({},i,s),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=o(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=l),this.processTextOrObjNode=u,this.options.format?(this.indentate=c,this.tagEndChar=`>
38
- `,this.newLine=`
39
- `):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function u(s,f,h,x){const m=this.j2x(s,h+1,x.concat(f));return s[this.options.textNodeName]!==void 0&&Object.keys(s).length===1?this.buildTextValNode(s[this.options.textNodeName],f,m.attrStr,h):this.buildObjectNode(m.val,f,m.attrStr,h)}function c(s){return this.options.indentBy.repeat(s)}function l(s){return!(!s.startsWith(this.options.attributeNamePrefix)||s===this.options.textNodeName)&&s.substr(this.attrPrefixLen)}a.prototype.build=function(s){return this.options.preserveOrder?n(s,this.options):(Array.isArray(s)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(s={[this.options.arrayNodeName]:s}),this.j2x(s,0,[]).val)},a.prototype.j2x=function(s,f,h){let x="",m="";const E=h.join(".");for(let A in s)if(Object.prototype.hasOwnProperty.call(s,A))if(s[A]===void 0)this.isAttribute(A)&&(m+="");else if(s[A]===null)this.isAttribute(A)?m+="":A[0]==="?"?m+=this.indentate(f)+"<"+A+"?"+this.tagEndChar:m+=this.indentate(f)+"<"+A+"/"+this.tagEndChar;else if(s[A]instanceof Date)m+=this.buildTextValNode(s[A],A,"",f);else if(typeof s[A]!="object"){const y=this.isAttribute(A);if(y&&!this.ignoreAttributesFn(y,E))x+=this.buildAttrPairStr(y,""+s[A]);else if(!y)if(A===this.options.textNodeName){let p=this.options.tagValueProcessor(A,""+s[A]);m+=this.replaceEntitiesValue(p)}else m+=this.buildTextValNode(s[A],A,"",f)}else if(Array.isArray(s[A])){const y=s[A].length;let p="",d="";for(let g=0;g<y;g++){const v=s[A][g];if(v!==void 0)if(v===null)A[0]==="?"?m+=this.indentate(f)+"<"+A+"?"+this.tagEndChar:m+=this.indentate(f)+"<"+A+"/"+this.tagEndChar;else if(typeof v=="object")if(this.options.oneListGroup){const T=this.j2x(v,f+1,h.concat(A));p+=T.val,this.options.attributesGroupName&&v.hasOwnProperty(this.options.attributesGroupName)&&(d+=T.attrStr)}else p+=this.processTextOrObjNode(v,A,f,h);else if(this.options.oneListGroup){let T=this.options.tagValueProcessor(A,v);T=this.replaceEntitiesValue(T),p+=T}else p+=this.buildTextValNode(v,A,"",f)}this.options.oneListGroup&&(p=this.buildObjectNode(p,A,d,f)),m+=p}else if(this.options.attributesGroupName&&A===this.options.attributesGroupName){const y=Object.keys(s[A]),p=y.length;for(let d=0;d<p;d++)x+=this.buildAttrPairStr(y[d],""+s[A][y[d]])}else m+=this.processTextOrObjNode(s[A],A,f,h);return{attrStr:x,val:m}},a.prototype.buildAttrPairStr=function(s,f){return f=this.options.attributeValueProcessor(s,""+f),f=this.replaceEntitiesValue(f),this.options.suppressBooleanAttributes&&f==="true"?" "+s:" "+s+'="'+f+'"'},a.prototype.buildObjectNode=function(s,f,h,x){if(s==="")return f[0]==="?"?this.indentate(x)+"<"+f+h+"?"+this.tagEndChar:this.indentate(x)+"<"+f+h+this.closeTag(f)+this.tagEndChar;{let m="</"+f+this.tagEndChar,E="";return f[0]==="?"&&(E="?",m=""),!h&&h!==""||s.indexOf("<")!==-1?this.options.commentPropName!==!1&&f===this.options.commentPropName&&E.length===0?this.indentate(x)+`<!--${s}-->`+this.newLine:this.indentate(x)+"<"+f+h+E+this.tagEndChar+s+this.indentate(x)+m:this.indentate(x)+"<"+f+h+E+">"+s+m}},a.prototype.closeTag=function(s){let f="";return this.options.unpairedTags.indexOf(s)!==-1?this.options.suppressUnpairedNode||(f="/"):f=this.options.suppressEmptyNode?"/":`></${s}`,f},a.prototype.buildTextValNode=function(s,f,h,x){if(this.options.cdataPropName!==!1&&f===this.options.cdataPropName)return this.indentate(x)+`<![CDATA[${s}]]>`+this.newLine;if(this.options.commentPropName!==!1&&f===this.options.commentPropName)return this.indentate(x)+`<!--${s}-->`+this.newLine;if(f[0]==="?")return this.indentate(x)+"<"+f+h+"?"+this.tagEndChar;{let m=this.options.tagValueProcessor(f,s);return m=this.replaceEntitiesValue(m),m===""?this.indentate(x)+"<"+f+h+this.closeTag(f)+this.tagEndChar:this.indentate(x)+"<"+f+h+">"+m+"</"+f+this.tagEndChar}},a.prototype.replaceEntitiesValue=function(s){if(s&&s.length>0&&this.options.processEntities)for(let f=0;f<this.options.entities.length;f++){const h=this.options.entities[f];s=s.replace(h.regex,h.val)}return s},e.exports=a},87:e=>{function t(a,u,c,l){let s="",f=!1;for(let h=0;h<a.length;h++){const x=a[h],m=r(x);if(m===void 0)continue;let E="";if(E=c.length===0?m:`${c}.${m}`,m===u.textNodeName){let d=x[m];o(E,u)||(d=u.tagValueProcessor(m,d),d=i(d,u)),f&&(s+=l),s+=d,f=!1;continue}if(m===u.cdataPropName){f&&(s+=l),s+=`<![CDATA[${x[m][0][u.textNodeName]}]]>`,f=!1;continue}if(m===u.commentPropName){s+=l+`<!--${x[m][0][u.textNodeName]}-->`,f=!0;continue}if(m[0]==="?"){const d=n(x[":@"],u),g=m==="?xml"?"":l;let v=x[m][0][u.textNodeName];v=v.length!==0?" "+v:"",s+=g+`<${m}${v}${d}?>`,f=!0;continue}let A=l;A!==""&&(A+=u.indentBy);const y=l+`<${m}${n(x[":@"],u)}`,p=t(x[m],u,E,A);u.unpairedTags.indexOf(m)!==-1?u.suppressUnpairedNode?s+=y+">":s+=y+"/>":p&&p.length!==0||!u.suppressEmptyNode?p&&p.endsWith(">")?s+=y+`>${p}${l}</${m}>`:(s+=y+">",p&&l!==""&&(p.includes("/>")||p.includes("</"))?s+=l+u.indentBy+p+l:s+=p,s+=`</${m}>`):s+=y+"/>",f=!0}return s}function r(a){const u=Object.keys(a);for(let c=0;c<u.length;c++){const l=u[c];if(a.hasOwnProperty(l)&&l!==":@")return l}}function n(a,u){let c="";if(a&&!u.ignoreAttributes)for(let l in a){if(!a.hasOwnProperty(l))continue;let s=u.attributeValueProcessor(l,a[l]);s=i(s,u),s===!0&&u.suppressBooleanAttributes?c+=` ${l.substr(u.attributeNamePrefix.length)}`:c+=` ${l.substr(u.attributeNamePrefix.length)}="${s}"`}return c}function o(a,u){let c=(a=a.substr(0,a.length-u.textNodeName.length-1)).substr(a.lastIndexOf(".")+1);for(let l in u.stopNodes)if(u.stopNodes[l]===a||u.stopNodes[l]==="*."+c)return!0;return!1}function i(a,u){if(a&&a.length>0&&u.processEntities)for(let c=0;c<u.entities.length;c++){const l=u.entities[c];a=a.replace(l.regex,l.val)}return a}e.exports=function(a,u){let c="";return u.format&&u.indentBy.length>0&&(c=`
40
- `),t(a,u,"",c)}},193:(e,t,r)=>{const n=r(705);function o(f,h){let x="";for(;h<f.length&&f[h]!=="'"&&f[h]!=='"';h++)x+=f[h];if(x=x.trim(),x.indexOf(" ")!==-1)throw new Error("External entites are not supported");const m=f[h++];let E="";for(;h<f.length&&f[h]!==m;h++)E+=f[h];return[x,E,h]}function i(f,h){return f[h+1]==="!"&&f[h+2]==="-"&&f[h+3]==="-"}function a(f,h){return f[h+1]==="!"&&f[h+2]==="E"&&f[h+3]==="N"&&f[h+4]==="T"&&f[h+5]==="I"&&f[h+6]==="T"&&f[h+7]==="Y"}function u(f,h){return f[h+1]==="!"&&f[h+2]==="E"&&f[h+3]==="L"&&f[h+4]==="E"&&f[h+5]==="M"&&f[h+6]==="E"&&f[h+7]==="N"&&f[h+8]==="T"}function c(f,h){return f[h+1]==="!"&&f[h+2]==="A"&&f[h+3]==="T"&&f[h+4]==="T"&&f[h+5]==="L"&&f[h+6]==="I"&&f[h+7]==="S"&&f[h+8]==="T"}function l(f,h){return f[h+1]==="!"&&f[h+2]==="N"&&f[h+3]==="O"&&f[h+4]==="T"&&f[h+5]==="A"&&f[h+6]==="T"&&f[h+7]==="I"&&f[h+8]==="O"&&f[h+9]==="N"}function s(f){if(n.isName(f))return f;throw new Error(`Invalid entity name ${f}`)}e.exports=function(f,h){const x={};if(f[h+3]!=="O"||f[h+4]!=="C"||f[h+5]!=="T"||f[h+6]!=="Y"||f[h+7]!=="P"||f[h+8]!=="E")throw new Error("Invalid Tag instead of DOCTYPE");{h+=9;let m=1,E=!1,A=!1,y="";for(;h<f.length;h++)if(f[h]!=="<"||A)if(f[h]===">"){if(A?f[h-1]==="-"&&f[h-2]==="-"&&(A=!1,m--):m--,m===0)break}else f[h]==="["?E=!0:y+=f[h];else{if(E&&a(f,h)){let p,d;h+=7,[p,d,h]=o(f,h+1),d.indexOf("&")===-1&&(x[s(p)]={regx:RegExp(`&${p};`,"g"),val:d})}else if(E&&u(f,h))h+=8;else if(E&&c(f,h))h+=8;else if(E&&l(f,h))h+=9;else{if(!i)throw new Error("Invalid DOCTYPE");A=!0}m++,y=""}if(m!==0)throw new Error("Unclosed DOCTYPE")}return{entities:x,i:h}}},63:(e,t)=>{const r={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(n,o){return o},attributeValueProcessor:function(n,o){return o},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(n,o,i){return n}};t.buildOptions=function(n){return Object.assign({},r,n)},t.defaultOptions=r},299:(e,t,r)=>{const n=r(705),o=r(365),i=r(193),a=r(494),u=r(118);function c(T){const P=Object.keys(T);for(let I=0;I<P.length;I++){const O=P[I];this.lastEntities[O]={regex:new RegExp("&"+O+";","g"),val:T[O]}}}function l(T,P,I,O,j,K,L){if(T!==void 0&&(this.options.trimValues&&!O&&(T=T.trim()),T.length>0)){L||(T=this.replaceEntitiesValue(T));const k=this.options.tagValueProcessor(P,T,I,j,K);return k==null?T:typeof k!=typeof T||k!==T?k:this.options.trimValues||T.trim()===T?v(T,this.options.parseTagValue,this.options.numberParseOptions):T}}function s(T){if(this.options.removeNSPrefix){const P=T.split(":"),I=T.charAt(0)==="/"?"/":"";if(P[0]==="xmlns")return"";P.length===2&&(T=I+P[1])}return T}const f=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function h(T,P,I){if(this.options.ignoreAttributes!==!0&&typeof T=="string"){const O=n.getAllMatches(T,f),j=O.length,K={};for(let L=0;L<j;L++){const k=this.resolveNameSpace(O[L][1]);if(this.ignoreAttributesFn(k,P))continue;let re=O[L][4],ee=this.options.attributeNamePrefix+k;if(k.length)if(this.options.transformAttributeName&&(ee=this.options.transformAttributeName(ee)),ee==="__proto__"&&(ee="#__proto__"),re!==void 0){this.options.trimValues&&(re=re.trim()),re=this.replaceEntitiesValue(re);const ue=this.options.attributeValueProcessor(k,re,P);K[ee]=ue==null?re:typeof ue!=typeof re||ue!==re?ue:v(re,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(K[ee]=!0)}if(!Object.keys(K).length)return;if(this.options.attributesGroupName){const L={};return L[this.options.attributesGroupName]=K,L}return K}}const x=function(T){T=T.replace(/\r\n?/g,`
41
- `);const P=new o("!xml");let I=P,O="",j="";for(let K=0;K<T.length;K++)if(T[K]==="<")if(T[K+1]==="/"){const L=p(T,">",K,"Closing Tag is not closed.");let k=T.substring(K+2,L).trim();if(this.options.removeNSPrefix){const ue=k.indexOf(":");ue!==-1&&(k=k.substr(ue+1))}this.options.transformTagName&&(k=this.options.transformTagName(k)),I&&(O=this.saveTextToParentTag(O,I,j));const re=j.substring(j.lastIndexOf(".")+1);if(k&&this.options.unpairedTags.indexOf(k)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${k}>`);let ee=0;re&&this.options.unpairedTags.indexOf(re)!==-1?(ee=j.lastIndexOf(".",j.lastIndexOf(".")-1),this.tagsNodeStack.pop()):ee=j.lastIndexOf("."),j=j.substring(0,ee),I=this.tagsNodeStack.pop(),O="",K=L}else if(T[K+1]==="?"){let L=d(T,K,!1,"?>");if(!L)throw new Error("Pi Tag is not closed.");if(O=this.saveTextToParentTag(O,I,j),!(this.options.ignoreDeclaration&&L.tagName==="?xml"||this.options.ignorePiTags)){const k=new o(L.tagName);k.add(this.options.textNodeName,""),L.tagName!==L.tagExp&&L.attrExpPresent&&(k[":@"]=this.buildAttributesMap(L.tagExp,j,L.tagName)),this.addChild(I,k,j)}K=L.closeIndex+1}else if(T.substr(K+1,3)==="!--"){const L=p(T,"-->",K+4,"Comment is not closed.");if(this.options.commentPropName){const k=T.substring(K+4,L-2);O=this.saveTextToParentTag(O,I,j),I.add(this.options.commentPropName,[{[this.options.textNodeName]:k}])}K=L}else if(T.substr(K+1,2)==="!D"){const L=i(T,K);this.docTypeEntities=L.entities,K=L.i}else if(T.substr(K+1,2)==="!["){const L=p(T,"]]>",K,"CDATA is not closed.")-2,k=T.substring(K+9,L);O=this.saveTextToParentTag(O,I,j);let re=this.parseTextData(k,I.tagname,j,!0,!1,!0,!0);re==null&&(re=""),this.options.cdataPropName?I.add(this.options.cdataPropName,[{[this.options.textNodeName]:k}]):I.add(this.options.textNodeName,re),K=L+2}else{let L=d(T,K,this.options.removeNSPrefix),k=L.tagName;const re=L.rawTagName;let ee=L.tagExp,ue=L.attrExpPresent,le=L.closeIndex;this.options.transformTagName&&(k=this.options.transformTagName(k)),I&&O&&I.tagname!=="!xml"&&(O=this.saveTextToParentTag(O,I,j,!1));const de=I;if(de&&this.options.unpairedTags.indexOf(de.tagname)!==-1&&(I=this.tagsNodeStack.pop(),j=j.substring(0,j.lastIndexOf("."))),k!==P.tagname&&(j+=j?"."+k:k),this.isItStopNode(this.options.stopNodes,j,k)){let fe="";if(ee.length>0&&ee.lastIndexOf("/")===ee.length-1)k[k.length-1]==="/"?(k=k.substr(0,k.length-1),j=j.substr(0,j.length-1),ee=k):ee=ee.substr(0,ee.length-1),K=L.closeIndex;else if(this.options.unpairedTags.indexOf(k)!==-1)K=L.closeIndex;else{const pe=this.readStopNodeData(T,re,le+1);if(!pe)throw new Error(`Unexpected end of ${re}`);K=pe.i,fe=pe.tagContent}const be=new o(k);k!==ee&&ue&&(be[":@"]=this.buildAttributesMap(ee,j,k)),fe&&(fe=this.parseTextData(fe,k,j,!0,ue,!0,!0)),j=j.substr(0,j.lastIndexOf(".")),be.add(this.options.textNodeName,fe),this.addChild(I,be,j)}else{if(ee.length>0&&ee.lastIndexOf("/")===ee.length-1){k[k.length-1]==="/"?(k=k.substr(0,k.length-1),j=j.substr(0,j.length-1),ee=k):ee=ee.substr(0,ee.length-1),this.options.transformTagName&&(k=this.options.transformTagName(k));const fe=new o(k);k!==ee&&ue&&(fe[":@"]=this.buildAttributesMap(ee,j,k)),this.addChild(I,fe,j),j=j.substr(0,j.lastIndexOf("."))}else{const fe=new o(k);this.tagsNodeStack.push(I),k!==ee&&ue&&(fe[":@"]=this.buildAttributesMap(ee,j,k)),this.addChild(I,fe,j),I=fe}O="",K=le}}else O+=T[K];return P.child};function m(T,P,I){const O=this.options.updateTag(P.tagname,I,P[":@"]);O===!1||(typeof O=="string"&&(P.tagname=O),T.addChild(P))}const E=function(T){if(this.options.processEntities){for(let P in this.docTypeEntities){const I=this.docTypeEntities[P];T=T.replace(I.regx,I.val)}for(let P in this.lastEntities){const I=this.lastEntities[P];T=T.replace(I.regex,I.val)}if(this.options.htmlEntities)for(let P in this.htmlEntities){const I=this.htmlEntities[P];T=T.replace(I.regex,I.val)}T=T.replace(this.ampEntity.regex,this.ampEntity.val)}return T};function A(T,P,I,O){return T&&(O===void 0&&(O=Object.keys(P.child).length===0),(T=this.parseTextData(T,P.tagname,I,!1,!!P[":@"]&&Object.keys(P[":@"]).length!==0,O))!==void 0&&T!==""&&P.add(this.options.textNodeName,T),T=""),T}function y(T,P,I){const O="*."+I;for(const j in T){const K=T[j];if(O===K||P===K)return!0}return!1}function p(T,P,I,O){const j=T.indexOf(P,I);if(j===-1)throw new Error(O);return j+P.length-1}function d(T,P,I){const O=(function(ue,le){let de,fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:">",be="";for(let pe=le;pe<ue.length;pe++){let G=ue[pe];if(de)G===de&&(de="");else if(G==='"'||G==="'")de=G;else if(G===fe[0]){if(!fe[1])return{data:be,index:pe};if(ue[pe+1]===fe[1])return{data:be,index:pe}}else G===" "&&(G=" ");be+=G}})(T,P+1,arguments.length>3&&arguments[3]!==void 0?arguments[3]:">");if(!O)return;let j=O.data;const K=O.index,L=j.search(/\s/);let k=j,re=!0;L!==-1&&(k=j.substring(0,L),j=j.substring(L+1).trimStart());const ee=k;if(I){const ue=k.indexOf(":");ue!==-1&&(k=k.substr(ue+1),re=k!==O.data.substr(ue+1))}return{tagName:k,tagExp:j,closeIndex:K,attrExpPresent:re,rawTagName:ee}}function g(T,P,I){const O=I;let j=1;for(;I<T.length;I++)if(T[I]==="<")if(T[I+1]==="/"){const K=p(T,">",I,`${P} is not closed`);if(T.substring(I+2,K).trim()===P&&(j--,j===0))return{tagContent:T.substring(O,I),i:K};I=K}else if(T[I+1]==="?")I=p(T,"?>",I+1,"StopNode is not closed.");else if(T.substr(I+1,3)==="!--")I=p(T,"-->",I+3,"StopNode is not closed.");else if(T.substr(I+1,2)==="![")I=p(T,"]]>",I,"StopNode is not closed.")-2;else{const K=d(T,I,">");K&&((K&&K.tagName)===P&&K.tagExp[K.tagExp.length-1]!=="/"&&j++,I=K.closeIndex)}}function v(T,P,I){if(P&&typeof T=="string"){const O=T.trim();return O==="true"||O!=="false"&&a(T,I)}return n.isExist(T)?T:""}e.exports=class{constructor(T){this.options=T,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(P,I)=>String.fromCharCode(Number.parseInt(I,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(P,I)=>String.fromCharCode(Number.parseInt(I,16))}},this.addExternalEntities=c,this.parseXml=x,this.parseTextData=l,this.resolveNameSpace=s,this.buildAttributesMap=h,this.isItStopNode=y,this.replaceEntitiesValue=E,this.readStopNodeData=g,this.saveTextToParentTag=A,this.addChild=m,this.ignoreAttributesFn=u(this.options.ignoreAttributes)}}},338:(e,t,r)=>{const{buildOptions:n}=r(63),o=r(299),{prettify:i}=r(728),a=r(31);e.exports=class{constructor(u){this.externalEntities={},this.options=n(u)}parse(u,c){if(typeof u!="string"){if(!u.toString)throw new Error("XML data is accepted in String or Bytes[] form.");u=u.toString()}if(c){c===!0&&(c={});const f=a.validate(u,c);if(f!==!0)throw Error(`${f.err.msg}:${f.err.line}:${f.err.col}`)}const l=new o(this.options);l.addExternalEntities(this.externalEntities);const s=l.parseXml(u);return this.options.preserveOrder||s===void 0?s:i(s,this.options)}addEntity(u,c){if(c.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(u.indexOf("&")!==-1||u.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if(c==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[u]=c}}},728:(e,t)=>{function r(a,u,c){let l;const s={};for(let f=0;f<a.length;f++){const h=a[f],x=n(h);let m="";if(m=c===void 0?x:c+"."+x,x===u.textNodeName)l===void 0?l=h[x]:l+=""+h[x];else{if(x===void 0)continue;if(h[x]){let E=r(h[x],u,m);const A=i(E,u);h[":@"]?o(E,h[":@"],m,u):Object.keys(E).length!==1||E[u.textNodeName]===void 0||u.alwaysCreateTextNode?Object.keys(E).length===0&&(u.alwaysCreateTextNode?E[u.textNodeName]="":E=""):E=E[u.textNodeName],s[x]!==void 0&&s.hasOwnProperty(x)?(Array.isArray(s[x])||(s[x]=[s[x]]),s[x].push(E)):u.isArray(x,m,A)?s[x]=[E]:s[x]=E}}}return typeof l=="string"?l.length>0&&(s[u.textNodeName]=l):l!==void 0&&(s[u.textNodeName]=l),s}function n(a){const u=Object.keys(a);for(let c=0;c<u.length;c++){const l=u[c];if(l!==":@")return l}}function o(a,u,c,l){if(u){const s=Object.keys(u),f=s.length;for(let h=0;h<f;h++){const x=s[h];l.isArray(x,c+"."+x,!0,!0)?a[x]=[u[x]]:a[x]=u[x]}}}function i(a,u){const{textNodeName:c}=u,l=Object.keys(a).length;return l===0||!(l!==1||!a[c]&&typeof a[c]!="boolean"&&a[c]!==0)}t.prettify=function(a,u){return r(a,u)}},365:e=>{e.exports=class{constructor(t){this.tagname=t,this.child=[],this[":@"]={}}add(t,r){t==="__proto__"&&(t="#__proto__"),this.child.push({[t]:r})}addChild(t){t.tagname==="__proto__"&&(t.tagname="#__proto__"),t[":@"]&&Object.keys(t[":@"]).length>0?this.child.push({[t.tagname]:t.child,":@":t[":@"]}):this.child.push({[t.tagname]:t.child})}}},135:e=>{function t(r){return!!r.constructor&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}e.exports=function(r){return r!=null&&(t(r)||(function(n){return typeof n.readFloatLE=="function"&&typeof n.slice=="function"&&t(n.slice(0,0))})(r)||!!r._isBuffer)}},542:(e,t,r)=>{(function(){var n=r(298),o=r(526).utf8,i=r(135),a=r(526).bin,u=function(c,l){c.constructor==String?c=l&&l.encoding==="binary"?a.stringToBytes(c):o.stringToBytes(c):i(c)?c=Array.prototype.slice.call(c,0):Array.isArray(c)||c.constructor===Uint8Array||(c=c.toString());for(var s=n.bytesToWords(c),f=8*c.length,h=1732584193,x=-271733879,m=-1732584194,E=271733878,A=0;A<s.length;A++)s[A]=16711935&(s[A]<<8|s[A]>>>24)|4278255360&(s[A]<<24|s[A]>>>8);s[f>>>5]|=128<<f%32,s[14+(f+64>>>9<<4)]=f;var y=u._ff,p=u._gg,d=u._hh,g=u._ii;for(A=0;A<s.length;A+=16){var v=h,T=x,P=m,I=E;h=y(h,x,m,E,s[A+0],7,-680876936),E=y(E,h,x,m,s[A+1],12,-389564586),m=y(m,E,h,x,s[A+2],17,606105819),x=y(x,m,E,h,s[A+3],22,-1044525330),h=y(h,x,m,E,s[A+4],7,-176418897),E=y(E,h,x,m,s[A+5],12,1200080426),m=y(m,E,h,x,s[A+6],17,-1473231341),x=y(x,m,E,h,s[A+7],22,-45705983),h=y(h,x,m,E,s[A+8],7,1770035416),E=y(E,h,x,m,s[A+9],12,-1958414417),m=y(m,E,h,x,s[A+10],17,-42063),x=y(x,m,E,h,s[A+11],22,-1990404162),h=y(h,x,m,E,s[A+12],7,1804603682),E=y(E,h,x,m,s[A+13],12,-40341101),m=y(m,E,h,x,s[A+14],17,-1502002290),h=p(h,x=y(x,m,E,h,s[A+15],22,1236535329),m,E,s[A+1],5,-165796510),E=p(E,h,x,m,s[A+6],9,-1069501632),m=p(m,E,h,x,s[A+11],14,643717713),x=p(x,m,E,h,s[A+0],20,-373897302),h=p(h,x,m,E,s[A+5],5,-701558691),E=p(E,h,x,m,s[A+10],9,38016083),m=p(m,E,h,x,s[A+15],14,-660478335),x=p(x,m,E,h,s[A+4],20,-405537848),h=p(h,x,m,E,s[A+9],5,568446438),E=p(E,h,x,m,s[A+14],9,-1019803690),m=p(m,E,h,x,s[A+3],14,-187363961),x=p(x,m,E,h,s[A+8],20,1163531501),h=p(h,x,m,E,s[A+13],5,-1444681467),E=p(E,h,x,m,s[A+2],9,-51403784),m=p(m,E,h,x,s[A+7],14,1735328473),h=d(h,x=p(x,m,E,h,s[A+12],20,-1926607734),m,E,s[A+5],4,-378558),E=d(E,h,x,m,s[A+8],11,-2022574463),m=d(m,E,h,x,s[A+11],16,1839030562),x=d(x,m,E,h,s[A+14],23,-35309556),h=d(h,x,m,E,s[A+1],4,-1530992060),E=d(E,h,x,m,s[A+4],11,1272893353),m=d(m,E,h,x,s[A+7],16,-155497632),x=d(x,m,E,h,s[A+10],23,-1094730640),h=d(h,x,m,E,s[A+13],4,681279174),E=d(E,h,x,m,s[A+0],11,-358537222),m=d(m,E,h,x,s[A+3],16,-722521979),x=d(x,m,E,h,s[A+6],23,76029189),h=d(h,x,m,E,s[A+9],4,-640364487),E=d(E,h,x,m,s[A+12],11,-421815835),m=d(m,E,h,x,s[A+15],16,530742520),h=g(h,x=d(x,m,E,h,s[A+2],23,-995338651),m,E,s[A+0],6,-198630844),E=g(E,h,x,m,s[A+7],10,1126891415),m=g(m,E,h,x,s[A+14],15,-1416354905),x=g(x,m,E,h,s[A+5],21,-57434055),h=g(h,x,m,E,s[A+12],6,1700485571),E=g(E,h,x,m,s[A+3],10,-1894986606),m=g(m,E,h,x,s[A+10],15,-1051523),x=g(x,m,E,h,s[A+1],21,-2054922799),h=g(h,x,m,E,s[A+8],6,1873313359),E=g(E,h,x,m,s[A+15],10,-30611744),m=g(m,E,h,x,s[A+6],15,-1560198380),x=g(x,m,E,h,s[A+13],21,1309151649),h=g(h,x,m,E,s[A+4],6,-145523070),E=g(E,h,x,m,s[A+11],10,-1120210379),m=g(m,E,h,x,s[A+2],15,718787259),x=g(x,m,E,h,s[A+9],21,-343485551),h=h+v>>>0,x=x+T>>>0,m=m+P>>>0,E=E+I>>>0}return n.endian([h,x,m,E])};u._ff=function(c,l,s,f,h,x,m){var E=c+(l&s|~l&f)+(h>>>0)+m;return(E<<x|E>>>32-x)+l},u._gg=function(c,l,s,f,h,x,m){var E=c+(l&f|s&~f)+(h>>>0)+m;return(E<<x|E>>>32-x)+l},u._hh=function(c,l,s,f,h,x,m){var E=c+(l^s^f)+(h>>>0)+m;return(E<<x|E>>>32-x)+l},u._ii=function(c,l,s,f,h,x,m){var E=c+(s^(l|~f))+(h>>>0)+m;return(E<<x|E>>>32-x)+l},u._blocksize=16,u._digestsize=16,e.exports=function(c,l){if(c==null)throw new Error("Illegal argument "+c);var s=n.wordsToBytes(u(c,l));return l&&l.asBytes?s:l&&l.asString?a.bytesToString(s):n.bytesToHex(s)}})()},285:(e,t,r)=>{var n=r(2);e.exports=function(y){return y?(y.substr(0,2)==="{}"&&(y="\\{\\}"+y.substr(2)),A((function(p){return p.split("\\\\").join(o).split("\\{").join(i).split("\\}").join(a).split("\\,").join(u).split("\\.").join(c)})(y),!0).map(s)):[]};var o="\0SLASH"+Math.random()+"\0",i="\0OPEN"+Math.random()+"\0",a="\0CLOSE"+Math.random()+"\0",u="\0COMMA"+Math.random()+"\0",c="\0PERIOD"+Math.random()+"\0";function l(y){return parseInt(y,10)==y?parseInt(y,10):y.charCodeAt(0)}function s(y){return y.split(o).join("\\").split(i).join("{").split(a).join("}").split(u).join(",").split(c).join(".")}function f(y){if(!y)return[""];var p=[],d=n("{","}",y);if(!d)return y.split(",");var g=d.pre,v=d.body,T=d.post,P=g.split(",");P[P.length-1]+="{"+v+"}";var I=f(T);return T.length&&(P[P.length-1]+=I.shift(),P.push.apply(P,I)),p.push.apply(p,P),p}function h(y){return"{"+y+"}"}function x(y){return/^-?0\d/.test(y)}function m(y,p){return y<=p}function E(y,p){return y>=p}function A(y,p){var d=[],g=n("{","}",y);if(!g)return[y];var v=g.pre,T=g.post.length?A(g.post,!1):[""];if(/\$$/.test(g.pre))for(var P=0;P<T.length;P++){var I=v+"{"+g.body+"}"+T[P];d.push(I)}else{var O,j,K=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(g.body),L=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(g.body),k=K||L,re=g.body.indexOf(",")>=0;if(!k&&!re)return g.post.match(/,.*\}/)?A(y=g.pre+"{"+g.body+a+g.post):[y];if(k)O=g.body.split(/\.\./);else if((O=f(g.body)).length===1&&(O=A(O[0],!1).map(h)).length===1)return T.map((function(V){return g.pre+O[0]+V}));if(k){var ee=l(O[0]),ue=l(O[1]),le=Math.max(O[0].length,O[1].length),de=O.length==3?Math.abs(l(O[2])):1,fe=m;ue<ee&&(de*=-1,fe=E);var be=O.some(x);j=[];for(var pe=ee;fe(pe,ue);pe+=de){var G;if(L)(G=String.fromCharCode(pe))==="\\"&&(G="");else if(G=String(pe),be){var Z=le-G.length;if(Z>0){var Q=new Array(Z+1).join("0");G=pe<0?"-"+Q+G.slice(1):Q+G}}j.push(G)}}else{j=[];for(var ae=0;ae<O.length;ae++)j.push.apply(j,A(O[ae],!1))}for(ae=0;ae<j.length;ae++)for(P=0;P<T.length;P++)I=v+j[ae]+T[P],(!p||k||I)&&d.push(I)}return d}},829:e=>{function t(l){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},t(l)}function r(l){var s=typeof Map=="function"?new Map:void 0;return r=function(f){if(f===null||(h=f,Function.toString.call(h).indexOf("[native code]")===-1))return f;var h;if(typeof f!="function")throw new TypeError("Super expression must either be null or a function");if(s!==void 0){if(s.has(f))return s.get(f);s.set(f,x)}function x(){return n(f,arguments,i(this).constructor)}return x.prototype=Object.create(f.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),o(x,f)},r(l)}function n(l,s,f){return n=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch{return!1}})()?Reflect.construct:function(h,x,m){var E=[null];E.push.apply(E,x);var A=new(Function.bind.apply(h,E));return m&&o(A,m.prototype),A},n.apply(null,arguments)}function o(l,s){return o=Object.setPrototypeOf||function(f,h){return f.__proto__=h,f},o(l,s)}function i(l){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)},i(l)}var a=(function(l){function s(f){var h;return(function(x,m){if(!(x instanceof m))throw new TypeError("Cannot call a class as a function")})(this,s),(h=(function(x,m){return!m||t(m)!=="object"&&typeof m!="function"?(function(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E})(x):m})(this,i(s).call(this,f))).name="ObjectPrototypeMutationError",h}return(function(f,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(h&&h.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),h&&o(f,h)})(s,l),s})(r(Error));function u(l,s){for(var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},h=s.split("."),x=h.length,m=function(y){var p=h[y];if(!l)return{v:void 0};if(p==="+"){if(Array.isArray(l))return{v:l.map((function(g,v){var T=h.slice(y+1);return T.length>0?u(g,T.join("."),f):f(l,v,h,y)}))};var d=h.slice(0,y).join(".");throw new Error("Object at wildcard (".concat(d,") is not an array"))}l=f(l,p,h,y)},E=0;E<x;E++){var A=m(E);if(t(A)==="object")return A.v}return l}function c(l,s){return l.length===s+1}e.exports={set:function(l,s,f){if(t(l)!="object"||l===null||s===void 0)return l;if(typeof s=="number")return l[s]=f,l[s];try{return u(l,s,(function(h,x,m,E){if(h===Reflect.getPrototypeOf({}))throw new a("Attempting to mutate Object.prototype");if(!h[x]){var A=Number.isInteger(Number(m[E+1])),y=m[E+1]==="+";h[x]=A||y?[]:{}}return c(m,E)&&(h[x]=f),h[x]}))}catch(h){if(h instanceof a)throw h;return l}},get:function(l,s){if(t(l)!="object"||l===null||s===void 0)return l;if(typeof s=="number")return l[s];try{return u(l,s,(function(f,h){return f[h]}))}catch{return l}},has:function(l,s){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(t(l)!="object"||l===null||s===void 0)return!1;if(typeof s=="number")return s in l;try{var h=!1;return u(l,s,(function(x,m,E,A){if(!c(E,A))return x&&x[m];h=f.own?x.hasOwnProperty(m):m in x})),h}catch{return!1}},hasOwn:function(l,s,f){return this.has(l,s,f||{own:!0})},isIn:function(l,s,f){var h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(t(l)!="object"||l===null||s===void 0)return!1;try{var x=!1,m=!1;return u(l,s,(function(E,A,y,p){return x=x||E===f||!!E&&E[A]===f,m=c(y,p)&&t(E)==="object"&&A in E,E&&E[A]})),h.validPath?x&&m:x}catch{return!1}},ObjectPrototypeMutationError:a}},47:(e,t,r)=>{var n=r(410),o=function(l){return typeof l=="string"};function i(l,s){for(var f=[],h=0;h<l.length;h++){var x=l[h];x&&x!=="."&&(x===".."?f.length&&f[f.length-1]!==".."?f.pop():s&&f.push(".."):f.push(x))}return f}var a=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,u={};function c(l){return a.exec(l).slice(1)}u.resolve=function(){for(var l="",s=!1,f=arguments.length-1;f>=-1&&!s;f--){var h=f>=0?arguments[f]:ye.cwd();if(!o(h))throw new TypeError("Arguments to path.resolve must be strings");h&&(l=h+"/"+l,s=h.charAt(0)==="/")}return(s?"/":"")+(l=i(l.split("/"),!s).join("/"))||"."},u.normalize=function(l){var s=u.isAbsolute(l),f=l.substr(-1)==="/";return(l=i(l.split("/"),!s).join("/"))||s||(l="."),l&&f&&(l+="/"),(s?"/":"")+l},u.isAbsolute=function(l){return l.charAt(0)==="/"},u.join=function(){for(var l="",s=0;s<arguments.length;s++){var f=arguments[s];if(!o(f))throw new TypeError("Arguments to path.join must be strings");f&&(l+=l?"/"+f:f)}return u.normalize(l)},u.relative=function(l,s){function f(p){for(var d=0;d<p.length&&p[d]==="";d++);for(var g=p.length-1;g>=0&&p[g]==="";g--);return d>g?[]:p.slice(d,g+1)}l=u.resolve(l).substr(1),s=u.resolve(s).substr(1);for(var h=f(l.split("/")),x=f(s.split("/")),m=Math.min(h.length,x.length),E=m,A=0;A<m;A++)if(h[A]!==x[A]){E=A;break}var y=[];for(A=E;A<h.length;A++)y.push("..");return(y=y.concat(x.slice(E))).join("/")},u._makeLong=function(l){return l},u.dirname=function(l){var s=c(l),f=s[0],h=s[1];return f||h?(h&&(h=h.substr(0,h.length-1)),f+h):"."},u.basename=function(l,s){var f=c(l)[2];return s&&f.substr(-1*s.length)===s&&(f=f.substr(0,f.length-s.length)),f},u.extname=function(l){return c(l)[3]},u.format=function(l){if(!n.isObject(l))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof l);var s=l.root||"";if(!o(s))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof l.root);return(l.dir?l.dir+u.sep:"")+(l.base||"")},u.parse=function(l){if(!o(l))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof l);var s=c(l);if(!s||s.length!==4)throw new TypeError("Invalid path '"+l+"'");return s[1]=s[1]||"",s[2]=s[2]||"",s[3]=s[3]||"",{root:s[0],dir:s[0]+s[1].slice(0,s[1].length-1),base:s[2],ext:s[3],name:s[2].slice(0,s[2].length-s[3].length)}},u.sep="/",u.delimiter=":",e.exports=u},647:(e,t)=>{var r=Object.prototype.hasOwnProperty;function n(i){try{return decodeURIComponent(i.replace(/\+/g," "))}catch{return null}}function o(i){try{return encodeURIComponent(i)}catch{return null}}t.stringify=function(i,a){a=a||"";var u,c,l=[];for(c in typeof a!="string"&&(a="?"),i)if(r.call(i,c)){if((u=i[c])||u!=null&&!isNaN(u)||(u=""),c=o(c),u=o(u),c===null||u===null)continue;l.push(c+"="+u)}return l.length?a+l.join("&"):""},t.parse=function(i){for(var a,u=/([^=?#&]+)=?([^&]*)/g,c={};a=u.exec(i);){var l=n(a[1]),s=n(a[2]);l===null||s===null||l in c||(c[l]=s)}return c}},670:e=>{e.exports=function(t,r){if(r=r.split(":")[0],!(t=+t))return!1;switch(r){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return!1}return t!==0}},494:e=>{const t=/^[-+]?0x[a-fA-F0-9]+$/,r=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const n={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};e.exports=function(o){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(i=Object.assign({},n,i),!o||typeof o!="string")return o;let a=o.trim();if(i.skipLike!==void 0&&i.skipLike.test(a))return o;if(i.hex&&t.test(a))return Number.parseInt(a,16);{const c=r.exec(a);if(c){const l=c[1],s=c[2];let f=((u=c[3])&&u.indexOf(".")!==-1&&((u=u.replace(/0+$/,""))==="."?u="0":u[0]==="."?u="0"+u:u[u.length-1]==="."&&(u=u.substr(0,u.length-1))),u);const h=c[4]||c[6];if(!i.leadingZeros&&s.length>0&&l&&a[2]!=="."||!i.leadingZeros&&s.length>0&&!l&&a[1]!==".")return o;{const x=Number(a),m=""+x;return m.search(/[eE]/)!==-1||h?i.eNotation?x:o:a.indexOf(".")!==-1?m==="0"&&f===""||m===f||l&&m==="-"+f?x:o:s?f===m||l+f===m?x:o:a===m||a===l+m?x:o}}return o}var u}},737:(e,t,r)=>{var n=r(670),o=r(647),i=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,a=/[\n\r\t]/g,u=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,c=/:\d+$/,l=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,s=/^[a-zA-Z]:/;function f(p){return(p||"").toString().replace(i,"")}var h=[["#","hash"],["?","query"],function(p,d){return E(d.protocol)?p.replace(/\\/g,"/"):p},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],x={hash:1,query:1};function m(p){var d,g=(typeof window<"u"?window:typeof wt<"u"?wt:typeof self<"u"?self:{}).location||{},v={},T=typeof(p=p||g);if(p.protocol==="blob:")v=new y(unescape(p.pathname),{});else if(T==="string")for(d in v=new y(p,{}),x)delete v[d];else if(T==="object"){for(d in p)d in x||(v[d]=p[d]);v.slashes===void 0&&(v.slashes=u.test(p.href))}return v}function E(p){return p==="file:"||p==="ftp:"||p==="http:"||p==="https:"||p==="ws:"||p==="wss:"}function A(p,d){p=(p=f(p)).replace(a,""),d=d||{};var g,v=l.exec(p),T=v[1]?v[1].toLowerCase():"",P=!!v[2],I=!!v[3],O=0;return P?I?(g=v[2]+v[3]+v[4],O=v[2].length+v[3].length):(g=v[2]+v[4],O=v[2].length):I?(g=v[3]+v[4],O=v[3].length):g=v[4],T==="file:"?O>=2&&(g=g.slice(2)):E(T)?g=v[4]:T?P&&(g=g.slice(2)):O>=2&&E(d.protocol)&&(g=v[4]),{protocol:T,slashes:P||E(T),slashesCount:O,rest:g}}function y(p,d,g){if(p=(p=f(p)).replace(a,""),!(this instanceof y))return new y(p,d,g);var v,T,P,I,O,j,K=h.slice(),L=typeof d,k=this,re=0;for(L!=="object"&&L!=="string"&&(g=d,d=null),g&&typeof g!="function"&&(g=o.parse),v=!(T=A(p||"",d=m(d))).protocol&&!T.slashes,k.slashes=T.slashes||v&&d.slashes,k.protocol=T.protocol||d.protocol||"",p=T.rest,(T.protocol==="file:"&&(T.slashesCount!==2||s.test(p))||!T.slashes&&(T.protocol||T.slashesCount<2||!E(k.protocol)))&&(K[3]=[/(.*)/,"pathname"]);re<K.length;re++)typeof(I=K[re])!="function"?(P=I[0],j=I[1],P!=P?k[j]=p:typeof P=="string"?~(O=P==="@"?p.lastIndexOf(P):p.indexOf(P))&&(typeof I[2]=="number"?(k[j]=p.slice(0,O),p=p.slice(O+I[2])):(k[j]=p.slice(O),p=p.slice(0,O))):(O=P.exec(p))&&(k[j]=O[1],p=p.slice(0,O.index)),k[j]=k[j]||v&&I[3]&&d[j]||"",I[4]&&(k[j]=k[j].toLowerCase())):p=I(p,k);g&&(k.query=g(k.query)),v&&d.slashes&&k.pathname.charAt(0)!=="/"&&(k.pathname!==""||d.pathname!=="")&&(k.pathname=(function(ee,ue){if(ee==="")return ue;for(var le=(ue||"/").split("/").slice(0,-1).concat(ee.split("/")),de=le.length,fe=le[de-1],be=!1,pe=0;de--;)le[de]==="."?le.splice(de,1):le[de]===".."?(le.splice(de,1),pe++):pe&&(de===0&&(be=!0),le.splice(de,1),pe--);return be&&le.unshift(""),fe!=="."&&fe!==".."||le.push(""),le.join("/")})(k.pathname,d.pathname)),k.pathname.charAt(0)!=="/"&&E(k.protocol)&&(k.pathname="/"+k.pathname),n(k.port,k.protocol)||(k.host=k.hostname,k.port=""),k.username=k.password="",k.auth&&(~(O=k.auth.indexOf(":"))?(k.username=k.auth.slice(0,O),k.username=encodeURIComponent(decodeURIComponent(k.username)),k.password=k.auth.slice(O+1),k.password=encodeURIComponent(decodeURIComponent(k.password))):k.username=encodeURIComponent(decodeURIComponent(k.auth)),k.auth=k.password?k.username+":"+k.password:k.username),k.origin=k.protocol!=="file:"&&E(k.protocol)&&k.host?k.protocol+"//"+k.host:"null",k.href=k.toString()}y.prototype={set:function(p,d,g){var v=this;switch(p){case"query":typeof d=="string"&&d.length&&(d=(g||o.parse)(d)),v[p]=d;break;case"port":v[p]=d,n(d,v.protocol)?d&&(v.host=v.hostname+":"+d):(v.host=v.hostname,v[p]="");break;case"hostname":v[p]=d,v.port&&(d+=":"+v.port),v.host=d;break;case"host":v[p]=d,c.test(d)?(d=d.split(":"),v.port=d.pop(),v.hostname=d.join(":")):(v.hostname=d,v.port="");break;case"protocol":v.protocol=d.toLowerCase(),v.slashes=!g;break;case"pathname":case"hash":if(d){var T=p==="pathname"?"/":"#";v[p]=d.charAt(0)!==T?T+d:d}else v[p]=d;break;case"username":case"password":v[p]=encodeURIComponent(d);break;case"auth":var P=d.indexOf(":");~P?(v.username=d.slice(0,P),v.username=encodeURIComponent(decodeURIComponent(v.username)),v.password=d.slice(P+1),v.password=encodeURIComponent(decodeURIComponent(v.password))):v.username=encodeURIComponent(decodeURIComponent(d))}for(var I=0;I<h.length;I++){var O=h[I];O[4]&&(v[O[1]]=v[O[1]].toLowerCase())}return v.auth=v.password?v.username+":"+v.password:v.username,v.origin=v.protocol!=="file:"&&E(v.protocol)&&v.host?v.protocol+"//"+v.host:"null",v.href=v.toString(),v},toString:function(p){p&&typeof p=="function"||(p=o.stringify);var d,g=this,v=g.host,T=g.protocol;T&&T.charAt(T.length-1)!==":"&&(T+=":");var P=T+(g.protocol&&g.slashes||E(g.protocol)?"//":"");return g.username?(P+=g.username,g.password&&(P+=":"+g.password),P+="@"):g.password?(P+=":"+g.password,P+="@"):g.protocol!=="file:"&&E(g.protocol)&&!v&&g.pathname!=="/"&&(P+="@"),(v[v.length-1]===":"||c.test(g.hostname)&&!g.port)&&(v+=":"),P+=v+g.pathname,(d=typeof g.query=="object"?p(g.query):g.query)&&(P+=d.charAt(0)!=="?"?"?"+d:d),g.hash&&(P+=g.hash),P}},y.extractProtocol=A,y.location=m,y.trimLeft=f,y.qs=o,e.exports=y},410:()=>{},388:()=>{},805:()=>{},345:()=>{},800:()=>{}},Ml={};function Se(e){var t=Ml[e];if(t!==void 0)return t.exports;var r=Ml[e]={id:e,loaded:!1,exports:{}};return gy[e].call(r.exports,r,r.exports,Se),r.loaded=!0,r.exports}Se.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return Se.d(t,{a:t}),t},Se.d=(e,t)=>{for(var r in t)Se.o(t,r)&&!Se.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},Se.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Se.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var ot={};Se.d(ot,{hT:()=>Ze,O4:()=>At,Kd:()=>Ty,YK:()=>Sy,UU:()=>Im,Gu:()=>Jl,ky:()=>dc,h4:()=>vr,ch:()=>sn,hq:()=>kt,i5:()=>pc});var yy=Se(737),my=Se.n(yy);function xo(e){if(!Ao(e))throw new Error("Parameter was not an error")}function Ao(e){return!!e&&typeof e=="object"&&(t=e,Object.prototype.toString.call(t)==="[object Error]")||e instanceof Error;var t}class Je extends Error{constructor(t,r){const n=[...arguments],{options:o,shortMessage:i}=(function(u){let c,l="";if(u.length===0)c={};else if(Ao(u[0]))c={cause:u[0]},l=u.slice(1).join(" ")||"";else if(u[0]&&typeof u[0]=="object")c=Object.assign({},u[0]),l=u.slice(1).join(" ")||"";else{if(typeof u[0]!="string")throw new Error("Invalid arguments passed to Layerr");c={},l=l=u.join(" ")||""}return{options:c,shortMessage:l}})(n);let a=i;if(o.cause&&(a=`${a}: ${o.cause.message}`),super(a),this.message=a,o.name&&typeof o.name=="string"?this.name=o.name:this.name="Layerr",o.cause&&Object.defineProperty(this,"_cause",{value:o.cause}),Object.defineProperty(this,"_info",{value:{}}),o.info&&typeof o.info=="object"&&Object.assign(this._info,o.info),Error.captureStackTrace){const u=o.constructorOpt||this.constructor;Error.captureStackTrace(this,u)}}static cause(t){return xo(t),t._cause&&Ao(t._cause)?t._cause:null}static fullStack(t){xo(t);const r=Je.cause(t);return r?`${t.stack}
42
- caused by: ${Je.fullStack(r)}`:t.stack??""}static info(t){xo(t);const r={},n=Je.cause(t);return n&&Object.assign(r,Je.info(n)),t._info&&Object.assign(r,t._info),r}toString(){let t=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t=`${t}: ${this.message}`),t}}var by=Se(47),Zr=Se.n(by);const $l="__PATH_SEPARATOR_POSIX__",ql="__PATH_SEPARATOR_WINDOWS__";function Ce(e){try{const t=e.replace(/\//g,$l).replace(/\\\\/g,ql);return encodeURIComponent(t).split(ql).join("\\\\").split($l).join("/")}catch(t){throw new Je(t,"Failed encoding path")}}function Hl(e){return e.startsWith("/")?e:"/"+e}function yr(e){let t=e;return t[0]!=="/"&&(t="/"+t),/^.+\/$/.test(t)&&(t=t.substr(0,t.length-1)),t}function wy(e){let t=new(my())(e).pathname;return t.length<=0&&(t="/"),yr(t)}function Be(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(function(){return(function(n){var o=[];if(n.length===0)return"";if(typeof n[0]!="string")throw new TypeError("Url must be a string. Received "+n[0]);if(n[0].match(/^[^/:]+:\/*$/)&&n.length>1){var i=n.shift();n[0]=i+n[0]}n[0].match(/^file:\/\/\//)?n[0]=n[0].replace(/^([^/:]+):\/*/,"$1:///"):n[0]=n[0].replace(/^([^/:]+):\/*/,"$1://");for(var a=0;a<n.length;a++){var u=n[a];if(typeof u!="string")throw new TypeError("Url must be a string. Received "+u);u!==""&&(a>0&&(u=u.replace(/^[\/]+/,"")),u=a<n.length-1?u.replace(/[\/]+$/,""):u.replace(/[\/]+$/,"/"),o.push(u))}var c=o.join("/"),l=(c=c.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return l.shift()+(l.length>0?"?":"")+l.join("&")})(typeof arguments[0]=="object"?arguments[0]:[].slice.call(arguments))})(t.reduce(((n,o,i)=>((i===0||o!=="/"||o==="/"&&n[n.length-1]!=="/")&&n.push(o),n)),[]))}var vy=Se(542),mr=Se.n(vy);const Ey="abcdef0123456789";function Vl(e,t){const r=e.url.replace("//",""),n=r.indexOf("/")==-1?"/":r.slice(r.indexOf("/")),o=e.method?e.method.toUpperCase():"GET",i=!!/(^|,)\s*auth\s*($|,)/.test(t.qop)&&"auth",a=`00000000${t.nc}`.slice(-8),u=(function(h,x,m,E,A,y,p){const d=p||mr()(`${x}:${m}:${E}`);return h&&h.toLowerCase()==="md5-sess"?mr()(`${d}:${A}:${y}`):d})(t.algorithm,t.username,t.realm,t.password,t.nonce,t.cnonce,t.ha1),c=mr()(`${o}:${n}`),l=i?mr()(`${u}:${t.nonce}:${a}:${t.cnonce}:${i}:${c}`):mr()(`${u}:${t.nonce}:${c}`),s={username:t.username,realm:t.realm,nonce:t.nonce,uri:n,qop:i,response:l,nc:a,cnonce:t.cnonce,algorithm:t.algorithm,opaque:t.opaque},f=[];for(const h in s)s[h]&&(h==="qop"||h==="nc"||h==="algorithm"?f.push(`${h}=${s[h]}`):f.push(`${h}="${s[h]}"`));return`Digest ${f.join(", ")}`}function Wl(e){return(e.headers&&e.headers.get("www-authenticate")||"").split(/\s/)[0].toLowerCase()==="digest"}var xy=Se(101),Gl=Se.n(xy);function Kl(e){return Gl().decode(e)}function zl(e,t){var r;return`Basic ${r=`${e}:${t}`,Gl().encode(r)}`}const Qr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:typeof window<"u"?window:globalThis,Ay=Qr.fetch.bind(Qr),Ty=Qr.Request,Sy=Qr.Response;let Ze=(function(e){return e.Auto="auto",e.Digest="digest",e.None="none",e.Password="password",e.Token="token",e})({}),At=(function(e){return e.DataTypeNoLength="data-type-no-length",e.InvalidAuthType="invalid-auth-type",e.InvalidOutputFormat="invalid-output-format",e.LinkUnsupportedAuthType="link-unsupported-auth",e.InvalidUpdateRange="invalid-update-range",e.NotSupported="not-supported",e})({});function Xl(e,t,r,n,o){switch(e.authType){case Ze.Auto:t&&r&&(e.headers.Authorization=zl(t,r));break;case Ze.Digest:e.digest=(function(a,u,c){return{username:a,password:u,ha1:c,nc:0,algorithm:"md5",hasDigestAuth:!1}})(t,r,o);break;case Ze.None:break;case Ze.Password:e.headers.Authorization=zl(t,r);break;case Ze.Token:e.headers.Authorization=`${(i=n).token_type} ${i.access_token}`;break;default:throw new Je({info:{code:At.InvalidAuthType}},`Invalid auth type: ${e.authType}`)}var i}Se(345),Se(800);const Yl="@@HOTPATCHER",_y=()=>{};function To(e){return{original:e,methods:[e],final:!1}}class Oy{constructor(){this._configuration={registry:{},getEmptyAction:"null"},this.__type__=Yl}get configuration(){return this._configuration}get getEmptyAction(){return this.configuration.getEmptyAction}set getEmptyAction(t){this.configuration.getEmptyAction=t}control(t){let r=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(!t||t.__type__!==Yl)throw new Error("Failed taking control of target HotPatcher instance: Invalid type or object");return Object.keys(t.configuration.registry).forEach((n=>{this.configuration.registry.hasOwnProperty(n)?r&&(this.configuration.registry[n]=Object.assign({},t.configuration.registry[n])):this.configuration.registry[n]=Object.assign({},t.configuration.registry[n])})),t._configuration=this.configuration,this}execute(t){const r=this.get(t)||_y;for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r(...o)}get(t){const r=this.configuration.registry[t];if(!r)switch(this.getEmptyAction){case"null":return null;case"throw":throw new Error(`Failed handling method request: No method provided for override: ${t}`);default:throw new Error(`Failed handling request which resulted in an empty method: Invalid empty-action specified: ${this.getEmptyAction}`)}return(function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];if(o.length===0)throw new Error("Failed creating sequence: No functions provided");return function(){for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];let l=u;const s=this;for(;o.length>0;)l=[o.shift().apply(s,l)];return l[0]}})(...r.methods)}isPatched(t){return!!this.configuration.registry[t]}patch(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{chain:o=!1}=n;if(this.configuration.registry[t]&&this.configuration.registry[t].final)throw new Error(`Failed patching '${t}': Method marked as being final`);if(typeof r!="function")throw new Error(`Failed patching '${t}': Provided method is not a function`);if(o)this.configuration.registry[t]?this.configuration.registry[t].methods.push(r):this.configuration.registry[t]=To(r);else if(this.isPatched(t)){const{original:i}=this.configuration.registry[t];this.configuration.registry[t]=Object.assign(To(r),{original:i})}else this.configuration.registry[t]=To(r);return this}patchInline(t,r){this.isPatched(t)||this.patch(t,r);for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];return this.execute(t,...o)}plugin(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return n.forEach((i=>{this.patch(t,i,{chain:!0})})),this}restore(t){if(!this.isPatched(t))throw new Error(`Failed restoring method: No method present for key: ${t}`);if(typeof this.configuration.registry[t].original!="function")throw new Error(`Failed restoring method: Original method not found or of invalid type for key: ${t}`);return this.configuration.registry[t].methods=[this.configuration.registry[t].original],this}setFinal(t){if(!this.configuration.registry.hasOwnProperty(t))throw new Error(`Failed marking '${t}' as final: No method found for key`);return this.configuration.registry[t].final=!0,this}}let So=null;function Jl(){return So||(So=new Oy),So}function en(e){return(function(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!="[object Object]")return!1;if(Object.getPrototypeOf(t)===null)return!0;let r=t;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(t)===r})(e)?Object.assign({},e):Object.setPrototypeOf(Object.assign({},e),Object.getPrototypeOf(e))}function Zl(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];let n=null,o=[...t];for(;o.length>0;){const i=o.shift();n=n?Ql(n,i):en(i)}return n}function Ql(e,t){const r=en(e);return Object.keys(t).forEach((n=>{r.hasOwnProperty(n)?Array.isArray(t[n])?r[n]=Array.isArray(r[n])?[...r[n],...t[n]]:[...t[n]]:typeof t[n]=="object"&&t[n]?r[n]=typeof r[n]=="object"&&r[n]?Ql(r[n],t[n]):en(t[n]):r[n]=t[n]:r[n]=t[n]})),r}function Ny(e){const t={};for(const r of e.keys())t[r]=e.get(r);return t}function _o(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t.length===0)return{};const n={};return t.reduce(((o,i)=>(Object.keys(i).forEach((a=>{const u=a.toLowerCase();n.hasOwnProperty(u)?o[n[u]]=i[a]:(n[u]=a,o[a]=i[a])})),o)),{})}Se(805);const Ry=typeof ArrayBuffer=="function",{toString:Py}=Object.prototype;function ec(e){return Ry&&(e instanceof ArrayBuffer||Py.call(e)==="[object ArrayBuffer]")}function tc(e){return e!=null&&e.constructor!=null&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Oo(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}function No(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const rc=Oo((function(e){const t=e._digest;return delete e._digest,t.hasDigestAuth&&(e=Zl(e,{headers:{Authorization:Vl(e,t)}})),No(tn(e),(function(r){let n=!1;return o=function(a){return n?a:r},(i=(function(){if(r.status==401)return t.hasDigestAuth=(function(a,u){if(!Wl(a))return!1;const c=/([a-z0-9_-]+)=(?:"([^"]+)"|([a-z0-9_-]+))/gi;for(;;){const l=a.headers&&a.headers.get("www-authenticate")||"",s=c.exec(l);if(!s)break;u[s[1]]=s[2]||s[3]}return u.nc+=1,u.cnonce=(function(){let l="";for(let s=0;s<32;++s)l=`${l}${Ey[Math.floor(16*Math.random())]}`;return l})(),!0})(r,t),(function(){if(t.hasDigestAuth)return No(tn(e=Zl(e,{headers:{Authorization:Vl(e,t)}})),(function(a){return a.status==401?t.hasDigestAuth=!1:t.nc++,n=!0,a}))})();t.nc++})())&&i.then?i.then(o):o(i);var o,i}))})),Iy=Oo((function(e,t){return No(tn(e),(function(r){return r.ok?(t.authType=Ze.Password,r):r.status==401&&Wl(r)?(t.authType=Ze.Digest,Xl(t,t.username,t.password,void 0,void 0),e._digest=t.digest,rc(e)):r}))})),Me=Oo((function(e,t){return t.authType===Ze.Auto?Iy(e,t):e._digest?rc(e):tn(e)}));function $e(e,t,r){const n=en(e);return n.headers=_o(t.headers,n.headers||{},r.headers||{}),r.data!==void 0&&(n.data=r.data),r.signal&&(n.signal=r.signal),t.httpAgent&&(n.httpAgent=t.httpAgent),t.httpsAgent&&(n.httpsAgent=t.httpsAgent),t.digest&&(n._digest=t.digest),typeof t.withCredentials=="boolean"&&(n.withCredentials=t.withCredentials),n}function tn(e){const t=Jl();return t.patchInline("request",(r=>t.patchInline("fetch",Ay,r.url,(function(n){let o={};const i={method:n.method};if(n.headers&&(o=_o(o,n.headers)),n.data!==void 0){const[a,u]=(function(c){if(typeof c=="string")return[c,{}];if(tc(c))return[c,{}];if(ec(c))return[c,{}];if(c&&typeof c=="object")return[JSON.stringify(c),{"content-type":"application/json"}];throw new Error("Unable to convert request body: Unexpected body type: "+typeof c)})(n.data);i.body=a,o=_o(o,u)}return n.signal&&(i.signal=n.signal),n.withCredentials&&(i.credentials="include"),i.headers=o,i})(r))),e)}var Fy=Se(285);const rn=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")},Cy={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},br=e=>e.replace(/[[\]\\-]/g,"\\$&"),nc=e=>e.join(""),By=(e,t)=>{const r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");const n=[],o=[];let i=r+1,a=!1,u=!1,c=!1,l=!1,s=r,f="";e:for(;i<e.length;){const E=e.charAt(i);if(E!=="!"&&E!=="^"||i!==r+1){if(E==="]"&&a&&!c){s=i+1;break}if(a=!0,E!=="\\"||c){if(E==="["&&!c){for(const[A,[y,p,d]]of Object.entries(Cy))if(e.startsWith(A,i)){if(f)return["$.",!1,e.length-r,!0];i+=A.length,d?o.push(y):n.push(y),u=u||p;continue e}}c=!1,f?(E>f?n.push(br(f)+"-"+br(E)):E===f&&n.push(br(E)),f="",i++):e.startsWith("-]",i+1)?(n.push(br(E+"-")),i+=2):e.startsWith("-",i+1)?(f=E,i+=2):(n.push(br(E)),i++)}else c=!0,i++}else l=!0,i++}if(s<i)return["",!1,0,!1];if(!n.length&&!o.length)return["$.",!1,e.length-r,!0];if(o.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!l)return[(h=n[0].length===2?n[0].slice(-1):n[0],h.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")),!1,s-r,!1];var h;const x="["+(l?"^":"")+nc(n)+"]",m="["+(l?"":"^")+nc(o)+"]";return[n.length&&o.length?"("+x+"|"+m+")":n.length?x:m,u,s-r,!0]},wr=function(e){let{windowsPathsNoEscape:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1")},Ly=new Set(["!","?","+","*","@"]),ic=e=>Ly.has(e),Ro="(?!\\.)",Uy=new Set(["[","."]),jy=new Set(["..","."]),ky=new Set("().*{}+?[]^$\\!"),Po="[^/]",oc=Po+"*?",sc=Po+"+?";class Qe{type;#e;#i;#s=!1;#t=[];#r;#c;#o;#l=!1;#n;#f;#a=!1;constructor(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.type=t,t&&(this.#i=!0),this.#r=r,this.#e=this.#r?this.#r.#e:this,this.#n=this.#e===this?n:this.#e.#n,this.#o=this.#e===this?[]:this.#e.#o,t!=="!"||this.#e.#l||this.#o.push(this),this.#c=this.#r?this.#r.#t.length:0}get hasMagic(){if(this.#i!==void 0)return this.#i;for(const t of this.#t)if(typeof t!="string"&&(t.type||t.hasMagic))return this.#i=!0;return this.#i}toString(){return this.#f!==void 0?this.#f:this.type?this.#f=this.type+"("+this.#t.map((t=>String(t))).join("|")+")":this.#f=this.#t.map((t=>String(t))).join("")}#h(){if(this!==this.#e)throw new Error("should only call on root");if(this.#l)return this;let t;for(this.toString(),this.#l=!0;t=this.#o.pop();){if(t.type!=="!")continue;let r=t,n=r.#r;for(;n;){for(let o=r.#c+1;!n.type&&o<n.#t.length;o++)for(const i of t.#t){if(typeof i=="string")throw new Error("string part in extglob AST??");i.copyIn(n.#t[o])}r=n,n=r.#r}}return this}push(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];for(const o of r)if(o!==""){if(typeof o!="string"&&!(o instanceof Qe&&o.#r===this))throw new Error("invalid part: "+o);this.#t.push(o)}}toJSON(){const t=this.type===null?this.#t.slice().map((r=>typeof r=="string"?r:r.toJSON())):[this.type,...this.#t.map((r=>r.toJSON()))];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#l&&this.#r?.type==="!")&&t.push({}),t}isStart(){if(this.#e===this)return!0;if(!this.#r?.isStart())return!1;if(this.#c===0)return!0;const t=this.#r;for(let r=0;r<this.#c;r++){const n=t.#t[r];if(!(n instanceof Qe&&n.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#r?.type==="!")return!0;if(!this.#r?.isEnd())return!1;if(!this.type)return this.#r?.isEnd();const t=this.#r?this.#r.#t.length:0;return this.#c===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new Qe(this.type,t);for(const n of this.#t)r.copyIn(n);return r}static#u(t,r,n,o){let i=!1,a=!1,u=-1,c=!1;if(r.type===null){let x=n,m="";for(;x<t.length;){const E=t.charAt(x++);if(i||E==="\\")i=!i,m+=E;else if(a)x===u+1?E!=="^"&&E!=="!"||(c=!0):E!=="]"||x===u+2&&c||(a=!1),m+=E;else if(E!=="[")if(o.noext||!ic(E)||t.charAt(x)!=="(")m+=E;else{r.push(m),m="";const A=new Qe(E,r);x=Qe.#u(t,A,x,o),r.push(A)}else a=!0,u=x,c=!1,m+=E}return r.push(m),x}let l=n+1,s=new Qe(null,r);const f=[];let h="";for(;l<t.length;){const x=t.charAt(l++);if(i||x==="\\")i=!i,h+=x;else if(a)l===u+1?x!=="^"&&x!=="!"||(c=!0):x!=="]"||l===u+2&&c||(a=!1),h+=x;else if(x!=="[")if(ic(x)&&t.charAt(l)==="("){s.push(h),h="";const m=new Qe(x,s);s.push(m),l=Qe.#u(t,m,l,o)}else if(x!=="|"){if(x===")")return h===""&&r.#t.length===0&&(r.#a=!0),s.push(h),h="",r.push(...f,s),l;h+=x}else s.push(h),h="",f.push(s),s=new Qe(null,r);else a=!0,u=l,c=!1,h+=x}return r.type=null,r.#i=void 0,r.#t=[t.substring(n-1)],l}static fromGlob(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=new Qe(null,void 0,r);return Qe.#u(t,n,0,r),n}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();const t=this.toString(),[r,n,o,i]=this.toRegExpSource();if(!(o||this.#i||this.#n.nocase&&!this.#n.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return n;const a=(this.#n.nocase?"i":"")+(i?"u":"");return Object.assign(new RegExp(`^${r}$`,a),{_src:r,_glob:t})}get options(){return this.#n}toRegExpSource(t){const r=t??!!this.#n.dot;if(this.#e===this&&this.#h(),!this.type){const c=this.isStart()&&this.isEnd(),l=this.#t.map((h=>{const[x,m,E,A]=typeof h=="string"?Qe.#p(h,this.#i,c):h.toRegExpSource(t);return this.#i=this.#i||E,this.#s=this.#s||A,x})).join("");let s="";if(this.isStart()&&typeof this.#t[0]=="string"&&(this.#t.length!==1||!jy.has(this.#t[0]))){const h=Uy,x=r&&h.has(l.charAt(0))||l.startsWith("\\.")&&h.has(l.charAt(2))||l.startsWith("\\.\\.")&&h.has(l.charAt(4)),m=!r&&!t&&h.has(l.charAt(0));s=x?"(?!(?:^|/)\\.\\.?(?:$|/))":m?Ro:""}let f="";return this.isEnd()&&this.#e.#l&&this.#r?.type==="!"&&(f="(?:$|\\/)"),[s+l+f,wr(l),this.#i=!!this.#i,this.#s]}const n=this.type==="*"||this.type==="+",o=this.type==="!"?"(?:(?!(?:":"(?:";let i=this.#d(r);if(this.isStart()&&this.isEnd()&&!i&&this.type!=="!"){const c=this.toString();return this.#t=[c],this.type=null,this.#i=void 0,[c,wr(this.toString()),!1,!1]}let a=!n||t||r?"":this.#d(!0);a===i&&(a=""),a&&(i=`(?:${i})(?:${a})*?`);let u="";return u=this.type==="!"&&this.#a?(this.isStart()&&!r?Ro:"")+sc:o+i+(this.type==="!"?"))"+(!this.isStart()||r||t?"":Ro)+oc+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`),[u,wr(i),this.#i=!!this.#i,this.#s]}#d(t){return this.#t.map((r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[n,o,i,a]=r.toRegExpSource(t);return this.#s=this.#s||a,n})).filter((r=>!(this.isStart()&&this.isEnd()&&!r))).join("|")}static#p(t,r){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],o=!1,i="",a=!1;for(let u=0;u<t.length;u++){const c=t.charAt(u);if(o)o=!1,i+=(ky.has(c)?"\\":"")+c;else if(c!=="\\"){if(c==="["){const[l,s,f,h]=By(t,u);if(f){i+=l,a=a||s,u+=f-1,r=r||h;continue}}c!=="*"?c!=="?"?i+=c.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):(i+=Po,r=!0):(i+=n&&t==="*"?sc:oc,r=!0)}else u===t.length-1?i+="\\\\":o=!0}return[i,wr(t),!!r,a]}}const Xe=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return rn(t),!(!r.nocomment&&t.charAt(0)==="#")&&new nn(t,r).match(e)},Dy=/^\*+([^+@!?\*\[\(]*)$/,My=e=>t=>!t.startsWith(".")&&t.endsWith(e),$y=e=>t=>t.endsWith(e),qy=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),Hy=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),Vy=/^\*+\.\*+$/,Wy=e=>!e.startsWith(".")&&e.includes("."),Gy=e=>e!=="."&&e!==".."&&e.includes("."),Ky=/^\.\*+$/,zy=e=>e!=="."&&e!==".."&&e.startsWith("."),Xy=/^\*+$/,Yy=e=>e.length!==0&&!e.startsWith("."),Jy=e=>e.length!==0&&e!=="."&&e!=="..",Zy=/^\?+([^+@!?\*\[\(]*)?$/,Qy=e=>{let[t,r=""]=e;const n=ac([t]);return r?(r=r.toLowerCase(),o=>n(o)&&o.toLowerCase().endsWith(r)):n},em=e=>{let[t,r=""]=e;const n=uc([t]);return r?(r=r.toLowerCase(),o=>n(o)&&o.toLowerCase().endsWith(r)):n},tm=e=>{let[t,r=""]=e;const n=uc([t]);return r?o=>n(o)&&o.endsWith(r):n},rm=e=>{let[t,r=""]=e;const n=ac([t]);return r?o=>n(o)&&o.endsWith(r):n},ac=e=>{let[t]=e;const r=t.length;return n=>n.length===r&&!n.startsWith(".")},uc=e=>{let[t]=e;const r=t.length;return n=>n.length===r&&n!=="."&&n!==".."},lc=typeof ye=="object"&&ye?typeof ye.env=="object"&&ye.env&&ye.env.__MINIMATCH_TESTING_PLATFORM__||ye.platform:"posix";Xe.sep=lc==="win32"?"\\":"/";const st=Symbol("globstar **");Xe.GLOBSTAR=st,Xe.filter=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return r=>Xe(r,e,t)};const at=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.assign({},e,t)};Xe.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Xe;const t=Xe;return Object.assign((function(r,n){return t(r,n,at(e,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}))}),{Minimatch:class extends t.Minimatch{constructor(r){super(r,at(e,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}))}static defaults(r){return t.defaults(at(e,r)).Minimatch}},AST:class extends t.AST{constructor(r,n){super(r,n,at(e,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}))}static fromGlob(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.AST.fromGlob(r,at(e,n))}},unescape:function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.unescape(r,at(e,n))},escape:function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.escape(r,at(e,n))},filter:function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.filter(r,at(e,n))},defaults:r=>t.defaults(at(e,r)),makeRe:function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.makeRe(r,at(e,n))},braceExpand:function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.braceExpand(r,at(e,n))},match:function(r,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return t.match(r,n,at(e,o))},sep:t.sep,GLOBSTAR:st})};const cc=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return rn(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:Fy(e)};Xe.braceExpand=cc,Xe.makeRe=function(e){return new nn(e,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).makeRe()},Xe.match=function(e,t){const r=new nn(t,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{});return e=e.filter((n=>r.match(n))),r.options.nonull&&!e.length&&e.push(t),e};const fc=/[?*]|[+@!]\(.*?\)|\[|\]/;class nn{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};rn(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||lc,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const r of t)if(typeof r!="string")return!0;return!1}debug(){}make(){const t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#")return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=function(){return console.error(...arguments)}),this.debug(this.pattern,this.globSet);const n=this.globSet.map((i=>this.slashSplit(i)));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let o=this.globParts.map(((i,a,u)=>{if(this.isWindows&&this.windowsNoMagicRoot){const c=!(i[0]!==""||i[1]!==""||i[2]!=="?"&&fc.test(i[2])||fc.test(i[3])),l=/^[a-z]:/i.test(i[0]);if(c)return[...i.slice(0,4),...i.slice(4).map((s=>this.parse(s)))];if(l)return[i[0],...i.slice(1).map((s=>this.parse(s)))]}return i.map((c=>this.parse(c)))}));if(this.debug(this.pattern,o),this.set=o.filter((i=>i.indexOf(!1)===-1)),this.isWindows)for(let i=0;i<this.set.length;i++){const a=this.set[i];a[0]===""&&a[1]===""&&this.globParts[i][2]==="?"&&typeof a[3]=="string"&&/^[a-z]:$/i.test(a[3])&&(a[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let n=0;n<t.length;n++)for(let o=0;o<t[n].length;o++)t[n][o]==="**"&&(t[n][o]="*");const{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):t=r>=1?this.levelOneOptimize(t):this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map((r=>{let n=-1;for(;(n=r.indexOf("**",n+1))!==-1;){let o=n;for(;r[o+1]==="**";)o++;o!==n&&r.splice(n,o-n)}return r}))}levelOneOptimize(t){return t.map((r=>(r=r.reduce(((n,o)=>{const i=n[n.length-1];return o==="**"&&i==="**"?n:o===".."&&i&&i!==".."&&i!=="."&&i!=="**"?(n.pop(),n):(n.push(o),n)}),[])).length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let o=1;o<t.length-1;o++){const i=t[o];o===1&&i===""&&t[0]===""||i!=="."&&i!==""||(r=!0,t.splice(o,1),o--)}t[0]!=="."||t.length!==2||t[1]!=="."&&t[1]!==""||(r=!0,t.pop())}let n=0;for(;(n=t.indexOf("..",n+1))!==-1;){const o=t[n-1];o&&o!=="."&&o!==".."&&o!=="**"&&(r=!0,t.splice(n-1,2),n-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let n of t){let o=-1;for(;(o=n.indexOf("**",o+1))!==-1;){let a=o;for(;n[a+1]==="**";)a++;a>o&&n.splice(o+1,a-o);let u=n[o+1];const c=n[o+2],l=n[o+3];if(u!==".."||!c||c==="."||c===".."||!l||l==="."||l==="..")continue;r=!0,n.splice(o,1);const s=n.slice(0);s[o]="**",t.push(s),o--}if(!this.preserveMultipleSlashes){for(let a=1;a<n.length-1;a++){const u=n[a];a===1&&u===""&&n[0]===""||u!=="."&&u!==""||(r=!0,n.splice(a,1),a--)}n[0]!=="."||n.length!==2||n[1]!=="."&&n[1]!==""||(r=!0,n.pop())}let i=0;for(;(i=n.indexOf("..",i+1))!==-1;){const a=n[i-1];if(a&&a!=="."&&a!==".."&&a!=="**"){r=!0;const u=i===1&&n[i+1]==="**"?["."]:[];n.splice(i-1,2,...u),n.length===0&&n.push(""),i-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let n=r+1;n<t.length;n++){const o=this.partsMatch(t[r],t[n],!this.preserveMultipleSlashes);if(o){t[r]=[],t[n]=o;break}}return t.filter((r=>r.length))}partsMatch(t,r){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],o=0,i=0,a=[],u="";for(;o<t.length&&i<r.length;)if(t[o]===r[i])a.push(u==="b"?r[i]:t[o]),o++,i++;else if(n&&t[o]==="**"&&r[i]===t[o+1])a.push(t[o]),o++;else if(n&&r[i]==="**"&&t[o]===r[i+1])a.push(r[i]),i++;else if(t[o]!=="*"||!r[i]||!this.options.dot&&r[i].startsWith(".")||r[i]==="**"){if(r[i]!=="*"||!t[o]||!this.options.dot&&t[o].startsWith(".")||t[o]==="**"||u==="a")return!1;u="b",a.push(r[i]),o++,i++}else{if(u==="b")return!1;u="a",a.push(t[o]),o++,i++}return t.length===r.length&&a}parseNegate(){if(this.nonegate)return;const t=this.pattern;let r=!1,n=0;for(let o=0;o<t.length&&t.charAt(o)==="!";o++)r=!r,n++;n&&(this.pattern=t.slice(n)),this.negate=r}matchOne(t,r){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const o=this.options;if(this.isWindows){const E=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),A=!E&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),y=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),p=A?3:E?0:void 0,d=!y&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3])?3:y?0:void 0;if(typeof p=="number"&&typeof d=="number"){const[g,v]=[t[p],r[d]];g.toLowerCase()===v.toLowerCase()&&(r[d]=g,d>p?r=r.slice(d):p>d&&(t=t.slice(p)))}}const{optimizationLevel:i=1}=this.options;i>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var a=0,u=0,c=t.length,l=r.length;a<c&&u<l;a++,u++){this.debug("matchOne loop");var s=r[u],f=t[a];if(this.debug(r,s,f),s===!1)return!1;if(s===st){this.debug("GLOBSTAR",[r,s,f]);var h=a,x=u+1;if(x===l){for(this.debug("** at the end");a<c;a++)if(t[a]==="."||t[a]===".."||!o.dot&&t[a].charAt(0)===".")return!1;return!0}for(;h<c;){var m=t[h];if(this.debug(`
43
- globstar while`,t,h,r,x,m),this.matchOne(t.slice(h),r.slice(x),n))return this.debug("globstar found match!",h,c,m),!0;if(m==="."||m===".."||!o.dot&&m.charAt(0)==="."){this.debug("dot detected!",t,h,r,x);break}this.debug("globstar swallow a segment, and continue"),h++}return!(!n||(this.debug(`
44
- >>> no match, partial?`,t,h,r,x),h!==c))}let E;if(typeof s=="string"?(E=f===s,this.debug("string match",s,f,E)):(E=s.test(f),this.debug("pattern match",s,f,E)),!E)return!1}if(a===c&&u===l)return!0;if(a===c)return n;if(u===l)return a===c-1&&t[a]==="";throw new Error("wtf?")}braceExpand(){return cc(this.pattern,this.options)}parse(t){rn(t);const r=this.options;if(t==="**")return st;if(t==="")return"";let n,o=null;(n=t.match(Xy))?o=r.dot?Jy:Yy:(n=t.match(Dy))?o=(r.nocase?r.dot?Hy:qy:r.dot?$y:My)(n[1]):(n=t.match(Zy))?o=(r.nocase?r.dot?em:Qy:r.dot?tm:rm)(n):(n=t.match(Vy))?o=r.dot?Gy:Wy:(n=t.match(Ky))&&(o=zy);const i=Qe.fromGlob(t,this.options).toMMPattern();return o&&typeof i=="object"&&Reflect.defineProperty(i,"test",{value:o}),i}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const r=this.options,n=r.noglobstar?"[^/]*?":r.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",o=new Set(r.nocase?["i"]:[]);let i=t.map((c=>{const l=c.map((s=>{if(s instanceof RegExp)for(const f of s.flags.split(""))o.add(f);return typeof s=="string"?s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):s===st?st:s._src}));return l.forEach(((s,f)=>{const h=l[f+1],x=l[f-1];s===st&&x!==st&&(x===void 0?h!==void 0&&h!==st?l[f+1]="(?:\\/|"+n+"\\/)?"+h:l[f]=n:h===void 0?l[f-1]=x+"(?:\\/|"+n+")?":h!==st&&(l[f-1]=x+"(?:\\/|\\/"+n+"\\/)"+h,l[f+1]=st))})),l.filter((s=>s!==st)).join("/")})).join("|");const[a,u]=t.length>1?["(?:",")"]:["",""];i="^"+a+i+u+"$",this.negate&&(i="^(?!"+i+").+$");try{this.regexp=new RegExp(i,[...o].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.partial;if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;const n=this.options;this.isWindows&&(t=t.split("\\").join("/"));const o=this.slashSplit(t);this.debug(this.pattern,"split",o);const i=this.set;this.debug(this.pattern,"set",i);let a=o[o.length-1];if(!a)for(let u=o.length-2;!a&&u>=0;u--)a=o[u];for(let u=0;u<i.length;u++){const c=i[u];let l=o;if(n.matchBase&&c.length===1&&(l=[a]),this.matchOne(l,c,r))return!!n.flipNegate||!this.negate}return!n.flipNegate&&this.negate}static defaults(t){return Xe.defaults(t).Minimatch}}function Io(e){const t=new Error(`${arguments.length>1&&arguments[1]!==void 0?arguments[1]:""}Invalid response: ${e.status} ${e.statusText}`);return t.status=e.status,t.response=e,t}function qe(e,t){const{status:r}=t;if(r===401&&e.digest)return t;if(r>=400)throw Io(t);return t}function kt(e,t){return arguments.length>2&&arguments[2]!==void 0&&arguments[2]?{data:t,headers:e.headers?Ny(e.headers):{},status:e.status,statusText:e.statusText}:t}Xe.AST=Qe,Xe.Minimatch=nn,Xe.escape=function(e){let{windowsPathsNoEscape:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&")},Xe.unescape=wr;const nm=(hc=function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=$e({url:Be(e.remoteURL,Ce(t)),method:"COPY",headers:{Destination:Be(e.remoteURL,Ce(r)),Overwrite:n.overwrite===!1?"F":"T",Depth:n.shallow?"0":"infinity"}},e,n);return a=function(u){qe(e,u)},(i=Me(o,e))&&i.then||(i=Promise.resolve(i)),a?i.then(a):i;var i,a},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(hc.apply(this,e))}catch(r){return Promise.reject(r)}});var hc,Fo=Se(635),im=Se(829),Tt=Se.n(im),er=(function(e){return e.Array="array",e.Object="object",e.Original="original",e})(er||{});function on(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:er.Original;const n=Tt().get(e,t);return r==="array"&&Array.isArray(n)===!1?[n]:r==="object"&&Array.isArray(n)?n[0]:n}function vr(e){return new Promise((t=>{t((function(r){const{multistatus:n}=r;if(n==="")return{multistatus:{response:[]}};if(!n)throw new Error("Invalid response: No root multistatus found");const o={multistatus:Array.isArray(n)?n[0]:n};return Tt().set(o,"multistatus.response",on(o,"multistatus.response",er.Array)),Tt().set(o,"multistatus.response",Tt().get(o,"multistatus.response").map((i=>(function(a){const u=Object.assign({},a);return u.status?Tt().set(u,"status",on(u,"status",er.Object)):(Tt().set(u,"propstat",on(u,"propstat",er.Object)),Tt().set(u,"propstat.prop",on(u,"propstat.prop",er.Object))),u})(i)))),o})(new Fo.XMLParser({allowBooleanAttributes:!0,attributeNamePrefix:"",textNodeName:"text",ignoreAttributes:!1,removeNSPrefix:!0,numberParseOptions:{hex:!0,leadingZeros:!1},attributeValueProcessor:(r,n,o)=>n==="true"||n==="false"?n==="true":n,tagValueProcessor(r,n,o){if(!o.endsWith("propstat.prop.displayname"))return n}}).parse(e)))}))}function sn(e,t){let r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const{getlastmodified:n=null,getcontentlength:o="0",resourcetype:i=null,getcontenttype:a=null,getetag:u=null}=e,c=i&&typeof i=="object"&&i.collection!==void 0?"directory":"file",l={filename:t,basename:Zr().basename(t),lastmod:n,size:parseInt(o,10),type:c,etag:typeof u=="string"?u.replace(/"/g,""):null};return c==="file"&&(l.mime=a&&typeof a=="string"?a.split(";")[0]:""),r&&(e.displayname!==void 0&&(e.displayname=String(e.displayname)),l.props=e),l}function dc(e,t){let r=arguments.length>2&&arguments[2]!==void 0&&arguments[2],n=null;try{e.multistatus.response[0].propstat&&(n=e.multistatus.response[0])}catch{}if(!n)throw new Error("Failed getting item stat: bad response");const{propstat:{prop:o,status:i}}=n,[a,u,c]=i.split(" ",3),l=parseInt(u,10);if(l>=400){const s=new Error(`Invalid response: ${l} ${c}`);throw s.status=l,s}return sn(o,yr(t),r)}function pc(e){switch(String(e)){case"-3":return"unlimited";case"-2":case"-1":return"unknown";default:return parseInt(String(e),10)}}function Co(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Bo=(function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}})((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{details:n=!1}=r,o=$e({url:Be(e.remoteURL,Ce(t)),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},e,r);return Co(Me(o,e),(function(i){return qe(e,i),Co(i.text(),(function(a){return Co(vr(a),(function(u){const c=dc(u,t,n);return kt(i,c,n)}))}))}))}));function gc(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const om=yc((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=(function(i){if(!i||i==="/")return[];let a=i;const u=[];do u.push(a),a=Zr().dirname(a);while(a&&a!=="/");return u})(yr(t));n.sort(((i,a)=>i.length>a.length?1:a.length>i.length?-1:0));let o=!1;return(function(i,a,u){if(typeof i[bc]=="function"){let E=function(A){try{for(;!(c=f.next()).done;)if((A=a(c.value))&&A.then){if(!wc(A))return void A.then(E,s||(s=et.bind(null,l=new tr,2)));A=A.v}l?et(l,1,A):l=A}catch(y){et(l||(l=new tr),2,y)}};var c,l,s,f=i[bc]();if(E(),f.return){var h=function(A){try{c.done||f.return()}catch{}return A};if(l&&l.then)return l.then(h,(function(A){throw h(A)}));h()}return l}if(!("length"in i))throw new TypeError("Object is not iterable");for(var x=[],m=0;m<i.length;m++)x.push(i[m]);return(function(E,A,y){var p,d,g=-1;return(function v(T){try{for(;++g<E.length&&(!y||!y());)if((T=A(g))&&T.then){if(!wc(T))return void T.then(v,d||(d=et.bind(null,p=new tr,2)));T=T.v}p?et(p,1,T):p=T}catch(P){et(p||(p=new tr),2,P)}})(),p})(x,(function(E){return a(x[E])}),u)})(n,(function(i){return a=function(){return(function(c,l){try{var s=gc(Bo(e,i),(function(f){if(f.type!=="directory")throw new Error(`Path includes a file: ${t}`)}))}catch(f){return l(f)}return s&&s.then?s.then(void 0,l):s})(0,(function(c){const l=c;return(function(){if(l.status===404)return o=!0,mc(Lo(e,i,{...r,recursive:!1}));throw c})()}))},(u=(function(){if(o)return mc(Lo(e,i,{...r,recursive:!1}))})())&&u.then?u.then(a):a();var a,u}),(function(){return!1}))}));function yc(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}function sm(){}function mc(e,t){return e&&e.then?e.then(sm):Promise.resolve()}const bc=typeof Symbol<"u"?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function et(e,t,r){if(!e.s){if(r instanceof tr){if(!r.s)return void(r.o=et.bind(null,e,t));1&t&&(t=r.s),r=r.v}if(r&&r.then)return void r.then(et.bind(null,e,t),et.bind(null,e,2));e.s=t,e.v=r;const n=e.o;n&&n(e)}}const tr=(function(){function e(){}return e.prototype.then=function(t,r){const n=new e,o=this.s;if(o){const i=1&o?t:r;if(i){try{et(n,1,i(this.v))}catch(a){et(n,2,a)}return n}return this}return this.o=function(i){try{const a=i.v;1&i.s?et(n,1,t?t(a):a):r?et(n,1,r(a)):et(n,2,a)}catch(a){et(n,2,a)}},n},e})();function wc(e){return e instanceof tr&&1&e.s}const Lo=yc((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(r.recursive===!0)return om(e,t,r);const n=$e({url:Be(e.remoteURL,(o=Ce(t),o.endsWith("/")?o:o+"/")),method:"MKCOL"},e,r);var o;return gc(Me(n,e),(function(i){qe(e,i)}))}));var am=Se(388),vc=Se.n(am);const um=(function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}})((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n={};if(typeof r.range=="object"&&typeof r.range.start=="number"){let u=`bytes=${r.range.start}-`;typeof r.range.end=="number"&&(u=`${u}${r.range.end}`),n.Range=u}const o=$e({url:Be(e.remoteURL,Ce(t)),method:"GET",headers:n},e,r);return a=function(u){if(qe(e,u),n.Range&&u.status!==206){const c=new Error(`Invalid response code for partial request: ${u.status}`);throw c.status=u.status,c}return r.callback&&setTimeout((()=>{r.callback(u)}),0),u.body},(i=Me(o,e))&&i.then||(i=Promise.resolve(i)),a?i.then(a):i;var i,a})),lm=()=>{},cm=(function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}})((function(e,t,r){r.url||(r.url=Be(e.remoteURL,Ce(t)));const n=$e(r,e,{});return i=function(a){return qe(e,a),a},(o=Me(n,e))&&o.then||(o=Promise.resolve(o)),i?o.then(i):o;var o,i})),fm=(function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}})((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=$e({url:Be(e.remoteURL,Ce(t)),method:"DELETE"},e,r);return i=function(a){qe(e,a)},(o=Me(n,e))&&o.then||(o=Promise.resolve(o)),i?o.then(i):o;var o,i})),hm=(function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}})((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return(function(n,o){try{var i=(a=Bo(e,t,r),u=function(){return!0},c?u?u(a):a:(a&&a.then||(a=Promise.resolve(a)),u?a.then(u):a))}catch(l){return o(l)}var a,u,c;return i&&i.then?i.then(void 0,o):i})(0,(function(n){if(n.status===404)return!1;throw n}))}));function Uo(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const dm=(function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}})((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=$e({url:Be(e.remoteURL,Ce(t),"/"),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:r.deep?"infinity":"1"}},e,r);return Uo(Me(n,e),(function(o){return qe(e,o),Uo(o.text(),(function(i){if(!i)throw new Error("Failed parsing directory contents: Empty response");return Uo(vr(i),(function(a){const u=Hl(t);let c=(function(l,s,f){let h=arguments.length>3&&arguments[3]!==void 0&&arguments[3],x=arguments.length>4&&arguments[4]!==void 0&&arguments[4];const m=Zr().join(s,"/"),{multistatus:{response:E}}=l,A=E.map((y=>{const p=(function(g){try{return g.replace(/^https?:\/\/[^\/]+/,"")}catch(v){throw new Je(v,"Failed normalising HREF")}})(y.href),{propstat:{prop:d}}=y;return sn(d,m==="/"?decodeURIComponent(yr(p)):yr(Zr().relative(decodeURIComponent(m),decodeURIComponent(p))),h)}));return x?A:A.filter((y=>y.basename&&(y.type==="file"||y.filename!==f.replace(/\/$/,""))))})(a,Hl(e.remoteBasePath||e.remotePath),u,r.details,r.includeSelf);return r.glob&&(c=(function(l,s){return l.filter((f=>Xe(f.filename,s,{matchBase:!0})))})(c,r.glob)),kt(o,c,r.details)}))}))}))}));function jo(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}const pm=jo((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=$e({url:Be(e.remoteURL,Ce(t)),method:"GET",headers:{Accept:"text/plain"},transformResponse:[mm]},e,r);return an(Me(n,e),(function(o){return qe(e,o),an(o.text(),(function(i){return kt(o,i,r.details)}))}))}));function an(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const gm=jo((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=$e({url:Be(e.remoteURL,Ce(t)),method:"GET"},e,r);return an(Me(n,e),(function(o){let i;return qe(e,o),(function(a,u){var c=a();return c&&c.then?c.then(u):u()})((function(){return an(o.arrayBuffer(),(function(a){i=a}))}),(function(){return kt(o,i,r.details)}))}))})),ym=jo((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{format:n="binary"}=r;if(n!=="binary"&&n!=="text")throw new Je({info:{code:At.InvalidOutputFormat}},`Invalid output format: ${n}`);return n==="text"?pm(e,t,r):gm(e,t,r)})),mm=e=>e;function bm(e){return new Fo.XMLBuilder({attributeNamePrefix:"@_",format:!0,ignoreAttributes:!1,suppressEmptyNode:!0}).build(Ec({lockinfo:{"@_xmlns:d":"DAV:",lockscope:{exclusive:{}},locktype:{write:{}},owner:{href:e}}},"d"))}function Ec(e,t){const r={...e};for(const n in r)r.hasOwnProperty(n)&&(r[n]&&typeof r[n]=="object"&&n.indexOf(":")===-1?(r[`${t}:${n}`]=Ec(r[n],t),delete r[n]):/^@_/.test(n)===!1&&(r[`${t}:${n}`]=r[n],delete r[n]));return r}function ko(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function xc(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}const wm=xc((function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=$e({url:Be(e.remoteURL,Ce(t)),method:"UNLOCK",headers:{"Lock-Token":r}},e,n);return ko(Me(o,e),(function(i){if(qe(e,i),i.status!==204&&i.status!==200)throw Io(i)}))})),vm=xc((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{refreshToken:n,timeout:o=Em}=r,i={Accept:"text/plain,application/xml",Timeout:o};n&&(i.If=n);const a=$e({url:Be(e.remoteURL,Ce(t)),method:"LOCK",headers:i,data:bm(e.contactHref)},e,r);return ko(Me(a,e),(function(u){return qe(e,u),ko(u.text(),(function(c){const l=(h=c,new Fo.XMLParser({removeNSPrefix:!0,parseAttributeValue:!0,parseTagValue:!0}).parse(h)),s=Tt().get(l,"prop.lockdiscovery.activelock.locktoken.href"),f=Tt().get(l,"prop.lockdiscovery.activelock.timeout");var h;if(!s)throw Io(u,"No lock token received: ");return{token:s,serverTimeout:f}}))}))})),Em="Infinite, Second-4100000000";function Do(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const xm=(function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}})((function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=t.path||"/",n=$e({url:Be(e.remoteURL,r),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},e,t);return Do(Me(n,e),(function(o){return qe(e,o),Do(o.text(),(function(i){return Do(vr(i),(function(a){const u=(function(c){try{const[l]=c.multistatus.response,{propstat:{prop:{"quota-used-bytes":s,"quota-available-bytes":f}}}=l;return s!==void 0&&f!==void 0?{used:parseInt(String(s),10),available:pc(f)}:null}catch{}return null})(a);return kt(o,u,t.details)}))}))}))}));function Mo(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Am=(function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}})((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{details:n=!1}=r,o=$e({url:Be(e.remoteURL,Ce(t)),method:"SEARCH",headers:{Accept:"text/plain,application/xml","Content-Type":e.headers["Content-Type"]||"application/xml; charset=utf-8"}},e,r);return Mo(Me(o,e),(function(i){return qe(e,i),Mo(i.text(),(function(a){return Mo(vr(a),(function(u){const c=(function(l,s,f){const h={truncated:!1,results:[]};return h.truncated=l.multistatus.response.some((x=>(x.status||x.propstat?.status).split(" ",3)?.[1]==="507"&&x.href.replace(/\/$/,"").endsWith(Ce(s).replace(/\/$/,"")))),l.multistatus.response.forEach((x=>{if(x.propstat===void 0)return;const m=x.href.split("/").map(decodeURIComponent).join("/");h.results.push(sn(x.propstat.prop,m,f))})),h})(u,t,n);return kt(i,c,n)}))}))}))})),Tm=(function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}})((function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=$e({url:Be(e.remoteURL,Ce(t)),method:"MOVE",headers:{Destination:Be(e.remoteURL,Ce(r)),Overwrite:n.overwrite===!1?"F":"T"}},e,n);return a=function(u){qe(e,u)},(i=Me(o,e))&&i.then||(i=Promise.resolve(i)),a?i.then(a):i;var i,a}));var Sm=Se(172);const _m=(function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}})((function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const{contentLength:o=!0,overwrite:i=!0}=n,a={"Content-Type":"application/octet-stream"};o===!1||(a["Content-Length"]=typeof o=="number"?`${o}`:`${(function(s){if(ec(s))return s.byteLength;if(tc(s))return s.length;if(typeof s=="string")return(0,Sm.d)(s);throw new Je({info:{code:At.DataTypeNoLength}},"Cannot calculate data length: Invalid type")})(r)}`),i||(a["If-None-Match"]="*");const u=$e({url:Be(e.remoteURL,Ce(t)),method:"PUT",headers:a,data:r},e,n);return l=function(s){try{qe(e,s)}catch(f){const h=f;if(h.status!==412||i)throw h;return!1}return!0},(c=Me(u,e))&&c.then||(c=Promise.resolve(c)),l?c.then(l):c;var c,l})),Ac=(function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}})((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=$e({url:Be(e.remoteURL,Ce(t)),method:"OPTIONS"},e,r);return i=function(a){try{qe(e,a)}catch(u){throw u}return{compliance:(a.headers.get("DAV")??"").split(",").map((u=>u.trim())),server:a.headers.get("Server")??""}},(o=Me(n,e))&&o.then||(o=Promise.resolve(o)),i?o.then(i):o;var o,i}));function Er(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Om=$o((function(e,t,r,n,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(r>n||r<0)throw new Je({info:{code:At.InvalidUpdateRange}},`Invalid update range ${r} for partial update`);const a={"Content-Type":"application/octet-stream","Content-Length":""+(n-r+1),"Content-Range":`bytes ${r}-${n}/*`},u=$e({url:Be(e.remoteURL,Ce(t)),method:"PUT",headers:a,data:o},e,i);return Er(Me(u,e),(function(c){qe(e,c)}))}));function Tc(e,t){var r=e();return r&&r.then?r.then(t):t(r)}const Nm=$o((function(e,t,r,n,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(r>n||r<0)throw new Je({info:{code:At.InvalidUpdateRange}},`Invalid update range ${r} for partial update`);const a={"Content-Type":"application/x-sabredav-partialupdate","Content-Length":""+(n-r+1),"X-Update-Range":`bytes=${r}-${n}`},u=$e({url:Be(e.remoteURL,Ce(t)),method:"PATCH",headers:a,data:o},e,i);return Er(Me(u,e),(function(c){qe(e,c)}))}));function $o(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}const Rm=$o((function(e,t,r,n,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};return Er(Ac(e,t,i),(function(a){let u=!1;return Tc((function(){if(a.compliance.includes("sabredav-partialupdate"))return Er(Nm(e,t,r,n,o,i),(function(c){return u=!0,c}))}),(function(c){let l=!1;return u?c:Tc((function(){if(a.server.includes("Apache")&&a.compliance.includes("<http://apache.org/dav/propset/fs/1>"))return Er(Om(e,t,r,n,o,i),(function(s){return l=!0,s}))}),(function(s){if(l)return s;throw new Je({info:{code:At.NotSupported}},"Not supported")}))}))}))})),Pm="https://github.com/perry-mitchell/webdav-client/blob/master/LOCK_CONTACT.md";function Im(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{authType:r=null,remoteBasePath:n,contactHref:o=Pm,ha1:i,headers:a={},httpAgent:u,httpsAgent:c,password:l,token:s,username:f,withCredentials:h}=t;let x=r;x||(x=f||l?Ze.Password:Ze.None);const m={authType:x,remoteBasePath:n,contactHref:o,ha1:i,headers:Object.assign({},a),httpAgent:u,httpsAgent:c,password:l,remotePath:wy(e),remoteURL:e,token:s,username:f,withCredentials:h};return Xl(m,f,l,s,i),{copyFile:(E,A,y)=>nm(m,E,A,y),createDirectory:(E,A)=>Lo(m,E,A),createReadStream:(E,A)=>(function(y,p){let d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const g=new(vc()).PassThrough;return um(y,p,d).then((v=>{v.pipe(g)})).catch((v=>{g.emit("error",v)})),g})(m,E,A),createWriteStream:(E,A,y)=>(function(p,d){let g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:lm;const T=new(vc()).PassThrough,P={};g.overwrite===!1&&(P["If-None-Match"]="*");const I=$e({url:Be(p.remoteURL,Ce(d)),method:"PUT",headers:P,data:T,maxRedirects:0},p,g);return Me(I,p).then((O=>qe(p,O))).then((O=>{setTimeout((()=>{v(O)}),0)})).catch((O=>{T.emit("error",O)})),T})(m,E,A,y),customRequest:(E,A)=>cm(m,E,A),deleteFile:(E,A)=>fm(m,E,A),exists:(E,A)=>hm(m,E,A),getDirectoryContents:(E,A)=>dm(m,E,A),getFileContents:(E,A)=>ym(m,E,A),getFileDownloadLink:E=>(function(A,y){let p=Be(A.remoteURL,Ce(y));const d=/^https:/i.test(p)?"https":"http";switch(A.authType){case Ze.None:break;case Ze.Password:{const g=Kl(A.headers.Authorization.replace(/^Basic /i,"").trim());p=p.replace(/^https?:\/\//,`${d}://${g}@`);break}default:throw new Je({info:{code:At.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${A.authType}`)}return p})(m,E),getFileUploadLink:E=>(function(A,y){let p=`${Be(A.remoteURL,Ce(y))}?Content-Type=application/octet-stream`;const d=/^https:/i.test(p)?"https":"http";switch(A.authType){case Ze.None:break;case Ze.Password:{const g=Kl(A.headers.Authorization.replace(/^Basic /i,"").trim());p=p.replace(/^https?:\/\//,`${d}://${g}@`);break}default:throw new Je({info:{code:At.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${A.authType}`)}return p})(m,E),getHeaders:()=>Object.assign({},m.headers),getQuota:E=>xm(m,E),lock:(E,A)=>vm(m,E,A),moveFile:(E,A,y)=>Tm(m,E,A,y),putFileContents:(E,A,y)=>_m(m,E,A,y),partialUpdateFileContents:(E,A,y,p,d)=>Rm(m,E,A,y,p,d),getDAVCompliance:E=>Ac(m,E),search:(E,A)=>Am(m,E,A),setHeaders:E=>{m.headers=Object.assign({},E)},stat:(E,A)=>Bo(m,E,A),unlock:(E,A,y)=>wm(m,E,A,y)}}ot.hT,ot.O4,ot.Kd,ot.YK;var Fm=ot.UU;ot.Gu,ot.ky;var Cm=ot.h4,Bm=ot.ch;ot.hq,ot.i5;const We=[];for(let e=0;e<256;++e)We.push((e+256).toString(16).slice(1));function Lm(e,t=0){return(We[e[t+0]]+We[e[t+1]]+We[e[t+2]]+We[e[t+3]]+"-"+We[e[t+4]]+We[e[t+5]]+"-"+We[e[t+6]]+We[e[t+7]]+"-"+We[e[t+8]]+We[e[t+9]]+"-"+We[e[t+10]]+We[e[t+11]]+We[e[t+12]]+We[e[t+13]]+We[e[t+14]]+We[e[t+15]]).toLowerCase()}let qo;const Um=new Uint8Array(16);function jm(){if(!qo){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");qo=crypto.getRandomValues.bind(crypto)}return qo(Um)}var Sc={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function km(e,t,r){e=e||{};const n=e.random??e.rng?.()??jm();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,Lm(n)}function Dm(e,t,r){return Sc.randomUUID&&!e?Sc.randomUUID():km(e)}var Ho={},Vo={},_c;function Wo(){return _c||(_c=1,(function(e){const t=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",r=t+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",n="["+t+"]["+r+"]*",o=new RegExp("^"+n+"$"),i=function(u,c){const l=[];let s=c.exec(u);for(;s;){const f=[];f.startIndex=c.lastIndex-s[0].length;const h=s.length;for(let x=0;x<h;x++)f.push(s[x]);l.push(f),s=c.exec(u)}return l},a=function(u){const c=o.exec(u);return!(c===null||typeof c>"u")};e.isExist=function(u){return typeof u<"u"},e.isEmptyObject=function(u){return Object.keys(u).length===0},e.merge=function(u,c,l){if(c){const s=Object.keys(c),f=s.length;for(let h=0;h<f;h++)l==="strict"?u[s[h]]=[c[s[h]]]:u[s[h]]=c[s[h]]}},e.getValue=function(u){return e.isExist(u)?u:""},e.isName=a,e.getAllMatches=i,e.nameRegexp=n})(Vo)),Vo}var Oc;function Nc(){if(Oc)return Ho;Oc=1;const e=Wo(),t={allowBooleanAttributes:!1,unpairedTags:[]};Ho.validate=function(y,p){p=Object.assign({},t,p);const d=[];let g=!1,v=!1;y[0]==="\uFEFF"&&(y=y.substr(1));for(let T=0;T<y.length;T++)if(y[T]==="<"&&y[T+1]==="?"){if(T+=2,T=n(y,T),T.err)return T}else if(y[T]==="<"){let P=T;if(T++,y[T]==="!"){T=o(y,T);continue}else{let I=!1;y[T]==="/"&&(I=!0,T++);let O="";for(;T<y.length&&y[T]!==">"&&y[T]!==" "&&y[T]!==" "&&y[T]!==`
45
- `&&y[T]!=="\r";T++)O+=y[T];if(O=O.trim(),O[O.length-1]==="/"&&(O=O.substring(0,O.length-1),T--),!m(O)){let L;return O.trim().length===0?L="Invalid space after '<'.":L="Tag '"+O+"' is an invalid name.",h("InvalidTag",L,E(y,T))}const j=u(y,T);if(j===!1)return h("InvalidAttr","Attributes for '"+O+"' have open quote.",E(y,T));let K=j.value;if(T=j.index,K[K.length-1]==="/"){const L=T-K.length;K=K.substring(0,K.length-1);const k=l(K,p);if(k===!0)g=!0;else return h(k.err.code,k.err.msg,E(y,L+k.err.line))}else if(I)if(j.tagClosed){if(K.trim().length>0)return h("InvalidTag","Closing tag '"+O+"' can't have attributes or invalid starting.",E(y,P));if(d.length===0)return h("InvalidTag","Closing tag '"+O+"' has not been opened.",E(y,P));{const L=d.pop();if(O!==L.tagName){let k=E(y,L.tagStartPos);return h("InvalidTag","Expected closing tag '"+L.tagName+"' (opened in line "+k.line+", col "+k.col+") instead of closing tag '"+O+"'.",E(y,P))}d.length==0&&(v=!0)}}else return h("InvalidTag","Closing tag '"+O+"' doesn't have proper closing.",E(y,T));else{const L=l(K,p);if(L!==!0)return h(L.err.code,L.err.msg,E(y,T-K.length+L.err.line));if(v===!0)return h("InvalidXml","Multiple possible root nodes found.",E(y,T));p.unpairedTags.indexOf(O)!==-1||d.push({tagName:O,tagStartPos:P}),g=!0}for(T++;T<y.length;T++)if(y[T]==="<")if(y[T+1]==="!"){T++,T=o(y,T);continue}else if(y[T+1]==="?"){if(T=n(y,++T),T.err)return T}else break;else if(y[T]==="&"){const L=f(y,T);if(L==-1)return h("InvalidChar","char '&' is not expected.",E(y,T));T=L}else if(v===!0&&!r(y[T]))return h("InvalidXml","Extra text at the end",E(y,T));y[T]==="<"&&T--}}else{if(r(y[T]))continue;return h("InvalidChar","char '"+y[T]+"' is not expected.",E(y,T))}if(g){if(d.length==1)return h("InvalidTag","Unclosed tag '"+d[0].tagName+"'.",E(y,d[0].tagStartPos));if(d.length>0)return h("InvalidXml","Invalid '"+JSON.stringify(d.map(T=>T.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return h("InvalidXml","Start tag expected.",1);return!0};function r(y){return y===" "||y===" "||y===`
46
- `||y==="\r"}function n(y,p){const d=p;for(;p<y.length;p++)if(y[p]=="?"||y[p]==" "){const g=y.substr(d,p-d);if(p>5&&g==="xml")return h("InvalidXml","XML declaration allowed only at the start of the document.",E(y,p));if(y[p]=="?"&&y[p+1]==">"){p++;break}else continue}return p}function o(y,p){if(y.length>p+5&&y[p+1]==="-"&&y[p+2]==="-"){for(p+=3;p<y.length;p++)if(y[p]==="-"&&y[p+1]==="-"&&y[p+2]===">"){p+=2;break}}else if(y.length>p+8&&y[p+1]==="D"&&y[p+2]==="O"&&y[p+3]==="C"&&y[p+4]==="T"&&y[p+5]==="Y"&&y[p+6]==="P"&&y[p+7]==="E"){let d=1;for(p+=8;p<y.length;p++)if(y[p]==="<")d++;else if(y[p]===">"&&(d--,d===0))break}else if(y.length>p+9&&y[p+1]==="["&&y[p+2]==="C"&&y[p+3]==="D"&&y[p+4]==="A"&&y[p+5]==="T"&&y[p+6]==="A"&&y[p+7]==="["){for(p+=8;p<y.length;p++)if(y[p]==="]"&&y[p+1]==="]"&&y[p+2]===">"){p+=2;break}}return p}const i='"',a="'";function u(y,p){let d="",g="",v=!1;for(;p<y.length;p++){if(y[p]===i||y[p]===a)g===""?g=y[p]:g!==y[p]||(g="");else if(y[p]===">"&&g===""){v=!0;break}d+=y[p]}return g!==""?!1:{value:d,index:p,tagClosed:v}}const c=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function l(y,p){const d=e.getAllMatches(y,c),g={};for(let v=0;v<d.length;v++){if(d[v][1].length===0)return h("InvalidAttr","Attribute '"+d[v][2]+"' has no space in starting.",A(d[v]));if(d[v][3]!==void 0&&d[v][4]===void 0)return h("InvalidAttr","Attribute '"+d[v][2]+"' is without value.",A(d[v]));if(d[v][3]===void 0&&!p.allowBooleanAttributes)return h("InvalidAttr","boolean attribute '"+d[v][2]+"' is not allowed.",A(d[v]));const T=d[v][2];if(!x(T))return h("InvalidAttr","Attribute '"+T+"' is an invalid name.",A(d[v]));if(!g.hasOwnProperty(T))g[T]=1;else return h("InvalidAttr","Attribute '"+T+"' is repeated.",A(d[v]))}return!0}function s(y,p){let d=/\d/;for(y[p]==="x"&&(p++,d=/[\da-fA-F]/);p<y.length;p++){if(y[p]===";")return p;if(!y[p].match(d))break}return-1}function f(y,p){if(p++,y[p]===";")return-1;if(y[p]==="#")return p++,s(y,p);let d=0;for(;p<y.length;p++,d++)if(!(y[p].match(/\w/)&&d<20)){if(y[p]===";")break;return-1}return p}function h(y,p,d){return{err:{code:y,msg:p,line:d.line||d,col:d.col}}}function x(y){return e.isName(y)}function m(y){return e.isName(y)}function E(y,p){const d=y.substring(0,p).split(/\r?\n/);return{line:d.length,col:d[d.length-1].length+1}}function A(y){return y.startIndex+y[1].length}return Ho}var un={},Rc;function Mm(){if(Rc)return un;Rc=1;const e={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(r,n){return n},attributeValueProcessor:function(r,n){return n},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(r,n,o){return r}},t=function(r){return Object.assign({},e,r)};return un.buildOptions=t,un.defaultOptions=e,un}var Go,Pc;function $m(){if(Pc)return Go;Pc=1;class e{constructor(r){this.tagname=r,this.child=[],this[":@"]={}}add(r,n){r==="__proto__"&&(r="#__proto__"),this.child.push({[r]:n})}addChild(r){r.tagname==="__proto__"&&(r.tagname="#__proto__"),r[":@"]&&Object.keys(r[":@"]).length>0?this.child.push({[r.tagname]:r.child,":@":r[":@"]}):this.child.push({[r.tagname]:r.child})}}return Go=e,Go}var Ko,Ic;function qm(){if(Ic)return Ko;Ic=1;const e=Wo();function t(l,s){const f={};if(l[s+3]==="O"&&l[s+4]==="C"&&l[s+5]==="T"&&l[s+6]==="Y"&&l[s+7]==="P"&&l[s+8]==="E"){s=s+9;let h=1,x=!1,m=!1,E="";for(;s<l.length;s++)if(l[s]==="<"&&!m){if(x&&o(l,s)){s+=7;let A,y;[A,y,s]=r(l,s+1),y.indexOf("&")===-1&&(f[c(A)]={regx:RegExp(`&${A};`,"g"),val:y})}else if(x&&i(l,s))s+=8;else if(x&&a(l,s))s+=8;else if(x&&u(l,s))s+=9;else if(n)m=!0;else throw new Error("Invalid DOCTYPE");h++,E=""}else if(l[s]===">"){if(m?l[s-1]==="-"&&l[s-2]==="-"&&(m=!1,h--):h--,h===0)break}else l[s]==="["?x=!0:E+=l[s];if(h!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:f,i:s}}function r(l,s){let f="";for(;s<l.length&&l[s]!=="'"&&l[s]!=='"';s++)f+=l[s];if(f=f.trim(),f.indexOf(" ")!==-1)throw new Error("External entites are not supported");const h=l[s++];let x="";for(;s<l.length&&l[s]!==h;s++)x+=l[s];return[f,x,s]}function n(l,s){return l[s+1]==="!"&&l[s+2]==="-"&&l[s+3]==="-"}function o(l,s){return l[s+1]==="!"&&l[s+2]==="E"&&l[s+3]==="N"&&l[s+4]==="T"&&l[s+5]==="I"&&l[s+6]==="T"&&l[s+7]==="Y"}function i(l,s){return l[s+1]==="!"&&l[s+2]==="E"&&l[s+3]==="L"&&l[s+4]==="E"&&l[s+5]==="M"&&l[s+6]==="E"&&l[s+7]==="N"&&l[s+8]==="T"}function a(l,s){return l[s+1]==="!"&&l[s+2]==="A"&&l[s+3]==="T"&&l[s+4]==="T"&&l[s+5]==="L"&&l[s+6]==="I"&&l[s+7]==="S"&&l[s+8]==="T"}function u(l,s){return l[s+1]==="!"&&l[s+2]==="N"&&l[s+3]==="O"&&l[s+4]==="T"&&l[s+5]==="A"&&l[s+6]==="T"&&l[s+7]==="I"&&l[s+8]==="O"&&l[s+9]==="N"}function c(l){if(e.isName(l))return l;throw new Error(`Invalid entity name ${l}`)}return Ko=t,Ko}var zo,Fc;function Hm(){if(Fc)return zo;Fc=1;const e=/^[-+]?0x[a-fA-F0-9]+$/,t=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,r={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function n(a,u={}){if(u=Object.assign({},r,u),!a||typeof a!="string")return a;let c=a.trim();if(u.skipLike!==void 0&&u.skipLike.test(c))return a;if(a==="0")return 0;if(u.hex&&e.test(c))return i(c,16);if(c.search(/[eE]/)!==-1){const l=c.match(/^([-\+])?(0*)([0-9]*(\.[0-9]*)?[eE][-\+]?[0-9]+)$/);if(l){if(u.leadingZeros)c=(l[1]||"")+l[3];else if(!(l[2]==="0"&&l[3][0]==="."))return a;return u.eNotation?Number(c):a}else return a}else{const l=t.exec(c);if(l){const s=l[1],f=l[2];let h=o(l[3]);if(!u.leadingZeros&&f.length>0&&s&&c[2]!==".")return a;if(!u.leadingZeros&&f.length>0&&!s&&c[1]!==".")return a;if(u.leadingZeros&&f===a)return 0;{const x=Number(c),m=""+x;return m.search(/[eE]/)!==-1?u.eNotation?x:a:c.indexOf(".")!==-1?m==="0"&&h===""||m===h||s&&m==="-"+h?x:a:f?h===m||s+h===m?x:a:c===m||c===s+m?x:a}}else return a}}function o(a){return a&&a.indexOf(".")!==-1&&(a=a.replace(/0+$/,""),a==="."?a="0":a[0]==="."?a="0"+a:a[a.length-1]==="."&&(a=a.substr(0,a.length-1))),a}function i(a,u){if(parseInt)return parseInt(a,u);if(Number.parseInt)return Number.parseInt(a,u);if(window&&window.parseInt)return window.parseInt(a,u);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}return zo=n,zo}var Xo,Cc;function Bc(){if(Cc)return Xo;Cc=1;function e(t){return typeof t=="function"?t:Array.isArray(t)?r=>{for(const n of t)if(typeof n=="string"&&r===n||n instanceof RegExp&&n.test(r))return!0}:()=>!1}return Xo=e,Xo}var Yo,Lc;function Vm(){if(Lc)return Yo;Lc=1;const e=Wo(),t=$m(),r=qm(),n=Hm(),o=Bc();class i{constructor(T){this.options=T,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(P,I)=>String.fromCharCode(Number.parseInt(I,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(P,I)=>String.fromCharCode(Number.parseInt(I,16))}},this.addExternalEntities=a,this.parseXml=f,this.parseTextData=u,this.resolveNameSpace=c,this.buildAttributesMap=s,this.isItStopNode=E,this.replaceEntitiesValue=x,this.readStopNodeData=d,this.saveTextToParentTag=m,this.addChild=h,this.ignoreAttributesFn=o(this.options.ignoreAttributes)}}function a(v){const T=Object.keys(v);for(let P=0;P<T.length;P++){const I=T[P];this.lastEntities[I]={regex:new RegExp("&"+I+";","g"),val:v[I]}}}function u(v,T,P,I,O,j,K){if(v!==void 0&&(this.options.trimValues&&!I&&(v=v.trim()),v.length>0)){K||(v=this.replaceEntitiesValue(v));const L=this.options.tagValueProcessor(T,v,P,O,j);return L==null?v:typeof L!=typeof v||L!==v?L:this.options.trimValues?g(v,this.options.parseTagValue,this.options.numberParseOptions):v.trim()===v?g(v,this.options.parseTagValue,this.options.numberParseOptions):v}}function c(v){if(this.options.removeNSPrefix){const T=v.split(":"),P=v.charAt(0)==="/"?"/":"";if(T[0]==="xmlns")return"";T.length===2&&(v=P+T[1])}return v}const l=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function s(v,T,P){if(this.options.ignoreAttributes!==!0&&typeof v=="string"){const I=e.getAllMatches(v,l),O=I.length,j={};for(let K=0;K<O;K++){const L=this.resolveNameSpace(I[K][1]);if(this.ignoreAttributesFn(L,T))continue;let k=I[K][4],re=this.options.attributeNamePrefix+L;if(L.length)if(this.options.transformAttributeName&&(re=this.options.transformAttributeName(re)),re==="__proto__"&&(re="#__proto__"),k!==void 0){this.options.trimValues&&(k=k.trim()),k=this.replaceEntitiesValue(k);const ee=this.options.attributeValueProcessor(L,k,T);ee==null?j[re]=k:typeof ee!=typeof k||ee!==k?j[re]=ee:j[re]=g(k,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(j[re]=!0)}if(!Object.keys(j).length)return;if(this.options.attributesGroupName){const K={};return K[this.options.attributesGroupName]=j,K}return j}}const f=function(v){v=v.replace(/\r\n?/g,`
47
- `);const T=new t("!xml");let P=T,I="",O="";for(let j=0;j<v.length;j++)if(v[j]==="<")if(v[j+1]==="/"){const L=y(v,">",j,"Closing Tag is not closed.");let k=v.substring(j+2,L).trim();if(this.options.removeNSPrefix){const ue=k.indexOf(":");ue!==-1&&(k=k.substr(ue+1))}this.options.transformTagName&&(k=this.options.transformTagName(k)),P&&(I=this.saveTextToParentTag(I,P,O));const re=O.substring(O.lastIndexOf(".")+1);if(k&&this.options.unpairedTags.indexOf(k)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${k}>`);let ee=0;re&&this.options.unpairedTags.indexOf(re)!==-1?(ee=O.lastIndexOf(".",O.lastIndexOf(".")-1),this.tagsNodeStack.pop()):ee=O.lastIndexOf("."),O=O.substring(0,ee),P=this.tagsNodeStack.pop(),I="",j=L}else if(v[j+1]==="?"){let L=p(v,j,!1,"?>");if(!L)throw new Error("Pi Tag is not closed.");if(I=this.saveTextToParentTag(I,P,O),!(this.options.ignoreDeclaration&&L.tagName==="?xml"||this.options.ignorePiTags)){const k=new t(L.tagName);k.add(this.options.textNodeName,""),L.tagName!==L.tagExp&&L.attrExpPresent&&(k[":@"]=this.buildAttributesMap(L.tagExp,O,L.tagName)),this.addChild(P,k,O)}j=L.closeIndex+1}else if(v.substr(j+1,3)==="!--"){const L=y(v,"-->",j+4,"Comment is not closed.");if(this.options.commentPropName){const k=v.substring(j+4,L-2);I=this.saveTextToParentTag(I,P,O),P.add(this.options.commentPropName,[{[this.options.textNodeName]:k}])}j=L}else if(v.substr(j+1,2)==="!D"){const L=r(v,j);this.docTypeEntities=L.entities,j=L.i}else if(v.substr(j+1,2)==="!["){const L=y(v,"]]>",j,"CDATA is not closed.")-2,k=v.substring(j+9,L);I=this.saveTextToParentTag(I,P,O);let re=this.parseTextData(k,P.tagname,O,!0,!1,!0,!0);re==null&&(re=""),this.options.cdataPropName?P.add(this.options.cdataPropName,[{[this.options.textNodeName]:k}]):P.add(this.options.textNodeName,re),j=L+2}else{let L=p(v,j,this.options.removeNSPrefix),k=L.tagName;const re=L.rawTagName;let ee=L.tagExp,ue=L.attrExpPresent,le=L.closeIndex;this.options.transformTagName&&(k=this.options.transformTagName(k)),P&&I&&P.tagname!=="!xml"&&(I=this.saveTextToParentTag(I,P,O,!1));const de=P;if(de&&this.options.unpairedTags.indexOf(de.tagname)!==-1&&(P=this.tagsNodeStack.pop(),O=O.substring(0,O.lastIndexOf("."))),k!==T.tagname&&(O+=O?"."+k:k),this.isItStopNode(this.options.stopNodes,O,k)){let fe="";if(ee.length>0&&ee.lastIndexOf("/")===ee.length-1)k[k.length-1]==="/"?(k=k.substr(0,k.length-1),O=O.substr(0,O.length-1),ee=k):ee=ee.substr(0,ee.length-1),j=L.closeIndex;else if(this.options.unpairedTags.indexOf(k)!==-1)j=L.closeIndex;else{const pe=this.readStopNodeData(v,re,le+1);if(!pe)throw new Error(`Unexpected end of ${re}`);j=pe.i,fe=pe.tagContent}const be=new t(k);k!==ee&&ue&&(be[":@"]=this.buildAttributesMap(ee,O,k)),fe&&(fe=this.parseTextData(fe,k,O,!0,ue,!0,!0)),O=O.substr(0,O.lastIndexOf(".")),be.add(this.options.textNodeName,fe),this.addChild(P,be,O)}else{if(ee.length>0&&ee.lastIndexOf("/")===ee.length-1){k[k.length-1]==="/"?(k=k.substr(0,k.length-1),O=O.substr(0,O.length-1),ee=k):ee=ee.substr(0,ee.length-1),this.options.transformTagName&&(k=this.options.transformTagName(k));const fe=new t(k);k!==ee&&ue&&(fe[":@"]=this.buildAttributesMap(ee,O,k)),this.addChild(P,fe,O),O=O.substr(0,O.lastIndexOf("."))}else{const fe=new t(k);this.tagsNodeStack.push(P),k!==ee&&ue&&(fe[":@"]=this.buildAttributesMap(ee,O,k)),this.addChild(P,fe,O),P=fe}I="",j=le}}else I+=v[j];return T.child};function h(v,T,P){const I=this.options.updateTag(T.tagname,P,T[":@"]);I===!1||(typeof I=="string"&&(T.tagname=I),v.addChild(T))}const x=function(v){if(this.options.processEntities){for(let T in this.docTypeEntities){const P=this.docTypeEntities[T];v=v.replace(P.regx,P.val)}for(let T in this.lastEntities){const P=this.lastEntities[T];v=v.replace(P.regex,P.val)}if(this.options.htmlEntities)for(let T in this.htmlEntities){const P=this.htmlEntities[T];v=v.replace(P.regex,P.val)}v=v.replace(this.ampEntity.regex,this.ampEntity.val)}return v};function m(v,T,P,I){return v&&(I===void 0&&(I=T.child.length===0),v=this.parseTextData(v,T.tagname,P,!1,T[":@"]?Object.keys(T[":@"]).length!==0:!1,I),v!==void 0&&v!==""&&T.add(this.options.textNodeName,v),v=""),v}function E(v,T,P){const I="*."+P;for(const O in v){const j=v[O];if(I===j||T===j)return!0}return!1}function A(v,T,P=">"){let I,O="";for(let j=T;j<v.length;j++){let K=v[j];if(I)K===I&&(I="");else if(K==='"'||K==="'")I=K;else if(K===P[0])if(P[1]){if(v[j+1]===P[1])return{data:O,index:j}}else return{data:O,index:j};else K===" "&&(K=" ");O+=K}}function y(v,T,P,I){const O=v.indexOf(T,P);if(O===-1)throw new Error(I);return O+T.length-1}function p(v,T,P,I=">"){const O=A(v,T+1,I);if(!O)return;let j=O.data;const K=O.index,L=j.search(/\s/);let k=j,re=!0;L!==-1&&(k=j.substring(0,L),j=j.substring(L+1).trimStart());const ee=k;if(P){const ue=k.indexOf(":");ue!==-1&&(k=k.substr(ue+1),re=k!==O.data.substr(ue+1))}return{tagName:k,tagExp:j,closeIndex:K,attrExpPresent:re,rawTagName:ee}}function d(v,T,P){const I=P;let O=1;for(;P<v.length;P++)if(v[P]==="<")if(v[P+1]==="/"){const j=y(v,">",P,`${T} is not closed`);if(v.substring(P+2,j).trim()===T&&(O--,O===0))return{tagContent:v.substring(I,P),i:j};P=j}else if(v[P+1]==="?")P=y(v,"?>",P+1,"StopNode is not closed.");else if(v.substr(P+1,3)==="!--")P=y(v,"-->",P+3,"StopNode is not closed.");else if(v.substr(P+1,2)==="![")P=y(v,"]]>",P,"StopNode is not closed.")-2;else{const j=p(v,P,">");j&&((j&&j.tagName)===T&&j.tagExp[j.tagExp.length-1]!=="/"&&O++,P=j.closeIndex)}}function g(v,T,P){if(T&&typeof v=="string"){const I=v.trim();return I==="true"?!0:I==="false"?!1:n(v,P)}else return e.isExist(v)?v:""}return Yo=i,Yo}var Jo={},Uc;function Wm(){if(Uc)return Jo;Uc=1;function e(i,a){return t(i,a)}function t(i,a,u){let c;const l={};for(let s=0;s<i.length;s++){const f=i[s],h=r(f);let x="";if(u===void 0?x=h:x=u+"."+h,h===a.textNodeName)c===void 0?c=f[h]:c+=""+f[h];else{if(h===void 0)continue;if(f[h]){let m=t(f[h],a,x);const E=o(m,a);f[":@"]?n(m,f[":@"],x,a):Object.keys(m).length===1&&m[a.textNodeName]!==void 0&&!a.alwaysCreateTextNode?m=m[a.textNodeName]:Object.keys(m).length===0&&(a.alwaysCreateTextNode?m[a.textNodeName]="":m=""),l[h]!==void 0&&l.hasOwnProperty(h)?(Array.isArray(l[h])||(l[h]=[l[h]]),l[h].push(m)):a.isArray(h,x,E)?l[h]=[m]:l[h]=m}}}return typeof c=="string"?c.length>0&&(l[a.textNodeName]=c):c!==void 0&&(l[a.textNodeName]=c),l}function r(i){const a=Object.keys(i);for(let u=0;u<a.length;u++){const c=a[u];if(c!==":@")return c}}function n(i,a,u,c){if(a){const l=Object.keys(a),s=l.length;for(let f=0;f<s;f++){const h=l[f];c.isArray(h,u+"."+h,!0,!0)?i[h]=[a[h]]:i[h]=a[h]}}}function o(i,a){const{textNodeName:u}=a,c=Object.keys(i).length;return!!(c===0||c===1&&(i[u]||typeof i[u]=="boolean"||i[u]===0))}return Jo.prettify=e,Jo}var Zo,jc;function Gm(){if(jc)return Zo;jc=1;const{buildOptions:e}=Mm(),t=Vm(),{prettify:r}=Wm(),n=Nc();class o{constructor(a){this.externalEntities={},this.options=e(a)}parse(a,u){if(typeof a!="string")if(a.toString)a=a.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(u){u===!0&&(u={});const s=n.validate(a,u);if(s!==!0)throw Error(`${s.err.msg}:${s.err.line}:${s.err.col}`)}const c=new t(this.options);c.addExternalEntities(this.externalEntities);const l=c.parseXml(a);return this.options.preserveOrder||l===void 0?l:r(l,this.options)}addEntity(a,u){if(u.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(a.indexOf("&")!==-1||a.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if(u==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[a]=u}}return Zo=o,Zo}var Qo,kc;function Km(){if(kc)return Qo;kc=1;const e=`
48
- `;function t(u,c){let l="";return c.format&&c.indentBy.length>0&&(l=e),r(u,c,"",l)}function r(u,c,l,s){let f="",h=!1;for(let x=0;x<u.length;x++){const m=u[x],E=n(m);if(E===void 0)continue;let A="";if(l.length===0?A=E:A=`${l}.${E}`,E===c.textNodeName){let v=m[E];i(A,c)||(v=c.tagValueProcessor(E,v),v=a(v,c)),h&&(f+=s),f+=v,h=!1;continue}else if(E===c.cdataPropName){h&&(f+=s),f+=`<![CDATA[${m[E][0][c.textNodeName]}]]>`,h=!1;continue}else if(E===c.commentPropName){f+=s+`<!--${m[E][0][c.textNodeName]}-->`,h=!0;continue}else if(E[0]==="?"){const v=o(m[":@"],c),T=E==="?xml"?"":s;let P=m[E][0][c.textNodeName];P=P.length!==0?" "+P:"",f+=T+`<${E}${P}${v}?>`,h=!0;continue}let y=s;y!==""&&(y+=c.indentBy);const p=o(m[":@"],c),d=s+`<${E}${p}`,g=r(m[E],c,A,y);c.unpairedTags.indexOf(E)!==-1?c.suppressUnpairedNode?f+=d+">":f+=d+"/>":(!g||g.length===0)&&c.suppressEmptyNode?f+=d+"/>":g&&g.endsWith(">")?f+=d+`>${g}${s}</${E}>`:(f+=d+">",g&&s!==""&&(g.includes("/>")||g.includes("</"))?f+=s+c.indentBy+g+s:f+=g,f+=`</${E}>`),h=!0}return f}function n(u){const c=Object.keys(u);for(let l=0;l<c.length;l++){const s=c[l];if(u.hasOwnProperty(s)&&s!==":@")return s}}function o(u,c){let l="";if(u&&!c.ignoreAttributes)for(let s in u){if(!u.hasOwnProperty(s))continue;let f=c.attributeValueProcessor(s,u[s]);f=a(f,c),f===!0&&c.suppressBooleanAttributes?l+=` ${s.substr(c.attributeNamePrefix.length)}`:l+=` ${s.substr(c.attributeNamePrefix.length)}="${f}"`}return l}function i(u,c){u=u.substr(0,u.length-c.textNodeName.length-1);let l=u.substr(u.lastIndexOf(".")+1);for(let s in c.stopNodes)if(c.stopNodes[s]===u||c.stopNodes[s]==="*."+l)return!0;return!1}function a(u,c){if(u&&u.length>0&&c.processEntities)for(let l=0;l<c.entities.length;l++){const s=c.entities[l];u=u.replace(s.regex,s.val)}return u}return Qo=t,Qo}var es,Dc;function zm(){if(Dc)return es;Dc=1;const e=Km(),t=Bc(),r={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(u,c){return c},attributeValueProcessor:function(u,c){return c},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function n(u){this.options=Object.assign({},r,u),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=t(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=a),this.processTextOrObjNode=o,this.options.format?(this.indentate=i,this.tagEndChar=`>
49
- `,this.newLine=`
50
- `):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}n.prototype.build=function(u){return this.options.preserveOrder?e(u,this.options):(Array.isArray(u)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(u={[this.options.arrayNodeName]:u}),this.j2x(u,0,[]).val)},n.prototype.j2x=function(u,c,l){let s="",f="";const h=l.join(".");for(let x in u)if(Object.prototype.hasOwnProperty.call(u,x))if(typeof u[x]>"u")this.isAttribute(x)&&(f+="");else if(u[x]===null)this.isAttribute(x)||x===this.options.cdataPropName?f+="":x[0]==="?"?f+=this.indentate(c)+"<"+x+"?"+this.tagEndChar:f+=this.indentate(c)+"<"+x+"/"+this.tagEndChar;else if(u[x]instanceof Date)f+=this.buildTextValNode(u[x],x,"",c);else if(typeof u[x]!="object"){const m=this.isAttribute(x);if(m&&!this.ignoreAttributesFn(m,h))s+=this.buildAttrPairStr(m,""+u[x]);else if(!m)if(x===this.options.textNodeName){let E=this.options.tagValueProcessor(x,""+u[x]);f+=this.replaceEntitiesValue(E)}else f+=this.buildTextValNode(u[x],x,"",c)}else if(Array.isArray(u[x])){const m=u[x].length;let E="",A="";for(let y=0;y<m;y++){const p=u[x][y];if(!(typeof p>"u"))if(p===null)x[0]==="?"?f+=this.indentate(c)+"<"+x+"?"+this.tagEndChar:f+=this.indentate(c)+"<"+x+"/"+this.tagEndChar;else if(typeof p=="object")if(this.options.oneListGroup){const d=this.j2x(p,c+1,l.concat(x));E+=d.val,this.options.attributesGroupName&&p.hasOwnProperty(this.options.attributesGroupName)&&(A+=d.attrStr)}else E+=this.processTextOrObjNode(p,x,c,l);else if(this.options.oneListGroup){let d=this.options.tagValueProcessor(x,p);d=this.replaceEntitiesValue(d),E+=d}else E+=this.buildTextValNode(p,x,"",c)}this.options.oneListGroup&&(E=this.buildObjectNode(E,x,A,c)),f+=E}else if(this.options.attributesGroupName&&x===this.options.attributesGroupName){const m=Object.keys(u[x]),E=m.length;for(let A=0;A<E;A++)s+=this.buildAttrPairStr(m[A],""+u[x][m[A]])}else f+=this.processTextOrObjNode(u[x],x,c,l);return{attrStr:s,val:f}},n.prototype.buildAttrPairStr=function(u,c){return c=this.options.attributeValueProcessor(u,""+c),c=this.replaceEntitiesValue(c),this.options.suppressBooleanAttributes&&c==="true"?" "+u:" "+u+'="'+c+'"'};function o(u,c,l,s){const f=this.j2x(u,l+1,s.concat(c));return u[this.options.textNodeName]!==void 0&&Object.keys(u).length===1?this.buildTextValNode(u[this.options.textNodeName],c,f.attrStr,l):this.buildObjectNode(f.val,c,f.attrStr,l)}n.prototype.buildObjectNode=function(u,c,l,s){if(u==="")return c[0]==="?"?this.indentate(s)+"<"+c+l+"?"+this.tagEndChar:this.indentate(s)+"<"+c+l+this.closeTag(c)+this.tagEndChar;{let f="</"+c+this.tagEndChar,h="";return c[0]==="?"&&(h="?",f=""),(l||l==="")&&u.indexOf("<")===-1?this.indentate(s)+"<"+c+l+h+">"+u+f:this.options.commentPropName!==!1&&c===this.options.commentPropName&&h.length===0?this.indentate(s)+`<!--${u}-->`+this.newLine:this.indentate(s)+"<"+c+l+h+this.tagEndChar+u+this.indentate(s)+f}},n.prototype.closeTag=function(u){let c="";return this.options.unpairedTags.indexOf(u)!==-1?this.options.suppressUnpairedNode||(c="/"):this.options.suppressEmptyNode?c="/":c=`></${u}`,c},n.prototype.buildTextValNode=function(u,c,l,s){if(this.options.cdataPropName!==!1&&c===this.options.cdataPropName)return this.indentate(s)+`<![CDATA[${u}]]>`+this.newLine;if(this.options.commentPropName!==!1&&c===this.options.commentPropName)return this.indentate(s)+`<!--${u}-->`+this.newLine;if(c[0]==="?")return this.indentate(s)+"<"+c+l+"?"+this.tagEndChar;{let f=this.options.tagValueProcessor(c,u);return f=this.replaceEntitiesValue(f),f===""?this.indentate(s)+"<"+c+l+this.closeTag(c)+this.tagEndChar:this.indentate(s)+"<"+c+l+">"+f+"</"+c+this.tagEndChar}},n.prototype.replaceEntitiesValue=function(u){if(u&&u.length>0&&this.options.processEntities)for(let c=0;c<this.options.entities.length;c++){const l=this.options.entities[c];u=u.replace(l.regex,l.val)}return u};function i(u){return this.options.indentBy.repeat(u)}function a(u){return u.startsWith(this.options.attributeNamePrefix)&&u!==this.options.textNodeName?u.substr(this.attrPrefixLen):!1}return es=n,es}var ts,Mc;function Xm(){if(Mc)return ts;Mc=1;const e=Nc(),t=Gm(),r=zm();return ts={XMLParser:t,XMLValidator:e,XMLBuilder:r},ts}var rs=Xm();const ns=(e,t)=>Object.fromEntries(Object.entries(e).map(([r,n])=>t.includes(r)?[r,n||""]:[Bt.DavNamespace.includes(r)?`d:${r}`:`oc:${r}`,n||""])),$c=(e=[],{pattern:t,filterRules:r,limit:n=0,extraProps:o=[]})=>{let i="d:propfind";t&&(i="oc:search-files"),r&&(i="oc:filter-files");const a=e.reduce((s,f)=>Object.assign(s,{[f]:null}),{}),u=ns(a,o),c={[i]:{"d:prop":u,"@@xmlns:d":"DAV:","@@xmlns:oc":"http://owncloud.org/ns",...t&&{"oc:search":{"oc:pattern":t,"oc:limit":n}},...r&&{"oc:filter-rules":ns(r,[])}}};return new rs.XMLBuilder({format:!0,ignoreAttributes:!1,attributeNamePrefix:"@@",suppressEmptyNode:!0}).build(c)},Ym=e=>{const t={"d:propertyupdate":{"d:set":{"d:prop":ns(e,[])},"@@xmlns:d":"DAV:","@@xmlns:oc":"http://owncloud.org/ns"}};return new rs.XMLBuilder({format:!0,ignoreAttributes:!1,attributeNamePrefix:"@@",suppressEmptyNode:!0}).build(t)},Jm=e=>{const t={},r=e.get("tus-version");return r?(t.version=r.split(","),e.get("tus-extension")&&(t.extension=e.get("tus-extension").split(",")),e.get("tus-resumable")&&(t.resumable=e.get("tus-resumable")),e.get("tus-max-size")&&(t.maxSize=parseInt(e.get("tus-max-size"),10)),t):null},Zm=async e=>{const t=n=>{const o=decodeURIComponent(n);return n?.startsWith("/remote.php/dav/")?Ee(o.replace("/remote.php/dav/",""),{leadingSlash:!0,trailingSlash:!1}):o};return(await Cm(e)).multistatus.response.map(({href:n,propstat:o})=>{const i={...Bm(o.prop,t(n),!0),processing:o.status==="HTTP/1.1 425 TOO EARLY"};return i.props.name&&(i.props.name=i.props.name.toString()),i})},Qm=e=>{const t=new rs.XMLParser,r={message:"Unknown error",errorCode:void 0};try{const n=t.parse(e);if(!n["d:error"])return r;if(n["d:error"]["s:message"]){const o=n["d:error"]["s:message"];typeof o=="string"&&(r.message=o)}if(n["d:error"]["s:errorcode"]){const o=n["d:error"]["s:errorcode"];typeof o=="string"&&(r.errorCode=o)}}catch{return r}return r};class eb{client;davPath;headers;extraProps;constructor({baseUrl:t,headers:r}){this.davPath=Ee(t,"remote.php/dav"),this.client=Fm(this.davPath,{}),this.headers=r,this.extraProps=[]}mkcol(t,r={}){return this.request(t,{method:vt.mkcol,...r})}async propfind(t,{depth:r=1,properties:n=[],headers:o={},...i}={}){const a={...o,Depth:r.toString()},{body:u,result:c}=await this.request(t,{method:vt.propfind,data:$c(n,{extraProps:this.extraProps}),headers:a,...i});return u?.length&&(u[0].tusSupport=Jm(c.headers)),u}async report(t,{pattern:r="",filterRules:n=null,limit:o=30,properties:i,...a}={}){const{body:u,result:c}=await this.request(t,{method:vt.report,data:$c(i,{pattern:r,filterRules:n,limit:o,extraProps:this.extraProps}),...a});return{results:u,range:c.headers.get("content-range")}}copy(t,r,{overwrite:n=!1,headers:o={},...i}={}){const a=Ee(this.davPath,Lr(r));return this.request(t,{method:vt.copy,headers:{...o,Destination:a,overwrite:n?"T":"F"},...i})}move(t,r,{overwrite:n=!1,headers:o={},...i}={}){const a=Ee(this.davPath,Lr(r));return this.request(t,{method:vt.move,headers:{...o,Destination:a,overwrite:n?"T":"F"},...i})}put(t,r,{headers:n={},onUploadProgress:o,previousEntityTag:i,overwrite:a,...u}={}){const c={...n};return i?c["If-Match"]=i:a||(c["If-None-Match"]="*"),this.request(t,{method:vt.put,data:r,headers:c,onUploadProgress:o,...u})}delete(t,r={}){return this.request(t,{method:vt.delete,...r})}propPatch(t,r,n={}){const o=Ym(r);return this.request(t,{method:vt.proppatch,data:o,...n})}getFileUrl(t){return Ee(this.davPath,Lr(t))}buildHeaders(t={}){return{"Content-Type":"application/xml; charset=utf-8","X-Requested-With":"XMLHttpRequest","X-Request-ID":Dm(),...this.headers&&{...this.headers()},...t}}async request(t,r){const n=Ee(this.davPath,Lr(t),{leadingSlash:!0}),o={...r,url:n,headers:this.buildHeaders(r.headers||{})};try{const i=await this.client.customRequest("",o);let a;if(i.status===207){const u=await i.text();a=await Zm(u)}return{body:a,status:i.status,result:i}}catch(i){const{response:a}=i,u=await a.text(),c=Qm(u);throw new $h(c.message,c.errorCode,a,a.status)}}}const tb=(e,t)=>({async listFileVersions(r,n={}){const[o,...i]=await e.propfind(Ee("meta",r,"v",{leadingSlash:!0}),n);return i.map(a=>zt(a,e.extraProps))}}),rb=(e,t)=>({setFavorite(r,{path:n},o,i={}){const a={[se.IsFavorite]:o?"true":"false"};return e.propPatch(Ee(r.webDavPath,n),a,i)}}),nb=(e,t)=>({listFavoriteFiles({davProperties:r=Bt.Default,username:n="",...o}={}){return e.report(Ee("files",n),{properties:r,filterRules:{favorite:1},...o})}}),ib=(e,t)=>{const r=ke.create();t&&r.interceptors.request.use(k=>(Object.assign(k.headers,t()),k));const n={axiosClient:r,baseUrl:e},o=new eb({baseUrl:e,headers:t}),i=k=>{o.extraProps.push(k)},a=py(o),{getPathForFileId:u}=a,c=sy(o,a),{listFiles:l}=c,s=ny(c),{getFileInfo:f}=s,{createFolder:h}=ty(o,s),x=ry(o,n),{getFileContents:m}=x,{putFileContents:E}=uy(o,s),{getFileUrl:A,revokeUrl:y}=iy(o,x,n),{getPublicFileUrl:p}=oy(o),{copyFiles:d}=ey(o),{moveFiles:g}=ay(o),{deleteFile:v}=ly(o),{restoreFile:T}=cy(o),{listFileVersions:P}=tb(o),{restoreFileVersion:I}=fy(o),{clearTrashBin:O}=hy(o),{search:j}=dy(o),{listFavoriteFiles:K}=nb(o),{setFavorite:L}=rb(o);return{copyFiles:d,createFolder:h,deleteFile:v,restoreFile:T,restoreFileVersion:I,getFileContents:m,getFileInfo:f,getFileUrl:A,getPublicFileUrl:p,getPathForFileId:u,listFiles:l,listFileVersions:P,moveFiles:g,putFileContents:E,revokeUrl:y,clearTrashBin:O,search:j,listFavoriteFiles:K,setFavorite:L,registerExtraProp:i}};let xr;const ob=async({client:e,space:t,path:r,existingPaths:n})=>{const o=r.split("/").filter(Boolean);let i="";for(const a of o){const u=Ee(i,a);if(n.includes(u)){i=Ee(i,a);continue}try{await e.createFolder(t,{path:u})}catch{}n.push(u),i=u}return{existingPaths:n}};self.onmessage=async e=>{const{topic:t,data:r}=JSON.parse(e.data);if(t==="tokenUpdate"&&xr){xr.Authorization?.toString().startsWith("Bearer")&&(xr.Authorization=r.accessToken);return}const{baseUrl:n,headers:o,space:i,resources:a,missingFolderPaths:u}=r;xr=o;const c=ib(n,()=>xr),l=[],s=[],f=new Yc({concurrency:4});let h=[];const x=a.map(m=>f.add(async()=>{const E=gn.dirname(m.path);if(u.includes(E)){const{existingPaths:A}=await ob({client:c,space:i,path:E,existingPaths:h});h=A}try{await c.restoreFile(i,m,m,{overwrite:!0}),l.push(m)}catch(A){console.error(A),s.push({resource:m,message:A.message,statusCode:A.statusCode,xReqId:A.response.headers?.get("x-request-id")})}}));await Promise.allSettled(x),postMessage(JSON.stringify({successful:l,failed:s}))}})();