@limrun/playwright-core 1.56.1-lim.1 → 1.61.0-lim.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (378) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +5 -0
  3. package/ThirdPartyNotices.txt +7 -1496
  4. package/bin/install_webkit_wsl.ps1 +1 -3
  5. package/bin/reinstall_chrome_beta_linux.sh +1 -1
  6. package/bin/reinstall_chrome_beta_mac.sh +1 -1
  7. package/bin/reinstall_chrome_stable_linux.sh +1 -1
  8. package/bin/reinstall_chrome_stable_mac.sh +1 -1
  9. package/bin/reinstall_msedge_beta_linux.sh +1 -1
  10. package/bin/reinstall_msedge_beta_mac.sh +1 -1
  11. package/bin/reinstall_msedge_dev_linux.sh +1 -1
  12. package/bin/reinstall_msedge_dev_mac.sh +1 -1
  13. package/bin/reinstall_msedge_stable_linux.sh +1 -1
  14. package/bin/reinstall_msedge_stable_mac.sh +1 -1
  15. package/browsers.json +23 -22
  16. package/cli.js +4 -1
  17. package/index.js +2 -17
  18. package/lib/bootstrap.js +88 -0
  19. package/lib/coreBundle.js +73385 -0
  20. package/lib/entry/cliDaemon.js +5 -0
  21. package/lib/entry/dashboardApp.js +3 -0
  22. package/lib/entry/mcp.js +10 -0
  23. package/lib/entry/oopBrowserDownload.js +3 -0
  24. package/lib/{server/deviceDescriptors.js → package.js} +18 -7
  25. package/lib/server/deviceDescriptorsSource.json +1142 -182
  26. package/lib/server/electron/loader.js +99 -13
  27. package/lib/serverRegistry.js +7343 -0
  28. package/lib/serverRegistry.js.LICENSE +354 -0
  29. package/lib/tools/cli-client/channelSessions.js +141 -0
  30. package/lib/tools/cli-client/cli.js +6 -0
  31. package/lib/tools/cli-client/help.json +693 -0
  32. package/lib/tools/cli-client/minimist.js +128 -0
  33. package/lib/tools/cli-client/output.js +343 -0
  34. package/lib/tools/cli-client/program.js +404 -0
  35. package/lib/tools/cli-client/registry.js +176 -0
  36. package/lib/tools/cli-client/session.js +254 -0
  37. package/lib/tools/cli-client/skill/SKILL.md +404 -0
  38. package/lib/tools/cli-client/skill/references/element-attributes.md +23 -0
  39. package/lib/tools/cli-client/skill/references/playwright-tests.md +39 -0
  40. package/lib/tools/cli-client/skill/references/request-mocking.md +87 -0
  41. package/lib/tools/cli-client/skill/references/running-code.md +241 -0
  42. package/lib/tools/cli-client/skill/references/session-management.md +225 -0
  43. package/lib/tools/cli-client/skill/references/spec-driven-testing.md +305 -0
  44. package/lib/tools/cli-client/skill/references/storage-state.md +275 -0
  45. package/lib/tools/cli-client/skill/references/test-generation.md +134 -0
  46. package/lib/tools/cli-client/skill/references/tracing.md +139 -0
  47. package/lib/tools/cli-client/skill/references/video-recording.md +143 -0
  48. package/lib/tools/dashboard/appIcon.png +0 -0
  49. package/lib/tools/trace/SKILL.md +171 -0
  50. package/lib/{server/utils/profiler.js → tools/utils/extension.js} +42 -29
  51. package/lib/tools/utils/socketConnection.js +108 -0
  52. package/lib/utilsBundle.js +86695 -68
  53. package/lib/utilsBundle.js.LICENSE +2056 -0
  54. package/lib/vite/dashboard/assets/codicon-DCmgc-ay.ttf +0 -0
  55. package/lib/vite/dashboard/assets/firefox-1bWoP6pv.svg +1 -0
  56. package/lib/vite/dashboard/assets/firefox-beta-k3eOH_eK.svg +1 -0
  57. package/lib/vite/dashboard/assets/firefox-nightly-Cp5nfeDT.svg +1 -0
  58. package/lib/vite/dashboard/assets/index-BY2S1tHT.css +1 -0
  59. package/lib/vite/dashboard/assets/index-C_5TMfeg.js +52 -0
  60. package/lib/vite/dashboard/assets/safari-na3_-uQk.svg +1 -0
  61. package/lib/vite/dashboard/index.html +29 -0
  62. package/lib/vite/dashboard/playwright-logo.svg +24 -0
  63. package/lib/vite/htmlReport/index.html +2 -70
  64. package/lib/vite/htmlReport/report.css +1 -0
  65. package/lib/vite/htmlReport/report.js +72 -0
  66. package/lib/vite/{traceViewer/codeMirrorModule.C3UTv-Ge.css → recorder/assets/codeMirrorModule-DYBRYzYX.css} +1 -1
  67. package/lib/vite/recorder/assets/codeMirrorModule-DeBYQozu.js +32 -0
  68. package/lib/vite/recorder/assets/index-4ZiSSCmn.css +1 -0
  69. package/lib/vite/recorder/assets/index-Bq-mQf8S.js +193 -0
  70. package/lib/vite/recorder/index.html +2 -2
  71. package/lib/vite/traceViewer/assets/codeMirrorModule-LEHpjmcn.js +32 -0
  72. package/lib/vite/traceViewer/assets/defaultSettingsView-BNmKHKpQ.js +264 -0
  73. package/lib/vite/traceViewer/assets/urlMatch-BYQrIQwR.js +1 -0
  74. package/lib/vite/{recorder/assets/codeMirrorModule-C3UTv-Ge.css → traceViewer/codeMirrorModule.DYBRYzYX.css} +1 -1
  75. package/lib/vite/traceViewer/defaultSettingsView.CjdS-WJx.css +1 -0
  76. package/lib/vite/traceViewer/index.CzXZzn5A.css +1 -0
  77. package/lib/vite/traceViewer/index.DEBl1tfz.js +2 -0
  78. package/lib/vite/traceViewer/index.html +7 -6
  79. package/lib/vite/traceViewer/manifest.webmanifest +16 -0
  80. package/lib/vite/traceViewer/snapshot.html +4 -15
  81. package/lib/vite/traceViewer/snapshot.v8KI4P3m.js +2 -0
  82. package/lib/vite/traceViewer/sw.bundle.js +5 -3
  83. package/lib/vite/traceViewer/uiMode.BZQ54Kgt.css +1 -0
  84. package/lib/vite/traceViewer/uiMode.Ut8wwJNp.js +6 -0
  85. package/lib/vite/traceViewer/uiMode.html +5 -4
  86. package/package.json +4 -12
  87. package/types/protocol.d.ts +2101 -602
  88. package/types/types.d.ts +6183 -4591
  89. package/lib/androidServerImpl.js +0 -65
  90. package/lib/browserServerImpl.js +0 -120
  91. package/lib/cli/driver.js +0 -97
  92. package/lib/cli/program.js +0 -633
  93. package/lib/cli/programWithTestStub.js +0 -74
  94. package/lib/client/accessibility.js +0 -49
  95. package/lib/client/android.js +0 -361
  96. package/lib/client/api.js +0 -137
  97. package/lib/client/artifact.js +0 -79
  98. package/lib/client/browser.js +0 -163
  99. package/lib/client/browserContext.js +0 -529
  100. package/lib/client/browserType.js +0 -184
  101. package/lib/client/cdpSession.js +0 -51
  102. package/lib/client/channelOwner.js +0 -194
  103. package/lib/client/clientHelper.js +0 -64
  104. package/lib/client/clientInstrumentation.js +0 -55
  105. package/lib/client/clientStackTrace.js +0 -69
  106. package/lib/client/clock.js +0 -68
  107. package/lib/client/connection.js +0 -314
  108. package/lib/client/consoleMessage.js +0 -54
  109. package/lib/client/coverage.js +0 -44
  110. package/lib/client/dialog.js +0 -56
  111. package/lib/client/download.js +0 -62
  112. package/lib/client/electron.js +0 -138
  113. package/lib/client/elementHandle.js +0 -281
  114. package/lib/client/errors.js +0 -77
  115. package/lib/client/eventEmitter.js +0 -314
  116. package/lib/client/events.js +0 -99
  117. package/lib/client/fetch.js +0 -369
  118. package/lib/client/fileChooser.js +0 -46
  119. package/lib/client/fileUtils.js +0 -34
  120. package/lib/client/frame.js +0 -408
  121. package/lib/client/harRouter.js +0 -87
  122. package/lib/client/input.js +0 -84
  123. package/lib/client/jsHandle.js +0 -109
  124. package/lib/client/jsonPipe.js +0 -39
  125. package/lib/client/localUtils.js +0 -60
  126. package/lib/client/locator.js +0 -366
  127. package/lib/client/network.js +0 -747
  128. package/lib/client/page.js +0 -721
  129. package/lib/client/platform.js +0 -74
  130. package/lib/client/playwright.js +0 -75
  131. package/lib/client/selectors.js +0 -55
  132. package/lib/client/stream.js +0 -39
  133. package/lib/client/timeoutSettings.js +0 -79
  134. package/lib/client/tracing.js +0 -117
  135. package/lib/client/types.js +0 -28
  136. package/lib/client/video.js +0 -59
  137. package/lib/client/waiter.js +0 -142
  138. package/lib/client/webError.js +0 -39
  139. package/lib/client/webSocket.js +0 -93
  140. package/lib/client/worker.js +0 -63
  141. package/lib/client/writableStream.js +0 -39
  142. package/lib/generated/bindingsControllerSource.js +0 -28
  143. package/lib/generated/clockSource.js +0 -28
  144. package/lib/generated/injectedScriptSource.js +0 -28
  145. package/lib/generated/pollingRecorderSource.js +0 -28
  146. package/lib/generated/storageScriptSource.js +0 -28
  147. package/lib/generated/utilityScriptSource.js +0 -28
  148. package/lib/generated/webSocketMockSource.js +0 -336
  149. package/lib/inProcessFactory.js +0 -62
  150. package/lib/inprocess.js +0 -3
  151. package/lib/outofprocess.js +0 -76
  152. package/lib/protocol/serializers.js +0 -192
  153. package/lib/protocol/validator.js +0 -2912
  154. package/lib/protocol/validatorPrimitives.js +0 -193
  155. package/lib/remote/playwrightConnection.js +0 -129
  156. package/lib/remote/playwrightServer.js +0 -335
  157. package/lib/server/accessibility.js +0 -69
  158. package/lib/server/android/android.js +0 -465
  159. package/lib/server/android/backendAdb.js +0 -177
  160. package/lib/server/artifact.js +0 -127
  161. package/lib/server/bidi/bidiBrowser.js +0 -490
  162. package/lib/server/bidi/bidiChromium.js +0 -153
  163. package/lib/server/bidi/bidiConnection.js +0 -212
  164. package/lib/server/bidi/bidiExecutionContext.js +0 -221
  165. package/lib/server/bidi/bidiFirefox.js +0 -130
  166. package/lib/server/bidi/bidiInput.js +0 -146
  167. package/lib/server/bidi/bidiNetworkManager.js +0 -383
  168. package/lib/server/bidi/bidiOverCdp.js +0 -102
  169. package/lib/server/bidi/bidiPage.js +0 -552
  170. package/lib/server/bidi/bidiPdf.js +0 -106
  171. package/lib/server/bidi/third_party/bidiCommands.d.js +0 -22
  172. package/lib/server/bidi/third_party/bidiDeserializer.js +0 -98
  173. package/lib/server/bidi/third_party/bidiKeyboard.js +0 -256
  174. package/lib/server/bidi/third_party/bidiProtocol.js +0 -24
  175. package/lib/server/bidi/third_party/bidiProtocolCore.js +0 -179
  176. package/lib/server/bidi/third_party/bidiProtocolPermissions.js +0 -42
  177. package/lib/server/bidi/third_party/bidiSerializer.js +0 -148
  178. package/lib/server/bidi/third_party/firefoxPrefs.js +0 -259
  179. package/lib/server/browser.js +0 -149
  180. package/lib/server/browserContext.js +0 -696
  181. package/lib/server/browserType.js +0 -328
  182. package/lib/server/callLog.js +0 -82
  183. package/lib/server/chromium/chromium.js +0 -391
  184. package/lib/server/chromium/chromiumSwitches.js +0 -95
  185. package/lib/server/chromium/crAccessibility.js +0 -263
  186. package/lib/server/chromium/crBrowser.js +0 -502
  187. package/lib/server/chromium/crConnection.js +0 -202
  188. package/lib/server/chromium/crCoverage.js +0 -235
  189. package/lib/server/chromium/crDevTools.js +0 -113
  190. package/lib/server/chromium/crDragDrop.js +0 -131
  191. package/lib/server/chromium/crExecutionContext.js +0 -146
  192. package/lib/server/chromium/crInput.js +0 -187
  193. package/lib/server/chromium/crNetworkManager.js +0 -666
  194. package/lib/server/chromium/crPage.js +0 -1069
  195. package/lib/server/chromium/crPdf.js +0 -121
  196. package/lib/server/chromium/crProtocolHelper.js +0 -145
  197. package/lib/server/chromium/crServiceWorker.js +0 -123
  198. package/lib/server/chromium/defaultFontFamilies.js +0 -162
  199. package/lib/server/chromium/protocol.d.js +0 -16
  200. package/lib/server/chromium/videoRecorder.js +0 -113
  201. package/lib/server/clock.js +0 -149
  202. package/lib/server/codegen/csharp.js +0 -327
  203. package/lib/server/codegen/java.js +0 -274
  204. package/lib/server/codegen/javascript.js +0 -270
  205. package/lib/server/codegen/jsonl.js +0 -52
  206. package/lib/server/codegen/language.js +0 -132
  207. package/lib/server/codegen/languages.js +0 -68
  208. package/lib/server/codegen/python.js +0 -279
  209. package/lib/server/codegen/types.js +0 -16
  210. package/lib/server/console.js +0 -53
  211. package/lib/server/cookieStore.js +0 -206
  212. package/lib/server/debugController.js +0 -191
  213. package/lib/server/debugger.js +0 -119
  214. package/lib/server/dialog.js +0 -116
  215. package/lib/server/dispatchers/androidDispatcher.js +0 -325
  216. package/lib/server/dispatchers/artifactDispatcher.js +0 -118
  217. package/lib/server/dispatchers/browserContextDispatcher.js +0 -364
  218. package/lib/server/dispatchers/browserDispatcher.js +0 -118
  219. package/lib/server/dispatchers/browserTypeDispatcher.js +0 -64
  220. package/lib/server/dispatchers/cdpSessionDispatcher.js +0 -44
  221. package/lib/server/dispatchers/debugControllerDispatcher.js +0 -78
  222. package/lib/server/dispatchers/dialogDispatcher.js +0 -47
  223. package/lib/server/dispatchers/dispatcher.js +0 -371
  224. package/lib/server/dispatchers/electronDispatcher.js +0 -89
  225. package/lib/server/dispatchers/elementHandlerDispatcher.js +0 -181
  226. package/lib/server/dispatchers/frameDispatcher.js +0 -227
  227. package/lib/server/dispatchers/jsHandleDispatcher.js +0 -85
  228. package/lib/server/dispatchers/jsonPipeDispatcher.js +0 -58
  229. package/lib/server/dispatchers/localUtilsDispatcher.js +0 -149
  230. package/lib/server/dispatchers/networkDispatchers.js +0 -213
  231. package/lib/server/dispatchers/pageDispatcher.js +0 -401
  232. package/lib/server/dispatchers/playwrightDispatcher.js +0 -112
  233. package/lib/server/dispatchers/streamDispatcher.js +0 -67
  234. package/lib/server/dispatchers/tracingDispatcher.js +0 -68
  235. package/lib/server/dispatchers/webSocketRouteDispatcher.js +0 -165
  236. package/lib/server/dispatchers/writableStreamDispatcher.js +0 -79
  237. package/lib/server/dom.js +0 -806
  238. package/lib/server/download.js +0 -70
  239. package/lib/server/electron/electron.js +0 -270
  240. package/lib/server/errors.js +0 -69
  241. package/lib/server/fetch.js +0 -621
  242. package/lib/server/fileChooser.js +0 -43
  243. package/lib/server/fileUploadUtils.js +0 -84
  244. package/lib/server/firefox/ffAccessibility.js +0 -238
  245. package/lib/server/firefox/ffBrowser.js +0 -428
  246. package/lib/server/firefox/ffConnection.js +0 -147
  247. package/lib/server/firefox/ffExecutionContext.js +0 -150
  248. package/lib/server/firefox/ffInput.js +0 -159
  249. package/lib/server/firefox/ffNetworkManager.js +0 -256
  250. package/lib/server/firefox/ffPage.js +0 -503
  251. package/lib/server/firefox/firefox.js +0 -105
  252. package/lib/server/firefox/protocol.d.js +0 -16
  253. package/lib/server/formData.js +0 -147
  254. package/lib/server/frameSelectors.js +0 -156
  255. package/lib/server/frames.js +0 -1448
  256. package/lib/server/har/harRecorder.js +0 -147
  257. package/lib/server/har/harTracer.js +0 -607
  258. package/lib/server/harBackend.js +0 -157
  259. package/lib/server/helper.js +0 -96
  260. package/lib/server/index.js +0 -58
  261. package/lib/server/input.js +0 -273
  262. package/lib/server/instrumentation.js +0 -69
  263. package/lib/server/javascript.js +0 -291
  264. package/lib/server/launchApp.js +0 -128
  265. package/lib/server/localUtils.js +0 -218
  266. package/lib/server/macEditingCommands.js +0 -143
  267. package/lib/server/network.js +0 -629
  268. package/lib/server/page.js +0 -870
  269. package/lib/server/pipeTransport.js +0 -89
  270. package/lib/server/playwright.js +0 -71
  271. package/lib/server/progress.js +0 -112
  272. package/lib/server/protocolError.js +0 -52
  273. package/lib/server/recorder/chat.js +0 -161
  274. package/lib/server/recorder/recorderApp.js +0 -387
  275. package/lib/server/recorder/recorderRunner.js +0 -138
  276. package/lib/server/recorder/recorderSignalProcessor.js +0 -83
  277. package/lib/server/recorder/recorderUtils.js +0 -157
  278. package/lib/server/recorder/throttledFile.js +0 -57
  279. package/lib/server/recorder.js +0 -498
  280. package/lib/server/registry/browserFetcher.js +0 -175
  281. package/lib/server/registry/dependencies.js +0 -371
  282. package/lib/server/registry/index.js +0 -1333
  283. package/lib/server/registry/nativeDeps.js +0 -1280
  284. package/lib/server/registry/oopDownloadBrowserMain.js +0 -120
  285. package/lib/server/screenshotter.js +0 -333
  286. package/lib/server/selectors.js +0 -112
  287. package/lib/server/socksClientCertificatesInterceptor.js +0 -383
  288. package/lib/server/socksInterceptor.js +0 -95
  289. package/lib/server/trace/recorder/snapshotter.js +0 -147
  290. package/lib/server/trace/recorder/snapshotterInjected.js +0 -541
  291. package/lib/server/trace/recorder/tracing.js +0 -602
  292. package/lib/server/trace/test/inMemorySnapshotter.js +0 -87
  293. package/lib/server/trace/viewer/traceViewer.js +0 -240
  294. package/lib/server/transport.js +0 -181
  295. package/lib/server/types.js +0 -28
  296. package/lib/server/usKeyboardLayout.js +0 -145
  297. package/lib/server/utils/ascii.js +0 -44
  298. package/lib/server/utils/comparators.js +0 -161
  299. package/lib/server/utils/crypto.js +0 -216
  300. package/lib/server/utils/debug.js +0 -42
  301. package/lib/server/utils/debugLogger.js +0 -122
  302. package/lib/server/utils/env.js +0 -73
  303. package/lib/server/utils/eventsHelper.js +0 -39
  304. package/lib/server/utils/expectUtils.js +0 -38
  305. package/lib/server/utils/fileUtils.js +0 -191
  306. package/lib/server/utils/happyEyeballs.js +0 -207
  307. package/lib/server/utils/hostPlatform.js +0 -111
  308. package/lib/server/utils/httpServer.js +0 -218
  309. package/lib/server/utils/image_tools/colorUtils.js +0 -89
  310. package/lib/server/utils/image_tools/compare.js +0 -109
  311. package/lib/server/utils/image_tools/imageChannel.js +0 -78
  312. package/lib/server/utils/image_tools/stats.js +0 -102
  313. package/lib/server/utils/linuxUtils.js +0 -71
  314. package/lib/server/utils/network.js +0 -227
  315. package/lib/server/utils/nodePlatform.js +0 -148
  316. package/lib/server/utils/pipeTransport.js +0 -84
  317. package/lib/server/utils/processLauncher.js +0 -241
  318. package/lib/server/utils/socksProxy.js +0 -511
  319. package/lib/server/utils/spawnAsync.js +0 -41
  320. package/lib/server/utils/task.js +0 -51
  321. package/lib/server/utils/userAgent.js +0 -98
  322. package/lib/server/utils/wsServer.js +0 -121
  323. package/lib/server/utils/zipFile.js +0 -74
  324. package/lib/server/utils/zones.js +0 -57
  325. package/lib/server/webkit/protocol.d.js +0 -16
  326. package/lib/server/webkit/webkit.js +0 -119
  327. package/lib/server/webkit/wkAccessibility.js +0 -237
  328. package/lib/server/webkit/wkBrowser.js +0 -339
  329. package/lib/server/webkit/wkConnection.js +0 -149
  330. package/lib/server/webkit/wkExecutionContext.js +0 -154
  331. package/lib/server/webkit/wkInput.js +0 -181
  332. package/lib/server/webkit/wkInterceptableRequest.js +0 -169
  333. package/lib/server/webkit/wkPage.js +0 -1134
  334. package/lib/server/webkit/wkProvisionalPage.js +0 -83
  335. package/lib/server/webkit/wkWorkers.js +0 -104
  336. package/lib/server/webkit/wsl/webkit-wsl-transport-client.js +0 -74
  337. package/lib/server/webkit/wsl/webkit-wsl-transport-server.js +0 -113
  338. package/lib/third_party/pixelmatch.js +0 -255
  339. package/lib/utils/isomorphic/ariaSnapshot.js +0 -392
  340. package/lib/utils/isomorphic/assert.js +0 -31
  341. package/lib/utils/isomorphic/colors.js +0 -72
  342. package/lib/utils/isomorphic/cssParser.js +0 -245
  343. package/lib/utils/isomorphic/cssTokenizer.js +0 -1051
  344. package/lib/utils/isomorphic/headers.js +0 -53
  345. package/lib/utils/isomorphic/locatorGenerators.js +0 -673
  346. package/lib/utils/isomorphic/locatorParser.js +0 -176
  347. package/lib/utils/isomorphic/locatorUtils.js +0 -81
  348. package/lib/utils/isomorphic/manualPromise.js +0 -114
  349. package/lib/utils/isomorphic/mimeType.js +0 -459
  350. package/lib/utils/isomorphic/multimap.js +0 -80
  351. package/lib/utils/isomorphic/protocolFormatter.js +0 -78
  352. package/lib/utils/isomorphic/protocolMetainfo.js +0 -321
  353. package/lib/utils/isomorphic/rtti.js +0 -43
  354. package/lib/utils/isomorphic/selectorParser.js +0 -386
  355. package/lib/utils/isomorphic/semaphore.js +0 -54
  356. package/lib/utils/isomorphic/stackTrace.js +0 -158
  357. package/lib/utils/isomorphic/stringUtils.js +0 -155
  358. package/lib/utils/isomorphic/time.js +0 -49
  359. package/lib/utils/isomorphic/timeoutRunner.js +0 -66
  360. package/lib/utils/isomorphic/traceUtils.js +0 -58
  361. package/lib/utils/isomorphic/types.js +0 -16
  362. package/lib/utils/isomorphic/urlMatch.js +0 -176
  363. package/lib/utils/isomorphic/utilityScriptSerializers.js +0 -251
  364. package/lib/utils.js +0 -107
  365. package/lib/utilsBundleImpl/index.js +0 -218
  366. package/lib/vite/recorder/assets/codeMirrorModule-RJCXzfmE.js +0 -24
  367. package/lib/vite/recorder/assets/index-Ri0uHF7I.css +0 -1
  368. package/lib/vite/recorder/assets/index-Y-X2TGJv.js +0 -193
  369. package/lib/vite/traceViewer/assets/codeMirrorModule-eyVcHN77.js +0 -24
  370. package/lib/vite/traceViewer/assets/defaultSettingsView-w0zYjHsW.js +0 -265
  371. package/lib/vite/traceViewer/defaultSettingsView.TQ8_7ybu.css +0 -1
  372. package/lib/vite/traceViewer/index.Bx16ehp1.js +0 -2
  373. package/lib/vite/traceViewer/index.I8N9v4jT.css +0 -1
  374. package/lib/vite/traceViewer/uiMode.Btcz36p_.css +0 -1
  375. package/lib/vite/traceViewer/uiMode.DRQ310U5.js +0 -5
  376. package/lib/zipBundle.js +0 -34
  377. package/lib/zipBundleImpl.js +0 -5
  378. /package/lib/{utilsBundleImpl/xdg-open → xdg-open} +0 -0
@@ -0,0 +1,193 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/codeMirrorModule-DeBYQozu.js","assets/codeMirrorModule-DYBRYzYX.css"])))=>i.map(i=>d[i]);
2
+ (function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))s(c);new MutationObserver(c=>{for(const o of c)if(o.type==="childList")for(const h of o.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&s(h)}).observe(document,{childList:!0,subtree:!0});function a(c){const o={};return c.integrity&&(o.integrity=c.integrity),c.referrerPolicy&&(o.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?o.credentials="include":c.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(c){if(c.ep)return;c.ep=!0;const o=a(c);fetch(c.href,o)}})();function b1(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var lf={exports:{}},Oa={};/**
3
+ * @license React
4
+ * react-jsx-runtime.production.js
5
+ *
6
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */var Wm;function S1(){if(Wm)return Oa;Wm=1;var u=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function a(s,c,o){var h=null;if(o!==void 0&&(h=""+o),c.key!==void 0&&(h=""+c.key),"key"in c){o={};for(var m in c)m!=="key"&&(o[m]=c[m])}else o=c;return c=o.ref,{$$typeof:u,type:s,key:h,ref:c!==void 0?c:null,props:o}}return Oa.Fragment=l,Oa.jsx=a,Oa.jsxs=a,Oa}var Im;function T1(){return Im||(Im=1,lf.exports=S1()),lf.exports}var X=T1(),af={exports:{}},ue={};/**
11
+ * @license React
12
+ * react.production.js
13
+ *
14
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
15
+ *
16
+ * This source code is licensed under the MIT license found in the
17
+ * LICENSE file in the root directory of this source tree.
18
+ */var Fm;function E1(){if(Fm)return ue;Fm=1;var u=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),O=Symbol.iterator;function E(_){return _===null||typeof _!="object"?null:(_=O&&_[O]||_["@@iterator"],typeof _=="function"?_:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,w={};function M(_,Y,J){this.props=_,this.context=Y,this.refs=w,this.updater=J||x}M.prototype.isReactComponent={},M.prototype.setState=function(_,Y){if(typeof _!="object"&&typeof _!="function"&&_!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,_,Y,"setState")},M.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function R(){}R.prototype=M.prototype;function K(_,Y,J){this.props=_,this.context=Y,this.refs=w,this.updater=J||x}var Q=K.prototype=new R;Q.constructor=K,S(Q,M.prototype),Q.isPureReactComponent=!0;var Z=Array.isArray;function W(){}var k={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function U(_,Y,J){var F=J.ref;return{$$typeof:u,type:_,key:Y,ref:F!==void 0?F:null,props:J}}function ae(_,Y){return U(_.type,Y,_.props)}function te(_){return typeof _=="object"&&_!==null&&_.$$typeof===u}function $(_){var Y={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(J){return Y[J]})}var ee=/\/+/g;function we(_,Y){return typeof _=="object"&&_!==null&&_.key!=null?$(""+_.key):Y.toString(36)}function se(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then(W,W):(_.status="pending",_.then(function(Y){_.status==="pending"&&(_.status="fulfilled",_.value=Y)},function(Y){_.status==="pending"&&(_.status="rejected",_.reason=Y)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function D(_,Y,J,F,re){var me=typeof _;(me==="undefined"||me==="boolean")&&(_=null);var Ae=!1;if(_===null)Ae=!0;else switch(me){case"bigint":case"string":case"number":Ae=!0;break;case"object":switch(_.$$typeof){case u:case l:Ae=!0;break;case b:return Ae=_._init,D(Ae(_._payload),Y,J,F,re)}}if(Ae)return re=re(_),Ae=F===""?"."+we(_,0):F,Z(re)?(J="",Ae!=null&&(J=Ae.replace(ee,"$&/")+"/"),D(re,Y,J,"",function(Di){return Di})):re!=null&&(te(re)&&(re=ae(re,J+(re.key==null||_&&_.key===re.key?"":(""+re.key).replace(ee,"$&/")+"/")+Ae)),Y.push(re)),1;Ae=0;var rt=F===""?".":F+":";if(Z(_))for(var Ye=0;Ye<_.length;Ye++)F=_[Ye],me=rt+we(F,Ye),Ae+=D(F,Y,J,me,re);else if(Ye=E(_),typeof Ye=="function")for(_=Ye.call(_),Ye=0;!(F=_.next()).done;)F=F.value,me=rt+we(F,Ye++),Ae+=D(F,Y,J,me,re);else if(me==="object"){if(typeof _.then=="function")return D(se(_),Y,J,F,re);throw Y=String(_),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return Ae}function G(_,Y,J){if(_==null)return _;var F=[],re=0;return D(_,F,"","",function(me){return Y.call(J,me,re++)}),F}function ne(_){if(_._status===-1){var Y=_._result;Y=Y(),Y.then(function(J){(_._status===0||_._status===-1)&&(_._status=1,_._result=J)},function(J){(_._status===0||_._status===-1)&&(_._status=2,_._result=J)}),_._status===-1&&(_._status=0,_._result=Y)}if(_._status===1)return _._result.default;throw _._result}var de=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_)},Ne={map:G,forEach:function(_,Y,J){G(_,function(){Y.apply(this,arguments)},J)},count:function(_){var Y=0;return G(_,function(){Y++}),Y},toArray:function(_){return G(_,function(Y){return Y})||[]},only:function(_){if(!te(_))throw Error("React.Children.only expected to receive a single React element child.");return _}};return ue.Activity=v,ue.Children=Ne,ue.Component=M,ue.Fragment=a,ue.Profiler=c,ue.PureComponent=K,ue.StrictMode=s,ue.Suspense=p,ue.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,ue.__COMPILER_RUNTIME={__proto__:null,c:function(_){return k.H.useMemoCache(_)}},ue.cache=function(_){return function(){return _.apply(null,arguments)}},ue.cacheSignal=function(){return null},ue.cloneElement=function(_,Y,J){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var F=S({},_.props),re=_.key;if(Y!=null)for(me in Y.key!==void 0&&(re=""+Y.key),Y)!V.call(Y,me)||me==="key"||me==="__self"||me==="__source"||me==="ref"&&Y.ref===void 0||(F[me]=Y[me]);var me=arguments.length-2;if(me===1)F.children=J;else if(1<me){for(var Ae=Array(me),rt=0;rt<me;rt++)Ae[rt]=arguments[rt+2];F.children=Ae}return U(_.type,re,F)},ue.createContext=function(_){return _={$$typeof:h,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:o,_context:_},_},ue.createElement=function(_,Y,J){var F,re={},me=null;if(Y!=null)for(F in Y.key!==void 0&&(me=""+Y.key),Y)V.call(Y,F)&&F!=="key"&&F!=="__self"&&F!=="__source"&&(re[F]=Y[F]);var Ae=arguments.length-2;if(Ae===1)re.children=J;else if(1<Ae){for(var rt=Array(Ae),Ye=0;Ye<Ae;Ye++)rt[Ye]=arguments[Ye+2];re.children=rt}if(_&&_.defaultProps)for(F in Ae=_.defaultProps,Ae)re[F]===void 0&&(re[F]=Ae[F]);return U(_,me,re)},ue.createRef=function(){return{current:null}},ue.forwardRef=function(_){return{$$typeof:m,render:_}},ue.isValidElement=te,ue.lazy=function(_){return{$$typeof:b,_payload:{_status:-1,_result:_},_init:ne}},ue.memo=function(_,Y){return{$$typeof:g,type:_,compare:Y===void 0?null:Y}},ue.startTransition=function(_){var Y=k.T,J={};k.T=J;try{var F=_(),re=k.S;re!==null&&re(J,F),typeof F=="object"&&F!==null&&typeof F.then=="function"&&F.then(W,de)}catch(me){de(me)}finally{Y!==null&&J.types!==null&&(Y.types=J.types),k.T=Y}},ue.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},ue.use=function(_){return k.H.use(_)},ue.useActionState=function(_,Y,J){return k.H.useActionState(_,Y,J)},ue.useCallback=function(_,Y){return k.H.useCallback(_,Y)},ue.useContext=function(_){return k.H.useContext(_)},ue.useDebugValue=function(){},ue.useDeferredValue=function(_,Y){return k.H.useDeferredValue(_,Y)},ue.useEffect=function(_,Y){return k.H.useEffect(_,Y)},ue.useEffectEvent=function(_){return k.H.useEffectEvent(_)},ue.useId=function(){return k.H.useId()},ue.useImperativeHandle=function(_,Y,J){return k.H.useImperativeHandle(_,Y,J)},ue.useInsertionEffect=function(_,Y){return k.H.useInsertionEffect(_,Y)},ue.useLayoutEffect=function(_,Y){return k.H.useLayoutEffect(_,Y)},ue.useMemo=function(_,Y){return k.H.useMemo(_,Y)},ue.useOptimistic=function(_,Y){return k.H.useOptimistic(_,Y)},ue.useReducer=function(_,Y,J){return k.H.useReducer(_,Y,J)},ue.useRef=function(_){return k.H.useRef(_)},ue.useState=function(_){return k.H.useState(_)},ue.useSyncExternalStore=function(_,Y,J){return k.H.useSyncExternalStore(_,Y,J)},ue.useTransition=function(){return k.H.useTransition()},ue.version="19.2.1",ue}var Pm;function xf(){return Pm||(Pm=1,af.exports=E1()),af.exports}var he=xf();const An=b1(he);function Mg(){const u=An.useRef(null),[l]=Sf(u);return[l,u]}function Sf(u){const[l,a]=An.useState(new DOMRect(0,0,10,10)),s=An.useCallback(()=>{const c=u==null?void 0:u.current;c&&a(c.getBoundingClientRect())},[u]);return An.useLayoutEffect(()=>{const c=u==null?void 0:u.current;if(!c)return;s();const o=new ResizeObserver(s);return o.observe(c),window.addEventListener("resize",s),()=>{o.disconnect(),window.removeEventListener("resize",s)}},[s,u]),[l,s]}function eg(u){const l=document.createElement("textarea");l.style.position="absolute",l.style.zIndex="-1000",l.value=u,document.body.appendChild(l),l.select(),document.execCommand("copy"),l.remove()}function pu(u,l){u&&(l=Tl.getObject(u,l));const[a,s]=An.useState(l),c=An.useCallback(o=>{u?Tl.setObject(u,o):s(o)},[u,s]);return An.useEffect(()=>{if(u){const o=()=>s(Tl.getObject(u,l));return Tl.onChangeEmitter.addEventListener(u,o),()=>Tl.onChangeEmitter.removeEventListener(u,o)}},[l,u]),[a,c]}class w1{constructor(){this.onChangeEmitter=new EventTarget}getString(l,a){return localStorage[l]||a}setString(l,a){var s;localStorage[l]=a,this.onChangeEmitter.dispatchEvent(new Event(l)),(s=window.saveSettings)==null||s.call(window)}getObject(l,a){if(!localStorage[l])return a;try{return JSON.parse(localStorage[l])}catch{return a}}setObject(l,a){var s;localStorage[l]=JSON.stringify(a),this.onChangeEmitter.dispatchEvent(new Event(l)),(s=window.saveSettings)==null||s.call(window)}}const Tl=new w1;function Ol(...u){return u.filter(Boolean).join(" ")}const tg="\\u0000-\\u0020\\u007f-\\u009f",A1=new RegExp("(?:[a-zA-Z][a-zA-Z0-9+.-]{2,}:\\/\\/|www\\.)[^\\s"+tg+'"]{2,}[^\\s'+tg+`"')}\\],:;.!?]`,"ug"),O1="system",Cg="theme",_1=[{label:"Dark mode",value:"dark-mode"},{label:"Light mode",value:"light-mode"},{label:"System",value:"system"}],zg=window.matchMedia("(prefers-color-scheme: dark)");function N1(){document.playwrightThemeInitialized||(document.playwrightThemeInitialized=!0,document.defaultView.addEventListener("focus",u=>{u.target.document.nodeType===Node.DOCUMENT_NODE&&document.body.classList.remove("inactive")},!1),document.defaultView.addEventListener("blur",u=>{document.body.classList.add("inactive")},!1),Tf(Ef()),zg.addEventListener("change",()=>{Tf(Ef())}))}const M1=new Set;function Tf(u){const l=C1(),a=u==="system"?zg.matches?"dark-mode":"light-mode":u;if(l!==a){l&&document.documentElement.classList.remove(l),document.documentElement.classList.add(a);for(const s of M1)s(a)}}function Ef(){return Tl.getString(Cg,O1)}function C1(){return document.documentElement.classList.contains("dark-mode")?"dark-mode":document.documentElement.classList.contains("light-mode")?"light-mode":null}function z1(){const[u,l]=An.useState(Ef());return An.useEffect(()=>{Tl.setString(Cg,u),Tf(u)},[u]),[u,l]}var sf={exports:{}},_a={},uf={exports:{}},cf={};/**
19
+ * @license React
20
+ * scheduler.production.js
21
+ *
22
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
23
+ *
24
+ * This source code is licensed under the MIT license found in the
25
+ * LICENSE file in the root directory of this source tree.
26
+ */var ng;function x1(){return ng||(ng=1,(function(u){function l(D,G){var ne=D.length;D.push(G);e:for(;0<ne;){var de=ne-1>>>1,Ne=D[de];if(0<c(Ne,G))D[de]=G,D[ne]=Ne,ne=de;else break e}}function a(D){return D.length===0?null:D[0]}function s(D){if(D.length===0)return null;var G=D[0],ne=D.pop();if(ne!==G){D[0]=ne;e:for(var de=0,Ne=D.length,_=Ne>>>1;de<_;){var Y=2*(de+1)-1,J=D[Y],F=Y+1,re=D[F];if(0>c(J,ne))F<Ne&&0>c(re,J)?(D[de]=re,D[F]=ne,de=F):(D[de]=J,D[Y]=ne,de=Y);else if(F<Ne&&0>c(re,ne))D[de]=re,D[F]=ne,de=F;else break e}}return G}function c(D,G){var ne=D.sortIndex-G.sortIndex;return ne!==0?ne:D.id-G.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;u.unstable_now=function(){return o.now()}}else{var h=Date,m=h.now();u.unstable_now=function(){return h.now()-m}}var p=[],g=[],b=1,v=null,O=3,E=!1,x=!1,S=!1,w=!1,M=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,K=typeof setImmediate<"u"?setImmediate:null;function Q(D){for(var G=a(g);G!==null;){if(G.callback===null)s(g);else if(G.startTime<=D)s(g),G.sortIndex=G.expirationTime,l(p,G);else break;G=a(g)}}function Z(D){if(S=!1,Q(D),!x)if(a(p)!==null)x=!0,W||(W=!0,$());else{var G=a(g);G!==null&&se(Z,G.startTime-D)}}var W=!1,k=-1,V=5,U=-1;function ae(){return w?!0:!(u.unstable_now()-U<V)}function te(){if(w=!1,W){var D=u.unstable_now();U=D;var G=!0;try{e:{x=!1,S&&(S=!1,R(k),k=-1),E=!0;var ne=O;try{t:{for(Q(D),v=a(p);v!==null&&!(v.expirationTime>D&&ae());){var de=v.callback;if(typeof de=="function"){v.callback=null,O=v.priorityLevel;var Ne=de(v.expirationTime<=D);if(D=u.unstable_now(),typeof Ne=="function"){v.callback=Ne,Q(D),G=!0;break t}v===a(p)&&s(p),Q(D)}else s(p);v=a(p)}if(v!==null)G=!0;else{var _=a(g);_!==null&&se(Z,_.startTime-D),G=!1}}break e}finally{v=null,O=ne,E=!1}G=void 0}}finally{G?$():W=!1}}}var $;if(typeof K=="function")$=function(){K(te)};else if(typeof MessageChannel<"u"){var ee=new MessageChannel,we=ee.port2;ee.port1.onmessage=te,$=function(){we.postMessage(null)}}else $=function(){M(te,0)};function se(D,G){k=M(function(){D(u.unstable_now())},G)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function(D){D.callback=null},u.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<D?Math.floor(1e3/D):5},u.unstable_getCurrentPriorityLevel=function(){return O},u.unstable_next=function(D){switch(O){case 1:case 2:case 3:var G=3;break;default:G=O}var ne=O;O=G;try{return D()}finally{O=ne}},u.unstable_requestPaint=function(){w=!0},u.unstable_runWithPriority=function(D,G){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var ne=O;O=D;try{return G()}finally{O=ne}},u.unstable_scheduleCallback=function(D,G,ne){var de=u.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?de+ne:de):ne=de,D){case 1:var Ne=-1;break;case 2:Ne=250;break;case 5:Ne=1073741823;break;case 4:Ne=1e4;break;default:Ne=5e3}return Ne=ne+Ne,D={id:b++,callback:G,priorityLevel:D,startTime:ne,expirationTime:Ne,sortIndex:-1},ne>de?(D.sortIndex=ne,l(g,D),a(p)===null&&D===a(g)&&(S?(R(k),k=-1):S=!0,se(Z,ne-de))):(D.sortIndex=Ne,l(p,D),x||E||(x=!0,W||(W=!0,$()))),D},u.unstable_shouldYield=ae,u.unstable_wrapCallback=function(D){var G=O;return function(){var ne=O;O=G;try{return D.apply(this,arguments)}finally{O=ne}}}})(cf)),cf}var lg;function D1(){return lg||(lg=1,uf.exports=x1()),uf.exports}var rf={exports:{}},st={};/**
27
+ * @license React
28
+ * react-dom.production.js
29
+ *
30
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
31
+ *
32
+ * This source code is licensed under the MIT license found in the
33
+ * LICENSE file in the root directory of this source tree.
34
+ */var ig;function L1(){if(ig)return st;ig=1;var u=xf();function l(p){var g="https://react.dev/errors/"+p;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)g+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+p+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var s={d:{f:a,r:function(){throw Error(l(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},c=Symbol.for("react.portal");function o(p,g,b){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:v==null?null:""+v,children:p,containerInfo:g,implementation:b}}var h=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(p,g){if(p==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return st.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,st.createPortal=function(p,g){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(l(299));return o(p,g,null,b)},st.flushSync=function(p){var g=h.T,b=s.p;try{if(h.T=null,s.p=2,p)return p()}finally{h.T=g,s.p=b,s.d.f()}},st.preconnect=function(p,g){typeof p=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,s.d.C(p,g))},st.prefetchDNS=function(p){typeof p=="string"&&s.d.D(p)},st.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var b=g.as,v=m(b,g.crossOrigin),O=typeof g.integrity=="string"?g.integrity:void 0,E=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;b==="style"?s.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:v,integrity:O,fetchPriority:E}):b==="script"&&s.d.X(p,{crossOrigin:v,integrity:O,fetchPriority:E,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},st.preinitModule=function(p,g){if(typeof p=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var b=m(g.as,g.crossOrigin);s.d.M(p,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&s.d.M(p)},st.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var b=g.as,v=m(b,g.crossOrigin);s.d.L(p,b,{crossOrigin:v,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},st.preloadModule=function(p,g){if(typeof p=="string")if(g){var b=m(g.as,g.crossOrigin);s.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else s.d.m(p)},st.requestFormReset=function(p){s.d.r(p)},st.unstable_batchedUpdates=function(p,g){return p(g)},st.useFormState=function(p,g,b){return h.H.useFormState(p,g,b)},st.useFormStatus=function(){return h.H.useHostTransitionStatus()},st.version="19.2.1",st}var ag;function U1(){if(ag)return rf.exports;ag=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(l){console.error(l)}}return u(),rf.exports=L1(),rf.exports}/**
35
+ * @license React
36
+ * react-dom-client.production.js
37
+ *
38
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
39
+ *
40
+ * This source code is licensed under the MIT license found in the
41
+ * LICENSE file in the root directory of this source tree.
42
+ */var sg;function R1(){if(sg)return _a;sg=1;var u=D1(),l=xf(),a=U1();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(o(e)!==e)throw Error(s(188))}function g(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,i=t;;){var r=n.return;if(r===null)break;var f=r.alternate;if(f===null){if(i=r.return,i!==null){n=i;continue}break}if(r.child===f.child){for(f=r.child;f;){if(f===n)return p(r),e;if(f===i)return p(r),t;f=f.sibling}throw Error(s(188))}if(n.return!==i.return)n=r,i=f;else{for(var d=!1,y=r.child;y;){if(y===n){d=!0,n=r,i=f;break}if(y===i){d=!0,i=r,n=f;break}y=y.sibling}if(!d){for(y=f.child;y;){if(y===n){d=!0,n=f,i=r;break}if(y===i){d=!0,i=f,n=r;break}y=y.sibling}if(!d)throw Error(s(189))}}if(n.alternate!==i)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,O=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),K=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),U=Symbol.for("react.activity"),ae=Symbol.for("react.memo_cache_sentinel"),te=Symbol.iterator;function $(e){return e===null||typeof e!="object"?null:(e=te&&e[te]||e["@@iterator"],typeof e=="function"?e:null)}var ee=Symbol.for("react.client.reference");function we(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ee?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case S:return"Fragment";case M:return"Profiler";case w:return"StrictMode";case Z:return"Suspense";case W:return"SuspenseList";case U:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case x:return"Portal";case K:return e.displayName||"Context";case R:return(e._context.displayName||"Context")+".Consumer";case Q:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case k:return t=e.displayName||null,t!==null?t:we(e.type)||"Memo";case V:t=e._payload,e=e._init;try{return we(e(t))}catch{}}return null}var se=Array.isArray,D=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pending:!1,data:null,method:null,action:null},de=[],Ne=-1;function _(e){return{current:e}}function Y(e){0>Ne||(e.current=de[Ne],de[Ne]=null,Ne--)}function J(e,t){Ne++,de[Ne]=e.current,e.current=t}var F=_(null),re=_(null),me=_(null),Ae=_(null);function rt(e,t){switch(J(me,t),J(re,e),J(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?bm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=bm(t),e=Sm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Y(F),J(F,e)}function Ye(){Y(F),Y(re),Y(me)}function Di(e){e.memoizedState!==null&&J(Ae,e);var t=F.current,n=Sm(t,e.type);t!==n&&(J(re,e),J(F,n))}function ka(e){re.current===e&&(Y(F),Y(re)),Ae.current===e&&(Y(Ae),Ta._currentValue=ne)}var qu,Zf;function nl(e){if(qu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);qu=t&&t[1]||"",Zf=-1<n.stack.indexOf(`
43
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
44
+ `+qu+e+Zf}var Hu=!1;function Yu(e,t){if(!e||Hu)return"";Hu=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(j){var L=j}Reflect.construct(e,[],H)}else{try{H.call()}catch(j){L=j}e.call(H.prototype)}}else{try{throw Error()}catch(j){L=j}(H=e())&&typeof H.catch=="function"&&H.catch(function(){})}}catch(j){if(j&&L&&typeof j.stack=="string")return[j.stack,L.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=i.DetermineComponentFrameRoot(),d=f[0],y=f[1];if(d&&y){var T=d.split(`
45
+ `),z=y.split(`
46
+ `);for(r=i=0;i<T.length&&!T[i].includes("DetermineComponentFrameRoot");)i++;for(;r<z.length&&!z[r].includes("DetermineComponentFrameRoot");)r++;if(i===T.length||r===z.length)for(i=T.length-1,r=z.length-1;1<=i&&0<=r&&T[i]!==z[r];)r--;for(;1<=i&&0<=r;i--,r--)if(T[i]!==z[r]){if(i!==1||r!==1)do if(i--,r--,0>r||T[i]!==z[r]){var B=`
47
+ `+T[i].replace(" at new "," at ");return e.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",e.displayName)),B}while(1<=i&&0<=r);break}}}finally{Hu=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?nl(n):""}function Wp(e,t){switch(e.tag){case 26:case 27:case 5:return nl(e.type);case 16:return nl("Lazy");case 13:return e.child!==t&&t!==null?nl("Suspense Fallback"):nl("Suspense");case 19:return nl("SuspenseList");case 0:case 15:return Yu(e.type,!1);case 11:return Yu(e.type.render,!1);case 1:return Yu(e.type,!0);case 31:return nl("Activity");default:return""}}function Jf(e){try{var t="",n=null;do t+=Wp(e,n),n=e,e=e.return;while(e);return t}catch(i){return`
48
+ Error generating stack: `+i.message+`
49
+ `+i.stack}}var $u=Object.prototype.hasOwnProperty,Ku=u.unstable_scheduleCallback,Gu=u.unstable_cancelCallback,Ip=u.unstable_shouldYield,Fp=u.unstable_requestPaint,Et=u.unstable_now,Pp=u.unstable_getCurrentPriorityLevel,Wf=u.unstable_ImmediatePriority,If=u.unstable_UserBlockingPriority,qa=u.unstable_NormalPriority,ey=u.unstable_LowPriority,Ff=u.unstable_IdlePriority,ty=u.log,ny=u.unstable_setDisableYieldValue,Li=null,wt=null;function _n(e){if(typeof ty=="function"&&ny(e),wt&&typeof wt.setStrictMode=="function")try{wt.setStrictMode(Li,e)}catch{}}var At=Math.clz32?Math.clz32:ay,ly=Math.log,iy=Math.LN2;function ay(e){return e>>>=0,e===0?32:31-(ly(e)/iy|0)|0}var Ha=256,Ya=262144,$a=4194304;function ll(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ka(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var r=0,f=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var y=i&134217727;return y!==0?(i=y&~f,i!==0?r=ll(i):(d&=y,d!==0?r=ll(d):n||(n=y&~e,n!==0&&(r=ll(n))))):(y=i&~f,y!==0?r=ll(y):d!==0?r=ll(d):n||(n=i&~e,n!==0&&(r=ll(n)))),r===0?0:t!==0&&t!==r&&(t&f)===0&&(f=r&-r,n=t&-t,f>=n||f===32&&(n&4194048)!==0)?t:r}function Ui(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function sy(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Pf(){var e=$a;return $a<<=1,($a&62914560)===0&&($a=4194304),e}function Vu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ri(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function uy(e,t,n,i,r,f){var d=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var y=e.entanglements,T=e.expirationTimes,z=e.hiddenUpdates;for(n=d&~n;0<n;){var B=31-At(n),H=1<<B;y[B]=0,T[B]=-1;var L=z[B];if(L!==null)for(z[B]=null,B=0;B<L.length;B++){var j=L[B];j!==null&&(j.lane&=-536870913)}n&=~H}i!==0&&eo(e,i,0),f!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=f&~(d&~t))}function eo(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-At(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&261930}function to(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-At(n),r=1<<i;r&t|e[i]&t&&(e[i]|=t),n&=~r}}function no(e,t){var n=t&-t;return n=(n&42)!==0?1:Qu(n),(n&(e.suspendedLanes|t))!==0?0:n}function Qu(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Xu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function lo(){var e=G.p;return e!==0?e:(e=window.event,e===void 0?32:Km(e.type))}function io(e,t){var n=G.p;try{return G.p=e,t()}finally{G.p=n}}var Nn=Math.random().toString(36).slice(2),tt="__reactFiber$"+Nn,ht="__reactProps$"+Nn,Cl="__reactContainer$"+Nn,Zu="__reactEvents$"+Nn,cy="__reactListeners$"+Nn,ry="__reactHandles$"+Nn,ao="__reactResources$"+Nn,ji="__reactMarker$"+Nn;function Ju(e){delete e[tt],delete e[ht],delete e[Zu],delete e[cy],delete e[ry]}function zl(e){var t=e[tt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Cl]||n[tt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Nm(e);e!==null;){if(n=e[tt])return n;e=Nm(e)}return t}e=n,n=e.parentNode}return null}function xl(e){if(e=e[tt]||e[Cl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Bi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Dl(e){var t=e[ao];return t||(t=e[ao]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Pe(e){e[ji]=!0}var so=new Set,uo={};function il(e,t){Ll(e,t),Ll(e+"Capture",t)}function Ll(e,t){for(uo[e]=t,e=0;e<t.length;e++)so.add(t[e])}var fy=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),co={},ro={};function oy(e){return $u.call(ro,e)?!0:$u.call(co,e)?!1:fy.test(e)?ro[e]=!0:(co[e]=!0,!1)}function Ga(e,t,n){if(oy(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Va(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function ln(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+i)}}function Ut(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function fo(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function hy(e,t,n){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var r=i.get,f=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(d){n=""+d,f.call(this,d)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(d){n=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Wu(e){if(!e._valueTracker){var t=fo(e)?"checked":"value";e._valueTracker=hy(e,t,""+e[t])}}function oo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=fo(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function Qa(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var dy=/[\n"\\]/g;function Rt(e){return e.replace(dy,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Iu(e,t,n,i,r,f,d,y){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ut(t)):e.value!==""+Ut(t)&&(e.value=""+Ut(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?Fu(e,d,Ut(t)):n!=null?Fu(e,d,Ut(n)):i!=null&&e.removeAttribute("value"),r==null&&f!=null&&(e.defaultChecked=!!f),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+Ut(y):e.removeAttribute("name")}function ho(e,t,n,i,r,f,d,y){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||n!=null){if(!(f!=="submit"&&f!=="reset"||t!=null)){Wu(e);return}n=n!=null?""+Ut(n):"",t=t!=null?""+Ut(t):n,y||t===e.value||(e.value=t),e.defaultValue=t}i=i??r,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=y?e.checked:!!i,e.defaultChecked=!!i,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),Wu(e)}function Fu(e,t,n){t==="number"&&Qa(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Ul(e,t,n,i){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&i&&(e[n].defaultSelected=!0)}else{for(n=""+Ut(n),t=null,r=0;r<e.length;r++){if(e[r].value===n){e[r].selected=!0,i&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function mo(e,t,n){if(t!=null&&(t=""+Ut(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Ut(n):""}function go(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(s(92));if(se(i)){if(1<i.length)throw Error(s(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=Ut(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i),Wu(e)}function Rl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var my=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function po(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||my.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function yo(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var r in t)i=t[r],t.hasOwnProperty(r)&&n[r]!==i&&po(e,r,i)}else for(var f in t)t.hasOwnProperty(f)&&po(e,f,t[f])}function Pu(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var gy=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),py=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Xa(e){return py.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function an(){}var ec=null;function tc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var jl=null,Bl=null;function vo(e){var t=xl(e);if(t&&(e=t.stateNode)){var n=e[ht]||null;e:switch(e=t.stateNode,t.type){case"input":if(Iu(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Rt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var r=i[ht]||null;if(!r)throw Error(s(90));Iu(i,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&oo(i)}break e;case"textarea":mo(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Ul(e,!!n.multiple,t,!1)}}}var nc=!1;function bo(e,t,n){if(nc)return e(t,n);nc=!0;try{var i=e(t);return i}finally{if(nc=!1,(jl!==null||Bl!==null)&&(Us(),jl&&(t=jl,e=Bl,Bl=jl=null,vo(t),e)))for(t=0;t<e.length;t++)vo(e[t])}}function ki(e,t){var n=e.stateNode;if(n===null)return null;var i=n[ht]||null;if(i===null)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var sn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),lc=!1;if(sn)try{var qi={};Object.defineProperty(qi,"passive",{get:function(){lc=!0}}),window.addEventListener("test",qi,qi),window.removeEventListener("test",qi,qi)}catch{lc=!1}var Mn=null,ic=null,Za=null;function So(){if(Za)return Za;var e,t=ic,n=t.length,i,r="value"in Mn?Mn.value:Mn.textContent,f=r.length;for(e=0;e<n&&t[e]===r[e];e++);var d=n-e;for(i=1;i<=d&&t[n-i]===r[f-i];i++);return Za=r.slice(e,1<i?1-i:void 0)}function Ja(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Wa(){return!0}function To(){return!1}function dt(e){function t(n,i,r,f,d){this._reactName=n,this._targetInst=r,this.type=i,this.nativeEvent=f,this.target=d,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(n=e[y],this[y]=n?n(f):f[y]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?Wa:To,this.isPropagationStopped=To,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Wa)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Wa)},persist:function(){},isPersistent:Wa}),t}var al={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ia=dt(al),Hi=v({},al,{view:0,detail:0}),yy=dt(Hi),ac,sc,Yi,Fa=v({},Hi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:cc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Yi&&(Yi&&e.type==="mousemove"?(ac=e.screenX-Yi.screenX,sc=e.screenY-Yi.screenY):sc=ac=0,Yi=e),ac)},movementY:function(e){return"movementY"in e?e.movementY:sc}}),Eo=dt(Fa),vy=v({},Fa,{dataTransfer:0}),by=dt(vy),Sy=v({},Hi,{relatedTarget:0}),uc=dt(Sy),Ty=v({},al,{animationName:0,elapsedTime:0,pseudoElement:0}),Ey=dt(Ty),wy=v({},al,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ay=dt(wy),Oy=v({},al,{data:0}),wo=dt(Oy),_y={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ny={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},My={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=My[e])?!!t[e]:!1}function cc(){return Cy}var zy=v({},Hi,{key:function(e){if(e.key){var t=_y[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ja(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ny[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:cc,charCode:function(e){return e.type==="keypress"?Ja(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ja(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),xy=dt(zy),Dy=v({},Fa,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ao=dt(Dy),Ly=v({},Hi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:cc}),Uy=dt(Ly),Ry=v({},al,{propertyName:0,elapsedTime:0,pseudoElement:0}),jy=dt(Ry),By=v({},Fa,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),ky=dt(By),qy=v({},al,{newState:0,oldState:0}),Hy=dt(qy),Yy=[9,13,27,32],rc=sn&&"CompositionEvent"in window,$i=null;sn&&"documentMode"in document&&($i=document.documentMode);var $y=sn&&"TextEvent"in window&&!$i,Oo=sn&&(!rc||$i&&8<$i&&11>=$i),_o=" ",No=!1;function Mo(e,t){switch(e){case"keyup":return Yy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Co(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var kl=!1;function Ky(e,t){switch(e){case"compositionend":return Co(t);case"keypress":return t.which!==32?null:(No=!0,_o);case"textInput":return e=t.data,e===_o&&No?null:e;default:return null}}function Gy(e,t){if(kl)return e==="compositionend"||!rc&&Mo(e,t)?(e=So(),Za=ic=Mn=null,kl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Oo&&t.locale!=="ko"?null:t.data;default:return null}}var Vy={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function zo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Vy[e.type]:t==="textarea"}function xo(e,t,n,i){jl?Bl?Bl.push(i):Bl=[i]:jl=i,t=Ys(t,"onChange"),0<t.length&&(n=new Ia("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var Ki=null,Gi=null;function Qy(e){dm(e,0)}function Pa(e){var t=Bi(e);if(oo(t))return e}function Do(e,t){if(e==="change")return t}var Lo=!1;if(sn){var fc;if(sn){var oc="oninput"in document;if(!oc){var Uo=document.createElement("div");Uo.setAttribute("oninput","return;"),oc=typeof Uo.oninput=="function"}fc=oc}else fc=!1;Lo=fc&&(!document.documentMode||9<document.documentMode)}function Ro(){Ki&&(Ki.detachEvent("onpropertychange",jo),Gi=Ki=null)}function jo(e){if(e.propertyName==="value"&&Pa(Gi)){var t=[];xo(t,Gi,e,tc(e)),bo(Qy,t)}}function Xy(e,t,n){e==="focusin"?(Ro(),Ki=t,Gi=n,Ki.attachEvent("onpropertychange",jo)):e==="focusout"&&Ro()}function Zy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Pa(Gi)}function Jy(e,t){if(e==="click")return Pa(t)}function Wy(e,t){if(e==="input"||e==="change")return Pa(t)}function Iy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ot=typeof Object.is=="function"?Object.is:Iy;function Vi(e,t){if(Ot(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var r=n[i];if(!$u.call(t,r)||!Ot(e[r],t[r]))return!1}return!0}function Bo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ko(e,t){var n=Bo(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Bo(n)}}function qo(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qo(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ho(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Qa(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Qa(e.document)}return t}function hc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Fy=sn&&"documentMode"in document&&11>=document.documentMode,ql=null,dc=null,Qi=null,mc=!1;function Yo(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;mc||ql==null||ql!==Qa(i)||(i=ql,"selectionStart"in i&&hc(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Qi&&Vi(Qi,i)||(Qi=i,i=Ys(dc,"onSelect"),0<i.length&&(t=new Ia("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=ql)))}function sl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Hl={animationend:sl("Animation","AnimationEnd"),animationiteration:sl("Animation","AnimationIteration"),animationstart:sl("Animation","AnimationStart"),transitionrun:sl("Transition","TransitionRun"),transitionstart:sl("Transition","TransitionStart"),transitioncancel:sl("Transition","TransitionCancel"),transitionend:sl("Transition","TransitionEnd")},gc={},$o={};sn&&($o=document.createElement("div").style,"AnimationEvent"in window||(delete Hl.animationend.animation,delete Hl.animationiteration.animation,delete Hl.animationstart.animation),"TransitionEvent"in window||delete Hl.transitionend.transition);function ul(e){if(gc[e])return gc[e];if(!Hl[e])return e;var t=Hl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in $o)return gc[e]=t[n];return e}var Ko=ul("animationend"),Go=ul("animationiteration"),Vo=ul("animationstart"),Py=ul("transitionrun"),e0=ul("transitionstart"),t0=ul("transitioncancel"),Qo=ul("transitionend"),Xo=new Map,pc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");pc.push("scrollEnd");function Qt(e,t){Xo.set(e,t),il(t,[e])}var es=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},jt=[],Yl=0,yc=0;function ts(){for(var e=Yl,t=yc=Yl=0;t<e;){var n=jt[t];jt[t++]=null;var i=jt[t];jt[t++]=null;var r=jt[t];jt[t++]=null;var f=jt[t];if(jt[t++]=null,i!==null&&r!==null){var d=i.pending;d===null?r.next=r:(r.next=d.next,d.next=r),i.pending=r}f!==0&&Zo(n,r,f)}}function ns(e,t,n,i){jt[Yl++]=e,jt[Yl++]=t,jt[Yl++]=n,jt[Yl++]=i,yc|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function vc(e,t,n,i){return ns(e,t,n,i),ls(e)}function cl(e,t){return ns(e,null,null,t),ls(e)}function Zo(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var r=!1,f=e.return;f!==null;)f.childLanes|=n,i=f.alternate,i!==null&&(i.childLanes|=n),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(r=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,r&&t!==null&&(r=31-At(n),e=f.hiddenUpdates,i=e[r],i===null?e[r]=[t]:i.push(t),t.lane=n|536870912),f):null}function ls(e){if(50<ma)throw ma=0,Nr=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var $l={};function n0(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _t(e,t,n,i){return new n0(e,t,n,i)}function bc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function un(e,t){var n=e.alternate;return n===null?(n=_t(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Jo(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function is(e,t,n,i,r,f){var d=0;if(i=e,typeof e=="function")bc(e)&&(d=1);else if(typeof e=="string")d=u1(e,n,F.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case U:return e=_t(31,n,t,r),e.elementType=U,e.lanes=f,e;case S:return rl(n.children,r,f,t);case w:d=8,r|=24;break;case M:return e=_t(12,n,t,r|2),e.elementType=M,e.lanes=f,e;case Z:return e=_t(13,n,t,r),e.elementType=Z,e.lanes=f,e;case W:return e=_t(19,n,t,r),e.elementType=W,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case K:d=10;break e;case R:d=9;break e;case Q:d=11;break e;case k:d=14;break e;case V:d=16,i=null;break e}d=29,n=Error(s(130,e===null?"null":typeof e,"")),i=null}return t=_t(d,n,t,r),t.elementType=e,t.type=i,t.lanes=f,t}function rl(e,t,n,i){return e=_t(7,e,i,t),e.lanes=n,e}function Sc(e,t,n){return e=_t(6,e,null,t),e.lanes=n,e}function Wo(e){var t=_t(18,null,null,0);return t.stateNode=e,t}function Tc(e,t,n){return t=_t(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Io=new WeakMap;function Bt(e,t){if(typeof e=="object"&&e!==null){var n=Io.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Jf(t)},Io.set(e,t),t)}return{value:e,source:t,stack:Jf(t)}}var Kl=[],Gl=0,as=null,Xi=0,kt=[],qt=0,Cn=null,It=1,Ft="";function cn(e,t){Kl[Gl++]=Xi,Kl[Gl++]=as,as=e,Xi=t}function Fo(e,t,n){kt[qt++]=It,kt[qt++]=Ft,kt[qt++]=Cn,Cn=e;var i=It;e=Ft;var r=32-At(i)-1;i&=~(1<<r),n+=1;var f=32-At(t)+r;if(30<f){var d=r-r%5;f=(i&(1<<d)-1).toString(32),i>>=d,r-=d,It=1<<32-At(t)+r|n<<r|i,Ft=f+e}else It=1<<f|n<<r|i,Ft=e}function Ec(e){e.return!==null&&(cn(e,1),Fo(e,1,0))}function wc(e){for(;e===as;)as=Kl[--Gl],Kl[Gl]=null,Xi=Kl[--Gl],Kl[Gl]=null;for(;e===Cn;)Cn=kt[--qt],kt[qt]=null,Ft=kt[--qt],kt[qt]=null,It=kt[--qt],kt[qt]=null}function Po(e,t){kt[qt++]=It,kt[qt++]=Ft,kt[qt++]=Cn,It=t.id,Ft=t.overflow,Cn=e}var nt=null,Le=null,be=!1,zn=null,Ht=!1,Ac=Error(s(519));function xn(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Zi(Bt(t,e)),Ac}function eh(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[tt]=e,t[ht]=i,n){case"dialog":pe("cancel",t),pe("close",t);break;case"iframe":case"object":case"embed":pe("load",t);break;case"video":case"audio":for(n=0;n<pa.length;n++)pe(pa[n],t);break;case"source":pe("error",t);break;case"img":case"image":case"link":pe("error",t),pe("load",t);break;case"details":pe("toggle",t);break;case"input":pe("invalid",t),ho(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":pe("invalid",t);break;case"textarea":pe("invalid",t),go(t,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||ym(t.textContent,n)?(i.popover!=null&&(pe("beforetoggle",t),pe("toggle",t)),i.onScroll!=null&&pe("scroll",t),i.onScrollEnd!=null&&pe("scrollend",t),i.onClick!=null&&(t.onclick=an),t=!0):t=!1,t||xn(e,!0)}function th(e){for(nt=e.return;nt;)switch(nt.tag){case 5:case 31:case 13:Ht=!1;return;case 27:case 3:Ht=!0;return;default:nt=nt.return}}function Vl(e){if(e!==nt)return!1;if(!be)return th(e),be=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||$r(e.type,e.memoizedProps)),n=!n),n&&Le&&xn(e),th(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Le=_m(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Le=_m(e)}else t===27?(t=Le,Vn(e.type)?(e=Xr,Xr=null,Le=e):Le=t):Le=nt?$t(e.stateNode.nextSibling):null;return!0}function fl(){Le=nt=null,be=!1}function Oc(){var e=zn;return e!==null&&(yt===null?yt=e:yt.push.apply(yt,e),zn=null),e}function Zi(e){zn===null?zn=[e]:zn.push(e)}var _c=_(null),ol=null,rn=null;function Dn(e,t,n){J(_c,t._currentValue),t._currentValue=n}function fn(e){e._currentValue=_c.current,Y(_c)}function Nc(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function Mc(e,t,n,i){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var f=r.dependencies;if(f!==null){var d=r.child;f=f.firstContext;e:for(;f!==null;){var y=f;f=r;for(var T=0;T<t.length;T++)if(y.context===t[T]){f.lanes|=n,y=f.alternate,y!==null&&(y.lanes|=n),Nc(f.return,n,e),i||(d=null);break e}f=y.next}}else if(r.tag===18){if(d=r.return,d===null)throw Error(s(341));d.lanes|=n,f=d.alternate,f!==null&&(f.lanes|=n),Nc(d,n,e),d=null}else d=r.child;if(d!==null)d.return=r;else for(d=r;d!==null;){if(d===e){d=null;break}if(r=d.sibling,r!==null){r.return=d.return,d=r;break}d=d.return}r=d}}function Ql(e,t,n,i){e=null;for(var r=t,f=!1;r!==null;){if(!f){if((r.flags&524288)!==0)f=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var d=r.alternate;if(d===null)throw Error(s(387));if(d=d.memoizedProps,d!==null){var y=r.type;Ot(r.pendingProps.value,d.value)||(e!==null?e.push(y):e=[y])}}else if(r===Ae.current){if(d=r.alternate,d===null)throw Error(s(387));d.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(Ta):e=[Ta])}r=r.return}e!==null&&Mc(t,e,n,i),t.flags|=262144}function ss(e){for(e=e.firstContext;e!==null;){if(!Ot(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function hl(e){ol=e,rn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function lt(e){return nh(ol,e)}function us(e,t){return ol===null&&hl(e),nh(e,t)}function nh(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},rn===null){if(e===null)throw Error(s(308));rn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else rn=rn.next=t;return n}var l0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},i0=u.unstable_scheduleCallback,a0=u.unstable_NormalPriority,Qe={$$typeof:K,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Cc(){return{controller:new l0,data:new Map,refCount:0}}function Ji(e){e.refCount--,e.refCount===0&&i0(a0,function(){e.controller.abort()})}var Wi=null,zc=0,Xl=0,Zl=null;function s0(e,t){if(Wi===null){var n=Wi=[];zc=0,Xl=Lr(),Zl={status:"pending",value:void 0,then:function(i){n.push(i)}}}return zc++,t.then(lh,lh),t}function lh(){if(--zc===0&&Wi!==null){Zl!==null&&(Zl.status="fulfilled");var e=Wi;Wi=null,Xl=0,Zl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function u0(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(r){n.push(r)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var r=0;r<n.length;r++)(0,n[r])(t)},function(r){for(i.status="rejected",i.reason=r,r=0;r<n.length;r++)(0,n[r])(void 0)}),i}var ih=D.S;D.S=function(e,t){Yd=Et(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&s0(e,t),ih!==null&&ih(e,t)};var dl=_(null);function xc(){var e=dl.current;return e!==null?e:xe.pooledCache}function cs(e,t){t===null?J(dl,dl.current):J(dl,t.pool)}function ah(){var e=xc();return e===null?null:{parent:Qe._currentValue,pool:e}}var Jl=Error(s(460)),Dc=Error(s(474)),rs=Error(s(542)),fs={then:function(){}};function sh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function uh(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(an,an),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,rh(e),e;default:if(typeof t.status=="string")t.then(an,an);else{if(e=xe,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=i}},function(i){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,rh(e),e}throw gl=t,Jl}}function ml(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(gl=n,Jl):n}}var gl=null;function ch(){if(gl===null)throw Error(s(459));var e=gl;return gl=null,e}function rh(e){if(e===Jl||e===rs)throw Error(s(483))}var Wl=null,Ii=0;function os(e){var t=Ii;return Ii+=1,Wl===null&&(Wl=[]),uh(Wl,e,t)}function Fi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function hs(e,t){throw t.$$typeof===O?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function fh(e){function t(N,A){if(e){var C=N.deletions;C===null?(N.deletions=[A],N.flags|=16):C.push(A)}}function n(N,A){if(!e)return null;for(;A!==null;)t(N,A),A=A.sibling;return null}function i(N){for(var A=new Map;N!==null;)N.key!==null?A.set(N.key,N):A.set(N.index,N),N=N.sibling;return A}function r(N,A){return N=un(N,A),N.index=0,N.sibling=null,N}function f(N,A,C){return N.index=C,e?(C=N.alternate,C!==null?(C=C.index,C<A?(N.flags|=67108866,A):C):(N.flags|=67108866,A)):(N.flags|=1048576,A)}function d(N){return e&&N.alternate===null&&(N.flags|=67108866),N}function y(N,A,C,q){return A===null||A.tag!==6?(A=Sc(C,N.mode,q),A.return=N,A):(A=r(A,C),A.return=N,A)}function T(N,A,C,q){var le=C.type;return le===S?B(N,A,C.props.children,q,C.key):A!==null&&(A.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===V&&ml(le)===A.type)?(A=r(A,C.props),Fi(A,C),A.return=N,A):(A=is(C.type,C.key,C.props,null,N.mode,q),Fi(A,C),A.return=N,A)}function z(N,A,C,q){return A===null||A.tag!==4||A.stateNode.containerInfo!==C.containerInfo||A.stateNode.implementation!==C.implementation?(A=Tc(C,N.mode,q),A.return=N,A):(A=r(A,C.children||[]),A.return=N,A)}function B(N,A,C,q,le){return A===null||A.tag!==7?(A=rl(C,N.mode,q,le),A.return=N,A):(A=r(A,C),A.return=N,A)}function H(N,A,C){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=Sc(""+A,N.mode,C),A.return=N,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case E:return C=is(A.type,A.key,A.props,null,N.mode,C),Fi(C,A),C.return=N,C;case x:return A=Tc(A,N.mode,C),A.return=N,A;case V:return A=ml(A),H(N,A,C)}if(se(A)||$(A))return A=rl(A,N.mode,C,null),A.return=N,A;if(typeof A.then=="function")return H(N,os(A),C);if(A.$$typeof===K)return H(N,us(N,A),C);hs(N,A)}return null}function L(N,A,C,q){var le=A!==null?A.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return le!==null?null:y(N,A,""+C,q);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case E:return C.key===le?T(N,A,C,q):null;case x:return C.key===le?z(N,A,C,q):null;case V:return C=ml(C),L(N,A,C,q)}if(se(C)||$(C))return le!==null?null:B(N,A,C,q,null);if(typeof C.then=="function")return L(N,A,os(C),q);if(C.$$typeof===K)return L(N,A,us(N,C),q);hs(N,C)}return null}function j(N,A,C,q,le){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return N=N.get(C)||null,y(A,N,""+q,le);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case E:return N=N.get(q.key===null?C:q.key)||null,T(A,N,q,le);case x:return N=N.get(q.key===null?C:q.key)||null,z(A,N,q,le);case V:return q=ml(q),j(N,A,C,q,le)}if(se(q)||$(q))return N=N.get(C)||null,B(A,N,q,le,null);if(typeof q.then=="function")return j(N,A,C,os(q),le);if(q.$$typeof===K)return j(N,A,C,us(A,q),le);hs(A,q)}return null}function I(N,A,C,q){for(var le=null,Se=null,P=A,oe=A=0,ve=null;P!==null&&oe<C.length;oe++){P.index>oe?(ve=P,P=null):ve=P.sibling;var Te=L(N,P,C[oe],q);if(Te===null){P===null&&(P=ve);break}e&&P&&Te.alternate===null&&t(N,P),A=f(Te,A,oe),Se===null?le=Te:Se.sibling=Te,Se=Te,P=ve}if(oe===C.length)return n(N,P),be&&cn(N,oe),le;if(P===null){for(;oe<C.length;oe++)P=H(N,C[oe],q),P!==null&&(A=f(P,A,oe),Se===null?le=P:Se.sibling=P,Se=P);return be&&cn(N,oe),le}for(P=i(P);oe<C.length;oe++)ve=j(P,N,oe,C[oe],q),ve!==null&&(e&&ve.alternate!==null&&P.delete(ve.key===null?oe:ve.key),A=f(ve,A,oe),Se===null?le=ve:Se.sibling=ve,Se=ve);return e&&P.forEach(function(Wn){return t(N,Wn)}),be&&cn(N,oe),le}function ie(N,A,C,q){if(C==null)throw Error(s(151));for(var le=null,Se=null,P=A,oe=A=0,ve=null,Te=C.next();P!==null&&!Te.done;oe++,Te=C.next()){P.index>oe?(ve=P,P=null):ve=P.sibling;var Wn=L(N,P,Te.value,q);if(Wn===null){P===null&&(P=ve);break}e&&P&&Wn.alternate===null&&t(N,P),A=f(Wn,A,oe),Se===null?le=Wn:Se.sibling=Wn,Se=Wn,P=ve}if(Te.done)return n(N,P),be&&cn(N,oe),le;if(P===null){for(;!Te.done;oe++,Te=C.next())Te=H(N,Te.value,q),Te!==null&&(A=f(Te,A,oe),Se===null?le=Te:Se.sibling=Te,Se=Te);return be&&cn(N,oe),le}for(P=i(P);!Te.done;oe++,Te=C.next())Te=j(P,N,oe,Te.value,q),Te!==null&&(e&&Te.alternate!==null&&P.delete(Te.key===null?oe:Te.key),A=f(Te,A,oe),Se===null?le=Te:Se.sibling=Te,Se=Te);return e&&P.forEach(function(v1){return t(N,v1)}),be&&cn(N,oe),le}function ze(N,A,C,q){if(typeof C=="object"&&C!==null&&C.type===S&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case E:e:{for(var le=C.key;A!==null;){if(A.key===le){if(le=C.type,le===S){if(A.tag===7){n(N,A.sibling),q=r(A,C.props.children),q.return=N,N=q;break e}}else if(A.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===V&&ml(le)===A.type){n(N,A.sibling),q=r(A,C.props),Fi(q,C),q.return=N,N=q;break e}n(N,A);break}else t(N,A);A=A.sibling}C.type===S?(q=rl(C.props.children,N.mode,q,C.key),q.return=N,N=q):(q=is(C.type,C.key,C.props,null,N.mode,q),Fi(q,C),q.return=N,N=q)}return d(N);case x:e:{for(le=C.key;A!==null;){if(A.key===le)if(A.tag===4&&A.stateNode.containerInfo===C.containerInfo&&A.stateNode.implementation===C.implementation){n(N,A.sibling),q=r(A,C.children||[]),q.return=N,N=q;break e}else{n(N,A);break}else t(N,A);A=A.sibling}q=Tc(C,N.mode,q),q.return=N,N=q}return d(N);case V:return C=ml(C),ze(N,A,C,q)}if(se(C))return I(N,A,C,q);if($(C)){if(le=$(C),typeof le!="function")throw Error(s(150));return C=le.call(C),ie(N,A,C,q)}if(typeof C.then=="function")return ze(N,A,os(C),q);if(C.$$typeof===K)return ze(N,A,us(N,C),q);hs(N,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,A!==null&&A.tag===6?(n(N,A.sibling),q=r(A,C),q.return=N,N=q):(n(N,A),q=Sc(C,N.mode,q),q.return=N,N=q),d(N)):n(N,A)}return function(N,A,C,q){try{Ii=0;var le=ze(N,A,C,q);return Wl=null,le}catch(P){if(P===Jl||P===rs)throw P;var Se=_t(29,P,null,N.mode);return Se.lanes=q,Se.return=N,Se}finally{}}}var pl=fh(!0),oh=fh(!1),Ln=!1;function Lc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Uc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Un(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Rn(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Ee&2)!==0){var r=i.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),i.pending=t,t=ls(e),Zo(e,null,n),t}return ns(e,i,t,n),ls(e)}function Pi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,to(e,n)}}function Rc(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var r=null,f=null;if(n=n.firstBaseUpdate,n!==null){do{var d={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};f===null?r=f=d:f=f.next=d,n=n.next}while(n!==null);f===null?r=f=t:f=f.next=t}else r=f=t;n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:f,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var jc=!1;function ea(){if(jc){var e=Zl;if(e!==null)throw e}}function ta(e,t,n,i){jc=!1;var r=e.updateQueue;Ln=!1;var f=r.firstBaseUpdate,d=r.lastBaseUpdate,y=r.shared.pending;if(y!==null){r.shared.pending=null;var T=y,z=T.next;T.next=null,d===null?f=z:d.next=z,d=T;var B=e.alternate;B!==null&&(B=B.updateQueue,y=B.lastBaseUpdate,y!==d&&(y===null?B.firstBaseUpdate=z:y.next=z,B.lastBaseUpdate=T))}if(f!==null){var H=r.baseState;d=0,B=z=T=null,y=f;do{var L=y.lane&-536870913,j=L!==y.lane;if(j?(ye&L)===L:(i&L)===L){L!==0&&L===Xl&&(jc=!0),B!==null&&(B=B.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var I=e,ie=y;L=t;var ze=n;switch(ie.tag){case 1:if(I=ie.payload,typeof I=="function"){H=I.call(ze,H,L);break e}H=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=ie.payload,L=typeof I=="function"?I.call(ze,H,L):I,L==null)break e;H=v({},H,L);break e;case 2:Ln=!0}}L=y.callback,L!==null&&(e.flags|=64,j&&(e.flags|=8192),j=r.callbacks,j===null?r.callbacks=[L]:j.push(L))}else j={lane:L,tag:y.tag,payload:y.payload,callback:y.callback,next:null},B===null?(z=B=j,T=H):B=B.next=j,d|=L;if(y=y.next,y===null){if(y=r.shared.pending,y===null)break;j=y,y=j.next,j.next=null,r.lastBaseUpdate=j,r.shared.pending=null}}while(!0);B===null&&(T=H),r.baseState=T,r.firstBaseUpdate=z,r.lastBaseUpdate=B,f===null&&(r.shared.lanes=0),Hn|=d,e.lanes=d,e.memoizedState=H}}function hh(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function dh(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)hh(n[e],t)}var Il=_(null),ds=_(0);function mh(e,t){e=bn,J(ds,e),J(Il,t),bn=e|t.baseLanes}function Bc(){J(ds,bn),J(Il,Il.current)}function kc(){bn=ds.current,Y(Il),Y(ds)}var Nt=_(null),Yt=null;function jn(e){var t=e.alternate;J($e,$e.current&1),J(Nt,e),Yt===null&&(t===null||Il.current!==null||t.memoizedState!==null)&&(Yt=e)}function qc(e){J($e,$e.current),J(Nt,e),Yt===null&&(Yt=e)}function gh(e){e.tag===22?(J($e,$e.current),J(Nt,e),Yt===null&&(Yt=e)):Bn()}function Bn(){J($e,$e.current),J(Nt,Nt.current)}function Mt(e){Y(Nt),Yt===e&&(Yt=null),Y($e)}var $e=_(0);function ms(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Vr(n)||Qr(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var on=0,fe=null,Me=null,Xe=null,gs=!1,Fl=!1,yl=!1,ps=0,na=0,Pl=null,c0=0;function qe(){throw Error(s(321))}function Hc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ot(e[n],t[n]))return!1;return!0}function Yc(e,t,n,i,r,f){return on=f,fe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?Fh:nr,yl=!1,f=n(i,r),yl=!1,Fl&&(f=yh(t,n,i,r)),ph(e),f}function ph(e){D.H=aa;var t=Me!==null&&Me.next!==null;if(on=0,Xe=Me=fe=null,gs=!1,na=0,Pl=null,t)throw Error(s(300));e===null||Ze||(e=e.dependencies,e!==null&&ss(e)&&(Ze=!0))}function yh(e,t,n,i){fe=e;var r=0;do{if(Fl&&(Pl=null),na=0,Fl=!1,25<=r)throw Error(s(301));if(r+=1,Xe=Me=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}D.H=Ph,f=t(n,i)}while(Fl);return f}function r0(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?la(t):t,e=e.useState()[0],(Me!==null?Me.memoizedState:null)!==e&&(fe.flags|=1024),t}function $c(){var e=ps!==0;return ps=0,e}function Kc(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Gc(e){if(gs){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}gs=!1}on=0,Xe=Me=fe=null,Fl=!1,na=ps=0,Pl=null}function ft(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xe===null?fe.memoizedState=Xe=e:Xe=Xe.next=e,Xe}function Ke(){if(Me===null){var e=fe.alternate;e=e!==null?e.memoizedState:null}else e=Me.next;var t=Xe===null?fe.memoizedState:Xe.next;if(t!==null)Xe=t,Me=e;else{if(e===null)throw fe.alternate===null?Error(s(467)):Error(s(310));Me=e,e={memoizedState:Me.memoizedState,baseState:Me.baseState,baseQueue:Me.baseQueue,queue:Me.queue,next:null},Xe===null?fe.memoizedState=Xe=e:Xe=Xe.next=e}return Xe}function ys(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function la(e){var t=na;return na+=1,Pl===null&&(Pl=[]),e=uh(Pl,e,t),t=fe,(Xe===null?t.memoizedState:Xe.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?Fh:nr),e}function vs(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return la(e);if(e.$$typeof===K)return lt(e)}throw Error(s(438,String(e)))}function Vc(e){var t=null,n=fe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=fe.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=ys(),fe.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=ae;return t.index++,n}function hn(e,t){return typeof t=="function"?t(e):t}function bs(e){var t=Ke();return Qc(t,Me,e)}function Qc(e,t,n){var i=e.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=n;var r=e.baseQueue,f=i.pending;if(f!==null){if(r!==null){var d=r.next;r.next=f.next,f.next=d}t.baseQueue=r=f,i.pending=null}if(f=e.baseState,r===null)e.memoizedState=f;else{t=r.next;var y=d=null,T=null,z=t,B=!1;do{var H=z.lane&-536870913;if(H!==z.lane?(ye&H)===H:(on&H)===H){var L=z.revertLane;if(L===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),H===Xl&&(B=!0);else if((on&L)===L){z=z.next,L===Xl&&(B=!0);continue}else H={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},T===null?(y=T=H,d=f):T=T.next=H,fe.lanes|=L,Hn|=L;H=z.action,yl&&n(f,H),f=z.hasEagerState?z.eagerState:n(f,H)}else L={lane:H,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},T===null?(y=T=L,d=f):T=T.next=L,fe.lanes|=H,Hn|=H;z=z.next}while(z!==null&&z!==t);if(T===null?d=f:T.next=y,!Ot(f,e.memoizedState)&&(Ze=!0,B&&(n=Zl,n!==null)))throw n;e.memoizedState=f,e.baseState=d,e.baseQueue=T,i.lastRenderedState=f}return r===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Xc(e){var t=Ke(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var i=n.dispatch,r=n.pending,f=t.memoizedState;if(r!==null){n.pending=null;var d=r=r.next;do f=e(f,d.action),d=d.next;while(d!==r);Ot(f,t.memoizedState)||(Ze=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),n.lastRenderedState=f}return[f,i]}function vh(e,t,n){var i=fe,r=Ke(),f=be;if(f){if(n===void 0)throw Error(s(407));n=n()}else n=t();var d=!Ot((Me||r).memoizedState,n);if(d&&(r.memoizedState=n,Ze=!0),r=r.queue,Wc(Th.bind(null,i,r,e),[e]),r.getSnapshot!==t||d||Xe!==null&&Xe.memoizedState.tag&1){if(i.flags|=2048,ei(9,{destroy:void 0},Sh.bind(null,i,r,n,t),null),xe===null)throw Error(s(349));f||(on&127)!==0||bh(i,t,n)}return n}function bh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=fe.updateQueue,t===null?(t=ys(),fe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Sh(e,t,n,i){t.value=n,t.getSnapshot=i,Eh(t)&&wh(e)}function Th(e,t,n){return n(function(){Eh(t)&&wh(e)})}function Eh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ot(e,n)}catch{return!0}}function wh(e){var t=cl(e,2);t!==null&&vt(t,e,2)}function Zc(e){var t=ft();if(typeof e=="function"){var n=e;if(e=n(),yl){_n(!0);try{n()}finally{_n(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hn,lastRenderedState:e},t}function Ah(e,t,n,i){return e.baseState=n,Qc(e,Me,typeof i=="function"?i:hn)}function f0(e,t,n,i,r){if(Es(e))throw Error(s(485));if(e=t.action,e!==null){var f={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){f.listeners.push(d)}};D.T!==null?n(!0):f.isTransition=!1,i(f),n=t.pending,n===null?(f.next=t.pending=f,Oh(t,f)):(f.next=n.next,t.pending=n.next=f)}}function Oh(e,t){var n=t.action,i=t.payload,r=e.state;if(t.isTransition){var f=D.T,d={};D.T=d;try{var y=n(r,i),T=D.S;T!==null&&T(d,y),_h(e,t,y)}catch(z){Jc(e,t,z)}finally{f!==null&&d.types!==null&&(f.types=d.types),D.T=f}}else try{f=n(r,i),_h(e,t,f)}catch(z){Jc(e,t,z)}}function _h(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){Nh(e,t,i)},function(i){return Jc(e,t,i)}):Nh(e,t,n)}function Nh(e,t,n){t.status="fulfilled",t.value=n,Mh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Oh(e,n)))}function Jc(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,Mh(t),t=t.next;while(t!==i)}e.action=null}function Mh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ch(e,t){return t}function zh(e,t){if(be){var n=xe.formState;if(n!==null){e:{var i=fe;if(be){if(Le){t:{for(var r=Le,f=Ht;r.nodeType!==8;){if(!f){r=null;break t}if(r=$t(r.nextSibling),r===null){r=null;break t}}f=r.data,r=f==="F!"||f==="F"?r:null}if(r){Le=$t(r.nextSibling),i=r.data==="F!";break e}}xn(i)}i=!1}i&&(t=n[0])}}return n=ft(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ch,lastRenderedState:t},n.queue=i,n=Jh.bind(null,fe,i),i.dispatch=n,i=Zc(!1),f=tr.bind(null,fe,!1,i.queue),i=ft(),r={state:t,dispatch:null,action:e,pending:null},i.queue=r,n=f0.bind(null,fe,r,f,n),r.dispatch=n,i.memoizedState=e,[t,n,!1]}function xh(e){var t=Ke();return Dh(t,Me,e)}function Dh(e,t,n){if(t=Qc(e,t,Ch)[0],e=bs(hn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=la(t)}catch(d){throw d===Jl?rs:d}else i=t;t=Ke();var r=t.queue,f=r.dispatch;return n!==t.memoizedState&&(fe.flags|=2048,ei(9,{destroy:void 0},o0.bind(null,r,n),null)),[i,f,e]}function o0(e,t){e.action=t}function Lh(e){var t=Ke(),n=Me;if(n!==null)return Dh(t,n,e);Ke(),t=t.memoizedState,n=Ke();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function ei(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=fe.updateQueue,t===null&&(t=ys(),fe.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function Uh(){return Ke().memoizedState}function Ss(e,t,n,i){var r=ft();fe.flags|=e,r.memoizedState=ei(1|t,{destroy:void 0},n,i===void 0?null:i)}function Ts(e,t,n,i){var r=Ke();i=i===void 0?null:i;var f=r.memoizedState.inst;Me!==null&&i!==null&&Hc(i,Me.memoizedState.deps)?r.memoizedState=ei(t,f,n,i):(fe.flags|=e,r.memoizedState=ei(1|t,f,n,i))}function Rh(e,t){Ss(8390656,8,e,t)}function Wc(e,t){Ts(2048,8,e,t)}function h0(e){fe.flags|=4;var t=fe.updateQueue;if(t===null)t=ys(),fe.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function jh(e){var t=Ke().memoizedState;return h0({ref:t,nextImpl:e}),function(){if((Ee&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Bh(e,t){return Ts(4,2,e,t)}function kh(e,t){return Ts(4,4,e,t)}function qh(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Hh(e,t,n){n=n!=null?n.concat([e]):null,Ts(4,4,qh.bind(null,t,e),n)}function Ic(){}function Yh(e,t){var n=Ke();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&Hc(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function $h(e,t){var n=Ke();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&Hc(t,i[1]))return i[0];if(i=e(),yl){_n(!0);try{e()}finally{_n(!1)}}return n.memoizedState=[i,t],i}function Fc(e,t,n){return n===void 0||(on&1073741824)!==0&&(ye&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Kd(),fe.lanes|=e,Hn|=e,n)}function Kh(e,t,n,i){return Ot(n,t)?n:Il.current!==null?(e=Fc(e,n,i),Ot(e,t)||(Ze=!0),e):(on&42)===0||(on&1073741824)!==0&&(ye&261930)===0?(Ze=!0,e.memoizedState=n):(e=Kd(),fe.lanes|=e,Hn|=e,t)}function Gh(e,t,n,i,r){var f=G.p;G.p=f!==0&&8>f?f:8;var d=D.T,y={};D.T=y,tr(e,!1,t,n);try{var T=r(),z=D.S;if(z!==null&&z(y,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var B=u0(T,i);ia(e,t,B,xt(e))}else ia(e,t,i,xt(e))}catch(H){ia(e,t,{then:function(){},status:"rejected",reason:H},xt())}finally{G.p=f,d!==null&&y.types!==null&&(d.types=y.types),D.T=d}}function d0(){}function Pc(e,t,n,i){if(e.tag!==5)throw Error(s(476));var r=Vh(e).queue;Gh(e,r,t,ne,n===null?d0:function(){return Qh(e),n(i)})}function Vh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hn,lastRenderedState:ne},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Qh(e){var t=Vh(e);t.next===null&&(t=e.alternate.memoizedState),ia(e,t.next.queue,{},xt())}function er(){return lt(Ta)}function Xh(){return Ke().memoizedState}function Zh(){return Ke().memoizedState}function m0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=xt();e=Un(n);var i=Rn(t,e,n);i!==null&&(vt(i,t,n),Pi(i,t,n)),t={cache:Cc()},e.payload=t;return}t=t.return}}function g0(e,t,n){var i=xt();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Es(e)?Wh(t,n):(n=vc(e,t,n,i),n!==null&&(vt(n,e,i),Ih(n,t,i)))}function Jh(e,t,n){var i=xt();ia(e,t,n,i)}function ia(e,t,n,i){var r={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Es(e))Wh(t,r);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var d=t.lastRenderedState,y=f(d,n);if(r.hasEagerState=!0,r.eagerState=y,Ot(y,d))return ns(e,t,r,0),xe===null&&ts(),!1}catch{}finally{}if(n=vc(e,t,r,i),n!==null)return vt(n,e,i),Ih(n,t,i),!0}return!1}function tr(e,t,n,i){if(i={lane:2,revertLane:Lr(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Es(e)){if(t)throw Error(s(479))}else t=vc(e,n,i,2),t!==null&&vt(t,e,2)}function Es(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function Wh(e,t){Fl=gs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ih(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,to(e,n)}}var aa={readContext:lt,use:vs,useCallback:qe,useContext:qe,useEffect:qe,useImperativeHandle:qe,useLayoutEffect:qe,useInsertionEffect:qe,useMemo:qe,useReducer:qe,useRef:qe,useState:qe,useDebugValue:qe,useDeferredValue:qe,useTransition:qe,useSyncExternalStore:qe,useId:qe,useHostTransitionStatus:qe,useFormState:qe,useActionState:qe,useOptimistic:qe,useMemoCache:qe,useCacheRefresh:qe};aa.useEffectEvent=qe;var Fh={readContext:lt,use:vs,useCallback:function(e,t){return ft().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:Rh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Ss(4194308,4,qh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ss(4194308,4,e,t)},useInsertionEffect:function(e,t){Ss(4,2,e,t)},useMemo:function(e,t){var n=ft();t=t===void 0?null:t;var i=e();if(yl){_n(!0);try{e()}finally{_n(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=ft();if(n!==void 0){var r=n(t);if(yl){_n(!0);try{n(t)}finally{_n(!1)}}}else r=t;return i.memoizedState=i.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},i.queue=e,e=e.dispatch=g0.bind(null,fe,e),[i.memoizedState,e]},useRef:function(e){var t=ft();return e={current:e},t.memoizedState=e},useState:function(e){e=Zc(e);var t=e.queue,n=Jh.bind(null,fe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ic,useDeferredValue:function(e,t){var n=ft();return Fc(n,e,t)},useTransition:function(){var e=Zc(!1);return e=Gh.bind(null,fe,e.queue,!0,!1),ft().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=fe,r=ft();if(be){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),xe===null)throw Error(s(349));(ye&127)!==0||bh(i,t,n)}r.memoizedState=n;var f={value:n,getSnapshot:t};return r.queue=f,Rh(Th.bind(null,i,f,e),[e]),i.flags|=2048,ei(9,{destroy:void 0},Sh.bind(null,i,f,n,t),null),n},useId:function(){var e=ft(),t=xe.identifierPrefix;if(be){var n=Ft,i=It;n=(i&~(1<<32-At(i)-1)).toString(32)+n,t="_"+t+"R_"+n,n=ps++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=c0++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:er,useFormState:zh,useActionState:zh,useOptimistic:function(e){var t=ft();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=tr.bind(null,fe,!0,n),n.dispatch=t,[e,t]},useMemoCache:Vc,useCacheRefresh:function(){return ft().memoizedState=m0.bind(null,fe)},useEffectEvent:function(e){var t=ft(),n={impl:e};return t.memoizedState=n,function(){if((Ee&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},nr={readContext:lt,use:vs,useCallback:Yh,useContext:lt,useEffect:Wc,useImperativeHandle:Hh,useInsertionEffect:Bh,useLayoutEffect:kh,useMemo:$h,useReducer:bs,useRef:Uh,useState:function(){return bs(hn)},useDebugValue:Ic,useDeferredValue:function(e,t){var n=Ke();return Kh(n,Me.memoizedState,e,t)},useTransition:function(){var e=bs(hn)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:la(e),t]},useSyncExternalStore:vh,useId:Xh,useHostTransitionStatus:er,useFormState:xh,useActionState:xh,useOptimistic:function(e,t){var n=Ke();return Ah(n,Me,e,t)},useMemoCache:Vc,useCacheRefresh:Zh};nr.useEffectEvent=jh;var Ph={readContext:lt,use:vs,useCallback:Yh,useContext:lt,useEffect:Wc,useImperativeHandle:Hh,useInsertionEffect:Bh,useLayoutEffect:kh,useMemo:$h,useReducer:Xc,useRef:Uh,useState:function(){return Xc(hn)},useDebugValue:Ic,useDeferredValue:function(e,t){var n=Ke();return Me===null?Fc(n,e,t):Kh(n,Me.memoizedState,e,t)},useTransition:function(){var e=Xc(hn)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:la(e),t]},useSyncExternalStore:vh,useId:Xh,useHostTransitionStatus:er,useFormState:Lh,useActionState:Lh,useOptimistic:function(e,t){var n=Ke();return Me!==null?Ah(n,Me,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Vc,useCacheRefresh:Zh};Ph.useEffectEvent=jh;function lr(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:v({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ir={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=xt(),r=Un(i);r.payload=t,n!=null&&(r.callback=n),t=Rn(e,r,i),t!==null&&(vt(t,e,i),Pi(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=xt(),r=Un(i);r.tag=1,r.payload=t,n!=null&&(r.callback=n),t=Rn(e,r,i),t!==null&&(vt(t,e,i),Pi(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=xt(),i=Un(n);i.tag=2,t!=null&&(i.callback=t),t=Rn(e,i,n),t!==null&&(vt(t,e,n),Pi(t,e,n))}};function ed(e,t,n,i,r,f,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,f,d):t.prototype&&t.prototype.isPureReactComponent?!Vi(n,i)||!Vi(r,f):!0}function td(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&ir.enqueueReplaceState(t,t.state,null)}function vl(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=v({},n));for(var r in e)n[r]===void 0&&(n[r]=e[r])}return n}function nd(e){es(e)}function ld(e){console.error(e)}function id(e){es(e)}function ws(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function ad(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function ar(e,t,n){return n=Un(n),n.tag=3,n.payload={element:null},n.callback=function(){ws(e,t)},n}function sd(e){return e=Un(e),e.tag=3,e}function ud(e,t,n,i){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var f=i.value;e.payload=function(){return r(f)},e.callback=function(){ad(t,n,i)}}var d=n.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){ad(t,n,i),typeof r!="function"&&(Yn===null?Yn=new Set([this]):Yn.add(this));var y=i.stack;this.componentDidCatch(i.value,{componentStack:y!==null?y:""})})}function p0(e,t,n,i,r){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&Ql(t,n,r,!0),n=Nt.current,n!==null){switch(n.tag){case 31:case 13:return Yt===null?Rs():n.alternate===null&&He===0&&(He=3),n.flags&=-257,n.flags|=65536,n.lanes=r,i===fs?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),zr(e,i,r)),!1;case 22:return n.flags|=65536,i===fs?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),zr(e,i,r)),!1}throw Error(s(435,n.tag))}return zr(e,i,r),Rs(),!1}if(be)return t=Nt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,i!==Ac&&(e=Error(s(422),{cause:i}),Zi(Bt(e,n)))):(i!==Ac&&(t=Error(s(423),{cause:i}),Zi(Bt(t,n))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,i=Bt(i,n),r=ar(e.stateNode,i,r),Rc(e,r),He!==4&&(He=2)),!1;var f=Error(s(520),{cause:i});if(f=Bt(f,n),da===null?da=[f]:da.push(f),He!==4&&(He=2),t===null)return!0;i=Bt(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=r&-r,n.lanes|=e,e=ar(n.stateNode,i,e),Rc(n,e),!1;case 1:if(t=n.type,f=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Yn===null||!Yn.has(f))))return n.flags|=65536,r&=-r,n.lanes|=r,r=sd(r),ud(r,e,n,i),Rc(n,r),!1}n=n.return}while(n!==null);return!1}var sr=Error(s(461)),Ze=!1;function it(e,t,n,i){t.child=e===null?oh(t,null,n,i):pl(t,e.child,n,i)}function cd(e,t,n,i,r){n=n.render;var f=t.ref;if("ref"in i){var d={};for(var y in i)y!=="ref"&&(d[y]=i[y])}else d=i;return hl(t),i=Yc(e,t,n,d,f,r),y=$c(),e!==null&&!Ze?(Kc(e,t,r),dn(e,t,r)):(be&&y&&Ec(t),t.flags|=1,it(e,t,i,r),t.child)}function rd(e,t,n,i,r){if(e===null){var f=n.type;return typeof f=="function"&&!bc(f)&&f.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=f,fd(e,t,f,i,r)):(e=is(n.type,null,i,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!mr(e,r)){var d=f.memoizedProps;if(n=n.compare,n=n!==null?n:Vi,n(d,i)&&e.ref===t.ref)return dn(e,t,r)}return t.flags|=1,e=un(f,i),e.ref=t.ref,e.return=t,t.child=e}function fd(e,t,n,i,r){if(e!==null){var f=e.memoizedProps;if(Vi(f,i)&&e.ref===t.ref)if(Ze=!1,t.pendingProps=i=f,mr(e,r))(e.flags&131072)!==0&&(Ze=!0);else return t.lanes=e.lanes,dn(e,t,r)}return ur(e,t,n,i,r)}function od(e,t,n,i){var r=i.children,f=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(f=f!==null?f.baseLanes|n:n,e!==null){for(i=t.child=e.child,r=0;i!==null;)r=r|i.lanes|i.childLanes,i=i.sibling;i=r&~f}else i=0,t.child=null;return hd(e,t,f,n,i)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&cs(t,f!==null?f.cachePool:null),f!==null?mh(t,f):Bc(),gh(t);else return i=t.lanes=536870912,hd(e,t,f!==null?f.baseLanes|n:n,n,i)}else f!==null?(cs(t,f.cachePool),mh(t,f),Bn(),t.memoizedState=null):(e!==null&&cs(t,null),Bc(),Bn());return it(e,t,r,n),t.child}function sa(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function hd(e,t,n,i,r){var f=xc();return f=f===null?null:{parent:Qe._currentValue,pool:f},t.memoizedState={baseLanes:n,cachePool:f},e!==null&&cs(t,null),Bc(),gh(t),e!==null&&Ql(e,t,i,!0),t.childLanes=r,null}function As(e,t){return t=_s({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function dd(e,t,n){return pl(t,e.child,null,n),e=As(t,t.pendingProps),e.flags|=2,Mt(t),t.memoizedState=null,e}function y0(e,t,n){var i=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(be){if(i.mode==="hidden")return e=As(t,i),t.lanes=536870912,sa(null,e);if(qc(t),(e=Le)?(e=Om(e,Ht),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Cn!==null?{id:It,overflow:Ft}:null,retryLane:536870912,hydrationErrors:null},n=Wo(e),n.return=t,t.child=n,nt=t,Le=null)):e=null,e===null)throw xn(t);return t.lanes=536870912,null}return As(t,i)}var f=e.memoizedState;if(f!==null){var d=f.dehydrated;if(qc(t),r)if(t.flags&256)t.flags&=-257,t=dd(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Ze||Ql(e,t,n,!1),r=(n&e.childLanes)!==0,Ze||r){if(i=xe,i!==null&&(d=no(i,n),d!==0&&d!==f.retryLane))throw f.retryLane=d,cl(e,d),vt(i,e,d),sr;Rs(),t=dd(e,t,n)}else e=f.treeContext,Le=$t(d.nextSibling),nt=t,be=!0,zn=null,Ht=!1,e!==null&&Po(t,e),t=As(t,i),t.flags|=4096;return t}return e=un(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Os(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function ur(e,t,n,i,r){return hl(t),n=Yc(e,t,n,i,void 0,r),i=$c(),e!==null&&!Ze?(Kc(e,t,r),dn(e,t,r)):(be&&i&&Ec(t),t.flags|=1,it(e,t,n,r),t.child)}function md(e,t,n,i,r,f){return hl(t),t.updateQueue=null,n=yh(t,i,n,r),ph(e),i=$c(),e!==null&&!Ze?(Kc(e,t,f),dn(e,t,f)):(be&&i&&Ec(t),t.flags|=1,it(e,t,n,f),t.child)}function gd(e,t,n,i,r){if(hl(t),t.stateNode===null){var f=$l,d=n.contextType;typeof d=="object"&&d!==null&&(f=lt(d)),f=new n(i,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=ir,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=i,f.state=t.memoizedState,f.refs={},Lc(t),d=n.contextType,f.context=typeof d=="object"&&d!==null?lt(d):$l,f.state=t.memoizedState,d=n.getDerivedStateFromProps,typeof d=="function"&&(lr(t,n,d,i),f.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(d=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),d!==f.state&&ir.enqueueReplaceState(f,f.state,null),ta(t,i,f,r),ea(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){f=t.stateNode;var y=t.memoizedProps,T=vl(n,y);f.props=T;var z=f.context,B=n.contextType;d=$l,typeof B=="object"&&B!==null&&(d=lt(B));var H=n.getDerivedStateFromProps;B=typeof H=="function"||typeof f.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,B||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(y||z!==d)&&td(t,f,i,d),Ln=!1;var L=t.memoizedState;f.state=L,ta(t,i,f,r),ea(),z=t.memoizedState,y||L!==z||Ln?(typeof H=="function"&&(lr(t,n,H,i),z=t.memoizedState),(T=Ln||ed(t,n,T,i,L,z,d))?(B||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=z),f.props=i,f.state=z,f.context=d,i=T):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{f=t.stateNode,Uc(e,t),d=t.memoizedProps,B=vl(n,d),f.props=B,H=t.pendingProps,L=f.context,z=n.contextType,T=$l,typeof z=="object"&&z!==null&&(T=lt(z)),y=n.getDerivedStateFromProps,(z=typeof y=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(d!==H||L!==T)&&td(t,f,i,T),Ln=!1,L=t.memoizedState,f.state=L,ta(t,i,f,r),ea();var j=t.memoizedState;d!==H||L!==j||Ln||e!==null&&e.dependencies!==null&&ss(e.dependencies)?(typeof y=="function"&&(lr(t,n,y,i),j=t.memoizedState),(B=Ln||ed(t,n,B,i,L,j,T)||e!==null&&e.dependencies!==null&&ss(e.dependencies))?(z||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(i,j,T),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(i,j,T)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||d===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=j),f.props=i,f.state=j,f.context=T,i=B):(typeof f.componentDidUpdate!="function"||d===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),i=!1)}return f=i,Os(e,t),i=(t.flags&128)!==0,f||i?(f=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&i?(t.child=pl(t,e.child,null,r),t.child=pl(t,null,n,r)):it(e,t,n,r),t.memoizedState=f.state,e=t.child):e=dn(e,t,r),e}function pd(e,t,n,i){return fl(),t.flags|=256,it(e,t,n,i),t.child}var cr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function rr(e){return{baseLanes:e,cachePool:ah()}}function fr(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=zt),e}function yd(e,t,n){var i=t.pendingProps,r=!1,f=(t.flags&128)!==0,d;if((d=f)||(d=e!==null&&e.memoizedState===null?!1:($e.current&2)!==0),d&&(r=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(be){if(r?jn(t):Bn(),(e=Le)?(e=Om(e,Ht),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Cn!==null?{id:It,overflow:Ft}:null,retryLane:536870912,hydrationErrors:null},n=Wo(e),n.return=t,t.child=n,nt=t,Le=null)):e=null,e===null)throw xn(t);return Qr(e)?t.lanes=32:t.lanes=536870912,null}var y=i.children;return i=i.fallback,r?(Bn(),r=t.mode,y=_s({mode:"hidden",children:y},r),i=rl(i,r,n,null),y.return=t,i.return=t,y.sibling=i,t.child=y,i=t.child,i.memoizedState=rr(n),i.childLanes=fr(e,d,n),t.memoizedState=cr,sa(null,i)):(jn(t),or(t,y))}var T=e.memoizedState;if(T!==null&&(y=T.dehydrated,y!==null)){if(f)t.flags&256?(jn(t),t.flags&=-257,t=hr(e,t,n)):t.memoizedState!==null?(Bn(),t.child=e.child,t.flags|=128,t=null):(Bn(),y=i.fallback,r=t.mode,i=_s({mode:"visible",children:i.children},r),y=rl(y,r,n,null),y.flags|=2,i.return=t,y.return=t,i.sibling=y,t.child=i,pl(t,e.child,null,n),i=t.child,i.memoizedState=rr(n),i.childLanes=fr(e,d,n),t.memoizedState=cr,t=sa(null,i));else if(jn(t),Qr(y)){if(d=y.nextSibling&&y.nextSibling.dataset,d)var z=d.dgst;d=z,i=Error(s(419)),i.stack="",i.digest=d,Zi({value:i,source:null,stack:null}),t=hr(e,t,n)}else if(Ze||Ql(e,t,n,!1),d=(n&e.childLanes)!==0,Ze||d){if(d=xe,d!==null&&(i=no(d,n),i!==0&&i!==T.retryLane))throw T.retryLane=i,cl(e,i),vt(d,e,i),sr;Vr(y)||Rs(),t=hr(e,t,n)}else Vr(y)?(t.flags|=192,t.child=e.child,t=null):(e=T.treeContext,Le=$t(y.nextSibling),nt=t,be=!0,zn=null,Ht=!1,e!==null&&Po(t,e),t=or(t,i.children),t.flags|=4096);return t}return r?(Bn(),y=i.fallback,r=t.mode,T=e.child,z=T.sibling,i=un(T,{mode:"hidden",children:i.children}),i.subtreeFlags=T.subtreeFlags&65011712,z!==null?y=un(z,y):(y=rl(y,r,n,null),y.flags|=2),y.return=t,i.return=t,i.sibling=y,t.child=i,sa(null,i),i=t.child,y=e.child.memoizedState,y===null?y=rr(n):(r=y.cachePool,r!==null?(T=Qe._currentValue,r=r.parent!==T?{parent:T,pool:T}:r):r=ah(),y={baseLanes:y.baseLanes|n,cachePool:r}),i.memoizedState=y,i.childLanes=fr(e,d,n),t.memoizedState=cr,sa(e.child,i)):(jn(t),n=e.child,e=n.sibling,n=un(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=n,t.memoizedState=null,n)}function or(e,t){return t=_s({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function _s(e,t){return e=_t(22,e,null,t),e.lanes=0,e}function hr(e,t,n){return pl(t,e.child,null,n),e=or(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function vd(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Nc(e.return,t,n)}function dr(e,t,n,i,r,f){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:r,treeForkCount:f}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=i,d.tail=n,d.tailMode=r,d.treeForkCount=f)}function bd(e,t,n){var i=t.pendingProps,r=i.revealOrder,f=i.tail;i=i.children;var d=$e.current,y=(d&2)!==0;if(y?(d=d&1|2,t.flags|=128):d&=1,J($e,d),it(e,t,i,n),i=be?Xi:0,!y&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&vd(e,n,t);else if(e.tag===19)vd(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(r){case"forwards":for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&&ms(e)===null&&(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),dr(t,!1,r,n,f,i);break;case"backwards":case"unstable_legacy-backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&ms(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}dr(t,!0,n,null,f,i);break;case"together":dr(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function dn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Hn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ql(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=un(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=un(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function mr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ss(e)))}function v0(e,t,n){switch(t.tag){case 3:rt(t,t.stateNode.containerInfo),Dn(t,Qe,e.memoizedState.cache),fl();break;case 27:case 5:Di(t);break;case 4:rt(t,t.stateNode.containerInfo);break;case 10:Dn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,qc(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(jn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?yd(e,t,n):(jn(t),e=dn(e,t,n),e!==null?e.sibling:null);jn(t);break;case 19:var r=(e.flags&128)!==0;if(i=(n&t.childLanes)!==0,i||(Ql(e,t,n,!1),i=(n&t.childLanes)!==0),r){if(i)return bd(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),J($e,$e.current),i)break;return null;case 22:return t.lanes=0,od(e,t,n,t.pendingProps);case 24:Dn(t,Qe,e.memoizedState.cache)}return dn(e,t,n)}function Sd(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ze=!0;else{if(!mr(e,n)&&(t.flags&128)===0)return Ze=!1,v0(e,t,n);Ze=(e.flags&131072)!==0}else Ze=!1,be&&(t.flags&1048576)!==0&&Fo(t,Xi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=ml(t.elementType),t.type=e,typeof e=="function")bc(e)?(i=vl(e,i),t.tag=1,t=gd(null,t,e,i,n)):(t.tag=0,t=ur(null,t,e,i,n));else{if(e!=null){var r=e.$$typeof;if(r===Q){t.tag=11,t=cd(null,t,e,i,n);break e}else if(r===k){t.tag=14,t=rd(null,t,e,i,n);break e}}throw t=we(e)||e,Error(s(306,t,""))}}return t;case 0:return ur(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,r=vl(i,t.pendingProps),gd(e,t,i,r,n);case 3:e:{if(rt(t,t.stateNode.containerInfo),e===null)throw Error(s(387));i=t.pendingProps;var f=t.memoizedState;r=f.element,Uc(e,t),ta(t,i,null,n);var d=t.memoizedState;if(i=d.cache,Dn(t,Qe,i),i!==f.cache&&Mc(t,[Qe],n,!0),ea(),i=d.element,f.isDehydrated)if(f={element:i,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=pd(e,t,i,n);break e}else if(i!==r){r=Bt(Error(s(424)),t),Zi(r),t=pd(e,t,i,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Le=$t(e.firstChild),nt=t,be=!0,zn=null,Ht=!0,n=oh(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(fl(),i===r){t=dn(e,t,n);break e}it(e,t,i,n)}t=t.child}return t;case 26:return Os(e,t),e===null?(n=xm(t.type,null,t.pendingProps,null))?t.memoizedState=n:be||(n=t.type,e=t.pendingProps,i=$s(me.current).createElement(n),i[tt]=t,i[ht]=e,at(i,n,e),Pe(i),t.stateNode=i):t.memoizedState=xm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Di(t),e===null&&be&&(i=t.stateNode=Mm(t.type,t.pendingProps,me.current),nt=t,Ht=!0,r=Le,Vn(t.type)?(Xr=r,Le=$t(i.firstChild)):Le=r),it(e,t,t.pendingProps.children,n),Os(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&be&&((r=i=Le)&&(i=Z0(i,t.type,t.pendingProps,Ht),i!==null?(t.stateNode=i,nt=t,Le=$t(i.firstChild),Ht=!1,r=!0):r=!1),r||xn(t)),Di(t),r=t.type,f=t.pendingProps,d=e!==null?e.memoizedProps:null,i=f.children,$r(r,f)?i=null:d!==null&&$r(r,d)&&(t.flags|=32),t.memoizedState!==null&&(r=Yc(e,t,r0,null,null,n),Ta._currentValue=r),Os(e,t),it(e,t,i,n),t.child;case 6:return e===null&&be&&((e=n=Le)&&(n=J0(n,t.pendingProps,Ht),n!==null?(t.stateNode=n,nt=t,Le=null,e=!0):e=!1),e||xn(t)),null;case 13:return yd(e,t,n);case 4:return rt(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=pl(t,null,i,n):it(e,t,i,n),t.child;case 11:return cd(e,t,t.type,t.pendingProps,n);case 7:return it(e,t,t.pendingProps,n),t.child;case 8:return it(e,t,t.pendingProps.children,n),t.child;case 12:return it(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,Dn(t,t.type,i.value),it(e,t,i.children,n),t.child;case 9:return r=t.type._context,i=t.pendingProps.children,hl(t),r=lt(r),i=i(r),t.flags|=1,it(e,t,i,n),t.child;case 14:return rd(e,t,t.type,t.pendingProps,n);case 15:return fd(e,t,t.type,t.pendingProps,n);case 19:return bd(e,t,n);case 31:return y0(e,t,n);case 22:return od(e,t,n,t.pendingProps);case 24:return hl(t),i=lt(Qe),e===null?(r=xc(),r===null&&(r=xe,f=Cc(),r.pooledCache=f,f.refCount++,f!==null&&(r.pooledCacheLanes|=n),r=f),t.memoizedState={parent:i,cache:r},Lc(t),Dn(t,Qe,r)):((e.lanes&n)!==0&&(Uc(e,t),ta(t,null,null,n),ea()),r=e.memoizedState,f=t.memoizedState,r.parent!==i?(r={parent:i,cache:i},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Dn(t,Qe,i)):(i=f.cache,Dn(t,Qe,i),i!==r.cache&&Mc(t,[Qe],n,!0))),it(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function mn(e){e.flags|=4}function gr(e,t,n,i,r){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(Xd())e.flags|=8192;else throw gl=fs,Dc}else e.flags&=-16777217}function Td(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!jm(t))if(Xd())e.flags|=8192;else throw gl=fs,Dc}function Ns(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Pf():536870912,e.lanes|=t,ii|=t)}function ua(e,t){if(!be)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Ue(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags&65011712,i|=r.flags&65011712,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags,i|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function b0(e,t,n){var i=t.pendingProps;switch(wc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(t),null;case 1:return Ue(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),fn(Qe),Ye(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Vl(t)?mn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Oc())),Ue(t),null;case 26:var r=t.type,f=t.memoizedState;return e===null?(mn(t),f!==null?(Ue(t),Td(t,f)):(Ue(t),gr(t,r,null,i,n))):f?f!==e.memoizedState?(mn(t),Ue(t),Td(t,f)):(Ue(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&mn(t),Ue(t),gr(t,r,e,i,n)),null;case 27:if(ka(t),n=me.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&mn(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return Ue(t),null}e=F.current,Vl(t)?eh(t):(e=Mm(r,i,n),t.stateNode=e,mn(t))}return Ue(t),null;case 5:if(ka(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&mn(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return Ue(t),null}if(f=F.current,Vl(t))eh(t);else{var d=$s(me.current);switch(f){case 1:f=d.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:f=d.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":f=d.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":f=d.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":f=d.createElement("div"),f.innerHTML="<script><\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof i.is=="string"?d.createElement("select",{is:i.is}):d.createElement("select"),i.multiple?f.multiple=!0:i.size&&(f.size=i.size);break;default:f=typeof i.is=="string"?d.createElement(r,{is:i.is}):d.createElement(r)}}f[tt]=t,f[ht]=i;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)f.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=f;e:switch(at(f,r,i),r){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&mn(t)}}return Ue(t),gr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&mn(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(s(166));if(e=me.current,Vl(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,r=nt,r!==null)switch(r.tag){case 27:case 5:i=r.memoizedProps}e[tt]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||ym(e.nodeValue,n)),e||xn(t,!0)}else e=$s(e).createTextNode(i),e[tt]=t,t.stateNode=e}return Ue(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=Vl(t),n!==null){if(e===null){if(!i)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[tt]=t}else fl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),e=!1}else n=Oc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Mt(t),t):(Mt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Ue(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=Vl(t),i!==null&&i.dehydrated!==null){if(e===null){if(!r)throw Error(s(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(s(317));r[tt]=t}else fl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),r=!1}else r=Oc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(Mt(t),t):(Mt(t),null)}return Mt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=i!==null,e=e!==null&&e.memoizedState!==null,n&&(i=t.child,r=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(r=i.alternate.memoizedState.cachePool.pool),f=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(f=i.memoizedState.cachePool.pool),f!==r&&(i.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ns(t,t.updateQueue),Ue(t),null);case 4:return Ye(),e===null&&Br(t.stateNode.containerInfo),Ue(t),null;case 10:return fn(t.type),Ue(t),null;case 19:if(Y($e),i=t.memoizedState,i===null)return Ue(t),null;if(r=(t.flags&128)!==0,f=i.rendering,f===null)if(r)ua(i,!1);else{if(He!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=ms(e),f!==null){for(t.flags|=128,ua(i,!1),e=f.updateQueue,t.updateQueue=e,Ns(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Jo(n,e),n=n.sibling;return J($e,$e.current&1|2),be&&cn(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Et()>Ds&&(t.flags|=128,r=!0,ua(i,!1),t.lanes=4194304)}else{if(!r)if(e=ms(f),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Ns(t,e),ua(i,!0),i.tail===null&&i.tailMode==="hidden"&&!f.alternate&&!be)return Ue(t),null}else 2*Et()-i.renderingStartTime>Ds&&n!==536870912&&(t.flags|=128,r=!0,ua(i,!1),t.lanes=4194304);i.isBackwards?(f.sibling=t.child,t.child=f):(e=i.last,e!==null?e.sibling=f:t.child=f,i.last=f)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Et(),e.sibling=null,n=$e.current,J($e,r?n&1|2:n&1),be&&cn(t,i.treeForkCount),e):(Ue(t),null);case 22:case 23:return Mt(t),kc(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(n&536870912)!==0&&(t.flags&128)===0&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),n=t.updateQueue,n!==null&&Ns(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&Y(dl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),fn(Qe),Ue(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function S0(e,t){switch(wc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fn(Qe),Ye(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ka(t),null;case 31:if(t.memoizedState!==null){if(Mt(t),t.alternate===null)throw Error(s(340));fl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Mt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));fl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y($e),null;case 4:return Ye(),null;case 10:return fn(t.type),null;case 22:case 23:return Mt(t),kc(),e!==null&&Y(dl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return fn(Qe),null;case 25:return null;default:return null}}function Ed(e,t){switch(wc(t),t.tag){case 3:fn(Qe),Ye();break;case 26:case 27:case 5:ka(t);break;case 4:Ye();break;case 31:t.memoizedState!==null&&Mt(t);break;case 13:Mt(t);break;case 19:Y($e);break;case 10:fn(t.type);break;case 22:case 23:Mt(t),kc(),e!==null&&Y(dl);break;case 24:fn(Qe)}}function ca(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var r=i.next;n=r;do{if((n.tag&e)===e){i=void 0;var f=n.create,d=n.inst;i=f(),d.destroy=i}n=n.next}while(n!==r)}}catch(y){_e(t,t.return,y)}}function kn(e,t,n){try{var i=t.updateQueue,r=i!==null?i.lastEffect:null;if(r!==null){var f=r.next;i=f;do{if((i.tag&e)===e){var d=i.inst,y=d.destroy;if(y!==void 0){d.destroy=void 0,r=t;var T=n,z=y;try{z()}catch(B){_e(r,T,B)}}}i=i.next}while(i!==f)}}catch(B){_e(t,t.return,B)}}function wd(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{dh(t,n)}catch(i){_e(e,e.return,i)}}}function Ad(e,t,n){n.props=vl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){_e(e,t,i)}}function ra(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(r){_e(e,t,r)}}function Pt(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(r){_e(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){_e(e,t,r)}else n.current=null}function Od(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(r){_e(e,e.return,r)}}function pr(e,t,n){try{var i=e.stateNode;$0(i,e.type,n,t),i[ht]=t}catch(r){_e(e,e.return,r)}}function _d(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Vn(e.type)||e.tag===4}function yr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_d(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Vn(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function vr(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=an));else if(i!==4&&(i===27&&Vn(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(vr(e,t,n),e=e.sibling;e!==null;)vr(e,t,n),e=e.sibling}function Ms(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(i===27&&Vn(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Ms(e,t,n),e=e.sibling;e!==null;)Ms(e,t,n),e=e.sibling}function Nd(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);at(t,i,n),t[tt]=e,t[ht]=n}catch(f){_e(e,e.return,f)}}var gn=!1,Je=!1,br=!1,Md=typeof WeakSet=="function"?WeakSet:Set,et=null;function T0(e,t){if(e=e.containerInfo,Hr=Js,e=Ho(e),hc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var r=i.anchorOffset,f=i.focusNode;i=i.focusOffset;try{n.nodeType,f.nodeType}catch{n=null;break e}var d=0,y=-1,T=-1,z=0,B=0,H=e,L=null;t:for(;;){for(var j;H!==n||r!==0&&H.nodeType!==3||(y=d+r),H!==f||i!==0&&H.nodeType!==3||(T=d+i),H.nodeType===3&&(d+=H.nodeValue.length),(j=H.firstChild)!==null;)L=H,H=j;for(;;){if(H===e)break t;if(L===n&&++z===r&&(y=d),L===f&&++B===i&&(T=d),(j=H.nextSibling)!==null)break;H=L,L=H.parentNode}H=j}n=y===-1||T===-1?null:{start:y,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;for(Yr={focusedElem:e,selectionRange:n},Js=!1,et=t;et!==null;)if(t=et,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,et=e;else for(;et!==null;){switch(t=et,f=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)r=e[n],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,n=t,r=f.memoizedProps,f=f.memoizedState,i=n.stateNode;try{var I=vl(n.type,r);e=i.getSnapshotBeforeUpdate(I,f),i.__reactInternalSnapshotBeforeUpdate=e}catch(ie){_e(n,n.return,ie)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Gr(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Gr(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,et=e;break}et=t.return}}function Cd(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:yn(e,n),i&4&&ca(5,n);break;case 1:if(yn(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(d){_e(n,n.return,d)}else{var r=vl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){_e(n,n.return,d)}}i&64&&wd(n),i&512&&ra(n,n.return);break;case 3:if(yn(e,n),i&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{dh(e,t)}catch(d){_e(n,n.return,d)}}break;case 27:t===null&&i&4&&Nd(n);case 26:case 5:yn(e,n),t===null&&i&4&&Od(n),i&512&&ra(n,n.return);break;case 12:yn(e,n);break;case 31:yn(e,n),i&4&&Dd(e,n);break;case 13:yn(e,n),i&4&&Ld(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=z0.bind(null,n),W0(e,n))));break;case 22:if(i=n.memoizedState!==null||gn,!i){t=t!==null&&t.memoizedState!==null||Je,r=gn;var f=Je;gn=i,(Je=t)&&!f?vn(e,n,(n.subtreeFlags&8772)!==0):yn(e,n),gn=r,Je=f}break;case 30:break;default:yn(e,n)}}function zd(e){var t=e.alternate;t!==null&&(e.alternate=null,zd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ju(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Re=null,mt=!1;function pn(e,t,n){for(n=n.child;n!==null;)xd(e,t,n),n=n.sibling}function xd(e,t,n){if(wt&&typeof wt.onCommitFiberUnmount=="function")try{wt.onCommitFiberUnmount(Li,n)}catch{}switch(n.tag){case 26:Je||Pt(n,t),pn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Je||Pt(n,t);var i=Re,r=mt;Vn(n.type)&&(Re=n.stateNode,mt=!1),pn(e,t,n),va(n.stateNode),Re=i,mt=r;break;case 5:Je||Pt(n,t);case 6:if(i=Re,r=mt,Re=null,pn(e,t,n),Re=i,mt=r,Re!==null)if(mt)try{(Re.nodeType===9?Re.body:Re.nodeName==="HTML"?Re.ownerDocument.body:Re).removeChild(n.stateNode)}catch(f){_e(n,t,f)}else try{Re.removeChild(n.stateNode)}catch(f){_e(n,t,f)}break;case 18:Re!==null&&(mt?(e=Re,wm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),hi(e)):wm(Re,n.stateNode));break;case 4:i=Re,r=mt,Re=n.stateNode.containerInfo,mt=!0,pn(e,t,n),Re=i,mt=r;break;case 0:case 11:case 14:case 15:kn(2,n,t),Je||kn(4,n,t),pn(e,t,n);break;case 1:Je||(Pt(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&Ad(n,t,i)),pn(e,t,n);break;case 21:pn(e,t,n);break;case 22:Je=(i=Je)||n.memoizedState!==null,pn(e,t,n),Je=i;break;default:pn(e,t,n)}}function Dd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{hi(e)}catch(n){_e(t,t.return,n)}}}function Ld(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{hi(e)}catch(n){_e(t,t.return,n)}}function E0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Md),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Md),t;default:throw Error(s(435,e.tag))}}function Cs(e,t){var n=E0(e);t.forEach(function(i){if(!n.has(i)){n.add(i);var r=x0.bind(null,e,i);i.then(r,r)}})}function gt(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var r=n[i],f=e,d=t,y=d;e:for(;y!==null;){switch(y.tag){case 27:if(Vn(y.type)){Re=y.stateNode,mt=!1;break e}break;case 5:Re=y.stateNode,mt=!1;break e;case 3:case 4:Re=y.stateNode.containerInfo,mt=!0;break e}y=y.return}if(Re===null)throw Error(s(160));xd(f,d,r),Re=null,mt=!1,f=r.alternate,f!==null&&(f.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ud(t,e),t=t.sibling}var Xt=null;function Ud(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:gt(t,e),pt(e),i&4&&(kn(3,e,e.return),ca(3,e),kn(5,e,e.return));break;case 1:gt(t,e),pt(e),i&512&&(Je||n===null||Pt(n,n.return)),i&64&&gn&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var r=Xt;if(gt(t,e),pt(e),i&512&&(Je||n===null||Pt(n,n.return)),i&4){var f=n!==null?n.memoizedState:null;if(i=e.memoizedState,n===null)if(i===null)if(e.stateNode===null){e:{i=e.type,n=e.memoizedProps,r=r.ownerDocument||r;t:switch(i){case"title":f=r.getElementsByTagName("title")[0],(!f||f[ji]||f[tt]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=r.createElement(i),r.head.insertBefore(f,r.querySelector("head > title"))),at(f,i,n),f[tt]=e,Pe(f),i=f;break e;case"link":var d=Um("link","href",r).get(i+(n.href||""));if(d){for(var y=0;y<d.length;y++)if(f=d[y],f.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&f.getAttribute("rel")===(n.rel==null?null:n.rel)&&f.getAttribute("title")===(n.title==null?null:n.title)&&f.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){d.splice(y,1);break t}}f=r.createElement(i),at(f,i,n),r.head.appendChild(f);break;case"meta":if(d=Um("meta","content",r).get(i+(n.content||""))){for(y=0;y<d.length;y++)if(f=d[y],f.getAttribute("content")===(n.content==null?null:""+n.content)&&f.getAttribute("name")===(n.name==null?null:n.name)&&f.getAttribute("property")===(n.property==null?null:n.property)&&f.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&f.getAttribute("charset")===(n.charSet==null?null:n.charSet)){d.splice(y,1);break t}}f=r.createElement(i),at(f,i,n),r.head.appendChild(f);break;default:throw Error(s(468,i))}f[tt]=e,Pe(f),i=f}e.stateNode=i}else Rm(r,e.type,e.stateNode);else e.stateNode=Lm(r,i,e.memoizedProps);else f!==i?(f===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):f.count--,i===null?Rm(r,e.type,e.stateNode):Lm(r,i,e.memoizedProps)):i===null&&e.stateNode!==null&&pr(e,e.memoizedProps,n.memoizedProps)}break;case 27:gt(t,e),pt(e),i&512&&(Je||n===null||Pt(n,n.return)),n!==null&&i&4&&pr(e,e.memoizedProps,n.memoizedProps);break;case 5:if(gt(t,e),pt(e),i&512&&(Je||n===null||Pt(n,n.return)),e.flags&32){r=e.stateNode;try{Rl(r,"")}catch(I){_e(e,e.return,I)}}i&4&&e.stateNode!=null&&(r=e.memoizedProps,pr(e,r,n!==null?n.memoizedProps:r)),i&1024&&(br=!0);break;case 6:if(gt(t,e),pt(e),i&4){if(e.stateNode===null)throw Error(s(162));i=e.memoizedProps,n=e.stateNode;try{n.nodeValue=i}catch(I){_e(e,e.return,I)}}break;case 3:if(Vs=null,r=Xt,Xt=Ks(t.containerInfo),gt(t,e),Xt=r,pt(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{hi(t.containerInfo)}catch(I){_e(e,e.return,I)}br&&(br=!1,Rd(e));break;case 4:i=Xt,Xt=Ks(e.stateNode.containerInfo),gt(t,e),pt(e),Xt=i;break;case 12:gt(t,e),pt(e);break;case 31:gt(t,e),pt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Cs(e,i)));break;case 13:gt(t,e),pt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(xs=Et()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Cs(e,i)));break;case 22:r=e.memoizedState!==null;var T=n!==null&&n.memoizedState!==null,z=gn,B=Je;if(gn=z||r,Je=B||T,gt(t,e),Je=B,gn=z,pt(e),i&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(n===null||T||gn||Je||bl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){T=n=t;try{if(f=T.stateNode,r)d=f.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{y=T.stateNode;var H=T.memoizedProps.style,L=H!=null&&H.hasOwnProperty("display")?H.display:null;y.style.display=L==null||typeof L=="boolean"?"":(""+L).trim()}}catch(I){_e(T,T.return,I)}}}else if(t.tag===6){if(n===null){T=t;try{T.stateNode.nodeValue=r?"":T.memoizedProps}catch(I){_e(T,T.return,I)}}}else if(t.tag===18){if(n===null){T=t;try{var j=T.stateNode;r?Am(j,!0):Am(T.stateNode,!1)}catch(I){_e(T,T.return,I)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,Cs(e,n))));break;case 19:gt(t,e),pt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Cs(e,i)));break;case 30:break;case 21:break;default:gt(t,e),pt(e)}}function pt(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(_d(i)){n=i;break}i=i.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var r=n.stateNode,f=yr(e);Ms(e,f,r);break;case 5:var d=n.stateNode;n.flags&32&&(Rl(d,""),n.flags&=-33);var y=yr(e);Ms(e,y,d);break;case 3:case 4:var T=n.stateNode.containerInfo,z=yr(e);vr(e,z,T);break;default:throw Error(s(161))}}catch(B){_e(e,e.return,B)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Rd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Rd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function yn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Cd(e,t.alternate,t),t=t.sibling}function bl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:kn(4,t,t.return),bl(t);break;case 1:Pt(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Ad(t,t.return,n),bl(t);break;case 27:va(t.stateNode);case 26:case 5:Pt(t,t.return),bl(t);break;case 22:t.memoizedState===null&&bl(t);break;case 30:bl(t);break;default:bl(t)}e=e.sibling}}function vn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,r=e,f=t,d=f.flags;switch(f.tag){case 0:case 11:case 15:vn(r,f,n),ca(4,f);break;case 1:if(vn(r,f,n),i=f,r=i.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(z){_e(i,i.return,z)}if(i=f,r=i.updateQueue,r!==null){var y=i.stateNode;try{var T=r.shared.hiddenCallbacks;if(T!==null)for(r.shared.hiddenCallbacks=null,r=0;r<T.length;r++)hh(T[r],y)}catch(z){_e(i,i.return,z)}}n&&d&64&&wd(f),ra(f,f.return);break;case 27:Nd(f);case 26:case 5:vn(r,f,n),n&&i===null&&d&4&&Od(f),ra(f,f.return);break;case 12:vn(r,f,n);break;case 31:vn(r,f,n),n&&d&4&&Dd(r,f);break;case 13:vn(r,f,n),n&&d&4&&Ld(r,f);break;case 22:f.memoizedState===null&&vn(r,f,n),ra(f,f.return);break;case 30:break;default:vn(r,f,n)}t=t.sibling}}function Sr(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Ji(n))}function Tr(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ji(e))}function Zt(e,t,n,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)jd(e,t,n,i),t=t.sibling}function jd(e,t,n,i){var r=t.flags;switch(t.tag){case 0:case 11:case 15:Zt(e,t,n,i),r&2048&&ca(9,t);break;case 1:Zt(e,t,n,i);break;case 3:Zt(e,t,n,i),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ji(e)));break;case 12:if(r&2048){Zt(e,t,n,i),e=t.stateNode;try{var f=t.memoizedProps,d=f.id,y=f.onPostCommit;typeof y=="function"&&y(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){_e(t,t.return,T)}}else Zt(e,t,n,i);break;case 31:Zt(e,t,n,i);break;case 13:Zt(e,t,n,i);break;case 23:break;case 22:f=t.stateNode,d=t.alternate,t.memoizedState!==null?f._visibility&2?Zt(e,t,n,i):fa(e,t):f._visibility&2?Zt(e,t,n,i):(f._visibility|=2,ti(e,t,n,i,(t.subtreeFlags&10256)!==0||!1)),r&2048&&Sr(d,t);break;case 24:Zt(e,t,n,i),r&2048&&Tr(t.alternate,t);break;default:Zt(e,t,n,i)}}function ti(e,t,n,i,r){for(r=r&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var f=e,d=t,y=n,T=i,z=d.flags;switch(d.tag){case 0:case 11:case 15:ti(f,d,y,T,r),ca(8,d);break;case 23:break;case 22:var B=d.stateNode;d.memoizedState!==null?B._visibility&2?ti(f,d,y,T,r):fa(f,d):(B._visibility|=2,ti(f,d,y,T,r)),r&&z&2048&&Sr(d.alternate,d);break;case 24:ti(f,d,y,T,r),r&&z&2048&&Tr(d.alternate,d);break;default:ti(f,d,y,T,r)}t=t.sibling}}function fa(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,r=i.flags;switch(i.tag){case 22:fa(n,i),r&2048&&Sr(i.alternate,i);break;case 24:fa(n,i),r&2048&&Tr(i.alternate,i);break;default:fa(n,i)}t=t.sibling}}var oa=8192;function ni(e,t,n){if(e.subtreeFlags&oa)for(e=e.child;e!==null;)Bd(e,t,n),e=e.sibling}function Bd(e,t,n){switch(e.tag){case 26:ni(e,t,n),e.flags&oa&&e.memoizedState!==null&&c1(n,Xt,e.memoizedState,e.memoizedProps);break;case 5:ni(e,t,n);break;case 3:case 4:var i=Xt;Xt=Ks(e.stateNode.containerInfo),ni(e,t,n),Xt=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=oa,oa=16777216,ni(e,t,n),oa=i):ni(e,t,n));break;default:ni(e,t,n)}}function kd(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function ha(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];et=i,Hd(i,e)}kd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)qd(e),e=e.sibling}function qd(e){switch(e.tag){case 0:case 11:case 15:ha(e),e.flags&2048&&kn(9,e,e.return);break;case 3:ha(e);break;case 12:ha(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,zs(e)):ha(e);break;default:ha(e)}}function zs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];et=i,Hd(i,e)}kd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:kn(8,t,t.return),zs(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,zs(t));break;default:zs(t)}e=e.sibling}}function Hd(e,t){for(;et!==null;){var n=et;switch(n.tag){case 0:case 11:case 15:kn(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Ji(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,et=i;else e:for(n=e;et!==null;){i=et;var r=i.sibling,f=i.return;if(zd(i),i===n){et=null;break e}if(r!==null){r.return=f,et=r;break e}et=f}}}var w0={getCacheForType:function(e){var t=lt(Qe),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return lt(Qe).controller.signal}},A0=typeof WeakMap=="function"?WeakMap:Map,Ee=0,xe=null,ge=null,ye=0,Oe=0,Ct=null,qn=!1,li=!1,Er=!1,bn=0,He=0,Hn=0,Sl=0,wr=0,zt=0,ii=0,da=null,yt=null,Ar=!1,xs=0,Yd=0,Ds=1/0,Ls=null,Yn=null,Ie=0,$n=null,ai=null,Sn=0,Or=0,_r=null,$d=null,ma=0,Nr=null;function xt(){return(Ee&2)!==0&&ye!==0?ye&-ye:D.T!==null?Lr():lo()}function Kd(){if(zt===0)if((ye&536870912)===0||be){var e=Ya;Ya<<=1,(Ya&3932160)===0&&(Ya=262144),zt=e}else zt=536870912;return e=Nt.current,e!==null&&(e.flags|=32),zt}function vt(e,t,n){(e===xe&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)&&(si(e,0),Kn(e,ye,zt,!1)),Ri(e,n),((Ee&2)===0||e!==xe)&&(e===xe&&((Ee&2)===0&&(Sl|=n),He===4&&Kn(e,ye,zt,!1)),en(e))}function Gd(e,t,n){if((Ee&6)!==0)throw Error(s(327));var i=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Ui(e,t),r=i?N0(e,t):Cr(e,t,!0),f=i;do{if(r===0){li&&!i&&Kn(e,t,0,!1);break}else{if(n=e.current.alternate,f&&!O0(n)){r=Cr(e,t,!1),f=!1;continue}if(r===2){if(f=t,e.errorRecoveryDisabledLanes&f)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var y=e;r=da;var T=y.current.memoizedState.isDehydrated;if(T&&(si(y,d).flags|=256),d=Cr(y,d,!1),d!==2){if(Er&&!T){y.errorRecoveryDisabledLanes|=f,Sl|=f,r=4;break e}f=yt,yt=r,f!==null&&(yt===null?yt=f:yt.push.apply(yt,f))}r=d}if(f=!1,r!==2)continue}}if(r===1){si(e,0),Kn(e,t,0,!0);break}e:{switch(i=e,f=r,f){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Kn(i,t,zt,!qn);break e;case 2:yt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(r=xs+300-Et(),10<r)){if(Kn(i,t,zt,!qn),Ka(i,0,!0)!==0)break e;Sn=t,i.timeoutHandle=Tm(Vd.bind(null,i,n,yt,Ls,Ar,t,zt,Sl,ii,qn,f,"Throttled",-0,0),r);break e}Vd(i,n,yt,Ls,Ar,t,zt,Sl,ii,qn,f,null,-0,0)}}break}while(!0);en(e)}function Vd(e,t,n,i,r,f,d,y,T,z,B,H,L,j){if(e.timeoutHandle=-1,H=t.subtreeFlags,H&8192||(H&16785408)===16785408){H={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:an},Bd(t,f,H);var I=(f&62914560)===f?xs-Et():(f&4194048)===f?Yd-Et():0;if(I=r1(H,I),I!==null){Sn=f,e.cancelPendingCommit=I(Pd.bind(null,e,t,f,n,i,r,d,y,T,B,H,null,L,j)),Kn(e,f,d,!z);return}}Pd(e,t,f,n,i,r,d,y,T)}function O0(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var r=n[i],f=r.getSnapshot;r=r.value;try{if(!Ot(f(),r))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Kn(e,t,n,i){t&=~wr,t&=~Sl,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var r=t;0<r;){var f=31-At(r),d=1<<f;i[f]=-1,r&=~d}n!==0&&eo(e,n,t)}function Us(){return(Ee&6)===0?(ga(0),!1):!0}function Mr(){if(ge!==null){if(Oe===0)var e=ge.return;else e=ge,rn=ol=null,Gc(e),Wl=null,Ii=0,e=ge;for(;e!==null;)Ed(e.alternate,e),e=e.return;ge=null}}function si(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,V0(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Sn=0,Mr(),xe=e,ge=n=un(e.current,null),ye=t,Oe=0,Ct=null,qn=!1,li=Ui(e,t),Er=!1,ii=zt=wr=Sl=Hn=He=0,yt=da=null,Ar=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var r=31-At(i),f=1<<r;t|=e[r],i&=~f}return bn=t,ts(),n}function Qd(e,t){fe=null,D.H=aa,t===Jl||t===rs?(t=ch(),Oe=3):t===Dc?(t=ch(),Oe=4):Oe=t===sr?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ct=t,ge===null&&(He=1,ws(e,Bt(t,e.current)))}function Xd(){var e=Nt.current;return e===null?!0:(ye&4194048)===ye?Yt===null:(ye&62914560)===ye||(ye&536870912)!==0?e===Yt:!1}function Zd(){var e=D.H;return D.H=aa,e===null?aa:e}function Jd(){var e=D.A;return D.A=w0,e}function Rs(){He=4,qn||(ye&4194048)!==ye&&Nt.current!==null||(li=!0),(Hn&134217727)===0&&(Sl&134217727)===0||xe===null||Kn(xe,ye,zt,!1)}function Cr(e,t,n){var i=Ee;Ee|=2;var r=Zd(),f=Jd();(xe!==e||ye!==t)&&(Ls=null,si(e,t)),t=!1;var d=He;e:do try{if(Oe!==0&&ge!==null){var y=ge,T=Ct;switch(Oe){case 8:Mr(),d=6;break e;case 3:case 2:case 9:case 6:Nt.current===null&&(t=!0);var z=Oe;if(Oe=0,Ct=null,ui(e,y,T,z),n&&li){d=0;break e}break;default:z=Oe,Oe=0,Ct=null,ui(e,y,T,z)}}_0(),d=He;break}catch(B){Qd(e,B)}while(!0);return t&&e.shellSuspendCounter++,rn=ol=null,Ee=i,D.H=r,D.A=f,ge===null&&(xe=null,ye=0,ts()),d}function _0(){for(;ge!==null;)Wd(ge)}function N0(e,t){var n=Ee;Ee|=2;var i=Zd(),r=Jd();xe!==e||ye!==t?(Ls=null,Ds=Et()+500,si(e,t)):li=Ui(e,t);e:do try{if(Oe!==0&&ge!==null){t=ge;var f=Ct;t:switch(Oe){case 1:Oe=0,Ct=null,ui(e,t,f,1);break;case 2:case 9:if(sh(f)){Oe=0,Ct=null,Id(t);break}t=function(){Oe!==2&&Oe!==9||xe!==e||(Oe=7),en(e)},f.then(t,t);break e;case 3:Oe=7;break e;case 4:Oe=5;break e;case 7:sh(f)?(Oe=0,Ct=null,Id(t)):(Oe=0,Ct=null,ui(e,t,f,7));break;case 5:var d=null;switch(ge.tag){case 26:d=ge.memoizedState;case 5:case 27:var y=ge;if(d?jm(d):y.stateNode.complete){Oe=0,Ct=null;var T=y.sibling;if(T!==null)ge=T;else{var z=y.return;z!==null?(ge=z,js(z)):ge=null}break t}}Oe=0,Ct=null,ui(e,t,f,5);break;case 6:Oe=0,Ct=null,ui(e,t,f,6);break;case 8:Mr(),He=6;break e;default:throw Error(s(462))}}M0();break}catch(B){Qd(e,B)}while(!0);return rn=ol=null,D.H=i,D.A=r,Ee=n,ge!==null?0:(xe=null,ye=0,ts(),He)}function M0(){for(;ge!==null&&!Ip();)Wd(ge)}function Wd(e){var t=Sd(e.alternate,e,bn);e.memoizedProps=e.pendingProps,t===null?js(e):ge=t}function Id(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=md(n,t,t.pendingProps,t.type,void 0,ye);break;case 11:t=md(n,t,t.pendingProps,t.type.render,t.ref,ye);break;case 5:Gc(t);default:Ed(n,t),t=ge=Jo(t,bn),t=Sd(n,t,bn)}e.memoizedProps=e.pendingProps,t===null?js(e):ge=t}function ui(e,t,n,i){rn=ol=null,Gc(t),Wl=null,Ii=0;var r=t.return;try{if(p0(e,r,t,n,ye)){He=1,ws(e,Bt(n,e.current)),ge=null;return}}catch(f){if(r!==null)throw ge=r,f;He=1,ws(e,Bt(n,e.current)),ge=null;return}t.flags&32768?(be||i===1?e=!0:li||(ye&536870912)!==0?e=!1:(qn=e=!0,(i===2||i===9||i===3||i===6)&&(i=Nt.current,i!==null&&i.tag===13&&(i.flags|=16384))),Fd(t,e)):js(t)}function js(e){var t=e;do{if((t.flags&32768)!==0){Fd(t,qn);return}e=t.return;var n=b0(t.alternate,t,bn);if(n!==null){ge=n;return}if(t=t.sibling,t!==null){ge=t;return}ge=t=e}while(t!==null);He===0&&(He=5)}function Fd(e,t){do{var n=S0(e.alternate,e);if(n!==null){n.flags&=32767,ge=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ge=e;return}ge=e=n}while(e!==null);He=6,ge=null}function Pd(e,t,n,i,r,f,d,y,T){e.cancelPendingCommit=null;do Bs();while(Ie!==0);if((Ee&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(f=t.lanes|t.childLanes,f|=yc,uy(e,n,f,d,y,T),e===xe&&(ge=xe=null,ye=0),ai=t,$n=e,Sn=n,Or=f,_r=r,$d=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,D0(qa,function(){return im(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=D.T,D.T=null,r=G.p,G.p=2,d=Ee,Ee|=4;try{T0(e,t,n)}finally{Ee=d,G.p=r,D.T=i}}Ie=1,em(),tm(),nm()}}function em(){if(Ie===1){Ie=0;var e=$n,t=ai,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=D.T,D.T=null;var i=G.p;G.p=2;var r=Ee;Ee|=4;try{Ud(t,e);var f=Yr,d=Ho(e.containerInfo),y=f.focusedElem,T=f.selectionRange;if(d!==y&&y&&y.ownerDocument&&qo(y.ownerDocument.documentElement,y)){if(T!==null&&hc(y)){var z=T.start,B=T.end;if(B===void 0&&(B=z),"selectionStart"in y)y.selectionStart=z,y.selectionEnd=Math.min(B,y.value.length);else{var H=y.ownerDocument||document,L=H&&H.defaultView||window;if(L.getSelection){var j=L.getSelection(),I=y.textContent.length,ie=Math.min(T.start,I),ze=T.end===void 0?ie:Math.min(T.end,I);!j.extend&&ie>ze&&(d=ze,ze=ie,ie=d);var N=ko(y,ie),A=ko(y,ze);if(N&&A&&(j.rangeCount!==1||j.anchorNode!==N.node||j.anchorOffset!==N.offset||j.focusNode!==A.node||j.focusOffset!==A.offset)){var C=H.createRange();C.setStart(N.node,N.offset),j.removeAllRanges(),ie>ze?(j.addRange(C),j.extend(A.node,A.offset)):(C.setEnd(A.node,A.offset),j.addRange(C))}}}}for(H=[],j=y;j=j.parentNode;)j.nodeType===1&&H.push({element:j,left:j.scrollLeft,top:j.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<H.length;y++){var q=H[y];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}Js=!!Hr,Yr=Hr=null}finally{Ee=r,G.p=i,D.T=n}}e.current=t,Ie=2}}function tm(){if(Ie===2){Ie=0;var e=$n,t=ai,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=D.T,D.T=null;var i=G.p;G.p=2;var r=Ee;Ee|=4;try{Cd(e,t.alternate,t)}finally{Ee=r,G.p=i,D.T=n}}Ie=3}}function nm(){if(Ie===4||Ie===3){Ie=0,Fp();var e=$n,t=ai,n=Sn,i=$d;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ie=5:(Ie=0,ai=$n=null,lm(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(Yn=null),Xu(n),t=t.stateNode,wt&&typeof wt.onCommitFiberRoot=="function")try{wt.onCommitFiberRoot(Li,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=D.T,r=G.p,G.p=2,D.T=null;try{for(var f=e.onRecoverableError,d=0;d<i.length;d++){var y=i[d];f(y.value,{componentStack:y.stack})}}finally{D.T=t,G.p=r}}(Sn&3)!==0&&Bs(),en(e),r=e.pendingLanes,(n&261930)!==0&&(r&42)!==0?e===Nr?ma++:(ma=0,Nr=e):ma=0,ga(0)}}function lm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ji(t)))}function Bs(){return em(),tm(),nm(),im()}function im(){if(Ie!==5)return!1;var e=$n,t=Or;Or=0;var n=Xu(Sn),i=D.T,r=G.p;try{G.p=32>n?32:n,D.T=null,n=_r,_r=null;var f=$n,d=Sn;if(Ie=0,ai=$n=null,Sn=0,(Ee&6)!==0)throw Error(s(331));var y=Ee;if(Ee|=4,qd(f.current),jd(f,f.current,d,n),Ee=y,ga(0,!1),wt&&typeof wt.onPostCommitFiberRoot=="function")try{wt.onPostCommitFiberRoot(Li,f)}catch{}return!0}finally{G.p=r,D.T=i,lm(e,t)}}function am(e,t,n){t=Bt(n,t),t=ar(e.stateNode,t,2),e=Rn(e,t,2),e!==null&&(Ri(e,2),en(e))}function _e(e,t,n){if(e.tag===3)am(e,e,n);else for(;t!==null;){if(t.tag===3){am(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Yn===null||!Yn.has(i))){e=Bt(n,e),n=sd(2),i=Rn(t,n,2),i!==null&&(ud(n,i,t,e),Ri(i,2),en(i));break}}t=t.return}}function zr(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new A0;var r=new Set;i.set(t,r)}else r=i.get(t),r===void 0&&(r=new Set,i.set(t,r));r.has(n)||(Er=!0,r.add(n),e=C0.bind(null,e,t,n),t.then(e,e))}function C0(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,xe===e&&(ye&n)===n&&(He===4||He===3&&(ye&62914560)===ye&&300>Et()-xs?(Ee&2)===0&&si(e,0):wr|=n,ii===ye&&(ii=0)),en(e)}function sm(e,t){t===0&&(t=Pf()),e=cl(e,t),e!==null&&(Ri(e,t),en(e))}function z0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),sm(e,n)}function x0(e,t){var n=0;switch(e.tag){case 31:case 13:var i=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(s(314))}i!==null&&i.delete(t),sm(e,n)}function D0(e,t){return Ku(e,t)}var ks=null,ci=null,xr=!1,qs=!1,Dr=!1,Gn=0;function en(e){e!==ci&&e.next===null&&(ci===null?ks=ci=e:ci=ci.next=e),qs=!0,xr||(xr=!0,U0())}function ga(e,t){if(!Dr&&qs){Dr=!0;do for(var n=!1,i=ks;i!==null;){if(e!==0){var r=i.pendingLanes;if(r===0)var f=0;else{var d=i.suspendedLanes,y=i.pingedLanes;f=(1<<31-At(42|e)+1)-1,f&=r&~(d&~y),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(n=!0,fm(i,f))}else f=ye,f=Ka(i,i===xe?f:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(f&3)===0||Ui(i,f)||(n=!0,fm(i,f));i=i.next}while(n);Dr=!1}}function L0(){um()}function um(){qs=xr=!1;var e=0;Gn!==0&&G0()&&(e=Gn);for(var t=Et(),n=null,i=ks;i!==null;){var r=i.next,f=cm(i,t);f===0?(i.next=null,n===null?ks=r:n.next=r,r===null&&(ci=n)):(n=i,(e!==0||(f&3)!==0)&&(qs=!0)),i=r}Ie!==0&&Ie!==5||ga(e),Gn!==0&&(Gn=0)}function cm(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,r=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var d=31-At(f),y=1<<d,T=r[d];T===-1?((y&n)===0||(y&i)!==0)&&(r[d]=sy(y,t)):T<=t&&(e.expiredLanes|=y),f&=~y}if(t=xe,n=ye,n=Ka(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Gu(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Ui(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&Gu(i),Xu(n)){case 2:case 8:n=If;break;case 32:n=qa;break;case 268435456:n=Ff;break;default:n=qa}return i=rm.bind(null,e),n=Ku(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&Gu(i),e.callbackPriority=2,e.callbackNode=null,2}function rm(e,t){if(Ie!==0&&Ie!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Bs()&&e.callbackNode!==n)return null;var i=ye;return i=Ka(e,e===xe?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(Gd(e,i,t),cm(e,Et()),e.callbackNode!=null&&e.callbackNode===n?rm.bind(null,e):null)}function fm(e,t){if(Bs())return null;Gd(e,t,!0)}function U0(){Q0(function(){(Ee&6)!==0?Ku(Wf,L0):um()})}function Lr(){if(Gn===0){var e=Xl;e===0&&(e=Ha,Ha<<=1,(Ha&261888)===0&&(Ha=256)),Gn=e}return Gn}function om(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Xa(""+e)}function hm(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function R0(e,t,n,i,r){if(t==="submit"&&n&&n.stateNode===r){var f=om((r[ht]||null).action),d=i.submitter;d&&(t=(t=d[ht]||null)?om(t.formAction):d.getAttribute("formAction"),t!==null&&(f=t,d=null));var y=new Ia("action","action",null,i,r);e.push({event:y,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Gn!==0){var T=d?hm(r,d):new FormData(r);Pc(n,{pending:!0,data:T,method:r.method,action:f},null,T)}}else typeof f=="function"&&(y.preventDefault(),T=d?hm(r,d):new FormData(r),Pc(n,{pending:!0,data:T,method:r.method,action:f},f,T))},currentTarget:r}]})}}for(var Ur=0;Ur<pc.length;Ur++){var Rr=pc[Ur],j0=Rr.toLowerCase(),B0=Rr[0].toUpperCase()+Rr.slice(1);Qt(j0,"on"+B0)}Qt(Ko,"onAnimationEnd"),Qt(Go,"onAnimationIteration"),Qt(Vo,"onAnimationStart"),Qt("dblclick","onDoubleClick"),Qt("focusin","onFocus"),Qt("focusout","onBlur"),Qt(Py,"onTransitionRun"),Qt(e0,"onTransitionStart"),Qt(t0,"onTransitionCancel"),Qt(Qo,"onTransitionEnd"),Ll("onMouseEnter",["mouseout","mouseover"]),Ll("onMouseLeave",["mouseout","mouseover"]),Ll("onPointerEnter",["pointerout","pointerover"]),Ll("onPointerLeave",["pointerout","pointerover"]),il("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),il("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),il("onBeforeInput",["compositionend","keypress","textInput","paste"]),il("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),il("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),il("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var pa="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),k0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(pa));function dm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],r=i.event;i=i.listeners;e:{var f=void 0;if(t)for(var d=i.length-1;0<=d;d--){var y=i[d],T=y.instance,z=y.currentTarget;if(y=y.listener,T!==f&&r.isPropagationStopped())break e;f=y,r.currentTarget=z;try{f(r)}catch(B){es(B)}r.currentTarget=null,f=T}else for(d=0;d<i.length;d++){if(y=i[d],T=y.instance,z=y.currentTarget,y=y.listener,T!==f&&r.isPropagationStopped())break e;f=y,r.currentTarget=z;try{f(r)}catch(B){es(B)}r.currentTarget=null,f=T}}}}function pe(e,t){var n=t[Zu];n===void 0&&(n=t[Zu]=new Set);var i=e+"__bubble";n.has(i)||(mm(t,e,2,!1),n.add(i))}function jr(e,t,n){var i=0;t&&(i|=4),mm(n,e,i,t)}var Hs="_reactListening"+Math.random().toString(36).slice(2);function Br(e){if(!e[Hs]){e[Hs]=!0,so.forEach(function(n){n!=="selectionchange"&&(k0.has(n)||jr(n,!1,e),jr(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Hs]||(t[Hs]=!0,jr("selectionchange",!1,t))}}function mm(e,t,n,i){switch(Km(t)){case 2:var r=h1;break;case 8:r=d1;break;default:r=Fr}n=r.bind(null,t,n,e),r=void 0,!lc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),i?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function kr(e,t,n,i,r){var f=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var d=i.tag;if(d===3||d===4){var y=i.stateNode.containerInfo;if(y===r)break;if(d===4)for(d=i.return;d!==null;){var T=d.tag;if((T===3||T===4)&&d.stateNode.containerInfo===r)return;d=d.return}for(;y!==null;){if(d=zl(y),d===null)return;if(T=d.tag,T===5||T===6||T===26||T===27){i=f=d;continue e}y=y.parentNode}}i=i.return}bo(function(){var z=f,B=tc(n),H=[];e:{var L=Xo.get(e);if(L!==void 0){var j=Ia,I=e;switch(e){case"keypress":if(Ja(n)===0)break e;case"keydown":case"keyup":j=xy;break;case"focusin":I="focus",j=uc;break;case"focusout":I="blur",j=uc;break;case"beforeblur":case"afterblur":j=uc;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":j=Eo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":j=by;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":j=Uy;break;case Ko:case Go:case Vo:j=Ey;break;case Qo:j=jy;break;case"scroll":case"scrollend":j=yy;break;case"wheel":j=ky;break;case"copy":case"cut":case"paste":j=Ay;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":j=Ao;break;case"toggle":case"beforetoggle":j=Hy}var ie=(t&4)!==0,ze=!ie&&(e==="scroll"||e==="scrollend"),N=ie?L!==null?L+"Capture":null:L;ie=[];for(var A=z,C;A!==null;){var q=A;if(C=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||C===null||N===null||(q=ki(A,N),q!=null&&ie.push(ya(A,q,C))),ze)break;A=A.return}0<ie.length&&(L=new j(L,I,null,n,B),H.push({event:L,listeners:ie}))}}if((t&7)===0){e:{if(L=e==="mouseover"||e==="pointerover",j=e==="mouseout"||e==="pointerout",L&&n!==ec&&(I=n.relatedTarget||n.fromElement)&&(zl(I)||I[Cl]))break e;if((j||L)&&(L=B.window===B?B:(L=B.ownerDocument)?L.defaultView||L.parentWindow:window,j?(I=n.relatedTarget||n.toElement,j=z,I=I?zl(I):null,I!==null&&(ze=o(I),ie=I.tag,I!==ze||ie!==5&&ie!==27&&ie!==6)&&(I=null)):(j=null,I=z),j!==I)){if(ie=Eo,q="onMouseLeave",N="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(ie=Ao,q="onPointerLeave",N="onPointerEnter",A="pointer"),ze=j==null?L:Bi(j),C=I==null?L:Bi(I),L=new ie(q,A+"leave",j,n,B),L.target=ze,L.relatedTarget=C,q=null,zl(B)===z&&(ie=new ie(N,A+"enter",I,n,B),ie.target=C,ie.relatedTarget=ze,q=ie),ze=q,j&&I)t:{for(ie=q0,N=j,A=I,C=0,q=N;q;q=ie(q))C++;q=0;for(var le=A;le;le=ie(le))q++;for(;0<C-q;)N=ie(N),C--;for(;0<q-C;)A=ie(A),q--;for(;C--;){if(N===A||A!==null&&N===A.alternate){ie=N;break t}N=ie(N),A=ie(A)}ie=null}else ie=null;j!==null&&gm(H,L,j,ie,!1),I!==null&&ze!==null&&gm(H,ze,I,ie,!0)}}e:{if(L=z?Bi(z):window,j=L.nodeName&&L.nodeName.toLowerCase(),j==="select"||j==="input"&&L.type==="file")var Se=Do;else if(zo(L))if(Lo)Se=Wy;else{Se=Zy;var P=Xy}else j=L.nodeName,!j||j.toLowerCase()!=="input"||L.type!=="checkbox"&&L.type!=="radio"?z&&Pu(z.elementType)&&(Se=Do):Se=Jy;if(Se&&(Se=Se(e,z))){xo(H,Se,n,B);break e}P&&P(e,L,z),e==="focusout"&&z&&L.type==="number"&&z.memoizedProps.value!=null&&Fu(L,"number",L.value)}switch(P=z?Bi(z):window,e){case"focusin":(zo(P)||P.contentEditable==="true")&&(ql=P,dc=z,Qi=null);break;case"focusout":Qi=dc=ql=null;break;case"mousedown":mc=!0;break;case"contextmenu":case"mouseup":case"dragend":mc=!1,Yo(H,n,B);break;case"selectionchange":if(Fy)break;case"keydown":case"keyup":Yo(H,n,B)}var oe;if(rc)e:{switch(e){case"compositionstart":var ve="onCompositionStart";break e;case"compositionend":ve="onCompositionEnd";break e;case"compositionupdate":ve="onCompositionUpdate";break e}ve=void 0}else kl?Mo(e,n)&&(ve="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ve="onCompositionStart");ve&&(Oo&&n.locale!=="ko"&&(kl||ve!=="onCompositionStart"?ve==="onCompositionEnd"&&kl&&(oe=So()):(Mn=B,ic="value"in Mn?Mn.value:Mn.textContent,kl=!0)),P=Ys(z,ve),0<P.length&&(ve=new wo(ve,e,null,n,B),H.push({event:ve,listeners:P}),oe?ve.data=oe:(oe=Co(n),oe!==null&&(ve.data=oe)))),(oe=$y?Ky(e,n):Gy(e,n))&&(ve=Ys(z,"onBeforeInput"),0<ve.length&&(P=new wo("onBeforeInput","beforeinput",null,n,B),H.push({event:P,listeners:ve}),P.data=oe)),R0(H,e,z,n,B)}dm(H,t)})}function ya(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ys(e,t){for(var n=t+"Capture",i=[];e!==null;){var r=e,f=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||f===null||(r=ki(e,n),r!=null&&i.unshift(ya(e,r,f)),r=ki(e,t),r!=null&&i.push(ya(e,r,f))),e.tag===3)return i;e=e.return}return[]}function q0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function gm(e,t,n,i,r){for(var f=t._reactName,d=[];n!==null&&n!==i;){var y=n,T=y.alternate,z=y.stateNode;if(y=y.tag,T!==null&&T===i)break;y!==5&&y!==26&&y!==27||z===null||(T=z,r?(z=ki(n,f),z!=null&&d.unshift(ya(n,z,T))):r||(z=ki(n,f),z!=null&&d.push(ya(n,z,T)))),n=n.return}d.length!==0&&e.push({event:t,listeners:d})}var H0=/\r\n?/g,Y0=/\u0000|\uFFFD/g;function pm(e){return(typeof e=="string"?e:""+e).replace(H0,`
50
+ `).replace(Y0,"")}function ym(e,t){return t=pm(t),pm(e)===t}function Ce(e,t,n,i,r,f){switch(n){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||Rl(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&Rl(e,""+i);break;case"className":Va(e,"class",i);break;case"tabIndex":Va(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Va(e,n,i);break;case"style":yo(e,i,f);break;case"data":if(t!=="object"){Va(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Xa(""+i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(n==="formAction"?(t!=="input"&&Ce(e,t,"name",r.name,r,null),Ce(e,t,"formEncType",r.formEncType,r,null),Ce(e,t,"formMethod",r.formMethod,r,null),Ce(e,t,"formTarget",r.formTarget,r,null)):(Ce(e,t,"encType",r.encType,r,null),Ce(e,t,"method",r.method,r,null),Ce(e,t,"target",r.target,r,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Xa(""+i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=an);break;case"onScroll":i!=null&&pe("scroll",e);break;case"onScrollEnd":i!=null&&pe("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(n=i.__html,n!=null){if(r.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}n=Xa(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""+i):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":pe("beforetoggle",e),pe("toggle",e),Ga(e,"popover",i);break;case"xlinkActuate":ln(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":ln(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":ln(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":ln(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":ln(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":ln(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":ln(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":ln(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":ln(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Ga(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=gy.get(n)||n,Ga(e,n,i))}}function qr(e,t,n,i,r,f){switch(n){case"style":yo(e,i,f);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(n=i.__html,n!=null){if(r.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"children":typeof i=="string"?Rl(e,i):(typeof i=="number"||typeof i=="bigint")&&Rl(e,""+i);break;case"onScroll":i!=null&&pe("scroll",e);break;case"onScrollEnd":i!=null&&pe("scrollend",e);break;case"onClick":i!=null&&(e.onclick=an);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!uo.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),t=n.slice(2,r?n.length-7:void 0),f=e[ht]||null,f=f!=null?f[n]:null,typeof f=="function"&&e.removeEventListener(t,f,r),typeof i=="function")){typeof f!="function"&&f!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,i,r);break e}n in e?e[n]=i:i===!0?e.setAttribute(n,""):Ga(e,n,i)}}}function at(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":pe("error",e),pe("load",e);var i=!1,r=!1,f;for(f in n)if(n.hasOwnProperty(f)){var d=n[f];if(d!=null)switch(f){case"src":i=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ce(e,t,f,d,n,null)}}r&&Ce(e,t,"srcSet",n.srcSet,n,null),i&&Ce(e,t,"src",n.src,n,null);return;case"input":pe("invalid",e);var y=f=d=r=null,T=null,z=null;for(i in n)if(n.hasOwnProperty(i)){var B=n[i];if(B!=null)switch(i){case"name":r=B;break;case"type":d=B;break;case"checked":T=B;break;case"defaultChecked":z=B;break;case"value":f=B;break;case"defaultValue":y=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(s(137,t));break;default:Ce(e,t,i,B,n,null)}}ho(e,f,y,T,z,d,r,!1);return;case"select":pe("invalid",e),i=d=f=null;for(r in n)if(n.hasOwnProperty(r)&&(y=n[r],y!=null))switch(r){case"value":f=y;break;case"defaultValue":d=y;break;case"multiple":i=y;default:Ce(e,t,r,y,n,null)}t=f,n=d,e.multiple=!!i,t!=null?Ul(e,!!i,t,!1):n!=null&&Ul(e,!!i,n,!0);return;case"textarea":pe("invalid",e),f=r=i=null;for(d in n)if(n.hasOwnProperty(d)&&(y=n[d],y!=null))switch(d){case"value":i=y;break;case"defaultValue":r=y;break;case"children":f=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(s(91));break;default:Ce(e,t,d,y,n,null)}go(e,i,r,f);return;case"option":for(T in n)if(n.hasOwnProperty(T)&&(i=n[T],i!=null))switch(T){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Ce(e,t,T,i,n,null)}return;case"dialog":pe("beforetoggle",e),pe("toggle",e),pe("cancel",e),pe("close",e);break;case"iframe":case"object":pe("load",e);break;case"video":case"audio":for(i=0;i<pa.length;i++)pe(pa[i],e);break;case"image":pe("error",e),pe("load",e);break;case"details":pe("toggle",e);break;case"embed":case"source":case"link":pe("error",e),pe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(z in n)if(n.hasOwnProperty(z)&&(i=n[z],i!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ce(e,t,z,i,n,null)}return;default:if(Pu(t)){for(B in n)n.hasOwnProperty(B)&&(i=n[B],i!==void 0&&qr(e,t,B,i,n,void 0));return}}for(y in n)n.hasOwnProperty(y)&&(i=n[y],i!=null&&Ce(e,t,y,i,n,null))}function $0(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,f=null,d=null,y=null,T=null,z=null,B=null;for(j in n){var H=n[j];if(n.hasOwnProperty(j)&&H!=null)switch(j){case"checked":break;case"value":break;case"defaultValue":T=H;default:i.hasOwnProperty(j)||Ce(e,t,j,null,i,H)}}for(var L in i){var j=i[L];if(H=n[L],i.hasOwnProperty(L)&&(j!=null||H!=null))switch(L){case"type":f=j;break;case"name":r=j;break;case"checked":z=j;break;case"defaultChecked":B=j;break;case"value":d=j;break;case"defaultValue":y=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(s(137,t));break;default:j!==H&&Ce(e,t,L,j,i,H)}}Iu(e,d,y,T,z,B,f,r);return;case"select":j=d=y=L=null;for(f in n)if(T=n[f],n.hasOwnProperty(f)&&T!=null)switch(f){case"value":break;case"multiple":j=T;default:i.hasOwnProperty(f)||Ce(e,t,f,null,i,T)}for(r in i)if(f=i[r],T=n[r],i.hasOwnProperty(r)&&(f!=null||T!=null))switch(r){case"value":L=f;break;case"defaultValue":y=f;break;case"multiple":d=f;default:f!==T&&Ce(e,t,r,f,i,T)}t=y,n=d,i=j,L!=null?Ul(e,!!n,L,!1):!!i!=!!n&&(t!=null?Ul(e,!!n,t,!0):Ul(e,!!n,n?[]:"",!1));return;case"textarea":j=L=null;for(y in n)if(r=n[y],n.hasOwnProperty(y)&&r!=null&&!i.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:Ce(e,t,y,null,i,r)}for(d in i)if(r=i[d],f=n[d],i.hasOwnProperty(d)&&(r!=null||f!=null))switch(d){case"value":L=r;break;case"defaultValue":j=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(s(91));break;default:r!==f&&Ce(e,t,d,r,i,f)}mo(e,L,j);return;case"option":for(var I in n)if(L=n[I],n.hasOwnProperty(I)&&L!=null&&!i.hasOwnProperty(I))switch(I){case"selected":e.selected=!1;break;default:Ce(e,t,I,null,i,L)}for(T in i)if(L=i[T],j=n[T],i.hasOwnProperty(T)&&L!==j&&(L!=null||j!=null))switch(T){case"selected":e.selected=L&&typeof L!="function"&&typeof L!="symbol";break;default:Ce(e,t,T,L,i,j)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ie in n)L=n[ie],n.hasOwnProperty(ie)&&L!=null&&!i.hasOwnProperty(ie)&&Ce(e,t,ie,null,i,L);for(z in i)if(L=i[z],j=n[z],i.hasOwnProperty(z)&&L!==j&&(L!=null||j!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(s(137,t));break;default:Ce(e,t,z,L,i,j)}return;default:if(Pu(t)){for(var ze in n)L=n[ze],n.hasOwnProperty(ze)&&L!==void 0&&!i.hasOwnProperty(ze)&&qr(e,t,ze,void 0,i,L);for(B in i)L=i[B],j=n[B],!i.hasOwnProperty(B)||L===j||L===void 0&&j===void 0||qr(e,t,B,L,i,j);return}}for(var N in n)L=n[N],n.hasOwnProperty(N)&&L!=null&&!i.hasOwnProperty(N)&&Ce(e,t,N,null,i,L);for(H in i)L=i[H],j=n[H],!i.hasOwnProperty(H)||L===j||L==null&&j==null||Ce(e,t,H,L,i,j)}function vm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function K0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var r=n[i],f=r.transferSize,d=r.initiatorType,y=r.duration;if(f&&y&&vm(d)){for(d=0,y=r.responseEnd,i+=1;i<n.length;i++){var T=n[i],z=T.startTime;if(z>y)break;var B=T.transferSize,H=T.initiatorType;B&&vm(H)&&(T=T.responseEnd,d+=B*(T<y?1:(y-z)/(T-z)))}if(--i,t+=8*(f+d)/(r.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Hr=null,Yr=null;function $s(e){return e.nodeType===9?e:e.ownerDocument}function bm(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Sm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function $r(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Kr=null;function G0(){var e=window.event;return e&&e.type==="popstate"?e===Kr?!1:(Kr=e,!0):(Kr=null,!1)}var Tm=typeof setTimeout=="function"?setTimeout:void 0,V0=typeof clearTimeout=="function"?clearTimeout:void 0,Em=typeof Promise=="function"?Promise:void 0,Q0=typeof queueMicrotask=="function"?queueMicrotask:typeof Em<"u"?function(e){return Em.resolve(null).then(e).catch(X0)}:Tm;function X0(e){setTimeout(function(){throw e})}function Vn(e){return e==="head"}function wm(e,t){var n=t,i=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"||n==="/&"){if(i===0){e.removeChild(r),hi(t);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")va(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,va(n);for(var f=n.firstChild;f;){var d=f.nextSibling,y=f.nodeName;f[ji]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&f.rel.toLowerCase()==="stylesheet"||n.removeChild(f),f=d}}else n==="body"&&va(e.ownerDocument.body);n=r}while(n);hi(t)}function Am(e,t){var n=e;e=0;do{var i=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=i}while(n)}function Gr(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Gr(n),Ju(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Z0(e,t,n,i){for(;e.nodeType===1;){var r=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[ji])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var f=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=$t(e.nextSibling),e===null)break}return null}function J0(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=$t(e.nextSibling),e===null))return null;return e}function Om(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=$t(e.nextSibling),e===null))return null;return e}function Vr(e){return e.data==="$?"||e.data==="$~"}function Qr(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function W0(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function $t(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Xr=null;function _m(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return $t(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Nm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Mm(e,t,n){switch(t=$s(n),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function va(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ju(e)}var Kt=new Map,Cm=new Set;function Ks(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Tn=G.d;G.d={f:I0,r:F0,D:P0,C:e1,L:t1,m:n1,X:i1,S:l1,M:a1};function I0(){var e=Tn.f(),t=Us();return e||t}function F0(e){var t=xl(e);t!==null&&t.tag===5&&t.type==="form"?Qh(t):Tn.r(e)}var ri=typeof document>"u"?null:document;function zm(e,t,n){var i=ri;if(i&&typeof t=="string"&&t){var r=Rt(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),Cm.has(r)||(Cm.add(r),e={rel:e,crossOrigin:n,href:t},i.querySelector(r)===null&&(t=i.createElement("link"),at(t,"link",e),Pe(t),i.head.appendChild(t)))}}function P0(e){Tn.D(e),zm("dns-prefetch",e,null)}function e1(e,t){Tn.C(e,t),zm("preconnect",e,t)}function t1(e,t,n){Tn.L(e,t,n);var i=ri;if(i&&e&&t){var r='link[rel="preload"][as="'+Rt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+Rt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+Rt(n.imageSizes)+'"]')):r+='[href="'+Rt(e)+'"]';var f=r;switch(t){case"style":f=fi(e);break;case"script":f=oi(e)}Kt.has(f)||(e=v({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Kt.set(f,e),i.querySelector(r)!==null||t==="style"&&i.querySelector(ba(f))||t==="script"&&i.querySelector(Sa(f))||(t=i.createElement("link"),at(t,"link",e),Pe(t),i.head.appendChild(t)))}}function n1(e,t){Tn.m(e,t);var n=ri;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+Rt(i)+'"][href="'+Rt(e)+'"]',f=r;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=oi(e)}if(!Kt.has(f)&&(e=v({rel:"modulepreload",href:e},t),Kt.set(f,e),n.querySelector(r)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Sa(f)))return}i=n.createElement("link"),at(i,"link",e),Pe(i),n.head.appendChild(i)}}}function l1(e,t,n){Tn.S(e,t,n);var i=ri;if(i&&e){var r=Dl(i).hoistableStyles,f=fi(e);t=t||"default";var d=r.get(f);if(!d){var y={loading:0,preload:null};if(d=i.querySelector(ba(f)))y.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Kt.get(f))&&Zr(e,n);var T=d=i.createElement("link");Pe(T),at(T,"link",e),T._p=new Promise(function(z,B){T.onload=z,T.onerror=B}),T.addEventListener("load",function(){y.loading|=1}),T.addEventListener("error",function(){y.loading|=2}),y.loading|=4,Gs(d,t,i)}d={type:"stylesheet",instance:d,count:1,state:y},r.set(f,d)}}}function i1(e,t){Tn.X(e,t);var n=ri;if(n&&e){var i=Dl(n).hoistableScripts,r=oi(e),f=i.get(r);f||(f=n.querySelector(Sa(r)),f||(e=v({src:e,async:!0},t),(t=Kt.get(r))&&Jr(e,t),f=n.createElement("script"),Pe(f),at(f,"link",e),n.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},i.set(r,f))}}function a1(e,t){Tn.M(e,t);var n=ri;if(n&&e){var i=Dl(n).hoistableScripts,r=oi(e),f=i.get(r);f||(f=n.querySelector(Sa(r)),f||(e=v({src:e,async:!0,type:"module"},t),(t=Kt.get(r))&&Jr(e,t),f=n.createElement("script"),Pe(f),at(f,"link",e),n.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},i.set(r,f))}}function xm(e,t,n,i){var r=(r=me.current)?Ks(r):null;if(!r)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=fi(n.href),n=Dl(r).hoistableStyles,i=n.get(t),i||(i={type:"style",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=fi(n.href);var f=Dl(r).hoistableStyles,d=f.get(e);if(d||(r=r.ownerDocument||r,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,d),(f=r.querySelector(ba(e)))&&!f._p&&(d.instance=f,d.state.loading=5),Kt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Kt.set(e,n),f||s1(r,e,n,d.state))),t&&i===null)throw Error(s(528,""));return d}if(t&&i!==null)throw Error(s(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=oi(n),n=Dl(r).hoistableScripts,i=n.get(t),i||(i={type:"script",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function fi(e){return'href="'+Rt(e)+'"'}function ba(e){return'link[rel="stylesheet"]['+e+"]"}function Dm(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function s1(e,t,n,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),at(t,"link",n),Pe(t),e.head.appendChild(t))}function oi(e){return'[src="'+Rt(e)+'"]'}function Sa(e){return"script[async]"+e}function Lm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Rt(n.href)+'"]');if(i)return t.instance=i,Pe(i),i;var r=v({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),Pe(i),at(i,"style",r),Gs(i,n.precedence,e),t.instance=i;case"stylesheet":r=fi(n.href);var f=e.querySelector(ba(r));if(f)return t.state.loading|=4,t.instance=f,Pe(f),f;i=Dm(n),(r=Kt.get(r))&&Zr(i,r),f=(e.ownerDocument||e).createElement("link"),Pe(f);var d=f;return d._p=new Promise(function(y,T){d.onload=y,d.onerror=T}),at(f,"link",i),t.state.loading|=4,Gs(f,n.precedence,e),t.instance=f;case"script":return f=oi(n.src),(r=e.querySelector(Sa(f)))?(t.instance=r,Pe(r),r):(i=n,(r=Kt.get(f))&&(i=v({},n),Jr(i,r)),e=e.ownerDocument||e,r=e.createElement("script"),Pe(r),at(r,"link",i),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Gs(i,n.precedence,e));return t.instance}function Gs(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=i.length?i[i.length-1]:null,f=r,d=0;d<i.length;d++){var y=i[d];if(y.dataset.precedence===t)f=y;else if(f!==r)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Zr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Jr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Vs=null;function Um(e,t,n){if(Vs===null){var i=new Map,r=Vs=new Map;r.set(n,i)}else r=Vs,i=r.get(n),i||(i=new Map,r.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),r=0;r<n.length;r++){var f=n[r];if(!(f[ji]||f[tt]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var d=f.getAttribute(t)||"";d=e+d;var y=i.get(d);y?y.push(f):i.set(d,[f])}}return i}function Rm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function u1(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function jm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function c1(e,t,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var r=fi(i.href),f=t.querySelector(ba(r));if(f){t=f._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Qs.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=f,Pe(f);return}f=t.ownerDocument||t,i=Dm(i),(r=Kt.get(r))&&Zr(i,r),f=f.createElement("link"),Pe(f);var d=f;d._p=new Promise(function(y,T){d.onload=y,d.onerror=T}),at(f,"link",i),n.instance=f}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Qs.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Wr=0;function r1(e,t){return e.stylesheets&&e.count===0&&Zs(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var i=setTimeout(function(){if(e.stylesheets&&Zs(e,e.stylesheets),e.unsuspend){var f=e.unsuspend;e.unsuspend=null,f()}},6e4+t);0<e.imgBytes&&Wr===0&&(Wr=62500*K0());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Zs(e,e.stylesheets),e.unsuspend)){var f=e.unsuspend;e.unsuspend=null,f()}},(e.imgBytes>Wr?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(r)}}:null}function Qs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Zs(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Xs=null;function Zs(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Xs=new Map,t.forEach(f1,e),Xs=null,Qs.call(e))}function f1(e,t){if(!(t.state.loading&4)){var n=Xs.get(e);if(n)var i=n.get(null);else{n=new Map,Xs.set(e,n);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<r.length;f++){var d=r[f];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(n.set(d.dataset.precedence,d),i=d)}i&&n.set(null,i)}r=t.instance,d=r.getAttribute("data-precedence"),f=n.get(d)||i,f===i&&n.set(null,r),n.set(d,r),this.count++,i=Qs.bind(this),r.addEventListener("load",i),r.addEventListener("error",i),f?f.parentNode.insertBefore(r,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var Ta={$$typeof:K,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function o1(e,t,n,i,r,f,d,y,T){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Vu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vu(0),this.hiddenUpdates=Vu(null),this.identifierPrefix=i,this.onUncaughtError=r,this.onCaughtError=f,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function Bm(e,t,n,i,r,f,d,y,T,z,B,H){return e=new o1(e,t,n,d,T,z,B,H,y),t=1,f===!0&&(t|=24),f=_t(3,null,null,t),e.current=f,f.stateNode=e,t=Cc(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:i,isDehydrated:n,cache:t},Lc(f),e}function km(e){return e?(e=$l,e):$l}function qm(e,t,n,i,r,f){r=km(r),i.context===null?i.context=r:i.pendingContext=r,i=Un(t),i.payload={element:n},f=f===void 0?null:f,f!==null&&(i.callback=f),n=Rn(e,i,t),n!==null&&(vt(n,e,t),Pi(n,e,t))}function Hm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ir(e,t){Hm(e,t),(e=e.alternate)&&Hm(e,t)}function Ym(e){if(e.tag===13||e.tag===31){var t=cl(e,67108864);t!==null&&vt(t,e,67108864),Ir(e,67108864)}}function $m(e){if(e.tag===13||e.tag===31){var t=xt();t=Qu(t);var n=cl(e,t);n!==null&&vt(n,e,t),Ir(e,t)}}var Js=!0;function h1(e,t,n,i){var r=D.T;D.T=null;var f=G.p;try{G.p=2,Fr(e,t,n,i)}finally{G.p=f,D.T=r}}function d1(e,t,n,i){var r=D.T;D.T=null;var f=G.p;try{G.p=8,Fr(e,t,n,i)}finally{G.p=f,D.T=r}}function Fr(e,t,n,i){if(Js){var r=Pr(i);if(r===null)kr(e,t,i,Ws,n),Gm(e,i);else if(g1(r,e,t,n,i))i.stopPropagation();else if(Gm(e,i),t&4&&-1<m1.indexOf(e)){for(;r!==null;){var f=xl(r);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var d=ll(f.pendingLanes);if(d!==0){var y=f;for(y.pendingLanes|=2,y.entangledLanes|=2;d;){var T=1<<31-At(d);y.entanglements[1]|=T,d&=~T}en(f),(Ee&6)===0&&(Ds=Et()+500,ga(0))}}break;case 31:case 13:y=cl(f,2),y!==null&&vt(y,f,2),Us(),Ir(f,2)}if(f=Pr(i),f===null&&kr(e,t,i,Ws,n),f===r)break;r=f}r!==null&&i.stopPropagation()}else kr(e,t,i,null,n)}}function Pr(e){return e=tc(e),ef(e)}var Ws=null;function ef(e){if(Ws=null,e=zl(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(t),e!==null)return e;e=null}else if(n===31){if(e=m(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ws=e,null}function Km(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Pp()){case Wf:return 2;case If:return 8;case qa:case ey:return 32;case Ff:return 268435456;default:return 32}default:return 32}}var tf=!1,Qn=null,Xn=null,Zn=null,Ea=new Map,wa=new Map,Jn=[],m1="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Gm(e,t){switch(e){case"focusin":case"focusout":Qn=null;break;case"dragenter":case"dragleave":Xn=null;break;case"mouseover":case"mouseout":Zn=null;break;case"pointerover":case"pointerout":Ea.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":wa.delete(t.pointerId)}}function Aa(e,t,n,i,r,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:f,targetContainers:[r]},t!==null&&(t=xl(t),t!==null&&Ym(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function g1(e,t,n,i,r){switch(t){case"focusin":return Qn=Aa(Qn,e,t,n,i,r),!0;case"dragenter":return Xn=Aa(Xn,e,t,n,i,r),!0;case"mouseover":return Zn=Aa(Zn,e,t,n,i,r),!0;case"pointerover":var f=r.pointerId;return Ea.set(f,Aa(Ea.get(f)||null,e,t,n,i,r)),!0;case"gotpointercapture":return f=r.pointerId,wa.set(f,Aa(wa.get(f)||null,e,t,n,i,r)),!0}return!1}function Vm(e){var t=zl(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,io(e.priority,function(){$m(n)});return}}else if(t===31){if(t=m(n),t!==null){e.blockedOn=t,io(e.priority,function(){$m(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Is(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Pr(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);ec=i,n.target.dispatchEvent(i),ec=null}else return t=xl(n),t!==null&&Ym(t),e.blockedOn=n,!1;t.shift()}return!0}function Qm(e,t,n){Is(e)&&n.delete(t)}function p1(){tf=!1,Qn!==null&&Is(Qn)&&(Qn=null),Xn!==null&&Is(Xn)&&(Xn=null),Zn!==null&&Is(Zn)&&(Zn=null),Ea.forEach(Qm),wa.forEach(Qm)}function Fs(e,t){e.blockedOn===t&&(e.blockedOn=null,tf||(tf=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,p1)))}var Ps=null;function Xm(e){Ps!==e&&(Ps=e,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){Ps===e&&(Ps=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],r=e[t+2];if(typeof i!="function"){if(ef(i||n)===null)continue;break}var f=xl(n);f!==null&&(e.splice(t,3),t-=3,Pc(f,{pending:!0,data:r,method:n.method,action:i},i,r))}}))}function hi(e){function t(T){return Fs(T,e)}Qn!==null&&Fs(Qn,e),Xn!==null&&Fs(Xn,e),Zn!==null&&Fs(Zn,e),Ea.forEach(t),wa.forEach(t);for(var n=0;n<Jn.length;n++){var i=Jn[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Jn.length&&(n=Jn[0],n.blockedOn===null);)Vm(n),n.blockedOn===null&&Jn.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var r=n[i],f=n[i+1],d=r[ht]||null;if(typeof f=="function")d||Xm(n);else if(d){var y=null;if(f&&f.hasAttribute("formAction")){if(r=f,d=f[ht]||null)y=d.formAction;else if(ef(r)!==null)continue}else y=d.action;typeof y=="function"?n[i+1]=y:(n.splice(i,3),i-=3),Xm(n)}}}function Zm(){function e(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(d){return r=d})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),i||setTimeout(n,20)}function n(){if(!i&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function nf(e){this._internalRoot=e}eu.prototype.render=nf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,i=xt();qm(n,i,e,t,null,null)},eu.prototype.unmount=nf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;qm(e.current,2,null,e,null,null),Us(),t[Cl]=null}};function eu(e){this._internalRoot=e}eu.prototype.unstable_scheduleHydration=function(e){if(e){var t=lo();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Jn.length&&t!==0&&t<Jn[n].priority;n++);Jn.splice(n,0,e),n===0&&Vm(e)}};var Jm=l.version;if(Jm!=="19.2.1")throw Error(s(527,Jm,"19.2.1"));G.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=g(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var y1={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var tu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!tu.isDisabled&&tu.supportsFiber)try{Li=tu.inject(y1),wt=tu}catch{}}return _a.createRoot=function(e,t){if(!c(e))throw Error(s(299));var n=!1,i="",r=nd,f=ld,d=id;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=Bm(e,1,!1,null,null,n,i,null,r,f,d,Zm),e[Cl]=t.current,Br(e),new nf(t)},_a.hydrateRoot=function(e,t,n){if(!c(e))throw Error(s(299));var i=!1,r="",f=nd,d=ld,y=id,T=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(f=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(y=n.onRecoverableError),n.formState!==void 0&&(T=n.formState)),t=Bm(e,1,!0,t,n??null,i,r,T,f,d,y,Zm),t.context=km(null),n=t.current,i=xt(),i=Qu(i),r=Un(i),r.callback=null,Rn(n,r,i),n=i,t.current.lanes=n,Ri(t,n),en(t),e[Cl]=t.current,Br(e),new eu(t)},_a.version="19.2.1",_a}var ug;function j1(){if(ug)return sf.exports;ug=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(l){console.error(l)}}return u(),sf.exports=R1(),sf.exports}var B1=j1();const k1="modulepreload",q1=function(u){return"/"+u},cg={},H1=function(l,a,s){let c=Promise.resolve();if(a&&a.length>0){let h=function(g){return Promise.all(g.map(b=>Promise.resolve(b).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const m=document.querySelector("meta[property=csp-nonce]"),p=(m==null?void 0:m.nonce)||(m==null?void 0:m.getAttribute("nonce"));c=h(a.map(g=>{if(g=q1(g),g in cg)return;cg[g]=!0;const b=g.endsWith(".css"),v=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${v}`))return;const O=document.createElement("link");if(O.rel=b?"stylesheet":k1,b||(O.as="script"),O.crossOrigin="",O.href=g,p&&O.setAttribute("nonce",p),document.head.appendChild(O),b)return new Promise((E,x)=>{O.addEventListener("load",E),O.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${g}`)))})}))}function o(h){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=h,window.dispatchEvent(m),!m.defaultPrevented)throw h}return c.then(h=>{for(const m of h||[])m.status==="rejected"&&o(m.reason);return l().catch(o)})};function Y1(u,l){const a=/(\x1b\[(\d+(;\d+)*)m)|([^\x1b]+)/g,s=[];let c,o={},h=!1,m=l==null?void 0:l.fg,p=l==null?void 0:l.bg;for(;(c=a.exec(u))!==null;){const[,,g,,b]=c;if(g)for(const v of g.split(";")){const O=+v;switch(O){case 0:o={};break;case 1:o["font-weight"]="bold";break;case 2:o.opacity="0.8";break;case 3:o["font-style"]="italic";break;case 4:o["text-decoration"]="underline";break;case 7:h=!0;break;case 8:o.display="none";break;case 9:o["text-decoration"]="line-through";break;case 22:delete o["font-weight"],delete o["font-style"],delete o.opacity,delete o["text-decoration"];break;case 23:delete o["font-weight"],delete o["font-style"],delete o.opacity;break;case 24:delete o["text-decoration"];break;case 27:h=!1;break;case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:m=rg[O-30];break;case 39:m=l==null?void 0:l.fg;break;case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:p=rg[O-40];break;case 49:p=l==null?void 0:l.bg;break;case 53:o["text-decoration"]="overline";break;case 90:case 91:case 92:case 93:case 94:case 95:case 96:case 97:m=fg[O-90];break;case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:p=fg[O-100];break}}else if(b){const v={...o},O=h?p:m;O!==void 0&&(v.color=O),h&&m&&(v["background-color"]=m),s.push(`<span style="${K1(v)}">${$1(b)}</span>`)}}return s.join("")}const rg={0:"var(--vscode-terminal-ansiBlack)",1:"var(--vscode-terminal-ansiRed)",2:"var(--vscode-terminal-ansiGreen)",3:"var(--vscode-terminal-ansiYellow)",4:"var(--vscode-terminal-ansiBlue)",5:"var(--vscode-terminal-ansiMagenta)",6:"var(--vscode-terminal-ansiCyan)",7:"var(--vscode-terminal-ansiWhite)"},fg={0:"var(--vscode-terminal-ansiBrightBlack)",1:"var(--vscode-terminal-ansiBrightRed)",2:"var(--vscode-terminal-ansiBrightGreen)",3:"var(--vscode-terminal-ansiBrightYellow)",4:"var(--vscode-terminal-ansiBrightBlue)",5:"var(--vscode-terminal-ansiBrightMagenta)",6:"var(--vscode-terminal-ansiBrightCyan)",7:"var(--vscode-terminal-ansiBrightWhite)"};function $1(u){return u.replace(/[&"<>]/g,l=>({"&":"&amp;",'"':"&quot;","<":"&lt;",">":"&gt;"})[l])}function K1(u){return Object.entries(u).map(([l,a])=>`${l}: ${a}`).join("; ")}const ff=({text:u,highlighter:l,mimeType:a,linkify:s,readOnly:c,highlight:o,revealLine:h,lineNumbers:m,isFocused:p,focusOnChange:g,wrapLines:b,onChange:v,dataTestId:O,placeholder:E})=>{const[x,S]=Mg(),[w]=he.useState(H1(()=>import("./codeMirrorModule-DeBYQozu.js"),__vite__mapDeps([0,1])).then(Q=>Q.default)),M=he.useRef(null),[R,K]=he.useState();return he.useEffect(()=>{(async()=>{var V,U;const Q=await w;V1(Q);const Z=S.current;if(!Z)return;const W=X1(l)||Q1(a)||(s?"text/linkified":"");if(M.current&&W===M.current.cm.getOption("mode")&&!!c===M.current.cm.getOption("readOnly")&&m===M.current.cm.getOption("lineNumbers")&&b===M.current.cm.getOption("lineWrapping")&&E===M.current.cm.getOption("placeholder"))return;(U=(V=M.current)==null?void 0:V.cm)==null||U.getWrapperElement().remove();const k=Q(Z,{value:"",mode:W,readOnly:!!c,lineNumbers:m,lineWrapping:b,placeholder:E,matchBrackets:!0,autoCloseBrackets:!0,extraKeys:{"Ctrl-F":"findPersistent","Cmd-F":"findPersistent"}});return M.current={cm:k},p&&k.focus(),K(k),k})()},[w,R,S,l,a,s,m,b,c,p,E]),he.useEffect(()=>{M.current&&M.current.cm.setSize(x.width,x.height)},[x]),he.useLayoutEffect(()=>{var W;if(!R)return;let Q=!1;if(R.getValue()!==u&&(R.setValue(u),Q=!0,g&&(R.execCommand("selectAll"),R.focus())),Q||JSON.stringify(o)!==JSON.stringify(M.current.highlight)){for(const U of M.current.highlight||[])R.removeLineClass(U.line-1,"wrap");for(const U of o||[])R.addLineClass(U.line-1,"wrap",`source-line-${U.type}`);for(const U of M.current.widgets||[])R.removeLineWidget(U);for(const U of M.current.markers||[])U.clear();const k=[],V=[];for(const U of o||[]){if(U.type!=="subtle-error"&&U.type!=="error")continue;const ae=(W=M.current)==null?void 0:W.cm.getLine(U.line-1);if(ae){const te={};te.title=U.message||"",V.push(R.markText({line:U.line-1,ch:0},{line:U.line-1,ch:U.column||ae.length},{className:"source-line-error-underline",attributes:te}))}if(U.type==="error"){const te=document.createElement("div");te.innerHTML=Y1(U.message||"",{bg:"var(--vscode-inputValidation-errorBackground)",fg:"var(--vscode-editor-foreground)"}),te.className="source-line-error-widget",k.push(R.addLineWidget(U.line,te,{above:!0,coverGutter:!1}))}}M.current.highlight=o,M.current.widgets=k,M.current.markers=V}typeof h=="number"&&M.current.cm.lineCount()>=h&&R.scrollIntoView({line:Math.max(0,h-1),ch:0},50);let Z;return v&&(Z=()=>v(R.getValue()),R.on("change",Z)),()=>{Z&&R.off("change",Z)}},[R,u,o,h,g,v]),X.jsx("div",{"data-testid":O,className:"cm-wrapper",ref:S,onClick:G1})};function G1(u){var a;if(!(u.target instanceof HTMLElement))return;let l;u.target.classList.contains("cm-linkified")?l=u.target.textContent:u.target.classList.contains("cm-link")&&((a=u.target.nextElementSibling)!=null&&a.classList.contains("cm-url"))&&(l=u.target.nextElementSibling.textContent.slice(1,-1)),l&&(u.preventDefault(),u.stopPropagation(),window.open(l,"_blank"))}let og=!1;function V1(u){og||(og=!0,u.defineSimpleMode("text/linkified",{start:[{regex:A1,token:"linkified"}]}))}function Q1(u){if(u){if(u.includes("javascript")||u.includes("json"))return"javascript";if(u.includes("python"))return"python";if(u.includes("csharp"))return"text/x-csharp";if(u.includes("java"))return"text/x-java";if(u.includes("markdown"))return"markdown";if(u.includes("html")||u.includes("svg"))return"htmlmixed";if(u.includes("css"))return"css"}}function X1(u){if(u)return{javascript:"javascript",jsonl:"javascript",python:"python",csharp:"text/x-csharp",java:"text/x-java",markdown:"markdown",html:"htmlmixed",css:"css",yaml:"yaml"}[u]}const Z1=50,J1=({sidebarSize:u,sidebarHidden:l=!1,sidebarIsFirst:a=!1,orientation:s="vertical",minSidebarSize:c=Z1,settingName:o,sidebar:h,main:m})=>{const p=Math.max(c,u)*window.devicePixelRatio,[g,b]=pu(o?o+"."+s+":size":void 0,p),[v,O]=pu(o?o+"."+s+":size":void 0,p),[E,x]=he.useState(null),[S,w]=Mg();let M;s==="vertical"?(M=v/window.devicePixelRatio,S&&S.height<M&&(M=S.height-10)):(M=g/window.devicePixelRatio,S&&S.width<M&&(M=S.width-10)),document.body.style.userSelect=E?"none":"inherit";let R={};return s==="vertical"?a?R={top:E?0:M-4,bottom:E?0:void 0,height:E?"initial":8}:R={bottom:E?0:M-4,top:E?0:void 0,height:E?"initial":8}:a?R={left:E?0:M-4,right:E?0:void 0,width:E?"initial":8}:R={right:E?0:M-4,left:E?0:void 0,width:E?"initial":8},X.jsxs("div",{className:Ol("split-view",s,a&&"sidebar-first"),ref:w,children:[X.jsx("div",{className:"split-view-main",children:m}),!l&&X.jsx("div",{style:{flexBasis:M},className:"split-view-sidebar",children:h}),!l&&X.jsx("div",{style:R,className:"split-view-resizer",onMouseDown:K=>x({offset:s==="vertical"?K.clientY:K.clientX,size:M}),onMouseUp:()=>x(null),onMouseMove:K=>{if(!K.buttons)x(null);else if(E){const Z=(s==="vertical"?K.clientY:K.clientX)-E.offset,W=a?E.size+Z:E.size-Z,V=K.target.parentElement.getBoundingClientRect(),U=Math.min(Math.max(c,W),(s==="vertical"?V.height:V.width)-c);s==="vertical"?O(U*window.devicePixelRatio):b(U*window.devicePixelRatio)}}})]})},xg=({noShadow:u,children:l,noMinHeight:a,className:s,sidebarBackground:c,onClick:o})=>X.jsx("div",{className:Ol("toolbar",u&&"no-shadow",a&&"no-min-height",s,c&&"toolbar-sidebar-background"),onClick:o,children:l}),W1=({tabs:u,selectedTab:l,setSelectedTab:a,leftToolbar:s,rightToolbar:c,dataTestId:o,mode:h})=>{const m=he.useId(),p=he.useRef(null);l||(l=u[0].id),h||(h="default");const g=b=>{var x;const v=Array.from(((x=p.current)==null?void 0:x.querySelectorAll('[role="tab"]'))??[]),O=v.findIndex(S=>S===document.activeElement);if(O===-1)return;let E=O;if(b.key==="ArrowRight")E=(O+1)%v.length;else if(b.key==="ArrowLeft")E=(O-1+v.length)%v.length;else if(b.key==="Home")E=0;else if(b.key==="End")E=v.length-1;else return;b.preventDefault(),v[E].focus(),a==null||a(u[E].id)};return X.jsx("div",{className:"tabbed-pane","data-testid":o,children:X.jsxs("div",{className:"vbox",children:[X.jsxs(xg,{children:[s&&X.jsxs("div",{style:{flex:"none",display:"flex",margin:"0 4px",alignItems:"center"},children:[...s]}),h==="default"&&X.jsx("div",{style:{flex:"auto",display:"flex",height:"100%",overflow:"hidden"},role:"tablist",onKeyDown:g,ref:p,children:[...u.map(b=>X.jsx(I1,{id:b.id,ariaControls:`${m}-${b.id}`,title:b.title,count:b.count,errorCount:b.errorCount,selected:l===b.id,onSelect:a,tabIndex:l===b.id?0:-1},b.id))]}),h==="select"&&X.jsx("div",{style:{flex:"auto",display:"flex",height:"100%",overflow:"hidden"},role:"tablist",children:X.jsx("select",{style:{width:"100%",background:"none",cursor:"pointer"},value:l,onChange:b=>{a==null||a(u[b.currentTarget.selectedIndex].id)},children:u.map(b=>{let v="";return b.count&&(v=` (${b.count})`),b.errorCount&&(v=` (${b.errorCount})`),X.jsxs("option",{value:b.id,role:"tab","aria-controls":`${m}-${b.id}`,children:[b.title,v]},b.id)})})}),c&&X.jsxs("div",{style:{flex:"none",display:"flex",alignItems:"center"},children:[...c]})]}),u.map(b=>{const v="tab-content tab-"+b.id;if(b.component)return X.jsx("div",{id:`${m}-${b.id}`,role:"tabpanel","aria-label":b.title,className:v,style:{display:l===b.id?"inherit":"none"},children:b.component},b.id);if(l===b.id)return X.jsx("div",{id:`${m}-${b.id}`,role:"tabpanel","aria-label":b.title,className:v,children:b.render()},b.id)})]})})},I1=({id:u,title:l,count:a,errorCount:s,selected:c,onSelect:o,ariaControls:h,tabIndex:m})=>X.jsxs("div",{className:Ol("tabbed-pane-tab",c&&"selected"),onClick:()=>o==null?void 0:o(u),role:"tab",title:l,tabIndex:m??(c?0:-1),"aria-controls":h,"aria-selected":c,children:[X.jsx("div",{className:"tabbed-pane-tab-label",children:l}),!!a&&X.jsx("div",{className:"tabbed-pane-tab-counter",children:a}),!!s&&X.jsx("div",{className:"tabbed-pane-tab-counter error",children:s})]}),F1=({sources:u,fileId:l,setFileId:a})=>X.jsx("select",{className:"source-chooser",hidden:!u.length,title:"Source chooser",value:l,onChange:s=>{a(s.target.selectedOptions[0].value)},children:P1(u)});function P1(u){const l=c=>c.replace(/.*[/\\]([^/\\]+)/,"$1"),a=c=>X.jsx("option",{value:c.id,children:l(c.label)},c.id),s=new Map;for(const c of u){let o=s.get(c.group||"Debugger");o||(o=[],s.set(c.group||"Debugger",o)),o.push(c)}return[...s.entries()].map(([c,o])=>X.jsx("optgroup",{label:c,children:o.filter(h=>(h.group||"Debugger")===c).map(h=>a(h))},c))}function ev(){return{id:"default",isRecorded:!1,text:"",language:"javascript",label:"",highlight:[]}}const Dt=he.forwardRef(function({children:l,title:a="",icon:s,disabled:c=!1,toggled:o=!1,onClick:h=()=>{},style:m,testId:p,className:g,ariaLabel:b,errorBadge:v},O){const E=he.useId();return X.jsxs("button",{ref:O,className:Ol(g,"toolbar-button",s,o&&"toggled"),onMouseDown:dg,onClick:h,onDoubleClick:dg,title:a,disabled:!!c,style:m,"data-testid":p,"aria-label":b||a,"aria-describedby":v?E:void 0,children:[s&&X.jsx("span",{className:`codicon codicon-${s}`,style:l?{marginRight:5}:{}}),l,v&&X.jsx("span",{id:E,className:"toolbar-button-error-badge",title:v,"aria-label":v})]})}),hg=({style:u})=>X.jsx("div",{className:"toolbar-separator",style:u}),dg=u=>{u.stopPropagation(),u.preventDefault()};function tv(u){if(u<0||!isFinite(u))return"-";if(u===0)return"0ms";if(u<1e3)return u.toFixed(0)+"ms";const l=u/1e3;if(l<60)return l.toFixed(1)+"s";const a=l/60;if(a<60)return a.toFixed(1)+"m";const s=a/60;return s<24?s.toFixed(1)+"h":(s/24).toFixed(1)+"d"}const We=function(u,l,a){return u>=l&&u<=a};function bt(u){return We(u,48,57)}function mg(u){return bt(u)||We(u,65,70)||We(u,97,102)}function nv(u){return We(u,65,90)}function lv(u){return We(u,97,122)}function iv(u){return nv(u)||lv(u)}function av(u){return u>=128}function uu(u){return iv(u)||av(u)||u===95}function gg(u){return uu(u)||bt(u)||u===45}function sv(u){return We(u,0,8)||u===11||We(u,14,31)||u===127}function cu(u){return u===10}function En(u){return cu(u)||u===9||u===32}const uv=1114111;class Df extends Error{constructor(l){super(l),this.name="InvalidCharacterError"}}function cv(u){const l=[];for(let a=0;a<u.length;a++){let s=u.charCodeAt(a);if(s===13&&u.charCodeAt(a+1)===10&&(s=10,a++),(s===13||s===12)&&(s=10),s===0&&(s=65533),We(s,55296,56319)&&We(u.charCodeAt(a+1),56320,57343)){const c=s-55296,o=u.charCodeAt(a+1)-56320;s=Math.pow(2,16)+c*Math.pow(2,10)+o,a++}l.push(s)}return l}function Fe(u){if(u<=65535)return String.fromCharCode(u);u-=Math.pow(2,16);const l=Math.floor(u/Math.pow(2,10))+55296,a=u%Math.pow(2,10)+56320;return String.fromCharCode(l)+String.fromCharCode(a)}function rv(u){const l=cv(u);let a=-1;const s=[];let c;const o=function($){return $>=l.length?-1:l[$]},h=function($){if($===void 0&&($=1),$>3)throw"Spec Error: no more than three codepoints of lookahead.";return o(a+$)},m=function($){return $===void 0&&($=1),a+=$,c=o(a),!0},p=function(){return a-=1,!0},g=function($){return $===void 0&&($=c),$===-1},b=function(){if(v(),m(),En(c)){for(;En(h());)m();return new wf}else{if(c===34)return x();if(c===35)if(gg(h())||M(h(1),h(2))){const $=new Qg("");return K(h(1),h(2),h(3))&&($.type="id"),$.value=k(),$}else return new ut(c);else return c===36?h()===61?(m(),new dv):new ut(c):c===39?x():c===40?new Yg:c===41?new $g:c===42?h()===61?(m(),new mv):new ut(c):c===43?W()?(p(),O()):new ut(c):c===44?new Bg:c===45?W()?(p(),O()):h(1)===45&&h(2)===62?(m(2),new Ug):Q()?(p(),E()):new ut(c):c===46?W()?(p(),O()):new ut(c):c===58?new Rg:c===59?new jg:c===60?h(1)===33&&h(2)===45&&h(3)===45?(m(3),new Lg):new ut(c):c===64?K(h(1),h(2),h(3))?new Vg(k()):new ut(c):c===91?new Hg:c===92?R()?(p(),E()):new ut(c):c===93?new Af:c===94?h()===61?(m(),new hv):new ut(c):c===123?new kg:c===124?h()===61?(m(),new ov):h()===124?(m(),new Kg):new ut(c):c===125?new qg:c===126?h()===61?(m(),new fv):new ut(c):bt(c)?(p(),O()):uu(c)?(p(),E()):g()?new fu:new ut(c)}},v=function(){for(;h(1)===47&&h(2)===42;)for(m(2);;)if(m(),c===42&&h()===47){m();break}else if(g())return},O=function(){const $=V();if(K(h(1),h(2),h(3))){const ee=new gv;return ee.value=$.value,ee.repr=$.repr,ee.type=$.type,ee.unit=k(),ee}else if(h()===37){m();const ee=new Wg;return ee.value=$.value,ee.repr=$.repr,ee}else{const ee=new Jg;return ee.value=$.value,ee.repr=$.repr,ee.type=$.type,ee}},E=function(){const $=k();if($.toLowerCase()==="url"&&h()===40){for(m();En(h(1))&&En(h(2));)m();return h()===34||h()===39?new ou($):En(h())&&(h(2)===34||h(2)===39)?new ou($):S()}else return h()===40?(m(),new ou($)):new Gg($)},x=function($){$===void 0&&($=c);let ee="";for(;m();){if(c===$||g())return new Xg(ee);if(cu(c))return p(),new Dg;c===92?g(h())||(cu(h())?m():ee+=Fe(w())):ee+=Fe(c)}throw new Error("Internal error")},S=function(){const $=new Zg("");for(;En(h());)m();if(g(h()))return $;for(;m();){if(c===41||g())return $;if(En(c)){for(;En(h());)m();return h()===41||g(h())?(m(),$):(ae(),new ru)}else{if(c===34||c===39||c===40||sv(c))return ae(),new ru;if(c===92)if(R())$.value+=Fe(w());else return ae(),new ru;else $.value+=Fe(c)}}throw new Error("Internal error")},w=function(){if(m(),mg(c)){const $=[c];for(let we=0;we<5&&mg(h());we++)m(),$.push(c);En(h())&&m();let ee=parseInt($.map(function(we){return String.fromCharCode(we)}).join(""),16);return ee>uv&&(ee=65533),ee}else return g()?65533:c},M=function($,ee){return!($!==92||cu(ee))},R=function(){return M(c,h())},K=function($,ee,we){return $===45?uu(ee)||ee===45||M(ee,we):uu($)?!0:$===92?M($,ee):!1},Q=function(){return K(c,h(1),h(2))},Z=function($,ee,we){return $===43||$===45?!!(bt(ee)||ee===46&&bt(we)):$===46?!!bt(ee):!!bt($)},W=function(){return Z(c,h(1),h(2))},k=function(){let $="";for(;m();)if(gg(c))$+=Fe(c);else if(R())$+=Fe(w());else return p(),$;throw new Error("Internal parse error")},V=function(){let $="",ee="integer";for((h()===43||h()===45)&&(m(),$+=Fe(c));bt(h());)m(),$+=Fe(c);if(h(1)===46&&bt(h(2)))for(m(),$+=Fe(c),m(),$+=Fe(c),ee="number";bt(h());)m(),$+=Fe(c);const we=h(1),se=h(2),D=h(3);if((we===69||we===101)&&bt(se))for(m(),$+=Fe(c),m(),$+=Fe(c),ee="number";bt(h());)m(),$+=Fe(c);else if((we===69||we===101)&&(se===43||se===45)&&bt(D))for(m(),$+=Fe(c),m(),$+=Fe(c),m(),$+=Fe(c),ee="number";bt(h());)m(),$+=Fe(c);const G=U($);return{type:ee,value:G,repr:$}},U=function($){return+$},ae=function(){for(;m();){if(c===41||g())return;R()&&w()}};let te=0;for(;!g(h());)if(s.push(b()),te++,te>l.length*2)throw new Error("I'm infinite-looping!");return s}class Ve{constructor(){this.tokenType=""}toJSON(){return{token:this.tokenType}}toString(){return this.tokenType}toSource(){return""+this}}class Dg extends Ve{constructor(){super(...arguments),this.tokenType="BADSTRING"}}class ru extends Ve{constructor(){super(...arguments),this.tokenType="BADURL"}}class wf extends Ve{constructor(){super(...arguments),this.tokenType="WHITESPACE"}toString(){return"WS"}toSource(){return" "}}class Lg extends Ve{constructor(){super(...arguments),this.tokenType="CDO"}toSource(){return"<!--"}}class Ug extends Ve{constructor(){super(...arguments),this.tokenType="CDC"}toSource(){return"-->"}}class Rg extends Ve{constructor(){super(...arguments),this.tokenType=":"}}class jg extends Ve{constructor(){super(...arguments),this.tokenType=";"}}class Bg extends Ve{constructor(){super(...arguments),this.tokenType=","}}class Ai extends Ve{constructor(){super(...arguments),this.value="",this.mirror=""}}class kg extends Ai{constructor(){super(),this.tokenType="{",this.value="{",this.mirror="}"}}class qg extends Ai{constructor(){super(),this.tokenType="}",this.value="}",this.mirror="{"}}class Hg extends Ai{constructor(){super(),this.tokenType="[",this.value="[",this.mirror="]"}}class Af extends Ai{constructor(){super(),this.tokenType="]",this.value="]",this.mirror="["}}class Yg extends Ai{constructor(){super(),this.tokenType="(",this.value="(",this.mirror=")"}}class $g extends Ai{constructor(){super(),this.tokenType=")",this.value=")",this.mirror="("}}class fv extends Ve{constructor(){super(...arguments),this.tokenType="~="}}class ov extends Ve{constructor(){super(...arguments),this.tokenType="|="}}class hv extends Ve{constructor(){super(...arguments),this.tokenType="^="}}class dv extends Ve{constructor(){super(...arguments),this.tokenType="$="}}class mv extends Ve{constructor(){super(...arguments),this.tokenType="*="}}class Kg extends Ve{constructor(){super(...arguments),this.tokenType="||"}}class fu extends Ve{constructor(){super(...arguments),this.tokenType="EOF"}toSource(){return""}}class ut extends Ve{constructor(l){super(),this.tokenType="DELIM",this.value="",this.value=Fe(l)}toString(){return"DELIM("+this.value+")"}toJSON(){const l=this.constructor.prototype.constructor.prototype.toJSON.call(this);return l.value=this.value,l}toSource(){return this.value==="\\"?`\\
51
+ `:this.value}}class Oi extends Ve{constructor(){super(...arguments),this.value=""}ASCIIMatch(l){return this.value.toLowerCase()===l.toLowerCase()}toJSON(){const l=this.constructor.prototype.constructor.prototype.toJSON.call(this);return l.value=this.value,l}}class Gg extends Oi{constructor(l){super(),this.tokenType="IDENT",this.value=l}toString(){return"IDENT("+this.value+")"}toSource(){return Ua(this.value)}}class ou extends Oi{constructor(l){super(),this.tokenType="FUNCTION",this.value=l,this.mirror=")"}toString(){return"FUNCTION("+this.value+")"}toSource(){return Ua(this.value)+"("}}class Vg extends Oi{constructor(l){super(),this.tokenType="AT-KEYWORD",this.value=l}toString(){return"AT("+this.value+")"}toSource(){return"@"+Ua(this.value)}}class Qg extends Oi{constructor(l){super(),this.tokenType="HASH",this.value=l,this.type="unrestricted"}toString(){return"HASH("+this.value+")"}toJSON(){const l=this.constructor.prototype.constructor.prototype.toJSON.call(this);return l.value=this.value,l.type=this.type,l}toSource(){return this.type==="id"?"#"+Ua(this.value):"#"+pv(this.value)}}class Xg extends Oi{constructor(l){super(),this.tokenType="STRING",this.value=l}toString(){return'"'+Ig(this.value)+'"'}}class Zg extends Oi{constructor(l){super(),this.tokenType="URL",this.value=l}toString(){return"URL("+this.value+")"}toSource(){return'url("'+Ig(this.value)+'")'}}class Jg extends Ve{constructor(){super(),this.tokenType="NUMBER",this.type="integer",this.repr=""}toString(){return this.type==="integer"?"INT("+this.value+")":"NUMBER("+this.value+")"}toJSON(){const l=super.toJSON();return l.value=this.value,l.type=this.type,l.repr=this.repr,l}toSource(){return this.repr}}class Wg extends Ve{constructor(){super(),this.tokenType="PERCENTAGE",this.repr=""}toString(){return"PERCENTAGE("+this.value+")"}toJSON(){const l=this.constructor.prototype.constructor.prototype.toJSON.call(this);return l.value=this.value,l.repr=this.repr,l}toSource(){return this.repr+"%"}}class gv extends Ve{constructor(){super(),this.tokenType="DIMENSION",this.type="integer",this.repr="",this.unit=""}toString(){return"DIM("+this.value+","+this.unit+")"}toJSON(){const l=this.constructor.prototype.constructor.prototype.toJSON.call(this);return l.value=this.value,l.type=this.type,l.repr=this.repr,l.unit=this.unit,l}toSource(){const l=this.repr;let a=Ua(this.unit);return a[0].toLowerCase()==="e"&&(a[1]==="-"||We(a.charCodeAt(1),48,57))&&(a="\\65 "+a.slice(1,a.length)),l+a}}function Ua(u){u=""+u;let l="";const a=u.charCodeAt(0);for(let s=0;s<u.length;s++){const c=u.charCodeAt(s);if(c===0)throw new Df("Invalid character: the input contains U+0000.");We(c,1,31)||c===127||s===0&&We(c,48,57)||s===1&&We(c,48,57)&&a===45?l+="\\"+c.toString(16)+" ":c>=128||c===45||c===95||We(c,48,57)||We(c,65,90)||We(c,97,122)?l+=u[s]:l+="\\"+u[s]}return l}function pv(u){u=""+u;let l="";for(let a=0;a<u.length;a++){const s=u.charCodeAt(a);if(s===0)throw new Df("Invalid character: the input contains U+0000.");s>=128||s===45||s===95||We(s,48,57)||We(s,65,90)||We(s,97,122)?l+=u[a]:l+="\\"+s.toString(16)+" "}return l}function Ig(u){u=""+u;let l="";for(let a=0;a<u.length;a++){const s=u.charCodeAt(a);if(s===0)throw new Df("Invalid character: the input contains U+0000.");We(s,1,31)||s===127?l+="\\"+s.toString(16)+" ":s===34||s===92?l+="\\"+u[a]:l+=u[a]}return l}class St extends Error{}function yv(u,l){let a;try{a=rv(u),a[a.length-1]instanceof fu||a.push(new fu)}catch(U){const ae=U.message+` while parsing css selector "${u}". Did you mean to CSS.escape it?`,te=(U.stack||"").indexOf(U.message);throw te!==-1&&(U.stack=U.stack.substring(0,te)+ae+U.stack.substring(te+U.message.length)),U.message=ae,U}const s=a.find(U=>U instanceof Vg||U instanceof Dg||U instanceof ru||U instanceof Kg||U instanceof Lg||U instanceof Ug||U instanceof jg||U instanceof kg||U instanceof qg||U instanceof Zg||U instanceof Wg);if(s)throw new St(`Unsupported token "${s.toSource()}" while parsing css selector "${u}". Did you mean to CSS.escape it?`);let c=0;const o=new Set;function h(){return new St(`Unexpected token "${a[c].toSource()}" while parsing css selector "${u}". Did you mean to CSS.escape it?`)}function m(){for(;a[c]instanceof wf;)c++}function p(U=c){return a[U]instanceof Gg}function g(U=c){return a[U]instanceof Xg}function b(U=c){return a[U]instanceof Jg}function v(U=c){return a[U]instanceof Bg}function O(U=c){return a[U]instanceof Yg}function E(U=c){return a[U]instanceof $g}function x(U=c){return a[U]instanceof ou}function S(U=c){return a[U]instanceof ut&&a[U].value==="*"}function w(U=c){return a[U]instanceof fu}function M(U=c){return a[U]instanceof ut&&[">","+","~"].includes(a[U].value)}function R(U=c){return v(U)||E(U)||w(U)||M(U)||a[U]instanceof wf}function K(){const U=[Q()];for(;m(),!!v();)c++,U.push(Q());return U}function Q(){return m(),b()||g()?a[c++].value:Z()}function Z(){const U={simples:[]};for(m(),M()?U.simples.push({selector:{functions:[{name:"scope",args:[]}]},combinator:""}):U.simples.push({selector:W(),combinator:""});;){if(m(),M())U.simples[U.simples.length-1].combinator=a[c++].value,m();else if(R())break;U.simples.push({combinator:"",selector:W()})}return U}function W(){let U="";const ae=[];for(;!R();)if(p()||S())U+=a[c++].toSource();else if(a[c]instanceof Qg)U+=a[c++].toSource();else if(a[c]instanceof ut&&a[c].value===".")if(c++,p())U+="."+a[c++].toSource();else throw h();else if(a[c]instanceof Rg)if(c++,p())if(!l.has(a[c].value.toLowerCase()))U+=":"+a[c++].toSource();else{const te=a[c++].value.toLowerCase();ae.push({name:te,args:[]}),o.add(te)}else if(x()){const te=a[c++].value.toLowerCase();if(l.has(te)?(ae.push({name:te,args:K()}),o.add(te)):U+=`:${te}(${k()})`,m(),!E())throw h();c++}else throw h();else if(a[c]instanceof Hg){for(U+="[",c++;!(a[c]instanceof Af)&&!w();)U+=a[c++].toSource();if(!(a[c]instanceof Af))throw h();U+="]",c++}else throw h();if(!U&&!ae.length)throw h();return{css:U||void 0,functions:ae}}function k(){let U="",ae=1;for(;!w()&&((O()||x())&&ae++,E()&&ae--,!!ae);)U+=a[c++].toSource();return U}const V=K();if(!w())throw h();if(V.some(U=>typeof U!="object"||!("simples"in U)))throw new St(`Error while parsing css selector "${u}". Did you mean to CSS.escape it?`);return{selector:V,names:Array.from(o)}}const pg=new Set(["internal:has","internal:has-not","internal:and","internal:or","internal:chain","left-of","right-of","above","below","near"]),vv=new Set(["left-of","right-of","above","below","near"]),bv=new Set(["not","is","where","has","scope","light","visible","text","text-matches","text-is","has-text","above","below","right-of","left-of","near","nth-match"]);function Fg(u){const l=Tv(u),a=[];for(const s of l.parts){if(s.name==="css"||s.name==="css:light"){s.name==="css:light"&&(s.body=":light("+s.body+")");const c=yv(s.body,bv);a.push({name:"css",body:c.selector,source:s.body});continue}if(pg.has(s.name)){let c,o;try{const g=JSON.parse("["+s.body+"]");if(!Array.isArray(g)||g.length<1||g.length>2||typeof g[0]!="string")throw new St(`Malformed selector: ${s.name}=`+s.body);if(c=g[0],g.length===2){if(typeof g[1]!="number"||!vv.has(s.name))throw new St(`Malformed selector: ${s.name}=`+s.body);o=g[1]}}catch{throw new St(`Malformed selector: ${s.name}=`+s.body)}const h={name:s.name,source:s.body,body:{parsed:Fg(c),distance:o}},m=[...h.body.parsed.parts].reverse().find(g=>g.name==="internal:control"&&g.body==="enter-frame"),p=m?h.body.parsed.parts.indexOf(m):-1;p!==-1&&Sv(h.body.parsed.parts.slice(0,p+1),a.slice(0,p+1))&&h.body.parsed.parts.splice(0,p+1),a.push(h);continue}a.push({...s,source:s.body})}if(pg.has(a[0].name))throw new St(`"${a[0].name}" selector cannot be first`);return{capture:l.capture,parts:a}}function Sv(u,l){return In({parts:u})===In({parts:l})}function In(u,l){return typeof u=="string"?u:u.parts.map((a,s)=>{let c=!0;!l&&s!==u.capture&&(a.name==="css"||a.name==="xpath"&&a.source.startsWith("//")||a.source.startsWith(".."))&&(c=!1);const o=c?a.name+"=":"";return`${s===u.capture?"*":""}${o}${a.source}`}).join(" >> ")}function Tv(u){let l=0,a,s=0;const c={parts:[]},o=()=>{const m=u.substring(s,l).trim(),p=m.indexOf("=");let g,b;p!==-1&&m.substring(0,p).trim().match(/^[a-zA-Z_0-9-+:*]+$/)?(g=m.substring(0,p).trim(),b=m.substring(p+1)):m.length>1&&m[0]==='"'&&m[m.length-1]==='"'||m.length>1&&m[0]==="'"&&m[m.length-1]==="'"?(g="text",b=m):/^\(*\/\//.test(m)||m.startsWith("..")?(g="xpath",b=m):(g="css",b=m);let v=!1;if(g[0]==="*"&&(v=!0,g=g.substring(1)),c.parts.push({name:g,body:b}),v){if(c.capture!==void 0)throw new St("Only one of the selectors can capture using * modifier");c.capture=c.parts.length-1}};if(!u.includes(">>"))return l=u.length,o(),c;const h=()=>{const p=u.substring(s,l).match(/^\s*text\s*=(.*)$/);return!!p&&!!p[1]};for(;l<u.length;){const m=u[l];m==="\\"&&l+1<u.length?l+=2:m===a?(a=void 0,l++):!a&&(m==='"'||m==="'"||m==="`")&&!h()?(a=m,l++):!a&&m===">"&&u[l+1]===">"?(o(),l+=2,s=l):l++}return o(),c}function of(u,l){let a=0,s=u.length===0;const c=()=>u[a]||"",o=()=>{const w=c();return++a,s=a>=u.length,w},h=w=>{throw s?new St(`Unexpected end of selector while parsing selector \`${u}\``):new St(`Error while parsing selector \`${u}\` - unexpected symbol "${c()}" at position ${a}`+(w?" during "+w:""))};function m(){for(;!s&&/\s/.test(c());)o()}function p(w){return w>="€"||w>="0"&&w<="9"||w>="A"&&w<="Z"||w>="a"&&w<="z"||w>="0"&&w<="9"||w==="_"||w==="-"}function g(){let w="";for(m();!s&&p(c());)w+=o();return w}function b(w){let M=o();for(M!==w&&h("parsing quoted string");!s&&c()!==w;)c()==="\\"&&o(),M+=o();return c()!==w&&h("parsing quoted string"),M+=o(),M}function v(){o()!=="/"&&h("parsing regular expression");let w="",M=!1;for(;!s;){if(c()==="\\")w+=o(),s&&h("parsing regular expression");else if(M&&c()==="]")M=!1;else if(!M&&c()==="[")M=!0;else if(!M&&c()==="/")break;w+=o()}o()!=="/"&&h("parsing regular expression");let R="";for(;!s&&c().match(/[dgimsuy]/);)R+=o();try{return new RegExp(w,R)}catch(K){throw new St(`Error while parsing selector \`${u}\`: ${K.message}`)}}function O(){let w="";return m(),c()==="'"||c()==='"'?w=b(c()).slice(1,-1):w=g(),w||h("parsing property path"),w}function E(){m();let w="";return s||(w+=o()),!s&&w!=="="&&(w+=o()),["=","*=","^=","$=","|=","~="].includes(w)||h("parsing operator"),w}function x(){o();const w=[];for(w.push(O()),m();c()===".";)o(),w.push(O()),m();if(c()==="]")return o(),{name:w.join("."),jsonPath:w,op:"<truthy>",value:null,caseSensitive:!1};const M=E();let R,K=!0;if(m(),c()==="/"){if(M!=="=")throw new St(`Error while parsing selector \`${u}\` - cannot use ${M} in attribute with regular expression`);R=v()}else if(c()==="'"||c()==='"')R=b(c()).slice(1,-1),m(),c()==="i"||c()==="I"?(K=!1,o()):(c()==="s"||c()==="S")&&(K=!0,o());else{for(R="";!s&&(p(c())||c()==="+"||c()===".");)R+=o();R==="true"?R=!0:R==="false"&&(R=!1)}if(m(),c()!=="]"&&h("parsing attribute value"),o(),M!=="="&&typeof R!="string")throw new St(`Error while parsing selector \`${u}\` - cannot use ${M} in attribute with non-string matching value - ${R}`);return{name:w.join("."),jsonPath:w,op:M,value:R,caseSensitive:K}}const S={name:"",attributes:[]};for(S.name=g(),m();c()==="[";)S.attributes.push(x()),m();if(s||h(void 0),!S.name&&!S.attributes.length)throw new St(`Error while parsing selector \`${u}\` - selector cannot be empty`);return S}function wu(u,l="'"){const a=JSON.stringify(u),s=a.substring(1,a.length-1).replace(/\\"/g,'"');if(l==="'")return l+s.replace(/[']/g,"\\'")+l;if(l==='"')return l+s.replace(/["]/g,'\\"')+l;if(l==="`")return l+s.replace(/[`]/g,"\\`")+l;throw new Error("Invalid escape char")}function yu(u){return u.charAt(0).toUpperCase()+u.substring(1)}function Pg(u){return u.replace(/([a-z0-9])([A-Z])/g,"$1_$2").replace(/([A-Z])([A-Z][a-z])/g,"$1_$2").toLowerCase()}function Au(u){return u.replace(/(^|[^\\])(\\\\)*\\(['"`])/g,"$1$2$3")}function ep(u,l,a=!1){return Ev(u,l,a,1)[0]}function Ev(u,l,a=!1,s=20,c){try{return gi(new Cv[u](c),Fg(l),a,s)}catch{return[l]}}function gi(u,l,a=!1,s=20){const c=[...l.parts],o=[];let h=a?"frame-locator":"page";for(let m=0;m<c.length;m++){const p=c[m],g=h;if(h="locator",p.name==="internal:describe")continue;if(p.name==="nth"){p.body==="0"?o.push([u.generateLocator(g,"first",""),u.generateLocator(g,"nth","0")]):p.body==="-1"?o.push([u.generateLocator(g,"last",""),u.generateLocator(g,"nth","-1")]):o.push([u.generateLocator(g,"nth",p.body)]);continue}if(p.name==="visible"){o.push([u.generateLocator(g,"visible",p.body),u.generateLocator(g,"default",`visible=${p.body}`)]);continue}if(p.name==="internal:text"){const{exact:x,text:S}=Na(p.body);o.push([u.generateLocator(g,"text",S,{exact:x})]);continue}if(p.name==="internal:has-text"){const{exact:x,text:S}=Na(p.body);if(!x){o.push([u.generateLocator(g,"has-text",S,{exact:x})]);continue}}if(p.name==="internal:has-not-text"){const{exact:x,text:S}=Na(p.body);if(!x){o.push([u.generateLocator(g,"has-not-text",S,{exact:x})]);continue}}if(p.name==="internal:has"){const x=gi(u,p.body.parsed,!1,s);o.push(x.map(S=>u.generateLocator(g,"has",S)));continue}if(p.name==="internal:has-not"){const x=gi(u,p.body.parsed,!1,s);o.push(x.map(S=>u.generateLocator(g,"hasNot",S)));continue}if(p.name==="internal:and"){const x=gi(u,p.body.parsed,!1,s);o.push(x.map(S=>u.generateLocator(g,"and",S)));continue}if(p.name==="internal:or"){const x=gi(u,p.body.parsed,!1,s);o.push(x.map(S=>u.generateLocator(g,"or",S)));continue}if(p.name==="internal:chain"){const x=gi(u,p.body.parsed,!1,s);o.push(x.map(S=>u.generateLocator(g,"chain",S)));continue}if(p.name==="internal:label"){const{exact:x,text:S}=Na(p.body);o.push([u.generateLocator(g,"label",S,{exact:x})]);continue}if(p.name==="internal:role"){const x=of(p.body),S={attrs:[]};for(const w of x.attributes)if(w.name==="name"){if(S.exact!==void 0&&S.exact!==w.caseSensitive)throw new Error(`Conflicting exactness in internal:role selector: ${In({parts:[p]})}`);S.exact=w.caseSensitive,S.name=w.value}else if(w.name==="description"){if(S.exact!==void 0&&S.exact!==w.caseSensitive)throw new Error(`Conflicting exactness in internal:role selector: ${In({parts:[p]})}`);S.exact=w.caseSensitive,S.description=w.value}else w.name==="level"&&typeof w.value=="string"&&(w.value=+w.value),S.attrs.push({name:w.name==="include-hidden"?"includeHidden":w.name,value:w.value});o.push([u.generateLocator(g,"role",x.name,S)]);continue}if(p.name==="internal:testid"){const x=of(p.body),{value:S}=x.attributes[0];o.push([u.generateLocator(g,"test-id",S)]);continue}if(p.name==="internal:attr"){const x=of(p.body),{name:S,value:w,caseSensitive:M}=x.attributes[0],R=w,K=!!M;if(S==="placeholder"){o.push([u.generateLocator(g,"placeholder",R,{exact:K})]);continue}if(S==="alt"){o.push([u.generateLocator(g,"alt",R,{exact:K})]);continue}if(S==="title"){o.push([u.generateLocator(g,"title",R,{exact:K})]);continue}}if(p.name==="internal:control"&&p.body==="enter-frame"){const x=o[o.length-1],S=c[m-1],w=x.map(M=>u.chainLocators([M,u.generateLocator(g,"frame","")]));["xpath","css"].includes(S.name)&&w.push(u.generateLocator(g,"frame-locator",In({parts:[S]})),u.generateLocator(g,"frame-locator",In({parts:[S]},!0))),x.splice(0,x.length,...w),h="frame-locator";continue}const b=c[m+1],v=In({parts:[p]}),O=u.generateLocator(g,"default",v);if(b&&["internal:has-text","internal:has-not-text"].includes(b.name)){const{exact:x,text:S}=Na(b.body);if(!x){const w=u.generateLocator("locator",b.name==="internal:has-text"?"has-text":"has-not-text",S,{exact:x}),M={};b.name==="internal:has-text"?M.hasText=S:M.hasNotText=S;const R=u.generateLocator(g,"default",v,M);o.push([u.chainLocators([O,w]),R]),m++;continue}}let E;if(["xpath","css"].includes(p.name)){const x=In({parts:[p]},!0);E=u.generateLocator(g,"default",x)}o.push([O,E].filter(Boolean))}return wv(u,o,s)}function wv(u,l,a){const s=l.map(()=>""),c=[],o=h=>{if(h===l.length)return c.push(u.chainLocators(s)),c.length<a;for(const m of l[h])if(s[h]=m,!o(h+1))return!1;return!0};return o(0),c}function Na(u){let l=!1;const a=u.match(/^\/(.*)\/([igm]*)$/);return a?{text:new RegExp(a[1],a[2])}:(u.endsWith('"')?(u=JSON.parse(u),l=!0):u.endsWith('"s')?(u=JSON.parse(u.substring(0,u.length-1)),l=!0):u.endsWith('"i')&&(u=JSON.parse(u.substring(0,u.length-1)),l=!1),{exact:l,text:u})}class Av{constructor(l){this.preferredQuote=l}generateLocator(l,a,s,c={}){switch(a){case"default":return c.hasText!==void 0?`locator(${this.quote(s)}, { hasText: ${this.toHasText(c.hasText)} })`:c.hasNotText!==void 0?`locator(${this.quote(s)}, { hasNotText: ${this.toHasText(c.hasNotText)} })`:`locator(${this.quote(s)})`;case"frame-locator":return`frameLocator(${this.quote(s)})`;case"frame":return"contentFrame()";case"nth":return`nth(${s})`;case"first":return"first()";case"last":return"last()";case"visible":return`filter({ visible: ${s==="true"?"true":"false"} })`;case"role":const o=[];Ge(c.name)?o.push(`name: ${this.regexToSourceString(c.name)}`):typeof c.name=="string"&&o.push(`name: ${this.quote(c.name)}`),Ge(c.description)?o.push(`description: ${this.regexToSourceString(c.description)}`):typeof c.description=="string"&&o.push(`description: ${this.quote(c.description)}`),c.exact&&(typeof c.name=="string"||typeof c.description=="string")&&o.push("exact: true");for(const{name:m,value:p}of c.attrs)o.push(`${m}: ${typeof p=="string"?this.quote(p):p}`);const h=o.length?`, { ${o.join(", ")} }`:"";return`getByRole(${this.quote(s)}${h})`;case"has-text":return`filter({ hasText: ${this.toHasText(s)} })`;case"has-not-text":return`filter({ hasNotText: ${this.toHasText(s)} })`;case"has":return`filter({ has: ${s} })`;case"hasNot":return`filter({ hasNot: ${s} })`;case"and":return`and(${s})`;case"or":return`or(${s})`;case"chain":return`locator(${s})`;case"test-id":return`getByTestId(${this.toTestIdValue(s)})`;case"text":return this.toCallWithExact("getByText",s,!!c.exact);case"alt":return this.toCallWithExact("getByAltText",s,!!c.exact);case"placeholder":return this.toCallWithExact("getByPlaceholder",s,!!c.exact);case"label":return this.toCallWithExact("getByLabel",s,!!c.exact);case"title":return this.toCallWithExact("getByTitle",s,!!c.exact);default:throw new Error("Unknown selector kind "+a)}}chainLocators(l){return l.join(".")}regexToSourceString(l){return Au(String(l))}toCallWithExact(l,a,s){return Ge(a)?`${l}(${this.regexToSourceString(a)})`:s?`${l}(${this.quote(a)}, { exact: true })`:`${l}(${this.quote(a)})`}toHasText(l){return Ge(l)?this.regexToSourceString(l):this.quote(l)}toTestIdValue(l){return Ge(l)?this.regexToSourceString(l):this.quote(l)}quote(l){return wu(l,this.preferredQuote??"'")}}class Ov{generateLocator(l,a,s,c={}){switch(a){case"default":return c.hasText!==void 0?`locator(${this.quote(s)}, has_text=${this.toHasText(c.hasText)})`:c.hasNotText!==void 0?`locator(${this.quote(s)}, has_not_text=${this.toHasText(c.hasNotText)})`:`locator(${this.quote(s)})`;case"frame-locator":return`frame_locator(${this.quote(s)})`;case"frame":return"content_frame";case"nth":return`nth(${s})`;case"first":return"first";case"last":return"last";case"visible":return`filter(visible=${s==="true"?"True":"False"})`;case"role":const o=[];Ge(c.name)?o.push(`name=${this.regexToString(c.name)}`):typeof c.name=="string"&&o.push(`name=${this.quote(c.name)}`),Ge(c.description)?o.push(`description=${this.regexToString(c.description)}`):typeof c.description=="string"&&o.push(`description=${this.quote(c.description)}`),c.exact&&(typeof c.name=="string"||typeof c.description=="string")&&o.push("exact=True");for(const{name:m,value:p}of c.attrs){let g=typeof p=="string"?this.quote(p):p;typeof p=="boolean"&&(g=p?"True":"False"),o.push(`${Pg(m)}=${g}`)}const h=o.length?`, ${o.join(", ")}`:"";return`get_by_role(${this.quote(s)}${h})`;case"has-text":return`filter(has_text=${this.toHasText(s)})`;case"has-not-text":return`filter(has_not_text=${this.toHasText(s)})`;case"has":return`filter(has=${s})`;case"hasNot":return`filter(has_not=${s})`;case"and":return`and_(${s})`;case"or":return`or_(${s})`;case"chain":return`locator(${s})`;case"test-id":return`get_by_test_id(${this.toTestIdValue(s)})`;case"text":return this.toCallWithExact("get_by_text",s,!!c.exact);case"alt":return this.toCallWithExact("get_by_alt_text",s,!!c.exact);case"placeholder":return this.toCallWithExact("get_by_placeholder",s,!!c.exact);case"label":return this.toCallWithExact("get_by_label",s,!!c.exact);case"title":return this.toCallWithExact("get_by_title",s,!!c.exact);default:throw new Error("Unknown selector kind "+a)}}chainLocators(l){return l.join(".")}regexToString(l){const a=l.flags.includes("i")?", re.IGNORECASE":"";return`re.compile(r"${Au(l.source).replace(/\\\//,"/").replace(/"/g,'\\"')}"${a})`}toCallWithExact(l,a,s){return Ge(a)?`${l}(${this.regexToString(a)})`:s?`${l}(${this.quote(a)}, exact=True)`:`${l}(${this.quote(a)})`}toHasText(l){return Ge(l)?this.regexToString(l):`${this.quote(l)}`}toTestIdValue(l){return Ge(l)?this.regexToString(l):this.quote(l)}quote(l){return wu(l,'"')}}class _v{generateLocator(l,a,s,c={}){let o;switch(l){case"page":o="Page";break;case"frame-locator":o="FrameLocator";break;case"locator":o="Locator";break}switch(a){case"default":return c.hasText!==void 0?`locator(${this.quote(s)}, new ${o}.LocatorOptions().setHasText(${this.toHasText(c.hasText)}))`:c.hasNotText!==void 0?`locator(${this.quote(s)}, new ${o}.LocatorOptions().setHasNotText(${this.toHasText(c.hasNotText)}))`:`locator(${this.quote(s)})`;case"frame-locator":return`frameLocator(${this.quote(s)})`;case"frame":return"contentFrame()";case"nth":return`nth(${s})`;case"first":return"first()";case"last":return"last()";case"visible":return`filter(new ${o}.FilterOptions().setVisible(${s==="true"?"true":"false"}))`;case"role":const h=[];Ge(c.name)?h.push(`.setName(${this.regexToString(c.name)})`):typeof c.name=="string"&&h.push(`.setName(${this.quote(c.name)})`),Ge(c.description)?h.push(`.setDescription(${this.regexToString(c.description)})`):typeof c.description=="string"&&h.push(`.setDescription(${this.quote(c.description)})`),c.exact&&(typeof c.name=="string"||typeof c.description=="string")&&h.push(".setExact(true)");for(const{name:p,value:g}of c.attrs)h.push(`.set${yu(p)}(${typeof g=="string"?this.quote(g):g})`);const m=h.length?`, new ${o}.GetByRoleOptions()${h.join("")}`:"";return`getByRole(AriaRole.${Pg(s).toUpperCase()}${m})`;case"has-text":return`filter(new ${o}.FilterOptions().setHasText(${this.toHasText(s)}))`;case"has-not-text":return`filter(new ${o}.FilterOptions().setHasNotText(${this.toHasText(s)}))`;case"has":return`filter(new ${o}.FilterOptions().setHas(${s}))`;case"hasNot":return`filter(new ${o}.FilterOptions().setHasNot(${s}))`;case"and":return`and(${s})`;case"or":return`or(${s})`;case"chain":return`locator(${s})`;case"test-id":return`getByTestId(${this.toTestIdValue(s)})`;case"text":return this.toCallWithExact(o,"getByText",s,!!c.exact);case"alt":return this.toCallWithExact(o,"getByAltText",s,!!c.exact);case"placeholder":return this.toCallWithExact(o,"getByPlaceholder",s,!!c.exact);case"label":return this.toCallWithExact(o,"getByLabel",s,!!c.exact);case"title":return this.toCallWithExact(o,"getByTitle",s,!!c.exact);default:throw new Error("Unknown selector kind "+a)}}chainLocators(l){return l.join(".")}regexToString(l){const a=l.flags.includes("i")?", Pattern.CASE_INSENSITIVE":"";return`Pattern.compile(${this.quote(Au(l.source))}${a})`}toCallWithExact(l,a,s,c){return Ge(s)?`${a}(${this.regexToString(s)})`:c?`${a}(${this.quote(s)}, new ${l}.${yu(a)}Options().setExact(true))`:`${a}(${this.quote(s)})`}toHasText(l){return Ge(l)?this.regexToString(l):this.quote(l)}toTestIdValue(l){return Ge(l)?this.regexToString(l):this.quote(l)}quote(l){return wu(l,'"')}}class Nv{generateLocator(l,a,s,c={}){switch(a){case"default":return c.hasText!==void 0?`Locator(${this.quote(s)}, new() { ${this.toHasText(c.hasText)} })`:c.hasNotText!==void 0?`Locator(${this.quote(s)}, new() { ${this.toHasNotText(c.hasNotText)} })`:`Locator(${this.quote(s)})`;case"frame-locator":return`FrameLocator(${this.quote(s)})`;case"frame":return"ContentFrame";case"nth":return`Nth(${s})`;case"first":return"First";case"last":return"Last";case"visible":return`Filter(new() { Visible = ${s==="true"?"true":"false"} })`;case"role":const o=[];Ge(c.name)?o.push(`NameRegex = ${this.regexToString(c.name)}`):typeof c.name=="string"&&o.push(`Name = ${this.quote(c.name)}`),Ge(c.description)?o.push(`DescriptionRegex = ${this.regexToString(c.description)}`):typeof c.description=="string"&&o.push(`Description = ${this.quote(c.description)}`),c.exact&&(typeof c.name=="string"||typeof c.description=="string")&&o.push("Exact = true");for(const{name:m,value:p}of c.attrs)o.push(`${yu(m)} = ${typeof p=="string"?this.quote(p):p}`);const h=o.length?`, new() { ${o.join(", ")} }`:"";return`GetByRole(AriaRole.${yu(s)}${h})`;case"has-text":return`Filter(new() { ${this.toHasText(s)} })`;case"has-not-text":return`Filter(new() { ${this.toHasNotText(s)} })`;case"has":return`Filter(new() { Has = ${s} })`;case"hasNot":return`Filter(new() { HasNot = ${s} })`;case"and":return`And(${s})`;case"or":return`Or(${s})`;case"chain":return`Locator(${s})`;case"test-id":return`GetByTestId(${this.toTestIdValue(s)})`;case"text":return this.toCallWithExact("GetByText",s,!!c.exact);case"alt":return this.toCallWithExact("GetByAltText",s,!!c.exact);case"placeholder":return this.toCallWithExact("GetByPlaceholder",s,!!c.exact);case"label":return this.toCallWithExact("GetByLabel",s,!!c.exact);case"title":return this.toCallWithExact("GetByTitle",s,!!c.exact);default:throw new Error("Unknown selector kind "+a)}}chainLocators(l){return l.join(".")}regexToString(l){const a=l.flags.includes("i")?", RegexOptions.IgnoreCase":"";return`new Regex(${this.quote(Au(l.source))}${a})`}toCallWithExact(l,a,s){return Ge(a)?`${l}(${this.regexToString(a)})`:s?`${l}(${this.quote(a)}, new() { Exact = true })`:`${l}(${this.quote(a)})`}toHasText(l){return Ge(l)?`HasTextRegex = ${this.regexToString(l)}`:`HasText = ${this.quote(l)}`}toTestIdValue(l){return Ge(l)?this.regexToString(l):this.quote(l)}toHasNotText(l){return Ge(l)?`HasNotTextRegex = ${this.regexToString(l)}`:`HasNotText = ${this.quote(l)}`}quote(l){return wu(l,'"')}}class Mv{generateLocator(l,a,s,c={}){return JSON.stringify({kind:a,body:s,options:c})}chainLocators(l){const a=l.map(s=>JSON.parse(s));for(let s=0;s<a.length-1;++s)a[s].next=a[s+1];return JSON.stringify(a[0])}}const Cv={javascript:Av,python:Ov,java:_v,csharp:Nv,jsonl:Mv};function Ge(u){return u instanceof RegExp}const zv=({language:u,log:l})=>{const a=he.useRef(null),[s,c]=he.useState(new Map);return he.useLayoutEffect(()=>{var o;l.find(h=>h.reveal)&&((o=a.current)==null||o.scrollIntoView({block:"center",inline:"nearest"}))},[a,l]),X.jsxs("div",{className:"call-log",style:{flex:"auto"},children:[l.map(o=>{const h=s.get(o.id),m=typeof h=="boolean"?h:o.status!=="done",p=o.params.selector?ep(u,o.params.selector):null;let g=o.title,b="";return o.title.startsWith("expect.to")||o.title.startsWith("expect.not.to")?(g="expect(",b=`).${o.title.substring(7)}()`):o.title.startsWith("locator.")?(g="",b=`.${o.title.substring(8)}()`):(p||o.params.url)&&(g=o.title+"(",b=")"),X.jsxs("div",{className:Ol("call-log-call",o.status),children:[X.jsxs("div",{className:"call-log-call-header",children:[X.jsx("span",{className:Ol("codicon",`codicon-chevron-${m?"down":"right"}`),style:{cursor:"pointer"},onClick:()=>{const v=new Map(s);v.set(o.id,!m),c(v)}}),g,o.params.url?X.jsx("span",{className:"call-log-details",children:X.jsx("span",{className:"call-log-url",title:o.params.url,children:o.params.url})}):void 0,p?X.jsx("span",{className:"call-log-details",children:X.jsx("span",{className:"call-log-selector",title:`page.${p}`,children:`page.${p}`})}):void 0,b,X.jsx("span",{className:Ol("codicon",xv(o))}),typeof o.duration=="number"?X.jsxs("span",{className:"call-log-time",children:["— ",tv(o.duration)]}):void 0]}),(m?o.messages:[]).map((v,O)=>X.jsx("div",{className:"call-log-message",children:v.trim()},O)),!!o.error&&X.jsx("div",{className:"call-log-message error",hidden:!m,children:o.error})]},o.id)}),X.jsx("div",{ref:a})]})};function xv(u){switch(u.status){case"done":return"codicon-check";case"in-progress":return"codicon-clock";case"paused":return"codicon-debug-pause";case"error":return"codicon-error"}}const Lf=Symbol.for("yaml.alias"),Of=Symbol.for("yaml.document"),Pn=Symbol.for("yaml.map"),tp=Symbol.for("yaml.pair"),nn=Symbol.for("yaml.scalar"),_i=Symbol.for("yaml.seq"),Vt=Symbol.for("yaml.node.type"),tl=u=>!!u&&typeof u=="object"&&u[Vt]===Lf,Nl=u=>!!u&&typeof u=="object"&&u[Vt]===Of,Ni=u=>!!u&&typeof u=="object"&&u[Vt]===Pn,je=u=>!!u&&typeof u=="object"&&u[Vt]===tp,De=u=>!!u&&typeof u=="object"&&u[Vt]===nn,Mi=u=>!!u&&typeof u=="object"&&u[Vt]===_i;function Be(u){if(u&&typeof u=="object")switch(u[Vt]){case Pn:case _i:return!0}return!1}function ke(u){if(u&&typeof u=="object")switch(u[Vt]){case Lf:case Pn:case nn:case _i:return!0}return!1}const np=u=>(De(u)||Be(u))&&!!u.anchor,Tt=Symbol("break visit"),lp=Symbol("skip children"),tn=Symbol("remove node");function Ml(u,l){const a=ip(l);Nl(u)?pi(null,u.contents,a,Object.freeze([u]))===tn&&(u.contents=null):pi(null,u,a,Object.freeze([]))}Ml.BREAK=Tt;Ml.SKIP=lp;Ml.REMOVE=tn;function pi(u,l,a,s){const c=ap(u,l,a,s);if(ke(c)||je(c))return sp(u,s,c),pi(u,c,a,s);if(typeof c!="symbol"){if(Be(l)){s=Object.freeze(s.concat(l));for(let o=0;o<l.items.length;++o){const h=pi(o,l.items[o],a,s);if(typeof h=="number")o=h-1;else{if(h===Tt)return Tt;h===tn&&(l.items.splice(o,1),o-=1)}}}else if(je(l)){s=Object.freeze(s.concat(l));const o=pi("key",l.key,a,s);if(o===Tt)return Tt;o===tn&&(l.key=null);const h=pi("value",l.value,a,s);if(h===Tt)return Tt;h===tn&&(l.value=null)}}return c}async function Ou(u,l){const a=ip(l);Nl(u)?await yi(null,u.contents,a,Object.freeze([u]))===tn&&(u.contents=null):await yi(null,u,a,Object.freeze([]))}Ou.BREAK=Tt;Ou.SKIP=lp;Ou.REMOVE=tn;async function yi(u,l,a,s){const c=await ap(u,l,a,s);if(ke(c)||je(c))return sp(u,s,c),yi(u,c,a,s);if(typeof c!="symbol"){if(Be(l)){s=Object.freeze(s.concat(l));for(let o=0;o<l.items.length;++o){const h=await yi(o,l.items[o],a,s);if(typeof h=="number")o=h-1;else{if(h===Tt)return Tt;h===tn&&(l.items.splice(o,1),o-=1)}}}else if(je(l)){s=Object.freeze(s.concat(l));const o=await yi("key",l.key,a,s);if(o===Tt)return Tt;o===tn&&(l.key=null);const h=await yi("value",l.value,a,s);if(h===Tt)return Tt;h===tn&&(l.value=null)}}return c}function ip(u){return typeof u=="object"&&(u.Collection||u.Node||u.Value)?Object.assign({Alias:u.Node,Map:u.Node,Scalar:u.Node,Seq:u.Node},u.Value&&{Map:u.Value,Scalar:u.Value,Seq:u.Value},u.Collection&&{Map:u.Collection,Seq:u.Collection},u):u}function ap(u,l,a,s){var c,o,h,m,p;if(typeof a=="function")return a(u,l,s);if(Ni(l))return(c=a.Map)==null?void 0:c.call(a,u,l,s);if(Mi(l))return(o=a.Seq)==null?void 0:o.call(a,u,l,s);if(je(l))return(h=a.Pair)==null?void 0:h.call(a,u,l,s);if(De(l))return(m=a.Scalar)==null?void 0:m.call(a,u,l,s);if(tl(l))return(p=a.Alias)==null?void 0:p.call(a,u,l,s)}function sp(u,l,a){const s=l[l.length-1];if(Be(s))s.items[u]=a;else if(je(s))u==="key"?s.key=a:s.value=a;else if(Nl(s))s.contents=a;else{const c=tl(s)?"alias":"scalar";throw new Error(`Cannot replace node with ${c} parent`)}}const Dv={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},Lv=u=>u.replace(/[!,[\]{}]/g,l=>Dv[l]);class ot{constructor(l,a){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},ot.defaultYaml,l),this.tags=Object.assign({},ot.defaultTags,a)}clone(){const l=new ot(this.yaml,this.tags);return l.docStart=this.docStart,l}atDocument(){const l=new ot(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:ot.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},ot.defaultTags);break}return l}add(l,a){this.atNextDocument&&(this.yaml={explicit:ot.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},ot.defaultTags),this.atNextDocument=!1);const s=l.trim().split(/[ \t]+/),c=s.shift();switch(c){case"%TAG":{if(s.length!==2&&(a(0,"%TAG directive should contain exactly two parts"),s.length<2))return!1;const[o,h]=s;return this.tags[o]=h,!0}case"%YAML":{if(this.yaml.explicit=!0,s.length!==1)return a(0,"%YAML directive should contain exactly one part"),!1;const[o]=s;if(o==="1.1"||o==="1.2")return this.yaml.version=o,!0;{const h=/^\d+\.\d+$/.test(o);return a(6,`Unsupported YAML version ${o}`,h),!1}}default:return a(0,`Unknown directive ${c}`,!0),!1}}tagName(l,a){if(l==="!")return"!";if(l[0]!=="!")return a(`Not a valid tag: ${l}`),null;if(l[1]==="<"){const h=l.slice(2,-1);return h==="!"||h==="!!"?(a(`Verbatim tags aren't resolved, so ${l} is invalid.`),null):(l[l.length-1]!==">"&&a("Verbatim tags must end with a >"),h)}const[,s,c]=l.match(/^(.*!)([^!]*)$/s);c||a(`The ${l} tag has no suffix`);const o=this.tags[s];if(o)try{return o+decodeURIComponent(c)}catch(h){return a(String(h)),null}return s==="!"?l:(a(`Could not resolve tag: ${l}`),null)}tagString(l){for(const[a,s]of Object.entries(this.tags))if(l.startsWith(s))return a+Lv(l.substring(s.length));return l[0]==="!"?l:`!<${l}>`}toString(l){const a=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],s=Object.entries(this.tags);let c;if(l&&s.length>0&&ke(l.contents)){const o={};Ml(l.contents,(h,m)=>{ke(m)&&m.tag&&(o[m.tag]=!0)}),c=Object.keys(o)}else c=[];for(const[o,h]of s)o==="!!"&&h==="tag:yaml.org,2002:"||(!l||c.some(m=>m.startsWith(h)))&&a.push(`%TAG ${o} ${h}`);return a.join(`
52
+ `)}}ot.defaultYaml={explicit:!1,version:"1.2"};ot.defaultTags={"!!":"tag:yaml.org,2002:"};function up(u){if(/[\x00-\x19\s,[\]{}]/.test(u)){const a=`Anchor must not contain whitespace or control characters: ${JSON.stringify(u)}`;throw new Error(a)}return!0}function cp(u){const l=new Set;return Ml(u,{Value(a,s){s.anchor&&l.add(s.anchor)}}),l}function rp(u,l){for(let a=1;;++a){const s=`${u}${a}`;if(!l.has(s))return s}}function Uv(u,l){const a=[],s=new Map;let c=null;return{onAnchor:o=>{a.push(o),c??(c=cp(u));const h=rp(l,c);return c.add(h),h},setAnchors:()=>{for(const o of a){const h=s.get(o);if(typeof h=="object"&&h.anchor&&(De(h.node)||Be(h.node)))h.node.anchor=h.anchor;else{const m=new Error("Failed to resolve repeated object (this should not happen)");throw m.source=o,m}}},sourceObjects:s}}function vi(u,l,a,s){if(s&&typeof s=="object")if(Array.isArray(s))for(let c=0,o=s.length;c<o;++c){const h=s[c],m=vi(u,s,String(c),h);m===void 0?delete s[c]:m!==h&&(s[c]=m)}else if(s instanceof Map)for(const c of Array.from(s.keys())){const o=s.get(c),h=vi(u,s,c,o);h===void 0?s.delete(c):h!==o&&s.set(c,h)}else if(s instanceof Set)for(const c of Array.from(s)){const o=vi(u,s,c,c);o===void 0?s.delete(c):o!==c&&(s.delete(c),s.add(o))}else for(const[c,o]of Object.entries(s)){const h=vi(u,s,c,o);h===void 0?delete s[c]:h!==o&&(s[c]=h)}return u.call(l,a,s)}function Gt(u,l,a){if(Array.isArray(u))return u.map((s,c)=>Gt(s,String(c),a));if(u&&typeof u.toJSON=="function"){if(!a||!np(u))return u.toJSON(l,a);const s={aliasCount:0,count:1,res:void 0};a.anchors.set(u,s),a.onCreate=o=>{s.res=o,delete a.onCreate};const c=u.toJSON(l,a);return a.onCreate&&a.onCreate(c),c}return typeof u=="bigint"&&!(a!=null&&a.keep)?Number(u):u}class Uf{constructor(l){Object.defineProperty(this,Vt,{value:l})}clone(){const l=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(l.range=this.range.slice()),l}toJS(l,{mapAsMap:a,maxAliasCount:s,onAnchor:c,reviver:o}={}){if(!Nl(l))throw new TypeError("A document argument is required");const h={anchors:new Map,doc:l,keep:!0,mapAsMap:a===!0,mapKeyWarned:!1,maxAliasCount:typeof s=="number"?s:100},m=Gt(this,"",h);if(typeof c=="function")for(const{count:p,res:g}of h.anchors.values())c(g,p);return typeof o=="function"?vi(o,{"":m},"",m):m}}class _u extends Uf{constructor(l){super(Lf),this.source=l,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(l,a){let s;a!=null&&a.aliasResolveCache?s=a.aliasResolveCache:(s=[],Ml(l,{Node:(o,h)=>{(tl(h)||np(h))&&s.push(h)}}),a&&(a.aliasResolveCache=s));let c;for(const o of s){if(o===this)break;o.anchor===this.source&&(c=o)}return c}toJSON(l,a){if(!a)return{source:this.source};const{anchors:s,doc:c,maxAliasCount:o}=a,h=this.resolve(c,a);if(!h){const p=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(p)}let m=s.get(h);if(m||(Gt(h,null,a),m=s.get(h)),(m==null?void 0:m.res)===void 0){const p="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(p)}if(o>=0&&(m.count+=1,m.aliasCount===0&&(m.aliasCount=hu(c,h,s)),m.count*m.aliasCount>o)){const p="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(p)}return m.res}toString(l,a,s){const c=`*${this.source}`;if(l){if(up(this.source),l.options.verifyAliasOrder&&!l.anchors.has(this.source)){const o=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(o)}if(l.implicitKey)return`${c} `}return c}}function hu(u,l,a){if(tl(l)){const s=l.resolve(u),c=a&&s&&a.get(s);return c?c.count*c.aliasCount:0}else if(Be(l)){let s=0;for(const c of l.items){const o=hu(u,c,a);o>s&&(s=o)}return s}else if(je(l)){const s=hu(u,l.key,a),c=hu(u,l.value,a);return Math.max(s,c)}return 1}const fp=u=>!u||typeof u!="function"&&typeof u!="object";class ce extends Uf{constructor(l){super(nn),this.value=l}toJSON(l,a){return a!=null&&a.keep?this.value:Gt(this.value,l,a)}toString(){return String(this.value)}}ce.BLOCK_FOLDED="BLOCK_FOLDED";ce.BLOCK_LITERAL="BLOCK_LITERAL";ce.PLAIN="PLAIN";ce.QUOTE_DOUBLE="QUOTE_DOUBLE";ce.QUOTE_SINGLE="QUOTE_SINGLE";const Rv="tag:yaml.org,2002:";function jv(u,l,a){if(l){const s=a.filter(o=>o.tag===l),c=s.find(o=>!o.format)??s[0];if(!c)throw new Error(`Tag ${l} not found`);return c}return a.find(s=>{var c;return((c=s.identify)==null?void 0:c.call(s,u))&&!s.format})}function xa(u,l,a){var v,O,E;if(Nl(u)&&(u=u.contents),ke(u))return u;if(je(u)){const x=(O=(v=a.schema[Pn]).createNode)==null?void 0:O.call(v,a.schema,null,a);return x.items.push(u),x}(u instanceof String||u instanceof Number||u instanceof Boolean||typeof BigInt<"u"&&u instanceof BigInt)&&(u=u.valueOf());const{aliasDuplicateObjects:s,onAnchor:c,onTagObj:o,schema:h,sourceObjects:m}=a;let p;if(s&&u&&typeof u=="object"){if(p=m.get(u),p)return p.anchor??(p.anchor=c(u)),new _u(p.anchor);p={anchor:null,node:null},m.set(u,p)}l!=null&&l.startsWith("!!")&&(l=Rv+l.slice(2));let g=jv(u,l,h.tags);if(!g){if(u&&typeof u.toJSON=="function"&&(u=u.toJSON()),!u||typeof u!="object"){const x=new ce(u);return p&&(p.node=x),x}g=u instanceof Map?h[Pn]:Symbol.iterator in Object(u)?h[_i]:h[Pn]}o&&(o(g),delete a.onTagObj);const b=g!=null&&g.createNode?g.createNode(a.schema,u,a):typeof((E=g==null?void 0:g.nodeClass)==null?void 0:E.from)=="function"?g.nodeClass.from(a.schema,u,a):new ce(u);return l?b.tag=l:g.default||(b.tag=g.tag),p&&(p.node=b),b}function vu(u,l,a){let s=a;for(let c=l.length-1;c>=0;--c){const o=l[c];if(typeof o=="number"&&Number.isInteger(o)&&o>=0){const h=[];h[o]=s,s=h}else s=new Map([[o,s]])}return xa(s,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:u,sourceObjects:new Map})}const Ca=u=>u==null||typeof u=="object"&&!!u[Symbol.iterator]().next().done;class op extends Uf{constructor(l,a){super(l),Object.defineProperty(this,"schema",{value:a,configurable:!0,enumerable:!1,writable:!0})}clone(l){const a=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return l&&(a.schema=l),a.items=a.items.map(s=>ke(s)||je(s)?s.clone(l):s),this.range&&(a.range=this.range.slice()),a}addIn(l,a){if(Ca(l))this.add(a);else{const[s,...c]=l,o=this.get(s,!0);if(Be(o))o.addIn(c,a);else if(o===void 0&&this.schema)this.set(s,vu(this.schema,c,a));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${c}`)}}deleteIn(l){const[a,...s]=l;if(s.length===0)return this.delete(a);const c=this.get(a,!0);if(Be(c))return c.deleteIn(s);throw new Error(`Expected YAML collection at ${a}. Remaining path: ${s}`)}getIn(l,a){const[s,...c]=l,o=this.get(s,!0);return c.length===0?!a&&De(o)?o.value:o:Be(o)?o.getIn(c,a):void 0}hasAllNullValues(l){return this.items.every(a=>{if(!je(a))return!1;const s=a.value;return s==null||l&&De(s)&&s.value==null&&!s.commentBefore&&!s.comment&&!s.tag})}hasIn(l){const[a,...s]=l;if(s.length===0)return this.has(a);const c=this.get(a,!0);return Be(c)?c.hasIn(s):!1}setIn(l,a){const[s,...c]=l;if(c.length===0)this.set(s,a);else{const o=this.get(s,!0);if(Be(o))o.setIn(c,a);else if(o===void 0&&this.schema)this.set(s,vu(this.schema,c,a));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${c}`)}}}const Bv=u=>u.replace(/^(?!$)(?: $)?/gm,"#");function wn(u,l){return/^\n+$/.test(u)?u.substring(1):l?u.replace(/^(?! *$)/gm,l):u}const El=(u,l,a)=>u.endsWith(`
53
+ `)?wn(a,l):a.includes(`
54
+ `)?`
55
+ `+wn(a,l):(u.endsWith(" ")?"":" ")+a,hp="flow",_f="block",du="quoted";function Nu(u,l,a="flow",{indentAtStart:s,lineWidth:c=80,minContentWidth:o=20,onFold:h,onOverflow:m}={}){if(!c||c<0)return u;c<o&&(o=0);const p=Math.max(1+o,1+c-l.length);if(u.length<=p)return u;const g=[],b={};let v=c-l.length;typeof s=="number"&&(s>c-Math.max(2,o)?g.push(0):v=c-s);let O,E,x=!1,S=-1,w=-1,M=-1;a===_f&&(S=yg(u,S,l.length),S!==-1&&(v=S+p));for(let K;K=u[S+=1];){if(a===du&&K==="\\"){switch(w=S,u[S+1]){case"x":S+=3;break;case"u":S+=5;break;case"U":S+=9;break;default:S+=1}M=S}if(K===`
56
+ `)a===_f&&(S=yg(u,S,l.length)),v=S+l.length+p,O=void 0;else{if(K===" "&&E&&E!==" "&&E!==`
57
+ `&&E!==" "){const Q=u[S+1];Q&&Q!==" "&&Q!==`
58
+ `&&Q!==" "&&(O=S)}if(S>=v)if(O)g.push(O),v=O+p,O=void 0;else if(a===du){for(;E===" "||E===" ";)E=K,K=u[S+=1],x=!0;const Q=S>M+1?S-2:w-1;if(b[Q])return u;g.push(Q),b[Q]=!0,v=Q+p,O=void 0}else x=!0}E=K}if(x&&m&&m(),g.length===0)return u;h&&h();let R=u.slice(0,g[0]);for(let K=0;K<g.length;++K){const Q=g[K],Z=g[K+1]||u.length;Q===0?R=`
59
+ ${l}${u.slice(0,Z)}`:(a===du&&b[Q]&&(R+=`${u[Q]}\\`),R+=`
60
+ ${l}${u.slice(Q+1,Z)}`)}return R}function yg(u,l,a){let s=l,c=l+1,o=u[c];for(;o===" "||o===" ";)if(l<c+a)o=u[++l];else{do o=u[++l];while(o&&o!==`
61
+ `);s=l,c=l+1,o=u[c]}return s}const Mu=(u,l)=>({indentAtStart:l?u.indent.length:u.indentAtStart,lineWidth:u.options.lineWidth,minContentWidth:u.options.minContentWidth}),Cu=u=>/^(%|---|\.\.\.)/m.test(u);function kv(u,l,a){if(!l||l<0)return!1;const s=l-a,c=u.length;if(c<=s)return!1;for(let o=0,h=0;o<c;++o)if(u[o]===`
62
+ `){if(o-h>s)return!0;if(h=o+1,c-h<=s)return!1}return!0}function za(u,l){const a=JSON.stringify(u);if(l.options.doubleQuotedAsJSON)return a;const{implicitKey:s}=l,c=l.options.doubleQuotedMinMultiLineLength,o=l.indent||(Cu(u)?" ":"");let h="",m=0;for(let p=0,g=a[p];g;g=a[++p])if(g===" "&&a[p+1]==="\\"&&a[p+2]==="n"&&(h+=a.slice(m,p)+"\\ ",p+=1,m=p,g="\\"),g==="\\")switch(a[p+1]){case"u":{h+=a.slice(m,p);const b=a.substr(p+2,4);switch(b){case"0000":h+="\\0";break;case"0007":h+="\\a";break;case"000b":h+="\\v";break;case"001b":h+="\\e";break;case"0085":h+="\\N";break;case"00a0":h+="\\_";break;case"2028":h+="\\L";break;case"2029":h+="\\P";break;default:b.substr(0,2)==="00"?h+="\\x"+b.substr(2):h+=a.substr(p,6)}p+=5,m=p+1}break;case"n":if(s||a[p+2]==='"'||a.length<c)p+=1;else{for(h+=a.slice(m,p)+`
63
+
64
+ `;a[p+2]==="\\"&&a[p+3]==="n"&&a[p+4]!=='"';)h+=`
65
+ `,p+=2;h+=o,a[p+2]===" "&&(h+="\\"),p+=1,m=p+1}break;default:p+=1}return h=m?h+a.slice(m):a,s?h:Nu(h,o,du,Mu(l,!1))}function Nf(u,l){if(l.options.singleQuote===!1||l.implicitKey&&u.includes(`
66
+ `)||/[ \t]\n|\n[ \t]/.test(u))return za(u,l);const a=l.indent||(Cu(u)?" ":""),s="'"+u.replace(/'/g,"''").replace(/\n+/g,`$&
67
+ ${a}`)+"'";return l.implicitKey?s:Nu(s,a,hp,Mu(l,!1))}function bi(u,l){const{singleQuote:a}=l.options;let s;if(a===!1)s=za;else{const c=u.includes('"'),o=u.includes("'");c&&!o?s=Nf:o&&!c?s=za:s=a?Nf:za}return s(u,l)}let Mf;try{Mf=new RegExp(`(^|(?<!
68
+ ))
69
+ +(?!
70
+ |$)`,"g")}catch{Mf=/\n+(?!\n|$)/g}function mu({comment:u,type:l,value:a},s,c,o){const{blockQuote:h,commentString:m,lineWidth:p}=s.options;if(!h||/\n[\t ]+$/.test(a))return bi(a,s);const g=s.indent||(s.forceBlockIndent||Cu(a)?" ":""),b=h==="literal"?!0:h==="folded"||l===ce.BLOCK_FOLDED?!1:l===ce.BLOCK_LITERAL?!0:!kv(a,p,g.length);if(!a)return b?`|
71
+ `:`>
72
+ `;let v,O;for(O=a.length;O>0;--O){const Z=a[O-1];if(Z!==`
73
+ `&&Z!==" "&&Z!==" ")break}let E=a.substring(O);const x=E.indexOf(`
74
+ `);x===-1?v="-":a===E||x!==E.length-1?(v="+",o&&o()):v="",E&&(a=a.slice(0,-E.length),E[E.length-1]===`
75
+ `&&(E=E.slice(0,-1)),E=E.replace(Mf,`$&${g}`));let S=!1,w,M=-1;for(w=0;w<a.length;++w){const Z=a[w];if(Z===" ")S=!0;else if(Z===`
76
+ `)M=w;else break}let R=a.substring(0,M<w?M+1:w);R&&(a=a.substring(R.length),R=R.replace(/\n+/g,`$&${g}`));let Q=(S?g?"2":"1":"")+v;if(u&&(Q+=" "+m(u.replace(/ ?[\r\n]+/g," ")),c&&c()),!b){const Z=a.replace(/\n+/g,`
77
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${g}`);let W=!1;const k=Mu(s,!0);h!=="folded"&&l!==ce.BLOCK_FOLDED&&(k.onOverflow=()=>{W=!0});const V=Nu(`${R}${Z}${E}`,g,_f,k);if(!W)return`>${Q}
78
+ ${g}${V}`}return a=a.replace(/\n+/g,`$&${g}`),`|${Q}
79
+ ${g}${R}${a}${E}`}function qv(u,l,a,s){const{type:c,value:o}=u,{actualString:h,implicitKey:m,indent:p,indentStep:g,inFlow:b}=l;if(m&&o.includes(`
80
+ `)||b&&/[[\]{},]/.test(o))return bi(o,l);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o))return m||b||!o.includes(`
81
+ `)?bi(o,l):mu(u,l,a,s);if(!m&&!b&&c!==ce.PLAIN&&o.includes(`
82
+ `))return mu(u,l,a,s);if(Cu(o)){if(p==="")return l.forceBlockIndent=!0,mu(u,l,a,s);if(m&&p===g)return bi(o,l)}const v=o.replace(/\n+/g,`$&
83
+ ${p}`);if(h){const O=S=>{var w;return S.default&&S.tag!=="tag:yaml.org,2002:str"&&((w=S.test)==null?void 0:w.test(v))},{compat:E,tags:x}=l.doc.schema;if(x.some(O)||E!=null&&E.some(O))return bi(o,l)}return m?v:Nu(v,p,hp,Mu(l,!1))}function Ra(u,l,a,s){const{implicitKey:c,inFlow:o}=l,h=typeof u.value=="string"?u:Object.assign({},u,{value:String(u.value)});let{type:m}=u;m!==ce.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(h.value)&&(m=ce.QUOTE_DOUBLE);const p=b=>{switch(b){case ce.BLOCK_FOLDED:case ce.BLOCK_LITERAL:return c||o?bi(h.value,l):mu(h,l,a,s);case ce.QUOTE_DOUBLE:return za(h.value,l);case ce.QUOTE_SINGLE:return Nf(h.value,l);case ce.PLAIN:return qv(h,l,a,s);default:return null}};let g=p(m);if(g===null){const{defaultKeyType:b,defaultStringType:v}=l.options,O=c&&b||v;if(g=p(O),g===null)throw new Error(`Unsupported default string type ${O}`)}return g}function dp(u,l){const a=Object.assign({blockQuote:!0,commentString:Bv,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},u.schema.toStringOptions,l);let s;switch(a.collectionStyle){case"block":s=!1;break;case"flow":s=!0;break;default:s=null}return{anchors:new Set,doc:u,flowCollectionPadding:a.flowCollectionPadding?" ":"",indent:"",indentStep:typeof a.indent=="number"?" ".repeat(a.indent):" ",inFlow:s,options:a}}function Hv(u,l){var c;if(l.tag){const o=u.filter(h=>h.tag===l.tag);if(o.length>0)return o.find(h=>h.format===l.format)??o[0]}let a,s;if(De(l)){s=l.value;let o=u.filter(h=>{var m;return(m=h.identify)==null?void 0:m.call(h,s)});if(o.length>1){const h=o.filter(m=>m.test);h.length>0&&(o=h)}a=o.find(h=>h.format===l.format)??o.find(h=>!h.format)}else s=l,a=u.find(o=>o.nodeClass&&s instanceof o.nodeClass);if(!a){const o=((c=s==null?void 0:s.constructor)==null?void 0:c.name)??(s===null?"null":typeof s);throw new Error(`Tag not resolved for ${o} value`)}return a}function Yv(u,l,{anchors:a,doc:s}){if(!s.directives)return"";const c=[],o=(De(u)||Be(u))&&u.anchor;o&&up(o)&&(a.add(o),c.push(`&${o}`));const h=u.tag??(l.default?null:l.tag);return h&&c.push(s.directives.tagString(h)),c.join(" ")}function Ei(u,l,a,s){var p;if(je(u))return u.toString(l,a,s);if(tl(u)){if(l.doc.directives)return u.toString(l);if((p=l.resolvedAliases)!=null&&p.has(u))throw new TypeError("Cannot stringify circular structure without alias nodes");l.resolvedAliases?l.resolvedAliases.add(u):l.resolvedAliases=new Set([u]),u=u.resolve(l.doc)}let c;const o=ke(u)?u:l.doc.createNode(u,{onTagObj:g=>c=g});c??(c=Hv(l.doc.schema.tags,o));const h=Yv(o,c,l);h.length>0&&(l.indentAtStart=(l.indentAtStart??0)+h.length+1);const m=typeof c.stringify=="function"?c.stringify(o,l,a,s):De(o)?Ra(o,l,a,s):o.toString(l,a,s);return h?De(o)||m[0]==="{"||m[0]==="["?`${h} ${m}`:`${h}
84
+ ${l.indent}${m}`:m}function $v({key:u,value:l},a,s,c){const{allNullValues:o,doc:h,indent:m,indentStep:p,options:{commentString:g,indentSeq:b,simpleKeys:v}}=a;let O=ke(u)&&u.comment||null;if(v){if(O)throw new Error("With simple keys, key nodes cannot have comments");if(Be(u)||!ke(u)&&typeof u=="object"){const k="With simple keys, collection cannot be used as a key value";throw new Error(k)}}let E=!v&&(!u||O&&l==null&&!a.inFlow||Be(u)||(De(u)?u.type===ce.BLOCK_FOLDED||u.type===ce.BLOCK_LITERAL:typeof u=="object"));a=Object.assign({},a,{allNullValues:!1,implicitKey:!E&&(v||!o),indent:m+p});let x=!1,S=!1,w=Ei(u,a,()=>x=!0,()=>S=!0);if(!E&&!a.inFlow&&w.length>1024){if(v)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");E=!0}if(a.inFlow){if(o||l==null)return x&&s&&s(),w===""?"?":E?`? ${w}`:w}else if(o&&!v||l==null&&E)return w=`? ${w}`,O&&!x?w+=El(w,a.indent,g(O)):S&&c&&c(),w;x&&(O=null),E?(O&&(w+=El(w,a.indent,g(O))),w=`? ${w}
85
+ ${m}:`):(w=`${w}:`,O&&(w+=El(w,a.indent,g(O))));let M,R,K;ke(l)?(M=!!l.spaceBefore,R=l.commentBefore,K=l.comment):(M=!1,R=null,K=null,l&&typeof l=="object"&&(l=h.createNode(l))),a.implicitKey=!1,!E&&!O&&De(l)&&(a.indentAtStart=w.length+1),S=!1,!b&&p.length>=2&&!a.inFlow&&!E&&Mi(l)&&!l.flow&&!l.tag&&!l.anchor&&(a.indent=a.indent.substring(2));let Q=!1;const Z=Ei(l,a,()=>Q=!0,()=>S=!0);let W=" ";if(O||M||R){if(W=M?`
86
+ `:"",R){const k=g(R);W+=`
87
+ ${wn(k,a.indent)}`}Z===""&&!a.inFlow?W===`
88
+ `&&K&&(W=`
89
+
90
+ `):W+=`
91
+ ${a.indent}`}else if(!E&&Be(l)){const k=Z[0],V=Z.indexOf(`
92
+ `),U=V!==-1,ae=a.inFlow??l.flow??l.items.length===0;if(U||!ae){let te=!1;if(U&&(k==="&"||k==="!")){let $=Z.indexOf(" ");k==="&"&&$!==-1&&$<V&&Z[$+1]==="!"&&($=Z.indexOf(" ",$+1)),($===-1||V<$)&&(te=!0)}te||(W=`
93
+ ${a.indent}`)}}else(Z===""||Z[0]===`
94
+ `)&&(W="");return w+=W+Z,a.inFlow?Q&&s&&s():K&&!Q?w+=El(w,a.indent,g(K)):S&&c&&c(),w}function mp(u,l){(u==="debug"||u==="warn")&&console.warn(l)}const nu="<<",On={identify:u=>u===nu||typeof u=="symbol"&&u.description===nu,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new ce(Symbol(nu)),{addToJSMap:gp}),stringify:()=>nu},Kv=(u,l)=>(On.identify(l)||De(l)&&(!l.type||l.type===ce.PLAIN)&&On.identify(l.value))&&(u==null?void 0:u.doc.schema.tags.some(a=>a.tag===On.tag&&a.default));function gp(u,l,a){if(a=u&&tl(a)?a.resolve(u.doc):a,Mi(a))for(const s of a.items)hf(u,l,s);else if(Array.isArray(a))for(const s of a)hf(u,l,s);else hf(u,l,a)}function hf(u,l,a){const s=u&&tl(a)?a.resolve(u.doc):a;if(!Ni(s))throw new Error("Merge sources must be maps or map aliases");const c=s.toJSON(null,u,Map);for(const[o,h]of c)l instanceof Map?l.has(o)||l.set(o,h):l instanceof Set?l.add(o):Object.prototype.hasOwnProperty.call(l,o)||Object.defineProperty(l,o,{value:h,writable:!0,enumerable:!0,configurable:!0});return l}function pp(u,l,{key:a,value:s}){if(ke(a)&&a.addToJSMap)a.addToJSMap(u,l,s);else if(Kv(u,a))gp(u,l,s);else{const c=Gt(a,"",u);if(l instanceof Map)l.set(c,Gt(s,c,u));else if(l instanceof Set)l.add(c);else{const o=Gv(a,c,u),h=Gt(s,o,u);o in l?Object.defineProperty(l,o,{value:h,writable:!0,enumerable:!0,configurable:!0}):l[o]=h}}return l}function Gv(u,l,a){if(l===null)return"";if(typeof l!="object")return String(l);if(ke(u)&&(a!=null&&a.doc)){const s=dp(a.doc,{});s.anchors=new Set;for(const o of a.anchors.keys())s.anchors.add(o.anchor);s.inFlow=!0,s.inStringifyKey=!0;const c=u.toString(s);if(!a.mapKeyWarned){let o=JSON.stringify(c);o.length>40&&(o=o.substring(0,36)+'..."'),mp(a.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${o}. Set mapAsMap: true to use object keys.`),a.mapKeyWarned=!0}return c}return JSON.stringify(l)}function Rf(u,l,a){const s=xa(u,void 0,a),c=xa(l,void 0,a);return new ct(s,c)}class ct{constructor(l,a=null){Object.defineProperty(this,Vt,{value:tp}),this.key=l,this.value=a}clone(l){let{key:a,value:s}=this;return ke(a)&&(a=a.clone(l)),ke(s)&&(s=s.clone(l)),new ct(a,s)}toJSON(l,a){const s=a!=null&&a.mapAsMap?new Map:{};return pp(a,s,this)}toString(l,a,s){return l!=null&&l.doc?$v(this,l,a,s):JSON.stringify(this)}}function yp(u,l,a){return(l.inFlow??u.flow?Qv:Vv)(u,l,a)}function Vv({comment:u,items:l},a,{blockItemPrefix:s,flowChars:c,itemIndent:o,onChompKeep:h,onComment:m}){const{indent:p,options:{commentString:g}}=a,b=Object.assign({},a,{indent:o,type:null});let v=!1;const O=[];for(let x=0;x<l.length;++x){const S=l[x];let w=null;if(ke(S))!v&&S.spaceBefore&&O.push(""),bu(a,O,S.commentBefore,v),S.comment&&(w=S.comment);else if(je(S)){const R=ke(S.key)?S.key:null;R&&(!v&&R.spaceBefore&&O.push(""),bu(a,O,R.commentBefore,v))}v=!1;let M=Ei(S,b,()=>w=null,()=>v=!0);w&&(M+=El(M,o,g(w))),v&&w&&(v=!1),O.push(s+M)}let E;if(O.length===0)E=c.start+c.end;else{E=O[0];for(let x=1;x<O.length;++x){const S=O[x];E+=S?`
95
+ ${p}${S}`:`
96
+ `}}return u?(E+=`
97
+ `+wn(g(u),p),m&&m()):v&&h&&h(),E}function Qv({items:u},l,{flowChars:a,itemIndent:s}){const{indent:c,indentStep:o,flowCollectionPadding:h,options:{commentString:m}}=l;s+=o;const p=Object.assign({},l,{indent:s,inFlow:!0,type:null});let g=!1,b=0;const v=[];for(let x=0;x<u.length;++x){const S=u[x];let w=null;if(ke(S))S.spaceBefore&&v.push(""),bu(l,v,S.commentBefore,!1),S.comment&&(w=S.comment);else if(je(S)){const R=ke(S.key)?S.key:null;R&&(R.spaceBefore&&v.push(""),bu(l,v,R.commentBefore,!1),R.comment&&(g=!0));const K=ke(S.value)?S.value:null;K?(K.comment&&(w=K.comment),K.commentBefore&&(g=!0)):S.value==null&&(R!=null&&R.comment)&&(w=R.comment)}w&&(g=!0);let M=Ei(S,p,()=>w=null);g||(g=v.length>b||M.includes(`
98
+ `)),x<u.length-1?M+=",":l.options.trailingComma&&(l.options.lineWidth>0&&(g||(g=v.reduce((R,K)=>R+K.length+2,2)+(M.length+2)>l.options.lineWidth)),g&&(M+=",")),w&&(M+=El(M,s,m(w))),v.push(M),b=v.length}const{start:O,end:E}=a;if(v.length===0)return O+E;if(!g){const x=v.reduce((S,w)=>S+w.length+2,2);g=l.options.lineWidth>0&&x>l.options.lineWidth}if(g){let x=O;for(const S of v)x+=S?`
99
+ ${o}${c}${S}`:`
100
+ `;return`${x}
101
+ ${c}${E}`}else return`${O}${h}${v.join(" ")}${h}${E}`}function bu({indent:u,options:{commentString:l}},a,s,c){if(s&&c&&(s=s.replace(/^\n+/,"")),s){const o=wn(l(s),u);a.push(o.trimStart())}}function wl(u,l){const a=De(l)?l.value:l;for(const s of u)if(je(s)&&(s.key===l||s.key===a||De(s.key)&&s.key.value===a))return s}class Lt extends op{static get tagName(){return"tag:yaml.org,2002:map"}constructor(l){super(Pn,l),this.items=[]}static from(l,a,s){const{keepUndefined:c,replacer:o}=s,h=new this(l),m=(p,g)=>{if(typeof o=="function")g=o.call(a,p,g);else if(Array.isArray(o)&&!o.includes(p))return;(g!==void 0||c)&&h.items.push(Rf(p,g,s))};if(a instanceof Map)for(const[p,g]of a)m(p,g);else if(a&&typeof a=="object")for(const p of Object.keys(a))m(p,a[p]);return typeof l.sortMapEntries=="function"&&h.items.sort(l.sortMapEntries),h}add(l,a){var h;let s;je(l)?s=l:!l||typeof l!="object"||!("key"in l)?s=new ct(l,l==null?void 0:l.value):s=new ct(l.key,l.value);const c=wl(this.items,s.key),o=(h=this.schema)==null?void 0:h.sortMapEntries;if(c){if(!a)throw new Error(`Key ${s.key} already set`);De(c.value)&&fp(s.value)?c.value.value=s.value:c.value=s.value}else if(o){const m=this.items.findIndex(p=>o(s,p)<0);m===-1?this.items.push(s):this.items.splice(m,0,s)}else this.items.push(s)}delete(l){const a=wl(this.items,l);return a?this.items.splice(this.items.indexOf(a),1).length>0:!1}get(l,a){const s=wl(this.items,l),c=s==null?void 0:s.value;return(!a&&De(c)?c.value:c)??void 0}has(l){return!!wl(this.items,l)}set(l,a){this.add(new ct(l,a),!0)}toJSON(l,a,s){const c=s?new s:a!=null&&a.mapAsMap?new Map:{};a!=null&&a.onCreate&&a.onCreate(c);for(const o of this.items)pp(a,c,o);return c}toString(l,a,s){if(!l)return JSON.stringify(this);for(const c of this.items)if(!je(c))throw new Error(`Map items must all be pairs; found ${JSON.stringify(c)} instead`);return!l.allNullValues&&this.hasAllNullValues(!1)&&(l=Object.assign({},l,{allNullValues:!0})),yp(this,l,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:l.indent||"",onChompKeep:s,onComment:a})}}const Ci={collection:"map",default:!0,nodeClass:Lt,tag:"tag:yaml.org,2002:map",resolve(u,l){return Ni(u)||l("Expected a mapping for this tag"),u},createNode:(u,l,a)=>Lt.from(u,l,a)};class el extends op{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(l){super(_i,l),this.items=[]}add(l){this.items.push(l)}delete(l){const a=lu(l);return typeof a!="number"?!1:this.items.splice(a,1).length>0}get(l,a){const s=lu(l);if(typeof s!="number")return;const c=this.items[s];return!a&&De(c)?c.value:c}has(l){const a=lu(l);return typeof a=="number"&&a<this.items.length}set(l,a){const s=lu(l);if(typeof s!="number")throw new Error(`Expected a valid index, not ${l}.`);const c=this.items[s];De(c)&&fp(a)?c.value=a:this.items[s]=a}toJSON(l,a){const s=[];a!=null&&a.onCreate&&a.onCreate(s);let c=0;for(const o of this.items)s.push(Gt(o,String(c++),a));return s}toString(l,a,s){return l?yp(this,l,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(l.indent||"")+" ",onChompKeep:s,onComment:a}):JSON.stringify(this)}static from(l,a,s){const{replacer:c}=s,o=new this(l);if(a&&Symbol.iterator in Object(a)){let h=0;for(let m of a){if(typeof c=="function"){const p=a instanceof Set?m:String(h++);m=c.call(a,p,m)}o.items.push(xa(m,void 0,s))}}return o}}function lu(u){let l=De(u)?u.value:u;return l&&typeof l=="string"&&(l=Number(l)),typeof l=="number"&&Number.isInteger(l)&&l>=0?l:null}const zi={collection:"seq",default:!0,nodeClass:el,tag:"tag:yaml.org,2002:seq",resolve(u,l){return Mi(u)||l("Expected a sequence for this tag"),u},createNode:(u,l,a)=>el.from(u,l,a)},zu={identify:u=>typeof u=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:u=>u,stringify(u,l,a,s){return l=Object.assign({actualString:!0},l),Ra(u,l,a,s)}},xu={identify:u=>u==null,createNode:()=>new ce(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new ce(null),stringify:({source:u},l)=>typeof u=="string"&&xu.test.test(u)?u:l.options.nullStr},jf={identify:u=>typeof u=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:u=>new ce(u[0]==="t"||u[0]==="T"),stringify({source:u,value:l},a){if(u&&jf.test.test(u)){const s=u[0]==="t"||u[0]==="T";if(l===s)return u}return l?a.options.trueStr:a.options.falseStr}};function Wt({format:u,minFractionDigits:l,tag:a,value:s}){if(typeof s=="bigint")return String(s);const c=typeof s=="number"?s:Number(s);if(!isFinite(c))return isNaN(c)?".nan":c<0?"-.inf":".inf";let o=Object.is(s,-0)?"-0":JSON.stringify(s);if(!u&&l&&(!a||a==="tag:yaml.org,2002:float")&&/^\d/.test(o)){let h=o.indexOf(".");h<0&&(h=o.length,o+=".");let m=l-(o.length-h-1);for(;m-- >0;)o+="0"}return o}const vp={identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:u=>u.slice(-3).toLowerCase()==="nan"?NaN:u[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Wt},bp={identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:u=>parseFloat(u),stringify(u){const l=Number(u.value);return isFinite(l)?l.toExponential():Wt(u)}},Sp={identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(u){const l=new ce(parseFloat(u)),a=u.indexOf(".");return a!==-1&&u[u.length-1]==="0"&&(l.minFractionDigits=u.length-a-1),l},stringify:Wt},Du=u=>typeof u=="bigint"||Number.isInteger(u),Bf=(u,l,a,{intAsBigInt:s})=>s?BigInt(u):parseInt(u.substring(l),a);function Tp(u,l,a){const{value:s}=u;return Du(s)&&s>=0?a+s.toString(l):Wt(u)}const Ep={identify:u=>Du(u)&&u>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(u,l,a)=>Bf(u,2,8,a),stringify:u=>Tp(u,8,"0o")},wp={identify:Du,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(u,l,a)=>Bf(u,0,10,a),stringify:Wt},Ap={identify:u=>Du(u)&&u>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(u,l,a)=>Bf(u,2,16,a),stringify:u=>Tp(u,16,"0x")},Xv=[Ci,zi,zu,xu,jf,Ep,wp,Ap,vp,bp,Sp];function vg(u){return typeof u=="bigint"||Number.isInteger(u)}const iu=({value:u})=>JSON.stringify(u),Zv=[{identify:u=>typeof u=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:u=>u,stringify:iu},{identify:u=>u==null,createNode:()=>new ce(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:iu},{identify:u=>typeof u=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:u=>u==="true",stringify:iu},{identify:vg,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(u,l,{intAsBigInt:a})=>a?BigInt(u):parseInt(u,10),stringify:({value:u})=>vg(u)?u.toString():JSON.stringify(u)},{identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:u=>parseFloat(u),stringify:iu}],Jv={default:!0,tag:"",test:/^/,resolve(u,l){return l(`Unresolved plain scalar ${JSON.stringify(u)}`),u}},Wv=[Ci,zi].concat(Zv,Jv),kf={identify:u=>u instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(u,l){if(typeof atob=="function"){const a=atob(u.replace(/[\n\r]/g,"")),s=new Uint8Array(a.length);for(let c=0;c<a.length;++c)s[c]=a.charCodeAt(c);return s}else return l("This environment does not support reading binary tags; either Buffer or atob is required"),u},stringify({comment:u,type:l,value:a},s,c,o){if(!a)return"";const h=a;let m;if(typeof btoa=="function"){let p="";for(let g=0;g<h.length;++g)p+=String.fromCharCode(h[g]);m=btoa(p)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(l??(l=ce.BLOCK_LITERAL),l!==ce.QUOTE_DOUBLE){const p=Math.max(s.options.lineWidth-s.indent.length,s.options.minContentWidth),g=Math.ceil(m.length/p),b=new Array(g);for(let v=0,O=0;v<g;++v,O+=p)b[v]=m.substr(O,p);m=b.join(l===ce.BLOCK_LITERAL?`
102
+ `:" ")}return Ra({comment:u,type:l,value:m},s,c,o)}};function Op(u,l){if(Mi(u))for(let a=0;a<u.items.length;++a){let s=u.items[a];if(!je(s)){if(Ni(s)){s.items.length>1&&l("Each pair must have its own sequence indicator");const c=s.items[0]||new ct(new ce(null));if(s.commentBefore&&(c.key.commentBefore=c.key.commentBefore?`${s.commentBefore}
103
+ ${c.key.commentBefore}`:s.commentBefore),s.comment){const o=c.value??c.key;o.comment=o.comment?`${s.comment}
104
+ ${o.comment}`:s.comment}s=c}u.items[a]=je(s)?s:new ct(s)}}else l("Expected a sequence for this tag");return u}function _p(u,l,a){const{replacer:s}=a,c=new el(u);c.tag="tag:yaml.org,2002:pairs";let o=0;if(l&&Symbol.iterator in Object(l))for(let h of l){typeof s=="function"&&(h=s.call(l,String(o++),h));let m,p;if(Array.isArray(h))if(h.length===2)m=h[0],p=h[1];else throw new TypeError(`Expected [key, value] tuple: ${h}`);else if(h&&h instanceof Object){const g=Object.keys(h);if(g.length===1)m=g[0],p=h[m];else throw new TypeError(`Expected tuple with one key, not ${g.length} keys`)}else m=h;c.items.push(Rf(m,p,a))}return c}const qf={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Op,createNode:_p};class Si extends el{constructor(){super(),this.add=Lt.prototype.add.bind(this),this.delete=Lt.prototype.delete.bind(this),this.get=Lt.prototype.get.bind(this),this.has=Lt.prototype.has.bind(this),this.set=Lt.prototype.set.bind(this),this.tag=Si.tag}toJSON(l,a){if(!a)return super.toJSON(l);const s=new Map;a!=null&&a.onCreate&&a.onCreate(s);for(const c of this.items){let o,h;if(je(c)?(o=Gt(c.key,"",a),h=Gt(c.value,o,a)):o=Gt(c,"",a),s.has(o))throw new Error("Ordered maps must not include duplicate keys");s.set(o,h)}return s}static from(l,a,s){const c=_p(l,a,s),o=new this;return o.items=c.items,o}}Si.tag="tag:yaml.org,2002:omap";const Hf={collection:"seq",identify:u=>u instanceof Map,nodeClass:Si,default:!1,tag:"tag:yaml.org,2002:omap",resolve(u,l){const a=Op(u,l),s=[];for(const{key:c}of a.items)De(c)&&(s.includes(c.value)?l(`Ordered maps must not include duplicate keys: ${c.value}`):s.push(c.value));return Object.assign(new Si,a)},createNode:(u,l,a)=>Si.from(u,l,a)};function Np({value:u,source:l},a){return l&&(u?Mp:Cp).test.test(l)?l:u?a.options.trueStr:a.options.falseStr}const Mp={identify:u=>u===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new ce(!0),stringify:Np},Cp={identify:u=>u===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new ce(!1),stringify:Np},Iv={identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:u=>u.slice(-3).toLowerCase()==="nan"?NaN:u[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Wt},Fv={identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:u=>parseFloat(u.replace(/_/g,"")),stringify(u){const l=Number(u.value);return isFinite(l)?l.toExponential():Wt(u)}},Pv={identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(u){const l=new ce(parseFloat(u.replace(/_/g,""))),a=u.indexOf(".");if(a!==-1){const s=u.substring(a+1).replace(/_/g,"");s[s.length-1]==="0"&&(l.minFractionDigits=s.length)}return l},stringify:Wt},ja=u=>typeof u=="bigint"||Number.isInteger(u);function Lu(u,l,a,{intAsBigInt:s}){const c=u[0];if((c==="-"||c==="+")&&(l+=1),u=u.substring(l).replace(/_/g,""),s){switch(a){case 2:u=`0b${u}`;break;case 8:u=`0o${u}`;break;case 16:u=`0x${u}`;break}const h=BigInt(u);return c==="-"?BigInt(-1)*h:h}const o=parseInt(u,a);return c==="-"?-1*o:o}function Yf(u,l,a){const{value:s}=u;if(ja(s)){const c=s.toString(l);return s<0?"-"+a+c.substr(1):a+c}return Wt(u)}const eb={identify:ja,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(u,l,a)=>Lu(u,2,2,a),stringify:u=>Yf(u,2,"0b")},tb={identify:ja,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(u,l,a)=>Lu(u,1,8,a),stringify:u=>Yf(u,8,"0")},nb={identify:ja,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(u,l,a)=>Lu(u,0,10,a),stringify:Wt},lb={identify:ja,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(u,l,a)=>Lu(u,2,16,a),stringify:u=>Yf(u,16,"0x")};class Ti extends Lt{constructor(l){super(l),this.tag=Ti.tag}add(l){let a;je(l)?a=l:l&&typeof l=="object"&&"key"in l&&"value"in l&&l.value===null?a=new ct(l.key,null):a=new ct(l,null),wl(this.items,a.key)||this.items.push(a)}get(l,a){const s=wl(this.items,l);return!a&&je(s)?De(s.key)?s.key.value:s.key:s}set(l,a){if(typeof a!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof a}`);const s=wl(this.items,l);s&&!a?this.items.splice(this.items.indexOf(s),1):!s&&a&&this.items.push(new ct(l))}toJSON(l,a){return super.toJSON(l,a,Set)}toString(l,a,s){if(!l)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},l,{allNullValues:!0}),a,s);throw new Error("Set items must all have null values")}static from(l,a,s){const{replacer:c}=s,o=new this(l);if(a&&Symbol.iterator in Object(a))for(let h of a)typeof c=="function"&&(h=c.call(a,h,h)),o.items.push(Rf(h,null,s));return o}}Ti.tag="tag:yaml.org,2002:set";const $f={collection:"map",identify:u=>u instanceof Set,nodeClass:Ti,default:!1,tag:"tag:yaml.org,2002:set",createNode:(u,l,a)=>Ti.from(u,l,a),resolve(u,l){if(Ni(u)){if(u.hasAllNullValues(!0))return Object.assign(new Ti,u);l("Set items must all have null values")}else l("Expected a mapping for this tag");return u}};function Kf(u,l){const a=u[0],s=a==="-"||a==="+"?u.substring(1):u,c=h=>l?BigInt(h):Number(h),o=s.replace(/_/g,"").split(":").reduce((h,m)=>h*c(60)+c(m),c(0));return a==="-"?c(-1)*o:o}function zp(u){let{value:l}=u,a=h=>h;if(typeof l=="bigint")a=h=>BigInt(h);else if(isNaN(l)||!isFinite(l))return Wt(u);let s="";l<0&&(s="-",l*=a(-1));const c=a(60),o=[l%c];return l<60?o.unshift(0):(l=(l-o[0])/c,o.unshift(l%c),l>=60&&(l=(l-o[0])/c,o.unshift(l))),s+o.map(h=>String(h).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const xp={identify:u=>typeof u=="bigint"||Number.isInteger(u),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(u,l,{intAsBigInt:a})=>Kf(u,a),stringify:zp},Dp={identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:u=>Kf(u,!1),stringify:zp},Uu={identify:u=>u instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(u){const l=u.match(Uu.test);if(!l)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,a,s,c,o,h,m]=l.map(Number),p=l[7]?Number((l[7]+"00").substr(1,3)):0;let g=Date.UTC(a,s-1,c,o||0,h||0,m||0,p);const b=l[8];if(b&&b!=="Z"){let v=Kf(b,!1);Math.abs(v)<30&&(v*=60),g-=6e4*v}return new Date(g)},stringify:({value:u})=>(u==null?void 0:u.toISOString().replace(/(T00:00:00)?\.000Z$/,""))??""},bg=[Ci,zi,zu,xu,Mp,Cp,eb,tb,nb,lb,Iv,Fv,Pv,kf,On,Hf,qf,$f,xp,Dp,Uu],Sg=new Map([["core",Xv],["failsafe",[Ci,zi,zu]],["json",Wv],["yaml11",bg],["yaml-1.1",bg]]),Tg={binary:kf,bool:jf,float:Sp,floatExp:bp,floatNaN:vp,floatTime:Dp,int:wp,intHex:Ap,intOct:Ep,intTime:xp,map:Ci,merge:On,null:xu,omap:Hf,pairs:qf,seq:zi,set:$f,timestamp:Uu},ib={"tag:yaml.org,2002:binary":kf,"tag:yaml.org,2002:merge":On,"tag:yaml.org,2002:omap":Hf,"tag:yaml.org,2002:pairs":qf,"tag:yaml.org,2002:set":$f,"tag:yaml.org,2002:timestamp":Uu};function df(u,l,a){const s=Sg.get(l);if(s&&!u)return a&&!s.includes(On)?s.concat(On):s.slice();let c=s;if(!c)if(Array.isArray(u))c=[];else{const o=Array.from(Sg.keys()).filter(h=>h!=="yaml11").map(h=>JSON.stringify(h)).join(", ");throw new Error(`Unknown schema "${l}"; use one of ${o} or define customTags array`)}if(Array.isArray(u))for(const o of u)c=c.concat(o);else typeof u=="function"&&(c=u(c.slice()));return a&&(c=c.concat(On)),c.reduce((o,h)=>{const m=typeof h=="string"?Tg[h]:h;if(!m){const p=JSON.stringify(h),g=Object.keys(Tg).map(b=>JSON.stringify(b)).join(", ");throw new Error(`Unknown custom tag ${p}; use one of ${g}`)}return o.includes(m)||o.push(m),o},[])}const ab=(u,l)=>u.key<l.key?-1:u.key>l.key?1:0;class Ru{constructor({compat:l,customTags:a,merge:s,resolveKnownTags:c,schema:o,sortMapEntries:h,toStringDefaults:m}){this.compat=Array.isArray(l)?df(l,"compat"):l?df(null,l):null,this.name=typeof o=="string"&&o||"core",this.knownTags=c?ib:{},this.tags=df(a,this.name,s),this.toStringOptions=m??null,Object.defineProperty(this,Pn,{value:Ci}),Object.defineProperty(this,nn,{value:zu}),Object.defineProperty(this,_i,{value:zi}),this.sortMapEntries=typeof h=="function"?h:h===!0?ab:null}clone(){const l=Object.create(Ru.prototype,Object.getOwnPropertyDescriptors(this));return l.tags=this.tags.slice(),l}}function sb(u,l){var p;const a=[];let s=l.directives===!0;if(l.directives!==!1&&u.directives){const g=u.directives.toString(u);g?(a.push(g),s=!0):u.directives.docStart&&(s=!0)}s&&a.push("---");const c=dp(u,l),{commentString:o}=c.options;if(u.commentBefore){a.length!==1&&a.unshift("");const g=o(u.commentBefore);a.unshift(wn(g,""))}let h=!1,m=null;if(u.contents){if(ke(u.contents)){if(u.contents.spaceBefore&&s&&a.push(""),u.contents.commentBefore){const v=o(u.contents.commentBefore);a.push(wn(v,""))}c.forceBlockIndent=!!u.comment,m=u.contents.comment}const g=m?void 0:()=>h=!0;let b=Ei(u.contents,c,()=>m=null,g);m&&(b+=El(b,"",o(m))),(b[0]==="|"||b[0]===">")&&a[a.length-1]==="---"?a[a.length-1]=`--- ${b}`:a.push(b)}else a.push(Ei(u.contents,c));if((p=u.directives)!=null&&p.docEnd)if(u.comment){const g=o(u.comment);g.includes(`
105
+ `)?(a.push("..."),a.push(wn(g,""))):a.push(`... ${g}`)}else a.push("...");else{let g=u.comment;g&&h&&(g=g.replace(/^\n+/,"")),g&&((!h||m)&&a[a.length-1]!==""&&a.push(""),a.push(wn(o(g),"")))}return a.join(`
106
+ `)+`
107
+ `}class xi{constructor(l,a,s){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Vt,{value:Of});let c=null;typeof a=="function"||Array.isArray(a)?c=a:s===void 0&&a&&(s=a,a=void 0);const o=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},s);this.options=o;let{version:h}=o;s!=null&&s._directives?(this.directives=s._directives.atDocument(),this.directives.yaml.explicit&&(h=this.directives.yaml.version)):this.directives=new ot({version:h}),this.setSchema(h,s),this.contents=l===void 0?null:this.createNode(l,c,s)}clone(){const l=Object.create(xi.prototype,{[Vt]:{value:Of}});return l.commentBefore=this.commentBefore,l.comment=this.comment,l.errors=this.errors.slice(),l.warnings=this.warnings.slice(),l.options=Object.assign({},this.options),this.directives&&(l.directives=this.directives.clone()),l.schema=this.schema.clone(),l.contents=ke(this.contents)?this.contents.clone(l.schema):this.contents,this.range&&(l.range=this.range.slice()),l}add(l){di(this.contents)&&this.contents.add(l)}addIn(l,a){di(this.contents)&&this.contents.addIn(l,a)}createAlias(l,a){if(!l.anchor){const s=cp(this);l.anchor=!a||s.has(a)?rp(a||"a",s):a}return new _u(l.anchor)}createNode(l,a,s){let c;if(typeof a=="function")l=a.call({"":l},"",l),c=a;else if(Array.isArray(a)){const w=R=>typeof R=="number"||R instanceof String||R instanceof Number,M=a.filter(w).map(String);M.length>0&&(a=a.concat(M)),c=a}else s===void 0&&a&&(s=a,a=void 0);const{aliasDuplicateObjects:o,anchorPrefix:h,flow:m,keepUndefined:p,onTagObj:g,tag:b}=s??{},{onAnchor:v,setAnchors:O,sourceObjects:E}=Uv(this,h||"a"),x={aliasDuplicateObjects:o??!0,keepUndefined:p??!1,onAnchor:v,onTagObj:g,replacer:c,schema:this.schema,sourceObjects:E},S=xa(l,b,x);return m&&Be(S)&&(S.flow=!0),O(),S}createPair(l,a,s={}){const c=this.createNode(l,null,s),o=this.createNode(a,null,s);return new ct(c,o)}delete(l){return di(this.contents)?this.contents.delete(l):!1}deleteIn(l){return Ca(l)?this.contents==null?!1:(this.contents=null,!0):di(this.contents)?this.contents.deleteIn(l):!1}get(l,a){return Be(this.contents)?this.contents.get(l,a):void 0}getIn(l,a){return Ca(l)?!a&&De(this.contents)?this.contents.value:this.contents:Be(this.contents)?this.contents.getIn(l,a):void 0}has(l){return Be(this.contents)?this.contents.has(l):!1}hasIn(l){return Ca(l)?this.contents!==void 0:Be(this.contents)?this.contents.hasIn(l):!1}set(l,a){this.contents==null?this.contents=vu(this.schema,[l],a):di(this.contents)&&this.contents.set(l,a)}setIn(l,a){Ca(l)?this.contents=a:this.contents==null?this.contents=vu(this.schema,Array.from(l),a):di(this.contents)&&this.contents.setIn(l,a)}setSchema(l,a={}){typeof l=="number"&&(l=String(l));let s;switch(l){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new ot({version:"1.1"}),s={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=l:this.directives=new ot({version:l}),s={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,s=null;break;default:{const c=JSON.stringify(l);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${c}`)}}if(a.schema instanceof Object)this.schema=a.schema;else if(s)this.schema=new Ru(Object.assign(s,a));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:l,jsonArg:a,mapAsMap:s,maxAliasCount:c,onAnchor:o,reviver:h}={}){const m={anchors:new Map,doc:this,keep:!l,mapAsMap:s===!0,mapKeyWarned:!1,maxAliasCount:typeof c=="number"?c:100},p=Gt(this.contents,a??"",m);if(typeof o=="function")for(const{count:g,res:b}of m.anchors.values())o(b,g);return typeof h=="function"?vi(h,{"":p},"",p):p}toJSON(l,a){return this.toJS({json:!0,jsonArg:l,mapAsMap:!1,onAnchor:a})}toString(l={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in l&&(!Number.isInteger(l.indent)||Number(l.indent)<=0)){const a=JSON.stringify(l.indent);throw new Error(`"indent" option must be a positive integer, not ${a}`)}return sb(this,l)}}function di(u){if(Be(u))return!0;throw new Error("Expected a YAML collection as document contents")}class Gf extends Error{constructor(l,a,s,c){super(),this.name=l,this.code=s,this.message=c,this.pos=a}}class Al extends Gf{constructor(l,a,s){super("YAMLParseError",l,a,s)}}class Lp extends Gf{constructor(l,a,s){super("YAMLWarning",l,a,s)}}const Su=(u,l)=>a=>{if(a.pos[0]===-1)return;a.linePos=a.pos.map(m=>l.linePos(m));const{line:s,col:c}=a.linePos[0];a.message+=` at line ${s}, column ${c}`;let o=c-1,h=u.substring(l.lineStarts[s-1],l.lineStarts[s]).replace(/[\n\r]+$/,"");if(o>=60&&h.length>80){const m=Math.min(o-39,h.length-79);h="…"+h.substring(m),o-=m-1}if(h.length>80&&(h=h.substring(0,79)+"…"),s>1&&/^ *$/.test(h.substring(0,o))){let m=u.substring(l.lineStarts[s-2],l.lineStarts[s-1]);m.length>80&&(m=m.substring(0,79)+`…
108
+ `),h=m+h}if(/[^ ]/.test(h)){let m=1;const p=a.linePos[1];(p==null?void 0:p.line)===s&&p.col>c&&(m=Math.max(1,Math.min(p.col-c,80-o)));const g=" ".repeat(o)+"^".repeat(m);a.message+=`:
109
+
110
+ ${h}
111
+ ${g}
112
+ `}};function wi(u,{flow:l,indicator:a,next:s,offset:c,onError:o,parentIndent:h,startOnNewline:m}){let p=!1,g=m,b=m,v="",O="",E=!1,x=!1,S=null,w=null,M=null,R=null,K=null,Q=null,Z=null;for(const V of u)switch(x&&(V.type!=="space"&&V.type!=="newline"&&V.type!=="comma"&&o(V.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),x=!1),S&&(g&&V.type!=="comment"&&V.type!=="newline"&&o(S,"TAB_AS_INDENT","Tabs are not allowed as indentation"),S=null),V.type){case"space":!l&&(a!=="doc-start"||(s==null?void 0:s.type)!=="flow-collection")&&V.source.includes(" ")&&(S=V),b=!0;break;case"comment":{b||o(V,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const U=V.source.substring(1)||" ";v?v+=O+U:v=U,O="",g=!1;break}case"newline":g?v?v+=V.source:(!Q||a!=="seq-item-ind")&&(p=!0):O+=V.source,g=!0,E=!0,(w||M)&&(R=V),b=!0;break;case"anchor":w&&o(V,"MULTIPLE_ANCHORS","A node can have at most one anchor"),V.source.endsWith(":")&&o(V.offset+V.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),w=V,Z??(Z=V.offset),g=!1,b=!1,x=!0;break;case"tag":{M&&o(V,"MULTIPLE_TAGS","A node can have at most one tag"),M=V,Z??(Z=V.offset),g=!1,b=!1,x=!0;break}case a:(w||M)&&o(V,"BAD_PROP_ORDER",`Anchors and tags must be after the ${V.source} indicator`),Q&&o(V,"UNEXPECTED_TOKEN",`Unexpected ${V.source} in ${l??"collection"}`),Q=V,g=a==="seq-item-ind"||a==="explicit-key-ind",b=!1;break;case"comma":if(l){K&&o(V,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`),K=V,g=!1,b=!1;break}default:o(V,"UNEXPECTED_TOKEN",`Unexpected ${V.type} token`),g=!1,b=!1}const W=u[u.length-1],k=W?W.offset+W.source.length:c;return x&&s&&s.type!=="space"&&s.type!=="newline"&&s.type!=="comma"&&(s.type!=="scalar"||s.source!=="")&&o(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),S&&(g&&S.indent<=h||(s==null?void 0:s.type)==="block-map"||(s==null?void 0:s.type)==="block-seq")&&o(S,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:K,found:Q,spaceBefore:p,comment:v,hasNewline:E,anchor:w,tag:M,newlineAfterProp:R,end:k,start:Z??k}}function Da(u){if(!u)return null;switch(u.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(u.source.includes(`
113
+ `))return!0;if(u.end){for(const l of u.end)if(l.type==="newline")return!0}return!1;case"flow-collection":for(const l of u.items){for(const a of l.start)if(a.type==="newline")return!0;if(l.sep){for(const a of l.sep)if(a.type==="newline")return!0}if(Da(l.key)||Da(l.value))return!0}return!1;default:return!0}}function Cf(u,l,a){if((l==null?void 0:l.type)==="flow-collection"){const s=l.end[0];s.indent===u&&(s.source==="]"||s.source==="}")&&Da(l)&&a(s,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Up(u,l,a){const{uniqueKeys:s}=u.options;if(s===!1)return!1;const c=typeof s=="function"?s:(o,h)=>o===h||De(o)&&De(h)&&o.value===h.value;return l.some(o=>c(o.key,a))}const Eg="All mapping items must start at the same column";function ub({composeNode:u,composeEmptyNode:l},a,s,c,o){var b;const h=(o==null?void 0:o.nodeClass)??Lt,m=new h(a.schema);a.atRoot&&(a.atRoot=!1);let p=s.offset,g=null;for(const v of s.items){const{start:O,key:E,sep:x,value:S}=v,w=wi(O,{indicator:"explicit-key-ind",next:E??(x==null?void 0:x[0]),offset:p,onError:c,parentIndent:s.indent,startOnNewline:!0}),M=!w.found;if(M){if(E&&(E.type==="block-seq"?c(p,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in E&&E.indent!==s.indent&&c(p,"BAD_INDENT",Eg)),!w.anchor&&!w.tag&&!x){g=w.end,w.comment&&(m.comment?m.comment+=`
114
+ `+w.comment:m.comment=w.comment);continue}(w.newlineAfterProp||Da(E))&&c(E??O[O.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((b=w.found)==null?void 0:b.indent)!==s.indent&&c(p,"BAD_INDENT",Eg);a.atKey=!0;const R=w.end,K=E?u(a,E,w,c):l(a,R,O,null,w,c);a.schema.compat&&Cf(s.indent,E,c),a.atKey=!1,Up(a,m.items,K)&&c(R,"DUPLICATE_KEY","Map keys must be unique");const Q=wi(x??[],{indicator:"map-value-ind",next:S,offset:K.range[2],onError:c,parentIndent:s.indent,startOnNewline:!E||E.type==="block-scalar"});if(p=Q.end,Q.found){M&&((S==null?void 0:S.type)==="block-map"&&!Q.hasNewline&&c(p,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),a.options.strict&&w.start<Q.found.offset-1024&&c(K.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const Z=S?u(a,S,Q,c):l(a,p,x,null,Q,c);a.schema.compat&&Cf(s.indent,S,c),p=Z.range[2];const W=new ct(K,Z);a.options.keepSourceTokens&&(W.srcToken=v),m.items.push(W)}else{M&&c(K.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),Q.comment&&(K.comment?K.comment+=`
115
+ `+Q.comment:K.comment=Q.comment);const Z=new ct(K);a.options.keepSourceTokens&&(Z.srcToken=v),m.items.push(Z)}}return g&&g<p&&c(g,"IMPOSSIBLE","Map comment with trailing content"),m.range=[s.offset,p,g??p],m}function cb({composeNode:u,composeEmptyNode:l},a,s,c,o){const h=(o==null?void 0:o.nodeClass)??el,m=new h(a.schema);a.atRoot&&(a.atRoot=!1),a.atKey&&(a.atKey=!1);let p=s.offset,g=null;for(const{start:b,value:v}of s.items){const O=wi(b,{indicator:"seq-item-ind",next:v,offset:p,onError:c,parentIndent:s.indent,startOnNewline:!0});if(!O.found)if(O.anchor||O.tag||v)(v==null?void 0:v.type)==="block-seq"?c(O.end,"BAD_INDENT","All sequence items must start at the same column"):c(p,"MISSING_CHAR","Sequence item without - indicator");else{g=O.end,O.comment&&(m.comment=O.comment);continue}const E=v?u(a,v,O,c):l(a,O.end,b,null,O,c);a.schema.compat&&Cf(s.indent,v,c),p=E.range[2],m.items.push(E)}return m.range=[s.offset,p,g??p],m}function Ba(u,l,a,s){let c="";if(u){let o=!1,h="";for(const m of u){const{source:p,type:g}=m;switch(g){case"space":o=!0;break;case"comment":{a&&!o&&s(m,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const b=p.substring(1)||" ";c?c+=h+b:c=b,h="";break}case"newline":c&&(h+=p),o=!0;break;default:s(m,"UNEXPECTED_TOKEN",`Unexpected ${g} at node end`)}l+=p.length}}return{comment:c,offset:l}}const mf="Block collections are not allowed within flow collections",gf=u=>u&&(u.type==="block-map"||u.type==="block-seq");function rb({composeNode:u,composeEmptyNode:l},a,s,c,o){var w;const h=s.start.source==="{",m=h?"flow map":"flow sequence",p=(o==null?void 0:o.nodeClass)??(h?Lt:el),g=new p(a.schema);g.flow=!0;const b=a.atRoot;b&&(a.atRoot=!1),a.atKey&&(a.atKey=!1);let v=s.offset+s.start.source.length;for(let M=0;M<s.items.length;++M){const R=s.items[M],{start:K,key:Q,sep:Z,value:W}=R,k=wi(K,{flow:m,indicator:"explicit-key-ind",next:Q??(Z==null?void 0:Z[0]),offset:v,onError:c,parentIndent:s.indent,startOnNewline:!1});if(!k.found){if(!k.anchor&&!k.tag&&!Z&&!W){M===0&&k.comma?c(k.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${m}`):M<s.items.length-1&&c(k.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${m}`),k.comment&&(g.comment?g.comment+=`
116
+ `+k.comment:g.comment=k.comment),v=k.end;continue}!h&&a.options.strict&&Da(Q)&&c(Q,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(M===0)k.comma&&c(k.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${m}`);else if(k.comma||c(k.start,"MISSING_CHAR",`Missing , between ${m} items`),k.comment){let V="";e:for(const U of K)switch(U.type){case"comma":case"space":break;case"comment":V=U.source.substring(1);break e;default:break e}if(V){let U=g.items[g.items.length-1];je(U)&&(U=U.value??U.key),U.comment?U.comment+=`
117
+ `+V:U.comment=V,k.comment=k.comment.substring(V.length+1)}}if(!h&&!Z&&!k.found){const V=W?u(a,W,k,c):l(a,k.end,Z,null,k,c);g.items.push(V),v=V.range[2],gf(W)&&c(V.range,"BLOCK_IN_FLOW",mf)}else{a.atKey=!0;const V=k.end,U=Q?u(a,Q,k,c):l(a,V,K,null,k,c);gf(Q)&&c(U.range,"BLOCK_IN_FLOW",mf),a.atKey=!1;const ae=wi(Z??[],{flow:m,indicator:"map-value-ind",next:W,offset:U.range[2],onError:c,parentIndent:s.indent,startOnNewline:!1});if(ae.found){if(!h&&!k.found&&a.options.strict){if(Z)for(const ee of Z){if(ee===ae.found)break;if(ee.type==="newline"){c(ee,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}k.start<ae.found.offset-1024&&c(ae.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else W&&("source"in W&&((w=W.source)==null?void 0:w[0])===":"?c(W,"MISSING_CHAR",`Missing space after : in ${m}`):c(ae.start,"MISSING_CHAR",`Missing , or : between ${m} items`));const te=W?u(a,W,ae,c):ae.found?l(a,ae.end,Z,null,ae,c):null;te?gf(W)&&c(te.range,"BLOCK_IN_FLOW",mf):ae.comment&&(U.comment?U.comment+=`
118
+ `+ae.comment:U.comment=ae.comment);const $=new ct(U,te);if(a.options.keepSourceTokens&&($.srcToken=R),h){const ee=g;Up(a,ee.items,U)&&c(V,"DUPLICATE_KEY","Map keys must be unique"),ee.items.push($)}else{const ee=new Lt(a.schema);ee.flow=!0,ee.items.push($);const we=(te??U).range;ee.range=[U.range[0],we[1],we[2]],g.items.push(ee)}v=te?te.range[2]:ae.end}}const O=h?"}":"]",[E,...x]=s.end;let S=v;if((E==null?void 0:E.source)===O)S=E.offset+E.source.length;else{const M=m[0].toUpperCase()+m.substring(1),R=b?`${M} must end with a ${O}`:`${M} in block collection must be sufficiently indented and end with a ${O}`;c(v,b?"MISSING_CHAR":"BAD_INDENT",R),E&&E.source.length!==1&&x.unshift(E)}if(x.length>0){const M=Ba(x,S,a.options.strict,c);M.comment&&(g.comment?g.comment+=`
119
+ `+M.comment:g.comment=M.comment),g.range=[s.offset,S,M.offset]}else g.range=[s.offset,S,S];return g}function pf(u,l,a,s,c,o){const h=a.type==="block-map"?ub(u,l,a,s,o):a.type==="block-seq"?cb(u,l,a,s,o):rb(u,l,a,s,o),m=h.constructor;return c==="!"||c===m.tagName?(h.tag=m.tagName,h):(c&&(h.tag=c),h)}function fb(u,l,a,s,c){var O;const o=s.tag,h=o?l.directives.tagName(o.source,E=>c(o,"TAG_RESOLVE_FAILED",E)):null;if(a.type==="block-seq"){const{anchor:E,newlineAfterProp:x}=s,S=E&&o?E.offset>o.offset?E:o:E??o;S&&(!x||x.offset<S.offset)&&c(S,"MISSING_CHAR","Missing newline after block sequence props")}const m=a.type==="block-map"?"map":a.type==="block-seq"?"seq":a.start.source==="{"?"map":"seq";if(!o||!h||h==="!"||h===Lt.tagName&&m==="map"||h===el.tagName&&m==="seq")return pf(u,l,a,c,h);let p=l.schema.tags.find(E=>E.tag===h&&E.collection===m);if(!p){const E=l.schema.knownTags[h];if((E==null?void 0:E.collection)===m)l.schema.tags.push(Object.assign({},E,{default:!1})),p=E;else return E?c(o,"BAD_COLLECTION_TYPE",`${E.tag} used for ${m} collection, but expects ${E.collection??"scalar"}`,!0):c(o,"TAG_RESOLVE_FAILED",`Unresolved tag: ${h}`,!0),pf(u,l,a,c,h)}const g=pf(u,l,a,c,h,p),b=((O=p.resolve)==null?void 0:O.call(p,g,E=>c(o,"TAG_RESOLVE_FAILED",E),l.options))??g,v=ke(b)?b:new ce(b);return v.range=g.range,v.tag=h,p!=null&&p.format&&(v.format=p.format),v}function Rp(u,l,a){const s=l.offset,c=ob(l,u.options.strict,a);if(!c)return{value:"",type:null,comment:"",range:[s,s,s]};const o=c.mode===">"?ce.BLOCK_FOLDED:ce.BLOCK_LITERAL,h=l.source?hb(l.source):[];let m=h.length;for(let S=h.length-1;S>=0;--S){const w=h[S][1];if(w===""||w==="\r")m=S;else break}if(m===0){const S=c.chomp==="+"&&h.length>0?`
120
+ `.repeat(Math.max(1,h.length-1)):"";let w=s+c.length;return l.source&&(w+=l.source.length),{value:S,type:o,comment:c.comment,range:[s,w,w]}}let p=l.indent+c.indent,g=l.offset+c.length,b=0;for(let S=0;S<m;++S){const[w,M]=h[S];if(M===""||M==="\r")c.indent===0&&w.length>p&&(p=w.length);else{w.length<p&&a(g+w.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),c.indent===0&&(p=w.length),b=S,p===0&&!u.atRoot&&a(g,"BAD_INDENT","Block scalar values in collections must be indented");break}g+=w.length+M.length+1}for(let S=h.length-1;S>=m;--S)h[S][0].length>p&&(m=S+1);let v="",O="",E=!1;for(let S=0;S<b;++S)v+=h[S][0].slice(p)+`
121
+ `;for(let S=b;S<m;++S){let[w,M]=h[S];g+=w.length+M.length+1;const R=M[M.length-1]==="\r";if(R&&(M=M.slice(0,-1)),M&&w.length<p){const Q=`Block scalar lines must not be less indented than their ${c.indent?"explicit indentation indicator":"first line"}`;a(g-M.length-(R?2:1),"BAD_INDENT",Q),w=""}o===ce.BLOCK_LITERAL?(v+=O+w.slice(p)+M,O=`
122
+ `):w.length>p||M[0]===" "?(O===" "?O=`
123
+ `:!E&&O===`
124
+ `&&(O=`
125
+
126
+ `),v+=O+w.slice(p)+M,O=`
127
+ `,E=!0):M===""?O===`
128
+ `?v+=`
129
+ `:O=`
130
+ `:(v+=O+M,O=" ",E=!1)}switch(c.chomp){case"-":break;case"+":for(let S=m;S<h.length;++S)v+=`
131
+ `+h[S][0].slice(p);v[v.length-1]!==`
132
+ `&&(v+=`
133
+ `);break;default:v+=`
134
+ `}const x=s+c.length+l.source.length;return{value:v,type:o,comment:c.comment,range:[s,x,x]}}function ob({offset:u,props:l},a,s){if(l[0].type!=="block-scalar-header")return s(l[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:c}=l[0],o=c[0];let h=0,m="",p=-1;for(let O=1;O<c.length;++O){const E=c[O];if(!m&&(E==="-"||E==="+"))m=E;else{const x=Number(E);!h&&x?h=x:p===-1&&(p=u+O)}}p!==-1&&s(p,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${c}`);let g=!1,b="",v=c.length;for(let O=1;O<l.length;++O){const E=l[O];switch(E.type){case"space":g=!0;case"newline":v+=E.source.length;break;case"comment":a&&!g&&s(E,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),v+=E.source.length,b=E.source.substring(1);break;case"error":s(E,"UNEXPECTED_TOKEN",E.message),v+=E.source.length;break;default:{const x=`Unexpected token in block scalar header: ${E.type}`;s(E,"UNEXPECTED_TOKEN",x);const S=E.source;S&&typeof S=="string"&&(v+=S.length)}}}return{mode:o,indent:h,chomp:m,comment:b,length:v}}function hb(u){const l=u.split(/\n( *)/),a=l[0],s=a.match(/^( *)/),o=[s!=null&&s[1]?[s[1],a.slice(s[1].length)]:["",a]];for(let h=1;h<l.length;h+=2)o.push([l[h],l[h+1]]);return o}function jp(u,l,a){const{offset:s,type:c,source:o,end:h}=u;let m,p;const g=(O,E,x)=>a(s+O,E,x);switch(c){case"scalar":m=ce.PLAIN,p=db(o,g);break;case"single-quoted-scalar":m=ce.QUOTE_SINGLE,p=mb(o,g);break;case"double-quoted-scalar":m=ce.QUOTE_DOUBLE,p=gb(o,g);break;default:return a(u,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${c}`),{value:"",type:null,comment:"",range:[s,s+o.length,s+o.length]}}const b=s+o.length,v=Ba(h,b,l,a);return{value:p,type:m,comment:v.comment,range:[s,b,v.offset]}}function db(u,l){let a="";switch(u[0]){case" ":a="a tab character";break;case",":a="flow indicator character ,";break;case"%":a="directive indicator character %";break;case"|":case">":{a=`block scalar indicator ${u[0]}`;break}case"@":case"`":{a=`reserved character ${u[0]}`;break}}return a&&l(0,"BAD_SCALAR_START",`Plain value cannot start with ${a}`),Bp(u)}function mb(u,l){return(u[u.length-1]!=="'"||u.length===1)&&l(u.length,"MISSING_CHAR","Missing closing 'quote"),Bp(u.slice(1,-1)).replace(/''/g,"'")}function Bp(u){let l,a;try{l=new RegExp(`(.*?)(?<![ ])[ ]*\r?
135
+ `,"sy"),a=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
136
+ `,"sy")}catch{l=/(.*?)[ \t]*\r?\n/sy,a=/[ \t]*(.*?)[ \t]*\r?\n/sy}let s=l.exec(u);if(!s)return u;let c=s[1],o=" ",h=l.lastIndex;for(a.lastIndex=h;s=a.exec(u);)s[1]===""?o===`
137
+ `?c+=o:o=`
138
+ `:(c+=o+s[1],o=" "),h=a.lastIndex;const m=/[ \t]*(.*)/sy;return m.lastIndex=h,s=m.exec(u),c+o+((s==null?void 0:s[1])??"")}function gb(u,l){let a="";for(let s=1;s<u.length-1;++s){const c=u[s];if(!(c==="\r"&&u[s+1]===`
139
+ `))if(c===`
140
+ `){const{fold:o,offset:h}=pb(u,s);a+=o,s=h}else if(c==="\\"){let o=u[++s];const h=yb[o];if(h)a+=h;else if(o===`
141
+ `)for(o=u[s+1];o===" "||o===" ";)o=u[++s+1];else if(o==="\r"&&u[s+1]===`
142
+ `)for(o=u[++s+1];o===" "||o===" ";)o=u[++s+1];else if(o==="x"||o==="u"||o==="U"){const m={x:2,u:4,U:8}[o];a+=vb(u,s+1,m,l),s+=m}else{const m=u.substr(s-1,2);l(s-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${m}`),a+=m}}else if(c===" "||c===" "){const o=s;let h=u[s+1];for(;h===" "||h===" ";)h=u[++s+1];h!==`
143
+ `&&!(h==="\r"&&u[s+2]===`
144
+ `)&&(a+=s>o?u.slice(o,s+1):c)}else a+=c}return(u[u.length-1]!=='"'||u.length===1)&&l(u.length,"MISSING_CHAR",'Missing closing "quote'),a}function pb(u,l){let a="",s=u[l+1];for(;(s===" "||s===" "||s===`
145
+ `||s==="\r")&&!(s==="\r"&&u[l+2]!==`
146
+ `);)s===`
147
+ `&&(a+=`
148
+ `),l+=1,s=u[l+1];return a||(a=" "),{fold:a,offset:l}}const yb={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
149
+ `,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function vb(u,l,a,s){const c=u.substr(l,a),h=c.length===a&&/^[0-9a-fA-F]+$/.test(c)?parseInt(c,16):NaN;if(isNaN(h)){const m=u.substr(l-2,a+2);return s(l-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${m}`),m}return String.fromCodePoint(h)}function kp(u,l,a,s){const{value:c,type:o,comment:h,range:m}=l.type==="block-scalar"?Rp(u,l,s):jp(l,u.options.strict,s),p=a?u.directives.tagName(a.source,v=>s(a,"TAG_RESOLVE_FAILED",v)):null;let g;u.options.stringKeys&&u.atKey?g=u.schema[nn]:p?g=bb(u.schema,c,p,a,s):l.type==="scalar"?g=Sb(u,c,l,s):g=u.schema[nn];let b;try{const v=g.resolve(c,O=>s(a??l,"TAG_RESOLVE_FAILED",O),u.options);b=De(v)?v:new ce(v)}catch(v){const O=v instanceof Error?v.message:String(v);s(a??l,"TAG_RESOLVE_FAILED",O),b=new ce(c)}return b.range=m,b.source=c,o&&(b.type=o),p&&(b.tag=p),g.format&&(b.format=g.format),h&&(b.comment=h),b}function bb(u,l,a,s,c){var m;if(a==="!")return u[nn];const o=[];for(const p of u.tags)if(!p.collection&&p.tag===a)if(p.default&&p.test)o.push(p);else return p;for(const p of o)if((m=p.test)!=null&&m.test(l))return p;const h=u.knownTags[a];return h&&!h.collection?(u.tags.push(Object.assign({},h,{default:!1,test:void 0})),h):(c(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${a}`,a!=="tag:yaml.org,2002:str"),u[nn])}function Sb({atKey:u,directives:l,schema:a},s,c,o){const h=a.tags.find(m=>{var p;return(m.default===!0||u&&m.default==="key")&&((p=m.test)==null?void 0:p.test(s))})||a[nn];if(a.compat){const m=a.compat.find(p=>{var g;return p.default&&((g=p.test)==null?void 0:g.test(s))})??a[nn];if(h.tag!==m.tag){const p=l.tagString(h.tag),g=l.tagString(m.tag),b=`Value may be parsed as either ${p} or ${g}`;o(c,"TAG_RESOLVE_FAILED",b,!0)}}return h}function Tb(u,l,a){if(l){a??(a=l.length);for(let s=a-1;s>=0;--s){let c=l[s];switch(c.type){case"space":case"comment":case"newline":u-=c.source.length;continue}for(c=l[++s];(c==null?void 0:c.type)==="space";)u+=c.source.length,c=l[++s];break}}return u}const Eb={composeNode:qp,composeEmptyNode:Vf};function qp(u,l,a,s){const c=u.atKey,{spaceBefore:o,comment:h,anchor:m,tag:p}=a;let g,b=!0;switch(l.type){case"alias":g=wb(u,l,s),(m||p)&&s(l,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":g=kp(u,l,p,s),m&&(g.anchor=m.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":try{g=fb(Eb,u,l,a,s),m&&(g.anchor=m.source.substring(1))}catch(v){const O=v instanceof Error?v.message:String(v);s(l,"RESOURCE_EXHAUSTION",O)}break;default:{const v=l.type==="error"?l.message:`Unsupported token (type: ${l.type})`;s(l,"UNEXPECTED_TOKEN",v),b=!1}}return g??(g=Vf(u,l.offset,void 0,null,a,s)),m&&g.anchor===""&&s(m,"BAD_ALIAS","Anchor cannot be an empty string"),c&&u.options.stringKeys&&(!De(g)||typeof g.value!="string"||g.tag&&g.tag!=="tag:yaml.org,2002:str")&&s(p??l,"NON_STRING_KEY","With stringKeys, all keys must be strings"),o&&(g.spaceBefore=!0),h&&(l.type==="scalar"&&l.source===""?g.comment=h:g.commentBefore=h),u.options.keepSourceTokens&&b&&(g.srcToken=l),g}function Vf(u,l,a,s,{spaceBefore:c,comment:o,anchor:h,tag:m,end:p},g){const b={type:"scalar",offset:Tb(l,a,s),indent:-1,source:""},v=kp(u,b,m,g);return h&&(v.anchor=h.source.substring(1),v.anchor===""&&g(h,"BAD_ALIAS","Anchor cannot be an empty string")),c&&(v.spaceBefore=!0),o&&(v.comment=o,v.range[2]=p),v}function wb({options:u},{offset:l,source:a,end:s},c){const o=new _u(a.substring(1));o.source===""&&c(l,"BAD_ALIAS","Alias cannot be an empty string"),o.source.endsWith(":")&&c(l+a.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const h=l+a.length,m=Ba(s,h,u.strict,c);return o.range=[l,h,m.offset],m.comment&&(o.comment=m.comment),o}function Ab(u,l,{offset:a,start:s,value:c,end:o},h){const m=Object.assign({_directives:l},u),p=new xi(void 0,m),g={atKey:!1,atRoot:!0,directives:p.directives,options:p.options,schema:p.schema},b=wi(s,{indicator:"doc-start",next:c??(o==null?void 0:o[0]),offset:a,onError:h,parentIndent:0,startOnNewline:!0});b.found&&(p.directives.docStart=!0,c&&(c.type==="block-map"||c.type==="block-seq")&&!b.hasNewline&&h(b.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),p.contents=c?qp(g,c,b,h):Vf(g,b.end,s,null,b,h);const v=p.contents.range[2],O=Ba(o,v,!1,h);return O.comment&&(p.comment=O.comment),p.range=[a,v,O.offset],p}function Ma(u){if(typeof u=="number")return[u,u+1];if(Array.isArray(u))return u.length===2?u:[u[0],u[1]];const{offset:l,source:a}=u;return[l,l+(typeof a=="string"?a.length:1)]}function wg(u){var c;let l="",a=!1,s=!1;for(let o=0;o<u.length;++o){const h=u[o];switch(h[0]){case"#":l+=(l===""?"":s?`
150
+
151
+ `:`
152
+ `)+(h.substring(1)||" "),a=!0,s=!1;break;case"%":((c=u[o+1])==null?void 0:c[0])!=="#"&&(o+=1),a=!1;break;default:a||(s=!0),a=!1}}return{comment:l,afterEmptyLine:s}}class Qf{constructor(l={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(a,s,c,o)=>{const h=Ma(a);o?this.warnings.push(new Lp(h,s,c)):this.errors.push(new Al(h,s,c))},this.directives=new ot({version:l.version||"1.2"}),this.options=l}decorate(l,a){const{comment:s,afterEmptyLine:c}=wg(this.prelude);if(s){const o=l.contents;if(a)l.comment=l.comment?`${l.comment}
153
+ ${s}`:s;else if(c||l.directives.docStart||!o)l.commentBefore=s;else if(Be(o)&&!o.flow&&o.items.length>0){let h=o.items[0];je(h)&&(h=h.key);const m=h.commentBefore;h.commentBefore=m?`${s}
154
+ ${m}`:s}else{const h=o.commentBefore;o.commentBefore=h?`${s}
155
+ ${h}`:s}}a?(Array.prototype.push.apply(l.errors,this.errors),Array.prototype.push.apply(l.warnings,this.warnings)):(l.errors=this.errors,l.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:wg(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(l,a=!1,s=-1){for(const c of l)yield*this.next(c);yield*this.end(a,s)}*next(l){switch(l.type){case"directive":this.directives.add(l.source,(a,s,c)=>{const o=Ma(l);o[0]+=a,this.onError(o,"BAD_DIRECTIVE",s,c)}),this.prelude.push(l.source),this.atDirectives=!0;break;case"document":{const a=Ab(this.options,this.directives,l,this.onError);this.atDirectives&&!a.directives.docStart&&this.onError(l,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(a,!1),this.doc&&(yield this.doc),this.doc=a,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(l.source);break;case"error":{const a=l.source?`${l.message}: ${JSON.stringify(l.source)}`:l.message,s=new Al(Ma(l),"UNEXPECTED_TOKEN",a);this.atDirectives||!this.doc?this.errors.push(s):this.doc.errors.push(s);break}case"doc-end":{if(!this.doc){const s="Unexpected doc-end without preceding document";this.errors.push(new Al(Ma(l),"UNEXPECTED_TOKEN",s));break}this.doc.directives.docEnd=!0;const a=Ba(l.end,l.offset+l.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),a.comment){const s=this.doc.comment;this.doc.comment=s?`${s}
156
+ ${a.comment}`:a.comment}this.doc.range[2]=a.offset;break}default:this.errors.push(new Al(Ma(l),"UNEXPECTED_TOKEN",`Unsupported token ${l.type}`))}}*end(l=!1,a=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(l){const s=Object.assign({_directives:this.directives},this.options),c=new xi(void 0,s);this.atDirectives&&this.onError(a,"MISSING_CHAR","Missing directives-end indicator line"),c.range=[0,a,a],this.decorate(c,!1),yield c}}}function Ob(u,l=!0,a){if(u){const s=(c,o,h)=>{const m=typeof c=="number"?c:Array.isArray(c)?c[0]:c.offset;if(a)a(m,o,h);else throw new Al([m,m+1],o,h)};switch(u.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return jp(u,l,s);case"block-scalar":return Rp({options:{strict:l}},u,s)}}return null}function _b(u,l){const{implicitKey:a=!1,indent:s,inFlow:c=!1,offset:o=-1,type:h="PLAIN"}=l,m=Ra({type:h,value:u},{implicitKey:a,indent:s>0?" ".repeat(s):"",inFlow:c,options:{blockQuote:!0,lineWidth:-1}}),p=l.end??[{type:"newline",offset:-1,indent:s,source:`
157
+ `}];switch(m[0]){case"|":case">":{const g=m.indexOf(`
158
+ `),b=m.substring(0,g),v=m.substring(g+1)+`
159
+ `,O=[{type:"block-scalar-header",offset:o,indent:s,source:b}];return Hp(O,p)||O.push({type:"newline",offset:-1,indent:s,source:`
160
+ `}),{type:"block-scalar",offset:o,indent:s,props:O,source:v}}case'"':return{type:"double-quoted-scalar",offset:o,indent:s,source:m,end:p};case"'":return{type:"single-quoted-scalar",offset:o,indent:s,source:m,end:p};default:return{type:"scalar",offset:o,indent:s,source:m,end:p}}}function Nb(u,l,a={}){let{afterKey:s=!1,implicitKey:c=!1,inFlow:o=!1,type:h}=a,m="indent"in u?u.indent:null;if(s&&typeof m=="number"&&(m+=2),!h)switch(u.type){case"single-quoted-scalar":h="QUOTE_SINGLE";break;case"double-quoted-scalar":h="QUOTE_DOUBLE";break;case"block-scalar":{const g=u.props[0];if(g.type!=="block-scalar-header")throw new Error("Invalid block scalar header");h=g.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:h="PLAIN"}const p=Ra({type:h,value:l},{implicitKey:c||m===null,indent:m!==null&&m>0?" ".repeat(m):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}});switch(p[0]){case"|":case">":Mb(u,p);break;case'"':yf(u,p,"double-quoted-scalar");break;case"'":yf(u,p,"single-quoted-scalar");break;default:yf(u,p,"scalar")}}function Mb(u,l){const a=l.indexOf(`
161
+ `),s=l.substring(0,a),c=l.substring(a+1)+`
162
+ `;if(u.type==="block-scalar"){const o=u.props[0];if(o.type!=="block-scalar-header")throw new Error("Invalid block scalar header");o.source=s,u.source=c}else{const{offset:o}=u,h="indent"in u?u.indent:-1,m=[{type:"block-scalar-header",offset:o,indent:h,source:s}];Hp(m,"end"in u?u.end:void 0)||m.push({type:"newline",offset:-1,indent:h,source:`
163
+ `});for(const p of Object.keys(u))p!=="type"&&p!=="offset"&&delete u[p];Object.assign(u,{type:"block-scalar",indent:h,props:m,source:c})}}function Hp(u,l){if(l)for(const a of l)switch(a.type){case"space":case"comment":u.push(a);break;case"newline":return u.push(a),!0}return!1}function yf(u,l,a){switch(u.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":u.type=a,u.source=l;break;case"block-scalar":{const s=u.props.slice(1);let c=l.length;u.props[0].type==="block-scalar-header"&&(c-=u.props[0].source.length);for(const o of s)o.offset+=c;delete u.props,Object.assign(u,{type:a,source:l,end:s});break}case"block-map":case"block-seq":{const c={type:"newline",offset:u.offset+l.length,indent:u.indent,source:`
164
+ `};delete u.items,Object.assign(u,{type:a,source:l,end:[c]});break}default:{const s="indent"in u?u.indent:-1,c="end"in u&&Array.isArray(u.end)?u.end.filter(o=>o.type==="space"||o.type==="comment"||o.type==="newline"):[];for(const o of Object.keys(u))o!=="type"&&o!=="offset"&&delete u[o];Object.assign(u,{type:a,indent:s,source:l,end:c})}}}const Cb=u=>"type"in u?Tu(u):gu(u);function Tu(u){switch(u.type){case"block-scalar":{let l="";for(const a of u.props)l+=Tu(a);return l+u.source}case"block-map":case"block-seq":{let l="";for(const a of u.items)l+=gu(a);return l}case"flow-collection":{let l=u.start.source;for(const a of u.items)l+=gu(a);for(const a of u.end)l+=a.source;return l}case"document":{let l=gu(u);if(u.end)for(const a of u.end)l+=a.source;return l}default:{let l=u.source;if("end"in u&&u.end)for(const a of u.end)l+=a.source;return l}}}function gu({start:u,key:l,sep:a,value:s}){let c="";for(const o of u)c+=o.source;if(l&&(c+=Tu(l)),a)for(const o of a)c+=o.source;return s&&(c+=Tu(s)),c}const zf=Symbol("break visit"),zb=Symbol("skip children"),Yp=Symbol("remove item");function _l(u,l){"type"in u&&u.type==="document"&&(u={start:u.start,value:u.value}),$p(Object.freeze([]),u,l)}_l.BREAK=zf;_l.SKIP=zb;_l.REMOVE=Yp;_l.itemAtPath=(u,l)=>{let a=u;for(const[s,c]of l){const o=a==null?void 0:a[s];if(o&&"items"in o)a=o.items[c];else return}return a};_l.parentCollection=(u,l)=>{const a=_l.itemAtPath(u,l.slice(0,-1)),s=l[l.length-1][0],c=a==null?void 0:a[s];if(c&&"items"in c)return c;throw new Error("Parent collection not found")};function $p(u,l,a){let s=a(l,u);if(typeof s=="symbol")return s;for(const c of["key","value"]){const o=l[c];if(o&&"items"in o){for(let h=0;h<o.items.length;++h){const m=$p(Object.freeze(u.concat([[c,h]])),o.items[h],a);if(typeof m=="number")h=m-1;else{if(m===zf)return zf;m===Yp&&(o.items.splice(h,1),h-=1)}}typeof s=="function"&&c==="key"&&(s=s(l,u))}}return typeof s=="function"?s(l,u):s}const ju="\uFEFF",Bu="",ku="",La="",xb=u=>!!u&&"items"in u,Db=u=>!!u&&(u.type==="scalar"||u.type==="single-quoted-scalar"||u.type==="double-quoted-scalar"||u.type==="block-scalar");function Lb(u){switch(u){case ju:return"<BOM>";case Bu:return"<DOC>";case ku:return"<FLOW_END>";case La:return"<SCALAR>";default:return JSON.stringify(u)}}function Kp(u){switch(u){case ju:return"byte-order-mark";case Bu:return"doc-mode";case ku:return"flow-error-end";case La:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
165
+ `:case`\r
166
+ `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(u[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}const Ub=Object.freeze(Object.defineProperty({__proto__:null,BOM:ju,DOCUMENT:Bu,FLOW_END:ku,SCALAR:La,createScalarToken:_b,isCollection:xb,isScalar:Db,prettyToken:Lb,resolveAsScalar:Ob,setScalarValue:Nb,stringify:Cb,tokenType:Kp,visit:_l},Symbol.toStringTag,{value:"Module"}));function Jt(u){switch(u){case void 0:case" ":case`
167
+ `:case"\r":case" ":return!0;default:return!1}}const Ag=new Set("0123456789ABCDEFabcdef"),Rb=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),au=new Set(",[]{}"),jb=new Set(` ,[]{}
168
+ \r `),vf=u=>!u||jb.has(u);class Gp{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(l,a=!1){if(l){if(typeof l!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+l:l,this.lineEndPos=null}this.atEnd=!a;let s=this.next??"stream";for(;s&&(a||this.hasChars(1));)s=yield*this.parseNext(s)}atLineEnd(){let l=this.pos,a=this.buffer[l];for(;a===" "||a===" ";)a=this.buffer[++l];return!a||a==="#"||a===`
169
+ `?!0:a==="\r"?this.buffer[l+1]===`
170
+ `:!1}charAt(l){return this.buffer[this.pos+l]}continueScalar(l){let a=this.buffer[l];if(this.indentNext>0){let s=0;for(;a===" ";)a=this.buffer[++s+l];if(a==="\r"){const c=this.buffer[s+l+1];if(c===`
171
+ `||!c&&!this.atEnd)return l+s+1}return a===`
172
+ `||s>=this.indentNext||!a&&!this.atEnd?l+s:-1}if(a==="-"||a==="."){const s=this.buffer.substr(l,3);if((s==="---"||s==="...")&&Jt(this.buffer[l+3]))return-1}return l}getLine(){let l=this.lineEndPos;return(typeof l!="number"||l!==-1&&l<this.pos)&&(l=this.buffer.indexOf(`
173
+ `,this.pos),this.lineEndPos=l),l===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[l-1]==="\r"&&(l-=1),this.buffer.substring(this.pos,l))}hasChars(l){return this.pos+l<=this.buffer.length}setNext(l){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=l,null}peek(l){return this.buffer.substr(this.pos,l)}*parseNext(l){switch(l){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let l=this.getLine();if(l===null)return this.setNext("stream");if(l[0]===ju&&(yield*this.pushCount(1),l=l.substring(1)),l[0]==="%"){let a=l.length,s=l.indexOf("#");for(;s!==-1;){const o=l[s-1];if(o===" "||o===" "){a=s-1;break}else s=l.indexOf("#",s+1)}for(;;){const o=l[a-1];if(o===" "||o===" ")a-=1;else break}const c=(yield*this.pushCount(a))+(yield*this.pushSpaces(!0));return yield*this.pushCount(l.length-c),this.pushNewline(),"stream"}if(this.atLineEnd()){const a=yield*this.pushSpaces(!0);return yield*this.pushCount(l.length-a),yield*this.pushNewline(),"stream"}return yield Bu,yield*this.parseLineStart()}*parseLineStart(){const l=this.charAt(0);if(!l&&!this.atEnd)return this.setNext("line-start");if(l==="-"||l==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const a=this.peek(3);if((a==="---"||a==="...")&&Jt(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,a==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Jt(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[l,a]=this.peek(2);if(!a&&!this.atEnd)return this.setNext("block-start");if((l==="-"||l==="?"||l===":")&&Jt(a)){const s=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=s,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const l=this.getLine();if(l===null)return this.setNext("doc");let a=yield*this.pushIndicators();switch(l[a]){case"#":yield*this.pushCount(l.length-a);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(vf),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return a+=yield*this.parseBlockScalarHeader(),a+=yield*this.pushSpaces(!0),yield*this.pushCount(l.length-a),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let l,a,s=-1;do l=yield*this.pushNewline(),l>0?(a=yield*this.pushSpaces(!1),this.indentValue=s=a):a=0,a+=yield*this.pushSpaces(!0);while(l+a>0);const c=this.getLine();if(c===null)return this.setNext("flow");if((s!==-1&&s<this.indentNext&&c[0]!=="#"||s===0&&(c.startsWith("---")||c.startsWith("..."))&&Jt(c[3]))&&!(s===this.indentNext-1&&this.flowLevel===1&&(c[0]==="]"||c[0]==="}")))return this.flowLevel=0,yield ku,yield*this.parseLineStart();let o=0;for(;c[o]===",";)o+=yield*this.pushCount(1),o+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(o+=yield*this.pushIndicators(),c[o]){case void 0:return"flow";case"#":return yield*this.pushCount(c.length-o),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(vf),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const h=this.charAt(1);if(this.flowKey||Jt(h)||h===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const l=this.charAt(0);let a=this.buffer.indexOf(l,this.pos+1);if(l==="'")for(;a!==-1&&this.buffer[a+1]==="'";)a=this.buffer.indexOf("'",a+2);else for(;a!==-1;){let o=0;for(;this.buffer[a-1-o]==="\\";)o+=1;if(o%2===0)break;a=this.buffer.indexOf('"',a+1)}const s=this.buffer.substring(0,a);let c=s.indexOf(`
174
+ `,this.pos);if(c!==-1){for(;c!==-1;){const o=this.continueScalar(c+1);if(o===-1)break;c=s.indexOf(`
175
+ `,o)}c!==-1&&(a=c-(s[c-1]==="\r"?2:1))}if(a===-1){if(!this.atEnd)return this.setNext("quoted-scalar");a=this.buffer.length}return yield*this.pushToIndex(a+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let l=this.pos;for(;;){const a=this.buffer[++l];if(a==="+")this.blockScalarKeep=!0;else if(a>"0"&&a<="9")this.blockScalarIndent=Number(a)-1;else if(a!=="-")break}return yield*this.pushUntil(a=>Jt(a)||a==="#")}*parseBlockScalar(){let l=this.pos-1,a=0,s;e:for(let o=this.pos;s=this.buffer[o];++o)switch(s){case" ":a+=1;break;case`
176
+ `:l=o,a=0;break;case"\r":{const h=this.buffer[o+1];if(!h&&!this.atEnd)return this.setNext("block-scalar");if(h===`
177
+ `)break}default:break e}if(!s&&!this.atEnd)return this.setNext("block-scalar");if(a>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=a:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const o=this.continueScalar(l+1);if(o===-1)break;l=this.buffer.indexOf(`
178
+ `,o)}while(l!==-1);if(l===-1){if(!this.atEnd)return this.setNext("block-scalar");l=this.buffer.length}}let c=l+1;for(s=this.buffer[c];s===" ";)s=this.buffer[++c];if(s===" "){for(;s===" "||s===" "||s==="\r"||s===`
179
+ `;)s=this.buffer[++c];l=c-1}else if(!this.blockScalarKeep)do{let o=l-1,h=this.buffer[o];h==="\r"&&(h=this.buffer[--o]);const m=o;for(;h===" ";)h=this.buffer[--o];if(h===`
180
+ `&&o>=this.pos&&o+1+a>m)l=o;else break}while(!0);return yield La,yield*this.pushToIndex(l+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const l=this.flowLevel>0;let a=this.pos-1,s=this.pos-1,c;for(;c=this.buffer[++s];)if(c===":"){const o=this.buffer[s+1];if(Jt(o)||l&&au.has(o))break;a=s}else if(Jt(c)){let o=this.buffer[s+1];if(c==="\r"&&(o===`
181
+ `?(s+=1,c=`
182
+ `,o=this.buffer[s+1]):a=s),o==="#"||l&&au.has(o))break;if(c===`
183
+ `){const h=this.continueScalar(s+1);if(h===-1)break;s=Math.max(s,h-2)}}else{if(l&&au.has(c))break;a=s}return!c&&!this.atEnd?this.setNext("plain-scalar"):(yield La,yield*this.pushToIndex(a+1,!0),l?"flow":"doc")}*pushCount(l){return l>0?(yield this.buffer.substr(this.pos,l),this.pos+=l,l):0}*pushToIndex(l,a){const s=this.buffer.slice(this.pos,l);return s?(yield s,this.pos+=s.length,s.length):(a&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(vf))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const l=this.flowLevel>0,a=this.charAt(1);if(Jt(a)||l&&au.has(a))return l?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let l=this.pos+2,a=this.buffer[l];for(;!Jt(a)&&a!==">";)a=this.buffer[++l];return yield*this.pushToIndex(a===">"?l+1:l,!1)}else{let l=this.pos+1,a=this.buffer[l];for(;a;)if(Rb.has(a))a=this.buffer[++l];else if(a==="%"&&Ag.has(this.buffer[l+1])&&Ag.has(this.buffer[l+2]))a=this.buffer[l+=3];else break;return yield*this.pushToIndex(l,!1)}}*pushNewline(){const l=this.buffer[this.pos];return l===`
184
+ `?yield*this.pushCount(1):l==="\r"&&this.charAt(1)===`
185
+ `?yield*this.pushCount(2):0}*pushSpaces(l){let a=this.pos-1,s;do s=this.buffer[++a];while(s===" "||l&&s===" ");const c=a-this.pos;return c>0&&(yield this.buffer.substr(this.pos,c),this.pos=a),c}*pushUntil(l){let a=this.pos,s=this.buffer[a];for(;!l(s);)s=this.buffer[++a];return yield*this.pushToIndex(a,!1)}}class Vp{constructor(){this.lineStarts=[],this.addNewLine=l=>this.lineStarts.push(l),this.linePos=l=>{let a=0,s=this.lineStarts.length;for(;a<s;){const o=a+s>>1;this.lineStarts[o]<l?a=o+1:s=o}if(this.lineStarts[a]===l)return{line:a+1,col:1};if(a===0)return{line:0,col:l};const c=this.lineStarts[a-1];return{line:a,col:l-c+1}}}}function Fn(u,l){for(let a=0;a<u.length;++a)if(u[a].type===l)return!0;return!1}function Og(u){for(let l=0;l<u.length;++l)switch(u[l].type){case"space":case"comment":case"newline":break;default:return l}return-1}function Qp(u){switch(u==null?void 0:u.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function su(u){switch(u.type){case"document":return u.start;case"block-map":{const l=u.items[u.items.length-1];return l.sep??l.start}case"block-seq":return u.items[u.items.length-1].start;default:return[]}}function mi(u){var a;if(u.length===0)return[];let l=u.length;e:for(;--l>=0;)switch(u[l].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((a=u[++l])==null?void 0:a.type)==="space";);return u.splice(l,u.length)}function _g(u){if(u.start.type==="flow-seq-start")for(const l of u.items)l.sep&&!l.value&&!Fn(l.start,"explicit-key-ind")&&!Fn(l.sep,"map-value-ind")&&(l.key&&(l.value=l.key),delete l.key,Qp(l.value)?l.value.end?Array.prototype.push.apply(l.value.end,l.sep):l.value.end=l.sep:Array.prototype.push.apply(l.start,l.sep),delete l.sep)}class Xf{constructor(l){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Gp,this.onNewLine=l}*parse(l,a=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const s of this.lexer.lex(l,a))yield*this.next(s);a||(yield*this.end())}*next(l){if(this.source=l,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=l.length;return}const a=Kp(l);if(a)if(a==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=a,yield*this.step(),a){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+l.length);break;case"space":this.atNewLine&&l[0]===" "&&(this.indent+=l.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=l.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=l.length}else{const s=`Not a YAML token: ${l}`;yield*this.pop({type:"error",offset:this.offset,message:s,source:l}),this.offset+=l.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const l=this.peek(1);if(this.type==="doc-end"&&(l==null?void 0:l.type)!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!l)return yield*this.stream();switch(l.type){case"document":return yield*this.document(l);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(l);case"block-scalar":return yield*this.blockScalar(l);case"block-map":return yield*this.blockMap(l);case"block-seq":return yield*this.blockSequence(l);case"flow-collection":return yield*this.flowCollection(l);case"doc-end":return yield*this.documentEnd(l)}yield*this.pop()}peek(l){return this.stack[this.stack.length-l]}*pop(l){const a=l??this.stack.pop();if(!a)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield a;else{const s=this.peek(1);switch(a.type==="block-scalar"?a.indent="indent"in s?s.indent:0:a.type==="flow-collection"&&s.type==="document"&&(a.indent=0),a.type==="flow-collection"&&_g(a),s.type){case"document":s.value=a;break;case"block-scalar":s.props.push(a);break;case"block-map":{const c=s.items[s.items.length-1];if(c.value){s.items.push({start:[],key:a,sep:[]}),this.onKeyLine=!0;return}else if(c.sep)c.value=a;else{Object.assign(c,{key:a,sep:[]}),this.onKeyLine=!c.explicitKey;return}break}case"block-seq":{const c=s.items[s.items.length-1];c.value?s.items.push({start:[],value:a}):c.value=a;break}case"flow-collection":{const c=s.items[s.items.length-1];!c||c.value?s.items.push({start:[],key:a,sep:[]}):c.sep?c.value=a:Object.assign(c,{key:a,sep:[]});return}default:yield*this.pop(),yield*this.pop(a)}if((s.type==="document"||s.type==="block-map"||s.type==="block-seq")&&(a.type==="block-map"||a.type==="block-seq")){const c=a.items[a.items.length-1];c&&!c.sep&&!c.value&&c.start.length>0&&Og(c.start)===-1&&(a.indent===0||c.start.every(o=>o.type!=="comment"||o.indent<a.indent))&&(s.type==="document"?s.end=c.start:s.items.push({start:c.start}),a.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const l={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&l.start.push(this.sourceToken),this.stack.push(l);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(l){if(l.value)return yield*this.lineEnd(l);switch(this.type){case"doc-start":{Og(l.start)!==-1?(yield*this.pop(),yield*this.step()):l.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":l.start.push(this.sourceToken);return}const a=this.startBlockValue(l);a?this.stack.push(a):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(l){if(this.type==="map-value-ind"){const a=su(this.peek(2)),s=mi(a);let c;l.end?(c=l.end,c.push(this.sourceToken),delete l.end):c=[this.sourceToken];const o={type:"block-map",offset:l.offset,indent:l.indent,items:[{start:s,key:l,sep:c}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=o}else yield*this.lineEnd(l)}*blockScalar(l){switch(this.type){case"space":case"comment":case"newline":l.props.push(this.sourceToken);return;case"scalar":if(l.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let a=this.source.indexOf(`
186
+ `)+1;for(;a!==0;)this.onNewLine(this.offset+a),a=this.source.indexOf(`
187
+ `,a)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(l){var s;const a=l.items[l.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,a.value){const c="end"in a.value?a.value.end:void 0,o=Array.isArray(c)?c[c.length-1]:void 0;(o==null?void 0:o.type)==="comment"?c==null||c.push(this.sourceToken):l.items.push({start:[this.sourceToken]})}else a.sep?a.sep.push(this.sourceToken):a.start.push(this.sourceToken);return;case"space":case"comment":if(a.value)l.items.push({start:[this.sourceToken]});else if(a.sep)a.sep.push(this.sourceToken);else{if(this.atIndentedComment(a.start,l.indent)){const c=l.items[l.items.length-2],o=(s=c==null?void 0:c.value)==null?void 0:s.end;if(Array.isArray(o)){Array.prototype.push.apply(o,a.start),o.push(this.sourceToken),l.items.pop();return}}a.start.push(this.sourceToken)}return}if(this.indent>=l.indent){const c=!this.onKeyLine&&this.indent===l.indent,o=c&&(a.sep||a.explicitKey)&&this.type!=="seq-item-ind";let h=[];if(o&&a.sep&&!a.value){const m=[];for(let p=0;p<a.sep.length;++p){const g=a.sep[p];switch(g.type){case"newline":m.push(p);break;case"space":break;case"comment":g.indent>l.indent&&(m.length=0);break;default:m.length=0}}m.length>=2&&(h=a.sep.splice(m[1]))}switch(this.type){case"anchor":case"tag":o||a.value?(h.push(this.sourceToken),l.items.push({start:h}),this.onKeyLine=!0):a.sep?a.sep.push(this.sourceToken):a.start.push(this.sourceToken);return;case"explicit-key-ind":!a.sep&&!a.explicitKey?(a.start.push(this.sourceToken),a.explicitKey=!0):o||a.value?(h.push(this.sourceToken),l.items.push({start:h,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(a.explicitKey)if(a.sep)if(a.value)l.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Fn(a.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:h,key:null,sep:[this.sourceToken]}]});else if(Qp(a.key)&&!Fn(a.sep,"newline")){const m=mi(a.start),p=a.key,g=a.sep;g.push(this.sourceToken),delete a.key,delete a.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:m,key:p,sep:g}]})}else h.length>0?a.sep=a.sep.concat(h,this.sourceToken):a.sep.push(this.sourceToken);else if(Fn(a.start,"newline"))Object.assign(a,{key:null,sep:[this.sourceToken]});else{const m=mi(a.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:m,key:null,sep:[this.sourceToken]}]})}else a.sep?a.value||o?l.items.push({start:h,key:null,sep:[this.sourceToken]}):Fn(a.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):a.sep.push(this.sourceToken):Object.assign(a,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const m=this.flowScalar(this.type);o||a.value?(l.items.push({start:h,key:m,sep:[]}),this.onKeyLine=!0):a.sep?this.stack.push(m):(Object.assign(a,{key:m,sep:[]}),this.onKeyLine=!0);return}default:{const m=this.startBlockValue(l);if(m){if(m.type==="block-seq"){if(!a.explicitKey&&a.sep&&!Fn(a.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else c&&l.items.push({start:h});this.stack.push(m);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(l){var s;const a=l.items[l.items.length-1];switch(this.type){case"newline":if(a.value){const c="end"in a.value?a.value.end:void 0,o=Array.isArray(c)?c[c.length-1]:void 0;(o==null?void 0:o.type)==="comment"?c==null||c.push(this.sourceToken):l.items.push({start:[this.sourceToken]})}else a.start.push(this.sourceToken);return;case"space":case"comment":if(a.value)l.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(a.start,l.indent)){const c=l.items[l.items.length-2],o=(s=c==null?void 0:c.value)==null?void 0:s.end;if(Array.isArray(o)){Array.prototype.push.apply(o,a.start),o.push(this.sourceToken),l.items.pop();return}}a.start.push(this.sourceToken)}return;case"anchor":case"tag":if(a.value||this.indent<=l.indent)break;a.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==l.indent)break;a.value||Fn(a.start,"seq-item-ind")?l.items.push({start:[this.sourceToken]}):a.start.push(this.sourceToken);return}if(this.indent>l.indent){const c=this.startBlockValue(l);if(c){this.stack.push(c);return}}yield*this.pop(),yield*this.step()}*flowCollection(l){const a=l.items[l.items.length-1];if(this.type==="flow-error-end"){let s;do yield*this.pop(),s=this.peek(1);while((s==null?void 0:s.type)==="flow-collection")}else if(l.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!a||a.sep?l.items.push({start:[this.sourceToken]}):a.start.push(this.sourceToken);return;case"map-value-ind":!a||a.value?l.items.push({start:[],key:null,sep:[this.sourceToken]}):a.sep?a.sep.push(this.sourceToken):Object.assign(a,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!a||a.value?l.items.push({start:[this.sourceToken]}):a.sep?a.sep.push(this.sourceToken):a.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const c=this.flowScalar(this.type);!a||a.value?l.items.push({start:[],key:c,sep:[]}):a.sep?this.stack.push(c):Object.assign(a,{key:c,sep:[]});return}case"flow-map-end":case"flow-seq-end":l.end.push(this.sourceToken);return}const s=this.startBlockValue(l);s?this.stack.push(s):(yield*this.pop(),yield*this.step())}else{const s=this.peek(2);if(s.type==="block-map"&&(this.type==="map-value-ind"&&s.indent===l.indent||this.type==="newline"&&!s.items[s.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&s.type!=="flow-collection"){const c=su(s),o=mi(c);_g(l);const h=l.end.splice(1,l.end.length);h.push(this.sourceToken);const m={type:"block-map",offset:l.offset,indent:l.indent,items:[{start:o,key:l,sep:h}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=m}else yield*this.lineEnd(l)}}flowScalar(l){if(this.onNewLine){let a=this.source.indexOf(`
188
+ `)+1;for(;a!==0;)this.onNewLine(this.offset+a),a=this.source.indexOf(`
189
+ `,a)+1}return{type:l,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(l){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const a=su(l),s=mi(a);return s.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const a=su(l),s=mi(a);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(l,a){return this.type!=="comment"||this.indent<=a?!1:l.every(s=>s.type==="newline"||s.type==="space")}*documentEnd(l){this.type!=="doc-mode"&&(l.end?l.end.push(this.sourceToken):l.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(l){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:l.end?l.end.push(this.sourceToken):l.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function Xp(u){const l=u.prettyErrors!==!1;return{lineCounter:u.lineCounter||l&&new Vp||null,prettyErrors:l}}function Bb(u,l={}){const{lineCounter:a,prettyErrors:s}=Xp(l),c=new Xf(a==null?void 0:a.addNewLine),o=new Qf(l),h=Array.from(o.compose(c.parse(u)));if(s&&a)for(const m of h)m.errors.forEach(Su(u,a)),m.warnings.forEach(Su(u,a));return h.length>0?h:Object.assign([],{empty:!0},o.streamInfo())}function Zp(u,l={}){const{lineCounter:a,prettyErrors:s}=Xp(l),c=new Xf(a==null?void 0:a.addNewLine),o=new Qf(l);let h=null;for(const m of o.compose(c.parse(u),!0,u.length))if(!h)h=m;else if(h.options.logLevel!=="silent"){h.errors.push(new Al(m.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return s&&a&&(h.errors.forEach(Su(u,a)),h.warnings.forEach(Su(u,a))),h}function kb(u,l,a){let s;typeof l=="function"?s=l:a===void 0&&l&&typeof l=="object"&&(a=l);const c=Zp(u,a);if(!c)return null;if(c.warnings.forEach(o=>mp(c.options.logLevel,o)),c.errors.length>0){if(c.options.logLevel!=="silent")throw c.errors[0];c.errors=[]}return c.toJS(Object.assign({reviver:s},a))}function qb(u,l,a){let s=null;if(typeof l=="function"||Array.isArray(l)?s=l:a===void 0&&l&&(a=l),typeof a=="string"&&(a=a.length),typeof a=="number"){const c=Math.round(a);a=c<1?void 0:c>8?{indent:8}:{indent:c}}if(u===void 0){const{keepUndefined:c}=a??l??{};if(!c)return}return Nl(u)&&!s?u.toString(a):new xi(u,s,a).toString(a)}const Hb=Object.freeze(Object.defineProperty({__proto__:null,Alias:_u,CST:Ub,Composer:Qf,Document:xi,Lexer:Gp,LineCounter:Vp,Pair:ct,Parser:Xf,Scalar:ce,Schema:Ru,YAMLError:Gf,YAMLMap:Lt,YAMLParseError:Al,YAMLSeq:el,YAMLWarning:Lp,isAlias:tl,isCollection:Be,isDocument:Nl,isMap:Ni,isNode:ke,isPair:je,isScalar:De,isSeq:Mi,parse:kb,parseAllDocuments:Bb,parseDocument:Zp,stringify:qb,visit:Ml,visitAsync:Ou},Symbol.toStringTag,{value:"Module"}));function Yb(u,l,a={}){var O;const s=new u.LineCounter,c={keepSourceTokens:!0,lineCounter:s,...a},o=u.parseDocument(l,c),h=[],m=E=>[s.linePos(E[0]),s.linePos(E[1])],p=E=>{h.push({message:E.message,range:[s.linePos(E.pos[0]),s.linePos(E.pos[1])]})},g=(E,x)=>{for(const S of x.items){if(S instanceof u.Scalar&&typeof S.value=="string"){const R=Eu.parse(S,c,h);R&&(E.children=E.children||[],E.children.push(R));continue}if(S instanceof u.YAMLMap){b(E,S);continue}h.push({message:"Sequence items should be strings or maps",range:m(S.range||x.range)})}},b=(E,x)=>{for(const S of x.items){if(E.children=E.children||[],!(S.key instanceof u.Scalar&&typeof S.key.value=="string")){h.push({message:"Only string keys are supported",range:m(S.key.range||x.range)});continue}const M=S.key,R=S.value;if(M.value==="text"){if(!(R instanceof u.Scalar&&typeof R.value=="string")){h.push({message:"Text value should be a string",range:m(S.value.range||x.range)});continue}E.children.push({kind:"text",text:bf(R.value)});continue}if(M.value==="/children"){if(!(R instanceof u.Scalar&&typeof R.value=="string")||R.value!=="contain"&&R.value!=="equal"&&R.value!=="deep-equal"){h.push({message:'Strict value should be "contain", "equal" or "deep-equal"',range:m(S.value.range||x.range)});continue}E.containerMode=R.value;continue}if(M.value.startsWith("/")){if(!(R instanceof u.Scalar&&typeof R.value=="string")){h.push({message:"Property value should be a string",range:m(S.value.range||x.range)});continue}E.props=E.props??{},E.props[M.value.slice(1)]=bf(R.value);continue}const K=Eu.parse(M,c,h);if(!K)continue;if(R instanceof u.Scalar){const W=typeof R.value;if(W!=="string"&&W!=="number"&&W!=="boolean"){h.push({message:"Node value should be a string or a sequence",range:m(S.value.range||x.range)});continue}E.children.push({...K,children:[{kind:"text",text:bf(String(R.value))}]});continue}if(R instanceof u.YAMLSeq){E.children.push(K),g(K,R);continue}h.push({message:"Map values should be strings or sequences",range:m(S.value.range||x.range)})}},v={kind:"role",role:"fragment"};return o.errors.forEach(p),h.length?{errors:h,fragment:v}:(o.contents instanceof u.YAMLSeq||h.push({message:'Aria snapshot must be a YAML sequence, elements starting with " -"',range:o.contents?m(o.contents.range):[{line:0,col:0},{line:0,col:0}]}),h.length?{errors:h,fragment:v}:(g(v,o.contents),h.length?{errors:h,fragment:$b}:((O=v.children)==null?void 0:O.length)===1&&(!v.containerMode||v.containerMode==="contain")?{fragment:v.children[0],errors:[]}:{fragment:v,errors:[]}))}const $b={kind:"role",role:"fragment"};function Jp(u){return u.replace(/[\u200b\u00ad]/g,"").replace(/[\r\n\s\t]+/g," ").trim()}function bf(u){return{raw:u,normalized:Jp(u)}}class Eu{static parse(l,a,s){try{return new Eu(l.value)._parse()}catch(c){if(c instanceof Ng){const o=a.prettyErrors===!1?c.message:c.message+`:
190
+
191
+ `+l.value+`
192
+ `+" ".repeat(c.pos)+`^
193
+ `;return s.push({message:o,range:[a.lineCounter.linePos(l.range[0]),a.lineCounter.linePos(l.range[0]+c.pos)]}),null}throw c}}constructor(l){this._input=l,this._pos=0,this._length=l.length}_peek(){return this._input[this._pos]||""}_next(){return this._pos<this._length?this._input[this._pos++]:null}_eof(){return this._pos>=this._length}_isWhitespace(){return!this._eof()&&/\s/.test(this._peek())}_skipWhitespace(){for(;this._isWhitespace();)this._pos++}_readIdentifier(l){this._eof()&&this._throwError(`Unexpected end of input when expecting ${l}`);const a=this._pos;for(;!this._eof()&&/[a-zA-Z]/.test(this._peek());)this._pos++;return this._input.slice(a,this._pos)}_readString(){let l="",a=!1;for(;!this._eof();){const s=this._next();if(a)l+=s,a=!1;else if(s==="\\")a=!0;else{if(s==='"')return l;l+=s}}this._throwError("Unterminated string")}_throwError(l,a=0){throw new Ng(l,a||this._pos)}_readRegex(){let l="",a=!1,s=!1;for(;!this._eof();){const c=this._next();if(a)l+=c,a=!1;else if(c==="\\")a=!0,l+=c;else{if(c==="/"&&!s)return{pattern:l};c==="["?(s=!0,l+=c):c==="]"&&s?(l+=c,s=!1):l+=c}}this._throwError("Unterminated regex")}_readStringOrRegex(){const l=this._peek();return l==='"'?(this._next(),Jp(this._readString())):l==="/"?(this._next(),this._readRegex()):null}_readAttributes(l){let a=this._pos;for(;this._skipWhitespace(),this._peek()==="[";){this._next(),this._skipWhitespace(),a=this._pos;const s=this._readIdentifier("attribute");this._skipWhitespace();let c="";if(this._peek()==="=")for(this._next(),this._skipWhitespace(),a=this._pos;this._peek()!=="]"&&!this._isWhitespace()&&!this._eof();)c+=this._next();this._skipWhitespace(),this._peek()!=="]"&&this._throwError("Expected ]"),this._next(),this._applyAttribute(l,s,c||"true",a)}}_parse(){this._skipWhitespace();const l=this._readIdentifier("role");this._skipWhitespace();const a=this._readStringOrRegex()||"",s={kind:"role",role:l,name:a};return this._readAttributes(s),this._skipWhitespace(),this._eof()||this._throwError("Unexpected input"),s}_applyAttribute(l,a,s,c){if(a==="checked"){this._assert(s==="true"||s==="false"||s==="mixed",'Value of "checked" attribute must be a boolean or "mixed"',c),l.checked=s==="true"?!0:s==="false"?!1:"mixed";return}if(a==="disabled"){this._assert(s==="true"||s==="false",'Value of "disabled" attribute must be a boolean',c),l.disabled=s==="true";return}if(a==="expanded"){this._assert(s==="true"||s==="false",'Value of "expanded" attribute must be a boolean',c),l.expanded=s==="true";return}if(a==="active"){this._assert(s==="true"||s==="false",'Value of "active" attribute must be a boolean',c),l.active=s==="true";return}if(a==="invalid"){this._assert(s==="true"||s==="false"||s==="grammar"||s==="spelling",'Value of "invalid" attribute must be a boolean, "grammar" or "spelling"',c),l.invalid=s==="true"?!0:s==="false"?!1:s;return}if(a==="level"){this._assert(!isNaN(Number(s)),'Value of "level" attribute must be a number',c),l.level=Number(s);return}if(a==="pressed"){this._assert(s==="true"||s==="false"||s==="mixed",'Value of "pressed" attribute must be a boolean or "mixed"',c),l.pressed=s==="true"?!0:s==="false"?!1:"mixed";return}if(a==="selected"){this._assert(s==="true"||s==="false",'Value of "selected" attribute must be a boolean',c),l.selected=s==="true";return}this._assert(!1,`Unsupported attribute [${a}]`,c)}_assert(l,a,s){l||this._throwError(a||"Assertion error",s)}}class Ng extends Error{constructor(l,a){super(l),this.pos=a}}const Kb=({className:u,style:l,open:a,isModal:s,minWidth:c,verticalOffset:o,requestClose:h,anchor:m,dataTestId:p,children:g})=>{const b=he.useRef(null),[v,O]=he.useState(0),[E]=Sf(b),[x,S]=Sf(m),w=m?Gb(E,x,o):void 0;return he.useEffect(()=>{const M=K=>{!b.current||!(K.target instanceof Node)||b.current.contains(K.target)||h==null||h()},R=K=>{K.key==="Escape"&&(h==null||h())};return a?(document.addEventListener("mousedown",M),document.addEventListener("keydown",R),()=>{document.removeEventListener("mousedown",M),document.removeEventListener("keydown",R)}):()=>{}},[a,h]),he.useLayoutEffect(()=>S(),[a,S]),he.useEffect(()=>{const M=()=>O(R=>R+1);return window.addEventListener("resize",M),()=>{window.removeEventListener("resize",M)}},[]),he.useLayoutEffect(()=>{b.current&&(a?s?b.current.showModal():b.current.show():b.current.close())},[a,s]),X.jsx("dialog",{ref:b,style:{position:"fixed",margin:w?0:void 0,zIndex:110,top:w==null?void 0:w.top,left:w==null?void 0:w.left,minWidth:c||0,...l},className:u,"data-testid":p,children:g})};function Gb(u,l,a=4,s=4){let c=Math.max(s,l.left);c+u.width>window.innerWidth-s&&(c=window.innerWidth-u.width-s);let o=Math.max(0,l.bottom)+a;return o+u.height>window.innerHeight-a&&(Math.max(0,l.top)>u.height+a?o=Math.max(0,l.top)-u.height-a:o=window.innerHeight-a-u.height),{left:c,top:o}}const Vb=({})=>{const[u,l]=he.useState([]),[a,s]=he.useState(!1),[c,o]=he.useState(new Map),[h,m]=he.useState("none"),[p,g]=he.useState(),[b,v]=pu("recorderPropertiesTab","log"),[O,E]=he.useState(),[x,S]=he.useState(),[w,M]=he.useState(!1),[R,K]=z1(),[Q,Z]=pu("autoExpect",!1),W=he.useRef(null),k=he.useMemo(Qb,[]),[V,U]=he.useState(""),ae=he.useRef(null),te=he.useMemo(()=>u.find(D=>D.id===p)??ev(),[u,p]);he.useLayoutEffect(()=>{const se={modeChanged:({mode:D})=>m(D),sourcesUpdated:({sources:D})=>{l(D),window.playwrightSourcesEchoForTest=D},pageNavigated:({url:D})=>{document.title=D?`Playwright Inspector - ${D}`:"Playwright Inspector"},pauseStateChanged:({paused:D})=>s(D),callLogsUpdated:({callLogs:D})=>{o(G=>{const ne=new Map(G);for(const de of D)de.reveal=!G.has(de.id),ne.set(de.id,de);return ne})},sourceRevealRequested:({sourceId:D})=>g(D),elementPicked:({elementInfo:D,userGesture:G})=>{const ne=te.language;U(ep(ne,D.selector)),E(D.ariaSnapshot),S([]),G&&b!=="locator"&&b!=="aria"&&v("locator"),h==="inspecting"&&b==="aria"||k.setMode({mode:h==="inspecting"?"standby":"recording"}).catch(()=>{})}};window.dispatch=D=>{se[D.method].call(se,D.params)}},[k,h,b,v,te]),he.useEffect(()=>{k.setAutoExpect({autoExpect:Q})},[Q,k]),he.useLayoutEffect(()=>{var se;(se=ae.current)==null||se.scrollIntoView({block:"center",inline:"nearest"})},[ae]),he.useLayoutEffect(()=>{const se=D=>{switch(D.key){case"F8":D.preventDefault(),a?k.resume():k.pause();break;case"F10":D.preventDefault(),a&&k.step();break}};return document.addEventListener("keydown",se),()=>document.removeEventListener("keydown",se)},[a,k]);const $=he.useCallback(se=>{(h==="none"||h==="inspecting")&&k.setMode({mode:"standby"}),U(se),k.highlightRequested({selector:se})},[h,k]),ee=he.useCallback(se=>{(h==="none"||h==="inspecting")&&k.setMode({mode:"standby"});const{fragment:D,errors:G}=Yb(Hb,se,{prettyErrors:!1}),ne=G.map(de=>({message:de.message,line:de.range[1].line,column:de.range[1].col,type:"subtle-error"}));S(ne),E(se),G.length||k.highlightRequested({ariaTemplate:D})},[h,k]),we=h==="recording"||h==="recording-inspecting"||h==="assertingText"||h==="assertingVisibility";return X.jsxs("div",{className:"recorder",children:[X.jsxs(xg,{children:[X.jsx(Dt,{icon:we?"stop-circle":"circle-large-filled",title:we?"Stop Recording":"Start Recording",toggled:we,onClick:()=>{k.setMode({mode:h==="none"||h==="standby"||h==="inspecting"?"recording":"standby"})},children:"Record"}),X.jsx(hg,{}),X.jsx(Dt,{icon:"inspect",title:"Pick locator",toggled:h==="inspecting"||h==="recording-inspecting",onClick:()=>{const se={inspecting:"standby",none:"inspecting",standby:"inspecting",recording:"recording-inspecting","recording-inspecting":"recording",assertingText:"recording-inspecting",assertingVisibility:"recording-inspecting",assertingValue:"recording-inspecting",assertingSnapshot:"recording-inspecting"}[h];k.setMode({mode:se}).catch(()=>{})}}),X.jsx(Dt,{icon:"eye",title:"Assert visibility",toggled:h==="assertingVisibility",disabled:h==="none"||h==="standby"||h==="inspecting",onClick:()=>{k.setMode({mode:h==="assertingVisibility"?"recording":"assertingVisibility"})}}),X.jsx(Dt,{icon:"whole-word",title:"Assert text",toggled:h==="assertingText",disabled:h==="none"||h==="standby"||h==="inspecting",onClick:()=>{k.setMode({mode:h==="assertingText"?"recording":"assertingText"})}}),X.jsx(Dt,{icon:"symbol-constant",title:"Assert value",toggled:h==="assertingValue",disabled:h==="none"||h==="standby"||h==="inspecting",onClick:()=>{k.setMode({mode:h==="assertingValue"?"recording":"assertingValue"})}}),X.jsx(Dt,{icon:"gist",title:"Assert snapshot",toggled:h==="assertingSnapshot",disabled:h==="none"||h==="standby"||h==="inspecting",onClick:()=>{k.setMode({mode:h==="assertingSnapshot"?"recording":"assertingSnapshot"})}}),X.jsx(hg,{}),X.jsx(Dt,{icon:"files",title:"Copy",disabled:!te||!te.text,onClick:()=>{eg(te.text)}}),X.jsx(Dt,{icon:"debug-continue",title:"Resume (F8)",ariaLabel:"Resume",disabled:!a,onClick:()=>{k.resume()}}),X.jsx(Dt,{icon:"debug-pause",title:"Pause (F8)",ariaLabel:"Pause",disabled:a,onClick:()=>{k.pause()}}),X.jsx(Dt,{icon:"debug-step-over",title:"Step over (F10)",ariaLabel:"Step over",disabled:!a,onClick:()=>{k.step()}}),X.jsx("div",{style:{flex:"auto"}}),X.jsx("div",{children:"Target:"}),X.jsx(F1,{fileId:te.id,sources:u,setFileId:se=>{g(se),k.fileChanged({fileId:se})}}),X.jsx(Dt,{icon:"clear-all",title:"Clear",disabled:!te||!te.text,onClick:()=>{k.clear()}}),X.jsx(Dt,{ref:W,icon:"settings-gear",title:"Settings",onClick:()=>M(se=>!se)}),X.jsxs(Kb,{style:{padding:"4px 8px"},open:w,verticalOffset:8,requestClose:()=>M(!1),anchor:W,dataTestId:"settings-dialog",children:[X.jsxs("div",{className:"setting setting-theme",children:[X.jsx("label",{htmlFor:"dark-mode-setting",children:"Theme:"}),X.jsx("select",{id:"dark-mode-setting",value:R,onChange:se=>K(se.target.value),children:_1.map(se=>X.jsx("option",{value:se.value,children:se.label},se.value))})]},"dark-mode-setting"),X.jsxs("div",{className:"setting",title:"Automatically generate assertions while recording",children:[X.jsx("input",{type:"checkbox",id:"auto-expect-setting",checked:Q,onChange:()=>{k.setAutoExpect({autoExpect:!Q}),Z(!Q)}}),X.jsx("label",{htmlFor:"auto-expect-setting",children:"Generate assertions"})]},"auto-expect-setting")]})]}),X.jsx(J1,{sidebarSize:200,main:X.jsx(ff,{text:te.text,highlighter:te.language,highlight:te.highlight,revealLine:te.revealLine,readOnly:!0,lineNumbers:!0}),sidebar:X.jsx(W1,{rightToolbar:b==="locator"||b==="aria"?[X.jsx(Dt,{icon:"files",title:"Copy",onClick:()=>eg((b==="locator"?V:O)||"")},1)]:[],tabs:[{id:"locator",title:"Locator",render:()=>X.jsx(ff,{text:V,placeholder:"Type locator to inspect",highlighter:te.language,focusOnChange:!0,onChange:$,wrapLines:!0})},{id:"log",title:"Log",render:()=>X.jsx(zv,{language:te.language,log:Array.from(c.values())})},{id:"aria",title:"Aria",render:()=>X.jsx(ff,{text:O||"",placeholder:"Type aria template to match",highlighter:"yaml",onChange:ee,highlight:x,wrapLines:!0})}],selectedTab:b,setSelectedTab:v})})]})};function Qb(){return new Proxy({},{get:(u,l)=>{if(typeof l=="string")return a=>window.sendCommand({method:l,params:a})}})}(async()=>(N1(),B1.createRoot(document.querySelector("#root")).render(X.jsx(Vb,{}))))();export{b1 as g};