@meridianlabs/inspect-scout-viewer 0.4.21 → 0.4.38

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 (412) hide show
  1. package/README.md +2 -0
  2. package/package.json +47 -58
  3. package/lib/_commonjsHelpers-DWwsNxpa.js +0 -9
  4. package/lib/_commonjsHelpers-DWwsNxpa.js.map +0 -1
  5. package/lib/chunk-DfAF0w94-Oj7OW_Zs.js +0 -9
  6. package/lib/chunk-DfAF0w94-Oj7OW_Zs.js.map +0 -1
  7. package/lib/e2e/app-navigation.spec.d.ts +0 -1
  8. package/lib/e2e/fixtures/app.d.ts +0 -7
  9. package/lib/e2e/fixtures/handlers.d.ts +0 -2
  10. package/lib/e2e/fixtures/test-data.d.ts +0 -14
  11. package/lib/e2e/scan.spec.d.ts +0 -1
  12. package/lib/e2e/scans.spec.d.ts +0 -1
  13. package/lib/e2e/transcript.spec.d.ts +0 -1
  14. package/lib/e2e/transcripts.spec.d.ts +0 -1
  15. package/lib/index.d.ts +0 -2
  16. package/lib/index.js +0 -161737
  17. package/lib/index.js.map +0 -1
  18. package/lib/lib-CBtriEt5-CU1RYBHb.js +0 -1070
  19. package/lib/lib-CBtriEt5-CU1RYBHb.js.map +0 -1
  20. package/lib/liteDOM-Cp0aN3bP-DXyQNx3e.js +0 -644
  21. package/lib/liteDOM-Cp0aN3bP-DXyQNx3e.js.map +0 -1
  22. package/lib/src/App.d.ts +0 -6
  23. package/lib/src/AppErrorBoundary.d.ts +0 -15
  24. package/lib/src/AppRouter.d.ts +0 -6
  25. package/lib/src/api/api-scout-server.d.ts +0 -8
  26. package/lib/src/api/api-vscode.d.ts +0 -3
  27. package/lib/src/api/api.d.ts +0 -44
  28. package/lib/src/api/attachmentsHelpers.d.ts +0 -1
  29. package/lib/src/api/expandInputEvents.d.ts +0 -6
  30. package/lib/src/api/jsonrpc-fetch.d.ts +0 -20
  31. package/lib/src/api/jsonrpc.d.ts +0 -50
  32. package/lib/src/api/request.d.ts +0 -34
  33. package/lib/src/api/vscode-storage.d.ts +0 -3
  34. package/lib/src/app/components/ActivityBar.d.ts +0 -23
  35. package/lib/src/app/components/ActivityBarLayout.d.ts +0 -11
  36. package/lib/src/app/components/AddFilterButton.d.ts +0 -37
  37. package/lib/src/app/components/BreadCrumbs.d.ts +0 -10
  38. package/lib/src/app/components/Chip.d.ts +0 -12
  39. package/lib/src/app/components/ChipGroup.d.ts +0 -7
  40. package/lib/src/app/components/ColumnHeader.d.ts +0 -11
  41. package/lib/src/app/components/ColumnPickerButton.d.ts +0 -19
  42. package/lib/src/app/components/ColumnsPopover.d.ts +0 -25
  43. package/lib/src/app/components/EditablePath.d.ts +0 -15
  44. package/lib/src/app/components/EditableText.d.ts +0 -16
  45. package/lib/src/app/components/Error.d.ts +0 -7
  46. package/lib/src/app/components/Explanation.d.ts +0 -12
  47. package/lib/src/app/components/FilterBar.d.ts +0 -35
  48. package/lib/src/app/components/Footer.d.ts +0 -21
  49. package/lib/src/app/components/HeadingGrid.d.ts +0 -15
  50. package/lib/src/app/components/Identifier.d.ts +0 -7
  51. package/lib/src/app/components/NavButtons.d.ts +0 -12
  52. package/lib/src/app/components/Navbar.d.ts +0 -11
  53. package/lib/src/app/components/NextPreviousNav.d.ts +0 -11
  54. package/lib/src/app/components/Pager.d.ts +0 -9
  55. package/lib/src/app/components/ProjectBar.d.ts +0 -7
  56. package/lib/src/app/components/ScansNavbar.d.ts +0 -10
  57. package/lib/src/app/components/ScoreValue.d.ts +0 -10
  58. package/lib/src/app/components/TaskName.d.ts +0 -8
  59. package/lib/src/app/components/TranscriptsNavbar.d.ts +0 -11
  60. package/lib/src/app/components/ValidationResult.d.ts +0 -9
  61. package/lib/src/app/components/Value.d.ts +0 -15
  62. package/lib/src/app/components/columnFilter/ColumnFilterButton.d.ts +0 -6
  63. package/lib/src/app/components/columnFilter/ColumnFilterControl.d.ts +0 -16
  64. package/lib/src/app/components/columnFilter/ColumnFilterEditor.d.ts +0 -32
  65. package/lib/src/app/components/columnFilter/DurationInput.d.ts +0 -9
  66. package/lib/src/app/components/columnFilter/index.d.ts +0 -12
  67. package/lib/src/app/components/columnFilter/useAddFilterPopover.d.ts +0 -36
  68. package/lib/src/app/components/columnFilter/useColumnFilter.d.ts +0 -27
  69. package/lib/src/app/components/columnFilter/useColumnFilterPopover.d.ts +0 -25
  70. package/lib/src/app/components/columnSizing/defaultStrategy.d.ts +0 -2
  71. package/lib/src/app/components/columnSizing/fitContentStrategy.d.ts +0 -2
  72. package/lib/src/app/components/columnSizing/index.d.ts +0 -5
  73. package/lib/src/app/components/columnSizing/strategies.d.ts +0 -10
  74. package/lib/src/app/components/columnSizing/types.d.ts +0 -60
  75. package/lib/src/app/components/columnTypes.d.ts +0 -46
  76. package/lib/src/app/components/dataGrid/DataGrid.d.ts +0 -8
  77. package/lib/src/app/components/dataGrid/index.d.ts +0 -2
  78. package/lib/src/app/components/dataGrid/types.d.ts +0 -70
  79. package/lib/src/app/components/useBreadcrumbTruncation.d.ts +0 -12
  80. package/lib/src/app/components/useFilterBarHandlers.d.ts +0 -41
  81. package/lib/src/app/hooks/useFilterConditions.d.ts +0 -6
  82. package/lib/src/app/hooks/useScanFilterConditions.d.ts +0 -6
  83. package/lib/src/app/hooks/useScanResultSummaries.d.ts +0 -6
  84. package/lib/src/app/hooks/useScanRoute.d.ts +0 -8
  85. package/lib/src/app/hooks/useScansFilterBarProps.d.ts +0 -13
  86. package/lib/src/app/hooks/useSelectedScan.d.ts +0 -3
  87. package/lib/src/app/hooks/useSelectedScanDataframe.d.ts +0 -3
  88. package/lib/src/app/hooks/useSelectedScanResultData.d.ts +0 -3
  89. package/lib/src/app/hooks/useSelectedScanResultInputData.d.ts +0 -3
  90. package/lib/src/app/hooks/useSelectedScanner.d.ts +0 -2
  91. package/lib/src/app/hooks/useTranscriptsFilterBarProps.d.ts +0 -18
  92. package/lib/src/app/project/ProjectPanel.d.ts +0 -7
  93. package/lib/src/app/project/SettingsContent.d.ts +0 -7
  94. package/lib/src/app/project/components/FormFields.d.ts +0 -73
  95. package/lib/src/app/project/configUtils.d.ts +0 -30
  96. package/lib/src/app/project/hooks/useNestedConfig.d.ts +0 -28
  97. package/lib/src/app/runScan/ActiveScanView.d.ts +0 -6
  98. package/lib/src/app/runScan/DefineScannerSection.d.ts +0 -6
  99. package/lib/src/app/runScan/LlmScannerParams.d.ts +0 -14
  100. package/lib/src/app/runScan/RunScanPanel.d.ts +0 -2
  101. package/lib/src/app/runScan/ScannerParamsPlaceholder.d.ts +0 -6
  102. package/lib/src/app/scan/ScanPanel.d.ts +0 -2
  103. package/lib/src/app/scan/ScanPanelBody.d.ts +0 -6
  104. package/lib/src/app/scan/ScanPanelTitle.d.ts +0 -6
  105. package/lib/src/app/scan/info/ScanInfo.d.ts +0 -5
  106. package/lib/src/app/scan/scanners/ScannerPanel.d.ts +0 -5
  107. package/lib/src/app/scan/scanners/ScannerSidebar.d.ts +0 -5
  108. package/lib/src/app/scan/scanners/dataframe/DataframeGridApiContext.d.ts +0 -7
  109. package/lib/src/app/scan/scanners/dataframe/ScannerDataframeCSVButtons.d.ts +0 -11
  110. package/lib/src/app/scan/scanners/dataframe/ScannerDataframeClearFiltersButton.d.ts +0 -2
  111. package/lib/src/app/scan/scanners/dataframe/ScannerDataframeColumnsPopover.d.ts +0 -5
  112. package/lib/src/app/scan/scanners/dataframe/ScannerDataframeFilterColumnsButton.d.ts +0 -1
  113. package/lib/src/app/scan/scanners/dataframe/ScannerDataframeWrapTextButton.d.ts +0 -2
  114. package/lib/src/app/scan/scanners/dataframe/useOperationStatus.d.ts +0 -7
  115. package/lib/src/app/scan/scanners/list/ScannerResultsGroup.d.ts +0 -6
  116. package/lib/src/app/scan/scanners/list/ScannerResultsHeader.d.ts +0 -7
  117. package/lib/src/app/scan/scanners/list/ScannerResultsList.d.ts +0 -14
  118. package/lib/src/app/scan/scanners/list/ScannerResultsRow.d.ts +0 -9
  119. package/lib/src/app/scan/scanners/results/ScannerResultsBody.d.ts +0 -12
  120. package/lib/src/app/scan/scanners/results/ScannerResultsFilter.d.ts +0 -4
  121. package/lib/src/app/scan/scanners/results/ScannerResultsGroup.d.ts +0 -7
  122. package/lib/src/app/scan/scanners/results/ScannerResultsSearch.d.ts +0 -2
  123. package/lib/src/app/scan/scanners/types.d.ts +0 -1
  124. package/lib/src/app/scannerResult/ScannerResultHeader.d.ts +0 -9
  125. package/lib/src/app/scannerResult/ScannerResultNav.d.ts +0 -2
  126. package/lib/src/app/scannerResult/ScannerResultPanel.d.ts +0 -2
  127. package/lib/src/app/scannerResult/error/ErrorPanel.d.ts +0 -7
  128. package/lib/src/app/scannerResult/info/InfoPanel.d.ts +0 -9
  129. package/lib/src/app/scannerResult/metadata/MetadataPanel.d.ts +0 -7
  130. package/lib/src/app/scannerResult/result/ResultBody.d.ts +0 -10
  131. package/lib/src/app/scannerResult/result/ResultPanel.d.ts +0 -11
  132. package/lib/src/app/scannerResult/result/ResultSidebar.d.ts +0 -9
  133. package/lib/src/app/scannerResult/transcript/TranscriptPanel.d.ts +0 -10
  134. package/lib/src/app/scans/ScansFilterBar.d.ts +0 -7
  135. package/lib/src/app/scans/ScansGrid.d.ts +0 -21
  136. package/lib/src/app/scans/ScansPanel.d.ts +0 -2
  137. package/lib/src/app/scans/columnSizing/index.d.ts +0 -3
  138. package/lib/src/app/scans/columnSizing/useColumnSizing.d.ts +0 -33
  139. package/lib/src/app/scans/columns.d.ts +0 -25
  140. package/lib/src/app/scans/constants.d.ts +0 -35
  141. package/lib/src/app/server/index.d.ts +0 -6
  142. package/lib/src/app/server/useActiveScan.d.ts +0 -3
  143. package/lib/src/app/server/useActiveScans.d.ts +0 -3
  144. package/lib/src/app/server/useAdjacentTranscriptIds.d.ts +0 -10
  145. package/lib/src/app/server/useAppConfig.d.ts +0 -20
  146. package/lib/src/app/server/useCode.d.ts +0 -4
  147. package/lib/src/app/server/useHasTranscript.d.ts +0 -8
  148. package/lib/src/app/server/useProjectConfig.d.ts +0 -30
  149. package/lib/src/app/server/useScan.d.ts +0 -9
  150. package/lib/src/app/server/useScanDataframe.d.ts +0 -10
  151. package/lib/src/app/server/useScanDataframeInput.d.ts +0 -11
  152. package/lib/src/app/server/useScanners.d.ts +0 -3
  153. package/lib/src/app/server/useScans.d.ts +0 -3
  154. package/lib/src/app/server/useScansColumnValues.d.ts +0 -11
  155. package/lib/src/app/server/useScansInfinite.d.ts +0 -6
  156. package/lib/src/app/server/useServerTranscripts.d.ts +0 -5
  157. package/lib/src/app/server/useServerTranscriptsInfinite.d.ts +0 -13
  158. package/lib/src/app/server/useStartScan.d.ts +0 -3
  159. package/lib/src/app/server/useTopicInvalidation.d.ts +0 -11
  160. package/lib/src/app/server/useTranscript.d.ts +0 -9
  161. package/lib/src/app/server/useTranscriptsColumnValues.d.ts +0 -11
  162. package/lib/src/app/server/useValidations.d.ts +0 -83
  163. package/lib/src/app/timeline/components/TimelineEventsView.d.ts +0 -41
  164. package/lib/src/app/timeline/components/TimelineMinimap.d.ts +0 -30
  165. package/lib/src/app/timeline/components/TimelineOptionsPopover.d.ts +0 -10
  166. package/lib/src/app/timeline/components/TimelineSelector.d.ts +0 -11
  167. package/lib/src/app/timeline/components/TimelineSwimLanes.d.ts +0 -62
  168. package/lib/src/app/timeline/contentItems.d.ts +0 -29
  169. package/lib/src/app/timeline/hooks/useActiveTimeline.d.ts +0 -12
  170. package/lib/src/app/timeline/hooks/useScrubberPercent.d.ts +0 -8
  171. package/lib/src/app/timeline/hooks/useTimeline.d.ts +0 -46
  172. package/lib/src/app/timeline/hooks/useTimelineConfig.d.ts +0 -22
  173. package/lib/src/app/timeline/hooks/useTranscriptTimeline.d.ts +0 -37
  174. package/lib/src/app/timeline/syntheticNodes.d.ts +0 -7
  175. package/lib/src/app/timeline/testHelpers.d.ts +0 -26
  176. package/lib/src/app/timeline/timelineEventNodes.d.ts +0 -93
  177. package/lib/src/app/timeline/utils/markers.d.ts +0 -41
  178. package/lib/src/app/timeline/utils/swimlaneLayout.d.ts +0 -96
  179. package/lib/src/app/timeline/utils/swimlaneRows.d.ts +0 -62
  180. package/lib/src/app/timeline/utils/timeMapping.d.ts +0 -41
  181. package/lib/src/app/transcript/TranscriptBody.d.ts +0 -17
  182. package/lib/src/app/transcript/TranscriptFilterPopover.d.ts +0 -7
  183. package/lib/src/app/transcript/TranscriptNav.d.ts +0 -10
  184. package/lib/src/app/transcript/TranscriptPanel.d.ts +0 -2
  185. package/lib/src/app/transcript/TranscriptTitle.d.ts +0 -7
  186. package/lib/src/app/transcript/debugEventTree.d.ts +0 -4
  187. package/lib/src/app/transcript/hooks/useTranscriptColumnFilter.d.ts +0 -11
  188. package/lib/src/app/transcript/hooks/useTranscriptNavigation.d.ts +0 -12
  189. package/lib/src/app/transcript/hooks/useTranscriptTimeline.d.ts +0 -1
  190. package/lib/src/app/transcripts/TranscriptFilterBar.d.ts +0 -8
  191. package/lib/src/app/transcripts/TranscriptsGrid.d.ts +0 -21
  192. package/lib/src/app/transcripts/TranscriptsPanel.d.ts +0 -2
  193. package/lib/src/app/transcripts/columnSizing/index.d.ts +0 -3
  194. package/lib/src/app/transcripts/columnSizing/types.d.ts +0 -22
  195. package/lib/src/app/transcripts/columnSizing/useColumnSizing.d.ts +0 -34
  196. package/lib/src/app/transcripts/columns.d.ts +0 -37
  197. package/lib/src/app/transcripts/constants.d.ts +0 -35
  198. package/lib/src/app/types.d.ts +0 -112
  199. package/lib/src/app/utils/arrow.d.ts +0 -2
  200. package/lib/src/app/utils/arrowHelpers.d.ts +0 -4
  201. package/lib/src/app/utils/expandEvents.d.ts +0 -8
  202. package/lib/src/app/utils/messages.d.ts +0 -7
  203. package/lib/src/app/utils/refs.d.ts +0 -6
  204. package/lib/src/app/utils/results.d.ts +0 -10
  205. package/lib/src/app/utils/router.d.ts +0 -1
  206. package/lib/src/app/utils/scan.d.ts +0 -12
  207. package/lib/src/app/utils/transcript.d.ts +0 -29
  208. package/lib/src/app/utils/useScansDir.d.ts +0 -8
  209. package/lib/src/app/utils/useTranscriptsDir.d.ts +0 -8
  210. package/lib/src/app/validation/ValidationPanel.d.ts +0 -2
  211. package/lib/src/app/validation/components/CopyMoveCasesModal.d.ts +0 -24
  212. package/lib/src/app/validation/components/ValidationBulkActions.d.ts +0 -16
  213. package/lib/src/app/validation/components/ValidationCaseCard.d.ts +0 -23
  214. package/lib/src/app/validation/components/ValidationCaseEditor.d.ts +0 -23
  215. package/lib/src/app/validation/components/ValidationCaseLabelsEditor.d.ts +0 -20
  216. package/lib/src/app/validation/components/ValidationCasePredicateSelector.d.ts +0 -19
  217. package/lib/src/app/validation/components/ValidationCaseTargetEditor.d.ts +0 -13
  218. package/lib/src/app/validation/components/ValidationCasesList.d.ts +0 -19
  219. package/lib/src/app/validation/components/ValidationFilterBar.d.ts +0 -14
  220. package/lib/src/app/validation/components/ValidationSetSelector.d.ts +0 -21
  221. package/lib/src/app/validation/components/ValidationSplitSelector.d.ts +0 -23
  222. package/lib/src/app/validation/components/ValidationSummary.d.ts +0 -11
  223. package/lib/src/app/validation/hooks/useTranscriptsByIds.d.ts +0 -13
  224. package/lib/src/app/validation/utils.d.ts +0 -55
  225. package/lib/src/components/AnsiDisplay.d.ts +0 -8
  226. package/lib/src/components/AsciinemaPlayer.d.ts +0 -19
  227. package/lib/src/components/AutocompleteInput.d.ts +0 -19
  228. package/lib/src/components/Card.d.ts +0 -32
  229. package/lib/src/components/ConfirmationDialog.d.ts +0 -15
  230. package/lib/src/components/CopyButton.d.ts +0 -12
  231. package/lib/src/components/DataframeView.d.ts +0 -17
  232. package/lib/src/components/DownloadScanButton.d.ts +0 -9
  233. package/lib/src/components/EmptyPanel.d.ts +0 -6
  234. package/lib/src/components/ErrorPanel.d.ts +0 -12
  235. package/lib/src/components/ExpandablePanel.d.ts +0 -12
  236. package/lib/src/components/ExtendedFindContext.d.ts +0 -7
  237. package/lib/src/components/ExtendedFindProvider.d.ts +0 -6
  238. package/lib/src/components/FindBand.d.ts +0 -6
  239. package/lib/src/components/HumanBaselineView.d.ts +0 -21
  240. package/lib/src/components/JsonPanel.d.ts +0 -11
  241. package/lib/src/components/LabeledValue.d.ts +0 -11
  242. package/lib/src/components/LightboxCarousel.d.ts +0 -14
  243. package/lib/src/components/LiveVirtualList.d.ts +0 -22
  244. package/lib/src/components/LoadingBar.d.ts +0 -6
  245. package/lib/src/components/MarkdownDiv.d.ts +0 -11
  246. package/lib/src/components/MarkdownDivWithReferences.d.ts +0 -18
  247. package/lib/src/components/MenuActionButton.d.ts +0 -15
  248. package/lib/src/components/Modal.d.ts +0 -11
  249. package/lib/src/components/NavPills.d.ts +0 -11
  250. package/lib/src/components/NoContentsPanel.d.ts +0 -7
  251. package/lib/src/components/NonIdealState.d.ts +0 -10
  252. package/lib/src/components/PopOver.d.ts +0 -23
  253. package/lib/src/components/Preformatted.d.ts +0 -7
  254. package/lib/src/components/ProgressBar.d.ts +0 -9
  255. package/lib/src/components/PulsingDots.d.ts +0 -10
  256. package/lib/src/components/SegmentedControl.d.ts +0 -14
  257. package/lib/src/components/SourceCodePanel.d.ts +0 -11
  258. package/lib/src/components/StickyScroll.d.ts +0 -18
  259. package/lib/src/components/TabSet.d.ts +0 -27
  260. package/lib/src/components/TextInput.d.ts +0 -10
  261. package/lib/src/components/ToolButton.d.ts +0 -10
  262. package/lib/src/components/ToolDropdownButton.d.ts +0 -11
  263. package/lib/src/components/chat/ChatMessage.d.ts +0 -13
  264. package/lib/src/components/chat/ChatMessageRenderer.d.ts +0 -15
  265. package/lib/src/components/chat/ChatMessageRow.d.ts +0 -22
  266. package/lib/src/components/chat/ChatView.d.ts +0 -21
  267. package/lib/src/components/chat/ChatViewVirtualList.d.ts +0 -30
  268. package/lib/src/components/chat/JsonMessageContent.d.ts +0 -7
  269. package/lib/src/components/chat/MessageCitations.d.ts +0 -6
  270. package/lib/src/components/chat/MessageContent.d.ts +0 -18
  271. package/lib/src/components/chat/MessageContents.d.ts +0 -15
  272. package/lib/src/components/chat/content-data/CompactionData.d.ts +0 -6
  273. package/lib/src/components/chat/content-data/ContentDataView.d.ts +0 -19
  274. package/lib/src/components/chat/content-data/WebSearch.d.ts +0 -4
  275. package/lib/src/components/chat/content-data/WebSearchResults.d.ts +0 -9
  276. package/lib/src/components/chat/documents/ContentDocumentView.d.ts +0 -8
  277. package/lib/src/components/chat/messageSearchText.d.ts +0 -5
  278. package/lib/src/components/chat/messages.d.ts +0 -8
  279. package/lib/src/components/chat/server-tools/ServerToolCall.d.ts +0 -12
  280. package/lib/src/components/chat/tools/ToolCallView.d.ts +0 -19
  281. package/lib/src/components/chat/tools/ToolInput.d.ts +0 -10
  282. package/lib/src/components/chat/tools/ToolOutput.d.ts +0 -11
  283. package/lib/src/components/chat/tools/ToolTitle.d.ts +0 -10
  284. package/lib/src/components/chat/tools/customToolRendering.d.ts +0 -2
  285. package/lib/src/components/chat/tools/tool-input/TodoWriteInput.d.ts +0 -5
  286. package/lib/src/components/chat/tools/tool.d.ts +0 -18
  287. package/lib/src/components/chat/types.d.ts +0 -8
  288. package/lib/src/components/content/DisplayModeContext.d.ts +0 -9
  289. package/lib/src/components/content/MetaDataGrid.d.ts +0 -20
  290. package/lib/src/components/content/RecordTree.d.ts +0 -24
  291. package/lib/src/components/content/RenderedContent.d.ts +0 -18
  292. package/lib/src/components/content/RenderedText.d.ts +0 -15
  293. package/lib/src/components/content/record_processors/store.d.ts +0 -2
  294. package/lib/src/components/content/record_processors/types.d.ts +0 -1
  295. package/lib/src/components/content/types.d.ts +0 -18
  296. package/lib/src/components/icons.d.ts +0 -151
  297. package/lib/src/components/prism.d.ts +0 -2
  298. package/lib/src/components/transcript/AgentCardView.d.ts +0 -8
  299. package/lib/src/components/transcript/ApprovalEventView.d.ts +0 -12
  300. package/lib/src/components/transcript/CompactionEventView.d.ts +0 -12
  301. package/lib/src/components/transcript/ErrorEventView.d.ts +0 -12
  302. package/lib/src/components/transcript/InfoEventView.d.ts +0 -12
  303. package/lib/src/components/transcript/InputEventView.d.ts +0 -12
  304. package/lib/src/components/transcript/LoggerEventView.d.ts +0 -12
  305. package/lib/src/components/transcript/ModelEventView.d.ts +0 -25
  306. package/lib/src/components/transcript/SampleInitEventView.d.ts +0 -12
  307. package/lib/src/components/transcript/SampleLimitEventView.d.ts +0 -12
  308. package/lib/src/components/transcript/SandboxEventView.d.ts +0 -12
  309. package/lib/src/components/transcript/ScoreEditEventView.d.ts +0 -12
  310. package/lib/src/components/transcript/ScoreEventView.d.ts +0 -12
  311. package/lib/src/components/transcript/SpanEventView.d.ts +0 -13
  312. package/lib/src/components/transcript/StepEventView.d.ts +0 -13
  313. package/lib/src/components/transcript/SubtaskEventView.d.ts +0 -13
  314. package/lib/src/components/transcript/TimelineSelectContext.d.ts +0 -7
  315. package/lib/src/components/transcript/ToolEventView.d.ts +0 -13
  316. package/lib/src/components/transcript/TranscriptView.d.ts +0 -13
  317. package/lib/src/components/transcript/TranscriptViewNodes.d.ts +0 -19
  318. package/lib/src/components/transcript/TranscriptVirtualList.d.ts +0 -31
  319. package/lib/src/components/transcript/TranscriptVirtualListComponent.d.ts +0 -18
  320. package/lib/src/components/transcript/event/EventNav.d.ts +0 -12
  321. package/lib/src/components/transcript/event/EventNavs.d.ts +0 -15
  322. package/lib/src/components/transcript/event/EventPanel.d.ts +0 -20
  323. package/lib/src/components/transcript/event/EventProgressPanel.d.ts +0 -6
  324. package/lib/src/components/transcript/event/EventRow.d.ts +0 -12
  325. package/lib/src/components/transcript/event/EventSection.d.ts +0 -12
  326. package/lib/src/components/transcript/event/EventTimingPanel.d.ts +0 -12
  327. package/lib/src/components/transcript/event/utils.d.ts +0 -2
  328. package/lib/src/components/transcript/eventSearchText.d.ts +0 -5
  329. package/lib/src/components/transcript/hooks/useCollapseTranscriptEvent.d.ts +0 -1
  330. package/lib/src/components/transcript/hooks/useEventNodes.d.ts +0 -7
  331. package/lib/src/components/transcript/outline/OutlineRow.d.ts +0 -19
  332. package/lib/src/components/transcript/outline/TranscriptOutline.d.ts +0 -22
  333. package/lib/src/components/transcript/outline/tree-visitors.d.ts +0 -13
  334. package/lib/src/components/transcript/outline/useOutlineWidth.d.ts +0 -9
  335. package/lib/src/components/transcript/resolveMessageToEvent.d.ts +0 -19
  336. package/lib/src/components/transcript/state/StateDiffView.d.ts +0 -11
  337. package/lib/src/components/transcript/state/StateEventRenderers.d.ts +0 -48
  338. package/lib/src/components/transcript/state/StateEventView.d.ts +0 -13
  339. package/lib/src/components/transcript/timeline.d.ts +0 -128
  340. package/lib/src/components/transcript/transform/fixups.d.ts +0 -291
  341. package/lib/src/components/transcript/transform/flatten.d.ts +0 -15
  342. package/lib/src/components/transcript/transform/transform.d.ts +0 -2
  343. package/lib/src/components/transcript/transform/treeify.d.ts +0 -3
  344. package/lib/src/components/transcript/transform/utils.d.ts +0 -18
  345. package/lib/src/components/transcript/types.d.ts +0 -28
  346. package/lib/src/components/usage/ModelTokenTable.d.ts +0 -8
  347. package/lib/src/components/usage/ModelUsagePanel.d.ts +0 -11
  348. package/lib/src/components/usage/TokenTable.d.ts +0 -14
  349. package/lib/src/components/usage/UsageCard.d.ts +0 -10
  350. package/lib/src/debugging/navigationDebugging.d.ts +0 -8
  351. package/lib/src/hooks/useDocumentTitle.d.ts +0 -26
  352. package/lib/src/hooks/useDropdownPosition.d.ts +0 -40
  353. package/lib/src/hooks/useMapAsyncData.d.ts +0 -27
  354. package/lib/src/hooks/usePreviousValue.d.ts +0 -25
  355. package/lib/src/hooks/useScrollDirection.d.ts +0 -43
  356. package/lib/src/hooks/useWindowMessaging.d.ts +0 -19
  357. package/lib/src/index.d.ts +0 -5
  358. package/lib/src/main.d.ts +0 -6
  359. package/lib/src/query/column.d.ts +0 -23
  360. package/lib/src/query/conditionBuilder.d.ts +0 -29
  361. package/lib/src/query/index.d.ts +0 -96
  362. package/lib/src/query/transcriptColumns.d.ts +0 -32
  363. package/lib/src/query/types.d.ts +0 -62
  364. package/lib/src/router/activities.d.ts +0 -11
  365. package/lib/src/router/url.d.ts +0 -76
  366. package/lib/src/state/hooks/useCollapsedState.d.ts +0 -1
  367. package/lib/src/state/hooks/useCollapsibleIds.d.ts +0 -1
  368. package/lib/src/state/hooks/useProperty.d.ts +0 -4
  369. package/lib/src/state/scrolling.d.ts +0 -27
  370. package/lib/src/state/store.d.ts +0 -277
  371. package/lib/src/state/userSettings.d.ts +0 -22
  372. package/lib/src/test/objectFactories.d.ts +0 -4
  373. package/lib/src/test/setup-msw.d.ts +0 -1
  374. package/lib/src/test/test-utils.d.ts +0 -2
  375. package/lib/src/types/api-types.d.ts +0 -97
  376. package/lib/src/types/generated.d.ts +0 -5031
  377. package/lib/src/types/json-value.d.ts +0 -12
  378. package/lib/src/utils/ansi.d.ts +0 -12
  379. package/lib/src/utils/array.d.ts +0 -1
  380. package/lib/src/utils/arrow.d.ts +0 -3
  381. package/lib/src/utils/asyncData.d.ts +0 -66
  382. package/lib/src/utils/asyncDataFromQuery.d.ts +0 -13
  383. package/lib/src/utils/base64.d.ts +0 -4
  384. package/lib/src/utils/base64url.d.ts +0 -38
  385. package/lib/src/utils/brand.d.ts +0 -70
  386. package/lib/src/utils/chatMessage.d.ts +0 -3
  387. package/lib/src/utils/date.d.ts +0 -34
  388. package/lib/src/utils/dom.d.ts +0 -1
  389. package/lib/src/utils/format.d.ts +0 -53
  390. package/lib/src/utils/html.d.ts +0 -5
  391. package/lib/src/utils/json-worker.d.ts +0 -2
  392. package/lib/src/utils/json.d.ts +0 -4
  393. package/lib/src/utils/logger.d.ts +0 -7
  394. package/lib/src/utils/mime.d.ts +0 -1
  395. package/lib/src/utils/object.d.ts +0 -1
  396. package/lib/src/utils/path.d.ts +0 -28
  397. package/lib/src/utils/python.d.ts +0 -11
  398. package/lib/src/utils/react-query.d.ts +0 -4
  399. package/lib/src/utils/react.d.ts +0 -6
  400. package/lib/src/utils/router.d.ts +0 -1
  401. package/lib/src/utils/sync.d.ts +0 -21
  402. package/lib/src/utils/type.d.ts +0 -15
  403. package/lib/src/utils/uri.d.ts +0 -19
  404. package/lib/src/utils/useDebouncedCallback.d.ts +0 -20
  405. package/lib/src/utils/vscode.d.ts +0 -20
  406. package/lib/styles/index.css +0 -9030
  407. package/lib/tex-svg-full-BI3fonbT-FZEHFXiJ.js +0 -27979
  408. package/lib/tex-svg-full-BI3fonbT-FZEHFXiJ.js.map +0 -1
  409. package/lib/wgxpath.install-node-Csk64Aj9-Ckau6iLd.js +0 -1081
  410. package/lib/wgxpath.install-node-Csk64Aj9-Ckau6iLd.js.map +0 -1
  411. package/lib/xypic-DrMJn58R-DRoJoooA.js +0 -9542
  412. package/lib/xypic-DrMJn58R-DRoJoooA.js.map +0 -1
