@playdrop/playdrop-cli 0.14.8 → 0.14.9

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 (176) hide show
  1. package/config/client-meta.json +2 -2
  2. package/node_modules/@playdrop/config/client-meta.json +2 -2
  3. package/node_modules/@playwright/mcp/LICENSE +201 -0
  4. package/node_modules/@playwright/mcp/README.md +1592 -0
  5. package/node_modules/@playwright/mcp/cli.js +32 -0
  6. package/node_modules/@playwright/mcp/config.d.ts +239 -0
  7. package/node_modules/@playwright/mcp/index.d.ts +23 -0
  8. package/node_modules/@playwright/mcp/index.js +19 -0
  9. package/node_modules/@playwright/mcp/node_modules/playwright/LICENSE +202 -0
  10. package/node_modules/@playwright/mcp/node_modules/playwright/NOTICE +5 -0
  11. package/node_modules/@playwright/mcp/node_modules/playwright/README.md +318 -0
  12. package/node_modules/@playwright/mcp/node_modules/playwright/ThirdPartyNotices.txt +14 -0
  13. package/node_modules/@playwright/mcp/node_modules/playwright/cli.js +19 -0
  14. package/node_modules/@playwright/mcp/node_modules/playwright/index.d.ts +17 -0
  15. package/node_modules/@playwright/mcp/node_modules/playwright/index.js +17 -0
  16. package/node_modules/@playwright/mcp/node_modules/playwright/index.mjs +18 -0
  17. package/node_modules/@playwright/mcp/node_modules/playwright/jsx-runtime.js +42 -0
  18. package/node_modules/@playwright/mcp/node_modules/playwright/jsx-runtime.mjs +21 -0
  19. package/node_modules/@playwright/mcp/node_modules/playwright/lib/agents/agentParser.js +89 -0
  20. package/node_modules/@playwright/mcp/node_modules/playwright/lib/agents/copilot-setup-steps.yml +34 -0
  21. package/node_modules/@playwright/mcp/node_modules/playwright/lib/agents/generateAgents.js +395 -0
  22. package/node_modules/@playwright/mcp/node_modules/playwright/lib/agents/playwright-test-coverage.prompt.md +31 -0
  23. package/node_modules/@playwright/mcp/node_modules/playwright/lib/agents/playwright-test-generate.prompt.md +8 -0
  24. package/node_modules/@playwright/mcp/node_modules/playwright/lib/agents/playwright-test-generator.agent.md +88 -0
  25. package/node_modules/@playwright/mcp/node_modules/playwright/lib/agents/playwright-test-heal.prompt.md +6 -0
  26. package/node_modules/@playwright/mcp/node_modules/playwright/lib/agents/playwright-test-healer.agent.md +56 -0
  27. package/node_modules/@playwright/mcp/node_modules/playwright/lib/agents/playwright-test-plan.prompt.md +9 -0
  28. package/node_modules/@playwright/mcp/node_modules/playwright/lib/agents/playwright-test-planner.agent.md +74 -0
  29. package/node_modules/@playwright/mcp/node_modules/playwright/lib/cli/reportActions.js +78 -0
  30. package/node_modules/@playwright/mcp/node_modules/playwright/lib/cli/testActions.js +213 -0
  31. package/node_modules/@playwright/mcp/node_modules/playwright/lib/common/index.js +2966 -0
  32. package/node_modules/@playwright/mcp/node_modules/playwright/lib/common/index.js.txt +34 -0
  33. package/node_modules/@playwright/mcp/node_modules/playwright/lib/errorContext.js +129 -0
  34. package/node_modules/@playwright/mcp/node_modules/playwright/lib/globals.js +58 -0
  35. package/node_modules/@playwright/mcp/node_modules/playwright/lib/index.js +783 -0
  36. package/node_modules/@playwright/mcp/node_modules/playwright/lib/isomorphic.js +260 -0
  37. package/node_modules/@playwright/mcp/node_modules/playwright/lib/isomorphic.js.txt +9 -0
  38. package/node_modules/@playwright/mcp/node_modules/playwright/lib/loader/loaderProcessEntry.js +34 -0
  39. package/node_modules/@playwright/mcp/node_modules/playwright/lib/loader/loaderProcessEntry.js.txt +9 -0
  40. package/node_modules/@playwright/mcp/node_modules/playwright/lib/matchers/expect.js +13480 -0
  41. package/node_modules/@playwright/mcp/node_modules/playwright/lib/matchers/expect.js.LICENSE +640 -0
  42. package/node_modules/@playwright/mcp/node_modules/playwright/lib/matchers/expect.js.txt +67 -0
  43. package/node_modules/@playwright/mcp/node_modules/playwright/lib/mcp/test/browserBackend.js +125 -0
  44. package/node_modules/@playwright/mcp/node_modules/playwright/lib/mcp/test/generatorTools.js +122 -0
  45. package/node_modules/@playwright/mcp/node_modules/playwright/lib/mcp/test/plannerTools.js +150 -0
  46. package/node_modules/@playwright/mcp/node_modules/playwright/lib/mcp/test/seed.js +82 -0
  47. package/node_modules/@playwright/mcp/node_modules/playwright/lib/mcp/test/streams.js +44 -0
  48. package/node_modules/@playwright/mcp/node_modules/playwright/lib/mcp/test/testBackend.js +99 -0
  49. package/node_modules/@playwright/mcp/node_modules/playwright/lib/mcp/test/testContext.js +306 -0
  50. package/node_modules/@playwright/mcp/node_modules/playwright/lib/mcp/test/testTool.js +30 -0
  51. package/node_modules/@playwright/mcp/node_modules/playwright/lib/mcp/test/testTools.js +98 -0
  52. package/node_modules/@playwright/mcp/node_modules/playwright/lib/package.js +47 -0
  53. package/node_modules/@playwright/mcp/node_modules/playwright/lib/program.js +237 -0
  54. package/node_modules/@playwright/mcp/node_modules/playwright/lib/runner/index.js +8154 -0
  55. package/node_modules/@playwright/mcp/node_modules/playwright/lib/runner/index.js.txt +59 -0
  56. package/node_modules/@playwright/mcp/node_modules/playwright/lib/transform/babelBundle.js +72275 -0
  57. package/node_modules/@playwright/mcp/node_modules/playwright/lib/transform/babelBundle.js.LICENSE +2384 -0
  58. package/node_modules/@playwright/mcp/node_modules/playwright/lib/transform/babelBundle.js.txt +325 -0
  59. package/node_modules/@playwright/mcp/node_modules/playwright/lib/transform/esmLoader.js +8060 -0
  60. package/node_modules/@playwright/mcp/node_modules/playwright/lib/transform/esmLoader.js.LICENSE +355 -0
  61. package/node_modules/@playwright/mcp/node_modules/playwright/lib/transform/esmLoader.js.txt +60 -0
  62. package/node_modules/@playwright/mcp/node_modules/playwright/lib/util.js +373 -0
  63. package/node_modules/@playwright/mcp/node_modules/playwright/lib/worker/workerProcessEntry.js +1850 -0
  64. package/node_modules/@playwright/mcp/node_modules/playwright/lib/worker/workerProcessEntry.js.txt +19 -0
  65. package/node_modules/@playwright/mcp/node_modules/playwright/package.json +58 -0
  66. package/node_modules/@playwright/mcp/node_modules/playwright/test.d.ts +18 -0
  67. package/node_modules/@playwright/mcp/node_modules/playwright/test.js +24 -0
  68. package/node_modules/@playwright/mcp/node_modules/playwright/test.mjs +35 -0
  69. package/node_modules/@playwright/mcp/node_modules/playwright/types/test.d.ts +10709 -0
  70. package/node_modules/@playwright/mcp/node_modules/playwright/types/testReporter.d.ts +908 -0
  71. package/node_modules/@playwright/mcp/node_modules/playwright-core/LICENSE +202 -0
  72. package/node_modules/@playwright/mcp/node_modules/playwright-core/NOTICE +5 -0
  73. package/node_modules/@playwright/mcp/node_modules/playwright-core/README.md +3 -0
  74. package/node_modules/@playwright/mcp/node_modules/playwright-core/ThirdPartyNotices.txt +13 -0
  75. package/node_modules/@playwright/mcp/node_modules/playwright-core/bin/install_media_pack.ps1 +5 -0
  76. package/node_modules/@playwright/mcp/node_modules/playwright-core/bin/install_webkit_wsl.ps1 +33 -0
  77. package/node_modules/@playwright/mcp/node_modules/playwright-core/bin/reinstall_chrome_beta_linux.sh +42 -0
  78. package/node_modules/@playwright/mcp/node_modules/playwright-core/bin/reinstall_chrome_beta_mac.sh +13 -0
  79. package/node_modules/@playwright/mcp/node_modules/playwright-core/bin/reinstall_chrome_beta_win.ps1 +24 -0
  80. package/node_modules/@playwright/mcp/node_modules/playwright-core/bin/reinstall_chrome_stable_linux.sh +42 -0
  81. package/node_modules/@playwright/mcp/node_modules/playwright-core/bin/reinstall_chrome_stable_mac.sh +12 -0
  82. package/node_modules/@playwright/mcp/node_modules/playwright-core/bin/reinstall_chrome_stable_win.ps1 +24 -0
  83. package/node_modules/@playwright/mcp/node_modules/playwright-core/bin/reinstall_msedge_beta_linux.sh +48 -0
  84. package/node_modules/@playwright/mcp/node_modules/playwright-core/bin/reinstall_msedge_beta_mac.sh +11 -0
  85. package/node_modules/@playwright/mcp/node_modules/playwright-core/bin/reinstall_msedge_beta_win.ps1 +23 -0
  86. package/node_modules/@playwright/mcp/node_modules/playwright-core/bin/reinstall_msedge_dev_linux.sh +48 -0
  87. package/node_modules/@playwright/mcp/node_modules/playwright-core/bin/reinstall_msedge_dev_mac.sh +11 -0
  88. package/node_modules/@playwright/mcp/node_modules/playwright-core/bin/reinstall_msedge_dev_win.ps1 +23 -0
  89. package/node_modules/@playwright/mcp/node_modules/playwright-core/bin/reinstall_msedge_stable_linux.sh +48 -0
  90. package/node_modules/@playwright/mcp/node_modules/playwright-core/bin/reinstall_msedge_stable_mac.sh +11 -0
  91. package/node_modules/@playwright/mcp/node_modules/playwright-core/bin/reinstall_msedge_stable_win.ps1 +24 -0
  92. package/node_modules/@playwright/mcp/node_modules/playwright-core/browsers.json +81 -0
  93. package/node_modules/@playwright/mcp/node_modules/playwright-core/cli.js +21 -0
  94. package/node_modules/@playwright/mcp/node_modules/playwright-core/index.d.ts +17 -0
  95. package/node_modules/@playwright/mcp/node_modules/playwright-core/index.js +17 -0
  96. package/node_modules/@playwright/mcp/node_modules/playwright-core/index.mjs +28 -0
  97. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/bootstrap.js +88 -0
  98. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/coreBundle.js +74495 -0
  99. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/entry/cliDaemon.js +5 -0
  100. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/entry/dashboardApp.js +3 -0
  101. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/entry/mcp.js +10 -0
  102. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/entry/oopBrowserDownload.js +3 -0
  103. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/package.js +50 -0
  104. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/server/chromium/appIcon.png +0 -0
  105. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/server/electron/loader.js +118 -0
  106. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/serverRegistry.js +7347 -0
  107. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/serverRegistry.js.LICENSE +354 -0
  108. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/tools/cli-client/channelSessions.js +141 -0
  109. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/tools/cli-client/cli.js +6 -0
  110. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/tools/cli-client/help.json +707 -0
  111. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/tools/cli-client/minimist.js +128 -0
  112. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/tools/cli-client/output.js +343 -0
  113. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/tools/cli-client/program.js +404 -0
  114. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/tools/cli-client/registry.js +176 -0
  115. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/tools/cli-client/session.js +258 -0
  116. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/tools/cli-client/skill/SKILL.md +420 -0
  117. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/tools/cli-client/skill/references/element-attributes.md +23 -0
  118. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/tools/cli-client/skill/references/playwright-tests.md +39 -0
  119. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/tools/cli-client/skill/references/request-mocking.md +87 -0
  120. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/tools/cli-client/skill/references/running-code.md +241 -0
  121. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/tools/cli-client/skill/references/session-management.md +225 -0
  122. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/tools/cli-client/skill/references/storage-state.md +275 -0
  123. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/tools/cli-client/skill/references/test-generation.md +433 -0
  124. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/tools/cli-client/skill/references/tracing.md +139 -0
  125. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/tools/cli-client/skill/references/video-recording.md +143 -0
  126. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/tools/dashboard/appIcon.png +0 -0
  127. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/tools/trace/SKILL.md +171 -0
  128. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/tools/utils/extension.js +78 -0
  129. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/tools/utils/socketConnection.js +108 -0
  130. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/utilsBundle.js +90764 -0
  131. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/utilsBundle.js.LICENSE +2179 -0
  132. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/vite/dashboard/assets/codicon-DCmgc-ay.ttf +0 -0
  133. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/vite/dashboard/assets/firefox-1bWoP6pv.svg +1 -0
  134. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/vite/dashboard/assets/firefox-beta-k3eOH_eK.svg +1 -0
  135. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/vite/dashboard/assets/firefox-nightly-Cp5nfeDT.svg +1 -0
  136. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/vite/dashboard/assets/index-CyWAfh-p.js +11 -0
  137. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/vite/dashboard/assets/index-DhC616m4.css +1 -0
  138. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/vite/dashboard/assets/safari-na3_-uQk.svg +1 -0
  139. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/vite/dashboard/index.html +29 -0
  140. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/vite/dashboard/playwright-logo.svg +24 -0
  141. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/vite/htmlReport/index.html +16 -0
  142. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/vite/htmlReport/report.css +2 -0
  143. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/vite/htmlReport/report.js +32 -0
  144. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule--QdMvsKi.css +1 -0
  145. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule-BVGIAA-i.js +32 -0
  146. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/vite/recorder/assets/codicon-DCmgc-ay.ttf +0 -0
  147. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/vite/recorder/assets/index-BQ57a3QC.js +129 -0
  148. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/vite/recorder/assets/index-l_lX622x.css +1 -0
  149. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/vite/recorder/index.html +29 -0
  150. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/vite/recorder/playwright-logo.svg +9 -0
  151. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/vite/traceViewer/assets/codeMirrorModule-BSEO6m_i.js +32 -0
  152. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/vite/traceViewer/assets/defaultSettingsView-CT5oRh4X.js +181 -0
  153. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/vite/traceViewer/assets/urlMatch-L3liM589.js +1 -0
  154. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/vite/traceViewer/assets/xtermModule-BN2nOuEV.js +7 -0
  155. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/vite/traceViewer/codeMirrorModule.-QdMvsKi.css +1 -0
  156. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/vite/traceViewer/codicon.DCmgc-ay.ttf +0 -0
  157. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/vite/traceViewer/defaultSettingsView.BLFoOugd.css +1 -0
  158. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/vite/traceViewer/index.B_TqY17P.css +1 -0
  159. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/vite/traceViewer/index.DLSGjmWZ.js +1 -0
  160. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/vite/traceViewer/index.html +44 -0
  161. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/vite/traceViewer/manifest.webmanifest +16 -0
  162. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/vite/traceViewer/playwright-logo.svg +9 -0
  163. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/vite/traceViewer/snapshot.B_Jk1wbt.js +1 -0
  164. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/vite/traceViewer/snapshot.html +10 -0
  165. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/vite/traceViewer/sw.bundle.js +4 -0
  166. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/vite/traceViewer/uiMode.C7UW1sC9.css +1 -0
  167. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/vite/traceViewer/uiMode.CZvydVOh.js +5 -0
  168. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/vite/traceViewer/uiMode.html +18 -0
  169. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/vite/traceViewer/xtermModule.kHJ-D0s7.css +1 -0
  170. package/node_modules/@playwright/mcp/node_modules/playwright-core/lib/xdg-open +1267 -0
  171. package/node_modules/@playwright/mcp/node_modules/playwright-core/package.json +34 -0
  172. package/node_modules/@playwright/mcp/node_modules/playwright-core/types/protocol.d.ts +24842 -0
  173. package/node_modules/@playwright/mcp/node_modules/playwright-core/types/structs.d.ts +45 -0
  174. package/node_modules/@playwright/mcp/node_modules/playwright-core/types/types.d.ts +26088 -0
  175. package/node_modules/@playwright/mcp/package.json +51 -0
  176. package/package.json +3 -1
@@ -0,0 +1,181 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./codeMirrorModule-BSEO6m_i.js","../codeMirrorModule.-QdMvsKi.css"])))=>i.map(i=>d[i]);
2
+ import{a as e,c as t,d as n,f as r,i,l as a,m as o,n as s,o as c,p as l,r as u,s as d,t as f,u as p}from"./urlMatch-L3liM589.js";var m=Object.create,h=Object.defineProperty,g=Object.getOwnPropertyDescriptor,_=Object.getOwnPropertyNames,v=Object.getPrototypeOf,y=Object.prototype.hasOwnProperty,b=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),x=(e,t)=>{let n={};for(var r in e)h(n,r,{get:e[r],enumerable:!0});return t||h(n,Symbol.toStringTag,{value:`Module`}),n},S=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=_(t),a=0,o=i.length,s;a<o;a++)s=i[a],!y.call(e,s)&&s!==n&&h(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=g(t,s))||r.enumerable});return e},C=(e,t,n)=>(n=e==null?{}:m(v(e)),S(t||!e||!e.__esModule?h(n,`default`,{value:e,enumerable:!0}):n,e)),w=b((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=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,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},ee=Object.prototype.hasOwnProperty;function T(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function te(e,t){return T(e.type,t,e.props)}function E(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ne(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var re=/\/+/g;function ie(e,t){return typeof e==`object`&&e&&e.key!=null?ne(``+e.key):t.toString(36)}function ae(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function oe(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,oe(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+ie(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(re,`$&/`)+`/`),oe(o,r,i,``,function(e){return e})):o!=null&&(E(o)&&(o=te(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(re,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+ie(a,u),c+=oe(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+ie(a,u++),c+=oe(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return oe(ae(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function D(e,t,n){if(e==null)return e;var r=[],i=0;return oe(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function O(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var se=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&&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)},ce={map:D,forEach:function(e,t,n){D(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return D(e,function(){t++}),t},toArray:function(e){return D(e,function(e){return e})||[]},only:function(e){if(!E(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=ce,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!ee.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return T(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)ee.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return T(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=E,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:O}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,se)}catch(e){se(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.7`})),ee=b(((e,t)=>{t.exports=w()})),T=C(ee());function te(e,t,n,r){let[i,a]=T.useState(n);return T.useEffect(()=>{let t=!1;return r!==void 0&&a(r),e().then(e=>{t||a(e)}),()=>{t=!0}},t),i}function E(){let e=T.useRef(null),[t]=ne(e);return[t,e]}function ne(e){let[t,n]=T.useState(new DOMRect(0,0,10,10)),r=T.useCallback(()=>{let t=e?.current;t&&n(t.getBoundingClientRect())},[e]);return T.useLayoutEffect(()=>{let t=e?.current;if(!t)return;r();let n=new ResizeObserver(r);return n.observe(t),window.addEventListener(`resize`,r),()=>{n.disconnect(),window.removeEventListener(`resize`,r)}},[r,e]),[t,r]}function re(e,t,n,r,i){let a=r||0,o=i===void 0?e.length:i;for(;a<o;){let r=a+o>>1;n(t,e[r])>=0?a=r+1:o=r}return o}function ie(e){let t=document.createElement(`textarea`);t.style.position=`absolute`,t.style.zIndex=`-1000`,t.value=e,document.body.appendChild(t),t.select(),document.execCommand(`copy`),t.remove()}function ae(e,t){e&&(t=le.getObject(e,t));let[n,r]=T.useState(t),i=T.useCallback(t=>{e?le.setObject(e,t):r(t)},[e,r]);return T.useEffect(()=>{if(e){let n=()=>r(le.getObject(e,t));return le.onChangeEmitter.addEventListener(e,n),()=>le.onChangeEmitter.removeEventListener(e,n)}},[t,e]),[n,i]}var oe=new Map,D=new Map,O;function se(e,t){let[n,r]=T.useState();return D.set(e,{setter:r,defaultValue:t}),[n,T.useCallback(t=>{let n=oe.get(O||`default`)||{};n[e]=t,oe.set(O||`default`,n),r(t)},[e])]}function ce(e){if(O===e)return;O=e;let t=oe.get(e)||{};for(let[e,n]of D.entries())n.setter(t[e]||n.defaultValue)}var le=new class{constructor(){this.onChangeEmitter=new EventTarget}getString(e,t){return localStorage[e]||t}setString(e,t){localStorage[e]=t,this.onChangeEmitter.dispatchEvent(new Event(e)),window.saveSettings?.()}getObject(e,t){if(!localStorage[e])return t;try{return JSON.parse(localStorage[e])}catch{return t}}setObject(e,t){localStorage[e]=JSON.stringify(t),this.onChangeEmitter.dispatchEvent(new Event(e)),window.saveSettings?.()}};function k(...e){return e.filter(Boolean).join(` `)}function A(e){e&&(e?.scrollIntoViewIfNeeded?e.scrollIntoViewIfNeeded(!1):e?.scrollIntoView())}var j=RegExp(`(?:[a-zA-Z][a-zA-Z0-9+.-]{2,}:\\/\\/|www\\.)[^\\s\\u0000-\\u0020\\u007f-\\u009f"]{2,}[^\\s\\u0000-\\u0020\\u007f-\\u009f"')}\\],:;.!?]`,`ug`);function ue(){let[e,t]=T.useState(!1);return[e,T.useCallback(()=>{let e=[];return t(n=>(e.push(setTimeout(()=>t(!1),1e3)),n?(e.push(setTimeout(()=>t(!0),50)),!1):!0)),()=>e.forEach(clearTimeout)},[t])]}var de=`system`,fe=`theme`,pe=[{label:`Dark mode`,value:`dark-mode`},{label:`Light mode`,value:`light-mode`},{label:`System`,value:`system`}],me=window.matchMedia(`(prefers-color-scheme: dark)`);function he(){document.playwrightThemeInitialized||(document.playwrightThemeInitialized=!0,document.defaultView.addEventListener(`focus`,e=>{e.target.document.nodeType===Node.DOCUMENT_NODE&&document.body.classList.remove(`inactive`)},!1),document.defaultView.addEventListener(`blur`,e=>{document.body.classList.add(`inactive`)},!1),_e(be()),me.addEventListener(`change`,()=>{_e(be())}))}var ge=new Set;function _e(e){let t=xe(),n=e===`system`?me.matches?`dark-mode`:`light-mode`:e;if(t!==n){t&&document.documentElement.classList.remove(t),document.documentElement.classList.add(n);for(let e of ge)e(n)}}function ve(e){ge.add(e)}function ye(e){ge.delete(e)}function be(){return le.getString(fe,de)}function xe(){return document.documentElement.classList.contains(`dark-mode`)?`dark-mode`:document.documentElement.classList.contains(`light-mode`)?`light-mode`:null}function Se(){let[e,t]=T.useState(be());return T.useEffect(()=>{le.setString(fe,e),_e(e)},[e]),[e,t]}var Ce=b((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,E());else{var t=n(l);t!==null&&ie(x,t.startTime-e)}}var S=!1,C=-1,w=5,ee=-1;function T(){return g?!0:!(e.unstable_now()-ee<w)}function te(){if(g=!1,S){var t=e.unstable_now();ee=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&T());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ie(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?E():S=!1}}}var E;if(typeof y==`function`)E=function(){y(te)};else if(typeof MessageChannel<`u`){var ne=new MessageChannel,re=ne.port2;ne.port1.onmessage=te,E=function(){re.postMessage(null)}}else E=function(){_(te,0)};function ie(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,ie(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,E()))),r},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),we=b(((e,t)=>{t.exports=Ce()})),Te=b((e=>{var t=ee();function n(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 r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.7`})),Ee=b(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Te()})),De=b((e=>{var t=we(),n=ee(),r=Ee();function i(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 a(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&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(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 c(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 l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var f=Object.assign,p=Symbol.for(`react.element`),m=Symbol.for(`react.transitional.element`),h=Symbol.for(`react.portal`),g=Symbol.for(`react.fragment`),_=Symbol.for(`react.strict_mode`),v=Symbol.for(`react.profiler`),y=Symbol.for(`react.consumer`),b=Symbol.for(`react.context`),x=Symbol.for(`react.forward_ref`),S=Symbol.for(`react.suspense`),C=Symbol.for(`react.suspense_list`),w=Symbol.for(`react.memo`),T=Symbol.for(`react.lazy`),te=Symbol.for(`react.activity`),E=Symbol.for(`react.memo_cache_sentinel`),ne=Symbol.iterator;function re(e){return typeof e!=`object`||!e?null:(e=ne&&e[ne]||e[`@@iterator`],typeof e==`function`?e:null)}var ie=Symbol.for(`react.client.reference`);function ae(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ie?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case g:return`Fragment`;case v:return`Profiler`;case _:return`StrictMode`;case S:return`Suspense`;case C:return`SuspenseList`;case te:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case h:return`Portal`;case b:return e.displayName||`Context`;case y:return(e._context.displayName||`Context`)+`.Consumer`;case x:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case w:return t=e.displayName||null,t===null?ae(e.type)||`Memo`:t;case T:t=e._payload,e=e._init;try{return ae(e(t))}catch{}}return null}var oe=Array.isArray,D=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se={pending:!1,data:null,method:null,action:null},ce=[],le=-1;function k(e){return{current:e}}function A(e){0>le||(e.current=ce[le],ce[le]=null,le--)}function j(e,t){le++,ce[le]=e.current,e.current=t}var ue=k(null),de=k(null),fe=k(null),pe=k(null);function me(e,t){switch(j(fe,t),j(de,e),j(ue,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}A(ue),j(ue,e)}function he(){A(ue),A(de),A(fe)}function ge(e){e.memoizedState!==null&&j(pe,e);var t=ue.current,n=Hd(t,e.type);t!==n&&(j(de,e),j(ue,n))}function _e(e){de.current===e&&(A(ue),A(de)),pe.current===e&&(A(pe),Qf._currentValue=se)}var ve,ye;function be(e){if(ve===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ve=t&&t[1]||``,ye=-1<e.stack.indexOf(`
3
+ at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
4
+ `+ve+e+ye}var xe=!1;function Se(e,t){if(!e||xe)return``;xe=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
5
+ `),l=s.split(`
6
+ `);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
7
+ `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{xe=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?be(n):``}function Ce(e,t){switch(e.tag){case 26:case 27:case 5:return be(e.type);case 16:return be(`Lazy`);case 13:return e.child!==t&&t!==null?be(`Suspense Fallback`):be(`Suspense`);case 19:return be(`SuspenseList`);case 0:case 15:return Se(e.type,!1);case 11:return Se(e.type.render,!1);case 1:return Se(e.type,!0);case 31:return be(`Activity`);default:return``}}function Te(e){try{var t=``,n=null;do t+=Ce(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
8
+ Error generating stack: `+e.message+`
9
+ `+e.stack}}var De=Object.prototype.hasOwnProperty,Oe=t.unstable_scheduleCallback,ke=t.unstable_cancelCallback,Ae=t.unstable_shouldYield,je=t.unstable_requestPaint,Me=t.unstable_now,Ne=t.unstable_getCurrentPriorityLevel,Pe=t.unstable_ImmediatePriority,Fe=t.unstable_UserBlockingPriority,Ie=t.unstable_NormalPriority,Le=t.unstable_LowPriority,Re=t.unstable_IdlePriority,ze=t.log,Be=t.unstable_setDisableYieldValue,Ve=null,He=null;function Ue(e){if(typeof ze==`function`&&Be(e),He&&typeof He.setStrictMode==`function`)try{He.setStrictMode(Ve,e)}catch{}}var We=Math.clz32?Math.clz32:qe,Ge=Math.log,Ke=Math.LN2;function qe(e){return e>>>=0,e===0?32:31-(Ge(e)/Ke|0)|0}var Je=256,Ye=262144,Xe=4194304;function Ze(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 Qe(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ze(n))):i=Ze(o):i=Ze(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ze(n))):i=Ze(o)):i=Ze(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function $e(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function et(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 tt(){var e=Xe;return Xe<<=1,!(Xe&62914560)&&(Xe=4194304),e}function nt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function rt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function it(e,t,n,r,i,a){var o=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 s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-We(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&M(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function M(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-We(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function at(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-We(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function ot(e,t){var n=t&-t;return n=n&42?1:st(n),(n&(e.suspendedLanes|t))===0?n:0}function st(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 ct(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function lt(){var e=O.p;return e===0?(e=window.event,e===void 0?32:mp(e.type)):e}function ut(e,t){var n=O.p;try{return O.p=e,t()}finally{O.p=n}}var dt=Math.random().toString(36).slice(2),ft=`__reactFiber$`+dt,pt=`__reactProps$`+dt,mt=`__reactContainer$`+dt,ht=`__reactEvents$`+dt,gt=`__reactListeners$`+dt,_t=`__reactHandles$`+dt,vt=`__reactResources$`+dt,yt=`__reactMarker$`+dt;function bt(e){delete e[ft],delete e[pt],delete e[ht],delete e[gt],delete e[_t]}function xt(e){var t=e[ft];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mt]||n[ft]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=df(e);e!==null;){if(n=e[ft])return n;e=df(e)}return t}e=n,n=e.parentNode}return null}function St(e){if(e=e[ft]||e[mt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ct(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function wt(e){var t=e[vt];return t||=e[vt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Tt(e){e[yt]=!0}var Et=new Set,Dt={};function Ot(e,t){kt(e,t),kt(e+`Capture`,t)}function kt(e,t){for(Dt[e]=t,e=0;e<t.length;e++)Et.add(t[e])}var At=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]*$`),jt={},Mt={};function Nt(e){return De.call(Mt,e)?!0:De.call(jt,e)?!1:At.test(e)?Mt[e]=!0:(jt[e]=!0,!1)}function Pt(e,t,n){if(Nt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function Ft(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 It(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function Lt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Rt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function zt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Bt(e){if(!e._valueTracker){var t=Rt(e)?`checked`:`value`;e._valueTracker=zt(e,t,``+e[t])}}function Vt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Rt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Ht(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Ut=/[\n"\\]/g;function Wt(e){return e.replace(Ut,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Gt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Lt(t)):e.value!==``+Lt(t)&&(e.value=``+Lt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):qt(e,o,Lt(n)):qt(e,o,Lt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Lt(s):e.removeAttribute(`name`)}function Kt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Bt(e);return}n=n==null?``:``+Lt(n),t=t==null?n:``+Lt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Bt(e)}function qt(e,t,n){t===`number`&&Ht(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Jt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Lt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Yt(e,t,n){if(t!=null&&(t=``+Lt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Lt(n)}function Xt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(oe(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Lt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Bt(e)}function Zt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Qt=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 $t(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Qt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function en(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&$t(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&$t(e,o,t[o])}function tn(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 nn=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`]]),rn=/^[\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 an(e){return rn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function on(){}var sn=null;function cn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ln=null,un=null;function dn(e){var t=St(e);if(t&&(e=t.stateNode)){var n=e[pt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Gt(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="`+Wt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[pt]||null;if(!a)throw Error(i(90));Gt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Vt(r)}break a;case`textarea`:Yt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Jt(e,!!n.multiple,t,!1)}}}var fn=!1;function pn(e,t,n){if(fn)return e(t,n);fn=!0;try{return e(t)}finally{if(fn=!1,(ln!==null||un!==null)&&(xu(),ln&&(t=ln,e=un,un=ln=null,dn(t),e)))for(t=0;t<e.length;t++)dn(e[t])}}function mn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[pt]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var hn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),gn=!1;if(hn)try{var _n={};Object.defineProperty(_n,"passive",{get:function(){gn=!0}}),window.addEventListener(`test`,_n,_n),window.removeEventListener(`test`,_n,_n)}catch{gn=!1}var vn=null,yn=null,bn=null;function xn(){if(bn)return bn;var e,t=yn,n=t.length,r,i=`value`in vn?vn.value:vn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return bn=i.slice(e,1<r?1-r:void 0)}function Sn(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 Cn(){return!0}function wn(){return!1}function Tn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?Cn:wn,this.isPropagationStopped=wn,this}return f(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=Cn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Cn)},persist:function(){},isPersistent:Cn}),t}var En={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Dn=Tn(En),On=f({},En,{view:0,detail:0}),kn=Tn(On),An,jn,Mn,Nn=f({},On,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wn,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!==Mn&&(Mn&&e.type===`mousemove`?(An=e.screenX-Mn.screenX,jn=e.screenY-Mn.screenY):jn=An=0,Mn=e),An)},movementY:function(e){return`movementY`in e?e.movementY:jn}}),Pn=Tn(Nn),Fn=Tn(f({},Nn,{dataTransfer:0})),In=Tn(f({},On,{relatedTarget:0})),Ln=Tn(f({},En,{animationName:0,elapsedTime:0,pseudoElement:0})),Rn=Tn(f({},En,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),zn=Tn(f({},En,{data:0})),Bn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Vn={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`},Hn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Un(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Hn[e])?!!t[e]:!1}function Wn(){return Un}var Gn=Tn(f({},On,{key:function(e){if(e.key){var t=Bn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Sn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Vn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wn,charCode:function(e){return e.type===`keypress`?Sn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Sn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Kn=Tn(f({},Nn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),qn=Tn(f({},On,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wn})),Jn=Tn(f({},En,{propertyName:0,elapsedTime:0,pseudoElement:0})),Yn=Tn(f({},Nn,{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})),Xn=Tn(f({},En,{newState:0,oldState:0})),Zn=[9,13,27,32],Qn=hn&&`CompositionEvent`in window,$n=null;hn&&`documentMode`in document&&($n=document.documentMode);var er=hn&&`TextEvent`in window&&!$n,tr=hn&&(!Qn||$n&&8<$n&&11>=$n),nr=` `,rr=!1;function ir(e,t){switch(e){case`keyup`:return Zn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function ar(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var or=!1;function sr(e,t){switch(e){case`compositionend`:return ar(t);case`keypress`:return t.which===32?(rr=!0,nr):null;case`textInput`:return e=t.data,e===nr&&rr?null:e;default:return null}}function cr(e,t){if(or)return e===`compositionend`||!Qn&&ir(e,t)?(e=xn(),bn=yn=vn=null,or=!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 tr&&t.locale!==`ko`?null:t.data;default:return null}}var lr={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 ur(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!lr[e.type]:t===`textarea`}function dr(e,t,n,r){ln?un?un.push(r):un=[r]:ln=r,t=Ed(t,`onChange`),0<t.length&&(n=new Dn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var fr=null,pr=null;function mr(e){yd(e,0)}function hr(e){if(Vt(Ct(e)))return e}function gr(e,t){if(e===`change`)return t}var _r=!1;if(hn){var vr;if(hn){var yr=`oninput`in document;if(!yr){var br=document.createElement(`div`);br.setAttribute(`oninput`,`return;`),yr=typeof br.oninput==`function`}vr=yr}else vr=!1;_r=vr&&(!document.documentMode||9<document.documentMode)}function xr(){fr&&(fr.detachEvent(`onpropertychange`,Sr),pr=fr=null)}function Sr(e){if(e.propertyName===`value`&&hr(pr)){var t=[];dr(t,pr,e,cn(e)),pn(mr,t)}}function Cr(e,t,n){e===`focusin`?(xr(),fr=t,pr=n,fr.attachEvent(`onpropertychange`,Sr)):e===`focusout`&&xr()}function wr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return hr(pr)}function Tr(e,t){if(e===`click`)return hr(t)}function Er(e,t){if(e===`input`||e===`change`)return hr(t)}function Dr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Or=typeof Object.is==`function`?Object.is:Dr;function kr(e,t){if(Or(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!De.call(t,i)||!Or(e[i],t[i]))return!1}return!0}function Ar(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function jr(e,t){var n=Ar(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Ar(n)}}function Mr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Mr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ht(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=Ht(e.document)}return t}function Pr(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 Fr=hn&&`documentMode`in document&&11>=document.documentMode,Ir=null,Lr=null,Rr=null,zr=!1;function Br(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zr||Ir==null||Ir!==Ht(r)||(r=Ir,`selectionStart`in r&&Pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Rr&&kr(Rr,r)||(Rr=r,r=Ed(Lr,`onSelect`),0<r.length&&(t=new Dn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Ir)))}function Vr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Hr={animationend:Vr(`Animation`,`AnimationEnd`),animationiteration:Vr(`Animation`,`AnimationIteration`),animationstart:Vr(`Animation`,`AnimationStart`),transitionrun:Vr(`Transition`,`TransitionRun`),transitionstart:Vr(`Transition`,`TransitionStart`),transitioncancel:Vr(`Transition`,`TransitionCancel`),transitionend:Vr(`Transition`,`TransitionEnd`)},Ur={},Wr={};hn&&(Wr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Hr.animationend.animation,delete Hr.animationiteration.animation,delete Hr.animationstart.animation),`TransitionEvent`in window||delete Hr.transitionend.transition);function Gr(e){if(Ur[e])return Ur[e];if(!Hr[e])return e;var t=Hr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Wr)return Ur[e]=t[n];return e}var Kr=Gr(`animationend`),qr=Gr(`animationiteration`),Jr=Gr(`animationstart`),Yr=Gr(`transitionrun`),Xr=Gr(`transitionstart`),Zr=Gr(`transitioncancel`),Qr=Gr(`transitionend`),$r=new Map,ei=`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(` `);ei.push(`scrollEnd`);function ti(e,t){$r.set(e,t),Ot(t,[e])}var ni=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&&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)},ri=[],ii=0,ai=0;function oi(){for(var e=ii,t=ai=ii=0;t<e;){var n=ri[t];ri[t++]=null;var r=ri[t];ri[t++]=null;var i=ri[t];ri[t++]=null;var a=ri[t];if(ri[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ui(n,i,a)}}function si(e,t,n,r){ri[ii++]=e,ri[ii++]=t,ri[ii++]=n,ri[ii++]=r,ai|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ci(e,t,n,r){return si(e,t,n,r),di(e)}function li(e,t){return si(e,null,null,t),di(e)}function ui(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-We(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function di(e){if(50<pu)throw pu=0,mu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var fi={};function pi(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mi(e,t,n,r){return new pi(e,t,n,r)}function hi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function gi(e,t){var n=e.alternate;return n===null?(n=mi(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 _i(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 vi(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)hi(e)&&(s=1);else if(typeof e==`string`)s=Uf(e,n,ue.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case te:return e=mi(31,n,t,a),e.elementType=te,e.lanes=o,e;case g:return yi(n.children,a,o,t);case _:s=8,a|=24;break;case v:return e=mi(12,n,t,a|2),e.elementType=v,e.lanes=o,e;case S:return e=mi(13,n,t,a),e.elementType=S,e.lanes=o,e;case C:return e=mi(19,n,t,a),e.elementType=C,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case b:s=10;break a;case y:s=9;break a;case x:s=11;break a;case w:s=14;break a;case T:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=mi(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function yi(e,t,n,r){return e=mi(7,e,r,t),e.lanes=n,e}function bi(e,t,n){return e=mi(6,e,null,t),e.lanes=n,e}function xi(e){var t=mi(18,null,null,0);return t.stateNode=e,t}function Si(e,t,n){return t=mi(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ci=new WeakMap;function wi(e,t){if(typeof e==`object`&&e){var n=Ci.get(e);return n===void 0?(t={value:e,source:t,stack:Te(t)},Ci.set(e,t),t):n}return{value:e,source:t,stack:Te(t)}}var Ti=[],Ei=0,Di=null,Oi=0,ki=[],Ai=0,ji=null,Mi=1,Ni=``;function Pi(e,t){Ti[Ei++]=Oi,Ti[Ei++]=Di,Di=e,Oi=t}function Fi(e,t,n){ki[Ai++]=Mi,ki[Ai++]=Ni,ki[Ai++]=ji,ji=e;var r=Mi;e=Ni;var i=32-We(r)-1;r&=~(1<<i),n+=1;var a=32-We(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Mi=1<<32-We(t)+i|n<<i|r,Ni=a+e}else Mi=1<<a|n<<i|r,Ni=e}function Ii(e){e.return!==null&&(Pi(e,1),Fi(e,1,0))}function Li(e){for(;e===Di;)Di=Ti[--Ei],Ti[Ei]=null,Oi=Ti[--Ei],Ti[Ei]=null;for(;e===ji;)ji=ki[--Ai],ki[Ai]=null,Ni=ki[--Ai],ki[Ai]=null,Mi=ki[--Ai],ki[Ai]=null}function Ri(e,t){ki[Ai++]=Mi,ki[Ai++]=Ni,ki[Ai++]=ji,Mi=t.id,Ni=t.overflow,ji=e}var zi=null,N=null,P=!1,Bi=null,Vi=!1,Hi=Error(i(519));function Ui(e){throw Yi(wi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Hi}function Wi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[ft]=e,t[pt]=r,n){case`dialog`:Q(`cancel`,t),Q(`close`,t);break;case`iframe`:case`object`:case`embed`:Q(`load`,t);break;case`video`:case`audio`:for(n=0;n<_d.length;n++)Q(_d[n],t);break;case`source`:Q(`error`,t);break;case`img`:case`image`:case`link`:Q(`error`,t),Q(`load`,t);break;case`details`:Q(`toggle`,t);break;case`input`:Q(`invalid`,t),Kt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Q(`invalid`,t);break;case`textarea`:Q(`invalid`,t),Xt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Md(t.textContent,n)?(r.popover!=null&&(Q(`beforetoggle`,t),Q(`toggle`,t)),r.onScroll!=null&&Q(`scroll`,t),r.onScrollEnd!=null&&Q(`scrollend`,t),r.onClick!=null&&(t.onclick=on),t=!0):t=!1,t||Ui(e,!0)}function Gi(e){for(zi=e.return;zi;)switch(zi.tag){case 5:case 31:case 13:Vi=!1;return;case 27:case 3:Vi=!0;return;default:zi=zi.return}}function Ki(e){if(e!==zi)return!1;if(!P)return Gi(e),P=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Ud(e.type,e.memoizedProps)),n=!n),n&&N&&Ui(e),Gi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));N=uf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));N=uf(e)}else t===27?(t=N,Zd(e.type)?(e=lf,lf=null,N=e):N=t):N=zi?cf(e.stateNode.nextSibling):null;return!0}function qi(){N=zi=null,P=!1}function Ji(){var e=Bi;return e!==null&&($l===null?$l=e:$l.push.apply($l,e),Bi=null),e}function Yi(e){Bi===null?Bi=[e]:Bi.push(e)}var Xi=k(null),Zi=null,Qi=null;function $i(e,t,n){j(Xi,t._currentValue),t._currentValue=n}function ea(e){e._currentValue=Xi.current,A(Xi)}function ta(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function na(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),ta(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),ta(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function ra(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Or(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===pe.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[Qf]:e.push(Qf))}a=a.return}e!==null&&na(t,e,n,r),t.flags|=262144}function ia(e){for(e=e.firstContext;e!==null;){if(!Or(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function aa(e){Zi=e,Qi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function oa(e){return ca(Zi,e)}function sa(e,t){return Zi===null&&aa(e),ca(e,t)}function ca(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Qi===null){if(e===null)throw Error(i(308));Qi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Qi=Qi.next=t;return n}var la=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},ua=t.unstable_scheduleCallback,da=t.unstable_NormalPriority,fa={$$typeof:b,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function pa(){return{controller:new la,data:new Map,refCount:0}}function ma(e){e.refCount--,e.refCount===0&&ua(da,function(){e.controller.abort()})}var ha=null,ga=0,_a=0,va=null;function ya(e,t){if(ha===null){var n=ha=[];ga=0,_a=dd(),va={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return ga++,t.then(ba,ba),t}function ba(){if(--ga===0&&ha!==null){va!==null&&(va.status=`fulfilled`);var e=ha;ha=null,_a=0,va=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function xa(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var Sa=D.S;D.S=function(e,t){nu=Me(),typeof t==`object`&&t&&typeof t.then==`function`&&ya(e,t),Sa!==null&&Sa(e,t)};var Ca=k(null);function wa(){var e=Ca.current;return e===null?U.pooledCache:e}function Ta(e,t){t===null?j(Ca,Ca.current):j(Ca,t.pool)}function Ea(){var e=wa();return e===null?null:{parent:fa._currentValue,pool:e}}var Da=Error(i(460)),Oa=Error(i(474)),ka=Error(i(542)),Aa={then:function(){}};function ja(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Ma(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(on,on),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ia(e),e;default:if(typeof t.status==`string`)t.then(on,on);else{if(e=U,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ia(e),e}throw Pa=t,Da}}function Na(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Pa=e,Da):e}}var Pa=null;function Fa(){if(Pa===null)throw Error(i(459));var e=Pa;return Pa=null,e}function Ia(e){if(e===Da||e===ka)throw Error(i(483))}var La=null,Ra=0;function za(e){var t=Ra;return Ra+=1,La===null&&(La=[]),Ma(La,e,t)}function F(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Ba(e,t){throw t.$$typeof===p?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Va(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=gi(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=bi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===g?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===T&&Na(i)===t.type)?(t=a(t,n.props),F(t,n),t.return=e,t):(t=vi(n.type,n.key,n.props,null,e.mode,r),F(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Si(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=yi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=bi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case m:return n=vi(t.type,t.key,t.props,null,e.mode,n),F(n,t),n.return=e,n;case h:return t=Si(t,e.mode,n),t.return=e,t;case T:return t=Na(t),f(e,t,n)}if(oe(t)||re(t))return t=yi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,za(t),n);if(t.$$typeof===b)return f(e,sa(e,t),n);Ba(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case m:return n.key===i?l(e,t,n,r):null;case h:return n.key===i?u(e,t,n,r):null;case T:return n=Na(n),p(e,t,n,r)}if(oe(n)||re(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,za(n),r);if(n.$$typeof===b)return p(e,t,sa(e,n),r);Ba(e,n)}return null}function _(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case m:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case h:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case T:return r=Na(r),_(e,t,n,r,i)}if(oe(r)||re(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return _(e,t,n,za(r),i);if(r.$$typeof===b)return _(e,t,n,sa(t,r),i);Ba(t,r)}return null}function v(i,a,s,c){for(var l=null,u=null,d=a,m=a=0,h=null;d!==null&&m<s.length;m++){d.index>m?(h=d,d=null):h=d.sibling;var g=p(i,d,s[m],c);if(g===null){d===null&&(d=h);break}e&&d&&g.alternate===null&&t(i,d),a=o(g,a,m),u===null?l=g:u.sibling=g,u=g,d=h}if(m===s.length)return n(i,d),P&&Pi(i,m),l;if(d===null){for(;m<s.length;m++)d=f(i,s[m],c),d!==null&&(a=o(d,a,m),u===null?l=d:u.sibling=d,u=d);return P&&Pi(i,m),l}for(d=r(d);m<s.length;m++)h=_(d,i,m,s[m],c),h!==null&&(e&&h.alternate!==null&&d.delete(h.key===null?m:h.key),a=o(h,a,m),u===null?l=h:u.sibling=h,u=h);return e&&d.forEach(function(e){return t(i,e)}),P&&Pi(i,m),l}function y(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,m=s,h=s=0,g=null,v=c.next();m!==null&&!v.done;h++,v=c.next()){m.index>h?(g=m,m=null):g=m.sibling;var y=p(a,m,v.value,l);if(y===null){m===null&&(m=g);break}e&&m&&y.alternate===null&&t(a,m),s=o(y,s,h),d===null?u=y:d.sibling=y,d=y,m=g}if(v.done)return n(a,m),P&&Pi(a,h),u;if(m===null){for(;!v.done;h++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return P&&Pi(a,h),u}for(m=r(m);!v.done;h++,v=c.next())v=_(m,a,h,v.value,l),v!==null&&(e&&v.alternate!==null&&m.delete(v.key===null?h:v.key),s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return e&&m.forEach(function(e){return t(a,e)}),P&&Pi(a,h),u}function x(e,r,o,c){if(typeof o==`object`&&o&&o.type===g&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case m:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===g){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===T&&Na(l)===r.type){n(e,r.sibling),c=a(r,o.props),F(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===g?(c=yi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=vi(o.type,o.key,o.props,null,e.mode,c),F(c,o),c.return=e,e=c)}return s(e);case h:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=Si(o,e.mode,c),c.return=e,e=c}return s(e);case T:return o=Na(o),x(e,r,o,c)}if(oe(o))return v(e,r,o,c);if(re(o)){if(l=re(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return x(e,r,za(o),c);if(o.$$typeof===b)return x(e,r,sa(e,o),c);Ba(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=bi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Ra=0;var i=x(e,t,n,r);return La=null,i}catch(t){if(t===Da||t===ka)throw t;var a=mi(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ha=Va(!0),Ua=Va(!1),Wa=!1;function Ga(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ka(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 qa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ja(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,H&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=di(e),ui(e,null,n),t}return si(e,r,t,n),di(e)}function Ya(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,at(e,n)}}function Xa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Za=!1;function Qa(){if(Za){var e=va;if(e!==null)throw e}}function $a(e,t,n,r){Za=!1;var i=e.updateQueue;Wa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(G&p)===p:(r&p)===p){p!==0&&p===_a&&(Za=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;p=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,p);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(_,d,p):h,p==null)break a;d=f({},d,p);break a;case 2:Wa=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),ql|=o,e.lanes=o,e.memoizedState=d}}function eo(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function to(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)eo(n[e],t)}var no=k(null),ro=k(0);function io(e,t){e=Kl,j(ro,e),j(no,t),Kl=e|t.baseLanes}function ao(){j(ro,Kl),j(no,no.current)}function oo(){Kl=ro.current,A(no),A(ro)}var I=k(null),so=null;function co(e){var t=e.alternate;j(L,L.current&1),j(I,e),so===null&&(t===null||no.current!==null||t.memoizedState!==null)&&(so=e)}function lo(e){j(L,L.current),j(I,e),so===null&&(so=e)}function uo(e){e.tag===22?(j(L,L.current),j(I,e),so===null&&(so=e)):fo(e)}function fo(){j(L,L.current),j(I,I.current)}function po(e){A(I),so===e&&(so=null),A(L)}var L=k(0);function mo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||af(n)||of(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)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 ho=0,R=null,z=null,go=null,_o=!1,vo=!1,yo=!1,bo=0,xo=0,So=null,Co=0;function wo(){throw Error(i(321))}function To(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Or(e[n],t[n]))return!1;return!0}function Eo(e,t,n,r,i,a){return ho=a,R=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?Hs:Us,yo=!1,a=n(r,i),yo=!1,vo&&(a=Oo(t,n,r,i)),Do(e),a}function Do(e){D.H=Vs;var t=z!==null&&z.next!==null;if(ho=0,go=z=R=null,_o=!1,xo=0,So=null,t)throw Error(i(300));e===null||oc||(e=e.dependencies,e!==null&&ia(e)&&(oc=!0))}function Oo(e,t,n,r){R=e;var a=0;do{if(vo&&(So=null),xo=0,vo=!1,25<=a)throw Error(i(301));if(a+=1,go=z=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}D.H=Ws,o=t(n,r)}while(vo);return o}function ko(){var e=D.H,t=e.useState()[0];return t=typeof t.then==`function`?Io(t):t,e=e.useState()[0],(z===null?null:z.memoizedState)!==e&&(R.flags|=1024),t}function Ao(){var e=bo!==0;return bo=0,e}function jo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Mo(e){if(_o){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}_o=!1}ho=0,go=z=R=null,vo=!1,xo=bo=0,So=null}function No(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return go===null?R.memoizedState=go=e:go=go.next=e,go}function Po(){if(z===null){var e=R.alternate;e=e===null?null:e.memoizedState}else e=z.next;var t=go===null?R.memoizedState:go.next;if(t!==null)go=t,z=e;else{if(e===null)throw R.alternate===null?Error(i(467)):Error(i(310));z=e,e={memoizedState:z.memoizedState,baseState:z.baseState,baseQueue:z.baseQueue,queue:z.queue,next:null},go===null?R.memoizedState=go=e:go=go.next=e}return go}function Fo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Io(e){var t=xo;return xo+=1,So===null&&(So=[]),e=Ma(So,e,t),t=R,(go===null?t.memoizedState:go.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?Hs:Us),e}function Lo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Io(e);if(e.$$typeof===b)return oa(e)}throw Error(i(438,String(e)))}function Ro(e){var t=null,n=R.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=R.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Fo(),R.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=E;return t.index++,n}function zo(e,t){return typeof t==`function`?t(e):t}function Bo(e){return Vo(Po(),z,e)}function Vo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(ho&f)===f:(G&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===_a&&(d=!0);else if((ho&p)===p){u=u.next,p===_a&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,R.lanes|=p,ql|=p;f=u.action,yo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,R.lanes|=f,ql|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Or(o,e.memoizedState)&&(oc=!0,d&&(n=va,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Ho(e){var t=Po(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Or(o,t.memoizedState)||(oc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Uo(e,t,n){var r=R,a=Po(),o=P;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Or((z||a).memoizedState,n);if(s&&(a.memoizedState=n,oc=!0),a=a.queue,B(Ko.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||go!==null&&go.memoizedState.tag&1){if(r.flags|=2048,ls(9,{destroy:void 0},Go.bind(null,r,a,n,t),null),U===null)throw Error(i(349));o||ho&127||Wo(r,t,n)}return n}function Wo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=R.updateQueue,t===null?(t=Fo(),R.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Go(e,t,n,r){t.value=n,t.getSnapshot=r,qo(t)&&Jo(e)}function Ko(e,t,n){return n(function(){qo(t)&&Jo(e)})}function qo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Or(e,n)}catch{return!0}}function Jo(e){var t=li(e,2);t!==null&&Y(t,e,2)}function Yo(e){var t=No();if(typeof e==`function`){var n=e;if(e=n(),yo){Ue(!0);try{n()}finally{Ue(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zo,lastRenderedState:e},t}function Xo(e,t,n,r){return e.baseState=n,Vo(e,z,typeof r==`function`?r:zo)}function Zo(e,t,n,r,a){if(Rs(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};D.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Qo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Qo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=D.T,o={};D.T=o;try{var s=n(i,r),c=D.S;c!==null&&c(o,s),$o(e,t,s)}catch(n){ts(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),D.T=a}}else try{a=n(i,r),$o(e,t,a)}catch(n){ts(e,t,n)}}function $o(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){es(e,t,n)},function(n){return ts(e,t,n)}):es(e,t,n)}function es(e,t,n){t.status=`fulfilled`,t.value=n,ns(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Qo(e,n)))}function ts(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,ns(t),t=t.next;while(t!==r)}e.action=null}function ns(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function rs(e,t){return t}function is(e,t){if(P){var n=U.formState;if(n!==null){a:{var r=R;if(P){if(N){b:{for(var i=N,a=Vi;i.nodeType!==8;){if(!a){i=null;break b}if(i=cf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){N=cf(i.nextSibling),r=i.data===`F!`;break a}}Ui(r)}r=!1}r&&(t=n[0])}}return n=No(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rs,lastRenderedState:t},n.queue=r,n=Fs.bind(null,R,r),r.dispatch=n,r=Yo(!1),a=Ls.bind(null,R,!1,r.queue),r=No(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Zo.bind(null,R,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function as(e){return os(Po(),z,e)}function os(e,t,n){if(t=Vo(e,t,rs)[0],e=Bo(zo)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Io(t)}catch(e){throw e===Da?ka:e}else r=t;t=Po();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(R.flags|=2048,ls(9,{destroy:void 0},ss.bind(null,i,n),null)),[r,a,e]}function ss(e,t){e.action=t}function cs(e){var t=Po(),n=z;if(n!==null)return os(t,n,e);Po(),t=t.memoizedState,n=Po();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function ls(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=R.updateQueue,t===null&&(t=Fo(),R.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function us(){return Po().memoizedState}function ds(e,t,n,r){var i=No();R.flags|=e,i.memoizedState=ls(1|t,{destroy:void 0},n,r===void 0?null:r)}function fs(e,t,n,r){var i=Po();r=r===void 0?null:r;var a=i.memoizedState.inst;z!==null&&r!==null&&To(r,z.memoizedState.deps)?i.memoizedState=ls(t,a,n,r):(R.flags|=e,i.memoizedState=ls(1|t,a,n,r))}function ps(e,t){ds(8390656,8,e,t)}function B(e,t){fs(2048,8,e,t)}function ms(e){R.flags|=4;var t=R.updateQueue;if(t===null)t=Fo(),R.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function hs(e){var t=Po().memoizedState;return ms({ref:t,nextImpl:e}),function(){if(H&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function gs(e,t){return fs(4,2,e,t)}function _s(e,t){return fs(4,4,e,t)}function vs(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 ys(e,t,n){n=n==null?null:n.concat([e]),fs(4,4,vs.bind(null,t,e),n)}function bs(){}function xs(e,t){var n=Po();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&To(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ss(e,t){var n=Po();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&To(t,r[1]))return r[0];if(r=e(),yo){Ue(!0);try{e()}finally{Ue(!1)}}return n.memoizedState=[r,t],r}function Cs(e,t,n){return n===void 0||ho&1073741824&&!(G&261930)?e.memoizedState=t:(e.memoizedState=n,e=gu(),R.lanes|=e,ql|=e,n)}function ws(e,t,n,r){return Or(n,t)?n:no.current===null?!(ho&42)||ho&1073741824&&!(G&261930)?(oc=!0,e.memoizedState=n):(e=gu(),R.lanes|=e,ql|=e,t):(e=Cs(e,n,r),Or(e,t)||(oc=!0),e)}function Ts(e,t,n,r,i){var a=O.p;O.p=a!==0&&8>a?a:8;var o=D.T,s={};D.T=s,Ls(e,!1,t,n);try{var c=i(),l=D.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Is(e,t,xa(c,r),hu(e)):Is(e,t,r,hu(e))}catch(n){Is(e,t,{then:function(){},status:`rejected`,reason:n},hu())}finally{O.p=a,o!==null&&s.types!==null&&(o.types=s.types),D.T=o}}function Es(){}function Ds(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Os(e).queue;Ts(e,a,t,se,n===null?Es:function(){return ks(e),n(r)})}function Os(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:se,baseState:se,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zo,lastRenderedState:se},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ks(e){var t=Os(e);t.next===null&&(t=e.alternate.memoizedState),Is(e,t.next.queue,{},hu())}function As(){return oa(Qf)}function js(){return Po().memoizedState}function Ms(){return Po().memoizedState}function Ns(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=hu();e=qa(n);var r=Ja(t,e,n);r!==null&&(Y(r,t,n),Ya(r,t,n)),t={cache:pa()},e.payload=t;return}t=t.return}}function Ps(e,t,n){var r=hu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Rs(e)?zs(t,n):(n=ci(e,t,n,r),n!==null&&(Y(n,e,r),Bs(n,t,r)))}function Fs(e,t,n){Is(e,t,n,hu())}function Is(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Rs(e))zs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Or(s,o))return si(e,t,i,0),U===null&&oi(),!1}catch{}if(n=ci(e,t,i,r),n!==null)return Y(n,e,r),Bs(n,t,r),!0}return!1}function Ls(e,t,n,r){if(r={lane:2,revertLane:dd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Rs(e)){if(t)throw Error(i(479))}else t=ci(e,n,r,2),t!==null&&Y(t,e,2)}function Rs(e){var t=e.alternate;return e===R||t!==null&&t===R}function zs(e,t){vo=_o=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Bs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,at(e,n)}}var Vs={readContext:oa,use:Lo,useCallback:wo,useContext:wo,useEffect:wo,useImperativeHandle:wo,useLayoutEffect:wo,useInsertionEffect:wo,useMemo:wo,useReducer:wo,useRef:wo,useState:wo,useDebugValue:wo,useDeferredValue:wo,useTransition:wo,useSyncExternalStore:wo,useId:wo,useHostTransitionStatus:wo,useFormState:wo,useActionState:wo,useOptimistic:wo,useMemoCache:wo,useCacheRefresh:wo};Vs.useEffectEvent=wo;var Hs={readContext:oa,use:Lo,useCallback:function(e,t){return No().memoizedState=[e,t===void 0?null:t],e},useContext:oa,useEffect:ps,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ds(4194308,4,vs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ds(4194308,4,e,t)},useInsertionEffect:function(e,t){ds(4,2,e,t)},useMemo:function(e,t){var n=No();t=t===void 0?null:t;var r=e();if(yo){Ue(!0);try{e()}finally{Ue(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=No();if(n!==void 0){var i=n(t);if(yo){Ue(!0);try{n(t)}finally{Ue(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ps.bind(null,R,e),[r.memoizedState,e]},useRef:function(e){var t=No();return e={current:e},t.memoizedState=e},useState:function(e){e=Yo(e);var t=e.queue,n=Fs.bind(null,R,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:bs,useDeferredValue:function(e,t){return Cs(No(),e,t)},useTransition:function(){var e=Yo(!1);return e=Ts.bind(null,R,e.queue,!0,!1),No().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=R,a=No();if(P){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),U===null)throw Error(i(349));G&127||Wo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,ps(Ko.bind(null,r,o,e),[e]),r.flags|=2048,ls(9,{destroy:void 0},Go.bind(null,r,o,n,t),null),n},useId:function(){var e=No(),t=U.identifierPrefix;if(P){var n=Ni,r=Mi;n=(r&~(1<<32-We(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=bo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Co++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:As,useFormState:is,useActionState:is,useOptimistic:function(e){var t=No();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ls.bind(null,R,!0,n),n.dispatch=t,[e,t]},useMemoCache:Ro,useCacheRefresh:function(){return No().memoizedState=Ns.bind(null,R)},useEffectEvent:function(e){var t=No(),n={impl:e};return t.memoizedState=n,function(){if(H&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Us={readContext:oa,use:Lo,useCallback:xs,useContext:oa,useEffect:B,useImperativeHandle:ys,useInsertionEffect:gs,useLayoutEffect:_s,useMemo:Ss,useReducer:Bo,useRef:us,useState:function(){return Bo(zo)},useDebugValue:bs,useDeferredValue:function(e,t){return ws(Po(),z.memoizedState,e,t)},useTransition:function(){var e=Bo(zo)[0],t=Po().memoizedState;return[typeof e==`boolean`?e:Io(e),t]},useSyncExternalStore:Uo,useId:js,useHostTransitionStatus:As,useFormState:as,useActionState:as,useOptimistic:function(e,t){return Xo(Po(),z,e,t)},useMemoCache:Ro,useCacheRefresh:Ms};Us.useEffectEvent=hs;var Ws={readContext:oa,use:Lo,useCallback:xs,useContext:oa,useEffect:B,useImperativeHandle:ys,useInsertionEffect:gs,useLayoutEffect:_s,useMemo:Ss,useReducer:Ho,useRef:us,useState:function(){return Ho(zo)},useDebugValue:bs,useDeferredValue:function(e,t){var n=Po();return z===null?Cs(n,e,t):ws(n,z.memoizedState,e,t)},useTransition:function(){var e=Ho(zo)[0],t=Po().memoizedState;return[typeof e==`boolean`?e:Io(e),t]},useSyncExternalStore:Uo,useId:js,useHostTransitionStatus:As,useFormState:cs,useActionState:cs,useOptimistic:function(e,t){var n=Po();return z===null?(n.baseState=e,[e,n.queue.dispatch]):Xo(n,z,e,t)},useMemoCache:Ro,useCacheRefresh:Ms};Ws.useEffectEvent=hs;function Gs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:f({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ks={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=hu(),i=qa(r);i.payload=t,n!=null&&(i.callback=n),t=Ja(e,i,r),t!==null&&(Y(t,e,r),Ya(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=hu(),i=qa(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ja(e,i,r),t!==null&&(Y(t,e,r),Ya(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=hu(),r=qa(n);r.tag=2,t!=null&&(r.callback=t),t=Ja(e,r,n),t!==null&&(Y(t,e,n),Ya(t,e,n))}};function qs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!kr(n,r)||!kr(i,a):!0}function Js(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ks.enqueueReplaceState(t,t.state,null)}function Ys(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=f({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Xs(e){ni(e)}function Zs(e){console.error(e)}function Qs(e){ni(e)}function $s(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function ec(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function tc(e,t,n){return n=qa(n),n.tag=3,n.payload={element:null},n.callback=function(){$s(e,t)},n}function nc(e){return e=qa(e),e.tag=3,e}function rc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){ec(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){ec(t,n,r),typeof i!=`function`&&(au===null?au=new Set([this]):au.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function ic(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&ra(t,n,a,!0),n=I.current,n!==null){switch(n.tag){case 31:case 13:return so===null?Ou():n.alternate===null&&J===0&&(J=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Aa?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Gu(e,r,a)),!1;case 22:return n.flags|=65536,r===Aa?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Gu(e,r,a)),!1}throw Error(i(435,n.tag))}return Gu(e,r,a),Ou(),!1}if(P)return t=I.current,t===null?(r!==Hi&&(t=Error(i(423),{cause:r}),Yi(wi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=wi(r,n),a=tc(e.stateNode,r,a),Xa(e,a),J!==4&&(J=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Hi&&(e=Error(i(422),{cause:r}),Yi(wi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=wi(o,n),Ql===null?Ql=[o]:Ql.push(o),J!==4&&(J=2),t===null)return!0;r=wi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=tc(n.stateNode,r,e),Xa(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(au===null||!au.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=nc(a),rc(a,e,n,r),Xa(n,a),!1}n=n.return}while(n!==null);return!1}var ac=Error(i(461)),oc=!1;function sc(e,t,n,r){t.child=e===null?Ua(t,null,n,r):Ha(t,e.child,n,r)}function cc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return aa(t),r=Eo(e,t,n,o,a,i),s=Ao(),e!==null&&!oc?(jo(e,t,i),Mc(e,t,i)):(P&&s&&Ii(t),t.flags|=1,sc(e,t,r,i),t.child)}function lc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!hi(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,uc(e,t,a,r,i)):(e=vi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Nc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?kr:n,n(o,r)&&e.ref===t.ref)return Mc(e,t,i)}return t.flags|=1,e=gi(a,r),e.ref=t.ref,e.return=t,t.child=e}function uc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(kr(a,r)&&e.ref===t.ref)if(oc=!1,t.pendingProps=r=a,Nc(e,i))e.flags&131072&&(oc=!0);else return t.lanes=e.lanes,Mc(e,t,i)}return vc(e,t,n,r,i)}function dc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return pc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ta(t,a===null?null:a.cachePool),a===null?ao():io(t,a),uo(t);else return r=t.lanes=536870912,pc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Ta(t,null),ao(),fo(t)):(Ta(t,a.cachePool),io(t,a),fo(t),t.memoizedState=null);return sc(e,t,i,n),t.child}function fc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function pc(e,t,n,r,i){var a=wa();return a=a===null?null:{parent:fa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Ta(t,null),ao(),uo(t),e!==null&&ra(e,t,r,!0),t.childLanes=i,null}function mc(e,t){return t=Dc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function hc(e,t,n){return Ha(t,e.child,null,n),e=mc(t,t.pendingProps),e.flags|=2,po(t),t.memoizedState=null,e}function gc(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(P){if(r.mode===`hidden`)return e=mc(t,r),t.lanes=536870912,fc(null,e);if(lo(t),(e=N)?(e=rf(e,Vi),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ji===null?null:{id:Mi,overflow:Ni},retryLane:536870912,hydrationErrors:null},n=xi(e),n.return=t,t.child=n,zi=t,N=null)):e=null,e===null)throw Ui(t);return t.lanes=536870912,null}return mc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(lo(t),a)if(t.flags&256)t.flags&=-257,t=hc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(oc||ra(e,t,n,!1),a=(n&e.childLanes)!==0,oc||a){if(r=U,r!==null&&(s=ot(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,li(e,s),Y(r,e,s),ac;Ou(),t=hc(e,t,n)}else e=o.treeContext,N=cf(s.nextSibling),zi=t,P=!0,Bi=null,Vi=!1,e!==null&&Ri(t,e),t=mc(t,r),t.flags|=4096;return t}return e=gi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function _c(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(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function vc(e,t,n,r,i){return aa(t),n=Eo(e,t,n,r,void 0,i),r=Ao(),e!==null&&!oc?(jo(e,t,i),Mc(e,t,i)):(P&&r&&Ii(t),t.flags|=1,sc(e,t,n,i),t.child)}function yc(e,t,n,r,i,a){return aa(t),t.updateQueue=null,n=Oo(t,r,n,i),Do(e),r=Ao(),e!==null&&!oc?(jo(e,t,a),Mc(e,t,a)):(P&&r&&Ii(t),t.flags|=1,sc(e,t,n,a),t.child)}function bc(e,t,n,r,i){if(aa(t),t.stateNode===null){var a=fi,o=n.contextType;typeof o==`object`&&o&&(a=oa(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Ks,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Ga(t),o=n.contextType,a.context=typeof o==`object`&&o?oa(o):fi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Gs(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Ks.enqueueReplaceState(a,a.state,null),$a(t,r,a,i),Qa(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Ys(n,s);a.props=c;var l=a.context,u=n.contextType;o=fi,typeof u==`object`&&u&&(o=oa(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Js(t,a,r,o),Wa=!1;var f=t.memoizedState;a.state=f,$a(t,r,a,i),Qa(),l=t.memoizedState,s||f!==l||Wa?(typeof d==`function`&&(Gs(t,n,d,r),l=t.memoizedState),(c=Wa||qs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ka(e,t),o=t.memoizedProps,u=Ys(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=fi,typeof l==`object`&&l&&(c=oa(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Js(t,a,r,c),Wa=!1,f=t.memoizedState,a.state=f,$a(t,r,a,i),Qa();var p=t.memoizedState;o!==d||f!==p||Wa||e!==null&&e.dependencies!==null&&ia(e.dependencies)?(typeof s==`function`&&(Gs(t,n,s,r),p=t.memoizedState),(u=Wa||qs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&ia(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,_c(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Ha(t,e.child,null,i),t.child=Ha(t,null,n,i)):sc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Mc(e,t,i),e}function xc(e,t,n,r){return qi(),t.flags|=256,sc(e,t,n,r),t.child}var Sc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Cc(e){return{baseLanes:e,cachePool:Ea()}}function wc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Xl),e}function Tc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(L.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(P){if(a?co(t):fo(t),(e=N)?(e=rf(e,Vi),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ji===null?null:{id:Mi,overflow:Ni},retryLane:536870912,hydrationErrors:null},n=xi(e),n.return=t,t.child=n,zi=t,N=null)):e=null,e===null)throw Ui(t);return of(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(fo(t),a=t.mode,c=Dc({mode:`hidden`,children:c},a),r=yi(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=Cc(n),r.childLanes=wc(e,s,n),t.memoizedState=Sc,fc(null,r)):(co(t),Ec(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(co(t),t.flags&=-257,t=Oc(e,t,n)):t.memoizedState===null?(fo(t),c=r.fallback,a=t.mode,r=Dc({mode:`visible`,children:r.children},a),c=yi(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ha(t,e.child,null,n),r=t.child,r.memoizedState=Cc(n),r.childLanes=wc(e,s,n),t.memoizedState=Sc,t=fc(null,r)):(fo(t),t.child=e.child,t.flags|=128,t=null);else if(co(t),of(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Yi({value:r,source:null,stack:null}),t=Oc(e,t,n)}else if(oc||ra(e,t,n,!1),s=(n&e.childLanes)!==0,oc||s){if(s=U,s!==null&&(r=ot(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,li(e,r),Y(s,e,r),ac;af(c)||Ou(),t=Oc(e,t,n)}else af(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,N=cf(c.nextSibling),zi=t,P=!0,Bi=null,Vi=!1,e!==null&&Ri(t,e),t=Ec(t,r.children),t.flags|=4096);return t}return a?(fo(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=gi(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=yi(c,a,n,null),c.flags|=2):c=gi(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,fc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=Cc(n):(a=c.cachePool,a===null?a=Ea():(l=fa._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=wc(e,s,n),t.memoizedState=Sc,fc(e.child,r)):(co(t),n=e.child,e=n.sibling,n=gi(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function Ec(e,t){return t=Dc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Dc(e,t){return e=mi(22,e,null,t),e.lanes=0,e}function Oc(e,t,n){return Ha(t,e.child,null,n),e=Ec(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function kc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ta(e.return,t,n)}function Ac(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function jc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=L.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,j(L,o),sc(e,t,r,n),r=P?Oi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&kc(e,n,t);else if(e.tag===19)kc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&mo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ac(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&mo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ac(t,!0,n,null,a,r);break;case`together`:Ac(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Mc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ql|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ra(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=gi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=gi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Nc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&ia(e))):!0}function Pc(e,t,n){switch(t.tag){case 3:me(t,t.stateNode.containerInfo),$i(t,fa,e.memoizedState.cache),qi();break;case 27:case 5:ge(t);break;case 4:me(t,t.stateNode.containerInfo);break;case 10:$i(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,lo(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(co(t),e=Mc(e,t,n),e===null?null:e.sibling):Tc(e,t,n):(co(t),t.flags|=128,null);co(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(ra(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return jc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),j(L,L.current),r)break;return null;case 22:return t.lanes=0,dc(e,t,n,t.pendingProps);case 24:$i(t,fa,e.memoizedState.cache)}return Mc(e,t,n)}function Fc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)oc=!0;else{if(!Nc(e,n)&&!(t.flags&128))return oc=!1,Pc(e,t,n);oc=!!(e.flags&131072)}else oc=!1,P&&t.flags&1048576&&Fi(t,Oi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Na(t.elementType),t.type=e,typeof e==`function`)hi(e)?(r=Ys(e,r),t.tag=1,t=bc(null,t,e,r,n)):(t.tag=0,t=vc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===x){t.tag=11,t=cc(null,t,e,r,n);break a}else if(a===w){t.tag=14,t=lc(null,t,e,r,n);break a}}throw t=ae(e)||e,Error(i(306,t,``))}}return t;case 0:return vc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Ys(r,t.pendingProps),bc(e,t,r,a,n);case 3:a:{if(me(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Ka(e,t),$a(t,r,null,n);var s=t.memoizedState;if(r=s.cache,$i(t,fa,r),r!==o.cache&&na(t,[fa],n,!0),Qa(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=xc(e,t,r,n);break a}else if(r!==a){a=wi(Error(i(424)),t),Yi(a),t=xc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(N=cf(e.firstChild),zi=t,P=!0,Bi=null,Vi=!0,n=Ua(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(qi(),r===a){t=Mc(e,t,n);break a}sc(e,t,r,n)}t=t.child}return t;case 26:return _c(e,t),e===null?(n=kf(t.type,null,t.pendingProps,null))?t.memoizedState=n:P||(n=t.type,e=t.pendingProps,r=Bd(fe.current).createElement(n),r[ft]=t,r[pt]=e,Pd(r,n,e),Tt(r),t.stateNode=r):t.memoizedState=kf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ge(t),e===null&&P&&(r=t.stateNode=ff(t.type,t.pendingProps,fe.current),zi=t,Vi=!0,a=N,Zd(t.type)?(lf=a,N=cf(r.firstChild)):N=a),sc(e,t,t.pendingProps.children,n),_c(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&P&&((a=r=N)&&(r=tf(r,t.type,t.pendingProps,Vi),r===null?a=!1:(t.stateNode=r,zi=t,N=cf(r.firstChild),Vi=!1,a=!0)),a||Ui(t)),ge(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Ud(a,o)?r=null:s!==null&&Ud(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Eo(e,t,ko,null,null,n),Qf._currentValue=a),_c(e,t),sc(e,t,r,n),t.child;case 6:return e===null&&P&&((e=n=N)&&(n=nf(n,t.pendingProps,Vi),n===null?e=!1:(t.stateNode=n,zi=t,N=null,e=!0)),e||Ui(t)),null;case 13:return Tc(e,t,n);case 4:return me(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ha(t,null,r,n):sc(e,t,r,n),t.child;case 11:return cc(e,t,t.type,t.pendingProps,n);case 7:return sc(e,t,t.pendingProps,n),t.child;case 8:return sc(e,t,t.pendingProps.children,n),t.child;case 12:return sc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,$i(t,t.type,r.value),sc(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,aa(t),a=oa(a),r=r(a),t.flags|=1,sc(e,t,r,n),t.child;case 14:return lc(e,t,t.type,t.pendingProps,n);case 15:return uc(e,t,t.type,t.pendingProps,n);case 19:return jc(e,t,n);case 31:return gc(e,t,n);case 22:return dc(e,t,n,t.pendingProps);case 24:return aa(t),r=oa(fa),e===null?(a=wa(),a===null&&(a=U,o=pa(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Ga(t),$i(t,fa,a)):((e.lanes&n)!==0&&(Ka(e,t),$a(t,null,null,n),Qa()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,$i(t,fa,r),r!==a.cache&&na(t,[fa],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),$i(t,fa,r))),sc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Ic(e){e.flags|=4}function Lc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Tu())e.flags|=8192;else throw Pa=Aa,Oa}else e.flags&=-16777217}function Rc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Wf(t))if(Tu())e.flags|=8192;else throw Pa=Aa,Oa}function zc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:tt(),e.lanes|=t,Zl|=t)}function Bc(e,t){if(!P)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 r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function V(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Vc(e,t,n){var r=t.pendingProps;switch(Li(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return V(t),null;case 1:return V(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ea(fa),he(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ki(t)?Ic(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ji())),V(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Ic(t),o===null?(V(t),Lc(t,a,null,r,n)):(V(t),Rc(t,o))):o?o===e.memoizedState?(V(t),t.flags&=-16777217):(Ic(t),V(t),Rc(t,o)):(e=e.memoizedProps,e!==r&&Ic(t),V(t),Lc(t,a,e,r,n)),null;case 27:if(_e(t),n=fe.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ic(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return V(t),null}e=ue.current,Ki(t)?Wi(t,e):(e=ff(a,r,n),t.stateNode=e,Ic(t))}return V(t),null;case 5:if(_e(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ic(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return V(t),null}if(o=ue.current,Ki(t))Wi(t,o);else{var s=Bd(fe.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[ft]=t,o[pt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Pd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Ic(t)}}return V(t),Lc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Ic(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=fe.current,Ki(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=zi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[ft]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Md(e.nodeValue,n)),e||Ui(t,!0)}else e=Bd(e).createTextNode(r),e[ft]=t,t.stateNode=e}return V(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ki(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[ft]=t}else qi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;V(t),e=!1}else n=Ji(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(po(t),t):(po(t),null);if(t.flags&128)throw Error(i(558))}return V(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ki(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[ft]=t}else qi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;V(t),a=!1}else a=Ji(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(po(t),t):(po(t),null)}return po(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),zc(t,t.updateQueue),V(t),null);case 4:return he(),e===null&&Sd(t.stateNode.containerInfo),V(t),null;case 10:return ea(t.type),V(t),null;case 19:if(A(L),r=t.memoizedState,r===null)return V(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Bc(r,!1);else{if(J!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=mo(e),o!==null){for(t.flags|=128,Bc(r,!1),e=o.updateQueue,t.updateQueue=e,zc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)_i(n,e),n=n.sibling;return j(L,L.current&1|2),P&&Pi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Me()>ru&&(t.flags|=128,a=!0,Bc(r,!1),t.lanes=4194304)}else{if(!a)if(e=mo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,zc(t,e),Bc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!P)return V(t),null}else 2*Me()-r.renderingStartTime>ru&&n!==536870912&&(t.flags|=128,a=!0,Bc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(V(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Me(),e.sibling=null,n=L.current,j(L,a?n&1|2:n&1),P&&Pi(t,r.treeForkCount),e);case 22:case 23:return po(t),oo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(V(t),t.subtreeFlags&6&&(t.flags|=8192)):V(t),n=t.updateQueue,n!==null&&zc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&A(Ca),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ea(fa),V(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Hc(e,t){switch(Li(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ea(fa),he(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return _e(t),null;case 31:if(t.memoizedState!==null){if(po(t),t.alternate===null)throw Error(i(340));qi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(po(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));qi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return A(L),null;case 4:return he(),null;case 10:return ea(t.type),null;case 22:case 23:return po(t),oo(),e!==null&&A(Ca),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ea(fa),null;case 25:return null;default:return null}}function Uc(e,t){switch(Li(t),t.tag){case 3:ea(fa),he();break;case 26:case 27:case 5:_e(t);break;case 4:he();break;case 31:t.memoizedState!==null&&po(t);break;case 13:po(t);break;case 19:A(L);break;case 10:ea(t.type);break;case 22:case 23:po(t),oo(),e!==null&&A(Ca);break;case 24:ea(fa)}}function Wc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Z(t,t.return,e)}}function Gc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Z(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Z(t,t.return,e)}}function Kc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{to(t,n)}catch(t){Z(e,e.return,t)}}}function qc(e,t,n){n.props=Ys(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Z(e,t,n)}}function Jc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Z(e,t,n)}}function Yc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Z(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Z(e,t,n)}else n.current=null}function Xc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Z(e,e.return,t)}}function Zc(e,t,n){try{var r=e.stateNode;Fd(r,e.type,n,t),r[pt]=t}catch(t){Z(e,e.return,t)}}function Qc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zd(e.type)||e.tag===4}function $c(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Qc(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&&Zd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function el(e,t,n){var r=e.tag;if(r===5||r===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=on));else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(el(e,t,n),e=e.sibling;e!==null;)el(e,t,n),e=e.sibling}function tl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(tl(e,t,n),e=e.sibling;e!==null;)tl(e,t,n),e=e.sibling}function nl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Pd(t,r,n),t[ft]=e,t[pt]=n}catch(t){Z(e,e.return,t)}}var rl=!1,il=!1,al=!1,ol=typeof WeakSet==`function`?WeakSet:Set,sl=null;function cl(e,t){if(e=e.containerInfo,Rd=sp,e=Nr(e),Pr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(zd={focusedElem:e,selectionRange:n},sp=!1,sl=t;sl!==null;)if(t=sl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,sl=e;else for(;sl!==null;){switch(t=sl,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Ys(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Z(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)ef(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:ef(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,sl=e;break}sl=t.return}}function ll(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:wl(e,n),r&4&&Wc(5,n);break;case 1:if(wl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Z(n,n.return,e)}else{var i=Ys(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Z(n,n.return,e)}}r&64&&Kc(n),r&512&&Jc(n,n.return);break;case 3:if(wl(e,n),r&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{to(e,t)}catch(e){Z(n,n.return,e)}}break;case 27:t===null&&r&4&&nl(n);case 26:case 5:wl(e,n),t===null&&r&4&&Xc(n),r&512&&Jc(n,n.return);break;case 12:wl(e,n);break;case 31:wl(e,n),r&4&&hl(e,n);break;case 13:wl(e,n),r&4&&gl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Ju.bind(null,n),sf(e,n))));break;case 22:if(r=n.memoizedState!==null||rl,!r){t=t!==null&&t.memoizedState!==null||il,i=rl;var a=il;rl=r,(il=t)&&!a?El(e,n,(n.subtreeFlags&8772)!=0):wl(e,n),rl=i,il=a}break;case 30:break;default:wl(e,n)}}function ul(e){var t=e.alternate;t!==null&&(e.alternate=null,ul(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&bt(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 dl=null,fl=!1;function pl(e,t,n){for(n=n.child;n!==null;)ml(e,t,n),n=n.sibling}function ml(e,t,n){if(He&&typeof He.onCommitFiberUnmount==`function`)try{He.onCommitFiberUnmount(Ve,n)}catch{}switch(n.tag){case 26:il||Yc(n,t),pl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:il||Yc(n,t);var r=dl,i=fl;Zd(n.type)&&(dl=n.stateNode,fl=!1),pl(e,t,n),pf(n.stateNode),dl=r,fl=i;break;case 5:il||Yc(n,t);case 6:if(r=dl,i=fl,dl=null,pl(e,t,n),dl=r,fl=i,dl!==null)if(fl)try{(dl.nodeType===9?dl.body:dl.nodeName===`HTML`?dl.ownerDocument.body:dl).removeChild(n.stateNode)}catch(e){Z(n,t,e)}else try{dl.removeChild(n.stateNode)}catch(e){Z(n,t,e)}break;case 18:dl!==null&&(fl?(e=dl,Qd(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Np(e)):Qd(dl,n.stateNode));break;case 4:r=dl,i=fl,dl=n.stateNode.containerInfo,fl=!0,pl(e,t,n),dl=r,fl=i;break;case 0:case 11:case 14:case 15:Gc(2,n,t),il||Gc(4,n,t),pl(e,t,n);break;case 1:il||(Yc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&qc(n,t,r)),pl(e,t,n);break;case 21:pl(e,t,n);break;case 22:il=(r=il)||n.memoizedState!==null,pl(e,t,n),il=r;break;default:pl(e,t,n)}}function hl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Np(e)}catch(e){Z(t,t.return,e)}}}function gl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Np(e)}catch(e){Z(t,t.return,e)}}function _l(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ol),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ol),t;default:throw Error(i(435,e.tag))}}function vl(e,t){var n=_l(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Yu.bind(null,e,t);t.then(r,r)}})}function yl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(Zd(c.type)){dl=c.stateNode,fl=!1;break a}break;case 5:dl=c.stateNode,fl=!1;break a;case 3:case 4:dl=c.stateNode.containerInfo,fl=!0;break a}c=c.return}if(dl===null)throw Error(i(160));ml(o,s,a),dl=null,fl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)xl(t,e),t=t.sibling}var bl=null;function xl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:yl(t,e),Sl(e),r&4&&(Gc(3,e,e.return),Wc(3,e),Gc(5,e,e.return));break;case 1:yl(t,e),Sl(e),r&512&&(il||n===null||Yc(n,n.return)),r&64&&rl&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=bl;if(yl(t,e),Sl(e),r&512&&(il||n===null||Yc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[yt]||o[ft]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Pd(o,r,n),o[ft]=e,Tt(o),r=o;break a;case`link`:var s=Vf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Pd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Vf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Pd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[ft]=e,Tt(o),r=o}e.stateNode=r}else Hf(a,e.type,e.stateNode);else e.stateNode=If(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&Zc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Hf(a,e.type,e.stateNode):If(a,r,e.memoizedProps))}break;case 27:yl(t,e),Sl(e),r&512&&(il||n===null||Yc(n,n.return)),n!==null&&r&4&&Zc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(yl(t,e),Sl(e),r&512&&(il||n===null||Yc(n,n.return)),e.flags&32){a=e.stateNode;try{Zt(a,``)}catch(t){Z(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Zc(e,a,n===null?a:n.memoizedProps)),r&1024&&(al=!0);break;case 6:if(yl(t,e),Sl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Z(e,e.return,t)}}break;case 3:if(Bf=null,a=bl,bl=gf(t.containerInfo),yl(t,e),bl=a,Sl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Np(t.containerInfo)}catch(t){Z(e,e.return,t)}al&&(al=!1,Cl(e));break;case 4:r=bl,bl=gf(e.stateNode.containerInfo),yl(t,e),Sl(e),bl=r;break;case 12:yl(t,e),Sl(e);break;case 31:yl(t,e),Sl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,vl(e,r)));break;case 13:yl(t,e),Sl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(tu=Me()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,vl(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=rl,d=il;if(rl=u||a,il=d||l,yl(t,e),il=d,rl=u,Sl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||rl||il||Tl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Z(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Z(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?$d(m,!0):$d(l.stateNode,!1)}catch(e){Z(l,l.return,e)}}}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 a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,vl(e,n))));break;case 19:yl(t,e),Sl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,vl(e,r)));break;case 30:break;case 21:break;default:yl(t,e),Sl(e)}}function Sl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Qc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;tl(e,$c(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Zt(o,``),n.flags&=-33),tl(e,$c(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;el(e,$c(e),s);break;default:throw Error(i(161))}}catch(t){Z(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Cl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Cl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function wl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ll(e,t.alternate,t),t=t.sibling}function Tl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Gc(4,t,t.return),Tl(t);break;case 1:Yc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&qc(t,t.return,n),Tl(t);break;case 27:pf(t.stateNode);case 26:case 5:Yc(t,t.return),Tl(t);break;case 22:t.memoizedState===null&&Tl(t);break;case 30:Tl(t);break;default:Tl(t)}e=e.sibling}}function El(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:El(i,a,n),Wc(4,a);break;case 1:if(El(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Z(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)eo(c[i],s)}catch(e){Z(r,r.return,e)}}n&&o&64&&Kc(a),Jc(a,a.return);break;case 27:nl(a);case 26:case 5:El(i,a,n),n&&r===null&&o&4&&Xc(a),Jc(a,a.return);break;case 12:El(i,a,n);break;case 31:El(i,a,n),n&&o&4&&hl(i,a);break;case 13:El(i,a,n),n&&o&4&&gl(i,a);break;case 22:a.memoizedState===null&&El(i,a,n),Jc(a,a.return);break;case 30:break;default:El(i,a,n)}t=t.sibling}}function Dl(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&&ma(n))}function Ol(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ma(e))}function kl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Al(e,t,n,r),t=t.sibling}function Al(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:kl(e,t,n,r),i&2048&&Wc(9,t);break;case 1:kl(e,t,n,r);break;case 3:kl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ma(e)));break;case 12:if(i&2048){kl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Z(t,t.return,e)}}else kl(e,t,n,r);break;case 31:kl(e,t,n,r);break;case 13:kl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?kl(e,t,n,r):(a._visibility|=2,jl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?kl(e,t,n,r):Ml(e,t),i&2048&&Dl(o,t);break;case 24:kl(e,t,n,r),i&2048&&Ol(t.alternate,t);break;default:kl(e,t,n,r)}}function jl(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:jl(a,o,s,c,i),Wc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,jl(a,o,s,c,i)):u._visibility&2?jl(a,o,s,c,i):Ml(a,o),i&&l&2048&&Dl(o.alternate,o);break;case 24:jl(a,o,s,c,i),i&&l&2048&&Ol(o.alternate,o);break;default:jl(a,o,s,c,i)}t=t.sibling}}function Ml(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Ml(n,r),i&2048&&Dl(r.alternate,r);break;case 24:Ml(n,r),i&2048&&Ol(r.alternate,r);break;default:Ml(n,r)}t=t.sibling}}var Nl=8192;function Pl(e,t,n){if(e.subtreeFlags&Nl)for(e=e.child;e!==null;)Fl(e,t,n),e=e.sibling}function Fl(e,t,n){switch(e.tag){case 26:Pl(e,t,n),e.flags&Nl&&e.memoizedState!==null&&Gf(n,bl,e.memoizedState,e.memoizedProps);break;case 5:Pl(e,t,n);break;case 3:case 4:var r=bl;bl=gf(e.stateNode.containerInfo),Pl(e,t,n),bl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Nl,Nl=16777216,Pl(e,t,n),Nl=r):Pl(e,t,n));break;default:Pl(e,t,n)}}function Il(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 Ll(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];sl=r,Bl(r,e)}Il(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Rl(e),e=e.sibling}function Rl(e){switch(e.tag){case 0:case 11:case 15:Ll(e),e.flags&2048&&Gc(9,e,e.return);break;case 3:Ll(e);break;case 12:Ll(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,zl(e)):Ll(e);break;default:Ll(e)}}function zl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];sl=r,Bl(r,e)}Il(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Gc(8,t,t.return),zl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,zl(t));break;default:zl(t)}e=e.sibling}}function Bl(e,t){for(;sl!==null;){var n=sl;switch(n.tag){case 0:case 11:case 15:Gc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:ma(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,sl=r;else a:for(n=e;sl!==null;){r=sl;var i=r.sibling,a=r.return;if(ul(r),r===n){sl=null;break a}if(i!==null){i.return=a,sl=i;break a}sl=a}}}var Vl={getCacheForType:function(e){var t=oa(fa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return oa(fa).controller.signal}},Hl=typeof WeakMap==`function`?WeakMap:Map,H=0,U=null,W=null,G=0,K=0,q=null,Ul=!1,Wl=!1,Gl=!1,Kl=0,J=0,ql=0,Jl=0,Yl=0,Xl=0,Zl=0,Ql=null,$l=null,eu=!1,tu=0,nu=0,ru=1/0,iu=null,au=null,ou=0,su=null,cu=null,lu=0,uu=0,du=null,fu=null,pu=0,mu=null;function hu(){return H&2&&G!==0?G&-G:D.T===null?lt():dd()}function gu(){if(Xl===0)if(!(G&536870912)||P){var e=Ye;Ye<<=1,!(Ye&3932160)&&(Ye=262144),Xl=e}else Xl=536870912;return e=I.current,e!==null&&(e.flags|=32),Xl}function Y(e,t,n){(e===U&&(K===2||K===9)||e.cancelPendingCommit!==null)&&(Cu(e,0),bu(e,G,Xl,!1)),rt(e,n),(!(H&2)||e!==U)&&(e===U&&(!(H&2)&&(Jl|=n),J===4&&bu(e,G,Xl,!1)),rd(e))}function _u(e,t,n){if(H&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||$e(e,t),a=r?ju(e,t):ku(e,t,!0),o=r;do{if(a===0){Wl&&!r&&bu(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!yu(n)){a=ku(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=Ql;var l=c.current.memoizedState.isDehydrated;if(l&&(Cu(c,s).flags|=256),s=ku(c,s,!1),s!==2){if(Gl&&!l){c.errorRecoveryDisabledLanes|=o,Jl|=o,a=4;break a}o=$l,$l=a,o!==null&&($l===null?$l=o:$l.push.apply($l,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Cu(e,0),bu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:bu(r,t,Xl,!Ul);break a;case 2:$l=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=tu+300-Me(),10<a)){if(bu(r,t,Xl,!Ul),Qe(r,0,!0)!==0)break a;lu=t,r.timeoutHandle=Kd(vu.bind(null,r,n,$l,iu,eu,t,Xl,Jl,Zl,Ul,o,`Throttled`,-0,0),a);break a}vu(r,n,$l,iu,eu,t,Xl,Jl,Zl,Ul,o,null,-0,0)}}break}while(1);rd(e)}function vu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:on},Fl(t,a,d);var m=(a&62914560)===a?tu-Me():(a&4194048)===a?nu-Me():0;if(m=qf(d,m),m!==null){lu=a,e.cancelPendingCommit=m(Ru.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),bu(e,a,o,!l);return}}Ru(e,t,a,n,r,i,o,s,c)}function yu(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 r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Or(a(),i))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 bu(e,t,n,r){t&=~Yl,t&=~Jl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-We(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&M(e,n,t)}function xu(){return H&6?!0:(id(0,!1),!1)}function Su(){if(W!==null){if(K===0)var e=W.return;else e=W,Qi=Zi=null,Mo(e),La=null,Ra=0,e=W;for(;e!==null;)Uc(e.alternate,e),e=e.return;W=null}}function Cu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,qd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),lu=0,Su(),U=e,W=n=gi(e.current,null),G=t,K=0,q=null,Ul=!1,Wl=$e(e,t),Gl=!1,Zl=Xl=Yl=Jl=ql=J=0,$l=Ql=null,eu=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-We(r),a=1<<i;t|=e[i],r&=~a}return Kl=t,oi(),n}function wu(e,t){R=null,D.H=Vs,t===Da||t===ka?(t=Fa(),K=3):t===Oa?(t=Fa(),K=4):K=t===ac?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,q=t,W===null&&(J=1,$s(e,wi(t,e.current)))}function Tu(){var e=I.current;return e===null?!0:(G&4194048)===G?so===null:(G&62914560)===G||G&536870912?e===so:!1}function Eu(){var e=D.H;return D.H=Vs,e===null?Vs:e}function Du(){var e=D.A;return D.A=Vl,e}function Ou(){J=4,Ul||(G&4194048)!==G&&I.current!==null||(Wl=!0),!(ql&134217727)&&!(Jl&134217727)||U===null||bu(U,G,Xl,!1)}function ku(e,t,n){var r=H;H|=2;var i=Eu(),a=Du();(U!==e||G!==t)&&(iu=null,Cu(e,t)),t=!1;var o=J;a:do try{if(K!==0&&W!==null){var s=W,c=q;switch(K){case 8:Su(),o=6;break a;case 3:case 2:case 9:case 6:I.current===null&&(t=!0);var l=K;if(K=0,q=null,Fu(e,s,c,l),n&&Wl){o=0;break a}break;default:l=K,K=0,q=null,Fu(e,s,c,l)}}Au(),o=J;break}catch(t){wu(e,t)}while(1);return t&&e.shellSuspendCounter++,Qi=Zi=null,H=r,D.H=i,D.A=a,W===null&&(U=null,G=0,oi()),o}function Au(){for(;W!==null;)Nu(W)}function ju(e,t){var n=H;H|=2;var r=Eu(),a=Du();U!==e||G!==t?(iu=null,ru=Me()+500,Cu(e,t)):Wl=$e(e,t);a:do try{if(K!==0&&W!==null){t=W;var o=q;b:switch(K){case 1:K=0,q=null,Fu(e,t,o,1);break;case 2:case 9:if(ja(o)){K=0,q=null,Pu(t);break}t=function(){K!==2&&K!==9||U!==e||(K=7),rd(e)},o.then(t,t);break a;case 3:K=7;break a;case 4:K=5;break a;case 7:ja(o)?(K=0,q=null,Pu(t)):(K=0,q=null,Fu(e,t,o,7));break;case 5:var s=null;switch(W.tag){case 26:s=W.memoizedState;case 5:case 27:var c=W;if(s?Wf(s):c.stateNode.complete){K=0,q=null;var l=c.sibling;if(l!==null)W=l;else{var u=c.return;u===null?W=null:(W=u,Iu(u))}break b}}K=0,q=null,Fu(e,t,o,5);break;case 6:K=0,q=null,Fu(e,t,o,6);break;case 8:Su(),J=6;break a;default:throw Error(i(462))}}Mu();break}catch(t){wu(e,t)}while(1);return Qi=Zi=null,D.H=r,D.A=a,H=n,W===null?(U=null,G=0,oi(),J):0}function Mu(){for(;W!==null&&!Ae();)Nu(W)}function Nu(e){var t=Fc(e.alternate,e,Kl);e.memoizedProps=e.pendingProps,t===null?Iu(e):W=t}function Pu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=yc(n,t,t.pendingProps,t.type,void 0,G);break;case 11:t=yc(n,t,t.pendingProps,t.type.render,t.ref,G);break;case 5:Mo(t);default:Uc(n,t),t=W=_i(t,Kl),t=Fc(n,t,Kl)}e.memoizedProps=e.pendingProps,t===null?Iu(e):W=t}function Fu(e,t,n,r){Qi=Zi=null,Mo(t),La=null,Ra=0;var i=t.return;try{if(ic(e,i,t,n,G)){J=1,$s(e,wi(n,e.current)),W=null;return}}catch(t){if(i!==null)throw W=i,t;J=1,$s(e,wi(n,e.current)),W=null;return}t.flags&32768?(P||r===1?e=!0:Wl||G&536870912?e=!1:(Ul=e=!0,(r===2||r===9||r===3||r===6)&&(r=I.current,r!==null&&r.tag===13&&(r.flags|=16384))),Lu(t,e)):Iu(t)}function Iu(e){var t=e;do{if(t.flags&32768){Lu(t,Ul);return}e=t.return;var n=Vc(t.alternate,t,Kl);if(n!==null){W=n;return}if(t=t.sibling,t!==null){W=t;return}W=t=e}while(t!==null);J===0&&(J=5)}function Lu(e,t){do{var n=Hc(e.alternate,e);if(n!==null){n.flags&=32767,W=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){W=e;return}W=e=n}while(e!==null);J=6,W=null}function Ru(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Uu();while(ou!==0);if(H&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=ai,it(e,n,o,s,c,l),e===U&&(W=U=null,G=0),cu=t,su=e,lu=n,uu=o,du=a,fu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Xu(Ie,function(){return X(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=D.T,D.T=null,a=O.p,O.p=2,s=H,H|=4;try{cl(e,t,n)}finally{H=s,O.p=a,D.T=r}}ou=1,zu(),Bu(),Vu()}}function zu(){if(ou===1){ou=0;var e=su,t=cu,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=D.T,D.T=null;var r=O.p;O.p=2;var i=H;H|=4;try{xl(t,e);var a=zd,o=Nr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Mr(s.ownerDocument.documentElement,s)){if(c!==null&&Pr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=jr(s,h),v=jr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}sp=!!Rd,zd=Rd=null}finally{H=i,O.p=r,D.T=n}}e.current=t,ou=2}}function Bu(){if(ou===2){ou=0;var e=su,t=cu,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=D.T,D.T=null;var r=O.p;O.p=2;var i=H;H|=4;try{ll(e,t.alternate,t)}finally{H=i,O.p=r,D.T=n}}ou=3}}function Vu(){if(ou===4||ou===3){ou=0,je();var e=su,t=cu,n=lu,r=fu;t.subtreeFlags&10256||t.flags&10256?ou=5:(ou=0,cu=su=null,Hu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(au=null),ct(n),t=t.stateNode,He&&typeof He.onCommitFiberRoot==`function`)try{He.onCommitFiberRoot(Ve,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=D.T,i=O.p,O.p=2,D.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{D.T=t,O.p=i}}lu&3&&Uu(),rd(e),i=e.pendingLanes,n&261930&&i&42?e===mu?pu++:(pu=0,mu=e):pu=0,id(0,!1)}}function Hu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ma(t)))}function Uu(){return zu(),Bu(),Vu(),X()}function X(){if(ou!==5)return!1;var e=su,t=uu;uu=0;var n=ct(lu),r=D.T,a=O.p;try{O.p=32>n?32:n,D.T=null,n=du,du=null;var o=su,s=lu;if(ou=0,cu=su=null,lu=0,H&6)throw Error(i(331));var c=H;if(H|=4,Rl(o.current),Al(o,o.current,s,n),H=c,id(0,!1),He&&typeof He.onPostCommitFiberRoot==`function`)try{He.onPostCommitFiberRoot(Ve,o)}catch{}return!0}finally{O.p=a,D.T=r,Hu(e,t)}}function Wu(e,t,n){t=wi(n,t),t=tc(e.stateNode,t,2),e=Ja(e,t,2),e!==null&&(rt(e,2),rd(e))}function Z(e,t,n){if(e.tag===3)Wu(e,e,n);else for(;t!==null;){if(t.tag===3){Wu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(au===null||!au.has(r))){e=wi(n,e),n=nc(2),r=Ja(t,n,2),r!==null&&(rc(n,r,t,e),rt(r,2),rd(r));break}}t=t.return}}function Gu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Hl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Gl=!0,i.add(n),e=Ku.bind(null,e,t,n),t.then(e,e))}function Ku(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,U===e&&(G&n)===n&&(J===4||J===3&&(G&62914560)===G&&300>Me()-tu?!(H&2)&&Cu(e,0):Yl|=n,Zl===G&&(Zl=0)),rd(e)}function qu(e,t){t===0&&(t=tt()),e=li(e,t),e!==null&&(rt(e,t),rd(e))}function Ju(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qu(e,n)}function Yu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),qu(e,n)}function Xu(e,t){return Oe(e,t)}var Zu=null,Qu=null,$u=!1,ed=!1,td=!1,nd=0;function rd(e){e!==Qu&&e.next===null&&(Qu===null?Zu=Qu=e:Qu=Qu.next=e),ed=!0,$u||($u=!0,ud())}function id(e,t){if(!td&&ed){td=!0;do for(var n=!1,r=Zu;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-We(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ld(r,a))}else a=G,a=Qe(r,r===U?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||$e(r,a)||(n=!0,ld(r,a));r=r.next}while(n);td=!1}}function ad(){od()}function od(){ed=$u=!1;var e=0;nd!==0&&Gd()&&(e=nd);for(var t=Me(),n=null,r=Zu;r!==null;){var i=r.next,a=sd(r,t);a===0?(r.next=null,n===null?Zu=i:n.next=i,i===null&&(Qu=n)):(n=r,(e!==0||a&3)&&(ed=!0)),r=i}ou!==0&&ou!==5||id(e,!1),nd!==0&&(nd=0)}function sd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-We(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=et(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=U,n=G,n=Qe(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(K===2||K===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&ke(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||$e(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&ke(r),ct(n)){case 2:case 8:n=Fe;break;case 32:n=Ie;break;case 268435456:n=Re;break;default:n=Ie}return r=cd.bind(null,e),n=Oe(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&ke(r),e.callbackPriority=2,e.callbackNode=null,2}function cd(e,t){if(ou!==0&&ou!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Uu()&&e.callbackNode!==n)return null;var r=G;return r=Qe(e,e===U?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(_u(e,r,t),sd(e,Me()),e.callbackNode!=null&&e.callbackNode===n?cd.bind(null,e):null)}function ld(e,t){if(Uu())return null;_u(e,t,!0)}function ud(){Yd(function(){H&6?Oe(Pe,ad):od()})}function dd(){if(nd===0){var e=_a;e===0&&(e=Je,Je<<=1,!(Je&261888)&&(Je=256)),nd=e}return nd}function fd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:an(``+e)}function pd(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 md(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=fd((i[pt]||null).action),o=r.submitter;o&&(t=(t=o[pt]||null)?fd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Dn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(nd!==0){var e=o?pd(i,o):new FormData(i);Ds(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?pd(i,o):new FormData(i),Ds(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var hd=0;hd<ei.length;hd++){var gd=ei[hd];ti(gd.toLowerCase(),`on`+(gd[0].toUpperCase()+gd.slice(1)))}ti(Kr,`onAnimationEnd`),ti(qr,`onAnimationIteration`),ti(Jr,`onAnimationStart`),ti(`dblclick`,`onDoubleClick`),ti(`focusin`,`onFocus`),ti(`focusout`,`onBlur`),ti(Yr,`onTransitionRun`),ti(Xr,`onTransitionStart`),ti(Zr,`onTransitionCancel`),ti(Qr,`onTransitionEnd`),kt(`onMouseEnter`,[`mouseout`,`mouseover`]),kt(`onMouseLeave`,[`mouseout`,`mouseover`]),kt(`onPointerEnter`,[`pointerout`,`pointerover`]),kt(`onPointerLeave`,[`pointerout`,`pointerover`]),Ot(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Ot(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Ot(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Ot(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Ot(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Ot(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var _d=`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(` `),vd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(_d));function yd(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){ni(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){ni(e)}i.currentTarget=null,a=c}}}}function Q(e,t){var n=t[ht];n===void 0&&(n=t[ht]=new Set);var r=e+`__bubble`;n.has(r)||(Cd(t,e,2,!1),n.add(r))}function bd(e,t,n){var r=0;t&&(r|=4),Cd(n,e,r,t)}var xd=`_reactListening`+Math.random().toString(36).slice(2);function Sd(e){if(!e[xd]){e[xd]=!0,Et.forEach(function(t){t!==`selectionchange`&&(vd.has(t)||bd(t,!1,e),bd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xd]||(t[xd]=!0,bd(`selectionchange`,!1,t))}}function Cd(e,t,n,r){switch(mp(t)){case 2:var i=cp;break;case 8:i=lp;break;default:i=up}n=i.bind(null,t,n,e),i=void 0,!gn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function wd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=xt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}pn(function(){var r=a,i=cn(n),s=[];a:{var c=$r.get(e);if(c!==void 0){var l=Dn,u=e;switch(e){case`keypress`:if(Sn(n)===0)break a;case`keydown`:case`keyup`:l=Gn;break;case`focusin`:u=`focus`,l=In;break;case`focusout`:u=`blur`,l=In;break;case`beforeblur`:case`afterblur`:l=In;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Pn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Fn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=qn;break;case Kr:case qr:case Jr:l=Ln;break;case Qr:l=Jn;break;case`scroll`:case`scrollend`:l=kn;break;case`wheel`:l=Yn;break;case`copy`:case`cut`:case`paste`:l=Rn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Kn;break;case`toggle`:case`beforetoggle`:l=Xn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=mn(m,p),g!=null&&d.push(Td(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==sn&&(u=n.relatedTarget||n.fromElement)&&(xt(u)||u[mt]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?xt(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=Pn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Kn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:Ct(l),h=u==null?c:Ct(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,xt(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Dd,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Od(s,c,l,d,!1),u!==null&&f!==null&&Od(s,f,u,d,!0)}}a:{if(c=r?Ct(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=gr;else if(ur(c))if(_r)v=Er;else{v=wr;var y=Cr}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&tn(r.elementType)&&(v=gr):v=Tr;if(v&&=v(e,r)){dr(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&qt(c,`number`,c.value)}switch(y=r?Ct(r):window,e){case`focusin`:(ur(y)||y.contentEditable===`true`)&&(Ir=y,Lr=r,Rr=null);break;case`focusout`:Rr=Lr=Ir=null;break;case`mousedown`:zr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:zr=!1,Br(s,n,i);break;case`selectionchange`:if(Fr)break;case`keydown`:case`keyup`:Br(s,n,i)}var b;if(Qn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else or?ir(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(tr&&n.locale!==`ko`&&(or||x!==`onCompositionStart`?x===`onCompositionEnd`&&or&&(b=xn()):(vn=i,yn=`value`in vn?vn.value:vn.textContent,or=!0)),y=Ed(r,x),0<y.length&&(x=new zn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=ar(n),b!==null&&(x.data=b)))),(b=er?sr(e,n):cr(e,n))&&(x=Ed(r,`onBeforeInput`),0<x.length&&(y=new zn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),md(s,e,r,n,i)}yd(s,t)})}function Td(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ed(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=mn(e,n),i!=null&&r.unshift(Td(e,i,a)),i=mn(e,t),i!=null&&r.push(Td(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Dd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Od(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=mn(n,a),l!=null&&o.unshift(Td(n,l,c))):i||(l=mn(n,a),l!=null&&o.push(Td(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var kd=/\r\n?/g,Ad=/\u0000|\uFFFD/g;function jd(e){return(typeof e==`string`?e:``+e).replace(kd,`
10
+ `).replace(Ad,``)}function Md(e,t){return t=jd(t),jd(e)===t}function $(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Zt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Zt(e,``+r);break;case`className`:Ft(e,`class`,r);break;case`tabIndex`:Ft(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Ft(e,n,r);break;case`style`:en(e,r,o);break;case`data`:if(t!==`object`){Ft(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=an(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`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 o==`function`&&(n===`formAction`?(t!==`input`&&$(e,t,`name`,a.name,a,null),$(e,t,`formEncType`,a.formEncType,a,null),$(e,t,`formMethod`,a.formMethod,a,null),$(e,t,`formTarget`,a.formTarget,a,null)):($(e,t,`encType`,a.encType,a,null),$(e,t,`method`,a.method,a,null),$(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=an(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=on);break;case`onScroll`:r!=null&&Q(`scroll`,e);break;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=an(``+r),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`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):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`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Q(`beforetoggle`,e),Q(`toggle`,e),Pt(e,`popover`,r);break;case`xlinkActuate`:It(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:It(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:It(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:It(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:It(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:It(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:It(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:It(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:It(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Pt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=nn.get(n)||n,Pt(e,n,r))}}function Nd(e,t,n,r,a,o){switch(n){case`style`:en(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Zt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Zt(e,``+r);break;case`onScroll`:r!=null&&Q(`scroll`,e);break;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=on);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!Dt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[pt]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Pt(e,n,r)}}}function Pd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Q(`error`,e),Q(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:$(e,t,o,s,n,null)}}a&&$(e,t,`srcSet`,n.srcSet,n,null),r&&$(e,t,`src`,n.src,n,null);return;case`input`:Q(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:$(e,t,r,d,n,null)}}Kt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Q(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:$(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Jt(e,!!r,n,!0):Jt(e,!!r,t,!1);return;case`textarea`:for(s in Q(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:$(e,t,s,c,n,null)}Xt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:$(e,t,l,r,n,null)}return;case`dialog`:Q(`beforetoggle`,e),Q(`toggle`,e),Q(`cancel`,e),Q(`close`,e);break;case`iframe`:case`object`:Q(`load`,e);break;case`video`:case`audio`:for(r=0;r<_d.length;r++)Q(_d[r],e);break;case`image`:Q(`error`,e),Q(`load`,e);break;case`details`:Q(`toggle`,e);break;case`embed`:case`source`:case`link`:Q(`error`,e),Q(`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(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:$(e,t,u,r,n,null)}return;default:if(tn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Nd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&$(e,t,c,r,n,null))}function Fd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||$(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&$(e,t,p,m,r,f)}}Gt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||$(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&$(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Jt(e,!!n,n?[]:``,!1):Jt(e,!!n,t,!0)):Jt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:$(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&$(e,t,s,a,r,o)}Yt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:$(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:$(e,t,l,p,r,m)}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 g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&$(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:$(e,t,u,p,r,m)}return;default:if(tn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Nd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Nd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&$(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||$(e,t,f,p,r,m)}function Id(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Ld(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Id(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Id(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.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 Rd=null,zd=null;function Bd(e){return e.nodeType===9?e:e.ownerDocument}function Vd(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 Hd(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 Ud(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 Wd=null;function Gd(){var e=window.event;return e&&e.type===`popstate`?e===Wd?!1:(Wd=e,!0):(Wd=null,!1)}var Kd=typeof setTimeout==`function`?setTimeout:void 0,qd=typeof clearTimeout==`function`?clearTimeout:void 0,Jd=typeof Promise==`function`?Promise:void 0,Yd=typeof queueMicrotask==`function`?queueMicrotask:Jd===void 0?Kd:function(e){return Jd.resolve(null).then(e).catch(Xd)};function Xd(e){setTimeout(function(){throw e})}function Zd(e){return e===`head`}function Qd(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Np(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)pf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,pf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[yt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&pf(e.ownerDocument.body);n=i}while(n);Np(t)}function $d(e,t){var n=e;e=0;do{var r=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||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function ef(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`:ef(n),bt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function tf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[yt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=cf(e.nextSibling),e===null)break}return null}function nf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=cf(e.nextSibling),e===null))return null;return e}function rf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=cf(e.nextSibling),e===null))return null;return e}function af(e){return e.data===`$?`||e.data===`$~`}function of(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function sf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function cf(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 lf=null;function uf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return cf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function df(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 ff(e,t,n){switch(t=Bd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function pf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);bt(e)}var mf=new Map,hf=new Set;function gf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var _f=O.d;O.d={f:vf,r:yf,D:Sf,C:Cf,L:wf,m:Tf,X:Df,S:Ef,M:Of};function vf(){var e=_f.f(),t=xu();return e||t}function yf(e){var t=St(e);t!==null&&t.tag===5&&t.type===`form`?ks(t):_f.r(e)}var bf=typeof document>`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=Wt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),hf.has(i)||(hf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Pd(t,`link`,e),Tt(t),r.head.appendChild(t)))}}function Sf(e){_f.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){_f.C(e,t),xf(`preconnect`,e,t)}function wf(e,t,n){_f.L(e,t,n);var r=bf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Wt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Wt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Wt(n.imageSizes)+`"]`)):i+=`[href="`+Wt(e)+`"]`;var a=i;switch(t){case`style`:a=Af(e);break;case`script`:a=Pf(e)}mf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),mf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jf(a))||t===`script`&&r.querySelector(Ff(a))||(t=r.createElement(`link`),Pd(t,`link`,e),Tt(t),r.head.appendChild(t)))}}function Tf(e,t){_f.m(e,t);var n=bf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Wt(r)+`"][href="`+Wt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Pf(e)}if(!mf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),mf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ff(a)))return}r=n.createElement(`link`),Pd(r,`link`,e),Tt(r),n.head.appendChild(r)}}}function Ef(e,t,n){_f.S(e,t,n);var r=bf;if(r&&e){var i=wt(r).hoistableStyles,a=Af(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(jf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=mf.get(a))&&Rf(e,n);var c=o=r.createElement(`link`);Tt(c),Pd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Lf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Df(e,t){_f.X(e,t);var n=bf;if(n&&e){var r=wt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=f({src:e,async:!0},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),Tt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Of(e,t){_f.M(e,t);var n=bf;if(n&&e){var r=wt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),Tt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t,n,r){var a=(a=fe.current)?gf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Af(n.href),n=wt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Af(n.href);var o=wt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(jf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),mf.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},mf.set(e,n),o||Nf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Pf(n),n=wt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Af(e){return`href="`+Wt(e)+`"`}function jf(e){return`link[rel="stylesheet"][`+e+`]`}function Mf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Nf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Pd(t,`link`,n),Tt(t),e.head.appendChild(t))}function Pf(e){return`[src="`+Wt(e)+`"]`}function Ff(e){return`script[async]`+e}function If(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Wt(n.href)+`"]`);if(r)return t.instance=r,Tt(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Tt(r),Pd(r,`style`,a),Lf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Af(n.href);var o=e.querySelector(jf(a));if(o)return t.state.loading|=4,t.instance=o,Tt(o),o;r=Mf(n),(a=mf.get(a))&&Rf(r,a),o=(e.ownerDocument||e).createElement(`link`),Tt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Pd(o,`link`,r),t.state.loading|=4,Lf(o,n.precedence,e),t.instance=o;case`script`:return o=Pf(n.src),(a=e.querySelector(Ff(o)))?(t.instance=a,Tt(a),a):(r=n,(a=mf.get(o))&&(r=f({},n),zf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Tt(a),Pd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Lf(r,n.precedence,e));return t.instance}function Lf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Rf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Bf=null;function Vf(e,t,n){if(Bf===null){var r=new Map,i=Bf=new Map;i.set(n,r)}else i=Bf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[yt]||a[ft]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Hf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Uf(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 Wf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Gf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Af(r.href),a=t.querySelector(jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Tt(a);return}a=t.ownerDocument||t,r=Mf(r),(i=mf.get(i))&&Rf(r,i),a=a.createElement(`link`),Tt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Kf===0&&(Kf=62500*Ld());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Jf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Qf={$$typeof:b,Provider:null,Consumer:null,_currentValue:se,_currentValue2:se,_threadCount:0};function $f(e,t,n,r,i,a,o,s,c){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=nt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nt(0),this.hiddenUpdates=nt(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function ep(e,t,n,r,i,a,o,s,c,l,u,d){return e=new $f(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=mi(3,null,null,t),e.current=a,a.stateNode=e,t=pa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ga(a),e}function tp(e){return e?(e=fi,e):fi}function np(e,t,n,r,i,a){i=tp(i),r.context===null?r.context=i:r.pendingContext=i,r=qa(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ja(e,r,t),n!==null&&(Y(n,e,t),Ya(n,e,t))}function rp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ip(e,t){rp(e,t),(e=e.alternate)&&rp(e,t)}function ap(e){if(e.tag===13||e.tag===31){var t=li(e,67108864);t!==null&&Y(t,e,67108864),ip(e,67108864)}}function op(e){if(e.tag===13||e.tag===31){var t=hu();t=st(t);var n=li(e,t);n!==null&&Y(n,e,t),ip(e,t)}}var sp=!0;function cp(e,t,n,r){var i=D.T;D.T=null;var a=O.p;try{O.p=2,up(e,t,n,r)}finally{O.p=a,D.T=i}}function lp(e,t,n,r){var i=D.T;D.T=null;var a=O.p;try{O.p=8,up(e,t,n,r)}finally{O.p=a,D.T=i}}function up(e,t,n,r){if(sp){var i=dp(r);if(i===null)wd(e,t,r,fp,n),Cp(e,r);else if(Tp(i,e,t,n,r))r.stopPropagation();else if(Cp(e,r),t&4&&-1<Sp.indexOf(e)){for(;i!==null;){var a=St(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ze(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-We(o);s.entanglements[1]|=c,o&=~c}rd(a),!(H&6)&&(ru=Me()+500,id(0,!1))}}break;case 31:case 13:s=li(a,2),s!==null&&Y(s,a,2),xu(),ip(a,2)}if(a=dp(r),a===null&&wd(e,t,r,fp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else wd(e,t,r,null,n)}}function dp(e){return e=cn(e),pp(e)}var fp=null;function pp(e){if(fp=null,e=xt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(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 fp=e,null}function mp(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(Ne()){case Pe:return 2;case Fe:return 8;case Ie:case Le:return 32;case Re:return 268435456;default:return 32}default:return 32}}var hp=!1,gp=null,_p=null,vp=null,yp=new Map,bp=new Map,xp=[],Sp=`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 Cp(e,t){switch(e){case`focusin`:case`focusout`:gp=null;break;case`dragenter`:case`dragleave`:_p=null;break;case`mouseover`:case`mouseout`:vp=null;break;case`pointerover`:case`pointerout`:yp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:bp.delete(t.pointerId)}}function wp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=St(t),t!==null&&ap(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Tp(e,t,n,r,i){switch(t){case`focusin`:return gp=wp(gp,e,t,n,r,i),!0;case`dragenter`:return _p=wp(_p,e,t,n,r,i),!0;case`mouseover`:return vp=wp(vp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return yp.set(a,wp(yp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,bp.set(a,wp(bp.get(a)||null,e,t,n,r,i)),!0}return!1}function Ep(e){var t=xt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,ut(e.priority,function(){op(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,ut(e.priority,function(){op(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 Dp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=dp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);sn=r,n.target.dispatchEvent(r),sn=null}else return t=St(n),t!==null&&ap(t),e.blockedOn=n,!1;t.shift()}return!0}function Op(e,t,n){Dp(e)&&n.delete(t)}function kp(){hp=!1,gp!==null&&Dp(gp)&&(gp=null),_p!==null&&Dp(_p)&&(_p=null),vp!==null&&Dp(vp)&&(vp=null),yp.forEach(Op),bp.forEach(Op)}function Ap(e,n){e.blockedOn===n&&(e.blockedOn=null,hp||(hp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,kp)))}var jp=null;function Mp(e){jp!==e&&(jp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){jp===e&&(jp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(pp(r||n)===null)continue;break}var a=St(n);a!==null&&(e.splice(t,3),t-=3,Ds(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Np(e){function t(t){return Ap(t,e)}gp!==null&&Ap(gp,e),_p!==null&&Ap(_p,e),vp!==null&&Ap(vp,e),yp.forEach(t),bp.forEach(t);for(var n=0;n<xp.length;n++){var r=xp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<xp.length&&(n=xp[0],n.blockedOn===null);)Ep(n),n.blockedOn===null&&xp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[pt]||null;if(typeof a==`function`)o||Mp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[pt]||null)s=o.formAction;else if(pp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Mp(n)}}}function Pp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Fp(e){this._internalRoot=e}Ip.prototype.render=Fp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;np(n,hu(),e,t,null,null)},Ip.prototype.unmount=Fp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;np(e.current,2,null,e,null,null),xu(),t[mt]=null}};function Ip(e){this._internalRoot=e}Ip.prototype.unstable_scheduleHydration=function(e){if(e){var t=lt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xp.length&&t!==0&&t<xp[n].priority;n++);xp.splice(n,0,e),n===0&&Ep(e)}};var Lp=n.version;if(Lp!==`19.2.7`)throw Error(i(527,Lp,`19.2.7`));O.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var Rp={bundleType:0,version:`19.2.7`,rendererPackageName:`react-dom`,currentDispatcherRef:D,reconcilerVersion:`19.2.7`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var zp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zp.isDisabled&&zp.supportsFiber)try{Ve=zp.inject(Rp),He=zp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Xs,s=Zs,c=Qs;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=ep(e,1,!1,null,null,n,r,null,o,s,c,Pp),e[mt]=t.current,Sd(e),new Fp(t)}})),Oe=b(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=De()})),ke=new Map([[`Android.devices`,{internal:!0}],[`AndroidSocket.write`,{internal:!0}],[`AndroidSocket.close`,{internal:!0}],[`AndroidDevice.wait`,{title:`Wait`}],[`AndroidDevice.fill`,{title:`Fill "{text}"`}],[`AndroidDevice.tap`,{title:`Tap`}],[`AndroidDevice.drag`,{title:`Drag`}],[`AndroidDevice.fling`,{title:`Fling`}],[`AndroidDevice.longTap`,{title:`Long tap`}],[`AndroidDevice.pinchClose`,{title:`Pinch close`}],[`AndroidDevice.pinchOpen`,{title:`Pinch open`}],[`AndroidDevice.scroll`,{title:`Scroll`}],[`AndroidDevice.swipe`,{title:`Swipe`}],[`AndroidDevice.info`,{internal:!0}],[`AndroidDevice.screenshot`,{title:`Screenshot`}],[`AndroidDevice.inputType`,{title:`Type`}],[`AndroidDevice.inputPress`,{title:`Press`}],[`AndroidDevice.inputTap`,{title:`Tap`}],[`AndroidDevice.inputSwipe`,{title:`Swipe`}],[`AndroidDevice.inputDrag`,{title:`Drag`}],[`AndroidDevice.launchBrowser`,{title:`Launch browser`}],[`AndroidDevice.open`,{title:`Open app`}],[`AndroidDevice.shell`,{title:`Execute shell command`,group:`configuration`}],[`AndroidDevice.installApk`,{title:`Install apk`}],[`AndroidDevice.push`,{title:`Push`}],[`AndroidDevice.connectToWebView`,{title:`Connect to Web View`}],[`AndroidDevice.close`,{internal:!0}],[`APIRequestContext.fetch`,{title:`{method} "{url}"`}],[`APIRequestContext.fetchResponseBody`,{title:`Get response body`,group:`getter`}],[`APIRequestContext.fetchLog`,{internal:!0}],[`APIRequestContext.storageState`,{title:`Get storage state`,group:`configuration`}],[`APIRequestContext.disposeAPIResponse`,{internal:!0}],[`APIRequestContext.dispose`,{internal:!0}],[`Artifact.pathAfterFinished`,{internal:!0}],[`Artifact.saveAs`,{internal:!0}],[`Artifact.saveAsStream`,{internal:!0}],[`Artifact.failure`,{internal:!0}],[`Artifact.stream`,{internal:!0}],[`Artifact.cancel`,{internal:!0}],[`Artifact.delete`,{internal:!0}],[`Stream.read`,{internal:!0}],[`Stream.close`,{internal:!0}],[`WritableStream.write`,{internal:!0}],[`WritableStream.close`,{internal:!0}],[`Browser.startServer`,{title:`Start server`}],[`Browser.stopServer`,{title:`Stop server`}],[`Browser.close`,{title:`Close browser`,pause:!0}],[`Browser.killForTests`,{internal:!0}],[`Browser.defaultUserAgentForTest`,{internal:!0}],[`Browser.newContext`,{title:`Create context`}],[`Browser.newContextForReuse`,{internal:!0}],[`Browser.disconnectFromReusedContext`,{internal:!0}],[`Browser.newBrowserCDPSession`,{title:`Create CDP session`,group:`configuration`}],[`Browser.startTracing`,{title:`Start browser tracing`,group:`configuration`}],[`Browser.stopTracing`,{title:`Stop browser tracing`,group:`configuration`}],[`BrowserContext.addCookies`,{title:`Add cookies`,group:`configuration`}],[`BrowserContext.addInitScript`,{title:`Add init script`,group:`configuration`}],[`BrowserContext.clearCookies`,{title:`Clear cookies`,group:`configuration`}],[`BrowserContext.clearPermissions`,{title:`Clear permissions`,group:`configuration`}],[`BrowserContext.close`,{title:`Close context`,pause:!0}],[`BrowserContext.cookies`,{title:`Get cookies`,group:`getter`}],[`BrowserContext.exposeBinding`,{title:`Expose binding`,group:`configuration`}],[`BrowserContext.grantPermissions`,{title:`Grant permissions`,group:`configuration`}],[`BrowserContext.newPage`,{title:`Create page`}],[`BrowserContext.registerSelectorEngine`,{internal:!0}],[`BrowserContext.setTestIdAttributeName`,{internal:!0}],[`BrowserContext.setExtraHTTPHeaders`,{title:`Set extra HTTP headers`,group:`configuration`}],[`BrowserContext.setGeolocation`,{title:`Set geolocation`,group:`configuration`}],[`BrowserContext.setHTTPCredentials`,{title:`Set HTTP credentials`,group:`configuration`}],[`BrowserContext.setNetworkInterceptionPatterns`,{title:`Route requests`,group:`route`}],[`BrowserContext.routeAPIRequestsFromHar`,{internal:!0}],[`BrowserContext.unrouteAPIRequestsFromHar`,{internal:!0}],[`BrowserContext.setWebSocketInterceptionPatterns`,{title:`Route WebSockets`,group:`route`}],[`BrowserContext.setOffline`,{title:`Set offline mode`}],[`BrowserContext.storageState`,{title:`Get storage state`,group:`configuration`}],[`BrowserContext.setStorageState`,{title:`Set storage state`,group:`configuration`}],[`BrowserContext.pause`,{title:`Pause`}],[`BrowserContext.enableRecorder`,{internal:!0}],[`BrowserContext.disableRecorder`,{internal:!0}],[`BrowserContext.exposeConsoleApi`,{internal:!0}],[`BrowserContext.newCDPSession`,{title:`Create CDP session`,group:`configuration`}],[`BrowserContext.createTempFiles`,{internal:!0}],[`BrowserContext.updateSubscription`,{internal:!0}],[`BrowserContext.clockFastForward`,{title:`Fast forward clock "{ticksNumber|ticksString}"`}],[`BrowserContext.clockInstall`,{title:`Install clock "{timeNumber|timeString}"`}],[`BrowserContext.clockPauseAt`,{title:`Pause clock "{timeNumber|timeString}"`}],[`BrowserContext.clockResume`,{title:`Resume clock`}],[`BrowserContext.clockRunFor`,{title:`Run clock "{ticksNumber|ticksString}"`}],[`BrowserContext.clockSetFixedTime`,{title:`Set fixed time "{timeNumber|timeString}"`}],[`BrowserContext.clockSetSystemTime`,{title:`Set system time "{timeNumber|timeString}"`}],[`BrowserContext.credentialsInstall`,{title:`Install virtual WebAuthn authenticator`,group:`configuration`}],[`BrowserContext.credentialsCreate`,{title:`Create virtual credential for "{rpId}"`,group:`configuration`}],[`BrowserContext.credentialsGet`,{title:`Get virtual credentials`,group:`configuration`}],[`BrowserContext.credentialsDelete`,{title:`Delete virtual credential`,group:`configuration`}],[`BrowserType.launch`,{title:`Launch browser`}],[`BrowserType.launchPersistentContext`,{title:`Launch persistent context`}],[`BrowserType.connectOverCDP`,{title:`Connect over CDP`}],[`BrowserType.connectToWorker`,{title:`Connect to worker`}],[`Disposable.dispose`,{internal:!0}],[`Electron.launch`,{title:`Launch electron`}],[`ElectronApplication.browserWindow`,{internal:!0}],[`ElectronApplication.evaluateExpression`,{title:`Evaluate`}],[`ElectronApplication.evaluateExpressionHandle`,{title:`Evaluate`}],[`ElectronApplication.updateSubscription`,{internal:!0}],[`Frame.evalOnSelector`,{title:`Evaluate`,snapshot:!0,pause:!0}],[`Frame.evalOnSelectorAll`,{title:`Evaluate`,snapshot:!0,pause:!0}],[`Frame.addScriptTag`,{title:`Add script tag`,snapshot:!0,pause:!0}],[`Frame.addStyleTag`,{title:`Add style tag`,snapshot:!0,pause:!0}],[`Frame.ariaSnapshot`,{title:`Aria snapshot`,group:`getter`}],[`Frame.blur`,{title:`Blur`,slowMo:!0,snapshot:!0,pause:!0}],[`Frame.check`,{title:`Check`,slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`Frame.click`,{title:`Click`,slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`Frame.content`,{title:`Get content`,snapshot:!0,pause:!0}],[`Frame.dragAndDrop`,{title:`Drag and drop`,slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`Frame.drop`,{title:`Drop files or data onto an element`,slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`Frame.dblclick`,{title:`Double click`,slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`Frame.dispatchEvent`,{title:`Dispatch "{type}"`,slowMo:!0,snapshot:!0,pause:!0}],[`Frame.evaluateExpression`,{title:`Evaluate`,snapshot:!0,pause:!0}],[`Frame.evaluateExpressionHandle`,{title:`Evaluate`,snapshot:!0,pause:!0}],[`Frame.fill`,{title:`Fill "{value}"`,slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`Frame.focus`,{title:`Focus`,slowMo:!0,snapshot:!0,pause:!0}],[`Frame.frameElement`,{title:`Get frame element`,group:`getter`}],[`Frame.resolveSelector`,{internal:!0}],[`Frame.highlight`,{internal:!0}],[`Frame.hideHighlight`,{internal:!0}],[`Frame.getAttribute`,{title:`Get attribute "{name}"`,snapshot:!0,pause:!0,group:`getter`}],[`Frame.goto`,{title:`Navigate to "{url}"`,slowMo:!0,snapshot:!0,pause:!0}],[`Frame.hover`,{title:`Hover`,slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`Frame.innerHTML`,{title:`Get HTML`,snapshot:!0,pause:!0,group:`getter`}],[`Frame.innerText`,{title:`Get inner text`,snapshot:!0,pause:!0,group:`getter`}],[`Frame.inputValue`,{title:`Get input value`,snapshot:!0,pause:!0,group:`getter`}],[`Frame.isChecked`,{title:`Is checked`,snapshot:!0,pause:!0,group:`getter`}],[`Frame.isDisabled`,{title:`Is disabled`,snapshot:!0,pause:!0,group:`getter`}],[`Frame.isEnabled`,{title:`Is enabled`,snapshot:!0,pause:!0,group:`getter`}],[`Frame.isHidden`,{title:`Is hidden`,snapshot:!0,pause:!0,group:`getter`}],[`Frame.isVisible`,{title:`Is visible`,snapshot:!0,pause:!0,group:`getter`}],[`Frame.isEditable`,{title:`Is editable`,snapshot:!0,pause:!0,group:`getter`}],[`Frame.press`,{title:`Press "{key}"`,slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`Frame.querySelector`,{title:`Query selector`,snapshot:!0}],[`Frame.querySelectorAll`,{title:`Query selector all`,snapshot:!0}],[`Frame.queryCount`,{title:`Query count`,snapshot:!0,pause:!0}],[`Frame.selectOption`,{title:`Select option`,slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`Frame.setContent`,{title:`Set content`,snapshot:!0,pause:!0}],[`Frame.setInputFiles`,{title:`Set input files`,slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`Frame.tap`,{title:`Tap`,slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`Frame.textContent`,{title:`Get text content`,snapshot:!0,pause:!0,group:`getter`}],[`Frame.title`,{title:`Get page title`,group:`getter`}],[`Frame.type`,{title:`Type "{text}"`,slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`Frame.uncheck`,{title:`Uncheck`,slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`Frame.waitForTimeout`,{title:`Wait for timeout`,snapshot:!0}],[`Frame.waitForFunction`,{title:`Wait for function`,snapshot:!0,pause:!0}],[`Frame.waitForSelector`,{title:`Wait for selector`,snapshot:!0}],[`Frame.expect`,{title:`Expect "{expression}"`,snapshot:!0,pause:!0}],[`JSHandle.dispose`,{internal:!0}],[`ElementHandle.dispose`,{internal:!0}],[`JSHandle.evaluateExpression`,{title:`Evaluate`,snapshot:!0,pause:!0}],[`ElementHandle.evaluateExpression`,{title:`Evaluate`,snapshot:!0,pause:!0}],[`JSHandle.evaluateExpressionHandle`,{title:`Evaluate`,snapshot:!0,pause:!0}],[`ElementHandle.evaluateExpressionHandle`,{title:`Evaluate`,snapshot:!0,pause:!0}],[`JSHandle.getPropertyList`,{title:`Get property list`,group:`getter`}],[`ElementHandle.getPropertyList`,{title:`Get property list`,group:`getter`}],[`JSHandle.getProperty`,{title:`Get JS property`,group:`getter`}],[`ElementHandle.getProperty`,{title:`Get JS property`,group:`getter`}],[`JSHandle.jsonValue`,{title:`Get JSON value`,group:`getter`}],[`ElementHandle.jsonValue`,{title:`Get JSON value`,group:`getter`}],[`ElementHandle.evalOnSelector`,{title:`Evaluate`,snapshot:!0,pause:!0}],[`ElementHandle.evalOnSelectorAll`,{title:`Evaluate`,snapshot:!0,pause:!0}],[`ElementHandle.boundingBox`,{title:`Get bounding box`,snapshot:!0,pause:!0}],[`ElementHandle.check`,{title:`Check`,slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`ElementHandle.click`,{title:`Click`,slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`ElementHandle.contentFrame`,{title:`Get content frame`,group:`getter`}],[`ElementHandle.dblclick`,{title:`Double click`,slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`ElementHandle.dispatchEvent`,{title:`Dispatch event`,slowMo:!0,snapshot:!0,pause:!0}],[`ElementHandle.fill`,{title:`Fill "{value}"`,slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`ElementHandle.focus`,{title:`Focus`,slowMo:!0,snapshot:!0,pause:!0}],[`ElementHandle.getAttribute`,{title:`Get attribute`,snapshot:!0,pause:!0,group:`getter`}],[`ElementHandle.hover`,{title:`Hover`,slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`ElementHandle.innerHTML`,{title:`Get HTML`,snapshot:!0,pause:!0,group:`getter`}],[`ElementHandle.innerText`,{title:`Get inner text`,snapshot:!0,pause:!0,group:`getter`}],[`ElementHandle.inputValue`,{title:`Get input value`,snapshot:!0,pause:!0,group:`getter`}],[`ElementHandle.isChecked`,{title:`Is checked`,snapshot:!0,pause:!0,group:`getter`}],[`ElementHandle.isDisabled`,{title:`Is disabled`,snapshot:!0,pause:!0,group:`getter`}],[`ElementHandle.isEditable`,{title:`Is editable`,snapshot:!0,pause:!0,group:`getter`}],[`ElementHandle.isEnabled`,{title:`Is enabled`,snapshot:!0,pause:!0,group:`getter`}],[`ElementHandle.isHidden`,{title:`Is hidden`,snapshot:!0,pause:!0,group:`getter`}],[`ElementHandle.isVisible`,{title:`Is visible`,snapshot:!0,pause:!0,group:`getter`}],[`ElementHandle.ownerFrame`,{title:`Get owner frame`,group:`getter`}],[`ElementHandle.press`,{title:`Press "{key}"`,slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`ElementHandle.querySelector`,{title:`Query selector`,snapshot:!0}],[`ElementHandle.querySelectorAll`,{title:`Query selector all`,snapshot:!0}],[`ElementHandle.screenshot`,{title:`Screenshot`,snapshot:!0,pause:!0}],[`ElementHandle.scrollIntoViewIfNeeded`,{title:`Scroll into view`,slowMo:!0,snapshot:!0,pause:!0}],[`ElementHandle.selectOption`,{title:`Select option`,slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`ElementHandle.selectText`,{title:`Select text`,slowMo:!0,snapshot:!0,pause:!0}],[`ElementHandle.setInputFiles`,{title:`Set input files`,slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`ElementHandle.tap`,{title:`Tap`,slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`ElementHandle.textContent`,{title:`Get text content`,snapshot:!0,pause:!0,group:`getter`}],[`ElementHandle.type`,{title:`Type`,slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`ElementHandle.uncheck`,{title:`Uncheck`,slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`ElementHandle.waitForElementState`,{title:`Wait for state`,snapshot:!0,pause:!0}],[`ElementHandle.waitForSelector`,{title:`Wait for selector`,snapshot:!0}],[`LocalUtils.zip`,{internal:!0}],[`LocalUtils.harOpen`,{internal:!0}],[`LocalUtils.harLookup`,{internal:!0}],[`LocalUtils.harClose`,{internal:!0}],[`LocalUtils.harUnzip`,{internal:!0}],[`LocalUtils.connect`,{internal:!0}],[`LocalUtils.tracingStarted`,{internal:!0}],[`LocalUtils.addStackToTracingNoReply`,{internal:!0}],[`LocalUtils.traceDiscarded`,{internal:!0}],[`LocalUtils.globToRegex`,{internal:!0}],[`Request.response`,{internal:!0}],[`Request.rawRequestHeaders`,{internal:!0}],[`Route.redirectNavigationRequest`,{internal:!0}],[`Route.abort`,{title:`Abort request`,group:`route`}],[`Route.continue`,{title:`Continue request`,group:`route`}],[`Route.fulfill`,{title:`Fulfill request`,group:`route`}],[`WebSocketRoute.connect`,{title:`Connect WebSocket to server`,group:`route`}],[`WebSocketRoute.ensureOpened`,{internal:!0}],[`WebSocketRoute.sendToPage`,{title:`Send WebSocket message`,group:`route`}],[`WebSocketRoute.sendToServer`,{title:`Send WebSocket message`,group:`route`}],[`WebSocketRoute.closePage`,{internal:!0}],[`WebSocketRoute.closeServer`,{internal:!0}],[`Response.body`,{title:`Get response body`,group:`getter`}],[`Response.securityDetails`,{internal:!0}],[`Response.serverAddr`,{internal:!0}],[`Response.rawResponseHeaders`,{internal:!0}],[`Response.httpVersion`,{internal:!0}],[`Response.sizes`,{internal:!0}],[`Page.addInitScript`,{title:`Add init script`,group:`configuration`}],[`Page.close`,{title:`Close page`,pause:!0}],[`Page.runBeforeUnload`,{title:`Run beforeunload`,pause:!0}],[`Page.clearConsoleMessages`,{title:`Clear console messages`}],[`Page.consoleMessages`,{title:`Get console messages`,group:`getter`}],[`Page.emulateMedia`,{title:`Emulate media`,snapshot:!0,pause:!0}],[`Page.exposeBinding`,{title:`Expose binding`,group:`configuration`}],[`Page.goBack`,{title:`Go back`,slowMo:!0,snapshot:!0,pause:!0}],[`Page.goForward`,{title:`Go forward`,slowMo:!0,snapshot:!0,pause:!0}],[`Page.requestGC`,{title:`Request garbage collection`,group:`configuration`}],[`Page.registerLocatorHandler`,{title:`Register locator handler`}],[`Page.resolveLocatorHandlerNoReply`,{internal:!0}],[`Page.unregisterLocatorHandler`,{title:`Unregister locator handler`}],[`Page.reload`,{title:`Reload`,slowMo:!0,snapshot:!0,pause:!0}],[`Page.expectScreenshot`,{title:`Expect screenshot`,snapshot:!0,pause:!0}],[`Page.screenshot`,{title:`Screenshot`,snapshot:!0,pause:!0}],[`Page.setExtraHTTPHeaders`,{title:`Set extra HTTP headers`,group:`configuration`}],[`Page.setNetworkInterceptionPatterns`,{title:`Route requests`,group:`route`}],[`Page.setWebSocketInterceptionPatterns`,{title:`Route WebSockets`,group:`route`}],[`Page.setViewportSize`,{title:`Set viewport size`,snapshot:!0,pause:!0}],[`Page.keyboardDown`,{title:`Key down "{key}"`,slowMo:!0,snapshot:!0,pause:!0,input:!0}],[`Page.keyboardUp`,{title:`Key up "{key}"`,slowMo:!0,snapshot:!0,pause:!0,input:!0}],[`Page.keyboardInsertText`,{title:`Insert "{text}"`,slowMo:!0,snapshot:!0,pause:!0,input:!0}],[`Page.keyboardType`,{title:`Type "{text}"`,slowMo:!0,snapshot:!0,pause:!0,input:!0}],[`Page.keyboardPress`,{title:`Press "{key}"`,slowMo:!0,snapshot:!0,pause:!0,input:!0}],[`Page.mouseMove`,{title:`Mouse move`,slowMo:!0,snapshot:!0,pause:!0,input:!0}],[`Page.mouseDown`,{title:`Mouse down`,slowMo:!0,snapshot:!0,pause:!0,input:!0}],[`Page.mouseUp`,{title:`Mouse up`,slowMo:!0,snapshot:!0,pause:!0,input:!0}],[`Page.mouseClick`,{title:`Click`,slowMo:!0,snapshot:!0,pause:!0,input:!0}],[`Page.mouseWheel`,{title:`Mouse wheel`,slowMo:!0,snapshot:!0,pause:!0,input:!0}],[`Page.touchscreenTap`,{title:`Tap`,slowMo:!0,snapshot:!0,pause:!0,input:!0}],[`Page.clearPageErrors`,{title:`Clear page errors`}],[`Page.pageErrors`,{title:`Get page errors`,group:`getter`}],[`Page.pdf`,{title:`PDF`}],[`Page.requests`,{title:`Get network requests`,group:`getter`}],[`Page.startJSCoverage`,{title:`Start JS coverage`,group:`configuration`}],[`Page.stopJSCoverage`,{title:`Stop JS coverage`,group:`configuration`}],[`Page.startCSSCoverage`,{title:`Start CSS coverage`,group:`configuration`}],[`Page.stopCSSCoverage`,{title:`Stop CSS coverage`,group:`configuration`}],[`Page.bringToFront`,{title:`Bring to front`}],[`Page.pickLocator`,{title:`Pick locator`,group:`configuration`}],[`Page.cancelPickLocator`,{title:`Cancel pick locator`,group:`configuration`}],[`Page.hideHighlight`,{title:`Hide all element highlights`,group:`configuration`}],[`Page.screencastShowOverlay`,{title:`Show overlay`,group:`configuration`}],[`Page.screencastRemoveOverlay`,{title:`Remove overlay`,group:`configuration`}],[`Page.screencastChapter`,{title:`Show chapter overlay`,group:`configuration`}],[`Page.screencastSetOverlayVisible`,{title:`Set overlay visibility`,group:`configuration`}],[`Page.screencastShowActions`,{title:`Show actions`,group:`configuration`}],[`Page.screencastHideActions`,{title:`Remove actions`,group:`configuration`}],[`Page.screencastStart`,{title:`Start screencast`,group:`configuration`}],[`Page.screencastStop`,{title:`Stop screencast`,group:`configuration`}],[`Page.updateSubscription`,{internal:!0}],[`Page.setDockTile`,{internal:!0}],[`Page.webStorageItems`,{title:`Get WebStorage items`,group:`getter`}],[`Page.webStorageGetItem`,{title:`Get WebStorage item`,group:`getter`}],[`Page.webStorageSetItem`,{title:`Set WebStorage item`,group:`configuration`}],[`Page.webStorageRemoveItem`,{title:`Remove WebStorage item`,group:`configuration`}],[`Page.webStorageClear`,{title:`Clear WebStorage`,group:`configuration`}],[`Root.initialize`,{internal:!0}],[`Playwright.newRequest`,{title:`Create request context`}],[`DebugController.initialize`,{internal:!0}],[`DebugController.setReportStateChanged`,{internal:!0}],[`DebugController.setRecorderMode`,{internal:!0}],[`DebugController.highlight`,{internal:!0}],[`DebugController.hideHighlight`,{internal:!0}],[`DebugController.resume`,{internal:!0}],[`DebugController.kill`,{internal:!0}],[`SocksSupport.socksConnected`,{internal:!0}],[`SocksSupport.socksFailed`,{internal:!0}],[`SocksSupport.socksData`,{internal:!0}],[`SocksSupport.socksError`,{internal:!0}],[`SocksSupport.socksEnd`,{internal:!0}],[`JsonPipe.send`,{internal:!0}],[`JsonPipe.close`,{internal:!0}],[`CDPSession.send`,{title:`Send CDP command`,group:`configuration`}],[`CDPSession.detach`,{title:`Detach CDP session`,group:`configuration`}],[`BindingCall.reject`,{internal:!0}],[`BindingCall.resolve`,{internal:!0}],[`Debugger.requestPause`,{title:`Pause on next call`,group:`configuration`}],[`Debugger.resume`,{title:`Resume`,group:`configuration`}],[`Debugger.next`,{title:`Step to next call`,group:`configuration`}],[`Debugger.runTo`,{title:`Run to location`,group:`configuration`}],[`Dialog.accept`,{title:`Accept dialog`}],[`Dialog.dismiss`,{title:`Dismiss dialog`}],[`Tracing.tracingStart`,{title:`Start tracing`,group:`configuration`}],[`Tracing.tracingStartChunk`,{title:`Start tracing`,group:`configuration`}],[`Tracing.tracingGroup`,{title:`Trace "{name}"`}],[`Tracing.tracingGroupEnd`,{title:`Group end`}],[`Tracing.tracingStopChunk`,{title:`Stop tracing`,group:`configuration`}],[`Tracing.tracingStop`,{title:`Stop tracing`,group:`configuration`}],[`Tracing.harStart`,{internal:!0}],[`Tracing.harExport`,{internal:!0}],[`Worker.disconnect`,{title:`Disconnect from worker`}],[`Worker.evaluateExpression`,{title:`Evaluate`}],[`Worker.evaluateExpressionHandle`,{title:`Evaluate`}],[`Worker.updateSubscription`,{internal:!0}]]);function Ae(e){return ke.get(e.type+`.`+e.method)}function je(e,t){return Me(e,t)?.replaceAll(`
11
+ `,`\\n`)}function Me(e,t){if(e)for(let n of t.split(`|`)){if(n===`url`)try{let t=new URL(e[n]);return t.protocol===`data:`?t.protocol:[`about:`,`chrome:`,`edge:`].includes(t.protocol)?e[n]:t.pathname+t.search}catch{if(e[n]!==void 0)return e[n]}if(n===`timeNumber`&&e[n]!==void 0)return new Date(e[n]).toString();let t=Ne(e,n);if(t!==void 0)return t}}function Ne(e,t){let n=t.split(`.`),r=e;for(let e of n){if(typeof r!=`object`||!r)return;r=r[e]}if(r!==void 0)return String(r)}function Pe(e){return(e.title??Ae(e)?.title??e.method).replace(/\{([^}]+)\}/g,(t,n)=>je(e.params,n)??t)}function Fe(e){return Ae(e)?.group}var Ie=Symbol(`context`),Le=Symbol(`nextInContext`),Re=Symbol(`prevByEndTime`),ze=Symbol(`nextByStartTime`),Be=Symbol(`events`),Ve=class{constructor(e,t){this.pagerefToTitle=new Map,this.contextToTitle=new Map,t.forEach(e=>He(e));let n=t.find(e=>e.origin===`library`);this.traceUri=e,this.browserName=n?.browserName||``,this.sdkLanguage=n?.sdkLanguage,this.channel=n?.channel,this.testIdAttributeName=n?.testIdAttributeName,this.platform=n?.platform||``,this.playwrightVersion=t.find(e=>e.playwrightVersion)?.playwrightVersion,this.title=n?.title||``,this.options=n?.options||{},this.testTimeout=t.find(e=>e.origin===`testRunner`)?.testTimeout,this.actions=Ue(t),this.pages=[].concat(...t.map(e=>e.pages)),this.wallTime=t.map(e=>e.wallTime).reduce((e,t)=>Math.min(e||Number.MAX_VALUE,t),Number.MAX_VALUE),this.startTime=t.map(e=>e.startTime).reduce((e,t)=>Math.min(e,t),Number.MAX_VALUE),this.endTime=t.map(e=>e.endTime).reduce((e,t)=>Math.max(e,t),Number.MIN_VALUE),this.events=[].concat(...t.map(e=>e.events)),this.stdio=[].concat(...t.map(e=>e.stdio)),this.errors=[].concat(...t.map(e=>e.errors)),this.hasSource=t.some(e=>e.hasSource),this.hasStepData=t.some(e=>e.origin===`testRunner`),this.resources=[...t.map(e=>e.resources)].flat().map(e=>({...e,id:`${e.pageref}-${e.startedDateTime}-${e.request.url}`})),this.attachments=this.actions.flatMap(t=>t.attachments?.map(n=>({...n,callId:t.callId,traceUri:e}))??[]),this.visibleAttachments=this.attachments.filter(e=>!e.name.startsWith(`_`)),this.pages.forEach((e,t)=>this.pagerefToTitle.set(e.pageId,`page#`+(t+1)));let r=0,i=0;for(let e of t)e.resources.some(e=>e._apiRequest)?this.contextToTitle.set(e,`api#`+ ++r):this.contextToTitle.set(e,`browser#`+ ++i);this.events.sort((e,t)=>e.time-t.time),this.resources.sort((e,t)=>e._monotonicTime-t._monotonicTime),this.errorDescriptors=this.hasStepData?this._errorDescriptorsFromTestRunner():this._errorDescriptorsFromActions(),this.sources=tt(this.actions,this.errorDescriptors),this.actionCounters=new Map;for(let e of this.actions)e.group=e.group??Fe({type:e.class,method:e.method}),e.group&&this.actionCounters.set(e.group,1+(this.actionCounters.get(e.group)||0))}createRelativeUrl(e){let t=new URL(`http://localhost/`+e);return t.searchParams.set(`trace`,this.traceUri),t.toString().substring(17)}failedAction(){return this.actions.findLast(e=>e.error)}filteredActions(e){let t=new Set(e);return this.actions.filter(e=>!e.group||t.has(e.group))}renderActionTree(e){let{rootItem:t}=Je(this.filteredActions(e??[])),n=[],r=(e,t)=>{let i=Pe({...e.action,type:e.action.class});n.push(`${t}${i||e.id}`);for(let n of e.children)r(n,t+` `)};return t.children.forEach(e=>r(e,``)),n}_errorDescriptorsFromActions(){let e=[];for(let t of this.actions||[])t.error?.message&&e.push({action:t,stack:t.stack,message:t.error.message});return e}_errorDescriptorsFromTestRunner(){return this.errors.filter(e=>!!e.message).map((e,t)=>({stack:e.stack,message:e.message}))}};function He(e){for(let t of e.pages)t[Ie]=e;for(let t=0;t<e.actions.length;++t){let n=e.actions[t];n[Ie]=e}let t;for(let n=e.actions.length-1;n>=0;n--){let r=e.actions[n];r[Le]=t,r.class!==`Route`&&(t=r)}for(let t of e.events)t[Ie]=e;for(let t of e.resources)t[Ie]=e}function Ue(e){let t=[],n=Ge(e);t.push(...n),t.sort((e,t)=>t.parentId===e.callId?1:e.parentId===t.callId?-1:e.endTime-t.endTime);for(let e=1;e<t.length;++e)t[e][Re]=t[e-1];t.sort((e,t)=>t.parentId===e.callId?-1:e.parentId===t.callId?1:e.startTime-t.startTime);for(let e=0;e+1<t.length;++e)t[e][ze]=t[e+1];return t}var We=0;function Ge(e){let t=new Map,n=e.filter(e=>e.origin===`library`),r=e.filter(e=>e.origin===`testRunner`);if(!r.length||!n.length)return e.map(e=>e.actions.map(t=>({...t,context:e}))).flat();for(let e of n)for(let n of e.actions)t.set(n.stepId||`tmp-step@${++We}`,{...n,context:e});let i=qe(r,t);i&&Ke(n,i);let a=new Map;for(let e of r)for(let n of e.actions){let r=n.stepId&&t.get(n.stepId);if(r){a.set(n.callId,r.callId),n.error&&(r.error=n.error),n.attachments&&(r.attachments=n.attachments),n.annotations&&(r.annotations=n.annotations),n.parentId&&(r.parentId=a.get(n.parentId)??n.parentId),n.group&&(r.group=n.group),r.startTime=n.startTime,r.endTime=n.endTime;continue}n.parentId&&=a.get(n.parentId)??n.parentId,t.set(n.stepId||`tmp-step@${++We}`,{...n,context:e})}return[...t.values()]}function Ke(e,t){for(let n of e){n.startTime+=t,n.endTime+=t;for(let e of n.actions)e.startTime&&(e.startTime+=t),e.endTime&&(e.endTime+=t);for(let e of n.events)e.time+=t;for(let e of n.stdio)e.timestamp+=t;for(let e of n.pages)for(let n of e.screencastFrames)n.timestamp+=t;for(let e of n.resources)e._monotonicTime&&(e._monotonicTime+=t)}}function qe(e,t){for(let n of e)for(let e of n.actions){if(!e.startTime)continue;let n=e.stepId?t.get(e.stepId):void 0;if(n)return e.startTime-n.startTime}return 0}function Je(e){let t=new Map;for(let n of e)t.set(n.callId,{id:n.callId,parent:void 0,children:[],action:n});let n={action:{...nt},id:``,parent:void 0,children:[]};for(let e of t.values()){n.action.startTime=Math.min(n.action.startTime,e.action.startTime),n.action.endTime=Math.max(n.action.endTime,e.action.endTime);let r=e.action.parentId&&t.get(e.action.parentId)||n;r.children.push(e),e.parent=r}let r=e=>{for(let t of e.children)t.action.stack=t.action.stack??e.action.stack,r(t)};return r(n),{rootItem:n,itemMap:t}}function Ye(e){return e[Ie]}function Xe(e){return e[Le]}function Ze(e){return e[Re]}function Qe(e){return e[ze]}function $e(e){let t=0,n=0;for(let r of et(e)){if(r.type===`console`){let e=r.messageType;e===`warning`?++n:e===`error`&&++t}r.type===`event`&&r.method===`pageError`&&++t}return{errors:t,warnings:n}}function et(e){let t=e[Be];if(t)return t;let n=Xe(e);return t=Ye(e).events.filter(t=>t.time>=e.startTime&&(!n||t.time<n.startTime)),e[Be]=t,t}function tt(e,t){let n=new Map;for(let t of e)for(let e of t.stack||[]){let t=n.get(e.file);t||(t={errors:[],content:void 0},n.set(e.file,t))}for(let e of t){let{action:t,stack:r,message:i}=e;!t||!r||n.get(r[0].file)?.errors.push({line:r[0].line||0,message:i})}return n}var nt={type:`action`,callId:``,startTime:0,endTime:0,class:``,method:``,params:{},log:[],context:{origin:`library`,startTime:0,endTime:0,browserName:``,wallTime:0,options:{},pages:[],resources:[],actions:[],events:[],stdio:[],errors:[],hasSource:!1,contextId:``}},rt=b((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),it=b(((e,t)=>{t.exports=rt()})),M=it(),at=50,ot=({sidebarSize:e,sidebarHidden:t=!1,sidebarIsFirst:n=!1,orientation:r=`vertical`,minSidebarSize:i=at,settingName:a,sidebar:o,main:s})=>{let c=Math.max(i,e)*window.devicePixelRatio,[l,u]=ae(a?a+`.`+r+`:size`:void 0,c),[d,f]=ae(a?a+`.`+r+`:size`:void 0,c),[p,m]=T.useState(null),[h,g]=E(),_;r===`vertical`?(_=d/window.devicePixelRatio,h&&h.height<_&&(_=h.height-10)):(_=l/window.devicePixelRatio,h&&h.width<_&&(_=h.width-10)),document.body.style.userSelect=p?`none`:`inherit`;let v={};return v=r===`vertical`?n?{top:p?0:_-4,bottom:p?0:void 0,height:p?`initial`:8}:{bottom:p?0:_-4,top:p?0:void 0,height:p?`initial`:8}:n?{left:p?0:_-4,right:p?0:void 0,width:p?`initial`:8}:{right:p?0:_-4,left:p?0:void 0,width:p?`initial`:8},(0,M.jsxs)(`div`,{className:k(`split-view`,r,n&&`sidebar-first`),ref:g,children:[(0,M.jsx)(`div`,{className:`split-view-main`,children:s}),!t&&(0,M.jsx)(`div`,{style:{flexBasis:_},className:`split-view-sidebar`,children:o}),!t&&(0,M.jsx)(`div`,{style:v,className:`split-view-resizer`,onMouseDown:e=>m({offset:r===`vertical`?e.clientY:e.clientX,size:_}),onMouseUp:()=>m(null),onMouseMove:e=>{if(!e.buttons)m(null);else if(p){let t=(r===`vertical`?e.clientY:e.clientX)-p.offset,a=n?p.size+t:p.size-t,o=e.target.parentElement.getBoundingClientRect(),s=Math.min(Math.max(i,a),(r===`vertical`?o.height:o.width)-i);r===`vertical`?f(s*window.devicePixelRatio):u(s*window.devicePixelRatio)}}})]})};function st(e){if(e<0||!isFinite(e))return`-`;if(e===0)return`0ms`;if(e<1e3)return e.toFixed(0)+`ms`;let t=e/1e3;if(t<60)return t.toFixed(1)+`s`;let n=t/60;if(n<60)return n.toFixed(1)+`m`;let r=n/60;return r<24?r.toFixed(1)+`h`:(r/24).toFixed(1)+`d`}function ct(e){if(e<0||!isFinite(e))return`-`;if(e===0)return`0`;if(e<1e3)return e.toFixed(0);let t=e/1024;if(t<1e3)return t.toFixed(1)+`K`;let n=t/1024;return n<1e3?n.toFixed(1)+`M`:(n/1024).toFixed(1)+`G`}var lt=function(e,t,n){return e>=t&&e<=n};function ut(e){return lt(e,48,57)}function dt(e){return ut(e)||lt(e,65,70)||lt(e,97,102)}function ft(e){return lt(e,65,90)}function pt(e){return lt(e,97,122)}function mt(e){return ft(e)||pt(e)}function ht(e){return e>=128}function gt(e){return mt(e)||ht(e)||e===95}function _t(e){return gt(e)||ut(e)||e===45}function vt(e){return lt(e,0,8)||e===11||lt(e,14,31)||e===127}function yt(e){return e===10}function bt(e){return yt(e)||e===9||e===32}var xt=1114111,St=class extends Error{constructor(e){super(e),this.name=`InvalidCharacterError`}};function Ct(e){let t=[];for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r===13&&e.charCodeAt(n+1)===10&&(r=10,n++),(r===13||r===12)&&(r=10),r===0&&(r=65533),lt(r,55296,56319)&&lt(e.charCodeAt(n+1),56320,57343)){let t=r-55296,i=e.charCodeAt(n+1)-56320;r=2**16+t*2**10+i,n++}t.push(r)}return t}function wt(e){if(e<=65535)return String.fromCharCode(e);e-=2**16;let t=Math.floor(e/2**10)+55296,n=e%2**10+56320;return String.fromCharCode(t)+String.fromCharCode(n)}function Tt(e){let t=Ct(e),n=-1,r=[],i,a=0,o=0,s=0,c=function(){a+=1,s=o,o=0},l={line:a,column:o},u=function(e){return e>=t.length?-1:t[e]},d=function(e){if(e===void 0&&(e=1),e>3)throw`Spec Error: no more than three codepoints of lookahead.`;return u(n+e)},f=function(e){return e===void 0&&(e=1),n+=e,i=u(n),yt(i)?c():o+=e,!0},p=function(){return--n,yt(i)?(--a,o=s):--o,l.line=a,l.column=o,!0},m=function(e){return e===void 0&&(e=i),e===-1},h=function(){if(g(),f(),bt(i)){for(;bt(d());)f();return new kt}else if(i===34)return y();else if(i===35)if(_t(d())||S(d(1),d(2))){let e=new en(``);return w(d(1),d(2),d(3))&&(e.type=`id`),e.value=E(),e}else return new Yt(i);else if(i===36)return d()===61?(f(),new Gt):new Yt(i);else if(i===39)return y();else if(i===40)return new Bt;else if(i===41)return new Vt;else if(i===42)return d()===61?(f(),new Kt):new Yt(i);else if(i===43)return te()?(p(),_()):new Yt(i);else if(i===44)return new Pt;else if(i===45)return te()?(p(),_()):d(1)===45&&d(2)===62?(f(2),new jt):ee()?(p(),v()):new Yt(i);else if(i===46)return te()?(p(),_()):new Yt(i);else if(i===58)return new Mt;else if(i===59)return new Nt;else if(i===60)return d(1)===33&&d(2)===45&&d(3)===45?(f(3),new At):new Yt(i);else if(i===64)return w(d(1),d(2),d(3))?new $t(E()):new Yt(i);else if(i===91)return new Rt;else if(i===92)return C()?(p(),v()):new Yt(i);else if(i===93)return new zt;else if(i===94)return d()===61?(f(),new Wt):new Yt(i);else if(i===123)return new It;else if(i===124)return d()===61?(f(),new Ut):d()===124?(f(),new qt):new Yt(i);else if(i===125)return new Lt;else if(i===126)return d()===61?(f(),new Ht):new Yt(i);else if(ut(i))return p(),_();else if(gt(i))return p(),v();else if(m())return new Jt;else return new Yt(i)},g=function(){for(;d(1)===47&&d(2)===42;)for(f(2);;)if(f(),i===42&&d()===47){f();break}else if(m())return},_=function(){let e=ne();if(w(d(1),d(2),d(3))){let t=new on;return t.value=e.value,t.repr=e.repr,t.type=e.type,t.unit=E(),t}else if(d()===37){f();let t=new an;return t.value=e.value,t.repr=e.repr,t}else{let t=new rn;return t.value=e.value,t.repr=e.repr,t.type=e.type,t}},v=function(){let e=E();if(e.toLowerCase()===`url`&&d()===40){for(f();bt(d(1))&&bt(d(2));)f();return d()===34||d()===39||bt(d())&&(d(2)===34||d(2)===39)?new Qt(e):b()}else if(d()===40)return f(),new Qt(e);else return new Zt(e)},y=function(e){e===void 0&&(e=i);let t=``;for(;f();)if(i===e||m())return new tn(t);else if(yt(i))return p(),new Dt;else i===92?m(d())||(yt(d())?f():t+=wt(x())):t+=wt(i);throw Error(`Internal error`)},b=function(){let e=new nn(``);for(;bt(d());)f();if(m(d()))return e;for(;f();)if(i===41||m())return e;else if(bt(i)){for(;bt(d());)f();return d()===41||m(d())?(f(),e):(ie(),new Ot)}else if(i===34||i===39||i===40||vt(i))return ie(),new Ot;else if(i===92)if(C())e.value+=wt(x());else return ie(),new Ot;else e.value+=wt(i);throw Error(`Internal error`)},x=function(){if(f(),dt(i)){let e=[i];for(let t=0;t<5&&dt(d());t++)f(),e.push(i);bt(d())&&f();let t=parseInt(e.map(function(e){return String.fromCharCode(e)}).join(``),16);return t>xt&&(t=65533),t}else if(m())return 65533;else return i},S=function(e,t){return!(e!==92||yt(t))},C=function(){return S(i,d())},w=function(e,t,n){return e===45?gt(t)||t===45||S(t,n):gt(e)?!0:e===92?S(e,t):!1},ee=function(){return w(i,d(1),d(2))},T=function(e,t,n){return e===43||e===45?!!(ut(t)||t===46&&ut(n)):e===46?!!ut(t):!!ut(e)},te=function(){return T(i,d(1),d(2))},E=function(){let e=``;for(;f();)if(_t(i))e+=wt(i);else if(C())e+=wt(x());else return p(),e;throw Error(`Internal parse error`)},ne=function(){let e=``,t=`integer`;for((d()===43||d()===45)&&(f(),e+=wt(i));ut(d());)f(),e+=wt(i);if(d(1)===46&&ut(d(2)))for(f(),e+=wt(i),f(),e+=wt(i),t=`number`;ut(d());)f(),e+=wt(i);let n=d(1),r=d(2),a=d(3);if((n===69||n===101)&&ut(r))for(f(),e+=wt(i),f(),e+=wt(i),t=`number`;ut(d());)f(),e+=wt(i);else if((n===69||n===101)&&(r===43||r===45)&&ut(a))for(f(),e+=wt(i),f(),e+=wt(i),f(),e+=wt(i),t=`number`;ut(d());)f(),e+=wt(i);let o=re(e);return{type:t,value:o,repr:e}},re=function(e){return+e},ie=function(){for(;f();)if(i===41||m())return;else C()&&x()},ae=0;for(;!m(d());)if(r.push(h()),ae++,ae>t.length*2)throw Error(`I'm infinite-looping!`);return r}var Et=class{constructor(){this.tokenType=``}toJSON(){return{token:this.tokenType}}toString(){return this.tokenType}toSource(){return``+this}},Dt=class extends Et{constructor(...e){super(...e),this.tokenType=`BADSTRING`}},Ot=class extends Et{constructor(...e){super(...e),this.tokenType=`BADURL`}},kt=class extends Et{constructor(...e){super(...e),this.tokenType=`WHITESPACE`}toString(){return`WS`}toSource(){return` `}},At=class extends Et{constructor(...e){super(...e),this.tokenType=`CDO`}toSource(){return`<!--`}},jt=class extends Et{constructor(...e){super(...e),this.tokenType=`CDC`}toSource(){return`-->`}},Mt=class extends Et{constructor(...e){super(...e),this.tokenType=`:`}},Nt=class extends Et{constructor(...e){super(...e),this.tokenType=`;`}},Pt=class extends Et{constructor(...e){super(...e),this.tokenType=`,`}},Ft=class extends Et{constructor(...e){super(...e),this.value=``,this.mirror=``}},It=class extends Ft{constructor(){super(),this.tokenType=`{`,this.value=`{`,this.mirror=`}`}},Lt=class extends Ft{constructor(){super(),this.tokenType=`}`,this.value=`}`,this.mirror=`{`}},Rt=class extends Ft{constructor(){super(),this.tokenType=`[`,this.value=`[`,this.mirror=`]`}},zt=class extends Ft{constructor(){super(),this.tokenType=`]`,this.value=`]`,this.mirror=`[`}},Bt=class extends Ft{constructor(){super(),this.tokenType=`(`,this.value=`(`,this.mirror=`)`}},Vt=class extends Ft{constructor(){super(),this.tokenType=`)`,this.value=`)`,this.mirror=`(`}},Ht=class extends Et{constructor(...e){super(...e),this.tokenType=`~=`}},Ut=class extends Et{constructor(...e){super(...e),this.tokenType=`|=`}},Wt=class extends Et{constructor(...e){super(...e),this.tokenType=`^=`}},Gt=class extends Et{constructor(...e){super(...e),this.tokenType=`$=`}},Kt=class extends Et{constructor(...e){super(...e),this.tokenType=`*=`}},qt=class extends Et{constructor(...e){super(...e),this.tokenType=`||`}},Jt=class extends Et{constructor(...e){super(...e),this.tokenType=`EOF`}toSource(){return``}},Yt=class extends Et{constructor(e){super(),this.tokenType=`DELIM`,this.value=``,this.value=wt(e)}toString(){return`DELIM(`+this.value+`)`}toJSON(){let e=this.constructor.prototype.constructor.prototype.toJSON.call(this);return e.value=this.value,e}toSource(){return this.value===`\\`?`\\
12
+ `:this.value}},Xt=class extends Et{constructor(...e){super(...e),this.value=``}ASCIIMatch(e){return this.value.toLowerCase()===e.toLowerCase()}toJSON(){let e=this.constructor.prototype.constructor.prototype.toJSON.call(this);return e.value=this.value,e}},Zt=class extends Xt{constructor(e){super(),this.tokenType=`IDENT`,this.value=e}toString(){return`IDENT(`+this.value+`)`}toSource(){return sn(this.value)}},Qt=class extends Xt{constructor(e){super(),this.tokenType=`FUNCTION`,this.value=e,this.mirror=`)`}toString(){return`FUNCTION(`+this.value+`)`}toSource(){return sn(this.value)+`(`}},$t=class extends Xt{constructor(e){super(),this.tokenType=`AT-KEYWORD`,this.value=e}toString(){return`AT(`+this.value+`)`}toSource(){return`@`+sn(this.value)}},en=class extends Xt{constructor(e){super(),this.tokenType=`HASH`,this.value=e,this.type=`unrestricted`}toString(){return`HASH(`+this.value+`)`}toJSON(){let e=this.constructor.prototype.constructor.prototype.toJSON.call(this);return e.value=this.value,e.type=this.type,e}toSource(){return this.type===`id`?`#`+sn(this.value):`#`+cn(this.value)}},tn=class extends Xt{constructor(e){super(),this.tokenType=`STRING`,this.value=e}toString(){return`"`+ln(this.value)+`"`}},nn=class extends Xt{constructor(e){super(),this.tokenType=`URL`,this.value=e}toString(){return`URL(`+this.value+`)`}toSource(){return`url("`+ln(this.value)+`")`}},rn=class extends Et{constructor(){super(),this.tokenType=`NUMBER`,this.type=`integer`,this.repr=``}toString(){return this.type===`integer`?`INT(`+this.value+`)`:`NUMBER(`+this.value+`)`}toJSON(){let e=super.toJSON();return e.value=this.value,e.type=this.type,e.repr=this.repr,e}toSource(){return this.repr}},an=class extends Et{constructor(){super(),this.tokenType=`PERCENTAGE`,this.repr=``}toString(){return`PERCENTAGE(`+this.value+`)`}toJSON(){let e=this.constructor.prototype.constructor.prototype.toJSON.call(this);return e.value=this.value,e.repr=this.repr,e}toSource(){return this.repr+`%`}},on=class extends Et{constructor(){super(),this.tokenType=`DIMENSION`,this.type=`integer`,this.repr=``,this.unit=``}toString(){return`DIM(`+this.value+`,`+this.unit+`)`}toJSON(){let e=this.constructor.prototype.constructor.prototype.toJSON.call(this);return e.value=this.value,e.type=this.type,e.repr=this.repr,e.unit=this.unit,e}toSource(){let e=this.repr,t=sn(this.unit);return t[0].toLowerCase()===`e`&&(t[1]===`-`||lt(t.charCodeAt(1),48,57))&&(t=`\\65 `+t.slice(1,t.length)),e+t}};function sn(e){e=``+e;let t=``,n=e.charCodeAt(0);for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);if(i===0)throw new St(`Invalid character: the input contains U+0000.`);lt(i,1,31)||i===127||r===0&&lt(i,48,57)||r===1&&lt(i,48,57)&&n===45?t+=`\\`+i.toString(16)+` `:i>=128||i===45||i===95||lt(i,48,57)||lt(i,65,90)||lt(i,97,122)?t+=e[r]:t+=`\\`+e[r]}return t}function cn(e){e=``+e;let t=``;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r===0)throw new St(`Invalid character: the input contains U+0000.`);r>=128||r===45||r===95||lt(r,48,57)||lt(r,65,90)||lt(r,97,122)?t+=e[n]:t+=`\\`+r.toString(16)+` `}return t}function ln(e){e=``+e;let t=``;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r===0)throw new St(`Invalid character: the input contains U+0000.`);lt(r,1,31)||r===127?t+=`\\`+r.toString(16)+` `:r===34||r===92?t+=`\\`+e[n]:t+=e[n]}return t}var un=class extends Error{};function dn(e,t){let n;try{n=Tt(e),n[n.length-1]instanceof Jt||n.push(new Jt)}catch(t){let n=t.message+` while parsing css selector "${e}". Did you mean to CSS.escape it?`,r=(t.stack||``).indexOf(t.message);throw r!==-1&&(t.stack=t.stack.substring(0,r)+n+t.stack.substring(r+t.message.length)),t.message=n,t}let r=n.find(e=>e instanceof $t||e instanceof Dt||e instanceof Ot||e instanceof qt||e instanceof At||e instanceof jt||e instanceof Nt||e instanceof It||e instanceof Lt||e instanceof nn||e instanceof an);if(r)throw new un(`Unsupported token "${r.toSource()}" while parsing css selector "${e}". Did you mean to CSS.escape it?`);let i=0,a=new Set;function o(){return new un(`Unexpected token "${n[i].toSource()}" while parsing css selector "${e}". Did you mean to CSS.escape it?`)}function s(){for(;n[i]instanceof kt;)i++}function c(e=i){return n[e]instanceof Zt}function l(e=i){return n[e]instanceof tn}function u(e=i){return n[e]instanceof rn}function d(e=i){return n[e]instanceof Pt}function f(e=i){return n[e]instanceof Bt}function p(e=i){return n[e]instanceof Vt}function m(e=i){return n[e]instanceof Qt}function h(e=i){return n[e]instanceof Yt&&n[e].value===`*`}function g(e=i){return n[e]instanceof Jt}function _(e=i){return n[e]instanceof Yt&&[`>`,`+`,`~`].includes(n[e].value)}function v(e=i){return d(e)||p(e)||g(e)||_(e)||n[e]instanceof kt}function y(){let e=[b()];for(;s(),d();)i++,e.push(b());return e}function b(){return s(),u()||l()?n[i++].value:x()}function x(){let e={simples:[]};for(s(),_()?e.simples.push({selector:{functions:[{name:`scope`,args:[]}]},combinator:``}):e.simples.push({selector:S(),combinator:``});;){if(s(),_())e.simples[e.simples.length-1].combinator=n[i++].value,s();else if(v())break;e.simples.push({combinator:``,selector:S()})}return e}function S(){let e=``,r=[];for(;!v();)if(c()||h())e+=n[i++].toSource();else if(n[i]instanceof en)e+=n[i++].toSource();else if(n[i]instanceof Yt&&n[i].value===`.`)if(i++,c())e+=`.`+n[i++].toSource();else throw o();else if(n[i]instanceof Mt)if(i++,c())if(!t.has(n[i].value.toLowerCase()))e+=`:`+n[i++].toSource();else{let e=n[i++].value.toLowerCase();r.push({name:e,args:[]}),a.add(e)}else if(m()){let c=n[i++].value.toLowerCase();if(t.has(c)?(r.push({name:c,args:y()}),a.add(c)):e+=`:${c}(${C()})`,s(),!p())throw o();i++}else throw o();else if(n[i]instanceof Rt){for(e+=`[`,i++;!(n[i]instanceof zt)&&!g();)e+=n[i++].toSource();if(!(n[i]instanceof zt))throw o();e+=`]`,i++}else throw o();if(!e&&!r.length)throw o();return{css:e||void 0,functions:r}}function C(){let e=``,t=1;for(;!g()&&((f()||m())&&t++,p()&&t--,t);)e+=n[i++].toSource();return e}let w=y();if(!g())throw o();if(w.some(e=>typeof e!=`object`||!(`simples`in e)))throw new un(`Error while parsing css selector "${e}". Did you mean to CSS.escape it?`);return{selector:w,names:Array.from(a)}}var fn=new Set([`internal:has`,`internal:has-not`,`internal:and`,`internal:or`,`internal:chain`,`left-of`,`right-of`,`above`,`below`,`near`]),pn=new Set([`left-of`,`right-of`,`above`,`below`,`near`]),mn=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 hn(e){let t=yn(e),n=[];for(let e of t.parts){if(e.name===`css`||e.name===`css:light`){e.name===`css:light`&&(e.body=`:light(`+e.body+`)`);let t=dn(e.body,mn);n.push({name:`css`,body:t.selector,source:e.body});continue}if(fn.has(e.name)){let t,r;try{let n=JSON.parse(`[`+e.body+`]`);if(!Array.isArray(n)||n.length<1||n.length>2||typeof n[0]!=`string`)throw new un(`Malformed selector: ${e.name}=`+e.body);if(t=n[0],n.length===2){if(typeof n[1]!=`number`||!pn.has(e.name))throw new un(`Malformed selector: ${e.name}=`+e.body);r=n[1]}}catch{throw new un(`Malformed selector: ${e.name}=`+e.body)}let i={name:e.name,source:e.body,body:{parsed:hn(t),distance:r}},a=[...i.body.parsed.parts].reverse().find(e=>e.name===`internal:control`&&e.body===`enter-frame`),o=a?i.body.parsed.parts.indexOf(a):-1;o!==-1&&gn(i.body.parsed.parts.slice(0,o+1),n.slice(0,o+1))&&i.body.parsed.parts.splice(0,o+1),n.push(i);continue}n.push({...e,source:e.body})}if(fn.has(n[0].name))throw new un(`"${n[0].name}" selector cannot be first`);return{capture:t.capture,parts:n}}function gn(e,t){return _n({parts:e})===_n({parts:t})}function _n(e,t){return typeof e==`string`?e:e.parts.map((n,r)=>{let i=!0;!t&&r!==e.capture&&(n.name===`css`||n.name===`xpath`&&(n.source.startsWith(`//`)||n.source.startsWith(`..`)))&&(i=!1);let a=i?n.name+`=`:``;return`${r===e.capture?`*`:``}${a}${n.source}`}).join(` >> `)}function vn(e,t){let n=(e,r)=>{for(let i of e.parts)t(i,r),fn.has(i.name)&&n(i.body.parsed,!0)};n(e,!1)}function yn(e){let t=0,n,r=0,i={parts:[]},a=()=>{let n=e.substring(r,t).trim(),a=n.indexOf(`=`),o,s;a!==-1&&n.substring(0,a).trim().match(/^[a-zA-Z_0-9-+:*]+$/)?(o=n.substring(0,a).trim(),s=n.substring(a+1)):n.length>1&&n[0]===`"`&&n[n.length-1]===`"`||n.length>1&&n[0]===`'`&&n[n.length-1]===`'`?(o=`text`,s=n):/^\(*\/\//.test(n)||n.startsWith(`..`)?(o=`xpath`,s=n):(o=`css`,s=n);let c=!1;if(o[0]===`*`&&(c=!0,o=o.substring(1)),i.parts.push({name:o,body:s}),c){if(i.capture!==void 0)throw new un(`Only one of the selectors can capture using * modifier`);i.capture=i.parts.length-1}};if(!e.includes(`>>`))return t=e.length,a(),i;let o=()=>{let n=e.substring(r,t).match(/^\s*text\s*=(.*)$/);return!!n&&!!n[1]};for(;t<e.length;){let i=e[t];i===`\\`&&t+1<e.length?t+=2:i===n?(n=void 0,t++):!n&&(i===`"`||i===`'`||i==="`")&&!o()?(n=i,t++):!n&&i===`>`&&e[t+1]===`>`?(a(),t+=2,r=t):t++}return a(),i}function bn(e,t){let n=0,r=e.length===0,i=()=>e[n]||``,a=()=>{let t=i();return++n,r=n>=e.length,t},o=t=>{throw r?new un(`Unexpected end of selector while parsing selector \`${e}\``):new un(`Error while parsing selector \`${e}\` - unexpected symbol "${i()}" at position ${n}`+(t?` during `+t:``))};function s(){for(;!r&&/\s/.test(i());)a()}function c(e){return e>=`€`||e>=`0`&&e<=`9`||e>=`A`&&e<=`Z`||e>=`a`&&e<=`z`||e>=`0`&&e<=`9`||e===`_`||e===`-`}function l(){let e=``;for(s();!r&&c(i());)e+=a();return e}function u(e){let t=a();for(t!==e&&o(`parsing quoted string`);!r&&i()!==e;)i()===`\\`&&a(),t+=a();return i()!==e&&o(`parsing quoted string`),t+=a(),t}function d(){a()!==`/`&&o(`parsing regular expression`);let t=``,n=!1;for(;!r;){if(i()===`\\`)t+=a(),r&&o(`parsing regular expression`);else if(n&&i()===`]`)n=!1;else if(!n&&i()===`[`)n=!0;else if(!n&&i()===`/`)break;t+=a()}a()!==`/`&&o(`parsing regular expression`);let s=``;for(;!r&&i().match(/[dgimsuvy]/);)s+=a();try{return new RegExp(t,s)}catch(t){throw new un(`Error while parsing selector \`${e}\`: ${t.message}`)}}function f(){let e=``;return s(),e=i()===`'`||i()===`"`?u(i()).slice(1,-1):l(),e||o(`parsing property path`),e}function p(){s();let e=``;return r||(e+=a()),!r&&e!==`=`&&(e+=a()),[`=`,`*=`,`^=`,`$=`,`|=`,`~=`].includes(e)||o(`parsing operator`),e}function m(){a();let n=[];for(n.push(f()),s();i()===`.`;)a(),n.push(f()),s();if(i()===`]`)return a(),{name:n.join(`.`),jsonPath:n,op:`<truthy>`,value:null,caseSensitive:!1};let l=p(),m,h=!0;if(s(),i()===`/`){if(l!==`=`)throw new un(`Error while parsing selector \`${e}\` - cannot use ${l} in attribute with regular expression`);m=d()}else if(i()===`'`||i()===`"`)m=u(i()).slice(1,-1),s(),i()===`i`||i()===`I`?(h=!1,a()):(i()===`s`||i()===`S`)&&(h=!0,a());else{for(m=``;!r&&(c(i())||i()===`+`||i()===`.`);)m+=a();m===`true`?m=!0:m===`false`?m=!1:t||(m=+m,Number.isNaN(m)&&o(`parsing attribute value`))}if(s(),i()!==`]`&&o(`parsing attribute value`),a(),l!==`=`&&typeof m!=`string`)throw new un(`Error while parsing selector \`${e}\` - cannot use ${l} in attribute with non-string matching value - ${m}`);return{name:n.join(`.`),jsonPath:n,op:l,value:m,caseSensitive:h}}let h={name:``,attributes:[]};for(h.name=l(),s();i()===`[`;)h.attributes.push(m()),s();if(r||o(void 0),!h.name&&!h.attributes.length)throw new un(`Error while parsing selector \`${e}\` - selector cannot be empty`);return h}function xn(e,t){try{let n=hn(t);return Sn(n)||Tn(new On[e],n,!1,1)[0]}catch{return t}}function Sn(e){let t=e.parts[e.parts.length-1];if(t?.name===`internal:describe`){let e=JSON.parse(t.body);if(typeof e==`string`)return e}}function Cn(e,t,n=!1){return wn(e,t,n,1)[0]}function wn(e,t,n=!1,r=20,i){try{return Tn(new On[e](i),hn(t),n,r)}catch{return[t]}}function Tn(e,t,n=!1,r=20){let i=[...t.parts],a=[],o=n?`frame-locator`:`page`;for(let t=0;t<i.length;t++){let n=i[t],s=o;if(o=`locator`,n.name===`internal:describe`)continue;if(n.name===`nth`){n.body===`0`?a.push([e.generateLocator(s,`first`,``),e.generateLocator(s,`nth`,`0`)]):n.body===`-1`?a.push([e.generateLocator(s,`last`,``),e.generateLocator(s,`nth`,`-1`)]):a.push([e.generateLocator(s,`nth`,n.body)]);continue}if(n.name===`visible`){a.push([e.generateLocator(s,`visible`,n.body),e.generateLocator(s,`default`,`visible=${n.body}`)]);continue}if(n.name===`internal:text`){let{exact:t,text:r}=Dn(n.body);a.push([e.generateLocator(s,`text`,r,{exact:t})]);continue}if(n.name===`internal:has-text`){let{exact:t,text:r}=Dn(n.body);if(!t){a.push([e.generateLocator(s,`has-text`,r,{exact:t})]);continue}}if(n.name===`internal:has-not-text`){let{exact:t,text:r}=Dn(n.body);if(!t){a.push([e.generateLocator(s,`has-not-text`,r,{exact:t})]);continue}}if(n.name===`internal:has`){let t=Tn(e,n.body.parsed,!1,r);a.push(t.map(t=>e.generateLocator(s,`has`,t)));continue}if(n.name===`internal:has-not`){let t=Tn(e,n.body.parsed,!1,r);a.push(t.map(t=>e.generateLocator(s,`hasNot`,t)));continue}if(n.name===`internal:and`){let t=Tn(e,n.body.parsed,!1,r);a.push(t.map(t=>e.generateLocator(s,`and`,t)));continue}if(n.name===`internal:or`){let t=Tn(e,n.body.parsed,!1,r);a.push(t.map(t=>e.generateLocator(s,`or`,t)));continue}if(n.name===`internal:chain`){let t=Tn(e,n.body.parsed,!1,r);a.push(t.map(t=>e.generateLocator(s,`chain`,t)));continue}if(n.name===`internal:label`){let{exact:t,text:r}=Dn(n.body);a.push([e.generateLocator(s,`label`,r,{exact:t})]);continue}if(n.name===`internal:role`){let t=bn(n.body,!0),r={attrs:[]};for(let e of t.attributes)if(e.name===`name`){if(r.exact!==void 0&&r.exact!==e.caseSensitive)throw Error(`Conflicting exactness in internal:role selector: ${_n({parts:[n]})}`);r.exact=e.caseSensitive,r.name=e.value}else if(e.name===`description`){if(r.exact!==void 0&&r.exact!==e.caseSensitive)throw Error(`Conflicting exactness in internal:role selector: ${_n({parts:[n]})}`);r.exact=e.caseSensitive,r.description=e.value}else e.name===`level`&&typeof e.value==`string`&&(e.value=+e.value),r.attrs.push({name:e.name===`include-hidden`?`includeHidden`:e.name,value:e.value});a.push([e.generateLocator(s,`role`,t.name,r)]);continue}if(n.name===`internal:testid`){let{value:t}=bn(n.body,!0).attributes[0];a.push([e.generateLocator(s,`test-id`,t)]);continue}if(n.name===`internal:attr`){let{name:t,value:r,caseSensitive:i}=bn(n.body,!0).attributes[0],o=r,c=!!i;if(t===`placeholder`){a.push([e.generateLocator(s,`placeholder`,o,{exact:c})]);continue}if(t===`alt`){a.push([e.generateLocator(s,`alt`,o,{exact:c})]);continue}if(t===`title`){a.push([e.generateLocator(s,`title`,o,{exact:c})]);continue}}if(n.name===`internal:control`&&n.body===`enter-frame`){let n=a[a.length-1],r=i[t-1],c=n.map(t=>e.chainLocators([t,e.generateLocator(s,`frame`,``)]));[`xpath`,`css`].includes(r.name)&&c.push(e.generateLocator(s,`frame-locator`,_n({parts:[r]})),e.generateLocator(s,`frame-locator`,_n({parts:[r]},!0))),n.splice(0,n.length,...c),o=`frame-locator`;continue}let c=i[t+1],l=_n({parts:[n]}),u=e.generateLocator(s,`default`,l);if(c&&[`internal:has-text`,`internal:has-not-text`].includes(c.name)){let{exact:n,text:r}=Dn(c.body);if(!n){let i=e.generateLocator(`locator`,c.name===`internal:has-text`?`has-text`:`has-not-text`,r,{exact:n}),o={};c.name===`internal:has-text`?o.hasText=r:o.hasNotText=r;let d=e.generateLocator(s,`default`,l,o);a.push([e.chainLocators([u,i]),d]),t++;continue}}let d;if([`xpath`,`css`].includes(n.name)){let t=_n({parts:[n]},!0);d=e.generateLocator(s,`default`,t)}a.push([u,d].filter(Boolean))}return En(e,a,r)}function En(e,t,n){let r=t.map(()=>``),i=[],a=o=>{if(o===t.length)return i.push(e.chainLocators(r)),i.length<n;for(let e of t[o])if(r[o]=e,!a(o+1))return!1;return!0};return a(0),i}function Dn(e){let t=!1,n=e.match(/^\/(.*)\/([igm]*)$/);return n?{text:new RegExp(n[1],n[2])}:(e.endsWith(`"`)?(e=JSON.parse(e),t=!0):e.endsWith(`"s`)?(e=JSON.parse(e.substring(0,e.length-1)),t=!0):e.endsWith(`"i`)&&(e=JSON.parse(e.substring(0,e.length-1)),t=!1),{exact:t,text:e})}var On={javascript:class{constructor(e){this.preferredQuote=e}generateLocator(e,t,n,r={}){switch(t){case`default`:return r.hasText===void 0?r.hasNotText===void 0?`locator(${this.quote(n)})`:`locator(${this.quote(n)}, { hasNotText: ${this.toHasText(r.hasNotText)} })`:`locator(${this.quote(n)}, { hasText: ${this.toHasText(r.hasText)} })`;case`frame-locator`:return`frameLocator(${this.quote(n)})`;case`frame`:return`contentFrame()`;case`nth`:return`nth(${n})`;case`first`:return`first()`;case`last`:return`last()`;case`visible`:return`filter({ visible: ${n===`true`?`true`:`false`} })`;case`role`:let e=[];kn(r.name)?e.push(`name: ${this.regexToSourceString(r.name)}`):typeof r.name==`string`&&e.push(`name: ${this.quote(r.name)}`),kn(r.description)?e.push(`description: ${this.regexToSourceString(r.description)}`):typeof r.description==`string`&&e.push(`description: ${this.quote(r.description)}`),r.exact&&(typeof r.name==`string`||typeof r.description==`string`)&&e.push(`exact: true`);for(let{name:t,value:n}of r.attrs)e.push(`${t}: ${typeof n==`string`?this.quote(n):n}`);let i=e.length?`, { ${e.join(`, `)} }`:``;return`getByRole(${this.quote(n)}${i})`;case`has-text`:return`filter({ hasText: ${this.toHasText(n)} })`;case`has-not-text`:return`filter({ hasNotText: ${this.toHasText(n)} })`;case`has`:return`filter({ has: ${n} })`;case`hasNot`:return`filter({ hasNot: ${n} })`;case`and`:return`and(${n})`;case`or`:return`or(${n})`;case`chain`:return`locator(${n})`;case`test-id`:return`getByTestId(${this.toTestIdValue(n)})`;case`text`:return this.toCallWithExact(`getByText`,n,!!r.exact);case`alt`:return this.toCallWithExact(`getByAltText`,n,!!r.exact);case`placeholder`:return this.toCallWithExact(`getByPlaceholder`,n,!!r.exact);case`label`:return this.toCallWithExact(`getByLabel`,n,!!r.exact);case`title`:return this.toCallWithExact(`getByTitle`,n,!!r.exact);default:throw Error(`Unknown selector kind `+t)}}chainLocators(e){return e.join(`.`)}regexToSourceString(e){return t(String(e))}toCallWithExact(e,t,n){return kn(t)?`${e}(${this.regexToSourceString(t)})`:n?`${e}(${this.quote(t)}, { exact: true })`:`${e}(${this.quote(t)})`}toHasText(e){return kn(e)?this.regexToSourceString(e):this.quote(e)}toTestIdValue(e){return kn(e)?this.regexToSourceString(e):this.quote(e)}quote(e){return c(e,this.preferredQuote??`'`)}},python:class{generateLocator(e,t,r,i={}){switch(t){case`default`:return i.hasText===void 0?i.hasNotText===void 0?`locator(${this.quote(r)})`:`locator(${this.quote(r)}, has_not_text=${this.toHasText(i.hasNotText)})`:`locator(${this.quote(r)}, has_text=${this.toHasText(i.hasText)})`;case`frame-locator`:return`frame_locator(${this.quote(r)})`;case`frame`:return`content_frame`;case`nth`:return`nth(${r})`;case`first`:return`first`;case`last`:return`last`;case`visible`:return`filter(visible=${r===`true`?`True`:`False`})`;case`role`:let e=[];kn(i.name)?e.push(`name=${this.regexToString(i.name)}`):typeof i.name==`string`&&e.push(`name=${this.quote(i.name)}`),kn(i.description)?e.push(`description=${this.regexToString(i.description)}`):typeof i.description==`string`&&e.push(`description=${this.quote(i.description)}`),i.exact&&(typeof i.name==`string`||typeof i.description==`string`)&&e.push(`exact=True`);for(let{name:t,value:r}of i.attrs){let i=typeof r==`string`?this.quote(r):r;typeof r==`boolean`&&(i=r?`True`:`False`),e.push(`${n(t)}=${i}`)}let a=e.length?`, ${e.join(`, `)}`:``;return`get_by_role(${this.quote(r)}${a})`;case`has-text`:return`filter(has_text=${this.toHasText(r)})`;case`has-not-text`:return`filter(has_not_text=${this.toHasText(r)})`;case`has`:return`filter(has=${r})`;case`hasNot`:return`filter(has_not=${r})`;case`and`:return`and_(${r})`;case`or`:return`or_(${r})`;case`chain`:return`locator(${r})`;case`test-id`:return`get_by_test_id(${this.toTestIdValue(r)})`;case`text`:return this.toCallWithExact(`get_by_text`,r,!!i.exact);case`alt`:return this.toCallWithExact(`get_by_alt_text`,r,!!i.exact);case`placeholder`:return this.toCallWithExact(`get_by_placeholder`,r,!!i.exact);case`label`:return this.toCallWithExact(`get_by_label`,r,!!i.exact);case`title`:return this.toCallWithExact(`get_by_title`,r,!!i.exact);default:throw Error(`Unknown selector kind `+t)}}chainLocators(e){return e.join(`.`)}regexToString(e){let n=e.flags.includes(`i`)?`, re.IGNORECASE`:``;return`re.compile(r"${t(e.source).replace(/\\\//,`/`).replace(/"/g,`\\"`)}"${n})`}toCallWithExact(e,t,n){return kn(t)?`${e}(${this.regexToString(t)})`:n?`${e}(${this.quote(t)}, exact=True)`:`${e}(${this.quote(t)})`}toHasText(e){return kn(e)?this.regexToString(e):`${this.quote(e)}`}toTestIdValue(e){return kn(e)?this.regexToString(e):this.quote(e)}quote(e){return c(e,`"`)}},java:class{generateLocator(e,t,i,a={}){let o;switch(e){case`page`:o=`Page`;break;case`frame-locator`:o=`FrameLocator`;break;case`locator`:o=`Locator`;break}switch(t){case`default`:return a.hasText===void 0?a.hasNotText===void 0?`locator(${this.quote(i)})`:`locator(${this.quote(i)}, new ${o}.LocatorOptions().setHasNotText(${this.toHasText(a.hasNotText)}))`:`locator(${this.quote(i)}, new ${o}.LocatorOptions().setHasText(${this.toHasText(a.hasText)}))`;case`frame-locator`:return`frameLocator(${this.quote(i)})`;case`frame`:return`contentFrame()`;case`nth`:return`nth(${i})`;case`first`:return`first()`;case`last`:return`last()`;case`visible`:return`filter(new ${o}.FilterOptions().setVisible(${i===`true`?`true`:`false`}))`;case`role`:let e=[];kn(a.name)?e.push(`.setName(${this.regexToString(a.name)})`):typeof a.name==`string`&&e.push(`.setName(${this.quote(a.name)})`),kn(a.description)?e.push(`.setDescription(${this.regexToString(a.description)})`):typeof a.description==`string`&&e.push(`.setDescription(${this.quote(a.description)})`),a.exact&&(typeof a.name==`string`||typeof a.description==`string`)&&e.push(`.setExact(true)`);for(let{name:t,value:n}of a.attrs)e.push(`.set${r(t)}(${typeof n==`string`?this.quote(n):n})`);let s=e.length?`, new ${o}.GetByRoleOptions()${e.join(``)}`:``;return`getByRole(AriaRole.${n(i).toUpperCase()}${s})`;case`has-text`:return`filter(new ${o}.FilterOptions().setHasText(${this.toHasText(i)}))`;case`has-not-text`:return`filter(new ${o}.FilterOptions().setHasNotText(${this.toHasText(i)}))`;case`has`:return`filter(new ${o}.FilterOptions().setHas(${i}))`;case`hasNot`:return`filter(new ${o}.FilterOptions().setHasNot(${i}))`;case`and`:return`and(${i})`;case`or`:return`or(${i})`;case`chain`:return`locator(${i})`;case`test-id`:return`getByTestId(${this.toTestIdValue(i)})`;case`text`:return this.toCallWithExact(o,`getByText`,i,!!a.exact);case`alt`:return this.toCallWithExact(o,`getByAltText`,i,!!a.exact);case`placeholder`:return this.toCallWithExact(o,`getByPlaceholder`,i,!!a.exact);case`label`:return this.toCallWithExact(o,`getByLabel`,i,!!a.exact);case`title`:return this.toCallWithExact(o,`getByTitle`,i,!!a.exact);default:throw Error(`Unknown selector kind `+t)}}chainLocators(e){return e.join(`.`)}regexToString(e){let n=e.flags.includes(`i`)?`, Pattern.CASE_INSENSITIVE`:``;return`Pattern.compile(${this.quote(t(e.source))}${n})`}toCallWithExact(e,t,n,i){return kn(n)?`${t}(${this.regexToString(n)})`:i?`${t}(${this.quote(n)}, new ${e}.${r(t)}Options().setExact(true))`:`${t}(${this.quote(n)})`}toHasText(e){return kn(e)?this.regexToString(e):this.quote(e)}toTestIdValue(e){return kn(e)?this.regexToString(e):this.quote(e)}quote(e){return c(e,`"`)}},csharp:class{generateLocator(e,t,n,i={}){switch(t){case`default`:return i.hasText===void 0?i.hasNotText===void 0?`Locator(${this.quote(n)})`:`Locator(${this.quote(n)}, new() { ${this.toHasNotText(i.hasNotText)} })`:`Locator(${this.quote(n)}, new() { ${this.toHasText(i.hasText)} })`;case`frame-locator`:return`FrameLocator(${this.quote(n)})`;case`frame`:return`ContentFrame`;case`nth`:return`Nth(${n})`;case`first`:return`First`;case`last`:return`Last`;case`visible`:return`Filter(new() { Visible = ${n===`true`?`true`:`false`} })`;case`role`:let e=[];kn(i.name)?e.push(`NameRegex = ${this.regexToString(i.name)}`):typeof i.name==`string`&&e.push(`Name = ${this.quote(i.name)}`),kn(i.description)?e.push(`DescriptionRegex = ${this.regexToString(i.description)}`):typeof i.description==`string`&&e.push(`Description = ${this.quote(i.description)}`),i.exact&&(typeof i.name==`string`||typeof i.description==`string`)&&e.push(`Exact = true`);for(let{name:t,value:n}of i.attrs)e.push(`${r(t)} = ${typeof n==`string`?this.quote(n):n}`);let a=e.length?`, new() { ${e.join(`, `)} }`:``;return`GetByRole(AriaRole.${r(n)}${a})`;case`has-text`:return`Filter(new() { ${this.toHasText(n)} })`;case`has-not-text`:return`Filter(new() { ${this.toHasNotText(n)} })`;case`has`:return`Filter(new() { Has = ${n} })`;case`hasNot`:return`Filter(new() { HasNot = ${n} })`;case`and`:return`And(${n})`;case`or`:return`Or(${n})`;case`chain`:return`Locator(${n})`;case`test-id`:return`GetByTestId(${this.toTestIdValue(n)})`;case`text`:return this.toCallWithExact(`GetByText`,n,!!i.exact);case`alt`:return this.toCallWithExact(`GetByAltText`,n,!!i.exact);case`placeholder`:return this.toCallWithExact(`GetByPlaceholder`,n,!!i.exact);case`label`:return this.toCallWithExact(`GetByLabel`,n,!!i.exact);case`title`:return this.toCallWithExact(`GetByTitle`,n,!!i.exact);default:throw Error(`Unknown selector kind `+t)}}chainLocators(e){return e.join(`.`)}regexToString(e){let n=e.flags.includes(`i`)?`, RegexOptions.IgnoreCase`:``;return`new Regex(${this.quote(t(e.source))}${n})`}toCallWithExact(e,t,n){return kn(t)?`${e}(${this.regexToString(t)})`:n?`${e}(${this.quote(t)}, new() { Exact = true })`:`${e}(${this.quote(t)})`}toHasText(e){return kn(e)?`HasTextRegex = ${this.regexToString(e)}`:`HasText = ${this.quote(e)}`}toTestIdValue(e){return kn(e)?this.regexToString(e):this.quote(e)}toHasNotText(e){return kn(e)?`HasNotTextRegex = ${this.regexToString(e)}`:`HasNotText = ${this.quote(e)}`}quote(e){return c(e,`"`)}},jsonl:class{generateLocator(e,t,n,r={}){return JSON.stringify({kind:t,body:n,options:r})}chainLocators(e){let t=e.map(e=>JSON.parse(e));for(let e=0;e<t.length-1;++e)t[e].next=t[e+1];return JSON.stringify(t[0])}}};function kn(e){return e instanceof RegExp}var An=new Map;function jn({name:e,rootItem:t,render:n,title:r,icon:i,isError:a,isVisible:o,selectedItem:s,onAccepted:c,onSelected:l,onHighlighted:u,treeState:d,setTreeState:f,noItemsMessage:p,dataTestId:m,autoExpandDepth:h,revealSelectedKey:g}){let _=T.useMemo(()=>Pn(t,s,d.expandedItems,h||0,o),[t,s,d,h,o]),v=T.useRef(null),[y,b]=T.useState();T.useEffect(()=>{u?.(y)},[u,y]),T.useEffect(()=>{let t=v.current;if(!t)return;let n=()=>{An.set(e,t.scrollTop)};return t.addEventListener(`scroll`,n,{passive:!0}),()=>t.removeEventListener(`scroll`,n)},[e]),T.useEffect(()=>{v.current&&(v.current.scrollTop=An.get(e)||0)},[e]),T.useEffect(()=>{if(g===void 0)return;let e=v.current?.querySelector(`[aria-selected="true"]`);e&&A(e)},[g]);let x=T.useCallback(e=>{let{expanded:t}=_.get(e);if(t){for(let t=s;t;t=t.parent)if(t===e){l?.(e);break}d.expandedItems.set(e.id,!1)}else d.expandedItems.set(e.id,!0);f({...d})},[_,s,l,d,f]),S=T.useCallback(e=>{let{expanded:t}=_.get(e),n=[e];for(;n.length;){let e=n.pop();n.push(...e.children),d.expandedItems.set(e.id,!t)}f({...d})},[_,d,f]);return(0,M.jsx)(`div`,{className:k(`tree-view vbox`,e+`-tree-view`),"data-testid":m||e+`-tree`,children:(0,M.jsxs)(`div`,{className:k(`tree-view-content`),role:_.size>0?`tree`:void 0,tabIndex:0,onKeyDown:e=>{if(s&&e.key===`Enter`){c?.(s);return}if(e.key!==`ArrowDown`&&e.key!==`ArrowUp`&&e.key!==`ArrowLeft`&&e.key!==`ArrowRight`)return;if(e.stopPropagation(),e.preventDefault(),s&&e.key===`ArrowLeft`){let{expanded:e,parent:t}=_.get(s);e?(d.expandedItems.set(s.id,!1),f({...d})):t&&l?.(t);return}if(s&&e.key===`ArrowRight`){s.children.length&&(d.expandedItems.set(s.id,!0),f({...d}));return}let t=s;if(e.key===`ArrowDown`&&(s?t=_.get(s).next:_.size&&(t=[..._.keys()][0])),e.key===`ArrowUp`){if(s)t=_.get(s).prev;else if(_.size){let e=[..._.keys()];t=e[e.length-1]}}u?.(void 0),t&&l?.(t),b(void 0)},ref:v,children:[p&&_.size===0&&(0,M.jsx)(`div`,{className:`tree-view-empty`,children:p}),t.children.map(e=>_.get(e)&&(0,M.jsx)(Mn,{item:e,treeItems:_,selectedItem:s,onSelected:l,onAccepted:c,isError:a,toggleExpanded:x,toggleSubtree:S,highlightedItem:y,setHighlightedItem:b,render:n,icon:i,title:r},e.id))]})})}function Mn({item:e,treeItems:t,selectedItem:n,onSelected:r,highlightedItem:i,setHighlightedItem:a,isError:o,onAccepted:s,toggleExpanded:c,toggleSubtree:l,render:u,title:d,icon:f}){let p=T.useId(),m=T.useRef(null);T.useEffect(()=>{n?.id===e.id&&m.current&&A(m.current)},[e.id,n?.id]);let h=t.get(e),g=h.depth,_=h.expanded,v=`codicon-blank`;typeof _==`boolean`&&(v=_?`codicon-chevron-down`:`codicon-chevron-right`);let y=u(e),b=_&&e.children.length?e.children:[],x=d?.(e),S=f?.(e)||`codicon-blank`;return(0,M.jsxs)(`div`,{ref:m,role:`treeitem`,"aria-selected":e===n,"aria-expanded":_,"aria-controls":p,title:x,className:`vbox`,style:{flex:`none`},children:[(0,M.jsxs)(`div`,{onDoubleClick:()=>s?.(e),className:k(`tree-view-entry`,n===e&&`selected`,i===e&&`highlighted`,o?.(e)&&`error`),onClick:()=>r?.(e),onMouseEnter:()=>a(e),onMouseLeave:()=>a(void 0),children:[g?Array(g).fill(0).map((e,t)=>(0,M.jsx)(`div`,{className:`tree-view-indent`},`indent-`+t)):void 0,(0,M.jsx)(`div`,{"aria-hidden":`true`,className:`codicon `+v,style:{minWidth:16,marginRight:4},onDoubleClick:e=>{e.preventDefault(),e.stopPropagation()},onClick:t=>{t.stopPropagation(),t.preventDefault(),t.altKey?l(e):c(e)}}),f&&(0,M.jsx)(`div`,{className:`codicon `+S,style:{minWidth:16,marginRight:4},"aria-label":`[`+S.replace(`codicon`,`icon`)+`]`}),typeof y==`string`?(0,M.jsx)(`div`,{style:{textOverflow:`ellipsis`,overflow:`hidden`},children:y}):y]}),!!b.length&&(0,M.jsx)(`div`,{id:p,role:`group`,children:b.map(e=>t.get(e)&&(0,M.jsx)(Mn,{item:e,treeItems:t,selectedItem:n,onSelected:r,onAccepted:s,isError:o,toggleExpanded:c,toggleSubtree:l,highlightedItem:i,setHighlightedItem:a,render:u,title:d,icon:f},e.id))})]})}function Nn(e,t,n){let r=n.get(e.id);if(r!==void 0)return r;let i=t(e),a=i===`if-needed`?e.children.some(e=>Nn(e,t,n)):i;return n.set(e.id,a),a}function Pn(e,t,n,r,i=()=>!0){let a=new Map;if(!Nn(e,i,a))return new Map;let o=new Map,s=new Set;for(let e=t?.parent;e;e=e.parent)s.add(e.id);let c=null,l=(t,u)=>{for(let d of t.children){if(!Nn(d,i,a))continue;let f=s.has(d.id)||n.get(d.id),p=r>u&&o.size<25&&f!==!1,m=d.children.length?f??p:void 0,h={depth:u,expanded:m,parent:e===t?null:t,next:null,prev:c};c&&(o.get(c).next=d),c=d,o.set(d,h),m&&l(d,u+1)}};return l(e,0),o}var Fn=T.forwardRef(function({children:e,title:t=``,icon:n,disabled:r=!1,toggled:i=!1,onClick:a=()=>{},style:o,testId:s,className:c,ariaLabel:l,errorBadge:u},d){let f=T.useId();return(0,M.jsxs)(`button`,{ref:d,className:k(c,`toolbar-button`,n,i&&`toggled`),onMouseDown:In,onClick:a,onDoubleClick:In,title:t,disabled:!!r,style:o,"data-testid":s,"aria-label":l||t,"aria-describedby":u?f:void 0,children:[n&&(0,M.jsx)(`span`,{className:`codicon codicon-${n}`,style:e?{marginRight:5}:{}}),e,u&&(0,M.jsx)(`span`,{id:f,className:`toolbar-button-error-badge`,title:u,"aria-label":u})]})}),In=e=>{e.stopPropagation(),e.preventDefault()};function Ln(e){return e===`scheduled`?`codicon-clock`:e===`running`?`codicon-loading`:e===`failed`?`codicon-error`:e===`passed`?`codicon-check`:e===`skipped`?`codicon-circle-slash`:`codicon-circle-outline`}function Rn(e){return e===`scheduled`?`Pending`:e===`running`?`Running`:e===`failed`?`Failed`:e===`passed`?`Passed`:e===`skipped`?`Skipped`:`Did not run`}var zn=jn,Bn=({actions:e,selectedAction:t,selectedTime:n,setSelectedTime:r,treeState:i,setTreeState:a,sdkLanguage:o,onSelected:s,onHighlighted:c,revealConsole:l,revealActionAttachment:u,isLive:d,actionFilterText:f})=>{let{rootItem:p,itemMap:m}=T.useMemo(()=>Je(e),[e]),{selectedItem:h}=T.useMemo(()=>({selectedItem:t?m.get(t.callId):void 0}),[m,t]),g=T.useCallback(e=>!!e.action.error?.message,[]),_=T.useCallback(e=>r({minimum:e.action.startTime,maximum:e.action.endTime}),[r]),v=T.useCallback(e=>{let t=!!u&&!!e.action.attachments?.length;return Vn(e.action,{sdkLanguage:o,revealConsole:l,revealActionAttachment:()=>u?.(e.action.callId),isLive:d,showDuration:!0,showBadges:!0,showAttachments:t})},[d,l,u,o]),y=T.useCallback(e=>{if(!(!n||!e.action||e.action.startTime<=n.maximum&&e.action.endTime>=n.minimum))return!1;let t=Hn(e.action).title;return f?t.toLowerCase().includes(f.toLowerCase())?!0:`if-needed`:!0},[n,f]),b=T.useCallback(e=>{s?.(e.action)},[s]),x=T.useCallback(e=>{c?.(e?.action)},[c]),[S,C]=T.useState(),w=T.useCallback(()=>{r(void 0),C(e=>(e??0)+1)},[r]);return(0,M.jsxs)(`div`,{className:`vbox action-list-container`,children:[n&&(0,M.jsxs)(`div`,{className:`action-list-show-all`,onClick:w,children:[(0,M.jsx)(`span`,{className:`codicon codicon-triangle-left`}),`Show all`]}),(0,M.jsx)(zn,{name:`actions`,rootItem:p,treeState:i,setTreeState:a,selectedItem:h,onSelected:b,onHighlighted:x,onAccepted:_,isError:g,isVisible:y,render:v,autoExpandDepth:f?.trim()?5:0,revealSelectedKey:S})]})},Vn=(e,t)=>{let{sdkLanguage:n,revealConsole:r,revealActionAttachment:i,isLive:a,showDuration:o,showBadges:s,showAttachments:c}=t,{errors:l,warnings:u}=$e(e),d=e.params.selector?xn(n||`javascript`,e.params.selector):void 0,f=e.class===`Test`&&e.method===`test.step`&&e.annotations?.some(e=>e.type===`skip`),p=``;e.endTime?p=st(e.endTime-e.startTime):e.error?p=`Timed out`:a||(p=`-`);let{elements:m,title:h}=Hn(e);return(0,M.jsxs)(`div`,{className:`action-title vbox`,children:[(0,M.jsxs)(`div`,{className:`hbox`,children:[(0,M.jsx)(`span`,{className:`action-title-method`,title:h,children:m}),(o||s||c||f)&&(0,M.jsx)(`div`,{className:`spacer`}),c&&(0,M.jsx)(Fn,{icon:`attach`,title:`Open Attachment`,onClick:()=>i?.()}),o&&!f&&(0,M.jsx)(`div`,{className:`action-duration`,children:p||(0,M.jsx)(`span`,{className:`codicon codicon-loading`})}),f&&(0,M.jsx)(`span`,{className:k(`action-skipped`,`codicon`,Ln(`skipped`)),title:`skipped`}),s&&(0,M.jsxs)(`div`,{className:`action-icons`,onClick:()=>r?.(),children:[!!l&&(0,M.jsxs)(`div`,{className:`action-icon`,children:[(0,M.jsx)(`span`,{className:`codicon codicon-error`}),(0,M.jsx)(`span`,{className:`action-icon-value`,children:l})]}),!!u&&(0,M.jsxs)(`div`,{className:`action-icon`,children:[(0,M.jsx)(`span`,{className:`codicon codicon-warning`}),(0,M.jsx)(`span`,{className:`action-icon-value`,children:u})]})]})]}),d&&(0,M.jsx)(`div`,{className:`action-title-selector`,title:d,children:d})]})};function Hn(e,t){let n=e.title??Ae({type:e.class,method:e.method})?.title??e.method;n=n.replace(/\n/g,` `);let r=[],i=[],a=0,o=/\{([^}]+)\}/g,s;for(;(s=o.exec(n))!==null;){let[t,o]=s,c=n.slice(a,s.index);r.push(c),i.push(c);let l=je(e.params,o);l===void 0?(r.push(t),i.push(t)):s.index===0?(r.push(l),i.push(l)):(r.push((0,M.jsx)(`span`,{className:`action-title-param`,children:l},r.length)),i.push(l)),a=s.index+t.length}if(a<n.length){let e=n.slice(a);r.push(e),i.push(e)}let c=e.params.selector?xn(t||`javascript`,e.params.selector):void 0;return c&&(i.push(` `),i.push(c)),{elements:r,title:i.join(``)}}var Un=({value:e,description:t})=>{let[n,r]=T.useState(`copy`),i=T.useCallback(()=>{(typeof e==`function`?e():Promise.resolve(e)).then(e=>{navigator.clipboard.writeText(e).then(()=>{r(`check`),setTimeout(()=>{r(`copy`)},3e3)},()=>{r(`close`)})},()=>{r(`close`)})},[e]);return(0,M.jsx)(Fn,{title:t||`Copy`,icon:n,onClick:i})},Wn=({value:e,description:t,copiedDescription:n=t,style:r})=>{let[i,a]=T.useState(!1);return(0,M.jsx)(Fn,{style:r,title:t,onClick:T.useCallback(async()=>{let t=typeof e==`function`?await e():e;await navigator.clipboard.writeText(t),a(!0),setTimeout(()=>a(!1),3e3)},[e]),className:`copy-to-clipboard-text-button`,children:i?n:t})},Gn=({text:e})=>(0,M.jsx)(`div`,{className:`fill`,style:{display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:24,fontWeight:`bold`,opacity:.5},children:e}),Kn=({action:e,startTimeOffset:t,sdkLanguage:n})=>{let r=T.useMemo(()=>Object.keys(e?.params??{}).filter(e=>e!==`info`),[e]);if(!e)return(0,M.jsx)(Gn,{text:`No action selected`});let i=st(e.startTime-t),{title:a}=Hn(e);return(0,M.jsxs)(`div`,{className:`call-tab`,children:[(0,M.jsx)(`div`,{className:`call-line`,children:a}),(0,M.jsx)(`div`,{className:`call-section`,children:`Time`}),Jn({name:`start`,type:`literal`,text:i}),Jn({name:`duration`,type:`literal`,text:qn(e)}),!!r.length&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`div`,{className:`call-section`,children:`Parameters`}),r.map(t=>Jn(Yn(e,t,e.params[t],n)))]}),!!e.result&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`div`,{className:`call-section`,children:`Return value`}),Object.keys(e.result).map(t=>Jn(Yn(e,t,e.result[t],n)))]})]})};function qn(e){return e.endTime?st(e.endTime-e.startTime):e.error?`Timed Out`:`Running`}function Jn(e){let t=e.text;return t.length>1e3&&(t=t.slice(0,1e3)+`…`),t=t.replace(/\n/g,`↵`),e.type===`string`&&(t=`"${t}"`),(0,M.jsxs)(`div`,{className:`call-line`,children:[e.name,`:`,(0,M.jsx)(`span`,{className:k(`call-value`,e.type),title:t,children:t}),[`literal`,`string`,`number`,`object`,`locator`].includes(e.type)&&(0,M.jsx)(Un,{value:e.text})]},e.name)}function Yn(e,t,n,r){let i=e.method.includes(`eval`)||e.method===`waitForFunction`;if(t===`files`)return{text:`<files>`,type:`string`,name:t};if((t===`eventInit`||t===`expectedValue`||t===`arg`&&i)&&(n=Xn(n.value,Array(10).fill({handle:`<handle>`}))),t===`value`&&i&&(n=Xn(n,Array(10).fill({handle:`<handle>`}))),t===`received`&&e.method===`expect`){let e=n&&typeof n==`object`&&(`value`in n||`ariaSnapshot`in n)?n.value:n;n=e===void 0?void 0:Xn(e,Array(10).fill({handle:`<handle>`}))}if(t===`selector`)return{text:Cn(r||`javascript`,e.params.selector),type:`locator`,name:`locator`};let a=typeof n;return a!==`object`||n===null?{text:String(n),type:a,name:t}:n.guid?{text:`<handle>`,type:`handle`,name:t}:{text:JSON.stringify(n),type:`object`,name:t}}function Xn(e,t){if(e.n!==void 0)return e.n;if(e.s!==void 0)return e.s;if(e.b!==void 0)return e.b;if(e.v!==void 0){if(e.v===`undefined`)return;if(e.v===`null`)return null;if(e.v===`NaN`)return NaN;if(e.v===`Infinity`)return 1/0;if(e.v===`-Infinity`)return-1/0;if(e.v===`-0`)return-0}if(e.d!==void 0)return new Date(e.d);if(e.r!==void 0)return new RegExp(e.r.p,e.r.f);if(e.a!==void 0)return e.a.map(e=>Xn(e,t));if(e.o!==void 0){let n={};for(let{k:r,v:i}of e.o)n[r]=Xn(i,t);return n}return e.h===void 0||t===void 0?`<object>`:t[e.h]}var Zn=new Map;function Qn({name:e,items:t=[],id:n,render:r,icon:i,isError:a,isWarning:o,isInfo:s,selectedItem:c,onAccepted:l,onSelected:u,onHighlighted:d,onIconClicked:f,noItemsMessage:p,dataTestId:m,notSelectable:h,ariaLabel:g}){let _=T.useRef(null),[v,y]=T.useState();return T.useEffect(()=>{d?.(v)},[d,v]),T.useEffect(()=>{let t=_.current;if(!t)return;let n=()=>{Zn.set(e,t.scrollTop)};return t.addEventListener(`scroll`,n,{passive:!0}),()=>t.removeEventListener(`scroll`,n)},[e]),T.useEffect(()=>{_.current&&(_.current.scrollTop=Zn.get(e)||0)},[e]),(0,M.jsx)(`div`,{className:k(`list-view vbox`,e+`-list-view`),role:t.length>0?`listbox`:void 0,"aria-label":g,children:(0,M.jsxs)(`div`,{className:k(`list-view-content`,h&&`not-selectable`),tabIndex:0,onKeyDown:e=>{if(c&&e.key===`Enter`){l?.(c,t.indexOf(c));return}if(e.key!==`ArrowDown`&&e.key!==`ArrowUp`)return;e.stopPropagation(),e.preventDefault();let n=c?t.indexOf(c):-1,r=n;e.key===`ArrowDown`&&(r=n===-1?0:Math.min(n+1,t.length-1)),e.key===`ArrowUp`&&(r=n===-1?t.length-1:Math.max(n-1,0));let i=_.current?.children.item(r);A(i||void 0),d?.(void 0),u?.(t[r],r),y(void 0)},ref:_,children:[p&&t.length===0&&(0,M.jsx)(`div`,{className:`list-view-empty`,children:p}),t.map((e,t)=>{let d=r(e,t);return(0,M.jsxs)(`div`,{onDoubleClick:()=>l?.(e,t),role:`option`,className:k(`list-view-entry`,c===e&&`selected`,!h&&v===e&&`highlighted`,a?.(e,t)&&`error`,o?.(e,t)&&`warning`,s?.(e,t)&&`info`),"aria-selected":c===e,onClick:()=>u?.(e,t),onMouseEnter:()=>y(e),onMouseLeave:()=>y(void 0),children:[i&&(0,M.jsx)(`div`,{className:`codicon `+(i(e,t)||`codicon-blank`),style:{minWidth:16,marginRight:4},onDoubleClick:e=>{e.preventDefault(),e.stopPropagation()},onClick:n=>{n.stopPropagation(),n.preventDefault(),f?.(e,t)}}),typeof d==`string`?(0,M.jsx)(`div`,{style:{textOverflow:`ellipsis`,overflow:`hidden`},children:d}):d]},n?.(e,t)||t)})]})})}var $n=Qn,er=({action:e,isLive:t})=>{let n=T.useMemo(()=>{if(!e||!e.log.length)return[];let n=e.log,r=e.context.wallTime-e.context.startTime,i=[];for(let a=0;a<n.length;++a){let o=``;if(n[a].time!==-1){let i=n[a]?.time;o=a+1<n.length?st(n[a+1].time-i):e.endTime>0?st(e.endTime-i):t?st(Date.now()-r-i):`-`}i.push({message:n[a].message,time:o})}return i},[e,t]);return n.length?(0,M.jsx)($n,{name:`log`,ariaLabel:`Log entries`,items:n,render:e=>(0,M.jsxs)(`div`,{className:`log-list-item`,children:[(0,M.jsx)(`span`,{className:`log-list-duration`,children:e.time}),e.message]}),notSelectable:!0}):(0,M.jsx)(Gn,{text:`No log entries`})};function tr(e,t){let n=/(\x1b\[(\d+(;\d+)*)m)|([^\x1b]+)/g,r=[],i,a={},o=!1,s=t?.fg,c=t?.bg;for(;(i=n.exec(e))!==null;){let[,,e,,n]=i;if(e)for(let n of e.split(`;`)){let e=+n;switch(e){case 0:a={};break;case 1:a[`font-weight`]=`bold`;break;case 2:a.opacity=`0.8`;break;case 3:a[`font-style`]=`italic`;break;case 4:a[`text-decoration`]=`underline`;break;case 7:o=!0;break;case 8:a.display=`none`;break;case 9:a[`text-decoration`]=`line-through`;break;case 22:delete a[`font-weight`],delete a[`font-style`],delete a.opacity,delete a[`text-decoration`];break;case 23:delete a[`font-weight`],delete a[`font-style`],delete a.opacity;break;case 24:delete a[`text-decoration`];break;case 27:o=!1;break;case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:s=nr[e-30];break;case 39:s=t?.fg;break;case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:c=nr[e-40];break;case 49:c=t?.bg;break;case 53:a[`text-decoration`]=`overline`;break;case 90:case 91:case 92:case 93:case 94:case 95:case 96:case 97:s=rr[e-90];break;case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:c=rr[e-100];break}}else if(n){let e={...a},t=o?c:s;t!==void 0&&(e.color=t),o&&s&&(e[`background-color`]=s),r.push(`<span style="${ar(e)}">${ir(n)}</span>`)}}return r.join(``)}var nr={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)`},rr={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 ir(e){return e.replace(/[&"<>]/g,e=>({"&":`&amp;`,'"':`&quot;`,"<":`&lt;`,">":`&gt;`})[e])}function ar(e){return Object.entries(e).map(([e,t])=>`${e}: ${t}`).join(`; `)}var or=({error:e})=>(0,M.jsx)(`div`,{className:`error-message`,dangerouslySetInnerHTML:{__html:T.useMemo(()=>tr(e,{bg:`var(--vscode-editor-background)`,fg:`var(--vscode-editor-foreground)`}),[e])||``}}),sr=({cursor:e,onPaneMouseMove:t,onPaneMouseUp:n,onPaneDoubleClick:r})=>(T.useEffect(()=>{let i=document.createElement(`div`);return i.style.position=`fixed`,i.style.top=`0`,i.style.right=`0`,i.style.bottom=`0`,i.style.left=`0`,i.style.zIndex=`9999`,i.style.cursor=e,document.body.appendChild(i),t&&i.addEventListener(`mousemove`,t),n&&i.addEventListener(`mouseup`,n),r&&document.body.addEventListener(`dblclick`,r),()=>{t&&i.removeEventListener(`mousemove`,t),n&&i.removeEventListener(`mouseup`,n),r&&document.body.removeEventListener(`dblclick`,r),document.body.removeChild(i)}},[e,t,n,r]),(0,M.jsx)(M.Fragment,{})),cr={position:`absolute`,top:0,right:0,bottom:0,left:0},lr=({orientation:e,offsets:t,setOffsets:n,resizerColor:r,resizerWidth:i,minColumnWidth:a})=>{let o=a||0,[s,c]=T.useState(null),[l,u]=E(),d={position:`absolute`,right:e===`horizontal`?void 0:0,bottom:e===`horizontal`?0:void 0,width:e===`horizontal`?7:void 0,height:e===`horizontal`?void 0:7,borderTopWidth:e===`horizontal`?void 0:(7-i)/2,borderRightWidth:e===`horizontal`?(7-i)/2:void 0,borderBottomWidth:e===`horizontal`?void 0:(7-i)/2,borderLeftWidth:e===`horizontal`?(7-i)/2:void 0,borderColor:`transparent`,borderStyle:`solid`,cursor:e===`horizontal`?`ew-resize`:`ns-resize`};return(0,M.jsxs)(`div`,{style:{position:`absolute`,top:0,right:0,bottom:0,left:-(7-i)/2,zIndex:100,pointerEvents:`none`},ref:u,children:[!!s&&(0,M.jsx)(sr,{cursor:e===`horizontal`?`ew-resize`:`ns-resize`,onPaneMouseUp:()=>c(null),onPaneMouseMove:r=>{if(!r.buttons)c(null);else if(s){let i=e===`horizontal`?r.clientX-s.clientX:r.clientY-s.clientY,a=s.offset+i,c=s.index>0?t[s.index-1]:0,u=e===`horizontal`?l.width:l.height,d=Math.min(Math.max(c+o,a),u-o)-t[s.index];for(let e=s.index;e<t.length;++e)t[e]=t[e]+d;n([...t])}}}),t.map((t,n)=>(0,M.jsx)(`div`,{style:{...d,top:e===`horizontal`?0:t,left:e===`horizontal`?t:0,pointerEvents:`initial`},onMouseDown:e=>c({clientX:e.clientX,clientY:e.clientY,offset:t,index:n}),children:(0,M.jsx)(`div`,{style:{...cr,background:r}})},n))]})};async function ur(e){let t=new Image;return e&&(t.src=e,await new Promise((e,n)=>{t.onload=e,t.onerror=e})),t}var dr={backgroundImage:`linear-gradient(45deg, #80808020 25%, transparent 25%),
13
+ linear-gradient(-45deg, #80808020 25%, transparent 25%),
14
+ linear-gradient(45deg, transparent 75%, #80808020 75%),
15
+ linear-gradient(-45deg, transparent 75%, #80808020 75%)`,backgroundSize:`20px 20px`,backgroundPosition:`0 0, 0 10px, 10px -10px, -10px 0px`,boxShadow:`rgb(0 0 0 / 10%) 0px 1.8px 1.9px,
16
+ rgb(0 0 0 / 15%) 0px 6.1px 6.3px,
17
+ rgb(0 0 0 / 10%) 0px -2px 4px,
18
+ rgb(0 0 0 / 15%) 0px -6.1px 12px,
19
+ rgb(0 0 0 / 25%) 0px 6px 12px`},fr=({diff:e,noTargetBlank:t,hideDetails:n})=>{let[r,i]=T.useState(e.diff?`diff`:`actual`),[a,o]=T.useState(!1),[s,c]=T.useState(null),[l,u]=T.useState(`Expected`),[d,f]=T.useState(null),[p,m]=T.useState(null),[h,g]=E();T.useEffect(()=>{(async()=>{c(await ur(e.expected?.attachment.path)),u(e.expected?.title||`Expected`),f(await ur(e.actual?.attachment.path)),m(await ur(e.diff?.attachment.path))})()},[e]);let _=s&&d&&p,v=_?Math.max(s.naturalWidth,d.naturalWidth,200):500,y=_?Math.max(s.naturalHeight,d.naturalHeight,200):500,b=Math.min(1,(h.width-30)/v),x=Math.min(1,(h.width-50)/v/2),S=v*b,C=y*b,w={flex:`none`,margin:`0 10px`,cursor:`pointer`,userSelect:`none`};return(0,M.jsx)(`div`,{"data-testid":`test-result-image-mismatch`,style:{display:`flex`,flexDirection:`column`,alignItems:`center`,flex:`auto`},ref:g,children:_&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsxs)(`div`,{"data-testid":`test-result-image-mismatch-tabs`,style:{display:`flex`,margin:`10px 0 20px`},children:[e.diff&&(0,M.jsx)(`div`,{style:{...w,fontWeight:r===`diff`?600:`initial`},onClick:()=>i(`diff`),children:`Diff`}),(0,M.jsx)(`div`,{style:{...w,fontWeight:r===`actual`?600:`initial`},onClick:()=>i(`actual`),children:`Actual`}),(0,M.jsx)(`div`,{style:{...w,fontWeight:r===`expected`?600:`initial`},onClick:()=>i(`expected`),children:l}),(0,M.jsx)(`div`,{style:{...w,fontWeight:r===`sxs`?600:`initial`},onClick:()=>i(`sxs`),children:`Side by side`}),(0,M.jsx)(`div`,{style:{...w,fontWeight:r===`slider`?600:`initial`},onClick:()=>i(`slider`),children:`Slider`})]}),(0,M.jsxs)(`div`,{style:{display:`flex`,justifyContent:`center`,flex:`auto`,minHeight:C+60},children:[e.diff&&r===`diff`&&(0,M.jsx)(mr,{image:p,alt:`Diff`,hideSize:n,canvasWidth:S,canvasHeight:C,scale:b}),e.diff&&r===`actual`&&(0,M.jsx)(mr,{image:d,alt:`Actual`,hideSize:n,canvasWidth:S,canvasHeight:C,scale:b}),e.diff&&r===`expected`&&(0,M.jsx)(mr,{image:s,alt:l,hideSize:n,canvasWidth:S,canvasHeight:C,scale:b}),e.diff&&r===`slider`&&(0,M.jsx)(pr,{expectedImage:s,actualImage:d,hideSize:n,canvasWidth:S,canvasHeight:C,scale:b,expectedTitle:l}),e.diff&&r===`sxs`&&(0,M.jsxs)(`div`,{style:{display:`flex`},children:[(0,M.jsx)(mr,{image:s,title:l,hideSize:n,canvasWidth:x*v,canvasHeight:x*y,scale:x}),(0,M.jsx)(mr,{image:a?p:d,title:a?`Diff`:`Actual`,onClick:()=>o(!a),hideSize:n,canvasWidth:x*v,canvasHeight:x*y,scale:x})]}),!e.diff&&r===`actual`&&(0,M.jsx)(mr,{image:d,title:`Actual`,hideSize:n,canvasWidth:S,canvasHeight:C,scale:b}),!e.diff&&r===`expected`&&(0,M.jsx)(mr,{image:s,title:l,hideSize:n,canvasWidth:S,canvasHeight:C,scale:b}),!e.diff&&r===`sxs`&&(0,M.jsxs)(`div`,{style:{display:`flex`},children:[(0,M.jsx)(mr,{image:s,title:l,canvasWidth:x*v,canvasHeight:x*y,scale:x}),(0,M.jsx)(mr,{image:d,title:`Actual`,canvasWidth:x*v,canvasHeight:x*y,scale:x})]})]}),!n&&(0,M.jsxs)(`div`,{style:{alignSelf:`start`,lineHeight:`18px`,marginLeft:`15px`},children:[(0,M.jsx)(`div`,{children:e.diff&&(0,M.jsx)(`a`,{target:`_blank`,href:e.diff.attachment.path,rel:`noreferrer`,children:e.diff.attachment.name})}),(0,M.jsx)(`div`,{children:(0,M.jsx)(`a`,{target:t?``:`_blank`,href:e.actual.attachment.path,rel:`noreferrer`,children:e.actual.attachment.name})}),(0,M.jsx)(`div`,{children:(0,M.jsx)(`a`,{target:t?``:`_blank`,href:e.expected.attachment.path,rel:`noreferrer`,children:e.expected.attachment.name})})]})]})})},pr=({expectedImage:e,actualImage:t,canvasWidth:n,canvasHeight:r,scale:i,expectedTitle:a,hideSize:o})=>{let s={position:`absolute`,top:0,left:0},[c,l]=T.useState(n/2),u=e.naturalWidth===t.naturalWidth&&e.naturalHeight===t.naturalHeight;return(0,M.jsxs)(`div`,{style:{flex:`none`,display:`flex`,alignItems:`center`,flexDirection:`column`,userSelect:`none`},children:[!o&&(0,M.jsxs)(`div`,{style:{margin:5},children:[!u&&(0,M.jsx)(`span`,{style:{flex:`none`,margin:`0 5px`},children:`Actual `}),!u&&(0,M.jsx)(`span`,{children:t.naturalWidth}),!u&&(0,M.jsx)(`span`,{style:{flex:`none`,margin:`0 5px`},children:`x`}),!u&&(0,M.jsx)(`span`,{children:t.naturalHeight}),!u&&(0,M.jsxs)(`span`,{style:{flex:`none`,margin:`0 5px 0 15px`},children:[a,` `]}),(0,M.jsx)(`span`,{children:e.naturalWidth}),(0,M.jsx)(`span`,{style:{flex:`none`,margin:`0 5px`},children:`x`}),(0,M.jsx)(`span`,{children:e.naturalHeight})]}),(0,M.jsxs)(`div`,{style:{position:`relative`,width:n,height:r,margin:15,...dr},children:[(0,M.jsx)(lr,{orientation:`horizontal`,offsets:[c],setOffsets:e=>l(e[0]),resizerColor:`#57606a80`,resizerWidth:6}),(0,M.jsx)(`img`,{alt:a,style:{width:e.naturalWidth*i,height:e.naturalHeight*i},draggable:`false`,src:e.src}),(0,M.jsx)(`div`,{style:{...s,bottom:0,overflow:`hidden`,width:c,...dr},children:(0,M.jsx)(`img`,{alt:`Actual`,style:{width:t.naturalWidth*i,height:t.naturalHeight*i},draggable:`false`,src:t.src})})]})]})},mr=({image:e,title:t,alt:n,hideSize:r,canvasWidth:i,canvasHeight:a,scale:o,onClick:s})=>(0,M.jsxs)(`div`,{style:{flex:`none`,display:`flex`,alignItems:`center`,flexDirection:`column`},children:[!r&&(0,M.jsxs)(`div`,{style:{margin:5},children:[t&&(0,M.jsx)(`span`,{style:{flex:`none`,margin:`0 5px`},children:t}),(0,M.jsx)(`span`,{children:e.naturalWidth}),(0,M.jsx)(`span`,{style:{flex:`none`,margin:`0 5px`},children:`x`}),(0,M.jsx)(`span`,{children:e.naturalHeight})]}),(0,M.jsx)(`div`,{style:{display:`flex`,flex:`none`,width:i,height:a,margin:15,...dr},children:(0,M.jsx)(`img`,{width:e.naturalWidth*o,height:e.naturalHeight*o,alt:t||n,style:{cursor:s?`pointer`:`initial`},draggable:`false`,src:e.src,onClick:s})})]}),hr=`modulepreload`,gr=function(e,t){return new URL(e,t).href},_r={},vr=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,new URL(`../../../src/node/plugins/importAnalysisBuild.ts`,import.meta.url)).href}r=o(t.map(t=>{if(t=gr(t,n),t=s(t),t in _r)return;_r[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:hr,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},yr=({text:e,highlighter:t,mimeType:n,linkify:r,readOnly:i,highlight:a,revealLine:o,lineNumbers:s,isFocused:c,focusOnChange:l,wrapLines:u,onChange:d,dataTestId:f,placeholder:p})=>{let[m,h]=E(),[g]=T.useState(vr(()=>import(`./codeMirrorModule-BSEO6m_i.js`).then(e=>e.default),__vite__mapDeps([0,1]),import.meta.url)),_=T.useRef(null),[v,y]=T.useState();return T.useEffect(()=>{(async()=>{let e=await g;Sr(e);let a=h.current;if(!a)return;let o=wr(t)||Cr(n)||(r?`text/linkified`:``);if(_.current&&o===_.current.cm.getOption(`mode`)&&!!i===_.current.cm.getOption(`readOnly`)&&s===_.current.cm.getOption(`lineNumbers`)&&u===_.current.cm.getOption(`lineWrapping`)&&p===_.current.cm.getOption(`placeholder`))return;_.current?.cm?.getWrapperElement().remove();let l=e(a,{value:``,mode:o,readOnly:!!i,lineNumbers:s,lineWrapping:u,placeholder:p,matchBrackets:!0,autoCloseBrackets:!0,extraKeys:{"Ctrl-F":`findPersistent`,"Cmd-F":`findPersistent`,Tab:!1,"Shift-Tab":!1}});return _.current={cm:l},c&&l.focus(),y(l),l})()},[g,v,h,t,n,r,s,u,i,c,p]),T.useEffect(()=>{_.current&&_.current.cm.setSize(m.width,m.height)},[m]),T.useLayoutEffect(()=>{if(!v)return;let t=!1;if(v.getValue()!==e&&(v.setValue(e),t=!0,l&&(v.execCommand(`selectAll`),v.focus())),t||JSON.stringify(a)!==JSON.stringify(_.current.highlight)){for(let e of _.current.highlight||[])v.removeLineClass(e.line-1,`wrap`);for(let e of a||[])v.addLineClass(e.line-1,`wrap`,`source-line-${e.type}`);for(let e of _.current.widgets||[])v.removeLineWidget(e);for(let e of _.current.markers||[])e.clear();let e=[],t=[];for(let n of a||[]){if(n.type!==`subtle-error`&&n.type!==`error`)continue;let r=_.current?.cm.getLine(n.line-1);if(r){let e={};e.title=n.message||``,t.push(v.markText({line:n.line-1,ch:0},{line:n.line-1,ch:n.column||r.length},{className:`source-line-error-underline`,attributes:e}))}if(n.type===`error`){let t=document.createElement(`div`);t.innerHTML=tr(n.message||``,{bg:`var(--vscode-inputValidation-errorBackground)`,fg:`var(--vscode-editor-foreground)`}),t.className=`source-line-error-widget`,e.push(v.addLineWidget(n.line,t,{above:!0,coverGutter:!1}))}}_.current.highlight=a,_.current.widgets=e,_.current.markers=t}typeof o==`number`&&_.current.cm.lineCount()>=o&&v.scrollIntoView({line:Math.max(0,o-1),ch:0},50);let n;return d&&(n=()=>d(v.getValue()),v.on(`change`,n)),()=>{n&&v.off(`change`,n)}},[v,e,a,o,l,d]),(0,M.jsx)(`div`,{"data-testid":f,className:`cm-wrapper`,ref:h,onClick:br})};function br(e){if(!(e.target instanceof HTMLElement))return;let t;e.target.classList.contains(`cm-linkified`)?t=e.target.textContent:e.target.classList.contains(`cm-link`)&&e.target.nextElementSibling?.classList.contains(`cm-url`)&&(t=e.target.nextElementSibling.textContent.slice(1,-1)),t&&(e.preventDefault(),e.stopPropagation(),window.open(t,`_blank`))}var xr=!1;function Sr(e){xr||(xr=!0,e.defineSimpleMode(`text/linkified`,{start:[{regex:j,token:`linkified`}]}))}function Cr(e){if(e){if(e.includes(`javascript`)||e.includes(`json`))return`javascript`;if(e.includes(`python`))return`python`;if(e.includes(`csharp`))return`text/x-csharp`;if(e.includes(`java`))return`text/x-java`;if(e.includes(`markdown`))return`markdown`;if(e.includes(`html`)||e.includes(`svg`))return`htmlmixed`;if(e.includes(`css`))return`css`}}function wr(e){if(e)return{javascript:`javascript`,jsonl:`javascript`,python:`python`,csharp:`text/x-csharp`,java:`text/x-java`,markdown:`markdown`,html:`htmlmixed`,css:`css`,yaml:`yaml`}[e]}function Tr(e){return!!e.match(/^(application\/json|application\/.*?\+json|text\/(x-)?json)(;\s*charset=.*)?$/)}function Er(e){return!!e.match(/^(application\/xml|application\/.*?\+xml|text\/xml)(;\s*charset=.*)?$/)}function Dr(e){return!!e.match(/^(text\/.*?|application\/(json|(x-)?javascript|xml.*?|ecmascript|graphql|x-www-form-urlencoded)|image\/svg(\+xml)?|application\/.*?(\+json|\+xml))(;\s*charset=.*)?$/)}var Or=({title:e,children:t,setExpanded:n,expanded:r,expandOnTitleClick:i,className:a})=>{let o=T.useId(),s=T.useId(),c=T.useCallback(()=>n(!r),[r,n]),l=(0,M.jsx)(`div`,{className:k(`codicon`,r?`codicon-chevron-down`:`codicon-chevron-right`),style:{cursor:`pointer`,color:`var(--vscode-foreground)`,marginLeft:`5px`},onClick:i?void 0:c});return(0,M.jsxs)(`div`,{className:k(`expandable`,r&&`expanded`,a),children:[i?(0,M.jsxs)(`div`,{id:o,role:`button`,"aria-expanded":r,"aria-controls":s,className:`expandable-title`,onClick:c,children:[l,e]}):(0,M.jsxs)(`div`,{className:`expandable-title`,children:[l,e]}),r&&(0,M.jsx)(`div`,{id:s,"aria-labelledby":o,role:`region`,className:`expandable-content`,children:t})]})};function kr(e){let t=[],n=0,r;for(;(r=j.exec(e))!==null;){let i=e.substring(n,r.index);i&&t.push(i);let a=r[0];t.push(Ar(a)),n=r.index+a.length}let i=e.substring(n);return i&&t.push(i),t}function Ar(e){let t=e;return t.startsWith(`www.`)&&(t=`https://`+t),(0,M.jsx)(`a`,{href:t,target:`_blank`,rel:`noopener noreferrer`,children:e})}var jr=T.createContext(void 0),Mr=()=>T.useContext(jr),Nr=({attachment:e,reveal:t})=>{let n=Mr(),[r,i]=T.useState(!1),[a,o]=T.useState(null),[s,c]=T.useState(null),[l,u]=ue(),d=T.useRef(null),f=Dr(e.contentType),p=!!e.sha1||!!e.path;T.useEffect(()=>{if(t)return d.current?.scrollIntoView({behavior:`smooth`}),u()},[t,u]),T.useEffect(()=>{r&&a===null&&s===null&&(c(`Loading ...`),fetch(Fr(n,e)).then(e=>e.text()).then(e=>{o(e),c(null)}).catch(e=>{c(`Failed to load: `+e.message)}))},[n,r,a,s,e]);let m=T.useMemo(()=>{let e=a?a.split(`
20
+ `).length:0;return Math.min(Math.max(5,e),20)*20},[a]),h=(0,M.jsxs)(`span`,{style:{marginLeft:5},ref:d,"aria-label":e.name,children:[(0,M.jsx)(`span`,{children:kr(e.name)}),p&&(0,M.jsx)(`a`,{style:{marginLeft:5},href:Ir(n,e),children:`download`})]});return!f||!p?(0,M.jsx)(`div`,{style:{marginLeft:20},children:h}):(0,M.jsxs)(`div`,{className:k(l&&`yellow-flash`),children:[(0,M.jsx)(Or,{title:h,expanded:r,setExpanded:i,expandOnTitleClick:!0,children:s&&(0,M.jsx)(`i`,{children:s})}),r&&a!==null&&(0,M.jsx)(`div`,{className:`vbox`,style:{height:m},children:(0,M.jsx)(yr,{text:a,readOnly:!0,mimeType:e.contentType,linkify:!0,lineNumbers:!0,wrapLines:!1})})]})},Pr=({revealedAttachmentCallId:e})=>{let t=Mr(),{diffMap:n,screenshots:r,attachments:i}=T.useMemo(()=>{let e=new Set(t?.visibleAttachments??[]),n=new Set,r=new Map;for(let t of e){if(!t.path&&!t.sha1)continue;let i=t.name.match(/^(.*)-(expected|actual|diff)\.png$/);if(i){let n=i[1],a=i[2],o=r.get(n)||{expected:void 0,actual:void 0,diff:void 0};o[a]=t,r.set(n,o),e.delete(t)}else t.contentType.startsWith(`image/`)&&(n.add(t),e.delete(t))}return{diffMap:r,attachments:e,screenshots:n}},[t]);return!n.size&&!r.size&&!i.size?(0,M.jsx)(Gn,{text:`No attachments`}):(0,M.jsxs)(`div`,{className:`attachments-tab`,children:[[...n.values()].map(({expected:e,actual:n,diff:r})=>(0,M.jsxs)(M.Fragment,{children:[e&&n&&(0,M.jsx)(`div`,{className:`attachments-section`,children:`Image diff`}),e&&n&&(0,M.jsx)(fr,{noTargetBlank:!0,diff:{name:`Image diff`,expected:{attachment:{...e,path:Ir(t,e)},title:`Expected`},actual:{attachment:{...n,path:Ir(t,n)}},diff:r?{attachment:{...r,path:Ir(t,r)}}:void 0}})]})),r.size?(0,M.jsx)(`div`,{className:`attachments-section`,children:`Screenshots`}):void 0,[...r.values()].map((e,n)=>{let r=Fr(t,e);return(0,M.jsxs)(`div`,{className:`attachment-item`,children:[(0,M.jsx)(`div`,{children:(0,M.jsx)(`img`,{draggable:`false`,src:r})}),(0,M.jsx)(`div`,{children:(0,M.jsx)(`a`,{target:`_blank`,href:r,rel:`noreferrer`,children:e.name})})]},`screenshot-${n}`)}),i.size?(0,M.jsx)(`div`,{className:`attachments-section`,children:`Attachments`}):void 0,[...i.values()].map((t,n)=>(0,M.jsx)(`div`,{className:`attachment-item`,children:(0,M.jsx)(Nr,{attachment:t,reveal:e&&t.callId===e.callId?e:void 0})},Lr(t,n)))]})};function Fr(e,t){return e&&t.sha1?e.createRelativeUrl(`sha1/${t.sha1}`):`file?path=${encodeURIComponent(t.path)}`}function Ir(e,t){let n=t.contentType?`&dn=${encodeURIComponent(t.name)}`:``;return t.contentType&&(n+=`&dct=${encodeURIComponent(t.contentType)}`),Fr(e,t)+n}function Lr(e,t){return t+`-`+(e.sha1?`sha1-`+e.sha1:`path-`+e.path)}var Rr=({prompt:e})=>(0,M.jsx)(Wn,{value:e,description:`Copy prompt`,copiedDescription:(0,M.jsxs)(M.Fragment,{children:[`Copied `,(0,M.jsx)(`span`,{className:`codicon codicon-copy`,style:{marginLeft:`5px`}})]}),style:{width:`120px`,justifyContent:`center`}});function zr(e){return T.useMemo(()=>{if(!e)return{errors:new Map};let t=new Map;for(let n of e.errorDescriptors)t.set(n.message,n);return{errors:t}},[e])}function Br({message:e,error:t,sdkLanguage:n,revealInSource:r}){let i,a,o=t.stack?.[0];return o&&(i=o.file.replace(/.*[/\\](.*)/,`$1`)+`:`+o.line,a=o.file+`:`+o.line),(0,M.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,overflowX:`clip`},children:[(0,M.jsxs)(`div`,{className:`hbox`,style:{alignItems:`center`,padding:`5px 10px`,minHeight:36,fontWeight:`bold`,color:`var(--vscode-errorForeground)`,flex:0},children:[t.action&&Vn(t.action,{sdkLanguage:n}),i&&(0,M.jsxs)(`div`,{className:`action-location`,children:[`@ `,(0,M.jsx)(`span`,{title:a,onClick:()=>r(t),children:i})]})]}),(0,M.jsx)(or,{error:e})]})}var Vr=({errorsModel:e,sdkLanguage:t,revealInSource:n,wallTime:r,testRunMetadata:i})=>{let a=Mr(),o=te(async()=>{let e=a?.attachments.find(e=>e.name===`error-context`);if(!e)return;let t=await fetch(Fr(a,e)).then(e=>e.text());if(t)return i?.gitDiff&&(t+=`
21
+
22
+ # Local changes
23
+
24
+ \`\`\`diff
25
+ `+i.gitDiff+"\n```"),t},[a,i],void 0);return e.errors.size?(0,M.jsxs)(`div`,{className:`fill`,style:{overflow:`auto`},children:[(0,M.jsx)(`span`,{style:{position:`absolute`,right:`5px`,top:`5px`,zIndex:1},children:o&&(0,M.jsx)(Rr,{prompt:o})}),[...e.errors.entries()].map(([e,i])=>{let a=`error-${r}-${e}`;return(0,M.jsx)(Br,{message:e,error:i,revealInSource:n,sdkLanguage:t},a)})]}):(0,M.jsx)(Gn,{text:`No errors`})},Hr=Qn,Ur={log:{bg:`var(--vscode-editor-background)`,fg:`var(--vscode-editor-foreground)`},warning:{fg:`var(--vscode-list-warningForeground)`,bg:`var(--vscode-inputValidation-warningBackground)`},error:{fg:`var(--vscode-list-errorForeground)`,bg:`var(--vscode-inputValidation-errorBackground)`}};function Wr(e,t,n){let{entries:r}=T.useMemo(()=>{if(!e)return{entries:[]};let t=t=>t&&e.pagerefToTitle.get(t)||``,r=[];function i(e){let t=r[r.length-1];t&&e.browserMessage?.bodyString===t.browserMessage?.bodyString&&e.browserMessage?.location===t.browserMessage?.location&&e.browserError===t.browserError&&e.nodeMessage?.html===t.nodeMessage?.html&&e.isError===t.isError&&e.isWarning===t.isWarning&&e.pageId===t.pageId&&e.timestamp-t.timestamp<1e3?t.repeat++:r.push({...e,repeat:1})}let a=[...e.events,...e.stdio].sort((e,t)=>(`time`in e?e.time:e.timestamp)-(`time`in t?t.time:t.timestamp));for(let e of a){if(e.type===`console`){if(n&&e.pageId!==n)continue;let r=e.messageType===`error`?Ur.error:e.messageType===`warning`?Ur.warning:Ur.log,a=e.args&&e.args.length?Kr(e.args,r):qr(e.text,r),o=e.location.url,s=`${o?o.substring(o.lastIndexOf(`/`)+1):`<anonymous>`}:${e.location.lineNumber}`;i({browserMessage:{body:a,bodyString:e.text,location:s},isError:e.messageType===`error`,isWarning:e.messageType===`warning`,pageId:t(e.pageId),timestamp:e.time})}if(e.type===`event`&&e.method===`pageError`){if(n&&e.pageId!==n)continue;i({browserError:e.params.error,isError:!0,isWarning:!1,pageId:t(e.pageId),timestamp:e.time})}if(e.type===`stderr`||e.type===`stdout`){let t=``,n=e.type===`stderr`?Ur.error:Ur.log;e.text&&(t=tr(e.text.trim(),n)||``),e.base64&&(t=tr(atob(e.base64).trim(),n)||``),i({nodeMessage:{html:t},isError:e.type===`stderr`,isWarning:!1,pageId:``,timestamp:e.timestamp})}}return{entries:r}},[e,n]),i=T.useMemo(()=>t?r.filter(e=>e.timestamp>=t.minimum&&e.timestamp<=t.maximum):r,[r,t]),a=T.useMemo(()=>new Set(i.map(e=>e.pageId).filter(Boolean)).size>1,[i]);return{entries:i,hasMultiplePages:a,showSource:T.useMemo(()=>a||i.some(e=>!e.browserMessage&&!e.browserError),[i,a])}}var Gr=({consoleModel:e,boundaries:t,onEntryHovered:n,onAccepted:r})=>e.entries.length?(0,M.jsx)(`div`,{className:`console-tab`,children:(0,M.jsx)(Hr,{name:`console`,onAccepted:r,onHighlighted:e=>n?.(e?{minimum:e.timestamp,maximum:e.timestamp}:void 0),items:e.entries,isError:e=>e.isError,isWarning:e=>e.isWarning,render:n=>{let r=(0,M.jsx)(`span`,{className:`console-time`,children:st(n.timestamp-t.minimum)}),i=!!(n.browserMessage||n.browserError),a=i?e.hasMultiplePages&&n.pageId||`page`:`test`,o=e.showSource?(0,M.jsx)(`span`,{className:`console-source`,title:i?`Browser message`:`Runner message`,children:a}):void 0,s,c,l,u,{browserMessage:d,browserError:f,nodeMessage:p}=n;if(d&&(s=d.location,c=d.body),f){let{error:e,value:t}=f;e?(c=e.message,u=e.stack):c=String(t)}return p&&(l=p.html),(0,M.jsxs)(`div`,{className:`console-line`,children:[r,o,s&&(0,M.jsx)(`span`,{className:`console-location`,children:s}),n.repeat>1&&(0,M.jsx)(`span`,{className:`console-repeat`,children:n.repeat}),c&&(0,M.jsx)(`span`,{className:`console-line-message`,children:c}),l&&(0,M.jsx)(`span`,{className:`console-line-message`,dangerouslySetInnerHTML:{__html:l}}),u&&(0,M.jsx)(`div`,{className:`console-stack`,children:u})]})}})}):(0,M.jsx)(Gn,{text:`No console entries`});function Kr(e,t){if(e.length===1)return qr(e[0].preview,t);let n=typeof e[0].value==`string`&&e[0].value.includes(`%`),r=n?e[0].value:``,i=n?e.slice(1):e,a=0,o=/%([%sdifoOc])/g,s,c=[],l=[];c.push((0,M.jsx)(`span`,{children:l},c.length+1));let u=0;for(;(s=o.exec(r))!==null;){let e=r.substring(u,s.index);l.push((0,M.jsx)(`span`,{children:e},l.length+1)),u=s.index+2;let t=s[0][1];if(t===`%`)l.push((0,M.jsx)(`span`,{children:`%`},l.length+1));else if(t===`s`||t===`o`||t===`O`||t===`d`||t===`i`||t===`f`){let e=i[a++],t={};typeof e?.value!=`string`&&(t.color=`var(--vscode-debugTokenExpression-number)`),l.push((0,M.jsx)(`span`,{style:t,children:e?.preview||``},l.length+1))}else if(t===`c`){l=[];let e=i[a++],t=e?Jr(e.preview):{};c.push((0,M.jsx)(`span`,{style:t,children:l},c.length+1))}}for(u<r.length&&l.push((0,M.jsx)(`span`,{children:r.substring(u)},l.length+1));a<i.length;a++){let e=i[a],t={};l.length&&l.push((0,M.jsx)(`span`,{children:` `},l.length+1)),typeof e?.value!=`string`&&(t.color=`var(--vscode-debugTokenExpression-number)`),l.push((0,M.jsx)(`span`,{style:t,children:e?.preview||``},l.length+1))}return c}function qr(e,t){return[(0,M.jsx)(`span`,{dangerouslySetInnerHTML:{__html:tr(e.trim(),t)}})]}function Jr(e){try{let t={},n=e.split(`;`);for(let e of n){let n=e.trim();if(!n)continue;let[r,i]=n.split(`:`);if(r=r.trim(),i=i.trim(),!Yr(r))continue;let a=r.replace(/-([a-z])/g,e=>e[1].toUpperCase());t[a]=i}return t}catch{return{}}}function Yr(e){return[`background`,`border`,`color`,`font`,`line`,`margin`,`padding`,`text`].some(t=>e.startsWith(t))}var Xr=({noShadow:e,children:t,noMinHeight:n,className:r,sidebarBackground:i,onClick:a})=>(0,M.jsx)(`div`,{className:k(`toolbar`,e&&`no-shadow`,n&&`no-min-height`,r,i&&`toolbar-sidebar-background`),onClick:a,children:t}),Zr=({tabs:e,selectedTab:t,setSelectedTab:n,leftToolbar:r,rightToolbar:i,dataTestId:a,mode:o})=>{let s=T.useId();return t||=e[0].id,o||=`default`,(0,M.jsx)(`div`,{className:`tabbed-pane`,"data-testid":a,children:(0,M.jsxs)(`div`,{className:`vbox`,children:[(0,M.jsxs)(Xr,{children:[r&&(0,M.jsx)(`div`,{style:{flex:`none`,display:`flex`,margin:`0 4px`,alignItems:`center`},children:[...r]}),o==="default"&&(0,M.jsx)(`div`,{style:{flex:`auto`,display:`flex`,height:`100%`,overflow:`hidden`},role:`tablist`,children:[...e.map(e=>(0,M.jsx)(Qr,{id:e.id,ariaControls:`${s}-${e.id}`,title:e.title,count:e.count,errorCount:e.errorCount,selected:t===e.id,onSelect:n},e.id))]}),o===`select`&&(0,M.jsx)(`div`,{style:{flex:`auto`,display:`flex`,height:`100%`,overflow:`hidden`},role:`tablist`,children:(0,M.jsx)(`select`,{style:{width:`100%`,background:`none`,cursor:`pointer`},value:t,onChange:t=>{n?.(e[t.currentTarget.selectedIndex].id)},children:e.map(e=>{let t=``;return e.count&&(t=` (${e.count})`),e.errorCount&&(t=` (${e.errorCount})`),(0,M.jsxs)(`option`,{value:e.id,role:`tab`,"aria-controls":`${s}-${e.id}`,children:[e.title,t]},e.id)})})}),i&&(0,M.jsx)(`div`,{style:{flex:`none`,display:`flex`,alignItems:`center`},children:[...i]})]}),e.map(e=>{let n=`tab-content tab-`+e.id;if(e.component)return(0,M.jsx)(`div`,{id:`${s}-${e.id}`,role:`tabpanel`,"aria-label":e.title,className:n,style:{display:t===e.id?`inherit`:`none`},children:e.component},e.id);if(t===e.id)return(0,M.jsx)(`div`,{id:`${s}-${e.id}`,role:`tabpanel`,"aria-label":e.title,className:n,children:e.render()},e.id)})]})})},Qr=({id:e,title:t,count:n,errorCount:r,selected:i,onSelect:a,ariaControls:o})=>(0,M.jsxs)(`button`,{className:k(`tabbed-pane-tab`,i&&`selected`),onClick:()=>a?.(e),role:`tab`,title:t,"aria-controls":o,"aria-selected":i,children:[(0,M.jsx)(`div`,{className:`tabbed-pane-tab-label`,children:t}),!!n&&(0,M.jsx)(`div`,{className:`tabbed-pane-tab-counter`,children:n}),!!r&&(0,M.jsx)(`div`,{className:`tabbed-pane-tab-counter error`,children:r})]});async function $r(e,t){let n=navigator.platform.includes(`Win`)?`win`:`unix`,r=[],i=new Set([`accept-encoding`,`host`,`method`,`path`,`scheme`,`version`,`authority`,`protocol`]);function a(e){return`^"`+e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`).replace(/[^a-zA-Z0-9\s_\-:=+~'\/.',?;()*`]/g,`^$&`).replace(/%(?=[a-zA-Z0-9_])/g,`%^`).replace(/[^ -~\r\n]/g,` `).replace(/\r?\n|\r/g,`^
26
+
27
+ `)+`^"`}function o(e){function t(e){let t=e.charCodeAt(0).toString(16);for(;t.length<4;)t=`0`+t;return`\\u`+t}return/[\0-\x1F\x7F-\x9F!]|\'/.test(e)?`$'`+e.replace(/\\/g,`\\\\`).replace(/\'/g,`\\'`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\0-\x1F\x7F-\x9F!]/g,t)+`'`:`'`+e+`'`}let s=n===`win`?a:o;r.push(s(t.request.url).replace(/[[{}\]]/g,`\\$&`));let c=`GET`,l=[],u=await ti(e,t);u&&(l.push(`--data-raw `+s(u)),i.add(`content-length`),c=`POST`),t.request.method!==c&&r.push(`-X `+s(t.request.method));let d=t.request.headers;for(let e=0;e<d.length;e++){let t=d[e],n=t.name.replace(/^:/,``);if(i.has(n.toLowerCase()))continue;let a=t.value;a.trim()?n.toLowerCase()===`cookie`?r.push(`-b `+s(a)):r.push(`-H `+s(n+`: `+a)):r.push(`-H `+s(n+`;`))}return r=r.concat(l),`curl `+r.join(r.length>=3?n===`win`?` ^
28
+ `:` \\
29
+ `:` `)}async function ei(e,t,n=0){let r=new Set([`method`,`path`,`scheme`,`version`,`accept-charset`,`accept-encoding`,`access-control-request-headers`,`access-control-request-method`,`connection`,`content-length`,`cookie`,`cookie2`,`date`,`dnt`,`expect`,`host`,`keep-alive`,`origin`,`referer`,`te`,`trailer`,`transfer-encoding`,`upgrade`,`via`,`user-agent`]),i=new Set([`cookie`,`authorization`]),a=JSON.stringify(t.request.url),o=t.request.headers,s=o.reduce((e,t)=>{let n=t.name;return!r.has(n.toLowerCase())&&!n.includes(`:`)&&e.append(n,t.value),e},new Headers),c={};for(let e of s)c[e[0]]=e[1];let l=t.request.cookies.length||o.some(({name:e})=>i.has(e.toLowerCase()))?`include`:`omit`,u=o.find(({name:e})=>e.toLowerCase()===`referer`),d=u?u.value:void 0,f=await ti(e,t),p={headers:Object.keys(c).length?c:void 0,referrer:d,body:f,method:t.request.method,mode:`cors`};if(n===1){let e=o.find(e=>e.name.toLowerCase()===`cookie`),t={};delete p.mode,e&&(t.cookie=e.value),d&&(delete p.referrer,t.Referer=d),Object.keys(t).length&&(p.headers={...c,...t})}else p.credentials=l;return`fetch(${a}, ${JSON.stringify(p,null,2)});`}async function ti(e,t){return e&&t.request.postData?._sha1?await fetch(e.createRelativeUrl(`sha1/${t.request.postData._sha1}`)).then(e=>e.text()):t.request.postData?.text}var ni=class{generatePlaywrightRequestCall(e,t){let n=e.method.toLowerCase(),r=new URL(e.url),i=`${r.origin}${r.pathname}`,a={};[`delete`,`get`,`head`,`post`,`put`,`patch`].includes(n)||(a.method=n,n=`fetch`),r.searchParams.size&&(a.params=Object.fromEntries(r.searchParams.entries())),t&&(a.data=t),e.headers.length&&(a.headers=Object.fromEntries(e.headers.map(e=>[e.name,e.value])));let o=[`'${i}'`];return Object.keys(a).length>0&&o.push(this.prettyPrintObject(a)),`await page.request.${n}(${o.join(`, `)});`}prettyPrintObject(e,t=2,n=0){if(e===null)return`null`;if(e===void 0)return`undefined`;if(typeof e!=`object`)return typeof e==`string`?this.stringLiteral(e):String(e);if(Array.isArray(e)){if(e.length===0)return`[]`;let r=` `.repeat(n*t),i=` `.repeat((n+1)*t);return`[\n${e.map(e=>`${i}${this.prettyPrintObject(e,t,n+1)}`).join(`,
30
+ `)}\n${r}]`}if(Object.keys(e).length===0)return`{}`;let r=` `.repeat(n*t),i=` `.repeat((n+1)*t);return`{\n${Object.entries(e).map(([e,r])=>{let a=this.prettyPrintObject(r,t,n+1);return`${i}${/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(e)?e:this.stringLiteral(e)}: ${a}`}).join(`,
31
+ `)}\n${r}}`}stringLiteral(e){return e=e.replace(/\\/g,`\\\\`).replace(/'/g,`\\'`),e.includes(`
32
+ `)||e.includes(`\r`)||e.includes(` `)?"`"+e+"`":`'${e}'`}},ri=class{generatePlaywrightRequestCall(e,t){let n=new URL(e.url),r=[`"${`${n.origin}${n.pathname}`}"`],i=e.method.toLowerCase();[`delete`,`get`,`head`,`post`,`put`,`patch`].includes(i)||(r.push(`method="${i}"`),i=`fetch`),n.searchParams.size&&r.push(`params=${this.prettyPrintObject(Object.fromEntries(n.searchParams.entries()))}`),t&&r.push(`data=${this.prettyPrintObject(t)}`),e.headers.length&&r.push(`headers=${this.prettyPrintObject(Object.fromEntries(e.headers.map(e=>[e.name,e.value])))}`);let a=r.length===1?r[0]:`\n${r.map(e=>this.indent(e,2)).join(`,
33
+ `)}\n`;return`await page.request.${i}(${a})`}indent(e,t){return e.split(`
34
+ `).map(e=>` `.repeat(t)+e).join(`
35
+ `)}prettyPrintObject(e,t=2,n=0){if(e==null)return`None`;if(typeof e!=`object`)return typeof e==`string`?this.stringLiteral(e):typeof e==`boolean`?e?`True`:`False`:String(e);if(Array.isArray(e)){if(e.length===0)return`[]`;let r=` `.repeat(n*t),i=` `.repeat((n+1)*t);return`[\n${e.map(e=>`${i}${this.prettyPrintObject(e,t,n+1)}`).join(`,
36
+ `)}\n${r}]`}if(Object.keys(e).length===0)return`{}`;let r=` `.repeat(n*t),i=` `.repeat((n+1)*t);return`{\n${Object.entries(e).map(([e,r])=>{let a=this.prettyPrintObject(r,t,n+1);return`${i}${this.stringLiteral(e)}: ${a}`}).join(`,
37
+ `)}\n${r}}`}stringLiteral(e){return JSON.stringify(e)}},ii=class{generatePlaywrightRequestCall(e,t){let n=new URL(e.url),r=`${n.origin}${n.pathname}`,i={},a=[],o=e.method.toLowerCase();[`delete`,`get`,`head`,`post`,`put`,`patch`].includes(o)||(i.Method=o,o=`fetch`),n.searchParams.size&&(i.Params=Object.fromEntries(n.searchParams.entries())),t&&(i.Data=t),e.headers.length&&(i.Headers=Object.fromEntries(e.headers.map(e=>[e.name,e.value])));let s=[`"${r}"`];return Object.keys(i).length>0&&s.push(this.prettyPrintObject(i)),`${a.join(`
38
+ `)}${a.length?`
39
+ `:``}await request.${this.toFunctionName(o)}(${s.join(`, `)});`}toFunctionName(e){return e[0].toUpperCase()+e.slice(1)+`Async`}prettyPrintObject(e,t=2,n=0){if(e==null)return`null`;if(typeof e!=`object`)return typeof e==`string`?this.stringLiteral(e):typeof e==`boolean`?e?`true`:`false`:String(e);if(Array.isArray(e)){if(e.length===0)return`new object[] {}`;let r=` `.repeat(n*t),i=` `.repeat((n+1)*t);return`new object[] {\n${e.map(e=>`${i}${this.prettyPrintObject(e,t,n+1)}`).join(`,
40
+ `)}\n${r}}`}if(Object.keys(e).length===0)return`new {}`;let r=` `.repeat(n*t),i=` `.repeat((n+1)*t);return`new() {\n${Object.entries(e).map(([e,r])=>{let a=this.prettyPrintObject(r,t,n+1);return`${i}${n===0?e:`[${this.stringLiteral(e)}]`} = ${a}`}).join(`,
41
+ `)}\n${r}}`}stringLiteral(e){return JSON.stringify(e)}},ai=class{generatePlaywrightRequestCall(e,t){let n=new URL(e.url),r=[`"${n.origin}${n.pathname}"`],i=[],a=e.method.toLowerCase();[`delete`,`get`,`head`,`post`,`put`,`patch`].includes(a)||(i.push(`setMethod("${a}")`),a=`fetch`);for(let[e,t]of n.searchParams)i.push(`setQueryParam(${this.stringLiteral(e)}, ${this.stringLiteral(t)})`);t&&i.push(`setData(${this.stringLiteral(t)})`);for(let t of e.headers)i.push(`setHeader(${this.stringLiteral(t.name)}, ${this.stringLiteral(t.value)})`);return i.length>0&&r.push(`RequestOptions.create()\n .${i.join(`
42
+ .`)}\n`),`request.${a}(${r.join(`, `)});`}stringLiteral(e){return JSON.stringify(e)}};function oi(e){if(e===`javascript`)return new ni;if(e===`python`)return new ri;if(e===`csharp`)return new ii;if(e===`java`)return new ai;throw Error(`Unsupported language: `+e)}var si=({resource:e,sdkLanguage:t,startTimeOffset:n,onClose:r})=>{let[i,a]=T.useState(`headers`),o=Mr(),s=te(async()=>{if(o&&e.request.postData){let t=e.request.headers.find(e=>e.name.toLowerCase()===`content-type`),n=t?t.value:``;return e.request.postData._sha1?{text:await(await fetch(o.createRelativeUrl(`sha1/${e.request.postData._sha1}`))).text(),mimeType:n}:{text:e.request.postData.text,mimeType:n}}else return null},[e],null);return(0,M.jsx)(Zr,{leftToolbar:[(0,M.jsx)(Fn,{icon:`close`,title:`Close`,onClick:r},`close`)],rightToolbar:[(0,M.jsx)(ci,{requestBody:s,resource:e,sdkLanguage:t},`dropdown`)],tabs:[{id:`headers`,title:`Headers`,render:()=>(0,M.jsx)(di,{resource:e,startTimeOffset:n})},{id:`payload`,title:`Payload`,render:()=>(0,M.jsx)(fi,{resource:e,requestBody:s})},{id:`response`,title:`Response`,render:()=>(0,M.jsx)(pi,{resource:e})}],selectedTab:i,setSelectedTab:a})},ci=({resource:e,sdkLanguage:t,requestBody:n})=>{let r=Mr(),i=(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`span`,{className:`codicon codicon-check`,style:{marginRight:`5px`}}),` Copied `]});return(0,M.jsxs)(`div`,{className:`copy-request-dropdown`,children:[(0,M.jsxs)(Fn,{className:`copy-request-dropdown-toggle`,children:[(0,M.jsx)(`span`,{className:`codicon codicon-copy`,style:{marginRight:`5px`}}),`Copy request`,(0,M.jsx)(`span`,{className:`codicon codicon-chevron-down`,style:{marginLeft:`5px`}})]}),(0,M.jsxs)(`div`,{className:`copy-request-dropdown-menu`,children:[(0,M.jsx)(Wn,{description:`Copy as cURL`,copiedDescription:i,value:()=>$r(r,e)}),(0,M.jsx)(Wn,{description:`Copy as Fetch`,copiedDescription:i,value:()=>ei(r,e)}),(0,M.jsx)(Wn,{description:`Copy as Playwright`,copiedDescription:i,value:async()=>oi(t).generatePlaywrightRequestCall(e.request,n?.text)})]})]})},li=({toggled:e,error:t,onToggle:n})=>(0,M.jsx)(Fn,{icon:`json`,title:`Pretty print`,toggled:e,errorBadge:t?`Formatting failed`:void 0,onClick:e=>{e.stopPropagation(),n()}}),ui=({title:e,data:t,showCount:n,children:r,titleChildren:i,className:a})=>{let[o,s]=ae(`trace-viewer-network-details-${e.replaceAll(` `,`-`)}`,!0);return(0,M.jsxs)(Or,{expanded:o,setExpanded:s,expandOnTitleClick:!0,title:(0,M.jsxs)(M.Fragment,{children:[(0,M.jsxs)(`span`,{className:`network-request-details-header`,children:[e,n&&(0,M.jsxs)(`span`,{className:`network-request-details-header-count`,children:[` × `,t?.length??0]})]}),i]}),className:a,children:[t&&(0,M.jsx)(`table`,{className:`network-request-details-table`,children:(0,M.jsx)(`tbody`,{children:t.map(({name:e,value:t},n)=>t!==null&&(0,M.jsxs)(`tr`,{children:[(0,M.jsx)(`td`,{children:e}),(0,M.jsx)(`td`,{children:t})]},n))})}),r]})},di=({resource:e,startTimeOffset:t})=>(0,M.jsxs)(`div`,{className:`vbox network-request-details-tab`,children:[(0,M.jsx)(ui,{title:`General`,data:T.useMemo(()=>Object.entries({URL:e.request.url,Method:e.request.method,"Status Code":e.response.status===-1?`canceled`:e.response.status>0&&(0,M.jsxs)(`span`,{className:Ci(e.response.status),children:[` `,e.response.status,` `,e.response.statusText]}),Start:st(t),Duration:st(e.time)}).map(([e,t])=>({name:e,value:t})),[e,t])}),(0,M.jsx)(ui,{title:`Request Headers`,showCount:!0,data:e.request.headers}),(0,M.jsx)(ui,{title:`Response Headers`,showCount:!0,data:e.response.headers})]}),fi=({resource:e,requestBody:t})=>{let[n,r]=ae(`trace-viewer-network-details-show-formatted-payload`,!0),i=e.request.queryString.length>0,a=!!(t||e.request.postData),o=Di(t,n);return(0,M.jsxs)(`div`,{className:`vbox network-request-details-tab`,children:[!i&&!a&&(0,M.jsx)(`em`,{className:`network-request-no-payload`,children:`No payload for this request.`}),i&&(0,M.jsx)(ui,{title:`Query String Parameters`,showCount:!0,data:e.request.queryString}),t&&(0,M.jsx)(ui,{title:`Request Body`,className:`network-request-request-body`,titleChildren:(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`div`,{style:{margin:`auto`}}),(0,M.jsx)(li,{toggled:n,error:o.error,onToggle:()=>r(!n)})]}),children:(0,M.jsx)(yr,{text:o.text,mimeType:t.mimeType,readOnly:!0,lineNumbers:!0})})]})},pi=({resource:e})=>{let t=Mr(),[n,r]=T.useState(null);T.useEffect(()=>{(async()=>{if(t&&e.response.content._sha1){let n=e.response.content.mimeType.includes(`image`),i=e.response.content.mimeType.includes(`font`),a=await fetch(t.createRelativeUrl(`sha1/${e.response.content._sha1}`));if(n){let e=await a.blob(),t=new FileReader,n=new Promise(e=>t.onload=e);t.readAsDataURL(e),r({dataUrl:(await n).target.result})}else r(i?{font:await a.arrayBuffer()}:{text:await a.text(),mimeType:e.response.content.mimeType})}else r(null)})()},[e,t]);let[i,a]=ae(`trace-viewer-network-details-show-formatted-response`,!0),o=Di(n,i);return(0,M.jsxs)(`div`,{className:`vbox network-request-details-tab`,children:[!e.response.content._sha1&&(0,M.jsx)(`div`,{children:`Response body is not available for this request.`}),n&&n.font&&(0,M.jsx)(mi,{font:n.font}),n&&n.dataUrl&&(0,M.jsx)(`div`,{children:(0,M.jsx)(`img`,{draggable:`false`,src:n.dataUrl})}),n&&n.text!==void 0&&(0,M.jsxs)(`div`,{className:`vbox network-response-body`,children:[(0,M.jsx)(yr,{text:o.text,mimeType:n.mimeType,readOnly:!0,lineNumbers:!0}),(0,M.jsxs)(Xr,{noShadow:!0,noMinHeight:!0,className:`network-response-toolbar`,children:[(0,M.jsx)(`div`,{style:{margin:`auto`}}),(0,M.jsx)(li,{toggled:i,error:o.error,onToggle:()=>a(!i)})]})]})]})},mi=({font:e})=>{let[t,n]=T.useState(!1);return T.useEffect(()=>{let t;try{t=new FontFace(`font-preview`,e),t.status===`loaded`&&document.fonts.add(t),t.status===`error`&&n(!0)}catch{n(!0)}return()=>{document.fonts.delete(t)}},[e]),t?(0,M.jsx)(`div`,{className:`network-font-preview-error`,children:`Could not load font preview`}):(0,M.jsxs)(`div`,{className:`network-font-preview`,children:[`ABCDEFGHIJKLM`,(0,M.jsx)(`br`,{}),`NOPQRSTUVWXYZ`,(0,M.jsx)(`br`,{}),`abcdefghijklm`,(0,M.jsx)(`br`,{}),`nopqrstuvwxyz`,(0,M.jsx)(`br`,{}),`1234567890`]})},hi=({resource:e,startTimeOffset:t,onClose:n})=>{let[r,i]=T.useState(`messages`);return(0,M.jsx)(Zr,{leftToolbar:[(0,M.jsx)(Fn,{icon:`close`,title:`Close`,onClick:n},`close`)],tabs:[{id:`headers`,title:`Headers`,render:()=>(0,M.jsx)(di,{resource:e,startTimeOffset:t})},{id:`messages`,title:`Messages`,render:()=>(0,M.jsx)(gi,{resource:e})}],selectedTab:r,setSelectedTab:i})},gi=({resource:e})=>{let t=Mr(),n=te(async()=>{if(e._webSocketMessages)return e._webSocketMessages.map((e,t)=>({...e,index:t,byteLength:xi(e)}));if(t&&e.response.content._sha1)try{let n=await fetch(t.createRelativeUrl(`sha1/${e.response.content._sha1}`));return n.ok?(await n.text()).split(`
43
+ `).filter(Boolean).map(e=>JSON.parse(e)).map((e,t)=>({...e,index:t,byteLength:xi(e)})):[]}catch{return[]}return[]},[e,t],void 0),[r,i]=T.useState(void 0),a=r===void 0?void 0:n?.[r],o=T.useMemo(()=>{if(n){for(let e of n)if(e.time>0)return e.time}},[n]);if(n===void 0)return(0,M.jsx)(Gn,{text:`Loading...`});if(n.length===0)return(0,M.jsx)(Gn,{text:`No messages captured`});let s=(0,M.jsx)(_i,{name:`network-websocket-messages`,ariaLabel:`WebSocket messages`,items:n,id:e=>String(e.index),selectedItem:a,onSelected:e=>i(e.index),render:e=>yi(e,o)});return a?(0,M.jsx)(ot,{sidebarSize:200,orientation:`vertical`,sidebarIsFirst:!1,settingName:`networkWebSocketMessageDetails`,main:s,sidebar:(0,M.jsx)(vi,{message:a})}):s},_i=Qn,vi=({message:e})=>{let[t,n]=ae(`trace-viewer-network-details-show-formatted-message`,!0),r=T.useMemo(()=>{if(e.opcode===1){let t=e.data,n;try{JSON.parse(t),n=`application/json`}catch{n=`text/plain`}return{text:t,mimeType:n}}if(e.opcode===8||e.opcode===9||e.opcode===10){if(!e.data)return{text:``};try{return{text:ki(e.data),mimeType:`text/plain`}}catch{return{text:Ai(e.data)}}}return{text:Ai(e.data)}},[e]),i=Di(r,t);return(0,M.jsxs)(`div`,{className:`vbox network-websocket-message-detail`,children:[(0,M.jsxs)(Xr,{noShadow:!0,noMinHeight:!0,className:`network-websocket-message-detail-toolbar`,children:[(0,M.jsxs)(`span`,{className:`network-websocket-message-detail-summary`,children:[e.type===`send`?`Sent`:`Received`,` · `,bi(e.opcode),` · `,ct(xi(e))]}),(0,M.jsx)(`div`,{style:{margin:`auto`}}),(0,M.jsx)(li,{toggled:t,error:i.error,onToggle:()=>n(!t)})]}),(0,M.jsx)(`div`,{className:`vbox network-websocket-message-detail-body`,children:(0,M.jsx)(yr,{text:i.text,mimeType:r.mimeType,readOnly:!0,lineNumbers:!0})})]})};function yi(e,t){let n=e.type===`send`?`codicon-arrow-up`:`codicon-arrow-down`,r=e.type===`send`?`Sent`:`Received`,i=bi(e.opcode),a=e.time>0&&t!==void 0?st(e.time-t):`-`,o=Si(e);return(0,M.jsxs)(`div`,{className:`network-websocket-message-row`,children:[(0,M.jsx)(`span`,{className:`network-websocket-message-direction-${e.type} codicon ${n}`,title:r}),(0,M.jsx)(`span`,{className:`network-websocket-message-preview`,title:o,children:o}),(0,M.jsx)(`span`,{className:`network-websocket-message-opcode`,title:`Opcode ${e.opcode}`,children:i}),(0,M.jsx)(`span`,{className:`network-websocket-message-length`,title:`${e.byteLength} bytes`,children:ct(e.byteLength)}),(0,M.jsx)(`span`,{className:`network-websocket-message-time`,children:a})]})}function bi(e){switch(e){case 0:return`Continuation`;case 1:return`Text`;case 2:return`Binary`;case 8:return`Close`;case 9:return`Ping`;case 10:return`Pong`;default:return`Opcode ${e}`}}function xi(e){return e.opcode===1?new TextEncoder().encode(e.data).length:Oi(e.data)}function Si(e){if(e.opcode===1){let t=e.data.replace(/\s+/g,` `);return t.length>200?t.substring(0,200)+`…`:t}return e.opcode===8?`(close)`:e.opcode===9?`(ping)`:e.opcode===10?`(pong)`:`(binary, ${ct(Oi(e.data))})`}function Ci(e){return e<300||e===304?`green-circle`:e<400?`yellow-circle`:`red-circle`}var wi=/<[^>]+>[^<]*<\//;function Ti(e,t=` `){let n=0,r=[],i=e.replace(/>\s*</g,`>
44
+ <`).split(`
45
+ `);for(let e of i){let i=e.trim();i&&(i.startsWith(`</`)?(n=Math.max(n-1,0),r.push(t.repeat(n)+i)):i.endsWith(`/>`)||i.startsWith(`<?`)||wi.test(i)?r.push(t.repeat(n)+i):i.startsWith(`<`)?(r.push(t.repeat(n)+i),n++):r.push(t.repeat(n)+i))}return r.join(`
46
+ `)}function Ei(e,t){return!e.trim()||!t?e:Tr(t)?JSON.stringify(JSON.parse(e),null,2):Er(t)?Ti(e):t.includes(`application/x-www-form-urlencoded`)?decodeURIComponent(e):e}var Di=(e,t)=>T.useMemo(()=>{if(e?.text===void 0)return{text:``};if(!t)return{text:e.text};try{return{text:Ei(e.text,e.mimeType)}}catch{return{text:e.text,error:!0}}},[e,t]);function Oi(e){if(!e)return 0;let t=e[e.length-2]===`=`?2:+(e[e.length-1]===`=`);return Math.max(0,Math.floor(e.length*3/4)-t)}function ki(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return new TextDecoder(`utf-8`,{fatal:!1}).decode(n)}function Ai(e){if(!e)return``;let t=atob(e),n=[];for(let e=0;e<t.length;e+=16){let r=Math.min(16,t.length-e),i=[],a=[];for(let n=0;n<16;++n){if(n<r){let r=t.charCodeAt(e+n);i.push(r.toString(16).padStart(2,`0`)),a.push(r>=32&&r<127?t[e+n]:`.`)}else i.push(` `);n===7&&i.push(``)}n.push(`${e.toString(16).padStart(8,`0`)} ${i.join(` `)} ${a.join(``)}`)}return n.join(`
47
+ `)}function ji(e){let[t,n]=T.useState([]);T.useEffect(()=>{let t=[];for(let n=0;n<e.columns.length-1;++n){let r=e.columns[n];t[n]=(t[n-1]||0)+e.columnWidths.get(r)}n(t)},[e.columns,e.columnWidths]);function r(t){let n=new Map(e.columnWidths.entries());for(let r=0;r<t.length;++r){let i=t[r]-(t[r-1]||0),a=e.columns[r];n.set(a,i)}e.setColumnWidths(n)}let i=T.useCallback(t=>{e.setSorting?.({by:t,negate:e.sorting?.by===t?!e.sorting.negate:!1})},[e]);return(0,M.jsxs)(`div`,{className:`grid-view ${e.name}-grid-view`,children:[(0,M.jsx)(lr,{orientation:`horizontal`,offsets:t,setOffsets:r,resizerColor:`var(--vscode-panel-border)`,resizerWidth:1,minColumnWidth:25}),(0,M.jsxs)(`div`,{className:`vbox`,children:[(0,M.jsx)(`div`,{className:`grid-view-header`,children:e.columns.map((t,n)=>(0,M.jsxs)(`div`,{className:`grid-view-header-cell `+Mi(t,e.sorting),style:{width:n<e.columns.length-1?e.columnWidths.get(t):void 0},onClick:()=>e.setSorting&&i(t),children:[(0,M.jsx)(`span`,{className:`grid-view-header-cell-title`,children:e.columnTitle(t)}),(0,M.jsx)(`span`,{className:`codicon codicon-triangle-up`}),(0,M.jsx)(`span`,{className:`codicon codicon-triangle-down`})]},e.columnTitle(t)))}),(0,M.jsx)(Qn,{name:e.name,items:e.items,ariaLabel:e.ariaLabel,id:e.id,render:(t,n)=>(0,M.jsx)(M.Fragment,{children:e.columns.map((r,i)=>{let{body:a,title:o}=e.render(t,r,n);return(0,M.jsx)(`div`,{className:`grid-view-cell grid-view-column-${String(r)}`,title:o,style:{width:i<e.columns.length-1?e.columnWidths.get(r):void 0},children:a},e.columnTitle(r))})}),icon:e.icon,isError:e.isError,isWarning:e.isWarning,isInfo:e.isInfo,selectedItem:e.selectedItem,onAccepted:e.onAccepted,onSelected:e.onSelected,onHighlighted:e.onHighlighted,onIconClicked:e.onIconClicked,noItemsMessage:e.noItemsMessage,dataTestId:e.dataTestId,notSelectable:e.notSelectable})]})]})}function Mi(e,t){return e===t?.by?` filter-`+(t.negate?`negative`:`positive`):``}var Ni=[`Fetch`,`HTML`,`JS`,`CSS`,`Font`,`Image`,`WS`],Pi={searchValue:``,resourceTypes:new Set},Fi=({filterState:e,onFilterStateChange:t})=>(0,M.jsxs)(`div`,{className:`network-filters`,children:[(0,M.jsx)(`input`,{type:`search`,placeholder:`Filter network`,spellCheck:!1,value:e.searchValue,onChange:n=>t({...e,searchValue:n.target.value})}),(0,M.jsxs)(`div`,{className:`network-filters-resource-types`,role:`tablist`,"aria-multiselectable":`true`,children:[(0,M.jsx)(`button`,{title:`All`,onClick:()=>t({...e,resourceTypes:new Set}),className:`network-filters-resource-type ${e.resourceTypes.size===0?`selected`:``}`,role:`tab`,"aria-selected":e.resourceTypes.size===0,children:`All`}),Ni.map(n=>(0,M.jsx)(`button`,{title:n,onClick:r=>{let i;i=r.ctrlKey||r.metaKey?e.resourceTypes.symmetricDifference(new Set([n])):new Set([n]),t({...e,resourceTypes:i})},className:`network-filters-resource-type ${e.resourceTypes.has(n)?`selected`:``}`,role:`tab`,"aria-selected":e.resourceTypes.has(n),children:n},n))]})]}),Ii=ji;function Li(e,t,n){return{resources:T.useMemo(()=>(e?.resources||[]).filter(e=>n&&e.pageref!==n?!1:t?!!e._monotonicTime&&e._monotonicTime>=t.minimum&&e._monotonicTime<=t.maximum:!0),[e,t,n]),model:e}}var Ri=({boundaries:e,networkModel:t,onResourceHovered:n,sdkLanguage:r})=>{let[i,a]=T.useState(void 0),[o,s]=T.useState(void 0),[c,l]=T.useState(Pi),{renderedEntries:u,multipleContexts:d}=T.useMemo(()=>{let n=t.resources.map(n=>Ui(n,e,t.model)).filter(Yi(c));return i&&Ki(n,i),{renderedEntries:n,multipleContexts:new Set(n.map(e=>e.contextId).filter(Boolean)).size>1}},[t.resources,t.model,c,i,e]),f=T.useMemo(()=>o?u.find(e=>e.resource.id===o):void 0,[o,u]),[p,m]=T.useState(()=>new Map(Bi().map(e=>[e,N(e)]))),h=T.useCallback(e=>{l(e),s(void 0)},[]);if(!t.resources.length)return(0,M.jsx)(Gn,{text:`No network calls`});let g=(0,M.jsx)(Ii,{name:`network`,ariaLabel:`Network requests`,items:u,selectedItem:f,onSelected:e=>s(e.resource.id),onHighlighted:e=>n?.(e?Wi(e.resource):void 0),columns:P(!!f,d),columnTitle:zi,columnWidths:p,setColumnWidths:m,isError:e=>e.status.code>=400||e.status.code===-1,isInfo:e=>!!e.route,render:(e,t)=>Vi(e,t),sorting:i,setSorting:a});return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(Fi,{filterState:c,onFilterStateChange:h}),!f&&g,f&&(0,M.jsx)(ot,{sidebarSize:p.get(`name`),sidebarIsFirst:!0,orientation:`horizontal`,settingName:`networkResourceDetails`,main:f.resource._resourceType===`websocket`?(0,M.jsx)(hi,{resource:f.resource,startTimeOffset:f.start,onClose:()=>s(void 0)}):(0,M.jsx)(si,{resource:f.resource,sdkLanguage:r,startTimeOffset:f.start,onClose:()=>s(void 0)}),sidebar:g})]})},zi=e=>e===`contextId`?`Source`:e===`name`?`Name`:e===`method`?`Method`:e===`status`?`Status`:e===`contentType`?`Content Type`:e===`duration`?`Duration`:e===`size`?`Size`:e===`start`?`Start`:e===`route`?`Route`:``,N=e=>e===`name`?200:e===`method`||e===`status`?60:e===`contentType`?200:e===`contextId`?60:100;function P(e,t){if(e){let e=[`name`];return t&&e.unshift(`contextId`),e}let n=Bi();return t||(n=n.filter(e=>e!==`contextId`)),n}function Bi(){return[`contextId`,`name`,`method`,`status`,`contentType`,`duration`,`size`,`start`,`route`]}var Vi=(e,t)=>t===`contextId`?{body:e.contextId,title:e.name.url}:t===`name`?{body:e.name.name,title:e.name.url}:t===`method`?{body:e.method}:t===`status`?{body:e.status.code===-1?`canceled`:e.status.code>0?e.status.code:``,title:e.status.code===-1?`canceled`:e.status.text}:t===`contentType`?{body:e.contentType}:t===`duration`?{body:st(e.duration)}:t===`size`?{body:ct(e.size)}:t===`start`?{body:st(e.start)}:t===`route`?{body:e.route}:{body:``};function Hi(e,t){if(!e)return``;if(t.pageref)return e.pagerefToTitle.get(t.pageref)||``;if(t._apiRequest){let n=Ye(t);return n&&e.contextToTitle.get(n)||``}return``}var Ui=(e,t,n)=>{let r=Gi(e),i;try{let t=new URL(e.request.url);i=t.pathname.substring(t.pathname.lastIndexOf(`/`)+1),i||=t.host,t.search&&(i+=t.search)}catch{i=e.request.url}let a;if(e._resourceType===`websocket`)a=`websocket`;else{a=e.response.content.mimeType;let t=a.match(/^(.*);\s*charset=.*$/);t&&(a=t[1])}return{name:{name:i,url:e.request.url},method:e.request.method,status:{code:e.response.status,text:e.response.statusText},contentType:a,duration:e.time,size:e.response._transferSize>0?e.response._transferSize:e.response.bodySize,start:e._monotonicTime-t.minimum,route:r,resource:e,contextId:Hi(n,e)}};function Wi(e){if(e._monotonicTime)return{minimum:e._monotonicTime,maximum:e._monotonicTime+e.time}}function Gi(e){return e._wasAborted?`aborted`:e._wasContinued?`continued`:e._wasFulfilled?`fulfilled`:e._apiRequest?`api`:``}function Ki(e,t){let n=qi(t?.by);n&&e.sort(n),t.negate&&e.reverse()}function qi(e){if(e===`start`)return(e,t)=>e.start-t.start;if(e===`duration`)return(e,t)=>e.duration-t.duration;if(e===`status`)return(e,t)=>e.status.code-t.status.code;if(e===`method`)return(e,t)=>{let n=e.method,r=t.method;return n.localeCompare(r)};if(e===`size`)return(e,t)=>e.size-t.size;if(e===`contentType`)return(e,t)=>e.contentType.localeCompare(t.contentType);if(e===`name`)return(e,t)=>e.name.name.localeCompare(t.name.name);if(e===`route`)return(e,t)=>e.route.localeCompare(t.route);if(e===`contextId`)return(e,t)=>e.contextId.localeCompare(t.contextId)}var Ji={Fetch:e=>e.contentType===`application/json`,HTML:e=>e.contentType===`text/html`,CSS:e=>e.contentType===`text/css`,JS:e=>e.contentType.includes(`javascript`),Font:e=>e.contentType.includes(`font`),Image:e=>e.contentType.includes(`image`),WS:e=>e.resource._resourceType===`websocket`};function Yi({searchValue:e,resourceTypes:t}){return n=>(t.size===0||Array.from(t).some(e=>Ji[e](n)))&&n.name.url.toLowerCase().includes(e.toLowerCase())}function Xi(e){return e.box.cursor===`pointer`}function Zi(e,t,n={}){let r=new e.LineCounter,i={keepSourceTokens:!0,lineCounter:r,...n},a=e.parseDocument(t,i),o=[],s=e=>[r.linePos(e[0]),r.linePos(e[1])],c=e=>{o.push({message:e.message,range:[r.linePos(e.pos[0]),r.linePos(e.pos[1])]})},l=(t,n)=>{for(let r of n.items){if(r instanceof e.Scalar&&typeof r.value==`string`){let e=ta.parse(r,i,o);e&&(t.children=t.children||[],t.children.push(e));continue}if(r instanceof e.YAMLMap){u(t,r);continue}o.push({message:`Sequence items should be strings or maps`,range:s(r.range||n.range)})}},u=(t,n)=>{for(let r of n.items){if(t.children=t.children||[],!(r.key instanceof e.Scalar&&typeof r.key.value==`string`)){o.push({message:`Only string keys are supported`,range:s(r.key.range||n.range)});continue}let a=r.key,c=r.value;if(a.value===`text`){if(!(c instanceof e.Scalar&&typeof c.value==`string`)){o.push({message:`Text value should be a string`,range:s(r.value.range||n.range)});continue}t.children.push({kind:`text`,text:ea(c.value)});continue}if(a.value===`/children`){if(!(c instanceof e.Scalar&&typeof c.value==`string`)||c.value!==`contain`&&c.value!==`equal`&&c.value!==`deep-equal`){o.push({message:`Strict value should be "contain", "equal" or "deep-equal"`,range:s(r.value.range||n.range)});continue}t.containerMode=c.value;continue}if(a.value.startsWith(`/`)){if(!(c instanceof e.Scalar&&typeof c.value==`string`)){o.push({message:`Property value should be a string`,range:s(r.value.range||n.range)});continue}t.props=t.props??{},t.props[a.value.slice(1)]=ea(c.value);continue}let u=ta.parse(a,i,o);if(u){if(c instanceof e.Scalar){let e=typeof c.value;if(e!==`string`&&e!==`number`&&e!==`boolean`){o.push({message:`Node value should be a string or a sequence`,range:s(r.value.range||n.range)});continue}t.children.push({...u,children:[{kind:`text`,text:ea(String(c.value))}]});continue}if(c instanceof e.YAMLSeq){t.children.push(u),l(u,c);continue}o.push({message:`Map values should be strings or sequences`,range:s(r.value.range||n.range)})}}},d={kind:`role`,role:`fragment`};return a.errors.forEach(c),o.length||(a.contents instanceof e.YAMLSeq||o.push({message:`Aria snapshot must be a YAML sequence, elements starting with " -"`,range:a.contents?s(a.contents.range):[{line:0,col:0},{line:0,col:0}]}),o.length)?{errors:o,fragment:d}:(l(d,a.contents),o.length?{errors:o,fragment:Qi}:d.children?.length===1&&(!d.containerMode||d.containerMode===`contain`)?{fragment:d.children[0],errors:[]}:{fragment:d,errors:[]})}var Qi={kind:`role`,role:`fragment`};function $i(e){return e.replace(/[\u200b\u00ad]/g,``).replace(/[\r\n\s\t]+/g,` `).trim()}function ea(e){return{raw:e,normalized:$i(e)}}var ta=class e{static parse(t,n,r){try{return new e(t.value)._parse()}catch(e){if(e instanceof na){let i=n.prettyErrors===!1?e.message:e.message+`:
48
+
49
+ `+t.value+`
50
+ `+` `.repeat(e.pos)+`^
51
+ `;return r.push({message:i,range:[n.lineCounter.linePos(t.range[0]),n.lineCounter.linePos(t.range[0]+e.pos)]}),null}throw e}}constructor(e){this._input=e,this._pos=0,this._length=e.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(e){this._eof()&&this._throwError(`Unexpected end of input when expecting ${e}`);let t=this._pos;for(;!this._eof()&&/[a-zA-Z]/.test(this._peek());)this._pos++;return this._input.slice(t,this._pos)}_readString(){let e=``,t=!1;for(;!this._eof();){let n=this._next();if(t)e+=n,t=!1;else if(n===`\\`)t=!0;else if(n===`"`)return e;else e+=n}this._throwError(`Unterminated string`)}_throwError(e,t=0){throw new na(e,t||this._pos)}_readRegex(){let e=``,t=!1,n=!1;for(;!this._eof();){let r=this._next();if(t)e+=r,t=!1;else if(r===`\\`)t=!0,e+=r;else if(r===`/`&&!n)return{pattern:e};else r===`[`?(n=!0,e+=r):r===`]`&&n?(e+=r,n=!1):e+=r}this._throwError(`Unterminated regex`)}_readStringOrRegex(){let e=this._peek();return e===`"`?(this._next(),$i(this._readString())):e===`/`?(this._next(),this._readRegex()):null}_readAttributes(e){let t=this._pos;for(;this._skipWhitespace(),this._peek()===`[`;){this._next(),this._skipWhitespace(),t=this._pos;let n=this._readIdentifier(`attribute`);this._skipWhitespace();let r=``;if(this._peek()===`=`)for(this._next(),this._skipWhitespace(),t=this._pos;this._peek()!==`]`&&!this._isWhitespace()&&!this._eof();)r+=this._next();this._skipWhitespace(),this._peek()!==`]`&&this._throwError(`Expected ]`),this._next(),this._applyAttribute(e,n,r||`true`,t)}}_parse(){this._skipWhitespace();let e=this._readIdentifier(`role`);this._skipWhitespace();let t={kind:`role`,role:e,name:this._readStringOrRegex()||``};return this._readAttributes(t),this._skipWhitespace(),this._eof()||this._throwError(`Unexpected input`),t}_applyAttribute(e,t,n,r){if(t===`checked`){this._assert(n===`true`||n===`false`||n===`mixed`,`Value of "checked" attribute must be a boolean or "mixed"`,r),e.checked=n===`true`?!0:n===`false`?!1:`mixed`;return}if(t===`disabled`){this._assert(n===`true`||n===`false`,`Value of "disabled" attribute must be a boolean`,r),e.disabled=n===`true`;return}if(t===`expanded`){this._assert(n===`true`||n===`false`,`Value of "expanded" attribute must be a boolean`,r),e.expanded=n===`true`;return}if(t===`active`){this._assert(n===`true`||n===`false`,`Value of "active" attribute must be a boolean`,r),e.active=n===`true`;return}if(t===`invalid`){this._assert(n===`true`||n===`false`||n===`grammar`||n===`spelling`,`Value of "invalid" attribute must be a boolean, "grammar" or "spelling"`,r),e.invalid=n===`true`?!0:n===`false`?!1:n;return}if(t===`level`){this._assert(!isNaN(Number(n)),`Value of "level" attribute must be a number`,r),e.level=Number(n);return}if(t===`pressed`){this._assert(n===`true`||n===`false`||n===`mixed`,`Value of "pressed" attribute must be a boolean or "mixed"`,r),e.pressed=n===`true`?!0:n===`false`?!1:`mixed`;return}if(t===`selected`){this._assert(n===`true`||n===`false`,`Value of "selected" attribute must be a boolean`,r),e.selected=n===`true`;return}this._assert(!1,`Unsupported attribute [${t}]`,r)}_assert(e,t,n){e||this._throwError(t||`Assertion error`,n)}},na=class extends Error{constructor(e,t){super(e),this.pos=t}};function ra(e,t){function n(e,t,r){let i=1,a=r+i;for(let r of e.children||[])typeof r==`string`?(i++,a++):(i+=n(r,t,a),a+=i);if(![`none`,`presentation`,`fragment`,`iframe`,`generic`].includes(e.role)&&e.name){let n=t.get(e.role);n||(n=new Map,t.set(e.role,n));let a=n.get(e.name),o=i*100-r;(!a||a.sizeAndPosition<o)&&n.set(e.name,{node:e,sizeAndPosition:o})}return i}let r=new Map;e&&n(e,r,0);let i=new Map;n(t,i,0);let a=[];for(let[e,t]of i)for(let[n,i]of t)r.get(e)?.get(n)||a.push(i);return a.sort((e,t)=>t.sizeAndPosition-e.sizeAndPosition),a[0]?.node}function ia(e,t,n){return`internal:attr=[${e}=${u(t,n?.exact||!1)}]`}function aa(e){return e.split(`,`)}function oa(e){return e.includes(`,`)?JSON.stringify(e):e}function sa(e,t){return`internal:testid=[${oa(e)}=${u(t,!0)}]`}function ca(e,t){return`internal:label=`+i(e,!!t?.exact)}function la(e,t){return ia(`alt`,e,t)}function ua(e,t){return ia(`title`,e,t)}function da(e,t){return ia(`placeholder`,e,t)}function fa(e,t){return`internal:text=`+i(e,!!t?.exact)}function pa(e,t={}){let n=[];return t.checked!==void 0&&n.push([`checked`,String(t.checked)]),t.disabled!==void 0&&n.push([`disabled`,String(t.disabled)]),t.selected!==void 0&&n.push([`selected`,String(t.selected)]),t.expanded!==void 0&&n.push([`expanded`,String(t.expanded)]),t.includeHidden!==void 0&&n.push([`include-hidden`,String(t.includeHidden)]),t.level!==void 0&&n.push([`level`,String(t.level)]),t.name!==void 0&&n.push([`name`,u(t.name,!!t.exact)]),t.description!==void 0&&n.push([`description`,u(t.description,!!t.exact)]),t.pressed!==void 0&&n.push([`pressed`,String(t.pressed)]),t.busy!==void 0&&n.push([`busy`,String(t.busy)]),`internal:role=${e}${n.map(([e,t])=>`[${e}=${t}]`).join(``)}`}function ma(e){return ga(e)?`'`+e.replace(/'/g,`''`)+`'`:e}function ha(e){return ga(e)?`"`+e.replace(/[\\"\x00-\x1f\x7f-\x9f]/g,e=>{switch(e){case`\\`:return`\\\\`;case`"`:return`\\"`;case`\b`:return`\\b`;case`\f`:return`\\f`;case`
52
+ `:return`\\n`;case`\r`:return`\\r`;case` `:return`\\t`;default:return`\\x`+e.charCodeAt(0).toString(16).padStart(2,`0`)}})+`"`:e}function ga(e){return!!(e.length===0||/^\s|\s$/.test(e)||/[\x00-\x08\x0b\x0c\x0e-\x1f\x7f-\x9f]/.test(e)||/^-/.test(e)||/[\n:](\s|$)/.test(e)||/\s#/.test(e)||/[\n\r]/.test(e)||/^[&*\],?!>|@"'#%]/.test(e)||/[{}`]/.test(e)||/^\[/.test(e)||!isNaN(Number(e))||[`y`,`n`,`yes`,`no`,`true`,`false`,`on`,`off`,`null`].includes(e.toLowerCase()))}function _a(e,t){va(e,t.mode===`ai`?Da:Ea,t)}function va(e,t,n){let r={snapshot:e,depth:-1,maxDepth:n.depth,ancestors:[],pendingContentRefs:new Set},i=(e,n)=>{let a=[],o=e=>{if(typeof e==`string`){a.push(e);return}r.depth=n+1;for(let n of t){let t=n.enter?.(e,r);if(t===`remove`)return;if(t===`unwrap`){e.children.forEach(o);return}}i(e,n+1),r.depth=n+1;for(let n of t){let t=n.exit?.(e,r);if(t===`remove`)return;if(t===`unwrap`){a.push(...e.children);return}}a.push(e)};r.ancestors.push(e),e.children.forEach(o),r.ancestors.pop(),e.children=a};for(let n of t)n.enter?.(e.root,r);i(e.root,-1),r.depth=-1;for(let n of t)n.exit?.(e.root,r)}function ya(e){return e.role===`generic`&&e.children.every(e=>typeof e==`string`)}var ba={name:`mergeStringChildren`,exit(e){let t=[],n=[],r=()=>{if(!n.length)return;let e=a(n.join(``));e&&t.push(e),n.length=0};for(let i of e.children)typeof i==`string`?n.push(i):(r(),t.push(i));r(),e.children=t,e.children.length===1&&e.children[0]===e.name&&(e.children=[])}},xa={name:`unwrapSingleChildGenerics`,exit(e){if(e.role===`generic`&&!e.name&&e.children.length<=1&&e.children.every(e=>typeof e!=`string`&&!!e.ref))return`unwrap`}},Sa={name:`removeNamelessImages`,exit(e){if(e.role===`img`&&!e.name&&!e.children.length)return`remove`}},Ca={name:`removeRedundantNames`,enter(e,t){if(e.ref){for(let n of t.snapshot.info.get(e.ref)?.nameFromContentRefs||[])t.pendingContentRefs.add(n);!(t.maxDepth&&t.depth>t.maxDepth)&&!ya(e)&&t.pendingContentRefs.delete(e.ref)}},exit(e,t){if(!e.ref)return;let n=t.snapshot.info.get(e.ref)?.nameFromContentRefs;if(n?.length)if(n.every(e=>!t.pendingContentRefs.has(e)))e.name=``;else for(let e of n)t.pendingContentRefs.delete(e)}},wa={name:`removeNameRepeatingChild`,exit(e,t){let n=t.ancestors[t.ancestors.length-1];if(!n?.name||e.role!==`generic`||e.active||Object.keys(e.props).length)return;let r=e.children.length===1&&typeof e.children[0]==`string`?e.children[0]:void 0,i=e.name?e.children.length?void 0:e.name:r;if(i&&i===n.name)return`remove`}},Ta={name:`inlineTextIntoGeneric`,exit(e){if(e.role!==`generic`||Object.keys(e.props).length||e.children.length!==1)return;let t=e.children[0];typeof t!=`string`&&(t.role!==`generic`||t.name||t.active||Object.keys(t.props).length||t.children.length===1&&typeof t.children[0]==`string`&&(e.children=[t.children[0]]))}},Ea=[ba,xa],Da=[ba,Sa,Ca,Ta,wa,xa],Oa={};function ka(e){Oa=e}function Aa(e,t){for(;t;){if(e.contains(t))return!0;t=Na(t)}return!1}function ja(e){if(e.parentElement)return e.parentElement;if(e.parentNode&&e.parentNode.nodeType===11&&e.parentNode.host)return e.parentNode.host}function Ma(e){let t=e;for(;t.parentNode;)t=t.parentNode;if(t.nodeType===11||t.nodeType===9)return t}function Na(e){for(;e.parentElement;)e=e.parentElement;return ja(e)}function Pa(e,t,n){for(;e;){let r=e.closest(t);if(n&&r!==n&&r?.contains(n))return;if(r)return r;e=Na(e)}}function Fa(e,t){let n=t===`::before`?Va:t===`::after`?Ha:Ba;if(n&&n.has(e))return n.get(e);let r=e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,t):void 0;return n?.set(e,r),r}function Ia(e,t){if(t??=Fa(e),!t)return!0;if(Element.prototype.checkVisibility&&Oa.browserNameForWorkarounds!==`webkit`){if(!e.checkVisibility())return!1}else{let t=e.closest(`details,summary`);if(t!==e&&t?.nodeName===`DETAILS`&&!t.open)return!1}return t.visibility===`visible`}function La(e){let t=Fa(e);if(!t)return{visible:!0,inline:!1};let n=t.cursor;if(t.display===`contents`){for(let t=e.firstChild;t;t=t.nextSibling){if(t.nodeType===1&&Ra(t))return{visible:!0,inline:!1,cursor:n};if(t.nodeType===3&&za(t))return{visible:!0,inline:!0,cursor:n}}return{visible:!1,inline:!1,cursor:n}}if(!Ia(e,t))return{cursor:n,visible:!1,inline:!1};let r=e.getBoundingClientRect();return{cursor:n,visible:r.width>0&&r.height>0,inline:t.display===`inline`}}function Ra(e){return La(e).visible}function za(e){let t=e.ownerDocument.createRange();t.selectNode(e);let n=t.getBoundingClientRect();return n.width>0&&n.height>0}function F(e){let t=e.tagName;return typeof t==`string`?t.toUpperCase():e instanceof HTMLFormElement?`FORM`:e.tagName.toUpperCase()}var Ba,Va,Ha,Ua=0;function Wa(){++Ua,Ba??=new Map,Va??=new Map,Ha??=new Map}function Ga(){--Ua||(Ba=void 0,Va=void 0,Ha=void 0)}function Ka(e){return e.hasAttribute(`aria-label`)||e.hasAttribute(`aria-labelledby`)}var qa=`article:not([role]), aside:not([role]), main:not([role]), nav:not([role]), section:not([role]), [role=article], [role=complementary], [role=main], [role=navigation], [role=region]`,Ja=[[`aria-atomic`,void 0],[`aria-busy`,void 0],[`aria-controls`,void 0],[`aria-current`,void 0],[`aria-describedby`,void 0],[`aria-details`,void 0],[`aria-dropeffect`,void 0],[`aria-flowto`,void 0],[`aria-grabbed`,void 0],[`aria-hidden`,void 0],[`aria-keyshortcuts`,void 0],[`aria-label`,[`caption`,`code`,`deletion`,`emphasis`,`generic`,`insertion`,`paragraph`,`presentation`,`strong`,`subscript`,`superscript`]],[`aria-labelledby`,[`caption`,`code`,`deletion`,`emphasis`,`generic`,`insertion`,`paragraph`,`presentation`,`strong`,`subscript`,`superscript`]],[`aria-live`,void 0],[`aria-owns`,void 0],[`aria-relevant`,void 0],[`aria-roledescription`,[`generic`]]];function Ya(e,t){return Ja.some(([n,r])=>!r?.includes(t||``)&&e.hasAttribute(n))}function Xa(e){return!Number.isNaN(Number(String(e.getAttribute(`tabindex`))))}function Za(e){return!Wo(e)&&(Qa(e)||Xa(e))}function Qa(e){let t=F(e);return[`BUTTON`,`DETAILS`,`SELECT`,`TEXTAREA`].includes(t)?!0:t===`A`||t===`AREA`?e.hasAttribute(`href`):t===`INPUT`?!e.hidden:!1}var $a={A:e=>e.hasAttribute(`href`)?`link`:null,AREA:e=>e.hasAttribute(`href`)?`link`:null,ARTICLE:()=>`article`,ASIDE:()=>`complementary`,BLOCKQUOTE:()=>`blockquote`,BUTTON:()=>`button`,CAPTION:()=>`caption`,CODE:()=>`code`,DATALIST:()=>`listbox`,DD:()=>`definition`,DEL:()=>`deletion`,DETAILS:()=>`group`,DFN:()=>`term`,DIALOG:()=>`dialog`,DT:()=>`term`,EM:()=>`emphasis`,FIELDSET:()=>`group`,FIGURE:()=>`figure`,FOOTER:e=>Pa(e,qa)?null:`contentinfo`,FORM:e=>Ka(e)?`form`:null,H1:()=>`heading`,H2:()=>`heading`,H3:()=>`heading`,H4:()=>`heading`,H5:()=>`heading`,H6:()=>`heading`,HEADER:e=>Pa(e,qa)?null:`banner`,HR:()=>`separator`,HTML:()=>`document`,IMG:e=>e.getAttribute(`alt`)===``&&!e.getAttribute(`title`)&&!Ya(e)&&!Xa(e)?`presentation`:`img`,INPUT:e=>{let t=e.type.toLowerCase();if(t===`search`)return e.hasAttribute(`list`)?`combobox`:`searchbox`;if([`email`,`tel`,`text`,`url`,``].includes(t)){let t=fo(e,e.getAttribute(`list`))[0];return t&&F(t)===`DATALIST`?`combobox`:`textbox`}return t===`hidden`?null:t===`file`?`button`:fs[t]||`textbox`},INS:()=>`insertion`,LI:()=>`listitem`,MAIN:()=>`main`,MARK:()=>`mark`,MATH:()=>`math`,MENU:()=>`list`,METER:()=>`meter`,NAV:()=>`navigation`,OL:()=>`list`,OPTGROUP:()=>`group`,OPTION:()=>`option`,OUTPUT:()=>`status`,P:()=>`paragraph`,PROGRESS:()=>`progressbar`,SEARCH:()=>`search`,SECTION:e=>Ka(e)?`region`:null,SELECT:e=>e.hasAttribute(`multiple`)||e.size>1?`listbox`:`combobox`,STRONG:()=>`strong`,SUB:()=>`subscript`,SUP:()=>`superscript`,SVG:()=>`img`,TABLE:()=>`table`,TBODY:()=>`rowgroup`,TD:e=>{let t=Pa(e,`table`),n=t?ao(t):``;return n===`grid`||n===`treegrid`?`gridcell`:`cell`},TEXTAREA:()=>`textbox`,TFOOT:()=>`rowgroup`,TH:e=>{let t=e.getAttribute(`scope`);if(t===`col`||t===`colgroup`)return`columnheader`;if(t===`row`||t===`rowgroup`)return`rowheader`;let n=e.nextElementSibling,r=e.previousElementSibling,i=e.parentElement&&F(e.parentElement)===`TR`?e.parentElement:void 0;if(!n&&!r){if(i){let e=Pa(i,`table`);if(e&&e.rows.length<=1)return null}return`columnheader`}return eo(n)&&eo(r)?`columnheader`:to(n)||to(r)?`rowheader`:`columnheader`},THEAD:()=>`rowgroup`,TIME:()=>`time`,TR:()=>`row`,UL:()=>`list`};function eo(e){return!!e&&F(e)===`TH`}function to(e){return!e||F(e)!==`TD`?!1:!!(e.textContent?.trim()||e.children.length>0)}var no={DD:[`DL`,`DIV`],DIV:[`DL`],DT:[`DL`,`DIV`],LI:[`OL`,`UL`],TBODY:[`TABLE`],TD:[`TR`],TFOOT:[`TABLE`],TH:[`TR`],THEAD:[`TABLE`],TR:[`THEAD`,`TBODY`,`TFOOT`,`TABLE`]};function ro(e){let t=$a[F(e)]?.(e)||``;if(!t)return null;let n=e;for(;n;){let e=ja(n),t=no[F(n)];if(!t||!e||!t.includes(F(e)))break;let r=ao(e);if((r===`none`||r===`presentation`)&&!oo(e,r))return r;n=e}return t}var io=`alert.alertdialog.application.article.banner.blockquote.button.caption.cell.checkbox.code.columnheader.combobox.complementary.contentinfo.definition.deletion.dialog.directory.document.emphasis.feed.figure.form.generic.grid.gridcell.group.heading.img.insertion.link.list.listbox.listitem.log.main.mark.marquee.math.meter.menu.menubar.menuitem.menuitemcheckbox.menuitemradio.navigation.none.note.option.paragraph.presentation.progressbar.radio.radiogroup.region.row.rowgroup.rowheader.scrollbar.search.searchbox.separator.slider.spinbutton.status.strong.subscript.superscript.switch.tab.table.tablist.tabpanel.term.textbox.time.timer.toolbar.tooltip.tree.treegrid.treeitem`.split(`.`);function ao(e){return(e.getAttribute(`role`)||``).split(` `).map(e=>e.trim()).find(e=>io.includes(e))||null}function oo(e,t){return Ya(e,t)||Za(e)}function I(e){let t=ao(e);if(!t)return ro(e);if(t===`none`||t===`presentation`){let t=ro(e);if(oo(e,t))return t}return t}function so(e){return e===null?void 0:e.toLowerCase()===`true`}function co(e){return[`STYLE`,`SCRIPT`,`NOSCRIPT`,`TEMPLATE`].includes(F(e))}function lo(e){if(co(e))return!0;let t=Fa(e),n=e.nodeName===`SLOT`;if(t?.display===`contents`&&!n){for(let t=e.firstChild;t;t=t.nextSibling)if(t.nodeType===1&&!lo(t)||t.nodeType===3&&za(t))return!1;return!0}return!(e.nodeName===`OPTION`&&e.closest(`select`))&&!n&&!Ia(e,t)?!0:uo(e)}function uo(e){let t=is?.get(e);if(t===void 0){if(t=!1,e.parentElement&&e.parentElement.shadowRoot&&!e.assignedSlot&&(t=!0),!t){let n=Fa(e);t=!n||n.display===`none`||so(e.getAttribute(`aria-hidden`))===!0}if(!t){let n=ja(e);n&&(t=uo(n))}is?.set(e,t)}return t}function fo(e,t){if(!t)return[];let n=Ma(e);if(!n)return[];try{let e=t.split(` `).filter(e=>!!e),r=[];for(let t of e){let e=n.querySelector(`#`+CSS.escape(t));e&&!r.includes(e)&&r.push(e)}return r}catch{return[]}}function po(e){return e.trim()}function L(e){return e.split(`\xA0`).map(e=>e.replace(/\r\n/g,`
53
+ `).replace(/[\u200b\u00ad]/g,``).replace(/\s\s*/g,` `)).join(`\xA0`).trim()}function mo(e,t){let n=[...e.querySelectorAll(t)];for(let r of fo(e,e.getAttribute(`aria-owns`)))r.matches(t)&&n.push(r),n.push(...r.querySelectorAll(t));return n}function ho(e,t){let n=t===`::before`?os:t===`::after`?ss:as;if(n?.has(e))return n?.get(e);let r=Fa(e,t),i;if(r){let n=r.content;n&&n!==`none`&&n!==`normal`&&r.display!==`none`&&r.visibility!==`hidden`&&(i=R(e,n,!!t))}return t&&i!==void 0&&(r?.display||`inline`)!==`inline`&&(i=` `+i+` `),n&&n.set(e,i),i}function R(e,t,n){if(!(!t||t===`none`||t===`normal`))try{let r=Tt(t).filter(e=>!(e instanceof kt)),i=r.findIndex(e=>e instanceof Yt&&e.value===`/`);if(i!==-1)r=r.slice(i+1);else if(!n)return;let a=[],o=0;for(;o<r.length;)if(r[o]instanceof tn)a.push(r[o].value),o++;else if(o+2<r.length&&r[o]instanceof Qt&&r[o].value===`attr`&&r[o+1]instanceof Zt&&r[o+2]instanceof Vt){let t=r[o+1].value;a.push(e.getAttribute(t)||``),o+=3}else return;return a.join(``)}catch{}}function z(e){let t=e.getAttribute(`aria-labelledby`);if(t===null)return null;let n=fo(e,t);return n.length?n:null}function go(e,t){let n=[`button`,`cell`,`checkbox`,`columnheader`,`gridcell`,`heading`,`link`,`menuitem`,`menuitemcheckbox`,`menuitemradio`,`option`,`radio`,`row`,`rowheader`,`switch`,`tab`,`tooltip`,`treeitem`].includes(e),r=t&&[``,`caption`,`code`,`contentinfo`,`definition`,`deletion`,`emphasis`,`insertion`,`list`,`listitem`,`mark`,`none`,`paragraph`,`presentation`,`region`,`row`,`rowgroup`,`section`,`strong`,`subscript`,`superscript`,`table`,`term`,`time`].includes(e);return n||r}function _o(e,t,n){if([`caption`,`code`,`definition`,`deletion`,`emphasis`,`generic`,`insertion`,`mark`,`paragraph`,`presentation`,`strong`,`subscript`,`suggestion`,`superscript`,`term`,`time`].includes(I(e)||``))return ps();let r=To(e,{includeHidden:t,collectElements:n,visitedElements:new Set,embeddedInTargetElement:`self`});return{text:L(r.text),elements:r.elements}}function vo(e,t){let n=t?Qo:Zo,r=n?.get(e);return r===void 0&&(r=_o(e,t,!0),n?.set(e,r)),r}function yo(e,t){let n=(t?Qo:Zo)?.get(e);if(n!==void 0)return n.text;let r=t?es:$o,i=r?.get(e);return i===void 0&&(i=_o(e,t,!1).text,r?.set(e,i)),i}function bo(e,t){let n=t?ns:ts,r=n?.get(e);return r===void 0&&(r=``,r=e.hasAttribute(`aria-describedby`)?L(fo(e,e.getAttribute(`aria-describedby`)).map(e=>To(e,{includeHidden:t,visitedElements:new Set,embeddedInDescribedBy:{element:e,hidden:lo(e)}}).text).join(` `)):e.hasAttribute(`aria-description`)?L(e.getAttribute(`aria-description`)||``):L(e.getAttribute(`title`)||``),n?.set(e,r)),r}var xo=[`application`,`checkbox`,`columnheader`,`combobox`,`gridcell`,`listbox`,`radiogroup`,`rowheader`,`searchbox`,`slider`,`spinbutton`,`switch`,`textbox`,`tree`];function So(e){let t=e.getAttribute(`aria-invalid`);return!t||t.trim()===``||t.toLocaleLowerCase()===`false`?`false`:t===`true`||t===`grammar`||t===`spelling`?t:`true`}function Co(e){return`validity`in e?e.validity?.valid===!1:!1}function wo(e){let t=rs,n=rs?.get(e);if(n===void 0){n=``;let r=So(e)!==`false`,i=Co(e);(r||i)&&(n=fo(e,e.getAttribute(`aria-errormessage`)).map(e=>L(To(e,{visitedElements:new Set,embeddedInDescribedBy:{element:e,hidden:lo(e)}}).text)).join(` `).trim()),t?.set(e,n)}return n}function To(e,t){if(t.visitedElements.has(e))return ps();let n={...t,embeddedInTargetElement:t.embeddedInTargetElement===`self`?`descendant`:t.embeddedInTargetElement};if(!t.includeHidden){let n=!!t.embeddedInLabelledBy?.hidden||!!t.embeddedInDescribedBy?.hidden||!!t.embeddedInNativeTextAlternative?.hidden||!!t.embeddedInLabel?.hidden;if(co(e)||!n&&lo(e))return t.visitedElements.add(e),ps()}let r=z(e);if(!t.embeddedInLabelledBy){let e=ms((r||[]).map(e=>To(e,{...t,embeddedInLabelledBy:{element:e,hidden:lo(e)},embeddedInDescribedBy:void 0,embeddedInTargetElement:void 0,embeddedInLabel:void 0,embeddedInNativeTextAlternative:void 0})),` `,t.collectElements);if(e.text)return e}let i=I(e)||``,a=F(e);if(t.embeddedInLabel||t.embeddedInLabelledBy||t.embeddedInTargetElement===`descendant`){let o=[...e.labels||[]].includes(e),s=(r||[]).includes(e);if(!o&&!s){if(i===`textbox`)return t.visitedElements.add(e),B(a===`INPUT`||a===`TEXTAREA`?e.value:e.textContent,e,t.collectElements);if([`combobox`,`listbox`].includes(i)){t.visitedElements.add(e);let r;if(a===`SELECT`)r=[...e.selectedOptions],!r.length&&e.options.length&&r.push(e.options[0]);else{let t=i===`combobox`?mo(e,`*`).find(e=>I(e)===`listbox`):e;r=t?mo(t,`[aria-selected="true"]`).filter(e=>I(e)===`option`):[]}return!r.length&&a===`INPUT`?B(e.value,e,t.collectElements):ms(r.map(e=>To(e,n)),` `,t.collectElements)}if([`progressbar`,`scrollbar`,`slider`,`spinbutton`,`meter`].includes(i))return t.visitedElements.add(e),e.hasAttribute(`aria-valuetext`)?B(e.getAttribute(`aria-valuetext`),e,t.collectElements):e.hasAttribute(`aria-valuenow`)?B(e.getAttribute(`aria-valuenow`),e,t.collectElements):B(e.getAttribute(`value`),e,t.collectElements);if([`menu`].includes(i))return t.visitedElements.add(e),ps()}}let o=e.getAttribute(`aria-label`)||``;if(po(o))return t.visitedElements.add(e),B(o,e,t.collectElements);if(![`presentation`,`none`].includes(i)){if(a===`INPUT`&&[`button`,`submit`,`reset`].includes(e.type)){t.visitedElements.add(e);let n=e.value||``;return po(n)?B(n,e,t.collectElements):e.type===`submit`?B(`Submit`,e,t.collectElements):e.type===`reset`?B(`Reset`,e,t.collectElements):B(e.getAttribute(`title`)||``,e,t.collectElements)}if(a===`INPUT`&&e.type===`file`){t.visitedElements.add(e);let n=e.labels||[];return n.length&&!t.embeddedInLabelledBy?Yo(n,t):B(`Choose File`,e,t.collectElements)}if(a===`INPUT`&&e.type===`image`){t.visitedElements.add(e);let n=e.labels||[];if(n.length&&!t.embeddedInLabelledBy)return Yo(n,t);let r=e.getAttribute(`alt`)||``;if(po(r))return B(r,e,t.collectElements);let i=e.getAttribute(`title`)||``;return po(i)?B(i,e,t.collectElements):B(`Submit`,e,t.collectElements)}if(!r&&a===`BUTTON`){t.visitedElements.add(e);let n=e.labels||[];if(n.length)return Yo(n,t)}if(!r&&a===`OUTPUT`){t.visitedElements.add(e);let n=e.labels||[];return n.length?Yo(n,t):B(e.getAttribute(`title`)||``,e,t.collectElements)}if(!r&&(a===`TEXTAREA`||a===`SELECT`||a===`INPUT`)){t.visitedElements.add(e);let n=e.labels||[];if(n.length)return Yo(n,t);let r=a===`INPUT`&&[`text`,`password`,`number`,`search`,`tel`,`email`,`url`].includes(e.type)||a===`TEXTAREA`,i=e.getAttribute(`placeholder`)||``,o=e.getAttribute(`title`)||``;return B(!r||o?o:i,e,t.collectElements)}if(!r&&a===`FIELDSET`){t.visitedElements.add(e);for(let t=e.firstElementChild;t;t=t.nextElementSibling)if(F(t)===`LEGEND`)return To(t,{...n,embeddedInNativeTextAlternative:{element:t,hidden:lo(t)}});return B(e.getAttribute(`title`)||``,e,t.collectElements)}if(!r&&a===`FIGURE`){t.visitedElements.add(e);for(let t=e.firstElementChild;t;t=t.nextElementSibling)if(F(t)===`FIGCAPTION`)return To(t,{...n,embeddedInNativeTextAlternative:{element:t,hidden:lo(t)}});return B(e.getAttribute(`title`)||``,e,t.collectElements)}if(a===`IMG`){t.visitedElements.add(e);let n=e.getAttribute(`alt`)||``;return po(n)?B(n,e,t.collectElements):B(e.getAttribute(`title`)||``,e,t.collectElements)}if(a===`TABLE`){t.visitedElements.add(e);for(let t=e.firstElementChild;t;t=t.nextElementSibling)if(F(t)===`CAPTION`)return To(t,{...n,embeddedInNativeTextAlternative:{element:t,hidden:lo(t)}});let r=e.getAttribute(`summary`)||``;if(r)return B(r,e,t.collectElements)}if(a===`AREA`){t.visitedElements.add(e);let n=e.getAttribute(`alt`)||``;return po(n)?B(n,e,t.collectElements):B(e.getAttribute(`title`)||``,e,t.collectElements)}if(a===`SVG`||e.ownerSVGElement){t.visitedElements.add(e);for(let t=e.firstElementChild;t;t=t.nextElementSibling)if(F(t)===`TITLE`&&t.ownerSVGElement)return To(t,{...n,embeddedInLabelledBy:{element:t,hidden:lo(t)}})}if(e.ownerSVGElement&&a===`A`){let n=e.getAttribute(`xlink:title`)||``;if(po(n))return t.visitedElements.add(e),B(n,e,t.collectElements)}}let s=a===`SUMMARY`&&![`presentation`,`none`].includes(i);if(go(i,t.embeddedInTargetElement===`descendant`)||s||t.embeddedInLabelledBy||t.embeddedInDescribedBy||t.embeddedInLabel||t.embeddedInNativeTextAlternative){t.visitedElements.add(e);let r=Eo(e,n);if(t.embeddedInTargetElement===`self`?po(r.text):r.text)return r.elements?.add(e),r}if(![`presentation`,`none`].includes(i)||a===`IFRAME`){t.visitedElements.add(e);let n=e.getAttribute(`title`)||``;if(po(n))return B(n,e,t.collectElements)}return t.visitedElements.add(e),ps()}function Eo(e,t){let n=[],r=t.collectElements?new Set:void 0,i=(e,i)=>{if(!(i&&e.assignedSlot))if(e.nodeType===1){let i=Fa(e)?.display||`inline`,a=To(e,t),o=a.text;for(let e of a.elements||[])r?.add(e);(i!==`inline`||e.nodeName===`BR`)&&(o=` `+o+` `),n.push(o)}else e.nodeType===3&&n.push(e.textContent||``)};n.push(ho(e,`::before`)||``);let a=ho(e);if(a!==void 0)n.push(a);else{let t=e.nodeName===`SLOT`?e.assignedNodes():[];if(t.length)for(let e of t)i(e,!1);else{for(let t=e.firstChild;t;t=t.nextSibling)i(t,!0);if(e.shadowRoot)for(let t=e.shadowRoot.firstChild;t;t=t.nextSibling)i(t,!0);for(let t of fo(e,e.getAttribute(`aria-owns`)))i(t,!0)}}return n.push(ho(e,`::after`)||``),{text:n.join(``),elements:r}}var Do=[`gridcell`,`option`,`row`,`tab`,`rowheader`,`columnheader`,`treeitem`];function Oo(e){return F(e)===`OPTION`?e.selected:Do.includes(I(e)||``)?so(e.getAttribute(`aria-selected`))===!0:!1}var ko=[`checkbox`,`menuitemcheckbox`,`option`,`radio`,`switch`,`menuitemradio`,`treeitem`];function Ao(e){let t=No(e,!0);return t===`error`?!1:t}function jo(e){return No(e,!0)}function Mo(e){return No(e,!1)}function No(e,t){let n=F(e);if(t&&n===`INPUT`&&e.indeterminate)return`mixed`;if(n===`INPUT`&&[`checkbox`,`radio`].includes(e.type))return e.checked;if(ko.includes(I(e)||``)){let n=e.getAttribute(`aria-checked`);return n===`true`?!0:t&&n===`mixed`?`mixed`:!1}return`error`}var Po=[`checkbox`,`combobox`,`grid`,`gridcell`,`listbox`,`radiogroup`,`slider`,`spinbutton`,`textbox`,`columnheader`,`rowheader`,`searchbox`,`switch`,`treegrid`];function Fo(e){let t=F(e);return[`INPUT`,`TEXTAREA`,`SELECT`].includes(t)?e.hasAttribute(`readonly`):Po.includes(I(e)||``)?e.getAttribute(`aria-readonly`)===`true`:e.isContentEditable?!1:`error`}var Io=[`button`];function Lo(e){if(Io.includes(I(e)||``)){let t=e.getAttribute(`aria-pressed`);if(t===`true`)return!0;if(t===`mixed`)return`mixed`}return!1}var Ro=[`application`,`button`,`checkbox`,`combobox`,`gridcell`,`link`,`listbox`,`menuitem`,`row`,`rowheader`,`tab`,`treeitem`,`columnheader`,`menuitemcheckbox`,`menuitemradio`,`rowheader`,`switch`];function zo(e){if(F(e)===`DETAILS`)return e.open;if(Ro.includes(I(e)||``)){let t=e.getAttribute(`aria-expanded`);return t===null?void 0:t===`true`}}var Bo=[`heading`,`listitem`,`row`,`treeitem`];function Vo(e){let t={H1:1,H2:2,H3:3,H4:4,H5:5,H6:6}[F(e)];if(t)return t;if(Bo.includes(I(e)||``)){let t=e.getAttribute(`aria-level`),n=t===null?NaN:Number(t);if(Number.isInteger(n)&&n>=1)return n}return 0}var Ho=`application.button.composite.gridcell.group.input.link.menuitem.scrollbar.separator.tab.checkbox.columnheader.combobox.grid.listbox.menu.menubar.menuitemcheckbox.menuitemradio.option.radio.radiogroup.row.rowheader.searchbox.select.slider.spinbutton.switch.tablist.textbox.toolbar.tree.treegrid.treeitem`.split(`.`);function Uo(e){return Wo(e)||qo(e)}function Wo(e){return[`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`OPTION`,`OPTGROUP`].includes(F(e))&&(e.hasAttribute(`disabled`)||Go(e)||Ko(e))}function Go(e){return F(e)===`OPTION`&&!!e.closest(`OPTGROUP[DISABLED]`)}function Ko(e){let t=e?.closest(`FIELDSET[DISABLED]`);if(!t)return!1;let n=t.querySelector(`:scope > LEGEND`);return!n||!n.contains(e)}function qo(e,t=!1){if(!e)return!1;if(t||Ho.includes(I(e)||``)){let t=(e.getAttribute(`aria-disabled`)||``).toLowerCase();return t===`true`?!0:t===`false`?!1:qo(ja(e),!0)}return!1}function Jo(e){return so(e.getAttribute(`aria-busy`))===!0}function Yo(e,t){return ms([...e].map(e=>To(e,{...t,embeddedInLabel:{element:e,hidden:lo(e)},embeddedInNativeTextAlternative:void 0,embeddedInLabelledBy:void 0,embeddedInDescribedBy:void 0,embeddedInTargetElement:void 0})).filter(e=>!!e.text),` `,t.collectElements)}function Xo(e){let t=cs,n=e,r,i=[];for(;n;n=ja(n)){let e=t.get(n);if(e!==void 0){r=e;break}i.push(n);let a=Fa(n);if(!a){r=!0;break}let o=a.pointerEvents;if(o){r=o!==`none`;break}}r===void 0&&(r=!0);for(let e of i)t.set(e,r);return r}var Zo,Qo,$o,es,ts,ns,rs,is,as,os,ss,cs,ls=0;function us(){Wa(),++ls,Zo??=new Map,Qo??=new Map,$o??=new Map,es??=new Map,ts??=new Map,ns??=new Map,rs??=new Map,is??=new Map,as??=new Map,os??=new Map,ss??=new Map,cs??=new Map}function ds(){--ls||(Zo=void 0,Qo=void 0,$o=void 0,es=void 0,ts=void 0,ns=void 0,rs=void 0,is=void 0,as=void 0,os=void 0,ss=void 0,cs=void 0),Ga()}var fs={button:`button`,checkbox:`checkbox`,image:`button`,number:`spinbutton`,radio:`radio`,range:`slider`,reset:`button`,submit:`button`};function ps(){return{text:``}}function B(e,t,n){return{text:e||``,elements:e&&n?new Set([t]):void 0}}function ms(e,t,n){let r;if(n){r=new Set;for(let t of e)for(let e of t.elements||[])r.add(e)}return{text:e.map(e=>e.text).join(t),elements:r}}var hs=0;function gs(e){let t=e.boxes;return e.mode===`ai`?{visibility:`ariaOrVisible`,refs:`interactable`,refPrefix:e.refPrefix,includeGenericRole:!0,renderActive:!e.doNotRenderActive,renderCursorPointer:!0,renderBoxes:t}:e.mode===`autoexpect`?{visibility:`ariaAndVisible`,refs:`none`,renderBoxes:t}:e.mode===`codegen`?{visibility:`aria`,refs:`none`,renderStringsAsRegex:!0,renderBoxes:t}:{visibility:`aria`,refs:`none`,renderBoxes:t}}function _s(e,t){let n=gs(t),r=new Set,i=new Map,a={root:{role:`fragment`,name:``,children:[],props:{},box:La(e),receivesPointerEvents:!0},info:new Map,refs:new Map,iframeRefs:[]};Is(a.root,e);let s=(t,o,s)=>{if(r.has(o))return;if(r.add(o),o.nodeType===Node.TEXT_NODE&&o.nodeValue){if(!s)return;let e=o.nodeValue;t.role!==`textbox`&&e&&t.children.push(o.nodeValue||``);return}if(o.nodeType!==Node.ELEMENT_NODE)return;let l=o,u=!lo(l),d=u;if(n.visibility===`ariaOrVisible`&&(d=u||Ra(l)),n.visibility===`ariaAndVisible`&&(d=u&&Ra(l)),n.visibility===`aria`&&!d)return;let f=[];if(l.hasAttribute(`aria-owns`)){let t=l.getAttribute(`aria-owns`).split(/\s+/);for(let n of t){let t=e.ownerDocument.getElementById(n);t&&f.push(t)}}let p=d?ys(l,n,i):null,m;if(p&&(p.ref&&(m={element:l,nameFromContentRefs:[]},a.info.set(p.ref,m),a.refs.set(l,p.ref),p.role===`iframe`&&a.iframeRefs.push(p.ref)),t.children.push(p)),c(p||t,l,f,d),m)for(let e of i.get(p)||[]){let t=a.refs.get(e);t&&t!==p.ref&&m.nameFromContentRefs.push(t)}};function c(e,t,n,r){let i=(Fa(t)?.display||`inline`)!==`inline`||t.nodeName===`BR`?` `:``;i&&e.children.push(i),e.children.push(ho(t,`::before`)||``);let a=t.nodeName===`SLOT`?t.assignedNodes():[];if(a.length)for(let t of a)s(e,t,r);else{for(let n=t.firstChild;n;n=n.nextSibling)n.assignedSlot||s(e,n,r);if(t.shadowRoot)for(let n=t.shadowRoot.firstChild;n;n=n.nextSibling)s(e,n,r)}for(let t of n)s(e,t,r);if(e.children.push(ho(t,`::after`)||``),i&&e.children.push(i),e.children.length===1&&e.name===e.children[0]&&(e.children=[]),e.role===`link`&&t.hasAttribute(`href`)){let n=t.getAttribute(`href`);e.props.url=o(n)}if(e.role===`textbox`&&t.hasAttribute(`placeholder`)&&t.getAttribute(`placeholder`)!==e.name){let n=t.getAttribute(`placeholder`);e.props.placeholder=n}}us();try{s(a.root,e,!0)}finally{ds()}return _a(a,t),a}function vs(e,t){if(t.refs===`none`||t.refs===`interactable`&&(!e.box.visible||!e.receivesPointerEvents))return;let n=Fs(e),r=n._ariaRef;(!r||r.role!==e.role||r.name!==e.name)&&(r={role:e.role,name:e.name,ref:(t.refPrefix??``)+`e`+ ++hs},n._ariaRef=r),e.ref=r.ref}function ys(e,t,n){let r=e.ownerDocument.activeElement===e&&e.ownerDocument.hasFocus();if(e.nodeName===`IFRAME`){let n={role:`iframe`,name:``,children:[],props:{},box:La(e),receivesPointerEvents:!0,active:r};return Is(n,e),vs(n,t),n}let i=t.includeGenericRole?`generic`:null,o=I(e)??i;if(!o||o===`presentation`||o===`none`)return null;let s=vo(e,!1),c=Xo(e),l=La(e);if(o===`generic`&&l.inline&&e.childNodes.length===1&&e.childNodes[0].nodeType===Node.TEXT_NODE)return null;let u={role:o,name:a(s.text),children:[],props:{},box:l,receivesPointerEvents:c,active:r};if(Is(u,e),n.set(u,s.elements),vs(u,t),ko.includes(o)&&(u.checked=Ao(e)),Ho.includes(o)&&(u.disabled=Uo(e)),Ro.includes(o)&&(u.expanded=zo(e)),xo.includes(o)){let t=So(e);u.invalid=t===`false`?!1:t===`true`?!0:t}return Bo.includes(o)&&(u.level=Vo(e)),Io.includes(o)&&(u.pressed=Lo(e)),Do.includes(o)&&(u.selected=Oo(e)),(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&e.type!==`checkbox`&&e.type!==`radio`&&e.type!==`file`&&(u.children=[e.value]),u}function bs(e,t){return t?e?typeof t==`string`?e===t:!!e.match(new RegExp(t.pattern)):!1:!0}function xs(e,t){if(!t?.normalized)return!0;if(!e)return!1;if(e===t.normalized||e===t.raw)return!0;let n=Cs(t);return n?!!e.match(n):!1}var Ss=Symbol(`cachedRegex`);function Cs(e){if(e[Ss]!==void 0)return e[Ss];let{raw:t}=e,n=t.startsWith(`/`)&&t.endsWith(`/`)&&t.length>1,r;try{r=n?new RegExp(t.slice(1,-1)):null}catch{r=null}return e[Ss]=r,r}function ws(e,t){let n=_s(e,{mode:`default`});return{matches:ks(n.root,t,!1,!1),received:{raw:js(n,{mode:`default`}).text,regex:js(n,{mode:`codegen`}).text}}}function Ts(e,t){let n=_s(e,{mode:`default`}).root;return ks(n,t,!0,!1).map(e=>Fs(e))}function Es(e,t,n){return typeof e==`string`&&t.kind===`text`?xs(e,t.text):typeof e!=`object`||!e||t.kind!==`role`||t.role!==`fragment`&&t.role!==e.role||t.checked!==void 0&&t.checked!==e.checked||t.disabled!==void 0&&t.disabled!==e.disabled||t.expanded!==void 0&&t.expanded!==e.expanded||t.invalid!==void 0&&t.invalid!==e.invalid||t.level!==void 0&&t.level!==e.level||t.pressed!==void 0&&t.pressed!==e.pressed||t.selected!==void 0&&t.selected!==e.selected||!bs(e.name,t.name)||!xs(e.props.url,t.props?.url)?!1:t.containerMode===`contain`?Os(e.children||[],t.children||[]):t.containerMode===`equal`?Ds(e.children||[],t.children||[],!1):t.containerMode===`deep-equal`||n?Ds(e.children||[],t.children||[],!0):Os(e.children||[],t.children||[])}function Ds(e,t,n){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(!Es(e[r],t[r],n))return!1;return!0}function Os(e,t){if(t.length>e.length)return!1;let n=e.slice(),r=t.slice();for(let e of r){let t=n.shift();for(;t&&!Es(t,e,!1);)t=n.shift();if(!t)return!1}return!0}function ks(e,t,n,r){let i=[],a=(e,o)=>{if(Es(e,t,r)){let t=typeof e==`string`?o:e;return t&&i.push(t),!n}if(typeof e==`string`)return!1;for(let t of e.children||[])if(a(t,e))return!0;return!1};return a(e,null),i}function As(e){return` `.repeat(e)}function js(e,t){let n=gs(t),r=[],i={},a=n.renderStringsAsRegex?Ns:()=>!0,o=n.renderStringsAsRegex?Ms:e=>e,s=e.root.role===`fragment`?e.root.children:[e.root],c=(e,n)=>{if(t.depth&&n>t.depth)return;let i=ha(o(e));i&&r.push(As(n)+`- text: `+i)},l=(e,t)=>{let r=e.role;if(e.name&&e.name.length<=900){let t=o(e.name);if(t){let e=t.startsWith(`/`)&&t.endsWith(`/`)?t:JSON.stringify(t);r+=` `+e}}if(e.checked===`mixed`&&(r+=` [checked=mixed]`),e.checked===!0&&(r+=` [checked]`),e.disabled&&(r+=` [disabled]`),e.expanded&&(r+=` [expanded]`),e.active&&n.renderActive&&(r+=` [active]`),(e.invalid===`grammar`||e.invalid===`spelling`)&&(r+=` [invalid=${e.invalid}]`),e.invalid===!0&&(r+=` [invalid]`),e.level&&(r+=` [level=${e.level}]`),e.pressed===`mixed`&&(r+=` [pressed=mixed]`),e.pressed===!0&&(r+=` [pressed]`),e.selected===!0&&(r+=` [selected]`),e.ref&&(r+=` [ref=${e.ref}]`,t&&Xi(e)&&(r+=` [cursor=pointer]`)),n.renderBoxes){let t=Fs(e);if(t){let e=t.getBoundingClientRect();r+=` [box=${Math.round(e.x)},${Math.round(e.y)},${Math.round(e.width)},${Math.round(e.height)}]`}}return r},u=e=>e.children.length===1&&typeof e.children[0]==`string`&&!Object.keys(e.props).length?e.children[0]:void 0,d=(e,n,s)=>{if(t.depth&&n>t.depth)return;e.role===`iframe`&&e.ref&&(i[e.ref]=n);let f=As(n)+`- `+ma(l(e,s)),p=u(e),m=!!t.depth&&n===t.depth;if(!p&&(!e.children.length||m)&&!Object.keys(e.props).length)r.push(f);else if(p!==void 0)a(e,p)?r.push(f+`: `+ha(o(p))):r.push(f);else{r.push(f+`:`);for(let[t,i]of Object.entries(e.props))r.push(As(n+1)+`- /`+t+`: `+ha(i));let t=!!e.ref&&s&&Xi(e);for(let r of e.children)typeof r==`string`?c(a(e,r)?r:``,n+1):d(r,n+1,s&&!t)}};for(let e of s)typeof e==`string`?c(e,0):d(e,0,!!n.renderCursorPointer);return{text:r.join(`
54
+ `),iframeDepths:i}}function Ms(t){let n=[{regex:/\b[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\b/,replacement:`[0-9a-fA-F-]+`},{regex:/\b[\d,.]+[bkmBKM]+\b/,replacement:`[\\d,.]+[bkmBKM]+`},{regex:/\b\d+[hmsp]+\b/,replacement:`\\d+[hmsp]+`},{regex:/\b[\d,.]+[hmsp]+\b/,replacement:`[\\d,.]+[hmsp]+`},{regex:/\b\d+,\d+\b/,replacement:`\\d+,\\d+`},{regex:/\b\d+\.\d{2,}\b/,replacement:`\\d+\\.\\d+`},{regex:/\b\d{2,}\.\d+\b/,replacement:`\\d+\\.\\d+`},{regex:/\b\d{2,}\b/,replacement:`\\d+`}],r=``,i=0,a=new RegExp(n.map(e=>`(`+e.regex.source+`)`).join(`|`),`g`);return t.replace(a,(a,...o)=>{let s=o[o.length-2],c=o.slice(0,-2);r+=e(t.slice(i,s));for(let e=0;e<c.length;e++)if(c[e]){let{replacement:t}=n[e];r+=t;break}return i=s+a.length,a}),r?(r+=e(t.slice(i)),String(new RegExp(r))):t}function Ns(e,t){if(!t.length)return!1;if(!e.name)return!0;let n=t.length<=200&&e.name.length<=200?d(t,e.name):``,r=t;for(;n&&r.includes(n);)r=r.replace(n,``);return r.trim().length/t.length>.1}var Ps=Symbol(`element`);function Fs(e){return e[Ps]}function Is(e,t){e[Ps]=t}function Ls(e,t){let n=ra(e,t);return n?Fs(n):void 0}var Rs=`:host{color:#333;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font-family:system-ui,Ubuntu,Droid Sans,sans-serif;font-size:13px}svg{height:0;position:absolute}x-pw-tooltip{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background-color:#fff;border-radius:6px;flex-direction:column;max-width:600px;padding:0;font-size:12.8px;font-weight:400;line-height:1.5;display:none;position:absolute;top:0;left:0;overflow:hidden;box-shadow:0 .5rem 1.2rem #0000004d}x-pw-tooltip-line{-webkit-user-select:none;user-select:none;cursor:pointer;max-width:600px;padding:6px;display:flex}x-pw-tooltip-footer{-webkit-user-select:none;user-select:none;color:#777;max-width:600px;padding:6px;display:flex}x-pw-dialog{pointer-events:auto;z-index:10;background-color:#fff;border-radius:6px;flex-direction:column;font-size:13px;display:flex;position:absolute;box-shadow:0 .5rem 1.2rem #0000004d}x-pw-dialog:not(.autosize){width:400px;height:150px}x-pw-dialog-body{flex-direction:column;flex:auto;display:flex}x-pw-dialog-body label{flex-direction:row;align-items:center;margin:5px 8px;display:flex}x-pw-highlight{width:0;height:0;position:absolute;top:0;left:0}x-pw-action-point{z-index:2;background:red;border-radius:10px;width:20px;height:20px;margin:-10px 0 0 -10px;position:absolute}x-pw-action-cursor{pointer-events:none;z-index:4;filter:drop-shadow(0 1px 2px #0006);width:18px;height:22px;position:absolute}x-pw-action-cursor svg{width:100%;height:100%;position:static}x-pw-title{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);color:#fff;white-space:nowrap;-webkit-user-select:none;user-select:none;z-index:3;background-color:#00000080;border-radius:6px;padding:6px;font-size:24px;line-height:1.4;position:absolute}x-pw-user-overlays,x-pw-user-overlay{position:absolute;inset:0}@keyframes pw-fade-out{0%{opacity:1}to{opacity:0}}x-pw-separator{background:#949494e6;height:1px;margin:6px 9px}x-pw-tool-gripper{cursor:grab;width:24px;height:28px;margin:2px 0}x-pw-tool-gripper:active{cursor:grabbing}x-pw-tool-gripper>x-div{clip-path:url(#icon-gripper);background-color:#555;width:16px;height:16px;margin:6px 4px}x-pw-tools-list>label{-webkit-user-select:none;user-select:none;align-items:center;margin:0 10px;display:flex}x-pw-tools-list{border-bottom:1px solid #ddd;width:100%;display:flex}x-pw-tool-item{pointer-events:auto;border-radius:3px;width:28px;height:28px}x-pw-tool-item:not(.disabled){cursor:pointer}x-pw-tool-item:not(.disabled):hover{background-color:#dbdbdb}x-pw-tool-item.toggled{background-color:#8acae480}x-pw-tool-item.toggled:not(.disabled):hover{background-color:#8acae4c4}x-pw-tool-item>x-div{background-color:#3a3a3a;width:16px;height:16px;margin:6px}x-pw-tool-item.disabled>x-div{cursor:default;background-color:#61616180}x-pw-tool-item.record.toggled{background-color:#0000}x-pw-tool-item.record.toggled:not(.disabled):hover{background-color:#dbdbdb}x-pw-tool-item.record.toggled>x-div{background-color:#a1260d}x-pw-tool-item.record.disabled.toggled>x-div{opacity:.8}x-pw-tool-item.accept>x-div{background-color:#388a34}x-pw-tool-item.record>x-div{clip-path:url(#icon-circle-large-filled)}x-pw-tool-item.record.toggled>x-div{clip-path:url(#icon-stop-circle)}x-pw-tool-item.pick-locator>x-div{clip-path:url(#icon-inspect)}x-pw-tool-item.text>x-div{clip-path:url(#icon-whole-word)}x-pw-tool-item.visibility>x-div{clip-path:url(#icon-eye)}x-pw-tool-item.value>x-div{clip-path:url(#icon-symbol-constant)}x-pw-tool-item.snapshot>x-div{clip-path:url(#icon-gist)}x-pw-tool-item.accept>x-div{clip-path:url(#icon-check)}x-pw-tool-item.cancel>x-div{clip-path:url(#icon-close)}x-pw-tool-item.succeeded>x-div{clip-path:url(#icon-pass);background-color:#388a34!important}x-pw-overlay{z-index:2147483647;pointer-events:auto;background:0 0;max-width:min-content;position:absolute;top:0}x-pw-overlay x-pw-tools-list{background-color:#fffd;border-bottom:none;border-radius:3px;box-shadow:0 5px 5px #0000001a}x-pw-overlay x-pw-tool-item{margin:2px}textarea.text-editor{color:#333;resize:none;border:none;flex:auto;margin:6px 10px;padding:0;font-family:system-ui,Ubuntu,Droid Sans,sans-serif;font-size:13px;outline:1px solid #0000!important}textarea.text-editor.does-not-match{outline:1px solid red!important}x-div{display:block}x-spacer{flex:auto}*{box-sizing:border-box}[hidden]{display:none!important}x-locator-editor{border-bottom:1px solid #ddd;outline:1px solid #0000;flex:none;width:100%;height:60px;padding:4px}x-locator-editor.does-not-match{outline:1px solid red}.CodeMirror{width:100%!important;height:100%!important}x-pw-action-list{-webkit-user-select:none;user-select:none;flex-direction:column;flex:auto;display:flex}x-pw-action-item{cursor:pointer;padding:6px 10px;overflow:hidden}x-pw-action-item:hover{background-color:#f2f2f2}x-pw-action-item:last-child{border-bottom-right-radius:6px;border-bottom-left-radius:6px}`,zs=class{constructor(e){this._renderedEntries=[],this._userOverlays=new Map,this._userOverlayHidden=!1,this._language=`javascript`,this._elementHighlightSelectors=new Map,this._injectedScript=e;let t=e.document;if(this._isUnderTest=e.isUnderTest,this._glassPaneElement=t.createElement(`x-pw-glass`),this._glassPaneElement.setAttribute(`popover`,`manual`),this._glassPaneElement.style.inset=`0`,this._glassPaneElement.style.width=`100%`,this._glassPaneElement.style.height=`100%`,this._glassPaneElement.style.maxWidth=`none`,this._glassPaneElement.style.maxHeight=`none`,this._glassPaneElement.style.padding=`0`,this._glassPaneElement.style.margin=`0`,this._glassPaneElement.style.border=`none`,this._glassPaneElement.style.overflow=`visible`,this._glassPaneElement.style.pointerEvents=`none`,this._glassPaneElement.style.display=`flex`,this._glassPaneElement.style.backgroundColor=`transparent`,this._actionPointElement=t.createElement(`x-pw-action-point`),this._actionPointElement.setAttribute(`hidden`,`true`),this._actionCursorElement=t.createElement(`x-pw-action-cursor`),this._actionCursorElement.style.visibility=`hidden`,this._actionCursorElement.appendChild(this._createCursorSvg(t)),this._titleElement=t.createElement(`x-pw-title`),this._titleElement.setAttribute(`hidden`,`true`),this._userOverlayContainer=t.createElement(`x-pw-user-overlays`),this._userOverlayContainer.setAttribute(`hidden`,`true`),this._glassPaneShadow=this._glassPaneElement.attachShadow({mode:this._isUnderTest?`open`:`closed`}),typeof this._glassPaneShadow.adoptedStyleSheets.push==`function`){let e=new this._injectedScript.window.CSSStyleSheet;e.replaceSync(Rs),this._glassPaneShadow.adoptedStyleSheets.push(e)}else{let e=this._injectedScript.document.createElement(`style`);e.textContent=Rs,this._glassPaneShadow.appendChild(e)}this._glassPaneShadow.appendChild(this._actionPointElement),this._glassPaneShadow.appendChild(this._actionCursorElement),this._glassPaneShadow.appendChild(this._titleElement),this._glassPaneShadow.appendChild(this._userOverlayContainer)}install(){this._injectedScript.document.documentElement&&((!this._injectedScript.document.documentElement.contains(this._glassPaneElement)||this._glassPaneElement.nextElementSibling)&&this._injectedScript.document.documentElement.appendChild(this._glassPaneElement),this._bringToFront())}_bringToFront(){this._glassPaneElement.hidePopover(),this._glassPaneElement.showPopover()}setLanguage(e){this._language=e}addElementHighlight(e,t){let n=_n(e);this._elementHighlightSelectors.set(n,{selector:e,cssStyle:t}),this._ensureElementHighlightRaf()}removeElementHighlight(e){let t=_n(e);this._elementHighlightSelectors.delete(t)&&this._elementHighlightSelectors.size===0&&(this._rafRequest&&=(this._injectedScript.utils.builtins.cancelAnimationFrame(this._rafRequest),void 0),this.clearHighlight())}_ensureElementHighlightRaf(){if(this._rafRequest)return;let e=()=>{let t=[];for(let{selector:e,cssStyle:n}of this._elementHighlightSelectors.values()){let r=this._injectedScript.querySelectorAll(e,this._injectedScript.document.documentElement),i=Cn(this._language,_n(e)),a=r.length>1?`#f6b26b7f`:`#6fa8dc7f`;for(let e=0;e<r.length;++e){let o=r.length>1?` [${e+1} of ${r.length}]`:``;t.push({element:r[e],color:a,tooltipText:i+o,cssStyle:n})}}this.updateHighlight(t),this._rafRequest=this._injectedScript.utils.builtins.requestAnimationFrame(e)};this._rafRequest=this._injectedScript.utils.builtins.requestAnimationFrame(e)}uninstall(){this._rafRequest&&=(this._injectedScript.utils.builtins.cancelAnimationFrame(this._rafRequest),void 0),this._elementHighlightSelectors.clear(),this._glassPaneElement.remove()}showActionPoint(e,t,n){this._actionPointElement.style.top=t+`px`,this._actionPointElement.style.left=e+`px`,this._actionPointElement.hidden=!1,n?this._actionPointElement.style.animation=`pw-fade-out ${n}ms ease-out forwards`:this._actionPointElement.style.animation=``}hideActionPoint(){this._actionPointElement.hidden=!0}moveActionCursor(e,t,n){let r=n?Math.max(80,Math.min(n*.6,400)):0;this._actionCursorElement.style.transition=`top ${r}ms ease, left ${r}ms ease`,this._actionCursorElement.style.left=e+`px`,this._actionCursorElement.style.top=t+`px`,this._actionCursorElement.style.visibility=`visible`}hideActionCursor(){this._actionCursorElement.style.visibility=`hidden`}_createCursorSvg(e){let t=`http://www.w3.org/2000/svg`,n=e.createElementNS(t,`svg`);n.setAttribute(`viewBox`,`0 0 18 22`);let r=e.createElementNS(t,`path`);return r.setAttribute(`d`,`M1 1 L1 17 L5.5 13 L8 20.5 L11 19.5 L8.5 12 L15 12 Z`),r.setAttribute(`fill`,`white`),r.setAttribute(`stroke`,`black`),r.setAttribute(`stroke-width`,`1.5`),r.setAttribute(`stroke-linejoin`,`round`),n.appendChild(r),n}showActionTitle(e,t,n,r){if(this._titleElement.textContent=e,this._titleElement.hidden=!1,t){let e=t/4;this._titleElement.style.animation=`pw-fade-out ${e}ms ease-out ${t-e}ms forwards`}else this._titleElement.style.animation=``;switch(this._titleElement.style.top=``,this._titleElement.style.bottom=``,this._titleElement.style.left=``,this._titleElement.style.right=``,this._titleElement.style.transform=``,n){case`top-left`:this._titleElement.style.top=`6px`,this._titleElement.style.left=`6px`;break;case`top`:this._titleElement.style.top=`6px`,this._titleElement.style.left=`50%`,this._titleElement.style.transform=`translateX(-50%)`;break;case`bottom-left`:this._titleElement.style.bottom=`6px`,this._titleElement.style.left=`6px`;break;case`bottom`:this._titleElement.style.bottom=`6px`,this._titleElement.style.left=`50%`,this._titleElement.style.transform=`translateX(-50%)`;break;case`bottom-right`:this._titleElement.style.bottom=`6px`,this._titleElement.style.right=`6px`;break;default:this._titleElement.style.top=`6px`,this._titleElement.style.right=`6px`;break}r&&(this._titleElement.style.fontSize=r+`px`)}hideActionTitle(){this._titleElement.hidden=!0}addUserOverlay(e,t){let n=this._injectedScript.document.createElement(`div`);n.className=`x-pw-user-overlay`,n.innerHTML=t;for(let e of n.querySelectorAll(`script`))e.remove();for(let e of n.querySelectorAll(`*`))for(let t of[...e.attributes])t.name.startsWith(`on`)&&e.removeAttribute(t.name);return this._userOverlays.set(e,n),this._userOverlayContainer.appendChild(n),this._userOverlayContainer.hidden=this._userOverlayHidden,e}getUserOverlay(e){return this._userOverlays.get(e)}removeUserOverlay(e){let t=this._userOverlays.get(e);t&&(t.remove(),this._userOverlays.delete(e)),this._userOverlays.size===0&&(this._userOverlayContainer.hidden=!0)}setUserOverlaysVisible(e){this._userOverlayHidden=!e,this._userOverlayContainer.hidden=!e||this._userOverlays.size===0}clearHighlight(){for(let e of this._renderedEntries)e.highlightElement?.remove(),e.tooltipElement?.remove();this._renderedEntries=[]}addMaskedElements(e,t){let n=this._renderedEntries.map(e=>({element:e.targetElement,color:e.color})),r=e.map(e=>({element:e,color:t}));this.updateHighlight([...n,...r])}updateHighlight(e){if(!this._highlightIsUpToDate(e)){this.clearHighlight();for(let t of e){let e=this._createHighlightElement();this._glassPaneShadow.appendChild(e);let n;if(t.tooltipText){n=this._injectedScript.document.createElement(`x-pw-tooltip`),this._glassPaneShadow.appendChild(n),n.style.top=`0`,n.style.left=`0`,n.style.display=`flex`;let e=this._injectedScript.document.createElement(`x-pw-tooltip-line`);e.textContent=t.tooltipText,n.appendChild(e)}this._renderedEntries.push({targetElement:t.element,box:Bs(t.box),color:t.color,borderColor:t.borderColor,fadeDuration:t.fadeDuration,cssStyle:t.cssStyle,tooltipElement:n,highlightElement:e})}for(let e of this._renderedEntries){if(!e.box&&!e.targetElement||(e.box=e.box||e.targetElement.getBoundingClientRect(),!e.tooltipElement))continue;let{anchorLeft:t,anchorTop:n}=this.tooltipPosition(e.box,e.tooltipElement);e.tooltipTop=n,e.tooltipLeft=t}for(let e of this._renderedEntries){e.tooltipElement&&(e.tooltipElement.style.top=e.tooltipTop+`px`,e.tooltipElement.style.left=e.tooltipLeft+`px`);let t=e.box;e.highlightElement.style.backgroundColor=e.color,e.highlightElement.style.left=t.x+`px`,e.highlightElement.style.top=t.y+`px`,e.highlightElement.style.width=t.width+`px`,e.highlightElement.style.height=t.height+`px`,e.highlightElement.style.display=`block`,e.borderColor&&(e.highlightElement.style.border=`2px solid `+e.borderColor),e.fadeDuration&&(e.highlightElement.style.animation=`pw-fade-out ${e.fadeDuration}ms ease-out forwards`),e.cssStyle&&(e.highlightElement.style.cssText+=`;`+e.cssStyle),this._isUnderTest&&console.error(`Highlight box for test: `+JSON.stringify({x:t.x,y:t.y,width:t.width,height:t.height}))}}}firstBox(){return this._renderedEntries[0]?.box}firstTooltipBox(){let e=this._renderedEntries[0];if(!(!e||!e.tooltipElement||e.tooltipLeft===void 0||e.tooltipTop===void 0))return{x:e.tooltipLeft,y:e.tooltipTop,left:e.tooltipLeft,top:e.tooltipTop,width:e.tooltipElement.offsetWidth,height:e.tooltipElement.offsetHeight,bottom:e.tooltipTop+e.tooltipElement.offsetHeight,right:e.tooltipLeft+e.tooltipElement.offsetWidth,toJSON:()=>{}}}tooltipPosition(e,t){let n=t.offsetWidth,r=t.offsetHeight,i=this._glassPaneElement.offsetWidth,a=this._glassPaneElement.offsetHeight,o=Math.max(5,e.left);o+n>i-5&&(o=i-n-5);let s=Math.max(0,e.bottom)+5;return s+r>a-5&&(s=Math.max(0,e.top)>r+5?Math.max(0,e.top)-r-5:a-5-r),{anchorLeft:o,anchorTop:s}}_highlightIsUpToDate(e){if(e.length!==this._renderedEntries.length)return!1;for(let t=0;t<this._renderedEntries.length;++t){if(e[t].element!==this._renderedEntries[t].targetElement||e[t].color!==this._renderedEntries[t].color||e[t].cssStyle!==this._renderedEntries[t].cssStyle)return!1;let n=this._renderedEntries[t].box;if(!n)return!1;let r=e[t].box?Bs(e[t].box):e[t].element.getBoundingClientRect();if(r.top!==n.top||r.right!==n.right||r.bottom!==n.bottom||r.left!==n.left)return!1}return!0}_createHighlightElement(){return this._injectedScript.document.createElement(`x-pw-highlight`)}appendChild(e){this._glassPaneShadow.appendChild(e)}onGlassPaneClick(e){this._glassPaneElement.style.pointerEvents=`auto`,this._glassPaneElement.style.backgroundColor=`rgba(0, 0, 0, 0.3)`,this._glassPaneElement.addEventListener(`click`,e)}offGlassPaneClick(e){this._glassPaneElement.style.pointerEvents=`none`,this._glassPaneElement.style.backgroundColor=`transparent`,this._glassPaneElement.removeEventListener(`click`,e)}};function Bs(e){if(e)return new DOMRect(e.x,e.y,e.width,e.height)}function Vs(e,t,n){let r=e.left-t.right;if(!(r<0||n!==void 0&&r>n))return r+Math.max(t.bottom-e.bottom,0)+Math.max(e.top-t.top,0)}function Hs(e,t,n){let r=t.left-e.right;if(!(r<0||n!==void 0&&r>n))return r+Math.max(t.bottom-e.bottom,0)+Math.max(e.top-t.top,0)}function Us(e,t,n){let r=t.top-e.bottom;if(!(r<0||n!==void 0&&r>n))return r+Math.max(e.left-t.left,0)+Math.max(t.right-e.right,0)}function Ws(e,t,n){let r=e.top-t.bottom;if(!(r<0||n!==void 0&&r>n))return r+Math.max(e.left-t.left,0)+Math.max(t.right-e.right,0)}function Gs(e,t,n){let r=n===void 0?50:n,i=0;return e.left-t.right>=0&&(i+=e.left-t.right),t.left-e.right>=0&&(i+=t.left-e.right),t.top-e.bottom>=0&&(i+=t.top-e.bottom),e.top-t.bottom>=0&&(i+=e.top-t.bottom),i>r?void 0:i}var Ks=[`left-of`,`right-of`,`above`,`below`,`near`];function qs(e,t,n,r){let i=t.getBoundingClientRect(),a={"left-of":Hs,"right-of":Vs,above:Us,below:Ws,near:Gs}[e],o;for(let e of n){if(e===t)continue;let n=a(i,e.getBoundingClientRect(),r);n!==void 0&&(o===void 0||n<o)&&(o=n)}return o}function Js(e,t){let n=typeof e==`string`&&!t.caseSensitive?e.toUpperCase():e,r=typeof t.value==`string`&&!t.caseSensitive?t.value.toUpperCase():t.value;return t.op===`<truthy>`?!!n:t.op===`=`?r instanceof RegExp?typeof n==`string`&&!!n.match(r):n===r:typeof n!=`string`||typeof r!=`string`?!1:t.op===`*=`?n.includes(r):t.op===`^=`?n.startsWith(r):t.op===`$=`?n.endsWith(r):t.op===`|=`?n===r||n.startsWith(r+`-`):t.op===`~=`?n.split(` `).includes(r):!1}function Ys(e){let t=e.ownerDocument;return e.nodeName===`SCRIPT`||e.nodeName===`NOSCRIPT`||e.nodeName===`STYLE`||t.head&&t.head.contains(e)}function Xs(e,t){let n=e.get(t);if(n===void 0){if(n={full:``,normalized:``,immediate:[]},!Ys(t)){let r=``;if(t instanceof HTMLInputElement&&(t.type===`submit`||t.type===`button`||t.type===`reset`))n={full:t.value,normalized:a(t.value),immediate:[t.value]};else{for(let i=t.firstChild;i;i=i.nextSibling)if(i.nodeType===Node.TEXT_NODE)n.full+=i.nodeValue||``,r+=i.nodeValue||``;else if(i.nodeType===Node.COMMENT_NODE)continue;else r&&n.immediate.push(r),r=``,i.nodeType===Node.ELEMENT_NODE&&(n.full+=Xs(e,i).full);r&&n.immediate.push(r),t.shadowRoot&&(n.full+=Xs(e,t.shadowRoot).full),n.full&&(n.normalized=a(n.full))}}e.set(t,n)}return n}function Zs(e,t,n){if(Ys(t)||!n(Xs(e,t)))return`none`;for(let r=t.firstChild;r;r=r.nextSibling)if(r.nodeType===Node.ELEMENT_NODE&&n(Xs(e,r)))return`selfAndChildren`;return t.shadowRoot&&n(Xs(e,t.shadowRoot))?`selfAndChildren`:`self`}function Qs(e,t){let n=z(t);if(n)return n.map(t=>Xs(e,t));let r=t.getAttribute(`aria-label`);if(r!==null&&r.trim())return[{full:r,normalized:a(r),immediate:[r]}];let i=t.nodeName===`INPUT`&&t.type!==`hidden`;if([`BUTTON`,`METER`,`OUTPUT`,`PROGRESS`,`SELECT`,`TEXTAREA`].includes(t.nodeName)||i){let n=t.labels;if(n)return[...n].map(t=>Xs(e,t))}return[]}var $s=[`selected`,`checked`,`pressed`,`expanded`,`level`,`disabled`,`busy`,`name`,`description`,`include-hidden`];$s.sort();function ec(e,t,n){if(!t.includes(n))throw Error(`"${e}" attribute is only supported for roles: ${t.slice().sort().map(e=>`"${e}"`).join(`, `)}`)}function tc(e,t){if(e.op!==`<truthy>`&&!t.includes(e.value))throw Error(`"${e.name}" must be one of ${t.map(e=>JSON.stringify(e)).join(`, `)}`)}function nc(e,t){if(!t.includes(e.op))throw Error(`"${e.name}" does not support "${e.op}" matcher`)}function rc(e,t){let n={role:t};for(let r of e)switch(r.name){case`checked`:ec(r.name,ko,t),tc(r,[!0,!1,`mixed`]),nc(r,[`<truthy>`,`=`]),n.checked=r.op===`<truthy>`?!0:r.value;break;case`pressed`:ec(r.name,Io,t),tc(r,[!0,!1,`mixed`]),nc(r,[`<truthy>`,`=`]),n.pressed=r.op===`<truthy>`?!0:r.value;break;case`selected`:ec(r.name,Do,t),tc(r,[!0,!1]),nc(r,[`<truthy>`,`=`]),n.selected=r.op===`<truthy>`?!0:r.value;break;case`expanded`:ec(r.name,Ro,t),tc(r,[!0,!1]),nc(r,[`<truthy>`,`=`]),n.expanded=r.op===`<truthy>`?!0:r.value;break;case`level`:if(ec(r.name,Bo,t),typeof r.value==`string`&&(r.value=+r.value),r.op!==`=`||typeof r.value!=`number`||Number.isNaN(r.value))throw Error(`"level" attribute must be compared to a number`);n.level=r.value;break;case`disabled`:tc(r,[!0,!1]),nc(r,[`<truthy>`,`=`]),n.disabled=r.op===`<truthy>`?!0:r.value;break;case`busy`:tc(r,[!0,!1]),nc(r,[`<truthy>`,`=`]),n.busy=r.op===`<truthy>`?!0:r.value;break;case`name`:if(r.op===`<truthy>`)throw Error(`"name" attribute must have a value`);if(typeof r.value!=`string`&&!(r.value instanceof RegExp))throw Error(`"name" attribute must be a string or a regular expression`);n.name=r.value,n.nameOp=r.op,n.nameExact=r.caseSensitive;break;case`description`:if(r.op===`<truthy>`)throw Error(`"description" attribute must have a value`);if(typeof r.value!=`string`&&!(r.value instanceof RegExp))throw Error(`"description" attribute must be a string or a regular expression`);n.description=r.value,n.descriptionOp=r.op,n.descriptionExact=r.caseSensitive;break;case`include-hidden`:tc(r,[!0,!1]),nc(r,[`<truthy>`,`=`]),n.includeHidden=r.op===`<truthy>`?!0:r.value;break;default:throw Error(`Unknown attribute "${r.name}", must be one of ${$s.map(e=>`"${e}"`).join(`, `)}.`)}return n}function ic(e,t,n){let r=[],i=e=>{if(I(e)===t.role&&!(t.selected!==void 0&&Oo(e)!==t.selected)&&!(t.checked!==void 0&&Ao(e)!==t.checked)&&!(t.pressed!==void 0&&Lo(e)!==t.pressed)&&!(t.expanded!==void 0&&zo(e)!==t.expanded)&&!(t.level!==void 0&&Vo(e)!==t.level)&&!(t.disabled!==void 0&&Uo(e)!==t.disabled)&&!(t.busy!==void 0&&Jo(e)!==t.busy)&&!(!t.includeHidden&&lo(e))){if(t.name!==void 0){let r=a(yo(e,!!t.includeHidden));if(typeof t.name==`string`&&(t.name=a(t.name)),n&&!t.nameExact&&t.nameOp===`=`&&(t.nameOp=`*=`),!Js(r,{name:``,jsonPath:[],op:t.nameOp||`=`,value:t.name,caseSensitive:!!t.nameExact}))return}if(t.description!==void 0){let r=a(bo(e,!!t.includeHidden));if(typeof t.description==`string`&&(t.description=a(t.description)),n&&!t.descriptionExact&&t.descriptionOp===`=`&&(t.descriptionOp=`*=`),!Js(r,{name:``,jsonPath:[],op:t.descriptionOp||`=`,value:t.description,caseSensitive:!!t.descriptionExact}))return}r.push(e)}},o=e=>{let t=[];e.shadowRoot&&t.push(e.shadowRoot);for(let n of e.querySelectorAll(`*`))i(n),n.shadowRoot&&t.push(n.shadowRoot);t.forEach(o)};return o(e),r}function ac(e){return{queryAll:(t,n)=>{let r=bn(n,!0),i=r.name.toLowerCase();if(!i)throw Error(`Role must not be empty`);let a=rc(r.attributes,i);us();try{return ic(t,a,e)}finally{ds()}}}}var oc=class{constructor(){this._retainCacheCounter=0,this._cacheText=new Map,this._cacheQueryCSS=new Map,this._cacheMatches=new Map,this._cacheQuery=new Map,this._cacheMatchesSimple=new Map,this._cacheMatchesParents=new Map,this._cacheCallMatches=new Map,this._cacheCallQuery=new Map,this._cacheQuerySimple=new Map,this._engines=new Map,this._engines.set(`not`,uc),this._engines.set(`is`,sc),this._engines.set(`where`,sc),this._engines.set(`has`,cc),this._engines.set(`scope`,lc),this._engines.set(`light`,dc),this._engines.set(`visible`,fc),this._engines.set(`text`,pc),this._engines.set(`text-is`,mc),this._engines.set(`text-matches`,hc),this._engines.set(`has-text`,gc),this._engines.set(`right-of`,_c(`right-of`)),this._engines.set(`left-of`,_c(`left-of`)),this._engines.set(`above`,_c(`above`)),this._engines.set(`below`,_c(`below`)),this._engines.set(`near`,_c(`near`)),this._engines.set(`nth-match`,vc);let e=[...this._engines.keys()];e.sort();let t=[...mn];if(t.sort(),e.join(`|`)!==t.join(`|`))throw Error(`Please keep customCSSNames in sync with evaluator engines: ${e.join(`|`)} vs ${t.join(`|`)}`)}begin(){++this._retainCacheCounter}end(){--this._retainCacheCounter,this._retainCacheCounter||(this._cacheQueryCSS.clear(),this._cacheMatches.clear(),this._cacheQuery.clear(),this._cacheMatchesSimple.clear(),this._cacheMatchesParents.clear(),this._cacheCallMatches.clear(),this._cacheCallQuery.clear(),this._cacheQuerySimple.clear(),this._cacheText.clear())}_cached(e,t,n,r){e.has(t)||e.set(t,[]);let i=e.get(t),a=i.find(e=>n.every((t,n)=>e.rest[n]===t));if(a)return a.result;let o=r();return i.push({rest:n,result:o}),o}_checkSelector(e){if(!(typeof e==`object`&&e&&(Array.isArray(e)||`simples`in e&&e.simples.length)))throw Error(`Malformed selector "${e}"`);return e}matches(e,t,n){let r=this._checkSelector(t);this.begin();try{return this._cached(this._cacheMatches,e,[r,n.scope,n.pierceShadow,n.originalScope],()=>Array.isArray(r)?this._matchesEngine(sc,e,r,n):(this._hasScopeClause(r)&&(n=this._expandContextForScopeMatching(n)),this._matchesSimple(e,r.simples[r.simples.length-1].selector,n)?this._matchesParents(e,r,r.simples.length-2,n):!1))}finally{this.end()}}query(e,t){let n=this._checkSelector(t);this.begin();try{return this._cached(this._cacheQuery,n,[e.scope,e.pierceShadow,e.originalScope],()=>{if(Array.isArray(n))return this._queryEngine(sc,e,n);this._hasScopeClause(n)&&(e=this._expandContextForScopeMatching(e));let t=this._scoreMap;this._scoreMap=new Map;let r=this._querySimple(e,n.simples[n.simples.length-1].selector);return r=r.filter(t=>this._matchesParents(t,n,n.simples.length-2,e)),this._scoreMap.size&&r.sort((e,t)=>{let n=this._scoreMap.get(e),r=this._scoreMap.get(t);return n===r?0:n===void 0?1:r===void 0?-1:n-r}),this._scoreMap=t,r})}finally{this.end()}}_markScore(e,t){this._scoreMap&&this._scoreMap.set(e,t)}_hasScopeClause(e){return e.simples.some(e=>e.selector.functions.some(e=>e.name===`scope`))}_expandContextForScopeMatching(e){if(e.scope.nodeType!==1)return e;let t=ja(e.scope);return t?{...e,scope:t,originalScope:e.originalScope||e.scope}:e}_matchesSimple(e,t,n){return this._cached(this._cacheMatchesSimple,e,[t,n.scope,n.pierceShadow,n.originalScope],()=>{if(e===n.scope||t.css&&!this._matchesCSS(e,t.css))return!1;for(let r of t.functions)if(!this._matchesEngine(this._getEngine(r.name),e,r.args,n))return!1;return!0})}_querySimple(e,t){return t.functions.length?this._cached(this._cacheQuerySimple,t,[e.scope,e.pierceShadow,e.originalScope],()=>{let n=t.css,r=t.functions;n===`*`&&r.length&&(n=void 0);let i,a=-1;n===void 0?(a=r.findIndex(e=>this._getEngine(e.name).query!==void 0),a===-1&&(a=0),i=this._queryEngine(this._getEngine(r[a].name),e,r[a].args)):i=this._queryCSS(e,n);for(let t=0;t<r.length;t++){if(t===a)continue;let n=this._getEngine(r[t].name);n.matches!==void 0&&(i=i.filter(i=>this._matchesEngine(n,i,r[t].args,e)))}for(let t=0;t<r.length;t++){if(t===a)continue;let n=this._getEngine(r[t].name);n.matches===void 0&&(i=i.filter(i=>this._matchesEngine(n,i,r[t].args,e)))}return i}):this._queryCSS(e,t.css||`*`)}_matchesParents(e,t,n,r){return n<0?!0:this._cached(this._cacheMatchesParents,e,[t,n,r.scope,r.pierceShadow,r.originalScope],()=>{let{selector:i,combinator:a}=t.simples[n];if(a===`>`){let a=yc(e,r);return!a||!this._matchesSimple(a,i,r)?!1:this._matchesParents(a,t,n-1,r)}if(a===`+`){let a=bc(e,r);return!a||!this._matchesSimple(a,i,r)?!1:this._matchesParents(a,t,n-1,r)}if(a===``){let a=yc(e,r);for(;a;){if(this._matchesSimple(a,i,r)){if(this._matchesParents(a,t,n-1,r))return!0;if(t.simples[n-1].combinator===``)break}a=yc(a,r)}return!1}if(a===`~`){let a=bc(e,r);for(;a;){if(this._matchesSimple(a,i,r)){if(this._matchesParents(a,t,n-1,r))return!0;if(t.simples[n-1].combinator===`~`)break}a=bc(a,r)}return!1}if(a===`>=`){let a=e;for(;a;){if(this._matchesSimple(a,i,r)){if(this._matchesParents(a,t,n-1,r))return!0;if(t.simples[n-1].combinator===``)break}a=yc(a,r)}return!1}throw Error(`Unsupported combinator "${a}"`)})}_matchesEngine(e,t,n,r){if(e.matches)return this._callMatches(e,t,n,r);if(e.query)return this._callQuery(e,n,r).includes(t);throw Error(`Selector engine should implement "matches" or "query"`)}_queryEngine(e,t,n){if(e.query)return this._callQuery(e,n,t);if(e.matches)return this._queryCSS(t,`*`).filter(r=>this._callMatches(e,r,n,t));throw Error(`Selector engine should implement "matches" or "query"`)}_callMatches(e,t,n,r){return this._cached(this._cacheCallMatches,t,[e,r.scope,r.pierceShadow,r.originalScope,...n],()=>e.matches(t,n,r,this))}_callQuery(e,t,n){return this._cached(this._cacheCallQuery,e,[n.scope,n.pierceShadow,n.originalScope,...t],()=>e.query(n,t,this))}_matchesCSS(e,t){return e.matches(t)}_queryCSS(e,t){return this._cached(this._cacheQueryCSS,t,[e.scope,e.pierceShadow,e.originalScope],()=>{let n=[];function r(i){if(n=n.concat([...i.querySelectorAll(t)]),e.pierceShadow){i.shadowRoot&&r(i.shadowRoot);for(let e of i.querySelectorAll(`*`))e.shadowRoot&&r(e.shadowRoot)}}return r(e.scope),n})}_getEngine(e){let t=this._engines.get(e);if(!t)throw Error(`Unknown selector engine "${e}"`);return t}},sc={matches(e,t,n,r){if(t.length===0)throw Error(`"is" engine expects non-empty selector list`);return t.some(t=>r.matches(e,t,n))},query(e,t,n){if(t.length===0)throw Error(`"is" engine expects non-empty selector list`);let r=[];for(let i of t)r=r.concat(n.query(e,i));return t.length===1?r:xc(r)}},cc={matches(e,t,n,r){if(t.length===0)throw Error(`"has" engine expects non-empty selector list`);return r.query({...n,scope:e},t).length>0}},lc={matches(e,t,n,r){if(t.length!==0)throw Error(`"scope" engine expects no arguments`);let i=n.originalScope||n.scope;return i.nodeType===9?e===i.documentElement:e===i},query(e,t,n){if(t.length!==0)throw Error(`"scope" engine expects no arguments`);let r=e.originalScope||e.scope;if(r.nodeType===9){let e=r.documentElement;return e?[e]:[]}return r.nodeType===1?[r]:[]}},uc={matches(e,t,n,r){if(t.length===0)throw Error(`"not" engine expects non-empty selector list`);return!r.matches(e,t,n)}},dc={query(e,t,n){return n.query({...e,pierceShadow:!1},t)},matches(e,t,n,r){return r.matches(e,t,{...n,pierceShadow:!1})}},fc={matches(e,t,n,r){if(t.length)throw Error(`"visible" engine expects no arguments`);return Ra(e)}},pc={matches(e,t,n,r){if(t.length!==1||typeof t[0]!=`string`)throw Error(`"text" engine expects a single string`);let i=a(t[0]).toLowerCase();return Zs(r._cacheText,e,e=>e.normalized.toLowerCase().includes(i))===`self`}},mc={matches(e,t,n,r){if(t.length!==1||typeof t[0]!=`string`)throw Error(`"text-is" engine expects a single string`);let i=a(t[0]);return Zs(r._cacheText,e,e=>!i&&!e.immediate.length?!0:e.immediate.some(e=>a(e)===i))!==`none`}},hc={matches(e,t,n,r){if(t.length===0||typeof t[0]!=`string`||t.length>2||t.length===2&&typeof t[1]!=`string`)throw Error(`"text-matches" engine expects a regexp body and optional regexp flags`);let i=new RegExp(t[0],t.length===2?t[1]:void 0);return Zs(r._cacheText,e,e=>i.test(e.full))===`self`}},gc={matches(e,t,n,r){if(t.length!==1||typeof t[0]!=`string`)throw Error(`"has-text" engine expects a single string`);if(Ys(e))return!1;let i=a(t[0]).toLowerCase();return(e=>e.normalized.toLowerCase().includes(i))(Xs(r._cacheText,e))}};function _c(e){return{matches(t,n,r,i){let a=n.length&&typeof n[n.length-1]==`number`?n[n.length-1]:void 0,o=a===void 0?n:n.slice(0,n.length-1);if(n.length<1+(a===void 0?0:1))throw Error(`"${e}" engine expects a selector list and optional maximum distance in pixels`);let s=qs(e,t,i.query(r,o),a);return s===void 0?!1:(i._markScore(t,s),!0)}}}var vc={query(e,t,n){let r=t[t.length-1];if(t.length<2)throw Error(`"nth-match" engine expects non-empty selector list and an index argument`);if(typeof r!=`number`||r<1)throw Error(`"nth-match" engine expects a one-based index as the last argument`);let i=sc.query(e,t.slice(0,t.length-1),n);return r--,r<i.length?[i[r]]:[]}};function yc(e,t){if(e!==t.scope)return t.pierceShadow?ja(e):e.parentElement||void 0}function bc(e,t){if(e!==t.scope)return e.previousElementSibling||void 0}function xc(e){let t=new Map,n=[],r=[];function i(e){let r=t.get(e);if(r)return r;let a=ja(e);return a?i(a).children.push(e):n.push(e),r={children:[],taken:!1},t.set(e,r),r}for(let t of e)i(t).taken=!0;function a(e){let n=t.get(e);if(n.taken&&r.push(e),n.children.length>1){let t=new Set(n.children);n.children=[];let r=e.firstElementChild;for(;r&&n.children.length<t.size;)t.has(r)&&n.children.push(r),r=r.nextElementSibling;for(r=e.shadowRoot?e.shadowRoot.firstElementChild:null;r&&n.children.length<t.size;)t.has(r)&&n.children.push(r),r=r.nextElementSibling}n.children.forEach(a)}return n.forEach(a),r}var Sc=10,Cc=1,wc=2,Tc=10,Ec=50,Dc=100,Oc=120,kc=140,Ac=160,jc=180,Mc=200,Nc=250,Pc=125,Fc=145,Ic=105,Lc=165,Rc=185,zc=205,Bc=300,V=500,Vc=510,Hc=520,Uc=530,Wc=1e4,Gc=1e7,Kc=1e3;function qc(e,t,n){e._evaluator.begin();let r={allowText:new Map,disallowText:new Map};us(),Wa();try{let i=[];if(n.forTextExpect){let a=$c(e,t.ownerDocument.documentElement,n);for(let i=t;i;i=ja(i)){let t=Jc(r,e,i,{...n,noText:!0});if(t&&nl(t)<=Kc){a=t;break}}i=[tl(a)]}else{if(!t.matches(`input,textarea,select`)&&!t.isContentEditable){let e=Pa(t,`button,select,input,[role=button],[role=checkbox],[role=radio],a,[role=link]`,n.root);e&&Ra(e)&&(t=e)}if(n.multiple){let a=Jc(r,e,t,n),o=Jc(r,e,t,{...n,noText:!0}),s=[a,o];if(r.allowText.clear(),r.disallowText.clear(),a&&Qc(a)&&s.push(Jc(r,e,t,{...n,noCSSId:!0})),o&&Qc(o)&&s.push(Jc(r,e,t,{...n,noText:!0,noCSSId:!0})),s=s.filter(Boolean),!s.length){let r=$c(e,t,n);s.push(r),Qc(r)&&s.push($c(e,t,{...n,noCSSId:!0}))}i=[...new Set(s.map(e=>tl(e)))]}else i=[tl(Jc(r,e,t,n)||$c(e,t,n))]}let a=i[0],o=e.parseSelector(a);return{selector:a,selectors:i,elements:e.querySelectorAll(o,n.root??t.ownerDocument)}}finally{Ga(),ds(),e._evaluator.end()}}function Jc(e,t,n,r){if(r.root&&!Aa(r.root,n))throw Error(`Target element must belong to the root's subtree`);if(n===r.root)return[{engine:`css`,selector:`:scope`,score:1}];if(n.ownerDocument.documentElement===n)return[{engine:`css`,selector:`html`,score:1}];let i=null,a=e=>{(!i||nl(e)<nl(i))&&(i=e)},o=[];if(!r.noText)for(let e of Xc(t,n,!r.isRecursive))o.push({candidate:e,isTextCandidate:!0});for(let e of Yc(t,n,r))r.omitInternalEngines&&e.engine.startsWith(`internal:`)||o.push({candidate:[e],isTextCandidate:!1});o.sort((e,t)=>nl(e.candidate)-nl(t.candidate));for(let{candidate:s,isTextCandidate:c}of o){let o=t.querySelectorAll(t.parseSelector(tl(s)),r.root??n.ownerDocument);if(!o.includes(n))continue;if(o.length===1){a(s);break}let l=o.indexOf(n);if(!(l>5)&&(a([...s,{engine:`nth`,selector:String(l),score:Wc}]),!r.isRecursive))for(let u=ja(n);u&&u!==r.root;u=ja(u)){let d=o.filter(e=>Aa(u,e)&&e!==u),f=d.indexOf(n);if(d.length>5||f===-1||f===l&&d.length>1)continue;let p=d.length===1?s:[...s,{engine:`nth`,selector:String(f),score:Wc}];if(i&&nl([{engine:``,selector:``,score:1},...p])>=nl(i))continue;let m=!!r.noText||c,h=m?e.disallowText:e.allowText,g=h.get(u);g===void 0&&(g=Jc(e,t,u,{...r,isRecursive:!0,noText:m})||$c(t,u,r),h.set(u,g)),g&&a([...g,...p])}}return i}function Yc(e,t,n){let r=[],a=aa(n.testIdAttributeName);for(let e of[`data-testid`,`data-test-id`,`data-test`])!a.includes(e)&&t.getAttribute(e)&&r.push({engine:`css`,selector:`[${e}=${p(t.getAttribute(e))}]`,score:wc});if(!n.noCSSId){let e=t.getAttribute(`id`);e&&!rl(e)&&r.push({engine:`css`,selector:Zc(e),score:V})}if(r.push({engine:`css`,selector:ol(t),score:Uc}),t.nodeName===`IFRAME`){for(let e of[`name`,`title`])t.getAttribute(e)&&r.push({engine:`css`,selector:`${ol(t)}[${e}=${p(t.getAttribute(e))}]`,score:Tc});for(let e of a)t.getAttribute(e)&&r.push({engine:`css`,selector:`[${e}=${p(t.getAttribute(e))}]`,score:Cc});return el([r]),r}for(let e of a)t.getAttribute(e)&&r.push({engine:`internal:testid`,selector:`[${e}=${u(t.getAttribute(e),!0)}]`,score:Cc});if(t.nodeName===`INPUT`||t.nodeName===`TEXTAREA`){let e=t;if(e.placeholder){r.push({engine:`internal:attr`,selector:`[placeholder=${u(e.placeholder,!0)}]`,score:Pc});for(let t of al(e.placeholder))r.push({engine:`internal:attr`,selector:`[placeholder=${u(t.text,!1)}]`,score:Oc-t.scoreBonus})}}let o=Qs(e._evaluator._cacheText,t);for(let e of o){let t=e.normalized;r.push({engine:`internal:label`,selector:i(t,!0),score:Fc});for(let e of al(t))r.push({engine:`internal:label`,selector:i(e.text,!1),score:kc-e.scoreBonus})}let s=I(t);return s&&![`none`,`presentation`].includes(s)&&r.push({engine:`internal:role`,selector:s,score:Vc}),t.getAttribute(`name`)&&[`BUTTON`,`FORM`,`FIELDSET`,`FRAME`,`IFRAME`,`INPUT`,`KEYGEN`,`OBJECT`,`OUTPUT`,`SELECT`,`TEXTAREA`,`MAP`,`META`,`PARAM`].includes(t.nodeName)&&r.push({engine:`css`,selector:`${ol(t)}[name=${p(t.getAttribute(`name`))}]`,score:Hc}),[`INPUT`,`TEXTAREA`].includes(t.nodeName)&&t.getAttribute(`type`)!==`hidden`&&t.getAttribute(`type`)&&r.push({engine:`css`,selector:`${ol(t)}[type=${p(t.getAttribute(`type`))}]`,score:Hc}),[`INPUT`,`TEXTAREA`,`SELECT`].includes(t.nodeName)&&t.getAttribute(`type`)!==`hidden`&&r.push({engine:`css`,selector:ol(t),score:521}),el([r]),r}function Xc(t,n,r){if(n.nodeName===`SELECT`)return[];let a=[],o=n.getAttribute(`title`);if(o){a.push([{engine:`internal:attr`,selector:`[title=${u(o,!0)}]`,score:zc}]);for(let e of al(o))a.push([{engine:`internal:attr`,selector:`[title=${u(e.text,!1)}]`,score:Mc-e.scoreBonus}])}let s=n.getAttribute(`alt`);if(s&&[`APPLET`,`AREA`,`IMG`,`INPUT`].includes(n.nodeName)){a.push([{engine:`internal:attr`,selector:`[alt=${u(s,!0)}]`,score:Lc}]);for(let e of al(s))a.push([{engine:`internal:attr`,selector:`[alt=${u(e.text,!1)}]`,score:Ac-e.scoreBonus}])}let c=Xs(t._evaluator._cacheText,n).normalized,l=c?al(c):[];if(c){if(r){c.length<=80&&a.push([{engine:`internal:text`,selector:i(c,!0),score:Rc}]);for(let e of l)a.push([{engine:`internal:text`,selector:i(e.text,!1),score:jc-e.scoreBonus}])}let t={engine:`css`,selector:ol(n),score:Uc};for(let e of l)a.push([t,{engine:`internal:has-text`,selector:i(e.text,!1),score:jc-e.scoreBonus}]);if(r&&c.length<=80){let n=RegExp(`^`+e(c)+`$`);a.push([t,{engine:`internal:has-text`,selector:i(n,!1),score:Nc}])}}let d=I(n);if(d&&![`none`,`presentation`].includes(d)){let t=yo(n,!1);if(t&&!t.match(/^\p{Co}+$/u)){let e={engine:`internal:role`,selector:`${d}[name=${u(t,!0)}]`,score:Ic};a.push([e]);for(let e of al(t))a.push([{engine:`internal:role`,selector:`${d}[name=${u(e.text,!1)}]`,score:Dc-e.scoreBonus}]);let r=bo(n,!1);if(r){a.push([{engine:`internal:role`,selector:`${d}[name=${u(t,!0)}][description=${u(r,!0)}]`,score:106}]);for(let e of al(t))a.push([{engine:`internal:role`,selector:`${d}[name=${u(e.text,!1)}][description=${u(r,!1)}]`,score:Dc-e.scoreBonus+1}])}}else{let t={engine:`internal:role`,selector:`${d}`,score:Vc},o=bo(n,!1);o&&a.push([{engine:`internal:role`,selector:`${d}[description=${u(o,!0)}]`,score:511}]);for(let e of l)a.push([t,{engine:`internal:has-text`,selector:i(e.text,!1),score:jc-e.scoreBonus}]);if(r&&c.length<=80){let n=RegExp(`^`+e(c)+`$`);a.push([t,{engine:`internal:has-text`,selector:i(n,!1),score:Nc}])}}}return el(a),a}function Zc(e){return/^[a-zA-Z][a-zA-Z0-9\-\_]+$/.test(e)?`#`+e:`[id=${p(e)}]`}function Qc(e){return e.some(e=>e.engine===`css`&&(e.selector.startsWith(`#`)||e.selector.startsWith(`[id="`)))}function $c(e,t,n){let r=n.root??t.ownerDocument,i=[];function a(n){let a=i.slice();n&&a.unshift(n);let o=a.join(` > `),s=e.parseSelector(o);return e.querySelector(s,r,!1)===t?o:void 0}function o(n){let i={engine:`css`,selector:n,score:Gc},a=e.parseSelector(n),o=e.querySelectorAll(a,r);return o.length===1?[i]:[i,{engine:`nth`,selector:String(o.indexOf(t)),score:Wc}]}for(let e=t;e&&e!==r;e=ja(e)){let t=``;if(e.id&&!n.noCSSId){let n=Zc(e.id),r=a(n);if(r)return o(r);t=n}let r=e.parentNode,s=[...e.classList].map(sl);for(let e=0;e<s.length;++e){let n=`.`+s.slice(0,e+1).join(`.`),i=a(n);if(i)return o(i);!t&&r&&r.querySelectorAll(n).length===1&&(t=n)}if(r){let n=[...r.children],i=e.nodeName,s=n.filter(e=>e.nodeName===i).indexOf(e)===0?ol(e):`${ol(e)}:nth-child(${1+n.indexOf(e)})`,c=a(s);if(c)return o(c);t||=s}else t||=ol(e);i.unshift(t)}return o(a())}function el(e){for(let t of e)for(let e of t)e.score>Ec&&e.score<Bc&&(e.score+=Math.min(Sc,e.selector.length/10|0))}function tl(e){let t=[],n=``;for(let{engine:r,selector:i}of e)t.length&&(n!==`css`||r!==`css`||i.startsWith(`:nth-match(`))&&t.push(`>>`),n=r,r===`css`?t.push(i):t.push(`${r}=${i}`);return t.join(` `)}function nl(e){let t=0;for(let n=0;n<e.length;n++)t+=e[n].score*(e.length-n);return t}function rl(e){let t,n=0;for(let r=0;r<e.length;++r){let i=e[r],a;if(!(i===`-`||i===`_`)){if(a=i>=`a`&&i<=`z`?`lower`:i>=`A`&&i<=`Z`?`upper`:i>=`0`&&i<=`9`?`digit`:`other`,a===`lower`&&t===`upper`){t=a;continue}t&&t!==a&&++n,t=a}}return n>=e.length/4}function il(e,t){if(e.length<=t)return e;e=e.substring(0,t);let n=e.match(/^(.*)\b(.+?)$/);return n?n[1].trimEnd():``}function al(e){let t=[];{let n=e.match(/^([\d.,]+)[^.,\w]/),r=n?n[1].length:0;if(r){let n=il(e.substring(r).trimStart(),80);t.push({text:n,scoreBonus:n.length<=30?2:1})}}{let n=e.match(/[^.,\w]([\d.,]+)$/),r=n?n[1].length:0;if(r){let n=il(e.substring(0,e.length-r).trimEnd(),80);t.push({text:n,scoreBonus:n.length<=30?2:1})}}return e.length<=30?t.push({text:e,scoreBonus:0}):(t.push({text:il(e,80),scoreBonus:0}),t.push({text:il(e,30),scoreBonus:1})),t=t.filter(e=>e.text),t.length||t.push({text:e.substring(0,80),scoreBonus:0}),t}function ol(e){return e.nodeName.toLocaleLowerCase().replace(/[:\.]/g,e=>`\\`+e)}function sl(e){let t=``;for(let n=0;n<e.length;n++)t+=cl(e,n);return t}function cl(e,t){let n=e.charCodeAt(t);return n===0?`�`:n>=1&&n<=31||n>=48&&n<=57&&(t===0||t===1&&e.charCodeAt(0)===45)?`\\`+n.toString(16)+` `:t===0&&n===45&&e.length===1?`\\`+e.charAt(t):n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122?e.charAt(t):`\\`+e.charAt(t)}var ll={queryAll(e,t){t.startsWith(`/`)&&e.nodeType!==Node.DOCUMENT_NODE&&(t=`.`+t);let n=[],r=e.ownerDocument||e;if(!r)return n;let i=r.evaluate(t,e,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE);for(let e=i.iterateNext();e;e=i.iterateNext())e.nodeType===Node.ELEMENT_NODE&&n.push(e);return n}},ul=Symbol(`selector`),dl=class e{constructor(t,n,r){if(r?.hasText&&(n+=` >> internal:has-text=${i(r.hasText,!1)}`),r?.hasNotText&&(n+=` >> internal:has-not-text=${i(r.hasNotText,!1)}`),r?.has&&(n+=` >> internal:has=`+JSON.stringify(r.has[ul])),r?.hasNot&&(n+=` >> internal:has-not=`+JSON.stringify(r.hasNot[ul])),r?.visible!==void 0&&(n+=` >> visible=${r.visible?`true`:`false`}`),this[ul]=n,n){let e=t.parseSelector(n);this.element=t.querySelector(e,t.document,!1),this.elements=t.querySelectorAll(e,t.document)}let a=n,o=this;o.locator=(n,r)=>new e(t,a?a+` >> `+n:n,r),o.getByTestId=e=>o.locator(sa(t.testIdAttributeNameForStrictErrorAndConsoleCodegen(),e)),o.getByAltText=(e,t)=>o.locator(la(e,t)),o.getByLabel=(e,t)=>o.locator(ca(e,t)),o.getByPlaceholder=(e,t)=>o.locator(da(e,t)),o.getByText=(e,t)=>o.locator(fa(e,t)),o.getByTitle=(e,t)=>o.locator(ua(e,t)),o.getByRole=(e,t={})=>o.locator(pa(e,t)),o.filter=r=>new e(t,n,r),o.first=()=>o.locator(`nth=0`),o.last=()=>o.locator(`nth=-1`),o.nth=e=>o.locator(`nth=${e}`),o.and=n=>new e(t,a+` >> internal:and=`+JSON.stringify(n[ul])),o.or=n=>new e(t,a+` >> internal:or=`+JSON.stringify(n[ul]))}},fl=class{constructor(e){this._injectedScript=e}install(){this._injectedScript.window.playwright||(this._injectedScript.window.playwright={$:(e,t)=>this._querySelector(e,!!t),$$:e=>this._querySelectorAll(e),inspect:e=>this._inspect(e),selector:e=>this._selector(e),generateLocator:(e,t)=>this._generateLocator(e,t),ariaSnapshot:(e,t)=>this._injectedScript.ariaSnapshot(e||this._injectedScript.document.body,t||{mode:`default`}),resume:()=>this._resume(),...new dl(this._injectedScript,``)},delete this._injectedScript.window.playwright.filter,delete this._injectedScript.window.playwright.first,delete this._injectedScript.window.playwright.last,delete this._injectedScript.window.playwright.nth,delete this._injectedScript.window.playwright.and,delete this._injectedScript.window.playwright.or)}_querySelector(e,t){if(typeof e!=`string`)throw Error(`Usage: playwright.query('Playwright >> selector').`);let n=this._injectedScript.parseSelector(e);return this._injectedScript.querySelector(n,this._injectedScript.document,t)}_querySelectorAll(e){if(typeof e!=`string`)throw Error(`Usage: playwright.$$('Playwright >> selector').`);let t=this._injectedScript.parseSelector(e);return this._injectedScript.querySelectorAll(t,this._injectedScript.document)}_inspect(e){if(typeof e!=`string`)throw Error(`Usage: playwright.inspect('Playwright >> selector').`);this._injectedScript.window.inspect(this._querySelector(e,!1))}_selector(e){if(!(e instanceof Element))throw Error(`Usage: playwright.selector(element).`);return this._injectedScript.generateSelectorSimple(e)}_generateLocator(e,t){if(!(e instanceof Element))throw Error(`Usage: playwright.locator(element).`);let n=this._injectedScript.generateSelectorSimple(e);return Cn(t||`javascript`,n)}_resume(){if(!this._injectedScript.window.__pw_resume)return!1;this._injectedScript.window.__pw_resume().catch(()=>{})}};function pl(e){try{return e instanceof RegExp||Object.prototype.toString.call(e)===`[object RegExp]`}catch{return!1}}function ml(e){try{return e instanceof Date||Object.prototype.toString.call(e)===`[object Date]`}catch{return!1}}function hl(e){try{return e instanceof URL||Object.prototype.toString.call(e)===`[object URL]`}catch{return!1}}function gl(e){try{return e instanceof Error||e&&Object.getPrototypeOf(e)?.name===`Error`}catch{return!1}}function _l(e,t){try{return e instanceof t||Object.prototype.toString.call(e)===`[object ${t.name}]`}catch{return!1}}function vl(e){try{return e instanceof ArrayBuffer||Object.prototype.toString.call(e)===`[object ArrayBuffer]`}catch{return!1}}var yl={i8:Int8Array,ui8:Uint8Array,ui8c:Uint8ClampedArray,i16:Int16Array,ui16:Uint16Array,i32:Int32Array,ui32:Uint32Array,f32:Float32Array,f64:Float64Array,bi64:BigInt64Array,bui64:BigUint64Array};function bl(e){if(`toBase64`in e)return e.toBase64();let t=Array.from(new Uint8Array(e.buffer,e.byteOffset,e.byteLength)).map(e=>String.fromCharCode(e)).join(``);return btoa(t)}function xl(e,t){let n=atob(e),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return new t(r.buffer)}function Sl(e,t=[],n=new Map){if(!Object.is(e,void 0)){if(typeof e==`object`&&e){if(`ref`in e)return n.get(e.ref);if(`v`in e)return e.v===`undefined`?void 0:e.v===`null`?null:e.v===`NaN`?NaN:e.v===`Infinity`?1/0:e.v===`-Infinity`?-1/0:e.v===`-0`?-0:void 0;if(`d`in e)return new Date(e.d);if(`u`in e)return new URL(e.u);if(`bi`in e)return BigInt(e.bi);if(`e`in e){let t=Error(e.e.m);return t.name=e.e.n,t.stack=e.e.s,t}if(`r`in e)return new RegExp(e.r.p,e.r.f);if(`a`in e){let r=[];n.set(e.id,r);for(let i of e.a)r.push(Sl(i,t,n));return r}if(`o`in e){let r={};n.set(e.id,r);for(let{k:i,v:a}of e.o)i!==`__proto__`&&(r[i]=Sl(a,t,n));return r}if(`h`in e)return t[e.h];if(`ta`in e)return xl(e.ta.b,yl[e.ta.k]);if(`ab`in e)return xl(e.ab.b,Uint8Array).buffer}return e}}function Cl(e,t){return wl(e,t,{visited:new Map,lastId:0})}function wl(e,t,n){if(e&&typeof e==`object`){if(typeof globalThis.Window==`function`&&e instanceof globalThis.Window)return`ref: <Window>`;if(typeof globalThis.Document==`function`&&e instanceof globalThis.Document)return`ref: <Document>`;if(typeof globalThis.Node==`function`&&e instanceof globalThis.Node)return`ref: <Node>`}return Tl(e,t,n)}function Tl(e,t,n){let r=t(e);if(`fallThrough`in r)e=r.fallThrough;else return r;if(typeof e==`symbol`||Object.is(e,void 0))return{v:`undefined`};if(Object.is(e,null))return{v:`null`};if(Object.is(e,NaN))return{v:`NaN`};if(Object.is(e,1/0))return{v:`Infinity`};if(Object.is(e,-1/0))return{v:`-Infinity`};if(Object.is(e,-0))return{v:`-0`};if(typeof e==`boolean`||typeof e==`number`||typeof e==`string`)return e;if(typeof e==`bigint`)return{bi:e.toString()};if(gl(e)){let t;return t=e.stack?.startsWith(e.name+`: `+e.message)?e.stack:`${e.name}: ${e.message}\n${e.stack}`,{e:{n:e.name,m:e.message,s:t}}}if(ml(e))return{d:e.toJSON()};if(hl(e))return{u:e.toJSON()};if(pl(e))return{r:{p:e.source,f:e.flags}};for(let[t,n]of Object.entries(yl))if(_l(e,n))return{ta:{b:bl(e),k:t}};if(vl(e))return{ab:{b:bl(new Uint8Array(e))}};let i=n.visited.get(e);if(i)return{ref:i};if(Array.isArray(e)){let r=[],i=++n.lastId;n.visited.set(e,i);for(let i=0;i<e.length;++i)r.push(wl(e[i],t,n));return{a:r,id:i}}if(typeof e==`object`){let r=[],i=++n.lastId;n.visited.set(e,i);for(let i of Object.keys(e)){let a;try{a=e[i]}catch{continue}i===`toJSON`&&typeof a==`function`?r.push({k:i,v:{o:[],id:0}}):r.push({k:i,v:wl(a,t,n)})}let a;try{r.length===0&&e.toJSON&&typeof e.toJSON==`function`&&(a={value:e.toJSON()})}catch{}return a?Tl(a.value,t,n):{o:r,id:i}}}var El=class{constructor(e,t){this.global=e,this.isUnderTest=t,e.__pwClock?this.builtins=e.__pwClock.builtins:this.builtins={setTimeout:e.setTimeout?.bind(e),clearTimeout:e.clearTimeout?.bind(e),setInterval:e.setInterval?.bind(e),clearInterval:e.clearInterval?.bind(e),requestAnimationFrame:e.requestAnimationFrame?.bind(e),cancelAnimationFrame:e.cancelAnimationFrame?.bind(e),requestIdleCallback:e.requestIdleCallback?.bind(e),cancelIdleCallback:e.cancelIdleCallback?.bind(e),performance:e.performance,Intl:e.Intl,Date:e.Date,AbortSignal:e.AbortSignal},this.isUnderTest&&(e.builtins=this.builtins)}evaluate(e,t,n,r,...i){let a=i.slice(0,r),o=i.slice(r),s=[];for(let e=0;e<a.length;e++)s[e]=Sl(a[e],o);let c=this.global.eval(n);return e===!0?c=c(...s):e===!1?c=c:typeof c==`function`&&(c=c(...s)),t?this._promiseAwareJsonValueNoThrow(c):c}jsonValue(e,t){if(t!==void 0)return Cl(t,e=>({fallThrough:e}))}_promiseAwareJsonValueNoThrow(e){let t=e=>{try{return this.jsonValue(!0,e)}catch{return}};return e&&typeof e==`object`&&typeof e.then==`function`?(async()=>t(await e))():t(e)}},Dl=class{constructor(e,t){this._testIdAttributeNameForStrictErrorAndConsoleCodegen=`data-testid`,this.utils={asLocator:Cn,cacheNormalizedWhitespaces:s,elementText:Xs,getAriaRole:I,getElementAccessibleNameText:yo,getElementAccessibleDescription:bo,isElementVisible:Ra,isInsideScope:Aa,normalizeWhiteSpace:a,parseAriaSnapshot:Zi,generateAriaTree:_s,findNewElement:Ls,builtins:null},this.window=e,this.document=e.document,this.isUnderTest=t.isUnderTest,this.utils.builtins=new El(e,t.isUnderTest).builtins,this._sdkLanguage=t.sdkLanguage,this._frameSeq=t.frameSeq,this._testIdAttributeNameForStrictErrorAndConsoleCodegen=t.testIdAttributeName,this._evaluator=new oc,this.consoleApi=new fl(this),this.onGlobalListenersRemoved=new Set,this._autoClosingTags=new Set([`AREA`,`BASE`,`BR`,`COL`,`COMMAND`,`EMBED`,`HR`,`IMG`,`INPUT`,`KEYGEN`,`LINK`,`MENUITEM`,`META`,`PARAM`,`SOURCE`,`TRACK`,`WBR`]),this._booleanAttributes=new Set([`checked`,`selected`,`disabled`,`readonly`,`multiple`]),this._eventTypes=new Map([[`auxclick`,`mouse`],[`click`,`mouse`],[`dblclick`,`mouse`],[`mousedown`,`mouse`],[`mouseeenter`,`mouse`],[`mouseleave`,`mouse`],[`mousemove`,`mouse`],[`mouseout`,`mouse`],[`mouseover`,`mouse`],[`mouseup`,`mouse`],[`mouseleave`,`mouse`],[`mousewheel`,`mouse`],[`keydown`,`keyboard`],[`keyup`,`keyboard`],[`keypress`,`keyboard`],[`textInput`,`keyboard`],[`touchstart`,`touch`],[`touchmove`,`touch`],[`touchend`,`touch`],[`touchcancel`,`touch`],[`pointerover`,`pointer`],[`pointerout`,`pointer`],[`pointerenter`,`pointer`],[`pointerleave`,`pointer`],[`pointerdown`,`pointer`],[`pointerup`,`pointer`],[`pointermove`,`pointer`],[`pointercancel`,`pointer`],[`gotpointercapture`,`pointer`],[`lostpointercapture`,`pointer`],[`focus`,`focus`],[`blur`,`focus`],[`drag`,`drag`],[`dragstart`,`drag`],[`dragend`,`drag`],[`dragover`,`drag`],[`dragenter`,`drag`],[`dragleave`,`drag`],[`dragexit`,`drag`],[`drop`,`drag`],[`wheel`,`wheel`],[`deviceorientation`,`deviceorientation`],[`deviceorientationabsolute`,`deviceorientation`],[`devicemotion`,`devicemotion`]]),this._hoverHitTargetInterceptorEvents=new Set([`mousemove`]),this._tapHitTargetInterceptorEvents=new Set([`pointerdown`,`pointerup`,`touchstart`,`touchend`,`touchcancel`]),this._mouseHitTargetInterceptorEvents=new Set([`mousedown`,`mouseup`,`pointerdown`,`pointerup`,`click`,`auxclick`,`dblclick`,`contextmenu`]),this._allHitTargetInterceptorEvents=new Set([...this._hoverHitTargetInterceptorEvents,...this._tapHitTargetInterceptorEvents,...this._mouseHitTargetInterceptorEvents]),this._engines=new Map,this._engines.set(`xpath`,ll),this._engines.set(`xpath:light`,ll),this._engines.set(`role`,ac(!1)),this._engines.set(`text`,this._createTextEngine(!0,!1)),this._engines.set(`text:light`,this._createTextEngine(!1,!1)),this._engines.set(`id`,this._createAttributeEngine(`id`,!0)),this._engines.set(`id:light`,this._createAttributeEngine(`id`,!1)),this._engines.set(`data-testid`,this._createAttributeEngine(`data-testid`,!0)),this._engines.set(`data-testid:light`,this._createAttributeEngine(`data-testid`,!1)),this._engines.set(`data-test-id`,this._createAttributeEngine(`data-test-id`,!0)),this._engines.set(`data-test-id:light`,this._createAttributeEngine(`data-test-id`,!1)),this._engines.set(`data-test`,this._createAttributeEngine(`data-test`,!0)),this._engines.set(`data-test:light`,this._createAttributeEngine(`data-test`,!1)),this._engines.set(`css`,this._createCSSEngine()),this._engines.set(`nth`,{queryAll:()=>[]}),this._engines.set(`visible`,this._createVisibleEngine()),this._engines.set(`internal:control`,this._createControlEngine()),this._engines.set(`internal:has`,this._createHasEngine()),this._engines.set(`internal:has-not`,this._createHasNotEngine()),this._engines.set(`internal:and`,{queryAll:()=>[]}),this._engines.set(`internal:or`,{queryAll:()=>[]}),this._engines.set(`internal:chain`,this._createInternalChainEngine()),this._engines.set(`internal:label`,this._createInternalLabelEngine()),this._engines.set(`internal:text`,this._createTextEngine(!0,!0)),this._engines.set(`internal:has-text`,this._createInternalHasTextEngine()),this._engines.set(`internal:has-not-text`,this._createInternalHasNotTextEngine()),this._engines.set(`internal:attr`,this._createNamedAttributeEngine()),this._engines.set(`internal:testid`,this._createTestIdEngine()),this._engines.set(`internal:role`,ac(!0)),this._engines.set(`internal:describe`,this._createDescribeEngine()),this._engines.set(`aria-ref`,this._createAriaRefEngine());for(let{name:e,source:n}of t.customEngines)this._engines.set(e,this.eval(n));this._stableRafCount=t.stableRafCount,this._browserName=t.browserName,this._shouldPrependErrorPrefix=!!t.shouldPrependErrorPrefix,this._isUtilityWorld=!!t.isUtilityWorld,ka({browserNameForWorkarounds:t.browserName}),this._setupGlobalListenersRemovalDetection(),this._setupHitTargetInterceptors(),this.isUnderTest&&(this.window.__injectedScript=this)}eval(e){return this.window.eval(e)}testIdAttributeNameForStrictErrorAndConsoleCodegen(){return this._testIdAttributeNameForStrictErrorAndConsoleCodegen}parseSelector(e){let t=hn(e);return vn(t,t=>{if(!this._engines.has(t.name))throw this.createStacklessError(`Unknown engine "${t.name}" while parsing selector ${e}`)}),t}generateSelector(e,t){return qc(this,e,t)}generateSelectorSimple(e,t){return qc(this,e,{...t,testIdAttributeName:this._testIdAttributeNameForStrictErrorAndConsoleCodegen}).selector}querySelector(e,t,n){let r=this.querySelectorAll(e,t);if(n&&r.length>1)throw this.strictModeViolationError(e,r);return this.checkDeprecatedSelectorUsage(e,r),r[0]}_queryNth(e,t){let n=[...e],r=+t.body;return r===-1&&(r=n.length-1),new Set(n.slice(r,r+1))}_queryLayoutSelector(e,t,n){let r=t.name,i=t.body,a=[],o=this.querySelectorAll(i.parsed,n);for(let t of e){let e=qs(r,t,o,i.distance);e!==void 0&&a.push({element:t,score:e})}return a.sort((e,t)=>e.score-t.score),new Set(a.map(e=>e.element))}ariaSnapshot(e,t){return this.ariaSnapshotWithRefs(e,t).text}ariaSnapshotWithRefs(e,t){if(e.nodeType!==Node.ELEMENT_NODE)throw this.createStacklessError(`Can only capture aria snapshot of Element nodes.`);t={...t,refPrefix:this._frameSeq&&t.mode===`ai`?`f`+this._frameSeq:``};let n=_s(e,t),r=js(n,t);return this._lastAriaSnapshotForQuery=n,{text:r.text,iframeRefs:n.iframeRefs,iframeDepths:r.iframeDepths}}ariaSnapshotForRecorder(){let e=_s(this.document.body,{mode:`ai`}),{text:t}=js(e,{mode:`ai`});return{ariaSnapshot:t,refs:e.refs}}ariaSnapshotForExpectFailure(e,t){return js(_s(e,t),t).text}getAllElementsMatchingExpectAriaTemplate(e,t){return Ts(e.documentElement,t)}querySelectorAll(e,t){if(e.capture!==void 0){if(e.parts.some(e=>e.name===`nth`))throw this.createStacklessError(`Can't query n-th element in a request with the capture.`);let n={parts:e.parts.slice(0,e.capture+1)};if(e.capture<e.parts.length-1){let t={parts:e.parts.slice(e.capture+1)},r={name:`internal:has`,body:{parsed:t},source:_n(t)};n.parts.push(r)}return this.querySelectorAll(n,t)}if(!t.querySelectorAll)throw this.createStacklessError(`Node is not queryable.`);if(e.capture!==void 0)throw this.createStacklessError(`Internal error: there should not be a capture in the selector.`);if(t.nodeType===11&&e.parts.length===1&&e.parts[0].name===`css`&&e.parts[0].source===`:scope`)return[t];this._evaluator.begin();try{let n=new Set([t]);for(let r of e.parts)if(r.name===`nth`)n=this._queryNth(n,r);else if(r.name===`internal:and`){let e=this.querySelectorAll(r.body.parsed,t);n=new Set(e.filter(e=>n.has(e)))}else if(r.name===`internal:or`){let e=this.querySelectorAll(r.body.parsed,t);n=new Set(xc(new Set([...n,...e])))}else if(Ks.includes(r.name))n=this._queryLayoutSelector(n,r,t);else{let e=new Set;for(let t of n){let n=this._queryEngineAll(r,t);for(let t of n)e.add(t)}n=e}return[...n]}finally{this._evaluator.end()}}_queryEngineAll(e,t){let n=this._engines.get(e.name).queryAll(t,e.body);for(let e of n)if(!(`nodeName`in e))throw this.createStacklessError(`Expected a Node but got ${Object.prototype.toString.call(e)}`);return n}_createAttributeEngine(e,t){let n=t=>[{simples:[{selector:{css:`[${e}=${JSON.stringify(t)}]`,functions:[]},combinator:``}]}];return{queryAll:(e,r)=>this._evaluator.query({scope:e,pierceShadow:t},n(r))}}_createCSSEngine(){return{queryAll:(e,t)=>this._evaluator.query({scope:e,pierceShadow:!0},t)}}_createTextEngine(e,t){return{queryAll:(n,r)=>{let{matcher:i,kind:a}=jl(r,t),o=[],s=null,c=e=>{if(a===`lax`&&s&&s.contains(e))return!1;let n=Zs(this._evaluator._cacheText,e,i);n===`none`&&(s=e),(n===`self`||n===`selfAndChildren`&&a===`strict`&&!t)&&o.push(e)};n.nodeType===Node.ELEMENT_NODE&&c(n);let l=this._evaluator._queryCSS({scope:n,pierceShadow:e},`*`);for(let e of l)c(e);return o}}}_createInternalHasTextEngine(){return{queryAll:(e,t)=>{if(e.nodeType!==1)return[];let n=e,r=Xs(this._evaluator._cacheText,n),{matcher:i}=jl(t,!0);return i(r)?[n]:[]}}}_createInternalHasNotTextEngine(){return{queryAll:(e,t)=>{if(e.nodeType!==1)return[];let n=e,r=Xs(this._evaluator._cacheText,n),{matcher:i}=jl(t,!0);return i(r)?[]:[n]}}}_createInternalLabelEngine(){return{queryAll:(e,t)=>{let{matcher:n}=jl(t,!0);return this._evaluator._queryCSS({scope:e,pierceShadow:!0},`*`).filter(e=>Qs(this._evaluator._cacheText,e).some(e=>n(e)))}}}_createNamedAttributeEngine(){return{queryAll:(e,t)=>{let n=bn(t,!0);if(n.name||n.attributes.length!==1)throw Error(`Malformed attribute selector: `+t);let{name:r}=n.attributes[0],i=kl(n.attributes[0]);return this._evaluator._queryCSS({scope:e,pierceShadow:!0},`[${r}]`).filter(e=>i(e.getAttribute(r)))}}}_createTestIdEngine(){return{queryAll:(e,t)=>{let n=bn(t,!0);if(n.name||n.attributes.length!==1)throw Error(`Malformed test id selector: `+t);let r=aa(n.attributes[0].name),i=kl(n.attributes[0]),a=r.map(e=>`[${e}]`).join(`,`);return this._evaluator._queryCSS({scope:e,pierceShadow:!0},a).filter(e=>r.some(t=>{let n=e.getAttribute(t);return n!==null&&i(n)}))}}}_createDescribeEngine(){return{queryAll:e=>e.nodeType===1?[e]:[]}}_createControlEngine(){return{queryAll(e,t){if(t===`enter-frame`||t===`return-empty`)return[];if(t===`component`)return e.nodeType===1?[e.childElementCount===1?e.firstElementChild:e]:[];throw Error(`Internal error, unknown internal:control selector ${t}`)}}}_createHasEngine(){return{queryAll:(e,t)=>e.nodeType===1&&this.querySelector(t.parsed,e,!1)?[e]:[]}}_createHasNotEngine(){return{queryAll:(e,t)=>e.nodeType===1?this.querySelector(t.parsed,e,!1)?[]:[e]:[]}}_createVisibleEngine(){return{queryAll:(e,t)=>{if(e.nodeType!==1)return[];let n=t===`true`;return Ra(e)===n?[e]:[]}}}_createInternalChainEngine(){return{queryAll:(e,t)=>this.querySelectorAll(t.parsed,e)}}extend(e,t){return new(this.window.eval(`
55
+ (() => {
56
+ const module = {};
57
+ ${e}
58
+ return module.exports.default();
59
+ })()`))(this,t)}async viewportRatio(e){return await new Promise(t=>{let n=new IntersectionObserver(e=>{t(e[0].intersectionRatio),n.disconnect()});n.observe(e),this.utils.builtins.requestAnimationFrame(()=>{})})}getElementBorderWidth(e){if(e.nodeType!==Node.ELEMENT_NODE||!e.ownerDocument||!e.ownerDocument.defaultView)return{left:0,top:0};let t=e.ownerDocument.defaultView.getComputedStyle(e);return{left:parseInt(t.borderLeftWidth||``,10),top:parseInt(t.borderTopWidth||``,10)}}describeIFrameStyle(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return`error:notconnected`;let t=e.ownerDocument.defaultView;for(let n=e;n;n=ja(n))if(t.getComputedStyle(n).transform!==`none`)return`transformed`;let n=t.getComputedStyle(e);return{left:parseInt(n.borderLeftWidth||``,10)+parseInt(n.paddingLeft||``,10),top:parseInt(n.borderTopWidth||``,10)+parseInt(n.paddingTop||``,10)}}retarget(e,t){let n=e.nodeType===Node.ELEMENT_NODE?e:e.parentElement;if(!n)return null;if(t===`none`)return n;if(!n.matches(`input, textarea, select`)&&!n.isContentEditable&&(n=t===`button-link`?n.closest(`button, [role=button], a, [role=link]`)||n:n.closest(`button, [role=button], [role=checkbox], [role=radio]`)||n),t===`follow-label`&&!n.matches(`a, input, textarea, button, select, [role=link], [role=button], [role=checkbox], [role=radio]`)&&!n.isContentEditable){let e=n.closest(`label`);e&&e.control&&(n=e.control)}return n}async checkElementStates(e,t){if(t.includes(`stable`)){let t=await this._checkElementIsStable(e);if(t===!1)return{missingState:`stable`};if(t===`error:notconnected`)return`error:notconnected`}for(let n of t)if(n!==`stable`){let t=this.elementState(e,n);if(t.received===`error:notconnected`)return`error:notconnected`;if(!t.matches)return{missingState:n}}}async _checkElementIsStable(e){let t=Symbol(`continuePolling`),n,r=0,i=0,a=()=>{let a=this.retarget(e,`no-follow-label`);if(!a)return`error:notconnected`;let o=this.utils.builtins.performance.now();if(this._stableRafCount>1&&o-i<15)return t;i=o;let s=a.getBoundingClientRect(),c={x:s.top,y:s.left,width:s.width,height:s.height};if(n){if(!(c.x===n.x&&c.y===n.y&&c.width===n.width&&c.height===n.height))return!1;if(++r>=this._stableRafCount)return!0}return n=c,t},o,s,c=new Promise((e,t)=>{o=e,s=t}),l=()=>{try{let e=a();e===t?this.utils.builtins.requestAnimationFrame(l):o(e)}catch(e){s(e)}};return this.utils.builtins.requestAnimationFrame(l),c}_createAriaRefEngine(){return{queryAll:(e,t)=>{let n=this._lastAriaSnapshotForQuery?.info?.get(t);return n&&n.element.isConnected?[n.element]:[]}}}elementState(e,t){let n=this.retarget(e,[`visible`,`hidden`].includes(t)?`none`:`follow-label`);if(!n||!n.isConnected)return t===`hidden`?{matches:!0,received:`hidden`}:{matches:!1,received:`error:notconnected`};if(t===`visible`||t===`hidden`){let e=Ra(n);return{matches:t===`visible`?e:!e,received:e?`visible`:`hidden`}}if(t===`disabled`||t===`enabled`){let e=Uo(n);return{matches:t===`disabled`?e:!e,received:e?`disabled`:`enabled`}}if(t===`editable`){let e=Uo(n),t=Fo(n);if(t===`error`)throw this.createStacklessError(`Element is not an <input>, <textarea>, <select> or [contenteditable] and does not have a role allowing [aria-readonly]`);return{matches:!e&&!t,received:e?`disabled`:t?`readOnly`:`editable`}}if(t===`checked`||t===`unchecked`){let e=t===`checked`,r=Mo(n);if(r===`error`)throw this.createStacklessError(`Not a checkbox or radio button`);let i=n.nodeName===`INPUT`&&n.type===`radio`;return{matches:e===r,received:r?`checked`:`unchecked`,isRadio:i}}if(t===`indeterminate`){let e=jo(n);if(e===`error`)throw this.createStacklessError(`Not a checkbox or radio button`);return{matches:e===`mixed`,received:e===!0?`checked`:e===!1?`unchecked`:`mixed`}}throw this.createStacklessError(`Unexpected element state "${t}"`)}selectOptions(e,t){let n=this.retarget(e,`follow-label`);if(!n)return`error:notconnected`;if(n.nodeName.toLowerCase()!==`select`)throw this.createStacklessError(`Element is not a <select> element`);let r=n,i=[...r.options],o=[],s=t.slice();for(let e=0;e<i.length;e++){let t=i[e],n=a(t.label),c=r=>{if(r instanceof Node)return t===r;let i=e=>e===t.label||a(e)===n,o=!0;return r.valueOrLabel!==void 0&&(o&&=r.valueOrLabel===t.value||i(r.valueOrLabel)),r.value!==void 0&&(o&&=r.value===t.value),r.label!==void 0&&(o&&=i(r.label)),r.index!==void 0&&(o&&=r.index===e),o};if(s.some(c)){if(!this.elementState(t,`enabled`).matches)return`error:optionnotenabled`;if(o.push(t),r.multiple)s=s.filter(e=>!c(e));else{s=[];break}}}return s.length?`error:optionsnotfound`:(r.value=void 0,o.forEach(e=>e.selected=!0),r.dispatchEvent(new Event(`input`,{bubbles:!0,composed:!0})),r.dispatchEvent(new Event(`change`,{bubbles:!0})),o.map(e=>e.value))}fill(e,t){let n=this.retarget(e,`follow-label`);if(!n)return`error:notconnected`;if(n.nodeName.toLowerCase()===`input`){let e=n,r=e.type.toLowerCase(),i=new Set([`color`,`date`,`time`,`datetime-local`,`month`,`range`,`week`]);if(!new Set([``,`email`,`number`,`password`,`search`,`tel`,`text`,`url`]).has(r)&&!i.has(r))throw this.createStacklessError(`Input of type "${r}" cannot be filled`);if(r===`number`&&(t=t.trim(),isNaN(Number(t))))throw this.createStacklessError(`Cannot type text into input[type=number]`);if(r===`color`&&(t=t.toLowerCase()),i.has(r)){if(t=t.trim(),e.focus(),e.value=t,e.value!==t)throw this.createStacklessError(`Malformed value`);return n.dispatchEvent(new Event(`input`,{bubbles:!0,composed:!0})),n.dispatchEvent(new Event(`change`,{bubbles:!0})),`done`}}else if(n.nodeName.toLowerCase()!==`textarea`&&!n.isContentEditable)throw this.createStacklessError(`Element is not an <input>, <textarea> or [contenteditable] element`);return this.selectText(n),`needsinput`}selectText(e){let t=this.retarget(e,`follow-label`);if(!t)return`error:notconnected`;if(t.nodeName.toLowerCase()===`input`){let e=t;return e.select(),e.focus(),`done`}if(t.nodeName.toLowerCase()===`textarea`){let e=t;return e.selectionStart=0,e.selectionEnd=e.value.length,e.focus(),`done`}t.focus();let n=t.ownerDocument.createRange();n.selectNodeContents(t);let r=t.ownerDocument.defaultView.getSelection();return r&&(r.removeAllRanges(),r.addRange(n)),`done`}_activelyFocused(e){let t=e.getRootNode().activeElement;return{activeElement:t,isFocused:t===e&&!!e.ownerDocument&&e.ownerDocument.hasFocus()}}focusNode(e,t){if(!e.isConnected)return`error:notconnected`;if(e.nodeType!==Node.ELEMENT_NODE)throw this.createStacklessError(`Node is not an element`);let{activeElement:n,isFocused:r}=this._activelyFocused(e);if(e.isContentEditable&&!r&&n&&n.blur&&n.blur(),e.focus(),e.focus(),t&&!r&&e.nodeName.toLowerCase()===`input`)try{e.setSelectionRange(0,0)}catch{}return`done`}blurNode(e){if(!e.isConnected)return`error:notconnected`;if(e.nodeType!==Node.ELEMENT_NODE)throw this.createStacklessError(`Node is not an element`);return e.blur(),`done`}setInputFiles(e,t){if(e.nodeType!==Node.ELEMENT_NODE)return`Node is not of type HTMLElement`;let n=e;if(n.nodeName!==`INPUT`)return`Not an <input> element`;let r=n;if((r.getAttribute(`type`)||``).toLowerCase()!==`file`)return`Not an input[type=file] element`;let i=t.map(e=>{let t=Uint8Array.from(atob(e.buffer),e=>e.charCodeAt(0));return new File([t],e.name,{type:e.mimeType,lastModified:e.lastModifiedMs})}),a=new DataTransfer;for(let e of i)a.items.add(e);r.files=a.files,r.dispatchEvent(new Event(`input`,{bubbles:!0,composed:!0})),r.dispatchEvent(new Event(`change`,{bubbles:!0}))}expectHitTarget(e,t){let n=[],r=t;for(;r;){let e=Ma(r);if(!e||(n.push(e),e.nodeType===9))break;r=e.host}let i;for(let t=n.length-1;t>=0;t--){let r=n[t],a=r.elementsFromPoint(e.x,e.y),o=r.elementFromPoint(e.x,e.y);o&&a[0]&&ja(o)===a[0]&&this.window.getComputedStyle(o)?.display===`contents`&&a.unshift(o),a[0]&&a[0].shadowRoot===r&&a[1]===o&&a.shift();let s=a[0];if(!s||(i=s,t&&s!==n[t-1].host))break}let a=[];for(;i&&i!==t;)a.push(i),i=i.assignedSlot??ja(i);if(i===t)return`done`;let o=this.previewNode(a[0]||this.document.documentElement),s,c=t;for(;c;){let e=a.indexOf(c);if(e!==-1){e>1&&(s=this.previewNode(a[e-1]));break}c=ja(c)}return s?{hitTargetDescription:`${o} from ${s} subtree`}:{hitTargetDescription:o}}setupHitTargetInterceptor(e,t,n,r){let i=this.retarget(e,`button-link`);if(!i||!i.isConnected)return`error:notconnected`;if(n){let e=this.expectHitTarget(n,i);if(e!==`done`)return e.hitTargetDescription}if(t===`drag`)return{stop:()=>`done`};let a={hover:this._hoverHitTargetInterceptorEvents,tap:this._tapHitTargetInterceptorEvents,mouse:this._mouseHitTargetInterceptorEvents}[t],o,s=e=>{if(!a.has(e.type)||!e.isTrusted&&!e.__pwTrustedSynthetic)return;let t=this.window.TouchEvent&&e instanceof this.window.TouchEvent?e.touches[0]:e;o===void 0&&t&&(o=this.expectHitTarget({x:t.clientX,y:t.clientY},i)),(r||o!==`done`&&o!==void 0)&&(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation())},c=()=>(this._hitTargetInterceptor===s&&(this._hitTargetInterceptor=void 0),o||`done`);return this._hitTargetInterceptor=s,{stop:c}}dispatchEvent(e,t,n){let r,i={bubbles:!0,cancelable:!0,composed:!0,...n};switch(this._eventTypes.get(t)){case`mouse`:r=new MouseEvent(t,i);break;case`keyboard`:r=new KeyboardEvent(t,i);break;case`touch`:if(this._browserName===`webkit`){let n=t=>{if(t instanceof Touch)return t;let n=t.pageX;n===void 0&&t.clientX!==void 0&&(n=t.clientX+(this.document.scrollingElement?.scrollLeft||0));let r=t.pageY;return r===void 0&&t.clientY!==void 0&&(r=t.clientY+(this.document.scrollingElement?.scrollTop||0)),this.document.createTouch(this.window,t.target??e,t.identifier,n,r,t.screenX,t.screenY,t.radiusX,t.radiusY,t.rotationAngle,t.force)},a=e=>e instanceof TouchList||!e?e:this.document.createTouchList(...e.map(n));i.target??=e,i.touches=a(i.touches),i.targetTouches=a(i.targetTouches),i.changedTouches=a(i.changedTouches),r=new TouchEvent(t,i)}else i.target??=e,i.touches=i.touches?.map(t=>t instanceof Touch?t:new Touch({...t,target:t.target??e})),i.targetTouches=i.targetTouches?.map(t=>t instanceof Touch?t:new Touch({...t,target:t.target??e})),i.changedTouches=i.changedTouches?.map(t=>t instanceof Touch?t:new Touch({...t,target:t.target??e})),r=new TouchEvent(t,i);break;case`pointer`:r=new PointerEvent(t,i);break;case`focus`:r=new FocusEvent(t,i);break;case`drag`:r=new DragEvent(t,i);break;case`wheel`:r=new WheelEvent(t,i);break;case`deviceorientation`:try{r=new DeviceOrientationEvent(t,i)}catch{let{bubbles:e,cancelable:n,alpha:a,beta:o,gamma:s,absolute:c}=i;r=this.document.createEvent(`DeviceOrientationEvent`),r.initDeviceOrientationEvent(t,e,n,a,o,s,c)}break;case`devicemotion`:try{r=new DeviceMotionEvent(t,i)}catch{let{bubbles:e,cancelable:n,acceleration:a,accelerationIncludingGravity:o,rotationRate:s,interval:c}=i;r=this.document.createEvent(`DeviceMotionEvent`),r.initDeviceMotionEvent(t,e,n,a,o,s,c)}break;default:r=new Event(t,i);break}e.dispatchEvent(r)}previewNode(e){if(e.nodeType===Node.TEXT_NODE)return Ol(`#text=${e.nodeValue||``}`);if(e.nodeType!==Node.ELEMENT_NODE)return Ol(`<${e.nodeName.toLowerCase()} />`);let t=e,n=[];for(let e=0;e<t.attributes.length;e++){let{name:r,value:i}=t.attributes[e];r!==`style`&&(!i&&this._booleanAttributes.has(r)?n.push(` ${r}`):n.push(` ${r}="${i}"`))}n.sort((e,t)=>e.length-t.length);let r=l(n.join(``),500);if(this._autoClosingTags.has(t.nodeName))return Ol(`<${t.nodeName.toLowerCase()}${r}/>`);let i=t.childNodes,a=!1;if(i.length<=5){a=!0;for(let e=0;e<i.length;e++)a&&=i[e].nodeType===Node.TEXT_NODE}let o=a?t.textContent||``:i.length?`…`:``;return Ol(`<${t.nodeName.toLowerCase()}${r}>${l(o,50)}</${t.nodeName.toLowerCase()}>`)}_generateSelectors(e){this._evaluator.begin(),us(),Wa();try{let t=this._isUtilityWorld&&this._browserName===`firefox`?2:10;return e.slice(0,t).map(e=>({preview:this.previewNode(e),selector:this.generateSelectorSimple(e)})).map((e,t)=>`${t+1}) ${e.preview} aka ${Cn(this._sdkLanguage,e.selector)}`)}finally{Ga(),ds(),this._evaluator.end()}}strictModeViolationError(e,t){let n=this._generateSelectors(t).map(e=>`
60
+ `+e);return n.length<t.length&&n.push(`
61
+ ...`),this.createStacklessError(`strict mode violation: ${Cn(this._sdkLanguage,_n(e))} resolved to ${t.length} elements:${n.join(``)}\n`)}checkDeprecatedSelectorUsage(e,t){let n=new Set([`_react`,`_vue`,`xpath:light`,`text:light`,`id:light`,`data-testid:light`,`data-test-id:light`,`data-test:light`]);if(!t.length)return;let r=e.parts.find(e=>n.has(e.name));if(!r)return;let i=this._generateSelectors(t).map(e=>`
62
+ `+e);throw i.length<t.length&&i.push(`
63
+ ...`),this.createStacklessError(`"${r.name}" selector is not supported: ${Cn(this._sdkLanguage,_n(e))} resolved to ${t.length} element${t.length===1?``:`s`}:${i.join(``)}\n`)}createStacklessError(e){let t=this._shouldPrependErrorPrefix?Error(`Error: `+e):Error(e);return this._browserName===`firefox`?(t.stack=``,t):(delete t.stack,t)}createHighlight(){return new zs(this)}addMaskedElements(e,t){this._ensureHighlight().addMaskedElements(e,t)}_ensureHighlight(){return this._highlight||(this._highlight=new zs(this),this._highlight.install()),this._highlight}addHighlight(e,t){this._ensureHighlight().addElementHighlight(e,t)}removeHighlight(e){this._ensureHighlight().removeElementHighlight(e)}setScreencastAnnotation(e){let t=this._ensureHighlight();if(!e){t.updateHighlight([]),t.hideActionPoint(),t.hideActionTitle(),t.hideActionCursor();return}let n=e.duration??500;e.box&&t.updateHighlight([{box:e.box,color:`rgba(0, 128, 255, 0.15)`,borderColor:`rgba(0, 128, 255, 0.6)`,fadeDuration:n}]),e.point&&(e.cursor!==`none`&&t.moveActionCursor(e.point.x,e.point.y,n),t.showActionPoint(e.point.x,e.point.y,n)),e.actionTitle&&t.showActionTitle(e.actionTitle,n,e.position,e.fontSize)}addUserOverlay(e,t){this._ensureHighlight().addUserOverlay(e,t)}getUserOverlay(e){return this._ensureHighlight().getUserOverlay(e)}removeUserOverlay(e){this._ensureHighlight().removeUserOverlay(e)}setUserOverlaysVisible(e){this._ensureHighlight().setUserOverlaysVisible(e)}hideHighlight(){this._highlight&&(this._highlight.uninstall(),delete this._highlight)}markTargetElements(e){let t=new CustomEvent(`__playwright_reset_targets__`,{bubbles:!0,cancelable:!0,composed:!0});this.document.dispatchEvent(t);let n=new CustomEvent(`__playwright_mark_target__`,{bubbles:!0,cancelable:!0,composed:!0});for(let t of e)t.dispatchEvent(n)}_setupGlobalListenersRemovalDetection(){let e=`__playwright_global_listeners_check__`,t=!1,n=()=>t=!0;this.window.addEventListener(e,n),new MutationObserver(r=>{if(r.some(e=>Array.from(e.addedNodes).includes(this.document.documentElement))&&(t=!1,this.window.dispatchEvent(new CustomEvent(e)),!t)){this.window.addEventListener(e,n);for(let e of this.onGlobalListenersRemoved)e()}}).observe(this.document,{childList:!0})}_setupHitTargetInterceptors(){let e=e=>this._hitTargetInterceptor?.(e),t=()=>{for(let t of this._allHitTargetInterceptorEvents)this.window.addEventListener(t,e,{capture:!0,passive:!1})};t(),this.onGlobalListenersRemoved.add(t)}async expect(e,t,n){let r=t.expression===`to.have.count`||t.expression.endsWith(`.array`)?this.expectArray(n,t):await this.expectSingleElement(e,t),i=r.matches===t.isNot?this._ariaSnapshotForExpect(e,t):void 0;return r.received===void 0&&i===void 0?{matches:r.matches}:{matches:r.matches,received:{value:r.received,ariaSnapshot:i}}}_ariaSnapshotForExpect(e,t){let n=t.expression;if(!(n===`to.have.count`||n.endsWith(`.array`)||n===`to.match.aria`)){if(Ra(e)&&n!==`to.have.title`&&n!==`to.have.url`){let t=n===`to.have.text`;return this.ariaSnapshotForExpectFailure(e,{mode:`default`,depth:t?void 0:1})}if(this.document.body)return this.ariaSnapshotForExpectFailure(this.document.body,{mode:`default`})}}async expectSingleElement(e,t){let n=t.expression;if(n===`to.have.title`){let e=this.document.title;return{received:e,matches:new Ml(t.expectedText[0]).matches(e)}}if(n===`to.have.url`){let e=this.document.location.href;return{received:e,matches:new Ml(t.expectedText[0]).matches(e)}}{let r;if(n===`to.have.attribute`){let n=e.hasAttribute(t.expressionArg);r={matches:n,received:n?`attribute present`:`attribute not present`}}else if(n===`to.be.checked`){let{checked:n,indeterminate:i}=t.expectedValue;if(i){if(n!==void 0)throw this.createStacklessError(`Can't assert indeterminate and checked at the same time`);r=this.elementState(e,`indeterminate`)}else r=this.elementState(e,n===!1?`unchecked`:`checked`)}else if(n===`to.be.disabled`)r=this.elementState(e,`disabled`);else if(n===`to.be.editable`)r=this.elementState(e,`editable`);else if(n===`to.be.readonly`)r=this.elementState(e,`editable`),r.matches=!r.matches;else if(n===`to.be.empty`)if(e.nodeName===`INPUT`||e.nodeName===`TEXTAREA`){let t=e.value;r={matches:!t,received:t?`notEmpty`:`empty`}}else{let t=e.textContent?.trim();r={matches:!t,received:t?`notEmpty`:`empty`}}else if(n===`to.be.enabled`)r=this.elementState(e,`enabled`);else if(n===`to.be.focused`){let t=this._activelyFocused(e).isFocused;r={matches:t,received:t?`focused`:`inactive`}}else n===`to.be.hidden`?r=this.elementState(e,`hidden`):n===`to.be.visible`?r=this.elementState(e,`visible`):n===`to.be.attached`?r={matches:!0,received:`attached`}:n===`to.be.detached`&&(r={matches:!1,received:`attached`});if(r){if(r.received===`error:notconnected`)throw this.createStacklessError(`Element is not connected`);return r}}if(n===`to.have.property`){let n=e,r=t.expressionArg.split(`.`);for(let e=0;e<r.length-1;e++){if(typeof n!=`object`||!(r[e]in n))return{received:void 0,matches:!1};n=n[r[e]]}let i=n[r[r.length-1]];return{received:i,matches:Nl(i,t.expectedValue)}}if(n===`to.be.in.viewport`){let n=await this.viewportRatio(e);return{received:`viewport ratio ${n}`,matches:n>0&&n>(t.expectedNumber??0)-1e-9}}if(n===`to.have.values`){if(e=this.retarget(e,`follow-label`),e.nodeName!==`SELECT`||!e.multiple)throw this.createStacklessError(`Not a select element with a multiple attribute`);let n=[...e.selectedOptions].map(e=>e.value);return n.length===t.expectedText.length?{received:n,matches:n.map((e,n)=>new Ml(t.expectedText[n]).matches(e)).every(Boolean)}:{received:n,matches:!1}}if(n===`to.match.aria`){let n=ws(e,t.expectedValue);return{received:n.received,matches:!!n.matches.length}}{let r;if(n===`to.have.attribute.value`){let n=e.getAttribute(t.expressionArg);if(n===null)return{received:null,matches:!1};r=n}else if([`to.have.class`,`to.contain.class`].includes(n)){if(!t.expectedText)throw this.createStacklessError(`Expected text is not provided for `+n);return{received:e.classList.toString(),matches:new Ml(t.expectedText[0]).matchesClassList(this,e.classList,n===`to.contain.class`)}}else if(n===`to.have.css`)r=this.window.getComputedStyle(e,t.pseudo?`::${t.pseudo}`:void 0).getPropertyValue(t.expressionArg);else if(n===`to.have.id`)r=e.id;else if(n===`to.have.text`)r=t.useInnerText?e.innerText:Xs(new Map,e).full;else if(n===`to.have.accessible.name`)r=yo(e,!1);else if(n===`to.have.accessible.description`)r=bo(e,!1);else if(n===`to.have.accessible.error.message`)r=wo(e);else if(n===`to.have.role`)r=I(e)||``;else if(n===`to.have.value`){if(e=this.retarget(e,`follow-label`),e.nodeName!==`INPUT`&&e.nodeName!==`TEXTAREA`&&e.nodeName!==`SELECT`)throw this.createStacklessError(`Not an input element`);r=e.value}if(r!==void 0&&t.expectedText){let e=new Ml(t.expectedText[0]);return{received:r,matches:e.matches(r)}}}throw this.createStacklessError(`Unknown expect matcher: `+n)}expectArray(e,t){let n=t.expression;if(n===`to.have.count`){let n=e.length;return{received:n,matches:n===t.expectedNumber}}if(!t.expectedText)throw this.createStacklessError(`Expected text is not provided for `+n);if([`to.have.class.array`,`to.contain.class.array`].includes(n)){let r=e.map(e=>e.classList),i=r.map(String);return r.length===t.expectedText.length?{received:i,matches:this._matchSequentially(t.expectedText,r,(e,t)=>e.matchesClassList(this,t,n===`to.contain.class.array`))}:{received:i,matches:!1}}if(![`to.contain.text.array`,`to.have.text.array`].includes(n))throw this.createStacklessError(`Unknown expect matcher: `+n);let r=e.map(e=>t.useInnerText?e.innerText:Xs(new Map,e).full),i=n!==`to.contain.text.array`;return r.length===t.expectedText.length||!i?{received:r,matches:this._matchSequentially(t.expectedText,r,(e,t)=>e.matches(t))}:{received:r,matches:!1}}_matchSequentially(e,t,n){let r=e.map(e=>new Ml(e)),i=0,a=0;for(;i<r.length&&a<t.length;)n(r[i],t[a])&&++i,++a;return i===r.length}};function Ol(e){return e.replace(/\n/g,`↵`).replace(/\t/g,`⇆`)}function kl(e){let{value:t,caseSensitive:n}=e;if(t instanceof RegExp)return e=>!!e.match(t);if(n)return e=>e===t;let r=t.toLowerCase();return e=>e.toLowerCase().includes(r)}function Al(e){if(e=e.substring(1,e.length-1),!e.includes(`\\`))return e;let t=[],n=0;for(;n<e.length;)e[n]===`\\`&&n+1<e.length&&n++,t.push(e[n++]);return t.join(``)}function jl(e,t){if(e[0]===`/`&&e.lastIndexOf(`/`)>0){let t=e.lastIndexOf(`/`),n=new RegExp(e.substring(1,t),e.substring(t+1));return{matcher:e=>n.test(e.full),kind:`regex`}}let n=t?JSON.parse.bind(JSON):Al,r=!1;return e.length>1&&e[0]===`"`&&e[e.length-1]===`"`?(e=n(e),r=!0):t&&e.length>1&&e[0]===`"`&&e[e.length-2]===`"`&&e[e.length-1]===`i`?(e=n(e.substring(0,e.length-1)),r=!1):t&&e.length>1&&e[0]===`"`&&e[e.length-2]===`"`&&e[e.length-1]===`s`?(e=n(e.substring(0,e.length-1)),r=!0):e.length>1&&e[0]===`'`&&e[e.length-1]===`'`&&(e=n(e),r=!0),e=a(e),r?t?{kind:`strict`,matcher:t=>t.normalized===e}:{matcher:t=>!e&&!t.immediate.length?!0:t.immediate.some(t=>a(t)===e),kind:`strict`}:(e=e.toLowerCase(),{kind:`lax`,matcher:t=>t.normalized.toLowerCase().includes(e)})}var Ml=class{constructor(e){if(this._normalizeWhiteSpace=e.normalizeWhiteSpace,this._ignoreCase=e.ignoreCase,this._string=e.matchSubstring?void 0:this.normalize(e.string),this._substring=e.matchSubstring?this.normalize(e.string):void 0,e.regexSource){let t=new Set((e.regexFlags||``).split(``));e.ignoreCase===!1&&t.delete(`i`),e.ignoreCase===!0&&t.add(`i`),this._regex=new RegExp(e.regexSource,[...t].join(``))}}matches(e){return this._regex||(e=this.normalize(e)),this._string===void 0?this._substring===void 0?this._regex?!!this._regex.test(e):!1:e.includes(this._substring):e===this._string}matchesClassList(e,t,n){if(n){if(this._regex)throw e.createStacklessError(`Partial matching does not support regular expressions. Please provide a string value.`);return this._string.split(/\s+/g).filter(Boolean).every(e=>t.contains(e))}return this.matches(t.toString())}normalize(e){return e&&(this._normalizeWhiteSpace&&(e=a(e)),this._ignoreCase&&(e=e.toLocaleLowerCase()),e)}};function Nl(e,t){if(e===t)return!0;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!Nl(e[n],t[n]))return!1;return!0}if(e instanceof RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let e=0;e<n.length;++e)if(!t.hasOwnProperty(n[e]))return!1;for(let r of n)if(!Nl(e[r],t[r]))return!1;return!0}return typeof e==`number`&&typeof t==`number`?isNaN(e)&&isNaN(t):!1}var Pl={tagName:`svg`,children:[{tagName:`defs`,children:[{tagName:`clipPath`,attrs:{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,id:`icon-gripper`},children:[{tagName:`path`,attrs:{d:`M5 3h2v2H5zm0 4h2v2H5zm0 4h2v2H5zm4-8h2v2H9zm0 4h2v2H9zm0 4h2v2H9z`}}]},{tagName:`clipPath`,attrs:{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,id:`icon-circle-large-filled`},children:[{tagName:`path`,attrs:{d:`M8 1a6.8 6.8 0 0 1 1.86.253 6.899 6.899 0 0 1 3.083 1.805 6.903 6.903 0 0 1 1.804 3.083C14.916 6.738 15 7.357 15 8s-.084 1.262-.253 1.86a6.9 6.9 0 0 1-.704 1.674 7.157 7.157 0 0 1-2.516 2.509 6.966 6.966 0 0 1-1.668.71A6.984 6.984 0 0 1 8 15a6.984 6.984 0 0 1-1.86-.246 7.098 7.098 0 0 1-1.674-.711 7.3 7.3 0 0 1-1.415-1.094 7.295 7.295 0 0 1-1.094-1.415 7.098 7.098 0 0 1-.71-1.675A6.985 6.985 0 0 1 1 8c0-.643.082-1.262.246-1.86a6.968 6.968 0 0 1 .711-1.667 7.156 7.156 0 0 1 2.509-2.516 6.895 6.895 0 0 1 1.675-.704A6.808 6.808 0 0 1 8 1z`}}]},{tagName:`clipPath`,attrs:{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,id:`icon-stop-circle`},children:[{tagName:`path`,attrs:{d:`M6 6h4v4H6z`}},{tagName:`path`,attrs:{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M8.6 1c1.6.1 3.1.9 4.2 2 1.3 1.4 2 3.1 2 5.1 0 1.6-.6 3.1-1.6 4.4-1 1.2-2.4 2.1-4 2.4-1.6.3-3.2.1-4.6-.7-1.4-.8-2.5-2-3.1-3.5C.9 9.2.8 7.5 1.3 6c.5-1.6 1.4-2.9 2.8-3.8C5.4 1.3 7 .9 8.6 1zm.5 12.9c1.3-.3 2.5-1 3.4-2.1.8-1.1 1.3-2.4 1.2-3.8 0-1.6-.6-3.2-1.7-4.3-1-1-2.2-1.6-3.6-1.7-1.3-.1-2.7.2-3.8 1-1.1.8-1.9 1.9-2.3 3.3-.4 1.3-.4 2.7.2 4 .6 1.3 1.5 2.3 2.7 3 1.2.7 2.6.9 3.9.6z`}}]},{tagName:`clipPath`,attrs:{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,id:`icon-inspect`},children:[{tagName:`path`,attrs:{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M1 3l1-1h12l1 1v6h-1V3H2v8h5v1H2l-1-1V3zm14.707 9.707L9 6v9.414l2.707-2.707h4zM10 13V8.414l3.293 3.293h-2L10 13z`}}]},{tagName:`clipPath`,attrs:{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,id:`icon-whole-word`},children:[{tagName:`path`,attrs:{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M0 11H1V13H15V11H16V14H15H1H0V11Z`}},{tagName:`path`,attrs:{d:`M6.84048 11H5.95963V10.1406H5.93814C5.555 10.7995 4.99104 11.1289 4.24625 11.1289C3.69839 11.1289 3.26871 10.9839 2.95718 10.6938C2.64924 10.4038 2.49527 10.0189 2.49527 9.53906C2.49527 8.51139 3.10041 7.91341 4.3107 7.74512L5.95963 7.51416C5.95963 6.57959 5.58186 6.1123 4.82632 6.1123C4.16389 6.1123 3.56591 6.33789 3.03238 6.78906V5.88672C3.57307 5.54297 4.19612 5.37109 4.90152 5.37109C6.19416 5.37109 6.84048 6.05501 6.84048 7.42285V11ZM5.95963 8.21777L4.63297 8.40039C4.22476 8.45768 3.91682 8.55973 3.70914 8.70654C3.50145 8.84977 3.39761 9.10579 3.39761 9.47461C3.39761 9.74316 3.4925 9.96338 3.68228 10.1353C3.87564 10.3035 4.13166 10.3877 4.45035 10.3877C4.8872 10.3877 5.24706 10.2355 5.52994 9.93115C5.8164 9.62321 5.95963 9.2347 5.95963 8.76562V8.21777Z`}},{tagName:`path`,attrs:{d:`M9.3475 10.2051H9.32601V11H8.44515V2.85742H9.32601V6.4668H9.3475C9.78076 5.73633 10.4146 5.37109 11.2489 5.37109C11.9543 5.37109 12.5057 5.61816 12.9032 6.1123C13.3042 6.60286 13.5047 7.26172 13.5047 8.08887C13.5047 9.00911 13.2809 9.74674 12.8333 10.3018C12.3857 10.8532 11.7734 11.1289 10.9964 11.1289C10.2695 11.1289 9.71989 10.821 9.3475 10.2051ZM9.32601 7.98682V8.75488C9.32601 9.20964 9.47282 9.59635 9.76644 9.91504C10.0636 10.2301 10.4396 10.3877 10.8944 10.3877C11.4279 10.3877 11.8451 10.1836 12.1458 9.77539C12.4502 9.36719 12.6024 8.79964 12.6024 8.07275C12.6024 7.46045 12.4609 6.98063 12.1781 6.6333C11.8952 6.28597 11.512 6.1123 11.0286 6.1123C10.5166 6.1123 10.1048 6.29134 9.7933 6.64941C9.48177 7.00391 9.32601 7.44971 9.32601 7.98682Z`}}]},{tagName:`clipPath`,attrs:{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,id:`icon-eye`},children:[{tagName:`path`,attrs:{d:`M7.99993 6.00316C9.47266 6.00316 10.6666 7.19708 10.6666 8.66981C10.6666 10.1426 9.47266 11.3365 7.99993 11.3365C6.52715 11.3365 5.33324 10.1426 5.33324 8.66981C5.33324 7.19708 6.52715 6.00316 7.99993 6.00316ZM7.99993 7.00315C7.07946 7.00315 6.33324 7.74935 6.33324 8.66981C6.33324 9.59028 7.07946 10.3365 7.99993 10.3365C8.9204 10.3365 9.6666 9.59028 9.6666 8.66981C9.6666 7.74935 8.9204 7.00315 7.99993 7.00315ZM7.99993 3.66675C11.0756 3.66675 13.7307 5.76675 14.4673 8.70968C14.5344 8.97755 14.3716 9.24908 14.1037 9.31615C13.8358 9.38315 13.5643 9.22041 13.4973 8.95248C12.8713 6.45205 10.6141 4.66675 7.99993 4.66675C5.38454 4.66675 3.12664 6.45359 2.50182 8.95555C2.43491 9.22341 2.16348 9.38635 1.89557 9.31948C1.62766 9.25255 1.46471 8.98115 1.53162 8.71321C2.26701 5.76856 4.9229 3.66675 7.99993 3.66675Z`}}]},{tagName:`clipPath`,attrs:{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,id:`icon-symbol-constant`},children:[{tagName:`path`,attrs:{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M4 6h8v1H4V6zm8 3H4v1h8V9z`}},{tagName:`path`,attrs:{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M1 4l1-1h12l1 1v8l-1 1H2l-1-1V4zm1 0v8h12V4H2z`}}]},{tagName:`clipPath`,attrs:{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,id:`icon-check`},children:[{tagName:`path`,attrs:{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M14.431 3.323l-8.47 10-.79-.036-3.35-4.77.818-.574 2.978 4.24 8.051-9.506.764.646z`}}]},{tagName:`clipPath`,attrs:{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,id:`icon-close`},children:[{tagName:`path`,attrs:{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M8 8.707l3.646 3.647.708-.707L8.707 8l3.647-3.646-.707-.708L8 7.293 4.354 3.646l-.707.708L7.293 8l-3.646 3.646.707.708L8 8.707z`}}]},{tagName:`clipPath`,attrs:{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,id:`icon-pass`},children:[{tagName:`path`,attrs:{d:`M6.27 10.87h.71l4.56-4.56-.71-.71-4.2 4.21-1.92-1.92L4 8.6l2.27 2.27z`}},{tagName:`path`,attrs:{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M8.6 1c1.6.1 3.1.9 4.2 2 1.3 1.4 2 3.1 2 5.1 0 1.6-.6 3.1-1.6 4.4-1 1.2-2.4 2.1-4 2.4-1.6.3-3.2.1-4.6-.7-1.4-.8-2.5-2-3.1-3.5C.9 9.2.8 7.5 1.3 6c.5-1.6 1.4-2.9 2.8-3.8C5.4 1.3 7 .9 8.6 1zm.5 12.9c1.3-.3 2.5-1 3.4-2.1.8-1.1 1.3-2.4 1.2-3.8 0-1.6-.6-3.2-1.7-4.3-1-1-2.2-1.6-3.6-1.7-1.3-.1-2.7.2-3.8 1-1.1.8-1.9 1.9-2.3 3.3-.4 1.3-.4 2.7.2 4 .6 1.3 1.5 2.3 2.7 3 1.2.7 2.6.9 3.9.6z`}}]},{tagName:`clipPath`,attrs:{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,id:`icon-gist`},children:[{tagName:`path`,attrs:{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M10.57 1.14l3.28 3.3.15.36v9.7l-.5.5h-11l-.5-.5v-13l.5-.5h7.72l.35.14zM10 5h3l-3-3v3zM3 2v12h10V6H9.5L9 5.5V2H3zm2.062 7.533l1.817-1.828L6.17 7 4 9.179v.707l2.171 2.174.707-.707-1.816-1.82zM8.8 7.714l.7-.709 2.189 2.175v.709L9.5 12.062l-.705-.709 1.831-1.82L8.8 7.714z`}}]}]}]},Fl={multiple:`#f6b26b7f`,single:`#6fa8dc7f`,assert:`#8acae480`,action:`#dc6f6f7f`},Il=class{},Ll=class{constructor(e,t){this._hoveredModel=null,this._hoveredElement=null,this._recorder=e,this._assertVisibility=t}cursor(){return`pointer`}uninstall(){this._hoveredModel=null,this._hoveredElement=null}onClick(e){q(e),e.button===0&&this._hoveredModel?.selector&&this._commit(this._hoveredModel.selector,this._hoveredModel)}onPointerDown(e){q(e)}onPointerUp(e){q(e)}onMouseDown(e){q(e)}onMouseUp(e){q(e)}onMouseMove(e){q(e);let t=this._recorder.deepEventTarget(e);if(t.isConnected||(t=null),this._hoveredElement===t)return;this._hoveredElement=t;let n=null;if(this._hoveredElement){let e=this._recorder.injectedScript.generateSelector(this._hoveredElement,{testIdAttributeName:this._recorder.state.testIdAttributeName,multiple:!1});n={selector:e.selector,elements:e.elements,tooltipText:this._recorder.injectedScript.utils.asLocator(this._recorder.state.language,e.selector),color:this._assertVisibility?Fl.assert:Fl.single}}this._hoveredModel?.selector!==n?.selector&&(this._hoveredModel=n,this._recorder.updateHighlight(n,!0))}onMouseEnter(e){q(e)}onMouseLeave(e){q(e);let t=this._recorder.injectedScript.window;t.top!==t&&this._recorder.deepEventTarget(e).nodeType===Node.DOCUMENT_NODE&&this._reset(!0)}onKeyDown(e){q(e),e.key===`Escape`&&this._assertVisibility&&this._recorder.setMode(`recording`)}onKeyUp(e){q(e)}onScroll(e){this._reset(!1)}_commit(e,t){this._assertVisibility?(this._recorder.recordAction({name:`assertVisible`,selector:e,signals:[]}),this._recorder.setMode(`recording`),this._recorder.overlay?.flashToolSucceeded(`assertingVisibility`)):this._recorder.elementPicked(e,t)}_reset(e){this._hoveredElement=null,this._hoveredModel=null,this._recorder.updateHighlight(null,e)}},Rl=class{constructor(e){this._hoveredModel=null,this._hoveredElement=null,this._activeModel=null,this._expectProgrammaticKeyUp=!1,this._observer=null,this._recorder=e,this._performingActions=new Set,this._dialog=new H(e)}cursor(){return`pointer`}_installObserverIfNeeded(){this._observer||this._recorder.injectedScript.document?.body&&(this._observer=new MutationObserver(e=>{if(this._hoveredElement)for(let t of e)for(let e of t.removedNodes)(e===this._hoveredElement||e.contains(this._hoveredElement))&&this._resetHoveredModel()}),this._observer.observe(this._recorder.injectedScript.document.body,{childList:!0,subtree:!0}))}uninstall(){this._observer?.disconnect(),this._observer=null,this._hoveredModel=null,this._hoveredElement=null,this._activeModel=null,this._expectProgrammaticKeyUp=!1,this._dialog.close()}onClick(e){if(this._dialog.isShowing()){e.button===2&&e.type===`auxclick`&&q(e);return}if(Wl(this._hoveredElement)||this._shouldIgnoreMouseEvent(e)||this._actionInProgress(e)||this._consumedDueToNoModel(e,this._hoveredModel))return;if(e.button===2&&e.type===`auxclick`){this._showActionListDialog(this._hoveredModel,e);return}let t=Ul(this._recorder.deepEventTarget(e));if(t&&e.detail===1){this._performAction({name:t.checked?`check`:`uncheck`,selector:this._hoveredModel.selector,signals:[]});return}this._cancelPendingClickAction(),e.detail===1&&(this._pendingClickAction={action:{name:`click`,selector:this._hoveredModel.selector,position:K(e),signals:[],button:G(e),modifiers:W(e),clickCount:e.detail},timeout:this._recorder.injectedScript.utils.builtins.setTimeout(()=>this._commitPendingClickAction(),200)})}onDblClick(e){this._dialog.isShowing()||Wl(this._hoveredElement)||this._shouldIgnoreMouseEvent(e)||this._actionInProgress(e)||this._consumedDueToNoModel(e,this._hoveredModel)||(this._cancelPendingClickAction(),this._performAction({name:`click`,selector:this._hoveredModel.selector,position:K(e),signals:[],button:G(e),modifiers:W(e),clickCount:e.detail}))}_commitPendingClickAction(){this._pendingClickAction&&this._performAction(this._pendingClickAction.action),this._cancelPendingClickAction()}_cancelPendingClickAction(){this._pendingClickAction&&this._recorder.injectedScript.utils.builtins.clearTimeout(this._pendingClickAction.timeout),this._pendingClickAction=void 0}onContextMenu(e){if(this._dialog.isShowing()){q(e);return}this._shouldIgnoreMouseEvent(e)||this._actionInProgress(e)||this._consumedDueToNoModel(e,this._hoveredModel)||this._showActionListDialog(this._hoveredModel,e)}onPointerDown(e){this._dialog.isShowing()||this._shouldIgnoreMouseEvent(e)||this._consumeWhenAboutToPerform(e)}onPointerUp(e){this._dialog.isShowing()||this._shouldIgnoreMouseEvent(e)||this._consumeWhenAboutToPerform(e)}onMouseDown(e){this._dialog.isShowing()||this._shouldIgnoreMouseEvent(e)||(this._consumeWhenAboutToPerform(e),this._activeModel=this._hoveredModel)}onMouseUp(e){this._dialog.isShowing()||this._shouldIgnoreMouseEvent(e)||this._consumeWhenAboutToPerform(e)}onMouseMove(e){if(this._dialog.isShowing())return;let t=this._recorder.deepEventTarget(e);this._hoveredElement!==t&&(this._hoveredElement=t,this._updateModelForHoveredElement())}onMouseLeave(e){if(this._dialog.isShowing())return;let t=this._recorder.injectedScript.window;t.top!==t&&this._recorder.deepEventTarget(e).nodeType===Node.DOCUMENT_NODE&&(this._hoveredElement=null,this._updateModelForHoveredElement())}onFocus(e){this._dialog.isShowing()||this._onFocus(!0)}onInput(e){if(this._dialog.isShowing())return;let t=this._recorder.deepEventTarget(e);if(t.nodeName===`INPUT`&&t.type.toLowerCase()===`file`){let e=t===this._hoveredElement?this._hoveredModel.selector:this._recorder.injectedScript.generateSelector(t,{testIdAttributeName:this._recorder.state.testIdAttributeName}).selector;this._recordAction({name:`setInputFiles`,selector:e,signals:[],files:[...t.files||[]].map(e=>e.name)});return}if(Wl(t)){this._recordAction({name:`fill`,selector:this._hoveredModel.selector,signals:[],text:t.value});return}if([`INPUT`,`TEXTAREA`].includes(t.nodeName)||t.isContentEditable){if(t.nodeName===`INPUT`&&[`checkbox`,`radio`].includes(t.type.toLowerCase())||this._consumedDueWrongTarget(e))return;this._recordAction({name:`fill`,selector:this._activeModel.selector,signals:[],text:t.isContentEditable?t.innerText:t.value})}if(t.nodeName===`SELECT`){let e=t;this._recordAction({name:`select`,selector:this._activeModel.selector,options:[...e.selectedOptions].map(e=>e.value),signals:[]})}}onKeyDown(e){if(!this._dialog.isShowing()&&this._shouldGenerateKeyPressFor(e)){if(this._actionInProgress(e)){this._expectProgrammaticKeyUp=!0;return}if(!this._consumedDueWrongTarget(e)){if(e.key===` `){let t=Ul(this._recorder.deepEventTarget(e));if(t&&e.detail===0){this._performAction({name:t.checked?`uncheck`:`check`,selector:this._activeModel.selector,signals:[]});return}}this._performAction({name:`press`,selector:this._activeModel.selector,signals:[],key:e.key,modifiers:W(e)})}}}onKeyUp(e){if(!this._dialog.isShowing()&&this._shouldGenerateKeyPressFor(e)){if(!this._expectProgrammaticKeyUp){q(e);return}this._expectProgrammaticKeyUp=!1}}onScroll(e){this._dialog.isShowing()||this._resetHoveredModel()}_showActionListDialog(e,t){q(t);let n=K(t),r=[{title:`Click`,cb:()=>this._performAction({name:`click`,selector:e.selector,position:n,signals:[],button:`left`,modifiers:0,clickCount:0})},{title:`Right click`,cb:()=>this._performAction({name:`click`,selector:e.selector,position:n,signals:[],button:`right`,modifiers:0,clickCount:0})},{title:`Double click`,cb:()=>this._performAction({name:`click`,selector:e.selector,position:n,signals:[],button:`left`,modifiers:0,clickCount:2})},{title:`Hover`,cb:()=>this._performAction({name:`hover`,selector:e.selector,position:n,signals:[]})},{title:`Pick locator`,cb:()=>this._recorder.elementPicked(e.selector,e)}],i=this._recorder.document.createElement(`x-pw-action-list`);i.setAttribute(`role`,`list`),i.setAttribute(`aria-label`,`Choose action`);for(let e of r){let t=this._recorder.document.createElement(`x-pw-action-item`);t.setAttribute(`role`,`listitem`),t.textContent=e.title,t.setAttribute(`aria-label`,e.title),t.addEventListener(`click`,()=>{this._dialog.close(),e.cb()}),i.appendChild(t)}let a=this._dialog.show({label:`Choose action`,body:i,autosize:!0}),o=this._recorder.highlight.firstTooltipBox()||e.elements[0].getBoundingClientRect(),s=this._recorder.highlight.tooltipPosition(o,a);this._dialog.moveTo(s.anchorTop,s.anchorLeft)}_resetHoveredModel(){this._hoveredModel=null,this._hoveredElement=null,this._updateHighlight(!1)}_onFocus(e){let t=U(this._recorder.document);if(e&&t===this._recorder.document.body)return;let n=t?this._recorder.injectedScript.generateSelector(t,{testIdAttributeName:this._recorder.state.testIdAttributeName}):null;this._activeModel=n&&n.selector?{...n,color:Fl.action}:null,e&&(this._hoveredElement=t,this._updateModelForHoveredElement())}_shouldIgnoreMouseEvent(e){return Kl(this._recorder.deepEventTarget(e))}_actionInProgress(e){let t=e instanceof KeyboardEvent,n=e instanceof MouseEvent||e instanceof PointerEvent;for(let r of this._performingActions)if(t&&r.name===`press`&&e.key===r.key||n&&(r.name===`click`||r.name===`hover`||r.name===`check`||r.name===`uncheck`))return!0;return q(e),!1}_consumedDueToNoModel(e,t){return t?!1:(q(e),!0)}_consumedDueWrongTarget(e){return this._activeModel&&this._activeModel.elements[0]===this._recorder.deepEventTarget(e)?!1:(q(e),!0)}_consumeWhenAboutToPerform(e){this._performingActions.size||q(e)}_reportPerformedActionForTests(){this._recorder.injectedScript.isUnderTest&&console.error(`Action performed for test: `+JSON.stringify({hovered:this._hoveredModel?this._hoveredModel.selector:null,active:this._activeModel?this._activeModel.selector:null}))}_recordAction(e){this._recorder.recordAction(e).then(()=>this._reportPerformedActionForTests())}_performAction(e){this._recorder.updateHighlight(null,!1),this._performingActions.add(e),this._recorder.performAction(e).finally(()=>{this._performingActions.delete(e),this._onFocus(!1)}).then(()=>this._reportPerformedActionForTests())}_shouldGenerateKeyPressFor(e){if(typeof e.key!=`string`||e.key===`Enter`&&(this._recorder.deepEventTarget(e).nodeName===`TEXTAREA`||this._recorder.deepEventTarget(e).isContentEditable)||[`Backspace`,`Delete`,`AltGraph`].includes(e.key)||e.key===`@`&&e.code===`KeyL`)return!1;if(navigator.platform.includes(`Mac`)){if(e.key===`v`&&e.metaKey)return!1}else if(e.key===`v`&&e.ctrlKey||e.key===`Insert`&&e.shiftKey)return!1;if([`Shift`,`Control`,`Meta`,`Alt`,`Process`].includes(e.key))return!1;let t=e.ctrlKey||e.altKey||e.metaKey;return e.key.length===1&&!t?!!Ul(this._recorder.deepEventTarget(e)):!0}_updateModelForHoveredElement(){if(this._installObserverIfNeeded(),this._performingActions.size)return;if(!this._hoveredElement||!this._hoveredElement.isConnected){this._hoveredModel=null,this._hoveredElement=null,this._updateHighlight(!0);return}let{selector:e,elements:t}=this._recorder.injectedScript.generateSelector(this._hoveredElement,{testIdAttributeName:this._recorder.state.testIdAttributeName});this._hoveredModel&&this._hoveredModel.selector===e||(this._hoveredModel=e?{selector:e,elements:t,color:Fl.action}:null,this._updateHighlight(!0))}_updateHighlight(e){this._recorder.updateHighlight(this._hoveredModel,e)}},zl=class{constructor(e){this._recorder=e}install(){this._recorder.highlight.uninstall()}uninstall(){this._recorder.highlight.install()}onClick(e){let t=this._recorder.deepEventTarget(e);if(Wl(t)||e.button===2&&e.type===`auxclick`||this._shouldIgnoreMouseEvent(e))return;let n=Ul(t),{ariaSnapshot:r,selector:i,ref:a}=this._ariaSnapshot(t);if(n&&e.detail===1){this._recorder.recordAction({name:n.checked?`check`:`uncheck`,selector:i,ref:a,signals:[],ariaSnapshot:r});return}this._recorder.recordAction({name:`click`,selector:i,ref:a,ariaSnapshot:r,position:K(e),signals:[],button:G(e),modifiers:W(e),clickCount:e.detail})}onContextMenu(e){let t=this._recorder.deepEventTarget(e),{ariaSnapshot:n,selector:r,ref:i}=this._ariaSnapshot(t);this._recorder.recordAction({name:`click`,selector:r,ref:i,ariaSnapshot:n,position:K(e),signals:[],button:`right`,modifiers:W(e),clickCount:1})}onInput(e){let t=this._recorder.deepEventTarget(e),{ariaSnapshot:n,selector:r,ref:i}=this._ariaSnapshot(t);if(Wl(t)){this._recorder.recordAction({name:`fill`,selector:r,ref:i,ariaSnapshot:n,signals:[],text:t.value});return}if([`INPUT`,`TEXTAREA`].includes(t.nodeName)||t.isContentEditable){if(t.nodeName===`INPUT`&&[`checkbox`,`radio`].includes(t.type.toLowerCase()))return;this._recorder.recordAction({name:`fill`,ref:i,selector:r,ariaSnapshot:n,signals:[],text:t.isContentEditable?t.innerText:t.value});return}if(t.nodeName===`SELECT`){let e=t;this._recorder.recordAction({name:`select`,selector:r,ref:i,ariaSnapshot:n,options:[...e.selectedOptions].map(e=>e.value),signals:[]});return}}onKeyDown(e){if(!this._shouldGenerateKeyPressFor(e))return;let t=this._recorder.deepEventTarget(e),{ariaSnapshot:n,selector:r,ref:i}=this._ariaSnapshot(t);if(e.key===` `){let a=Ul(t);if(a&&e.detail===0){this._recorder.recordAction({name:a.checked?`uncheck`:`check`,selector:r,ref:i,ariaSnapshot:n,signals:[]});return}}this._recorder.recordAction({name:`press`,selector:r,ref:i,ariaSnapshot:n,signals:[],key:e.key,modifiers:W(e)})}_shouldIgnoreMouseEvent(e){return Kl(this._recorder.deepEventTarget(e))}_shouldGenerateKeyPressFor(e){if(typeof e.key!=`string`||e.key===`Enter`&&(this._recorder.deepEventTarget(e).nodeName===`TEXTAREA`||this._recorder.deepEventTarget(e).isContentEditable)||[`Backspace`,`Delete`,`AltGraph`].includes(e.key)||e.key===`@`&&e.code===`KeyL`)return!1;if(navigator.platform.includes(`Mac`)){if(e.key===`v`&&e.metaKey)return!1}else if(e.key===`v`&&e.ctrlKey||e.key===`Insert`&&e.shiftKey)return!1;if([`Shift`,`Control`,`Meta`,`Alt`,`Process`].includes(e.key))return!1;let t=e.ctrlKey||e.altKey||e.metaKey;return e.key.length===1&&!t?!this._isEditable(this._recorder.deepEventTarget(e)):!0}_isEditable(e){return!!(e.nodeName===`TEXTAREA`||e.nodeName===`INPUT`||e.isContentEditable)}_ariaSnapshot(e){let{ariaSnapshot:t,refs:n}=this._recorder.injectedScript.ariaSnapshotForRecorder(),r=e?n.get(e):void 0;return{ariaSnapshot:t,selector:(e?this._recorder.injectedScript.generateSelector(e,{testIdAttributeName:this._recorder.state.testIdAttributeName}):void 0)?.selector,ref:r}}},Bl=class{constructor(e,t){this._hoverHighlight=null,this._action=null,this._recorder=e,this._textCache=new Map,this._kind=t,this._dialog=new H(e)}cursor(){return`pointer`}uninstall(){this._dialog.close(),this._hoverHighlight=null}onClick(e){q(e),this._kind===`value`?this._commitAssertValue():this._dialog.isShowing()||this._showDialog()}onMouseDown(e){let t=this._recorder.deepEventTarget(e);this._elementHasValue(t)&&e.preventDefault()}onPointerUp(e){let t=this._hoverHighlight?.elements[0];this._kind===`value`&&t&&(t.nodeName===`INPUT`||t.nodeName===`SELECT`)&&t.disabled&&this._commitAssertValue()}onMouseMove(e){if(this._dialog.isShowing())return;let t=this._recorder.deepEventTarget(e);if(this._hoverHighlight?.elements[0]!==t){if(this._kind===`text`||this._kind===`snapshot`)this._hoverHighlight=this._recorder.injectedScript.utils.elementText(this._textCache,t).full?{elements:[t],selector:``,color:Fl.assert}:null;else if(this._elementHasValue(t)){let e=this._recorder.injectedScript.generateSelector(t,{testIdAttributeName:this._recorder.state.testIdAttributeName});this._hoverHighlight={selector:e.selector,elements:e.elements,color:Fl.assert}}else this._hoverHighlight=null;this._recorder.updateHighlight(this._hoverHighlight,!0)}}onKeyDown(e){e.key===`Escape`&&this._recorder.setMode(`recording`),q(e)}onScroll(e){this._recorder.updateHighlight(this._hoverHighlight,!1)}_elementHasValue(e){return e.nodeName===`TEXTAREA`||e.nodeName===`SELECT`||e.nodeName===`INPUT`&&![`button`,`image`,`reset`,`submit`].includes(e.type)}_generateAction(){this._textCache.clear();let e=this._hoverHighlight?.elements[0];if(!e)return null;if(this._kind===`value`){if(!this._elementHasValue(e))return null;let{selector:t}=this._recorder.injectedScript.generateSelector(e,{testIdAttributeName:this._recorder.state.testIdAttributeName});return e.nodeName===`INPUT`&&[`checkbox`,`radio`].includes(e.type.toLowerCase())?{name:`assertChecked`,selector:t,signals:[],checked:!e.checked}:{name:`assertValue`,selector:t,signals:[],value:e.value}}else if(this._kind===`snapshot`){let t=this._recorder.injectedScript.generateSelector(e,{testIdAttributeName:this._recorder.state.testIdAttributeName,forTextExpect:!0});return this._hoverHighlight={selector:t.selector,elements:t.elements,color:Fl.assert},this._recorder.updateHighlight(this._hoverHighlight,!0),{name:`assertSnapshot`,selector:this._hoverHighlight.selector,signals:[],ariaSnapshot:this._recorder.injectedScript.ariaSnapshot(e,{mode:`codegen`})}}else{let t=this._recorder.injectedScript.generateSelector(e,{testIdAttributeName:this._recorder.state.testIdAttributeName,forTextExpect:!0});return this._hoverHighlight={selector:t.selector,elements:t.elements,color:Fl.assert},this._recorder.updateHighlight(this._hoverHighlight,!0),{name:`assertText`,selector:this._hoverHighlight.selector,signals:[],text:this._recorder.injectedScript.utils.elementText(this._textCache,e).normalized,substring:!0}}}_renderValue(e){return e?.name===`assertText`?this._recorder.injectedScript.utils.normalizeWhiteSpace(e.text):e?.name===`assertChecked`?String(e.checked):e?.name===`assertValue`?e.value:e?.name===`assertSnapshot`?e.ariaSnapshot:``}_commit(){!this._action||!this._dialog.isShowing()||(this._dialog.close(),this._recorder.recordAction(this._action),this._recorder.setMode(`recording`))}_showDialog(){this._hoverHighlight?.elements[0]&&(this._action=this._generateAction(),this._action?.name===`assertText`?this._showTextDialog(this._action):this._action?.name===`assertSnapshot`&&(this._recorder.recordAction(this._action),this._recorder.setMode(`recording`),this._recorder.overlay?.flashToolSucceeded(`assertingSnapshot`)))}_showTextDialog(e){let t=this._recorder.document.createElement(`textarea`);t.setAttribute(`spellcheck`,`false`),t.value=this._renderValue(e),t.classList.add(`text-editor`),t.addEventListener(`input`,()=>{let n=this._recorder.injectedScript.utils.normalizeWhiteSpace(t.value),r=this._hoverHighlight?.elements[0];if(!r)return;e.text=n;let i=this._recorder.injectedScript.utils.elementText(this._textCache,r).normalized,a=n&&i.includes(n);t.classList.toggle(`does-not-match`,!a)});let n=this._dialog.show({label:`Assert that element contains text`,body:t,onCommit:()=>this._commit()}),r=this._recorder.highlight.tooltipPosition(this._recorder.highlight.firstBox(),n);this._dialog.moveTo(r.anchorTop,r.anchorLeft),t.focus()}_commitAssertValue(){if(this._kind!==`value`)return;let e=this._generateAction();e&&(this._recorder.recordAction(e),this._recorder.setMode(`recording`),this._recorder.overlay?.flashToolSucceeded(`assertingValue`))}},Vl=class{constructor(e){this._listeners=[],this._offsetX=0,this._measure={width:0,height:0},this._recorder=e;let t=this._recorder.document;this._overlayElement=t.createElement(`x-pw-overlay`);let n=t.createElement(`x-pw-tools-list`);this._overlayElement.appendChild(n),this._dragHandle=t.createElement(`x-pw-tool-gripper`),this._dragHandle.appendChild(t.createElement(`x-div`)),n.appendChild(this._dragHandle),this._recordToggle=this._recorder.document.createElement(`x-pw-tool-item`),this._recordToggle.title=`Record`,this._recordToggle.classList.add(`record`),this._recordToggle.appendChild(this._recorder.document.createElement(`x-div`)),n.appendChild(this._recordToggle),this._pickLocatorToggle=this._recorder.document.createElement(`x-pw-tool-item`),this._pickLocatorToggle.title=`Pick locator`,this._pickLocatorToggle.classList.add(`pick-locator`),this._pickLocatorToggle.appendChild(this._recorder.document.createElement(`x-div`)),n.appendChild(this._pickLocatorToggle),this._assertVisibilityToggle=this._recorder.document.createElement(`x-pw-tool-item`),this._assertVisibilityToggle.title=`Assert visibility`,this._assertVisibilityToggle.classList.add(`visibility`),this._assertVisibilityToggle.appendChild(this._recorder.document.createElement(`x-div`)),n.appendChild(this._assertVisibilityToggle),this._assertTextToggle=this._recorder.document.createElement(`x-pw-tool-item`),this._assertTextToggle.title=`Assert text`,this._assertTextToggle.classList.add(`text`),this._assertTextToggle.appendChild(this._recorder.document.createElement(`x-div`)),n.appendChild(this._assertTextToggle),this._assertValuesToggle=this._recorder.document.createElement(`x-pw-tool-item`),this._assertValuesToggle.title=`Assert value`,this._assertValuesToggle.classList.add(`value`),this._assertValuesToggle.appendChild(this._recorder.document.createElement(`x-div`)),n.appendChild(this._assertValuesToggle),this._assertSnapshotToggle=this._recorder.document.createElement(`x-pw-tool-item`),this._assertSnapshotToggle.title=`Assert snapshot`,this._assertSnapshotToggle.classList.add(`snapshot`),this._assertSnapshotToggle.appendChild(this._recorder.document.createElement(`x-div`)),n.appendChild(this._assertSnapshotToggle),this._updateVisualPosition(),this._refreshListeners()}_refreshListeners(){ql(this._listeners),this._listeners=[J(this._dragHandle,`mousedown`,e=>{this._dragState={offsetX:this._offsetX,dragStart:{x:e.clientX,y:0}}}),J(this._recordToggle,`click`,()=>{this._recordToggle.classList.contains(`disabled`)||this._recorder.setMode(this._recorder.state.mode===`none`||this._recorder.state.mode===`standby`||this._recorder.state.mode===`inspecting`?`recording`:`standby`)}),J(this._pickLocatorToggle,`click`,()=>{this._pickLocatorToggle.classList.contains(`disabled`)||this._recorder.setMode({inspecting:`standby`,none:`inspecting`,standby:`inspecting`,recording:`recording-inspecting`,"recording-inspecting":`recording`,assertingText:`recording-inspecting`,assertingVisibility:`recording-inspecting`,assertingValue:`recording-inspecting`,assertingSnapshot:`recording-inspecting`}[this._recorder.state.mode])}),J(this._assertVisibilityToggle,`click`,()=>{this._assertVisibilityToggle.classList.contains(`disabled`)||this._recorder.setMode(this._recorder.state.mode===`assertingVisibility`?`recording`:`assertingVisibility`)}),J(this._assertTextToggle,`click`,()=>{this._assertTextToggle.classList.contains(`disabled`)||this._recorder.setMode(this._recorder.state.mode===`assertingText`?`recording`:`assertingText`)}),J(this._assertValuesToggle,`click`,()=>{this._assertValuesToggle.classList.contains(`disabled`)||this._recorder.setMode(this._recorder.state.mode===`assertingValue`?`recording`:`assertingValue`)}),J(this._assertSnapshotToggle,`click`,()=>{this._assertSnapshotToggle.classList.contains(`disabled`)||this._recorder.setMode(this._recorder.state.mode===`assertingSnapshot`?`recording`:`assertingSnapshot`)})]}install(){this._recorder.highlight.appendChild(this._overlayElement),this._refreshListeners(),this._updateVisualPosition()}contains(e){return this._recorder.injectedScript.utils.isInsideScope(this._overlayElement,e)}setUIState(e){let t=e.mode===`recording`||e.mode===`assertingText`||e.mode===`assertingVisibility`||e.mode===`assertingValue`||e.mode===`assertingSnapshot`||e.mode===`recording-inspecting`;this._recordToggle.classList.toggle(`toggled`,t),this._recordToggle.title=t?`Stop Recording`:`Start Recording`,this._pickLocatorToggle.classList.toggle(`toggled`,e.mode===`inspecting`||e.mode===`recording-inspecting`),this._assertVisibilityToggle.classList.toggle(`toggled`,e.mode===`assertingVisibility`),this._assertVisibilityToggle.classList.toggle(`disabled`,e.mode===`none`||e.mode===`standby`||e.mode===`inspecting`),this._assertTextToggle.classList.toggle(`toggled`,e.mode===`assertingText`),this._assertTextToggle.classList.toggle(`disabled`,e.mode===`none`||e.mode===`standby`||e.mode===`inspecting`),this._assertValuesToggle.classList.toggle(`toggled`,e.mode===`assertingValue`),this._assertValuesToggle.classList.toggle(`disabled`,e.mode===`none`||e.mode===`standby`||e.mode===`inspecting`),this._assertSnapshotToggle.classList.toggle(`toggled`,e.mode===`assertingSnapshot`),this._assertSnapshotToggle.classList.toggle(`disabled`,e.mode===`none`||e.mode===`standby`||e.mode===`inspecting`),this._offsetX!==e.overlay.offsetX&&(this._offsetX=e.overlay.offsetX,this._updateVisualPosition()),e.mode===`none`?this._hideOverlay():this._showOverlay()}flashToolSucceeded(e){let t;t=e===`assertingVisibility`?this._assertVisibilityToggle:e===`assertingSnapshot`?this._assertSnapshotToggle:this._assertValuesToggle,t.classList.add(`succeeded`),this._recorder.injectedScript.utils.builtins.setTimeout(()=>t.classList.remove(`succeeded`),2e3)}_hideOverlay(){this._overlayElement.setAttribute(`hidden`,`true`)}_showOverlay(){this._overlayElement.hasAttribute(`hidden`)&&(this._overlayElement.removeAttribute(`hidden`),this._updateVisualPosition())}_updateVisualPosition(){this._measure=this._overlayElement.getBoundingClientRect(),this._overlayElement.style.left=(this._recorder.injectedScript.window.innerWidth-this._measure.width)/2+this._offsetX+`px`}onMouseMove(e){if(!e.buttons)return this._dragState=void 0,!1;if(this._dragState){this._offsetX=this._dragState.offsetX+e.clientX-this._dragState.dragStart.x;let t=(this._recorder.injectedScript.window.innerWidth-this._measure.width)/2-10;return this._offsetX=Math.max(-t,Math.min(t,this._offsetX)),this._updateVisualPosition(),this._recorder.setOverlayState({offsetX:this._offsetX}),q(e),!0}return!1}onMouseUp(e){return this._dragState?(q(e),!0):!1}onClick(e){return this._dragState?(this._dragState=void 0,q(e),!0):!1}onDblClick(e){return!1}},Hl=class{constructor(e,t){this._listeners=[],this._lastHighlightedSelector=void 0,this._lastHighlightedAriaTemplateJSON=`undefined`,this.state={mode:`none`,testIdAttributeName:`data-testid`,language:`javascript`,overlay:{offsetX:0}},this._delegate={},this.document=e.document,this.injectedScript=e,this.highlight=e.createHighlight(),this._tools={none:new Il,standby:new Il,inspecting:new Ll(this,!1),recording:t?.recorderMode===`api`?new zl(this):new Rl(this),"recording-inspecting":new Ll(this,!1),assertingText:new Bl(this,`text`),assertingVisibility:new Ll(this,!0),assertingValue:new Bl(this,`value`),assertingSnapshot:new Bl(this,`snapshot`)},this._currentTool=this._tools.none,this._currentTool.install?.(),e.window.top===e.window&&!t?.hideToolbar&&(this.overlay=new Vl(this),this.overlay.setUIState(this.state)),this._stylesheet=new e.window.CSSStyleSheet,this._stylesheet.replaceSync(`
64
+ body[data-pw-cursor=pointer] *, body[data-pw-cursor=pointer] *::after { cursor: pointer !important; }
65
+ body[data-pw-cursor=text] *, body[data-pw-cursor=text] *::after { cursor: text !important; }
66
+ `),this.installListeners(),e.utils.cacheNormalizedWhitespaces(),e.isUnderTest&&console.error(`Recorder script ready for test`),e.consoleApi.install()}installListeners(){ql(this._listeners),this._listeners=[J(this.document,`click`,e=>this._onClick(e),!0),J(this.document,`auxclick`,e=>this._onClick(e),!0),J(this.document,`dblclick`,e=>this._onDblClick(e),!0),J(this.document,`contextmenu`,e=>this._onContextMenu(e),!0),J(this.document,`dragstart`,e=>this._onDragStart(e),!0),J(this.document,`input`,e=>this._onInput(e),!0),J(this.document,`keydown`,e=>this._onKeyDown(e),!0),J(this.document,`keyup`,e=>this._onKeyUp(e),!0),J(this.document,`pointerdown`,e=>this._onPointerDown(e),!0),J(this.document,`pointerup`,e=>this._onPointerUp(e),!0),J(this.document,`mousedown`,e=>this._onMouseDown(e),!0),J(this.document,`mouseup`,e=>this._onMouseUp(e),!0),J(this.document,`mousemove`,e=>this._onMouseMove(e),!0),J(this.document,`mouseleave`,e=>this._onMouseLeave(e),!0),J(this.document,`mouseenter`,e=>this._onMouseEnter(e),!0),J(this.document,`focus`,e=>this._onFocus(e),!0),J(this.document,`scroll`,e=>this._onScroll(e),!0)],this.highlight.install();let e,t=()=>{this.highlight.install(),e=this.injectedScript.utils.builtins.setTimeout(t,500)};e=this.injectedScript.utils.builtins.setTimeout(t,500),this._listeners.push(()=>this.injectedScript.utils.builtins.clearTimeout(e)),this.highlight.appendChild(Yl(this.document,Pl)),this.overlay?.install(),this._currentTool?.install?.(),this.document.adoptedStyleSheets.push(this._stylesheet)}_switchCurrentTool(){let e=this._tools[this.state.mode];if(e===this._currentTool)return;this._currentTool.uninstall?.(),this.clearHighlight(),this._currentTool=e,this._currentTool.install?.();let t=e.cursor?.();t&&this.injectedScript.document.body?.setAttribute(`data-pw-cursor`,t)}setUIState(e,t){this._delegate=t,e.actionPoint&&this.state.actionPoint&&e.actionPoint.x===this.state.actionPoint.x&&e.actionPoint.y===this.state.actionPoint.y||!e.actionPoint&&!this.state.actionPoint||(e.actionPoint?this.highlight.showActionPoint(e.actionPoint.x,e.actionPoint.y):this.highlight.hideActionPoint()),this.state=e,this.highlight.setLanguage(e.language),this._switchCurrentTool(),this.overlay?.setUIState(e);let n=`noop`;if(e.actionSelector!==this._lastHighlightedSelector){let t=e.actionSelector?Jl(this.injectedScript,e.language,e.actionSelector,this.document):null;n=t?.length?t:`clear`,this._lastHighlightedSelector=t?.length?e.actionSelector:void 0}let r=JSON.stringify(e.ariaTemplate);if(this._lastHighlightedAriaTemplateJSON!==r){let t=e.ariaTemplate?this.injectedScript.getAllElementsMatchingExpectAriaTemplate(this.document,e.ariaTemplate):[];if(t.length){let e=t.length>1?Fl.multiple:Fl.single;n=t.map(t=>({element:t,color:e})),this._lastHighlightedAriaTemplateJSON=r}else this._lastHighlightedSelector||(n=`clear`),this._lastHighlightedAriaTemplateJSON=`undefined`}n===`clear`?this.highlight.clearHighlight():n!==`noop`&&this.highlight.updateHighlight(n)}clearHighlight(){this.updateHighlight(null,!1)}_onClick(e){e.isTrusted&&(this.overlay?.onClick(e)||this._ignoreOverlayEvent(e)||this._currentTool.onClick?.(e))}_onDblClick(e){e.isTrusted&&(this.overlay?.onDblClick(e)||this._ignoreOverlayEvent(e)||this._currentTool.onDblClick?.(e))}_onContextMenu(e){e.isTrusted&&this._currentTool.onContextMenu?.(e)}_onDragStart(e){e.isTrusted&&(this._ignoreOverlayEvent(e)||this._currentTool.onDragStart?.(e))}_onPointerDown(e){e.isTrusted&&(this._ignoreOverlayEvent(e)||this._currentTool.onPointerDown?.(e))}_onPointerUp(e){e.isTrusted&&(this._ignoreOverlayEvent(e)||this._currentTool.onPointerUp?.(e))}_onMouseDown(e){e.isTrusted&&(this._ignoreOverlayEvent(e)||this._currentTool.onMouseDown?.(e))}_onMouseUp(e){e.isTrusted&&(this.overlay?.onMouseUp(e)||this._ignoreOverlayEvent(e)||this._currentTool.onMouseUp?.(e))}_onMouseMove(e){e.isTrusted&&(this.overlay?.onMouseMove(e)||this._ignoreOverlayEvent(e)||this._currentTool.onMouseMove?.(e))}_onMouseEnter(e){e.isTrusted&&(this._ignoreOverlayEvent(e)||this._currentTool.onMouseEnter?.(e))}_onMouseLeave(e){e.isTrusted&&(this._ignoreOverlayEvent(e)||this._currentTool.onMouseLeave?.(e))}_onFocus(e){e.isTrusted&&(this._ignoreOverlayEvent(e)||this._currentTool.onFocus?.(e))}_onScroll(e){e.isTrusted&&(this._lastHighlightedSelector=void 0,this._lastHighlightedAriaTemplateJSON=`undefined`,this.highlight.hideActionPoint(),this._currentTool.onScroll?.(e))}_onInput(e){this._ignoreOverlayEvent(e)||this._currentTool.onInput?.(e)}_onKeyDown(e){e.isTrusted&&(this._ignoreOverlayEvent(e)||this._currentTool.onKeyDown?.(e))}_onKeyUp(e){e.isTrusted&&(this._ignoreOverlayEvent(e)||this._currentTool.onKeyUp?.(e))}updateHighlight(e,t){this._lastHighlightedSelector=void 0,this._lastHighlightedAriaTemplateJSON=`undefined`,this._updateHighlight(e,t)}_updateHighlight(e,t){let n=e?.tooltipText;n===void 0&&e?.selector&&(n=this.injectedScript.utils.asLocator(this.state.language,e.selector)),e?this.highlight.updateHighlight(e.elements.map(t=>({element:t,color:e.color,tooltipText:n}))):this.highlight.clearHighlight(),t&&this._delegate.highlightUpdated?.()}_ignoreOverlayEvent(e){return e.composedPath().some(e=>(e.nodeName||``).toLowerCase()===`x-pw-glass`)}deepEventTarget(e){for(let t of e.composedPath())if(!this.overlay?.contains(t))return t;return e.composedPath()[0]}setMode(e){this._delegate.setMode?.(e)}_captureAutoExpectSnapshot(){let e=this.injectedScript.document.documentElement;return e?this.injectedScript.utils.generateAriaTree(e,{mode:`autoexpect`}):void 0}async performAction(e){let t=this._lastActionAutoexpectSnapshot;if(this._lastActionAutoexpectSnapshot=this._captureAutoExpectSnapshot(),!Xl(e)&&this._lastActionAutoexpectSnapshot){let n=this.injectedScript.utils.findNewElement(t?.root,this._lastActionAutoexpectSnapshot?.root);e.preconditionSelector=n?this.injectedScript.generateSelector(n,{testIdAttributeName:this.state.testIdAttributeName}).selector:void 0,e.preconditionSelector===e.selector&&(e.preconditionSelector=void 0)}await this._delegate.performAction?.(e).catch(()=>{})}async recordAction(e){this._lastActionAutoexpectSnapshot=this._captureAutoExpectSnapshot(),await this._delegate.recordAction?.(e)}setOverlayState(e){this._delegate.setOverlayState?.(e)}elementPicked(e,t){let n=this.injectedScript.ariaSnapshot(t.elements[0],{mode:`default`});this._delegate.elementPicked?.({selector:e,ariaSnapshot:n})}},H=class{constructor(e){this._dialogElement=null,this._recorder=e}isShowing(){return!!this._dialogElement}show(e){let t=this._recorder.document.createElement(`x-pw-tool-item`);t.title=`Accept`,t.classList.add(`accept`),t.appendChild(this._recorder.document.createElement(`x-div`)),t.addEventListener(`click`,()=>e.onCommit?.());let n=this._recorder.document.createElement(`x-pw-tool-item`);n.title=`Close`,n.classList.add(`cancel`),n.appendChild(this._recorder.document.createElement(`x-div`)),n.addEventListener(`click`,()=>{this.close(),e.onCancel?.()}),this._dialogElement=this._recorder.document.createElement(`x-pw-dialog`),e.autosize&&this._dialogElement.classList.add(`autosize`),this._keyboardListener=t=>{if(t.key===`Escape`){this.close(),e.onCancel?.();return}if(e.onCommit&&t.key===`Enter`&&(t.ctrlKey||t.metaKey)){this._dialogElement&&e.onCommit();return}},this._onGlassPaneClickHandler=t=>{this.close(),e.onCancel?.()},this._dialogElement.addEventListener(`click`,e=>e.stopPropagation());let r=this._recorder.document.createElement(`x-pw-tools-list`),i=this._recorder.document.createElement(`label`);i.textContent=e.label,r.appendChild(i),r.appendChild(this._recorder.document.createElement(`x-spacer`)),e.onCommit&&r.appendChild(t),r.appendChild(n),this._dialogElement.appendChild(r);let a=this._recorder.document.createElement(`x-pw-dialog-body`);return a.appendChild(e.body),this._dialogElement.appendChild(a),this._recorder.highlight.appendChild(this._dialogElement),this._recorder.highlight.onGlassPaneClick(this._onGlassPaneClickHandler),this._recorder.document.addEventListener(`keydown`,this._keyboardListener,!0),this._dialogElement}moveTo(e,t){this._dialogElement&&(this._dialogElement.style.top=e+`px`,this._dialogElement.style.left=t+`px`)}close(){this._dialogElement&&=(this._dialogElement.remove(),this._recorder.highlight.offGlassPaneClick(this._onGlassPaneClickHandler),this._recorder.document.removeEventListener(`keydown`,this._keyboardListener),null)}};function U(e){let t=e.activeElement;for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function W(e){return!!e.altKey|(e.ctrlKey?2:0)|(e.metaKey?4:0)|(e.shiftKey?8:0)}function G(e){switch(e.which){case 1:return`left`;case 2:return`middle`;case 3:return`right`}return`left`}function K(e){if(e.target.nodeName===`CANVAS`)return{x:e.offsetX,y:e.offsetY}}function q(e){e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()}function Ul(e){if(!e||e.nodeName!==`INPUT`)return null;let t=e;return[`checkbox`,`radio`].includes(t.type)?t:null}function Wl(e){return!e||e.nodeName!==`INPUT`?!1:e.type.toLowerCase()===`range`}var Gl=new Set([`color`,`date`,`datetime-local`,`file`,`month`,`range`,`time`,`week`]);function Kl(e){let t=e.nodeName;return!!(t===`SELECT`||t===`OPTION`||t===`INPUT`&&Gl.has(e.type))}function J(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function ql(e){for(let t of e)t();e.splice(0,e.length)}function Jl(e,t,n,r){try{let i=e.parseSelector(n),a=e.querySelectorAll(i,r),o=a.length>1?Fl.multiple:Fl.single,s=e.utils.asLocator(t,n);return a.map((e,t)=>({element:e,color:o,tooltipText:s+(a.length>1?` [${t+1} of ${a.length}]`:``)}))}catch{return[]}}function Yl(e,{tagName:t,attrs:n,children:r}){let i=e.createElementNS(`http://www.w3.org/2000/svg`,t);if(n)for(let[e,t]of Object.entries(n))i.setAttribute(e,t);if(r)for(let t of r)i.appendChild(Yl(e,t));return i}function Xl(e){return e.name.startsWith(`assert`)}var Zl=`data:text/html;base64,`+btoa(`<body></body><style>body { color-scheme: light dark; background: light-dark(white, #333) }</style>`);function Ql(e,t){e=e.replace(/AriaRole\s*\.\s*([\w]+)/g,(e,t)=>t.toLowerCase()).replace(/(get_by_role|getByRole)\s*\(\s*(?:["'`])([^'"`]+)['"`]/g,(e,t,n)=>`${t}(${n.toLowerCase()}`);let n=[],r=``;for(let t=0;t<e.length;++t){let i=e[t];if(i!==`"`&&i!==`'`&&i!=="`"&&i!==`/`){r+=i;continue}let a=e[t-1]===`r`||e[t]===`/`;++t;let o=``;for(;t<e.length;){if(e[t]===`\\`){a?(e[t+1]!==i&&(o+=e[t]),++t,o+=e[t]):(++t,e[t]===`n`?o+=`
67
+ `:e[t]===`r`?o+=`\r`:e[t]===`t`?o+=` `:o+=e[t]),++t;continue}if(e[t]!==i){o+=e[t++];continue}break}n.push({quote:i,text:o}),r+=(i===`/`?`r`:``)+`$`+n.length}r=r.toLowerCase().replace(/get_by_alt_text/g,`getbyalttext`).replace(/get_by_test_id/g,`getbytestid`).replace(/get_by_([\w]+)/g,`getby$1`).replace(/has_not_text/g,`hasnottext`).replace(/has_text/g,`hastext`).replace(/has_not/g,`hasnot`).replace(/frame_locator/g,`framelocator`).replace(/content_frame/g,`contentframe`).replace(/[{}\s]/g,``).replace(/new\(\)/g,``).replace(/new[\w]+\.[\w]+options\(\)/g,``).replace(/\.set/g,`,set`).replace(/\.or_\(/g,`or(`).replace(/\.and_\(/g,`and(`).replace(/:/g,`=`).replace(/,re\.ignorecase/g,`i`).replace(/,pattern.case_insensitive/g,`i`).replace(/,regexoptions.ignorecase/g,`i`).replace(/re.compile\(([^)]+)\)/g,`$1`).replace(/pattern.compile\(([^)]+)\)/g,`r$1`).replace(/newregex\(([^)]+)\)/g,`r$1`).replace(/string=/g,`=`).replace(/regex=/g,`=`).replace(/,,/g,`,`).replace(/,\)/g,`)`);let i=n.map(e=>e.quote).filter(e=>`'"\``.includes(e))[0];return{selector:tu(r,n,t),preferredQuote:i}}function $l(e){return[...e.matchAll(/\$\d+/g)].length}function eu(e,t){return e.replace(/\$(\d+)/g,(e,n)=>`$${n-t}`)}function tu(e,t,n){for(;;){let r=e.match(/filter\(,?(has=|hasnot=|sethas\(|sethasnot\()/);if(!r)break;let i=r.index+r[0].length,a=0,o=i;for(;o<e.length&&(e[o]===`(`?a++:e[o]===`)`&&a--,!(a<0));o++);let s=e.substring(0,i),c=0;[`sethas(`,`sethasnot(`].includes(r[1])&&(c=1,s=s.replace(/sethas\($/,`has=`).replace(/sethasnot\($/,`hasnot=`));let l=$l(e.substring(0,i)),u=eu(e.substring(i,o),l),d=$l(u),f=t.slice(l,l+d),p=JSON.stringify(tu(u,f,n));e=s.replace(/=$/,`2=`)+`$${l+1}`+eu(e.substring(o+c),d-1);let m=t.slice(0,l),h=t.slice(l+d);t=m.concat([{quote:`"`,text:p}]).concat(h)}e=e.replace(/\,set([\w]+)\(([^)]+)\)/g,(e,t,n)=>`,`+t.toLowerCase()+`=`+n.toLowerCase()).replace(/framelocator\(([^)]+)\)/g,`$1.internal:control=enter-frame`).replace(/contentframe(\(\))?/g,`internal:control=enter-frame`).replace(/locator\(([^)]+),hastext=([^),]+)\)/g,`locator($1).internal:has-text=$2`).replace(/locator\(([^)]+),hasnottext=([^),]+)\)/g,`locator($1).internal:has-not-text=$2`).replace(/locator\(([^)]+),hastext=([^),]+)\)/g,`locator($1).internal:has-text=$2`).replace(/locator\(([^)]+)\)/g,`$1`).replace(/getbyrole\(([^)]+)\)/g,`internal:role=$1`).replace(/getbytext\(([^)]+)\)/g,`internal:text=$1`).replace(/getbylabel\(([^)]+)\)/g,`internal:label=$1`).replace(/getbytestid\(([^)]+)\)/g,`internal:testid=[${oa(n)}=$1]`).replace(/getby(placeholder|alt|title)(?:text)?\(([^)]+)\)/g,`internal:attr=[$1=$2]`).replace(/first(\(\))?/g,`nth=0`).replace(/last(\(\))?/g,`nth=-1`).replace(/nth\(([^)]+)\)/g,`nth=$1`).replace(/filter\(,?visible=true\)/g,`visible=true`).replace(/filter\(,?visible=false\)/g,`visible=false`).replace(/filter\(,?hastext=([^)]+)\)/g,`internal:has-text=$1`).replace(/filter\(,?hasnottext=([^)]+)\)/g,`internal:has-not-text=$1`).replace(/filter\(,?has2=([^)]+)\)/g,`internal:has=$1`).replace(/filter\(,?hasnot2=([^)]+)\)/g,`internal:has-not=$1`).replace(/,exact=false/g,``).replace(/(,name=\$\d+)(,description=\$\d+),exact=true/g,`$1s$2s`).replace(/,exact=true/g,`s`).replace(/,includehidden=/g,`,include-hidden=`).replace(/\,/g,`][`);let r=e.split(`.`);for(let e=0;e<r.length-1;e++)if(r[e]===`internal:control=enter-frame`&&r[e+1].startsWith(`nth=`)){let[t]=r.splice(e,1);r.splice(e+1,0,t)}return r.map(e=>!e.startsWith(`internal:`)||e===`internal:control`?e.replace(/\$(\d+)/g,(e,n)=>t[n-1].text):(e=e.includes(`[`)?e.replace(/\]/,``)+`]`:e,e=e.replace(/(?:r)\$(\d+)(i)?/g,(n,r,a)=>{let o=t[r-1];return e.startsWith(`internal:attr`)||e.startsWith(`internal:testid`)||e.startsWith(`internal:role`)?u(new RegExp(o.text),!1)+(a||``):i(new RegExp(o.text,a),!1)}).replace(/\$(\d+)(i|s)?/g,(n,r,a)=>{let o=t[r-1];return e.startsWith(`internal:has=`)||e.startsWith(`internal:has-not=`)?o.text:e.startsWith(`internal:testid`)?u(o.text,!0):e.startsWith(`internal:attr`)||e.startsWith(`internal:role`)?u(o.text,a===`s`):i(o.text,a===`s`)}),e)).join(` >> `)}function nu(e,t,n=`data-testid`){try{return ru(e,t,n)}catch{return``}}function ru(e,t,n=`data-testid`){try{return hn(t),t}catch{}let{selector:r,preferredQuote:i}=Ql(t,n),a=wn(e,r,void 0,void 0,i),o=iu(e,t);return a.some(t=>iu(e,t)===o)?r:``}function iu(e,t){return t=t.replace(/\s/g,``),e===`javascript`&&(t=t.replace(/\\?["`]/g,`'`).replace(/,{}/g,``)),t}var au=({url:e})=>(0,M.jsxs)(`div`,{className:`browser-frame-header`,children:[(0,M.jsxs)(`div`,{className:`browser-traffic-lights`,children:[(0,M.jsx)(`span`,{className:`browser-frame-dot`,style:{backgroundColor:`rgb(242, 95, 88)`}}),(0,M.jsx)(`span`,{className:`browser-frame-dot`,style:{backgroundColor:`rgb(251, 190, 60)`}}),(0,M.jsx)(`span`,{className:`browser-frame-dot`,style:{backgroundColor:`rgb(88, 203, 66)`}})]}),(0,M.jsxs)(`div`,{className:`browser-frame-address-bar`,title:e||`about:blank`,children:[(0,M.jsx)(`span`,{className:`browser-frame-address`,children:e||`about:blank`}),e&&(0,M.jsx)(Un,{value:e})]}),(0,M.jsx)(`div`,{style:{marginLeft:`auto`},children:(0,M.jsxs)(`div`,{children:[(0,M.jsx)(`span`,{className:`browser-frame-menu-bar`}),(0,M.jsx)(`span`,{className:`browser-frame-menu-bar`}),(0,M.jsx)(`span`,{className:`browser-frame-menu-bar`})]})})]}),ou=Symbol.for(`yaml.alias`),su=Symbol.for(`yaml.document`),cu=Symbol.for(`yaml.map`),lu=Symbol.for(`yaml.pair`),uu=Symbol.for(`yaml.scalar`),du=Symbol.for(`yaml.seq`),fu=Symbol.for(`yaml.node.type`),pu=e=>!!e&&typeof e==`object`&&e[fu]===ou,mu=e=>!!e&&typeof e==`object`&&e[fu]===su,hu=e=>!!e&&typeof e==`object`&&e[fu]===cu,gu=e=>!!e&&typeof e==`object`&&e[fu]===lu,Y=e=>!!e&&typeof e==`object`&&e[fu]===uu,_u=e=>!!e&&typeof e==`object`&&e[fu]===du;function vu(e){if(e&&typeof e==`object`)switch(e[fu]){case cu:case du:return!0}return!1}function yu(e){if(e&&typeof e==`object`)switch(e[fu]){case ou:case cu:case uu:case du:return!0}return!1}var bu=e=>(Y(e)||vu(e))&&!!e.anchor,xu=Symbol(`break visit`),Su=Symbol(`skip children`),Cu=Symbol(`remove node`);function wu(e,t){let n=Ou(t);mu(e)?Tu(null,e.contents,n,Object.freeze([e]))===Cu&&(e.contents=null):Tu(null,e,n,Object.freeze([]))}wu.BREAK=xu,wu.SKIP=Su,wu.REMOVE=Cu;function Tu(e,t,n,r){let i=ku(e,t,n,r);if(yu(i)||gu(i))return Au(e,r,i),Tu(e,i,n,r);if(typeof i!=`symbol`){if(vu(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=Tu(e,t.items[e],n,r);if(typeof i==`number`)e=i-1;else if(i===xu)return xu;else i===Cu&&(t.items.splice(e,1),--e)}}else if(gu(t)){r=Object.freeze(r.concat(t));let e=Tu(`key`,t.key,n,r);if(e===xu)return xu;e===Cu&&(t.key=null);let i=Tu(`value`,t.value,n,r);if(i===xu)return xu;i===Cu&&(t.value=null)}}return i}async function Eu(e,t){let n=Ou(t);mu(e)?await Du(null,e.contents,n,Object.freeze([e]))===Cu&&(e.contents=null):await Du(null,e,n,Object.freeze([]))}Eu.BREAK=xu,Eu.SKIP=Su,Eu.REMOVE=Cu;async function Du(e,t,n,r){let i=await ku(e,t,n,r);if(yu(i)||gu(i))return Au(e,r,i),Du(e,i,n,r);if(typeof i!=`symbol`){if(vu(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=await Du(e,t.items[e],n,r);if(typeof i==`number`)e=i-1;else if(i===xu)return xu;else i===Cu&&(t.items.splice(e,1),--e)}}else if(gu(t)){r=Object.freeze(r.concat(t));let e=await Du(`key`,t.key,n,r);if(e===xu)return xu;e===Cu&&(t.key=null);let i=await Du(`value`,t.value,n,r);if(i===xu)return xu;i===Cu&&(t.value=null)}}return i}function Ou(e){return typeof e==`object`&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function ku(e,t,n,r){if(typeof n==`function`)return n(e,t,r);if(hu(t))return n.Map?.(e,t,r);if(_u(t))return n.Seq?.(e,t,r);if(gu(t))return n.Pair?.(e,t,r);if(Y(t))return n.Scalar?.(e,t,r);if(pu(t))return n.Alias?.(e,t,r)}function Au(e,t,n){let r=t[t.length-1];if(vu(r))r.items[e]=n;else if(gu(r))e===`key`?r.key=n:r.value=n;else if(mu(r))r.contents=n;else{let e=pu(r)?`alias`:`scalar`;throw Error(`Cannot replace node with ${e} parent`)}}var ju={"!":`%21`,",":`%2C`,"[":`%5B`,"]":`%5D`,"{":`%7B`,"}":`%7D`},Mu=e=>e.replace(/[!,[\]{}]/g,e=>ju[e]),Nu=class e{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,n)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case`1.1`:this.atNextDocument=!0;break;case`1.2`:this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:`1.2`},this.tags=Object.assign({},e.defaultTags);break}return t}add(t,n){this.atNextDocument&&=(this.yaml={explicit:e.defaultYaml.explicit,version:`1.1`},this.tags=Object.assign({},e.defaultTags),!1);let r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case`%TAG`:{if(r.length!==2&&(n(0,`%TAG directive should contain exactly two parts`),r.length<2))return!1;let[e,t]=r;return this.tags[e]=t,!0}case`%YAML`:{if(this.yaml.explicit=!0,r.length!==1)return n(0,`%YAML directive should contain exactly one part`),!1;let[e]=r;if(e===`1.1`||e===`1.2`)return this.yaml.version=e,!0;{let t=/^\d+\.\d+$/.test(e);return n(6,`Unsupported YAML version ${e}`,t),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e===`!`)return`!`;if(e[0]!==`!`)return t(`Not a valid tag: ${e}`),null;if(e[1]===`<`){let n=e.slice(2,-1);return n===`!`||n===`!!`?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==`>`&&t(`Verbatim tags must end with a >`),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return n===`!`?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+Mu(e.substring(n.length));return e[0]===`!`?e:`!<${e}>`}toString(e){let t=this.yaml.explicit?[`%YAML ${this.yaml.version||`1.2`}`]:[],n=Object.entries(this.tags),r;if(e&&n.length>0&&yu(e.contents)){let t={};wu(e.contents,(e,n)=>{yu(n)&&n.tag&&(t[n.tag]=!0)}),r=Object.keys(t)}else r=[];for(let[i,a]of n)i===`!!`&&a===`tag:yaml.org,2002:`||(!e||r.some(e=>e.startsWith(a)))&&t.push(`%TAG ${i} ${a}`);return t.join(`
68
+ `)}};Nu.defaultYaml={explicit:!1,version:`1.2`},Nu.defaultTags={"!!":`tag:yaml.org,2002:`};function Pu(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw Error(t)}return!0}function Fu(e){let t=new Set;return wu(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function Iu(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function Lu(e,t){let n=[],r=new Map,i=null;return{onAnchor:r=>{n.push(r),i??=Fu(e);let a=Iu(t,i);return i.add(a),a},setAnchors:()=>{for(let e of n){let t=r.get(e);if(typeof t==`object`&&t.anchor&&(Y(t.node)||vu(t.node)))t.node.anchor=t.anchor;else{let t=Error(`Failed to resolve repeated object (this should not happen)`);throw t.source=e,t}}},sourceObjects:r}}function Ru(e,t,n,r){if(r&&typeof r==`object`)if(Array.isArray(r))for(let t=0,n=r.length;t<n;++t){let n=r[t],i=Ru(e,r,String(t),n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}else if(r instanceof Map)for(let t of Array.from(r.keys())){let n=r.get(t),i=Ru(e,r,t,n);i===void 0?r.delete(t):i!==n&&r.set(t,i)}else if(r instanceof Set)for(let t of Array.from(r)){let n=Ru(e,r,t,t);n===void 0?r.delete(t):n!==t&&(r.delete(t),r.add(n))}else for(let[t,n]of Object.entries(r)){let i=Ru(e,r,t,n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}return e.call(t,n,r)}function zu(e,t,n){if(Array.isArray(e))return e.map((e,t)=>zu(e,String(t),n));if(e&&typeof e.toJSON==`function`){if(!n||!bu(e))return e.toJSON(t,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};let i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e==`bigint`&&!n?.keep?Number(e):e}var Bu=class{constructor(e){Object.defineProperty(this,fu,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:i}={}){if(!mu(e))throw TypeError(`A document argument is required`);let a={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n==`number`?n:100},o=zu(this,``,a);if(typeof r==`function`)for(let{count:e,res:t}of a.anchors.values())r(t,e);return typeof i==`function`?Ru(i,{"":o},``,o):o}},Vu=class extends Bu{constructor(e){super(ou),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){if(t?.maxAliasCount===0)throw ReferenceError(`Alias resolution is disabled`);let n;t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],wu(e,{Node:(e,t)=>{(pu(t)||bu(t))&&n.push(t)}}),t&&(t.aliasResolveCache=n));let r;for(let e of n){if(e===this)break;e.anchor===this.source&&(r=e)}return r}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:r,maxAliasCount:i}=t,a=this.resolve(r,t);if(!a){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}let o=n.get(a);if(o||=(zu(a,null,t),n.get(a)),o?.res===void 0)throw ReferenceError(`This should not happen: Alias anchor was not resolved?`);if(i>=0&&(o.count+=1,o.aliasCount===0&&(o.aliasCount=Hu(r,a,n)),o.count*o.aliasCount>i))throw ReferenceError(`Excessive alias count indicates a resource exhaustion attack`);return o.res}toString(e,t,n){let r=`*${this.source}`;if(e){if(Pu(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${r} `}return r}};function Hu(e,t,n){if(pu(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(vu(t)){let r=0;for(let i of t.items){let t=Hu(e,i,n);t>r&&(r=t)}return r}else if(gu(t)){let r=Hu(e,t.key,n),i=Hu(e,t.value,n);return Math.max(r,i)}return 1}var Uu=e=>!e||typeof e!=`function`&&typeof e!=`object`,X=class extends Bu{constructor(e){super(uu),this.value=e}toJSON(e,t){return t?.keep?this.value:zu(this.value,e,t)}toString(){return String(this.value)}};X.BLOCK_FOLDED=`BLOCK_FOLDED`,X.BLOCK_LITERAL=`BLOCK_LITERAL`,X.PLAIN=`PLAIN`,X.QUOTE_DOUBLE=`QUOTE_DOUBLE`,X.QUOTE_SINGLE=`QUOTE_SINGLE`;var Wu=`tag:yaml.org,2002:`;function Z(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}function Gu(e,t,n){if(mu(e)&&(e=e.contents),yu(e))return e;if(gu(e)){let t=n.schema[cu].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<`u`&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:r,onAnchor:i,onTagObj:a,schema:o,sourceObjects:s}=n,c;if(r&&e&&typeof e==`object`){if(c=s.get(e),c)return c.anchor??=i(e),new Vu(c.anchor);c={anchor:null,node:null},s.set(e,c)}t?.startsWith(`!!`)&&(t=Wu+t.slice(2));let l=Z(e,t,o.tags);if(!l){if(e&&typeof e.toJSON==`function`&&(e=e.toJSON()),!e||typeof e!=`object`){let t=new X(e);return c&&(c.node=t),t}l=e instanceof Map?o[cu]:Symbol.iterator in Object(e)?o[du]:o[cu]}a&&(a(l),delete n.onTagObj);let u=l?.createNode?l.createNode(n.schema,e,n):typeof l?.nodeClass?.from==`function`?l.nodeClass.from(n.schema,e,n):new X(e);return t?u.tag=t:l.default||(u.tag=l.tag),c&&(c.node=u),u}function Ku(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if(typeof n==`number`&&Number.isInteger(n)&&n>=0){let e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return Gu(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error(`This should not happen, please report a bug.`)},schema:e,sourceObjects:new Map})}var qu=e=>e==null||typeof e==`object`&&!!e[Symbol.iterator]().next().done,Ju=class extends Bu{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>yu(t)||gu(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(qu(e))this.add(t);else{let[n,...r]=e,i=this.get(n,!0);if(vu(i))i.addIn(r,t);else if(i===void 0&&this.schema)this.set(n,Ku(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}deleteIn(e){let[t,...n]=e;if(n.length===0)return this.delete(t);let r=this.get(t,!0);if(vu(r))return r.deleteIn(n);throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...r]=e,i=this.get(n,!0);return r.length===0?!t&&Y(i)?i.value:i:vu(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!gu(t))return!1;let n=t.value;return n==null||e&&Y(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(n.length===0)return this.has(t);let r=this.get(t,!0);return vu(r)?r.hasIn(n):!1}setIn(e,t){let[n,...r]=e;if(r.length===0)this.set(n,t);else{let e=this.get(n,!0);if(vu(e))e.setIn(r,t);else if(e===void 0&&this.schema)this.set(n,Ku(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}},Yu=e=>e.replace(/^(?!$)(?: $)?/gm,`#`);function Xu(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}var Zu=(e,t,n)=>e.endsWith(`
69
+ `)?Xu(n,t):n.includes(`
70
+ `)?`
71
+ `+Xu(n,t):(e.endsWith(` `)?``:` `)+n,Qu=`flow`,$u=`block`,ed=`quoted`;function td(e,t,n=`flow`,{indentAtStart:r,lineWidth:i=80,minContentWidth:a=20,onFold:o,onOverflow:s}={}){if(!i||i<0)return e;i<a&&(a=0);let c=Math.max(1+a,1+i-t.length);if(e.length<=c)return e;let l=[],u={},d=i-t.length;typeof r==`number`&&(r>i-Math.max(2,a)?l.push(0):d=i-r);let f,p,m=!1,h=-1,g=-1,_=-1;n===`block`&&(h=nd(e,h,t.length),h!==-1&&(d=h+c));for(let r;r=e[h+=1];){if(n===`quoted`&&r===`\\`){switch(g=h,e[h+1]){case`x`:h+=3;break;case`u`:h+=5;break;case`U`:h+=9;break;default:h+=1}_=h}if(r===`
72
+ `)n===`block`&&(h=nd(e,h,t.length)),d=h+t.length+c,f=void 0;else{if(r===` `&&p&&p!==` `&&p!==`
73
+ `&&p!==` `){let t=e[h+1];t&&t!==` `&&t!==`
74
+ `&&t!==` `&&(f=h)}if(h>=d)if(f)l.push(f),d=f+c,f=void 0;else if(n===`quoted`){for(;p===` `||p===` `;)p=r,r=e[h+=1],m=!0;let t=h>_+1?h-2:g-1;if(u[t])return e;l.push(t),u[t]=!0,d=t+c,f=void 0}else m=!0}p=r}if(m&&s&&s(),l.length===0)return e;o&&o();let v=e.slice(0,l[0]);for(let r=0;r<l.length;++r){let i=l[r],a=l[r+1]||e.length;i===0?v=`\n${t}${e.slice(0,a)}`:(n===`quoted`&&u[i]&&(v+=`${e[i]}\\`),v+=`\n${t}${e.slice(i+1,a)}`)}return v}function nd(e,t,n){let r=t,i=t+1,a=e[i];for(;a===` `||a===` `;)if(t<i+n)a=e[++t];else{do a=e[++t];while(a&&a!==`
75
+ `);r=t,i=t+1,a=e[i]}return r}var rd=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),id=e=>/^(%|---|\.\.\.)/m.test(e);function ad(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;t<i;++t)if(e[t]===`
76
+ `){if(t-n>r)return!0;if(n=t+1,i-n<=r)return!1}return!0}function od(e,t){let n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;let{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,a=t.indent||(id(e)?` `:``),o=``,s=0;for(let e=0,t=n[e];t;t=n[++e])if(t===` `&&n[e+1]===`\\`&&n[e+2]===`n`&&(o+=n.slice(s,e)+`\\ `,e+=1,s=e,t=`\\`),t===`\\`)switch(n[e+1]){case`u`:{o+=n.slice(s,e);let t=n.substr(e+2,4);switch(t){case`0000`:o+=`\\0`;break;case`0007`:o+=`\\a`;break;case`000b`:o+=`\\v`;break;case`001b`:o+=`\\e`;break;case`0085`:o+=`\\N`;break;case`00a0`:o+=`\\_`;break;case`2028`:o+=`\\L`;break;case`2029`:o+=`\\P`;break;default:t.substr(0,2)===`00`?o+=`\\x`+t.substr(2):o+=n.substr(e,6)}e+=5,s=e+1}break;case`n`:if(r||n[e+2]===`"`||n.length<i)e+=1;else{for(o+=n.slice(s,e)+`
77
+
78
+ `;n[e+2]===`\\`&&n[e+3]===`n`&&n[e+4]!==`"`;)o+=`
79
+ `,e+=2;o+=a,n[e+2]===` `&&(o+=`\\`),e+=1,s=e+1}break;default:e+=1}return o=s?o+n.slice(s):n,r?o:td(o,a,ed,rd(t,!1))}function sd(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
80
+ `)||/[ \t]\n|\n[ \t]/.test(e))return od(e,t);let n=t.indent||(id(e)?` `:``),r=`'`+e.replace(/'/g,`''`).replace(/\n+/g,`$&\n${n}`)+`'`;return t.implicitKey?r:td(r,n,Qu,rd(t,!1))}function cd(e,t){let{singleQuote:n}=t.options,r;if(n===!1)r=od;else{let t=e.includes(`"`),i=e.includes(`'`);r=t&&!i?sd:i&&!t?od:n?sd:od}return r(e,t)}var ld;try{ld=RegExp(`(^|(?<!
81
+ ))
82
+ +(?!
83
+ |$)`,`g`)}catch{ld=/\n+(?!\n|$)/g}function ud({comment:e,type:t,value:n},r,i,a){let{blockQuote:o,commentString:s,lineWidth:c}=r.options;if(!o||/\n[\t ]+$/.test(n))return cd(n,r);let l=r.indent||(r.forceBlockIndent||id(n)?` `:``),u=o===`literal`?!0:o===`folded`||t===X.BLOCK_FOLDED?!1:t===X.BLOCK_LITERAL?!0:!ad(n,c,l.length);if(!n)return u?`|
84
+ `:`>
85
+ `;let d,f;for(f=n.length;f>0;--f){let e=n[f-1];if(e!==`
86
+ `&&e!==` `&&e!==` `)break}let p=n.substring(f),m=p.indexOf(`
87
+ `);m===-1?d=`-`:n===p||m!==p.length-1?(d=`+`,a&&a()):d=``,p&&=(n=n.slice(0,-p.length),p[p.length-1]===`
88
+ `&&(p=p.slice(0,-1)),p.replace(ld,`$&${l}`));let h=!1,g,_=-1;for(g=0;g<n.length;++g){let e=n[g];if(e===` `)h=!0;else if(e===`
89
+ `)_=g;else break}let v=n.substring(0,_<g?_+1:g);v&&=(n=n.substring(v.length),v.replace(/\n+/g,`$&${l}`));let y=(h?l?`2`:`1`:``)+d;if(e&&(y+=` `+s(e.replace(/ ?[\r\n]+/g,` `)),i&&i()),!u){let e=n.replace(/\n+/g,`
90
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\n+/g,`$&${l}`),i=!1,a=rd(r,!0);o!==`folded`&&t!==X.BLOCK_FOLDED&&(a.onOverflow=()=>{i=!0});let s=td(`${v}${e}${p}`,l,$u,a);if(!i)return`>${y}\n${l}${s}`}return n=n.replace(/\n+/g,`$&${l}`),`|${y}\n${l}${v}${n}${p}`}function dd(e,t,n,r){let{type:i,value:a}=e,{actualString:o,implicitKey:s,indent:c,indentStep:l,inFlow:u}=t;if(s&&a.includes(`
91
+ `)||u&&/[[\]{},]/.test(a))return cd(a,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return s||u||!a.includes(`
92
+ `)?cd(a,t):ud(e,t,n,r);if(!s&&!u&&i!==X.PLAIN&&a.includes(`
93
+ `))return ud(e,t,n,r);if(id(a)){if(c===``)return t.forceBlockIndent=!0,ud(e,t,n,r);if(s&&c===l)return cd(a,t)}let d=a.replace(/\n+/g,`$&\n${c}`);if(o){let e=e=>e.default&&e.tag!==`tag:yaml.org,2002:str`&&e.test?.test(d),{compat:n,tags:r}=t.doc.schema;if(r.some(e)||n?.some(e))return cd(a,t)}return s?d:td(d,c,Qu,rd(t,!1))}function fd(e,t,n,r){let{implicitKey:i,inFlow:a}=t,o=typeof e.value==`string`?e:Object.assign({},e,{value:String(e.value)}),{type:s}=e;s!==X.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(s=X.QUOTE_DOUBLE);let c=e=>{switch(e){case X.BLOCK_FOLDED:case X.BLOCK_LITERAL:return i||a?cd(o.value,t):ud(o,t,n,r);case X.QUOTE_DOUBLE:return od(o.value,t);case X.QUOTE_SINGLE:return sd(o.value,t);case X.PLAIN:return dd(o,t,n,r);default:return null}},l=c(s);if(l===null){let{defaultKeyType:e,defaultStringType:n}=t.options,r=i&&e||n;if(l=c(r),l===null)throw Error(`Unsupported default string type ${r}`)}return l}function pd(e,t){let n=Object.assign({blockQuote:!0,commentString:Yu,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},e.schema.toStringOptions,t),r;switch(n.collectionStyle){case`block`:r=!1;break;case`flow`:r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?` `:``,indent:``,indentStep:typeof n.indent==`number`?` `.repeat(n.indent):` `,inFlow:r,options:n}}function md(e,t){if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}let n,r;if(Y(t)){r=t.value;let i=e.filter(e=>e.identify?.(r));if(i.length>1){let e=i.filter(e=>e.test);e.length>0&&(i=e)}n=i.find(e=>e.format===t.format)??i.find(e=>!e.format)}else r=t,n=e.find(e=>e.nodeClass&&r instanceof e.nodeClass);if(!n){let e=r?.constructor?.name??(r===null?`null`:typeof r);throw Error(`Tag not resolved for ${e} value`)}return n}function hd(e,t,{anchors:n,doc:r}){if(!r.directives)return``;let i=[],a=(Y(e)||vu(e))&&e.anchor;a&&Pu(a)&&(n.add(a),i.push(`&${a}`));let o=e.tag??(t.default?null:t.tag);return o&&i.push(r.directives.tagString(o)),i.join(` `)}function gd(e,t,n,r){if(gu(e))return e.toString(t,n,r);if(pu(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError(`Cannot stringify circular structure without alias nodes`);t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i,a=yu(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i??=md(t.doc.schema.tags,a);let o=hd(a,i,t);o.length>0&&(t.indentAtStart=(t.indentAtStart??0)+o.length+1);let s=typeof i.stringify==`function`?i.stringify(a,t,n,r):Y(a)?fd(a,t,n,r):a.toString(t,n,r);return o?Y(a)||s[0]===`{`||s[0]===`[`?`${o} ${s}`:`${o}\n${t.indent}${s}`:s}function _d({key:e,value:t},n,r,i){let{allNullValues:a,doc:o,indent:s,indentStep:c,options:{commentString:l,indentSeq:u,simpleKeys:d}}=n,f=yu(e)&&e.comment||null;if(d){if(f)throw Error(`With simple keys, key nodes cannot have comments`);if(vu(e)||!yu(e)&&typeof e==`object`)throw Error(`With simple keys, collection cannot be used as a key value`)}let p=!d&&(!e||f&&t==null&&!n.inFlow||vu(e)||(Y(e)?e.type===X.BLOCK_FOLDED||e.type===X.BLOCK_LITERAL:typeof e==`object`));n=Object.assign({},n,{allNullValues:!1,implicitKey:!p&&(d||!a),indent:s+c});let m=!1,h=!1,g=gd(e,n,()=>m=!0,()=>h=!0);if(!p&&!n.inFlow&&g.length>1024){if(d)throw Error(`With simple keys, single line scalar must not span more than 1024 characters`);p=!0}if(n.inFlow){if(a||t==null)return m&&r&&r(),g===``?`?`:p?`? ${g}`:g}else if(a&&!d||t==null&&p)return g=`? ${g}`,f&&!m?g+=Zu(g,n.indent,l(f)):h&&i&&i(),g;m&&(f=null),p?(f&&(g+=Zu(g,n.indent,l(f))),g=`? ${g}\n${s}:`):(g=`${g}:`,f&&(g+=Zu(g,n.indent,l(f))));let _,v,y;yu(t)?(_=!!t.spaceBefore,v=t.commentBefore,y=t.comment):(_=!1,v=null,y=null,t&&typeof t==`object`&&(t=o.createNode(t))),n.implicitKey=!1,!p&&!f&&Y(t)&&(n.indentAtStart=g.length+1),h=!1,!u&&c.length>=2&&!n.inFlow&&!p&&_u(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let b=!1,x=gd(t,n,()=>b=!0,()=>h=!0),S=` `;if(f||_||v){if(S=_?`
94
+ `:``,v){let e=l(v);S+=`\n${Xu(e,n.indent)}`}x===``&&!n.inFlow?S===`
95
+ `&&y&&(S=`
96
+
97
+ `):S+=`\n${n.indent}`}else if(!p&&vu(t)){let e=x[0],r=x.indexOf(`
98
+ `),i=r!==-1,a=n.inFlow??t.flow??t.items.length===0;if(i||!a){let t=!1;if(i&&(e===`&`||e===`!`)){let n=x.indexOf(` `);e===`&`&&n!==-1&&n<r&&x[n+1]===`!`&&(n=x.indexOf(` `,n+1)),(n===-1||r<n)&&(t=!0)}t||(S=`\n${n.indent}`)}}else(x===``||x[0]===`
99
+ `)&&(S=``);return g+=S+x,n.inFlow?b&&r&&r():y&&!b?g+=Zu(g,n.indent,l(y)):h&&i&&i(),g}function vd(e,t){(e===`debug`||e===`warn`)&&console.warn(t)}var yd=`<<`,Q={identify:e=>e===yd||typeof e==`symbol`&&e.description===yd,default:`key`,tag:`tag:yaml.org,2002:merge`,test:/^<<$/,resolve:()=>Object.assign(new X(Symbol(yd)),{addToJSMap:xd}),stringify:()=>yd},bd=(e,t)=>(Q.identify(t)||Y(t)&&(!t.type||t.type===X.PLAIN)&&Q.identify(t.value))&&e?.doc.schema.tags.some(e=>e.tag===Q.tag&&e.default);function xd(e,t,n){let r=Cd(e,n);if(_u(r))for(let n of r.items)Sd(e,t,n);else if(Array.isArray(r))for(let n of r)Sd(e,t,n);else Sd(e,t,r)}function Sd(e,t,n){let r=Cd(e,n);if(!hu(r))throw Error(`Merge sources must be maps or map aliases`);let i=r.toJSON(null,e,Map);for(let[e,n]of i)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0});return t}function Cd(e,t){return e&&pu(t)?t.resolve(e.doc,e):t}function wd(e,t,{key:n,value:r}){if(yu(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(bd(e,n))xd(e,t,r);else{let i=zu(n,``,e);if(t instanceof Map)t.set(i,zu(r,i,e));else if(t instanceof Set)t.add(i);else{let a=Td(n,i,e),o=zu(r,a,e);a in t?Object.defineProperty(t,a,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[a]=o}}return t}function Td(e,t,n){if(t===null)return``;if(typeof t!=`object`)return String(t);if(yu(e)&&n?.doc){let t=pd(n.doc,{});t.anchors=new Set;for(let e of n.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;let r=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(r);e.length>40&&(e=e.substring(0,36)+`..."`),vd(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(t)}function Ed(e,t,n){return new Dd(Gu(e,void 0,n),Gu(t,void 0,n))}var Dd=class e{constructor(e,t=null){Object.defineProperty(this,fu,{value:lu}),this.key=e,this.value=t}clone(t){let{key:n,value:r}=this;return yu(n)&&(n=n.clone(t)),yu(r)&&(r=r.clone(t)),new e(n,r)}toJSON(e,t){return wd(t,t?.mapAsMap?new Map:{},this)}toString(e,t,n){return e?.doc?_d(this,e,t,n):JSON.stringify(this)}};function Od(e,t,n){return(t.inFlow??e.flow?Ad:kd)(e,t,n)}function kd({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:a,onChompKeep:o,onComment:s}){let{indent:c,options:{commentString:l}}=n,u=Object.assign({},n,{indent:a,type:null}),d=!1,f=[];for(let e=0;e<t.length;++e){let i=t[e],o=null;if(yu(i))!d&&i.spaceBefore&&f.push(``),jd(n,f,i.commentBefore,d),i.comment&&(o=i.comment);else if(gu(i)){let e=yu(i.key)?i.key:null;e&&(!d&&e.spaceBefore&&f.push(``),jd(n,f,e.commentBefore,d))}d=!1;let s=gd(i,u,()=>o=null,()=>d=!0);o&&(s+=Zu(s,a,l(o))),d&&o&&(d=!1),f.push(r+s)}let p;if(f.length===0)p=i.start+i.end;else{p=f[0];for(let e=1;e<f.length;++e){let t=f[e];p+=t?`\n${c}${t}`:`
100
+ `}}return e?(p+=`
101
+ `+Xu(l(e),c),s&&s()):d&&o&&o(),p}function Ad({items:e},t,{flowChars:n,itemIndent:r}){let{indent:i,indentStep:a,flowCollectionPadding:o,options:{commentString:s}}=t;r+=a;let c=Object.assign({},t,{indent:r,inFlow:!0,type:null}),l=!1,u=0,d=[];for(let n=0;n<e.length;++n){let i=e[n],a=null;if(yu(i))i.spaceBefore&&d.push(``),jd(t,d,i.commentBefore,!1),i.comment&&(a=i.comment);else if(gu(i)){let e=yu(i.key)?i.key:null;e&&(e.spaceBefore&&d.push(``),jd(t,d,e.commentBefore,!1),e.comment&&(l=!0));let n=yu(i.value)?i.value:null;n?(n.comment&&(a=n.comment),n.commentBefore&&(l=!0)):i.value==null&&e?.comment&&(a=e.comment)}a&&(l=!0);let o=gd(i,c,()=>a=null);l||=d.length>u||o.includes(`
102
+ `),n<e.length-1?o+=`,`:t.options.trailingComma&&(t.options.lineWidth>0&&(l||=d.reduce((e,t)=>e+t.length+2,2)+(o.length+2)>t.options.lineWidth),l&&(o+=`,`)),a&&(o+=Zu(o,r,s(a))),d.push(o),u=d.length}let{start:f,end:p}=n;if(d.length===0)return f+p;if(!l){let e=d.reduce((e,t)=>e+t.length+2,2);l=t.options.lineWidth>0&&e>t.options.lineWidth}if(l){let e=f;for(let t of d)e+=t?`\n${a}${i}${t}`:`
103
+ `;return`${e}\n${i}${p}`}else return`${f}${o}${d.join(` `)}${o}${p}`}function jd({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,``)),r){let i=Xu(t(r),e);n.push(i.trimStart())}}function Md(e,t){let n=Y(t)?t.value:t;for(let r of e)if(gu(r)&&(r.key===t||r.key===n||Y(r.key)&&r.key.value===n))return r}var $=class extends Ju{static get tagName(){return`tag:yaml.org,2002:map`}constructor(e){super(cu,e),this.items=[]}static from(e,t,n){let{keepUndefined:r,replacer:i}=n,a=new this(e),o=(e,o)=>{if(typeof i==`function`)o=i.call(t,e,o);else if(Array.isArray(i)&&!i.includes(e))return;(o!==void 0||r)&&a.items.push(Ed(e,o,n))};if(t instanceof Map)for(let[e,n]of t)o(e,n);else if(t&&typeof t==`object`)for(let e of Object.keys(t))o(e,t[e]);return typeof e.sortMapEntries==`function`&&a.items.sort(e.sortMapEntries),a}add(e,t){let n;n=gu(e)?e:!e||typeof e!=`object`||!(`key`in e)?new Dd(e,e?.value):new Dd(e.key,e.value);let r=Md(this.items,n.key),i=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${n.key} already set`);Y(r.value)&&Uu(n.value)?r.value.value=n.value:r.value=n.value}else if(i){let e=this.items.findIndex(e=>i(n,e)<0);e===-1?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=Md(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=Md(this.items,e)?.value;return(!t&&Y(n)?n.value:n)??void 0}has(e){return!!Md(this.items,e)}set(e,t){this.add(new Dd(e,t),!0)}toJSON(e,t,n){let r=n?new n:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(r);for(let e of this.items)wd(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!gu(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),Od(this,e,{blockItemPrefix:``,flowChars:{start:`{`,end:`}`},itemIndent:e.indent||``,onChompKeep:n,onComment:t})}},Nd={collection:`map`,default:!0,nodeClass:$,tag:`tag:yaml.org,2002:map`,resolve(e,t){return hu(e)||t(`Expected a mapping for this tag`),e},createNode:(e,t,n)=>$.from(e,t,n)},Pd=class extends Ju{static get tagName(){return`tag:yaml.org,2002:seq`}constructor(e){super(du,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=Fd(e);return typeof t==`number`?this.items.splice(t,1).length>0:!1}get(e,t){let n=Fd(e);if(typeof n!=`number`)return;let r=this.items[n];return!t&&Y(r)?r.value:r}has(e){let t=Fd(e);return typeof t==`number`&&t<this.items.length}set(e,t){let n=Fd(e);if(typeof n!=`number`)throw Error(`Expected a valid index, not ${e}.`);let r=this.items[n];Y(r)&&Uu(t)?r.value=t:this.items[n]=t}toJSON(e,t){let n=[];t?.onCreate&&t.onCreate(n);let r=0;for(let e of this.items)n.push(zu(e,String(r++),t));return n}toString(e,t,n){return e?Od(this,e,{blockItemPrefix:`- `,flowChars:{start:`[`,end:`]`},itemIndent:(e.indent||``)+` `,onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let a of t){if(typeof r==`function`){let n=t instanceof Set?a:String(e++);a=r.call(t,n,a)}i.items.push(Gu(a,void 0,n))}}return i}};function Fd(e){let t=Y(e)?e.value:e;return t&&typeof t==`string`&&(t=Number(t)),typeof t==`number`&&Number.isInteger(t)&&t>=0?t:null}var Id={collection:`seq`,default:!0,nodeClass:Pd,tag:`tag:yaml.org,2002:seq`,resolve(e,t){return _u(e)||t(`Expected a sequence for this tag`),e},createNode:(e,t,n)=>Pd.from(e,t,n)},Ld={identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify(e,t,n,r){return t=Object.assign({actualString:!0},t),fd(e,t,n,r)}},Rd={identify:e=>e==null,createNode:()=>new X(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new X(null),stringify:({source:e},t)=>typeof e==`string`&&Rd.test.test(e)?e:t.options.nullStr},zd={identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new X(e[0]===`t`||e[0]===`T`),stringify({source:e,value:t},n){return e&&zd.test.test(e)&&t===(e[0]===`t`||e[0]===`T`)?e:t?n.options.trueStr:n.options.falseStr}};function Bd({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r==`bigint`)return String(r);let i=typeof r==`number`?r:Number(r);if(!isFinite(i))return isNaN(i)?`.nan`:i<0?`-.inf`:`.inf`;let a=Object.is(r,-0)?`-0`:JSON.stringify(r);if(!e&&t&&(!n||n===`tag:yaml.org,2002:float`)&&/^-?\d/.test(a)&&!a.includes(`e`)){let e=a.indexOf(`.`);e<0&&(e=a.length,a+=`.`);let n=t-(a.length-e-1);for(;n-->0;)a+=`0`}return a}var Vd={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:Bd},Hd={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():Bd(e)}},Ud={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new X(parseFloat(e)),n=e.indexOf(`.`);return n!==-1&&e[e.length-1]===`0`&&(t.minFractionDigits=e.length-n-1),t},stringify:Bd},Wd=e=>typeof e==`bigint`||Number.isInteger(e),Gd=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function Kd(e,t,n){let{value:r}=e;return Wd(r)&&r>=0?n+r.toString(t):Bd(e)}var qd={identify:e=>Wd(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^0o[0-7]+$/,resolve:(e,t,n)=>Gd(e,2,8,n),stringify:e=>Kd(e,8,`0o`)},Jd={identify:Wd,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>Gd(e,0,10,n),stringify:Bd},Yd={identify:e=>Wd(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>Gd(e,2,16,n),stringify:e=>Kd(e,16,`0x`)},Xd=[Nd,Id,Ld,Rd,zd,qd,Jd,Yd,Vd,Hd,Ud];function Zd(e){return typeof e==`bigint`||Number.isInteger(e)}var Qd=({value:e})=>JSON.stringify(e),$d=[{identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify:Qd},{identify:e=>e==null,createNode:()=>new X(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^null$/,resolve:()=>null,stringify:Qd},{identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^true$|^false$/,resolve:e=>e===`true`,stringify:Qd},{identify:Zd,default:!0,tag:`tag:yaml.org,2002:int`,test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>Zd(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:Qd}],ef=[Nd,Id].concat($d,{default:!0,tag:``,test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}}),tf={identify:e=>e instanceof Uint8Array,default:!1,tag:`tag:yaml.org,2002:binary`,resolve(e,t){if(typeof atob==`function`){let t=atob(e.replace(/[\n\r]/g,``)),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}else return t(`This environment does not support reading binary tags; either Buffer or atob is required`),e},stringify({comment:e,type:t,value:n},r,i,a){if(!n)return``;let o=n,s;if(typeof btoa==`function`){let e=``;for(let t=0;t<o.length;++t)e+=String.fromCharCode(o[t]);s=btoa(e)}else throw Error(`This environment does not support writing binary tags; either Buffer or btoa is required`);if(t??=X.BLOCK_LITERAL,t!==X.QUOTE_DOUBLE){let e=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),n=Math.ceil(s.length/e),i=Array(n);for(let t=0,r=0;t<n;++t,r+=e)i[t]=s.substr(r,e);s=i.join(t===X.BLOCK_LITERAL?`
104
+ `:` `)}return fd({comment:e,type:t,value:s},r,i,a)}};function nf(e,t){if(_u(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!gu(r)){if(hu(r)){r.items.length>1&&t(`Each pair must have its own sequence indicator`);let e=r.items[0]||new Dd(new X(null));if(r.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${r.commentBefore}\n${e.key.commentBefore}`:r.commentBefore),r.comment){let t=e.value??e.key;t.comment=t.comment?`${r.comment}\n${t.comment}`:r.comment}r=e}e.items[n]=gu(r)?r:new Dd(r)}}else t(`Expected a sequence for this tag`);return e}function rf(e,t,n){let{replacer:r}=n,i=new Pd(e);i.tag=`tag:yaml.org,2002:pairs`;let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){typeof r==`function`&&(e=r.call(t,String(a++),e));let o,s;if(Array.isArray(e))if(e.length===2)o=e[0],s=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`);else if(e&&e instanceof Object){let t=Object.keys(e);if(t.length===1)o=t[0],s=e[o];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else o=e;i.items.push(Ed(o,s,n))}return i}var af={collection:`seq`,default:!1,tag:`tag:yaml.org,2002:pairs`,resolve:nf,createNode:rf},of=class e extends Pd{constructor(){super(),this.add=$.prototype.add.bind(this),this.delete=$.prototype.delete.bind(this),this.get=$.prototype.get.bind(this),this.has=$.prototype.has.bind(this),this.set=$.prototype.set.bind(this),this.tag=e.tag}toJSON(e,t){if(!t)return super.toJSON(e);let n=new Map;t?.onCreate&&t.onCreate(n);for(let e of this.items){let r,i;if(gu(e)?(r=zu(e.key,``,t),i=zu(e.value,r,t)):r=zu(e,``,t),n.has(r))throw Error(`Ordered maps must not include duplicate keys`);n.set(r,i)}return n}static from(e,t,n){let r=rf(e,t,n),i=new this;return i.items=r.items,i}};of.tag=`tag:yaml.org,2002:omap`;var sf={collection:`seq`,identify:e=>e instanceof Map,nodeClass:of,default:!1,tag:`tag:yaml.org,2002:omap`,resolve(e,t){let n=nf(e,t),r=[];for(let{key:e}of n.items)Y(e)&&(r.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):r.push(e.value));return Object.assign(new of,n)},createNode:(e,t,n)=>of.from(e,t,n)};function cf({value:e,source:t},n){return t&&(e?lf:uf).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}var lf={identify:e=>e===!0,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new X(!0),stringify:cf},uf={identify:e=>e===!1,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new X(!1),stringify:cf},df={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:Bd},ff={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,``)),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():Bd(e)}},pf={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new X(parseFloat(e.replace(/_/g,``))),n=e.indexOf(`.`);if(n!==-1){let r=e.substring(n+1).replace(/_/g,``);r[r.length-1]===`0`&&(t.minFractionDigits=r.length)}return t},stringify:Bd},mf=e=>typeof e==`bigint`||Number.isInteger(e);function hf(e,t,n,{intAsBigInt:r}){let i=e[0];if((i===`-`||i===`+`)&&(t+=1),e=e.substring(t).replace(/_/g,``),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}let t=BigInt(e);return i===`-`?BigInt(-1)*t:t}let a=parseInt(e,n);return i===`-`?-1*a:a}function gf(e,t,n){let{value:r}=e;if(mf(r)){let e=r.toString(t);return r<0?`-`+n+e.substr(1):n+e}return Bd(e)}var _f={identify:mf,default:!0,tag:`tag:yaml.org,2002:int`,format:`BIN`,test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>hf(e,2,2,n),stringify:e=>gf(e,2,`0b`)},vf={identify:mf,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>hf(e,1,8,n),stringify:e=>gf(e,8,`0`)},yf={identify:mf,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>hf(e,0,10,n),stringify:Bd},bf={identify:mf,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>hf(e,2,16,n),stringify:e=>gf(e,16,`0x`)},xf=class e extends ${constructor(t){super(t),this.tag=e.tag}add(e){let t;t=gu(e)?e:e&&typeof e==`object`&&`key`in e&&`value`in e&&e.value===null?new Dd(e.key,null):new Dd(e,null),Md(this.items,t.key)||this.items.push(t)}get(e,t){let n=Md(this.items,e);return!t&&gu(n)?Y(n.key)?n.key.value:n.key:n}set(e,t){if(typeof t!=`boolean`)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let n=Md(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new Dd(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error(`Set items must all have null values`)}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)typeof r==`function`&&(e=r.call(t,e,e)),i.items.push(Ed(e,null,n));return i}};xf.tag=`tag:yaml.org,2002:set`;var Sf={collection:`map`,identify:e=>e instanceof Set,nodeClass:xf,default:!1,tag:`tag:yaml.org,2002:set`,createNode:(e,t,n)=>xf.from(e,t,n),resolve(e,t){if(hu(e)){if(e.hasAllNullValues(!0))return Object.assign(new xf,e);t(`Set items must all have null values`)}else t(`Expected a mapping for this tag`);return e}};function Cf(e,t){let n=e[0],r=n===`-`||n===`+`?e.substring(1):e,i=e=>t?BigInt(e):Number(e),a=r.replace(/_/g,``).split(`:`).reduce((e,t)=>e*i(60)+i(t),i(0));return n===`-`?i(-1)*a:a}function wf(e){let{value:t}=e,n=e=>e;if(typeof t==`bigint`)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return Bd(e);let r=``;t<0&&(r=`-`,t*=n(-1));let i=n(60),a=[t%i];return t<60?a.unshift(0):(t=(t-a[0])/i,a.unshift(t%i),t>=60&&(t=(t-a[0])/i,a.unshift(t))),r+a.map(e=>String(e).padStart(2,`0`)).join(`:`).replace(/000000\d*$/,``)}var Tf={identify:e=>typeof e==`bigint`||Number.isInteger(e),default:!0,tag:`tag:yaml.org,2002:int`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>Cf(e,n),stringify:wf},Ef={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>Cf(e,!1),stringify:wf},Df={identify:e=>e 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(e){let t=e.match(Df.test);if(!t)throw Error(`!!timestamp expects a date, starting with yyyy-mm-dd`);let[,n,r,i,a,o,s]=t.map(Number),c=t[7]?Number((t[7]+`00`).substr(1,3)):0,l=Date.UTC(n,r-1,i,a||0,o||0,s||0,c),u=t[8];if(u&&u!==`Z`){let e=Cf(u,!1);Math.abs(e)<30&&(e*=60),l-=6e4*e}return new Date(l)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,``)??``},Of=[Nd,Id,Ld,Rd,lf,uf,_f,vf,yf,bf,df,ff,pf,tf,Q,sf,af,Sf,Tf,Ef,Df],kf=new Map([[`core`,Xd],[`failsafe`,[Nd,Id,Ld]],[`json`,ef],[`yaml11`,Of],[`yaml-1.1`,Of]]),Af={binary:tf,bool:zd,float:Ud,floatExp:Hd,floatNaN:Vd,floatTime:Ef,int:Jd,intHex:Yd,intOct:qd,intTime:Tf,map:Nd,merge:Q,null:Rd,omap:sf,pairs:af,seq:Id,set:Sf,timestamp:Df},jf={"tag:yaml.org,2002:binary":tf,"tag:yaml.org,2002:merge":Q,"tag:yaml.org,2002:omap":sf,"tag:yaml.org,2002:pairs":af,"tag:yaml.org,2002:set":Sf,"tag:yaml.org,2002:timestamp":Df};function Mf(e,t,n){let r=kf.get(t);if(r&&!e)return n&&!r.includes(Q)?r.concat(Q):r.slice();let i=r;if(!i)if(Array.isArray(e))i=[];else{let e=Array.from(kf.keys()).filter(e=>e!==`yaml11`).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}if(Array.isArray(e))for(let t of e)i=i.concat(t);else typeof e==`function`&&(i=e(i.slice()));return n&&(i=i.concat(Q)),i.reduce((e,t)=>{let n=typeof t==`string`?Af[t]:t;if(!n){let e=JSON.stringify(t),n=Object.keys(Af).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown custom tag ${e}; use one of ${n}`)}return e.includes(n)||e.push(n),e},[])}var Nf=(e,t)=>e.key<t.key?-1:+(e.key>t.key),Pf=class e{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:r,schema:i,sortMapEntries:a,toStringDefaults:o}){this.compat=Array.isArray(e)?Mf(e,`compat`):e?Mf(null,e):null,this.name=typeof i==`string`&&i||`core`,this.knownTags=r?jf:{},this.tags=Mf(t,this.name,n),this.toStringOptions=o??null,Object.defineProperty(this,cu,{value:Nd}),Object.defineProperty(this,uu,{value:Ld}),Object.defineProperty(this,du,{value:Id}),this.sortMapEntries=typeof a==`function`?a:a===!0?Nf:null}clone(){let t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}};function Ff(e,t){let n=[],r=t.directives===!0;if(t.directives!==!1&&e.directives){let t=e.directives.toString(e);t?(n.push(t),r=!0):e.directives.docStart&&(r=!0)}r&&n.push(`---`);let i=pd(e,t),{commentString:a}=i.options;if(e.commentBefore){n.length!==1&&n.unshift(``);let t=a(e.commentBefore);n.unshift(Xu(t,``))}let o=!1,s=null;if(e.contents){if(yu(e.contents)){if(e.contents.spaceBefore&&r&&n.push(``),e.contents.commentBefore){let t=a(e.contents.commentBefore);n.push(Xu(t,``))}i.forceBlockIndent=!!e.comment,s=e.contents.comment}let t=s?void 0:()=>o=!0,c=gd(e.contents,i,()=>s=null,t);s&&(c+=Zu(c,``,a(s))),(c[0]===`|`||c[0]===`>`)&&n[n.length-1]===`---`?n[n.length-1]=`--- ${c}`:n.push(c)}else n.push(gd(e.contents,i));if(e.directives?.docEnd)if(e.comment){let t=a(e.comment);t.includes(`
105
+ `)?(n.push(`...`),n.push(Xu(t,``))):n.push(`... ${t}`)}else n.push(`...`);else{let t=e.comment;t&&o&&(t=t.replace(/^\n+/,``)),t&&((!o||s)&&n[n.length-1]!==``&&n.push(``),n.push(Xu(a(t),``)))}return n.join(`
106
+ `)+`
107
+ `}var If=class e{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,fu,{value:su});let r=null;typeof t==`function`||Array.isArray(t)?r=t:n===void 0&&t&&(n=t,t=void 0);let i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:`warn`,prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:`1.2`},n);this.options=i;let{version:a}=i;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(a=this.directives.yaml.version)):this.directives=new Nu({version:a}),this.setSchema(a,n),this.contents=e===void 0?null:this.createNode(e,r,n)}clone(){let t=Object.create(e.prototype,{[fu]:{value:su}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=yu(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(e){Lf(this.contents)&&this.contents.add(e)}addIn(e,t){Lf(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let n=Fu(this);e.anchor=!t||n.has(t)?Iu(t||`a`,n):t}return new Vu(e.anchor)}createNode(e,t,n){let r;if(typeof t==`function`)e=t.call({"":e},``,e),r=t;else if(Array.isArray(t)){let e=t.filter(e=>typeof e==`number`||e instanceof String||e instanceof Number).map(String);e.length>0&&(t=t.concat(e)),r=t}else n===void 0&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:i,anchorPrefix:a,flow:o,keepUndefined:s,onTagObj:c,tag:l}=n??{},{onAnchor:u,setAnchors:d,sourceObjects:f}=Lu(this,a||`a`),p={aliasDuplicateObjects:i??!0,keepUndefined:s??!1,onAnchor:u,onTagObj:c,replacer:r,schema:this.schema,sourceObjects:f},m=Gu(e,l,p);return o&&vu(m)&&(m.flow=!0),d(),m}createPair(e,t,n={}){return new Dd(this.createNode(e,null,n),this.createNode(t,null,n))}delete(e){return Lf(this.contents)?this.contents.delete(e):!1}deleteIn(e){return qu(e)?this.contents==null?!1:(this.contents=null,!0):Lf(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return vu(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return qu(e)?!t&&Y(this.contents)?this.contents.value:this.contents:vu(this.contents)?this.contents.getIn(e,t):void 0}has(e){return vu(this.contents)?this.contents.has(e):!1}hasIn(e){return qu(e)?this.contents!==void 0:vu(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=Ku(this.schema,[e],t):Lf(this.contents)&&this.contents.set(e,t)}setIn(e,t){qu(e)?this.contents=t:this.contents==null?this.contents=Ku(this.schema,Array.from(e),t):Lf(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e==`number`&&(e=String(e));let n;switch(e){case`1.1`:this.directives?this.directives.yaml.version=`1.1`:this.directives=new Nu({version:`1.1`}),n={resolveKnownTags:!1,schema:`yaml-1.1`};break;case`1.2`:case`next`:this.directives?this.directives.yaml.version=e:this.directives=new Nu({version:e}),n={resolveKnownTags:!0,schema:`core`};break;case null:this.directives&&delete this.directives,n=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new Pf(Object.assign(n,t));else throw Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:a}={}){let o={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r==`number`?r:100},s=zu(this.contents,t??``,o);if(typeof i==`function`)for(let{count:e,res:t}of o.anchors.values())i(t,e);return typeof a==`function`?Ru(a,{"":s},``,s):s}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error(`Document with errors cannot be stringified`);if(`indent`in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return Ff(this,e)}};function Lf(e){if(vu(e))return!0;throw Error(`Expected a YAML collection as document contents`)}var Rf=class extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}},zf=class extends Rf{constructor(e,t,n){super(`YAMLParseError`,e,t,n)}},Bf=class extends Rf{constructor(e,t,n){super(`YAMLWarning`,e,t,n)}},Vf=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(e=>t.linePos(e));let{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let a=i-1,o=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,``);if(a>=60&&o.length>80){let e=Math.min(a-39,o.length-79);o=`…`+o.substring(e),a-=e-1}if(o.length>80&&(o=o.substring(0,79)+`…`),r>1&&/^ *$/.test(o.substring(0,a))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+`…
108
+ `),o=n+o}if(/[^ ]/.test(o)){let e=1,t=n.linePos[1];t?.line===r&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-a)));let s=` `.repeat(a)+`^`.repeat(e);n.message+=`:\n\n${o}\n${s}\n`}};function Hf(e,{flow:t,indicator:n,next:r,offset:i,onError:a,parentIndent:o,startOnNewline:s}){let c=!1,l=s,u=s,d=``,f=``,p=!1,m=!1,h=null,g=null,_=null,v=null,y=null,b=null,x=null;for(let i of e)switch(m&&=(i.type!==`space`&&i.type!==`newline`&&i.type!==`comma`&&a(i.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),!1),h&&=(l&&i.type!==`comment`&&i.type!==`newline`&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),null),i.type){case`space`:!t&&(n!==`doc-start`||r?.type!==`flow-collection`)&&i.source.includes(` `)&&(h=i),u=!0;break;case`comment`:{u||a(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let e=i.source.substring(1)||` `;d?d+=f+e:d=e,f=``,l=!1;break}case`newline`:l?d?d+=i.source:(!b||n!==`seq-item-ind`)&&(c=!0):f+=i.source,l=!0,p=!0,(g||_)&&(v=i),u=!0;break;case`anchor`:g&&a(i,`MULTIPLE_ANCHORS`,`A node can have at most one anchor`),i.source.endsWith(`:`)&&a(i.offset+i.source.length-1,`BAD_ALIAS`,`Anchor ending in : is ambiguous`,!0),g=i,x??=i.offset,l=!1,u=!1,m=!0;break;case`tag`:_&&a(i,`MULTIPLE_TAGS`,`A node can have at most one tag`),_=i,x??=i.offset,l=!1,u=!1,m=!0;break;case n:(g||_)&&a(i,`BAD_PROP_ORDER`,`Anchors and tags must be after the ${i.source} indicator`),b&&a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.source} in ${t??`collection`}`),b=i,l=n===`seq-item-ind`||n===`explicit-key-ind`,u=!1;break;case`comma`:if(t){y&&a(i,`UNEXPECTED_TOKEN`,`Unexpected , in ${t}`),y=i,l=!1,u=!1;break}default:a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.type} token`),l=!1,u=!1}let S=e[e.length-1],C=S?S.offset+S.source.length:i;return m&&r&&r.type!==`space`&&r.type!==`newline`&&r.type!==`comma`&&(r.type!==`scalar`||r.source!==``)&&a(r.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),h&&(l&&h.indent<=o||r?.type===`block-map`||r?.type===`block-seq`)&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),{comma:y,found:b,spaceBefore:c,comment:d,hasNewline:p,anchor:g,tag:_,newlineAfterProp:v,end:C,start:x??C}}function Uf(e){if(!e)return null;switch(e.type){case`alias`:case`scalar`:case`double-quoted-scalar`:case`single-quoted-scalar`:if(e.source.includes(`
109
+ `))return!0;if(e.end){for(let t of e.end)if(t.type===`newline`)return!0}return!1;case`flow-collection`:for(let t of e.items){for(let e of t.start)if(e.type===`newline`)return!0;if(t.sep){for(let e of t.sep)if(e.type===`newline`)return!0}if(Uf(t.key)||Uf(t.value))return!0}return!1;default:return!0}}function Wf(e,t,n){if(t?.type===`flow-collection`){let r=t.end[0];r.indent===e&&(r.source===`]`||r.source===`}`)&&Uf(t)&&n(r,`BAD_INDENT`,`Flow end indicator should be more indented than parent`,!0)}}function Gf(e,t,n){let{uniqueKeys:r}=e.options;if(r===!1)return!1;let i=typeof r==`function`?r:(e,t)=>e===t||Y(e)&&Y(t)&&e.value===t.value;return t.some(e=>i(e.key,n))}var Kf=`All mapping items must start at the same column`;function qf({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=new((a?.nodeClass)??$)(n.schema);n.atRoot&&=!1;let s=r.offset,c=null;for(let a of r.items){let{start:l,key:u,sep:d,value:f}=a,p=Hf(l,{indicator:`explicit-key-ind`,next:u??d?.[0],offset:s,onError:i,parentIndent:r.indent,startOnNewline:!0}),m=!p.found;if(m){if(u&&(u.type===`block-seq`?i(s,`BLOCK_AS_IMPLICIT_KEY`,`A block sequence may not be used as an implicit map key`):`indent`in u&&u.indent!==r.indent&&i(s,`BAD_INDENT`,Kf)),!p.anchor&&!p.tag&&!d){c=p.end,p.comment&&(o.comment?o.comment+=`
110
+ `+p.comment:o.comment=p.comment);continue}(p.newlineAfterProp||Uf(u))&&i(u??l[l.length-1],`MULTILINE_IMPLICIT_KEY`,`Implicit keys need to be on a single line`)}else p.found?.indent!==r.indent&&i(s,`BAD_INDENT`,Kf);n.atKey=!0;let h=p.end,g=u?e(n,u,p,i):t(n,h,l,null,p,i);n.schema.compat&&Wf(r.indent,u,i),n.atKey=!1,Gf(n,o.items,g)&&i(h,`DUPLICATE_KEY`,`Map keys must be unique`);let _=Hf(d??[],{indicator:`map-value-ind`,next:f,offset:g.range[2],onError:i,parentIndent:r.indent,startOnNewline:!u||u.type===`block-scalar`});if(s=_.end,_.found){m&&(f?.type===`block-map`&&!_.hasNewline&&i(s,`BLOCK_AS_IMPLICIT_KEY`,`Nested mappings are not allowed in compact mappings`),n.options.strict&&p.start<_.found.offset-1024&&i(g.range,`KEY_OVER_1024_CHARS`,`The : indicator must be at most 1024 chars after the start of an implicit block mapping key`));let c=f?e(n,f,_,i):t(n,s,d,null,_,i);n.schema.compat&&Wf(r.indent,f,i),s=c.range[2];let l=new Dd(g,c);n.options.keepSourceTokens&&(l.srcToken=a),o.items.push(l)}else{m&&i(g.range,`MISSING_CHAR`,`Implicit map keys need to be followed by map values`),_.comment&&(g.comment?g.comment+=`
111
+ `+_.comment:g.comment=_.comment);let e=new Dd(g);n.options.keepSourceTokens&&(e.srcToken=a),o.items.push(e)}}return c&&c<s&&i(c,`IMPOSSIBLE`,`Map comment with trailing content`),o.range=[r.offset,s,c??s],o}function Jf({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=new((a?.nodeClass)??Pd)(n.schema);n.atRoot&&=!1,n.atKey&&=!1;let s=r.offset,c=null;for(let{start:a,value:l}of r.items){let u=Hf(a,{indicator:`seq-item-ind`,next:l,offset:s,onError:i,parentIndent:r.indent,startOnNewline:!0});if(!u.found)if(u.anchor||u.tag||l)l?.type===`block-seq`?i(u.end,`BAD_INDENT`,`All sequence items must start at the same column`):i(s,`MISSING_CHAR`,`Sequence item without - indicator`);else{c=u.end,u.comment&&(o.comment=u.comment);continue}let d=l?e(n,l,u,i):t(n,u.end,a,null,u,i);n.schema.compat&&Wf(r.indent,l,i),s=d.range[2],o.items.push(d)}return o.range=[r.offset,s,c??s],o}function Yf(e,t,n,r){let i=``;if(e){let a=!1,o=``;for(let s of e){let{source:e,type:c}=s;switch(c){case`space`:a=!0;break;case`comment`:{n&&!a&&r(s,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let t=e.substring(1)||` `;i?i+=o+t:i=t,o=``;break}case`newline`:i&&(o+=e),a=!0;break;default:r(s,`UNEXPECTED_TOKEN`,`Unexpected ${c} at node end`)}t+=e.length}}return{comment:i,offset:t}}var Xf=`Block collections are not allowed within flow collections`,Zf=e=>e&&(e.type===`block-map`||e.type===`block-seq`);function Qf({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=r.start.source===`{`,s=o?`flow map`:`flow sequence`,c=new((a?.nodeClass)??(o?$:Pd))(n.schema);c.flow=!0;let l=n.atRoot;l&&(n.atRoot=!1),n.atKey&&=!1;let u=r.offset+r.start.source.length;for(let a=0;a<r.items.length;++a){let l=r.items[a],{start:d,key:f,sep:p,value:m}=l,h=Hf(d,{flow:s,indicator:`explicit-key-ind`,next:f??p?.[0],offset:u,onError:i,parentIndent:r.indent,startOnNewline:!1});if(!h.found){if(!h.anchor&&!h.tag&&!p&&!m){a===0&&h.comma?i(h.comma,`UNEXPECTED_TOKEN`,`Unexpected , in ${s}`):a<r.items.length-1&&i(h.start,`UNEXPECTED_TOKEN`,`Unexpected empty item in ${s}`),h.comment&&(c.comment?c.comment+=`
112
+ `+h.comment:c.comment=h.comment),u=h.end;continue}!o&&n.options.strict&&Uf(f)&&i(f,`MULTILINE_IMPLICIT_KEY`,`Implicit keys of flow sequence pairs need to be on a single line`)}if(a===0)h.comma&&i(h.comma,`UNEXPECTED_TOKEN`,`Unexpected , in ${s}`);else if(h.comma||i(h.start,`MISSING_CHAR`,`Missing , between ${s} items`),h.comment){let e=``;loop:for(let t of d)switch(t.type){case`comma`:case`space`:break;case`comment`:e=t.source.substring(1);break loop;default:break loop}if(e){let t=c.items[c.items.length-1];gu(t)&&(t=t.value??t.key),t.comment?t.comment+=`
113
+ `+e:t.comment=e,h.comment=h.comment.substring(e.length+1)}}if(!o&&!p&&!h.found){let r=m?e(n,m,h,i):t(n,h.end,p,null,h,i);c.items.push(r),u=r.range[2],Zf(m)&&i(r.range,`BLOCK_IN_FLOW`,Xf)}else{n.atKey=!0;let a=h.end,g=f?e(n,f,h,i):t(n,a,d,null,h,i);Zf(f)&&i(g.range,`BLOCK_IN_FLOW`,Xf),n.atKey=!1;let _=Hf(p??[],{flow:s,indicator:`map-value-ind`,next:m,offset:g.range[2],onError:i,parentIndent:r.indent,startOnNewline:!1});if(_.found){if(!o&&!h.found&&n.options.strict){if(p)for(let e of p){if(e===_.found)break;if(e.type===`newline`){i(e,`MULTILINE_IMPLICIT_KEY`,`Implicit keys of flow sequence pairs need to be on a single line`);break}}h.start<_.found.offset-1024&&i(_.found,`KEY_OVER_1024_CHARS`,`The : indicator must be at most 1024 chars after the start of an implicit flow sequence key`)}}else m&&(`source`in m&&m.source?.[0]===`:`?i(m,`MISSING_CHAR`,`Missing space after : in ${s}`):i(_.start,`MISSING_CHAR`,`Missing , or : between ${s} items`));let v=m?e(n,m,_,i):_.found?t(n,_.end,p,null,_,i):null;v?Zf(m)&&i(v.range,`BLOCK_IN_FLOW`,Xf):_.comment&&(g.comment?g.comment+=`
114
+ `+_.comment:g.comment=_.comment);let y=new Dd(g,v);if(n.options.keepSourceTokens&&(y.srcToken=l),o){let e=c;Gf(n,e.items,g)&&i(a,`DUPLICATE_KEY`,`Map keys must be unique`),e.items.push(y)}else{let e=new $(n.schema);e.flow=!0,e.items.push(y);let t=(v??g).range;e.range=[g.range[0],t[1],t[2]],c.items.push(e)}u=v?v.range[2]:_.end}}let d=o?`}`:`]`,[f,...p]=r.end,m=u;if(f?.source===d)m=f.offset+f.source.length;else{let e=s[0].toUpperCase()+s.substring(1),t=l?`${e} must end with a ${d}`:`${e} in block collection must be sufficiently indented and end with a ${d}`;i(u,l?`MISSING_CHAR`:`BAD_INDENT`,t),f&&f.source.length!==1&&p.unshift(f)}if(p.length>0){let e=Yf(p,m,n.options.strict,i);e.comment&&(c.comment?c.comment+=`
115
+ `+e.comment:c.comment=e.comment),c.range=[r.offset,m,e.offset]}else c.range=[r.offset,m,m];return c}function $f(e,t,n,r,i,a){let o=n.type===`block-map`?qf(e,t,n,r,a):n.type===`block-seq`?Jf(e,t,n,r,a):Qf(e,t,n,r,a),s=o.constructor;return i===`!`||i===s.tagName?(o.tag=s.tagName,o):(i&&(o.tag=i),o)}function ep(e,t,n,r,i){let a=r.tag,o=a?t.directives.tagName(a.source,e=>i(a,`TAG_RESOLVE_FAILED`,e)):null;if(n.type===`block-seq`){let{anchor:e,newlineAfterProp:t}=r,n=e&&a?e.offset>a.offset?e:a:e??a;n&&(!t||t.offset<n.offset)&&i(n,`MISSING_CHAR`,`Missing newline after block sequence props`)}let s=n.type===`block-map`?`map`:n.type===`block-seq`?`seq`:n.start.source===`{`?`map`:`seq`;if(!a||!o||o===`!`||o===$.tagName&&s===`map`||o===Pd.tagName&&s===`seq`)return $f(e,t,n,i,o);let c=t.schema.tags.find(e=>e.tag===o&&e.collection===s);if(!c){let r=t.schema.knownTags[o];if(r?.collection===s)t.schema.tags.push(Object.assign({},r,{default:!1})),c=r;else return r?i(a,`BAD_COLLECTION_TYPE`,`${r.tag} used for ${s} collection, but expects ${r.collection??`scalar`}`,!0):i(a,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${o}`,!0),$f(e,t,n,i,o)}let l=$f(e,t,n,i,o,c),u=c.resolve?.(l,e=>i(a,`TAG_RESOLVE_FAILED`,e),t.options)??l,d=yu(u)?u:new X(u);return d.range=l.range,d.tag=o,c?.format&&(d.format=c.format),d}function tp(e,t,n){let r=t.offset,i=np(t,e.options.strict,n);if(!i)return{value:``,type:null,comment:``,range:[r,r,r]};let a=i.mode===`>`?X.BLOCK_FOLDED:X.BLOCK_LITERAL,o=t.source?rp(t.source):[],s=o.length;for(let e=o.length-1;e>=0;--e){let t=o[e][1];if(t===``||t===`\r`)s=e;else break}if(s===0){let e=i.chomp===`+`&&o.length>0?`
116
+ `.repeat(Math.max(1,o.length-1)):``,n=r+i.length;return t.source&&(n+=t.source.length),{value:e,type:a,comment:i.comment,range:[r,n,n]}}let c=t.indent+i.indent,l=t.offset+i.length,u=0;for(let t=0;t<s;++t){let[r,a]=o[t];if(a===``||a===`\r`)i.indent===0&&r.length>c&&(c=r.length);else{r.length<c&&n(l+r.length,`MISSING_CHAR`,`Block scalars with more-indented leading empty lines must use an explicit indentation indicator`),i.indent===0&&(c=r.length),u=t,c===0&&!e.atRoot&&n(l,`BAD_INDENT`,`Block scalar values in collections must be indented`);break}l+=r.length+a.length+1}for(let e=o.length-1;e>=s;--e)o[e][0].length>c&&(s=e+1);let d=``,f=``,p=!1;for(let e=0;e<u;++e)d+=o[e][0].slice(c)+`
117
+ `;for(let e=u;e<s;++e){let[t,r]=o[e];l+=t.length+r.length+1;let s=r[r.length-1]===`\r`;if(s&&(r=r.slice(0,-1)),r&&t.length<c){let e=`Block scalar lines must not be less indented than their ${i.indent?`explicit indentation indicator`:`first line`}`;n(l-r.length-(s?2:1),`BAD_INDENT`,e),t=``}a===X.BLOCK_LITERAL?(d+=f+t.slice(c)+r,f=`
118
+ `):t.length>c||r[0]===` `?(f===` `?f=`
119
+ `:!p&&f===`
120
+ `&&(f=`
121
+
122
+ `),d+=f+t.slice(c)+r,f=`
123
+ `,p=!0):r===``?f===`
124
+ `?d+=`
125
+ `:f=`
126
+ `:(d+=f+r,f=` `,p=!1)}switch(i.chomp){case`-`:break;case`+`:for(let e=s;e<o.length;++e)d+=`
127
+ `+o[e][0].slice(c);d[d.length-1]!==`
128
+ `&&(d+=`
129
+ `);break;default:d+=`
130
+ `}let m=r+i.length+t.source.length;return{value:d,type:a,comment:i.comment,range:[r,m,m]}}function np({offset:e,props:t},n,r){if(t[0].type!==`block-scalar-header`)return r(t[0],`IMPOSSIBLE`,`Block scalar header not found`),null;let{source:i}=t[0],a=i[0],o=0,s=``,c=-1;for(let t=1;t<i.length;++t){let n=i[t];if(!s&&(n===`-`||n===`+`))s=n;else{let r=Number(n);!o&&r?o=r:c===-1&&(c=e+t)}}c!==-1&&r(c,`UNEXPECTED_TOKEN`,`Block scalar header includes extra characters: ${i}`);let l=!1,u=``,d=i.length;for(let e=1;e<t.length;++e){let i=t[e];switch(i.type){case`space`:l=!0;case`newline`:d+=i.source.length;break;case`comment`:n&&!l&&r(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`),d+=i.source.length,u=i.source.substring(1);break;case`error`:r(i,`UNEXPECTED_TOKEN`,i.message),d+=i.source.length;break;default:{r(i,`UNEXPECTED_TOKEN`,`Unexpected token in block scalar header: ${i.type}`);let e=i.source;e&&typeof e==`string`&&(d+=e.length)}}}return{mode:a,indent:o,chomp:s,comment:u,length:d}}function rp(e){let t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),i=[r?.[1]?[r[1],n.slice(r[1].length)]:[``,n]];for(let e=1;e<t.length;e+=2)i.push([t[e],t[e+1]]);return i}function ip(e,t,n){let{offset:r,type:i,source:a,end:o}=e,s,c,l=(e,t,i)=>n(r+e,t,i);switch(i){case`scalar`:s=X.PLAIN,c=ap(a,l);break;case`single-quoted-scalar`:s=X.QUOTE_SINGLE,c=op(a,l);break;case`double-quoted-scalar`:s=X.QUOTE_DOUBLE,c=cp(a,l);break;default:return n(e,`UNEXPECTED_TOKEN`,`Expected a flow scalar value, but found: ${i}`),{value:``,type:null,comment:``,range:[r,r+a.length,r+a.length]}}let u=r+a.length,d=Yf(o,u,t,n);return{value:c,type:s,comment:d.comment,range:[r,u,d.offset]}}function ap(e,t){let n=``;switch(e[0]){case` `:n=`a tab character`;break;case`,`:n=`flow indicator character ,`;break;case`%`:n=`directive indicator character %`;break;case`|`:case`>`:n=`block scalar indicator ${e[0]}`;break;case`@`:case"`":n=`reserved character ${e[0]}`;break}return n&&t(0,`BAD_SCALAR_START`,`Plain value cannot start with ${n}`),sp(e)}function op(e,t){return(e[e.length-1]!==`'`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing 'quote`),sp(e.slice(1,-1)).replace(/''/g,`'`)}function sp(e){let t,n;try{t=RegExp(`(.*?)(?<![ ])[ ]*\r?
131
+ `,`sy`),n=RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
132
+ `,`sy`)}catch{t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let r=t.exec(e);if(!r)return e;let i=r[1],a=` `,o=t.lastIndex;for(n.lastIndex=o;r=n.exec(e);)r[1]===``?a===`
133
+ `?i+=a:a=`
134
+ `:(i+=a+r[1],a=` `),o=n.lastIndex;let s=/[ \t]*(.*)/sy;return s.lastIndex=o,r=s.exec(e),i+a+(r?.[1]??``)}function cp(e,t){let n=``;for(let r=1;r<e.length-1;++r){let i=e[r];if(!(i===`\r`&&e[r+1]===`
135
+ `))if(i===`
136
+ `){let{fold:t,offset:i}=lp(e,r);n+=t,r=i}else if(i===`\\`){let i=e[++r],a=up[i];if(a)n+=a;else if(i===`
137
+ `)for(i=e[r+1];i===` `||i===` `;)i=e[++r+1];else if(i===`\r`&&e[r+1]===`
138
+ `)for(i=e[++r+1];i===` `||i===` `;)i=e[++r+1];else if(i===`x`||i===`u`||i===`U`){let a=i===`x`?2:i===`u`?4:8;n+=dp(e,r+1,a,t),r+=a}else{let i=e.substr(r-1,2);t(r-1,`BAD_DQ_ESCAPE`,`Invalid escape sequence ${i}`),n+=i}}else if(i===` `||i===` `){let t=r,a=e[r+1];for(;a===` `||a===` `;)a=e[++r+1];a!==`
139
+ `&&!(a===`\r`&&e[r+2]===`
140
+ `)&&(n+=r>t?e.slice(t,r+1):i)}else n+=i}return(e[e.length-1]!==`"`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing "quote`),n}function lp(e,t){let n=``,r=e[t+1];for(;(r===` `||r===` `||r===`
141
+ `||r===`\r`)&&!(r===`\r`&&e[t+2]!==`
142
+ `);)r===`
143
+ `&&(n+=`
144
+ `),t+=1,r=e[t+1];return n||=` `,{fold:n,offset:t}}var up={0:`\0`,a:`\x07`,b:`\b`,e:`\x1B`,f:`\f`,n:`
145
+ `,r:`\r`,t:` `,v:`\v`,N:`…`,_:`\xA0`,L:`\u2028`,P:`\u2029`," ":` `,'"':`"`,"/":`/`,"\\":`\\`," ":` `};function dp(e,t,n,r){let i=e.substr(t,n),a=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;try{return String.fromCodePoint(a)}catch{let i=e.substr(t-2,n+2);return r(t-2,`BAD_DQ_ESCAPE`,`Invalid escape sequence ${i}`),i}}function fp(e,t,n,r){let{value:i,type:a,comment:o,range:s}=t.type===`block-scalar`?tp(e,t,r):ip(t,e.options.strict,r),c=n?e.directives.tagName(n.source,e=>r(n,`TAG_RESOLVE_FAILED`,e)):null,l;l=e.options.stringKeys&&e.atKey?e.schema[uu]:c?pp(e.schema,i,c,n,r):t.type===`scalar`?mp(e,i,t,r):e.schema[uu];let u;try{let a=l.resolve(i,e=>r(n??t,`TAG_RESOLVE_FAILED`,e),e.options);u=Y(a)?a:new X(a)}catch(e){let a=e instanceof Error?e.message:String(e);r(n??t,`TAG_RESOLVE_FAILED`,a),u=new X(i)}return u.range=s,u.source=i,a&&(u.type=a),c&&(u.tag=c),l.format&&(u.format=l.format),o&&(u.comment=o),u}function pp(e,t,n,r,i){if(n===`!`)return e[uu];let a=[];for(let t of e.tags)if(!t.collection&&t.tag===n)if(t.default&&t.test)a.push(t);else return t;for(let e of a)if(e.test?.test(t))return e;let o=e.knownTags[n];return o&&!o.collection?(e.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(i(r,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${n}`,n!==`tag:yaml.org,2002:str`),e[uu])}function mp({atKey:e,directives:t,schema:n},r,i,a){let o=n.tags.find(t=>(t.default===!0||e&&t.default===`key`)&&t.test?.test(r))||n[uu];if(n.compat){let e=n.compat.find(e=>e.default&&e.test?.test(r))??n[uu];o.tag!==e.tag&&a(i,`TAG_RESOLVE_FAILED`,`Value may be parsed as either ${t.tagString(o.tag)} or ${t.tagString(e.tag)}`,!0)}return o}function hp(e,t,n){if(t){n??=t.length;for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case`space`:case`comment`:case`newline`:e-=n.source.length;continue}for(n=t[++r];n?.type===`space`;)e+=n.source.length,n=t[++r];break}}return e}var gp={composeNode:_p,composeEmptyNode:vp};function _p(e,t,n,r){let i=e.atKey,{spaceBefore:a,comment:o,anchor:s,tag:c}=n,l,u=!0;switch(t.type){case`alias`:l=yp(e,t,r),(s||c)&&r(t,`ALIAS_PROPS`,`An alias node must not specify any properties`);break;case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`block-scalar`:l=fp(e,t,c,r),s&&(l.anchor=s.source.substring(1));break;case`block-map`:case`block-seq`:case`flow-collection`:try{l=ep(gp,e,t,n,r),s&&(l.anchor=s.source.substring(1))}catch(e){r(t,`RESOURCE_EXHAUSTION`,e instanceof Error?e.message:String(e))}break;default:r(t,`UNEXPECTED_TOKEN`,t.type===`error`?t.message:`Unsupported token (type: ${t.type})`),u=!1}return l??=vp(e,t.offset,void 0,null,n,r),s&&l.anchor===``&&r(s,`BAD_ALIAS`,`Anchor cannot be an empty string`),i&&e.options.stringKeys&&(!Y(l)||typeof l.value!=`string`||l.tag&&l.tag!==`tag:yaml.org,2002:str`)&&r(c??t,`NON_STRING_KEY`,`With stringKeys, all keys must be strings`),a&&(l.spaceBefore=!0),o&&(t.type===`scalar`&&t.source===``?l.comment=o:l.commentBefore=o),e.options.keepSourceTokens&&u&&(l.srcToken=t),l}function vp(e,t,n,r,{spaceBefore:i,comment:a,anchor:o,tag:s,end:c},l){let u=fp(e,{type:`scalar`,offset:hp(t,n,r),indent:-1,source:``},s,l);return o&&(u.anchor=o.source.substring(1),u.anchor===``&&l(o,`BAD_ALIAS`,`Anchor cannot be an empty string`)),i&&(u.spaceBefore=!0),a&&(u.comment=a,u.range[2]=c),u}function yp({options:e},{offset:t,source:n,end:r},i){let a=new Vu(n.substring(1));a.source===``&&i(t,`BAD_ALIAS`,`Alias cannot be an empty string`),a.source.endsWith(`:`)&&i(t+n.length-1,`BAD_ALIAS`,`Alias ending in : is ambiguous`,!0);let o=t+n.length,s=Yf(r,o,e.strict,i);return a.range=[t,o,s.offset],s.comment&&(a.comment=s.comment),a}function bp(e,t,{offset:n,start:r,value:i,end:a},o){let s=new If(void 0,Object.assign({_directives:t},e)),c={atKey:!1,atRoot:!0,directives:s.directives,options:s.options,schema:s.schema},l=Hf(r,{indicator:`doc-start`,next:i??a?.[0],offset:n,onError:o,parentIndent:0,startOnNewline:!0});l.found&&(s.directives.docStart=!0,i&&(i.type===`block-map`||i.type===`block-seq`)&&!l.hasNewline&&o(l.end,`MISSING_CHAR`,`Block collection cannot start on same line with directives-end marker`)),s.contents=i?_p(c,i,l,o):vp(c,l.end,r,null,l,o);let u=s.contents.range[2],d=Yf(a,u,!1,o);return d.comment&&(s.comment=d.comment),s.range=[n,u,d.offset],s}function xp(e){if(typeof e==`number`)return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];let{offset:t,source:n}=e;return[t,t+(typeof n==`string`?n.length:1)]}function Sp(e){let t=``,n=!1,r=!1;for(let i=0;i<e.length;++i){let a=e[i];switch(a[0]){case`#`:t+=(t===``?``:r?`
146
+
147
+ `:`
148
+ `)+(a.substring(1)||` `),n=!0,r=!1;break;case`%`:e[i+1]?.[0]!==`#`&&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}var Cp=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,n,r)=>{let i=xp(e);r?this.warnings.push(new Bf(i,t,n)):this.errors.push(new zf(i,t,n))},this.directives=new Nu({version:e.version||`1.2`}),this.options=e}decorate(e,t){let{comment:n,afterEmptyLine:r}=Sp(this.prelude);if(n){let i=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${n}`:n;else if(r||e.directives.docStart||!i)e.commentBefore=n;else if(vu(i)&&!i.flow&&i.items.length>0){let e=i.items[0];gu(e)&&(e=e.key);let t=e.commentBefore;e.commentBefore=t?`${n}\n${t}`:n}else{let e=i.commentBefore;i.commentBefore=e?`${n}\n${e}`:n}}if(t){for(let t=0;t<this.errors.length;++t)e.errors.push(this.errors[t]);for(let t=0;t<this.warnings.length;++t)e.warnings.push(this.warnings[t])}else e.errors=this.errors,e.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Sp(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(let t of e)yield*this.next(t);yield*this.end(t,n)}*next(e){switch(e.type){case`directive`:this.directives.add(e.source,(t,n,r)=>{let i=xp(e);i[0]+=t,this.onError(i,`BAD_DIRECTIVE`,n,r)}),this.prelude.push(e.source),this.atDirectives=!0;break;case`document`:{let t=bp(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,`MISSING_CHAR`,`Missing directives-end/doc-start indicator line`),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case`byte-order-mark`:case`space`:break;case`comment`:case`newline`:this.prelude.push(e.source);break;case`error`:{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new zf(xp(e),`UNEXPECTED_TOKEN`,t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case`doc-end`:{if(!this.doc){this.errors.push(new zf(xp(e),`UNEXPECTED_TOKEN`,`Unexpected doc-end without preceding document`));break}this.doc.directives.docEnd=!0;let t=Yf(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new zf(xp(e),`UNEXPECTED_TOKEN`,`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let e=new If(void 0,Object.assign({_directives:this.directives},this.options));this.atDirectives&&this.onError(t,`MISSING_CHAR`,`Missing directives-end indicator line`),e.range=[0,t,t],this.decorate(e,!1),yield e}}};function wp(e,t=!0,n){if(e){let r=(e,t,r)=>{let i=typeof e==`number`?e:Array.isArray(e)?e[0]:e.offset;if(n)n(i,t,r);else throw new zf([i,i+1],t,r)};switch(e.type){case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return ip(e,t,r);case`block-scalar`:return tp({options:{strict:t}},e,r)}}return null}function Tp(e,t){let{implicitKey:n=!1,indent:r,inFlow:i=!1,offset:a=-1,type:o=`PLAIN`}=t,s=fd({type:o,value:e},{implicitKey:n,indent:r>0?` `.repeat(r):``,inFlow:i,options:{blockQuote:!0,lineWidth:-1}}),c=t.end??[{type:`newline`,offset:-1,indent:r,source:`
149
+ `}];switch(s[0]){case`|`:case`>`:{let e=s.indexOf(`
150
+ `),t=s.substring(0,e),n=s.substring(e+1)+`
151
+ `,i=[{type:`block-scalar-header`,offset:a,indent:r,source:t}];return Op(i,c)||i.push({type:`newline`,offset:-1,indent:r,source:`
152
+ `}),{type:`block-scalar`,offset:a,indent:r,props:i,source:n}}case`"`:return{type:`double-quoted-scalar`,offset:a,indent:r,source:s,end:c};case`'`:return{type:`single-quoted-scalar`,offset:a,indent:r,source:s,end:c};default:return{type:`scalar`,offset:a,indent:r,source:s,end:c}}}function Ep(e,t,n={}){let{afterKey:r=!1,implicitKey:i=!1,inFlow:a=!1,type:o}=n,s=`indent`in e?e.indent:null;if(r&&typeof s==`number`&&(s+=2),!o)switch(e.type){case`single-quoted-scalar`:o=`QUOTE_SINGLE`;break;case`double-quoted-scalar`:o=`QUOTE_DOUBLE`;break;case`block-scalar`:{let t=e.props[0];if(t.type!==`block-scalar-header`)throw Error(`Invalid block scalar header`);o=t.source[0]===`>`?`BLOCK_FOLDED`:`BLOCK_LITERAL`;break}default:o=`PLAIN`}let c=fd({type:o,value:t},{implicitKey:i||s===null,indent:s!==null&&s>0?` `.repeat(s):``,inFlow:a,options:{blockQuote:!0,lineWidth:-1}});switch(c[0]){case`|`:case`>`:Dp(e,c);break;case`"`:kp(e,c,`double-quoted-scalar`);break;case`'`:kp(e,c,`single-quoted-scalar`);break;default:kp(e,c,`scalar`)}}function Dp(e,t){let n=t.indexOf(`
153
+ `),r=t.substring(0,n),i=t.substring(n+1)+`
154
+ `;if(e.type===`block-scalar`){let t=e.props[0];if(t.type!==`block-scalar-header`)throw Error(`Invalid block scalar header`);t.source=r,e.source=i}else{let{offset:t}=e,n=`indent`in e?e.indent:-1,a=[{type:`block-scalar-header`,offset:t,indent:n,source:r}];Op(a,`end`in e?e.end:void 0)||a.push({type:`newline`,offset:-1,indent:n,source:`
155
+ `});for(let t of Object.keys(e))t!==`type`&&t!==`offset`&&delete e[t];Object.assign(e,{type:`block-scalar`,indent:n,props:a,source:i})}}function Op(e,t){if(t)for(let n of t)switch(n.type){case`space`:case`comment`:e.push(n);break;case`newline`:return e.push(n),!0}return!1}function kp(e,t,n){switch(e.type){case`scalar`:case`double-quoted-scalar`:case`single-quoted-scalar`:e.type=n,e.source=t;break;case`block-scalar`:{let r=e.props.slice(1),i=t.length;e.props[0].type===`block-scalar-header`&&(i-=e.props[0].source.length);for(let e of r)e.offset+=i;delete e.props,Object.assign(e,{type:n,source:t,end:r});break}case`block-map`:case`block-seq`:{let r={type:`newline`,offset:e.offset+t.length,indent:e.indent,source:`
156
+ `};delete e.items,Object.assign(e,{type:n,source:t,end:[r]});break}default:{let r=`indent`in e?e.indent:-1,i=`end`in e&&Array.isArray(e.end)?e.end.filter(e=>e.type===`space`||e.type===`comment`||e.type===`newline`):[];for(let t of Object.keys(e))t!==`type`&&t!==`offset`&&delete e[t];Object.assign(e,{type:n,indent:r,source:t,end:i})}}}var Ap=e=>`type`in e?jp(e):Mp(e);function jp(e){switch(e.type){case`block-scalar`:{let t=``;for(let n of e.props)t+=jp(n);return t+e.source}case`block-map`:case`block-seq`:{let t=``;for(let n of e.items)t+=Mp(n);return t}case`flow-collection`:{let t=e.start.source;for(let n of e.items)t+=Mp(n);for(let n of e.end)t+=n.source;return t}case`document`:{let t=Mp(e);if(e.end)for(let n of e.end)t+=n.source;return t}default:{let t=e.source;if(`end`in e&&e.end)for(let n of e.end)t+=n.source;return t}}}function Mp({start:e,key:t,sep:n,value:r}){let i=``;for(let t of e)i+=t.source;if(t&&(i+=jp(t)),n)for(let e of n)i+=e.source;return r&&(i+=jp(r)),i}var Np=Symbol(`break visit`),Pp=Symbol(`skip children`),Fp=Symbol(`remove item`);function Ip(e,t){`type`in e&&e.type===`document`&&(e={start:e.start,value:e.value}),Lp(Object.freeze([]),e,t)}Ip.BREAK=Np,Ip.SKIP=Pp,Ip.REMOVE=Fp,Ip.itemAtPath=(e,t)=>{let n=e;for(let[e,r]of t){let t=n?.[e];if(t&&`items`in t)n=t.items[r];else return}return n},Ip.parentCollection=(e,t)=>{let n=Ip.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],i=n?.[r];if(i&&`items`in i)return i;throw Error(`Parent collection not found`)};function Lp(e,t,n){let r=n(t,e);if(typeof r==`symbol`)return r;for(let i of[`key`,`value`]){let a=t[i];if(a&&`items`in a){for(let t=0;t<a.items.length;++t){let r=Lp(Object.freeze(e.concat([[i,t]])),a.items[t],n);if(typeof r==`number`)t=r-1;else if(r===Np)return Np;else r===Fp&&(a.items.splice(t,1),--t)}typeof r==`function`&&i===`key`&&(r=r(t,e))}}return typeof r==`function`?r(t,e):r}var Rp=x({BOM:()=>``,DOCUMENT:()=>``,FLOW_END:()=>``,SCALAR:()=>``,createScalarToken:()=>Tp,isCollection:()=>zp,isScalar:()=>Bp,prettyToken:()=>Vp,resolveAsScalar:()=>wp,setScalarValue:()=>Ep,stringify:()=>Ap,tokenType:()=>Hp,visit:()=>Ip}),zp=e=>!!e&&`items`in e,Bp=e=>!!e&&(e.type===`scalar`||e.type===`single-quoted-scalar`||e.type===`double-quoted-scalar`||e.type===`block-scalar`);function Vp(e){switch(e){case``:return`<BOM>`;case``:return`<DOC>`;case``:return`<FLOW_END>`;case``:return`<SCALAR>`;default:return JSON.stringify(e)}}function Hp(e){switch(e){case``:return`byte-order-mark`;case``:return`doc-mode`;case``:return`flow-error-end`;case``:return`scalar`;case`---`:return`doc-start`;case`...`:return`doc-end`;case``:case`
157
+ `:case`\r
158
+ `: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(e[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}function Up(e){switch(e){case void 0:case` `:case`
159
+ `:case`\r`:case` `:return!0;default:return!1}}var Wp=new Set(`0123456789ABCDEFabcdef`),Gp=new Set(`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()`),Kp=new Set(`,[]{}`),qp=new Set(` ,[]{}
160
+ \r `),Jp=e=>!e||qp.has(e),Yp=class{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(e,t=!1){if(e){if(typeof e!=`string`)throw TypeError(`source is not a string`);this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let n=this.next??`stream`;for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;t===` `||t===` `;)t=this.buffer[++e];return!t||t===`#`||t===`
161
+ `?!0:t===`\r`?this.buffer[e+1]===`
162
+ `:!1}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;t===` `;)t=this.buffer[++n+e];if(t===`\r`){let t=this.buffer[n+e+1];if(t===`
163
+ `||!t&&!this.atEnd)return e+n+1}return t===`
164
+ `||n>=this.indentNext||!t&&!this.atEnd?e+n:-1}if(t===`-`||t===`.`){let t=this.buffer.substr(e,3);if((t===`---`||t===`...`)&&Up(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!=`number`||e!==-1&&e<this.pos)&&(e=this.buffer.indexOf(`
165
+ `,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]===`\r`&&--e,this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){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 e=this.getLine();if(e===null)return this.setNext(`stream`);if(e[0]===``&&(yield*this.pushCount(1),e=e.substring(1)),e[0]===`%`){let t=e.length,n=e.indexOf(`#`);for(;n!==-1;){let r=e[n-1];if(r===` `||r===` `){t=n-1;break}else n=e.indexOf(`#`,n+1)}for(;;){let n=e[t-1];if(n===` `||n===` `)--t;else break}let r=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-r),this.pushNewline(),`stream`}if(this.atLineEnd()){let t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),`stream`}return yield``,yield*this.parseLineStart()}*parseLineStart(){let e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext(`line-start`);if(e===`-`||e===`.`){if(!this.atEnd&&!this.hasChars(4))return this.setNext(`line-start`);let e=this.peek(3);if((e===`---`||e===`...`)&&Up(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,e===`---`?`doc`:`stream`}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Up(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext(`block-start`);if((e===`-`||e===`?`||e===`:`)&&Up(t)){let e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,`block-start`}return`doc`}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(e===null)return this.setNext(`doc`);let t=yield*this.pushIndicators();switch(e[t]){case`#`:yield*this.pushCount(e.length-t);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(Jp),`doc`;case`"`:case`'`:return yield*this.parseQuotedScalar();case`|`:case`>`:return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,n=-1;do e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0);let r=this.getLine();if(r===null)return this.setNext(`flow`);if((n!==-1&&n<this.indentNext&&r[0]!==`#`||n===0&&(r.startsWith(`---`)||r.startsWith(`...`))&&Up(r[3]))&&!(n===this.indentNext-1&&this.flowLevel===1&&(r[0]===`]`||r[0]===`}`)))return this.flowLevel=0,yield``,yield*this.parseLineStart();let i=0;for(;r[i]===`,`;)i+=yield*this.pushCount(1),i+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(i+=yield*this.pushIndicators(),r[i]){case void 0:return`flow`;case`#`:return yield*this.pushCount(r.length-i),`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,this.flowLevel?`flow`:`doc`;case`*`:return yield*this.pushUntil(Jp),`flow`;case`"`:case`'`:return this.flowKey=!0,yield*this.parseQuotedScalar();case`:`:{let e=this.charAt(1);if(this.flowKey||Up(e)||e===`,`)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),`flow`}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let e=this.charAt(0),t=this.buffer.indexOf(e,this.pos+1);if(e===`'`)for(;t!==-1&&this.buffer[t+1]===`'`;)t=this.buffer.indexOf(`'`,t+2);else for(;t!==-1;){let e=0;for(;this.buffer[t-1-e]===`\\`;)e+=1;if(e%2==0)break;t=this.buffer.indexOf(`"`,t+1)}let n=this.buffer.substring(0,t),r=n.indexOf(`
166
+ `,this.pos);if(r!==-1){for(;r!==-1;){let e=this.continueScalar(r+1);if(e===-1)break;r=n.indexOf(`
167
+ `,e)}r!==-1&&(t=r-(n[r-1]===`\r`?2:1))}if(t===-1){if(!this.atEnd)return this.setNext(`quoted-scalar`);t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?`flow`:`doc`}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){let t=this.buffer[++e];if(t===`+`)this.blockScalarKeep=!0;else if(t>`0`&&t<=`9`)this.blockScalarIndent=Number(t)-1;else if(t!==`-`)break}return yield*this.pushUntil(e=>Up(e)||e===`#`)}*parseBlockScalar(){let e=this.pos-1,t=0,n;loop:for(let r=this.pos;n=this.buffer[r];++r)switch(n){case` `:t+=1;break;case`
168
+ `:e=r,t=0;break;case`\r`:{let e=this.buffer[r+1];if(!e&&!this.atEnd)return this.setNext(`block-scalar`);if(e===`
169
+ `)break}default:break loop}if(!n&&!this.atEnd)return this.setNext(`block-scalar`);if(t>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=t:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf(`
170
+ `,t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext(`block-scalar`);e=this.buffer.length}}let r=e+1;for(n=this.buffer[r];n===` `;)n=this.buffer[++r];if(n===` `){for(;n===` `||n===` `||n===`\r`||n===`
171
+ `;)n=this.buffer[++r];e=r-1}else if(!this.blockScalarKeep)do{let n=e-1,r=this.buffer[n];r===`\r`&&(r=this.buffer[--n]);let i=n;for(;r===` `;)r=this.buffer[--n];if(r===`
172
+ `&&n>=this.pos&&n+1+t>i)e=n;else break}while(!0);return yield``,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e=this.flowLevel>0,t=this.pos-1,n=this.pos-1,r;for(;r=this.buffer[++n];)if(r===`:`){let r=this.buffer[n+1];if(Up(r)||e&&Kp.has(r))break;t=n}else if(Up(r)){let i=this.buffer[n+1];if(r===`\r`&&(i===`
173
+ `?(n+=1,r=`
174
+ `,i=this.buffer[n+1]):t=n),i===`#`||e&&Kp.has(i))break;if(r===`
175
+ `){let e=this.continueScalar(n+1);if(e===-1)break;n=Math.max(n,e-2)}}else{if(e&&Kp.has(r))break;t=n}return!r&&!this.atEnd?this.setNext(`plain-scalar`):(yield``,yield*this.pushToIndex(t+1,!0),e?`flow`:`doc`)}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield``),0)}*pushIndicators(){let e=0;loop:for(;;){switch(this.charAt(0)){case`!`:e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue loop;case`&`:e+=yield*this.pushUntil(Jp),e+=yield*this.pushSpaces(!0);continue loop;case`-`:case`?`:case`:`:{let t=this.flowLevel>0,n=this.charAt(1);if(Up(n)||t&&Kp.has(n)){t?this.flowKey&&=!1:this.indentNext=this.indentValue+1,e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue loop}}}break loop}return e}*pushTag(){if(this.charAt(1)===`<`){let e=this.pos+2,t=this.buffer[e];for(;!Up(t)&&t!==`>`;)t=this.buffer[++e];return yield*this.pushToIndex(t===`>`?e+1:e,!1)}else{let e=this.pos+1,t=this.buffer[e];for(;t;)if(Gp.has(t))t=this.buffer[++e];else if(t===`%`&&Wp.has(this.buffer[e+1])&&Wp.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return e===`
176
+ `?yield*this.pushCount(1):e===`\r`&&this.charAt(1)===`
177
+ `?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,n;do n=this.buffer[++t];while(n===` `||e&&n===` `);let r=t-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=t),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}},Xp=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){let r=t+n>>1;this.lineStarts[r]<e?t=r+1:n=r}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};let r=this.lineStarts[t-1];return{line:t,col:e-r+1}}}};function Zp(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function Qp(e){for(let t=0;t<e.length;++t)switch(e[t].type){case`space`:case`comment`:case`newline`:break;default:return t}return-1}function $p(e){switch(e?.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`flow-collection`:return!0;default:return!1}}function em(e){switch(e.type){case`document`:return e.start;case`block-map`:{let t=e.items[e.items.length-1];return t.sep??t.start}case`block-seq`:return e.items[e.items.length-1].start;default:return[]}}function tm(e){if(e.length===0)return[];let t=e.length;loop:for(;--t>=0;)switch(e[t].type){case`doc-start`:case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:case`newline`:break loop}for(;e[++t]?.type===`space`;);return e.splice(t,e.length)}function nm(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let n=0;n<t.length;++n)e.push(t[n])}function rm(e){if(e.start.type===`flow-seq-start`)for(let t of e.items)t.sep&&!t.value&&!Zp(t.start,`explicit-key-ind`)&&!Zp(t.sep,`map-value-ind`)&&(t.key&&(t.value=t.key),delete t.key,$p(t.value)?t.value.end?nm(t.value.end,t.sep):t.value.end=t.sep:nm(t.start,t.sep),delete t.sep)}var im=class{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source=``,this.type=``,this.lexer=new Yp,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=Hp(e);if(!t){let t=`Not a YAML token: ${e}`;yield*this.pop({type:`error`,offset:this.offset,message:t,source:e}),this.offset+=e.length}else if(t===`scalar`)this.atNewLine=!1,this.atScalar=!0,this.type=`scalar`;else{switch(this.type=t,yield*this.step(),t){case`newline`:this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case`space`:this.atNewLine&&e[0]===` `&&(this.indent+=e.length);break;case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:this.atNewLine&&(this.indent+=e.length);break;case`doc-mode`:case`flow-error-end`:return;default:this.atNewLine=!1}this.offset+=e.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(){let e=this.peek(1);if(this.type===`doc-end`&&e?.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(!e)return yield*this.stream();switch(e.type){case`document`:return yield*this.document(e);case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return yield*this.scalar(e);case`block-scalar`:return yield*this.blockScalar(e);case`block-map`:return yield*this.blockMap(e);case`block-seq`:return yield*this.blockSequence(e);case`flow-collection`:return yield*this.flowCollection(e);case`doc-end`:return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(!t)yield{type:`error`,offset:this.offset,source:``,message:`Tried to pop an empty stack`};else if(this.stack.length===0)yield t;else{let e=this.peek(1);switch(t.type===`block-scalar`?t.indent=`indent`in e?e.indent:0:t.type===`flow-collection`&&e.type===`document`&&(t.indent=0),t.type===`flow-collection`&&rm(t),e.type){case`document`:e.value=t;break;case`block-scalar`:e.props.push(t);break;case`block-map`:{let n=e.items[e.items.length-1];if(n.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}else if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case`block-seq`:{let n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case`flow-collection`:{let n=e.items[e.items.length-1];!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((e.type===`document`||e.type===`block-map`||e.type===`block-seq`)&&(t.type===`block-map`||t.type===`block-seq`)){let n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&Qp(n.start)===-1&&(t.indent===0||n.start.every(e=>e.type!==`comment`||e.indent<t.indent))&&(e.type===`document`?e.end=n.start:e.items.push({start:n.start}),t.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`:{let e={type:`document`,offset:this.offset,start:[]};this.type===`doc-start`&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:`error`,offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case`doc-start`:Qp(e.start)===-1?e.start.push(this.sourceToken):(yield*this.pop(),yield*this.step());return;case`anchor`:case`tag`:case`space`:case`comment`:case`newline`:e.start.push(this.sourceToken);return}let t=this.startBlockValue(e);t?this.stack.push(t):yield{type:`error`,offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if(this.type===`map-value-ind`){let t=tm(em(this.peek(2))),n;e.end?(n=e.end,n.push(this.sourceToken),delete e.end):n=[this.sourceToken];let r={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:t,key:e,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case`space`:case`comment`:case`newline`:e.props.push(this.sourceToken);return;case`scalar`:if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let e=this.source.indexOf(`
178
+ `)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
179
+ `,e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(this.onKeyLine=!1,t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){nm(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,r=n&&(t.sep||t.explicitKey)&&this.type!==`seq-item-ind`,i=[];if(r&&t.sep&&!t.value){let n=[];for(let r=0;r<t.sep.length;++r){let i=t.sep[r];switch(i.type){case`newline`:n.push(r);break;case`space`:break;case`comment`:i.indent>e.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(i=t.sep.splice(n[1]))}switch(this.type){case`anchor`:case`tag`:r||t.value?(i.push(this.sourceToken),e.items.push({start:i}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`explicit-key-ind`:!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):r||t.value?(i.push(this.sourceToken),e.items.push({start:i,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(t.explicitKey)if(!t.sep)if(Zp(t.start,`newline`))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=tm(t.start);this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Zp(t.sep,`map-value-ind`))this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if($p(t.key)&&!Zp(t.sep,`newline`)){let e=tm(t.start),n=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else i.length>0?t.sep=t.sep.concat(i,this.sourceToken):t.sep.push(this.sourceToken);else t.sep?t.value||r?e.items.push({start:i,key:null,sep:[this.sourceToken]}):Zp(t.sep,`map-value-ind`)?this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);r||t.value?(e.items.push({start:i,key:n,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(n):(Object.assign(t,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let r=this.startBlockValue(e);if(r){if(r.type===`block-seq`){if(!t.explicitKey&&t.sep&&!Zp(t.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 n&&e.items.push({start:i});this.stack.push(r);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){nm(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case`anchor`:case`tag`:if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case`seq-item-ind`:if(this.indent!==e.indent)break;t.value||Zp(t.start,`seq-item-ind`)?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type===`flow-error-end`){let e;do yield*this.pop(),e=this.peek(1);while(e?.type===`flow-collection`)}else if(e.end.length===0){switch(this.type){case`comma`:case`explicit-key-ind`:!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case`map-value-ind`:!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case`space`:case`comment`:case`newline`:case`anchor`:case`tag`:!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]});return}case`flow-map-end`:case`flow-seq-end`:e.end.push(this.sourceToken);return}let n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let t=this.peek(2);if(t.type===`block-map`&&(this.type===`map-value-ind`&&t.indent===e.indent||this.type===`newline`&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type===`map-value-ind`&&t.type!==`flow-collection`){let n=tm(em(t));rm(e);let r=e.end.splice(1,e.end.length);r.push(this.sourceToken);let i={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf(`
180
+ `)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
181
+ `,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){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;let t=tm(em(e));return t.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=tm(em(e));return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.type===`space`)}*documentEnd(e){this.type!==`doc-mode`&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop()))}*lineEnd(e){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;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}};function am(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new Xp||null,prettyErrors:t}}function om(e,t={}){let{lineCounter:n,prettyErrors:r}=am(t),i=new im(n?.addNewLine),a=new Cp(t),o=Array.from(a.compose(i.parse(e)));if(r&&n)for(let t of o)t.errors.forEach(Vf(e,n)),t.warnings.forEach(Vf(e,n));return o.length>0?o:Object.assign([],{empty:!0},a.streamInfo())}function sm(e,t={}){let{lineCounter:n,prettyErrors:r}=am(t),i=new im(n?.addNewLine),a=new Cp(t),o=null;for(let t of a.compose(i.parse(e),!0,e.length))if(!o)o=t;else if(o.options.logLevel!==`silent`){o.errors.push(new zf(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return r&&n&&(o.errors.forEach(Vf(e,n)),o.warnings.forEach(Vf(e,n))),o}function cm(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let i=sm(e,n);if(!i)return null;if(i.warnings.forEach(e=>vd(i.options.logLevel,e)),i.errors.length>0){if(i.options.logLevel!==`silent`)throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}function lm(e,t,n){let r=null;if(typeof t==`function`||Array.isArray(t)?r=t:n===void 0&&t&&(n=t),typeof n==`string`&&(n=n.length),typeof n==`number`){let e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(e===void 0){let{keepUndefined:e}=n??t??{};if(!e)return}return mu(e)&&!r?e.toString(n):new If(e,r,n).toString(n)}var um=x({Alias:()=>Vu,CST:()=>Rp,Composer:()=>Cp,Document:()=>If,Lexer:()=>Yp,LineCounter:()=>Xp,Pair:()=>Dd,Parser:()=>im,Scalar:()=>X,Schema:()=>Pf,YAMLError:()=>Rf,YAMLMap:()=>$,YAMLParseError:()=>zf,YAMLSeq:()=>Pd,YAMLWarning:()=>Bf,isAlias:()=>pu,isCollection:()=>vu,isDocument:()=>mu,isMap:()=>hu,isNode:()=>yu,isPair:()=>gu,isScalar:()=>Y,isSeq:()=>_u,parse:()=>cm,parseAllDocuments:()=>om,parseDocument:()=>sm,stringify:()=>lm,visit:()=>wu,visitAsync:()=>Eu}),dm=[.5,1,2];function fm(e,t,n,r,i){let[a,o]=T.useState(!1),[s,c]=T.useState(1),[l,u]=T.useState(!1),[d,f]=T.useState(void 0),[p,m]=T.useState(void 0),h=dm[s],g=t?e.indexOf(t):-1,_=i.minimum,v=i.maximum,y=v-_||1,b=r?r.minimum:_,x=r?r.maximum:v,S=T.useMemo(()=>r?e.filter(e=>e.startTime>=r.minimum&&e.startTime<=r.maximum):e,[e,r]),C=S.length?e.indexOf(S[0]):0,w=S.length?e.indexOf(S[S.length-1]):e.length-1,ee=T.useRef(e);ee.current=e;let te=T.useRef(n);te.current=n;let E=T.useRef(null),ne=T.useCallback(t=>{let n=0,r=e.length-1;for(;n<r;){let i=n+r+1>>1;e[i].startTime<=t?n=i:r=i-1}if(n<e.length-1){let r=t-e[n].startTime;e[n+1].startTime-t<r&&(n+=1)}return Math.max(C,Math.min(w,n))},[e,C,w]),re=t?t.startTime:_,ie;ie=l&&d!==void 0?d*100:a&&p!==void 0?Math.max(0,Math.min(100,(p-_)/y*100)):Math.max(0,Math.min(100,(re-_)/y*100));let ae=T.useRef(b);ae.current=b;let oe=T.useRef(x);oe.current=x,T.useEffect(()=>{if(!a)return;let e,t,n=re;n<ae.current&&(n=ae.current);let r=g;m(n);let i=a=>{if(t!==void 0){let e=(a-t)*h;n=Math.min(n+e,oe.current)}t=a,m(n);let s=ne(n);if(s!==r&&(r=s,te.current(ee.current[s])),n>=oe.current){o(!1);return}e=requestAnimationFrame(i)};return e=requestAnimationFrame(i),()=>cancelAnimationFrame(e)},[a,h]),T.useEffect(()=>{a||m(void 0)},[a]);let D=T.useCallback(()=>{e.length&&(!a&&g>=w&&n(e[C]),o(!a))},[a,e,g,n,C,w]),O=T.useCallback(()=>{o(!1),e.length&&n(e[C])},[e,n,C]),se=T.useCallback(()=>{let t=Math.max(g-1,C);t!==g&&n(e[t])},[e,g,n,C]),ce=T.useCallback(()=>{let t=Math.min(g+1,w);t!==g&&n(e[t])},[e,g,n,w]),le=T.useCallback(()=>{c(e=>(e+1)%dm.length)},[]);T.useEffect(()=>{o(!1)},[e]);let k=T.useCallback(e=>{let t=E.current.getBoundingClientRect();return Math.max(0,Math.min(1,(e.clientX-t.left)/t.width))},[]),A=T.useCallback(t=>{if(!e.length)return;let n=ne(_+t*y);te.current(ee.current[n])},[e,_,y,ne]),j=T.useRef(null);T.useEffect(()=>()=>j.current?.(),[]);let ue=T.useCallback(t=>{if(!e.length||t.button!==0)return;t.preventDefault(),t.stopPropagation(),E.current?.focus(),u(!0),o(!1);let n=k(t);f(n),A(n);let r=e=>{let t=k(e);f(t),A(t)},i=e=>{document.removeEventListener(`mousemove`,r),document.removeEventListener(`mouseup`,i),j.current=null,A(k(e)),f(void 0),u(!1)};document.addEventListener(`mousemove`,r),document.addEventListener(`mouseup`,i),j.current=()=>{document.removeEventListener(`mousemove`,r),document.removeEventListener(`mouseup`,i)}},[e,A,k]),de=!a&&!l,fe=e.length>0&&e.length<=200?e.map(e=>(e.startTime-_)/y*100):void 0,pe=g>C,me=g<w,he=a||g>C;return{playing:a,speed:h,currentIndex:g,percent:ie,animating:de,togglePlay:D,stop:O,prev:se,next:ce,cycleSpeed:le,onScrubberMouseDown:ue,scrubberRef:E,actionsLength:e.length,canPrev:pe,canNext:me,canStop:he,ticks:fe}}var pm=({playback:e})=>(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(Fn,{icon:`chevron-left`,title:`Previous action`,onClick:e.prev,disabled:!e.canPrev}),(0,M.jsx)(Fn,{icon:e.playing?`debug-pause`:`play`,disabled:!e.actionsLength,title:e.playing?`Pause`:`Play`,onClick:e.togglePlay}),(0,M.jsx)(Fn,{icon:`debug-stop`,title:`Stop`,onClick:e.stop,disabled:!e.canStop}),(0,M.jsx)(Fn,{icon:`chevron-right`,title:`Next action`,onClick:e.next,disabled:!e.canNext}),(0,M.jsxs)(`button`,{className:`playback-speed`,onClick:e.cycleSpeed,title:`Playback speed`,children:[e.speed,`x`]})]}),mm=({playback:e})=>{let t=T.useCallback(t=>{t.key===`ArrowLeft`?(t.preventDefault(),e.prev()):t.key===`ArrowRight`&&(t.preventDefault(),e.next())},[e]);return(0,M.jsxs)(`div`,{className:`playback-scrubber`,ref:e.scrubberRef,onMouseDown:e.onScrubberMouseDown,onKeyDown:t,tabIndex:0,role:`slider`,"aria-label":`Playback position`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(e.percent),children:[(0,M.jsx)(`div`,{className:`playback-track`}),(0,M.jsx)(`div`,{className:`playback-track-filled`+(e.animating?` animated`:``),style:{width:`${e.percent}%`}}),e.ticks?.map((e,t)=>(0,M.jsx)(`div`,{className:`playback-tick`,style:{left:`${e}%`}},t)),(0,M.jsx)(`div`,{className:`playback-thumb`+(e.animating?` animated`:``),style:{left:`${e.percent}%`}})]})},hm=({action:e,model:t,sdkLanguage:n,testIdAttributeName:r,isInspecting:i,setIsInspecting:a,highlightedElement:o,setHighlightedElement:s,playback:c})=>{let[l,u]=T.useState(`action`),[d]=ae(`shouldPopulateCanvasFromScreenshot`,!1),f=T.useMemo(()=>Sm(e),[e]),{snapshotInfoUrl:p,snapshotUrl:m,popoutUrl:h}=T.useMemo(()=>{let e=f[l];return t&&e?wm(t.traceUri,e,d):{snapshotInfoUrl:void 0,snapshotUrl:void 0,popoutUrl:void 0}},[f,l,d,t]),g=T.useMemo(()=>p===void 0?void 0:{snapshotInfoUrl:p,snapshotUrl:m,popoutUrl:h},[p,m,h]);return(0,M.jsxs)(`div`,{className:`snapshot-tab vbox`,children:[(0,M.jsxs)(Xr,{children:[(0,M.jsx)(Fn,{className:`pick-locator`,title:`Pick locator`,icon:`target`,toggled:i,onClick:()=>a(!i)}),(0,M.jsx)(`div`,{className:`hbox`,style:{height:`100%`},role:`tablist`,children:[`action`,`before`,`after`].map(e=>(0,M.jsx)(Qr,{id:e,title:vm(e),selected:l===e,onSelect:()=>u(e)},e))}),(0,M.jsx)(`div`,{style:{flex:`auto`}}),(0,M.jsx)(pm,{playback:c}),(0,M.jsx)(Fn,{icon:`link-external`,title:`Open snapshot in a new tab`,disabled:!g?.popoutUrl,onClick:()=>{let e=window.open(g?.popoutUrl||``,`_blank`);e?.addEventListener(`DOMContentLoaded`,()=>{new Dl(e,{isUnderTest:Cm,frameSeq:0,sdkLanguage:n,testIdAttributeName:r,stableRafCount:1,browserName:`chromium`,customEngines:[]}).consoleApi.install()})}})]}),(0,M.jsx)(gm,{snapshotUrls:g,sdkLanguage:n,testIdAttributeName:r,isInspecting:i,setIsInspecting:a,highlightedElement:o,setHighlightedElement:s})]})},gm=({snapshotUrls:e,sdkLanguage:t,testIdAttributeName:n,isInspecting:r,setIsInspecting:i,highlightedElement:a,setHighlightedElement:o})=>{let s=T.useRef(null),c=T.useRef(null),[l,u]=T.useState({viewport:Em,url:``}),d=T.useRef({iteration:0,visibleIframe:0});return T.useEffect(()=>{(async()=>{let t=d.current.iteration+1,n=1-d.current.visibleIframe;d.current.iteration=t;let r=await Tm(e?.snapshotInfoUrl);if(d.current.iteration!==t)return;let i=[s,c][n].current;if(i){let t=()=>{},n=new Promise(e=>t=e);try{i.addEventListener(`load`,t),i.addEventListener(`error`,t);let r=e?.snapshotUrl||Zl;i.contentWindow?i.contentWindow.location.replace(r):i.src=r,await n}catch{}finally{i.removeEventListener(`load`,t),i.removeEventListener(`error`,t)}}d.current.iteration===t&&(d.current.visibleIframe=n,u(r))})()},[e]),(0,M.jsxs)(`div`,{className:`vbox`,tabIndex:0,onKeyDown:e=>{e.key===`Escape`&&r&&i(!1)},children:[(0,M.jsx)(ym,{isInspecting:r,sdkLanguage:t,testIdAttributeName:n,highlightedElement:a,setHighlightedElement:o,iframe:s.current,iteration:d.current.iteration}),(0,M.jsx)(ym,{isInspecting:r,sdkLanguage:t,testIdAttributeName:n,highlightedElement:a,setHighlightedElement:o,iframe:c.current,iteration:d.current.iteration}),(0,M.jsx)(_m,{snapshotInfo:l,children:(0,M.jsxs)(`div`,{className:`snapshot-switcher`,children:[(0,M.jsx)(`iframe`,{ref:s,name:`snapshot`,title:`DOM Snapshot`,sandbox:`allow-same-origin allow-scripts`,className:k(d.current.visibleIframe===0&&`snapshot-visible`)}),(0,M.jsx)(`iframe`,{ref:c,name:`snapshot`,title:`DOM Snapshot`,sandbox:`allow-same-origin allow-scripts`,className:k(d.current.visibleIframe===1&&`snapshot-visible`)})]})})]})},_m=({snapshotInfo:e,children:t})=>{let[n,r]=E(),i={width:e.viewport.width,height:e.viewport.height},a={width:Math.max(i.width,480),height:Math.max(i.height+40,320)},o=n.width-20,s=n.height-20,c=Math.min(o/a.width,s/a.height,1),l={x:(n.width-a.width)/2-10,y:(n.height-a.height)/2-10};return(0,M.jsx)(`div`,{ref:r,className:`snapshot-wrapper`,children:(0,M.jsxs)(`div`,{className:`snapshot-container`,style:{width:a.width+`px`,height:a.height+`px`,transform:`translate(${l.x}px, ${l.y}px) scale(${c})`},children:[(0,M.jsx)(au,{url:e.url}),(0,M.jsx)(`div`,{className:`snapshot-browser-body`,children:(0,M.jsx)(`div`,{style:{width:i.width+`px`,height:i.height+`px`},children:t})})]})})};function vm(e){return e===`before`?`Before`:e===`after`?`After`:e===`action`?`Action`:e}var ym=({iframe:e,isInspecting:t,sdkLanguage:n,testIdAttributeName:r,highlightedElement:i,setHighlightedElement:a,iteration:o})=>(T.useEffect(()=>{let o=i.lastEdited===`ariaSnapshot`?i.ariaSnapshot:void 0,s=i.lastEdited===`locator`?i.locator:void 0,c=!!o||!!s||t,l=[],u=new URLSearchParams(window.location.search).get(`isUnderTest`)===`true`;try{bm(l,c,n,r,u,``,e?.contentWindow)}catch{}let d=o?Zi(um,o):void 0,f=s?nu(n,s,r):void 0;for(let{recorder:e,frameSelector:i}of l){let o=f?.startsWith(i)?f.substring(i.length).trim():void 0,s=d?.errors.length===0?d.fragment:void 0;e.setUIState({mode:t?`inspecting`:`none`,actionSelector:o,ariaTemplate:s,language:n,testIdAttributeName:r,overlay:{offsetX:0}},{async elementPicked(e){a({locator:Cn(n,i+e.selector),ariaSnapshot:e.ariaSnapshot,lastEdited:`none`})},highlightUpdated(){for(let t of l)t.recorder!==e&&t.recorder.clearHighlight()}})}},[e,t,i,a,n,r,o]),(0,M.jsx)(M.Fragment,{}));function bm(e,t,n,r,i,a,o){if(!o)return;let s=o;if(!s._recorder&&t){let e=new Dl(o,{isUnderTest:i,frameSeq:0,sdkLanguage:n,testIdAttributeName:r,stableRafCount:1,browserName:`chromium`,customEngines:[]}),t=new Hl(e);s._injectedScript=e,s._recorder={recorder:t,frameSelector:a},i&&(window._weakRecordersForTest=window._weakRecordersForTest||new Set,window._weakRecordersForTest.add(new WeakRef(t)))}s._recorder&&e.push(s._recorder);for(let c=0;c<o.frames.length;++c){let l=o.frames[c];bm(e,t,n,r,i,a+(l.frameElement?s._injectedScript.generateSelectorSimple(l.frameElement,{omitInternalEngines:!0,testIdAttributeName:r})+` >> internal:control=enter-frame >> `:``),l)}}var xm=(e,t)=>{if(!e)return;let n=e[t];if(n){if(!e.pageId){console.error(`snapshot action must have a pageId`);return}return{action:e,snapshotName:n,pageId:e.pageId,point:e.point}}};function Sm(e){if(!e)return{};let t=xm(e,`beforeSnapshot`);if(!t){for(let n=Ze(e);n;n=Ze(n))if(n.endTime<=e.startTime&&n.afterSnapshot){t=xm(n,`afterSnapshot`);break}}let n=xm(e,`afterSnapshot`);if(!n){let r;for(let t=Qe(e);t&&t.startTime<=e.endTime;t=Qe(t))t.endTime>e.endTime||!t.afterSnapshot||r&&r.endTime>t.endTime||(r=t);n=r?xm(r,`afterSnapshot`):t}let r=xm(e,`inputSnapshot`)??n;return r&&(r.point=e.point),{action:r,before:t,after:n}}var Cm=new URLSearchParams(window.location.search).has(`isUnderTest`);function wm(e,t,n){let r=new URLSearchParams;r.set(`trace`,e),r.set(`name`,t.snapshotName),Cm&&r.set(`isUnderTest`,`true`),t.point&&(r.set(`pointX`,String(t.point.x)),r.set(`pointY`,String(t.point.y))),n&&r.set(`shouldPopulateCanvasFromScreenshot`,`1`);let i=new URL(`snapshot/${t.pageId}?${r.toString()}`,window.location.href).toString(),a=new URL(`snapshotInfo/${t.pageId}?${r.toString()}`,window.location.href).toString(),o=new URLSearchParams;return o.set(`r`,i),o.set(`trace`,e),{snapshotInfoUrl:a,snapshotUrl:i,popoutUrl:new URL(`snapshot.html?${o.toString()}`,window.location.href).toString()}}async function Tm(e){let t={url:``,viewport:Em,timestamp:void 0,wallTime:void 0};if(e){let n=await(await fetch(e)).json();n.error||(t.url=n.url,t.viewport=n.viewport,t.timestamp=n.timestamp,t.wallTime=n.wallTime)}return t}var Em={width:1280,height:720},Dm=Qn,Om=({stack:e,setSelectedFrame:t,selectedFrame:n})=>{let r=e||[];return(0,M.jsx)(Dm,{name:`stack-trace`,ariaLabel:`Stack trace`,items:r,selectedItem:r[n],render:e=>{let t=e.file[1]===`:`?`\\`:`/`;return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`span`,{className:`stack-trace-frame-function`,children:e.function||`(anonymous)`}),(0,M.jsx)(`span`,{className:`stack-trace-frame-location`,children:e.file.split(t).pop()}),(0,M.jsx)(`span`,{className:`stack-trace-frame-line`,children:`:`+e.line})]})},onSelected:e=>t(r.indexOf(e))})};function km(e,t,n,r,i){let a=Mr();return te(async()=>{let o=e?.[t],s=o?.file?o:i;if(!s)return{source:{file:``,errors:[],content:void 0},targetLine:0,highlight:[]};let c=s.file,l=n.get(c);l||(l={errors:i?.source?.errors||[],content:i?.source?.content},n.set(c,l));let u=s?.line||l.errors[0]?.line||0,d=r&&c.startsWith(r)?c.substring(r.length+1):c,f=l.errors.map(e=>({type:`error`,line:e.line,message:e.message}));if(f.push({line:u,type:`running`}),i?.source?.content!==void 0)l.content=i.source.content;else if(l.content===void 0||s===i){let e=await jm(c);try{let t=a?await fetch(a.createRelativeUrl(`sha1/src@${e}.txt`)):void 0;(!t||t.status===404)&&(t=await fetch(`file?path=${encodeURIComponent(c)}`)),t.status>=400?l.content=``:l.content=await t.text()}catch{l.content=`<Unable to read "${c}">`}}return{model:a,source:l,highlight:f,targetLine:u,fileName:d,location:s}},[e,t,r,i],{source:{errors:[],content:`Loading…`},highlight:[]})}var Am=({stack:e,sources:t,rootDir:n,fallbackLocation:r,stackFrameLocation:i,onOpenExternally:a})=>{let[o,s]=T.useState(),[c,l]=T.useState(0);T.useEffect(()=>{o!==e&&(s(e),l(0))},[e,o,s,l]);let{source:u,highlight:d,targetLine:f,fileName:p,location:m}=km(e,c,t,n,r),h=T.useCallback(()=>{m&&(a?a(m):window.location.href=`vscode://file//${m.file}:${m.line}`)},[a,m]),g=(e?.length??0)>1,_=Mm(p),v=_.endsWith(`.md`)?`markdown`:`javascript`;return(0,M.jsx)(ot,{sidebarSize:200,orientation:i===`bottom`?`vertical`:`horizontal`,sidebarHidden:!g,main:(0,M.jsxs)(`div`,{className:`vbox`,"data-testid":`source-code`,children:[p&&(0,M.jsxs)(Xr,{children:[(0,M.jsx)(`div`,{className:`source-tab-file-name`,title:p,children:(0,M.jsx)(`div`,{children:_})}),(0,M.jsx)(Un,{description:`Copy filename`,value:_}),m&&(0,M.jsx)(Fn,{icon:`link-external`,title:`Open in VS Code`,onClick:h})]}),(0,M.jsx)(yr,{text:u.content||``,highlighter:v,highlight:d,revealLine:f,readOnly:!0,lineNumbers:!0,dataTestId:`source-code-mirror`})]}),sidebar:(0,M.jsx)(Om,{stack:e,selectedFrame:c,setSelectedFrame:l})})};async function jm(e){let t=new TextEncoder().encode(e),n=await crypto.subtle.digest(`SHA-1`,t),r=[],i=new DataView(n);for(let e=0;e<i.byteLength;e+=1){let t=i.getUint8(e).toString(16).padStart(2,`0`);r.push(t)}return r.join(``)}function Mm(e){if(!e)return``;let t=e?.includes(`/`)?`/`:`\\`;return e?.split(t).pop()??``}var Nm={width:200,height:45},Pm=2.5,Fm=Nm.height+Pm*2,Im=({boundaries:e,previewPoint:t})=>{let n=Mr(),[r,i]=E(),a=T.useRef(null),o=0;if(a.current&&t){let e=a.current.getBoundingClientRect();o=(t.clientY-e.top+a.current.scrollTop)/Fm|0}let s=n?.pages?.[o]?.screencastFrames,c,l;if(t!==void 0&&s&&s.length){c=s[re(s,e.minimum+(e.maximum-e.minimum)*t.x/r.width,Rm)-1];let n={width:Math.min(800,window.innerWidth/2|0),height:Math.min(800,window.innerHeight/2|0)};l=c?zm({width:c.width,height:c.height},n):void 0}return(0,M.jsxs)(`div`,{className:`film-strip`,ref:i,children:[(0,M.jsx)(`div`,{className:`film-strip-lanes`,ref:a,children:n?.pages.map((t,n)=>t.screencastFrames.length?(0,M.jsx)(Lm,{boundaries:e,page:t,width:r.width},n):null)}),n&&t?.x!==void 0&&(0,M.jsxs)(`div`,{className:`film-strip-hover`,style:{top:r.bottom+5,left:Math.min(t.x,r.width-(l?l.width:0)-10)},children:[c&&l&&(0,M.jsx)(`div`,{style:{width:l.width,height:l.height},children:(0,M.jsx)(`img`,{src:n.createRelativeUrl(`sha1/${c.sha1}`),width:l.width,height:l.height})}),t.action&&(0,M.jsx)(`div`,{className:`film-strip-hover-title`,children:Vn(t.action,t)})]})]})},Lm=({boundaries:e,page:t,width:n})=>{let r=Mr(),i={width:0,height:0},a=t.screencastFrames;for(let e of a)i.width=Math.max(i.width,e.width),i.height=Math.max(i.height,e.height);let o=zm(i,Nm),s=a[0].timestamp,c=a[a.length-1].timestamp,l=e.maximum-e.minimum,u=(s-e.minimum)/l*n,d=(e.maximum-c)/l*n,f=(c-s)/l*n/(o.width+2*Pm)|0,p=(c-s)/f,m=[];for(let e=0;s&&p&&e<f;++e){let t=re(a,s+p*e,Rm)-1;m.push((0,M.jsx)(`div`,{className:`film-strip-frame`,style:{width:o.width,height:o.height,backgroundImage:`url(${r?.createRelativeUrl(`sha1/`+a[t].sha1)})`,backgroundSize:`${o.width}px ${o.height}px`,margin:Pm,marginRight:Pm}},e))}return m.push((0,M.jsx)(`div`,{className:`film-strip-frame`,style:{width:o.width,height:o.height,backgroundImage:`url(${r?.createRelativeUrl(`sha1/`+a[a.length-1].sha1)})`,backgroundSize:`${o.width}px ${o.height}px`,margin:Pm,marginRight:Pm}},m.length)),(0,M.jsx)(`div`,{className:`film-strip-lane`,style:{marginLeft:u+`px`,marginRight:d+`px`},children:m})};function Rm(e,t){return e-t.timestamp}function zm(e,t){let n=Math.max(e.width/t.width,e.height/t.height);return{width:e.width/n|0,height:e.height/n|0}}var Bm=({model:e,boundaries:t,onSelected:n,selectedTime:r,setSelectedTime:i,highlightedTime:a,sdkLanguage:o,scrubber:s})=>{let[c,l]=E(),[u,d]=T.useState(),[f,p]=T.useState(),[m]=ae(`actionsFilter`,[]),{offsets:h,curtainLeft:g,curtainRight:_}=T.useMemo(()=>{let e=r||t;if(u&&u.startX!==u.endX){let n=Um(c.width,t,u.startX),r=Um(c.width,t,u.endX);e={minimum:Math.min(n,r),maximum:Math.max(n,r)}}let n=Hm(c.width,t,e.minimum),i=Hm(c.width,t,t.maximum)-Hm(c.width,t,e.maximum);return{offsets:Vm(c.width,t),curtainLeft:n,curtainRight:i}},[r,t,u,c]),v=T.useMemo(()=>e?.filteredActions(m),[e,m]),y=T.useMemo(()=>{if(!a)return;let e=Hm(c.width,t,a.minimum),n=Hm(c.width,t,a.maximum);return{left:e,width:Math.max(2,n-e)}},[a,t,c]),b=T.useCallback(e=>{if(p(void 0),!l.current)return;let n=e.clientX-l.current.getBoundingClientRect().left,i=Um(c.width,t,n),a=r?Hm(c.width,t,r.minimum):0,o=r?Hm(c.width,t,r.maximum):0;r&&Math.abs(n-a)<10?d({startX:o,endX:n,type:`resize`}):r&&Math.abs(n-o)<10?d({startX:a,endX:n,type:`resize`}):r&&i>r.minimum&&i<r.maximum&&e.clientY-l.current.getBoundingClientRect().top<20?d({startX:a,endX:o,pivot:n,type:`move`}):d({startX:n,endX:n,type:`resize`})},[t,c,l,r]),x=T.useCallback(e=>{if(!l.current)return;let r=e.clientX-l.current.getBoundingClientRect().left,a=Um(c.width,t,r),o=v?.findLast(e=>e.startTime<=a);if(!e.buttons){d(void 0);return}if(o&&n(o),!u)return;let s=u;if(u.type===`resize`)s={...u,endX:r};else{let e=r-u.pivot,t=u.startX+e,n=u.endX+e;t<0&&(t=0,n=t+(u.endX-u.startX)),n>c.width&&(n=c.width,t=n-(u.endX-u.startX)),s={...u,startX:t,endX:n,pivot:r}}d(s);let f=Um(c.width,t,s.startX),p=Um(c.width,t,s.endX);f!==p&&i({minimum:Math.min(f,p),maximum:Math.max(f,p)})},[t,u,c,v,n,l,i]),S=T.useCallback(()=>{if(p(void 0),u){if(u.startX!==u.endX){let e=Um(c.width,t,u.startX),n=Um(c.width,t,u.endX);i({minimum:Math.min(e,n),maximum:Math.max(e,n)})}else{let e=Um(c.width,t,u.startX),r=v?.findLast(t=>t.startTime<=e);r&&n(r),i(void 0)}d(void 0)}},[t,u,c,v,i,n]),C=T.useCallback(e=>{if(!l.current)return;let n=e.clientX-l.current.getBoundingClientRect().left,r=Um(c.width,t,n),i=v?.findLast(e=>e.startTime<=r);p({x:n,clientY:e.clientY,action:i,sdkLanguage:o})},[t,c,v,l,o]),w=T.useCallback(()=>{p(void 0)},[]),ee=T.useCallback(()=>{i(void 0)},[i]);return(0,M.jsxs)(`div`,{className:`timeline-view-container`,children:[!!u&&(0,M.jsx)(sr,{cursor:u?.type===`resize`?`ew-resize`:`grab`,onPaneMouseUp:S,onPaneMouseMove:x,onPaneDoubleClick:ee}),(0,M.jsxs)(`div`,{ref:l,className:`timeline-view`,onMouseDown:b,onMouseMove:C,onMouseLeave:w,children:[(0,M.jsx)(`div`,{className:`timeline-grid`,children:h.map((e,n)=>(0,M.jsx)(`div`,{className:`timeline-divider`,style:{left:e.position+`px`},children:(0,M.jsx)(`div`,{className:`timeline-time`,children:st(e.time-t.minimum)})},n))}),(0,M.jsx)(Im,{boundaries:t,previewPoint:f}),s,y&&(0,M.jsx)(`div`,{className:`timeline-highlight`,style:{left:y.left,width:y.width}}),r&&(0,M.jsxs)(`div`,{className:`timeline-window`,children:[(0,M.jsx)(`div`,{className:`timeline-window-curtain left`,style:{width:g}}),(0,M.jsx)(`div`,{className:`timeline-window-resizer`,style:{left:-5}}),(0,M.jsx)(`div`,{className:`timeline-window-center`,children:(0,M.jsx)(`div`,{className:`timeline-window-drag`})}),(0,M.jsx)(`div`,{className:`timeline-window-resizer`,style:{left:5}}),(0,M.jsx)(`div`,{className:`timeline-window-curtain right`,style:{width:_}})]})]})]})};function Vm(e,t){let n=e/64,r=t.maximum-t.minimum,i=e/r,a=r/n;a=10**Math.ceil(Math.log(a)/Math.LN10),a*i>=320&&(a/=5),a*i>=128&&(a/=2);let o=t.minimum,s=t.maximum;s+=64/i,n=Math.ceil((s-o)/a),a||(n=0);let c=[];for(let r=0;r<n;++r){let n=o+a*r;c.push({position:Hm(e,t,n),time:n})}return c}function Hm(e,t,n){return(n-t.minimum)/(t.maximum-t.minimum)*e}function Um(e,t,n){return n/e*(t.maximum-t.minimum)+t.minimum}var Wm=({model:e})=>{if(!e)return(0,M.jsx)(M.Fragment,{});let t=e.wallTime===void 0?void 0:new Date(e.wallTime).toLocaleString(void 0,{timeZoneName:`short`});return(0,M.jsxs)(`div`,{style:{flex:`auto`,display:`block`,overflow:`hidden auto`},children:[(0,M.jsx)(`div`,{className:`call-section`,style:{paddingTop:2},children:`Time`}),!!t&&(0,M.jsxs)(`div`,{className:`call-line`,children:[`start time:`,(0,M.jsx)(`span`,{className:`call-value datetime`,title:t,children:t})]}),(0,M.jsxs)(`div`,{className:`call-line`,children:[`duration:`,(0,M.jsx)(`span`,{className:`call-value number`,title:st(e.endTime-e.startTime),children:st(e.endTime-e.startTime)})]}),e.testTimeout!==void 0&&(0,M.jsxs)(`div`,{className:`call-line`,children:[`test timeout:`,(0,M.jsx)(`span`,{className:`call-value number`,title:st(e.testTimeout),children:st(e.testTimeout)})]}),(0,M.jsx)(`div`,{className:`call-section`,children:`Browser`}),(0,M.jsxs)(`div`,{className:`call-line`,children:[`engine:`,(0,M.jsx)(`span`,{className:`call-value string`,title:e.browserName,children:e.browserName})]}),e.channel&&(0,M.jsxs)(`div`,{className:`call-line`,children:[`channel:`,(0,M.jsx)(`span`,{className:`call-value string`,title:e.channel,children:e.channel})]}),e.platform&&(0,M.jsxs)(`div`,{className:`call-line`,children:[`platform:`,(0,M.jsx)(`span`,{className:`call-value string`,title:e.platform,children:e.platform})]}),e.playwrightVersion&&(0,M.jsxs)(`div`,{className:`call-line`,children:[`playwright version:`,(0,M.jsx)(`span`,{className:`call-value string`,title:e.playwrightVersion,children:e.playwrightVersion})]}),e.options.userAgent&&(0,M.jsxs)(`div`,{className:`call-line`,children:[`user agent:`,(0,M.jsx)(`span`,{className:`call-value datetime`,title:e.options.userAgent,children:e.options.userAgent})]}),e.options.baseURL&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`div`,{className:`call-section`,style:{paddingTop:2},children:`Config`}),(0,M.jsxs)(`div`,{className:`call-line`,children:[`baseURL:`,f(e.options.baseURL)?(0,M.jsx)(`a`,{className:`call-value string`,href:e.options.baseURL,title:e.options.baseURL,target:`_blank`,rel:`noopener noreferrer`,children:e.options.baseURL}):(0,M.jsx)(`span`,{className:`call-value string`,title:e.options.baseURL,children:e.options.baseURL})]})]}),(0,M.jsx)(`div`,{className:`call-section`,children:`Viewport`}),e.options.viewport&&(0,M.jsxs)(`div`,{className:`call-line`,children:[`width:`,(0,M.jsx)(`span`,{className:`call-value number`,title:String(!!e.options.viewport?.width),children:e.options.viewport.width})]}),e.options.viewport&&(0,M.jsxs)(`div`,{className:`call-line`,children:[`height:`,(0,M.jsx)(`span`,{className:`call-value number`,title:String(!!e.options.viewport?.height),children:e.options.viewport.height})]}),(0,M.jsxs)(`div`,{className:`call-line`,children:[`is mobile:`,(0,M.jsx)(`span`,{className:`call-value boolean`,title:String(!!e.options.isMobile),children:String(!!e.options.isMobile)})]}),e.options.deviceScaleFactor&&(0,M.jsxs)(`div`,{className:`call-line`,children:[`device scale:`,(0,M.jsx)(`span`,{className:`call-value number`,title:String(e.options.deviceScaleFactor),children:String(e.options.deviceScaleFactor)})]}),(0,M.jsx)(`div`,{className:`call-section`,children:`Counts`}),(0,M.jsxs)(`div`,{className:`call-line`,children:[`pages:`,(0,M.jsx)(`span`,{className:`call-value number`,children:e.pages.length})]}),(0,M.jsxs)(`div`,{className:`call-line`,children:[`actions:`,(0,M.jsx)(`span`,{className:`call-value number`,children:e.actions.length})]}),(0,M.jsxs)(`div`,{className:`call-line`,children:[`events:`,(0,M.jsx)(`span`,{className:`call-value number`,children:e.events.length})]})]})},Gm=({annotations:e})=>e.length?(0,M.jsx)(`div`,{className:`annotations-tab`,children:e.map((e,t)=>(0,M.jsxs)(`div`,{className:`annotation-item`,children:[(0,M.jsx)(`span`,{style:{fontWeight:`bold`},children:e.type}),e.description&&(0,M.jsxs)(`span`,{children:[`: `,kr(e.description)]})]},`annotation-${t}`))}):(0,M.jsx)(Gn,{text:`No annotations`}),Km=({sdkLanguage:e,isInspecting:t,setIsInspecting:n,highlightedElement:r,setHighlightedElement:i})=>{let[a,o]=T.useState(),s=T.useCallback(e=>{let{errors:t}=Zi(um,e,{prettyErrors:!1});o(t.map(e=>({message:e.message,line:e.range[1].line,column:e.range[1].col,type:`subtle-error`}))),i({...r,ariaSnapshot:e,lastEdited:`ariaSnapshot`}),n(!1)},[r,i,n]);return(0,M.jsxs)(`div`,{style:{flex:`auto`,backgroundColor:`var(--vscode-sideBar-background)`,padding:`0 10px 10px 10px`,overflow:`auto`},children:[(0,M.jsxs)(`div`,{className:`hbox`,style:{lineHeight:`28px`,color:`var(--vscode-editorCodeLens-foreground)`},children:[(0,M.jsx)(`div`,{children:`Locator`}),(0,M.jsx)(Fn,{style:{margin:`0 4px`},title:`Pick locator`,icon:`target`,toggled:t,onClick:()=>n(!t)}),(0,M.jsx)(`div`,{style:{flex:`auto`}}),(0,M.jsx)(Fn,{icon:`files`,title:`Copy locator`,onClick:()=>{ie(r.locator||``)}})]}),(0,M.jsx)(`div`,{style:{height:50},children:(0,M.jsx)(yr,{text:r.locator||``,highlighter:e,isFocused:!0,wrapLines:!0,onChange:e=>{i({...r,locator:e,lastEdited:`locator`}),n(!1)}})}),(0,M.jsxs)(`div`,{className:`hbox`,style:{lineHeight:`28px`,color:`var(--vscode-editorCodeLens-foreground)`},children:[(0,M.jsx)(`div`,{style:{flex:`auto`},children:`Aria snapshot`}),(0,M.jsx)(Fn,{icon:`files`,title:`Copy snapshot`,onClick:()=>{ie(r.ariaSnapshot||``)}})]}),(0,M.jsx)(`div`,{style:{height:150},children:(0,M.jsx)(yr,{text:r.ariaSnapshot||``,highlighter:`yaml`,wrapLines:!1,highlight:a,onChange:s})})]})},qm=({className:e,style:t,open:n,isModal:r,minWidth:i,verticalOffset:a,requestClose:o,anchor:s,dataTestId:c,children:l})=>{let u=T.useRef(null),[d,f]=T.useState(0),[p]=ne(u),[m,h]=ne(s),g=s?Jm(p,m,a):void 0;return T.useEffect(()=>{let e=e=>{!u.current||!(e.target instanceof Node)||u.current.contains(e.target)||o?.()},t=e=>{e.key===`Escape`&&o?.()};return n?(document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}):()=>{}},[n,o]),T.useLayoutEffect(()=>h(),[n,h]),T.useEffect(()=>{let e=()=>f(e=>e+1);return window.addEventListener(`resize`,e),()=>{window.removeEventListener(`resize`,e)}},[]),T.useLayoutEffect(()=>{u.current&&(n?r?u.current.showModal():u.current.show():u.current.close())},[n,r]),(0,M.jsx)(`dialog`,{ref:u,style:{position:`fixed`,margin:g?0:void 0,zIndex:110,top:g?.top,left:g?.left,minWidth:i||0,...t},className:e,"data-testid":c,children:l})};function Jm(e,t,n=4,r=4){let i=Math.max(r,t.left);i+e.width>window.innerWidth-r&&(i=window.innerWidth-e.width-r);let a=Math.max(0,t.bottom)+n;return a+e.height>window.innerHeight-n&&(a=Math.max(0,t.top)>e.height+n?Math.max(0,t.top)-e.height-n:window.innerHeight-n-e.height),{left:i,top:a}}var Ym=({title:e,icon:t,buttonChildren:n,anchorRef:r,dialogDataTestId:i,children:a})=>{let o=T.useRef(null),s=r??o,[c,l]=T.useState(!1);return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(Fn,{ref:o,icon:t,title:e,onClick:()=>l(e=>!e),children:n}),(0,M.jsx)(qm,{style:{backgroundColor:`var(--vscode-sideBar-background)`,padding:`4px 8px`},open:c,verticalOffset:8,requestClose:()=>l(!1),anchor:s,dataTestId:i,children:a})]})},Xm=({settings:e})=>(0,M.jsx)(`div`,{className:`vbox settings-view`,children:e.map(e=>{let t=`setting-${e.name.replaceAll(/\s+/g,`-`)}`;return(0,M.jsx)(`div`,{className:`setting setting-${e.type}`,title:e.title,children:Zm(e,t)},e.name)})}),Zm=(e,t)=>{switch(e.type){case`check`:return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`input`,{type:`checkbox`,id:t,checked:e.value,onChange:()=>e.set(!e.value)}),(0,M.jsxs)(`label`,{htmlFor:t,children:[e.name,!!e.count&&(0,M.jsx)(`span`,{className:`setting-counter`,children:e.count})]})]});case`select`:return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsxs)(`label`,{htmlFor:t,children:[e.name,`:`,!!e.count&&(0,M.jsx)(`span`,{className:`setting-counter`,children:e.count})]}),(0,M.jsx)(`select`,{id:t,value:e.value,onChange:t=>e.set(t.target.value),children:e.options.map(e=>(0,M.jsx)(`option`,{value:e.value,children:e.label},e.value))})]});default:return null}},Qm=e=>{let t=th(e.model?.traceUri);return(0,M.jsx)(jr.Provider,{value:e.model,children:(0,M.jsx)($m,{partition:t,...e})})},$m=e=>{let{partition:t,model:n,showSourcesFirst:r,rootDir:i,fallbackLocation:a,isLive:o,hideTimeline:s,status:c,annotations:l,inert:u,onOpenExternally:d,revealSource:f,testRunMetadata:p}=e,[m,h]=ae(`navigatorTab`,`actions`),[g,_]=ae(`propertiesTab`,r?`source`:`call`),[v,y]=ae(`propertiesSidebarLocation`,`bottom`),[b]=ae(`actionsFilter`,[]),[x,S]=se(`selectedCallId`),[C,w]=se(`selectedTime`),[ee,te]=se(`highlightedCallId`),[E,ne]=se(`revealedErrorKey`),[re,ie]=se(`revealedAttachmentCallId`),[oe,D]=se(`treeState`,{expandedItems:new Map}),[O,le]=T.useState(``);ce(t);let[A,j]=T.useState({lastEdited:`none`}),[ue,de]=T.useState(!1),[fe,pe]=T.useState(void 0),me=T.useCallback(e=>{S(e?.callId),ne(void 0)},[S,ne]),he=T.useMemo(()=>n?.filteredActions(b),[n,b]),ge=(n?.actions.length??0)-(he?.length??0),_e=T.useMemo(()=>he?.find(e=>e.callId===ee),[he,ee]),ve=T.useCallback(e=>{te(e?.callId)},[te]),ye=T.useMemo(()=>n?.sources||new Map,[n]);T.useEffect(()=>{w(void 0),ne(void 0)},[n,w,ne]);let be=T.useMemo(()=>{if(x){let e=he?.find(e=>e.callId===x);if(e)return e}let e=n?.failedAction();if(e)return e;if(he?.length){let e=he.length-1;for(let t=0;t<he.length;++t)if(he[t].title===`After Hooks`&&t){e=t-1;break}return he[e]}},[n,he,x]),xe=T.useMemo(()=>_e||be,[be,_e]),Se=T.useCallback(e=>{me(e),ve(void 0)},[me,ve]),{boundaries:Ce}=T.useMemo(()=>{let e={minimum:n?.startTime||0,maximum:n?.endTime||3e4};return e.minimum>e.maximum&&(e.minimum=0,e.maximum=3e4),e.maximum+=(e.maximum-e.minimum)/20,{boundaries:e}},[n]),we=fm(he||[],be,Se,C,Ce),Te=T.useCallback(e=>{_(e),e!==`inspector`&&de(!1)},[_]),Ee=T.useCallback(e=>{!ue&&e&&Te(`inspector`),de(e)},[de,Te,ue]),De=T.useCallback(e=>{j(e),Te(`inspector`)},[Te]),Oe=T.useCallback(e=>{Te(`attachments`),ie({callId:e})},[Te,ie]);T.useEffect(()=>{f&&Te(`source`)},[f,Te]);let ke=Wr(n,C),Ae=Li(n,C),je=zr(n),Me=T.useMemo(()=>E===void 0?xe?.stack:je.errors.get(E)?.stack,[xe,E,je]),Ne=n?.sdkLanguage||`javascript`,Pe={id:`inspector`,title:`Locator`,render:()=>(0,M.jsx)(Km,{sdkLanguage:Ne,isInspecting:ue,setIsInspecting:Ee,highlightedElement:A,setHighlightedElement:j})},Fe={id:`call`,title:`Call`,render:()=>(0,M.jsx)(Kn,{action:xe,startTimeOffset:n?.startTime??0,sdkLanguage:Ne})},Ie={id:`log`,title:`Log`,render:()=>(0,M.jsx)(er,{action:xe,isLive:o})},Le={id:`errors`,title:`Errors`,errorCount:je.errors.size,render:()=>(0,M.jsx)(Vr,{errorsModel:je,testRunMetadata:p,sdkLanguage:Ne,revealInSource:e=>{e.action?me(e.action):ne(e.message),Te(`source`)},wallTime:n?.wallTime??0})},Re;!be&&a&&(Re=a.source?.errors.length);let ze={id:`source`,title:`Source`,errorCount:Re,render:()=>(0,M.jsx)(Am,{stack:Me,sources:ye,rootDir:i,stackFrameLocation:v===`bottom`?`right`:`bottom`,fallbackLocation:a,onOpenExternally:d})},Be=[Pe,Fe,Ie,Le,{id:`console`,title:`Console`,count:ke.entries.length,render:()=>(0,M.jsx)(Gr,{consoleModel:ke,boundaries:Ce,selectedTime:C,onEntryHovered:pe,onAccepted:e=>w({minimum:e.timestamp,maximum:e.timestamp})})},{id:`network`,title:`Network`,count:Ae.resources.length,render:()=>(0,M.jsx)(Ri,{boundaries:Ce,networkModel:Ae,onResourceHovered:pe,sdkLanguage:n?.sdkLanguage??`javascript`})},ze,{id:`attachments`,title:`Attachments`,count:n?.visibleAttachments.length,render:()=>(0,M.jsx)(Pr,{revealedAttachmentCallId:re})}];if(l!==void 0){let e={id:`annotations`,title:`Annotations`,count:l.length,render:()=>(0,M.jsx)(Gm,{annotations:l})};Be.push(e)}if(r){let e=Be.indexOf(ze);Be.splice(e,1),Be.splice(1,0,ze)}let Ve=0;!o&&n&&n.endTime>=0?Ve=n.endTime-n.startTime:n&&n.wallTime&&(Ve=Date.now()-n.wallTime);let He={id:`actions`,title:`Actions`,component:(0,M.jsxs)(`div`,{className:`vbox`,children:[c&&(0,M.jsxs)(`div`,{className:`workbench-run-status`,"data-testid":`workbench-run-status`,children:[(0,M.jsx)(`span`,{className:k(`codicon`,Ln(c))}),(0,M.jsx)(`div`,{children:Rn(c)}),(0,M.jsx)(`div`,{className:`spacer`}),(0,M.jsx)(`div`,{className:`workbench-run-duration`,children:Ve?st(Ve):``})]}),(0,M.jsx)(`div`,{className:`workbench-action-filter`,children:(0,M.jsx)(`input`,{type:`search`,placeholder:`Filter actions`,"aria-label":`Filter actions`,spellCheck:!1,value:O,onChange:e=>le(e.target.value)})}),(0,M.jsx)(Bn,{sdkLanguage:Ne,actions:he||[],selectedAction:n?be:void 0,selectedTime:C,setSelectedTime:w,treeState:oe,setTreeState:D,onSelected:Se,onHighlighted:ve,revealActionAttachment:Oe,revealConsole:()=>Te(`console`),isLive:o,actionFilterText:O})]})},Ue={id:`metadata`,title:`Metadata`,component:(0,M.jsx)(Wm,{model:n})},We=m===`actions`&&(0,M.jsx)(eh,{counters:n?.actionCounters,hiddenActionsCount:ge});return(0,M.jsxs)(`div`,{className:`vbox workbench`,...u?{inert:!0}:{},children:[!s&&(0,M.jsx)(Bm,{model:n,boundaries:Ce,onSelected:Se,sdkLanguage:Ne,selectedTime:C,setSelectedTime:w,highlightedTime:fe,scrubber:(0,M.jsx)(mm,{playback:we})}),(0,M.jsx)(ot,{sidebarSize:250,orientation:v===`bottom`?`vertical`:`horizontal`,settingName:`propertiesSidebar`,main:(0,M.jsx)(ot,{sidebarSize:250,orientation:`horizontal`,sidebarIsFirst:!0,settingName:`actionListSidebar`,main:(0,M.jsx)(hm,{action:xe,model:n,sdkLanguage:Ne,testIdAttributeName:n?.testIdAttributeName||`data-testid`,isInspecting:ue,setIsInspecting:Ee,highlightedElement:A,setHighlightedElement:De,playback:we}),sidebar:(0,M.jsx)(Zr,{tabs:[He,Ue],rightToolbar:[We],selectedTab:m,setSelectedTab:h})}),sidebar:(0,M.jsx)(Zr,{tabs:Be,selectedTab:g,setSelectedTab:Te,rightToolbar:[v===`bottom`?(0,M.jsx)(Fn,{title:`Dock to right`,icon:`layout-sidebar-right-off`,onClick:()=>{y(`right`)}}):(0,M.jsx)(Fn,{title:`Dock to bottom`,icon:`layout-panel-off`,onClick:()=>{y(`bottom`)}})],mode:v===`bottom`?`default`:`select`})})]})},eh=({counters:e,hiddenActionsCount:t})=>{let[n,r]=ae(`actionsFilter`,[]),i=T.useRef(null);return(0,M.jsx)(Ym,{title:`Filter actions`,dialogDataTestId:`actions-filter-dialog`,buttonChildren:(0,M.jsxs)(M.Fragment,{children:[t>0&&(0,M.jsxs)(`span`,{className:`workbench-actions-hidden-count`,title:t+` actions hidden by filters`,children:[t,` hidden`]}),(0,M.jsx)(`span`,{ref:i,className:`codicon codicon-filter`})]}),anchorRef:i,children:(0,M.jsx)(Xm,{settings:[{type:`check`,value:n.includes(`getter`),set:e=>r(e?[...n,`getter`]:n.filter(e=>e!==`getter`)),name:`Getters`,count:e?.get(`getter`)},{type:`check`,value:n.includes(`route`),set:e=>r(e?[...n,`route`]:n.filter(e=>e!==`route`)),name:`Network routes`,count:e?.get(`route`)},{type:`check`,value:n.includes(`configuration`),set:e=>r(e?[...n,`configuration`]:n.filter(e=>e!==`configuration`)),name:`Configuration`,count:e?.get(`configuration`)}]})})};function th(e){if(!e)return`default`;let t=new URL(e,`http://localhost`);return t.searchParams.delete(`timestamp`),t.toString()}var nh;(function(e){function t(e){for(let t of e.splice(0))t.dispose()}e.disposeAll=t})(nh||={});var rh=class{constructor(){this._listeners=new Set,this.event=(e,t)=>{this._listeners.add(e);let n=!1,r=this,i={dispose(){n||(n=!0,r._listeners.delete(e))}};return t&&t.push(i),i}}fire(e){let t=!this._deliveryQueue;this._deliveryQueue||=[];for(let t of this._listeners)this._deliveryQueue.push({listener:t,event:e});if(t){for(let e=0;e<this._deliveryQueue.length;e++){let{listener:t,event:n}=this._deliveryQueue[e];t.call(null,n)}this._deliveryQueue=void 0}}dispose(){this._listeners.clear(),this._deliveryQueue&&=[]}},ih=class extends Error{},ah=class{constructor(e){this._ws=new WebSocket(e)}onmessage(e){this._ws.addEventListener(`message`,t=>e(t.data.toString()))}onopen(e){this._ws.addEventListener(`open`,e)}onerror(e){this._ws.addEventListener(`error`,e)}onclose(e){this._ws.addEventListener(`close`,e)}send(e){this._ws.send(e)}close(){this._ws.close()}},oh=class{constructor(e){this._onCloseEmitter=new rh,this._onReportEmitter=new rh,this._onStdioEmitter=new rh,this._onTestFilesChangedEmitter=new rh,this._onLoadTraceRequestedEmitter=new rh,this._onTestPausedEmitter=new rh,this._lastId=0,this._callbacks=new Map,this._isClosed=!1,this.onClose=this._onCloseEmitter.event,this.onReport=this._onReportEmitter.event,this.onStdio=this._onStdioEmitter.event,this.onTestFilesChanged=this._onTestFilesChangedEmitter.event,this.onLoadTraceRequested=this._onLoadTraceRequestedEmitter.event,this.onTestPaused=this._onTestPausedEmitter.event,this._transport=e,this._transport.onmessage(e=>{let{id:t,result:n,error:r,method:i,params:a}=JSON.parse(e);if(t){let e=this._callbacks.get(t);if(!e)return;this._callbacks.delete(t),r?e.reject(Error(r)):e.resolve(n)}else this._dispatchEvent(i,a)});let t=setInterval(()=>this._sendMessage(`ping`).catch(()=>{}),3e4);this._connectedPromise=new Promise((e,t)=>{this._transport.onopen(e),this._transport.onerror(t)}),this._transport.onclose(()=>{this._isClosed=!0,this._onCloseEmitter.fire(),clearInterval(t);for(let e of this._callbacks.values())e.reject(e.error);this._callbacks.clear()})}isClosed(){return this._isClosed}async _sendMessage(e,t){let n=globalThis.__logForTest;n?.({method:e,params:t}),await this._connectedPromise;let r=++this._lastId,i={id:r,method:e,params:t},a=new ih(`${e}: test server connection closed`);return this._transport.send(JSON.stringify(i)),new Promise((e,t)=>{this._callbacks.set(r,{resolve:e,reject:t,error:a})})}_sendMessageNoReply(e,t){this._sendMessage(e,t).catch(()=>{})}_dispatchEvent(e,t){e===`report`?this._onReportEmitter.fire(t):e===`stdio`?this._onStdioEmitter.fire(t):e===`testFilesChanged`?this._onTestFilesChangedEmitter.fire(t):e===`loadTraceRequested`?this._onLoadTraceRequestedEmitter.fire(t):e===`testPaused`&&this._onTestPausedEmitter.fire(t)}async initialize(e){await this._sendMessage(`initialize`,e)}async ping(e){await this._sendMessage(`ping`,e)}async pingNoReply(e){this._sendMessageNoReply(`ping`,e)}async watch(e){await this._sendMessage(`watch`,e)}watchNoReply(e){this._sendMessageNoReply(`watch`,e)}async open(e){await this._sendMessage(`open`,e)}openNoReply(e){this._sendMessageNoReply(`open`,e)}async resizeTerminal(e){await this._sendMessage(`resizeTerminal`,e)}resizeTerminalNoReply(e){this._sendMessageNoReply(`resizeTerminal`,e)}async checkBrowsers(e){return await this._sendMessage(`checkBrowsers`,e)}async installBrowsers(e){await this._sendMessage(`installBrowsers`,e)}async runGlobalSetup(e){return await this._sendMessage(`runGlobalSetup`,e)}async runGlobalTeardown(e){return await this._sendMessage(`runGlobalTeardown`,e)}async clearCache(e){return await this._sendMessage(`clearCache`,e)}async listFiles(e){return await this._sendMessage(`listFiles`,e)}async listTests(e){return await this._sendMessage(`listTests`,e)}async runTests(e){return await this._sendMessage(`runTests`,e)}async findRelatedTestFiles(e){return await this._sendMessage(`findRelatedTestFiles`,e)}async stopTests(e){await this._sendMessage(`stopTests`,e)}stopTestsNoReply(e){this._sendMessageNoReply(`stopTests`,e)}async closeGracefully(e){await this._sendMessage(`closeGracefully`,e)}close(){try{this._transport.close()}catch{}}},sh=({location:e})=>{let[t,n]=ae(`shouldPopulateCanvasFromScreenshot`,!1),[r,i]=Se(),[a,o]=ae(`mergeFiles`,!1);return(0,M.jsx)(Xm,{settings:[{type:`select`,value:r,set:i,name:`Theme`,options:pe},...e===`ui-mode`?[{type:`check`,value:a,set:o,name:`Merge files`}]:[],{type:`check`,value:t,set:n,name:`Display canvas content`,title:`Attempt to display the captured canvas appearance in the snapshot preview. May not be accurate.`}]})};export{k as C,ee as D,ae as E,b as O,ye as S,E as T,Ve as _,Xm as a,he as b,Xr as c,Ln as d,Fn as f,it as g,ot as h,Qm as i,C as k,Or as l,st as m,oh as n,Ym as o,jn as p,ah as r,qm as s,sh as t,vr as u,Oe as v,le as w,xe as x,ve as y};