@scalar/api-reference-react 0.1.88 → 0.1.90

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 (197) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/{Add-ngyZgYXx-DoqFEwg6-Cppu-SwJ.cjs → Add-ngyZgYXx-DoqFEwg6-7RZ-EXkn.cjs} +1 -1
  3. package/dist/{Add-ngyZgYXx-DoqFEwg6-Dq1bO47V.js → Add-ngyZgYXx-DoqFEwg6-BMgkWPXQ.js} +1 -1
  4. package/dist/{ArrowLeft-aY17W2aS-Cn6xpEuC-D5q49KJ3.js → ArrowLeft-aY17W2aS-Cn6xpEuC-C9GXzvDm.js} +1 -1
  5. package/dist/{ArrowLeft-aY17W2aS-Cn6xpEuC-CMUVGhut.cjs → ArrowLeft-aY17W2aS-Cn6xpEuC-Cyo3Phnj.cjs} +1 -1
  6. package/dist/{ArrowRight-DEMtdoE7-DTUgvJ5B-DtUfWlFT.js → ArrowRight-DEMtdoE7-DTUgvJ5B-BkNPF4ev.js} +1 -1
  7. package/dist/{ArrowRight-DEMtdoE7-DTUgvJ5B-CURVS58K.cjs → ArrowRight-DEMtdoE7-DTUgvJ5B-CjBKvAel.cjs} +1 -1
  8. package/dist/{Background-DcRhSHgf-D9bLWDd3-BVoIus4_.js → Background-DcRhSHgf-D9bLWDd3-C-stugAG.js} +1 -1
  9. package/dist/{Background-DcRhSHgf-D9bLWDd3-D8EBAP0B.cjs → Background-DcRhSHgf-D9bLWDd3-bdSoezll.cjs} +1 -1
  10. package/dist/{Brackets-4I8OKomf-DWpQfvXD-BjJvnQoX.js → Brackets-4I8OKomf-DWpQfvXD-9Xx9ekQ6.js} +1 -1
  11. package/dist/{Brackets-4I8OKomf-DWpQfvXD-BaZMLNdQ.cjs → Brackets-4I8OKomf-DWpQfvXD-Drfew3Rg.cjs} +1 -1
  12. package/dist/{Branch-CXwj8YuG-CvPS_xP0-D-Yyzep_.js → Branch-CXwj8YuG-CvPS_xP0-BoU7B8w6.js} +1 -1
  13. package/dist/{Branch-CXwj8YuG-CvPS_xP0-D_r-M5sD.cjs → Branch-CXwj8YuG-CvPS_xP0-DvQH5Em0.cjs} +1 -1
  14. package/dist/{CallToAction-EyQKkvbg-P3zHezrK-Bwvk8ohf.js → CallToAction-EyQKkvbg-P3zHezrK-9Wr9xLoo.js} +1 -1
  15. package/dist/{CallToAction-EyQKkvbg-P3zHezrK-SuNoDd0_.cjs → CallToAction-EyQKkvbg-P3zHezrK-B03Cxj-9.cjs} +1 -1
  16. package/dist/{Checkmark-De7nq6cG-I65LWhZ2-0mCuaeBX.js → Checkmark-De7nq6cG-I65LWhZ2-6bWGe1J0.js} +1 -1
  17. package/dist/{Checkmark-De7nq6cG-I65LWhZ2-DUB3-QZg.cjs → Checkmark-De7nq6cG-I65LWhZ2-DwEaenPV.cjs} +1 -1
  18. package/dist/{ChevronDown-Co7EAKAv-Dw2u19C4-DYKp921E.js → ChevronDown-Co7EAKAv-Dw2u19C4-BE04hgLi.js} +1 -1
  19. package/dist/{ChevronDown-Co7EAKAv-Dw2u19C4-CJalx0ye.cjs → ChevronDown-Co7EAKAv-Dw2u19C4-CuSAWn5u.cjs} +1 -1
  20. package/dist/{ChevronLeft-DYt0idAu-4ItgPaSH-DsgtzFJ_.js → ChevronLeft-DYt0idAu-4ItgPaSH-DeQDtOxE.js} +1 -1
  21. package/dist/{ChevronLeft-DYt0idAu-4ItgPaSH-C3oNe08Q.cjs → ChevronLeft-DYt0idAu-4ItgPaSH-DqJIQpGg.cjs} +1 -1
  22. package/dist/{ChevronRight-ylxToVWl-DMyZ2Rmi-BMXSB2g_.cjs → ChevronRight-ylxToVWl-DMyZ2Rmi-Cdga5rkJ.cjs} +1 -1
  23. package/dist/{ChevronRight-ylxToVWl-DMyZ2Rmi-CkEqrQbf.js → ChevronRight-ylxToVWl-DMyZ2Rmi-LdeX0-cM.js} +1 -1
  24. package/dist/{ChevronUp-xAnukIfj-DYWzMh-o-D3tphf4k.cjs → ChevronUp-xAnukIfj-DYWzMh-o-BaXSr863.cjs} +1 -1
  25. package/dist/{ChevronUp-xAnukIfj-DYWzMh-o-uqSaTB5I.js → ChevronUp-xAnukIfj-DYWzMh-o-uz5bLFJa.js} +1 -1
  26. package/dist/{Clipboard-CU_KxGEv-DuOPrhqK-BiS465L1.js → Clipboard-CU_KxGEv-DuOPrhqK-C4MQPnYD.js} +1 -1
  27. package/dist/{Clipboard-CU_KxGEv-DuOPrhqK-BonkXPvI.cjs → Clipboard-CU_KxGEv-DuOPrhqK-DYAc1g-l.cjs} +1 -1
  28. package/dist/{Close-CW3z42qZ-C-nzSJmV-CJM5iPKL.js → Close-CW3z42qZ-C-nzSJmV-DEtZl9bk.js} +1 -1
  29. package/dist/{Close-CW3z42qZ-C-nzSJmV-DDjeYRZ0.cjs → Close-CW3z42qZ-C-nzSJmV-damxVthC.cjs} +1 -1
  30. package/dist/{CodeFolder-Cv_igzJE-POyxhw77-B_oUoABC.cjs → CodeFolder-Cv_igzJE-POyxhw77-CJvcCLkP.cjs} +1 -1
  31. package/dist/{CodeFolder-Cv_igzJE-POyxhw77-4wXPPq6V.js → CodeFolder-Cv_igzJE-POyxhw77-UNiM6DaZ.js} +1 -1
  32. package/dist/{Cookie-CEHvXpqB-Bu1-nQ4L-CdEs0O6l.cjs → Cookie-CEHvXpqB-Bu1-nQ4L-BAi8tCxk.cjs} +1 -1
  33. package/dist/{Cookie-CEHvXpqB-Bu1-nQ4L-Cf4epEGh.js → Cookie-CEHvXpqB-Bu1-nQ4L-CppqeRwz.js} +1 -1
  34. package/dist/{DarkMode-CBsV8Q_I-C-P5vpQi-CXC5mEJb.js → DarkMode-CBsV8Q_I-C-P5vpQi-BUpjriYM.js} +1 -1
  35. package/dist/{DarkMode-CBsV8Q_I-C-P5vpQi-yIqZSpe1.cjs → DarkMode-CBsV8Q_I-C-P5vpQi-vnMxPo23.cjs} +1 -1
  36. package/dist/{Trash-BpA3zWPD-RGj_5vHb-CiBM-c5W.cjs → Delete-BCZmxrDD-RGj_5vHb-AL7M1XVI.cjs} +1 -1
  37. package/dist/{Delete-BCZmxrDD-RGj_5vHb-BS-f92Tw.js → Delete-BCZmxrDD-RGj_5vHb-CxCjWJeK.js} +1 -1
  38. package/dist/{Discord-BHYOFBB2-BKiLx0Gp-Bj22NLVF.cjs → Discord-BHYOFBB2-BKiLx0Gp-JO8PdAri.cjs} +1 -1
  39. package/dist/{Discord-BHYOFBB2-BKiLx0Gp-BUUozVnn.js → Discord-BHYOFBB2-BKiLx0Gp-Kij0Gkuf.js} +1 -1
  40. package/dist/{DocsPage-rh2xwxKN-DGM8iLwe-DYu12yHS.js → DocsPage-rh2xwxKN-DGM8iLwe-Bs8-Tz-g.js} +1 -1
  41. package/dist/{DocsPage-rh2xwxKN-DGM8iLwe-Drogj2EH.cjs → DocsPage-rh2xwxKN-DGM8iLwe-CLkz1teT.cjs} +1 -1
  42. package/dist/{Duplicate-BPlzNpcf-hfR5nT2J-CgFe2dKf.cjs → Duplicate-BPlzNpcf-hfR5nT2J-2hU5cFYm.cjs} +1 -1
  43. package/dist/{Duplicate-BPlzNpcf-hfR5nT2J-Du6dNoL6.js → Duplicate-BPlzNpcf-hfR5nT2J-CFgsn7X5.js} +1 -1
  44. package/dist/{Edit-Br04RNYb-DB3yOiz_-IoQqKovX.js → Edit-Br04RNYb-DB3yOiz_-BYA2ywEb.js} +1 -1
  45. package/dist/{Edit-Br04RNYb-DB3yOiz_-D7LwIkze.cjs → Edit-Br04RNYb-DB3yOiz_-wIcCHgPL.cjs} +1 -1
  46. package/dist/{Ellipses-Bo_X36Hx-D4ayuQAy-Kw2OzyM3.js → Ellipses-Bo_X36Hx-D4ayuQAy-CvdbMKqY.js} +1 -1
  47. package/dist/{Ellipses-Bo_X36Hx-D4ayuQAy-B-qKKh_I.cjs → Ellipses-Bo_X36Hx-D4ayuQAy-r8hjr7pj.cjs} +1 -1
  48. package/dist/{Error-B_RGtWJI-D-cqIU7Z-DnUa8FSL.cjs → Error-B_RGtWJI-D-cqIU7Z-Ydsz6Pfv.cjs} +1 -1
  49. package/dist/{Error-B_RGtWJI-D-cqIU7Z-C2q3KGC1.js → Error-B_RGtWJI-D-cqIU7Z-qnExkudu.js} +1 -1
  50. package/dist/{ExternalLink-DK8L-EH7-CnaH9txm-B9f2Qte1.cjs → ExternalLink-DK8L-EH7-CnaH9txm-CWwjViCN.cjs} +1 -1
  51. package/dist/{ExternalLink-DK8L-EH7-CnaH9txm-oo6HIxON.js → ExternalLink-DK8L-EH7-CnaH9txm-w5JfbwU5.js} +1 -1
  52. package/dist/{FilterList-CsAcE9em-BEVsn3KR-8zsF5pPO.js → FilterList-CsAcE9em-BEVsn3KR-Cnr6pNUq.js} +1 -1
  53. package/dist/{FilterList-CsAcE9em-BEVsn3KR-czdVjjAJ.cjs → FilterList-CsAcE9em-BEVsn3KR-CpHeG_Oc.cjs} +1 -1
  54. package/dist/{Folder-Cdcj4evh-BjFbVB1N-BI3WCdI1.cjs → Folder-Cdcj4evh-BjFbVB1N-CQGrvQsY.cjs} +1 -1
  55. package/dist/{Folder-Cdcj4evh-BjFbVB1N-BuQIW178.js → Folder-Cdcj4evh-BjFbVB1N-CUEEkIVG.js} +1 -1
  56. package/dist/{GitHub-NdE6Zs9k-CxmMd7Ky-CsqkEf5X.cjs → GitHub-NdE6Zs9k-CxmMd7Ky-BEAadeSx.cjs} +1 -1
  57. package/dist/{GitHub-NdE6Zs9k-CxmMd7Ky-DKwFVUYA.js → GitHub-NdE6Zs9k-CxmMd7Ky-Djqsp4Wc.js} +1 -1
  58. package/dist/{Hide-Q3GPkIKH-CR2flZgt-FMcL36fk.js → Hide-Q3GPkIKH-CR2flZgt-B5buRXh4.js} +1 -1
  59. package/dist/{Hide-Q3GPkIKH-CR2flZgt-DB063zkz.cjs → Hide-Q3GPkIKH-CR2flZgt-mEIqmeQo.cjs} +1 -1
  60. package/dist/{History-D9nmhNIn-Bg9VGGKO-3LRPN2Jy.cjs → History-D9nmhNIn-Bg9VGGKO-BL8dnphp.cjs} +1 -1
  61. package/dist/{History-D9nmhNIn-Bg9VGGKO-AVdyayPP.js → History-D9nmhNIn-Bg9VGGKO-DEWQEtLt.js} +1 -1
  62. package/dist/{JsonObject-hGdHUQ4M-JVzShx7P-BjkYSVic.js → JsonObject-hGdHUQ4M-JVzShx7P-DQJB1Hb-.js} +1 -1
  63. package/dist/{JsonObject-hGdHUQ4M-JVzShx7P-fo0DGRKi.cjs → JsonObject-hGdHUQ4M-JVzShx7P-x31Vp-Vk.cjs} +1 -1
  64. package/dist/{Key-CWXJqX28-CVsMvoNb-BpOYcR6C.js → Key-CWXJqX28-CVsMvoNb-CqZM6o_7.js} +1 -1
  65. package/dist/{Key-CWXJqX28-CVsMvoNb-DBwUHBg1.cjs → Key-CWXJqX28-CVsMvoNb-PGfQRwaW.cjs} +1 -1
  66. package/dist/{Leave-K1J3uwoG-6WpXSkaE-DfFpevpM.cjs → Leave-K1J3uwoG-6WpXSkaE-DCyNrkz8.cjs} +1 -1
  67. package/dist/{Leave-K1J3uwoG-6WpXSkaE-CXiGBP8n.js → Leave-K1J3uwoG-6WpXSkaE-fXCXDHZG.js} +1 -1
  68. package/dist/{LightDarkModeToggle-BkvMimDa-CCZGR9vi-W-ZtmGmX.js → LightDarkModeToggle-BkvMimDa-CCZGR9vi-BOeQEyY7.js} +1 -1
  69. package/dist/{LightDarkModeToggle-BkvMimDa-CCZGR9vi-C_a6kx6m.cjs → LightDarkModeToggle-BkvMimDa-CCZGR9vi-C8eq5lAN.cjs} +1 -1
  70. package/dist/{LightMode-Btz6vyT_-D8lhPTNZ-BdHSI-aL.cjs → LightMode-Btz6vyT_-D8lhPTNZ-DMr9hTxS.cjs} +1 -1
  71. package/dist/{LightMode-Btz6vyT_-D8lhPTNZ-CkqwGiV-.js → LightMode-Btz6vyT_-D8lhPTNZ-nNzCIVw_.js} +1 -1
  72. package/dist/{Link-Bzuc__Nc-Bopu3OCd-eOfL54W7.cjs → Link-Bzuc__Nc-Bopu3OCd-BKytd752.cjs} +1 -1
  73. package/dist/{Link-Bzuc__Nc-Bopu3OCd-D1hEl2k9.js → Link-Bzuc__Nc-Bopu3OCd-Cx27Tno9.js} +1 -1
  74. package/dist/{Lock-xhiH1mKz-j1VwEotb-zsu9TyPK.js → Lock-xhiH1mKz-j1VwEotb-BgB2NN1J.js} +1 -1
  75. package/dist/{Lock-xhiH1mKz-j1VwEotb-CL0Op4ZL.cjs → Lock-xhiH1mKz-j1VwEotb-e-yTdXb1.cjs} +1 -1
  76. package/dist/{Logo-mtzeKD8M-_nfcd_3S-C01qzaCp.cjs → Logo-mtzeKD8M-_nfcd_3S-BQpZX8yK.cjs} +1 -1
  77. package/dist/{Logo-mtzeKD8M-_nfcd_3S-B2vU43Fo.js → Logo-mtzeKD8M-_nfcd_3S-CkQO585x.js} +1 -1
  78. package/dist/{LogoAPI-CaU5E6FK-BIDyFPeR-kT5HUbZt.cjs → LogoAPI-CaU5E6FK-BIDyFPeR-BWT5JGWu.cjs} +1 -1
  79. package/dist/{LogoAPI-CaU5E6FK-BIDyFPeR-27HUzD5s.js → LogoAPI-CaU5E6FK-BIDyFPeR-CylVpbLs.js} +1 -1
  80. package/dist/{LogoClient-DdC-t_7P-BJVLusot-CYU35fVN.js → LogoClient-DdC-t_7P-BJVLusot-C5hmEuJ0.js} +1 -1
  81. package/dist/{LogoClient-DdC-t_7P-BJVLusot-CBBrUvMM.cjs → LogoClient-DdC-t_7P-BJVLusot-r--W8J_F.cjs} +1 -1
  82. package/dist/{LogoMarket-DwlApcab-BpTQzqp5-CVDolB4l.cjs → LogoMarket-DwlApcab-BpTQzqp5-B7XzuhCj.cjs} +1 -1
  83. package/dist/{LogoMarket-DwlApcab-BpTQzqp5-Lp1txgu0.js → LogoMarket-DwlApcab-BpTQzqp5-leCFpr3C.js} +1 -1
  84. package/dist/{LogoSwagger-CH60H5qW--whYwExv-DCjG6MHD.js → LogoSwagger-CH60H5qW--whYwExv-DkS5oVYQ.js} +1 -1
  85. package/dist/{LogoSwagger-CH60H5qW--whYwExv-x2WNPGi1.cjs → LogoSwagger-CH60H5qW--whYwExv-RlnuIdmP.cjs} +1 -1
  86. package/dist/{Magic-Dsi9_bEc-BSsgSxL9-BhiLH3bj.cjs → Magic-Dsi9_bEc-BSsgSxL9-CuCvs-ba.cjs} +1 -1
  87. package/dist/{Magic-Dsi9_bEc-BSsgSxL9-D5S2BPHi.js → Magic-Dsi9_bEc-BSsgSxL9-QWqqTCcT.js} +1 -1
  88. package/dist/{Menu-CFK5cOsm-Bt89Z42K-DQttnRQM.cjs → Menu-CFK5cOsm-Bt89Z42K-BiWx2AUV.cjs} +1 -1
  89. package/dist/{Menu-CFK5cOsm-Bt89Z42K-BzRY8SKC.js → Menu-CFK5cOsm-Bt89Z42K-DN0hLFkV.js} +1 -1
  90. package/dist/{Page-B7rVuhpl-BdUgg7Vj-hHQeyO6o.cjs → Page-B7rVuhpl-BdUgg7Vj-Ch23rJkH.cjs} +1 -1
  91. package/dist/{Page-B7rVuhpl-BdUgg7Vj-CC5-AONs.js → Page-B7rVuhpl-BdUgg7Vj-DDgN-5ed.js} +1 -1
  92. package/dist/{PaperAirplane-BC-4mGEB-CC_xr_GF-Bi0KzPQo.js → PaperAirplane-BC-4mGEB-CC_xr_GF-B6Ryom5S.js} +1 -1
  93. package/dist/{PaperAirplane-BC-4mGEB-CC_xr_GF-D7tgEDD5.cjs → PaperAirplane-BC-4mGEB-CC_xr_GF-BgiKjS5E.cjs} +1 -1
  94. package/dist/{Payment-hzcXP1Xb-DwRM2zOI-Ditg28ok.cjs → Payment-hzcXP1Xb-DwRM2zOI-B33Ck556.cjs} +1 -1
  95. package/dist/{Payment-hzcXP1Xb-DwRM2zOI-nF2oZm6h.js → Payment-hzcXP1Xb-DwRM2zOI-DDGjrahH.js} +1 -1
  96. package/dist/{Play-BrVagRQA-ibf1r6jV-4pc0xSOL.cjs → Play-BrVagRQA-ibf1r6jV-BKrWMG6Y.cjs} +1 -1
  97. package/dist/{Play-BrVagRQA-ibf1r6jV-BGwoxbPG.js → Play-BrVagRQA-ibf1r6jV-DSh5osrX.js} +1 -1
  98. package/dist/{Refresh-Be6vHEEi-jbqubK_U-DlIBuctn.cjs → Refresh-Be6vHEEi-jbqubK_U-BBZHywDb.cjs} +1 -1
  99. package/dist/{Refresh-Be6vHEEi-jbqubK_U-BgfjiZJI.js → Refresh-Be6vHEEi-jbqubK_U-s4yW-q1e.js} +1 -1
  100. package/dist/{Response-Dq9pM-ZU-gbj_nXZc-DaknuXrP.cjs → Response-Dq9pM-ZU-gbj_nXZc-Bpnx1LG6.cjs} +1 -1
  101. package/dist/{Response-Dq9pM-ZU-gbj_nXZc-4EcNTSr8.js → Response-Dq9pM-ZU-gbj_nXZc-Cym1YSgg.js} +1 -1
  102. package/dist/{Search-DqtlswRG-C2Pti_ld-CLD7PoX_.cjs → Search-DqtlswRG-C2Pti_ld-B3GcI_sy.cjs} +1 -1
  103. package/dist/{Search-DqtlswRG-C2Pti_ld-mAj72D9c.js → Search-DqtlswRG-C2Pti_ld-BXOMDvQd.js} +1 -1
  104. package/dist/{Show-D86hKz5y-CLGkc2Cs-CaB05jC7.js → Show-D86hKz5y-CLGkc2Cs-BvxpFvrr.js} +1 -1
  105. package/dist/{Show-D86hKz5y-CLGkc2Cs-pUbs8BzL.cjs → Show-D86hKz5y-CLGkc2Cs-D7aarDs9.cjs} +1 -1
  106. package/dist/{SideBarClosed-CYUNS2XM-CyV-4FlW-BB9U0jCW.cjs → SideBarClosed-CYUNS2XM-CyV-4FlW-DXQSnGoU.cjs} +1 -1
  107. package/dist/{SideBarClosed-CYUNS2XM-CyV-4FlW-6QZA9S_Z.js → SideBarClosed-CYUNS2XM-CyV-4FlW-eC8nA3dy.js} +1 -1
  108. package/dist/{SideBarOpen-BOxW49_U-_LagsnZP-Cc-i2GaD.cjs → SideBarOpen-BOxW49_U-_LagsnZP-BX0tDORF.cjs} +1 -1
  109. package/dist/{SideBarOpen-BOxW49_U-_LagsnZP-Ch0zqwz4.js → SideBarOpen-BOxW49_U-_LagsnZP-DgL8RZ-_.js} +1 -1
  110. package/dist/{Sort-oTjBhJFQ-CxatimqM-CsqNEXH-.cjs → Sort-oTjBhJFQ-CxatimqM-Cyb4O2Cq.cjs} +1 -1
  111. package/dist/{Sort-oTjBhJFQ-CxatimqM-CicWAWOW.js → Sort-oTjBhJFQ-CxatimqM-z6j4s9j3.js} +1 -1
  112. package/dist/{Terminal-CKp--su5-DBOGXF1p-DtjhQSxc.js → Terminal-CKp--su5-DBOGXF1p-DcVvQPWi.js} +1 -1
  113. package/dist/{Terminal-CKp--su5-DBOGXF1p-CiCM9mEr.cjs → Terminal-CKp--su5-DBOGXF1p-tZ1eD5kx.cjs} +1 -1
  114. package/dist/{ThumbsDown-BMgnsASL-B1FsmbXx-B8l7jPzQ.js → ThumbsDown-BMgnsASL-B1FsmbXx-D6NZ5t9k.js} +1 -1
  115. package/dist/{ThumbsDown-BMgnsASL-B1FsmbXx-BRX-VHV8.cjs → ThumbsDown-BMgnsASL-B1FsmbXx-DoREKFQJ.cjs} +1 -1
  116. package/dist/{ThumbsUp-C1j6zY2j-Ca8-bvgl-B3rGc2IE.cjs → ThumbsUp-C1j6zY2j-Ca8-bvgl-DAuzaXX-.cjs} +1 -1
  117. package/dist/{ThumbsUp-C1j6zY2j-Ca8-bvgl-Bl5iE1qR.js → ThumbsUp-C1j6zY2j-Ca8-bvgl-xyYgO6aw.js} +1 -1
  118. package/dist/{Delete-BCZmxrDD-RGj_5vHb-C-zRM8hU.cjs → Trash-BpA3zWPD-RGj_5vHb-B4FFMnIN.cjs} +1 -1
  119. package/dist/{Trash-BpA3zWPD-RGj_5vHb-DtsySZm4.js → Trash-BpA3zWPD-RGj_5vHb-DLHEsHGT.js} +1 -1
  120. package/dist/{Unlock-CY8UqJoE-xu6vPL1E-Dh7fZyuP.js → Unlock-CY8UqJoE-xu6vPL1E-BIU2Dndg.js} +1 -1
  121. package/dist/{Unlock-CY8UqJoE-xu6vPL1E-DU9boJn-.cjs → Unlock-CY8UqJoE-xu6vPL1E-CsiXQk_H.cjs} +1 -1
  122. package/dist/{Upload-REIdL7RI-DTkPybxz-Bh6lC-LC.js → Upload-REIdL7RI-DTkPybxz-B_SBYzPe.js} +1 -1
  123. package/dist/{Upload-REIdL7RI-DTkPybxz-B18eJMEE.cjs → Upload-REIdL7RI-DTkPybxz-sxVof1t1.cjs} +1 -1
  124. package/dist/{User-Df5svMQ3-BviG15gd-BHSuki5d.js → User-Df5svMQ3-BviG15gd-1j0YXZXY.js} +1 -1
  125. package/dist/{User-Df5svMQ3-BviG15gd-Bgrqs2KO.cjs → User-Df5svMQ3-BviG15gd-gM4apArg.cjs} +1 -1
  126. package/dist/{index-dKzMd2s1-Ct-Q9cj2.cjs → index-Bk9F2CRc-66Jzeveo.cjs} +3 -3
  127. package/dist/{index-dKzMd2s1-CT0LmoDh.js → index-Bk9F2CRc-BTKiNfLB.js} +2 -2
  128. package/dist/{index-CLk-R2Re.cjs → index-Cdyzki_j.cjs} +56 -56
  129. package/dist/{index-Bq5alPzE.js → index-DzYymm6p.js} +2165 -2163
  130. package/dist/index.cjs +1 -1
  131. package/dist/index.css +1 -1
  132. package/dist/index.js +1 -1
  133. package/dist/{programming-framework-angular-DD4Vjgbk-CUF3ZYYB-DLAkzPsn.js → programming-framework-angular-DD4Vjgbk-CUF3ZYYB-BPnwDijo.js} +1 -1
  134. package/dist/{programming-framework-angular-DD4Vjgbk-CUF3ZYYB-qAUEZmBL.cjs → programming-framework-angular-DD4Vjgbk-CUF3ZYYB-CseuBuqK.cjs} +1 -1
  135. package/dist/{programming-framework-astro-CLfrRt19-CH6OCtd8-I3Az0rH1.js → programming-framework-astro-CLfrRt19-CH6OCtd8-Cr8radpH.js} +1 -1
  136. package/dist/{programming-framework-astro-CLfrRt19-CH6OCtd8-UsU5-SzW.cjs → programming-framework-astro-CLfrRt19-CH6OCtd8-CvK2mYsA.cjs} +1 -1
  137. package/dist/{programming-framework-laravel-kAy2wVLy-kXRM5aCd-CDxmrES1.js → programming-framework-laravel-kAy2wVLy-kXRM5aCd-BY-q00Ee.js} +1 -1
  138. package/dist/{programming-framework-laravel-kAy2wVLy-kXRM5aCd-sm1HkJHt.cjs → programming-framework-laravel-kAy2wVLy-kXRM5aCd-Buxw_Jxc.cjs} +1 -1
  139. package/dist/{programming-framework-nextdotjs-BKdd_DY_-DF9m888v-CqCsR85a.cjs → programming-framework-nextdotjs-BKdd_DY_-DF9m888v-Cq6zxizd.cjs} +1 -1
  140. package/dist/{programming-framework-nextdotjs-BKdd_DY_-DF9m888v-BVcegj01.js → programming-framework-nextdotjs-BKdd_DY_-DF9m888v-NZhKAIZ7.js} +1 -1
  141. package/dist/{programming-framework-react-PDgmtZuN-DZjob66N-BNmUaxA0.cjs → programming-framework-react-PDgmtZuN-DZjob66N-Bv20C4Ua.cjs} +1 -1
  142. package/dist/{programming-framework-react-PDgmtZuN-DZjob66N-D3qhgW94.js → programming-framework-react-PDgmtZuN-DZjob66N-D7aNzHHP.js} +1 -1
  143. package/dist/{programming-framework-vuedotjs-Cv46W2aB-5jp2dhVz-CkxKJokE.cjs → programming-framework-vuedotjs-Cv46W2aB-5jp2dhVz-B2UNRQIa.cjs} +1 -1
  144. package/dist/{programming-framework-vuedotjs-Cv46W2aB-5jp2dhVz-B4SXKkWo.js → programming-framework-vuedotjs-Cv46W2aB-5jp2dhVz-C0z8tyKB.js} +1 -1
  145. package/dist/{programming-language-c-hPGu2Zvg-BesPZa4K-BFdIs7NT.js → programming-language-c-hPGu2Zvg-BesPZa4K-B0OM-3Pd.js} +1 -1
  146. package/dist/{programming-language-c-hPGu2Zvg-BesPZa4K-Cco2ZOt2.cjs → programming-language-c-hPGu2Zvg-BesPZa4K-Dqea8ITB.cjs} +1 -1
  147. package/dist/{programming-language-clojure-Cvmzky8x-BfidiK-3-BpGh9v2B.js → programming-language-clojure-Cvmzky8x-BfidiK-3-CH3lfjC5.js} +1 -1
  148. package/dist/{programming-language-clojure-Cvmzky8x-BfidiK-3-CQD6X3Uj.cjs → programming-language-clojure-Cvmzky8x-BfidiK-3-CIRYLnCJ.cjs} +1 -1
  149. package/dist/{programming-language-csharp-lqX1oWgb-D-Mz5PM1-DcyPY2HT.js → programming-language-csharp-lqX1oWgb-D-Mz5PM1-85Gdwqiu.js} +1 -1
  150. package/dist/{programming-language-csharp-lqX1oWgb-D-Mz5PM1-vk5FXb7F.cjs → programming-language-csharp-lqX1oWgb-D-Mz5PM1-CALzoSxX.cjs} +1 -1
  151. package/dist/{programming-language-css3-Dpp4Cr6b-Dpx1zlAe-D2vRQc41.js → programming-language-css3-Dpp4Cr6b-Dpx1zlAe-BHj1FQep.js} +1 -1
  152. package/dist/{programming-language-css3-Dpp4Cr6b-Dpx1zlAe-BM9iCsS_.cjs → programming-language-css3-Dpp4Cr6b-Dpx1zlAe-C5panFvk.cjs} +1 -1
  153. package/dist/{programming-language-go-DoJxWwT6-Bayz8oGO-D7kM07um.js → programming-language-go-DoJxWwT6-Bayz8oGO-CBctstkh.js} +1 -1
  154. package/dist/{programming-language-go-DoJxWwT6-Bayz8oGO-Bh-3p-m7.cjs → programming-language-go-DoJxWwT6-Bayz8oGO-DZ5nPaCD.cjs} +1 -1
  155. package/dist/{programming-language-html5-DlqJK4EL-DfQp7LQz-DpSBsvvd.js → programming-language-html5-DlqJK4EL-DfQp7LQz-BcYG0wJh.js} +1 -1
  156. package/dist/{programming-language-html5-DlqJK4EL-DfQp7LQz-5wt_6cUM.cjs → programming-language-html5-DlqJK4EL-DfQp7LQz-Cb_SktDx.cjs} +1 -1
  157. package/dist/{programming-language-http-wMYwFS1I-nvzm47LE-yCzkFoac.js → programming-language-http-wMYwFS1I-nvzm47LE-BKV9Ym7u.js} +1 -1
  158. package/dist/{programming-language-http-wMYwFS1I-nvzm47LE-DwXtz1-x.cjs → programming-language-http-wMYwFS1I-nvzm47LE-BLCzg3wr.cjs} +1 -1
  159. package/dist/{programming-language-java-BCxG2T_w-01jrBctS-DWAzY5WK.js → programming-language-java-BCxG2T_w-01jrBctS-Bldkh9i2.js} +1 -1
  160. package/dist/{programming-language-java-BCxG2T_w-01jrBctS-9403oU5P.cjs → programming-language-java-BCxG2T_w-01jrBctS-DyllQWf3.cjs} +1 -1
  161. package/dist/{programming-language-javascript-VxLvi1QG-qbgoUfZ8-DqmULXi3.cjs → programming-language-javascript-VxLvi1QG-qbgoUfZ8-B3gE0LI2.cjs} +1 -1
  162. package/dist/{programming-language-javascript-VxLvi1QG-qbgoUfZ8-MZrNQnSm.js → programming-language-javascript-VxLvi1QG-qbgoUfZ8-DbwwqPhg.js} +1 -1
  163. package/dist/{programming-language-json-vEX_g7Zi-D-_9dDj_-R4SaKfDY.js → programming-language-json-vEX_g7Zi-D-_9dDj_-BukNAZO8.js} +1 -1
  164. package/dist/{programming-language-json-vEX_g7Zi-D-_9dDj_-CDMS9dhA.cjs → programming-language-json-vEX_g7Zi-D-_9dDj_-C9KgMpEa.cjs} +1 -1
  165. package/dist/{programming-language-kotlin-DKV8vP9h-C-cTXwXu-BKcwTquu.js → programming-language-kotlin-DKV8vP9h-C-cTXwXu-Db5UGpOd.js} +1 -1
  166. package/dist/{programming-language-kotlin-DKV8vP9h-C-cTXwXu-C7o3xCKk.cjs → programming-language-kotlin-DKV8vP9h-C-cTXwXu-UrsD9Rht.cjs} +1 -1
  167. package/dist/{programming-language-node-Xsgx38lm-Be410R9Y-DSI4YN5m.js → programming-language-node-Xsgx38lm-Be410R9Y-BJsxIE0e.js} +1 -1
  168. package/dist/{programming-language-node-Xsgx38lm-Be410R9Y-oJPoOYXf.cjs → programming-language-node-Xsgx38lm-Be410R9Y-C1qniA9p.cjs} +1 -1
  169. package/dist/{programming-language-objc-BQXSOBsX-UyJQMZSh-C2sq4x6z.js → programming-language-objc-BQXSOBsX-UyJQMZSh-1Bnc0OxI.js} +1 -1
  170. package/dist/{programming-language-objc-BQXSOBsX-UyJQMZSh-QPNm7QDW.cjs → programming-language-objc-BQXSOBsX-UyJQMZSh-CV_BAzQr.cjs} +1 -1
  171. package/dist/{programming-language-ocaml-BEz7gGv7-L9a3ID8U-BP0mvPYC.js → programming-language-ocaml-BEz7gGv7-L9a3ID8U-CJ7AGth_.js} +1 -1
  172. package/dist/{programming-language-ocaml-BEz7gGv7-L9a3ID8U-Dmt1dgNm.cjs → programming-language-ocaml-BEz7gGv7-L9a3ID8U-DfQHJVLb.cjs} +1 -1
  173. package/dist/{programming-language-php-GY38f8r4-jRMN5AZX-rzcgxt-1.cjs → programming-language-php-GY38f8r4-jRMN5AZX-JnuQtR2W.cjs} +1 -1
  174. package/dist/{programming-language-php-GY38f8r4-jRMN5AZX-CSJ08Or9.js → programming-language-php-GY38f8r4-jRMN5AZX-fTGvZ2xl.js} +1 -1
  175. package/dist/{programming-language-powershell-C9DkSp36-C7fZCJBW-B_AG-Xx8.js → programming-language-powershell-C9DkSp36-C7fZCJBW-BBSvHg6Z.js} +1 -1
  176. package/dist/{programming-language-powershell-C9DkSp36-C7fZCJBW-BEySI9_e.cjs → programming-language-powershell-C9DkSp36-C7fZCJBW-D06wPdCT.cjs} +1 -1
  177. package/dist/{programming-language-python-Ct-_kNjo-DsKRdoNg-d57hGxJI.js → programming-language-python-Ct-_kNjo-DsKRdoNg-Bf49vRxi.js} +1 -1
  178. package/dist/{programming-language-python-Ct-_kNjo-DsKRdoNg-mNi_qQuw.cjs → programming-language-python-Ct-_kNjo-DsKRdoNg-DQNcvpel.cjs} +1 -1
  179. package/dist/{programming-language-r-BGoKwua9-BguWvgpu-DRAvbAMg.cjs → programming-language-r-BGoKwua9-BguWvgpu-B29aipvo.cjs} +1 -1
  180. package/dist/{programming-language-r-BGoKwua9-BguWvgpu-vTCpCjcb.js → programming-language-r-BGoKwua9-BguWvgpu-BsSWPXI-.js} +1 -1
  181. package/dist/{programming-language-ruby-DhdM4d7g-BuT1i5is-BLB-SdHF.cjs → programming-language-ruby-DhdM4d7g-BuT1i5is-CX3vxHLl.cjs} +1 -1
  182. package/dist/{programming-language-ruby-DhdM4d7g-BuT1i5is-BHPYSVXL.js → programming-language-ruby-DhdM4d7g-BuT1i5is-CvADTvVK.js} +1 -1
  183. package/dist/{programming-language-scala-BVg0dToJ-p_n-G2sI-DCttVgrs.js → programming-language-scala-BVg0dToJ-p_n-G2sI-CVuiaAOn.js} +1 -1
  184. package/dist/{programming-language-scala-BVg0dToJ-p_n-G2sI-_SCL1JN8.cjs → programming-language-scala-BVg0dToJ-p_n-G2sI-Dsv22nGI.cjs} +1 -1
  185. package/dist/{programming-language-shell-BsTa1xI7-Mbhl6UDK-PrGber2I.cjs → programming-language-shell-BsTa1xI7-Mbhl6UDK-DpGU8G_X.cjs} +1 -1
  186. package/dist/{programming-language-shell-BsTa1xI7-Mbhl6UDK-BOVC2QFZ.js → programming-language-shell-BsTa1xI7-Mbhl6UDK-GMp-XUmR.js} +1 -1
  187. package/dist/{programming-language-swift-Dn72xPjg-D-JnfNts-Ar9veekj.cjs → programming-language-swift-Dn72xPjg-D-JnfNts-CvRHwdvg.cjs} +1 -1
  188. package/dist/{programming-language-swift-Dn72xPjg-D-JnfNts-BbkAJy4r.js → programming-language-swift-Dn72xPjg-D-JnfNts-Dmtlf3nC.js} +1 -1
  189. package/dist/{programming-language-typescript-CdF-HuRi-ocSQSwHb-DrF5ZFKU.cjs → programming-language-typescript-CdF-HuRi-ocSQSwHb-BDSuzPHl.cjs} +1 -1
  190. package/dist/{programming-language-typescript-CdF-HuRi-ocSQSwHb-DjVOP4Hf.js → programming-language-typescript-CdF-HuRi-ocSQSwHb-ZOD82AUD.js} +1 -1
  191. package/dist/{programming-script-code-DQN1veb2-CcjBWaNF-DzkE5pFd.js → programming-script-code-DQN1veb2-CcjBWaNF-D651qCZX.js} +1 -1
  192. package/dist/{programming-script-code-DQN1veb2-CcjBWaNF-CiXyKdZm.cjs → programming-script-code-DQN1veb2-CcjBWaNF-DJBlu4o3.cjs} +1 -1
  193. package/dist/{programming-tool-git-DDnQ1zGD-CGHot6Y8-z26Dpns-.cjs → programming-tool-git-DDnQ1zGD-CGHot6Y8-D6y8jBvz.cjs} +1 -1
  194. package/dist/{programming-tool-git-DDnQ1zGD-CGHot6Y8-A9Qpgn8O.js → programming-tool-git-DDnQ1zGD-CGHot6Y8-UiZSbJ5U.js} +1 -1
  195. package/dist/{programming-tool-tailwindcss-xjXi0E6g-r5YhtCAf-BfxJjOFs.js → programming-tool-tailwindcss-xjXi0E6g-r5YhtCAf-B30yQlTc.js} +1 -1
  196. package/dist/{programming-tool-tailwindcss-xjXi0E6g-r5YhtCAf-B8HNnmbp.cjs → programming-tool-tailwindcss-xjXi0E6g-r5YhtCAf-DHqMNk-W.cjs} +1 -1
  197. package/package.json +2 -2
@@ -74,7 +74,7 @@ Component that was made reactive: `,e)),ae(e,t,n,r,i,o,s,!0)}function Zr(e){retu
74
74
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[BA]=this[BA]={accessors:{}}).accessors,i=this.prototype;function s(o){const a=xd(o);r[a]||(q7(i,o),r[a]=!0)}return Ne.isArray(t)?t.forEach(s):s(t),this}};J0.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ne.reduceDescriptors(J0.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Ne.freezeMethods(J0);const ro=J0;function Ny(e,t){const n=this||Ow,r=t||n,i=ro.from(r.headers);let s=r.data;return Ne.forEach(e,function(a){s=a.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function SR(e){return!!(e&&e.__CANCEL__)}function Dh(e,t,n){Bt.call(this,e??"canceled",Bt.ERR_CANCELED,t,n),this.name="CanceledError"}Ne.inherits(Dh,Bt,{__CANCEL__:!0});function z7(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Bt("Request failed with status code "+n.status,[Bt.ERR_BAD_REQUEST,Bt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const K7=ws.hasStandardBrowserEnv?{write(e,t,n,r,i,s){const o=[e+"="+encodeURIComponent(t)];Ne.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),Ne.isString(r)&&o.push("path="+r),Ne.isString(i)&&o.push("domain="+i),s===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function W7(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function G7(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function kR(e,t){return e&&!W7(t)?G7(e,t):t}const Y7=ws.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(s){let o=s;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(o){const a=Ne.isString(o)?i(o):o;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function X7(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Q7(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,s=0,o;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[s];o||(o=c),n[i]=l,r[i]=c;let d=s,f=0;for(;d!==i;)f+=n[d++],d=d%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),c-o<t)return;const h=u&&c-u;return h?Math.round(f*1e3/h):void 0}}function UA(e,t){let n=0;const r=Q7(50,250);return i=>{const s=i.loaded,o=i.lengthComputable?i.total:void 0,a=s-n,l=r(a),c=s<=o;n=s;const u={loaded:s,total:o,progress:o?s/o:void 0,bytes:a,rate:l||void 0,estimated:l&&o&&c?(o-s)/l:void 0,event:i};u[t?"download":"upload"]=!0,e(u)}}const J7=typeof XMLHttpRequest<"u",Z7=J7&&function(e){return new Promise(function(n,r){let i=e.data;const s=ro.from(e.headers).normalize();let{responseType:o,withXSRFToken:a}=e,l;function c(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let u;if(Ne.isFormData(i)){if(ws.hasStandardBrowserEnv||ws.hasStandardBrowserWebWorkerEnv)s.setContentType(!1);else if((u=s.getContentType())!==!1){const[m,...g]=u?u.split(";").map(b=>b.trim()).filter(Boolean):[];s.setContentType([m||"multipart/form-data",...g].join("; "))}}let d=new XMLHttpRequest;if(e.auth){const m=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(m+":"+g))}const f=kR(e.baseURL,e.url);d.open(e.method.toUpperCase(),ER(f,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function h(){if(!d)return;const m=ro.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),b={data:!o||o==="text"||o==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:m,config:e,request:d};z7(function(y){n(y),c()},function(y){r(y),c()},b),d=null}if("onloadend"in d?d.onloadend=h:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(h)},d.onabort=function(){d&&(r(new Bt("Request aborted",Bt.ECONNABORTED,e,d)),d=null)},d.onerror=function(){r(new Bt("Network Error",Bt.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let g=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const b=e.transitional||_R;e.timeoutErrorMessage&&(g=e.timeoutErrorMessage),r(new Bt(g,b.clarifyTimeoutError?Bt.ETIMEDOUT:Bt.ECONNABORTED,e,d)),d=null},ws.hasStandardBrowserEnv&&(a&&Ne.isFunction(a)&&(a=a(e)),a||a!==!1&&Y7(f))){const m=e.xsrfHeaderName&&e.xsrfCookieName&&K7.read(e.xsrfCookieName);m&&s.set(e.xsrfHeaderName,m)}i===void 0&&s.setContentType(null),"setRequestHeader"in d&&Ne.forEach(s.toJSON(),function(g,b){d.setRequestHeader(b,g)}),Ne.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),o&&o!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",UA(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",UA(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=m=>{d&&(r(!m||m.type?new Dh(null,e,d):m),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const p=X7(f);if(p&&ws.protocols.indexOf(p)===-1){r(new Bt("Unsupported protocol "+p+":",Bt.ERR_BAD_REQUEST,e));return}d.send(i||null)})},k1={http:S7,xhr:Z7};Ne.forEach(k1,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const HA=e=>`- ${e}`,ej=e=>Ne.isFunction(e)||e===null||e===!1,AR={getAdapter:e=>{e=Ne.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let s=0;s<t;s++){n=e[s];let o;if(r=n,!ej(n)&&(r=k1[(o=String(n)).toLowerCase()],r===void 0))throw new Bt(`Unknown adapter '${o}'`);if(r)break;i[o||"#"+s]=r}if(!r){const s=Object.entries(i).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?s.length>1?`since :
75
75
  `+s.map(HA).join(`
76
76
  `):" "+HA(s[0]):"as no adapter specified";throw new Bt("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:k1};function Cy(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Dh(null,e)}function jA(e){return Cy(e),e.headers=ro.from(e.headers),e.data=Ny.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),AR.getAdapter(e.adapter||Ow.adapter)(e).then(function(r){return Cy(e),r.data=Ny.call(e,e.transformResponse,r),r.headers=ro.from(r.headers),r},function(r){return SR(r)||(Cy(e),r&&r.response&&(r.response.data=Ny.call(e,e.transformResponse,r.response),r.response.headers=ro.from(r.response.headers))),Promise.reject(r)})}const VA=e=>e instanceof ro?{...e}:e;function fu(e,t){t=t||{};const n={};function r(c,u,d){return Ne.isPlainObject(c)&&Ne.isPlainObject(u)?Ne.merge.call({caseless:d},c,u):Ne.isPlainObject(u)?Ne.merge({},u):Ne.isArray(u)?u.slice():u}function i(c,u,d){if(Ne.isUndefined(u)){if(!Ne.isUndefined(c))return r(void 0,c,d)}else return r(c,u,d)}function s(c,u){if(!Ne.isUndefined(u))return r(void 0,u)}function o(c,u){if(Ne.isUndefined(u)){if(!Ne.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function a(c,u,d){if(d in t)return r(c,u);if(d in e)return r(void 0,c)}const l={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(c,u)=>i(VA(c),VA(u),!0)};return Ne.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||i,f=d(e[u],t[u],u);Ne.isUndefined(f)&&d!==a||(n[u]=f)}),n}const xR="1.6.8",Dw={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Dw[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const qA={};Dw.transitional=function(t,n,r){function i(s,o){return"[Axios v"+xR+"] Transitional option '"+s+"'"+o+(r?". "+r:"")}return(s,o,a)=>{if(t===!1)throw new Bt(i(o," has been removed"+(n?" in "+n:"")),Bt.ERR_DEPRECATED);return n&&!qA[o]&&(qA[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,o,a):!0}};function tj(e,t,n){if(typeof e!="object")throw new Bt("options must be an object",Bt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const s=r[i],o=t[s];if(o){const a=e[s],l=a===void 0||o(a,s,e);if(l!==!0)throw new Bt("option "+s+" must be "+l,Bt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Bt("Unknown option "+s,Bt.ERR_BAD_OPTION)}}const A1={assertOptions:tj,validators:Dw},Po=A1.validators;let wg=class{constructor(t){this.defaults=t,this.interceptors={request:new FA,response:new FA}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
77
- `+s):r.stack=s}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=fu(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&A1.assertOptions(r,{silentJSONParsing:Po.transitional(Po.boolean),forcedJSONParsing:Po.transitional(Po.boolean),clarifyTimeoutError:Po.transitional(Po.boolean)},!1),i!=null&&(Ne.isFunction(i)?n.paramsSerializer={serialize:i}:A1.assertOptions(i,{encode:Po.function,serialize:Po.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=s&&Ne.merge(s.common,s[n.method]);s&&Ne.forEach(["delete","get","head","post","put","patch","common"],p=>{delete s[p]}),n.headers=ro.concat(o,s);const a=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,a.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let u,d=0,f;if(!l){const p=[jA.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,c),f=p.length,u=Promise.resolve(n);d<f;)u=u.then(p[d++],p[d++]);return u}f=a.length;let h=n;for(d=0;d<f;){const p=a[d++],m=a[d++];try{h=p(h)}catch(g){m.call(this,g);break}}try{u=jA.call(this,h)}catch(p){return Promise.reject(p)}for(d=0,f=c.length;d<f;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=fu(this.defaults,t);const n=kR(t.baseURL,t.url);return ER(n,t.params,t.paramsSerializer)}};Ne.forEach(["delete","get","head","options"],function(t){wg.prototype[t]=function(n,r){return this.request(fu(r||{},{method:t,url:n,data:(r||{}).data}))}});Ne.forEach(["post","put","patch"],function(t){function n(r){return function(s,o,a){return this.request(fu(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:o}))}}wg.prototype[t]=n(),wg.prototype[t+"Form"]=n(!0)});const Rm=wg;let nj=class NR{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(a=>{r.subscribe(a),s=a}).then(i);return o.cancel=function(){r.unsubscribe(s)},o},t(function(s,o,a){r.reason||(r.reason=new Dh(s,o,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new NR(function(i){t=i}),cancel:t}}};const rj=nj;function ij(e){return function(n){return e.apply(null,n)}}function sj(e){return Ne.isObject(e)&&e.isAxiosError===!0}const x1={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(x1).forEach(([e,t])=>{x1[t]=e});const oj=x1;function CR(e){const t=new Rm(e),n=lR(Rm.prototype.request,t);return Ne.extend(n,Rm.prototype,t,{allOwnKeys:!0}),Ne.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return CR(fu(e,i))},n}const Rn=CR(Ow);Rn.Axios=Rm;Rn.CanceledError=Dh;Rn.CancelToken=rj;Rn.isCancel=SR;Rn.VERSION=xR;Rn.toFormData=Q0;Rn.AxiosError=Bt;Rn.Cancel=Rn.CanceledError;Rn.all=function(t){return Promise.all(t)};Rn.spread=ij;Rn.isAxiosError=sj;Rn.mergeConfig=fu;Rn.AxiosHeaders=ro;Rn.formToJSON=e=>TR(Ne.isHTMLForm(e)?new FormData(e):e);Rn.getAdapter=AR.getAdapter;Rn.HttpStatusCode=oj;Rn.default=Rn;const OR=Rn,{Axios:jxe,AxiosError:Vxe,CanceledError:qxe,isCancel:zxe,CancelToken:Kxe,VERSION:Wxe,all:Gxe,Cancel:Yxe,isAxiosError:Xxe,spread:Qxe,toFormData:Jxe,AxiosHeaders:aj,HttpStatusCode:Zxe,formToJSON:eNe,getAdapter:tNe,mergeConfig:nNe}=OR;var DR={exports:{}};(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
77
+ `+s):r.stack=s}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=fu(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&A1.assertOptions(r,{silentJSONParsing:Po.transitional(Po.boolean),forcedJSONParsing:Po.transitional(Po.boolean),clarifyTimeoutError:Po.transitional(Po.boolean)},!1),i!=null&&(Ne.isFunction(i)?n.paramsSerializer={serialize:i}:A1.assertOptions(i,{encode:Po.function,serialize:Po.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=s&&Ne.merge(s.common,s[n.method]);s&&Ne.forEach(["delete","get","head","post","put","patch","common"],p=>{delete s[p]}),n.headers=ro.concat(o,s);const a=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,a.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let u,d=0,f;if(!l){const p=[jA.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,c),f=p.length,u=Promise.resolve(n);d<f;)u=u.then(p[d++],p[d++]);return u}f=a.length;let h=n;for(d=0;d<f;){const p=a[d++],m=a[d++];try{h=p(h)}catch(g){m.call(this,g);break}}try{u=jA.call(this,h)}catch(p){return Promise.reject(p)}for(d=0,f=c.length;d<f;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=fu(this.defaults,t);const n=kR(t.baseURL,t.url);return ER(n,t.params,t.paramsSerializer)}};Ne.forEach(["delete","get","head","options"],function(t){wg.prototype[t]=function(n,r){return this.request(fu(r||{},{method:t,url:n,data:(r||{}).data}))}});Ne.forEach(["post","put","patch"],function(t){function n(r){return function(s,o,a){return this.request(fu(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:o}))}}wg.prototype[t]=n(),wg.prototype[t+"Form"]=n(!0)});const Rm=wg;let nj=class NR{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(a=>{r.subscribe(a),s=a}).then(i);return o.cancel=function(){r.unsubscribe(s)},o},t(function(s,o,a){r.reason||(r.reason=new Dh(s,o,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new NR(function(i){t=i}),cancel:t}}};const rj=nj;function ij(e){return function(n){return e.apply(null,n)}}function sj(e){return Ne.isObject(e)&&e.isAxiosError===!0}const x1={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(x1).forEach(([e,t])=>{x1[t]=e});const oj=x1;function CR(e){const t=new Rm(e),n=lR(Rm.prototype.request,t);return Ne.extend(n,Rm.prototype,t,{allOwnKeys:!0}),Ne.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return CR(fu(e,i))},n}const Rn=CR(Ow);Rn.Axios=Rm;Rn.CanceledError=Dh;Rn.CancelToken=rj;Rn.isCancel=SR;Rn.VERSION=xR;Rn.toFormData=Q0;Rn.AxiosError=Bt;Rn.Cancel=Rn.CanceledError;Rn.all=function(t){return Promise.all(t)};Rn.spread=ij;Rn.isAxiosError=sj;Rn.mergeConfig=fu;Rn.AxiosHeaders=ro;Rn.formToJSON=e=>TR(Ne.isHTMLForm(e)?new FormData(e):e);Rn.getAdapter=AR.getAdapter;Rn.HttpStatusCode=oj;Rn.default=Rn;const OR=Rn,{Axios:Uxe,AxiosError:Hxe,CanceledError:jxe,isCancel:Vxe,CancelToken:qxe,VERSION:zxe,all:Kxe,Cancel:Wxe,isAxiosError:Gxe,spread:Yxe,toFormData:Xxe,AxiosHeaders:aj,HttpStatusCode:Qxe,formToJSON:Jxe,getAdapter:Zxe,mergeConfig:eNe}=OR;var DR={exports:{}};(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
78
78
  * Prism: Lightweight, robust, elegant syntax highlighting
79
79
  *
80
80
  * @license MIT <https://opensource.org/licenses/MIT>
@@ -115,7 +115,7 @@ Component that was made reactive: `,e)),ae(e,t,n,r,i,o,s,!0)}function Zr(e){retu
115
115
  `}const bz=/\r?\n|\r/g;function yz(e,t){const n=[];let r=0,i=0,s;for(;s=bz.exec(e);)o(e.slice(r,s.index)),n.push(s[0]),r=s.index+s[0].length,i++;return o(e.slice(r)),n.join("");function o(a){n.push(t(a,i,!a))}}function vz(e,t,n){const r=(n.before||"")+(t||"")+(n.after||""),i=[],s=[],o={};let a=-1;for(;++a<e.unsafe.length;){const u=e.unsafe[a];if(!JR(e.stack,u))continue;const d=e.compilePattern(u);let f;for(;f=d.exec(r);){const h="before"in u||!!u.atBreak,p="after"in u,m=f.index+(h?f[1].length:0);i.includes(m)?(o[m].before&&!h&&(o[m].before=!1),o[m].after&&!p&&(o[m].after=!1)):(i.push(m),o[m]={before:h,after:p})}}i.sort(Ez);let l=n.before?n.before.length:0;const c=r.length-(n.after?n.after.length:0);for(a=-1;++a<i.length;){const u=i[a];u<l||u>=c||u+1<c&&i[a+1]===u+1&&o[u].after&&!o[u+1].before&&!o[u+1].after||i[a-1]===u-1&&o[u].before&&!o[u-1].before&&!o[u-1].after||(l!==u&&s.push(ux(r.slice(l,u),"\\")),l=u,/[!-/:-@[-`{-~]/.test(r.charAt(u))&&(!n.encode||!n.encode.includes(r.charAt(u)))?s.push("\\"):(s.push("&#x"+r.charCodeAt(u).toString(16).toUpperCase()+";"),l++))}return s.push(ux(r.slice(l,c),n.after)),s.join("")}function Ez(e,t){return e-t}function ux(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,r=[],i=[],s=e+t;let o=-1,a=0,l;for(;l=n.exec(s);)r.push(l.index);for(;++o<r.length;)a!==r[o]&&i.push(e.slice(a,r[o])),i.push("\\"),a=r[o];return i.push(e.slice(a)),i.join("")}function _z(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,i=n.line||1,s=n.column||1;return{move:l,current:o,shift:a};function o(){return{now:{line:i,column:s},lineShift:r}}function a(c){r+=c}function l(c){const u=c||"",d=u.split(/\r?\n|\r/g),f=d[d.length-1];return i+=d.length-1,s=d.length===1?s+f.length:1+f.length+r,u}}function wz(e,t={}){const n={enter:i,indentLines:yz,associationId:fz,containerPhrasing:Az,containerFlow:xz,createTracker:_z,compilePattern:hz,safe:Nz,stack:[],unsafe:[...dz],join:[...cz],handlers:{...Fw},options:{},indexStack:[],handle:void 0};QR(n,t),n.options.tightDefinitions&&n.join.push(kz),n.handle=rb("type",{invalid:Tz,unknown:Sz,handlers:n.handlers});let r=n.handle(e,void 0,n,{before:`
116
116
  `,after:`
117
117
  `,now:{line:1,column:1},lineShift:0});return r&&r.charCodeAt(r.length-1)!==10&&r.charCodeAt(r.length-1)!==13&&(r+=`
118
- `),r;function i(s){return n.stack.push(s),o;function o(){n.stack.pop()}}}function Tz(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function Sz(e){const t=e;throw new Error("Cannot handle unknown node `"+t.type+"`")}function kz(e,t){if(e.type==="definition"&&e.type===t.type)return 0}function Az(e,t){return pz(e,this,t)}function xz(e,t){return mz(e,this,t)}function Nz(e,t){return vz(this,e,t)}function Cz(e){const t=this;t.compiler=n;function n(r){return wz(r,{...t.data("settings"),...e,extensions:t.data("toMarkdownExtensions")||[]})}}function dx(e){if(e)throw e}var Lm=Object.prototype.hasOwnProperty,fP=Object.prototype.toString,fx=Object.defineProperty,hx=Object.getOwnPropertyDescriptor,px=function(t){return typeof Array.isArray=="function"?Array.isArray(t):fP.call(t)==="[object Array]"},mx=function(t){if(!t||fP.call(t)!=="[object Object]")return!1;var n=Lm.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Lm.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||Lm.call(t,i)},gx=function(t,n){fx&&n.name==="__proto__"?fx(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},bx=function(t,n){if(n==="__proto__")if(Lm.call(t,n)){if(hx)return hx(t,n).value}else return;return t[n]},Oz=function e(){var t,n,r,i,s,o,a=arguments[0],l=1,c=arguments.length,u=!1;for(typeof a=="boolean"&&(u=a,a=arguments[1]||{},l=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});l<c;++l)if(t=arguments[l],t!=null)for(n in t)r=bx(a,n),i=bx(t,n),a!==i&&(u&&i&&(mx(i)||(s=px(i)))?(s?(s=!1,o=r&&px(r)?r:[]):o=r&&mx(r)?r:{},gx(a,{name:n,newValue:e(u,o,i)})):typeof i<"u"&&gx(a,{name:n,newValue:i}));return a};const Iy=_0(Oz);function R1(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Dz(){const e=[],t={run:n,use:r};return t;function n(...i){let s=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);a(null,...i);function a(l,...c){const u=e[++s];let d=-1;if(l){o(l);return}for(;++d<i.length;)(c[d]===null||c[d]===void 0)&&(c[d]=i[d]);i=c,u?Iz(u,a)(...c):o(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function Iz(e,t){let n;return r;function r(...o){const a=e.length>o.length;let l;a&&o.push(i);try{l=e.apply(this,o)}catch(c){const u=c;if(a&&n)throw u;return i(u)}a||(l&&l.then&&typeof l.then=="function"?l.then(s,i):l instanceof Error?i(l):s(l))}function i(o,...a){n||(n=!0,t(o,...a))}function s(o){i(null,o)}}class Xr extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",s={},o=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?i=t:!s.cause&&t&&(o=!0,i=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?s.ruleId=r:(s.source=r.slice(0,l),s.ruleId=r.slice(l+1))}if(!s.place&&s.ancestors&&s.ancestors){const l=s.ancestors[s.ancestors.length-1];l&&(s.place=l.position)}const a=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=a?a.line:void 0,this.name=pf(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=o&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual,this.expected,this.note,this.url}}Xr.prototype.file="";Xr.prototype.name="";Xr.prototype.reason="";Xr.prototype.message="";Xr.prototype.stack="";Xr.prototype.column=void 0;Xr.prototype.line=void 0;Xr.prototype.ancestors=void 0;Xr.prototype.cause=void 0;Xr.prototype.fatal=void 0;Xr.prototype.place=void 0;Xr.prototype.ruleId=void 0;Xr.prototype.source=void 0;const hs={basename:Rz,dirname:Pz,extname:Lz,join:Mz,sep:"/"};function Rz(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ph(e);let n=0,r=-1,i=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else r<0&&(s=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else o<0&&(s=!0,o=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(r=i):(a=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function Pz(e){if(Ph(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Lz(e){Ph(e);let t=e.length,n=-1,r=0,i=-1,s=0,o;for(;t--;){const a=e.codePointAt(t);if(a===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),a===46?i<0?i=t:s!==1&&(s=1):i>-1&&(s=-1)}return i<0||n<0||s===0||s===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Mz(...e){let t=-1,n;for(;++t<e.length;)Ph(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":$z(n)}function $z(e){Ph(e);const t=e.codePointAt(0)===47;let n=Fz(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Fz(e,t){let n="",r=0,i=-1,s=0,o=-1,a,l;for(;++o<=e.length;){if(o<e.length)a=e.codePointAt(o);else{if(a===47)break;a=47}if(a===47){if(!(i===o-1||s===1))if(i!==o-1&&s===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=o,s=0;continue}}else if(n.length>0){n="",r=0,i=o,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,s=0}else a===46&&s>-1?s++:s=-1}return n}function Ph(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Bz={cwd:Uz};function Uz(){return"/"}function P1(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Hz(e){if(typeof e=="string")e=new URL(e);else if(!P1(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return jz(e)}function jz(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Ry=["history","path","basename","stem","extname","dirname"];class Vz{constructor(t){let n;t?P1(t)?n={path:t}:typeof t=="string"||qz(t)?n={value:t}:n=t:n={},this.cwd=Bz.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Ry.length;){const s=Ry[r];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let i;for(i in n)Ry.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?hs.basename(this.path):void 0}set basename(t){Ly(t,"basename"),Py(t,"basename"),this.path=hs.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?hs.dirname(this.path):void 0}set dirname(t){yx(this.basename,"dirname"),this.path=hs.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?hs.extname(this.path):void 0}set extname(t){if(Py(t,"extname"),yx(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=hs.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){P1(t)&&(t=Hz(t)),Ly(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?hs.basename(this.path,this.extname):void 0}set stem(t){Ly(t,"stem"),Py(t,"stem"),this.path=hs.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new Xr(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Py(e,t){if(e&&e.includes(hs.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+hs.sep+"`")}function Ly(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function yx(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function qz(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const zz=function(e){const r=this.constructor.prototype,i=r[e],s=function(){return i.apply(s,arguments)};Object.setPrototypeOf(s,r);const o=Object.getOwnPropertyNames(i);for(const a of o){const l=Object.getOwnPropertyDescriptor(i,a);l&&Object.defineProperty(s,a,l)}return s},Kz={}.hasOwnProperty;class Bw extends zz{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Dz()}copy(){const t=new Bw;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Iy(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Fy("data",this.frozen),this.namespace[t]=n,this):Kz.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Fy("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Ip(t),r=this.parser||this.Parser;return My("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),My("process",this.parser||this.Parser),$y("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(s,o){const a=Ip(t),l=r.parse(a);r.run(l,a,function(u,d,f){if(u||!d||!f)return c(u);const h=d,p=r.stringify(h,f);Gz(p)?f.value=p:f.result=p,c(u,f)});function c(u,d){u||!d?o(u):s?s(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),My("processSync",this.parser||this.Parser),$y("processSync",this.compiler||this.Compiler),this.process(t,i),Ex("processSync","process",n),r;function i(s,o){n=!0,dx(s),r=o}}run(t,n,r){vx(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?s(void 0,r):new Promise(s);function s(o,a){const l=Ip(n);i.run(t,l,c);function c(u,d,f){const h=d||t;u?a(u):o?o(h):r(void 0,h,f)}}}runSync(t,n){let r=!1,i;return this.run(t,n,s),Ex("runSync","run",r),i;function s(o,a){dx(o),i=a,r=!0}}stringify(t,n){this.freeze();const r=Ip(n),i=this.compiler||this.Compiler;return $y("stringify",i),vx(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Fy("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(c){if(typeof c=="function")l(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[u,...d]=c;l(u,d)}else o(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function o(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(c.plugins),c.settings&&(i.settings=Iy(!0,i.settings,c.settings))}function a(c){let u=-1;if(c!=null)if(Array.isArray(c))for(;++u<c.length;){const d=c[u];s(d)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function l(c,u){let d=-1,f=-1;for(;++d<r.length;)if(r[d][0]===c){f=d;break}if(f===-1)r.push([c,...u]);else if(u.length>0){let[h,...p]=u;const m=r[f][1];R1(m)&&R1(h)&&(h=Iy(!0,m,h)),r[f]=[c,h,...p]}}}}const hP=new Bw().freeze();function My(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function $y(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Fy(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function vx(e){if(!R1(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ex(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ip(e){return Wz(e)?e:new Vz(e)}function Wz(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Gz(e){return typeof e=="string"||Yz(e)}function Yz(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Xz=function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:window}(),{FormData:Qz,Blob:Jz,File:rNe}=Xz;/**
118
+ `),r;function i(s){return n.stack.push(s),o;function o(){n.stack.pop()}}}function Tz(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function Sz(e){const t=e;throw new Error("Cannot handle unknown node `"+t.type+"`")}function kz(e,t){if(e.type==="definition"&&e.type===t.type)return 0}function Az(e,t){return pz(e,this,t)}function xz(e,t){return mz(e,this,t)}function Nz(e,t){return vz(this,e,t)}function Cz(e){const t=this;t.compiler=n;function n(r){return wz(r,{...t.data("settings"),...e,extensions:t.data("toMarkdownExtensions")||[]})}}function dx(e){if(e)throw e}var Lm=Object.prototype.hasOwnProperty,fP=Object.prototype.toString,fx=Object.defineProperty,hx=Object.getOwnPropertyDescriptor,px=function(t){return typeof Array.isArray=="function"?Array.isArray(t):fP.call(t)==="[object Array]"},mx=function(t){if(!t||fP.call(t)!=="[object Object]")return!1;var n=Lm.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Lm.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||Lm.call(t,i)},gx=function(t,n){fx&&n.name==="__proto__"?fx(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},bx=function(t,n){if(n==="__proto__")if(Lm.call(t,n)){if(hx)return hx(t,n).value}else return;return t[n]},Oz=function e(){var t,n,r,i,s,o,a=arguments[0],l=1,c=arguments.length,u=!1;for(typeof a=="boolean"&&(u=a,a=arguments[1]||{},l=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});l<c;++l)if(t=arguments[l],t!=null)for(n in t)r=bx(a,n),i=bx(t,n),a!==i&&(u&&i&&(mx(i)||(s=px(i)))?(s?(s=!1,o=r&&px(r)?r:[]):o=r&&mx(r)?r:{},gx(a,{name:n,newValue:e(u,o,i)})):typeof i<"u"&&gx(a,{name:n,newValue:i}));return a};const Iy=_0(Oz);function R1(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Dz(){const e=[],t={run:n,use:r};return t;function n(...i){let s=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);a(null,...i);function a(l,...c){const u=e[++s];let d=-1;if(l){o(l);return}for(;++d<i.length;)(c[d]===null||c[d]===void 0)&&(c[d]=i[d]);i=c,u?Iz(u,a)(...c):o(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function Iz(e,t){let n;return r;function r(...o){const a=e.length>o.length;let l;a&&o.push(i);try{l=e.apply(this,o)}catch(c){const u=c;if(a&&n)throw u;return i(u)}a||(l&&l.then&&typeof l.then=="function"?l.then(s,i):l instanceof Error?i(l):s(l))}function i(o,...a){n||(n=!0,t(o,...a))}function s(o){i(null,o)}}class Xr extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",s={},o=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?i=t:!s.cause&&t&&(o=!0,i=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?s.ruleId=r:(s.source=r.slice(0,l),s.ruleId=r.slice(l+1))}if(!s.place&&s.ancestors&&s.ancestors){const l=s.ancestors[s.ancestors.length-1];l&&(s.place=l.position)}const a=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=a?a.line:void 0,this.name=pf(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=o&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual,this.expected,this.note,this.url}}Xr.prototype.file="";Xr.prototype.name="";Xr.prototype.reason="";Xr.prototype.message="";Xr.prototype.stack="";Xr.prototype.column=void 0;Xr.prototype.line=void 0;Xr.prototype.ancestors=void 0;Xr.prototype.cause=void 0;Xr.prototype.fatal=void 0;Xr.prototype.place=void 0;Xr.prototype.ruleId=void 0;Xr.prototype.source=void 0;const hs={basename:Rz,dirname:Pz,extname:Lz,join:Mz,sep:"/"};function Rz(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ph(e);let n=0,r=-1,i=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else r<0&&(s=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else o<0&&(s=!0,o=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(r=i):(a=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function Pz(e){if(Ph(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Lz(e){Ph(e);let t=e.length,n=-1,r=0,i=-1,s=0,o;for(;t--;){const a=e.codePointAt(t);if(a===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),a===46?i<0?i=t:s!==1&&(s=1):i>-1&&(s=-1)}return i<0||n<0||s===0||s===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Mz(...e){let t=-1,n;for(;++t<e.length;)Ph(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":$z(n)}function $z(e){Ph(e);const t=e.codePointAt(0)===47;let n=Fz(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Fz(e,t){let n="",r=0,i=-1,s=0,o=-1,a,l;for(;++o<=e.length;){if(o<e.length)a=e.codePointAt(o);else{if(a===47)break;a=47}if(a===47){if(!(i===o-1||s===1))if(i!==o-1&&s===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=o,s=0;continue}}else if(n.length>0){n="",r=0,i=o,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,s=0}else a===46&&s>-1?s++:s=-1}return n}function Ph(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Bz={cwd:Uz};function Uz(){return"/"}function P1(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Hz(e){if(typeof e=="string")e=new URL(e);else if(!P1(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return jz(e)}function jz(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Ry=["history","path","basename","stem","extname","dirname"];class Vz{constructor(t){let n;t?P1(t)?n={path:t}:typeof t=="string"||qz(t)?n={value:t}:n=t:n={},this.cwd=Bz.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Ry.length;){const s=Ry[r];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let i;for(i in n)Ry.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?hs.basename(this.path):void 0}set basename(t){Ly(t,"basename"),Py(t,"basename"),this.path=hs.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?hs.dirname(this.path):void 0}set dirname(t){yx(this.basename,"dirname"),this.path=hs.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?hs.extname(this.path):void 0}set extname(t){if(Py(t,"extname"),yx(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=hs.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){P1(t)&&(t=Hz(t)),Ly(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?hs.basename(this.path,this.extname):void 0}set stem(t){Ly(t,"stem"),Py(t,"stem"),this.path=hs.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new Xr(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Py(e,t){if(e&&e.includes(hs.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+hs.sep+"`")}function Ly(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function yx(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function qz(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const zz=function(e){const r=this.constructor.prototype,i=r[e],s=function(){return i.apply(s,arguments)};Object.setPrototypeOf(s,r);const o=Object.getOwnPropertyNames(i);for(const a of o){const l=Object.getOwnPropertyDescriptor(i,a);l&&Object.defineProperty(s,a,l)}return s},Kz={}.hasOwnProperty;class Bw extends zz{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Dz()}copy(){const t=new Bw;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Iy(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Fy("data",this.frozen),this.namespace[t]=n,this):Kz.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Fy("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Ip(t),r=this.parser||this.Parser;return My("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),My("process",this.parser||this.Parser),$y("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(s,o){const a=Ip(t),l=r.parse(a);r.run(l,a,function(u,d,f){if(u||!d||!f)return c(u);const h=d,p=r.stringify(h,f);Gz(p)?f.value=p:f.result=p,c(u,f)});function c(u,d){u||!d?o(u):s?s(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),My("processSync",this.parser||this.Parser),$y("processSync",this.compiler||this.Compiler),this.process(t,i),Ex("processSync","process",n),r;function i(s,o){n=!0,dx(s),r=o}}run(t,n,r){vx(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?s(void 0,r):new Promise(s);function s(o,a){const l=Ip(n);i.run(t,l,c);function c(u,d,f){const h=d||t;u?a(u):o?o(h):r(void 0,h,f)}}}runSync(t,n){let r=!1,i;return this.run(t,n,s),Ex("runSync","run",r),i;function s(o,a){dx(o),i=a,r=!0}}stringify(t,n){this.freeze();const r=Ip(n),i=this.compiler||this.Compiler;return $y("stringify",i),vx(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Fy("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(c){if(typeof c=="function")l(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[u,...d]=c;l(u,d)}else o(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function o(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(c.plugins),c.settings&&(i.settings=Iy(!0,i.settings,c.settings))}function a(c){let u=-1;if(c!=null)if(Array.isArray(c))for(;++u<c.length;){const d=c[u];s(d)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function l(c,u){let d=-1,f=-1;for(;++d<r.length;)if(r[d][0]===c){f=d;break}if(f===-1)r.push([c,...u]);else if(u.length>0){let[h,...p]=u;const m=r[f][1];R1(m)&&R1(h)&&(h=Iy(!0,m,h)),r[f]=[c,h,...p]}}}}const hP=new Bw().freeze();function My(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function $y(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Fy(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function vx(e){if(!R1(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ex(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ip(e){return Wz(e)?e:new Vz(e)}function Wz(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Gz(e){return typeof e=="string"||Yz(e)}function Yz(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Xz=function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:window}(),{FormData:Qz,Blob:Jz,File:tNe}=Xz;/**
119
119
  * @license https://raw.githubusercontent.com/node-fetch/node-fetch/master/LICENSE.md
120
120
  *
121
121
  * The MIT License (MIT)
@@ -210,9 +210,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`),B=G,O=Q),fe===void 0&&
210
210
  ${n}}`:n};function Oie(){return{showApiClient:!1,activeApiClientEndpointId:"",activeItem:{},snippetType:"javascript"}}const la=or(Oie());function Die(e,t=!1){t?la.showApiClient=!0:la.showApiClient=!la.showApiClient,e&&(la.activeItem=e)}function Iie(){la.showApiClient=!1}function Rie(e){la.activeApiClientEndpointId=e}function Pie(e){la.snippetType=e}const pb=()=>({state:Ru(la),toggleApiClient:Die,setActiveApiClientEndpointId:Rie,setSnippetType:Pie,hideApiClient:Iie}),dT=e=>{let t=0,n=0,r=0;if(!(e!=null&&e.length))return n;for(r=0;r<e.length;r++)t=e.charCodeAt(r),n=(n<<5)-n+t,n|=0;return n},iE=()=>({}),zu=typeof window<"u"?window.__SCALAR__??iE():iE();let BN;try{BN=new RegExp(`(^|(?<!
211
211
  ))
212
212
  +(?!
213
- |$)`,"g")}catch{BN=/\n+(?!\n|$)/g}const q3={parse:e=>{const t=JSON.parse(e);if(typeof t!="object")throw Error("Invalid JSON object");return t},parseSafe(e,t){try{return q3.parse(e)}catch(n){return typeof t=="function"?t(n):t}},stringify:e=>JSON.stringify(e)},z3=e=>typeof e!="string"?!1:!!q3.parseSafe(e,!1);function Lie(e){if(e.trim()[0]!=="{")return e;try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}}const Mie="https://api.scalar.com/request-proxy",$ie="https://proxy.scalar.com";function Fie(e,t){return`${e}?scalar_url=${encodeURI(t)}`}async function UN(e,t){t===Mie&&(t=$ie);const n=await fetch(t?Fie(t,e):e);return n.status!==200&&(console.error(`[fetchSpecFromUrl] Failed to fetch the specification at ${e} (Status: ${n.status})`),t||console.warn(`[fetchSpecFromUrl] Tried to fetch the specification (url: ${e}) without a proxy. Are the CORS headers configured to allow cross-domain requests? https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS`)),Lie(await n.text())}const Ln=(e,t,n=0)=>{var r,i,s,o,a;if(n>5)return null;if((t==null?void 0:t.mode)==="write"&&e.readOnly||(t==null?void 0:t.mode)==="read"&&e.writeOnly)return;if(e["x-variable"]){const c=(r=t==null?void 0:t.variables)==null?void 0:r[e["x-variable"]];if(c!==void 0)return e.type==="number"||e.type==="integer"?parseInt(c,10):c}if(Array.isArray(e.examples)&&e.examples.length>0)return e.examples[0];if(e.example!==void 0)return e.example;if(e.default!==void 0)return e.default;if(e.enum!==void 0)return e.enum[0];if(e.type==="object"||e.properties!==void 0){const c={};if(e.properties!==void 0&&Object.keys(e.properties).forEach(u=>{var d;const f=e.properties[u],h=t!=null&&t.xml?(d=f.xml)==null?void 0:d.name:void 0;c[h??u]=Ln(f,t,n+1)}),e.anyOf!==void 0?Object.assign(c,Ln(e.anyOf[0]),t,n+1):e.oneOf!==void 0?Object.assign(c,Ln(e.oneOf[0]),t,n+1):e.allOf!==void 0&&Object.assign(c,...e.allOf.map(u=>Ln(u,t,n+1))),e.additionalProperties!==void 0&&e.additionalProperties!==!1){const u=Ln(e.additionalProperties,t,n+1);return u&&typeof u=="object"&&!Array.isArray(u)?{...c,...Ln(e.additionalProperties,t,n+1)}:u===null?null:{...c,someKey:Ln(e.additionalProperties,t,n+1)}}return c}if(e.type==="array"||e.items!==void 0){const c=(s=(i=e==null?void 0:e.items)==null?void 0:i.xml)==null?void 0:s.name,u=!!(t!=null&&t.xml&&(o=e.xml)!=null&&o.wrapped&&c);if(e.example!==void 0)return u?{[c]:e.example}:e.example;if(e.items){const d=["anyOf","oneOf","allOf"];for(const f of d){if(!e.items[f])continue;const h=(["anyOf","oneOf"].includes(f)?e.items[f].slice(0,1):e.items[f]).map(p=>Ln(p,t,n+1));return u?[{[c]:h}]:h}}if((a=e.items)!=null&&a.type){const d=Ln(e.items,t,n+1);return u?[{[c]:d}]:[d]}return[]}const l={string:(t==null?void 0:t.emptyString)??"",boolean:!0,integer:e.min??1,number:e.min??1,array:[]};if(e.type!==void 0&&l[e.type]!==void 0)return l[e.type];if(Array.isArray(e.oneOf)&&e.oneOf.length>0){const c=e.oneOf[0];return Ln(c,t,n+1)}if(Array.isArray(e.allOf)){let c=null;return e.allOf.forEach(u=>{const d=Ln(u,t,n+1);c=typeof d=="object"&&typeof c=="object"?{...c??{},...d}:Array.isArray(d)&&Array.isArray(c)?[...c??{},...d]:d}),c}return console.warn(`[getExampleFromSchema] Unknown property type "${e.type}".`),null},K3=(...e)=>{let t={httpVersion:"1.1",method:"GET",url:"",path:"",headers:[],headersSize:-1,queryString:[],cookies:[],bodySize:-1};e.forEach(o=>{t={...t,...o,headers:[...t.headers,...o.headers??[]],queryString:[...t.queryString,...o.queryString??[]],cookies:[...t.cookies,...o.cookies??[]]}});const n=t.headers.reduce((o,{name:a,value:l})=>(o[a]=l,o),{}),r=aj.from(n).normalize(!0);t.headers=Object.entries(r).map(([o,a])=>({name:o,value:a}));const{path:i,...s}=t;return i?{...s,url:`${t.url}${i}`}:s};function Yc(e,t,n=!0){var r;return[...e.pathParameters||[],...((r=e.information)==null?void 0:r.parameters)||[]].filter(i=>i.in===t).filter(i=>n&&i.required||!n).map(i=>({name:i.name,description:i.description??null,value:i.example?i.example:i.schema?Ln(i.schema,{mode:"write"}):"",required:i.required??!1,enabled:i.required??!1})).sort((i,s)=>i.required&&!s.required?-1:!i.required&&s.required?1:0)}function Bie(e,t){const n=function(i,s,o){let a="";if(i instanceof Array)for(let l=0,c=i.length;l<c;l++)a+=o+n(i[l],s,o+" ")+`
213
+ |$)`,"g")}catch{BN=/\n+(?!\n|$)/g}const q3={parse:e=>{const t=JSON.parse(e);if(typeof t!="object")throw Error("Invalid JSON object");return t},parseSafe(e,t){try{return q3.parse(e)}catch(n){return typeof t=="function"?t(n):t}},stringify:e=>JSON.stringify(e)},z3=e=>typeof e!="string"?!1:!!q3.parseSafe(e,!1);function Lie(e){if(e.trim()[0]!=="{")return e;try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}}const Mie="https://api.scalar.com/request-proxy",$ie="https://proxy.scalar.com";function Fie(e,t){return`${e}?scalar_url=${encodeURI(t)}`}async function UN(e,t){t===Mie&&(t=$ie);const n=await fetch(t?Fie(t,e):e);return n.status!==200&&(console.error(`[fetchSpecFromUrl] Failed to fetch the specification at ${e} (Status: ${n.status})`),t||console.warn(`[fetchSpecFromUrl] Tried to fetch the specification (url: ${e}) without a proxy. Are the CORS headers configured to allow cross-domain requests? https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS`)),Lie(await n.text())}const Ln=(e,t,n=0)=>{var r,i,s,o,a;if(n>5)return null;if((t==null?void 0:t.mode)==="write"&&e.readOnly||(t==null?void 0:t.mode)==="read"&&e.writeOnly)return;if(e["x-variable"]){const c=(r=t==null?void 0:t.variables)==null?void 0:r[e["x-variable"]];if(c!==void 0)return e.type==="number"||e.type==="integer"?parseInt(c,10):c}if(Array.isArray(e.examples)&&e.examples.length>0)return e.examples[0];if(e.example!==void 0)return e.example;if(e.default!==void 0)return e.default;if(e.enum!==void 0)return e.enum[0];if(e.type==="object"||e.properties!==void 0){const c={};if(e.properties!==void 0&&Object.keys(e.properties).forEach(u=>{var d;const f=e.properties[u],h=t!=null&&t.xml?(d=f.xml)==null?void 0:d.name:void 0;c[h??u]=Ln(f,t,n+1)}),e.anyOf!==void 0?Object.assign(c,Ln(e.anyOf[0]),t,n+1):e.oneOf!==void 0?Object.assign(c,Ln(e.oneOf[0]),t,n+1):e.allOf!==void 0&&Object.assign(c,...e.allOf.map(u=>Ln(u,t,n+1))),e.additionalProperties!==void 0&&e.additionalProperties!==!1){const u=Ln(e.additionalProperties,t,n+1);return u&&typeof u=="object"&&!Array.isArray(u)?{...c,...Ln(e.additionalProperties,t,n+1)}:u===null?null:{...c,someKey:Ln(e.additionalProperties,t,n+1)}}return c}if(e.type==="array"||e.items!==void 0){const c=(s=(i=e==null?void 0:e.items)==null?void 0:i.xml)==null?void 0:s.name,u=!!(t!=null&&t.xml&&(o=e.xml)!=null&&o.wrapped&&c);if(e.example!==void 0)return u?{[c]:e.example}:e.example;if(e.items){const d=["anyOf","oneOf","allOf"];for(const f of d){if(!e.items[f])continue;const h=(["anyOf","oneOf"].includes(f)?e.items[f].slice(0,1):e.items[f]).map(p=>Ln(p,t,n+1));return u?[{[c]:h}]:h}}if((a=e.items)!=null&&a.type){const d=Ln(e.items,t,n+1);return u?[{[c]:d}]:[d]}return[]}const l={string:(t==null?void 0:t.emptyString)??"",boolean:!0,integer:e.min??1,number:e.min??1,array:[]};if(e.type!==void 0&&l[e.type]!==void 0)return l[e.type];if(Array.isArray(e.oneOf)&&e.oneOf.length>0){const c=e.oneOf[0];return Ln(c,t,n+1)}if(Array.isArray(e.allOf)){let c=null;return e.allOf.forEach(u=>{const d=Ln(u,t,n+1);c=typeof d=="object"&&typeof c=="object"?{...c??{},...d}:Array.isArray(d)&&Array.isArray(c)?[...c??{},...d]:d}),c}if(Array.isArray(e.type)){if(e.type.includes("null"))return null;const c=l[e.type[0]];if(c!==void 0)return c}return console.warn(`[getExampleFromSchema] Unknown property type "${e.type}".`),null},K3=(...e)=>{let t={httpVersion:"1.1",method:"GET",url:"",path:"",headers:[],headersSize:-1,queryString:[],cookies:[],bodySize:-1};e.forEach(o=>{t={...t,...o,headers:[...t.headers,...o.headers??[]],queryString:[...t.queryString,...o.queryString??[]],cookies:[...t.cookies,...o.cookies??[]]}});const n=t.headers.reduce((o,{name:a,value:l})=>(o[a]=l,o),{}),r=aj.from(n).normalize(!0);t.headers=Object.entries(r).map(([o,a])=>({name:o,value:a}));const{path:i,...s}=t;return i?{...s,url:`${t.url}${i}`}:s};function Yc(e,t,n=!0){var r;return[...e.pathParameters||[],...((r=e.information)==null?void 0:r.parameters)||[]].filter(i=>i.in===t).filter(i=>n&&i.required||!n).map(i=>({name:i.name,description:i.description??null,value:i.example?i.example:i.schema?Ln(i.schema,{mode:"write"}):"",required:i.required??!1,enabled:i.required??!1})).sort((i,s)=>i.required&&!s.required?-1:!i.required&&s.required?1:0)}function Bie(e,t){const n=function(i,s,o){let a="";if(i instanceof Array)for(let l=0,c=i.length;l<c;l++)a+=o+n(i[l],s,o+" ")+`
214
214
  `;else if(typeof i=="object"){let l=!1;a+=o+"<"+s;for(const c in i)c.charAt(0)=="@"?a+=" "+c.substr(1)+'="'+i[c].toString()+'"':l=!0;if(a+=l?">":"/>",l){for(const c in i)c=="#text"?a+=i[c]:c=="#cdata"?a+="<![CDATA["+i[c]+"]]>":c.charAt(0)!="@"&&(a+=n(i[c],c,o+" "));a+=(a.charAt(a.length-1)==`
215
- `?o:"")+"</"+s+">"}}else a+=o+"<"+s+">"+i.toString()+"</"+s+">";return a};let r="";for(const i in e)r+=n(e[i],i,"");return t?r.replace(/\t/g,t):r.replace(/\t|\n/g,"")}function W3(e){return e.replace(/;.*$/,"").replace(/\/.+\+/,"/").trim()}function G3(e){if(!e)return e;const t={...e};return Object.keys(t).forEach(n=>{const r=W3(n);t[r]=t[n],n!==r&&delete t[n]}),t}const Jf=e=>{try{return JSON.stringify(typeof e=="string"?JSON.parse(e):e,null,2)}catch{return console.log("[prettyPrintJson] Error parsing JSON",e),e}};function Uie(e,t){var n,r,i,s;const o=["application/json","application/octet-stream","application/x-www-form-urlencoded","application/xml","multipart/form-data","text/plain"],a=(r=(n=e.information)==null?void 0:n.requestBody)==null?void 0:r.content,l=G3(a),c=o.find(b=>!!(l!=null&&l[b])),u=(i=l==null?void 0:l["application/json"])==null?void 0:i.examples,d=(s=u??{})==null?void 0:s[t??Object.keys(u??{})[0]];if(d)return{postData:{mimeType:"application/json",text:Jf(d==null?void 0:d.value)}};const f=Yc(e,"body",!1);if(f.length>0)return{postData:{mimeType:"application/json",text:Jf(f[0].value)}};const h=Yc(e,"formData",!1);if(h.length>0)return{postData:{mimeType:"application/x-www-form-urlencoded",params:h.map(b=>({name:b.name,value:b.value}))}};if(!c)return{postData:void 0};const p=l==null?void 0:l[c],m=[{name:"Content-Type",value:c}],g=p!=null&&p.example?p==null?void 0:p.example:void 0;if(c==="application/json"){const b=p!=null&&p.schema?Ln(p==null?void 0:p.schema,{mode:"write"}):null,v=g??b;return{headers:m,postData:{mimeType:c,text:typeof v=="string"?v:JSON.stringify(v,null,2)}}}if(c==="application/xml"){const b=p!=null&&p.schema?Ln(p==null?void 0:p.schema,{xml:!0,mode:"write"}):null;return{headers:m,postData:{mimeType:c,text:g??Bie(b," ")}}}if(c==="application/octet-stream")return{headers:m,postData:{mimeType:c,text:"BINARY"}};if(c==="text/plain"){const b=p!=null&&p.schema?Ln(p==null?void 0:p.schema,{xml:!0,mode:"write"}):null;return{headers:m,postData:{mimeType:c,text:g??b??""}}}if(c==="application/x-www-form-urlencoded")return{headers:m,postData:{mimeType:c}};if(c==="multipart/form-data")return{headers:m,postData:{mimeType:c}}}const sE=(e,t,n)=>{let r=e.path;if((t==null?void 0:t.replaceVariables)===!0){const s=r.match(/{(.*?)}/g);s&&s.forEach(o=>{const a=o.replace(/{|}/g,"");r=r.replace(o,`__${a.toUpperCase()}__`)})}const i=Uie(e,n);return{method:e.httpVerb.toUpperCase(),path:r,headers:[...Yc(e,"header",t==null?void 0:t.requiredOnly),...(i==null?void 0:i.headers)??[]],postData:i==null?void 0:i.postData,queryString:Yc(e,"query",t==null?void 0:t.requiredOnly),cookies:Yc(e,"cookie",t==null?void 0:t.requiredOnly)}},Y3=()=>({preferredSecurityScheme:null,customSecurity:!1,http:{basic:{username:"",password:""},bearer:{token:""}},apiKey:{token:""},oAuth2:{clientId:"",scopes:[],accessToken:"",state:""}}),X3=or(zu["useGlobalStore-authentication"]??Y3()),Hie=e=>Object.assign(X3,e),Ku=()=>({authentication:X3,setAuthentication:Hie}),Q3=()=>({operation:{},globalSecurity:[]}),Zf=or(Q3()),jie=e=>{Object.assign(Zf,{...Zf,operation:e})},Vie=e=>{Object.assign(Zf,{...Zf,globalSecurity:e})},fT=()=>({openApi:Zf,setOperation:jie,setGlobalSecurity:Vie}),J3=()=>({name:"",url:"",type:"GET",path:"",variables:[],headers:[],query:[],body:"",formData:[]}),mb=or({}),Z3=de([]),mu=de(""),hT=or(J3()),qie=e=>{mb[e.responseId]=e,mu.value=e.responseId,Z3.value.unshift(e.responseId)},zie=e=>{mu.value=e;const{request:t}=mb[e],n=JSON.parse(JSON.stringify(t));n.body=JSON.stringify(t.body,null,2),Object.assign(hT,n)},Kie=ue(()=>mu.value?mb[mu.value].response:null),Wie=e=>{Object.assign(hT,e)},Gie=()=>{mu.value=""},Yie=de(!0),eM=()=>({readOnly:Yie,activeRequest:hT,activeResponse:Kie,requestHistory:mb,requestHistoryOrder:Z3,activeRequestId:mu,setActiveResponse:zie,resetActiveResponse:Gie,addRequestToHistory:qie,setActiveRequest:Wie}),pT=["GET","POST","PUT","HEAD","DELETE","PATCH","OPTIONS","CONNECT","TRACE"];function oE(e){return pT.includes(e)}const tM={POST:"var(--scalar-color-green)",DELETE:"var(--scalar-color-red)",PATCH:"var(--scalar-color-yellow)",GET:"var(--scalar-color-blue)",PUT:"var(--scalar-color-orange)",OPTIONS:"var(--scalar-color-purple)",HEAD:"var(--scalar-color-2)",CONNECT:"var(--scalar-color-2)",TRACE:"var(--scalar-color-2)"},nM={POST:"POST",DELETE:"DEL",PATCH:"PATCH",GET:"GET",PUT:"PUT",OPTIONS:"OPTS",HEAD:"HEAD",CONNECT:"CONN",TRACE:"TRACE"},uc=Se({__name:"HttpMethod",props:{as:{},property:{},short:{type:Boolean},method:{}},setup(e){const t=e,n=ue(()=>t.method.trim().toUpperCase()),r=ue(()=>oE(n.value)?nM[n.value]:n.value.slice(0,4)),i=ue(()=>oE(n.value)?tM[n.value]:"var(--scalar-color-ghost)");return(s,o)=>(C(),he(Di(s.as??"span"),{style:_r({[s.property||"color"]:i.value})},{default:X(()=>[Be(s.$slots,"default",vi(Zr({normalized:n.value,abbreviated:r.value,color:i.value})),()=>[Pe(Ue(s.short?r.value:n.value),1)])]),_:3},8,["style"]))}});class zt{lineAt(t){if(t<0||t>this.length)throw new RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw new RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,n,r){[t,n]=gu(this,t,n);let i=[];return this.decompose(0,t,i,2),r.length&&r.decompose(0,r.length,i,3),this.decompose(n,this.length,i,1),vs.from(i,this.length-(n-t)+r.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,n=this.length){[t,n]=gu(this,t,n);let r=[];return this.decompose(t,n,r,0),vs.from(r,n-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let n=this.scanIdentical(t,1),r=this.length-this.scanIdentical(t,-1),i=new wf(this),s=new wf(t);for(let o=n,a=n;;){if(i.next(o),s.next(o),o=0,i.lineBreak!=s.lineBreak||i.done!=s.done||i.value!=s.value)return!1;if(a+=i.value.length,i.done||a>=r)return!0}}iter(t=1){return new wf(this,t)}iterRange(t,n=this.length){return new rM(this,t,n)}iterLines(t,n){let r;if(t==null)r=this.iter();else{n==null&&(n=this.lines+1);let i=this.line(t).from;r=this.iterRange(i,Math.max(i,n==this.lines+1?this.length:n<=1?0:this.line(n-1).to))}return new iM(r)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(t){if(t.length==0)throw new RangeError("A document must have at least one line");return t.length==1&&!t[0]?zt.empty:t.length<=32?new _n(t):vs.from(_n.split(t,[]))}}class _n extends zt{constructor(t,n=Xie(t)){super(),this.text=t,this.length=n}get lines(){return this.text.length}get children(){return null}lineInner(t,n,r,i){for(let s=0;;s++){let o=this.text[s],a=i+o.length;if((n?r:a)>=t)return new Qie(i,a,r,o);i=a+1,r++}}decompose(t,n,r,i){let s=t<=0&&n>=this.length?this:new _n(HN(this.text,t,n),Math.min(n,this.length)-Math.max(0,t));if(i&1){let o=r.pop(),a=Bm(s.text,o.text.slice(),0,s.length);if(a.length<=32)r.push(new _n(a,o.length+s.length));else{let l=a.length>>1;r.push(new _n(a.slice(0,l)),new _n(a.slice(l)))}}else r.push(s)}replace(t,n,r){if(!(r instanceof _n))return super.replace(t,n,r);[t,n]=gu(this,t,n);let i=Bm(this.text,Bm(r.text,HN(this.text,0,t)),n),s=this.length+r.length-(n-t);return i.length<=32?new _n(i,s):vs.from(_n.split(i,[]),s)}sliceString(t,n=this.length,r=`
215
+ `?o:"")+"</"+s+">"}}else a+=o+"<"+s+">"+i.toString()+"</"+s+">";return a};let r="";for(const i in e)r+=n(e[i],i,"");return t?r.replace(/\t/g,t):r.replace(/\t|\n/g,"")}function W3(e){if(typeof e=="string")return e.replace(/;.*$/,"").replace(/\/.+\+/,"/").trim()}function G3(e){if(!e)return e;const t={...e};return Object.keys(t).forEach(n=>{const r=W3(n);r!==void 0&&(t[r]=t[n],n!==r&&delete t[n])}),t}const Jf=e=>{try{return JSON.stringify(typeof e=="string"?JSON.parse(e):e,null,2)}catch{return console.log("[prettyPrintJson] Error parsing JSON",e),e}};function Uie(e,t){var n,r,i,s;const o=["application/json","application/octet-stream","application/x-www-form-urlencoded","application/xml","multipart/form-data","text/plain"],a=(r=(n=e.information)==null?void 0:n.requestBody)==null?void 0:r.content,l=G3(a),c=o.find(b=>!!(l!=null&&l[b])),u=(i=l==null?void 0:l["application/json"])==null?void 0:i.examples,d=(s=u??{})==null?void 0:s[t??Object.keys(u??{})[0]];if(d)return{postData:{mimeType:"application/json",text:Jf(d==null?void 0:d.value)}};const f=Yc(e,"body",!1);if(f.length>0)return{postData:{mimeType:"application/json",text:Jf(f[0].value)}};const h=Yc(e,"formData",!1);if(h.length>0)return{postData:{mimeType:"application/x-www-form-urlencoded",params:h.map(b=>({name:b.name,value:b.value}))}};if(!c)return{postData:void 0};const p=l==null?void 0:l[c],m=[{name:"Content-Type",value:c}],g=p!=null&&p.example?p==null?void 0:p.example:void 0;if(c==="application/json"){const b=p!=null&&p.schema?Ln(p==null?void 0:p.schema,{mode:"write"}):null,v=g??b;return{headers:m,postData:{mimeType:c,text:typeof v=="string"?v:JSON.stringify(v,null,2)}}}if(c==="application/xml"){const b=p!=null&&p.schema?Ln(p==null?void 0:p.schema,{xml:!0,mode:"write"}):null;return{headers:m,postData:{mimeType:c,text:g??Bie(b," ")}}}if(c==="application/octet-stream")return{headers:m,postData:{mimeType:c,text:"BINARY"}};if(c==="text/plain"){const b=p!=null&&p.schema?Ln(p==null?void 0:p.schema,{xml:!0,mode:"write"}):null;return{headers:m,postData:{mimeType:c,text:g??b??""}}}if(c==="application/x-www-form-urlencoded")return{headers:m,postData:{mimeType:c}};if(c==="multipart/form-data")return{headers:m,postData:{mimeType:c}}}const sE=(e,t,n)=>{let r=e.path;if((t==null?void 0:t.replaceVariables)===!0){const s=r.match(/{(.*?)}/g);s&&s.forEach(o=>{const a=o.replace(/{|}/g,"");r=r.replace(o,`__${a.toUpperCase()}__`)})}const i=Uie(e,n);return{method:e.httpVerb.toUpperCase(),path:r,headers:[...Yc(e,"header",t==null?void 0:t.requiredOnly),...(i==null?void 0:i.headers)??[]],postData:i==null?void 0:i.postData,queryString:Yc(e,"query",t==null?void 0:t.requiredOnly),cookies:Yc(e,"cookie",t==null?void 0:t.requiredOnly)}},Y3=()=>({preferredSecurityScheme:null,customSecurity:!1,http:{basic:{username:"",password:""},bearer:{token:""}},apiKey:{token:""},oAuth2:{clientId:"",scopes:[],accessToken:"",state:""}}),X3=or(zu["useGlobalStore-authentication"]??Y3()),Hie=e=>Object.assign(X3,e),Ku=()=>({authentication:X3,setAuthentication:Hie}),Q3=()=>({operation:{},globalSecurity:[]}),Zf=or(Q3()),jie=e=>{Object.assign(Zf,{...Zf,operation:e})},Vie=e=>{Object.assign(Zf,{...Zf,globalSecurity:e})},fT=()=>({openApi:Zf,setOperation:jie,setGlobalSecurity:Vie}),J3=()=>({name:"",url:"",type:"GET",path:"",variables:[],headers:[],query:[],body:"",formData:[]}),mb=or({}),Z3=de([]),mu=de(""),hT=or(J3()),qie=e=>{mb[e.responseId]=e,mu.value=e.responseId,Z3.value.unshift(e.responseId)},zie=e=>{mu.value=e;const{request:t}=mb[e],n=JSON.parse(JSON.stringify(t));n.body=JSON.stringify(t.body,null,2),Object.assign(hT,n)},Kie=ue(()=>mu.value?mb[mu.value].response:null),Wie=e=>{Object.assign(hT,e)},Gie=()=>{mu.value=""},Yie=de(!0),eM=()=>({readOnly:Yie,activeRequest:hT,activeResponse:Kie,requestHistory:mb,requestHistoryOrder:Z3,activeRequestId:mu,setActiveResponse:zie,resetActiveResponse:Gie,addRequestToHistory:qie,setActiveRequest:Wie}),pT=["GET","POST","PUT","HEAD","DELETE","PATCH","OPTIONS","CONNECT","TRACE"];function oE(e){return pT.includes(e)}const tM={POST:"var(--scalar-color-green)",DELETE:"var(--scalar-color-red)",PATCH:"var(--scalar-color-yellow)",GET:"var(--scalar-color-blue)",PUT:"var(--scalar-color-orange)",OPTIONS:"var(--scalar-color-purple)",HEAD:"var(--scalar-color-2)",CONNECT:"var(--scalar-color-2)",TRACE:"var(--scalar-color-2)"},nM={POST:"POST",DELETE:"DEL",PATCH:"PATCH",GET:"GET",PUT:"PUT",OPTIONS:"OPTS",HEAD:"HEAD",CONNECT:"CONN",TRACE:"TRACE"},uc=Se({__name:"HttpMethod",props:{as:{},property:{},short:{type:Boolean},method:{}},setup(e){const t=e,n=ue(()=>t.method.trim().toUpperCase()),r=ue(()=>oE(n.value)?nM[n.value]:n.value.slice(0,4)),i=ue(()=>oE(n.value)?tM[n.value]:"var(--scalar-color-ghost)");return(s,o)=>(C(),he(Di(s.as??"span"),{style:_r({[s.property||"color"]:i.value})},{default:X(()=>[Be(s.$slots,"default",vi(Zr({normalized:n.value,abbreviated:r.value,color:i.value})),()=>[Pe(Ue(s.short?r.value:n.value),1)])]),_:3},8,["style"]))}});class zt{lineAt(t){if(t<0||t>this.length)throw new RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw new RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,n,r){[t,n]=gu(this,t,n);let i=[];return this.decompose(0,t,i,2),r.length&&r.decompose(0,r.length,i,3),this.decompose(n,this.length,i,1),vs.from(i,this.length-(n-t)+r.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,n=this.length){[t,n]=gu(this,t,n);let r=[];return this.decompose(t,n,r,0),vs.from(r,n-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let n=this.scanIdentical(t,1),r=this.length-this.scanIdentical(t,-1),i=new wf(this),s=new wf(t);for(let o=n,a=n;;){if(i.next(o),s.next(o),o=0,i.lineBreak!=s.lineBreak||i.done!=s.done||i.value!=s.value)return!1;if(a+=i.value.length,i.done||a>=r)return!0}}iter(t=1){return new wf(this,t)}iterRange(t,n=this.length){return new rM(this,t,n)}iterLines(t,n){let r;if(t==null)r=this.iter();else{n==null&&(n=this.lines+1);let i=this.line(t).from;r=this.iterRange(i,Math.max(i,n==this.lines+1?this.length:n<=1?0:this.line(n-1).to))}return new iM(r)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(t){if(t.length==0)throw new RangeError("A document must have at least one line");return t.length==1&&!t[0]?zt.empty:t.length<=32?new _n(t):vs.from(_n.split(t,[]))}}class _n extends zt{constructor(t,n=Xie(t)){super(),this.text=t,this.length=n}get lines(){return this.text.length}get children(){return null}lineInner(t,n,r,i){for(let s=0;;s++){let o=this.text[s],a=i+o.length;if((n?r:a)>=t)return new Qie(i,a,r,o);i=a+1,r++}}decompose(t,n,r,i){let s=t<=0&&n>=this.length?this:new _n(HN(this.text,t,n),Math.min(n,this.length)-Math.max(0,t));if(i&1){let o=r.pop(),a=Bm(s.text,o.text.slice(),0,s.length);if(a.length<=32)r.push(new _n(a,o.length+s.length));else{let l=a.length>>1;r.push(new _n(a.slice(0,l)),new _n(a.slice(l)))}}else r.push(s)}replace(t,n,r){if(!(r instanceof _n))return super.replace(t,n,r);[t,n]=gu(this,t,n);let i=Bm(this.text,Bm(r.text,HN(this.text,0,t)),n),s=this.length+r.length-(n-t);return i.length<=32?new _n(i,s):vs.from(_n.split(i,[]),s)}sliceString(t,n=this.length,r=`
216
216
  `){[t,n]=gu(this,t,n);let i="";for(let s=0,o=0;s<=n&&o<this.text.length;o++){let a=this.text[o],l=s+a.length;s>t&&o&&(i+=r),t<l&&n>s&&(i+=a.slice(Math.max(0,t-s),n-s)),s=l+1}return i}flatten(t){for(let n of this.text)t.push(n)}scanIdentical(){return 0}static split(t,n){let r=[],i=-1;for(let s of t)r.push(s),i+=s.length+1,r.length==32&&(n.push(new _n(r,i)),r=[],i=-1);return i>-1&&n.push(new _n(r,i)),n}}class vs extends zt{constructor(t,n){super(),this.children=t,this.length=n,this.lines=0;for(let r of t)this.lines+=r.lines}lineInner(t,n,r,i){for(let s=0;;s++){let o=this.children[s],a=i+o.length,l=r+o.lines-1;if((n?l:a)>=t)return o.lineInner(t,n,r,i);i=a+1,r=l+1}}decompose(t,n,r,i){for(let s=0,o=0;o<=n&&s<this.children.length;s++){let a=this.children[s],l=o+a.length;if(t<=l&&n>=o){let c=i&((o<=t?1:0)|(l>=n?2:0));o>=t&&l<=n&&!c?r.push(a):a.decompose(t-o,n-o,r,c)}o=l+1}}replace(t,n,r){if([t,n]=gu(this,t,n),r.lines<this.lines)for(let i=0,s=0;i<this.children.length;i++){let o=this.children[i],a=s+o.length;if(t>=s&&n<=a){let l=o.replace(t-s,n-s,r),c=this.lines-o.lines+l.lines;if(l.lines<c>>4&&l.lines>c>>6){let u=this.children.slice();return u[i]=l,new vs(u,this.length-(n-t)+r.length)}return super.replace(s,a,l)}s=a+1}return super.replace(t,n,r)}sliceString(t,n=this.length,r=`
217
217
  `){[t,n]=gu(this,t,n);let i="";for(let s=0,o=0;s<this.children.length&&o<=n;s++){let a=this.children[s],l=o+a.length;o>t&&s&&(i+=r),t<l&&n>o&&(i+=a.sliceString(t-o,n-o,r)),o=l+1}return i}flatten(t){for(let n of this.children)n.flatten(t)}scanIdentical(t,n){if(!(t instanceof vs))return 0;let r=0,[i,s,o,a]=n>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;i+=n,s+=n){if(i==o||s==a)return r;let l=this.children[i],c=t.children[s];if(l!=c)return r+l.scanIdentical(c,n);r+=l.length+1}}static from(t,n=t.reduce((r,i)=>r+i.length+1,-1)){let r=0;for(let h of t)r+=h.lines;if(r<32){let h=[];for(let p of t)p.flatten(h);return new _n(h,n)}let i=Math.max(32,r>>5),s=i<<1,o=i>>1,a=[],l=0,c=-1,u=[];function d(h){let p;if(h.lines>s&&h instanceof vs)for(let m of h.children)d(m);else h.lines>o&&(l>o||!l)?(f(),a.push(h)):h instanceof _n&&l&&(p=u[u.length-1])instanceof _n&&h.lines+p.lines<=32?(l+=h.lines,c+=h.length+1,u[u.length-1]=new _n(p.text.concat(h.text),p.length+1+h.length)):(l+h.lines>i&&f(),l+=h.lines,c+=h.length+1,u.push(h))}function f(){l!=0&&(a.push(u.length==1?u[0]:vs.from(u,c)),c=-1,l=u.length=0)}for(let h of t)d(h);return f(),a.length==1?a[0]:new vs(a,n)}}zt.empty=new _n([""],0);function Xie(e){let t=-1;for(let n of e)t+=n.length+1;return t}function Bm(e,t,n=0,r=1e9){for(let i=0,s=0,o=!0;s<e.length&&i<=r;s++){let a=e[s],l=i+a.length;l>=n&&(l>r&&(a=a.slice(0,r-i)),i<n&&(a=a.slice(n-i)),o?(t[t.length-1]+=a,o=!1):t.push(a)),i=l+1}return t}function HN(e,t,n){return Bm(e,[""],t,n)}class wf{constructor(t,n=1){this.dir=n,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[t],this.offsets=[n>0?1:(t instanceof _n?t.text.length:t.children.length)<<1]}nextInner(t,n){for(this.done=this.lineBreak=!1;;){let r=this.nodes.length-1,i=this.nodes[r],s=this.offsets[r],o=s>>1,a=i instanceof _n?i.text.length:i.children.length;if(o==(n>0?a:0)){if(r==0)return this.done=!0,this.value="",this;n>0&&this.offsets[r-1]++,this.nodes.pop(),this.offsets.pop()}else if((s&1)==(n>0?0:1)){if(this.offsets[r]+=n,t==0)return this.lineBreak=!0,this.value=`
218
218
  `,this;t--}else if(i instanceof _n){let l=i.text[o+(n<0?-1:0)];if(this.offsets[r]+=n,l.length>Math.max(0,t))return this.value=t==0?l:n>0?l.slice(t):l.slice(0,l.length-t),this;t-=l.length}else{let l=i.children[o+(n<0?-1:0)];t>l.length?(t-=l.length,this.offsets[r]+=n):(n<0&&this.offsets[r]--,this.nodes.push(l),this.offsets.push(n>0?1:(l instanceof _n?l.text.length:l.children.length)<<1))}}}next(t=0){return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}class rM{constructor(t,n,r){this.value="",this.done=!1,this.cursor=new wf(t,n>r?-1:1),this.pos=n>r?t.length:0,this.from=Math.min(n,r),this.to=Math.max(n,r)}nextInner(t,n){if(n<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;t+=Math.max(0,n<0?this.pos-this.to:this.from-this.pos);let r=n<0?this.pos-this.from:this.to-this.pos;t>r&&(t=r),r-=t;let{value:i}=this.cursor.next(t);return this.pos+=(i.length+t)*n,this.value=i.length<=r?i:n<0?i.slice(i.length-r):i.slice(0,r),this.done=!this.value,this}next(t=0){return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class iM{constructor(t){this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}next(t=0){let{done:n,lineBreak:r,value:i}=this.inner.next(t);return n&&this.afterBreak?(this.value="",this.afterBreak=!1):n?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=i,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(zt.prototype[Symbol.iterator]=function(){return this.iter()},wf.prototype[Symbol.iterator]=rM.prototype[Symbol.iterator]=iM.prototype[Symbol.iterator]=function(){return this});class Qie{constructor(t,n,r,i){this.from=t,this.to=n,this.number=r,this.text=i}get length(){return this.to-this.from}}function gu(e,t,n){return t=Math.max(0,Math.min(e.length,t)),[t,Math.max(t,Math.min(e.length,n))]}let Xc="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=1;e<Xc.length;e++)Xc[e]+=Xc[e-1];function Jie(e){for(let t=1;t<Xc.length;t+=2)if(Xc[t]>e)return Xc[t-1]<=e;return!1}function jN(e){return e>=127462&&e<=127487}const VN=8205;function ks(e,t,n=!0,r=!0){return(n?sM:Zie)(e,t,r)}function sM(e,t,n){if(t==e.length)return t;t&&oM(e.charCodeAt(t))&&aM(e.charCodeAt(t-1))&&t--;let r=Qc(e,t);for(t+=Lg(r);t<e.length;){let i=Qc(e,t);if(r==VN||i==VN||n&&Jie(i))t+=Lg(i),r=i;else if(jN(i)){let s=0,o=t-2;for(;o>=0&&jN(Qc(e,o));)s++,o-=2;if(s%2==0)break;t+=2}else break}return t}function Zie(e,t,n){for(;t>0;){let r=sM(e,t-2,n);if(r<t)return r;t--}return 0}function oM(e){return e>=56320&&e<57344}function aM(e){return e>=55296&&e<56320}function Qc(e,t){let n=e.charCodeAt(t);if(!aM(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return oM(r)?(n-55296<<10)+(r-56320)+65536:n}function ese(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}function Lg(e){return e<65536?1:2}const aE=/\r\n?|\n/;exports.zt=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(exports.zt||(exports.zt={}));class io{constructor(t){this.sections=t}get length(){let t=0;for(let n=0;n<this.sections.length;n+=2)t+=this.sections[n];return t}get newLength(){let t=0;for(let n=0;n<this.sections.length;n+=2){let r=this.sections[n+1];t+=r<0?this.sections[n]:r}return t}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(t){for(let n=0,r=0,i=0;n<this.sections.length;){let s=this.sections[n++],o=this.sections[n++];o<0?(t(r,i,s),i+=s):i+=o,r+=s}}iterChangedRanges(t,n=!1){lE(this,t,n)}get invertedDesc(){let t=[];for(let n=0;n<this.sections.length;){let r=this.sections[n++],i=this.sections[n++];i<0?t.push(r,i):t.push(i,r)}return new io(t)}composeDesc(t){return this.empty?t:t.empty?this:lM(this,t)}mapDesc(t,n=!1){return t.empty?this:cE(this,t,n)}mapPos(t,n=-1,r=exports.zt.Simple){let i=0,s=0;for(let o=0;o<this.sections.length;){let a=this.sections[o++],l=this.sections[o++],c=i+a;if(l<0){if(c>t)return s+(t-i);s+=a}else{if(r!=exports.zt.Simple&&c>=t&&(r==exports.zt.TrackDel&&i<t&&c>t||r==exports.zt.TrackBefore&&i<t||r==exports.zt.TrackAfter&&c>t))return null;if(c>t||c==t&&n<0&&!a)return t==i||n<0?s:s+l;s+=l}i=c}if(t>i)throw new RangeError(`Position ${t} is out of range for changeset of length ${i}`);return s}touchesRange(t,n=t){for(let r=0,i=0;r<this.sections.length&&i<=n;){let s=this.sections[r++],o=this.sections[r++],a=i+s;if(o>=0&&i<=n&&a>=t)return i<t&&a>n?"cover":!0;i=a}return!1}toString(){let t="";for(let n=0;n<this.sections.length;){let r=this.sections[n++],i=this.sections[n++];t+=(t?" ":"")+r+(i>=0?":"+i:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(n=>typeof n!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new io(t)}static create(t){return new io(t)}}class qn extends io{constructor(t,n){super(t),this.inserted=n}apply(t){if(this.length!=t.length)throw new RangeError("Applying change set to a document with the wrong length");return lE(this,(n,r,i,s,o)=>t=t.replace(i,i+(r-n),o),!1),t}mapDesc(t,n=!1){return cE(this,t,n,!0)}invert(t){let n=this.sections.slice(),r=[];for(let i=0,s=0;i<n.length;i+=2){let o=n[i],a=n[i+1];if(a>=0){n[i]=a,n[i+1]=o;let l=i>>1;for(;r.length<l;)r.push(zt.empty);r.push(o?t.slice(s,s+o):zt.empty)}s+=o}return new qn(n,r)}compose(t){return this.empty?t:t.empty?this:lM(this,t,!0)}map(t,n=!1){return t.empty?this:cE(this,t,n,!0)}iterChanges(t,n=!1){lE(this,t,n)}get desc(){return io.create(this.sections)}filter(t){let n=[],r=[],i=[],s=new eh(this);e:for(let o=0,a=0;;){let l=o==t.length?1e9:t[o++];for(;a<l||a==l&&s.len==0;){if(s.done)break e;let u=Math.min(s.len,l-a);hr(i,u,-1);let d=s.ins==-1?-1:s.off==0?s.ins:0;hr(n,u,d),d>0&&ca(r,n,s.text),s.forward(u),a+=u}let c=t[o++];for(;a<c;){if(s.done)break e;let u=Math.min(s.len,c-a);hr(n,u,-1),hr(i,u,s.ins==-1?-1:s.off==0?s.ins:0),s.forward(u),a+=u}}return{changes:new qn(n,r),filtered:io.create(i)}}toJSON(){let t=[];for(let n=0;n<this.sections.length;n+=2){let r=this.sections[n],i=this.sections[n+1];i<0?t.push(r):i==0?t.push([r]):t.push([r].concat(this.inserted[n>>1].toJSON()))}return t}static of(t,n,r){let i=[],s=[],o=0,a=null;function l(u=!1){if(!u&&!i.length)return;o<n&&hr(i,n-o,-1);let d=new qn(i,s);a=a?a.compose(d.map(a)):d,i=[],s=[],o=0}function c(u){if(Array.isArray(u))for(let d of u)c(d);else if(u instanceof qn){if(u.length!=n)throw new RangeError(`Mismatched change set length (got ${u.length}, expected ${n})`);l(),a=a?a.compose(u.map(a)):u}else{let{from:d,to:f=d,insert:h}=u;if(d>f||d<0||f>n)throw new RangeError(`Invalid change range ${d} to ${f} (in doc of length ${n})`);let p=h?typeof h=="string"?zt.of(h.split(r||aE)):h:zt.empty,m=p.length;if(d==f&&m==0)return;d<o&&l(),d>o&&hr(i,d-o,-1),hr(i,f-d,m),ca(s,i,p),o=f}}return c(t),l(!a),a}static empty(t){return new qn(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw new RangeError("Invalid JSON representation of ChangeSet");let n=[],r=[];for(let i=0;i<t.length;i++){let s=t[i];if(typeof s=="number")n.push(s,-1);else{if(!Array.isArray(s)||typeof s[0]!="number"||s.some((o,a)=>a&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(s.length==1)n.push(s[0],0);else{for(;r.length<i;)r.push(zt.empty);r[i]=zt.of(s.slice(1)),n.push(s[0],r[i].length)}}}return new qn(n,r)}static createSet(t,n){return new qn(t,n)}}function hr(e,t,n,r=!1){if(t==0&&n<=0)return;let i=e.length-2;i>=0&&n<=0&&n==e[i+1]?e[i]+=t:t==0&&e[i]==0?e[i+1]+=n:r?(e[i]+=t,e[i+1]+=n):e.push(t,n)}function ca(e,t,n){if(n.length==0)return;let r=t.length-2>>1;if(r<e.length)e[e.length-1]=e[e.length-1].append(n);else{for(;e.length<r;)e.push(zt.empty);e.push(n)}}function lE(e,t,n){let r=e.inserted;for(let i=0,s=0,o=0;o<e.sections.length;){let a=e.sections[o++],l=e.sections[o++];if(l<0)i+=a,s+=a;else{let c=i,u=s,d=zt.empty;for(;c+=a,u+=l,l&&r&&(d=d.append(r[o-2>>1])),!(n||o==e.sections.length||e.sections[o+1]<0);)a=e.sections[o++],l=e.sections[o++];t(i,c,s,u,d),i=c,s=u}}}function cE(e,t,n,r=!1){let i=[],s=r?[]:null,o=new eh(e),a=new eh(t);for(let l=-1;;)if(o.ins==-1&&a.ins==-1){let c=Math.min(o.len,a.len);hr(i,c,-1),o.forward(c),a.forward(c)}else if(a.ins>=0&&(o.ins<0||l==o.i||o.off==0&&(a.len<o.len||a.len==o.len&&!n))){let c=a.len;for(hr(i,a.ins,-1);c;){let u=Math.min(o.len,c);o.ins>=0&&l<o.i&&o.len<=u&&(hr(i,0,o.ins),s&&ca(s,i,o.text),l=o.i),o.forward(u),c-=u}a.next()}else if(o.ins>=0){let c=0,u=o.len;for(;u;)if(a.ins==-1){let d=Math.min(u,a.len);c+=d,u-=d,a.forward(d)}else if(a.ins==0&&a.len<u)u-=a.len,a.next();else break;hr(i,c,l<o.i?o.ins:0),s&&l<o.i&&ca(s,i,o.text),l=o.i,o.forward(o.len-u)}else{if(o.done&&a.done)return s?qn.createSet(i,s):io.create(i);throw new Error("Mismatched change set lengths")}}function lM(e,t,n=!1){let r=[],i=n?[]:null,s=new eh(e),o=new eh(t);for(let a=!1;;){if(s.done&&o.done)return i?qn.createSet(r,i):io.create(r);if(s.ins==0)hr(r,s.len,0,a),s.next();else if(o.len==0&&!o.done)hr(r,0,o.ins,a),i&&ca(i,r,o.text),o.next();else{if(s.done||o.done)throw new Error("Mismatched change set lengths");{let l=Math.min(s.len2,o.len),c=r.length;if(s.ins==-1){let u=o.ins==-1?-1:o.off?0:o.ins;hr(r,l,u,a),i&&u&&ca(i,r,o.text)}else o.ins==-1?(hr(r,s.off?0:s.len,l,a),i&&ca(i,r,s.textBit(l))):(hr(r,s.off?0:s.len,o.off?0:o.ins,a),i&&!o.off&&ca(i,r,o.text));a=(s.ins>l||o.ins>=0&&o.len>l)&&(a||r.length>c),s.forward2(l),o.forward(l)}}}}class eh{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i<t.length?(this.len=t[this.i++],this.ins=t[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length?zt.empty:t[n]}textBit(t){let{inserted:n}=this.set,r=this.i-2>>1;return r>=n.length&&!t?zt.empty:n[r].slice(this.off,t==null?void 0:this.off+t)}forward(t){t==this.len?this.next():(this.len-=t,this.off+=t)}forward2(t){this.ins==-1?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}class pl{constructor(t,n,r){this.from=t,this.to=n,this.flags=r}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let t=this.flags&7;return t==7?null:t}get goalColumn(){let t=this.flags>>6;return t==16777215?void 0:t}map(t,n=-1){let r,i;return this.empty?r=i=t.mapPos(this.from,n):(r=t.mapPos(this.from,1),i=t.mapPos(this.to,-1)),r==this.from&&i==this.to?this:new pl(r,i,this.flags)}extend(t,n=t){if(t<=this.anchor&&n>=this.anchor)return Ze.range(t,n);let r=Math.abs(t-this.anchor)>Math.abs(n-this.anchor)?t:n;return Ze.range(this.anchor,r)}eq(t,n=!1){return this.anchor==t.anchor&&this.head==t.head&&(!n||!this.empty||this.assoc==t.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return Ze.range(t.anchor,t.head)}static create(t,n,r){return new pl(t,n,r)}}class Ze{constructor(t,n){this.ranges=t,this.mainIndex=n}map(t,n=-1){return t.empty?this:Ze.create(this.ranges.map(r=>r.map(t,n)),this.mainIndex)}eq(t,n=!1){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(let r=0;r<this.ranges.length;r++)if(!this.ranges[r].eq(t.ranges[r],n))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new Ze([this.main],0)}addRange(t,n=!0){return Ze.create([t].concat(this.ranges),n?0:this.mainIndex+1)}replaceRange(t,n=this.mainIndex){let r=this.ranges.slice();return r[n]=t,Ze.create(r,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(t=>t.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||typeof t.main!="number"||t.main>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new Ze(t.ranges.map(n=>pl.fromJSON(n)),t.main)}static single(t,n=t){return new Ze([Ze.range(t,n)],0)}static create(t,n=0){if(t.length==0)throw new RangeError("A selection needs at least one range");for(let r=0,i=0;i<t.length;i++){let s=t[i];if(s.empty?s.from<=r:s.from<r)return Ze.normalized(t.slice(),n);r=s.to}return new Ze(t,n)}static cursor(t,n=0,r,i){return pl.create(t,t,(n==0?0:n<0?8:16)|(r==null?7:Math.min(6,r))|(i??16777215)<<6)}static range(t,n,r,i){let s=(r??16777215)<<6|(i==null?7:Math.min(6,i));return n<t?pl.create(n,t,48|s):pl.create(t,n,(n>t?8:0)|s)}static normalized(t,n=0){let r=t[n];t.sort((i,s)=>i.from-s.from),n=t.indexOf(r);for(let i=1;i<t.length;i++){let s=t[i],o=t[i-1];if(s.empty?s.from<=o.to:s.from<o.to){let a=o.from,l=Math.max(s.to,o.to);i<=n&&n--,t.splice(--i,2,s.anchor>s.head?Ze.range(l,a):Ze.range(a,l))}}return new Ze(t,n)}}function cM(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let mT=0;class st{constructor(t,n,r,i,s){this.combine=t,this.compareInput=n,this.compare=r,this.isStatic=i,this.id=mT++,this.default=t([]),this.extensions=typeof s=="function"?s(this):s}get reader(){return this}static define(t={}){return new st(t.combine||(n=>n),t.compareInput||((n,r)=>n===r),t.compare||(t.combine?(n,r)=>n===r:gT),!!t.static,t.enables)}of(t){return new Um([],this,0,t)}compute(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new Um(t,this,1,n)}computeN(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new Um(t,this,2,n)}from(t,n){return n||(n=r=>r),this.compute([t],r=>n(r.field(t)))}}function gT(e,t){return e==t||e.length==t.length&&e.every((n,r)=>n===t[r])}class Um{constructor(t,n,r,i){this.dependencies=t,this.facet=n,this.type=r,this.value=i,this.id=mT++}dynamicSlot(t){var n;let r=this.value,i=this.facet.compareInput,s=this.id,o=t[s]>>1,a=this.type==2,l=!1,c=!1,u=[];for(let d of this.dependencies)d=="doc"?l=!0:d=="selection"?c=!0:((n=t[d.id])!==null&&n!==void 0?n:1)&1||u.push(t[d.id]);return{create(d){return d.values[o]=r(d),1},update(d,f){if(l&&f.docChanged||c&&(f.docChanged||f.selection)||uE(d,u)){let h=r(d);if(a?!qN(h,d.values[o],i):!i(h,d.values[o]))return d.values[o]=h,1}return 0},reconfigure:(d,f)=>{let h,p=f.config.address[s];if(p!=null){let m=$g(f,p);if(this.dependencies.every(g=>g instanceof st?f.facet(g)===d.facet(g):g instanceof No?f.field(g,!1)==d.field(g,!1):!0)||(a?qN(h=r(d),m,i):i(h=r(d),m)))return d.values[o]=m,0}else h=r(d);return d.values[o]=h,1}}}}function qN(e,t,n){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function uE(e,t){let n=!1;for(let r of t)Tf(e,r)&1&&(n=!0);return n}function tse(e,t,n){let r=n.map(l=>e[l.id]),i=n.map(l=>l.type),s=r.filter(l=>!(l&1)),o=e[t.id]>>1;function a(l){let c=[];for(let u=0;u<r.length;u++){let d=$g(l,r[u]);if(i[u]==2)for(let f of d)c.push(f);else c.push(d)}return t.combine(c)}return{create(l){for(let c of r)Tf(l,c);return l.values[o]=a(l),1},update(l,c){if(!uE(l,s))return 0;let u=a(l);return t.compare(u,l.values[o])?0:(l.values[o]=u,1)},reconfigure(l,c){let u=uE(l,r),d=c.config.facets[t.id],f=c.facet(t);if(d&&!u&&gT(n,d))return l.values[o]=f,0;let h=a(l);return t.compare(h,f)?(l.values[o]=f,0):(l.values[o]=h,1)}}}const zN=st.define({static:!0});class No{constructor(t,n,r,i,s){this.id=t,this.createF=n,this.updateF=r,this.compareF=i,this.spec=s,this.provides=void 0}static define(t){let n=new No(mT++,t.create,t.update,t.compare||((r,i)=>r===i),t);return t.provide&&(n.provides=t.provide(n)),n}create(t){let n=t.facet(zN).find(r=>r.field==this);return((n==null?void 0:n.create)||this.createF)(t)}slot(t){let n=t[this.id]>>1;return{create:r=>(r.values[n]=this.create(r),1),update:(r,i)=>{let s=r.values[n],o=this.updateF(s,i);return this.compareF(s,o)?0:(r.values[n]=o,1)},reconfigure:(r,i)=>i.config.address[this.id]!=null?(r.values[n]=i.field(this),0):(r.values[n]=this.create(r),1)}}init(t){return[this,zN.of({field:this,create:t})]}get extension(){return this}}const ol={lowest:4,low:3,default:2,high:1,highest:0};function Rd(e){return t=>new uM(t,e)}const gb={highest:Rd(ol.highest),high:Rd(ol.high),default:Rd(ol.default),low:Rd(ol.low),lowest:Rd(ol.lowest)};class uM{constructor(t,n){this.inner=t,this.prec=n}}class bb{of(t){return new dE(this,t)}reconfigure(t){return bb.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class dE{constructor(t,n){this.compartment=t,this.inner=n}}class Mg{constructor(t,n,r,i,s,o){for(this.base=t,this.compartments=n,this.dynamicSlots=r,this.address=i,this.staticValues=s,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<r.length;)this.statusTemplate.push(0)}staticFacet(t){let n=this.address[t.id];return n==null?t.default:this.staticValues[n>>1]}static resolve(t,n,r){let i=[],s=Object.create(null),o=new Map;for(let f of nse(t,n,o))f instanceof No?i.push(f):(s[f.facet.id]||(s[f.facet.id]=[])).push(f);let a=Object.create(null),l=[],c=[];for(let f of i)a[f.id]=c.length<<1,c.push(h=>f.slot(h));let u=r==null?void 0:r.config.facets;for(let f in s){let h=s[f],p=h[0].facet,m=u&&u[f]||[];if(h.every(g=>g.type==0))if(a[p.id]=l.length<<1|1,gT(m,h))l.push(r.facet(p));else{let g=p.combine(h.map(b=>b.value));l.push(r&&p.compare(g,r.facet(p))?r.facet(p):g)}else{for(let g of h)g.type==0?(a[g.id]=l.length<<1|1,l.push(g.value)):(a[g.id]=c.length<<1,c.push(b=>g.dynamicSlot(b)));a[p.id]=c.length<<1,c.push(g=>tse(g,p,h))}}let d=c.map(f=>f(a));return new Mg(t,o,d,a,l,s)}}function nse(e,t,n){let r=[[],[],[],[],[]],i=new Map;function s(o,a){let l=i.get(o);if(l!=null){if(l<=a)return;let c=r[l].indexOf(o);c>-1&&r[l].splice(c,1),o instanceof dE&&n.delete(o.compartment)}if(i.set(o,a),Array.isArray(o))for(let c of o)s(c,a);else if(o instanceof dE){if(n.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let c=t.get(o.compartment)||o.inner;n.set(o.compartment,c),s(c,a)}else if(o instanceof uM)s(o.inner,o.prec);else if(o instanceof No)r[a].push(o),o.provides&&s(o.provides,a);else if(o instanceof Um)r[a].push(o),o.facet.extensions&&s(o.facet.extensions,ol.default);else{let c=o.extension;if(!c)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);s(c,a)}}return s(e,ol.default),r.reduce((o,a)=>o.concat(a))}function Tf(e,t){if(t&1)return 2;let n=t>>1,r=e.status[n];if(r==4)throw new Error("Cyclic dependency between fields and/or facets");if(r&2)return r;e.status[n]=4;let i=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|i}function $g(e,t){return t&1?e.config.staticValues[t>>1]:e.values[t>>1]}const dM=st.define(),fE=st.define({combine:e=>e.some(t=>t),static:!0}),fM=st.define({combine:e=>e.length?e[0]:void 0,static:!0}),hM=st.define(),pM=st.define(),mM=st.define(),gM=st.define({combine:e=>e.length?e[0]:!1});class dc{constructor(t,n){this.type=t,this.value=n}static define(){return new rse}}class rse{of(t){return new dc(this,t)}}class ise{constructor(t){this.map=t}of(t){return new Fn(this,t)}}class Fn{constructor(t,n){this.type=t,this.value=n}map(t){let n=this.type.map(this.value,t);return n===void 0?void 0:n==this.value?this:new Fn(this.type,n)}is(t){return this.type==t}static define(t={}){return new ise(t.map||(n=>n))}static mapEffects(t,n){if(!t.length)return t;let r=[];for(let i of t){let s=i.map(n);s&&r.push(s)}return r}}Fn.reconfigure=Fn.define();Fn.appendConfig=Fn.define();class ir{constructor(t,n,r,i,s,o){this.startState=t,this.changes=n,this.selection=r,this.effects=i,this.annotations=s,this.scrollIntoView=o,this._doc=null,this._state=null,r&&cM(r,n.newLength),s.some(a=>a.type==ir.time)||(this.annotations=s.concat(ir.time.of(Date.now())))}static create(t,n,r,i,s,o){return new ir(t,n,r,i,s,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(t){for(let n of this.annotations)if(n.type==t)return n.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let n=this.annotation(ir.userEvent);return!!(n&&(n==t||n.length>t.length&&n.slice(0,t.length)==t&&n[t.length]=="."))}}ir.time=dc.define();ir.userEvent=dc.define();ir.addToHistory=dc.define();ir.remote=dc.define();function sse(e,t){let n=[];for(let r=0,i=0;;){let s,o;if(r<e.length&&(i==t.length||t[i]>=e[r]))s=e[r++],o=e[r++];else if(i<t.length)s=t[i++],o=t[i++];else return n;!n.length||n[n.length-1]<s?n.push(s,o):n[n.length-1]<o&&(n[n.length-1]=o)}}function bM(e,t,n){var r;let i,s,o;return n?(i=t.changes,s=qn.empty(t.changes.length),o=e.changes.compose(t.changes)):(i=t.changes.map(e.changes),s=e.changes.mapDesc(t.changes,!0),o=e.changes.compose(i)),{changes:o,selection:t.selection?t.selection.map(s):(r=e.selection)===null||r===void 0?void 0:r.map(i),effects:Fn.mapEffects(e.effects,i).concat(Fn.mapEffects(t.effects,s)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function hE(e,t,n){let r=t.selection,i=Jc(t.annotations);return t.userEvent&&(i=i.concat(ir.userEvent.of(t.userEvent))),{changes:t.changes instanceof qn?t.changes:qn.of(t.changes||[],n,e.facet(fM)),selection:r&&(r instanceof Ze?r:Ze.single(r.anchor,r.head)),effects:Jc(t.effects),annotations:i,scrollIntoView:!!t.scrollIntoView}}function yM(e,t,n){let r=hE(e,t.length?t[0]:{},e.doc.length);t.length&&t[0].filter===!1&&(n=!1);for(let s=1;s<t.length;s++){t[s].filter===!1&&(n=!1);let o=!!t[s].sequential;r=bM(r,hE(e,t[s],o?r.changes.newLength:e.doc.length),o)}let i=ir.create(e,r.changes,r.selection,r.effects,r.annotations,r.scrollIntoView);return ase(n?ose(i):i)}function ose(e){let t=e.startState,n=!0;for(let i of t.facet(hM)){let s=i(e);if(s===!1){n=!1;break}Array.isArray(s)&&(n=n===!0?s:sse(n,s))}if(n!==!0){let i,s;if(n===!1)s=e.changes.invertedDesc,i=qn.empty(t.doc.length);else{let o=e.changes.filter(n);i=o.changes,s=o.filtered.mapDesc(o.changes).invertedDesc}e=ir.create(t,i,e.selection&&e.selection.map(s),Fn.mapEffects(e.effects,s),e.annotations,e.scrollIntoView)}let r=t.facet(pM);for(let i=r.length-1;i>=0;i--){let s=r[i](e);s instanceof ir?e=s:Array.isArray(s)&&s.length==1&&s[0]instanceof ir?e=s[0]:e=yM(t,Jc(s),!1)}return e}function ase(e){let t=e.startState,n=t.facet(mM),r=e;for(let i=n.length-1;i>=0;i--){let s=n[i](e);s&&Object.keys(s).length&&(r=bM(r,hE(t,s,e.changes.newLength),!0))}return r==e?e:ir.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}const lse=[];function Jc(e){return e==null?lse:Array.isArray(e)?e:[e]}exports.Xr=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(exports.Xr||(exports.Xr={}));const cse=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let pE;try{pE=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function use(e){if(pE)return pE.test(e);for(let t=0;t<e.length;t++){let n=e[t];if(/\w/.test(n)||n>"€"&&(n.toUpperCase()!=n.toLowerCase()||cse.test(n)))return!0}return!1}function dse(e){return t=>{if(!/\S/.test(t))return exports.Xr.Space;if(use(t))return exports.Xr.Word;for(let n=0;n<e.length;n++)if(t.indexOf(e[n])>-1)return exports.Xr.Word;return exports.Xr.Other}}class Vt{constructor(t,n,r,i,s,o){this.config=t,this.doc=n,this.selection=r,this.values=i,this.status=t.statusTemplate.slice(),this.computeSlot=s,o&&(o._state=this);for(let a=0;a<this.config.dynamicSlots.length;a++)Tf(this,a<<1);this.computeSlot=null}field(t,n=!0){let r=this.config.address[t.id];if(r==null){if(n)throw new RangeError("Field is not present in this state");return}return Tf(this,r),$g(this,r)}update(...t){return yM(this,t,!0)}applyTransaction(t){let n=this.config,{base:r,compartments:i}=n;for(let a of t.effects)a.is(bb.reconfigure)?(n&&(i=new Map,n.compartments.forEach((l,c)=>i.set(c,l)),n=null),i.set(a.value.compartment,a.value.extension)):a.is(Fn.reconfigure)?(n=null,r=a.value):a.is(Fn.appendConfig)&&(n=null,r=Jc(r).concat(a.value));let s;n?s=t.startState.values.slice():(n=Mg.resolve(r,i,this),s=new Vt(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(a,l)=>l.reconfigure(a,this),null).values);let o=t.startState.facet(fE)?t.newSelection:t.newSelection.asSingle();new Vt(n,t.newDoc,o,s,(a,l)=>l.update(a,t),t)}replaceSelection(t){return typeof t=="string"&&(t=this.toText(t)),this.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:t},range:Ze.cursor(n.from+t.length)}))}changeByRange(t){let n=this.selection,r=t(n.ranges[0]),i=this.changes(r.changes),s=[r.range],o=Jc(r.effects);for(let a=1;a<n.ranges.length;a++){let l=t(n.ranges[a]),c=this.changes(l.changes),u=c.map(i);for(let f=0;f<a;f++)s[f]=s[f].map(u);let d=i.mapDesc(c,!0);s.push(l.range.map(d)),i=i.compose(u),o=Fn.mapEffects(o,u).concat(Fn.mapEffects(Jc(l.effects),d))}return{changes:i,selection:Ze.create(s,n.mainIndex),effects:o}}changes(t=[]){return t instanceof qn?t:qn.of(t,this.doc.length,this.facet(Vt.lineSeparator))}toText(t){return zt.of(t.split(this.facet(Vt.lineSeparator)||aE))}sliceDoc(t=0,n=this.doc.length){return this.doc.sliceString(t,n,this.lineBreak)}facet(t){let n=this.config.address[t.id];return n==null?t.default:(Tf(this,n),$g(this,n))}toJSON(t){let n={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(t)for(let r in t){let i=t[r];i instanceof No&&this.config.address[i.id]!=null&&(n[r]=i.spec.toJSON(this.field(t[r]),this))}return n}static fromJSON(t,n={},r){if(!t||typeof t.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let i=[];if(r){for(let s in r)if(Object.prototype.hasOwnProperty.call(t,s)){let o=r[s],a=t[s];i.push(o.init(l=>o.spec.fromJSON(a,l)))}}return Vt.create({doc:t.doc,selection:Ze.fromJSON(t.selection),extensions:n.extensions?i.concat([n.extensions]):i})}static create(t={}){let n=Mg.resolve(t.extensions||[],new Map),r=t.doc instanceof zt?t.doc:zt.of((t.doc||"").split(n.staticFacet(Vt.lineSeparator)||aE)),i=t.selection?t.selection instanceof Ze?t.selection:Ze.single(t.selection.anchor,t.selection.head):Ze.single(0);return cM(i,r.length),n.staticFacet(fE)||(i=i.asSingle()),new Vt(n,r,i,n.dynamicSlots.map(()=>null),(s,o)=>o.create(s),null)}get tabSize(){return this.facet(Vt.tabSize)}get lineBreak(){return this.facet(Vt.lineSeparator)||`
@@ -221,15 +221,15 @@ ${n}}`:n};function Oie(){return{showApiClient:!1,activeApiClientEndpointId:"",ac
221
221
  `;this.styleTag.textContent=s;let o=this.root.head||this.root;this.styleTag.parentNode!=o&&o.insertBefore(this.styleTag,o.firstChild)}}setNonce(t){this.styleTag&&this.styleTag.getAttribute("nonce")!=t&&this.styleTag.setAttribute("nonce",t)}}var Ca={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},nh={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},mse=typeof navigator<"u"&&/Mac/.test(navigator.platform),gse=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var nr=0;nr<10;nr++)Ca[48+nr]=Ca[96+nr]=String(nr);for(var nr=1;nr<=24;nr++)Ca[nr+111]="F"+nr;for(var nr=65;nr<=90;nr++)Ca[nr]=String.fromCharCode(nr+32),nh[nr]=String.fromCharCode(nr);for(var ov in Ca)nh.hasOwnProperty(ov)||(nh[ov]=Ca[ov]);function bse(e){var t=mse&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||gse&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?nh:Ca)[e.keyCode]||e.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}function Fg(e){let t;return e.nodeType==11?t=e.getSelection?e:e.ownerDocument:t=e,t.getSelection()}function EE(e,t){return t?e==t||e.contains(t.nodeType!=1?t.parentNode:t):!1}function yse(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function Hm(e,t){if(!t.anchorNode)return!1;try{return EE(e,t.anchorNode)}catch{return!1}}function rh(e){return e.nodeType==3?ql(e,0,e.nodeValue.length).getClientRects():e.nodeType==1?e.getClientRects():[]}function Sf(e,t,n,r){return n?JN(e,t,n,r,-1)||JN(e,t,n,r,1):!1}function ih(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t}function JN(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:go(e))){if(e.nodeName=="DIV")return!1;let s=e.parentNode;if(!s||s.nodeType!=1)return!1;t=ih(e)+(i<0?0:1),e=s}else if(e.nodeType==1){if(e=e.childNodes[t+(i<0?-1:0)],e.nodeType==1&&e.contentEditable=="false")return!1;t=i<0?go(e):0}else return!1}}function go(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function vT(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function vse(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function _M(e,t){let n=t.width/e.offsetWidth,r=t.height/e.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(t.width-e.offsetWidth)<1)&&(n=1),(r>.995&&r<1.005||!isFinite(r)||Math.abs(t.height-e.offsetHeight)<1)&&(r=1),{scaleX:n,scaleY:r}}function Ese(e,t,n,r,i,s,o,a){let l=e.ownerDocument,c=l.defaultView||window;for(let u=e,d=!1;u&&!d;)if(u.nodeType==1){let f,h=u==l.body,p=1,m=1;if(h)f=vse(c);else{if(/^(fixed|sticky)$/.test(getComputedStyle(u).position)&&(d=!0),u.scrollHeight<=u.clientHeight&&u.scrollWidth<=u.clientWidth){u=u.assignedSlot||u.parentNode;continue}let v=u.getBoundingClientRect();({scaleX:p,scaleY:m}=_M(u,v)),f={left:v.left,right:v.left+u.clientWidth*p,top:v.top,bottom:v.top+u.clientHeight*m}}let g=0,b=0;if(i=="nearest")t.top<f.top?(b=-(f.top-t.top+o),n>0&&t.bottom>f.bottom+b&&(b=t.bottom-f.bottom+b+o)):t.bottom>f.bottom&&(b=t.bottom-f.bottom+o,n<0&&t.top-b<f.top&&(b=-(f.top+b-t.top+o)));else{let v=t.bottom-t.top,y=f.bottom-f.top;b=(i=="center"&&v<=y?t.top+v/2-y/2:i=="start"||i=="center"&&n<0?t.top-o:t.bottom-y+o)-f.top}if(r=="nearest"?t.left<f.left?(g=-(f.left-t.left+s),n>0&&t.right>f.right+g&&(g=t.right-f.right+g+s)):t.right>f.right&&(g=t.right-f.right+s,n<0&&t.left<f.left+g&&(g=-(f.left+g-t.left+s))):g=(r=="center"?t.left+(t.right-t.left)/2-(f.right-f.left)/2:r=="start"==a?t.left-s:t.right-(f.right-f.left)+s)-f.left,g||b)if(h)c.scrollBy(g,b);else{let v=0,y=0;if(b){let E=u.scrollTop;u.scrollTop+=b/m,y=(u.scrollTop-E)*m}if(g){let E=u.scrollLeft;u.scrollLeft+=g/p,v=(u.scrollLeft-E)*p}t={left:t.left-v,top:t.top-y,right:t.right-v,bottom:t.bottom-y},v&&Math.abs(v-g)<1&&(r="nearest"),y&&Math.abs(y-b)<1&&(i="nearest")}if(h)break;u=u.assignedSlot||u.parentNode}else if(u.nodeType==11)u=u.host;else break}function _se(e){let t=e.ownerDocument;for(let n=e.parentNode;n&&n!=t.body;)if(n.nodeType==1){if(n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth)return n;n=n.assignedSlot||n.parentNode}else if(n.nodeType==11)n=n.host;else break;return null}class wse{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(t){return this.anchorNode==t.anchorNode&&this.anchorOffset==t.anchorOffset&&this.focusNode==t.focusNode&&this.focusOffset==t.focusOffset}setRange(t){let{anchorNode:n,focusNode:r}=t;this.set(n,Math.min(t.anchorOffset,n?go(n):0),r,Math.min(t.focusOffset,r?go(r):0))}set(t,n,r,i){this.anchorNode=t,this.anchorOffset=n,this.focusNode=r,this.focusOffset=i}}let bc=null;function wM(e){if(e.setActive)return e.setActive();if(bc)return e.focus(bc);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(bc==null?{get preventScroll(){return bc={preventScroll:!0},!0}}:void 0),!bc){bc=!1;for(let n=0;n<t.length;){let r=t[n++],i=t[n++],s=t[n++];r.scrollTop!=i&&(r.scrollTop=i),r.scrollLeft!=s&&(r.scrollLeft=s)}}}let ZN;function ql(e,t,n=t){let r=ZN||(ZN=document.createRange());return r.setEnd(e,n),r.setStart(e,t),r}function Zc(e,t,n){let r={key:t,code:t,keyCode:n,which:n,cancelable:!0},i=new KeyboardEvent("keydown",r);i.synthetic=!0,e.dispatchEvent(i);let s=new KeyboardEvent("keyup",r);return s.synthetic=!0,e.dispatchEvent(s),i.defaultPrevented||s.defaultPrevented}function Tse(e){for(;e;){if(e&&(e.nodeType==9||e.nodeType==11&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}function TM(e){for(;e.attributes.length;)e.removeAttributeNode(e.attributes[0])}function Sse(e,t){let n=t.focusNode,r=t.focusOffset;if(!n||t.anchorNode!=n||t.anchorOffset!=r)return!1;for(r=Math.min(r,go(n));;)if(r){if(n.nodeType!=1)return!1;let i=n.childNodes[r-1];i.contentEditable=="false"?r--:(n=i,r=go(n))}else{if(n==e)return!0;r=ih(n),n=n.parentNode}}function SM(e){return e.scrollTop>Math.max(1,e.scrollHeight-e.clientHeight-4)}class br{constructor(t,n,r=!0){this.node=t,this.offset=n,this.precise=r}static before(t,n){return new br(t.parentNode,ih(t),n)}static after(t,n){return new br(t.parentNode,ih(t)+1,n)}}const ET=[];class on{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(t){let n=this.posAtStart;for(let r of this.children){if(r==t)return n;n+=r.length+r.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(t){return this.posBefore(t)+t.length}sync(t,n){if(this.flags&2){let r=this.dom,i=null,s;for(let o of this.children){if(o.flags&7){if(!o.dom&&(s=i?i.nextSibling:r.firstChild)){let a=on.get(s);(!a||!a.parent&&a.canReuseDOM(o))&&o.reuseDOM(s)}o.sync(t,n),o.flags&=-8}if(s=i?i.nextSibling:r.firstChild,n&&!n.written&&n.node==r&&s!=o.dom&&(n.written=!0),o.dom.parentNode==r)for(;s&&s!=o.dom;)s=eC(s);else r.insertBefore(o.dom,s);i=o.dom}for(s=i?i.nextSibling:r.firstChild,s&&n&&n.node==r&&(n.written=!0);s;)s=eC(s)}else if(this.flags&1)for(let r of this.children)r.flags&7&&(r.sync(t,n),r.flags&=-8)}reuseDOM(t){}localPosFromDOM(t,n){let r;if(t==this.dom)r=this.dom.childNodes[n];else{let i=go(t)==0?0:n==0?-1:1;for(;;){let s=t.parentNode;if(s==this.dom)break;i==0&&s.firstChild!=s.lastChild&&(t==s.firstChild?i=-1:i=1),t=s}i<0?r=t:r=t.nextSibling}if(r==this.dom.firstChild)return 0;for(;r&&!on.get(r);)r=r.nextSibling;if(!r)return this.length;for(let i=0,s=0;;i++){let o=this.children[i];if(o.dom==r)return s;s+=o.length+o.breakAfter}}domBoundsAround(t,n,r=0){let i=-1,s=-1,o=-1,a=-1;for(let l=0,c=r,u=r;l<this.children.length;l++){let d=this.children[l],f=c+d.length;if(c<t&&f>n)return d.domBoundsAround(t,n,c);if(f>=t&&i==-1&&(i=l,s=c),c>n&&d.dom.parentNode==this.dom){o=l,a=u;break}u=f,c=f+d.breakAfter}return{from:s,to:a<0?r+this.length:a,startDOM:(i?this.children[i-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o<this.children.length&&o>=0?this.children[o].dom:null}}markDirty(t=!1){this.flags|=2,this.markParentsDirty(t)}markParentsDirty(t){for(let n=this.parent;n;n=n.parent){if(t&&(n.flags|=2),n.flags&1)return;n.flags|=1,t=!1}}setParent(t){this.parent!=t&&(this.parent=t,this.flags&7&&this.markParentsDirty(!0))}setDOM(t){this.dom!=t&&(this.dom&&(this.dom.cmView=null),this.dom=t,t.cmView=this)}get rootView(){for(let t=this;;){let n=t.parent;if(!n)return t;t=n}}replaceChildren(t,n,r=ET){this.markDirty();for(let i=t;i<n;i++){let s=this.children[i];s.parent==this&&r.indexOf(s)<0&&s.destroy()}this.children.splice(t,n-t,...r);for(let i=0;i<r.length;i++)r[i].setParent(this)}ignoreMutation(t){return!1}ignoreEvent(t){return!1}childCursor(t=this.length){return new kM(this.children,t,this.children.length)}childPos(t,n=1){return this.childCursor().findPos(t,n)}toString(){let t=this.constructor.name.replace("View","");return t+(this.children.length?"("+this.children.join()+")":this.length?"["+(t=="Text"?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(t){return t.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(t,n,r,i,s,o){return!1}become(t){return!1}canReuseDOM(t){return t.constructor==this.constructor&&!((this.flags|t.flags)&8)}getSide(){return 0}destroy(){for(let t of this.children)t.parent==this&&t.destroy();this.parent=null}}on.prototype.breakAfter=0;function eC(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class kM{constructor(t,n,r){this.children=t,this.pos=n,this.i=r,this.off=0}findPos(t,n=1){for(;;){if(t>this.pos||t==this.pos&&(n>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=t-this.pos,this;let r=this.children[--this.i];this.pos-=r.length+r.breakAfter}}}function AM(e,t,n,r,i,s,o,a,l){let{children:c}=e,u=c.length?c[t]:null,d=s.length?s[s.length-1]:null,f=d?d.breakAfter:o;if(!(t==r&&u&&!o&&!f&&s.length<2&&u.merge(n,i,s.length?d:null,n==0,a,l))){if(r<c.length){let h=c[r];h&&(i<h.length||h.breakAfter&&d!=null&&d.breakAfter)?(t==r&&(h=h.split(i),i=0),!f&&d&&h.merge(0,i,d,!0,0,l)?s[s.length-1]=h:((i||h.children.length&&!h.children[0].length)&&h.merge(0,i,null,!1,0,l),s.push(h))):h!=null&&h.breakAfter&&(d?d.breakAfter=1:o=1),r++}for(u&&(u.breakAfter=o,n>0&&(!o&&s.length&&u.merge(n,u.length,s[0],!1,a,0)?u.breakAfter=s.shift().breakAfter:(n<u.length||u.children.length&&u.children[u.children.length-1].length==0)&&u.merge(n,u.length,null,!1,a,0),t++));t<r&&s.length;)if(c[r-1].become(s[s.length-1]))r--,s.pop(),l=s.length?0:a;else if(c[t].become(s[0]))t++,s.shift(),a=s.length?0:l;else break;!s.length&&t&&r<c.length&&!c[t-1].breakAfter&&c[r].merge(0,0,c[t-1],!1,a,l)&&t--,(t<r||s.length)&&e.replaceChildren(t,r,s)}}function xM(e,t,n,r,i,s){let o=e.childCursor(),{i:a,off:l}=o.findPos(n,1),{i:c,off:u}=o.findPos(t,-1),d=t-n;for(let f of r)d+=f.length;e.length+=d,AM(e,c,u,a,l,r,0,i,s)}let si=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},_E=typeof document<"u"?document:{documentElement:{style:{}}};const wE=/Edge\/(\d+)/.exec(si.userAgent),NM=/MSIE \d/.test(si.userAgent),TE=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(si.userAgent),vb=!!(NM||TE||wE),tC=!vb&&/gecko\/(\d+)/i.test(si.userAgent),av=!vb&&/Chrome\/(\d+)/.exec(si.userAgent),nC="webkitFontSmoothing"in _E.documentElement.style,CM=!vb&&/Apple Computer/.test(si.vendor),rC=CM&&(/Mobile\/\w+/.test(si.userAgent)||si.maxTouchPoints>2);var Xe={mac:rC||/Mac/.test(si.platform),windows:/Win/.test(si.platform),linux:/Linux|X11/.test(si.platform),ie:vb,ie_version:NM?_E.documentMode||6:TE?+TE[1]:wE?+wE[1]:0,gecko:tC,gecko_version:tC?+(/Firefox\/(\d+)/.exec(si.userAgent)||[0,0])[1]:0,chrome:!!av,chrome_version:av?+av[1]:0,ios:rC,android:/Android\b/.test(si.userAgent),webkit:nC,safari:CM,webkit_version:nC?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:_E.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const kse=256;class bo extends on{constructor(t){super(),this.text=t}get length(){return this.text.length}createDOM(t){this.setDOM(t||document.createTextNode(this.text))}sync(t,n){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(n&&n.node==this.dom&&(n.written=!0),this.dom.nodeValue=this.text)}reuseDOM(t){t.nodeType==3&&this.createDOM(t)}merge(t,n,r){return this.flags&8||r&&(!(r instanceof bo)||this.length-(n-t)+r.length>kse||r.flags&8)?!1:(this.text=this.text.slice(0,t)+(r?r.text:"")+this.text.slice(n),this.markDirty(),!0)}split(t){let n=new bo(this.text.slice(t));return this.text=this.text.slice(0,t),this.markDirty(),n.flags|=this.flags&8,n}localPosFromDOM(t,n){return t==this.dom?n:n?this.text.length:0}domAtPos(t){return new br(this.dom,t)}domBoundsAround(t,n,r){return{from:r,to:r+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(t,n){return Ase(this.dom,t,n)}}class yo extends on{constructor(t,n=[],r=0){super(),this.mark=t,this.children=n,this.length=r;for(let i of n)i.setParent(this)}setAttrs(t){if(TM(t),this.mark.class&&(t.className=this.mark.class),this.mark.attrs)for(let n in this.mark.attrs)t.setAttribute(n,this.mark.attrs[n]);return t}canReuseDOM(t){return super.canReuseDOM(t)&&!((this.flags|t.flags)&8)}reuseDOM(t){t.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(t),this.flags|=6)}sync(t,n){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(t,n)}merge(t,n,r,i,s,o){return r&&(!(r instanceof yo&&r.mark.eq(this.mark))||t&&s<=0||n<this.length&&o<=0)?!1:(xM(this,t,n,r?r.children.slice():[],s-1,o-1),this.markDirty(),!0)}split(t){let n=[],r=0,i=-1,s=0;for(let a of this.children){let l=r+a.length;l>t&&n.push(r<t?a.split(t-r):a),i<0&&r>=t&&(i=s),r=l,s++}let o=this.length-t;return this.length=t,i>-1&&(this.children.length=i,this.markDirty()),new yo(this.mark,n,o)}domAtPos(t){return OM(this,t)}coordsAt(t,n){return IM(this,t,n)}}function Ase(e,t,n){let r=e.nodeValue.length;t>r&&(t=r);let i=t,s=t,o=0;t==0&&n<0||t==r&&n>=0?Xe.chrome||Xe.gecko||(t?(i--,o=1):s<r&&(s++,o=-1)):n<0?i--:s<r&&s++;let a=ql(e,i,s).getClientRects();if(!a.length)return null;let l=a[(o?o<0:n>=0)?0:a.length-1];return Xe.safari&&!o&&l.width==0&&(l=Array.prototype.find.call(a,c=>c.width)||l),o?vT(l,o<0):l||null}class ml extends on{static create(t,n,r){return new ml(t,n,r)}constructor(t,n,r){super(),this.widget=t,this.length=n,this.side=r,this.prevWidget=null}split(t){let n=ml.create(this.widget,this.length-t,this.side);return this.length-=t,n}sync(t){(!this.dom||!this.widget.updateDOM(this.dom,t))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(t)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(t,n,r,i,s,o){return r&&(!(r instanceof ml)||!this.widget.compare(r.widget)||t>0&&s<=0||n<this.length&&o<=0)?!1:(this.length=t+(r?r.length:0)+(this.length-n),!0)}become(t){return t instanceof ml&&t.side==this.side&&this.widget.constructor==t.widget.constructor?(this.widget.compare(t.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=t.widget,this.length=t.length,!0):!1}ignoreMutation(){return!0}ignoreEvent(t){return this.widget.ignoreEvent(t)}get overrideDOMText(){if(this.length==0)return zt.empty;let t=this;for(;t.parent;)t=t.parent;let{view:n}=t,r=n&&n.state.doc,i=this.posAtStart;return r?r.slice(i,i+this.length):zt.empty}domAtPos(t){return(this.length?t==0:this.side>0)?br.before(this.dom):br.after(this.dom,t==this.length)}domBoundsAround(){return null}coordsAt(t,n){let r=this.widget.coordsAt(this.dom,t,n);if(r)return r;let i=this.dom.getClientRects(),s=null;if(!i.length)return null;let o=this.side?this.side<0:t>0;for(let a=o?i.length-1:0;s=i[a],!(t>0?a==0:a==i.length-1||s.top<s.bottom);a+=o?-1:1);return vT(s,!o)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class yu extends on{constructor(t){super(),this.side=t}get length(){return 0}merge(){return!1}become(t){return t instanceof yu&&t.side==this.side}split(){return new yu(this.side)}sync(){if(!this.dom){let t=document.createElement("img");t.className="cm-widgetBuffer",t.setAttribute("aria-hidden","true"),this.setDOM(t)}}getSide(){return this.side}domAtPos(t){return this.side>0?br.before(this.dom):br.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(t){return this.dom.getBoundingClientRect()}get overrideDOMText(){return zt.empty}get isHidden(){return!0}}bo.prototype.children=ml.prototype.children=yu.prototype.children=ET;function OM(e,t){let n=e.dom,{children:r}=e,i=0;for(let s=0;i<r.length;i++){let o=r[i],a=s+o.length;if(!(a==s&&o.getSide()<=0)){if(t>s&&t<a&&o.dom.parentNode==n)return o.domAtPos(t-s);if(t<=s)break;s=a}}for(let s=i;s>0;s--){let o=r[s-1];if(o.dom.parentNode==n)return o.domAtPos(o.length)}for(let s=i;s<r.length;s++){let o=r[s];if(o.dom.parentNode==n)return o.domAtPos(0)}return new br(n,0)}function DM(e,t,n){let r,{children:i}=e;n>0&&t instanceof yo&&i.length&&(r=i[i.length-1])instanceof yo&&r.mark.eq(t.mark)?DM(r,t.children[0],n-1):(i.push(t),t.setParent(e)),e.length+=t.length}function IM(e,t,n){let r=null,i=-1,s=null,o=-1;function a(c,u){for(let d=0,f=0;d<c.children.length&&f<=u;d++){let h=c.children[d],p=f+h.length;p>=u&&(h.children.length?a(h,u-f):(!s||s.isHidden&&n>0)&&(p>u||f==p&&h.getSide()>0)?(s=h,o=u-f):(f<u||f==p&&h.getSide()<0&&!h.isHidden)&&(r=h,i=u-f)),f=p}}a(e,t);let l=(n<0?r:s)||r||s;return l?l.coordsAt(Math.max(0,l==r?i:o),n):xse(e)}function xse(e){let t=e.dom.lastChild;if(!t)return e.dom.getBoundingClientRect();let n=rh(t);return n[n.length-1]||null}function SE(e,t){for(let n in e)n=="class"&&t.class?t.class+=" "+e.class:n=="style"&&t.style?t.style+=";"+e.style:t[n]=e[n];return t}const iC=Object.create(null);function _T(e,t,n){if(e==t)return!0;e||(e=iC),t||(t=iC);let r=Object.keys(e),i=Object.keys(t);if(r.length-(n&&r.indexOf(n)>-1?1:0)!=i.length-(n&&i.indexOf(n)>-1?1:0))return!1;for(let s of r)if(s!=n&&(i.indexOf(s)==-1||e[s]!==t[s]))return!1;return!0}function kE(e,t,n){let r=!1;if(t)for(let i in t)n&&i in n||(r=!0,i=="style"?e.style.cssText="":e.removeAttribute(i));if(n)for(let i in n)t&&t[i]==n[i]||(r=!0,i=="style"?e.style.cssText=n[i]:e.setAttribute(i,n[i]));return r}function Nse(e){let t=Object.create(null);for(let n=0;n<e.attributes.length;n++){let r=e.attributes[n];t[r.name]=r.value}return t}class Mn extends on{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(t,n,r,i,s,o){if(r){if(!(r instanceof Mn))return!1;this.dom||r.transferDOM(this)}return i&&this.setDeco(r?r.attrs:null),xM(this,t,n,r?r.children.slice():[],s,o),!0}split(t){let n=new Mn;if(n.breakAfter=this.breakAfter,this.length==0)return n;let{i:r,off:i}=this.childPos(t);i&&(n.append(this.children[r].split(i),0),this.children[r].merge(i,this.children[r].length,null,!1,0,0),r++);for(let s=r;s<this.children.length;s++)n.append(this.children[s],0);for(;r>0&&this.children[r-1].length==0;)this.children[--r].destroy();return this.children.length=r,this.markDirty(),this.length=t,n}transferDOM(t){this.dom&&(this.markDirty(),t.setDOM(this.dom),t.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(t){_T(this.attrs,t)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=t)}append(t,n){DM(this,t,n)}addLineDeco(t){let n=t.spec.attributes,r=t.spec.class;n&&(this.attrs=SE(n,this.attrs||{})),r&&(this.attrs=SE({class:r},this.attrs||{}))}domAtPos(t){return OM(this,t)}reuseDOM(t){t.nodeName=="DIV"&&(this.setDOM(t),this.flags|=6)}sync(t,n){var r;this.dom?this.flags&4&&(TM(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(kE(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(t,n);let i=this.dom.lastChild;for(;i&&on.get(i)instanceof yo;)i=i.lastChild;if(!i||!this.length||i.nodeName!="BR"&&((r=on.get(i))===null||r===void 0?void 0:r.isEditable)==!1&&(!Xe.ios||!this.children.some(s=>s instanceof bo))){let s=document.createElement("BR");s.cmIgnore=!0,this.dom.appendChild(s)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let t=0,n;for(let r of this.children){if(!(r instanceof bo)||/[^ -~]/.test(r.text))return null;let i=rh(r.dom);if(i.length!=1)return null;t+=i[0].width,n=i[0].height}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length,textHeight:n}:null}coordsAt(t,n){let r=IM(this,t,n);if(!this.children.length&&r&&this.parent){let{heightOracle:i}=this.parent.view.viewState,s=r.bottom-r.top;if(Math.abs(s-i.lineHeight)<2&&i.textHeight<s){let o=(s-i.textHeight)/2;return{top:r.top+o,bottom:r.bottom-o,left:r.left,right:r.left}}}return r}become(t){return!1}covers(){return!0}static find(t,n){for(let r=0,i=0;r<t.children.length;r++){let s=t.children[r],o=i+s.length;if(o>=n){if(s instanceof Mn)return s;if(o>n)break}i=o+s.breakAfter}return null}}class _a extends on{constructor(t,n,r){super(),this.widget=t,this.length=n,this.deco=r,this.breakAfter=0,this.prevWidget=null}merge(t,n,r,i,s,o){return r&&(!(r instanceof _a)||!this.widget.compare(r.widget)||t>0&&s<=0||n<this.length&&o<=0)?!1:(this.length=t+(r?r.length:0)+(this.length-n),!0)}domAtPos(t){return t==0?br.before(this.dom):br.after(this.dom,t==this.length)}split(t){let n=this.length-t;this.length=t;let r=new _a(this.widget,n,this.deco);return r.breakAfter=this.breakAfter,r}get children(){return ET}sync(t){(!this.dom||!this.widget.updateDOM(this.dom,t))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(t)),this.widget.editable||(this.dom.contentEditable="false"))}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):zt.empty}domBoundsAround(){return null}become(t){return t instanceof _a&&t.widget.constructor==this.widget.constructor?(t.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=t.widget,this.length=t.length,this.deco=t.deco,this.breakAfter=t.breakAfter,!0):!1}ignoreMutation(){return!0}ignoreEvent(t){return this.widget.ignoreEvent(t)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(t,n){return this.widget.coordsAt(this.dom,t,n)}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}covers(t){let{startSide:n,endSide:r}=this.deco;return n==r?!1:t<0?n<0:r>0}}class Wu{eq(t){return!1}updateDOM(t,n){return!1}compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(t){return!0}coordsAt(t,n,r){return null}get isHidden(){return!1}get editable(){return!1}destroy(t){}}var Qi=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(Qi||(Qi={}));class yn extends Vl{constructor(t,n,r,i){super(),this.startSide=t,this.endSide=n,this.widget=r,this.spec=i}get heightRelevant(){return!1}static mark(t){return new Uh(t)}static widget(t){let n=Math.max(-1e4,Math.min(1e4,t.side||0)),r=!!t.block;return n+=r&&!t.inlineOrder?n>0?3e8:-4e8:n>0?1e8:-1e8,new Oa(t,n,n,r,t.widget||null,!1)}static replace(t){let n=!!t.block,r,i;if(t.isBlockGap)r=-5e8,i=4e8;else{let{start:s,end:o}=RM(t,n);r=(s?n?-3e8:-1:5e8)-1,i=(o?n?2e8:1:-6e8)+1}return new Oa(t,r,i,n,t.widget||null,!0)}static line(t){return new Hh(t)}static set(t,n=!1){return qt.of(t,n)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}yn.none=qt.empty;class Uh extends yn{constructor(t){let{start:n,end:r}=RM(t);super(n?-1:5e8,r?1:-6e8,null,t),this.tagName=t.tagName||"span",this.class=t.class||"",this.attrs=t.attributes||null}eq(t){var n,r;return this==t||t instanceof Uh&&this.tagName==t.tagName&&(this.class||((n=this.attrs)===null||n===void 0?void 0:n.class))==(t.class||((r=t.attrs)===null||r===void 0?void 0:r.class))&&_T(this.attrs,t.attrs,"class")}range(t,n=t){if(t>=n)throw new RangeError("Mark decorations may not be empty");return super.range(t,n)}}Uh.prototype.point=!1;class Hh extends yn{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof Hh&&this.spec.class==t.spec.class&&_T(this.spec.attributes,t.spec.attributes)}range(t,n=t){if(n!=t)throw new RangeError("Line decoration ranges must be zero-length");return super.range(t,n)}}Hh.prototype.mapMode=exports.zt.TrackBefore;Hh.prototype.point=!0;class Oa extends yn{constructor(t,n,r,i,s,o){super(n,r,s,t),this.block=i,this.isReplace=o,this.mapMode=i?n<=0?exports.zt.TrackBefore:exports.zt.TrackAfter:exports.zt.TrackDel}get type(){return this.startSide!=this.endSide?Qi.WidgetRange:this.startSide<=0?Qi.WidgetBefore:Qi.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(t){return t instanceof Oa&&Cse(this.widget,t.widget)&&this.block==t.block&&this.startSide==t.startSide&&this.endSide==t.endSide}range(t,n=t){if(this.isReplace&&(t>n||t==n&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&n!=t)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(t,n)}}Oa.prototype.point=!0;function RM(e,t=!1){let{inclusiveStart:n,inclusiveEnd:r}=e;return n==null&&(n=e.inclusive),r==null&&(r=e.inclusive),{start:n??t,end:r??t}}function Cse(e,t){return e==t||!!(e&&t&&e.compare(t))}function AE(e,t,n,r=0){let i=n.length-1;i>=0&&n[i]+r>=e?n[i]=Math.max(n[i],t):n.push(e,t)}class kf{constructor(t,n,r,i){this.doc=t,this.pos=n,this.end=r,this.disallowBlockEffectsFor=i,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=t.iter(),this.skip=n}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let t=this.content[this.content.length-1];return!(t.breakAfter||t instanceof _a&&t.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new Mn),this.atCursorPos=!0),this.curLine}flushBuffer(t=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(Yp(new yu(-1),t),t.length),this.pendingBuffer=0)}addBlockWidget(t){this.flushBuffer(),this.curLine=null,this.content.push(t)}finish(t){this.pendingBuffer&&t<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(t&&this.content.length&&this.content[this.content.length-1]instanceof _a)&&this.getLine()}buildText(t,n,r){for(;t>0;){if(this.textOff==this.text.length){let{value:s,lineBreak:o,done:a}=this.cursor.next(this.skip);if(this.skip=0,a)throw new Error("Ran out of text content when drawing inline views");if(o){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,t--;continue}else this.text=s,this.textOff=0}let i=Math.min(this.text.length-this.textOff,t,512);this.flushBuffer(n.slice(n.length-r)),this.getLine().append(Yp(new bo(this.text.slice(this.textOff,this.textOff+i)),n),r),this.atCursorPos=!0,this.textOff+=i,t-=i,r=0}}span(t,n,r,i){this.buildText(n-t,r,i),this.pos=n,this.openStart<0&&(this.openStart=i)}point(t,n,r,i,s,o){if(this.disallowBlockEffectsFor[o]&&r instanceof Oa){if(r.block)throw new RangeError("Block decorations may not be specified via plugins");if(n>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let a=n-t;if(r instanceof Oa)if(r.block)r.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new _a(r.widget||new sC("div"),a,r));else{let l=ml.create(r.widget||new sC("span"),a,a?0:r.startSide),c=this.atCursorPos&&!l.isEditable&&s<=i.length&&(t<n||r.startSide>0),u=!l.isEditable&&(t<n||s>i.length||r.startSide<=0),d=this.getLine();this.pendingBuffer==2&&!c&&!l.isEditable&&(this.pendingBuffer=0),this.flushBuffer(i),c&&(d.append(Yp(new yu(1),i),s),s=i.length+Math.max(0,s-i.length)),d.append(Yp(l,i),s),this.atCursorPos=u,this.pendingBuffer=u?t<n||s>i.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=i.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(r);a&&(this.textOff+a<=this.text.length?this.textOff+=a:(this.skip+=a-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=n),this.openStart<0&&(this.openStart=s)}static build(t,n,r,i,s){let o=new kf(t,n,r,s);return o.openEnd=qt.spans(i,n,r,o),o.openStart<0&&(o.openStart=o.openEnd),o.finish(o.openEnd),o}}function Yp(e,t){for(let n of t)e=new yo(n,[e],e.length);return e}class sC extends Wu{constructor(t){super(),this.tag=t}eq(t){return t.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(t){return t.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}exports.ct=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(exports.ct||(exports.ct={}));const zl=exports.ct.LTR,wT=exports.ct.RTL;function PM(e){let t=[];for(let n=0;n<e.length;n++)t.push(1<<+e[n]);return t}const Ose=PM("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),Dse=PM("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),xE=Object.create(null),cs=[];for(let e of["()","[]","{}"]){let t=e.charCodeAt(0),n=e.charCodeAt(1);xE[t]=n,xE[n]=-t}function LM(e){return e<=247?Ose[e]:1424<=e&&e<=1524?2:1536<=e&&e<=1785?Dse[e-1536]:1774<=e&&e<=2220?4:8192<=e&&e<=8204?256:64336<=e&&e<=65023?4:1}const Ise=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class ua{get dir(){return this.level%2?wT:zl}constructor(t,n,r){this.from=t,this.to=n,this.level=r}side(t,n){return this.dir==n==t?this.to:this.from}forward(t,n){return t==(this.dir==n)}static find(t,n,r,i){let s=-1;for(let o=0;o<t.length;o++){let a=t[o];if(a.from<=n&&a.to>=n){if(a.level==r)return o;(s<0||(i!=0?i<0?a.from<n:a.to>n:t[s].level>a.level))&&(s=o)}}if(s<0)throw new RangeError("Index out of range");return s}}function MM(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],i=t[n];if(r.from!=i.from||r.to!=i.to||r.direction!=i.direction||!MM(r.inner,i.inner))return!1}return!0}const Gt=[];function Rse(e,t,n,r,i){for(let s=0;s<=r.length;s++){let o=s?r[s-1].to:t,a=s<r.length?r[s].from:n,l=s?256:i;for(let c=o,u=l,d=l;c<a;c++){let f=LM(e.charCodeAt(c));f==512?f=u:f==8&&d==4&&(f=16),Gt[c]=f==4?2:f,f&7&&(d=f),u=f}for(let c=o,u=l,d=l;c<a;c++){let f=Gt[c];if(f==128)c<a-1&&u==Gt[c+1]&&u&24?f=Gt[c]=u:Gt[c]=256;else if(f==64){let h=c+1;for(;h<a&&Gt[h]==64;)h++;let p=c&&u==8||h<n&&Gt[h]==8?d==1?1:8:256;for(let m=c;m<h;m++)Gt[m]=p;c=h-1}else f==8&&d==1&&(Gt[c]=1);u=f,f&7&&(d=f)}}}function Pse(e,t,n,r,i){let s=i==1?2:1;for(let o=0,a=0,l=0;o<=r.length;o++){let c=o?r[o-1].to:t,u=o<r.length?r[o].from:n;for(let d=c,f,h,p;d<u;d++)if(h=xE[f=e.charCodeAt(d)])if(h<0){for(let m=a-3;m>=0;m-=3)if(cs[m+1]==-h){let g=cs[m+2],b=g&2?i:g&4?g&1?s:i:0;b&&(Gt[d]=Gt[cs[m]]=b),a=m;break}}else{if(cs.length==189)break;cs[a++]=d,cs[a++]=f,cs[a++]=l}else if((p=Gt[d])==2||p==1){let m=p==i;l=m?0:1;for(let g=a-3;g>=0;g-=3){let b=cs[g+2];if(b&2)break;if(m)cs[g+2]|=2;else{if(b&4)break;cs[g+2]|=4}}}}}function Lse(e,t,n,r){for(let i=0,s=r;i<=n.length;i++){let o=i?n[i-1].to:e,a=i<n.length?n[i].from:t;for(let l=o;l<a;){let c=Gt[l];if(c==256){let u=l+1;for(;;)if(u==a){if(i==n.length)break;u=n[i++].to,a=i<n.length?n[i].from:t}else if(Gt[u]==256)u++;else break;let d=s==1,f=(u<t?Gt[u]:r)==1,h=d==f?d?1:2:r;for(let p=u,m=i,g=m?n[m-1].to:e;p>l;)p==g&&(p=n[--m].from,g=m?n[m-1].to:e),Gt[--p]=h;l=u}else s=c,l++}}}function NE(e,t,n,r,i,s,o){let a=r%2?2:1;if(r%2==i%2)for(let l=t,c=0;l<n;){let u=!0,d=!1;if(c==s.length||l<s[c].from){let m=Gt[l];m!=a&&(u=!1,d=m==16)}let f=!u&&a==1?[]:null,h=u?r:r+1,p=l;e:for(;;)if(c<s.length&&p==s[c].from){if(d)break e;let m=s[c];if(!u)for(let g=m.to,b=c+1;;){if(g==n)break e;if(b<s.length&&s[b].from==g)g=s[b++].to;else{if(Gt[g]==a)break e;break}}if(c++,f)f.push(m);else{m.from>l&&o.push(new ua(l,m.from,h));let g=m.direction==zl!=!(h%2);CE(e,g?r+1:r,i,m.inner,m.from,m.to,o),l=m.to}p=m.to}else{if(p==n||(u?Gt[p]!=a:Gt[p]==a))break;p++}f?NE(e,l,p,r+1,i,f,o):l<p&&o.push(new ua(l,p,h)),l=p}else for(let l=n,c=s.length;l>t;){let u=!0,d=!1;if(!c||l>s[c-1].to){let m=Gt[l-1];m!=a&&(u=!1,d=m==16)}let f=!u&&a==1?[]:null,h=u?r:r+1,p=l;e:for(;;)if(c&&p==s[c-1].to){if(d)break e;let m=s[--c];if(!u)for(let g=m.from,b=c;;){if(g==t)break e;if(b&&s[b-1].to==g)g=s[--b].from;else{if(Gt[g-1]==a)break e;break}}if(f)f.push(m);else{m.to<l&&o.push(new ua(m.to,l,h));let g=m.direction==zl!=!(h%2);CE(e,g?r+1:r,i,m.inner,m.from,m.to,o),l=m.from}p=m.from}else{if(p==t||(u?Gt[p-1]!=a:Gt[p-1]==a))break;p--}f?NE(e,p,l,r+1,i,f,o):p<l&&o.push(new ua(p,l,h)),l=p}}function CE(e,t,n,r,i,s,o){let a=t%2?2:1;Rse(e,i,s,r,a),Pse(e,i,s,r,a),Lse(i,s,r,a),NE(e,i,s,t,n,r,o)}function Mse(e,t,n){if(!e)return[new ua(0,0,t==wT?1:0)];if(t==zl&&!n.length&&!Ise.test(e))return $M(e.length);if(n.length)for(;e.length>Gt.length;)Gt[Gt.length]=256;let r=[],i=t==zl?0:1;return CE(e,i,i,n,0,e.length,r),r}function $M(e){return[new ua(0,e,0)]}let FM="";function $se(e,t,n,r,i){var s;let o=r.head-e.from,a=ua.find(t,o,(s=r.bidiLevel)!==null&&s!==void 0?s:-1,r.assoc),l=t[a],c=l.side(i,n);if(o==c){let f=a+=i?1:-1;if(f<0||f>=t.length)return null;l=t[a=f],o=l.side(!i,n),c=l.side(i,n)}let u=ks(e.text,o,l.forward(i,n));(u<l.from||u>l.to)&&(u=c),FM=e.text.slice(Math.min(o,u),Math.max(o,u));let d=a==(i?t.length-1:0)?null:t[a+(i?1:-1)];return d&&u==c&&d.level+(i?0:1)<l.level?Ze.cursor(d.side(!i,n)+e.from,d.forward(i,n)?1:-1,d.level):Ze.cursor(u+e.from,l.forward(i,n)?-1:1,l.level)}function Fse(e,t,n){for(let r=t;r<n;r++){let i=LM(e.charCodeAt(r));if(i==1)return zl;if(i==2||i==4)return wT}return zl}const BM=st.define(),UM=st.define(),HM=st.define(),jM=st.define(),OE=st.define(),VM=st.define(),qM=st.define(),zM=st.define({combine:e=>e.some(t=>t)}),Bse=st.define({combine:e=>e.some(t=>t)});class eu{constructor(t,n="nearest",r="nearest",i=5,s=5,o=!1){this.range=t,this.y=n,this.x=r,this.yMargin=i,this.xMargin=s,this.isSnapshot=o}map(t){return t.empty?this:new eu(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(t){return this.range.to<=t.doc.length?this:new eu(Ze.cursor(t.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const Xp=Fn.define({map:(e,t)=>e.map(t)});function so(e,t,n){let r=e.facet(jM);r.length?r[0](t):window.onerror?window.onerror(String(t),n,void 0,void 0,t):n?console.error(n+":",t):console.error(t)}const Eb=st.define({combine:e=>e.length?e[0]:!0});let Use=0;const Yd=st.define();class Ii{constructor(t,n,r,i,s){this.id=t,this.create=n,this.domEventHandlers=r,this.domEventObservers=i,this.extension=s(this)}static define(t,n){const{eventHandlers:r,eventObservers:i,provide:s,decorations:o}=n||{};return new Ii(Use++,t,r,i,a=>{let l=[Yd.of(a)];return o&&l.push(sh.of(c=>{let u=c.plugin(a);return u?o(u):yn.none})),s&&l.push(s(a)),l})}static fromClass(t,n){return Ii.define(r=>new t(r),n)}}class lv{constructor(t){this.spec=t,this.mustUpdate=null,this.value=null}update(t){if(this.value){if(this.mustUpdate){let n=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(n)}catch(r){if(so(n.state,r,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(t)}catch(n){so(t.state,n,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(t){var n;if(!((n=this.value)===null||n===void 0)&&n.destroy)try{this.value.destroy()}catch(r){so(t.state,r,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const KM=st.define(),TT=st.define(),sh=st.define(),WM=st.define(),ST=st.define(),GM=st.define();function oC(e,t){let n=e.state.facet(GM);if(!n.length)return n;let r=n.map(s=>s instanceof Function?s(e):s),i=[];return qt.spans(r,t.from,t.to,{point(){},span(s,o,a,l){let c=s-t.from,u=o-t.from,d=i;for(let f=a.length-1;f>=0;f--,l--){let h=a[f].spec.bidiIsolate,p;if(h==null&&(h=Fse(t.text,c,u)),l>0&&d.length&&(p=d[d.length-1]).to==c&&p.direction==h)p.to=u,d=p.inner;else{let m={from:c,to:u,direction:h,inner:[]};d.push(m),d=m.inner}}}}),i}const YM=st.define();function XM(e){let t=0,n=0,r=0,i=0;for(let s of e.state.facet(YM)){let o=s(e);o&&(o.left!=null&&(t=Math.max(t,o.left)),o.right!=null&&(n=Math.max(n,o.right)),o.top!=null&&(r=Math.max(r,o.top)),o.bottom!=null&&(i=Math.max(i,o.bottom)))}return{left:t,right:n,top:r,bottom:i}}const Xd=st.define();class Ni{constructor(t,n,r,i){this.fromA=t,this.toA=n,this.fromB=r,this.toB=i}join(t){return new Ni(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}addToSet(t){let n=t.length,r=this;for(;n>0;n--){let i=t[n-1];if(!(i.fromA>r.toA)){if(i.toA<r.fromA)break;r=r.join(i),t.splice(n-1,1)}}return t.splice(n,0,r),t}static extendWithRanges(t,n){if(n.length==0)return t;let r=[];for(let i=0,s=0,o=0,a=0;;i++){let l=i==t.length?null:t[i],c=o-a,u=l?l.fromB:1e9;for(;s<n.length&&n[s]<u;){let d=n[s],f=n[s+1],h=Math.max(a,d),p=Math.min(u,f);if(h<=p&&new Ni(h+c,p+c,h,p).addToSet(r),f>u)break;s+=2}if(!l)return r;new Ni(l.fromA,l.toA,l.fromB,l.toB).addToSet(r),o=l.toA,a=l.toB}}}class Bg{constructor(t,n,r){this.view=t,this.state=n,this.transactions=r,this.flags=0,this.startState=t.state,this.changes=qn.empty(this.startState.doc.length);for(let s of r)this.changes=this.changes.compose(s.changes);let i=[];this.changes.iterChangedRanges((s,o,a,l)=>i.push(new Ni(s,o,a,l))),this.changedRanges=i}static create(t,n,r){return new Bg(t,n,r)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(t=>t.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}class aC extends on{get length(){return this.view.state.doc.length}constructor(t){super(),this.view=t,this.decorations=[],this.dynamicDecorationMap=[],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(t.contentDOM),this.children=[new Mn],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new Ni(0,0,0,t.state.doc.length)],0,null)}update(t){var n;let r=t.changedRanges;this.minWidth>0&&r.length&&(r.every(({fromA:c,toA:u})=>u<this.minWidthFrom||c>this.minWidthTo)?(this.minWidthFrom=t.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=t.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let i=-1;this.view.inputState.composing>=0&&(!((n=this.domChanged)===null||n===void 0)&&n.newSel?i=this.domChanged.newSel.head:!Wse(t.changes,this.hasComposition)&&!t.selectionSet&&(i=t.state.selection.main.head));let s=i>-1?jse(this.view,t.changes,i):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:c,to:u}=this.hasComposition;r=new Ni(c,u,t.changes.mapPos(c,-1),t.changes.mapPos(u,1)).addToSet(r.slice())}this.hasComposition=s?{from:s.range.fromB,to:s.range.toB}:null,(Xe.ie||Xe.chrome)&&!s&&t&&t.state.doc.lines!=t.startState.doc.lines&&(this.forceSelection=!0);let o=this.decorations,a=this.updateDeco(),l=zse(o,a,t.changes);return r=Ni.extendWithRanges(r,l),!(this.flags&7)&&r.length==0?!1:(this.updateInner(r,t.startState.doc.length,s),t.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(t,n,r){this.view.viewState.mustMeasureContent=!0,this.updateChildren(t,n,r);let{observer:i}=this.view;i.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let o=Xe.chrome||Xe.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,o),this.flags&=-8,o&&(o.written||i.selectionRange.focusNode!=o.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(o=>o.flags&=-9);let s=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let o of this.children)o instanceof _a&&o.widget instanceof lC&&s.push(o.dom);i.updateGaps(s)}updateChildren(t,n,r){let i=r?r.range.addToSet(t.slice()):t,s=this.childCursor(n);for(let o=i.length-1;;o--){let a=o>=0?i[o]:null;if(!a)break;let{fromA:l,toA:c,fromB:u,toB:d}=a,f,h,p,m;if(r&&r.range.fromB<d&&r.range.toB>u){let E=kf.build(this.view.state.doc,u,r.range.fromB,this.decorations,this.dynamicDecorationMap),T=kf.build(this.view.state.doc,r.range.toB,d,this.decorations,this.dynamicDecorationMap);h=E.breakAtStart,p=E.openStart,m=T.openEnd;let w=this.compositionView(r);T.breakAtStart?w.breakAfter=1:T.content.length&&w.merge(w.length,w.length,T.content[0],!1,T.openStart,0)&&(w.breakAfter=T.content[0].breakAfter,T.content.shift()),E.content.length&&w.merge(0,0,E.content[E.content.length-1],!0,0,E.openEnd)&&E.content.pop(),f=E.content.concat(w).concat(T.content)}else({content:f,breakAtStart:h,openStart:p,openEnd:m}=kf.build(this.view.state.doc,u,d,this.decorations,this.dynamicDecorationMap));let{i:g,off:b}=s.findPos(c,1),{i:v,off:y}=s.findPos(l,-1);AM(this,v,y,g,b,f,h,p,m)}r&&this.fixCompositionDOM(r)}compositionView(t){let n=new bo(t.text.nodeValue);n.flags|=8;for(let{deco:i}of t.marks)n=new yo(i,[n],n.length);let r=new Mn;return r.append(n,0),r}fixCompositionDOM(t){let n=(s,o)=>{o.flags|=8|(o.children.some(l=>l.flags&7)?1:0),this.markedForComposition.add(o);let a=on.get(s);a&&a!=o&&(a.dom=null),o.setDOM(s)},r=this.childPos(t.range.fromB,1),i=this.children[r.i];n(t.line,i);for(let s=t.marks.length-1;s>=-1;s--)r=i.childPos(r.off,1),i=i.children[r.i],n(s>=0?t.marks[s].node:t.text,i)}updateSelection(t=!1,n=!1){(t||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let r=this.view.root.activeElement,i=r==this.dom,s=!i&&Hm(this.dom,this.view.observer.selectionRange)&&!(r&&this.dom.contains(r));if(!(i||n||s))return;let o=this.forceSelection;this.forceSelection=!1;let a=this.view.state.selection.main,l=this.moveToLine(this.domAtPos(a.anchor)),c=a.empty?l:this.moveToLine(this.domAtPos(a.head));if(Xe.gecko&&a.empty&&!this.hasComposition&&Hse(l)){let d=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(d,l.node.childNodes[l.offset]||null)),l=c=new br(d,0),o=!0}let u=this.view.observer.selectionRange;(o||!u.focusNode||(!Sf(l.node,l.offset,u.anchorNode,u.anchorOffset)||!Sf(c.node,c.offset,u.focusNode,u.focusOffset))&&!this.suppressWidgetCursorChange(u,a))&&(this.view.observer.ignore(()=>{Xe.android&&Xe.chrome&&this.dom.contains(u.focusNode)&&Kse(u.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let d=Fg(this.view.root);if(d)if(a.empty){if(Xe.gecko){let f=Vse(l.node,l.offset);if(f&&f!=3){let h=JM(l.node,l.offset,f==1?1:-1);h&&(l=new br(h.node,h.offset))}}d.collapse(l.node,l.offset),a.bidiLevel!=null&&d.caretBidiLevel!==void 0&&(d.caretBidiLevel=a.bidiLevel)}else if(d.extend){d.collapse(l.node,l.offset);try{d.extend(c.node,c.offset)}catch{}}else{let f=document.createRange();a.anchor>a.head&&([l,c]=[c,l]),f.setEnd(c.node,c.offset),f.setStart(l.node,l.offset),d.removeAllRanges(),d.addRange(f)}s&&this.view.root.activeElement==this.dom&&(this.dom.blur(),r&&r.focus())}),this.view.observer.setSelectionRange(l,c)),this.impreciseAnchor=l.precise?null:new br(u.anchorNode,u.anchorOffset),this.impreciseHead=c.precise?null:new br(u.focusNode,u.focusOffset)}suppressWidgetCursorChange(t,n){return this.hasComposition&&n.empty&&Sf(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)&&this.posFromDOM(t.focusNode,t.focusOffset)==n.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:t}=this,n=t.state.selection.main,r=Fg(t.root),{anchorNode:i,anchorOffset:s}=t.observer.selectionRange;if(!r||!n.empty||!n.assoc||!r.modify)return;let o=Mn.find(this,n.head);if(!o)return;let a=o.posAtStart;if(n.head==a||n.head==a+o.length)return;let l=this.coordsAt(n.head,-1),c=this.coordsAt(n.head,1);if(!l||!c||l.bottom>c.top)return;let u=this.domAtPos(n.head+n.assoc);r.collapse(u.node,u.offset),r.modify("move",n.assoc<0?"forward":"backward","lineboundary"),t.observer.readSelectionRange();let d=t.observer.selectionRange;t.docView.posFromDOM(d.anchorNode,d.anchorOffset)!=n.from&&r.collapse(i,s)}moveToLine(t){let n=this.dom,r;if(t.node!=n)return t;for(let i=t.offset;!r&&i<n.childNodes.length;i++){let s=on.get(n.childNodes[i]);s instanceof Mn&&(r=s.domAtPos(0))}for(let i=t.offset-1;!r&&i>=0;i--){let s=on.get(n.childNodes[i]);s instanceof Mn&&(r=s.domAtPos(s.length))}return r?new br(r.node,r.offset,!0):t}nearest(t){for(let n=t;n;){let r=on.get(n);if(r&&r.rootView==this)return r;n=n.parentNode}return null}posFromDOM(t,n){let r=this.nearest(t);if(!r)throw new RangeError("Trying to find position for a DOM position outside of the document");return r.localPosFromDOM(t,n)+r.posAtStart}domAtPos(t){let{i:n,off:r}=this.childCursor().findPos(t,-1);for(;n<this.children.length-1;){let i=this.children[n];if(r<i.length||i instanceof Mn)break;n++,r=0}return this.children[n].domAtPos(r)}coordsAt(t,n){let r=null,i=0;for(let s=this.length,o=this.children.length-1;o>=0;o--){let a=this.children[o],l=s-a.breakAfter,c=l-a.length;if(l<t)break;c<=t&&(c<t||a.covers(-1))&&(l>t||a.covers(1))&&(!r||a instanceof Mn&&!(r instanceof Mn&&n>=0))&&(r=a,i=c),s=c}return r?r.coordsAt(t-i,n):null}coordsForChar(t){let{i:n,off:r}=this.childPos(t,1),i=this.children[n];if(!(i instanceof Mn))return null;for(;i.children.length;){let{i:a,off:l}=i.childPos(r,1);for(;;a++){if(a==i.children.length)return null;if((i=i.children[a]).length)break}r=l}if(!(i instanceof bo))return null;let s=ks(i.text,r);if(s==r)return null;let o=ql(i.dom,r,s).getClientRects();for(let a=0;a<o.length;a++){let l=o[a];if(a==o.length-1||l.top<l.bottom&&l.left<l.right)return l}return null}measureVisibleLineHeights(t){let n=[],{from:r,to:i}=t,s=this.view.contentDOM.clientWidth,o=s>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,a=-1,l=this.view.textDirection==exports.ct.LTR;for(let c=0,u=0;u<this.children.length;u++){let d=this.children[u],f=c+d.length;if(f>i)break;if(c>=r){let h=d.dom.getBoundingClientRect();if(n.push(h.height),o){let p=d.dom.lastChild,m=p?rh(p):[];if(m.length){let g=m[m.length-1],b=l?g.right-h.left:h.right-g.left;b>a&&(a=b,this.minWidth=s,this.minWidthFrom=c,this.minWidthTo=f)}}}c=f+d.breakAfter}return n}textDirectionAt(t){let{i:n}=this.childPos(t,1);return getComputedStyle(this.children[n].dom).direction=="rtl"?exports.ct.RTL:exports.ct.LTR}measureTextSize(){for(let s of this.children)if(s instanceof Mn){let o=s.measureTextSize();if(o)return o}let t=document.createElement("div"),n,r,i;return t.className="cm-line",t.style.width="99999px",t.style.position="absolute",t.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(t);let s=rh(t.firstChild)[0];n=t.getBoundingClientRect().height,r=s?s.width/27:7,i=s?s.height:n,t.remove()}),{lineHeight:n,charWidth:r,textHeight:i}}childCursor(t=this.length){let n=this.children.length;return n&&(t-=this.children[--n].length),new kM(this.children,t,n)}computeBlockGapDeco(){let t=[],n=this.view.viewState;for(let r=0,i=0;;i++){let s=i==n.viewports.length?null:n.viewports[i],o=s?s.from-1:this.length;if(o>r){let a=(n.lineBlockAt(o).bottom-n.lineBlockAt(r).top)/this.view.scaleY;t.push(yn.replace({widget:new lC(a),block:!0,inclusive:!0,isBlockGap:!0}).range(r,o))}if(!s)break;r=s.to+1}return yn.set(t)}updateDeco(){let t=this.view.state.facet(sh).map((i,s)=>(this.dynamicDecorationMap[s]=typeof i=="function")?i(this.view):i),n=!1,r=this.view.state.facet(WM).map((i,s)=>{let o=typeof i=="function";return o&&(n=!0),o?i(this.view):i});r.length&&(this.dynamicDecorationMap[t.length]=n,t.push(qt.join(r)));for(let i=t.length;i<t.length+3;i++)this.dynamicDecorationMap[i]=!1;return this.decorations=[...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco]}scrollIntoView(t){if(t.isSnapshot){let c=this.view.viewState.lineBlockAt(t.range.head);this.view.scrollDOM.scrollTop=c.top-t.yMargin,this.view.scrollDOM.scrollLeft=t.xMargin;return}let{range:n}=t,r=this.coordsAt(n.head,n.empty?n.assoc:n.head>n.anchor?-1:1),i;if(!r)return;!n.empty&&(i=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={left:Math.min(r.left,i.left),top:Math.min(r.top,i.top),right:Math.max(r.right,i.right),bottom:Math.max(r.bottom,i.bottom)});let s=XM(this.view),o={left:r.left-s.left,top:r.top-s.top,right:r.right+s.right,bottom:r.bottom+s.bottom},{offsetWidth:a,offsetHeight:l}=this.view.scrollDOM;Ese(this.view.scrollDOM,o,n.head<n.anchor?-1:1,t.x,t.y,Math.max(Math.min(t.xMargin,a),-a),Math.max(Math.min(t.yMargin,l),-l),this.view.textDirection==exports.ct.LTR)}}function Hse(e){return e.node.nodeType==1&&e.node.firstChild&&(e.offset==0||e.node.childNodes[e.offset-1].contentEditable=="false")&&(e.offset==e.node.childNodes.length||e.node.childNodes[e.offset].contentEditable=="false")}class lC extends Wu{constructor(t){super(),this.height=t}toDOM(){let t=document.createElement("div");return t.className="cm-gap",this.updateDOM(t),t}eq(t){return t.height==this.height}updateDOM(t){return t.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}function QM(e,t){let n=e.observer.selectionRange,r=n.focusNode&&JM(n.focusNode,n.focusOffset,0);if(!r)return null;let i=t-r.offset;return{from:i,to:i+r.node.nodeValue.length,node:r.node}}function jse(e,t,n){let r=QM(e,n);if(!r)return null;let{node:i,from:s,to:o}=r,a=i.nodeValue;if(/[\n\r]/.test(a)||e.state.doc.sliceString(r.from,r.to)!=a)return null;let l=t.invertedDesc,c=new Ni(l.mapPos(s),l.mapPos(o),s,o),u=[];for(let d=i.parentNode;;d=d.parentNode){let f=on.get(d);if(f instanceof yo)u.push({node:d,deco:f.mark});else{if(f instanceof Mn||d.nodeName=="DIV"&&d.parentNode==e.contentDOM)return{range:c,text:i,marks:u,line:d};if(d!=e.contentDOM)u.push({node:d,deco:new Uh({inclusive:!0,attributes:Nse(d),tagName:d.tagName.toLowerCase()})});else return null}}}function JM(e,t,n){if(n<=0)for(let r=e,i=t;;){if(r.nodeType==3)return{node:r,offset:i};if(r.nodeType==1&&i>0)r=r.childNodes[i-1],i=go(r);else break}if(n>=0)for(let r=e,i=t;;){if(r.nodeType==3)return{node:r,offset:i};if(r.nodeType==1&&i<r.childNodes.length&&n>=0)r=r.childNodes[i],i=0;else break}return null}function Vse(e,t){return e.nodeType!=1?0:(t&&e.childNodes[t-1].contentEditable=="false"?1:0)|(t<e.childNodes.length&&e.childNodes[t].contentEditable=="false"?2:0)}let qse=class{constructor(){this.changes=[]}compareRange(e,t){AE(e,t,this.changes)}comparePoint(e,t){AE(e,t,this.changes)}};function zse(e,t,n){let r=new qse;return qt.compare(e,t,n,r),r.changes}function Kse(e,t){for(let n=e;n&&n!=t;n=n.assignedSlot||n.parentNode)if(n.nodeType==1&&n.contentEditable=="false")return!0;return!1}function Wse(e,t){let n=!1;return t&&e.iterChangedRanges((r,i)=>{r<t.to&&i>t.from&&(n=!0)}),n}function Gse(e,t,n=1){let r=e.charCategorizer(t),i=e.doc.lineAt(t),s=t-i.from;if(i.length==0)return Ze.cursor(t);s==0?n=1:s==i.length&&(n=-1);let o=s,a=s;n<0?o=ks(i.text,s,!1):a=ks(i.text,s);let l=r(i.text.slice(o,a));for(;o>0;){let c=ks(i.text,o,!1);if(r(i.text.slice(c,o))!=l)break;o=c}for(;a<i.length;){let c=ks(i.text,a);if(r(i.text.slice(a,c))!=l)break;a=c}return Ze.range(o+i.from,a+i.from)}function Yse(e,t){return t.left>e?t.left-e:Math.max(0,e-t.right)}function Xse(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function cv(e,t){return e.top<t.bottom-1&&e.bottom>t.top+1}function cC(e,t){return t<e.top?{top:t,left:e.left,right:e.right,bottom:e.bottom}:e}function uC(e,t){return t>e.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function DE(e,t,n){let r,i,s,o,a=!1,l,c,u,d;for(let p=e.firstChild;p;p=p.nextSibling){let m=rh(p);for(let g=0;g<m.length;g++){let b=m[g];i&&cv(i,b)&&(b=cC(uC(b,i.bottom),i.top));let v=Yse(t,b),y=Xse(n,b);if(v==0&&y==0)return p.nodeType==3?dC(p,t,n):DE(p,t,n);if(!r||o>y||o==y&&s>v){r=p,i=b,s=v,o=y;let E=y?n<b.top?-1:1:v?t<b.left?-1:1:0;a=!E||(E>0?g<m.length-1:g>0)}v==0?n>b.bottom&&(!u||u.bottom<b.bottom)?(l=p,u=b):n<b.top&&(!d||d.top>b.top)&&(c=p,d=b):u&&cv(u,b)?u=uC(u,b.bottom):d&&cv(d,b)&&(d=cC(d,b.top))}}if(u&&u.bottom>=n?(r=l,i=u):d&&d.top<=n&&(r=c,i=d),!r)return{node:e,offset:0};let f=Math.max(i.left,Math.min(i.right,t));if(r.nodeType==3)return dC(r,f,n);if(a&&r.contentEditable!="false")return DE(r,f,n);let h=Array.prototype.indexOf.call(e.childNodes,r)+(t>=(i.left+i.right)/2?1:0);return{node:e,offset:h}}function dC(e,t,n){let r=e.nodeValue.length,i=-1,s=1e9,o=0;for(let a=0;a<r;a++){let l=ql(e,a,a+1).getClientRects();for(let c=0;c<l.length;c++){let u=l[c];if(u.top==u.bottom)continue;o||(o=t-u.left);let d=(u.top>n?u.top-n:n-u.bottom)-1;if(u.left-1<=t&&u.right+1>=t&&d<s){let f=t>=(u.left+u.right)/2,h=f;if((Xe.chrome||Xe.gecko)&&ql(e,a).getBoundingClientRect().left==u.right&&(h=!f),d<=0)return{node:e,offset:a+(h?1:0)};i=a+(h?1:0),s=d}}}return{node:e,offset:i>-1?i:o>0?e.nodeValue.length:0}}function ZM(e,t,n,r=-1){var i,s;let o=e.contentDOM.getBoundingClientRect(),a=o.top+e.viewState.paddingTop,l,{docHeight:c}=e.viewState,{x:u,y:d}=t,f=d-a;if(f<0)return 0;if(f>c)return e.state.doc.length;for(let E=e.viewState.heightOracle.textHeight/2,T=!1;l=e.elementAtHeight(f),l.type!=Qi.Text;)for(;f=r>0?l.bottom+E:l.top-E,!(f>=0&&f<=c);){if(T)return n?null:0;T=!0,r=-r}d=a+f;let h=l.from;if(h<e.viewport.from)return e.viewport.from==0?0:n?null:fC(e,o,l,u,d);if(h>e.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:n?null:fC(e,o,l,u,d);let p=e.dom.ownerDocument,m=e.root.elementFromPoint?e.root:p,g=m.elementFromPoint(u,d);g&&!e.contentDOM.contains(g)&&(g=null),g||(u=Math.max(o.left+1,Math.min(o.right-1,u)),g=m.elementFromPoint(u,d),g&&!e.contentDOM.contains(g)&&(g=null));let b,v=-1;if(g&&((i=e.docView.nearest(g))===null||i===void 0?void 0:i.isEditable)!=!1){if(p.caretPositionFromPoint){let E=p.caretPositionFromPoint(u,d);E&&({offsetNode:b,offset:v}=E)}else if(p.caretRangeFromPoint){let E=p.caretRangeFromPoint(u,d);E&&({startContainer:b,startOffset:v}=E,(!e.contentDOM.contains(b)||Xe.safari&&Qse(b,v,u)||Xe.chrome&&Jse(b,v,u))&&(b=void 0))}}if(!b||!e.docView.dom.contains(b)){let E=Mn.find(e.docView,h);if(!E)return f>l.top+l.height/2?l.to:l.from;({node:b,offset:v}=DE(E.dom,u,d))}let y=e.docView.nearest(b);if(!y)return null;if(y.isWidget&&((s=y.dom)===null||s===void 0?void 0:s.nodeType)==1){let E=y.dom.getBoundingClientRect();return t.y<E.top||t.y<=E.bottom&&t.x<=(E.left+E.right)/2?y.posAtStart:y.posAtEnd}else return y.localPosFromDOM(b,v)+y.posAtStart}function fC(e,t,n,r,i){let s=Math.round((r-t.left)*e.defaultCharacterWidth);if(e.lineWrapping&&n.height>e.defaultLineHeight*1.5){let a=e.viewState.heightOracle.textHeight,l=Math.floor((i-n.top-(e.defaultLineHeight-a)*.5)/a);s+=l*e.viewState.heightOracle.lineLength}let o=e.state.sliceDoc(n.from,n.to);return n.from+hse(o,s,e.state.tabSize)}function Qse(e,t,n){let r;if(e.nodeType!=3||t!=(r=e.nodeValue.length))return!1;for(let i=e.nextSibling;i;i=i.nextSibling)if(i.nodeType!=1||i.nodeName!="BR")return!1;return ql(e,r-1,r).getBoundingClientRect().left>n}function Jse(e,t,n){if(t!=0)return!1;for(let i=e;;){let s=i.parentNode;if(!s||s.nodeType!=1||s.firstChild!=i)return!1;if(s.classList.contains("cm-line"))break;i=s}let r=e.nodeType==1?e.getBoundingClientRect():ql(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect();return n-r.left>5}function Zse(e,t){let n=e.lineBlockAt(t);if(Array.isArray(n.type)){for(let r of n.type)if(r.to>t||r.to==t&&(r.to==n.to||r.type==Qi.Text))return r}return n}function eoe(e,t,n,r){let i=Zse(e,t.head),s=!r||i.type!=Qi.Text||!(e.lineWrapping||i.widgetLineBreaks)?null:e.coordsAtPos(t.assoc<0&&t.head>i.from?t.head-1:t.head);if(s){let o=e.dom.getBoundingClientRect(),a=e.textDirectionAt(i.from),l=e.posAtCoords({x:n==(a==exports.ct.LTR)?o.right-1:o.left+1,y:(s.top+s.bottom)/2});if(l!=null)return Ze.cursor(l,n?-1:1)}return Ze.cursor(n?i.to:i.from,n?-1:1)}function hC(e,t,n,r){let i=e.state.doc.lineAt(t.head),s=e.bidiSpans(i),o=e.textDirectionAt(i.from);for(let a=t,l=null;;){let c=$se(i,s,o,a,n),u=FM;if(!c){if(i.number==(n?e.state.doc.lines:1))return a;u=`
222
222
  `,i=e.state.doc.line(i.number+(n?1:-1)),s=e.bidiSpans(i),c=e.visualLineSide(i,!n)}if(l){if(!l(u))return a}else{if(!r)return c;l=r(u)}a=c}}function toe(e,t,n){let r=e.state.charCategorizer(t),i=r(n);return s=>{let o=r(s);return i==exports.Xr.Space&&(i=o),i==o}}function noe(e,t,n,r){let i=t.head,s=n?1:-1;if(i==(n?e.state.doc.length:0))return Ze.cursor(i,t.assoc);let o=t.goalColumn,a,l=e.contentDOM.getBoundingClientRect(),c=e.coordsAtPos(i,t.assoc||-1),u=e.documentTop;if(c)o==null&&(o=c.left-l.left),a=s<0?c.top:c.bottom;else{let h=e.viewState.lineBlockAt(i);o==null&&(o=Math.min(l.right-l.left,e.defaultCharacterWidth*(i-h.from))),a=(s<0?h.top:h.bottom)+u}let d=l.left+o,f=r??e.viewState.heightOracle.textHeight>>1;for(let h=0;;h+=10){let p=a+(f+h)*s,m=ZM(e,{x:d,y:p},!1,s);if(p<l.top||p>l.bottom||(s<0?m<i:m>i)){let g=e.docView.coordsForChar(m),b=!g||p<g.top?-1:1;return Ze.cursor(m,b,void 0,o)}}}function jm(e,t,n){for(;;){let r=0;for(let i of e)i.between(t-1,t+1,(s,o,a)=>{if(t>s&&t<o){let l=r||n||(t-s<o-t?-1:1);t=l<0?s:o,r=l}});if(!r)return t}}function uv(e,t,n){let r=jm(e.state.facet(ST).map(i=>i(e)),n.from,t.head>n.from?-1:1);return r==n.from?n:Ze.cursor(r,r<n.from?1:-1)}class roe{setSelectionOrigin(t){this.lastSelectionOrigin=t,this.lastSelectionTime=Date.now()}constructor(t){this.view=t,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=t.hasFocus,Xe.safari&&t.contentDOM.addEventListener("input",()=>null),Xe.gecko&&voe(t.contentDOM.ownerDocument)}handleEvent(t){!doe(this.view,t)||this.ignoreDuringComposition(t)||t.type=="keydown"&&this.keydown(t)||this.runHandlers(t.type,t)}runHandlers(t,n){let r=this.handlers[t];if(r){for(let i of r.observers)i(this.view,n);for(let i of r.handlers){if(n.defaultPrevented)break;if(i(this.view,n)){n.preventDefault();break}}}}ensureHandlers(t){let n=ioe(t),r=this.handlers,i=this.view.contentDOM;for(let s in n)if(s!="scroll"){let o=!n[s].handlers.length,a=r[s];a&&o!=!a.handlers.length&&(i.removeEventListener(s,this.handleEvent),a=null),a||i.addEventListener(s,this.handleEvent,{passive:o})}for(let s in r)s!="scroll"&&!n[s]&&i.removeEventListener(s,this.handleEvent);this.handlers=n}keydown(t){if(this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),t.keyCode==9&&Date.now()<this.lastEscPress+2e3)return!0;if(t.keyCode!=27&&t$.indexOf(t.keyCode)<0&&(this.view.inputState.lastEscPress=0),Xe.android&&Xe.chrome&&!t.synthetic&&(t.keyCode==13||t.keyCode==8))return this.view.observer.delayAndroidKey(t.key,t.keyCode),!0;let n;return Xe.ios&&!t.synthetic&&!t.altKey&&!t.metaKey&&((n=e$.find(r=>r.keyCode==t.keyCode))&&!t.ctrlKey||soe.indexOf(t.key)>-1&&t.ctrlKey&&!t.shiftKey)?(this.pendingIOSKey=n||t,setTimeout(()=>this.flushIOSKey(),250),!0):(t.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(){let t=this.pendingIOSKey;return t?(this.pendingIOSKey=void 0,Zc(this.view.contentDOM,t.key,t.keyCode)):!1}ignoreDuringComposition(t){return/^key/.test(t.type)?this.composing>0?!0:Xe.safari&&!Xe.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(t){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=t}update(t){this.mouseSelection&&this.mouseSelection.update(t),this.draggedContent&&t.docChanged&&(this.draggedContent=this.draggedContent.map(t.changes)),t.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function pC(e,t){return(n,r)=>{try{return t.call(e,r,n)}catch(i){so(n.state,i)}}}function ioe(e){let t=Object.create(null);function n(r){return t[r]||(t[r]={observers:[],handlers:[]})}for(let r of e){let i=r.spec;if(i&&i.domEventHandlers)for(let s in i.domEventHandlers){let o=i.domEventHandlers[s];o&&n(s).handlers.push(pC(r.value,o))}if(i&&i.domEventObservers)for(let s in i.domEventObservers){let o=i.domEventObservers[s];o&&n(s).observers.push(pC(r.value,o))}}for(let r in rs)n(r).handlers.push(rs[r]);for(let r in is)n(r).observers.push(is[r]);return t}const e$=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],soe="dthko",t$=[16,17,18,20,91,92,224,225],Qp=6;function Jp(e){return Math.max(0,e)*.7+8}function ooe(e,t){return Math.max(Math.abs(e.clientX-t.clientX),Math.abs(e.clientY-t.clientY))}class aoe{constructor(t,n,r,i){this.view=t,this.startEvent=n,this.style=r,this.mustSelect=i,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=n,this.scrollParent=_se(t.contentDOM),this.atoms=t.state.facet(ST).map(o=>o(t));let s=t.contentDOM.ownerDocument;s.addEventListener("mousemove",this.move=this.move.bind(this)),s.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=n.shiftKey,this.multiple=t.state.facet(Vt.allowMultipleSelections)&&loe(t,n),this.dragging=uoe(t,n)&&s$(n)==1?null:!1}start(t){this.dragging===!1&&this.select(t)}move(t){var n;if(t.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&ooe(this.startEvent,t)<10)return;this.select(this.lastEvent=t);let r=0,i=0,s=((n=this.scrollParent)===null||n===void 0?void 0:n.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},o=XM(this.view);t.clientX-o.left<=s.left+Qp?r=-Jp(s.left-t.clientX):t.clientX+o.right>=s.right-Qp&&(r=Jp(t.clientX-s.right)),t.clientY-o.top<=s.top+Qp?i=-Jp(s.top-t.clientY):t.clientY+o.bottom>=s.bottom-Qp&&(i=Jp(t.clientY-s.bottom)),this.setScrollSpeed(r,i)}up(t){this.dragging==null&&this.select(this.lastEvent),this.dragging||t.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let t=this.view.contentDOM.ownerDocument;t.removeEventListener("mousemove",this.move),t.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(t,n){this.scrollSpeed={x:t,y:n},t||n?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(t){let n=null;for(let r=0;r<t.ranges.length;r++){let i=t.ranges[r],s=null;if(i.empty){let o=jm(this.atoms,i.from,0);o!=i.from&&(s=Ze.cursor(o,-1))}else{let o=jm(this.atoms,i.from,-1),a=jm(this.atoms,i.to,1);(o!=i.from||a!=i.to)&&(s=Ze.range(i.from==i.anchor?o:a,i.from==i.head?o:a))}s&&(n||(n=t.ranges.slice()),n[r]=s)}return n?Ze.create(n,t.mainIndex):t}select(t){let{view:n}=this,r=this.skipAtoms(this.style.get(t,this.extend,this.multiple));(this.mustSelect||!r.eq(n.state.selection,this.dragging===!1))&&this.view.dispatch({selection:r,userEvent:"select.pointer"}),this.mustSelect=!1}update(t){this.style.update(t)&&setTimeout(()=>this.select(this.lastEvent),20)}}function loe(e,t){let n=e.state.facet(BM);return n.length?n[0](t):Xe.mac?t.metaKey:t.ctrlKey}function coe(e,t){let n=e.state.facet(UM);return n.length?n[0](t):Xe.mac?!t.altKey:!t.ctrlKey}function uoe(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=Fg(e.root);if(!r||r.rangeCount==0)return!0;let i=r.getRangeAt(0).getClientRects();for(let s=0;s<i.length;s++){let o=i[s];if(o.left<=t.clientX&&o.right>=t.clientX&&o.top<=t.clientY&&o.bottom>=t.clientY)return!0}return!1}function doe(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target,r;n!=e.contentDOM;n=n.parentNode)if(!n||n.nodeType==11||(r=on.get(n))&&r.ignoreEvent(t))return!1;return!0}const rs=Object.create(null),is=Object.create(null),n$=Xe.ie&&Xe.ie_version<15||Xe.ios&&Xe.webkit_version<604;function foe(e){let t=e.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout(()=>{e.focus(),n.remove(),r$(e,n.value)},50)}function r$(e,t){let{state:n}=e,r,i=1,s=n.toText(t),o=s.lines==n.selection.ranges.length;if(IE!=null&&n.selection.ranges.every(a=>a.empty)&&IE==s.toString()){let a=-1;r=n.changeByRange(l=>{let c=n.doc.lineAt(l.from);if(c.from==a)return{range:l};a=c.from;let u=n.toText((o?s.line(i++).text:t)+n.lineBreak);return{changes:{from:c.from,insert:u},range:Ze.cursor(l.from+u.length)}})}else o?r=n.changeByRange(a=>{let l=s.line(i++);return{changes:{from:a.from,to:a.to,insert:l.text},range:Ze.cursor(a.from+l.length)}}):r=n.replaceSelection(s);e.dispatch(r,{userEvent:"input.paste",scrollIntoView:!0})}is.scroll=e=>{e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft};rs.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),t.keyCode==27&&(e.inputState.lastEscPress=Date.now()),!1);is.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")};is.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")};rs.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let r of e.state.facet(HM))if(n=r(e,t),n)break;if(!n&&t.button==0&&(n=moe(e,t)),n){let r=!e.hasFocus;e.inputState.startMouseSelection(new aoe(e,t,n,r)),r&&e.observer.ignore(()=>wM(e.contentDOM));let i=e.inputState.mouseSelection;if(i)return i.start(t),i.dragging===!1}return!1};function mC(e,t,n,r){if(r==1)return Ze.cursor(t,n);if(r==2)return Gse(e.state,t,n);{let i=Mn.find(e.docView,t),s=e.state.doc.lineAt(i?i.posAtEnd:t),o=i?i.posAtStart:s.from,a=i?i.posAtEnd:s.to;return a<e.state.doc.length&&a==s.to&&a++,Ze.range(o,a)}}let i$=(e,t)=>e>=t.top&&e<=t.bottom,gC=(e,t,n)=>i$(t,n)&&e>=n.left&&e<=n.right;function hoe(e,t,n,r){let i=Mn.find(e.docView,t);if(!i)return 1;let s=t-i.posAtStart;if(s==0)return 1;if(s==i.length)return-1;let o=i.coordsAt(s,-1);if(o&&gC(n,r,o))return-1;let a=i.coordsAt(s,1);return a&&gC(n,r,a)?1:o&&i$(r,o)?-1:1}function bC(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:hoe(e,n,t.clientX,t.clientY)}}const poe=Xe.ie&&Xe.ie_version<=11;let yC=null,vC=0,EC=0;function s$(e){if(!poe)return e.detail;let t=yC,n=EC;return yC=e,EC=Date.now(),vC=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(vC+1)%3:1}function moe(e,t){let n=bC(e,t),r=s$(t),i=e.state.selection;return{update(s){s.docChanged&&(n.pos=s.changes.mapPos(n.pos),i=i.map(s.changes))},get(s,o,a){let l=bC(e,s),c,u=mC(e,l.pos,l.bias,r);if(n.pos!=l.pos&&!o){let d=mC(e,n.pos,n.bias,r),f=Math.min(d.from,u.from),h=Math.max(d.to,u.to);u=f<u.from?Ze.range(f,h):Ze.range(h,f)}return o?i.replaceRange(i.main.extend(u.from,u.to)):a&&r==1&&i.ranges.length>1&&(c=goe(i,l.pos))?c:a?i.addRange(u):Ze.create([u])}}}function goe(e,t){for(let n=0;n<e.ranges.length;n++){let{from:r,to:i}=e.ranges[n];if(r<=t&&i>=t)return Ze.create(e.ranges.slice(0,n).concat(e.ranges.slice(n+1)),e.mainIndex==n?0:e.mainIndex-(e.mainIndex>n?1:0))}return null}rs.dragstart=(e,t)=>{let{selection:{main:n}}=e.state;if(t.target.draggable){let i=e.docView.nearest(t.target);if(i&&i.isWidget){let s=i.posAtStart,o=s+i.length;(s>=n.to||o<=n.from)&&(n=Ze.range(s,o))}}let{inputState:r}=e;return r.mouseSelection&&(r.mouseSelection.dragging=!0),r.draggedContent=n,t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(n.from,n.to)),t.dataTransfer.effectAllowed="copyMove"),!1};rs.dragend=e=>(e.inputState.draggedContent=null,!1);function _C(e,t,n,r){if(!n)return;let i=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:s}=e.inputState,o=r&&s&&coe(e,t)?{from:s.from,to:s.to}:null,a={from:i,insert:n},l=e.state.changes(o?[o,a]:a);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:o?"move.drop":"input.drop"}),e.inputState.draggedContent=null}rs.drop=(e,t)=>{if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;let n=t.dataTransfer.files;if(n&&n.length){let r=Array(n.length),i=0,s=()=>{++i==n.length&&_C(e,t,r.filter(o=>o!=null).join(e.state.lineBreak),!1)};for(let o=0;o<n.length;o++){let a=new FileReader;a.onerror=s,a.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(a.result)||(r[o]=a.result),s()},a.readAsText(n[o])}return!0}else{let r=t.dataTransfer.getData("Text");if(r)return _C(e,t,r,!0),!0}return!1};rs.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let n=n$?null:t.clipboardData;return n?(r$(e,n.getData("text/plain")||n.getData("text/uri-text")),!0):(foe(e),!1)};function boe(e,t){let n=e.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=t,r.focus(),r.selectionEnd=t.length,r.selectionStart=0,setTimeout(()=>{r.remove(),e.focus()},50)}function yoe(e){let t=[],n=[],r=!1;for(let i of e.selection.ranges)i.empty||(t.push(e.sliceDoc(i.from,i.to)),n.push(i));if(!t.length){let i=-1;for(let{from:s}of e.selection.ranges){let o=e.doc.lineAt(s);o.number>i&&(t.push(o.text),n.push({from:o.from,to:Math.min(e.doc.length,o.to+1)})),i=o.number}r=!0}return{text:t.join(e.lineBreak),ranges:n,linewise:r}}let IE=null;rs.copy=rs.cut=(e,t)=>{let{text:n,ranges:r,linewise:i}=yoe(e.state);if(!n&&!i)return!1;IE=i?n:null,t.type=="cut"&&!e.state.readOnly&&e.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let s=n$?null:t.clipboardData;return s?(s.clearData(),s.setData("text/plain",n),!0):(boe(e,n),!1)};const o$=dc.define();function a$(e,t){let n=[];for(let r of e.facet(qM)){let i=r(e,t);i&&n.push(i)}return n?e.update({effects:n,annotations:o$.of(!0)}):null}function l$(e){setTimeout(()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=a$(e.state,t);n?e.dispatch(n):e.update([])}},10)}is.focus=e=>{e.inputState.lastFocusTime=Date.now(),!e.scrollDOM.scrollTop&&(e.inputState.lastScrollTop||e.inputState.lastScrollLeft)&&(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),l$(e)};is.blur=e=>{e.observer.clearSelectionRange(),l$(e)};is.compositionstart=is.compositionupdate=e=>{e.inputState.compositionFirstChange==null&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0)};is.compositionend=e=>{e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,Xe.chrome&&Xe.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then(()=>e.observer.flush()):setTimeout(()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])},50)};is.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()};rs.beforeinput=(e,t)=>{var n;let r;if(Xe.chrome&&Xe.android&&(r=e$.find(i=>i.inputType==t.inputType))&&(e.observer.delayAndroidKey(r.key,r.keyCode),r.key=="Backspace"||r.key=="Delete")){let i=((n=window.visualViewport)===null||n===void 0?void 0:n.height)||0;setTimeout(()=>{var s;(((s=window.visualViewport)===null||s===void 0?void 0:s.height)||0)>i+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())},100)}return!1};const wC=new Set;function voe(e){wC.has(e)||(wC.add(e),e.addEventListener("copy",()=>{}),e.addEventListener("cut",()=>{}))}const TC=["pre-wrap","normal","pre-line","break-spaces"];class Eoe{constructor(t){this.lineWrapping=t,this.doc=zt.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(t,n){let r=this.doc.lineAt(n).number-this.doc.lineAt(t).number+1;return this.lineWrapping&&(r+=Math.max(0,Math.ceil((n-t-r*this.lineLength*.5)/this.lineLength))),this.lineHeight*r}heightForLine(t){return this.lineWrapping?(1+Math.max(0,Math.ceil((t-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(t){return this.doc=t,this}mustRefreshForWrapping(t){return TC.indexOf(t)>-1!=this.lineWrapping}mustRefreshForHeights(t){let n=!1;for(let r=0;r<t.length;r++){let i=t[r];i<0?r++:this.heightSamples[Math.floor(i*10)]||(n=!0,this.heightSamples[Math.floor(i*10)]=!0)}return n}refresh(t,n,r,i,s,o){let a=TC.indexOf(t)>-1,l=Math.round(n)!=Math.round(this.lineHeight)||this.lineWrapping!=a;if(this.lineWrapping=a,this.lineHeight=n,this.charWidth=r,this.textHeight=i,this.lineLength=s,l){this.heightSamples={};for(let c=0;c<o.length;c++){let u=o[c];u<0?c++:this.heightSamples[Math.floor(u*10)]=!0}}return l}}class _oe{constructor(t,n){this.from=t,this.heights=n,this.index=0}get more(){return this.index<this.heights.length}}class Es{constructor(t,n,r,i,s){this.from=t,this.length=n,this.top=r,this.height=i,this._content=s}get type(){return typeof this._content=="number"?Qi.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof Oa?this._content.widget:null}get widgetLineBreaks(){return typeof this._content=="number"?this._content:0}join(t){let n=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(t._content)?t._content:[t]);return new Es(this.from,this.length+t.length,this.top,this.height+t.height,n)}}var rn=function(e){return e[e.ByPos=0]="ByPos",e[e.ByHeight=1]="ByHeight",e[e.ByPosNoHeight=2]="ByPosNoHeight",e}(rn||(rn={}));const Vm=.001;class Pr{constructor(t,n,r=2){this.length=t,this.height=n,this.flags=r}get outdated(){return(this.flags&2)>0}set outdated(t){this.flags=(t?2:0)|this.flags&-3}setHeight(t,n){this.height!=n&&(Math.abs(this.height-n)>Vm&&(t.heightChanged=!0),this.height=n)}replace(t,n,r){return Pr.of(r)}decomposeLeft(t,n){n.push(this)}decomposeRight(t,n){n.push(this)}applyChanges(t,n,r,i){let s=this,o=r.doc;for(let a=i.length-1;a>=0;a--){let{fromA:l,toA:c,fromB:u,toB:d}=i[a],f=s.lineAt(l,rn.ByPosNoHeight,r.setDoc(n),0,0),h=f.to>=c?f:s.lineAt(c,rn.ByPosNoHeight,r,0,0);for(d+=h.to-c,c=h.to;a>0&&f.from<=i[a-1].toA;)l=i[a-1].fromA,u=i[a-1].fromB,a--,l<f.from&&(f=s.lineAt(l,rn.ByPosNoHeight,r,0,0));u+=f.from-l,l=f.from;let p=kT.build(r.setDoc(o),t,u,d);s=s.replace(l,c,p)}return s.updateHeight(r,0)}static empty(){return new ei(0,0)}static of(t){if(t.length==1)return t[0];let n=0,r=t.length,i=0,s=0;for(;;)if(n==r)if(i>s*2){let a=t[n-1];a.break?t.splice(--n,1,a.left,null,a.right):t.splice(--n,1,a.left,a.right),r+=1+a.break,i-=a.size}else if(s>i*2){let a=t[r];a.break?t.splice(r,1,a.left,null,a.right):t.splice(r,1,a.left,a.right),r+=2+a.break,s-=a.size}else break;else if(i<s){let a=t[n++];a&&(i+=a.size)}else{let a=t[--r];a&&(s+=a.size)}let o=0;return t[n-1]==null?(o=1,n--):t[n]==null&&(o=1,r++),new woe(Pr.of(t.slice(0,n)),o,Pr.of(t.slice(r)))}}Pr.prototype.size=1;class c$ extends Pr{constructor(t,n,r){super(t,n),this.deco=r}blockAt(t,n,r,i){return new Es(i,this.length,r,this.height,this.deco||0)}lineAt(t,n,r,i,s){return this.blockAt(0,r,i,s)}forEachLine(t,n,r,i,s,o){t<=s+this.length&&n>=s&&o(this.blockAt(0,r,i,s))}updateHeight(t,n=0,r=!1,i){return i&&i.from<=n&&i.more&&this.setHeight(t,i.heights[i.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class ei extends c${constructor(t,n){super(t,n,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(t,n,r,i){return new Es(i,this.length,r,this.height,this.breaks)}replace(t,n,r){let i=r[0];return r.length==1&&(i instanceof ei||i instanceof Zn&&i.flags&4)&&Math.abs(this.length-i.length)<10?(i instanceof Zn?i=new ei(i.length,this.height):i.height=this.height,this.outdated||(i.outdated=!1),i):Pr.of(r)}updateHeight(t,n=0,r=!1,i){return i&&i.from<=n&&i.more?this.setHeight(t,i.heights[i.index++]):(r||this.outdated)&&this.setHeight(t,Math.max(this.widgetHeight,t.heightForLine(this.length-this.collapsed))+this.breaks*t.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Zn extends Pr{constructor(t){super(t,0)}heightMetrics(t,n){let r=t.doc.lineAt(n).number,i=t.doc.lineAt(n+this.length).number,s=i-r+1,o,a=0;if(t.lineWrapping){let l=Math.min(this.height,t.lineHeight*s);o=l/s,this.length>s+1&&(a=(this.height-l)/(this.length-s-1))}else o=this.height/s;return{firstLine:r,lastLine:i,perLine:o,perChar:a}}blockAt(t,n,r,i){let{firstLine:s,lastLine:o,perLine:a,perChar:l}=this.heightMetrics(n,i);if(n.lineWrapping){let c=i+Math.round(Math.max(0,Math.min(1,(t-r)/this.height))*this.length),u=n.doc.lineAt(c),d=a+u.length*l,f=Math.max(r,t-d/2);return new Es(u.from,u.length,f,d,0)}else{let c=Math.max(0,Math.min(o-s,Math.floor((t-r)/a))),{from:u,length:d}=n.doc.line(s+c);return new Es(u,d,r+a*c,a,0)}}lineAt(t,n,r,i,s){if(n==rn.ByHeight)return this.blockAt(t,r,i,s);if(n==rn.ByPosNoHeight){let{from:h,to:p}=r.doc.lineAt(t);return new Es(h,p-h,0,0,0)}let{firstLine:o,perLine:a,perChar:l}=this.heightMetrics(r,s),c=r.doc.lineAt(t),u=a+c.length*l,d=c.number-o,f=i+a*d+l*(c.from-s-d);return new Es(c.from,c.length,Math.max(i,Math.min(f,i+this.height-u)),u,0)}forEachLine(t,n,r,i,s,o){t=Math.max(t,s),n=Math.min(n,s+this.length);let{firstLine:a,perLine:l,perChar:c}=this.heightMetrics(r,s);for(let u=t,d=i;u<=n;){let f=r.doc.lineAt(u);if(u==t){let p=f.number-a;d+=l*p+c*(t-s-p)}let h=l+c*f.length;o(new Es(f.from,f.length,d,h,0)),d+=h,u=f.to+1}}replace(t,n,r){let i=this.length-n;if(i>0){let s=r[r.length-1];s instanceof Zn?r[r.length-1]=new Zn(s.length+i):r.push(null,new Zn(i-1))}if(t>0){let s=r[0];s instanceof Zn?r[0]=new Zn(t+s.length):r.unshift(new Zn(t-1),null)}return Pr.of(r)}decomposeLeft(t,n){n.push(new Zn(t-1),null)}decomposeRight(t,n){n.push(null,new Zn(this.length-t-1))}updateHeight(t,n=0,r=!1,i){let s=n+this.length;if(i&&i.from<=n+this.length&&i.more){let o=[],a=Math.max(n,i.from),l=-1;for(i.from>n&&o.push(new Zn(i.from-n-1).updateHeight(t,n));a<=s&&i.more;){let u=t.doc.lineAt(a).length;o.length&&o.push(null);let d=i.heights[i.index++];l==-1?l=d:Math.abs(d-l)>=Vm&&(l=-2);let f=new ei(u,d);f.outdated=!1,o.push(f),a+=u+1}a<=s&&o.push(null,new Zn(s-a).updateHeight(t,a));let c=Pr.of(o);return(l<0||Math.abs(c.height-this.height)>=Vm||Math.abs(l-this.heightMetrics(t,n).perLine)>=Vm)&&(t.heightChanged=!0),c}else(r||this.outdated)&&(this.setHeight(t,t.heightForGap(n,n+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class woe extends Pr{constructor(t,n,r){super(t.length+n+r.length,t.height+r.height,n|(t.outdated||r.outdated?2:0)),this.left=t,this.right=r,this.size=t.size+r.size}get break(){return this.flags&1}blockAt(t,n,r,i){let s=r+this.left.height;return t<s?this.left.blockAt(t,n,r,i):this.right.blockAt(t,n,s,i+this.left.length+this.break)}lineAt(t,n,r,i,s){let o=i+this.left.height,a=s+this.left.length+this.break,l=n==rn.ByHeight?t<o:t<a,c=l?this.left.lineAt(t,n,r,i,s):this.right.lineAt(t,n,r,o,a);if(this.break||(l?c.to<a:c.from>a))return c;let u=n==rn.ByPosNoHeight?rn.ByPosNoHeight:rn.ByPos;return l?c.join(this.right.lineAt(a,u,r,o,a)):this.left.lineAt(a,u,r,i,s).join(c)}forEachLine(t,n,r,i,s,o){let a=i+this.left.height,l=s+this.left.length+this.break;if(this.break)t<l&&this.left.forEachLine(t,n,r,i,s,o),n>=l&&this.right.forEachLine(t,n,r,a,l,o);else{let c=this.lineAt(l,rn.ByPos,r,i,s);t<c.from&&this.left.forEachLine(t,c.from-1,r,i,s,o),c.to>=t&&c.from<=n&&o(c),n>c.to&&this.right.forEachLine(c.to+1,n,r,a,l,o)}}replace(t,n,r){let i=this.left.length+this.break;if(n<i)return this.balanced(this.left.replace(t,n,r),this.right);if(t>this.left.length)return this.balanced(this.left,this.right.replace(t-i,n-i,r));let s=[];t>0&&this.decomposeLeft(t,s);let o=s.length;for(let a of r)s.push(a);if(t>0&&SC(s,o-1),n<this.length){let a=s.length;this.decomposeRight(n,s),SC(s,a)}return Pr.of(s)}decomposeLeft(t,n){let r=this.left.length;if(t<=r)return this.left.decomposeLeft(t,n);n.push(this.left),this.break&&(r++,t>=r&&n.push(null)),t>r&&this.right.decomposeLeft(t-r,n)}decomposeRight(t,n){let r=this.left.length,i=r+this.break;if(t>=i)return this.right.decomposeRight(t-i,n);t<r&&this.left.decomposeRight(t,n),this.break&&t<i&&n.push(null),n.push(this.right)}balanced(t,n){return t.size>2*n.size||n.size>2*t.size?Pr.of(this.break?[t,null,n]:[t,n]):(this.left=t,this.right=n,this.height=t.height+n.height,this.outdated=t.outdated||n.outdated,this.size=t.size+n.size,this.length=t.length+this.break+n.length,this)}updateHeight(t,n=0,r=!1,i){let{left:s,right:o}=this,a=n+s.length+this.break,l=null;return i&&i.from<=n+s.length&&i.more?l=s=s.updateHeight(t,n,r,i):s.updateHeight(t,n,r),i&&i.from<=a+o.length&&i.more?l=o=o.updateHeight(t,a,r,i):o.updateHeight(t,a,r),l?this.balanced(s,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function SC(e,t){let n,r;e[t]==null&&(n=e[t-1])instanceof Zn&&(r=e[t+1])instanceof Zn&&e.splice(t-1,3,new Zn(n.length+1+r.length))}const Toe=5;class kT{constructor(t,n){this.pos=t,this.oracle=n,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=t}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(t,n){if(this.lineStart>-1){let r=Math.min(n,this.lineEnd),i=this.nodes[this.nodes.length-1];i instanceof ei?i.length+=r-this.pos:(r>this.pos||!this.isCovered)&&this.nodes.push(new ei(r-this.pos,-1)),this.writtenTo=r,n>r&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=n}point(t,n,r){if(t<n||r.heightRelevant){let i=r.widget?r.widget.estimatedHeight:0,s=r.widget?r.widget.lineBreaks:0;i<0&&(i=this.oracle.lineHeight);let o=n-t;r.block?this.addBlock(new c$(o,i,r)):(o||s||i>=Toe)&&this.addLineDeco(i,s,o)}else n>t&&this.span(t,n);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:t,to:n}=this.oracle.doc.lineAt(this.pos);this.lineStart=t,this.lineEnd=n,this.writtenTo<t&&((this.writtenTo<t-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,t-1)),this.nodes.push(null)),this.pos>t&&this.nodes.push(new ei(this.pos-t,-1)),this.writtenTo=this.pos}blankContent(t,n){let r=new Zn(n-t);return this.oracle.doc.lineAt(t).to==n&&(r.flags|=4),r}ensureLine(){this.enterLine();let t=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(t instanceof ei)return t;let n=new ei(0,-1);return this.nodes.push(n),n}addBlock(t){this.enterLine();let n=t.deco;n&&n.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(t),this.writtenTo=this.pos=this.pos+t.length,n&&n.endSide>0&&(this.covering=t)}addLineDeco(t,n,r){let i=this.ensureLine();i.length+=r,i.collapsed+=r,i.widgetHeight=Math.max(i.widgetHeight,t),i.breaks+=n,this.writtenTo=this.pos=this.pos+r}finish(t){let n=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(n instanceof ei)&&!this.isCovered?this.nodes.push(new ei(0,-1)):(this.writtenTo<this.pos||n==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let r=t;for(let i of this.nodes)i instanceof ei&&i.updateHeight(this.oracle,r),r+=i?i.length:1;return this.nodes}static build(t,n,r,i){let s=new kT(r,t);return qt.spans(n,r,i,s,0),s.finish(r)}}function Soe(e,t,n){let r=new koe;return qt.compare(e,t,n,r,0),r.changes}class koe{constructor(){this.changes=[]}compareRange(){}comparePoint(t,n,r,i){(t<n||r&&r.heightRelevant||i&&i.heightRelevant)&&AE(t,n,this.changes,5)}}function Aoe(e,t){let n=e.getBoundingClientRect(),r=e.ownerDocument,i=r.defaultView||window,s=Math.max(0,n.left),o=Math.min(i.innerWidth,n.right),a=Math.max(0,n.top),l=Math.min(i.innerHeight,n.bottom);for(let c=e.parentNode;c&&c!=r.body;)if(c.nodeType==1){let u=c,d=window.getComputedStyle(u);if((u.scrollHeight>u.clientHeight||u.scrollWidth>u.clientWidth)&&d.overflow!="visible"){let f=u.getBoundingClientRect();s=Math.max(s,f.left),o=Math.min(o,f.right),a=Math.max(a,f.top),l=c==e.parentNode?f.bottom:Math.min(l,f.bottom)}c=d.position=="absolute"||d.position=="fixed"?u.offsetParent:u.parentNode}else if(c.nodeType==11)c=c.host;else break;return{left:s-n.left,right:Math.max(s,o)-n.left,top:a-(n.top+t),bottom:Math.max(a,l)-(n.top+t)}}function xoe(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class dv{constructor(t,n,r){this.from=t,this.to=n,this.size=r}static same(t,n){if(t.length!=n.length)return!1;for(let r=0;r<t.length;r++){let i=t[r],s=n[r];if(i.from!=s.from||i.to!=s.to||i.size!=s.size)return!1}return!0}draw(t,n){return yn.replace({widget:new Noe(this.size*(n?t.scaleY:t.scaleX),n)}).range(this.from,this.to)}}class Noe extends Wu{constructor(t,n){super(),this.size=t,this.vertical=n}eq(t){return t.size==this.size&&t.vertical==this.vertical}toDOM(){let t=document.createElement("div");return this.vertical?t.style.height=this.size+"px":(t.style.width=this.size+"px",t.style.height="2px",t.style.display="inline-block"),t}get estimatedHeight(){return this.vertical?this.size:-1}}class kC{constructor(t){this.state=t,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!0,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=AC,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=exports.ct.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let n=t.facet(TT).some(r=>typeof r!="function"&&r.class=="cm-lineWrapping");this.heightOracle=new Eoe(n),this.stateDeco=t.facet(sh).filter(r=>typeof r!="function"),this.heightMap=Pr.empty().applyChanges(this.stateDeco,zt.empty,this.heightOracle.setDoc(t.doc),[new Ni(0,0,0,t.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=yn.set(this.lineGaps.map(r=>r.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let t=[this.viewport],{main:n}=this.state.selection;for(let r=0;r<=1;r++){let i=r?n.head:n.anchor;if(!t.some(({from:s,to:o})=>i>=s&&i<=o)){let{from:s,to:o}=this.lineBlockAt(i);t.push(new Zp(s,o))}}this.viewports=t.sort((r,i)=>r.from-i.from),this.scaler=this.heightMap.height<=7e6?AC:new Doe(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,t=>{this.viewportLines.push(this.scaler.scale==1?t:Qd(t,this.scaler))})}update(t,n=null){this.state=t.state;let r=this.stateDeco;this.stateDeco=this.state.facet(sh).filter(u=>typeof u!="function");let i=t.changedRanges,s=Ni.extendWithRanges(i,Soe(r,this.stateDeco,t?t.changes:qn.empty(this.state.doc.length))),o=this.heightMap.height,a=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),s),this.heightMap.height!=o&&(t.flags|=2),a?(this.scrollAnchorPos=t.changes.mapPos(a.from,-1),this.scrollAnchorHeight=a.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let l=s.length?this.mapViewport(this.viewport,t.changes):this.viewport;(n&&(n.range.head<l.from||n.range.head>l.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,n));let c=!t.changes.empty||t.flags&2||l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,this.updateForViewport(),c&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,t.changes))),t.flags|=this.computeVisibleRanges(),n&&(this.scrollTarget=n),!this.mustEnforceCursorAssoc&&t.selectionSet&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&!t.state.facet(Bse)&&(this.mustEnforceCursorAssoc=!0)}measure(t){let n=t.contentDOM,r=window.getComputedStyle(n),i=this.heightOracle,s=r.whiteSpace;this.defaultTextDirection=r.direction=="rtl"?exports.ct.RTL:exports.ct.LTR;let o=this.heightOracle.mustRefreshForWrapping(s),a=n.getBoundingClientRect(),l=o||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;let c=0,u=0;if(a.width&&a.height){let{scaleX:E,scaleY:T}=_M(n,a);(this.scaleX!=E||this.scaleY!=T)&&(this.scaleX=E,this.scaleY=T,c|=8,o=l=!0)}let d=(parseInt(r.paddingTop)||0)*this.scaleY,f=(parseInt(r.paddingBottom)||0)*this.scaleY;(this.paddingTop!=d||this.paddingBottom!=f)&&(this.paddingTop=d,this.paddingBottom=f,c|=10),this.editorWidth!=t.scrollDOM.clientWidth&&(i.lineWrapping&&(l=!0),this.editorWidth=t.scrollDOM.clientWidth,c|=8);let h=t.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=h&&(this.scrollAnchorHeight=-1,this.scrollTop=h),this.scrolledToBottom=SM(t.scrollDOM);let p=(this.printing?xoe:Aoe)(n,this.paddingTop),m=p.top-this.pixelViewport.top,g=p.bottom-this.pixelViewport.bottom;this.pixelViewport=p;let b=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(b!=this.inView&&(this.inView=b,b&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;let v=a.width;if((this.contentDOMWidth!=v||this.editorHeight!=t.scrollDOM.clientHeight)&&(this.contentDOMWidth=a.width,this.editorHeight=t.scrollDOM.clientHeight,c|=8),l){let E=t.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(E)&&(o=!0),o||i.lineWrapping&&Math.abs(v-this.contentDOMWidth)>i.charWidth){let{lineHeight:T,charWidth:w,textHeight:S}=t.docView.measureTextSize();o=T>0&&i.refresh(s,T,w,S,v/w,E),o&&(t.docView.minWidth=0,c|=8)}m>0&&g>0?u=Math.max(m,g):m<0&&g<0&&(u=Math.min(m,g)),i.heightChanged=!1;for(let T of this.viewports){let w=T.from==this.viewport.from?E:t.docView.measureVisibleLineHeights(T);this.heightMap=(o?Pr.empty().applyChanges(this.stateDeco,zt.empty,this.heightOracle,[new Ni(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(i,0,o,new _oe(T.from,w))}i.heightChanged&&(c|=2)}let y=!this.viewportIsAppropriate(this.viewport,u)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return y&&(this.viewport=this.getViewport(u,this.scrollTarget)),this.updateForViewport(),(c&2||y)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps,t)),c|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,t.docView.enforceCursorAssoc()),c}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(t,n){let r=.5-Math.max(-.5,Math.min(.5,t/1e3/2)),i=this.heightMap,s=this.heightOracle,{visibleTop:o,visibleBottom:a}=this,l=new Zp(i.lineAt(o-r*1e3,rn.ByHeight,s,0,0).from,i.lineAt(a+(1-r)*1e3,rn.ByHeight,s,0,0).to);if(n){let{head:c}=n.range;if(c<l.from||c>l.to){let u=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),d=i.lineAt(c,rn.ByPos,s,0,0),f;n.y=="center"?f=(d.top+d.bottom)/2-u/2:n.y=="start"||n.y=="nearest"&&c<l.from?f=d.top:f=d.bottom-u,l=new Zp(i.lineAt(f-1e3/2,rn.ByHeight,s,0,0).from,i.lineAt(f+u+1e3/2,rn.ByHeight,s,0,0).to)}}return l}mapViewport(t,n){let r=n.mapPos(t.from,-1),i=n.mapPos(t.to,1);return new Zp(this.heightMap.lineAt(r,rn.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(i,rn.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:t,to:n},r=0){if(!this.inView)return!0;let{top:i}=this.heightMap.lineAt(t,rn.ByPos,this.heightOracle,0,0),{bottom:s}=this.heightMap.lineAt(n,rn.ByPos,this.heightOracle,0,0),{visibleTop:o,visibleBottom:a}=this;return(t==0||i<=o-Math.max(10,Math.min(-r,250)))&&(n==this.state.doc.length||s>=a+Math.max(10,Math.min(r,250)))&&i>o-2*1e3&&s<a+2*1e3}mapLineGaps(t,n){if(!t.length||n.empty)return t;let r=[];for(let i of t)n.touchesRange(i.from,i.to)||r.push(new dv(n.mapPos(i.from),n.mapPos(i.to),i.size));return r}ensureLineGaps(t,n){let r=this.heightOracle.lineWrapping,i=r?1e4:2e3,s=i>>1,o=i<<1;if(this.defaultTextDirection!=exports.ct.LTR&&!r)return[];let a=[],l=(c,u,d,f)=>{if(u-c<s)return;let h=this.state.selection.main,p=[h.from];h.empty||p.push(h.to);for(let g of p)if(g>c&&g<u){l(c,g-10,d,f),l(g+10,u,d,f);return}let m=Ooe(t,g=>g.from>=d.from&&g.to<=d.to&&Math.abs(g.from-c)<s&&Math.abs(g.to-u)<s&&!p.some(b=>g.from<b&&g.to>b));if(!m){if(u<d.to&&n&&r&&n.visibleRanges.some(g=>g.from<=u&&g.to>=u)){let g=n.moveToLineBoundary(Ze.cursor(u),!1,!0).head;g>c&&(u=g)}m=new dv(c,u,this.gapSize(d,c,u,f))}a.push(m)};for(let c of this.viewportLines){if(c.length<o)continue;let u=Coe(c.from,c.to,this.stateDeco);if(u.total<o)continue;let d=this.scrollTarget?this.scrollTarget.range.head:null,f,h;if(r){let p=i/this.heightOracle.lineLength*this.heightOracle.lineHeight,m,g;if(d!=null){let b=tm(u,d),v=((this.visibleBottom-this.visibleTop)/2+p)/c.height;m=b-v,g=b+v}else m=(this.visibleTop-c.top-p)/c.height,g=(this.visibleBottom-c.top+p)/c.height;f=em(u,m),h=em(u,g)}else{let p=u.total*this.heightOracle.charWidth,m=i*this.heightOracle.charWidth,g,b;if(d!=null){let v=tm(u,d),y=((this.pixelViewport.right-this.pixelViewport.left)/2+m)/p;g=v-y,b=v+y}else g=(this.pixelViewport.left-m)/p,b=(this.pixelViewport.right+m)/p;f=em(u,g),h=em(u,b)}f>c.from&&l(c.from,f,c,u),h<c.to&&l(h,c.to,c,u)}return a}gapSize(t,n,r,i){let s=tm(i,r)-tm(i,n);return this.heightOracle.lineWrapping?t.height*s:i.total*this.heightOracle.charWidth*s}updateLineGaps(t){dv.same(t,this.lineGaps)||(this.lineGaps=t,this.lineGapDeco=yn.set(t.map(n=>n.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let n=[];qt.spans(t,this.viewport.from,this.viewport.to,{span(i,s){n.push({from:i,to:s})},point(){}},20);let r=n.length!=this.visibleRanges.length||this.visibleRanges.some((i,s)=>i.from!=n[s].from||i.to!=n[s].to);return this.visibleRanges=n,r?4:0}lineBlockAt(t){return t>=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find(n=>n.from<=t&&n.to>=t)||Qd(this.heightMap.lineAt(t,rn.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(t){return Qd(this.heightMap.lineAt(this.scaler.fromDOM(t),rn.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(t){let n=this.lineBlockAtHeight(t+8);return n.from>=this.viewport.from||this.viewportLines[0].top-t>200?n:this.viewportLines[0]}elementAtHeight(t){return Qd(this.heightMap.blockAt(this.scaler.fromDOM(t),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Zp{constructor(t,n){this.from=t,this.to=n}}function Coe(e,t,n){let r=[],i=e,s=0;return qt.spans(n,e,t,{span(){},point(o,a){o>i&&(r.push({from:i,to:o}),s+=o-i),i=a}},20),i<t&&(r.push({from:i,to:t}),s+=t-i),{total:s,ranges:r}}function em({total:e,ranges:t},n){if(n<=0)return t[0].from;if(n>=1)return t[t.length-1].to;let r=Math.floor(e*n);for(let i=0;;i++){let{from:s,to:o}=t[i],a=o-s;if(r<=a)return s+r;r-=a}}function tm(e,t){let n=0;for(let{from:r,to:i}of e.ranges){if(t<=i){n+=t-r;break}n+=i-r}return n/e.total}function Ooe(e,t){for(let n of e)if(t(n))return n}const AC={toDOM(e){return e},fromDOM(e){return e},scale:1};class Doe{constructor(t,n,r){let i=0,s=0,o=0;this.viewports=r.map(({from:a,to:l})=>{let c=n.lineAt(a,rn.ByPos,t,0,0).top,u=n.lineAt(l,rn.ByPos,t,0,0).bottom;return i+=u-c,{from:a,to:l,top:c,bottom:u,domTop:0,domBottom:0}}),this.scale=(7e6-i)/(n.height-i);for(let a of this.viewports)a.domTop=o+(a.top-s)*this.scale,o=a.domBottom=a.domTop+(a.bottom-a.top),s=a.bottom}toDOM(t){for(let n=0,r=0,i=0;;n++){let s=n<this.viewports.length?this.viewports[n]:null;if(!s||t<s.top)return i+(t-r)*this.scale;if(t<=s.bottom)return s.domTop+(t-s.top);r=s.bottom,i=s.domBottom}}fromDOM(t){for(let n=0,r=0,i=0;;n++){let s=n<this.viewports.length?this.viewports[n]:null;if(!s||t<s.domTop)return r+(t-i)/this.scale;if(t<=s.domBottom)return s.top+(t-s.domTop);r=s.bottom,i=s.domBottom}}}function Qd(e,t){if(t.scale==1)return e;let n=t.toDOM(e.top),r=t.toDOM(e.bottom);return new Es(e.from,e.length,n,r-n,Array.isArray(e._content)?e._content.map(i=>Qd(i,t)):e._content)}const nm=st.define({combine:e=>e.join(" ")}),RE=st.define({combine:e=>e.indexOf(!0)>-1}),PE=Na.newName(),u$=Na.newName(),d$=Na.newName(),f$={"&light":"."+u$,"&dark":"."+d$};function LE(e,t,n){return new Na(t,{finish(r){return/&/.test(r)?r.replace(/&\w*/,i=>{if(i=="&")return e;if(!n||!n[i])throw new RangeError(`Unsupported selector: ${i}`);return n[i]}):e+" "+r}})}const Ioe=LE("."+PE,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},f$),Jd="￿";class Roe{constructor(t,n){this.points=t,this.text="",this.lineSeparator=n.facet(Vt.lineSeparator)}append(t){this.text+=t}lineBreak(){this.text+=Jd}readRange(t,n){if(!t)return this;let r=t.parentNode;for(let i=t;;){this.findPointBefore(r,i);let s=this.text.length;this.readNode(i);let o=i.nextSibling;if(o==n)break;let a=on.get(i),l=on.get(o);(a&&l?a.breakAfter:(a?a.breakAfter:xC(i))||xC(o)&&(i.nodeName!="BR"||i.cmIgnore)&&this.text.length>s)&&this.lineBreak(),i=o}return this.findPointBefore(r,n),this}readTextNode(t){let n=t.nodeValue;for(let r of this.points)r.node==t&&(r.pos=this.text.length+Math.min(r.offset,n.length));for(let r=0,i=this.lineSeparator?null:/\r\n?|\n/g;;){let s=-1,o=1,a;if(this.lineSeparator?(s=n.indexOf(this.lineSeparator,r),o=this.lineSeparator.length):(a=i.exec(n))&&(s=a.index,o=a[0].length),this.append(n.slice(r,s<0?n.length:s)),s<0)break;if(this.lineBreak(),o>1)for(let l of this.points)l.node==t&&l.pos>this.text.length&&(l.pos-=o-1);r=s+o}}readNode(t){if(t.cmIgnore)return;let n=on.get(t),r=n&&n.overrideDOMText;if(r!=null){this.findPointInside(t,r.length);for(let i=r.iter();!i.next().done;)i.lineBreak?this.lineBreak():this.append(i.value)}else t.nodeType==3?this.readTextNode(t):t.nodeName=="BR"?t.nextSibling&&this.lineBreak():t.nodeType==1&&this.readRange(t.firstChild,null)}findPointBefore(t,n){for(let r of this.points)r.node==t&&t.childNodes[r.offset]==n&&(r.pos=this.text.length)}findPointInside(t,n){for(let r of this.points)(t.nodeType==3?r.node==t:t.contains(r.node))&&(r.pos=this.text.length+(Poe(t,r.node,r.offset)?n:0))}}function Poe(e,t,n){for(;;){if(!t||n<go(t))return!1;if(t==e)return!0;n=ih(t)+1,t=t.parentNode}}function xC(e){return e.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}class NC{constructor(t,n){this.node=t,this.offset=n,this.pos=-1}}class Loe{constructor(t,n,r,i){this.typeOver=i,this.bounds=null,this.text="";let{impreciseHead:s,impreciseAnchor:o}=t.docView;if(t.state.readOnly&&n>-1)this.newSel=null;else if(n>-1&&(this.bounds=t.docView.domBoundsAround(n,r,0))){let a=s||o?[]:Foe(t),l=new Roe(a,t.state);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=Boe(a,this.bounds.from)}else{let a=t.observer.selectionRange,l=s&&s.node==a.focusNode&&s.offset==a.focusOffset||!EE(t.contentDOM,a.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(a.focusNode,a.focusOffset),c=o&&o.node==a.anchorNode&&o.offset==a.anchorOffset||!EE(t.contentDOM,a.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(a.anchorNode,a.anchorOffset),u=t.viewport;if((Xe.ios||Xe.chrome)&&t.state.selection.main.empty&&l!=c&&(u.from>0||u.to<t.state.doc.length)){let d=Math.min(l,c),f=Math.max(l,c),h=u.from-d,p=u.to-f;(h==0||h==1||d==0)&&(p==0||p==-1||f==t.state.doc.length)&&(l=0,c=t.state.doc.length)}this.newSel=Ze.single(c,l)}}}function h$(e,t){let n,{newSel:r}=t,i=e.state.selection.main,s=e.inputState.lastKeyTime>Date.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:o,to:a}=t.bounds,l=i.from,c=null;(s===8||Xe.android&&t.text.length<a-o)&&(l=i.to,c="end");let u=$oe(e.state.doc.sliceString(o,a,Jd),t.text,l-o,c);u&&(Xe.chrome&&s==13&&u.toB==u.from+2&&t.text.slice(u.from,u.toB)==Jd+Jd&&u.toB--,n={from:o+u.from,to:o+u.toA,insert:zt.of(t.text.slice(u.from,u.toB).split(Jd))})}else r&&(!e.hasFocus&&e.state.facet(Eb)||r.main.eq(i))&&(r=null);if(!n&&!r)return!1;if(!n&&t.typeOver&&!i.empty&&r&&r.main.empty?n={from:i.from,to:i.to,insert:e.state.doc.slice(i.from,i.to)}:n&&n.from>=i.from&&n.to<=i.to&&(n.from!=i.from||n.to!=i.to)&&i.to-i.from-(n.to-n.from)<=4?n={from:i.from,to:i.to,insert:e.state.doc.slice(i.from,n.from).append(n.insert).append(e.state.doc.slice(n.to,i.to))}:(Xe.mac||Xe.android)&&n&&n.from==n.to&&n.from==i.head-1&&/^\. ?$/.test(n.insert.toString())&&e.contentDOM.getAttribute("autocorrect")=="off"?(r&&n.insert.length==2&&(r=Ze.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:zt.of([" "])}):Xe.chrome&&n&&n.from==n.to&&n.from==i.head&&n.insert.toString()==`
223
223
  `&&e.lineWrapping&&(r&&(r=Ze.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:zt.of([" "])}),n){if(Xe.ios&&e.inputState.flushIOSKey()||Xe.android&&(n.from==i.from&&n.to==i.to&&n.insert.length==1&&n.insert.lines==2&&Zc(e.contentDOM,"Enter",13)||(n.from==i.from-1&&n.to==i.to&&n.insert.length==0||s==8&&n.insert.length<n.to-n.from&&n.to>i.head)&&Zc(e.contentDOM,"Backspace",8)||n.from==i.from&&n.to==i.to+1&&n.insert.length==0&&Zc(e.contentDOM,"Delete",46)))return!0;let o=n.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let a,l=()=>a||(a=Moe(e,n,r));return e.state.facet(VM).some(c=>c(e,n.from,n.to,o,l))||e.dispatch(l()),!0}else if(r&&!r.main.eq(i)){let o=!1,a="select";return e.inputState.lastSelectionTime>Date.now()-50&&(e.inputState.lastSelectionOrigin=="select"&&(o=!0),a=e.inputState.lastSelectionOrigin),e.dispatch({selection:r,scrollIntoView:o,userEvent:a}),!0}else return!1}function Moe(e,t,n){let r,i=e.state,s=i.selection.main;if(t.from>=s.from&&t.to<=s.to&&t.to-t.from>=(s.to-s.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let a=s.from<t.from?i.sliceDoc(s.from,t.from):"",l=s.to>t.to?i.sliceDoc(t.to,s.to):"";r=i.replaceSelection(e.state.toText(a+t.insert.sliceString(0,void 0,e.state.lineBreak)+l))}else{let a=i.changes(t),l=n&&n.main.to<=a.newLength?n.main:void 0;if(i.selection.ranges.length>1&&e.inputState.composing>=0&&t.to<=s.to&&t.to>=s.to-10){let c=e.state.sliceDoc(t.from,t.to),u,d=n&&QM(e,n.main.head);if(d){let p=t.insert.length-(t.to-t.from);u={from:d.from,to:d.to-p}}else u=e.state.doc.lineAt(s.head);let f=s.to-t.to,h=s.to-s.from;r=i.changeByRange(p=>{if(p.from==s.from&&p.to==s.to)return{changes:a,range:l||p.map(a)};let m=p.to-f,g=m-c.length;if(p.to-p.from!=h||e.state.sliceDoc(g,m)!=c||p.to>=u.from&&p.from<=u.to)return{range:p};let b=i.changes({from:g,to:m,insert:t.insert}),v=p.to-s.to;return{changes:b,range:l?Ze.range(Math.max(0,l.anchor+v),Math.max(0,l.head+v)):p.map(b)}})}else r={changes:a,selection:l&&i.selection.replaceRange(l)}}let o="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,o+=".compose",e.inputState.compositionFirstChange&&(o+=".start",e.inputState.compositionFirstChange=!1)),i.update(r,{userEvent:o,scrollIntoView:!0})}function $oe(e,t,n,r){let i=Math.min(e.length,t.length),s=0;for(;s<i&&e.charCodeAt(s)==t.charCodeAt(s);)s++;if(s==i&&e.length==t.length)return null;let o=e.length,a=t.length;for(;o>0&&a>0&&e.charCodeAt(o-1)==t.charCodeAt(a-1);)o--,a--;if(r=="end"){let l=Math.max(0,s-Math.min(o,a));n-=o+l-s}if(o<s&&e.length<t.length){let l=n<=s&&n>=o?s-n:0;s-=l,a=s+(a-o),o=s}else if(a<s){let l=n<=s&&n>=a?s-n:0;s-=l,o=s+(o-a),a=s}return{from:s,toA:o,toB:a}}function Foe(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:s}=e.observer.selectionRange;return n&&(t.push(new NC(n,r)),(i!=n||s!=r)&&t.push(new NC(i,s))),t}function Boe(e,t){if(e.length==0)return null;let n=e[0].pos,r=e.length==2?e[1].pos:n;return n>-1&&r>-1?Ze.single(n+t,r+t):null}const Uoe={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},fv=Xe.ie&&Xe.ie_version<=11;class Hoe{constructor(t){this.view=t,this.active=!1,this.selectionRange=new wse,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=t.contentDOM,this.observer=new MutationObserver(n=>{for(let r of n)this.queue.push(r);(Xe.ie&&Xe.ie_version<=11||Xe.ios&&t.composing)&&n.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),fv&&(this.onCharData=n=>{this.queue.push({target:n.target,type:"characterData",oldValue:n.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var n;((n=this.view.docView)===null||n===void 0?void 0:n.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(t.scrollDOM)),this.addWindowListeners(this.win=t.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(n=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),n.length>0&&n[n.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(n=>{n.length>0&&n[n.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(t){this.view.inputState.runHandlers("scroll",t),this.intersecting&&this.view.measure()}onScroll(t){this.intersecting&&this.flush(!1),this.onScrollChanged(t)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500)}updateGaps(t){if(this.gapIntersection&&(t.length!=this.gaps.length||this.gaps.some((n,r)=>n!=t[r]))){this.gapIntersection.disconnect();for(let n of t)this.gapIntersection.observe(n);this.gaps=t}}onSelectionChange(t){let n=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:r}=this,i=this.selectionRange;if(r.state.facet(Eb)?r.root.activeElement!=this.dom:!Hm(r.dom,i))return;let s=i.anchorNode&&r.docView.nearest(i.anchorNode);if(s&&s.ignoreEvent(t)){n||(this.selectionChanged=!1);return}(Xe.ie&&Xe.ie_version<=11||Xe.android&&Xe.chrome)&&!r.state.selection.main.empty&&i.focusNode&&Sf(i.focusNode,i.focusOffset,i.anchorNode,i.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:t}=this,n=Xe.safari&&t.root.nodeType==11&&yse(this.dom.ownerDocument)==this.dom&&joe(this.view)||Fg(t.root);if(!n||this.selectionRange.eq(n))return!1;let r=Hm(this.dom,n);return r&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime<Date.now()-300&&Sse(this.dom,n)?(this.view.inputState.lastFocusTime=0,t.docView.updateSelection(),!1):(this.selectionRange.setRange(n),r&&(this.selectionChanged=!0),!0)}setSelectionRange(t,n){this.selectionRange.set(t.node,t.offset,n.node,n.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let t=0,n=null;for(let r=this.dom;r;)if(r.nodeType==1)!n&&t<this.scrollTargets.length&&this.scrollTargets[t]==r?t++:n||(n=this.scrollTargets.slice(0,t)),n&&n.push(r),r=r.assignedSlot||r.parentNode;else if(r.nodeType==11)r=r.host;else break;if(t<this.scrollTargets.length&&!n&&(n=this.scrollTargets.slice(0,t)),n){for(let r of this.scrollTargets)r.removeEventListener("scroll",this.onScroll);for(let r of this.scrollTargets=n)r.addEventListener("scroll",this.onScroll)}}ignore(t){if(!this.active)return t();try{return this.stop(),t()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,Uoe),fv&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),fv&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(t,n){var r;if(!this.delayedAndroidKey){let i=()=>{let s=this.delayedAndroidKey;s&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=s.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&s.force&&Zc(this.dom,s.key,s.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(i)}(!this.delayedAndroidKey||t=="Enter")&&(this.delayedAndroidKey={key:t,keyCode:n,force:this.lastChange<Date.now()-50||!!(!((r=this.delayedAndroidKey)===null||r===void 0)&&r.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}processRecords(){let t=this.pendingRecords();t.length&&(this.queue=[]);let n=-1,r=-1,i=!1;for(let s of t){let o=this.readMutation(s);o&&(o.typeOver&&(i=!0),n==-1?{from:n,to:r}=o:(n=Math.min(o.from,n),r=Math.max(o.to,r)))}return{from:n,to:r,typeOver:i}}readChange(){let{from:t,to:n,typeOver:r}=this.processRecords(),i=this.selectionChanged&&Hm(this.dom,this.selectionRange);if(t<0&&!i)return null;t>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let s=new Loe(this.view,t,n,r);return this.view.docView.domChanged={newSel:s.newSel?s.newSel.main:null},s}flush(t=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;t&&this.readSelectionRange();let n=this.readChange();if(!n)return this.view.requestMeasure(),!1;let r=this.view.state,i=h$(this.view,n);return this.view.state==r&&this.view.update([]),i}readMutation(t){let n=this.view.docView.nearest(t.target);if(!n||n.ignoreMutation(t))return null;if(n.markDirty(t.type=="attributes"),t.type=="attributes"&&(n.flags|=4),t.type=="childList"){let r=CC(n,t.previousSibling||t.target.previousSibling,-1),i=CC(n,t.nextSibling||t.target.nextSibling,1);return{from:r?n.posAfter(r):n.posAtStart,to:i?n.posBefore(i):n.posAtEnd,typeOver:!1}}else return t.type=="characterData"?{from:n.posAtStart,to:n.posAtEnd,typeOver:t.target.nodeValue==t.oldValue}:null}setWindow(t){t!=this.win&&(this.removeWindowListeners(this.win),this.win=t,this.addWindowListeners(this.win))}addWindowListeners(t){t.addEventListener("resize",this.onResize),t.addEventListener("beforeprint",this.onPrint),t.addEventListener("scroll",this.onScroll),t.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(t){t.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onResize),t.removeEventListener("beforeprint",this.onPrint),t.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var t,n,r;this.stop(),(t=this.intersection)===null||t===void 0||t.disconnect(),(n=this.gapIntersection)===null||n===void 0||n.disconnect(),(r=this.resizeScroll)===null||r===void 0||r.disconnect();for(let i of this.scrollTargets)i.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function CC(e,t,n){for(;t;){let r=on.get(t);if(r&&r.parent==e)return r;let i=t.parentNode;t=i!=e.dom?i:n>0?t.nextSibling:t.previousSibling}return null}function joe(e){let t=null;function n(l){l.preventDefault(),l.stopImmediatePropagation(),t=l.getTargetRanges()[0]}if(e.contentDOM.addEventListener("beforeinput",n,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",n,!0),!t)return null;let r=t.startContainer,i=t.startOffset,s=t.endContainer,o=t.endOffset,a=e.docView.domAtPos(e.state.selection.main.anchor);return Sf(a.node,a.offset,s,o)&&([r,i,s,o]=[s,o,r,i]),{anchorNode:r,anchorOffset:i,focusNode:s,focusOffset:o}}class Nt{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(t={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),t.parent&&t.parent.appendChild(this.dom);let{dispatch:n}=t;this.dispatchTransactions=t.dispatchTransactions||n&&(r=>r.forEach(i=>n(i,this)))||(r=>this.update(r)),this.dispatch=this.dispatch.bind(this),this._root=t.root||Tse(t.parent)||document,this.viewState=new kC(t.state||Vt.create(t)),t.scrollTo&&t.scrollTo.is(Xp)&&(this.viewState.scrollTarget=t.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(Yd).map(r=>new lv(r));for(let r of this.plugins)r.update(this);this.observer=new Hoe(this),this.inputState=new roe(this),this.inputState.ensureHandlers(this.plugins),this.docView=new aC(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...t){let n=t.length==1&&t[0]instanceof ir?t:t.length==1&&Array.isArray(t[0])?t[0]:[this.state.update(...t)];this.dispatchTransactions(n,this)}update(t){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let n=!1,r=!1,i,s=this.state;for(let f of t){if(f.startState!=s)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");s=f.state}if(this.destroyed){this.viewState.state=s;return}let o=this.hasFocus,a=0,l=null;t.some(f=>f.annotation(o$))?(this.inputState.notifiedFocused=o,a=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,l=a$(s,o),l||(a=1));let c=this.observer.delayedAndroidKey,u=null;if(c?(this.observer.clearDelayedAndroidKey(),u=this.observer.readChange(),(u&&!this.state.doc.eq(s.doc)||!this.state.selection.eq(s.selection))&&(u=null)):this.observer.clear(),s.facet(Vt.phrases)!=this.state.facet(Vt.phrases))return this.setState(s);i=Bg.create(this,s,t),i.flags|=a;let d=this.viewState.scrollTarget;try{this.updateState=2;for(let f of t){if(d&&(d=d.map(f.changes)),f.scrollIntoView){let{main:h}=f.state.selection;d=new eu(h.empty?h:Ze.cursor(h.head,h.head>h.anchor?-1:1))}for(let h of f.effects)h.is(Xp)&&(d=h.value.clip(this.state))}this.viewState.update(i,d),this.bidiCache=Ug.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),n=this.docView.update(i),this.state.facet(Xd)!=this.styleModules&&this.mountStyles(),r=this.updateAttrs(),this.showAnnouncements(t),this.docView.updateSelection(n,t.some(f=>f.isUserEvent("select.pointer")))}finally{this.updateState=0}if(i.startState.facet(nm)!=i.state.facet(nm)&&(this.viewState.mustMeasureContent=!0),(n||r||d||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!i.empty)for(let f of this.state.facet(OE))try{f(i)}catch(h){so(this.state,h,"update listener")}(l||u)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),u&&!h$(this,u)&&c.force&&Zc(this.contentDOM,c.key,c.keyCode)})}setState(t){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=t;return}this.updateState=2;let n=this.hasFocus;try{for(let r of this.plugins)r.destroy(this);this.viewState=new kC(t),this.plugins=t.facet(Yd).map(r=>new lv(r)),this.pluginMap.clear();for(let r of this.plugins)r.update(this);this.docView.destroy(),this.docView=new aC(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}n&&this.focus(),this.requestMeasure()}updatePlugins(t){let n=t.startState.facet(Yd),r=t.state.facet(Yd);if(n!=r){let i=[];for(let s of r){let o=n.indexOf(s);if(o<0)i.push(new lv(s));else{let a=this.plugins[o];a.mustUpdate=t,i.push(a)}}for(let s of this.plugins)s.mustUpdate!=t&&s.destroy(this);this.plugins=i,this.pluginMap.clear()}else for(let i of this.plugins)i.mustUpdate=t;for(let i=0;i<this.plugins.length;i++)this.plugins[i].update(this);n!=r&&this.inputState.ensureHandlers(this.plugins)}measure(t=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,t&&this.observer.forceFlush();let n=null,r=this.scrollDOM,i=r.scrollTop*this.scaleY,{scrollAnchorPos:s,scrollAnchorHeight:o}=this.viewState;Math.abs(i-this.viewState.scrollTop)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let a=0;;a++){if(o<0)if(SM(r))s=-1,o=this.viewState.heightMap.height;else{let h=this.viewState.scrollAnchorAt(i);s=h.from,o=h.top}this.updateState=1;let l=this.viewState.measure(this);if(!l&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(a>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let c=[];l&4||([this.measureRequests,c]=[c,this.measureRequests]);let u=c.map(h=>{try{return h.read(this)}catch(p){return so(this.state,p),OC}}),d=Bg.create(this,this.state,[]),f=!1;d.flags|=l,n?n.flags|=l:n=d,this.updateState=2,d.empty||(this.updatePlugins(d),this.inputState.update(d),this.updateAttrs(),f=this.docView.update(d));for(let h=0;h<c.length;h++)if(u[h]!=OC)try{let p=c[h];p.write&&p.write(u[h],this)}catch(p){so(this.state,p)}if(f&&this.docView.updateSelection(!0),!d.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,o=-1;continue}else{let h=(s<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(s).top)-o;if(h>1||h<-1){i=i+h,r.scrollTop=i/this.scaleY,o=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(n&&!n.empty)for(let a of this.state.facet(OE))a(n)}get themeClasses(){return PE+" "+(this.state.facet(RE)?d$:u$)+" "+this.state.facet(nm)}updateAttrs(){let t=DC(this,KM,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),n={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Eb)?"true":"false",class:"cm-content",style:`${Xe.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(n["aria-readonly"]="true"),DC(this,TT,n);let r=this.observer.ignore(()=>{let i=kE(this.contentDOM,this.contentAttrs,n),s=kE(this.dom,this.editorAttrs,t);return i||s});return this.editorAttrs=t,this.contentAttrs=n,r}showAnnouncements(t){let n=!0;for(let r of t)for(let i of r.effects)if(i.is(Nt.announce)){n&&(this.announceDOM.textContent=""),n=!1;let s=this.announceDOM.appendChild(document.createElement("div"));s.textContent=i.value}}mountStyles(){this.styleModules=this.state.facet(Xd);let t=this.state.facet(Nt.cspNonce);Na.mount(this.root,this.styleModules.concat(Ioe).reverse(),t?{nonce:t}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(t){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),t){if(this.measureRequests.indexOf(t)>-1)return;if(t.key!=null){for(let n=0;n<this.measureRequests.length;n++)if(this.measureRequests[n].key===t.key){this.measureRequests[n]=t;return}}this.measureRequests.push(t)}}plugin(t){let n=this.pluginMap.get(t);return(n===void 0||n&&n.spec!=t)&&this.pluginMap.set(t,n=this.plugins.find(r=>r.spec==t)||null),n&&n.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(t){return this.readMeasured(),this.viewState.elementAtHeight(t)}lineBlockAtHeight(t){return this.readMeasured(),this.viewState.lineBlockAtHeight(t)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(t){return this.viewState.lineBlockAt(t)}get contentHeight(){return this.viewState.contentHeight}moveByChar(t,n,r){return uv(this,t,hC(this,t,n,r))}moveByGroup(t,n){return uv(this,t,hC(this,t,n,r=>toe(this,t.head,r)))}visualLineSide(t,n){let r=this.bidiSpans(t),i=this.textDirectionAt(t.from),s=r[n?r.length-1:0];return Ze.cursor(s.side(n,i)+t.from,s.forward(!n,i)?1:-1)}moveToLineBoundary(t,n,r=!0){return eoe(this,t,n,r)}moveVertically(t,n,r){return uv(this,t,noe(this,t,n,r))}domAtPos(t){return this.docView.domAtPos(t)}posAtDOM(t,n=0){return this.docView.posFromDOM(t,n)}posAtCoords(t,n=!0){return this.readMeasured(),ZM(this,t,n)}coordsAtPos(t,n=1){this.readMeasured();let r=this.docView.coordsAt(t,n);if(!r||r.left==r.right)return r;let i=this.state.doc.lineAt(t),s=this.bidiSpans(i),o=s[ua.find(s,t-i.from,-1,n)];return vT(r,o.dir==exports.ct.LTR==n>0)}coordsForChar(t){return this.readMeasured(),this.docView.coordsForChar(t)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(t){return!this.state.facet(zM)||t<this.viewport.from||t>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>Voe)return $M(t.length);let n=this.textDirectionAt(t.from),r;for(let s of this.bidiCache)if(s.from==t.from&&s.dir==n&&(s.fresh||MM(s.isolates,r=oC(this,t))))return s.order;r||(r=oC(this,t));let i=Mse(t.text,n,r);return this.bidiCache.push(new Ug(t.from,t.to,n,r,!0,i)),i}get hasFocus(){var t;return(this.dom.ownerDocument.hasFocus()||Xe.safari&&((t=this.inputState)===null||t===void 0?void 0:t.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{wM(this.contentDOM),this.docView.updateSelection()})}setRoot(t){this._root!=t&&(this._root=t,this.observer.setWindow((t.nodeType==9?t:t.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let t of this.plugins)t.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(t,n={}){return Xp.of(new eu(typeof t=="number"?Ze.cursor(t):t,n.y,n.x,n.yMargin,n.xMargin))}scrollSnapshot(){let{scrollTop:t,scrollLeft:n}=this.scrollDOM,r=this.viewState.scrollAnchorAt(t);return Xp.of(new eu(Ze.cursor(r.from),"start","start",r.top-t,n,!0))}static domEventHandlers(t){return Ii.define(()=>({}),{eventHandlers:t})}static domEventObservers(t){return Ii.define(()=>({}),{eventObservers:t})}static theme(t,n){let r=Na.newName(),i=[nm.of(r),Xd.of(LE(`.${r}`,t))];return n&&n.dark&&i.push(RE.of(!0)),i}static baseTheme(t){return gb.lowest(Xd.of(LE("."+PE,t,f$)))}static findFromDOM(t){var n;let r=t.querySelector(".cm-content"),i=r&&on.get(r)||on.get(t);return((n=i==null?void 0:i.rootView)===null||n===void 0?void 0:n.view)||null}}Nt.styleModule=Xd;Nt.inputHandler=VM;Nt.focusChangeEffect=qM;Nt.perLineTextDirection=zM;Nt.exceptionSink=jM;Nt.updateListener=OE;Nt.editable=Eb;Nt.mouseSelectionStyle=HM;Nt.dragMovesSelection=UM;Nt.clickAddsSelectionRange=BM;Nt.decorations=sh;Nt.outerDecorations=WM;Nt.atomicRanges=ST;Nt.bidiIsolatedRanges=GM;Nt.scrollMargins=YM;Nt.darkTheme=RE;Nt.cspNonce=st.define({combine:e=>e.length?e[0]:""});Nt.contentAttributes=TT;Nt.editorAttributes=KM;Nt.lineWrapping=Nt.contentAttributes.of({class:"cm-lineWrapping"});Nt.announce=Fn.define();const Voe=4096,OC={};class Ug{constructor(t,n,r,i,s,o){this.from=t,this.to=n,this.dir=r,this.isolates=i,this.fresh=s,this.order=o}static update(t,n){if(n.empty&&!t.some(s=>s.fresh))return t;let r=[],i=t.length?t[t.length-1].dir:exports.ct.LTR;for(let s=Math.max(0,t.length-10);s<t.length;s++){let o=t[s];o.dir==i&&!n.touchesRange(o.from,o.to)&&r.push(new Ug(n.mapPos(o.from,1),n.mapPos(o.to,-1),o.dir,o.isolates,!1,o.order))}return r}}function DC(e,t,n){for(let r=e.state.facet(t),i=r.length-1;i>=0;i--){let s=r[i],o=typeof s=="function"?s(e):s;o&&SE(o,n)}return n}const qoe=Xe.mac?"mac":Xe.windows?"win":Xe.linux?"linux":"key";function zoe(e,t){const n=e.split(/-(?!$)/);let r=n[n.length-1];r=="Space"&&(r=" ");let i,s,o,a;for(let l=0;l<n.length-1;++l){const c=n[l];if(/^(cmd|meta|m)$/i.test(c))a=!0;else if(/^a(lt)?$/i.test(c))i=!0;else if(/^(c|ctrl|control)$/i.test(c))s=!0;else if(/^s(hift)?$/i.test(c))o=!0;else if(/^mod$/i.test(c))t=="mac"?a=!0:s=!0;else throw new Error("Unrecognized modifier name: "+c)}return i&&(r="Alt-"+r),s&&(r="Ctrl-"+r),a&&(r="Meta-"+r),o&&(r="Shift-"+r),r}function rm(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n!==!1&&t.shiftKey&&(e="Shift-"+e),e}const Koe=gb.default(Nt.domEventHandlers({keydown(e,t){return Xoe(Woe(t.state),e,t,"editor")}})),p$=st.define({enables:Koe}),IC=new WeakMap;function Woe(e){let t=e.facet(p$),n=IC.get(t);return n||IC.set(t,n=Yoe(t.reduce((r,i)=>r.concat(i),[]))),n}let oa=null;const Goe=4e3;function Yoe(e,t=qoe){let n=Object.create(null),r=Object.create(null),i=(o,a)=>{let l=r[o];if(l==null)r[o]=a;else if(l!=a)throw new Error("Key binding "+o+" is used both as a regular binding and as a multi-stroke prefix")},s=(o,a,l,c,u)=>{var d,f;let h=n[o]||(n[o]=Object.create(null)),p=a.split(/ (?!$)/).map(b=>zoe(b,t));for(let b=1;b<p.length;b++){let v=p.slice(0,b).join(" ");i(v,!0),h[v]||(h[v]={preventDefault:!0,stopPropagation:!1,run:[y=>{let E=oa={view:y,prefix:v,scope:o};return setTimeout(()=>{oa==E&&(oa=null)},Goe),!0}]})}let m=p.join(" ");i(m,!1);let g=h[m]||(h[m]={preventDefault:!1,stopPropagation:!1,run:((f=(d=h._any)===null||d===void 0?void 0:d.run)===null||f===void 0?void 0:f.slice())||[]});l&&g.run.push(l),c&&(g.preventDefault=!0),u&&(g.stopPropagation=!0)};for(let o of e){let a=o.scope?o.scope.split(" "):["editor"];if(o.any)for(let c of a){let u=n[c]||(n[c]=Object.create(null));u._any||(u._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let d in u)u[d].run.push(o.any)}let l=o[t]||o.key;if(l)for(let c of a)s(c,l,o.run,o.preventDefault,o.stopPropagation),o.shift&&s(c,"Shift-"+l,o.shift,o.preventDefault,o.stopPropagation)}return n}function Xoe(e,t,n,r){let i=bse(t),s=Qc(i,0),o=Lg(s)==i.length&&i!=" ",a="",l=!1,c=!1,u=!1;oa&&oa.view==n&&oa.scope==r&&(a=oa.prefix+" ",t$.indexOf(t.keyCode)<0&&(c=!0,oa=null));let d=new Set,f=g=>{if(g){for(let b of g.run)if(!d.has(b)&&(d.add(b),b(n,t)))return g.stopPropagation&&(u=!0),!0;g.preventDefault&&(g.stopPropagation&&(u=!0),c=!0)}return!1},h=e[r],p,m;return h&&(f(h[a+rm(i,t,!o)])?l=!0:o&&(t.altKey||t.metaKey||t.ctrlKey)&&!(Xe.windows&&t.ctrlKey&&t.altKey)&&(p=Ca[t.keyCode])&&p!=i?(f(h[a+rm(p,t,!0)])||t.shiftKey&&(m=nh[t.keyCode])!=i&&m!=p&&f(h[a+rm(m,t,!1)]))&&(l=!0):o&&t.shiftKey&&f(h[a+rm(i,t,!0)])&&(l=!0),!l&&f(h._any)&&(l=!0)),c&&(l=!0),l&&u&&t.stopPropagation(),l}function RC(e,t,n,r,i){t.lastIndex=0;for(let s=e.iterRange(n,r),o=n,a;!s.next().done;o+=s.value.length)if(!s.lineBreak)for(;a=t.exec(s.value);)i(o+a.index,a)}function Qoe(e,t){let n=e.visibleRanges;if(n.length==1&&n[0].from==e.viewport.from&&n[0].to==e.viewport.to)return n;let r=[];for(let{from:i,to:s}of n)i=Math.max(e.state.doc.lineAt(i).from,i-t),s=Math.min(e.state.doc.lineAt(s).to,s+t),r.length&&r[r.length-1].to>=i?r[r.length-1].to=s:r.push({from:i,to:s});return r}class m${constructor(t){const{regexp:n,decoration:r,decorate:i,boundary:s,maxLength:o=1e3}=t;if(!n.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=n,i)this.addMatch=(a,l,c,u)=>i(u,c,c+a[0].length,a,l);else if(typeof r=="function")this.addMatch=(a,l,c,u)=>{let d=r(a,l,c);d&&u(c,c+a[0].length,d)};else if(r)this.addMatch=(a,l,c,u)=>u(c,c+a[0].length,r);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=s,this.maxLength=o}createDeco(t){let n=new bu,r=n.add.bind(n);for(let{from:i,to:s}of Qoe(t,this.maxLength))RC(t.state.doc,this.regexp,i,s,(o,a)=>this.addMatch(a,t,o,r));return n.finish()}updateDeco(t,n){let r=1e9,i=-1;return t.docChanged&&t.changes.iterChanges((s,o,a,l)=>{l>t.view.viewport.from&&a<t.view.viewport.to&&(r=Math.min(a,r),i=Math.max(l,i))}),t.viewportChanged||i-r>1e3?this.createDeco(t.view):i>-1?this.updateRange(t.view,n.map(t.changes),r,i):n}updateRange(t,n,r,i){for(let s of t.visibleRanges){let o=Math.max(s.from,r),a=Math.min(s.to,i);if(a>o){let l=t.state.doc.lineAt(o),c=l.to<a?t.state.doc.lineAt(a):l,u=Math.max(s.from,l.from),d=Math.min(s.to,c.to);if(this.boundary){for(;o>l.from;o--)if(this.boundary.test(l.text[o-1-l.from])){u=o;break}for(;a<c.to;a++)if(this.boundary.test(c.text[a-c.from])){d=a;break}}let f=[],h,p=(m,g,b)=>f.push(b.range(m,g));if(l==c)for(this.regexp.lastIndex=u-l.from;(h=this.regexp.exec(l.text))&&h.index<d-l.from;)this.addMatch(h,t,h.index+l.from,p);else RC(t.state.doc,this.regexp,u,d,(m,g)=>this.addMatch(g,t,m,p));n=n.update({filterFrom:u,filterTo:d,filter:(m,g)=>m<u||g>d,add:f})}}return n}}const ME=/x/.unicode!=null?"gu":"g",Joe=new RegExp(`[\0-\b
224
- --Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,ME),Zoe={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let hv=null;function eae(){var e;if(hv==null&&typeof document<"u"&&document.body){let t=document.body.style;hv=((e=t.tabSize)!==null&&e!==void 0?e:t.MozTabSize)!=null}return hv||!1}const qm=st.define({combine(e){let t=yb(e,{render:null,specialChars:Joe,addSpecialChars:null});return(t.replaceTabs=!eae())&&(t.specialChars=new RegExp(" |"+t.specialChars.source,ME)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,ME)),t}});function tae(e={}){return[qm.of(e),nae()]}let PC=null;function nae(){return PC||(PC=Ii.fromClass(class{constructor(e){this.view=e,this.decorations=yn.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(qm)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new m$({regexp:e.specialChars,decoration:(t,n,r)=>{let{doc:i}=n.state,s=Qc(t[0],0);if(s==9){let o=i.lineAt(r),a=n.state.tabSize,l=yT(o.text,a,r-o.from);return yn.replace({widget:new oae((a-l%a)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[s]||(this.decorationCache[s]=yn.replace({widget:new sae(e,s)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(qm);e.startState.facet(qm)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))}const rae="•";function iae(e){return e>=32?rae:e==10?"␤":String.fromCharCode(9216+e)}class sae extends Wu{constructor(t,n){super(),this.options=t,this.code=n}eq(t){return t.code==this.code}toDOM(t){let n=iae(this.code),r=t.state.phrase("Control character")+" "+(Zoe[this.code]||"0x"+this.code.toString(16)),i=this.options.render&&this.options.render(this.code,r,n);if(i)return i;let s=document.createElement("span");return s.textContent=n,s.title=r,s.setAttribute("aria-label",r),s.className="cm-specialChar",s}ignoreEvent(){return!1}}class oae extends Wu{constructor(t){super(),this.width=t}eq(t){return t.width==this.width}toDOM(){let t=document.createElement("span");return t.textContent=" ",t.className="cm-tab",t.style.width=this.width+"px",t}ignoreEvent(){return!1}}const Ld="-10000px";class aae{constructor(t,n,r,i){this.facet=n,this.createTooltipView=r,this.removeTooltipView=i,this.input=t.state.facet(n),this.tooltips=this.input.filter(o=>o);let s=null;this.tooltipViews=this.tooltips.map(o=>s=r(o,s))}update(t,n){var r;let i=t.state.facet(this.facet),s=i.filter(l=>l);if(i===this.input){for(let l of this.tooltipViews)l.update&&l.update(t);return!1}let o=[],a=n?[]:null;for(let l=0;l<s.length;l++){let c=s[l],u=-1;if(c){for(let d=0;d<this.tooltips.length;d++){let f=this.tooltips[d];f&&f.create==c.create&&(u=d)}if(u<0)o[l]=this.createTooltipView(c,l?o[l-1]:null),a&&(a[l]=!!c.above);else{let d=o[l]=this.tooltipViews[u];a&&(a[l]=n[u]),d.update&&d.update(t)}}}for(let l of this.tooltipViews)o.indexOf(l)<0&&(this.removeTooltipView(l),(r=l.destroy)===null||r===void 0||r.call(l));return n&&(a.forEach((l,c)=>n[c]=l),n.length=a.length),this.input=i,this.tooltips=s,this.tooltipViews=o,!0}}function lae(e){let{win:t}=e;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}const pv=st.define({combine:e=>{var t,n,r;return{position:Xe.ios?"absolute":((t=e.find(i=>i.position))===null||t===void 0?void 0:t.position)||"fixed",parent:((n=e.find(i=>i.parent))===null||n===void 0?void 0:n.parent)||null,tooltipSpace:((r=e.find(i=>i.tooltipSpace))===null||r===void 0?void 0:r.tooltipSpace)||lae}}}),LC=new WeakMap,g$=Ii.fromClass(class{constructor(e){this.view=e,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=e.state.facet(pv);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new aae(e,b$,(n,r)=>this.createTooltip(n,r),n=>{this.resizeObserver&&this.resizeObserver.unobserve(n.dom),n.dom.remove()}),this.above=this.manager.tooltips.map(n=>!!n.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(n=>{Date.now()>this.lastTransaction-50&&n.length>0&&n[n.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e,this.above);t&&this.observeIntersection();let n=t||e.geometryChanged,r=e.state.facet(pv);if(r.position!=this.position&&!this.madeAbsolute){this.position=r.position;for(let i of this.manager.tooltipViews)i.dom.style.position=this.position;n=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();for(let i of this.manager.tooltipViews)this.container.appendChild(i.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(e,t){let n=e.create(this.view),r=t?t.dom:null;if(n.dom.classList.add("cm-tooltip"),e.arrow&&!n.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let i=document.createElement("div");i.className="cm-tooltip-arrow",n.dom.insertBefore(i,r)}return n.dom.style.position=this.position,n.dom.style.top=Ld,n.dom.style.left="0px",this.container.insertBefore(n.dom,r),n.mount&&n.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(n.dom),n}destroy(){var e,t,n;this.view.win.removeEventListener("resize",this.measureSoon);for(let r of this.manager.tooltipViews)r.dom.remove(),(e=r.destroy)===null||e===void 0||e.call(r);this.parent&&this.container.remove(),(t=this.resizeObserver)===null||t===void 0||t.disconnect(),(n=this.intersectionObserver)===null||n===void 0||n.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=this.view.dom.getBoundingClientRect(),t=1,n=1,r=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:i}=this.manager.tooltipViews[0];if(Xe.gecko)r=i.offsetParent!=this.container.ownerDocument.body;else if(i.style.top==Ld&&i.style.left=="0px"){let s=i.getBoundingClientRect();r=Math.abs(s.top+1e4)>1||Math.abs(s.left)>1}}if(r||this.position=="absolute")if(this.parent){let i=this.parent.getBoundingClientRect();i.width&&i.height&&(t=i.width/this.parent.offsetWidth,n=i.height/this.parent.offsetHeight)}else({scaleX:t,scaleY:n}=this.view.viewState);return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map((i,s)=>{let o=this.manager.tooltipViews[s];return o.getCoords?o.getCoords(i.pos):this.view.coordsAtPos(i.pos)}),size:this.manager.tooltipViews.map(({dom:i})=>i.getBoundingClientRect()),space:this.view.state.facet(pv).tooltipSpace(this.view),scaleX:t,scaleY:n,makeAbsolute:r}}writeMeasure(e){var t;if(e.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let a of this.manager.tooltipViews)a.dom.style.position="absolute"}let{editor:n,space:r,scaleX:i,scaleY:s}=e,o=[];for(let a=0;a<this.manager.tooltips.length;a++){let l=this.manager.tooltips[a],c=this.manager.tooltipViews[a],{dom:u}=c,d=e.pos[a],f=e.size[a];if(!d||d.bottom<=Math.max(n.top,r.top)||d.top>=Math.min(n.bottom,r.bottom)||d.right<Math.max(n.left,r.left)-.1||d.left>Math.min(n.right,r.right)+.1){u.style.top=Ld;continue}let h=l.arrow?c.dom.querySelector(".cm-tooltip-arrow"):null,p=h?7:0,m=f.right-f.left,g=(t=LC.get(c))!==null&&t!==void 0?t:f.bottom-f.top,b=c.offset||uae,v=this.view.textDirection==exports.ct.LTR,y=f.width>r.right-r.left?v?r.left:r.right-f.width:v?Math.min(d.left-(h?14:0)+b.x,r.right-m):Math.max(r.left,d.left-m+(h?14:0)-b.x),E=this.above[a];!l.strictSide&&(E?d.top-(f.bottom-f.top)-b.y<r.top:d.bottom+(f.bottom-f.top)+b.y>r.bottom)&&E==r.bottom-d.bottom>d.top-r.top&&(E=this.above[a]=!E);let T=(E?d.top-r.top:r.bottom-d.bottom)-p;if(T<g&&c.resize!==!1){if(T<this.view.defaultLineHeight){u.style.top=Ld;continue}LC.set(c,g),u.style.height=(g=T)/s+"px"}else u.style.height&&(u.style.height="");let w=E?d.top-g-p-b.y:d.bottom+p+b.y,S=y+m;if(c.overlap!==!0)for(let k of o)k.left<S&&k.right>y&&k.top<w+g&&k.bottom>w&&(w=E?k.top-g-2-p:k.bottom+p+2);if(this.position=="absolute"?(u.style.top=(w-e.parent.top)/s+"px",u.style.left=(y-e.parent.left)/i+"px"):(u.style.top=w/s+"px",u.style.left=y/i+"px"),h){let k=d.left+(v?b.x:-b.x)-(y+14-7);h.style.left=k/i+"px"}c.overlap!==!0&&o.push({left:y,top:w,right:S,bottom:w+g}),u.classList.toggle("cm-tooltip-above",E),u.classList.toggle("cm-tooltip-below",!E),c.positioned&&c.positioned(e.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let e of this.manager.tooltipViews)e.dom.style.top=Ld}},{eventObservers:{scroll(){this.maybeMeasure()}}}),cae=Nt.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),uae={x:0,y:0},b$=st.define({enables:[g$,cae]});function dae(e,t){let n=e.plugin(g$);if(!n)return null;let r=n.manager.tooltips.indexOf(t);return r<0?null:n.manager.tooltipViews[r]}class Kl extends Vl{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}}Kl.prototype.elementClass="";Kl.prototype.toDOM=void 0;Kl.prototype.mapMode=exports.zt.TrackBefore;Kl.prototype.startSide=Kl.prototype.endSide=-1;Kl.prototype.point=!0;const mv=st.define(),zm=st.define(),$E=st.define({combine:e=>e.some(t=>t)});function fae(e){let t=[hae];return e&&e.fixed===!1&&t.push($E.of(!0)),t}const hae=Ii.fromClass(class{constructor(e){this.view=e,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=e.state.facet(zm).map(t=>new $C(e,t));for(let t of this.gutters)this.dom.appendChild(t.dom);this.fixed=!e.state.facet($E),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}update(e){if(this.updateGutters(e)){let t=this.prevViewport,n=e.view.viewport,r=Math.min(t.to,n.to)-Math.max(t.from,n.from);this.syncGutters(r<(n.to-n.from)*.8)}e.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet($E)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&this.dom.remove();let n=qt.iter(this.view.state.facet(mv),this.view.viewport.from),r=[],i=this.gutters.map(s=>new pae(s,this.view.viewport,-this.view.documentPadding.top));for(let s of this.view.viewportLineBlocks)if(r.length&&(r=[]),Array.isArray(s.type)){let o=!0;for(let a of s.type)if(a.type==Qi.Text&&o){FE(n,r,a.from);for(let l of i)l.line(this.view,a,r);o=!1}else if(a.widget)for(let l of i)l.widget(this.view,a)}else if(s.type==Qi.Text){FE(n,r,s.from);for(let o of i)o.line(this.view,s,r)}else if(s.widget)for(let o of i)o.widget(this.view,s);for(let s of i)s.finish();e&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(e){let t=e.startState.facet(zm),n=e.state.facet(zm),r=e.docChanged||e.heightChanged||e.viewportChanged||!qt.eq(e.startState.facet(mv),e.state.facet(mv),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let i of this.gutters)i.update(e)&&(r=!0);else{r=!0;let i=[];for(let s of n){let o=t.indexOf(s);o<0?i.push(new $C(this.view,s)):(this.gutters[o].update(e),i.push(this.gutters[o]))}for(let s of this.gutters)s.dom.remove(),i.indexOf(s)<0&&s.destroy();for(let s of i)this.dom.appendChild(s.dom);this.gutters=i}return r}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>Nt.scrollMargins.of(t=>{let n=t.plugin(e);return!n||n.gutters.length==0||!n.fixed?null:t.textDirection==exports.ct.LTR?{left:n.dom.offsetWidth*t.scaleX}:{right:n.dom.offsetWidth*t.scaleX}})});function MC(e){return Array.isArray(e)?e:[e]}function FE(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class pae{constructor(t,n,r){this.gutter=t,this.height=r,this.i=0,this.cursor=qt.iter(t.markers,n.from)}addElement(t,n,r){let{gutter:i}=this,s=(n.top-this.height)/t.scaleY,o=n.height/t.scaleY;if(this.i==i.elements.length){let a=new y$(t,o,s,r);i.elements.push(a),i.dom.appendChild(a.dom)}else i.elements[this.i].update(t,o,s,r);this.height=n.bottom,this.i++}line(t,n,r){let i=[];FE(this.cursor,i,n.from),r.length&&(i=i.concat(r));let s=this.gutter.config.lineMarker(t,n,i);s&&i.unshift(s);let o=this.gutter;i.length==0&&!o.config.renderEmptyElements||this.addElement(t,n,i)}widget(t,n){let r=this.gutter.config.widgetMarker(t,n.widget,n);r&&this.addElement(t,n,[r])}finish(){let t=this.gutter;for(;t.elements.length>this.i;){let n=t.elements.pop();t.dom.removeChild(n.dom),n.destroy()}}}class $C{constructor(t,n){this.view=t,this.config=n,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let r in n.domEventHandlers)this.dom.addEventListener(r,i=>{let s=i.target,o;if(s!=this.dom&&this.dom.contains(s)){for(;s.parentNode!=this.dom;)s=s.parentNode;let l=s.getBoundingClientRect();o=(l.top+l.bottom)/2}else o=i.clientY;let a=t.lineBlockAtHeight(o-t.documentTop);n.domEventHandlers[r](t,a,i)&&i.preventDefault()});this.markers=MC(n.markers(t)),n.initialSpacer&&(this.spacer=new y$(t,0,0,[n.initialSpacer(t)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(t){let n=this.markers;if(this.markers=MC(this.config.markers(t.view)),this.spacer&&this.config.updateSpacer){let i=this.config.updateSpacer(this.spacer.markers[0],t);i!=this.spacer.markers[0]&&this.spacer.update(t.view,0,0,[i])}let r=t.view.viewport;return!qt.eq(this.markers,n,r.from,r.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(t):!1)}destroy(){for(let t of this.elements)t.destroy()}}class y${constructor(t,n,r,i){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(t,n,r,i)}update(t,n,r,i){this.height!=n&&(this.height=n,this.dom.style.height=n+"px"),this.above!=r&&(this.dom.style.marginTop=(this.above=r)?r+"px":""),mae(this.markers,i)||this.setMarkers(t,i)}setMarkers(t,n){let r="cm-gutterElement",i=this.dom.firstChild;for(let s=0,o=0;;){let a=o,l=s<n.length?n[s++]:null,c=!1;if(l){let u=l.elementClass;u&&(r+=" "+u);for(let d=o;d<this.markers.length;d++)if(this.markers[d].compare(l)){a=d,c=!0;break}}else a=this.markers.length;for(;o<a;){let u=this.markers[o++];if(u.toDOM){u.destroy(i);let d=i.nextSibling;i.remove(),i=d}}if(!l)break;l.toDOM&&(c?i=i.nextSibling:this.dom.insertBefore(l.toDOM(t),i)),c&&o++}this.dom.className=r,this.markers=n}destroy(){this.setMarkers(null,[])}}function mae(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].compare(t[n]))return!1;return!0}const gae=st.define(),Pc=st.define({combine(e){return yb(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(t,n){let r=Object.assign({},t);for(let i in n){let s=r[i],o=n[i];r[i]=s?(a,l,c)=>s(a,l,c)||o(a,l,c):o}return r}})}});class gv extends Kl{constructor(t){super(),this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}}function bv(e,t){return e.state.facet(Pc).formatNumber(t,e.state)}const bae=zm.compute([Pc],e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(t){return t.state.facet(gae)},lineMarker(t,n,r){return r.some(i=>i.toDOM)?null:new gv(bv(t,t.state.doc.lineAt(n.from).number))},widgetMarker:()=>null,lineMarkerChange:t=>t.startState.facet(Pc)!=t.state.facet(Pc),initialSpacer(t){return new gv(bv(t,FC(t.state.doc.lines)))},updateSpacer(t,n){let r=bv(n.view,FC(n.view.state.doc.lines));return r==t.number?t:new gv(r)},domEventHandlers:e.facet(Pc).domEventHandlers}));function yae(e={}){return[Pc.of(e),fae(),bae]}function FC(e){let t=9;for(;t<e;)t=t*10+9;return t}const v$=1024;let vae=0;class Ti{constructor(t,n){this.from=t,this.to=n}}class Mt{constructor(t={}){this.id=vae++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(t){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof t!="function"&&(t=Lr.match(t)),n=>{let r=t(n);return r===void 0?null:[this,r]}}}Mt.closedBy=new Mt({deserialize:e=>e.split(" ")});Mt.openedBy=new Mt({deserialize:e=>e.split(" ")});Mt.group=new Mt({deserialize:e=>e.split(" ")});Mt.isolate=new Mt({deserialize:e=>{if(e&&e!="rtl"&&e!="ltr"&&e!="auto")throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}});Mt.contextHash=new Mt({perNode:!0});Mt.lookAhead=new Mt({perNode:!0});Mt.mounted=new Mt({perNode:!0});class oh{constructor(t,n,r){this.tree=t,this.overlay=n,this.parser=r}static get(t){return t&&t.props&&t.props[Mt.mounted.id]}}const Eae=Object.create(null);class Lr{constructor(t,n,r,i=0){this.name=t,this.props=n,this.id=r,this.flags=i}static define(t){let n=t.props&&t.props.length?Object.create(null):Eae,r=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),i=new Lr(t.name||"",n,t.id,r);if(t.props){for(let s of t.props)if(Array.isArray(s)||(s=s(i)),s){if(s[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[s[0].id]=s[1]}}return i}prop(t){return this.props[t.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(t){if(typeof t=="string"){if(this.name==t)return!0;let n=this.prop(Mt.group);return n?n.indexOf(t)>-1:!1}return this.id==t}static match(t){let n=Object.create(null);for(let r in t)for(let i of r.split(" "))n[i]=t[r];return r=>{for(let i=r.prop(Mt.group),s=-1;s<(i?i.length:0);s++){let o=n[s<0?r.name:i[s]];if(o)return o}}}}Lr.none=new Lr("",Object.create(null),0,8);class AT{constructor(t){this.types=t;for(let n=0;n<t.length;n++)if(t[n].id!=n)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...t){let n=[];for(let r of this.types){let i=null;for(let s of t){let o=s(r);o&&(i||(i=Object.assign({},r.props)),i[o[0].id]=o[1])}n.push(i?new Lr(r.name,i,r.id,r.flags):r)}return new AT(n)}}const im=new WeakMap,BC=new WeakMap;exports.Xe=void 0;(function(e){e[e.ExcludeBuffers=1]="ExcludeBuffers",e[e.IncludeAnonymous=2]="IncludeAnonymous",e[e.IgnoreMounts=4]="IgnoreMounts",e[e.IgnoreOverlays=8]="IgnoreOverlays"})(exports.Xe||(exports.Xe={}));class On{constructor(t,n,r,i,s){if(this.type=t,this.children=n,this.positions=r,this.length=i,this.props=null,s&&s.length){this.props=Object.create(null);for(let[o,a]of s)this.props[typeof o=="number"?o:o.id]=a}}toString(){let t=oh.get(this);if(t&&!t.overlay)return t.tree.toString();let n="";for(let r of this.children){let i=r.toString();i&&(n&&(n+=","),n+=i)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(n.length?"("+n+")":""):n}cursor(t=0){return new Hg(this.topNode,t)}cursorAt(t,n=0,r=0){let i=im.get(this)||this.topNode,s=new Hg(i);return s.moveTo(t,n),im.set(this,s._tree),s}get topNode(){return new vr(this,0,0,null)}resolve(t,n=0){let r=ah(im.get(this)||this.topNode,t,n,!1);return im.set(this,r),r}resolveInner(t,n=0){let r=ah(BC.get(this)||this.topNode,t,n,!0);return BC.set(this,r),r}resolveStack(t,n=0){return Tae(this,t,n)}iterate(t){let{enter:n,leave:r,from:i=0,to:s=this.length}=t,o=t.mode||0,a=(o&exports.Xe.IncludeAnonymous)>0;for(let l=this.cursor(o|exports.Xe.IncludeAnonymous);;){let c=!1;if(l.from<=s&&l.to>=i&&(!a&&l.type.isAnonymous||n(l)!==!1)){if(l.firstChild())continue;c=!0}for(;c&&r&&(a||!l.type.isAnonymous)&&r(l),!l.nextSibling();){if(!l.parent())return;c=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let n in this.props)t.push([+n,this.props[n]]);return t}balance(t={}){return this.children.length<=8?this:CT(Lr.none,this.children,this.positions,0,this.children.length,0,this.length,(n,r,i)=>new On(this.type,n,r,i,this.propValues),t.makeTree||((n,r,i)=>new On(Lr.none,n,r,i)))}static build(t){return Sae(t)}}On.empty=new On(Lr.none,[],[],0);class xT{constructor(t,n){this.buffer=t,this.index=n}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new xT(this.buffer,this.index)}}class Da{constructor(t,n,r){this.buffer=t,this.length=n,this.set=r}get type(){return Lr.none}toString(){let t=[];for(let n=0;n<this.buffer.length;)t.push(this.childString(n)),n=this.buffer[n+3];return t.join(",")}childString(t){let n=this.buffer[t],r=this.buffer[t+3],i=this.set.types[n],s=i.name;if(/\W/.test(s)&&!i.isError&&(s=JSON.stringify(s)),t+=4,r==t)return s;let o=[];for(;t<r;)o.push(this.childString(t)),t=this.buffer[t+3];return s+"("+o.join(",")+")"}findChild(t,n,r,i,s){let{buffer:o}=this,a=-1;for(let l=t;l!=n&&!(E$(s,i,o[l+1],o[l+2])&&(a=l,r>0));l=o[l+3]);return a}slice(t,n,r){let i=this.buffer,s=new Uint16Array(n-t),o=0;for(let a=t,l=0;a<n;){s[l++]=i[a++],s[l++]=i[a++]-r;let c=s[l++]=i[a++]-r;s[l++]=i[a++]-t,o=Math.max(o,c)}return new Da(s,o,this.set)}}function E$(e,t,n,r){switch(e){case-2:return n<t;case-1:return r>=t&&n<t;case 0:return n<t&&r>t;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function ah(e,t,n,r){for(var i;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to<t);){let o=!r&&e instanceof vr&&e.index<0?null:e.parent;if(!o)return e;e=o}let s=r?0:exports.Xe.IgnoreOverlays;if(r)for(let o=e,a=o.parent;a;o=a,a=o.parent)o instanceof vr&&o.index<0&&((i=a.enter(t,n,s))===null||i===void 0?void 0:i.from)!=o.from&&(e=a);for(;;){let o=e.enter(t,n,s);if(!o)return e;e=o}}class _${cursor(t=0){return new Hg(this,t)}getChild(t,n=null,r=null){let i=UC(this,t,n,r);return i.length?i[0]:null}getChildren(t,n=null,r=null){return UC(this,t,n,r)}resolve(t,n=0){return ah(this,t,n,!1)}resolveInner(t,n=0){return ah(this,t,n,!0)}matchContext(t){return BE(this,t)}enterUnfinishedNodesBefore(t){let n=this.childBefore(t),r=this;for(;n;){let i=n.lastChild;if(!i||i.to!=n.to)break;i.type.isError&&i.from==i.to?(r=n,n=i.prevSibling):n=i}return r}get node(){return this}get next(){return this.parent}}class vr extends _${constructor(t,n,r,i){super(),this._tree=t,this.from=n,this.index=r,this._parent=i}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(t,n,r,i,s=0){for(let o=this;;){for(let{children:a,positions:l}=o._tree,c=n>0?a.length:-1;t!=c;t+=n){let u=a[t],d=l[t]+o.from;if(E$(i,r,d,d+u.length)){if(u instanceof Da){if(s&exports.Xe.ExcludeBuffers)continue;let f=u.findChild(0,u.buffer.length,n,r-d,i);if(f>-1)return new As(new _ae(o,u,t,d),null,f)}else if(s&exports.Xe.IncludeAnonymous||!u.type.isAnonymous||NT(u)){let f;if(!(s&exports.Xe.IgnoreMounts)&&(f=oh.get(u))&&!f.overlay)return new vr(f.tree,d,t,o);let h=new vr(u,d,t,o);return s&exports.Xe.IncludeAnonymous||!h.type.isAnonymous?h:h.nextChild(n<0?u.children.length-1:0,n,r,i)}}}if(s&exports.Xe.IncludeAnonymous||!o.type.isAnonymous||(o.index>=0?t=o.index+n:t=n<0?-1:o._parent._tree.children.length,o=o._parent,!o))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}enter(t,n,r=0){let i;if(!(r&exports.Xe.IgnoreOverlays)&&(i=oh.get(this._tree))&&i.overlay){let s=t-this.from;for(let{from:o,to:a}of i.overlay)if((n>0?o<=s:o<s)&&(n<0?a>=s:a>s))return new vr(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,n,r)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function UC(e,t,n,r){let i=e.cursor(),s=[];if(!i.firstChild())return s;if(n!=null){for(let o=!1;!o;)if(o=i.type.is(n),!i.nextSibling())return s}for(;;){if(r!=null&&i.type.is(r))return s;if(i.type.is(t)&&s.push(i.node),!i.nextSibling())return r==null?s:[]}}function BE(e,t,n=t.length-1){for(let r=e.parent;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}class _ae{constructor(t,n,r,i){this.parent=t,this.buffer=n,this.index=r,this.start=i}}class As extends _${get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,n,r){super(),this.context=t,this._parent=n,this.index=r,this.type=t.buffer.set.types[t.buffer.buffer[r]]}child(t,n,r){let{buffer:i}=this.context,s=i.findChild(this.index+4,i.buffer[this.index+3],t,n-this.context.start,r);return s<0?null:new As(this.context,this,s)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}enter(t,n,r=0){if(r&exports.Xe.ExcludeBuffers)return null;let{buffer:i}=this.context,s=i.findChild(this.index+4,i.buffer[this.index+3],n>0?1:-1,t-this.context.start,n);return s<0?null:new As(this.context,this,s)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,n=t.buffer[this.index+3];return n<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new As(this.context,this._parent,n):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new As(this.context,this._parent,t.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],n=[],{buffer:r}=this.context,i=this.index+4,s=r.buffer[this.index+3];if(s>i){let o=r.buffer[this.index+1];t.push(r.slice(i,s,o)),n.push(0)}return new On(this.type,t,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function w$(e){if(!e.length)return null;let t=0,n=e[0];for(let s=1;s<e.length;s++){let o=e[s];(o.from>n.from||o.to<n.to)&&(n=o,t=s)}let r=n instanceof vr&&n.index<0?null:n.parent,i=e.slice();return r?i[t]=r:i.splice(t,1),new wae(i,n)}class wae{constructor(t,n){this.heads=t,this.node=n}get next(){return w$(this.heads)}}function Tae(e,t,n){let r=e.resolveInner(t,n),i=null;for(let s=r instanceof vr?r:r.context.parent;s;s=s.parent)if(s.index<0){let o=s.parent;(i||(i=[r])).push(o.resolve(t,n)),s=o}else{let o=oh.get(s.tree);if(o&&o.overlay&&o.overlay[0].from<=t&&o.overlay[o.overlay.length-1].to>=t){let a=new vr(o.tree,o.overlay[0].from+s.from,-1,s);(i||(i=[r])).push(ah(a,t,n,!1))}}return i?w$(i):r}class Hg{get name(){return this.type.name}constructor(t,n=0){if(this.mode=n,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,t instanceof vr)this.yieldNode(t);else{this._tree=t.context.parent,this.buffer=t.context;for(let r=t._parent;r;r=r._parent)this.stack.unshift(r.index);this.bufferNode=t,this.yieldBuf(t.index)}}yieldNode(t){return t?(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0):!1}yieldBuf(t,n){this.index=t;let{start:r,buffer:i}=this.buffer;return this.type=n||i.set.types[i.buffer[t]],this.from=r+i.buffer[t+1],this.to=r+i.buffer[t+2],!0}yield(t){return t?t instanceof vr?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,n,r){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,n,r,this.mode));let{buffer:i}=this.buffer,s=i.findChild(this.index+4,i.buffer[this.index+3],t,n-this.buffer.start,r);return s<0?!1:(this.stack.push(this.index),this.yieldBuf(s))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,n,r=this.mode){return this.buffer?r&exports.Xe.ExcludeBuffers?!1:this.enterChild(1,t,n):this.yield(this._tree.enter(t,n,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&exports.Xe.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&exports.Xe.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode)):!1;let{buffer:n}=this.buffer,r=this.stack.length-1;if(t<0){let i=r<0?0:this.stack[r]+4;if(this.index!=i)return this.yieldBuf(n.findChild(i,this.index,-1,0,4))}else{let i=n.buffer[this.index+3];if(i<(r<0?n.buffer.length:n.buffer[this.stack[r]+3]))return this.yieldBuf(i)}return r<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let n,r,{buffer:i}=this;if(i){if(t>0){if(this.index<i.buffer.buffer.length)return!1}else for(let s=0;s<this.index;s++)if(i.buffer.buffer[s+3]<this.index)return!1;({index:n,parent:r}=i)}else({index:n,_parent:r}=this._tree);for(;r;{index:n,_parent:r}=r)if(n>-1)for(let s=n+t,o=t<0?-1:r._tree.children.length;s!=o;s+=t){let a=r._tree.children[s];if(this.mode&exports.Xe.IncludeAnonymous||a instanceof Da||!a.type.isAnonymous||NT(a))return!1}return!0}move(t,n){if(n&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,n=0){for(;(this.from==this.to||(n<1?this.from>=t:this.from>t)||(n>-1?this.to<=t:this.to<t))&&this.parent(););for(;this.enterChild(1,t,n););return this}get node(){if(!this.buffer)return this._tree;let t=this.bufferNode,n=null,r=0;if(t&&t.context==this.buffer)e:for(let i=this.index,s=this.stack.length;s>=0;){for(let o=t;o;o=o._parent)if(o.index==i){if(i==this.index)return o;n=o,r=s+1;break e}i=this.stack[--s]}for(let i=r;i<this.stack.length;i++)n=new As(this.buffer,n,this.stack[i]);return this.bufferNode=new As(this.buffer,n,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(t,n){for(let r=0;;){let i=!1;if(this.type.isAnonymous||t(this)!==!1){if(this.firstChild()){r++;continue}this.type.isAnonymous||(i=!0)}for(;i&&n&&n(this),i=this.type.isAnonymous,!this.nextSibling();){if(!r)return;this.parent(),r--,i=!0}}}matchContext(t){if(!this.buffer)return BE(this.node,t);let{buffer:n}=this.buffer,{types:r}=n.set;for(let i=t.length-1,s=this.stack.length-1;i>=0;s--){if(s<0)return BE(this.node,t,i);let o=r[n.buffer[this.stack[s]]];if(!o.isAnonymous){if(t[i]&&t[i]!=o.name)return!1;i--}}return!0}}function NT(e){return e.children.some(t=>t instanceof Da||!t.type.isAnonymous||NT(t))}function Sae(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:i=v$,reused:s=[],minRepeatType:o=r.types.length}=e,a=Array.isArray(n)?new xT(n,n.length):n,l=r.types,c=0,u=0;function d(T,w,S,k,x,A){let{id:M,start:R,end:te,size:ee}=a,oe=u;for(;ee<0;)if(a.next(),ee==-1){let O=s[M];S.push(O),k.push(R-T);return}else if(ee==-3){c=M;return}else if(ee==-4){u=M;return}else throw new RangeError(`Unrecognized record size: ${ee}`);let pe=l[M],G,Q,fe=R-T;if(te-R<=i&&(Q=g(a.pos-w,x))){let O=new Uint16Array(Q.size-Q.skip),B=a.pos-Q.size,J=O.length;for(;a.pos>B;)J=b(Q.start,O,J);G=new Da(O,te-Q.start,r),fe=Q.start-T}else{let O=a.pos-ee;a.next();let B=[],J=[],N=M>=o?M:-1,P=0,H=te;for(;a.pos>O;)N>=0&&a.id==N&&a.size>=0?(a.end<=H-i&&(p(B,J,R,P,a.end,H,N,oe),P=B.length,H=a.end),a.next()):A>2500?f(R,O,B,J):d(R,O,B,J,N,A+1);if(N>=0&&P>0&&P<B.length&&p(B,J,R,P,R,H,N,oe),B.reverse(),J.reverse(),N>-1&&P>0){let q=h(pe);G=CT(pe,B,J,0,B.length,0,te-R,q,q)}else G=m(pe,B,J,te-R,oe-te)}S.push(G),k.push(fe)}function f(T,w,S,k){let x=[],A=0,M=-1;for(;a.pos>w;){let{id:R,start:te,end:ee,size:oe}=a;if(oe>4)a.next();else{if(M>-1&&te<M)break;M<0&&(M=ee-i),x.push(R,te,ee),A++,a.next()}}if(A){let R=new Uint16Array(A*4),te=x[x.length-2];for(let ee=x.length-3,oe=0;ee>=0;ee-=3)R[oe++]=x[ee],R[oe++]=x[ee+1]-te,R[oe++]=x[ee+2]-te,R[oe++]=oe;S.push(new Da(R,x[2]-te,r)),k.push(te-T)}}function h(T){return(w,S,k)=>{let x=0,A=w.length-1,M,R;if(A>=0&&(M=w[A])instanceof On){if(!A&&M.type==T&&M.length==k)return M;(R=M.prop(Mt.lookAhead))&&(x=S[A]+M.length+R)}return m(T,w,S,k,x)}}function p(T,w,S,k,x,A,M,R){let te=[],ee=[];for(;T.length>k;)te.push(T.pop()),ee.push(w.pop()+S-x);T.push(m(r.types[M],te,ee,A-x,R-A)),w.push(x-S)}function m(T,w,S,k,x=0,A){if(c){let M=[Mt.contextHash,c];A=A?[M].concat(A):[M]}if(x>25){let M=[Mt.lookAhead,x];A=A?[M].concat(A):[M]}return new On(T,w,S,k,A)}function g(T,w){let S=a.fork(),k=0,x=0,A=0,M=S.end-i,R={size:0,start:0,skip:0};e:for(let te=S.pos-T;S.pos>te;){let ee=S.size;if(S.id==w&&ee>=0){R.size=k,R.start=x,R.skip=A,A+=4,k+=4,S.next();continue}let oe=S.pos-ee;if(ee<0||oe<te||S.start<M)break;let pe=S.id>=o?4:0,G=S.start;for(S.next();S.pos>oe;){if(S.size<0)if(S.size==-3)pe+=4;else break e;else S.id>=o&&(pe+=4);S.next()}x=G,k+=ee,A+=pe}return(w<0||k==T)&&(R.size=k,R.start=x,R.skip=A),R.size>4?R:void 0}function b(T,w,S){let{id:k,start:x,end:A,size:M}=a;if(a.next(),M>=0&&k<o){let R=S;if(M>4){let te=a.pos-(M-4);for(;a.pos>te;)S=b(T,w,S)}w[--S]=R,w[--S]=A-T,w[--S]=x-T,w[--S]=k}else M==-3?c=k:M==-4&&(u=k);return S}let v=[],y=[];for(;a.pos>0;)d(e.start||0,e.bufferStart||0,v,y,-1,0);let E=(t=e.length)!==null&&t!==void 0?t:v.length?y[0]+v[0].length:0;return new On(l[e.topID],v.reverse(),y.reverse(),E)}const HC=new WeakMap;function Km(e,t){if(!e.isAnonymous||t instanceof Da||t.type!=e)return 1;let n=HC.get(t);if(n==null){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof On)){n=1;break}n+=Km(e,r)}HC.set(t,n)}return n}function CT(e,t,n,r,i,s,o,a,l){let c=0;for(let p=r;p<i;p++)c+=Km(e,t[p]);let u=Math.ceil(c*1.5/8),d=[],f=[];function h(p,m,g,b,v){for(let y=g;y<b;){let E=y,T=m[y],w=Km(e,p[y]);for(y++;y<b;y++){let S=Km(e,p[y]);if(w+S>=u)break;w+=S}if(y==E+1){if(w>u){let S=p[E];h(S.children,S.positions,0,S.children.length,m[E]+v);continue}d.push(p[E])}else{let S=m[y-1]+p[y-1].length-T;d.push(CT(e,p,m,E,y,T,S,null,l))}f.push(T+v-s)}}return h(t,n,r,i,0),(a||l)(d,f,o)}class kae{constructor(){this.map=new WeakMap}setBuffer(t,n,r){let i=this.map.get(t);i||this.map.set(t,i=new Map),i.set(n,r)}getBuffer(t,n){let r=this.map.get(t);return r&&r.get(n)}set(t,n){t instanceof As?this.setBuffer(t.context.buffer,t.index,n):t instanceof vr&&this.map.set(t.tree,n)}get(t){return t instanceof As?this.getBuffer(t.context.buffer,t.index):t instanceof vr?this.map.get(t.tree):void 0}cursorSet(t,n){t.buffer?this.setBuffer(t.buffer.buffer,t.index,n):this.map.set(t.tree,n)}cursorGet(t){return t.buffer?this.getBuffer(t.buffer.buffer,t.index):this.map.get(t.tree)}}class oo{constructor(t,n,r,i,s=!1,o=!1){this.from=t,this.to=n,this.tree=r,this.offset=i,this.open=(s?1:0)|(o?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(t,n=[],r=!1){let i=[new oo(0,t.length,t,0,!1,r)];for(let s of n)s.to>t.length&&i.push(s);return i}static applyChanges(t,n,r=128){if(!n.length)return t;let i=[],s=1,o=t.length?t[0]:null;for(let a=0,l=0,c=0;;a++){let u=a<n.length?n[a]:null,d=u?u.fromA:1e9;if(d-l>=r)for(;o&&o.from<d;){let f=o;if(l>=f.from||d<=f.to||c){let h=Math.max(f.from,l)-c,p=Math.min(f.to,d)-c;f=h>=p?null:new oo(h,p,f.tree,f.offset+c,a>0,!!u)}if(f&&i.push(f),o.to>d)break;o=s<t.length?t[s++]:null}if(!u)break;l=u.toA,c=u.toA-u.toB}return i}}class T${startParse(t,n,r){return typeof t=="string"&&(t=new Aae(t)),r=r?r.length?r.map(i=>new Ti(i.from,i.to)):[new Ti(0,0)]:[new Ti(0,t.length)],this.createParse(t,n||[],r)}parse(t,n,r){let i=this.startParse(t,n,r);for(;;){let s=i.advance();if(s)return s}}}class Aae{constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,n){return this.string.slice(t,n)}}function xae(e){return(t,n,r,i)=>new Cae(t,e,n,r,i)}class jC{constructor(t,n,r,i,s){this.parser=t,this.parse=n,this.overlay=r,this.target=i,this.from=s}}function VC(e){if(!e.length||e.some(t=>t.from>=t.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(e))}class Nae{constructor(t,n,r,i,s,o,a){this.parser=t,this.predicate=n,this.mounts=r,this.index=i,this.start=s,this.target=o,this.prev=a,this.depth=0,this.ranges=[]}}const UE=new Mt({perNode:!0});class Cae{constructor(t,n,r,i,s){this.nest=n,this.input=r,this.fragments=i,this.ranges=s,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=t}advance(){if(this.baseParse){let r=this.baseParse.advance();if(!r)return null;if(this.baseParse=null,this.baseTree=r,this.startInner(),this.stoppedAt!=null)for(let i of this.inner)i.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let r=this.baseTree;return this.stoppedAt!=null&&(r=new On(r.type,r.children,r.positions,r.length,r.propValues.concat([[UE,this.stoppedAt]]))),r}let t=this.inner[this.innerDone],n=t.parse.advance();if(n){this.innerDone++;let r=Object.assign(Object.create(null),t.target.props);r[Mt.mounted.id]=new oh(n,t.overlay,t.parser),t.target.props=r}return null}get parsedPos(){if(this.baseParse)return 0;let t=this.input.length;for(let n=this.innerDone;n<this.inner.length;n++)this.inner[n].from<t&&(t=Math.min(t,this.inner[n].parse.parsedPos));return t}stopAt(t){if(this.stoppedAt=t,this.baseParse)this.baseParse.stopAt(t);else for(let n=this.innerDone;n<this.inner.length;n++)this.inner[n].parse.stopAt(t)}startInner(){let t=new Iae(this.fragments),n=null,r=null,i=new Hg(new vr(this.baseTree,this.ranges[0].from,0,null),exports.Xe.IncludeAnonymous|exports.Xe.IgnoreMounts);e:for(let s,o;;){let a=!0,l;if(this.stoppedAt!=null&&i.from>=this.stoppedAt)a=!1;else if(t.hasNode(i)){if(n){let c=n.mounts.find(u=>u.frag.from<=i.from&&u.frag.to>=i.to&&u.mount.overlay);if(c)for(let u of c.mount.overlay){let d=u.from+c.pos,f=u.to+c.pos;d>=i.from&&f<=i.to&&!n.ranges.some(h=>h.from<f&&h.to>d)&&n.ranges.push({from:d,to:f})}}a=!1}else if(r&&(o=Oae(r.ranges,i.from,i.to)))a=o!=2;else if(!i.type.isAnonymous&&(s=this.nest(i,this.input))&&(i.from<i.to||!s.overlay)){i.tree||Dae(i);let c=t.findMounts(i.from,s.parser);if(typeof s.overlay=="function")n=new Nae(s.parser,s.overlay,c,this.inner.length,i.from,i.tree,n);else{let u=KC(this.ranges,s.overlay||(i.from<i.to?[new Ti(i.from,i.to)]:[]));u.length&&VC(u),(u.length||!s.overlay)&&this.inner.push(new jC(s.parser,u.length?s.parser.startParse(this.input,WC(c,u),u):s.parser.startParse(""),s.overlay?s.overlay.map(d=>new Ti(d.from-i.from,d.to-i.from)):null,i.tree,u.length?u[0].from:i.from)),s.overlay?u.length&&(r={ranges:u,depth:0,prev:r}):a=!1}}else n&&(l=n.predicate(i))&&(l===!0&&(l=new Ti(i.from,i.to)),l.from<l.to&&n.ranges.push(l));if(a&&i.firstChild())n&&n.depth++,r&&r.depth++;else for(;!i.nextSibling();){if(!i.parent())break e;if(n&&!--n.depth){let c=KC(this.ranges,n.ranges);c.length&&(VC(c),this.inner.splice(n.index,0,new jC(n.parser,n.parser.startParse(this.input,WC(n.mounts,c),c),n.ranges.map(u=>new Ti(u.from-n.start,u.to-n.start)),n.target,c[0].from))),n=n.prev}r&&!--r.depth&&(r=r.prev)}}}}function Oae(e,t,n){for(let r of e){if(r.from>=n)break;if(r.to>t)return r.from<=t&&r.to>=n?2:1}return 0}function qC(e,t,n,r,i,s){if(t<n){let o=e.buffer[t+1];r.push(e.slice(t,n,o)),i.push(o-s)}}function Dae(e){let{node:t}=e,n=[],r=t.context.buffer;do n.push(e.index),e.parent();while(!e.tree);let i=e.tree,s=i.children.indexOf(r),o=i.children[s],a=o.buffer,l=[s];function c(u,d,f,h,p,m){let g=n[m],b=[],v=[];qC(o,u,g,b,v,h);let y=a[g+1],E=a[g+2];l.push(b.length);let T=m?c(g+4,a[g+3],o.set.types[a[g]],y,E-y,m-1):t.toTree();return b.push(T),v.push(y-h),qC(o,a[g+3],d,b,v,h),new On(f,b,v,p)}i.children[s]=c(0,a.length,Lr.none,0,o.length,n.length-1);for(let u of l){let d=e.tree.children[u],f=e.tree.positions[u];e.yield(new vr(d,f+e.from,u,e._tree))}}class zC{constructor(t,n){this.offset=n,this.done=!1,this.cursor=t.cursor(exports.Xe.IncludeAnonymous|exports.Xe.IgnoreMounts)}moveTo(t){let{cursor:n}=this,r=t-this.offset;for(;!this.done&&n.from<r;)n.to>=t&&n.enter(r,1,exports.Xe.IgnoreOverlays|exports.Xe.ExcludeBuffers)||n.next(!1)||(this.done=!0)}hasNode(t){if(this.moveTo(t.from),!this.done&&this.cursor.from+this.offset==t.from&&this.cursor.tree)for(let n=this.cursor.tree;;){if(n==t.tree)return!0;if(n.children.length&&n.positions[0]==0&&n.children[0]instanceof On)n=n.children[0];else break}return!1}}class Iae{constructor(t){var n;if(this.fragments=t,this.curTo=0,this.fragI=0,t.length){let r=this.curFrag=t[0];this.curTo=(n=r.tree.prop(UE))!==null&&n!==void 0?n:r.to,this.inner=new zC(r.tree,-r.offset)}else this.curFrag=this.inner=null}hasNode(t){for(;this.curFrag&&t.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=t.from&&this.curTo>=t.to&&this.inner.hasNode(t)}nextFrag(){var t;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let n=this.curFrag=this.fragments[this.fragI];this.curTo=(t=n.tree.prop(UE))!==null&&t!==void 0?t:n.to,this.inner=new zC(n.tree,-n.offset)}}findMounts(t,n){var r;let i=[];if(this.inner){this.inner.cursor.moveTo(t,1);for(let s=this.inner.cursor.node;s;s=s.parent){let o=(r=s.tree)===null||r===void 0?void 0:r.prop(Mt.mounted);if(o&&o.parser==n)for(let a=this.fragI;a<this.fragments.length;a++){let l=this.fragments[a];if(l.from>=s.to)break;l.tree==this.curFrag.tree&&i.push({frag:l,pos:s.from-l.offset,mount:o})}}}return i}}function KC(e,t){let n=null,r=t;for(let i=1,s=0;i<e.length;i++){let o=e[i-1].to,a=e[i].from;for(;s<r.length;s++){let l=r[s];if(l.from>=a)break;l.to<=o||(n||(r=n=t.slice()),l.from<o?(n[s]=new Ti(l.from,o),l.to>a&&n.splice(s+1,0,new Ti(a,l.to))):l.to>a?n[s--]=new Ti(a,l.to):n.splice(s--,1))}}return r}function Rae(e,t,n,r){let i=0,s=0,o=!1,a=!1,l=-1e9,c=[];for(;;){let u=i==e.length?1e9:o?e[i].to:e[i].from,d=s==t.length?1e9:a?t[s].to:t[s].from;if(o!=a){let f=Math.max(l,n),h=Math.min(u,d,r);f<h&&c.push(new Ti(f,h))}if(l=Math.min(u,d),l==1e9)break;u==l&&(o?(o=!1,i++):o=!0),d==l&&(a?(a=!1,s++):a=!0)}return c}function WC(e,t){let n=[];for(let{pos:r,mount:i,frag:s}of e){let o=r+(i.overlay?i.overlay[0].from:0),a=o+i.tree.length,l=Math.max(s.from,o),c=Math.min(s.to,a);if(i.overlay){let u=i.overlay.map(f=>new Ti(f.from+r,f.to+r)),d=Rae(t,u,l,c);for(let f=0,h=l;;f++){let p=f==d.length,m=p?c:d[f].from;if(m>h&&n.push(new oo(h,m,i.tree,-o,s.from>=h||s.openStart,s.to<=m||s.openEnd)),p)break;h=d[f].to}}else n.push(new oo(l,c,i.tree,-o,s.from>=o||s.openStart,s.to<=a||s.openEnd))}return n}let Pae=0,Zo=class S${constructor(t,n,r){this.set=t,this.base=n,this.modified=r,this.id=Pae++}static define(t){if(t!=null&&t.base)throw new Error("Can not derive from a modified tag");let n=new S$([],null,[]);if(n.set.push(n),t)for(let r of t.set)n.set.push(r);return n}static defineModifier(){let t=new jg;return n=>n.modified.indexOf(t)>-1?n:jg.get(n.base||n,n.modified.concat(t).sort((r,i)=>r.id-i.id))}},Lae=0;class jg{constructor(){this.instances=[],this.id=Lae++}static get(t,n){if(!n.length)return t;let r=n[0].instances.find(a=>a.base==t&&Mae(n,a.modified));if(r)return r;let i=[],s=new Zo(i,t,n);for(let a of n)a.instances.push(s);let o=$ae(n);for(let a of t.set)if(!a.modified.length)for(let l of o)i.push(jg.get(a,l));return s}}function Mae(e,t){return e.length==t.length&&e.every((n,r)=>n==t[r])}function $ae(e){let t=[[]];for(let n=0;n<e.length;n++)for(let r=0,i=t.length;r<i;r++)t.push(t[r].concat(e[n]));return t.sort((n,r)=>r.length-n.length)}function k$(e){let t=Object.create(null);for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]);for(let i of n.split(" "))if(i){let s=[],o=2,a=i;for(let d=0;;){if(a=="..."&&d>0&&d+3==i.length){o=1;break}let f=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);if(!f)throw new RangeError("Invalid path: "+i);if(s.push(f[0]=="*"?"":f[0][0]=='"'?JSON.parse(f[0]):f[0]),d+=f[0].length,d==i.length)break;let h=i[d++];if(d==i.length&&h=="!"){o=0;break}if(h!="/")throw new RangeError("Invalid path: "+i);a=i.slice(d)}let l=s.length-1,c=s[l];if(!c)throw new RangeError("Invalid path: "+i);let u=new Vg(r,o,l>0?s.slice(0,l):null);t[c]=u.sort(t[c])}}return A$.add(t)}const A$=new Mt;class Vg{constructor(t,n,r,i){this.tags=t,this.mode=n,this.context=r,this.next=i}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(t){return!t||t.depth<this.depth?(this.next=t,this):(t.next=this.sort(t.next),t)}get depth(){return this.context?this.context.length:0}}Vg.empty=new Vg([],2,null);function x$(e,t){let n=Object.create(null);for(let s of e)if(!Array.isArray(s.tag))n[s.tag.id]=s.class;else for(let o of s.tag)n[o.id]=s.class;let{scope:r,all:i=null}=t||{};return{style:s=>{let o=i;for(let a of s)for(let l of a.set){let c=n[l.id];if(c){o=o?o+" "+c:c;break}}return o},scope:r}}function Fae(e,t){let n=null;for(let r of e){let i=r.style(t);i&&(n=n?n+" "+i:i)}return n}function Bae(e,t,n,r=0,i=e.length){let s=new Uae(r,Array.isArray(t)?t:[t],n);s.highlightRange(e.cursor(),r,i,"",s.highlighters),s.flush(i)}class Uae{constructor(t,n,r){this.at=t,this.highlighters=n,this.span=r,this.class=""}startSpan(t,n){n!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=n)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,n,r,i,s){let{type:o,from:a,to:l}=t;if(a>=r||l<=n)return;o.isTop&&(s=this.highlighters.filter(h=>!h.scope||h.scope(o)));let c=i,u=Hae(t)||Vg.empty,d=Fae(s,u.tags);if(d&&(c&&(c+=" "),c+=d,u.mode==1&&(i+=(i?" ":"")+d)),this.startSpan(Math.max(n,a),c),u.opaque)return;let f=t.tree&&t.tree.prop(Mt.mounted);if(f&&f.overlay){let h=t.node.enter(f.overlay[0].from+a,1),p=this.highlighters.filter(g=>!g.scope||g.scope(f.tree.type)),m=t.firstChild();for(let g=0,b=a;;g++){let v=g<f.overlay.length?f.overlay[g]:null,y=v?v.from+a:l,E=Math.max(n,b),T=Math.min(r,y);if(E<T&&m)for(;t.from<T&&(this.highlightRange(t,E,T,i,s),this.startSpan(Math.min(T,t.to),c),!(t.to>=y||!t.nextSibling())););if(!v||y>r)break;b=v.to+a,b>n&&(this.highlightRange(h.cursor(),Math.max(n,v.from+a),Math.min(r,b),"",p),this.startSpan(Math.min(r,b),c))}m&&t.parent()}else if(t.firstChild()){f&&(i="");do if(!(t.to<=n)){if(t.from>=r)break;this.highlightRange(t,n,r,i,s),this.startSpan(Math.min(r,t.to),c)}while(t.nextSibling());t.parent()}}}function Hae(e){let t=e.type.prop(A$);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}const He=Zo.define,sm=He(),ea=He(),GC=He(ea),YC=He(ea),ta=He(),om=He(ta),yv=He(ta),fs=He(),Za=He(fs),us=He(),ds=He(),HE=He(),Md=He(HE),am=He(),Ie={comment:sm,lineComment:He(sm),blockComment:He(sm),docComment:He(sm),name:ea,variableName:He(ea),typeName:GC,tagName:He(GC),propertyName:YC,attributeName:He(YC),className:He(ea),labelName:He(ea),namespace:He(ea),macroName:He(ea),literal:ta,string:om,docString:He(om),character:He(om),attributeValue:He(om),number:yv,integer:He(yv),float:He(yv),bool:He(ta),regexp:He(ta),escape:He(ta),color:He(ta),url:He(ta),keyword:us,self:He(us),null:He(us),atom:He(us),unit:He(us),modifier:He(us),operatorKeyword:He(us),controlKeyword:He(us),definitionKeyword:He(us),moduleKeyword:He(us),operator:ds,derefOperator:He(ds),arithmeticOperator:He(ds),logicOperator:He(ds),bitwiseOperator:He(ds),compareOperator:He(ds),updateOperator:He(ds),definitionOperator:He(ds),typeOperator:He(ds),controlOperator:He(ds),punctuation:HE,separator:He(HE),bracket:Md,angleBracket:He(Md),squareBracket:He(Md),paren:He(Md),brace:He(Md),content:fs,heading:Za,heading1:He(Za),heading2:He(Za),heading3:He(Za),heading4:He(Za),heading5:He(Za),heading6:He(Za),contentSeparator:He(fs),list:He(fs),quote:He(fs),emphasis:He(fs),strong:He(fs),link:He(fs),monospace:He(fs),strikethrough:He(fs),inserted:He(),deleted:He(),changed:He(),invalid:He(),meta:am,documentMeta:He(am),annotation:He(am),processingInstruction:He(am),definition:Zo.defineModifier(),constant:Zo.defineModifier(),function:Zo.defineModifier(),standard:Zo.defineModifier(),local:Zo.defineModifier(),special:Zo.defineModifier()};x$([{tag:Ie.link,class:"tok-link"},{tag:Ie.heading,class:"tok-heading"},{tag:Ie.emphasis,class:"tok-emphasis"},{tag:Ie.strong,class:"tok-strong"},{tag:Ie.keyword,class:"tok-keyword"},{tag:Ie.atom,class:"tok-atom"},{tag:Ie.bool,class:"tok-bool"},{tag:Ie.url,class:"tok-url"},{tag:Ie.labelName,class:"tok-labelName"},{tag:Ie.inserted,class:"tok-inserted"},{tag:Ie.deleted,class:"tok-deleted"},{tag:Ie.literal,class:"tok-literal"},{tag:Ie.string,class:"tok-string"},{tag:Ie.number,class:"tok-number"},{tag:[Ie.regexp,Ie.escape,Ie.special(Ie.string)],class:"tok-string2"},{tag:Ie.variableName,class:"tok-variableName"},{tag:Ie.local(Ie.variableName),class:"tok-variableName tok-local"},{tag:Ie.definition(Ie.variableName),class:"tok-variableName tok-definition"},{tag:Ie.special(Ie.variableName),class:"tok-variableName2"},{tag:Ie.definition(Ie.propertyName),class:"tok-propertyName tok-definition"},{tag:Ie.typeName,class:"tok-typeName"},{tag:Ie.namespace,class:"tok-namespace"},{tag:Ie.className,class:"tok-className"},{tag:Ie.macroName,class:"tok-macroName"},{tag:Ie.propertyName,class:"tok-propertyName"},{tag:Ie.operator,class:"tok-operator"},{tag:Ie.comment,class:"tok-comment"},{tag:Ie.meta,class:"tok-meta"},{tag:Ie.invalid,class:"tok-invalid"},{tag:Ie.punctuation,class:"tok-punctuation"}]);var vv;const Lc=new Mt;function N$(e){return st.define({combine:e?t=>t.concat(e):void 0})}const C$=new Mt;class Gi{constructor(t,n,r=[],i=""){this.data=t,this.name=i,Vt.prototype.hasOwnProperty("tree")||Object.defineProperty(Vt.prototype,"tree",{get(){return Ia(this)}}),this.parser=n,this.extension=[Eu.of(this),Vt.languageData.of((s,o,a)=>{let l=XC(s,o,a),c=l.type.prop(Lc);if(!c)return[];let u=s.facet(c),d=l.type.prop(C$);if(d){let f=l.resolve(o-l.from,a);for(let h of d)if(h.test(f,s)){let p=s.facet(h.facet);return h.type=="replace"?p:p.concat(u)}}return u})].concat(r)}isActiveAt(t,n,r=-1){return XC(t,n,r).type.prop(Lc)==this.data}findRegions(t){let n=t.facet(Eu);if((n==null?void 0:n.data)==this.data)return[{from:0,to:t.doc.length}];if(!n||!n.allowsNesting)return[];let r=[],i=(s,o)=>{if(s.prop(Lc)==this.data){r.push({from:o,to:o+s.length});return}let a=s.prop(Mt.mounted);if(a){if(a.tree.prop(Lc)==this.data){if(a.overlay)for(let l of a.overlay)r.push({from:l.from+o,to:l.to+o});else r.push({from:o,to:o+s.length});return}else if(a.overlay){let l=r.length;if(i(a.tree,a.overlay[0].from+o),r.length>l)return}}for(let l=0;l<s.children.length;l++){let c=s.children[l];c instanceof On&&i(c,s.positions[l]+o)}};return i(Ia(t),0),r}get allowsNesting(){return!0}}Gi.setState=Fn.define();function XC(e,t,n){let r=e.facet(Eu),i=Ia(e).topNode;if(!r||r.allowsNesting)for(let s=i;s;s=s.enter(t,n,exports.Xe.ExcludeBuffers))s.type.isTop&&(i=s);return i}class qg extends Gi{constructor(t,n,r){super(t,n,[],r),this.parser=n}static define(t){let n=N$(t.languageData);return new qg(n,t.parser.configure({props:[Lc.add(r=>r.isTop?n:void 0)]}),t.name)}configure(t,n){return new qg(this.data,this.parser.configure(t),n||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Ia(e){let t=e.field(Gi.state,!1);return t?t.tree:On.empty}class jae{constructor(t){this.doc=t,this.cursorPos=0,this.string="",this.cursor=t.iter()}get length(){return this.doc.length}syncTo(t){return this.string=this.cursor.next(t-this.cursorPos).value,this.cursorPos=t+this.string.length,this.cursorPos-this.string.length}chunk(t){return this.syncTo(t),this.string}get lineChunks(){return!0}read(t,n){let r=this.cursorPos-this.string.length;return t<r||n>=this.cursorPos?this.doc.sliceString(t,n):this.string.slice(t-r,n-r)}}let $d=null;class zg{constructor(t,n,r=[],i,s,o,a,l){this.parser=t,this.state=n,this.fragments=r,this.tree=i,this.treeLen=s,this.viewport=o,this.skipped=a,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(t,n,r){return new zg(t,n,[],On.empty,0,r,[],null)}startParse(){return this.parser.startParse(new jae(this.state.doc),this.fragments)}work(t,n){return n!=null&&n>=this.state.doc.length&&(n=void 0),this.tree!=On.empty&&this.isDone(n??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var r;if(typeof t=="number"){let i=Date.now()+t;t=()=>Date.now()>i}for(this.parse||(this.parse=this.startParse()),n!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>n)&&n<this.state.doc.length&&this.parse.stopAt(n);;){let i=this.parse.advance();if(i)if(this.fragments=this.withoutTempSkipped(oo.addTree(i,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(r=this.parse.stoppedAt)!==null&&r!==void 0?r:this.state.doc.length,this.tree=i,this.parse=null,this.treeLen<(n??this.state.doc.length))this.parse=this.startParse();else return!0;if(t())return!1}})}takeTree(){let t,n;this.parse&&(t=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext(()=>{for(;!(n=this.parse.advance()););}),this.treeLen=t,this.tree=n,this.fragments=this.withoutTempSkipped(oo.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let n=$d;$d=this;try{return t()}finally{$d=n}}withoutTempSkipped(t){for(let n;n=this.tempSkipped.pop();)t=QC(t,n.from,n.to);return t}changes(t,n){let{fragments:r,tree:i,treeLen:s,viewport:o,skipped:a}=this;if(this.takeTree(),!t.empty){let l=[];if(t.iterChangedRanges((c,u,d,f)=>l.push({fromA:c,toA:u,fromB:d,toB:f})),r=oo.applyChanges(r,l),i=On.empty,s=0,o={from:t.mapPos(o.from,-1),to:t.mapPos(o.to,1)},this.skipped.length){a=[];for(let c of this.skipped){let u=t.mapPos(c.from,1),d=t.mapPos(c.to,-1);u<d&&a.push({from:u,to:d})}}}return new zg(this.parser,n,r,i,s,o,a,this.scheduleOn)}updateViewport(t){if(this.viewport.from==t.from&&this.viewport.to==t.to)return!1;this.viewport=t;let n=this.skipped.length;for(let r=0;r<this.skipped.length;r++){let{from:i,to:s}=this.skipped[r];i<t.to&&s>t.from&&(this.fragments=QC(this.fragments,i,s),this.skipped.splice(r--,1))}return this.skipped.length>=n?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(t,n){this.skipped.push({from:t,to:n})}static getSkippingParser(t){return new class extends T${createParse(n,r,i){let s=i[0].from,o=i[i.length-1].to;return{parsedPos:s,advance(){let a=$d;if(a){for(let l of i)a.tempSkipped.push(l);t&&(a.scheduleOn=a.scheduleOn?Promise.all([a.scheduleOn,t]):t)}return this.parsedPos=o,new On(Lr.none,[],[],o-s)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let n=this.fragments;return this.treeLen>=t&&n.length&&n[0].from==0&&n[0].to>=t}static get(){return $d}}function QC(e,t,n){return oo.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class vu{constructor(t){this.context=t,this.tree=t.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let n=this.context.changes(t.changes,t.state),r=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),n.viewport.to);return n.work(20,r)||n.takeTree(),new vu(n)}static init(t){let n=Math.min(3e3,t.doc.length),r=zg.create(t.facet(Eu).parser,t,{from:0,to:n});return r.work(20,n)||r.takeTree(),new vu(r)}}Gi.state=No.define({create:vu.init,update(e,t){for(let n of t.effects)if(n.is(Gi.setState))return n.value;return t.startState.facet(Eu)!=t.state.facet(Eu)?vu.init(t.state):e.apply(t)}});let O$=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};typeof requestIdleCallback<"u"&&(O$=e=>{let t=-1,n=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const Ev=typeof navigator<"u"&&!((vv=navigator.scheduling)===null||vv===void 0)&&vv.isInputPending?()=>navigator.scheduling.isInputPending():null,Vae=Ii.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(Gi.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(Gi.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=O$(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:r}}=this.view,i=n.field(Gi.state);if(i.tree==i.context.tree&&i.context.isDone(r+1e5))return;let s=Date.now()+Math.min(this.chunkBudget,100,e&&!Ev?Math.max(25,e.timeRemaining()-5):1e9),o=i.context.treeLen<r&&n.doc.length>r+1e3,a=i.context.work(()=>Ev&&Ev()||Date.now()>s,r+(o?0:1e5));this.chunkBudget-=Date.now()-t,(a||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:Gi.setState.of(new vu(i.context))})),this.chunkBudget>0&&!(a&&!o)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(t=>so(this.view.state,t)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Eu=st.define({combine(e){return e.length?e[0]:null},enables:e=>[Gi.state,Vae,Nt.contentAttributes.compute([e],t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}})]});class qae{constructor(t,n=[]){this.language=t,this.support=n,this.extension=[t,n]}}const zae=st.define(),OT=st.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some(n=>n!=t[0]))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function D$(e){let t=e.facet(OT);return t.charCodeAt(0)==9?e.tabSize*t.length:t.length}function I$(e,t){let n="",r=e.tabSize,i=e.facet(OT)[0];if(i==" "){for(;t>=r;)n+=" ",t-=r;i=" "}for(let s=0;s<t;s++)n+=i;return n}function Kae(e,t){e instanceof Vt&&(e=new R$(e));for(let r of e.state.facet(zae)){let i=r(e,t);if(i!==void 0)return i}let n=Ia(e.state);return n.length>=t?Wae(e,n,t):null}class R${constructor(t,n={}){this.state=t,this.options=n,this.unit=D$(t)}lineAt(t,n=1){let r=this.state.doc.lineAt(t),{simulateBreak:i,simulateDoubleBreak:s}=this.options;return i!=null&&i>=r.from&&i<=r.to?s&&i==t?{text:"",from:t}:(n<0?i<t:i<=t)?{text:r.text.slice(i-r.from),from:i}:{text:r.text.slice(0,i-r.from),from:r.from}:r}textAfterPos(t,n=1){if(this.options.simulateDoubleBreak&&t==this.options.simulateBreak)return"";let{text:r,from:i}=this.lineAt(t,n);return r.slice(t-i,Math.min(r.length,t+100-i))}column(t,n=1){let{text:r,from:i}=this.lineAt(t,n),s=this.countColumn(r,t-i),o=this.options.overrideIndentation?this.options.overrideIndentation(i):-1;return o>-1&&(s+=o-this.countColumn(r,r.search(/\S|$/))),s}countColumn(t,n=t.length){return yT(t,this.state.tabSize,n)}lineIndent(t,n=1){let{text:r,from:i}=this.lineAt(t,n),s=this.options.overrideIndentation;if(s){let o=s(i);if(o>-1)return o}return this.countColumn(r,r.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const P$=new Mt;function Wae(e,t,n){let r=t.resolveStack(n),i=r.node.enterUnfinishedNodesBefore(n);if(i!=r.node){let s=[];for(let o=i;o!=r.node;o=o.parent)s.push(o);for(let o=s.length-1;o>=0;o--)r={node:s[o],next:r}}return L$(r,e,n)}function L$(e,t,n){for(let r=e;r;r=r.next){let i=Yae(r.node);if(i)return i(DT.create(t,n,r))}return 0}function Gae(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}function Yae(e){let t=e.type.prop(P$);if(t)return t;let n=e.firstChild,r;if(n&&(r=n.type.prop(Mt.closedBy))){let i=e.lastChild,s=i&&r.indexOf(i.name)>-1;return o=>M$(o,!0,1,void 0,s&&!Gae(o)?i.from:void 0)}return e.parent==null?Xae:null}function Xae(){return 0}class DT extends R${constructor(t,n,r){super(t.state,t.options),this.base=t,this.pos=n,this.context=r}get node(){return this.context.node}static create(t,n,r){return new DT(t,n,r)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(t){let n=this.state.doc.lineAt(t.from);for(;;){let r=t.resolve(n.from);for(;r.parent&&r.parent.from==r.from;)r=r.parent;if(Qae(r,t))break;n=this.state.doc.lineAt(r.from)}return this.lineIndent(n.from)}continue(){return L$(this.context.next,this.base,this.pos)}}function Qae(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function Jae(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let i=e.options.simulateBreak,s=e.state.doc.lineAt(n.from),o=i==null||i<=s.from?s.to:Math.min(s.to,i);for(let a=n.to;;){let l=t.childAfter(a);if(!l||l==r)return null;if(!l.type.isSkipped)return l.from<o?n:null;a=l.to}}function Zae({closing:e,align:t=!0,units:n=1}){return r=>M$(r,t,n,e)}function M$(e,t,n,r,i){let s=e.textAfter,o=s.match(/^\s*/)[0].length,a=r&&s.slice(o,o+r.length)==r||i==e.pos+o,l=t?Jae(e):null;return l?a?e.column(l.from):e.column(l.to):e.baseIndent+(a?0:e.unit*n)}const ele=e=>e.baseIndent;function tle({except:e,units:t=1}={}){return n=>{let r=e&&e.test(n.textAfter);return n.baseIndent+(r?0:t*n.unit)}}const nle=200;function rle(){return Vt.transactionFilter.of(e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:r}=e.newSelection.main,i=n.lineAt(r);if(r>i.from+nle)return e;let s=n.sliceString(i.from,r);if(!t.some(c=>c.test(s)))return e;let{state:o}=e,a=-1,l=[];for(let{head:c}of o.selection.ranges){let u=o.doc.lineAt(c);if(u.from==a)continue;a=u.from;let d=Kae(o,u.from);if(d==null)continue;let f=/^\s*/.exec(u.text)[0],h=I$(o,d);f!=h&&l.push({from:u.from,to:u.from+f.length,insert:h})}return l.length?[e,{changes:l,sequential:!0}]:e})}const ile=new Mt;function sle(e){let t=e.firstChild,n=e.lastChild;return t&&t.to<n.from?{from:t.to,to:n.type.isError?e.to:n.from}:null}class jh{constructor(t,n){this.specs=t;let r;function i(a){let l=Na.newName();return(r||(r=Object.create(null)))["."+l]=a,l}const s=typeof n.all=="string"?n.all:n.all?i(n.all):void 0,o=n.scope;this.scope=o instanceof Gi?a=>a.prop(Lc)==o.data:o?a=>a==o:void 0,this.style=x$(t.map(a=>({tag:a.tag,class:a.class||i(Object.assign({},a,{tag:null}))})),{all:s}).style,this.module=r?new Na(r):null,this.themeType=n.themeType}static define(t,n){return new jh(t,n||{})}}const jE=st.define(),$$=st.define({combine(e){return e.length?[e[0]]:null}});function _v(e){let t=e.facet(jE);return t.length?t:e.facet($$)}function F$(e,t){let n=[ale],r;return e instanceof jh&&(e.module&&n.push(Nt.styleModule.of(e.module)),r=e.themeType),t!=null&&t.fallback?n.push($$.of(e)):r?n.push(jE.computeN([Nt.darkTheme],i=>i.facet(Nt.darkTheme)==(r=="dark")?[e]:[])):n.push(jE.of(e)),n}class ole{constructor(t){this.markCache=Object.create(null),this.tree=Ia(t.state),this.decorations=this.buildDeco(t,_v(t.state)),this.decoratedTo=t.viewport.to}update(t){let n=Ia(t.state),r=_v(t.state),i=r!=_v(t.startState),{viewport:s}=t.view,o=t.changes.mapPos(this.decoratedTo,1);n.length<s.to&&!i&&n.type==this.tree.type&&o>=s.to?(this.decorations=this.decorations.map(t.changes),this.decoratedTo=o):(n!=this.tree||t.viewportChanged||i)&&(this.tree=n,this.decorations=this.buildDeco(t.view,r),this.decoratedTo=s.to)}buildDeco(t,n){if(!n||!this.tree.length)return yn.none;let r=new bu;for(let{from:i,to:s}of t.visibleRanges)Bae(this.tree,n,(o,a,l)=>{r.add(o,a,this.markCache[l]||(this.markCache[l]=yn.mark({class:l})))},i,s);return r.finish()}}const ale=gb.high(Ii.fromClass(ole,{decorations:e=>e.decorations})),lle=jh.define([{tag:Ie.meta,color:"#404740"},{tag:Ie.link,textDecoration:"underline"},{tag:Ie.heading,textDecoration:"underline",fontWeight:"bold"},{tag:Ie.emphasis,fontStyle:"italic"},{tag:Ie.strong,fontWeight:"bold"},{tag:Ie.strikethrough,textDecoration:"line-through"},{tag:Ie.keyword,color:"#708"},{tag:[Ie.atom,Ie.bool,Ie.url,Ie.contentSeparator,Ie.labelName],color:"#219"},{tag:[Ie.literal,Ie.inserted],color:"#164"},{tag:[Ie.string,Ie.deleted],color:"#a11"},{tag:[Ie.regexp,Ie.escape,Ie.special(Ie.string)],color:"#e40"},{tag:Ie.definition(Ie.variableName),color:"#00f"},{tag:Ie.local(Ie.variableName),color:"#30a"},{tag:[Ie.typeName,Ie.namespace],color:"#085"},{tag:Ie.className,color:"#167"},{tag:[Ie.special(Ie.variableName),Ie.macroName],color:"#256"},{tag:Ie.definition(Ie.propertyName),color:"#00c"},{tag:Ie.comment,color:"#940"},{tag:Ie.invalid,color:"#f00"}]),cle=Nt.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),B$=1e4,U$="()[]{}",H$=st.define({combine(e){return yb(e,{afterCursor:!0,brackets:U$,maxScanDistance:B$,renderMatch:fle})}}),ule=yn.mark({class:"cm-matchingBracket"}),dle=yn.mark({class:"cm-nonmatchingBracket"});function fle(e){let t=[],n=e.matched?ule:dle;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}const hle=No.define({create(){return yn.none},update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],r=t.state.facet(H$);for(let i of t.state.selection.ranges){if(!i.empty)continue;let s=lm(t.state,i.head,-1,r)||i.head>0&&lm(t.state,i.head-1,1,r)||r.afterCursor&&(lm(t.state,i.head,1,r)||i.head<t.state.doc.length&&lm(t.state,i.head+1,-1,r));s&&(n=n.concat(r.renderMatch(s,t.state)))}return yn.set(n,!0)},provide:e=>Nt.decorations.from(e)}),ple=[hle,cle];function mle(e={}){return[H$.of(e),ple]}const j$=new Mt;function VE(e,t,n){let r=e.prop(t<0?Mt.openedBy:Mt.closedBy);if(r)return r;if(e.name.length==1){let i=n.indexOf(e.name);if(i>-1&&i%2==(t<0?1:0))return[n[i+t]]}return null}function qE(e){let t=e.type.prop(j$);return t?t(e.node):e}function lm(e,t,n,r={}){let i=r.maxScanDistance||B$,s=r.brackets||U$,o=Ia(e),a=o.resolveInner(t,n);for(let l=a;l;l=l.parent){let c=VE(l.type,n,s);if(c&&l.from<l.to){let u=qE(l);if(u&&(n>0?t>=u.from&&t<u.to:t>u.from&&t<=u.to))return gle(e,t,n,l,u,c,s)}}return ble(e,t,n,o,a.type,i,s)}function gle(e,t,n,r,i,s,o){let a=r.parent,l={from:i.from,to:i.to},c=0,u=a==null?void 0:a.cursor();if(u&&(n<0?u.childBefore(r.from):u.childAfter(r.to)))do if(n<0?u.to<=r.from:u.from>=r.to){if(c==0&&s.indexOf(u.type.name)>-1&&u.from<u.to){let d=qE(u);return{start:l,end:d?{from:d.from,to:d.to}:void 0,matched:!0}}else if(VE(u.type,n,o))c++;else if(VE(u.type,-n,o)){if(c==0){let d=qE(u);return{start:l,end:d&&d.from<d.to?{from:d.from,to:d.to}:void 0,matched:!1}}c--}}while(n<0?u.prevSibling():u.nextSibling());return{start:l,matched:!1}}function ble(e,t,n,r,i,s,o){let a=n<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),l=o.indexOf(a);if(l<0||l%2==0!=n>0)return null;let c={from:n<0?t-1:t,to:n>0?t+1:t},u=e.doc.iterRange(t,n>0?e.doc.length:0),d=0;for(let f=0;!u.next().done&&f<=s;){let h=u.value;n<0&&(f+=h.length);let p=t+f*n;for(let m=n>0?0:h.length-1,g=n>0?h.length:-1;m!=g;m+=n){let b=o.indexOf(h[m]);if(!(b<0||r.resolveInner(p+m,1).type!=i))if(b%2==0==n>0)d++;else{if(d==1)return{start:c,end:{from:p+m,to:p+m+1},matched:b>>1==l>>1};d--}}n>0&&(f+=h.length)}return u.done?{start:c,matched:!1}:null}const yle=Object.create(null),JC=[Lr.none],ZC=[],eO=Object.create(null),vle=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])vle[e]=Ele(yle,t);function wv(e,t){ZC.indexOf(e)>-1||(ZC.push(e),console.warn(t))}function Ele(e,t){let n=[];for(let a of t.split(" ")){let l=[];for(let c of a.split(".")){let u=e[c]||Ie[c];u?typeof u=="function"?l.length?l=l.map(u):wv(c,`Modifier ${c} used at start of tag`):l.length?wv(c,`Tag ${c} used as modifier`):l=Array.isArray(u)?u:[u]:wv(c,`Unknown highlighting tag ${c}`)}for(let c of l)n.push(c)}if(!n.length)return 0;let r=t.replace(/ /g,"_"),i=r+" "+n.map(a=>a.id),s=eO[i];if(s)return s.id;let o=eO[i]=Lr.define({id:JC.length,name:r,props:[k$({[r]:n})]});return JC.push(o),o.id}exports.ct.RTL,exports.ct.LTR;var _le=e=>{var{theme:t,settings:n={},styles:r=[]}=e,i={".cm-gutters":{}},s={};n.background&&(s.backgroundColor=n.background),n.backgroundImage&&(s.backgroundImage=n.backgroundImage),n.foreground&&(s.color=n.foreground),(n.background||n.foreground)&&(i["&"]=s),n.fontFamily&&(i["&.cm-editor .cm-scroller"]={fontFamily:n.fontFamily}),n.gutterBackground&&(i[".cm-gutters"].backgroundColor=n.gutterBackground),n.gutterForeground&&(i[".cm-gutters"].color=n.gutterForeground),n.gutterBorder&&(i[".cm-gutters"].borderRightColor=n.gutterBorder),n.caret&&(i[".cm-content"]={caretColor:n.caret},i[".cm-cursor, .cm-dropCursor"]={borderLeftColor:n.caret});var o={};n.gutterActiveForeground&&(o.color=n.gutterActiveForeground),n.lineHighlight&&(i[".cm-activeLine"]={backgroundColor:n.lineHighlight},o.backgroundColor=n.lineHighlight),i[".cm-activeLineGutter"]=o,n.selection&&(i["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:n.selection+" !important"}),n.selectionMatch&&(i["& .cm-selectionMatch"]={backgroundColor:n.selectionMatch});var a=Nt.theme(i,{dark:t==="dark"}),l=jh.define(r),c=[a,F$(l)];return c};const wle=_le({theme:"light",settings:{background:"var(--scalar-background-2)",foreground:"var(--scalar-color-1)",caret:"var(--scalar-color-1)",selection:"rgba(151, 183, 205, 0.2)",selectionMatch:"#e3dcce",gutterBackground:"var(--scalar-background-2)",gutterForeground:"var(--scalar-color-3)",gutterBorder:"transparent",lineHighlight:"var(--scalar-background-3)",fontFamily:"var(--scalar-font-code)"},styles:[{tag:[Ie.standard(Ie.tagName),Ie.tagName],color:"var(--scalar-color-purple)"},{tag:[Ie.comment],color:"var(--scalar-color-3)"},{tag:[Ie.className],color:"var(--scalar-color-orange)"},{tag:[Ie.variableName,Ie.propertyName,Ie.attributeName],color:"var(--scalar-color-1)"},{tag:[Ie.operator],color:"var(--scalar-color-2)"},{tag:[Ie.keyword,Ie.typeName,Ie.typeOperator],color:"var(--scalar-color-green)"},{tag:[Ie.string],color:"var(--scalar-color-blue)"},{tag:[Ie.bracket,Ie.regexp,Ie.meta],color:"var(--scalar-color-3)"},{tag:[Ie.number],color:"var(--scalar-color-blue)"},{tag:[Ie.name,Ie.quote],color:"var(--scalar-color-3)"},{tag:[Ie.heading],color:"var(--scalar-color-3)",fontWeight:"bold"},{tag:[Ie.emphasis],color:"var(--scalar-color-3)",fontStyle:"italic"},{tag:[Ie.deleted],color:"var(--scalar-color-3)",backgroundColor:"transparent"},{tag:[Ie.atom,Ie.bool,Ie.special(Ie.variableName)],color:"var(--scalar-color-3)"},{tag:[Ie.url,Ie.escape,Ie.regexp,Ie.link],color:"var(--scalar-color-1)"},{tag:Ie.link,textDecoration:"underline"},{tag:Ie.strikethrough,textDecoration:"line-through"},{tag:Ie.invalid,color:"var(--scalar-color-3)"}]}),tO=new m$({regexp:/(\{[^}]+\})/g,decoration:()=>yn.mark({attributes:{class:"api-client-url-variable"}})}),Tle=()=>Ii.fromClass(class{constructor(e){sie(this,"variables"),this.variables=tO.createDeco(e)}update(e){this.variables=tO.updateDeco(e,this.variables)}},{decorations:e=>e.variables,provide:e=>Nt.atomicRanges.of(t=>{var n;return((n=t.plugin(e))==null?void 0:n.variables)||yn.none})}),Sle={class:"scalar-modal-layout modal-layout"},kle=Se({__name:"FlowModal",props:{state:{},title:{},bodyClass:{},maxWidth:{},variant:{default:"normal"}},setup(e){return(t,n)=>(C(),he(D(cH),{open:t.state.open,onClose:n[0]||(n[0]=r=>t.state.hide())},{default:X(()=>[ae("div",Sle,[Z(D(uH),{class:ct(["modal",{"modal-content-large":t.variant==="large","modal-content-normal":t.variant==="normal","modal-content-small":t.variant==="small","modal-content-search":t.variant==="search","modal-content-history":t.variant==="history"}]),style:_r({maxWidth:t.maxWidth})},{default:X(()=>[t.title?(C(),he(D(dH),{key:0,class:"modal-header"},{default:X(()=>[Pe(Ue(t.title),1)]),_:1})):be("",!0),Z(D(fH),{class:ct(["modal-body custom-scroll",[t.bodyClass]])},{default:X(()=>[Be(t.$slots,"default",{},void 0,!0)]),_:3},8,["class"])]),_:3},8,["class","style"])])]),_:3},8,["open"]))}}),V$=je(kle,[["__scopeId","data-v-4aafbf68"]]),q$=()=>or({open:!1,show(){this.open=!0},hide(){this.open=!1}});function Wm(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function z$(e){return typeof window>"u"?Buffer.from(e).toString("base64"):btoa(e)}const K$=e=>{const t=/(?:\{+)\s*(\w+)\s*(?:\}+)/g;return[...e.matchAll(t)].map(n=>n[1].trim())||[]};function Ale(e){return!(!e||Array.isArray(e)&&!e.length||(e??[]).some(t=>!Object.keys(t).length))}function IT(e,t){var n,r;const i=[],s=[],o=[];if(!e.customSecurity&&(!e.preferredSecurityScheme||!Ale(t)))return{headers:i,queryString:s,cookies:o};const a=t!=null&&t.some(c=>e.preferredSecurityScheme&&Object.keys(c).includes(e.preferredSecurityScheme))||e.customSecurity?e.preferredSecurityScheme:Object.keys((t==null?void 0:t[0])??{}).pop(),l=(n=e.securitySchemes)==null?void 0:n[a??""];if(l){if("type"in l&&l.type==="apiKey"){if("in"in l&&l.in==="header"){const c=(r=e.apiKey.token)!=null&&r.length?e.apiKey.token:"YOUR_TOKEN";i.push({name:"name"in l?l.name:"",value:c})}else if("in"in l&&l.in==="cookie"){const c=e.apiKey.token.length?e.apiKey.token:"YOUR_TOKEN";o.push({name:l.name,value:c})}else if("in"in l&&l.in==="query"){const c=e.apiKey.token.length?e.apiKey.token:"YOUR_TOKEN";s.push({name:l.name,value:c})}}else if("type"in l&&(l.type==="http"||l.type==="basic")){if("type"in l&&(l.type==="basic"||l.type==="http"&&l.scheme==="basic")){const{username:c,password:u}=e.http.basic,d=RT(c,u);i.push({name:"Authorization",value:`Basic ${d}`.trim()})}else if("type"in l&&l.type==="http"&&l.scheme==="bearer"){const c=e.http.bearer.token.length?e.http.bearer.token:"YOUR_SECRET_TOKEN";i.push({name:"Authorization",value:`Bearer ${c}`})}}else if("type"in l&&l.type.toLowerCase()==="oauth2"){const c=e.oAuth2.accessToken||"YOUR_SECRET_TOKEN";i.push({name:"Authorization",value:`Bearer ${c}`})}}return{headers:i,queryString:s,cookies:o}}function RT(e,t){return e!=null&&e.length||t!=null&&t.length?z$(`${e}:${t}`):""}function W$(e){return[e.apiKey.token,e.http.bearer.token,e.oAuth2.accessToken,RT(e.http.basic.username,e.http.basic.password),e.http.basic.password].filter(Boolean)}const xle=kw(Symbol()),Nle={},Cle={class:"card-form"};function Ole(e,t){return C(),V("form",Cle,[Be(e.$slots,"default",{},void 0,!0)])}const Dle=je(Nle,[["render",Ole],["__scopeId","data-v-983db964"]]),Ile=Se({__name:"CardFormButton",setup(e,{expose:t}){const n=de();return t({el:n}),(r,i)=>(C(),V("button",{ref_key:"el",ref:n,class:"card-form-button",type:"button"},[Be(r.$slots,"default",{},void 0,!0)],512))}}),G$=je(Ile,[["__scopeId","data-v-d19add49"]]),Rle={},Ple={class:"card-form-group"};function Lle(e,t){return C(),V("div",Ple,[Be(e.$slots,"default",{},void 0,!0)])}const nO=je(Rle,[["render",Lle],["__scopeId","data-v-6604ef98"]]);function Y$(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Y$(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Tv(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Y$(e))&&(r&&(r+=" "),r+=t);return r}const rO=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,Mle=e=>{const t=function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var s,o;return typeof(e==null||(s=e.hooks)===null||s===void 0?void 0:s["cx:done"])<"u"?e==null?void 0:e.hooks["cx:done"](Tv(r)):typeof(e==null||(o=e.hooks)===null||o===void 0?void 0:o.onComplete)<"u"?e==null?void 0:e.hooks.onComplete(Tv(r)):Tv(r)};return{compose:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return s=>{const o=Object.fromEntries(Object.entries(s||{}).filter(a=>{let[l]=a;return!["class","className"].includes(l)}));return t(r.map(a=>a(o)),s==null?void 0:s.class,s==null?void 0:s.className)}},cva:n=>r=>{var i;if((n==null?void 0:n.variants)==null)return t(n==null?void 0:n.base,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:o}=n,a=Object.keys(s).map(u=>{const d=r==null?void 0:r[u],f=o==null?void 0:o[u],h=rO(d)||rO(f);return s[u][h]}),l={...o,...r&&Object.entries(r).reduce((u,d)=>{let[f,h]=d;return typeof h>"u"?u:{...u,[f]:h}},{})},c=n==null||(i=n.compoundVariants)===null||i===void 0?void 0:i.reduce((u,d)=>{let{class:f,className:h,...p}=d;return Object.entries(p).every(m=>{let[g,b]=m;const v=l[g];return Array.isArray(b)?b.includes(v):v===b})?[...u,f,h]:u},[]);return t(n==null?void 0:n.base,a,c,r==null?void 0:r.class,r==null?void 0:r.className)},cx:t}},PT="-";function $le(e){const t=Ble(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;function i(o){const a=o.split(PT);return a[0]===""&&a.length!==1&&a.shift(),X$(a,t)||Fle(o)}function s(o,a){const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}return{getClassGroupId:i,getConflictingClassGroupIds:s}}function X$(e,t){var n;if(e.length===0)return t.classGroupId;const r=e[0],i=t.nextPart.get(r),s=i?X$(e.slice(1),i):void 0;if(s)return s;if(t.validators.length===0)return;const o=e.join(PT);return(n=t.validators.find(({validator:a})=>a(o)))==null?void 0:n.classGroupId}const iO=/^\[(.+)\]$/;function Fle(e){if(iO.test(e)){const t=iO.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function Ble(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Hle(Object.entries(e.classGroups),n).forEach(([i,s])=>{zE(s,r,i,t)}),r}function zE(e,t,n,r){e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:sO(t,i);s.classGroupId=n;return}if(typeof i=="function"){if(Ule(i)){zE(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([s,o])=>{zE(o,sO(t,s),n,r)})})}function sO(e,t){let n=e;return t.split(PT).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function Ule(e){return e.isThemeGetter}function Hle(e,t){return t?e.map(([n,r])=>{const i=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([o,a])=>[t+o,a])):s);return[n,i]}):e}function jle(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function i(s,o){n.set(s,o),t++,t>e&&(t=0,r=n,n=new Map)}return{get(s){let o=n.get(s);if(o!==void 0)return o;if((o=r.get(s))!==void 0)return i(s,o),o},set(s,o){n.has(s)?n.set(s,o):i(s,o)}}}const Q$="!";function Vle(e){const t=e.separator,n=t.length===1,r=t[0],i=t.length;return function(s){const o=[];let a=0,l=0,c;for(let p=0;p<s.length;p++){let m=s[p];if(a===0){if(m===r&&(n||s.slice(p,p+i)===t)){o.push(s.slice(l,p)),l=p+i;continue}if(m==="/"){c=p;continue}}m==="["?a++:m==="]"&&a--}const u=o.length===0?s:s.substring(l),d=u.startsWith(Q$),f=d?u.substring(1):u,h=c&&c>l?c-l:void 0;return{modifiers:o,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:h}}}function qle(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t}function zle(e){return{cache:jle(e.cacheSize),splitModifiers:Vle(e),...$le(e)}}const Kle=/\s+/;function Wle(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,s=new Set;return e.trim().split(Kle).map(o=>{const{modifiers:a,hasImportantModifier:l,baseClassName:c,maybePostfixModifierPosition:u}=n(o);let d=r(u?c.substring(0,u):c),f=!!u;if(!d){if(!u)return{isTailwindClass:!1,originalClassName:o};if(d=r(c),!d)return{isTailwindClass:!1,originalClassName:o};f=!1}const h=qle(a).join(":");return{isTailwindClass:!0,modifierId:l?h+Q$:h,classGroupId:d,originalClassName:o,hasPostfixModifier:f}}).reverse().filter(o=>{if(!o.isTailwindClass)return!0;const{modifierId:a,classGroupId:l,hasPostfixModifier:c}=o,u=a+l;return s.has(u)?!1:(s.add(u),i(l,c).forEach(d=>s.add(a+d)),!0)}).reverse().map(o=>o.originalClassName).join(" ")}function Gle(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=J$(t))&&(r&&(r+=" "),r+=n);return r}function J$(e){if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=J$(e[r]))&&(n&&(n+=" "),n+=t);return n}function oO(e,...t){let n,r,i,s=o;function o(l){const c=t.reduce((u,d)=>d(u),e());return n=zle(c),r=n.cache.get,i=n.cache.set,s=a,a(l)}function a(l){const c=r(l);if(c)return c;const u=Wle(l,n);return i(l,u),u}return function(){return s(Gle.apply(null,arguments))}}function nn(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const Z$=/^\[(?:([a-z-]+):)?(.+)\]$/i,Yle=/^\d+\/\d+$/,Xle=new Set(["px","full","screen"]),Qle=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Jle=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Zle=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ece=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,tce=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function zs(e){return gl(e)||Xle.has(e)||Yle.test(e)}function Mo(e){return Gu(e,"length",cce)}function gl(e){return!!e&&!Number.isNaN(Number(e))}function cm(e){return Gu(e,"number",gl)}function Fd(e){return!!e&&Number.isInteger(Number(e))}function nce(e){return e.endsWith("%")&&gl(e.slice(0,-1))}function vt(e){return Z$.test(e)}function $o(e){return Qle.test(e)}const rce=new Set(["length","size","percentage"]);function ice(e){return Gu(e,rce,eF)}function sce(e){return Gu(e,"position",eF)}const oce=new Set(["image","url"]);function ace(e){return Gu(e,oce,dce)}function lce(e){return Gu(e,"",uce)}function Bd(){return!0}function Gu(e,t,n){const r=Z$.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function cce(e){return Jle.test(e)&&!Zle.test(e)}function eF(){return!1}function uce(e){return ece.test(e)}function dce(e){return tce.test(e)}function aO(){const e=nn("colors"),t=nn("spacing"),n=nn("blur"),r=nn("brightness"),i=nn("borderColor"),s=nn("borderRadius"),o=nn("borderSpacing"),a=nn("borderWidth"),l=nn("contrast"),c=nn("grayscale"),u=nn("hueRotate"),d=nn("invert"),f=nn("gap"),h=nn("gradientColorStops"),p=nn("gradientColorStopPositions"),m=nn("inset"),g=nn("margin"),b=nn("opacity"),v=nn("padding"),y=nn("saturate"),E=nn("scale"),T=nn("sepia"),w=nn("skew"),S=nn("space"),k=nn("translate"),x=()=>["auto","contain","none"],A=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto",vt,t],R=()=>[vt,t],te=()=>["",zs,Mo],ee=()=>["auto",gl,vt],oe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],pe=()=>["solid","dashed","dotted","double","none"],G=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Q=()=>["start","end","center","between","around","evenly","stretch"],fe=()=>["","0",vt],O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>[gl,cm],J=()=>[gl,vt];return{cacheSize:500,separator:":",theme:{colors:[Bd],spacing:[zs,Mo],blur:["none","",$o,vt],brightness:B(),borderColor:[e],borderRadius:["none","","full",$o,vt],borderSpacing:R(),borderWidth:te(),contrast:B(),grayscale:fe(),hueRotate:J(),invert:fe(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[nce,Mo],inset:M(),margin:M(),opacity:B(),padding:R(),saturate:B(),scale:B(),sepia:fe(),skew:J(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",vt]}],container:["container"],columns:[{columns:[$o]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...oe(),vt]}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:x()}],"overscroll-x":[{"overscroll-x":x()}],"overscroll-y":[{"overscroll-y":x()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Fd,vt]}],basis:[{basis:M()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",vt]}],grow:[{grow:fe()}],shrink:[{shrink:fe()}],order:[{order:["first","last","none",Fd,vt]}],"grid-cols":[{"grid-cols":[Bd]}],"col-start-end":[{col:["auto",{span:["full",Fd,vt]},vt]}],"col-start":[{"col-start":ee()}],"col-end":[{"col-end":ee()}],"grid-rows":[{"grid-rows":[Bd]}],"row-start-end":[{row:["auto",{span:[Fd,vt]},vt]}],"row-start":[{"row-start":ee()}],"row-end":[{"row-end":ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",vt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",vt]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...Q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",vt,t]}],"min-w":[{"min-w":[vt,t,"min","max","fit"]}],"max-w":[{"max-w":[vt,t,"none","full","min","max","fit","prose",{screen:[$o]},$o]}],h:[{h:[vt,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[vt,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[vt,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[vt,t,"auto","min","max","fit"]}],"font-size":[{text:["base",$o,Mo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",cm]}],"font-family":[{font:[Bd]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",vt]}],"line-clamp":[{"line-clamp":["none",gl,cm]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",zs,vt]}],"list-image":[{"list-image":["none",vt]}],"list-style-type":[{list:["none","disc","decimal",vt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...pe(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",zs,Mo]}],"underline-offset":[{"underline-offset":["auto",zs,vt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",vt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",vt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...oe(),sce]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ice]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ace]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...pe(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:pe()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...pe()]}],"outline-offset":[{"outline-offset":[zs,vt]}],"outline-w":[{outline:[zs,Mo]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[zs,Mo]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",$o,lce]}],"shadow-color":[{shadow:[Bd]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...G(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":G()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",$o,vt]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[y]}],sepia:[{sepia:[T]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[T]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",vt]}],duration:[{duration:J()}],ease:[{ease:["linear","in","out","in-out",vt]}],delay:[{delay:J()}],animate:[{animate:["none","spin","ping","pulse","bounce",vt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[Fd,vt]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[w]}],"skew-y":[{"skew-y":[w]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",vt]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",vt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",vt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[zs,Mo,cm]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function fce(e,{cacheSize:t,prefix:n,separator:r,extend:i={},override:s={}}){Gm(e,"cacheSize",t),Gm(e,"prefix",n),Gm(e,"separator",r);for(const o in s)hce(e[o],s[o]);for(const o in i)pce(e[o],i[o]);return e}function Gm(e,t,n){n!==void 0&&(e[t]=n)}function hce(e,t){if(t)for(const n in t)Gm(e,n,t[n])}function pce(e,t){if(t)for(const n in t){const r=t[n];r!==void 0&&(e[n]=(e[n]||[]).concat(r))}}function mce(e,...t){return typeof e=="function"?oO(aO,e,...t):oO(()=>fce(aO(),e),...t)}const Kg=Math.min,Ll=Math.max,Wg=Math.round,um=Math.floor,Ra=e=>({x:e,y:e}),gce={left:"right",right:"left",bottom:"top",top:"bottom"},bce={start:"end",end:"start"};function lO(e,t,n){return Ll(e,Kg(t,n))}function _b(e,t){return typeof e=="function"?e(t):e}function Wl(e){return e.split("-")[0]}function wb(e){return e.split("-")[1]}function tF(e){return e==="x"?"y":"x"}function nF(e){return e==="y"?"height":"width"}function Tb(e){return["top","bottom"].includes(Wl(e))?"y":"x"}function rF(e){return tF(Tb(e))}function yce(e,t,n){n===void 0&&(n=!1);const r=wb(e),i=rF(e),s=nF(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=Gg(o)),[o,Gg(o)]}function vce(e){const t=Gg(e);return[KE(e),t,KE(t)]}function KE(e){return e.replace(/start|end/g,t=>bce[t])}function Ece(e,t,n){const r=["left","right"],i=["right","left"],s=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?s:o;default:return[]}}function _ce(e,t,n,r){const i=wb(e);let s=Ece(Wl(e),n==="start",r);return i&&(s=s.map(o=>o+"-"+i),t&&(s=s.concat(s.map(KE)))),s}function Gg(e){return e.replace(/left|right|bottom|top/g,t=>gce[t])}function wce(e){return{top:0,right:0,bottom:0,left:0,...e}}function Tce(e){return typeof e!="number"?wce(e):{top:e,right:e,bottom:e,left:e}}function Yg(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function cO(e,t,n){let{reference:r,floating:i}=e;const s=Tb(t),o=rF(t),a=nF(o),l=Wl(t),c=s==="y",u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[a]/2-i[a]/2;let h;switch(l){case"top":h={x:u,y:r.y-i.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-i.width,y:d};break;default:h={x:r.x,y:r.y}}switch(wb(t)){case"start":h[o]-=f*(n&&c?-1:1);break;case"end":h[o]+=f*(n&&c?-1:1);break}return h}const Sce=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:o}=n,a=s.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=cO(c,r,l),f=r,h={},p=0;for(let m=0;m<a.length;m++){const{name:g,fn:b}=a[m],{x:v,y,data:E,reset:T}=await b({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:h,rects:c,platform:o,elements:{reference:e,floating:t}});u=v??u,d=y??d,h={...h,[g]:{...h[g],...E}},T&&p<=50&&(p++,typeof T=="object"&&(T.placement&&(f=T.placement),T.rects&&(c=T.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):T.rects),{x:u,y:d}=cO(c,f,l)),m=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:h}};async function iF(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=_b(t,e),p=Tce(h),m=a[f?d==="floating"?"reference":"floating":d],g=Yg(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(m)))==null||n?m:m.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),b=d==="floating"?{...o.floating,x:r,y:i}:o.reference,v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),y=await(s.isElement==null?void 0:s.isElement(v))?await(s.getScale==null?void 0:s.getScale(v))||{x:1,y:1}:{x:1,y:1},E=Yg(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:v,strategy:l}):b);return{top:(g.top-E.top+p.top)/y.y,bottom:(E.bottom-g.bottom+p.bottom)/y.y,left:(g.left-E.left+p.left)/y.x,right:(E.right-g.right+p.right)/y.x}}const kce=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:s,rects:o,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...g}=_b(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const b=Wl(i),v=Wl(a)===a,y=await(l.isRTL==null?void 0:l.isRTL(c.floating)),E=f||(v||!m?[Gg(a)]:vce(a));!f&&p!=="none"&&E.push(..._ce(a,m,p,y));const T=[a,...E],w=await iF(t,g),S=[];let k=((r=s.flip)==null?void 0:r.overflows)||[];if(u&&S.push(w[b]),d){const R=yce(i,o,y);S.push(w[R[0]],w[R[1]])}if(k=[...k,{placement:i,overflows:S}],!S.every(R=>R<=0)){var x,A;const R=(((x=s.flip)==null?void 0:x.index)||0)+1,te=T[R];if(te)return{data:{index:R,overflows:k},reset:{placement:te}};let ee=(A=k.filter(oe=>oe.overflows[0]<=0).sort((oe,pe)=>oe.overflows[1]-pe.overflows[1])[0])==null?void 0:A.placement;if(!ee)switch(h){case"bestFit":{var M;const oe=(M=k.map(pe=>[pe.placement,pe.overflows.filter(G=>G>0).reduce((G,Q)=>G+Q,0)]).sort((pe,G)=>pe[1]-G[1])[0])==null?void 0:M[0];oe&&(ee=oe);break}case"initialPlacement":ee=a;break}if(i!==ee)return{reset:{placement:ee}}}return{}}}};async function Ace(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Wl(n),a=wb(n),l=Tb(n)==="y",c=["left","top"].includes(o)?-1:1,u=s&&l?-1:1,d=_b(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof p=="number"&&(h=a==="end"?p*-1:p),l?{x:h*u,y:f*c}:{x:f*c,y:h*u}}const xce=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:o,middlewareData:a}=t,l=await Ace(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:o}}}}},Nce=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:o=!1,limiter:a={fn:g=>{let{x:b,y:v}=g;return{x:b,y:v}}},...l}=_b(e,t),c={x:n,y:r},u=await iF(t,l),d=Tb(Wl(i)),f=tF(d);let h=c[f],p=c[d];if(s){const g=f==="y"?"top":"left",b=f==="y"?"bottom":"right",v=h+u[g],y=h-u[b];h=lO(v,h,y)}if(o){const g=d==="y"?"top":"left",b=d==="y"?"bottom":"right",v=p+u[g],y=p-u[b];p=lO(v,p,y)}const m=a.fn({...t,[f]:h,[d]:p});return{...m,data:{x:m.x-n,y:m.y-r}}}}};function vo(e){return LT(e)?(e.nodeName||"").toLowerCase():"#document"}function ui(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Co(e){var t;return(t=(LT(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function LT(e){return e instanceof Node||e instanceof ui(e).Node}function Eo(e){return e instanceof Element||e instanceof ui(e).Element}function Ms(e){return e instanceof HTMLElement||e instanceof ui(e).HTMLElement}function uO(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ui(e).ShadowRoot}function Vh(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Ri(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Cce(e){return["table","td","th"].includes(vo(e))}function MT(e){const t=$T(),n=Ri(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Oce(e){let t=_u(e);for(;Ms(t)&&!Sb(t);){if(MT(t))return t;t=_u(t)}return null}function $T(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Sb(e){return["html","body","#document"].includes(vo(e))}function Ri(e){return ui(e).getComputedStyle(e)}function kb(e){return Eo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function _u(e){if(vo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||uO(e)&&e.host||Co(e);return uO(t)?t.host:t}function sF(e){const t=_u(e);return Sb(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ms(t)&&Vh(t)?t:sF(t)}function lh(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=sF(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),o=ui(i);return s?t.concat(o,o.visualViewport||[],Vh(i)?i:[],o.frameElement&&n?lh(o.frameElement):[]):t.concat(i,lh(i,[],n))}function oF(e){const t=Ri(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Ms(e),s=i?e.offsetWidth:n,o=i?e.offsetHeight:r,a=Wg(n)!==s||Wg(r)!==o;return a&&(n=s,r=o),{width:n,height:r,$:a}}function FT(e){return Eo(e)?e:e.contextElement}function tu(e){const t=FT(e);if(!Ms(t))return Ra(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=oF(t);let o=(s?Wg(n.width):n.width)/r,a=(s?Wg(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const Dce=Ra(0);function aF(e){const t=ui(e);return!$T()||!t.visualViewport?Dce:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ice(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ui(e)?!1:t}function Gl(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=FT(e);let o=Ra(1);t&&(r?Eo(r)&&(o=tu(r)):o=tu(e));const a=Ice(s,n,r)?aF(s):Ra(0);let l=(i.left+a.x)/o.x,c=(i.top+a.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(s){const f=ui(s),h=r&&Eo(r)?ui(r):r;let p=f,m=p.frameElement;for(;m&&r&&h!==p;){const g=tu(m),b=m.getBoundingClientRect(),v=Ri(m),y=b.left+(m.clientLeft+parseFloat(v.paddingLeft))*g.x,E=b.top+(m.clientTop+parseFloat(v.paddingTop))*g.y;l*=g.x,c*=g.y,u*=g.x,d*=g.y,l+=y,c+=E,p=ui(m),m=p.frameElement}}return Yg({width:u,height:d,x:l,y:c})}const Rce=[":popover-open",":modal"];function lF(e){return Rce.some(t=>{try{return e.matches(t)}catch{return!1}})}function Pce(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",o=Co(r),a=t?lF(t.floating):!1;if(r===o||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=Ra(1);const u=Ra(0),d=Ms(r);if((d||!d&&!s)&&((vo(r)!=="body"||Vh(o))&&(l=kb(r)),Ms(r))){const f=Gl(r);c=tu(r),u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y}}function Lce(e){return Array.from(e.getClientRects())}function cF(e){return Gl(Co(e)).left+kb(e).scrollLeft}function Mce(e){const t=Co(e),n=kb(e),r=e.ownerDocument.body,i=Ll(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Ll(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+cF(e);const a=-n.scrollTop;return Ri(r).direction==="rtl"&&(o+=Ll(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:a}}function $ce(e,t){const n=ui(e),r=Co(e),i=n.visualViewport;let s=r.clientWidth,o=r.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;const c=$T();(!c||c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:a,y:l}}function Fce(e,t){const n=Gl(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=Ms(e)?tu(e):Ra(1),o=e.clientWidth*s.x,a=e.clientHeight*s.y,l=i*s.x,c=r*s.y;return{width:o,height:a,x:l,y:c}}function dO(e,t,n){let r;if(t==="viewport")r=$ce(e,n);else if(t==="document")r=Mce(Co(e));else if(Eo(t))r=Fce(t,n);else{const i=aF(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return Yg(r)}function uF(e,t){const n=_u(e);return n===t||!Eo(n)||Sb(n)?!1:Ri(n).position==="fixed"||uF(n,t)}function Bce(e,t){const n=t.get(e);if(n)return n;let r=lh(e,[],!1).filter(a=>Eo(a)&&vo(a)!=="body"),i=null;const s=Ri(e).position==="fixed";let o=s?_u(e):e;for(;Eo(o)&&!Sb(o);){const a=Ri(o),l=MT(o);!l&&a.position==="fixed"&&(i=null),(s?!l&&!i:!l&&a.position==="static"&&i&&["absolute","fixed"].includes(i.position)||Vh(o)&&!l&&uF(e,o))?r=r.filter(c=>c!==o):i=a,o=_u(o)}return t.set(e,r),r}function Uce(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?Bce(t,this._c):[].concat(n),r],o=s[0],a=s.reduce((l,c)=>{const u=dO(t,c,i);return l.top=Ll(u.top,l.top),l.right=Kg(u.right,l.right),l.bottom=Kg(u.bottom,l.bottom),l.left=Ll(u.left,l.left),l},dO(t,o,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Hce(e){const{width:t,height:n}=oF(e);return{width:t,height:n}}function jce(e,t,n){const r=Ms(t),i=Co(t),s=n==="fixed",o=Gl(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=Ra(0);if(r||!r&&!s)if((vo(t)!=="body"||Vh(i))&&(a=kb(t)),r){const d=Gl(t,!0,s,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else i&&(l.x=cF(i));const c=o.left+a.scrollLeft-l.x,u=o.top+a.scrollTop-l.y;return{x:c,y:u,width:o.width,height:o.height}}function fO(e,t){return!Ms(e)||Ri(e).position==="fixed"?null:t?t(e):e.offsetParent}function dF(e,t){const n=ui(e);if(!Ms(e)||lF(e))return n;let r=fO(e,t);for(;r&&Cce(r)&&Ri(r).position==="static";)r=fO(r,t);return r&&(vo(r)==="html"||vo(r)==="body"&&Ri(r).position==="static"&&!MT(r))?n:r||Oce(e)||n}const Vce=async function(e){const t=this.getOffsetParent||dF,n=this.getDimensions;return{reference:jce(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}};function qce(e){return Ri(e).direction==="rtl"}const zce={convertOffsetParentRelativeRectToViewportRelativeRect:Pce,getDocumentElement:Co,getClippingRect:Uce,getOffsetParent:dF,getElementRects:Vce,getClientRects:Lce,getDimensions:Hce,getScale:tu,isElement:Eo,isRTL:qce};function Kce(e,t){let n=null,r;const i=Co(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(a||t(),!d||!f)return;const h=um(u),p=um(i.clientWidth-(c+d)),m=um(i.clientHeight-(u+f)),g=um(c),b={rootMargin:-h+"px "+-p+"px "+-m+"px "+-g+"px",threshold:Ll(0,Kg(1,l))||1};let v=!0;function y(E){const T=E[0].intersectionRatio;if(T!==l){if(!v)return o();T?o(!1,T):r=setTimeout(()=>{o(!1,1e-7)},100)}v=!1}try{n=new IntersectionObserver(y,{...b,root:i.ownerDocument})}catch{n=new IntersectionObserver(y,b)}n.observe(e)}return o(!0),s}function Wce(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=FT(e),u=i||s?[...c?lh(c):[],...lh(t)]:[];u.forEach(b=>{i&&b.addEventListener("scroll",n,{passive:!0}),s&&b.addEventListener("resize",n)});const d=c&&a?Kce(c,n):null;let f=-1,h=null;o&&(h=new ResizeObserver(b=>{let[v]=b;v&&v.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var y;(y=h)==null||y.observe(t)})),n()}),c&&!l&&h.observe(c),h.observe(t));let p,m=l?Gl(e):null;l&&g();function g(){const b=Gl(e);m&&(b.x!==m.x||b.y!==m.y||b.width!==m.width||b.height!==m.height)&&n(),m=b,p=requestAnimationFrame(g)}return n(),()=>{var b;u.forEach(v=>{i&&v.removeEventListener("scroll",n),s&&v.removeEventListener("resize",n)}),d==null||d(),(b=h)==null||b.disconnect(),h=null,l&&cancelAnimationFrame(p)}}const Gce=Nce,Yce=kce,Xce=(e,t,n)=>{const r=new Map,i={platform:zce,...n},s={...i.platform,_c:r};return Sce(e,t,{...i,platform:s})};function Qce(e){return e!=null&&typeof e=="object"&&"$el"in e}function hO(e){if(Qce(e)){const t=e.$el;return LT(t)&&vo(t)==="#comment"?null:t}return e}function fF(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function pO(e,t){const n=fF(e);return Math.round(t*n)/n}function Jce(e,t,n){n===void 0&&(n={});const r=n.whileElementsMounted,i=ue(()=>{var S;return(S=D(n.open))!=null?S:!0}),s=ue(()=>D(n.middleware)),o=ue(()=>{var S;return(S=D(n.placement))!=null?S:"bottom"}),a=ue(()=>{var S;return(S=D(n.strategy))!=null?S:"absolute"}),l=ue(()=>{var S;return(S=D(n.transform))!=null?S:!0}),c=ue(()=>hO(e.value)),u=ue(()=>hO(t.value)),d=de(0),f=de(0),h=de(a.value),p=de(o.value),m=N0({}),g=de(!1),b=ue(()=>{const S={position:h.value,left:"0",top:"0"};if(!u.value)return S;const k=pO(u.value,d.value),x=pO(u.value,f.value);return l.value?{...S,transform:"translate("+k+"px, "+x+"px)",...fF(u.value)>=1.5&&{willChange:"transform"}}:{position:h.value,left:k+"px",top:x+"px"}});let v;function y(){c.value==null||u.value==null||Xce(c.value,u.value,{middleware:s.value,placement:o.value,strategy:a.value}).then(S=>{d.value=S.x,f.value=S.y,h.value=S.strategy,p.value=S.placement,m.value=S.middlewareData,g.value=!0})}function E(){typeof v=="function"&&(v(),v=void 0)}function T(){if(E(),r===void 0){y();return}if(c.value!=null&&u.value!=null){v=r(c.value,u.value,y);return}}function w(){i.value||(g.value=!1)}return dt([s,o,a],y,{flush:"sync"}),dt([c,u],T,{flush:"sync"}),dt(i,w,{flush:"sync"}),_h()&&B_(E),{x:ni(d),y:ni(f),strategy:ni(h),placement:ni(p),middlewareData:ni(m),isPositioned:ni(g),floatingStyles:b,update:y}}const WE="scalar-component",Zce=mce({extend:{classGroups:{"font-size":["text-xxs"],[WE]:[WE]}}}),{cva:BT,cx:fc,compose:sNe}=Mle({hooks:{onComplete:e=>`${Zce(e,WE)}`}}),eue=rc('<path class="svg-path svg-check-mark" d="m 0 60 l 30 30 l 70 -80" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 -40" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 40" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 -40" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 40" data-v-47faceda></path>',5),tue={key:0,class:"circular-loader"},nue=Se({__name:"ScalarLoading",props:{loadingState:{},size:{default:"24px"}},setup(e){return gI(t=>({d6cae758:t.size})),(t,n)=>t.loadingState?(C(),V("div",{key:0,class:ct(D(fc)("loader-wrapper"))},[(C(),V("svg",{class:ct(["svg-loader",{"icon-is-valid":t.loadingState.isValid,"icon-is-invalid":t.loadingState.isInvalid}]),viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[eue,t.loadingState.isLoading?(C(),V("g",tue,[ae("circle",{class:ct(["loader-path",{"loader-path-off":t.loadingState.isValid||t.loadingState.isInvalid}]),cx:"50",cy:"50",fill:"none",r:"20","stroke-width":"2"},null,2)])):be("",!0)],2))],2)):be("",!0)}}),rue=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},hF=rue(nue,[["__scopeId","data-v-47faceda"]]),pF={solid:["scalar-button-solid","bg-back-btn-1 text-fore-btn-1 shadow-sm active:bg-back-btn-1 active:shadow-none hocus:bg-hover-btn-1"],outlined:["scalar-button-outlined","active:bg-btn-1 border border-solid border-border bg-transparent text-fore-1 hocus:bg-border"],ghost:["scalar-button-ghost","bg-transparent text-fore-3 transition-colors active:text-fore-1 hocus:text-fore-1"],danger:["scalar-button-danger","bg-error text-white active:brightness-90 hocus:brightness-90"]},iue=BT({base:"scalar-button row cursor-pointer items-center justify-center rounded font-medium",variants:{disabled:{true:"bg-background-2 text-color-3 cursor-not-allowed shadow-none"},fullWidth:{true:"w-full"},size:{sm:"px-2 py-1 text-xs",md:"h-10 px-6 text-sm"},variant:pF},compoundVariants:[{disabled:!0,variant:"ghost",class:"bg-transparent text-ghost"}]}),sue=["ariaDisabled"],oue={key:0,class:"mr-2 h-4 w-4"},aue={key:1,class:"ml-2"},GE=Se({inheritAttrs:!1,__name:"ScalarButton",props:{disabled:{type:Boolean},fullWidth:{type:Boolean,default:!1},loading:{},size:{default:"md"},variant:{default:"solid"}},setup(e){const t=ue(()=>{const{class:n,...r}=nc();return{class:n||"",rest:r}});return(n,r)=>(C(),V("button",ko(t.value.rest,{ariaDisabled:n.disabled||void 0,class:D(fc)(D(iue)({fullWidth:n.fullWidth,disabled:n.disabled,size:n.size,variant:n.variant}),{"pl-9 pr-3":n.loading},`${t.value.class}`),type:"button"}),[n.$slots.icon?(C(),V("div",oue,[Be(n.$slots,"icon")])):be("",!0),Be(n.$slots,"default"),n.loading?(C(),V("div",aue,[Z(D(hF),{loadingState:n.loading,size:"20px"},null,8,["loadingState"])])):be("",!0)],16,sue))}});(function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],s=r.variable[1].inside,o=0;o<i.length;o++)s[i[o]]=e.languages.bash[i[o]];e.languages.sh=e.languages.bash,e.languages.shell=e.languages.bash})(Prism);Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}};Prism.languages.webmanifest=Prism.languages.json;(function(){if(typeof Prism>"u"||typeof document>"u")return;var e="line-numbers",t=/\n(?!$)/g,n=Prism.plugins.lineNumbers={getLine:function(o,a){if(!(o.tagName!=="PRE"||!o.classList.contains(e))){var l=o.querySelector(".line-numbers-rows");if(l){var c=parseInt(o.getAttribute("data-start"),10)||1,u=c+(l.children.length-1);a<c&&(a=c),a>u&&(a=u);var d=a-c;return l.children[d]}}},resize:function(o){r([o])},assumeViewportIndependence:!0};function r(o){if(o=o.filter(function(l){var c=i(l),u=c["white-space"];return u==="pre-wrap"||u==="pre-line"}),o.length!=0){var a=o.map(function(l){var c=l.querySelector("code"),u=l.querySelector(".line-numbers-rows");if(!(!c||!u)){var d=l.querySelector(".line-numbers-sizer"),f=c.textContent.split(t);d||(d=document.createElement("span"),d.className="line-numbers-sizer",c.appendChild(d)),d.innerHTML="0",d.style.display="block";var h=d.getBoundingClientRect().height;return d.innerHTML="",{element:l,lines:f,lineHeights:[],oneLinerHeight:h,sizer:d}}}).filter(Boolean);a.forEach(function(l){var c=l.sizer,u=l.lines,d=l.lineHeights,f=l.oneLinerHeight;d[u.length-1]=void 0,u.forEach(function(h,p){if(h&&h.length>1){var m=c.appendChild(document.createElement("span"));m.style.display="block",m.textContent=h}else d[p]=f})}),a.forEach(function(l){for(var c=l.sizer,u=l.lineHeights,d=0,f=0;f<u.length;f++)u[f]===void 0&&(u[f]=c.children[d++].getBoundingClientRect().height)}),a.forEach(function(l){var c=l.sizer,u=l.element.querySelector(".line-numbers-rows");c.style.display="none",c.innerHTML="",l.lineHeights.forEach(function(d,f){u.children[f].style.height=d+"px"})})}}function i(o){return o?window.getComputedStyle?getComputedStyle(o):o.currentStyle||null:null}var s=void 0;window.addEventListener("resize",function(){n.assumeViewportIndependence&&s===window.innerWidth||(s=window.innerWidth,r(Array.prototype.slice.call(document.querySelectorAll("pre."+e))))}),Prism.hooks.add("complete",function(o){if(o.code){var a=o.element,l=a.parentNode;if(!(!l||!/pre/i.test(l.nodeName))&&!a.querySelector(".line-numbers-rows")&&Prism.util.isActive(a,e)){a.classList.remove(e),l.classList.add(e);var c=o.code.match(t),u=c?c.length+1:1,d,f=new Array(u+1).join("<span></span>");d=document.createElement("span"),d.setAttribute("aria-hidden","true"),d.className="line-numbers-rows",d.innerHTML=f,l.hasAttribute("data-start")&&(l.style.counterReset="linenumber "+(parseInt(l.getAttribute("data-start"),10)-1)),o.element.appendChild(d),r([l]),Prism.hooks.run("line-numbers",o)}}}),Prism.hooks.add("line-numbers",function(o){o.plugins=o.plugins||{},o.plugins.lineNumbers=!0})})();function lue(e){const t=new Set;return JSON.stringify(e,(n,r)=>{if(typeof r=="object"&&r!==null){if(t.has(r))return"[Circular]";t.add(r)}return r},2)}function dm(e){if(typeof e=="string")return e;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{return lue(e)}return e}const cue=["innerHTML"],eo=Se({__name:"ScalarCodeBlock",props:{content:{},lang:{default:"js"},lineNumbers:{type:Boolean,default:!1},hideCredentials:{}},setup(e){const t=e,n=dT(dm(t.content)),r=`components-scalar-code-block${n}`,{plugins:i,highlightElement:s}=Nd;t.hideCredentials&&Nd.hooks.add("wrap",function(d){if(!t.hideCredentials)return;let f=!1;typeof t.hideCredentials=="string"?d.content.includes(t.hideCredentials)&&(f=!0):Array.isArray(t.hideCredentials)&&(f=t.hideCredentials.some(h=>d.content.includes(h))),f&&(d.content=d.content.replace(/<span class="credentials">.*?<\/span>/g,h=>h.replace(/<span class="credentials">|<\/span>/g,"")),d.content=d.content.replace(new RegExp(typeof t.hideCredentials=="string"?t.hideCredentials:t.hideCredentials.join("|"),"g"),h=>`<span class="credentials">${h}</span>`))});const o=de(null),a=de(zu[r]??""),l=ue(()=>t.lang==="node"?"js":t.lang),c=t.lang;dt([()=>t.lang,()=>t.content,o],()=>{o.value&&t.content&&(!a.value||t.lang!==c)&&(a.value="",Kn(()=>s(o.value)))},{immediate:!0});const u=/\n(?!$)/g;return So(async()=>{let d="";t.lineNumbers&&Nd.hooks.add("after-tokenize",h=>{const p=h.code.match(u),m=p?p.length+1:1;d=`<span aria-hidden="true" class="line-numbers-rows">${new Array(m+1).join("<span></span>")}</span>`});const f=Nd.highlight(dm(t.content),Nd.languages[l.value],l.value);if(a.value=f+d,n!==0){const h=ec();h.payload.data[r]=f+d}}),Rt(async()=>{await Promise.resolve().then(()=>require("./prism-autoloader-Dlh8Vzlw-C7VXQ4L8-D7adLtAE.cjs")),i.autoloader.languages_path="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/"}),(d,f)=>(C(),V("pre",{class:ct([`scalar-component scalar-codeblock-pre language-${l.value}`,{"line-numbers":d.lineNumbers}])},[a.value?(C(),V("code",{key:0,class:ct(`scalar-codeblock-code language-${l.value}`),innerHTML:D(dm)(a.value)},null,10,cue)):(C(),V("code",{key:1,ref_key:"el",ref:o,class:ct(`scalar-codeblock-code language-${l.value}`)},Ue(D(dm)(d.content)),3))],2))}}),mO=Object.assign({"./Add.svg":()=>Promise.resolve().then(()=>require("./Add-ngyZgYXx-DoqFEwg6-Cppu-SwJ.cjs")),"./ArrowLeft.svg":()=>Promise.resolve().then(()=>require("./ArrowLeft-aY17W2aS-Cn6xpEuC-CMUVGhut.cjs")),"./ArrowRight.svg":()=>Promise.resolve().then(()=>require("./ArrowRight-DEMtdoE7-DTUgvJ5B-CURVS58K.cjs")),"./Background.svg":()=>Promise.resolve().then(()=>require("./Background-DcRhSHgf-D9bLWDd3-D8EBAP0B.cjs")),"./Brackets.svg":()=>Promise.resolve().then(()=>require("./Brackets-4I8OKomf-DWpQfvXD-BaZMLNdQ.cjs")),"./Branch.svg":()=>Promise.resolve().then(()=>require("./Branch-CXwj8YuG-CvPS_xP0-D_r-M5sD.cjs")),"./CallToAction.svg":()=>Promise.resolve().then(()=>require("./CallToAction-EyQKkvbg-P3zHezrK-SuNoDd0_.cjs")),"./Checkmark.svg":()=>Promise.resolve().then(()=>require("./Checkmark-De7nq6cG-I65LWhZ2-DUB3-QZg.cjs")),"./ChevronDown.svg":()=>Promise.resolve().then(()=>require("./ChevronDown-Co7EAKAv-Dw2u19C4-CJalx0ye.cjs")),"./ChevronLeft.svg":()=>Promise.resolve().then(()=>require("./ChevronLeft-DYt0idAu-4ItgPaSH-C3oNe08Q.cjs")),"./ChevronRight.svg":()=>Promise.resolve().then(()=>require("./ChevronRight-ylxToVWl-DMyZ2Rmi-BMXSB2g_.cjs")),"./ChevronUp.svg":()=>Promise.resolve().then(()=>require("./ChevronUp-xAnukIfj-DYWzMh-o-D3tphf4k.cjs")),"./Clipboard.svg":()=>Promise.resolve().then(()=>require("./Clipboard-CU_KxGEv-DuOPrhqK-BonkXPvI.cjs")),"./Close.svg":()=>Promise.resolve().then(()=>require("./Close-CW3z42qZ-C-nzSJmV-DDjeYRZ0.cjs")),"./CodeFolder.svg":()=>Promise.resolve().then(()=>require("./CodeFolder-Cv_igzJE-POyxhw77-B_oUoABC.cjs")),"./Cookie.svg":()=>Promise.resolve().then(()=>require("./Cookie-CEHvXpqB-Bu1-nQ4L-CdEs0O6l.cjs")),"./DarkMode.svg":()=>Promise.resolve().then(()=>require("./DarkMode-CBsV8Q_I-C-P5vpQi-yIqZSpe1.cjs")),"./Delete.svg":()=>Promise.resolve().then(()=>require("./Delete-BCZmxrDD-RGj_5vHb-C-zRM8hU.cjs")),"./Discord.svg":()=>Promise.resolve().then(()=>require("./Discord-BHYOFBB2-BKiLx0Gp-Bj22NLVF.cjs")),"./DocsPage.svg":()=>Promise.resolve().then(()=>require("./DocsPage-rh2xwxKN-DGM8iLwe-Drogj2EH.cjs")),"./Duplicate.svg":()=>Promise.resolve().then(()=>require("./Duplicate-BPlzNpcf-hfR5nT2J-CgFe2dKf.cjs")),"./Edit.svg":()=>Promise.resolve().then(()=>require("./Edit-Br04RNYb-DB3yOiz_-D7LwIkze.cjs")),"./Ellipses.svg":()=>Promise.resolve().then(()=>require("./Ellipses-Bo_X36Hx-D4ayuQAy-B-qKKh_I.cjs")),"./Error.svg":()=>Promise.resolve().then(()=>require("./Error-B_RGtWJI-D-cqIU7Z-DnUa8FSL.cjs")),"./ExternalLink.svg":()=>Promise.resolve().then(()=>require("./ExternalLink-DK8L-EH7-CnaH9txm-B9f2Qte1.cjs")),"./FilterList.svg":()=>Promise.resolve().then(()=>require("./FilterList-CsAcE9em-BEVsn3KR-czdVjjAJ.cjs")),"./Folder.svg":()=>Promise.resolve().then(()=>require("./Folder-Cdcj4evh-BjFbVB1N-BI3WCdI1.cjs")),"./GitHub.svg":()=>Promise.resolve().then(()=>require("./GitHub-NdE6Zs9k-CxmMd7Ky-CsqkEf5X.cjs")),"./Hide.svg":()=>Promise.resolve().then(()=>require("./Hide-Q3GPkIKH-CR2flZgt-DB063zkz.cjs")),"./History.svg":()=>Promise.resolve().then(()=>require("./History-D9nmhNIn-Bg9VGGKO-3LRPN2Jy.cjs")),"./JsonObject.svg":()=>Promise.resolve().then(()=>require("./JsonObject-hGdHUQ4M-JVzShx7P-fo0DGRKi.cjs")),"./Key.svg":()=>Promise.resolve().then(()=>require("./Key-CWXJqX28-CVsMvoNb-DBwUHBg1.cjs")),"./Leave.svg":()=>Promise.resolve().then(()=>require("./Leave-K1J3uwoG-6WpXSkaE-DfFpevpM.cjs")),"./LightDarkModeToggle.svg":()=>Promise.resolve().then(()=>require("./LightDarkModeToggle-BkvMimDa-CCZGR9vi-C_a6kx6m.cjs")),"./LightMode.svg":()=>Promise.resolve().then(()=>require("./LightMode-Btz6vyT_-D8lhPTNZ-BdHSI-aL.cjs")),"./Link.svg":()=>Promise.resolve().then(()=>require("./Link-Bzuc__Nc-Bopu3OCd-eOfL54W7.cjs")),"./Lock.svg":()=>Promise.resolve().then(()=>require("./Lock-xhiH1mKz-j1VwEotb-CL0Op4ZL.cjs")),"./Logo.svg":()=>Promise.resolve().then(()=>require("./Logo-mtzeKD8M-_nfcd_3S-C01qzaCp.cjs")),"./LogoAPI.svg":()=>Promise.resolve().then(()=>require("./LogoAPI-CaU5E6FK-BIDyFPeR-kT5HUbZt.cjs")),"./LogoClient.svg":()=>Promise.resolve().then(()=>require("./LogoClient-DdC-t_7P-BJVLusot-CBBrUvMM.cjs")),"./LogoMarket.svg":()=>Promise.resolve().then(()=>require("./LogoMarket-DwlApcab-BpTQzqp5-CVDolB4l.cjs")),"./LogoSwagger.svg":()=>Promise.resolve().then(()=>require("./LogoSwagger-CH60H5qW--whYwExv-x2WNPGi1.cjs")),"./Magic.svg":()=>Promise.resolve().then(()=>require("./Magic-Dsi9_bEc-BSsgSxL9-BhiLH3bj.cjs")),"./Menu.svg":()=>Promise.resolve().then(()=>require("./Menu-CFK5cOsm-Bt89Z42K-DQttnRQM.cjs")),"./Page.svg":()=>Promise.resolve().then(()=>require("./Page-B7rVuhpl-BdUgg7Vj-hHQeyO6o.cjs")),"./PaperAirplane.svg":()=>Promise.resolve().then(()=>require("./PaperAirplane-BC-4mGEB-CC_xr_GF-D7tgEDD5.cjs")),"./Payment.svg":()=>Promise.resolve().then(()=>require("./Payment-hzcXP1Xb-DwRM2zOI-Ditg28ok.cjs")),"./Play.svg":()=>Promise.resolve().then(()=>require("./Play-BrVagRQA-ibf1r6jV-4pc0xSOL.cjs")),"./Refresh.svg":()=>Promise.resolve().then(()=>require("./Refresh-Be6vHEEi-jbqubK_U-DlIBuctn.cjs")),"./Response.svg":()=>Promise.resolve().then(()=>require("./Response-Dq9pM-ZU-gbj_nXZc-DaknuXrP.cjs")),"./Search.svg":()=>Promise.resolve().then(()=>require("./Search-DqtlswRG-C2Pti_ld-CLD7PoX_.cjs")),"./Show.svg":()=>Promise.resolve().then(()=>require("./Show-D86hKz5y-CLGkc2Cs-pUbs8BzL.cjs")),"./SideBarClosed.svg":()=>Promise.resolve().then(()=>require("./SideBarClosed-CYUNS2XM-CyV-4FlW-BB9U0jCW.cjs")),"./SideBarOpen.svg":()=>Promise.resolve().then(()=>require("./SideBarOpen-BOxW49_U-_LagsnZP-Cc-i2GaD.cjs")),"./Sort.svg":()=>Promise.resolve().then(()=>require("./Sort-oTjBhJFQ-CxatimqM-CsqNEXH-.cjs")),"./Terminal.svg":()=>Promise.resolve().then(()=>require("./Terminal-CKp--su5-DBOGXF1p-CiCM9mEr.cjs")),"./ThumbsDown.svg":()=>Promise.resolve().then(()=>require("./ThumbsDown-BMgnsASL-B1FsmbXx-BRX-VHV8.cjs")),"./ThumbsUp.svg":()=>Promise.resolve().then(()=>require("./ThumbsUp-C1j6zY2j-Ca8-bvgl-B3rGc2IE.cjs")),"./Trash.svg":()=>Promise.resolve().then(()=>require("./Trash-BpA3zWPD-RGj_5vHb-CiBM-c5W.cjs")),"./Unlock.svg":()=>Promise.resolve().then(()=>require("./Unlock-CY8UqJoE-xu6vPL1E-DU9boJn-.cjs")),"./Upload.svg":()=>Promise.resolve().then(()=>require("./Upload-REIdL7RI-DTkPybxz-B18eJMEE.cjs")),"./User.svg":()=>Promise.resolve().then(()=>require("./User-Df5svMQ3-BviG15gd-Bgrqs2KO.cjs")),"./programming-framework-angular.svg":()=>Promise.resolve().then(()=>require("./programming-framework-angular-DD4Vjgbk-CUF3ZYYB-qAUEZmBL.cjs")),"./programming-framework-astro.svg":()=>Promise.resolve().then(()=>require("./programming-framework-astro-CLfrRt19-CH6OCtd8-UsU5-SzW.cjs")),"./programming-framework-laravel.svg":()=>Promise.resolve().then(()=>require("./programming-framework-laravel-kAy2wVLy-kXRM5aCd-sm1HkJHt.cjs")),"./programming-framework-nextdotjs.svg":()=>Promise.resolve().then(()=>require("./programming-framework-nextdotjs-BKdd_DY_-DF9m888v-CqCsR85a.cjs")),"./programming-framework-react.svg":()=>Promise.resolve().then(()=>require("./programming-framework-react-PDgmtZuN-DZjob66N-BNmUaxA0.cjs")),"./programming-framework-vuedotjs.svg":()=>Promise.resolve().then(()=>require("./programming-framework-vuedotjs-Cv46W2aB-5jp2dhVz-CkxKJokE.cjs")),"./programming-language-c.svg":()=>Promise.resolve().then(()=>require("./programming-language-c-hPGu2Zvg-BesPZa4K-Cco2ZOt2.cjs")),"./programming-language-clojure.svg":()=>Promise.resolve().then(()=>require("./programming-language-clojure-Cvmzky8x-BfidiK-3-CQD6X3Uj.cjs")),"./programming-language-csharp.svg":()=>Promise.resolve().then(()=>require("./programming-language-csharp-lqX1oWgb-D-Mz5PM1-vk5FXb7F.cjs")),"./programming-language-css3.svg":()=>Promise.resolve().then(()=>require("./programming-language-css3-Dpp4Cr6b-Dpx1zlAe-BM9iCsS_.cjs")),"./programming-language-go.svg":()=>Promise.resolve().then(()=>require("./programming-language-go-DoJxWwT6-Bayz8oGO-Bh-3p-m7.cjs")),"./programming-language-html5.svg":()=>Promise.resolve().then(()=>require("./programming-language-html5-DlqJK4EL-DfQp7LQz-5wt_6cUM.cjs")),"./programming-language-http.svg":()=>Promise.resolve().then(()=>require("./programming-language-http-wMYwFS1I-nvzm47LE-DwXtz1-x.cjs")),"./programming-language-java.svg":()=>Promise.resolve().then(()=>require("./programming-language-java-BCxG2T_w-01jrBctS-9403oU5P.cjs")),"./programming-language-javascript.svg":()=>Promise.resolve().then(()=>require("./programming-language-javascript-VxLvi1QG-qbgoUfZ8-DqmULXi3.cjs")),"./programming-language-json.svg":()=>Promise.resolve().then(()=>require("./programming-language-json-vEX_g7Zi-D-_9dDj_-CDMS9dhA.cjs")),"./programming-language-kotlin.svg":()=>Promise.resolve().then(()=>require("./programming-language-kotlin-DKV8vP9h-C-cTXwXu-C7o3xCKk.cjs")),"./programming-language-node.svg":()=>Promise.resolve().then(()=>require("./programming-language-node-Xsgx38lm-Be410R9Y-oJPoOYXf.cjs")),"./programming-language-objc.svg":()=>Promise.resolve().then(()=>require("./programming-language-objc-BQXSOBsX-UyJQMZSh-QPNm7QDW.cjs")),"./programming-language-ocaml.svg":()=>Promise.resolve().then(()=>require("./programming-language-ocaml-BEz7gGv7-L9a3ID8U-Dmt1dgNm.cjs")),"./programming-language-php.svg":()=>Promise.resolve().then(()=>require("./programming-language-php-GY38f8r4-jRMN5AZX-rzcgxt-1.cjs")),"./programming-language-powershell.svg":()=>Promise.resolve().then(()=>require("./programming-language-powershell-C9DkSp36-C7fZCJBW-BEySI9_e.cjs")),"./programming-language-python.svg":()=>Promise.resolve().then(()=>require("./programming-language-python-Ct-_kNjo-DsKRdoNg-mNi_qQuw.cjs")),"./programming-language-r.svg":()=>Promise.resolve().then(()=>require("./programming-language-r-BGoKwua9-BguWvgpu-DRAvbAMg.cjs")),"./programming-language-ruby.svg":()=>Promise.resolve().then(()=>require("./programming-language-ruby-DhdM4d7g-BuT1i5is-BLB-SdHF.cjs")),"./programming-language-scala.svg":()=>Promise.resolve().then(()=>require("./programming-language-scala-BVg0dToJ-p_n-G2sI-_SCL1JN8.cjs")),"./programming-language-shell.svg":()=>Promise.resolve().then(()=>require("./programming-language-shell-BsTa1xI7-Mbhl6UDK-PrGber2I.cjs")),"./programming-language-swift.svg":()=>Promise.resolve().then(()=>require("./programming-language-swift-Dn72xPjg-D-JnfNts-Ar9veekj.cjs")),"./programming-language-typescript.svg":()=>Promise.resolve().then(()=>require("./programming-language-typescript-CdF-HuRi-ocSQSwHb-DrF5ZFKU.cjs")),"./programming-script-code.svg":()=>Promise.resolve().then(()=>require("./programming-script-code-DQN1veb2-CcjBWaNF-CiXyKdZm.cjs")),"./programming-tool-git.svg":()=>Promise.resolve().then(()=>require("./programming-tool-git-DDnQ1zGD-CGHot6Y8-z26Dpns-.cjs")),"./programming-tool-tailwindcss.svg":()=>Promise.resolve().then(()=>require("./programming-tool-tailwindcss-xjXi0E6g-r5YhtCAf-B8HNnmbp.cjs"))}),gO=e=>{const t=`./${e}.svg`;return mO[t]?iw(mO[t]):(console.warn(`Could not find icon: ${e}`),null)},uue=["src"],pn=Se({__name:"ScalarIcon",props:{icon:{},size:{}},setup(e){const t=e,n=BT({variants:{size:{xs:"size-3 stroke-[1.4]",sm:"size-3.5 stroke-[1.2]",md:"size-4 stroke-[1.1]",lg:"size-5",xl:"size-6 stroke-[0.96]","2xl":"size-8 stroke-[0.92]","3xl":"size-10 stroke-[0.9]",full:"size-full"}},defaultVariants:{size:"full"}}),r=gO(t.icon);return(i,s)=>D(r)?(C(),he(Di(D(gO)(i.icon)),{key:0,class:ct(D(fc)("scalar-icon",D(n)({size:i.size})))},null,8,["class"])):(C(),V("img",{key:1,src:i.icon},null,8,uue))}}),due=["ariaDisabled"],fue={class:"sr-only"},qh=Se({__name:"ScalarIconButton",props:{label:{},icon:{},disabled:{type:Boolean},variant:{default:"ghost"},size:{default:"md"}},setup(e){const t=BT({base:"scalar-icon-button grid aspect-square cursor-pointer rounded",variants:{size:{xxs:"size-3.5 p-0.5",xs:"size-5 p-1",sm:"size-6 p-1",md:"size-10 p-3",full:"h-full w-full"},disabled:{true:"cursor-not-allowed shadow-none"},variant:pF}}),n=ue(()=>{const{class:r,...i}=nc();return{class:r||"",rest:i}});return(r,i)=>(C(),V("button",ko(n.value.rest,{ariaDisabled:r.disabled||void 0,class:D(fc)(D(t)({size:r.size,variant:r.variant,disabled:r.disabled}),n.value.class),type:"button"}),[Z(D(pn),{icon:r.icon},null,8,["icon"]),ae("span",fue,Ue(r.label),1)],16,due))}}),hue={class:"sr-only"},pue=["value"],mue=Se({inheritAttrs:!1,__name:"ScalarSearchInput",props:{loading:{},modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t;function r(s){n("update:modelValue",s.target.value)}const i=ue(()=>{const{class:s,...o}=nc();return{className:s||"",rest:o}});return(s,o)=>(C(),V("label",ko(i.value.rest,{class:D(fc)("flex rounded border bg-back-1 text-sm font-medium focus-within:border-fore-1",i.value.className)}),[ae("span",hue,[Be(s.$slots,"label",{},()=>[Pe("Enter search")])]),ae("input",{autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:"flex-1 rounded bg-transparent p-3 outline-none",placeholder:"Search...",spellcheck:"false",type:"text",value:s.modelValue,onInput:r},null,40,pue),s.loading&&s.loading.isLoading?(C(),he(D(hF),{key:0,class:"mr-3 self-center",loadingState:s.loading,size:"20px"},null,8,["loadingState"])):s.modelValue?(C(),he(D(qh),{key:1,class:"self-center",icon:"Close",label:"Clear Search",size:"md",onClick:o[0]||(o[0]=a=>n("update:modelValue",""))})):be("",!0)],16))}}),gue={class:"flex flex-col items-center gap-2 px-3 py-4"},bue=ae("div",{class:"rotate-90 text-lg font-bold"},":(",-1),yue={class:"text-sm font-medium text-fore-2"},vue=Se({inheritAttrs:!1,__name:"ScalarSearchResultList",props:{noResults:{type:Boolean}},setup(e){const t=ue(()=>{const{class:n,...r}=nc();return{className:n||"",rest:r}});return(n,r)=>(C(),V("ul",ko(t.value.rest,{class:D(fc)("flex flex-col",t.value.className)}),[n.noResults?Be(n.$slots,"noResults",{key:0},()=>[ae("div",gue,[bue,ae("div",yue,[Pe(" No results found "),n.$slots.query?(C(),V(De,{key:0},[Pe('for "'),Be(n.$slots,"query"),Pe('"')],64)):be("",!0)])])]):be("",!0),Be(n.$slots,"default")],16))}}),Eue={class:"contents"},_ue={class:"text-fore-3 group-hover:text-fore-1"},wue={class:"flex min-w-0 flex-1 flex-col gap-0.75"},Tue={class:"flex items-center gap-1"},Sue={class:"flex-1 truncate text-sm font-medium"},kue={key:0,class:"text-xs text-fore-2"},Aue={class:"truncate text-xs text-fore-2"},xue=Se({inheritAttrs:!1,__name:"ScalarSearchResultItem",props:{icon:{},active:{type:Boolean}},setup(e){const t=ue(()=>{const{class:n,...r}=nc();return{className:n||"",rest:r}});return(n,r)=>(C(),V("li",Eue,[ae("a",ko(t.value.rest,{class:D(fc)("group flex cursor-pointer gap-3 rounded px-3 py-1.5 no-underline hover:bg-back-2",{"bg-back-2":n.active},t.value.className)}),[ae("div",_ue,[Be(n.$slots,"icon",{},()=>[n.icon?(C(),he(D(pn),{key:0,icon:n.icon,size:"sm"},null,8,["icon"])):be("",!0)])]),ae("div",wue,[ae("div",Tue,[ae("div",Sue,[Be(n.$slots,"default")]),n.$slots.addon?(C(),V("div",kue,[Be(n.$slots,"addon")])):be("",!0)]),ae("div",Aue,[Be(n.$slots,"description")])])],16)]))}}),Nue={class:"card-form-input"},Cue=["for"],Oue=["id","type"],Due=Se({inheritAttrs:!1,__name:"CardFormTextInput",props:{id:{},type:{}},setup(e){const t=e,n=de(!0),r=ue(()=>t.type==="password"?n.value?"password":"text":t.type??"text");return(i,s)=>(C(),V("div",Nue,[ae("label",{for:i.id},[Be(i.$slots,"default",{},void 0,!0)],8,Cue),ae("input",ko(i.$attrs,{id:i.id,autocomplete:"off","data-1p-ignore":"",spellcheck:"false",type:r.value}),null,16,Oue),i.type==="password"?(C(),he(D(qh),{key:0,class:"password-mask",icon:n.value?"Show":"Hide",label:n.value?"Show Password":"Hide Password",onClick:s[0]||(s[0]=o=>n.value=!n.value)},null,8,["icon","label"])):be("",!0)]))}}),yc=je(Due,[["__scopeId","data-v-f7b202a1"]]),Iue=e=>(lr("data-v-5ac9a107"),e=e(),cr(),e),Rue={class:"scopes-label"},Pue=Iue(()=>ae("em",null,"/",-1)),Lue=["checked"],Mue={class:"dropdown-item-title"},$ue={class:"dropdown-item-description"},Fue=Se({__name:"SecuritySchemeScopes",props:{scopes:{},selected:{}},emits:["update:selected"],setup(e,{emit:t}){const n=e,r=t,i=de(),s=de(),{floatingStyles:o}=Jce(i,s,{placement:"bottom-end",whileElementsMounted:Wce,middleware:[xce(5),Yce(),Gce()]}),a=ue({get:()=>n.selected,set:l=>r("update:selected",l)});return(l,c)=>(C(),he(D(wH),{modelValue:a.value,"onUpdate:modelValue":c[0]||(c[0]=u=>a.value=u),multiple:""},{default:X(({open:u})=>[ae("div",{ref_key:"trigger",ref:i,class:ct(["wrapper",{"wrapper-open":u}])},[Z(D(TH),{as:G$},{default:X(()=>[ae("div",Rue,[Pe(" Scopes "+Ue(a.value.length),1),Pue,Pe(Ue(Object.entries(l.scopes).length)+" ",1),Z(D(pn),{icon:u?"ChevronUp":"ChevronDown",size:"sm"},null,8,["icon"])])]),_:2},1024)],2),(C(),he(cw,{to:"body"},[Z(D(j3),null,{default:X(({styles:d})=>[ae("div",{ref_key:"dropdown",ref:s,class:ct(["floating",d]),style:_r(D(o))},[Z(D(SH),{as:"dl",class:"dropdown"},{default:X(()=>[(C(!0),V(De,null,mt(Object.entries(l.scopes),([f,h])=>(C(),he(D(kH),{key:f,as:"div",class:"dropdown-item",value:f},{default:X(({selected:p})=>[ae("input",{checked:p,class:"dropdown-item-check",tabindex:"-1",type:"checkbox"},null,8,Lue),ae("dt",Mue,Ue(f),1),ae("dd",$ue,Ue(h),1)]),_:2},1032,["value"]))),128))]),_:1})],6)]),_:1})]))]),_:1},8,["modelValue"]))}}),Bue=je(Fue,[["__scopeId","data-v-5ac9a107"]]),Uue=Se({__name:"SecurityScheme",props:{value:{}},setup(e){const{authentication:t,setAuthentication:n}=Ku(),r=d=>{n({apiKey:{...t.apiKey,token:d.target.value}})},i=d=>{n({http:{...t.http,basic:{...t.http.basic,username:d.target.value}}})},s=d=>{n({http:{...t.http,basic:{...t.http.basic,password:d.target.value}}})},o=d=>{n({http:{...t.http,bearer:{...t.http.bearer,token:d.target.value}}})},a=d=>{n({oAuth2:{...t.oAuth2,clientId:d.target.value}})},l=d=>{const f=t.oAuth2.scopes.join(" "),h=(Math.random()+1).toString(36).substring(7),p=new URL(d.authorizationUrl);return n({oAuth2:{...t.oAuth2,state:h}}),p.searchParams.set("response_type","token"),p.searchParams.set("client_id",t.oAuth2.clientId),p.searchParams.set("redirect_uri",window.location.href),p.searchParams.set("scope",f),p.searchParams.set("state",h),p.toString()},c=ue({get:()=>t.oAuth2.scopes,set:d=>n({oAuth2:{...t.oAuth2,scopes:d}})}),u=d=>{const f=window.open(d,"openAuth2Window","left=100,top=100,width=800,height=600");if(f){const h=setInterval(function(){var p;try{const m=new URLSearchParams(f.location.href).get("access_token");if(f.closed||m){clearInterval(h);const g=(p=f.location.href.match(/state=([^&]*)/))==null?void 0:p[1];m&&t.oAuth2.state===g&&n({oAuth2:{...t.oAuth2,accessToken:m}}),f.close()}}catch{}},200)}};return(d,f)=>{var h;return d.value&&(h=d.value)!=null&&h.type?(C(),he(Dle,{key:0},{default:X(()=>[d.value.type==="apiKey"?(C(),he(yc,{key:0,id:`security-scheme-${d.value.name}`,placeholder:"Token",type:"password",value:D(t).apiKey.token,onInput:r},{default:X(()=>[Pe(Ue(d.value.in.charAt(0).toUpperCase()+d.value.in.slice(1))+" API ",1)]),_:1},8,["id","value"])):d.value.type==="http"||d.value.type==="basic"?(C(),V(De,{key:1},[d.value.type==="basic"||d.value.scheme==="basic"?(C(),he(nO,{key:0},{default:X(()=>[Z(yc,{id:"http.basic.username",placeholder:"Username",value:D(t).http.basic.username,onInput:i},{default:X(()=>[Pe(" Username ")]),_:1},8,["value"]),Z(yc,{id:"http.basic.password",placeholder:"Password",type:"password",value:D(t).http.basic.password,onInput:s},{default:X(()=>[Pe(" Password ")]),_:1},8,["value"])]),_:1})):d.value.type==="http"&&d.value.scheme==="bearer"?(C(),he(yc,{key:1,id:"http.bearer.token",placeholder:"Token",type:"password",value:D(t).http.bearer.token,onInput:o},{default:X(()=>[Pe(" Bearer Token ")]),_:1},8,["value"])):be("",!0)],64)):d.value.type.toLowerCase()==="oauth2"&&d.value.flows&&d.value.flows.implicit?(C(),he(nO,{key:2},{default:X(()=>[D(t).oAuth2.accessToken?(C(),V(De,{key:0},[Z(yc,{id:"oAuth2.accessToken",placeholder:"xxxxx",type:"password",value:D(t).oAuth2.accessToken},{default:X(()=>[Pe(" Access Token ")]),_:1},8,["value"]),Z(G$,{onClick:f[0]||(f[0]=()=>D(n)({oAuth2:{...D(t).oAuth2,accessToken:"",state:""}}))},{default:X(()=>[Pe(" Reset ")]),_:1})],64)):(C(),V(De,{key:1},[Z(yc,{id:"oAuth2.clientId",placeholder:"12345",type:"text",value:D(t).oAuth2.clientId,onInput:a},{default:X(()=>[Pe(" Client ID ")]),_:1},8,["value"]),d.value!==void 0?(C(),he(Bue,{key:0,selected:c.value,"onUpdate:selected":f[1]||(f[1]=p=>c.value=p),scopes:d.value.flows.implicit.scopes},null,8,["selected","scopes"])):be("",!0),ae("button",{class:"cardform-auth-button",onClick:f[2]||(f[2]=()=>{var p;return u(l((p=d.value)==null?void 0:p.flows.implicit))})}," Authorize ")],64))]),_:1})):be("",!0)]),_:1})):be("",!0)}}}),mF=je(Uue,[["__scopeId","data-v-146c2c6e"]]),Hue=e=>(lr("data-v-a6fd9dc1"),e=e(),cr(),e),jue={key:0,class:"security-scheme-label"},Vue={key:1,class:"security-scheme-selector"},que={class:"security-scheme-label"},zue=["value"],Kue=Hue(()=>ae("option",{value:""},"None",-1)),Wue=["value"],Gue=Se({__name:"SecuritySchemeSelector",props:{value:{}},emits:["input"],setup(e,{emit:t}){const n=e,r=t,{authentication:i,setAuthentication:s}=Ku(),o=g=>{a(g.target.value)};Rt(()=>{i.preferredSecurityScheme||a(Object.keys(n.value??{})[0]??null)});const a=g=>{s({preferredSecurityScheme:g}),r("input",g)};So(()=>a(Object.keys(n.value??{})[0]??null));const l=g=>!(g!=null&&g.type),c=g=>g.type.toLowerCase()==="apikey",u=g=>g.type==="http"&&g.scheme.toLowerCase()==="basic"||g.type.toLowerCase()==="basic",d=g=>g.type==="http"&&g.scheme.toLowerCase()==="bearer",f=g=>g.type.toLowerCase()==="oauth2",h=(g,b)=>`${p(g)} (${b})`,p=g=>l(g)?"No Authentication":c(g)?"API Key":u(g)?"Basic Authentication":d(g)?"Bearer Authentication":f(g)?"OAuth 2.0":`${g.type} (not yet supported)`,m=ue(()=>Object.keys(n.value??{}));return(g,b)=>{var v,y;return m.value.length===1?(C(),V("div",jue,Ue(h((v=g.value)==null?void 0:v[m.value[0]],m.value[0])),1)):m.value.length>1?(C(),V("div",Vue,[ae("span",que,Ue(D(i).preferredSecurityScheme?h((y=g.value)==null?void 0:y[D(i).preferredSecurityScheme],D(i).preferredSecurityScheme):"None"),1),Z(D(pn),{icon:"ChevronDown"}),ae("select",{value:D(i).preferredSecurityScheme,onClick:b[0]||(b[0]=Mu(()=>{},["prevent"])),onInput:o},[Kue,(C(!0),V(De,null,mt(m.value,E=>{var T;return C(),V("option",{key:E,value:E??null},Ue(h((T=g.value)==null?void 0:T[E],E)),9,Wue)}),128))],40,zue)])):be("",!0)}}}),gF=je(Gue,[["__scopeId","data-v-a6fd9dc1"]]);function nu(){return{info:{title:"",description:"",termsOfService:"",version:"",license:{name:"",url:""},contact:{email:""}},externalDocs:{description:"",url:""},servers:[],tags:[]}}function bF({serverState:e,authenticationState:t,operation:n,globalSecurity:r}){var i,s;const o=K3({url:YE(e)},sE(n,{requiredOnly:!1}),t?IT(t,((i=n.information)==null?void 0:i.security)??r??[]):{}),a=sE(n,{requiredOnly:!1}),l=Yc(n,"path",!1);return{id:n.operationId,name:n.name,type:o.method,path:a.path??"",variables:l,cookies:bO(o.cookies),query:o.queryString.map(c=>({...c,enabled:c.required??!0})),headers:bO(o.headers),url:YE(e)??"",body:(s=o.postData)==null?void 0:s.text}}function bO(e){return(e??[]).map(t=>({...t,enabled:!0}))}const Yue=hP().use(XR).use(Cz).use(wj),Xg=async e=>{const t=new PR,{headings:n}=(await Yue.process(e)).data;return Xue(n,t)},Xue=(e,t)=>e.map(n=>({...n,slug:t.slug(n.value)})),UT=e=>{const t=Math.min(...e.map(n=>n.depth));return t>=1&&t<=6?t:1};function xs(e){var t,n;return e?Object.keys(((t=e==null?void 0:e.components)==null?void 0:t.schemas)??{}).length?(n=e==null?void 0:e.components)==null?void 0:n.schemas:Object.keys((e==null?void 0:e.definitions)??{}).length?e==null?void 0:e.definitions:{}:{}}function yF(e,t){const n=/{{\s*([\w.-]+)\s*}}/g,r=/{\s*([\w.-]+)\s*}/g,i=(s,o)=>{if(typeof t=="function")return t(o);{const a=t==null?void 0:t.find(l=>l.name===o);return((a==null?void 0:a.value)??"").toString()}};return e.replace(n,i).replace(r,i)}function YE(e){var t;const n=(t=e==null?void 0:e.servers)==null?void 0:t[e.selectedServer??0];return typeof(n==null?void 0:n.url)=="string"?yF(n==null?void 0:n.url,e.variables):n==null?void 0:n.url}const vF=e=>e?!!Object.keys(xs(e)??{}).length:!1,Que=e=>{var t;return!!Object.keys(((t=e==null?void 0:e.components)==null?void 0:t.securitySchemes)??{}).length},Jue=e=>e?!!Object.keys((e==null?void 0:e.webhooks)??{}).length:!1;function Zue(e){try{return!!new URL(e)}catch{return!1}}function ede(e,t){return Object.keys(e).forEach(n=>{Object.hasOwn(t,n)||delete e[n]}),Object.assign(e,t),e}const tde=()=>({selectedServer:null,servers:[],variables:[]}),XE=or(tde()),nde=e=>{Object.assign(XE,{...XE,...e})},zh=()=>({server:XE,setServer:nde}),{server:rde}=zh(),{setOperation:ide,setGlobalSecurity:sde}=fT(),{toggleApiClient:ode}=pb(),{setActiveRequest:ade,resetActiveResponse:lde}=eM();function QE(e,t){const n=bF({serverState:rde,operation:e,authenticationState:null,globalSecurity:null});lde(),ade(n),ide(e),sde(t),ode(n,!0)}var cde=Object.defineProperty,ude=(e,t,n)=>t in e?cde(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ko=(e,t,n)=>(ude(e,typeof t!="symbol"?t+"":t,n),n);const dde=(e,t)=>{const n=e[t];return n?typeof n=="function"?n():Promise.resolve(n):new Promise((r,i)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(i.bind(null,new Error("Unknown variable dynamic import: "+t)))})};var fde=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function HT(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var JE={exports:{}},EF={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(x,A){return{validate:x,compare:A}}e.fullFormats={date:t(s,o),time:t(l,c),"date-time":t(d,f),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:m,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:k,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:b,int32:{type:"number",validate:E},int64:{type:"number",validate:T},float:{type:"number",validate:w},double:{type:"number",validate:w},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,o),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,c),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,f),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function n(x){return x%4===0&&(x%100!==0||x%400===0)}const r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function s(x){const A=r.exec(x);if(!A)return!1;const M=+A[1],R=+A[2],te=+A[3];return R>=1&&R<=12&&te>=1&&te<=(R===2&&n(M)?29:i[R])}function o(x,A){if(x&&A)return x>A?1:x<A?-1:0}const a=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function l(x,A){const M=a.exec(x);if(!M)return!1;const R=+M[1],te=+M[2],ee=+M[3],oe=M[5];return(R<=23&&te<=59&&ee<=59||R===23&&te===59&&ee===60)&&(!A||oe!=="")}function c(x,A){if(!(x&&A))return;const M=a.exec(x),R=a.exec(A);if(M&&R)return x=M[1]+M[2]+M[3]+(M[4]||""),A=R[1]+R[2]+R[3]+(R[4]||""),x>A?1:x<A?-1:0}const u=/t|\s/i;function d(x){const A=x.split(u);return A.length===2&&s(A[0])&&l(A[1],!0)}function f(x,A){if(!(x&&A))return;const[M,R]=x.split(u),[te,ee]=A.split(u),oe=o(M,te);if(oe!==void 0)return oe||c(R,ee)}const h=/\/|:/,p=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function m(x){return h.test(x)&&p.test(x)}const g=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function b(x){return g.lastIndex=0,g.test(x)}const v=-(2**31),y=2**31-1;function E(x){return Number.isInteger(x)&&x<=y&&x>=v}function T(x){return Number.isInteger(x)}function w(){return!0}const S=/[^\\]\\Z/;function k(x){if(S.test(x))return!1;try{return new RegExp(x),!0}catch{return!1}}})(EF);var _F={},ZE={exports:{}},Ml={},Ci={},wu={},Kh={},ht={},ch={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class n extends t{constructor(v){if(super(),!e.IDENTIFIER.test(v))throw new Error("CodeGen: name must be a valid identifier");this.str=v}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=n;class r extends t{constructor(v){super(),this._items=typeof v=="string"?[v]:v}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const v=this._items[0];return v===""||v==='""'}get str(){var v;return(v=this._str)!==null&&v!==void 0?v:this._str=this._items.reduce((y,E)=>`${y}${E}`,"")}get names(){var v;return(v=this._names)!==null&&v!==void 0?v:this._names=this._items.reduce((y,E)=>(E instanceof n&&(y[E.str]=(y[E.str]||0)+1),y),{})}}e._Code=r,e.nil=new r("");function i(b,...v){const y=[b[0]];let E=0;for(;E<v.length;)a(y,v[E]),y.push(b[++E]);return new r(y)}e._=i;const s=new r("+");function o(b,...v){const y=[h(b[0])];let E=0;for(;E<v.length;)y.push(s),a(y,v[E]),y.push(s,h(b[++E]));return l(y),new r(y)}e.str=o;function a(b,v){v instanceof r?b.push(...v._items):v instanceof n?b.push(v):b.push(d(v))}e.addCodeArg=a;function l(b){let v=1;for(;v<b.length-1;){if(b[v]===s){const y=c(b[v-1],b[v+1]);if(y!==void 0){b.splice(v-1,3,y);continue}b[v++]="+"}v++}}function c(b,v){if(v==='""')return b;if(b==='""')return v;if(typeof b=="string")return v instanceof n||b[b.length-1]!=='"'?void 0:typeof v!="string"?`${b.slice(0,-1)}${v}"`:v[0]==='"'?b.slice(0,-1)+v.slice(1):void 0;if(typeof v=="string"&&v[0]==='"'&&!(b instanceof n))return`"${b}${v.slice(1)}`}function u(b,v){return v.emptyStr()?b:b.emptyStr()?v:o`${b}${v}`}e.strConcat=u;function d(b){return typeof b=="number"||typeof b=="boolean"||b===null?b:h(Array.isArray(b)?b.join(","):b)}function f(b){return new r(h(b))}e.stringify=f;function h(b){return JSON.stringify(b).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=h;function p(b){return typeof b=="string"&&e.IDENTIFIER.test(b)?new r(`.${b}`):i`[${b}]`}e.getProperty=p;function m(b){if(typeof b=="string"&&e.IDENTIFIER.test(b))return new r(`${b}`);throw new Error(`CodeGen: invalid export name: ${b}, use explicit $id name mapping`)}e.getEsmExportName=m;function g(b){return new r(b.toString())}e.regexpCode=g})(ch);var e_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=ch;class n extends Error{constructor(c){super(`CodeGen: "code" for ${c} not defined`),this.value=c.value}}var r;(function(l){l[l.Started=0]="Started",l[l.Completed=1]="Completed"})(r=e.UsedValueState||(e.UsedValueState={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class i{constructor({prefixes:c,parent:u}={}){this._names={},this._prefixes=c,this._parent=u}toName(c){return c instanceof t.Name?c:this.name(c)}name(c){return new t.Name(this._newName(c))}_newName(c){const u=this._names[c]||this._nameGroup(c);return`${c}${u.index++}`}_nameGroup(c){var u,d;if(!((d=(u=this._parent)===null||u===void 0?void 0:u._prefixes)===null||d===void 0)&&d.has(c)||this._prefixes&&!this._prefixes.has(c))throw new Error(`CodeGen: prefix "${c}" is not allowed in this scope`);return this._names[c]={prefix:c,index:0}}}e.Scope=i;class s extends t.Name{constructor(c,u){super(u),this.prefix=c}setValue(c,{property:u,itemIndex:d}){this.value=c,this.scopePath=(0,t._)`.${new t.Name(u)}[${d}]`}}e.ValueScopeName=s;const o=(0,t._)`\n`;class a extends i{constructor(c){super(c),this._values={},this._scope=c.scope,this.opts={...c,_n:c.lines?o:t.nil}}get(){return this._scope}name(c){return new s(c,this._newName(c))}value(c,u){var d;if(u.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const f=this.toName(c),{prefix:h}=f,p=(d=u.key)!==null&&d!==void 0?d:u.ref;let m=this._values[h];if(m){const v=m.get(p);if(v)return v}else m=this._values[h]=new Map;m.set(p,f);const g=this._scope[h]||(this._scope[h]=[]),b=g.length;return g[b]=u.ref,f.setValue(u,{property:h,itemIndex:b}),f}getValue(c,u){const d=this._values[c];if(d)return d.get(u)}scopeRefs(c,u=this._values){return this._reduceValues(u,d=>{if(d.scopePath===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return(0,t._)`${c}${d.scopePath}`})}scopeCode(c=this._values,u,d){return this._reduceValues(c,f=>{if(f.value===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return f.value.code},u,d)}_reduceValues(c,u,d={},f){let h=t.nil;for(const p in c){const m=c[p];if(!m)continue;const g=d[p]=d[p]||new Map;m.forEach(b=>{if(g.has(b))return;g.set(b,r.Started);let v=u(b);if(v){const y=this.opts.es5?e.varKinds.var:e.varKinds.const;h=(0,t._)`${h}${y} ${b} = ${v};${this.opts._n}`}else if(v=f==null?void 0:f(b))h=(0,t._)`${h}${v}${this.opts._n}`;else throw new n(b);g.set(b,r.Completed)})}return h}}e.ValueScope=a})(e_);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=ch,n=e_;var r=ch;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var i=e_;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class s{optimizeNodes(){return this}optimizeNames(P,H){return this}}class o extends s{constructor(P,H,q){super(),this.varKind=P,this.name=H,this.rhs=q}render({es5:P,_n:H}){const q=P?n.varKinds.var:this.varKind,ve=this.rhs===void 0?"":` = ${this.rhs}`;return`${q} ${this.name}${ve};`+H}optimizeNames(P,H){if(P[this.name.str])return this.rhs&&(this.rhs=ee(this.rhs,P,H)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class a extends s{constructor(P,H,q){super(),this.lhs=P,this.rhs=H,this.sideEffects=q}render({_n:P}){return`${this.lhs} = ${this.rhs};`+P}optimizeNames(P,H){if(!(this.lhs instanceof t.Name&&!P[this.lhs.str]&&!this.sideEffects))return this.rhs=ee(this.rhs,P,H),this}get names(){const P=this.lhs instanceof t.Name?{}:{...this.lhs.names};return te(P,this.rhs)}}class l extends a{constructor(P,H,q,ve){super(P,q,ve),this.op=H}render({_n:P}){return`${this.lhs} ${this.op}= ${this.rhs};`+P}}class c extends s{constructor(P){super(),this.label=P,this.names={}}render({_n:P}){return`${this.label}:`+P}}class u extends s{constructor(P){super(),this.label=P,this.names={}}render({_n:P}){return`break${this.label?` ${this.label}`:""};`+P}}class d extends s{constructor(P){super(),this.error=P}render({_n:P}){return`throw ${this.error};`+P}get names(){return this.error.names}}class f extends s{constructor(P){super(),this.code=P}render({_n:P}){return`${this.code};`+P}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(P,H){return this.code=ee(this.code,P,H),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class h extends s{constructor(P=[]){super(),this.nodes=P}render(P){return this.nodes.reduce((H,q)=>H+q.render(P),"")}optimizeNodes(){const{nodes:P}=this;let H=P.length;for(;H--;){const q=P[H].optimizeNodes();Array.isArray(q)?P.splice(H,1,...q):q?P[H]=q:P.splice(H,1)}return P.length>0?this:void 0}optimizeNames(P,H){const{nodes:q}=this;let ve=q.length;for(;ve--;){const Ce=q[ve];Ce.optimizeNames(P,H)||(oe(P,Ce.names),q.splice(ve,1))}return q.length>0?this:void 0}get names(){return this.nodes.reduce((P,H)=>R(P,H.names),{})}}class p extends h{render(P){return"{"+P._n+super.render(P)+"}"+P._n}}class m extends h{}class g extends p{}g.kind="else";class b extends p{constructor(P,H){super(H),this.condition=P}render(P){let H=`if(${this.condition})`+super.render(P);return this.else&&(H+="else "+this.else.render(P)),H}optimizeNodes(){super.optimizeNodes();const P=this.condition;if(P===!0)return this.nodes;let H=this.else;if(H){const q=H.optimizeNodes();H=this.else=Array.isArray(q)?new g(q):q}if(H)return P===!1?H instanceof b?H:H.nodes:this.nodes.length?this:new b(pe(P),H instanceof b?[H]:H.nodes);if(!(P===!1||!this.nodes.length))return this}optimizeNames(P,H){var q;if(this.else=(q=this.else)===null||q===void 0?void 0:q.optimizeNames(P,H),!!(super.optimizeNames(P,H)||this.else))return this.condition=ee(this.condition,P,H),this}get names(){const P=super.names;return te(P,this.condition),this.else&&R(P,this.else.names),P}}b.kind="if";class v extends p{}v.kind="for";class y extends v{constructor(P){super(),this.iteration=P}render(P){return`for(${this.iteration})`+super.render(P)}optimizeNames(P,H){if(super.optimizeNames(P,H))return this.iteration=ee(this.iteration,P,H),this}get names(){return R(super.names,this.iteration.names)}}class E extends v{constructor(P,H,q,ve){super(),this.varKind=P,this.name=H,this.from=q,this.to=ve}render(P){const H=P.es5?n.varKinds.var:this.varKind,{name:q,from:ve,to:Ce}=this;return`for(${H} ${q}=${ve}; ${q}<${Ce}; ${q}++)`+super.render(P)}get names(){const P=te(super.names,this.from);return te(P,this.to)}}class T extends v{constructor(P,H,q,ve){super(),this.loop=P,this.varKind=H,this.name=q,this.iterable=ve}render(P){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(P)}optimizeNames(P,H){if(super.optimizeNames(P,H))return this.iterable=ee(this.iterable,P,H),this}get names(){return R(super.names,this.iterable.names)}}class w extends p{constructor(P,H,q){super(),this.name=P,this.args=H,this.async=q}render(P){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(P)}}w.kind="func";class S extends h{render(P){return"return "+super.render(P)}}S.kind="return";class k extends p{render(P){let H="try"+super.render(P);return this.catch&&(H+=this.catch.render(P)),this.finally&&(H+=this.finally.render(P)),H}optimizeNodes(){var P,H;return super.optimizeNodes(),(P=this.catch)===null||P===void 0||P.optimizeNodes(),(H=this.finally)===null||H===void 0||H.optimizeNodes(),this}optimizeNames(P,H){var q,ve;return super.optimizeNames(P,H),(q=this.catch)===null||q===void 0||q.optimizeNames(P,H),(ve=this.finally)===null||ve===void 0||ve.optimizeNames(P,H),this}get names(){const P=super.names;return this.catch&&R(P,this.catch.names),this.finally&&R(P,this.finally.names),P}}class x extends p{constructor(P){super(),this.error=P}render(P){return`catch(${this.error})`+super.render(P)}}x.kind="catch";class A extends p{render(P){return"finally"+super.render(P)}}A.kind="finally";class M{constructor(P,H={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...H,_n:H.lines?`
225
- `:""},this._extScope=P,this._scope=new n.Scope({parent:P}),this._nodes=[new m]}toString(){return this._root.render(this.opts)}name(P){return this._scope.name(P)}scopeName(P){return this._extScope.name(P)}scopeValue(P,H){const q=this._extScope.value(P,H);return(this._values[q.prefix]||(this._values[q.prefix]=new Set)).add(q),q}getScopeValue(P,H){return this._extScope.getValue(P,H)}scopeRefs(P){return this._extScope.scopeRefs(P,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(P,H,q,ve){const Ce=this._scope.toName(H);return q!==void 0&&ve&&(this._constants[Ce.str]=q),this._leafNode(new o(P,Ce,q)),Ce}const(P,H,q){return this._def(n.varKinds.const,P,H,q)}let(P,H,q){return this._def(n.varKinds.let,P,H,q)}var(P,H,q){return this._def(n.varKinds.var,P,H,q)}assign(P,H,q){return this._leafNode(new a(P,H,q))}add(P,H){return this._leafNode(new l(P,e.operators.ADD,H))}code(P){return typeof P=="function"?P():P!==t.nil&&this._leafNode(new f(P)),this}object(...P){const H=["{"];for(const[q,ve]of P)H.length>1&&H.push(","),H.push(q),(q!==ve||this.opts.es5)&&(H.push(":"),(0,t.addCodeArg)(H,ve));return H.push("}"),new t._Code(H)}if(P,H,q){if(this._blockNode(new b(P)),H&&q)this.code(H).else().code(q).endIf();else if(H)this.code(H).endIf();else if(q)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(P){return this._elseNode(new b(P))}else(){return this._elseNode(new g)}endIf(){return this._endBlockNode(b,g)}_for(P,H){return this._blockNode(P),H&&this.code(H).endFor(),this}for(P,H){return this._for(new y(P),H)}forRange(P,H,q,ve,Ce=this.opts.es5?n.varKinds.var:n.varKinds.let){const We=this._scope.toName(P);return this._for(new E(Ce,We,H,q),()=>ve(We))}forOf(P,H,q,ve=n.varKinds.const){const Ce=this._scope.toName(P);if(this.opts.es5){const We=H instanceof t.Name?H:this.var("_arr",H);return this.forRange("_i",0,(0,t._)`${We}.length`,Ke=>{this.var(Ce,(0,t._)`${We}[${Ke}]`),q(Ce)})}return this._for(new T("of",ve,Ce,H),()=>q(Ce))}forIn(P,H,q,ve=this.opts.es5?n.varKinds.var:n.varKinds.const){if(this.opts.ownProperties)return this.forOf(P,(0,t._)`Object.keys(${H})`,q);const Ce=this._scope.toName(P);return this._for(new T("in",ve,Ce,H),()=>q(Ce))}endFor(){return this._endBlockNode(v)}label(P){return this._leafNode(new c(P))}break(P){return this._leafNode(new u(P))}return(P){const H=new S;if(this._blockNode(H),this.code(P),H.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(P,H,q){if(!H&&!q)throw new Error('CodeGen: "try" without "catch" and "finally"');const ve=new k;if(this._blockNode(ve),this.code(P),H){const Ce=this.name("e");this._currNode=ve.catch=new x(Ce),H(Ce)}return q&&(this._currNode=ve.finally=new A,this.code(q)),this._endBlockNode(x,A)}throw(P){return this._leafNode(new d(P))}block(P,H){return this._blockStarts.push(this._nodes.length),P&&this.code(P).endBlock(H),this}endBlock(P){const H=this._blockStarts.pop();if(H===void 0)throw new Error("CodeGen: not in self-balancing block");const q=this._nodes.length-H;if(q<0||P!==void 0&&q!==P)throw new Error(`CodeGen: wrong number of nodes: ${q} vs ${P} expected`);return this._nodes.length=H,this}func(P,H=t.nil,q,ve){return this._blockNode(new w(P,H,q)),ve&&this.code(ve).endFunc(),this}endFunc(){return this._endBlockNode(w)}optimize(P=1){for(;P-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(P){return this._currNode.nodes.push(P),this}_blockNode(P){this._currNode.nodes.push(P),this._nodes.push(P)}_endBlockNode(P,H){const q=this._currNode;if(q instanceof P||H&&q instanceof H)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${H?`${P.kind}/${H.kind}`:P.kind}"`)}_elseNode(P){const H=this._currNode;if(!(H instanceof b))throw new Error('CodeGen: "else" without "if"');return this._currNode=H.else=P,this}get _root(){return this._nodes[0]}get _currNode(){const P=this._nodes;return P[P.length-1]}set _currNode(P){const H=this._nodes;H[H.length-1]=P}}e.CodeGen=M;function R(N,P){for(const H in P)N[H]=(N[H]||0)+(P[H]||0);return N}function te(N,P){return P instanceof t._CodeOrName?R(N,P.names):N}function ee(N,P,H){if(N instanceof t.Name)return q(N);if(!ve(N))return N;return new t._Code(N._items.reduce((Ce,We)=>(We instanceof t.Name&&(We=q(We)),We instanceof t._Code?Ce.push(...We._items):Ce.push(We),Ce),[]));function q(Ce){const We=H[Ce.str];return We===void 0||P[Ce.str]!==1?Ce:(delete P[Ce.str],We)}function ve(Ce){return Ce instanceof t._Code&&Ce._items.some(We=>We instanceof t.Name&&P[We.str]===1&&H[We.str]!==void 0)}}function oe(N,P){for(const H in P)N[H]=(N[H]||0)-(P[H]||0)}function pe(N){return typeof N=="boolean"||typeof N=="number"||N===null?!N:(0,t._)`!${J(N)}`}e.not=pe;const G=B(e.operators.AND);function Q(...N){return N.reduce(G)}e.and=Q;const fe=B(e.operators.OR);function O(...N){return N.reduce(fe)}e.or=O;function B(N){return(P,H)=>P===t.nil?H:H===t.nil?P:(0,t._)`${J(P)} ${N} ${J(H)}`}function J(N){return N instanceof t.Name?N:(0,t._)`(${N})`}})(ht);var Ot={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const t=ht,n=ch;function r(w){const S={};for(const k of w)S[k]=!0;return S}e.toHash=r;function i(w,S){return typeof S=="boolean"?S:Object.keys(S).length===0?!0:(s(w,S),!o(S,w.self.RULES.all))}e.alwaysValidSchema=i;function s(w,S=w.schema){const{opts:k,self:x}=w;if(!k.strictSchema||typeof S=="boolean")return;const A=x.RULES.keywords;for(const M in S)A[M]||T(w,`unknown keyword: "${M}"`)}e.checkUnknownRules=s;function o(w,S){if(typeof w=="boolean")return!w;for(const k in w)if(S[k])return!0;return!1}e.schemaHasRules=o;function a(w,S){if(typeof w=="boolean")return!w;for(const k in w)if(k!=="$ref"&&S.all[k])return!0;return!1}e.schemaHasRulesButRef=a;function l({topSchemaRef:w,schemaPath:S},k,x,A){if(!A){if(typeof k=="number"||typeof k=="boolean")return k;if(typeof k=="string")return(0,t._)`${k}`}return(0,t._)`${w}${S}${(0,t.getProperty)(x)}`}e.schemaRefOrVal=l;function c(w){return f(decodeURIComponent(w))}e.unescapeFragment=c;function u(w){return encodeURIComponent(d(w))}e.escapeFragment=u;function d(w){return typeof w=="number"?`${w}`:w.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=d;function f(w){return w.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=f;function h(w,S){if(Array.isArray(w))for(const k of w)S(k);else S(w)}e.eachItem=h;function p({mergeNames:w,mergeToName:S,mergeValues:k,resultToName:x}){return(A,M,R,te)=>{const ee=R===void 0?M:R instanceof t.Name?(M instanceof t.Name?w(A,M,R):S(A,M,R),R):M instanceof t.Name?(S(A,R,M),M):k(M,R);return te===t.Name&&!(ee instanceof t.Name)?x(A,ee):ee}}e.mergeEvaluated={props:p({mergeNames:(w,S,k)=>w.if((0,t._)`${k} !== true && ${S} !== undefined`,()=>{w.if((0,t._)`${S} === true`,()=>w.assign(k,!0),()=>w.assign(k,(0,t._)`${k} || {}`).code((0,t._)`Object.assign(${k}, ${S})`))}),mergeToName:(w,S,k)=>w.if((0,t._)`${k} !== true`,()=>{S===!0?w.assign(k,!0):(w.assign(k,(0,t._)`${k} || {}`),g(w,k,S))}),mergeValues:(w,S)=>w===!0?!0:{...w,...S},resultToName:m}),items:p({mergeNames:(w,S,k)=>w.if((0,t._)`${k} !== true && ${S} !== undefined`,()=>w.assign(k,(0,t._)`${S} === true ? true : ${k} > ${S} ? ${k} : ${S}`)),mergeToName:(w,S,k)=>w.if((0,t._)`${k} !== true`,()=>w.assign(k,S===!0?!0:(0,t._)`${k} > ${S} ? ${k} : ${S}`)),mergeValues:(w,S)=>w===!0?!0:Math.max(w,S),resultToName:(w,S)=>w.var("items",S)})};function m(w,S){if(S===!0)return w.var("props",!0);const k=w.var("props",(0,t._)`{}`);return S!==void 0&&g(w,k,S),k}e.evaluatedPropsToName=m;function g(w,S,k){Object.keys(k).forEach(x=>w.assign((0,t._)`${S}${(0,t.getProperty)(x)}`,!0))}e.setEvaluated=g;const b={};function v(w,S){return w.scopeValue("func",{ref:S,code:b[S.code]||(b[S.code]=new n._Code(S.code))})}e.useFunc=v;var y;(function(w){w[w.Num=0]="Num",w[w.Str=1]="Str"})(y=e.Type||(e.Type={}));function E(w,S,k){if(w instanceof t.Name){const x=S===y.Num;return k?x?(0,t._)`"[" + ${w} + "]"`:(0,t._)`"['" + ${w} + "']"`:x?(0,t._)`"/" + ${w}`:(0,t._)`"/" + ${w}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return k?(0,t.getProperty)(w).toString():"/"+d(w)}e.getErrorPath=E;function T(w,S,k=w.opts.strictSchema){if(k){if(S=`strict mode: ${S}`,k===!0)throw new Error(S);w.self.logger.warn(S)}}e.checkStrictMode=T})(Ot);var pi={};Object.defineProperty(pi,"__esModule",{value:!0});const dr=ht,hde={data:new dr.Name("data"),valCxt:new dr.Name("valCxt"),instancePath:new dr.Name("instancePath"),parentData:new dr.Name("parentData"),parentDataProperty:new dr.Name("parentDataProperty"),rootData:new dr.Name("rootData"),dynamicAnchors:new dr.Name("dynamicAnchors"),vErrors:new dr.Name("vErrors"),errors:new dr.Name("errors"),this:new dr.Name("this"),self:new dr.Name("self"),scope:new dr.Name("scope"),json:new dr.Name("json"),jsonPos:new dr.Name("jsonPos"),jsonLen:new dr.Name("jsonLen"),jsonPart:new dr.Name("jsonPart")};pi.default=hde;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=ht,n=Ot,r=pi;e.keywordError={message:({keyword:g})=>(0,t.str)`must pass "${g}" keyword validation`},e.keyword$DataError={message:({keyword:g,schemaType:b})=>b?(0,t.str)`"${g}" keyword must be ${b} ($data)`:(0,t.str)`"${g}" keyword is invalid ($data)`};function i(g,b=e.keywordError,v,y){const{it:E}=g,{gen:T,compositeRule:w,allErrors:S}=E,k=d(g,b,v);y??(w||S)?l(T,k):c(E,(0,t._)`[${k}]`)}e.reportError=i;function s(g,b=e.keywordError,v){const{it:y}=g,{gen:E,compositeRule:T,allErrors:w}=y,S=d(g,b,v);l(E,S),T||w||c(y,r.default.vErrors)}e.reportExtraError=s;function o(g,b){g.assign(r.default.errors,b),g.if((0,t._)`${r.default.vErrors} !== null`,()=>g.if(b,()=>g.assign((0,t._)`${r.default.vErrors}.length`,b),()=>g.assign(r.default.vErrors,null)))}e.resetErrorsCount=o;function a({gen:g,keyword:b,schemaValue:v,data:y,errsCount:E,it:T}){if(E===void 0)throw new Error("ajv implementation error");const w=g.name("err");g.forRange("i",E,r.default.errors,S=>{g.const(w,(0,t._)`${r.default.vErrors}[${S}]`),g.if((0,t._)`${w}.instancePath === undefined`,()=>g.assign((0,t._)`${w}.instancePath`,(0,t.strConcat)(r.default.instancePath,T.errorPath))),g.assign((0,t._)`${w}.schemaPath`,(0,t.str)`${T.errSchemaPath}/${b}`),T.opts.verbose&&(g.assign((0,t._)`${w}.schema`,v),g.assign((0,t._)`${w}.data`,y))})}e.extendErrors=a;function l(g,b){const v=g.const("err",b);g.if((0,t._)`${r.default.vErrors} === null`,()=>g.assign(r.default.vErrors,(0,t._)`[${v}]`),(0,t._)`${r.default.vErrors}.push(${v})`),g.code((0,t._)`${r.default.errors}++`)}function c(g,b){const{gen:v,validateName:y,schemaEnv:E}=g;E.$async?v.throw((0,t._)`new ${g.ValidationError}(${b})`):(v.assign((0,t._)`${y}.errors`,b),v.return(!1))}const u={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function d(g,b,v){const{createErrors:y}=g.it;return y===!1?(0,t._)`{}`:f(g,b,v)}function f(g,b,v={}){const{gen:y,it:E}=g,T=[h(E,v),p(g,v)];return m(g,b,T),y.object(...T)}function h({errorPath:g},{instancePath:b}){const v=b?(0,t.str)`${g}${(0,n.getErrorPath)(b,n.Type.Str)}`:g;return[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,v)]}function p({keyword:g,it:{errSchemaPath:b}},{schemaPath:v,parentSchema:y}){let E=y?b:(0,t.str)`${b}/${g}`;return v&&(E=(0,t.str)`${E}${(0,n.getErrorPath)(v,n.Type.Str)}`),[u.schemaPath,E]}function m(g,{params:b,message:v},y){const{keyword:E,data:T,schemaValue:w,it:S}=g,{opts:k,propertyName:x,topSchemaRef:A,schemaPath:M}=S;y.push([u.keyword,E],[u.params,typeof b=="function"?b(g):b||(0,t._)`{}`]),k.messages&&y.push([u.message,typeof v=="function"?v(g):v]),k.verbose&&y.push([u.schema,w],[u.parentSchema,(0,t._)`${A}${M}`],[r.default.data,T]),x&&y.push([u.propertyName,x])}})(Kh);Object.defineProperty(wu,"__esModule",{value:!0});wu.boolOrEmptySchema=wu.topBoolOrEmptySchema=void 0;const pde=Kh,mde=ht,gde=pi,bde={message:"boolean schema is false"};function yde(e){const{gen:t,schema:n,validateName:r}=e;n===!1?wF(e,!1):typeof n=="object"&&n.$async===!0?t.return(gde.default.data):(t.assign((0,mde._)`${r}.errors`,null),t.return(!0))}wu.topBoolOrEmptySchema=yde;function vde(e,t){const{gen:n,schema:r}=e;r===!1?(n.var(t,!1),wF(e)):n.var(t,!0)}wu.boolOrEmptySchema=vde;function wF(e,t){const{gen:n,data:r}=e,i={gen:n,keyword:"false schema",data:r,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,pde.reportError)(i,bde,void 0,t)}var Wh={},Yl={};Object.defineProperty(Yl,"__esModule",{value:!0});Yl.getRules=Yl.isJSONType=void 0;const Ede=["string","number","integer","boolean","null","object","array"],_de=new Set(Ede);function wde(e){return typeof e=="string"&&_de.has(e)}Yl.isJSONType=wde;function Tde(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}Yl.getRules=Tde;var ao={};Object.defineProperty(ao,"__esModule",{value:!0});ao.shouldUseRule=ao.shouldUseGroup=ao.schemaHasRulesForType=void 0;function Sde({schema:e,self:t},n){const r=t.RULES.types[n];return r&&r!==!0&&TF(e,r)}ao.schemaHasRulesForType=Sde;function TF(e,t){return t.rules.some(n=>SF(e,n))}ao.shouldUseGroup=TF;function SF(e,t){var n;return e[t.keyword]!==void 0||((n=t.definition.implements)===null||n===void 0?void 0:n.some(r=>e[r]!==void 0))}ao.shouldUseRule=SF;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const t=Yl,n=ao,r=Kh,i=ht,s=Ot;var o;(function(y){y[y.Correct=0]="Correct",y[y.Wrong=1]="Wrong"})(o=e.DataType||(e.DataType={}));function a(y){const E=l(y.type);if(E.includes("null")){if(y.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!E.length&&y.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');y.nullable===!0&&E.push("null")}return E}e.getSchemaTypes=a;function l(y){const E=Array.isArray(y)?y:y?[y]:[];if(E.every(t.isJSONType))return E;throw new Error("type must be JSONType or JSONType[]: "+E.join(","))}e.getJSONTypes=l;function c(y,E){const{gen:T,data:w,opts:S}=y,k=d(E,S.coerceTypes),x=E.length>0&&!(k.length===0&&E.length===1&&(0,n.schemaHasRulesForType)(y,E[0]));if(x){const A=m(E,w,S.strictNumbers,o.Wrong);T.if(A,()=>{k.length?f(y,E,k):b(y)})}return x}e.coerceAndCheckDataType=c;const u=new Set(["string","number","integer","boolean","null"]);function d(y,E){return E?y.filter(T=>u.has(T)||E==="array"&&T==="array"):[]}function f(y,E,T){const{gen:w,data:S,opts:k}=y,x=w.let("dataType",(0,i._)`typeof ${S}`),A=w.let("coerced",(0,i._)`undefined`);k.coerceTypes==="array"&&w.if((0,i._)`${x} == 'object' && Array.isArray(${S}) && ${S}.length == 1`,()=>w.assign(S,(0,i._)`${S}[0]`).assign(x,(0,i._)`typeof ${S}`).if(m(E,S,k.strictNumbers),()=>w.assign(A,S))),w.if((0,i._)`${A} !== undefined`);for(const R of T)(u.has(R)||R==="array"&&k.coerceTypes==="array")&&M(R);w.else(),b(y),w.endIf(),w.if((0,i._)`${A} !== undefined`,()=>{w.assign(S,A),h(y,A)});function M(R){switch(R){case"string":w.elseIf((0,i._)`${x} == "number" || ${x} == "boolean"`).assign(A,(0,i._)`"" + ${S}`).elseIf((0,i._)`${S} === null`).assign(A,(0,i._)`""`);return;case"number":w.elseIf((0,i._)`${x} == "boolean" || ${S} === null
224
+ --Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,ME),Zoe={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let hv=null;function eae(){var e;if(hv==null&&typeof document<"u"&&document.body){let t=document.body.style;hv=((e=t.tabSize)!==null&&e!==void 0?e:t.MozTabSize)!=null}return hv||!1}const qm=st.define({combine(e){let t=yb(e,{render:null,specialChars:Joe,addSpecialChars:null});return(t.replaceTabs=!eae())&&(t.specialChars=new RegExp(" |"+t.specialChars.source,ME)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,ME)),t}});function tae(e={}){return[qm.of(e),nae()]}let PC=null;function nae(){return PC||(PC=Ii.fromClass(class{constructor(e){this.view=e,this.decorations=yn.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(qm)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new m$({regexp:e.specialChars,decoration:(t,n,r)=>{let{doc:i}=n.state,s=Qc(t[0],0);if(s==9){let o=i.lineAt(r),a=n.state.tabSize,l=yT(o.text,a,r-o.from);return yn.replace({widget:new oae((a-l%a)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[s]||(this.decorationCache[s]=yn.replace({widget:new sae(e,s)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(qm);e.startState.facet(qm)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))}const rae="•";function iae(e){return e>=32?rae:e==10?"␤":String.fromCharCode(9216+e)}class sae extends Wu{constructor(t,n){super(),this.options=t,this.code=n}eq(t){return t.code==this.code}toDOM(t){let n=iae(this.code),r=t.state.phrase("Control character")+" "+(Zoe[this.code]||"0x"+this.code.toString(16)),i=this.options.render&&this.options.render(this.code,r,n);if(i)return i;let s=document.createElement("span");return s.textContent=n,s.title=r,s.setAttribute("aria-label",r),s.className="cm-specialChar",s}ignoreEvent(){return!1}}class oae extends Wu{constructor(t){super(),this.width=t}eq(t){return t.width==this.width}toDOM(){let t=document.createElement("span");return t.textContent=" ",t.className="cm-tab",t.style.width=this.width+"px",t}ignoreEvent(){return!1}}const Ld="-10000px";class aae{constructor(t,n,r,i){this.facet=n,this.createTooltipView=r,this.removeTooltipView=i,this.input=t.state.facet(n),this.tooltips=this.input.filter(o=>o);let s=null;this.tooltipViews=this.tooltips.map(o=>s=r(o,s))}update(t,n){var r;let i=t.state.facet(this.facet),s=i.filter(l=>l);if(i===this.input){for(let l of this.tooltipViews)l.update&&l.update(t);return!1}let o=[],a=n?[]:null;for(let l=0;l<s.length;l++){let c=s[l],u=-1;if(c){for(let d=0;d<this.tooltips.length;d++){let f=this.tooltips[d];f&&f.create==c.create&&(u=d)}if(u<0)o[l]=this.createTooltipView(c,l?o[l-1]:null),a&&(a[l]=!!c.above);else{let d=o[l]=this.tooltipViews[u];a&&(a[l]=n[u]),d.update&&d.update(t)}}}for(let l of this.tooltipViews)o.indexOf(l)<0&&(this.removeTooltipView(l),(r=l.destroy)===null||r===void 0||r.call(l));return n&&(a.forEach((l,c)=>n[c]=l),n.length=a.length),this.input=i,this.tooltips=s,this.tooltipViews=o,!0}}function lae(e){let{win:t}=e;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}const pv=st.define({combine:e=>{var t,n,r;return{position:Xe.ios?"absolute":((t=e.find(i=>i.position))===null||t===void 0?void 0:t.position)||"fixed",parent:((n=e.find(i=>i.parent))===null||n===void 0?void 0:n.parent)||null,tooltipSpace:((r=e.find(i=>i.tooltipSpace))===null||r===void 0?void 0:r.tooltipSpace)||lae}}}),LC=new WeakMap,g$=Ii.fromClass(class{constructor(e){this.view=e,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=e.state.facet(pv);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new aae(e,b$,(n,r)=>this.createTooltip(n,r),n=>{this.resizeObserver&&this.resizeObserver.unobserve(n.dom),n.dom.remove()}),this.above=this.manager.tooltips.map(n=>!!n.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(n=>{Date.now()>this.lastTransaction-50&&n.length>0&&n[n.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e,this.above);t&&this.observeIntersection();let n=t||e.geometryChanged,r=e.state.facet(pv);if(r.position!=this.position&&!this.madeAbsolute){this.position=r.position;for(let i of this.manager.tooltipViews)i.dom.style.position=this.position;n=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();for(let i of this.manager.tooltipViews)this.container.appendChild(i.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(e,t){let n=e.create(this.view),r=t?t.dom:null;if(n.dom.classList.add("cm-tooltip"),e.arrow&&!n.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let i=document.createElement("div");i.className="cm-tooltip-arrow",n.dom.insertBefore(i,r)}return n.dom.style.position=this.position,n.dom.style.top=Ld,n.dom.style.left="0px",this.container.insertBefore(n.dom,r),n.mount&&n.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(n.dom),n}destroy(){var e,t,n;this.view.win.removeEventListener("resize",this.measureSoon);for(let r of this.manager.tooltipViews)r.dom.remove(),(e=r.destroy)===null||e===void 0||e.call(r);this.parent&&this.container.remove(),(t=this.resizeObserver)===null||t===void 0||t.disconnect(),(n=this.intersectionObserver)===null||n===void 0||n.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=this.view.dom.getBoundingClientRect(),t=1,n=1,r=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:i}=this.manager.tooltipViews[0];if(Xe.gecko)r=i.offsetParent!=this.container.ownerDocument.body;else if(i.style.top==Ld&&i.style.left=="0px"){let s=i.getBoundingClientRect();r=Math.abs(s.top+1e4)>1||Math.abs(s.left)>1}}if(r||this.position=="absolute")if(this.parent){let i=this.parent.getBoundingClientRect();i.width&&i.height&&(t=i.width/this.parent.offsetWidth,n=i.height/this.parent.offsetHeight)}else({scaleX:t,scaleY:n}=this.view.viewState);return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map((i,s)=>{let o=this.manager.tooltipViews[s];return o.getCoords?o.getCoords(i.pos):this.view.coordsAtPos(i.pos)}),size:this.manager.tooltipViews.map(({dom:i})=>i.getBoundingClientRect()),space:this.view.state.facet(pv).tooltipSpace(this.view),scaleX:t,scaleY:n,makeAbsolute:r}}writeMeasure(e){var t;if(e.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let a of this.manager.tooltipViews)a.dom.style.position="absolute"}let{editor:n,space:r,scaleX:i,scaleY:s}=e,o=[];for(let a=0;a<this.manager.tooltips.length;a++){let l=this.manager.tooltips[a],c=this.manager.tooltipViews[a],{dom:u}=c,d=e.pos[a],f=e.size[a];if(!d||d.bottom<=Math.max(n.top,r.top)||d.top>=Math.min(n.bottom,r.bottom)||d.right<Math.max(n.left,r.left)-.1||d.left>Math.min(n.right,r.right)+.1){u.style.top=Ld;continue}let h=l.arrow?c.dom.querySelector(".cm-tooltip-arrow"):null,p=h?7:0,m=f.right-f.left,g=(t=LC.get(c))!==null&&t!==void 0?t:f.bottom-f.top,b=c.offset||uae,v=this.view.textDirection==exports.ct.LTR,y=f.width>r.right-r.left?v?r.left:r.right-f.width:v?Math.min(d.left-(h?14:0)+b.x,r.right-m):Math.max(r.left,d.left-m+(h?14:0)-b.x),E=this.above[a];!l.strictSide&&(E?d.top-(f.bottom-f.top)-b.y<r.top:d.bottom+(f.bottom-f.top)+b.y>r.bottom)&&E==r.bottom-d.bottom>d.top-r.top&&(E=this.above[a]=!E);let T=(E?d.top-r.top:r.bottom-d.bottom)-p;if(T<g&&c.resize!==!1){if(T<this.view.defaultLineHeight){u.style.top=Ld;continue}LC.set(c,g),u.style.height=(g=T)/s+"px"}else u.style.height&&(u.style.height="");let w=E?d.top-g-p-b.y:d.bottom+p+b.y,S=y+m;if(c.overlap!==!0)for(let k of o)k.left<S&&k.right>y&&k.top<w+g&&k.bottom>w&&(w=E?k.top-g-2-p:k.bottom+p+2);if(this.position=="absolute"?(u.style.top=(w-e.parent.top)/s+"px",u.style.left=(y-e.parent.left)/i+"px"):(u.style.top=w/s+"px",u.style.left=y/i+"px"),h){let k=d.left+(v?b.x:-b.x)-(y+14-7);h.style.left=k/i+"px"}c.overlap!==!0&&o.push({left:y,top:w,right:S,bottom:w+g}),u.classList.toggle("cm-tooltip-above",E),u.classList.toggle("cm-tooltip-below",!E),c.positioned&&c.positioned(e.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let e of this.manager.tooltipViews)e.dom.style.top=Ld}},{eventObservers:{scroll(){this.maybeMeasure()}}}),cae=Nt.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),uae={x:0,y:0},b$=st.define({enables:[g$,cae]});function dae(e,t){let n=e.plugin(g$);if(!n)return null;let r=n.manager.tooltips.indexOf(t);return r<0?null:n.manager.tooltipViews[r]}class Kl extends Vl{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}}Kl.prototype.elementClass="";Kl.prototype.toDOM=void 0;Kl.prototype.mapMode=exports.zt.TrackBefore;Kl.prototype.startSide=Kl.prototype.endSide=-1;Kl.prototype.point=!0;const mv=st.define(),zm=st.define(),$E=st.define({combine:e=>e.some(t=>t)});function fae(e){let t=[hae];return e&&e.fixed===!1&&t.push($E.of(!0)),t}const hae=Ii.fromClass(class{constructor(e){this.view=e,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=e.state.facet(zm).map(t=>new $C(e,t));for(let t of this.gutters)this.dom.appendChild(t.dom);this.fixed=!e.state.facet($E),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}update(e){if(this.updateGutters(e)){let t=this.prevViewport,n=e.view.viewport,r=Math.min(t.to,n.to)-Math.max(t.from,n.from);this.syncGutters(r<(n.to-n.from)*.8)}e.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet($E)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&this.dom.remove();let n=qt.iter(this.view.state.facet(mv),this.view.viewport.from),r=[],i=this.gutters.map(s=>new pae(s,this.view.viewport,-this.view.documentPadding.top));for(let s of this.view.viewportLineBlocks)if(r.length&&(r=[]),Array.isArray(s.type)){let o=!0;for(let a of s.type)if(a.type==Qi.Text&&o){FE(n,r,a.from);for(let l of i)l.line(this.view,a,r);o=!1}else if(a.widget)for(let l of i)l.widget(this.view,a)}else if(s.type==Qi.Text){FE(n,r,s.from);for(let o of i)o.line(this.view,s,r)}else if(s.widget)for(let o of i)o.widget(this.view,s);for(let s of i)s.finish();e&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(e){let t=e.startState.facet(zm),n=e.state.facet(zm),r=e.docChanged||e.heightChanged||e.viewportChanged||!qt.eq(e.startState.facet(mv),e.state.facet(mv),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let i of this.gutters)i.update(e)&&(r=!0);else{r=!0;let i=[];for(let s of n){let o=t.indexOf(s);o<0?i.push(new $C(this.view,s)):(this.gutters[o].update(e),i.push(this.gutters[o]))}for(let s of this.gutters)s.dom.remove(),i.indexOf(s)<0&&s.destroy();for(let s of i)this.dom.appendChild(s.dom);this.gutters=i}return r}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>Nt.scrollMargins.of(t=>{let n=t.plugin(e);return!n||n.gutters.length==0||!n.fixed?null:t.textDirection==exports.ct.LTR?{left:n.dom.offsetWidth*t.scaleX}:{right:n.dom.offsetWidth*t.scaleX}})});function MC(e){return Array.isArray(e)?e:[e]}function FE(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class pae{constructor(t,n,r){this.gutter=t,this.height=r,this.i=0,this.cursor=qt.iter(t.markers,n.from)}addElement(t,n,r){let{gutter:i}=this,s=(n.top-this.height)/t.scaleY,o=n.height/t.scaleY;if(this.i==i.elements.length){let a=new y$(t,o,s,r);i.elements.push(a),i.dom.appendChild(a.dom)}else i.elements[this.i].update(t,o,s,r);this.height=n.bottom,this.i++}line(t,n,r){let i=[];FE(this.cursor,i,n.from),r.length&&(i=i.concat(r));let s=this.gutter.config.lineMarker(t,n,i);s&&i.unshift(s);let o=this.gutter;i.length==0&&!o.config.renderEmptyElements||this.addElement(t,n,i)}widget(t,n){let r=this.gutter.config.widgetMarker(t,n.widget,n);r&&this.addElement(t,n,[r])}finish(){let t=this.gutter;for(;t.elements.length>this.i;){let n=t.elements.pop();t.dom.removeChild(n.dom),n.destroy()}}}class $C{constructor(t,n){this.view=t,this.config=n,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let r in n.domEventHandlers)this.dom.addEventListener(r,i=>{let s=i.target,o;if(s!=this.dom&&this.dom.contains(s)){for(;s.parentNode!=this.dom;)s=s.parentNode;let l=s.getBoundingClientRect();o=(l.top+l.bottom)/2}else o=i.clientY;let a=t.lineBlockAtHeight(o-t.documentTop);n.domEventHandlers[r](t,a,i)&&i.preventDefault()});this.markers=MC(n.markers(t)),n.initialSpacer&&(this.spacer=new y$(t,0,0,[n.initialSpacer(t)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(t){let n=this.markers;if(this.markers=MC(this.config.markers(t.view)),this.spacer&&this.config.updateSpacer){let i=this.config.updateSpacer(this.spacer.markers[0],t);i!=this.spacer.markers[0]&&this.spacer.update(t.view,0,0,[i])}let r=t.view.viewport;return!qt.eq(this.markers,n,r.from,r.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(t):!1)}destroy(){for(let t of this.elements)t.destroy()}}class y${constructor(t,n,r,i){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(t,n,r,i)}update(t,n,r,i){this.height!=n&&(this.height=n,this.dom.style.height=n+"px"),this.above!=r&&(this.dom.style.marginTop=(this.above=r)?r+"px":""),mae(this.markers,i)||this.setMarkers(t,i)}setMarkers(t,n){let r="cm-gutterElement",i=this.dom.firstChild;for(let s=0,o=0;;){let a=o,l=s<n.length?n[s++]:null,c=!1;if(l){let u=l.elementClass;u&&(r+=" "+u);for(let d=o;d<this.markers.length;d++)if(this.markers[d].compare(l)){a=d,c=!0;break}}else a=this.markers.length;for(;o<a;){let u=this.markers[o++];if(u.toDOM){u.destroy(i);let d=i.nextSibling;i.remove(),i=d}}if(!l)break;l.toDOM&&(c?i=i.nextSibling:this.dom.insertBefore(l.toDOM(t),i)),c&&o++}this.dom.className=r,this.markers=n}destroy(){this.setMarkers(null,[])}}function mae(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].compare(t[n]))return!1;return!0}const gae=st.define(),Pc=st.define({combine(e){return yb(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(t,n){let r=Object.assign({},t);for(let i in n){let s=r[i],o=n[i];r[i]=s?(a,l,c)=>s(a,l,c)||o(a,l,c):o}return r}})}});class gv extends Kl{constructor(t){super(),this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}}function bv(e,t){return e.state.facet(Pc).formatNumber(t,e.state)}const bae=zm.compute([Pc],e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(t){return t.state.facet(gae)},lineMarker(t,n,r){return r.some(i=>i.toDOM)?null:new gv(bv(t,t.state.doc.lineAt(n.from).number))},widgetMarker:()=>null,lineMarkerChange:t=>t.startState.facet(Pc)!=t.state.facet(Pc),initialSpacer(t){return new gv(bv(t,FC(t.state.doc.lines)))},updateSpacer(t,n){let r=bv(n.view,FC(n.view.state.doc.lines));return r==t.number?t:new gv(r)},domEventHandlers:e.facet(Pc).domEventHandlers}));function yae(e={}){return[Pc.of(e),fae(),bae]}function FC(e){let t=9;for(;t<e;)t=t*10+9;return t}const v$=1024;let vae=0;class Ti{constructor(t,n){this.from=t,this.to=n}}class Mt{constructor(t={}){this.id=vae++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(t){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof t!="function"&&(t=Lr.match(t)),n=>{let r=t(n);return r===void 0?null:[this,r]}}}Mt.closedBy=new Mt({deserialize:e=>e.split(" ")});Mt.openedBy=new Mt({deserialize:e=>e.split(" ")});Mt.group=new Mt({deserialize:e=>e.split(" ")});Mt.isolate=new Mt({deserialize:e=>{if(e&&e!="rtl"&&e!="ltr"&&e!="auto")throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}});Mt.contextHash=new Mt({perNode:!0});Mt.lookAhead=new Mt({perNode:!0});Mt.mounted=new Mt({perNode:!0});class oh{constructor(t,n,r){this.tree=t,this.overlay=n,this.parser=r}static get(t){return t&&t.props&&t.props[Mt.mounted.id]}}const Eae=Object.create(null);class Lr{constructor(t,n,r,i=0){this.name=t,this.props=n,this.id=r,this.flags=i}static define(t){let n=t.props&&t.props.length?Object.create(null):Eae,r=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),i=new Lr(t.name||"",n,t.id,r);if(t.props){for(let s of t.props)if(Array.isArray(s)||(s=s(i)),s){if(s[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[s[0].id]=s[1]}}return i}prop(t){return this.props[t.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(t){if(typeof t=="string"){if(this.name==t)return!0;let n=this.prop(Mt.group);return n?n.indexOf(t)>-1:!1}return this.id==t}static match(t){let n=Object.create(null);for(let r in t)for(let i of r.split(" "))n[i]=t[r];return r=>{for(let i=r.prop(Mt.group),s=-1;s<(i?i.length:0);s++){let o=n[s<0?r.name:i[s]];if(o)return o}}}}Lr.none=new Lr("",Object.create(null),0,8);class AT{constructor(t){this.types=t;for(let n=0;n<t.length;n++)if(t[n].id!=n)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...t){let n=[];for(let r of this.types){let i=null;for(let s of t){let o=s(r);o&&(i||(i=Object.assign({},r.props)),i[o[0].id]=o[1])}n.push(i?new Lr(r.name,i,r.id,r.flags):r)}return new AT(n)}}const im=new WeakMap,BC=new WeakMap;exports.Xe=void 0;(function(e){e[e.ExcludeBuffers=1]="ExcludeBuffers",e[e.IncludeAnonymous=2]="IncludeAnonymous",e[e.IgnoreMounts=4]="IgnoreMounts",e[e.IgnoreOverlays=8]="IgnoreOverlays"})(exports.Xe||(exports.Xe={}));class On{constructor(t,n,r,i,s){if(this.type=t,this.children=n,this.positions=r,this.length=i,this.props=null,s&&s.length){this.props=Object.create(null);for(let[o,a]of s)this.props[typeof o=="number"?o:o.id]=a}}toString(){let t=oh.get(this);if(t&&!t.overlay)return t.tree.toString();let n="";for(let r of this.children){let i=r.toString();i&&(n&&(n+=","),n+=i)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(n.length?"("+n+")":""):n}cursor(t=0){return new Hg(this.topNode,t)}cursorAt(t,n=0,r=0){let i=im.get(this)||this.topNode,s=new Hg(i);return s.moveTo(t,n),im.set(this,s._tree),s}get topNode(){return new vr(this,0,0,null)}resolve(t,n=0){let r=ah(im.get(this)||this.topNode,t,n,!1);return im.set(this,r),r}resolveInner(t,n=0){let r=ah(BC.get(this)||this.topNode,t,n,!0);return BC.set(this,r),r}resolveStack(t,n=0){return Tae(this,t,n)}iterate(t){let{enter:n,leave:r,from:i=0,to:s=this.length}=t,o=t.mode||0,a=(o&exports.Xe.IncludeAnonymous)>0;for(let l=this.cursor(o|exports.Xe.IncludeAnonymous);;){let c=!1;if(l.from<=s&&l.to>=i&&(!a&&l.type.isAnonymous||n(l)!==!1)){if(l.firstChild())continue;c=!0}for(;c&&r&&(a||!l.type.isAnonymous)&&r(l),!l.nextSibling();){if(!l.parent())return;c=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let n in this.props)t.push([+n,this.props[n]]);return t}balance(t={}){return this.children.length<=8?this:CT(Lr.none,this.children,this.positions,0,this.children.length,0,this.length,(n,r,i)=>new On(this.type,n,r,i,this.propValues),t.makeTree||((n,r,i)=>new On(Lr.none,n,r,i)))}static build(t){return Sae(t)}}On.empty=new On(Lr.none,[],[],0);class xT{constructor(t,n){this.buffer=t,this.index=n}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new xT(this.buffer,this.index)}}class Da{constructor(t,n,r){this.buffer=t,this.length=n,this.set=r}get type(){return Lr.none}toString(){let t=[];for(let n=0;n<this.buffer.length;)t.push(this.childString(n)),n=this.buffer[n+3];return t.join(",")}childString(t){let n=this.buffer[t],r=this.buffer[t+3],i=this.set.types[n],s=i.name;if(/\W/.test(s)&&!i.isError&&(s=JSON.stringify(s)),t+=4,r==t)return s;let o=[];for(;t<r;)o.push(this.childString(t)),t=this.buffer[t+3];return s+"("+o.join(",")+")"}findChild(t,n,r,i,s){let{buffer:o}=this,a=-1;for(let l=t;l!=n&&!(E$(s,i,o[l+1],o[l+2])&&(a=l,r>0));l=o[l+3]);return a}slice(t,n,r){let i=this.buffer,s=new Uint16Array(n-t),o=0;for(let a=t,l=0;a<n;){s[l++]=i[a++],s[l++]=i[a++]-r;let c=s[l++]=i[a++]-r;s[l++]=i[a++]-t,o=Math.max(o,c)}return new Da(s,o,this.set)}}function E$(e,t,n,r){switch(e){case-2:return n<t;case-1:return r>=t&&n<t;case 0:return n<t&&r>t;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function ah(e,t,n,r){for(var i;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to<t);){let o=!r&&e instanceof vr&&e.index<0?null:e.parent;if(!o)return e;e=o}let s=r?0:exports.Xe.IgnoreOverlays;if(r)for(let o=e,a=o.parent;a;o=a,a=o.parent)o instanceof vr&&o.index<0&&((i=a.enter(t,n,s))===null||i===void 0?void 0:i.from)!=o.from&&(e=a);for(;;){let o=e.enter(t,n,s);if(!o)return e;e=o}}class _${cursor(t=0){return new Hg(this,t)}getChild(t,n=null,r=null){let i=UC(this,t,n,r);return i.length?i[0]:null}getChildren(t,n=null,r=null){return UC(this,t,n,r)}resolve(t,n=0){return ah(this,t,n,!1)}resolveInner(t,n=0){return ah(this,t,n,!0)}matchContext(t){return BE(this,t)}enterUnfinishedNodesBefore(t){let n=this.childBefore(t),r=this;for(;n;){let i=n.lastChild;if(!i||i.to!=n.to)break;i.type.isError&&i.from==i.to?(r=n,n=i.prevSibling):n=i}return r}get node(){return this}get next(){return this.parent}}class vr extends _${constructor(t,n,r,i){super(),this._tree=t,this.from=n,this.index=r,this._parent=i}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(t,n,r,i,s=0){for(let o=this;;){for(let{children:a,positions:l}=o._tree,c=n>0?a.length:-1;t!=c;t+=n){let u=a[t],d=l[t]+o.from;if(E$(i,r,d,d+u.length)){if(u instanceof Da){if(s&exports.Xe.ExcludeBuffers)continue;let f=u.findChild(0,u.buffer.length,n,r-d,i);if(f>-1)return new As(new _ae(o,u,t,d),null,f)}else if(s&exports.Xe.IncludeAnonymous||!u.type.isAnonymous||NT(u)){let f;if(!(s&exports.Xe.IgnoreMounts)&&(f=oh.get(u))&&!f.overlay)return new vr(f.tree,d,t,o);let h=new vr(u,d,t,o);return s&exports.Xe.IncludeAnonymous||!h.type.isAnonymous?h:h.nextChild(n<0?u.children.length-1:0,n,r,i)}}}if(s&exports.Xe.IncludeAnonymous||!o.type.isAnonymous||(o.index>=0?t=o.index+n:t=n<0?-1:o._parent._tree.children.length,o=o._parent,!o))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}enter(t,n,r=0){let i;if(!(r&exports.Xe.IgnoreOverlays)&&(i=oh.get(this._tree))&&i.overlay){let s=t-this.from;for(let{from:o,to:a}of i.overlay)if((n>0?o<=s:o<s)&&(n<0?a>=s:a>s))return new vr(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,n,r)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function UC(e,t,n,r){let i=e.cursor(),s=[];if(!i.firstChild())return s;if(n!=null){for(let o=!1;!o;)if(o=i.type.is(n),!i.nextSibling())return s}for(;;){if(r!=null&&i.type.is(r))return s;if(i.type.is(t)&&s.push(i.node),!i.nextSibling())return r==null?s:[]}}function BE(e,t,n=t.length-1){for(let r=e.parent;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}class _ae{constructor(t,n,r,i){this.parent=t,this.buffer=n,this.index=r,this.start=i}}class As extends _${get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,n,r){super(),this.context=t,this._parent=n,this.index=r,this.type=t.buffer.set.types[t.buffer.buffer[r]]}child(t,n,r){let{buffer:i}=this.context,s=i.findChild(this.index+4,i.buffer[this.index+3],t,n-this.context.start,r);return s<0?null:new As(this.context,this,s)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}enter(t,n,r=0){if(r&exports.Xe.ExcludeBuffers)return null;let{buffer:i}=this.context,s=i.findChild(this.index+4,i.buffer[this.index+3],n>0?1:-1,t-this.context.start,n);return s<0?null:new As(this.context,this,s)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,n=t.buffer[this.index+3];return n<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new As(this.context,this._parent,n):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new As(this.context,this._parent,t.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],n=[],{buffer:r}=this.context,i=this.index+4,s=r.buffer[this.index+3];if(s>i){let o=r.buffer[this.index+1];t.push(r.slice(i,s,o)),n.push(0)}return new On(this.type,t,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function w$(e){if(!e.length)return null;let t=0,n=e[0];for(let s=1;s<e.length;s++){let o=e[s];(o.from>n.from||o.to<n.to)&&(n=o,t=s)}let r=n instanceof vr&&n.index<0?null:n.parent,i=e.slice();return r?i[t]=r:i.splice(t,1),new wae(i,n)}class wae{constructor(t,n){this.heads=t,this.node=n}get next(){return w$(this.heads)}}function Tae(e,t,n){let r=e.resolveInner(t,n),i=null;for(let s=r instanceof vr?r:r.context.parent;s;s=s.parent)if(s.index<0){let o=s.parent;(i||(i=[r])).push(o.resolve(t,n)),s=o}else{let o=oh.get(s.tree);if(o&&o.overlay&&o.overlay[0].from<=t&&o.overlay[o.overlay.length-1].to>=t){let a=new vr(o.tree,o.overlay[0].from+s.from,-1,s);(i||(i=[r])).push(ah(a,t,n,!1))}}return i?w$(i):r}class Hg{get name(){return this.type.name}constructor(t,n=0){if(this.mode=n,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,t instanceof vr)this.yieldNode(t);else{this._tree=t.context.parent,this.buffer=t.context;for(let r=t._parent;r;r=r._parent)this.stack.unshift(r.index);this.bufferNode=t,this.yieldBuf(t.index)}}yieldNode(t){return t?(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0):!1}yieldBuf(t,n){this.index=t;let{start:r,buffer:i}=this.buffer;return this.type=n||i.set.types[i.buffer[t]],this.from=r+i.buffer[t+1],this.to=r+i.buffer[t+2],!0}yield(t){return t?t instanceof vr?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,n,r){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,n,r,this.mode));let{buffer:i}=this.buffer,s=i.findChild(this.index+4,i.buffer[this.index+3],t,n-this.buffer.start,r);return s<0?!1:(this.stack.push(this.index),this.yieldBuf(s))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,n,r=this.mode){return this.buffer?r&exports.Xe.ExcludeBuffers?!1:this.enterChild(1,t,n):this.yield(this._tree.enter(t,n,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&exports.Xe.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&exports.Xe.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode)):!1;let{buffer:n}=this.buffer,r=this.stack.length-1;if(t<0){let i=r<0?0:this.stack[r]+4;if(this.index!=i)return this.yieldBuf(n.findChild(i,this.index,-1,0,4))}else{let i=n.buffer[this.index+3];if(i<(r<0?n.buffer.length:n.buffer[this.stack[r]+3]))return this.yieldBuf(i)}return r<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let n,r,{buffer:i}=this;if(i){if(t>0){if(this.index<i.buffer.buffer.length)return!1}else for(let s=0;s<this.index;s++)if(i.buffer.buffer[s+3]<this.index)return!1;({index:n,parent:r}=i)}else({index:n,_parent:r}=this._tree);for(;r;{index:n,_parent:r}=r)if(n>-1)for(let s=n+t,o=t<0?-1:r._tree.children.length;s!=o;s+=t){let a=r._tree.children[s];if(this.mode&exports.Xe.IncludeAnonymous||a instanceof Da||!a.type.isAnonymous||NT(a))return!1}return!0}move(t,n){if(n&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,n=0){for(;(this.from==this.to||(n<1?this.from>=t:this.from>t)||(n>-1?this.to<=t:this.to<t))&&this.parent(););for(;this.enterChild(1,t,n););return this}get node(){if(!this.buffer)return this._tree;let t=this.bufferNode,n=null,r=0;if(t&&t.context==this.buffer)e:for(let i=this.index,s=this.stack.length;s>=0;){for(let o=t;o;o=o._parent)if(o.index==i){if(i==this.index)return o;n=o,r=s+1;break e}i=this.stack[--s]}for(let i=r;i<this.stack.length;i++)n=new As(this.buffer,n,this.stack[i]);return this.bufferNode=new As(this.buffer,n,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(t,n){for(let r=0;;){let i=!1;if(this.type.isAnonymous||t(this)!==!1){if(this.firstChild()){r++;continue}this.type.isAnonymous||(i=!0)}for(;i&&n&&n(this),i=this.type.isAnonymous,!this.nextSibling();){if(!r)return;this.parent(),r--,i=!0}}}matchContext(t){if(!this.buffer)return BE(this.node,t);let{buffer:n}=this.buffer,{types:r}=n.set;for(let i=t.length-1,s=this.stack.length-1;i>=0;s--){if(s<0)return BE(this.node,t,i);let o=r[n.buffer[this.stack[s]]];if(!o.isAnonymous){if(t[i]&&t[i]!=o.name)return!1;i--}}return!0}}function NT(e){return e.children.some(t=>t instanceof Da||!t.type.isAnonymous||NT(t))}function Sae(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:i=v$,reused:s=[],minRepeatType:o=r.types.length}=e,a=Array.isArray(n)?new xT(n,n.length):n,l=r.types,c=0,u=0;function d(T,w,S,k,x,A){let{id:M,start:R,end:te,size:ee}=a,oe=u;for(;ee<0;)if(a.next(),ee==-1){let O=s[M];S.push(O),k.push(R-T);return}else if(ee==-3){c=M;return}else if(ee==-4){u=M;return}else throw new RangeError(`Unrecognized record size: ${ee}`);let pe=l[M],G,Q,fe=R-T;if(te-R<=i&&(Q=g(a.pos-w,x))){let O=new Uint16Array(Q.size-Q.skip),B=a.pos-Q.size,J=O.length;for(;a.pos>B;)J=b(Q.start,O,J);G=new Da(O,te-Q.start,r),fe=Q.start-T}else{let O=a.pos-ee;a.next();let B=[],J=[],N=M>=o?M:-1,P=0,H=te;for(;a.pos>O;)N>=0&&a.id==N&&a.size>=0?(a.end<=H-i&&(p(B,J,R,P,a.end,H,N,oe),P=B.length,H=a.end),a.next()):A>2500?f(R,O,B,J):d(R,O,B,J,N,A+1);if(N>=0&&P>0&&P<B.length&&p(B,J,R,P,R,H,N,oe),B.reverse(),J.reverse(),N>-1&&P>0){let q=h(pe);G=CT(pe,B,J,0,B.length,0,te-R,q,q)}else G=m(pe,B,J,te-R,oe-te)}S.push(G),k.push(fe)}function f(T,w,S,k){let x=[],A=0,M=-1;for(;a.pos>w;){let{id:R,start:te,end:ee,size:oe}=a;if(oe>4)a.next();else{if(M>-1&&te<M)break;M<0&&(M=ee-i),x.push(R,te,ee),A++,a.next()}}if(A){let R=new Uint16Array(A*4),te=x[x.length-2];for(let ee=x.length-3,oe=0;ee>=0;ee-=3)R[oe++]=x[ee],R[oe++]=x[ee+1]-te,R[oe++]=x[ee+2]-te,R[oe++]=oe;S.push(new Da(R,x[2]-te,r)),k.push(te-T)}}function h(T){return(w,S,k)=>{let x=0,A=w.length-1,M,R;if(A>=0&&(M=w[A])instanceof On){if(!A&&M.type==T&&M.length==k)return M;(R=M.prop(Mt.lookAhead))&&(x=S[A]+M.length+R)}return m(T,w,S,k,x)}}function p(T,w,S,k,x,A,M,R){let te=[],ee=[];for(;T.length>k;)te.push(T.pop()),ee.push(w.pop()+S-x);T.push(m(r.types[M],te,ee,A-x,R-A)),w.push(x-S)}function m(T,w,S,k,x=0,A){if(c){let M=[Mt.contextHash,c];A=A?[M].concat(A):[M]}if(x>25){let M=[Mt.lookAhead,x];A=A?[M].concat(A):[M]}return new On(T,w,S,k,A)}function g(T,w){let S=a.fork(),k=0,x=0,A=0,M=S.end-i,R={size:0,start:0,skip:0};e:for(let te=S.pos-T;S.pos>te;){let ee=S.size;if(S.id==w&&ee>=0){R.size=k,R.start=x,R.skip=A,A+=4,k+=4,S.next();continue}let oe=S.pos-ee;if(ee<0||oe<te||S.start<M)break;let pe=S.id>=o?4:0,G=S.start;for(S.next();S.pos>oe;){if(S.size<0)if(S.size==-3)pe+=4;else break e;else S.id>=o&&(pe+=4);S.next()}x=G,k+=ee,A+=pe}return(w<0||k==T)&&(R.size=k,R.start=x,R.skip=A),R.size>4?R:void 0}function b(T,w,S){let{id:k,start:x,end:A,size:M}=a;if(a.next(),M>=0&&k<o){let R=S;if(M>4){let te=a.pos-(M-4);for(;a.pos>te;)S=b(T,w,S)}w[--S]=R,w[--S]=A-T,w[--S]=x-T,w[--S]=k}else M==-3?c=k:M==-4&&(u=k);return S}let v=[],y=[];for(;a.pos>0;)d(e.start||0,e.bufferStart||0,v,y,-1,0);let E=(t=e.length)!==null&&t!==void 0?t:v.length?y[0]+v[0].length:0;return new On(l[e.topID],v.reverse(),y.reverse(),E)}const HC=new WeakMap;function Km(e,t){if(!e.isAnonymous||t instanceof Da||t.type!=e)return 1;let n=HC.get(t);if(n==null){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof On)){n=1;break}n+=Km(e,r)}HC.set(t,n)}return n}function CT(e,t,n,r,i,s,o,a,l){let c=0;for(let p=r;p<i;p++)c+=Km(e,t[p]);let u=Math.ceil(c*1.5/8),d=[],f=[];function h(p,m,g,b,v){for(let y=g;y<b;){let E=y,T=m[y],w=Km(e,p[y]);for(y++;y<b;y++){let S=Km(e,p[y]);if(w+S>=u)break;w+=S}if(y==E+1){if(w>u){let S=p[E];h(S.children,S.positions,0,S.children.length,m[E]+v);continue}d.push(p[E])}else{let S=m[y-1]+p[y-1].length-T;d.push(CT(e,p,m,E,y,T,S,null,l))}f.push(T+v-s)}}return h(t,n,r,i,0),(a||l)(d,f,o)}class kae{constructor(){this.map=new WeakMap}setBuffer(t,n,r){let i=this.map.get(t);i||this.map.set(t,i=new Map),i.set(n,r)}getBuffer(t,n){let r=this.map.get(t);return r&&r.get(n)}set(t,n){t instanceof As?this.setBuffer(t.context.buffer,t.index,n):t instanceof vr&&this.map.set(t.tree,n)}get(t){return t instanceof As?this.getBuffer(t.context.buffer,t.index):t instanceof vr?this.map.get(t.tree):void 0}cursorSet(t,n){t.buffer?this.setBuffer(t.buffer.buffer,t.index,n):this.map.set(t.tree,n)}cursorGet(t){return t.buffer?this.getBuffer(t.buffer.buffer,t.index):this.map.get(t.tree)}}class oo{constructor(t,n,r,i,s=!1,o=!1){this.from=t,this.to=n,this.tree=r,this.offset=i,this.open=(s?1:0)|(o?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(t,n=[],r=!1){let i=[new oo(0,t.length,t,0,!1,r)];for(let s of n)s.to>t.length&&i.push(s);return i}static applyChanges(t,n,r=128){if(!n.length)return t;let i=[],s=1,o=t.length?t[0]:null;for(let a=0,l=0,c=0;;a++){let u=a<n.length?n[a]:null,d=u?u.fromA:1e9;if(d-l>=r)for(;o&&o.from<d;){let f=o;if(l>=f.from||d<=f.to||c){let h=Math.max(f.from,l)-c,p=Math.min(f.to,d)-c;f=h>=p?null:new oo(h,p,f.tree,f.offset+c,a>0,!!u)}if(f&&i.push(f),o.to>d)break;o=s<t.length?t[s++]:null}if(!u)break;l=u.toA,c=u.toA-u.toB}return i}}class T${startParse(t,n,r){return typeof t=="string"&&(t=new Aae(t)),r=r?r.length?r.map(i=>new Ti(i.from,i.to)):[new Ti(0,0)]:[new Ti(0,t.length)],this.createParse(t,n||[],r)}parse(t,n,r){let i=this.startParse(t,n,r);for(;;){let s=i.advance();if(s)return s}}}class Aae{constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,n){return this.string.slice(t,n)}}function xae(e){return(t,n,r,i)=>new Cae(t,e,n,r,i)}class jC{constructor(t,n,r,i,s){this.parser=t,this.parse=n,this.overlay=r,this.target=i,this.from=s}}function VC(e){if(!e.length||e.some(t=>t.from>=t.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(e))}class Nae{constructor(t,n,r,i,s,o,a){this.parser=t,this.predicate=n,this.mounts=r,this.index=i,this.start=s,this.target=o,this.prev=a,this.depth=0,this.ranges=[]}}const UE=new Mt({perNode:!0});class Cae{constructor(t,n,r,i,s){this.nest=n,this.input=r,this.fragments=i,this.ranges=s,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=t}advance(){if(this.baseParse){let r=this.baseParse.advance();if(!r)return null;if(this.baseParse=null,this.baseTree=r,this.startInner(),this.stoppedAt!=null)for(let i of this.inner)i.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let r=this.baseTree;return this.stoppedAt!=null&&(r=new On(r.type,r.children,r.positions,r.length,r.propValues.concat([[UE,this.stoppedAt]]))),r}let t=this.inner[this.innerDone],n=t.parse.advance();if(n){this.innerDone++;let r=Object.assign(Object.create(null),t.target.props);r[Mt.mounted.id]=new oh(n,t.overlay,t.parser),t.target.props=r}return null}get parsedPos(){if(this.baseParse)return 0;let t=this.input.length;for(let n=this.innerDone;n<this.inner.length;n++)this.inner[n].from<t&&(t=Math.min(t,this.inner[n].parse.parsedPos));return t}stopAt(t){if(this.stoppedAt=t,this.baseParse)this.baseParse.stopAt(t);else for(let n=this.innerDone;n<this.inner.length;n++)this.inner[n].parse.stopAt(t)}startInner(){let t=new Iae(this.fragments),n=null,r=null,i=new Hg(new vr(this.baseTree,this.ranges[0].from,0,null),exports.Xe.IncludeAnonymous|exports.Xe.IgnoreMounts);e:for(let s,o;;){let a=!0,l;if(this.stoppedAt!=null&&i.from>=this.stoppedAt)a=!1;else if(t.hasNode(i)){if(n){let c=n.mounts.find(u=>u.frag.from<=i.from&&u.frag.to>=i.to&&u.mount.overlay);if(c)for(let u of c.mount.overlay){let d=u.from+c.pos,f=u.to+c.pos;d>=i.from&&f<=i.to&&!n.ranges.some(h=>h.from<f&&h.to>d)&&n.ranges.push({from:d,to:f})}}a=!1}else if(r&&(o=Oae(r.ranges,i.from,i.to)))a=o!=2;else if(!i.type.isAnonymous&&(s=this.nest(i,this.input))&&(i.from<i.to||!s.overlay)){i.tree||Dae(i);let c=t.findMounts(i.from,s.parser);if(typeof s.overlay=="function")n=new Nae(s.parser,s.overlay,c,this.inner.length,i.from,i.tree,n);else{let u=KC(this.ranges,s.overlay||(i.from<i.to?[new Ti(i.from,i.to)]:[]));u.length&&VC(u),(u.length||!s.overlay)&&this.inner.push(new jC(s.parser,u.length?s.parser.startParse(this.input,WC(c,u),u):s.parser.startParse(""),s.overlay?s.overlay.map(d=>new Ti(d.from-i.from,d.to-i.from)):null,i.tree,u.length?u[0].from:i.from)),s.overlay?u.length&&(r={ranges:u,depth:0,prev:r}):a=!1}}else n&&(l=n.predicate(i))&&(l===!0&&(l=new Ti(i.from,i.to)),l.from<l.to&&n.ranges.push(l));if(a&&i.firstChild())n&&n.depth++,r&&r.depth++;else for(;!i.nextSibling();){if(!i.parent())break e;if(n&&!--n.depth){let c=KC(this.ranges,n.ranges);c.length&&(VC(c),this.inner.splice(n.index,0,new jC(n.parser,n.parser.startParse(this.input,WC(n.mounts,c),c),n.ranges.map(u=>new Ti(u.from-n.start,u.to-n.start)),n.target,c[0].from))),n=n.prev}r&&!--r.depth&&(r=r.prev)}}}}function Oae(e,t,n){for(let r of e){if(r.from>=n)break;if(r.to>t)return r.from<=t&&r.to>=n?2:1}return 0}function qC(e,t,n,r,i,s){if(t<n){let o=e.buffer[t+1];r.push(e.slice(t,n,o)),i.push(o-s)}}function Dae(e){let{node:t}=e,n=[],r=t.context.buffer;do n.push(e.index),e.parent();while(!e.tree);let i=e.tree,s=i.children.indexOf(r),o=i.children[s],a=o.buffer,l=[s];function c(u,d,f,h,p,m){let g=n[m],b=[],v=[];qC(o,u,g,b,v,h);let y=a[g+1],E=a[g+2];l.push(b.length);let T=m?c(g+4,a[g+3],o.set.types[a[g]],y,E-y,m-1):t.toTree();return b.push(T),v.push(y-h),qC(o,a[g+3],d,b,v,h),new On(f,b,v,p)}i.children[s]=c(0,a.length,Lr.none,0,o.length,n.length-1);for(let u of l){let d=e.tree.children[u],f=e.tree.positions[u];e.yield(new vr(d,f+e.from,u,e._tree))}}class zC{constructor(t,n){this.offset=n,this.done=!1,this.cursor=t.cursor(exports.Xe.IncludeAnonymous|exports.Xe.IgnoreMounts)}moveTo(t){let{cursor:n}=this,r=t-this.offset;for(;!this.done&&n.from<r;)n.to>=t&&n.enter(r,1,exports.Xe.IgnoreOverlays|exports.Xe.ExcludeBuffers)||n.next(!1)||(this.done=!0)}hasNode(t){if(this.moveTo(t.from),!this.done&&this.cursor.from+this.offset==t.from&&this.cursor.tree)for(let n=this.cursor.tree;;){if(n==t.tree)return!0;if(n.children.length&&n.positions[0]==0&&n.children[0]instanceof On)n=n.children[0];else break}return!1}}class Iae{constructor(t){var n;if(this.fragments=t,this.curTo=0,this.fragI=0,t.length){let r=this.curFrag=t[0];this.curTo=(n=r.tree.prop(UE))!==null&&n!==void 0?n:r.to,this.inner=new zC(r.tree,-r.offset)}else this.curFrag=this.inner=null}hasNode(t){for(;this.curFrag&&t.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=t.from&&this.curTo>=t.to&&this.inner.hasNode(t)}nextFrag(){var t;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let n=this.curFrag=this.fragments[this.fragI];this.curTo=(t=n.tree.prop(UE))!==null&&t!==void 0?t:n.to,this.inner=new zC(n.tree,-n.offset)}}findMounts(t,n){var r;let i=[];if(this.inner){this.inner.cursor.moveTo(t,1);for(let s=this.inner.cursor.node;s;s=s.parent){let o=(r=s.tree)===null||r===void 0?void 0:r.prop(Mt.mounted);if(o&&o.parser==n)for(let a=this.fragI;a<this.fragments.length;a++){let l=this.fragments[a];if(l.from>=s.to)break;l.tree==this.curFrag.tree&&i.push({frag:l,pos:s.from-l.offset,mount:o})}}}return i}}function KC(e,t){let n=null,r=t;for(let i=1,s=0;i<e.length;i++){let o=e[i-1].to,a=e[i].from;for(;s<r.length;s++){let l=r[s];if(l.from>=a)break;l.to<=o||(n||(r=n=t.slice()),l.from<o?(n[s]=new Ti(l.from,o),l.to>a&&n.splice(s+1,0,new Ti(a,l.to))):l.to>a?n[s--]=new Ti(a,l.to):n.splice(s--,1))}}return r}function Rae(e,t,n,r){let i=0,s=0,o=!1,a=!1,l=-1e9,c=[];for(;;){let u=i==e.length?1e9:o?e[i].to:e[i].from,d=s==t.length?1e9:a?t[s].to:t[s].from;if(o!=a){let f=Math.max(l,n),h=Math.min(u,d,r);f<h&&c.push(new Ti(f,h))}if(l=Math.min(u,d),l==1e9)break;u==l&&(o?(o=!1,i++):o=!0),d==l&&(a?(a=!1,s++):a=!0)}return c}function WC(e,t){let n=[];for(let{pos:r,mount:i,frag:s}of e){let o=r+(i.overlay?i.overlay[0].from:0),a=o+i.tree.length,l=Math.max(s.from,o),c=Math.min(s.to,a);if(i.overlay){let u=i.overlay.map(f=>new Ti(f.from+r,f.to+r)),d=Rae(t,u,l,c);for(let f=0,h=l;;f++){let p=f==d.length,m=p?c:d[f].from;if(m>h&&n.push(new oo(h,m,i.tree,-o,s.from>=h||s.openStart,s.to<=m||s.openEnd)),p)break;h=d[f].to}}else n.push(new oo(l,c,i.tree,-o,s.from>=o||s.openStart,s.to<=a||s.openEnd))}return n}let Pae=0,Zo=class S${constructor(t,n,r){this.set=t,this.base=n,this.modified=r,this.id=Pae++}static define(t){if(t!=null&&t.base)throw new Error("Can not derive from a modified tag");let n=new S$([],null,[]);if(n.set.push(n),t)for(let r of t.set)n.set.push(r);return n}static defineModifier(){let t=new jg;return n=>n.modified.indexOf(t)>-1?n:jg.get(n.base||n,n.modified.concat(t).sort((r,i)=>r.id-i.id))}},Lae=0;class jg{constructor(){this.instances=[],this.id=Lae++}static get(t,n){if(!n.length)return t;let r=n[0].instances.find(a=>a.base==t&&Mae(n,a.modified));if(r)return r;let i=[],s=new Zo(i,t,n);for(let a of n)a.instances.push(s);let o=$ae(n);for(let a of t.set)if(!a.modified.length)for(let l of o)i.push(jg.get(a,l));return s}}function Mae(e,t){return e.length==t.length&&e.every((n,r)=>n==t[r])}function $ae(e){let t=[[]];for(let n=0;n<e.length;n++)for(let r=0,i=t.length;r<i;r++)t.push(t[r].concat(e[n]));return t.sort((n,r)=>r.length-n.length)}function k$(e){let t=Object.create(null);for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]);for(let i of n.split(" "))if(i){let s=[],o=2,a=i;for(let d=0;;){if(a=="..."&&d>0&&d+3==i.length){o=1;break}let f=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);if(!f)throw new RangeError("Invalid path: "+i);if(s.push(f[0]=="*"?"":f[0][0]=='"'?JSON.parse(f[0]):f[0]),d+=f[0].length,d==i.length)break;let h=i[d++];if(d==i.length&&h=="!"){o=0;break}if(h!="/")throw new RangeError("Invalid path: "+i);a=i.slice(d)}let l=s.length-1,c=s[l];if(!c)throw new RangeError("Invalid path: "+i);let u=new Vg(r,o,l>0?s.slice(0,l):null);t[c]=u.sort(t[c])}}return A$.add(t)}const A$=new Mt;class Vg{constructor(t,n,r,i){this.tags=t,this.mode=n,this.context=r,this.next=i}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(t){return!t||t.depth<this.depth?(this.next=t,this):(t.next=this.sort(t.next),t)}get depth(){return this.context?this.context.length:0}}Vg.empty=new Vg([],2,null);function x$(e,t){let n=Object.create(null);for(let s of e)if(!Array.isArray(s.tag))n[s.tag.id]=s.class;else for(let o of s.tag)n[o.id]=s.class;let{scope:r,all:i=null}=t||{};return{style:s=>{let o=i;for(let a of s)for(let l of a.set){let c=n[l.id];if(c){o=o?o+" "+c:c;break}}return o},scope:r}}function Fae(e,t){let n=null;for(let r of e){let i=r.style(t);i&&(n=n?n+" "+i:i)}return n}function Bae(e,t,n,r=0,i=e.length){let s=new Uae(r,Array.isArray(t)?t:[t],n);s.highlightRange(e.cursor(),r,i,"",s.highlighters),s.flush(i)}class Uae{constructor(t,n,r){this.at=t,this.highlighters=n,this.span=r,this.class=""}startSpan(t,n){n!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=n)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,n,r,i,s){let{type:o,from:a,to:l}=t;if(a>=r||l<=n)return;o.isTop&&(s=this.highlighters.filter(h=>!h.scope||h.scope(o)));let c=i,u=Hae(t)||Vg.empty,d=Fae(s,u.tags);if(d&&(c&&(c+=" "),c+=d,u.mode==1&&(i+=(i?" ":"")+d)),this.startSpan(Math.max(n,a),c),u.opaque)return;let f=t.tree&&t.tree.prop(Mt.mounted);if(f&&f.overlay){let h=t.node.enter(f.overlay[0].from+a,1),p=this.highlighters.filter(g=>!g.scope||g.scope(f.tree.type)),m=t.firstChild();for(let g=0,b=a;;g++){let v=g<f.overlay.length?f.overlay[g]:null,y=v?v.from+a:l,E=Math.max(n,b),T=Math.min(r,y);if(E<T&&m)for(;t.from<T&&(this.highlightRange(t,E,T,i,s),this.startSpan(Math.min(T,t.to),c),!(t.to>=y||!t.nextSibling())););if(!v||y>r)break;b=v.to+a,b>n&&(this.highlightRange(h.cursor(),Math.max(n,v.from+a),Math.min(r,b),"",p),this.startSpan(Math.min(r,b),c))}m&&t.parent()}else if(t.firstChild()){f&&(i="");do if(!(t.to<=n)){if(t.from>=r)break;this.highlightRange(t,n,r,i,s),this.startSpan(Math.min(r,t.to),c)}while(t.nextSibling());t.parent()}}}function Hae(e){let t=e.type.prop(A$);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}const He=Zo.define,sm=He(),ea=He(),GC=He(ea),YC=He(ea),ta=He(),om=He(ta),yv=He(ta),fs=He(),Za=He(fs),us=He(),ds=He(),HE=He(),Md=He(HE),am=He(),Ie={comment:sm,lineComment:He(sm),blockComment:He(sm),docComment:He(sm),name:ea,variableName:He(ea),typeName:GC,tagName:He(GC),propertyName:YC,attributeName:He(YC),className:He(ea),labelName:He(ea),namespace:He(ea),macroName:He(ea),literal:ta,string:om,docString:He(om),character:He(om),attributeValue:He(om),number:yv,integer:He(yv),float:He(yv),bool:He(ta),regexp:He(ta),escape:He(ta),color:He(ta),url:He(ta),keyword:us,self:He(us),null:He(us),atom:He(us),unit:He(us),modifier:He(us),operatorKeyword:He(us),controlKeyword:He(us),definitionKeyword:He(us),moduleKeyword:He(us),operator:ds,derefOperator:He(ds),arithmeticOperator:He(ds),logicOperator:He(ds),bitwiseOperator:He(ds),compareOperator:He(ds),updateOperator:He(ds),definitionOperator:He(ds),typeOperator:He(ds),controlOperator:He(ds),punctuation:HE,separator:He(HE),bracket:Md,angleBracket:He(Md),squareBracket:He(Md),paren:He(Md),brace:He(Md),content:fs,heading:Za,heading1:He(Za),heading2:He(Za),heading3:He(Za),heading4:He(Za),heading5:He(Za),heading6:He(Za),contentSeparator:He(fs),list:He(fs),quote:He(fs),emphasis:He(fs),strong:He(fs),link:He(fs),monospace:He(fs),strikethrough:He(fs),inserted:He(),deleted:He(),changed:He(),invalid:He(),meta:am,documentMeta:He(am),annotation:He(am),processingInstruction:He(am),definition:Zo.defineModifier(),constant:Zo.defineModifier(),function:Zo.defineModifier(),standard:Zo.defineModifier(),local:Zo.defineModifier(),special:Zo.defineModifier()};x$([{tag:Ie.link,class:"tok-link"},{tag:Ie.heading,class:"tok-heading"},{tag:Ie.emphasis,class:"tok-emphasis"},{tag:Ie.strong,class:"tok-strong"},{tag:Ie.keyword,class:"tok-keyword"},{tag:Ie.atom,class:"tok-atom"},{tag:Ie.bool,class:"tok-bool"},{tag:Ie.url,class:"tok-url"},{tag:Ie.labelName,class:"tok-labelName"},{tag:Ie.inserted,class:"tok-inserted"},{tag:Ie.deleted,class:"tok-deleted"},{tag:Ie.literal,class:"tok-literal"},{tag:Ie.string,class:"tok-string"},{tag:Ie.number,class:"tok-number"},{tag:[Ie.regexp,Ie.escape,Ie.special(Ie.string)],class:"tok-string2"},{tag:Ie.variableName,class:"tok-variableName"},{tag:Ie.local(Ie.variableName),class:"tok-variableName tok-local"},{tag:Ie.definition(Ie.variableName),class:"tok-variableName tok-definition"},{tag:Ie.special(Ie.variableName),class:"tok-variableName2"},{tag:Ie.definition(Ie.propertyName),class:"tok-propertyName tok-definition"},{tag:Ie.typeName,class:"tok-typeName"},{tag:Ie.namespace,class:"tok-namespace"},{tag:Ie.className,class:"tok-className"},{tag:Ie.macroName,class:"tok-macroName"},{tag:Ie.propertyName,class:"tok-propertyName"},{tag:Ie.operator,class:"tok-operator"},{tag:Ie.comment,class:"tok-comment"},{tag:Ie.meta,class:"tok-meta"},{tag:Ie.invalid,class:"tok-invalid"},{tag:Ie.punctuation,class:"tok-punctuation"}]);var vv;const Lc=new Mt;function N$(e){return st.define({combine:e?t=>t.concat(e):void 0})}const C$=new Mt;class Gi{constructor(t,n,r=[],i=""){this.data=t,this.name=i,Vt.prototype.hasOwnProperty("tree")||Object.defineProperty(Vt.prototype,"tree",{get(){return Ia(this)}}),this.parser=n,this.extension=[Eu.of(this),Vt.languageData.of((s,o,a)=>{let l=XC(s,o,a),c=l.type.prop(Lc);if(!c)return[];let u=s.facet(c),d=l.type.prop(C$);if(d){let f=l.resolve(o-l.from,a);for(let h of d)if(h.test(f,s)){let p=s.facet(h.facet);return h.type=="replace"?p:p.concat(u)}}return u})].concat(r)}isActiveAt(t,n,r=-1){return XC(t,n,r).type.prop(Lc)==this.data}findRegions(t){let n=t.facet(Eu);if((n==null?void 0:n.data)==this.data)return[{from:0,to:t.doc.length}];if(!n||!n.allowsNesting)return[];let r=[],i=(s,o)=>{if(s.prop(Lc)==this.data){r.push({from:o,to:o+s.length});return}let a=s.prop(Mt.mounted);if(a){if(a.tree.prop(Lc)==this.data){if(a.overlay)for(let l of a.overlay)r.push({from:l.from+o,to:l.to+o});else r.push({from:o,to:o+s.length});return}else if(a.overlay){let l=r.length;if(i(a.tree,a.overlay[0].from+o),r.length>l)return}}for(let l=0;l<s.children.length;l++){let c=s.children[l];c instanceof On&&i(c,s.positions[l]+o)}};return i(Ia(t),0),r}get allowsNesting(){return!0}}Gi.setState=Fn.define();function XC(e,t,n){let r=e.facet(Eu),i=Ia(e).topNode;if(!r||r.allowsNesting)for(let s=i;s;s=s.enter(t,n,exports.Xe.ExcludeBuffers))s.type.isTop&&(i=s);return i}class qg extends Gi{constructor(t,n,r){super(t,n,[],r),this.parser=n}static define(t){let n=N$(t.languageData);return new qg(n,t.parser.configure({props:[Lc.add(r=>r.isTop?n:void 0)]}),t.name)}configure(t,n){return new qg(this.data,this.parser.configure(t),n||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Ia(e){let t=e.field(Gi.state,!1);return t?t.tree:On.empty}class jae{constructor(t){this.doc=t,this.cursorPos=0,this.string="",this.cursor=t.iter()}get length(){return this.doc.length}syncTo(t){return this.string=this.cursor.next(t-this.cursorPos).value,this.cursorPos=t+this.string.length,this.cursorPos-this.string.length}chunk(t){return this.syncTo(t),this.string}get lineChunks(){return!0}read(t,n){let r=this.cursorPos-this.string.length;return t<r||n>=this.cursorPos?this.doc.sliceString(t,n):this.string.slice(t-r,n-r)}}let $d=null;class zg{constructor(t,n,r=[],i,s,o,a,l){this.parser=t,this.state=n,this.fragments=r,this.tree=i,this.treeLen=s,this.viewport=o,this.skipped=a,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(t,n,r){return new zg(t,n,[],On.empty,0,r,[],null)}startParse(){return this.parser.startParse(new jae(this.state.doc),this.fragments)}work(t,n){return n!=null&&n>=this.state.doc.length&&(n=void 0),this.tree!=On.empty&&this.isDone(n??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var r;if(typeof t=="number"){let i=Date.now()+t;t=()=>Date.now()>i}for(this.parse||(this.parse=this.startParse()),n!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>n)&&n<this.state.doc.length&&this.parse.stopAt(n);;){let i=this.parse.advance();if(i)if(this.fragments=this.withoutTempSkipped(oo.addTree(i,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(r=this.parse.stoppedAt)!==null&&r!==void 0?r:this.state.doc.length,this.tree=i,this.parse=null,this.treeLen<(n??this.state.doc.length))this.parse=this.startParse();else return!0;if(t())return!1}})}takeTree(){let t,n;this.parse&&(t=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext(()=>{for(;!(n=this.parse.advance()););}),this.treeLen=t,this.tree=n,this.fragments=this.withoutTempSkipped(oo.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let n=$d;$d=this;try{return t()}finally{$d=n}}withoutTempSkipped(t){for(let n;n=this.tempSkipped.pop();)t=QC(t,n.from,n.to);return t}changes(t,n){let{fragments:r,tree:i,treeLen:s,viewport:o,skipped:a}=this;if(this.takeTree(),!t.empty){let l=[];if(t.iterChangedRanges((c,u,d,f)=>l.push({fromA:c,toA:u,fromB:d,toB:f})),r=oo.applyChanges(r,l),i=On.empty,s=0,o={from:t.mapPos(o.from,-1),to:t.mapPos(o.to,1)},this.skipped.length){a=[];for(let c of this.skipped){let u=t.mapPos(c.from,1),d=t.mapPos(c.to,-1);u<d&&a.push({from:u,to:d})}}}return new zg(this.parser,n,r,i,s,o,a,this.scheduleOn)}updateViewport(t){if(this.viewport.from==t.from&&this.viewport.to==t.to)return!1;this.viewport=t;let n=this.skipped.length;for(let r=0;r<this.skipped.length;r++){let{from:i,to:s}=this.skipped[r];i<t.to&&s>t.from&&(this.fragments=QC(this.fragments,i,s),this.skipped.splice(r--,1))}return this.skipped.length>=n?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(t,n){this.skipped.push({from:t,to:n})}static getSkippingParser(t){return new class extends T${createParse(n,r,i){let s=i[0].from,o=i[i.length-1].to;return{parsedPos:s,advance(){let a=$d;if(a){for(let l of i)a.tempSkipped.push(l);t&&(a.scheduleOn=a.scheduleOn?Promise.all([a.scheduleOn,t]):t)}return this.parsedPos=o,new On(Lr.none,[],[],o-s)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let n=this.fragments;return this.treeLen>=t&&n.length&&n[0].from==0&&n[0].to>=t}static get(){return $d}}function QC(e,t,n){return oo.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class vu{constructor(t){this.context=t,this.tree=t.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let n=this.context.changes(t.changes,t.state),r=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),n.viewport.to);return n.work(20,r)||n.takeTree(),new vu(n)}static init(t){let n=Math.min(3e3,t.doc.length),r=zg.create(t.facet(Eu).parser,t,{from:0,to:n});return r.work(20,n)||r.takeTree(),new vu(r)}}Gi.state=No.define({create:vu.init,update(e,t){for(let n of t.effects)if(n.is(Gi.setState))return n.value;return t.startState.facet(Eu)!=t.state.facet(Eu)?vu.init(t.state):e.apply(t)}});let O$=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};typeof requestIdleCallback<"u"&&(O$=e=>{let t=-1,n=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const Ev=typeof navigator<"u"&&!((vv=navigator.scheduling)===null||vv===void 0)&&vv.isInputPending?()=>navigator.scheduling.isInputPending():null,Vae=Ii.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(Gi.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(Gi.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=O$(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:r}}=this.view,i=n.field(Gi.state);if(i.tree==i.context.tree&&i.context.isDone(r+1e5))return;let s=Date.now()+Math.min(this.chunkBudget,100,e&&!Ev?Math.max(25,e.timeRemaining()-5):1e9),o=i.context.treeLen<r&&n.doc.length>r+1e3,a=i.context.work(()=>Ev&&Ev()||Date.now()>s,r+(o?0:1e5));this.chunkBudget-=Date.now()-t,(a||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:Gi.setState.of(new vu(i.context))})),this.chunkBudget>0&&!(a&&!o)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(t=>so(this.view.state,t)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Eu=st.define({combine(e){return e.length?e[0]:null},enables:e=>[Gi.state,Vae,Nt.contentAttributes.compute([e],t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}})]});class qae{constructor(t,n=[]){this.language=t,this.support=n,this.extension=[t,n]}}const zae=st.define(),OT=st.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some(n=>n!=t[0]))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function D$(e){let t=e.facet(OT);return t.charCodeAt(0)==9?e.tabSize*t.length:t.length}function I$(e,t){let n="",r=e.tabSize,i=e.facet(OT)[0];if(i==" "){for(;t>=r;)n+=" ",t-=r;i=" "}for(let s=0;s<t;s++)n+=i;return n}function Kae(e,t){e instanceof Vt&&(e=new R$(e));for(let r of e.state.facet(zae)){let i=r(e,t);if(i!==void 0)return i}let n=Ia(e.state);return n.length>=t?Wae(e,n,t):null}class R${constructor(t,n={}){this.state=t,this.options=n,this.unit=D$(t)}lineAt(t,n=1){let r=this.state.doc.lineAt(t),{simulateBreak:i,simulateDoubleBreak:s}=this.options;return i!=null&&i>=r.from&&i<=r.to?s&&i==t?{text:"",from:t}:(n<0?i<t:i<=t)?{text:r.text.slice(i-r.from),from:i}:{text:r.text.slice(0,i-r.from),from:r.from}:r}textAfterPos(t,n=1){if(this.options.simulateDoubleBreak&&t==this.options.simulateBreak)return"";let{text:r,from:i}=this.lineAt(t,n);return r.slice(t-i,Math.min(r.length,t+100-i))}column(t,n=1){let{text:r,from:i}=this.lineAt(t,n),s=this.countColumn(r,t-i),o=this.options.overrideIndentation?this.options.overrideIndentation(i):-1;return o>-1&&(s+=o-this.countColumn(r,r.search(/\S|$/))),s}countColumn(t,n=t.length){return yT(t,this.state.tabSize,n)}lineIndent(t,n=1){let{text:r,from:i}=this.lineAt(t,n),s=this.options.overrideIndentation;if(s){let o=s(i);if(o>-1)return o}return this.countColumn(r,r.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const P$=new Mt;function Wae(e,t,n){let r=t.resolveStack(n),i=r.node.enterUnfinishedNodesBefore(n);if(i!=r.node){let s=[];for(let o=i;o!=r.node;o=o.parent)s.push(o);for(let o=s.length-1;o>=0;o--)r={node:s[o],next:r}}return L$(r,e,n)}function L$(e,t,n){for(let r=e;r;r=r.next){let i=Yae(r.node);if(i)return i(DT.create(t,n,r))}return 0}function Gae(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}function Yae(e){let t=e.type.prop(P$);if(t)return t;let n=e.firstChild,r;if(n&&(r=n.type.prop(Mt.closedBy))){let i=e.lastChild,s=i&&r.indexOf(i.name)>-1;return o=>M$(o,!0,1,void 0,s&&!Gae(o)?i.from:void 0)}return e.parent==null?Xae:null}function Xae(){return 0}class DT extends R${constructor(t,n,r){super(t.state,t.options),this.base=t,this.pos=n,this.context=r}get node(){return this.context.node}static create(t,n,r){return new DT(t,n,r)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(t){let n=this.state.doc.lineAt(t.from);for(;;){let r=t.resolve(n.from);for(;r.parent&&r.parent.from==r.from;)r=r.parent;if(Qae(r,t))break;n=this.state.doc.lineAt(r.from)}return this.lineIndent(n.from)}continue(){return L$(this.context.next,this.base,this.pos)}}function Qae(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function Jae(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let i=e.options.simulateBreak,s=e.state.doc.lineAt(n.from),o=i==null||i<=s.from?s.to:Math.min(s.to,i);for(let a=n.to;;){let l=t.childAfter(a);if(!l||l==r)return null;if(!l.type.isSkipped)return l.from<o?n:null;a=l.to}}function Zae({closing:e,align:t=!0,units:n=1}){return r=>M$(r,t,n,e)}function M$(e,t,n,r,i){let s=e.textAfter,o=s.match(/^\s*/)[0].length,a=r&&s.slice(o,o+r.length)==r||i==e.pos+o,l=t?Jae(e):null;return l?a?e.column(l.from):e.column(l.to):e.baseIndent+(a?0:e.unit*n)}const ele=e=>e.baseIndent;function tle({except:e,units:t=1}={}){return n=>{let r=e&&e.test(n.textAfter);return n.baseIndent+(r?0:t*n.unit)}}const nle=200;function rle(){return Vt.transactionFilter.of(e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:r}=e.newSelection.main,i=n.lineAt(r);if(r>i.from+nle)return e;let s=n.sliceString(i.from,r);if(!t.some(c=>c.test(s)))return e;let{state:o}=e,a=-1,l=[];for(let{head:c}of o.selection.ranges){let u=o.doc.lineAt(c);if(u.from==a)continue;a=u.from;let d=Kae(o,u.from);if(d==null)continue;let f=/^\s*/.exec(u.text)[0],h=I$(o,d);f!=h&&l.push({from:u.from,to:u.from+f.length,insert:h})}return l.length?[e,{changes:l,sequential:!0}]:e})}const ile=new Mt;function sle(e){let t=e.firstChild,n=e.lastChild;return t&&t.to<n.from?{from:t.to,to:n.type.isError?e.to:n.from}:null}class jh{constructor(t,n){this.specs=t;let r;function i(a){let l=Na.newName();return(r||(r=Object.create(null)))["."+l]=a,l}const s=typeof n.all=="string"?n.all:n.all?i(n.all):void 0,o=n.scope;this.scope=o instanceof Gi?a=>a.prop(Lc)==o.data:o?a=>a==o:void 0,this.style=x$(t.map(a=>({tag:a.tag,class:a.class||i(Object.assign({},a,{tag:null}))})),{all:s}).style,this.module=r?new Na(r):null,this.themeType=n.themeType}static define(t,n){return new jh(t,n||{})}}const jE=st.define(),$$=st.define({combine(e){return e.length?[e[0]]:null}});function _v(e){let t=e.facet(jE);return t.length?t:e.facet($$)}function F$(e,t){let n=[ale],r;return e instanceof jh&&(e.module&&n.push(Nt.styleModule.of(e.module)),r=e.themeType),t!=null&&t.fallback?n.push($$.of(e)):r?n.push(jE.computeN([Nt.darkTheme],i=>i.facet(Nt.darkTheme)==(r=="dark")?[e]:[])):n.push(jE.of(e)),n}class ole{constructor(t){this.markCache=Object.create(null),this.tree=Ia(t.state),this.decorations=this.buildDeco(t,_v(t.state)),this.decoratedTo=t.viewport.to}update(t){let n=Ia(t.state),r=_v(t.state),i=r!=_v(t.startState),{viewport:s}=t.view,o=t.changes.mapPos(this.decoratedTo,1);n.length<s.to&&!i&&n.type==this.tree.type&&o>=s.to?(this.decorations=this.decorations.map(t.changes),this.decoratedTo=o):(n!=this.tree||t.viewportChanged||i)&&(this.tree=n,this.decorations=this.buildDeco(t.view,r),this.decoratedTo=s.to)}buildDeco(t,n){if(!n||!this.tree.length)return yn.none;let r=new bu;for(let{from:i,to:s}of t.visibleRanges)Bae(this.tree,n,(o,a,l)=>{r.add(o,a,this.markCache[l]||(this.markCache[l]=yn.mark({class:l})))},i,s);return r.finish()}}const ale=gb.high(Ii.fromClass(ole,{decorations:e=>e.decorations})),lle=jh.define([{tag:Ie.meta,color:"#404740"},{tag:Ie.link,textDecoration:"underline"},{tag:Ie.heading,textDecoration:"underline",fontWeight:"bold"},{tag:Ie.emphasis,fontStyle:"italic"},{tag:Ie.strong,fontWeight:"bold"},{tag:Ie.strikethrough,textDecoration:"line-through"},{tag:Ie.keyword,color:"#708"},{tag:[Ie.atom,Ie.bool,Ie.url,Ie.contentSeparator,Ie.labelName],color:"#219"},{tag:[Ie.literal,Ie.inserted],color:"#164"},{tag:[Ie.string,Ie.deleted],color:"#a11"},{tag:[Ie.regexp,Ie.escape,Ie.special(Ie.string)],color:"#e40"},{tag:Ie.definition(Ie.variableName),color:"#00f"},{tag:Ie.local(Ie.variableName),color:"#30a"},{tag:[Ie.typeName,Ie.namespace],color:"#085"},{tag:Ie.className,color:"#167"},{tag:[Ie.special(Ie.variableName),Ie.macroName],color:"#256"},{tag:Ie.definition(Ie.propertyName),color:"#00c"},{tag:Ie.comment,color:"#940"},{tag:Ie.invalid,color:"#f00"}]),cle=Nt.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),B$=1e4,U$="()[]{}",H$=st.define({combine(e){return yb(e,{afterCursor:!0,brackets:U$,maxScanDistance:B$,renderMatch:fle})}}),ule=yn.mark({class:"cm-matchingBracket"}),dle=yn.mark({class:"cm-nonmatchingBracket"});function fle(e){let t=[],n=e.matched?ule:dle;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}const hle=No.define({create(){return yn.none},update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],r=t.state.facet(H$);for(let i of t.state.selection.ranges){if(!i.empty)continue;let s=lm(t.state,i.head,-1,r)||i.head>0&&lm(t.state,i.head-1,1,r)||r.afterCursor&&(lm(t.state,i.head,1,r)||i.head<t.state.doc.length&&lm(t.state,i.head+1,-1,r));s&&(n=n.concat(r.renderMatch(s,t.state)))}return yn.set(n,!0)},provide:e=>Nt.decorations.from(e)}),ple=[hle,cle];function mle(e={}){return[H$.of(e),ple]}const j$=new Mt;function VE(e,t,n){let r=e.prop(t<0?Mt.openedBy:Mt.closedBy);if(r)return r;if(e.name.length==1){let i=n.indexOf(e.name);if(i>-1&&i%2==(t<0?1:0))return[n[i+t]]}return null}function qE(e){let t=e.type.prop(j$);return t?t(e.node):e}function lm(e,t,n,r={}){let i=r.maxScanDistance||B$,s=r.brackets||U$,o=Ia(e),a=o.resolveInner(t,n);for(let l=a;l;l=l.parent){let c=VE(l.type,n,s);if(c&&l.from<l.to){let u=qE(l);if(u&&(n>0?t>=u.from&&t<u.to:t>u.from&&t<=u.to))return gle(e,t,n,l,u,c,s)}}return ble(e,t,n,o,a.type,i,s)}function gle(e,t,n,r,i,s,o){let a=r.parent,l={from:i.from,to:i.to},c=0,u=a==null?void 0:a.cursor();if(u&&(n<0?u.childBefore(r.from):u.childAfter(r.to)))do if(n<0?u.to<=r.from:u.from>=r.to){if(c==0&&s.indexOf(u.type.name)>-1&&u.from<u.to){let d=qE(u);return{start:l,end:d?{from:d.from,to:d.to}:void 0,matched:!0}}else if(VE(u.type,n,o))c++;else if(VE(u.type,-n,o)){if(c==0){let d=qE(u);return{start:l,end:d&&d.from<d.to?{from:d.from,to:d.to}:void 0,matched:!1}}c--}}while(n<0?u.prevSibling():u.nextSibling());return{start:l,matched:!1}}function ble(e,t,n,r,i,s,o){let a=n<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),l=o.indexOf(a);if(l<0||l%2==0!=n>0)return null;let c={from:n<0?t-1:t,to:n>0?t+1:t},u=e.doc.iterRange(t,n>0?e.doc.length:0),d=0;for(let f=0;!u.next().done&&f<=s;){let h=u.value;n<0&&(f+=h.length);let p=t+f*n;for(let m=n>0?0:h.length-1,g=n>0?h.length:-1;m!=g;m+=n){let b=o.indexOf(h[m]);if(!(b<0||r.resolveInner(p+m,1).type!=i))if(b%2==0==n>0)d++;else{if(d==1)return{start:c,end:{from:p+m,to:p+m+1},matched:b>>1==l>>1};d--}}n>0&&(f+=h.length)}return u.done?{start:c,matched:!1}:null}const yle=Object.create(null),JC=[Lr.none],ZC=[],eO=Object.create(null),vle=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])vle[e]=Ele(yle,t);function wv(e,t){ZC.indexOf(e)>-1||(ZC.push(e),console.warn(t))}function Ele(e,t){let n=[];for(let a of t.split(" ")){let l=[];for(let c of a.split(".")){let u=e[c]||Ie[c];u?typeof u=="function"?l.length?l=l.map(u):wv(c,`Modifier ${c} used at start of tag`):l.length?wv(c,`Tag ${c} used as modifier`):l=Array.isArray(u)?u:[u]:wv(c,`Unknown highlighting tag ${c}`)}for(let c of l)n.push(c)}if(!n.length)return 0;let r=t.replace(/ /g,"_"),i=r+" "+n.map(a=>a.id),s=eO[i];if(s)return s.id;let o=eO[i]=Lr.define({id:JC.length,name:r,props:[k$({[r]:n})]});return JC.push(o),o.id}exports.ct.RTL,exports.ct.LTR;var _le=e=>{var{theme:t,settings:n={},styles:r=[]}=e,i={".cm-gutters":{}},s={};n.background&&(s.backgroundColor=n.background),n.backgroundImage&&(s.backgroundImage=n.backgroundImage),n.foreground&&(s.color=n.foreground),(n.background||n.foreground)&&(i["&"]=s),n.fontFamily&&(i["&.cm-editor .cm-scroller"]={fontFamily:n.fontFamily}),n.gutterBackground&&(i[".cm-gutters"].backgroundColor=n.gutterBackground),n.gutterForeground&&(i[".cm-gutters"].color=n.gutterForeground),n.gutterBorder&&(i[".cm-gutters"].borderRightColor=n.gutterBorder),n.caret&&(i[".cm-content"]={caretColor:n.caret},i[".cm-cursor, .cm-dropCursor"]={borderLeftColor:n.caret});var o={};n.gutterActiveForeground&&(o.color=n.gutterActiveForeground),n.lineHighlight&&(i[".cm-activeLine"]={backgroundColor:n.lineHighlight},o.backgroundColor=n.lineHighlight),i[".cm-activeLineGutter"]=o,n.selection&&(i["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:n.selection+" !important"}),n.selectionMatch&&(i["& .cm-selectionMatch"]={backgroundColor:n.selectionMatch});var a=Nt.theme(i,{dark:t==="dark"}),l=jh.define(r),c=[a,F$(l)];return c};const wle=_le({theme:"light",settings:{background:"var(--scalar-background-2)",foreground:"var(--scalar-color-1)",caret:"var(--scalar-color-1)",selection:"rgba(151, 183, 205, 0.2)",selectionMatch:"#e3dcce",gutterBackground:"var(--scalar-background-2)",gutterForeground:"var(--scalar-color-3)",gutterBorder:"transparent",lineHighlight:"var(--scalar-background-3)",fontFamily:"var(--scalar-font-code)"},styles:[{tag:[Ie.standard(Ie.tagName),Ie.tagName],color:"var(--scalar-color-purple)"},{tag:[Ie.comment],color:"var(--scalar-color-3)"},{tag:[Ie.className],color:"var(--scalar-color-orange)"},{tag:[Ie.variableName,Ie.propertyName,Ie.attributeName],color:"var(--scalar-color-1)"},{tag:[Ie.operator],color:"var(--scalar-color-2)"},{tag:[Ie.keyword,Ie.typeName,Ie.typeOperator],color:"var(--scalar-color-green)"},{tag:[Ie.string],color:"var(--scalar-color-blue)"},{tag:[Ie.bracket,Ie.regexp,Ie.meta],color:"var(--scalar-color-3)"},{tag:[Ie.number],color:"var(--scalar-color-blue)"},{tag:[Ie.name,Ie.quote],color:"var(--scalar-color-3)"},{tag:[Ie.heading],color:"var(--scalar-color-3)",fontWeight:"bold"},{tag:[Ie.emphasis],color:"var(--scalar-color-3)",fontStyle:"italic"},{tag:[Ie.deleted],color:"var(--scalar-color-3)",backgroundColor:"transparent"},{tag:[Ie.atom,Ie.bool,Ie.special(Ie.variableName)],color:"var(--scalar-color-3)"},{tag:[Ie.url,Ie.escape,Ie.regexp,Ie.link],color:"var(--scalar-color-1)"},{tag:Ie.link,textDecoration:"underline"},{tag:Ie.strikethrough,textDecoration:"line-through"},{tag:Ie.invalid,color:"var(--scalar-color-3)"}]}),tO=new m$({regexp:/(\{[^}]+\})/g,decoration:()=>yn.mark({attributes:{class:"api-client-url-variable"}})}),Tle=()=>Ii.fromClass(class{constructor(e){sie(this,"variables"),this.variables=tO.createDeco(e)}update(e){this.variables=tO.updateDeco(e,this.variables)}},{decorations:e=>e.variables,provide:e=>Nt.atomicRanges.of(t=>{var n;return((n=t.plugin(e))==null?void 0:n.variables)||yn.none})}),Sle={class:"scalar-modal-layout modal-layout"},kle=Se({__name:"FlowModal",props:{state:{},title:{},bodyClass:{},maxWidth:{},variant:{default:"normal"}},setup(e){return(t,n)=>(C(),he(D(cH),{open:t.state.open,onClose:n[0]||(n[0]=r=>t.state.hide())},{default:X(()=>[ae("div",Sle,[Z(D(uH),{class:ct(["modal",{"modal-content-large":t.variant==="large","modal-content-normal":t.variant==="normal","modal-content-small":t.variant==="small","modal-content-search":t.variant==="search","modal-content-history":t.variant==="history"}]),style:_r({maxWidth:t.maxWidth})},{default:X(()=>[t.title?(C(),he(D(dH),{key:0,class:"modal-header"},{default:X(()=>[Pe(Ue(t.title),1)]),_:1})):be("",!0),Z(D(fH),{class:ct(["modal-body custom-scroll",[t.bodyClass]])},{default:X(()=>[Be(t.$slots,"default",{},void 0,!0)]),_:3},8,["class"])]),_:3},8,["class","style"])])]),_:3},8,["open"]))}}),V$=je(kle,[["__scopeId","data-v-4aafbf68"]]),q$=()=>or({open:!1,show(){this.open=!0},hide(){this.open=!1}});function Wm(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function z$(e){return typeof window>"u"?Buffer.from(e).toString("base64"):btoa(e)}const K$=e=>{const t=/(?:\{+)\s*(\w+)\s*(?:\}+)/g;return[...e.matchAll(t)].map(n=>n[1].trim())||[]};function Ale(e){return!(!e||Array.isArray(e)&&!e.length||(e??[]).some(t=>!Object.keys(t).length))}function IT(e,t){var n,r;const i=[],s=[],o=[];if(!e.customSecurity&&(!e.preferredSecurityScheme||!Ale(t)))return{headers:i,queryString:s,cookies:o};const a=t!=null&&t.some(c=>e.preferredSecurityScheme&&Object.keys(c).includes(e.preferredSecurityScheme))||e.customSecurity?e.preferredSecurityScheme:Object.keys((t==null?void 0:t[0])??{}).pop(),l=(n=e.securitySchemes)==null?void 0:n[a??""];if(l){if("type"in l&&l.type==="apiKey"){if("in"in l&&l.in==="header"){const c=(r=e.apiKey.token)!=null&&r.length?e.apiKey.token:"YOUR_TOKEN";i.push({name:"name"in l?l.name:"",value:c})}else if("in"in l&&l.in==="cookie"){const c=e.apiKey.token.length?e.apiKey.token:"YOUR_TOKEN";o.push({name:l.name,value:c})}else if("in"in l&&l.in==="query"){const c=e.apiKey.token.length?e.apiKey.token:"YOUR_TOKEN";s.push({name:l.name,value:c})}}else if("type"in l&&(l.type==="http"||l.type==="basic")){if("type"in l&&(l.type==="basic"||l.type==="http"&&l.scheme==="basic")){const{username:c,password:u}=e.http.basic,d=RT(c,u);i.push({name:"Authorization",value:`Basic ${d}`.trim()})}else if("type"in l&&l.type==="http"&&l.scheme==="bearer"){const c=e.http.bearer.token.length?e.http.bearer.token:"YOUR_SECRET_TOKEN";i.push({name:"Authorization",value:`Bearer ${c}`})}}else if("type"in l&&l.type.toLowerCase()==="oauth2"){const c=e.oAuth2.accessToken||"YOUR_SECRET_TOKEN";i.push({name:"Authorization",value:`Bearer ${c}`})}}return{headers:i,queryString:s,cookies:o}}function RT(e,t){return e!=null&&e.length||t!=null&&t.length?z$(`${e}:${t}`):""}function W$(e){return[e.apiKey.token,e.http.bearer.token,e.oAuth2.accessToken,RT(e.http.basic.username,e.http.basic.password),e.http.basic.password].filter(Boolean)}const xle=kw(Symbol()),Nle={},Cle={class:"card-form"};function Ole(e,t){return C(),V("form",Cle,[Be(e.$slots,"default",{},void 0,!0)])}const Dle=je(Nle,[["render",Ole],["__scopeId","data-v-983db964"]]),Ile=Se({__name:"CardFormButton",setup(e,{expose:t}){const n=de();return t({el:n}),(r,i)=>(C(),V("button",{ref_key:"el",ref:n,class:"card-form-button",type:"button"},[Be(r.$slots,"default",{},void 0,!0)],512))}}),G$=je(Ile,[["__scopeId","data-v-d19add49"]]),Rle={},Ple={class:"card-form-group"};function Lle(e,t){return C(),V("div",Ple,[Be(e.$slots,"default",{},void 0,!0)])}const nO=je(Rle,[["render",Lle],["__scopeId","data-v-6604ef98"]]);function Y$(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Y$(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Tv(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Y$(e))&&(r&&(r+=" "),r+=t);return r}const rO=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,Mle=e=>{const t=function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var s,o;return typeof(e==null||(s=e.hooks)===null||s===void 0?void 0:s["cx:done"])<"u"?e==null?void 0:e.hooks["cx:done"](Tv(r)):typeof(e==null||(o=e.hooks)===null||o===void 0?void 0:o.onComplete)<"u"?e==null?void 0:e.hooks.onComplete(Tv(r)):Tv(r)};return{compose:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return s=>{const o=Object.fromEntries(Object.entries(s||{}).filter(a=>{let[l]=a;return!["class","className"].includes(l)}));return t(r.map(a=>a(o)),s==null?void 0:s.class,s==null?void 0:s.className)}},cva:n=>r=>{var i;if((n==null?void 0:n.variants)==null)return t(n==null?void 0:n.base,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:o}=n,a=Object.keys(s).map(u=>{const d=r==null?void 0:r[u],f=o==null?void 0:o[u],h=rO(d)||rO(f);return s[u][h]}),l={...o,...r&&Object.entries(r).reduce((u,d)=>{let[f,h]=d;return typeof h>"u"?u:{...u,[f]:h}},{})},c=n==null||(i=n.compoundVariants)===null||i===void 0?void 0:i.reduce((u,d)=>{let{class:f,className:h,...p}=d;return Object.entries(p).every(m=>{let[g,b]=m;const v=l[g];return Array.isArray(b)?b.includes(v):v===b})?[...u,f,h]:u},[]);return t(n==null?void 0:n.base,a,c,r==null?void 0:r.class,r==null?void 0:r.className)},cx:t}},PT="-";function $le(e){const t=Ble(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;function i(o){const a=o.split(PT);return a[0]===""&&a.length!==1&&a.shift(),X$(a,t)||Fle(o)}function s(o,a){const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}return{getClassGroupId:i,getConflictingClassGroupIds:s}}function X$(e,t){var n;if(e.length===0)return t.classGroupId;const r=e[0],i=t.nextPart.get(r),s=i?X$(e.slice(1),i):void 0;if(s)return s;if(t.validators.length===0)return;const o=e.join(PT);return(n=t.validators.find(({validator:a})=>a(o)))==null?void 0:n.classGroupId}const iO=/^\[(.+)\]$/;function Fle(e){if(iO.test(e)){const t=iO.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function Ble(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Hle(Object.entries(e.classGroups),n).forEach(([i,s])=>{zE(s,r,i,t)}),r}function zE(e,t,n,r){e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:sO(t,i);s.classGroupId=n;return}if(typeof i=="function"){if(Ule(i)){zE(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([s,o])=>{zE(o,sO(t,s),n,r)})})}function sO(e,t){let n=e;return t.split(PT).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function Ule(e){return e.isThemeGetter}function Hle(e,t){return t?e.map(([n,r])=>{const i=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([o,a])=>[t+o,a])):s);return[n,i]}):e}function jle(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function i(s,o){n.set(s,o),t++,t>e&&(t=0,r=n,n=new Map)}return{get(s){let o=n.get(s);if(o!==void 0)return o;if((o=r.get(s))!==void 0)return i(s,o),o},set(s,o){n.has(s)?n.set(s,o):i(s,o)}}}const Q$="!";function Vle(e){const t=e.separator,n=t.length===1,r=t[0],i=t.length;return function(s){const o=[];let a=0,l=0,c;for(let p=0;p<s.length;p++){let m=s[p];if(a===0){if(m===r&&(n||s.slice(p,p+i)===t)){o.push(s.slice(l,p)),l=p+i;continue}if(m==="/"){c=p;continue}}m==="["?a++:m==="]"&&a--}const u=o.length===0?s:s.substring(l),d=u.startsWith(Q$),f=d?u.substring(1):u,h=c&&c>l?c-l:void 0;return{modifiers:o,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:h}}}function qle(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t}function zle(e){return{cache:jle(e.cacheSize),splitModifiers:Vle(e),...$le(e)}}const Kle=/\s+/;function Wle(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,s=new Set;return e.trim().split(Kle).map(o=>{const{modifiers:a,hasImportantModifier:l,baseClassName:c,maybePostfixModifierPosition:u}=n(o);let d=r(u?c.substring(0,u):c),f=!!u;if(!d){if(!u)return{isTailwindClass:!1,originalClassName:o};if(d=r(c),!d)return{isTailwindClass:!1,originalClassName:o};f=!1}const h=qle(a).join(":");return{isTailwindClass:!0,modifierId:l?h+Q$:h,classGroupId:d,originalClassName:o,hasPostfixModifier:f}}).reverse().filter(o=>{if(!o.isTailwindClass)return!0;const{modifierId:a,classGroupId:l,hasPostfixModifier:c}=o,u=a+l;return s.has(u)?!1:(s.add(u),i(l,c).forEach(d=>s.add(a+d)),!0)}).reverse().map(o=>o.originalClassName).join(" ")}function Gle(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=J$(t))&&(r&&(r+=" "),r+=n);return r}function J$(e){if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=J$(e[r]))&&(n&&(n+=" "),n+=t);return n}function oO(e,...t){let n,r,i,s=o;function o(l){const c=t.reduce((u,d)=>d(u),e());return n=zle(c),r=n.cache.get,i=n.cache.set,s=a,a(l)}function a(l){const c=r(l);if(c)return c;const u=Wle(l,n);return i(l,u),u}return function(){return s(Gle.apply(null,arguments))}}function nn(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const Z$=/^\[(?:([a-z-]+):)?(.+)\]$/i,Yle=/^\d+\/\d+$/,Xle=new Set(["px","full","screen"]),Qle=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Jle=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Zle=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ece=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,tce=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function zs(e){return gl(e)||Xle.has(e)||Yle.test(e)}function Mo(e){return Gu(e,"length",cce)}function gl(e){return!!e&&!Number.isNaN(Number(e))}function cm(e){return Gu(e,"number",gl)}function Fd(e){return!!e&&Number.isInteger(Number(e))}function nce(e){return e.endsWith("%")&&gl(e.slice(0,-1))}function vt(e){return Z$.test(e)}function $o(e){return Qle.test(e)}const rce=new Set(["length","size","percentage"]);function ice(e){return Gu(e,rce,eF)}function sce(e){return Gu(e,"position",eF)}const oce=new Set(["image","url"]);function ace(e){return Gu(e,oce,dce)}function lce(e){return Gu(e,"",uce)}function Bd(){return!0}function Gu(e,t,n){const r=Z$.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function cce(e){return Jle.test(e)&&!Zle.test(e)}function eF(){return!1}function uce(e){return ece.test(e)}function dce(e){return tce.test(e)}function aO(){const e=nn("colors"),t=nn("spacing"),n=nn("blur"),r=nn("brightness"),i=nn("borderColor"),s=nn("borderRadius"),o=nn("borderSpacing"),a=nn("borderWidth"),l=nn("contrast"),c=nn("grayscale"),u=nn("hueRotate"),d=nn("invert"),f=nn("gap"),h=nn("gradientColorStops"),p=nn("gradientColorStopPositions"),m=nn("inset"),g=nn("margin"),b=nn("opacity"),v=nn("padding"),y=nn("saturate"),E=nn("scale"),T=nn("sepia"),w=nn("skew"),S=nn("space"),k=nn("translate"),x=()=>["auto","contain","none"],A=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto",vt,t],R=()=>[vt,t],te=()=>["",zs,Mo],ee=()=>["auto",gl,vt],oe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],pe=()=>["solid","dashed","dotted","double","none"],G=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Q=()=>["start","end","center","between","around","evenly","stretch"],fe=()=>["","0",vt],O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>[gl,cm],J=()=>[gl,vt];return{cacheSize:500,separator:":",theme:{colors:[Bd],spacing:[zs,Mo],blur:["none","",$o,vt],brightness:B(),borderColor:[e],borderRadius:["none","","full",$o,vt],borderSpacing:R(),borderWidth:te(),contrast:B(),grayscale:fe(),hueRotate:J(),invert:fe(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[nce,Mo],inset:M(),margin:M(),opacity:B(),padding:R(),saturate:B(),scale:B(),sepia:fe(),skew:J(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",vt]}],container:["container"],columns:[{columns:[$o]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...oe(),vt]}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:x()}],"overscroll-x":[{"overscroll-x":x()}],"overscroll-y":[{"overscroll-y":x()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Fd,vt]}],basis:[{basis:M()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",vt]}],grow:[{grow:fe()}],shrink:[{shrink:fe()}],order:[{order:["first","last","none",Fd,vt]}],"grid-cols":[{"grid-cols":[Bd]}],"col-start-end":[{col:["auto",{span:["full",Fd,vt]},vt]}],"col-start":[{"col-start":ee()}],"col-end":[{"col-end":ee()}],"grid-rows":[{"grid-rows":[Bd]}],"row-start-end":[{row:["auto",{span:[Fd,vt]},vt]}],"row-start":[{"row-start":ee()}],"row-end":[{"row-end":ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",vt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",vt]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...Q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",vt,t]}],"min-w":[{"min-w":[vt,t,"min","max","fit"]}],"max-w":[{"max-w":[vt,t,"none","full","min","max","fit","prose",{screen:[$o]},$o]}],h:[{h:[vt,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[vt,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[vt,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[vt,t,"auto","min","max","fit"]}],"font-size":[{text:["base",$o,Mo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",cm]}],"font-family":[{font:[Bd]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",vt]}],"line-clamp":[{"line-clamp":["none",gl,cm]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",zs,vt]}],"list-image":[{"list-image":["none",vt]}],"list-style-type":[{list:["none","disc","decimal",vt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...pe(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",zs,Mo]}],"underline-offset":[{"underline-offset":["auto",zs,vt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",vt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",vt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...oe(),sce]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ice]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ace]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...pe(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:pe()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...pe()]}],"outline-offset":[{"outline-offset":[zs,vt]}],"outline-w":[{outline:[zs,Mo]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[zs,Mo]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",$o,lce]}],"shadow-color":[{shadow:[Bd]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...G(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":G()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",$o,vt]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[y]}],sepia:[{sepia:[T]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[T]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",vt]}],duration:[{duration:J()}],ease:[{ease:["linear","in","out","in-out",vt]}],delay:[{delay:J()}],animate:[{animate:["none","spin","ping","pulse","bounce",vt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[Fd,vt]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[w]}],"skew-y":[{"skew-y":[w]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",vt]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",vt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",vt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[zs,Mo,cm]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function fce(e,{cacheSize:t,prefix:n,separator:r,extend:i={},override:s={}}){Gm(e,"cacheSize",t),Gm(e,"prefix",n),Gm(e,"separator",r);for(const o in s)hce(e[o],s[o]);for(const o in i)pce(e[o],i[o]);return e}function Gm(e,t,n){n!==void 0&&(e[t]=n)}function hce(e,t){if(t)for(const n in t)Gm(e,n,t[n])}function pce(e,t){if(t)for(const n in t){const r=t[n];r!==void 0&&(e[n]=(e[n]||[]).concat(r))}}function mce(e,...t){return typeof e=="function"?oO(aO,e,...t):oO(()=>fce(aO(),e),...t)}const Kg=Math.min,Ll=Math.max,Wg=Math.round,um=Math.floor,Ra=e=>({x:e,y:e}),gce={left:"right",right:"left",bottom:"top",top:"bottom"},bce={start:"end",end:"start"};function lO(e,t,n){return Ll(e,Kg(t,n))}function _b(e,t){return typeof e=="function"?e(t):e}function Wl(e){return e.split("-")[0]}function wb(e){return e.split("-")[1]}function tF(e){return e==="x"?"y":"x"}function nF(e){return e==="y"?"height":"width"}function Tb(e){return["top","bottom"].includes(Wl(e))?"y":"x"}function rF(e){return tF(Tb(e))}function yce(e,t,n){n===void 0&&(n=!1);const r=wb(e),i=rF(e),s=nF(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=Gg(o)),[o,Gg(o)]}function vce(e){const t=Gg(e);return[KE(e),t,KE(t)]}function KE(e){return e.replace(/start|end/g,t=>bce[t])}function Ece(e,t,n){const r=["left","right"],i=["right","left"],s=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?s:o;default:return[]}}function _ce(e,t,n,r){const i=wb(e);let s=Ece(Wl(e),n==="start",r);return i&&(s=s.map(o=>o+"-"+i),t&&(s=s.concat(s.map(KE)))),s}function Gg(e){return e.replace(/left|right|bottom|top/g,t=>gce[t])}function wce(e){return{top:0,right:0,bottom:0,left:0,...e}}function Tce(e){return typeof e!="number"?wce(e):{top:e,right:e,bottom:e,left:e}}function Yg(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function cO(e,t,n){let{reference:r,floating:i}=e;const s=Tb(t),o=rF(t),a=nF(o),l=Wl(t),c=s==="y",u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[a]/2-i[a]/2;let h;switch(l){case"top":h={x:u,y:r.y-i.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-i.width,y:d};break;default:h={x:r.x,y:r.y}}switch(wb(t)){case"start":h[o]-=f*(n&&c?-1:1);break;case"end":h[o]+=f*(n&&c?-1:1);break}return h}const Sce=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:o}=n,a=s.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=cO(c,r,l),f=r,h={},p=0;for(let m=0;m<a.length;m++){const{name:g,fn:b}=a[m],{x:v,y,data:E,reset:T}=await b({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:h,rects:c,platform:o,elements:{reference:e,floating:t}});u=v??u,d=y??d,h={...h,[g]:{...h[g],...E}},T&&p<=50&&(p++,typeof T=="object"&&(T.placement&&(f=T.placement),T.rects&&(c=T.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):T.rects),{x:u,y:d}=cO(c,f,l)),m=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:h}};async function iF(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=_b(t,e),p=Tce(h),m=a[f?d==="floating"?"reference":"floating":d],g=Yg(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(m)))==null||n?m:m.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),b=d==="floating"?{...o.floating,x:r,y:i}:o.reference,v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),y=await(s.isElement==null?void 0:s.isElement(v))?await(s.getScale==null?void 0:s.getScale(v))||{x:1,y:1}:{x:1,y:1},E=Yg(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:v,strategy:l}):b);return{top:(g.top-E.top+p.top)/y.y,bottom:(E.bottom-g.bottom+p.bottom)/y.y,left:(g.left-E.left+p.left)/y.x,right:(E.right-g.right+p.right)/y.x}}const kce=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:s,rects:o,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...g}=_b(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const b=Wl(i),v=Wl(a)===a,y=await(l.isRTL==null?void 0:l.isRTL(c.floating)),E=f||(v||!m?[Gg(a)]:vce(a));!f&&p!=="none"&&E.push(..._ce(a,m,p,y));const T=[a,...E],w=await iF(t,g),S=[];let k=((r=s.flip)==null?void 0:r.overflows)||[];if(u&&S.push(w[b]),d){const R=yce(i,o,y);S.push(w[R[0]],w[R[1]])}if(k=[...k,{placement:i,overflows:S}],!S.every(R=>R<=0)){var x,A;const R=(((x=s.flip)==null?void 0:x.index)||0)+1,te=T[R];if(te)return{data:{index:R,overflows:k},reset:{placement:te}};let ee=(A=k.filter(oe=>oe.overflows[0]<=0).sort((oe,pe)=>oe.overflows[1]-pe.overflows[1])[0])==null?void 0:A.placement;if(!ee)switch(h){case"bestFit":{var M;const oe=(M=k.map(pe=>[pe.placement,pe.overflows.filter(G=>G>0).reduce((G,Q)=>G+Q,0)]).sort((pe,G)=>pe[1]-G[1])[0])==null?void 0:M[0];oe&&(ee=oe);break}case"initialPlacement":ee=a;break}if(i!==ee)return{reset:{placement:ee}}}return{}}}};async function Ace(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Wl(n),a=wb(n),l=Tb(n)==="y",c=["left","top"].includes(o)?-1:1,u=s&&l?-1:1,d=_b(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof p=="number"&&(h=a==="end"?p*-1:p),l?{x:h*u,y:f*c}:{x:f*c,y:h*u}}const xce=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:o,middlewareData:a}=t,l=await Ace(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:o}}}}},Nce=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:o=!1,limiter:a={fn:g=>{let{x:b,y:v}=g;return{x:b,y:v}}},...l}=_b(e,t),c={x:n,y:r},u=await iF(t,l),d=Tb(Wl(i)),f=tF(d);let h=c[f],p=c[d];if(s){const g=f==="y"?"top":"left",b=f==="y"?"bottom":"right",v=h+u[g],y=h-u[b];h=lO(v,h,y)}if(o){const g=d==="y"?"top":"left",b=d==="y"?"bottom":"right",v=p+u[g],y=p-u[b];p=lO(v,p,y)}const m=a.fn({...t,[f]:h,[d]:p});return{...m,data:{x:m.x-n,y:m.y-r}}}}};function vo(e){return LT(e)?(e.nodeName||"").toLowerCase():"#document"}function ui(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Co(e){var t;return(t=(LT(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function LT(e){return e instanceof Node||e instanceof ui(e).Node}function Eo(e){return e instanceof Element||e instanceof ui(e).Element}function Ms(e){return e instanceof HTMLElement||e instanceof ui(e).HTMLElement}function uO(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ui(e).ShadowRoot}function Vh(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Ri(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Cce(e){return["table","td","th"].includes(vo(e))}function MT(e){const t=$T(),n=Ri(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Oce(e){let t=_u(e);for(;Ms(t)&&!Sb(t);){if(MT(t))return t;t=_u(t)}return null}function $T(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Sb(e){return["html","body","#document"].includes(vo(e))}function Ri(e){return ui(e).getComputedStyle(e)}function kb(e){return Eo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function _u(e){if(vo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||uO(e)&&e.host||Co(e);return uO(t)?t.host:t}function sF(e){const t=_u(e);return Sb(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ms(t)&&Vh(t)?t:sF(t)}function lh(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=sF(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),o=ui(i);return s?t.concat(o,o.visualViewport||[],Vh(i)?i:[],o.frameElement&&n?lh(o.frameElement):[]):t.concat(i,lh(i,[],n))}function oF(e){const t=Ri(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Ms(e),s=i?e.offsetWidth:n,o=i?e.offsetHeight:r,a=Wg(n)!==s||Wg(r)!==o;return a&&(n=s,r=o),{width:n,height:r,$:a}}function FT(e){return Eo(e)?e:e.contextElement}function tu(e){const t=FT(e);if(!Ms(t))return Ra(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=oF(t);let o=(s?Wg(n.width):n.width)/r,a=(s?Wg(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const Dce=Ra(0);function aF(e){const t=ui(e);return!$T()||!t.visualViewport?Dce:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ice(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ui(e)?!1:t}function Gl(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=FT(e);let o=Ra(1);t&&(r?Eo(r)&&(o=tu(r)):o=tu(e));const a=Ice(s,n,r)?aF(s):Ra(0);let l=(i.left+a.x)/o.x,c=(i.top+a.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(s){const f=ui(s),h=r&&Eo(r)?ui(r):r;let p=f,m=p.frameElement;for(;m&&r&&h!==p;){const g=tu(m),b=m.getBoundingClientRect(),v=Ri(m),y=b.left+(m.clientLeft+parseFloat(v.paddingLeft))*g.x,E=b.top+(m.clientTop+parseFloat(v.paddingTop))*g.y;l*=g.x,c*=g.y,u*=g.x,d*=g.y,l+=y,c+=E,p=ui(m),m=p.frameElement}}return Yg({width:u,height:d,x:l,y:c})}const Rce=[":popover-open",":modal"];function lF(e){return Rce.some(t=>{try{return e.matches(t)}catch{return!1}})}function Pce(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",o=Co(r),a=t?lF(t.floating):!1;if(r===o||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=Ra(1);const u=Ra(0),d=Ms(r);if((d||!d&&!s)&&((vo(r)!=="body"||Vh(o))&&(l=kb(r)),Ms(r))){const f=Gl(r);c=tu(r),u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y}}function Lce(e){return Array.from(e.getClientRects())}function cF(e){return Gl(Co(e)).left+kb(e).scrollLeft}function Mce(e){const t=Co(e),n=kb(e),r=e.ownerDocument.body,i=Ll(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Ll(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+cF(e);const a=-n.scrollTop;return Ri(r).direction==="rtl"&&(o+=Ll(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:a}}function $ce(e,t){const n=ui(e),r=Co(e),i=n.visualViewport;let s=r.clientWidth,o=r.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;const c=$T();(!c||c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:a,y:l}}function Fce(e,t){const n=Gl(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=Ms(e)?tu(e):Ra(1),o=e.clientWidth*s.x,a=e.clientHeight*s.y,l=i*s.x,c=r*s.y;return{width:o,height:a,x:l,y:c}}function dO(e,t,n){let r;if(t==="viewport")r=$ce(e,n);else if(t==="document")r=Mce(Co(e));else if(Eo(t))r=Fce(t,n);else{const i=aF(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return Yg(r)}function uF(e,t){const n=_u(e);return n===t||!Eo(n)||Sb(n)?!1:Ri(n).position==="fixed"||uF(n,t)}function Bce(e,t){const n=t.get(e);if(n)return n;let r=lh(e,[],!1).filter(a=>Eo(a)&&vo(a)!=="body"),i=null;const s=Ri(e).position==="fixed";let o=s?_u(e):e;for(;Eo(o)&&!Sb(o);){const a=Ri(o),l=MT(o);!l&&a.position==="fixed"&&(i=null),(s?!l&&!i:!l&&a.position==="static"&&i&&["absolute","fixed"].includes(i.position)||Vh(o)&&!l&&uF(e,o))?r=r.filter(c=>c!==o):i=a,o=_u(o)}return t.set(e,r),r}function Uce(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?Bce(t,this._c):[].concat(n),r],o=s[0],a=s.reduce((l,c)=>{const u=dO(t,c,i);return l.top=Ll(u.top,l.top),l.right=Kg(u.right,l.right),l.bottom=Kg(u.bottom,l.bottom),l.left=Ll(u.left,l.left),l},dO(t,o,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Hce(e){const{width:t,height:n}=oF(e);return{width:t,height:n}}function jce(e,t,n){const r=Ms(t),i=Co(t),s=n==="fixed",o=Gl(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=Ra(0);if(r||!r&&!s)if((vo(t)!=="body"||Vh(i))&&(a=kb(t)),r){const d=Gl(t,!0,s,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else i&&(l.x=cF(i));const c=o.left+a.scrollLeft-l.x,u=o.top+a.scrollTop-l.y;return{x:c,y:u,width:o.width,height:o.height}}function fO(e,t){return!Ms(e)||Ri(e).position==="fixed"?null:t?t(e):e.offsetParent}function dF(e,t){const n=ui(e);if(!Ms(e)||lF(e))return n;let r=fO(e,t);for(;r&&Cce(r)&&Ri(r).position==="static";)r=fO(r,t);return r&&(vo(r)==="html"||vo(r)==="body"&&Ri(r).position==="static"&&!MT(r))?n:r||Oce(e)||n}const Vce=async function(e){const t=this.getOffsetParent||dF,n=this.getDimensions;return{reference:jce(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}};function qce(e){return Ri(e).direction==="rtl"}const zce={convertOffsetParentRelativeRectToViewportRelativeRect:Pce,getDocumentElement:Co,getClippingRect:Uce,getOffsetParent:dF,getElementRects:Vce,getClientRects:Lce,getDimensions:Hce,getScale:tu,isElement:Eo,isRTL:qce};function Kce(e,t){let n=null,r;const i=Co(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(a||t(),!d||!f)return;const h=um(u),p=um(i.clientWidth-(c+d)),m=um(i.clientHeight-(u+f)),g=um(c),b={rootMargin:-h+"px "+-p+"px "+-m+"px "+-g+"px",threshold:Ll(0,Kg(1,l))||1};let v=!0;function y(E){const T=E[0].intersectionRatio;if(T!==l){if(!v)return o();T?o(!1,T):r=setTimeout(()=>{o(!1,1e-7)},100)}v=!1}try{n=new IntersectionObserver(y,{...b,root:i.ownerDocument})}catch{n=new IntersectionObserver(y,b)}n.observe(e)}return o(!0),s}function Wce(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=FT(e),u=i||s?[...c?lh(c):[],...lh(t)]:[];u.forEach(b=>{i&&b.addEventListener("scroll",n,{passive:!0}),s&&b.addEventListener("resize",n)});const d=c&&a?Kce(c,n):null;let f=-1,h=null;o&&(h=new ResizeObserver(b=>{let[v]=b;v&&v.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var y;(y=h)==null||y.observe(t)})),n()}),c&&!l&&h.observe(c),h.observe(t));let p,m=l?Gl(e):null;l&&g();function g(){const b=Gl(e);m&&(b.x!==m.x||b.y!==m.y||b.width!==m.width||b.height!==m.height)&&n(),m=b,p=requestAnimationFrame(g)}return n(),()=>{var b;u.forEach(v=>{i&&v.removeEventListener("scroll",n),s&&v.removeEventListener("resize",n)}),d==null||d(),(b=h)==null||b.disconnect(),h=null,l&&cancelAnimationFrame(p)}}const Gce=Nce,Yce=kce,Xce=(e,t,n)=>{const r=new Map,i={platform:zce,...n},s={...i.platform,_c:r};return Sce(e,t,{...i,platform:s})};function Qce(e){return e!=null&&typeof e=="object"&&"$el"in e}function hO(e){if(Qce(e)){const t=e.$el;return LT(t)&&vo(t)==="#comment"?null:t}return e}function fF(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function pO(e,t){const n=fF(e);return Math.round(t*n)/n}function Jce(e,t,n){n===void 0&&(n={});const r=n.whileElementsMounted,i=ue(()=>{var S;return(S=D(n.open))!=null?S:!0}),s=ue(()=>D(n.middleware)),o=ue(()=>{var S;return(S=D(n.placement))!=null?S:"bottom"}),a=ue(()=>{var S;return(S=D(n.strategy))!=null?S:"absolute"}),l=ue(()=>{var S;return(S=D(n.transform))!=null?S:!0}),c=ue(()=>hO(e.value)),u=ue(()=>hO(t.value)),d=de(0),f=de(0),h=de(a.value),p=de(o.value),m=N0({}),g=de(!1),b=ue(()=>{const S={position:h.value,left:"0",top:"0"};if(!u.value)return S;const k=pO(u.value,d.value),x=pO(u.value,f.value);return l.value?{...S,transform:"translate("+k+"px, "+x+"px)",...fF(u.value)>=1.5&&{willChange:"transform"}}:{position:h.value,left:k+"px",top:x+"px"}});let v;function y(){c.value==null||u.value==null||Xce(c.value,u.value,{middleware:s.value,placement:o.value,strategy:a.value}).then(S=>{d.value=S.x,f.value=S.y,h.value=S.strategy,p.value=S.placement,m.value=S.middlewareData,g.value=!0})}function E(){typeof v=="function"&&(v(),v=void 0)}function T(){if(E(),r===void 0){y();return}if(c.value!=null&&u.value!=null){v=r(c.value,u.value,y);return}}function w(){i.value||(g.value=!1)}return dt([s,o,a],y,{flush:"sync"}),dt([c,u],T,{flush:"sync"}),dt(i,w,{flush:"sync"}),_h()&&B_(E),{x:ni(d),y:ni(f),strategy:ni(h),placement:ni(p),middlewareData:ni(m),isPositioned:ni(g),floatingStyles:b,update:y}}const WE="scalar-component",Zce=mce({extend:{classGroups:{"font-size":["text-xxs"],[WE]:[WE]}}}),{cva:BT,cx:fc,compose:rNe}=Mle({hooks:{onComplete:e=>`${Zce(e,WE)}`}}),eue=rc('<path class="svg-path svg-check-mark" d="m 0 60 l 30 30 l 70 -80" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 -40" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 40" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 -40" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 40" data-v-47faceda></path>',5),tue={key:0,class:"circular-loader"},nue=Se({__name:"ScalarLoading",props:{loadingState:{},size:{default:"24px"}},setup(e){return gI(t=>({d6cae758:t.size})),(t,n)=>t.loadingState?(C(),V("div",{key:0,class:ct(D(fc)("loader-wrapper"))},[(C(),V("svg",{class:ct(["svg-loader",{"icon-is-valid":t.loadingState.isValid,"icon-is-invalid":t.loadingState.isInvalid}]),viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[eue,t.loadingState.isLoading?(C(),V("g",tue,[ae("circle",{class:ct(["loader-path",{"loader-path-off":t.loadingState.isValid||t.loadingState.isInvalid}]),cx:"50",cy:"50",fill:"none",r:"20","stroke-width":"2"},null,2)])):be("",!0)],2))],2)):be("",!0)}}),rue=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},hF=rue(nue,[["__scopeId","data-v-47faceda"]]),pF={solid:["scalar-button-solid","bg-back-btn-1 text-fore-btn-1 shadow-sm active:bg-back-btn-1 active:shadow-none hocus:bg-hover-btn-1"],outlined:["scalar-button-outlined","active:bg-btn-1 border border-solid border-border bg-transparent text-fore-1 hocus:bg-border"],ghost:["scalar-button-ghost","bg-transparent text-fore-3 transition-colors active:text-fore-1 hocus:text-fore-1"],danger:["scalar-button-danger","bg-error text-white active:brightness-90 hocus:brightness-90"]},iue=BT({base:"scalar-button row cursor-pointer items-center justify-center rounded font-medium",variants:{disabled:{true:"bg-background-2 text-color-3 cursor-not-allowed shadow-none"},fullWidth:{true:"w-full"},size:{sm:"px-2 py-1 text-xs",md:"h-10 px-6 text-sm"},variant:pF},compoundVariants:[{disabled:!0,variant:"ghost",class:"bg-transparent text-ghost"}]}),sue=["ariaDisabled","type"],oue={key:0,class:"mr-2 h-4 w-4"},aue={key:1,class:"ml-2"},GE=Se({inheritAttrs:!1,__name:"ScalarButton",props:{disabled:{type:Boolean},fullWidth:{type:Boolean,default:!1},loading:{},size:{default:"md"},variant:{default:"solid"},type:{default:"button"}},setup(e){const t=ue(()=>{const{class:n,...r}=nc();return{class:n||"",rest:r}});return(n,r)=>(C(),V("button",ko(t.value.rest,{ariaDisabled:n.disabled||void 0,class:D(fc)(D(iue)({fullWidth:n.fullWidth,disabled:n.disabled,size:n.size,variant:n.variant}),{"pl-9 pr-3":n.loading},`${t.value.class}`),type:n.type}),[n.$slots.icon?(C(),V("div",oue,[Be(n.$slots,"icon")])):be("",!0),Be(n.$slots,"default"),n.loading?(C(),V("div",aue,[Z(D(hF),{loadingState:n.loading,size:"20px"},null,8,["loadingState"])])):be("",!0)],16,sue))}});(function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],s=r.variable[1].inside,o=0;o<i.length;o++)s[i[o]]=e.languages.bash[i[o]];e.languages.sh=e.languages.bash,e.languages.shell=e.languages.bash})(Prism);Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}};Prism.languages.webmanifest=Prism.languages.json;(function(){if(typeof Prism>"u"||typeof document>"u")return;var e="line-numbers",t=/\n(?!$)/g,n=Prism.plugins.lineNumbers={getLine:function(o,a){if(!(o.tagName!=="PRE"||!o.classList.contains(e))){var l=o.querySelector(".line-numbers-rows");if(l){var c=parseInt(o.getAttribute("data-start"),10)||1,u=c+(l.children.length-1);a<c&&(a=c),a>u&&(a=u);var d=a-c;return l.children[d]}}},resize:function(o){r([o])},assumeViewportIndependence:!0};function r(o){if(o=o.filter(function(l){var c=i(l),u=c["white-space"];return u==="pre-wrap"||u==="pre-line"}),o.length!=0){var a=o.map(function(l){var c=l.querySelector("code"),u=l.querySelector(".line-numbers-rows");if(!(!c||!u)){var d=l.querySelector(".line-numbers-sizer"),f=c.textContent.split(t);d||(d=document.createElement("span"),d.className="line-numbers-sizer",c.appendChild(d)),d.innerHTML="0",d.style.display="block";var h=d.getBoundingClientRect().height;return d.innerHTML="",{element:l,lines:f,lineHeights:[],oneLinerHeight:h,sizer:d}}}).filter(Boolean);a.forEach(function(l){var c=l.sizer,u=l.lines,d=l.lineHeights,f=l.oneLinerHeight;d[u.length-1]=void 0,u.forEach(function(h,p){if(h&&h.length>1){var m=c.appendChild(document.createElement("span"));m.style.display="block",m.textContent=h}else d[p]=f})}),a.forEach(function(l){for(var c=l.sizer,u=l.lineHeights,d=0,f=0;f<u.length;f++)u[f]===void 0&&(u[f]=c.children[d++].getBoundingClientRect().height)}),a.forEach(function(l){var c=l.sizer,u=l.element.querySelector(".line-numbers-rows");c.style.display="none",c.innerHTML="",l.lineHeights.forEach(function(d,f){u.children[f].style.height=d+"px"})})}}function i(o){return o?window.getComputedStyle?getComputedStyle(o):o.currentStyle||null:null}var s=void 0;window.addEventListener("resize",function(){n.assumeViewportIndependence&&s===window.innerWidth||(s=window.innerWidth,r(Array.prototype.slice.call(document.querySelectorAll("pre."+e))))}),Prism.hooks.add("complete",function(o){if(o.code){var a=o.element,l=a.parentNode;if(!(!l||!/pre/i.test(l.nodeName))&&!a.querySelector(".line-numbers-rows")&&Prism.util.isActive(a,e)){a.classList.remove(e),l.classList.add(e);var c=o.code.match(t),u=c?c.length+1:1,d,f=new Array(u+1).join("<span></span>");d=document.createElement("span"),d.setAttribute("aria-hidden","true"),d.className="line-numbers-rows",d.innerHTML=f,l.hasAttribute("data-start")&&(l.style.counterReset="linenumber "+(parseInt(l.getAttribute("data-start"),10)-1)),o.element.appendChild(d),r([l]),Prism.hooks.run("line-numbers",o)}}}),Prism.hooks.add("line-numbers",function(o){o.plugins=o.plugins||{},o.plugins.lineNumbers=!0})})();function lue(e){const t=new Set;return JSON.stringify(e,(n,r)=>{if(typeof r=="object"&&r!==null){if(t.has(r))return"[Circular]";t.add(r)}return r},2)}function dm(e){if(typeof e=="string")return e;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{return lue(e)}return e}const cue=["innerHTML"],eo=Se({__name:"ScalarCodeBlock",props:{content:{},lang:{default:"js"},lineNumbers:{type:Boolean,default:!1},hideCredentials:{}},setup(e){const t=e,n=dT(dm(t.content)),r=`components-scalar-code-block${n}`,{plugins:i,highlightElement:s}=Nd;t.hideCredentials&&Nd.hooks.add("wrap",function(d){if(!t.hideCredentials)return;let f=!1;typeof t.hideCredentials=="string"?d.content.includes(t.hideCredentials)&&(f=!0):Array.isArray(t.hideCredentials)&&(f=t.hideCredentials.some(h=>d.content.includes(h))),f&&(d.content=d.content.replace(/<span class="credentials">.*?<\/span>/g,h=>h.replace(/<span class="credentials">|<\/span>/g,"")),d.content=d.content.replace(new RegExp(typeof t.hideCredentials=="string"?t.hideCredentials:t.hideCredentials.join("|"),"g"),h=>`<span class="credentials">${h}</span>`))});const o=de(null),a=de(zu[r]??""),l=ue(()=>t.lang==="node"?"js":t.lang),c=t.lang;dt([()=>t.lang,()=>t.content,o],()=>{o.value&&t.content&&(!a.value||t.lang!==c)&&(a.value="",Kn(()=>s(o.value)))},{immediate:!0});const u=/\n(?!$)/g;return So(async()=>{let d="";t.lineNumbers&&Nd.hooks.add("after-tokenize",h=>{const p=h.code.match(u),m=p?p.length+1:1;d=`<span aria-hidden="true" class="line-numbers-rows">${new Array(m+1).join("<span></span>")}</span>`});const f=Nd.highlight(dm(t.content),Nd.languages[l.value],l.value);if(a.value=f+d,n!==0){const h=ec();h.payload.data[r]=f+d}}),Rt(async()=>{await Promise.resolve().then(()=>require("./prism-autoloader-Dlh8Vzlw-C7VXQ4L8-D7adLtAE.cjs")),i.autoloader.languages_path="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/"}),(d,f)=>(C(),V("pre",{class:ct([`scalar-component scalar-codeblock-pre language-${l.value}`,{"line-numbers":d.lineNumbers}])},[a.value?(C(),V("code",{key:0,class:ct(`scalar-codeblock-code language-${l.value}`),innerHTML:D(dm)(a.value)},null,10,cue)):(C(),V("code",{key:1,ref_key:"el",ref:o,class:ct(`scalar-codeblock-code language-${l.value}`)},Ue(D(dm)(d.content)),3))],2))}}),mO=Object.assign({"./Add.svg":()=>Promise.resolve().then(()=>require("./Add-ngyZgYXx-DoqFEwg6-7RZ-EXkn.cjs")),"./ArrowLeft.svg":()=>Promise.resolve().then(()=>require("./ArrowLeft-aY17W2aS-Cn6xpEuC-Cyo3Phnj.cjs")),"./ArrowRight.svg":()=>Promise.resolve().then(()=>require("./ArrowRight-DEMtdoE7-DTUgvJ5B-CjBKvAel.cjs")),"./Background.svg":()=>Promise.resolve().then(()=>require("./Background-DcRhSHgf-D9bLWDd3-bdSoezll.cjs")),"./Brackets.svg":()=>Promise.resolve().then(()=>require("./Brackets-4I8OKomf-DWpQfvXD-Drfew3Rg.cjs")),"./Branch.svg":()=>Promise.resolve().then(()=>require("./Branch-CXwj8YuG-CvPS_xP0-DvQH5Em0.cjs")),"./CallToAction.svg":()=>Promise.resolve().then(()=>require("./CallToAction-EyQKkvbg-P3zHezrK-B03Cxj-9.cjs")),"./Checkmark.svg":()=>Promise.resolve().then(()=>require("./Checkmark-De7nq6cG-I65LWhZ2-DwEaenPV.cjs")),"./ChevronDown.svg":()=>Promise.resolve().then(()=>require("./ChevronDown-Co7EAKAv-Dw2u19C4-CuSAWn5u.cjs")),"./ChevronLeft.svg":()=>Promise.resolve().then(()=>require("./ChevronLeft-DYt0idAu-4ItgPaSH-DqJIQpGg.cjs")),"./ChevronRight.svg":()=>Promise.resolve().then(()=>require("./ChevronRight-ylxToVWl-DMyZ2Rmi-Cdga5rkJ.cjs")),"./ChevronUp.svg":()=>Promise.resolve().then(()=>require("./ChevronUp-xAnukIfj-DYWzMh-o-BaXSr863.cjs")),"./Clipboard.svg":()=>Promise.resolve().then(()=>require("./Clipboard-CU_KxGEv-DuOPrhqK-DYAc1g-l.cjs")),"./Close.svg":()=>Promise.resolve().then(()=>require("./Close-CW3z42qZ-C-nzSJmV-damxVthC.cjs")),"./CodeFolder.svg":()=>Promise.resolve().then(()=>require("./CodeFolder-Cv_igzJE-POyxhw77-CJvcCLkP.cjs")),"./Cookie.svg":()=>Promise.resolve().then(()=>require("./Cookie-CEHvXpqB-Bu1-nQ4L-BAi8tCxk.cjs")),"./DarkMode.svg":()=>Promise.resolve().then(()=>require("./DarkMode-CBsV8Q_I-C-P5vpQi-vnMxPo23.cjs")),"./Delete.svg":()=>Promise.resolve().then(()=>require("./Delete-BCZmxrDD-RGj_5vHb-AL7M1XVI.cjs")),"./Discord.svg":()=>Promise.resolve().then(()=>require("./Discord-BHYOFBB2-BKiLx0Gp-JO8PdAri.cjs")),"./DocsPage.svg":()=>Promise.resolve().then(()=>require("./DocsPage-rh2xwxKN-DGM8iLwe-CLkz1teT.cjs")),"./Duplicate.svg":()=>Promise.resolve().then(()=>require("./Duplicate-BPlzNpcf-hfR5nT2J-2hU5cFYm.cjs")),"./Edit.svg":()=>Promise.resolve().then(()=>require("./Edit-Br04RNYb-DB3yOiz_-wIcCHgPL.cjs")),"./Ellipses.svg":()=>Promise.resolve().then(()=>require("./Ellipses-Bo_X36Hx-D4ayuQAy-r8hjr7pj.cjs")),"./Error.svg":()=>Promise.resolve().then(()=>require("./Error-B_RGtWJI-D-cqIU7Z-Ydsz6Pfv.cjs")),"./ExternalLink.svg":()=>Promise.resolve().then(()=>require("./ExternalLink-DK8L-EH7-CnaH9txm-CWwjViCN.cjs")),"./FilterList.svg":()=>Promise.resolve().then(()=>require("./FilterList-CsAcE9em-BEVsn3KR-CpHeG_Oc.cjs")),"./Folder.svg":()=>Promise.resolve().then(()=>require("./Folder-Cdcj4evh-BjFbVB1N-CQGrvQsY.cjs")),"./GitHub.svg":()=>Promise.resolve().then(()=>require("./GitHub-NdE6Zs9k-CxmMd7Ky-BEAadeSx.cjs")),"./Hide.svg":()=>Promise.resolve().then(()=>require("./Hide-Q3GPkIKH-CR2flZgt-mEIqmeQo.cjs")),"./History.svg":()=>Promise.resolve().then(()=>require("./History-D9nmhNIn-Bg9VGGKO-BL8dnphp.cjs")),"./JsonObject.svg":()=>Promise.resolve().then(()=>require("./JsonObject-hGdHUQ4M-JVzShx7P-x31Vp-Vk.cjs")),"./Key.svg":()=>Promise.resolve().then(()=>require("./Key-CWXJqX28-CVsMvoNb-PGfQRwaW.cjs")),"./Leave.svg":()=>Promise.resolve().then(()=>require("./Leave-K1J3uwoG-6WpXSkaE-DCyNrkz8.cjs")),"./LightDarkModeToggle.svg":()=>Promise.resolve().then(()=>require("./LightDarkModeToggle-BkvMimDa-CCZGR9vi-C8eq5lAN.cjs")),"./LightMode.svg":()=>Promise.resolve().then(()=>require("./LightMode-Btz6vyT_-D8lhPTNZ-DMr9hTxS.cjs")),"./Link.svg":()=>Promise.resolve().then(()=>require("./Link-Bzuc__Nc-Bopu3OCd-BKytd752.cjs")),"./Lock.svg":()=>Promise.resolve().then(()=>require("./Lock-xhiH1mKz-j1VwEotb-e-yTdXb1.cjs")),"./Logo.svg":()=>Promise.resolve().then(()=>require("./Logo-mtzeKD8M-_nfcd_3S-BQpZX8yK.cjs")),"./LogoAPI.svg":()=>Promise.resolve().then(()=>require("./LogoAPI-CaU5E6FK-BIDyFPeR-BWT5JGWu.cjs")),"./LogoClient.svg":()=>Promise.resolve().then(()=>require("./LogoClient-DdC-t_7P-BJVLusot-r--W8J_F.cjs")),"./LogoMarket.svg":()=>Promise.resolve().then(()=>require("./LogoMarket-DwlApcab-BpTQzqp5-B7XzuhCj.cjs")),"./LogoSwagger.svg":()=>Promise.resolve().then(()=>require("./LogoSwagger-CH60H5qW--whYwExv-RlnuIdmP.cjs")),"./Magic.svg":()=>Promise.resolve().then(()=>require("./Magic-Dsi9_bEc-BSsgSxL9-CuCvs-ba.cjs")),"./Menu.svg":()=>Promise.resolve().then(()=>require("./Menu-CFK5cOsm-Bt89Z42K-BiWx2AUV.cjs")),"./Page.svg":()=>Promise.resolve().then(()=>require("./Page-B7rVuhpl-BdUgg7Vj-Ch23rJkH.cjs")),"./PaperAirplane.svg":()=>Promise.resolve().then(()=>require("./PaperAirplane-BC-4mGEB-CC_xr_GF-BgiKjS5E.cjs")),"./Payment.svg":()=>Promise.resolve().then(()=>require("./Payment-hzcXP1Xb-DwRM2zOI-B33Ck556.cjs")),"./Play.svg":()=>Promise.resolve().then(()=>require("./Play-BrVagRQA-ibf1r6jV-BKrWMG6Y.cjs")),"./Refresh.svg":()=>Promise.resolve().then(()=>require("./Refresh-Be6vHEEi-jbqubK_U-BBZHywDb.cjs")),"./Response.svg":()=>Promise.resolve().then(()=>require("./Response-Dq9pM-ZU-gbj_nXZc-Bpnx1LG6.cjs")),"./Search.svg":()=>Promise.resolve().then(()=>require("./Search-DqtlswRG-C2Pti_ld-B3GcI_sy.cjs")),"./Show.svg":()=>Promise.resolve().then(()=>require("./Show-D86hKz5y-CLGkc2Cs-D7aarDs9.cjs")),"./SideBarClosed.svg":()=>Promise.resolve().then(()=>require("./SideBarClosed-CYUNS2XM-CyV-4FlW-DXQSnGoU.cjs")),"./SideBarOpen.svg":()=>Promise.resolve().then(()=>require("./SideBarOpen-BOxW49_U-_LagsnZP-BX0tDORF.cjs")),"./Sort.svg":()=>Promise.resolve().then(()=>require("./Sort-oTjBhJFQ-CxatimqM-Cyb4O2Cq.cjs")),"./Terminal.svg":()=>Promise.resolve().then(()=>require("./Terminal-CKp--su5-DBOGXF1p-tZ1eD5kx.cjs")),"./ThumbsDown.svg":()=>Promise.resolve().then(()=>require("./ThumbsDown-BMgnsASL-B1FsmbXx-DoREKFQJ.cjs")),"./ThumbsUp.svg":()=>Promise.resolve().then(()=>require("./ThumbsUp-C1j6zY2j-Ca8-bvgl-DAuzaXX-.cjs")),"./Trash.svg":()=>Promise.resolve().then(()=>require("./Trash-BpA3zWPD-RGj_5vHb-B4FFMnIN.cjs")),"./Unlock.svg":()=>Promise.resolve().then(()=>require("./Unlock-CY8UqJoE-xu6vPL1E-CsiXQk_H.cjs")),"./Upload.svg":()=>Promise.resolve().then(()=>require("./Upload-REIdL7RI-DTkPybxz-sxVof1t1.cjs")),"./User.svg":()=>Promise.resolve().then(()=>require("./User-Df5svMQ3-BviG15gd-gM4apArg.cjs")),"./programming-framework-angular.svg":()=>Promise.resolve().then(()=>require("./programming-framework-angular-DD4Vjgbk-CUF3ZYYB-CseuBuqK.cjs")),"./programming-framework-astro.svg":()=>Promise.resolve().then(()=>require("./programming-framework-astro-CLfrRt19-CH6OCtd8-CvK2mYsA.cjs")),"./programming-framework-laravel.svg":()=>Promise.resolve().then(()=>require("./programming-framework-laravel-kAy2wVLy-kXRM5aCd-Buxw_Jxc.cjs")),"./programming-framework-nextdotjs.svg":()=>Promise.resolve().then(()=>require("./programming-framework-nextdotjs-BKdd_DY_-DF9m888v-Cq6zxizd.cjs")),"./programming-framework-react.svg":()=>Promise.resolve().then(()=>require("./programming-framework-react-PDgmtZuN-DZjob66N-Bv20C4Ua.cjs")),"./programming-framework-vuedotjs.svg":()=>Promise.resolve().then(()=>require("./programming-framework-vuedotjs-Cv46W2aB-5jp2dhVz-B2UNRQIa.cjs")),"./programming-language-c.svg":()=>Promise.resolve().then(()=>require("./programming-language-c-hPGu2Zvg-BesPZa4K-Dqea8ITB.cjs")),"./programming-language-clojure.svg":()=>Promise.resolve().then(()=>require("./programming-language-clojure-Cvmzky8x-BfidiK-3-CIRYLnCJ.cjs")),"./programming-language-csharp.svg":()=>Promise.resolve().then(()=>require("./programming-language-csharp-lqX1oWgb-D-Mz5PM1-CALzoSxX.cjs")),"./programming-language-css3.svg":()=>Promise.resolve().then(()=>require("./programming-language-css3-Dpp4Cr6b-Dpx1zlAe-C5panFvk.cjs")),"./programming-language-go.svg":()=>Promise.resolve().then(()=>require("./programming-language-go-DoJxWwT6-Bayz8oGO-DZ5nPaCD.cjs")),"./programming-language-html5.svg":()=>Promise.resolve().then(()=>require("./programming-language-html5-DlqJK4EL-DfQp7LQz-Cb_SktDx.cjs")),"./programming-language-http.svg":()=>Promise.resolve().then(()=>require("./programming-language-http-wMYwFS1I-nvzm47LE-BLCzg3wr.cjs")),"./programming-language-java.svg":()=>Promise.resolve().then(()=>require("./programming-language-java-BCxG2T_w-01jrBctS-DyllQWf3.cjs")),"./programming-language-javascript.svg":()=>Promise.resolve().then(()=>require("./programming-language-javascript-VxLvi1QG-qbgoUfZ8-B3gE0LI2.cjs")),"./programming-language-json.svg":()=>Promise.resolve().then(()=>require("./programming-language-json-vEX_g7Zi-D-_9dDj_-C9KgMpEa.cjs")),"./programming-language-kotlin.svg":()=>Promise.resolve().then(()=>require("./programming-language-kotlin-DKV8vP9h-C-cTXwXu-UrsD9Rht.cjs")),"./programming-language-node.svg":()=>Promise.resolve().then(()=>require("./programming-language-node-Xsgx38lm-Be410R9Y-C1qniA9p.cjs")),"./programming-language-objc.svg":()=>Promise.resolve().then(()=>require("./programming-language-objc-BQXSOBsX-UyJQMZSh-CV_BAzQr.cjs")),"./programming-language-ocaml.svg":()=>Promise.resolve().then(()=>require("./programming-language-ocaml-BEz7gGv7-L9a3ID8U-DfQHJVLb.cjs")),"./programming-language-php.svg":()=>Promise.resolve().then(()=>require("./programming-language-php-GY38f8r4-jRMN5AZX-JnuQtR2W.cjs")),"./programming-language-powershell.svg":()=>Promise.resolve().then(()=>require("./programming-language-powershell-C9DkSp36-C7fZCJBW-D06wPdCT.cjs")),"./programming-language-python.svg":()=>Promise.resolve().then(()=>require("./programming-language-python-Ct-_kNjo-DsKRdoNg-DQNcvpel.cjs")),"./programming-language-r.svg":()=>Promise.resolve().then(()=>require("./programming-language-r-BGoKwua9-BguWvgpu-B29aipvo.cjs")),"./programming-language-ruby.svg":()=>Promise.resolve().then(()=>require("./programming-language-ruby-DhdM4d7g-BuT1i5is-CX3vxHLl.cjs")),"./programming-language-scala.svg":()=>Promise.resolve().then(()=>require("./programming-language-scala-BVg0dToJ-p_n-G2sI-Dsv22nGI.cjs")),"./programming-language-shell.svg":()=>Promise.resolve().then(()=>require("./programming-language-shell-BsTa1xI7-Mbhl6UDK-DpGU8G_X.cjs")),"./programming-language-swift.svg":()=>Promise.resolve().then(()=>require("./programming-language-swift-Dn72xPjg-D-JnfNts-CvRHwdvg.cjs")),"./programming-language-typescript.svg":()=>Promise.resolve().then(()=>require("./programming-language-typescript-CdF-HuRi-ocSQSwHb-BDSuzPHl.cjs")),"./programming-script-code.svg":()=>Promise.resolve().then(()=>require("./programming-script-code-DQN1veb2-CcjBWaNF-DJBlu4o3.cjs")),"./programming-tool-git.svg":()=>Promise.resolve().then(()=>require("./programming-tool-git-DDnQ1zGD-CGHot6Y8-D6y8jBvz.cjs")),"./programming-tool-tailwindcss.svg":()=>Promise.resolve().then(()=>require("./programming-tool-tailwindcss-xjXi0E6g-r5YhtCAf-DHqMNk-W.cjs"))}),gO=e=>{const t=`./${e}.svg`;return mO[t]?iw(mO[t]):(console.warn(`Could not find icon: ${e}`),null)},uue=["src"],pn=Se({__name:"ScalarIcon",props:{icon:{},size:{}},setup(e){const t=e,n=BT({variants:{size:{xs:"size-3 stroke-[1.4]",sm:"size-3.5 stroke-[1.2]",md:"size-4 stroke-[1.1]",lg:"size-5",xl:"size-6 stroke-[0.96]","2xl":"size-8 stroke-[0.92]","3xl":"size-10 stroke-[0.9]",full:"size-full"}},defaultVariants:{size:"full"}}),r=gO(t.icon);return(i,s)=>D(r)?(C(),he(Di(D(gO)(i.icon)),{key:0,class:ct(D(fc)("scalar-icon",D(n)({size:i.size})))},null,8,["class"])):(C(),V("img",{key:1,src:i.icon},null,8,uue))}}),due=["ariaDisabled"],fue={class:"sr-only"},qh=Se({__name:"ScalarIconButton",props:{label:{},icon:{},disabled:{type:Boolean},variant:{default:"ghost"},size:{default:"md"}},setup(e){const t=BT({base:"scalar-icon-button grid aspect-square cursor-pointer rounded",variants:{size:{xxs:"size-3.5 p-0.5",xs:"size-5 p-1",sm:"size-6 p-1",md:"size-10 p-3",full:"h-full w-full"},disabled:{true:"cursor-not-allowed shadow-none"},variant:pF}}),n=ue(()=>{const{class:r,...i}=nc();return{class:r||"",rest:i}});return(r,i)=>(C(),V("button",ko(n.value.rest,{ariaDisabled:r.disabled||void 0,class:D(fc)(D(t)({size:r.size,variant:r.variant,disabled:r.disabled}),n.value.class),type:"button"}),[Z(D(pn),{icon:r.icon},null,8,["icon"]),ae("span",fue,Ue(r.label),1)],16,due))}}),hue={class:"sr-only"},pue=["value"],mue=Se({inheritAttrs:!1,__name:"ScalarSearchInput",props:{loading:{},modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t;function r(s){n("update:modelValue",s.target.value)}const i=ue(()=>{const{class:s,...o}=nc();return{className:s||"",rest:o}});return(s,o)=>(C(),V("label",ko(i.value.rest,{class:D(fc)("flex rounded border bg-back-1 text-sm font-medium focus-within:border-fore-1",i.value.className)}),[ae("span",hue,[Be(s.$slots,"label",{},()=>[Pe("Enter search")])]),ae("input",{autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:"flex-1 rounded bg-transparent p-3 outline-none",placeholder:"Search...",spellcheck:"false",type:"text",value:s.modelValue,onInput:r},null,40,pue),s.loading&&s.loading.isLoading?(C(),he(D(hF),{key:0,class:"mr-3 self-center",loadingState:s.loading,size:"20px"},null,8,["loadingState"])):s.modelValue?(C(),he(D(qh),{key:1,class:"self-center",icon:"Close",label:"Clear Search",size:"md",onClick:o[0]||(o[0]=a=>n("update:modelValue",""))})):be("",!0)],16))}}),gue=ae("div",{class:"flex flex-col items-center gap-2 px-3 py-4"},[ae("div",{class:"rotate-90 text-lg font-bold"},":("),ae("div",{class:"text-sm font-medium text-fore-2"},"No results found")],-1),bue=Se({inheritAttrs:!1,__name:"ScalarSearchResultList",props:{noResults:{type:Boolean}},setup(e){const t=ue(()=>{const{class:n,...r}=nc();return{className:n||"",rest:r}});return(n,r)=>(C(),V("ul",ko(t.value.rest,{class:D(fc)("flex flex-col",t.value.className)}),[n.noResults?Be(n.$slots,"noResults",{key:0},()=>[gue]):be("",!0),Be(n.$slots,"default")],16))}}),yue={class:"contents"},vue={class:"text-fore-3 group-hover:text-fore-1"},Eue={class:"flex min-w-0 flex-1 flex-col gap-0.75"},_ue={class:"flex items-center gap-1"},wue={class:"flex-1 truncate text-sm font-medium"},Tue={key:0,class:"text-xs text-fore-2"},Sue={class:"truncate text-xs text-fore-2"},kue=Se({inheritAttrs:!1,__name:"ScalarSearchResultItem",props:{icon:{},active:{type:Boolean}},setup(e){const t=ue(()=>{const{class:n,...r}=nc();return{className:n||"",rest:r}});return(n,r)=>(C(),V("li",yue,[ae("a",ko(t.value.rest,{class:D(fc)("group flex cursor-pointer gap-3 rounded px-3 py-1.5 no-underline hover:bg-back-2",{"bg-back-2":n.active},t.value.className)}),[ae("div",vue,[Be(n.$slots,"icon",{},()=>[n.icon?(C(),he(D(pn),{key:0,icon:n.icon,size:"sm"},null,8,["icon"])):be("",!0)])]),ae("div",Eue,[ae("div",_ue,[ae("div",wue,[Be(n.$slots,"default")]),n.$slots.addon?(C(),V("div",Tue,[Be(n.$slots,"addon")])):be("",!0)]),ae("div",Sue,[Be(n.$slots,"description")])])],16)]))}}),Aue={class:"card-form-input"},xue=["for"],Nue=["id","type"],Cue=Se({inheritAttrs:!1,__name:"CardFormTextInput",props:{id:{},type:{}},setup(e){const t=e,n=de(!0),r=ue(()=>t.type==="password"?n.value?"password":"text":t.type??"text");return(i,s)=>(C(),V("div",Aue,[ae("label",{for:i.id},[Be(i.$slots,"default",{},void 0,!0)],8,xue),ae("input",ko(i.$attrs,{id:i.id,autocomplete:"off","data-1p-ignore":"",spellcheck:"false",type:r.value}),null,16,Nue),i.type==="password"?(C(),he(D(qh),{key:0,class:"password-mask",icon:n.value?"Show":"Hide",label:n.value?"Show Password":"Hide Password",onClick:s[0]||(s[0]=o=>n.value=!n.value)},null,8,["icon","label"])):be("",!0)]))}}),yc=je(Cue,[["__scopeId","data-v-f7b202a1"]]),Oue=e=>(lr("data-v-5ac9a107"),e=e(),cr(),e),Due={class:"scopes-label"},Iue=Oue(()=>ae("em",null,"/",-1)),Rue=["checked"],Pue={class:"dropdown-item-title"},Lue={class:"dropdown-item-description"},Mue=Se({__name:"SecuritySchemeScopes",props:{scopes:{},selected:{}},emits:["update:selected"],setup(e,{emit:t}){const n=e,r=t,i=de(),s=de(),{floatingStyles:o}=Jce(i,s,{placement:"bottom-end",whileElementsMounted:Wce,middleware:[xce(5),Yce(),Gce()]}),a=ue({get:()=>n.selected,set:l=>r("update:selected",l)});return(l,c)=>(C(),he(D(wH),{modelValue:a.value,"onUpdate:modelValue":c[0]||(c[0]=u=>a.value=u),multiple:""},{default:X(({open:u})=>[ae("div",{ref_key:"trigger",ref:i,class:ct(["wrapper",{"wrapper-open":u}])},[Z(D(TH),{as:G$},{default:X(()=>[ae("div",Due,[Pe(" Scopes "+Ue(a.value.length),1),Iue,Pe(Ue(Object.entries(l.scopes).length)+" ",1),Z(D(pn),{icon:u?"ChevronUp":"ChevronDown",size:"sm"},null,8,["icon"])])]),_:2},1024)],2),(C(),he(cw,{to:"body"},[Z(D(j3),null,{default:X(({styles:d})=>[ae("div",{ref_key:"dropdown",ref:s,class:ct(["floating",d]),style:_r(D(o))},[Z(D(SH),{as:"dl",class:"dropdown"},{default:X(()=>[(C(!0),V(De,null,mt(Object.entries(l.scopes),([f,h])=>(C(),he(D(kH),{key:f,as:"div",class:"dropdown-item",value:f},{default:X(({selected:p})=>[ae("input",{checked:p,class:"dropdown-item-check",tabindex:"-1",type:"checkbox"},null,8,Rue),ae("dt",Pue,Ue(f),1),ae("dd",Lue,Ue(h),1)]),_:2},1032,["value"]))),128))]),_:1})],6)]),_:1})]))]),_:1},8,["modelValue"]))}}),$ue=je(Mue,[["__scopeId","data-v-5ac9a107"]]),Fue=Se({__name:"SecurityScheme",props:{value:{}},setup(e){const{authentication:t,setAuthentication:n}=Ku(),r=d=>{n({apiKey:{...t.apiKey,token:d.target.value}})},i=d=>{n({http:{...t.http,basic:{...t.http.basic,username:d.target.value}}})},s=d=>{n({http:{...t.http,basic:{...t.http.basic,password:d.target.value}}})},o=d=>{n({http:{...t.http,bearer:{...t.http.bearer,token:d.target.value}}})},a=d=>{n({oAuth2:{...t.oAuth2,clientId:d.target.value}})},l=d=>{const f=t.oAuth2.scopes.join(" "),h=(Math.random()+1).toString(36).substring(7),p=new URL(d.authorizationUrl);return n({oAuth2:{...t.oAuth2,state:h}}),p.searchParams.set("response_type","token"),p.searchParams.set("client_id",t.oAuth2.clientId),p.searchParams.set("redirect_uri",window.location.href),p.searchParams.set("scope",f),p.searchParams.set("state",h),p.toString()},c=ue({get:()=>t.oAuth2.scopes,set:d=>n({oAuth2:{...t.oAuth2,scopes:d}})}),u=d=>{const f=window.open(d,"openAuth2Window","left=100,top=100,width=800,height=600");if(f){const h=setInterval(function(){var p;try{const m=new URLSearchParams(f.location.href).get("access_token");if(f.closed||m){clearInterval(h);const g=(p=f.location.href.match(/state=([^&]*)/))==null?void 0:p[1];m&&t.oAuth2.state===g&&n({oAuth2:{...t.oAuth2,accessToken:m}}),f.close()}}catch{}},200)}};return(d,f)=>{var h;return d.value&&(h=d.value)!=null&&h.type?(C(),he(Dle,{key:0},{default:X(()=>[d.value.type==="apiKey"?(C(),he(yc,{key:0,id:`security-scheme-${d.value.name}`,placeholder:"Token",type:"password",value:D(t).apiKey.token,onInput:r},{default:X(()=>[Pe(Ue(d.value.in.charAt(0).toUpperCase()+d.value.in.slice(1))+" API ",1)]),_:1},8,["id","value"])):d.value.type==="http"||d.value.type==="basic"?(C(),V(De,{key:1},[d.value.type==="basic"||d.value.scheme==="basic"?(C(),he(nO,{key:0},{default:X(()=>[Z(yc,{id:"http.basic.username",placeholder:"Username",value:D(t).http.basic.username,onInput:i},{default:X(()=>[Pe(" Username ")]),_:1},8,["value"]),Z(yc,{id:"http.basic.password",placeholder:"Password",type:"password",value:D(t).http.basic.password,onInput:s},{default:X(()=>[Pe(" Password ")]),_:1},8,["value"])]),_:1})):d.value.type==="http"&&d.value.scheme==="bearer"?(C(),he(yc,{key:1,id:"http.bearer.token",placeholder:"Token",type:"password",value:D(t).http.bearer.token,onInput:o},{default:X(()=>[Pe(" Bearer Token ")]),_:1},8,["value"])):be("",!0)],64)):d.value.type.toLowerCase()==="oauth2"&&d.value.flows&&d.value.flows.implicit?(C(),he(nO,{key:2},{default:X(()=>[D(t).oAuth2.accessToken?(C(),V(De,{key:0},[Z(yc,{id:"oAuth2.accessToken",placeholder:"xxxxx",type:"password",value:D(t).oAuth2.accessToken},{default:X(()=>[Pe(" Access Token ")]),_:1},8,["value"]),Z(G$,{onClick:f[0]||(f[0]=()=>D(n)({oAuth2:{...D(t).oAuth2,accessToken:"",state:""}}))},{default:X(()=>[Pe(" Reset ")]),_:1})],64)):(C(),V(De,{key:1},[Z(yc,{id:"oAuth2.clientId",placeholder:"12345",type:"text",value:D(t).oAuth2.clientId,onInput:a},{default:X(()=>[Pe(" Client ID ")]),_:1},8,["value"]),d.value!==void 0?(C(),he($ue,{key:0,selected:c.value,"onUpdate:selected":f[1]||(f[1]=p=>c.value=p),scopes:d.value.flows.implicit.scopes},null,8,["selected","scopes"])):be("",!0),ae("button",{class:"cardform-auth-button",onClick:f[2]||(f[2]=()=>{var p;return u(l((p=d.value)==null?void 0:p.flows.implicit))})}," Authorize ")],64))]),_:1})):be("",!0)]),_:1})):be("",!0)}}}),mF=je(Fue,[["__scopeId","data-v-146c2c6e"]]),Bue=e=>(lr("data-v-a6fd9dc1"),e=e(),cr(),e),Uue={key:0,class:"security-scheme-label"},Hue={key:1,class:"security-scheme-selector"},jue={class:"security-scheme-label"},Vue=["value"],que=Bue(()=>ae("option",{value:""},"None",-1)),zue=["value"],Kue=Se({__name:"SecuritySchemeSelector",props:{value:{}},emits:["input"],setup(e,{emit:t}){const n=e,r=t,{authentication:i,setAuthentication:s}=Ku(),o=g=>{a(g.target.value)};Rt(()=>{i.preferredSecurityScheme||a(Object.keys(n.value??{})[0]??null)});const a=g=>{s({preferredSecurityScheme:g}),r("input",g)};So(()=>a(Object.keys(n.value??{})[0]??null));const l=g=>!(g!=null&&g.type),c=g=>g.type.toLowerCase()==="apikey",u=g=>g.type==="http"&&g.scheme.toLowerCase()==="basic"||g.type.toLowerCase()==="basic",d=g=>g.type==="http"&&g.scheme.toLowerCase()==="bearer",f=g=>g.type.toLowerCase()==="oauth2",h=(g,b)=>`${p(g)} (${b})`,p=g=>l(g)?"No Authentication":c(g)?"API Key":u(g)?"Basic Authentication":d(g)?"Bearer Authentication":f(g)?"OAuth 2.0":`${g.type} (not yet supported)`,m=ue(()=>Object.keys(n.value??{}));return(g,b)=>{var v,y;return m.value.length===1?(C(),V("div",Uue,Ue(h((v=g.value)==null?void 0:v[m.value[0]],m.value[0])),1)):m.value.length>1?(C(),V("div",Hue,[ae("span",jue,Ue(D(i).preferredSecurityScheme?h((y=g.value)==null?void 0:y[D(i).preferredSecurityScheme],D(i).preferredSecurityScheme):"None"),1),Z(D(pn),{icon:"ChevronDown"}),ae("select",{value:D(i).preferredSecurityScheme,onClick:b[0]||(b[0]=Mu(()=>{},["prevent"])),onInput:o},[que,(C(!0),V(De,null,mt(m.value,E=>{var T;return C(),V("option",{key:E,value:E??null},Ue(h((T=g.value)==null?void 0:T[E],E)),9,zue)}),128))],40,Vue)])):be("",!0)}}}),gF=je(Kue,[["__scopeId","data-v-a6fd9dc1"]]);function nu(){return{info:{title:"",description:"",termsOfService:"",version:"",license:{name:"",url:""},contact:{email:""}},externalDocs:{description:"",url:""},servers:[],tags:[]}}function bF({serverState:e,authenticationState:t,operation:n,globalSecurity:r}){var i,s;const o=K3({url:YE(e)},sE(n,{requiredOnly:!1}),t?IT(t,((i=n.information)==null?void 0:i.security)??r??[]):{}),a=sE(n,{requiredOnly:!1}),l=Yc(n,"path",!1);return{id:n.operationId,name:n.name,type:o.method,path:a.path??"",variables:l,cookies:bO(o.cookies),query:o.queryString.map(c=>({...c,enabled:c.required??!0})),headers:bO(o.headers),url:YE(e)??"",body:(s=o.postData)==null?void 0:s.text}}function bO(e){return(e??[]).map(t=>({...t,enabled:!0}))}const Wue=hP().use(XR).use(Cz).use(wj),Xg=async e=>{const t=new PR,{headings:n}=(await Wue.process(e)).data;return Gue(n,t)},Gue=(e,t)=>e.map(n=>({...n,slug:t.slug(n.value)})),UT=e=>{const t=Math.min(...e.map(n=>n.depth));return t>=1&&t<=6?t:1};function xs(e){var t,n;return e?Object.keys(((t=e==null?void 0:e.components)==null?void 0:t.schemas)??{}).length?(n=e==null?void 0:e.components)==null?void 0:n.schemas:Object.keys((e==null?void 0:e.definitions)??{}).length?e==null?void 0:e.definitions:{}:{}}function yF(e,t){const n=/{{\s*([\w.-]+)\s*}}/g,r=/{\s*([\w.-]+)\s*}/g,i=(s,o)=>{if(typeof t=="function")return t(o);{const a=t==null?void 0:t.find(l=>l.name===o);return((a==null?void 0:a.value)??"").toString()}};return e.replace(n,i).replace(r,i)}function YE(e){var t;const n=(t=e==null?void 0:e.servers)==null?void 0:t[e.selectedServer??0];return typeof(n==null?void 0:n.url)=="string"?yF(n==null?void 0:n.url,e.variables):n==null?void 0:n.url}const vF=e=>e?!!Object.keys(xs(e)??{}).length:!1,Yue=e=>{var t;return!!Object.keys(((t=e==null?void 0:e.components)==null?void 0:t.securitySchemes)??{}).length},Xue=e=>e?!!Object.keys((e==null?void 0:e.webhooks)??{}).length:!1;function Que(e){try{return!!new URL(e)}catch{return!1}}function Jue(e,t){return Object.keys(e).forEach(n=>{Object.hasOwn(t,n)||delete e[n]}),Object.assign(e,t),e}const Zue=()=>({selectedServer:null,servers:[],variables:[]}),XE=or(Zue()),ede=e=>{Object.assign(XE,{...XE,...e})},zh=()=>({server:XE,setServer:ede}),{server:tde}=zh(),{setOperation:nde,setGlobalSecurity:rde}=fT(),{toggleApiClient:ide}=pb(),{setActiveRequest:sde,resetActiveResponse:ode}=eM();function QE(e,t){const n=bF({serverState:tde,operation:e,authenticationState:null,globalSecurity:null});ode(),sde(n),nde(e),rde(t),ide(n,!0)}var ade=Object.defineProperty,lde=(e,t,n)=>t in e?ade(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ko=(e,t,n)=>(lde(e,typeof t!="symbol"?t+"":t,n),n);const cde=(e,t)=>{const n=e[t];return n?typeof n=="function"?n():Promise.resolve(n):new Promise((r,i)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(i.bind(null,new Error("Unknown variable dynamic import: "+t)))})};var ude=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function HT(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var JE={exports:{}},EF={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(x,A){return{validate:x,compare:A}}e.fullFormats={date:t(s,o),time:t(l,c),"date-time":t(d,f),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:m,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:k,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:b,int32:{type:"number",validate:E},int64:{type:"number",validate:T},float:{type:"number",validate:w},double:{type:"number",validate:w},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,o),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,c),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,f),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function n(x){return x%4===0&&(x%100!==0||x%400===0)}const r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function s(x){const A=r.exec(x);if(!A)return!1;const M=+A[1],R=+A[2],te=+A[3];return R>=1&&R<=12&&te>=1&&te<=(R===2&&n(M)?29:i[R])}function o(x,A){if(x&&A)return x>A?1:x<A?-1:0}const a=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function l(x,A){const M=a.exec(x);if(!M)return!1;const R=+M[1],te=+M[2],ee=+M[3],oe=M[5];return(R<=23&&te<=59&&ee<=59||R===23&&te===59&&ee===60)&&(!A||oe!=="")}function c(x,A){if(!(x&&A))return;const M=a.exec(x),R=a.exec(A);if(M&&R)return x=M[1]+M[2]+M[3]+(M[4]||""),A=R[1]+R[2]+R[3]+(R[4]||""),x>A?1:x<A?-1:0}const u=/t|\s/i;function d(x){const A=x.split(u);return A.length===2&&s(A[0])&&l(A[1],!0)}function f(x,A){if(!(x&&A))return;const[M,R]=x.split(u),[te,ee]=A.split(u),oe=o(M,te);if(oe!==void 0)return oe||c(R,ee)}const h=/\/|:/,p=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function m(x){return h.test(x)&&p.test(x)}const g=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function b(x){return g.lastIndex=0,g.test(x)}const v=-(2**31),y=2**31-1;function E(x){return Number.isInteger(x)&&x<=y&&x>=v}function T(x){return Number.isInteger(x)}function w(){return!0}const S=/[^\\]\\Z/;function k(x){if(S.test(x))return!1;try{return new RegExp(x),!0}catch{return!1}}})(EF);var _F={},ZE={exports:{}},Ml={},Ci={},wu={},Kh={},ht={},ch={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class n extends t{constructor(v){if(super(),!e.IDENTIFIER.test(v))throw new Error("CodeGen: name must be a valid identifier");this.str=v}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=n;class r extends t{constructor(v){super(),this._items=typeof v=="string"?[v]:v}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const v=this._items[0];return v===""||v==='""'}get str(){var v;return(v=this._str)!==null&&v!==void 0?v:this._str=this._items.reduce((y,E)=>`${y}${E}`,"")}get names(){var v;return(v=this._names)!==null&&v!==void 0?v:this._names=this._items.reduce((y,E)=>(E instanceof n&&(y[E.str]=(y[E.str]||0)+1),y),{})}}e._Code=r,e.nil=new r("");function i(b,...v){const y=[b[0]];let E=0;for(;E<v.length;)a(y,v[E]),y.push(b[++E]);return new r(y)}e._=i;const s=new r("+");function o(b,...v){const y=[h(b[0])];let E=0;for(;E<v.length;)y.push(s),a(y,v[E]),y.push(s,h(b[++E]));return l(y),new r(y)}e.str=o;function a(b,v){v instanceof r?b.push(...v._items):v instanceof n?b.push(v):b.push(d(v))}e.addCodeArg=a;function l(b){let v=1;for(;v<b.length-1;){if(b[v]===s){const y=c(b[v-1],b[v+1]);if(y!==void 0){b.splice(v-1,3,y);continue}b[v++]="+"}v++}}function c(b,v){if(v==='""')return b;if(b==='""')return v;if(typeof b=="string")return v instanceof n||b[b.length-1]!=='"'?void 0:typeof v!="string"?`${b.slice(0,-1)}${v}"`:v[0]==='"'?b.slice(0,-1)+v.slice(1):void 0;if(typeof v=="string"&&v[0]==='"'&&!(b instanceof n))return`"${b}${v.slice(1)}`}function u(b,v){return v.emptyStr()?b:b.emptyStr()?v:o`${b}${v}`}e.strConcat=u;function d(b){return typeof b=="number"||typeof b=="boolean"||b===null?b:h(Array.isArray(b)?b.join(","):b)}function f(b){return new r(h(b))}e.stringify=f;function h(b){return JSON.stringify(b).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=h;function p(b){return typeof b=="string"&&e.IDENTIFIER.test(b)?new r(`.${b}`):i`[${b}]`}e.getProperty=p;function m(b){if(typeof b=="string"&&e.IDENTIFIER.test(b))return new r(`${b}`);throw new Error(`CodeGen: invalid export name: ${b}, use explicit $id name mapping`)}e.getEsmExportName=m;function g(b){return new r(b.toString())}e.regexpCode=g})(ch);var e_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=ch;class n extends Error{constructor(c){super(`CodeGen: "code" for ${c} not defined`),this.value=c.value}}var r;(function(l){l[l.Started=0]="Started",l[l.Completed=1]="Completed"})(r=e.UsedValueState||(e.UsedValueState={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class i{constructor({prefixes:c,parent:u}={}){this._names={},this._prefixes=c,this._parent=u}toName(c){return c instanceof t.Name?c:this.name(c)}name(c){return new t.Name(this._newName(c))}_newName(c){const u=this._names[c]||this._nameGroup(c);return`${c}${u.index++}`}_nameGroup(c){var u,d;if(!((d=(u=this._parent)===null||u===void 0?void 0:u._prefixes)===null||d===void 0)&&d.has(c)||this._prefixes&&!this._prefixes.has(c))throw new Error(`CodeGen: prefix "${c}" is not allowed in this scope`);return this._names[c]={prefix:c,index:0}}}e.Scope=i;class s extends t.Name{constructor(c,u){super(u),this.prefix=c}setValue(c,{property:u,itemIndex:d}){this.value=c,this.scopePath=(0,t._)`.${new t.Name(u)}[${d}]`}}e.ValueScopeName=s;const o=(0,t._)`\n`;class a extends i{constructor(c){super(c),this._values={},this._scope=c.scope,this.opts={...c,_n:c.lines?o:t.nil}}get(){return this._scope}name(c){return new s(c,this._newName(c))}value(c,u){var d;if(u.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const f=this.toName(c),{prefix:h}=f,p=(d=u.key)!==null&&d!==void 0?d:u.ref;let m=this._values[h];if(m){const v=m.get(p);if(v)return v}else m=this._values[h]=new Map;m.set(p,f);const g=this._scope[h]||(this._scope[h]=[]),b=g.length;return g[b]=u.ref,f.setValue(u,{property:h,itemIndex:b}),f}getValue(c,u){const d=this._values[c];if(d)return d.get(u)}scopeRefs(c,u=this._values){return this._reduceValues(u,d=>{if(d.scopePath===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return(0,t._)`${c}${d.scopePath}`})}scopeCode(c=this._values,u,d){return this._reduceValues(c,f=>{if(f.value===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return f.value.code},u,d)}_reduceValues(c,u,d={},f){let h=t.nil;for(const p in c){const m=c[p];if(!m)continue;const g=d[p]=d[p]||new Map;m.forEach(b=>{if(g.has(b))return;g.set(b,r.Started);let v=u(b);if(v){const y=this.opts.es5?e.varKinds.var:e.varKinds.const;h=(0,t._)`${h}${y} ${b} = ${v};${this.opts._n}`}else if(v=f==null?void 0:f(b))h=(0,t._)`${h}${v}${this.opts._n}`;else throw new n(b);g.set(b,r.Completed)})}return h}}e.ValueScope=a})(e_);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=ch,n=e_;var r=ch;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var i=e_;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class s{optimizeNodes(){return this}optimizeNames(P,H){return this}}class o extends s{constructor(P,H,q){super(),this.varKind=P,this.name=H,this.rhs=q}render({es5:P,_n:H}){const q=P?n.varKinds.var:this.varKind,ve=this.rhs===void 0?"":` = ${this.rhs}`;return`${q} ${this.name}${ve};`+H}optimizeNames(P,H){if(P[this.name.str])return this.rhs&&(this.rhs=ee(this.rhs,P,H)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class a extends s{constructor(P,H,q){super(),this.lhs=P,this.rhs=H,this.sideEffects=q}render({_n:P}){return`${this.lhs} = ${this.rhs};`+P}optimizeNames(P,H){if(!(this.lhs instanceof t.Name&&!P[this.lhs.str]&&!this.sideEffects))return this.rhs=ee(this.rhs,P,H),this}get names(){const P=this.lhs instanceof t.Name?{}:{...this.lhs.names};return te(P,this.rhs)}}class l extends a{constructor(P,H,q,ve){super(P,q,ve),this.op=H}render({_n:P}){return`${this.lhs} ${this.op}= ${this.rhs};`+P}}class c extends s{constructor(P){super(),this.label=P,this.names={}}render({_n:P}){return`${this.label}:`+P}}class u extends s{constructor(P){super(),this.label=P,this.names={}}render({_n:P}){return`break${this.label?` ${this.label}`:""};`+P}}class d extends s{constructor(P){super(),this.error=P}render({_n:P}){return`throw ${this.error};`+P}get names(){return this.error.names}}class f extends s{constructor(P){super(),this.code=P}render({_n:P}){return`${this.code};`+P}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(P,H){return this.code=ee(this.code,P,H),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class h extends s{constructor(P=[]){super(),this.nodes=P}render(P){return this.nodes.reduce((H,q)=>H+q.render(P),"")}optimizeNodes(){const{nodes:P}=this;let H=P.length;for(;H--;){const q=P[H].optimizeNodes();Array.isArray(q)?P.splice(H,1,...q):q?P[H]=q:P.splice(H,1)}return P.length>0?this:void 0}optimizeNames(P,H){const{nodes:q}=this;let ve=q.length;for(;ve--;){const Ce=q[ve];Ce.optimizeNames(P,H)||(oe(P,Ce.names),q.splice(ve,1))}return q.length>0?this:void 0}get names(){return this.nodes.reduce((P,H)=>R(P,H.names),{})}}class p extends h{render(P){return"{"+P._n+super.render(P)+"}"+P._n}}class m extends h{}class g extends p{}g.kind="else";class b extends p{constructor(P,H){super(H),this.condition=P}render(P){let H=`if(${this.condition})`+super.render(P);return this.else&&(H+="else "+this.else.render(P)),H}optimizeNodes(){super.optimizeNodes();const P=this.condition;if(P===!0)return this.nodes;let H=this.else;if(H){const q=H.optimizeNodes();H=this.else=Array.isArray(q)?new g(q):q}if(H)return P===!1?H instanceof b?H:H.nodes:this.nodes.length?this:new b(pe(P),H instanceof b?[H]:H.nodes);if(!(P===!1||!this.nodes.length))return this}optimizeNames(P,H){var q;if(this.else=(q=this.else)===null||q===void 0?void 0:q.optimizeNames(P,H),!!(super.optimizeNames(P,H)||this.else))return this.condition=ee(this.condition,P,H),this}get names(){const P=super.names;return te(P,this.condition),this.else&&R(P,this.else.names),P}}b.kind="if";class v extends p{}v.kind="for";class y extends v{constructor(P){super(),this.iteration=P}render(P){return`for(${this.iteration})`+super.render(P)}optimizeNames(P,H){if(super.optimizeNames(P,H))return this.iteration=ee(this.iteration,P,H),this}get names(){return R(super.names,this.iteration.names)}}class E extends v{constructor(P,H,q,ve){super(),this.varKind=P,this.name=H,this.from=q,this.to=ve}render(P){const H=P.es5?n.varKinds.var:this.varKind,{name:q,from:ve,to:Ce}=this;return`for(${H} ${q}=${ve}; ${q}<${Ce}; ${q}++)`+super.render(P)}get names(){const P=te(super.names,this.from);return te(P,this.to)}}class T extends v{constructor(P,H,q,ve){super(),this.loop=P,this.varKind=H,this.name=q,this.iterable=ve}render(P){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(P)}optimizeNames(P,H){if(super.optimizeNames(P,H))return this.iterable=ee(this.iterable,P,H),this}get names(){return R(super.names,this.iterable.names)}}class w extends p{constructor(P,H,q){super(),this.name=P,this.args=H,this.async=q}render(P){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(P)}}w.kind="func";class S extends h{render(P){return"return "+super.render(P)}}S.kind="return";class k extends p{render(P){let H="try"+super.render(P);return this.catch&&(H+=this.catch.render(P)),this.finally&&(H+=this.finally.render(P)),H}optimizeNodes(){var P,H;return super.optimizeNodes(),(P=this.catch)===null||P===void 0||P.optimizeNodes(),(H=this.finally)===null||H===void 0||H.optimizeNodes(),this}optimizeNames(P,H){var q,ve;return super.optimizeNames(P,H),(q=this.catch)===null||q===void 0||q.optimizeNames(P,H),(ve=this.finally)===null||ve===void 0||ve.optimizeNames(P,H),this}get names(){const P=super.names;return this.catch&&R(P,this.catch.names),this.finally&&R(P,this.finally.names),P}}class x extends p{constructor(P){super(),this.error=P}render(P){return`catch(${this.error})`+super.render(P)}}x.kind="catch";class A extends p{render(P){return"finally"+super.render(P)}}A.kind="finally";class M{constructor(P,H={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...H,_n:H.lines?`
225
+ `:""},this._extScope=P,this._scope=new n.Scope({parent:P}),this._nodes=[new m]}toString(){return this._root.render(this.opts)}name(P){return this._scope.name(P)}scopeName(P){return this._extScope.name(P)}scopeValue(P,H){const q=this._extScope.value(P,H);return(this._values[q.prefix]||(this._values[q.prefix]=new Set)).add(q),q}getScopeValue(P,H){return this._extScope.getValue(P,H)}scopeRefs(P){return this._extScope.scopeRefs(P,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(P,H,q,ve){const Ce=this._scope.toName(H);return q!==void 0&&ve&&(this._constants[Ce.str]=q),this._leafNode(new o(P,Ce,q)),Ce}const(P,H,q){return this._def(n.varKinds.const,P,H,q)}let(P,H,q){return this._def(n.varKinds.let,P,H,q)}var(P,H,q){return this._def(n.varKinds.var,P,H,q)}assign(P,H,q){return this._leafNode(new a(P,H,q))}add(P,H){return this._leafNode(new l(P,e.operators.ADD,H))}code(P){return typeof P=="function"?P():P!==t.nil&&this._leafNode(new f(P)),this}object(...P){const H=["{"];for(const[q,ve]of P)H.length>1&&H.push(","),H.push(q),(q!==ve||this.opts.es5)&&(H.push(":"),(0,t.addCodeArg)(H,ve));return H.push("}"),new t._Code(H)}if(P,H,q){if(this._blockNode(new b(P)),H&&q)this.code(H).else().code(q).endIf();else if(H)this.code(H).endIf();else if(q)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(P){return this._elseNode(new b(P))}else(){return this._elseNode(new g)}endIf(){return this._endBlockNode(b,g)}_for(P,H){return this._blockNode(P),H&&this.code(H).endFor(),this}for(P,H){return this._for(new y(P),H)}forRange(P,H,q,ve,Ce=this.opts.es5?n.varKinds.var:n.varKinds.let){const We=this._scope.toName(P);return this._for(new E(Ce,We,H,q),()=>ve(We))}forOf(P,H,q,ve=n.varKinds.const){const Ce=this._scope.toName(P);if(this.opts.es5){const We=H instanceof t.Name?H:this.var("_arr",H);return this.forRange("_i",0,(0,t._)`${We}.length`,Ke=>{this.var(Ce,(0,t._)`${We}[${Ke}]`),q(Ce)})}return this._for(new T("of",ve,Ce,H),()=>q(Ce))}forIn(P,H,q,ve=this.opts.es5?n.varKinds.var:n.varKinds.const){if(this.opts.ownProperties)return this.forOf(P,(0,t._)`Object.keys(${H})`,q);const Ce=this._scope.toName(P);return this._for(new T("in",ve,Ce,H),()=>q(Ce))}endFor(){return this._endBlockNode(v)}label(P){return this._leafNode(new c(P))}break(P){return this._leafNode(new u(P))}return(P){const H=new S;if(this._blockNode(H),this.code(P),H.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(P,H,q){if(!H&&!q)throw new Error('CodeGen: "try" without "catch" and "finally"');const ve=new k;if(this._blockNode(ve),this.code(P),H){const Ce=this.name("e");this._currNode=ve.catch=new x(Ce),H(Ce)}return q&&(this._currNode=ve.finally=new A,this.code(q)),this._endBlockNode(x,A)}throw(P){return this._leafNode(new d(P))}block(P,H){return this._blockStarts.push(this._nodes.length),P&&this.code(P).endBlock(H),this}endBlock(P){const H=this._blockStarts.pop();if(H===void 0)throw new Error("CodeGen: not in self-balancing block");const q=this._nodes.length-H;if(q<0||P!==void 0&&q!==P)throw new Error(`CodeGen: wrong number of nodes: ${q} vs ${P} expected`);return this._nodes.length=H,this}func(P,H=t.nil,q,ve){return this._blockNode(new w(P,H,q)),ve&&this.code(ve).endFunc(),this}endFunc(){return this._endBlockNode(w)}optimize(P=1){for(;P-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(P){return this._currNode.nodes.push(P),this}_blockNode(P){this._currNode.nodes.push(P),this._nodes.push(P)}_endBlockNode(P,H){const q=this._currNode;if(q instanceof P||H&&q instanceof H)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${H?`${P.kind}/${H.kind}`:P.kind}"`)}_elseNode(P){const H=this._currNode;if(!(H instanceof b))throw new Error('CodeGen: "else" without "if"');return this._currNode=H.else=P,this}get _root(){return this._nodes[0]}get _currNode(){const P=this._nodes;return P[P.length-1]}set _currNode(P){const H=this._nodes;H[H.length-1]=P}}e.CodeGen=M;function R(N,P){for(const H in P)N[H]=(N[H]||0)+(P[H]||0);return N}function te(N,P){return P instanceof t._CodeOrName?R(N,P.names):N}function ee(N,P,H){if(N instanceof t.Name)return q(N);if(!ve(N))return N;return new t._Code(N._items.reduce((Ce,We)=>(We instanceof t.Name&&(We=q(We)),We instanceof t._Code?Ce.push(...We._items):Ce.push(We),Ce),[]));function q(Ce){const We=H[Ce.str];return We===void 0||P[Ce.str]!==1?Ce:(delete P[Ce.str],We)}function ve(Ce){return Ce instanceof t._Code&&Ce._items.some(We=>We instanceof t.Name&&P[We.str]===1&&H[We.str]!==void 0)}}function oe(N,P){for(const H in P)N[H]=(N[H]||0)-(P[H]||0)}function pe(N){return typeof N=="boolean"||typeof N=="number"||N===null?!N:(0,t._)`!${J(N)}`}e.not=pe;const G=B(e.operators.AND);function Q(...N){return N.reduce(G)}e.and=Q;const fe=B(e.operators.OR);function O(...N){return N.reduce(fe)}e.or=O;function B(N){return(P,H)=>P===t.nil?H:H===t.nil?P:(0,t._)`${J(P)} ${N} ${J(H)}`}function J(N){return N instanceof t.Name?N:(0,t._)`(${N})`}})(ht);var Ot={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const t=ht,n=ch;function r(w){const S={};for(const k of w)S[k]=!0;return S}e.toHash=r;function i(w,S){return typeof S=="boolean"?S:Object.keys(S).length===0?!0:(s(w,S),!o(S,w.self.RULES.all))}e.alwaysValidSchema=i;function s(w,S=w.schema){const{opts:k,self:x}=w;if(!k.strictSchema||typeof S=="boolean")return;const A=x.RULES.keywords;for(const M in S)A[M]||T(w,`unknown keyword: "${M}"`)}e.checkUnknownRules=s;function o(w,S){if(typeof w=="boolean")return!w;for(const k in w)if(S[k])return!0;return!1}e.schemaHasRules=o;function a(w,S){if(typeof w=="boolean")return!w;for(const k in w)if(k!=="$ref"&&S.all[k])return!0;return!1}e.schemaHasRulesButRef=a;function l({topSchemaRef:w,schemaPath:S},k,x,A){if(!A){if(typeof k=="number"||typeof k=="boolean")return k;if(typeof k=="string")return(0,t._)`${k}`}return(0,t._)`${w}${S}${(0,t.getProperty)(x)}`}e.schemaRefOrVal=l;function c(w){return f(decodeURIComponent(w))}e.unescapeFragment=c;function u(w){return encodeURIComponent(d(w))}e.escapeFragment=u;function d(w){return typeof w=="number"?`${w}`:w.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=d;function f(w){return w.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=f;function h(w,S){if(Array.isArray(w))for(const k of w)S(k);else S(w)}e.eachItem=h;function p({mergeNames:w,mergeToName:S,mergeValues:k,resultToName:x}){return(A,M,R,te)=>{const ee=R===void 0?M:R instanceof t.Name?(M instanceof t.Name?w(A,M,R):S(A,M,R),R):M instanceof t.Name?(S(A,R,M),M):k(M,R);return te===t.Name&&!(ee instanceof t.Name)?x(A,ee):ee}}e.mergeEvaluated={props:p({mergeNames:(w,S,k)=>w.if((0,t._)`${k} !== true && ${S} !== undefined`,()=>{w.if((0,t._)`${S} === true`,()=>w.assign(k,!0),()=>w.assign(k,(0,t._)`${k} || {}`).code((0,t._)`Object.assign(${k}, ${S})`))}),mergeToName:(w,S,k)=>w.if((0,t._)`${k} !== true`,()=>{S===!0?w.assign(k,!0):(w.assign(k,(0,t._)`${k} || {}`),g(w,k,S))}),mergeValues:(w,S)=>w===!0?!0:{...w,...S},resultToName:m}),items:p({mergeNames:(w,S,k)=>w.if((0,t._)`${k} !== true && ${S} !== undefined`,()=>w.assign(k,(0,t._)`${S} === true ? true : ${k} > ${S} ? ${k} : ${S}`)),mergeToName:(w,S,k)=>w.if((0,t._)`${k} !== true`,()=>w.assign(k,S===!0?!0:(0,t._)`${k} > ${S} ? ${k} : ${S}`)),mergeValues:(w,S)=>w===!0?!0:Math.max(w,S),resultToName:(w,S)=>w.var("items",S)})};function m(w,S){if(S===!0)return w.var("props",!0);const k=w.var("props",(0,t._)`{}`);return S!==void 0&&g(w,k,S),k}e.evaluatedPropsToName=m;function g(w,S,k){Object.keys(k).forEach(x=>w.assign((0,t._)`${S}${(0,t.getProperty)(x)}`,!0))}e.setEvaluated=g;const b={};function v(w,S){return w.scopeValue("func",{ref:S,code:b[S.code]||(b[S.code]=new n._Code(S.code))})}e.useFunc=v;var y;(function(w){w[w.Num=0]="Num",w[w.Str=1]="Str"})(y=e.Type||(e.Type={}));function E(w,S,k){if(w instanceof t.Name){const x=S===y.Num;return k?x?(0,t._)`"[" + ${w} + "]"`:(0,t._)`"['" + ${w} + "']"`:x?(0,t._)`"/" + ${w}`:(0,t._)`"/" + ${w}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return k?(0,t.getProperty)(w).toString():"/"+d(w)}e.getErrorPath=E;function T(w,S,k=w.opts.strictSchema){if(k){if(S=`strict mode: ${S}`,k===!0)throw new Error(S);w.self.logger.warn(S)}}e.checkStrictMode=T})(Ot);var pi={};Object.defineProperty(pi,"__esModule",{value:!0});const dr=ht,dde={data:new dr.Name("data"),valCxt:new dr.Name("valCxt"),instancePath:new dr.Name("instancePath"),parentData:new dr.Name("parentData"),parentDataProperty:new dr.Name("parentDataProperty"),rootData:new dr.Name("rootData"),dynamicAnchors:new dr.Name("dynamicAnchors"),vErrors:new dr.Name("vErrors"),errors:new dr.Name("errors"),this:new dr.Name("this"),self:new dr.Name("self"),scope:new dr.Name("scope"),json:new dr.Name("json"),jsonPos:new dr.Name("jsonPos"),jsonLen:new dr.Name("jsonLen"),jsonPart:new dr.Name("jsonPart")};pi.default=dde;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=ht,n=Ot,r=pi;e.keywordError={message:({keyword:g})=>(0,t.str)`must pass "${g}" keyword validation`},e.keyword$DataError={message:({keyword:g,schemaType:b})=>b?(0,t.str)`"${g}" keyword must be ${b} ($data)`:(0,t.str)`"${g}" keyword is invalid ($data)`};function i(g,b=e.keywordError,v,y){const{it:E}=g,{gen:T,compositeRule:w,allErrors:S}=E,k=d(g,b,v);y??(w||S)?l(T,k):c(E,(0,t._)`[${k}]`)}e.reportError=i;function s(g,b=e.keywordError,v){const{it:y}=g,{gen:E,compositeRule:T,allErrors:w}=y,S=d(g,b,v);l(E,S),T||w||c(y,r.default.vErrors)}e.reportExtraError=s;function o(g,b){g.assign(r.default.errors,b),g.if((0,t._)`${r.default.vErrors} !== null`,()=>g.if(b,()=>g.assign((0,t._)`${r.default.vErrors}.length`,b),()=>g.assign(r.default.vErrors,null)))}e.resetErrorsCount=o;function a({gen:g,keyword:b,schemaValue:v,data:y,errsCount:E,it:T}){if(E===void 0)throw new Error("ajv implementation error");const w=g.name("err");g.forRange("i",E,r.default.errors,S=>{g.const(w,(0,t._)`${r.default.vErrors}[${S}]`),g.if((0,t._)`${w}.instancePath === undefined`,()=>g.assign((0,t._)`${w}.instancePath`,(0,t.strConcat)(r.default.instancePath,T.errorPath))),g.assign((0,t._)`${w}.schemaPath`,(0,t.str)`${T.errSchemaPath}/${b}`),T.opts.verbose&&(g.assign((0,t._)`${w}.schema`,v),g.assign((0,t._)`${w}.data`,y))})}e.extendErrors=a;function l(g,b){const v=g.const("err",b);g.if((0,t._)`${r.default.vErrors} === null`,()=>g.assign(r.default.vErrors,(0,t._)`[${v}]`),(0,t._)`${r.default.vErrors}.push(${v})`),g.code((0,t._)`${r.default.errors}++`)}function c(g,b){const{gen:v,validateName:y,schemaEnv:E}=g;E.$async?v.throw((0,t._)`new ${g.ValidationError}(${b})`):(v.assign((0,t._)`${y}.errors`,b),v.return(!1))}const u={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function d(g,b,v){const{createErrors:y}=g.it;return y===!1?(0,t._)`{}`:f(g,b,v)}function f(g,b,v={}){const{gen:y,it:E}=g,T=[h(E,v),p(g,v)];return m(g,b,T),y.object(...T)}function h({errorPath:g},{instancePath:b}){const v=b?(0,t.str)`${g}${(0,n.getErrorPath)(b,n.Type.Str)}`:g;return[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,v)]}function p({keyword:g,it:{errSchemaPath:b}},{schemaPath:v,parentSchema:y}){let E=y?b:(0,t.str)`${b}/${g}`;return v&&(E=(0,t.str)`${E}${(0,n.getErrorPath)(v,n.Type.Str)}`),[u.schemaPath,E]}function m(g,{params:b,message:v},y){const{keyword:E,data:T,schemaValue:w,it:S}=g,{opts:k,propertyName:x,topSchemaRef:A,schemaPath:M}=S;y.push([u.keyword,E],[u.params,typeof b=="function"?b(g):b||(0,t._)`{}`]),k.messages&&y.push([u.message,typeof v=="function"?v(g):v]),k.verbose&&y.push([u.schema,w],[u.parentSchema,(0,t._)`${A}${M}`],[r.default.data,T]),x&&y.push([u.propertyName,x])}})(Kh);Object.defineProperty(wu,"__esModule",{value:!0});wu.boolOrEmptySchema=wu.topBoolOrEmptySchema=void 0;const fde=Kh,hde=ht,pde=pi,mde={message:"boolean schema is false"};function gde(e){const{gen:t,schema:n,validateName:r}=e;n===!1?wF(e,!1):typeof n=="object"&&n.$async===!0?t.return(pde.default.data):(t.assign((0,hde._)`${r}.errors`,null),t.return(!0))}wu.topBoolOrEmptySchema=gde;function bde(e,t){const{gen:n,schema:r}=e;r===!1?(n.var(t,!1),wF(e)):n.var(t,!0)}wu.boolOrEmptySchema=bde;function wF(e,t){const{gen:n,data:r}=e,i={gen:n,keyword:"false schema",data:r,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,fde.reportError)(i,mde,void 0,t)}var Wh={},Yl={};Object.defineProperty(Yl,"__esModule",{value:!0});Yl.getRules=Yl.isJSONType=void 0;const yde=["string","number","integer","boolean","null","object","array"],vde=new Set(yde);function Ede(e){return typeof e=="string"&&vde.has(e)}Yl.isJSONType=Ede;function _de(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}Yl.getRules=_de;var ao={};Object.defineProperty(ao,"__esModule",{value:!0});ao.shouldUseRule=ao.shouldUseGroup=ao.schemaHasRulesForType=void 0;function wde({schema:e,self:t},n){const r=t.RULES.types[n];return r&&r!==!0&&TF(e,r)}ao.schemaHasRulesForType=wde;function TF(e,t){return t.rules.some(n=>SF(e,n))}ao.shouldUseGroup=TF;function SF(e,t){var n;return e[t.keyword]!==void 0||((n=t.definition.implements)===null||n===void 0?void 0:n.some(r=>e[r]!==void 0))}ao.shouldUseRule=SF;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const t=Yl,n=ao,r=Kh,i=ht,s=Ot;var o;(function(y){y[y.Correct=0]="Correct",y[y.Wrong=1]="Wrong"})(o=e.DataType||(e.DataType={}));function a(y){const E=l(y.type);if(E.includes("null")){if(y.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!E.length&&y.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');y.nullable===!0&&E.push("null")}return E}e.getSchemaTypes=a;function l(y){const E=Array.isArray(y)?y:y?[y]:[];if(E.every(t.isJSONType))return E;throw new Error("type must be JSONType or JSONType[]: "+E.join(","))}e.getJSONTypes=l;function c(y,E){const{gen:T,data:w,opts:S}=y,k=d(E,S.coerceTypes),x=E.length>0&&!(k.length===0&&E.length===1&&(0,n.schemaHasRulesForType)(y,E[0]));if(x){const A=m(E,w,S.strictNumbers,o.Wrong);T.if(A,()=>{k.length?f(y,E,k):b(y)})}return x}e.coerceAndCheckDataType=c;const u=new Set(["string","number","integer","boolean","null"]);function d(y,E){return E?y.filter(T=>u.has(T)||E==="array"&&T==="array"):[]}function f(y,E,T){const{gen:w,data:S,opts:k}=y,x=w.let("dataType",(0,i._)`typeof ${S}`),A=w.let("coerced",(0,i._)`undefined`);k.coerceTypes==="array"&&w.if((0,i._)`${x} == 'object' && Array.isArray(${S}) && ${S}.length == 1`,()=>w.assign(S,(0,i._)`${S}[0]`).assign(x,(0,i._)`typeof ${S}`).if(m(E,S,k.strictNumbers),()=>w.assign(A,S))),w.if((0,i._)`${A} !== undefined`);for(const R of T)(u.has(R)||R==="array"&&k.coerceTypes==="array")&&M(R);w.else(),b(y),w.endIf(),w.if((0,i._)`${A} !== undefined`,()=>{w.assign(S,A),h(y,A)});function M(R){switch(R){case"string":w.elseIf((0,i._)`${x} == "number" || ${x} == "boolean"`).assign(A,(0,i._)`"" + ${S}`).elseIf((0,i._)`${S} === null`).assign(A,(0,i._)`""`);return;case"number":w.elseIf((0,i._)`${x} == "boolean" || ${S} === null
226
226
  || (${x} == "string" && ${S} && ${S} == +${S})`).assign(A,(0,i._)`+${S}`);return;case"integer":w.elseIf((0,i._)`${x} === "boolean" || ${S} === null
227
227
  || (${x} === "string" && ${S} && ${S} == +${S} && !(${S} % 1))`).assign(A,(0,i._)`+${S}`);return;case"boolean":w.elseIf((0,i._)`${S} === "false" || ${S} === 0 || ${S} === null`).assign(A,!1).elseIf((0,i._)`${S} === "true" || ${S} === 1`).assign(A,!0);return;case"null":w.elseIf((0,i._)`${S} === "" || ${S} === 0 || ${S} === false`),w.assign(A,null);return;case"array":w.elseIf((0,i._)`${x} === "string" || ${x} === "number"
228
- || ${x} === "boolean" || ${S} === null`).assign(A,(0,i._)`[${S}]`)}}}function h({gen:y,parentData:E,parentDataProperty:T},w){y.if((0,i._)`${E} !== undefined`,()=>y.assign((0,i._)`${E}[${T}]`,w))}function p(y,E,T,w=o.Correct){const S=w===o.Correct?i.operators.EQ:i.operators.NEQ;let k;switch(y){case"null":return(0,i._)`${E} ${S} null`;case"array":k=(0,i._)`Array.isArray(${E})`;break;case"object":k=(0,i._)`${E} && typeof ${E} == "object" && !Array.isArray(${E})`;break;case"integer":k=x((0,i._)`!(${E} % 1) && !isNaN(${E})`);break;case"number":k=x();break;default:return(0,i._)`typeof ${E} ${S} ${y}`}return w===o.Correct?k:(0,i.not)(k);function x(A=i.nil){return(0,i.and)((0,i._)`typeof ${E} == "number"`,A,T?(0,i._)`isFinite(${E})`:i.nil)}}e.checkDataType=p;function m(y,E,T,w){if(y.length===1)return p(y[0],E,T,w);let S;const k=(0,s.toHash)(y);if(k.array&&k.object){const x=(0,i._)`typeof ${E} != "object"`;S=k.null?x:(0,i._)`!${E} || ${x}`,delete k.null,delete k.array,delete k.object}else S=i.nil;k.number&&delete k.integer;for(const x in k)S=(0,i.and)(S,p(x,E,T,w));return S}e.checkDataTypes=m;const g={message:({schema:y})=>`must be ${y}`,params:({schema:y,schemaValue:E})=>typeof y=="string"?(0,i._)`{type: ${y}}`:(0,i._)`{type: ${E}}`};function b(y){const E=v(y);(0,r.reportError)(E,g)}e.reportTypeError=b;function v(y){const{gen:E,data:T,schema:w}=y,S=(0,s.schemaRefOrVal)(y,w,"type");return{gen:E,keyword:"type",data:T,schema:w.type,schemaCode:S,schemaValue:S,parentSchema:w,params:{},it:y}}})(Wh);var Ab={};Object.defineProperty(Ab,"__esModule",{value:!0});Ab.assignDefaults=void 0;const vc=ht,kde=Ot;function Ade(e,t){const{properties:n,items:r}=e.schema;if(t==="object"&&n)for(const i in n)yO(e,i,n[i].default);else t==="array"&&Array.isArray(r)&&r.forEach((i,s)=>yO(e,s,i.default))}Ab.assignDefaults=Ade;function yO(e,t,n){const{gen:r,compositeRule:i,data:s,opts:o}=e;if(n===void 0)return;const a=(0,vc._)`${s}${(0,vc.getProperty)(t)}`;if(i){(0,kde.checkStrictMode)(e,`default is ignored for: ${a}`);return}let l=(0,vc._)`${a} === undefined`;o.useDefaults==="empty"&&(l=(0,vc._)`${l} || ${a} === null || ${a} === ""`),r.if(l,(0,vc._)`${a} = ${(0,vc.stringify)(n)}`)}var Ns={},kt={};Object.defineProperty(kt,"__esModule",{value:!0});kt.validateUnion=kt.validateArray=kt.usePattern=kt.callValidateCode=kt.schemaProperties=kt.allSchemaProperties=kt.noPropertyInData=kt.propertyInData=kt.isOwnProperty=kt.hasPropFunc=kt.reportMissingProp=kt.checkMissingProp=kt.checkReportMissingProp=void 0;const sn=ht,jT=Ot,Fo=pi,xde=Ot;function Nde(e,t){const{gen:n,data:r,it:i}=e;n.if(qT(n,r,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,sn._)`${t}`},!0),e.error()})}kt.checkReportMissingProp=Nde;function Cde({gen:e,data:t,it:{opts:n}},r,i){return(0,sn.or)(...r.map(s=>(0,sn.and)(qT(e,t,s,n.ownProperties),(0,sn._)`${i} = ${s}`)))}kt.checkMissingProp=Cde;function Ode(e,t){e.setParams({missingProperty:t},!0),e.error()}kt.reportMissingProp=Ode;function kF(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,sn._)`Object.prototype.hasOwnProperty`})}kt.hasPropFunc=kF;function VT(e,t,n){return(0,sn._)`${kF(e)}.call(${t}, ${n})`}kt.isOwnProperty=VT;function Dde(e,t,n,r){const i=(0,sn._)`${t}${(0,sn.getProperty)(n)} !== undefined`;return r?(0,sn._)`${i} && ${VT(e,t,n)}`:i}kt.propertyInData=Dde;function qT(e,t,n,r){const i=(0,sn._)`${t}${(0,sn.getProperty)(n)} === undefined`;return r?(0,sn.or)(i,(0,sn.not)(VT(e,t,n))):i}kt.noPropertyInData=qT;function AF(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}kt.allSchemaProperties=AF;function Ide(e,t){return AF(t).filter(n=>!(0,jT.alwaysValidSchema)(e,t[n]))}kt.schemaProperties=Ide;function Rde({schemaCode:e,data:t,it:{gen:n,topSchemaRef:r,schemaPath:i,errorPath:s},it:o},a,l,c){const u=c?(0,sn._)`${e}, ${t}, ${r}${i}`:t,d=[[Fo.default.instancePath,(0,sn.strConcat)(Fo.default.instancePath,s)],[Fo.default.parentData,o.parentData],[Fo.default.parentDataProperty,o.parentDataProperty],[Fo.default.rootData,Fo.default.rootData]];o.opts.dynamicRef&&d.push([Fo.default.dynamicAnchors,Fo.default.dynamicAnchors]);const f=(0,sn._)`${u}, ${n.object(...d)}`;return l!==sn.nil?(0,sn._)`${a}.call(${l}, ${f})`:(0,sn._)`${a}(${f})`}kt.callValidateCode=Rde;const Pde=(0,sn._)`new RegExp`;function Lde({gen:e,it:{opts:t}},n){const r=t.unicodeRegExp?"u":"",{regExp:i}=t.code,s=i(n,r);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,sn._)`${i.code==="new RegExp"?Pde:(0,xde.useFunc)(e,i)}(${n}, ${r})`})}kt.usePattern=Lde;function Mde(e){const{gen:t,data:n,keyword:r,it:i}=e,s=t.name("valid");if(i.allErrors){const a=t.let("valid",!0);return o(()=>t.assign(a,!1)),a}return t.var(s,!0),o(()=>t.break()),s;function o(a){const l=t.const("len",(0,sn._)`${n}.length`);t.forRange("i",0,l,c=>{e.subschema({keyword:r,dataProp:c,dataPropType:jT.Type.Num},s),t.if((0,sn.not)(s),a)})}}kt.validateArray=Mde;function $de(e){const{gen:t,schema:n,keyword:r,it:i}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some(a=>(0,jT.alwaysValidSchema)(i,a))&&!i.opts.unevaluated)return;const s=t.let("valid",!1),o=t.name("_valid");t.block(()=>n.forEach((a,l)=>{const c=e.subschema({keyword:r,schemaProp:l,compositeRule:!0},o);t.assign(s,(0,sn._)`${s} || ${o}`),e.mergeValidEvaluated(c,o)||t.if((0,sn.not)(s))})),e.result(s,()=>e.reset(),()=>e.error(!0))}kt.validateUnion=$de;Object.defineProperty(Ns,"__esModule",{value:!0});Ns.validateKeywordUsage=Ns.validSchemaType=Ns.funcKeywordCode=Ns.macroKeywordCode=void 0;const Cr=ht,al=pi,Fde=kt,Bde=Kh;function Ude(e,t){const{gen:n,keyword:r,schema:i,parentSchema:s,it:o}=e,a=t.macro.call(o.self,i,s,o),l=xF(n,r,a);o.opts.validateSchema!==!1&&o.self.validateSchema(a,!0);const c=n.name("valid");e.subschema({schema:a,schemaPath:Cr.nil,errSchemaPath:`${o.errSchemaPath}/${r}`,topSchemaRef:l,compositeRule:!0},c),e.pass(c,()=>e.error(!0))}Ns.macroKeywordCode=Ude;function Hde(e,t){var n;const{gen:r,keyword:i,schema:s,parentSchema:o,$data:a,it:l}=e;Vde(l,t);const c=!a&&t.compile?t.compile.call(l.self,s,o,l):t.validate,u=xF(r,i,c),d=r.let("valid");e.block$data(d,f),e.ok((n=t.valid)!==null&&n!==void 0?n:d);function f(){if(t.errors===!1)m(),t.modifying&&vO(e),g(()=>e.error());else{const b=t.async?h():p();t.modifying&&vO(e),g(()=>jde(e,b))}}function h(){const b=r.let("ruleErrs",null);return r.try(()=>m((0,Cr._)`await `),v=>r.assign(d,!1).if((0,Cr._)`${v} instanceof ${l.ValidationError}`,()=>r.assign(b,(0,Cr._)`${v}.errors`),()=>r.throw(v))),b}function p(){const b=(0,Cr._)`${u}.errors`;return r.assign(b,null),m(Cr.nil),b}function m(b=t.async?(0,Cr._)`await `:Cr.nil){const v=l.opts.passContext?al.default.this:al.default.self,y=!("compile"in t&&!a||t.schema===!1);r.assign(d,(0,Cr._)`${b}${(0,Fde.callValidateCode)(e,u,v,y)}`,t.modifying)}function g(b){var v;r.if((0,Cr.not)((v=t.valid)!==null&&v!==void 0?v:d),b)}}Ns.funcKeywordCode=Hde;function vO(e){const{gen:t,data:n,it:r}=e;t.if(r.parentData,()=>t.assign(n,(0,Cr._)`${r.parentData}[${r.parentDataProperty}]`))}function jde(e,t){const{gen:n}=e;n.if((0,Cr._)`Array.isArray(${t})`,()=>{n.assign(al.default.vErrors,(0,Cr._)`${al.default.vErrors} === null ? ${t} : ${al.default.vErrors}.concat(${t})`).assign(al.default.errors,(0,Cr._)`${al.default.vErrors}.length`),(0,Bde.extendErrors)(e)},()=>e.error())}function Vde({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function xF(e,t,n){if(n===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof n=="function"?{ref:n}:{ref:n,code:(0,Cr.stringify)(n)})}function qde(e,t,n=!1){return!t.length||t.some(r=>r==="array"?Array.isArray(e):r==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==r||n&&typeof e>"u")}Ns.validSchemaType=qde;function zde({schema:e,opts:t,self:n,errSchemaPath:r},i,s){if(Array.isArray(i.keyword)?!i.keyword.includes(s):i.keyword!==s)throw new Error("ajv implementation error");const o=i.dependencies;if(o!=null&&o.some(a=>!Object.prototype.hasOwnProperty.call(e,a)))throw new Error(`parent schema must have dependencies of ${s}: ${o.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[s])){const a=`keyword "${s}" value is invalid at path "${r}": `+n.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")n.logger.error(a);else throw new Error(a)}}Ns.validateKeywordUsage=zde;var wa={};Object.defineProperty(wa,"__esModule",{value:!0});wa.extendSubschemaMode=wa.extendSubschemaData=wa.getSubschema=void 0;const _s=ht,NF=Ot;function Kde(e,{keyword:t,schemaProp:n,schema:r,schemaPath:i,errSchemaPath:s,topSchemaRef:o}){if(t!==void 0&&r!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const a=e.schema[t];return n===void 0?{schema:a,schemaPath:(0,_s._)`${e.schemaPath}${(0,_s.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[n],schemaPath:(0,_s._)`${e.schemaPath}${(0,_s.getProperty)(t)}${(0,_s.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,NF.escapeFragment)(n)}`}}if(r!==void 0){if(i===void 0||s===void 0||o===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:r,schemaPath:i,topSchemaRef:o,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}wa.getSubschema=Kde;function Wde(e,t,{dataProp:n,dataPropType:r,data:i,dataTypes:s,propertyName:o}){if(i!==void 0&&n!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:a}=t;if(n!==void 0){const{errorPath:c,dataPathArr:u,opts:d}=t,f=a.let("data",(0,_s._)`${t.data}${(0,_s.getProperty)(n)}`,!0);l(f),e.errorPath=(0,_s.str)`${c}${(0,NF.getErrorPath)(n,r,d.jsPropertySyntax)}`,e.parentDataProperty=(0,_s._)`${n}`,e.dataPathArr=[...u,e.parentDataProperty]}if(i!==void 0){const c=i instanceof _s.Name?i:a.let("data",i,!0);l(c),o!==void 0&&(e.propertyName=o)}s&&(e.dataTypes=s);function l(c){e.data=c,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,c]}}wa.extendSubschemaData=Wde;function Gde(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:i,allErrors:s}){r!==void 0&&(e.compositeRule=r),i!==void 0&&(e.createErrors=i),s!==void 0&&(e.allErrors=s),e.jtdDiscriminator=t,e.jtdMetadata=n}wa.extendSubschemaMode=Gde;var rr={},CF=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,i,s;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(s=Object.keys(t),r=s.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,s[i]))return!1;for(i=r;i--!==0;){var o=s[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n},OF={exports:{}},da=OF.exports=function(e,t,n){typeof t=="function"&&(n=t,t={}),n=t.cb||n;var r=typeof n=="function"?n:n.pre||function(){},i=n.post||function(){};Ym(t,r,i,e,"",e)};da.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};da.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};da.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};da.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Ym(e,t,n,r,i,s,o,a,l,c){if(r&&typeof r=="object"&&!Array.isArray(r)){t(r,i,s,o,a,l,c);for(var u in r){var d=r[u];if(Array.isArray(d)){if(u in da.arrayKeywords)for(var f=0;f<d.length;f++)Ym(e,t,n,d[f],i+"/"+u+"/"+f,s,i,u,r,f)}else if(u in da.propsKeywords){if(d&&typeof d=="object")for(var h in d)Ym(e,t,n,d[h],i+"/"+u+"/"+Yde(h),s,i,u,r,h)}else(u in da.keywords||e.allKeys&&!(u in da.skipKeywords))&&Ym(e,t,n,d,i+"/"+u,s,i,u,r)}n(r,i,s,o,a,l,c)}}function Yde(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}var Xde=OF.exports;Object.defineProperty(rr,"__esModule",{value:!0});rr.getSchemaRefs=rr.resolveUrl=rr.normalizeId=rr._getFullPath=rr.getFullPath=rr.inlineRef=void 0;const Qde=Ot,Jde=CF,Zde=Xde,efe=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function tfe(e,t=!0){return typeof e=="boolean"?!0:t===!0?!t_(e):t?DF(e)<=t:!1}rr.inlineRef=tfe;const nfe=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function t_(e){for(const t in e){if(nfe.has(t))return!0;const n=e[t];if(Array.isArray(n)&&n.some(t_)||typeof n=="object"&&t_(n))return!0}return!1}function DF(e){let t=0;for(const n in e)if(n==="$ref"||(t++,!efe.has(n)&&(typeof e[n]=="object"&&(0,Qde.eachItem)(e[n],r=>t+=DF(r)),t===1/0)))return 1/0;return t}function IF(e,t="",n){n!==!1&&(t=ru(t));const r=e.parse(t);return RF(e,r)}rr.getFullPath=IF;function RF(e,t){return e.serialize(t).split("#")[0]+"#"}rr._getFullPath=RF;const rfe=/#\/?$/;function ru(e){return e?e.replace(rfe,""):""}rr.normalizeId=ru;function ife(e,t,n){return n=ru(n),e.resolve(t,n)}rr.resolveUrl=ife;const sfe=/^[a-z_][-a-z0-9._]*$/i;function ofe(e,t){if(typeof e=="boolean")return{};const{schemaId:n,uriResolver:r}=this.opts,i=ru(e[n]||t),s={"":i},o=IF(r,i,!1),a={},l=new Set;return Zde(e,{allKeys:!0},(d,f,h,p)=>{if(p===void 0)return;const m=o+f;let g=s[p];typeof d[n]=="string"&&(g=b.call(this,d[n])),v.call(this,d.$anchor),v.call(this,d.$dynamicAnchor),s[f]=g;function b(y){const E=this.opts.uriResolver.resolve;if(y=ru(g?E(g,y):y),l.has(y))throw u(y);l.add(y);let T=this.refs[y];return typeof T=="string"&&(T=this.refs[T]),typeof T=="object"?c(d,T.schema,y):y!==ru(m)&&(y[0]==="#"?(c(d,a[y],y),a[y]=d):this.refs[y]=m),y}function v(y){if(typeof y=="string"){if(!sfe.test(y))throw new Error(`invalid anchor "${y}"`);b.call(this,`#${y}`)}}}),a;function c(d,f,h){if(f!==void 0&&!Jde(d,f))throw u(h)}function u(d){return new Error(`reference "${d}" resolves to more than one schema`)}}rr.getSchemaRefs=ofe;Object.defineProperty(Ci,"__esModule",{value:!0});Ci.getData=Ci.KeywordCxt=Ci.validateFunctionCode=void 0;const PF=wu,EO=Wh,zT=ao,Qg=Wh,afe=Ab,Af=Ns,Sv=wa,Je=ht,ft=pi,lfe=rr,lo=Ot,Ud=Kh;function cfe(e){if($F(e)&&(FF(e),MF(e))){ffe(e);return}LF(e,()=>(0,PF.topBoolOrEmptySchema)(e))}Ci.validateFunctionCode=cfe;function LF({gen:e,validateName:t,schema:n,schemaEnv:r,opts:i},s){i.code.es5?e.func(t,(0,Je._)`${ft.default.data}, ${ft.default.valCxt}`,r.$async,()=>{e.code((0,Je._)`"use strict"; ${_O(n,i)}`),dfe(e,i),e.code(s)}):e.func(t,(0,Je._)`${ft.default.data}, ${ufe(i)}`,r.$async,()=>e.code(_O(n,i)).code(s))}function ufe(e){return(0,Je._)`{${ft.default.instancePath}="", ${ft.default.parentData}, ${ft.default.parentDataProperty}, ${ft.default.rootData}=${ft.default.data}${e.dynamicRef?(0,Je._)`, ${ft.default.dynamicAnchors}={}`:Je.nil}}={}`}function dfe(e,t){e.if(ft.default.valCxt,()=>{e.var(ft.default.instancePath,(0,Je._)`${ft.default.valCxt}.${ft.default.instancePath}`),e.var(ft.default.parentData,(0,Je._)`${ft.default.valCxt}.${ft.default.parentData}`),e.var(ft.default.parentDataProperty,(0,Je._)`${ft.default.valCxt}.${ft.default.parentDataProperty}`),e.var(ft.default.rootData,(0,Je._)`${ft.default.valCxt}.${ft.default.rootData}`),t.dynamicRef&&e.var(ft.default.dynamicAnchors,(0,Je._)`${ft.default.valCxt}.${ft.default.dynamicAnchors}`)},()=>{e.var(ft.default.instancePath,(0,Je._)`""`),e.var(ft.default.parentData,(0,Je._)`undefined`),e.var(ft.default.parentDataProperty,(0,Je._)`undefined`),e.var(ft.default.rootData,ft.default.data),t.dynamicRef&&e.var(ft.default.dynamicAnchors,(0,Je._)`{}`)})}function ffe(e){const{schema:t,opts:n,gen:r}=e;LF(e,()=>{n.$comment&&t.$comment&&UF(e),bfe(e),r.let(ft.default.vErrors,null),r.let(ft.default.errors,0),n.unevaluated&&hfe(e),BF(e),Efe(e)})}function hfe(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",(0,Je._)`${n}.evaluated`),t.if((0,Je._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,Je._)`${e.evaluated}.props`,(0,Je._)`undefined`)),t.if((0,Je._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,Je._)`${e.evaluated}.items`,(0,Je._)`undefined`))}function _O(e,t){const n=typeof e=="object"&&e[t.schemaId];return n&&(t.code.source||t.code.process)?(0,Je._)`/*# sourceURL=${n} */`:Je.nil}function pfe(e,t){if($F(e)&&(FF(e),MF(e))){mfe(e,t);return}(0,PF.boolOrEmptySchema)(e,t)}function MF({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function $F(e){return typeof e.schema!="boolean"}function mfe(e,t){const{schema:n,gen:r,opts:i}=e;i.$comment&&n.$comment&&UF(e),yfe(e),vfe(e);const s=r.const("_errs",ft.default.errors);BF(e,s),r.var(t,(0,Je._)`${s} === ${ft.default.errors}`)}function FF(e){(0,lo.checkUnknownRules)(e),gfe(e)}function BF(e,t){if(e.opts.jtd)return wO(e,[],!1,t);const n=(0,EO.getSchemaTypes)(e.schema),r=(0,EO.coerceAndCheckDataType)(e,n);wO(e,n,!r,t)}function gfe(e){const{schema:t,errSchemaPath:n,opts:r,self:i}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,lo.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}function bfe(e){const{schema:t,opts:n}=e;t.default!==void 0&&n.useDefaults&&n.strictSchema&&(0,lo.checkStrictMode)(e,"default is ignored in the schema root")}function yfe(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,lfe.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function vfe(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function UF({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:i}){const s=n.$comment;if(i.$comment===!0)e.code((0,Je._)`${ft.default.self}.logger.log(${s})`);else if(typeof i.$comment=="function"){const o=(0,Je.str)`${r}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,Je._)`${ft.default.self}.opts.$comment(${s}, ${o}, ${a}.schema)`)}}function Efe(e){const{gen:t,schemaEnv:n,validateName:r,ValidationError:i,opts:s}=e;n.$async?t.if((0,Je._)`${ft.default.errors} === 0`,()=>t.return(ft.default.data),()=>t.throw((0,Je._)`new ${i}(${ft.default.vErrors})`)):(t.assign((0,Je._)`${r}.errors`,ft.default.vErrors),s.unevaluated&&_fe(e),t.return((0,Je._)`${ft.default.errors} === 0`))}function _fe({gen:e,evaluated:t,props:n,items:r}){n instanceof Je.Name&&e.assign((0,Je._)`${t}.props`,n),r instanceof Je.Name&&e.assign((0,Je._)`${t}.items`,r)}function wO(e,t,n,r){const{gen:i,schema:s,data:o,allErrors:a,opts:l,self:c}=e,{RULES:u}=c;if(s.$ref&&(l.ignoreKeywordsWithRef||!(0,lo.schemaHasRulesButRef)(s,u))){i.block(()=>VF(e,"$ref",u.all.$ref.definition));return}l.jtd||wfe(e,t),i.block(()=>{for(const f of u.rules)d(f);d(u.post)});function d(f){(0,zT.shouldUseGroup)(s,f)&&(f.type?(i.if((0,Qg.checkDataType)(f.type,o,l.strictNumbers)),TO(e,f),t.length===1&&t[0]===f.type&&n&&(i.else(),(0,Qg.reportTypeError)(e)),i.endIf()):TO(e,f),a||i.if((0,Je._)`${ft.default.errors} === ${r||0}`))}}function TO(e,t){const{gen:n,schema:r,opts:{useDefaults:i}}=e;i&&(0,afe.assignDefaults)(e,t.type),n.block(()=>{for(const s of t.rules)(0,zT.shouldUseRule)(r,s)&&VF(e,s.keyword,s.definition,t.type)})}function wfe(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(Tfe(e,t),e.opts.allowUnionTypes||Sfe(e,t),kfe(e,e.dataTypes))}function Tfe(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(n=>{HF(e.dataTypes,n)||KT(e,`type "${n}" not allowed by context "${e.dataTypes.join(",")}"`)}),xfe(e,t)}}function Sfe(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&KT(e,"use allowUnionTypes to allow union type keyword")}function kfe(e,t){const n=e.self.RULES.all;for(const r in n){const i=n[r];if(typeof i=="object"&&(0,zT.shouldUseRule)(e.schema,i)){const{type:s}=i.definition;s.length&&!s.some(o=>Afe(t,o))&&KT(e,`missing type "${s.join(",")}" for keyword "${r}"`)}}}function Afe(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function HF(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function xfe(e,t){const n=[];for(const r of e.dataTypes)HF(t,r)?n.push(r):t.includes("integer")&&r==="number"&&n.push("integer");e.dataTypes=n}function KT(e,t){const n=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${n}" (strictTypes)`,(0,lo.checkStrictMode)(e,t,e.opts.strictTypes)}class jF{constructor(t,n,r){if((0,Af.validateKeywordUsage)(t,n,r),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=r,this.data=t.data,this.schema=t.schema[r],this.$data=n.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,lo.schemaRefOrVal)(t,this.schema,r,this.$data),this.schemaType=n.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=n,this.$data)this.schemaCode=t.gen.const("vSchema",qF(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Af.validSchemaType)(this.schema,n.schemaType,n.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(n.schemaType)}`);("code"in n?n.trackErrors:n.errors!==!1)&&(this.errsCount=t.gen.const("_errs",ft.default.errors))}result(t,n,r){this.failResult((0,Je.not)(t),n,r)}failResult(t,n,r){this.gen.if(t),r?r():this.error(),n?(this.gen.else(),n(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,n){this.failResult((0,Je.not)(t),void 0,n)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);const{schemaCode:n}=this;this.fail((0,Je._)`${n} !== undefined && (${(0,Je.or)(this.invalid$data(),t)})`)}error(t,n,r){if(n){this.setParams(n),this._error(t,r),this.setParams({});return}this._error(t,r)}_error(t,n){(t?Ud.reportExtraError:Ud.reportError)(this,this.def.error,n)}$dataError(){(0,Ud.reportError)(this,this.def.$dataError||Ud.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Ud.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,n){n?Object.assign(this.params,t):this.params=t}block$data(t,n,r=Je.nil){this.gen.block(()=>{this.check$data(t,r),n()})}check$data(t=Je.nil,n=Je.nil){if(!this.$data)return;const{gen:r,schemaCode:i,schemaType:s,def:o}=this;r.if((0,Je.or)((0,Je._)`${i} === undefined`,n)),t!==Je.nil&&r.assign(t,!0),(s.length||o.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),t!==Je.nil&&r.assign(t,!1)),r.else()}invalid$data(){const{gen:t,schemaCode:n,schemaType:r,def:i,it:s}=this;return(0,Je.or)(o(),a());function o(){if(r.length){if(!(n instanceof Je.Name))throw new Error("ajv implementation error");const l=Array.isArray(r)?r:[r];return(0,Je._)`${(0,Qg.checkDataTypes)(l,n,s.opts.strictNumbers,Qg.DataType.Wrong)}`}return Je.nil}function a(){if(i.validateSchema){const l=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,Je._)`!${l}(${n})`}return Je.nil}}subschema(t,n){const r=(0,Sv.getSubschema)(this.it,t);(0,Sv.extendSubschemaData)(r,this.it,t),(0,Sv.extendSubschemaMode)(r,t);const i={...this.it,...r,items:void 0,props:void 0};return pfe(i,n),i}mergeEvaluated(t,n){const{it:r,gen:i}=this;r.opts.unevaluated&&(r.props!==!0&&t.props!==void 0&&(r.props=lo.mergeEvaluated.props(i,t.props,r.props,n)),r.items!==!0&&t.items!==void 0&&(r.items=lo.mergeEvaluated.items(i,t.items,r.items,n)))}mergeValidEvaluated(t,n){const{it:r,gen:i}=this;if(r.opts.unevaluated&&(r.props!==!0||r.items!==!0))return i.if(n,()=>this.mergeEvaluated(t,Je.Name)),!0}}Ci.KeywordCxt=jF;function VF(e,t,n,r){const i=new jF(e,n,t);"code"in n?n.code(i,r):i.$data&&n.validate?(0,Af.funcKeywordCode)(i,n):"macro"in n?(0,Af.macroKeywordCode)(i,n):(n.compile||n.validate)&&(0,Af.funcKeywordCode)(i,n)}const Nfe=/^\/(?:[^~]|~0|~1)*$/,Cfe=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function qF(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let i,s;if(e==="")return ft.default.rootData;if(e[0]==="/"){if(!Nfe.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,s=ft.default.rootData}else{const c=Cfe.exec(e);if(!c)throw new Error(`Invalid JSON-pointer: ${e}`);const u=+c[1];if(i=c[2],i==="#"){if(u>=t)throw new Error(l("property/index",u));return r[t-u]}if(u>t)throw new Error(l("data",u));if(s=n[t-u],!i)return s}let o=s;const a=i.split("/");for(const c of a)c&&(s=(0,Je._)`${s}${(0,Je.getProperty)((0,lo.unescapeJsonPointer)(c))}`,o=(0,Je._)`${o} && ${s}`);return o;function l(c,u){return`Cannot access ${c} ${u} levels up, current level is ${t}`}}Ci.getData=qF;var Yu={};Object.defineProperty(Yu,"__esModule",{value:!0});class Ofe extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}Yu.default=Ofe;var Xu={};Object.defineProperty(Xu,"__esModule",{value:!0});const kv=rr;class Dfe extends Error{constructor(t,n,r,i){super(i||`can't resolve reference ${r} from id ${n}`),this.missingRef=(0,kv.resolveUrl)(t,n,r),this.missingSchema=(0,kv.normalizeId)((0,kv.getFullPath)(t,this.missingRef))}}Xu.default=Dfe;var Rr={};Object.defineProperty(Rr,"__esModule",{value:!0});Rr.resolveSchema=Rr.getCompilingSchema=Rr.resolveRef=Rr.compileSchema=Rr.SchemaEnv=void 0;const Fi=ht,Ife=Yu,el=pi,Wi=rr,SO=Ot,Rfe=Ci;class xb{constructor(t){var n;this.refs={},this.dynamicAnchors={};let r;typeof t.schema=="object"&&(r=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(n=t.baseId)!==null&&n!==void 0?n:(0,Wi.normalizeId)(r==null?void 0:r[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=r==null?void 0:r.$async,this.refs={}}}Rr.SchemaEnv=xb;function WT(e){const t=zF.call(this,e);if(t)return t;const n=(0,Wi.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:r,lines:i}=this.opts.code,{ownProperties:s}=this.opts,o=new Fi.CodeGen(this.scope,{es5:r,lines:i,ownProperties:s});let a;e.$async&&(a=o.scopeValue("Error",{ref:Ife.default,code:(0,Fi._)`require("ajv/dist/runtime/validation_error").default`}));const l=o.scopeName("validate");e.validateName=l;const c={gen:o,allErrors:this.opts.allErrors,data:el.default.data,parentData:el.default.parentData,parentDataProperty:el.default.parentDataProperty,dataNames:[el.default.data],dataPathArr:[Fi.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:o.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Fi.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:Fi.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Fi._)`""`,opts:this.opts,self:this};let u;try{this._compilations.add(e),(0,Rfe.validateFunctionCode)(c),o.optimize(this.opts.code.optimize);const d=o.toString();u=`${o.scopeRefs(el.default.scope)}return ${d}`,this.opts.code.process&&(u=this.opts.code.process(u,e));const f=new Function(`${el.default.self}`,`${el.default.scope}`,u)(this,this.scope.get());if(this.scope.value(l,{ref:f}),f.errors=null,f.schema=e.schema,f.schemaEnv=e,e.$async&&(f.$async=!0),this.opts.code.source===!0&&(f.source={validateName:l,validateCode:d,scopeValues:o._values}),this.opts.unevaluated){const{props:h,items:p}=c;f.evaluated={props:h instanceof Fi.Name?void 0:h,items:p instanceof Fi.Name?void 0:p,dynamicProps:h instanceof Fi.Name,dynamicItems:p instanceof Fi.Name},f.source&&(f.source.evaluated=(0,Fi.stringify)(f.evaluated))}return e.validate=f,e}catch(d){throw delete e.validate,delete e.validateName,u&&this.logger.error("Error compiling schema, function code:",u),d}finally{this._compilations.delete(e)}}Rr.compileSchema=WT;function Pfe(e,t,n){var r;n=(0,Wi.resolveUrl)(this.opts.uriResolver,t,n);const i=e.refs[n];if(i)return i;let s=$fe.call(this,e,n);if(s===void 0){const o=(r=e.localRefs)===null||r===void 0?void 0:r[n],{schemaId:a}=this.opts;o&&(s=new xb({schema:o,schemaId:a,root:e,baseId:t}))}if(s!==void 0)return e.refs[n]=Lfe.call(this,s)}Rr.resolveRef=Pfe;function Lfe(e){return(0,Wi.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:WT.call(this,e)}function zF(e){for(const t of this._compilations)if(Mfe(t,e))return t}Rr.getCompilingSchema=zF;function Mfe(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function $fe(e,t){let n;for(;typeof(n=this.refs[t])=="string";)t=n;return n||this.schemas[t]||Nb.call(this,e,t)}function Nb(e,t){const n=this.opts.uriResolver.parse(t),r=(0,Wi._getFullPath)(this.opts.uriResolver,n);let i=(0,Wi.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===i)return Av.call(this,n,e);const s=(0,Wi.normalizeId)(r),o=this.refs[s]||this.schemas[s];if(typeof o=="string"){const a=Nb.call(this,e,o);return typeof(a==null?void 0:a.schema)!="object"?void 0:Av.call(this,n,a)}if(typeof(o==null?void 0:o.schema)=="object"){if(o.validate||WT.call(this,o),s===(0,Wi.normalizeId)(t)){const{schema:a}=o,{schemaId:l}=this.opts,c=a[l];return c&&(i=(0,Wi.resolveUrl)(this.opts.uriResolver,i,c)),new xb({schema:a,schemaId:l,root:e,baseId:i})}return Av.call(this,n,o)}}Rr.resolveSchema=Nb;const Ffe=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Av(e,{baseId:t,schema:n,root:r}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(const a of e.fragment.slice(1).split("/")){if(typeof n=="boolean")return;const l=n[(0,SO.unescapeFragment)(a)];if(l===void 0)return;n=l;const c=typeof n=="object"&&n[this.opts.schemaId];!Ffe.has(a)&&c&&(t=(0,Wi.resolveUrl)(this.opts.uriResolver,t,c))}let s;if(typeof n!="boolean"&&n.$ref&&!(0,SO.schemaHasRulesButRef)(n,this.RULES)){const a=(0,Wi.resolveUrl)(this.opts.uriResolver,t,n.$ref);s=Nb.call(this,r,a)}const{schemaId:o}=this.opts;if(s=s||new xb({schema:n,schemaId:o,root:r,baseId:t}),s.schema!==s.root.schema)return s}const Bfe="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",Ufe="Meta-schema for $data reference (JSON AnySchema extension proposal)",Hfe="object",jfe=["$data"],Vfe={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},qfe=!1,zfe={$id:Bfe,description:Ufe,type:Hfe,required:jfe,properties:Vfe,additionalProperties:qfe};var GT={},n_={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(e,t){(function(n,r){r(t)})(fde,function(n){function r(){for(var $=arguments.length,z=Array($),Y=0;Y<$;Y++)z[Y]=arguments[Y];if(z.length>1){z[0]=z[0].slice(0,-1);for(var I=z.length-1,K=1;K<I;++K)z[K]=z[K].slice(1,-1);return z[I]=z[I].slice(1),z.join("")}else return z[0]}function i($){return"(?:"+$+")"}function s($){return $===void 0?"undefined":$===null?"null":Object.prototype.toString.call($).split(" ").pop().split("]").shift().toLowerCase()}function o($){return $.toUpperCase()}function a($){return $!=null?$ instanceof Array?$:typeof $.length!="number"||$.split||$.setInterval||$.call?[$]:Array.prototype.slice.call($):[]}function l($,z){var Y=$;if(z)for(var I in z)Y[I]=z[I];return Y}function c($){var z="[A-Za-z]",Y="[0-9]",I=r(Y,"[A-Fa-f]"),K=i(i("%[EFef]"+I+"%"+I+I+"%"+I+I)+"|"+i("%[89A-Fa-f]"+I+"%"+I+I)+"|"+i("%"+I+I)),Ee="[\\:\\/\\?\\#\\[\\]\\@]",Re="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",Ye=r(Ee,Re),lt=$?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",Qe=$?"[\\uE000-\\uF8FF]":"[]",ze=r(z,Y,"[\\-\\.\\_\\~]",lt);i(z+r(z,Y,"[\\+\\-\\.]")+"*"),i(i(K+"|"+r(ze,Re,"[\\:]"))+"*");var yt=i(i("25[0-5]")+"|"+i("2[0-4]"+Y)+"|"+i("1"+Y+Y)+"|"+i("0?[1-9]"+Y)+"|0?0?"+Y),gt=i(yt+"\\."+yt+"\\."+yt+"\\."+yt),Ge=i(I+"{1,4}"),Ht=i(i(Ge+"\\:"+Ge)+"|"+gt),jt=i(i(Ge+"\\:")+"{6}"+Ht),kr=i("\\:\\:"+i(Ge+"\\:")+"{5}"+Ht),ur=i(i(Ge)+"?\\:\\:"+i(Ge+"\\:")+"{4}"+Ht),$i=i(i(i(Ge+"\\:")+"{0,1}"+Ge)+"?\\:\\:"+i(Ge+"\\:")+"{3}"+Ht),js=i(i(i(Ge+"\\:")+"{0,2}"+Ge)+"?\\:\\:"+i(Ge+"\\:")+"{2}"+Ht),za=i(i(i(Ge+"\\:")+"{0,3}"+Ge)+"?\\:\\:"+Ge+"\\:"+Ht),Ka=i(i(i(Ge+"\\:")+"{0,4}"+Ge)+"?\\:\\:"+Ht),gi=i(i(i(Ge+"\\:")+"{0,5}"+Ge)+"?\\:\\:"+Ge),Vs=i(i(i(Ge+"\\:")+"{0,6}"+Ge)+"?\\:\\:"),Wa=i([jt,kr,ur,$i,js,za,Ka,gi,Vs].join("|")),ls=i(i(ze+"|"+K)+"+");i("[vV]"+I+"+\\."+r(ze,Re,"[\\:]")+"+"),i(i(K+"|"+r(ze,Re))+"*");var gp=i(K+"|"+r(ze,Re,"[\\:\\@]"));return i(i(K+"|"+r(ze,Re,"[\\@]"))+"+"),i(i(gp+"|"+r("[\\/\\?]",Qe))+"*"),{NOT_SCHEME:new RegExp(r("[^]",z,Y,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(r("[^\\%\\:]",ze,Re),"g"),NOT_HOST:new RegExp(r("[^\\%\\[\\]\\:]",ze,Re),"g"),NOT_PATH:new RegExp(r("[^\\%\\/\\:\\@]",ze,Re),"g"),NOT_PATH_NOSCHEME:new RegExp(r("[^\\%\\/\\@]",ze,Re),"g"),NOT_QUERY:new RegExp(r("[^\\%]",ze,Re,"[\\:\\@\\/\\?]",Qe),"g"),NOT_FRAGMENT:new RegExp(r("[^\\%]",ze,Re,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(r("[^]",ze,Re),"g"),UNRESERVED:new RegExp(ze,"g"),OTHER_CHARS:new RegExp(r("[^\\%]",ze,Ye),"g"),PCT_ENCODED:new RegExp(K,"g"),IPV4ADDRESS:new RegExp("^("+gt+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Wa+")"+i(i("\\%25|\\%(?!"+I+"{2})")+"("+ls+")")+"?\\]?$")}}var u=c(!1),d=c(!0),f=function(){function $(z,Y){var I=[],K=!0,Ee=!1,Re=void 0;try{for(var Ye=z[Symbol.iterator](),lt;!(K=(lt=Ye.next()).done)&&(I.push(lt.value),!(Y&&I.length===Y));K=!0);}catch(Qe){Ee=!0,Re=Qe}finally{try{!K&&Ye.return&&Ye.return()}finally{if(Ee)throw Re}}return I}return function(z,Y){if(Array.isArray(z))return z;if(Symbol.iterator in Object(z))return $(z,Y);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function($){if(Array.isArray($)){for(var z=0,Y=Array($.length);z<$.length;z++)Y[z]=$[z];return Y}else return Array.from($)},p=2147483647,m=36,g=1,b=26,v=38,y=700,E=72,T=128,w="-",S=/^xn--/,k=/[^\0-\x7E]/,x=/[\x2E\u3002\uFF0E\uFF61]/g,A={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},M=m-g,R=Math.floor,te=String.fromCharCode;function ee($){throw new RangeError(A[$])}function oe($,z){for(var Y=[],I=$.length;I--;)Y[I]=z($[I]);return Y}function pe($,z){var Y=$.split("@"),I="";Y.length>1&&(I=Y[0]+"@",$=Y[1]),$=$.replace(x,".");var K=$.split("."),Ee=oe(K,z).join(".");return I+Ee}function G($){for(var z=[],Y=0,I=$.length;Y<I;){var K=$.charCodeAt(Y++);if(K>=55296&&K<=56319&&Y<I){var Ee=$.charCodeAt(Y++);(Ee&64512)==56320?z.push(((K&1023)<<10)+(Ee&1023)+65536):(z.push(K),Y--)}else z.push(K)}return z}var Q=function($){return String.fromCodePoint.apply(String,h($))},fe=function($){return $-48<10?$-22:$-65<26?$-65:$-97<26?$-97:m},O=function($,z){return $+22+75*($<26)-((z!=0)<<5)},B=function($,z,Y){var I=0;for($=Y?R($/y):$>>1,$+=R($/z);$>M*b>>1;I+=m)$=R($/M);return R(I+(M+1)*$/($+v))},J=function($){var z=[],Y=$.length,I=0,K=T,Ee=E,Re=$.lastIndexOf(w);Re<0&&(Re=0);for(var Ye=0;Ye<Re;++Ye)$.charCodeAt(Ye)>=128&&ee("not-basic"),z.push($.charCodeAt(Ye));for(var lt=Re>0?Re+1:0;lt<Y;){for(var Qe=I,ze=1,yt=m;;yt+=m){lt>=Y&&ee("invalid-input");var gt=fe($.charCodeAt(lt++));(gt>=m||gt>R((p-I)/ze))&&ee("overflow"),I+=gt*ze;var Ge=yt<=Ee?g:yt>=Ee+b?b:yt-Ee;if(gt<Ge)break;var Ht=m-Ge;ze>R(p/Ht)&&ee("overflow"),ze*=Ht}var jt=z.length+1;Ee=B(I-Qe,jt,Qe==0),R(I/jt)>p-K&&ee("overflow"),K+=R(I/jt),I%=jt,z.splice(I++,0,K)}return String.fromCodePoint.apply(String,z)},N=function($){var z=[];$=G($);var Y=$.length,I=T,K=0,Ee=E,Re=!0,Ye=!1,lt=void 0;try{for(var Qe=$[Symbol.iterator](),ze;!(Re=(ze=Qe.next()).done);Re=!0){var yt=ze.value;yt<128&&z.push(te(yt))}}catch(bd){Ye=!0,lt=bd}finally{try{!Re&&Qe.return&&Qe.return()}finally{if(Ye)throw lt}}var gt=z.length,Ge=gt;for(gt&&z.push(w);Ge<Y;){var Ht=p,jt=!0,kr=!1,ur=void 0;try{for(var $i=$[Symbol.iterator](),js;!(jt=(js=$i.next()).done);jt=!0){var za=js.value;za>=I&&za<Ht&&(Ht=za)}}catch(bd){kr=!0,ur=bd}finally{try{!jt&&$i.return&&$i.return()}finally{if(kr)throw ur}}var Ka=Ge+1;Ht-I>R((p-K)/Ka)&&ee("overflow"),K+=(Ht-I)*Ka,I=Ht;var gi=!0,Vs=!1,Wa=void 0;try{for(var ls=$[Symbol.iterator](),gp;!(gi=(gp=ls.next()).done);gi=!0){var kk=gp.value;if(kk<I&&++K>p&&ee("overflow"),kk==I){for(var bp=K,yp=m;;yp+=m){var vp=yp<=Ee?g:yp>=Ee+b?b:yp-Ee;if(bp<vp)break;var Ak=bp-vp,xk=m-vp;z.push(te(O(vp+Ak%xk,0))),bp=R(Ak/xk)}z.push(te(O(bp,0))),Ee=B(K,Ka,Ge==gt),K=0,++Ge}}}catch(bd){Vs=!0,Wa=bd}finally{try{!gi&&ls.return&&ls.return()}finally{if(Vs)throw Wa}}++K,++I}return z.join("")},P=function($){return pe($,function(z){return S.test(z)?J(z.slice(4).toLowerCase()):z})},H=function($){return pe($,function(z){return k.test(z)?"xn--"+N(z):z})},q={version:"2.1.0",ucs2:{decode:G,encode:Q},decode:J,encode:N,toASCII:H,toUnicode:P},ve={};function Ce($){var z=$.charCodeAt(0),Y=void 0;return z<16?Y="%0"+z.toString(16).toUpperCase():z<128?Y="%"+z.toString(16).toUpperCase():z<2048?Y="%"+(z>>6|192).toString(16).toUpperCase()+"%"+(z&63|128).toString(16).toUpperCase():Y="%"+(z>>12|224).toString(16).toUpperCase()+"%"+(z>>6&63|128).toString(16).toUpperCase()+"%"+(z&63|128).toString(16).toUpperCase(),Y}function We($){for(var z="",Y=0,I=$.length;Y<I;){var K=parseInt($.substr(Y+1,2),16);if(K<128)z+=String.fromCharCode(K),Y+=3;else if(K>=194&&K<224){if(I-Y>=6){var Ee=parseInt($.substr(Y+4,2),16);z+=String.fromCharCode((K&31)<<6|Ee&63)}else z+=$.substr(Y,6);Y+=6}else if(K>=224){if(I-Y>=9){var Re=parseInt($.substr(Y+4,2),16),Ye=parseInt($.substr(Y+7,2),16);z+=String.fromCharCode((K&15)<<12|(Re&63)<<6|Ye&63)}else z+=$.substr(Y,9);Y+=9}else z+=$.substr(Y,3),Y+=3}return z}function Ke($,z){function Y(I){var K=We(I);return K.match(z.UNRESERVED)?K:I}return $.scheme&&($.scheme=String($.scheme).replace(z.PCT_ENCODED,Y).toLowerCase().replace(z.NOT_SCHEME,"")),$.userinfo!==void 0&&($.userinfo=String($.userinfo).replace(z.PCT_ENCODED,Y).replace(z.NOT_USERINFO,Ce).replace(z.PCT_ENCODED,o)),$.host!==void 0&&($.host=String($.host).replace(z.PCT_ENCODED,Y).toLowerCase().replace(z.NOT_HOST,Ce).replace(z.PCT_ENCODED,o)),$.path!==void 0&&($.path=String($.path).replace(z.PCT_ENCODED,Y).replace($.scheme?z.NOT_PATH:z.NOT_PATH_NOSCHEME,Ce).replace(z.PCT_ENCODED,o)),$.query!==void 0&&($.query=String($.query).replace(z.PCT_ENCODED,Y).replace(z.NOT_QUERY,Ce).replace(z.PCT_ENCODED,o)),$.fragment!==void 0&&($.fragment=String($.fragment).replace(z.PCT_ENCODED,Y).replace(z.NOT_FRAGMENT,Ce).replace(z.PCT_ENCODED,o)),$}function rt($){return $.replace(/^0*(.*)/,"$1")||"0"}function tn($,z){var Y=$.match(z.IPV4ADDRESS)||[],I=f(Y,2),K=I[1];return K?K.split(".").map(rt).join("."):$}function ut($,z){var Y=$.match(z.IPV6ADDRESS)||[],I=f(Y,3),K=I[1],Ee=I[2];if(K){for(var Re=K.toLowerCase().split("::").reverse(),Ye=f(Re,2),lt=Ye[0],Qe=Ye[1],ze=Qe?Qe.split(":").map(rt):[],yt=lt.split(":").map(rt),gt=z.IPV4ADDRESS.test(yt[yt.length-1]),Ge=gt?7:8,Ht=yt.length-Ge,jt=Array(Ge),kr=0;kr<Ge;++kr)jt[kr]=ze[kr]||yt[Ht+kr]||"";gt&&(jt[Ge-1]=tn(jt[Ge-1],z));var ur=jt.reduce(function(gi,Vs,Wa){if(!Vs||Vs==="0"){var ls=gi[gi.length-1];ls&&ls.index+ls.length===Wa?ls.length++:gi.push({index:Wa,length:1})}return gi},[]),$i=ur.sort(function(gi,Vs){return Vs.length-gi.length})[0],js=void 0;if($i&&$i.length>1){var za=jt.slice(0,$i.index),Ka=jt.slice($i.index+$i.length);js=za.join(":")+"::"+Ka.join(":")}else js=jt.join(":");return Ee&&(js+="%"+Ee),js}else return $}var U=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,W="".match(/(){0}/)[1]===void 0;function se($){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y={},I=z.iri!==!1?d:u;z.reference==="suffix"&&($=(z.scheme?z.scheme+":":"")+"//"+$);var K=$.match(U);if(K){W?(Y.scheme=K[1],Y.userinfo=K[3],Y.host=K[4],Y.port=parseInt(K[5],10),Y.path=K[6]||"",Y.query=K[7],Y.fragment=K[8],isNaN(Y.port)&&(Y.port=K[5])):(Y.scheme=K[1]||void 0,Y.userinfo=$.indexOf("@")!==-1?K[3]:void 0,Y.host=$.indexOf("//")!==-1?K[4]:void 0,Y.port=parseInt(K[5],10),Y.path=K[6]||"",Y.query=$.indexOf("?")!==-1?K[7]:void 0,Y.fragment=$.indexOf("#")!==-1?K[8]:void 0,isNaN(Y.port)&&(Y.port=$.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?K[4]:void 0)),Y.host&&(Y.host=ut(tn(Y.host,I),I)),Y.scheme===void 0&&Y.userinfo===void 0&&Y.host===void 0&&Y.port===void 0&&!Y.path&&Y.query===void 0?Y.reference="same-document":Y.scheme===void 0?Y.reference="relative":Y.fragment===void 0?Y.reference="absolute":Y.reference="uri",z.reference&&z.reference!=="suffix"&&z.reference!==Y.reference&&(Y.error=Y.error||"URI is not a "+z.reference+" reference.");var Ee=ve[(z.scheme||Y.scheme||"").toLowerCase()];if(!z.unicodeSupport&&(!Ee||!Ee.unicodeSupport)){if(Y.host&&(z.domainHost||Ee&&Ee.domainHost))try{Y.host=q.toASCII(Y.host.replace(I.PCT_ENCODED,We).toLowerCase())}catch(Re){Y.error=Y.error||"Host's domain name can not be converted to ASCII via punycode: "+Re}Ke(Y,u)}else Ke(Y,I);Ee&&Ee.parse&&Ee.parse(Y,z)}else Y.error=Y.error||"URI can not be parsed.";return Y}function Ae($,z){var Y=z.iri!==!1?d:u,I=[];return $.userinfo!==void 0&&(I.push($.userinfo),I.push("@")),$.host!==void 0&&I.push(ut(tn(String($.host),Y),Y).replace(Y.IPV6ADDRESS,function(K,Ee,Re){return"["+Ee+(Re?"%25"+Re:"")+"]"})),(typeof $.port=="number"||typeof $.port=="string")&&(I.push(":"),I.push(String($.port))),I.length?I.join(""):void 0}var we=/^\.\.?\//,ce=/^\/\.(\/|$)/,Me=/^\/\.\.(\/|$)/,ke=/^\/?(?:.|\n)*?(?=\/|$)/;function ye($){for(var z=[];$.length;)if($.match(we))$=$.replace(we,"");else if($.match(ce))$=$.replace(ce,"/");else if($.match(Me))$=$.replace(Me,"/"),z.pop();else if($==="."||$==="..")$="";else{var Y=$.match(ke);if(Y){var I=Y[0];$=$.slice(I.length),z.push(I)}else throw new Error("Unexpected dot segment condition")}return z.join("")}function _e($){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=z.iri?d:u,I=[],K=ve[(z.scheme||$.scheme||"").toLowerCase()];if(K&&K.serialize&&K.serialize($,z),$.host&&!Y.IPV6ADDRESS.test($.host)&&(z.domainHost||K&&K.domainHost))try{$.host=z.iri?q.toUnicode($.host):q.toASCII($.host.replace(Y.PCT_ENCODED,We).toLowerCase())}catch(Ye){$.error=$.error||"Host's domain name can not be converted to "+(z.iri?"Unicode":"ASCII")+" via punycode: "+Ye}Ke($,Y),z.reference!=="suffix"&&$.scheme&&(I.push($.scheme),I.push(":"));var Ee=Ae($,z);if(Ee!==void 0&&(z.reference!=="suffix"&&I.push("//"),I.push(Ee),$.path&&$.path.charAt(0)!=="/"&&I.push("/")),$.path!==void 0){var Re=$.path;!z.absolutePath&&(!K||!K.absolutePath)&&(Re=ye(Re)),Ee===void 0&&(Re=Re.replace(/^\/\//,"/%2F")),I.push(Re)}return $.query!==void 0&&(I.push("?"),I.push($.query)),$.fragment!==void 0&&(I.push("#"),I.push($.fragment)),I.join("")}function Fe($,z){var Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},I=arguments[3],K={};return I||($=se(_e($,Y),Y),z=se(_e(z,Y),Y)),Y=Y||{},!Y.tolerant&&z.scheme?(K.scheme=z.scheme,K.userinfo=z.userinfo,K.host=z.host,K.port=z.port,K.path=ye(z.path||""),K.query=z.query):(z.userinfo!==void 0||z.host!==void 0||z.port!==void 0?(K.userinfo=z.userinfo,K.host=z.host,K.port=z.port,K.path=ye(z.path||""),K.query=z.query):(z.path?(z.path.charAt(0)==="/"?K.path=ye(z.path):(($.userinfo!==void 0||$.host!==void 0||$.port!==void 0)&&!$.path?K.path="/"+z.path:$.path?K.path=$.path.slice(0,$.path.lastIndexOf("/")+1)+z.path:K.path=z.path,K.path=ye(K.path)),K.query=z.query):(K.path=$.path,z.query!==void 0?K.query=z.query:K.query=$.query),K.userinfo=$.userinfo,K.host=$.host,K.port=$.port),K.scheme=$.scheme),K.fragment=z.fragment,K}function ne($,z,Y){var I=l({scheme:"null"},Y);return _e(Fe(se($,I),se(z,I),I,!0),I)}function le($,z){return typeof $=="string"?$=_e(se($,z),z):s($)==="object"&&($=se(_e($,z),z)),$}function re($,z,Y){return typeof $=="string"?$=_e(se($,Y),Y):s($)==="object"&&($=_e($,Y)),typeof z=="string"?z=_e(se(z,Y),Y):s(z)==="object"&&(z=_e(z,Y)),$===z}function ge($,z){return $&&$.toString().replace(!z||!z.iri?u.ESCAPE:d.ESCAPE,Ce)}function xe($,z){return $&&$.toString().replace(!z||!z.iri?u.PCT_ENCODED:d.PCT_ENCODED,We)}var Ve={scheme:"http",domainHost:!0,parse:function($,z){return $.host||($.error=$.error||"HTTP URIs must have a host."),$},serialize:function($,z){var Y=String($.scheme).toLowerCase()==="https";return($.port===(Y?443:80)||$.port==="")&&($.port=void 0),$.path||($.path="/"),$}},ot={scheme:"https",domainHost:Ve.domainHost,parse:Ve.parse,serialize:Ve.serialize};function Dt($){return typeof $.secure=="boolean"?$.secure:String($.scheme).toLowerCase()==="wss"}var mn={scheme:"ws",domainHost:!0,parse:function($,z){var Y=$;return Y.secure=Dt(Y),Y.resourceName=(Y.path||"/")+(Y.query?"?"+Y.query:""),Y.path=void 0,Y.query=void 0,Y},serialize:function($,z){if(($.port===(Dt($)?443:80)||$.port==="")&&($.port=void 0),typeof $.secure=="boolean"&&($.scheme=$.secure?"wss":"ws",$.secure=void 0),$.resourceName){var Y=$.resourceName.split("?"),I=f(Y,2),K=I[0],Ee=I[1];$.path=K&&K!=="/"?K:void 0,$.query=Ee,$.resourceName=void 0}return $.fragment=void 0,$}},Sr={scheme:"wss",domainHost:mn.domainHost,parse:mn.parse,serialize:mn.serialize},un={},Mr="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",St="[0-9A-Fa-f]",$r=i(i("%[EFef]"+St+"%"+St+St+"%"+St+St)+"|"+i("%[89A-Fa-f]"+St+"%"+St+St)+"|"+i("%"+St+St)),Oo="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",fp="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Do=r(fp,'[\\"\\\\]'),hd="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",pd=new RegExp(Mr,"g"),Hs=new RegExp($r,"g"),uy=new RegExp(r("[^]",Oo,"[\\.]",'[\\"]',Do),"g"),md=new RegExp(r("[^]",Mr,hd),"g"),dy=md;function pc($){var z=We($);return z.match(pd)?z:$}var gd={scheme:"mailto",parse:function($,z){var Y=$,I=Y.to=Y.path?Y.path.split(","):[];if(Y.path=void 0,Y.query){for(var K=!1,Ee={},Re=Y.query.split("&"),Ye=0,lt=Re.length;Ye<lt;++Ye){var Qe=Re[Ye].split("=");switch(Qe[0]){case"to":for(var ze=Qe[1].split(","),yt=0,gt=ze.length;yt<gt;++yt)I.push(ze[yt]);break;case"subject":Y.subject=xe(Qe[1],z);break;case"body":Y.body=xe(Qe[1],z);break;default:K=!0,Ee[xe(Qe[0],z)]=xe(Qe[1],z);break}}K&&(Y.headers=Ee)}Y.query=void 0;for(var Ge=0,Ht=I.length;Ge<Ht;++Ge){var jt=I[Ge].split("@");if(jt[0]=xe(jt[0]),z.unicodeSupport)jt[1]=xe(jt[1],z).toLowerCase();else try{jt[1]=q.toASCII(xe(jt[1],z).toLowerCase())}catch(kr){Y.error=Y.error||"Email address's domain name can not be converted to ASCII via punycode: "+kr}I[Ge]=jt.join("@")}return Y},serialize:function($,z){var Y=$,I=a($.to);if(I){for(var K=0,Ee=I.length;K<Ee;++K){var Re=String(I[K]),Ye=Re.lastIndexOf("@"),lt=Re.slice(0,Ye).replace(Hs,pc).replace(Hs,o).replace(uy,Ce),Qe=Re.slice(Ye+1);try{Qe=z.iri?q.toUnicode(Qe):q.toASCII(xe(Qe,z).toLowerCase())}catch(Ge){Y.error=Y.error||"Email address's domain name can not be converted to "+(z.iri?"Unicode":"ASCII")+" via punycode: "+Ge}I[K]=lt+"@"+Qe}Y.path=I.join(",")}var ze=$.headers=$.headers||{};$.subject&&(ze.subject=$.subject),$.body&&(ze.body=$.body);var yt=[];for(var gt in ze)ze[gt]!==un[gt]&&yt.push(gt.replace(Hs,pc).replace(Hs,o).replace(md,Ce)+"="+ze[gt].replace(Hs,pc).replace(Hs,o).replace(dy,Ce));return yt.length&&(Y.query=yt.join("&")),Y}},fy=/^([^\:]+)\:(.*)/,hp={scheme:"urn",parse:function($,z){var Y=$.path&&$.path.match(fy),I=$;if(Y){var K=z.scheme||I.scheme||"urn",Ee=Y[1].toLowerCase(),Re=Y[2],Ye=K+":"+(z.nid||Ee),lt=ve[Ye];I.nid=Ee,I.nss=Re,I.path=void 0,lt&&(I=lt.parse(I,z))}else I.error=I.error||"URN can not be parsed.";return I},serialize:function($,z){var Y=z.scheme||$.scheme||"urn",I=$.nid,K=Y+":"+(z.nid||I),Ee=ve[K];Ee&&($=Ee.serialize($,z));var Re=$,Ye=$.nss;return Re.path=(I||z.nid)+":"+Ye,Re}},pp=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,mp={scheme:"urn:uuid",parse:function($,z){var Y=$;return Y.uuid=Y.nss,Y.nss=void 0,!z.tolerant&&(!Y.uuid||!Y.uuid.match(pp))&&(Y.error=Y.error||"UUID is not valid."),Y},serialize:function($,z){var Y=$;return Y.nss=($.uuid||"").toLowerCase(),Y}};ve[Ve.scheme]=Ve,ve[ot.scheme]=ot,ve[mn.scheme]=mn,ve[Sr.scheme]=Sr,ve[gd.scheme]=gd,ve[hp.scheme]=hp,ve[mp.scheme]=mp,n.SCHEMES=ve,n.pctEncChar=Ce,n.pctDecChars=We,n.parse=se,n.removeDotSegments=ye,n.serialize=_e,n.resolveComponents=Fe,n.resolve=ne,n.normalize=le,n.equal=re,n.escapeComponent=ge,n.unescapeComponent=xe,Object.defineProperty(n,"__esModule",{value:!0})})})(n_,n_.exports);var Kfe=n_.exports;Object.defineProperty(GT,"__esModule",{value:!0});const KF=Kfe;KF.code='require("ajv/dist/runtime/uri").default';GT.default=KF;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=Ci;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var n=ht;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return n.CodeGen}});const r=Yu,i=Xu,s=Yl,o=Rr,a=ht,l=rr,c=Wh,u=Ot,d=zfe,f=GT,h=(O,B)=>new RegExp(O,B);h.code="new RegExp";const p=["removeAdditional","useDefaults","coerceTypes"],m=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),g={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},b={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},v=200;function y(O){var B,J,N,P,H,q,ve,Ce,We,Ke,rt,tn,ut,U,W,se,Ae,we,ce,Me,ke,ye,_e,Fe,ne;const le=O.strict,re=(B=O.code)===null||B===void 0?void 0:B.optimize,ge=re===!0||re===void 0?1:re||0,xe=(N=(J=O.code)===null||J===void 0?void 0:J.regExp)!==null&&N!==void 0?N:h,Ve=(P=O.uriResolver)!==null&&P!==void 0?P:f.default;return{strictSchema:(q=(H=O.strictSchema)!==null&&H!==void 0?H:le)!==null&&q!==void 0?q:!0,strictNumbers:(Ce=(ve=O.strictNumbers)!==null&&ve!==void 0?ve:le)!==null&&Ce!==void 0?Ce:!0,strictTypes:(Ke=(We=O.strictTypes)!==null&&We!==void 0?We:le)!==null&&Ke!==void 0?Ke:"log",strictTuples:(tn=(rt=O.strictTuples)!==null&&rt!==void 0?rt:le)!==null&&tn!==void 0?tn:"log",strictRequired:(U=(ut=O.strictRequired)!==null&&ut!==void 0?ut:le)!==null&&U!==void 0?U:!1,code:O.code?{...O.code,optimize:ge,regExp:xe}:{optimize:ge,regExp:xe},loopRequired:(W=O.loopRequired)!==null&&W!==void 0?W:v,loopEnum:(se=O.loopEnum)!==null&&se!==void 0?se:v,meta:(Ae=O.meta)!==null&&Ae!==void 0?Ae:!0,messages:(we=O.messages)!==null&&we!==void 0?we:!0,inlineRefs:(ce=O.inlineRefs)!==null&&ce!==void 0?ce:!0,schemaId:(Me=O.schemaId)!==null&&Me!==void 0?Me:"$id",addUsedSchema:(ke=O.addUsedSchema)!==null&&ke!==void 0?ke:!0,validateSchema:(ye=O.validateSchema)!==null&&ye!==void 0?ye:!0,validateFormats:(_e=O.validateFormats)!==null&&_e!==void 0?_e:!0,unicodeRegExp:(Fe=O.unicodeRegExp)!==null&&Fe!==void 0?Fe:!0,int32range:(ne=O.int32range)!==null&&ne!==void 0?ne:!0,uriResolver:Ve}}class E{constructor(B={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,B=this.opts={...B,...y(B)};const{es5:J,lines:N}=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:m,es5:J,lines:N}),this.logger=R(B.logger);const P=B.validateFormats;B.validateFormats=!1,this.RULES=(0,s.getRules)(),T.call(this,g,B,"NOT SUPPORTED"),T.call(this,b,B,"DEPRECATED","warn"),this._metaOpts=A.call(this),B.formats&&k.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),B.keywords&&x.call(this,B.keywords),typeof B.meta=="object"&&this.addMetaSchema(B.meta),S.call(this),B.validateFormats=P}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:B,meta:J,schemaId:N}=this.opts;let P=d;N==="id"&&(P={...d},P.id=P.$id,delete P.$id),J&&B&&this.addMetaSchema(P,P[N],!1)}defaultMeta(){const{meta:B,schemaId:J}=this.opts;return this.opts.defaultMeta=typeof B=="object"?B[J]||B:void 0}validate(B,J){let N;if(typeof B=="string"){if(N=this.getSchema(B),!N)throw new Error(`no schema with key or ref "${B}"`)}else N=this.compile(B);const P=N(J);return"$async"in N||(this.errors=N.errors),P}compile(B,J){const N=this._addSchema(B,J);return N.validate||this._compileSchemaEnv(N)}compileAsync(B,J){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:N}=this.opts;return P.call(this,B,J);async function P(Ke,rt){await H.call(this,Ke.$schema);const tn=this._addSchema(Ke,rt);return tn.validate||q.call(this,tn)}async function H(Ke){Ke&&!this.getSchema(Ke)&&await P.call(this,{$ref:Ke},!0)}async function q(Ke){try{return this._compileSchemaEnv(Ke)}catch(rt){if(!(rt instanceof i.default))throw rt;return ve.call(this,rt),await Ce.call(this,rt.missingSchema),q.call(this,Ke)}}function ve({missingSchema:Ke,missingRef:rt}){if(this.refs[Ke])throw new Error(`AnySchema ${Ke} is loaded but ${rt} cannot be resolved`)}async function Ce(Ke){const rt=await We.call(this,Ke);this.refs[Ke]||await H.call(this,rt.$schema),this.refs[Ke]||this.addSchema(rt,Ke,J)}async function We(Ke){const rt=this._loading[Ke];if(rt)return rt;try{return await(this._loading[Ke]=N(Ke))}finally{delete this._loading[Ke]}}}addSchema(B,J,N,P=this.opts.validateSchema){if(Array.isArray(B)){for(const q of B)this.addSchema(q,void 0,N,P);return this}let H;if(typeof B=="object"){const{schemaId:q}=this.opts;if(H=B[q],H!==void 0&&typeof H!="string")throw new Error(`schema ${q} must be string`)}return J=(0,l.normalizeId)(J||H),this._checkUnique(J),this.schemas[J]=this._addSchema(B,N,J,P,!0),this}addMetaSchema(B,J,N=this.opts.validateSchema){return this.addSchema(B,J,!0,N),this}validateSchema(B,J){if(typeof B=="boolean")return!0;let N;if(N=B.$schema,N!==void 0&&typeof N!="string")throw new Error("$schema must be a string");if(N=N||this.opts.defaultMeta||this.defaultMeta(),!N)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const P=this.validate(N,B);if(!P&&J){const H="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(H);else throw new Error(H)}return P}getSchema(B){let J;for(;typeof(J=w.call(this,B))=="string";)B=J;if(J===void 0){const{schemaId:N}=this.opts,P=new o.SchemaEnv({schema:{},schemaId:N});if(J=o.resolveSchema.call(this,P,B),!J)return;this.refs[B]=J}return J.validate||this._compileSchemaEnv(J)}removeSchema(B){if(B instanceof RegExp)return this._removeAllSchemas(this.schemas,B),this._removeAllSchemas(this.refs,B),this;switch(typeof B){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const J=w.call(this,B);return typeof J=="object"&&this._cache.delete(J.schema),delete this.schemas[B],delete this.refs[B],this}case"object":{const J=B;this._cache.delete(J);let N=B[this.opts.schemaId];return N&&(N=(0,l.normalizeId)(N),delete this.schemas[N],delete this.refs[N]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(B){for(const J of B)this.addKeyword(J);return this}addKeyword(B,J){let N;if(typeof B=="string")N=B,typeof J=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),J.keyword=N);else if(typeof B=="object"&&J===void 0){if(J=B,N=J.keyword,Array.isArray(N)&&!N.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(ee.call(this,N,J),!J)return(0,u.eachItem)(N,H=>oe.call(this,H)),this;G.call(this,J);const P={...J,type:(0,c.getJSONTypes)(J.type),schemaType:(0,c.getJSONTypes)(J.schemaType)};return(0,u.eachItem)(N,P.type.length===0?H=>oe.call(this,H,P):H=>P.type.forEach(q=>oe.call(this,H,P,q))),this}getKeyword(B){const J=this.RULES.all[B];return typeof J=="object"?J.definition:!!J}removeKeyword(B){const{RULES:J}=this;delete J.keywords[B],delete J.all[B];for(const N of J.rules){const P=N.rules.findIndex(H=>H.keyword===B);P>=0&&N.rules.splice(P,1)}return this}addFormat(B,J){return typeof J=="string"&&(J=new RegExp(J)),this.formats[B]=J,this}errorsText(B=this.errors,{separator:J=", ",dataVar:N="data"}={}){return!B||B.length===0?"No errors":B.map(P=>`${N}${P.instancePath} ${P.message}`).reduce((P,H)=>P+J+H)}$dataMetaSchema(B,J){const N=this.RULES.all;B=JSON.parse(JSON.stringify(B));for(const P of J){const H=P.split("/").slice(1);let q=B;for(const ve of H)q=q[ve];for(const ve in N){const Ce=N[ve];if(typeof Ce!="object")continue;const{$data:We}=Ce.definition,Ke=q[ve];We&&Ke&&(q[ve]=fe(Ke))}}return B}_removeAllSchemas(B,J){for(const N in B){const P=B[N];(!J||J.test(N))&&(typeof P=="string"?delete B[N]:P&&!P.meta&&(this._cache.delete(P.schema),delete B[N]))}}_addSchema(B,J,N,P=this.opts.validateSchema,H=this.opts.addUsedSchema){let q;const{schemaId:ve}=this.opts;if(typeof B=="object")q=B[ve];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof B!="boolean")throw new Error("schema must be object or boolean")}let Ce=this._cache.get(B);if(Ce!==void 0)return Ce;N=(0,l.normalizeId)(q||N);const We=l.getSchemaRefs.call(this,B,N);return Ce=new o.SchemaEnv({schema:B,schemaId:ve,meta:J,baseId:N,localRefs:We}),this._cache.set(Ce.schema,Ce),H&&!N.startsWith("#")&&(N&&this._checkUnique(N),this.refs[N]=Ce),P&&this.validateSchema(B,!0),Ce}_checkUnique(B){if(this.schemas[B]||this.refs[B])throw new Error(`schema with key or id "${B}" already exists`)}_compileSchemaEnv(B){if(B.meta?this._compileMetaSchema(B):o.compileSchema.call(this,B),!B.validate)throw new Error("ajv implementation error");return B.validate}_compileMetaSchema(B){const J=this.opts;this.opts=this._metaOpts;try{o.compileSchema.call(this,B)}finally{this.opts=J}}}e.default=E,E.ValidationError=r.default,E.MissingRefError=i.default;function T(O,B,J,N="error"){for(const P in O){const H=P;H in B&&this.logger[N](`${J}: option ${P}. ${O[H]}`)}}function w(O){return O=(0,l.normalizeId)(O),this.schemas[O]||this.refs[O]}function S(){const O=this.opts.schemas;if(O)if(Array.isArray(O))this.addSchema(O);else for(const B in O)this.addSchema(O[B],B)}function k(){for(const O in this.opts.formats){const B=this.opts.formats[O];B&&this.addFormat(O,B)}}function x(O){if(Array.isArray(O)){this.addVocabulary(O);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const B in O){const J=O[B];J.keyword||(J.keyword=B),this.addKeyword(J)}}function A(){const O={...this.opts};for(const B of p)delete O[B];return O}const M={log(){},warn(){},error(){}};function R(O){if(O===!1)return M;if(O===void 0)return console;if(O.log&&O.warn&&O.error)return O;throw new Error("logger must implement log, warn and error methods")}const te=/^[a-z_$][a-z0-9_$:-]*$/i;function ee(O,B){const{RULES:J}=this;if((0,u.eachItem)(O,N=>{if(J.keywords[N])throw new Error(`Keyword ${N} is already defined`);if(!te.test(N))throw new Error(`Keyword ${N} has invalid name`)}),!!B&&B.$data&&!("code"in B||"validate"in B))throw new Error('$data keyword must have "code" or "validate" function')}function oe(O,B,J){var N;const P=B==null?void 0:B.post;if(J&&P)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:H}=this;let q=P?H.post:H.rules.find(({type:Ce})=>Ce===J);if(q||(q={type:J,rules:[]},H.rules.push(q)),H.keywords[O]=!0,!B)return;const ve={keyword:O,definition:{...B,type:(0,c.getJSONTypes)(B.type),schemaType:(0,c.getJSONTypes)(B.schemaType)}};B.before?pe.call(this,q,ve,B.before):q.rules.push(ve),H.all[O]=ve,(N=B.implements)===null||N===void 0||N.forEach(Ce=>this.addKeyword(Ce))}function pe(O,B,J){const N=O.rules.findIndex(P=>P.keyword===J);N>=0?O.rules.splice(N,0,B):(O.rules.push(B),this.logger.warn(`rule ${J} is not defined`))}function G(O){let{metaSchema:B}=O;B!==void 0&&(O.$data&&this.opts.$data&&(B=fe(B)),O.validateSchema=this.compile(B,!0))}const Q={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function fe(O){return{anyOf:[O,Q]}}})(Ml);var YT={},Cb={},XT={};Object.defineProperty(XT,"__esModule",{value:!0});const Wfe={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};XT.default=Wfe;var $s={};Object.defineProperty($s,"__esModule",{value:!0});$s.callRef=$s.getValidate=void 0;const Gfe=Xu,kO=kt,Vr=ht,Ec=pi,AO=Rr,fm=Ot,Yfe={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:r}=e,{baseId:i,schemaEnv:s,validateName:o,opts:a,self:l}=r,{root:c}=s;if((n==="#"||n==="#/")&&i===c.baseId)return d();const u=AO.resolveRef.call(l,c,i,n);if(u===void 0)throw new Gfe.default(r.opts.uriResolver,i,n);if(u instanceof AO.SchemaEnv)return f(u);return h(u);function d(){if(s===c)return Xm(e,o,s,s.$async);const p=t.scopeValue("root",{ref:c});return Xm(e,(0,Vr._)`${p}.validate`,c,c.$async)}function f(p){const m=WF(e,p);Xm(e,m,p,p.$async)}function h(p){const m=t.scopeValue("schema",a.code.source===!0?{ref:p,code:(0,Vr.stringify)(p)}:{ref:p}),g=t.name("valid"),b=e.subschema({schema:p,dataTypes:[],schemaPath:Vr.nil,topSchemaRef:m,errSchemaPath:n},g);e.mergeEvaluated(b),e.ok(g)}}};function WF(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):(0,Vr._)`${n.scopeValue("wrapper",{ref:t})}.validate`}$s.getValidate=WF;function Xm(e,t,n,r){const{gen:i,it:s}=e,{allErrors:o,schemaEnv:a,opts:l}=s,c=l.passContext?Ec.default.this:Vr.nil;r?u():d();function u(){if(!a.$async)throw new Error("async schema referenced by sync schema");const p=i.let("valid");i.try(()=>{i.code((0,Vr._)`await ${(0,kO.callValidateCode)(e,t,c)}`),h(t),o||i.assign(p,!0)},m=>{i.if((0,Vr._)`!(${m} instanceof ${s.ValidationError})`,()=>i.throw(m)),f(m),o||i.assign(p,!1)}),e.ok(p)}function d(){e.result((0,kO.callValidateCode)(e,t,c),()=>h(t),()=>f(t))}function f(p){const m=(0,Vr._)`${p}.errors`;i.assign(Ec.default.vErrors,(0,Vr._)`${Ec.default.vErrors} === null ? ${m} : ${Ec.default.vErrors}.concat(${m})`),i.assign(Ec.default.errors,(0,Vr._)`${Ec.default.vErrors}.length`)}function h(p){var m;if(!s.opts.unevaluated)return;const g=(m=n==null?void 0:n.validate)===null||m===void 0?void 0:m.evaluated;if(s.props!==!0)if(g&&!g.dynamicProps)g.props!==void 0&&(s.props=fm.mergeEvaluated.props(i,g.props,s.props));else{const b=i.var("props",(0,Vr._)`${p}.evaluated.props`);s.props=fm.mergeEvaluated.props(i,b,s.props,Vr.Name)}if(s.items!==!0)if(g&&!g.dynamicItems)g.items!==void 0&&(s.items=fm.mergeEvaluated.items(i,g.items,s.items));else{const b=i.var("items",(0,Vr._)`${p}.evaluated.items`);s.items=fm.mergeEvaluated.items(i,b,s.items,Vr.Name)}}}$s.callRef=Xm;$s.default=Yfe;Object.defineProperty(Cb,"__esModule",{value:!0});const Xfe=XT,Qfe=$s,Jfe=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Xfe.default,Qfe.default];Cb.default=Jfe;var Ob={},QT={};Object.defineProperty(QT,"__esModule",{value:!0});const Jg=ht,Bo=Jg.operators,Zg={maximum:{okStr:"<=",ok:Bo.LTE,fail:Bo.GT},minimum:{okStr:">=",ok:Bo.GTE,fail:Bo.LT},exclusiveMaximum:{okStr:"<",ok:Bo.LT,fail:Bo.GTE},exclusiveMinimum:{okStr:">",ok:Bo.GT,fail:Bo.LTE}},Zfe={message:({keyword:e,schemaCode:t})=>(0,Jg.str)`must be ${Zg[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Jg._)`{comparison: ${Zg[e].okStr}, limit: ${t}}`},ehe={keyword:Object.keys(Zg),type:"number",schemaType:"number",$data:!0,error:Zfe,code(e){const{keyword:t,data:n,schemaCode:r}=e;e.fail$data((0,Jg._)`${n} ${Zg[t].fail} ${r} || isNaN(${n})`)}};QT.default=ehe;var Db={};Object.defineProperty(Db,"__esModule",{value:!0});const xf=ht,the={message:({schemaCode:e})=>(0,xf.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,xf._)`{multipleOf: ${e}}`},nhe={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:the,code(e){const{gen:t,data:n,schemaCode:r,it:i}=e,s=i.opts.multipleOfPrecision,o=t.let("res"),a=s?(0,xf._)`Math.abs(Math.round(${o}) - ${o}) > 1e-${s}`:(0,xf._)`${o} !== parseInt(${o})`;e.fail$data((0,xf._)`(${r} === 0 || (${o} = ${n}/${r}, ${a}))`)}};Db.default=nhe;var Ib={},JT={};Object.defineProperty(JT,"__esModule",{value:!0});function GF(e){const t=e.length;let n=0,r=0,i;for(;r<t;)n++,i=e.charCodeAt(r++),i>=55296&&i<=56319&&r<t&&(i=e.charCodeAt(r),(i&64512)===56320&&r++);return n}JT.default=GF;GF.code='require("ajv/dist/runtime/ucs2length").default';Object.defineProperty(Ib,"__esModule",{value:!0});const ll=ht,rhe=Ot,ihe=JT,she={message({keyword:e,schemaCode:t}){const n=e==="maxLength"?"more":"fewer";return(0,ll.str)`must NOT have ${n} than ${t} characters`},params:({schemaCode:e})=>(0,ll._)`{limit: ${e}}`},ohe={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:she,code(e){const{keyword:t,data:n,schemaCode:r,it:i}=e,s=t==="maxLength"?ll.operators.GT:ll.operators.LT,o=i.opts.unicode===!1?(0,ll._)`${n}.length`:(0,ll._)`${(0,rhe.useFunc)(e.gen,ihe.default)}(${n})`;e.fail$data((0,ll._)`${o} ${s} ${r}`)}};Ib.default=ohe;var Rb={};Object.defineProperty(Rb,"__esModule",{value:!0});const ahe=kt,e0=ht,lhe={message:({schemaCode:e})=>(0,e0.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,e0._)`{pattern: ${e}}`},che={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:lhe,code(e){const{data:t,$data:n,schema:r,schemaCode:i,it:s}=e,o=s.opts.unicodeRegExp?"u":"",a=n?(0,e0._)`(new RegExp(${i}, ${o}))`:(0,ahe.usePattern)(e,r);e.fail$data((0,e0._)`!${a}.test(${t})`)}};Rb.default=che;var Pb={};Object.defineProperty(Pb,"__esModule",{value:!0});const Nf=ht,uhe={message({keyword:e,schemaCode:t}){const n=e==="maxProperties"?"more":"fewer";return(0,Nf.str)`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>(0,Nf._)`{limit: ${e}}`},dhe={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:uhe,code(e){const{keyword:t,data:n,schemaCode:r}=e,i=t==="maxProperties"?Nf.operators.GT:Nf.operators.LT;e.fail$data((0,Nf._)`Object.keys(${n}).length ${i} ${r}`)}};Pb.default=dhe;var Lb={};Object.defineProperty(Lb,"__esModule",{value:!0});const Hd=kt,Cf=ht,fhe=Ot,hhe={message:({params:{missingProperty:e}})=>(0,Cf.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Cf._)`{missingProperty: ${e}}`},phe={keyword:"required",type:"object",schemaType:"array",$data:!0,error:hhe,code(e){const{gen:t,schema:n,schemaCode:r,data:i,$data:s,it:o}=e,{opts:a}=o;if(!s&&n.length===0)return;const l=n.length>=a.loopRequired;if(o.allErrors?c():u(),a.strictRequired){const h=e.parentSchema.properties,{definedProperties:p}=e.it;for(const m of n)if((h==null?void 0:h[m])===void 0&&!p.has(m)){const g=o.schemaEnv.baseId+o.errSchemaPath,b=`required property "${m}" is not defined at "${g}" (strictRequired)`;(0,fhe.checkStrictMode)(o,b,o.opts.strictRequired)}}function c(){if(l||s)e.block$data(Cf.nil,d);else for(const h of n)(0,Hd.checkReportMissingProp)(e,h)}function u(){const h=t.let("missing");if(l||s){const p=t.let("valid",!0);e.block$data(p,()=>f(h,p)),e.ok(p)}else t.if((0,Hd.checkMissingProp)(e,n,h)),(0,Hd.reportMissingProp)(e,h),t.else()}function d(){t.forOf("prop",r,h=>{e.setParams({missingProperty:h}),t.if((0,Hd.noPropertyInData)(t,i,h,a.ownProperties),()=>e.error())})}function f(h,p){e.setParams({missingProperty:h}),t.forOf(h,r,()=>{t.assign(p,(0,Hd.propertyInData)(t,i,h,a.ownProperties)),t.if((0,Cf.not)(p),()=>{e.error(),t.break()})},Cf.nil)}}};Lb.default=phe;var Mb={};Object.defineProperty(Mb,"__esModule",{value:!0});const Of=ht,mhe={message({keyword:e,schemaCode:t}){const n=e==="maxItems"?"more":"fewer";return(0,Of.str)`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>(0,Of._)`{limit: ${e}}`},ghe={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:mhe,code(e){const{keyword:t,data:n,schemaCode:r}=e,i=t==="maxItems"?Of.operators.GT:Of.operators.LT;e.fail$data((0,Of._)`${n}.length ${i} ${r}`)}};Mb.default=ghe;var $b={},Gh={};Object.defineProperty(Gh,"__esModule",{value:!0});const YF=CF;YF.code='require("ajv/dist/runtime/equal").default';Gh.default=YF;Object.defineProperty($b,"__esModule",{value:!0});const xv=Wh,Xn=ht,bhe=Ot,yhe=Gh,vhe={message:({params:{i:e,j:t}})=>(0,Xn.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Xn._)`{i: ${e}, j: ${t}}`},Ehe={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:vhe,code(e){const{gen:t,data:n,$data:r,schema:i,parentSchema:s,schemaCode:o,it:a}=e;if(!r&&!i)return;const l=t.let("valid"),c=s.items?(0,xv.getSchemaTypes)(s.items):[];e.block$data(l,u,(0,Xn._)`${o} === false`),e.ok(l);function u(){const p=t.let("i",(0,Xn._)`${n}.length`),m=t.let("j");e.setParams({i:p,j:m}),t.assign(l,!0),t.if((0,Xn._)`${p} > 1`,()=>(d()?f:h)(p,m))}function d(){return c.length>0&&!c.some(p=>p==="object"||p==="array")}function f(p,m){const g=t.name("item"),b=(0,xv.checkDataTypes)(c,g,a.opts.strictNumbers,xv.DataType.Wrong),v=t.const("indices",(0,Xn._)`{}`);t.for((0,Xn._)`;${p}--;`,()=>{t.let(g,(0,Xn._)`${n}[${p}]`),t.if(b,(0,Xn._)`continue`),c.length>1&&t.if((0,Xn._)`typeof ${g} == "string"`,(0,Xn._)`${g} += "_"`),t.if((0,Xn._)`typeof ${v}[${g}] == "number"`,()=>{t.assign(m,(0,Xn._)`${v}[${g}]`),e.error(),t.assign(l,!1).break()}).code((0,Xn._)`${v}[${g}] = ${p}`)})}function h(p,m){const g=(0,bhe.useFunc)(t,yhe.default),b=t.name("outer");t.label(b).for((0,Xn._)`;${p}--;`,()=>t.for((0,Xn._)`${m} = ${p}; ${m}--;`,()=>t.if((0,Xn._)`${g}(${n}[${p}], ${n}[${m}])`,()=>{e.error(),t.assign(l,!1).break(b)})))}}};$b.default=Ehe;var Fb={};Object.defineProperty(Fb,"__esModule",{value:!0});const r_=ht,_he=Ot,whe=Gh,The={message:"must be equal to constant",params:({schemaCode:e})=>(0,r_._)`{allowedValue: ${e}}`},She={keyword:"const",$data:!0,error:The,code(e){const{gen:t,data:n,$data:r,schemaCode:i,schema:s}=e;r||s&&typeof s=="object"?e.fail$data((0,r_._)`!${(0,_he.useFunc)(t,whe.default)}(${n}, ${i})`):e.fail((0,r_._)`${s} !== ${n}`)}};Fb.default=She;var Bb={};Object.defineProperty(Bb,"__esModule",{value:!0});const Zd=ht,khe=Ot,Ahe=Gh,xhe={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Zd._)`{allowedValues: ${e}}`},Nhe={keyword:"enum",schemaType:"array",$data:!0,error:xhe,code(e){const{gen:t,data:n,$data:r,schema:i,schemaCode:s,it:o}=e;if(!r&&i.length===0)throw new Error("enum must have non-empty array");const a=i.length>=o.opts.loopEnum;let l;const c=()=>l??(l=(0,khe.useFunc)(t,Ahe.default));let u;if(a||r)u=t.let("valid"),e.block$data(u,d);else{if(!Array.isArray(i))throw new Error("ajv implementation error");const h=t.const("vSchema",s);u=(0,Zd.or)(...i.map((p,m)=>f(h,m)))}e.pass(u);function d(){t.assign(u,!1),t.forOf("v",s,h=>t.if((0,Zd._)`${c()}(${n}, ${h})`,()=>t.assign(u,!0).break()))}function f(h,p){const m=i[p];return typeof m=="object"&&m!==null?(0,Zd._)`${c()}(${n}, ${h}[${p}])`:(0,Zd._)`${n} === ${m}`}}};Bb.default=Nhe;Object.defineProperty(Ob,"__esModule",{value:!0});const Che=QT,Ohe=Db,Dhe=Ib,Ihe=Rb,Rhe=Pb,Phe=Lb,Lhe=Mb,Mhe=$b,$he=Fb,Fhe=Bb,Bhe=[Che.default,Ohe.default,Dhe.default,Ihe.default,Rhe.default,Phe.default,Lhe.default,Mhe.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},$he.default,Fhe.default];Ob.default=Bhe;var Yh={},Qu={};Object.defineProperty(Qu,"__esModule",{value:!0});Qu.validateAdditionalItems=void 0;const cl=ht,i_=Ot,Uhe={message:({params:{len:e}})=>(0,cl.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,cl._)`{limit: ${e}}`},Hhe={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Uhe,code(e){const{parentSchema:t,it:n}=e,{items:r}=t;if(!Array.isArray(r)){(0,i_.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas');return}XF(e,r)}};function XF(e,t){const{gen:n,schema:r,data:i,keyword:s,it:o}=e;o.items=!0;const a=n.const("len",(0,cl._)`${i}.length`);if(r===!1)e.setParams({len:t.length}),e.pass((0,cl._)`${a} <= ${t.length}`);else if(typeof r=="object"&&!(0,i_.alwaysValidSchema)(o,r)){const c=n.var("valid",(0,cl._)`${a} <= ${t.length}`);n.if((0,cl.not)(c),()=>l(c)),e.ok(c)}function l(c){n.forRange("i",t.length,a,u=>{e.subschema({keyword:s,dataProp:u,dataPropType:i_.Type.Num},c),o.allErrors||n.if((0,cl.not)(c),()=>n.break())})}}Qu.validateAdditionalItems=XF;Qu.default=Hhe;var ZT={},Ju={};Object.defineProperty(Ju,"__esModule",{value:!0});Ju.validateTuple=void 0;const xO=ht,Qm=Ot,jhe=kt,Vhe={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return QF(e,"additionalItems",t);n.items=!0,!(0,Qm.alwaysValidSchema)(n,t)&&e.ok((0,jhe.validateArray)(e))}};function QF(e,t,n=e.schema){const{gen:r,parentSchema:i,data:s,keyword:o,it:a}=e;u(i),a.opts.unevaluated&&n.length&&a.items!==!0&&(a.items=Qm.mergeEvaluated.items(r,n.length,a.items));const l=r.name("valid"),c=r.const("len",(0,xO._)`${s}.length`);n.forEach((d,f)=>{(0,Qm.alwaysValidSchema)(a,d)||(r.if((0,xO._)`${c} > ${f}`,()=>e.subschema({keyword:o,schemaProp:f,dataProp:f},l)),e.ok(l))});function u(d){const{opts:f,errSchemaPath:h}=a,p=n.length,m=p===d.minItems&&(p===d.maxItems||d[t]===!1);if(f.strictTuples&&!m){const g=`"${o}" is ${p}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,Qm.checkStrictMode)(a,g,f.strictTuples)}}}Ju.validateTuple=QF;Ju.default=Vhe;Object.defineProperty(ZT,"__esModule",{value:!0});const qhe=Ju,zhe={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,qhe.validateTuple)(e,"items")};ZT.default=zhe;var eS={};Object.defineProperty(eS,"__esModule",{value:!0});const NO=ht,Khe=Ot,Whe=kt,Ghe=Qu,Yhe={message:({params:{len:e}})=>(0,NO.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,NO._)`{limit: ${e}}`},Xhe={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:Yhe,code(e){const{schema:t,parentSchema:n,it:r}=e,{prefixItems:i}=n;r.items=!0,!(0,Khe.alwaysValidSchema)(r,t)&&(i?(0,Ghe.validateAdditionalItems)(e,i):e.ok((0,Whe.validateArray)(e)))}};eS.default=Xhe;var tS={};Object.defineProperty(tS,"__esModule",{value:!0});const Ei=ht,hm=Ot,Qhe={message:({params:{min:e,max:t}})=>t===void 0?(0,Ei.str)`must contain at least ${e} valid item(s)`:(0,Ei.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,Ei._)`{minContains: ${e}}`:(0,Ei._)`{minContains: ${e}, maxContains: ${t}}`},Jhe={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:Qhe,code(e){const{gen:t,schema:n,parentSchema:r,data:i,it:s}=e;let o,a;const{minContains:l,maxContains:c}=r;s.opts.next?(o=l===void 0?1:l,a=c):o=1;const u=t.const("len",(0,Ei._)`${i}.length`);if(e.setParams({min:o,max:a}),a===void 0&&o===0){(0,hm.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&o>a){(0,hm.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,hm.alwaysValidSchema)(s,n)){let m=(0,Ei._)`${u} >= ${o}`;a!==void 0&&(m=(0,Ei._)`${m} && ${u} <= ${a}`),e.pass(m);return}s.items=!0;const d=t.name("valid");a===void 0&&o===1?h(d,()=>t.if(d,()=>t.break())):o===0?(t.let(d,!0),a!==void 0&&t.if((0,Ei._)`${i}.length > 0`,f)):(t.let(d,!1),f()),e.result(d,()=>e.reset());function f(){const m=t.name("_valid"),g=t.let("count",0);h(m,()=>t.if(m,()=>p(g)))}function h(m,g){t.forRange("i",0,u,b=>{e.subschema({keyword:"contains",dataProp:b,dataPropType:hm.Type.Num,compositeRule:!0},m),g()})}function p(m){t.code((0,Ei._)`${m}++`),a===void 0?t.if((0,Ei._)`${m} >= ${o}`,()=>t.assign(d,!0).break()):(t.if((0,Ei._)`${m} > ${a}`,()=>t.assign(d,!1).break()),o===1?t.assign(d,!0):t.if((0,Ei._)`${m} >= ${o}`,()=>t.assign(d,!0)))}}};tS.default=Jhe;var Ub={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=ht,n=Ot,r=kt;e.error={message:({params:{property:l,depsCount:c,deps:u}})=>{const d=c===1?"property":"properties";return(0,t.str)`must have ${d} ${u} when property ${l} is present`},params:({params:{property:l,depsCount:c,deps:u,missingProperty:d}})=>(0,t._)`{property: ${l},
228
+ || ${x} === "boolean" || ${S} === null`).assign(A,(0,i._)`[${S}]`)}}}function h({gen:y,parentData:E,parentDataProperty:T},w){y.if((0,i._)`${E} !== undefined`,()=>y.assign((0,i._)`${E}[${T}]`,w))}function p(y,E,T,w=o.Correct){const S=w===o.Correct?i.operators.EQ:i.operators.NEQ;let k;switch(y){case"null":return(0,i._)`${E} ${S} null`;case"array":k=(0,i._)`Array.isArray(${E})`;break;case"object":k=(0,i._)`${E} && typeof ${E} == "object" && !Array.isArray(${E})`;break;case"integer":k=x((0,i._)`!(${E} % 1) && !isNaN(${E})`);break;case"number":k=x();break;default:return(0,i._)`typeof ${E} ${S} ${y}`}return w===o.Correct?k:(0,i.not)(k);function x(A=i.nil){return(0,i.and)((0,i._)`typeof ${E} == "number"`,A,T?(0,i._)`isFinite(${E})`:i.nil)}}e.checkDataType=p;function m(y,E,T,w){if(y.length===1)return p(y[0],E,T,w);let S;const k=(0,s.toHash)(y);if(k.array&&k.object){const x=(0,i._)`typeof ${E} != "object"`;S=k.null?x:(0,i._)`!${E} || ${x}`,delete k.null,delete k.array,delete k.object}else S=i.nil;k.number&&delete k.integer;for(const x in k)S=(0,i.and)(S,p(x,E,T,w));return S}e.checkDataTypes=m;const g={message:({schema:y})=>`must be ${y}`,params:({schema:y,schemaValue:E})=>typeof y=="string"?(0,i._)`{type: ${y}}`:(0,i._)`{type: ${E}}`};function b(y){const E=v(y);(0,r.reportError)(E,g)}e.reportTypeError=b;function v(y){const{gen:E,data:T,schema:w}=y,S=(0,s.schemaRefOrVal)(y,w,"type");return{gen:E,keyword:"type",data:T,schema:w.type,schemaCode:S,schemaValue:S,parentSchema:w,params:{},it:y}}})(Wh);var Ab={};Object.defineProperty(Ab,"__esModule",{value:!0});Ab.assignDefaults=void 0;const vc=ht,Tde=Ot;function Sde(e,t){const{properties:n,items:r}=e.schema;if(t==="object"&&n)for(const i in n)yO(e,i,n[i].default);else t==="array"&&Array.isArray(r)&&r.forEach((i,s)=>yO(e,s,i.default))}Ab.assignDefaults=Sde;function yO(e,t,n){const{gen:r,compositeRule:i,data:s,opts:o}=e;if(n===void 0)return;const a=(0,vc._)`${s}${(0,vc.getProperty)(t)}`;if(i){(0,Tde.checkStrictMode)(e,`default is ignored for: ${a}`);return}let l=(0,vc._)`${a} === undefined`;o.useDefaults==="empty"&&(l=(0,vc._)`${l} || ${a} === null || ${a} === ""`),r.if(l,(0,vc._)`${a} = ${(0,vc.stringify)(n)}`)}var Ns={},kt={};Object.defineProperty(kt,"__esModule",{value:!0});kt.validateUnion=kt.validateArray=kt.usePattern=kt.callValidateCode=kt.schemaProperties=kt.allSchemaProperties=kt.noPropertyInData=kt.propertyInData=kt.isOwnProperty=kt.hasPropFunc=kt.reportMissingProp=kt.checkMissingProp=kt.checkReportMissingProp=void 0;const sn=ht,jT=Ot,Fo=pi,kde=Ot;function Ade(e,t){const{gen:n,data:r,it:i}=e;n.if(qT(n,r,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,sn._)`${t}`},!0),e.error()})}kt.checkReportMissingProp=Ade;function xde({gen:e,data:t,it:{opts:n}},r,i){return(0,sn.or)(...r.map(s=>(0,sn.and)(qT(e,t,s,n.ownProperties),(0,sn._)`${i} = ${s}`)))}kt.checkMissingProp=xde;function Nde(e,t){e.setParams({missingProperty:t},!0),e.error()}kt.reportMissingProp=Nde;function kF(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,sn._)`Object.prototype.hasOwnProperty`})}kt.hasPropFunc=kF;function VT(e,t,n){return(0,sn._)`${kF(e)}.call(${t}, ${n})`}kt.isOwnProperty=VT;function Cde(e,t,n,r){const i=(0,sn._)`${t}${(0,sn.getProperty)(n)} !== undefined`;return r?(0,sn._)`${i} && ${VT(e,t,n)}`:i}kt.propertyInData=Cde;function qT(e,t,n,r){const i=(0,sn._)`${t}${(0,sn.getProperty)(n)} === undefined`;return r?(0,sn.or)(i,(0,sn.not)(VT(e,t,n))):i}kt.noPropertyInData=qT;function AF(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}kt.allSchemaProperties=AF;function Ode(e,t){return AF(t).filter(n=>!(0,jT.alwaysValidSchema)(e,t[n]))}kt.schemaProperties=Ode;function Dde({schemaCode:e,data:t,it:{gen:n,topSchemaRef:r,schemaPath:i,errorPath:s},it:o},a,l,c){const u=c?(0,sn._)`${e}, ${t}, ${r}${i}`:t,d=[[Fo.default.instancePath,(0,sn.strConcat)(Fo.default.instancePath,s)],[Fo.default.parentData,o.parentData],[Fo.default.parentDataProperty,o.parentDataProperty],[Fo.default.rootData,Fo.default.rootData]];o.opts.dynamicRef&&d.push([Fo.default.dynamicAnchors,Fo.default.dynamicAnchors]);const f=(0,sn._)`${u}, ${n.object(...d)}`;return l!==sn.nil?(0,sn._)`${a}.call(${l}, ${f})`:(0,sn._)`${a}(${f})`}kt.callValidateCode=Dde;const Ide=(0,sn._)`new RegExp`;function Rde({gen:e,it:{opts:t}},n){const r=t.unicodeRegExp?"u":"",{regExp:i}=t.code,s=i(n,r);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,sn._)`${i.code==="new RegExp"?Ide:(0,kde.useFunc)(e,i)}(${n}, ${r})`})}kt.usePattern=Rde;function Pde(e){const{gen:t,data:n,keyword:r,it:i}=e,s=t.name("valid");if(i.allErrors){const a=t.let("valid",!0);return o(()=>t.assign(a,!1)),a}return t.var(s,!0),o(()=>t.break()),s;function o(a){const l=t.const("len",(0,sn._)`${n}.length`);t.forRange("i",0,l,c=>{e.subschema({keyword:r,dataProp:c,dataPropType:jT.Type.Num},s),t.if((0,sn.not)(s),a)})}}kt.validateArray=Pde;function Lde(e){const{gen:t,schema:n,keyword:r,it:i}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some(a=>(0,jT.alwaysValidSchema)(i,a))&&!i.opts.unevaluated)return;const s=t.let("valid",!1),o=t.name("_valid");t.block(()=>n.forEach((a,l)=>{const c=e.subschema({keyword:r,schemaProp:l,compositeRule:!0},o);t.assign(s,(0,sn._)`${s} || ${o}`),e.mergeValidEvaluated(c,o)||t.if((0,sn.not)(s))})),e.result(s,()=>e.reset(),()=>e.error(!0))}kt.validateUnion=Lde;Object.defineProperty(Ns,"__esModule",{value:!0});Ns.validateKeywordUsage=Ns.validSchemaType=Ns.funcKeywordCode=Ns.macroKeywordCode=void 0;const Cr=ht,al=pi,Mde=kt,$de=Kh;function Fde(e,t){const{gen:n,keyword:r,schema:i,parentSchema:s,it:o}=e,a=t.macro.call(o.self,i,s,o),l=xF(n,r,a);o.opts.validateSchema!==!1&&o.self.validateSchema(a,!0);const c=n.name("valid");e.subschema({schema:a,schemaPath:Cr.nil,errSchemaPath:`${o.errSchemaPath}/${r}`,topSchemaRef:l,compositeRule:!0},c),e.pass(c,()=>e.error(!0))}Ns.macroKeywordCode=Fde;function Bde(e,t){var n;const{gen:r,keyword:i,schema:s,parentSchema:o,$data:a,it:l}=e;Hde(l,t);const c=!a&&t.compile?t.compile.call(l.self,s,o,l):t.validate,u=xF(r,i,c),d=r.let("valid");e.block$data(d,f),e.ok((n=t.valid)!==null&&n!==void 0?n:d);function f(){if(t.errors===!1)m(),t.modifying&&vO(e),g(()=>e.error());else{const b=t.async?h():p();t.modifying&&vO(e),g(()=>Ude(e,b))}}function h(){const b=r.let("ruleErrs",null);return r.try(()=>m((0,Cr._)`await `),v=>r.assign(d,!1).if((0,Cr._)`${v} instanceof ${l.ValidationError}`,()=>r.assign(b,(0,Cr._)`${v}.errors`),()=>r.throw(v))),b}function p(){const b=(0,Cr._)`${u}.errors`;return r.assign(b,null),m(Cr.nil),b}function m(b=t.async?(0,Cr._)`await `:Cr.nil){const v=l.opts.passContext?al.default.this:al.default.self,y=!("compile"in t&&!a||t.schema===!1);r.assign(d,(0,Cr._)`${b}${(0,Mde.callValidateCode)(e,u,v,y)}`,t.modifying)}function g(b){var v;r.if((0,Cr.not)((v=t.valid)!==null&&v!==void 0?v:d),b)}}Ns.funcKeywordCode=Bde;function vO(e){const{gen:t,data:n,it:r}=e;t.if(r.parentData,()=>t.assign(n,(0,Cr._)`${r.parentData}[${r.parentDataProperty}]`))}function Ude(e,t){const{gen:n}=e;n.if((0,Cr._)`Array.isArray(${t})`,()=>{n.assign(al.default.vErrors,(0,Cr._)`${al.default.vErrors} === null ? ${t} : ${al.default.vErrors}.concat(${t})`).assign(al.default.errors,(0,Cr._)`${al.default.vErrors}.length`),(0,$de.extendErrors)(e)},()=>e.error())}function Hde({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function xF(e,t,n){if(n===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof n=="function"?{ref:n}:{ref:n,code:(0,Cr.stringify)(n)})}function jde(e,t,n=!1){return!t.length||t.some(r=>r==="array"?Array.isArray(e):r==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==r||n&&typeof e>"u")}Ns.validSchemaType=jde;function Vde({schema:e,opts:t,self:n,errSchemaPath:r},i,s){if(Array.isArray(i.keyword)?!i.keyword.includes(s):i.keyword!==s)throw new Error("ajv implementation error");const o=i.dependencies;if(o!=null&&o.some(a=>!Object.prototype.hasOwnProperty.call(e,a)))throw new Error(`parent schema must have dependencies of ${s}: ${o.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[s])){const a=`keyword "${s}" value is invalid at path "${r}": `+n.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")n.logger.error(a);else throw new Error(a)}}Ns.validateKeywordUsage=Vde;var wa={};Object.defineProperty(wa,"__esModule",{value:!0});wa.extendSubschemaMode=wa.extendSubschemaData=wa.getSubschema=void 0;const _s=ht,NF=Ot;function qde(e,{keyword:t,schemaProp:n,schema:r,schemaPath:i,errSchemaPath:s,topSchemaRef:o}){if(t!==void 0&&r!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const a=e.schema[t];return n===void 0?{schema:a,schemaPath:(0,_s._)`${e.schemaPath}${(0,_s.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[n],schemaPath:(0,_s._)`${e.schemaPath}${(0,_s.getProperty)(t)}${(0,_s.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,NF.escapeFragment)(n)}`}}if(r!==void 0){if(i===void 0||s===void 0||o===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:r,schemaPath:i,topSchemaRef:o,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}wa.getSubschema=qde;function zde(e,t,{dataProp:n,dataPropType:r,data:i,dataTypes:s,propertyName:o}){if(i!==void 0&&n!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:a}=t;if(n!==void 0){const{errorPath:c,dataPathArr:u,opts:d}=t,f=a.let("data",(0,_s._)`${t.data}${(0,_s.getProperty)(n)}`,!0);l(f),e.errorPath=(0,_s.str)`${c}${(0,NF.getErrorPath)(n,r,d.jsPropertySyntax)}`,e.parentDataProperty=(0,_s._)`${n}`,e.dataPathArr=[...u,e.parentDataProperty]}if(i!==void 0){const c=i instanceof _s.Name?i:a.let("data",i,!0);l(c),o!==void 0&&(e.propertyName=o)}s&&(e.dataTypes=s);function l(c){e.data=c,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,c]}}wa.extendSubschemaData=zde;function Kde(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:i,allErrors:s}){r!==void 0&&(e.compositeRule=r),i!==void 0&&(e.createErrors=i),s!==void 0&&(e.allErrors=s),e.jtdDiscriminator=t,e.jtdMetadata=n}wa.extendSubschemaMode=Kde;var rr={},CF=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,i,s;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(s=Object.keys(t),r=s.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,s[i]))return!1;for(i=r;i--!==0;){var o=s[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n},OF={exports:{}},da=OF.exports=function(e,t,n){typeof t=="function"&&(n=t,t={}),n=t.cb||n;var r=typeof n=="function"?n:n.pre||function(){},i=n.post||function(){};Ym(t,r,i,e,"",e)};da.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};da.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};da.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};da.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Ym(e,t,n,r,i,s,o,a,l,c){if(r&&typeof r=="object"&&!Array.isArray(r)){t(r,i,s,o,a,l,c);for(var u in r){var d=r[u];if(Array.isArray(d)){if(u in da.arrayKeywords)for(var f=0;f<d.length;f++)Ym(e,t,n,d[f],i+"/"+u+"/"+f,s,i,u,r,f)}else if(u in da.propsKeywords){if(d&&typeof d=="object")for(var h in d)Ym(e,t,n,d[h],i+"/"+u+"/"+Wde(h),s,i,u,r,h)}else(u in da.keywords||e.allKeys&&!(u in da.skipKeywords))&&Ym(e,t,n,d,i+"/"+u,s,i,u,r)}n(r,i,s,o,a,l,c)}}function Wde(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}var Gde=OF.exports;Object.defineProperty(rr,"__esModule",{value:!0});rr.getSchemaRefs=rr.resolveUrl=rr.normalizeId=rr._getFullPath=rr.getFullPath=rr.inlineRef=void 0;const Yde=Ot,Xde=CF,Qde=Gde,Jde=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Zde(e,t=!0){return typeof e=="boolean"?!0:t===!0?!t_(e):t?DF(e)<=t:!1}rr.inlineRef=Zde;const efe=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function t_(e){for(const t in e){if(efe.has(t))return!0;const n=e[t];if(Array.isArray(n)&&n.some(t_)||typeof n=="object"&&t_(n))return!0}return!1}function DF(e){let t=0;for(const n in e)if(n==="$ref"||(t++,!Jde.has(n)&&(typeof e[n]=="object"&&(0,Yde.eachItem)(e[n],r=>t+=DF(r)),t===1/0)))return 1/0;return t}function IF(e,t="",n){n!==!1&&(t=ru(t));const r=e.parse(t);return RF(e,r)}rr.getFullPath=IF;function RF(e,t){return e.serialize(t).split("#")[0]+"#"}rr._getFullPath=RF;const tfe=/#\/?$/;function ru(e){return e?e.replace(tfe,""):""}rr.normalizeId=ru;function nfe(e,t,n){return n=ru(n),e.resolve(t,n)}rr.resolveUrl=nfe;const rfe=/^[a-z_][-a-z0-9._]*$/i;function ife(e,t){if(typeof e=="boolean")return{};const{schemaId:n,uriResolver:r}=this.opts,i=ru(e[n]||t),s={"":i},o=IF(r,i,!1),a={},l=new Set;return Qde(e,{allKeys:!0},(d,f,h,p)=>{if(p===void 0)return;const m=o+f;let g=s[p];typeof d[n]=="string"&&(g=b.call(this,d[n])),v.call(this,d.$anchor),v.call(this,d.$dynamicAnchor),s[f]=g;function b(y){const E=this.opts.uriResolver.resolve;if(y=ru(g?E(g,y):y),l.has(y))throw u(y);l.add(y);let T=this.refs[y];return typeof T=="string"&&(T=this.refs[T]),typeof T=="object"?c(d,T.schema,y):y!==ru(m)&&(y[0]==="#"?(c(d,a[y],y),a[y]=d):this.refs[y]=m),y}function v(y){if(typeof y=="string"){if(!rfe.test(y))throw new Error(`invalid anchor "${y}"`);b.call(this,`#${y}`)}}}),a;function c(d,f,h){if(f!==void 0&&!Xde(d,f))throw u(h)}function u(d){return new Error(`reference "${d}" resolves to more than one schema`)}}rr.getSchemaRefs=ife;Object.defineProperty(Ci,"__esModule",{value:!0});Ci.getData=Ci.KeywordCxt=Ci.validateFunctionCode=void 0;const PF=wu,EO=Wh,zT=ao,Qg=Wh,sfe=Ab,Af=Ns,Sv=wa,Je=ht,ft=pi,ofe=rr,lo=Ot,Ud=Kh;function afe(e){if($F(e)&&(FF(e),MF(e))){ufe(e);return}LF(e,()=>(0,PF.topBoolOrEmptySchema)(e))}Ci.validateFunctionCode=afe;function LF({gen:e,validateName:t,schema:n,schemaEnv:r,opts:i},s){i.code.es5?e.func(t,(0,Je._)`${ft.default.data}, ${ft.default.valCxt}`,r.$async,()=>{e.code((0,Je._)`"use strict"; ${_O(n,i)}`),cfe(e,i),e.code(s)}):e.func(t,(0,Je._)`${ft.default.data}, ${lfe(i)}`,r.$async,()=>e.code(_O(n,i)).code(s))}function lfe(e){return(0,Je._)`{${ft.default.instancePath}="", ${ft.default.parentData}, ${ft.default.parentDataProperty}, ${ft.default.rootData}=${ft.default.data}${e.dynamicRef?(0,Je._)`, ${ft.default.dynamicAnchors}={}`:Je.nil}}={}`}function cfe(e,t){e.if(ft.default.valCxt,()=>{e.var(ft.default.instancePath,(0,Je._)`${ft.default.valCxt}.${ft.default.instancePath}`),e.var(ft.default.parentData,(0,Je._)`${ft.default.valCxt}.${ft.default.parentData}`),e.var(ft.default.parentDataProperty,(0,Je._)`${ft.default.valCxt}.${ft.default.parentDataProperty}`),e.var(ft.default.rootData,(0,Je._)`${ft.default.valCxt}.${ft.default.rootData}`),t.dynamicRef&&e.var(ft.default.dynamicAnchors,(0,Je._)`${ft.default.valCxt}.${ft.default.dynamicAnchors}`)},()=>{e.var(ft.default.instancePath,(0,Je._)`""`),e.var(ft.default.parentData,(0,Je._)`undefined`),e.var(ft.default.parentDataProperty,(0,Je._)`undefined`),e.var(ft.default.rootData,ft.default.data),t.dynamicRef&&e.var(ft.default.dynamicAnchors,(0,Je._)`{}`)})}function ufe(e){const{schema:t,opts:n,gen:r}=e;LF(e,()=>{n.$comment&&t.$comment&&UF(e),mfe(e),r.let(ft.default.vErrors,null),r.let(ft.default.errors,0),n.unevaluated&&dfe(e),BF(e),yfe(e)})}function dfe(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",(0,Je._)`${n}.evaluated`),t.if((0,Je._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,Je._)`${e.evaluated}.props`,(0,Je._)`undefined`)),t.if((0,Je._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,Je._)`${e.evaluated}.items`,(0,Je._)`undefined`))}function _O(e,t){const n=typeof e=="object"&&e[t.schemaId];return n&&(t.code.source||t.code.process)?(0,Je._)`/*# sourceURL=${n} */`:Je.nil}function ffe(e,t){if($F(e)&&(FF(e),MF(e))){hfe(e,t);return}(0,PF.boolOrEmptySchema)(e,t)}function MF({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function $F(e){return typeof e.schema!="boolean"}function hfe(e,t){const{schema:n,gen:r,opts:i}=e;i.$comment&&n.$comment&&UF(e),gfe(e),bfe(e);const s=r.const("_errs",ft.default.errors);BF(e,s),r.var(t,(0,Je._)`${s} === ${ft.default.errors}`)}function FF(e){(0,lo.checkUnknownRules)(e),pfe(e)}function BF(e,t){if(e.opts.jtd)return wO(e,[],!1,t);const n=(0,EO.getSchemaTypes)(e.schema),r=(0,EO.coerceAndCheckDataType)(e,n);wO(e,n,!r,t)}function pfe(e){const{schema:t,errSchemaPath:n,opts:r,self:i}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,lo.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}function mfe(e){const{schema:t,opts:n}=e;t.default!==void 0&&n.useDefaults&&n.strictSchema&&(0,lo.checkStrictMode)(e,"default is ignored in the schema root")}function gfe(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,ofe.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function bfe(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function UF({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:i}){const s=n.$comment;if(i.$comment===!0)e.code((0,Je._)`${ft.default.self}.logger.log(${s})`);else if(typeof i.$comment=="function"){const o=(0,Je.str)`${r}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,Je._)`${ft.default.self}.opts.$comment(${s}, ${o}, ${a}.schema)`)}}function yfe(e){const{gen:t,schemaEnv:n,validateName:r,ValidationError:i,opts:s}=e;n.$async?t.if((0,Je._)`${ft.default.errors} === 0`,()=>t.return(ft.default.data),()=>t.throw((0,Je._)`new ${i}(${ft.default.vErrors})`)):(t.assign((0,Je._)`${r}.errors`,ft.default.vErrors),s.unevaluated&&vfe(e),t.return((0,Je._)`${ft.default.errors} === 0`))}function vfe({gen:e,evaluated:t,props:n,items:r}){n instanceof Je.Name&&e.assign((0,Je._)`${t}.props`,n),r instanceof Je.Name&&e.assign((0,Je._)`${t}.items`,r)}function wO(e,t,n,r){const{gen:i,schema:s,data:o,allErrors:a,opts:l,self:c}=e,{RULES:u}=c;if(s.$ref&&(l.ignoreKeywordsWithRef||!(0,lo.schemaHasRulesButRef)(s,u))){i.block(()=>VF(e,"$ref",u.all.$ref.definition));return}l.jtd||Efe(e,t),i.block(()=>{for(const f of u.rules)d(f);d(u.post)});function d(f){(0,zT.shouldUseGroup)(s,f)&&(f.type?(i.if((0,Qg.checkDataType)(f.type,o,l.strictNumbers)),TO(e,f),t.length===1&&t[0]===f.type&&n&&(i.else(),(0,Qg.reportTypeError)(e)),i.endIf()):TO(e,f),a||i.if((0,Je._)`${ft.default.errors} === ${r||0}`))}}function TO(e,t){const{gen:n,schema:r,opts:{useDefaults:i}}=e;i&&(0,sfe.assignDefaults)(e,t.type),n.block(()=>{for(const s of t.rules)(0,zT.shouldUseRule)(r,s)&&VF(e,s.keyword,s.definition,t.type)})}function Efe(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(_fe(e,t),e.opts.allowUnionTypes||wfe(e,t),Tfe(e,e.dataTypes))}function _fe(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(n=>{HF(e.dataTypes,n)||KT(e,`type "${n}" not allowed by context "${e.dataTypes.join(",")}"`)}),kfe(e,t)}}function wfe(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&KT(e,"use allowUnionTypes to allow union type keyword")}function Tfe(e,t){const n=e.self.RULES.all;for(const r in n){const i=n[r];if(typeof i=="object"&&(0,zT.shouldUseRule)(e.schema,i)){const{type:s}=i.definition;s.length&&!s.some(o=>Sfe(t,o))&&KT(e,`missing type "${s.join(",")}" for keyword "${r}"`)}}}function Sfe(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function HF(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function kfe(e,t){const n=[];for(const r of e.dataTypes)HF(t,r)?n.push(r):t.includes("integer")&&r==="number"&&n.push("integer");e.dataTypes=n}function KT(e,t){const n=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${n}" (strictTypes)`,(0,lo.checkStrictMode)(e,t,e.opts.strictTypes)}class jF{constructor(t,n,r){if((0,Af.validateKeywordUsage)(t,n,r),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=r,this.data=t.data,this.schema=t.schema[r],this.$data=n.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,lo.schemaRefOrVal)(t,this.schema,r,this.$data),this.schemaType=n.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=n,this.$data)this.schemaCode=t.gen.const("vSchema",qF(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Af.validSchemaType)(this.schema,n.schemaType,n.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(n.schemaType)}`);("code"in n?n.trackErrors:n.errors!==!1)&&(this.errsCount=t.gen.const("_errs",ft.default.errors))}result(t,n,r){this.failResult((0,Je.not)(t),n,r)}failResult(t,n,r){this.gen.if(t),r?r():this.error(),n?(this.gen.else(),n(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,n){this.failResult((0,Je.not)(t),void 0,n)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);const{schemaCode:n}=this;this.fail((0,Je._)`${n} !== undefined && (${(0,Je.or)(this.invalid$data(),t)})`)}error(t,n,r){if(n){this.setParams(n),this._error(t,r),this.setParams({});return}this._error(t,r)}_error(t,n){(t?Ud.reportExtraError:Ud.reportError)(this,this.def.error,n)}$dataError(){(0,Ud.reportError)(this,this.def.$dataError||Ud.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Ud.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,n){n?Object.assign(this.params,t):this.params=t}block$data(t,n,r=Je.nil){this.gen.block(()=>{this.check$data(t,r),n()})}check$data(t=Je.nil,n=Je.nil){if(!this.$data)return;const{gen:r,schemaCode:i,schemaType:s,def:o}=this;r.if((0,Je.or)((0,Je._)`${i} === undefined`,n)),t!==Je.nil&&r.assign(t,!0),(s.length||o.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),t!==Je.nil&&r.assign(t,!1)),r.else()}invalid$data(){const{gen:t,schemaCode:n,schemaType:r,def:i,it:s}=this;return(0,Je.or)(o(),a());function o(){if(r.length){if(!(n instanceof Je.Name))throw new Error("ajv implementation error");const l=Array.isArray(r)?r:[r];return(0,Je._)`${(0,Qg.checkDataTypes)(l,n,s.opts.strictNumbers,Qg.DataType.Wrong)}`}return Je.nil}function a(){if(i.validateSchema){const l=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,Je._)`!${l}(${n})`}return Je.nil}}subschema(t,n){const r=(0,Sv.getSubschema)(this.it,t);(0,Sv.extendSubschemaData)(r,this.it,t),(0,Sv.extendSubschemaMode)(r,t);const i={...this.it,...r,items:void 0,props:void 0};return ffe(i,n),i}mergeEvaluated(t,n){const{it:r,gen:i}=this;r.opts.unevaluated&&(r.props!==!0&&t.props!==void 0&&(r.props=lo.mergeEvaluated.props(i,t.props,r.props,n)),r.items!==!0&&t.items!==void 0&&(r.items=lo.mergeEvaluated.items(i,t.items,r.items,n)))}mergeValidEvaluated(t,n){const{it:r,gen:i}=this;if(r.opts.unevaluated&&(r.props!==!0||r.items!==!0))return i.if(n,()=>this.mergeEvaluated(t,Je.Name)),!0}}Ci.KeywordCxt=jF;function VF(e,t,n,r){const i=new jF(e,n,t);"code"in n?n.code(i,r):i.$data&&n.validate?(0,Af.funcKeywordCode)(i,n):"macro"in n?(0,Af.macroKeywordCode)(i,n):(n.compile||n.validate)&&(0,Af.funcKeywordCode)(i,n)}const Afe=/^\/(?:[^~]|~0|~1)*$/,xfe=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function qF(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let i,s;if(e==="")return ft.default.rootData;if(e[0]==="/"){if(!Afe.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,s=ft.default.rootData}else{const c=xfe.exec(e);if(!c)throw new Error(`Invalid JSON-pointer: ${e}`);const u=+c[1];if(i=c[2],i==="#"){if(u>=t)throw new Error(l("property/index",u));return r[t-u]}if(u>t)throw new Error(l("data",u));if(s=n[t-u],!i)return s}let o=s;const a=i.split("/");for(const c of a)c&&(s=(0,Je._)`${s}${(0,Je.getProperty)((0,lo.unescapeJsonPointer)(c))}`,o=(0,Je._)`${o} && ${s}`);return o;function l(c,u){return`Cannot access ${c} ${u} levels up, current level is ${t}`}}Ci.getData=qF;var Yu={};Object.defineProperty(Yu,"__esModule",{value:!0});class Nfe extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}Yu.default=Nfe;var Xu={};Object.defineProperty(Xu,"__esModule",{value:!0});const kv=rr;class Cfe extends Error{constructor(t,n,r,i){super(i||`can't resolve reference ${r} from id ${n}`),this.missingRef=(0,kv.resolveUrl)(t,n,r),this.missingSchema=(0,kv.normalizeId)((0,kv.getFullPath)(t,this.missingRef))}}Xu.default=Cfe;var Rr={};Object.defineProperty(Rr,"__esModule",{value:!0});Rr.resolveSchema=Rr.getCompilingSchema=Rr.resolveRef=Rr.compileSchema=Rr.SchemaEnv=void 0;const Fi=ht,Ofe=Yu,el=pi,Wi=rr,SO=Ot,Dfe=Ci;class xb{constructor(t){var n;this.refs={},this.dynamicAnchors={};let r;typeof t.schema=="object"&&(r=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(n=t.baseId)!==null&&n!==void 0?n:(0,Wi.normalizeId)(r==null?void 0:r[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=r==null?void 0:r.$async,this.refs={}}}Rr.SchemaEnv=xb;function WT(e){const t=zF.call(this,e);if(t)return t;const n=(0,Wi.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:r,lines:i}=this.opts.code,{ownProperties:s}=this.opts,o=new Fi.CodeGen(this.scope,{es5:r,lines:i,ownProperties:s});let a;e.$async&&(a=o.scopeValue("Error",{ref:Ofe.default,code:(0,Fi._)`require("ajv/dist/runtime/validation_error").default`}));const l=o.scopeName("validate");e.validateName=l;const c={gen:o,allErrors:this.opts.allErrors,data:el.default.data,parentData:el.default.parentData,parentDataProperty:el.default.parentDataProperty,dataNames:[el.default.data],dataPathArr:[Fi.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:o.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Fi.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:Fi.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Fi._)`""`,opts:this.opts,self:this};let u;try{this._compilations.add(e),(0,Dfe.validateFunctionCode)(c),o.optimize(this.opts.code.optimize);const d=o.toString();u=`${o.scopeRefs(el.default.scope)}return ${d}`,this.opts.code.process&&(u=this.opts.code.process(u,e));const f=new Function(`${el.default.self}`,`${el.default.scope}`,u)(this,this.scope.get());if(this.scope.value(l,{ref:f}),f.errors=null,f.schema=e.schema,f.schemaEnv=e,e.$async&&(f.$async=!0),this.opts.code.source===!0&&(f.source={validateName:l,validateCode:d,scopeValues:o._values}),this.opts.unevaluated){const{props:h,items:p}=c;f.evaluated={props:h instanceof Fi.Name?void 0:h,items:p instanceof Fi.Name?void 0:p,dynamicProps:h instanceof Fi.Name,dynamicItems:p instanceof Fi.Name},f.source&&(f.source.evaluated=(0,Fi.stringify)(f.evaluated))}return e.validate=f,e}catch(d){throw delete e.validate,delete e.validateName,u&&this.logger.error("Error compiling schema, function code:",u),d}finally{this._compilations.delete(e)}}Rr.compileSchema=WT;function Ife(e,t,n){var r;n=(0,Wi.resolveUrl)(this.opts.uriResolver,t,n);const i=e.refs[n];if(i)return i;let s=Lfe.call(this,e,n);if(s===void 0){const o=(r=e.localRefs)===null||r===void 0?void 0:r[n],{schemaId:a}=this.opts;o&&(s=new xb({schema:o,schemaId:a,root:e,baseId:t}))}if(s!==void 0)return e.refs[n]=Rfe.call(this,s)}Rr.resolveRef=Ife;function Rfe(e){return(0,Wi.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:WT.call(this,e)}function zF(e){for(const t of this._compilations)if(Pfe(t,e))return t}Rr.getCompilingSchema=zF;function Pfe(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function Lfe(e,t){let n;for(;typeof(n=this.refs[t])=="string";)t=n;return n||this.schemas[t]||Nb.call(this,e,t)}function Nb(e,t){const n=this.opts.uriResolver.parse(t),r=(0,Wi._getFullPath)(this.opts.uriResolver,n);let i=(0,Wi.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===i)return Av.call(this,n,e);const s=(0,Wi.normalizeId)(r),o=this.refs[s]||this.schemas[s];if(typeof o=="string"){const a=Nb.call(this,e,o);return typeof(a==null?void 0:a.schema)!="object"?void 0:Av.call(this,n,a)}if(typeof(o==null?void 0:o.schema)=="object"){if(o.validate||WT.call(this,o),s===(0,Wi.normalizeId)(t)){const{schema:a}=o,{schemaId:l}=this.opts,c=a[l];return c&&(i=(0,Wi.resolveUrl)(this.opts.uriResolver,i,c)),new xb({schema:a,schemaId:l,root:e,baseId:i})}return Av.call(this,n,o)}}Rr.resolveSchema=Nb;const Mfe=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Av(e,{baseId:t,schema:n,root:r}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(const a of e.fragment.slice(1).split("/")){if(typeof n=="boolean")return;const l=n[(0,SO.unescapeFragment)(a)];if(l===void 0)return;n=l;const c=typeof n=="object"&&n[this.opts.schemaId];!Mfe.has(a)&&c&&(t=(0,Wi.resolveUrl)(this.opts.uriResolver,t,c))}let s;if(typeof n!="boolean"&&n.$ref&&!(0,SO.schemaHasRulesButRef)(n,this.RULES)){const a=(0,Wi.resolveUrl)(this.opts.uriResolver,t,n.$ref);s=Nb.call(this,r,a)}const{schemaId:o}=this.opts;if(s=s||new xb({schema:n,schemaId:o,root:r,baseId:t}),s.schema!==s.root.schema)return s}const $fe="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",Ffe="Meta-schema for $data reference (JSON AnySchema extension proposal)",Bfe="object",Ufe=["$data"],Hfe={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},jfe=!1,Vfe={$id:$fe,description:Ffe,type:Bfe,required:Ufe,properties:Hfe,additionalProperties:jfe};var GT={},n_={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(e,t){(function(n,r){r(t)})(ude,function(n){function r(){for(var $=arguments.length,z=Array($),Y=0;Y<$;Y++)z[Y]=arguments[Y];if(z.length>1){z[0]=z[0].slice(0,-1);for(var I=z.length-1,K=1;K<I;++K)z[K]=z[K].slice(1,-1);return z[I]=z[I].slice(1),z.join("")}else return z[0]}function i($){return"(?:"+$+")"}function s($){return $===void 0?"undefined":$===null?"null":Object.prototype.toString.call($).split(" ").pop().split("]").shift().toLowerCase()}function o($){return $.toUpperCase()}function a($){return $!=null?$ instanceof Array?$:typeof $.length!="number"||$.split||$.setInterval||$.call?[$]:Array.prototype.slice.call($):[]}function l($,z){var Y=$;if(z)for(var I in z)Y[I]=z[I];return Y}function c($){var z="[A-Za-z]",Y="[0-9]",I=r(Y,"[A-Fa-f]"),K=i(i("%[EFef]"+I+"%"+I+I+"%"+I+I)+"|"+i("%[89A-Fa-f]"+I+"%"+I+I)+"|"+i("%"+I+I)),Ee="[\\:\\/\\?\\#\\[\\]\\@]",Re="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",Ye=r(Ee,Re),lt=$?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",Qe=$?"[\\uE000-\\uF8FF]":"[]",ze=r(z,Y,"[\\-\\.\\_\\~]",lt);i(z+r(z,Y,"[\\+\\-\\.]")+"*"),i(i(K+"|"+r(ze,Re,"[\\:]"))+"*");var yt=i(i("25[0-5]")+"|"+i("2[0-4]"+Y)+"|"+i("1"+Y+Y)+"|"+i("0?[1-9]"+Y)+"|0?0?"+Y),gt=i(yt+"\\."+yt+"\\."+yt+"\\."+yt),Ge=i(I+"{1,4}"),Ht=i(i(Ge+"\\:"+Ge)+"|"+gt),jt=i(i(Ge+"\\:")+"{6}"+Ht),kr=i("\\:\\:"+i(Ge+"\\:")+"{5}"+Ht),ur=i(i(Ge)+"?\\:\\:"+i(Ge+"\\:")+"{4}"+Ht),$i=i(i(i(Ge+"\\:")+"{0,1}"+Ge)+"?\\:\\:"+i(Ge+"\\:")+"{3}"+Ht),js=i(i(i(Ge+"\\:")+"{0,2}"+Ge)+"?\\:\\:"+i(Ge+"\\:")+"{2}"+Ht),za=i(i(i(Ge+"\\:")+"{0,3}"+Ge)+"?\\:\\:"+Ge+"\\:"+Ht),Ka=i(i(i(Ge+"\\:")+"{0,4}"+Ge)+"?\\:\\:"+Ht),gi=i(i(i(Ge+"\\:")+"{0,5}"+Ge)+"?\\:\\:"+Ge),Vs=i(i(i(Ge+"\\:")+"{0,6}"+Ge)+"?\\:\\:"),Wa=i([jt,kr,ur,$i,js,za,Ka,gi,Vs].join("|")),ls=i(i(ze+"|"+K)+"+");i("[vV]"+I+"+\\."+r(ze,Re,"[\\:]")+"+"),i(i(K+"|"+r(ze,Re))+"*");var gp=i(K+"|"+r(ze,Re,"[\\:\\@]"));return i(i(K+"|"+r(ze,Re,"[\\@]"))+"+"),i(i(gp+"|"+r("[\\/\\?]",Qe))+"*"),{NOT_SCHEME:new RegExp(r("[^]",z,Y,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(r("[^\\%\\:]",ze,Re),"g"),NOT_HOST:new RegExp(r("[^\\%\\[\\]\\:]",ze,Re),"g"),NOT_PATH:new RegExp(r("[^\\%\\/\\:\\@]",ze,Re),"g"),NOT_PATH_NOSCHEME:new RegExp(r("[^\\%\\/\\@]",ze,Re),"g"),NOT_QUERY:new RegExp(r("[^\\%]",ze,Re,"[\\:\\@\\/\\?]",Qe),"g"),NOT_FRAGMENT:new RegExp(r("[^\\%]",ze,Re,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(r("[^]",ze,Re),"g"),UNRESERVED:new RegExp(ze,"g"),OTHER_CHARS:new RegExp(r("[^\\%]",ze,Ye),"g"),PCT_ENCODED:new RegExp(K,"g"),IPV4ADDRESS:new RegExp("^("+gt+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Wa+")"+i(i("\\%25|\\%(?!"+I+"{2})")+"("+ls+")")+"?\\]?$")}}var u=c(!1),d=c(!0),f=function(){function $(z,Y){var I=[],K=!0,Ee=!1,Re=void 0;try{for(var Ye=z[Symbol.iterator](),lt;!(K=(lt=Ye.next()).done)&&(I.push(lt.value),!(Y&&I.length===Y));K=!0);}catch(Qe){Ee=!0,Re=Qe}finally{try{!K&&Ye.return&&Ye.return()}finally{if(Ee)throw Re}}return I}return function(z,Y){if(Array.isArray(z))return z;if(Symbol.iterator in Object(z))return $(z,Y);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function($){if(Array.isArray($)){for(var z=0,Y=Array($.length);z<$.length;z++)Y[z]=$[z];return Y}else return Array.from($)},p=2147483647,m=36,g=1,b=26,v=38,y=700,E=72,T=128,w="-",S=/^xn--/,k=/[^\0-\x7E]/,x=/[\x2E\u3002\uFF0E\uFF61]/g,A={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},M=m-g,R=Math.floor,te=String.fromCharCode;function ee($){throw new RangeError(A[$])}function oe($,z){for(var Y=[],I=$.length;I--;)Y[I]=z($[I]);return Y}function pe($,z){var Y=$.split("@"),I="";Y.length>1&&(I=Y[0]+"@",$=Y[1]),$=$.replace(x,".");var K=$.split("."),Ee=oe(K,z).join(".");return I+Ee}function G($){for(var z=[],Y=0,I=$.length;Y<I;){var K=$.charCodeAt(Y++);if(K>=55296&&K<=56319&&Y<I){var Ee=$.charCodeAt(Y++);(Ee&64512)==56320?z.push(((K&1023)<<10)+(Ee&1023)+65536):(z.push(K),Y--)}else z.push(K)}return z}var Q=function($){return String.fromCodePoint.apply(String,h($))},fe=function($){return $-48<10?$-22:$-65<26?$-65:$-97<26?$-97:m},O=function($,z){return $+22+75*($<26)-((z!=0)<<5)},B=function($,z,Y){var I=0;for($=Y?R($/y):$>>1,$+=R($/z);$>M*b>>1;I+=m)$=R($/M);return R(I+(M+1)*$/($+v))},J=function($){var z=[],Y=$.length,I=0,K=T,Ee=E,Re=$.lastIndexOf(w);Re<0&&(Re=0);for(var Ye=0;Ye<Re;++Ye)$.charCodeAt(Ye)>=128&&ee("not-basic"),z.push($.charCodeAt(Ye));for(var lt=Re>0?Re+1:0;lt<Y;){for(var Qe=I,ze=1,yt=m;;yt+=m){lt>=Y&&ee("invalid-input");var gt=fe($.charCodeAt(lt++));(gt>=m||gt>R((p-I)/ze))&&ee("overflow"),I+=gt*ze;var Ge=yt<=Ee?g:yt>=Ee+b?b:yt-Ee;if(gt<Ge)break;var Ht=m-Ge;ze>R(p/Ht)&&ee("overflow"),ze*=Ht}var jt=z.length+1;Ee=B(I-Qe,jt,Qe==0),R(I/jt)>p-K&&ee("overflow"),K+=R(I/jt),I%=jt,z.splice(I++,0,K)}return String.fromCodePoint.apply(String,z)},N=function($){var z=[];$=G($);var Y=$.length,I=T,K=0,Ee=E,Re=!0,Ye=!1,lt=void 0;try{for(var Qe=$[Symbol.iterator](),ze;!(Re=(ze=Qe.next()).done);Re=!0){var yt=ze.value;yt<128&&z.push(te(yt))}}catch(bd){Ye=!0,lt=bd}finally{try{!Re&&Qe.return&&Qe.return()}finally{if(Ye)throw lt}}var gt=z.length,Ge=gt;for(gt&&z.push(w);Ge<Y;){var Ht=p,jt=!0,kr=!1,ur=void 0;try{for(var $i=$[Symbol.iterator](),js;!(jt=(js=$i.next()).done);jt=!0){var za=js.value;za>=I&&za<Ht&&(Ht=za)}}catch(bd){kr=!0,ur=bd}finally{try{!jt&&$i.return&&$i.return()}finally{if(kr)throw ur}}var Ka=Ge+1;Ht-I>R((p-K)/Ka)&&ee("overflow"),K+=(Ht-I)*Ka,I=Ht;var gi=!0,Vs=!1,Wa=void 0;try{for(var ls=$[Symbol.iterator](),gp;!(gi=(gp=ls.next()).done);gi=!0){var kk=gp.value;if(kk<I&&++K>p&&ee("overflow"),kk==I){for(var bp=K,yp=m;;yp+=m){var vp=yp<=Ee?g:yp>=Ee+b?b:yp-Ee;if(bp<vp)break;var Ak=bp-vp,xk=m-vp;z.push(te(O(vp+Ak%xk,0))),bp=R(Ak/xk)}z.push(te(O(bp,0))),Ee=B(K,Ka,Ge==gt),K=0,++Ge}}}catch(bd){Vs=!0,Wa=bd}finally{try{!gi&&ls.return&&ls.return()}finally{if(Vs)throw Wa}}++K,++I}return z.join("")},P=function($){return pe($,function(z){return S.test(z)?J(z.slice(4).toLowerCase()):z})},H=function($){return pe($,function(z){return k.test(z)?"xn--"+N(z):z})},q={version:"2.1.0",ucs2:{decode:G,encode:Q},decode:J,encode:N,toASCII:H,toUnicode:P},ve={};function Ce($){var z=$.charCodeAt(0),Y=void 0;return z<16?Y="%0"+z.toString(16).toUpperCase():z<128?Y="%"+z.toString(16).toUpperCase():z<2048?Y="%"+(z>>6|192).toString(16).toUpperCase()+"%"+(z&63|128).toString(16).toUpperCase():Y="%"+(z>>12|224).toString(16).toUpperCase()+"%"+(z>>6&63|128).toString(16).toUpperCase()+"%"+(z&63|128).toString(16).toUpperCase(),Y}function We($){for(var z="",Y=0,I=$.length;Y<I;){var K=parseInt($.substr(Y+1,2),16);if(K<128)z+=String.fromCharCode(K),Y+=3;else if(K>=194&&K<224){if(I-Y>=6){var Ee=parseInt($.substr(Y+4,2),16);z+=String.fromCharCode((K&31)<<6|Ee&63)}else z+=$.substr(Y,6);Y+=6}else if(K>=224){if(I-Y>=9){var Re=parseInt($.substr(Y+4,2),16),Ye=parseInt($.substr(Y+7,2),16);z+=String.fromCharCode((K&15)<<12|(Re&63)<<6|Ye&63)}else z+=$.substr(Y,9);Y+=9}else z+=$.substr(Y,3),Y+=3}return z}function Ke($,z){function Y(I){var K=We(I);return K.match(z.UNRESERVED)?K:I}return $.scheme&&($.scheme=String($.scheme).replace(z.PCT_ENCODED,Y).toLowerCase().replace(z.NOT_SCHEME,"")),$.userinfo!==void 0&&($.userinfo=String($.userinfo).replace(z.PCT_ENCODED,Y).replace(z.NOT_USERINFO,Ce).replace(z.PCT_ENCODED,o)),$.host!==void 0&&($.host=String($.host).replace(z.PCT_ENCODED,Y).toLowerCase().replace(z.NOT_HOST,Ce).replace(z.PCT_ENCODED,o)),$.path!==void 0&&($.path=String($.path).replace(z.PCT_ENCODED,Y).replace($.scheme?z.NOT_PATH:z.NOT_PATH_NOSCHEME,Ce).replace(z.PCT_ENCODED,o)),$.query!==void 0&&($.query=String($.query).replace(z.PCT_ENCODED,Y).replace(z.NOT_QUERY,Ce).replace(z.PCT_ENCODED,o)),$.fragment!==void 0&&($.fragment=String($.fragment).replace(z.PCT_ENCODED,Y).replace(z.NOT_FRAGMENT,Ce).replace(z.PCT_ENCODED,o)),$}function rt($){return $.replace(/^0*(.*)/,"$1")||"0"}function tn($,z){var Y=$.match(z.IPV4ADDRESS)||[],I=f(Y,2),K=I[1];return K?K.split(".").map(rt).join("."):$}function ut($,z){var Y=$.match(z.IPV6ADDRESS)||[],I=f(Y,3),K=I[1],Ee=I[2];if(K){for(var Re=K.toLowerCase().split("::").reverse(),Ye=f(Re,2),lt=Ye[0],Qe=Ye[1],ze=Qe?Qe.split(":").map(rt):[],yt=lt.split(":").map(rt),gt=z.IPV4ADDRESS.test(yt[yt.length-1]),Ge=gt?7:8,Ht=yt.length-Ge,jt=Array(Ge),kr=0;kr<Ge;++kr)jt[kr]=ze[kr]||yt[Ht+kr]||"";gt&&(jt[Ge-1]=tn(jt[Ge-1],z));var ur=jt.reduce(function(gi,Vs,Wa){if(!Vs||Vs==="0"){var ls=gi[gi.length-1];ls&&ls.index+ls.length===Wa?ls.length++:gi.push({index:Wa,length:1})}return gi},[]),$i=ur.sort(function(gi,Vs){return Vs.length-gi.length})[0],js=void 0;if($i&&$i.length>1){var za=jt.slice(0,$i.index),Ka=jt.slice($i.index+$i.length);js=za.join(":")+"::"+Ka.join(":")}else js=jt.join(":");return Ee&&(js+="%"+Ee),js}else return $}var U=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,W="".match(/(){0}/)[1]===void 0;function se($){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y={},I=z.iri!==!1?d:u;z.reference==="suffix"&&($=(z.scheme?z.scheme+":":"")+"//"+$);var K=$.match(U);if(K){W?(Y.scheme=K[1],Y.userinfo=K[3],Y.host=K[4],Y.port=parseInt(K[5],10),Y.path=K[6]||"",Y.query=K[7],Y.fragment=K[8],isNaN(Y.port)&&(Y.port=K[5])):(Y.scheme=K[1]||void 0,Y.userinfo=$.indexOf("@")!==-1?K[3]:void 0,Y.host=$.indexOf("//")!==-1?K[4]:void 0,Y.port=parseInt(K[5],10),Y.path=K[6]||"",Y.query=$.indexOf("?")!==-1?K[7]:void 0,Y.fragment=$.indexOf("#")!==-1?K[8]:void 0,isNaN(Y.port)&&(Y.port=$.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?K[4]:void 0)),Y.host&&(Y.host=ut(tn(Y.host,I),I)),Y.scheme===void 0&&Y.userinfo===void 0&&Y.host===void 0&&Y.port===void 0&&!Y.path&&Y.query===void 0?Y.reference="same-document":Y.scheme===void 0?Y.reference="relative":Y.fragment===void 0?Y.reference="absolute":Y.reference="uri",z.reference&&z.reference!=="suffix"&&z.reference!==Y.reference&&(Y.error=Y.error||"URI is not a "+z.reference+" reference.");var Ee=ve[(z.scheme||Y.scheme||"").toLowerCase()];if(!z.unicodeSupport&&(!Ee||!Ee.unicodeSupport)){if(Y.host&&(z.domainHost||Ee&&Ee.domainHost))try{Y.host=q.toASCII(Y.host.replace(I.PCT_ENCODED,We).toLowerCase())}catch(Re){Y.error=Y.error||"Host's domain name can not be converted to ASCII via punycode: "+Re}Ke(Y,u)}else Ke(Y,I);Ee&&Ee.parse&&Ee.parse(Y,z)}else Y.error=Y.error||"URI can not be parsed.";return Y}function Ae($,z){var Y=z.iri!==!1?d:u,I=[];return $.userinfo!==void 0&&(I.push($.userinfo),I.push("@")),$.host!==void 0&&I.push(ut(tn(String($.host),Y),Y).replace(Y.IPV6ADDRESS,function(K,Ee,Re){return"["+Ee+(Re?"%25"+Re:"")+"]"})),(typeof $.port=="number"||typeof $.port=="string")&&(I.push(":"),I.push(String($.port))),I.length?I.join(""):void 0}var we=/^\.\.?\//,ce=/^\/\.(\/|$)/,Me=/^\/\.\.(\/|$)/,ke=/^\/?(?:.|\n)*?(?=\/|$)/;function ye($){for(var z=[];$.length;)if($.match(we))$=$.replace(we,"");else if($.match(ce))$=$.replace(ce,"/");else if($.match(Me))$=$.replace(Me,"/"),z.pop();else if($==="."||$==="..")$="";else{var Y=$.match(ke);if(Y){var I=Y[0];$=$.slice(I.length),z.push(I)}else throw new Error("Unexpected dot segment condition")}return z.join("")}function _e($){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=z.iri?d:u,I=[],K=ve[(z.scheme||$.scheme||"").toLowerCase()];if(K&&K.serialize&&K.serialize($,z),$.host&&!Y.IPV6ADDRESS.test($.host)&&(z.domainHost||K&&K.domainHost))try{$.host=z.iri?q.toUnicode($.host):q.toASCII($.host.replace(Y.PCT_ENCODED,We).toLowerCase())}catch(Ye){$.error=$.error||"Host's domain name can not be converted to "+(z.iri?"Unicode":"ASCII")+" via punycode: "+Ye}Ke($,Y),z.reference!=="suffix"&&$.scheme&&(I.push($.scheme),I.push(":"));var Ee=Ae($,z);if(Ee!==void 0&&(z.reference!=="suffix"&&I.push("//"),I.push(Ee),$.path&&$.path.charAt(0)!=="/"&&I.push("/")),$.path!==void 0){var Re=$.path;!z.absolutePath&&(!K||!K.absolutePath)&&(Re=ye(Re)),Ee===void 0&&(Re=Re.replace(/^\/\//,"/%2F")),I.push(Re)}return $.query!==void 0&&(I.push("?"),I.push($.query)),$.fragment!==void 0&&(I.push("#"),I.push($.fragment)),I.join("")}function Fe($,z){var Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},I=arguments[3],K={};return I||($=se(_e($,Y),Y),z=se(_e(z,Y),Y)),Y=Y||{},!Y.tolerant&&z.scheme?(K.scheme=z.scheme,K.userinfo=z.userinfo,K.host=z.host,K.port=z.port,K.path=ye(z.path||""),K.query=z.query):(z.userinfo!==void 0||z.host!==void 0||z.port!==void 0?(K.userinfo=z.userinfo,K.host=z.host,K.port=z.port,K.path=ye(z.path||""),K.query=z.query):(z.path?(z.path.charAt(0)==="/"?K.path=ye(z.path):(($.userinfo!==void 0||$.host!==void 0||$.port!==void 0)&&!$.path?K.path="/"+z.path:$.path?K.path=$.path.slice(0,$.path.lastIndexOf("/")+1)+z.path:K.path=z.path,K.path=ye(K.path)),K.query=z.query):(K.path=$.path,z.query!==void 0?K.query=z.query:K.query=$.query),K.userinfo=$.userinfo,K.host=$.host,K.port=$.port),K.scheme=$.scheme),K.fragment=z.fragment,K}function ne($,z,Y){var I=l({scheme:"null"},Y);return _e(Fe(se($,I),se(z,I),I,!0),I)}function le($,z){return typeof $=="string"?$=_e(se($,z),z):s($)==="object"&&($=se(_e($,z),z)),$}function re($,z,Y){return typeof $=="string"?$=_e(se($,Y),Y):s($)==="object"&&($=_e($,Y)),typeof z=="string"?z=_e(se(z,Y),Y):s(z)==="object"&&(z=_e(z,Y)),$===z}function ge($,z){return $&&$.toString().replace(!z||!z.iri?u.ESCAPE:d.ESCAPE,Ce)}function xe($,z){return $&&$.toString().replace(!z||!z.iri?u.PCT_ENCODED:d.PCT_ENCODED,We)}var Ve={scheme:"http",domainHost:!0,parse:function($,z){return $.host||($.error=$.error||"HTTP URIs must have a host."),$},serialize:function($,z){var Y=String($.scheme).toLowerCase()==="https";return($.port===(Y?443:80)||$.port==="")&&($.port=void 0),$.path||($.path="/"),$}},ot={scheme:"https",domainHost:Ve.domainHost,parse:Ve.parse,serialize:Ve.serialize};function Dt($){return typeof $.secure=="boolean"?$.secure:String($.scheme).toLowerCase()==="wss"}var mn={scheme:"ws",domainHost:!0,parse:function($,z){var Y=$;return Y.secure=Dt(Y),Y.resourceName=(Y.path||"/")+(Y.query?"?"+Y.query:""),Y.path=void 0,Y.query=void 0,Y},serialize:function($,z){if(($.port===(Dt($)?443:80)||$.port==="")&&($.port=void 0),typeof $.secure=="boolean"&&($.scheme=$.secure?"wss":"ws",$.secure=void 0),$.resourceName){var Y=$.resourceName.split("?"),I=f(Y,2),K=I[0],Ee=I[1];$.path=K&&K!=="/"?K:void 0,$.query=Ee,$.resourceName=void 0}return $.fragment=void 0,$}},Sr={scheme:"wss",domainHost:mn.domainHost,parse:mn.parse,serialize:mn.serialize},un={},Mr="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",St="[0-9A-Fa-f]",$r=i(i("%[EFef]"+St+"%"+St+St+"%"+St+St)+"|"+i("%[89A-Fa-f]"+St+"%"+St+St)+"|"+i("%"+St+St)),Oo="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",fp="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Do=r(fp,'[\\"\\\\]'),hd="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",pd=new RegExp(Mr,"g"),Hs=new RegExp($r,"g"),uy=new RegExp(r("[^]",Oo,"[\\.]",'[\\"]',Do),"g"),md=new RegExp(r("[^]",Mr,hd),"g"),dy=md;function pc($){var z=We($);return z.match(pd)?z:$}var gd={scheme:"mailto",parse:function($,z){var Y=$,I=Y.to=Y.path?Y.path.split(","):[];if(Y.path=void 0,Y.query){for(var K=!1,Ee={},Re=Y.query.split("&"),Ye=0,lt=Re.length;Ye<lt;++Ye){var Qe=Re[Ye].split("=");switch(Qe[0]){case"to":for(var ze=Qe[1].split(","),yt=0,gt=ze.length;yt<gt;++yt)I.push(ze[yt]);break;case"subject":Y.subject=xe(Qe[1],z);break;case"body":Y.body=xe(Qe[1],z);break;default:K=!0,Ee[xe(Qe[0],z)]=xe(Qe[1],z);break}}K&&(Y.headers=Ee)}Y.query=void 0;for(var Ge=0,Ht=I.length;Ge<Ht;++Ge){var jt=I[Ge].split("@");if(jt[0]=xe(jt[0]),z.unicodeSupport)jt[1]=xe(jt[1],z).toLowerCase();else try{jt[1]=q.toASCII(xe(jt[1],z).toLowerCase())}catch(kr){Y.error=Y.error||"Email address's domain name can not be converted to ASCII via punycode: "+kr}I[Ge]=jt.join("@")}return Y},serialize:function($,z){var Y=$,I=a($.to);if(I){for(var K=0,Ee=I.length;K<Ee;++K){var Re=String(I[K]),Ye=Re.lastIndexOf("@"),lt=Re.slice(0,Ye).replace(Hs,pc).replace(Hs,o).replace(uy,Ce),Qe=Re.slice(Ye+1);try{Qe=z.iri?q.toUnicode(Qe):q.toASCII(xe(Qe,z).toLowerCase())}catch(Ge){Y.error=Y.error||"Email address's domain name can not be converted to "+(z.iri?"Unicode":"ASCII")+" via punycode: "+Ge}I[K]=lt+"@"+Qe}Y.path=I.join(",")}var ze=$.headers=$.headers||{};$.subject&&(ze.subject=$.subject),$.body&&(ze.body=$.body);var yt=[];for(var gt in ze)ze[gt]!==un[gt]&&yt.push(gt.replace(Hs,pc).replace(Hs,o).replace(md,Ce)+"="+ze[gt].replace(Hs,pc).replace(Hs,o).replace(dy,Ce));return yt.length&&(Y.query=yt.join("&")),Y}},fy=/^([^\:]+)\:(.*)/,hp={scheme:"urn",parse:function($,z){var Y=$.path&&$.path.match(fy),I=$;if(Y){var K=z.scheme||I.scheme||"urn",Ee=Y[1].toLowerCase(),Re=Y[2],Ye=K+":"+(z.nid||Ee),lt=ve[Ye];I.nid=Ee,I.nss=Re,I.path=void 0,lt&&(I=lt.parse(I,z))}else I.error=I.error||"URN can not be parsed.";return I},serialize:function($,z){var Y=z.scheme||$.scheme||"urn",I=$.nid,K=Y+":"+(z.nid||I),Ee=ve[K];Ee&&($=Ee.serialize($,z));var Re=$,Ye=$.nss;return Re.path=(I||z.nid)+":"+Ye,Re}},pp=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,mp={scheme:"urn:uuid",parse:function($,z){var Y=$;return Y.uuid=Y.nss,Y.nss=void 0,!z.tolerant&&(!Y.uuid||!Y.uuid.match(pp))&&(Y.error=Y.error||"UUID is not valid."),Y},serialize:function($,z){var Y=$;return Y.nss=($.uuid||"").toLowerCase(),Y}};ve[Ve.scheme]=Ve,ve[ot.scheme]=ot,ve[mn.scheme]=mn,ve[Sr.scheme]=Sr,ve[gd.scheme]=gd,ve[hp.scheme]=hp,ve[mp.scheme]=mp,n.SCHEMES=ve,n.pctEncChar=Ce,n.pctDecChars=We,n.parse=se,n.removeDotSegments=ye,n.serialize=_e,n.resolveComponents=Fe,n.resolve=ne,n.normalize=le,n.equal=re,n.escapeComponent=ge,n.unescapeComponent=xe,Object.defineProperty(n,"__esModule",{value:!0})})})(n_,n_.exports);var qfe=n_.exports;Object.defineProperty(GT,"__esModule",{value:!0});const KF=qfe;KF.code='require("ajv/dist/runtime/uri").default';GT.default=KF;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=Ci;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var n=ht;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return n.CodeGen}});const r=Yu,i=Xu,s=Yl,o=Rr,a=ht,l=rr,c=Wh,u=Ot,d=Vfe,f=GT,h=(O,B)=>new RegExp(O,B);h.code="new RegExp";const p=["removeAdditional","useDefaults","coerceTypes"],m=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),g={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},b={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},v=200;function y(O){var B,J,N,P,H,q,ve,Ce,We,Ke,rt,tn,ut,U,W,se,Ae,we,ce,Me,ke,ye,_e,Fe,ne;const le=O.strict,re=(B=O.code)===null||B===void 0?void 0:B.optimize,ge=re===!0||re===void 0?1:re||0,xe=(N=(J=O.code)===null||J===void 0?void 0:J.regExp)!==null&&N!==void 0?N:h,Ve=(P=O.uriResolver)!==null&&P!==void 0?P:f.default;return{strictSchema:(q=(H=O.strictSchema)!==null&&H!==void 0?H:le)!==null&&q!==void 0?q:!0,strictNumbers:(Ce=(ve=O.strictNumbers)!==null&&ve!==void 0?ve:le)!==null&&Ce!==void 0?Ce:!0,strictTypes:(Ke=(We=O.strictTypes)!==null&&We!==void 0?We:le)!==null&&Ke!==void 0?Ke:"log",strictTuples:(tn=(rt=O.strictTuples)!==null&&rt!==void 0?rt:le)!==null&&tn!==void 0?tn:"log",strictRequired:(U=(ut=O.strictRequired)!==null&&ut!==void 0?ut:le)!==null&&U!==void 0?U:!1,code:O.code?{...O.code,optimize:ge,regExp:xe}:{optimize:ge,regExp:xe},loopRequired:(W=O.loopRequired)!==null&&W!==void 0?W:v,loopEnum:(se=O.loopEnum)!==null&&se!==void 0?se:v,meta:(Ae=O.meta)!==null&&Ae!==void 0?Ae:!0,messages:(we=O.messages)!==null&&we!==void 0?we:!0,inlineRefs:(ce=O.inlineRefs)!==null&&ce!==void 0?ce:!0,schemaId:(Me=O.schemaId)!==null&&Me!==void 0?Me:"$id",addUsedSchema:(ke=O.addUsedSchema)!==null&&ke!==void 0?ke:!0,validateSchema:(ye=O.validateSchema)!==null&&ye!==void 0?ye:!0,validateFormats:(_e=O.validateFormats)!==null&&_e!==void 0?_e:!0,unicodeRegExp:(Fe=O.unicodeRegExp)!==null&&Fe!==void 0?Fe:!0,int32range:(ne=O.int32range)!==null&&ne!==void 0?ne:!0,uriResolver:Ve}}class E{constructor(B={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,B=this.opts={...B,...y(B)};const{es5:J,lines:N}=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:m,es5:J,lines:N}),this.logger=R(B.logger);const P=B.validateFormats;B.validateFormats=!1,this.RULES=(0,s.getRules)(),T.call(this,g,B,"NOT SUPPORTED"),T.call(this,b,B,"DEPRECATED","warn"),this._metaOpts=A.call(this),B.formats&&k.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),B.keywords&&x.call(this,B.keywords),typeof B.meta=="object"&&this.addMetaSchema(B.meta),S.call(this),B.validateFormats=P}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:B,meta:J,schemaId:N}=this.opts;let P=d;N==="id"&&(P={...d},P.id=P.$id,delete P.$id),J&&B&&this.addMetaSchema(P,P[N],!1)}defaultMeta(){const{meta:B,schemaId:J}=this.opts;return this.opts.defaultMeta=typeof B=="object"?B[J]||B:void 0}validate(B,J){let N;if(typeof B=="string"){if(N=this.getSchema(B),!N)throw new Error(`no schema with key or ref "${B}"`)}else N=this.compile(B);const P=N(J);return"$async"in N||(this.errors=N.errors),P}compile(B,J){const N=this._addSchema(B,J);return N.validate||this._compileSchemaEnv(N)}compileAsync(B,J){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:N}=this.opts;return P.call(this,B,J);async function P(Ke,rt){await H.call(this,Ke.$schema);const tn=this._addSchema(Ke,rt);return tn.validate||q.call(this,tn)}async function H(Ke){Ke&&!this.getSchema(Ke)&&await P.call(this,{$ref:Ke},!0)}async function q(Ke){try{return this._compileSchemaEnv(Ke)}catch(rt){if(!(rt instanceof i.default))throw rt;return ve.call(this,rt),await Ce.call(this,rt.missingSchema),q.call(this,Ke)}}function ve({missingSchema:Ke,missingRef:rt}){if(this.refs[Ke])throw new Error(`AnySchema ${Ke} is loaded but ${rt} cannot be resolved`)}async function Ce(Ke){const rt=await We.call(this,Ke);this.refs[Ke]||await H.call(this,rt.$schema),this.refs[Ke]||this.addSchema(rt,Ke,J)}async function We(Ke){const rt=this._loading[Ke];if(rt)return rt;try{return await(this._loading[Ke]=N(Ke))}finally{delete this._loading[Ke]}}}addSchema(B,J,N,P=this.opts.validateSchema){if(Array.isArray(B)){for(const q of B)this.addSchema(q,void 0,N,P);return this}let H;if(typeof B=="object"){const{schemaId:q}=this.opts;if(H=B[q],H!==void 0&&typeof H!="string")throw new Error(`schema ${q} must be string`)}return J=(0,l.normalizeId)(J||H),this._checkUnique(J),this.schemas[J]=this._addSchema(B,N,J,P,!0),this}addMetaSchema(B,J,N=this.opts.validateSchema){return this.addSchema(B,J,!0,N),this}validateSchema(B,J){if(typeof B=="boolean")return!0;let N;if(N=B.$schema,N!==void 0&&typeof N!="string")throw new Error("$schema must be a string");if(N=N||this.opts.defaultMeta||this.defaultMeta(),!N)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const P=this.validate(N,B);if(!P&&J){const H="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(H);else throw new Error(H)}return P}getSchema(B){let J;for(;typeof(J=w.call(this,B))=="string";)B=J;if(J===void 0){const{schemaId:N}=this.opts,P=new o.SchemaEnv({schema:{},schemaId:N});if(J=o.resolveSchema.call(this,P,B),!J)return;this.refs[B]=J}return J.validate||this._compileSchemaEnv(J)}removeSchema(B){if(B instanceof RegExp)return this._removeAllSchemas(this.schemas,B),this._removeAllSchemas(this.refs,B),this;switch(typeof B){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const J=w.call(this,B);return typeof J=="object"&&this._cache.delete(J.schema),delete this.schemas[B],delete this.refs[B],this}case"object":{const J=B;this._cache.delete(J);let N=B[this.opts.schemaId];return N&&(N=(0,l.normalizeId)(N),delete this.schemas[N],delete this.refs[N]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(B){for(const J of B)this.addKeyword(J);return this}addKeyword(B,J){let N;if(typeof B=="string")N=B,typeof J=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),J.keyword=N);else if(typeof B=="object"&&J===void 0){if(J=B,N=J.keyword,Array.isArray(N)&&!N.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(ee.call(this,N,J),!J)return(0,u.eachItem)(N,H=>oe.call(this,H)),this;G.call(this,J);const P={...J,type:(0,c.getJSONTypes)(J.type),schemaType:(0,c.getJSONTypes)(J.schemaType)};return(0,u.eachItem)(N,P.type.length===0?H=>oe.call(this,H,P):H=>P.type.forEach(q=>oe.call(this,H,P,q))),this}getKeyword(B){const J=this.RULES.all[B];return typeof J=="object"?J.definition:!!J}removeKeyword(B){const{RULES:J}=this;delete J.keywords[B],delete J.all[B];for(const N of J.rules){const P=N.rules.findIndex(H=>H.keyword===B);P>=0&&N.rules.splice(P,1)}return this}addFormat(B,J){return typeof J=="string"&&(J=new RegExp(J)),this.formats[B]=J,this}errorsText(B=this.errors,{separator:J=", ",dataVar:N="data"}={}){return!B||B.length===0?"No errors":B.map(P=>`${N}${P.instancePath} ${P.message}`).reduce((P,H)=>P+J+H)}$dataMetaSchema(B,J){const N=this.RULES.all;B=JSON.parse(JSON.stringify(B));for(const P of J){const H=P.split("/").slice(1);let q=B;for(const ve of H)q=q[ve];for(const ve in N){const Ce=N[ve];if(typeof Ce!="object")continue;const{$data:We}=Ce.definition,Ke=q[ve];We&&Ke&&(q[ve]=fe(Ke))}}return B}_removeAllSchemas(B,J){for(const N in B){const P=B[N];(!J||J.test(N))&&(typeof P=="string"?delete B[N]:P&&!P.meta&&(this._cache.delete(P.schema),delete B[N]))}}_addSchema(B,J,N,P=this.opts.validateSchema,H=this.opts.addUsedSchema){let q;const{schemaId:ve}=this.opts;if(typeof B=="object")q=B[ve];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof B!="boolean")throw new Error("schema must be object or boolean")}let Ce=this._cache.get(B);if(Ce!==void 0)return Ce;N=(0,l.normalizeId)(q||N);const We=l.getSchemaRefs.call(this,B,N);return Ce=new o.SchemaEnv({schema:B,schemaId:ve,meta:J,baseId:N,localRefs:We}),this._cache.set(Ce.schema,Ce),H&&!N.startsWith("#")&&(N&&this._checkUnique(N),this.refs[N]=Ce),P&&this.validateSchema(B,!0),Ce}_checkUnique(B){if(this.schemas[B]||this.refs[B])throw new Error(`schema with key or id "${B}" already exists`)}_compileSchemaEnv(B){if(B.meta?this._compileMetaSchema(B):o.compileSchema.call(this,B),!B.validate)throw new Error("ajv implementation error");return B.validate}_compileMetaSchema(B){const J=this.opts;this.opts=this._metaOpts;try{o.compileSchema.call(this,B)}finally{this.opts=J}}}e.default=E,E.ValidationError=r.default,E.MissingRefError=i.default;function T(O,B,J,N="error"){for(const P in O){const H=P;H in B&&this.logger[N](`${J}: option ${P}. ${O[H]}`)}}function w(O){return O=(0,l.normalizeId)(O),this.schemas[O]||this.refs[O]}function S(){const O=this.opts.schemas;if(O)if(Array.isArray(O))this.addSchema(O);else for(const B in O)this.addSchema(O[B],B)}function k(){for(const O in this.opts.formats){const B=this.opts.formats[O];B&&this.addFormat(O,B)}}function x(O){if(Array.isArray(O)){this.addVocabulary(O);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const B in O){const J=O[B];J.keyword||(J.keyword=B),this.addKeyword(J)}}function A(){const O={...this.opts};for(const B of p)delete O[B];return O}const M={log(){},warn(){},error(){}};function R(O){if(O===!1)return M;if(O===void 0)return console;if(O.log&&O.warn&&O.error)return O;throw new Error("logger must implement log, warn and error methods")}const te=/^[a-z_$][a-z0-9_$:-]*$/i;function ee(O,B){const{RULES:J}=this;if((0,u.eachItem)(O,N=>{if(J.keywords[N])throw new Error(`Keyword ${N} is already defined`);if(!te.test(N))throw new Error(`Keyword ${N} has invalid name`)}),!!B&&B.$data&&!("code"in B||"validate"in B))throw new Error('$data keyword must have "code" or "validate" function')}function oe(O,B,J){var N;const P=B==null?void 0:B.post;if(J&&P)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:H}=this;let q=P?H.post:H.rules.find(({type:Ce})=>Ce===J);if(q||(q={type:J,rules:[]},H.rules.push(q)),H.keywords[O]=!0,!B)return;const ve={keyword:O,definition:{...B,type:(0,c.getJSONTypes)(B.type),schemaType:(0,c.getJSONTypes)(B.schemaType)}};B.before?pe.call(this,q,ve,B.before):q.rules.push(ve),H.all[O]=ve,(N=B.implements)===null||N===void 0||N.forEach(Ce=>this.addKeyword(Ce))}function pe(O,B,J){const N=O.rules.findIndex(P=>P.keyword===J);N>=0?O.rules.splice(N,0,B):(O.rules.push(B),this.logger.warn(`rule ${J} is not defined`))}function G(O){let{metaSchema:B}=O;B!==void 0&&(O.$data&&this.opts.$data&&(B=fe(B)),O.validateSchema=this.compile(B,!0))}const Q={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function fe(O){return{anyOf:[O,Q]}}})(Ml);var YT={},Cb={},XT={};Object.defineProperty(XT,"__esModule",{value:!0});const zfe={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};XT.default=zfe;var $s={};Object.defineProperty($s,"__esModule",{value:!0});$s.callRef=$s.getValidate=void 0;const Kfe=Xu,kO=kt,Vr=ht,Ec=pi,AO=Rr,fm=Ot,Wfe={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:r}=e,{baseId:i,schemaEnv:s,validateName:o,opts:a,self:l}=r,{root:c}=s;if((n==="#"||n==="#/")&&i===c.baseId)return d();const u=AO.resolveRef.call(l,c,i,n);if(u===void 0)throw new Kfe.default(r.opts.uriResolver,i,n);if(u instanceof AO.SchemaEnv)return f(u);return h(u);function d(){if(s===c)return Xm(e,o,s,s.$async);const p=t.scopeValue("root",{ref:c});return Xm(e,(0,Vr._)`${p}.validate`,c,c.$async)}function f(p){const m=WF(e,p);Xm(e,m,p,p.$async)}function h(p){const m=t.scopeValue("schema",a.code.source===!0?{ref:p,code:(0,Vr.stringify)(p)}:{ref:p}),g=t.name("valid"),b=e.subschema({schema:p,dataTypes:[],schemaPath:Vr.nil,topSchemaRef:m,errSchemaPath:n},g);e.mergeEvaluated(b),e.ok(g)}}};function WF(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):(0,Vr._)`${n.scopeValue("wrapper",{ref:t})}.validate`}$s.getValidate=WF;function Xm(e,t,n,r){const{gen:i,it:s}=e,{allErrors:o,schemaEnv:a,opts:l}=s,c=l.passContext?Ec.default.this:Vr.nil;r?u():d();function u(){if(!a.$async)throw new Error("async schema referenced by sync schema");const p=i.let("valid");i.try(()=>{i.code((0,Vr._)`await ${(0,kO.callValidateCode)(e,t,c)}`),h(t),o||i.assign(p,!0)},m=>{i.if((0,Vr._)`!(${m} instanceof ${s.ValidationError})`,()=>i.throw(m)),f(m),o||i.assign(p,!1)}),e.ok(p)}function d(){e.result((0,kO.callValidateCode)(e,t,c),()=>h(t),()=>f(t))}function f(p){const m=(0,Vr._)`${p}.errors`;i.assign(Ec.default.vErrors,(0,Vr._)`${Ec.default.vErrors} === null ? ${m} : ${Ec.default.vErrors}.concat(${m})`),i.assign(Ec.default.errors,(0,Vr._)`${Ec.default.vErrors}.length`)}function h(p){var m;if(!s.opts.unevaluated)return;const g=(m=n==null?void 0:n.validate)===null||m===void 0?void 0:m.evaluated;if(s.props!==!0)if(g&&!g.dynamicProps)g.props!==void 0&&(s.props=fm.mergeEvaluated.props(i,g.props,s.props));else{const b=i.var("props",(0,Vr._)`${p}.evaluated.props`);s.props=fm.mergeEvaluated.props(i,b,s.props,Vr.Name)}if(s.items!==!0)if(g&&!g.dynamicItems)g.items!==void 0&&(s.items=fm.mergeEvaluated.items(i,g.items,s.items));else{const b=i.var("items",(0,Vr._)`${p}.evaluated.items`);s.items=fm.mergeEvaluated.items(i,b,s.items,Vr.Name)}}}$s.callRef=Xm;$s.default=Wfe;Object.defineProperty(Cb,"__esModule",{value:!0});const Gfe=XT,Yfe=$s,Xfe=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Gfe.default,Yfe.default];Cb.default=Xfe;var Ob={},QT={};Object.defineProperty(QT,"__esModule",{value:!0});const Jg=ht,Bo=Jg.operators,Zg={maximum:{okStr:"<=",ok:Bo.LTE,fail:Bo.GT},minimum:{okStr:">=",ok:Bo.GTE,fail:Bo.LT},exclusiveMaximum:{okStr:"<",ok:Bo.LT,fail:Bo.GTE},exclusiveMinimum:{okStr:">",ok:Bo.GT,fail:Bo.LTE}},Qfe={message:({keyword:e,schemaCode:t})=>(0,Jg.str)`must be ${Zg[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Jg._)`{comparison: ${Zg[e].okStr}, limit: ${t}}`},Jfe={keyword:Object.keys(Zg),type:"number",schemaType:"number",$data:!0,error:Qfe,code(e){const{keyword:t,data:n,schemaCode:r}=e;e.fail$data((0,Jg._)`${n} ${Zg[t].fail} ${r} || isNaN(${n})`)}};QT.default=Jfe;var Db={};Object.defineProperty(Db,"__esModule",{value:!0});const xf=ht,Zfe={message:({schemaCode:e})=>(0,xf.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,xf._)`{multipleOf: ${e}}`},ehe={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Zfe,code(e){const{gen:t,data:n,schemaCode:r,it:i}=e,s=i.opts.multipleOfPrecision,o=t.let("res"),a=s?(0,xf._)`Math.abs(Math.round(${o}) - ${o}) > 1e-${s}`:(0,xf._)`${o} !== parseInt(${o})`;e.fail$data((0,xf._)`(${r} === 0 || (${o} = ${n}/${r}, ${a}))`)}};Db.default=ehe;var Ib={},JT={};Object.defineProperty(JT,"__esModule",{value:!0});function GF(e){const t=e.length;let n=0,r=0,i;for(;r<t;)n++,i=e.charCodeAt(r++),i>=55296&&i<=56319&&r<t&&(i=e.charCodeAt(r),(i&64512)===56320&&r++);return n}JT.default=GF;GF.code='require("ajv/dist/runtime/ucs2length").default';Object.defineProperty(Ib,"__esModule",{value:!0});const ll=ht,the=Ot,nhe=JT,rhe={message({keyword:e,schemaCode:t}){const n=e==="maxLength"?"more":"fewer";return(0,ll.str)`must NOT have ${n} than ${t} characters`},params:({schemaCode:e})=>(0,ll._)`{limit: ${e}}`},ihe={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:rhe,code(e){const{keyword:t,data:n,schemaCode:r,it:i}=e,s=t==="maxLength"?ll.operators.GT:ll.operators.LT,o=i.opts.unicode===!1?(0,ll._)`${n}.length`:(0,ll._)`${(0,the.useFunc)(e.gen,nhe.default)}(${n})`;e.fail$data((0,ll._)`${o} ${s} ${r}`)}};Ib.default=ihe;var Rb={};Object.defineProperty(Rb,"__esModule",{value:!0});const she=kt,e0=ht,ohe={message:({schemaCode:e})=>(0,e0.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,e0._)`{pattern: ${e}}`},ahe={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:ohe,code(e){const{data:t,$data:n,schema:r,schemaCode:i,it:s}=e,o=s.opts.unicodeRegExp?"u":"",a=n?(0,e0._)`(new RegExp(${i}, ${o}))`:(0,she.usePattern)(e,r);e.fail$data((0,e0._)`!${a}.test(${t})`)}};Rb.default=ahe;var Pb={};Object.defineProperty(Pb,"__esModule",{value:!0});const Nf=ht,lhe={message({keyword:e,schemaCode:t}){const n=e==="maxProperties"?"more":"fewer";return(0,Nf.str)`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>(0,Nf._)`{limit: ${e}}`},che={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:lhe,code(e){const{keyword:t,data:n,schemaCode:r}=e,i=t==="maxProperties"?Nf.operators.GT:Nf.operators.LT;e.fail$data((0,Nf._)`Object.keys(${n}).length ${i} ${r}`)}};Pb.default=che;var Lb={};Object.defineProperty(Lb,"__esModule",{value:!0});const Hd=kt,Cf=ht,uhe=Ot,dhe={message:({params:{missingProperty:e}})=>(0,Cf.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Cf._)`{missingProperty: ${e}}`},fhe={keyword:"required",type:"object",schemaType:"array",$data:!0,error:dhe,code(e){const{gen:t,schema:n,schemaCode:r,data:i,$data:s,it:o}=e,{opts:a}=o;if(!s&&n.length===0)return;const l=n.length>=a.loopRequired;if(o.allErrors?c():u(),a.strictRequired){const h=e.parentSchema.properties,{definedProperties:p}=e.it;for(const m of n)if((h==null?void 0:h[m])===void 0&&!p.has(m)){const g=o.schemaEnv.baseId+o.errSchemaPath,b=`required property "${m}" is not defined at "${g}" (strictRequired)`;(0,uhe.checkStrictMode)(o,b,o.opts.strictRequired)}}function c(){if(l||s)e.block$data(Cf.nil,d);else for(const h of n)(0,Hd.checkReportMissingProp)(e,h)}function u(){const h=t.let("missing");if(l||s){const p=t.let("valid",!0);e.block$data(p,()=>f(h,p)),e.ok(p)}else t.if((0,Hd.checkMissingProp)(e,n,h)),(0,Hd.reportMissingProp)(e,h),t.else()}function d(){t.forOf("prop",r,h=>{e.setParams({missingProperty:h}),t.if((0,Hd.noPropertyInData)(t,i,h,a.ownProperties),()=>e.error())})}function f(h,p){e.setParams({missingProperty:h}),t.forOf(h,r,()=>{t.assign(p,(0,Hd.propertyInData)(t,i,h,a.ownProperties)),t.if((0,Cf.not)(p),()=>{e.error(),t.break()})},Cf.nil)}}};Lb.default=fhe;var Mb={};Object.defineProperty(Mb,"__esModule",{value:!0});const Of=ht,hhe={message({keyword:e,schemaCode:t}){const n=e==="maxItems"?"more":"fewer";return(0,Of.str)`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>(0,Of._)`{limit: ${e}}`},phe={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:hhe,code(e){const{keyword:t,data:n,schemaCode:r}=e,i=t==="maxItems"?Of.operators.GT:Of.operators.LT;e.fail$data((0,Of._)`${n}.length ${i} ${r}`)}};Mb.default=phe;var $b={},Gh={};Object.defineProperty(Gh,"__esModule",{value:!0});const YF=CF;YF.code='require("ajv/dist/runtime/equal").default';Gh.default=YF;Object.defineProperty($b,"__esModule",{value:!0});const xv=Wh,Xn=ht,mhe=Ot,ghe=Gh,bhe={message:({params:{i:e,j:t}})=>(0,Xn.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Xn._)`{i: ${e}, j: ${t}}`},yhe={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:bhe,code(e){const{gen:t,data:n,$data:r,schema:i,parentSchema:s,schemaCode:o,it:a}=e;if(!r&&!i)return;const l=t.let("valid"),c=s.items?(0,xv.getSchemaTypes)(s.items):[];e.block$data(l,u,(0,Xn._)`${o} === false`),e.ok(l);function u(){const p=t.let("i",(0,Xn._)`${n}.length`),m=t.let("j");e.setParams({i:p,j:m}),t.assign(l,!0),t.if((0,Xn._)`${p} > 1`,()=>(d()?f:h)(p,m))}function d(){return c.length>0&&!c.some(p=>p==="object"||p==="array")}function f(p,m){const g=t.name("item"),b=(0,xv.checkDataTypes)(c,g,a.opts.strictNumbers,xv.DataType.Wrong),v=t.const("indices",(0,Xn._)`{}`);t.for((0,Xn._)`;${p}--;`,()=>{t.let(g,(0,Xn._)`${n}[${p}]`),t.if(b,(0,Xn._)`continue`),c.length>1&&t.if((0,Xn._)`typeof ${g} == "string"`,(0,Xn._)`${g} += "_"`),t.if((0,Xn._)`typeof ${v}[${g}] == "number"`,()=>{t.assign(m,(0,Xn._)`${v}[${g}]`),e.error(),t.assign(l,!1).break()}).code((0,Xn._)`${v}[${g}] = ${p}`)})}function h(p,m){const g=(0,mhe.useFunc)(t,ghe.default),b=t.name("outer");t.label(b).for((0,Xn._)`;${p}--;`,()=>t.for((0,Xn._)`${m} = ${p}; ${m}--;`,()=>t.if((0,Xn._)`${g}(${n}[${p}], ${n}[${m}])`,()=>{e.error(),t.assign(l,!1).break(b)})))}}};$b.default=yhe;var Fb={};Object.defineProperty(Fb,"__esModule",{value:!0});const r_=ht,vhe=Ot,Ehe=Gh,_he={message:"must be equal to constant",params:({schemaCode:e})=>(0,r_._)`{allowedValue: ${e}}`},whe={keyword:"const",$data:!0,error:_he,code(e){const{gen:t,data:n,$data:r,schemaCode:i,schema:s}=e;r||s&&typeof s=="object"?e.fail$data((0,r_._)`!${(0,vhe.useFunc)(t,Ehe.default)}(${n}, ${i})`):e.fail((0,r_._)`${s} !== ${n}`)}};Fb.default=whe;var Bb={};Object.defineProperty(Bb,"__esModule",{value:!0});const Zd=ht,The=Ot,She=Gh,khe={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Zd._)`{allowedValues: ${e}}`},Ahe={keyword:"enum",schemaType:"array",$data:!0,error:khe,code(e){const{gen:t,data:n,$data:r,schema:i,schemaCode:s,it:o}=e;if(!r&&i.length===0)throw new Error("enum must have non-empty array");const a=i.length>=o.opts.loopEnum;let l;const c=()=>l??(l=(0,The.useFunc)(t,She.default));let u;if(a||r)u=t.let("valid"),e.block$data(u,d);else{if(!Array.isArray(i))throw new Error("ajv implementation error");const h=t.const("vSchema",s);u=(0,Zd.or)(...i.map((p,m)=>f(h,m)))}e.pass(u);function d(){t.assign(u,!1),t.forOf("v",s,h=>t.if((0,Zd._)`${c()}(${n}, ${h})`,()=>t.assign(u,!0).break()))}function f(h,p){const m=i[p];return typeof m=="object"&&m!==null?(0,Zd._)`${c()}(${n}, ${h}[${p}])`:(0,Zd._)`${n} === ${m}`}}};Bb.default=Ahe;Object.defineProperty(Ob,"__esModule",{value:!0});const xhe=QT,Nhe=Db,Che=Ib,Ohe=Rb,Dhe=Pb,Ihe=Lb,Rhe=Mb,Phe=$b,Lhe=Fb,Mhe=Bb,$he=[xhe.default,Nhe.default,Che.default,Ohe.default,Dhe.default,Ihe.default,Rhe.default,Phe.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Lhe.default,Mhe.default];Ob.default=$he;var Yh={},Qu={};Object.defineProperty(Qu,"__esModule",{value:!0});Qu.validateAdditionalItems=void 0;const cl=ht,i_=Ot,Fhe={message:({params:{len:e}})=>(0,cl.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,cl._)`{limit: ${e}}`},Bhe={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Fhe,code(e){const{parentSchema:t,it:n}=e,{items:r}=t;if(!Array.isArray(r)){(0,i_.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas');return}XF(e,r)}};function XF(e,t){const{gen:n,schema:r,data:i,keyword:s,it:o}=e;o.items=!0;const a=n.const("len",(0,cl._)`${i}.length`);if(r===!1)e.setParams({len:t.length}),e.pass((0,cl._)`${a} <= ${t.length}`);else if(typeof r=="object"&&!(0,i_.alwaysValidSchema)(o,r)){const c=n.var("valid",(0,cl._)`${a} <= ${t.length}`);n.if((0,cl.not)(c),()=>l(c)),e.ok(c)}function l(c){n.forRange("i",t.length,a,u=>{e.subschema({keyword:s,dataProp:u,dataPropType:i_.Type.Num},c),o.allErrors||n.if((0,cl.not)(c),()=>n.break())})}}Qu.validateAdditionalItems=XF;Qu.default=Bhe;var ZT={},Ju={};Object.defineProperty(Ju,"__esModule",{value:!0});Ju.validateTuple=void 0;const xO=ht,Qm=Ot,Uhe=kt,Hhe={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return QF(e,"additionalItems",t);n.items=!0,!(0,Qm.alwaysValidSchema)(n,t)&&e.ok((0,Uhe.validateArray)(e))}};function QF(e,t,n=e.schema){const{gen:r,parentSchema:i,data:s,keyword:o,it:a}=e;u(i),a.opts.unevaluated&&n.length&&a.items!==!0&&(a.items=Qm.mergeEvaluated.items(r,n.length,a.items));const l=r.name("valid"),c=r.const("len",(0,xO._)`${s}.length`);n.forEach((d,f)=>{(0,Qm.alwaysValidSchema)(a,d)||(r.if((0,xO._)`${c} > ${f}`,()=>e.subschema({keyword:o,schemaProp:f,dataProp:f},l)),e.ok(l))});function u(d){const{opts:f,errSchemaPath:h}=a,p=n.length,m=p===d.minItems&&(p===d.maxItems||d[t]===!1);if(f.strictTuples&&!m){const g=`"${o}" is ${p}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,Qm.checkStrictMode)(a,g,f.strictTuples)}}}Ju.validateTuple=QF;Ju.default=Hhe;Object.defineProperty(ZT,"__esModule",{value:!0});const jhe=Ju,Vhe={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,jhe.validateTuple)(e,"items")};ZT.default=Vhe;var eS={};Object.defineProperty(eS,"__esModule",{value:!0});const NO=ht,qhe=Ot,zhe=kt,Khe=Qu,Whe={message:({params:{len:e}})=>(0,NO.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,NO._)`{limit: ${e}}`},Ghe={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:Whe,code(e){const{schema:t,parentSchema:n,it:r}=e,{prefixItems:i}=n;r.items=!0,!(0,qhe.alwaysValidSchema)(r,t)&&(i?(0,Khe.validateAdditionalItems)(e,i):e.ok((0,zhe.validateArray)(e)))}};eS.default=Ghe;var tS={};Object.defineProperty(tS,"__esModule",{value:!0});const Ei=ht,hm=Ot,Yhe={message:({params:{min:e,max:t}})=>t===void 0?(0,Ei.str)`must contain at least ${e} valid item(s)`:(0,Ei.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,Ei._)`{minContains: ${e}}`:(0,Ei._)`{minContains: ${e}, maxContains: ${t}}`},Xhe={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:Yhe,code(e){const{gen:t,schema:n,parentSchema:r,data:i,it:s}=e;let o,a;const{minContains:l,maxContains:c}=r;s.opts.next?(o=l===void 0?1:l,a=c):o=1;const u=t.const("len",(0,Ei._)`${i}.length`);if(e.setParams({min:o,max:a}),a===void 0&&o===0){(0,hm.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&o>a){(0,hm.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,hm.alwaysValidSchema)(s,n)){let m=(0,Ei._)`${u} >= ${o}`;a!==void 0&&(m=(0,Ei._)`${m} && ${u} <= ${a}`),e.pass(m);return}s.items=!0;const d=t.name("valid");a===void 0&&o===1?h(d,()=>t.if(d,()=>t.break())):o===0?(t.let(d,!0),a!==void 0&&t.if((0,Ei._)`${i}.length > 0`,f)):(t.let(d,!1),f()),e.result(d,()=>e.reset());function f(){const m=t.name("_valid"),g=t.let("count",0);h(m,()=>t.if(m,()=>p(g)))}function h(m,g){t.forRange("i",0,u,b=>{e.subschema({keyword:"contains",dataProp:b,dataPropType:hm.Type.Num,compositeRule:!0},m),g()})}function p(m){t.code((0,Ei._)`${m}++`),a===void 0?t.if((0,Ei._)`${m} >= ${o}`,()=>t.assign(d,!0).break()):(t.if((0,Ei._)`${m} > ${a}`,()=>t.assign(d,!1).break()),o===1?t.assign(d,!0):t.if((0,Ei._)`${m} >= ${o}`,()=>t.assign(d,!0)))}}};tS.default=Xhe;var Ub={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=ht,n=Ot,r=kt;e.error={message:({params:{property:l,depsCount:c,deps:u}})=>{const d=c===1?"property":"properties";return(0,t.str)`must have ${d} ${u} when property ${l} is present`},params:({params:{property:l,depsCount:c,deps:u,missingProperty:d}})=>(0,t._)`{property: ${l},
229
229
  missingProperty: ${d},
230
230
  depsCount: ${c},
231
- deps: ${u}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(l){const[c,u]=s(l);o(l,c),a(l,u)}};function s({schema:l}){const c={},u={};for(const d in l){if(d==="__proto__")continue;const f=Array.isArray(l[d])?c:u;f[d]=l[d]}return[c,u]}function o(l,c=l.schema){const{gen:u,data:d,it:f}=l;if(Object.keys(c).length===0)return;const h=u.let("missing");for(const p in c){const m=c[p];if(m.length===0)continue;const g=(0,r.propertyInData)(u,d,p,f.opts.ownProperties);l.setParams({property:p,depsCount:m.length,deps:m.join(", ")}),f.allErrors?u.if(g,()=>{for(const b of m)(0,r.checkReportMissingProp)(l,b)}):(u.if((0,t._)`${g} && (${(0,r.checkMissingProp)(l,m,h)})`),(0,r.reportMissingProp)(l,h),u.else())}}e.validatePropertyDeps=o;function a(l,c=l.schema){const{gen:u,data:d,keyword:f,it:h}=l,p=u.name("valid");for(const m in c)(0,n.alwaysValidSchema)(h,c[m])||(u.if((0,r.propertyInData)(u,d,m,h.opts.ownProperties),()=>{const g=l.subschema({keyword:f,schemaProp:m},p);l.mergeValidEvaluated(g,p)},()=>u.var(p,!0)),l.ok(p))}e.validateSchemaDeps=a,e.default=i})(Ub);var nS={};Object.defineProperty(nS,"__esModule",{value:!0});const JF=ht,Zhe=Ot,epe={message:"property name must be valid",params:({params:e})=>(0,JF._)`{propertyName: ${e.propertyName}}`},tpe={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:epe,code(e){const{gen:t,schema:n,data:r,it:i}=e;if((0,Zhe.alwaysValidSchema)(i,n))return;const s=t.name("valid");t.forIn("key",r,o=>{e.setParams({propertyName:o}),e.subschema({keyword:"propertyNames",data:o,dataTypes:["string"],propertyName:o,compositeRule:!0},s),t.if((0,JF.not)(s),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(s)}};nS.default=tpe;var Hb={};Object.defineProperty(Hb,"__esModule",{value:!0});const pm=kt,Ui=ht,npe=pi,mm=Ot,rpe={message:"must NOT have additional properties",params:({params:e})=>(0,Ui._)`{additionalProperty: ${e.additionalProperty}}`},ipe={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:rpe,code(e){const{gen:t,schema:n,parentSchema:r,data:i,errsCount:s,it:o}=e;if(!s)throw new Error("ajv implementation error");const{allErrors:a,opts:l}=o;if(o.props=!0,l.removeAdditional!=="all"&&(0,mm.alwaysValidSchema)(o,n))return;const c=(0,pm.allSchemaProperties)(r.properties),u=(0,pm.allSchemaProperties)(r.patternProperties);d(),e.ok((0,Ui._)`${s} === ${npe.default.errors}`);function d(){t.forIn("key",i,g=>{!c.length&&!u.length?p(g):t.if(f(g),()=>p(g))})}function f(g){let b;if(c.length>8){const v=(0,mm.schemaRefOrVal)(o,r.properties,"properties");b=(0,pm.isOwnProperty)(t,v,g)}else c.length?b=(0,Ui.or)(...c.map(v=>(0,Ui._)`${g} === ${v}`)):b=Ui.nil;return u.length&&(b=(0,Ui.or)(b,...u.map(v=>(0,Ui._)`${(0,pm.usePattern)(e,v)}.test(${g})`))),(0,Ui.not)(b)}function h(g){t.code((0,Ui._)`delete ${i}[${g}]`)}function p(g){if(l.removeAdditional==="all"||l.removeAdditional&&n===!1){h(g);return}if(n===!1){e.setParams({additionalProperty:g}),e.error(),a||t.break();return}if(typeof n=="object"&&!(0,mm.alwaysValidSchema)(o,n)){const b=t.name("valid");l.removeAdditional==="failing"?(m(g,b,!1),t.if((0,Ui.not)(b),()=>{e.reset(),h(g)})):(m(g,b),a||t.if((0,Ui.not)(b),()=>t.break()))}}function m(g,b,v){const y={keyword:"additionalProperties",dataProp:g,dataPropType:mm.Type.Str};v===!1&&Object.assign(y,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(y,b)}}};Hb.default=ipe;var rS={};Object.defineProperty(rS,"__esModule",{value:!0});const spe=Ci,CO=kt,Nv=Ot,OO=Hb,ope={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:r,data:i,it:s}=e;s.opts.removeAdditional==="all"&&r.additionalProperties===void 0&&OO.default.code(new spe.KeywordCxt(s,OO.default,"additionalProperties"));const o=(0,CO.allSchemaProperties)(n);for(const d of o)s.definedProperties.add(d);s.opts.unevaluated&&o.length&&s.props!==!0&&(s.props=Nv.mergeEvaluated.props(t,(0,Nv.toHash)(o),s.props));const a=o.filter(d=>!(0,Nv.alwaysValidSchema)(s,n[d]));if(a.length===0)return;const l=t.name("valid");for(const d of a)c(d)?u(d):(t.if((0,CO.propertyInData)(t,i,d,s.opts.ownProperties)),u(d),s.allErrors||t.else().var(l,!0),t.endIf()),e.it.definedProperties.add(d),e.ok(l);function c(d){return s.opts.useDefaults&&!s.compositeRule&&n[d].default!==void 0}function u(d){e.subschema({keyword:"properties",schemaProp:d,dataProp:d},l)}}};rS.default=ope;var iS={};Object.defineProperty(iS,"__esModule",{value:!0});const DO=kt,gm=ht,IO=Ot,RO=Ot,ape={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:r,parentSchema:i,it:s}=e,{opts:o}=s,a=(0,DO.allSchemaProperties)(n),l=a.filter(m=>(0,IO.alwaysValidSchema)(s,n[m]));if(a.length===0||l.length===a.length&&(!s.opts.unevaluated||s.props===!0))return;const c=o.strictSchema&&!o.allowMatchingProperties&&i.properties,u=t.name("valid");s.props!==!0&&!(s.props instanceof gm.Name)&&(s.props=(0,RO.evaluatedPropsToName)(t,s.props));const{props:d}=s;f();function f(){for(const m of a)c&&h(m),s.allErrors?p(m):(t.var(u,!0),p(m),t.if(u))}function h(m){for(const g in c)new RegExp(m).test(g)&&(0,IO.checkStrictMode)(s,`property ${g} matches pattern ${m} (use allowMatchingProperties)`)}function p(m){t.forIn("key",r,g=>{t.if((0,gm._)`${(0,DO.usePattern)(e,m)}.test(${g})`,()=>{const b=l.includes(m);b||e.subschema({keyword:"patternProperties",schemaProp:m,dataProp:g,dataPropType:RO.Type.Str},u),s.opts.unevaluated&&d!==!0?t.assign((0,gm._)`${d}[${g}]`,!0):!b&&!s.allErrors&&t.if((0,gm.not)(u),()=>t.break())})})}}};iS.default=ape;var sS={};Object.defineProperty(sS,"__esModule",{value:!0});const lpe=Ot,cpe={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:r}=e;if((0,lpe.alwaysValidSchema)(r,n)){e.fail();return}const i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};sS.default=cpe;var oS={};Object.defineProperty(oS,"__esModule",{value:!0});const upe=kt,dpe={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:upe.validateUnion,error:{message:"must match a schema in anyOf"}};oS.default=dpe;var aS={};Object.defineProperty(aS,"__esModule",{value:!0});const Jm=ht,fpe=Ot,hpe={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Jm._)`{passingSchemas: ${e.passing}}`},ppe={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:hpe,code(e){const{gen:t,schema:n,parentSchema:r,it:i}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(i.opts.discriminator&&r.discriminator)return;const s=n,o=t.let("valid",!1),a=t.let("passing",null),l=t.name("_valid");e.setParams({passing:a}),t.block(c),e.result(o,()=>e.reset(),()=>e.error(!0));function c(){s.forEach((u,d)=>{let f;(0,fpe.alwaysValidSchema)(i,u)?t.var(l,!0):f=e.subschema({keyword:"oneOf",schemaProp:d,compositeRule:!0},l),d>0&&t.if((0,Jm._)`${l} && ${o}`).assign(o,!1).assign(a,(0,Jm._)`[${a}, ${d}]`).else(),t.if(l,()=>{t.assign(o,!0),t.assign(a,d),f&&e.mergeEvaluated(f,Jm.Name)})})}}};aS.default=ppe;var lS={};Object.defineProperty(lS,"__esModule",{value:!0});const mpe=Ot,gpe={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:n,it:r}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");const i=t.name("valid");n.forEach((s,o)=>{if((0,mpe.alwaysValidSchema)(r,s))return;const a=e.subschema({keyword:"allOf",schemaProp:o},i);e.ok(i),e.mergeEvaluated(a)})}};lS.default=gpe;var cS={};Object.defineProperty(cS,"__esModule",{value:!0});const t0=ht,ZF=Ot,bpe={message:({params:e})=>(0,t0.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,t0._)`{failingKeyword: ${e.ifClause}}`},ype={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:bpe,code(e){const{gen:t,parentSchema:n,it:r}=e;n.then===void 0&&n.else===void 0&&(0,ZF.checkStrictMode)(r,'"if" without "then" and "else" is ignored');const i=PO(r,"then"),s=PO(r,"else");if(!i&&!s)return;const o=t.let("valid",!0),a=t.name("_valid");if(l(),e.reset(),i&&s){const u=t.let("ifClause");e.setParams({ifClause:u}),t.if(a,c("then",u),c("else",u))}else i?t.if(a,c("then")):t.if((0,t0.not)(a),c("else"));e.pass(o,()=>e.error(!0));function l(){const u=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);e.mergeEvaluated(u)}function c(u,d){return()=>{const f=e.subschema({keyword:u},a);t.assign(o,a),e.mergeValidEvaluated(f,o),d?t.assign(d,(0,t0._)`${u}`):e.setParams({ifClause:u})}}}};function PO(e,t){const n=e.schema[t];return n!==void 0&&!(0,ZF.alwaysValidSchema)(e,n)}cS.default=ype;var uS={};Object.defineProperty(uS,"__esModule",{value:!0});const vpe=Ot,Epe={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){t.if===void 0&&(0,vpe.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};uS.default=Epe;Object.defineProperty(Yh,"__esModule",{value:!0});const _pe=Qu,wpe=ZT,Tpe=Ju,Spe=eS,kpe=tS,Ape=Ub,xpe=nS,Npe=Hb,Cpe=rS,Ope=iS,Dpe=sS,Ipe=oS,Rpe=aS,Ppe=lS,Lpe=cS,Mpe=uS;function $pe(e=!1){const t=[Dpe.default,Ipe.default,Rpe.default,Ppe.default,Lpe.default,Mpe.default,xpe.default,Npe.default,Ape.default,Cpe.default,Ope.default];return e?t.push(wpe.default,Spe.default):t.push(_pe.default,Tpe.default),t.push(kpe.default),t}Yh.default=$pe;var Xh={},dS={};Object.defineProperty(dS,"__esModule",{value:!0});const En=ht,Fpe={message:({schemaCode:e})=>(0,En.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,En._)`{format: ${e}}`},Bpe={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:Fpe,code(e,t){const{gen:n,data:r,$data:i,schema:s,schemaCode:o,it:a}=e,{opts:l,errSchemaPath:c,schemaEnv:u,self:d}=a;if(!l.validateFormats)return;i?f():h();function f(){const p=n.scopeValue("formats",{ref:d.formats,code:l.code.formats}),m=n.const("fDef",(0,En._)`${p}[${o}]`),g=n.let("fType"),b=n.let("format");n.if((0,En._)`typeof ${m} == "object" && !(${m} instanceof RegExp)`,()=>n.assign(g,(0,En._)`${m}.type || "string"`).assign(b,(0,En._)`${m}.validate`),()=>n.assign(g,(0,En._)`"string"`).assign(b,m)),e.fail$data((0,En.or)(v(),y()));function v(){return l.strictSchema===!1?En.nil:(0,En._)`${o} && !${b}`}function y(){const E=u.$async?(0,En._)`(${m}.async ? await ${b}(${r}) : ${b}(${r}))`:(0,En._)`${b}(${r})`,T=(0,En._)`(typeof ${b} == "function" ? ${E} : ${b}.test(${r}))`;return(0,En._)`${b} && ${b} !== true && ${g} === ${t} && !${T}`}}function h(){const p=d.formats[s];if(!p){v();return}if(p===!0)return;const[m,g,b]=y(p);m===t&&e.pass(E());function v(){if(l.strictSchema===!1){d.logger.warn(T());return}throw new Error(T());function T(){return`unknown format "${s}" ignored in schema at path "${c}"`}}function y(T){const w=T instanceof RegExp?(0,En.regexpCode)(T):l.code.formats?(0,En._)`${l.code.formats}${(0,En.getProperty)(s)}`:void 0,S=n.scopeValue("formats",{key:s,ref:T,code:w});return typeof T=="object"&&!(T instanceof RegExp)?[T.type||"string",T.validate,(0,En._)`${S}.validate`]:["string",T,S]}function E(){if(typeof p=="object"&&!(p instanceof RegExp)&&p.async){if(!u.$async)throw new Error("async format in sync schema");return(0,En._)`await ${b}(${r})`}return typeof g=="function"?(0,En._)`${b}(${r})`:(0,En._)`${b}.test(${r})`}}}};dS.default=Bpe;Object.defineProperty(Xh,"__esModule",{value:!0});const Upe=dS,Hpe=[Upe.default];Xh.default=Hpe;var Xl={};Object.defineProperty(Xl,"__esModule",{value:!0});Xl.contentVocabulary=Xl.metadataVocabulary=void 0;Xl.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Xl.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(YT,"__esModule",{value:!0});const jpe=Cb,Vpe=Ob,qpe=Yh,zpe=Xh,LO=Xl,Kpe=[jpe.default,Vpe.default,(0,qpe.default)(),zpe.default,LO.metadataVocabulary,LO.contentVocabulary];YT.default=Kpe;var Qh={},e4={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))})(e4);Object.defineProperty(Qh,"__esModule",{value:!0});const Cc=ht,s_=e4,MO=Rr,Wpe=Ot,Gpe={message:({params:{discrError:e,tagName:t}})=>e===s_.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>(0,Cc._)`{error: ${e}, tag: ${n}, tagValue: ${t}}`},Ype={keyword:"discriminator",type:"object",schemaType:"object",error:Gpe,code(e){const{gen:t,data:n,schema:r,parentSchema:i,it:s}=e,{oneOf:o}=i;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");const a=r.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(r.mapping)throw new Error("discriminator: mapping is not supported");if(!o)throw new Error("discriminator: requires oneOf keyword");const l=t.let("valid",!1),c=t.const("tag",(0,Cc._)`${n}${(0,Cc.getProperty)(a)}`);t.if((0,Cc._)`typeof ${c} == "string"`,()=>u(),()=>e.error(!1,{discrError:s_.DiscrError.Tag,tag:c,tagName:a})),e.ok(l);function u(){const h=f();t.if(!1);for(const p in h)t.elseIf((0,Cc._)`${c} === ${p}`),t.assign(l,d(h[p]));t.else(),e.error(!1,{discrError:s_.DiscrError.Mapping,tag:c,tagName:a}),t.endIf()}function d(h){const p=t.name("valid"),m=e.subschema({keyword:"oneOf",schemaProp:h},p);return e.mergeEvaluated(m,Cc.Name),p}function f(){var h;const p={},m=b(i);let g=!0;for(let E=0;E<o.length;E++){let T=o[E];T!=null&&T.$ref&&!(0,Wpe.schemaHasRulesButRef)(T,s.self.RULES)&&(T=MO.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,T==null?void 0:T.$ref),T instanceof MO.SchemaEnv&&(T=T.schema));const w=(h=T==null?void 0:T.properties)===null||h===void 0?void 0:h[a];if(typeof w!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);g=g&&(m||b(T)),v(w,E)}if(!g)throw new Error(`discriminator: "${a}" must be required`);return p;function b({required:E}){return Array.isArray(E)&&E.includes(a)}function v(E,T){if(E.const)y(E.const,T);else if(E.enum)for(const w of E.enum)y(w,T);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function y(E,T){if(typeof E!="string"||E in p)throw new Error(`discriminator: "${a}" values must be unique strings`);p[E]=T}}}};Qh.default=Ype;const Xpe="http://json-schema.org/draft-07/schema#",Qpe="http://json-schema.org/draft-07/schema#",Jpe="Core schema meta-schema",Zpe={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},eme=["object","boolean"],tme={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},nme={$schema:Xpe,$id:Qpe,title:Jpe,definitions:Zpe,type:eme,properties:tme,default:!0};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const n=Ml,r=YT,i=Qh,s=nme,o=["/properties"],a="http://json-schema.org/draft-07/schema";class l extends n.default{_addVocabularies(){super._addVocabularies(),r.default.forEach(p=>this.addVocabulary(p)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const p=this.opts.$data?this.$dataMetaSchema(s,o):s;this.addMetaSchema(p,a,!1),this.refs["http://json-schema.org/schema"]=a}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}e.exports=t=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var c=Ci;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var u=ht;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var d=Yu;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var f=Xu;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(ZE,ZE.exports);var rme=ZE.exports;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=rme,n=ht,r=n.operators,i={formatMaximum:{okStr:"<=",ok:r.LTE,fail:r.GT},formatMinimum:{okStr:">=",ok:r.GTE,fail:r.LT},formatExclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},formatExclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},s={message:({keyword:a,schemaCode:l})=>n.str`should be ${i[a].okStr} ${l}`,params:({keyword:a,schemaCode:l})=>n._`{comparison: ${i[a].okStr}, limit: ${l}}`};e.formatLimitDefinition={keyword:Object.keys(i),type:"string",schemaType:"string",$data:!0,error:s,code(a){const{gen:l,data:c,schemaCode:u,keyword:d,it:f}=a,{opts:h,self:p}=f;if(!h.validateFormats)return;const m=new t.KeywordCxt(f,p.RULES.all.format.definition,"format");m.$data?g():b();function g(){const y=l.scopeValue("formats",{ref:p.formats,code:h.code.formats}),E=l.const("fmt",n._`${y}[${m.schemaCode}]`);a.fail$data(n.or(n._`typeof ${E} != "object"`,n._`${E} instanceof RegExp`,n._`typeof ${E}.compare != "function"`,v(E)))}function b(){const y=m.schema,E=p.formats[y];if(!E||E===!0)return;if(typeof E!="object"||E instanceof RegExp||typeof E.compare!="function")throw new Error(`"${d}": format "${y}" does not define "compare" function`);const T=l.scopeValue("formats",{key:y,ref:E,code:h.code.formats?n._`${h.code.formats}${n.getProperty(y)}`:void 0});a.fail$data(v(T))}function v(y){return n._`${y}.compare(${c}, ${u}) ${i[d].fail} 0`}},dependencies:["format"]};const o=a=>(a.addKeyword(e.formatLimitDefinition),a);e.default=o})(_F);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=EF,r=_F,i=ht,s=new i.Name("fullFormats"),o=new i.Name("fastFormats"),a=(c,u={keywords:!0})=>{if(Array.isArray(u))return l(c,u,n.fullFormats,s),c;const[d,f]=u.mode==="fast"?[n.fastFormats,o]:[n.fullFormats,s],h=u.formats||n.formatNames;return l(c,h,d,f),u.keywords&&r.default(c),c};a.get=(c,u="full")=>{const d=(u==="fast"?n.fastFormats:n.fullFormats)[c];if(!d)throw new Error(`Unknown format "${c}"`);return d};function l(c,u,d,f){var h,p;(h=(p=c.opts.code).formats)!==null&&h!==void 0||(p.formats=i._`require("ajv-formats/dist/formats").${f}`);for(const m of u)c.addFormat(m,d[m])}e.exports=t=a,Object.defineProperty(t,"__esModule",{value:!0}),t.default=a})(JE,JE.exports);var ime=JE.exports;const sme=HT(ime);var o_={exports:{}},fS={},hS={};Object.defineProperty(hS,"__esModule",{value:!0});const ome=$s,ame=["$schema","id","$defs",{keyword:"$comment"},"definitions",ome.default];hS.default=ame;var pS={},mS={};Object.defineProperty(mS,"__esModule",{value:!0});const a_=Ml,lme=ht,Uo=lme.operators,l_={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:Uo.LTE,fail:Uo.GT},{okStr:"<",ok:Uo.LT,fail:Uo.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:Uo.GTE,fail:Uo.LT},{okStr:">",ok:Uo.GT,fail:Uo.LTE}]}},cme={message:e=>a_.str`must be ${c_(e).okStr} ${e.schemaCode}`,params:e=>a_._`{comparison: ${c_(e).okStr}, limit: ${e.schemaCode}}`},ume={keyword:Object.keys(l_),type:"number",schemaType:"number",$data:!0,error:cme,code(e){const{data:t,schemaCode:n}=e;e.fail$data(a_._`${t} ${c_(e).fail} ${n} || isNaN(${t})`)}};function c_(e){var t;const n=e.keyword,r=!((t=e.parentSchema)===null||t===void 0)&&t[l_[n].exclusive]?1:0;return l_[n].ops[r]}mS.default=ume;var gS={};Object.defineProperty(gS,"__esModule",{value:!0});const $O={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},dme={keyword:Object.keys($O),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){const n=$O[e];if(t[n]===void 0)throw new Error(`${e} can only be used with ${n}`)}};gS.default=dme;Object.defineProperty(pS,"__esModule",{value:!0});const fme=mS,hme=gS,pme=Db,mme=Ib,gme=Rb,bme=Pb,yme=Lb,vme=Mb,Eme=$b,_me=Fb,wme=Bb,Tme=[fme.default,hme.default,pme.default,mme.default,gme.default,bme.default,yme.default,vme.default,Eme.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},_me.default,wme.default];pS.default=Tme;Object.defineProperty(fS,"__esModule",{value:!0});const Sme=hS,kme=pS,Ame=Yh,xme=Xh,Nme=["title","description","default"],Cme=[Sme.default,kme.default,Ame.default(),xme.default,Nme];fS.default=Cme;const Ome="http://json-schema.org/draft-04/schema#",Dme="http://json-schema.org/draft-04/schema#",Ime="Core schema meta-schema",Rme={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},Pme="object",Lme={id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},Mme={exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},$me={id:Ome,$schema:Dme,description:Ime,definitions:Rme,type:Pme,properties:Lme,dependencies:Mme,default:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const n=Ml,r=fS,i=Qh,s=$me,o=["/properties"],a="http://json-schema.org/draft-04/schema";class l extends n.default{constructor(f={}){super({...f,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),r.default.forEach(f=>this.addVocabulary(f)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const f=this.opts.$data?this.$dataMetaSchema(s,o):s;this.addMetaSchema(f,a,!1),this.refs["http://json-schema.org/schema"]=a}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}e.exports=t=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var c=Ml;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var u=Ml;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}})})(o_,o_.exports);var Fme=o_.exports;const Bme=HT(Fme);var u_={exports:{}},bS={},yS={},Zu={};Object.defineProperty(Zu,"__esModule",{value:!0});Zu.dynamicAnchor=void 0;const Cv=ht,Ume=pi,FO=Rr,Hme=$s,jme={keyword:"$dynamicAnchor",schemaType:"string",code:e=>t4(e,e.schema)};function t4(e,t){const{gen:n,it:r}=e;r.schemaEnv.root.dynamicAnchors[t]=!0;const i=(0,Cv._)`${Ume.default.dynamicAnchors}${(0,Cv.getProperty)(t)}`,s=r.errSchemaPath==="#"?r.validateName:Vme(e);n.if((0,Cv._)`!${i}`,()=>n.assign(i,s))}Zu.dynamicAnchor=t4;function Vme(e){const{schemaEnv:t,schema:n,self:r}=e.it,{root:i,baseId:s,localRefs:o,meta:a}=t.root,{schemaId:l}=r.opts,c=new FO.SchemaEnv({schema:n,schemaId:l,root:i,baseId:s,localRefs:o,meta:a});return FO.compileSchema.call(r,c),(0,Hme.getValidate)(e,c)}Zu.default=jme;var ed={};Object.defineProperty(ed,"__esModule",{value:!0});ed.dynamicRef=void 0;const BO=ht,qme=pi,UO=$s,zme={keyword:"$dynamicRef",schemaType:"string",code:e=>n4(e,e.schema)};function n4(e,t){const{gen:n,keyword:r,it:i}=e;if(t[0]!=="#")throw new Error(`"${r}" only supports hash fragment reference`);const s=t.slice(1);if(i.allErrors)o();else{const l=n.let("valid",!1);o(l),e.ok(l)}function o(l){if(i.schemaEnv.root.dynamicAnchors[s]){const c=n.let("_v",(0,BO._)`${qme.default.dynamicAnchors}${(0,BO.getProperty)(s)}`);n.if(c,a(c,l),a(i.validateName,l))}else a(i.validateName,l)()}function a(l,c){return c?()=>n.block(()=>{(0,UO.callRef)(e,l),n.let(c,!0)}):()=>(0,UO.callRef)(e,l)}}ed.dynamicRef=n4;ed.default=zme;var vS={};Object.defineProperty(vS,"__esModule",{value:!0});const Kme=Zu,Wme=Ot,Gme={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,Kme.dynamicAnchor)(e,""):(0,Wme.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};vS.default=Gme;var ES={};Object.defineProperty(ES,"__esModule",{value:!0});const Yme=ed,Xme={keyword:"$recursiveRef",schemaType:"string",code:e=>(0,Yme.dynamicRef)(e,e.schema)};ES.default=Xme;Object.defineProperty(yS,"__esModule",{value:!0});const Qme=Zu,Jme=ed,Zme=vS,ege=ES,tge=[Qme.default,Jme.default,Zme.default,ege.default];yS.default=tge;var _S={},wS={};Object.defineProperty(wS,"__esModule",{value:!0});const HO=Ub,nge={keyword:"dependentRequired",type:"object",schemaType:"object",error:HO.error,code:e=>(0,HO.validatePropertyDeps)(e)};wS.default=nge;var TS={};Object.defineProperty(TS,"__esModule",{value:!0});const rge=Ub,ige={keyword:"dependentSchemas",type:"object",schemaType:"object",code:e=>(0,rge.validateSchemaDeps)(e)};TS.default=ige;var SS={};Object.defineProperty(SS,"__esModule",{value:!0});const sge=Ot,oge={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:n}){t.contains===void 0&&(0,sge.checkStrictMode)(n,`"${e}" without "contains" is ignored`)}};SS.default=oge;Object.defineProperty(_S,"__esModule",{value:!0});const age=wS,lge=TS,cge=SS,uge=[age.default,lge.default,cge.default];_S.default=uge;var kS={},AS={};Object.defineProperty(AS,"__esModule",{value:!0});const Wo=ht,jO=Ot,dge=pi,fge={message:"must NOT have unevaluated properties",params:({params:e})=>(0,Wo._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`},hge={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:fge,code(e){const{gen:t,schema:n,data:r,errsCount:i,it:s}=e;if(!i)throw new Error("ajv implementation error");const{allErrors:o,props:a}=s;a instanceof Wo.Name?t.if((0,Wo._)`${a} !== true`,()=>t.forIn("key",r,d=>t.if(c(a,d),()=>l(d)))):a!==!0&&t.forIn("key",r,d=>a===void 0?l(d):t.if(u(a,d),()=>l(d))),s.props=!0,e.ok((0,Wo._)`${i} === ${dge.default.errors}`);function l(d){if(n===!1){e.setParams({unevaluatedProperty:d}),e.error(),o||t.break();return}if(!(0,jO.alwaysValidSchema)(s,n)){const f=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:d,dataPropType:jO.Type.Str},f),o||t.if((0,Wo.not)(f),()=>t.break())}}function c(d,f){return(0,Wo._)`!${d} || !${d}[${f}]`}function u(d,f){const h=[];for(const p in d)d[p]===!0&&h.push((0,Wo._)`${f} !== ${p}`);return(0,Wo.and)(...h)}}};AS.default=hge;var xS={};Object.defineProperty(xS,"__esModule",{value:!0});const ul=ht,VO=Ot,pge={message:({params:{len:e}})=>(0,ul.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,ul._)`{limit: ${e}}`},mge={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:pge,code(e){const{gen:t,schema:n,data:r,it:i}=e,s=i.items||0;if(s===!0)return;const o=t.const("len",(0,ul._)`${r}.length`);if(n===!1)e.setParams({len:s}),e.fail((0,ul._)`${o} > ${s}`);else if(typeof n=="object"&&!(0,VO.alwaysValidSchema)(i,n)){const l=t.var("valid",(0,ul._)`${o} <= ${s}`);t.if((0,ul.not)(l),()=>a(l,s)),e.ok(l)}i.items=!0;function a(l,c){t.forRange("i",c,o,u=>{e.subschema({keyword:"unevaluatedItems",dataProp:u,dataPropType:VO.Type.Num},l),i.allErrors||t.if((0,ul.not)(l),()=>t.break())})}}};xS.default=mge;Object.defineProperty(kS,"__esModule",{value:!0});const gge=AS,bge=xS,yge=[gge.default,bge.default];kS.default=yge;Object.defineProperty(bS,"__esModule",{value:!0});const vge=Cb,Ege=Ob,_ge=Yh,wge=yS,Tge=_S,Sge=kS,kge=Xh,qO=Xl,Age=[wge.default,vge.default,Ege.default,(0,_ge.default)(!0),kge.default,qO.metadataVocabulary,qO.contentVocabulary,Tge.default,Sge.default];bS.default=Age;var NS={};const xge="https://json-schema.org/draft/2020-12/schema",Nge="https://json-schema.org/draft/2020-12/schema",Cge={"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},Oge="meta",Dge="Core and Validation specifications meta-schema",Ige=[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],Rge=["object","boolean"],Pge="This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",Lge={definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}},Mge={$schema:xge,$id:Nge,$vocabulary:Cge,$dynamicAnchor:Oge,title:Dge,allOf:Ige,type:Rge,$comment:Pge,properties:Lge},$ge="https://json-schema.org/draft/2020-12/schema",Fge="https://json-schema.org/draft/2020-12/meta/applicator",Bge={"https://json-schema.org/draft/2020-12/vocab/applicator":!0},Uge="meta",Hge="Applicator vocabulary meta-schema",jge=["object","boolean"],Vge={prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},qge={schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}},zge={$schema:$ge,$id:Fge,$vocabulary:Bge,$dynamicAnchor:Uge,title:Hge,type:jge,properties:Vge,$defs:qge},Kge="https://json-schema.org/draft/2020-12/schema",Wge="https://json-schema.org/draft/2020-12/meta/unevaluated",Gge={"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},Yge="meta",Xge="Unevaluated applicator vocabulary meta-schema",Qge=["object","boolean"],Jge={unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}},Zge={$schema:Kge,$id:Wge,$vocabulary:Gge,$dynamicAnchor:Yge,title:Xge,type:Qge,properties:Jge},e0e="https://json-schema.org/draft/2020-12/schema",t0e="https://json-schema.org/draft/2020-12/meta/content",n0e={"https://json-schema.org/draft/2020-12/vocab/content":!0},r0e="meta",i0e="Content vocabulary meta-schema",s0e=["object","boolean"],o0e={contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}},a0e={$schema:e0e,$id:t0e,$vocabulary:n0e,$dynamicAnchor:r0e,title:i0e,type:s0e,properties:o0e},l0e="https://json-schema.org/draft/2020-12/schema",c0e="https://json-schema.org/draft/2020-12/meta/core",u0e={"https://json-schema.org/draft/2020-12/vocab/core":!0},d0e="meta",f0e="Core vocabulary meta-schema",h0e=["object","boolean"],p0e={$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},m0e={anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}},g0e={$schema:l0e,$id:c0e,$vocabulary:u0e,$dynamicAnchor:d0e,title:f0e,type:h0e,properties:p0e,$defs:m0e},b0e="https://json-schema.org/draft/2020-12/schema",y0e="https://json-schema.org/draft/2020-12/meta/format-annotation",v0e={"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},E0e="meta",_0e="Format vocabulary meta-schema for annotation results",w0e=["object","boolean"],T0e={format:{type:"string"}},S0e={$schema:b0e,$id:y0e,$vocabulary:v0e,$dynamicAnchor:E0e,title:_0e,type:w0e,properties:T0e},k0e="https://json-schema.org/draft/2020-12/schema",A0e="https://json-schema.org/draft/2020-12/meta/meta-data",x0e={"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},N0e="meta",C0e="Meta-data vocabulary meta-schema",O0e=["object","boolean"],D0e={title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}},I0e={$schema:k0e,$id:A0e,$vocabulary:x0e,$dynamicAnchor:N0e,title:C0e,type:O0e,properties:D0e},R0e="https://json-schema.org/draft/2020-12/schema",P0e="https://json-schema.org/draft/2020-12/meta/validation",L0e={"https://json-schema.org/draft/2020-12/vocab/validation":!0},M0e="meta",$0e="Validation vocabulary meta-schema",F0e=["object","boolean"],B0e={type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},U0e={nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},H0e={$schema:R0e,$id:P0e,$vocabulary:L0e,$dynamicAnchor:M0e,title:$0e,type:F0e,properties:B0e,$defs:U0e};Object.defineProperty(NS,"__esModule",{value:!0});const j0e=Mge,V0e=zge,q0e=Zge,z0e=a0e,K0e=g0e,W0e=S0e,G0e=I0e,Y0e=H0e,X0e=["/properties"];function Q0e(e){return[j0e,V0e,q0e,z0e,K0e,t(this,W0e),G0e,t(this,Y0e)].forEach(n=>this.addMetaSchema(n,void 0,!1)),this;function t(n,r){return e?n.$dataMetaSchema(r,X0e):r}}NS.default=Q0e;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const n=Ml,r=bS,i=Qh,s=NS,o="https://json-schema.org/draft/2020-12/schema";class a extends n.default{constructor(h={}){super({...h,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),r.default.forEach(h=>this.addVocabulary(h)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:h,meta:p}=this.opts;p&&(s.default.call(this,h),this.refs["http://json-schema.org/schema"]=o)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(o)?o:void 0)}}e.exports=t=a,Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var l=Ci;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var c=ht;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return c._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return c.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return c.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return c.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return c.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return c.CodeGen}});var u=Yu;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return u.default}});var d=Xu;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return d.default}})})(u_,u_.exports);var J0e=u_.exports;const Z0e=HT(J0e),r4=["2.0","3.0","3.1"],ebe={"http://json-schema.org/draft-04/schema#":Bme,"https://json-schema.org/draft/2020-12/schema":Z0e},d_={EMPTY_OR_INVALID:"Cannot find JSON, YAML or filename in data",OPENAPI_VERSION_NOT_SUPPORTED:"Cannot find supported Swagger/OpenAPI version in specification, version must be a string.",INVALID_REFERENCE:"Can’t resolve URI: %s",EXTERNAL_REFERENCE_NOT_SUPPORTED:"External references are not supported yet: %s"},tbe="x-inlined-refs";function bs(e,t){const n={};for(const[r,i]of Object.entries(e))Array.isArray(i)?n[r]=i.map(s=>typeof s=="object"&&s!==null?bs(s,t):s):typeof i=="object"&&i!==null?n[r]=bs(i,t):n[r]=i;return t(n)}function nbe(e,t){return bs(e,n=>t(n)?n:void 0)}function i4(e){return typeof e!==void 0&&Array.isArray(e)&&e.length>0&&e.some(t=>t.isEntrypoint===!0)}function rbe(e){const t=[];return!e||typeof e!="object"||bs(e,n=>(n.$ref&&typeof n.$ref=="string"&&!n.$ref.startsWith("#")&&t.push(n.$ref.split("#")[0]),n)),t}const CS=Symbol.for("yaml.alias"),f_=Symbol.for("yaml.document"),Ta=Symbol.for("yaml.map"),s4=Symbol.for("yaml.pair"),_o=Symbol.for("yaml.scalar"),td=Symbol.for("yaml.seq"),Pi=Symbol.for("yaml.node.type"),hc=e=>!!e&&typeof e=="object"&&e[Pi]===CS,nd=e=>!!e&&typeof e=="object"&&e[Pi]===f_,rd=e=>!!e&&typeof e=="object"&&e[Pi]===Ta,cn=e=>!!e&&typeof e=="object"&&e[Pi]===s4,en=e=>!!e&&typeof e=="object"&&e[Pi]===_o,id=e=>!!e&&typeof e=="object"&&e[Pi]===td;function dn(e){if(e&&typeof e=="object")switch(e[Pi]){case Ta:case td:return!0}return!1}function xn(e){if(e&&typeof e=="object")switch(e[Pi]){case CS:case Ta:case _o:case td:return!0}return!1}const ibe=e=>(en(e)||dn(e))&&!!e.anchor,Kr=Symbol("break visit"),o4=Symbol("skip children"),Rs=Symbol("remove node");function Pa(e,t){const n=a4(t);nd(e)?Mc(null,e.contents,n,Object.freeze([e]))===Rs&&(e.contents=null):Mc(null,e,n,Object.freeze([]))}Pa.BREAK=Kr;Pa.SKIP=o4;Pa.REMOVE=Rs;function Mc(e,t,n,r){const i=l4(e,t,n,r);if(xn(i)||cn(i))return c4(e,r,i),Mc(e,i,n,r);if(typeof i!="symbol"){if(dn(t)){r=Object.freeze(r.concat(t));for(let s=0;s<t.items.length;++s){const o=Mc(s,t.items[s],n,r);if(typeof o=="number")s=o-1;else{if(o===Kr)return Kr;o===Rs&&(t.items.splice(s,1),s-=1)}}}else if(cn(t)){r=Object.freeze(r.concat(t));const s=Mc("key",t.key,n,r);if(s===Kr)return Kr;s===Rs&&(t.key=null);const o=Mc("value",t.value,n,r);if(o===Kr)return Kr;o===Rs&&(t.value=null)}}return i}async function jb(e,t){const n=a4(t);nd(e)?await $c(null,e.contents,n,Object.freeze([e]))===Rs&&(e.contents=null):await $c(null,e,n,Object.freeze([]))}jb.BREAK=Kr;jb.SKIP=o4;jb.REMOVE=Rs;async function $c(e,t,n,r){const i=await l4(e,t,n,r);if(xn(i)||cn(i))return c4(e,r,i),$c(e,i,n,r);if(typeof i!="symbol"){if(dn(t)){r=Object.freeze(r.concat(t));for(let s=0;s<t.items.length;++s){const o=await $c(s,t.items[s],n,r);if(typeof o=="number")s=o-1;else{if(o===Kr)return Kr;o===Rs&&(t.items.splice(s,1),s-=1)}}}else if(cn(t)){r=Object.freeze(r.concat(t));const s=await $c("key",t.key,n,r);if(s===Kr)return Kr;s===Rs&&(t.key=null);const o=await $c("value",t.value,n,r);if(o===Kr)return Kr;o===Rs&&(t.value=null)}}return i}function a4(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 l4(e,t,n,r){var i,s,o,a,l;if(typeof n=="function")return n(e,t,r);if(rd(t))return(i=n.Map)==null?void 0:i.call(n,e,t,r);if(id(t))return(s=n.Seq)==null?void 0:s.call(n,e,t,r);if(cn(t))return(o=n.Pair)==null?void 0:o.call(n,e,t,r);if(en(t))return(a=n.Scalar)==null?void 0:a.call(n,e,t,r);if(hc(t))return(l=n.Alias)==null?void 0:l.call(n,e,t,r)}function c4(e,t,n){const r=t[t.length-1];if(dn(r))r.items[e]=n;else if(cn(r))e==="key"?r.key=n:r.value=n;else if(nd(r))r.contents=n;else{const i=hc(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}const sbe={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},obe=e=>e.replace(/[!,[\]{}]/g,t=>sbe[t]);class Or{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Or.defaultYaml,t),this.tags=Object.assign({},Or.defaultTags,n)}clone(){const t=new Or(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new Or(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:Or.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},Or.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:Or.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},Or.defaultTags),this.atNextDocument=!1);const 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;const[s,o]=r;return this.tags[s]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,r.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[s]=r;if(s==="1.1"||s==="1.2")return this.yaml.version=s,!0;{const o=/^\d+\.\d+$/.test(s);return n(6,`Unsupported YAML version ${s}`,o),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(t,n){if(t==="!")return"!";if(t[0]!=="!")return n(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const o=t.slice(2,-1);return o==="!"||o==="!!"?(n(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&n("Verbatim tags must end with a >"),o)}const[,r,i]=t.match(/^(.*!)([^!]*)$/s);i||n(`The ${t} tag has no suffix`);const s=this.tags[r];if(s)try{return s+decodeURIComponent(i)}catch(o){return n(String(o)),null}return r==="!"?t:(n(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[n,r]of Object.entries(this.tags))if(t.startsWith(r))return n+obe(t.substring(r.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);let i;if(t&&r.length>0&&xn(t.contents)){const s={};Pa(t.contents,(o,a)=>{xn(a)&&a.tag&&(s[a.tag]=!0)}),i=Object.keys(s)}else i=[];for(const[s,o]of r)s==="!!"&&o==="tag:yaml.org,2002:"||(!t||i.some(a=>a.startsWith(o)))&&n.push(`%TAG ${s} ${o}`);return n.join(`
232
- `)}}Or.defaultYaml={explicit:!1,version:"1.2"};Or.defaultTags={"!!":"tag:yaml.org,2002:"};function u4(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(t)}return!0}function d4(e){const t=new Set;return Pa(e,{Value(n,r){r.anchor&&t.add(r.anchor)}}),t}function f4(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}function abe(e,t){const n=[],r=new Map;let i=null;return{onAnchor:s=>{n.push(s),i||(i=d4(e));const o=f4(t,i);return i.add(o),o},setAnchors:()=>{for(const s of n){const o=r.get(s);if(typeof o=="object"&&o.anchor&&(en(o.node)||dn(o.node)))o.node.anchor=o.anchor;else{const a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=s,a}}},sourceObjects:r}}function Fc(e,t,n,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let i=0,s=r.length;i<s;++i){const o=r[i],a=Fc(e,r,String(i),o);a===void 0?delete r[i]:a!==o&&(r[i]=a)}else if(r instanceof Map)for(const i of Array.from(r.keys())){const s=r.get(i),o=Fc(e,r,i,s);o===void 0?r.delete(i):o!==s&&r.set(i,o)}else if(r instanceof Set)for(const i of Array.from(r)){const s=Fc(e,r,i,i);s===void 0?r.delete(i):s!==i&&(r.delete(i),r.add(s))}else for(const[i,s]of Object.entries(r)){const o=Fc(e,r,i,s);o===void 0?delete r[i]:o!==s&&(r[i]=o)}return e.call(t,n,r)}function Oi(e,t,n){if(Array.isArray(e))return e.map((r,i)=>Oi(r,String(i),n));if(e&&typeof e.toJSON=="function"){if(!n||!ibe(e))return e.toJSON(t,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=s=>{r.res=s,delete n.onCreate};const i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e=="bigint"&&!(n!=null&&n.keep)?Number(e):e}class OS{constructor(t){Object.defineProperty(this,Pi,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:s}={}){if(!nd(t))throw new TypeError("A document argument is required");const o={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},a=Oi(this,"",o);if(typeof i=="function")for(const{count:l,res:c}of o.anchors.values())i(c,l);return typeof s=="function"?Fc(s,{"":a},"",a):a}}class Vb extends OS{constructor(t){super(CS),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return Pa(t,{Node:(r,i)=>{if(i===this)return Pa.BREAK;i.anchor===this.source&&(n=i)}}),n}toJSON(t,n){if(!n)return{source:this.source};const{anchors:r,doc:i,maxAliasCount:s}=n,o=this.resolve(i);if(!o){const l=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(l)}let a=r.get(o);if(a||(Oi(o,null,n),a=r.get(o)),!a||a.res===void 0){const l="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(l)}if(s>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=Zm(i,o,r)),a.count*a.aliasCount>s)){const l="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(l)}return a.res}toString(t,n,r){const i=`*${this.source}`;if(t){if(u4(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const s=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(s)}if(t.implicitKey)return`${i} `}return i}}function Zm(e,t,n){if(hc(t)){const r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(dn(t)){let r=0;for(const i of t.items){const s=Zm(e,i,n);s>r&&(r=s)}return r}else if(cn(t)){const r=Zm(e,t.key,n),i=Zm(e,t.value,n);return Math.max(r,i)}return 1}const h4=e=>!e||typeof e!="function"&&typeof e!="object";class bt extends OS{constructor(t){super(_o),this.value=t}toJSON(t,n){return n!=null&&n.keep?this.value:Oi(this.value,t,n)}toString(){return String(this.value)}}bt.BLOCK_FOLDED="BLOCK_FOLDED";bt.BLOCK_LITERAL="BLOCK_LITERAL";bt.PLAIN="PLAIN";bt.QUOTE_DOUBLE="QUOTE_DOUBLE";bt.QUOTE_SINGLE="QUOTE_SINGLE";const lbe="tag:yaml.org,2002:";function cbe(e,t,n){if(t){const r=n.filter(s=>s.tag===t),i=r.find(s=>!s.format)??r[0];if(!i)throw new Error(`Tag ${t} not found`);return i}return n.find(r=>{var i;return((i=r.identify)==null?void 0:i.call(r,e))&&!r.format})}function uh(e,t,n){var r,i,s;if(nd(e)&&(e=e.contents),xn(e))return e;if(cn(e)){const p=(i=(r=n.schema[Ta]).createNode)==null?void 0:i.call(r,n.schema,null,n);return p.items.push(e),p}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:o,onAnchor:a,onTagObj:l,schema:c,sourceObjects:u}=n;let d;if(o&&e&&typeof e=="object"){if(d=u.get(e),d)return d.anchor||(d.anchor=a(e)),new Vb(d.anchor);d={anchor:null,node:null},u.set(e,d)}t!=null&&t.startsWith("!!")&&(t=lbe+t.slice(2));let f=cbe(e,t,c.tags);if(!f){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const p=new bt(e);return d&&(d.node=p),p}f=e instanceof Map?c[Ta]:Symbol.iterator in Object(e)?c[td]:c[Ta]}l&&(l(f),delete n.onTagObj);const h=f!=null&&f.createNode?f.createNode(n.schema,e,n):typeof((s=f==null?void 0:f.nodeClass)==null?void 0:s.from)=="function"?f.nodeClass.from(n.schema,e,n):new bt(e);return t?h.tag=t:f.default||(h.tag=f.tag),d&&(d.node=h),h}function n0(e,t,n){let r=n;for(let i=t.length-1;i>=0;--i){const s=t[i];if(typeof s=="number"&&Number.isInteger(s)&&s>=0){const o=[];o[s]=r,r=o}else r=new Map([[s,r]])}return uh(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const ef=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class DS extends OS{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(r=>xn(r)||cn(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(ef(t))this.add(n);else{const[r,...i]=t,s=this.get(r,!0);if(dn(s))s.addIn(i,n);else if(s===void 0&&this.schema)this.set(r,n0(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}deleteIn(t){const[n,...r]=t;if(r.length===0)return this.delete(n);const i=this.get(n,!0);if(dn(i))return i.deleteIn(r);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}getIn(t,n){const[r,...i]=t,s=this.get(r,!0);return i.length===0?!n&&en(s)?s.value:s:dn(s)?s.getIn(i,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!cn(n))return!1;const r=n.value;return r==null||t&&en(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(t){const[n,...r]=t;if(r.length===0)return this.has(n);const i=this.get(n,!0);return dn(i)?i.hasIn(r):!1}setIn(t,n){const[r,...i]=t;if(i.length===0)this.set(r,n);else{const s=this.get(r,!0);if(dn(s))s.setIn(i,n);else if(s===void 0&&this.schema)this.set(r,n0(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}}DS.maxFlowStringSingleLineLength=60;const ube=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function no(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const bl=(e,t,n)=>e.endsWith(`
231
+ deps: ${u}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(l){const[c,u]=s(l);o(l,c),a(l,u)}};function s({schema:l}){const c={},u={};for(const d in l){if(d==="__proto__")continue;const f=Array.isArray(l[d])?c:u;f[d]=l[d]}return[c,u]}function o(l,c=l.schema){const{gen:u,data:d,it:f}=l;if(Object.keys(c).length===0)return;const h=u.let("missing");for(const p in c){const m=c[p];if(m.length===0)continue;const g=(0,r.propertyInData)(u,d,p,f.opts.ownProperties);l.setParams({property:p,depsCount:m.length,deps:m.join(", ")}),f.allErrors?u.if(g,()=>{for(const b of m)(0,r.checkReportMissingProp)(l,b)}):(u.if((0,t._)`${g} && (${(0,r.checkMissingProp)(l,m,h)})`),(0,r.reportMissingProp)(l,h),u.else())}}e.validatePropertyDeps=o;function a(l,c=l.schema){const{gen:u,data:d,keyword:f,it:h}=l,p=u.name("valid");for(const m in c)(0,n.alwaysValidSchema)(h,c[m])||(u.if((0,r.propertyInData)(u,d,m,h.opts.ownProperties),()=>{const g=l.subschema({keyword:f,schemaProp:m},p);l.mergeValidEvaluated(g,p)},()=>u.var(p,!0)),l.ok(p))}e.validateSchemaDeps=a,e.default=i})(Ub);var nS={};Object.defineProperty(nS,"__esModule",{value:!0});const JF=ht,Qhe=Ot,Jhe={message:"property name must be valid",params:({params:e})=>(0,JF._)`{propertyName: ${e.propertyName}}`},Zhe={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Jhe,code(e){const{gen:t,schema:n,data:r,it:i}=e;if((0,Qhe.alwaysValidSchema)(i,n))return;const s=t.name("valid");t.forIn("key",r,o=>{e.setParams({propertyName:o}),e.subschema({keyword:"propertyNames",data:o,dataTypes:["string"],propertyName:o,compositeRule:!0},s),t.if((0,JF.not)(s),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(s)}};nS.default=Zhe;var Hb={};Object.defineProperty(Hb,"__esModule",{value:!0});const pm=kt,Ui=ht,epe=pi,mm=Ot,tpe={message:"must NOT have additional properties",params:({params:e})=>(0,Ui._)`{additionalProperty: ${e.additionalProperty}}`},npe={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:tpe,code(e){const{gen:t,schema:n,parentSchema:r,data:i,errsCount:s,it:o}=e;if(!s)throw new Error("ajv implementation error");const{allErrors:a,opts:l}=o;if(o.props=!0,l.removeAdditional!=="all"&&(0,mm.alwaysValidSchema)(o,n))return;const c=(0,pm.allSchemaProperties)(r.properties),u=(0,pm.allSchemaProperties)(r.patternProperties);d(),e.ok((0,Ui._)`${s} === ${epe.default.errors}`);function d(){t.forIn("key",i,g=>{!c.length&&!u.length?p(g):t.if(f(g),()=>p(g))})}function f(g){let b;if(c.length>8){const v=(0,mm.schemaRefOrVal)(o,r.properties,"properties");b=(0,pm.isOwnProperty)(t,v,g)}else c.length?b=(0,Ui.or)(...c.map(v=>(0,Ui._)`${g} === ${v}`)):b=Ui.nil;return u.length&&(b=(0,Ui.or)(b,...u.map(v=>(0,Ui._)`${(0,pm.usePattern)(e,v)}.test(${g})`))),(0,Ui.not)(b)}function h(g){t.code((0,Ui._)`delete ${i}[${g}]`)}function p(g){if(l.removeAdditional==="all"||l.removeAdditional&&n===!1){h(g);return}if(n===!1){e.setParams({additionalProperty:g}),e.error(),a||t.break();return}if(typeof n=="object"&&!(0,mm.alwaysValidSchema)(o,n)){const b=t.name("valid");l.removeAdditional==="failing"?(m(g,b,!1),t.if((0,Ui.not)(b),()=>{e.reset(),h(g)})):(m(g,b),a||t.if((0,Ui.not)(b),()=>t.break()))}}function m(g,b,v){const y={keyword:"additionalProperties",dataProp:g,dataPropType:mm.Type.Str};v===!1&&Object.assign(y,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(y,b)}}};Hb.default=npe;var rS={};Object.defineProperty(rS,"__esModule",{value:!0});const rpe=Ci,CO=kt,Nv=Ot,OO=Hb,ipe={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:r,data:i,it:s}=e;s.opts.removeAdditional==="all"&&r.additionalProperties===void 0&&OO.default.code(new rpe.KeywordCxt(s,OO.default,"additionalProperties"));const o=(0,CO.allSchemaProperties)(n);for(const d of o)s.definedProperties.add(d);s.opts.unevaluated&&o.length&&s.props!==!0&&(s.props=Nv.mergeEvaluated.props(t,(0,Nv.toHash)(o),s.props));const a=o.filter(d=>!(0,Nv.alwaysValidSchema)(s,n[d]));if(a.length===0)return;const l=t.name("valid");for(const d of a)c(d)?u(d):(t.if((0,CO.propertyInData)(t,i,d,s.opts.ownProperties)),u(d),s.allErrors||t.else().var(l,!0),t.endIf()),e.it.definedProperties.add(d),e.ok(l);function c(d){return s.opts.useDefaults&&!s.compositeRule&&n[d].default!==void 0}function u(d){e.subschema({keyword:"properties",schemaProp:d,dataProp:d},l)}}};rS.default=ipe;var iS={};Object.defineProperty(iS,"__esModule",{value:!0});const DO=kt,gm=ht,IO=Ot,RO=Ot,spe={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:r,parentSchema:i,it:s}=e,{opts:o}=s,a=(0,DO.allSchemaProperties)(n),l=a.filter(m=>(0,IO.alwaysValidSchema)(s,n[m]));if(a.length===0||l.length===a.length&&(!s.opts.unevaluated||s.props===!0))return;const c=o.strictSchema&&!o.allowMatchingProperties&&i.properties,u=t.name("valid");s.props!==!0&&!(s.props instanceof gm.Name)&&(s.props=(0,RO.evaluatedPropsToName)(t,s.props));const{props:d}=s;f();function f(){for(const m of a)c&&h(m),s.allErrors?p(m):(t.var(u,!0),p(m),t.if(u))}function h(m){for(const g in c)new RegExp(m).test(g)&&(0,IO.checkStrictMode)(s,`property ${g} matches pattern ${m} (use allowMatchingProperties)`)}function p(m){t.forIn("key",r,g=>{t.if((0,gm._)`${(0,DO.usePattern)(e,m)}.test(${g})`,()=>{const b=l.includes(m);b||e.subschema({keyword:"patternProperties",schemaProp:m,dataProp:g,dataPropType:RO.Type.Str},u),s.opts.unevaluated&&d!==!0?t.assign((0,gm._)`${d}[${g}]`,!0):!b&&!s.allErrors&&t.if((0,gm.not)(u),()=>t.break())})})}}};iS.default=spe;var sS={};Object.defineProperty(sS,"__esModule",{value:!0});const ope=Ot,ape={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:r}=e;if((0,ope.alwaysValidSchema)(r,n)){e.fail();return}const i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};sS.default=ape;var oS={};Object.defineProperty(oS,"__esModule",{value:!0});const lpe=kt,cpe={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:lpe.validateUnion,error:{message:"must match a schema in anyOf"}};oS.default=cpe;var aS={};Object.defineProperty(aS,"__esModule",{value:!0});const Jm=ht,upe=Ot,dpe={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Jm._)`{passingSchemas: ${e.passing}}`},fpe={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:dpe,code(e){const{gen:t,schema:n,parentSchema:r,it:i}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(i.opts.discriminator&&r.discriminator)return;const s=n,o=t.let("valid",!1),a=t.let("passing",null),l=t.name("_valid");e.setParams({passing:a}),t.block(c),e.result(o,()=>e.reset(),()=>e.error(!0));function c(){s.forEach((u,d)=>{let f;(0,upe.alwaysValidSchema)(i,u)?t.var(l,!0):f=e.subschema({keyword:"oneOf",schemaProp:d,compositeRule:!0},l),d>0&&t.if((0,Jm._)`${l} && ${o}`).assign(o,!1).assign(a,(0,Jm._)`[${a}, ${d}]`).else(),t.if(l,()=>{t.assign(o,!0),t.assign(a,d),f&&e.mergeEvaluated(f,Jm.Name)})})}}};aS.default=fpe;var lS={};Object.defineProperty(lS,"__esModule",{value:!0});const hpe=Ot,ppe={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:n,it:r}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");const i=t.name("valid");n.forEach((s,o)=>{if((0,hpe.alwaysValidSchema)(r,s))return;const a=e.subschema({keyword:"allOf",schemaProp:o},i);e.ok(i),e.mergeEvaluated(a)})}};lS.default=ppe;var cS={};Object.defineProperty(cS,"__esModule",{value:!0});const t0=ht,ZF=Ot,mpe={message:({params:e})=>(0,t0.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,t0._)`{failingKeyword: ${e.ifClause}}`},gpe={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:mpe,code(e){const{gen:t,parentSchema:n,it:r}=e;n.then===void 0&&n.else===void 0&&(0,ZF.checkStrictMode)(r,'"if" without "then" and "else" is ignored');const i=PO(r,"then"),s=PO(r,"else");if(!i&&!s)return;const o=t.let("valid",!0),a=t.name("_valid");if(l(),e.reset(),i&&s){const u=t.let("ifClause");e.setParams({ifClause:u}),t.if(a,c("then",u),c("else",u))}else i?t.if(a,c("then")):t.if((0,t0.not)(a),c("else"));e.pass(o,()=>e.error(!0));function l(){const u=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);e.mergeEvaluated(u)}function c(u,d){return()=>{const f=e.subschema({keyword:u},a);t.assign(o,a),e.mergeValidEvaluated(f,o),d?t.assign(d,(0,t0._)`${u}`):e.setParams({ifClause:u})}}}};function PO(e,t){const n=e.schema[t];return n!==void 0&&!(0,ZF.alwaysValidSchema)(e,n)}cS.default=gpe;var uS={};Object.defineProperty(uS,"__esModule",{value:!0});const bpe=Ot,ype={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){t.if===void 0&&(0,bpe.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};uS.default=ype;Object.defineProperty(Yh,"__esModule",{value:!0});const vpe=Qu,Epe=ZT,_pe=Ju,wpe=eS,Tpe=tS,Spe=Ub,kpe=nS,Ape=Hb,xpe=rS,Npe=iS,Cpe=sS,Ope=oS,Dpe=aS,Ipe=lS,Rpe=cS,Ppe=uS;function Lpe(e=!1){const t=[Cpe.default,Ope.default,Dpe.default,Ipe.default,Rpe.default,Ppe.default,kpe.default,Ape.default,Spe.default,xpe.default,Npe.default];return e?t.push(Epe.default,wpe.default):t.push(vpe.default,_pe.default),t.push(Tpe.default),t}Yh.default=Lpe;var Xh={},dS={};Object.defineProperty(dS,"__esModule",{value:!0});const En=ht,Mpe={message:({schemaCode:e})=>(0,En.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,En._)`{format: ${e}}`},$pe={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:Mpe,code(e,t){const{gen:n,data:r,$data:i,schema:s,schemaCode:o,it:a}=e,{opts:l,errSchemaPath:c,schemaEnv:u,self:d}=a;if(!l.validateFormats)return;i?f():h();function f(){const p=n.scopeValue("formats",{ref:d.formats,code:l.code.formats}),m=n.const("fDef",(0,En._)`${p}[${o}]`),g=n.let("fType"),b=n.let("format");n.if((0,En._)`typeof ${m} == "object" && !(${m} instanceof RegExp)`,()=>n.assign(g,(0,En._)`${m}.type || "string"`).assign(b,(0,En._)`${m}.validate`),()=>n.assign(g,(0,En._)`"string"`).assign(b,m)),e.fail$data((0,En.or)(v(),y()));function v(){return l.strictSchema===!1?En.nil:(0,En._)`${o} && !${b}`}function y(){const E=u.$async?(0,En._)`(${m}.async ? await ${b}(${r}) : ${b}(${r}))`:(0,En._)`${b}(${r})`,T=(0,En._)`(typeof ${b} == "function" ? ${E} : ${b}.test(${r}))`;return(0,En._)`${b} && ${b} !== true && ${g} === ${t} && !${T}`}}function h(){const p=d.formats[s];if(!p){v();return}if(p===!0)return;const[m,g,b]=y(p);m===t&&e.pass(E());function v(){if(l.strictSchema===!1){d.logger.warn(T());return}throw new Error(T());function T(){return`unknown format "${s}" ignored in schema at path "${c}"`}}function y(T){const w=T instanceof RegExp?(0,En.regexpCode)(T):l.code.formats?(0,En._)`${l.code.formats}${(0,En.getProperty)(s)}`:void 0,S=n.scopeValue("formats",{key:s,ref:T,code:w});return typeof T=="object"&&!(T instanceof RegExp)?[T.type||"string",T.validate,(0,En._)`${S}.validate`]:["string",T,S]}function E(){if(typeof p=="object"&&!(p instanceof RegExp)&&p.async){if(!u.$async)throw new Error("async format in sync schema");return(0,En._)`await ${b}(${r})`}return typeof g=="function"?(0,En._)`${b}(${r})`:(0,En._)`${b}.test(${r})`}}}};dS.default=$pe;Object.defineProperty(Xh,"__esModule",{value:!0});const Fpe=dS,Bpe=[Fpe.default];Xh.default=Bpe;var Xl={};Object.defineProperty(Xl,"__esModule",{value:!0});Xl.contentVocabulary=Xl.metadataVocabulary=void 0;Xl.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Xl.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(YT,"__esModule",{value:!0});const Upe=Cb,Hpe=Ob,jpe=Yh,Vpe=Xh,LO=Xl,qpe=[Upe.default,Hpe.default,(0,jpe.default)(),Vpe.default,LO.metadataVocabulary,LO.contentVocabulary];YT.default=qpe;var Qh={},e4={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))})(e4);Object.defineProperty(Qh,"__esModule",{value:!0});const Cc=ht,s_=e4,MO=Rr,zpe=Ot,Kpe={message:({params:{discrError:e,tagName:t}})=>e===s_.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>(0,Cc._)`{error: ${e}, tag: ${n}, tagValue: ${t}}`},Wpe={keyword:"discriminator",type:"object",schemaType:"object",error:Kpe,code(e){const{gen:t,data:n,schema:r,parentSchema:i,it:s}=e,{oneOf:o}=i;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");const a=r.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(r.mapping)throw new Error("discriminator: mapping is not supported");if(!o)throw new Error("discriminator: requires oneOf keyword");const l=t.let("valid",!1),c=t.const("tag",(0,Cc._)`${n}${(0,Cc.getProperty)(a)}`);t.if((0,Cc._)`typeof ${c} == "string"`,()=>u(),()=>e.error(!1,{discrError:s_.DiscrError.Tag,tag:c,tagName:a})),e.ok(l);function u(){const h=f();t.if(!1);for(const p in h)t.elseIf((0,Cc._)`${c} === ${p}`),t.assign(l,d(h[p]));t.else(),e.error(!1,{discrError:s_.DiscrError.Mapping,tag:c,tagName:a}),t.endIf()}function d(h){const p=t.name("valid"),m=e.subschema({keyword:"oneOf",schemaProp:h},p);return e.mergeEvaluated(m,Cc.Name),p}function f(){var h;const p={},m=b(i);let g=!0;for(let E=0;E<o.length;E++){let T=o[E];T!=null&&T.$ref&&!(0,zpe.schemaHasRulesButRef)(T,s.self.RULES)&&(T=MO.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,T==null?void 0:T.$ref),T instanceof MO.SchemaEnv&&(T=T.schema));const w=(h=T==null?void 0:T.properties)===null||h===void 0?void 0:h[a];if(typeof w!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);g=g&&(m||b(T)),v(w,E)}if(!g)throw new Error(`discriminator: "${a}" must be required`);return p;function b({required:E}){return Array.isArray(E)&&E.includes(a)}function v(E,T){if(E.const)y(E.const,T);else if(E.enum)for(const w of E.enum)y(w,T);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function y(E,T){if(typeof E!="string"||E in p)throw new Error(`discriminator: "${a}" values must be unique strings`);p[E]=T}}}};Qh.default=Wpe;const Gpe="http://json-schema.org/draft-07/schema#",Ype="http://json-schema.org/draft-07/schema#",Xpe="Core schema meta-schema",Qpe={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},Jpe=["object","boolean"],Zpe={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},eme={$schema:Gpe,$id:Ype,title:Xpe,definitions:Qpe,type:Jpe,properties:Zpe,default:!0};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const n=Ml,r=YT,i=Qh,s=eme,o=["/properties"],a="http://json-schema.org/draft-07/schema";class l extends n.default{_addVocabularies(){super._addVocabularies(),r.default.forEach(p=>this.addVocabulary(p)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const p=this.opts.$data?this.$dataMetaSchema(s,o):s;this.addMetaSchema(p,a,!1),this.refs["http://json-schema.org/schema"]=a}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}e.exports=t=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var c=Ci;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var u=ht;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var d=Yu;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var f=Xu;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(ZE,ZE.exports);var tme=ZE.exports;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=tme,n=ht,r=n.operators,i={formatMaximum:{okStr:"<=",ok:r.LTE,fail:r.GT},formatMinimum:{okStr:">=",ok:r.GTE,fail:r.LT},formatExclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},formatExclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},s={message:({keyword:a,schemaCode:l})=>n.str`should be ${i[a].okStr} ${l}`,params:({keyword:a,schemaCode:l})=>n._`{comparison: ${i[a].okStr}, limit: ${l}}`};e.formatLimitDefinition={keyword:Object.keys(i),type:"string",schemaType:"string",$data:!0,error:s,code(a){const{gen:l,data:c,schemaCode:u,keyword:d,it:f}=a,{opts:h,self:p}=f;if(!h.validateFormats)return;const m=new t.KeywordCxt(f,p.RULES.all.format.definition,"format");m.$data?g():b();function g(){const y=l.scopeValue("formats",{ref:p.formats,code:h.code.formats}),E=l.const("fmt",n._`${y}[${m.schemaCode}]`);a.fail$data(n.or(n._`typeof ${E} != "object"`,n._`${E} instanceof RegExp`,n._`typeof ${E}.compare != "function"`,v(E)))}function b(){const y=m.schema,E=p.formats[y];if(!E||E===!0)return;if(typeof E!="object"||E instanceof RegExp||typeof E.compare!="function")throw new Error(`"${d}": format "${y}" does not define "compare" function`);const T=l.scopeValue("formats",{key:y,ref:E,code:h.code.formats?n._`${h.code.formats}${n.getProperty(y)}`:void 0});a.fail$data(v(T))}function v(y){return n._`${y}.compare(${c}, ${u}) ${i[d].fail} 0`}},dependencies:["format"]};const o=a=>(a.addKeyword(e.formatLimitDefinition),a);e.default=o})(_F);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=EF,r=_F,i=ht,s=new i.Name("fullFormats"),o=new i.Name("fastFormats"),a=(c,u={keywords:!0})=>{if(Array.isArray(u))return l(c,u,n.fullFormats,s),c;const[d,f]=u.mode==="fast"?[n.fastFormats,o]:[n.fullFormats,s],h=u.formats||n.formatNames;return l(c,h,d,f),u.keywords&&r.default(c),c};a.get=(c,u="full")=>{const d=(u==="fast"?n.fastFormats:n.fullFormats)[c];if(!d)throw new Error(`Unknown format "${c}"`);return d};function l(c,u,d,f){var h,p;(h=(p=c.opts.code).formats)!==null&&h!==void 0||(p.formats=i._`require("ajv-formats/dist/formats").${f}`);for(const m of u)c.addFormat(m,d[m])}e.exports=t=a,Object.defineProperty(t,"__esModule",{value:!0}),t.default=a})(JE,JE.exports);var nme=JE.exports;const rme=HT(nme);var o_={exports:{}},fS={},hS={};Object.defineProperty(hS,"__esModule",{value:!0});const ime=$s,sme=["$schema","id","$defs",{keyword:"$comment"},"definitions",ime.default];hS.default=sme;var pS={},mS={};Object.defineProperty(mS,"__esModule",{value:!0});const a_=Ml,ome=ht,Uo=ome.operators,l_={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:Uo.LTE,fail:Uo.GT},{okStr:"<",ok:Uo.LT,fail:Uo.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:Uo.GTE,fail:Uo.LT},{okStr:">",ok:Uo.GT,fail:Uo.LTE}]}},ame={message:e=>a_.str`must be ${c_(e).okStr} ${e.schemaCode}`,params:e=>a_._`{comparison: ${c_(e).okStr}, limit: ${e.schemaCode}}`},lme={keyword:Object.keys(l_),type:"number",schemaType:"number",$data:!0,error:ame,code(e){const{data:t,schemaCode:n}=e;e.fail$data(a_._`${t} ${c_(e).fail} ${n} || isNaN(${t})`)}};function c_(e){var t;const n=e.keyword,r=!((t=e.parentSchema)===null||t===void 0)&&t[l_[n].exclusive]?1:0;return l_[n].ops[r]}mS.default=lme;var gS={};Object.defineProperty(gS,"__esModule",{value:!0});const $O={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},cme={keyword:Object.keys($O),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){const n=$O[e];if(t[n]===void 0)throw new Error(`${e} can only be used with ${n}`)}};gS.default=cme;Object.defineProperty(pS,"__esModule",{value:!0});const ume=mS,dme=gS,fme=Db,hme=Ib,pme=Rb,mme=Pb,gme=Lb,bme=Mb,yme=$b,vme=Fb,Eme=Bb,_me=[ume.default,dme.default,fme.default,hme.default,pme.default,mme.default,gme.default,bme.default,yme.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},vme.default,Eme.default];pS.default=_me;Object.defineProperty(fS,"__esModule",{value:!0});const wme=hS,Tme=pS,Sme=Yh,kme=Xh,Ame=["title","description","default"],xme=[wme.default,Tme.default,Sme.default(),kme.default,Ame];fS.default=xme;const Nme="http://json-schema.org/draft-04/schema#",Cme="http://json-schema.org/draft-04/schema#",Ome="Core schema meta-schema",Dme={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},Ime="object",Rme={id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},Pme={exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},Lme={id:Nme,$schema:Cme,description:Ome,definitions:Dme,type:Ime,properties:Rme,dependencies:Pme,default:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const n=Ml,r=fS,i=Qh,s=Lme,o=["/properties"],a="http://json-schema.org/draft-04/schema";class l extends n.default{constructor(f={}){super({...f,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),r.default.forEach(f=>this.addVocabulary(f)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const f=this.opts.$data?this.$dataMetaSchema(s,o):s;this.addMetaSchema(f,a,!1),this.refs["http://json-schema.org/schema"]=a}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}e.exports=t=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var c=Ml;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var u=Ml;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}})})(o_,o_.exports);var Mme=o_.exports;const $me=HT(Mme);var u_={exports:{}},bS={},yS={},Zu={};Object.defineProperty(Zu,"__esModule",{value:!0});Zu.dynamicAnchor=void 0;const Cv=ht,Fme=pi,FO=Rr,Bme=$s,Ume={keyword:"$dynamicAnchor",schemaType:"string",code:e=>t4(e,e.schema)};function t4(e,t){const{gen:n,it:r}=e;r.schemaEnv.root.dynamicAnchors[t]=!0;const i=(0,Cv._)`${Fme.default.dynamicAnchors}${(0,Cv.getProperty)(t)}`,s=r.errSchemaPath==="#"?r.validateName:Hme(e);n.if((0,Cv._)`!${i}`,()=>n.assign(i,s))}Zu.dynamicAnchor=t4;function Hme(e){const{schemaEnv:t,schema:n,self:r}=e.it,{root:i,baseId:s,localRefs:o,meta:a}=t.root,{schemaId:l}=r.opts,c=new FO.SchemaEnv({schema:n,schemaId:l,root:i,baseId:s,localRefs:o,meta:a});return FO.compileSchema.call(r,c),(0,Bme.getValidate)(e,c)}Zu.default=Ume;var ed={};Object.defineProperty(ed,"__esModule",{value:!0});ed.dynamicRef=void 0;const BO=ht,jme=pi,UO=$s,Vme={keyword:"$dynamicRef",schemaType:"string",code:e=>n4(e,e.schema)};function n4(e,t){const{gen:n,keyword:r,it:i}=e;if(t[0]!=="#")throw new Error(`"${r}" only supports hash fragment reference`);const s=t.slice(1);if(i.allErrors)o();else{const l=n.let("valid",!1);o(l),e.ok(l)}function o(l){if(i.schemaEnv.root.dynamicAnchors[s]){const c=n.let("_v",(0,BO._)`${jme.default.dynamicAnchors}${(0,BO.getProperty)(s)}`);n.if(c,a(c,l),a(i.validateName,l))}else a(i.validateName,l)()}function a(l,c){return c?()=>n.block(()=>{(0,UO.callRef)(e,l),n.let(c,!0)}):()=>(0,UO.callRef)(e,l)}}ed.dynamicRef=n4;ed.default=Vme;var vS={};Object.defineProperty(vS,"__esModule",{value:!0});const qme=Zu,zme=Ot,Kme={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,qme.dynamicAnchor)(e,""):(0,zme.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};vS.default=Kme;var ES={};Object.defineProperty(ES,"__esModule",{value:!0});const Wme=ed,Gme={keyword:"$recursiveRef",schemaType:"string",code:e=>(0,Wme.dynamicRef)(e,e.schema)};ES.default=Gme;Object.defineProperty(yS,"__esModule",{value:!0});const Yme=Zu,Xme=ed,Qme=vS,Jme=ES,Zme=[Yme.default,Xme.default,Qme.default,Jme.default];yS.default=Zme;var _S={},wS={};Object.defineProperty(wS,"__esModule",{value:!0});const HO=Ub,ege={keyword:"dependentRequired",type:"object",schemaType:"object",error:HO.error,code:e=>(0,HO.validatePropertyDeps)(e)};wS.default=ege;var TS={};Object.defineProperty(TS,"__esModule",{value:!0});const tge=Ub,nge={keyword:"dependentSchemas",type:"object",schemaType:"object",code:e=>(0,tge.validateSchemaDeps)(e)};TS.default=nge;var SS={};Object.defineProperty(SS,"__esModule",{value:!0});const rge=Ot,ige={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:n}){t.contains===void 0&&(0,rge.checkStrictMode)(n,`"${e}" without "contains" is ignored`)}};SS.default=ige;Object.defineProperty(_S,"__esModule",{value:!0});const sge=wS,oge=TS,age=SS,lge=[sge.default,oge.default,age.default];_S.default=lge;var kS={},AS={};Object.defineProperty(AS,"__esModule",{value:!0});const Wo=ht,jO=Ot,cge=pi,uge={message:"must NOT have unevaluated properties",params:({params:e})=>(0,Wo._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`},dge={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:uge,code(e){const{gen:t,schema:n,data:r,errsCount:i,it:s}=e;if(!i)throw new Error("ajv implementation error");const{allErrors:o,props:a}=s;a instanceof Wo.Name?t.if((0,Wo._)`${a} !== true`,()=>t.forIn("key",r,d=>t.if(c(a,d),()=>l(d)))):a!==!0&&t.forIn("key",r,d=>a===void 0?l(d):t.if(u(a,d),()=>l(d))),s.props=!0,e.ok((0,Wo._)`${i} === ${cge.default.errors}`);function l(d){if(n===!1){e.setParams({unevaluatedProperty:d}),e.error(),o||t.break();return}if(!(0,jO.alwaysValidSchema)(s,n)){const f=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:d,dataPropType:jO.Type.Str},f),o||t.if((0,Wo.not)(f),()=>t.break())}}function c(d,f){return(0,Wo._)`!${d} || !${d}[${f}]`}function u(d,f){const h=[];for(const p in d)d[p]===!0&&h.push((0,Wo._)`${f} !== ${p}`);return(0,Wo.and)(...h)}}};AS.default=dge;var xS={};Object.defineProperty(xS,"__esModule",{value:!0});const ul=ht,VO=Ot,fge={message:({params:{len:e}})=>(0,ul.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,ul._)`{limit: ${e}}`},hge={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:fge,code(e){const{gen:t,schema:n,data:r,it:i}=e,s=i.items||0;if(s===!0)return;const o=t.const("len",(0,ul._)`${r}.length`);if(n===!1)e.setParams({len:s}),e.fail((0,ul._)`${o} > ${s}`);else if(typeof n=="object"&&!(0,VO.alwaysValidSchema)(i,n)){const l=t.var("valid",(0,ul._)`${o} <= ${s}`);t.if((0,ul.not)(l),()=>a(l,s)),e.ok(l)}i.items=!0;function a(l,c){t.forRange("i",c,o,u=>{e.subschema({keyword:"unevaluatedItems",dataProp:u,dataPropType:VO.Type.Num},l),i.allErrors||t.if((0,ul.not)(l),()=>t.break())})}}};xS.default=hge;Object.defineProperty(kS,"__esModule",{value:!0});const pge=AS,mge=xS,gge=[pge.default,mge.default];kS.default=gge;Object.defineProperty(bS,"__esModule",{value:!0});const bge=Cb,yge=Ob,vge=Yh,Ege=yS,_ge=_S,wge=kS,Tge=Xh,qO=Xl,Sge=[Ege.default,bge.default,yge.default,(0,vge.default)(!0),Tge.default,qO.metadataVocabulary,qO.contentVocabulary,_ge.default,wge.default];bS.default=Sge;var NS={};const kge="https://json-schema.org/draft/2020-12/schema",Age="https://json-schema.org/draft/2020-12/schema",xge={"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},Nge="meta",Cge="Core and Validation specifications meta-schema",Oge=[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],Dge=["object","boolean"],Ige="This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",Rge={definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}},Pge={$schema:kge,$id:Age,$vocabulary:xge,$dynamicAnchor:Nge,title:Cge,allOf:Oge,type:Dge,$comment:Ige,properties:Rge},Lge="https://json-schema.org/draft/2020-12/schema",Mge="https://json-schema.org/draft/2020-12/meta/applicator",$ge={"https://json-schema.org/draft/2020-12/vocab/applicator":!0},Fge="meta",Bge="Applicator vocabulary meta-schema",Uge=["object","boolean"],Hge={prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},jge={schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}},Vge={$schema:Lge,$id:Mge,$vocabulary:$ge,$dynamicAnchor:Fge,title:Bge,type:Uge,properties:Hge,$defs:jge},qge="https://json-schema.org/draft/2020-12/schema",zge="https://json-schema.org/draft/2020-12/meta/unevaluated",Kge={"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},Wge="meta",Gge="Unevaluated applicator vocabulary meta-schema",Yge=["object","boolean"],Xge={unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}},Qge={$schema:qge,$id:zge,$vocabulary:Kge,$dynamicAnchor:Wge,title:Gge,type:Yge,properties:Xge},Jge="https://json-schema.org/draft/2020-12/schema",Zge="https://json-schema.org/draft/2020-12/meta/content",e0e={"https://json-schema.org/draft/2020-12/vocab/content":!0},t0e="meta",n0e="Content vocabulary meta-schema",r0e=["object","boolean"],i0e={contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}},s0e={$schema:Jge,$id:Zge,$vocabulary:e0e,$dynamicAnchor:t0e,title:n0e,type:r0e,properties:i0e},o0e="https://json-schema.org/draft/2020-12/schema",a0e="https://json-schema.org/draft/2020-12/meta/core",l0e={"https://json-schema.org/draft/2020-12/vocab/core":!0},c0e="meta",u0e="Core vocabulary meta-schema",d0e=["object","boolean"],f0e={$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},h0e={anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}},p0e={$schema:o0e,$id:a0e,$vocabulary:l0e,$dynamicAnchor:c0e,title:u0e,type:d0e,properties:f0e,$defs:h0e},m0e="https://json-schema.org/draft/2020-12/schema",g0e="https://json-schema.org/draft/2020-12/meta/format-annotation",b0e={"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},y0e="meta",v0e="Format vocabulary meta-schema for annotation results",E0e=["object","boolean"],_0e={format:{type:"string"}},w0e={$schema:m0e,$id:g0e,$vocabulary:b0e,$dynamicAnchor:y0e,title:v0e,type:E0e,properties:_0e},T0e="https://json-schema.org/draft/2020-12/schema",S0e="https://json-schema.org/draft/2020-12/meta/meta-data",k0e={"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},A0e="meta",x0e="Meta-data vocabulary meta-schema",N0e=["object","boolean"],C0e={title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}},O0e={$schema:T0e,$id:S0e,$vocabulary:k0e,$dynamicAnchor:A0e,title:x0e,type:N0e,properties:C0e},D0e="https://json-schema.org/draft/2020-12/schema",I0e="https://json-schema.org/draft/2020-12/meta/validation",R0e={"https://json-schema.org/draft/2020-12/vocab/validation":!0},P0e="meta",L0e="Validation vocabulary meta-schema",M0e=["object","boolean"],$0e={type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},F0e={nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},B0e={$schema:D0e,$id:I0e,$vocabulary:R0e,$dynamicAnchor:P0e,title:L0e,type:M0e,properties:$0e,$defs:F0e};Object.defineProperty(NS,"__esModule",{value:!0});const U0e=Pge,H0e=Vge,j0e=Qge,V0e=s0e,q0e=p0e,z0e=w0e,K0e=O0e,W0e=B0e,G0e=["/properties"];function Y0e(e){return[U0e,H0e,j0e,V0e,q0e,t(this,z0e),K0e,t(this,W0e)].forEach(n=>this.addMetaSchema(n,void 0,!1)),this;function t(n,r){return e?n.$dataMetaSchema(r,G0e):r}}NS.default=Y0e;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const n=Ml,r=bS,i=Qh,s=NS,o="https://json-schema.org/draft/2020-12/schema";class a extends n.default{constructor(h={}){super({...h,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),r.default.forEach(h=>this.addVocabulary(h)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:h,meta:p}=this.opts;p&&(s.default.call(this,h),this.refs["http://json-schema.org/schema"]=o)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(o)?o:void 0)}}e.exports=t=a,Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var l=Ci;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var c=ht;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return c._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return c.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return c.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return c.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return c.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return c.CodeGen}});var u=Yu;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return u.default}});var d=Xu;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return d.default}})})(u_,u_.exports);var X0e=u_.exports;const Q0e=HT(X0e),r4=["2.0","3.0","3.1"],J0e={"http://json-schema.org/draft-04/schema#":$me,"https://json-schema.org/draft/2020-12/schema":Q0e},d_={EMPTY_OR_INVALID:"Cannot find JSON, YAML or filename in data",OPENAPI_VERSION_NOT_SUPPORTED:"Cannot find supported Swagger/OpenAPI version in specification, version must be a string.",INVALID_REFERENCE:"Can’t resolve URI: %s",EXTERNAL_REFERENCE_NOT_SUPPORTED:"External references are not supported yet: %s"},Z0e="x-inlined-refs";function bs(e,t){const n={};for(const[r,i]of Object.entries(e))Array.isArray(i)?n[r]=i.map(s=>typeof s=="object"&&s!==null?bs(s,t):s):typeof i=="object"&&i!==null?n[r]=bs(i,t):n[r]=i;return t(n)}function ebe(e,t){return bs(e,n=>t(n)?n:void 0)}function i4(e){return typeof e!==void 0&&Array.isArray(e)&&e.length>0&&e.some(t=>t.isEntrypoint===!0)}function tbe(e){const t=[];return!e||typeof e!="object"||bs(e,n=>(n.$ref&&typeof n.$ref=="string"&&!n.$ref.startsWith("#")&&t.push(n.$ref.split("#")[0]),n)),t}const CS=Symbol.for("yaml.alias"),f_=Symbol.for("yaml.document"),Ta=Symbol.for("yaml.map"),s4=Symbol.for("yaml.pair"),_o=Symbol.for("yaml.scalar"),td=Symbol.for("yaml.seq"),Pi=Symbol.for("yaml.node.type"),hc=e=>!!e&&typeof e=="object"&&e[Pi]===CS,nd=e=>!!e&&typeof e=="object"&&e[Pi]===f_,rd=e=>!!e&&typeof e=="object"&&e[Pi]===Ta,cn=e=>!!e&&typeof e=="object"&&e[Pi]===s4,en=e=>!!e&&typeof e=="object"&&e[Pi]===_o,id=e=>!!e&&typeof e=="object"&&e[Pi]===td;function dn(e){if(e&&typeof e=="object")switch(e[Pi]){case Ta:case td:return!0}return!1}function xn(e){if(e&&typeof e=="object")switch(e[Pi]){case CS:case Ta:case _o:case td:return!0}return!1}const nbe=e=>(en(e)||dn(e))&&!!e.anchor,Kr=Symbol("break visit"),o4=Symbol("skip children"),Rs=Symbol("remove node");function Pa(e,t){const n=a4(t);nd(e)?Mc(null,e.contents,n,Object.freeze([e]))===Rs&&(e.contents=null):Mc(null,e,n,Object.freeze([]))}Pa.BREAK=Kr;Pa.SKIP=o4;Pa.REMOVE=Rs;function Mc(e,t,n,r){const i=l4(e,t,n,r);if(xn(i)||cn(i))return c4(e,r,i),Mc(e,i,n,r);if(typeof i!="symbol"){if(dn(t)){r=Object.freeze(r.concat(t));for(let s=0;s<t.items.length;++s){const o=Mc(s,t.items[s],n,r);if(typeof o=="number")s=o-1;else{if(o===Kr)return Kr;o===Rs&&(t.items.splice(s,1),s-=1)}}}else if(cn(t)){r=Object.freeze(r.concat(t));const s=Mc("key",t.key,n,r);if(s===Kr)return Kr;s===Rs&&(t.key=null);const o=Mc("value",t.value,n,r);if(o===Kr)return Kr;o===Rs&&(t.value=null)}}return i}async function jb(e,t){const n=a4(t);nd(e)?await $c(null,e.contents,n,Object.freeze([e]))===Rs&&(e.contents=null):await $c(null,e,n,Object.freeze([]))}jb.BREAK=Kr;jb.SKIP=o4;jb.REMOVE=Rs;async function $c(e,t,n,r){const i=await l4(e,t,n,r);if(xn(i)||cn(i))return c4(e,r,i),$c(e,i,n,r);if(typeof i!="symbol"){if(dn(t)){r=Object.freeze(r.concat(t));for(let s=0;s<t.items.length;++s){const o=await $c(s,t.items[s],n,r);if(typeof o=="number")s=o-1;else{if(o===Kr)return Kr;o===Rs&&(t.items.splice(s,1),s-=1)}}}else if(cn(t)){r=Object.freeze(r.concat(t));const s=await $c("key",t.key,n,r);if(s===Kr)return Kr;s===Rs&&(t.key=null);const o=await $c("value",t.value,n,r);if(o===Kr)return Kr;o===Rs&&(t.value=null)}}return i}function a4(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 l4(e,t,n,r){var i,s,o,a,l;if(typeof n=="function")return n(e,t,r);if(rd(t))return(i=n.Map)==null?void 0:i.call(n,e,t,r);if(id(t))return(s=n.Seq)==null?void 0:s.call(n,e,t,r);if(cn(t))return(o=n.Pair)==null?void 0:o.call(n,e,t,r);if(en(t))return(a=n.Scalar)==null?void 0:a.call(n,e,t,r);if(hc(t))return(l=n.Alias)==null?void 0:l.call(n,e,t,r)}function c4(e,t,n){const r=t[t.length-1];if(dn(r))r.items[e]=n;else if(cn(r))e==="key"?r.key=n:r.value=n;else if(nd(r))r.contents=n;else{const i=hc(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}const rbe={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},ibe=e=>e.replace(/[!,[\]{}]/g,t=>rbe[t]);class Or{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Or.defaultYaml,t),this.tags=Object.assign({},Or.defaultTags,n)}clone(){const t=new Or(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new Or(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:Or.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},Or.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:Or.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},Or.defaultTags),this.atNextDocument=!1);const 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;const[s,o]=r;return this.tags[s]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,r.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[s]=r;if(s==="1.1"||s==="1.2")return this.yaml.version=s,!0;{const o=/^\d+\.\d+$/.test(s);return n(6,`Unsupported YAML version ${s}`,o),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(t,n){if(t==="!")return"!";if(t[0]!=="!")return n(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const o=t.slice(2,-1);return o==="!"||o==="!!"?(n(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&n("Verbatim tags must end with a >"),o)}const[,r,i]=t.match(/^(.*!)([^!]*)$/s);i||n(`The ${t} tag has no suffix`);const s=this.tags[r];if(s)try{return s+decodeURIComponent(i)}catch(o){return n(String(o)),null}return r==="!"?t:(n(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[n,r]of Object.entries(this.tags))if(t.startsWith(r))return n+ibe(t.substring(r.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);let i;if(t&&r.length>0&&xn(t.contents)){const s={};Pa(t.contents,(o,a)=>{xn(a)&&a.tag&&(s[a.tag]=!0)}),i=Object.keys(s)}else i=[];for(const[s,o]of r)s==="!!"&&o==="tag:yaml.org,2002:"||(!t||i.some(a=>a.startsWith(o)))&&n.push(`%TAG ${s} ${o}`);return n.join(`
232
+ `)}}Or.defaultYaml={explicit:!1,version:"1.2"};Or.defaultTags={"!!":"tag:yaml.org,2002:"};function u4(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(t)}return!0}function d4(e){const t=new Set;return Pa(e,{Value(n,r){r.anchor&&t.add(r.anchor)}}),t}function f4(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}function sbe(e,t){const n=[],r=new Map;let i=null;return{onAnchor:s=>{n.push(s),i||(i=d4(e));const o=f4(t,i);return i.add(o),o},setAnchors:()=>{for(const s of n){const o=r.get(s);if(typeof o=="object"&&o.anchor&&(en(o.node)||dn(o.node)))o.node.anchor=o.anchor;else{const a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=s,a}}},sourceObjects:r}}function Fc(e,t,n,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let i=0,s=r.length;i<s;++i){const o=r[i],a=Fc(e,r,String(i),o);a===void 0?delete r[i]:a!==o&&(r[i]=a)}else if(r instanceof Map)for(const i of Array.from(r.keys())){const s=r.get(i),o=Fc(e,r,i,s);o===void 0?r.delete(i):o!==s&&r.set(i,o)}else if(r instanceof Set)for(const i of Array.from(r)){const s=Fc(e,r,i,i);s===void 0?r.delete(i):s!==i&&(r.delete(i),r.add(s))}else for(const[i,s]of Object.entries(r)){const o=Fc(e,r,i,s);o===void 0?delete r[i]:o!==s&&(r[i]=o)}return e.call(t,n,r)}function Oi(e,t,n){if(Array.isArray(e))return e.map((r,i)=>Oi(r,String(i),n));if(e&&typeof e.toJSON=="function"){if(!n||!nbe(e))return e.toJSON(t,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=s=>{r.res=s,delete n.onCreate};const i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e=="bigint"&&!(n!=null&&n.keep)?Number(e):e}class OS{constructor(t){Object.defineProperty(this,Pi,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:s}={}){if(!nd(t))throw new TypeError("A document argument is required");const o={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},a=Oi(this,"",o);if(typeof i=="function")for(const{count:l,res:c}of o.anchors.values())i(c,l);return typeof s=="function"?Fc(s,{"":a},"",a):a}}class Vb extends OS{constructor(t){super(CS),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return Pa(t,{Node:(r,i)=>{if(i===this)return Pa.BREAK;i.anchor===this.source&&(n=i)}}),n}toJSON(t,n){if(!n)return{source:this.source};const{anchors:r,doc:i,maxAliasCount:s}=n,o=this.resolve(i);if(!o){const l=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(l)}let a=r.get(o);if(a||(Oi(o,null,n),a=r.get(o)),!a||a.res===void 0){const l="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(l)}if(s>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=Zm(i,o,r)),a.count*a.aliasCount>s)){const l="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(l)}return a.res}toString(t,n,r){const i=`*${this.source}`;if(t){if(u4(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const s=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(s)}if(t.implicitKey)return`${i} `}return i}}function Zm(e,t,n){if(hc(t)){const r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(dn(t)){let r=0;for(const i of t.items){const s=Zm(e,i,n);s>r&&(r=s)}return r}else if(cn(t)){const r=Zm(e,t.key,n),i=Zm(e,t.value,n);return Math.max(r,i)}return 1}const h4=e=>!e||typeof e!="function"&&typeof e!="object";class bt extends OS{constructor(t){super(_o),this.value=t}toJSON(t,n){return n!=null&&n.keep?this.value:Oi(this.value,t,n)}toString(){return String(this.value)}}bt.BLOCK_FOLDED="BLOCK_FOLDED";bt.BLOCK_LITERAL="BLOCK_LITERAL";bt.PLAIN="PLAIN";bt.QUOTE_DOUBLE="QUOTE_DOUBLE";bt.QUOTE_SINGLE="QUOTE_SINGLE";const obe="tag:yaml.org,2002:";function abe(e,t,n){if(t){const r=n.filter(s=>s.tag===t),i=r.find(s=>!s.format)??r[0];if(!i)throw new Error(`Tag ${t} not found`);return i}return n.find(r=>{var i;return((i=r.identify)==null?void 0:i.call(r,e))&&!r.format})}function uh(e,t,n){var r,i,s;if(nd(e)&&(e=e.contents),xn(e))return e;if(cn(e)){const p=(i=(r=n.schema[Ta]).createNode)==null?void 0:i.call(r,n.schema,null,n);return p.items.push(e),p}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:o,onAnchor:a,onTagObj:l,schema:c,sourceObjects:u}=n;let d;if(o&&e&&typeof e=="object"){if(d=u.get(e),d)return d.anchor||(d.anchor=a(e)),new Vb(d.anchor);d={anchor:null,node:null},u.set(e,d)}t!=null&&t.startsWith("!!")&&(t=obe+t.slice(2));let f=abe(e,t,c.tags);if(!f){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const p=new bt(e);return d&&(d.node=p),p}f=e instanceof Map?c[Ta]:Symbol.iterator in Object(e)?c[td]:c[Ta]}l&&(l(f),delete n.onTagObj);const h=f!=null&&f.createNode?f.createNode(n.schema,e,n):typeof((s=f==null?void 0:f.nodeClass)==null?void 0:s.from)=="function"?f.nodeClass.from(n.schema,e,n):new bt(e);return t?h.tag=t:f.default||(h.tag=f.tag),d&&(d.node=h),h}function n0(e,t,n){let r=n;for(let i=t.length-1;i>=0;--i){const s=t[i];if(typeof s=="number"&&Number.isInteger(s)&&s>=0){const o=[];o[s]=r,r=o}else r=new Map([[s,r]])}return uh(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const ef=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class DS extends OS{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(r=>xn(r)||cn(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(ef(t))this.add(n);else{const[r,...i]=t,s=this.get(r,!0);if(dn(s))s.addIn(i,n);else if(s===void 0&&this.schema)this.set(r,n0(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}deleteIn(t){const[n,...r]=t;if(r.length===0)return this.delete(n);const i=this.get(n,!0);if(dn(i))return i.deleteIn(r);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}getIn(t,n){const[r,...i]=t,s=this.get(r,!0);return i.length===0?!n&&en(s)?s.value:s:dn(s)?s.getIn(i,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!cn(n))return!1;const r=n.value;return r==null||t&&en(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(t){const[n,...r]=t;if(r.length===0)return this.has(n);const i=this.get(n,!0);return dn(i)?i.hasIn(r):!1}setIn(t,n){const[r,...i]=t;if(i.length===0)this.set(r,n);else{const s=this.get(r,!0);if(dn(s))s.setIn(i,n);else if(s===void 0&&this.schema)this.set(r,n0(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}}DS.maxFlowStringSingleLineLength=60;const lbe=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function no(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const bl=(e,t,n)=>e.endsWith(`
233
233
  `)?no(n,t):n.includes(`
234
234
  `)?`
235
235
  `+no(n,t):(e.endsWith(" ")?"":" ")+n,p4="flow",h_="block",eg="quoted";function qb(e,t,n="flow",{indentAtStart:r,lineWidth:i=80,minContentWidth:s=20,onFold:o,onOverflow:a}={}){if(!i||i<0)return e;const l=Math.max(1+s,1+i-t.length);if(e.length<=l)return e;const c=[],u={};let d=i-t.length;typeof r=="number"&&(r>i-Math.max(2,s)?c.push(0):d=i-r);let f,h,p=!1,m=-1,g=-1,b=-1;n===h_&&(m=zO(e,m,t.length),m!==-1&&(d=m+l));for(let y;y=e[m+=1];){if(n===eg&&y==="\\"){switch(g=m,e[m+1]){case"x":m+=3;break;case"u":m+=5;break;case"U":m+=9;break;default:m+=1}b=m}if(y===`
@@ -238,7 +238,7 @@ ${n}}`:n};function Oie(){return{showApiClient:!1,activeApiClientEndpointId:"",ac
238
238
  `&&E!==" "&&(f=m)}if(m>=d)if(f)c.push(f),d=f+l,f=void 0;else if(n===eg){for(;h===" "||h===" ";)h=y,y=e[m+=1],p=!0;const E=m>b+1?m-2:g-1;if(u[E])return e;c.push(E),u[E]=!0,d=E+l,f=void 0}else p=!0}h=y}if(p&&a&&a(),c.length===0)return e;o&&o();let v=e.slice(0,c[0]);for(let y=0;y<c.length;++y){const E=c[y],T=c[y+1]||e.length;E===0?v=`
239
239
  ${t}${e.slice(0,T)}`:(n===eg&&u[E]&&(v+=`${e[E]}\\`),v+=`
240
240
  ${t}${e.slice(E+1,T)}`)}return v}function zO(e,t,n){let r=t,i=t+1,s=e[i];for(;s===" "||s===" ";)if(t<i+n)s=e[++t];else{do s=e[++t];while(s&&s!==`
241
- `);r=t,i=t+1,s=e[i]}return r}const zb=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),Kb=e=>/^(%|---|\.\.\.)/m.test(e);function dbe(e,t,n){if(!t||t<0)return!1;const r=t-n,i=e.length;if(i<=r)return!1;for(let s=0,o=0;s<i;++s)if(e[s]===`
241
+ `);r=t,i=t+1,s=e[i]}return r}const zb=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),Kb=e=>/^(%|---|\.\.\.)/m.test(e);function cbe(e,t,n){if(!t||t<0)return!1;const r=t-n,i=e.length;if(i<=r)return!1;for(let s=0,o=0;s<i;++s)if(e[s]===`
242
242
  `){if(s-o>r)return!0;if(o=s+1,i-o<=r)return!1}return!0}function Df(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,s=t.indent||(Kb(e)?" ":"");let o="",a=0;for(let l=0,c=n[l];c;c=n[++l])if(c===" "&&n[l+1]==="\\"&&n[l+2]==="n"&&(o+=n.slice(a,l)+"\\ ",l+=1,a=l,c="\\"),c==="\\")switch(n[l+1]){case"u":{o+=n.slice(a,l);const u=n.substr(l+2,4);switch(u){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:u.substr(0,2)==="00"?o+="\\x"+u.substr(2):o+=n.substr(l,6)}l+=5,a=l+1}break;case"n":if(r||n[l+2]==='"'||n.length<i)l+=1;else{for(o+=n.slice(a,l)+`
243
243
 
244
244
  `;n[l+2]==="\\"&&n[l+3]==="n"&&n[l+4]!=='"';)o+=`
@@ -247,7 +247,7 @@ ${t}${e.slice(E+1,T)}`)}return v}function zO(e,t,n){let r=t,i=t+1,s=e[i];for(;s=
247
247
  ${n}`)+"'";return t.implicitKey?r:qb(r,n,p4,zb(t,!1))}function Bc(e,t){const{singleQuote:n}=t.options;let r;if(n===!1)r=Df;else{const i=e.includes('"'),s=e.includes("'");i&&!s?r=p_:s&&!i?r=Df:r=n?p_:Df}return r(e,t)}let m_;try{m_=new RegExp(`(^|(?<!
248
248
  ))
249
249
  +(?!
250
- |$)`,"g")}catch{m_=/\n+(?!\n|$)/g}function tg({comment:e,type:t,value:n},r,i,s){const{blockQuote:o,commentString:a,lineWidth:l}=r.options;if(!o||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return Bc(n,r);const c=r.indent||(r.forceBlockIndent||Kb(n)?" ":""),u=o==="literal"?!0:o==="folded"||t===bt.BLOCK_FOLDED?!1:t===bt.BLOCK_LITERAL?!0:!dbe(n,l,c.length);if(!n)return u?`|
250
+ |$)`,"g")}catch{m_=/\n+(?!\n|$)/g}function tg({comment:e,type:t,value:n},r,i,s){const{blockQuote:o,commentString:a,lineWidth:l}=r.options;if(!o||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return Bc(n,r);const c=r.indent||(r.forceBlockIndent||Kb(n)?" ":""),u=o==="literal"?!0:o==="folded"||t===bt.BLOCK_FOLDED?!1:t===bt.BLOCK_LITERAL?!0:!cbe(n,l,c.length);if(!n)return u?`|
251
251
  `:`>
252
252
  `;let d,f;for(f=n.length;f>0;--f){const T=n[f-1];if(T!==`
253
253
  `&&T!==" "&&T!==" ")break}let h=n.substring(f);const p=h.indexOf(`
@@ -256,12 +256,12 @@ ${n}`)+"'";return t.implicitKey?r:qb(r,n,p4,zb(t,!1))}function Bc(e,t){const{sin
256
256
  `)b=g;else break}let v=n.substring(0,b<g?b+1:g);v&&(n=n.substring(v.length),v=v.replace(/\n+/g,`$&${c}`));let y=(u?"|":">")+(m?c?"2":"1":"")+d;if(e&&(y+=" "+a(e.replace(/ ?[\r\n]+/g," ")),i&&i()),u)return n=n.replace(/\n+/g,`$&${c}`),`${y}
257
257
  ${c}${v}${n}${h}`;n=n.replace(/\n+/g,`
258
258
  $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`);const E=qb(`${v}${n}${h}`,c,h_,zb(r,!0));return`${y}
259
- ${c}${E}`}function fbe(e,t,n,r){const{type:i,value:s}=e,{actualString:o,implicitKey:a,indent:l,indentStep:c,inFlow:u}=t;if(a&&s.includes(`
259
+ ${c}${E}`}function ube(e,t,n,r){const{type:i,value:s}=e,{actualString:o,implicitKey:a,indent:l,indentStep:c,inFlow:u}=t;if(a&&s.includes(`
260
260
  `)||u&&/[[\]{},]/.test(s))return Bc(s,t);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return a||u||!s.includes(`
261
261
  `)?Bc(s,t):tg(e,t,n,r);if(!a&&!u&&i!==bt.PLAIN&&s.includes(`
262
262
  `))return tg(e,t,n,r);if(Kb(s)){if(l==="")return t.forceBlockIndent=!0,tg(e,t,n,r);if(a&&l===c)return Bc(s,t)}const d=s.replace(/\n+/g,`$&
263
- ${l}`);if(o){const f=m=>{var g;return m.default&&m.tag!=="tag:yaml.org,2002:str"&&((g=m.test)==null?void 0:g.test(d))},{compat:h,tags:p}=t.doc.schema;if(p.some(f)||h!=null&&h.some(f))return Bc(s,t)}return a?d:qb(d,l,p4,zb(t,!1))}function Jh(e,t,n,r){const{implicitKey:i,inFlow:s}=t,o=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:a}=e;a!==bt.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(a=bt.QUOTE_DOUBLE);const l=u=>{switch(u){case bt.BLOCK_FOLDED:case bt.BLOCK_LITERAL:return i||s?Bc(o.value,t):tg(o,t,n,r);case bt.QUOTE_DOUBLE:return Df(o.value,t);case bt.QUOTE_SINGLE:return p_(o.value,t);case bt.PLAIN:return fbe(o,t,n,r);default:return null}};let c=l(a);if(c===null){const{defaultKeyType:u,defaultStringType:d}=t.options,f=i&&u||d;if(c=l(f),c===null)throw new Error(`Unsupported default string type ${f}`)}return c}function m4(e,t){const n=Object.assign({blockQuote:!0,commentString:ube,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,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let 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 hbe(e,t){var n;if(t.tag){const s=e.filter(o=>o.tag===t.tag);if(s.length>0)return s.find(o=>o.format===t.format)??s[0]}let r,i;if(en(t)){i=t.value;const s=e.filter(o=>{var a;return(a=o.identify)==null?void 0:a.call(o,i)});r=s.find(o=>o.format===t.format)??s.find(o=>!o.format)}else i=t,r=e.find(s=>s.nodeClass&&i instanceof s.nodeClass);if(!r){const s=((n=i==null?void 0:i.constructor)==null?void 0:n.name)??typeof i;throw new Error(`Tag not resolved for ${s} value`)}return r}function pbe(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const i=[],s=(en(e)||dn(e))&&e.anchor;s&&u4(s)&&(n.add(s),i.push(`&${s}`));const o=e.tag?e.tag:t.default?null:t.tag;return o&&i.push(r.directives.tagString(o)),i.join(" ")}function Tu(e,t,n,r){var i;if(cn(e))return e.toString(t,n,r);if(hc(e)){if(t.doc.directives)return e.toString(t);if((i=t.resolvedAliases)!=null&&i.has(e))throw new 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 s;const o=xn(e)?e:t.doc.createNode(e,{onTagObj:c=>s=c});s||(s=hbe(t.doc.schema.tags,o));const a=pbe(o,s,t);a.length>0&&(t.indentAtStart=(t.indentAtStart??0)+a.length+1);const l=typeof s.stringify=="function"?s.stringify(o,t,n,r):en(o)?Jh(o,t,n,r):o.toString(t,n,r);return a?en(o)||l[0]==="{"||l[0]==="["?`${a} ${l}`:`${a}
264
- ${t.indent}${l}`:l}function mbe({key:e,value:t},n,r,i){const{allNullValues:s,doc:o,indent:a,indentStep:l,options:{commentString:c,indentSeq:u,simpleKeys:d}}=n;let f=xn(e)&&e.comment||null;if(d){if(f)throw new Error("With simple keys, key nodes cannot have comments");if(dn(e)){const S="With simple keys, collection cannot be used as a key value";throw new Error(S)}}let h=!d&&(!e||f&&t==null&&!n.inFlow||dn(e)||(en(e)?e.type===bt.BLOCK_FOLDED||e.type===bt.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!h&&(d||!s),indent:a+l});let p=!1,m=!1,g=Tu(e,n,()=>p=!0,()=>m=!0);if(!h&&!n.inFlow&&g.length>1024){if(d)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");h=!0}if(n.inFlow){if(s||t==null)return p&&r&&r(),g===""?"?":h?`? ${g}`:g}else if(s&&!d||t==null&&h)return g=`? ${g}`,f&&!p?g+=bl(g,n.indent,c(f)):m&&i&&i(),g;p&&(f=null),h?(f&&(g+=bl(g,n.indent,c(f))),g=`? ${g}
263
+ ${l}`);if(o){const f=m=>{var g;return m.default&&m.tag!=="tag:yaml.org,2002:str"&&((g=m.test)==null?void 0:g.test(d))},{compat:h,tags:p}=t.doc.schema;if(p.some(f)||h!=null&&h.some(f))return Bc(s,t)}return a?d:qb(d,l,p4,zb(t,!1))}function Jh(e,t,n,r){const{implicitKey:i,inFlow:s}=t,o=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:a}=e;a!==bt.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(a=bt.QUOTE_DOUBLE);const l=u=>{switch(u){case bt.BLOCK_FOLDED:case bt.BLOCK_LITERAL:return i||s?Bc(o.value,t):tg(o,t,n,r);case bt.QUOTE_DOUBLE:return Df(o.value,t);case bt.QUOTE_SINGLE:return p_(o.value,t);case bt.PLAIN:return ube(o,t,n,r);default:return null}};let c=l(a);if(c===null){const{defaultKeyType:u,defaultStringType:d}=t.options,f=i&&u||d;if(c=l(f),c===null)throw new Error(`Unsupported default string type ${f}`)}return c}function m4(e,t){const n=Object.assign({blockQuote:!0,commentString:lbe,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,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let 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 dbe(e,t){var n;if(t.tag){const s=e.filter(o=>o.tag===t.tag);if(s.length>0)return s.find(o=>o.format===t.format)??s[0]}let r,i;if(en(t)){i=t.value;const s=e.filter(o=>{var a;return(a=o.identify)==null?void 0:a.call(o,i)});r=s.find(o=>o.format===t.format)??s.find(o=>!o.format)}else i=t,r=e.find(s=>s.nodeClass&&i instanceof s.nodeClass);if(!r){const s=((n=i==null?void 0:i.constructor)==null?void 0:n.name)??typeof i;throw new Error(`Tag not resolved for ${s} value`)}return r}function fbe(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const i=[],s=(en(e)||dn(e))&&e.anchor;s&&u4(s)&&(n.add(s),i.push(`&${s}`));const o=e.tag?e.tag:t.default?null:t.tag;return o&&i.push(r.directives.tagString(o)),i.join(" ")}function Tu(e,t,n,r){var i;if(cn(e))return e.toString(t,n,r);if(hc(e)){if(t.doc.directives)return e.toString(t);if((i=t.resolvedAliases)!=null&&i.has(e))throw new 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 s;const o=xn(e)?e:t.doc.createNode(e,{onTagObj:c=>s=c});s||(s=dbe(t.doc.schema.tags,o));const a=fbe(o,s,t);a.length>0&&(t.indentAtStart=(t.indentAtStart??0)+a.length+1);const l=typeof s.stringify=="function"?s.stringify(o,t,n,r):en(o)?Jh(o,t,n,r):o.toString(t,n,r);return a?en(o)||l[0]==="{"||l[0]==="["?`${a} ${l}`:`${a}
264
+ ${t.indent}${l}`:l}function hbe({key:e,value:t},n,r,i){const{allNullValues:s,doc:o,indent:a,indentStep:l,options:{commentString:c,indentSeq:u,simpleKeys:d}}=n;let f=xn(e)&&e.comment||null;if(d){if(f)throw new Error("With simple keys, key nodes cannot have comments");if(dn(e)){const S="With simple keys, collection cannot be used as a key value";throw new Error(S)}}let h=!d&&(!e||f&&t==null&&!n.inFlow||dn(e)||(en(e)?e.type===bt.BLOCK_FOLDED||e.type===bt.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!h&&(d||!s),indent:a+l});let p=!1,m=!1,g=Tu(e,n,()=>p=!0,()=>m=!0);if(!h&&!n.inFlow&&g.length>1024){if(d)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");h=!0}if(n.inFlow){if(s||t==null)return p&&r&&r(),g===""?"?":h?`? ${g}`:g}else if(s&&!d||t==null&&h)return g=`? ${g}`,f&&!p?g+=bl(g,n.indent,c(f)):m&&i&&i(),g;p&&(f=null),h?(f&&(g+=bl(g,n.indent,c(f))),g=`? ${g}
265
265
  ${a}:`):(g=`${g}:`,f&&(g+=bl(g,n.indent,c(f))));let b,v,y;xn(t)?(b=!!t.spaceBefore,v=t.commentBefore,y=t.comment):(b=!1,v=null,y=null,t&&typeof t=="object"&&(t=o.createNode(t))),n.implicitKey=!1,!h&&!f&&en(t)&&(n.indentAtStart=g.length+1),m=!1,!u&&l.length>=2&&!n.inFlow&&!h&&id(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let E=!1;const T=Tu(t,n,()=>E=!0,()=>m=!0);let w=" ";if(f||b||v){if(w=b?`
266
266
  `:"",v){const S=c(v);w+=`
267
267
  ${no(S,n.indent)}`}T===""&&!n.inFlow?w===`
@@ -271,32 +271,32 @@ ${no(S,n.indent)}`}T===""&&!n.inFlow?w===`
271
271
  ${n.indent}`}else if(!h&&dn(t)){const S=T[0],k=T.indexOf(`
272
272
  `),x=k!==-1,A=n.inFlow??t.flow??t.items.length===0;if(x||!A){let M=!1;if(x&&(S==="&"||S==="!")){let R=T.indexOf(" ");S==="&"&&R!==-1&&R<k&&T[R+1]==="!"&&(R=T.indexOf(" ",R+1)),(R===-1||k<R)&&(M=!0)}M||(w=`
273
273
  ${n.indent}`)}}else(T===""||T[0]===`
274
- `)&&(w="");return g+=w+T,n.inFlow?E&&r&&r():y&&!E?g+=bl(g,n.indent,c(y)):m&&i&&i(),g}function g4(e,t){(e==="debug"||e==="warn")&&(typeof process<"u"&&process.emitWarning?process.emitWarning(t):console.warn(t))}const KO="<<";function b4(e,t,{key:n,value:r}){if(e!=null&&e.doc.schema.merge&&gbe(n))if(r=hc(r)?r.resolve(e.doc):r,id(r))for(const i of r.items)Ov(e,t,i);else if(Array.isArray(r))for(const i of r)Ov(e,t,i);else Ov(e,t,r);else{const i=Oi(n,"",e);if(t instanceof Map)t.set(i,Oi(r,i,e));else if(t instanceof Set)t.add(i);else{const s=bbe(n,i,e),o=Oi(r,s,e);s in t?Object.defineProperty(t,s,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[s]=o}}return t}const gbe=e=>e===KO||en(e)&&e.value===KO&&(!e.type||e.type===bt.PLAIN);function Ov(e,t,n){const r=e&&hc(n)?n.resolve(e.doc):n;if(!rd(r))throw new Error("Merge sources must be maps or map aliases");const i=r.toJSON(null,e,Map);for(const[s,o]of i)t instanceof Map?t.has(s)||t.set(s,o):t instanceof Set?t.add(s):Object.prototype.hasOwnProperty.call(t,s)||Object.defineProperty(t,s,{value:o,writable:!0,enumerable:!0,configurable:!0});return t}function bbe(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(xn(e)&&n!=null&&n.doc){const r=m4(n.doc,{});r.anchors=new Set;for(const s of n.anchors.keys())r.anchors.add(s.anchor);r.inFlow=!0,r.inStringifyKey=!0;const i=e.toString(r);if(!n.mapKeyWarned){let s=JSON.stringify(i);s.length>40&&(s=s.substring(0,36)+'..."'),g4(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${s}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return i}return JSON.stringify(t)}function IS(e,t,n){const r=uh(e,void 0,n),i=uh(t,void 0,n);return new Yr(r,i)}let Yr=class y4{constructor(t,n=null){Object.defineProperty(this,Pi,{value:s4}),this.key=t,this.value=n}clone(t){let{key:n,value:r}=this;return xn(n)&&(n=n.clone(t)),xn(r)&&(r=r.clone(t)),new y4(n,r)}toJSON(t,n){const r=n!=null&&n.mapAsMap?new Map:{};return b4(n,r,this)}toString(t,n,r){return t!=null&&t.doc?mbe(this,t,n,r):JSON.stringify(this)}};function v4(e,t,n){return(t.inFlow??e.flow?vbe:ybe)(e,t,n)}function ybe({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:s,onChompKeep:o,onComment:a}){const{indent:l,options:{commentString:c}}=n,u=Object.assign({},n,{indent:s,type:null});let d=!1;const f=[];for(let p=0;p<t.length;++p){const m=t[p];let g=null;if(xn(m))!d&&m.spaceBefore&&f.push(""),r0(n,f,m.commentBefore,d),m.comment&&(g=m.comment);else if(cn(m)){const v=xn(m.key)?m.key:null;v&&(!d&&v.spaceBefore&&f.push(""),r0(n,f,v.commentBefore,d))}d=!1;let b=Tu(m,u,()=>g=null,()=>d=!0);g&&(b+=bl(b,s,c(g))),d&&g&&(d=!1),f.push(r+b)}let h;if(f.length===0)h=i.start+i.end;else{h=f[0];for(let p=1;p<f.length;++p){const m=f[p];h+=m?`
274
+ `)&&(w="");return g+=w+T,n.inFlow?E&&r&&r():y&&!E?g+=bl(g,n.indent,c(y)):m&&i&&i(),g}function g4(e,t){(e==="debug"||e==="warn")&&(typeof process<"u"&&process.emitWarning?process.emitWarning(t):console.warn(t))}const KO="<<";function b4(e,t,{key:n,value:r}){if(e!=null&&e.doc.schema.merge&&pbe(n))if(r=hc(r)?r.resolve(e.doc):r,id(r))for(const i of r.items)Ov(e,t,i);else if(Array.isArray(r))for(const i of r)Ov(e,t,i);else Ov(e,t,r);else{const i=Oi(n,"",e);if(t instanceof Map)t.set(i,Oi(r,i,e));else if(t instanceof Set)t.add(i);else{const s=mbe(n,i,e),o=Oi(r,s,e);s in t?Object.defineProperty(t,s,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[s]=o}}return t}const pbe=e=>e===KO||en(e)&&e.value===KO&&(!e.type||e.type===bt.PLAIN);function Ov(e,t,n){const r=e&&hc(n)?n.resolve(e.doc):n;if(!rd(r))throw new Error("Merge sources must be maps or map aliases");const i=r.toJSON(null,e,Map);for(const[s,o]of i)t instanceof Map?t.has(s)||t.set(s,o):t instanceof Set?t.add(s):Object.prototype.hasOwnProperty.call(t,s)||Object.defineProperty(t,s,{value:o,writable:!0,enumerable:!0,configurable:!0});return t}function mbe(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(xn(e)&&n!=null&&n.doc){const r=m4(n.doc,{});r.anchors=new Set;for(const s of n.anchors.keys())r.anchors.add(s.anchor);r.inFlow=!0,r.inStringifyKey=!0;const i=e.toString(r);if(!n.mapKeyWarned){let s=JSON.stringify(i);s.length>40&&(s=s.substring(0,36)+'..."'),g4(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${s}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return i}return JSON.stringify(t)}function IS(e,t,n){const r=uh(e,void 0,n),i=uh(t,void 0,n);return new Yr(r,i)}let Yr=class y4{constructor(t,n=null){Object.defineProperty(this,Pi,{value:s4}),this.key=t,this.value=n}clone(t){let{key:n,value:r}=this;return xn(n)&&(n=n.clone(t)),xn(r)&&(r=r.clone(t)),new y4(n,r)}toJSON(t,n){const r=n!=null&&n.mapAsMap?new Map:{};return b4(n,r,this)}toString(t,n,r){return t!=null&&t.doc?hbe(this,t,n,r):JSON.stringify(this)}};function v4(e,t,n){return(t.inFlow??e.flow?bbe:gbe)(e,t,n)}function gbe({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:s,onChompKeep:o,onComment:a}){const{indent:l,options:{commentString:c}}=n,u=Object.assign({},n,{indent:s,type:null});let d=!1;const f=[];for(let p=0;p<t.length;++p){const m=t[p];let g=null;if(xn(m))!d&&m.spaceBefore&&f.push(""),r0(n,f,m.commentBefore,d),m.comment&&(g=m.comment);else if(cn(m)){const v=xn(m.key)?m.key:null;v&&(!d&&v.spaceBefore&&f.push(""),r0(n,f,v.commentBefore,d))}d=!1;let b=Tu(m,u,()=>g=null,()=>d=!0);g&&(b+=bl(b,s,c(g))),d&&g&&(d=!1),f.push(r+b)}let h;if(f.length===0)h=i.start+i.end;else{h=f[0];for(let p=1;p<f.length;++p){const m=f[p];h+=m?`
275
275
  ${l}${m}`:`
276
276
  `}}return e?(h+=`
277
- `+no(c(e),l),a&&a()):d&&o&&o(),h}function vbe({items:e},t,{flowChars:n,itemIndent:r}){const{indent:i,indentStep:s,flowCollectionPadding:o,options:{commentString:a}}=t;r+=s;const l=Object.assign({},t,{indent:r,inFlow:!0,type:null});let c=!1,u=0;const d=[];for(let p=0;p<e.length;++p){const m=e[p];let g=null;if(xn(m))m.spaceBefore&&d.push(""),r0(t,d,m.commentBefore,!1),m.comment&&(g=m.comment);else if(cn(m)){const v=xn(m.key)?m.key:null;v&&(v.spaceBefore&&d.push(""),r0(t,d,v.commentBefore,!1),v.comment&&(c=!0));const y=xn(m.value)?m.value:null;y?(y.comment&&(g=y.comment),y.commentBefore&&(c=!0)):m.value==null&&v!=null&&v.comment&&(g=v.comment)}g&&(c=!0);let b=Tu(m,l,()=>g=null);p<e.length-1&&(b+=","),g&&(b+=bl(b,r,a(g))),!c&&(d.length>u||b.includes(`
277
+ `+no(c(e),l),a&&a()):d&&o&&o(),h}function bbe({items:e},t,{flowChars:n,itemIndent:r}){const{indent:i,indentStep:s,flowCollectionPadding:o,options:{commentString:a}}=t;r+=s;const l=Object.assign({},t,{indent:r,inFlow:!0,type:null});let c=!1,u=0;const d=[];for(let p=0;p<e.length;++p){const m=e[p];let g=null;if(xn(m))m.spaceBefore&&d.push(""),r0(t,d,m.commentBefore,!1),m.comment&&(g=m.comment);else if(cn(m)){const v=xn(m.key)?m.key:null;v&&(v.spaceBefore&&d.push(""),r0(t,d,v.commentBefore,!1),v.comment&&(c=!0));const y=xn(m.value)?m.value:null;y?(y.comment&&(g=y.comment),y.commentBefore&&(c=!0)):m.value==null&&v!=null&&v.comment&&(g=v.comment)}g&&(c=!0);let b=Tu(m,l,()=>g=null);p<e.length-1&&(b+=","),g&&(b+=bl(b,r,a(g))),!c&&(d.length>u||b.includes(`
278
278
  `))&&(c=!0),d.push(b),u=d.length}const{start:f,end:h}=n;if(d.length===0)return f+h;if(!c){const p=d.reduce((m,g)=>m+g.length+2,2);c=t.options.lineWidth>0&&p>t.options.lineWidth}if(c){let p=f;for(const m of d)p+=m?`
279
279
  ${s}${i}${m}`:`
280
280
  `;return`${p}
281
- ${i}${h}`}else return`${f}${o}${d.join(" ")}${o}${h}`}function r0({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,"")),r){const s=no(t(r),e);n.push(s.trimStart())}}function yl(e,t){const n=en(t)?t.value:t;for(const r of e)if(cn(r)&&(r.key===t||r.key===n||en(r.key)&&r.key.value===n))return r}class oi extends DS{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(Ta,t),this.items=[]}static from(t,n,r){const{keepUndefined:i,replacer:s}=r,o=new this(t),a=(l,c)=>{if(typeof s=="function")c=s.call(n,l,c);else if(Array.isArray(s)&&!s.includes(l))return;(c!==void 0||i)&&o.items.push(IS(l,c,r))};if(n instanceof Map)for(const[l,c]of n)a(l,c);else if(n&&typeof n=="object")for(const l of Object.keys(n))a(l,n[l]);return typeof t.sortMapEntries=="function"&&o.items.sort(t.sortMapEntries),o}add(t,n){var r;let i;cn(t)?i=t:!t||typeof t!="object"||!("key"in t)?i=new Yr(t,t==null?void 0:t.value):i=new Yr(t.key,t.value);const s=yl(this.items,i.key),o=(r=this.schema)==null?void 0:r.sortMapEntries;if(s){if(!n)throw new Error(`Key ${i.key} already set`);en(s.value)&&h4(i.value)?s.value.value=i.value:s.value=i.value}else if(o){const a=this.items.findIndex(l=>o(i,l)<0);a===-1?this.items.push(i):this.items.splice(a,0,i)}else this.items.push(i)}delete(t){const n=yl(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){const r=yl(this.items,t),i=r==null?void 0:r.value;return(!n&&en(i)?i.value:i)??void 0}has(t){return!!yl(this.items,t)}set(t,n){this.add(new Yr(t,n),!0)}toJSON(t,n,r){const i=r?new r:n!=null&&n.mapAsMap?new Map:{};n!=null&&n.onCreate&&n.onCreate(i);for(const s of this.items)b4(n,i,s);return i}toString(t,n,r){if(!t)return JSON.stringify(this);for(const i of this.items)if(!cn(i))throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),v4(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:r,onComment:n})}}const sd={collection:"map",default:!0,nodeClass:oi,tag:"tag:yaml.org,2002:map",resolve(e,t){return rd(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>oi.from(e,t,n)};class La extends DS{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(td,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=bm(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const r=bm(t);if(typeof r!="number")return;const i=this.items[r];return!n&&en(i)?i.value:i}has(t){const n=bm(t);return typeof n=="number"&&n<this.items.length}set(t,n){const r=bm(t);if(typeof r!="number")throw new Error(`Expected a valid index, not ${t}.`);const i=this.items[r];en(i)&&h4(n)?i.value=n:this.items[r]=n}toJSON(t,n){const r=[];n!=null&&n.onCreate&&n.onCreate(r);let i=0;for(const s of this.items)r.push(Oi(s,String(i++),n));return r}toString(t,n,r){return t?v4(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:r,onComment:n}):JSON.stringify(this)}static from(t,n,r){const{replacer:i}=r,s=new this(t);if(n&&Symbol.iterator in Object(n)){let o=0;for(let a of n){if(typeof i=="function"){const l=n instanceof Set?a:String(o++);a=i.call(n,l,a)}s.items.push(uh(a,void 0,r))}}return s}}function bm(e){let t=en(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}const od={collection:"seq",default:!0,nodeClass:La,tag:"tag:yaml.org,2002:seq",resolve(e,t){return id(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>La.from(e,t,n)},Wb={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),Jh(e,t,n,r)}},Gb={identify:e=>e==null,createNode:()=>new bt(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new bt(null),stringify:({source:e},t)=>typeof e=="string"&&Gb.test.test(e)?e:t.options.nullStr},RS={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new bt(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&RS.test.test(e)){const r=e[0]==="t"||e[0]==="T";if(t===r)return e}return t?n.options.trueStr:n.options.falseStr}};function os({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r=="bigint")return String(r);const i=typeof r=="number"?r:Number(r);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let s=JSON.stringify(r);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(s)){let o=s.indexOf(".");o<0&&(o=s.length,s+=".");let a=t-(s.length-o-1);for(;a-- >0;)s+="0"}return s}const E4={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]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:os},_4={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){const t=Number(e.value);return isFinite(t)?t.toExponential():os(e)}},w4={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new bt(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:os},Yb=e=>typeof e=="bigint"||Number.isInteger(e),PS=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function T4(e,t,n){const{value:r}=e;return Yb(r)&&r>=0?n+r.toString(t):os(e)}const S4={identify:e=>Yb(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>PS(e,2,8,n),stringify:e=>T4(e,8,"0o")},k4={identify:Yb,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>PS(e,0,10,n),stringify:os},A4={identify:e=>Yb(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>PS(e,2,16,n),stringify:e=>T4(e,16,"0x")},Ebe=[sd,od,Wb,Gb,RS,S4,k4,A4,E4,_4,w4];function WO(e){return typeof e=="bigint"||Number.isInteger(e)}const ym=({value:e})=>JSON.stringify(e),_be=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:ym},{identify:e=>e==null,createNode:()=>new bt(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:ym},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:ym},{identify:WO,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})=>WO(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:ym}],wbe={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},Tbe=[sd,od].concat(_be,wbe),LS={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Buffer=="function")return Buffer.from(e,"base64");if(typeof atob=="function"){const n=atob(e.replace(/[\n\r]/g,"")),r=new Uint8Array(n.length);for(let i=0;i<n.length;++i)r[i]=n.charCodeAt(i);return r}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,s){const o=n;let a;if(typeof Buffer=="function")a=o instanceof Buffer?o.toString("base64"):Buffer.from(o.buffer).toString("base64");else if(typeof btoa=="function"){let l="";for(let c=0;c<o.length;++c)l+=String.fromCharCode(o[c]);a=btoa(l)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t||(t=bt.BLOCK_LITERAL),t!==bt.QUOTE_DOUBLE){const l=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),c=Math.ceil(a.length/l),u=new Array(c);for(let d=0,f=0;d<c;++d,f+=l)u[d]=a.substr(f,l);a=u.join(t===bt.BLOCK_LITERAL?`
281
+ ${i}${h}`}else return`${f}${o}${d.join(" ")}${o}${h}`}function r0({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,"")),r){const s=no(t(r),e);n.push(s.trimStart())}}function yl(e,t){const n=en(t)?t.value:t;for(const r of e)if(cn(r)&&(r.key===t||r.key===n||en(r.key)&&r.key.value===n))return r}class oi extends DS{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(Ta,t),this.items=[]}static from(t,n,r){const{keepUndefined:i,replacer:s}=r,o=new this(t),a=(l,c)=>{if(typeof s=="function")c=s.call(n,l,c);else if(Array.isArray(s)&&!s.includes(l))return;(c!==void 0||i)&&o.items.push(IS(l,c,r))};if(n instanceof Map)for(const[l,c]of n)a(l,c);else if(n&&typeof n=="object")for(const l of Object.keys(n))a(l,n[l]);return typeof t.sortMapEntries=="function"&&o.items.sort(t.sortMapEntries),o}add(t,n){var r;let i;cn(t)?i=t:!t||typeof t!="object"||!("key"in t)?i=new Yr(t,t==null?void 0:t.value):i=new Yr(t.key,t.value);const s=yl(this.items,i.key),o=(r=this.schema)==null?void 0:r.sortMapEntries;if(s){if(!n)throw new Error(`Key ${i.key} already set`);en(s.value)&&h4(i.value)?s.value.value=i.value:s.value=i.value}else if(o){const a=this.items.findIndex(l=>o(i,l)<0);a===-1?this.items.push(i):this.items.splice(a,0,i)}else this.items.push(i)}delete(t){const n=yl(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){const r=yl(this.items,t),i=r==null?void 0:r.value;return(!n&&en(i)?i.value:i)??void 0}has(t){return!!yl(this.items,t)}set(t,n){this.add(new Yr(t,n),!0)}toJSON(t,n,r){const i=r?new r:n!=null&&n.mapAsMap?new Map:{};n!=null&&n.onCreate&&n.onCreate(i);for(const s of this.items)b4(n,i,s);return i}toString(t,n,r){if(!t)return JSON.stringify(this);for(const i of this.items)if(!cn(i))throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),v4(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:r,onComment:n})}}const sd={collection:"map",default:!0,nodeClass:oi,tag:"tag:yaml.org,2002:map",resolve(e,t){return rd(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>oi.from(e,t,n)};class La extends DS{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(td,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=bm(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const r=bm(t);if(typeof r!="number")return;const i=this.items[r];return!n&&en(i)?i.value:i}has(t){const n=bm(t);return typeof n=="number"&&n<this.items.length}set(t,n){const r=bm(t);if(typeof r!="number")throw new Error(`Expected a valid index, not ${t}.`);const i=this.items[r];en(i)&&h4(n)?i.value=n:this.items[r]=n}toJSON(t,n){const r=[];n!=null&&n.onCreate&&n.onCreate(r);let i=0;for(const s of this.items)r.push(Oi(s,String(i++),n));return r}toString(t,n,r){return t?v4(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:r,onComment:n}):JSON.stringify(this)}static from(t,n,r){const{replacer:i}=r,s=new this(t);if(n&&Symbol.iterator in Object(n)){let o=0;for(let a of n){if(typeof i=="function"){const l=n instanceof Set?a:String(o++);a=i.call(n,l,a)}s.items.push(uh(a,void 0,r))}}return s}}function bm(e){let t=en(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}const od={collection:"seq",default:!0,nodeClass:La,tag:"tag:yaml.org,2002:seq",resolve(e,t){return id(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>La.from(e,t,n)},Wb={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),Jh(e,t,n,r)}},Gb={identify:e=>e==null,createNode:()=>new bt(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new bt(null),stringify:({source:e},t)=>typeof e=="string"&&Gb.test.test(e)?e:t.options.nullStr},RS={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new bt(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&RS.test.test(e)){const r=e[0]==="t"||e[0]==="T";if(t===r)return e}return t?n.options.trueStr:n.options.falseStr}};function os({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r=="bigint")return String(r);const i=typeof r=="number"?r:Number(r);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let s=JSON.stringify(r);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(s)){let o=s.indexOf(".");o<0&&(o=s.length,s+=".");let a=t-(s.length-o-1);for(;a-- >0;)s+="0"}return s}const E4={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]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:os},_4={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){const t=Number(e.value);return isFinite(t)?t.toExponential():os(e)}},w4={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new bt(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:os},Yb=e=>typeof e=="bigint"||Number.isInteger(e),PS=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function T4(e,t,n){const{value:r}=e;return Yb(r)&&r>=0?n+r.toString(t):os(e)}const S4={identify:e=>Yb(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>PS(e,2,8,n),stringify:e=>T4(e,8,"0o")},k4={identify:Yb,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>PS(e,0,10,n),stringify:os},A4={identify:e=>Yb(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>PS(e,2,16,n),stringify:e=>T4(e,16,"0x")},ybe=[sd,od,Wb,Gb,RS,S4,k4,A4,E4,_4,w4];function WO(e){return typeof e=="bigint"||Number.isInteger(e)}const ym=({value:e})=>JSON.stringify(e),vbe=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:ym},{identify:e=>e==null,createNode:()=>new bt(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:ym},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:ym},{identify:WO,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})=>WO(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:ym}],Ebe={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},_be=[sd,od].concat(vbe,Ebe),LS={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Buffer=="function")return Buffer.from(e,"base64");if(typeof atob=="function"){const n=atob(e.replace(/[\n\r]/g,"")),r=new Uint8Array(n.length);for(let i=0;i<n.length;++i)r[i]=n.charCodeAt(i);return r}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,s){const o=n;let a;if(typeof Buffer=="function")a=o instanceof Buffer?o.toString("base64"):Buffer.from(o.buffer).toString("base64");else if(typeof btoa=="function"){let l="";for(let c=0;c<o.length;++c)l+=String.fromCharCode(o[c]);a=btoa(l)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t||(t=bt.BLOCK_LITERAL),t!==bt.QUOTE_DOUBLE){const l=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),c=Math.ceil(a.length/l),u=new Array(c);for(let d=0,f=0;d<c;++d,f+=l)u[d]=a.substr(f,l);a=u.join(t===bt.BLOCK_LITERAL?`
282
282
  `:" ")}return Jh({comment:e,type:t,value:a},r,i,s)}};function x4(e,t){if(id(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!cn(r)){if(rd(r)){r.items.length>1&&t("Each pair must have its own sequence indicator");const i=r.items[0]||new Yr(new bt(null));if(r.commentBefore&&(i.key.commentBefore=i.key.commentBefore?`${r.commentBefore}
283
283
  ${i.key.commentBefore}`:r.commentBefore),r.comment){const s=i.value??i.key;s.comment=s.comment?`${r.comment}
284
- ${s.comment}`:r.comment}r=i}e.items[n]=cn(r)?r:new Yr(r)}}else t("Expected a sequence for this tag");return e}function N4(e,t,n){const{replacer:r}=n,i=new La(e);i.tag="tag:yaml.org,2002:pairs";let s=0;if(t&&Symbol.iterator in Object(t))for(let o of t){typeof r=="function"&&(o=r.call(t,String(s++),o));let a,l;if(Array.isArray(o))if(o.length===2)a=o[0],l=o[1];else throw new TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){const c=Object.keys(o);if(c.length===1)a=c[0],l=o[a];else throw new TypeError(`Expected tuple with one key, not ${c.length} keys`)}else a=o;i.items.push(IS(a,l,n))}return i}const MS={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:x4,createNode:N4};class iu extends La{constructor(){super(),this.add=oi.prototype.add.bind(this),this.delete=oi.prototype.delete.bind(this),this.get=oi.prototype.get.bind(this),this.has=oi.prototype.has.bind(this),this.set=oi.prototype.set.bind(this),this.tag=iu.tag}toJSON(t,n){if(!n)return super.toJSON(t);const r=new Map;n!=null&&n.onCreate&&n.onCreate(r);for(const i of this.items){let s,o;if(cn(i)?(s=Oi(i.key,"",n),o=Oi(i.value,s,n)):s=Oi(i,"",n),r.has(s))throw new Error("Ordered maps must not include duplicate keys");r.set(s,o)}return r}static from(t,n,r){const i=N4(t,n,r),s=new this;return s.items=i.items,s}}iu.tag="tag:yaml.org,2002:omap";const $S={collection:"seq",identify:e=>e instanceof Map,nodeClass:iu,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=x4(e,t),r=[];for(const{key:i}of n.items)en(i)&&(r.includes(i.value)?t(`Ordered maps must not include duplicate keys: ${i.value}`):r.push(i.value));return Object.assign(new iu,n)},createNode:(e,t,n)=>iu.from(e,t,n)};function C4({value:e,source:t},n){return t&&(e?O4:D4).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const O4={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 bt(!0),stringify:C4},D4={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new bt(!1),stringify:C4},Sbe={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]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:os},kbe={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){const t=Number(e.value);return isFinite(t)?t.toExponential():os(e)}},Abe={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new bt(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(n!==-1){const r=e.substring(n+1).replace(/_/g,"");r[r.length-1]==="0"&&(t.minFractionDigits=r.length)}return t},stringify:os},Zh=e=>typeof e=="bigint"||Number.isInteger(e);function Xb(e,t,n,{intAsBigInt:r}){const 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}const o=BigInt(e);return i==="-"?BigInt(-1)*o:o}const s=parseInt(e,n);return i==="-"?-1*s:s}function FS(e,t,n){const{value:r}=e;if(Zh(r)){const i=r.toString(t);return r<0?"-"+n+i.substr(1):n+i}return os(e)}const xbe={identify:Zh,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>Xb(e,2,2,n),stringify:e=>FS(e,2,"0b")},Nbe={identify:Zh,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>Xb(e,1,8,n),stringify:e=>FS(e,8,"0")},Cbe={identify:Zh,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>Xb(e,0,10,n),stringify:os},Obe={identify:Zh,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>Xb(e,2,16,n),stringify:e=>FS(e,16,"0x")};class su extends oi{constructor(t){super(t),this.tag=su.tag}add(t){let n;cn(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new Yr(t.key,null):n=new Yr(t,null),yl(this.items,n.key)||this.items.push(n)}get(t,n){const r=yl(this.items,t);return!n&&cn(r)?en(r.key)?r.key.value:r.key:r}set(t,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const r=yl(this.items,t);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new Yr(t))}toJSON(t,n){return super.toJSON(t,n,Set)}toString(t,n,r){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),n,r);throw new Error("Set items must all have null values")}static from(t,n,r){const{replacer:i}=r,s=new this(t);if(n&&Symbol.iterator in Object(n))for(let o of n)typeof i=="function"&&(o=i.call(n,o,o)),s.items.push(IS(o,null,r));return s}}su.tag="tag:yaml.org,2002:set";const BS={collection:"map",identify:e=>e instanceof Set,nodeClass:su,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>su.from(e,t,n),resolve(e,t){if(rd(e)){if(e.hasAllNullValues(!0))return Object.assign(new su,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function US(e,t){const n=e[0],r=n==="-"||n==="+"?e.substring(1):e,i=o=>t?BigInt(o):Number(o),s=r.replace(/_/g,"").split(":").reduce((o,a)=>o*i(60)+i(a),i(0));return n==="-"?i(-1)*s:s}function I4(e){let{value:t}=e,n=o=>o;if(typeof t=="bigint")n=o=>BigInt(o);else if(isNaN(t)||!isFinite(t))return os(e);let r="";t<0&&(r="-",t*=n(-1));const i=n(60),s=[t%i];return t<60?s.unshift(0):(t=(t-s[0])/i,s.unshift(t%i),t>=60&&(t=(t-s[0])/i,s.unshift(t))),r+s.map(o=>String(o).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const R4={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})=>US(e,n),stringify:I4},P4={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=>US(e,!1),stringify:I4},Qb={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){const t=e.match(Qb.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,i,s,o,a]=t.map(Number),l=t[7]?Number((t[7]+"00").substr(1,3)):0;let c=Date.UTC(n,r-1,i,s||0,o||0,a||0,l);const u=t[8];if(u&&u!=="Z"){let d=US(u,!1);Math.abs(d)<30&&(d*=60),c-=6e4*d}return new Date(c)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},GO=[sd,od,Wb,Gb,O4,D4,xbe,Nbe,Cbe,Obe,Sbe,kbe,Abe,LS,$S,MS,BS,R4,P4,Qb],YO=new Map([["core",Ebe],["failsafe",[sd,od,Wb]],["json",Tbe],["yaml11",GO],["yaml-1.1",GO]]),XO={binary:LS,bool:RS,float:w4,floatExp:_4,floatNaN:E4,floatTime:P4,int:k4,intHex:A4,intOct:S4,intTime:R4,map:sd,null:Gb,omap:$S,pairs:MS,seq:od,set:BS,timestamp:Qb},Dbe={"tag:yaml.org,2002:binary":LS,"tag:yaml.org,2002:omap":$S,"tag:yaml.org,2002:pairs":MS,"tag:yaml.org,2002:set":BS,"tag:yaml.org,2002:timestamp":Qb};function Dv(e,t){let n=YO.get(t);if(!n)if(Array.isArray(e))n=[];else{const r=Array.from(YO.keys()).filter(i=>i!=="yaml11").map(i=>JSON.stringify(i)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${r} or define customTags array`)}if(Array.isArray(e))for(const r of e)n=n.concat(r);else typeof e=="function"&&(n=e(n.slice()));return n.map(r=>{if(typeof r!="string")return r;const i=XO[r];if(i)return i;const s=Object.keys(XO).map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown custom tag "${r}"; use one of ${s}`)})}const Ibe=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class Jb{constructor({compat:t,customTags:n,merge:r,resolveKnownTags:i,schema:s,sortMapEntries:o,toStringDefaults:a}){this.compat=Array.isArray(t)?Dv(t,"compat"):t?Dv(null,t):null,this.merge=!!r,this.name=typeof s=="string"&&s||"core",this.knownTags=i?Dbe:{},this.tags=Dv(n,this.name),this.toStringOptions=a??null,Object.defineProperty(this,Ta,{value:sd}),Object.defineProperty(this,_o,{value:Wb}),Object.defineProperty(this,td,{value:od}),this.sortMapEntries=typeof o=="function"?o:o===!0?Ibe:null}clone(){const t=Object.create(Jb.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function Rbe(e,t){var n;const r=[];let i=t.directives===!0;if(t.directives!==!1&&e.directives){const c=e.directives.toString(e);c?(r.push(c),i=!0):e.directives.docStart&&(i=!0)}i&&r.push("---");const s=m4(e,t),{commentString:o}=s.options;if(e.commentBefore){r.length!==1&&r.unshift("");const c=o(e.commentBefore);r.unshift(no(c,""))}let a=!1,l=null;if(e.contents){if(xn(e.contents)){if(e.contents.spaceBefore&&i&&r.push(""),e.contents.commentBefore){const d=o(e.contents.commentBefore);r.push(no(d,""))}s.forceBlockIndent=!!e.comment,l=e.contents.comment}const c=l?void 0:()=>a=!0;let u=Tu(e.contents,s,()=>l=null,c);l&&(u+=bl(u,"",o(l))),(u[0]==="|"||u[0]===">")&&r[r.length-1]==="---"?r[r.length-1]=`--- ${u}`:r.push(u)}else r.push(Tu(e.contents,s));if((n=e.directives)!=null&&n.docEnd)if(e.comment){const c=o(e.comment);c.includes(`
284
+ ${s.comment}`:r.comment}r=i}e.items[n]=cn(r)?r:new Yr(r)}}else t("Expected a sequence for this tag");return e}function N4(e,t,n){const{replacer:r}=n,i=new La(e);i.tag="tag:yaml.org,2002:pairs";let s=0;if(t&&Symbol.iterator in Object(t))for(let o of t){typeof r=="function"&&(o=r.call(t,String(s++),o));let a,l;if(Array.isArray(o))if(o.length===2)a=o[0],l=o[1];else throw new TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){const c=Object.keys(o);if(c.length===1)a=c[0],l=o[a];else throw new TypeError(`Expected tuple with one key, not ${c.length} keys`)}else a=o;i.items.push(IS(a,l,n))}return i}const MS={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:x4,createNode:N4};class iu extends La{constructor(){super(),this.add=oi.prototype.add.bind(this),this.delete=oi.prototype.delete.bind(this),this.get=oi.prototype.get.bind(this),this.has=oi.prototype.has.bind(this),this.set=oi.prototype.set.bind(this),this.tag=iu.tag}toJSON(t,n){if(!n)return super.toJSON(t);const r=new Map;n!=null&&n.onCreate&&n.onCreate(r);for(const i of this.items){let s,o;if(cn(i)?(s=Oi(i.key,"",n),o=Oi(i.value,s,n)):s=Oi(i,"",n),r.has(s))throw new Error("Ordered maps must not include duplicate keys");r.set(s,o)}return r}static from(t,n,r){const i=N4(t,n,r),s=new this;return s.items=i.items,s}}iu.tag="tag:yaml.org,2002:omap";const $S={collection:"seq",identify:e=>e instanceof Map,nodeClass:iu,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=x4(e,t),r=[];for(const{key:i}of n.items)en(i)&&(r.includes(i.value)?t(`Ordered maps must not include duplicate keys: ${i.value}`):r.push(i.value));return Object.assign(new iu,n)},createNode:(e,t,n)=>iu.from(e,t,n)};function C4({value:e,source:t},n){return t&&(e?O4:D4).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const O4={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 bt(!0),stringify:C4},D4={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new bt(!1),stringify:C4},wbe={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]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:os},Tbe={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){const t=Number(e.value);return isFinite(t)?t.toExponential():os(e)}},Sbe={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new bt(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(n!==-1){const r=e.substring(n+1).replace(/_/g,"");r[r.length-1]==="0"&&(t.minFractionDigits=r.length)}return t},stringify:os},Zh=e=>typeof e=="bigint"||Number.isInteger(e);function Xb(e,t,n,{intAsBigInt:r}){const 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}const o=BigInt(e);return i==="-"?BigInt(-1)*o:o}const s=parseInt(e,n);return i==="-"?-1*s:s}function FS(e,t,n){const{value:r}=e;if(Zh(r)){const i=r.toString(t);return r<0?"-"+n+i.substr(1):n+i}return os(e)}const kbe={identify:Zh,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>Xb(e,2,2,n),stringify:e=>FS(e,2,"0b")},Abe={identify:Zh,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>Xb(e,1,8,n),stringify:e=>FS(e,8,"0")},xbe={identify:Zh,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>Xb(e,0,10,n),stringify:os},Nbe={identify:Zh,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>Xb(e,2,16,n),stringify:e=>FS(e,16,"0x")};class su extends oi{constructor(t){super(t),this.tag=su.tag}add(t){let n;cn(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new Yr(t.key,null):n=new Yr(t,null),yl(this.items,n.key)||this.items.push(n)}get(t,n){const r=yl(this.items,t);return!n&&cn(r)?en(r.key)?r.key.value:r.key:r}set(t,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const r=yl(this.items,t);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new Yr(t))}toJSON(t,n){return super.toJSON(t,n,Set)}toString(t,n,r){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),n,r);throw new Error("Set items must all have null values")}static from(t,n,r){const{replacer:i}=r,s=new this(t);if(n&&Symbol.iterator in Object(n))for(let o of n)typeof i=="function"&&(o=i.call(n,o,o)),s.items.push(IS(o,null,r));return s}}su.tag="tag:yaml.org,2002:set";const BS={collection:"map",identify:e=>e instanceof Set,nodeClass:su,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>su.from(e,t,n),resolve(e,t){if(rd(e)){if(e.hasAllNullValues(!0))return Object.assign(new su,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function US(e,t){const n=e[0],r=n==="-"||n==="+"?e.substring(1):e,i=o=>t?BigInt(o):Number(o),s=r.replace(/_/g,"").split(":").reduce((o,a)=>o*i(60)+i(a),i(0));return n==="-"?i(-1)*s:s}function I4(e){let{value:t}=e,n=o=>o;if(typeof t=="bigint")n=o=>BigInt(o);else if(isNaN(t)||!isFinite(t))return os(e);let r="";t<0&&(r="-",t*=n(-1));const i=n(60),s=[t%i];return t<60?s.unshift(0):(t=(t-s[0])/i,s.unshift(t%i),t>=60&&(t=(t-s[0])/i,s.unshift(t))),r+s.map(o=>String(o).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const R4={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})=>US(e,n),stringify:I4},P4={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=>US(e,!1),stringify:I4},Qb={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){const t=e.match(Qb.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,i,s,o,a]=t.map(Number),l=t[7]?Number((t[7]+"00").substr(1,3)):0;let c=Date.UTC(n,r-1,i,s||0,o||0,a||0,l);const u=t[8];if(u&&u!=="Z"){let d=US(u,!1);Math.abs(d)<30&&(d*=60),c-=6e4*d}return new Date(c)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},GO=[sd,od,Wb,Gb,O4,D4,kbe,Abe,xbe,Nbe,wbe,Tbe,Sbe,LS,$S,MS,BS,R4,P4,Qb],YO=new Map([["core",ybe],["failsafe",[sd,od,Wb]],["json",_be],["yaml11",GO],["yaml-1.1",GO]]),XO={binary:LS,bool:RS,float:w4,floatExp:_4,floatNaN:E4,floatTime:P4,int:k4,intHex:A4,intOct:S4,intTime:R4,map:sd,null:Gb,omap:$S,pairs:MS,seq:od,set:BS,timestamp:Qb},Cbe={"tag:yaml.org,2002:binary":LS,"tag:yaml.org,2002:omap":$S,"tag:yaml.org,2002:pairs":MS,"tag:yaml.org,2002:set":BS,"tag:yaml.org,2002:timestamp":Qb};function Dv(e,t){let n=YO.get(t);if(!n)if(Array.isArray(e))n=[];else{const r=Array.from(YO.keys()).filter(i=>i!=="yaml11").map(i=>JSON.stringify(i)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${r} or define customTags array`)}if(Array.isArray(e))for(const r of e)n=n.concat(r);else typeof e=="function"&&(n=e(n.slice()));return n.map(r=>{if(typeof r!="string")return r;const i=XO[r];if(i)return i;const s=Object.keys(XO).map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown custom tag "${r}"; use one of ${s}`)})}const Obe=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class Jb{constructor({compat:t,customTags:n,merge:r,resolveKnownTags:i,schema:s,sortMapEntries:o,toStringDefaults:a}){this.compat=Array.isArray(t)?Dv(t,"compat"):t?Dv(null,t):null,this.merge=!!r,this.name=typeof s=="string"&&s||"core",this.knownTags=i?Cbe:{},this.tags=Dv(n,this.name),this.toStringOptions=a??null,Object.defineProperty(this,Ta,{value:sd}),Object.defineProperty(this,_o,{value:Wb}),Object.defineProperty(this,td,{value:od}),this.sortMapEntries=typeof o=="function"?o:o===!0?Obe:null}clone(){const t=Object.create(Jb.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function Dbe(e,t){var n;const r=[];let i=t.directives===!0;if(t.directives!==!1&&e.directives){const c=e.directives.toString(e);c?(r.push(c),i=!0):e.directives.docStart&&(i=!0)}i&&r.push("---");const s=m4(e,t),{commentString:o}=s.options;if(e.commentBefore){r.length!==1&&r.unshift("");const c=o(e.commentBefore);r.unshift(no(c,""))}let a=!1,l=null;if(e.contents){if(xn(e.contents)){if(e.contents.spaceBefore&&i&&r.push(""),e.contents.commentBefore){const d=o(e.contents.commentBefore);r.push(no(d,""))}s.forceBlockIndent=!!e.comment,l=e.contents.comment}const c=l?void 0:()=>a=!0;let u=Tu(e.contents,s,()=>l=null,c);l&&(u+=bl(u,"",o(l))),(u[0]==="|"||u[0]===">")&&r[r.length-1]==="---"?r[r.length-1]=`--- ${u}`:r.push(u)}else r.push(Tu(e.contents,s));if((n=e.directives)!=null&&n.docEnd)if(e.comment){const c=o(e.comment);c.includes(`
285
285
  `)?(r.push("..."),r.push(no(c,""))):r.push(`... ${c}`)}else r.push("...");else{let c=e.comment;c&&a&&(c=c.replace(/^\n+/,"")),c&&((!a||l)&&r[r.length-1]!==""&&r.push(""),r.push(no(o(c),"")))}return r.join(`
286
286
  `)+`
287
- `}class ad{constructor(t,n,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Pi,{value:f_});let i=null;typeof n=="function"||Array.isArray(n)?i=n:r===void 0&&n&&(r=n,n=void 0);const s=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},r);this.options=s;let{version:o}=s;r!=null&&r._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new Or({version:o}),this.setSchema(o,r),this.contents=t===void 0?null:this.createNode(t,i,r)}clone(){const t=Object.create(ad.prototype,{[Pi]:{value:f_}});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=xn(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){_c(this.contents)&&this.contents.add(t)}addIn(t,n){_c(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const r=d4(this);t.anchor=!n||r.has(n)?f4(n||"a",r):n}return new Vb(t.anchor)}createNode(t,n,r){let i;if(typeof n=="function")t=n.call({"":t},"",t),i=n;else if(Array.isArray(n)){const g=v=>typeof v=="number"||v instanceof String||v instanceof Number,b=n.filter(g).map(String);b.length>0&&(n=n.concat(b)),i=n}else r===void 0&&n&&(r=n,n=void 0);const{aliasDuplicateObjects:s,anchorPrefix:o,flow:a,keepUndefined:l,onTagObj:c,tag:u}=r??{},{onAnchor:d,setAnchors:f,sourceObjects:h}=abe(this,o||"a"),p={aliasDuplicateObjects:s??!0,keepUndefined:l??!1,onAnchor:d,onTagObj:c,replacer:i,schema:this.schema,sourceObjects:h},m=uh(t,u,p);return a&&dn(m)&&(m.flow=!0),f(),m}createPair(t,n,r={}){const i=this.createNode(t,null,r),s=this.createNode(n,null,r);return new Yr(i,s)}delete(t){return _c(this.contents)?this.contents.delete(t):!1}deleteIn(t){return ef(t)?this.contents==null?!1:(this.contents=null,!0):_c(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return dn(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return ef(t)?!n&&en(this.contents)?this.contents.value:this.contents:dn(this.contents)?this.contents.getIn(t,n):void 0}has(t){return dn(this.contents)?this.contents.has(t):!1}hasIn(t){return ef(t)?this.contents!==void 0:dn(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=n0(this.schema,[t],n):_c(this.contents)&&this.contents.set(t,n)}setIn(t,n){ef(t)?this.contents=n:this.contents==null?this.contents=n0(this.schema,Array.from(t),n):_c(this.contents)&&this.contents.setIn(t,n)}setSchema(t,n={}){typeof t=="number"&&(t=String(t));let r;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new Or({version:"1.1"}),r={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new Or({version:t}),r={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{const i=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${i}`)}}if(n.schema instanceof Object)this.schema=n.schema;else if(r)this.schema=new Jb(Object.assign(r,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:n,mapAsMap:r,maxAliasCount:i,onAnchor:s,reviver:o}={}){const a={anchors:new Map,doc:this,keep:!t,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},l=Oi(this.contents,n??"",a);if(typeof s=="function")for(const{count:c,res:u}of a.anchors.values())s(u,c);return typeof o=="function"?Fc(o,{"":l},"",l):l}toJSON(t,n){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:n})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){const n=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return Rbe(this,t)}}function _c(e){if(dn(e))return!0;throw new Error("Expected a YAML collection as document contents")}class HS extends Error{constructor(t,n,r,i){super(),this.name=t,this.code=r,this.message=i,this.pos=n}}let vl=class extends HS{constructor(e,t,n){super("YAMLParseError",e,t,n)}};class L4 extends HS{constructor(t,n,r){super("YAMLWarning",t,n,r)}}const i0=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(a=>t.linePos(a));const{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let s=i-1,o=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(s>=60&&o.length>80){const a=Math.min(s-39,o.length-79);o="…"+o.substring(a),s-=a-1}if(o.length>80&&(o=o.substring(0,79)+"…"),r>1&&/^ *$/.test(o.substring(0,s))){let a=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);a.length>80&&(a=a.substring(0,79)+`…
287
+ `}class ad{constructor(t,n,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Pi,{value:f_});let i=null;typeof n=="function"||Array.isArray(n)?i=n:r===void 0&&n&&(r=n,n=void 0);const s=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},r);this.options=s;let{version:o}=s;r!=null&&r._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new Or({version:o}),this.setSchema(o,r),this.contents=t===void 0?null:this.createNode(t,i,r)}clone(){const t=Object.create(ad.prototype,{[Pi]:{value:f_}});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=xn(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){_c(this.contents)&&this.contents.add(t)}addIn(t,n){_c(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const r=d4(this);t.anchor=!n||r.has(n)?f4(n||"a",r):n}return new Vb(t.anchor)}createNode(t,n,r){let i;if(typeof n=="function")t=n.call({"":t},"",t),i=n;else if(Array.isArray(n)){const g=v=>typeof v=="number"||v instanceof String||v instanceof Number,b=n.filter(g).map(String);b.length>0&&(n=n.concat(b)),i=n}else r===void 0&&n&&(r=n,n=void 0);const{aliasDuplicateObjects:s,anchorPrefix:o,flow:a,keepUndefined:l,onTagObj:c,tag:u}=r??{},{onAnchor:d,setAnchors:f,sourceObjects:h}=sbe(this,o||"a"),p={aliasDuplicateObjects:s??!0,keepUndefined:l??!1,onAnchor:d,onTagObj:c,replacer:i,schema:this.schema,sourceObjects:h},m=uh(t,u,p);return a&&dn(m)&&(m.flow=!0),f(),m}createPair(t,n,r={}){const i=this.createNode(t,null,r),s=this.createNode(n,null,r);return new Yr(i,s)}delete(t){return _c(this.contents)?this.contents.delete(t):!1}deleteIn(t){return ef(t)?this.contents==null?!1:(this.contents=null,!0):_c(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return dn(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return ef(t)?!n&&en(this.contents)?this.contents.value:this.contents:dn(this.contents)?this.contents.getIn(t,n):void 0}has(t){return dn(this.contents)?this.contents.has(t):!1}hasIn(t){return ef(t)?this.contents!==void 0:dn(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=n0(this.schema,[t],n):_c(this.contents)&&this.contents.set(t,n)}setIn(t,n){ef(t)?this.contents=n:this.contents==null?this.contents=n0(this.schema,Array.from(t),n):_c(this.contents)&&this.contents.setIn(t,n)}setSchema(t,n={}){typeof t=="number"&&(t=String(t));let r;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new Or({version:"1.1"}),r={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new Or({version:t}),r={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{const i=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${i}`)}}if(n.schema instanceof Object)this.schema=n.schema;else if(r)this.schema=new Jb(Object.assign(r,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:n,mapAsMap:r,maxAliasCount:i,onAnchor:s,reviver:o}={}){const a={anchors:new Map,doc:this,keep:!t,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},l=Oi(this.contents,n??"",a);if(typeof s=="function")for(const{count:c,res:u}of a.anchors.values())s(u,c);return typeof o=="function"?Fc(o,{"":l},"",l):l}toJSON(t,n){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:n})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){const n=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return Dbe(this,t)}}function _c(e){if(dn(e))return!0;throw new Error("Expected a YAML collection as document contents")}class HS extends Error{constructor(t,n,r,i){super(),this.name=t,this.code=r,this.message=i,this.pos=n}}let vl=class extends HS{constructor(e,t,n){super("YAMLParseError",e,t,n)}};class L4 extends HS{constructor(t,n,r){super("YAMLWarning",t,n,r)}}const i0=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(a=>t.linePos(a));const{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let s=i-1,o=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(s>=60&&o.length>80){const a=Math.min(s-39,o.length-79);o="…"+o.substring(a),s-=a-1}if(o.length>80&&(o=o.substring(0,79)+"…"),r>1&&/^ *$/.test(o.substring(0,s))){let a=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);a.length>80&&(a=a.substring(0,79)+`…
288
288
  `),o=a+o}if(/[^ ]/.test(o)){let a=1;const l=n.linePos[1];l&&l.line===r&&l.col>i&&(a=Math.max(1,Math.min(l.col-i,80-s)));const c=" ".repeat(s)+"^".repeat(a);n.message+=`:
289
289
 
290
290
  ${o}
291
291
  ${c}
292
292
  `}};function Su(e,{flow:t,indicator:n,next:r,offset:i,onError:s,startOnNewline:o}){let a=!1,l=o,c=o,u="",d="",f=!1,h=!1,p=!1,m=null,g=null,b=null,v=null,y=null;for(const w of e)switch(p&&(w.type!=="space"&&w.type!=="newline"&&w.type!=="comma"&&s(w.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),p=!1),w.type){case"space":!t&&l&&n!=="doc-start"&&w.source[0]===" "&&s(w,"TAB_AS_INDENT","Tabs are not allowed as indentation"),c=!0;break;case"comment":{c||s(w,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const S=w.source.substring(1)||" ";u?u+=d+S:u=S,d="",l=!1;break}case"newline":l?u?u+=w.source:a=!0:d+=w.source,l=!0,f=!0,(m||g)&&(h=!0),c=!0;break;case"anchor":m&&s(w,"MULTIPLE_ANCHORS","A node can have at most one anchor"),w.source.endsWith(":")&&s(w.offset+w.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),m=w,y===null&&(y=w.offset),l=!1,c=!1,p=!0;break;case"tag":{g&&s(w,"MULTIPLE_TAGS","A node can have at most one tag"),g=w,y===null&&(y=w.offset),l=!1,c=!1,p=!0;break}case n:(m||g)&&s(w,"BAD_PROP_ORDER",`Anchors and tags must be after the ${w.source} indicator`),v&&s(w,"UNEXPECTED_TOKEN",`Unexpected ${w.source} in ${t??"collection"}`),v=w,l=!1,c=!1;break;case"comma":if(t){b&&s(w,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),b=w,l=!1,c=!1;break}default:s(w,"UNEXPECTED_TOKEN",`Unexpected ${w.type} token`),l=!1,c=!1}const E=e[e.length-1],T=E?E.offset+E.source.length:i;return p&&r&&r.type!=="space"&&r.type!=="newline"&&r.type!=="comma"&&(r.type!=="scalar"||r.source!=="")&&s(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:b,found:v,spaceBefore:a,comment:u,hasNewline:f,hasNewlineAfterProp:h,anchor:m,tag:g,end:T,start:y??T}}function dh(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
293
- `))return!0;if(e.end){for(const t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(const t of e.items){for(const n of t.start)if(n.type==="newline")return!0;if(t.sep){for(const n of t.sep)if(n.type==="newline")return!0}if(dh(t.key)||dh(t.value))return!0}return!1;default:return!0}}function g_(e,t,n){if((t==null?void 0:t.type)==="flow-collection"){const r=t.end[0];r.indent===e&&(r.source==="]"||r.source==="}")&&dh(t)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function M4(e,t,n){const{uniqueKeys:r}=e.options;if(r===!1)return!1;const i=typeof r=="function"?r:(s,o)=>s===o||en(s)&&en(o)&&s.value===o.value&&!(s.value==="<<"&&e.schema.merge);return t.some(s=>i(s.key,n))}const QO="All mapping items must start at the same column";function Pbe({composeNode:e,composeEmptyNode:t},n,r,i,s){var o;const a=(s==null?void 0:s.nodeClass)??oi,l=new a(n.schema);n.atRoot&&(n.atRoot=!1);let c=r.offset,u=null;for(const d of r.items){const{start:f,key:h,sep:p,value:m}=d,g=Su(f,{indicator:"explicit-key-ind",next:h??(p==null?void 0:p[0]),offset:c,onError:i,startOnNewline:!0}),b=!g.found;if(b){if(h&&(h.type==="block-seq"?i(c,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in h&&h.indent!==r.indent&&i(c,"BAD_INDENT",QO)),!g.anchor&&!g.tag&&!p){u=g.end,g.comment&&(l.comment?l.comment+=`
293
+ `))return!0;if(e.end){for(const t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(const t of e.items){for(const n of t.start)if(n.type==="newline")return!0;if(t.sep){for(const n of t.sep)if(n.type==="newline")return!0}if(dh(t.key)||dh(t.value))return!0}return!1;default:return!0}}function g_(e,t,n){if((t==null?void 0:t.type)==="flow-collection"){const r=t.end[0];r.indent===e&&(r.source==="]"||r.source==="}")&&dh(t)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function M4(e,t,n){const{uniqueKeys:r}=e.options;if(r===!1)return!1;const i=typeof r=="function"?r:(s,o)=>s===o||en(s)&&en(o)&&s.value===o.value&&!(s.value==="<<"&&e.schema.merge);return t.some(s=>i(s.key,n))}const QO="All mapping items must start at the same column";function Ibe({composeNode:e,composeEmptyNode:t},n,r,i,s){var o;const a=(s==null?void 0:s.nodeClass)??oi,l=new a(n.schema);n.atRoot&&(n.atRoot=!1);let c=r.offset,u=null;for(const d of r.items){const{start:f,key:h,sep:p,value:m}=d,g=Su(f,{indicator:"explicit-key-ind",next:h??(p==null?void 0:p[0]),offset:c,onError:i,startOnNewline:!0}),b=!g.found;if(b){if(h&&(h.type==="block-seq"?i(c,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in h&&h.indent!==r.indent&&i(c,"BAD_INDENT",QO)),!g.anchor&&!g.tag&&!p){u=g.end,g.comment&&(l.comment?l.comment+=`
294
294
  `+g.comment:l.comment=g.comment);continue}(g.hasNewlineAfterProp||dh(h))&&i(h??f[f.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((o=g.found)==null?void 0:o.indent)!==r.indent&&i(c,"BAD_INDENT",QO);const v=g.end,y=h?e(n,h,g,i):t(n,v,f,null,g,i);n.schema.compat&&g_(r.indent,h,i),M4(n,l.items,y)&&i(v,"DUPLICATE_KEY","Map keys must be unique");const E=Su(p??[],{indicator:"map-value-ind",next:m,offset:y.range[2],onError:i,startOnNewline:!h||h.type==="block-scalar"});if(c=E.end,E.found){b&&((m==null?void 0:m.type)==="block-map"&&!E.hasNewline&&i(c,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&g.start<E.found.offset-1024&&i(y.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const T=m?e(n,m,E,i):t(n,c,p,null,E,i);n.schema.compat&&g_(r.indent,m,i),c=T.range[2];const w=new Yr(y,T);n.options.keepSourceTokens&&(w.srcToken=d),l.items.push(w)}else{b&&i(y.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),E.comment&&(y.comment?y.comment+=`
295
- `+E.comment:y.comment=E.comment);const T=new Yr(y);n.options.keepSourceTokens&&(T.srcToken=d),l.items.push(T)}}return u&&u<c&&i(u,"IMPOSSIBLE","Map comment with trailing content"),l.range=[r.offset,c,u??c],l}function Lbe({composeNode:e,composeEmptyNode:t},n,r,i,s){const o=(s==null?void 0:s.nodeClass)??La,a=new o(n.schema);n.atRoot&&(n.atRoot=!1);let l=r.offset,c=null;for(const{start:u,value:d}of r.items){const f=Su(u,{indicator:"seq-item-ind",next:d,offset:l,onError:i,startOnNewline:!0});if(!f.found)if(f.anchor||f.tag||d)d&&d.type==="block-seq"?i(f.end,"BAD_INDENT","All sequence items must start at the same column"):i(l,"MISSING_CHAR","Sequence item without - indicator");else{c=f.end,f.comment&&(a.comment=f.comment);continue}const h=d?e(n,d,f,i):t(n,f.end,u,null,f,i);n.schema.compat&&g_(r.indent,d,i),l=h.range[2],a.items.push(h)}return a.range=[r.offset,l,c??l],a}function ep(e,t,n,r){let i="";if(e){let s=!1,o="";for(const a of e){const{source:l,type:c}=a;switch(c){case"space":s=!0;break;case"comment":{n&&!s&&r(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const u=l.substring(1)||" ";i?i+=o+u:i=u,o="";break}case"newline":i&&(o+=l),s=!0;break;default:r(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}t+=l.length}}return{comment:i,offset:t}}const Iv="Block collections are not allowed within flow collections",Rv=e=>e&&(e.type==="block-map"||e.type==="block-seq");function Mbe({composeNode:e,composeEmptyNode:t},n,r,i,s){const o=r.start.source==="{",a=o?"flow map":"flow sequence",l=(s==null?void 0:s.nodeClass)??(o?oi:La),c=new l(n.schema);c.flow=!0;const u=n.atRoot;u&&(n.atRoot=!1);let d=r.offset+r.start.source.length;for(let g=0;g<r.items.length;++g){const b=r.items[g],{start:v,key:y,sep:E,value:T}=b,w=Su(v,{flow:a,indicator:"explicit-key-ind",next:y??(E==null?void 0:E[0]),offset:d,onError:i,startOnNewline:!1});if(!w.found){if(!w.anchor&&!w.tag&&!E&&!T){g===0&&w.comma?i(w.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`):g<r.items.length-1&&i(w.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${a}`),w.comment&&(c.comment?c.comment+=`
295
+ `+E.comment:y.comment=E.comment);const T=new Yr(y);n.options.keepSourceTokens&&(T.srcToken=d),l.items.push(T)}}return u&&u<c&&i(u,"IMPOSSIBLE","Map comment with trailing content"),l.range=[r.offset,c,u??c],l}function Rbe({composeNode:e,composeEmptyNode:t},n,r,i,s){const o=(s==null?void 0:s.nodeClass)??La,a=new o(n.schema);n.atRoot&&(n.atRoot=!1);let l=r.offset,c=null;for(const{start:u,value:d}of r.items){const f=Su(u,{indicator:"seq-item-ind",next:d,offset:l,onError:i,startOnNewline:!0});if(!f.found)if(f.anchor||f.tag||d)d&&d.type==="block-seq"?i(f.end,"BAD_INDENT","All sequence items must start at the same column"):i(l,"MISSING_CHAR","Sequence item without - indicator");else{c=f.end,f.comment&&(a.comment=f.comment);continue}const h=d?e(n,d,f,i):t(n,f.end,u,null,f,i);n.schema.compat&&g_(r.indent,d,i),l=h.range[2],a.items.push(h)}return a.range=[r.offset,l,c??l],a}function ep(e,t,n,r){let i="";if(e){let s=!1,o="";for(const a of e){const{source:l,type:c}=a;switch(c){case"space":s=!0;break;case"comment":{n&&!s&&r(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const u=l.substring(1)||" ";i?i+=o+u:i=u,o="";break}case"newline":i&&(o+=l),s=!0;break;default:r(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}t+=l.length}}return{comment:i,offset:t}}const Iv="Block collections are not allowed within flow collections",Rv=e=>e&&(e.type==="block-map"||e.type==="block-seq");function Pbe({composeNode:e,composeEmptyNode:t},n,r,i,s){const o=r.start.source==="{",a=o?"flow map":"flow sequence",l=(s==null?void 0:s.nodeClass)??(o?oi:La),c=new l(n.schema);c.flow=!0;const u=n.atRoot;u&&(n.atRoot=!1);let d=r.offset+r.start.source.length;for(let g=0;g<r.items.length;++g){const b=r.items[g],{start:v,key:y,sep:E,value:T}=b,w=Su(v,{flow:a,indicator:"explicit-key-ind",next:y??(E==null?void 0:E[0]),offset:d,onError:i,startOnNewline:!1});if(!w.found){if(!w.anchor&&!w.tag&&!E&&!T){g===0&&w.comma?i(w.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`):g<r.items.length-1&&i(w.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${a}`),w.comment&&(c.comment?c.comment+=`
296
296
  `+w.comment:c.comment=w.comment),d=w.end;continue}!o&&n.options.strict&&dh(y)&&i(y,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(g===0)w.comma&&i(w.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`);else if(w.comma||i(w.start,"MISSING_CHAR",`Missing , between ${a} items`),w.comment){let S="";e:for(const k of v)switch(k.type){case"comma":case"space":break;case"comment":S=k.source.substring(1);break e;default:break e}if(S){let k=c.items[c.items.length-1];cn(k)&&(k=k.value??k.key),k.comment?k.comment+=`
297
297
  `+S:k.comment=S,w.comment=w.comment.substring(S.length+1)}}if(!o&&!E&&!w.found){const S=T?e(n,T,w,i):t(n,w.end,E,null,w,i);c.items.push(S),d=S.range[2],Rv(T)&&i(S.range,"BLOCK_IN_FLOW",Iv)}else{const S=w.end,k=y?e(n,y,w,i):t(n,S,v,null,w,i);Rv(y)&&i(k.range,"BLOCK_IN_FLOW",Iv);const x=Su(E??[],{flow:a,indicator:"map-value-ind",next:T,offset:k.range[2],onError:i,startOnNewline:!1});if(x.found){if(!o&&!w.found&&n.options.strict){if(E)for(const R of E){if(R===x.found)break;if(R.type==="newline"){i(R,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}w.start<x.found.offset-1024&&i(x.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else T&&("source"in T&&T.source&&T.source[0]===":"?i(T,"MISSING_CHAR",`Missing space after : in ${a}`):i(x.start,"MISSING_CHAR",`Missing , or : between ${a} items`));const A=T?e(n,T,x,i):x.found?t(n,x.end,E,null,x,i):null;A?Rv(T)&&i(A.range,"BLOCK_IN_FLOW",Iv):x.comment&&(k.comment?k.comment+=`
298
298
  `+x.comment:k.comment=x.comment);const M=new Yr(k,A);if(n.options.keepSourceTokens&&(M.srcToken=b),o){const R=c;M4(n,R.items,k)&&i(S,"DUPLICATE_KEY","Map keys must be unique"),R.items.push(M)}else{const R=new oi(n.schema);R.flow=!0,R.items.push(M),c.items.push(R)}d=A?A.range[2]:x.end}}const f=o?"}":"]",[h,...p]=r.end;let m=d;if(h&&h.source===f)m=h.offset+h.source.length;else{const g=a[0].toUpperCase()+a.substring(1),b=u?`${g} must end with a ${f}`:`${g} in block collection must be sufficiently indented and end with a ${f}`;i(d,u?"MISSING_CHAR":"BAD_INDENT",b),h&&h.source.length!==1&&p.unshift(h)}if(p.length>0){const g=ep(p,m,n.options.strict,i);g.comment&&(c.comment?c.comment+=`
299
- `+g.comment:c.comment=g.comment),c.range=[r.offset,m,g.offset]}else c.range=[r.offset,m,m];return c}function Pv(e,t,n,r,i,s){const o=n.type==="block-map"?Pbe(e,t,n,r,s):n.type==="block-seq"?Lbe(e,t,n,r,s):Mbe(e,t,n,r,s),a=o.constructor;return i==="!"||i===a.tagName?(o.tag=a.tagName,o):(i&&(o.tag=i),o)}function $be(e,t,n,r,i){var s;const o=r?t.directives.tagName(r.source,f=>i(r,"TAG_RESOLVE_FAILED",f)):null,a=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!r||!o||o==="!"||o===oi.tagName&&a==="map"||o===La.tagName&&a==="seq"||!a)return Pv(e,t,n,i,o);let l=t.schema.tags.find(f=>f.tag===o&&f.collection===a);if(!l){const f=t.schema.knownTags[o];if(f&&f.collection===a)t.schema.tags.push(Object.assign({},f,{default:!1})),l=f;else return f!=null&&f.collection?i(r,"BAD_COLLECTION_TYPE",`${f.tag} used for ${a} collection, but expects ${f.collection}`,!0):i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${o}`,!0),Pv(e,t,n,i,o)}const c=Pv(e,t,n,i,o,l),u=((s=l.resolve)==null?void 0:s.call(l,c,f=>i(r,"TAG_RESOLVE_FAILED",f),t.options))??c,d=xn(u)?u:new bt(u);return d.range=c.range,d.tag=o,l!=null&&l.format&&(d.format=l.format),d}function $4(e,t,n){const r=e.offset,i=Fbe(e,t,n);if(!i)return{value:"",type:null,comment:"",range:[r,r,r]};const s=i.mode===">"?bt.BLOCK_FOLDED:bt.BLOCK_LITERAL,o=e.source?Bbe(e.source):[];let a=o.length;for(let m=o.length-1;m>=0;--m){const g=o[m][1];if(g===""||g==="\r")a=m;else break}if(a===0){const m=i.chomp==="+"&&o.length>0?`
299
+ `+g.comment:c.comment=g.comment),c.range=[r.offset,m,g.offset]}else c.range=[r.offset,m,m];return c}function Pv(e,t,n,r,i,s){const o=n.type==="block-map"?Ibe(e,t,n,r,s):n.type==="block-seq"?Rbe(e,t,n,r,s):Pbe(e,t,n,r,s),a=o.constructor;return i==="!"||i===a.tagName?(o.tag=a.tagName,o):(i&&(o.tag=i),o)}function Lbe(e,t,n,r,i){var s;const o=r?t.directives.tagName(r.source,f=>i(r,"TAG_RESOLVE_FAILED",f)):null,a=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!r||!o||o==="!"||o===oi.tagName&&a==="map"||o===La.tagName&&a==="seq"||!a)return Pv(e,t,n,i,o);let l=t.schema.tags.find(f=>f.tag===o&&f.collection===a);if(!l){const f=t.schema.knownTags[o];if(f&&f.collection===a)t.schema.tags.push(Object.assign({},f,{default:!1})),l=f;else return f!=null&&f.collection?i(r,"BAD_COLLECTION_TYPE",`${f.tag} used for ${a} collection, but expects ${f.collection}`,!0):i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${o}`,!0),Pv(e,t,n,i,o)}const c=Pv(e,t,n,i,o,l),u=((s=l.resolve)==null?void 0:s.call(l,c,f=>i(r,"TAG_RESOLVE_FAILED",f),t.options))??c,d=xn(u)?u:new bt(u);return d.range=c.range,d.tag=o,l!=null&&l.format&&(d.format=l.format),d}function $4(e,t,n){const r=e.offset,i=Mbe(e,t,n);if(!i)return{value:"",type:null,comment:"",range:[r,r,r]};const s=i.mode===">"?bt.BLOCK_FOLDED:bt.BLOCK_LITERAL,o=e.source?$be(e.source):[];let a=o.length;for(let m=o.length-1;m>=0;--m){const g=o[m][1];if(g===""||g==="\r")a=m;else break}if(a===0){const m=i.chomp==="+"&&o.length>0?`
300
300
  `.repeat(Math.max(1,o.length-1)):"";let g=r+i.length;return e.source&&(g+=e.source.length),{value:m,type:s,comment:i.comment,range:[r,g,g]}}let l=e.indent+i.indent,c=e.offset+i.length,u=0;for(let m=0;m<a;++m){const[g,b]=o[m];if(b===""||b==="\r")i.indent===0&&g.length>l&&(l=g.length);else{g.length<l&&n(c+g.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),i.indent===0&&(l=g.length),u=m;break}c+=g.length+b.length+1}for(let m=o.length-1;m>=a;--m)o[m][0].length>l&&(a=m+1);let d="",f="",h=!1;for(let m=0;m<u;++m)d+=o[m][0].slice(l)+`
301
301
  `;for(let m=u;m<a;++m){let[g,b]=o[m];c+=g.length+b.length+1;const v=b[b.length-1]==="\r";if(v&&(b=b.slice(0,-1)),b&&g.length<l){const y=`Block scalar lines must not be less indented than their ${i.indent?"explicit indentation indicator":"first line"}`;n(c-b.length-(v?2:1),"BAD_INDENT",y),g=""}s===bt.BLOCK_LITERAL?(d+=f+g.slice(l)+b,f=`
302
302
  `):g.length>l||b[0]===" "?(f===" "?f=`
@@ -311,41 +311,41 @@ ${c}
311
311
  `+o[m][0].slice(l);d[d.length-1]!==`
312
312
  `&&(d+=`
313
313
  `);break;default:d+=`
314
- `}const p=r+i.length+e.source.length;return{value:d,type:s,comment:i.comment,range:[r,p,p]}}function Fbe({offset:e,props:t},n,r){if(t[0].type!=="block-scalar-header")return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:i}=t[0],s=i[0];let o=0,a="",l=-1;for(let f=1;f<i.length;++f){const h=i[f];if(!a&&(h==="-"||h==="+"))a=h;else{const p=Number(h);!o&&p?o=p:l===-1&&(l=e+f)}}l!==-1&&r(l,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${i}`);let c=!1,u="",d=i.length;for(let f=1;f<t.length;++f){const h=t[f];switch(h.type){case"space":c=!0;case"newline":d+=h.source.length;break;case"comment":n&&!c&&r(h,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),d+=h.source.length,u=h.source.substring(1);break;case"error":r(h,"UNEXPECTED_TOKEN",h.message),d+=h.source.length;break;default:{const p=`Unexpected token in block scalar header: ${h.type}`;r(h,"UNEXPECTED_TOKEN",p);const m=h.source;m&&typeof m=="string"&&(d+=m.length)}}}return{mode:s,indent:o,chomp:a,comment:u,length:d}}function Bbe(e){const t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),i=[r!=null&&r[1]?[r[1],n.slice(r[1].length)]:["",n]];for(let s=1;s<t.length;s+=2)i.push([t[s],t[s+1]]);return i}function F4(e,t,n){const{offset:r,type:i,source:s,end:o}=e;let a,l;const c=(f,h,p)=>n(r+f,h,p);switch(i){case"scalar":a=bt.PLAIN,l=Ube(s,c);break;case"single-quoted-scalar":a=bt.QUOTE_SINGLE,l=Hbe(s,c);break;case"double-quoted-scalar":a=bt.QUOTE_DOUBLE,l=jbe(s,c);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`),{value:"",type:null,comment:"",range:[r,r+s.length,r+s.length]}}const u=r+s.length,d=ep(o,u,t,n);return{value:l,type:a,comment:d.comment,range:[r,u,d.offset]}}function Ube(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}`),B4(e)}function Hbe(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),B4(e.slice(1,-1)).replace(/''/g,"'")}function B4(e){let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
314
+ `}const p=r+i.length+e.source.length;return{value:d,type:s,comment:i.comment,range:[r,p,p]}}function Mbe({offset:e,props:t},n,r){if(t[0].type!=="block-scalar-header")return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:i}=t[0],s=i[0];let o=0,a="",l=-1;for(let f=1;f<i.length;++f){const h=i[f];if(!a&&(h==="-"||h==="+"))a=h;else{const p=Number(h);!o&&p?o=p:l===-1&&(l=e+f)}}l!==-1&&r(l,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${i}`);let c=!1,u="",d=i.length;for(let f=1;f<t.length;++f){const h=t[f];switch(h.type){case"space":c=!0;case"newline":d+=h.source.length;break;case"comment":n&&!c&&r(h,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),d+=h.source.length,u=h.source.substring(1);break;case"error":r(h,"UNEXPECTED_TOKEN",h.message),d+=h.source.length;break;default:{const p=`Unexpected token in block scalar header: ${h.type}`;r(h,"UNEXPECTED_TOKEN",p);const m=h.source;m&&typeof m=="string"&&(d+=m.length)}}}return{mode:s,indent:o,chomp:a,comment:u,length:d}}function $be(e){const t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),i=[r!=null&&r[1]?[r[1],n.slice(r[1].length)]:["",n]];for(let s=1;s<t.length;s+=2)i.push([t[s],t[s+1]]);return i}function F4(e,t,n){const{offset:r,type:i,source:s,end:o}=e;let a,l;const c=(f,h,p)=>n(r+f,h,p);switch(i){case"scalar":a=bt.PLAIN,l=Fbe(s,c);break;case"single-quoted-scalar":a=bt.QUOTE_SINGLE,l=Bbe(s,c);break;case"double-quoted-scalar":a=bt.QUOTE_DOUBLE,l=Ube(s,c);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`),{value:"",type:null,comment:"",range:[r,r+s.length,r+s.length]}}const u=r+s.length,d=ep(o,u,t,n);return{value:l,type:a,comment:d.comment,range:[r,u,d.offset]}}function Fbe(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}`),B4(e)}function Bbe(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),B4(e.slice(1,-1)).replace(/''/g,"'")}function B4(e){let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
315
315
  `,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
316
316
  `,"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],s=" ",o=t.lastIndex;for(n.lastIndex=o;r=n.exec(e);)r[1]===""?s===`
317
317
  `?i+=s:s=`
318
- `:(i+=s+r[1],s=" "),o=n.lastIndex;const a=/[ \t]*(.*)/sy;return a.lastIndex=o,r=a.exec(e),i+s+((r==null?void 0:r[1])??"")}function jbe(e,t){let n="";for(let r=1;r<e.length-1;++r){const i=e[r];if(!(i==="\r"&&e[r+1]===`
318
+ `:(i+=s+r[1],s=" "),o=n.lastIndex;const a=/[ \t]*(.*)/sy;return a.lastIndex=o,r=a.exec(e),i+s+((r==null?void 0:r[1])??"")}function Ube(e,t){let n="";for(let r=1;r<e.length-1;++r){const i=e[r];if(!(i==="\r"&&e[r+1]===`
319
319
  `))if(i===`
320
- `){const{fold:s,offset:o}=Vbe(e,r);n+=s,r=o}else if(i==="\\"){let s=e[++r];const o=qbe[s];if(o)n+=o;else if(s===`
320
+ `){const{fold:s,offset:o}=Hbe(e,r);n+=s,r=o}else if(i==="\\"){let s=e[++r];const o=jbe[s];if(o)n+=o;else if(s===`
321
321
  `)for(s=e[r+1];s===" "||s===" ";)s=e[++r+1];else if(s==="\r"&&e[r+1]===`
322
- `)for(s=e[++r+1];s===" "||s===" ";)s=e[++r+1];else if(s==="x"||s==="u"||s==="U"){const a={x:2,u:4,U:8}[s];n+=zbe(e,r+1,a,t),r+=a}else{const a=e.substr(r-1,2);t(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),n+=a}}else if(i===" "||i===" "){const s=r;let o=e[r+1];for(;o===" "||o===" ";)o=e[++r+1];o!==`
322
+ `)for(s=e[++r+1];s===" "||s===" ";)s=e[++r+1];else if(s==="x"||s==="u"||s==="U"){const a={x:2,u:4,U:8}[s];n+=Vbe(e,r+1,a,t),r+=a}else{const a=e.substr(r-1,2);t(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),n+=a}}else if(i===" "||i===" "){const s=r;let o=e[r+1];for(;o===" "||o===" ";)o=e[++r+1];o!==`
323
323
  `&&!(o==="\r"&&e[r+2]===`
324
- `)&&(n+=r>s?e.slice(s,r+1):i)}else n+=i}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}function Vbe(e,t){let n="",r=e[t+1];for(;(r===" "||r===" "||r===`
324
+ `)&&(n+=r>s?e.slice(s,r+1):i)}else n+=i}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}function Hbe(e,t){let n="",r=e[t+1];for(;(r===" "||r===" "||r===`
325
325
  `||r==="\r")&&!(r==="\r"&&e[t+2]!==`
326
326
  `);)r===`
327
327
  `&&(n+=`
328
- `),t+=1,r=e[t+1];return n||(n=" "),{fold:n,offset:t}}const qbe={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
329
- `,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function zbe(e,t,n,r){const i=e.substr(t,n),s=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;if(isNaN(s)){const o=e.substr(t-2,n+2);return r(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${o}`),o}return String.fromCodePoint(s)}function U4(e,t,n,r){const{value:i,type:s,comment:o,range:a}=t.type==="block-scalar"?$4(t,e.options.strict,r):F4(t,e.options.strict,r),l=n?e.directives.tagName(n.source,d=>r(n,"TAG_RESOLVE_FAILED",d)):null,c=n&&l?Kbe(e.schema,i,l,n,r):t.type==="scalar"?Wbe(e,i,t,r):e.schema[_o];let u;try{const d=c.resolve(i,f=>r(n??t,"TAG_RESOLVE_FAILED",f),e.options);u=en(d)?d:new bt(d)}catch(d){const f=d instanceof Error?d.message:String(d);r(n??t,"TAG_RESOLVE_FAILED",f),u=new bt(i)}return u.range=a,u.source=i,s&&(u.type=s),l&&(u.tag=l),c.format&&(u.format=c.format),o&&(u.comment=o),u}function Kbe(e,t,n,r,i){var s;if(n==="!")return e[_o];const o=[];for(const l of e.tags)if(!l.collection&&l.tag===n)if(l.default&&l.test)o.push(l);else return l;for(const l of o)if((s=l.test)!=null&&s.test(t))return l;const a=e.knownTags[n];return a&&!a.collection?(e.tags.push(Object.assign({},a,{default:!1,test:void 0})),a):(i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),e[_o])}function Wbe({directives:e,schema:t},n,r,i){const s=t.tags.find(o=>{var a;return o.default&&((a=o.test)==null?void 0:a.test(n))})||t[_o];if(t.compat){const o=t.compat.find(a=>{var l;return a.default&&((l=a.test)==null?void 0:l.test(n))})??t[_o];if(s.tag!==o.tag){const a=e.tagString(s.tag),l=e.tagString(o.tag),c=`Value may be parsed as either ${a} or ${l}`;i(r,"TAG_RESOLVE_FAILED",c,!0)}}return s}function Gbe(e,t,n){if(t){n===null&&(n=t.length);for(let r=n-1;r>=0;--r){let i=t[r];switch(i.type){case"space":case"comment":case"newline":e-=i.source.length;continue}for(i=t[++r];(i==null?void 0:i.type)==="space";)e+=i.source.length,i=t[++r];break}}return e}const Ybe={composeNode:H4,composeEmptyNode:jS};function H4(e,t,n,r){const{spaceBefore:i,comment:s,anchor:o,tag:a}=n;let l,c=!0;switch(t.type){case"alias":l=Xbe(e,t,r),(o||a)&&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=U4(e,t,a,r),o&&(l.anchor=o.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":l=$be(Ybe,e,t,a,r),o&&(l.anchor=o.source.substring(1));break;default:{const u=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;r(t,"UNEXPECTED_TOKEN",u),l=jS(e,t.offset,void 0,null,n,r),c=!1}}return o&&l.anchor===""&&r(o,"BAD_ALIAS","Anchor cannot be an empty string"),i&&(l.spaceBefore=!0),s&&(t.type==="scalar"&&t.source===""?l.comment=s:l.commentBefore=s),e.options.keepSourceTokens&&c&&(l.srcToken=t),l}function jS(e,t,n,r,{spaceBefore:i,comment:s,anchor:o,tag:a,end:l},c){const u={type:"scalar",offset:Gbe(t,n,r),indent:-1,source:""},d=U4(e,u,a,c);return o&&(d.anchor=o.source.substring(1),d.anchor===""&&c(o,"BAD_ALIAS","Anchor cannot be an empty string")),i&&(d.spaceBefore=!0),s&&(d.comment=s,d.range[2]=l),d}function Xbe({options:e},{offset:t,source:n,end:r},i){const s=new Vb(n.substring(1));s.source===""&&i(t,"BAD_ALIAS","Alias cannot be an empty string"),s.source.endsWith(":")&&i(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const o=t+n.length,a=ep(r,o,e.strict,i);return s.range=[t,o,a.offset],a.comment&&(s.comment=a.comment),s}function Qbe(e,t,{offset:n,start:r,value:i,end:s},o){const a=Object.assign({_directives:t},e),l=new ad(void 0,a),c={atRoot:!0,directives:l.directives,options:l.options,schema:l.schema},u=Su(r,{indicator:"doc-start",next:i??(s==null?void 0:s[0]),offset:n,onError:o,startOnNewline:!0});u.found&&(l.directives.docStart=!0,i&&(i.type==="block-map"||i.type==="block-seq")&&!u.hasNewline&&o(u.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),l.contents=i?H4(c,i,u,o):jS(c,u.end,r,null,u,o);const d=l.contents.range[2],f=ep(s,d,!1,o);return f.comment&&(l.comment=f.comment),l.range=[n,d,f.offset],l}function jd(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+(typeof n=="string"?n.length:1)]}function JO(e){var t;let n="",r=!1,i=!1;for(let s=0;s<e.length;++s){const o=e[s];switch(o[0]){case"#":n+=(n===""?"":i?`
328
+ `),t+=1,r=e[t+1];return n||(n=" "),{fold:n,offset:t}}const jbe={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
329
+ `,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function Vbe(e,t,n,r){const i=e.substr(t,n),s=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;if(isNaN(s)){const o=e.substr(t-2,n+2);return r(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${o}`),o}return String.fromCodePoint(s)}function U4(e,t,n,r){const{value:i,type:s,comment:o,range:a}=t.type==="block-scalar"?$4(t,e.options.strict,r):F4(t,e.options.strict,r),l=n?e.directives.tagName(n.source,d=>r(n,"TAG_RESOLVE_FAILED",d)):null,c=n&&l?qbe(e.schema,i,l,n,r):t.type==="scalar"?zbe(e,i,t,r):e.schema[_o];let u;try{const d=c.resolve(i,f=>r(n??t,"TAG_RESOLVE_FAILED",f),e.options);u=en(d)?d:new bt(d)}catch(d){const f=d instanceof Error?d.message:String(d);r(n??t,"TAG_RESOLVE_FAILED",f),u=new bt(i)}return u.range=a,u.source=i,s&&(u.type=s),l&&(u.tag=l),c.format&&(u.format=c.format),o&&(u.comment=o),u}function qbe(e,t,n,r,i){var s;if(n==="!")return e[_o];const o=[];for(const l of e.tags)if(!l.collection&&l.tag===n)if(l.default&&l.test)o.push(l);else return l;for(const l of o)if((s=l.test)!=null&&s.test(t))return l;const a=e.knownTags[n];return a&&!a.collection?(e.tags.push(Object.assign({},a,{default:!1,test:void 0})),a):(i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),e[_o])}function zbe({directives:e,schema:t},n,r,i){const s=t.tags.find(o=>{var a;return o.default&&((a=o.test)==null?void 0:a.test(n))})||t[_o];if(t.compat){const o=t.compat.find(a=>{var l;return a.default&&((l=a.test)==null?void 0:l.test(n))})??t[_o];if(s.tag!==o.tag){const a=e.tagString(s.tag),l=e.tagString(o.tag),c=`Value may be parsed as either ${a} or ${l}`;i(r,"TAG_RESOLVE_FAILED",c,!0)}}return s}function Kbe(e,t,n){if(t){n===null&&(n=t.length);for(let r=n-1;r>=0;--r){let i=t[r];switch(i.type){case"space":case"comment":case"newline":e-=i.source.length;continue}for(i=t[++r];(i==null?void 0:i.type)==="space";)e+=i.source.length,i=t[++r];break}}return e}const Wbe={composeNode:H4,composeEmptyNode:jS};function H4(e,t,n,r){const{spaceBefore:i,comment:s,anchor:o,tag:a}=n;let l,c=!0;switch(t.type){case"alias":l=Gbe(e,t,r),(o||a)&&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=U4(e,t,a,r),o&&(l.anchor=o.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":l=Lbe(Wbe,e,t,a,r),o&&(l.anchor=o.source.substring(1));break;default:{const u=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;r(t,"UNEXPECTED_TOKEN",u),l=jS(e,t.offset,void 0,null,n,r),c=!1}}return o&&l.anchor===""&&r(o,"BAD_ALIAS","Anchor cannot be an empty string"),i&&(l.spaceBefore=!0),s&&(t.type==="scalar"&&t.source===""?l.comment=s:l.commentBefore=s),e.options.keepSourceTokens&&c&&(l.srcToken=t),l}function jS(e,t,n,r,{spaceBefore:i,comment:s,anchor:o,tag:a,end:l},c){const u={type:"scalar",offset:Kbe(t,n,r),indent:-1,source:""},d=U4(e,u,a,c);return o&&(d.anchor=o.source.substring(1),d.anchor===""&&c(o,"BAD_ALIAS","Anchor cannot be an empty string")),i&&(d.spaceBefore=!0),s&&(d.comment=s,d.range[2]=l),d}function Gbe({options:e},{offset:t,source:n,end:r},i){const s=new Vb(n.substring(1));s.source===""&&i(t,"BAD_ALIAS","Alias cannot be an empty string"),s.source.endsWith(":")&&i(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const o=t+n.length,a=ep(r,o,e.strict,i);return s.range=[t,o,a.offset],a.comment&&(s.comment=a.comment),s}function Ybe(e,t,{offset:n,start:r,value:i,end:s},o){const a=Object.assign({_directives:t},e),l=new ad(void 0,a),c={atRoot:!0,directives:l.directives,options:l.options,schema:l.schema},u=Su(r,{indicator:"doc-start",next:i??(s==null?void 0:s[0]),offset:n,onError:o,startOnNewline:!0});u.found&&(l.directives.docStart=!0,i&&(i.type==="block-map"||i.type==="block-seq")&&!u.hasNewline&&o(u.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),l.contents=i?H4(c,i,u,o):jS(c,u.end,r,null,u,o);const d=l.contents.range[2],f=ep(s,d,!1,o);return f.comment&&(l.comment=f.comment),l.range=[n,d,f.offset],l}function jd(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+(typeof n=="string"?n.length:1)]}function JO(e){var t;let n="",r=!1,i=!1;for(let s=0;s<e.length;++s){const o=e[s];switch(o[0]){case"#":n+=(n===""?"":i?`
330
330
 
331
331
  `:`
332
332
  `)+(o.substring(1)||" "),r=!0,i=!1;break;case"%":((t=e[s+1])==null?void 0:t[0])!=="#"&&(s+=1),r=!1;break;default:r||(i=!0),r=!1}}return{comment:n,afterEmptyLine:i}}class VS{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,r,i,s)=>{const o=jd(n);s?this.warnings.push(new L4(o,r,i)):this.errors.push(new vl(o,r,i))},this.directives=new Or({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:r,afterEmptyLine:i}=JO(this.prelude);if(r){const s=t.contents;if(n)t.comment=t.comment?`${t.comment}
333
333
  ${r}`:r;else if(i||t.directives.docStart||!s)t.commentBefore=r;else if(dn(s)&&!s.flow&&s.items.length>0){let o=s.items[0];cn(o)&&(o=o.key);const a=o.commentBefore;o.commentBefore=a?`${r}
334
334
  ${a}`:r}else{const o=s.commentBefore;s.commentBefore=o?`${r}
335
- ${o}`:r}}n?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:JO(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,n=!1,r=-1){for(const i of t)yield*this.next(i);yield*this.end(n,r)}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(n,r,i)=>{const s=jd(t);s[0]+=n,this.onError(s,"BAD_DIRECTIVE",r,i)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=Qbe(this.options,this.directives,t,this.onError);this.atDirectives&&!n.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(n,!1),this.doc&&(yield this.doc),this.doc=n,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{const n=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,r=new vl(jd(t),"UNEXPECTED_TOKEN",n);this.atDirectives||!this.doc?this.errors.push(r):this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const r="Unexpected doc-end without preceding document";this.errors.push(new vl(jd(t),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;const n=ep(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),n.comment){const r=this.doc.comment;this.doc.comment=r?`${r}
336
- ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new vl(jd(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,n=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){const r=Object.assign({_directives:this.directives},this.options),i=new ad(void 0,r);this.atDirectives&&this.onError(n,"MISSING_CHAR","Missing directives-end indicator line"),i.range=[0,n,n],this.decorate(i,!1),yield i}}}function Jbe(e,t=!0,n){if(e){const r=(i,s,o)=>{const a=typeof i=="number"?i:Array.isArray(i)?i[0]:i.offset;if(n)n(a,s,o);else throw new vl([a,a+1],s,o)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return F4(e,t,r);case"block-scalar":return $4(e,t,r)}}return null}function Zbe(e,t){const{implicitKey:n=!1,indent:r,inFlow:i=!1,offset:s=-1,type:o="PLAIN"}=t,a=Jh({type:o,value:e},{implicitKey:n,indent:r>0?" ".repeat(r):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}}),l=t.end??[{type:"newline",offset:-1,indent:r,source:`
335
+ ${o}`:r}}n?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:JO(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,n=!1,r=-1){for(const i of t)yield*this.next(i);yield*this.end(n,r)}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(n,r,i)=>{const s=jd(t);s[0]+=n,this.onError(s,"BAD_DIRECTIVE",r,i)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=Ybe(this.options,this.directives,t,this.onError);this.atDirectives&&!n.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(n,!1),this.doc&&(yield this.doc),this.doc=n,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{const n=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,r=new vl(jd(t),"UNEXPECTED_TOKEN",n);this.atDirectives||!this.doc?this.errors.push(r):this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const r="Unexpected doc-end without preceding document";this.errors.push(new vl(jd(t),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;const n=ep(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),n.comment){const r=this.doc.comment;this.doc.comment=r?`${r}
336
+ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new vl(jd(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,n=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){const r=Object.assign({_directives:this.directives},this.options),i=new ad(void 0,r);this.atDirectives&&this.onError(n,"MISSING_CHAR","Missing directives-end indicator line"),i.range=[0,n,n],this.decorate(i,!1),yield i}}}function Xbe(e,t=!0,n){if(e){const r=(i,s,o)=>{const a=typeof i=="number"?i:Array.isArray(i)?i[0]:i.offset;if(n)n(a,s,o);else throw new vl([a,a+1],s,o)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return F4(e,t,r);case"block-scalar":return $4(e,t,r)}}return null}function Qbe(e,t){const{implicitKey:n=!1,indent:r,inFlow:i=!1,offset:s=-1,type:o="PLAIN"}=t,a=Jh({type:o,value:e},{implicitKey:n,indent:r>0?" ".repeat(r):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}}),l=t.end??[{type:"newline",offset:-1,indent:r,source:`
337
337
  `}];switch(a[0]){case"|":case">":{const c=a.indexOf(`
338
338
  `),u=a.substring(0,c),d=a.substring(c+1)+`
339
339
  `,f=[{type:"block-scalar-header",offset:s,indent:r,source:u}];return j4(f,l)||f.push({type:"newline",offset:-1,indent:r,source:`
340
- `}),{type:"block-scalar",offset:s,indent:r,props:f,source:d}}case'"':return{type:"double-quoted-scalar",offset:s,indent:r,source:a,end:l};case"'":return{type:"single-quoted-scalar",offset:s,indent:r,source:a,end:l};default:return{type:"scalar",offset:s,indent:r,source:a,end:l}}}function eye(e,t,n={}){let{afterKey:r=!1,implicitKey:i=!1,inFlow:s=!1,type:o}=n,a="indent"in e?e.indent:null;if(r&&typeof a=="number"&&(a+=2),!o)switch(e.type){case"single-quoted-scalar":o="QUOTE_SINGLE";break;case"double-quoted-scalar":o="QUOTE_DOUBLE";break;case"block-scalar":{const c=e.props[0];if(c.type!=="block-scalar-header")throw new Error("Invalid block scalar header");o=c.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:o="PLAIN"}const l=Jh({type:o,value:t},{implicitKey:i||a===null,indent:a!==null&&a>0?" ".repeat(a):"",inFlow:s,options:{blockQuote:!0,lineWidth:-1}});switch(l[0]){case"|":case">":tye(e,l);break;case'"':Lv(e,l,"double-quoted-scalar");break;case"'":Lv(e,l,"single-quoted-scalar");break;default:Lv(e,l,"scalar")}}function tye(e,t){const n=t.indexOf(`
340
+ `}),{type:"block-scalar",offset:s,indent:r,props:f,source:d}}case'"':return{type:"double-quoted-scalar",offset:s,indent:r,source:a,end:l};case"'":return{type:"single-quoted-scalar",offset:s,indent:r,source:a,end:l};default:return{type:"scalar",offset:s,indent:r,source:a,end:l}}}function Jbe(e,t,n={}){let{afterKey:r=!1,implicitKey:i=!1,inFlow:s=!1,type:o}=n,a="indent"in e?e.indent:null;if(r&&typeof a=="number"&&(a+=2),!o)switch(e.type){case"single-quoted-scalar":o="QUOTE_SINGLE";break;case"double-quoted-scalar":o="QUOTE_DOUBLE";break;case"block-scalar":{const c=e.props[0];if(c.type!=="block-scalar-header")throw new Error("Invalid block scalar header");o=c.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:o="PLAIN"}const l=Jh({type:o,value:t},{implicitKey:i||a===null,indent:a!==null&&a>0?" ".repeat(a):"",inFlow:s,options:{blockQuote:!0,lineWidth:-1}});switch(l[0]){case"|":case">":Zbe(e,l);break;case'"':Lv(e,l,"double-quoted-scalar");break;case"'":Lv(e,l,"single-quoted-scalar");break;default:Lv(e,l,"scalar")}}function Zbe(e,t){const n=t.indexOf(`
341
341
  `),r=t.substring(0,n),i=t.substring(n+1)+`
342
342
  `;if(e.type==="block-scalar"){const s=e.props[0];if(s.type!=="block-scalar-header")throw new Error("Invalid block scalar header");s.source=r,e.source=i}else{const{offset:s}=e,o="indent"in e?e.indent:-1,a=[{type:"block-scalar-header",offset:s,indent:o,source:r}];j4(a,"end"in e?e.end:void 0)||a.push({type:"newline",offset:-1,indent:o,source:`
343
343
  `});for(const l of Object.keys(e))l!=="type"&&l!=="offset"&&delete e[l];Object.assign(e,{type:"block-scalar",indent:o,props:a,source:i})}}function j4(e,t){if(t)for(const n of t)switch(n.type){case"space":case"comment":e.push(n);break;case"newline":return e.push(n),!0}return!1}function Lv(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":{const r=e.props.slice(1);let i=t.length;e.props[0].type==="block-scalar-header"&&(i-=e.props[0].source.length);for(const s of r)s.offset+=i;delete e.props,Object.assign(e,{type:n,source:t,end:r});break}case"block-map":case"block-seq":{const r={type:"newline",offset:e.offset+t.length,indent:e.indent,source:`
344
- `};delete e.items,Object.assign(e,{type:n,source:t,end:[r]});break}default:{const r="indent"in e?e.indent:-1,i="end"in e&&Array.isArray(e.end)?e.end.filter(s=>s.type==="space"||s.type==="comment"||s.type==="newline"):[];for(const s of Object.keys(e))s!=="type"&&s!=="offset"&&delete e[s];Object.assign(e,{type:n,indent:r,source:t,end:i})}}}const nye=e=>"type"in e?s0(e):ng(e);function s0(e){switch(e.type){case"block-scalar":{let t="";for(const n of e.props)t+=s0(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(const n of e.items)t+=ng(n);return t}case"flow-collection":{let t=e.start.source;for(const n of e.items)t+=ng(n);for(const n of e.end)t+=n.source;return t}case"document":{let t=ng(e);if(e.end)for(const n of e.end)t+=n.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const n of e.end)t+=n.source;return t}}}function ng({start:e,key:t,sep:n,value:r}){let i="";for(const s of e)i+=s.source;if(t&&(i+=s0(t)),n)for(const s of n)i+=s.source;return r&&(i+=s0(r)),i}const b_=Symbol("break visit"),rye=Symbol("skip children"),V4=Symbol("remove item");function Ql(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),q4(Object.freeze([]),e,t)}Ql.BREAK=b_;Ql.SKIP=rye;Ql.REMOVE=V4;Ql.itemAtPath=(e,t)=>{let n=e;for(const[r,i]of t){const s=n==null?void 0:n[r];if(s&&"items"in s)n=s.items[i];else return}return n};Ql.parentCollection=(e,t)=>{const n=Ql.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],i=n==null?void 0:n[r];if(i&&"items"in i)return i;throw new Error("Parent collection not found")};function q4(e,t,n){let r=n(t,e);if(typeof r=="symbol")return r;for(const i of["key","value"]){const s=t[i];if(s&&"items"in s){for(let o=0;o<s.items.length;++o){const a=q4(Object.freeze(e.concat([[i,o]])),s.items[o],n);if(typeof a=="number")o=a-1;else{if(a===b_)return b_;a===V4&&(s.items.splice(o,1),o-=1)}}typeof r=="function"&&i==="key"&&(r=r(t,e))}}return typeof r=="function"?r(t,e):r}const Zb="\uFEFF",ey="",ty="",fh="",iye=e=>!!e&&"items"in e,sye=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function oye(e){switch(e){case Zb:return"<BOM>";case ey:return"<DOC>";case ty:return"<FLOW_END>";case fh:return"<SCALAR>";default:return JSON.stringify(e)}}function z4(e){switch(e){case Zb:return"byte-order-mark";case ey:return"doc-mode";case ty:return"flow-error-end";case fh:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
344
+ `};delete e.items,Object.assign(e,{type:n,source:t,end:[r]});break}default:{const r="indent"in e?e.indent:-1,i="end"in e&&Array.isArray(e.end)?e.end.filter(s=>s.type==="space"||s.type==="comment"||s.type==="newline"):[];for(const s of Object.keys(e))s!=="type"&&s!=="offset"&&delete e[s];Object.assign(e,{type:n,indent:r,source:t,end:i})}}}const eye=e=>"type"in e?s0(e):ng(e);function s0(e){switch(e.type){case"block-scalar":{let t="";for(const n of e.props)t+=s0(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(const n of e.items)t+=ng(n);return t}case"flow-collection":{let t=e.start.source;for(const n of e.items)t+=ng(n);for(const n of e.end)t+=n.source;return t}case"document":{let t=ng(e);if(e.end)for(const n of e.end)t+=n.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const n of e.end)t+=n.source;return t}}}function ng({start:e,key:t,sep:n,value:r}){let i="";for(const s of e)i+=s.source;if(t&&(i+=s0(t)),n)for(const s of n)i+=s.source;return r&&(i+=s0(r)),i}const b_=Symbol("break visit"),tye=Symbol("skip children"),V4=Symbol("remove item");function Ql(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),q4(Object.freeze([]),e,t)}Ql.BREAK=b_;Ql.SKIP=tye;Ql.REMOVE=V4;Ql.itemAtPath=(e,t)=>{let n=e;for(const[r,i]of t){const s=n==null?void 0:n[r];if(s&&"items"in s)n=s.items[i];else return}return n};Ql.parentCollection=(e,t)=>{const n=Ql.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],i=n==null?void 0:n[r];if(i&&"items"in i)return i;throw new Error("Parent collection not found")};function q4(e,t,n){let r=n(t,e);if(typeof r=="symbol")return r;for(const i of["key","value"]){const s=t[i];if(s&&"items"in s){for(let o=0;o<s.items.length;++o){const a=q4(Object.freeze(e.concat([[i,o]])),s.items[o],n);if(typeof a=="number")o=a-1;else{if(a===b_)return b_;a===V4&&(s.items.splice(o,1),o-=1)}}typeof r=="function"&&i==="key"&&(r=r(t,e))}}return typeof r=="function"?r(t,e):r}const Zb="\uFEFF",ey="",ty="",fh="",nye=e=>!!e&&"items"in e,rye=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function iye(e){switch(e){case Zb:return"<BOM>";case ey:return"<DOC>";case ty:return"<FLOW_END>";case fh:return"<SCALAR>";default:return JSON.stringify(e)}}function z4(e){switch(e){case Zb:return"byte-order-mark";case ey:return"doc-mode";case ty:return"flow-error-end";case fh:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
345
345
  `:case`\r
346
- `: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}const aye=Object.freeze(Object.defineProperty({__proto__:null,BOM:Zb,DOCUMENT:ey,FLOW_END:ty,SCALAR:fh,createScalarToken:Zbe,isCollection:iye,isScalar:sye,prettyToken:oye,resolveAsScalar:Jbe,setScalarValue:eye,stringify:nye,tokenType:z4,visit:Ql},Symbol.toStringTag,{value:"Module"}));function yi(e){switch(e){case void 0:case" ":case`
347
- `:case"\r":case" ":return!0;default:return!1}}const ZO="0123456789ABCDEFabcdef".split(""),lye="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),Mv=",[]{}".split(""),cye=` ,[]{}
348
- \r `.split(""),$v=e=>!e||cye.includes(e);class K4{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(t,n=!1){t&&(this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null),this.atEnd=!n;let r=this.next??"stream";for(;r&&(n||this.hasChars(1));)r=yield*this.parseNext(r)}atLineEnd(){let t=this.pos,n=this.buffer[t];for(;n===" "||n===" ";)n=this.buffer[++t];return!n||n==="#"||n===`
346
+ `: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}const sye=Object.freeze(Object.defineProperty({__proto__:null,BOM:Zb,DOCUMENT:ey,FLOW_END:ty,SCALAR:fh,createScalarToken:Qbe,isCollection:nye,isScalar:rye,prettyToken:iye,resolveAsScalar:Xbe,setScalarValue:Jbe,stringify:eye,tokenType:z4,visit:Ql},Symbol.toStringTag,{value:"Module"}));function yi(e){switch(e){case void 0:case" ":case`
347
+ `:case"\r":case" ":return!0;default:return!1}}const ZO="0123456789ABCDEFabcdef".split(""),oye="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),Mv=",[]{}".split(""),aye=` ,[]{}
348
+ \r `.split(""),$v=e=>!e||aye.includes(e);class K4{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(t,n=!1){t&&(this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null),this.atEnd=!n;let r=this.next??"stream";for(;r&&(n||this.hasChars(1));)r=yield*this.parseNext(r)}atLineEnd(){let t=this.pos,n=this.buffer[t];for(;n===" "||n===" ";)n=this.buffer[++t];return!n||n==="#"||n===`
349
349
  `?!0:n==="\r"?this.buffer[t+1]===`
350
350
  `:!1}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let n=this.buffer[t];if(this.indentNext>0){let r=0;for(;n===" ";)n=this.buffer[++r+t];if(n==="\r"){const i=this.buffer[r+t+1];if(i===`
351
351
  `||!i&&!this.atEnd)return t+r+1}return n===`
@@ -359,47 +359,47 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
359
359
  `&&i>=this.pos&&i+1+n>o)t=i;else break}while(!0);return yield fh,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const t=this.flowLevel>0;let n=this.pos-1,r=this.pos-1,i;for(;i=this.buffer[++r];)if(i===":"){const s=this.buffer[r+1];if(yi(s)||t&&s===",")break;n=r}else if(yi(i)){let s=this.buffer[r+1];if(i==="\r"&&(s===`
360
360
  `?(r+=1,i=`
361
361
  `,s=this.buffer[r+1]):n=r),s==="#"||t&&Mv.includes(s))break;if(i===`
362
- `){const o=this.continueScalar(r+1);if(o===-1)break;r=Math.max(r,o-2)}}else{if(t&&Mv.includes(i))break;n=r}return!i&&!this.atEnd?this.setNext("plain-scalar"):(yield fh,yield*this.pushToIndex(n+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,n){const r=this.buffer.slice(this.pos,t);return r?(yield r,this.pos+=r.length,r.length):(n&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil($v))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(yi(n)||t&&Mv.includes(n))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,n=this.buffer[t];for(;!yi(n)&&n!==">";)n=this.buffer[++t];return yield*this.pushToIndex(n===">"?t+1:t,!1)}else{let t=this.pos+1,n=this.buffer[t];for(;n;)if(lye.includes(n))n=this.buffer[++t];else if(n==="%"&&ZO.includes(this.buffer[t+1])&&ZO.includes(this.buffer[t+2]))n=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){const t=this.buffer[this.pos];return t===`
362
+ `){const o=this.continueScalar(r+1);if(o===-1)break;r=Math.max(r,o-2)}}else{if(t&&Mv.includes(i))break;n=r}return!i&&!this.atEnd?this.setNext("plain-scalar"):(yield fh,yield*this.pushToIndex(n+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,n){const r=this.buffer.slice(this.pos,t);return r?(yield r,this.pos+=r.length,r.length):(n&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil($v))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(yi(n)||t&&Mv.includes(n))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,n=this.buffer[t];for(;!yi(n)&&n!==">";)n=this.buffer[++t];return yield*this.pushToIndex(n===">"?t+1:t,!1)}else{let t=this.pos+1,n=this.buffer[t];for(;n;)if(oye.includes(n))n=this.buffer[++t];else if(n==="%"&&ZO.includes(this.buffer[t+1])&&ZO.includes(this.buffer[t+2]))n=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){const t=this.buffer[this.pos];return t===`
363
363
  `?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
364
364
  `?yield*this.pushCount(2):0}*pushSpaces(t){let n=this.pos-1,r;do r=this.buffer[++n];while(r===" "||t&&r===" ");const i=n-this.pos;return i>0&&(yield this.buffer.substr(this.pos,i),this.pos=n),i}*pushUntil(t){let n=this.pos,r=this.buffer[n];for(;!t(r);)r=this.buffer[++n];return yield*this.pushToIndex(n,!1)}}class W4{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let n=0,r=this.lineStarts.length;for(;n<r;){const s=n+r>>1;this.lineStarts[s]<t?n=s+1:r=s}if(this.lineStarts[n]===t)return{line:n+1,col:1};if(n===0)return{line:0,col:t};const i=this.lineStarts[n-1];return{line:n,col:t-i+1}}}}function Hi(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function e2(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 G4(e){switch(e==null?void 0:e.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function vm(e){switch(e.type){case"document":return e.start;case"block-map":{const 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 wc(e){var t;if(e.length===0)return[];let n=e.length;e:for(;--n>=0;)switch(e[n].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((t=e[++n])==null?void 0:t.type)==="space";);return e.splice(n,e.length)}function t2(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!Hi(t.start,"explicit-key-ind")&&!Hi(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,G4(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class qS{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new K4,this.onNewLine=t}*parse(t,n=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const r of this.lexer.lex(t,n))yield*this.next(r);n||(yield*this.end())}*next(t){if(this.source=t,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}const n=z4(t);if(n)if(n==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*this.step(),n){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{const r=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:r,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const t=this.peek(1);if(this.type==="doc-end"&&(!t||t.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(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){const n=t??this.stack.pop();if(!n)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield n;else{const r=this.peek(1);switch(n.type==="block-scalar"?n.indent="indent"in r?r.indent:0:n.type==="flow-collection"&&r.type==="document"&&(n.indent=0),n.type==="flow-collection"&&t2(n),r.type){case"document":r.value=n;break;case"block-scalar":r.props.push(n);break;case"block-map":{const i=r.items[r.items.length-1];if(i.value){r.items.push({start:[],key:n,sep:[]}),this.onKeyLine=!0;return}else if(i.sep)i.value=n;else{Object.assign(i,{key:n,sep:[]}),this.onKeyLine=!Hi(i.start,"explicit-key-ind");return}break}case"block-seq":{const i=r.items[r.items.length-1];i.value?r.items.push({start:[],value:n}):i.value=n;break}case"flow-collection":{const i=r.items[r.items.length-1];!i||i.value?r.items.push({start:[],key:n,sep:[]}):i.sep?i.value=n:Object.assign(i,{key:n,sep:[]});return}default:yield*this.pop(),yield*this.pop(n)}if((r.type==="document"||r.type==="block-map"||r.type==="block-seq")&&(n.type==="block-map"||n.type==="block-seq")){const i=n.items[n.items.length-1];i&&!i.sep&&!i.value&&i.start.length>0&&e2(i.start)===-1&&(n.indent===0||i.start.every(s=>s.type!=="comment"||s.indent<n.indent))&&(r.type==="document"?r.end=i.start:r.items.push({start:i.start}),n.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const t={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&t.start.push(this.sourceToken),this.stack.push(t);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(t){if(t.value)return yield*this.lineEnd(t);switch(this.type){case"doc-start":{e2(t.start)!==-1?(yield*this.pop(),yield*this.step()):t.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}const n=this.startBlockValue(t);n?this.stack.push(n):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(t){if(this.type==="map-value-ind"){const n=vm(this.peek(2)),r=wc(n);let i;t.end?(i=t.end,i.push(this.sourceToken),delete t.end):i=[this.sourceToken];const s={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:r,key:t,sep:i}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=s}else yield*this.lineEnd(t)}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let n=this.source.indexOf(`
365
365
  `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
366
366
  `,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){var n;const r=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,r.value){const i="end"in r.value?r.value.end:void 0,s=Array.isArray(i)?i[i.length-1]:void 0;(s==null?void 0:s.type)==="comment"?i==null||i.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)t.items.push({start:[this.sourceToken]});else if(r.sep)r.sep.push(this.sourceToken);else{if(this.atIndentedComment(r.start,t.indent)){const i=t.items[t.items.length-2],s=(n=i==null?void 0:i.value)==null?void 0:n.end;if(Array.isArray(s)){Array.prototype.push.apply(s,r.start),s.push(this.sourceToken),t.items.pop();return}}r.start.push(this.sourceToken)}return}if(this.indent>=t.indent){const i=!this.onKeyLine&&this.indent===t.indent&&r.sep&&this.type!=="seq-item-ind";let s=[];if(i&&r.sep&&!r.value){const o=[];for(let a=0;a<r.sep.length;++a){const l=r.sep[a];switch(l.type){case"newline":o.push(a);break;case"space":break;case"comment":l.indent>t.indent&&(o.length=0);break;default:o.length=0}}o.length>=2&&(s=r.sep.splice(o[1]))}switch(this.type){case"anchor":case"tag":i||r.value?(s.push(this.sourceToken),t.items.push({start:s}),this.onKeyLine=!0):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"explicit-key-ind":!r.sep&&!Hi(r.start,"explicit-key-ind")?r.start.push(this.sourceToken):i||r.value?(s.push(this.sourceToken),t.items.push({start:s})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]}),this.onKeyLine=!0;return;case"map-value-ind":if(Hi(r.start,"explicit-key-ind"))if(r.sep)if(r.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Hi(r.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]});else if(G4(r.key)&&!Hi(r.sep,"newline")){const o=wc(r.start),a=r.key,l=r.sep;l.push(this.sourceToken),delete r.key,delete r.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:a,sep:l}]})}else s.length>0?r.sep=r.sep.concat(s,this.sourceToken):r.sep.push(this.sourceToken);else if(Hi(r.start,"newline"))Object.assign(r,{key:null,sep:[this.sourceToken]});else{const o=wc(r.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]})}else r.sep?r.value||i?t.items.push({start:s,key:null,sep:[this.sourceToken]}):Hi(r.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);i||r.value?(t.items.push({start:s,key:o,sep:[]}),this.onKeyLine=!0):r.sep?this.stack.push(o):(Object.assign(r,{key:o,sep:[]}),this.onKeyLine=!0);return}default:{const o=this.startBlockValue(t);if(o){i&&o.type!=="block-seq"&&Hi(r.start,"explicit-key-ind")&&t.items.push({start:s}),this.stack.push(o);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){var n;const r=t.items[t.items.length-1];switch(this.type){case"newline":if(r.value){const i="end"in r.value?r.value.end:void 0,s=Array.isArray(i)?i[i.length-1]:void 0;(s==null?void 0:s.type)==="comment"?i==null||i.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(r.start,t.indent)){const i=t.items[t.items.length-2],s=(n=i==null?void 0:i.value)==null?void 0:n.end;if(Array.isArray(s)){Array.prototype.push.apply(s,r.start),s.push(this.sourceToken),t.items.pop();return}}r.start.push(this.sourceToken)}return;case"anchor":case"tag":if(r.value||this.indent<=t.indent)break;r.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;r.value||Hi(r.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return}if(this.indent>t.indent){const i=this.startBlockValue(t);if(i){this.stack.push(i);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){const n=t.items[t.items.length-1];if(this.type==="flow-error-end"){let r;do yield*this.pop(),r=this.peek(1);while(r&&r.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?t.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const i=this.flowScalar(this.type);!n||n.value?t.items.push({start:[],key:i,sep:[]}):n.sep?this.stack.push(i):Object.assign(n,{key:i,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}const r=this.startBlockValue(t);r?this.stack.push(r):(yield*this.pop(),yield*this.step())}else{const r=this.peek(2);if(r.type==="block-map"&&(this.type==="map-value-ind"&&r.indent===t.indent||this.type==="newline"&&!r.items[r.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&r.type!=="flow-collection"){const i=vm(r),s=wc(i);t2(t);const o=t.end.splice(1,t.end.length);o.push(this.sourceToken);const a={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:s,key:t,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let n=this.source.indexOf(`
367
367
  `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
368
- `,n)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=vm(t),r=wc(n);return r.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r}]}}case"map-value-ind":{this.onKeyLine=!0;const n=vm(t),r=wc(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,n){return this.type!=="comment"||this.indent<=n?!1:t.every(r=>r.type==="newline"||r.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function Y4(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new W4||null,prettyErrors:t}}function uye(e,t={}){const{lineCounter:n,prettyErrors:r}=Y4(t),i=new qS(n==null?void 0:n.addNewLine),s=new VS(t),o=Array.from(s.compose(i.parse(e)));if(r&&n)for(const a of o)a.errors.forEach(i0(e,n)),a.warnings.forEach(i0(e,n));return o.length>0?o:Object.assign([],{empty:!0},s.streamInfo())}function X4(e,t={}){const{lineCounter:n,prettyErrors:r}=Y4(t),i=new qS(n==null?void 0:n.addNewLine),s=new VS(t);let o=null;for(const a of s.compose(i.parse(e),!0,e.length))if(!o)o=a;else if(o.options.logLevel!=="silent"){o.errors.push(new vl(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(o.errors.forEach(i0(e,n)),o.warnings.forEach(i0(e,n))),o}function dye(e,t,n){let r;typeof t=="function"?r=t:n===void 0&&t&&typeof t=="object"&&(n=t);const i=X4(e,n);if(!i)return null;if(i.warnings.forEach(s=>g4(i.options.logLevel,s)),i.errors.length>0){if(i.options.logLevel!=="silent")throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}function fye(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"){const i=Math.round(n);n=i<1?void 0:i>8?{indent:8}:{indent:i}}if(e===void 0){const{keepUndefined:i}=n??t??{};if(!i)return}return new ad(e,r,n).toString(n)}const Q4=Object.freeze(Object.defineProperty({__proto__:null,Alias:Vb,CST:aye,Composer:VS,Document:ad,Lexer:K4,LineCounter:W4,Pair:Yr,Parser:qS,Scalar:bt,Schema:Jb,YAMLError:HS,YAMLMap:oi,YAMLParseError:vl,YAMLSeq:La,YAMLWarning:L4,isAlias:hc,isCollection:dn,isDocument:nd,isMap:rd,isNode:xn,isPair:cn,isScalar:en,isSeq:id,parse:dye,parseAllDocuments:uye,parseDocument:X4,stringify:fye,visit:Pa,visitAsync:jb},Symbol.toStringTag,{value:"Module"}));function J4(e){if(i4(e))return e;if(typeof e=="string")try{return JSON.parse(e)}catch{return Q4.parse(e)}return e}function Z4(e){if(i4(e))return e;const t=J4(e);return[{isEntrypoint:!0,specification:t,filename:"openapi.json",dir:"./",references:rbe(t)}]}async function hye(e){const t=new WS,n=Z4(e),r=await t.validate(n),i=structuredClone(t.specification),s=t.resolveReferences(n);return{valid:r.valid,version:t.version,errors:r.errors,specification:i,schema:s}}const pye=e=>JSON.stringify(e,null,2),mye=e=>Q4.stringify(e);function gye(e){var t;if((t=e.openapi)!=null&&t.startsWith("3.0"))e.openapi="3.1.0";else return e;return e=bs(e,n=>(n.type!=="undefined"&&n.nullable===!0&&(n.type=["null",n.type],delete n.nullable),n)),e=bs(e,n=>(n.exclusiveMinimum===!0?(n.exclusiveMinimum=n.minimum,delete n.minimum):n.exclusiveMinimum===!1&&delete n.exclusiveMinimum,n.exclusiveMaximum===!0?(n.exclusiveMaximum=n.maximum,delete n.maximum):n.exclusiveMaximum===!1&&delete n.exclusiveMaximum,n)),e=bs(e,n=>(n.example!==void 0&&(n.examples={default:n.example},delete n.example),n)),e=bs(e,n=>{if(n.type==="object"&&n.properties!==void 0)for(const[r,i]of Object.entries(n.properties))i!==void 0&&i.type==="string"&&i.format==="binary"&&(i.contentEncoding="application/octet-stream",delete i.format);return n}),e=bs(e,n=>{if(!(n.type==="string"&&n.format==="binary"))return n}),e=bs(e,n=>n.type==="string"&&n.format==="base64"?{type:"string",contentEncoding:"base64"}:n),e}function bye(e){return e}function yye(e){return[bye,gye].reduce((t,n)=>n(t),e)}async function vye(e){const t=new WS,n=Z4(e);return{...await t.validate(n),specification:t.specification,version:t.version}}function eB(e){for(const t of new Set(r4)){const n=t==="2.0"?"swagger":"openapi",r=e[n];if(typeof r=="string"&&r.startsWith(t))return{version:t,specificationType:n,specificationVersion:r}}return{version:void 0,specificationType:void 0,specificationVersion:void 0}}function Eye(e){return decodeURI(e.replace(/~1/g,"/").replace(/~0/g,"~"))}function tB(e){const t=structuredClone(e);return n(t),n(t),t;function n(r){Object.entries(r??{}).forEach(([i,s])=>{if(r.$ref!==void 0){const o=wye(t,r.$ref);delete r.$ref,typeof o=="object"&&Object.keys(o).forEach(a=>{r[a]===void 0&&(r[a]=o[a])})}typeof s=="object"&&!_ye(s)&&n(s)})}}function _ye(e){try{return JSON.stringify(e),!1}catch{return!0}}function wye(e,t){if(typeof t!="string")return;const[n,r]=t.split("#",2);if(n)throw new Error(d_.EXTERNAL_REFERENCE_NOT_SUPPORTED.replace("%s",t));return Eye(r).split("/").slice(1).reduce((i,s)=>i[s],e)}const Tye="[",Sye="]",kye="{",Aye="}",xye=":",Nye=",",nB="true",rB="false",iB="null",n2='"',Cye=new Map([["t",nB],["f",rB],["n",iB]]),y_=new Map([[n2,n2],["\\","\\"],["/","/"],["b","\b"],["n",`
369
- `],["f","\f"],["r","\r"],["t"," "]]),Fv=new Map([[Tye,"LBracket"],[Sye,"RBracket"],[kye,"LBrace"],[Aye,"RBrace"],[xye,"Colon"],[Nye,"Comma"],[nB,"Boolean"],[rB,"Boolean"],[iB,"Null"]]);class hh extends Error{constructor(t,{line:n,column:r,offset:i}){super(`${t} (${n}:${r})`),this.line=n,this.column=r,this.offset=i}}class Oye extends hh{constructor(t,n){super(`Unexpected character '${t}' found.`,n)}}class Bv extends hh{constructor(t){super(`Unexpected token ${t.type} found.`,t.loc.start)}}class Dye extends hh{constructor(t){super("Unexpected end of input found.",t)}}const r2='"',i2="/",s2="*",Iye={mode:"json",ranges:!1};function Rye(e){return/[\s\n]/.test(e)}function na(e){return e>="0"&&e<="9"}function Pye(e){return na(e)||/[a-f]/i.test(e)}function Lye(e){return e>="1"&&e<="9"}function Mye(e){return/[tfn]/.test(e)}function $ye(e){return na(e)||e==="."||e==="-"}function Fye(e,t){t=Object.freeze({...Iye,...t});let n=-1,r=1,i=0,s=!1;const o=[];function a(b,v,y,E){const T=y.offset+v.length;let w=t.ranges?{range:[y.offset,T]}:void 0;return{type:b,loc:{start:y,end:E||{line:y.line,column:y.column+v.length,offset:T}},...w}}function l(){let b=e.charAt(++n);return s?(r++,i=1,s=!1):i++,b==="\r"?(s=!0,e.charAt(n+1)===`
368
+ `,n)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=vm(t),r=wc(n);return r.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r}]}}case"map-value-ind":{this.onKeyLine=!0;const n=vm(t),r=wc(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,n){return this.type!=="comment"||this.indent<=n?!1:t.every(r=>r.type==="newline"||r.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function Y4(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new W4||null,prettyErrors:t}}function lye(e,t={}){const{lineCounter:n,prettyErrors:r}=Y4(t),i=new qS(n==null?void 0:n.addNewLine),s=new VS(t),o=Array.from(s.compose(i.parse(e)));if(r&&n)for(const a of o)a.errors.forEach(i0(e,n)),a.warnings.forEach(i0(e,n));return o.length>0?o:Object.assign([],{empty:!0},s.streamInfo())}function X4(e,t={}){const{lineCounter:n,prettyErrors:r}=Y4(t),i=new qS(n==null?void 0:n.addNewLine),s=new VS(t);let o=null;for(const a of s.compose(i.parse(e),!0,e.length))if(!o)o=a;else if(o.options.logLevel!=="silent"){o.errors.push(new vl(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(o.errors.forEach(i0(e,n)),o.warnings.forEach(i0(e,n))),o}function cye(e,t,n){let r;typeof t=="function"?r=t:n===void 0&&t&&typeof t=="object"&&(n=t);const i=X4(e,n);if(!i)return null;if(i.warnings.forEach(s=>g4(i.options.logLevel,s)),i.errors.length>0){if(i.options.logLevel!=="silent")throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}function uye(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"){const i=Math.round(n);n=i<1?void 0:i>8?{indent:8}:{indent:i}}if(e===void 0){const{keepUndefined:i}=n??t??{};if(!i)return}return new ad(e,r,n).toString(n)}const Q4=Object.freeze(Object.defineProperty({__proto__:null,Alias:Vb,CST:sye,Composer:VS,Document:ad,Lexer:K4,LineCounter:W4,Pair:Yr,Parser:qS,Scalar:bt,Schema:Jb,YAMLError:HS,YAMLMap:oi,YAMLParseError:vl,YAMLSeq:La,YAMLWarning:L4,isAlias:hc,isCollection:dn,isDocument:nd,isMap:rd,isNode:xn,isPair:cn,isScalar:en,isSeq:id,parse:cye,parseAllDocuments:lye,parseDocument:X4,stringify:uye,visit:Pa,visitAsync:jb},Symbol.toStringTag,{value:"Module"}));function J4(e){if(i4(e))return e;if(typeof e=="string")try{return JSON.parse(e)}catch{return Q4.parse(e)}return e}function Z4(e){if(i4(e))return e;const t=J4(e);return[{isEntrypoint:!0,specification:t,filename:"openapi.json",dir:"./",references:tbe(t)}]}async function dye(e){const t=new WS,n=Z4(e),r=await t.validate(n),i=structuredClone(t.specification),s=t.resolveReferences(n);return{valid:r.valid,version:t.version,errors:r.errors,specification:i,schema:s}}const fye=e=>JSON.stringify(e,null,2),hye=e=>Q4.stringify(e);function pye(e){var t;if((t=e.openapi)!=null&&t.startsWith("3.0"))e.openapi="3.1.0";else return e;return e=bs(e,n=>(n.type!=="undefined"&&n.nullable===!0&&(n.type=["null",n.type],delete n.nullable),n)),e=bs(e,n=>(n.exclusiveMinimum===!0?(n.exclusiveMinimum=n.minimum,delete n.minimum):n.exclusiveMinimum===!1&&delete n.exclusiveMinimum,n.exclusiveMaximum===!0?(n.exclusiveMaximum=n.maximum,delete n.maximum):n.exclusiveMaximum===!1&&delete n.exclusiveMaximum,n)),e=bs(e,n=>(n.example!==void 0&&(n.examples={default:n.example},delete n.example),n)),e=bs(e,n=>{if(n.type==="object"&&n.properties!==void 0)for(const[r,i]of Object.entries(n.properties))i!==void 0&&i.type==="string"&&i.format==="binary"&&(i.contentEncoding="application/octet-stream",delete i.format);return n}),e=bs(e,n=>{if(!(n.type==="string"&&n.format==="binary"))return n}),e=bs(e,n=>n.type==="string"&&n.format==="base64"?{type:"string",contentEncoding:"base64"}:n),e}function mye(e){return e}function gye(e){return[mye,pye].reduce((t,n)=>n(t),e)}async function bye(e){const t=new WS,n=Z4(e);return{...await t.validate(n),specification:t.specification,version:t.version}}function eB(e){for(const t of new Set(r4)){const n=t==="2.0"?"swagger":"openapi",r=e[n];if(typeof r=="string"&&r.startsWith(t))return{version:t,specificationType:n,specificationVersion:r}}return{version:void 0,specificationType:void 0,specificationVersion:void 0}}function yye(e){return decodeURI(e.replace(/~1/g,"/").replace(/~0/g,"~"))}function tB(e){const t=structuredClone(e);return n(t),n(t),t;function n(r){Object.entries(r??{}).forEach(([i,s])=>{if(r.$ref!==void 0){const o=Eye(t,r.$ref);delete r.$ref,typeof o=="object"&&Object.keys(o).forEach(a=>{r[a]===void 0&&(r[a]=o[a])})}typeof s=="object"&&!vye(s)&&n(s)})}}function vye(e){try{return JSON.stringify(e),!1}catch{return!0}}function Eye(e,t){if(typeof t!="string")return;const[n,r]=t.split("#",2);if(n)throw new Error(d_.EXTERNAL_REFERENCE_NOT_SUPPORTED.replace("%s",t));return yye(r).split("/").slice(1).reduce((i,s)=>i[s],e)}const _ye="[",wye="]",Tye="{",Sye="}",kye=":",Aye=",",nB="true",rB="false",iB="null",n2='"',xye=new Map([["t",nB],["f",rB],["n",iB]]),y_=new Map([[n2,n2],["\\","\\"],["/","/"],["b","\b"],["n",`
369
+ `],["f","\f"],["r","\r"],["t"," "]]),Fv=new Map([[_ye,"LBracket"],[wye,"RBracket"],[Tye,"LBrace"],[Sye,"RBrace"],[kye,"Colon"],[Aye,"Comma"],[nB,"Boolean"],[rB,"Boolean"],[iB,"Null"]]);class hh extends Error{constructor(t,{line:n,column:r,offset:i}){super(`${t} (${n}:${r})`),this.line=n,this.column=r,this.offset=i}}class Nye extends hh{constructor(t,n){super(`Unexpected character '${t}' found.`,n)}}class Bv extends hh{constructor(t){super(`Unexpected token ${t.type} found.`,t.loc.start)}}class Cye extends hh{constructor(t){super("Unexpected end of input found.",t)}}const r2='"',i2="/",s2="*",Oye={mode:"json",ranges:!1};function Dye(e){return/[\s\n]/.test(e)}function na(e){return e>="0"&&e<="9"}function Iye(e){return na(e)||/[a-f]/i.test(e)}function Rye(e){return e>="1"&&e<="9"}function Pye(e){return/[tfn]/.test(e)}function Lye(e){return na(e)||e==="."||e==="-"}function Mye(e,t){t=Object.freeze({...Oye,...t});let n=-1,r=1,i=0,s=!1;const o=[];function a(b,v,y,E){const T=y.offset+v.length;let w=t.ranges?{range:[y.offset,T]}:void 0;return{type:b,loc:{start:y,end:E||{line:y.line,column:y.column+v.length,offset:T}},...w}}function l(){let b=e.charAt(++n);return s?(r++,i=1,s=!1):i++,b==="\r"?(s=!0,e.charAt(n+1)===`
370
370
  `&&n++):b===`
371
- `&&(s=!0),b}function c(){return{line:r,column:i,offset:n}}function u(b){let v=Cye.get(b);if(e.slice(n,n+v.length)===v)return n+=v.length-1,i+=v.length-1,{value:v,c:l()};for(let y=1;y<v.length;y++)v[y]!==e.charAt(n+y)&&p(l())}function d(b){let v=b;for(b=l();b&&b!==r2;){if(b==="\\")if(v+=b,b=l(),y_.has(b))v+=b;else if(b==="u"){v+=b;for(let y=0;y<4;y++)b=l(),Pye(b)?v+=b:p(b)}else p(b);else v+=b;b=l()}return b||m(),v+=b,{value:v,c:l()}}function f(b){let v="";if(b==="-"&&(v+=b,b=l(),na(b)||p(b)),b==="0")v+=b,b=l(),na(b)&&p(b);else{Lye(b)||p(b);do v+=b,b=l();while(na(b))}if(b===".")do v+=b,b=l();while(na(b));if(b==="e"||b==="E")for(v+=b,b=l(),(b==="+"||b==="-")&&(v+=b,b=l()),b||m(),na(b)||p(b);na(b);)v+=b,b=l();return{value:v,c:b}}function h(b){let v=b;if(b=l(),b==="/"){do v+=b,b=l();while(b&&b!=="\r"&&b!==`
372
- `);return{value:v,c:b}}if(b===s2){for(;b;)if(v+=b,b=l(),b===s2&&(v+=b,b=l(),b===i2))return v+=b,b=l(),{value:v,c:b};m()}p(b)}function p(b){throw new Oye(b,c())}function m(){throw new Dye(c())}let g=l();for(;n<e.length;){for(;Rye(g);)g=l();if(!g)break;const b=c();if(Fv.has(g))o.push(a(Fv.get(g),g,b)),g=l();else if(Mye(g)){const v=u(g);let y=v.value;g=v.c,o.push(a(Fv.get(y),y,b))}else if($ye(g)){const v=f(g);let y=v.value;g=v.c,o.push(a("Number",y,b))}else if(g===r2){const v=d(g);let y=v.value;g=v.c,o.push(a("String",y,b))}else if(g===i2&&t.mode==="jsonc"){const v=h(g);let y=v.value;g=v.c,o.push(a(y.startsWith("//")?"LineComment":"BlockComment",y,b,c()))}else p(g)}return o}const Ks={document(e,t={}){return{type:"Document",body:e,...t}},string(e,t={}){return{type:"String",value:e,...t}},number(e,t={}){return{type:"Number",value:e,...t}},boolean(e,t={}){return{type:"Boolean",value:e,...t}},null(e={}){return{type:"Null",...e}},array(e,t={}){return{type:"Array",elements:e,...t}},element(e,t={}){return{type:"Element",value:e,...t}},object(e,t={}){return{type:"Object",members:e,...t}},member(e,t,n={}){return{type:"Member",name:e,value:t,...n}}},Bye={mode:"json",ranges:!1,tokens:!1};function Uye(e,t){let n="",r=e.indexOf("\\"),i=0;for(;r>=0;){n+=e.slice(i,r);const s=e.charAt(r+1);if(y_.has(s))n+=y_.get(s),i=r+2;else if(s==="u"){const o=e.slice(r+2,r+6);if(o.length<4||/[^0-9a-f]/i.test(o))throw new hh(`Invalid unicode escape \\u${o}.`,{line:t.loc.start.line,column:t.loc.start.column+r,offset:t.loc.start.offset+r});n+=String.fromCharCode(parseInt(o,16)),i=r+6}else throw new hh(`Invalid escape \\${s}.`,{line:t.loc.start.line,column:t.loc.start.column+r,offset:t.loc.start.offset+r});r=e.indexOf("\\",i)}return n+=e.slice(i),n}function Hye(e,t){switch(t.type){case"Boolean":return e==="true";case"Number":return Number(e);case"String":return Uye(e.slice(1,-1),t);default:throw new TypeError(`Unknown token type "${t.type}.`)}}function jye(e,t){t=Object.freeze({...Bye,...t});const n=Fye(e,{mode:t.mode,ranges:t.ranges});let r=0;function i(){return n[r++]}function s(){const v=n[r++];return v&&v.type.endsWith("Comment")?s():v}const o=t.mode==="jsonc"?s:i;function a(v,y){if(!v||v.type!==y)throw new Bv(v)}function l(v,y){return t.ranges?{range:[v.offset,y.offset]}:void 0}function c(v){const y=l(v.loc.start,v.loc.end),E=Hye(e.slice(v.loc.start.offset,v.loc.end.offset),v),T={loc:{start:{...v.loc.start},end:{...v.loc.end}},...y};switch(v.type){case"String":return Ks.string(E,T);case"Number":return Ks.number(E,T);case"Boolean":return Ks.boolean(E,T);default:throw new TypeError(`Unknown token type ${v.type}.`)}}function u(v){const y=l(v.loc.start,v.loc.end);return Ks.null({loc:{start:{...v.loc.start},end:{...v.loc.end}},...y})}function d(v){a(v,"String");const y=c(v);v=o(),a(v,"Colon");const E=p(),T=l(y.loc.start,E.loc.end);return Ks.member(y,E,{loc:{start:{...y.loc.start},end:{...E.loc.end}},...T})}function f(v){a(v,"LBrace");const y=[];let E=o();if(E&&E.type!=="RBrace")do if(y.push(d(E)),E=o(),E.type==="Comma")E=o();else break;while(E);a(E,"RBrace");const T=l(v.loc.start,E.loc.end);return Ks.object(y,{loc:{start:{...v.loc.start},end:{...E.loc.end}},...T})}function h(v){a(v,"LBracket");const y=[];let E=o();if(E&&E.type!=="RBracket")do{const w=p(E);if(y.push(Ks.element(w,{loc:w.loc})),E=o(),E.type==="Comma")E=o();else break}while(E);a(E,"RBracket");const T=l(v.loc.start,E.loc.end);return Ks.array(y,{loc:{start:{...v.loc.start},end:{...E.loc.end}},...T})}function p(v){switch(v=v||o(),v.type){case"String":case"Boolean":case"Number":return c(v);case"Null":return u(v);case"LBrace":return f(v);case"LBracket":return h(v);default:throw new Bv(v)}}const m=p(),g=o();if(g)throw new Bv(g);const b={loc:{start:{line:1,column:1,offset:0},end:{...m.loc.end}}};return t.tokens&&(b.tokens=n),t.ranges&&(b.range=[b.loc.start.offset,b.loc.end.offset]),Ks.document(m,b)}const Vye=e=>t=>e===t,qye=e=>t=>!e(t),zye=e=>Object.values(e),Kye=e=>e!==void 0,zS=e=>t=>t.keyword===e,Wye=zS("required"),Gye=zS("anyOf"),sB=zS("enum"),tf=e=>e&&e.errors||[],oB=e=>e&&zye(e.children)||[],Yye=e=>t=>oB(e).filter(qye(Vye(t))),o2=e=>t=>t.reduce((n,r)=>n.concat(r),e),aB=e=>{const t=e.split("/").slice(1);for(const n in t)t[n]=t[n].split("~1").join("/").split("~0").join("~");return t};function Xye(e,t,n){const r=aB(t),i=r.length-1;return r.reduce((s,o,a)=>{switch(s==null?void 0:s.type){case"Object":{const l=s.members.filter(d=>d.name.value===o);if(l.length!==1)throw new Error(`Couldn't find property ${o} of ${t}`);const{name:c,value:u}=l[0];return n&&a===i?c:u}case"Array":return s.elements[o];default:if(s.loc)return s}},e.body)}function Qye(e){if(!e||!e.elements)return"";const t=e.elements.filter(n=>n&&n.name&&n.name.value==="type");return t.length&&t[0].value&&`:${t[0].value.value}`||""}function Jye(e,t){let n="";return aB(t).reduce((r,i)=>{switch(r==null?void 0:r.type){case"Object":{n+=`/${i}`;const s=r.members.filter(o=>o.name.value===i);if(s.length!==1)throw new Error(`Couldn't find property ${i} of ${t}`);return s[0].value}case"Array":return n+=`/${i}${Qye(r.elements[i])}`,r.elements[i]}},e.body),n}class ld{constructor(t={isIdentifierLocation:!1},{colorize:n,data:r,schema:i,jsonAst:s,jsonRaw:o}){this.options=t,this.colorize=!!(n||n===void 0),this.data=r,this.schema=i,this.jsonAst=s,this.jsonRaw=o}getChalk(){return this.colorize?chalk:new chalk.Instance({level:0})}getLocation(t=this.instancePath){const{isIdentifierLocation:n,isSkipEndLocation:r}=this.options,{loc:i}=Xye(this.jsonAst,t,n);return{start:i.start,end:r?void 0:i.end}}getDecoratedPath(t=this.instancePath){return Jye(this.jsonAst,t)}getCodeFrame(t,n=this.instancePath){return codeFrameColumns(this.jsonRaw,this.getLocation(n),{highlightCode:!1,message:t})}get instancePath(){return typeof this.options.instancePath<"u"?this.options.instancePath:this.options.dataPath}print(){throw new Error(`Implement the 'print' method inside ${this.constructor.name}!`)}getError(){throw new Error(`Implement the 'getError' method inside ${this.constructor.name}!`)}}class Zye extends ld{constructor(...t){super(...t),this.name="AdditionalPropValidationError",this.options.isIdentifierLocation=!0}print(){const{message:t,params:n}=this.options,r=this.getChalk();return[r`{red {bold ADDITIONAL PROPERTY} ${t}}\n`].concat(this.getCodeFrame(r`😲 {magentaBright ${n.additionalProperty}} is not expected to be here!`,`${this.instancePath}/${n.additionalProperty}`))}getError(){const{params:t}=this.options;return{...this.getLocation(`${this.instancePath}/${t.additionalProperty}`),error:`${this.getDecoratedPath()} Property ${t.additionalProperty} is not expected to be here`,path:this.instancePath}}}class eve extends ld{constructor(...t){super(...t),this.name="DefaultValidationError",this.options.isSkipEndLocation=!0}print(){const{keyword:t,message:n}=this.options,r=this.getChalk();return[r`{red {bold ${t.toUpperCase()}} ${n}}\n`].concat(this.getCodeFrame(r`👈🏽 {magentaBright ${t}} ${n}`))}getError(){const{keyword:t,message:n}=this.options;return{...this.getLocation(),error:`${this.getDecoratedPath()}: ${t} ${n}`,path:this.instancePath}}}var ny={},tve=/~/,nve=/~[01]/g;function rve(e){switch(e){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+e)}function lB(e){return tve.test(e)?e.replace(nve,rve):e}function ive(e,t,n){for(var r,i,s=1,o=t.length;s<o;){if(t[s]==="constructor"||t[s]==="prototype"||t[s]==="__proto__")return e;if(r=lB(t[s++]),i=o>s,typeof e[r]>"u"&&(Array.isArray(e)&&r==="-"&&(r=e.length),i&&(t[s]!==""&&t[s]<1/0||t[s]==="-"?e[r]=[]:e[r]={})),!i)break;e=e[r]}var a=e[r];return n===void 0?delete e[r]:e[r]=n,a}function KS(e){if(typeof e=="string"){if(e=e.split("/"),e[0]==="")return e;throw new Error("Invalid JSON pointer.")}else if(Array.isArray(e)){for(const t of e)if(typeof t!="string"&&typeof t!="number")throw new Error("Invalid JSON pointer. Must be of type string or number.");return e}throw new Error("Invalid JSON pointer.")}function cB(e,t){if(typeof e!="object")throw new Error("Invalid input object.");t=KS(t);var n=t.length;if(n===1)return e;for(var r=1;r<n;){if(e=e[lB(t[r++])],n===r)return e;if(typeof e!="object"||e===null)return}}function uB(e,t,n){if(typeof e!="object")throw new Error("Invalid input object.");if(t=KS(t),t.length===0)throw new Error("Invalid JSON pointer for set.");return ive(e,t,n)}function sve(e){var t=KS(e);return{get:function(n){return cB(n,t)},set:function(n,r){return uB(n,t,r)}}}ny.get=cB;ny.set=uB;ny.compile=sve;const Uv=[],a2=[];function ove(e,t){if(e===t)return 0;const n=e;e.length>t.length&&(e=t,t=n);let r=e.length,i=t.length;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-i);)r--,i--;let s=0;for(;s<r&&e.charCodeAt(s)===t.charCodeAt(s);)s++;if(r-=s,i-=s,r===0)return i;let o,a,l,c,u=0,d=0;for(;u<r;)a2[u]=e.charCodeAt(s+u),Uv[u]=++u;for(;d<i;)for(o=t.charCodeAt(s+d),l=d++,a=d,u=0;u<r;u++)c=o===a2[u]?l:l+1,l=Uv[u],a=Uv[u]=l>a?c>a?a+1:c:c>l?l+1:c;return a}class ave extends ld{constructor(...t){super(...t),this.name="EnumValidationError"}print(){const{message:t,params:{allowedValues:n}}=this.options,r=this.getChalk(),i=this.findBestMatch();return[r`{red {bold ENUM} ${t}}`,r`{red (${n.join(", ")})}\n`].concat(this.getCodeFrame(i!==null?r`👈🏽 Did you mean {magentaBright ${i}} here?`:r`👈🏽 Unexpected value, should be equal to one of the allowed values`))}getError(){const{message:t,params:n}=this.options,r=this.findBestMatch(),i=n.allowedValues.join(", "),s={...this.getLocation(),error:`${this.getDecoratedPath()} ${t}: ${i}`,path:this.instancePath};return r!==null&&(s.suggestion=`Did you mean ${r}?`),s}findBestMatch(){const{params:{allowedValues:t}}=this.options,n=this.instancePath===""?this.data:ny.get(this.data,this.instancePath);if(!n)return null;const r=t.map(i=>({value:i,weight:ove(i,n.toString())})).sort((i,s)=>i.weight>s.weight?1:i.weight<s.weight?-1:0)[0];return t.length===1||r.weight<r.value.length?r.value:null}}class lve extends ld{constructor(...t){super(...t),this.name="PatternValidationError",this.options.isIdentifierLocation=!0}print(){const{message:t,params:n,propertyName:r}=this.options,i=this.getChalk();return[i`{red {bold PROPERTY} ${t}}\n`].concat(this.getCodeFrame(i`😲 must match pattern {magentaBright ${n.pattern}}`,`${this.instancePath}/${r}`))}getError(){const{params:t,propertyName:n}=this.options;return{...this.getLocation(),error:`${this.getDecoratedPath()} Property "${n}" must match pattern ${t.pattern}`,path:this.instancePath}}}class cve extends ld{constructor(...t){super(...t),this.name="RequiredValidationError"}getLocation(t=this.instancePath){const{start:n}=super.getLocation(t);return{start:n}}print(){const{message:t,params:n}=this.options,r=this.getChalk();return[r`{red {bold REQUIRED} ${t}}\n`].concat(this.getCodeFrame(r`☹️ {magentaBright ${n.missingProperty}} is missing here!`))}getError(){const{message:t}=this.options;return{...this.getLocation(),error:`${this.getDecoratedPath()} ${t}`,path:this.instancePath}}}class uve extends ld{constructor(...t){super(...t),this.name="UnevaluatedPropValidationError",this.options.isIdentifierLocation=!0}print(){const{message:t,params:n}=this.options,r=this.getChalk();return[r`{red {bold UNEVALUATED PROPERTY} ${t}}\n`].concat(this.getCodeFrame(r`😲 {magentaBright ${n.unevaluatedProperty}} is not expected to be here!`,`${this.instancePath}/${n.unevaluatedProperty}`))}getError(){const{params:t}=this.options;return{...this.getLocation(`${this.instancePath}/${t.unevaluatedProperty}`),error:`${this.getDecoratedPath()} Property ${t.unevaluatedProperty} is not expected to be here`,path:this.instancePath}}}const dve=/\/[\w_-]+(\/\d+)?/g;function fve(e=[]){const t={children:{}};return e.forEach(n=>{const r=typeof n.instancePath<"u"?n.instancePath:n.dataPath,i=r===""?[""]:r.match(dve);i&&i.reduce((s,o,a)=>(s.children[o]=s.children[o]||{children:{},errors:[]},a===i.length-1&&s.children[o].errors.push(n),s.children[o]),t)}),t}function dB(e,t,n){tf(e).forEach(r=>{Wye(r)&&(e.errors=[r],e.children={})}),tf(e).some(Gye)&&Object.keys(e.children).length>0&&delete e.errors,e.errors&&e.errors.length&&tf(e).every(sB)&&Yye(t)(e).filter(Kye).some(tf)&&delete t.children[n],Object.entries(e.children).forEach(([r,i])=>dB(i,e,r))}function fB(e,t){const n=tf(e);if(n.length&&n.every(sB)){const r=[...new Set(o2([])(n.map(s=>s.params.allowedValues)))],i=n[0];return[new ave({...i,params:{allowedValues:r}},t)]}return o2(n.reduce((r,i)=>{switch(i.keyword){case"additionalProperties":return r.concat(new Zye(i,t));case"pattern":return r.concat(new lve(i,t));case"required":return r.concat(new cve(i,t));case"unevaluatedProperties":return r.concat(new uve(i,t));default:return r.concat(new eve(i,t))}},[]))(oB(e).map(r=>fB(r,t)))}function hve(e,t){const n=fve(e||[]);return dB(n),fB(n,t)}function pve(e,t,n,r={}){const{colorize:i=!0,format:s="cli",indent:o=null,json:a=null}=r,l=a||JSON.stringify(t,null,o),c=jye(l),u=h=>h.print().join(`
373
- `),d=h=>h.getError(),f=hve(n,{colorize:i,data:t,schema:e,jsonAst:c,jsonRaw:l});return s==="cli"?f.map(u).join(`
371
+ `&&(s=!0),b}function c(){return{line:r,column:i,offset:n}}function u(b){let v=xye.get(b);if(e.slice(n,n+v.length)===v)return n+=v.length-1,i+=v.length-1,{value:v,c:l()};for(let y=1;y<v.length;y++)v[y]!==e.charAt(n+y)&&p(l())}function d(b){let v=b;for(b=l();b&&b!==r2;){if(b==="\\")if(v+=b,b=l(),y_.has(b))v+=b;else if(b==="u"){v+=b;for(let y=0;y<4;y++)b=l(),Iye(b)?v+=b:p(b)}else p(b);else v+=b;b=l()}return b||m(),v+=b,{value:v,c:l()}}function f(b){let v="";if(b==="-"&&(v+=b,b=l(),na(b)||p(b)),b==="0")v+=b,b=l(),na(b)&&p(b);else{Rye(b)||p(b);do v+=b,b=l();while(na(b))}if(b===".")do v+=b,b=l();while(na(b));if(b==="e"||b==="E")for(v+=b,b=l(),(b==="+"||b==="-")&&(v+=b,b=l()),b||m(),na(b)||p(b);na(b);)v+=b,b=l();return{value:v,c:b}}function h(b){let v=b;if(b=l(),b==="/"){do v+=b,b=l();while(b&&b!=="\r"&&b!==`
372
+ `);return{value:v,c:b}}if(b===s2){for(;b;)if(v+=b,b=l(),b===s2&&(v+=b,b=l(),b===i2))return v+=b,b=l(),{value:v,c:b};m()}p(b)}function p(b){throw new Nye(b,c())}function m(){throw new Cye(c())}let g=l();for(;n<e.length;){for(;Dye(g);)g=l();if(!g)break;const b=c();if(Fv.has(g))o.push(a(Fv.get(g),g,b)),g=l();else if(Pye(g)){const v=u(g);let y=v.value;g=v.c,o.push(a(Fv.get(y),y,b))}else if(Lye(g)){const v=f(g);let y=v.value;g=v.c,o.push(a("Number",y,b))}else if(g===r2){const v=d(g);let y=v.value;g=v.c,o.push(a("String",y,b))}else if(g===i2&&t.mode==="jsonc"){const v=h(g);let y=v.value;g=v.c,o.push(a(y.startsWith("//")?"LineComment":"BlockComment",y,b,c()))}else p(g)}return o}const Ks={document(e,t={}){return{type:"Document",body:e,...t}},string(e,t={}){return{type:"String",value:e,...t}},number(e,t={}){return{type:"Number",value:e,...t}},boolean(e,t={}){return{type:"Boolean",value:e,...t}},null(e={}){return{type:"Null",...e}},array(e,t={}){return{type:"Array",elements:e,...t}},element(e,t={}){return{type:"Element",value:e,...t}},object(e,t={}){return{type:"Object",members:e,...t}},member(e,t,n={}){return{type:"Member",name:e,value:t,...n}}},$ye={mode:"json",ranges:!1,tokens:!1};function Fye(e,t){let n="",r=e.indexOf("\\"),i=0;for(;r>=0;){n+=e.slice(i,r);const s=e.charAt(r+1);if(y_.has(s))n+=y_.get(s),i=r+2;else if(s==="u"){const o=e.slice(r+2,r+6);if(o.length<4||/[^0-9a-f]/i.test(o))throw new hh(`Invalid unicode escape \\u${o}.`,{line:t.loc.start.line,column:t.loc.start.column+r,offset:t.loc.start.offset+r});n+=String.fromCharCode(parseInt(o,16)),i=r+6}else throw new hh(`Invalid escape \\${s}.`,{line:t.loc.start.line,column:t.loc.start.column+r,offset:t.loc.start.offset+r});r=e.indexOf("\\",i)}return n+=e.slice(i),n}function Bye(e,t){switch(t.type){case"Boolean":return e==="true";case"Number":return Number(e);case"String":return Fye(e.slice(1,-1),t);default:throw new TypeError(`Unknown token type "${t.type}.`)}}function Uye(e,t){t=Object.freeze({...$ye,...t});const n=Mye(e,{mode:t.mode,ranges:t.ranges});let r=0;function i(){return n[r++]}function s(){const v=n[r++];return v&&v.type.endsWith("Comment")?s():v}const o=t.mode==="jsonc"?s:i;function a(v,y){if(!v||v.type!==y)throw new Bv(v)}function l(v,y){return t.ranges?{range:[v.offset,y.offset]}:void 0}function c(v){const y=l(v.loc.start,v.loc.end),E=Bye(e.slice(v.loc.start.offset,v.loc.end.offset),v),T={loc:{start:{...v.loc.start},end:{...v.loc.end}},...y};switch(v.type){case"String":return Ks.string(E,T);case"Number":return Ks.number(E,T);case"Boolean":return Ks.boolean(E,T);default:throw new TypeError(`Unknown token type ${v.type}.`)}}function u(v){const y=l(v.loc.start,v.loc.end);return Ks.null({loc:{start:{...v.loc.start},end:{...v.loc.end}},...y})}function d(v){a(v,"String");const y=c(v);v=o(),a(v,"Colon");const E=p(),T=l(y.loc.start,E.loc.end);return Ks.member(y,E,{loc:{start:{...y.loc.start},end:{...E.loc.end}},...T})}function f(v){a(v,"LBrace");const y=[];let E=o();if(E&&E.type!=="RBrace")do if(y.push(d(E)),E=o(),E.type==="Comma")E=o();else break;while(E);a(E,"RBrace");const T=l(v.loc.start,E.loc.end);return Ks.object(y,{loc:{start:{...v.loc.start},end:{...E.loc.end}},...T})}function h(v){a(v,"LBracket");const y=[];let E=o();if(E&&E.type!=="RBracket")do{const w=p(E);if(y.push(Ks.element(w,{loc:w.loc})),E=o(),E.type==="Comma")E=o();else break}while(E);a(E,"RBracket");const T=l(v.loc.start,E.loc.end);return Ks.array(y,{loc:{start:{...v.loc.start},end:{...E.loc.end}},...T})}function p(v){switch(v=v||o(),v.type){case"String":case"Boolean":case"Number":return c(v);case"Null":return u(v);case"LBrace":return f(v);case"LBracket":return h(v);default:throw new Bv(v)}}const m=p(),g=o();if(g)throw new Bv(g);const b={loc:{start:{line:1,column:1,offset:0},end:{...m.loc.end}}};return t.tokens&&(b.tokens=n),t.ranges&&(b.range=[b.loc.start.offset,b.loc.end.offset]),Ks.document(m,b)}const Hye=e=>t=>e===t,jye=e=>t=>!e(t),Vye=e=>Object.values(e),qye=e=>e!==void 0,zS=e=>t=>t.keyword===e,zye=zS("required"),Kye=zS("anyOf"),sB=zS("enum"),tf=e=>e&&e.errors||[],oB=e=>e&&Vye(e.children)||[],Wye=e=>t=>oB(e).filter(jye(Hye(t))),o2=e=>t=>t.reduce((n,r)=>n.concat(r),e),aB=e=>{const t=e.split("/").slice(1);for(const n in t)t[n]=t[n].split("~1").join("/").split("~0").join("~");return t};function Gye(e,t,n){const r=aB(t),i=r.length-1;return r.reduce((s,o,a)=>{switch(s==null?void 0:s.type){case"Object":{const l=s.members.filter(d=>d.name.value===o);if(l.length!==1)throw new Error(`Couldn't find property ${o} of ${t}`);const{name:c,value:u}=l[0];return n&&a===i?c:u}case"Array":return s.elements[o];default:if(s.loc)return s}},e.body)}function Yye(e){if(!e||!e.elements)return"";const t=e.elements.filter(n=>n&&n.name&&n.name.value==="type");return t.length&&t[0].value&&`:${t[0].value.value}`||""}function Xye(e,t){let n="";return aB(t).reduce((r,i)=>{switch(r==null?void 0:r.type){case"Object":{n+=`/${i}`;const s=r.members.filter(o=>o.name.value===i);if(s.length!==1)throw new Error(`Couldn't find property ${i} of ${t}`);return s[0].value}case"Array":return n+=`/${i}${Yye(r.elements[i])}`,r.elements[i]}},e.body),n}class ld{constructor(t={isIdentifierLocation:!1},{colorize:n,data:r,schema:i,jsonAst:s,jsonRaw:o}){this.options=t,this.colorize=!!(n||n===void 0),this.data=r,this.schema=i,this.jsonAst=s,this.jsonRaw=o}getChalk(){return this.colorize?chalk:new chalk.Instance({level:0})}getLocation(t=this.instancePath){const{isIdentifierLocation:n,isSkipEndLocation:r}=this.options,{loc:i}=Gye(this.jsonAst,t,n);return{start:i.start,end:r?void 0:i.end}}getDecoratedPath(t=this.instancePath){return Xye(this.jsonAst,t)}getCodeFrame(t,n=this.instancePath){return codeFrameColumns(this.jsonRaw,this.getLocation(n),{highlightCode:!1,message:t})}get instancePath(){return typeof this.options.instancePath<"u"?this.options.instancePath:this.options.dataPath}print(){throw new Error(`Implement the 'print' method inside ${this.constructor.name}!`)}getError(){throw new Error(`Implement the 'getError' method inside ${this.constructor.name}!`)}}class Qye extends ld{constructor(...t){super(...t),this.name="AdditionalPropValidationError",this.options.isIdentifierLocation=!0}print(){const{message:t,params:n}=this.options,r=this.getChalk();return[r`{red {bold ADDITIONAL PROPERTY} ${t}}\n`].concat(this.getCodeFrame(r`😲 {magentaBright ${n.additionalProperty}} is not expected to be here!`,`${this.instancePath}/${n.additionalProperty}`))}getError(){const{params:t}=this.options;return{...this.getLocation(`${this.instancePath}/${t.additionalProperty}`),error:`${this.getDecoratedPath()} Property ${t.additionalProperty} is not expected to be here`,path:this.instancePath}}}class Jye extends ld{constructor(...t){super(...t),this.name="DefaultValidationError",this.options.isSkipEndLocation=!0}print(){const{keyword:t,message:n}=this.options,r=this.getChalk();return[r`{red {bold ${t.toUpperCase()}} ${n}}\n`].concat(this.getCodeFrame(r`👈🏽 {magentaBright ${t}} ${n}`))}getError(){const{keyword:t,message:n}=this.options;return{...this.getLocation(),error:`${this.getDecoratedPath()}: ${t} ${n}`,path:this.instancePath}}}var ny={},Zye=/~/,eve=/~[01]/g;function tve(e){switch(e){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+e)}function lB(e){return Zye.test(e)?e.replace(eve,tve):e}function nve(e,t,n){for(var r,i,s=1,o=t.length;s<o;){if(t[s]==="constructor"||t[s]==="prototype"||t[s]==="__proto__")return e;if(r=lB(t[s++]),i=o>s,typeof e[r]>"u"&&(Array.isArray(e)&&r==="-"&&(r=e.length),i&&(t[s]!==""&&t[s]<1/0||t[s]==="-"?e[r]=[]:e[r]={})),!i)break;e=e[r]}var a=e[r];return n===void 0?delete e[r]:e[r]=n,a}function KS(e){if(typeof e=="string"){if(e=e.split("/"),e[0]==="")return e;throw new Error("Invalid JSON pointer.")}else if(Array.isArray(e)){for(const t of e)if(typeof t!="string"&&typeof t!="number")throw new Error("Invalid JSON pointer. Must be of type string or number.");return e}throw new Error("Invalid JSON pointer.")}function cB(e,t){if(typeof e!="object")throw new Error("Invalid input object.");t=KS(t);var n=t.length;if(n===1)return e;for(var r=1;r<n;){if(e=e[lB(t[r++])],n===r)return e;if(typeof e!="object"||e===null)return}}function uB(e,t,n){if(typeof e!="object")throw new Error("Invalid input object.");if(t=KS(t),t.length===0)throw new Error("Invalid JSON pointer for set.");return nve(e,t,n)}function rve(e){var t=KS(e);return{get:function(n){return cB(n,t)},set:function(n,r){return uB(n,t,r)}}}ny.get=cB;ny.set=uB;ny.compile=rve;const Uv=[],a2=[];function ive(e,t){if(e===t)return 0;const n=e;e.length>t.length&&(e=t,t=n);let r=e.length,i=t.length;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-i);)r--,i--;let s=0;for(;s<r&&e.charCodeAt(s)===t.charCodeAt(s);)s++;if(r-=s,i-=s,r===0)return i;let o,a,l,c,u=0,d=0;for(;u<r;)a2[u]=e.charCodeAt(s+u),Uv[u]=++u;for(;d<i;)for(o=t.charCodeAt(s+d),l=d++,a=d,u=0;u<r;u++)c=o===a2[u]?l:l+1,l=Uv[u],a=Uv[u]=l>a?c>a?a+1:c:c>l?l+1:c;return a}class sve extends ld{constructor(...t){super(...t),this.name="EnumValidationError"}print(){const{message:t,params:{allowedValues:n}}=this.options,r=this.getChalk(),i=this.findBestMatch();return[r`{red {bold ENUM} ${t}}`,r`{red (${n.join(", ")})}\n`].concat(this.getCodeFrame(i!==null?r`👈🏽 Did you mean {magentaBright ${i}} here?`:r`👈🏽 Unexpected value, should be equal to one of the allowed values`))}getError(){const{message:t,params:n}=this.options,r=this.findBestMatch(),i=n.allowedValues.join(", "),s={...this.getLocation(),error:`${this.getDecoratedPath()} ${t}: ${i}`,path:this.instancePath};return r!==null&&(s.suggestion=`Did you mean ${r}?`),s}findBestMatch(){const{params:{allowedValues:t}}=this.options,n=this.instancePath===""?this.data:ny.get(this.data,this.instancePath);if(!n)return null;const r=t.map(i=>({value:i,weight:ive(i,n.toString())})).sort((i,s)=>i.weight>s.weight?1:i.weight<s.weight?-1:0)[0];return t.length===1||r.weight<r.value.length?r.value:null}}class ove extends ld{constructor(...t){super(...t),this.name="PatternValidationError",this.options.isIdentifierLocation=!0}print(){const{message:t,params:n,propertyName:r}=this.options,i=this.getChalk();return[i`{red {bold PROPERTY} ${t}}\n`].concat(this.getCodeFrame(i`😲 must match pattern {magentaBright ${n.pattern}}`,`${this.instancePath}/${r}`))}getError(){const{params:t,propertyName:n}=this.options;return{...this.getLocation(),error:`${this.getDecoratedPath()} Property "${n}" must match pattern ${t.pattern}`,path:this.instancePath}}}class ave extends ld{constructor(...t){super(...t),this.name="RequiredValidationError"}getLocation(t=this.instancePath){const{start:n}=super.getLocation(t);return{start:n}}print(){const{message:t,params:n}=this.options,r=this.getChalk();return[r`{red {bold REQUIRED} ${t}}\n`].concat(this.getCodeFrame(r`☹️ {magentaBright ${n.missingProperty}} is missing here!`))}getError(){const{message:t}=this.options;return{...this.getLocation(),error:`${this.getDecoratedPath()} ${t}`,path:this.instancePath}}}class lve extends ld{constructor(...t){super(...t),this.name="UnevaluatedPropValidationError",this.options.isIdentifierLocation=!0}print(){const{message:t,params:n}=this.options,r=this.getChalk();return[r`{red {bold UNEVALUATED PROPERTY} ${t}}\n`].concat(this.getCodeFrame(r`😲 {magentaBright ${n.unevaluatedProperty}} is not expected to be here!`,`${this.instancePath}/${n.unevaluatedProperty}`))}getError(){const{params:t}=this.options;return{...this.getLocation(`${this.instancePath}/${t.unevaluatedProperty}`),error:`${this.getDecoratedPath()} Property ${t.unevaluatedProperty} is not expected to be here`,path:this.instancePath}}}const cve=/\/[\w_-]+(\/\d+)?/g;function uve(e=[]){const t={children:{}};return e.forEach(n=>{const r=typeof n.instancePath<"u"?n.instancePath:n.dataPath,i=r===""?[""]:r.match(cve);i&&i.reduce((s,o,a)=>(s.children[o]=s.children[o]||{children:{},errors:[]},a===i.length-1&&s.children[o].errors.push(n),s.children[o]),t)}),t}function dB(e,t,n){tf(e).forEach(r=>{zye(r)&&(e.errors=[r],e.children={})}),tf(e).some(Kye)&&Object.keys(e.children).length>0&&delete e.errors,e.errors&&e.errors.length&&tf(e).every(sB)&&Wye(t)(e).filter(qye).some(tf)&&delete t.children[n],Object.entries(e.children).forEach(([r,i])=>dB(i,e,r))}function fB(e,t){const n=tf(e);if(n.length&&n.every(sB)){const r=[...new Set(o2([])(n.map(s=>s.params.allowedValues)))],i=n[0];return[new sve({...i,params:{allowedValues:r}},t)]}return o2(n.reduce((r,i)=>{switch(i.keyword){case"additionalProperties":return r.concat(new Qye(i,t));case"pattern":return r.concat(new ove(i,t));case"required":return r.concat(new ave(i,t));case"unevaluatedProperties":return r.concat(new lve(i,t));default:return r.concat(new Jye(i,t))}},[]))(oB(e).map(r=>fB(r,t)))}function dve(e,t){const n=uve(e||[]);return dB(n),fB(n,t)}function fve(e,t,n,r={}){const{colorize:i=!0,format:s="cli",indent:o=null,json:a=null}=r,l=a||JSON.stringify(t,null,o),c=Uye(l),u=h=>h.print().join(`
373
+ `),d=h=>h.getError(),f=dve(n,{colorize:i,data:t,schema:e,jsonAst:c,jsonRaw:l});return s==="cli"?f.map(u).join(`
374
374
 
375
- `):f.map(d)}function nf(e,t){return typeof t=="string"?[{start:{line:1,column:1,offset:0},error:t,path:""}]:pve(e,null,t,{format:"js",indent:2,colorize:!1}).map(n=>(n.error=n.error.trim(),n))}function mve(e){try{return tB(e),{valid:!0}}catch(t){return{valid:!1,errors:nf(e,t.message)}}}class WS{constructor(){Ko(this,"version"),Ko(this,"ajvValidators",{}),Ko(this,"externalRefs",{}),Ko(this,"errors"),Ko(this,"specificationVersion"),Ko(this,"specificationType"),Ko(this,"specification")}resolveReferences(t){return tB(t.find(n=>n.isEntrypoint===!0).specification)}async validate(t){var n;const r=t.find(s=>s.isEntrypoint),i=r==null?void 0:r.specification;this.specification=i,(n=this.specification)!=null&&n.info&&!this.specification.info.version&&(this.specification.info.version="0.0.1");try{if(i==null)return{valid:!1,errors:nf(r,d_.EMPTY_OR_INVALID)};Object.keys(this.externalRefs).length>0&&(i[tbe]=this.externalRefs);const{version:s,specificationType:o,specificationVersion:a}=eB(i);if(this.version=s,this.specificationVersion=a,this.specificationType=o,!s)return{valid:!1,errors:nf(r,d_.OPENAPI_VERSION_NOT_SUPPORTED)};const l=await this.getAjvValidator(s);return l(i)?mve(r.specification):l.errors&&l.errors.length>0?{valid:!1,errors:nf(r,l.errors)}:{valid:!1}}catch(s){return{valid:!1,errors:nf(r,s.message??s)}}}async getAjvValidator(t){if(this.ajvValidators[t])return this.ajvValidators[t];const n=await dde(Object.assign({"../../../schemas/v2.0/schema.json":()=>Promise.resolve().then(()=>require("./schema-BQQoKgNw-DQKLRVph-CyFt8nZw.cjs")),"../../../schemas/v3.0/schema.json":()=>Promise.resolve().then(()=>require("./schema-BjykgtPd-D3b7mB1v-C_N_PTsi.cjs")),"../../../schemas/v3.1/schema.json":()=>Promise.resolve().then(()=>require("./schema-ZROhtp0X-ZROhtp0X-DL6m5HXA.cjs"))}),`../../../schemas/v${t}/schema.json`),r=ebe[n.$schema],i=new r({strict:!1});return sme(i),t==="3.1"&&i.addFormat("media-range",!0),this.ajvValidators[t]=i.compile(n)}}Ko(WS,"supportedVersions",r4);function gve(){return{load:bve}}function bve(e){const t=J4(e);return{get:()=>t,details:()=>iy(t),filter:n=>tp(t,n),upgrade:()=>hB(t),validate:()=>GS(t),resolve:()=>ry(t),toJson:()=>np(t),toYaml:()=>rp(t)}}function hB(e){const t=yye(e);return{get:()=>t,details:()=>iy(t),filter:n=>tp(t,n),validate:()=>GS(t),resolve:()=>ry(t),toJson:()=>np(t),toYaml:()=>rp(t)}}async function GS(e){return{...await vye(e),filter:t=>tp(e,t),get:()=>e,details:()=>iy(e),resolve:()=>ry(e),toJson:()=>np(e),toYaml:()=>rp(e)}}async function ry(e){return{...await hye(e),filter:t=>tp(e,t),toJson:()=>np(e),toYaml:()=>rp(e)}}function tp(e,t){const n=nbe(e,t);return{get:()=>n,details:()=>iy(n),filter:()=>tp(n,t),upgrade:()=>hB(n),validate:()=>GS(n),resolve:()=>ry(n),toJson:()=>np(n),toYaml:()=>rp(n)}}function iy(e){return eB(e)}function np(e){return pye(e)}function rp(e){return mye(e)}const yve=e=>new Promise(async(t,n)=>{var r;try{if(!e)return t(Em(nu()));const{schema:i,errors:s}=await gve().load(e).resolve();return s!=null&&s.length&&console.warn(`Please open an issue on https://github.com/scalar/scalar
375
+ `):f.map(d)}function nf(e,t){return typeof t=="string"?[{start:{line:1,column:1,offset:0},error:t,path:""}]:fve(e,null,t,{format:"js",indent:2,colorize:!1}).map(n=>(n.error=n.error.trim(),n))}function hve(e){try{return tB(e),{valid:!0}}catch(t){return{valid:!1,errors:nf(e,t.message)}}}class WS{constructor(){Ko(this,"version"),Ko(this,"ajvValidators",{}),Ko(this,"externalRefs",{}),Ko(this,"errors"),Ko(this,"specificationVersion"),Ko(this,"specificationType"),Ko(this,"specification")}resolveReferences(t){return tB(t.find(n=>n.isEntrypoint===!0).specification)}async validate(t){var n;const r=t.find(s=>s.isEntrypoint),i=r==null?void 0:r.specification;this.specification=i,(n=this.specification)!=null&&n.info&&!this.specification.info.version&&(this.specification.info.version="0.0.1");try{if(i==null)return{valid:!1,errors:nf(r,d_.EMPTY_OR_INVALID)};Object.keys(this.externalRefs).length>0&&(i[Z0e]=this.externalRefs);const{version:s,specificationType:o,specificationVersion:a}=eB(i);if(this.version=s,this.specificationVersion=a,this.specificationType=o,!s)return{valid:!1,errors:nf(r,d_.OPENAPI_VERSION_NOT_SUPPORTED)};const l=await this.getAjvValidator(s);return l(i)?hve(r.specification):l.errors&&l.errors.length>0?{valid:!1,errors:nf(r,l.errors)}:{valid:!1}}catch(s){return{valid:!1,errors:nf(r,s.message??s)}}}async getAjvValidator(t){if(this.ajvValidators[t])return this.ajvValidators[t];const n=await cde(Object.assign({"../../../schemas/v2.0/schema.json":()=>Promise.resolve().then(()=>require("./schema-BQQoKgNw-DQKLRVph-CyFt8nZw.cjs")),"../../../schemas/v3.0/schema.json":()=>Promise.resolve().then(()=>require("./schema-BjykgtPd-D3b7mB1v-C_N_PTsi.cjs")),"../../../schemas/v3.1/schema.json":()=>Promise.resolve().then(()=>require("./schema-ZROhtp0X-ZROhtp0X-DL6m5HXA.cjs"))}),`../../../schemas/v${t}/schema.json`),r=J0e[n.$schema],i=new r({strict:!1});return rme(i),t==="3.1"&&i.addFormat("media-range",!0),this.ajvValidators[t]=i.compile(n)}}Ko(WS,"supportedVersions",r4);function pve(){return{load:mve}}function mve(e){const t=J4(e);return{get:()=>t,details:()=>iy(t),filter:n=>tp(t,n),upgrade:()=>hB(t),validate:()=>GS(t),resolve:()=>ry(t),toJson:()=>np(t),toYaml:()=>rp(t)}}function hB(e){const t=gye(e);return{get:()=>t,details:()=>iy(t),filter:n=>tp(t,n),validate:()=>GS(t),resolve:()=>ry(t),toJson:()=>np(t),toYaml:()=>rp(t)}}async function GS(e){return{...await bye(e),filter:t=>tp(e,t),get:()=>e,details:()=>iy(e),resolve:()=>ry(e),toJson:()=>np(e),toYaml:()=>rp(e)}}async function ry(e){return{...await dye(e),filter:t=>tp(e,t),toJson:()=>np(e),toYaml:()=>rp(e)}}function tp(e,t){const n=ebe(e,t);return{get:()=>n,details:()=>iy(n),filter:()=>tp(n,t),upgrade:()=>hB(n),validate:()=>GS(n),resolve:()=>ry(n),toJson:()=>np(n),toYaml:()=>rp(n)}}function iy(e){return eB(e)}function np(e){return fye(e)}function rp(e){return hye(e)}const gve=e=>new Promise(async(t,n)=>{var r;try{if(!e)return t(Em(nu()));const{schema:i,errors:s}=await pve().load(e).resolve();return s!=null&&s.length&&console.warn(`Please open an issue on https://github.com/scalar/scalar
376
376
  `,`Scalar OpenAPI Parser Warning:
377
- `,s),i===void 0?(n(((r=s==null?void 0:s[0])==null?void 0:r.error)??"Failed to parse the OpenAPI file."),t(Em(nu()))):t(Em(i))}catch(i){n(i)}return t(Em(nu()))}),Em=e=>{let t={};e&&typeof e=="object"?t=structuredClone(e):t=nu(),t.tags||(t.tags=[]),t.paths||(t.paths={});const n={};return Object.keys(t.webhooks??{}).forEach(r=>{var i;Object.keys(((i=t.webhooks)==null?void 0:i[r])??{}).forEach(s=>{var o,a,l;const c=(o=t.webhooks)==null?void 0:o[r];(c==null?void 0:c["x-internal"])!==!0&&(n[r]===void 0&&(n[r]={}),n[r][s]={httpVerb:s,path:r,operationId:(c==null?void 0:c.operationId)||r,name:(c==null?void 0:c.summary)||r||"",description:(c==null?void 0:c.description)||"",pathParameters:(l=(a=t.paths)==null?void 0:a[r])==null?void 0:l.parameters,information:{...c}})})}),Object.keys(t.paths).forEach(r=>{Object.keys(t.paths[r]).filter(i=>pT.includes(i.toUpperCase())).forEach(i=>{var s,o,a,l,c,u;const d=t.paths[r][i];if(d===void 0||d["x-internal"]===!0)return;const f={httpVerb:i,path:r,operationId:d.operationId||r,name:d.summary||r||"",description:d.description||"",information:{...d},pathParameters:(o=(s=t.paths)==null?void 0:s[r])==null?void 0:o.parameters};if(!d.tags||d.tags.length===0){(a=t.tags)!=null&&a.find(p=>p.name==="default")||(l=t.tags)==null||l.push({name:"default",description:"",operations:[]});const h=(c=t.tags)==null?void 0:c.findIndex(p=>p.name==="default");h>=0&&((u=t.tags[h])==null||u.operations.push(f))}else d.tags.forEach(h=>{var p,m,g;const b=(p=t.tags)==null?void 0:p.findIndex(y=>y.name===h);b===-1&&((m=t.tags)==null||m.push({name:h,description:""}));const v=b!==-1?b:t.tags.length-1;typeof((g=t.tags[v])==null?void 0:g.operations)>"u"&&(t.tags[v].operations=[]),t.tags[v].operations.push(f)})})}),{...t,webhooks:n}},YS=Symbol(),pB=Symbol(),o0=async e=>{var t;(t=document.getElementById(e))==null||t.scrollIntoView()},wo=e=>new Promise(t=>setTimeout(t,e)),vve=Symbol("downloadSpec"),mB=kw(vve);function Eve(e,t){const n=z3(e),r=n?new Blob([e],{type:"application/json"}):new Blob([e],{type:"application/x-yaml"}),i=URL.createObjectURL(r),s=n?".json":".yaml",o="spec"+s,a=t?t+s:o,l=document.createElement("a");l.href=i,l.download=a,l.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})),setTimeout(()=>{window.URL.revokeObjectURL(i),l.remove()},100)}function _ve(e,t=1){const n=new RegExp(`^(?=#{${t}} )`,"m");return e.split(n).map(r=>r.trim()).filter(Boolean)}var wve=Object.defineProperty,Tve=(e,t,n)=>t in e?wve(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xr=(e,t,n)=>(Tve(e,typeof t!="symbol"?t+"":t,n),n);function Sve(e){if(!e||typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}Sve("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999}[data-sonner-toaster][data-x-position=right]{right:max(var(--offset),env(safe-area-inset-right))}[data-sonner-toaster][data-x-position=left]{left:max(var(--offset),env(safe-area-inset-left))}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:max(var(--offset),env(safe-area-inset-top))}[data-sonner-toaster][data-y-position=bottom]{bottom:max(var(--offset),env(safe-area-inset-bottom))}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;will-change:transform,opacity,height;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast] [data-description]{font-weight:400;line-height:1.4;color:inherit}[data-sonner-toast] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast] [data-icon]{display:flex;height:20px;width:20px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast] [data-icon]>*{flex-shrink:0}[data-sonner-toast] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:0;transition:opacity .4s,box-shadow .2s;z-index:100}[data-sonner-toast] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toast][data-theme=dark] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;opacity:0;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast]:hover [data-close-button]{opacity:1}[data-sonner-toast]:focus [data-close-button]{opacity:1}[data-sonner-toast]:focus-within [data-close-button]{opacity:1}[data-sonner-toast]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]:before{content:'';position:absolute;left:0;right:0;height:100%}[data-sonner-toast][data-y-position=top][data-swiping=true]:before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]:before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]:before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast]:after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]:before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount,0));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{from{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;--mobile-offset:16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - 32px)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 91%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 91%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 91%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 100%, 12%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 12%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-rich-colors=true] [data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{display:none;transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}");let v_=1;class kve{constructor(){xr(this,"subscribers"),xr(this,"toasts"),xr(this,"subscribe",t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)})),xr(this,"publish",t=>{this.subscribers.forEach(n=>n(t))}),xr(this,"addToast",t=>{this.publish(t),this.toasts=[...this.toasts,t]}),xr(this,"create",t=>{var n;const{message:r,...i}=t,s=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:v_++,o=this.toasts.findIndex(l=>l.id===s),a=t.dismissible===void 0?!0:t.dismissible;return o!==-1?this.toasts=this.toasts.map(l=>l.id===s?(this.publish({...l,...t,id:s,title:r}),{...l,...t,id:s,dismissible:a,title:r}):l):this.addToast({title:r,...i,dismissible:a,id:s}),s}),xr(this,"dismiss",t=>(t||this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),this.subscribers.forEach(n=>n({id:t,dismiss:!0})),t)),xr(this,"message",(t,n)=>this.create({...n,message:t})),xr(this,"error",(t,n)=>this.create({...n,type:"error",message:t})),xr(this,"success",(t,n)=>this.create({...n,type:"success",message:t})),xr(this,"info",(t,n)=>this.create({...n,type:"info",message:t})),xr(this,"warning",(t,n)=>this.create({...n,type:"warning",message:t})),xr(this,"loading",(t,n)=>this.create({...n,type:"loading",message:t})),xr(this,"promise",(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading}));const i=t instanceof Promise?t:t();let s=r!==void 0;return i.then(o=>{if(n.success!==void 0){s=!1;const a=typeof n.success=="function"?n.success(o):n.success;this.create({id:r,type:"success",message:a})}}).catch(o=>{if(n.error!==void 0){s=!1;const a=typeof n.error=="function"?n.error(o):n.error;this.create({id:r,type:"error",message:a})}}).finally(()=>{var o;s&&(this.dismiss(r),r=void 0),(o=n.finally)==null||o.call(n)}),r}),xr(this,"custom",(t,n)=>{const r=(n==null?void 0:n.id)||v_++;return this.publish({...n,id:r,title:t}),r}),this.subscribers=[],this.toasts=[]}}const ji=new kve,Ave=(e,t)=>{const n=(t==null?void 0:t.id)||v_++;return ji.publish({title:e,...t,id:n}),n},xve=Ave,_m=Object.assign(xve,{success:ji.success,info:ji.info,warning:ji.warning,error:ji.error,custom:ji.custom,message:ji.message,promise:ji.promise,dismiss:ji.dismiss,loading:ji.loading}),Nve=["data-visible"],Cve={className:"sonner-spinner"},Ove=Se({__name:"Loader",props:{visible:Boolean},setup(e){const t=Array(12).fill(0);return(n,r)=>(C(),V("div",{className:"sonner-loading-wrapper","data-visible":e.visible},[ae("div",Cve,[(C(!0),V(De,null,mt(D(t),i=>(C(),V("div",{key:`spinner-bar-${i}`,className:"sonner-loading-bar"}))),128))])],8,Nve))}}),ip=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},Dve={},Ive={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Rve=ae("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z","clip-rule":"evenodd"},null,-1),Pve=[Rve];function Lve(e,t){return C(),V("svg",Ive,Pve)}const Mve=ip(Dve,[["render",Lve]]),$ve={},Fve={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Bve=ae("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z","clip-rule":"evenodd"},null,-1),Uve=[Bve];function Hve(e,t){return C(),V("svg",Fve,Uve)}const jve=ip($ve,[["render",Hve]]),Vve={},qve={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},zve=ae("path",{"fill-rule":"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z","clip-rule":"evenodd"},null,-1),Kve=[zve];function Wve(e,t){return C(),V("svg",qve,Kve)}const Gve=ip(Vve,[["render",Wve]]),Yve={},Xve={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Qve=ae("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z","clip-rule":"evenodd"},null,-1),Jve=[Qve];function Zve(e,t){return C(),V("svg",Xve,Jve)}const e1e=ip(Yve,[["render",Zve]]),t1e={},n1e={xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stoke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},r1e=ae("line",{x1:"18",y1:"6",x2:"6",y2:"18"},null,-1),i1e=ae("line",{x1:"6",y1:"6",x2:"18",y2:"18"},null,-1),s1e=[r1e,i1e];function o1e(e,t){return C(),V("svg",n1e,s1e)}const a1e=ip(t1e,[["render",o1e]]),l1e=["aria-live","data-styled","data-mounted","data-promise","data-removed","data-visible","data-y-position","data-x-position","data-index","data-front","data-swiping","data-type","data-invert","data-swipe-out","data-expanded"],c1e=["data-disabled"],u1e={key:1,"data-icon":""},d1e={"data-content":""},f1e={"data-title":""},h1e=4e3,p1e=14,m1e=20,g1e=200,b1e=Se({__name:"Toast",props:{toast:{},toasts:{},index:{},expanded:{type:Boolean},invert:{type:Boolean},heights:{},position:{},visibleToasts:{},expandByDefault:{type:Boolean},closeButton:{type:Boolean},interacting:{type:Boolean},duration:{},descriptionClass:{}},emits:["update:heights","removeToast"],setup(e,{emit:t}){const n=q=>!!q.promise,r=t,i=e,s=de(!1),o=de(!1),a=de(!1),l=de(!1),c=de(null),u=de(0),d=de(0),f=de(null),h=de(null),p=ue(()=>i.index===0),m=ue(()=>i.index+1<=i.visibleToasts),g=ue(()=>i.toast.type),b=ue(()=>i.toast.dismissible),v=i.toast.className||"",y=i.toast.descriptionClassName||"",E=i.toast.style||{},T=ue(()=>i.heights.findIndex(q=>q.toastId===i.toast.id)||0),w=ue(()=>i.toast.duration||i.duration||h1e),S=de(0),k=de(0),x=de(w.value),A=de(0),M=de(null),R=ue(()=>i.position.split("-")),te=ue(()=>R.value[0]),ee=ue(()=>R.value[1]),oe=ue(()=>i.heights.reduce((q,ve,Ce)=>Ce>=T.value?q:q+ve.height,0)),pe=ue(()=>i.toast.invert||i.invert),G=ue(()=>c.value==="loading"),Q=ue(()=>c.value??(i.toast.type||null)),fe=ue(()=>!n(i.toast)&&typeof i.toast.title=="object"),O=ue(()=>{if(!n(i.toast))return null;switch(c.value){case"loading":return i.toast.loading;case"success":return typeof i.toast.success=="function"?f.value:i.toast.success;case"error":return typeof i.toast.error=="function"?f.value:i.toast.error;default:return null}});Rt(()=>s.value=!0),Bn(()=>{k.value=T.value*p1e+oe.value});function B(){var q,ve;(!G.value||b.value)&&(J(),(ve=(q=i.toast).onDismiss)==null||ve.call(q,i.toast))}function J(){o.value=!0,u.value=k.value;const q=i.heights.filter(ve=>ve.toastId!==i.toast.id);r("update:heights",q),setTimeout(()=>{r("removeToast",i.toast)},g1e)}const N=q=>{G||(u.value=k.value,q.target.setPointerCapture(q.pointerId),q.target.tagName!=="BUTTON"&&(a.value=!0,M.value={x:q.clientX,y:q.clientY}))},P=q=>{var ve,Ce,We,Ke;if(l.value)return;M.value=null;const rt=Number(((ve=h.value)==null?void 0:ve.style.getPropertyValue("--swipe-amount").replace("px",""))||0);if(Math.abs(rt)>=m1e){u.value=k.value,(We=(Ce=i.toast).onDismiss)==null||We.call(Ce,i.toast),J(),l.value=!0;return}(Ke=h.value)==null||Ke.style.setProperty("--swipe-amount","0px"),a.value=!0},H=q=>{var ve;if(!M.value)return;const Ce=q.clientY-M.value.y,We=q.clientX-M.value.x,Ke=(R.value[0]==="top"?Math.min:Math.max)(0,Ce),rt=q.pointerType==="touch"?10:2;Math.abs(Ke)>rt?(ve=h.value)==null||ve.style.setProperty("--swipe-amount",`${Ce}px`):Math.abs(We)>rt&&(M.value=null)};return Bn(q=>{if(i.toast.promise&&c.value==="loading"||i.toast.duration===1/0)return;let ve;const Ce=()=>{if(A.value<S.value){const Ke=new Date().getTime()-S.value;x.value=x.value-Ke}A.value=new Date().getTime()},We=()=>{S.value=new Date().getTime(),ve=setTimeout(()=>{var Ke,rt;(rt=(Ke=i.toast).onAutoClose)==null||rt.call(Ke,i.toast),J()},x.value)};i.expanded||i.interacting?Ce():We(),q(()=>{clearTimeout(ve)})}),Rt(()=>{if(h.value){const q=h.value.getBoundingClientRect().height;d.value=q;const ve=[{toastId:i.toast.id,height:q},...i.heights];r("update:heights",ve)}}),In(()=>{if(h.value){const q=i.heights.filter(ve=>ve.toastId!==i.toast.id);r("update:heights",q)}}),Bn(()=>{i.toast.delete&&J()}),(q,ve)=>(C(),V("li",{"aria-live":q.toast.important?"assertive":"polite","aria-atomic":"",role:"status",tabindex:"0",ref_key:"toastRef",ref:h,"data-sonner-toast":"",class:ct(D(v)),"data-styled":!fe.value,"data-mounted":s.value,"data-promise":!!q.toast.promise,"data-removed":o.value,"data-visible":m.value,"data-y-position":te.value,"data-x-position":ee.value,"data-index":i.index,"data-front":p.value,"data-swiping":a.value,"data-type":c.value!=="loading"&&c.value?c.value:g.value,"data-invert":pe.value,"data-swipe-out":l.value,"data-expanded":!!(i.expanded||i.expandByDefault&&s.value),style:_r({"--index":i.index,"--toasts-before":i.index,"--z-index":q.toasts.length-i.index,"--offset":`${o.value?u.value:k.value}px`,"--initial-height":i.expandByDefault?"auto":`${d.value}px`,...D(E)}),onPointerdown:N,onPointerup:P,onPointermove:H},[i.closeButton&&!fe.value?(C(),V("button",{key:0,"aria-label":"Close toast","data-close-button":"","data-disabled":G.value,onClick:B},[Z(a1e)],8,c1e)):be("",!0),g.value||q.toast.icon||q.toast.promise?(C(),V("div",u1e,[typeof q.toast.promise=="function"||g.value==="loading"?(C(),he(Ove,{key:0,visible:c.value==="loading"||g.value==="loading"},null,8,["visible"])):be("",!0),Q.value==="success"?(C(),he(Mve,{key:1})):Q.value==="info"?(C(),he(jve,{key:2})):Q.value==="warning"?(C(),he(Gve,{key:3})):Q.value==="error"?(C(),he(e1e,{key:4})):be("",!0)])):be("",!0),ae("div",d1e,[ae("div",f1e,[typeof q.toast.title=="string"?(C(),V(De,{key:0},[Pe(Ue(q.toast.title),1)],64)):q.toast.title===void 0||q.toast.title===null?(C(),V(De,{key:1},[Pe(Ue(O.value),1)],64)):fe.value?(C(),he(Di(q.toast.title),{key:2,onCloseToast:ve[0]||(ve[0]=()=>{var Ce;J(),(Ce=q.toast.cancel)!=null&&Ce.onClick&&q.toast.cancel.onClick()})},null,32)):be("",!0)]),q.toast.description?(C(),V("div",{key:0,"data-description":"",class:ct(q.descriptionClass+D(y))},Ue(q.toast.description),3)):be("",!0)]),q.toast.cancel?(C(),V("button",{key:2,"data-button":"","data-cancel":"",onClick:ve[1]||(ve[1]=()=>{var Ce;J(),(Ce=q.toast.cancel)!=null&&Ce.onClick&&q.toast.cancel.onClick()})},Ue(q.toast.cancel.label),1)):be("",!0),q.toast.action?(C(),V("button",{key:3,"data-button":"",onClick:ve[2]||(ve[2]=()=>{var Ce;J(),(Ce=q.toast.action)==null||Ce.onClick()})},Ue(q.toast.action.label),1)):be("",!0)],46,l1e))}}),y1e=["aria-label"],v1e=["dir","data-theme","data-rich-colors","data-y-position","data-x-position"],E1e=3,l2="32px",_1e=4e3,w1e=356,c2=14,T1e=typeof window<"u"&&typeof document<"u",S1e=Se({name:"Toaster",inheritAttrs:!1,__name:"Toaster",props:{invert:{type:Boolean,default:!1},theme:{default:"light"},position:{default:"bottom-right"},hotkey:{default:()=>["altKey","KeyT"]},richColors:{type:Boolean,default:!1},expand:{type:Boolean,default:!1},duration:{default:_1e},gap:{default:c2},visibleToasts:{default:E1e},closeButton:{type:Boolean,default:!1},toastOptions:{default:()=>({})},className:{default:""},style:{default:()=>({})},offset:{default:l2},dir:{default:"auto"}},setup(e){const t=e,n=nc(),r=de([]),i=de([]),s=de(!1),o=de(!1),a=de(t.theme!=="system"?t.theme:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),l=ue(()=>t.position.split("-")),c=de(null),u=t.hotkey.join("+").replace(/Key/g,"").replace(/Digit/g,"");function d(h){r.value=r.value.filter(({id:p})=>p!==h.id)}function f(){if(typeof window>"u")return"ltr";const h=document.documentElement.getAttribute("dir");return h==="auto"||!h?window.getComputedStyle(document.documentElement).direction:h}return Rt(()=>{const h=ji.subscribe(p=>{if(p.dismiss){r.value=r.value.map(m=>m.id===p.id?{...m,delete:!0}:m);return}Kn(()=>{const m=r.value.findIndex(g=>g.id===p.id);m!==-1?r.value.splice(m,1,p):r.value=[p,...r.value]})});In(()=>{h()})}),dt(()=>t.theme,h=>{if(h!=="system"){a.value=h;return}h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?a.value="dark":a.value="light"),!(typeof window>"u")&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:p})=>{p?a.value="dark":a.value="light"})}),Bn(()=>{r.value.length<=1&&(s.value=!1)}),Bn(h=>{function p(m){var g,b;t.hotkey.every(v=>m[v]||m.code===v)&&(s.value=!0,(g=c.value)==null||g.focus()),m.code==="Escape"&&(document.activeElement===c.value||(b=c.value)!=null&&b.contains(document.activeElement))&&(s.value=!1)}T1e&&(document.addEventListener("keydown",p),h(()=>{document.removeEventListener("keydown",p)}))}),(h,p)=>{var m;return C(),V("section",{"aria-label":`Notifications ${D(u)}`,tabIndex:-1},[ae("ol",{ref_key:"listRef",ref:c,"data-sonner-toaster":"",dir:h.dir==="auto"?f():h.dir,tabIndex:-1,"data-theme":h.theme,"data-rich-colors":h.richColors,"data-y-position":l.value[0],"data-x-position":l.value[1],style:_r({"--front-toast-height":`${(m=i.value[0])==null?void 0:m.height}px`,"--offset":typeof h.offset=="number"?`${h.offset}px`:h.offset||l2,"--width":`${w1e}px`,"--gap":`${c2}px`,...D(n).style}),onMouseenter:p[1]||(p[1]=g=>s.value=!0),onMousemove:p[2]||(p[2]=g=>s.value=!0),onMouseleave:p[3]||(p[3]=()=>{o.value||(s.value=!1)}),onPointerdown:p[4]||(p[4]=g=>o.value=!1),onPointerup:p[5]||(p[5]=g=>o.value=!1)},[(C(!0),V(De,null,mt(r.value,(g,b)=>{var v,y,E,T;return C(),he(b1e,{key:g.id,index:b,toast:g,duration:((v=h.toastOptions)==null?void 0:v.duration)??h.duration,className:(y=h.toastOptions)==null?void 0:y.className,descriptionClassName:(E=h.toastOptions)==null?void 0:E.descriptionClassName,invert:h.invert,visibleToasts:h.visibleToasts,closeButton:h.closeButton,interacting:o.value,position:h.position,style:_r((T=h.toastOptions)==null?void 0:T.style),toasts:r.value,expandByDefault:h.expand,gap:h.gap,expanded:s.value,heights:i.value,"onUpdate:heights":p[0]||(p[0]=w=>i.value=w),onRemoveToast:d},null,8,["index","toast","duration","className","descriptionClassName","invert","visibleToasts","closeButton","interacting","position","style","toasts","expandByDefault","gap","expanded","heights"])}),128))],44,v1e)],8,y1e)}}}),gB={toast:()=>null};function k1e(e){gB.toast=e}function bB(){return{initializeToasts:k1e,toast:(e,t="info",n={timeout:3e3})=>{gB.toast(e,t,n)}}}const A1e=Se({__name:"ScalarToasts",setup(e){const t=de(!1);Rt(()=>t.value=!0);const n={success:_m.success,error:_m.error,warn:_m.warning,info:_m},{initializeToasts:r}=bB();return r((i,s="info",o={})=>{(n[s]||n.info)(i,{duration:o.timeout||3e3})}),(i,s)=>t.value?(C(),he(D(S1e),{key:0,toastOptions:{className:"toaster"}})):be("",!0)}}),cd=()=>{const{toast:e}=bB();return{copyToClipboard:t=>{navigator.clipboard.writeText(t).then(()=>{e("Copied to the clipboard","info")})}}},Ho=de(!1);function x1e(e){var t;const n=()=>{var s,o;const a=typeof window<"u"?(s=window.localStorage)==null?void 0:s.getItem("isDark"):null;return typeof a=="string"?!!JSON.parse(a):!!(typeof window<"u"&&(o=window==null?void 0:window.matchMedia("(prefers-color-scheme: dark)"))!=null&&o.matches)},r=()=>{var s;Ho.value=!Ho.value,typeof window<"u"&&((s=window==null?void 0:window.localStorage)==null||s.setItem("isDark",JSON.stringify(Ho.value)))};function i(s){var o;Ho.value=s,typeof window<"u"&&((o=window==null?void 0:window.localStorage)==null||o.setItem("isDark",JSON.stringify(Ho.value)))}return Ho.value=(typeof window>"u"?null:JSON.parse(((t=window.localStorage)==null?void 0:t.getItem("isDark"))||"null"))??e??n(),dt(Ho,s=>{typeof document>"u"||(document.body.classList.toggle("dark-mode",s),document.body.classList.toggle("light-mode",!s))},{immediate:!0}),{isDark:Ho,toggleDarkMode:r,setDarkMode:i}}const u2="https://api.scalar.com/request-proxy",wm="https://proxy.scalar.com",N1e="http://localhost:5051";function C1e(e){dt(()=>e,()=>{var t;e.proxy===u2?(console.warn(`[DEPRECATED] Warning: configuration.proxy points to our old proxy (${u2}).`),console.warn(`[DEPRECATED] We are overwriting the value and use the new proxy URL (${wm}) instead.`),e.proxy=wm,console.warn(`[DEPRECATED] Action Required: You should manually update your configuration to use the new URL (${wm}). Read more: https://github.com/scalar/scalar`)):(t=e.proxy)!=null&&t.length&&e.proxy!==wm&&e.proxy!==N1e&&(console.warn(`[DEPRECATED] Warning: configuration.proxy points to a custom proxy (${e==null?void 0:e.proxy}).`),console.warn("[DEPRECATED] Action Required: You need to use our new proxy (written in Go). Read more: https://github.com/scalar/scalar/tree/main/examples/proxy-server"))},{immediate:!0})}const O1e={node:["unirest"]},E_=de({...O1e});function D1e(e,t){return e.flatMap(n=>{var r;return Array.isArray(t.value)?(n.clients=n.clients.filter(i=>!t.value.includes(i.key)),[n]):t.value[n.key]===!0?[]:(Array.isArray(t.value[n.key])&&(n.clients=n.clients.filter(i=>!t.value[n.key].includes(i.key))),(r=n==null?void 0:n.clients)!=null&&r.length?[n]:[])})}const I1e=ue(()=>{var e;const t=vW();return(e=t.find(n=>n.key==="node"))==null||e.clients.unshift({description:"An HTTP/1.1 client, written from scratch for Node.js.",key:"undici",link:"https://github.com/nodejs/undici",title:"undici"}),D1e(t,E_)});function sp(){return{availableTargets:I1e,excludedClients:Ru(E_),setExcludedClients:e=>E_.value=e}}const XS=de(zu.hash??""),a0=de(),R1e=de(!1),P1e=e=>e.slug?`description/${e.slug}`:"",yB=e=>{var t;if(!a0.value)return"";const n=new RegExp("^"+((t=a0.value)==null?void 0:t.basePath)+"/?");return decodeURIComponent(e.replace(n,""))},L1e=(e,t)=>{if(!e)return"webhooks";const n=eb(e),r=encodeURIComponent(n);return`webhook/${t}/${r}`},M1e=e=>{if(!e)return"models";const t=eb(e);return`model/${encodeURIComponent(t)}`},$1e=(e,t)=>`${vB(t)}/${e.httpVerb}${e.path}`,vB=({name:e})=>{const t=eb(e);return`tag/${encodeURIComponent(t)}`},F1e=(e=XS.value)=>{var t;const n=(t=e.match(/(tag\/[^/]+)/))==null?void 0:t[0],r=e.startsWith("model")?"models":"";return n??r},B1e=()=>{XS.value=a0.value?yB(window.location.pathname):decodeURIComponent(window.location.hash.replace(/^#/,""))},Tr=()=>({hash:XS,getWebhookId:L1e,getModelId:M1e,getHeadingId:P1e,getOperationId:$1e,getPathRoutingId:yB,getSectionId:F1e,getTagId:vB,isIntersectionEnabled:R1e,pathRouting:a0,updateHash:B1e});function QS(e){return{parameterMap:ue(()=>{var t;const n=((t=e.operation.information)==null?void 0:t.parameters)??[],r={path:[],query:[],header:[],body:[],formData:[]};return e.operation.pathParameters&&e.operation.pathParameters.forEach(i=>{i.in==="path"?r.path.push(i):i.in==="query"?r.query.push(i):i.in==="header"?r.header.push(i):i.in==="body"?r.body.push(i):i.in==="formData"&&r.formData.push(i)}),n&&n.forEach(i=>{i.in==="path"?r.path.push(i):i.in==="query"?r.query.push(i):i.in==="header"?r.header.push(i):i.in==="body"?r.body.push(i):i.in==="formData"&&r.formData.push(i)}),r})}}const U1e=async({url:e,content:t},n)=>{if(e)return Zue(e)?await UN(e,n):await UN(e);const r=typeof t=="function"?t():t;if(typeof r=="string")return r;if(typeof r=="object")return Jf(r)};function H1e({specConfig:e,proxy:t}){const n=de(""),r=or(nu()),i=de(null);function s(o){return o?yve(o).then(a=>{i.value=null,Object.assign(r,{servers:[],...a})}).catch(a=>{i.value=a.toString()}):Object.assign(r,nu())}return dt(()=>fg(e),async o=>{var a;if(o){const l=(a=await U1e(o,fg(t)))==null?void 0:a.trim();typeof l=="string"&&(n.value=l)}},{immediate:!0,deep:!0}),dt(n,()=>{s(n.value)}),{rawSpec:n,parsedSpec:r,specErrors:i}}function JS(e){return{responses:ue(()=>{if(!e.information)return[];const{responses:t}=e.information,n=[];return t&&Object.keys(t).forEach(r=>{n.push({name:r,description:t[r].description})}),n})}}const{getHeadingId:d2,getModelId:f2,getOperationId:h2,getSectionId:j1e,getTagId:EB,getWebhookId:Hv,hash:__}=Tr(),jn=de(void 0);function V1e(e){return jn.value=e}const _B=de(!1),l0=or(zu["useSidebarContent-collapsedSidebarItems"]??{});function q1e(e){l0[e]=!l0[e]}function jv(e,t){l0[e]=t}const c0=de([]),z1e=async e=>{const t=await Xg(e),n=UT(t);return t.filter(r=>r.depth===n||r.depth===n+1)},wB=ue(()=>{var e,t,n,r,i,s,o,a,l,c;const{state:u}=pb(),d={},{openApi:{globalSecurity:f}}=fT(),h=[];let p=null;c0.value.forEach(E=>{var T;E.depth===UT(c0.value)?(p={id:d2(E),title:E.value,show:!u.showApiClient,children:[]},h.push(p)):p&&((T=p.children)==null||T.push({id:d2(E),title:E.value,show:!u.showApiClient}))});const m=(t=(e=jn.value)==null?void 0:e.tags)==null?void 0:t[0],g=m&&(E=>(E==null?void 0:E.length)!==1||E[0].name!=="default"||E[0].description!=="")((n=jn.value)==null?void 0:n.tags)?(i=(r=jn.value)==null?void 0:r.tags)==null?void 0:i.filter(E=>{var T;return((T=E.operations)==null?void 0:T.length)>0}).map(E=>{var T;return{id:EB(E),title:E.name,displayTitle:E["x-displayName"]??E.name,show:!0,children:(T=E.operations)==null?void 0:T.map(w=>{var S;const k=h2(w,E),x=w.name??w.path;return d[k]=x,{id:k,title:x,httpVerb:w.httpVerb,deprecated:((S=w.information)==null?void 0:S.deprecated)??!1,show:!0,select:()=>{u.showApiClient&&QE(w,f)}}})}}):(s=m==null?void 0:m.operations)==null?void 0:s.map(E=>{var T;const w=h2(E,m),S=E.name??E.path;return d[w]=S,{id:w,title:S,httpVerb:E.httpVerb,deprecated:((T=E.information)==null?void 0:T.deprecated)??!1,show:!0,select:()=>{u.showApiClient&&QE(E,f)}}}),b=vF(jn.value)&&!_B.value?[{id:f2(),title:"Models",show:!u.showApiClient,children:Object.keys(xs(jn.value)??{}).map(E=>{var T;const w=f2(E);return d[w]=E,{id:w,title:((T=xs(jn.value))==null?void 0:T[E]).title??E,show:!u.showApiClient}})}]:[],v=(o=jn.value)!=null&&o["x-tagGroups"]?(l=(a=jn.value)==null?void 0:a["x-tagGroups"])==null?void 0:l.map(E=>{const T=[];return E.tags.map(w=>{if(w==="models"&&b.length>0)T.push(b[0]);else{const S=g==null?void 0:g.find(k=>k.title===w);S&&T.push(S)}}),{id:E.name,title:E.name,children:T,show:!0,isGroup:!0}}):void 0,y=Jue(jn.value)?[{id:Hv(),title:"Webhook",show:!u.showApiClient,children:Object.keys(((c=jn.value)==null?void 0:c.webhooks)??{}).map(E=>{var T,w;const S=Hv(E);return d[S]=E,Object.keys(((w=(T=jn.value)==null?void 0:T.webhooks)==null?void 0:w[E])??{}).map(k=>{var x,A,M;return{id:Hv(E,k),title:(M=(A=(x=jn.value)==null?void 0:x.webhooks)==null?void 0:A[E][k])==null?void 0:M.name,httpVerb:k,show:!u.showApiClient}})}).flat()}]:[];return{entries:[...h,...v??g??[],...v?[]:y,...v?[]:b],titles:d}}),K1e=de(!1),W1e=ue(()=>{var e,t;return((t=(e=wB.value)==null?void 0:e.titles)==null?void 0:t[__.value])??""});function as(e){return e!=null&&e.parsedSpec&&(jn.value=e.parsedSpec,dt(()=>{var t,n;return(n=(t=jn.value)==null?void 0:t.tags)==null?void 0:n.length},()=>{var t,n;if(__.value){const r=j1e(__.value);r&&jv(r,!0)}else{const r=(n=(t=jn.value)==null?void 0:t.tags)==null?void 0:n[0];r&&jv(EB(r),!0)}}),dt(()=>{var t,n;return(n=(t=jn.value)==null?void 0:t.info)==null?void 0:n.description},async()=>{var t,n;const r=(n=(t=jn.value)==null?void 0:t.info)==null?void 0:n.description;return r?c0.value=await z1e(r):c0.value=[]})),{breadcrumb:W1e,items:wB,isSidebarOpen:K1e,collapsedSidebarItems:l0,toggleCollapsedSidebarItem:q1e,setCollapsedSidebarItem:jv,hideModels:_B,setParsedSpec:V1e}}const G1e=Se({__name:"SidebarHttpBadge",props:{active:{type:Boolean},method:{}},setup(e){return(t,n)=>(C(),he(D(uc),{class:ct(["sidebar-heading-type",{"sidebar-heading-type-active":t.active}]),method:t.method,property:"--method-color",short:""},null,8,["class","method"]))}}),TB=je(G1e,[["__scopeId","data-v-9e6d2bc7"]]),Y1e=["id"],X1e={key:0,class:"sidebar-heading-chevron"},Q1e=["href"],J1e={class:"sidebar-heading-link-title"},Z1e={key:1,class:"sidebar-heading-link-method"},eEe={key:1,class:"action-menu"},tEe=Se({__name:"SidebarElement",props:{id:{},item:{},isActive:{type:Boolean},hasChildren:{type:Boolean},open:{type:Boolean}},emits:["toggleOpen"],setup(e,{emit:t}){const n=e,r=t,{hash:i,isIntersectionEnabled:s,pathRouting:o}=Tr(),a=async()=>{var u,d;n.hasChildren&&r("toggleOpen"),(d=(u=n.item)==null?void 0:u.select)==null||d.call(u),n.open&&(s.value=!1,await wo(100),s.value=!0)},l=()=>{if(o.value)return o.value.basePath+"/"+n.item.id;{const u=new URL(window.location.href);return u.hash=n.item.id,`${u.pathname}${u.search}${u.hash}`}},c=async u=>{var d,f;if(o.value){u.preventDefault(),n.hasChildren&&r("toggleOpen"),(f=(d=n.item)==null?void 0:d.select)==null||f.call(d),r("toggleOpen"),s.value=!1,i.value=n.item.id;const h=new URL(window.location.href);h.pathname=o.value.basePath+"/"+n.item.id,window.history.pushState({},"",h),o0(n.item.id),await wo(100),s.value=!0}};return(u,d)=>{var f,h;return C(),V("li",{id:u.id,class:"sidebar-group-item"},[ae("div",{class:ct(["sidebar-heading",{"sidebar-group-item__folder":u.hasChildren,active_page:u.isActive,deprecated:u.item.deprecated??!1}]),onClick:a},[u.hasChildren?(C(),V("p",X1e,[Z(D(qh),{class:"toggle-nested-icon",icon:u.open?"ChevronDown":"ChevronRight",label:"Toggle group",size:"xs",onClick:Mu(a,["stop"])},null,8,["icon"]),Pe("   ")])):be("",!0),ae("a",{class:"sidebar-heading-link",href:l(),onClick:c},[(h=(f=u.item)==null?void 0:f.icon)!=null&&h.src?(C(),he(D(pn),{key:0,class:"sidebar-icon",icon:u.item.icon.src},null,8,["icon"])):be("",!0),ae("p",J1e,Ue(u.item.title),1),u.item.httpVerb&&!u.hasChildren?(C(),V("p",Z1e,[Pe("   "),Z(TB,{active:u.isActive,method:u.item.httpVerb},null,8,["active","method"])])):be("",!0)],8,Q1e)],2),u.open?Be(u.$slots,"default",{key:0},void 0,!0):be("",!0),u.$slots["action-menu"]?(C(),V("div",eEe,[Be(u.$slots,"action-menu",{},void 0,!0)])):be("",!0)],8,Y1e)}}}),Tm=je(tEe,[["__scopeId","data-v-97b4b7ac"]]),nEe=Se({__name:"SidebarGroup",props:{level:{}},setup(e){return(t,n)=>(C(),V("ul",{class:"sidebar-group sidebar-indent-nested",style:_r({"--scalar-sidebar-level":t.level})},[Be(t.$slots,"default",{},void 0,!0)],4))}}),Vv=je(nEe,[["__scopeId","data-v-39c84840"]]),rEe={class:"sidebar"},iEe={class:"sidebar-group-title"},sEe=-160,oEe=Se({__name:"Sidebar",props:{parsedSpec:{}},setup(e){const t=e,{hash:n,isIntersectionEnabled:r}=Tr(),{items:i,toggleCollapsedSidebarItem:s,collapsedSidebarItems:o}=as({parsedSpec:t.parsedSpec}),a=de(null),l=de(!0);dt(n,u=>{!r.value||l.value||typeof window>"u"||c(u)});const c=u=>{var d,f,h,p;const m=document.getElementById(`sidebar-${u}`);if(!m||!a.value)return;let g=sEe;m.getAttribute("data-sidebar-type")==="heading"?g+=m.offsetTop+((d=m.getElementsByClassName("sidebar-heading"))==null?void 0:d[0]).offsetHeight:g+=m.offsetTop+(((f=m.parentElement)==null?void 0:f.offsetTop)??0)+(((p=(h=m.parentElement)==null?void 0:h.parentElement)==null?void 0:p.offsetTop)??0),a.value.scrollTo({top:g,behavior:"smooth"})};return Rt(()=>{setTimeout(()=>c(n.value),500),l.value=!1}),(u,d)=>(C(),V("div",rEe,[Be(u.$slots,"sidebar-start",{},void 0,!0),ae("div",{ref_key:"scrollerEl",ref:a,class:"sidebar-pages custom-scroll custom-scroll-self-contain-overflow"},[Z(Vv,{level:0},{default:X(()=>[(C(!0),V(De,null,mt(D(i).entries,f=>(C(),V(De,{key:f.id},[f.isGroup?(C(),V(De,{key:0},[ae("li",iEe,Ue(f.displayTitle??f.title),1),(C(!0),V(De,null,mt(f.children,h=>(C(),he(Tm,{key:h.id,id:`sidebar-${h.id}`,"data-sidebar-type":"heading",hasChildren:h.children&&h.children.length>0,isActive:D(n)===h.id,item:{id:h.id,title:h.displayTitle??h.title,select:h.select,httpVerb:h.httpVerb,deprecated:h.deprecated??!1},open:D(o)[h.id]??!1,onToggleOpen:async()=>{l.value=!0,D(s)(h.id),await D(wo)(100),l.value=!1}},{default:X(()=>{var p;return[h.children&&((p=h.children)==null?void 0:p.length)>0?(C(),he(Vv,{key:0,level:2},{default:X(()=>[(C(!0),V(De,null,mt(h.children,m=>(C(),V(De,{key:m.id},[f.show?(C(),he(Tm,{key:0,id:`sidebar-${m.id}`,isActive:D(n)===m.id,item:{id:m.id,title:m.displayTitle??m.title,select:m.select,httpVerb:m.httpVerb,deprecated:m.deprecated??!1}},null,8,["id","isActive","item"])):be("",!0)],64))),128))]),_:2},1024)):be("",!0)]}),_:2},1032,["id","hasChildren","isActive","item","open","onToggleOpen"]))),128))],64)):(C(),V(De,{key:1},[f.show?(C(),he(Tm,{key:0,id:`sidebar-${f.id}`,"data-sidebar-type":"heading",hasChildren:f.children&&f.children.length>0,isActive:D(n)===f.id,item:{id:f.id,title:f.displayTitle??f.title,select:f.select,httpVerb:f.httpVerb,deprecated:f.deprecated??!1},open:D(o)[f.id]??!1,onToggleOpen:async()=>{l.value=!0,D(s)(f.id),await D(wo)(100),l.value=!1}},{default:X(()=>{var h;return[f.children&&((h=f.children)==null?void 0:h.length)>0?(C(),he(Vv,{key:0,level:1},{default:X(()=>[(C(!0),V(De,null,mt(f.children,p=>(C(),V(De,{key:p.id},[f.show?(C(),he(Tm,{key:0,id:`sidebar-${p.id}`,isActive:D(n)===p.id,item:{id:p.id,title:p.displayTitle??p.title,select:p.select,httpVerb:p.httpVerb,deprecated:p.deprecated??!1}},null,8,["id","isActive","item"])):be("",!0)],64))),128))]),_:2},1024)):be("",!0)]}),_:2},1032,["id","hasChildren","isActive","item","open","onToggleOpen"])):be("",!0)],64))],64))),128))]),_:1})],512),Be(u.$slots,"sidebar-end",{},void 0,!0)]))}}),SB=je(oEe,[["__scopeId","data-v-35ffc745"]]),aEe={key:0,class:"api-client-drawer"},lEe={class:"api-client-container"},cEe={class:"scalar-api-client-height"},uEe={class:"scalar-api-client-states"},dEe={class:"t-doc__sidebar"},fEe=Se({__name:"ApiClientModal",props:{parsedSpec:{},overloadShow:{type:Boolean},proxyUrl:{},theme:{}},emits:["toggleDarkMode"],setup(e){const t=iw(()=>Promise.resolve().then(()=>require("./index-dKzMd2s1-Ct-Q9cj2.cjs")).then(o=>o.ApiClient)),{hideApiClient:n,state:r}=pb(),i=W0("(max-width: 1000px)"),s=de(!1);return(o,a)=>(C(),V(De,null,[D(r).showApiClient||o.overloadShow?(C(),V("div",aEe,[ae("div",lEe,[Be(o.$slots,"header",{},void 0,!0),ae("div",cEe,[Z(D(t),{proxyUrl:o.proxyUrl,showSideBar:s.value,theme:o.theme??"none",withDefaultFonts:!1,onEscapeKeyPress:D(n),onToggleSidebar:a[2]||(a[2]=l=>s.value=!s.value)},{"address-bar-controls":X(()=>[ae("div",uEe,[ae("button",{class:"scalar-api-client-states-button scalar-api-client-states-button__endpoints",type:"button",onClick:a[0]||(a[0]=l=>s.value=!s.value)},[Z(D(pn),{icon:s.value?"SideBarClosed":"SideBarOpen",size:"sm"},null,8,["icon"])]),ae("button",{class:"scalar-api-client-states-button",type:"button",onClick:a[1]||(a[1]=(...l)=>D(n)&&D(n)(...l))},[Z(D(pn),{icon:"Close",size:"sm"})])])]),sidebar:X(()=>[ae("div",dEe,[Ba(Z(D(SB),{parsedSpec:o.parsedSpec},{"sidebar-start":X(()=>[Be(o.$slots,"sidebar-start",{},void 0,!0)]),_:3},8,["parsedSpec"]),[[Ua,!D(i)]])])]),_:3},8,["proxyUrl","showSideBar","theme","onEscapeKeyPress"])])])])):be("",!0),D(r).showApiClient?(C(),V("div",{key:1,class:"api-client-drawer-exit",onClick:a[3]||(a[3]=(...l)=>D(n)&&D(n)(...l))})):be("",!0)],64))}}),hEe=je(fEe,[["__scopeId","data-v-206ad1a1"]]),kB=()=>({targetKey:"shell",clientKey:"curl"}),ku=or(kB());function pEe(){ede(ku,kB())}function AB(e){var t;const{availableTargets:n}=sp();return((t=n.value.find(r=>r.key===e.targetKey))==null?void 0:t.title)??e.targetKey}function xB(e){var t,n;const{availableTargets:r}=sp();return((n=(t=r.value.find(i=>i.key===e.targetKey))==null?void 0:t.clients.find(i=>i.key===e.clientKey))==null?void 0:n.title)??e.clientKey}const mEe=e=>{Object.assign(ku,{...ku,...e})},gEe=ue(()=>AB(ku)),bEe=ue(()=>xB(ku)),ZS=()=>({httpClient:Ru(ku),resetState:pEe,setHttpClient:mEe,httpTargetTitle:gEe,httpClientTitle:bEe,getClientTitle:xB,getTargetTitle:AB}),yEe={key:0},vEe={class:"authentication-header"},EEe={class:"selector"},_Ee={key:0,class:"authentication-content"},wEe=Se({__name:"Authentication",props:{parsedSpec:{}},setup(e){const t=e,{authentication:n,setAuthentication:r}=Ku(),i=ue(()=>{var s,o,a;if(!n.preferredSecurityScheme)return!1;const l=(a=(o=(s=t.parsedSpec)==null?void 0:s.components)==null?void 0:o.securitySchemes)==null?void 0:a[n.preferredSecurityScheme];return!!l&&"type"in l&&!!l.type});return dt(()=>{var s,o;return(o=(s=t.parsedSpec)==null?void 0:s.components)==null?void 0:o.securitySchemes},()=>{var s,o;r({securitySchemes:(o=(s=t.parsedSpec)==null?void 0:s.components)==null?void 0:o.securitySchemes})},{deep:!0,immediate:!0}),So(async()=>{const s=ec();await wo(1),s.payload.data["useGlobalStore-authentication"]=n}),(s,o)=>{var a,l,c,u,d;return D(Que)(s.parsedSpec)?(C(),V("div",yEe,[ae("div",vEe,[ae("div",EEe,[Z(D(gF),{value:(l=(a=s.parsedSpec)==null?void 0:a.components)==null?void 0:l.securitySchemes},null,8,["value"])])]),i.value?(C(),V("div",_Ee,[D(n).preferredSecurityScheme?(C(),he(D(mF),{key:0,value:(d=(u=(c=s.parsedSpec)==null?void 0:c.components)==null?void 0:u.securitySchemes)==null?void 0:d[D(n).preferredSecurityScheme]},null,8,["value"])):be("",!0)])):be("",!0)])):be("",!0)}}}),TEe=je(wEe,[["__scopeId","data-v-3bb0413b"]]),SEe=["innerHTML"],kEe=Se({__name:"MarkdownRenderer",props:{value:{},withImages:{type:Boolean,default:!1}},setup(e){const t=e,n=de(""),r=t.withImages?[]:["img","picture"];return dt(()=>t.value,async()=>{var i;const s=await hP().use(XR).use(Pne).use(gre,{allowDangerousHtml:!0}).use(tee).use(dee,{...Ig,tagNames:(i=Ig.tagNames)==null?void 0:i.filter(o=>!r.includes(o))}).use(LX,{detect:!0}).use(jW,{target:"_blank"}).use(hG).use(nte).process(t.value);n.value=String(s.value)},{immediate:!0}),So(async()=>await wo(1)),(i,s)=>(C(),V("div",{class:"markdown",innerHTML:n.value},null,8,SEe))}}),fi=je(kEe,[["__scopeId","data-v-bcae22de"]]),AEe=["title","innerHTML"],xEe=Se({__name:"ServerItem",props:{value:{},variables:{}},setup(e){const t=e,{copyToClipboard:n}=cd(),r=ue(()=>{var i;const s=(((i=t.value)==null?void 0:i.url)??"").replace(/(<([^>]+)>)/gi,"");return yF(s,o=>{var a;const l=(a=t.variables)==null?void 0:a.find(c=>c.name===o);return`<span class="base-url-variable">${((l==null?void 0:l.value)??"")!==""?l==null?void 0:l.value:`{${o}}`}</span>`})});return(i,s)=>i.value?(C(),V("a",{key:0,class:"base-url",title:i.value.description,onClick:s[0]||(s[0]=o=>D(n)(i.value.url)),innerHTML:r.value},null,8,AEe)):be("",!0)}}),NEe=je(xEe,[["__scopeId","data-v-8df90bd1"]]),CEe={key:0},OEe=["for"],DEe=["id","value","onInput"],IEe=["value"],REe={class:"input-value"},PEe=["id","value","onInput"],LEe=Se({__name:"ServerVariables",props:{value:{}},setup(e){const{server:t,setServer:n}=zh(),r=(s,o)=>{const a=o.target.value,l=[...t.variables],c=l.findIndex(u=>u.name===s);l[c].value=a,n({variables:l})},i=s=>{const o=t.variables.findIndex(a=>a.name===s);return t.variables[o].value??""};return(s,o)=>s.value?(C(),V("div",CEe,[(C(!0),V(De,null,mt(s.value,a=>(C(),V("div",{key:a.name,class:"input"},[ae("label",{for:`variable-${a.name}`},[ae("code",null,Ue(a.name),1)],8,OEe),a.enum?(C(),V(De,{key:0},[ae("select",{id:`variable-${a.name}`,value:i(a.name),onInput:l=>r(a.name,l)},[(C(!0),V(De,null,mt(a.enum,l=>(C(),V("option",{key:l,value:l},Ue(l),9,IEe))),128))],40,DEe),ae("div",REe,Ue(a.default),1)],64)):(C(),V("input",{key:1,id:`variable-${a.name}`,autocomplete:"off",placeholder:"value",spellcheck:"false",type:"text",value:i(a.name),onInput:l=>r(a.name,l)},null,40,PEe))]))),128))])):be("",!0)}}),MEe=je(LEe,[["__scopeId","data-v-a812e319"]]),$Ee=e=>(lr("data-v-899af270"),e=e(),cr(),e),FEe={key:0},BEe=$Ee(()=>ae("span",{class:"scalar-card-serverlist-title"},"Base URL",-1)),UEe={class:"scalar-card-serverlist"},HEe={class:"scalar-card-serverlist-container"},jEe={class:"server-item"},VEe={class:"server-selector"},qEe=["value"],zEe=["value"],KEe={key:0,muted:""},WEe={class:"description"},GEe=Se({__name:"BaseUrl",setup(e){const{server:t,setServer:n}=zh(),r=de(0);return dt([r,()=>t.servers],()=>{var i,s,o;if(!t.servers.length)return;const a=((i=t.servers[r.value])==null?void 0:i.variables)??{},l=a?Object.keys(a).map(c=>{var u;return{name:c,value:((u=a[c].default)==null?void 0:u.toString())??""}}):[];K$((s=t.servers[r.value])==null?void 0:s.url).filter(c=>!a[c]).forEach(c=>{l.push({name:c,value:""})}),n({selectedServer:r.value,description:(o=t.servers[r.value])==null?void 0:o.description,variables:l})},{immediate:!0,deep:!0}),(i,s)=>D(t).servers.length>0?(C(),V("div",FEe,[BEe,ae("div",UEe,[ae("div",HEe,[ae("div",jEe,[ae("div",VEe,[D(t).servers.length>1?(C(),V("select",{key:0,value:r.value,onInput:s[0]||(s[0]=o=>r.value=parseInt(o.target.value,10))},[(C(!0),V(De,null,mt(D(t).servers,(o,a)=>(C(),V("option",{key:a,value:a},Ue(o.url),9,zEe))),128))],40,qEe)):be("",!0),Z(NEe,{value:D(t).servers[r.value],variables:D(t).variables},null,8,["value","variables"]),D(t).servers.length>1?(C(),he(D(pn),{key:1,icon:"ChevronDown"})):be("",!0)])]),Z(MEe,{value:D(t).variables},null,8,["value"])])]),D(t).description?(C(),V("div",KEe,[ae("div",WEe,[Z(D(fi),{value:D(t).description},null,8,["value"])])])):be("",!0)])):be("",!0)}}),YEe=je(GEe,[["__scopeId","data-v-899af270"]]),NB=e=>(lr("data-v-33a6f59a"),e=e(),cr(),e),XEe=["onClick"],QEe=["value"],JEe=["label"],ZEe=["value"],e_e={class:"client-libraries-icon__more"},t_e={key:1,class:"client-libraries-icon",height:"50",viewBox:"0 0 50 50",width:"50",xmlns:"http://www.w3.org/2000/svg"},n_e=NB(()=>ae("g",{fill:"currentColor","fill-rule":"nonzero"},[ae("path",{d:"M10.71 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M21.13 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M31.55 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0"})],-1)),r_e=[n_e],i_e=NB(()=>ae("span",null,"More",-1)),s_e=Se({__name:"ClientSelector",setup(e){const{httpClient:t,setHttpClient:n,getClientTitle:r,getTargetTitle:i}=ZS(),{availableTargets:s}=sp(),o=de(),a=[{targetKey:"shell",clientKey:"curl"},{targetKey:"ruby",clientKey:"native"},{targetKey:"node",clientKey:"undici"},{targetKey:"php",clientKey:"guzzle"},{targetKey:"python",clientKey:"python3"}].filter(d=>s.value.find(f=>f.key===d.targetKey&&f.clients.find(h=>h.key===d.clientKey))),l=d=>`programming-language-${d}`,c=d=>d.targetKey===t.targetKey&&d.clientKey===t.clientKey,u=d=>a.some(f=>f.targetKey===d.targetKey&&f.clientKey===d.clientKey);return(d,f)=>(C(),V("div",{ref_key:"containerRef",ref:o,class:"client-libraries-content"},[(C(!0),V(De,null,mt(D(a),h=>(C(),V("div",{key:h.clientKey,class:ct(["client-libraries rendered-code-sdks",{"client-libraries__active":c(h)}]),onClick:()=>D(n)(h)},[ae("div",{class:ct(`client-libraries-icon__${h.targetKey}`)},[Z(D(pn),{class:"client-libraries-icon",icon:l(h.targetKey)},null,8,["icon"])],2),ae("span",null,Ue(D(i)(h)),1)],10,XEe))),128)),ae("div",{class:ct(["client-libraries client-libraries__select",{"client-libraries__active":D(t)&&!u(D(t))}])},[ae("select",{class:"language-select",value:JSON.stringify(D(t)),onInput:f[0]||(f[0]=h=>D(n)(JSON.parse(h.target.value)))},[(C(!0),V(De,null,mt(D(s),h=>(C(),V("optgroup",{key:h.key,label:h.title},[(C(!0),V(De,null,mt(h.clients,p=>(C(),V("option",{key:p.key,value:JSON.stringify({targetKey:h.key,clientKey:p.key})},Ue(D(r)({targetKey:h.key,clientKey:p.key})),9,ZEe))),128))],8,JEe))),128))],40,QEe),ae("div",e_e,[D(t)&&!u(D(t))?(C(),V("div",{key:0,class:ct(`client-libraries-icon__${D(t).targetKey}`)},[Z(D(pn),{class:"client-libraries-icon",icon:l(D(t).targetKey)},null,8,["icon"])],2)):(C(),V("svg",t_e,r_e))]),i_e],2)],512))}}),o_e=je(s_e,[["__scopeId","data-v-33a6f59a"]]),a_e=e=>(lr("data-v-a067531c"),e=e(),cr(),e),l_e=a_e(()=>ae("div",{class:"client-libraries-heading"},"Client Libraries",-1)),c_e={class:"selected-client card-footer",muted:""},u_e=Se({__name:"ClientLibraries",setup(e){const{httpTargetTitle:t,httpClientTitle:n}=ZS();return(r,i)=>(C(),V("div",null,[l_e,ae("div",null,[Z(o_e)]),ae("div",c_e,Ue(D(n))+" "+Ue(D(t)),1)]))}}),d_e=je(u_e,[["__scopeId","data-v-a067531c"]]),f_e={},h_e={class:"badge"};function p_e(e,t){return C(),V("div",h_e,[Be(e.$slots,"default",{},void 0,!0)])}const ph=je(f_e,[["render",p_e],["__scopeId","data-v-190574ac"]]),ek=Se({__name:"IntersectionObserver",props:{id:{},is:{}},emits:["intersecting"],setup(e,{emit:t}){const n=e,r=t,i=de(),s=a=>{const l=a.offsetHeight;return`${l/2}px 0px ${l/2}px 0px`},o=a=>a.offsetHeight<window.innerHeight?.8:.5;return Rt(()=>{if(i.value){const a={rootMargin:s(i.value),threshold:o(i.value)};jH(i,([{isIntersecting:l}])=>{l&&n.id&&r("intersecting")},a)}}),(a,l)=>(C(),he(Di(a.is??"div"),{id:a.id,ref_key:"intersectionObserverRef",ref:i},{default:X(()=>[Be(a.$slots,"default")]),_:3},8,["id"]))}}),m_e=Se({__name:"Section",props:{id:{},label:{}},setup(e){const t=e,{getSectionId:n,hash:r,isIntersectionEnabled:i,pathRouting:s}=Tr(),{setCollapsedSidebarItem:o}=as();function a(){var l;if(!t.label||!i.value)return;const c=new URL(window.location.href),u=t.id??"";s.value?c.pathname=s.value.basePath+"/"+u:c.hash=u,r.value=u,window.history.replaceState({},"",c),(l=t.id)!=null&&l.startsWith("model")&&o(n(t.id),!0)}return(l,c)=>(C(),he(ek,{is:"section",id:l.id,class:"section",onIntersecting:a},{default:X(()=>[Be(l.$slots,"default",{},void 0,!0)]),_:3},8,["id"]))}}),ud=je(m_e,[["__scopeId","data-v-0494f9f3"]]),g_e={class:"section-accordion-button-content"},b_e={key:0,class:"section-accordion-button-actions"},y_e={key:0,class:"section-accordion-description"},v_e={class:"section-accordion-content-card"},E_e=Se({__name:"SectionAccordion",props:{id:{},transparent:{type:Boolean}},setup(e){const t=de(),n=HH(t);return(r,i)=>(C(),he(ek,{id:r.id,class:"section-wrapper"},{default:X(()=>[Z(D(j0),{as:"section",class:ct(["section-accordion",{"section-accordion-transparent":r.transparent}])},{default:X(({open:s})=>[Z(D(V0),{ref_key:"button",ref:t,class:"section-accordion-button"},{default:X(()=>[ae("div",g_e,[Be(r.$slots,"title",{},void 0,!0)]),r.$slots.actions?(C(),V("div",b_e,[Be(r.$slots,"actions",{active:D(n)||s},void 0,!0)])):be("",!0),Z(D(pn),{class:"section-accordion-chevron",icon:s?"ChevronDown":"ChevronRight"},null,8,["icon"])]),_:2},1536),Z(D(q0),{class:"section-accordion-content"},{default:X(()=>[r.$slots.description?(C(),V("div",y_e,[Be(r.$slots,"description",{},void 0,!0)])):be("",!0),ae("div",v_e,[Be(r.$slots,"default",{},void 0,!0)])]),_:3})]),_:3},8,["class"])]),_:3},8,["id"]))}}),CB=je(E_e,[["__scopeId","data-v-07cabcb0"]]),__e={},w_e={class:"section-column"};function T_e(e,t){return C(),V("div",w_e,[Be(e.$slots,"default",{},void 0,!0)])}const Au=je(__e,[["render",T_e],["__scopeId","data-v-d64e7382"]]),S_e={},k_e={class:"section-columns"};function A_e(e,t){return C(),V("div",k_e,[Be(e.$slots,"default",{},void 0,!0)])}const tk=je(S_e,[["render",A_e],["__scopeId","data-v-8b9602bf"]]),x_e={},N_e={class:"section-container"};function C_e(e,t){return C(),V("div",N_e,[Be(e.$slots,"default",{},void 0,!0)])}const op=je(x_e,[["render",C_e],["__scopeId","data-v-34b26958"]]),O_e={class:"section-accordion-wrapper"},D_e={class:"section-accordion-title"},I_e=Se({__name:"SectionContainerAccordion",setup(e){return(t,n)=>(C(),V("div",O_e,[Z(D(j0),{as:"div",class:"section-accordion",defaultOpen:""},{default:X(({open:r})=>[Z(D(V0),{class:"section-accordion-button"},{default:X(()=>[Z(D(pn),{class:"section-accordion-chevron",icon:r?"ChevronDown":"ChevronRight"},null,8,["icon"]),ae("div",D_e,[Be(t.$slots,"title",{},void 0,!0)])]),_:2},1024),Z(D(q0),{class:"section-accordion-content"},{default:X(()=>[Be(t.$slots,"default",{},void 0,!0)]),_:3})]),_:3})]))}}),OB=je(I_e,[["__scopeId","data-v-2049975e"]]),R_e=Se({__name:"LoadingSkeleton",props:{lines:{default:1}},setup(e){return(t,n)=>(C(!0),V(De,null,mt([...Array(t.lines).keys()],r=>(C(),V("div",{key:r,class:ct(["loading",{"single-line":t.lines===1}])},null,2))),128))}}),DB=je(R_e,[["__scopeId","data-v-c90b2c46"]]),P_e={class:"section-content"},L_e=Se({__name:"SectionContent",props:{loading:{type:Boolean,default:!1}},setup(e){return(t,n)=>(C(),V("div",P_e,[t.loading?(C(),he(DB,{key:1,lines:8})):Be(t.$slots,"default",{key:0},void 0,!0)]))}}),dd=je(L_e,[["__scopeId","data-v-9735459e"]]),M_e=Se({__name:"SectionHeader",props:{loading:{type:Boolean,default:!1},tight:{type:Boolean,default:!1},level:{default:1}},setup(e){return(t,n)=>t.loading?(C(),he(DB,{key:0})):(C(),he(Di(`h${t.level}`),{key:1,class:ct(["section-header",{tight:t.tight}])},{default:X(()=>[Be(t.$slots,"default",{},void 0,!0)]),_:3},8,["class"]))}}),Va=je(M_e,[["__scopeId","data-v-3bd1b9f0"]]),$_e={key:0,class:"introduction-description"},F_e=Se({__name:"Description",props:{value:{}},setup(e){const t=e,n=`components-Content-Introduction-Description-sections${dT(t.value)}`,r=$H(async()=>{if(!t.value)return[];const c=await Xg(t.value),u=UT(c);return await Promise.all(_ve(t.value,u).map(async d=>({heading:(await Xg(d))[0],content:d})))},zu[n]??[]),{getHeadingId:i,hash:s,isIntersectionEnabled:o,pathRouting:a}=Tr();function l(c=""){if(!o.value)return;const u=new URL(window.location.href);a.value?u.pathname=a.value.basePath+"/"+c:u.hash=c,s.value=c,window.history.replaceState({},"",u)}return So(async()=>{const c=ec();await wo(1),c.payload.data[n]=r.value}),(c,u)=>c.value?(C(),V("div",$_e,[(C(!0),V(De,null,mt(D(r),(d,f)=>(C(),V(De,{key:f},[d.heading?(C(),he(ek,{key:0,id:D(i)(d.heading),class:"introduction-description-heading",onIntersecting:()=>l(D(i)(d.heading))},{default:X(()=>[Z(D(fi),{value:d.content,withImages:""},null,8,["value"])]),_:2},1032,["id","onIntersecting"])):(C(),he(D(fi),{key:1,value:d.content,withImages:""},null,8,["value"]))],64))),128))])):be("",!0)}}),B_e=je(F_e,[["__scopeId","data-v-5e475391"]]),U_e={class:"download"},H_e={class:"download-cta"},j_e=Se({__name:"DownloadSpec",props:{specTitle:{}},setup(e){const t=e,n=ln(pB),r=()=>{mB.emit({id:"",specTitle:t.specTitle})};return(i,s)=>{var o;return C(),V("div",U_e,[ae("div",H_e,[(o=D(n))!=null&&o()?be("",!0):(C(),V("button",{key:0,class:"download-button",type:"button",onClick:r}," Download OpenAPI Spec "))])])}}}),V_e=je(j_e,[["__scopeId","data-v-810904a4"]]),q_e={class:"badges"},z_e={class:"sticky-cards"},K_e=Se({__name:"Introduction",props:{info:{},parsedSpec:{}},setup(e){const t=e,n=new PR,r=ue(()=>t.parsedSpec.openapi??t.parsedSpec.swagger??""),i=ue(()=>n.slug(t.info.title??""));return(s,o)=>(C(),he(D(op),null,{default:X(()=>[Z(D(ud),{class:"introduction-section"},{default:X(()=>[Z(D(dd),{loading:!s.info.description&&!s.info.title},{default:X(()=>[Z(D(tk),null,{default:X(()=>[Z(D(Au),null,{default:X(()=>[ae("div",q_e,[s.info.version?(C(),he(D(ph),{key:0},{default:X(()=>[Pe(Ue(s.info.version),1)]),_:1})):be("",!0),r.value?(C(),he(D(ph),{key:1},{default:X(()=>[Pe(" OAS "+Ue(r.value),1)]),_:1})):be("",!0)]),Z(D(Va),{level:1,loading:!s.info.title,tight:""},{default:X(()=>[Pe(Ue(s.info.title),1)]),_:1},8,["loading"]),Z(V_e,{specTitle:i.value},null,8,["specTitle"]),Z(B_e,{value:s.info.description},null,8,["value"])]),_:1}),s.$slots.aside?(C(),he(D(Au),{key:0},{default:X(()=>[ae("div",z_e,[Be(s.$slots,"aside",{},void 0,!0)])]),_:3})):be("",!0)]),_:3})]),_:3},8,["loading"]),Be(s.$slots,"after",{},void 0,!0)]),_:3})]),_:3}))}}),W_e=je(K_e,[["__scopeId","data-v-30c2e131"]]),G_e=Symbol(),w_=kw(G_e),u0=Se({__name:"Lazy",props:{id:{},isLazy:{type:Boolean,default:!0},lazyTimeout:{default:0}},setup(e){const t=e,n=(i=()=>{})=>{typeof window>"u"||("requestIdleCallback"in window?setTimeout(()=>window.requestIdleCallback(i),t.lazyTimeout):setTimeout(()=>Kn(i),t.lazyTimeout??300))},r=de(!t.isLazy);return t.isLazy?n(()=>{r.value=!0,t.id&&Kn(()=>w_.emit({id:t.id}))}):t.id&&Kn(()=>w_.emit({id:t.id})),(i,s)=>r.value?Be(i.$slots,"default",{key:0}):be("",!0)}}),Y_e={key:0,class:"screenreader-only"},X_e=Se({__name:"ScreenReader",props:{if:{type:Boolean,default:!0}},setup(e){return(t,n)=>t.$props.if?(C(),V("span",Y_e,[Be(t.$slots,"default",{},void 0,!0)])):Be(t.$slots,"default",{key:1},void 0,!0)}}),IB=je(X_e,[["__scopeId","data-v-681ebf2c"]]),Q_e=e=>(lr("data-v-d9801d4e"),e=e(),cr(),e),J_e={class:"label"},Z_e={class:"anchor"},ewe=Q_e(()=>ae("span",null,"​",-1)),twe=Se({__name:"Anchor",props:{id:{}},setup(e){const{copyToClipboard:t}=cd(),n=r=>{const i=new URL(window.location.href);return i.hash=r,i.toString()};return(r,i)=>(C(),V("span",J_e,[Be(r.$slots,"default",{},void 0,!0),ae("span",Z_e,[ewe,ae("button",{class:"anchor-copy",type:"button",onClick:i[0]||(i[0]=Mu(s=>D(t)(n(r.id)),["stop"]))},[Pe(" # "),Z(IB,null,{default:X(()=>[Pe('Copy link to "'),Be(r.$slots,"default",{},void 0,!0),Pe('"')]),_:3})])])]))}}),qa=je(twe,[["__scopeId","data-v-d9801d4e"]]),nwe={},rwe={class:"scalar-card"};function iwe(e,t){return C(),V("div",rwe,[Be(e.$slots,"default",{},void 0,!0)])}const sy=je(nwe,[["render",iwe],["__scopeId","data-v-dcabb131"]]),swe=Se({__name:"CardContent",props:{muted:{type:Boolean},contrast:{type:Boolean},frameless:{type:Boolean},transparent:{type:Boolean},borderless:{type:Boolean}},setup(e){return(t,n)=>(C(),V("div",{class:ct(["scalar-card-content",{"scalar-card--muted":t.muted,"scalar-card--contrast":t.contrast,"scalar-card--frameless":t.frameless,"scalar-card--transparent":t.transparent,"scalar-card--borderless":t.borderless}])},[Be(t.$slots,"default",{},void 0,!0)],2))}}),fd=je(swe,[["__scopeId","data-v-5312c2e0"]]),owe={class:"scalar-card-header-slots"},awe={class:"scalar-card-header-slot scalar-card-header-title"},lwe={class:"scalar-card-header-slot scalar-card-header-actions"},cwe=Se({__name:"CardHeader",props:{muted:{type:Boolean},contrast:{type:Boolean},frameless:{type:Boolean},transparent:{type:Boolean},borderless:{type:Boolean}},setup(e){const t=e;return(n,r)=>(C(),he(fd,ko(t,{class:"scalar-card-header"}),{default:X(()=>[ae("div",owe,[ae("div",awe,[Be(n.$slots,"default",{},void 0,!0)]),ae("div",lwe,[Be(n.$slots,"actions",{},void 0,!0)])])]),_:3},16))}}),oy=je(cwe,[["__scopeId","data-v-bbd0c20a"]]),uwe=Se({__name:"CardFooter",props:{muted:{type:Boolean},contrast:{type:Boolean},frameless:{type:Boolean},transparent:{type:Boolean},borderless:{type:Boolean}},setup(e){const t=e;return(n,r)=>(C(),he(fd,vi(Zr(t)),{default:X(()=>[Be(n.$slots,"default",{},void 0,!0)]),_:3},16))}}),nk=je(uwe,[["__scopeId","data-v-918ab8d6"]]),dwe=Se({__name:"CardTabHeader",emits:["change"],setup(e,{emit:t}){const n=t,r=i=>{n("change",i)};return(i,s)=>(C(),he(oy,{class:"scalar-card-header-tabs"},{actions:X(()=>[Be(i.$slots,"actions",{},void 0,!0)]),default:X(()=>[Z(D(iR),{onChange:r},{default:X(()=>[Z(D(sR),{class:"tab-list custom-scroll"},{default:X(()=>[Be(i.$slots,"default",{},void 0,!0)]),_:3})]),_:3})]),_:3}))}}),fwe=je(dwe,[["__scopeId","data-v-6a91b57c"]]),hwe=Se({__name:"CardTab",setup(e){return(t,n)=>(C(),he(D(oR),{as:"template"},{default:X(({selected:r})=>[ae("button",{class:ct({tab:!0,"tab-selected":r}),type:"button"},[ae("span",null,[Be(t.$slots,"default",{},void 0,!0)])],2)]),_:3}))}}),pwe=je(hwe,[["__scopeId","data-v-f373ecc2"]]),mwe=["value"],gwe=["label"],bwe=["value"],ywe=["value"],rk=Se({__name:"TextSelect",props:{modelValue:{},options:{}},emits:["update:modelValue"],setup(e){return(t,n)=>(C(),V("div",{class:ct(["text-select",t.options.length===1?"text-select--single-option":""])},[ae("span",null,[Be(t.$slots,"default")]),ae("select",{value:t.modelValue,onInput:n[0]||(n[0]=r=>t.$emit("update:modelValue",r.target.value))},[(C(!0),V(De,null,mt(t.options,r=>(C(),V(De,{key:r.value},[r.options?(C(),V("optgroup",{key:0,label:r.label},[(C(!0),V(De,null,mt(r.options,i=>(C(),V("option",{key:i.value,value:i.value},Ue(i.label),9,bwe))),128))],8,gwe)):(C(),V("option",{key:r.value,value:r.value},Ue(r.label),9,ywe))],64))),128))],40,mwe)],2))}}),vwe={class:"request-header"},Ewe=Se({__name:"CustomRequestExamples",props:{operation:{},examples:{}},setup(e){const t=e,n=de(0),r=ue(()=>({C:"c","C#":"csharp",Go:"go",HTML:"html",Java:"java",JavaScript:"javascript",Kotlin:"kotlin","Objective-C":"objc",PowerShell:"powershell",Python:"python",Ruby:"ruby",Shell:"shell",Swift:"swift",TypeScript:"javascript",cURL:"shell"})[t.examples[n.value].lang]??t.examples[n.value].lang),i=ue(()=>t.examples[n.value]);dt(t.examples,()=>{t.examples[n.value]==="undefined"&&(n.value=0)});const{copyToClipboard:s}=cd();return(o,a)=>(C(),he(D(sy),{class:"dark-mode"},{default:X(()=>[Z(D(oy),{muted:""},{actions:X(()=>[Z(rk,{class:"request-client-picker",modelValue:n.value,options:o.examples.map((l,c)=>({value:c.toString(),label:l.label})),"onUpdate:modelValue":a[0]||(a[0]=l=>(n.value=parseInt(l),10))},{default:X(()=>[Pe(Ue(i.value.label),1)]),_:1},8,["modelValue","options"]),ae("button",{class:"copy-button",type:"button",onClick:a[1]||(a[1]=l=>D(s)(i.value.source.trim()))},[Z(D(pn),{icon:"Clipboard",width:"10px"})])]),default:X(()=>[ae("div",vwe,[Z(D(uc),{class:"request-method",method:o.operation.httpVerb},null,8,["method"]),Be(o.$slots,"header",{},void 0,!0)])]),_:3}),Z(D(fd),{borderless:"",class:"request-editor-section custom-scroll",frameless:""},{default:X(()=>[Z(D(eo),{content:i.value.source.trim(),lang:r.value,lineNumbers:""},null,8,["content","lang"])]),_:1}),o.$slots.footer?(C(),he(D(nk),{key:0,class:"scalar-card-footer",contrast:""},{default:X(()=>[Be(o.$slots,"footer",{},void 0,!0)]),_:3})):be("",!0)]),_:3}))}}),_we=je(Ewe,[["__scopeId","data-v-18ba624d"]]),wwe={class:"schema-type"},Twe=["title"],Swe=Se({__name:"SchemaHeading",props:{value:{},name:{}},setup(e){return(t,n)=>{var r,i,s,o,a,l;return C(),V("span",wwe,[ae("span",{class:"schema-type-icon",title:typeof t.value.type=="string"?t.value.type:Array.isArray(t.value.type)?t.value.type.join(" | "):"unkown type"},[t.value.type==="object"?(C(),V(De,{key:0},[Pe(" {} ")],64)):be("",!0),t.value.type==="array"?(C(),V(De,{key:1},[Pe(" [] ")],64)):be("",!0),t.value.enum?(C(),V(De,{key:2},[Pe(" enum ")],64)):be("",!0)],8,Twe),(i=(r=t.value)==null?void 0:r.xml)!=null&&i.name&&((o=(s=t.value)==null?void 0:s.xml)==null?void 0:o.name)!=="##default"?(C(),V(De,{key:0},[Pe(" <"+Ue((l=(a=t.value)==null?void 0:a.xml)==null?void 0:l.name)+" /> ",1)],64)):t.name?(C(),V(De,{key:1},[Pe(Ue(t.name),1)],64)):(C(),V(De,{key:2},[Pe(Ue(t.value.type),1)],64))])}}}),RB=je(Swe,[["__scopeId","data-v-6c5c3c96"]]),kwe={key:0,class:"property-detail-prefix"},Awe={key:1,class:"property-detail-value"},xwe={key:2,class:"property-detail-value"},Nwe=Se({__name:"SchemaPropertyDetail",props:{truncate:{type:Boolean},code:{type:Boolean}},setup(e){return(t,n)=>(C(),V("span",{class:ct(["property-detail",{"property-detail-truncate":t.truncate}])},[t.$slots.prefix?(C(),V("div",kwe,[Be(t.$slots,"prefix",{},void 0,!0),Pe("  ")])):be("",!0),t.code?(C(),V("code",Awe,[Be(t.$slots,"default",{},void 0,!0)])):(C(),V("span",xwe,[Be(t.$slots,"default",{},void 0,!0)]))],2))}}),Bi=je(Nwe,[["__scopeId","data-v-16d94ef5"]]),Cwe={class:"property-heading"},Owe={key:0,class:"property-name"},Dwe={key:1,class:"property-additional"},Iwe={key:2,class:"property-deprecated"},Rwe={key:3,class:"property-required"},Pwe={key:4,class:"property-details"},Lwe={key:5,class:"property-write-only"},Mwe={key:6,class:"property-read-only"},$we=Se({__name:"SchemaPropertyHeading",props:{value:{},enum:{type:Boolean},required:{type:Boolean,default:!1},additional:{type:Boolean}},setup(e){const t=["oneOf","anyOf","allOf","not"];return(n,r)=>{var i,s,o,a;return C(),V("div",Cwe,[n.$slots.name?(C(),V("div",Owe,[Be(n.$slots,"name",{},void 0,!0)])):be("",!0),n.additional?(C(),V("div",Dwe," additional properties ")):be("",!0),(i=n.value)!=null&&i.deprecated?(C(),V("div",Iwe,[Z(D(ph),null,{default:X(()=>[Pe("deprecated")]),_:1})])):be("",!0),n.required?(C(),V("div",Rwe," required ")):be("",!0),(s=n.value)!=null&&s.type?(C(),V("div",Pwe,[n.additional?(C(),he(Bi,{key:0},{prefix:X(()=>[Pe("key:")]),default:X(()=>[Pe(" string ")]),_:1})):be("",!0),Z(Bi,null,Lu({default:X(()=>{var l,c,u;return[(c=(l=n.value)==null?void 0:l.items)!=null&&c.type?(C(),V(De,{key:0},[Pe(Ue(n.value.type)+" "+Ue(n.value.items.type)+"[] ",1)],64)):(C(),V(De,{key:1},[Pe(Ue(Array.isArray(n.value.type)?n.value.type.join(" | "):n.value.type)+" "+Ue((u=n.value)!=null&&u.nullable?" | nullable":""),1)],64)),n.value.minItems||n.value.maxItems?(C(),V(De,{key:2},[Pe(Ue(n.value.minItems)+"…"+Ue(n.value.maxItems),1)],64)):be("",!0)]}),_:2},[n.additional?{name:"prefix",fn:X(()=>[Pe("value:")]),key:"0"}:void 0]),1024),n.value.minLength?(C(),he(Bi,{key:1},{prefix:X(()=>[Pe("min:")]),default:X(()=>[Pe(" "+Ue(n.value.minLength),1)]),_:1})):be("",!0),n.value.maxLength?(C(),he(Bi,{key:2},{prefix:X(()=>[Pe("max:")]),default:X(()=>[Pe(" "+Ue(n.value.maxLength),1)]),_:1})):be("",!0),n.value.uniqueItems?(C(),he(Bi,{key:3},{default:X(()=>[Pe(" unique! ")]),_:1})):be("",!0),n.value.format?(C(),he(Bi,{key:4},{default:X(()=>[Pe(Ue(n.value.format),1)]),_:1})):be("",!0),n.value.minimum?(C(),he(Bi,{key:5},{prefix:X(()=>[Pe("min:")]),default:X(()=>[Pe(" "+Ue(n.value.minimum),1)]),_:1})):be("",!0),n.value.maximum?(C(),he(Bi,{key:6},{prefix:X(()=>[Pe("max:")]),default:X(()=>[Pe(" "+Ue(n.value.maximum),1)]),_:1})):be("",!0),n.value.pattern?(C(),he(Bi,{key:7,code:"",truncate:""},{default:X(()=>[Pe(Ue(n.value.pattern),1)]),_:1})):be("",!0),n.$props.enum?(C(),he(Bi,{key:8},{default:X(()=>[Pe("enum")]),_:1})):be("",!0),n.value.default?(C(),he(Bi,{key:9,truncate:""},{prefix:X(()=>[Pe("default:")]),default:X(()=>[Pe(" "+Ue(n.value.default),1)]),_:1})):be("",!0)])):be("",!0),(o=n.value)!=null&&o.writeOnly?(C(),V("div",Lwe," write-only ")):(a=n.value)!=null&&a.readOnly?(C(),V("div",Mwe," read-only ")):be("",!0),(C(!0),V(De,null,mt(t.filter(l=>{var c,u,d;return((c=n.value)==null?void 0:c[l])||((d=(u=n.value)==null?void 0:u.items)==null?void 0:d[l])}),l=>(C(),he(D(ph),{key:l},{default:X(()=>[Pe(Ue(l),1)]),_:2},1024))),128))])}}}),Fwe=je($we,[["__scopeId","data-v-0b4351f0"]]),Bwe=e=>(lr("data-v-ca3c524d"),e=e(),cr(),e),Uwe={key:0,class:"property-description"},Hwe={key:1,class:"property-description"},jwe={key:2,class:"property-example custom-scroll"},Vwe=Bwe(()=>ae("span",{class:"property-example-label"},"Example",-1)),qwe={class:"property-example-value"},zwe={key:3,class:"property-enum"},Kwe={class:"property-enum-values"},Wwe={key:4,class:"children"},Gwe={key:0,class:"children"},Ywe={key:0,class:"property-rule"},Xwe={key:1,class:"property-rule"},Qwe=Se({__name:"SchemaProperty",props:{value:{},level:{default:0},name:{},required:{type:Boolean,default:!1},compact:{type:Boolean,default:!1},description:{},additional:{type:Boolean}},setup(e){const t={integer:{_default:"Integer numbers.",int32:"Signed 32-bit integers (commonly used integer type).",int64:"Signed 64-bit integers (long type)."},string:{date:"full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21","date-time":"the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z",password:"a hint to UIs to mask the input",byte:"base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",binary:"binary data, used to describe files"}},n=function(o,a){return a!=null&&a.properties||a!=null&&a.additionalProperties?null:o||(a==null?void 0:a.description)||null},r=function(o){return!o||!t[o.type]?null:t[o.type][o.format||"_default"]},i=function(o){var a;return(o==null?void 0:o.enum)||((a=o==null?void 0:o.items)==null?void 0:a.enum)||null},s=["oneOf","anyOf","allOf","not"];return(o,a)=>{var l,c,u,d,f,h,p,m,g;return C(),V("div",{class:ct(["property",[`property--level-${o.level}`,{"property--compact":o.compact,"property--deprecated":(l=o.value)==null?void 0:l.deprecated}]])},[Z(Fwe,{additional:o.additional,enum:!!i(o.value),required:o.required,value:o.value},Lu({_:2},[o.name?{name:"name",fn:X(()=>[Pe(Ue(o.name),1)]),key:"0"}:void 0]),1032,["additional","enum","required","value"]),n(o.description,o.value)?(C(),V("div",Uwe,[Z(D(fi),{value:n(o.description,o.value)},null,8,["value"])])):r(o.value)?(C(),V("div",Hwe,[Z(D(fi),{value:r(o.value)||""},null,8,["value"])])):be("",!0),(c=o.value)!=null&&c.example||(d=(u=o.value)==null?void 0:u.items)!=null&&d.example?(C(),V("div",jwe,[Vwe,ae("code",qwe,Ue(o.value.example||((f=o.value)==null?void 0:f.items.example)),1)])):be("",!0),i(o.value)?(C(),V("div",zwe,[ae("ul",Kwe,[(C(!0),V(De,null,mt(i(o.value),b=>(C(),V("li",{key:b,class:"property-enum-value"},Ue(b),1))),128))])])):be("",!0),((h=o.value)==null?void 0:h.type)==="object"&&((p=o.value)!=null&&p.properties||(m=o.value)!=null&&m.additionalProperties)?(C(),V("div",Wwe,[Z(_l,{compact:o.compact,level:o.level+1,value:o.value},null,8,["compact","level","value"])])):be("",!0),(g=o.value)!=null&&g.items?(C(),V(De,{key:5},[["object"].includes(o.value.items.type)?(C(),V("div",Gwe,[Z(_l,{compact:o.compact,level:o.level+1,value:o.value.items},null,8,["compact","level","value"])])):be("",!0)],64)):be("",!0),(C(),V(De,null,mt(s,b=>{var v,y,E;return C(),V(De,{key:b},[(v=o.value)!=null&&v[b]?(C(),V("div",Ywe,[(C(!0),V(De,null,mt(o.value[b],(T,w)=>(C(),he(_l,{key:w,compact:o.compact,level:o.level+1,value:T},null,8,["compact","level","value"]))),128))])):be("",!0),(E=(y=o.value)==null?void 0:y.items)!=null&&E[b]&&o.level<3?(C(),V("div",Xwe,[(C(!0),V(De,null,mt(o.value.items[b],(T,w)=>(C(),he(_l,{key:w,compact:o.compact,level:o.level+1,value:T},null,8,["compact","level","value"]))),128))])):be("",!0)],64)}),64))],2)}}}),El=je(Qwe,[["__scopeId","data-v-ca3c524d"]]),Jwe=e=>(lr("data-v-7f5d0941"),e=e(),cr(),e),Zwe={key:0,class:"schema-card-description"},eTe=Jwe(()=>ae("polygon",{"fill-rule":"nonzero",points:"14 8 8 8 8 14 6 14 6 8 0 8 0 6 6 6 6 0 8 0 8 6 14 6"},null,-1)),tTe=[eTe],nTe=Se({__name:"Schema",props:{value:{},level:{default:0},name:{},compact:{type:Boolean},noncollapsible:{type:Boolean}},setup(e){const t=e,n=ue(()=>!(t.noncollapsible||t.level===0)),r=i=>t.noncollapsible&&i.stopPropagation();return(i,s)=>typeof i.value=="object"&&Object.keys(i.value).length?(C(),he(D(j0),{key:0,defaultOpen:i.noncollapsible},{default:X(({open:o})=>{var a;return[ae("div",{class:ct(["schema-card",[`schema-card--level-${i.level}`,{"schema-card--compact":i.compact,"schema-card--open":o}]])},[(a=i.value)!=null&&a.description?(C(),V("div",Zwe,[Z(D(fi),{value:i.value.description},null,8,["value"])])):be("",!0),ae("div",{class:ct(["schema-properties",{"schema-properties-open":o}])},[Ba(Z(D(V0),{as:i.noncollapsible?"div":"button",class:ct(["schema-card-title",{"schema-card-title--compact":i.compact}]),style:_r({top:`calc(var(--refs-header-height) + calc(var(--schema-title-height) * ${i.level}))`}),onClickCapture:r},{default:X(()=>{var l,c,u;return[i.compact?(C(),V(De,{key:0},[n.value?(C(),V("svg",{key:0,class:ct(["schema-card-title-icon",{"schema-card-title-icon--open":o}]),fill:"currentColor",height:"14",viewBox:"0 0 14 14",width:"14",xmlns:"http://www.w3.org/2000/svg"},tTe,2)):be("",!0),o?(C(),V(De,{key:1},[Pe(" Hide "+Ue(((l=i.value)==null?void 0:l.title)??"Child Attributes"),1)],64)):(C(),V(De,{key:2},[Pe(" Show "+Ue(((c=i.value)==null?void 0:c.title)??"Child Attributes"),1)],64))],64)):(C(),V(De,{key:1},[n.value?(C(),he(D(pn),{key:0,class:ct(["schema-card-title-icon",{"schema-card-title-icon--open":o}]),icon:"ChevronRight",size:"md"},null,8,["class"])):be("",!0),Z(RB,{name:((u=i.value)==null?void 0:u.title)??i.name,value:i.value},null,8,["name","value"])],64))]}),_:2},1032,["as","class","style"]),[[Ua,!(i.noncollapsible&&i.compact)]]),Z(D(q0),{static:i.noncollapsible},{default:X(()=>{var l;return[i.value.properties||i.value.additionalProperties?(C(),V(De,{key:0},[i.value.properties?(C(!0),V(De,{key:0},mt(Object.keys((l=i.value)==null?void 0:l.properties),c=>{var u;return C(),he(El,{key:c,compact:i.compact,level:i.level,name:c,required:i.value.required&&i.value.required.length&&i.value.required.includes(c),value:(u=i.value.properties)==null?void 0:u[c]},null,8,["compact","level","name","required","value"])}),128)):be("",!0),i.value.additionalProperties?(C(),V(De,{key:1},[i.value.additionalProperties===!0||Object.keys(i.value.additionalProperties).length===0||!i.value.additionalProperties.type?(C(),he(El,{key:0,additional:"",compact:i.compact,level:i.level,noncollapsible:"",value:{type:"any",...i.value.additionalProperties}},null,8,["compact","level","value"])):(C(),he(El,{key:1,additional:"",compact:i.compact,level:i.level,noncollapsible:"",value:i.value.additionalProperties},null,8,["compact","level","value"]))],64)):be("",!0)],64)):(C(),he(El,{key:1,compact:i.compact,level:i.level,name:i.value.name,value:i.value},null,8,["compact","level","name","value"]))]}),_:1},8,["static"])],2)],2)]}),_:1},8,["defaultOpen"])):be("",!0)}}),_l=je(nTe,[["__scopeId","data-v-7f5d0941"]]),rTe={class:"parameter-item"},iTe={class:"parameter-item-container"},sTe=Se({__name:"ParameterItem",props:{parameter:{},showChildren:{type:Boolean,default:!1}},setup(e){return(t,n)=>(C(),V("li",rTe,[ae("div",iTe,[Z(D(El),{compact:"",description:t.parameter.description,level:0,name:t.parameter.name,noncollapsible:t.showChildren,required:t.parameter.required,value:t.parameter.schema},null,8,["description","name","noncollapsible","required","value"])])]))}}),oTe=je(sTe,[["__scopeId","data-v-f70ee55c"]]),aTe={key:0,class:"parameters"},lTe={class:"parameters-title"},cTe={class:"parameter-list"},uTe=Se({__name:"Parameters",props:{parameters:{},showChildren:{type:Boolean,default:!1}},setup(e){return(t,n)=>{var r;return(r=t.parameters)!=null&&r.length?(C(),V("div",aTe,[ae("div",lTe,[Be(t.$slots,"title",{},void 0,!0)]),ae("ul",cTe,[(C(!0),V(De,null,mt(t.parameters,i=>(C(),he(oTe,{key:i.name,parameter:i,showChildren:t.showChildren},null,8,["parameter","showChildren"]))),128))])])):be("",!0)}}}),qi=je(uTe,[["__scopeId","data-v-45fca787"]]),dTe={key:0},fTe={class:"request-body-title"},hTe=["value"],pTe={key:0,class:"request-body-description"},mTe={key:0,class:"request-body-schema"},gTe=Se({__name:"RequestBody",props:{requestBody:{}},setup(e){var t;const n=e,r=ue(()=>{var s;return(s=n.requestBody)!=null&&s.content?Object.keys(n.requestBody.content):[]}),i=de("application/json");return(t=n.requestBody)!=null&&t.content&&r.value.length>0&&(i.value=r.value[0]),(s,o)=>{var a,l,c,u;return n!=null&&n.requestBody?(C(),V("div",dTe,[ae("div",fTe,[Be(s.$slots,"title",{},void 0,!0),ae("div",{class:ct(["request-body-title-select",{"request-body-title-no-select":r.value.length<=1}])},[ae("span",null,Ue(i.value),1),n!=null&&n.requestBody&&r.value.length>1?Ba((C(),V("select",{key:0,"onUpdate:modelValue":o[0]||(o[0]=d=>i.value=d)},[(C(!0),V(De,null,mt((a=n.requestBody)==null?void 0:a.content,(d,f)=>(C(),V("option",{key:f,value:f},Ue(f),9,hTe))),128))],512)),[[gw,i.value]]):be("",!0)],2),n!=null&&n.requestBody.description?(C(),V("div",pTe,[Z(D(fi),{value:n.requestBody.description},null,8,["value"])])):be("",!0)]),(l=n==null?void 0:n.requestBody.content)!=null&&l[i.value]?(C(),V("div",mTe,[Z(D(_l),{compact:"",noncollapsible:"",value:(u=(c=n==null?void 0:n.requestBody.content)==null?void 0:c[i.value])==null?void 0:u.schema},null,8,["value"])])):be("",!0)])):be("",!0)}}}),ik=je(gTe,[["__scopeId","data-v-e095eb63"]]),bTe={class:"endpoint-details"},yTe={class:"endpoint-description"},vTe=Se({__name:"EndpointDetails",props:{operation:{}},setup(e){const t=e,{parameterMap:n}=QS(t),{responses:r}=JS(t.operation);return(i,s)=>{var o,a;return C(),V("div",bTe,[ae("div",yTe,[Z(D(fi),{value:i.operation.description,withImages:""},null,8,["value"])]),Z(qi,{parameters:D(n).path},{title:X(()=>[Pe("Path Parameters")]),_:1},8,["parameters"]),Z(qi,{parameters:D(n).query},{title:X(()=>[Pe("Query Parameters")]),_:1},8,["parameters"]),Z(qi,{parameters:D(n).header},{title:X(()=>[Pe("Headers")]),_:1},8,["parameters"]),Z(qi,{parameters:D(n).body,showChildren:""},{title:X(()=>[Pe("Body Parameters")]),_:1},8,["parameters"]),Z(qi,{parameters:D(n).formData},{title:X(()=>[Pe("Form Data")]),_:1},8,["parameters"]),(o=i.operation.information)!=null&&o.requestBody?(C(),he(ik,{key:0,requestBody:(a=i.operation.information)==null?void 0:a.requestBody},{title:X(()=>[Pe("Body")]),_:1},8,["requestBody"])):be("",!0),Z(qi,{parameters:D(r)},{title:X(()=>[Pe("Responses")]),_:1},8,["parameters"])])}}}),ETe={key:0},_Te=Se({__name:"EndpointPath",props:{path:{},deprecated:{type:Boolean}},setup(e){const t=e,n=i=>i.startsWith("{")&&i.endsWith("}"),r=ue(()=>t.path.split(/({[^}]+})/));return(i,s)=>(C(),V("span",{class:ct(["endpoint-path",{deprecated:i.deprecated}])},[(C(!0),V(De,null,mt(r.value,(o,a)=>(C(),V(De,{key:a},[n(o)?(C(),V("em",ETe,Ue(o),1)):(C(),V(De,{key:1},[Pe(Ue(o),1)],64))],64))),128))],2))}}),T_=je(_Te,[["__scopeId","data-v-a4eadd9b"]]);function ap(e){return e.reduce((t,n)=>(t[n.name]=n.value,t),{})}function wTe(e){return/\s|-/.test(e)}function Fs(e,t=0){let n=[],r=" ".repeat(t),i=" ".repeat(t+2);for(const[s,o]of Object.entries(e)){let a=wTe(s)?`'${s}'`:s;if(Array.isArray(o)){const l=o.map(c=>typeof c=="string"?`'${c}'`:c&&typeof c=="object"?Fs(c,t+2):c).join(`, ${i}`);n.push(`${i}${a}: [${l}]`)}else if(o&&typeof o=="object")n.push(`${i}${a}: ${Fs(o,t+2)}`);else if(typeof o=="string"){let l=`${o}`;if(o.startsWith("JSON.stringify")){const c=o.split(`
377
+ `,s),i===void 0?(n(((r=s==null?void 0:s[0])==null?void 0:r.error)??"Failed to parse the OpenAPI file."),t(Em(nu()))):t(Em(i))}catch(i){n(i)}return t(Em(nu()))}),Em=e=>{let t={};e&&typeof e=="object"?t=structuredClone(e):t=nu(),t.tags||(t.tags=[]),t.paths||(t.paths={});const n={};return Object.keys(t.webhooks??{}).forEach(r=>{var i;Object.keys(((i=t.webhooks)==null?void 0:i[r])??{}).forEach(s=>{var o,a,l;const c=(o=t.webhooks)==null?void 0:o[r][s];(c==null?void 0:c["x-internal"])!==!0&&(n[r]===void 0&&(n[r]={}),n[r][s]={httpVerb:s,path:r,operationId:(c==null?void 0:c.operationId)||r,name:(c==null?void 0:c.summary)||r||"",description:(c==null?void 0:c.description)||"",pathParameters:(l=(a=t.paths)==null?void 0:a[r])==null?void 0:l.parameters,information:{...c}})})}),Object.keys(t.paths).forEach(r=>{Object.keys(t.paths[r]).filter(i=>pT.includes(i.toUpperCase())).forEach(i=>{var s,o,a,l,c,u;const d=t.paths[r][i];if(d===void 0||d["x-internal"]===!0)return;const f={httpVerb:i,path:r,operationId:d.operationId||r,name:d.summary||r||"",description:d.description||"",information:{...d},pathParameters:(o=(s=t.paths)==null?void 0:s[r])==null?void 0:o.parameters};if(!d.tags||d.tags.length===0){(a=t.tags)!=null&&a.find(p=>p.name==="default")||(l=t.tags)==null||l.push({name:"default",description:"",operations:[]});const h=(c=t.tags)==null?void 0:c.findIndex(p=>p.name==="default");h>=0&&((u=t.tags[h])==null||u.operations.push(f))}else d.tags.forEach(h=>{var p,m,g;const b=(p=t.tags)==null?void 0:p.findIndex(y=>y.name===h);b===-1&&((m=t.tags)==null||m.push({name:h,description:""}));const v=b!==-1?b:t.tags.length-1;typeof((g=t.tags[v])==null?void 0:g.operations)>"u"&&(t.tags[v].operations=[]),t.tags[v].operations.push(f)})})}),{...t,webhooks:n}},YS=Symbol(),pB=Symbol(),o0=async e=>{var t;(t=document.getElementById(e))==null||t.scrollIntoView()},wo=e=>new Promise(t=>setTimeout(t,e)),bve=Symbol("downloadSpec"),mB=kw(bve);function yve(e,t){const n=z3(e),r=n?new Blob([e],{type:"application/json"}):new Blob([e],{type:"application/x-yaml"}),i=URL.createObjectURL(r),s=n?".json":".yaml",o="spec"+s,a=t?t+s:o,l=document.createElement("a");l.href=i,l.download=a,l.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})),setTimeout(()=>{window.URL.revokeObjectURL(i),l.remove()},100)}function vve(e,t=1){const n=new RegExp(`^(?=#{${t}} )`,"m");return e.split(n).map(r=>r.trim()).filter(Boolean)}var Eve=Object.defineProperty,_ve=(e,t,n)=>t in e?Eve(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xr=(e,t,n)=>(_ve(e,typeof t!="symbol"?t+"":t,n),n);function wve(e){if(!e||typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}wve("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999}[data-sonner-toaster][data-x-position=right]{right:max(var(--offset),env(safe-area-inset-right))}[data-sonner-toaster][data-x-position=left]{left:max(var(--offset),env(safe-area-inset-left))}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:max(var(--offset),env(safe-area-inset-top))}[data-sonner-toaster][data-y-position=bottom]{bottom:max(var(--offset),env(safe-area-inset-bottom))}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;will-change:transform,opacity,height;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast] [data-description]{font-weight:400;line-height:1.4;color:inherit}[data-sonner-toast] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast] [data-icon]{display:flex;height:20px;width:20px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast] [data-icon]>*{flex-shrink:0}[data-sonner-toast] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:0;transition:opacity .4s,box-shadow .2s;z-index:100}[data-sonner-toast] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toast][data-theme=dark] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;opacity:0;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast]:hover [data-close-button]{opacity:1}[data-sonner-toast]:focus [data-close-button]{opacity:1}[data-sonner-toast]:focus-within [data-close-button]{opacity:1}[data-sonner-toast]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]:before{content:'';position:absolute;left:0;right:0;height:100%}[data-sonner-toast][data-y-position=top][data-swiping=true]:before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]:before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]:before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast]:after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]:before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount,0));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{from{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;--mobile-offset:16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - 32px)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 91%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 91%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 91%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 100%, 12%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 12%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-rich-colors=true] [data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{display:none;transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}");let v_=1;class Tve{constructor(){xr(this,"subscribers"),xr(this,"toasts"),xr(this,"subscribe",t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)})),xr(this,"publish",t=>{this.subscribers.forEach(n=>n(t))}),xr(this,"addToast",t=>{this.publish(t),this.toasts=[...this.toasts,t]}),xr(this,"create",t=>{var n;const{message:r,...i}=t,s=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:v_++,o=this.toasts.findIndex(l=>l.id===s),a=t.dismissible===void 0?!0:t.dismissible;return o!==-1?this.toasts=this.toasts.map(l=>l.id===s?(this.publish({...l,...t,id:s,title:r}),{...l,...t,id:s,dismissible:a,title:r}):l):this.addToast({title:r,...i,dismissible:a,id:s}),s}),xr(this,"dismiss",t=>(t||this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),this.subscribers.forEach(n=>n({id:t,dismiss:!0})),t)),xr(this,"message",(t,n)=>this.create({...n,message:t})),xr(this,"error",(t,n)=>this.create({...n,type:"error",message:t})),xr(this,"success",(t,n)=>this.create({...n,type:"success",message:t})),xr(this,"info",(t,n)=>this.create({...n,type:"info",message:t})),xr(this,"warning",(t,n)=>this.create({...n,type:"warning",message:t})),xr(this,"loading",(t,n)=>this.create({...n,type:"loading",message:t})),xr(this,"promise",(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading}));const i=t instanceof Promise?t:t();let s=r!==void 0;return i.then(o=>{if(n.success!==void 0){s=!1;const a=typeof n.success=="function"?n.success(o):n.success;this.create({id:r,type:"success",message:a})}}).catch(o=>{if(n.error!==void 0){s=!1;const a=typeof n.error=="function"?n.error(o):n.error;this.create({id:r,type:"error",message:a})}}).finally(()=>{var o;s&&(this.dismiss(r),r=void 0),(o=n.finally)==null||o.call(n)}),r}),xr(this,"custom",(t,n)=>{const r=(n==null?void 0:n.id)||v_++;return this.publish({...n,id:r,title:t}),r}),this.subscribers=[],this.toasts=[]}}const ji=new Tve,Sve=(e,t)=>{const n=(t==null?void 0:t.id)||v_++;return ji.publish({title:e,...t,id:n}),n},kve=Sve,_m=Object.assign(kve,{success:ji.success,info:ji.info,warning:ji.warning,error:ji.error,custom:ji.custom,message:ji.message,promise:ji.promise,dismiss:ji.dismiss,loading:ji.loading}),Ave=["data-visible"],xve={className:"sonner-spinner"},Nve=Se({__name:"Loader",props:{visible:Boolean},setup(e){const t=Array(12).fill(0);return(n,r)=>(C(),V("div",{className:"sonner-loading-wrapper","data-visible":e.visible},[ae("div",xve,[(C(!0),V(De,null,mt(D(t),i=>(C(),V("div",{key:`spinner-bar-${i}`,className:"sonner-loading-bar"}))),128))])],8,Ave))}}),ip=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},Cve={},Ove={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Dve=ae("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z","clip-rule":"evenodd"},null,-1),Ive=[Dve];function Rve(e,t){return C(),V("svg",Ove,Ive)}const Pve=ip(Cve,[["render",Rve]]),Lve={},Mve={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},$ve=ae("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z","clip-rule":"evenodd"},null,-1),Fve=[$ve];function Bve(e,t){return C(),V("svg",Mve,Fve)}const Uve=ip(Lve,[["render",Bve]]),Hve={},jve={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},Vve=ae("path",{"fill-rule":"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z","clip-rule":"evenodd"},null,-1),qve=[Vve];function zve(e,t){return C(),V("svg",jve,qve)}const Kve=ip(Hve,[["render",zve]]),Wve={},Gve={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Yve=ae("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z","clip-rule":"evenodd"},null,-1),Xve=[Yve];function Qve(e,t){return C(),V("svg",Gve,Xve)}const Jve=ip(Wve,[["render",Qve]]),Zve={},e1e={xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stoke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},t1e=ae("line",{x1:"18",y1:"6",x2:"6",y2:"18"},null,-1),n1e=ae("line",{x1:"6",y1:"6",x2:"18",y2:"18"},null,-1),r1e=[t1e,n1e];function i1e(e,t){return C(),V("svg",e1e,r1e)}const s1e=ip(Zve,[["render",i1e]]),o1e=["aria-live","data-styled","data-mounted","data-promise","data-removed","data-visible","data-y-position","data-x-position","data-index","data-front","data-swiping","data-type","data-invert","data-swipe-out","data-expanded"],a1e=["data-disabled"],l1e={key:1,"data-icon":""},c1e={"data-content":""},u1e={"data-title":""},d1e=4e3,f1e=14,h1e=20,p1e=200,m1e=Se({__name:"Toast",props:{toast:{},toasts:{},index:{},expanded:{type:Boolean},invert:{type:Boolean},heights:{},position:{},visibleToasts:{},expandByDefault:{type:Boolean},closeButton:{type:Boolean},interacting:{type:Boolean},duration:{},descriptionClass:{}},emits:["update:heights","removeToast"],setup(e,{emit:t}){const n=q=>!!q.promise,r=t,i=e,s=de(!1),o=de(!1),a=de(!1),l=de(!1),c=de(null),u=de(0),d=de(0),f=de(null),h=de(null),p=ue(()=>i.index===0),m=ue(()=>i.index+1<=i.visibleToasts),g=ue(()=>i.toast.type),b=ue(()=>i.toast.dismissible),v=i.toast.className||"",y=i.toast.descriptionClassName||"",E=i.toast.style||{},T=ue(()=>i.heights.findIndex(q=>q.toastId===i.toast.id)||0),w=ue(()=>i.toast.duration||i.duration||d1e),S=de(0),k=de(0),x=de(w.value),A=de(0),M=de(null),R=ue(()=>i.position.split("-")),te=ue(()=>R.value[0]),ee=ue(()=>R.value[1]),oe=ue(()=>i.heights.reduce((q,ve,Ce)=>Ce>=T.value?q:q+ve.height,0)),pe=ue(()=>i.toast.invert||i.invert),G=ue(()=>c.value==="loading"),Q=ue(()=>c.value??(i.toast.type||null)),fe=ue(()=>!n(i.toast)&&typeof i.toast.title=="object"),O=ue(()=>{if(!n(i.toast))return null;switch(c.value){case"loading":return i.toast.loading;case"success":return typeof i.toast.success=="function"?f.value:i.toast.success;case"error":return typeof i.toast.error=="function"?f.value:i.toast.error;default:return null}});Rt(()=>s.value=!0),Bn(()=>{k.value=T.value*f1e+oe.value});function B(){var q,ve;(!G.value||b.value)&&(J(),(ve=(q=i.toast).onDismiss)==null||ve.call(q,i.toast))}function J(){o.value=!0,u.value=k.value;const q=i.heights.filter(ve=>ve.toastId!==i.toast.id);r("update:heights",q),setTimeout(()=>{r("removeToast",i.toast)},p1e)}const N=q=>{G||(u.value=k.value,q.target.setPointerCapture(q.pointerId),q.target.tagName!=="BUTTON"&&(a.value=!0,M.value={x:q.clientX,y:q.clientY}))},P=q=>{var ve,Ce,We,Ke;if(l.value)return;M.value=null;const rt=Number(((ve=h.value)==null?void 0:ve.style.getPropertyValue("--swipe-amount").replace("px",""))||0);if(Math.abs(rt)>=h1e){u.value=k.value,(We=(Ce=i.toast).onDismiss)==null||We.call(Ce,i.toast),J(),l.value=!0;return}(Ke=h.value)==null||Ke.style.setProperty("--swipe-amount","0px"),a.value=!0},H=q=>{var ve;if(!M.value)return;const Ce=q.clientY-M.value.y,We=q.clientX-M.value.x,Ke=(R.value[0]==="top"?Math.min:Math.max)(0,Ce),rt=q.pointerType==="touch"?10:2;Math.abs(Ke)>rt?(ve=h.value)==null||ve.style.setProperty("--swipe-amount",`${Ce}px`):Math.abs(We)>rt&&(M.value=null)};return Bn(q=>{if(i.toast.promise&&c.value==="loading"||i.toast.duration===1/0)return;let ve;const Ce=()=>{if(A.value<S.value){const Ke=new Date().getTime()-S.value;x.value=x.value-Ke}A.value=new Date().getTime()},We=()=>{S.value=new Date().getTime(),ve=setTimeout(()=>{var Ke,rt;(rt=(Ke=i.toast).onAutoClose)==null||rt.call(Ke,i.toast),J()},x.value)};i.expanded||i.interacting?Ce():We(),q(()=>{clearTimeout(ve)})}),Rt(()=>{if(h.value){const q=h.value.getBoundingClientRect().height;d.value=q;const ve=[{toastId:i.toast.id,height:q},...i.heights];r("update:heights",ve)}}),In(()=>{if(h.value){const q=i.heights.filter(ve=>ve.toastId!==i.toast.id);r("update:heights",q)}}),Bn(()=>{i.toast.delete&&J()}),(q,ve)=>(C(),V("li",{"aria-live":q.toast.important?"assertive":"polite","aria-atomic":"",role:"status",tabindex:"0",ref_key:"toastRef",ref:h,"data-sonner-toast":"",class:ct(D(v)),"data-styled":!fe.value,"data-mounted":s.value,"data-promise":!!q.toast.promise,"data-removed":o.value,"data-visible":m.value,"data-y-position":te.value,"data-x-position":ee.value,"data-index":i.index,"data-front":p.value,"data-swiping":a.value,"data-type":c.value!=="loading"&&c.value?c.value:g.value,"data-invert":pe.value,"data-swipe-out":l.value,"data-expanded":!!(i.expanded||i.expandByDefault&&s.value),style:_r({"--index":i.index,"--toasts-before":i.index,"--z-index":q.toasts.length-i.index,"--offset":`${o.value?u.value:k.value}px`,"--initial-height":i.expandByDefault?"auto":`${d.value}px`,...D(E)}),onPointerdown:N,onPointerup:P,onPointermove:H},[i.closeButton&&!fe.value?(C(),V("button",{key:0,"aria-label":"Close toast","data-close-button":"","data-disabled":G.value,onClick:B},[Z(s1e)],8,a1e)):be("",!0),g.value||q.toast.icon||q.toast.promise?(C(),V("div",l1e,[typeof q.toast.promise=="function"||g.value==="loading"?(C(),he(Nve,{key:0,visible:c.value==="loading"||g.value==="loading"},null,8,["visible"])):be("",!0),Q.value==="success"?(C(),he(Pve,{key:1})):Q.value==="info"?(C(),he(Uve,{key:2})):Q.value==="warning"?(C(),he(Kve,{key:3})):Q.value==="error"?(C(),he(Jve,{key:4})):be("",!0)])):be("",!0),ae("div",c1e,[ae("div",u1e,[typeof q.toast.title=="string"?(C(),V(De,{key:0},[Pe(Ue(q.toast.title),1)],64)):q.toast.title===void 0||q.toast.title===null?(C(),V(De,{key:1},[Pe(Ue(O.value),1)],64)):fe.value?(C(),he(Di(q.toast.title),{key:2,onCloseToast:ve[0]||(ve[0]=()=>{var Ce;J(),(Ce=q.toast.cancel)!=null&&Ce.onClick&&q.toast.cancel.onClick()})},null,32)):be("",!0)]),q.toast.description?(C(),V("div",{key:0,"data-description":"",class:ct(q.descriptionClass+D(y))},Ue(q.toast.description),3)):be("",!0)]),q.toast.cancel?(C(),V("button",{key:2,"data-button":"","data-cancel":"",onClick:ve[1]||(ve[1]=()=>{var Ce;J(),(Ce=q.toast.cancel)!=null&&Ce.onClick&&q.toast.cancel.onClick()})},Ue(q.toast.cancel.label),1)):be("",!0),q.toast.action?(C(),V("button",{key:3,"data-button":"",onClick:ve[2]||(ve[2]=()=>{var Ce;J(),(Ce=q.toast.action)==null||Ce.onClick()})},Ue(q.toast.action.label),1)):be("",!0)],46,o1e))}}),g1e=["aria-label"],b1e=["dir","data-theme","data-rich-colors","data-y-position","data-x-position"],y1e=3,l2="32px",v1e=4e3,E1e=356,c2=14,_1e=typeof window<"u"&&typeof document<"u",w1e=Se({name:"Toaster",inheritAttrs:!1,__name:"Toaster",props:{invert:{type:Boolean,default:!1},theme:{default:"light"},position:{default:"bottom-right"},hotkey:{default:()=>["altKey","KeyT"]},richColors:{type:Boolean,default:!1},expand:{type:Boolean,default:!1},duration:{default:v1e},gap:{default:c2},visibleToasts:{default:y1e},closeButton:{type:Boolean,default:!1},toastOptions:{default:()=>({})},className:{default:""},style:{default:()=>({})},offset:{default:l2},dir:{default:"auto"}},setup(e){const t=e,n=nc(),r=de([]),i=de([]),s=de(!1),o=de(!1),a=de(t.theme!=="system"?t.theme:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),l=ue(()=>t.position.split("-")),c=de(null),u=t.hotkey.join("+").replace(/Key/g,"").replace(/Digit/g,"");function d(h){r.value=r.value.filter(({id:p})=>p!==h.id)}function f(){if(typeof window>"u")return"ltr";const h=document.documentElement.getAttribute("dir");return h==="auto"||!h?window.getComputedStyle(document.documentElement).direction:h}return Rt(()=>{const h=ji.subscribe(p=>{if(p.dismiss){r.value=r.value.map(m=>m.id===p.id?{...m,delete:!0}:m);return}Kn(()=>{const m=r.value.findIndex(g=>g.id===p.id);m!==-1?r.value.splice(m,1,p):r.value=[p,...r.value]})});In(()=>{h()})}),dt(()=>t.theme,h=>{if(h!=="system"){a.value=h;return}h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?a.value="dark":a.value="light"),!(typeof window>"u")&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:p})=>{p?a.value="dark":a.value="light"})}),Bn(()=>{r.value.length<=1&&(s.value=!1)}),Bn(h=>{function p(m){var g,b;t.hotkey.every(v=>m[v]||m.code===v)&&(s.value=!0,(g=c.value)==null||g.focus()),m.code==="Escape"&&(document.activeElement===c.value||(b=c.value)!=null&&b.contains(document.activeElement))&&(s.value=!1)}_1e&&(document.addEventListener("keydown",p),h(()=>{document.removeEventListener("keydown",p)}))}),(h,p)=>{var m;return C(),V("section",{"aria-label":`Notifications ${D(u)}`,tabIndex:-1},[ae("ol",{ref_key:"listRef",ref:c,"data-sonner-toaster":"",dir:h.dir==="auto"?f():h.dir,tabIndex:-1,"data-theme":h.theme,"data-rich-colors":h.richColors,"data-y-position":l.value[0],"data-x-position":l.value[1],style:_r({"--front-toast-height":`${(m=i.value[0])==null?void 0:m.height}px`,"--offset":typeof h.offset=="number"?`${h.offset}px`:h.offset||l2,"--width":`${E1e}px`,"--gap":`${c2}px`,...D(n).style}),onMouseenter:p[1]||(p[1]=g=>s.value=!0),onMousemove:p[2]||(p[2]=g=>s.value=!0),onMouseleave:p[3]||(p[3]=()=>{o.value||(s.value=!1)}),onPointerdown:p[4]||(p[4]=g=>o.value=!1),onPointerup:p[5]||(p[5]=g=>o.value=!1)},[(C(!0),V(De,null,mt(r.value,(g,b)=>{var v,y,E,T;return C(),he(m1e,{key:g.id,index:b,toast:g,duration:((v=h.toastOptions)==null?void 0:v.duration)??h.duration,className:(y=h.toastOptions)==null?void 0:y.className,descriptionClassName:(E=h.toastOptions)==null?void 0:E.descriptionClassName,invert:h.invert,visibleToasts:h.visibleToasts,closeButton:h.closeButton,interacting:o.value,position:h.position,style:_r((T=h.toastOptions)==null?void 0:T.style),toasts:r.value,expandByDefault:h.expand,gap:h.gap,expanded:s.value,heights:i.value,"onUpdate:heights":p[0]||(p[0]=w=>i.value=w),onRemoveToast:d},null,8,["index","toast","duration","className","descriptionClassName","invert","visibleToasts","closeButton","interacting","position","style","toasts","expandByDefault","gap","expanded","heights"])}),128))],44,b1e)],8,g1e)}}}),gB={toast:()=>null};function T1e(e){gB.toast=e}function bB(){return{initializeToasts:T1e,toast:(e,t="info",n={timeout:3e3})=>{gB.toast(e,t,n)}}}const S1e=Se({__name:"ScalarToasts",setup(e){const t=de(!1);Rt(()=>t.value=!0);const n={success:_m.success,error:_m.error,warn:_m.warning,info:_m},{initializeToasts:r}=bB();return r((i,s="info",o={})=>{(n[s]||n.info)(i,{duration:o.timeout||3e3})}),(i,s)=>t.value?(C(),he(D(w1e),{key:0,toastOptions:{className:"toaster"}})):be("",!0)}}),cd=()=>{const{toast:e}=bB();return{copyToClipboard:t=>{navigator.clipboard.writeText(t).then(()=>{e("Copied to the clipboard","info")})}}},Ho=de(!1);function k1e(e){var t;const n=()=>{var s,o;const a=typeof window<"u"?(s=window.localStorage)==null?void 0:s.getItem("isDark"):null;return typeof a=="string"?!!JSON.parse(a):!!(typeof window<"u"&&(o=window==null?void 0:window.matchMedia("(prefers-color-scheme: dark)"))!=null&&o.matches)},r=()=>{var s;Ho.value=!Ho.value,typeof window<"u"&&((s=window==null?void 0:window.localStorage)==null||s.setItem("isDark",JSON.stringify(Ho.value)))};function i(s){var o;Ho.value=s,typeof window<"u"&&((o=window==null?void 0:window.localStorage)==null||o.setItem("isDark",JSON.stringify(Ho.value)))}return Ho.value=(typeof window>"u"?null:JSON.parse(((t=window.localStorage)==null?void 0:t.getItem("isDark"))||"null"))??e??n(),dt(Ho,s=>{typeof document>"u"||(document.body.classList.toggle("dark-mode",s),document.body.classList.toggle("light-mode",!s))},{immediate:!0}),{isDark:Ho,toggleDarkMode:r,setDarkMode:i}}const u2="https://api.scalar.com/request-proxy",wm="https://proxy.scalar.com",A1e="http://localhost:5051";function x1e(e){dt(()=>e,()=>{var t;e.proxy===u2?(console.warn(`[DEPRECATED] Warning: configuration.proxy points to our old proxy (${u2}).`),console.warn(`[DEPRECATED] We are overwriting the value and use the new proxy URL (${wm}) instead.`),e.proxy=wm,console.warn(`[DEPRECATED] Action Required: You should manually update your configuration to use the new URL (${wm}). Read more: https://github.com/scalar/scalar`)):(t=e.proxy)!=null&&t.length&&e.proxy!==wm&&e.proxy!==A1e&&(console.warn(`[DEPRECATED] Warning: configuration.proxy points to a custom proxy (${e==null?void 0:e.proxy}).`),console.warn("[DEPRECATED] Action Required: You need to use our new proxy (written in Go). Read more: https://github.com/scalar/scalar/tree/main/examples/proxy-server"))},{immediate:!0})}const N1e={node:["unirest"]},E_=de({...N1e});function C1e(e,t){return e.flatMap(n=>{var r;return Array.isArray(t.value)?(n.clients=n.clients.filter(i=>!t.value.includes(i.key)),[n]):t.value[n.key]===!0?[]:(Array.isArray(t.value[n.key])&&(n.clients=n.clients.filter(i=>!t.value[n.key].includes(i.key))),(r=n==null?void 0:n.clients)!=null&&r.length?[n]:[])})}const O1e=ue(()=>{var e;const t=vW();return(e=t.find(n=>n.key==="node"))==null||e.clients.unshift({description:"An HTTP/1.1 client, written from scratch for Node.js.",key:"undici",link:"https://github.com/nodejs/undici",title:"undici"}),C1e(t,E_)});function sp(){return{availableTargets:O1e,excludedClients:Ru(E_),setExcludedClients:e=>E_.value=e}}const XS=de(zu.hash??""),a0=de(),D1e=de(!1),I1e=e=>e.slug?`description/${e.slug}`:"",yB=e=>{var t;if(!a0.value)return"";const n=new RegExp("^"+((t=a0.value)==null?void 0:t.basePath)+"/?");return decodeURIComponent(e.replace(n,""))},R1e=(e,t)=>{if(!e)return"webhooks";const n=eb(e),r=encodeURIComponent(n);return`webhook/${t}/${r}`},P1e=e=>{if(!e)return"models";const t=eb(e);return`model/${encodeURIComponent(t)}`},L1e=(e,t)=>`${vB(t)}/${e.httpVerb}${e.path}`,vB=({name:e})=>{const t=eb(e);return`tag/${encodeURIComponent(t)}`},M1e=(e=XS.value)=>{var t;const n=(t=e.match(/(tag\/[^/]+)/))==null?void 0:t[0],r=e.startsWith("model")?"models":"";return n??r},$1e=()=>{XS.value=a0.value?yB(window.location.pathname):decodeURIComponent(window.location.hash.replace(/^#/,""))},Tr=()=>({hash:XS,getWebhookId:R1e,getModelId:P1e,getHeadingId:I1e,getOperationId:L1e,getPathRoutingId:yB,getSectionId:M1e,getTagId:vB,isIntersectionEnabled:D1e,pathRouting:a0,updateHash:$1e});function QS(e){return{parameterMap:ue(()=>{var t;const n=((t=e.operation.information)==null?void 0:t.parameters)??[],r={path:[],query:[],header:[],body:[],formData:[]};return e.operation.pathParameters&&e.operation.pathParameters.forEach(i=>{i.in==="path"?r.path.push(i):i.in==="query"?r.query.push(i):i.in==="header"?r.header.push(i):i.in==="body"?r.body.push(i):i.in==="formData"&&r.formData.push(i)}),n&&n.forEach(i=>{i.in==="path"?r.path.push(i):i.in==="query"?r.query.push(i):i.in==="header"?r.header.push(i):i.in==="body"?r.body.push(i):i.in==="formData"&&r.formData.push(i)}),r})}}const F1e=async({url:e,content:t},n)=>{if(e)return Que(e)?await UN(e,n):await UN(e);const r=typeof t=="function"?t():t;if(typeof r=="string")return r;if(typeof r=="object")return Jf(r)};function B1e({specConfig:e,proxy:t}){const n=de(""),r=or(nu()),i=de(null);function s(o){return o?gve(o).then(a=>{i.value=null,Object.assign(r,{servers:[],...a})}).catch(a=>{i.value=a.toString()}):Object.assign(r,nu())}return dt(()=>fg(e),async o=>{var a;if(o){const l=(a=await F1e(o,fg(t)))==null?void 0:a.trim();typeof l=="string"&&(n.value=l)}},{immediate:!0,deep:!0}),dt(n,()=>{s(n.value)}),{rawSpec:n,parsedSpec:r,specErrors:i}}function JS(e){return{responses:ue(()=>{if(!e.information)return[];const{responses:t}=e.information,n=[];return t&&Object.keys(t).forEach(r=>{n.push({name:r,description:t[r].description})}),n})}}const{getHeadingId:d2,getModelId:f2,getOperationId:h2,getSectionId:U1e,getTagId:EB,getWebhookId:Hv,hash:__}=Tr(),jn=de(void 0);function H1e(e){return jn.value=e}const _B=de(!1),l0=or(zu["useSidebarContent-collapsedSidebarItems"]??{});function j1e(e){l0[e]=!l0[e]}function jv(e,t){l0[e]=t}const c0=de([]),V1e=async e=>{const t=await Xg(e),n=UT(t);return t.filter(r=>r.depth===n||r.depth===n+1)},wB=ue(()=>{var e,t,n,r,i,s,o,a,l,c;const{state:u}=pb(),d={},{openApi:{globalSecurity:f}}=fT(),h=[];let p=null;c0.value.forEach(E=>{var T;E.depth===UT(c0.value)?(p={id:d2(E),title:E.value,show:!u.showApiClient,children:[]},h.push(p)):p&&((T=p.children)==null||T.push({id:d2(E),title:E.value,show:!u.showApiClient}))});const m=(t=(e=jn.value)==null?void 0:e.tags)==null?void 0:t[0],g=m&&(E=>(E==null?void 0:E.length)!==1||E[0].name!=="default"||E[0].description!=="")((n=jn.value)==null?void 0:n.tags)?(i=(r=jn.value)==null?void 0:r.tags)==null?void 0:i.filter(E=>{var T;return((T=E.operations)==null?void 0:T.length)>0}).map(E=>{var T;return{id:EB(E),title:E.name,displayTitle:E["x-displayName"]??E.name,show:!0,children:(T=E.operations)==null?void 0:T.map(w=>{var S;const k=h2(w,E),x=w.name??w.path;return d[k]=x,{id:k,title:x,httpVerb:w.httpVerb,deprecated:((S=w.information)==null?void 0:S.deprecated)??!1,show:!0,select:()=>{u.showApiClient&&QE(w,f)}}})}}):(s=m==null?void 0:m.operations)==null?void 0:s.map(E=>{var T;const w=h2(E,m),S=E.name??E.path;return d[w]=S,{id:w,title:S,httpVerb:E.httpVerb,deprecated:((T=E.information)==null?void 0:T.deprecated)??!1,show:!0,select:()=>{u.showApiClient&&QE(E,f)}}}),b=vF(jn.value)&&!_B.value?[{id:f2(),title:"Models",show:!u.showApiClient,children:Object.keys(xs(jn.value)??{}).map(E=>{var T;const w=f2(E);return d[w]=E,{id:w,title:((T=xs(jn.value))==null?void 0:T[E]).title??E,show:!u.showApiClient}})}]:[],v=(o=jn.value)!=null&&o["x-tagGroups"]?(l=(a=jn.value)==null?void 0:a["x-tagGroups"])==null?void 0:l.map(E=>{const T=[];return E.tags.map(w=>{if(w==="models"&&b.length>0)T.push(b[0]);else{const S=g==null?void 0:g.find(k=>k.title===w);S&&T.push(S)}}),{id:E.name,title:E.name,children:T,show:!0,isGroup:!0}}):void 0,y=Xue(jn.value)?[{id:Hv(),title:"Webhook",show:!u.showApiClient,children:Object.keys(((c=jn.value)==null?void 0:c.webhooks)??{}).map(E=>{var T,w;const S=Hv(E);return d[S]=E,Object.keys(((w=(T=jn.value)==null?void 0:T.webhooks)==null?void 0:w[E])??{}).map(k=>{var x,A,M;return{id:Hv(E,k),title:(M=(A=(x=jn.value)==null?void 0:x.webhooks)==null?void 0:A[E][k])==null?void 0:M.name,httpVerb:k,show:!u.showApiClient}})}).flat()}]:[];return{entries:[...h,...v??g??[],...v?[]:y,...v?[]:b],titles:d}}),q1e=de(!1),z1e=ue(()=>{var e,t;return((t=(e=wB.value)==null?void 0:e.titles)==null?void 0:t[__.value])??""});function as(e){return e!=null&&e.parsedSpec&&(jn.value=e.parsedSpec,dt(()=>{var t,n;return(n=(t=jn.value)==null?void 0:t.tags)==null?void 0:n.length},()=>{var t,n;if(__.value){const r=U1e(__.value);r&&jv(r,!0)}else{const r=(n=(t=jn.value)==null?void 0:t.tags)==null?void 0:n[0];r&&jv(EB(r),!0)}}),dt(()=>{var t,n;return(n=(t=jn.value)==null?void 0:t.info)==null?void 0:n.description},async()=>{var t,n;const r=(n=(t=jn.value)==null?void 0:t.info)==null?void 0:n.description;return r?c0.value=await V1e(r):c0.value=[]})),{breadcrumb:z1e,items:wB,isSidebarOpen:q1e,collapsedSidebarItems:l0,toggleCollapsedSidebarItem:j1e,setCollapsedSidebarItem:jv,hideModels:_B,setParsedSpec:H1e}}const K1e=Se({__name:"SidebarHttpBadge",props:{active:{type:Boolean},method:{}},setup(e){return(t,n)=>(C(),he(D(uc),{class:ct(["sidebar-heading-type",{"sidebar-heading-type-active":t.active}]),method:t.method,property:"--method-color",short:""},null,8,["class","method"]))}}),TB=je(K1e,[["__scopeId","data-v-9e6d2bc7"]]),W1e=["id"],G1e={key:0,class:"sidebar-heading-chevron"},Y1e=["href"],X1e={class:"sidebar-heading-link-title"},Q1e={key:1,class:"sidebar-heading-link-method"},J1e={key:1,class:"action-menu"},Z1e=Se({__name:"SidebarElement",props:{id:{},item:{},isActive:{type:Boolean},hasChildren:{type:Boolean},open:{type:Boolean}},emits:["toggleOpen"],setup(e,{emit:t}){const n=e,r=t,{hash:i,isIntersectionEnabled:s,pathRouting:o}=Tr(),a=async()=>{var u,d;n.hasChildren&&r("toggleOpen"),(d=(u=n.item)==null?void 0:u.select)==null||d.call(u),n.open&&(s.value=!1,await wo(100),s.value=!0)},l=()=>{if(o.value)return o.value.basePath+"/"+n.item.id;{const u=new URL(window.location.href);return u.hash=n.item.id,`${u.pathname}${u.search}${u.hash}`}},c=async u=>{var d,f;if(o.value){u.preventDefault(),n.hasChildren&&r("toggleOpen"),(f=(d=n.item)==null?void 0:d.select)==null||f.call(d),r("toggleOpen"),s.value=!1,i.value=n.item.id;const h=new URL(window.location.href);h.pathname=o.value.basePath+"/"+n.item.id,window.history.pushState({},"",h),o0(n.item.id),await wo(100),s.value=!0}};return(u,d)=>{var f,h;return C(),V("li",{id:u.id,class:"sidebar-group-item"},[ae("div",{class:ct(["sidebar-heading",{"sidebar-group-item__folder":u.hasChildren,active_page:u.isActive,deprecated:u.item.deprecated??!1}]),onClick:a},[u.hasChildren?(C(),V("p",G1e,[Z(D(qh),{class:"toggle-nested-icon",icon:u.open?"ChevronDown":"ChevronRight",label:"Toggle group",size:"xs",onClick:Mu(a,["stop"])},null,8,["icon"]),Pe("   ")])):be("",!0),ae("a",{class:"sidebar-heading-link",href:l(),onClick:c},[(h=(f=u.item)==null?void 0:f.icon)!=null&&h.src?(C(),he(D(pn),{key:0,class:"sidebar-icon",icon:u.item.icon.src},null,8,["icon"])):be("",!0),ae("p",X1e,Ue(u.item.title),1),u.item.httpVerb&&!u.hasChildren?(C(),V("p",Q1e,[Pe("   "),Z(TB,{active:u.isActive,method:u.item.httpVerb},null,8,["active","method"])])):be("",!0)],8,Y1e)],2),u.open?Be(u.$slots,"default",{key:0},void 0,!0):be("",!0),u.$slots["action-menu"]?(C(),V("div",J1e,[Be(u.$slots,"action-menu",{},void 0,!0)])):be("",!0)],8,W1e)}}}),Tm=je(Z1e,[["__scopeId","data-v-4ed1078c"]]),eEe=Se({__name:"SidebarGroup",props:{level:{}},setup(e){return(t,n)=>(C(),V("ul",{class:"sidebar-group sidebar-indent-nested",style:_r({"--scalar-sidebar-level":t.level})},[Be(t.$slots,"default",{},void 0,!0)],4))}}),Vv=je(eEe,[["__scopeId","data-v-39c84840"]]),tEe={class:"sidebar"},nEe={class:"sidebar-group-title"},rEe=-160,iEe=Se({__name:"Sidebar",props:{parsedSpec:{}},setup(e){const t=e,{hash:n,isIntersectionEnabled:r}=Tr(),{items:i,toggleCollapsedSidebarItem:s,collapsedSidebarItems:o}=as({parsedSpec:t.parsedSpec}),a=de(null),l=de(!0);dt(n,u=>{!r.value||l.value||typeof window>"u"||c(u)});const c=u=>{var d,f,h,p;const m=document.getElementById(`sidebar-${u}`);if(!m||!a.value)return;let g=rEe;m.getAttribute("data-sidebar-type")==="heading"?g+=m.offsetTop+((d=m.getElementsByClassName("sidebar-heading"))==null?void 0:d[0]).offsetHeight:g+=m.offsetTop+(((f=m.parentElement)==null?void 0:f.offsetTop)??0)+(((p=(h=m.parentElement)==null?void 0:h.parentElement)==null?void 0:p.offsetTop)??0),a.value.scrollTo({top:g,behavior:"smooth"})};return Rt(()=>{setTimeout(()=>c(n.value),500),l.value=!1}),(u,d)=>(C(),V("div",tEe,[Be(u.$slots,"sidebar-start",{},void 0,!0),ae("div",{ref_key:"scrollerEl",ref:a,class:"sidebar-pages custom-scroll custom-scroll-self-contain-overflow"},[Z(Vv,{level:0},{default:X(()=>[(C(!0),V(De,null,mt(D(i).entries,f=>(C(),V(De,{key:f.id},[f.isGroup?(C(),V(De,{key:0},[ae("li",nEe,Ue(f.displayTitle??f.title),1),(C(!0),V(De,null,mt(f.children,h=>(C(),he(Tm,{key:h.id,id:`sidebar-${h.id}`,"data-sidebar-type":"heading",hasChildren:h.children&&h.children.length>0,isActive:D(n)===h.id,item:{id:h.id,title:h.displayTitle??h.title,select:h.select,httpVerb:h.httpVerb,deprecated:h.deprecated??!1},open:D(o)[h.id]??!1,onToggleOpen:async()=>{l.value=!0,D(s)(h.id),await D(wo)(100),l.value=!1}},{default:X(()=>{var p;return[h.children&&((p=h.children)==null?void 0:p.length)>0?(C(),he(Vv,{key:0,level:1},{default:X(()=>[(C(!0),V(De,null,mt(h.children,m=>(C(),V(De,{key:m.id},[f.show?(C(),he(Tm,{key:0,id:`sidebar-${m.id}`,isActive:D(n)===m.id,item:{id:m.id,title:m.displayTitle??m.title,select:m.select,httpVerb:m.httpVerb,deprecated:m.deprecated??!1}},null,8,["id","isActive","item"])):be("",!0)],64))),128))]),_:2},1024)):be("",!0)]}),_:2},1032,["id","hasChildren","isActive","item","open","onToggleOpen"]))),128))],64)):(C(),V(De,{key:1},[f.show?(C(),he(Tm,{key:0,id:`sidebar-${f.id}`,"data-sidebar-type":"heading",hasChildren:f.children&&f.children.length>0,isActive:D(n)===f.id,item:{id:f.id,title:f.displayTitle??f.title,select:f.select,httpVerb:f.httpVerb,deprecated:f.deprecated??!1},open:D(o)[f.id]??!1,onToggleOpen:async()=>{l.value=!0,D(s)(f.id),await D(wo)(100),l.value=!1}},{default:X(()=>{var h;return[f.children&&((h=f.children)==null?void 0:h.length)>0?(C(),he(Vv,{key:0,level:1},{default:X(()=>[(C(!0),V(De,null,mt(f.children,p=>(C(),V(De,{key:p.id},[f.show?(C(),he(Tm,{key:0,id:`sidebar-${p.id}`,isActive:D(n)===p.id,item:{id:p.id,title:p.displayTitle??p.title,select:p.select,httpVerb:p.httpVerb,deprecated:p.deprecated??!1}},null,8,["id","isActive","item"])):be("",!0)],64))),128))]),_:2},1024)):be("",!0)]}),_:2},1032,["id","hasChildren","isActive","item","open","onToggleOpen"])):be("",!0)],64))],64))),128))]),_:1})],512),Be(u.$slots,"sidebar-end",{},void 0,!0)]))}}),SB=je(iEe,[["__scopeId","data-v-e68ba74a"]]),sEe={key:0,class:"api-client-drawer"},oEe={class:"api-client-container"},aEe={class:"scalar-api-client-height"},lEe={class:"scalar-api-client-states"},cEe={class:"t-doc__sidebar"},uEe=Se({__name:"ApiClientModal",props:{parsedSpec:{},overloadShow:{type:Boolean},proxyUrl:{},theme:{}},emits:["toggleDarkMode"],setup(e){const t=iw(()=>Promise.resolve().then(()=>require("./index-Bk9F2CRc-66Jzeveo.cjs")).then(o=>o.ApiClient)),{hideApiClient:n,state:r}=pb(),i=W0("(max-width: 1000px)"),s=de(!1);return(o,a)=>(C(),V(De,null,[D(r).showApiClient||o.overloadShow?(C(),V("div",sEe,[ae("div",oEe,[Be(o.$slots,"header",{},void 0,!0),ae("div",aEe,[Z(D(t),{proxyUrl:o.proxyUrl,showSideBar:s.value,theme:o.theme??"none",withDefaultFonts:!1,onEscapeKeyPress:D(n),onToggleSidebar:a[2]||(a[2]=l=>s.value=!s.value)},{"address-bar-controls":X(()=>[ae("div",lEe,[ae("button",{class:"scalar-api-client-states-button scalar-api-client-states-button__endpoints",type:"button",onClick:a[0]||(a[0]=l=>s.value=!s.value)},[Z(D(pn),{icon:s.value?"SideBarClosed":"SideBarOpen",size:"sm"},null,8,["icon"])]),ae("button",{class:"scalar-api-client-states-button",type:"button",onClick:a[1]||(a[1]=(...l)=>D(n)&&D(n)(...l))},[Z(D(pn),{icon:"Close",size:"sm"})])])]),sidebar:X(()=>[ae("div",cEe,[Ba(Z(D(SB),{parsedSpec:o.parsedSpec},{"sidebar-start":X(()=>[Be(o.$slots,"sidebar-start",{},void 0,!0)]),_:3},8,["parsedSpec"]),[[Ua,!D(i)]])])]),_:3},8,["proxyUrl","showSideBar","theme","onEscapeKeyPress"])])])])):be("",!0),D(r).showApiClient?(C(),V("div",{key:1,class:"api-client-drawer-exit",onClick:a[3]||(a[3]=(...l)=>D(n)&&D(n)(...l))})):be("",!0)],64))}}),dEe=je(uEe,[["__scopeId","data-v-206ad1a1"]]),kB=()=>({targetKey:"shell",clientKey:"curl"}),ku=or(kB());function fEe(){Jue(ku,kB())}function AB(e){var t;const{availableTargets:n}=sp();return((t=n.value.find(r=>r.key===e.targetKey))==null?void 0:t.title)??e.targetKey}function xB(e){var t,n;const{availableTargets:r}=sp();return((n=(t=r.value.find(i=>i.key===e.targetKey))==null?void 0:t.clients.find(i=>i.key===e.clientKey))==null?void 0:n.title)??e.clientKey}const hEe=e=>{Object.assign(ku,{...ku,...e})},pEe=ue(()=>AB(ku)),mEe=ue(()=>xB(ku)),ZS=()=>({httpClient:Ru(ku),resetState:fEe,setHttpClient:hEe,httpTargetTitle:pEe,httpClientTitle:mEe,getClientTitle:xB,getTargetTitle:AB}),gEe={key:0},bEe={class:"authentication-header"},yEe={class:"selector"},vEe={key:0,class:"authentication-content"},EEe=Se({__name:"Authentication",props:{parsedSpec:{}},setup(e){const t=e,{authentication:n,setAuthentication:r}=Ku(),i=ue(()=>{var s,o,a;if(!n.preferredSecurityScheme)return!1;const l=(a=(o=(s=t.parsedSpec)==null?void 0:s.components)==null?void 0:o.securitySchemes)==null?void 0:a[n.preferredSecurityScheme];return!!l&&"type"in l&&!!l.type});return dt(()=>{var s,o;return(o=(s=t.parsedSpec)==null?void 0:s.components)==null?void 0:o.securitySchemes},()=>{var s,o;r({securitySchemes:(o=(s=t.parsedSpec)==null?void 0:s.components)==null?void 0:o.securitySchemes})},{deep:!0,immediate:!0}),So(async()=>{const s=ec();await wo(1),s.payload.data["useGlobalStore-authentication"]=n}),(s,o)=>{var a,l,c,u,d;return D(Yue)(s.parsedSpec)?(C(),V("div",gEe,[ae("div",bEe,[ae("div",yEe,[Z(D(gF),{value:(l=(a=s.parsedSpec)==null?void 0:a.components)==null?void 0:l.securitySchemes},null,8,["value"])])]),i.value?(C(),V("div",vEe,[D(n).preferredSecurityScheme?(C(),he(D(mF),{key:0,value:(d=(u=(c=s.parsedSpec)==null?void 0:c.components)==null?void 0:u.securitySchemes)==null?void 0:d[D(n).preferredSecurityScheme]},null,8,["value"])):be("",!0)])):be("",!0)])):be("",!0)}}}),_Ee=je(EEe,[["__scopeId","data-v-3bb0413b"]]),wEe=["innerHTML"],TEe=Se({__name:"MarkdownRenderer",props:{value:{},withImages:{type:Boolean,default:!1}},setup(e){const t=e,n=de(""),r=t.withImages?[]:["img","picture"];return dt(()=>t.value,async()=>{var i;const s=await hP().use(XR).use(Pne).use(gre,{allowDangerousHtml:!0}).use(tee).use(dee,{...Ig,tagNames:(i=Ig.tagNames)==null?void 0:i.filter(o=>!r.includes(o))}).use(LX,{detect:!0}).use(jW,{target:"_blank"}).use(hG).use(nte).process(t.value);n.value=String(s.value)},{immediate:!0}),So(async()=>await wo(1)),(i,s)=>(C(),V("div",{class:"markdown",innerHTML:n.value},null,8,wEe))}}),fi=je(TEe,[["__scopeId","data-v-bcae22de"]]),SEe=["title","innerHTML"],kEe=Se({__name:"ServerItem",props:{value:{},variables:{}},setup(e){const t=e,{copyToClipboard:n}=cd(),r=ue(()=>{var i;const s=(((i=t.value)==null?void 0:i.url)??"").replace(/(<([^>]+)>)/gi,"");return yF(s,o=>{var a;const l=(a=t.variables)==null?void 0:a.find(c=>c.name===o);return`<span class="base-url-variable">${((l==null?void 0:l.value)??"")!==""?l==null?void 0:l.value:`{${o}}`}</span>`})});return(i,s)=>i.value?(C(),V("a",{key:0,class:"base-url",title:i.value.description,onClick:s[0]||(s[0]=o=>D(n)(i.value.url)),innerHTML:r.value},null,8,SEe)):be("",!0)}}),AEe=je(kEe,[["__scopeId","data-v-8df90bd1"]]),xEe={key:0},NEe=["for"],CEe=["id","value","onInput"],OEe=["value"],DEe={class:"input-value"},IEe=["id","value","onInput"],REe=Se({__name:"ServerVariables",props:{value:{}},setup(e){const{server:t,setServer:n}=zh(),r=(s,o)=>{const a=o.target.value,l=[...t.variables],c=l.findIndex(u=>u.name===s);l[c].value=a,n({variables:l})},i=s=>{const o=t.variables.findIndex(a=>a.name===s);return t.variables[o].value??""};return(s,o)=>s.value?(C(),V("div",xEe,[(C(!0),V(De,null,mt(s.value,a=>(C(),V("div",{key:a.name,class:"input"},[ae("label",{for:`variable-${a.name}`},[ae("code",null,Ue(a.name),1)],8,NEe),a.enum?(C(),V(De,{key:0},[ae("select",{id:`variable-${a.name}`,value:i(a.name),onInput:l=>r(a.name,l)},[(C(!0),V(De,null,mt(a.enum,l=>(C(),V("option",{key:l,value:l},Ue(l),9,OEe))),128))],40,CEe),ae("div",DEe,Ue(a.default),1)],64)):(C(),V("input",{key:1,id:`variable-${a.name}`,autocomplete:"off",placeholder:"value",spellcheck:"false",type:"text",value:i(a.name),onInput:l=>r(a.name,l)},null,40,IEe))]))),128))])):be("",!0)}}),PEe=je(REe,[["__scopeId","data-v-a812e319"]]),LEe=e=>(lr("data-v-899af270"),e=e(),cr(),e),MEe={key:0},$Ee=LEe(()=>ae("span",{class:"scalar-card-serverlist-title"},"Base URL",-1)),FEe={class:"scalar-card-serverlist"},BEe={class:"scalar-card-serverlist-container"},UEe={class:"server-item"},HEe={class:"server-selector"},jEe=["value"],VEe=["value"],qEe={key:0,muted:""},zEe={class:"description"},KEe=Se({__name:"BaseUrl",setup(e){const{server:t,setServer:n}=zh(),r=de(0);return dt([r,()=>t.servers],()=>{var i,s,o;if(!t.servers.length)return;const a=((i=t.servers[r.value])==null?void 0:i.variables)??{},l=a?Object.keys(a).map(c=>{var u;return{name:c,value:((u=a[c].default)==null?void 0:u.toString())??""}}):[];K$((s=t.servers[r.value])==null?void 0:s.url).filter(c=>!a[c]).forEach(c=>{l.push({name:c,value:""})}),n({selectedServer:r.value,description:(o=t.servers[r.value])==null?void 0:o.description,variables:l})},{immediate:!0,deep:!0}),(i,s)=>D(t).servers.length>0?(C(),V("div",MEe,[$Ee,ae("div",FEe,[ae("div",BEe,[ae("div",UEe,[ae("div",HEe,[D(t).servers.length>1?(C(),V("select",{key:0,value:r.value,onInput:s[0]||(s[0]=o=>r.value=parseInt(o.target.value,10))},[(C(!0),V(De,null,mt(D(t).servers,(o,a)=>(C(),V("option",{key:a,value:a},Ue(o.url),9,VEe))),128))],40,jEe)):be("",!0),Z(AEe,{value:D(t).servers[r.value],variables:D(t).variables},null,8,["value","variables"]),D(t).servers.length>1?(C(),he(D(pn),{key:1,icon:"ChevronDown"})):be("",!0)])]),Z(PEe,{value:D(t).variables},null,8,["value"])])]),D(t).description?(C(),V("div",qEe,[ae("div",zEe,[Z(D(fi),{value:D(t).description},null,8,["value"])])])):be("",!0)])):be("",!0)}}),WEe=je(KEe,[["__scopeId","data-v-899af270"]]),NB=e=>(lr("data-v-33a6f59a"),e=e(),cr(),e),GEe=["onClick"],YEe=["value"],XEe=["label"],QEe=["value"],JEe={class:"client-libraries-icon__more"},ZEe={key:1,class:"client-libraries-icon",height:"50",viewBox:"0 0 50 50",width:"50",xmlns:"http://www.w3.org/2000/svg"},e_e=NB(()=>ae("g",{fill:"currentColor","fill-rule":"nonzero"},[ae("path",{d:"M10.71 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M21.13 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M31.55 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0"})],-1)),t_e=[e_e],n_e=NB(()=>ae("span",null,"More",-1)),r_e=Se({__name:"ClientSelector",setup(e){const{httpClient:t,setHttpClient:n,getClientTitle:r,getTargetTitle:i}=ZS(),{availableTargets:s}=sp(),o=de(),a=[{targetKey:"shell",clientKey:"curl"},{targetKey:"ruby",clientKey:"native"},{targetKey:"node",clientKey:"undici"},{targetKey:"php",clientKey:"guzzle"},{targetKey:"python",clientKey:"python3"}].filter(d=>s.value.find(f=>f.key===d.targetKey&&f.clients.find(h=>h.key===d.clientKey))),l=d=>`programming-language-${d}`,c=d=>d.targetKey===t.targetKey&&d.clientKey===t.clientKey,u=d=>a.some(f=>f.targetKey===d.targetKey&&f.clientKey===d.clientKey);return(d,f)=>(C(),V("div",{ref_key:"containerRef",ref:o,class:"client-libraries-content"},[(C(!0),V(De,null,mt(D(a),h=>(C(),V("div",{key:h.clientKey,class:ct(["client-libraries rendered-code-sdks",{"client-libraries__active":c(h)}]),onClick:()=>D(n)(h)},[ae("div",{class:ct(`client-libraries-icon__${h.targetKey}`)},[Z(D(pn),{class:"client-libraries-icon",icon:l(h.targetKey)},null,8,["icon"])],2),ae("span",null,Ue(D(i)(h)),1)],10,GEe))),128)),ae("div",{class:ct(["client-libraries client-libraries__select",{"client-libraries__active":D(t)&&!u(D(t))}])},[ae("select",{class:"language-select",value:JSON.stringify(D(t)),onInput:f[0]||(f[0]=h=>D(n)(JSON.parse(h.target.value)))},[(C(!0),V(De,null,mt(D(s),h=>(C(),V("optgroup",{key:h.key,label:h.title},[(C(!0),V(De,null,mt(h.clients,p=>(C(),V("option",{key:p.key,value:JSON.stringify({targetKey:h.key,clientKey:p.key})},Ue(D(r)({targetKey:h.key,clientKey:p.key})),9,QEe))),128))],8,XEe))),128))],40,YEe),ae("div",JEe,[D(t)&&!u(D(t))?(C(),V("div",{key:0,class:ct(`client-libraries-icon__${D(t).targetKey}`)},[Z(D(pn),{class:"client-libraries-icon",icon:l(D(t).targetKey)},null,8,["icon"])],2)):(C(),V("svg",ZEe,t_e))]),n_e],2)],512))}}),i_e=je(r_e,[["__scopeId","data-v-33a6f59a"]]),s_e=e=>(lr("data-v-a067531c"),e=e(),cr(),e),o_e=s_e(()=>ae("div",{class:"client-libraries-heading"},"Client Libraries",-1)),a_e={class:"selected-client card-footer",muted:""},l_e=Se({__name:"ClientLibraries",setup(e){const{httpTargetTitle:t,httpClientTitle:n}=ZS();return(r,i)=>(C(),V("div",null,[o_e,ae("div",null,[Z(i_e)]),ae("div",a_e,Ue(D(n))+" "+Ue(D(t)),1)]))}}),c_e=je(l_e,[["__scopeId","data-v-a067531c"]]),u_e={},d_e={class:"badge"};function f_e(e,t){return C(),V("div",d_e,[Be(e.$slots,"default",{},void 0,!0)])}const ph=je(u_e,[["render",f_e],["__scopeId","data-v-190574ac"]]),ek=Se({__name:"IntersectionObserver",props:{id:{},is:{}},emits:["intersecting"],setup(e,{emit:t}){const n=e,r=t,i=de(),s=a=>{const l=a.offsetHeight;return`${l/2}px 0px ${l/2}px 0px`},o=a=>a.offsetHeight<window.innerHeight?.8:.5;return Rt(()=>{if(i.value){const a={rootMargin:s(i.value),threshold:o(i.value)};jH(i,([{isIntersecting:l}])=>{l&&n.id&&r("intersecting")},a)}}),(a,l)=>(C(),he(Di(a.is??"div"),{id:a.id,ref_key:"intersectionObserverRef",ref:i},{default:X(()=>[Be(a.$slots,"default")]),_:3},8,["id"]))}}),h_e=Se({__name:"Section",props:{id:{},label:{}},setup(e){const t=e,{getSectionId:n,hash:r,isIntersectionEnabled:i,pathRouting:s}=Tr(),{setCollapsedSidebarItem:o}=as();function a(){var l;if(!t.label||!i.value)return;const c=new URL(window.location.href),u=t.id??"";s.value?c.pathname=s.value.basePath+"/"+u:c.hash=u,r.value=u,window.history.replaceState({},"",c),(l=t.id)!=null&&l.startsWith("model")&&o(n(t.id),!0)}return(l,c)=>(C(),he(ek,{is:"section",id:l.id,class:"section",onIntersecting:a},{default:X(()=>[Be(l.$slots,"default",{},void 0,!0)]),_:3},8,["id"]))}}),ud=je(h_e,[["__scopeId","data-v-0494f9f3"]]),p_e={class:"section-accordion-button-content"},m_e={key:0,class:"section-accordion-button-actions"},g_e={key:0,class:"section-accordion-description"},b_e={class:"section-accordion-content-card"},y_e=Se({__name:"SectionAccordion",props:{id:{},transparent:{type:Boolean}},setup(e){const t=de(),n=HH(t);return(r,i)=>(C(),he(ek,{id:r.id,class:"section-wrapper"},{default:X(()=>[Z(D(j0),{as:"section",class:ct(["section-accordion",{"section-accordion-transparent":r.transparent}])},{default:X(({open:s})=>[Z(D(V0),{ref_key:"button",ref:t,class:"section-accordion-button"},{default:X(()=>[ae("div",p_e,[Be(r.$slots,"title",{},void 0,!0)]),r.$slots.actions?(C(),V("div",m_e,[Be(r.$slots,"actions",{active:D(n)||s},void 0,!0)])):be("",!0),Z(D(pn),{class:"section-accordion-chevron",icon:s?"ChevronDown":"ChevronRight"},null,8,["icon"])]),_:2},1536),Z(D(q0),{class:"section-accordion-content"},{default:X(()=>[r.$slots.description?(C(),V("div",g_e,[Be(r.$slots,"description",{},void 0,!0)])):be("",!0),ae("div",b_e,[Be(r.$slots,"default",{},void 0,!0)])]),_:3})]),_:3},8,["class"])]),_:3},8,["id"]))}}),CB=je(y_e,[["__scopeId","data-v-07cabcb0"]]),v_e={},E_e={class:"section-column"};function __e(e,t){return C(),V("div",E_e,[Be(e.$slots,"default",{},void 0,!0)])}const Au=je(v_e,[["render",__e],["__scopeId","data-v-d64e7382"]]),w_e={},T_e={class:"section-columns"};function S_e(e,t){return C(),V("div",T_e,[Be(e.$slots,"default",{},void 0,!0)])}const tk=je(w_e,[["render",S_e],["__scopeId","data-v-8b9602bf"]]),k_e={},A_e={class:"section-container"};function x_e(e,t){return C(),V("div",A_e,[Be(e.$slots,"default",{},void 0,!0)])}const op=je(k_e,[["render",x_e],["__scopeId","data-v-34b26958"]]),N_e={class:"section-accordion-wrapper"},C_e={class:"section-accordion-title"},O_e=Se({__name:"SectionContainerAccordion",setup(e){return(t,n)=>(C(),V("div",N_e,[Z(D(j0),{as:"div",class:"section-accordion",defaultOpen:""},{default:X(({open:r})=>[Z(D(V0),{class:"section-accordion-button"},{default:X(()=>[Z(D(pn),{class:"section-accordion-chevron",icon:r?"ChevronDown":"ChevronRight"},null,8,["icon"]),ae("div",C_e,[Be(t.$slots,"title",{},void 0,!0)])]),_:2},1024),Z(D(q0),{class:"section-accordion-content"},{default:X(()=>[Be(t.$slots,"default",{},void 0,!0)]),_:3})]),_:3})]))}}),OB=je(O_e,[["__scopeId","data-v-2049975e"]]),D_e=Se({__name:"LoadingSkeleton",props:{lines:{default:1}},setup(e){return(t,n)=>(C(!0),V(De,null,mt([...Array(t.lines).keys()],r=>(C(),V("div",{key:r,class:ct(["loading",{"single-line":t.lines===1}])},null,2))),128))}}),DB=je(D_e,[["__scopeId","data-v-c90b2c46"]]),I_e={class:"section-content"},R_e=Se({__name:"SectionContent",props:{loading:{type:Boolean,default:!1}},setup(e){return(t,n)=>(C(),V("div",I_e,[t.loading?(C(),he(DB,{key:1,lines:8})):Be(t.$slots,"default",{key:0},void 0,!0)]))}}),dd=je(R_e,[["__scopeId","data-v-9735459e"]]),P_e=Se({__name:"SectionHeader",props:{loading:{type:Boolean,default:!1},tight:{type:Boolean,default:!1},level:{default:1}},setup(e){return(t,n)=>t.loading?(C(),he(DB,{key:0})):(C(),he(Di(`h${t.level}`),{key:1,class:ct(["section-header",{tight:t.tight}])},{default:X(()=>[Be(t.$slots,"default",{},void 0,!0)]),_:3},8,["class"]))}}),Va=je(P_e,[["__scopeId","data-v-3bd1b9f0"]]),L_e={key:0,class:"introduction-description"},M_e=Se({__name:"Description",props:{value:{}},setup(e){const t=e,n=`components-Content-Introduction-Description-sections${dT(t.value)}`,r=$H(async()=>{if(!t.value)return[];const c=await Xg(t.value),u=UT(c);return await Promise.all(vve(t.value,u).map(async d=>({heading:(await Xg(d))[0],content:d})))},zu[n]??[]),{getHeadingId:i,hash:s,isIntersectionEnabled:o,pathRouting:a}=Tr();function l(c=""){if(!o.value)return;const u=new URL(window.location.href);a.value?u.pathname=a.value.basePath+"/"+c:u.hash=c,s.value=c,window.history.replaceState({},"",u)}return So(async()=>{const c=ec();await wo(1),c.payload.data[n]=r.value}),(c,u)=>c.value?(C(),V("div",L_e,[(C(!0),V(De,null,mt(D(r),(d,f)=>(C(),V(De,{key:f},[d.heading?(C(),he(ek,{key:0,id:D(i)(d.heading),class:"introduction-description-heading",onIntersecting:()=>l(D(i)(d.heading))},{default:X(()=>[Z(D(fi),{value:d.content,withImages:""},null,8,["value"])]),_:2},1032,["id","onIntersecting"])):(C(),he(D(fi),{key:1,value:d.content,withImages:""},null,8,["value"]))],64))),128))])):be("",!0)}}),$_e=je(M_e,[["__scopeId","data-v-5e475391"]]),F_e={class:"download"},B_e={class:"download-cta"},U_e=Se({__name:"DownloadSpec",props:{specTitle:{}},setup(e){const t=e,n=ln(pB),r=()=>{mB.emit({id:"",specTitle:t.specTitle})};return(i,s)=>{var o;return C(),V("div",F_e,[ae("div",B_e,[(o=D(n))!=null&&o()?be("",!0):(C(),V("button",{key:0,class:"download-button",type:"button",onClick:r}," Download OpenAPI Spec "))])])}}}),H_e=je(U_e,[["__scopeId","data-v-810904a4"]]),j_e={class:"badges"},V_e={class:"sticky-cards"},q_e=Se({__name:"Introduction",props:{info:{},parsedSpec:{}},setup(e){const t=e,n=new PR,r=ue(()=>t.parsedSpec.openapi??t.parsedSpec.swagger??""),i=ue(()=>n.slug(t.info.title??""));return(s,o)=>(C(),he(D(op),null,{default:X(()=>[Z(D(ud),{class:"introduction-section"},{default:X(()=>[Z(D(dd),{loading:!s.info.description&&!s.info.title},{default:X(()=>[Z(D(tk),null,{default:X(()=>[Z(D(Au),null,{default:X(()=>[ae("div",j_e,[s.info.version?(C(),he(D(ph),{key:0},{default:X(()=>[Pe(Ue(s.info.version),1)]),_:1})):be("",!0),r.value?(C(),he(D(ph),{key:1},{default:X(()=>[Pe(" OAS "+Ue(r.value),1)]),_:1})):be("",!0)]),Z(D(Va),{level:1,loading:!s.info.title,tight:""},{default:X(()=>[Pe(Ue(s.info.title),1)]),_:1},8,["loading"]),Z(H_e,{specTitle:i.value},null,8,["specTitle"]),Z($_e,{value:s.info.description},null,8,["value"])]),_:1}),s.$slots.aside?(C(),he(D(Au),{key:0},{default:X(()=>[ae("div",V_e,[Be(s.$slots,"aside",{},void 0,!0)])]),_:3})):be("",!0)]),_:3})]),_:3},8,["loading"]),Be(s.$slots,"after",{},void 0,!0)]),_:3})]),_:3}))}}),z_e=je(q_e,[["__scopeId","data-v-30c2e131"]]),K_e=Symbol(),w_=kw(K_e),u0=Se({__name:"Lazy",props:{id:{},isLazy:{type:Boolean,default:!0},lazyTimeout:{default:0}},setup(e){const t=e,n=(i=()=>{})=>{typeof window>"u"||("requestIdleCallback"in window?setTimeout(()=>window.requestIdleCallback(i),t.lazyTimeout):setTimeout(()=>Kn(i),t.lazyTimeout??300))},r=de(!t.isLazy);return t.isLazy?n(()=>{r.value=!0,t.id&&Kn(()=>w_.emit({id:t.id}))}):t.id&&Kn(()=>w_.emit({id:t.id})),(i,s)=>r.value?Be(i.$slots,"default",{key:0}):be("",!0)}}),W_e={key:0,class:"screenreader-only"},G_e=Se({__name:"ScreenReader",props:{if:{type:Boolean,default:!0}},setup(e){return(t,n)=>t.$props.if?(C(),V("span",W_e,[Be(t.$slots,"default",{},void 0,!0)])):Be(t.$slots,"default",{key:1},void 0,!0)}}),IB=je(G_e,[["__scopeId","data-v-681ebf2c"]]),Y_e=e=>(lr("data-v-d9801d4e"),e=e(),cr(),e),X_e={class:"label"},Q_e={class:"anchor"},J_e=Y_e(()=>ae("span",null,"​",-1)),Z_e=Se({__name:"Anchor",props:{id:{}},setup(e){const{copyToClipboard:t}=cd(),n=r=>{const i=new URL(window.location.href);return i.hash=r,i.toString()};return(r,i)=>(C(),V("span",X_e,[Be(r.$slots,"default",{},void 0,!0),ae("span",Q_e,[J_e,ae("button",{class:"anchor-copy",type:"button",onClick:i[0]||(i[0]=Mu(s=>D(t)(n(r.id)),["stop"]))},[Pe(" # "),Z(IB,null,{default:X(()=>[Pe('Copy link to "'),Be(r.$slots,"default",{},void 0,!0),Pe('"')]),_:3})])])]))}}),qa=je(Z_e,[["__scopeId","data-v-d9801d4e"]]),ewe={},twe={class:"scalar-card"};function nwe(e,t){return C(),V("div",twe,[Be(e.$slots,"default",{},void 0,!0)])}const sy=je(ewe,[["render",nwe],["__scopeId","data-v-dcabb131"]]),rwe=Se({__name:"CardContent",props:{muted:{type:Boolean},contrast:{type:Boolean},frameless:{type:Boolean},transparent:{type:Boolean},borderless:{type:Boolean}},setup(e){return(t,n)=>(C(),V("div",{class:ct(["scalar-card-content",{"scalar-card--muted":t.muted,"scalar-card--contrast":t.contrast,"scalar-card--frameless":t.frameless,"scalar-card--transparent":t.transparent,"scalar-card--borderless":t.borderless}])},[Be(t.$slots,"default",{},void 0,!0)],2))}}),fd=je(rwe,[["__scopeId","data-v-5312c2e0"]]),iwe={class:"scalar-card-header-slots"},swe={class:"scalar-card-header-slot scalar-card-header-title"},owe={class:"scalar-card-header-slot scalar-card-header-actions"},awe=Se({__name:"CardHeader",props:{muted:{type:Boolean},contrast:{type:Boolean},frameless:{type:Boolean},transparent:{type:Boolean},borderless:{type:Boolean}},setup(e){const t=e;return(n,r)=>(C(),he(fd,ko(t,{class:"scalar-card-header"}),{default:X(()=>[ae("div",iwe,[ae("div",swe,[Be(n.$slots,"default",{},void 0,!0)]),ae("div",owe,[Be(n.$slots,"actions",{},void 0,!0)])])]),_:3},16))}}),oy=je(awe,[["__scopeId","data-v-bbd0c20a"]]),lwe=Se({__name:"CardFooter",props:{muted:{type:Boolean},contrast:{type:Boolean},frameless:{type:Boolean},transparent:{type:Boolean},borderless:{type:Boolean}},setup(e){const t=e;return(n,r)=>(C(),he(fd,vi(Zr(t)),{default:X(()=>[Be(n.$slots,"default",{},void 0,!0)]),_:3},16))}}),nk=je(lwe,[["__scopeId","data-v-918ab8d6"]]),cwe=Se({__name:"CardTabHeader",emits:["change"],setup(e,{emit:t}){const n=t,r=i=>{n("change",i)};return(i,s)=>(C(),he(oy,{class:"scalar-card-header-tabs"},{actions:X(()=>[Be(i.$slots,"actions",{},void 0,!0)]),default:X(()=>[Z(D(iR),{onChange:r},{default:X(()=>[Z(D(sR),{class:"tab-list custom-scroll"},{default:X(()=>[Be(i.$slots,"default",{},void 0,!0)]),_:3})]),_:3})]),_:3}))}}),uwe=je(cwe,[["__scopeId","data-v-6a91b57c"]]),dwe=Se({__name:"CardTab",setup(e){return(t,n)=>(C(),he(D(oR),{as:"template"},{default:X(({selected:r})=>[ae("button",{class:ct({tab:!0,"tab-selected":r}),type:"button"},[ae("span",null,[Be(t.$slots,"default",{},void 0,!0)])],2)]),_:3}))}}),fwe=je(dwe,[["__scopeId","data-v-f373ecc2"]]),hwe=["value"],pwe=["label"],mwe=["value"],gwe=["value"],rk=Se({__name:"TextSelect",props:{modelValue:{},options:{}},emits:["update:modelValue"],setup(e){return(t,n)=>(C(),V("div",{class:ct(["text-select",t.options.length===1?"text-select--single-option":""])},[ae("span",null,[Be(t.$slots,"default")]),ae("select",{value:t.modelValue,onInput:n[0]||(n[0]=r=>t.$emit("update:modelValue",r.target.value))},[(C(!0),V(De,null,mt(t.options,r=>(C(),V(De,{key:r.value},[r.options?(C(),V("optgroup",{key:0,label:r.label},[(C(!0),V(De,null,mt(r.options,i=>(C(),V("option",{key:i.value,value:i.value},Ue(i.label),9,mwe))),128))],8,pwe)):(C(),V("option",{key:r.value,value:r.value},Ue(r.label),9,gwe))],64))),128))],40,hwe)],2))}}),bwe={class:"request-header"},ywe=Se({__name:"CustomRequestExamples",props:{operation:{},examples:{}},setup(e){const t=e,n=de(0),r=ue(()=>({C:"c","C#":"csharp",Go:"go",HTML:"html",Java:"java",JavaScript:"javascript",Kotlin:"kotlin","Objective-C":"objc",PowerShell:"powershell",Python:"python",Ruby:"ruby",Shell:"shell",Swift:"swift",TypeScript:"javascript",cURL:"shell"})[t.examples[n.value].lang]??t.examples[n.value].lang),i=ue(()=>t.examples[n.value]);dt(t.examples,()=>{t.examples[n.value]==="undefined"&&(n.value=0)});const{copyToClipboard:s}=cd();return(o,a)=>(C(),he(D(sy),{class:"dark-mode"},{default:X(()=>[Z(D(oy),{muted:""},{actions:X(()=>[Z(rk,{class:"request-client-picker",modelValue:n.value,options:o.examples.map((l,c)=>({value:c.toString(),label:l.label})),"onUpdate:modelValue":a[0]||(a[0]=l=>(n.value=parseInt(l),10))},{default:X(()=>[Pe(Ue(i.value.label),1)]),_:1},8,["modelValue","options"]),ae("button",{class:"copy-button",type:"button",onClick:a[1]||(a[1]=l=>D(s)(i.value.source.trim()))},[Z(D(pn),{icon:"Clipboard",width:"10px"})])]),default:X(()=>[ae("div",bwe,[Z(D(uc),{class:"request-method",method:o.operation.httpVerb},null,8,["method"]),Be(o.$slots,"header",{},void 0,!0)])]),_:3}),Z(D(fd),{borderless:"",class:"request-editor-section custom-scroll",frameless:""},{default:X(()=>[Z(D(eo),{content:i.value.source.trim(),lang:r.value,lineNumbers:""},null,8,["content","lang"])]),_:1}),o.$slots.footer?(C(),he(D(nk),{key:0,class:"scalar-card-footer",contrast:""},{default:X(()=>[Be(o.$slots,"footer",{},void 0,!0)]),_:3})):be("",!0)]),_:3}))}}),vwe=je(ywe,[["__scopeId","data-v-18ba624d"]]),Ewe={class:"schema-type"},_we=["title"],wwe=Se({__name:"SchemaHeading",props:{value:{},name:{}},setup(e){return(t,n)=>{var r,i,s,o,a,l;return C(),V("span",Ewe,[ae("span",{class:"schema-type-icon",title:typeof t.value.type=="string"?t.value.type:Array.isArray(t.value.type)?t.value.type.join(" | "):"unkown type"},[t.value.type==="object"?(C(),V(De,{key:0},[Pe(" {} ")],64)):be("",!0),t.value.type==="array"?(C(),V(De,{key:1},[Pe(" [] ")],64)):be("",!0),t.value.enum?(C(),V(De,{key:2},[Pe(" enum ")],64)):be("",!0)],8,_we),(i=(r=t.value)==null?void 0:r.xml)!=null&&i.name&&((o=(s=t.value)==null?void 0:s.xml)==null?void 0:o.name)!=="##default"?(C(),V(De,{key:0},[Pe(" <"+Ue((l=(a=t.value)==null?void 0:a.xml)==null?void 0:l.name)+" /> ",1)],64)):t.name?(C(),V(De,{key:1},[Pe(Ue(t.name),1)],64)):(C(),V(De,{key:2},[Pe(Ue(t.value.type),1)],64))])}}}),RB=je(wwe,[["__scopeId","data-v-6c5c3c96"]]),Twe={key:0,class:"property-detail-prefix"},Swe={key:1,class:"property-detail-value"},kwe={key:2,class:"property-detail-value"},Awe=Se({__name:"SchemaPropertyDetail",props:{truncate:{type:Boolean},code:{type:Boolean}},setup(e){return(t,n)=>(C(),V("span",{class:ct(["property-detail",{"property-detail-truncate":t.truncate}])},[t.$slots.prefix?(C(),V("div",Twe,[Be(t.$slots,"prefix",{},void 0,!0),Pe("  ")])):be("",!0),t.code?(C(),V("code",Swe,[Be(t.$slots,"default",{},void 0,!0)])):(C(),V("span",kwe,[Be(t.$slots,"default",{},void 0,!0)]))],2))}}),Bi=je(Awe,[["__scopeId","data-v-16d94ef5"]]),xwe={class:"property-heading"},Nwe={key:0,class:"property-name"},Cwe={key:1,class:"property-additional"},Owe={key:2,class:"property-deprecated"},Dwe={key:3,class:"property-required"},Iwe={key:4,class:"property-details"},Rwe={key:5,class:"property-write-only"},Pwe={key:6,class:"property-read-only"},Lwe=Se({__name:"SchemaPropertyHeading",props:{value:{},enum:{type:Boolean},required:{type:Boolean,default:!1},additional:{type:Boolean}},setup(e){const t=["oneOf","anyOf","allOf","not"];return(n,r)=>{var i,s,o,a;return C(),V("div",xwe,[n.$slots.name?(C(),V("div",Nwe,[Be(n.$slots,"name",{},void 0,!0)])):be("",!0),n.additional?(C(),V("div",Cwe," additional properties ")):be("",!0),(i=n.value)!=null&&i.deprecated?(C(),V("div",Owe,[Z(D(ph),null,{default:X(()=>[Pe("deprecated")]),_:1})])):be("",!0),n.required?(C(),V("div",Dwe," required ")):be("",!0),(s=n.value)!=null&&s.type?(C(),V("div",Iwe,[n.additional?(C(),he(Bi,{key:0},{prefix:X(()=>[Pe("key:")]),default:X(()=>[Pe(" string ")]),_:1})):be("",!0),Z(Bi,null,Lu({default:X(()=>{var l,c,u;return[(c=(l=n.value)==null?void 0:l.items)!=null&&c.type?(C(),V(De,{key:0},[Pe(Ue(n.value.type)+" "+Ue(n.value.items.type)+"[] ",1)],64)):(C(),V(De,{key:1},[Pe(Ue(Array.isArray(n.value.type)?n.value.type.join(" | "):n.value.type)+" "+Ue((u=n.value)!=null&&u.nullable?" | nullable":""),1)],64)),n.value.minItems||n.value.maxItems?(C(),V(De,{key:2},[Pe(Ue(n.value.minItems)+"…"+Ue(n.value.maxItems),1)],64)):be("",!0)]}),_:2},[n.additional?{name:"prefix",fn:X(()=>[Pe("value:")]),key:"0"}:void 0]),1024),n.value.minLength?(C(),he(Bi,{key:1},{prefix:X(()=>[Pe("min:")]),default:X(()=>[Pe(" "+Ue(n.value.minLength),1)]),_:1})):be("",!0),n.value.maxLength?(C(),he(Bi,{key:2},{prefix:X(()=>[Pe("max:")]),default:X(()=>[Pe(" "+Ue(n.value.maxLength),1)]),_:1})):be("",!0),n.value.uniqueItems?(C(),he(Bi,{key:3},{default:X(()=>[Pe(" unique! ")]),_:1})):be("",!0),n.value.format?(C(),he(Bi,{key:4},{default:X(()=>[Pe(Ue(n.value.format),1)]),_:1})):be("",!0),n.value.minimum?(C(),he(Bi,{key:5},{prefix:X(()=>[Pe("min:")]),default:X(()=>[Pe(" "+Ue(n.value.minimum),1)]),_:1})):be("",!0),n.value.maximum?(C(),he(Bi,{key:6},{prefix:X(()=>[Pe("max:")]),default:X(()=>[Pe(" "+Ue(n.value.maximum),1)]),_:1})):be("",!0),n.value.pattern?(C(),he(Bi,{key:7,code:"",truncate:""},{default:X(()=>[Pe(Ue(n.value.pattern),1)]),_:1})):be("",!0),n.$props.enum?(C(),he(Bi,{key:8},{default:X(()=>[Pe("enum")]),_:1})):be("",!0),n.value.default?(C(),he(Bi,{key:9,truncate:""},{prefix:X(()=>[Pe("default:")]),default:X(()=>[Pe(" "+Ue(n.value.default),1)]),_:1})):be("",!0)])):be("",!0),(o=n.value)!=null&&o.writeOnly?(C(),V("div",Rwe," write-only ")):(a=n.value)!=null&&a.readOnly?(C(),V("div",Pwe," read-only ")):be("",!0),(C(!0),V(De,null,mt(t.filter(l=>{var c,u,d;return((c=n.value)==null?void 0:c[l])||((d=(u=n.value)==null?void 0:u.items)==null?void 0:d[l])}),l=>(C(),he(D(ph),{key:l},{default:X(()=>[Pe(Ue(l),1)]),_:2},1024))),128))])}}}),Mwe=je(Lwe,[["__scopeId","data-v-0b4351f0"]]),$we=e=>(lr("data-v-ca3c524d"),e=e(),cr(),e),Fwe={key:0,class:"property-description"},Bwe={key:1,class:"property-description"},Uwe={key:2,class:"property-example custom-scroll"},Hwe=$we(()=>ae("span",{class:"property-example-label"},"Example",-1)),jwe={class:"property-example-value"},Vwe={key:3,class:"property-enum"},qwe={class:"property-enum-values"},zwe={key:4,class:"children"},Kwe={key:0,class:"children"},Wwe={key:0,class:"property-rule"},Gwe={key:1,class:"property-rule"},Ywe=Se({__name:"SchemaProperty",props:{value:{},level:{default:0},name:{},required:{type:Boolean,default:!1},compact:{type:Boolean,default:!1},description:{},additional:{type:Boolean}},setup(e){const t={integer:{_default:"Integer numbers.",int32:"Signed 32-bit integers (commonly used integer type).",int64:"Signed 64-bit integers (long type)."},string:{date:"full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21","date-time":"the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z",password:"a hint to UIs to mask the input",byte:"base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",binary:"binary data, used to describe files"}},n=function(o,a){return a!=null&&a.properties||a!=null&&a.additionalProperties?null:o||(a==null?void 0:a.description)||null},r=function(o){return!o||!t[o.type]?null:t[o.type][o.format||"_default"]},i=function(o){var a;return(o==null?void 0:o.enum)||((a=o==null?void 0:o.items)==null?void 0:a.enum)||null},s=["oneOf","anyOf","allOf","not"];return(o,a)=>{var l,c,u,d,f,h,p,m,g;return C(),V("div",{class:ct(["property",[`property--level-${o.level}`,{"property--compact":o.compact,"property--deprecated":(l=o.value)==null?void 0:l.deprecated}]])},[Z(Mwe,{additional:o.additional,enum:!!i(o.value),required:o.required,value:o.value},Lu({_:2},[o.name?{name:"name",fn:X(()=>[Pe(Ue(o.name),1)]),key:"0"}:void 0]),1032,["additional","enum","required","value"]),n(o.description,o.value)?(C(),V("div",Fwe,[Z(D(fi),{value:n(o.description,o.value)},null,8,["value"])])):r(o.value)?(C(),V("div",Bwe,[Z(D(fi),{value:r(o.value)||""},null,8,["value"])])):be("",!0),(c=o.value)!=null&&c.example||(d=(u=o.value)==null?void 0:u.items)!=null&&d.example?(C(),V("div",Uwe,[Hwe,ae("code",jwe,Ue(o.value.example||((f=o.value)==null?void 0:f.items.example)),1)])):be("",!0),i(o.value)?(C(),V("div",Vwe,[ae("ul",qwe,[(C(!0),V(De,null,mt(i(o.value),b=>(C(),V("li",{key:b,class:"property-enum-value"},Ue(b),1))),128))])])):be("",!0),((h=o.value)==null?void 0:h.type)==="object"&&((p=o.value)!=null&&p.properties||(m=o.value)!=null&&m.additionalProperties)?(C(),V("div",zwe,[Z(_l,{compact:o.compact,level:o.level+1,value:o.value},null,8,["compact","level","value"])])):be("",!0),(g=o.value)!=null&&g.items?(C(),V(De,{key:5},[["object"].includes(o.value.items.type)?(C(),V("div",Kwe,[Z(_l,{compact:o.compact,level:o.level+1,value:o.value.items},null,8,["compact","level","value"])])):be("",!0)],64)):be("",!0),(C(),V(De,null,mt(s,b=>{var v,y,E;return C(),V(De,{key:b},[(v=o.value)!=null&&v[b]?(C(),V("div",Wwe,[(C(!0),V(De,null,mt(o.value[b],(T,w)=>(C(),he(_l,{key:w,compact:o.compact,level:o.level+1,value:T},null,8,["compact","level","value"]))),128))])):be("",!0),(E=(y=o.value)==null?void 0:y.items)!=null&&E[b]&&o.level<3?(C(),V("div",Gwe,[(C(!0),V(De,null,mt(o.value.items[b],(T,w)=>(C(),he(_l,{key:w,compact:o.compact,level:o.level+1,value:T},null,8,["compact","level","value"]))),128))])):be("",!0)],64)}),64))],2)}}}),El=je(Ywe,[["__scopeId","data-v-ca3c524d"]]),Xwe=e=>(lr("data-v-7f5d0941"),e=e(),cr(),e),Qwe={key:0,class:"schema-card-description"},Jwe=Xwe(()=>ae("polygon",{"fill-rule":"nonzero",points:"14 8 8 8 8 14 6 14 6 8 0 8 0 6 6 6 6 0 8 0 8 6 14 6"},null,-1)),Zwe=[Jwe],eTe=Se({__name:"Schema",props:{value:{},level:{default:0},name:{},compact:{type:Boolean},noncollapsible:{type:Boolean}},setup(e){const t=e,n=ue(()=>!(t.noncollapsible||t.level===0)),r=i=>t.noncollapsible&&i.stopPropagation();return(i,s)=>typeof i.value=="object"&&Object.keys(i.value).length?(C(),he(D(j0),{key:0,defaultOpen:i.noncollapsible},{default:X(({open:o})=>{var a;return[ae("div",{class:ct(["schema-card",[`schema-card--level-${i.level}`,{"schema-card--compact":i.compact,"schema-card--open":o}]])},[(a=i.value)!=null&&a.description?(C(),V("div",Qwe,[Z(D(fi),{value:i.value.description},null,8,["value"])])):be("",!0),ae("div",{class:ct(["schema-properties",{"schema-properties-open":o}])},[Ba(Z(D(V0),{as:i.noncollapsible?"div":"button",class:ct(["schema-card-title",{"schema-card-title--compact":i.compact}]),style:_r({top:`calc(var(--refs-header-height) + calc(var(--schema-title-height) * ${i.level}))`}),onClickCapture:r},{default:X(()=>{var l,c,u;return[i.compact?(C(),V(De,{key:0},[n.value?(C(),V("svg",{key:0,class:ct(["schema-card-title-icon",{"schema-card-title-icon--open":o}]),fill:"currentColor",height:"14",viewBox:"0 0 14 14",width:"14",xmlns:"http://www.w3.org/2000/svg"},Zwe,2)):be("",!0),o?(C(),V(De,{key:1},[Pe(" Hide "+Ue(((l=i.value)==null?void 0:l.title)??"Child Attributes"),1)],64)):(C(),V(De,{key:2},[Pe(" Show "+Ue(((c=i.value)==null?void 0:c.title)??"Child Attributes"),1)],64))],64)):(C(),V(De,{key:1},[n.value?(C(),he(D(pn),{key:0,class:ct(["schema-card-title-icon",{"schema-card-title-icon--open":o}]),icon:"ChevronRight",size:"md"},null,8,["class"])):be("",!0),Z(RB,{name:((u=i.value)==null?void 0:u.title)??i.name,value:i.value},null,8,["name","value"])],64))]}),_:2},1032,["as","class","style"]),[[Ua,!(i.noncollapsible&&i.compact)]]),Z(D(q0),{static:i.noncollapsible},{default:X(()=>{var l;return[i.value.properties||i.value.additionalProperties?(C(),V(De,{key:0},[i.value.properties?(C(!0),V(De,{key:0},mt(Object.keys((l=i.value)==null?void 0:l.properties),c=>{var u;return C(),he(El,{key:c,compact:i.compact,level:i.level,name:c,required:i.value.required&&i.value.required.length&&i.value.required.includes(c),value:(u=i.value.properties)==null?void 0:u[c]},null,8,["compact","level","name","required","value"])}),128)):be("",!0),i.value.additionalProperties?(C(),V(De,{key:1},[i.value.additionalProperties===!0||Object.keys(i.value.additionalProperties).length===0||!i.value.additionalProperties.type?(C(),he(El,{key:0,additional:"",compact:i.compact,level:i.level,noncollapsible:"",value:{type:"any",...i.value.additionalProperties}},null,8,["compact","level","value"])):(C(),he(El,{key:1,additional:"",compact:i.compact,level:i.level,noncollapsible:"",value:i.value.additionalProperties},null,8,["compact","level","value"]))],64)):be("",!0)],64)):(C(),he(El,{key:1,compact:i.compact,level:i.level,name:i.value.name,value:i.value},null,8,["compact","level","name","value"]))]}),_:1},8,["static"])],2)],2)]}),_:1},8,["defaultOpen"])):be("",!0)}}),_l=je(eTe,[["__scopeId","data-v-7f5d0941"]]),tTe={class:"parameter-item"},nTe={class:"parameter-item-container"},rTe=Se({__name:"ParameterItem",props:{parameter:{},showChildren:{type:Boolean,default:!1}},setup(e){return(t,n)=>(C(),V("li",tTe,[ae("div",nTe,[Z(D(El),{compact:"",description:t.parameter.description,level:0,name:t.parameter.name,noncollapsible:t.showChildren,required:t.parameter.required,value:t.parameter.schema},null,8,["description","name","noncollapsible","required","value"])])]))}}),iTe=je(rTe,[["__scopeId","data-v-f70ee55c"]]),sTe={key:0,class:"parameters"},oTe={class:"parameters-title"},aTe={class:"parameter-list"},lTe=Se({__name:"Parameters",props:{parameters:{},showChildren:{type:Boolean,default:!1}},setup(e){return(t,n)=>{var r;return(r=t.parameters)!=null&&r.length?(C(),V("div",sTe,[ae("div",oTe,[Be(t.$slots,"title",{},void 0,!0)]),ae("ul",aTe,[(C(!0),V(De,null,mt(t.parameters,i=>(C(),he(iTe,{key:i.name,parameter:i,showChildren:t.showChildren},null,8,["parameter","showChildren"]))),128))])])):be("",!0)}}}),qi=je(lTe,[["__scopeId","data-v-45fca787"]]),cTe={key:0},uTe={class:"request-body-title"},dTe=["value"],fTe={key:0,class:"request-body-description"},hTe={key:0,class:"request-body-schema"},pTe=Se({__name:"RequestBody",props:{requestBody:{}},setup(e){var t;const n=e,r=ue(()=>{var s;return(s=n.requestBody)!=null&&s.content?Object.keys(n.requestBody.content):[]}),i=de("application/json");return(t=n.requestBody)!=null&&t.content&&r.value.length>0&&(i.value=r.value[0]),(s,o)=>{var a,l,c,u;return n!=null&&n.requestBody?(C(),V("div",cTe,[ae("div",uTe,[Be(s.$slots,"title",{},void 0,!0),ae("div",{class:ct(["request-body-title-select",{"request-body-title-no-select":r.value.length<=1}])},[ae("span",null,Ue(i.value),1),n!=null&&n.requestBody&&r.value.length>1?Ba((C(),V("select",{key:0,"onUpdate:modelValue":o[0]||(o[0]=d=>i.value=d)},[(C(!0),V(De,null,mt((a=n.requestBody)==null?void 0:a.content,(d,f)=>(C(),V("option",{key:f,value:f},Ue(f),9,dTe))),128))],512)),[[gw,i.value]]):be("",!0)],2),n!=null&&n.requestBody.description?(C(),V("div",fTe,[Z(D(fi),{value:n.requestBody.description},null,8,["value"])])):be("",!0)]),(l=n==null?void 0:n.requestBody.content)!=null&&l[i.value]?(C(),V("div",hTe,[Z(D(_l),{compact:"",noncollapsible:"",value:(u=(c=n==null?void 0:n.requestBody.content)==null?void 0:c[i.value])==null?void 0:u.schema},null,8,["value"])])):be("",!0)])):be("",!0)}}}),ik=je(pTe,[["__scopeId","data-v-e095eb63"]]),mTe={class:"endpoint-details"},gTe={class:"endpoint-description"},bTe=Se({__name:"EndpointDetails",props:{operation:{}},setup(e){const t=e,{parameterMap:n}=QS(t),{responses:r}=JS(t.operation);return(i,s)=>{var o,a;return C(),V("div",mTe,[ae("div",gTe,[Z(D(fi),{value:i.operation.description,withImages:""},null,8,["value"])]),Z(qi,{parameters:D(n).path},{title:X(()=>[Pe("Path Parameters")]),_:1},8,["parameters"]),Z(qi,{parameters:D(n).query},{title:X(()=>[Pe("Query Parameters")]),_:1},8,["parameters"]),Z(qi,{parameters:D(n).header},{title:X(()=>[Pe("Headers")]),_:1},8,["parameters"]),Z(qi,{parameters:D(n).body,showChildren:""},{title:X(()=>[Pe("Body Parameters")]),_:1},8,["parameters"]),Z(qi,{parameters:D(n).formData},{title:X(()=>[Pe("Form Data")]),_:1},8,["parameters"]),(o=i.operation.information)!=null&&o.requestBody?(C(),he(ik,{key:0,requestBody:(a=i.operation.information)==null?void 0:a.requestBody},{title:X(()=>[Pe("Body")]),_:1},8,["requestBody"])):be("",!0),Z(qi,{parameters:D(r)},{title:X(()=>[Pe("Responses")]),_:1},8,["parameters"])])}}}),yTe={key:0},vTe=Se({__name:"EndpointPath",props:{path:{},deprecated:{type:Boolean}},setup(e){const t=e,n=i=>i.startsWith("{")&&i.endsWith("}"),r=ue(()=>t.path.split(/({[^}]+})/));return(i,s)=>(C(),V("span",{class:ct(["endpoint-path",{deprecated:i.deprecated}])},[(C(!0),V(De,null,mt(r.value,(o,a)=>(C(),V(De,{key:a},[n(o)?(C(),V("em",yTe,Ue(o),1)):(C(),V(De,{key:1},[Pe(Ue(o),1)],64))],64))),128))],2))}}),T_=je(vTe,[["__scopeId","data-v-a4eadd9b"]]);function ap(e){return e.reduce((t,n)=>(t[n.name]=n.value,t),{})}function ETe(e){return/\s|-/.test(e)}function Fs(e,t=0){let n=[],r=" ".repeat(t),i=" ".repeat(t+2);for(const[s,o]of Object.entries(e)){let a=ETe(s)?`'${s}'`:s;if(Array.isArray(o)){const l=o.map(c=>typeof c=="string"?`'${c}'`:c&&typeof c=="object"?Fs(c,t+2):c).join(`, ${i}`);n.push(`${i}${a}: [${l}]`)}else if(o&&typeof o=="object")n.push(`${i}${a}: ${Fs(o,t+2)}`);else if(typeof o=="string"){let l=`${o}`;if(o.startsWith("JSON.stringify")){const c=o.split(`
378
378
  `);c.length>1&&(l=c.map((u,d)=>d===0?u:`${i}${u}`).join(`
379
379
  `))}else l=`'${o}'`;n.push(`${i}${a}: ${l}`)}else n.push(`${i}${a}: ${o}`)}return`{
380
380
  ${n.join(`,
381
381
  `)}
382
- ${r}}`}function TTe(e){var t,n;const r={method:"GET",...e};r.method=r.method.toUpperCase();const i={method:r.method==="GET"?void 0:r.method},s=new URLSearchParams(r.queryString?ap(r.queryString):void 0),o=s.size?`?${s.toString()}`:"";(t=r.headers)!=null&&t.length&&(i.headers={},r.headers.forEach(l=>{i.headers[l.name]=l.value})),(n=r.cookies)!=null&&n.length&&(i.headers=i.headers||{},r.cookies.forEach(l=>{i.headers["Set-Cookie"]=i.headers["Set-Cookie"]?`${i.headers["Set-Cookie"]}; ${l.name}=${l.value}`:`${l.name}=${l.value}`})),Object.keys(i).forEach(l=>{i[l]===void 0&&delete i[l]}),r.postData&&(i.body=r.postData.text,r.postData.mimeType==="application/json"&&(i.body=`JSON.stringify(${Fs(JSON.parse(i.body))})`));const a=Object.keys(i).length?`, ${Fs(i)}`:"";return{target:"node",client:"undici",code:`import { request } from 'undici'
382
+ ${r}}`}function _Te(e){var t,n;const r={method:"GET",...e};r.method=r.method.toUpperCase();const i={method:r.method==="GET"?void 0:r.method},s=new URLSearchParams(r.queryString?ap(r.queryString):void 0),o=s.size?`?${s.toString()}`:"";(t=r.headers)!=null&&t.length&&(i.headers={},r.headers.forEach(l=>{i.headers[l.name]=l.value})),(n=r.cookies)!=null&&n.length&&(i.headers=i.headers||{},r.cookies.forEach(l=>{i.headers["Set-Cookie"]=i.headers["Set-Cookie"]?`${i.headers["Set-Cookie"]}; ${l.name}=${l.value}`:`${l.name}=${l.value}`})),Object.keys(i).forEach(l=>{i[l]===void 0&&delete i[l]}),r.postData&&(i.body=r.postData.text,r.postData.mimeType==="application/json"&&(i.body=`JSON.stringify(${Fs(JSON.parse(i.body))})`));const a=Object.keys(i).length?`, ${Fs(i)}`:"";return{target:"node",client:"undici",code:`import { request } from 'undici'
383
383
 
384
- const { statusCode, body } = await request('${r.url}${o}'${a})`}}function STe(e){var t,n;const r={method:"GET",...e};r.method=r.method.toUpperCase();const i={method:r.method==="GET"?void 0:r.method},s=new URLSearchParams(r.queryString?ap(r.queryString):void 0),o=s.size?`?${s.toString()}`:"";(t=r.headers)!=null&&t.length&&(i.headers={},r.headers.forEach(l=>{i.headers[l.name]=l.value})),(n=r.cookies)!=null&&n.length&&(i.headers=i.headers||{},r.cookies.forEach(l=>{i.headers["Set-Cookie"]=i.headers["Set-Cookie"]?`${i.headers["Set-Cookie"]}; ${l.name}=${l.value}`:`${l.name}=${l.value}`})),Object.keys(i).forEach(l=>{i[l]===void 0&&delete i[l]}),r.postData&&(i.body=r.postData.text,r.postData.mimeType==="application/json"&&(i.body=`JSON.stringify(${Fs(JSON.parse(i.body))})`));const a=Object.keys(i).length?`, ${Fs(i)}`:"";return{target:"node",client:"fetch",code:`fetch('${r.url}${o}'${a})`}}function kTe(e){var t,n;const r={method:"GET",...e};r.method=r.method.toUpperCase();const i={method:r.method==="GET"?void 0:r.method},s=new URLSearchParams(r.queryString?ap(r.queryString):void 0),o=s.size?`?${s.toString()}`:"";(t=r.headers)!=null&&t.length&&(i.headers={},r.headers.forEach(l=>{i.headers[l.name]=l.value})),(n=r.cookies)!=null&&n.length&&(i.headers=i.headers||{},r.cookies.forEach(l=>{i.headers["Set-Cookie"]=i.headers["Set-Cookie"]?`${i.headers["Set-Cookie"]}; ${l.name}=${l.value}`:`${l.name}=${l.value}`})),Object.keys(i).forEach(l=>{i[l]===void 0&&delete i[l]}),r.postData&&(i.body=r.postData.text,r.postData.mimeType==="application/json"&&(i.body=`JSON.stringify(${Fs(JSON.parse(i.body))})`));const a=Object.keys(i).length?`, ${Fs(i)}`:"";return{target:"js",client:"fetch",code:`fetch('${r.url}${o}'${a})`}}function ATe(e){var t,n;const r={method:"GET",...e};r.method=r.method.toUpperCase();const i={method:r.method==="GET"?void 0:r.method},s=new URLSearchParams(r.queryString?ap(r.queryString):void 0);s.size&&(i.query={},s.forEach((a,l)=>{i.query[l]=a})),(t=r.headers)!=null&&t.length&&(i.headers={},r.headers.forEach(a=>{i.headers[a.name]=a.value})),(n=r.cookies)!=null&&n.length&&(i.headers=i.headers||{},r.cookies.forEach(a=>{i.headers["Set-Cookie"]=i.headers["Set-Cookie"]?`${i.headers["Set-Cookie"]}; ${a.name}=${a.value}`:`${a.name}=${a.value}`})),Object.keys(i).forEach(a=>{i[a]===void 0&&delete i[a]}),r.postData&&(i.body=r.postData.text,r.postData.mimeType==="application/json"&&(i.body=JSON.parse(i.body)));const o=Object.keys(i).length?`, ${Fs(i)}`:"";return{target:"js",client:"ofetch",code:`ofetch('${r.url}'${o})`}}function xTe(e){var t,n;const r={method:"GET",...e};r.method=r.method.toUpperCase();const i={method:r.method==="GET"?void 0:r.method},s=new URLSearchParams(r.queryString?ap(r.queryString):void 0);s.size&&(i.query={},s.forEach((a,l)=>{i.query[l]=a})),(t=r.headers)!=null&&t.length&&(i.headers={},r.headers.forEach(a=>{i.headers[a.name]=a.value})),(n=r.cookies)!=null&&n.length&&(i.headers=i.headers||{},r.cookies.forEach(a=>{i.headers["Set-Cookie"]=i.headers["Set-Cookie"]?`${i.headers["Set-Cookie"]}; ${a.name}=${a.value}`:`${a.name}=${a.value}`})),Object.keys(i).forEach(a=>{i[a]===void 0&&delete i[a]}),r.postData&&(i.body=r.postData.text,r.postData.mimeType==="application/json"&&(i.body=JSON.parse(i.body)));const o=Object.keys(i).length?`, ${Fs(i)}`:"";return{target:"node",client:"ofetch",code:`ofetch('${r.url}'${o})`}}function p2(){const e=[TTe,STe,kTe,ATe,xTe];return{get(t,n,r){const i=this.findPlugin(t,n);if(i)return i(r)},print(t,n,r){var i;return(i=this.get(t,n,r))==null?void 0:i.code},targets(){return e.map(t=>t().target).filter((t,n,r)=>r.indexOf(t)===n)},clients(){return e.map(t=>t().client)},plugins(){return e.map(t=>{const n=t();return{target:n.target,client:n.client}})},findPlugin(t,n){return e.find(r=>{const i=r();return i.target===t&&i.client===n})},hasPlugin(t,n){return!!this.findPlugin(t,n)}}}const NTe=Se({__name:"ExamplePicker",props:{examples:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,i=de(Object.keys(n.examples)[0]);function s(a){a&&(i.value=a)}dt(()=>n.examples,()=>{s(Object.keys(n.examples)[0])},{immediate:!0}),dt(i,()=>{i.value&&r("update:modelValue",i.value)},{immediate:!0});function o(a){if(!a)return"Select an example";const l=n.examples[a];return(l==null?void 0:l.summary)??a}return(a,l)=>(C(),he(rk,{modelValue:i.value,"onUpdate:modelValue":l[0]||(l[0]=c=>i.value=c),class:"example-selector",options:Object.keys(a.examples).map(c=>({label:o(c),value:c}))},{default:X(()=>[Pe(Ue(o(i.value)),1)]),_:1},8,["modelValue","options"]))}}),PB=je(NTe,[["__scopeId","data-v-652a7e14"]]),CTe={class:"request-header"},OTe={class:"code-snippet"},DTe={key:0,class:"request-card-footer-addon"},ITe=Se({__name:"ExampleRequest",props:{operation:{}},setup(e){const t=e,n=`components-Content-Operation-Example-Request${dT(t.operation.path+t.operation.httpVerb+t.operation.operationId)}`,r=de(zu[n]??""),i=de(),{copyToClipboard:s}=cd(),{httpClient:o,setHttpClient:a,httpTargetTitle:l,httpClientTitle:c}=ZS(),{availableTargets:u}=sp(),{server:d}=zh(),{authentication:f}=Ku(),h=ue(()=>{var g,b,v,y,E,T,w;return((y=(v=(b=(g=t.operation.information)==null?void 0:g.requestBody)==null?void 0:b.content)==null?void 0:v["application/json"])==null?void 0:y.examples)&&Object.keys((w=(T=(E=t.operation.information)==null?void 0:E.requestBody)==null?void 0:T.content)==null?void 0:w["application/json"].examples).length>1}),p=ln(YS),m=async()=>{var g;const b=K3({url:YE(d)},sE(t.operation,{replaceVariables:!0},i.value),IT(f,((g=t.operation.information)==null?void 0:g.security)??(p==null?void 0:p())));try{return p2().hasPlugin(o.targetKey.replace("javascript","js"),o.clientKey)?p2().print(o.targetKey.replace("javascript","js"),o.clientKey,b)??"":await new wW(b).convert(o.targetKey,o.clientKey)}catch(v){return console.error("[ExampleRequest]",v),""}};return dt([()=>o,()=>d,()=>f,()=>i],async()=>{r.value=await m()},{deep:!0,immediate:!0}),So(async()=>{const g=ec();await wo(1),g.payload.data[n]=r.value}),ue(()=>bF({serverState:d,authenticationState:f,operation:t.operation,globalSecurity:p==null?void 0:p()})),(g,b)=>(C(),he(D(sy),{class:"dark-mode"},{default:X(()=>[Z(D(oy),{muted:""},{actions:X(()=>[Z(rk,{class:"request-client-picker",modelValue:JSON.stringify(D(o)),options:D(u).map(v=>({value:v.key,label:v.title,options:v.clients.map(y=>({value:JSON.stringify({targetKey:v.key,clientKey:y.key}),label:y.title}))})),"onUpdate:modelValue":b[0]||(b[0]=v=>D(a)(JSON.parse(v)))},{default:X(()=>[Pe(Ue(D(l))+" "+Ue(D(c)),1)]),_:1},8,["modelValue","options"]),ae("button",{class:"copy-button",type:"button",onClick:b[1]||(b[1]=v=>D(s)(r.value))},[Z(D(pn),{icon:"Clipboard",width:"10px"})])]),default:X(()=>[ae("div",CTe,[Z(D(uc),{as:"span",class:"request-method",method:g.operation.httpVerb},null,8,["method"]),Be(g.$slots,"header",{},void 0,!0)])]),_:3}),Z(D(fd),{borderless:"",class:"request-editor-section custom-scroll",frameless:""},{default:X(()=>[ae("div",OTe,[Z(D(eo),{content:r.value,hideCredentials:D(W$)(D(f)),lang:D(o).targetKey,lineNumbers:""},null,8,["content","hideCredentials","lang"])])]),_:1}),h.value||g.$slots.footer?(C(),he(D(nk),{key:0,class:"request-card-footer",contrast:""},{default:X(()=>{var v,y,E,T;return[h.value?(C(),V("div",DTe,[Z(PB,{class:"request-example-selector",examples:((T=(E=(y=(v=g.operation.information)==null?void 0:v.requestBody)==null?void 0:y.content)==null?void 0:E["application/json"])==null?void 0:T.examples)??[],"onUpdate:modelValue":b[2]||(b[2]=w=>i.value=w)},null,8,["examples"])])):be("",!0),Be(g.$slots,"footer",{},void 0,!0)]}),_:3})):be("",!0)]),_:3}))}}),LB=je(ITe,[["__scopeId","data-v-317d5c87"]]),RTe={key:0},PTe={key:1},LTe={key:0,class:"rule"},MTe={class:"rule-title"},$Te={class:"rule-items"},FTe={key:2,class:"empty-state"},BTe=Se({__name:"ExampleResponse",props:{response:{}},setup(e){const t=["oneOf","anyOf","not"],n=r=>r.reduce((i,s)=>({...i,...s}),{});return(r,i)=>{var s,o,a,l,c,u,d;return(s=r.response)!=null&&s.example?(C(),V("div",RTe,[Z(D(eo),{content:D(Jf)((o=r.response)==null?void 0:o.example),lang:"json"},null,8,["content"])])):(a=r.response)!=null&&a.schema?(C(),V("div",PTe,[(l=r.response)!=null&&l.schema.type?(C(),he(D(eo),{key:0,content:D(Jf)(D(Ln)((c=r.response)==null?void 0:c.schema,{emptyString:"…",mode:"read"})),lang:"json"},null,8,["content"])):be("",!0),(C(),V(De,null,mt(t,f=>{var h,p,m,g,b,v;return C(),V(De,{key:f},[(h=r.response)!=null&&h.schema[f]&&(((p=r.response)==null?void 0:p.schema[f].length)>1||f==="not")?(C(),V("div",LTe,[ae("div",MTe,Ue(f),1),ae("ol",$Te,[(C(!0),V(De,null,mt((m=r.response)==null?void 0:m.schema[f],(y,E)=>(C(),V("li",{key:E,class:"rule-item"},[Z(D(eo),{content:D(Ln)(y,{emptyString:"…",mode:"read"}),lang:"json"},null,8,["content"])]))),128))])])):(g=r.response)!=null&&g.schema[f]&&((b=r.response)==null?void 0:b.schema[f].length)===1?(C(),he(D(eo),{key:1,content:D(Ln)((v=r.response)==null?void 0:v.schema[f][0],{emptyString:"…",mode:"read"}),lang:"json"},null,8,["content"])):be("",!0)],64)}),64)),(u=r.response)!=null&&u.schema.allOf?(C(),he(D(eo),{key:1,content:n((d=r.response)==null?void 0:d.schema.allOf.map(f=>D(Ln)(f,{emptyString:"…",mode:"read"}))),lang:"json"},null,8,["content"])):be("",!0)])):(C(),V("div",FTe," No Body "))}}}),m2=je(BTe,[["__scopeId","data-v-800e8c7d"]]),UTe=e=>(lr("data-v-314905de"),e=e(),cr(),e),HTe={key:1,class:"scalar-card-checkbox"},jTe=UTe(()=>ae("span",{class:"scalar-card-checkbox-checkmark"},null,-1)),VTe={class:"scalar-card-container custom-scroll"},qTe={key:1,class:"response-description"},zTe=Se({__name:"PathResponses",props:{operation:{}},setup(e){const t=e,{copyToClipboard:n}=cd(),r=de(),i=ue(()=>{var f,h;return Object.keys(((h=(f=t==null?void 0:t.operation)==null?void 0:f.information)==null?void 0:h.responses)??{}).sort(p=>p==="default"?-1:0)}),s=ue(()=>!!l.value.examples),o=de(0),a=ue(()=>{var f,h;const p=i.value[o.value];return(h=(f=t.operation.information)==null?void 0:f.responses)==null?void 0:h[p]}),l=ue(()=>{var f;const h=G3((f=a.value)==null?void 0:f.content);return(h==null?void 0:h["application/json"])??(h==null?void 0:h["text/plain"])??a.value}),c=ue(()=>({...l.value,example:s.value&&r.value?l.value.examples[r.value].value??l.value.examples[r.value]:l.value.example})),u=f=>{o.value=f},d=de(!1);return(f,h)=>i.value.length?(C(),he(D(sy),{key:0},{default:X(()=>{var p;return[Z(D(fwe),{muted:"",x:"as",onChange:u},{actions:X(()=>{var m,g;return[(m=l.value)!=null&&m.example?(C(),V("button",{key:0,class:"code-copy",type:"button",onClick:h[0]||(h[0]=()=>{var b;return D(n)((b=l.value)==null?void 0:b.example)})},[Z(D(pn),{icon:"Clipboard",width:"10px",x:"asd"})])):be("",!0),(g=l.value)!=null&&g.schema?(C(),V("label",HTe,[Pe(" Show Schema "),Ba(ae("input",{"onUpdate:modelValue":h[1]||(h[1]=b=>d.value=b),class:"scalar-card-checkbox-input",type:"checkbox"},null,512),[[xh,d.value]]),jTe])):be("",!0)]}),default:X(()=>[(C(!0),V(De,null,mt(i.value,m=>(C(),he(D(pwe),{key:m},{default:X(()=>[Pe(Ue(m),1)]),_:2},1024))),128))]),_:1}),ae("div",VTe,[Z(D(fd),{muted:""},{default:X(()=>{var m;return[(m=l.value)!=null&&m.schema?(C(),V(De,{key:0},[d.value&&c.value?(C(),he(D(eo),{key:0,content:c.value,lang:"json"},null,8,["content"])):(C(),he(m2,{key:1,response:c.value},null,8,["response"]))],64)):(C(),he(m2,{key:1,response:c.value},null,8,["response"]))]}),_:1})]),(p=a.value)!=null&&p.description||s.value?(C(),he(D(nk),{key:0,class:"response-card-footer",muted:""},{default:X(()=>{var m,g;return[s.value?(C(),he(PB,{key:0,class:"response-example-selector",examples:(m=l.value)==null?void 0:m.examples,"onUpdate:modelValue":h[2]||(h[2]=b=>r.value=b)},null,8,["examples"])):(g=a.value)!=null&&g.description?(C(),V("div",qTe,[Z(D(fi),{class:"markdown",value:a.value.description},null,8,["value"])])):be("",!0)]}),_:1})):be("",!0)]}),_:1})):be("",!0)}}),MB=je(zTe,[["__scopeId","data-v-314905de"]]),KTe=e=>(lr("data-v-f44e2b65"),e=e(),cr(),e),WTe=KTe(()=>ae("span",null,"Test Request",-1)),GTe=Se({__name:"TryRequestButton",props:{operation:{}},setup(e){const t=ln(YS);return(n,r)=>(C(),he(D(uc),{as:"button",class:"show-api-client-button",method:n.operation.httpVerb,type:"button",onClick:r[0]||(r[0]=Mu(i=>{var s;return D(QE)(n.operation,(s=D(t))==null?void 0:s())},["stop"]))},{default:X(()=>[Z(D(pn),{icon:"PaperAirplane"}),WTe]),_:1},8,["method"]))}}),S_=je(GTe,[["__scopeId","data-v-f44e2b65"]]),YTe={class:"examples"},XTe=Se({__name:"Operation",props:{id:{},operation:{}},setup(e){const t=e,n=ue(()=>{var r;const i=["x-custom-examples","x-codeSamples","x-code-samples"];for(const s of i)if((r=t.operation.information)!=null&&r[s])return t.operation.information[s];return null});return(r,i)=>(C(),he(D(ud),{id:r.id,label:r.operation.name},{default:X(()=>[Z(D(dd),null,{default:X(()=>[Z(D(tk),null,{default:X(()=>[Z(D(Au),null,{default:X(()=>{var s,o;return[(s=r.operation.information)!=null&&s.deprecated?(C(),he(D(ph),{key:0},{default:X(()=>[Pe(" Deprecated ")]),_:1})):be("",!0),ae("div",{class:ct((o=r.operation.information)!=null&&o.deprecated?"deprecated":"")},[Z(D(Va),{level:3},{default:X(()=>[Z(D(qa),{id:r.id??""},{default:X(()=>[Pe(Ue(r.operation.name),1)]),_:1},8,["id"])]),_:1})],2),Z(vTe,{operation:r.operation},null,8,["operation"])]}),_:1}),Z(D(Au),null,{default:X(()=>[ae("div",YTe,[n.value?(C(),he(_we,{key:0,examples:n.value,operation:r.operation},{header:X(()=>{var s;return[Z(T_,{class:"example-path",deprecated:(s=r.operation.information)==null?void 0:s.deprecated,path:r.operation.path},null,8,["deprecated","path"])]}),footer:X(()=>[Z(S_,{operation:r.operation},null,8,["operation"])]),_:1},8,["examples","operation"])):(C(),he(LB,{key:1,operation:r.operation},{header:X(()=>{var s;return[Z(T_,{class:"example-path",deprecated:(s=r.operation.information)==null?void 0:s.deprecated,path:r.operation.path},null,8,["deprecated","path"])]}),footer:X(()=>[Z(S_,{operation:r.operation},null,8,["operation"])]),_:1},8,["operation"])),Z(D(MB),{operation:r.operation,style:{"margin-top":"12px"}},null,8,["operation"])])]),_:1})]),_:1})]),_:1})]),_:1},8,["id","label"]))}}),$B=je(XTe,[["__scopeId","data-v-9cd31f5d"]]),QTe={class:"endpoint-details-card"},JTe=Se({__name:"EndpointDetailsCard",props:{operation:{}},setup(e){const t=e,{parameterMap:n}=QS(t),{responses:r}=JS(t.operation);return(i,s)=>{var o;return C(),V("div",QTe,[Z(qi,{class:"endpoint-details-card-item",parameters:D(n).path},{title:X(()=>[Pe("Path Parameters")]),_:1},8,["parameters"]),Z(qi,{class:"endpoint-details-card-item",parameters:D(n).query},{title:X(()=>[Pe("Query Parameters")]),_:1},8,["parameters"]),Z(qi,{class:"endpoint-details-card-item",parameters:D(n).header},{title:X(()=>[Pe("Headers")]),_:1},8,["parameters"]),Z(ik,{class:"endpoint-details-card-item",requestBody:(o=i.operation.information)==null?void 0:o.requestBody},{title:X(()=>[Pe("Body")]),_:1},8,["requestBody"]),Z(qi,{class:"endpoint-details-card-item",parameters:D(r)},{title:X(()=>[Pe("Responses")]),_:1},8,["parameters"])])}}}),ZTe=je(JTe,[["__scopeId","data-v-f94bee14"]]),eSe={class:"endpoint-header"},tSe={class:"endpoint-details"},nSe={class:"endpoint-label"},rSe={class:"endpoint-label-path"},iSe={class:"endpoint-label-name"},sSe={class:"endpoint-content"},oSe=Se({__name:"OperationAccordion",props:{id:{},operation:{}},setup(e){const{copyToClipboard:t}=cd();return(n,r)=>(C(),he(D(CB),{id:n.id,class:"reference-endpoint",transparent:""},Lu({title:X(()=>[ae("h3",eSe,[ae("div",tSe,[Z(D(uc),{class:"endpoint-type",method:n.operation.httpVerb,short:""},null,8,["method"]),Z(D(qa),{id:n.id??"",class:"endpoint-anchor"},{default:X(()=>{var i;return[ae("div",nSe,[ae("div",rSe,[Z(T_,{deprecated:(i=n.operation.information)==null?void 0:i.deprecated,path:n.operation.path},null,8,["deprecated","path"])]),ae("div",iSe,Ue(n.operation.name),1)])]}),_:1},8,["id"])])])]),actions:X(({active:i})=>[i?(C(),he(S_,{key:0,operation:n.operation},null,8,["operation"])):(C(),he(D(pn),{key:1,class:"endpoint-try-hint",icon:"PaperAirplane"})),Z(D(qh),{class:"endpoint-copy",icon:"Clipboard",label:"Copy endpoint URL",size:"xs",variant:"ghost",onClick:r[0]||(r[0]=Mu(s=>D(t)(n.operation.path),["stop"]))})]),default:X(()=>[ae("div",sSe,[Z(ZTe,{operation:n.operation},null,8,["operation"]),Z(D(MB),{operation:n.operation},null,8,["operation"]),Z(LB,{operation:n.operation},null,8,["operation"])])]),_:2},[n.operation.description?{name:"description",fn:X(()=>[Z(D(fi),{value:n.operation.description,withImages:""},null,8,["value"])]),key:"0"}:void 0]),1032,["id"]))}}),aSe=je(oSe,[["__scopeId","data-v-f61893df"]]),lSe=Se({__name:"ShowMoreButton",props:{id:{}},setup(e){const{setCollapsedSidebarItem:t}=as();return(n,r)=>(C(),V("button",{class:"show-more",type:"button",onClick:r[0]||(r[0]=i=>D(t)(n.id,!0))},[Pe(" Show More "),Z(D(pn),{class:"show-more-icon",icon:"ChevronDown"})]))}}),FB=je(lSe,[["__scopeId","data-v-60a9fbab"]]),cSe={class:"endpoints"},uSe=["onClick"],dSe=Se({__name:"Endpoints",props:{id:{},tag:{}},emits:["observeAndNavigate"],setup(e,{emit:t}){const n=e,r=t,{getOperationId:i,getTagId:s}=Tr(),{setCollapsedSidebarItem:o}=as(),a=c=>{r("observeAndNavigate",c)};async function l(c){a(i(c,n.tag)),o(s(n.tag),!0)}return(c,u)=>(C(),he(D(ud),{id:c.id,label:c.tag.name.toUpperCase()},{default:X(()=>[Z(D(dd),null,{default:X(()=>[Z(D(tk),null,{default:X(()=>[Z(D(Au),null,{default:X(()=>[Z(D(Va),{level:2},{default:X(()=>[Z(D(qa),{id:D(s)(c.tag)},{default:X(()=>[Pe(Ue(c.tag["x-displayName"]??c.tag.name),1)]),_:1},8,["id"])]),_:1}),Z(D(fi),{value:c.tag.description,withImages:""},null,8,["value"])]),_:1}),Z(D(Au),null,{default:X(()=>{var d;return[((d=c.tag.operations)==null?void 0:d.length)>0?(C(),he(D(sy),{key:0,class:"scalar-card-sticky"},{default:X(()=>[Z(D(oy),{muted:""},{default:X(()=>[Pe("Endpoints")]),_:1}),Z(D(fd),{class:"custom-scroll",muted:""},{default:X(()=>[ae("div",cSe,[(C(!0),V(De,null,mt(c.tag.operations,f=>(C(),V("a",{key:D(i)(f,c.tag),class:"endpoint",onClick:h=>l(f)},[Z(D(uc),{method:f.httpVerb},null,8,["method"]),ae("span",null,Ue(f.path),1)],8,uSe))),128))])]),_:1})]),_:1})):be("",!0)]}),_:1})]),_:1})]),_:1})]),_:1},8,["id","label"]))}}),fSe=je(dSe,[["__scopeId","data-v-b209ef2d"]]),hSe=(e,t)=>{BH(e,t,{childList:!0,subtree:!0})},pSe=Se({__name:"Tag",props:{id:{},tag:{},spec:{}},setup(e){const t=e,n=de(null),{collapsedSidebarItems:r}=as(),{getTagId:i}=Tr(),s=c=>{var u;return((u=t.spec.tags)==null?void 0:u.length)!==1||(c==null?void 0:c.name)!=="default"||(c==null?void 0:c.description)!==""},o=c=>{window.location.href=`#${c}`},a=c=>{hSe(n,(u,d)=>{u.forEach(f=>{Array.from(f.addedNodes).some(h=>h instanceof HTMLElement&&h.id===c)&&(o(c),d.disconnect())})})},l=c=>{document.getElementById(c)?o(c):a(c)};return(c,u)=>(C(),he(D(op),{ref_key:"sectionContainerRef",ref:n,class:"tag-section-container"},{default:X(()=>{var d;return[s(c.tag)?(C(),he(fSe,{key:0,id:c.id,tag:c.tag,onObserveAndNavigate:l},null,8,["id","tag"])):be("",!0),!D(r)[D(i)(c.tag)]&&((d=c.tag.operations)==null?void 0:d.length)>1?(C(),he(FB,{key:1,id:c.id??""},null,8,["id"])):Be(c.$slots,"default",{key:2},void 0,!0)]}),_:3},512))}}),BB=je(pSe,[["__scopeId","data-v-7fef7ce7"]]),mSe=Se({__name:"TagAccordion",props:{tag:{},spec:{}},setup(e){const{getTagId:t}=Tr();return(n,r)=>(C(),he(D(OB),{class:"tag-section"},{title:X(()=>[Z(D(Va),{class:"tag-name",level:2},{default:X(()=>[Z(D(qa),{id:D(t)(n.tag)},{default:X(()=>[Pe(Ue(n.tag.name),1)]),_:1},8,["id"])]),_:1}),Z(D(fi),{class:"tag-description",value:n.tag.description,withImages:""},null,8,["value"])]),default:X(()=>[Be(n.$slots,"default",{},void 0,!0)]),_:3}))}}),gSe=je(mSe,[["__scopeId","data-v-f11e3b56"]]),bSe=Se({__name:"Loading",props:{layout:{default:"default"},parsedSpec:{}},setup(e){const t=e,n=de(!1),r=de([]),i=de([]),{getModelId:s,getSectionId:o,getTagId:a,hash:l,isIntersectionEnabled:c}=Tr(),u=de(t.layout!=="accordion"&&l.value);dt(()=>{var f;return(f=t.parsedSpec.tags)==null?void 0:f.length},f=>{var h,p;if(!l.value||typeof f!="number"||!t.parsedSpec.tags)return;const m=o();if(m.startsWith("tag")){let g=0;const b=((h=t.parsedSpec.tags)==null?void 0:h.findIndex(E=>a(E)===m))??0,v=l.value.match(/tag\/([^/]+)\/([^/]+)\/(.+)/);if((v==null?void 0:v.length)===4){const E=v[2],T="/"+v[3];g=(p=t.parsedSpec.tags[b])==null?void 0:p.operations.findIndex(({httpVerb:w,path:S})=>E===w&&T===S)}const y=t.parsedSpec.tags[b];if(!y)return;y.name!=="default"&&(n.value=m!==l.value&&m.startsWith("tag")),r.value.push({...y,lazyOperations:y.operations.slice(g,g+2)})}else if(l.value.startsWith("model")){const g=Object.keys(xs(t.parsedSpec)??{}),[,b]=l.value.toLowerCase().split("/"),v=l.value==="models"?0:g.findIndex(y=>y.toLowerCase()===b);if(v===-1)return;i.value=g.slice(v,v+3)}else o0(l.value),setTimeout(()=>c.value=!0,1e3)},{immediate:!0});const d=w_.on(({id:f})=>{const h=l.value;!h||f!==h||(d(),setTimeout(()=>{typeof window<"u"&&o0(h),u.value=!1,setTimeout(()=>c.value=!0,1e3)},300))});return Rt(()=>{l.value||setTimeout(()=>c.value=!0,1e3)}),(f,h)=>Ba((C(),V("div",{class:ct(["references-loading",{"references-loading-hidden-tag":n.value,"references-loading-top-spacer":r.value.length}])},[(C(!0),V(De,null,mt(r.value,p=>(C(),V(De,{key:p.id},[p.operations&&p.operations.length>0?(C(),he(D(BB),{key:0,spec:f.parsedSpec,tag:p},{default:X(()=>[(C(!0),V(De,null,mt(p.lazyOperations,m=>(C(),he(D($B),{key:`${m.httpVerb}-${m.operationId}`,operation:m,tag:p},null,8,["operation","tag"]))),128))]),_:2},1032,["spec","tag"])):be("",!0)],64))),128)),i.value.length?(C(),he(D(op),{key:0},{default:X(()=>[(C(!0),V(De,null,mt(i.value,p=>(C(),he(D(ud),{key:p,label:p},{default:X(()=>{var m;return[(m=D(xs)(f.parsedSpec))!=null&&m[p]?(C(),he(D(dd),{key:0},{default:X(()=>{var g;return[Z(D(Va),{level:2},{default:X(()=>[Z(D(qa),{id:D(s)(p)},{default:X(()=>{var b;return[Pe(Ue(((b=D(xs)(f.parsedSpec))==null?void 0:b[p]).title??p),1)]}),_:2},1032,["id"])]),_:2},1024),Z(D(_l),{name:p,noncollapsible:"",value:(g=D(xs)(f.parsedSpec))==null?void 0:g[p]},null,8,["name","value"])]}),_:2},1024)):be("",!0)]}),_:2},1032,["label"]))),128))]),_:1})):be("",!0)],2)),[[Ua,u.value]])}}),ySe=e=>(lr("data-v-f19478dd"),e=e(),cr(),e),vSe=ySe(()=>ae("div",{id:"models"},null,-1)),ESe=Se({__name:"Models",props:{schemas:{}},setup(e){const t=e,{collapsedSidebarItems:n}=as(),{getModelId:r}=Tr(),i=ue(()=>Object.keys(t.schemas??{}).length<=3||n[r()]),s=ue(()=>{const o=Object.keys(t.schemas??{});return i.value?o:o.slice(0,3)});return(o,a)=>o.schemas?(C(),he(D(op),{key:0},{default:X(()=>[Z(D(u0),{id:"models",isLazy:!1},{default:X(()=>[vSe]),_:1}),(C(!0),V(De,null,mt(s.value,(l,c)=>(C(),he(D(u0),{id:D(r)(l),key:l,isLazy:""},{default:X(()=>[Z(D(ud),{id:D(r)(l),label:l},{default:X(()=>[o.schemas[l]?(C(),he(D(dd),{key:0},{default:X(()=>[Z(D(Va),{level:2},{default:X(()=>[Z(D(qa),{id:D(r)(l)},{default:X(()=>[Pe(Ue(o.schemas[l].title??l),1)]),_:2},1032,["id"])]),_:2},1024),Z(D(_l),{name:l,noncollapsible:"",value:o.schemas[l]},null,8,["name","value"]),!i.value&&c===s.value.length-1?(C(),he(FB,{key:0,id:D(r)(),class:"something-special"},null,8,["id"])):be("",!0)]),_:2},1024)):be("",!0)]),_:2},1032,["id","label"])]),_:2},1032,["id"]))),128))]),_:1})):be("",!0)}}),_Se=je(ESe,[["__scopeId","data-v-f19478dd"]]),wSe={key:0,class:"properties"},TSe={key:1},SSe=Se({__name:"ModelsAccordion",props:{schemas:{}},setup(e){const t=e,n=ue(()=>t.schemas?Object.entries(t.schemas).map(([i,s])=>({name:i,schema:s})):[]),{getModelId:r}=Tr();return(i,s)=>t.schemas?(C(),he(D(OB),{key:0,class:"reference-models"},{title:X(()=>[Z(D(Va),{level:2},{default:X(()=>[Pe("Models")]),_:1})]),default:X(()=>[(C(!0),V(De,null,mt(n.value,({name:o,schema:a})=>(C(),he(D(CB),{id:D(r)(o),key:o,label:o},{title:X(()=>[Z(D(qa),{id:D(r)(o),class:"reference-models-anchor"},{default:X(()=>[Z(D(RB),{class:"reference-models-label",name:o,value:a},null,8,["name","value"])]),_:2},1032,["id"])]),default:X(()=>[a!=null&&a.properties?(C(),V("div",wSe,[(C(!0),V(De,null,mt(Object.entries(a.properties),([l,c])=>(C(),he(D(El),{key:l,name:l,required:a.required&&!!a.required.length&&a.required.includes(l),value:c},null,8,["name","required","value"]))),128))])):(C(),V("div",TSe,[Z(D(El),{value:a},null,8,["value"])]))]),_:2},1032,["id","label"]))),128))]),_:1})):be("",!0)}}),kSe=je(SSe,[["__scopeId","data-v-2399f144"]]),ASe=Se({__name:"Webhook",props:{webhook:{}},setup(e){const t=e,{responses:n}=JS(t.webhook);return(r,i)=>{var s;return r.webhook?(C(),V(De,{key:0},[Z(ik,{requestBody:(s=r.webhook.information)==null?void 0:s.requestBody},{title:X(()=>[Pe("Payload")]),_:1},8,["requestBody"]),Z(qi,{parameters:D(n)},{title:X(()=>[Pe("Responses")]),_:1},8,["parameters"])],64)):be("",!0)}}}),xSe=Se({__name:"Webhooks",props:{webhooks:{}},setup(e){const t=e,n=ue(()=>Object.keys(t.webhooks??{})),{getWebhookId:r}=Tr();return(i,s)=>n.value.length?(C(),he(D(op),{key:0},{default:X(()=>[(C(!0),V(De,null,mt(n.value,o=>{var a;return C(),V(De,{key:o},[(C(!0),V(De,null,mt(Object.keys((a=i.webhooks)==null?void 0:a[o]),l=>(C(),he(D(ud),{id:D(r)(o,l),key:l,label:o},{default:X(()=>{var c;return[(c=i.webhooks)!=null&&c[o]?(C(),he(D(dd),{key:0},{default:X(()=>{var u,d;return[Z(D(Va),{level:2},{default:X(()=>[Z(D(qa),{id:D(r)(o,l)},{default:X(()=>{var f;return[Pe(Ue((f=i.webhooks[o][l])==null?void 0:f.name),1)]}),_:2},1032,["id"])]),_:2},1024),(u=i.webhooks[o][l])!=null&&u.description?(C(),he(D(fi),{key:0,value:(d=i.webhooks[o][l])==null?void 0:d.description,withImages:""},null,8,["value"])):be("",!0),Z(ASe,{webhook:i.webhooks[o][l]},null,8,["webhook"])]}),_:2},1024)):be("",!0)]}),_:2},1032,["id","label"]))),128))],64)}),128))]),_:1})):be("",!0)}}),NSe=rc('<div class="section-flare" data-v-09a6c646><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div></div>',1),CSe={class:"narrow-references-container"},OSe=Se({__name:"Content",props:{parsedSpec:{},layout:{},baseServerURL:{}},setup(e){const t=e,{getOperationId:n,getTagId:r,hash:i}=Tr(),{setServer:s}=zh(),{hideModels:o,collapsedSidebarItems:a}=as(),l=h=>{if(h.url.match(/^(?!(https?|file):\/\/|{).+/)){let p=t.baseServerURL??window.location.origin;p=p.replace(/\/$/,"");const m=h.url.startsWith("/")?h.url:`/${h.url}`;h.url=`${p}${m}`.replace(/\/$/,"")}return h};dt(()=>t.parsedSpec,h=>{var p,m;let g=[{url:typeof window<"u"?window.location.origin:"/"}];h.servers&&h.servers.length>0?g=h.servers:t.parsedSpec.host&&(g=[{url:`${((p=t.parsedSpec.schemes)==null?void 0:p[0])??"http"}://${t.parsedSpec.host}${((m=t.parsedSpec)==null?void 0:m.basePath)??""}`}]),(t.baseServerURL||typeof window<"u")&&(g=g.map(l)),s({servers:g})},{deep:!0,immediate:!0});const c=ue(()=>t.layout==="accordion"?gSe:BB),u=ue(()=>t.layout==="accordion"?aSe:$B),d=ue(()=>t.layout==="accordion"?"after":"aside"),f=t.layout!=="accordion"&&!i.value.startsWith("model");return(h,p)=>(C(),V(De,null,[NSe,ae("div",CSe,[Be(h.$slots,"start",{},void 0,!0),Z(D(bSe),{layout:h.layout,parsedSpec:h.parsedSpec},null,8,["layout","parsedSpec"]),h.parsedSpec.info.title||h.parsedSpec.info.description?(C(),he(D(W_e),{key:0,info:h.parsedSpec.info,parsedSpec:h.parsedSpec},{[d.value]:X(()=>[ae("div",{class:ct(["introduction-card",{"introduction-card-row":h.layout==="accordion"}])},[Z(D(YEe)),Z(D(TEe),{parsedSpec:h.parsedSpec},null,8,["parsedSpec"]),Z(D(d_e))],2)]),_:2},1032,["info","parsedSpec"])):Be(h.$slots,"empty-state",{key:1},void 0,!0),(C(!0),V(De,null,mt(h.parsedSpec.tags,m=>(C(),he(D(u0),{id:D(r)(m),key:D(r)(m),isLazy:D(f)&&!D(a)[D(r)(m)]},{default:X(()=>[(C(),he(Di(c.value),{id:D(r)(m),spec:h.parsedSpec,tag:m},{default:X(()=>[(C(!0),V(De,null,mt(m.operations,(g,b)=>(C(),he(D(u0),{id:D(n)(g,m),key:`${g.httpVerb}-${g.operationId}`,isLazy:b>0},{default:X(()=>[(C(),he(Di(u.value),{id:D(n)(g,m),operation:g,tag:m},null,8,["id","operation","tag"]))]),_:2},1032,["id","isLazy"]))),128))]),_:2},1032,["id","spec","tag"]))]),_:2},1032,["id","isLazy"]))),128)),h.parsedSpec.webhooks?(C(),he(D(xSe),{key:2,webhooks:h.parsedSpec.webhooks},null,8,["webhooks"])):be("",!0),D(vF)(h.parsedSpec)&&!D(o)?(C(),V(De,{key:3},[h.layout==="accordion"?(C(),he(D(kSe),{key:0,schemas:D(xs)(h.parsedSpec)},null,8,["schemas"])):(C(),he(D(_Se),{key:1,schemas:D(xs)(h.parsedSpec)},null,8,["schemas"]))],64)):be("",!0),Be(h.$slots,"end",{},void 0,!0)])],64))}}),DSe=je(OSe,[["__scopeId","data-v-09a6c646"]]),ISe=e=>(lr("data-v-391b4e37"),e=e(),cr(),e),RSe={class:"start custom-scroll"},PSe={class:"start-copy"},LSe=rc('<div class="start-logo" data-v-391b4e37><svg height="36" viewBox="0 0 36 36" width="36" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><path d="M18 0a18 18 0 1 1 0 36 18 18 0 0 1 0-36Zm11.2 6.5c-3.3-3.3-11.1-1-17.4 5.3-6.2 6.3-8.6 14-5.3 17.4 3.3 3.3 11 .9 17.3-5.4 6.3-6.2 8.7-14 5.4-17.3ZM17.6 12a6.3 6.3 0 1 1 0 12.7 6.3 6.3 0 0 1 0-12.7Z" fill="currentColor" fill-rule="evenodd" data-v-391b4e37></path></svg></div><h1 class="start-h1" data-v-391b4e37>Swagger Editor</h1><p class="start-p" data-v-391b4e37> Welcome to the Scalar API References + Swagger Editor, a Free &amp; Open-Source tool that takes your Swagger/OAS file and generates Beautiful API references. </p>',3),MSe={class:"start-cta"},$Se={class:"start-row"},FSe=rc('<div class="start-section start-section-integrations" data-v-391b4e37><div class="start-h2" data-v-391b4e37>INTEGRATIONS</div><a class="start-item" href="https://github.com/scalar/scalar/tree/main/packages/fastify-api-reference#readme" target="_blank" data-v-391b4e37><svg fill="currentColor" height="16" viewBox="0 0 19 16" width="19" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><path d="m18.2 3.1.8-2V.9l-4.7 1.3C15.2 1 15 0 15 0s-2.5 1.6-4.3 1.5c-2 0-3.6.8-4 1-1.8 1.2-2.5 3.3-3.2 3.8L0 8.9 2.3 8l-2 2.5c.2.3 1.2 1.6 2.1 1.3l.4-.1 1.6.5-.7-1 .2-.2.9.3-.1-.8.9.3-.1-.8.3-.1 1-3.5 3.7-2.6-.3.7A4 4 0 0 1 8 7l-.6.2c-.5.5-.7.7-.8 2.5a2 2 0 0 1 1 0c1.6.4 2.2 2.3 1.7 2.9l-.7.6H8v.6h-.7v.5l-.2.2c-.7 0-1.4-.6-1.4-.6 0 .5.4 1.3.4 1.3s1.7 1.1 2.7.7c1-.4.7-2.3 2.8-3.2l3.3-.9.8-2.2-1.7.5v-2l2.5-.6.9-2.2-3.4.9v-2l4.2-1.1Z" fill="currentColor" fill-rule="nonzero" data-v-391b4e37></path></svg><span data-v-391b4e37>Fastify</span></a><a class="start-item" href="https://github.com/scalar/scalar/tree/main#from-a-cdn" target="_blank" data-v-391b4e37><svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><g data-v-391b4e37><path d="M22.5 1.5h-21A1.5 1.5 0 0 0 0 3v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 6V3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3A1.25 1.25 0 1 1 4.5 5.75 1.25 1.25 0 0 1 3.25 4.5ZM8.5 5.75A1.25 1.25 0 1 1 9.75 4.5 1.25 1.25 0 0 1 8.5 5.75Z" fill="currentColor" data-v-391b4e37></path><path d="M22.5 9h-21A1.5 1.5 0 0 0 0 10.5v3A1.5 1.5 0 0 0 1.5 15h21a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 22.5 9ZM3.25 12a1.25 1.25 0 1 1 1.25 1.25A1.25 1.25 0 0 1 3.25 12Zm5.25 1.25A1.25 1.25 0 1 1 9.75 12a1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-391b4e37></path><path d="M22.5 16.5h-21A1.5 1.5 0 0 0 0 18v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 21v-3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3a1.25 1.25 0 1 1 1.25 1.25 1.25 1.25 0 0 1-1.25-1.25Zm5.25 1.25a1.25 1.25 0 1 1 1.25-1.25 1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-391b4e37></path></g></svg><span data-v-391b4e37>CDN</span></a><a class="start-item" href="https://github.com/scalar/scalar/tree/main#with-vuejs" target="_blank" data-v-391b4e37><svg height="170" viewBox="0 0 196.3 170" width="196.3" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><g fill="currentColor" fill-rule="nonzero" data-v-391b4e37><polygon points="39.23 0 0 0 2.9450761 5.1010782 98.16 170.02 196.32 0 157.06 0 98.16 102.01 42.175701 5.0991171" data-v-391b4e37></polygon><polygon points="75.5 2.009956e-14 0 2.009956e-14 2.94 5.1 78.44871 5.1 98.16 39.26 117.87937 5.1 193.38 5.1 196.325 0 120.82 7.8065636e-15 114.97322 2.009956e-14 98.16 29.037153 81.35 2.009956e-14" data-v-391b4e37></polygon></g></svg><span data-v-391b4e37>Vue</span></a><a class="start-item" href="https://github.com/scalar/scalar/tree/main#with-react" target="_blank" data-v-391b4e37><svg height="23.3" viewBox="0 0 22 23.3" width="22" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><g fill="none" fill-rule="evenodd" data-v-391b4e37><circle cx="11" cy="11.6" fill="currentColor" fill-rule="nonzero" r="2" data-v-391b4e37></circle><g stroke="currentColor" data-v-391b4e37><ellipse cx="11" cy="11.6" rx="11" ry="4.2" data-v-391b4e37></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(60 11 11.6)" data-v-391b4e37></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(120 11 11.6)" data-v-391b4e37></ellipse></g></g></svg><span data-v-391b4e37>React</span></a></div>',1),BSe={class:"start-section start-section-colors"},USe=ISe(()=>ae("p",{class:"start-h2"},"THEMING",-1)),HSe=["onClick"],jSe=rc('<p class="start-h1" data-v-391b4e37>Features</p><ul class="start-ul" data-v-391b4e37><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Customize</p> Bring your typography &amp; color palettes, or use our themes! </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Testing</p> A deeply integrated Rest API Client (Also Free &amp; Open-Source) </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Search</p> Fully integrated Search (Using fuse.js) </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Hosting</p> Free subdomain hosting on https://apidocumentation.com </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>OpenAPI &amp; Swagger</p> Support for OpenAPI 3.1, OpenAPI 3.0, and Swagger 2.0 </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Code Samples</p> Code samples to show off your API in most popular languages </li></ul>',2),VSe=Se({__name:"GettingStarted",props:{theme:{}},emits:["changeTheme","loadSwaggerFile","linkSwaggerFile","updateContent"],setup(e,{emit:t}){const n=t,r=["default","alternate","moon","purple","solarized","bluePlanet","saturn","kepler","mars","deepSpace"];async function i(){const s=await fetch("https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/latest.yaml");n("updateContent",await s.text())}return(s,o)=>(C(),V("div",RSe,[ae("div",PSe,[LSe,ae("div",MSe,[Z(D(GE),{fullWidth:"",onClick:i},{default:X(()=>[Pe(" Show Example ")]),_:1}),Z(D(GE),{fullWidth:"",variant:"outlined",onClick:o[0]||(o[0]=a=>s.$emit("loadSwaggerFile"))},{default:X(()=>[Pe(" Upload File ")]),_:1})])]),ae("div",$Se,[FSe,ae("div",BSe,[USe,(C(),V(De,null,mt(r,a=>ae("div",{key:a,class:ct(["start-item",{"start-item-active":a===s.theme}]),onClick:l=>s.$emit("changeTheme",{id:a,label:D(FN)[a]})},Ue(D(FN)[a]),11,HSe)),64))])]),jSe]))}}),qSe=je(VSe,[["__scopeId","data-v-391b4e37"]]),zSe={class:"references-header"},KSe={key:0,class:"references-navigation t-doc__sidebar"},WSe={class:"references-navigation-list"},GSe={class:"references-editor"},YSe={class:"references-editor-textarea"},XSe={class:"references-rendered"},QSe={key:0,class:"references-footer"},JSe=Se({inheritAttrs:!1,__name:"ApiReferenceLayout",props:{configuration:{},parsedSpec:{},rawSpec:{}},emits:["changeTheme","updateContent","loadSwaggerFile","linkSwaggerFile","toggleDarkMode"],setup(e){const t=e,n=W0("(min-width: 1150px)"),r=de("100dvh"),i=de(null);UH(i,w=>{r.value=w[0].contentRect.height+"px"});const{breadcrumb:s,collapsedSidebarItems:o,isSidebarOpen:a,setCollapsedSidebarItem:l,hideModels:c,setParsedSpec:u}=as(),{getPathRoutingId:d,getSectionId:f,getTagId:h,hash:p,isIntersectionEnabled:m,pathRouting:g,updateHash:b}=Tr();g.value=t.configuration.pathRouting,sw(()=>b());const v=async w=>{var S;m.value=!1,b(),w?o0(w):(S=i.value)==null||S.scrollTo(0,0),await wo(100),m.value=!0};Rt(()=>{mB.on(({specTitle:w})=>{Eve(t.rawSpec,w)}),window.onhashchange=()=>v(decodeURIComponent(window.location.hash.replace(/^#/,""))),window.onpopstate=()=>g.value&&v(d(window.location.pathname))});const y=ue(()=>n.value||!t.configuration.isEditable),E=MH(w=>{if((w.target.scrollTop??0)<50){const S=t.configuration.pathRouting?t.configuration.pathRouting.basePath:window.location.pathname;window.history.replaceState({},"",S+window.location.search),p.value=""}}),T=ue(()=>({breadcrumb:s.value,spec:t.parsedSpec}));return dt(()=>t.parsedSpec,u,{deep:!0}),So(()=>{var w,S;const k=ec();if(k&&((w=k.payload).data||(w.data=iE()),t.configuration.pathRouting)){const x=d(k.url);p.value=x,k.payload.data.hash=x;for(const A in o)Object.hasOwn(o,A)&&delete o[A];if(x)l(f(x),!0);else{const A=(S=t.parsedSpec.tags)==null?void 0:S[0];A&&l(h(A),!0)}k.payload.data["useSidebarContent-collapsedSidebarItems"]=o}}),_U(()=>{var w;const S=hi(),k="scalar-instance-id";if(!S)return k;let x=S.uid;return typeof window>"u"?(S.attrs||(S.attrs={}),S.attrs[k]=x):(w=S.vnode.el)!=null&&w.getAttribute&&(x=S.vnode.el.getAttribute(k)),`${k}-${x}`}),ar(YS,()=>t.parsedSpec.security),ar(pB,()=>t.configuration.hideDownloadButton),c.value=t.configuration.hideModels??!1,C1e(t.configuration),(w,S)=>{var k,x;return C(),V(De,null,[Z(D(U3),{id:(k=w.configuration)==null?void 0:k.theme,withDefaultFonts:(x=w.configuration)==null?void 0:x.withDefaultFonts},null,8,["id","withDefaultFonts"]),Z(D(j3),null,{default:X(({styles:A})=>[Z(D(kie),null,{default:X(({styles:M})=>{var R,te;return[ae("div",{ref_key:"documentEl",ref:i,class:ct(["scalar-api-reference references-layout",[{"references-editable":w.configuration.isEditable,"references-sidebar":w.configuration.showSidebar,"references-sidebar-mobile-open":D(a),"references-classic":w.configuration.layout==="classic"},A,M,w.$attrs.class]]),style:_r({"--full-height":r.value}),onScrollPassive:S[4]||(S[4]=(...ee)=>D(E)&&D(E)(...ee))},[ae("div",zSe,[Be(w.$slots,"header",vi(Zr(T.value)),void 0,!0)]),w.configuration.showSidebar?(C(),V("aside",KSe,[ae("div",WSe,[Z(D(SB),{parsedSpec:w.parsedSpec},{"sidebar-start":X(()=>[Be(w.$slots,"sidebar-start",vi(Zr(T.value)),void 0,!0)]),"sidebar-end":X(()=>[Be(w.$slots,"sidebar-end",vi(Zr(T.value)),void 0,!0)]),_:3},8,["parsedSpec"])])])):be("",!0),Ba(ae("div",GSe,[ae("div",YSe,[Be(w.$slots,"editor",vi(Zr(T.value)),void 0,!0)])],512),[[Ua,w.configuration.isEditable]]),y.value?(C(),V(De,{key:1},[ae("div",XSe,[Z(D(DSe),{baseServerURL:w.configuration.baseServerURL,layout:w.configuration.layout==="classic"?"accordion":"default",parsedSpec:w.parsedSpec},Lu({start:X(()=>[Be(w.$slots,"content-start",vi(Zr(T.value)),void 0,!0)]),end:X(()=>[Be(w.$slots,"content-end",vi(Zr(T.value)),void 0,!0)]),_:2},[(R=w.configuration)!=null&&R.isEditable?{name:"empty-state",fn:X(()=>{var ee;return[Z(qSe,{theme:((ee=w.configuration)==null?void 0:ee.theme)||"default",onChangeTheme:S[0]||(S[0]=oe=>w.$emit("changeTheme",oe)),onLinkSwaggerFile:S[1]||(S[1]=oe=>w.$emit("linkSwaggerFile")),onLoadSwaggerFile:S[2]||(S[2]=oe=>w.$emit("loadSwaggerFile")),onUpdateContent:S[3]||(S[3]=oe=>w.$emit("updateContent",oe))},null,8,["theme"])]}),key:"0"}:void 0]),1032,["baseServerURL","layout","parsedSpec"])]),w.$slots.footer?(C(),V("div",QSe,[Be(w.$slots,"footer",vi(Zr(T.value)),void 0,!0)])):be("",!0)],64)):be("",!0),Z(hEe,{parsedSpec:w.parsedSpec,proxyUrl:(te=w.configuration)==null?void 0:te.proxy},{"sidebar-start":X(()=>[Be(w.$slots,"sidebar-start",vi(Zr(T.value)),void 0,!0)]),"sidebar-end":X(()=>[Be(w.$slots,"sidebar-end",vi(Zr(T.value)),void 0,!0)]),_:3},8,["parsedSpec","proxyUrl"])],38)]}),_:2},1024)]),_:3}),Z(D(A1e))],64)}}}),UB=je(JSe,[["__scopeId","data-v-ce46649f"]]),ZSe={},eke={class:"references-classic-header-container"},tke={class:"references-classic-header"};function nke(e,t){return C(),V("div",eke,[ae("div",tke,[Be(e.$slots,"default",{},void 0,!0),Be(e.$slots,"dark-mode-toggle",{},void 0,!0)])])}const rke=je(ZSe,[["render",nke],["__scopeId","data-v-a860f78f"]]),ike=e=>(lr("data-v-559a0a79"),e=e(),cr(),e),ske={class:"darklight-reference"},oke={key:0},ake={key:1},lke=ike(()=>ae("a",{class:"darklight-reference-promo",href:"https://www.scalar.com",target:"_blank"}," Powered by scalar.com ",-1)),cke=Se({__name:"DarkModeToggle",props:{isDarkMode:{type:Boolean}},emits:["toggleDarkMode"],setup(e){return(t,n)=>(C(),V("div",ske,[ae("button",{class:"darklight",type:"button",onClick:n[0]||(n[0]=r=>t.$emit("toggleDarkMode"))},[Z(D(pn),{icon:"LightDarkModeToggle"}),t.isDarkMode?(C(),V("span",oke,"Light Mode")):(C(),V("span",ake,"Dark Mode"))]),lke]))}}),uke=je(cke,[["__scopeId","data-v-559a0a79"]]),dke=Se({__name:"DarkModeIconToggle",props:{isDarkMode:{type:Boolean}},emits:["toggleDarkMode"],setup(e){return(t,n)=>(C(),V("button",{class:"darklight",type:"button",onClick:n[0]||(n[0]=r=>t.$emit("toggleDarkMode"))},[Z(D(pn),{icon:t.isDarkMode?"DarkMode":"LightMode"},null,8,["icon"]),Z(IB,null,{default:X(()=>[Pe(" Switch to "+Ue(t.isDarkMode?"Light":"Dark")+" Mode ",1)]),_:1})]))}}),fke=je(dke,[["__scopeId","data-v-8f61ca56"]]);function hke(e,t){let n=e;const r=t.required&&t.required.includes(e);return n+=r?" REQUIRED ":" optional ",t.properties[e]&&(n+=t.properties[e].type,t.properties[e].description&&(n+=" "+t.properties[e].description)),n}function pke(e){var t;const n=["Body"],r=(t=e==null?void 0:e.schema)==null?void 0:t.properties;return r&&Object.keys(r).forEach(i=>{if(!e.schema)return;n.push(hke(i,e.schema));const s=r[i];s.type==="object"&&s.properties&&s.properties&&Object.keys(s.properties).forEach(o=>{var a,l;n.push(`${o} ${(l=(a=s.properties)==null?void 0:a[o])==null?void 0:l.type}`)})}),n}function mke(e){var t,n,r;try{const i=(r=(n=(t=e==null?void 0:e.information)==null?void 0:t.requestBody)==null?void 0:n.content)==null?void 0:r["application/json"];if(!i)throw new Error("Body not found");return pke(i)}catch{return!1}}const gke=e=>(lr("data-v-3445e6c6"),e=e(),cr(),e),bke=gke(()=>ae("div",{class:"ref-search-meta"},[ae("span",null,"↑↓ Navigate"),ae("span",null,"⏎ Select")],-1)),yke=Se({__name:"SearchModal",props:{parsedSpec:{},modalState:{}},setup(e){const t=e,n=Mf(t,"parsedSpec"),r={heading:"DocsPage",model:"JsonObject",req:"Terminal",tag:"CodeFolder",webhook:"Terminal"},i=Aw(),s=de([]),o=de([]),a=de(0),l=de(""),c=de(null),u=new qu(s.value,{keys:["title","description","body"]}),d=()=>{a.value=0,o.value=u.search(l.value)},f=ue(()=>E.value[a.value]),{getHeadingId:h,getWebhookId:p,getModelId:m,getOperationId:g,getTagId:b}=Tr();dt(()=>t.modalState.open,k=>{k&&(l.value="",a.value=0,o.value=[])});const{setCollapsedSidebarItem:v,hideModels:y}=as();dt(n.value,async()=>{var k,x,A,M,R;if(s.value=[],!((x=(k=t.parsedSpec)==null?void 0:k.tags)!=null&&x.length)&&!((A=t.parsedSpec)!=null&&A.webhooks)){u.setCollection([]);return}const te=[],ee=await Xg(((M=t.parsedSpec.info)==null?void 0:M.description)??"");ee.length&&(ee.forEach(fe=>{te.push({type:"heading",title:`Info > ${fe.value}`,description:"",href:`#${h(fe)}`,tag:fe.slug,body:""})}),s.value=s.value.concat(te)),(R=t.parsedSpec.tags)==null||R.forEach(fe=>{const O={title:fe["x-displayName"]??fe.name,href:`#${b(fe)}`,description:fe.description,type:"tag",tag:fe.name,body:""};s.value.push(O),fe.operations&&fe.operations.forEach(B=>{const{parameterMap:J}=QS({operation:B}),N=mke(B)||J.value;let P=null;typeof N!="boolean"&&(P=N);const H={type:"req",title:B.name??B.path,href:`#${g(B,fe)}`,operationId:B.operationId,description:B.description??"",httpVerb:B.httpVerb,path:B.path,tag:fe.name,operation:B};P&&(H.body=P),s.value.push(H)})});const oe=t.parsedSpec.webhooks,pe=[];oe&&Object.keys(oe).forEach(fe=>{Object.keys(oe[fe]).forEach(O=>{var B;pe.push({type:"webhook",title:`Webhook: ${(B=oe[fe][O])==null?void 0:B.name}`,href:`#${p(fe,O)}`,description:fe,httpVerb:O,tag:fe,body:""})}),s.value=s.value.concat(pe)});const G=y.value?{}:xs(t.parsedSpec),Q=[];G&&(Object.keys(G).forEach(fe=>{Q.push({type:"model",title:"Model",href:`#${m(fe)}`,description:G[fe].title??fe,tag:fe,body:""})}),s.value=s.value.concat(Q)),u.setCollection(s.value)},{immediate:!0}),ff(i.enter,()=>{t.modalState.open&&window&&(w(f.value),window.location.hash=f.value.item.href,t.modalState.hide())}),ff(i.ArrowDown,()=>{var k;t.modalState.open&&window&&(a.value<E.value.length-1?a.value++:a.value=0,(k=document.getElementById(f.value.item.href))==null||k.scrollIntoView({behavior:"smooth",block:"center"}))}),ff(i.ArrowUp,()=>{var k;t.modalState.open&&window&&(a.value>0?a.value--:a.value=E.value.length-1,(k=document.getElementById(f.value.item.href))==null||k.scrollIntoView({behavior:"smooth",block:"center"}))});const E=ue(()=>l.value.length===0?s.value.map(k=>({item:k})):o.value),T=/#(tag\/[^/]*)/,w=k=>{let x="models";const A=k.item.href.match(T);A!=null&&A.length&&A.length>1&&(x=A[1]),v(x,!0),t.modalState.hide()};function S(k){const x=new URL(window.location.href);return x.hash=k,x.toString()}return(k,x)=>(C(),he(D(V$),{state:k.modalState,variant:"search"},{default:X(()=>[ae("div",{ref_key:"searchModalRef",ref:c,class:"ref-search-container"},[Z(D(mue),{modelValue:l.value,"onUpdate:modelValue":x[0]||(x[0]=A=>l.value=A),onInput:d},null,8,["modelValue"])],512),Z(D(vue),{class:"ref-search-results custom-scroll",noResults:!E.value.length},{query:X(()=>[Pe(Ue(l.value),1)]),default:X(()=>[(C(!0),V(De,null,mt(E.value,(A,M)=>(C(),he(D(xue),{id:A.item.href,key:A.refIndex,active:a.value===M,href:S(A.item.href),icon:r[A.item.type],onClick:R=>w(A),onFocus:R=>a.value=M},Lu({default:X(()=>[Pe(Ue(A.item.title)+" ",1)]),_:2},[(A.item.httpVerb||A.item.path)&&A.item.path!==A.item.title?{name:"description",fn:X(()=>[Pe(Ue(A.item.path),1)]),key:"0"}:A.item.description?{name:"description",fn:X(()=>[Pe(Ue(A.item.description),1)]),key:"1"}:void 0,A.item.type==="req"?{name:"addon",fn:X(()=>[Z(TB,{method:A.item.httpVerb??"get"},null,8,["method"])]),key:"2"}:void 0]),1032,["id","active","href","icon","onClick","onFocus"]))),128))]),_:1},8,["noResults"]),bke]),_:1},8,["state"]))}}),vke=je(yke,[["__scopeId","data-v-3445e6c6"]]),Eke=e=>(lr("data-v-edb0a931"),e=e(),cr(),e),_ke={class:"sidebar-search-input"},wke=Eke(()=>ae("span",{class:"sidebar-search-placeholder"},"Search",-1)),Tke={class:"sidebar-search-shortcut"},Ske={class:"sidebar-search-key"},kke=Se({__name:"SearchButton",props:{spec:{},searchHotKey:{default:"k"}},setup(e){const t=e,n=q$(),r=Aw({passive:!1,onEventFired(i){!Wm()&&i.ctrlKey&&i.key===t.searchHotKey&&(i.preventDefault(),i.stopPropagation())}});return ff(r[`${Wm()?"meta":"control"}_${t.searchHotKey}`],()=>n.open?n.hide():n.show()),(i,s)=>(C(),V(De,null,[ae("button",{class:ct(["sidebar-search",i.$attrs.class]),type:"button",onClick:s[0]||(s[0]=(...o)=>D(n).show&&D(n).show(...o))},[Z(D(pn),{class:"search-icon",icon:"Search",size:"sm"}),ae("div",_ke,[wke,ae("span",Tke,[ae("span",Ske,Ue(D(Wm)()?"⌘":"⌃")+Ue(i.searchHotKey),1)])])],2),Z(vke,{modalState:D(n),parsedSpec:i.spec},null,8,["modalState","parsedSpec"])],64))}}),HB=je(kke,[["__scopeId","data-v-edb0a931"]]),Ake=Se({__name:"ClassicLayout",props:{configuration:{},parsedSpec:{},rawSpec:{},isDark:{type:Boolean}},emits:["toggleDarkMode"],setup(e){const t=e,n=ue(()=>({...t.configuration,showSidebar:!1}));return(r,i)=>(C(),he(UB,{configuration:n.value,parsedSpec:r.parsedSpec,rawSpec:r.rawSpec},{"content-start":X(({spec:s})=>[Z(rke,null,{"dark-mode-toggle":X(()=>[Z(D(fke),{isDarkMode:r.isDark,onToggleDarkMode:i[0]||(i[0]=o=>r.$emit("toggleDarkMode"))},null,8,["isDarkMode"])]),default:X(()=>[Z(HB,{class:"t-doc__sidebar",searchHotKey:n.value.searchHotKey,spec:s},null,8,["searchHotKey","spec"])]),_:2},1024)]),"content-end":X(()=>[Be(r.$slots,"footer")]),_:3},8,["configuration","parsedSpec","rawSpec"]))}}),xke={class:"references-mobile-header t-doc__header"},Nke={class:"references-mobile-breadcrumbs"},Cke={class:"references-mobile-header-actions"},Oke=Se({__name:"MobileHeader",props:{open:{type:Boolean}},emits:["update:open"],setup(e){const{breadcrumb:t}=as();return(n,r)=>(C(),V("div",xke,[Z(D(qh),{icon:n.open?"Close":"Menu",label:n.open?"Close Menu":"Open Menu",size:"md",onClick:r[0]||(r[0]=i=>n.$emit("update:open",!n.open))},null,8,["icon","label"]),ae("span",Nke,Ue(D(t)),1),ae("div",Cke,[Be(n.$slots,"actions",{},void 0,!0)])]))}}),Dke=je(Oke,[["__scopeId","data-v-0242e3de"]]),Ike={class:"scalar-api-references-standalone-search"},Rke=Se({__name:"ModernLayout",props:{configuration:{},parsedSpec:{},rawSpec:{},isDark:{type:Boolean}},emits:["toggleDarkMode"],setup(e){const t=e,n=W0("(max-width: 1000px)"),{isSidebarOpen:r}=as();dt(n,(s,o)=>{s&&!o&&(r.value=!1)});const{hash:i}=Tr();return dt(i,(s,o)=>{s&&s!==o&&(r.value=!1)}),(s,o)=>(C(),he(UB,{class:ct({"scalar-api-references-standalone-mobile":s.configuration.showSidebar}),configuration:s.configuration,parsedSpec:s.parsedSpec,rawSpec:s.rawSpec},{header:X(()=>[t.configuration.showSidebar?(C(),he(Dke,{key:0,open:D(r),"onUpdate:open":o[0]||(o[0]=a=>vn(r)?r.value=a:null)},null,8,["open"])):be("",!0)]),"sidebar-start":X(({spec:a})=>{var l;return[ae("div",Ike,[Z(HB,{searchHotKey:(l=t.configuration)==null?void 0:l.searchHotKey,spec:a},null,8,["searchHotKey","spec"])])]}),"sidebar-end":X(()=>[Z(D(uke),{isDarkMode:s.isDark,onToggleDarkMode:o[1]||(o[1]=a=>s.$emit("toggleDarkMode"))},null,8,["isDarkMode"])]),"content-end":X(()=>[Be(s.$slots,"footer",{},void 0,!0)]),_:3},8,["class","configuration","parsedSpec","rawSpec"]))}}),Pke=je(Rke,[["__scopeId","data-v-333fecad"]]),Lke={modern:Pke,classic:Ake},Mke=Se({__name:"ApiReference",props:{configuration:{}},emits:["updateContent"],setup(e){var t,n;const r=e,{toggleDarkMode:i,isDark:s}=x1e((t=r.configuration)==null?void 0:t.darkMode),o=ue(()=>{var h,p;if((h=r.configuration)!=null&&h.customCss)return xie((p=r.configuration)==null?void 0:p.customCss)});dt(o,()=>console.log(o.value));const a=ue(()=>{var h;return{spec:{content:void 0,url:void 0,...(h=r.configuration)==null?void 0:h.spec},proxy:void 0,theme:"default",showSidebar:!0,isEditable:!1,...r.configuration,customCss:o.value}});(n=a.value)!=null&&n.metaData&&NW(a.value.metaData);function l(h,p){dt(()=>{var m;return(m=a.value)==null?void 0:m[h]},m=>{typeof m<"u"&&p(m)},{immediate:!0})}const{setAuthentication:c}=Ku();l("authentication",c);const{setExcludedClients:u}=sp();l("hiddenClients",u);const{parsedSpec:d,rawSpec:f}=H1e({proxy:Mf(()=>{var h;return((h=r.configuration)==null?void 0:h.proxy)||""}),specConfig:Mf(()=>{var h;return((h=r.configuration)==null?void 0:h.spec)||{}})});return(h,p)=>{var m,g;return C(),V(De,null,[(m=a.value)!=null&&m.customCss?(C(),he(Di("style"),{key:0},{default:X(()=>[Pe(Ue(a.value.customCss),1)]),_:1})):be("",!0),(C(),he(Di(D(Lke)[((g=a.value)==null?void 0:g.layout)||"modern"]),{configuration:a.value,isDark:D(s),parsedSpec:D(d),rawSpec:D(f),onToggleDarkMode:p[0]||(p[0]=()=>D(i)()),onUpdateContent:p[1]||(p[1]=b=>h.$emit("updateContent",b))},{footer:X(()=>[Be(h.$slots,"footer")]),_:3},40,["configuration","isDark","parsedSpec","rawSpec"]))],64)}}});/**
384
+ const { statusCode, body } = await request('${r.url}${o}'${a})`}}function wTe(e){var t,n;const r={method:"GET",...e};r.method=r.method.toUpperCase();const i={method:r.method==="GET"?void 0:r.method},s=new URLSearchParams(r.queryString?ap(r.queryString):void 0),o=s.size?`?${s.toString()}`:"";(t=r.headers)!=null&&t.length&&(i.headers={},r.headers.forEach(l=>{i.headers[l.name]=l.value})),(n=r.cookies)!=null&&n.length&&(i.headers=i.headers||{},r.cookies.forEach(l=>{i.headers["Set-Cookie"]=i.headers["Set-Cookie"]?`${i.headers["Set-Cookie"]}; ${l.name}=${l.value}`:`${l.name}=${l.value}`})),Object.keys(i).forEach(l=>{i[l]===void 0&&delete i[l]}),r.postData&&(i.body=r.postData.text,r.postData.mimeType==="application/json"&&(i.body=`JSON.stringify(${Fs(JSON.parse(i.body))})`));const a=Object.keys(i).length?`, ${Fs(i)}`:"";return{target:"node",client:"fetch",code:`fetch('${r.url}${o}'${a})`}}function TTe(e){var t,n;const r={method:"GET",...e};r.method=r.method.toUpperCase();const i={method:r.method==="GET"?void 0:r.method},s=new URLSearchParams(r.queryString?ap(r.queryString):void 0),o=s.size?`?${s.toString()}`:"";(t=r.headers)!=null&&t.length&&(i.headers={},r.headers.forEach(l=>{i.headers[l.name]=l.value})),(n=r.cookies)!=null&&n.length&&(i.headers=i.headers||{},r.cookies.forEach(l=>{i.headers["Set-Cookie"]=i.headers["Set-Cookie"]?`${i.headers["Set-Cookie"]}; ${l.name}=${l.value}`:`${l.name}=${l.value}`})),Object.keys(i).forEach(l=>{i[l]===void 0&&delete i[l]}),r.postData&&(i.body=r.postData.text,r.postData.mimeType==="application/json"&&(i.body=`JSON.stringify(${Fs(JSON.parse(i.body))})`));const a=Object.keys(i).length?`, ${Fs(i)}`:"";return{target:"js",client:"fetch",code:`fetch('${r.url}${o}'${a})`}}function STe(e){var t,n;const r={method:"GET",...e};r.method=r.method.toUpperCase();const i={method:r.method==="GET"?void 0:r.method},s=new URLSearchParams(r.queryString?ap(r.queryString):void 0);s.size&&(i.query={},s.forEach((a,l)=>{i.query[l]=a})),(t=r.headers)!=null&&t.length&&(i.headers={},r.headers.forEach(a=>{i.headers[a.name]=a.value})),(n=r.cookies)!=null&&n.length&&(i.headers=i.headers||{},r.cookies.forEach(a=>{i.headers["Set-Cookie"]=i.headers["Set-Cookie"]?`${i.headers["Set-Cookie"]}; ${a.name}=${a.value}`:`${a.name}=${a.value}`})),Object.keys(i).forEach(a=>{i[a]===void 0&&delete i[a]}),r.postData&&(i.body=r.postData.text,r.postData.mimeType==="application/json"&&(i.body=JSON.parse(i.body)));const o=Object.keys(i).length?`, ${Fs(i)}`:"";return{target:"js",client:"ofetch",code:`ofetch('${r.url}'${o})`}}function kTe(e){var t,n;const r={method:"GET",...e};r.method=r.method.toUpperCase();const i={method:r.method==="GET"?void 0:r.method},s=new URLSearchParams(r.queryString?ap(r.queryString):void 0);s.size&&(i.query={},s.forEach((a,l)=>{i.query[l]=a})),(t=r.headers)!=null&&t.length&&(i.headers={},r.headers.forEach(a=>{i.headers[a.name]=a.value})),(n=r.cookies)!=null&&n.length&&(i.headers=i.headers||{},r.cookies.forEach(a=>{i.headers["Set-Cookie"]=i.headers["Set-Cookie"]?`${i.headers["Set-Cookie"]}; ${a.name}=${a.value}`:`${a.name}=${a.value}`})),Object.keys(i).forEach(a=>{i[a]===void 0&&delete i[a]}),r.postData&&(i.body=r.postData.text,r.postData.mimeType==="application/json"&&(i.body=JSON.parse(i.body)));const o=Object.keys(i).length?`, ${Fs(i)}`:"";return{target:"node",client:"ofetch",code:`ofetch('${r.url}'${o})`}}function p2(){const e=[_Te,wTe,TTe,STe,kTe];return{get(t,n,r){const i=this.findPlugin(t,n);if(i)return i(r)},print(t,n,r){var i;return(i=this.get(t,n,r))==null?void 0:i.code},targets(){return e.map(t=>t().target).filter((t,n,r)=>r.indexOf(t)===n)},clients(){return e.map(t=>t().client)},plugins(){return e.map(t=>{const n=t();return{target:n.target,client:n.client}})},findPlugin(t,n){return e.find(r=>{const i=r();return i.target===t&&i.client===n})},hasPlugin(t,n){return!!this.findPlugin(t,n)}}}const ATe=Se({__name:"ExamplePicker",props:{examples:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,i=de(Object.keys(n.examples)[0]);function s(a){a&&(i.value=a)}dt(()=>n.examples,()=>{s(Object.keys(n.examples)[0])},{immediate:!0}),dt(i,()=>{i.value&&r("update:modelValue",i.value)},{immediate:!0});function o(a){if(!a)return"Select an example";const l=n.examples[a];return(l==null?void 0:l.summary)??a}return(a,l)=>(C(),he(rk,{modelValue:i.value,"onUpdate:modelValue":l[0]||(l[0]=c=>i.value=c),class:"example-selector",options:Object.keys(a.examples).map(c=>({label:o(c),value:c}))},{default:X(()=>[Pe(Ue(o(i.value)),1)]),_:1},8,["modelValue","options"]))}}),PB=je(ATe,[["__scopeId","data-v-652a7e14"]]),xTe={class:"request-header"},NTe={class:"code-snippet"},CTe={key:0,class:"request-card-footer-addon"},OTe=Se({__name:"ExampleRequest",props:{operation:{}},setup(e){const t=e,n=`components-Content-Operation-Example-Request${dT(t.operation.path+t.operation.httpVerb+t.operation.operationId)}`,r=de(zu[n]??""),i=de(),{copyToClipboard:s}=cd(),{httpClient:o,setHttpClient:a,httpTargetTitle:l,httpClientTitle:c}=ZS(),{availableTargets:u}=sp(),{server:d}=zh(),{authentication:f}=Ku(),h=ue(()=>{var g,b,v,y,E,T,w;return((y=(v=(b=(g=t.operation.information)==null?void 0:g.requestBody)==null?void 0:b.content)==null?void 0:v["application/json"])==null?void 0:y.examples)&&Object.keys((w=(T=(E=t.operation.information)==null?void 0:E.requestBody)==null?void 0:T.content)==null?void 0:w["application/json"].examples).length>1}),p=ln(YS),m=async()=>{var g;const b=K3({url:YE(d)},sE(t.operation,{replaceVariables:!0},i.value),IT(f,((g=t.operation.information)==null?void 0:g.security)??(p==null?void 0:p())));try{return p2().hasPlugin(o.targetKey.replace("javascript","js"),o.clientKey)?p2().print(o.targetKey.replace("javascript","js"),o.clientKey,b)??"":await new wW(b).convert(o.targetKey,o.clientKey)}catch(v){return console.error("[ExampleRequest]",v),""}};return dt([()=>o,()=>d,()=>f,()=>i],async()=>{r.value=await m()},{deep:!0,immediate:!0}),So(async()=>{const g=ec();await wo(1),g.payload.data[n]=r.value}),ue(()=>bF({serverState:d,authenticationState:f,operation:t.operation,globalSecurity:p==null?void 0:p()})),(g,b)=>(C(),he(D(sy),{class:"dark-mode"},{default:X(()=>[Z(D(oy),{muted:""},{actions:X(()=>[Z(rk,{class:"request-client-picker",modelValue:JSON.stringify(D(o)),options:D(u).map(v=>({value:v.key,label:v.title,options:v.clients.map(y=>({value:JSON.stringify({targetKey:v.key,clientKey:y.key}),label:y.title}))})),"onUpdate:modelValue":b[0]||(b[0]=v=>D(a)(JSON.parse(v)))},{default:X(()=>[Pe(Ue(D(l))+" "+Ue(D(c)),1)]),_:1},8,["modelValue","options"]),ae("button",{class:"copy-button",type:"button",onClick:b[1]||(b[1]=v=>D(s)(r.value))},[Z(D(pn),{icon:"Clipboard",width:"10px"})])]),default:X(()=>[ae("div",xTe,[Z(D(uc),{as:"span",class:"request-method",method:g.operation.httpVerb},null,8,["method"]),Be(g.$slots,"header",{},void 0,!0)])]),_:3}),Z(D(fd),{borderless:"",class:"request-editor-section custom-scroll",frameless:""},{default:X(()=>[ae("div",NTe,[Z(D(eo),{content:r.value,hideCredentials:D(W$)(D(f)),lang:D(o).targetKey,lineNumbers:""},null,8,["content","hideCredentials","lang"])])]),_:1}),h.value||g.$slots.footer?(C(),he(D(nk),{key:0,class:"request-card-footer",contrast:""},{default:X(()=>{var v,y,E,T;return[h.value?(C(),V("div",CTe,[Z(PB,{class:"request-example-selector",examples:((T=(E=(y=(v=g.operation.information)==null?void 0:v.requestBody)==null?void 0:y.content)==null?void 0:E["application/json"])==null?void 0:T.examples)??[],"onUpdate:modelValue":b[2]||(b[2]=w=>i.value=w)},null,8,["examples"])])):be("",!0),Be(g.$slots,"footer",{},void 0,!0)]}),_:3})):be("",!0)]),_:3}))}}),LB=je(OTe,[["__scopeId","data-v-317d5c87"]]),DTe={key:0},ITe={key:1},RTe={key:0,class:"rule"},PTe={class:"rule-title"},LTe={class:"rule-items"},MTe={key:2,class:"empty-state"},$Te=Se({__name:"ExampleResponse",props:{response:{}},setup(e){const t=["oneOf","anyOf","not"],n=r=>r.reduce((i,s)=>({...i,...s}),{});return(r,i)=>{var s,o,a,l,c,u,d;return(s=r.response)!=null&&s.example?(C(),V("div",DTe,[Z(D(eo),{content:D(Jf)((o=r.response)==null?void 0:o.example),lang:"json"},null,8,["content"])])):(a=r.response)!=null&&a.schema?(C(),V("div",ITe,[(l=r.response)!=null&&l.schema.type?(C(),he(D(eo),{key:0,content:D(Jf)(D(Ln)((c=r.response)==null?void 0:c.schema,{emptyString:"…",mode:"read"})),lang:"json"},null,8,["content"])):be("",!0),(C(),V(De,null,mt(t,f=>{var h,p,m,g,b,v;return C(),V(De,{key:f},[(h=r.response)!=null&&h.schema[f]&&(((p=r.response)==null?void 0:p.schema[f].length)>1||f==="not")?(C(),V("div",RTe,[ae("div",PTe,Ue(f),1),ae("ol",LTe,[(C(!0),V(De,null,mt((m=r.response)==null?void 0:m.schema[f],(y,E)=>(C(),V("li",{key:E,class:"rule-item"},[Z(D(eo),{content:D(Ln)(y,{emptyString:"…",mode:"read"}),lang:"json"},null,8,["content"])]))),128))])])):(g=r.response)!=null&&g.schema[f]&&((b=r.response)==null?void 0:b.schema[f].length)===1?(C(),he(D(eo),{key:1,content:D(Ln)((v=r.response)==null?void 0:v.schema[f][0],{emptyString:"…",mode:"read"}),lang:"json"},null,8,["content"])):be("",!0)],64)}),64)),(u=r.response)!=null&&u.schema.allOf?(C(),he(D(eo),{key:1,content:n((d=r.response)==null?void 0:d.schema.allOf.map(f=>D(Ln)(f,{emptyString:"…",mode:"read"}))),lang:"json"},null,8,["content"])):be("",!0)])):(C(),V("div",MTe," No Body "))}}}),m2=je($Te,[["__scopeId","data-v-800e8c7d"]]),FTe=e=>(lr("data-v-314905de"),e=e(),cr(),e),BTe={key:1,class:"scalar-card-checkbox"},UTe=FTe(()=>ae("span",{class:"scalar-card-checkbox-checkmark"},null,-1)),HTe={class:"scalar-card-container custom-scroll"},jTe={key:1,class:"response-description"},VTe=Se({__name:"PathResponses",props:{operation:{}},setup(e){const t=e,{copyToClipboard:n}=cd(),r=de(),i=ue(()=>{var f,h;return Object.keys(((h=(f=t==null?void 0:t.operation)==null?void 0:f.information)==null?void 0:h.responses)??{}).sort(p=>p==="default"?-1:0)}),s=ue(()=>!!l.value.examples),o=de(0),a=ue(()=>{var f,h;const p=i.value[o.value];return(h=(f=t.operation.information)==null?void 0:f.responses)==null?void 0:h[p]}),l=ue(()=>{var f;const h=G3((f=a.value)==null?void 0:f.content);return(h==null?void 0:h["application/json"])??(h==null?void 0:h["text/plain"])??a.value}),c=ue(()=>({...l.value,example:s.value&&r.value?l.value.examples[r.value].value??l.value.examples[r.value]:l.value.example})),u=f=>{o.value=f},d=de(!1);return(f,h)=>i.value.length?(C(),he(D(sy),{key:0},{default:X(()=>{var p;return[Z(D(uwe),{muted:"",x:"as",onChange:u},{actions:X(()=>{var m,g;return[(m=l.value)!=null&&m.example?(C(),V("button",{key:0,class:"code-copy",type:"button",onClick:h[0]||(h[0]=()=>{var b;return D(n)((b=l.value)==null?void 0:b.example)})},[Z(D(pn),{icon:"Clipboard",width:"10px",x:"asd"})])):be("",!0),(g=l.value)!=null&&g.schema?(C(),V("label",BTe,[Pe(" Show Schema "),Ba(ae("input",{"onUpdate:modelValue":h[1]||(h[1]=b=>d.value=b),class:"scalar-card-checkbox-input",type:"checkbox"},null,512),[[xh,d.value]]),UTe])):be("",!0)]}),default:X(()=>[(C(!0),V(De,null,mt(i.value,m=>(C(),he(D(fwe),{key:m},{default:X(()=>[Pe(Ue(m),1)]),_:2},1024))),128))]),_:1}),ae("div",HTe,[Z(D(fd),{muted:""},{default:X(()=>{var m;return[(m=l.value)!=null&&m.schema?(C(),V(De,{key:0},[d.value&&c.value?(C(),he(D(eo),{key:0,content:c.value,lang:"json"},null,8,["content"])):(C(),he(m2,{key:1,response:c.value},null,8,["response"]))],64)):(C(),he(m2,{key:1,response:c.value},null,8,["response"]))]}),_:1})]),(p=a.value)!=null&&p.description||s.value?(C(),he(D(nk),{key:0,class:"response-card-footer",muted:""},{default:X(()=>{var m,g;return[s.value?(C(),he(PB,{key:0,class:"response-example-selector",examples:(m=l.value)==null?void 0:m.examples,"onUpdate:modelValue":h[2]||(h[2]=b=>r.value=b)},null,8,["examples"])):(g=a.value)!=null&&g.description?(C(),V("div",jTe,[Z(D(fi),{class:"markdown",value:a.value.description},null,8,["value"])])):be("",!0)]}),_:1})):be("",!0)]}),_:1})):be("",!0)}}),MB=je(VTe,[["__scopeId","data-v-314905de"]]),qTe=e=>(lr("data-v-f44e2b65"),e=e(),cr(),e),zTe=qTe(()=>ae("span",null,"Test Request",-1)),KTe=Se({__name:"TryRequestButton",props:{operation:{}},setup(e){const t=ln(YS);return(n,r)=>(C(),he(D(uc),{as:"button",class:"show-api-client-button",method:n.operation.httpVerb,type:"button",onClick:r[0]||(r[0]=Mu(i=>{var s;return D(QE)(n.operation,(s=D(t))==null?void 0:s())},["stop"]))},{default:X(()=>[Z(D(pn),{icon:"PaperAirplane"}),zTe]),_:1},8,["method"]))}}),S_=je(KTe,[["__scopeId","data-v-f44e2b65"]]),WTe={class:"examples"},GTe=Se({__name:"Operation",props:{id:{},operation:{}},setup(e){const t=e,n=ue(()=>{var r;const i=["x-custom-examples","x-codeSamples","x-code-samples"];for(const s of i)if((r=t.operation.information)!=null&&r[s])return t.operation.information[s];return null});return(r,i)=>(C(),he(D(ud),{id:r.id,label:r.operation.name},{default:X(()=>[Z(D(dd),null,{default:X(()=>[Z(D(tk),null,{default:X(()=>[Z(D(Au),null,{default:X(()=>{var s,o;return[(s=r.operation.information)!=null&&s.deprecated?(C(),he(D(ph),{key:0},{default:X(()=>[Pe(" Deprecated ")]),_:1})):be("",!0),ae("div",{class:ct((o=r.operation.information)!=null&&o.deprecated?"deprecated":"")},[Z(D(Va),{level:3},{default:X(()=>[Z(D(qa),{id:r.id??""},{default:X(()=>[Pe(Ue(r.operation.name),1)]),_:1},8,["id"])]),_:1})],2),Z(bTe,{operation:r.operation},null,8,["operation"])]}),_:1}),Z(D(Au),null,{default:X(()=>[ae("div",WTe,[n.value?(C(),he(vwe,{key:0,examples:n.value,operation:r.operation},{header:X(()=>{var s;return[Z(T_,{class:"example-path",deprecated:(s=r.operation.information)==null?void 0:s.deprecated,path:r.operation.path},null,8,["deprecated","path"])]}),footer:X(()=>[Z(S_,{operation:r.operation},null,8,["operation"])]),_:1},8,["examples","operation"])):(C(),he(LB,{key:1,operation:r.operation},{header:X(()=>{var s;return[Z(T_,{class:"example-path",deprecated:(s=r.operation.information)==null?void 0:s.deprecated,path:r.operation.path},null,8,["deprecated","path"])]}),footer:X(()=>[Z(S_,{operation:r.operation},null,8,["operation"])]),_:1},8,["operation"])),Z(D(MB),{operation:r.operation,style:{"margin-top":"12px"}},null,8,["operation"])])]),_:1})]),_:1})]),_:1})]),_:1},8,["id","label"]))}}),$B=je(GTe,[["__scopeId","data-v-9cd31f5d"]]),YTe={class:"endpoint-details-card"},XTe=Se({__name:"EndpointDetailsCard",props:{operation:{}},setup(e){const t=e,{parameterMap:n}=QS(t),{responses:r}=JS(t.operation);return(i,s)=>{var o;return C(),V("div",YTe,[Z(qi,{class:"endpoint-details-card-item",parameters:D(n).path},{title:X(()=>[Pe("Path Parameters")]),_:1},8,["parameters"]),Z(qi,{class:"endpoint-details-card-item",parameters:D(n).query},{title:X(()=>[Pe("Query Parameters")]),_:1},8,["parameters"]),Z(qi,{class:"endpoint-details-card-item",parameters:D(n).header},{title:X(()=>[Pe("Headers")]),_:1},8,["parameters"]),Z(ik,{class:"endpoint-details-card-item",requestBody:(o=i.operation.information)==null?void 0:o.requestBody},{title:X(()=>[Pe("Body")]),_:1},8,["requestBody"]),Z(qi,{class:"endpoint-details-card-item",parameters:D(r)},{title:X(()=>[Pe("Responses")]),_:1},8,["parameters"])])}}}),QTe=je(XTe,[["__scopeId","data-v-f94bee14"]]),JTe={class:"endpoint-header"},ZTe={class:"endpoint-details"},eSe={class:"endpoint-label"},tSe={class:"endpoint-label-path"},nSe={class:"endpoint-label-name"},rSe={class:"endpoint-content"},iSe=Se({__name:"OperationAccordion",props:{id:{},operation:{}},setup(e){const{copyToClipboard:t}=cd();return(n,r)=>(C(),he(D(CB),{id:n.id,class:"reference-endpoint",transparent:""},Lu({title:X(()=>[ae("h3",JTe,[ae("div",ZTe,[Z(D(uc),{class:"endpoint-type",method:n.operation.httpVerb,short:""},null,8,["method"]),Z(D(qa),{id:n.id??"",class:"endpoint-anchor"},{default:X(()=>{var i;return[ae("div",eSe,[ae("div",tSe,[Z(T_,{deprecated:(i=n.operation.information)==null?void 0:i.deprecated,path:n.operation.path},null,8,["deprecated","path"])]),ae("div",nSe,Ue(n.operation.name),1)])]}),_:1},8,["id"])])])]),actions:X(({active:i})=>[i?(C(),he(S_,{key:0,operation:n.operation},null,8,["operation"])):(C(),he(D(pn),{key:1,class:"endpoint-try-hint",icon:"PaperAirplane"})),Z(D(qh),{class:"endpoint-copy",icon:"Clipboard",label:"Copy endpoint URL",size:"xs",variant:"ghost",onClick:r[0]||(r[0]=Mu(s=>D(t)(n.operation.path),["stop"]))})]),default:X(()=>[ae("div",rSe,[Z(QTe,{operation:n.operation},null,8,["operation"]),Z(D(MB),{operation:n.operation},null,8,["operation"]),Z(LB,{operation:n.operation},null,8,["operation"])])]),_:2},[n.operation.description?{name:"description",fn:X(()=>[Z(D(fi),{value:n.operation.description,withImages:""},null,8,["value"])]),key:"0"}:void 0]),1032,["id"]))}}),sSe=je(iSe,[["__scopeId","data-v-f61893df"]]),oSe=Se({__name:"ShowMoreButton",props:{id:{}},setup(e){const{setCollapsedSidebarItem:t}=as();return(n,r)=>(C(),V("button",{class:"show-more",type:"button",onClick:r[0]||(r[0]=i=>D(t)(n.id,!0))},[Pe(" Show More "),Z(D(pn),{class:"show-more-icon",icon:"ChevronDown"})]))}}),FB=je(oSe,[["__scopeId","data-v-60a9fbab"]]),aSe={class:"endpoints"},lSe=["onClick"],cSe=Se({__name:"Endpoints",props:{id:{},tag:{}},emits:["observeAndNavigate"],setup(e,{emit:t}){const n=e,r=t,{getOperationId:i,getTagId:s}=Tr(),{setCollapsedSidebarItem:o}=as(),a=c=>{r("observeAndNavigate",c)};async function l(c){a(i(c,n.tag)),o(s(n.tag),!0)}return(c,u)=>(C(),he(D(ud),{id:c.id,label:c.tag.name.toUpperCase()},{default:X(()=>[Z(D(dd),null,{default:X(()=>[Z(D(tk),null,{default:X(()=>[Z(D(Au),null,{default:X(()=>[Z(D(Va),{level:2},{default:X(()=>[Z(D(qa),{id:D(s)(c.tag)},{default:X(()=>[Pe(Ue(c.tag["x-displayName"]??c.tag.name),1)]),_:1},8,["id"])]),_:1}),Z(D(fi),{value:c.tag.description,withImages:""},null,8,["value"])]),_:1}),Z(D(Au),null,{default:X(()=>{var d;return[((d=c.tag.operations)==null?void 0:d.length)>0?(C(),he(D(sy),{key:0,class:"scalar-card-sticky"},{default:X(()=>[Z(D(oy),{muted:""},{default:X(()=>[Pe("Endpoints")]),_:1}),Z(D(fd),{class:"custom-scroll",muted:""},{default:X(()=>[ae("div",aSe,[(C(!0),V(De,null,mt(c.tag.operations,f=>(C(),V("a",{key:D(i)(f,c.tag),class:"endpoint",onClick:h=>l(f)},[Z(D(uc),{method:f.httpVerb},null,8,["method"]),ae("span",null,Ue(f.path),1)],8,lSe))),128))])]),_:1})]),_:1})):be("",!0)]}),_:1})]),_:1})]),_:1})]),_:1},8,["id","label"]))}}),uSe=je(cSe,[["__scopeId","data-v-b209ef2d"]]),dSe=(e,t)=>{BH(e,t,{childList:!0,subtree:!0})},fSe=Se({__name:"Tag",props:{id:{},tag:{},spec:{}},setup(e){const t=e,n=de(null),{collapsedSidebarItems:r}=as(),{getTagId:i}=Tr(),s=c=>{var u;return((u=t.spec.tags)==null?void 0:u.length)!==1||(c==null?void 0:c.name)!=="default"||(c==null?void 0:c.description)!==""},o=c=>{window.location.href=`#${c}`},a=c=>{dSe(n,(u,d)=>{u.forEach(f=>{Array.from(f.addedNodes).some(h=>h instanceof HTMLElement&&h.id===c)&&(o(c),d.disconnect())})})},l=c=>{document.getElementById(c)?o(c):a(c)};return(c,u)=>(C(),he(D(op),{ref_key:"sectionContainerRef",ref:n,class:"tag-section-container"},{default:X(()=>{var d;return[s(c.tag)?(C(),he(uSe,{key:0,id:c.id,tag:c.tag,onObserveAndNavigate:l},null,8,["id","tag"])):be("",!0),!D(r)[D(i)(c.tag)]&&((d=c.tag.operations)==null?void 0:d.length)>1?(C(),he(FB,{key:1,id:c.id??""},null,8,["id"])):Be(c.$slots,"default",{key:2},void 0,!0)]}),_:3},512))}}),BB=je(fSe,[["__scopeId","data-v-7fef7ce7"]]),hSe=Se({__name:"TagAccordion",props:{tag:{},spec:{}},setup(e){const{getTagId:t}=Tr();return(n,r)=>(C(),he(D(OB),{class:"tag-section"},{title:X(()=>[Z(D(Va),{class:"tag-name",level:2},{default:X(()=>[Z(D(qa),{id:D(t)(n.tag)},{default:X(()=>[Pe(Ue(n.tag.name),1)]),_:1},8,["id"])]),_:1}),Z(D(fi),{class:"tag-description",value:n.tag.description,withImages:""},null,8,["value"])]),default:X(()=>[Be(n.$slots,"default",{},void 0,!0)]),_:3}))}}),pSe=je(hSe,[["__scopeId","data-v-f11e3b56"]]),mSe=Se({__name:"Loading",props:{layout:{default:"default"},parsedSpec:{}},setup(e){const t=e,n=de(!1),r=de([]),i=de([]),{getModelId:s,getSectionId:o,getTagId:a,hash:l,isIntersectionEnabled:c}=Tr(),u=de(t.layout!=="accordion"&&l.value);dt(()=>{var f;return(f=t.parsedSpec.tags)==null?void 0:f.length},f=>{var h,p;if(!l.value||typeof f!="number"||!t.parsedSpec.tags)return;const m=o();if(m.startsWith("tag")){let g=0;const b=((h=t.parsedSpec.tags)==null?void 0:h.findIndex(E=>a(E)===m))??0,v=l.value.match(/tag\/([^/]+)\/([^/]+)\/(.+)/);if((v==null?void 0:v.length)===4){const E=v[2],T="/"+v[3];g=(p=t.parsedSpec.tags[b])==null?void 0:p.operations.findIndex(({httpVerb:w,path:S})=>E===w&&T===S)}const y=t.parsedSpec.tags[b];if(!y)return;y.name!=="default"&&(n.value=m!==l.value&&m.startsWith("tag")),r.value.push({...y,lazyOperations:y.operations.slice(g,g+2)})}else if(l.value.startsWith("model")){const g=Object.keys(xs(t.parsedSpec)??{}),[,b]=l.value.toLowerCase().split("/"),v=l.value==="models"?0:g.findIndex(y=>y.toLowerCase()===b);if(v===-1)return;i.value=g.slice(v,v+3)}else o0(l.value),setTimeout(()=>c.value=!0,1e3)},{immediate:!0});const d=w_.on(({id:f})=>{const h=l.value;!h||f!==h||(d(),setTimeout(()=>{typeof window<"u"&&o0(h),u.value=!1,setTimeout(()=>c.value=!0,1e3)},300))});return Rt(()=>{l.value||setTimeout(()=>c.value=!0,1e3)}),(f,h)=>Ba((C(),V("div",{class:ct(["references-loading",{"references-loading-hidden-tag":n.value,"references-loading-top-spacer":r.value.length}])},[(C(!0),V(De,null,mt(r.value,p=>(C(),V(De,{key:p.id},[p.operations&&p.operations.length>0?(C(),he(D(BB),{key:0,spec:f.parsedSpec,tag:p},{default:X(()=>[(C(!0),V(De,null,mt(p.lazyOperations,m=>(C(),he(D($B),{key:`${m.httpVerb}-${m.operationId}`,operation:m,tag:p},null,8,["operation","tag"]))),128))]),_:2},1032,["spec","tag"])):be("",!0)],64))),128)),i.value.length?(C(),he(D(op),{key:0},{default:X(()=>[(C(!0),V(De,null,mt(i.value,p=>(C(),he(D(ud),{key:p,label:p},{default:X(()=>{var m;return[(m=D(xs)(f.parsedSpec))!=null&&m[p]?(C(),he(D(dd),{key:0},{default:X(()=>{var g;return[Z(D(Va),{level:2},{default:X(()=>[Z(D(qa),{id:D(s)(p)},{default:X(()=>{var b;return[Pe(Ue(((b=D(xs)(f.parsedSpec))==null?void 0:b[p]).title??p),1)]}),_:2},1032,["id"])]),_:2},1024),Z(D(_l),{name:p,noncollapsible:"",value:(g=D(xs)(f.parsedSpec))==null?void 0:g[p]},null,8,["name","value"])]}),_:2},1024)):be("",!0)]}),_:2},1032,["label"]))),128))]),_:1})):be("",!0)],2)),[[Ua,u.value]])}}),gSe=e=>(lr("data-v-f19478dd"),e=e(),cr(),e),bSe=gSe(()=>ae("div",{id:"models"},null,-1)),ySe=Se({__name:"Models",props:{schemas:{}},setup(e){const t=e,{collapsedSidebarItems:n}=as(),{getModelId:r}=Tr(),i=ue(()=>Object.keys(t.schemas??{}).length<=3||n[r()]),s=ue(()=>{const o=Object.keys(t.schemas??{});return i.value?o:o.slice(0,3)});return(o,a)=>o.schemas?(C(),he(D(op),{key:0},{default:X(()=>[Z(D(u0),{id:"models",isLazy:!1},{default:X(()=>[bSe]),_:1}),(C(!0),V(De,null,mt(s.value,(l,c)=>(C(),he(D(u0),{id:D(r)(l),key:l,isLazy:""},{default:X(()=>[Z(D(ud),{id:D(r)(l),label:l},{default:X(()=>[o.schemas[l]?(C(),he(D(dd),{key:0},{default:X(()=>[Z(D(Va),{level:2},{default:X(()=>[Z(D(qa),{id:D(r)(l)},{default:X(()=>[Pe(Ue(o.schemas[l].title??l),1)]),_:2},1032,["id"])]),_:2},1024),Z(D(_l),{name:l,noncollapsible:"",value:o.schemas[l]},null,8,["name","value"]),!i.value&&c===s.value.length-1?(C(),he(FB,{key:0,id:D(r)(),class:"something-special"},null,8,["id"])):be("",!0)]),_:2},1024)):be("",!0)]),_:2},1032,["id","label"])]),_:2},1032,["id"]))),128))]),_:1})):be("",!0)}}),vSe=je(ySe,[["__scopeId","data-v-f19478dd"]]),ESe={key:0,class:"properties"},_Se={key:1},wSe=Se({__name:"ModelsAccordion",props:{schemas:{}},setup(e){const t=e,n=ue(()=>t.schemas?Object.entries(t.schemas).map(([i,s])=>({name:i,schema:s})):[]),{getModelId:r}=Tr();return(i,s)=>t.schemas?(C(),he(D(OB),{key:0,class:"reference-models"},{title:X(()=>[Z(D(Va),{level:2},{default:X(()=>[Pe("Models")]),_:1})]),default:X(()=>[(C(!0),V(De,null,mt(n.value,({name:o,schema:a})=>(C(),he(D(CB),{id:D(r)(o),key:o,label:o},{title:X(()=>[Z(D(qa),{id:D(r)(o),class:"reference-models-anchor"},{default:X(()=>[Z(D(RB),{class:"reference-models-label",name:o,value:a},null,8,["name","value"])]),_:2},1032,["id"])]),default:X(()=>[a!=null&&a.properties?(C(),V("div",ESe,[(C(!0),V(De,null,mt(Object.entries(a.properties),([l,c])=>(C(),he(D(El),{key:l,name:l,required:a.required&&!!a.required.length&&a.required.includes(l),value:c},null,8,["name","required","value"]))),128))])):(C(),V("div",_Se,[Z(D(El),{value:a},null,8,["value"])]))]),_:2},1032,["id","label"]))),128))]),_:1})):be("",!0)}}),TSe=je(wSe,[["__scopeId","data-v-2399f144"]]),SSe=Se({__name:"Webhook",props:{webhook:{}},setup(e){const t=e,{responses:n}=JS(t.webhook);return(r,i)=>{var s;return r.webhook?(C(),V(De,{key:0},[Z(ik,{requestBody:(s=r.webhook.information)==null?void 0:s.requestBody},{title:X(()=>[Pe("Payload")]),_:1},8,["requestBody"]),Z(qi,{parameters:D(n)},{title:X(()=>[Pe("Responses")]),_:1},8,["parameters"])],64)):be("",!0)}}}),kSe=Se({__name:"Webhooks",props:{webhooks:{}},setup(e){const t=e,n=ue(()=>Object.keys(t.webhooks??{})),{getWebhookId:r}=Tr();return(i,s)=>n.value.length?(C(),he(D(op),{key:0},{default:X(()=>[(C(!0),V(De,null,mt(n.value,o=>{var a;return C(),V(De,{key:o},[(C(!0),V(De,null,mt(Object.keys((a=i.webhooks)==null?void 0:a[o]),l=>(C(),he(D(ud),{id:D(r)(o,l),key:l,label:o},{default:X(()=>{var c;return[(c=i.webhooks)!=null&&c[o]?(C(),he(D(dd),{key:0},{default:X(()=>{var u,d;return[Z(D(Va),{level:2},{default:X(()=>[Z(D(qa),{id:D(r)(o,l)},{default:X(()=>{var f;return[Pe(Ue((f=i.webhooks[o][l])==null?void 0:f.name),1)]}),_:2},1032,["id"])]),_:2},1024),(u=i.webhooks[o][l])!=null&&u.description?(C(),he(D(fi),{key:0,value:(d=i.webhooks[o][l])==null?void 0:d.description,withImages:""},null,8,["value"])):be("",!0),Z(SSe,{webhook:i.webhooks[o][l]},null,8,["webhook"])]}),_:2},1024)):be("",!0)]}),_:2},1032,["id","label"]))),128))],64)}),128))]),_:1})):be("",!0)}}),ASe=rc('<div class="section-flare" data-v-09a6c646><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div><div class="section-flare-item" data-v-09a6c646></div></div>',1),xSe={class:"narrow-references-container"},NSe=Se({__name:"Content",props:{parsedSpec:{},layout:{},baseServerURL:{}},setup(e){const t=e,{getOperationId:n,getTagId:r,hash:i}=Tr(),{setServer:s}=zh(),{hideModels:o,collapsedSidebarItems:a}=as(),l=h=>{if(h.url.match(/^(?!(https?|file):\/\/|{).+/)){let p=t.baseServerURL??window.location.origin;p=p.replace(/\/$/,"");const m=h.url.startsWith("/")?h.url:`/${h.url}`;h.url=`${p}${m}`.replace(/\/$/,"")}return h};dt(()=>t.parsedSpec,h=>{var p,m;let g=[{url:typeof window<"u"?window.location.origin:"/"}];h.servers&&h.servers.length>0?g=h.servers:t.parsedSpec.host&&(g=[{url:`${((p=t.parsedSpec.schemes)==null?void 0:p[0])??"http"}://${t.parsedSpec.host}${((m=t.parsedSpec)==null?void 0:m.basePath)??""}`}]),(t.baseServerURL||typeof window<"u")&&(g=g.map(l)),s({servers:g})},{deep:!0,immediate:!0});const c=ue(()=>t.layout==="accordion"?pSe:BB),u=ue(()=>t.layout==="accordion"?sSe:$B),d=ue(()=>t.layout==="accordion"?"after":"aside"),f=t.layout!=="accordion"&&!i.value.startsWith("model");return(h,p)=>(C(),V(De,null,[ASe,ae("div",xSe,[Be(h.$slots,"start",{},void 0,!0),Z(D(mSe),{layout:h.layout,parsedSpec:h.parsedSpec},null,8,["layout","parsedSpec"]),h.parsedSpec.info.title||h.parsedSpec.info.description?(C(),he(D(z_e),{key:0,info:h.parsedSpec.info,parsedSpec:h.parsedSpec},{[d.value]:X(()=>[ae("div",{class:ct(["introduction-card",{"introduction-card-row":h.layout==="accordion"}])},[Z(D(WEe)),Z(D(_Ee),{parsedSpec:h.parsedSpec},null,8,["parsedSpec"]),Z(D(c_e))],2)]),_:2},1032,["info","parsedSpec"])):Be(h.$slots,"empty-state",{key:1},void 0,!0),(C(!0),V(De,null,mt(h.parsedSpec.tags,m=>(C(),he(D(u0),{id:D(r)(m),key:D(r)(m),isLazy:D(f)&&!D(a)[D(r)(m)]},{default:X(()=>[(C(),he(Di(c.value),{id:D(r)(m),spec:h.parsedSpec,tag:m},{default:X(()=>[(C(!0),V(De,null,mt(m.operations,(g,b)=>(C(),he(D(u0),{id:D(n)(g,m),key:`${g.httpVerb}-${g.operationId}`,isLazy:b>0},{default:X(()=>[(C(),he(Di(u.value),{id:D(n)(g,m),operation:g,tag:m},null,8,["id","operation","tag"]))]),_:2},1032,["id","isLazy"]))),128))]),_:2},1032,["id","spec","tag"]))]),_:2},1032,["id","isLazy"]))),128)),h.parsedSpec.webhooks?(C(),he(D(kSe),{key:2,webhooks:h.parsedSpec.webhooks},null,8,["webhooks"])):be("",!0),D(vF)(h.parsedSpec)&&!D(o)?(C(),V(De,{key:3},[h.layout==="accordion"?(C(),he(D(TSe),{key:0,schemas:D(xs)(h.parsedSpec)},null,8,["schemas"])):(C(),he(D(vSe),{key:1,schemas:D(xs)(h.parsedSpec)},null,8,["schemas"]))],64)):be("",!0),Be(h.$slots,"end",{},void 0,!0)])],64))}}),CSe=je(NSe,[["__scopeId","data-v-09a6c646"]]),OSe=e=>(lr("data-v-391b4e37"),e=e(),cr(),e),DSe={class:"start custom-scroll"},ISe={class:"start-copy"},RSe=rc('<div class="start-logo" data-v-391b4e37><svg height="36" viewBox="0 0 36 36" width="36" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><path d="M18 0a18 18 0 1 1 0 36 18 18 0 0 1 0-36Zm11.2 6.5c-3.3-3.3-11.1-1-17.4 5.3-6.2 6.3-8.6 14-5.3 17.4 3.3 3.3 11 .9 17.3-5.4 6.3-6.2 8.7-14 5.4-17.3ZM17.6 12a6.3 6.3 0 1 1 0 12.7 6.3 6.3 0 0 1 0-12.7Z" fill="currentColor" fill-rule="evenodd" data-v-391b4e37></path></svg></div><h1 class="start-h1" data-v-391b4e37>Swagger Editor</h1><p class="start-p" data-v-391b4e37> Welcome to the Scalar API References + Swagger Editor, a Free &amp; Open-Source tool that takes your Swagger/OAS file and generates Beautiful API references. </p>',3),PSe={class:"start-cta"},LSe={class:"start-row"},MSe=rc('<div class="start-section start-section-integrations" data-v-391b4e37><div class="start-h2" data-v-391b4e37>INTEGRATIONS</div><a class="start-item" href="https://github.com/scalar/scalar/tree/main/packages/fastify-api-reference#readme" target="_blank" data-v-391b4e37><svg fill="currentColor" height="16" viewBox="0 0 19 16" width="19" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><path d="m18.2 3.1.8-2V.9l-4.7 1.3C15.2 1 15 0 15 0s-2.5 1.6-4.3 1.5c-2 0-3.6.8-4 1-1.8 1.2-2.5 3.3-3.2 3.8L0 8.9 2.3 8l-2 2.5c.2.3 1.2 1.6 2.1 1.3l.4-.1 1.6.5-.7-1 .2-.2.9.3-.1-.8.9.3-.1-.8.3-.1 1-3.5 3.7-2.6-.3.7A4 4 0 0 1 8 7l-.6.2c-.5.5-.7.7-.8 2.5a2 2 0 0 1 1 0c1.6.4 2.2 2.3 1.7 2.9l-.7.6H8v.6h-.7v.5l-.2.2c-.7 0-1.4-.6-1.4-.6 0 .5.4 1.3.4 1.3s1.7 1.1 2.7.7c1-.4.7-2.3 2.8-3.2l3.3-.9.8-2.2-1.7.5v-2l2.5-.6.9-2.2-3.4.9v-2l4.2-1.1Z" fill="currentColor" fill-rule="nonzero" data-v-391b4e37></path></svg><span data-v-391b4e37>Fastify</span></a><a class="start-item" href="https://github.com/scalar/scalar/tree/main#from-a-cdn" target="_blank" data-v-391b4e37><svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><g data-v-391b4e37><path d="M22.5 1.5h-21A1.5 1.5 0 0 0 0 3v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 6V3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3A1.25 1.25 0 1 1 4.5 5.75 1.25 1.25 0 0 1 3.25 4.5ZM8.5 5.75A1.25 1.25 0 1 1 9.75 4.5 1.25 1.25 0 0 1 8.5 5.75Z" fill="currentColor" data-v-391b4e37></path><path d="M22.5 9h-21A1.5 1.5 0 0 0 0 10.5v3A1.5 1.5 0 0 0 1.5 15h21a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 22.5 9ZM3.25 12a1.25 1.25 0 1 1 1.25 1.25A1.25 1.25 0 0 1 3.25 12Zm5.25 1.25A1.25 1.25 0 1 1 9.75 12a1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-391b4e37></path><path d="M22.5 16.5h-21A1.5 1.5 0 0 0 0 18v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 21v-3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3a1.25 1.25 0 1 1 1.25 1.25 1.25 1.25 0 0 1-1.25-1.25Zm5.25 1.25a1.25 1.25 0 1 1 1.25-1.25 1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-391b4e37></path></g></svg><span data-v-391b4e37>CDN</span></a><a class="start-item" href="https://github.com/scalar/scalar/tree/main#with-vuejs" target="_blank" data-v-391b4e37><svg height="170" viewBox="0 0 196.3 170" width="196.3" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><g fill="currentColor" fill-rule="nonzero" data-v-391b4e37><polygon points="39.23 0 0 0 2.9450761 5.1010782 98.16 170.02 196.32 0 157.06 0 98.16 102.01 42.175701 5.0991171" data-v-391b4e37></polygon><polygon points="75.5 2.009956e-14 0 2.009956e-14 2.94 5.1 78.44871 5.1 98.16 39.26 117.87937 5.1 193.38 5.1 196.325 0 120.82 7.8065636e-15 114.97322 2.009956e-14 98.16 29.037153 81.35 2.009956e-14" data-v-391b4e37></polygon></g></svg><span data-v-391b4e37>Vue</span></a><a class="start-item" href="https://github.com/scalar/scalar/tree/main#with-react" target="_blank" data-v-391b4e37><svg height="23.3" viewBox="0 0 22 23.3" width="22" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><g fill="none" fill-rule="evenodd" data-v-391b4e37><circle cx="11" cy="11.6" fill="currentColor" fill-rule="nonzero" r="2" data-v-391b4e37></circle><g stroke="currentColor" data-v-391b4e37><ellipse cx="11" cy="11.6" rx="11" ry="4.2" data-v-391b4e37></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(60 11 11.6)" data-v-391b4e37></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(120 11 11.6)" data-v-391b4e37></ellipse></g></g></svg><span data-v-391b4e37>React</span></a></div>',1),$Se={class:"start-section start-section-colors"},FSe=OSe(()=>ae("p",{class:"start-h2"},"THEMING",-1)),BSe=["onClick"],USe=rc('<p class="start-h1" data-v-391b4e37>Features</p><ul class="start-ul" data-v-391b4e37><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Customize</p> Bring your typography &amp; color palettes, or use our themes! </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Testing</p> A deeply integrated Rest API Client (Also Free &amp; Open-Source) </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Search</p> Fully integrated Search (Using fuse.js) </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Hosting</p> Free subdomain hosting on https://apidocumentation.com </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>OpenAPI &amp; Swagger</p> Support for OpenAPI 3.1, OpenAPI 3.0, and Swagger 2.0 </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Code Samples</p> Code samples to show off your API in most popular languages </li></ul>',2),HSe=Se({__name:"GettingStarted",props:{theme:{}},emits:["changeTheme","loadSwaggerFile","linkSwaggerFile","updateContent"],setup(e,{emit:t}){const n=t,r=["default","alternate","moon","purple","solarized","bluePlanet","saturn","kepler","mars","deepSpace"];async function i(){const s=await fetch("https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/latest.yaml");n("updateContent",await s.text())}return(s,o)=>(C(),V("div",DSe,[ae("div",ISe,[RSe,ae("div",PSe,[Z(D(GE),{fullWidth:"",onClick:i},{default:X(()=>[Pe(" Show Example ")]),_:1}),Z(D(GE),{fullWidth:"",variant:"outlined",onClick:o[0]||(o[0]=a=>s.$emit("loadSwaggerFile"))},{default:X(()=>[Pe(" Upload File ")]),_:1})])]),ae("div",LSe,[MSe,ae("div",$Se,[FSe,(C(),V(De,null,mt(r,a=>ae("div",{key:a,class:ct(["start-item",{"start-item-active":a===s.theme}]),onClick:l=>s.$emit("changeTheme",{id:a,label:D(FN)[a]})},Ue(D(FN)[a]),11,BSe)),64))])]),USe]))}}),jSe=je(HSe,[["__scopeId","data-v-391b4e37"]]),VSe={class:"references-header"},qSe={key:0,class:"references-navigation t-doc__sidebar"},zSe={class:"references-navigation-list"},KSe={class:"references-editor"},WSe={class:"references-editor-textarea"},GSe={class:"references-rendered"},YSe={key:0,class:"references-footer"},XSe=Se({inheritAttrs:!1,__name:"ApiReferenceLayout",props:{configuration:{},parsedSpec:{},rawSpec:{}},emits:["changeTheme","updateContent","loadSwaggerFile","linkSwaggerFile","toggleDarkMode"],setup(e){const t=e,n=W0("(min-width: 1150px)"),r=de("100dvh"),i=de(null);UH(i,w=>{r.value=w[0].contentRect.height+"px"});const{breadcrumb:s,collapsedSidebarItems:o,isSidebarOpen:a,setCollapsedSidebarItem:l,hideModels:c,setParsedSpec:u}=as(),{getPathRoutingId:d,getSectionId:f,getTagId:h,hash:p,isIntersectionEnabled:m,pathRouting:g,updateHash:b}=Tr();g.value=t.configuration.pathRouting,sw(()=>b());const v=async w=>{var S;m.value=!1,b(),w?o0(w):(S=i.value)==null||S.scrollTo(0,0),await wo(100),m.value=!0};Rt(()=>{mB.on(({specTitle:w})=>{yve(t.rawSpec,w)}),window.onhashchange=()=>v(decodeURIComponent(window.location.hash.replace(/^#/,""))),window.onpopstate=()=>g.value&&v(d(window.location.pathname))});const y=ue(()=>n.value||!t.configuration.isEditable),E=MH(w=>{if((w.target.scrollTop??0)<50){const S=t.configuration.pathRouting?t.configuration.pathRouting.basePath:window.location.pathname;window.history.replaceState({},"",S+window.location.search),p.value=""}}),T=ue(()=>({breadcrumb:s.value,spec:t.parsedSpec}));return dt(()=>t.parsedSpec,u,{deep:!0}),So(()=>{var w,S;const k=ec();if(k&&((w=k.payload).data||(w.data=iE()),t.configuration.pathRouting)){const x=d(k.url);p.value=x,k.payload.data.hash=x;for(const A in o)Object.hasOwn(o,A)&&delete o[A];if(x)l(f(x),!0);else{const A=(S=t.parsedSpec.tags)==null?void 0:S[0];A&&l(h(A),!0)}k.payload.data["useSidebarContent-collapsedSidebarItems"]=o}}),_U(()=>{var w;const S=hi(),k="scalar-instance-id";if(!S)return k;let x=S.uid;return typeof window>"u"?(S.attrs||(S.attrs={}),S.attrs[k]=x):(w=S.vnode.el)!=null&&w.getAttribute&&(x=S.vnode.el.getAttribute(k)),`${k}-${x}`}),ar(YS,()=>t.parsedSpec.security),ar(pB,()=>t.configuration.hideDownloadButton),c.value=t.configuration.hideModels??!1,x1e(t.configuration),(w,S)=>{var k,x;return C(),V(De,null,[Z(D(U3),{id:(k=w.configuration)==null?void 0:k.theme,withDefaultFonts:(x=w.configuration)==null?void 0:x.withDefaultFonts},null,8,["id","withDefaultFonts"]),Z(D(j3),null,{default:X(({styles:A})=>[Z(D(kie),null,{default:X(({styles:M})=>{var R,te;return[ae("div",{ref_key:"documentEl",ref:i,class:ct(["scalar-api-reference references-layout",[{"references-editable":w.configuration.isEditable,"references-sidebar":w.configuration.showSidebar,"references-sidebar-mobile-open":D(a),"references-classic":w.configuration.layout==="classic"},A,M,w.$attrs.class]]),style:_r({"--full-height":r.value}),onScrollPassive:S[4]||(S[4]=(...ee)=>D(E)&&D(E)(...ee))},[ae("div",VSe,[Be(w.$slots,"header",vi(Zr(T.value)),void 0,!0)]),w.configuration.showSidebar?(C(),V("aside",qSe,[ae("div",zSe,[Z(D(SB),{parsedSpec:w.parsedSpec},{"sidebar-start":X(()=>[Be(w.$slots,"sidebar-start",vi(Zr(T.value)),void 0,!0)]),"sidebar-end":X(()=>[Be(w.$slots,"sidebar-end",vi(Zr(T.value)),void 0,!0)]),_:3},8,["parsedSpec"])])])):be("",!0),Ba(ae("div",KSe,[ae("div",WSe,[Be(w.$slots,"editor",vi(Zr(T.value)),void 0,!0)])],512),[[Ua,w.configuration.isEditable]]),y.value?(C(),V(De,{key:1},[ae("div",GSe,[Z(D(CSe),{baseServerURL:w.configuration.baseServerURL,layout:w.configuration.layout==="classic"?"accordion":"default",parsedSpec:w.parsedSpec},Lu({start:X(()=>[Be(w.$slots,"content-start",vi(Zr(T.value)),void 0,!0)]),end:X(()=>[Be(w.$slots,"content-end",vi(Zr(T.value)),void 0,!0)]),_:2},[(R=w.configuration)!=null&&R.isEditable?{name:"empty-state",fn:X(()=>{var ee;return[Z(jSe,{theme:((ee=w.configuration)==null?void 0:ee.theme)||"default",onChangeTheme:S[0]||(S[0]=oe=>w.$emit("changeTheme",oe)),onLinkSwaggerFile:S[1]||(S[1]=oe=>w.$emit("linkSwaggerFile")),onLoadSwaggerFile:S[2]||(S[2]=oe=>w.$emit("loadSwaggerFile")),onUpdateContent:S[3]||(S[3]=oe=>w.$emit("updateContent",oe))},null,8,["theme"])]}),key:"0"}:void 0]),1032,["baseServerURL","layout","parsedSpec"])]),w.$slots.footer?(C(),V("div",YSe,[Be(w.$slots,"footer",vi(Zr(T.value)),void 0,!0)])):be("",!0)],64)):be("",!0),Z(dEe,{parsedSpec:w.parsedSpec,proxyUrl:(te=w.configuration)==null?void 0:te.proxy},{"sidebar-start":X(()=>[Be(w.$slots,"sidebar-start",vi(Zr(T.value)),void 0,!0)]),"sidebar-end":X(()=>[Be(w.$slots,"sidebar-end",vi(Zr(T.value)),void 0,!0)]),_:3},8,["parsedSpec","proxyUrl"])],38)]}),_:2},1024)]),_:3}),Z(D(S1e))],64)}}}),UB=je(XSe,[["__scopeId","data-v-ce46649f"]]),QSe={},JSe={class:"references-classic-header-container"},ZSe={class:"references-classic-header"};function eke(e,t){return C(),V("div",JSe,[ae("div",ZSe,[Be(e.$slots,"default",{},void 0,!0),Be(e.$slots,"dark-mode-toggle",{},void 0,!0)])])}const tke=je(QSe,[["render",eke],["__scopeId","data-v-a860f78f"]]),nke=e=>(lr("data-v-559a0a79"),e=e(),cr(),e),rke={class:"darklight-reference"},ike={key:0},ske={key:1},oke=nke(()=>ae("a",{class:"darklight-reference-promo",href:"https://www.scalar.com",target:"_blank"}," Powered by scalar.com ",-1)),ake=Se({__name:"DarkModeToggle",props:{isDarkMode:{type:Boolean}},emits:["toggleDarkMode"],setup(e){return(t,n)=>(C(),V("div",rke,[ae("button",{class:"darklight",type:"button",onClick:n[0]||(n[0]=r=>t.$emit("toggleDarkMode"))},[Z(D(pn),{icon:"LightDarkModeToggle"}),t.isDarkMode?(C(),V("span",ike,"Light Mode")):(C(),V("span",ske,"Dark Mode"))]),oke]))}}),lke=je(ake,[["__scopeId","data-v-559a0a79"]]),cke=Se({__name:"DarkModeIconToggle",props:{isDarkMode:{type:Boolean}},emits:["toggleDarkMode"],setup(e){return(t,n)=>(C(),V("button",{class:"darklight",type:"button",onClick:n[0]||(n[0]=r=>t.$emit("toggleDarkMode"))},[Z(D(pn),{icon:t.isDarkMode?"DarkMode":"LightMode"},null,8,["icon"]),Z(IB,null,{default:X(()=>[Pe(" Switch to "+Ue(t.isDarkMode?"Light":"Dark")+" Mode ",1)]),_:1})]))}}),uke=je(cke,[["__scopeId","data-v-8f61ca56"]]);function dke(e,t){let n=e;const r=t.required&&t.required.includes(e);return n+=r?" REQUIRED ":" optional ",t.properties[e]&&(n+=t.properties[e].type,t.properties[e].description&&(n+=" "+t.properties[e].description)),n}function fke(e){var t;const n=["Body"],r=(t=e==null?void 0:e.schema)==null?void 0:t.properties;return r&&Object.keys(r).forEach(i=>{if(!e.schema)return;n.push(dke(i,e.schema));const s=r[i];s.type==="object"&&s.properties&&s.properties&&Object.keys(s.properties).forEach(o=>{var a,l;n.push(`${o} ${(l=(a=s.properties)==null?void 0:a[o])==null?void 0:l.type}`)})}),n}function hke(e){var t,n,r;try{const i=(r=(n=(t=e==null?void 0:e.information)==null?void 0:t.requestBody)==null?void 0:n.content)==null?void 0:r["application/json"];if(!i)throw new Error("Body not found");return fke(i)}catch{return!1}}const pke=e=>(lr("data-v-3445e6c6"),e=e(),cr(),e),mke=pke(()=>ae("div",{class:"ref-search-meta"},[ae("span",null,"↑↓ Navigate"),ae("span",null,"⏎ Select")],-1)),gke=Se({__name:"SearchModal",props:{parsedSpec:{},modalState:{}},setup(e){const t=e,n=Mf(t,"parsedSpec"),r={heading:"DocsPage",model:"JsonObject",req:"Terminal",tag:"CodeFolder",webhook:"Terminal"},i=Aw(),s=de([]),o=de([]),a=de(0),l=de(""),c=de(null),u=new qu(s.value,{keys:["title","description","body"]}),d=()=>{a.value=0,o.value=u.search(l.value)},f=ue(()=>E.value[a.value]),{getHeadingId:h,getWebhookId:p,getModelId:m,getOperationId:g,getTagId:b}=Tr();dt(()=>t.modalState.open,k=>{k&&(l.value="",a.value=0,o.value=[])});const{setCollapsedSidebarItem:v,hideModels:y}=as();dt(n.value,async()=>{var k,x,A,M,R;if(s.value=[],!((x=(k=t.parsedSpec)==null?void 0:k.tags)!=null&&x.length)&&!((A=t.parsedSpec)!=null&&A.webhooks)){u.setCollection([]);return}const te=[],ee=await Xg(((M=t.parsedSpec.info)==null?void 0:M.description)??"");ee.length&&(ee.forEach(fe=>{te.push({type:"heading",title:`Info > ${fe.value}`,description:"",href:`#${h(fe)}`,tag:fe.slug,body:""})}),s.value=s.value.concat(te)),(R=t.parsedSpec.tags)==null||R.forEach(fe=>{const O={title:fe["x-displayName"]??fe.name,href:`#${b(fe)}`,description:fe.description,type:"tag",tag:fe.name,body:""};s.value.push(O),fe.operations&&fe.operations.forEach(B=>{const{parameterMap:J}=QS({operation:B}),N=hke(B)||J.value;let P=null;typeof N!="boolean"&&(P=N);const H={type:"req",title:B.name??B.path,href:`#${g(B,fe)}`,operationId:B.operationId,description:B.description??"",httpVerb:B.httpVerb,path:B.path,tag:fe.name,operation:B};P&&(H.body=P),s.value.push(H)})});const oe=t.parsedSpec.webhooks,pe=[];oe&&Object.keys(oe).forEach(fe=>{Object.keys(oe[fe]).forEach(O=>{var B;pe.push({type:"webhook",title:`Webhook: ${(B=oe[fe][O])==null?void 0:B.name}`,href:`#${p(fe,O)}`,description:fe,httpVerb:O,tag:fe,body:""})}),s.value=s.value.concat(pe)});const G=y.value?{}:xs(t.parsedSpec),Q=[];G&&(Object.keys(G).forEach(fe=>{Q.push({type:"model",title:"Model",href:`#${m(fe)}`,description:G[fe].title??fe,tag:fe,body:""})}),s.value=s.value.concat(Q)),u.setCollection(s.value)},{immediate:!0}),ff(i.enter,()=>{t.modalState.open&&window&&(w(f.value),window.location.hash=f.value.item.href,t.modalState.hide())}),ff(i.ArrowDown,()=>{var k;t.modalState.open&&window&&(a.value<E.value.length-1?a.value++:a.value=0,(k=document.getElementById(f.value.item.href))==null||k.scrollIntoView({behavior:"smooth",block:"center"}))}),ff(i.ArrowUp,()=>{var k;t.modalState.open&&window&&(a.value>0?a.value--:a.value=E.value.length-1,(k=document.getElementById(f.value.item.href))==null||k.scrollIntoView({behavior:"smooth",block:"center"}))});const E=ue(()=>l.value.length===0?s.value.map(k=>({item:k})):o.value),T=/#(tag\/[^/]*)/,w=k=>{let x="models";const A=k.item.href.match(T);A!=null&&A.length&&A.length>1&&(x=A[1]),v(x,!0),t.modalState.hide()};function S(k){const x=new URL(window.location.href);return x.hash=k,x.toString()}return(k,x)=>(C(),he(D(V$),{state:k.modalState,variant:"search"},{default:X(()=>[ae("div",{ref_key:"searchModalRef",ref:c,class:"ref-search-container"},[Z(D(mue),{modelValue:l.value,"onUpdate:modelValue":x[0]||(x[0]=A=>l.value=A),onInput:d},null,8,["modelValue"])],512),Z(D(bue),{class:"ref-search-results custom-scroll",noResults:!E.value.length},{query:X(()=>[Pe(Ue(l.value),1)]),default:X(()=>[(C(!0),V(De,null,mt(E.value,(A,M)=>(C(),he(D(kue),{id:A.item.href,key:A.refIndex,active:a.value===M,href:S(A.item.href),icon:r[A.item.type],onClick:R=>w(A),onFocus:R=>a.value=M},Lu({default:X(()=>[Pe(Ue(A.item.title)+" ",1)]),_:2},[(A.item.httpVerb||A.item.path)&&A.item.path!==A.item.title?{name:"description",fn:X(()=>[Pe(Ue(A.item.path),1)]),key:"0"}:A.item.description?{name:"description",fn:X(()=>[Pe(Ue(A.item.description),1)]),key:"1"}:void 0,A.item.type==="req"?{name:"addon",fn:X(()=>[Z(TB,{method:A.item.httpVerb??"get"},null,8,["method"])]),key:"2"}:void 0]),1032,["id","active","href","icon","onClick","onFocus"]))),128))]),_:1},8,["noResults"]),mke]),_:1},8,["state"]))}}),bke=je(gke,[["__scopeId","data-v-3445e6c6"]]),yke=e=>(lr("data-v-edb0a931"),e=e(),cr(),e),vke={class:"sidebar-search-input"},Eke=yke(()=>ae("span",{class:"sidebar-search-placeholder"},"Search",-1)),_ke={class:"sidebar-search-shortcut"},wke={class:"sidebar-search-key"},Tke=Se({__name:"SearchButton",props:{spec:{},searchHotKey:{default:"k"}},setup(e){const t=e,n=q$(),r=Aw({passive:!1,onEventFired(i){!Wm()&&i.ctrlKey&&i.key===t.searchHotKey&&(i.preventDefault(),i.stopPropagation())}});return ff(r[`${Wm()?"meta":"control"}_${t.searchHotKey}`],()=>n.open?n.hide():n.show()),(i,s)=>(C(),V(De,null,[ae("button",{class:ct(["sidebar-search",i.$attrs.class]),type:"button",onClick:s[0]||(s[0]=(...o)=>D(n).show&&D(n).show(...o))},[Z(D(pn),{class:"search-icon",icon:"Search",size:"sm"}),ae("div",vke,[Eke,ae("span",_ke,[ae("span",wke,Ue(D(Wm)()?"⌘":"⌃")+Ue(i.searchHotKey),1)])])],2),Z(bke,{modalState:D(n),parsedSpec:i.spec},null,8,["modalState","parsedSpec"])],64))}}),HB=je(Tke,[["__scopeId","data-v-edb0a931"]]),Ske=Se({__name:"ClassicLayout",props:{configuration:{},parsedSpec:{},rawSpec:{},isDark:{type:Boolean}},emits:["toggleDarkMode"],setup(e){const t=e,n=ue(()=>({...t.configuration,showSidebar:!1}));return(r,i)=>(C(),he(UB,{configuration:n.value,parsedSpec:r.parsedSpec,rawSpec:r.rawSpec},{"content-start":X(({spec:s})=>[Z(tke,null,{"dark-mode-toggle":X(()=>[Z(D(uke),{isDarkMode:r.isDark,onToggleDarkMode:i[0]||(i[0]=o=>r.$emit("toggleDarkMode"))},null,8,["isDarkMode"])]),default:X(()=>[Z(HB,{class:"t-doc__sidebar",searchHotKey:n.value.searchHotKey,spec:s},null,8,["searchHotKey","spec"])]),_:2},1024)]),"content-end":X(()=>[Be(r.$slots,"footer")]),_:3},8,["configuration","parsedSpec","rawSpec"]))}}),kke={class:"references-mobile-header t-doc__header"},Ake={class:"references-mobile-breadcrumbs"},xke={class:"references-mobile-header-actions"},Nke=Se({__name:"MobileHeader",props:{open:{type:Boolean}},emits:["update:open"],setup(e){const{breadcrumb:t}=as();return(n,r)=>(C(),V("div",kke,[Z(D(qh),{icon:n.open?"Close":"Menu",label:n.open?"Close Menu":"Open Menu",size:"md",onClick:r[0]||(r[0]=i=>n.$emit("update:open",!n.open))},null,8,["icon","label"]),ae("span",Ake,Ue(D(t)),1),ae("div",xke,[Be(n.$slots,"actions",{},void 0,!0)])]))}}),Cke=je(Nke,[["__scopeId","data-v-0242e3de"]]),Oke={class:"scalar-api-references-standalone-search"},Dke=Se({__name:"ModernLayout",props:{configuration:{},parsedSpec:{},rawSpec:{},isDark:{type:Boolean}},emits:["toggleDarkMode"],setup(e){const t=e,n=W0("(max-width: 1000px)"),{isSidebarOpen:r}=as();dt(n,(s,o)=>{s&&!o&&(r.value=!1)});const{hash:i}=Tr();return dt(i,(s,o)=>{s&&s!==o&&(r.value=!1)}),(s,o)=>(C(),he(UB,{class:ct({"scalar-api-references-standalone-mobile":s.configuration.showSidebar}),configuration:s.configuration,parsedSpec:s.parsedSpec,rawSpec:s.rawSpec},{header:X(()=>[t.configuration.showSidebar?(C(),he(Cke,{key:0,open:D(r),"onUpdate:open":o[0]||(o[0]=a=>vn(r)?r.value=a:null)},null,8,["open"])):be("",!0)]),"sidebar-start":X(({spec:a})=>{var l;return[ae("div",Oke,[Z(HB,{searchHotKey:(l=t.configuration)==null?void 0:l.searchHotKey,spec:a},null,8,["searchHotKey","spec"])])]}),"sidebar-end":X(()=>[Z(D(lke),{isDarkMode:s.isDark,onToggleDarkMode:o[1]||(o[1]=a=>s.$emit("toggleDarkMode"))},null,8,["isDarkMode"])]),"content-end":X(()=>[Be(s.$slots,"footer",{},void 0,!0)]),_:3},8,["class","configuration","parsedSpec","rawSpec"]))}}),Ike=je(Dke,[["__scopeId","data-v-333fecad"]]),Rke={modern:Ike,classic:Ske},Pke=Se({__name:"ApiReference",props:{configuration:{}},emits:["updateContent"],setup(e){var t,n;const r=e,{toggleDarkMode:i,isDark:s}=k1e((t=r.configuration)==null?void 0:t.darkMode),o=ue(()=>{var h,p;if((h=r.configuration)!=null&&h.customCss)return xie((p=r.configuration)==null?void 0:p.customCss)});dt(o,()=>console.log(o.value));const a=ue(()=>{var h;return{spec:{content:void 0,url:void 0,...(h=r.configuration)==null?void 0:h.spec},proxy:void 0,theme:"default",showSidebar:!0,isEditable:!1,...r.configuration,customCss:o.value}});(n=a.value)!=null&&n.metaData&&NW(a.value.metaData);function l(h,p){dt(()=>{var m;return(m=a.value)==null?void 0:m[h]},m=>{typeof m<"u"&&p(m)},{immediate:!0})}const{setAuthentication:c}=Ku();l("authentication",c);const{setExcludedClients:u}=sp();l("hiddenClients",u);const{parsedSpec:d,rawSpec:f}=B1e({proxy:Mf(()=>{var h;return((h=r.configuration)==null?void 0:h.proxy)||""}),specConfig:Mf(()=>{var h;return((h=r.configuration)==null?void 0:h.spec)||{}})});return(h,p)=>{var m,g;return C(),V(De,null,[(m=a.value)!=null&&m.customCss?(C(),he(Di("style"),{key:0},{default:X(()=>[Pe(Ue(a.value.customCss),1)]),_:1})):be("",!0),(C(),he(Di(D(Rke)[((g=a.value)==null?void 0:g.layout)||"modern"]),{configuration:a.value,isDark:D(s),parsedSpec:D(d),rawSpec:D(f),onToggleDarkMode:p[0]||(p[0]=()=>D(i)()),onUpdateContent:p[1]||(p[1]=b=>h.$emit("updateContent",b))},{footer:X(()=>[Be(h.$slots,"footer")]),_:3},40,["configuration","isDark","parsedSpec","rawSpec"]))],64)}}});/**
385
385
  * @vue/compiler-core v3.4.21
386
386
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
387
387
  * @license MIT
388
- **/const mh=Symbol(process.env.NODE_ENV!=="production"?"Fragment":""),If=Symbol(process.env.NODE_ENV!=="production"?"Teleport":""),sk=Symbol(process.env.NODE_ENV!=="production"?"Suspense":""),d0=Symbol(process.env.NODE_ENV!=="production"?"KeepAlive":""),jB=Symbol(process.env.NODE_ENV!=="production"?"BaseTransition":""),Jl=Symbol(process.env.NODE_ENV!=="production"?"openBlock":""),VB=Symbol(process.env.NODE_ENV!=="production"?"createBlock":""),qB=Symbol(process.env.NODE_ENV!=="production"?"createElementBlock":""),ok=Symbol(process.env.NODE_ENV!=="production"?"createVNode":""),ak=Symbol(process.env.NODE_ENV!=="production"?"createElementVNode":""),lp=Symbol(process.env.NODE_ENV!=="production"?"createCommentVNode":""),lk=Symbol(process.env.NODE_ENV!=="production"?"createTextVNode":""),zB=Symbol(process.env.NODE_ENV!=="production"?"createStaticVNode":""),ck=Symbol(process.env.NODE_ENV!=="production"?"resolveComponent":""),uk=Symbol(process.env.NODE_ENV!=="production"?"resolveDynamicComponent":""),dk=Symbol(process.env.NODE_ENV!=="production"?"resolveDirective":""),fk=Symbol(process.env.NODE_ENV!=="production"?"resolveFilter":""),hk=Symbol(process.env.NODE_ENV!=="production"?"withDirectives":""),pk=Symbol(process.env.NODE_ENV!=="production"?"renderList":""),KB=Symbol(process.env.NODE_ENV!=="production"?"renderSlot":""),WB=Symbol(process.env.NODE_ENV!=="production"?"createSlots":""),ay=Symbol(process.env.NODE_ENV!=="production"?"toDisplayString":""),f0=Symbol(process.env.NODE_ENV!=="production"?"mergeProps":""),mk=Symbol(process.env.NODE_ENV!=="production"?"normalizeClass":""),gk=Symbol(process.env.NODE_ENV!=="production"?"normalizeStyle":""),gh=Symbol(process.env.NODE_ENV!=="production"?"normalizeProps":""),cp=Symbol(process.env.NODE_ENV!=="production"?"guardReactiveProps":""),bk=Symbol(process.env.NODE_ENV!=="production"?"toHandlers":""),k_=Symbol(process.env.NODE_ENV!=="production"?"camelize":""),$ke=Symbol(process.env.NODE_ENV!=="production"?"capitalize":""),A_=Symbol(process.env.NODE_ENV!=="production"?"toHandlerKey":""),h0=Symbol(process.env.NODE_ENV!=="production"?"setBlockTracking":""),Fke=Symbol(process.env.NODE_ENV!=="production"?"pushScopeId":""),Bke=Symbol(process.env.NODE_ENV!=="production"?"popScopeId":""),yk=Symbol(process.env.NODE_ENV!=="production"?"withCtx":""),Uke=Symbol(process.env.NODE_ENV!=="production"?"unref":""),Hke=Symbol(process.env.NODE_ENV!=="production"?"isRef":""),vk=Symbol(process.env.NODE_ENV!=="production"?"withMemo":""),GB=Symbol(process.env.NODE_ENV!=="production"?"isMemoSame":""),xu={[mh]:"Fragment",[If]:"Teleport",[sk]:"Suspense",[d0]:"KeepAlive",[jB]:"BaseTransition",[Jl]:"openBlock",[VB]:"createBlock",[qB]:"createElementBlock",[ok]:"createVNode",[ak]:"createElementVNode",[lp]:"createCommentVNode",[lk]:"createTextVNode",[zB]:"createStaticVNode",[ck]:"resolveComponent",[uk]:"resolveDynamicComponent",[dk]:"resolveDirective",[fk]:"resolveFilter",[hk]:"withDirectives",[pk]:"renderList",[KB]:"renderSlot",[WB]:"createSlots",[ay]:"toDisplayString",[f0]:"mergeProps",[mk]:"normalizeClass",[gk]:"normalizeStyle",[gh]:"normalizeProps",[cp]:"guardReactiveProps",[bk]:"toHandlers",[k_]:"camelize",[$ke]:"capitalize",[A_]:"toHandlerKey",[h0]:"setBlockTracking",[Fke]:"pushScopeId",[Bke]:"popScopeId",[yk]:"withCtx",[Uke]:"unref",[Hke]:"isRef",[vk]:"withMemo",[GB]:"isMemoSame"};function jke(e){Object.getOwnPropertySymbols(e).forEach(t=>{xu[t]=e[t]})}const mi={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function Vke(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:mi}}function bh(e,t,n,r,i,s,o,a=!1,l=!1,c=!1,u=mi){return e&&(a?(e.helper(Jl),e.helper(Ou(e.inSSR,c))):e.helper(Cu(e.inSSR,c)),o&&e.helper(hk)),{type:13,tag:t,props:n,children:r,patchFlag:i,dynamicProps:s,directives:o,isBlock:a,disableTracking:l,isComponent:c,loc:u}}function up(e,t=mi){return{type:17,loc:t,elements:e}}function Si(e,t=mi){return{type:15,loc:t,properties:e}}function bn(e,t){return{type:16,loc:mi,key:at(e)?_t(e,!0):e,value:t}}function _t(e,t=!1,n=mi,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function Ji(e,t=mi){return{type:8,loc:t,children:e}}function $n(e,t=[],n=mi){return{type:14,loc:n,callee:e,arguments:t}}function Nu(e,t=void 0,n=!1,r=!1,i=mi){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:i}}function x_(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:mi}}function qke(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:mi}}function zke(e){return{type:21,body:e,loc:mi}}function Cu(e,t){return e||t?ok:ak}function Ou(e,t){return e||t?VB:qB}function Ek(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Cu(r,e.isComponent)),t(Jl),t(Ou(r,e.isComponent)))}const g2=new Uint8Array([123,123]),b2=new Uint8Array([125,125]);function y2(e){return e>=97&&e<=122||e>=65&&e<=90}function ti(e){return e===32||e===10||e===9||e===12||e===13}function jo(e){return e===47||e===62||ti(e)}function p0(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const Yn={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class Kke{constructor(t,n){this.stack=t,this.cbs=n,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=g2,this.delimiterClose=b2,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=g2,this.delimiterClose=b2}getPos(t){let n=1,r=t+1;for(let i=this.newlines.length-1;i>=0;i--){const s=this.newlines[i];if(t>s){n=i+2,r=t-s;break}}return{column:r,line:n,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const n=this.index+1-this.delimiterOpen.length;n>this.sectionStart&&this.cbs.ontext(this.sectionStart,n),this.state=3,this.sectionStart=n}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?jo(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||ti(t)){const n=this.index-this.currentSequence.length;if(this.sectionStart<n){const r=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=r}this.sectionStart=n+2,this.stateInClosingTagName(t),this.inRCDATA=!1;return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===Yn.TitleEnd||this.currentSequence===Yn.TextareaEnd&&!this.inSFCRoot?t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===60)}stateCDATASequence(t){t===Yn.Cdata[this.sequenceIndex]?++this.sequenceIndex===Yn.Cdata.length&&(this.state=28,this.currentSequence=Yn.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);if(n===10&&this.newlines.push(this.index),n===t)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Yn.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(t,n){this.enterRCDATA(t,n),this.state=31}enterRCDATA(t,n){this.inRCDATA=!0,this.currentSequence=t,this.sequenceIndex=n}stateBeforeTagName(t){t===33?(this.state=22,this.sectionStart=this.index+1):t===63?(this.state=24,this.sectionStart=this.index+1):y2(t)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:t===116?this.state=30:this.state=t===115?29:6):t===47?this.state=8:(this.state=1,this.stateText(t))}stateInTagName(t){jo(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(jo(t)){const n=this.buffer.slice(this.sectionStart,this.index);n!=="template"&&this.enterRCDATA(p0("</"+n),0),this.handleTagName(t)}}handleTagName(t){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)}stateBeforeClosingTagName(t){ti(t)||(t===62?(process.env.NODE_ENV!=="production"&&this.cbs.onerr(14,this.index),this.state=1,this.sectionStart=this.index+1):(this.state=y2(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||ti(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){t===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(t){t===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):t===47?(this.state=7,process.env.NODE_ENV!=="production"&&this.peek()!==62&&this.cbs.onerr(22,this.index)):t===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):ti(t)||(process.env.NODE_ENV!=="production"&&t===61&&this.cbs.onerr(19,this.index),this.handleAttrStart(t))}handleAttrStart(t){t===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):t===46||t===58||t===64||t===35?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):ti(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){t===61||jo(t)?(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):process.env.NODE_ENV!=="production"&&(t===34||t===39||t===60)&&this.cbs.onerr(17,this.index)}stateInDirName(t){t===61||jo(t)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):t===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(t){t===61||jo(t)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===91?this.state=15:t===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(t){t===93?this.state=14:(t===61||jo(t))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(t),process.env.NODE_ENV!=="production"&&this.cbs.onerr(27,this.index))}stateInDirModifier(t){t===61||jo(t)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(t){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(t)}stateAfterAttrName(t){t===61?this.state=18:t===47||t===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)):ti(t)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(t))}stateBeforeAttrValue(t){t===34?(this.state=19,this.sectionStart=this.index+1):t===39?(this.state=20,this.sectionStart=this.index+1):ti(t)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(t))}handleInAttrValue(t,n){(t===n||this.fastForwardTo(n))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(n===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(t){this.handleInAttrValue(t,34)}stateInAttrValueSingleQuotes(t){this.handleInAttrValue(t,39)}stateInAttrValueNoQuotes(t){ti(t)||t===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(t)):(process.env.NODE_ENV!=="production"&&t===34||t===39||t===60||t===61||t===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(t){t===91?(this.state=26,this.sequenceIndex=0):this.state=t===45?25:23}stateInDeclaration(t){(t===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(t){t===45?(this.state=28,this.currentSequence=Yn.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(t){(t===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){t===Yn.ScriptEnd[3]?this.startSpecial(Yn.ScriptEnd,4):t===Yn.StyleEnd[3]?this.startSpecial(Yn.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===Yn.TitleEnd[3]?this.startSpecial(Yn.TitleEnd,4):t===Yn.TextareaEnd[3]?this.startSpecial(Yn.TextareaEnd,4):(this.state=6,this.stateInTagName(t))}startEntity(){}stateInEntity(){}parse(t){for(this.buffer=t;this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);switch(n===10&&this.newlines.push(this.index),this.state){case 1:{this.stateText(n);break}case 2:{this.stateInterpolationOpen(n);break}case 3:{this.stateInterpolation(n);break}case 4:{this.stateInterpolationClose(n);break}case 31:{this.stateSpecialStartSequence(n);break}case 32:{this.stateInRCDATA(n);break}case 26:{this.stateCDATASequence(n);break}case 19:{this.stateInAttrValueDoubleQuotes(n);break}case 12:{this.stateInAttrName(n);break}case 13:{this.stateInDirName(n);break}case 14:{this.stateInDirArg(n);break}case 15:{this.stateInDynamicDirArg(n);break}case 16:{this.stateInDirModifier(n);break}case 28:{this.stateInCommentLike(n);break}case 27:{this.stateInSpecialComment(n);break}case 11:{this.stateBeforeAttrName(n);break}case 6:{this.stateInTagName(n);break}case 34:{this.stateInSFCRootTagName(n);break}case 9:{this.stateInClosingTagName(n);break}case 5:{this.stateBeforeTagName(n);break}case 17:{this.stateAfterAttrName(n);break}case 20:{this.stateInAttrValueSingleQuotes(n);break}case 18:{this.stateBeforeAttrValue(n);break}case 8:{this.stateBeforeClosingTagName(n);break}case 10:{this.stateAfterClosingTagName(n);break}case 29:{this.stateBeforeSpecialS(n);break}case 30:{this.stateBeforeSpecialT(n);break}case 21:{this.stateInAttrValueNoQuotes(n);break}case 7:{this.stateInSelfClosingTag(n);break}case 23:{this.stateInDeclaration(n);break}case 22:{this.stateBeforeDeclaration(n);break}case 25:{this.stateBeforeComment(n);break}case 24:{this.stateInProcessingInstruction(n);break}case 33:{this.stateInEntity();break}}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(this.state===1||this.state===32&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===19||this.state===20||this.state===21)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length;this.sectionStart>=t||(this.state===28?this.currentSequence===Yn.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,n){}}const Wke={COMPILER_IS_ON_ELEMENT:{message:'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',link:"https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"},COMPILER_V_BIND_SYNC:{message:e=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${e}.sync\` should be changed to \`v-model:${e}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},COMPILER_V_BIND_OBJECT_ORDER:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},COMPILER_V_ON_NATIVE:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with <template> tags or use a computed property that filters v-for data source.",link:"https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html"},COMPILER_NATIVE_TEMPLATE:{message:"<template> with no special directives will render as a native template element instead of its inner content in Vue 3."},COMPILER_INLINE_TEMPLATE:{message:'"inline-template" has been removed in Vue 3.',link:"https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html"},COMPILER_FILTERS:{message:'filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.',link:"https://v3-migration.vuejs.org/breaking-changes/filters.html"}};function N_(e,{compatConfig:t}){const n=t&&t[e];return e==="MODE"?n||3:n}function Sa(e,t){const n=N_("MODE",t),r=N_(e,t);return n===3?r===!0:r!==!1}function Du(e,t,n,...r){const i=Sa(e,t);return process.env.NODE_ENV!=="production"&&i&&m0(e,t,n,...r),i}function m0(e,t,n,...r){if(N_(e,t)==="suppress-warning")return;const{message:s,link:o}=Wke[e],a=`(deprecation ${e}) ${typeof s=="function"?s(...r):s}${o?`
389
- Details: ${o}`:""}`,l=new SyntaxError(a);l.code=e,n&&(l.loc=n),t.onWarn(l)}function _k(e){throw e}function YB(e){process.env.NODE_ENV!=="production"&&console.warn(`[Vue warn] ${e.message}`)}function Kt(e,t,n,r){const i=process.env.NODE_ENV!=="production"?(n||Gke)[e]+(r||""):`https://vuejs.org/error-reference/#compiler-${e}`,s=new SyntaxError(String(i));return s.code=e,s.loc=t,s}const Gke={0:"Illegal comment.",1:"CDATA section is allowed only in XML context.",2:"Duplicate attribute.",3:"End tag cannot have attributes.",4:"Illegal '/' in tags.",5:"Unexpected EOF in tag.",6:"Unexpected EOF in CDATA section.",7:"Unexpected EOF in comment.",8:"Unexpected EOF in script.",9:"Unexpected EOF in tag.",10:"Incorrectly closed comment.",11:"Incorrectly opened comment.",12:"Illegal tag name. Use '&lt;' to print '<'.",13:"Attribute value was expected.",14:"End tag name was expected.",15:"Whitespace was expected.",16:"Unexpected '<!--' in comment.",17:`Attribute name cannot contain U+0022 ("), U+0027 ('), and U+003C (<).`,18:"Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).",19:"Attribute name cannot start with '='.",21:"'<?' is allowed only in XML context.",20:"Unexpected null character.",22:"Illegal '/' in tags.",23:"Invalid end tag.",24:"Element is missing end tag.",25:"Interpolation end sign was not found.",27:"End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.",26:"Legal directive name was expected.",28:"v-if/v-else-if is missing expression.",29:"v-if/else branches must use unique keys.",30:"v-else/v-else-if has no adjacent v-if or v-else-if.",31:"v-for is missing expression.",32:"v-for has invalid expression.",33:"<template v-for> key should be placed on the <template> tag.",34:"v-bind is missing expression.",52:"v-bind with same-name shorthand only allows static argument.",35:"v-on is missing expression.",36:"Unexpected custom directive on <slot> outlet.",37:"Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.",38:"Duplicate slot names found. ",39:"Extraneous children found when component already has explicitly named default slot. These children will be ignored.",40:"v-slot can only be used on components or <template> tags.",41:"v-model is missing expression.",42:"v-model value must be a valid JavaScript member expression.",43:"v-model cannot be used on v-for or v-slot scope variables because they are not writable.",44:`v-model cannot be used on a prop, because local prop bindings are not writable.
390
- Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,45:"Error parsing JavaScript expression: ",46:"<KeepAlive> expects exactly one child component.",51:"@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.",47:'"prefixIdentifiers" option is not supported in this build of compiler.',48:"ES module mode is not supported in this build of compiler.",49:'"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.',50:'"scopeId" option is only supported in module mode.',53:""},Gr=e=>e.type===4&&e.isStatic;function XB(e){switch(e){case"Teleport":case"teleport":return If;case"Suspense":case"suspense":return sk;case"KeepAlive":case"keep-alive":return d0;case"BaseTransition":case"base-transition":return jB}}const Yke=/^\d|[^\$\w]/,wk=e=>!Yke.test(e),Xke=/[A-Za-z_$\xA0-\uFFFF]/,Qke=/[\.\?\w$\xA0-\uFFFF]/,Jke=/\s+[.[]\s*|\s*[.[]\s+/g,Zke=e=>{e=e.trim().replace(Jke,o=>o.trim());let t=0,n=[],r=0,i=0,s=null;for(let o=0;o<e.length;o++){const a=e.charAt(o);switch(t){case 0:if(a==="[")n.push(t),t=1,r++;else if(a==="(")n.push(t),t=2,i++;else if(!(o===0?Xke:Qke).test(a))return!1;break;case 1:a==="'"||a==='"'||a==="`"?(n.push(t),t=3,s=a):a==="["?r++:a==="]"&&(--r||(t=n.pop()));break;case 2:if(a==="'"||a==='"'||a==="`")n.push(t),t=3,s=a;else if(a==="(")i++;else if(a===")"){if(o===e.length-1)return!1;--i||(t=n.pop())}break;case 3:a===s&&(t=n.pop(),s=null);break}}return!r&&!i},QB=Zke;function v2(e,t){if(!e)throw new Error(t||"unexpected compiler condition")}function wi(e,t,n=!1){for(let r=0;r<e.props.length;r++){const i=e.props[r];if(i.type===7&&(n||i.exp)&&(at(t)?i.name===t:t.test(i.name)))return i}}function yh(e,t,n=!1,r=!1){for(let i=0;i<e.props.length;i++){const s=e.props[i];if(s.type===6){if(n)continue;if(s.name===t&&(s.value||r))return s}else if(s.name==="bind"&&(s.exp||r)&&fa(s.arg,t))return s}}function fa(e,t){return!!(e&&Gr(e)&&e.content===t)}function eAe(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function qv(e){return e.type===5||e.type===2}function tAe(e){return e.type===7&&e.name==="slot"}function g0(e){return e.type===1&&e.tagType===3}function b0(e){return e.type===1&&e.tagType===2}const nAe=new Set([gh,cp]);function JB(e,t=[]){if(e&&!at(e)&&e.type===14){const n=e.callee;if(!at(n)&&nAe.has(n))return JB(e.arguments[0],t.concat(e))}return[e,t]}function y0(e,t,n){let r,i=e.type===13?e.props:e.arguments[2],s=[],o;if(i&&!at(i)&&i.type===14){const a=JB(i);i=a[0],s=a[1],o=s[s.length-1]}if(i==null||at(i))r=Si([t]);else if(i.type===14){const a=i.arguments[0];!at(a)&&a.type===15?E2(t,a)||a.properties.unshift(t):i.callee===bk?r=$n(n.helper(f0),[Si([t]),i]):i.arguments.unshift(Si([t])),!r&&(r=i)}else i.type===15?(E2(t,i)||i.properties.unshift(t),r=i):(r=$n(n.helper(f0),[Si([t]),i]),o&&o.callee===cp&&(o=s[s.length-2]));e.type===13?o?o.arguments[0]=r:e.props=r:o?o.arguments[0]=r:e.arguments[2]=r}function E2(e,t){let n=!1;if(e.key.type===4){const r=e.key.content;n=t.properties.some(i=>i.key.type===4&&i.key.content===r)}return n}function vh(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,r)=>n==="-"?"_":e.charCodeAt(r).toString())}`}function rAe(e){return e.type===14&&e.callee===vk?e.arguments[1].returns:e}const iAe=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,ZB={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:xm,isPreTag:xm,isCustomElement:xm,onError:_k,onWarn:YB,comments:process.env.NODE_ENV!=="production",prefixIdentifiers:!1};let Lt=ZB,Eh=null,$l="",fr=null,$t=null,Hr="",Qs=-1,tl=-1,v0=0,ra=!1,C_=null;const gn=[],Zt=new Kke(gn,{onerr:Br,ontext(e,t){Sm(Qn(e,t),e,t)},ontextentity(e,t,n){Sm(e,t,n)},oninterpolation(e,t){if(ra)return Sm(Qn(e,t),e,t);let n=e+Zt.delimiterOpen.length,r=t-Zt.delimiterClose.length;for(;ti($l.charCodeAt(n));)n++;for(;ti($l.charCodeAt(r-1));)r--;let i=Qn(n,r);i.includes("&")&&(i=Lt.decodeEntities(i,!1)),O_({type:5,content:ig(i,!1,Pn(n,r)),loc:Pn(e,t)})},onopentagname(e,t){const n=Qn(e,t);fr={type:1,tag:n,ns:Lt.getNamespace(n,gn[0],Lt.ns),tagType:0,props:[],children:[],loc:Pn(e-1,t),codegenNode:void 0}},onopentagend(e){w2(e)},onclosetag(e,t){const n=Qn(e,t);if(!Lt.isVoidTag(n)){let r=!1;for(let i=0;i<gn.length;i++)if(gn[i].tag.toLowerCase()===n.toLowerCase()){r=!0,i>0&&Br(24,gn[0].loc.start.offset);for(let o=0;o<=i;o++){const a=gn.shift();rg(a,t,o<i)}break}r||Br(23,e6(e,60))}},onselfclosingtag(e){var t;const n=fr.tag;fr.isSelfClosing=!0,w2(e),((t=gn[0])==null?void 0:t.tag)===n&&rg(gn.shift(),e)},onattribname(e,t){$t={type:6,name:Qn(e,t),nameLoc:Pn(e,t),value:void 0,loc:Pn(e)}},ondirname(e,t){const n=Qn(e,t),r=n==="."||n===":"?"bind":n==="@"?"on":n==="#"?"slot":n.slice(2);if(!ra&&r===""&&Br(26,e),ra||r==="")$t={type:6,name:n,nameLoc:Pn(e,t),value:void 0,loc:Pn(e)};else if($t={type:7,name:r,rawName:n,exp:void 0,arg:void 0,modifiers:n==="."?["prop"]:[],loc:Pn(e)},r==="pre"){ra=Zt.inVPre=!0,C_=fr;const i=fr.props;for(let s=0;s<i.length;s++)i[s].type===7&&(i[s]=hAe(i[s]))}},ondirarg(e,t){if(e===t)return;const n=Qn(e,t);if(ra)$t.name+=n,wl($t.nameLoc,t);else{const r=n[0]!=="[";$t.arg=ig(r?n:n.slice(1,-1),r,Pn(e,t),r?3:0)}},ondirmodifier(e,t){const n=Qn(e,t);if(ra)$t.name+="."+n,wl($t.nameLoc,t);else if($t.name==="slot"){const r=$t.arg;r&&(r.content+="."+n,wl(r.loc,t))}else $t.modifiers.push(n)},onattribdata(e,t){Hr+=Qn(e,t),Qs<0&&(Qs=e),tl=t},onattribentity(e,t,n){Hr+=e,Qs<0&&(Qs=t),tl=n},onattribnameend(e){const t=$t.loc.start.offset,n=Qn(t,e);$t.type===7&&($t.rawName=n),fr.props.some(r=>(r.type===7?r.rawName:r.name)===n)&&Br(2,t)},onattribend(e,t){if(fr&&$t){if(wl($t.loc,t),e!==0)if(Hr.includes("&")&&(Hr=Lt.decodeEntities(Hr,!0)),$t.type===6)$t.name==="class"&&(Hr=n6(Hr).trim()),e===1&&!Hr&&Br(13,t),$t.value={type:2,content:Hr,loc:e===1?Pn(Qs,tl):Pn(Qs-1,tl+1)},Zt.inSFCRoot&&fr.tag==="template"&&$t.name==="lang"&&Hr&&Hr!=="html"&&Zt.enterRCDATA(p0("</template"),0);else{let n=0;$t.exp=ig(Hr,!1,Pn(Qs,tl),0,n),$t.name==="for"&&($t.forParseResult=oAe($t.exp));let r=-1;$t.name==="bind"&&(r=$t.modifiers.indexOf("sync"))>-1&&Du("COMPILER_V_BIND_SYNC",Lt,$t.loc,$t.rawName)&&($t.name="model",$t.modifiers.splice(r,1))}($t.type!==7||$t.name!=="pre")&&fr.props.push($t)}Hr="",Qs=tl=-1},oncomment(e,t){Lt.comments&&O_({type:3,content:Qn(e,t),loc:Pn(e-4,t+3)})},onend(){const e=$l.length;if(process.env.NODE_ENV!=="production"&&Zt.state!==1)switch(Zt.state){case 5:case 8:Br(5,e);break;case 3:case 4:Br(25,Zt.sectionStart);break;case 28:Zt.currentSequence===Yn.CdataEnd?Br(6,e):Br(7,e);break;case 6:case 7:case 9:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:Br(9,e);break}for(let t=0;t<gn.length;t++)rg(gn[t],e-1),Br(24,gn[t].loc.start.offset)},oncdata(e,t){gn[0].ns!==0?Sm(Qn(e,t),e,t):Br(1,e-9)},onprocessinginstruction(e){(gn[0]?gn[0].ns:Lt.ns)===0&&Br(21,e-1)}}),_2=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,sAe=/^\(|\)$/g;function oAe(e){const t=e.loc,n=e.content,r=n.match(iAe);if(!r)return;const[,i,s]=r,o=(d,f,h=!1)=>{const p=t.start.offset+f,m=p+d.length;return ig(d,!1,Pn(p,m),0,h?1:0)},a={source:o(s.trim(),n.indexOf(s,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=i.trim().replace(sAe,"").trim();const c=i.indexOf(l),u=l.match(_2);if(u){l=l.replace(_2,"").trim();const d=u[1].trim();let f;if(d&&(f=n.indexOf(d,c+l.length),a.key=o(d,f,!0)),u[2]){const h=u[2].trim();h&&(a.index=o(h,n.indexOf(h,a.key?f+d.length:c+l.length),!0))}}return l&&(a.value=o(l,c,!0)),a}function Qn(e,t){return $l.slice(e,t)}function w2(e){Zt.inSFCRoot&&(fr.innerLoc=Pn(e+1,e+1)),O_(fr);const{tag:t,ns:n}=fr;n===0&&Lt.isPreTag(t)&&v0++,Lt.isVoidTag(t)?rg(fr,e):(gn.unshift(fr),(n===1||n===2)&&(Zt.inXML=!0)),fr=null}function Sm(e,t,n){var r;{const o=(r=gn[0])==null?void 0:r.tag;o!=="script"&&o!=="style"&&e.includes("&")&&(e=Lt.decodeEntities(e,!1))}const i=gn[0]||Eh,s=i.children[i.children.length-1];(s==null?void 0:s.type)===2?(s.content+=e,wl(s.loc,n)):i.children.push({type:2,content:e,loc:Pn(t,n)})}function rg(e,t,n=!1){n?wl(e.loc,e6(t,60)):wl(e.loc,t+1),Zt.inSFCRoot&&(e.children.length?e.innerLoc.end=wt({},e.children[e.children.length-1].loc.end):e.innerLoc.end=wt({},e.innerLoc.start),e.innerLoc.source=Qn(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:r,ns:i}=e;ra||(r==="slot"?e.tagType=2:T2(e)?e.tagType=3:lAe(e)&&(e.tagType=1)),Zt.inRCDATA||(e.children=t6(e.children,e.tag)),i===0&&Lt.isPreTag(r)&&v0--,C_===e&&(ra=Zt.inVPre=!1,C_=null),Zt.inXML&&(gn[0]?gn[0].ns:Lt.ns)===0&&(Zt.inXML=!1);{const s=e.props;if(process.env.NODE_ENV!=="production"&&Sa("COMPILER_V_IF_V_FOR_PRECEDENCE",Lt)){let a=!1,l=!1;for(let c=0;c<s.length;c++){const u=s[c];if(u.type===7&&(u.name==="if"?a=!0:u.name==="for"&&(l=!0)),a&&l){m0("COMPILER_V_IF_V_FOR_PRECEDENCE",Lt,e.loc);break}}}if(!Zt.inSFCRoot&&Sa("COMPILER_NATIVE_TEMPLATE",Lt)&&e.tag==="template"&&!T2(e)){process.env.NODE_ENV!=="production"&&m0("COMPILER_NATIVE_TEMPLATE",Lt,e.loc);const a=gn[0]||Eh,l=a.children.indexOf(e);a.children.splice(l,1,...e.children)}const o=s.find(a=>a.type===6&&a.name==="inline-template");o&&Du("COMPILER_INLINE_TEMPLATE",Lt,o.loc)&&e.children.length&&(o.value={type:2,content:Qn(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:o.loc})}}function e6(e,t){let n=e;for(;$l.charCodeAt(n)!==t&&n>=0;)n--;return n}const aAe=new Set(["if","else","else-if","for","slot"]);function T2({tag:e,props:t}){if(e==="template"){for(let n=0;n<t.length;n++)if(t[n].type===7&&aAe.has(t[n].name))return!0}return!1}function lAe({tag:e,props:t}){var n;if(Lt.isCustomElement(e))return!1;if(e==="component"||cAe(e.charCodeAt(0))||XB(e)||(n=Lt.isBuiltInComponent)!=null&&n.call(Lt,e)||Lt.isNativeTag&&!Lt.isNativeTag(e))return!0;for(let r=0;r<t.length;r++){const i=t[r];if(i.type===6){if(i.name==="is"&&i.value){if(i.value.content.startsWith("vue:"))return!0;if(Du("COMPILER_IS_ON_ELEMENT",Lt,i.loc))return!0}}else if(i.name==="bind"&&fa(i.arg,"is")&&Du("COMPILER_IS_ON_ELEMENT",Lt,i.loc))return!0}return!1}function cAe(e){return e>64&&e<91}const uAe=/\r\n/g;function t6(e,t){var n,r;const i=Lt.whitespace!=="preserve";let s=!1;for(let o=0;o<e.length;o++){const a=e[o];if(a.type===2)if(v0)a.content=a.content.replace(uAe,`
391
- `);else if(dAe(a.content)){const l=(n=e[o-1])==null?void 0:n.type,c=(r=e[o+1])==null?void 0:r.type;!l||!c||i&&(l===3&&(c===3||c===1)||l===1&&(c===3||c===1&&fAe(a.content)))?(s=!0,e[o]=null):a.content=" "}else i&&(a.content=n6(a.content))}if(v0&&t&&Lt.isPreTag(t)){const o=e[0];o&&o.type===2&&(o.content=o.content.replace(/^\r?\n/,""))}return s?e.filter(Boolean):e}function dAe(e){for(let t=0;t<e.length;t++)if(!ti(e.charCodeAt(t)))return!1;return!0}function fAe(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function n6(e){let t="",n=!1;for(let r=0;r<e.length;r++)ti(e.charCodeAt(r))?n||(t+=" ",n=!0):(t+=e[r],n=!1);return t}function O_(e){(gn[0]||Eh).children.push(e)}function Pn(e,t){return{start:Zt.getPos(e),end:t==null?t:Zt.getPos(t),source:t==null?t:Qn(e,t)}}function wl(e,t){e.end=Zt.getPos(t),e.source=Qn(e.start.offset,t)}function hAe(e){const t={type:6,name:e.rawName,nameLoc:Pn(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const n=e.exp.loc;n.end.offset<e.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),t.value={type:2,content:e.exp.content,loc:n}}return t}function ig(e,t=!1,n,r=0,i=0){return _t(e,t,n,r)}function Br(e,t,n){Lt.onError(Kt(e,Pn(t,t),void 0,n))}function pAe(){Zt.reset(),fr=null,$t=null,Hr="",Qs=-1,tl=-1,gn.length=0}function mAe(e,t){if(pAe(),$l=e,Lt=wt({},ZB),t){let i;for(i in t)t[i]!=null&&(Lt[i]=t[i])}if(process.env.NODE_ENV!=="production"&&!Lt.decodeEntities)throw new Error("[@vue/compiler-core] decodeEntities option is required in browser builds.");Zt.mode=Lt.parseMode==="html"?1:Lt.parseMode==="sfc"?2:0,Zt.inXML=Lt.ns===1||Lt.ns===2;const n=t==null?void 0:t.delimiters;n&&(Zt.delimiterOpen=p0(n[0]),Zt.delimiterClose=p0(n[1]));const r=Eh=Vke([],e);return Zt.parse($l),r.loc=Pn(0,e.length),r.children=t6(r.children),Eh=null,r}function gAe(e,t){sg(e,t,r6(e,e.children[0]))}function r6(e,t){const{children:n}=e;return n.length===1&&t.type===1&&!b0(t)}function sg(e,t,n=!1){const{children:r}=e,i=r.length;let s=0;for(let o=0;o<r.length;o++){const a=r[o];if(a.type===1&&a.tagType===0){const l=n?0:ki(a,t);if(l>0){if(l>=2){a.codegenNode.patchFlag=-1+(process.env.NODE_ENV!=="production"?" /* HOISTED */":""),a.codegenNode=t.hoist(a.codegenNode),s++;continue}}else{const c=a.codegenNode;if(c.type===13){const u=a6(c);if((!u||u===512||u===1)&&s6(a,t)>=2){const d=o6(a);d&&(c.props=t.hoist(d))}c.dynamicProps&&(c.dynamicProps=t.hoist(c.dynamicProps))}}}if(a.type===1){const l=a.tagType===1;l&&t.scopes.vSlot++,sg(a,t),l&&t.scopes.vSlot--}else if(a.type===11)sg(a,t,a.children.length===1);else if(a.type===9)for(let l=0;l<a.branches.length;l++)sg(a.branches[l],t,a.branches[l].children.length===1)}if(s&&t.transformHoist&&t.transformHoist(r,t,e),s&&s===i&&e.type===1&&e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&qe(e.codegenNode.children)){const o=t.hoist(up(e.codegenNode.children));t.hmr&&(o.content=`[...${o.content}]`),e.codegenNode.children=o}}function ki(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const r=n.get(e);if(r!==void 0)return r;const i=e.codegenNode;if(i.type!==13||i.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject")return 0;if(a6(i))return n.set(e,0),0;{let a=3;const l=s6(e,t);if(l===0)return n.set(e,0),0;l<a&&(a=l);for(let c=0;c<e.children.length;c++){const u=ki(e.children[c],t);if(u===0)return n.set(e,0),0;u<a&&(a=u)}if(a>1)for(let c=0;c<e.props.length;c++){const u=e.props[c];if(u.type===7&&u.name==="bind"&&u.exp){const d=ki(u.exp,t);if(d===0)return n.set(e,0),0;d<a&&(a=d)}}if(i.isBlock){for(let c=0;c<e.props.length;c++)if(e.props[c].type===7)return n.set(e,0),0;t.removeHelper(Jl),t.removeHelper(Ou(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper(Cu(t.inSSR,i.isComponent))}return n.set(e,a),a}case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return ki(e.content,t);case 4:return e.constType;case 8:let o=3;for(let a=0;a<e.children.length;a++){const l=e.children[a];if(at(l)||Zi(l))continue;const c=ki(l,t);if(c===0)return 0;c<o&&(o=c)}return o;default:return process.env.NODE_ENV,0}}const bAe=new Set([mk,gk,gh,cp]);function i6(e,t){if(e.type===14&&!at(e.callee)&&bAe.has(e.callee)){const n=e.arguments[0];if(n.type===4)return ki(n,t);if(n.type===14)return i6(n,t)}return 0}function s6(e,t){let n=3;const r=o6(e);if(r&&r.type===15){const{properties:i}=r;for(let s=0;s<i.length;s++){const{key:o,value:a}=i[s],l=ki(o,t);if(l===0)return l;l<n&&(n=l);let c;if(a.type===4?c=ki(a,t):a.type===14?c=i6(a,t):c=0,c===0)return c;c<n&&(n=c)}}return n}function o6(e){const t=e.codegenNode;if(t.type===13)return t.props}function a6(e){const t=e.patchFlag;return t?parseInt(t,10):void 0}function yAe(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,hmr:i=!1,cacheHandlers:s=!1,nodeTransforms:o=[],directiveTransforms:a={},transformHoist:l=null,isBuiltInComponent:c=Yt,isCustomElement:u=Yt,expressionPlugins:d=[],scopeId:f=null,slotted:h=!0,ssr:p=!1,inSSR:m=!1,ssrCssVars:g="",bindingMetadata:b=Pt,inline:v=!1,isTS:y=!1,onError:E=_k,onWarn:T=YB,compatConfig:w}){const S=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),k={filename:t,selfName:S&&Ps(hn(S[1])),prefixIdentifiers:n,hoistStatic:r,hmr:i,cacheHandlers:s,nodeTransforms:o,directiveTransforms:a,transformHoist:l,isBuiltInComponent:c,isCustomElement:u,expressionPlugins:d,scopeId:f,slotted:h,ssr:p,inSSR:m,ssrCssVars:g,bindingMetadata:b,inline:v,isTS:y,onError:E,onWarn:T,compatConfig:w,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new WeakMap,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(x){const A=k.helpers.get(x)||0;return k.helpers.set(x,A+1),x},removeHelper(x){const A=k.helpers.get(x);if(A){const M=A-1;M?k.helpers.set(x,M):k.helpers.delete(x)}},helperString(x){return`_${xu[k.helper(x)]}`},replaceNode(x){if(process.env.NODE_ENV!=="production"){if(!k.currentNode)throw new Error("Node being replaced is already removed.");if(!k.parent)throw new Error("Cannot replace root node.")}k.parent.children[k.childIndex]=k.currentNode=x},removeNode(x){if(process.env.NODE_ENV!=="production"&&!k.parent)throw new Error("Cannot remove root node.");const A=k.parent.children,M=x?A.indexOf(x):k.currentNode?k.childIndex:-1;if(process.env.NODE_ENV!=="production"&&M<0)throw new Error("node being removed is not a child of current parent");!x||x===k.currentNode?(k.currentNode=null,k.onNodeRemoved()):k.childIndex>M&&(k.childIndex--,k.onNodeRemoved()),k.parent.children.splice(M,1)},onNodeRemoved:Yt,addIdentifiers(x){},removeIdentifiers(x){},hoist(x){at(x)&&(x=_t(x)),k.hoists.push(x);const A=_t(`_hoisted_${k.hoists.length}`,!1,x.loc,2);return A.hoisted=x,A},cache(x,A=!1){return qke(k.cached++,x,A)}};return k.filters=new Set,k}function vAe(e,t){const n=yAe(e,t);ly(e,n),t.hoistStatic&&gAe(e,n),t.ssr||EAe(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function EAe(e,t){const{helper:n}=t,{children:r}=e;if(r.length===1){const i=r[0];if(r6(e,i)&&i.codegenNode){const s=i.codegenNode;s.type===13&&Ek(s,t),e.codegenNode=s}else e.codegenNode=i}else if(r.length>1){let i=64,s=Cs[64];process.env.NODE_ENV!=="production"&&r.filter(o=>o.type!==3).length===1&&(i|=2048,s+=`, ${Cs[2048]}`),e.codegenNode=bh(t,n(mh),void 0,e.children,i+(process.env.NODE_ENV!=="production"?` /* ${s} */`:""),void 0,void 0,!0,void 0,!1)}}function _Ae(e,t){let n=0;const r=()=>{n--};for(;n<e.children.length;n++){const i=e.children[n];at(i)||(t.parent=e,t.childIndex=n,t.onNodeRemoved=r,ly(i,t))}}function ly(e,t){t.currentNode=e;const{nodeTransforms:n}=t,r=[];for(let s=0;s<n.length;s++){const o=n[s](e,t);if(o&&(qe(o)?r.push(...o):r.push(o)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(lp);break;case 5:t.ssr||t.helper(ay);break;case 9:for(let s=0;s<e.branches.length;s++)ly(e.branches[s],t);break;case 10:case 11:case 1:case 0:_Ae(e,t);break}t.currentNode=e;let i=r.length;for(;i--;)r[i]()}function l6(e,t){const n=at(e)?r=>r===e:r=>e.test(r);return(r,i)=>{if(r.type===1){const{props:s}=r;if(r.tagType===3&&s.some(tAe))return;const o=[];for(let a=0;a<s.length;a++){const l=s[a];if(l.type===7&&n(l.name)){s.splice(a,1),a--;const c=t(r,l,i);c&&o.push(c)}}return o}}}const cy="/*#__PURE__*/",c6=e=>`${xu[e]}: _${xu[e]}`;function wAe(e,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:r=!1,filename:i="template.vue.html",scopeId:s=null,optimizeImports:o=!1,runtimeGlobalName:a="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:u=!1,isTS:d=!1,inSSR:f=!1}){const h={mode:t,prefixIdentifiers:n,sourceMap:r,filename:i,scopeId:s,optimizeImports:o,runtimeGlobalName:a,runtimeModuleName:l,ssrRuntimeModuleName:c,ssr:u,isTS:d,inSSR:f,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(m){return`_${xu[m]}`},push(m,g=-2,b){h.code+=m},indent(){p(++h.indentLevel)},deindent(m=!1){m?--h.indentLevel:p(--h.indentLevel)},newline(){p(h.indentLevel)}};function p(m){h.push(`
392
- `+" ".repeat(m),0)}return h}function TAe(e,t={}){const n=wAe(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:i,prefixIdentifiers:s,indent:o,deindent:a,newline:l,scopeId:c,ssr:u}=n,d=Array.from(e.helpers),f=d.length>0,h=!s&&r!=="module";SAe(e,n);const m=u?"ssrRender":"render",b=(u?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(i(`function ${m}(${b}) {`),o(),h&&(i("with (_ctx) {"),o(),f&&(i(`const { ${d.map(c6).join(", ")} } = _Vue
388
+ **/const mh=Symbol(process.env.NODE_ENV!=="production"?"Fragment":""),If=Symbol(process.env.NODE_ENV!=="production"?"Teleport":""),sk=Symbol(process.env.NODE_ENV!=="production"?"Suspense":""),d0=Symbol(process.env.NODE_ENV!=="production"?"KeepAlive":""),jB=Symbol(process.env.NODE_ENV!=="production"?"BaseTransition":""),Jl=Symbol(process.env.NODE_ENV!=="production"?"openBlock":""),VB=Symbol(process.env.NODE_ENV!=="production"?"createBlock":""),qB=Symbol(process.env.NODE_ENV!=="production"?"createElementBlock":""),ok=Symbol(process.env.NODE_ENV!=="production"?"createVNode":""),ak=Symbol(process.env.NODE_ENV!=="production"?"createElementVNode":""),lp=Symbol(process.env.NODE_ENV!=="production"?"createCommentVNode":""),lk=Symbol(process.env.NODE_ENV!=="production"?"createTextVNode":""),zB=Symbol(process.env.NODE_ENV!=="production"?"createStaticVNode":""),ck=Symbol(process.env.NODE_ENV!=="production"?"resolveComponent":""),uk=Symbol(process.env.NODE_ENV!=="production"?"resolveDynamicComponent":""),dk=Symbol(process.env.NODE_ENV!=="production"?"resolveDirective":""),fk=Symbol(process.env.NODE_ENV!=="production"?"resolveFilter":""),hk=Symbol(process.env.NODE_ENV!=="production"?"withDirectives":""),pk=Symbol(process.env.NODE_ENV!=="production"?"renderList":""),KB=Symbol(process.env.NODE_ENV!=="production"?"renderSlot":""),WB=Symbol(process.env.NODE_ENV!=="production"?"createSlots":""),ay=Symbol(process.env.NODE_ENV!=="production"?"toDisplayString":""),f0=Symbol(process.env.NODE_ENV!=="production"?"mergeProps":""),mk=Symbol(process.env.NODE_ENV!=="production"?"normalizeClass":""),gk=Symbol(process.env.NODE_ENV!=="production"?"normalizeStyle":""),gh=Symbol(process.env.NODE_ENV!=="production"?"normalizeProps":""),cp=Symbol(process.env.NODE_ENV!=="production"?"guardReactiveProps":""),bk=Symbol(process.env.NODE_ENV!=="production"?"toHandlers":""),k_=Symbol(process.env.NODE_ENV!=="production"?"camelize":""),Lke=Symbol(process.env.NODE_ENV!=="production"?"capitalize":""),A_=Symbol(process.env.NODE_ENV!=="production"?"toHandlerKey":""),h0=Symbol(process.env.NODE_ENV!=="production"?"setBlockTracking":""),Mke=Symbol(process.env.NODE_ENV!=="production"?"pushScopeId":""),$ke=Symbol(process.env.NODE_ENV!=="production"?"popScopeId":""),yk=Symbol(process.env.NODE_ENV!=="production"?"withCtx":""),Fke=Symbol(process.env.NODE_ENV!=="production"?"unref":""),Bke=Symbol(process.env.NODE_ENV!=="production"?"isRef":""),vk=Symbol(process.env.NODE_ENV!=="production"?"withMemo":""),GB=Symbol(process.env.NODE_ENV!=="production"?"isMemoSame":""),xu={[mh]:"Fragment",[If]:"Teleport",[sk]:"Suspense",[d0]:"KeepAlive",[jB]:"BaseTransition",[Jl]:"openBlock",[VB]:"createBlock",[qB]:"createElementBlock",[ok]:"createVNode",[ak]:"createElementVNode",[lp]:"createCommentVNode",[lk]:"createTextVNode",[zB]:"createStaticVNode",[ck]:"resolveComponent",[uk]:"resolveDynamicComponent",[dk]:"resolveDirective",[fk]:"resolveFilter",[hk]:"withDirectives",[pk]:"renderList",[KB]:"renderSlot",[WB]:"createSlots",[ay]:"toDisplayString",[f0]:"mergeProps",[mk]:"normalizeClass",[gk]:"normalizeStyle",[gh]:"normalizeProps",[cp]:"guardReactiveProps",[bk]:"toHandlers",[k_]:"camelize",[Lke]:"capitalize",[A_]:"toHandlerKey",[h0]:"setBlockTracking",[Mke]:"pushScopeId",[$ke]:"popScopeId",[yk]:"withCtx",[Fke]:"unref",[Bke]:"isRef",[vk]:"withMemo",[GB]:"isMemoSame"};function Uke(e){Object.getOwnPropertySymbols(e).forEach(t=>{xu[t]=e[t]})}const mi={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function Hke(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:mi}}function bh(e,t,n,r,i,s,o,a=!1,l=!1,c=!1,u=mi){return e&&(a?(e.helper(Jl),e.helper(Ou(e.inSSR,c))):e.helper(Cu(e.inSSR,c)),o&&e.helper(hk)),{type:13,tag:t,props:n,children:r,patchFlag:i,dynamicProps:s,directives:o,isBlock:a,disableTracking:l,isComponent:c,loc:u}}function up(e,t=mi){return{type:17,loc:t,elements:e}}function Si(e,t=mi){return{type:15,loc:t,properties:e}}function bn(e,t){return{type:16,loc:mi,key:at(e)?_t(e,!0):e,value:t}}function _t(e,t=!1,n=mi,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function Ji(e,t=mi){return{type:8,loc:t,children:e}}function $n(e,t=[],n=mi){return{type:14,loc:n,callee:e,arguments:t}}function Nu(e,t=void 0,n=!1,r=!1,i=mi){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:i}}function x_(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:mi}}function jke(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:mi}}function Vke(e){return{type:21,body:e,loc:mi}}function Cu(e,t){return e||t?ok:ak}function Ou(e,t){return e||t?VB:qB}function Ek(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Cu(r,e.isComponent)),t(Jl),t(Ou(r,e.isComponent)))}const g2=new Uint8Array([123,123]),b2=new Uint8Array([125,125]);function y2(e){return e>=97&&e<=122||e>=65&&e<=90}function ti(e){return e===32||e===10||e===9||e===12||e===13}function jo(e){return e===47||e===62||ti(e)}function p0(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const Yn={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class qke{constructor(t,n){this.stack=t,this.cbs=n,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=g2,this.delimiterClose=b2,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=g2,this.delimiterClose=b2}getPos(t){let n=1,r=t+1;for(let i=this.newlines.length-1;i>=0;i--){const s=this.newlines[i];if(t>s){n=i+2,r=t-s;break}}return{column:r,line:n,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const n=this.index+1-this.delimiterOpen.length;n>this.sectionStart&&this.cbs.ontext(this.sectionStart,n),this.state=3,this.sectionStart=n}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?jo(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||ti(t)){const n=this.index-this.currentSequence.length;if(this.sectionStart<n){const r=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=r}this.sectionStart=n+2,this.stateInClosingTagName(t),this.inRCDATA=!1;return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===Yn.TitleEnd||this.currentSequence===Yn.TextareaEnd&&!this.inSFCRoot?t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===60)}stateCDATASequence(t){t===Yn.Cdata[this.sequenceIndex]?++this.sequenceIndex===Yn.Cdata.length&&(this.state=28,this.currentSequence=Yn.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);if(n===10&&this.newlines.push(this.index),n===t)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Yn.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(t,n){this.enterRCDATA(t,n),this.state=31}enterRCDATA(t,n){this.inRCDATA=!0,this.currentSequence=t,this.sequenceIndex=n}stateBeforeTagName(t){t===33?(this.state=22,this.sectionStart=this.index+1):t===63?(this.state=24,this.sectionStart=this.index+1):y2(t)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:t===116?this.state=30:this.state=t===115?29:6):t===47?this.state=8:(this.state=1,this.stateText(t))}stateInTagName(t){jo(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(jo(t)){const n=this.buffer.slice(this.sectionStart,this.index);n!=="template"&&this.enterRCDATA(p0("</"+n),0),this.handleTagName(t)}}handleTagName(t){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)}stateBeforeClosingTagName(t){ti(t)||(t===62?(process.env.NODE_ENV!=="production"&&this.cbs.onerr(14,this.index),this.state=1,this.sectionStart=this.index+1):(this.state=y2(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||ti(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){t===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(t){t===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):t===47?(this.state=7,process.env.NODE_ENV!=="production"&&this.peek()!==62&&this.cbs.onerr(22,this.index)):t===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):ti(t)||(process.env.NODE_ENV!=="production"&&t===61&&this.cbs.onerr(19,this.index),this.handleAttrStart(t))}handleAttrStart(t){t===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):t===46||t===58||t===64||t===35?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):ti(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){t===61||jo(t)?(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):process.env.NODE_ENV!=="production"&&(t===34||t===39||t===60)&&this.cbs.onerr(17,this.index)}stateInDirName(t){t===61||jo(t)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):t===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(t){t===61||jo(t)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===91?this.state=15:t===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(t){t===93?this.state=14:(t===61||jo(t))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(t),process.env.NODE_ENV!=="production"&&this.cbs.onerr(27,this.index))}stateInDirModifier(t){t===61||jo(t)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(t){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(t)}stateAfterAttrName(t){t===61?this.state=18:t===47||t===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)):ti(t)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(t))}stateBeforeAttrValue(t){t===34?(this.state=19,this.sectionStart=this.index+1):t===39?(this.state=20,this.sectionStart=this.index+1):ti(t)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(t))}handleInAttrValue(t,n){(t===n||this.fastForwardTo(n))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(n===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(t){this.handleInAttrValue(t,34)}stateInAttrValueSingleQuotes(t){this.handleInAttrValue(t,39)}stateInAttrValueNoQuotes(t){ti(t)||t===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(t)):(process.env.NODE_ENV!=="production"&&t===34||t===39||t===60||t===61||t===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(t){t===91?(this.state=26,this.sequenceIndex=0):this.state=t===45?25:23}stateInDeclaration(t){(t===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(t){t===45?(this.state=28,this.currentSequence=Yn.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(t){(t===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){t===Yn.ScriptEnd[3]?this.startSpecial(Yn.ScriptEnd,4):t===Yn.StyleEnd[3]?this.startSpecial(Yn.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===Yn.TitleEnd[3]?this.startSpecial(Yn.TitleEnd,4):t===Yn.TextareaEnd[3]?this.startSpecial(Yn.TextareaEnd,4):(this.state=6,this.stateInTagName(t))}startEntity(){}stateInEntity(){}parse(t){for(this.buffer=t;this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);switch(n===10&&this.newlines.push(this.index),this.state){case 1:{this.stateText(n);break}case 2:{this.stateInterpolationOpen(n);break}case 3:{this.stateInterpolation(n);break}case 4:{this.stateInterpolationClose(n);break}case 31:{this.stateSpecialStartSequence(n);break}case 32:{this.stateInRCDATA(n);break}case 26:{this.stateCDATASequence(n);break}case 19:{this.stateInAttrValueDoubleQuotes(n);break}case 12:{this.stateInAttrName(n);break}case 13:{this.stateInDirName(n);break}case 14:{this.stateInDirArg(n);break}case 15:{this.stateInDynamicDirArg(n);break}case 16:{this.stateInDirModifier(n);break}case 28:{this.stateInCommentLike(n);break}case 27:{this.stateInSpecialComment(n);break}case 11:{this.stateBeforeAttrName(n);break}case 6:{this.stateInTagName(n);break}case 34:{this.stateInSFCRootTagName(n);break}case 9:{this.stateInClosingTagName(n);break}case 5:{this.stateBeforeTagName(n);break}case 17:{this.stateAfterAttrName(n);break}case 20:{this.stateInAttrValueSingleQuotes(n);break}case 18:{this.stateBeforeAttrValue(n);break}case 8:{this.stateBeforeClosingTagName(n);break}case 10:{this.stateAfterClosingTagName(n);break}case 29:{this.stateBeforeSpecialS(n);break}case 30:{this.stateBeforeSpecialT(n);break}case 21:{this.stateInAttrValueNoQuotes(n);break}case 7:{this.stateInSelfClosingTag(n);break}case 23:{this.stateInDeclaration(n);break}case 22:{this.stateBeforeDeclaration(n);break}case 25:{this.stateBeforeComment(n);break}case 24:{this.stateInProcessingInstruction(n);break}case 33:{this.stateInEntity();break}}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(this.state===1||this.state===32&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===19||this.state===20||this.state===21)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length;this.sectionStart>=t||(this.state===28?this.currentSequence===Yn.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,n){}}const zke={COMPILER_IS_ON_ELEMENT:{message:'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',link:"https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"},COMPILER_V_BIND_SYNC:{message:e=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${e}.sync\` should be changed to \`v-model:${e}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},COMPILER_V_BIND_OBJECT_ORDER:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},COMPILER_V_ON_NATIVE:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with <template> tags or use a computed property that filters v-for data source.",link:"https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html"},COMPILER_NATIVE_TEMPLATE:{message:"<template> with no special directives will render as a native template element instead of its inner content in Vue 3."},COMPILER_INLINE_TEMPLATE:{message:'"inline-template" has been removed in Vue 3.',link:"https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html"},COMPILER_FILTERS:{message:'filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.',link:"https://v3-migration.vuejs.org/breaking-changes/filters.html"}};function N_(e,{compatConfig:t}){const n=t&&t[e];return e==="MODE"?n||3:n}function Sa(e,t){const n=N_("MODE",t),r=N_(e,t);return n===3?r===!0:r!==!1}function Du(e,t,n,...r){const i=Sa(e,t);return process.env.NODE_ENV!=="production"&&i&&m0(e,t,n,...r),i}function m0(e,t,n,...r){if(N_(e,t)==="suppress-warning")return;const{message:s,link:o}=zke[e],a=`(deprecation ${e}) ${typeof s=="function"?s(...r):s}${o?`
389
+ Details: ${o}`:""}`,l=new SyntaxError(a);l.code=e,n&&(l.loc=n),t.onWarn(l)}function _k(e){throw e}function YB(e){process.env.NODE_ENV!=="production"&&console.warn(`[Vue warn] ${e.message}`)}function Kt(e,t,n,r){const i=process.env.NODE_ENV!=="production"?(n||Kke)[e]+(r||""):`https://vuejs.org/error-reference/#compiler-${e}`,s=new SyntaxError(String(i));return s.code=e,s.loc=t,s}const Kke={0:"Illegal comment.",1:"CDATA section is allowed only in XML context.",2:"Duplicate attribute.",3:"End tag cannot have attributes.",4:"Illegal '/' in tags.",5:"Unexpected EOF in tag.",6:"Unexpected EOF in CDATA section.",7:"Unexpected EOF in comment.",8:"Unexpected EOF in script.",9:"Unexpected EOF in tag.",10:"Incorrectly closed comment.",11:"Incorrectly opened comment.",12:"Illegal tag name. Use '&lt;' to print '<'.",13:"Attribute value was expected.",14:"End tag name was expected.",15:"Whitespace was expected.",16:"Unexpected '<!--' in comment.",17:`Attribute name cannot contain U+0022 ("), U+0027 ('), and U+003C (<).`,18:"Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).",19:"Attribute name cannot start with '='.",21:"'<?' is allowed only in XML context.",20:"Unexpected null character.",22:"Illegal '/' in tags.",23:"Invalid end tag.",24:"Element is missing end tag.",25:"Interpolation end sign was not found.",27:"End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.",26:"Legal directive name was expected.",28:"v-if/v-else-if is missing expression.",29:"v-if/else branches must use unique keys.",30:"v-else/v-else-if has no adjacent v-if or v-else-if.",31:"v-for is missing expression.",32:"v-for has invalid expression.",33:"<template v-for> key should be placed on the <template> tag.",34:"v-bind is missing expression.",52:"v-bind with same-name shorthand only allows static argument.",35:"v-on is missing expression.",36:"Unexpected custom directive on <slot> outlet.",37:"Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.",38:"Duplicate slot names found. ",39:"Extraneous children found when component already has explicitly named default slot. These children will be ignored.",40:"v-slot can only be used on components or <template> tags.",41:"v-model is missing expression.",42:"v-model value must be a valid JavaScript member expression.",43:"v-model cannot be used on v-for or v-slot scope variables because they are not writable.",44:`v-model cannot be used on a prop, because local prop bindings are not writable.
390
+ Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,45:"Error parsing JavaScript expression: ",46:"<KeepAlive> expects exactly one child component.",51:"@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.",47:'"prefixIdentifiers" option is not supported in this build of compiler.',48:"ES module mode is not supported in this build of compiler.",49:'"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.',50:'"scopeId" option is only supported in module mode.',53:""},Gr=e=>e.type===4&&e.isStatic;function XB(e){switch(e){case"Teleport":case"teleport":return If;case"Suspense":case"suspense":return sk;case"KeepAlive":case"keep-alive":return d0;case"BaseTransition":case"base-transition":return jB}}const Wke=/^\d|[^\$\w]/,wk=e=>!Wke.test(e),Gke=/[A-Za-z_$\xA0-\uFFFF]/,Yke=/[\.\?\w$\xA0-\uFFFF]/,Xke=/\s+[.[]\s*|\s*[.[]\s+/g,Qke=e=>{e=e.trim().replace(Xke,o=>o.trim());let t=0,n=[],r=0,i=0,s=null;for(let o=0;o<e.length;o++){const a=e.charAt(o);switch(t){case 0:if(a==="[")n.push(t),t=1,r++;else if(a==="(")n.push(t),t=2,i++;else if(!(o===0?Gke:Yke).test(a))return!1;break;case 1:a==="'"||a==='"'||a==="`"?(n.push(t),t=3,s=a):a==="["?r++:a==="]"&&(--r||(t=n.pop()));break;case 2:if(a==="'"||a==='"'||a==="`")n.push(t),t=3,s=a;else if(a==="(")i++;else if(a===")"){if(o===e.length-1)return!1;--i||(t=n.pop())}break;case 3:a===s&&(t=n.pop(),s=null);break}}return!r&&!i},QB=Qke;function v2(e,t){if(!e)throw new Error(t||"unexpected compiler condition")}function wi(e,t,n=!1){for(let r=0;r<e.props.length;r++){const i=e.props[r];if(i.type===7&&(n||i.exp)&&(at(t)?i.name===t:t.test(i.name)))return i}}function yh(e,t,n=!1,r=!1){for(let i=0;i<e.props.length;i++){const s=e.props[i];if(s.type===6){if(n)continue;if(s.name===t&&(s.value||r))return s}else if(s.name==="bind"&&(s.exp||r)&&fa(s.arg,t))return s}}function fa(e,t){return!!(e&&Gr(e)&&e.content===t)}function Jke(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function qv(e){return e.type===5||e.type===2}function Zke(e){return e.type===7&&e.name==="slot"}function g0(e){return e.type===1&&e.tagType===3}function b0(e){return e.type===1&&e.tagType===2}const eAe=new Set([gh,cp]);function JB(e,t=[]){if(e&&!at(e)&&e.type===14){const n=e.callee;if(!at(n)&&eAe.has(n))return JB(e.arguments[0],t.concat(e))}return[e,t]}function y0(e,t,n){let r,i=e.type===13?e.props:e.arguments[2],s=[],o;if(i&&!at(i)&&i.type===14){const a=JB(i);i=a[0],s=a[1],o=s[s.length-1]}if(i==null||at(i))r=Si([t]);else if(i.type===14){const a=i.arguments[0];!at(a)&&a.type===15?E2(t,a)||a.properties.unshift(t):i.callee===bk?r=$n(n.helper(f0),[Si([t]),i]):i.arguments.unshift(Si([t])),!r&&(r=i)}else i.type===15?(E2(t,i)||i.properties.unshift(t),r=i):(r=$n(n.helper(f0),[Si([t]),i]),o&&o.callee===cp&&(o=s[s.length-2]));e.type===13?o?o.arguments[0]=r:e.props=r:o?o.arguments[0]=r:e.arguments[2]=r}function E2(e,t){let n=!1;if(e.key.type===4){const r=e.key.content;n=t.properties.some(i=>i.key.type===4&&i.key.content===r)}return n}function vh(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,r)=>n==="-"?"_":e.charCodeAt(r).toString())}`}function tAe(e){return e.type===14&&e.callee===vk?e.arguments[1].returns:e}const nAe=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,ZB={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:xm,isPreTag:xm,isCustomElement:xm,onError:_k,onWarn:YB,comments:process.env.NODE_ENV!=="production",prefixIdentifiers:!1};let Lt=ZB,Eh=null,$l="",fr=null,$t=null,Hr="",Qs=-1,tl=-1,v0=0,ra=!1,C_=null;const gn=[],Zt=new qke(gn,{onerr:Br,ontext(e,t){Sm(Qn(e,t),e,t)},ontextentity(e,t,n){Sm(e,t,n)},oninterpolation(e,t){if(ra)return Sm(Qn(e,t),e,t);let n=e+Zt.delimiterOpen.length,r=t-Zt.delimiterClose.length;for(;ti($l.charCodeAt(n));)n++;for(;ti($l.charCodeAt(r-1));)r--;let i=Qn(n,r);i.includes("&")&&(i=Lt.decodeEntities(i,!1)),O_({type:5,content:ig(i,!1,Pn(n,r)),loc:Pn(e,t)})},onopentagname(e,t){const n=Qn(e,t);fr={type:1,tag:n,ns:Lt.getNamespace(n,gn[0],Lt.ns),tagType:0,props:[],children:[],loc:Pn(e-1,t),codegenNode:void 0}},onopentagend(e){w2(e)},onclosetag(e,t){const n=Qn(e,t);if(!Lt.isVoidTag(n)){let r=!1;for(let i=0;i<gn.length;i++)if(gn[i].tag.toLowerCase()===n.toLowerCase()){r=!0,i>0&&Br(24,gn[0].loc.start.offset);for(let o=0;o<=i;o++){const a=gn.shift();rg(a,t,o<i)}break}r||Br(23,e6(e,60))}},onselfclosingtag(e){var t;const n=fr.tag;fr.isSelfClosing=!0,w2(e),((t=gn[0])==null?void 0:t.tag)===n&&rg(gn.shift(),e)},onattribname(e,t){$t={type:6,name:Qn(e,t),nameLoc:Pn(e,t),value:void 0,loc:Pn(e)}},ondirname(e,t){const n=Qn(e,t),r=n==="."||n===":"?"bind":n==="@"?"on":n==="#"?"slot":n.slice(2);if(!ra&&r===""&&Br(26,e),ra||r==="")$t={type:6,name:n,nameLoc:Pn(e,t),value:void 0,loc:Pn(e)};else if($t={type:7,name:r,rawName:n,exp:void 0,arg:void 0,modifiers:n==="."?["prop"]:[],loc:Pn(e)},r==="pre"){ra=Zt.inVPre=!0,C_=fr;const i=fr.props;for(let s=0;s<i.length;s++)i[s].type===7&&(i[s]=dAe(i[s]))}},ondirarg(e,t){if(e===t)return;const n=Qn(e,t);if(ra)$t.name+=n,wl($t.nameLoc,t);else{const r=n[0]!=="[";$t.arg=ig(r?n:n.slice(1,-1),r,Pn(e,t),r?3:0)}},ondirmodifier(e,t){const n=Qn(e,t);if(ra)$t.name+="."+n,wl($t.nameLoc,t);else if($t.name==="slot"){const r=$t.arg;r&&(r.content+="."+n,wl(r.loc,t))}else $t.modifiers.push(n)},onattribdata(e,t){Hr+=Qn(e,t),Qs<0&&(Qs=e),tl=t},onattribentity(e,t,n){Hr+=e,Qs<0&&(Qs=t),tl=n},onattribnameend(e){const t=$t.loc.start.offset,n=Qn(t,e);$t.type===7&&($t.rawName=n),fr.props.some(r=>(r.type===7?r.rawName:r.name)===n)&&Br(2,t)},onattribend(e,t){if(fr&&$t){if(wl($t.loc,t),e!==0)if(Hr.includes("&")&&(Hr=Lt.decodeEntities(Hr,!0)),$t.type===6)$t.name==="class"&&(Hr=n6(Hr).trim()),e===1&&!Hr&&Br(13,t),$t.value={type:2,content:Hr,loc:e===1?Pn(Qs,tl):Pn(Qs-1,tl+1)},Zt.inSFCRoot&&fr.tag==="template"&&$t.name==="lang"&&Hr&&Hr!=="html"&&Zt.enterRCDATA(p0("</template"),0);else{let n=0;$t.exp=ig(Hr,!1,Pn(Qs,tl),0,n),$t.name==="for"&&($t.forParseResult=iAe($t.exp));let r=-1;$t.name==="bind"&&(r=$t.modifiers.indexOf("sync"))>-1&&Du("COMPILER_V_BIND_SYNC",Lt,$t.loc,$t.rawName)&&($t.name="model",$t.modifiers.splice(r,1))}($t.type!==7||$t.name!=="pre")&&fr.props.push($t)}Hr="",Qs=tl=-1},oncomment(e,t){Lt.comments&&O_({type:3,content:Qn(e,t),loc:Pn(e-4,t+3)})},onend(){const e=$l.length;if(process.env.NODE_ENV!=="production"&&Zt.state!==1)switch(Zt.state){case 5:case 8:Br(5,e);break;case 3:case 4:Br(25,Zt.sectionStart);break;case 28:Zt.currentSequence===Yn.CdataEnd?Br(6,e):Br(7,e);break;case 6:case 7:case 9:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:Br(9,e);break}for(let t=0;t<gn.length;t++)rg(gn[t],e-1),Br(24,gn[t].loc.start.offset)},oncdata(e,t){gn[0].ns!==0?Sm(Qn(e,t),e,t):Br(1,e-9)},onprocessinginstruction(e){(gn[0]?gn[0].ns:Lt.ns)===0&&Br(21,e-1)}}),_2=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,rAe=/^\(|\)$/g;function iAe(e){const t=e.loc,n=e.content,r=n.match(nAe);if(!r)return;const[,i,s]=r,o=(d,f,h=!1)=>{const p=t.start.offset+f,m=p+d.length;return ig(d,!1,Pn(p,m),0,h?1:0)},a={source:o(s.trim(),n.indexOf(s,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=i.trim().replace(rAe,"").trim();const c=i.indexOf(l),u=l.match(_2);if(u){l=l.replace(_2,"").trim();const d=u[1].trim();let f;if(d&&(f=n.indexOf(d,c+l.length),a.key=o(d,f,!0)),u[2]){const h=u[2].trim();h&&(a.index=o(h,n.indexOf(h,a.key?f+d.length:c+l.length),!0))}}return l&&(a.value=o(l,c,!0)),a}function Qn(e,t){return $l.slice(e,t)}function w2(e){Zt.inSFCRoot&&(fr.innerLoc=Pn(e+1,e+1)),O_(fr);const{tag:t,ns:n}=fr;n===0&&Lt.isPreTag(t)&&v0++,Lt.isVoidTag(t)?rg(fr,e):(gn.unshift(fr),(n===1||n===2)&&(Zt.inXML=!0)),fr=null}function Sm(e,t,n){var r;{const o=(r=gn[0])==null?void 0:r.tag;o!=="script"&&o!=="style"&&e.includes("&")&&(e=Lt.decodeEntities(e,!1))}const i=gn[0]||Eh,s=i.children[i.children.length-1];(s==null?void 0:s.type)===2?(s.content+=e,wl(s.loc,n)):i.children.push({type:2,content:e,loc:Pn(t,n)})}function rg(e,t,n=!1){n?wl(e.loc,e6(t,60)):wl(e.loc,t+1),Zt.inSFCRoot&&(e.children.length?e.innerLoc.end=wt({},e.children[e.children.length-1].loc.end):e.innerLoc.end=wt({},e.innerLoc.start),e.innerLoc.source=Qn(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:r,ns:i}=e;ra||(r==="slot"?e.tagType=2:T2(e)?e.tagType=3:oAe(e)&&(e.tagType=1)),Zt.inRCDATA||(e.children=t6(e.children,e.tag)),i===0&&Lt.isPreTag(r)&&v0--,C_===e&&(ra=Zt.inVPre=!1,C_=null),Zt.inXML&&(gn[0]?gn[0].ns:Lt.ns)===0&&(Zt.inXML=!1);{const s=e.props;if(process.env.NODE_ENV!=="production"&&Sa("COMPILER_V_IF_V_FOR_PRECEDENCE",Lt)){let a=!1,l=!1;for(let c=0;c<s.length;c++){const u=s[c];if(u.type===7&&(u.name==="if"?a=!0:u.name==="for"&&(l=!0)),a&&l){m0("COMPILER_V_IF_V_FOR_PRECEDENCE",Lt,e.loc);break}}}if(!Zt.inSFCRoot&&Sa("COMPILER_NATIVE_TEMPLATE",Lt)&&e.tag==="template"&&!T2(e)){process.env.NODE_ENV!=="production"&&m0("COMPILER_NATIVE_TEMPLATE",Lt,e.loc);const a=gn[0]||Eh,l=a.children.indexOf(e);a.children.splice(l,1,...e.children)}const o=s.find(a=>a.type===6&&a.name==="inline-template");o&&Du("COMPILER_INLINE_TEMPLATE",Lt,o.loc)&&e.children.length&&(o.value={type:2,content:Qn(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:o.loc})}}function e6(e,t){let n=e;for(;$l.charCodeAt(n)!==t&&n>=0;)n--;return n}const sAe=new Set(["if","else","else-if","for","slot"]);function T2({tag:e,props:t}){if(e==="template"){for(let n=0;n<t.length;n++)if(t[n].type===7&&sAe.has(t[n].name))return!0}return!1}function oAe({tag:e,props:t}){var n;if(Lt.isCustomElement(e))return!1;if(e==="component"||aAe(e.charCodeAt(0))||XB(e)||(n=Lt.isBuiltInComponent)!=null&&n.call(Lt,e)||Lt.isNativeTag&&!Lt.isNativeTag(e))return!0;for(let r=0;r<t.length;r++){const i=t[r];if(i.type===6){if(i.name==="is"&&i.value){if(i.value.content.startsWith("vue:"))return!0;if(Du("COMPILER_IS_ON_ELEMENT",Lt,i.loc))return!0}}else if(i.name==="bind"&&fa(i.arg,"is")&&Du("COMPILER_IS_ON_ELEMENT",Lt,i.loc))return!0}return!1}function aAe(e){return e>64&&e<91}const lAe=/\r\n/g;function t6(e,t){var n,r;const i=Lt.whitespace!=="preserve";let s=!1;for(let o=0;o<e.length;o++){const a=e[o];if(a.type===2)if(v0)a.content=a.content.replace(lAe,`
391
+ `);else if(cAe(a.content)){const l=(n=e[o-1])==null?void 0:n.type,c=(r=e[o+1])==null?void 0:r.type;!l||!c||i&&(l===3&&(c===3||c===1)||l===1&&(c===3||c===1&&uAe(a.content)))?(s=!0,e[o]=null):a.content=" "}else i&&(a.content=n6(a.content))}if(v0&&t&&Lt.isPreTag(t)){const o=e[0];o&&o.type===2&&(o.content=o.content.replace(/^\r?\n/,""))}return s?e.filter(Boolean):e}function cAe(e){for(let t=0;t<e.length;t++)if(!ti(e.charCodeAt(t)))return!1;return!0}function uAe(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function n6(e){let t="",n=!1;for(let r=0;r<e.length;r++)ti(e.charCodeAt(r))?n||(t+=" ",n=!0):(t+=e[r],n=!1);return t}function O_(e){(gn[0]||Eh).children.push(e)}function Pn(e,t){return{start:Zt.getPos(e),end:t==null?t:Zt.getPos(t),source:t==null?t:Qn(e,t)}}function wl(e,t){e.end=Zt.getPos(t),e.source=Qn(e.start.offset,t)}function dAe(e){const t={type:6,name:e.rawName,nameLoc:Pn(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const n=e.exp.loc;n.end.offset<e.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),t.value={type:2,content:e.exp.content,loc:n}}return t}function ig(e,t=!1,n,r=0,i=0){return _t(e,t,n,r)}function Br(e,t,n){Lt.onError(Kt(e,Pn(t,t),void 0,n))}function fAe(){Zt.reset(),fr=null,$t=null,Hr="",Qs=-1,tl=-1,gn.length=0}function hAe(e,t){if(fAe(),$l=e,Lt=wt({},ZB),t){let i;for(i in t)t[i]!=null&&(Lt[i]=t[i])}if(process.env.NODE_ENV!=="production"&&!Lt.decodeEntities)throw new Error("[@vue/compiler-core] decodeEntities option is required in browser builds.");Zt.mode=Lt.parseMode==="html"?1:Lt.parseMode==="sfc"?2:0,Zt.inXML=Lt.ns===1||Lt.ns===2;const n=t==null?void 0:t.delimiters;n&&(Zt.delimiterOpen=p0(n[0]),Zt.delimiterClose=p0(n[1]));const r=Eh=Hke([],e);return Zt.parse($l),r.loc=Pn(0,e.length),r.children=t6(r.children),Eh=null,r}function pAe(e,t){sg(e,t,r6(e,e.children[0]))}function r6(e,t){const{children:n}=e;return n.length===1&&t.type===1&&!b0(t)}function sg(e,t,n=!1){const{children:r}=e,i=r.length;let s=0;for(let o=0;o<r.length;o++){const a=r[o];if(a.type===1&&a.tagType===0){const l=n?0:ki(a,t);if(l>0){if(l>=2){a.codegenNode.patchFlag=-1+(process.env.NODE_ENV!=="production"?" /* HOISTED */":""),a.codegenNode=t.hoist(a.codegenNode),s++;continue}}else{const c=a.codegenNode;if(c.type===13){const u=a6(c);if((!u||u===512||u===1)&&s6(a,t)>=2){const d=o6(a);d&&(c.props=t.hoist(d))}c.dynamicProps&&(c.dynamicProps=t.hoist(c.dynamicProps))}}}if(a.type===1){const l=a.tagType===1;l&&t.scopes.vSlot++,sg(a,t),l&&t.scopes.vSlot--}else if(a.type===11)sg(a,t,a.children.length===1);else if(a.type===9)for(let l=0;l<a.branches.length;l++)sg(a.branches[l],t,a.branches[l].children.length===1)}if(s&&t.transformHoist&&t.transformHoist(r,t,e),s&&s===i&&e.type===1&&e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&qe(e.codegenNode.children)){const o=t.hoist(up(e.codegenNode.children));t.hmr&&(o.content=`[...${o.content}]`),e.codegenNode.children=o}}function ki(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const r=n.get(e);if(r!==void 0)return r;const i=e.codegenNode;if(i.type!==13||i.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject")return 0;if(a6(i))return n.set(e,0),0;{let a=3;const l=s6(e,t);if(l===0)return n.set(e,0),0;l<a&&(a=l);for(let c=0;c<e.children.length;c++){const u=ki(e.children[c],t);if(u===0)return n.set(e,0),0;u<a&&(a=u)}if(a>1)for(let c=0;c<e.props.length;c++){const u=e.props[c];if(u.type===7&&u.name==="bind"&&u.exp){const d=ki(u.exp,t);if(d===0)return n.set(e,0),0;d<a&&(a=d)}}if(i.isBlock){for(let c=0;c<e.props.length;c++)if(e.props[c].type===7)return n.set(e,0),0;t.removeHelper(Jl),t.removeHelper(Ou(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper(Cu(t.inSSR,i.isComponent))}return n.set(e,a),a}case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return ki(e.content,t);case 4:return e.constType;case 8:let o=3;for(let a=0;a<e.children.length;a++){const l=e.children[a];if(at(l)||Zi(l))continue;const c=ki(l,t);if(c===0)return 0;c<o&&(o=c)}return o;default:return process.env.NODE_ENV,0}}const mAe=new Set([mk,gk,gh,cp]);function i6(e,t){if(e.type===14&&!at(e.callee)&&mAe.has(e.callee)){const n=e.arguments[0];if(n.type===4)return ki(n,t);if(n.type===14)return i6(n,t)}return 0}function s6(e,t){let n=3;const r=o6(e);if(r&&r.type===15){const{properties:i}=r;for(let s=0;s<i.length;s++){const{key:o,value:a}=i[s],l=ki(o,t);if(l===0)return l;l<n&&(n=l);let c;if(a.type===4?c=ki(a,t):a.type===14?c=i6(a,t):c=0,c===0)return c;c<n&&(n=c)}}return n}function o6(e){const t=e.codegenNode;if(t.type===13)return t.props}function a6(e){const t=e.patchFlag;return t?parseInt(t,10):void 0}function gAe(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,hmr:i=!1,cacheHandlers:s=!1,nodeTransforms:o=[],directiveTransforms:a={},transformHoist:l=null,isBuiltInComponent:c=Yt,isCustomElement:u=Yt,expressionPlugins:d=[],scopeId:f=null,slotted:h=!0,ssr:p=!1,inSSR:m=!1,ssrCssVars:g="",bindingMetadata:b=Pt,inline:v=!1,isTS:y=!1,onError:E=_k,onWarn:T=YB,compatConfig:w}){const S=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),k={filename:t,selfName:S&&Ps(hn(S[1])),prefixIdentifiers:n,hoistStatic:r,hmr:i,cacheHandlers:s,nodeTransforms:o,directiveTransforms:a,transformHoist:l,isBuiltInComponent:c,isCustomElement:u,expressionPlugins:d,scopeId:f,slotted:h,ssr:p,inSSR:m,ssrCssVars:g,bindingMetadata:b,inline:v,isTS:y,onError:E,onWarn:T,compatConfig:w,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new WeakMap,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(x){const A=k.helpers.get(x)||0;return k.helpers.set(x,A+1),x},removeHelper(x){const A=k.helpers.get(x);if(A){const M=A-1;M?k.helpers.set(x,M):k.helpers.delete(x)}},helperString(x){return`_${xu[k.helper(x)]}`},replaceNode(x){if(process.env.NODE_ENV!=="production"){if(!k.currentNode)throw new Error("Node being replaced is already removed.");if(!k.parent)throw new Error("Cannot replace root node.")}k.parent.children[k.childIndex]=k.currentNode=x},removeNode(x){if(process.env.NODE_ENV!=="production"&&!k.parent)throw new Error("Cannot remove root node.");const A=k.parent.children,M=x?A.indexOf(x):k.currentNode?k.childIndex:-1;if(process.env.NODE_ENV!=="production"&&M<0)throw new Error("node being removed is not a child of current parent");!x||x===k.currentNode?(k.currentNode=null,k.onNodeRemoved()):k.childIndex>M&&(k.childIndex--,k.onNodeRemoved()),k.parent.children.splice(M,1)},onNodeRemoved:Yt,addIdentifiers(x){},removeIdentifiers(x){},hoist(x){at(x)&&(x=_t(x)),k.hoists.push(x);const A=_t(`_hoisted_${k.hoists.length}`,!1,x.loc,2);return A.hoisted=x,A},cache(x,A=!1){return jke(k.cached++,x,A)}};return k.filters=new Set,k}function bAe(e,t){const n=gAe(e,t);ly(e,n),t.hoistStatic&&pAe(e,n),t.ssr||yAe(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function yAe(e,t){const{helper:n}=t,{children:r}=e;if(r.length===1){const i=r[0];if(r6(e,i)&&i.codegenNode){const s=i.codegenNode;s.type===13&&Ek(s,t),e.codegenNode=s}else e.codegenNode=i}else if(r.length>1){let i=64,s=Cs[64];process.env.NODE_ENV!=="production"&&r.filter(o=>o.type!==3).length===1&&(i|=2048,s+=`, ${Cs[2048]}`),e.codegenNode=bh(t,n(mh),void 0,e.children,i+(process.env.NODE_ENV!=="production"?` /* ${s} */`:""),void 0,void 0,!0,void 0,!1)}}function vAe(e,t){let n=0;const r=()=>{n--};for(;n<e.children.length;n++){const i=e.children[n];at(i)||(t.parent=e,t.childIndex=n,t.onNodeRemoved=r,ly(i,t))}}function ly(e,t){t.currentNode=e;const{nodeTransforms:n}=t,r=[];for(let s=0;s<n.length;s++){const o=n[s](e,t);if(o&&(qe(o)?r.push(...o):r.push(o)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(lp);break;case 5:t.ssr||t.helper(ay);break;case 9:for(let s=0;s<e.branches.length;s++)ly(e.branches[s],t);break;case 10:case 11:case 1:case 0:vAe(e,t);break}t.currentNode=e;let i=r.length;for(;i--;)r[i]()}function l6(e,t){const n=at(e)?r=>r===e:r=>e.test(r);return(r,i)=>{if(r.type===1){const{props:s}=r;if(r.tagType===3&&s.some(Zke))return;const o=[];for(let a=0;a<s.length;a++){const l=s[a];if(l.type===7&&n(l.name)){s.splice(a,1),a--;const c=t(r,l,i);c&&o.push(c)}}return o}}}const cy="/*#__PURE__*/",c6=e=>`${xu[e]}: _${xu[e]}`;function EAe(e,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:r=!1,filename:i="template.vue.html",scopeId:s=null,optimizeImports:o=!1,runtimeGlobalName:a="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:u=!1,isTS:d=!1,inSSR:f=!1}){const h={mode:t,prefixIdentifiers:n,sourceMap:r,filename:i,scopeId:s,optimizeImports:o,runtimeGlobalName:a,runtimeModuleName:l,ssrRuntimeModuleName:c,ssr:u,isTS:d,inSSR:f,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(m){return`_${xu[m]}`},push(m,g=-2,b){h.code+=m},indent(){p(++h.indentLevel)},deindent(m=!1){m?--h.indentLevel:p(--h.indentLevel)},newline(){p(h.indentLevel)}};function p(m){h.push(`
392
+ `+" ".repeat(m),0)}return h}function _Ae(e,t={}){const n=EAe(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:i,prefixIdentifiers:s,indent:o,deindent:a,newline:l,scopeId:c,ssr:u}=n,d=Array.from(e.helpers),f=d.length>0,h=!s&&r!=="module";wAe(e,n);const m=u?"ssrRender":"render",b=(u?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(i(`function ${m}(${b}) {`),o(),h&&(i("with (_ctx) {"),o(),f&&(i(`const { ${d.map(c6).join(", ")} } = _Vue
393
393
  `,-1),l())),e.components.length&&(zv(e.components,"component",n),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(zv(e.directives,"directive",n),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),zv(e.filters,"filter",n),l()),e.temps>0){i("let ");for(let v=0;v<e.temps;v++)i(`${v>0?", ":""}_temp${v}`)}return(e.components.length||e.directives.length||e.temps)&&(i(`
394
- `,0),l()),u||i("return "),e.codegenNode?Er(e.codegenNode,n):i("null"),h&&(a(),i("}")),a(),i("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function SAe(e,t){const{ssr:n,prefixIdentifiers:r,push:i,newline:s,runtimeModuleName:o,runtimeGlobalName:a,ssrRuntimeModuleName:l}=t,c=a,u=Array.from(e.helpers);if(u.length>0&&(i(`const _Vue = ${c}
394
+ `,0),l()),u||i("return "),e.codegenNode?Er(e.codegenNode,n):i("null"),h&&(a(),i("}")),a(),i("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function wAe(e,t){const{ssr:n,prefixIdentifiers:r,push:i,newline:s,runtimeModuleName:o,runtimeGlobalName:a,ssrRuntimeModuleName:l}=t,c=a,u=Array.from(e.helpers);if(u.length>0&&(i(`const _Vue = ${c}
395
395
  `,-1),e.hoists.length)){const d=[ok,ak,lp,lk,zB].filter(f=>u.includes(f)).map(c6).join(", ");i(`const { ${d} } = _Vue
396
- `,-1)}kAe(e.hoists,t),s(),i("return ")}function zv(e,t,{helper:n,push:r,newline:i,isTS:s}){const o=n(t==="filter"?fk:t==="component"?ck:dk);for(let a=0;a<e.length;a++){let l=e[a];const c=l.endsWith("__self");c&&(l=l.slice(0,-6)),r(`const ${vh(l,t)} = ${o}(${JSON.stringify(l)}${c?", true":""})${s?"!":""}`),a<e.length-1&&i()}}function kAe(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r,helper:i,scopeId:s,mode:o}=t;r();for(let a=0;a<e.length;a++){const l=e[a];l&&(n(`const _hoisted_${a+1} = `),Er(l,t),r())}t.pure=!1}function AAe(e){return at(e)||e.type===4||e.type===2||e.type===5||e.type===8}function Tk(e,t){const n=e.length>3||process.env.NODE_ENV!=="production"&&e.some(r=>qe(r)||!AAe(r));t.push("["),n&&t.indent(),dp(e,t,n),n&&t.deindent(),t.push("]")}function dp(e,t,n=!1,r=!0){const{push:i,newline:s}=t;for(let o=0;o<e.length;o++){const a=e[o];at(a)?i(a,-3):qe(a)?Tk(a,t):Er(a,t),o<e.length-1&&(n?(r&&i(","),s()):r&&i(", "))}}function Er(e,t){if(at(e)){t.push(e,-3);return}if(Zi(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:process.env.NODE_ENV!=="production"&&v2(e.codegenNode!=null,"Codegen node is missing for element/if/for node. Apply appropriate transforms first."),Er(e.codegenNode,t);break;case 2:xAe(e,t);break;case 4:u6(e,t);break;case 5:NAe(e,t);break;case 12:Er(e.codegenNode,t);break;case 8:d6(e,t);break;case 3:OAe(e,t);break;case 13:DAe(e,t);break;case 14:RAe(e,t);break;case 15:PAe(e,t);break;case 17:LAe(e,t);break;case 18:MAe(e,t);break;case 19:$Ae(e,t);break;case 20:FAe(e,t);break;case 21:dp(e.body,t,!0,!1);break;case 22:break;case 23:break;case 24:break;case 25:break;case 26:break;case 10:break;default:if(process.env.NODE_ENV!=="production")return v2(!1,`unhandled codegen node type: ${e.type}`),e}}function xAe(e,t){t.push(JSON.stringify(e.content),-3,e)}function u6(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,-3,e)}function NAe(e,t){const{push:n,helper:r,pure:i}=t;i&&n(cy),n(`${r(ay)}(`),Er(e.content,t),n(")")}function d6(e,t){for(let n=0;n<e.children.length;n++){const r=e.children[n];at(r)?t.push(r,-3):Er(r,t)}}function CAe(e,t){const{push:n}=t;if(e.type===8)n("["),d6(e,t),n("]");else if(e.isStatic){const r=wk(e.content)?e.content:JSON.stringify(e.content);n(r,-2,e)}else n(`[${e.content}]`,-3,e)}function OAe(e,t){const{push:n,helper:r,pure:i}=t;i&&n(cy),n(`${r(lp)}(${JSON.stringify(e.content)})`,-3,e)}function DAe(e,t){const{push:n,helper:r,pure:i}=t,{tag:s,props:o,children:a,patchFlag:l,dynamicProps:c,directives:u,isBlock:d,disableTracking:f,isComponent:h}=e;u&&n(r(hk)+"("),d&&n(`(${r(Jl)}(${f?"true":""}), `),i&&n(cy);const p=d?Ou(t.inSSR,h):Cu(t.inSSR,h);n(r(p)+"(",-2,e),dp(IAe([s,o,a,l,c]),t),n(")"),d&&n(")"),u&&(n(", "),Er(u,t),n(")"))}function IAe(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(n=>n||"null")}function RAe(e,t){const{push:n,helper:r,pure:i}=t,s=at(e.callee)?e.callee:r(e.callee);i&&n(cy),n(s+"(",-2,e),dp(e.arguments,t),n(")")}function PAe(e,t){const{push:n,indent:r,deindent:i,newline:s}=t,{properties:o}=e;if(!o.length){n("{}",-2,e);return}const a=o.length>1||process.env.NODE_ENV!=="production"&&o.some(l=>l.value.type!==4);n(a?"{":"{ "),a&&r();for(let l=0;l<o.length;l++){const{key:c,value:u}=o[l];CAe(c,t),n(": "),Er(u,t),l<o.length-1&&(n(","),s())}a&&i(),n(a?"}":" }")}function LAe(e,t){Tk(e.elements,t)}function MAe(e,t){const{push:n,indent:r,deindent:i}=t,{params:s,returns:o,body:a,newline:l,isSlot:c}=e;c&&n(`_${xu[yk]}(`),n("(",-2,e),qe(s)?dp(s,t):s&&Er(s,t),n(") => "),(l||a)&&(n("{"),r()),o?(l&&n("return "),qe(o)?Tk(o,t):Er(o,t)):a&&Er(a,t),(l||a)&&(i(),n("}")),c&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function $Ae(e,t){const{test:n,consequent:r,alternate:i,newline:s}=e,{push:o,indent:a,deindent:l,newline:c}=t;if(n.type===4){const d=!wk(n.content);d&&o("("),u6(n,t),d&&o(")")}else o("("),Er(n,t),o(")");s&&a(),t.indentLevel++,s||o(" "),o("? "),Er(r,t),t.indentLevel--,s&&c(),s||o(" "),o(": ");const u=i.type===19;u||t.indentLevel++,Er(i,t),u||t.indentLevel--,s&&l(!0)}function FAe(e,t){const{push:n,helper:r,indent:i,deindent:s,newline:o}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(i(),n(`${r(h0)}(-1),`),o()),n(`_cache[${e.index}] = `),Er(e.value,t),e.isVNode&&(n(","),o(),n(`${r(h0)}(1),`),o(),n(`_cache[${e.index}]`),s()),n(")")}const BAe=new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b"),UAe=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g;function Tl(e,t,n=!1,r=!1){const i=e.content;if(i.trim())try{new Function(r?` ${i} `:`return ${n?`(${i}) => {}`:`(${i})`}`)}catch(s){let o=s.message;const a=i.replace(UAe,"").match(BAe);a&&(o=`avoid using JavaScript keyword as property name: "${a[0]}"`),t.onError(Kt(45,e.loc,void 0,o))}}const HAe=(e,t)=>{if(e.type===5)e.content=Kv(e.content,t);else if(e.type===1)for(let n=0;n<e.props.length;n++){const r=e.props[n];if(r.type===7&&r.name!=="for"){const i=r.exp,s=r.arg;i&&i.type===4&&!(r.name==="on"&&s)&&(r.exp=Kv(i,t,r.name==="slot")),s&&s.type===4&&!s.isStatic&&(r.arg=Kv(s,t))}}};function Kv(e,t,n=!1,r=!1,i=Object.create(t.identifiers)){return process.env.NODE_ENV!=="production"&&Tl(e,t,n,r),e}const jAe=l6(/^(if|else|else-if)$/,(e,t,n)=>VAe(e,t,n,(r,i,s)=>{const o=n.parent.children;let a=o.indexOf(r),l=0;for(;a-->=0;){const c=o[a];c&&c.type===9&&(l+=c.branches.length)}return()=>{if(s)r.codegenNode=k2(i,l,n);else{const c=zAe(r.codegenNode);c.alternate=k2(i,l+r.branches.length-1,n)}}}));function VAe(e,t,n,r){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const i=t.exp?t.exp.loc:e.loc;n.onError(Kt(28,t.loc)),t.exp=_t("true",!1,i)}if(process.env.NODE_ENV!=="production"&&t.exp&&Tl(t.exp,n),t.name==="if"){const i=S2(e,t),s={type:9,loc:e.loc,branches:[i]};if(n.replaceNode(s),r)return r(s,i,!0)}else{const i=n.parent.children,s=[];let o=i.indexOf(e);for(;o-->=-1;){const a=i[o];if(a&&a.type===3){n.removeNode(a),process.env.NODE_ENV!=="production"&&s.unshift(a);continue}if(a&&a.type===2&&!a.content.trim().length){n.removeNode(a);continue}if(a&&a.type===9){t.name==="else-if"&&a.branches[a.branches.length-1].condition===void 0&&n.onError(Kt(30,e.loc)),n.removeNode();const l=S2(e,t);if(process.env.NODE_ENV!=="production"&&s.length&&!(n.parent&&n.parent.type===1&&(n.parent.tag==="transition"||n.parent.tag==="Transition"))&&(l.children=[...s,...l.children]),process.env.NODE_ENV!=="production"){const u=l.userKey;u&&a.branches.forEach(({userKey:d})=>{qAe(d,u)&&n.onError(Kt(29,l.userKey.loc))})}a.branches.push(l);const c=r&&r(a,l,!1);ly(l,n),c&&c(),n.currentNode=null}else n.onError(Kt(30,e.loc));break}}}function S2(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!wi(e,"for")?e.children:[e],userKey:yh(e,"key"),isTemplateIf:n}}function k2(e,t,n){return e.condition?x_(e.condition,A2(e,t,n),$n(n.helper(lp),[process.env.NODE_ENV!=="production"?'"v-if"':'""',"true"])):A2(e,t,n)}function A2(e,t,n){const{helper:r}=n,i=bn("key",_t(`${t}`,!1,mi,2)),{children:s}=e,o=s[0];if(s.length!==1||o.type!==1)if(s.length===1&&o.type===11){const l=o.codegenNode;return y0(l,i,n),l}else{let l=64,c=Cs[64];return process.env.NODE_ENV!=="production"&&!e.isTemplateIf&&s.filter(u=>u.type!==3).length===1&&(l|=2048,c+=`, ${Cs[2048]}`),bh(n,r(mh),Si([i]),s,l+(process.env.NODE_ENV!=="production"?` /* ${c} */`:""),void 0,void 0,!0,!1,!1,e.loc)}else{const l=o.codegenNode,c=rAe(l);return c.type===13&&Ek(c,n),y0(c,i,n),l}}function qAe(e,t){if(!e||e.type!==t.type)return!1;if(e.type===6){if(e.value.content!==t.value.content)return!1}else{const n=e.exp,r=t.exp;if(n.type!==r.type||n.type!==4||n.isStatic!==r.isStatic||n.content!==r.content)return!1}return!0}function zAe(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const KAe=l6("for",(e,t,n)=>{const{helper:r,removeHelper:i}=n;return WAe(e,t,n,s=>{const o=$n(r(pk),[s.source]),a=g0(e),l=wi(e,"memo"),c=yh(e,"key"),u=c&&(c.type===6?_t(c.value.content,!0):c.exp),d=c?bn("key",u):null,f=s.source.type===4&&s.source.constType>0,h=f?64:c?128:256;return s.codegenNode=bh(n,r(mh),void 0,o,h+(process.env.NODE_ENV!=="production"?` /* ${Cs[h]} */`:""),void 0,void 0,!0,!f,!1,e.loc),()=>{let p;const{children:m}=s;process.env.NODE_ENV!=="production"&&a&&e.children.some(v=>{if(v.type===1){const y=yh(v,"key");if(y)return n.onError(Kt(33,y.loc)),!0}});const g=m.length!==1||m[0].type!==1,b=b0(e)?e:a&&e.children.length===1&&b0(e.children[0])?e.children[0]:null;if(b?(p=b.codegenNode,a&&d&&y0(p,d,n)):g?p=bh(n,r(mh),d?Si([d]):void 0,e.children,64+(process.env.NODE_ENV!=="production"?` /* ${Cs[64]} */`:""),void 0,void 0,!0,void 0,!1):(p=m[0].codegenNode,a&&d&&y0(p,d,n),p.isBlock!==!f&&(p.isBlock?(i(Jl),i(Ou(n.inSSR,p.isComponent))):i(Cu(n.inSSR,p.isComponent))),p.isBlock=!f,p.isBlock?(r(Jl),r(Ou(n.inSSR,p.isComponent))):r(Cu(n.inSSR,p.isComponent))),l){const v=Nu(D_(s.parseResult,[_t("_cached")]));v.body=zke([Ji(["const _memo = (",l.exp,")"]),Ji(["if (_cached",...u?[" && _cached.key === ",u]:[],` && ${n.helperString(GB)}(_cached, _memo)) return _cached`]),Ji(["const _item = ",p]),_t("_item.memo = _memo"),_t("return _item")]),o.arguments.push(v,_t("_cache"),_t(String(n.cached++)))}else o.arguments.push(Nu(D_(s.parseResult),p,!0))}})});function WAe(e,t,n,r){if(!t.exp){n.onError(Kt(31,t.loc));return}const i=t.forParseResult;if(!i){n.onError(Kt(32,t.loc));return}f6(i,n);const{addIdentifiers:s,removeIdentifiers:o,scopes:a}=n,{source:l,value:c,key:u,index:d}=i,f={type:11,loc:t.loc,source:l,valueAlias:c,keyAlias:u,objectIndexAlias:d,parseResult:i,children:g0(e)?e.children:[e]};n.replaceNode(f),a.vFor++;const h=r&&r(f);return()=>{a.vFor--,h&&h()}}function f6(e,t){e.finalized||(process.env.NODE_ENV!=="production"&&(Tl(e.source,t),e.key&&Tl(e.key,t,!0),e.index&&Tl(e.index,t,!0),e.value&&Tl(e.value,t,!0)),e.finalized=!0)}function D_({value:e,key:t,index:n},r=[]){return GAe([e,t,n,...r])}function GAe(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,r)=>n||_t("_".repeat(r+1),!1))}const x2=_t("undefined",!1),YAe=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=wi(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},XAe=(e,t,n,r)=>Nu(e,n,!1,!0,n.length?n[0].loc:r);function QAe(e,t,n=XAe){t.helper(yk);const{children:r,loc:i}=e,s=[],o=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const l=wi(e,"slot",!0);if(l){const{arg:g,exp:b}=l;g&&!Gr(g)&&(a=!0),s.push(bn(g||_t("default",!0),n(b,void 0,r,i)))}let c=!1,u=!1;const d=[],f=new Set;let h=0;for(let g=0;g<r.length;g++){const b=r[g];let v;if(!g0(b)||!(v=wi(b,"slot",!0))){b.type!==3&&d.push(b);continue}if(l){t.onError(Kt(37,v.loc));break}c=!0;const{children:y,loc:E}=b,{arg:T=_t("default",!0),exp:w,loc:S}=v;let k;Gr(T)?k=T?T.content:"default":a=!0;const x=wi(b,"for"),A=n(w,x,y,E);let M,R;if(M=wi(b,"if"))a=!0,o.push(x_(M.exp,km(T,A,h++),x2));else if(R=wi(b,/^else(-if)?$/,!0)){let te=g,ee;for(;te--&&(ee=r[te],ee.type===3););if(ee&&g0(ee)&&wi(ee,"if")){r.splice(g,1),g--;let oe=o[o.length-1];for(;oe.alternate.type===19;)oe=oe.alternate;oe.alternate=R.exp?x_(R.exp,km(T,A,h++),x2):km(T,A,h++)}else t.onError(Kt(30,R.loc))}else if(x){a=!0;const te=x.forParseResult;te?(f6(te,t),o.push($n(t.helper(pk),[te.source,Nu(D_(te),km(T,A),!0)]))):t.onError(Kt(32,x.loc))}else{if(k){if(f.has(k)){t.onError(Kt(38,S));continue}f.add(k),k==="default"&&(u=!0)}s.push(bn(T,A))}}if(!l){const g=(b,v)=>{const y=n(b,void 0,v,i);return t.compatConfig&&(y.isNonScopedSlot=!0),bn("default",y)};c?d.length&&d.some(b=>h6(b))&&(u?t.onError(Kt(39,d[0].loc)):s.push(g(void 0,d))):s.push(g(void 0,r))}const p=a?2:og(e.children)?3:1;let m=Si(s.concat(bn("_",_t(p+(process.env.NODE_ENV!=="production"?` /* ${L6[p]} */`:""),!1))),i);return o.length&&(m=$n(t.helper(WB),[m,up(o)])),{slots:m,hasDynamicSlots:a}}function km(e,t,n){const r=[bn("name",e),bn("fn",t)];return n!=null&&r.push(bn("key",_t(String(n),!0))),Si(r)}function og(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(n.tagType===2||og(n.children))return!0;break;case 9:if(og(n.branches))return!0;break;case 10:case 11:if(og(n.children))return!0;break}}return!1}function h6(e){return e.type!==2&&e.type!==12?!0:e.type===2?!!e.content.trim():h6(e.content)}const p6=new WeakMap,JAe=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:r,props:i}=e,s=e.tagType===1;let o=s?ZAe(e,t):`"${r}"`;const a=It(o)&&o.callee===uk;let l,c,u,d=0,f,h,p,m=a||o===If||o===sk||!s&&(r==="svg"||r==="foreignObject");if(i.length>0){const g=m6(e,t,void 0,s,a);l=g.props,d=g.patchFlag,h=g.dynamicPropNames;const b=g.directives;p=b&&b.length?up(b.map(v=>txe(v,t))):void 0,g.shouldUseBlock&&(m=!0)}if(e.children.length>0)if(o===d0&&(m=!0,d|=1024,process.env.NODE_ENV!=="production"&&e.children.length>1&&t.onError(Kt(46,{start:e.children[0].loc.start,end:e.children[e.children.length-1].loc.end,source:""}))),s&&o!==If&&o!==d0){const{slots:b,hasDynamicSlots:v}=QAe(e,t);c=b,v&&(d|=1024)}else if(e.children.length===1&&o!==If){const b=e.children[0],v=b.type,y=v===5||v===8;y&&ki(b,t)===0&&(d|=1),y||v===2?c=b:c=e.children}else c=e.children;if(d!==0){if(process.env.NODE_ENV!=="production")if(d<0)u=d+` /* ${Cs[d]} */`;else{const g=Object.keys(Cs).map(Number).filter(b=>b>0&&d&b).map(b=>Cs[b]).join(", ");u=d+` /* ${g} */`}else u=String(d);h&&h.length&&(f=nxe(h))}e.codegenNode=bh(t,o,l,c,u,f,p,!!m,!1,s,e.loc)};function ZAe(e,t,n=!1){let{tag:r}=e;const i=I_(r),s=yh(e,"is");if(s)if(i||Sa("COMPILER_IS_ON_ELEMENT",t)){const a=s.type===6?s.value&&_t(s.value.content,!0):s.exp;if(a)return $n(t.helper(uk),[a])}else s.type===6&&s.value.content.startsWith("vue:")&&(r=s.value.content.slice(4));const o=XB(r)||t.isBuiltInComponent(r);return o?(n||t.helper(o),o):(t.helper(ck),t.components.add(r),vh(r,"component"))}function m6(e,t,n=e.props,r,i,s=!1){const{tag:o,loc:a,children:l}=e;let c=[];const u=[],d=[],f=l.length>0;let h=!1,p=0,m=!1,g=!1,b=!1,v=!1,y=!1,E=!1;const T=[],w=x=>{c.length&&(u.push(Si(N2(c),a)),c=[]),x&&u.push(x)},S=({key:x,value:A})=>{if(Gr(x)){const M=x.content,R=co(M);if(R&&(!r||i)&&M.toLowerCase()!=="onclick"&&M!=="onUpdate:modelValue"&&!ha(M)&&(v=!0),R&&ha(M)&&(E=!0),R&&A.type===14&&(A=A.arguments[0]),A.type===20||(A.type===4||A.type===8)&&ki(A,t)>0)return;M==="ref"?m=!0:M==="class"?g=!0:M==="style"?b=!0:M!=="key"&&!T.includes(M)&&T.push(M),r&&(M==="class"||M==="style")&&!T.includes(M)&&T.push(M)}else y=!0};for(let x=0;x<n.length;x++){const A=n[x];if(A.type===6){const{loc:M,name:R,nameLoc:te,value:ee}=A;let oe=!0;if(R==="ref"&&(m=!0,t.scopes.vFor>0&&c.push(bn(_t("ref_for",!0),_t("true")))),R==="is"&&(I_(o)||ee&&ee.content.startsWith("vue:")||Sa("COMPILER_IS_ON_ELEMENT",t)))continue;c.push(bn(_t(R,!0,te),_t(ee?ee.content:"",oe,ee?ee.loc:M)))}else{const{name:M,arg:R,exp:te,loc:ee,modifiers:oe}=A,pe=M==="bind",G=M==="on";if(M==="slot"){r||t.onError(Kt(40,ee));continue}if(M==="once"||M==="memo"||M==="is"||pe&&fa(R,"is")&&(I_(o)||Sa("COMPILER_IS_ON_ELEMENT",t))||G&&s)continue;if((pe&&fa(R,"key")||G&&f&&fa(R,"vue:before-update"))&&(h=!0),pe&&fa(R,"ref")&&t.scopes.vFor>0&&c.push(bn(_t("ref_for",!0),_t("true"))),!R&&(pe||G)){if(y=!0,te)if(pe){if(w(),process.env.NODE_ENV!=="production"&&u.some(O=>O.type===15?O.properties.some(({key:B})=>B.type!==4||!B.isStatic?!0:B.content!=="class"&&B.content!=="style"&&!co(B.content)):!0)&&Du("COMPILER_V_BIND_OBJECT_ORDER",t,ee),Sa("COMPILER_V_BIND_OBJECT_ORDER",t)){u.unshift(te);continue}u.push(te)}else w({type:14,loc:ee,callee:t.helper(bk),arguments:r?[te]:[te,"true"]});else t.onError(Kt(pe?34:35,ee));continue}pe&&oe.includes("prop")&&(p|=32);const Q=t.directiveTransforms[M];if(Q){const{props:fe,needRuntime:O}=Q(A,e,t);!s&&fe.forEach(S),G&&R&&!Gr(R)?w(Si(fe,a)):c.push(...fe),O&&(d.push(A),Zi(O)&&p6.set(A,O))}else $2(M)||(d.push(A),f&&(h=!0))}}let k;if(u.length?(w(),u.length>1?k=$n(t.helper(f0),u,a):k=u[0]):c.length&&(k=Si(N2(c),a)),y?p|=16:(g&&!r&&(p|=2),b&&!r&&(p|=4),T.length&&(p|=8),v&&(p|=32)),!h&&(p===0||p===32)&&(m||E||d.length>0)&&(p|=512),!t.inSSR&&k)switch(k.type){case 15:let x=-1,A=-1,M=!1;for(let ee=0;ee<k.properties.length;ee++){const oe=k.properties[ee].key;Gr(oe)?oe.content==="class"?x=ee:oe.content==="style"&&(A=ee):oe.isHandlerKey||(M=!0)}const R=k.properties[x],te=k.properties[A];M?k=$n(t.helper(gh),[k]):(R&&!Gr(R.value)&&(R.value=$n(t.helper(mk),[R.value])),te&&(b||te.value.type===4&&te.value.content.trim()[0]==="["||te.value.type===17)&&(te.value=$n(t.helper(gk),[te.value])));break;case 14:break;default:k=$n(t.helper(gh),[$n(t.helper(cp),[k])]);break}return{props:k,directives:d,patchFlag:p,dynamicPropNames:T,shouldUseBlock:h}}function N2(e){const t=new Map,n=[];for(let r=0;r<e.length;r++){const i=e[r];if(i.key.type===8||!i.key.isStatic){n.push(i);continue}const s=i.key.content,o=t.get(s);o?(s==="style"||s==="class"||co(s))&&exe(o,i):(t.set(s,i),n.push(i))}return n}function exe(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=up([e.value,t.value],e.loc)}function txe(e,t){const n=[],r=p6.get(e);r?n.push(t.helperString(r)):(t.helper(dk),t.directives.add(e.name),n.push(vh(e.name,"directive")));const{loc:i}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const s=_t("true",!1,i);n.push(Si(e.modifiers.map(o=>bn(o,s)),i))}return up(n,e.loc)}function nxe(e){let t="[";for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=", ");return t+"]"}function I_(e){return e==="component"||e==="Component"}const rxe=(e,t)=>{if(b0(e)){const{children:n,loc:r}=e,{slotName:i,slotProps:s}=ixe(e,t),o=[t.prefixIdentifiers?"_ctx.$slots":"$slots",i,"{}","undefined","true"];let a=2;s&&(o[2]=s,a=3),n.length&&(o[3]=Nu([],n,!1,!1,r),a=4),t.scopeId&&!t.slotted&&(a=5),o.splice(a),e.codegenNode=$n(t.helper(KB),o,r)}};function ixe(e,t){let n='"default"',r;const i=[];for(let s=0;s<e.props.length;s++){const o=e.props[s];if(o.type===6)o.value&&(o.name==="name"?n=JSON.stringify(o.value.content):(o.name=hn(o.name),i.push(o)));else if(o.name==="bind"&&fa(o.arg,"name")){if(o.exp)n=o.exp;else if(o.arg&&o.arg.type===4){const a=hn(o.arg.content);n=o.exp=_t(a,!1,o.arg.loc)}}else o.name==="bind"&&o.arg&&Gr(o.arg)&&(o.arg.content=hn(o.arg.content)),i.push(o)}if(i.length>0){const{props:s,directives:o}=m6(e,t,i,!1,!1);r=s,o.length&&t.onError(Kt(36,o[0].loc))}return{slotName:n,slotProps:r}}const sxe=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,g6=(e,t,n,r)=>{const{loc:i,modifiers:s,arg:o}=e;!e.exp&&!s.length&&n.onError(Kt(35,i));let a;if(o.type===4)if(o.isStatic){let d=o.content;process.env.NODE_ENV!=="production"&&d.startsWith("vnode")&&n.onError(Kt(51,o.loc)),d.startsWith("vue:")&&(d=`vnode-${d.slice(4)}`);const f=t.tagType!==0||d.startsWith("vnode")||!/[A-Z]/.test(d)?ms(hn(d)):`on:${d}`;a=_t(f,!0,o.loc)}else a=Ji([`${n.helperString(A_)}(`,o,")"]);else a=o,a.children.unshift(`${n.helperString(A_)}(`),a.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let c=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const d=QB(l.content),f=!(d||sxe.test(l.content)),h=l.content.includes(";");process.env.NODE_ENV!=="production"&&Tl(l,n,!1,h),(f||c&&d)&&(l=Ji([`${f?"$event":"(...args)"} => ${h?"{":"("}`,l,h?"}":")"]))}let u={props:[bn(a,l||_t("() => {}",!1,i))]};return r&&(u=r(u)),c&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach(d=>d.key.isHandlerKey=!0),u},oxe=(e,t,n)=>{const{modifiers:r,loc:i}=e,s=e.arg;let{exp:o}=e;if(o&&o.type===4&&!o.content.trim()&&(o=void 0),!o){if(s.type!==4||!s.isStatic)return n.onError(Kt(52,s.loc)),{props:[bn(s,_t("",!0,i))]};const a=hn(s.content);o=e.exp=_t(a,!1,s.loc)}return s.type!==4?(s.children.unshift("("),s.children.push(') || ""')):s.isStatic||(s.content=`${s.content} || ""`),r.includes("camel")&&(s.type===4?s.isStatic?s.content=hn(s.content):s.content=`${n.helperString(k_)}(${s.content})`:(s.children.unshift(`${n.helperString(k_)}(`),s.children.push(")"))),n.inSSR||(r.includes("prop")&&C2(s,"."),r.includes("attr")&&C2(s,"^")),{props:[bn(s,o)]}},C2=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},axe=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let r,i=!1;for(let s=0;s<n.length;s++){const o=n[s];if(qv(o)){i=!0;for(let a=s+1;a<n.length;a++){const l=n[a];if(qv(l))r||(r=n[s]=Ji([o],o.loc)),r.children.push(" + ",l),n.splice(a,1),a--;else{r=void 0;break}}}}if(!(!i||n.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(s=>s.type===7&&!t.directiveTransforms[s.name])&&e.tag!=="template")))for(let s=0;s<n.length;s++){const o=n[s];if(qv(o)||o.type===8){const a=[];(o.type!==2||o.content!==" ")&&a.push(o),!t.ssr&&ki(o,t)===0&&a.push(1+(process.env.NODE_ENV!=="production"?` /* ${Cs[1]} */`:"")),n[s]={type:12,content:o,loc:o.loc,codegenNode:$n(t.helper(lk),a)}}}}},O2=new WeakSet,lxe=(e,t)=>{if(e.type===1&&wi(e,"once",!0))return O2.has(e)||t.inVOnce||t.inSSR?void 0:(O2.add(e),t.inVOnce=!0,t.helper(h0),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0))})},b6=(e,t,n)=>{const{exp:r,arg:i}=e;if(!r)return n.onError(Kt(41,e.loc)),Am();const s=r.loc.source,o=r.type===4?r.content:s,a=n.bindingMetadata[s];if(a==="props"||a==="props-aliased")return n.onError(Kt(44,r.loc)),Am();if(!o.trim()||!QB(o)&&!!1)return n.onError(Kt(42,r.loc)),Am();const c=i||_t("modelValue",!0),u=i?Gr(i)?`onUpdate:${hn(i.content)}`:Ji(['"onUpdate:" + ',i]):"onUpdate:modelValue";let d;const f=n.isTS?"($event: any)":"$event";d=Ji([`${f} => ((`,r,") = $event)"]);const h=[bn(c,e.exp),bn(u,d)];if(e.modifiers.length&&t.tagType===1){const p=e.modifiers.map(g=>(wk(g)?g:JSON.stringify(g))+": true").join(", "),m=i?Gr(i)?`${i.content}Modifiers`:Ji([i,' + "Modifiers"']):"modelModifiers";h.push(bn(m,_t(`{ ${p} }`,!1,e.loc,2)))}return Am(h)};function Am(e=[]){return{props:e}}const cxe=/[\w).+\-_$\]]/,uxe=(e,t)=>{Sa("COMPILER_FILTERS",t)&&(e.type===5&&E0(e.content,t),e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&E0(n.exp,t)}))};function E0(e,t){if(e.type===4)D2(e,t);else for(let n=0;n<e.children.length;n++){const r=e.children[n];typeof r=="object"&&(r.type===4?D2(r,t):r.type===8?E0(e,t):r.type===5&&E0(r.content,t))}}function D2(e,t){const n=e.content;let r=!1,i=!1,s=!1,o=!1,a=0,l=0,c=0,u=0,d,f,h,p,m=[];for(h=0;h<n.length;h++)if(f=d,d=n.charCodeAt(h),r)d===39&&f!==92&&(r=!1);else if(i)d===34&&f!==92&&(i=!1);else if(s)d===96&&f!==92&&(s=!1);else if(o)d===47&&f!==92&&(o=!1);else if(d===124&&n.charCodeAt(h+1)!==124&&n.charCodeAt(h-1)!==124&&!a&&!l&&!c)p===void 0?(u=h+1,p=n.slice(0,h).trim()):g();else{switch(d){case 34:i=!0;break;case 39:r=!0;break;case 96:s=!0;break;case 40:c++;break;case 41:c--;break;case 91:l++;break;case 93:l--;break;case 123:a++;break;case 125:a--;break}if(d===47){let b=h-1,v;for(;b>=0&&(v=n.charAt(b),v===" ");b--);(!v||!cxe.test(v))&&(o=!0)}}p===void 0?p=n.slice(0,h).trim():u!==0&&g();function g(){m.push(n.slice(u,h).trim()),u=h+1}if(m.length){for(process.env.NODE_ENV!=="production"&&m0("COMPILER_FILTERS",t,e.loc),h=0;h<m.length;h++)p=dxe(p,m[h],t);e.content=p}}function dxe(e,t,n){n.helper(fk);const r=t.indexOf("(");if(r<0)return n.filters.add(t),`${vh(t,"filter")}(${e})`;{const i=t.slice(0,r),s=t.slice(r+1);return n.filters.add(i),`${vh(i,"filter")}(${e}${s!==")"?","+s:s}`}}const I2=new WeakSet,fxe=(e,t)=>{if(e.type===1){const n=wi(e,"memo");return!n||I2.has(e)?void 0:(I2.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&Ek(r,t),e.codegenNode=$n(t.helper(vk),[n.exp,Nu(void 0,r),"_cache",String(t.cached++)]))})}};function hxe(e){return[[lxe,jAe,fxe,KAe,uxe,...process.env.NODE_ENV!=="production"?[HAe]:[],rxe,JAe,YAe,axe],{on:g6,bind:oxe,model:b6}]}function pxe(e,t={}){const n=t.onError||_k,r=t.mode==="module";t.prefixIdentifiers===!0?n(Kt(47)):r&&n(Kt(48));const i=!1;t.cacheHandlers&&n(Kt(49)),t.scopeId&&!r&&n(Kt(50));const s=wt({},t,{prefixIdentifiers:i}),o=at(e)?mAe(e,s):e,[a,l]=hxe();return vAe(o,wt({},s,{nodeTransforms:[...a,...t.nodeTransforms||[]],directiveTransforms:wt({},l,t.directiveTransforms||{})})),TAe(o,s)}const mxe=()=>({props:[]});/**
396
+ `,-1)}TAe(e.hoists,t),s(),i("return ")}function zv(e,t,{helper:n,push:r,newline:i,isTS:s}){const o=n(t==="filter"?fk:t==="component"?ck:dk);for(let a=0;a<e.length;a++){let l=e[a];const c=l.endsWith("__self");c&&(l=l.slice(0,-6)),r(`const ${vh(l,t)} = ${o}(${JSON.stringify(l)}${c?", true":""})${s?"!":""}`),a<e.length-1&&i()}}function TAe(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r,helper:i,scopeId:s,mode:o}=t;r();for(let a=0;a<e.length;a++){const l=e[a];l&&(n(`const _hoisted_${a+1} = `),Er(l,t),r())}t.pure=!1}function SAe(e){return at(e)||e.type===4||e.type===2||e.type===5||e.type===8}function Tk(e,t){const n=e.length>3||process.env.NODE_ENV!=="production"&&e.some(r=>qe(r)||!SAe(r));t.push("["),n&&t.indent(),dp(e,t,n),n&&t.deindent(),t.push("]")}function dp(e,t,n=!1,r=!0){const{push:i,newline:s}=t;for(let o=0;o<e.length;o++){const a=e[o];at(a)?i(a,-3):qe(a)?Tk(a,t):Er(a,t),o<e.length-1&&(n?(r&&i(","),s()):r&&i(", "))}}function Er(e,t){if(at(e)){t.push(e,-3);return}if(Zi(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:process.env.NODE_ENV!=="production"&&v2(e.codegenNode!=null,"Codegen node is missing for element/if/for node. Apply appropriate transforms first."),Er(e.codegenNode,t);break;case 2:kAe(e,t);break;case 4:u6(e,t);break;case 5:AAe(e,t);break;case 12:Er(e.codegenNode,t);break;case 8:d6(e,t);break;case 3:NAe(e,t);break;case 13:CAe(e,t);break;case 14:DAe(e,t);break;case 15:IAe(e,t);break;case 17:RAe(e,t);break;case 18:PAe(e,t);break;case 19:LAe(e,t);break;case 20:MAe(e,t);break;case 21:dp(e.body,t,!0,!1);break;case 22:break;case 23:break;case 24:break;case 25:break;case 26:break;case 10:break;default:if(process.env.NODE_ENV!=="production")return v2(!1,`unhandled codegen node type: ${e.type}`),e}}function kAe(e,t){t.push(JSON.stringify(e.content),-3,e)}function u6(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,-3,e)}function AAe(e,t){const{push:n,helper:r,pure:i}=t;i&&n(cy),n(`${r(ay)}(`),Er(e.content,t),n(")")}function d6(e,t){for(let n=0;n<e.children.length;n++){const r=e.children[n];at(r)?t.push(r,-3):Er(r,t)}}function xAe(e,t){const{push:n}=t;if(e.type===8)n("["),d6(e,t),n("]");else if(e.isStatic){const r=wk(e.content)?e.content:JSON.stringify(e.content);n(r,-2,e)}else n(`[${e.content}]`,-3,e)}function NAe(e,t){const{push:n,helper:r,pure:i}=t;i&&n(cy),n(`${r(lp)}(${JSON.stringify(e.content)})`,-3,e)}function CAe(e,t){const{push:n,helper:r,pure:i}=t,{tag:s,props:o,children:a,patchFlag:l,dynamicProps:c,directives:u,isBlock:d,disableTracking:f,isComponent:h}=e;u&&n(r(hk)+"("),d&&n(`(${r(Jl)}(${f?"true":""}), `),i&&n(cy);const p=d?Ou(t.inSSR,h):Cu(t.inSSR,h);n(r(p)+"(",-2,e),dp(OAe([s,o,a,l,c]),t),n(")"),d&&n(")"),u&&(n(", "),Er(u,t),n(")"))}function OAe(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(n=>n||"null")}function DAe(e,t){const{push:n,helper:r,pure:i}=t,s=at(e.callee)?e.callee:r(e.callee);i&&n(cy),n(s+"(",-2,e),dp(e.arguments,t),n(")")}function IAe(e,t){const{push:n,indent:r,deindent:i,newline:s}=t,{properties:o}=e;if(!o.length){n("{}",-2,e);return}const a=o.length>1||process.env.NODE_ENV!=="production"&&o.some(l=>l.value.type!==4);n(a?"{":"{ "),a&&r();for(let l=0;l<o.length;l++){const{key:c,value:u}=o[l];xAe(c,t),n(": "),Er(u,t),l<o.length-1&&(n(","),s())}a&&i(),n(a?"}":" }")}function RAe(e,t){Tk(e.elements,t)}function PAe(e,t){const{push:n,indent:r,deindent:i}=t,{params:s,returns:o,body:a,newline:l,isSlot:c}=e;c&&n(`_${xu[yk]}(`),n("(",-2,e),qe(s)?dp(s,t):s&&Er(s,t),n(") => "),(l||a)&&(n("{"),r()),o?(l&&n("return "),qe(o)?Tk(o,t):Er(o,t)):a&&Er(a,t),(l||a)&&(i(),n("}")),c&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function LAe(e,t){const{test:n,consequent:r,alternate:i,newline:s}=e,{push:o,indent:a,deindent:l,newline:c}=t;if(n.type===4){const d=!wk(n.content);d&&o("("),u6(n,t),d&&o(")")}else o("("),Er(n,t),o(")");s&&a(),t.indentLevel++,s||o(" "),o("? "),Er(r,t),t.indentLevel--,s&&c(),s||o(" "),o(": ");const u=i.type===19;u||t.indentLevel++,Er(i,t),u||t.indentLevel--,s&&l(!0)}function MAe(e,t){const{push:n,helper:r,indent:i,deindent:s,newline:o}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(i(),n(`${r(h0)}(-1),`),o()),n(`_cache[${e.index}] = `),Er(e.value,t),e.isVNode&&(n(","),o(),n(`${r(h0)}(1),`),o(),n(`_cache[${e.index}]`),s()),n(")")}const $Ae=new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b"),FAe=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g;function Tl(e,t,n=!1,r=!1){const i=e.content;if(i.trim())try{new Function(r?` ${i} `:`return ${n?`(${i}) => {}`:`(${i})`}`)}catch(s){let o=s.message;const a=i.replace(FAe,"").match($Ae);a&&(o=`avoid using JavaScript keyword as property name: "${a[0]}"`),t.onError(Kt(45,e.loc,void 0,o))}}const BAe=(e,t)=>{if(e.type===5)e.content=Kv(e.content,t);else if(e.type===1)for(let n=0;n<e.props.length;n++){const r=e.props[n];if(r.type===7&&r.name!=="for"){const i=r.exp,s=r.arg;i&&i.type===4&&!(r.name==="on"&&s)&&(r.exp=Kv(i,t,r.name==="slot")),s&&s.type===4&&!s.isStatic&&(r.arg=Kv(s,t))}}};function Kv(e,t,n=!1,r=!1,i=Object.create(t.identifiers)){return process.env.NODE_ENV!=="production"&&Tl(e,t,n,r),e}const UAe=l6(/^(if|else|else-if)$/,(e,t,n)=>HAe(e,t,n,(r,i,s)=>{const o=n.parent.children;let a=o.indexOf(r),l=0;for(;a-->=0;){const c=o[a];c&&c.type===9&&(l+=c.branches.length)}return()=>{if(s)r.codegenNode=k2(i,l,n);else{const c=VAe(r.codegenNode);c.alternate=k2(i,l+r.branches.length-1,n)}}}));function HAe(e,t,n,r){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const i=t.exp?t.exp.loc:e.loc;n.onError(Kt(28,t.loc)),t.exp=_t("true",!1,i)}if(process.env.NODE_ENV!=="production"&&t.exp&&Tl(t.exp,n),t.name==="if"){const i=S2(e,t),s={type:9,loc:e.loc,branches:[i]};if(n.replaceNode(s),r)return r(s,i,!0)}else{const i=n.parent.children,s=[];let o=i.indexOf(e);for(;o-->=-1;){const a=i[o];if(a&&a.type===3){n.removeNode(a),process.env.NODE_ENV!=="production"&&s.unshift(a);continue}if(a&&a.type===2&&!a.content.trim().length){n.removeNode(a);continue}if(a&&a.type===9){t.name==="else-if"&&a.branches[a.branches.length-1].condition===void 0&&n.onError(Kt(30,e.loc)),n.removeNode();const l=S2(e,t);if(process.env.NODE_ENV!=="production"&&s.length&&!(n.parent&&n.parent.type===1&&(n.parent.tag==="transition"||n.parent.tag==="Transition"))&&(l.children=[...s,...l.children]),process.env.NODE_ENV!=="production"){const u=l.userKey;u&&a.branches.forEach(({userKey:d})=>{jAe(d,u)&&n.onError(Kt(29,l.userKey.loc))})}a.branches.push(l);const c=r&&r(a,l,!1);ly(l,n),c&&c(),n.currentNode=null}else n.onError(Kt(30,e.loc));break}}}function S2(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!wi(e,"for")?e.children:[e],userKey:yh(e,"key"),isTemplateIf:n}}function k2(e,t,n){return e.condition?x_(e.condition,A2(e,t,n),$n(n.helper(lp),[process.env.NODE_ENV!=="production"?'"v-if"':'""',"true"])):A2(e,t,n)}function A2(e,t,n){const{helper:r}=n,i=bn("key",_t(`${t}`,!1,mi,2)),{children:s}=e,o=s[0];if(s.length!==1||o.type!==1)if(s.length===1&&o.type===11){const l=o.codegenNode;return y0(l,i,n),l}else{let l=64,c=Cs[64];return process.env.NODE_ENV!=="production"&&!e.isTemplateIf&&s.filter(u=>u.type!==3).length===1&&(l|=2048,c+=`, ${Cs[2048]}`),bh(n,r(mh),Si([i]),s,l+(process.env.NODE_ENV!=="production"?` /* ${c} */`:""),void 0,void 0,!0,!1,!1,e.loc)}else{const l=o.codegenNode,c=tAe(l);return c.type===13&&Ek(c,n),y0(c,i,n),l}}function jAe(e,t){if(!e||e.type!==t.type)return!1;if(e.type===6){if(e.value.content!==t.value.content)return!1}else{const n=e.exp,r=t.exp;if(n.type!==r.type||n.type!==4||n.isStatic!==r.isStatic||n.content!==r.content)return!1}return!0}function VAe(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const qAe=l6("for",(e,t,n)=>{const{helper:r,removeHelper:i}=n;return zAe(e,t,n,s=>{const o=$n(r(pk),[s.source]),a=g0(e),l=wi(e,"memo"),c=yh(e,"key"),u=c&&(c.type===6?_t(c.value.content,!0):c.exp),d=c?bn("key",u):null,f=s.source.type===4&&s.source.constType>0,h=f?64:c?128:256;return s.codegenNode=bh(n,r(mh),void 0,o,h+(process.env.NODE_ENV!=="production"?` /* ${Cs[h]} */`:""),void 0,void 0,!0,!f,!1,e.loc),()=>{let p;const{children:m}=s;process.env.NODE_ENV!=="production"&&a&&e.children.some(v=>{if(v.type===1){const y=yh(v,"key");if(y)return n.onError(Kt(33,y.loc)),!0}});const g=m.length!==1||m[0].type!==1,b=b0(e)?e:a&&e.children.length===1&&b0(e.children[0])?e.children[0]:null;if(b?(p=b.codegenNode,a&&d&&y0(p,d,n)):g?p=bh(n,r(mh),d?Si([d]):void 0,e.children,64+(process.env.NODE_ENV!=="production"?` /* ${Cs[64]} */`:""),void 0,void 0,!0,void 0,!1):(p=m[0].codegenNode,a&&d&&y0(p,d,n),p.isBlock!==!f&&(p.isBlock?(i(Jl),i(Ou(n.inSSR,p.isComponent))):i(Cu(n.inSSR,p.isComponent))),p.isBlock=!f,p.isBlock?(r(Jl),r(Ou(n.inSSR,p.isComponent))):r(Cu(n.inSSR,p.isComponent))),l){const v=Nu(D_(s.parseResult,[_t("_cached")]));v.body=Vke([Ji(["const _memo = (",l.exp,")"]),Ji(["if (_cached",...u?[" && _cached.key === ",u]:[],` && ${n.helperString(GB)}(_cached, _memo)) return _cached`]),Ji(["const _item = ",p]),_t("_item.memo = _memo"),_t("return _item")]),o.arguments.push(v,_t("_cache"),_t(String(n.cached++)))}else o.arguments.push(Nu(D_(s.parseResult),p,!0))}})});function zAe(e,t,n,r){if(!t.exp){n.onError(Kt(31,t.loc));return}const i=t.forParseResult;if(!i){n.onError(Kt(32,t.loc));return}f6(i,n);const{addIdentifiers:s,removeIdentifiers:o,scopes:a}=n,{source:l,value:c,key:u,index:d}=i,f={type:11,loc:t.loc,source:l,valueAlias:c,keyAlias:u,objectIndexAlias:d,parseResult:i,children:g0(e)?e.children:[e]};n.replaceNode(f),a.vFor++;const h=r&&r(f);return()=>{a.vFor--,h&&h()}}function f6(e,t){e.finalized||(process.env.NODE_ENV!=="production"&&(Tl(e.source,t),e.key&&Tl(e.key,t,!0),e.index&&Tl(e.index,t,!0),e.value&&Tl(e.value,t,!0)),e.finalized=!0)}function D_({value:e,key:t,index:n},r=[]){return KAe([e,t,n,...r])}function KAe(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,r)=>n||_t("_".repeat(r+1),!1))}const x2=_t("undefined",!1),WAe=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=wi(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},GAe=(e,t,n,r)=>Nu(e,n,!1,!0,n.length?n[0].loc:r);function YAe(e,t,n=GAe){t.helper(yk);const{children:r,loc:i}=e,s=[],o=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const l=wi(e,"slot",!0);if(l){const{arg:g,exp:b}=l;g&&!Gr(g)&&(a=!0),s.push(bn(g||_t("default",!0),n(b,void 0,r,i)))}let c=!1,u=!1;const d=[],f=new Set;let h=0;for(let g=0;g<r.length;g++){const b=r[g];let v;if(!g0(b)||!(v=wi(b,"slot",!0))){b.type!==3&&d.push(b);continue}if(l){t.onError(Kt(37,v.loc));break}c=!0;const{children:y,loc:E}=b,{arg:T=_t("default",!0),exp:w,loc:S}=v;let k;Gr(T)?k=T?T.content:"default":a=!0;const x=wi(b,"for"),A=n(w,x,y,E);let M,R;if(M=wi(b,"if"))a=!0,o.push(x_(M.exp,km(T,A,h++),x2));else if(R=wi(b,/^else(-if)?$/,!0)){let te=g,ee;for(;te--&&(ee=r[te],ee.type===3););if(ee&&g0(ee)&&wi(ee,"if")){r.splice(g,1),g--;let oe=o[o.length-1];for(;oe.alternate.type===19;)oe=oe.alternate;oe.alternate=R.exp?x_(R.exp,km(T,A,h++),x2):km(T,A,h++)}else t.onError(Kt(30,R.loc))}else if(x){a=!0;const te=x.forParseResult;te?(f6(te,t),o.push($n(t.helper(pk),[te.source,Nu(D_(te),km(T,A),!0)]))):t.onError(Kt(32,x.loc))}else{if(k){if(f.has(k)){t.onError(Kt(38,S));continue}f.add(k),k==="default"&&(u=!0)}s.push(bn(T,A))}}if(!l){const g=(b,v)=>{const y=n(b,void 0,v,i);return t.compatConfig&&(y.isNonScopedSlot=!0),bn("default",y)};c?d.length&&d.some(b=>h6(b))&&(u?t.onError(Kt(39,d[0].loc)):s.push(g(void 0,d))):s.push(g(void 0,r))}const p=a?2:og(e.children)?3:1;let m=Si(s.concat(bn("_",_t(p+(process.env.NODE_ENV!=="production"?` /* ${L6[p]} */`:""),!1))),i);return o.length&&(m=$n(t.helper(WB),[m,up(o)])),{slots:m,hasDynamicSlots:a}}function km(e,t,n){const r=[bn("name",e),bn("fn",t)];return n!=null&&r.push(bn("key",_t(String(n),!0))),Si(r)}function og(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(n.tagType===2||og(n.children))return!0;break;case 9:if(og(n.branches))return!0;break;case 10:case 11:if(og(n.children))return!0;break}}return!1}function h6(e){return e.type!==2&&e.type!==12?!0:e.type===2?!!e.content.trim():h6(e.content)}const p6=new WeakMap,XAe=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:r,props:i}=e,s=e.tagType===1;let o=s?QAe(e,t):`"${r}"`;const a=It(o)&&o.callee===uk;let l,c,u,d=0,f,h,p,m=a||o===If||o===sk||!s&&(r==="svg"||r==="foreignObject");if(i.length>0){const g=m6(e,t,void 0,s,a);l=g.props,d=g.patchFlag,h=g.dynamicPropNames;const b=g.directives;p=b&&b.length?up(b.map(v=>ZAe(v,t))):void 0,g.shouldUseBlock&&(m=!0)}if(e.children.length>0)if(o===d0&&(m=!0,d|=1024,process.env.NODE_ENV!=="production"&&e.children.length>1&&t.onError(Kt(46,{start:e.children[0].loc.start,end:e.children[e.children.length-1].loc.end,source:""}))),s&&o!==If&&o!==d0){const{slots:b,hasDynamicSlots:v}=YAe(e,t);c=b,v&&(d|=1024)}else if(e.children.length===1&&o!==If){const b=e.children[0],v=b.type,y=v===5||v===8;y&&ki(b,t)===0&&(d|=1),y||v===2?c=b:c=e.children}else c=e.children;if(d!==0){if(process.env.NODE_ENV!=="production")if(d<0)u=d+` /* ${Cs[d]} */`;else{const g=Object.keys(Cs).map(Number).filter(b=>b>0&&d&b).map(b=>Cs[b]).join(", ");u=d+` /* ${g} */`}else u=String(d);h&&h.length&&(f=exe(h))}e.codegenNode=bh(t,o,l,c,u,f,p,!!m,!1,s,e.loc)};function QAe(e,t,n=!1){let{tag:r}=e;const i=I_(r),s=yh(e,"is");if(s)if(i||Sa("COMPILER_IS_ON_ELEMENT",t)){const a=s.type===6?s.value&&_t(s.value.content,!0):s.exp;if(a)return $n(t.helper(uk),[a])}else s.type===6&&s.value.content.startsWith("vue:")&&(r=s.value.content.slice(4));const o=XB(r)||t.isBuiltInComponent(r);return o?(n||t.helper(o),o):(t.helper(ck),t.components.add(r),vh(r,"component"))}function m6(e,t,n=e.props,r,i,s=!1){const{tag:o,loc:a,children:l}=e;let c=[];const u=[],d=[],f=l.length>0;let h=!1,p=0,m=!1,g=!1,b=!1,v=!1,y=!1,E=!1;const T=[],w=x=>{c.length&&(u.push(Si(N2(c),a)),c=[]),x&&u.push(x)},S=({key:x,value:A})=>{if(Gr(x)){const M=x.content,R=co(M);if(R&&(!r||i)&&M.toLowerCase()!=="onclick"&&M!=="onUpdate:modelValue"&&!ha(M)&&(v=!0),R&&ha(M)&&(E=!0),R&&A.type===14&&(A=A.arguments[0]),A.type===20||(A.type===4||A.type===8)&&ki(A,t)>0)return;M==="ref"?m=!0:M==="class"?g=!0:M==="style"?b=!0:M!=="key"&&!T.includes(M)&&T.push(M),r&&(M==="class"||M==="style")&&!T.includes(M)&&T.push(M)}else y=!0};for(let x=0;x<n.length;x++){const A=n[x];if(A.type===6){const{loc:M,name:R,nameLoc:te,value:ee}=A;let oe=!0;if(R==="ref"&&(m=!0,t.scopes.vFor>0&&c.push(bn(_t("ref_for",!0),_t("true")))),R==="is"&&(I_(o)||ee&&ee.content.startsWith("vue:")||Sa("COMPILER_IS_ON_ELEMENT",t)))continue;c.push(bn(_t(R,!0,te),_t(ee?ee.content:"",oe,ee?ee.loc:M)))}else{const{name:M,arg:R,exp:te,loc:ee,modifiers:oe}=A,pe=M==="bind",G=M==="on";if(M==="slot"){r||t.onError(Kt(40,ee));continue}if(M==="once"||M==="memo"||M==="is"||pe&&fa(R,"is")&&(I_(o)||Sa("COMPILER_IS_ON_ELEMENT",t))||G&&s)continue;if((pe&&fa(R,"key")||G&&f&&fa(R,"vue:before-update"))&&(h=!0),pe&&fa(R,"ref")&&t.scopes.vFor>0&&c.push(bn(_t("ref_for",!0),_t("true"))),!R&&(pe||G)){if(y=!0,te)if(pe){if(w(),process.env.NODE_ENV!=="production"&&u.some(O=>O.type===15?O.properties.some(({key:B})=>B.type!==4||!B.isStatic?!0:B.content!=="class"&&B.content!=="style"&&!co(B.content)):!0)&&Du("COMPILER_V_BIND_OBJECT_ORDER",t,ee),Sa("COMPILER_V_BIND_OBJECT_ORDER",t)){u.unshift(te);continue}u.push(te)}else w({type:14,loc:ee,callee:t.helper(bk),arguments:r?[te]:[te,"true"]});else t.onError(Kt(pe?34:35,ee));continue}pe&&oe.includes("prop")&&(p|=32);const Q=t.directiveTransforms[M];if(Q){const{props:fe,needRuntime:O}=Q(A,e,t);!s&&fe.forEach(S),G&&R&&!Gr(R)?w(Si(fe,a)):c.push(...fe),O&&(d.push(A),Zi(O)&&p6.set(A,O))}else $2(M)||(d.push(A),f&&(h=!0))}}let k;if(u.length?(w(),u.length>1?k=$n(t.helper(f0),u,a):k=u[0]):c.length&&(k=Si(N2(c),a)),y?p|=16:(g&&!r&&(p|=2),b&&!r&&(p|=4),T.length&&(p|=8),v&&(p|=32)),!h&&(p===0||p===32)&&(m||E||d.length>0)&&(p|=512),!t.inSSR&&k)switch(k.type){case 15:let x=-1,A=-1,M=!1;for(let ee=0;ee<k.properties.length;ee++){const oe=k.properties[ee].key;Gr(oe)?oe.content==="class"?x=ee:oe.content==="style"&&(A=ee):oe.isHandlerKey||(M=!0)}const R=k.properties[x],te=k.properties[A];M?k=$n(t.helper(gh),[k]):(R&&!Gr(R.value)&&(R.value=$n(t.helper(mk),[R.value])),te&&(b||te.value.type===4&&te.value.content.trim()[0]==="["||te.value.type===17)&&(te.value=$n(t.helper(gk),[te.value])));break;case 14:break;default:k=$n(t.helper(gh),[$n(t.helper(cp),[k])]);break}return{props:k,directives:d,patchFlag:p,dynamicPropNames:T,shouldUseBlock:h}}function N2(e){const t=new Map,n=[];for(let r=0;r<e.length;r++){const i=e[r];if(i.key.type===8||!i.key.isStatic){n.push(i);continue}const s=i.key.content,o=t.get(s);o?(s==="style"||s==="class"||co(s))&&JAe(o,i):(t.set(s,i),n.push(i))}return n}function JAe(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=up([e.value,t.value],e.loc)}function ZAe(e,t){const n=[],r=p6.get(e);r?n.push(t.helperString(r)):(t.helper(dk),t.directives.add(e.name),n.push(vh(e.name,"directive")));const{loc:i}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const s=_t("true",!1,i);n.push(Si(e.modifiers.map(o=>bn(o,s)),i))}return up(n,e.loc)}function exe(e){let t="[";for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=", ");return t+"]"}function I_(e){return e==="component"||e==="Component"}const txe=(e,t)=>{if(b0(e)){const{children:n,loc:r}=e,{slotName:i,slotProps:s}=nxe(e,t),o=[t.prefixIdentifiers?"_ctx.$slots":"$slots",i,"{}","undefined","true"];let a=2;s&&(o[2]=s,a=3),n.length&&(o[3]=Nu([],n,!1,!1,r),a=4),t.scopeId&&!t.slotted&&(a=5),o.splice(a),e.codegenNode=$n(t.helper(KB),o,r)}};function nxe(e,t){let n='"default"',r;const i=[];for(let s=0;s<e.props.length;s++){const o=e.props[s];if(o.type===6)o.value&&(o.name==="name"?n=JSON.stringify(o.value.content):(o.name=hn(o.name),i.push(o)));else if(o.name==="bind"&&fa(o.arg,"name")){if(o.exp)n=o.exp;else if(o.arg&&o.arg.type===4){const a=hn(o.arg.content);n=o.exp=_t(a,!1,o.arg.loc)}}else o.name==="bind"&&o.arg&&Gr(o.arg)&&(o.arg.content=hn(o.arg.content)),i.push(o)}if(i.length>0){const{props:s,directives:o}=m6(e,t,i,!1,!1);r=s,o.length&&t.onError(Kt(36,o[0].loc))}return{slotName:n,slotProps:r}}const rxe=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,g6=(e,t,n,r)=>{const{loc:i,modifiers:s,arg:o}=e;!e.exp&&!s.length&&n.onError(Kt(35,i));let a;if(o.type===4)if(o.isStatic){let d=o.content;process.env.NODE_ENV!=="production"&&d.startsWith("vnode")&&n.onError(Kt(51,o.loc)),d.startsWith("vue:")&&(d=`vnode-${d.slice(4)}`);const f=t.tagType!==0||d.startsWith("vnode")||!/[A-Z]/.test(d)?ms(hn(d)):`on:${d}`;a=_t(f,!0,o.loc)}else a=Ji([`${n.helperString(A_)}(`,o,")"]);else a=o,a.children.unshift(`${n.helperString(A_)}(`),a.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let c=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const d=QB(l.content),f=!(d||rxe.test(l.content)),h=l.content.includes(";");process.env.NODE_ENV!=="production"&&Tl(l,n,!1,h),(f||c&&d)&&(l=Ji([`${f?"$event":"(...args)"} => ${h?"{":"("}`,l,h?"}":")"]))}let u={props:[bn(a,l||_t("() => {}",!1,i))]};return r&&(u=r(u)),c&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach(d=>d.key.isHandlerKey=!0),u},ixe=(e,t,n)=>{const{modifiers:r,loc:i}=e,s=e.arg;let{exp:o}=e;if(o&&o.type===4&&!o.content.trim()&&(o=void 0),!o){if(s.type!==4||!s.isStatic)return n.onError(Kt(52,s.loc)),{props:[bn(s,_t("",!0,i))]};const a=hn(s.content);o=e.exp=_t(a,!1,s.loc)}return s.type!==4?(s.children.unshift("("),s.children.push(') || ""')):s.isStatic||(s.content=`${s.content} || ""`),r.includes("camel")&&(s.type===4?s.isStatic?s.content=hn(s.content):s.content=`${n.helperString(k_)}(${s.content})`:(s.children.unshift(`${n.helperString(k_)}(`),s.children.push(")"))),n.inSSR||(r.includes("prop")&&C2(s,"."),r.includes("attr")&&C2(s,"^")),{props:[bn(s,o)]}},C2=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},sxe=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let r,i=!1;for(let s=0;s<n.length;s++){const o=n[s];if(qv(o)){i=!0;for(let a=s+1;a<n.length;a++){const l=n[a];if(qv(l))r||(r=n[s]=Ji([o],o.loc)),r.children.push(" + ",l),n.splice(a,1),a--;else{r=void 0;break}}}}if(!(!i||n.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(s=>s.type===7&&!t.directiveTransforms[s.name])&&e.tag!=="template")))for(let s=0;s<n.length;s++){const o=n[s];if(qv(o)||o.type===8){const a=[];(o.type!==2||o.content!==" ")&&a.push(o),!t.ssr&&ki(o,t)===0&&a.push(1+(process.env.NODE_ENV!=="production"?` /* ${Cs[1]} */`:"")),n[s]={type:12,content:o,loc:o.loc,codegenNode:$n(t.helper(lk),a)}}}}},O2=new WeakSet,oxe=(e,t)=>{if(e.type===1&&wi(e,"once",!0))return O2.has(e)||t.inVOnce||t.inSSR?void 0:(O2.add(e),t.inVOnce=!0,t.helper(h0),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0))})},b6=(e,t,n)=>{const{exp:r,arg:i}=e;if(!r)return n.onError(Kt(41,e.loc)),Am();const s=r.loc.source,o=r.type===4?r.content:s,a=n.bindingMetadata[s];if(a==="props"||a==="props-aliased")return n.onError(Kt(44,r.loc)),Am();if(!o.trim()||!QB(o)&&!!1)return n.onError(Kt(42,r.loc)),Am();const c=i||_t("modelValue",!0),u=i?Gr(i)?`onUpdate:${hn(i.content)}`:Ji(['"onUpdate:" + ',i]):"onUpdate:modelValue";let d;const f=n.isTS?"($event: any)":"$event";d=Ji([`${f} => ((`,r,") = $event)"]);const h=[bn(c,e.exp),bn(u,d)];if(e.modifiers.length&&t.tagType===1){const p=e.modifiers.map(g=>(wk(g)?g:JSON.stringify(g))+": true").join(", "),m=i?Gr(i)?`${i.content}Modifiers`:Ji([i,' + "Modifiers"']):"modelModifiers";h.push(bn(m,_t(`{ ${p} }`,!1,e.loc,2)))}return Am(h)};function Am(e=[]){return{props:e}}const axe=/[\w).+\-_$\]]/,lxe=(e,t)=>{Sa("COMPILER_FILTERS",t)&&(e.type===5&&E0(e.content,t),e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&E0(n.exp,t)}))};function E0(e,t){if(e.type===4)D2(e,t);else for(let n=0;n<e.children.length;n++){const r=e.children[n];typeof r=="object"&&(r.type===4?D2(r,t):r.type===8?E0(e,t):r.type===5&&E0(r.content,t))}}function D2(e,t){const n=e.content;let r=!1,i=!1,s=!1,o=!1,a=0,l=0,c=0,u=0,d,f,h,p,m=[];for(h=0;h<n.length;h++)if(f=d,d=n.charCodeAt(h),r)d===39&&f!==92&&(r=!1);else if(i)d===34&&f!==92&&(i=!1);else if(s)d===96&&f!==92&&(s=!1);else if(o)d===47&&f!==92&&(o=!1);else if(d===124&&n.charCodeAt(h+1)!==124&&n.charCodeAt(h-1)!==124&&!a&&!l&&!c)p===void 0?(u=h+1,p=n.slice(0,h).trim()):g();else{switch(d){case 34:i=!0;break;case 39:r=!0;break;case 96:s=!0;break;case 40:c++;break;case 41:c--;break;case 91:l++;break;case 93:l--;break;case 123:a++;break;case 125:a--;break}if(d===47){let b=h-1,v;for(;b>=0&&(v=n.charAt(b),v===" ");b--);(!v||!axe.test(v))&&(o=!0)}}p===void 0?p=n.slice(0,h).trim():u!==0&&g();function g(){m.push(n.slice(u,h).trim()),u=h+1}if(m.length){for(process.env.NODE_ENV!=="production"&&m0("COMPILER_FILTERS",t,e.loc),h=0;h<m.length;h++)p=cxe(p,m[h],t);e.content=p}}function cxe(e,t,n){n.helper(fk);const r=t.indexOf("(");if(r<0)return n.filters.add(t),`${vh(t,"filter")}(${e})`;{const i=t.slice(0,r),s=t.slice(r+1);return n.filters.add(i),`${vh(i,"filter")}(${e}${s!==")"?","+s:s}`}}const I2=new WeakSet,uxe=(e,t)=>{if(e.type===1){const n=wi(e,"memo");return!n||I2.has(e)?void 0:(I2.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&Ek(r,t),e.codegenNode=$n(t.helper(vk),[n.exp,Nu(void 0,r),"_cache",String(t.cached++)]))})}};function dxe(e){return[[oxe,UAe,uxe,qAe,lxe,...process.env.NODE_ENV!=="production"?[BAe]:[],txe,XAe,WAe,sxe],{on:g6,bind:ixe,model:b6}]}function fxe(e,t={}){const n=t.onError||_k,r=t.mode==="module";t.prefixIdentifiers===!0?n(Kt(47)):r&&n(Kt(48));const i=!1;t.cacheHandlers&&n(Kt(49)),t.scopeId&&!r&&n(Kt(50));const s=wt({},t,{prefixIdentifiers:i}),o=at(e)?hAe(e,s):e,[a,l]=dxe();return bAe(o,wt({},s,{nodeTransforms:[...a,...t.nodeTransforms||[]],directiveTransforms:wt({},l,t.directiveTransforms||{})})),_Ae(o,s)}const hxe=()=>({props:[]});/**
397
397
  * @vue/compiler-dom v3.4.21
398
398
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
399
399
  * @license MIT
400
- **/const y6=Symbol(process.env.NODE_ENV!=="production"?"vModelRadio":""),v6=Symbol(process.env.NODE_ENV!=="production"?"vModelCheckbox":""),E6=Symbol(process.env.NODE_ENV!=="production"?"vModelText":""),_6=Symbol(process.env.NODE_ENV!=="production"?"vModelSelect":""),R_=Symbol(process.env.NODE_ENV!=="production"?"vModelDynamic":""),w6=Symbol(process.env.NODE_ENV!=="production"?"vOnModifiersGuard":""),T6=Symbol(process.env.NODE_ENV!=="production"?"vOnKeysGuard":""),S6=Symbol(process.env.NODE_ENV!=="production"?"vShow":""),Sk=Symbol(process.env.NODE_ENV!=="production"?"Transition":""),k6=Symbol(process.env.NODE_ENV!=="production"?"TransitionGroup":"");jke({[y6]:"vModelRadio",[v6]:"vModelCheckbox",[E6]:"vModelText",[_6]:"vModelSelect",[R_]:"vModelDynamic",[w6]:"withModifiers",[T6]:"withKeys",[S6]:"vShow",[Sk]:"Transition",[k6]:"TransitionGroup"});let Tc;function gxe(e,t=!1){return Tc||(Tc=document.createElement("div")),t?(Tc.innerHTML=`<div foo="${e.replace(/"/g,"&quot;")}">`,Tc.children[0].getAttribute("foo")):(Tc.innerHTML=e,Tc.textContent)}const bxe={parseMode:"html",isVoidTag:W6,isNativeTag:e=>B2(e)||U2(e)||H2(e),isPreTag:e=>e==="pre",decodeEntities:gxe,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return Sk;if(e==="TransitionGroup"||e==="transition-group")return k6},getNamespace(e,t,n){let r=t?t.ns:n;if(t&&r===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(i=>i.type===6&&i.name==="encoding"&&i.value!=null&&(i.value.content==="text/html"||i.value.content==="application/xhtml+xml"))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(r=0);else t&&r===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(r=0);if(r===0){if(e==="svg")return 1;if(e==="math")return 2}return r}},yxe=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[n]={type:7,name:"bind",arg:_t("style",!0,t.loc),exp:vxe(t.value.content,t.loc),modifiers:[],loc:t.loc})})},vxe=(e,t)=>{const n=F2(e);return _t(JSON.stringify(n),!1,t,3)};function Yi(e,t){return Kt(e,t,process.env.NODE_ENV!=="production"?Exe:void 0)}const Exe={53:"v-html is missing expression.",54:"v-html will override element children.",55:"v-text is missing expression.",56:"v-text will override element children.",57:"v-model can only be used on <input>, <textarea> and <select> elements.",58:"v-model argument is not supported on plain elements.",59:"v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.",60:"Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.",61:"v-show is missing expression.",62:"<Transition> expects exactly one child element or component.",63:"Tags with side effect (<script> and <style>) are ignored in client component templates."},_xe=(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError(Yi(53,i)),t.children.length&&(n.onError(Yi(54,i)),t.children.length=0),{props:[bn(_t("innerHTML",!0,i),r||_t("",!0))]}},wxe=(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError(Yi(55,i)),t.children.length&&(n.onError(Yi(56,i)),t.children.length=0),{props:[bn(_t("textContent",!0),r?ki(r,n)>0?r:$n(n.helperString(ay),[r],i):_t("",!0))]}},Txe=(e,t,n)=>{const r=b6(e,t,n);if(!r.props.length||t.tagType===1)return r;e.arg&&n.onError(Yi(58,e.arg.loc));function i(){const a=wi(t,"bind");a&&fa(a.arg,"value")&&n.onError(Yi(60,a.loc))}const{tag:s}=t,o=n.isCustomElement(s);if(s==="input"||s==="textarea"||s==="select"||o){let a=E6,l=!1;if(s==="input"||o){const c=yh(t,"type");if(c){if(c.type===7)a=R_;else if(c.value)switch(c.value.content){case"radio":a=y6;break;case"checkbox":a=v6;break;case"file":l=!0,n.onError(Yi(59,e.loc));break;default:process.env.NODE_ENV!=="production"&&i();break}}else eAe(t)?a=R_:process.env.NODE_ENV!=="production"&&i()}else s==="select"?a=_6:process.env.NODE_ENV!=="production"&&i();l||(r.needRuntime=n.helper(a))}else n.onError(Yi(57,e.loc));return r.props=r.props.filter(a=>!(a.key.type===4&&a.key.content==="modelValue")),r},Sxe=Gn("passive,once,capture"),kxe=Gn("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),Axe=Gn("left,right"),A6=Gn("onkeyup,onkeydown,onkeypress",!0),xxe=(e,t,n,r)=>{const i=[],s=[],o=[];for(let a=0;a<t.length;a++){const l=t[a];l==="native"&&Du("COMPILER_V_ON_NATIVE",n,r)||Sxe(l)?o.push(l):Axe(l)?Gr(e)?A6(e.content)?i.push(l):s.push(l):(i.push(l),s.push(l)):kxe(l)?s.push(l):i.push(l)}return{keyModifiers:i,nonKeyModifiers:s,eventOptionModifiers:o}},R2=(e,t)=>Gr(e)&&e.content.toLowerCase()==="onclick"?_t(t,!0):e.type!==4?Ji(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,Nxe=(e,t,n)=>g6(e,t,n,r=>{const{modifiers:i}=e;if(!i.length)return r;let{key:s,value:o}=r.props[0];const{keyModifiers:a,nonKeyModifiers:l,eventOptionModifiers:c}=xxe(s,i,n,e.loc);if(l.includes("right")&&(s=R2(s,"onContextmenu")),l.includes("middle")&&(s=R2(s,"onMouseup")),l.length&&(o=$n(n.helper(w6),[o,JSON.stringify(l)])),a.length&&(!Gr(s)||A6(s.content))&&(o=$n(n.helper(T6),[o,JSON.stringify(a)])),c.length){const u=c.map(Ps).join("");s=Gr(s)?_t(`${s.content}${u}`,!0):Ji(["(",s,`) + "${u}"`])}return{props:[bn(s,o)]}}),Cxe=(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError(Yi(61,i)),{props:[],needRuntime:n.helper(S6)}},Oxe=(e,t)=>{if(e.type===1&&e.tagType===1&&t.isBuiltInComponent(e.tag)===Sk)return()=>{if(!e.children.length)return;x6(e)&&t.onError(Yi(62,{start:e.children[0].loc.start,end:e.children[e.children.length-1].loc.end,source:""}));const r=e.children[0];if(r.type===1)for(const i of r.props)i.type===7&&i.name==="show"&&e.props.push({type:6,name:"persisted",nameLoc:e.loc,value:void 0,loc:e.loc})}};function x6(e){const t=e.children=e.children.filter(r=>r.type!==3&&!(r.type===2&&!r.content.trim())),n=t[0];return t.length!==1||n.type===11||n.type===9&&n.branches.some(x6)}const Dxe=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&(process.env.NODE_ENV!=="production"&&t.onError(Yi(63,e.loc)),t.removeNode())},Ixe=[yxe,...process.env.NODE_ENV!=="production"?[Oxe]:[]],Rxe={cloak:mxe,html:_xe,text:wxe,model:Txe,on:Nxe,show:Cxe};function Pxe(e,t={}){return pxe(e,wt({},bxe,t,{nodeTransforms:[Dxe,...Ixe,...t.nodeTransforms||[]],directiveTransforms:wt({},Rxe,t.directiveTransforms||{}),transformHoist:null}))}/**
400
+ **/const y6=Symbol(process.env.NODE_ENV!=="production"?"vModelRadio":""),v6=Symbol(process.env.NODE_ENV!=="production"?"vModelCheckbox":""),E6=Symbol(process.env.NODE_ENV!=="production"?"vModelText":""),_6=Symbol(process.env.NODE_ENV!=="production"?"vModelSelect":""),R_=Symbol(process.env.NODE_ENV!=="production"?"vModelDynamic":""),w6=Symbol(process.env.NODE_ENV!=="production"?"vOnModifiersGuard":""),T6=Symbol(process.env.NODE_ENV!=="production"?"vOnKeysGuard":""),S6=Symbol(process.env.NODE_ENV!=="production"?"vShow":""),Sk=Symbol(process.env.NODE_ENV!=="production"?"Transition":""),k6=Symbol(process.env.NODE_ENV!=="production"?"TransitionGroup":"");Uke({[y6]:"vModelRadio",[v6]:"vModelCheckbox",[E6]:"vModelText",[_6]:"vModelSelect",[R_]:"vModelDynamic",[w6]:"withModifiers",[T6]:"withKeys",[S6]:"vShow",[Sk]:"Transition",[k6]:"TransitionGroup"});let Tc;function pxe(e,t=!1){return Tc||(Tc=document.createElement("div")),t?(Tc.innerHTML=`<div foo="${e.replace(/"/g,"&quot;")}">`,Tc.children[0].getAttribute("foo")):(Tc.innerHTML=e,Tc.textContent)}const mxe={parseMode:"html",isVoidTag:W6,isNativeTag:e=>B2(e)||U2(e)||H2(e),isPreTag:e=>e==="pre",decodeEntities:pxe,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return Sk;if(e==="TransitionGroup"||e==="transition-group")return k6},getNamespace(e,t,n){let r=t?t.ns:n;if(t&&r===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(i=>i.type===6&&i.name==="encoding"&&i.value!=null&&(i.value.content==="text/html"||i.value.content==="application/xhtml+xml"))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(r=0);else t&&r===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(r=0);if(r===0){if(e==="svg")return 1;if(e==="math")return 2}return r}},gxe=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[n]={type:7,name:"bind",arg:_t("style",!0,t.loc),exp:bxe(t.value.content,t.loc),modifiers:[],loc:t.loc})})},bxe=(e,t)=>{const n=F2(e);return _t(JSON.stringify(n),!1,t,3)};function Yi(e,t){return Kt(e,t,process.env.NODE_ENV!=="production"?yxe:void 0)}const yxe={53:"v-html is missing expression.",54:"v-html will override element children.",55:"v-text is missing expression.",56:"v-text will override element children.",57:"v-model can only be used on <input>, <textarea> and <select> elements.",58:"v-model argument is not supported on plain elements.",59:"v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.",60:"Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.",61:"v-show is missing expression.",62:"<Transition> expects exactly one child element or component.",63:"Tags with side effect (<script> and <style>) are ignored in client component templates."},vxe=(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError(Yi(53,i)),t.children.length&&(n.onError(Yi(54,i)),t.children.length=0),{props:[bn(_t("innerHTML",!0,i),r||_t("",!0))]}},Exe=(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError(Yi(55,i)),t.children.length&&(n.onError(Yi(56,i)),t.children.length=0),{props:[bn(_t("textContent",!0),r?ki(r,n)>0?r:$n(n.helperString(ay),[r],i):_t("",!0))]}},_xe=(e,t,n)=>{const r=b6(e,t,n);if(!r.props.length||t.tagType===1)return r;e.arg&&n.onError(Yi(58,e.arg.loc));function i(){const a=wi(t,"bind");a&&fa(a.arg,"value")&&n.onError(Yi(60,a.loc))}const{tag:s}=t,o=n.isCustomElement(s);if(s==="input"||s==="textarea"||s==="select"||o){let a=E6,l=!1;if(s==="input"||o){const c=yh(t,"type");if(c){if(c.type===7)a=R_;else if(c.value)switch(c.value.content){case"radio":a=y6;break;case"checkbox":a=v6;break;case"file":l=!0,n.onError(Yi(59,e.loc));break;default:process.env.NODE_ENV!=="production"&&i();break}}else Jke(t)?a=R_:process.env.NODE_ENV!=="production"&&i()}else s==="select"?a=_6:process.env.NODE_ENV!=="production"&&i();l||(r.needRuntime=n.helper(a))}else n.onError(Yi(57,e.loc));return r.props=r.props.filter(a=>!(a.key.type===4&&a.key.content==="modelValue")),r},wxe=Gn("passive,once,capture"),Txe=Gn("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),Sxe=Gn("left,right"),A6=Gn("onkeyup,onkeydown,onkeypress",!0),kxe=(e,t,n,r)=>{const i=[],s=[],o=[];for(let a=0;a<t.length;a++){const l=t[a];l==="native"&&Du("COMPILER_V_ON_NATIVE",n,r)||wxe(l)?o.push(l):Sxe(l)?Gr(e)?A6(e.content)?i.push(l):s.push(l):(i.push(l),s.push(l)):Txe(l)?s.push(l):i.push(l)}return{keyModifiers:i,nonKeyModifiers:s,eventOptionModifiers:o}},R2=(e,t)=>Gr(e)&&e.content.toLowerCase()==="onclick"?_t(t,!0):e.type!==4?Ji(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,Axe=(e,t,n)=>g6(e,t,n,r=>{const{modifiers:i}=e;if(!i.length)return r;let{key:s,value:o}=r.props[0];const{keyModifiers:a,nonKeyModifiers:l,eventOptionModifiers:c}=kxe(s,i,n,e.loc);if(l.includes("right")&&(s=R2(s,"onContextmenu")),l.includes("middle")&&(s=R2(s,"onMouseup")),l.length&&(o=$n(n.helper(w6),[o,JSON.stringify(l)])),a.length&&(!Gr(s)||A6(s.content))&&(o=$n(n.helper(T6),[o,JSON.stringify(a)])),c.length){const u=c.map(Ps).join("");s=Gr(s)?_t(`${s.content}${u}`,!0):Ji(["(",s,`) + "${u}"`])}return{props:[bn(s,o)]}}),xxe=(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError(Yi(61,i)),{props:[],needRuntime:n.helper(S6)}},Nxe=(e,t)=>{if(e.type===1&&e.tagType===1&&t.isBuiltInComponent(e.tag)===Sk)return()=>{if(!e.children.length)return;x6(e)&&t.onError(Yi(62,{start:e.children[0].loc.start,end:e.children[e.children.length-1].loc.end,source:""}));const r=e.children[0];if(r.type===1)for(const i of r.props)i.type===7&&i.name==="show"&&e.props.push({type:6,name:"persisted",nameLoc:e.loc,value:void 0,loc:e.loc})}};function x6(e){const t=e.children=e.children.filter(r=>r.type!==3&&!(r.type===2&&!r.content.trim())),n=t[0];return t.length!==1||n.type===11||n.type===9&&n.branches.some(x6)}const Cxe=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&(process.env.NODE_ENV!=="production"&&t.onError(Yi(63,e.loc)),t.removeNode())},Oxe=[gxe,...process.env.NODE_ENV!=="production"?[Nxe]:[]],Dxe={cloak:hxe,html:vxe,text:Exe,model:_xe,on:Axe,show:xxe};function Ixe(e,t={}){return fxe(e,wt({},mxe,t,{nodeTransforms:[Cxe,...Oxe,...t.nodeTransforms||[]],directiveTransforms:wt({},Dxe,t.directiveTransforms||{}),transformHoist:null}))}/**
401
401
  * vue v3.4.21
402
402
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
403
403
  * @license MIT
404
- **/function Lxe(){fw()}process.env.NODE_ENV!=="production"&&Lxe();const P2=new WeakMap;function Mxe(e){let t=P2.get(e??Pt);return t||(t=Object.create(null),P2.set(e??Pt,t)),t}function $xe(e,t){if(!at(e))if(e.nodeType)e=e.innerHTML;else return process.env.NODE_ENV!=="production"&&Wn("invalid template option: ",e),Yt;const n=e,r=Mxe(t),i=r[n];if(i)return i;if(e[0]==="#"){const c=document.querySelector(e);process.env.NODE_ENV!=="production"&&!c&&Wn(`Template element not found or is empty: ${e}`),e=c?c.innerHTML:""}const s=wt({hoistStatic:!0,onError:process.env.NODE_ENV!=="production"?a:void 0,onWarn:process.env.NODE_ENV!=="production"?c=>a(c,!0):Yt},t);!s.isCustomElement&&typeof customElements<"u"&&(s.isCustomElement=c=>!!customElements.get(c));const{code:o}=Pxe(e,s);function a(c,u=!1){const d=u?c.message:`Template compilation error: ${c.message}`,f=c.loc&&F6(e,c.loc.start.offset,c.loc.end.offset);Wn(f?`${d}
405
- ${f}`:d)}const l=new Function("Vue",o)(bU);return l._rc=!0,r[n]=l}sI($xe);globalThis.__VUE_OPTIONS_API__=!0;globalThis.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!0;globalThis.__VUE_PROD_DEVTOOLS__=!1;const Fxe=e=>{const t=ag.useRef(null);return ag.useEffect(()=>{if(!t.current)return;const n=CI(Mke,e);return n.mount(t.current),()=>n==null?void 0:n.unmount()},[t]),O6.jsx("div",{ref:t})};exports.$6=mle;exports.$t=ir;exports.$x=q$;exports.Ae=Nt;exports.ApiReferenceReact=Fxe;exports.Bd=qg;exports.C6=xle;exports.Cs=eo;exports.DS=Y3;exports.ES=z3;exports.Ex=W$;exports.FE=mF;exports.Fragment=De;exports.G=Ie;exports.GS=tM;exports.G_=I$;exports.Hh=yb;exports.Ie=CH;exports.Is=so;exports.JS=nM;exports.Je=yn;exports.Jp=oE;exports.LS=Q3;exports.L_=k$;exports.Le=zt;exports.N=j0;exports.NS=W3;exports.Oi=Qc;exports.Oo=uc;exports.Ou=Wm;exports.Pb=RT;exports.Q=V0;exports.Q0=pT;exports.Re=qt;exports.S6=lle;exports.Sb=OT;exports.Sx=V$;exports.Tb=IT;exports.Te=Mt;exports.Th=pb;exports.To=dc;exports.U$=p$;exports.V=q0;exports.VS=J3;exports.WS=eM;exports.W_=D$;exports.Y0=fT;exports.YE=gF;exports.Y_=P$;exports.Ze=pn;exports._6=wle;exports._x=z$;exports.a6=ese;exports.b6=tle;exports.b_=v$;exports.c6=tae;exports.ca=Ku;exports.computed=ue;exports.createBaseVNode=ae;exports.createBlock=he;exports.createCommentVNode=be;exports.createElementBlock=V;exports.createStaticVNode=rc;exports.createTextVNode=Pe;exports.createVNode=Z;exports.d6=yae;exports.d_=b$;exports.de=Ze;exports.defineComponent=Se;exports.f6=xae;exports.fx=j$;exports.g6=Zae;exports.h6=kae;exports.jk=U3;exports.jt=Lr;exports.k6=sle;exports.m6=qae;exports.me=iR;exports.ne=je;exports.normalizeClass=ct;exports.normalizeStyle=_r;exports.nx=F$;exports.onBeforeUnmount=kh;exports.openBlock=C;exports.pb=AT;exports.pe=sR;exports.pe$1=st;exports.po=Vl;exports.popScopeId=cr;exports.pt=Fn;exports.pushScopeId=lr;exports.q_=C$;exports.qh=gb;exports.ref=de;exports.renderList=mt;exports.renderSlot=Be;exports.sd=Lg;exports.toDisplayString=Ue;exports.toRaw=tt;exports.toRef=Mf;exports.toValue=fg;exports.u6=dae;exports.ua=Wu;exports.unref=D;exports.useMagicKeys=Aw;exports.useMediaQuery=W0;exports.ut=On;exports.v6=rle;exports.vModelCheckbox=xh;exports.vModelText=qf;exports.vShow=Ua;exports.w6=ile;exports.watch=dt;exports.whenever=ff;exports.withCtx=X;exports.withDirectives=Ba;exports.withKeys=SI;exports.wn=Ia;exports.wr=Ii;exports.x6=Tle;exports.x_=T$;exports.xe=oR;exports.xg=GE;exports.xx=K$;exports.y6=ele;exports.ye=OH;exports.ys=OR;exports.yy=yT;exports.z_=N$;exports.zs=No;
404
+ **/function Rxe(){fw()}process.env.NODE_ENV!=="production"&&Rxe();const P2=new WeakMap;function Pxe(e){let t=P2.get(e??Pt);return t||(t=Object.create(null),P2.set(e??Pt,t)),t}function Lxe(e,t){if(!at(e))if(e.nodeType)e=e.innerHTML;else return process.env.NODE_ENV!=="production"&&Wn("invalid template option: ",e),Yt;const n=e,r=Pxe(t),i=r[n];if(i)return i;if(e[0]==="#"){const c=document.querySelector(e);process.env.NODE_ENV!=="production"&&!c&&Wn(`Template element not found or is empty: ${e}`),e=c?c.innerHTML:""}const s=wt({hoistStatic:!0,onError:process.env.NODE_ENV!=="production"?a:void 0,onWarn:process.env.NODE_ENV!=="production"?c=>a(c,!0):Yt},t);!s.isCustomElement&&typeof customElements<"u"&&(s.isCustomElement=c=>!!customElements.get(c));const{code:o}=Ixe(e,s);function a(c,u=!1){const d=u?c.message:`Template compilation error: ${c.message}`,f=c.loc&&F6(e,c.loc.start.offset,c.loc.end.offset);Wn(f?`${d}
405
+ ${f}`:d)}const l=new Function("Vue",o)(bU);return l._rc=!0,r[n]=l}sI(Lxe);globalThis.__VUE_OPTIONS_API__=!0;globalThis.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!0;globalThis.__VUE_PROD_DEVTOOLS__=!1;const Mxe=e=>{const t=ag.useRef(null);return ag.useEffect(()=>{if(!t.current)return;const n=CI(Pke,e);return n.mount(t.current),()=>n==null?void 0:n.unmount()},[t]),O6.jsx("div",{ref:t})};exports.$6=Tle;exports.$t=ir;exports.$x=q$;exports.Ae=Nt;exports.ApiReferenceReact=Mxe;exports.BE=mF;exports.Bd=qg;exports.Cs=eo;exports.DS=Y3;exports.ES=z3;exports.Ex=W$;exports.Fragment=De;exports.G=Ie;exports.GE=gF;exports.GS=tM;exports.G_=I$;exports.Hh=yb;exports.Ie=CH;exports.Is=so;exports.JS=nM;exports.Je=yn;exports.Jp=oE;exports.LS=Q3;exports.L_=k$;exports.Le=zt;exports.N=j0;exports.NS=W3;exports.Oi=Qc;exports.Oo=uc;exports.Ou=Wm;exports.Pb=RT;exports.Q=V0;exports.Q0=pT;exports.Re=qt;exports.S6=wle;exports.Sb=OT;exports.Sx=V$;exports.Tb=IT;exports.Te=Mt;exports.Th=pb;exports.To=dc;exports.U$=p$;exports.V=q0;exports.VS=J3;exports.WS=eM;exports.W_=D$;exports.Y0=fT;exports.Y_=P$;exports.Ze=pn;exports._6=xle;exports._x=z$;exports.a6=tae;exports.b6=ile;exports.b_=v$;exports.c6=yae;exports.ca=Ku;exports.computed=ue;exports.createBaseVNode=ae;exports.createBlock=he;exports.createCommentVNode=be;exports.createElementBlock=V;exports.createStaticVNode=rc;exports.createTextVNode=Pe;exports.createVNode=Z;exports.d6=xae;exports.d_=b$;exports.de=Ze;exports.defineComponent=Se;exports.f6=qae;exports.fx=j$;exports.g6=tle;exports.jk=U3;exports.jt=Lr;exports.k6=mle;exports.l6=dae;exports.m6=ele;exports.me=iR;exports.ne=je;exports.normalizeClass=ct;exports.normalizeStyle=_r;exports.nx=F$;exports.o6=ese;exports.onBeforeUnmount=kh;exports.openBlock=C;exports.p6=Zae;exports.pb=AT;exports.pe=sR;exports.pe$1=st;exports.po=Vl;exports.popScopeId=cr;exports.pt=Fn;exports.pushScopeId=lr;exports.q_=C$;exports.qh=gb;exports.ref=de;exports.renderList=mt;exports.renderSlot=Be;exports.sd=Lg;exports.toDisplayString=Ue;exports.toRaw=tt;exports.toRef=Mf;exports.toValue=fg;exports.u6=kae;exports.ua=Wu;exports.unref=D;exports.useMagicKeys=Aw;exports.useMediaQuery=W0;exports.ut=On;exports.v6=sle;exports.vModelCheckbox=xh;exports.vModelText=qf;exports.vShow=Ua;exports.w6=lle;exports.watch=dt;exports.whenever=ff;exports.withCtx=X;exports.withDirectives=Ba;exports.withKeys=SI;exports.wn=Ia;exports.wr=Ii;exports.x_=T$;exports.xe=oR;exports.xg=GE;exports.xx=K$;exports.y6=rle;exports.ye=OH;exports.ys=OR;exports.yy=yT;exports.z_=N$;exports.zs=No;