@@ -1,1081 +0,0 @@
1
- import { o } from "./chunk-DfAF0w94-Oj7OW_Zs.js";
2
- const e = globalThis;
3
- var n = o(((exports, n2) => {
4
- (function() {
5
- var e2 = this;
6
- function t(e3) {
7
- var t2 = typeof e3;
8
- if (t2 == `object`) if (e3) {
9
- if (e3 instanceof Array) return `array`;
10
- if (e3 instanceof Object) return t2;
11
- var n3 = Object.prototype.toString.call(e3);
12
- if (n3 == `[object Window]`) return `object`;
13
- if (n3 == `[object Array]` || typeof e3.length == `number` && e3.splice !== void 0 && e3.propertyIsEnumerable !== void 0 && !e3.propertyIsEnumerable(`splice`)) return `array`;
14
- if (n3 == `[object Function]` || e3.call !== void 0 && e3.propertyIsEnumerable !== void 0 && !e3.propertyIsEnumerable(`call`)) return `function`;
15
- } else return `null`;
16
- else if (t2 == `function` && e3.call === void 0) return `object`;
17
- return t2;
18
- }
19
- function r(e3) {
20
- return typeof e3 == `string`;
21
- }
22
- function i(e3, t2, n3) {
23
- return e3.call.apply(e3.bind, arguments);
24
- }
25
- function a(e3, t2, n3) {
26
- if (!e3) throw Error();
27
- if (2 < arguments.length) {
28
- var r2 = Array.prototype.slice.call(arguments, 2);
29
- return function() {
30
- var n4 = Array.prototype.slice.call(arguments);
31
- return Array.prototype.unshift.apply(n4, r2), e3.apply(t2, n4);
32
- };
33
- }
34
- return function() {
35
- return e3.apply(t2, arguments);
36
- };
37
- }
38
- function o2(e3, t2, n3) {
39
- return o2 = Function.prototype.bind && Function.prototype.bind.toString().indexOf(`native code`) != -1 ? i : a, o2.apply(null, arguments);
40
- }
41
- function s(e3, t2) {
42
- var n3 = Array.prototype.slice.call(arguments, 1);
43
- return function() {
44
- var t3 = n3.slice();
45
- return t3.push.apply(t3, arguments), e3.apply(this, t3);
46
- };
47
- }
48
- function c(e3) {
49
- var t2 = D;
50
- function n3() {
51
- }
52
- n3.prototype = t2.prototype, e3.G = t2.prototype, e3.prototype = new n3(), e3.prototype.constructor = e3, e3.F = function(e4, n4, r2) {
53
- for (var i2 = Array(arguments.length - 2), a2 = 2; a2 < arguments.length; a2++) i2[a2 - 2] = arguments[a2];
54
- return t2.prototype[n4].apply(e4, i2);
55
- };
56
- }
57
- var l = String.prototype.trim ? function(e3) {
58
- return e3.trim();
59
- } : function(e3) {
60
- return e3.replace(/^[\s\xa0]+|[\s\xa0]+$/g, ``);
61
- };
62
- function u(e3, t2) {
63
- return e3.indexOf(t2) != -1;
64
- }
65
- function ee(e3, t2) {
66
- return e3 < t2 ? -1 : e3 > t2 ? 1 : 0;
67
- }
68
- var d = Array.prototype.indexOf ? function(e3, t2, n3) {
69
- return Array.prototype.indexOf.call(e3, t2, n3);
70
- } : function(e3, t2, n3) {
71
- if (n3 = n3 == null ? 0 : 0 > n3 ? Math.max(0, e3.length + n3) : n3, r(e3)) return r(t2) && t2.length == 1 ? e3.indexOf(t2, n3) : -1;
72
- for (; n3 < e3.length; n3++) if (n3 in e3 && e3[n3] === t2) return n3;
73
- return -1;
74
- }, f = Array.prototype.forEach ? function(e3, t2, n3) {
75
- Array.prototype.forEach.call(e3, t2, n3);
76
- } : function(e3, t2, n3) {
77
- for (var i2 = e3.length, a2 = r(e3) ? e3.split(``) : e3, o3 = 0; o3 < i2; o3++) o3 in a2 && t2.call(n3, a2[o3], o3, e3);
78
- }, te = Array.prototype.filter ? function(e3, t2, n3) {
79
- return Array.prototype.filter.call(e3, t2, n3);
80
- } : function(e3, t2, n3) {
81
- for (var i2 = e3.length, a2 = [], o3 = 0, s2 = r(e3) ? e3.split(``) : e3, c2 = 0; c2 < i2; c2++) if (c2 in s2) {
82
- var l2 = s2[c2];
83
- t2.call(n3, l2, c2, e3) && (a2[o3++] = l2);
84
- }
85
- return a2;
86
- }, p = Array.prototype.reduce ? function(e3, t2, n3, r2) {
87
- return r2 && (t2 = o2(t2, r2)), Array.prototype.reduce.call(e3, t2, n3);
88
- } : function(e3, t2, n3, r2) {
89
- var i2 = n3;
90
- return f(e3, function(n4, a2) {
91
- i2 = t2.call(r2, i2, n4, a2, e3);
92
- }), i2;
93
- }, ne = Array.prototype.some ? function(e3, t2, n3) {
94
- return Array.prototype.some.call(e3, t2, n3);
95
- } : function(e3, t2, n3) {
96
- for (var i2 = e3.length, a2 = r(e3) ? e3.split(``) : e3, o3 = 0; o3 < i2; o3++) if (o3 in a2 && t2.call(n3, a2[o3], o3, e3)) return true;
97
- return false;
98
- };
99
- function re(e3, t2) {
100
- var n3;
101
- a: {
102
- n3 = e3.length;
103
- for (var i2 = r(e3) ? e3.split(``) : e3, a2 = 0; a2 < n3; a2++) if (a2 in i2 && t2.call(void 0, i2[a2], a2, e3)) {
104
- n3 = a2;
105
- break a;
106
- }
107
- n3 = -1;
108
- }
109
- return 0 > n3 ? null : r(e3) ? e3.charAt(n3) : e3[n3];
110
- }
111
- function ie(e3) {
112
- return Array.prototype.concat.apply(Array.prototype, arguments);
113
- }
114
- function ae(e3, t2, n3) {
115
- return 2 >= arguments.length ? Array.prototype.slice.call(e3, t2) : Array.prototype.slice.call(e3, t2, n3);
116
- }
117
- var m;
118
- a: {
119
- var oe = e2.navigator;
120
- if (oe) {
121
- var se = oe.userAgent;
122
- if (se) {
123
- m = se;
124
- break a;
125
- }
126
- }
127
- m = ``;
128
- }
129
- var ce = u(m, `Opera`) || u(m, `OPR`), h = u(m, `Trident`) || u(m, `MSIE`), le = u(m, `Edge`), ue = u(m, `Gecko`) && !(u(m.toLowerCase(), `webkit`) && !u(m, `Edge`)) && !(u(m, `Trident`) || u(m, `MSIE`)) && !u(m, `Edge`), de = u(m.toLowerCase(), `webkit`) && !u(m, `Edge`);
130
- function fe() {
131
- var t2 = e2.document;
132
- return t2 ? t2.documentMode : void 0;
133
- }
134
- var g;
135
- a: {
136
- var pe = ``, me = (function() {
137
- var e3 = m;
138
- if (ue) return /rv\:([^\);]+)(\)|;)/.exec(e3);
139
- if (le) return /Edge\/([\d\.]+)/.exec(e3);
140
- if (h) return /\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(e3);
141
- if (de) return /WebKit\/(\S+)/.exec(e3);
142
- if (ce) return /(?:Version)[ \/]?(\S+)/.exec(e3);
143
- })();
144
- if (me && (pe = me ? me[1] : ``), h) {
145
- var he = fe();
146
- if (he != null && he > parseFloat(pe)) {
147
- g = String(he);
148
- break a;
149
- }
150
- }
151
- g = pe;
152
- }
153
- var ge = {};
154
- function _e(e3) {
155
- if (!ge[e3]) {
156
- for (var t2 = 0, n3 = l(String(g)).split(`.`), r2 = l(String(e3)).split(`.`), i2 = Math.max(n3.length, r2.length), a2 = 0; t2 == 0 && a2 < i2; a2++) {
157
- var o3 = n3[a2] || ``, s2 = r2[a2] || ``, c2 = /(\d*)(\D*)/g, u2 = /(\d*)(\D*)/g;
158
- do {
159
- var d2 = c2.exec(o3) || [``, ``, ``], f2 = u2.exec(s2) || [``, ``, ``];
160
- if (d2[0].length == 0 && f2[0].length == 0) break;
161
- t2 = ee(d2[1].length == 0 ? 0 : parseInt(d2[1], 10), f2[1].length == 0 ? 0 : parseInt(f2[1], 10)) || ee(d2[2].length == 0, f2[2].length == 0) || ee(d2[2], f2[2]);
162
- } while (t2 == 0);
163
- }
164
- ge[e3] = 0 <= t2;
165
- }
166
- }
167
- var ve = e2.document, _ = ve && h ? fe() || (ve.compatMode == `CSS1Compat` ? parseInt(g, 10) : 5) : void 0, v = h && !(9 <= Number(_)), ye = h && !(8 <= Number(_));
168
- function y(e3, t2, n3, r2) {
169
- this.a = e3, this.nodeName = n3, this.nodeValue = r2, this.nodeType = 2, this.parentNode = this.ownerElement = t2;
170
- }
171
- function be(e3, t2) {
172
- var n3 = ye && t2.nodeName == `href` ? e3.getAttribute(t2.nodeName, 2) : t2.nodeValue;
173
- return new y(t2, e3, t2.nodeName, n3);
174
- }
175
- function b(e3) {
176
- var t2 = null, n3 = e3.nodeType;
177
- if (n3 == 1 && (t2 = e3.textContent, t2 = t2 == null || t2 == null ? e3.innerText : t2, t2 = t2 == null || t2 == null ? `` : t2), typeof t2 != `string`) if (v && e3.nodeName.toLowerCase() == `title` && n3 == 1) t2 = e3.text;
178
- else if (n3 == 9 || n3 == 1) {
179
- e3 = n3 == 9 ? e3.documentElement : e3.firstChild;
180
- for (var n3 = 0, r2 = [], t2 = ``; e3; ) {
181
- do
182
- e3.nodeType != 1 && (t2 += e3.nodeValue), v && e3.nodeName.toLowerCase() == `title` && (t2 += e3.text), r2[n3++] = e3;
183
- while (e3 = e3.firstChild);
184
- for (; n3 && !(e3 = r2[--n3].nextSibling); ) ;
185
- }
186
- } else t2 = e3.nodeValue;
187
- return `` + t2;
188
- }
189
- function x(e3, t2, n3) {
190
- if (t2 === null) return true;
191
- try {
192
- if (!e3.getAttribute) return false;
193
- } catch {
194
- return false;
195
- }
196
- return ye && t2 == `class` && (t2 = `className`), n3 == null ? !!e3.getAttribute(t2) : e3.getAttribute(t2, 2) == n3;
197
- }
198
- function S(e3, t2, n3, i2, a2) {
199
- return (v ? xe : Se).call(null, e3, t2, r(n3) ? n3 : null, r(i2) ? i2 : null, a2 || new C());
200
- }
201
- function xe(e3, t2, n3, r2, i2) {
202
- if (e3 instanceof W || e3.b == 8 || n3 && e3.b === null) {
203
- var a2 = t2.all;
204
- if (!a2 || (e3 = Ee(e3), e3 != `*` && (a2 = t2.getElementsByTagName(e3), !a2))) return i2;
205
- if (n3) {
206
- for (var o3 = [], s2 = 0; t2 = a2[s2++]; ) x(t2, n3, r2) && o3.push(t2);
207
- a2 = o3;
208
- }
209
- for (s2 = 0; t2 = a2[s2++]; ) e3 == `*` && t2.tagName == `!` || w(i2, t2);
210
- return i2;
211
- }
212
- return Te(e3, t2, n3, r2, i2), i2;
213
- }
214
- function Se(e3, t2, n3, r2, i2) {
215
- return t2.getElementsByName && r2 && n3 == `name` && !h ? (t2 = t2.getElementsByName(r2), f(t2, function(t3) {
216
- e3.a(t3) && w(i2, t3);
217
- })) : t2.getElementsByClassName && r2 && n3 == `class` ? (t2 = t2.getElementsByClassName(r2), f(t2, function(t3) {
218
- t3.className == r2 && e3.a(t3) && w(i2, t3);
219
- })) : e3 instanceof z ? Te(e3, t2, n3, r2, i2) : t2.getElementsByTagName && (t2 = t2.getElementsByTagName(e3.f()), f(t2, function(e4) {
220
- x(e4, n3, r2) && w(i2, e4);
221
- })), i2;
222
- }
223
- function Ce(e3, t2, n3, r2, i2) {
224
- var a2;
225
- if ((e3 instanceof W || e3.b == 8 || n3 && e3.b === null) && (a2 = t2.childNodes)) {
226
- var o3 = Ee(e3);
227
- return o3 != `*` && (a2 = te(a2, function(e4) {
228
- return e4.tagName && e4.tagName.toLowerCase() == o3;
229
- }), !a2) ? i2 : (n3 && (a2 = te(a2, function(e4) {
230
- return x(e4, n3, r2);
231
- })), f(a2, function(e4) {
232
- o3 == `*` && (e4.tagName == `!` || o3 == `*` && e4.nodeType != 1) || w(i2, e4);
233
- }), i2);
234
- }
235
- return we(e3, t2, n3, r2, i2);
236
- }
237
- function we(e3, t2, n3, r2, i2) {
238
- for (t2 = t2.firstChild; t2; t2 = t2.nextSibling) x(t2, n3, r2) && e3.a(t2) && w(i2, t2);
239
- return i2;
240
- }
241
- function Te(e3, t2, n3, r2, i2) {
242
- for (t2 = t2.firstChild; t2; t2 = t2.nextSibling) x(t2, n3, r2) && e3.a(t2) && w(i2, t2), Te(e3, t2, n3, r2, i2);
243
- }
244
- function Ee(e3) {
245
- if (e3 instanceof z) {
246
- if (e3.b == 8) return `!`;
247
- if (e3.b === null) return `*`;
248
- }
249
- return e3.f();
250
- }
251
- !ue && !h || h && 9 <= Number(_) || ue && _e(`1.9.1`), h && _e(`9`);
252
- function De(e3, t2) {
253
- if (!e3 || !t2) return false;
254
- if (e3.contains && t2.nodeType == 1) return e3 == t2 || e3.contains(t2);
255
- if (e3.compareDocumentPosition !== void 0) return e3 == t2 || !!(e3.compareDocumentPosition(t2) & 16);
256
- for (; t2 && e3 != t2; ) t2 = t2.parentNode;
257
- return t2 == e3;
258
- }
259
- function Oe(t2, n3) {
260
- if (t2 == n3) return 0;
261
- if (t2.compareDocumentPosition) return t2.compareDocumentPosition(n3) & 2 ? 1 : -1;
262
- if (h && !(9 <= Number(_))) {
263
- if (t2.nodeType == 9) return -1;
264
- if (n3.nodeType == 9) return 1;
265
- }
266
- if (`sourceIndex` in t2 || t2.parentNode && `sourceIndex` in t2.parentNode) {
267
- var r2 = t2.nodeType == 1, i2 = n3.nodeType == 1;
268
- if (r2 && i2) return t2.sourceIndex - n3.sourceIndex;
269
- var a2 = t2.parentNode, o3 = n3.parentNode;
270
- return a2 == o3 ? Ae(t2, n3) : !r2 && De(a2, n3) ? -1 * ke(t2, n3) : !i2 && De(o3, t2) ? ke(n3, t2) : (r2 ? t2.sourceIndex : a2.sourceIndex) - (i2 ? n3.sourceIndex : o3.sourceIndex);
271
- }
272
- return i2 = t2.nodeType == 9 ? t2 : t2.ownerDocument || t2.document, r2 = i2.createRange(), r2.selectNode(t2), r2.collapse(true), i2 = i2.createRange(), i2.selectNode(n3), i2.collapse(true), r2.compareBoundaryPoints(e2.Range.START_TO_END, i2);
273
- }
274
- function ke(e3, t2) {
275
- var n3 = e3.parentNode;
276
- if (n3 == t2) return -1;
277
- for (var r2 = t2; r2.parentNode != n3; ) r2 = r2.parentNode;
278
- return Ae(r2, e3);
279
- }
280
- function Ae(e3, t2) {
281
- for (var n3 = t2; n3 = n3.previousSibling; ) if (n3 == e3) return -1;
282
- return 1;
283
- }
284
- function C() {
285
- this.b = this.a = null, this.l = 0;
286
- }
287
- function je(e3) {
288
- this.node = e3, this.a = this.b = null;
289
- }
290
- function Me(e3, t2) {
291
- if (!e3.a) return t2;
292
- if (!t2.a) return e3;
293
- for (var n3 = e3.a, r2 = t2.a, i2 = null, a2 = null, o3 = 0; n3 && r2; ) {
294
- var a2 = n3.node, s2 = r2.node;
295
- a2 == s2 || a2 instanceof y && s2 instanceof y && a2.a == s2.a ? (a2 = n3, n3 = n3.a, r2 = r2.a) : 0 < Oe(n3.node, r2.node) ? (a2 = r2, r2 = r2.a) : (a2 = n3, n3 = n3.a), (a2.b = i2) ? i2.a = a2 : e3.a = a2, i2 = a2, o3++;
296
- }
297
- for (a2 = n3 || r2; a2; ) a2.b = i2, i2 = i2.a = a2, o3++, a2 = a2.a;
298
- return e3.b = i2, e3.l = o3, e3;
299
- }
300
- function Ne(e3, t2) {
301
- var n3 = new je(t2);
302
- n3.a = e3.a, e3.b ? e3.a.b = n3 : e3.a = e3.b = n3, e3.a = n3, e3.l++;
303
- }
304
- function w(e3, t2) {
305
- var n3 = new je(t2);
306
- n3.b = e3.b, e3.a ? e3.b.a = n3 : e3.a = e3.b = n3, e3.b = n3, e3.l++;
307
- }
308
- function Pe(e3) {
309
- return (e3 = e3.a) ? e3.node : null;
310
- }
311
- function Fe(e3) {
312
- return (e3 = Pe(e3)) ? b(e3) : ``;
313
- }
314
- function T(e3, t2) {
315
- return new Ie(e3, !!t2);
316
- }
317
- function Ie(e3, t2) {
318
- this.f = e3, this.b = (this.c = t2) ? e3.b : e3.a, this.a = null;
319
- }
320
- function E(e3) {
321
- var t2 = e3.b;
322
- if (t2 == null) return null;
323
- var n3 = e3.a = t2;
324
- return e3.b = e3.c ? t2.b : t2.a, n3.node;
325
- }
326
- function D(e3) {
327
- this.i = e3, this.b = this.g = false, this.f = null;
328
- }
329
- function O(e3) {
330
- return `
331
- ` + e3.toString().split(`
332
- `).join(`
333
- `);
334
- }
335
- function Le(e3, t2) {
336
- e3.g = t2;
337
- }
338
- function Re(e3, t2) {
339
- e3.b = t2;
340
- }
341
- function k(e3, t2) {
342
- var n3 = e3.a(t2);
343
- return n3 instanceof C ? +Fe(n3) : +n3;
344
- }
345
- function A(e3, t2) {
346
- var n3 = e3.a(t2);
347
- return n3 instanceof C ? Fe(n3) : `` + n3;
348
- }
349
- function j(e3, t2) {
350
- var n3 = e3.a(t2);
351
- return n3 instanceof C ? !!n3.l : !!n3;
352
- }
353
- function M(e3, t2, n3) {
354
- D.call(this, e3.i), this.c = e3, this.h = t2, this.o = n3, this.g = t2.g || n3.g, this.b = t2.b || n3.b, this.c == Ve && (n3.b || n3.g || n3.i == 4 || n3.i == 0 || !t2.f ? t2.b || t2.g || t2.i == 4 || t2.i == 0 || !n3.f || (this.f = { name: n3.f.name, s: t2 }) : this.f = { name: t2.f.name, s: n3 });
355
- }
356
- c(M);
357
- function N(e3, t2, n3, r2, i2) {
358
- t2 = t2.a(r2), n3 = n3.a(r2);
359
- var a2;
360
- if (t2 instanceof C && n3 instanceof C) {
361
- for (t2 = T(t2), r2 = E(t2); r2; r2 = E(t2)) for (i2 = T(n3), a2 = E(i2); a2; a2 = E(i2)) if (e3(b(r2), b(a2))) return true;
362
- return false;
363
- }
364
- if (t2 instanceof C || n3 instanceof C) {
365
- t2 instanceof C ? (i2 = t2, r2 = n3) : (i2 = n3, r2 = t2), a2 = T(i2);
366
- for (var o3 = typeof r2, s2 = E(a2); s2; s2 = E(a2)) {
367
- switch (o3) {
368
- case `number`:
369
- s2 = +b(s2);
370
- break;
371
- case `boolean`:
372
- s2 = !!b(s2);
373
- break;
374
- case `string`:
375
- s2 = b(s2);
376
- break;
377
- default:
378
- throw Error(`Illegal primitive type for comparison.`);
379
- }
380
- if (i2 == t2 && e3(s2, r2) || i2 == n3 && e3(r2, s2)) return true;
381
- }
382
- return false;
383
- }
384
- return i2 ? typeof t2 == `boolean` || typeof n3 == `boolean` ? e3(!!t2, !!n3) : typeof t2 == `number` || typeof n3 == `number` ? e3(+t2, +n3) : e3(t2, n3) : e3(+t2, +n3);
385
- }
386
- M.prototype.a = function(e3) {
387
- return this.c.m(this.h, this.o, e3);
388
- }, M.prototype.toString = function() {
389
- var e3 = `Binary Expression: ` + this.c, e3 = e3 + O(this.h);
390
- return e3 += O(this.o);
391
- };
392
- function ze(e3, t2, n3, r2) {
393
- this.a = e3, this.w = t2, this.i = n3, this.m = r2;
394
- }
395
- ze.prototype.toString = function() {
396
- return this.a;
397
- };
398
- var Be = {};
399
- function P(e3, t2, n3, r2) {
400
- if (Be.hasOwnProperty(e3)) throw Error(`Binary operator already created: ` + e3);
401
- return e3 = new ze(e3, t2, n3, r2), Be[e3.toString()] = e3;
402
- }
403
- P(`div`, 6, 1, function(e3, t2, n3) {
404
- return k(e3, n3) / k(t2, n3);
405
- }), P(`mod`, 6, 1, function(e3, t2, n3) {
406
- return k(e3, n3) % k(t2, n3);
407
- }), P(`*`, 6, 1, function(e3, t2, n3) {
408
- return k(e3, n3) * k(t2, n3);
409
- }), P(`+`, 5, 1, function(e3, t2, n3) {
410
- return k(e3, n3) + k(t2, n3);
411
- }), P(`-`, 5, 1, function(e3, t2, n3) {
412
- return k(e3, n3) - k(t2, n3);
413
- }), P(`<`, 4, 2, function(e3, t2, n3) {
414
- return N(function(e4, t3) {
415
- return e4 < t3;
416
- }, e3, t2, n3);
417
- }), P(`>`, 4, 2, function(e3, t2, n3) {
418
- return N(function(e4, t3) {
419
- return e4 > t3;
420
- }, e3, t2, n3);
421
- }), P(`<=`, 4, 2, function(e3, t2, n3) {
422
- return N(function(e4, t3) {
423
- return e4 <= t3;
424
- }, e3, t2, n3);
425
- }), P(`>=`, 4, 2, function(e3, t2, n3) {
426
- return N(function(e4, t3) {
427
- return e4 >= t3;
428
- }, e3, t2, n3);
429
- });
430
- var Ve = P(`=`, 3, 2, function(e3, t2, n3) {
431
- return N(function(e4, t3) {
432
- return e4 == t3;
433
- }, e3, t2, n3, true);
434
- });
435
- P(`!=`, 3, 2, function(e3, t2, n3) {
436
- return N(function(e4, t3) {
437
- return e4 != t3;
438
- }, e3, t2, n3, true);
439
- }), P(`and`, 2, 2, function(e3, t2, n3) {
440
- return j(e3, n3) && j(t2, n3);
441
- }), P(`or`, 1, 2, function(e3, t2, n3) {
442
- return j(e3, n3) || j(t2, n3);
443
- });
444
- function F(e3, t2, n3) {
445
- this.a = e3, this.b = t2 || 1, this.f = n3 || 1;
446
- }
447
- function I(e3, t2) {
448
- if (t2.a.length && e3.i != 4) throw Error(`Primary expression must evaluate to nodeset if filter has predicate(s).`);
449
- D.call(this, e3.i), this.c = e3, this.h = t2, this.g = e3.g, this.b = e3.b;
450
- }
451
- c(I), I.prototype.a = function(e3) {
452
- return e3 = this.c.a(e3), et(this.h, e3);
453
- }, I.prototype.toString = function() {
454
- var e3 = `Filter:` + O(this.c);
455
- return e3 += O(this.h);
456
- };
457
- function L(e3, t2) {
458
- if (t2.length < e3.A) throw Error(`Function ` + e3.j + ` expects at least` + e3.A + ` arguments, ` + t2.length + ` given`);
459
- if (e3.v !== null && t2.length > e3.v) throw Error(`Function ` + e3.j + ` expects at most ` + e3.v + ` arguments, ` + t2.length + ` given`);
460
- e3.B && f(t2, function(t3, n3) {
461
- if (t3.i != 4) throw Error(`Argument ` + n3 + ` to function ` + e3.j + ` is not of type Nodeset: ` + t3);
462
- }), D.call(this, e3.i), this.h = e3, this.c = t2, Le(this, e3.g || ne(t2, function(e4) {
463
- return e4.g;
464
- })), Re(this, e3.D && !t2.length || e3.C && !!t2.length || ne(t2, function(e4) {
465
- return e4.b;
466
- }));
467
- }
468
- c(L), L.prototype.a = function(e3) {
469
- return this.h.m.apply(null, ie(e3, this.c));
470
- }, L.prototype.toString = function() {
471
- var e3 = `Function: ` + this.h;
472
- if (this.c.length) var t2 = p(this.c, function(e4, t3) {
473
- return e4 + O(t3);
474
- }, `Arguments:`), e3 = e3 + O(t2);
475
- return e3;
476
- };
477
- function He(e3, t2, n3, r2, i2, a2, o3, s2, c2) {
478
- this.j = e3, this.i = t2, this.g = n3, this.D = r2, this.C = i2, this.m = a2, this.A = o3, this.v = s2 === void 0 ? o3 : s2, this.B = !!c2;
479
- }
480
- He.prototype.toString = function() {
481
- return this.j;
482
- };
483
- var Ue = {};
484
- function R(e3, t2, n3, r2, i2, a2, o3, s2) {
485
- if (Ue.hasOwnProperty(e3)) throw Error(`Function already created: ` + e3 + `.`);
486
- Ue[e3] = new He(e3, t2, n3, r2, false, i2, a2, o3, s2);
487
- }
488
- R(`boolean`, 2, false, false, function(e3, t2) {
489
- return j(t2, e3);
490
- }, 1), R(`ceiling`, 1, false, false, function(e3, t2) {
491
- return Math.ceil(k(t2, e3));
492
- }, 1), R(`concat`, 3, false, false, function(e3, t2) {
493
- return p(ae(arguments, 1), function(t3, n3) {
494
- return t3 + A(n3, e3);
495
- }, ``);
496
- }, 2, null), R(`contains`, 2, false, false, function(e3, t2, n3) {
497
- return u(A(t2, e3), A(n3, e3));
498
- }, 2), R(`count`, 1, false, false, function(e3, t2) {
499
- return t2.a(e3).l;
500
- }, 1, 1, true), R(`false`, 2, false, false, function() {
501
- return false;
502
- }, 0), R(`floor`, 1, false, false, function(e3, t2) {
503
- return Math.floor(k(t2, e3));
504
- }, 1), R(`id`, 4, false, false, function(e3, t2) {
505
- function n3(e4) {
506
- if (v) {
507
- var t3 = i2.all[e4];
508
- if (t3) {
509
- if (t3.nodeType && e4 == t3.id) return t3;
510
- if (t3.length) return re(t3, function(t4) {
511
- return e4 == t4.id;
512
- });
513
- }
514
- return null;
515
- }
516
- return i2.getElementById(e4);
517
- }
518
- var r2 = e3.a, i2 = r2.nodeType == 9 ? r2 : r2.ownerDocument, r2 = A(t2, e3).split(/\s+/), a2 = [];
519
- f(r2, function(e4) {
520
- e4 = n3(e4), !e4 || 0 <= d(a2, e4) || a2.push(e4);
521
- }), a2.sort(Oe);
522
- var o3 = new C();
523
- return f(a2, function(e4) {
524
- w(o3, e4);
525
- }), o3;
526
- }, 1), R(`lang`, 2, false, false, function() {
527
- return false;
528
- }, 1), R(`last`, 1, true, false, function(e3) {
529
- if (arguments.length != 1) throw Error(`Function last expects ()`);
530
- return e3.f;
531
- }, 0), R(`local-name`, 3, false, true, function(e3, t2) {
532
- var n3 = t2 ? Pe(t2.a(e3)) : e3.a;
533
- return n3 ? n3.localName || n3.nodeName.toLowerCase() : ``;
534
- }, 0, 1, true), R(`name`, 3, false, true, function(e3, t2) {
535
- var n3 = t2 ? Pe(t2.a(e3)) : e3.a;
536
- return n3 ? n3.nodeName.toLowerCase() : ``;
537
- }, 0, 1, true), R(`namespace-uri`, 3, true, false, function() {
538
- return ``;
539
- }, 0, 1, true), R(`normalize-space`, 3, false, true, function(e3, t2) {
540
- return (t2 ? A(t2, e3) : b(e3.a)).replace(/[\s\xa0]+/g, ` `).replace(/^\s+|\s+$/g, ``);
541
- }, 0, 1), R(`not`, 2, false, false, function(e3, t2) {
542
- return !j(t2, e3);
543
- }, 1), R(`number`, 1, false, true, function(e3, t2) {
544
- return t2 ? k(t2, e3) : +b(e3.a);
545
- }, 0, 1), R(`position`, 1, true, false, function(e3) {
546
- return e3.b;
547
- }, 0), R(`round`, 1, false, false, function(e3, t2) {
548
- return Math.round(k(t2, e3));
549
- }, 1), R(`starts-with`, 2, false, false, function(e3, t2, n3) {
550
- return t2 = A(t2, e3), e3 = A(n3, e3), t2.lastIndexOf(e3, 0) == 0;
551
- }, 2), R(`string`, 3, false, true, function(e3, t2) {
552
- return t2 ? A(t2, e3) : b(e3.a);
553
- }, 0, 1), R(`string-length`, 1, false, true, function(e3, t2) {
554
- return (t2 ? A(t2, e3) : b(e3.a)).length;
555
- }, 0, 1), R(`substring`, 3, false, false, function(e3, t2, n3, r2) {
556
- if (n3 = k(n3, e3), isNaN(n3) || n3 == 1 / 0 || n3 == -1 / 0 || (r2 = r2 ? k(r2, e3) : 1 / 0, isNaN(r2) || r2 === -1 / 0)) return ``;
557
- n3 = Math.round(n3) - 1;
558
- var i2 = Math.max(n3, 0);
559
- return e3 = A(t2, e3), r2 == 1 / 0 ? e3.substring(i2) : e3.substring(i2, n3 + Math.round(r2));
560
- }, 2, 3), R(`substring-after`, 3, false, false, function(e3, t2, n3) {
561
- return t2 = A(t2, e3), e3 = A(n3, e3), n3 = t2.indexOf(e3), n3 == -1 ? `` : t2.substring(n3 + e3.length);
562
- }, 2), R(`substring-before`, 3, false, false, function(e3, t2, n3) {
563
- return t2 = A(t2, e3), e3 = A(n3, e3), e3 = t2.indexOf(e3), e3 == -1 ? `` : t2.substring(0, e3);
564
- }, 2), R(`sum`, 1, false, false, function(e3, t2) {
565
- for (var n3 = T(t2.a(e3)), r2 = 0, i2 = E(n3); i2; i2 = E(n3)) r2 += +b(i2);
566
- return r2;
567
- }, 1, 1, true), R(`translate`, 3, false, false, function(e3, t2, n3, r2) {
568
- t2 = A(t2, e3), n3 = A(n3, e3);
569
- var i2 = A(r2, e3);
570
- for (e3 = {}, r2 = 0; r2 < n3.length; r2++) {
571
- var a2 = n3.charAt(r2);
572
- a2 in e3 || (e3[a2] = i2.charAt(r2));
573
- }
574
- for (n3 = ``, r2 = 0; r2 < t2.length; r2++) a2 = t2.charAt(r2), n3 += a2 in e3 ? e3[a2] : a2;
575
- return n3;
576
- }, 3), R(`true`, 2, false, false, function() {
577
- return true;
578
- }, 0);
579
- function z(e3, t2) {
580
- switch (this.h = e3, this.c = t2 === void 0 ? null : t2, this.b = null, e3) {
581
- case `comment`:
582
- this.b = 8;
583
- break;
584
- case `text`:
585
- this.b = 3;
586
- break;
587
- case `processing-instruction`:
588
- this.b = 7;
589
- break;
590
- case `node`:
591
- break;
592
- default:
593
- throw Error(`Unexpected argument`);
594
- }
595
- }
596
- function We(e3) {
597
- return e3 == `comment` || e3 == `text` || e3 == `processing-instruction` || e3 == `node`;
598
- }
599
- z.prototype.a = function(e3) {
600
- return this.b === null || this.b == e3.nodeType;
601
- }, z.prototype.f = function() {
602
- return this.h;
603
- }, z.prototype.toString = function() {
604
- var e3 = `Kind Test: ` + this.h;
605
- return this.c === null || (e3 += O(this.c)), e3;
606
- };
607
- function Ge(e3) {
608
- this.b = e3, this.a = 0;
609
- }
610
- function Ke(e3) {
611
- e3 = e3.match(qe);
612
- for (var t2 = 0; t2 < e3.length; t2++) Je.test(e3[t2]) && e3.splice(t2, 1);
613
- return new Ge(e3);
614
- }
615
- var qe = /\$?(?:(?![0-9-\.])(?:\*|[\w-\.]+):)?(?![0-9-\.])(?:\*|[\w-\.]+)|\/\/|\.\.|::|\d+(?:\.\d*)?|\.\d+|"[^"]*"|'[^']*'|[!<>]=|\s+|./g, Je = /^\s/;
616
- function B(e3, t2) {
617
- return e3.b[e3.a + (t2 || 0)];
618
- }
619
- function V(e3) {
620
- return e3.b[e3.a++];
621
- }
622
- function H(e3) {
623
- return e3.b.length <= e3.a;
624
- }
625
- function U(e3) {
626
- D.call(this, 3), this.c = e3.substring(1, e3.length - 1);
627
- }
628
- c(U), U.prototype.a = function() {
629
- return this.c;
630
- }, U.prototype.toString = function() {
631
- return `Literal: ` + this.c;
632
- };
633
- function W(e3, t2) {
634
- this.j = e3.toLowerCase();
635
- var n3 = this.j == `*` ? `*` : `http://www.w3.org/1999/xhtml`;
636
- this.c = t2 ? t2.toLowerCase() : n3;
637
- }
638
- W.prototype.a = function(e3) {
639
- var t2 = e3.nodeType;
640
- return t2 != 1 && t2 != 2 ? false : (t2 = e3.localName === void 0 ? e3.nodeName : e3.localName, this.j != `*` && this.j != t2.toLowerCase() ? false : this.c == `*` ? true : this.c == (e3.namespaceURI ? e3.namespaceURI.toLowerCase() : `http://www.w3.org/1999/xhtml`));
641
- }, W.prototype.f = function() {
642
- return this.j;
643
- }, W.prototype.toString = function() {
644
- return `Name Test: ` + (this.c == `http://www.w3.org/1999/xhtml` ? `` : this.c + `:`) + this.j;
645
- };
646
- function Ye(e3, t2) {
647
- if (D.call(this, e3.i), this.h = e3, this.c = t2, this.g = e3.g, this.b = e3.b, this.c.length == 1) {
648
- var n3 = this.c[0];
649
- n3.u || n3.c != rt || (n3 = n3.o, n3.f() != `*` && (this.f = { name: n3.f(), s: null }));
650
- }
651
- }
652
- c(Ye);
653
- function G() {
654
- D.call(this, 4);
655
- }
656
- c(G), G.prototype.a = function(e3) {
657
- var t2 = new C();
658
- return e3 = e3.a, e3.nodeType == 9 ? w(t2, e3) : w(t2, e3.ownerDocument), t2;
659
- }, G.prototype.toString = function() {
660
- return `Root Helper Expression`;
661
- };
662
- function Xe() {
663
- D.call(this, 4);
664
- }
665
- c(Xe), Xe.prototype.a = function(e3) {
666
- var t2 = new C();
667
- return w(t2, e3.a), t2;
668
- }, Xe.prototype.toString = function() {
669
- return `Context Helper Expression`;
670
- };
671
- function Ze(e3) {
672
- return e3 == `/` || e3 == `//`;
673
- }
674
- Ye.prototype.a = function(e3) {
675
- var t2 = this.h.a(e3);
676
- if (!(t2 instanceof C)) throw Error(`Filter expression must evaluate to nodeset.`);
677
- e3 = this.c;
678
- for (var n3 = 0, r2 = e3.length; n3 < r2 && t2.l; n3++) {
679
- var i2 = e3[n3], a2 = T(t2, i2.c.a), o3;
680
- if (i2.g || i2.c != ot) if (i2.g || i2.c != ct) for (o3 = E(a2), t2 = i2.a(new F(o3)); (o3 = E(a2)) != null; ) o3 = i2.a(new F(o3)), t2 = Me(t2, o3);
681
- else o3 = E(a2), t2 = i2.a(new F(o3));
682
- else {
683
- for (o3 = E(a2); (t2 = E(a2)) && (!o3.contains || o3.contains(t2)) && t2.compareDocumentPosition(o3) & 8; o3 = t2) ;
684
- t2 = i2.a(new F(o3));
685
- }
686
- }
687
- return t2;
688
- }, Ye.prototype.toString = function() {
689
- var e3 = `Path Expression:` + O(this.h);
690
- if (this.c.length) {
691
- var t2 = p(this.c, function(e4, t3) {
692
- return e4 + O(t3);
693
- }, `Steps:`);
694
- e3 += O(t2);
695
- }
696
- return e3;
697
- };
698
- function Qe(e3) {
699
- D.call(this, 4), this.c = e3, Le(this, ne(this.c, function(e4) {
700
- return e4.g;
701
- })), Re(this, ne(this.c, function(e4) {
702
- return e4.b;
703
- }));
704
- }
705
- c(Qe), Qe.prototype.a = function(e3) {
706
- var t2 = new C();
707
- return f(this.c, function(n3) {
708
- if (n3 = n3.a(e3), !(n3 instanceof C)) throw Error(`Path expression must evaluate to NodeSet.`);
709
- t2 = Me(t2, n3);
710
- }), t2;
711
- }, Qe.prototype.toString = function() {
712
- return p(this.c, function(e3, t2) {
713
- return e3 + O(t2);
714
- }, `Union Expression:`);
715
- };
716
- function $e(e3, t2) {
717
- this.a = e3, this.b = !!t2;
718
- }
719
- function et(e3, t2, n3) {
720
- for (n3 ||= 0; n3 < e3.a.length; n3++) for (var r2 = e3.a[n3], i2 = T(t2), a2 = t2.l, o3, s2 = 0; o3 = E(i2); s2++) {
721
- var c2 = e3.b ? a2 - s2 : s2 + 1;
722
- if (o3 = r2.a(new F(o3, c2, a2)), typeof o3 == `number`) c2 = c2 == o3;
723
- else if (typeof o3 == `string` || typeof o3 == `boolean`) c2 = !!o3;
724
- else if (o3 instanceof C) c2 = 0 < o3.l;
725
- else throw Error(`Predicate.evaluate returned an unexpected type.`);
726
- if (!c2) {
727
- c2 = i2, o3 = c2.f;
728
- var l2 = c2.a;
729
- if (!l2) throw Error(`Next must be called at least once before remove.`);
730
- var u2 = l2.b, l2 = l2.a;
731
- u2 ? u2.a = l2 : o3.a = l2, l2 ? l2.b = u2 : o3.b = u2, o3.l--, c2.a = null;
732
- }
733
- }
734
- return t2;
735
- }
736
- $e.prototype.toString = function() {
737
- return p(this.a, function(e3, t2) {
738
- return e3 + O(t2);
739
- }, `Predicates:`);
740
- };
741
- function K(e3, t2, n3, r2) {
742
- D.call(this, 4), this.c = e3, this.o = t2, this.h = n3 || new $e([]), this.u = !!r2, t2 = this.h, t2 = 0 < t2.a.length ? t2.a[0].f : null, e3.b && t2 && (e3 = t2.name, e3 = v ? e3.toLowerCase() : e3, this.f = { name: e3, s: t2.s });
743
- a: {
744
- for (e3 = this.h, t2 = 0; t2 < e3.a.length; t2++) if (n3 = e3.a[t2], n3.g || n3.i == 1 || n3.i == 0) {
745
- e3 = true;
746
- break a;
747
- }
748
- e3 = false;
749
- }
750
- this.g = e3;
751
- }
752
- c(K), K.prototype.a = function(e3) {
753
- var t2 = e3.a, n3 = null, n3 = this.f, r2 = null, i2 = null, a2 = 0;
754
- if (n3 && (r2 = n3.name, i2 = n3.s ? A(n3.s, e3) : null, a2 = 1), this.u) if (this.g || this.c != it) if (e3 = T(new K(at, new z(`node`)).a(e3)), t2 = E(e3)) for (n3 = this.m(t2, r2, i2, a2); (t2 = E(e3)) != null; ) n3 = Me(n3, this.m(t2, r2, i2, a2));
755
- else n3 = new C();
756
- else n3 = S(this.o, t2, r2, i2), n3 = et(this.h, n3, a2);
757
- else n3 = this.m(e3.a, r2, i2, a2);
758
- return n3;
759
- }, K.prototype.m = function(e3, t2, n3, r2) {
760
- return e3 = this.c.f(this.o, e3, t2, n3), e3 = et(this.h, e3, r2);
761
- }, K.prototype.toString = function() {
762
- var e3 = `Step:` + O(`Operator: ` + (this.u ? `//` : `/`));
763
- if (this.c.j && (e3 += O(`Axis: ` + this.c)), e3 += O(this.o), this.h.a.length) {
764
- var t2 = p(this.h.a, function(e4, t3) {
765
- return e4 + O(t3);
766
- }, `Predicates:`);
767
- e3 += O(t2);
768
- }
769
- return e3;
770
- };
771
- function tt(e3, t2, n3, r2) {
772
- this.j = e3, this.f = t2, this.a = n3, this.b = r2;
773
- }
774
- tt.prototype.toString = function() {
775
- return this.j;
776
- };
777
- var nt = {};
778
- function q(e3, t2, n3, r2) {
779
- if (nt.hasOwnProperty(e3)) throw Error(`Axis already created: ` + e3);
780
- return t2 = new tt(e3, t2, n3, !!r2), nt[e3] = t2;
781
- }
782
- q(`ancestor`, function(e3, t2) {
783
- for (var n3 = new C(), r2 = t2; r2 = r2.parentNode; ) e3.a(r2) && Ne(n3, r2);
784
- return n3;
785
- }, true), q(`ancestor-or-self`, function(e3, t2) {
786
- var n3 = new C(), r2 = t2;
787
- do
788
- e3.a(r2) && Ne(n3, r2);
789
- while (r2 = r2.parentNode);
790
- return n3;
791
- }, true);
792
- var rt = q(`attribute`, function(e3, t2) {
793
- var n3 = new C(), r2 = e3.f();
794
- if (r2 == `style` && v && t2.style) return w(n3, new y(t2.style, t2, `style`, t2.style.cssText)), n3;
795
- var i2 = t2.attributes;
796
- if (i2) if (e3 instanceof z && e3.b === null || r2 == `*`) for (var r2 = 0, a2; a2 = i2[r2]; r2++) v ? a2.nodeValue && w(n3, be(t2, a2)) : w(n3, a2);
797
- else (a2 = i2.getNamedItem(r2)) && (v ? a2.nodeValue && w(n3, be(t2, a2)) : w(n3, a2));
798
- return n3;
799
- }, false), it = q(`child`, function(e3, t2, n3, i2, a2) {
800
- return (v ? Ce : we).call(null, e3, t2, r(n3) ? n3 : null, r(i2) ? i2 : null, a2 || new C());
801
- }, false, true);
802
- q(`descendant`, S, false, true);
803
- var at = q(`descendant-or-self`, function(e3, t2, n3, r2) {
804
- var i2 = new C();
805
- return x(t2, n3, r2) && e3.a(t2) && w(i2, t2), S(e3, t2, n3, r2, i2);
806
- }, false, true), ot = q(`following`, function(e3, t2, n3, r2) {
807
- var i2 = new C();
808
- do
809
- for (var a2 = t2; a2 = a2.nextSibling; ) x(a2, n3, r2) && e3.a(a2) && w(i2, a2), i2 = S(e3, a2, n3, r2, i2);
810
- while (t2 = t2.parentNode);
811
- return i2;
812
- }, false, true);
813
- q(`following-sibling`, function(e3, t2) {
814
- for (var n3 = new C(), r2 = t2; r2 = r2.nextSibling; ) e3.a(r2) && w(n3, r2);
815
- return n3;
816
- }, false), q(`namespace`, function() {
817
- return new C();
818
- }, false);
819
- var st = q(`parent`, function(e3, t2) {
820
- var n3 = new C();
821
- if (t2.nodeType == 9) return n3;
822
- if (t2.nodeType == 2) return w(n3, t2.ownerElement), n3;
823
- var r2 = t2.parentNode;
824
- return e3.a(r2) && w(n3, r2), n3;
825
- }, false), ct = q(`preceding`, function(e3, t2, n3, r2) {
826
- var i2 = new C(), a2 = [];
827
- do
828
- a2.unshift(t2);
829
- while (t2 = t2.parentNode);
830
- for (var o3 = 1, s2 = a2.length; o3 < s2; o3++) {
831
- var c2 = [];
832
- for (t2 = a2[o3]; t2 = t2.previousSibling; ) c2.unshift(t2);
833
- for (var l2 = 0, u2 = c2.length; l2 < u2; l2++) t2 = c2[l2], x(t2, n3, r2) && e3.a(t2) && w(i2, t2), i2 = S(e3, t2, n3, r2, i2);
834
- }
835
- return i2;
836
- }, true, true);
837
- q(`preceding-sibling`, function(e3, t2) {
838
- for (var n3 = new C(), r2 = t2; r2 = r2.previousSibling; ) e3.a(r2) && Ne(n3, r2);
839
- return n3;
840
- }, true);
841
- var lt = q(`self`, function(e3, t2) {
842
- var n3 = new C();
843
- return e3.a(t2) && w(n3, t2), n3;
844
- }, false);
845
- function J(e3) {
846
- D.call(this, 1), this.c = e3, this.g = e3.g, this.b = e3.b;
847
- }
848
- c(J), J.prototype.a = function(e3) {
849
- return -k(this.c, e3);
850
- }, J.prototype.toString = function() {
851
- return `Unary Expression: -` + O(this.c);
852
- };
853
- function ut(e3) {
854
- D.call(this, 1), this.c = e3;
855
- }
856
- c(ut), ut.prototype.a = function() {
857
- return this.c;
858
- }, ut.prototype.toString = function() {
859
- return `Number: ` + this.c;
860
- };
861
- function dt(e3, t2) {
862
- this.a = e3, this.b = t2;
863
- }
864
- function ft(e3) {
865
- for (var t2, n3 = []; ; ) {
866
- Y(e3, `Missing right hand side of binary expression.`), t2 = yt(e3);
867
- var r2 = V(e3.a);
868
- if (!r2) break;
869
- var i2 = (r2 = Be[r2] || null) && r2.w;
870
- if (!i2) {
871
- e3.a.a--;
872
- break;
873
- }
874
- for (; n3.length && i2 <= n3[n3.length - 1].w; ) t2 = new M(n3.pop(), n3.pop(), t2);
875
- n3.push(t2, r2);
876
- }
877
- for (; n3.length; ) t2 = new M(n3.pop(), n3.pop(), t2);
878
- return t2;
879
- }
880
- function Y(e3, t2) {
881
- if (H(e3.a)) throw Error(t2);
882
- }
883
- function pt(e3, t2) {
884
- var n3 = V(e3.a);
885
- if (n3 != t2) throw Error(`Bad token, expected: ` + t2 + ` got: ` + n3);
886
- }
887
- function mt(e3) {
888
- if (e3 = V(e3.a), e3 != `)`) throw Error(`Bad token: ` + e3);
889
- }
890
- function ht(e3) {
891
- if (e3 = V(e3.a), 2 > e3.length) throw Error(`Unclosed literal string`);
892
- return new U(e3);
893
- }
894
- function gt(e3) {
895
- var t2, n3 = [], r2;
896
- if (Ze(B(e3.a))) {
897
- if (t2 = V(e3.a), r2 = B(e3.a), t2 == `/` && (H(e3.a) || r2 != `.` && r2 != `..` && r2 != `@` && r2 != `*` && !/(?![0-9])[\w]/.test(r2))) return new G();
898
- r2 = new G(), Y(e3, `Missing next location step.`), t2 = _t(e3, t2), n3.push(t2);
899
- } else {
900
- a: {
901
- switch (t2 = B(e3.a), r2 = t2.charAt(0), r2) {
902
- case `$`:
903
- throw Error(`Variable reference not allowed in HTML XPath`);
904
- case `(`:
905
- V(e3.a), t2 = ft(e3), Y(e3, `unclosed "("`), pt(e3, `)`);
906
- break;
907
- case `"`:
908
- case `'`:
909
- t2 = ht(e3);
910
- break;
911
- default:
912
- if (isNaN(+t2)) if (!We(t2) && /(?![0-9])[\w]/.test(r2) && B(e3.a, 1) == `(`) {
913
- for (t2 = V(e3.a), t2 = Ue[t2] || null, V(e3.a), r2 = []; B(e3.a) != `)` && (Y(e3, `Missing function argument list.`), r2.push(ft(e3)), B(e3.a) == `,`); ) V(e3.a);
914
- Y(e3, `Unclosed function argument list.`), mt(e3), t2 = new L(t2, r2);
915
- } else {
916
- t2 = null;
917
- break a;
918
- }
919
- else t2 = new ut(+V(e3.a));
920
- }
921
- B(e3.a) == `[` && (r2 = new $e(vt(e3)), t2 = new I(t2, r2));
922
- }
923
- if (t2) if (Ze(B(e3.a))) r2 = t2;
924
- else return t2;
925
- else t2 = _t(e3, `/`), r2 = new Xe(), n3.push(t2);
926
- }
927
- for (; Ze(B(e3.a)); ) t2 = V(e3.a), Y(e3, `Missing next location step.`), t2 = _t(e3, t2), n3.push(t2);
928
- return new Ye(r2, n3);
929
- }
930
- function _t(e3, t2) {
931
- var n3, r2, i2;
932
- if (t2 != `/` && t2 != `//`) throw Error(`Step op should be "/" or "//"`);
933
- if (B(e3.a) == `.`) return r2 = new K(lt, new z(`node`)), V(e3.a), r2;
934
- if (B(e3.a) == `..`) return r2 = new K(st, new z(`node`)), V(e3.a), r2;
935
- var a2;
936
- if (B(e3.a) == `@`) a2 = rt, V(e3.a), Y(e3, `Missing attribute name`);
937
- else if (B(e3.a, 1) == `::`) {
938
- if (!/(?![0-9])[\w]/.test(B(e3.a).charAt(0))) throw Error(`Bad token: ` + V(e3.a));
939
- if (n3 = V(e3.a), a2 = nt[n3] || null, !a2) throw Error(`No axis with name: ` + n3);
940
- V(e3.a), Y(e3, `Missing node name`);
941
- } else a2 = it;
942
- if (n3 = B(e3.a), /(?![0-9])[\w\*]/.test(n3.charAt(0))) if (B(e3.a, 1) == `(`) {
943
- if (!We(n3)) throw Error(`Invalid node type: ` + n3);
944
- if (n3 = V(e3.a), !We(n3)) throw Error(`Invalid type name: ` + n3);
945
- pt(e3, `(`), Y(e3, `Bad nodetype`), i2 = B(e3.a).charAt(0);
946
- var o3 = null;
947
- (i2 == `"` || i2 == `'`) && (o3 = ht(e3)), Y(e3, `Bad nodetype`), mt(e3), n3 = new z(n3, o3);
948
- } else if (n3 = V(e3.a), i2 = n3.indexOf(`:`), i2 == -1) n3 = new W(n3);
949
- else {
950
- var o3 = n3.substring(0, i2), s2;
951
- if (o3 == `*`) s2 = `*`;
952
- else if (s2 = e3.b(o3), !s2) throw Error(`Namespace prefix not declared: ` + o3);
953
- n3 = n3.substr(i2 + 1), n3 = new W(n3, s2);
954
- }
955
- else throw Error(`Bad token: ` + V(e3.a));
956
- return i2 = new $e(vt(e3), a2.a), r2 || new K(a2, n3, i2, t2 == `//`);
957
- }
958
- function vt(e3) {
959
- for (var t2 = []; B(e3.a) == `[`; ) {
960
- V(e3.a), Y(e3, `Missing predicate expression.`);
961
- var n3 = ft(e3);
962
- t2.push(n3), Y(e3, `Unclosed predicate expression.`), pt(e3, `]`);
963
- }
964
- return t2;
965
- }
966
- function yt(e3) {
967
- if (B(e3.a) == `-`) return V(e3.a), new J(yt(e3));
968
- var t2 = gt(e3);
969
- if (B(e3.a) != `|`) e3 = t2;
970
- else {
971
- for (t2 = [t2]; V(e3.a) == `|`; ) Y(e3, `Missing next union location path.`), t2.push(gt(e3));
972
- e3.a.a--, e3 = new Qe(t2);
973
- }
974
- return e3;
975
- }
976
- function bt(e3) {
977
- switch (e3.nodeType) {
978
- case 1:
979
- return s(St, e3);
980
- case 9:
981
- return bt(e3.documentElement);
982
- case 11:
983
- case 10:
984
- case 6:
985
- case 12:
986
- return xt;
987
- default:
988
- return e3.parentNode ? bt(e3.parentNode) : xt;
989
- }
990
- }
991
- function xt() {
992
- return null;
993
- }
994
- function St(e3, t2) {
995
- if (e3.prefix == t2) return e3.namespaceURI || `http://www.w3.org/1999/xhtml`;
996
- var n3 = e3.getAttributeNode(`xmlns:` + t2);
997
- return n3 && n3.specified ? n3.value || null : e3.parentNode && e3.parentNode.nodeType != 9 ? St(e3.parentNode, t2) : null;
998
- }
999
- function Ct(e3, n3) {
1000
- if (!e3.length) throw Error(`Empty XPath expression.`);
1001
- var r2 = Ke(e3);
1002
- if (H(r2)) throw Error(`Invalid XPath expression.`);
1003
- n3 ? t(n3) == `function` || (n3 = o2(n3.lookupNamespaceURI, n3)) : n3 = function() {
1004
- return null;
1005
- };
1006
- var i2 = ft(new dt(r2, n3));
1007
- if (!H(r2)) throw Error(`Bad token: ` + V(r2));
1008
- this.evaluate = function(e4, t2) {
1009
- var n4 = i2.a(new F(e4));
1010
- return new X(n4, t2);
1011
- };
1012
- }
1013
- function X(e3, t2) {
1014
- if (t2 == 0) if (e3 instanceof C) t2 = 4;
1015
- else if (typeof e3 == `string`) t2 = 2;
1016
- else if (typeof e3 == `number`) t2 = 1;
1017
- else if (typeof e3 == `boolean`) t2 = 3;
1018
- else throw Error(`Unexpected evaluation result.`);
1019
- if (t2 != 2 && t2 != 1 && t2 != 3 && !(e3 instanceof C)) throw Error(`value could not be converted to the specified type`);
1020
- this.resultType = t2;
1021
- var n3;
1022
- switch (t2) {
1023
- case 2:
1024
- this.stringValue = e3 instanceof C ? Fe(e3) : `` + e3;
1025
- break;
1026
- case 1:
1027
- this.numberValue = e3 instanceof C ? +Fe(e3) : +e3;
1028
- break;
1029
- case 3:
1030
- this.booleanValue = e3 instanceof C ? 0 < e3.l : !!e3;
1031
- break;
1032
- case 4:
1033
- case 5:
1034
- case 6:
1035
- case 7:
1036
- var r2 = T(e3);
1037
- n3 = [];
1038
- for (var i2 = E(r2); i2; i2 = E(r2)) n3.push(i2 instanceof y ? i2.a : i2);
1039
- this.snapshotLength = e3.l, this.invalidIteratorState = false;
1040
- break;
1041
- case 8:
1042
- case 9:
1043
- r2 = Pe(e3), this.singleNodeValue = r2 instanceof y ? r2.a : r2;
1044
- break;
1045
- default:
1046
- throw Error(`Unknown XPathResult type.`);
1047
- }
1048
- var a2 = 0;
1049
- this.iterateNext = function() {
1050
- if (t2 != 4 && t2 != 5) throw Error(`iterateNext called with wrong result type`);
1051
- return a2 >= n3.length ? null : n3[a2++];
1052
- }, this.snapshotItem = function(e4) {
1053
- if (t2 != 6 && t2 != 7) throw Error(`snapshotItem called with wrong result type`);
1054
- return e4 >= n3.length || 0 > e4 ? null : n3[e4];
1055
- };
1056
- }
1057
- X.ANY_TYPE = 0, X.NUMBER_TYPE = 1, X.STRING_TYPE = 2, X.BOOLEAN_TYPE = 3, X.UNORDERED_NODE_ITERATOR_TYPE = 4, X.ORDERED_NODE_ITERATOR_TYPE = 5, X.UNORDERED_NODE_SNAPSHOT_TYPE = 6, X.ORDERED_NODE_SNAPSHOT_TYPE = 7, X.ANY_UNORDERED_NODE_TYPE = 8, X.FIRST_ORDERED_NODE_TYPE = 9;
1058
- function wt(e3) {
1059
- this.lookupNamespaceURI = bt(e3);
1060
- }
1061
- function Tt(t2, n3) {
1062
- var r2 = t2 || e2, i2 = r2.Document && r2.Document.prototype || r2.document;
1063
- (!i2.evaluate || n3) && (r2.XPathResult = X, i2.evaluate = function(e3, t3, n4, r3) {
1064
- return new Ct(e3, n4).evaluate(t3, r3);
1065
- }, i2.createExpression = function(e3, t3) {
1066
- return new Ct(e3, t3);
1067
- }, i2.createNSResolver = function(e3) {
1068
- return new wt(e3);
1069
- });
1070
- }
1071
- var Z = [`wgxpath`, `install`], Q = e2;
1072
- Z[0] in Q || !Q.execScript || Q.execScript(`var ` + Z[0]);
1073
- for (var $; Z.length && ($ = Z.shift()); ) Z.length || Tt === void 0 ? Q = Q[$] ? Q[$] : Q[$] = {} : Q[$] = Tt;
1074
- n2.exports.install = Tt, n2.exports.XPathResultType = { ANY_TYPE: 0, NUMBER_TYPE: 1, STRING_TYPE: 2, BOOLEAN_TYPE: 3, UNORDERED_NODE_ITERATOR_TYPE: 4, ORDERED_NODE_ITERATOR_TYPE: 5, UNORDERED_NODE_SNAPSHOT_TYPE: 6, ORDERED_NODE_SNAPSHOT_TYPE: 7, ANY_UNORDERED_NODE_TYPE: 8, FIRST_ORDERED_NODE_TYPE: 9 };
1075
- }).call(e);
1076
- }));
1077
- const wgxpath_installNodeCsk64Aj9 = n();
1078
- export {
1079
- wgxpath_installNodeCsk64Aj9 as default
1080
- };
1081
- //# sourceMappingURL=wgxpath.install-node-Csk64Aj9-Ckau6iLd.js.map